| 1234567891011121314151617181920212223242526 |
- var t=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},e=new function(){this.browser=new t,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(e.wxa=!0,e.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?e.worker=!0:!e.hasGlobalWindow||"Deno"in window?(e.node=!0,e.svgSupported=!0):function(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]);n&&(r.ie=!0,r.version=n[1]);o&&(r.edge=!0,r.version=o[1],r.newEdge=+o[1].split(".")[0]>18);a&&(r.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}(navigator.userAgent,e);const r=e;var i="sans-serif",n="12px "+i;var o,a,s=function(t){var e={};if("undefined"==typeof JSON)return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-20)/100;e[i]=n}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),h={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!o){var r=h.createCanvas();o=r&&r.getContext("2d")}if(o)return a!==e&&(a=o.font=e||n),o.measureText(t);t=t||"";var i=/((?:\d+)?\.?\d*)px/.exec(e=e||n),l=i&&+i[1]||12,u=0;if(e.indexOf("mono")>=0)u=l*t.length;else for(var c=0;c<t.length;c++){var f=s[t[c]];u+=null==f?l:f*l}return{width:u}},loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i}};function l(t){for(var e in h)t[e]&&(h[e]=t[e])}var u=F(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),c=F(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),f=Object.prototype.toString,p=Array.prototype,d=p.forEach,v=p.filter,y=p.slice,g=p.map,_=function(){}.constructor,m=_?_.prototype:null,x="__proto__",w=2311;function b(){return w++}function k(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}function S(t){if(null==t||"object"!=typeof t)return t;var e=t,r=f.call(t);if("[object Array]"===r){if(!ut(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=S(t[i])}}else if(c[r]){if(!ut(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(i=0,n=t.length;i<n;i++)e[i]=t[i]}}}else if(!u[r]&&!ut(t)&&!K(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==x&&(e[a]=S(t[a]));return e}function T(t,e,r){if(!U(e)||!U(t))return r?S(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==x){var n=t[i],o=e[i];!U(o)||!U(n)||X(o)||X(n)||K(o)||K(n)||G(o)||G(n)||ut(o)||ut(n)?!r&&i in t||(t[i]=S(e[i])):T(n,o,r)}return t}function C(t,e){for(var r=t[0],i=1,n=t.length;i<n;i++)r=T(r,t[i],e);return r}function P(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==x&&(t[r]=e[r]);return t}function M(t,e,r){for(var i=H(e),n=0,o=i.length;n<o;n++){var a=i[n];(r?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}var A=h.createCanvas;function L(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function I(t,e){var r=t.prototype;function i(){}for(var n in i.prototype=e.prototype,t.prototype=new i,r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function O(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var o=i[n];"constructor"!==o&&(r?null!=e[o]:null==t[o])&&(t[o]=e[o])}else M(t,e,r)}function D(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function z(t,e,r){if(t&&e)if(t.forEach&&t.forEach===d)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(r,t[o],o,t)}function R(t,e,r){if(!t)return[];if(!e)return nt(t);if(t.map&&t.map===g)return t.map(e,r);for(var i=[],n=0,o=t.length;n<o;n++)i.push(e.call(r,t[n],n,t));return i}function F(t,e,r,i){if(t&&e){for(var n=0,o=t.length;n<o;n++)r=e.call(i,r,t[n],n,t);return r}}function B(t,e,r){if(!t)return[];if(!e)return nt(t);if(t.filter&&t.filter===v)return t.filter(e,r);for(var i=[],n=0,o=t.length;n<o;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function N(t,e,r){if(t&&e)for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}function H(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}var E=m&&j(m.bind)?m.call.bind(m.bind):function(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(y.call(arguments)))}};function W(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(y.call(arguments)))}}function X(t){return Array.isArray?Array.isArray(t):"[object Array]"===f.call(t)}function j(t){return"function"==typeof t}function q(t){return"string"==typeof t}function Y(t){return"[object String]"===f.call(t)}function V(t){return"number"==typeof t}function U(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function G(t){return!!u[f.call(t)]}function Z(t){return!!c[f.call(t)]}function K(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function Q(t){return null!=t.colorStops}function $(t){return null!=t.image}function J(t){return"[object RegExp]"===f.call(t)}function tt(t){return t!=t}function et(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(null!=t[r])return t[r]}function rt(t,e){return null!=t?t:e}function it(t,e,r){return null!=t?t:null!=e?e:r}function nt(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return y.apply(t,e)}function ot(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function at(t,e){if(!t)throw new Error(e)}function st(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ht="__ec_primitive__";function lt(t){t[ht]=!0}function ut(t){return t[ht]}var ct=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return H(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var r in e)e.hasOwnProperty(r)&&t(e[r],r)},t}(),ft="function"==typeof Map;var pt=function(){function t(e){var r=X(e);this.data=ft?new Map:new ct;var i=this;function n(t,e){r?i.set(t,e):i.set(e,t)}e instanceof t?e.each(n):e&&z(e,n)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(r,i){t.call(e,r,i)}))},t.prototype.keys=function(){var t=this.data.keys();return ft?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function dt(t){return new pt(t)}function vt(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];var n=t.length;for(i=0;i<e.length;i++)r[i+n]=e[i];return r}function yt(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&P(r,e),r}function gt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function _t(t,e){return t.hasOwnProperty(e)}function mt(){}var xt=180/Math.PI;const wt=Object.freeze(Object.defineProperty({__proto__:null,HashMap:pt,RADIAN_TO_DEGREE:xt,assert:at,bind:E,clone:S,concatArray:vt,createCanvas:A,createHashMap:dt,createObject:yt,curry:W,defaults:M,disableUserSelect:gt,each:z,eqNaN:tt,extend:P,filter:B,find:N,guid:b,hasOwn:_t,indexOf:L,inherits:I,isArray:X,isArrayLike:D,isBuiltInObject:G,isDom:K,isFunction:j,isGradientObject:Q,isImagePatternObject:$,isNumber:V,isObject:U,isPrimitive:ut,isRegExp:J,isString:q,isStringSafe:Y,isTypedArray:Z,keys:H,logError:k,map:R,merge:T,mergeAll:C,mixin:O,noop:mt,normalizeCssArray:ot,reduce:F,retrieve:et,retrieve2:rt,retrieve3:it,setAsPrimitive:lt,slice:nt,trim:st},Symbol.toStringTag,{value:"Module"}));
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- /* global Reflect, Promise */var bt=function(t,e){return bt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},bt(t,e)};function kt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}bt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function St(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Tt(t,e){return t[0]=e[0],t[1]=e[1],t}function Ct(t){return[t[0],t[1]]}function Pt(t,e,r){return t[0]=e,t[1]=r,t}function Mt(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function At(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t}function Lt(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function It(t){return Math.sqrt(Dt(t))}var Ot=It;function Dt(t){return t[0]*t[0]+t[1]*t[1]}var zt=Dt;function Rt(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Ft(t,e){var r=It(e);return 0===r?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Bt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Nt=Bt;function Ht(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Et=Ht;function Wt(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function Xt(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function jt(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function qt(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}const Yt=Object.freeze(Object.defineProperty({__proto__:null,add:Mt,applyTransform:Xt,clone:Ct,copy:Tt,create:St,dist:Nt,distSquare:Et,distance:Bt,distanceSquare:Ht,div:function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:It,lenSquare:Dt,length:Ot,lengthSquare:zt,lerp:Wt,max:qt,min:jt,mul:function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:Ft,scale:Rt,scaleAndAdd:At,set:Pt,sub:Lt},Symbol.toStringTag,{value:"Module"}));var Vt=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},Ut=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Vt(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var r=t.offsetX,i=t.offsetY,n=r-this._x,o=i-this._y;this._x=r,this._y=i,e.drift(n,o,t),this.handler.dispatchToElement(new Vt(e,t),"drag",t.event);var a=this.handler.findHover(r,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Vt(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Vt(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Vt(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Vt(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();const Gt=Ut;var Zt=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,r,i){this._$handlers||(this._$handlers={});var n=this._$handlers;if("function"==typeof e&&(i=r,r=e,e=null),!r||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),n[t]||(n[t]=[]);for(var a=0;a<n[t].length;a++)if(n[t][a].h===r)return this;var s={h:r,query:e,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},h=n[t].length-1,l=n[t][h];return l&&l.callAtLast?n[t].splice(h,0,s):n[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(e){if(r[t]){for(var i=[],n=0,o=r[t].length;n<o;n++)r[t][n].h!==e&&i.push(r[t][n]);r[t]=i}r[t]&&0===r[t].length&&delete r[t]}else delete r[t];return this},t.prototype.trigger=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],n=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var h=i[s];if(!n||!n.filter||null==h.query||n.filter(t,h.query))switch(o){case 0:h.h.call(h.ctx);break;case 1:h.h.call(h.ctx,e[0]);break;case 2:h.h.call(h.ctx,e[0],e[1]);break;default:h.h.apply(h.ctx,e)}}return n&&n.afterTrigger&&n.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],n=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,h=0;h<s;h++){var l=i[h];if(!n||!n.filter||null==l.query||n.filter(t,l.query))switch(o){case 0:l.h.call(a);break;case 1:l.h.call(a,e[0]);break;case 2:l.h.call(a,e[0],e[1]);break;default:l.h.apply(a,e.slice(1,o-1))}}return n&&n.afterTrigger&&n.afterTrigger(t),this},t}();const Kt=Zt;var Qt=Math.log(2);function $t(t,e,r,i,n,o){var a=i+"-"+n,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var h=Math.round(Math.log((1<<s)-1&~n)/Qt);return t[r][h]}for(var l=i|1<<r,u=r+1;i&1<<u;)u++;for(var c=0,f=0,p=0;f<s;f++){var d=1<<f;d&n||(c+=(p%2?-1:1)*t[r][f]*$t(t,e-1,u,l,n|d,o),p++)}return o[a]=c,c}function Jt(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},n=$t(r,8,0,0,0,i);if(0!==n){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*$t(r,7,0===a?1:0,1<<a,1<<s,i)/n*e[a];return function(t,e,r){var i=e*o[6]+r*o[7]+1;t[0]=(e*o[0]+r*o[1]+o[2])/i,t[1]=(e*o[3]+r*o[4]+o[5])/i}}}var te="___zrEVENTSAVED",ee=[];function re(t,e,r,i,n){return ie(ee,e,i,n,!0)&&ie(t,r,ee[0],ee[1])}function ie(t,e,i,n,o){if(e.getBoundingClientRect&&r.domSupported&&!ne(e)){var a=e[te]||(e[te]={}),s=function(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=["left","right"],n=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,h=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",n[h]+":0",i[1-s]+":auto",n[1-h]+":auto",""].join("!important;"),t.appendChild(a),r.push(a)}return r}(e,a),h=function(t,e,r){for(var i=r?"invTrans":"trans",n=e[i],o=e.srcCoords,a=[],s=[],h=!0,l=0;l<4;l++){var u=t[l].getBoundingClientRect(),c=2*l,f=u.left,p=u.top;a.push(f,p),h=h&&o&&f===o[c]&&p===o[c+1],s.push(t[l].offsetLeft,t[l].offsetTop)}return h&&n?n:(e.srcCoords=a,e[i]=r?Jt(s,a):Jt(a,s))}(s,a,o);if(h)return h(t,i,n),!0}return!1}function ne(t){return"CANVAS"===t.nodeName.toUpperCase()}var oe=/([&<>"'])/g,ae={"&":"&","<":"<",">":">",'"':""","'":"'"};function se(t){return null==t?"":(t+"").replace(oe,(function(t,e){return ae[e]}))}var he=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,le=[],ue=r.browser.firefox&&+r.browser.version.split(".")[0]<39;function ce(t,e,r,i){return r=r||{},i?fe(t,e,r):ue&&null!=e.layerX&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):null!=e.offsetX?(r.zrX=e.offsetX,r.zrY=e.offsetY):fe(t,e,r),r}function fe(t,e,i){if(r.domSupported&&t.getBoundingClientRect){var n=e.clientX,o=e.clientY;if(ne(t)){var a=t.getBoundingClientRect();return i.zrX=n-a.left,void(i.zrY=o-a.top)}if(ie(le,t,n,o))return i.zrX=le[0],void(i.zrY=le[1])}i.zrX=i.zrY=0}function pe(t){return t||window.event}function de(t,e,r){if(null!=(e=pe(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var n="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];n&&ce(t,n,e,r)}else{ce(t,e,e,r);var o=function(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(null==r||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(r))*(i>0?-1:i<0?1:r>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&he.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function ve(t,e,r,i){t.addEventListener(e,r,i)}var ye=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function ge(t){return 2===t.which||3===t.which}var _e=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,r){return this._doTrack(t,e,r),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,r){var i=t.touches;if(i){for(var n={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],h=ce(r,s,{});n.points.push([h.zrX,h.zrY]),n.touches.push(s)}this._track.push(n)}},t.prototype._recognize=function(t){for(var e in xe)if(xe.hasOwnProperty(e)){var r=xe[e](this._track,t);if(r)return r}},t}();function me(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}var xe={pinch:function(t,e){var r=t.length;if(r){var i,n=(t[r-1]||{}).points,o=(t[r-2]||{}).points||n;if(o&&o.length>1&&n&&n.length>1){var a=me(n)/me(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=n)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function we(){return[1,0,0,1,0,0]}function be(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ke(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Se(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],o=e[0]*r[2]+e[2]*r[3],a=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],h=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=o,t[3]=a,t[4]=s,t[5]=h,t}function Te(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Ce(t,e,r,i){void 0===i&&(i=[0,0]);var n=e[0],o=e[2],a=e[4],s=e[1],h=e[3],l=e[5],u=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*u,t[1]=-n*u+s*c,t[2]=o*c+h*u,t[3]=-o*u+c*h,t[4]=c*(a-i[0])+u*(l-i[1])+i[0],t[5]=c*(l-i[1])-u*(a-i[0])+i[1],t}function Pe(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Me(t,e){var r=e[0],i=e[2],n=e[4],o=e[1],a=e[3],s=e[5],h=r*a-o*i;return h?(h=1/h,t[0]=a*h,t[1]=-o*h,t[2]=-i*h,t[3]=r*h,t[4]=(i*s-a*n)*h,t[5]=(o*n-r*s)*h,t):null}function Ae(t){var e=[1,0,0,1,0,0];return ke(e,t),e}const Le=Object.freeze(Object.defineProperty({__proto__:null,clone:Ae,copy:ke,create:we,identity:be,invert:Me,mul:Se,rotate:Ce,scale:Pe,translate:Te},Symbol.toStringTag,{value:"Module"}));var Ie=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,r=this.y-t.y;return Math.sqrt(e*e+r*r)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,r=this.y-t.y;return e*e+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,r=this.y;return this.x=t[0]*e+t[2]*r+t[4],this.y=t[1]*e+t[3]*r+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,r){t.x=e,t.y=r},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,r){t.x=e.x+r.x,t.y=e.y+r.y},t.sub=function(t,e,r){t.x=e.x-r.x,t.y=e.y-r.y},t.scale=function(t,e,r){t.x=e.x*r,t.y=e.y*r},t.scaleAndAdd=function(t,e,r,i){t.x=e.x+r.x*i,t.y=e.y+r.y*i},t.lerp=function(t,e,r,i){var n=1-i;t.x=n*e.x+i*r.x,t.y=n*e.y+i*r.y},t}();const Oe=Ie;var De=Math.min,ze=Math.max,Re=new Oe,Fe=new Oe,Be=new Oe,Ne=new Oe,He=new Oe,Ee=new Oe,We=function(){function t(t,e,r,i){r<0&&(t+=r,r=-r),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=r,this.height=i}return t.prototype.union=function(t){var e=De(t.x,this.x),r=De(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ze(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ze(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=e,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,r=t.width/e.width,i=t.height/e.height,n=[1,0,0,1,0,0];return Te(n,n,[-e.x,-e.y]),Pe(n,n,[r,i]),Te(n,n,[t.x,t.y]),n},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,n=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,h=e.x,l=e.x+e.width,u=e.y,c=e.y+e.height,f=!(o<h||l<n||s<u||c<a);if(r){var p=Infinity,d=0,v=Math.abs(o-h),y=Math.abs(l-n),g=Math.abs(s-u),_=Math.abs(c-a),m=Math.min(v,y),x=Math.min(g,_);o<h||l<n?m>d&&(d=m,v<y?Oe.set(Ee,-v,0):Oe.set(Ee,y,0)):m<p&&(p=m,v<y?Oe.set(He,v,0):Oe.set(He,-y,0)),s<u||c<a?x>d&&(d=x,g<_?Oe.set(Ee,0,-g):Oe.set(Ee,0,_)):m<p&&(p=m,g<_?Oe.set(He,0,g):Oe.set(He,0,-_))}return r&&Oe.copy(r,f?He:Ee),f},t.prototype.contain=function(t,e){var r=this;return t>=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,r,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],o=i[3],a=i[4],s=i[5];return e.x=r.x*n+a,e.y=r.y*o+s,e.width=r.width*n,e.height=r.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Re.x=Be.x=r.x,Re.y=Ne.y=r.y,Fe.x=Ne.x=r.x+r.width,Fe.y=Be.y=r.y+r.height,Re.transform(i),Ne.transform(i),Fe.transform(i),Be.transform(i),e.x=De(Re.x,Fe.x,Be.x,Ne.x),e.y=De(Re.y,Fe.y,Be.y,Ne.y);var h=ze(Re.x,Fe.x,Be.x,Ne.x),l=ze(Re.y,Fe.y,Be.y,Ne.y);e.width=h-e.x,e.height=l-e.y}else e!==r&&t.copy(e,r)},t}();const Xe=We;var je="silent";function qe(){ye(this.event)}var Ye=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return kt(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Kt),Ve=function(t,e){this.x=t,this.y=e},Ue=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ge=new Xe(0,0,0,0),Ze=function(t){function e(e,r,i,n,o){var a=t.call(this)||this;return a._hovered=new Ve(0,0),a.storage=e,a.painter=r,a.painterRoot=n,a._pointerSize=o,i=i||new Ye,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new Gt(a),a}return kt(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(z(Ue,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,r=t.zrY,i=$e(this,e,r),n=this._hovered,o=n.target;o&&!o.__zr&&(o=(n=this.findHover(n.x,n.y)).target);var a=this._hovered=i?new Ve(e,r):this.findHover(e,r),s=a.target,h=this.proxy;h.setCursor&&h.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(n,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ve(0,0)},e.prototype.dispatch=function(t,e){var r=this[t];r&&r.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,r){var i=(t=t||{}).target;if(!i||!i.silent){for(var n="on"+e,o=function(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:qe}}(e,t,r);i&&(i[n]&&(o.cancelBubble=!!i[n].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[n]&&t[n].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,r){var i=this.storage.getDisplayList(),n=new Ve(t,e);if(Qe(i,n,t,e,r),this._pointerSize&&!n.target){for(var o=[],a=this._pointerSize,s=a/2,h=new Xe(t-s,e-s,a,a),l=i.length-1;l>=0;l--){var u=i[l];u===r||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(Ge.copy(u.getBoundingRect()),u.transform&&Ge.applyTransform(u.transform),Ge.intersect(h)&&o.push(u))}if(o.length)for(var c=Math.PI/12,f=2*Math.PI,p=0;p<s;p+=4)for(var d=0;d<f;d+=c){if(Qe(o,n,t+p*Math.cos(d),e+p*Math.sin(d),r),n.target)return n}}return n},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new _e);var r=this._gestureMgr;"start"===e&&r.clear();var i=r.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&r.clear(),i){var n=i.type;t.gestureEvent=n;var o=new Ve;o.target=i.target,this.dispatchToElement(o,n,i.event)}},e}(Kt);function Ke(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var i=t,n=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return!n||je}return!1}function Qe(t,e,r,i,n){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==n&&!a.ignore&&(s=Ke(a,r,i))&&(!e.topTarget&&(e.topTarget=a),s!==je)){e.target=a;break}}}function $e(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Ze.prototype[t]=function(e){var r,i,n=e.zrX,o=e.zrY,a=$e(this,n,o);if("mouseup"===t&&a||(i=(r=this.findHover(n,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Nt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(r,t,e)}}));const Je=Ze;function tr(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){for(;n<r&&i(t[n],t[n-1])<0;)n++;!function(t,e,r){r--;for(;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}(t,e,n)}else for(;n<r&&i(t[n],t[n-1])>=0;)n++;return n-e}function er(t,e,r,i,n){for(i===e&&i++;i<r;i++){for(var o,a=t[i],s=e,h=i;s<h;)n(a,t[o=s+h>>>1])<0?h=o:s=o+1;var l=i-s;switch(l){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;l>0;)t[s+l]=t[s+l-1],l--}t[s]=a}}function rr(t,e,r,i,n,o){var a=0,s=0,h=1;if(o(t,e[r+n])>0){for(s=i-n;h<s&&o(t,e[r+n+h])>0;)a=h,(h=1+(h<<1))<=0&&(h=s);h>s&&(h=s),a+=n,h+=n}else{for(s=n+1;h<s&&o(t,e[r+n-h])<=0;)a=h,(h=1+(h<<1))<=0&&(h=s);h>s&&(h=s);var l=a;a=n-h,h=n-l}for(a++;a<h;){var u=a+(h-a>>>1);o(t,e[r+u])>0?a=u+1:h=u}return h}function ir(t,e,r,i,n,o){var a=0,s=0,h=1;if(o(t,e[r+n])<0){for(s=n+1;h<s&&o(t,e[r+n-h])<0;)a=h,(h=1+(h<<1))<=0&&(h=s);h>s&&(h=s);var l=a;a=n-h,h=n-l}else{for(s=i-n;h<s&&o(t,e[r+n+h])>=0;)a=h,(h=1+(h<<1))<=0&&(h=s);h>s&&(h=s),a+=n,h+=n}for(a++;a<h;){var u=a+(h-a>>>1);o(t,e[r+u])<0?h=u:a=u+1}return h}function nr(t,e){var r,i,n=7,o=0,a=[];function s(s){var h=r[s],l=i[s],u=r[s+1],c=i[s+1];i[s]=l+c,s===o-3&&(r[s+1]=r[s+2],i[s+1]=i[s+2]),o--;var f=ir(t[u],t,h,l,0,e);h+=f,0!==(l-=f)&&0!==(c=rr(t[h+l-1],t,u,c,c-1,e))&&(l<=c?function(r,i,o,s){var h=0;for(h=0;h<i;h++)a[h]=t[r+h];var l=0,u=o,c=r;if(t[c++]=t[u++],0==--s){for(h=0;h<i;h++)t[c+h]=a[l+h];return}if(1===i){for(h=0;h<s;h++)t[c+h]=t[u+h];return void(t[c+s]=a[l])}var f,p,d,v=n;for(;;){f=0,p=0,d=!1;do{if(e(t[u],a[l])<0){if(t[c++]=t[u++],p++,f=0,0==--s){d=!0;break}}else if(t[c++]=a[l++],f++,p=0,1==--i){d=!0;break}}while((f|p)<v);if(d)break;do{if(0!==(f=ir(t[u],a,l,i,0,e))){for(h=0;h<f;h++)t[c+h]=a[l+h];if(c+=f,l+=f,(i-=f)<=1){d=!0;break}}if(t[c++]=t[u++],0==--s){d=!0;break}if(0!==(p=rr(a[l],t,u,s,0,e))){for(h=0;h<p;h++)t[c+h]=t[u+h];if(c+=p,u+=p,0===(s-=p)){d=!0;break}}if(t[c++]=a[l++],1==--i){d=!0;break}v--}while(f>=7||p>=7);if(d)break;v<0&&(v=0),v+=2}if((n=v)<1&&(n=1),1===i){for(h=0;h<s;h++)t[c+h]=t[u+h];t[c+s]=a[l]}else{if(0===i)throw new Error;for(h=0;h<i;h++)t[c+h]=a[l+h]}}(h,l,u,c):function(r,i,o,s){var h=0;for(h=0;h<s;h++)a[h]=t[o+h];var l=r+i-1,u=s-1,c=o+s-1,f=0,p=0;if(t[c--]=t[l--],0==--i){for(f=c-(s-1),h=0;h<s;h++)t[f+h]=a[h];return}if(1===s){for(p=(c-=i)+1,f=(l-=i)+1,h=i-1;h>=0;h--)t[p+h]=t[f+h];return void(t[c]=a[u])}var d=n;for(;;){var v=0,y=0,g=!1;do{if(e(a[u],t[l])<0){if(t[c--]=t[l--],v++,y=0,0==--i){g=!0;break}}else if(t[c--]=a[u--],y++,v=0,1==--s){g=!0;break}}while((v|y)<d);if(g)break;do{if(0!==(v=i-ir(a[u],t,r,i,i-1,e))){for(i-=v,p=(c-=v)+1,f=(l-=v)+1,h=v-1;h>=0;h--)t[p+h]=t[f+h];if(0===i){g=!0;break}}if(t[c--]=a[u--],1==--s){g=!0;break}if(0!==(y=s-rr(t[l],a,0,s,s-1,e))){for(s-=y,p=(c-=y)+1,f=(u-=y)+1,h=0;h<y;h++)t[p+h]=a[f+h];if(s<=1){g=!0;break}}if(t[c--]=t[l--],0==--i){g=!0;break}d--}while(v>=7||y>=7);if(g)break;d<0&&(d=0),d+=2}(n=d)<1&&(n=1);if(1===s){for(p=(c-=i)+1,f=(l-=i)+1,h=i-1;h>=0;h--)t[p+h]=t[f+h];t[c]=a[u]}else{if(0===s)throw new Error;for(f=c-(s-1),h=0;h<s;h++)t[f+h]=a[h]}}(h,l,u,c))}return r=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){r[o]=t,i[o]=e,o+=1}}}function or(t,e,r,i){r||(r=0),i||(i=t.length);var n=i-r;if(!(n<2)){var o=0;if(n<32)er(t,r,i,r+(o=tr(t,r,i,e)),e);else{var a=nr(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(n);do{if((o=tr(t,r,i,e))<s){var h=n;h>s&&(h=s),er(t,r,r+h,r+o,e),o=h}a.pushRun(r,o),a.mergeRuns(),n-=o,r+=o}while(0!==n);a.forceMergeRuns()}}}var ar=!1;function sr(){ar||(ar=!0)}function hr(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var lr=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hr}return t.prototype.traverse=function(t,e){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var r=this._displayList;return!t&&r.length||this.updateDisplayList(e),r},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,r=this._displayList,i=0,n=e.length;i<n;i++)this._updateAndAddDisplayable(e[i],null,t);r.length=this._displayListLen,or(r,hr)},t.prototype._updateAndAddDisplayable=function(t,e,r){if(!t.ignore||r){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var n=i,o=t;n;)n.parent=o,n.updateTransform(),e.push(n),o=n,n=n.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var h=a[s];t.__dirty&&(h.__dirty|=1),this._updateAndAddDisplayable(h,e,r)}t.__dirty=0}else{var l=t;e&&e.length?l.__clipPaths=e:l.__clipPaths&&l.__clipPaths.length>0&&(l.__clipPaths=[]),isNaN(l.z)&&(sr(),l.z=0),isNaN(l.z2)&&(sr(),l.z2=0),isNaN(l.zlevel)&&(sr(),l.zlevel=0),this._displayList[this._displayListLen++]=l}var u=t.getDecalElement&&t.getDecalElement();u&&this._updateAndAddDisplayable(u,e,r);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,r);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,r)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,r=t.length;e<r;e++)this.delRoot(t[e]);else{var i=L(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const ur=lr;const cr=r.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var fr={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),-r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=i*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-fr.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*fr.bounceIn(2*t):.5*fr.bounceOut(2*t-1)+.5}};const pr=fr;var dr=Math.pow,vr=Math.sqrt,yr=1e-8,gr=1e-4,_r=vr(3),mr=1/3,xr=St(),wr=St(),br=St();function kr(t){return t>-1e-8&&t<yr}function Sr(t){return t>yr||t<-1e-8}function Tr(t,e,r,i,n){var o=1-n;return o*o*(o*t+3*n*e)+n*n*(n*i+3*o*r)}function Cr(t,e,r,i,n){var o=1-n;return 3*(((e-t)*o+2*(r-e)*n)*o+(i-r)*n*n)}function Pr(t,e,r,i,n,o){var a=i+3*(e-r)-t,s=3*(r-2*e+t),h=3*(e-t),l=t-n,u=s*s-3*a*h,c=s*h-9*a*l,f=h*h-3*s*l,p=0;if(kr(u)&&kr(c)){if(kr(s))o[0]=0;else(S=-h/s)>=0&&S<=1&&(o[p++]=S)}else{var d=c*c-4*u*f;if(kr(d)){var v=c/u,y=-v/2;(S=-s/a+v)>=0&&S<=1&&(o[p++]=S),y>=0&&y<=1&&(o[p++]=y)}else if(d>0){var g=vr(d),_=u*s+1.5*a*(-c+g),m=u*s+1.5*a*(-c-g);(S=(-s-((_=_<0?-dr(-_,mr):dr(_,mr))+(m=m<0?-dr(-m,mr):dr(m,mr))))/(3*a))>=0&&S<=1&&(o[p++]=S)}else{var x=(2*u*s-3*a*c)/(2*vr(u*u*u)),w=Math.acos(x)/3,b=vr(u),k=Math.cos(w),S=(-s-2*b*k)/(3*a),T=(y=(-s+b*(k+_r*Math.sin(w)))/(3*a),(-s+b*(k-_r*Math.sin(w)))/(3*a));S>=0&&S<=1&&(o[p++]=S),y>=0&&y<=1&&(o[p++]=y),T>=0&&T<=1&&(o[p++]=T)}}return p}function Mr(t,e,r,i,n){var o=6*r-12*e+6*t,a=9*e+3*i-3*t-9*r,s=3*e-3*t,h=0;if(kr(a)){if(Sr(o))(u=-s/o)>=0&&u<=1&&(n[h++]=u)}else{var l=o*o-4*a*s;if(kr(l))n[0]=-o/(2*a);else if(l>0){var u,c=vr(l),f=(-o-c)/(2*a);(u=(-o+c)/(2*a))>=0&&u<=1&&(n[h++]=u),f>=0&&f<=1&&(n[h++]=f)}}return h}function Ar(t,e,r,i,n,o){var a=(e-t)*n+t,s=(r-e)*n+e,h=(i-r)*n+r,l=(s-a)*n+a,u=(h-s)*n+s,c=(u-l)*n+l;o[0]=t,o[1]=a,o[2]=l,o[3]=c,o[4]=c,o[5]=u,o[6]=h,o[7]=i}function Lr(t,e,r,i,n,o,a,s,h,l,u){var c,f,p,d,v,y=.005,g=Infinity;xr[0]=h,xr[1]=l;for(var _=0;_<1;_+=.05)wr[0]=Tr(t,r,n,a,_),wr[1]=Tr(e,i,o,s,_),(d=Et(xr,wr))<g&&(c=_,g=d);g=Infinity;for(var m=0;m<32&&!(y<gr);m++)f=c-y,p=c+y,wr[0]=Tr(t,r,n,a,f),wr[1]=Tr(e,i,o,s,f),d=Et(wr,xr),f>=0&&d<g?(c=f,g=d):(br[0]=Tr(t,r,n,a,p),br[1]=Tr(e,i,o,s,p),v=Et(br,xr),p<=1&&v<g?(c=p,g=v):y*=.5);return u&&(u[0]=Tr(t,r,n,a,c),u[1]=Tr(e,i,o,s,c)),vr(g)}function Ir(t,e,r,i,n,o,a,s,h){for(var l=t,u=e,c=0,f=1/h,p=1;p<=h;p++){var d=p*f,v=Tr(t,r,n,a,d),y=Tr(e,i,o,s,d),g=v-l,_=y-u;c+=Math.sqrt(g*g+_*_),l=v,u=y}return c}function Or(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function Dr(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function zr(t,e,r){var i=t+r-2*e;return 0===i?.5:(t-e)/i}function Rr(t,e,r,i,n){var o=(e-t)*i+t,a=(r-e)*i+e,s=(a-o)*i+o;n[0]=t,n[1]=o,n[2]=s,n[3]=s,n[4]=a,n[5]=r}function Fr(t,e,r,i,n,o,a,s,h){var l,u=.005,c=Infinity;xr[0]=a,xr[1]=s;for(var f=0;f<1;f+=.05){wr[0]=Or(t,r,n,f),wr[1]=Or(e,i,o,f),(y=Et(xr,wr))<c&&(l=f,c=y)}c=Infinity;for(var p=0;p<32&&!(u<gr);p++){var d=l-u,v=l+u;wr[0]=Or(t,r,n,d),wr[1]=Or(e,i,o,d);var y=Et(wr,xr);if(d>=0&&y<c)l=d,c=y;else{br[0]=Or(t,r,n,v),br[1]=Or(e,i,o,v);var g=Et(br,xr);v<=1&&g<c?(l=v,c=g):u*=.5}}return h&&(h[0]=Or(t,r,n,l),h[1]=Or(e,i,o,l)),vr(c)}function Br(t,e,r,i,n,o,a){for(var s=t,h=e,l=0,u=1/a,c=1;c<=a;c++){var f=c*u,p=Or(t,r,n,f),d=Or(e,i,o,f),v=p-s,y=d-h;l+=Math.sqrt(v*v+y*y),s=p,h=d}return l}var Nr=/cubic-bezier\(([0-9,\.e ]+)\)/;function Hr(t){var e=t&&Nr.exec(t);if(e){var r=e[1].split(","),i=+st(r[0]),n=+st(r[1]),o=+st(r[2]),a=+st(r[3]);if(isNaN(i+n+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:Pr(0,i,o,1,t,s)&&Tr(0,n,a,1,s[0])}}}const Er=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||mt,this.ondestroy=t.ondestroy||mt,this.onrestart=t.onrestart||mt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var r=this._life,i=t-this._startTime-this._pausedTime,n=i/r;n<0&&(n=0),n=Math.min(n,1);var o=this.easingFunc,a=o?o(n):n;if(this.onframe(a),1===n){if(!this.loop)return!0;var s=i%r;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=j(t)?t:pr[t]||Hr(t)},t}();var Wr=function(t){this.value=t},Xr=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Wr(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,r=t.next;e?e.next=r:this.head=r,r?r.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),jr=function(){function t(t){this._list=new Xr,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var r=this._list,i=this._map,n=null;if(null==i[t]){var o=r.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=r.head;r.remove(s),delete i[s.key],n=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Wr(e),a.key=t,r.insertEntry(a),i[t]=a}return n},t.prototype.get=function(t){var e=this._map[t],r=this._list;if(null!=e)return e!==r.tail&&(r.remove(e),r.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const qr=jr;var Yr={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 Vr(t){return(t=Math.round(t))<0?0:t>255?255:t}function Ur(t){return t<0?0:t>1?1:t}function Gr(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Vr(parseFloat(e)/100*255):Vr(parseInt(e,10))}function Zr(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Ur(parseFloat(e)/100):Ur(parseFloat(e))}function Kr(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function Qr(t,e,r){return t+(e-t)*r}function $r(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function Jr(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var ti=new qr(20),ei=null;function ri(t,e){ei&&Jr(ei,e),ei=ti.put(t,ei||e.slice())}function ii(t,e){if(t){e=e||[];var r=ti.get(t);if(r)return Jr(e,r);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in Yr)return Jr(e,Yr[i]),ri(t,e),e;var n,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(n=parseInt(i.slice(1,4),16))>=0&&n<=4095?($r(e,(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,5===o?parseInt(i.slice(4),16)/15:1),ri(t,e),e):void $r(e,0,0,0,1):7===o||9===o?(n=parseInt(i.slice(1,7),16))>=0&&n<=16777215?($r(e,(16711680&n)>>16,(65280&n)>>8,255&n,9===o?parseInt(i.slice(7),16)/255:1),ri(t,e),e):void $r(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var h=i.substr(0,a),l=i.substr(a+1,s-(a+1)).split(","),u=1;switch(h){case"rgba":if(4!==l.length)return 3===l.length?$r(e,+l[0],+l[1],+l[2],1):$r(e,0,0,0,1);u=Zr(l.pop());case"rgb":return l.length>=3?($r(e,Gr(l[0]),Gr(l[1]),Gr(l[2]),3===l.length?u:Zr(l[3])),ri(t,e),e):void $r(e,0,0,0,1);case"hsla":return 4!==l.length?void $r(e,0,0,0,1):(l[3]=Zr(l[3]),ni(l,e),ri(t,e),e);case"hsl":return 3!==l.length?void $r(e,0,0,0,1):(ni(l,e),ri(t,e),e);default:return}}$r(e,0,0,0,1)}}function ni(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=Zr(t[1]),n=Zr(t[2]),o=n<=.5?n*(i+1):n+i-n*i,a=2*n-o;return $r(e=e||[],Vr(255*Kr(a,o,r+1/3)),Vr(255*Kr(a,o,r)),Vr(255*Kr(a,o,r-1/3)),1),4===t.length&&(e[3]=t[3]),e}function oi(t,e){var r=ii(t);if(r){for(var i=0;i<3;i++)r[i]=e<0?r[i]*(1-e)|0:(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return fi(r,4===r.length?"rgba":"rgb")}}function ai(t,e,r){if(e&&e.length&&t>=0&&t<=1){r=r||[];var i=t*(e.length-1),n=Math.floor(i),o=Math.ceil(i),a=e[n],s=e[o],h=i-n;return r[0]=Vr(Qr(a[0],s[0],h)),r[1]=Vr(Qr(a[1],s[1],h)),r[2]=Vr(Qr(a[2],s[2],h)),r[3]=Ur(Qr(a[3],s[3],h)),r}}var si=ai;function hi(t,e,r){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),n=Math.floor(i),o=Math.ceil(i),a=ii(e[n]),s=ii(e[o]),h=i-n,l=fi([Vr(Qr(a[0],s[0],h)),Vr(Qr(a[1],s[1],h)),Vr(Qr(a[2],s[2],h)),Ur(Qr(a[3],s[3],h))],"rgba");return r?{color:l,leftIndex:n,rightIndex:o,value:i}:l}}var li=hi;function ui(t,e,r,i){var n,o=ii(t);if(t)return o=function(t){if(t){var e,r,i=t[0]/255,n=t[1]/255,o=t[2]/255,a=Math.min(i,n,o),s=Math.max(i,n,o),h=s-a,l=(s+a)/2;if(0===h)e=0,r=0;else{r=l<.5?h/(s+a):h/(2-s-a);var u=((s-i)/6+h/2)/h,c=((s-n)/6+h/2)/h,f=((s-o)/6+h/2)/h;i===s?e=f-c:n===s?e=1/3+u-f:o===s&&(e=2/3+c-u),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,r,l];return null!=t[3]&&p.push(t[3]),p}}(o),null!=e&&(o[0]=(n=e,(n=Math.round(n))<0?0:n>360?360:n)),null!=r&&(o[1]=Zr(r)),null!=i&&(o[2]=Zr(i)),fi(ni(o),"rgba")}function ci(t,e){var r=ii(t);if(r&&null!=e)return r[3]=Ur(e),fi(r,"rgba")}function fi(t,e){if(t&&t.length){var r=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(r+=","+t[3]),e+"("+r+")"}}function pi(t,e){var r=ii(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var di=new qr(100);function vi(t){if(q(t)){var e=di.get(t);return e||(e=oi(t,-.1),di.put(t,e)),e}if(Q(t)){var r=P({},t);return r.colorStops=R(t.colorStops,(function(t){return{offset:t.offset,color:oi(t.color,-.1)}})),r}return t}const yi=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:ai,fastMapToColor:si,lerp:hi,lift:oi,liftColor:vi,lum:pi,mapToColor:li,modifyAlpha:ci,modifyHSL:ui,parse:ii,random:function(){return fi([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:fi,toHex:function(t){var e=ii(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}},Symbol.toStringTag,{value:"Module"}));var gi=Math.round;function _i(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var r=ii(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var mi=1e-4;function xi(t){return t<mi&&t>-1e-4}function wi(t){return gi(1e3*t)/1e3}function bi(t){return gi(1e4*t)/1e4}var ki={left:"start",right:"end",center:"middle",middle:"middle"};function Si(t){return t&&!!t.image}function Ti(t){return Si(t)||function(t){return t&&!!t.svgElement}(t)}function Ci(t){return"linear"===t.type}function Pi(t){return"radial"===t.type}function Mi(t){return t&&("linear"===t.type||"radial"===t.type)}function Ai(t){return"url(#"+t+")"}function Li(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Ii(t){var e=t.x||0,r=t.y||0,i=(t.rotation||0)*xt,n=rt(t.scaleX,1),o=rt(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,h=[];return(e||r)&&h.push("translate("+e+"px,"+r+"px)"),i&&h.push("rotate("+i+")"),1===n&&1===o||h.push("scale("+n+","+o+")"),(a||s)&&h.push("skew("+gi(a*xt)+"deg, "+gi(s*xt)+"deg)"),h.join(" ")}var Oi=r.hasGlobalWindow&&j(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},Di=Array.prototype.slice;function zi(t,e,r){return(e-t)*r+t}function Ri(t,e,r,i){for(var n=e.length,o=0;o<n;o++)t[o]=zi(e[o],r[o],i);return t}function Fi(t,e,r,i){for(var n=e.length,o=0;o<n;o++)t[o]=e[o]+r[o]*i;return t}function Bi(t,e,r,i){for(var n=e.length,o=n&&e[0].length,a=0;a<n;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+r[a][s]*i}return t}function Ni(t,e){for(var r=t.length,i=e.length,n=r>i?e:t,o=Math.min(r,i),a=n[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(r,i);s++)n.push({offset:a.offset,color:a.color.slice()})}function Hi(t,e,r){var i=t,n=e;if(i.push&&n.push){var o=i.length,a=n.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===r?n[s]:Di.call(n[s]));var h=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===r)isNaN(i[s])&&(i[s]=n[s]);else for(var l=0;l<h;l++)isNaN(i[s][l])&&(i[s][l]=n[s][l])}}function Ei(t){if(D(t)){var e=t.length;if(D(t[0])){for(var r=[],i=0;i<e;i++)r.push(Di.call(t[i]));return r}return Di.call(t)}return t}function Wi(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function Xi(t){return 4===t||5===t}function ji(t){return 1===t||2===t}var qi=[0,0,0,0],Yi=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,r){this._needsSort=!0;var i=this.keyframes,n=i.length,o=!1,a=6,s=e;if(D(e)){var h=function(t){return D(t&&t[0])?2:1}(e);a=h,(1===h&&!V(e[0])||2===h&&!V(e[0][0]))&&(o=!0)}else if(V(e)&&!tt(e))a=0;else if(q(e))if(isNaN(+e)){var l=ii(e);l&&(s=l,a=3)}else a=0;else if(Q(e)){var u=P({},s);u.colorStops=R(e.colorStops,(function(t){return{offset:t.offset,color:ii(t.color)}})),Ci(e)?a=4:Pi(e)&&(a=5),s=u}0===n?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return r&&(c.easing=r,c.easingFunc=j(r)?r:pr[r]||Hr(r)),i.push(c),c},t.prototype.prepare=function(t,e){var r=this.keyframes;this._needsSort&&r.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,n=r.length,o=r[n-1],a=this.discrete,s=ji(i),h=Xi(i),l=0;l<n;l++){var u=r[l],c=u.value,f=o.value;u.percent=u.time/t,a||(s&&l!==n-1?Hi(c,f,i):h&&Ni(c.colorStops,f.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var p=r[0].value;for(l=0;l<n;l++)0===i?r[l].additiveValue=r[l].value-p:3===i?r[l].additiveValue=Fi([],r[l].value,p,-1):ji(i)&&(r[l].additiveValue=1===i?Fi([],r[l].value,p,-1):Bi([],r[l].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r,i,n,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,h=this.keyframes,l=h.length,u=this.propName,c=3===s,f=this._lastFr,p=Math.min;if(1===l)i=n=h[0];else{if(e<0)r=0;else if(e<this._lastFrP){for(r=p(f+1,l-1);r>=0&&!(h[r].percent<=e);r--);r=p(r,l-2)}else{for(r=f;r<l&&!(h[r].percent>e);r++);r=p(r-1,l-2)}n=h[r+1],i=h[r]}if(i&&n){this._lastFr=r,this._lastFrP=e;var d=n.percent-i.percent,v=0===d?1:p((e-i.percent)/d,1);n.easingFunc&&(v=n.easingFunc(v));var y=o?this._additiveValue:c?qi:t[u];if(!ji(s)&&!c||y||(y=this._additiveValue=[]),this.discrete)t[u]=v<1?i.rawValue:n.rawValue;else if(ji(s))1===s?Ri(y,i[a],n[a],v):function(t,e,r,i){for(var n=e.length,o=n&&e[0].length,a=0;a<n;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=zi(e[a][s],r[a][s],i)}}(y,i[a],n[a],v);else if(Xi(s)){var g=i[a],_=n[a],m=4===s;t[u]={type:m?"linear":"radial",x:zi(g.x,_.x,v),y:zi(g.y,_.y,v),colorStops:R(g.colorStops,(function(t,e){var r=_.colorStops[e];return{offset:zi(t.offset,r.offset,v),color:Wi(Ri([],t.color,r.color,v))}})),global:_.global},m?(t[u].x2=zi(g.x2,_.x2,v),t[u].y2=zi(g.y2,_.y2,v)):t[u].r=zi(g.r,_.r,v)}else if(c)Ri(y,i[a],n[a],v),o||(t[u]=Wi(y));else{var x=zi(i[a],n[a],v);o?this._additiveValue=x:t[u]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,r=this.propName,i=this._additiveValue;0===e?t[r]=t[r]+i:3===e?(ii(t[r],qi),Fi(qi,qi,i,1),t[r]=Wi(qi)):1===e?Fi(t[r],t[r],i,1):2===e&&Bi(t[r],t[r],i,1)},t}(),Vi=function(){function t(t,e,r,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?k("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=r)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,r){return this.whenWithKeys(t,e,H(e),r)},t.prototype.whenWithKeys=function(t,e,r,i){for(var n=this._tracks,o=0;o<r.length;o++){var a=r[o],s=n[a];if(!s){s=n[a]=new Yi(a);var h=void 0,l=this._getAdditiveTrack(a);if(l){var u=l.keyframes,c=u[u.length-1];h=c&&c.value,3===l.valType&&h&&(h=Wi(h))}else h=this._target[a];if(null==h)continue;t>0&&s.addKeyframe(0,Ei(h),i),this._trackKeys.push(a)}s.addKeyframe(t,Ei(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,r=0;r<e;r++)t[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var r=0;r<e.length;r++)e[r].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,r=0;r<e.length;r++)t[e[r]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,r=this._additiveAnimators;if(r)for(var i=0;i<r.length;i++){var n=r[i].getTrack(t);n&&(e=n)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,r=[],i=this._maxTime||0,n=0;n<this._trackKeys.length;n++){var o=this._trackKeys[n],a=this._tracks[o],s=this._getAdditiveTrack(o),h=a.keyframes,l=h.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var u=h[l-1];u&&(e._target[a.propName]=u.rawValue),a.setFinished()}else r.push(a)}if(r.length||this._force){var c=new Er({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var n=!1,o=0;o<i.length;o++)if(i[o]._clip){n=!0;break}n||(e._additiveAnimators=null)}for(o=0;o<r.length;o++)r[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return R(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var r=this._tracks,i=this._trackKeys,n=0;n<t.length;n++){var o=r[t[n]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(n=0;n<i.length;n++)if(!r[i[n]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,r){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var n=e[i],o=this._tracks[n];if(o&&!o.isFinished()){var a=o.keyframes,s=a[r?0:a.length-1];s&&(t[n]=Ei(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||H(t);for(var r=0;r<e.length;r++){var i=e[r],n=this._tracks[i];if(n){var o=n.keyframes;if(o.length>1){var a=o.pop();n.addKeyframe(a.time,t[i]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},t}();const Ui=Vi;function Gi(){return(new Date).getTime()}const Zi=function(t){function e(e){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,e=e||{},r.stage=e.stage||{},r}return kt(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,r=t.next;e?e.next=r:this._head=r,r?r.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=Gi()-this._pausedTime,r=e-this._time,i=this._head;i;){var n=i.next;i.step(e,r)?(i.ondestroy(),this.removeClip(i),i=n):i=n}this._time=e,t||(this.trigger("frame",r),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,cr((function e(){t._running&&(cr(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=Gi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Gi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Gi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var r=new Ui(t,e.loop);return this.addAnimator(r),r},e}(Kt);var Ki,Qi,$i=r.domSupported,Ji=(Qi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Ki=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:R(Ki,(function(t){var e=t.replace("mouse","pointer");return Qi.hasOwnProperty(e)?e:t}))}),tn=["mousemove","mouseup"],en=["pointermove","pointerup"],rn=!1;function nn(t){var e=t.pointerType;return"pen"===e||"touch"===e}function on(t){t&&(t.zrByTouch=!0)}function an(t,e){for(var r=e,i=!1;r&&9!==r.nodeType&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var sn=function(t,e){this.stopPropagation=mt,this.stopImmediatePropagation=mt,this.preventDefault=mt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},hn={mousedown:function(t){t=de(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=de(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=de(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){an(this,(t=de(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){rn=!0,t=de(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){rn||(t=de(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){on(t=de(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),hn.mousemove.call(this,t),hn.mousedown.call(this,t)},touchmove:function(t){on(t=de(this.dom,t)),this.handler.processGesture(t,"change"),hn.mousemove.call(this,t)},touchend:function(t){on(t=de(this.dom,t)),this.handler.processGesture(t,"end"),hn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&hn.click.call(this,t)},pointerdown:function(t){hn.mousedown.call(this,t)},pointermove:function(t){nn(t)||hn.mousemove.call(this,t)},pointerup:function(t){hn.mouseup.call(this,t)},pointerout:function(t){nn(t)||hn.mouseout.call(this,t)}};z(["click","dblclick","contextmenu"],(function(t){hn[t]=function(e){e=de(this.dom,e),this.trigger(t,e)}}));var ln={pointermove:function(t){nn(t)||ln.mousemove.call(this,t)},pointerup:function(t){ln.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function un(t,e){var i=e.domHandlers;r.pointerEventsSupported?z(Ji.pointer,(function(r){fn(e,r,(function(e){i[r].call(t,e)}))})):(r.touchEventsSupported&&z(Ji.touch,(function(r){fn(e,r,(function(n){i[r].call(t,n),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),z(Ji.mouse,(function(r){fn(e,r,(function(n){n=pe(n),e.touching||i[r].call(t,n)}))})))}function cn(t,e){function i(r){fn(e,r,(function(i){i=pe(i),an(t,i.target)||(i=function(t,e){return de(t.dom,new sn(t,e),!0)}(t,i),e.domHandlers[r].call(t,i))}),{capture:!0})}r.pointerEventsSupported?z(en,i):r.touchEventsSupported||z(tn,i)}function fn(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,ve(t.domTarget,e,r,i)}function pn(t){var e,r,i,n,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,r=a,i=o[a],n=t.listenerOpts[a],e.removeEventListener(r,i,n));t.mounted={}}var dn=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const vn=function(t){function e(e,r){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=r,i._localHandlerScope=new dn(e,hn),$i&&(i._globalHandlerScope=new dn(document,ln)),un(i,i._localHandlerScope),i}return kt(e,t),e.prototype.dispose=function(){pn(this._localHandlerScope),$i&&pn(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,$i&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?cn(this,e):pn(e)}},e}(Kt);var yn=1;r.hasGlobalWindow&&(yn=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var gn=yn,_n="#333",mn="#ccc",xn=be,wn=5e-5;function bn(t){return t>wn||t<-5e-5}var kn=[],Sn=[],Tn=[1,0,0,1,0,0],Cn=Math.abs,Pn=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return bn(this.rotation)||bn(this.x)||bn(this.y)||bn(this.scaleX-1)||bn(this.scaleY-1)||bn(this.skewX)||bn(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),r=this.transform;e||t?(r=r||[1,0,0,1,0,0],e?this.getLocalTransform(r):xn(r),t&&(e?Se(r,t,r):ke(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)):r&&(xn(r),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(kn);var r=kn[0]<0?-1:1,i=kn[1]<0?-1:1,n=((kn[0]-r)*e+r)/kn[0]||0,o=((kn[1]-i)*e+i)/kn[1]||0;t[0]*=n,t[1]*=n,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Me(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),n=Math.PI/2+i-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(n),e=Math.sqrt(e),this.skewX=n,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],Se(Sn,t.invTransform,e),e=Sn);var r=this.originX,i=this.originY;(r||i)&&(Tn[4]=r,Tn[5]=i,Se(Sn,e,Tn),Sn[4]-=r,Sn[5]-=i,e=Sn),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var r=[t,e],i=this.invTransform;return i&&Xt(r,r,i),r},t.prototype.transformCoordToGlobal=function(t,e){var r=[t,e],i=this.transform;return i&&Xt(r,r,i),r},t.prototype.getLineScale=function(){var t=this.transform;return t&&Cn(t[0]-1)>1e-10&&Cn(t[3]-1)>1e-10?Math.sqrt(Cn(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){An(this,t)},t.getLocalTransform=function(t,e){e=e||[];var r=t.originX||0,i=t.originY||0,n=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,h=t.rotation||0,l=t.x,u=t.y,c=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(r||i||a||s){var p=r+a,d=i+s;e[4]=-p*n-c*d*o,e[5]=-d*o-f*p*n}else e[4]=e[5]=0;return e[0]=n,e[3]=o,e[1]=f*n,e[2]=c*o,h&&Ce(e,e,h),e[4]+=r+l,e[5]+=i+u,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),Mn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function An(t,e){for(var r=0;r<Mn.length;r++){var i=Mn[r];t[i]=e[i]}}const Ln=Pn;var In={};function On(t,e){var r=In[e=e||n];r||(r=In[e]=new qr(500));var i=r.get(t);return null==i&&(i=h.measureText(t,e).width,r.put(t,i)),i}function Dn(t,e,r,i){var n=On(t,e),o=Bn(e),a=Rn(0,n,r),s=Fn(0,o,i);return new Xe(a,s,n,o)}function zn(t,e,r,i){var n=((t||"")+"").split("\n");if(1===n.length)return Dn(n[0],e,r,i);for(var o=new Xe(0,0,0,0),a=0;a<n.length;a++){var s=Dn(n[a],e,r,i);0===a?o.copy(s):o.union(s)}return o}function Rn(t,e,r){return"right"===r?t-=e:"center"===r&&(t-=e/2),t}function Fn(t,e,r){return"middle"===r?t-=e/2:"bottom"===r&&(t-=e),t}function Bn(t){return On("国",t)}function Nn(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Hn(t,e,r){var i=e.position||"inside",n=null!=e.distance?e.distance:5,o=r.height,a=r.width,s=o/2,h=r.x,l=r.y,u="left",c="top";if(i instanceof Array)h+=Nn(i[0],r.width),l+=Nn(i[1],r.height),u=null,c=null;else switch(i){case"left":h-=n,l+=s,u="right",c="middle";break;case"right":h+=n+a,l+=s,c="middle";break;case"top":h+=a/2,l-=n,u="center",c="bottom";break;case"bottom":h+=a/2,l+=o+n,u="center";break;case"inside":h+=a/2,l+=s,u="center",c="middle";break;case"insideLeft":h+=n,l+=s,c="middle";break;case"insideRight":h+=a-n,l+=s,u="right",c="middle";break;case"insideTop":h+=a/2,l+=n,u="center";break;case"insideBottom":h+=a/2,l+=o-n,u="center",c="bottom";break;case"insideTopLeft":h+=n,l+=n;break;case"insideTopRight":h+=a-n,l+=n,u="right";break;case"insideBottomLeft":h+=n,l+=o-n,c="bottom";break;case"insideBottomRight":h+=a-n,l+=o-n,u="right",c="bottom"}return(t=t||{}).x=h,t.y=l,t.align=u,t.verticalAlign=c,t}var En="__zr_normal__",Wn=Mn.concat(["ignore"]),Xn=F(Mn,(function(t,e){return t[e]=!0,t}),{ignore:!1}),jn={},qn=new Xe(0,0,0,0),Yn=function(){function t(t){this.id=b(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,r){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,n=e.innerTransformable,o=void 0,a=void 0,s=!1;n.parent=i?this:null;var h=!1;if(n.copyTransform(e),null!=r.position){var l=qn;r.layoutRect?l.copy(r.layoutRect):l.copy(this.getBoundingRect()),i||l.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(jn,r,l):Hn(jn,r,l),n.x=jn.x,n.y=jn.y,o=jn.align,a=jn.verticalAlign;var u=r.origin;if(u&&null!=r.rotation){var c=void 0,f=void 0;"center"===u?(c=.5*l.width,f=.5*l.height):(c=Nn(u[0],l.width),f=Nn(u[1],l.height)),h=!0,n.originX=-n.x+c+(i?0:l.x),n.originY=-n.y+f+(i?0:l.y)}}null!=r.rotation&&(n.rotation=r.rotation);var p=r.offset;p&&(n.x+=p[0],n.y+=p[1],h||(n.originX=-p[0],n.originY=-p[1]));var d=null==r.inside?"string"==typeof r.position&&r.position.indexOf("inside")>=0:r.inside,v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,g=void 0,_=void 0;d&&this.canBeInsideText()?(y=r.insideFill,g=r.insideStroke,null!=y&&"auto"!==y||(y=this.getInsideTextFill()),null!=g&&"auto"!==g||(g=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,g=r.outsideStroke,null!=y&&"auto"!==y||(y=this.getOutsideFill()),null!=g&&"auto"!==g||(g=this.getOutsideStroke(y),_=!0)),(y=y||"#000")===v.fill&&g===v.stroke&&_===v.autoStroke&&o===v.align&&a===v.verticalAlign||(s=!0,v.fill=y,v.stroke=g,v.autoStroke=_,v.align=o,v.verticalAlign=a,e.setDefaultTextStyle(v)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?mn:_n},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),r="string"==typeof e&&ii(e);r||(r=[255,255,255,1]);for(var i=r[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*i+(n?0:255)*(1-i);return r[3]=1,fi(r,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},P(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(U(t))for(var r=H(t),i=0;i<r.length;i++){var n=r[i];this.attrKV(n,t[n])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,r=0;r<this.animators.length;r++){var i=this.animators[r],n=i.__fromStateTransition;if(!(i.getLoop()||n&&n!==En)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Wn)},t.prototype._savePrimaryToNormal=function(t,e,r){for(var i=0;i<r.length;i++){var n=r[i];null==t[n]||n in e||(e[n]=this[n])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(En,!1,t)},t.prototype.useState=function(t,e,r,i){var n=t===En;if(this.hasState()||!n){var o=this.currentStates,a=this.stateTransition;if(!(L(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!n&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||n){n||this.saveCurrentToNormalState(s);var h=!!(s&&s.hoverLayer||i);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!r&&!this.__inHover&&a&&a.duration>0,a);var l=this._textContent,u=this._textGuide;return l&&l.useState(t,e,r,h),u&&u.useState(t,e,r,h),n?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}k("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,r){if(t.length){var i=[],n=this.currentStates,o=t.length,a=o===n.length;if(a)for(var s=0;s<o;s++)if(t[s]!==n[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var h=t[s],l=void 0;this.stateProxy&&(l=this.stateProxy(h,t)),l||(l=this.states[h]),l&&i.push(l)}var u=i[o-1],c=!!(u&&u.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var d=this._textContent,v=this._textGuide;d&&d.useStates(t,e,c),v&&v.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=L(this.currentStates,t);if(e>=0){var r=this.currentStates.slice();r.splice(e,1),this.useStates(r)}},t.prototype.replaceState=function(t,e,r){var i=this.currentStates.slice(),n=L(i,t),o=L(i,e)>=0;n>=0?o?i.splice(n,1):i[n]=e:r&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,r={},i=0;i<t.length;i++){var n=t[i];P(r,n),n.textConfig&&P(e=e||{},n.textConfig)}return e&&(r.textConfig=e),r},t.prototype._applyStateObj=function(t,e,r,i,n,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=P({},i?this.textConfig:r.textConfig),P(this.textConfig,e.textConfig)):a&&r.textConfig&&(this.textConfig=r.textConfig);for(var s={},h=!1,l=0;l<Wn.length;l++){var u=Wn[l],c=n&&Xn[u];e&&null!=e[u]?c?(h=!0,s[u]=e[u]):this[u]=e[u]:a&&null!=r[u]&&(c?(h=!0,s[u]=r[u]):this[u]=r[u])}if(!n)for(l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(e||r)[p]:e||r)}h&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Ln,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),P(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,r=this._textGuide;e&&(e.__inHover=t),r&&(r.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var r=0;r<e.length;r++)t.animation.addAnimator(e[r]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var r=0;r<e.length;r++)t.animation.removeAnimator(e[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,r){var i=t?this[t]:this,n=new Ui(i,e,r);return t&&(n.targetName=t),this.addAnimator(n,t),n},t.prototype.addAnimator=function(t,e){var r=this.__zr,i=this;t.during((function(){i.updateDuringAnimation(e)})).done((function(){var e=i.animators,r=L(e,t);r>=0&&e.splice(r,1)})),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var r=this.animators,i=r.length,n=[],o=0;o<i;o++){var a=r[o];t&&t!==a.scope?n.push(a):a.stop(e)}return this.animators=n,this},t.prototype.animateTo=function(t,e,r){Vn(this,t,e,r)},t.prototype.animateFrom=function(t,e,r){Vn(this,t,e,r,!0)},t.prototype._transitionState=function(t,e,r,i){for(var n=Vn(this,e,r,i),o=0;o<n.length;o++)n[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function r(t,r,i,n){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[n]},set:function(e){t[n]=e}})}Object.defineProperty(e,t,{get:function(){this[r]||o(this,this[r]=[]);return this[r]},set:function(t){this[i]=t[0],this[n]=t[1],this[r]=t,o(this,t)}})}e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),t}();function Vn(t,e,r,i,n){var o=[];Zn(t,"",t,e,r=r||{},i,o,n);var a=o.length,s=!1,h=r.done,l=r.aborted,u=function(){s=!0,--a<=0&&(s?h&&h():l&&l())},c=function(){--a<=0&&(s?h&&h():l&&l())};a||h&&h(),o.length>0&&r.during&&o[0].during((function(t,e){r.during(e)}));for(var f=0;f<o.length;f++){var p=o[f];u&&p.done(u),c&&p.aborted(c),r.force&&p.duration(r.duration),p.start(r.easing)}return o}function Un(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function Gn(t,e,r){if(D(e[r]))if(D(t[r])||(t[r]=[]),Z(e[r])){var i=e[r].length;t[r].length!==i&&(t[r]=new e[r].constructor(i),Un(t[r],e[r],i))}else{var n=e[r],o=t[r],a=n.length;if(D(n[0]))for(var s=n[0].length,h=0;h<a;h++)o[h]?Un(o[h],n[h],s):o[h]=Array.prototype.slice.call(n[h]);else Un(o,n,a);o.length=n.length}else t[r]=e[r]}function Zn(t,e,r,i,n,o,a,s){for(var h=H(i),l=n.duration,u=n.delay,c=n.additive,f=n.setToFinal,p=!U(o),d=t.animators,v=[],y=0;y<h.length;y++){var g=h[y],_=i[g];if(null!=_&&null!=r[g]&&(p||o[g]))if(!U(_)||D(_)||Q(_))v.push(g);else{if(e){s||(r[g]=_,t.updateDuringAnimation(e));continue}Zn(t,g,r[g],_,n,o&&o[g],a,s)}else s||(r[g]=_,t.updateDuringAnimation(e),v.push(g))}var m=v.length;if(!c&&m)for(var x=0;x<d.length;x++){if((b=d[x]).targetName===e)if(b.stopTracks(v)){var w=L(d,b);d.splice(w,1)}}if(n.force||(v=B(v,(function(t){return e=i[t],n=r[t],!(e===n||D(e)&&D(n)&&function(t,e){var r=t.length;if(r!==e.length)return!1;for(var i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}(e,n));var e,n})),m=v.length),m>0||n.force&&!a.length){var b,k=void 0,S=void 0,T=void 0;if(s){S={},f&&(k={});for(x=0;x<m;x++){S[g=v[x]]=r[g],f?k[g]=i[g]:r[g]=i[g]}}else if(f){T={};for(x=0;x<m;x++){T[g=v[x]]=Ei(r[g]),Gn(r,i,g)}}(b=new Ui(r,!1,!1,c?B(d,(function(t){return t.targetName===e})):null)).targetName=e,n.scope&&(b.scope=n.scope),f&&k&&b.whenWithKeys(0,k,v),T&&b.whenWithKeys(0,T,v),b.whenWithKeys(null==l?500:l,s?S:i,v).delay(u||0),t.addAnimator(b,e),a.push(b)}}O(Yn,Kt),O(Yn,Ln);const Kn=Yn;var Qn=function(t){function e(e){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(e),r}return kt(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,r=0;r<e.length;r++)if(e[r].name===t)return e[r]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var r=this._children,i=r.indexOf(e);i>=0&&(r.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var r=L(this._children,t);return r>=0&&this.replaceAt(e,r),this},e.prototype.replaceAt=function(t,e){var r=this._children,i=r[e];if(t&&t!==this&&t.parent!==this&&t!==i){r[e]=t,i.parent=null;var n=this.__zr;n&&i.removeSelfFromZr(n),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,r=this._children,i=L(r,t);return i<0||(r.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,r=0;r<t.length;r++){var i=t[r];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var r=this._children,i=0;i<r.length;i++){var n=r[i];t.call(e,n,i)}return this},e.prototype.traverse=function(t,e){for(var r=0;r<this._children.length;r++){var i=this._children[r],n=t.call(e,i);i.isGroup&&!n&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var r=0;r<this._children.length;r++){this._children[r].addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var r=0;r<this._children.length;r++){this._children[r].removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new Xe(0,0,0,0),r=t||this._children,i=[],n=null,o=0;o<r.length;o++){var a=r[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),h=a.getLocalTransform(i);h?(Xe.applyTransform(e,s,h),(n=n||e.clone()).union(e)):(n=n||s.clone()).union(s)}}return n||e},e}(Kn);Qn.prototype.type="group";const $n=Qn;
- /*!
- * 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 Jn={},to={};var eo,ro=function(){function t(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var o=new ur,a=i.renderer||"canvas";Jn[a]||(a=H(Jn)[0]),i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect;var s=new Jn[a](e,o,i,t),h=i.ssr||s.ssrOnly;this.storage=o,this.painter=s;var l,u=r.node||r.worker||h?null:new vn(s.getViewportRoot(),s.root),c=i.useCoarsePointer;(null==c||"auto"===c?r.touchEventsSupported:!!c)&&(l=rt(i.pointerSize,44)),this.handler=new Je(o,s,u,s.root,l),this.animation=new Zi({stage:{update:h?null:function(){return n._flush(!0)}}}),h||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return pi(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,n=0;n<i;n++)r+=pi(e[n].color,1);return(r/=i)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,r=Gi();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=Gi();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,r){return this._disposed||this.handler.on(t,e,r),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof $n&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete to[t])},t}();function io(t,e){var r=new ro(b(),t,e);return to[r.id]=r,r}function no(t,e){Jn[t]=e}function oo(t){if("function"==typeof eo)return eo(t)}function ao(t){eo=t}const so=Object.freeze(Object.defineProperty({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in to)to.hasOwnProperty(t)&&to[t].dispose();to={}},getElementSSRData:oo,getInstance:function(t){return to[t]},init:io,registerPainter:no,registerSSRDataGetter:ao,version:"5.6.1"},Symbol.toStringTag,{value:"Module"}));var ho=new qr(50);function lo(t){if("string"==typeof t){var e=ho.get(t);return e&&e.image}return t}function uo(t,e,r,i,n){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!r)return e;var o=ho.get(t),a={hostEl:r,cb:i,cbPayload:n};return o?!fo(e=o.image)&&o.pending.push(a):((e=h.loadImage(t,co,co)).__zrImageSrc=t,ho.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function co(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function fo(t){return t&&t.width&&t.height}var po=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function vo(t,e,r,i,n){var o={};return yo(o,t,e,r,i,n),o.text}function yo(t,e,r,i,n,o){if(!r)return t.text="",void(t.isTruncated=!1);var a=(e+"").split("\n");o=go(r,i,n,o);for(var s=!1,h={},l=0,u=a.length;l<u;l++)_o(h,a[l],o),a[l]=h.textLine,s=s||h.isTruncated;t.text=a.join("\n"),t.isTruncated=s}function go(t,e,r,i){var n=P({},i=i||{});n.font=e,r=rt(r,"..."),n.maxIterations=rt(i.maxIterations,2);var o=n.minChar=rt(i.minChar,0);n.cnCharWidth=On("国",e);var a=n.ascCharWidth=On("a",e);n.placeholder=rt(i.placeholder,"");for(var s=t=Math.max(0,t-1),h=0;h<o&&s>=a;h++)s-=a;var l=On(r,e);return l>s&&(r="",l=0),s=t-l,n.ellipsis=r,n.ellipsisWidth=l,n.contentWidth=s,n.containerWidth=t,n}function _o(t,e,r){var i=r.containerWidth,n=r.font,o=r.contentWidth;if(!i)return t.textLine="",void(t.isTruncated=!1);var a=On(e,n);if(a<=i)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=o||s>=r.maxIterations){e+=r.ellipsis;break}var h=0===s?mo(e,o,r.ascCharWidth,r.cnCharWidth):a>0?Math.floor(e.length*o/a):0;a=On(e=e.substr(0,h),n)}""===e&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function mo(t,e,r,i){for(var n=0,o=0,a=t.length;o<a&&n<e;o++){var s=t.charCodeAt(o);n+=0<=s&&s<=127?r:i}return o}var xo=function(){},wo=function(t){this.tokens=[],t&&(this.tokens=t)},bo=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function ko(t,e,r,i,n){var o,a,s=""===e,h=n&&r.rich[n]||{},l=t.lines,u=h.font||r.font,c=!1;if(i){var f=h.padding,p=f?f[1]+f[3]:0;if(null!=h.width&&"auto"!==h.width){var d=Nn(h.width,i.width)+p;l.length>0&&d+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=d}else{var v=Co(e,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=v.accumWidth+p,a=v.linesWidths,o=v.lines}}else o=e.split("\n");for(var y=0;y<o.length;y++){var g=o[y],_=new xo;if(_.styleName=n,_.text=g,_.isLineHolder=!g&&!s,"number"==typeof h.width?_.width=h.width:_.width=a?a[y]:On(g,u),y||c)l.push(new wo([_]));else{var m=(l[l.length-1]||(l[0]=new wo)).tokens,x=m.length;1===x&&m[0].isLineHolder?m[0]=_:(g||!x||s)&&m.push(_)}}}var So=F(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function To(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!So[t]}function Co(t,e,r,i,n){for(var o=[],a=[],s="",h="",l=0,u=0,c=0;c<t.length;c++){var f=t.charAt(c);if("\n"!==f){var p=On(f,e),d=!i&&!To(f);(o.length?u+p>r:n+u+p>r)?u?(s||h)&&(d?(s||(s=h,h="",u=l=0),o.push(s),a.push(u-l),h+=f,s="",u=l+=p):(h&&(s+=h,h="",l=0),o.push(s),a.push(u),s=f,u=p)):d?(o.push(h),a.push(l),h=f,l=p):(o.push(f),a.push(p)):(u+=p,d?(h+=f,l+=p):(h&&(s+=h,h="",l=0),s+=f))}else h&&(s+=h,u+=l),o.push(s),a.push(u),s="",h="",l=0,u=0}return o.length||s||(s=t,h="",l=0),h&&(s+=h),s&&(o.push(s),a.push(u)),1===o.length&&(u+=n),{accumWidth:u,lines:o,linesWidths:a}}var Po="__zr_style_"+Math.round(10*Math.random()),Mo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ao={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Mo[Po]=!0;var Lo=["z","z2","invisible"],Io=["invisible"],Oo=function(t){function e(e){return t.call(this,e)||this}var r;return kt(e,t),e.prototype._init=function(e){for(var r=H(e),i=0;i<r.length;i++){var n=r[i];"style"===n?this.useStyle(e[n]):t.prototype.attrKV.call(this,n,e[n])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,r,i){var n=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,r){Do.copy(t.getBoundingRect()),t.transform&&Do.applyTransform(t.transform);return zo.width=e,zo.height=r,!Do.intersect(zo)}(this,t,e)||n&&!n[0]&&!n[3])return!1;if(r&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var r=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(r[0],r[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,r=this.getBoundingRect(),i=this.style,n=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Xe(0,0,0,0)),e?Xe.applyTransform(t,r,e):t.copy(r),(n||o||a)&&(t.width+=2*n+Math.abs(o),t.height+=2*n+Math.abs(a),t.x=Math.min(t.x,t.x+o-n),t.y=Math.min(t.y,t.y+a-n));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Xe(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,r){"style"!==e?t.prototype.attrKV.call(this,e,r):this.style?this.setStyle(r):this.useStyle(r)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:P(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return yt(Mo,t)},e.prototype.useStyle=function(t){t[Po]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Po]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var r=this._normalState;e.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,r,Lo)},e.prototype._applyStateObj=function(e,r,i,n,o,a){t.prototype._applyStateObj.call(this,e,r,i,n,o,a);var s,h=!(r&&n);if(r&&r.style?o?n?s=r.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,r.style)):(s=this._mergeStyle(this.createStyle(),n?this.style:i.style),this._mergeStyle(s,r.style)):h&&(s=i.style),s)if(o){var l=this.style;if(this.style=this.createStyle(h?{}:l),h)for(var u=H(l),c=0;c<u.length;c++){(p=u[c])in s&&(s[p]=s[p],this.style[p]=l[p])}var f=H(s);for(c=0;c<f.length;c++){var p=f[c];this.style[p]=this.style[p]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var d=this.__inHover?Io:Lo;for(c=0;c<d.length;c++){p=d[c];r&&null!=r[p]?this[p]=r[p]:h&&null!=i[p]&&(this[p]=i[p])}},e.prototype._mergeStates=function(e){for(var r,i=t.prototype._mergeStates.call(this,e),n=0;n<e.length;n++){var o=e[n];o.style&&(r=r||{},this._mergeStyle(r,o.style))}return r&&(i.style=r),i},e.prototype._mergeStyle=function(t,e){return P(t,e),t},e.prototype.getAnimationStyleProps=function(){return Ao},e.initDefaultProps=((r=e.prototype).type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,void(r.__dirty=3)),e}(Kn),Do=new Xe(0,0,0,0),zo=new Xe(0,0,0,0);const Ro=Oo;var Fo=Math.min,Bo=Math.max,No=Math.sin,Ho=Math.cos,Eo=2*Math.PI,Wo=St(),Xo=St(),jo=St();function qo(t,e,r){if(0!==t.length){for(var i=t[0],n=i[0],o=i[0],a=i[1],s=i[1],h=1;h<t.length;h++)i=t[h],n=Fo(n,i[0]),o=Bo(o,i[0]),a=Fo(a,i[1]),s=Bo(s,i[1]);e[0]=n,e[1]=a,r[0]=o,r[1]=s}}function Yo(t,e,r,i,n,o){n[0]=Fo(t,r),n[1]=Fo(e,i),o[0]=Bo(t,r),o[1]=Bo(e,i)}var Vo=[],Uo=[];function Go(t,e,r,i,n,o,a,s,h,l){var u=Mr,c=Tr,f=u(t,r,n,a,Vo);h[0]=Infinity,h[1]=Infinity,l[0]=-Infinity,l[1]=-Infinity;for(var p=0;p<f;p++){var d=c(t,r,n,a,Vo[p]);h[0]=Fo(d,h[0]),l[0]=Bo(d,l[0])}f=u(e,i,o,s,Uo);for(p=0;p<f;p++){var v=c(e,i,o,s,Uo[p]);h[1]=Fo(v,h[1]),l[1]=Bo(v,l[1])}h[0]=Fo(t,h[0]),l[0]=Bo(t,l[0]),h[0]=Fo(a,h[0]),l[0]=Bo(a,l[0]),h[1]=Fo(e,h[1]),l[1]=Bo(e,l[1]),h[1]=Fo(s,h[1]),l[1]=Bo(s,l[1])}function Zo(t,e,r,i,n,o,a,s){var h=zr,l=Or,u=Bo(Fo(h(t,r,n),1),0),c=Bo(Fo(h(e,i,o),1),0),f=l(t,r,n,u),p=l(e,i,o,c);a[0]=Fo(t,n,f),a[1]=Fo(e,o,p),s[0]=Bo(t,n,f),s[1]=Bo(e,o,p)}function Ko(t,e,r,i,n,o,a,s,h){var l=jt,u=qt,c=Math.abs(n-o);if(c%Eo<1e-4&&c>1e-4)return s[0]=t-r,s[1]=e-i,h[0]=t+r,void(h[1]=e+i);if(Wo[0]=Ho(n)*r+t,Wo[1]=No(n)*i+e,Xo[0]=Ho(o)*r+t,Xo[1]=No(o)*i+e,l(s,Wo,Xo),u(h,Wo,Xo),(n%=Eo)<0&&(n+=Eo),(o%=Eo)<0&&(o+=Eo),n>o&&!a?o+=Eo:n<o&&a&&(n+=Eo),a){var f=o;o=n,n=f}for(var p=0;p<o;p+=Math.PI/2)p>n&&(jo[0]=Ho(p)*r+t,jo[1]=No(p)*i+e,l(s,jo,s),u(h,jo,h))}var Qo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$o=[],Jo=[],ta=[],ea=[],ra=[],ia=[],na=Math.min,oa=Math.max,aa=Math.cos,sa=Math.sin,ha=Math.abs,la=Math.PI,ua=2*la,ca="undefined"!=typeof Float32Array,fa=[];function pa(t){return Math.round(t/la*1e8)/1e8%2*la}function da(t,e){var r=pa(t[0]);r<0&&(r+=ua);var i=r-t[0],n=t[1];n+=i,!e&&n-r>=ua?n=r+ua:e&&r-n>=ua?n=r-ua:!e&&r>n?n=r+(ua-pa(r-n)):e&&r<n&&(n=r-(ua-pa(n-r))),t[0]=r,t[1]=n}var va=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,r){(r=r||0)>0&&(this._ux=ha(r/gn/t)||0,this._uy=ha(r/gn/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Qo.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var r=ha(t-this._xi),i=ha(e-this._yi),n=r>this._ux||i>this._uy;if(this.addData(Qo.L,t,e),this._ctx&&n&&this._ctx.lineTo(t,e),n)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=r*r+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,r,i,n,o){return this._drawPendingPt(),this.addData(Qo.C,t,e,r,i,n,o),this._ctx&&this._ctx.bezierCurveTo(t,e,r,i,n,o),this._xi=n,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,r,i){return this._drawPendingPt(),this.addData(Qo.Q,t,e,r,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,r,i),this._xi=r,this._yi=i,this},t.prototype.arc=function(t,e,r,i,n,o){this._drawPendingPt(),fa[0]=i,fa[1]=n,da(fa,o),i=fa[0];var a=(n=fa[1])-i;return this.addData(Qo.A,t,e,r,r,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,r,i,n,o),this._xi=aa(n)*r+t,this._yi=sa(n)*r+e,this},t.prototype.arcTo=function(t,e,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,r,i,n),this},t.prototype.rect=function(t,e,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,r,i),this.addData(Qo.R,t,e,r,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Qo.Z);var t=this._ctx,e=this._x0,r=this._y0;return t&&t.closePath(),this._xi=e,this._yi=r,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!ca||(this.data=new Float32Array(e));for(var r=0;r<e;r++)this.data[r]=t[r];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,r=0,i=this._len,n=0;n<e;n++)r+=t[n].len();ca&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+r));for(n=0;n<e;n++)for(var o=t[n].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},t.prototype.addData=function(t,e,r,i,n,o,a,s,h){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,ca&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){ta[0]=ta[1]=ra[0]=ra[1]=Number.MAX_VALUE,ea[0]=ea[1]=ia[0]=ia[1]=-Number.MAX_VALUE;var t,e=this.data,r=0,i=0,n=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=r=e[t],o=i=e[t+1]),a){case Qo.M:r=n=e[t++],i=o=e[t++],ra[0]=n,ra[1]=o,ia[0]=n,ia[1]=o;break;case Qo.L:Yo(r,i,e[t],e[t+1],ra,ia),r=e[t++],i=e[t++];break;case Qo.C:Go(r,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],ra,ia),r=e[t++],i=e[t++];break;case Qo.Q:Zo(r,i,e[t++],e[t++],e[t],e[t+1],ra,ia),r=e[t++],i=e[t++];break;case Qo.A:var h=e[t++],l=e[t++],u=e[t++],c=e[t++],f=e[t++],p=e[t++]+f;t+=1;var d=!e[t++];s&&(n=aa(f)*u+h,o=sa(f)*c+l),Ko(h,l,u,c,f,p,d,ra,ia),r=aa(p)*u+h,i=sa(p)*c+l;break;case Qo.R:Yo(n=r=e[t++],o=i=e[t++],n+e[t++],o+e[t++],ra,ia);break;case Qo.Z:r=n,i=o}jt(ta,ta,ra),qt(ea,ea,ia)}return 0===t&&(ta[0]=ta[1]=ea[0]=ea[1]=0),new Xe(ta[0],ta[1],ea[0]-ta[0],ea[1]-ta[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,r=this._ux,i=this._uy,n=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var h=this._pathSegLen,l=0,u=0,c=0;c<e;){var f=t[c++],p=1===c;p&&(a=n=t[c],s=o=t[c+1]);var d=-1;switch(f){case Qo.M:n=a=t[c++],o=s=t[c++];break;case Qo.L:var v=t[c++],y=(m=t[c++])-o;(ha(A=v-n)>r||ha(y)>i||c===e-1)&&(d=Math.sqrt(A*A+y*y),n=v,o=m);break;case Qo.C:var g=t[c++],_=t[c++],m=(v=t[c++],t[c++]),x=t[c++],w=t[c++];d=Ir(n,o,g,_,v,m,x,w,10),n=x,o=w;break;case Qo.Q:d=Br(n,o,g=t[c++],_=t[c++],v=t[c++],m=t[c++],10),n=v,o=m;break;case Qo.A:var b=t[c++],k=t[c++],S=t[c++],T=t[c++],C=t[c++],P=t[c++],M=P+C;c+=1,p&&(a=aa(C)*S+b,s=sa(C)*T+k),d=oa(S,T)*na(ua,Math.abs(P)),n=aa(M)*S+b,o=sa(M)*T+k;break;case Qo.R:a=n=t[c++],s=o=t[c++],d=2*t[c++]+2*t[c++];break;case Qo.Z:var A=a-n;y=s-o;d=Math.sqrt(A*A+y*y),n=a,o=s}d>=0&&(h[u++]=d,l+=d)}return this._pathLen=l,l},t.prototype.rebuildPath=function(t,e){var r,i,n,o,a,s,h,l,u,c,f=this.data,p=this._ux,d=this._uy,v=this._len,y=e<1,g=0,_=0,m=0;if(!y||(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,l=e*this._pathLen))t:for(var x=0;x<v;){var w=f[x++],b=1===x;switch(b&&(r=n=f[x],i=o=f[x+1]),w!==Qo.L&&m>0&&(t.lineTo(u,c),m=0),w){case Qo.M:r=n=f[x++],i=o=f[x++],t.moveTo(n,o);break;case Qo.L:a=f[x++],s=f[x++];var k=ha(a-n),S=ha(s-o);if(k>p||S>d){if(y){if(g+(G=h[_++])>l){var T=(l-g)/G;t.lineTo(n*(1-T)+a*T,o*(1-T)+s*T);break t}g+=G}t.lineTo(a,s),n=a,o=s,m=0}else{var C=k*k+S*S;C>m&&(u=a,c=s,m=C)}break;case Qo.C:var P=f[x++],M=f[x++],A=f[x++],L=f[x++],I=f[x++],O=f[x++];if(y){if(g+(G=h[_++])>l){Ar(n,P,A,I,T=(l-g)/G,$o),Ar(o,M,L,O,T,Jo),t.bezierCurveTo($o[1],Jo[1],$o[2],Jo[2],$o[3],Jo[3]);break t}g+=G}t.bezierCurveTo(P,M,A,L,I,O),n=I,o=O;break;case Qo.Q:P=f[x++],M=f[x++],A=f[x++],L=f[x++];if(y){if(g+(G=h[_++])>l){Rr(n,P,A,T=(l-g)/G,$o),Rr(o,M,L,T,Jo),t.quadraticCurveTo($o[1],Jo[1],$o[2],Jo[2]);break t}g+=G}t.quadraticCurveTo(P,M,A,L),n=A,o=L;break;case Qo.A:var D=f[x++],z=f[x++],R=f[x++],F=f[x++],B=f[x++],N=f[x++],H=f[x++],E=!f[x++],W=R>F?R:F,X=ha(R-F)>.001,j=B+N,q=!1;if(y)g+(G=h[_++])>l&&(j=B+N*(l-g)/G,q=!0),g+=G;if(X&&t.ellipse?t.ellipse(D,z,R,F,H,B,j,E):t.arc(D,z,W,B,j,E),q)break t;b&&(r=aa(B)*R+D,i=sa(B)*F+z),n=aa(j)*R+D,o=sa(j)*F+z;break;case Qo.R:r=n=f[x],i=o=f[x+1],a=f[x++],s=f[x++];var Y=f[x++],V=f[x++];if(y){if(g+(G=h[_++])>l){var U=l-g;t.moveTo(a,s),t.lineTo(a+na(U,Y),s),(U-=Y)>0&&t.lineTo(a+Y,s+na(U,V)),(U-=V)>0&&t.lineTo(a+oa(Y-U,0),s+V),(U-=Y)>0&&t.lineTo(a,s+oa(V-U,0));break t}g+=G}t.rect(a,s,Y,V);break;case Qo.Z:if(y){var G;if(g+(G=h[_++])>l){T=(l-g)/G;t.lineTo(n*(1-T)+r*T,o*(1-T)+i*T);break t}g+=G}t.closePath(),n=r,o=i}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=Qo,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();const ya=va;function ga(t,e,r,i,n,o,a){if(0===n)return!1;var s=n,h=0;if(a>e+s&&a>i+s||a<e-s&&a<i-s||o>t+s&&o>r+s||o<t-s&&o<r-s)return!1;if(t===r)return Math.abs(o-t)<=s/2;var l=(h=(e-i)/(t-r))*o-a+(t*i-r*e)/(t-r);return l*l/(h*h+1)<=s/2*s/2}function _a(t,e,r,i,n,o,a,s,h,l,u){if(0===h)return!1;var c=h;return!(u>e+c&&u>i+c&&u>o+c&&u>s+c||u<e-c&&u<i-c&&u<o-c&&u<s-c||l>t+c&&l>r+c&&l>n+c&&l>a+c||l<t-c&&l<r-c&&l<n-c&&l<a-c)&&Lr(t,e,r,i,n,o,a,s,l,u,null)<=c/2}function ma(t,e,r,i,n,o,a,s,h){if(0===a)return!1;var l=a;return!(h>e+l&&h>i+l&&h>o+l||h<e-l&&h<i-l&&h<o-l||s>t+l&&s>r+l&&s>n+l||s<t-l&&s<r-l&&s<n-l)&&Fr(t,e,r,i,n,o,s,h,null)<=l/2}var xa=2*Math.PI;function wa(t){return(t%=xa)<0&&(t+=xa),t}var ba=2*Math.PI;function ka(t,e,r,i,n,o,a,s,h){if(0===a)return!1;var l=a;s-=t,h-=e;var u=Math.sqrt(s*s+h*h);if(u-l>r||u+l<r)return!1;if(Math.abs(i-n)%ba<1e-4)return!0;if(o){var c=i;i=wa(n),n=wa(c)}else i=wa(i),n=wa(n);i>n&&(n+=ba);var f=Math.atan2(h,s);return f<0&&(f+=ba),f>=i&&f<=n||f+ba>=i&&f+ba<=n}function Sa(t,e,r,i,n,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var h=a*(r-t)+t;return h===n?Infinity:h>n?s:0}var Ta=ya.CMD,Ca=2*Math.PI;var Pa=[-1,-1,-1],Ma=[-1,-1];function Aa(t,e,r,i,n,o,a,s,h,l){if(l>e&&l>i&&l>o&&l>s||l<e&&l<i&&l<o&&l<s)return 0;var u,c=Pr(e,i,o,s,l,Pa);if(0===c)return 0;for(var f=0,p=-1,d=void 0,v=void 0,y=0;y<c;y++){var g=Pa[y],_=0===g||1===g?.5:1;Tr(t,r,n,a,g)<h||(p<0&&(p=Mr(e,i,o,s,Ma),Ma[1]<Ma[0]&&p>1&&(u=void 0,u=Ma[0],Ma[0]=Ma[1],Ma[1]=u),d=Tr(e,i,o,s,Ma[0]),p>1&&(v=Tr(e,i,o,s,Ma[1]))),2===p?g<Ma[0]?f+=d<e?_:-_:g<Ma[1]?f+=v<d?_:-_:f+=s<v?_:-_:g<Ma[0]?f+=d<e?_:-_:f+=s<d?_:-_)}return f}function La(t,e,r,i,n,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var h=function(t,e,r,i,n){var o=t-2*e+r,a=2*(e-t),s=t-i,h=0;if(kr(o))Sr(a)&&(u=-s/a)>=0&&u<=1&&(n[h++]=u);else{var l=a*a-4*o*s;if(kr(l))(u=-a/(2*o))>=0&&u<=1&&(n[h++]=u);else if(l>0){var u,c=vr(l),f=(-a-c)/(2*o);(u=(-a+c)/(2*o))>=0&&u<=1&&(n[h++]=u),f>=0&&f<=1&&(n[h++]=f)}}return h}(e,i,o,s,Pa);if(0===h)return 0;var l=zr(e,i,o);if(l>=0&&l<=1){for(var u=0,c=Or(e,i,o,l),f=0;f<h;f++){var p=0===Pa[f]||1===Pa[f]?.5:1;Or(t,r,n,Pa[f])<a||(Pa[f]<l?u+=c<e?p:-p:u+=o<c?p:-p)}return u}p=0===Pa[0]||1===Pa[0]?.5:1;return Or(t,r,n,Pa[0])<a?0:o<e?p:-p}function Ia(t,e,r,i,n,o,a,s){if((s-=e)>r||s<-r)return 0;var h=Math.sqrt(r*r-s*s);Pa[0]=-h,Pa[1]=h;var l=Math.abs(i-n);if(l<1e-4)return 0;if(l>=Ca-1e-4){i=0,n=Ca;var u=o?1:-1;return a>=Pa[0]+t&&a<=Pa[1]+t?u:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=Ca,n+=Ca);for(var f=0,p=0;p<2;p++){var d=Pa[p];if(d+t>a){var v=Math.atan2(s,d);u=o?1:-1;v<0&&(v=Ca+v),(v>=i&&v<=n||v+Ca>=i&&v+Ca<=n)&&(v>Math.PI/2&&v<1.5*Math.PI&&(u=-u),f+=u)}}return f}function Oa(t,e,r,i,n){for(var o,a,s,h,l=t.data,u=t.len(),c=0,f=0,p=0,d=0,v=0,y=0;y<u;){var g=l[y++],_=1===y;switch(g===Ta.M&&y>1&&(r||(c+=Sa(f,p,d,v,i,n))),_&&(d=f=l[y],v=p=l[y+1]),g){case Ta.M:f=d=l[y++],p=v=l[y++];break;case Ta.L:if(r){if(ga(f,p,l[y],l[y+1],e,i,n))return!0}else c+=Sa(f,p,l[y],l[y+1],i,n)||0;f=l[y++],p=l[y++];break;case Ta.C:if(r){if(_a(f,p,l[y++],l[y++],l[y++],l[y++],l[y],l[y+1],e,i,n))return!0}else c+=Aa(f,p,l[y++],l[y++],l[y++],l[y++],l[y],l[y+1],i,n)||0;f=l[y++],p=l[y++];break;case Ta.Q:if(r){if(ma(f,p,l[y++],l[y++],l[y],l[y+1],e,i,n))return!0}else c+=La(f,p,l[y++],l[y++],l[y],l[y+1],i,n)||0;f=l[y++],p=l[y++];break;case Ta.A:var m=l[y++],x=l[y++],w=l[y++],b=l[y++],k=l[y++],S=l[y++];y+=1;var T=!!(1-l[y++]);o=Math.cos(k)*w+m,a=Math.sin(k)*b+x,_?(d=o,v=a):c+=Sa(f,p,o,a,i,n);var C=(i-m)*b/w+m;if(r){if(ka(m,x,b,k,k+S,T,e,C,n))return!0}else c+=Ia(m,x,b,k,k+S,T,C,n);f=Math.cos(k+S)*w+m,p=Math.sin(k+S)*b+x;break;case Ta.R:if(d=f=l[y++],v=p=l[y++],o=d+l[y++],a=v+l[y++],r){if(ga(d,v,o,v,e,i,n)||ga(o,v,o,a,e,i,n)||ga(o,a,d,a,e,i,n)||ga(d,a,d,v,e,i,n))return!0}else c+=Sa(o,v,o,a,i,n),c+=Sa(d,a,d,v,i,n);break;case Ta.Z:if(r){if(ga(f,p,d,v,e,i,n))return!0}else c+=Sa(f,p,d,v,i,n);f=d,p=v}}return r||(s=p,h=v,Math.abs(s-h)<1e-4)||(c+=Sa(f,p,d,v,i,n)||0),0!==c}var Da=M({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Mo),za={style:M({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ao.style)},Ra=Mn.concat(["invisible","culling","z","z2","zlevel","parent"]);const Fa=function(t){function e(e){return t.call(this,e)||this}var r;return kt(e,t),e.prototype.update=function(){var r=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(t){r.buildPath(t,r.shape)}),n.silent=!0;var o=n.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<Ra.length;++s)n[Ra[s]]=this[Ra[s]];n.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var r=H(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var n=0;n<r.length;n++){var o=r[n],a=e[o];"style"===o?this.style?P(this.style,a):this.useStyle(a):"shape"===o?P(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(q(t)){var e=pi(t,0);return e>.5?_n:e>.2?"#eee":mn}if(t)return mn}return _n},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(q(e)){var r=this.__zr;if(!(!r||!r.isDarkMode())===pi(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,r){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new ya(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,r=!t;if(r){var i=!1;this.path||(i=!0,this.createPathProxy());var n=this.path;(i||4&this.__dirty)&&(n.beginPath(),this.buildPath(n,this.shape,!1),this.pathUpdated()),t=n.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||r){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;s=Math.max(s,null==h?4:h)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var r=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),n=this.style;if(t=r[0],e=r[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=n.lineWidth,s=n.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,r,i){return Oa(t,e,!0,r,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,r){return Oa(t,0,!1,e,r)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,r){"shape"===e?this.setShape(r):t.prototype.attrKV.call(this,e,r)},e.prototype.setShape=function(t,e){var r=this.shape;return r||(r=this.shape={}),"string"==typeof t?r[t]=e:P(r,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return yt(Da,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var r=this._normalState;e.shape&&!r.shape&&(r.shape=P({},this.shape))},e.prototype._applyStateObj=function(e,r,i,n,o,a){t.prototype._applyStateObj.call(this,e,r,i,n,o,a);var s,h=!(r&&n);if(r&&r.shape?o?n?s=r.shape:(s=P({},i.shape),P(s,r.shape)):(s=P({},n?this.shape:i.shape),P(s,r.shape)):h&&(s=i.shape),s)if(o){this.shape=P({},this.shape);for(var l={},u=H(s),c=0;c<u.length;c++){var f=u[c];"object"==typeof s[f]?this.shape[f]=s[f]:l[f]=s[f]}this._transitionState(e,{shape:l},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var r,i=t.prototype._mergeStates.call(this,e),n=0;n<e.length;n++){var o=e[n];o.shape&&(r=r||{},this._mergeStyle(r,o.shape))}return r&&(i.shape=r),i},e.prototype.getAnimationStyleProps=function(){return za},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var r=function(e){function r(r){var i=e.call(this,r)||this;return t.init&&t.init.call(i,r),i}return kt(r,e),r.prototype.getDefaultStyle=function(){return S(t.style)},r.prototype.getDefaultShape=function(){return S(t.shape)},r}(e);for(var i in t)"function"==typeof t[i]&&(r.prototype[i]=t[i]);return r},e.initDefaultProps=((r=e.prototype).type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,void(r.__dirty=7)),e}(Ro);var Ba=M({strokeFirst:!0,font:n,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Da),Na=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kt(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return yt(Ba,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var r=zn(e,t.font,t.textAlign,t.textBaseline);if(r.x+=t.x||0,r.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;r.x-=i/2,r.y-=i/2,r.width+=i,r.height+=i}this._rect=r}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Ro);Na.prototype.type="tspan";const Ha=Na;var Ea=M({x:0,y:0},Mo),Wa={style:M({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ao.style)};var Xa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kt(e,t),e.prototype.createStyle=function(t){return yt(Ea,t)},e.prototype._getSize=function(t){var e=this.style,r=e[t];if(null!=r)return r;var i,n=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!n)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?n[t]:n[t]/n[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Wa},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Xe(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Ro);Xa.prototype.type="image";const ja=Xa;var qa=Math.round;function Ya(t,e,r){if(e){var i=e.x1,n=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=n,t.y1=o,t.y2=a;var s=r&&r.lineWidth;return s?(qa(2*i)===qa(2*n)&&(t.x1=t.x2=Ua(i,s,!0)),qa(2*o)===qa(2*a)&&(t.y1=t.y2=Ua(o,s,!0)),t):t}}function Va(t,e,r){if(e){var i=e.x,n=e.y,o=e.width,a=e.height;t.x=i,t.y=n,t.width=o,t.height=a;var s=r&&r.lineWidth;return s?(t.x=Ua(i,s,!0),t.y=Ua(n,s,!0),t.width=Math.max(Ua(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Ua(n+a,s,!1)-t.y,0===a?0:1),t):t}}function Ua(t,e,r){if(!e)return t;var i=qa(2*t);return(i+qa(e))%2==0?i/2:(i+(r?1:-1))/2}var Ga=function(){this.x=0,this.y=0,this.width=0,this.height=0},Za={},Ka=function(t){function e(e){return t.call(this,e)||this}return kt(e,t),e.prototype.getDefaultShape=function(){return new Ga},e.prototype.buildPath=function(t,e){var r,i,n,o;if(this.subPixelOptimize){var a=Va(Za,e,this.style);r=a.x,i=a.y,n=a.width,o=a.height,a.r=e.r,e=a}else r=e.x,i=e.y,n=e.width,o=e.height;e.r?function(t,e){var r,i,n,o,a,s=e.x,h=e.y,l=e.width,u=e.height,c=e.r;l<0&&(s+=l,l=-l),u<0&&(h+=u,u=-u),"number"==typeof c?r=i=n=o=c:c instanceof Array?1===c.length?r=i=n=o=c[0]:2===c.length?(r=n=c[0],i=o=c[1]):3===c.length?(r=c[0],i=o=c[1],n=c[2]):(r=c[0],i=c[1],n=c[2],o=c[3]):r=i=n=o=0,r+i>l&&(r*=l/(a=r+i),i*=l/a),n+o>l&&(n*=l/(a=n+o),o*=l/a),i+n>u&&(i*=u/(a=i+n),n*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),t.moveTo(s+r,h),t.lineTo(s+l-i,h),0!==i&&t.arc(s+l-i,h+i,i,-Math.PI/2,0),t.lineTo(s+l,h+u-n),0!==n&&t.arc(s+l-n,h+u-n,n,0,Math.PI/2),t.lineTo(s+o,h+u),0!==o&&t.arc(s+o,h+u-o,o,Math.PI/2,Math.PI),t.lineTo(s,h+r),0!==r&&t.arc(s+r,h+r,r,Math.PI,1.5*Math.PI)}(t,e):t.rect(r,i,n,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Fa);Ka.prototype.type="rect";const Qa=Ka;var $a={fill:"#000"},Ja={style:M({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ao.style)},ts=function(t){function e(e){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=$a,r.attr(e),r}return kt(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var r=this._children[e];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var r=this.innerTransformable;return r?r.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,ss(t=this.style),z(t.rich,ss),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var r=0;r<this._children.length;r++)this._children[r].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Xe(0,0,0,0),e=this._children,r=[],i=null,n=0;n<e.length;n++){var o=e[n],a=o.getBoundingRect(),s=o.getLocalTransform(r);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||$a},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var r=e.rich,i=t.rich||r&&{};return P(t,e),r&&i?(this._mergeRich(i,r),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var r=H(e),i=0;i<r.length;i++){var n=r[i];t[n]=t[n]||{},P(t[n],e[n])}},e.prototype.getAnimationStyleProps=function(){return Ja},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||n,r=t.padding,i=function(t,e){null!=t&&(t+="");var r,i=e.overflow,n=e.padding,o=e.font,a="truncate"===i,s=Bn(o),h=rt(e.lineHeight,s),l=!!e.backgroundColor,u="truncate"===e.lineOverflow,c=!1,f=e.width,p=(r=null==f||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?Co(t,e.font,f,"breakAll"===i,0).lines:[]).length*h,d=rt(e.height,p);if(p>d&&u){var v=Math.floor(d/h);c=c||r.length>v,r=r.slice(0,v)}if(t&&a&&null!=f)for(var y=go(f,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g={},_=0;_<r.length;_++)_o(g,r[_],y),r[_]=g.textLine,c=c||g.isTruncated;var m=d,x=0;for(_=0;_<r.length;_++)x=Math.max(On(r[_],o),x);null==f&&(f=x);var w=x;return n&&(m+=n[0]+n[2],w+=n[1]+n[3],f+=n[1]+n[3]),l&&(w=f),{lines:r,height:d,outerWidth:w,outerHeight:m,lineHeight:h,calculatedLineHeight:s,contentWidth:x,contentHeight:p,width:f,isTruncated:c}}(cs(t),t),o=fs(t),a=!!t.backgroundColor,s=i.outerHeight,h=i.outerWidth,l=i.contentWidth,u=i.lines,c=i.lineHeight,f=this._defaultStyle;this.isTruncated=!!i.isTruncated;var p=t.x||0,d=t.y||0,v=t.align||f.align||"left",y=t.verticalAlign||f.verticalAlign||"top",g=p,_=Fn(d,i.contentHeight,y);if(o||r){var m=Rn(p,h,v),x=Fn(d,s,y);o&&this._renderBackground(t,t,m,x,h,s)}_+=c/2,r&&(g=us(p,v,r),"top"===y?_+=r[0]:"bottom"===y&&(_-=r[2]));for(var w=0,b=!1,k=(ls("fill"in t?t.fill:(b=!0,f.fill))),S=(hs("stroke"in t?t.stroke:a||f.autoStroke&&!b?null:(w=2,f.stroke))),T=t.textShadowBlur>0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),P=i.calculatedLineHeight,M=0;M<u.length;M++){var A=this._getOrCreateChild(Ha),L=A.createStyle();A.useStyle(L),L.text=u[M],L.x=g,L.y=_,v&&(L.textAlign=v),L.textBaseline="middle",L.opacity=t.opacity,L.strokeFirst=!0,T&&(L.shadowBlur=t.textShadowBlur||0,L.shadowColor=t.textShadowColor||"transparent",L.shadowOffsetX=t.textShadowOffsetX||0,L.shadowOffsetY=t.textShadowOffsetY||0),L.stroke=S,L.fill=k,S&&(L.lineWidth=t.lineWidth||w,L.lineDash=t.lineDash,L.lineDashOffset=t.lineDashOffset||0),L.font=e,os(L,t),_+=c,C&&A.setBoundingRect(new Xe(Rn(L.x,l,L.textAlign),Fn(L.y,P,L.textBaseline),l,P))}},e.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var r=new bo;if(null!=t&&(t+=""),!t)return r;for(var i,n=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==n?null:{width:n,accumWidth:0,breakAll:"breakAll"===a},h=po.lastIndex=0;null!=(i=po.exec(t));){var l=i.index;l>h&&ko(r,t.substring(h,l),e,s),ko(r,i[2],e,s,i[1]),h=po.lastIndex}h<t.length&&ko(r,t.substring(h,t.length),e,s);var u=[],c=0,f=0,p=e.padding,d="truncate"===a,v="truncate"===e.lineOverflow,y={};function g(t,e,r){t.width=e,t.lineHeight=r,c+=r,f=Math.max(f,e)}t:for(var _=0;_<r.lines.length;_++){for(var m=r.lines[_],x=0,w=0,b=0;b<m.tokens.length;b++){var k=(z=m.tokens[b]).styleName&&e.rich[z.styleName]||{},S=z.textPadding=k.padding,T=S?S[1]+S[3]:0,C=z.font=k.font||e.font;z.contentHeight=Bn(C);var P=rt(k.height,z.contentHeight);if(z.innerHeight=P,S&&(P+=S[0]+S[2]),z.height=P,z.lineHeight=it(k.lineHeight,e.lineHeight,P),z.align=k&&k.align||e.align,z.verticalAlign=k&&k.verticalAlign||"middle",v&&null!=o&&c+z.lineHeight>o){var M=r.lines.length;b>0?(m.tokens=m.tokens.slice(0,b),g(m,w,x),r.lines=r.lines.slice(0,_+1)):r.lines=r.lines.slice(0,_),r.isTruncated=r.isTruncated||r.lines.length<M;break t}var A=k.width,L=null==A||"auto"===A;if("string"==typeof A&&"%"===A.charAt(A.length-1))z.percentWidth=A,u.push(z),z.contentWidth=On(z.text,C);else{if(L){var I=k.backgroundColor,O=I&&I.image;O&&fo(O=lo(O))&&(z.width=Math.max(z.width,O.width*P/O.height))}var D=d&&null!=n?n-w:null;null!=D&&D<z.width?!L||D<T?(z.text="",z.width=z.contentWidth=0):(yo(y,z.text,D-T,C,e.ellipsis,{minChar:e.truncateMinChar}),z.text=y.text,r.isTruncated=r.isTruncated||y.isTruncated,z.width=z.contentWidth=On(z.text,C)):z.contentWidth=On(z.text,C)}z.width+=T,w+=z.width,k&&(x=Math.max(x,z.lineHeight))}g(m,w,x)}for(r.outerWidth=r.width=rt(n,f),r.outerHeight=r.height=rt(o,c),r.contentHeight=c,r.contentWidth=f,p&&(r.outerWidth+=p[1]+p[3],r.outerHeight+=p[0]+p[2]),_=0;_<u.length;_++){var z,R=(z=u[_]).percentWidth;z.width=parseInt(R,10)/100*r.width}return r}(cs(t),t),r=e.width,i=e.outerWidth,n=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,h=this._defaultStyle,l=t.align||h.align,u=t.verticalAlign||h.verticalAlign;this.isTruncated=!!e.isTruncated;var c=Rn(a,i,l),f=Fn(s,n,u),p=c,d=f;o&&(p+=o[3],d+=o[0]);var v=p+r;fs(t)&&this._renderBackground(t,t,c,f,i,n);for(var y=!!t.backgroundColor,g=0;g<e.lines.length;g++){for(var _=e.lines[g],m=_.tokens,x=m.length,w=_.lineHeight,b=_.width,k=0,S=p,T=v,C=x-1,P=void 0;k<x&&(!(P=m[k]).align||"left"===P.align);)this._placeToken(P,t,w,d,S,"left",y),b-=P.width,S+=P.width,k++;for(;C>=0&&"right"===(P=m[C]).align;)this._placeToken(P,t,w,d,T,"right",y),b-=P.width,T-=P.width,C--;for(S+=(r-(S-p)-(v-T)-b)/2;k<=C;)P=m[k],this._placeToken(P,t,w,d,S+P.width/2,"center",y),S+=P.width,k++;d+=w}},e.prototype._placeToken=function(t,e,r,i,o,a,s){var h=e.rich[t.styleName]||{};h.text=t.text;var l=t.verticalAlign,u=i+r/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+r-t.height/2),!t.isLineHolder&&fs(h)&&this._renderBackground(h,e,"right"===a?o-t.width:"center"===a?o-t.width/2:o,u-t.height/2,t.width,t.height);var c=!!h.backgroundColor,f=t.textPadding;f&&(o=us(o,a,f),u-=t.height/2-f[0]-t.innerHeight/2);var p=this._getOrCreateChild(Ha),d=p.createStyle();p.useStyle(d);var v=this._defaultStyle,y=!1,g=0,_=ls("fill"in h?h.fill:"fill"in e?e.fill:(y=!0,v.fill)),m=hs("stroke"in h?h.stroke:"stroke"in e?e.stroke:c||s||v.autoStroke&&!y?null:(g=2,v.stroke)),x=h.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=o,d.y=u,x&&(d.shadowBlur=h.textShadowBlur||e.textShadowBlur||0,d.shadowColor=h.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=h.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=h.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=a,d.textBaseline="middle",d.font=t.font||n,d.opacity=it(h.opacity,e.opacity,1),os(d,h),m&&(d.lineWidth=it(h.lineWidth,e.lineWidth,g),d.lineDash=rt(h.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=m),_&&(d.fill=_);var w=t.contentWidth,b=t.contentHeight;p.setBoundingRect(new Xe(Rn(d.x,w,d.textAlign),Fn(d.y,b,d.textBaseline),w,b))},e.prototype._renderBackground=function(t,e,r,i,n,o){var a,s,h,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,f=l&&l.image,p=l&&!f,d=t.borderRadius,v=this;if(p||t.lineHeight||u&&c){(a=this._getOrCreateChild(Qa)).useStyle(a.createStyle()),a.style.fill=null;var y=a.shape;y.x=r,y.y=i,y.width=n,y.height=o,y.r=d,a.dirtyShape()}if(p)(h=a.style).fill=l||null,h.fillOpacity=rt(t.fillOpacity,1);else if(f){(s=this._getOrCreateChild(ja)).onload=function(){v.dirtyStyle()};var g=s.style;g.image=l.image,g.x=r,g.y=i,g.width=n,g.height=o}u&&c&&((h=a.style).lineWidth=u,h.stroke=c,h.strokeOpacity=rt(t.strokeOpacity,1),h.lineDash=t.borderDash,h.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2));var _=(a||s).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=it(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return as(t)&&(e=[t.fontStyle,t.fontWeight,ns(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&st(e)||t.textFont||t.font},e}(Ro),es={left:!0,right:1,center:1},rs={top:1,bottom:1,middle:1},is=["fontStyle","fontWeight","fontSize","fontFamily"];function ns(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function os(t,e){for(var r=0;r<is.length;r++){var i=is[r],n=e[i];null!=n&&(t[i]=n)}}function as(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function ss(t){if(t){t.font=ts.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||es[e]?e:"left";var r=t.verticalAlign;"center"===r&&(r="middle"),t.verticalAlign=null==r||rs[r]?r:"top",t.padding&&(t.padding=ot(t.padding))}}function hs(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function ls(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function us(t,e,r){return"right"===e?t-r[1]:"center"===e?t+r[3]/2-r[1]/2:t+r[3]}function cs(t){var e=t.text;return null!=e&&(e+=""),e}function fs(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const ps=ts;var ds=ya.CMD,vs=[[],[],[]],ys=Math.sqrt,gs=Math.atan2;function _s(t,e){if(e){var r,i,n,o,a,s,h=t.data,l=t.len(),u=ds.M,c=ds.C,f=ds.L,p=ds.R,d=ds.A,v=ds.Q;for(n=0,o=0;n<l;){switch(r=h[n++],o=n,i=0,r){case u:case f:i=1;break;case c:i=3;break;case v:i=2;break;case d:var y=e[4],g=e[5],_=ys(e[0]*e[0]+e[1]*e[1]),m=ys(e[2]*e[2]+e[3]*e[3]),x=gs(-e[1]/m,e[0]/_);h[n]*=_,h[n++]+=y,h[n]*=m,h[n++]+=g,h[n++]*=_,h[n++]*=m,h[n++]+=x,h[n++]+=x,o=n+=2;break;case p:s[0]=h[n++],s[1]=h[n++],Xt(s,s,e),h[o++]=s[0],h[o++]=s[1],s[0]+=h[n++],s[1]+=h[n++],Xt(s,s,e),h[o++]=s[0],h[o++]=s[1]}for(a=0;a<i;a++){var w=vs[a];w[0]=h[n++],w[1]=h[n++],Xt(w,w,e),h[o++]=w[0],h[o++]=w[1]}}t.increaseVersion()}}var ms=Math.sqrt,xs=Math.sin,ws=Math.cos,bs=Math.PI;function ks(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ss(t,e){return(t[0]*e[0]+t[1]*e[1])/(ks(t)*ks(e))}function Ts(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ss(t,e))}function Cs(t,e,r,i,n,o,a,s,h,l,u){var c=h*(bs/180),f=ws(c)*(t-r)/2+xs(c)*(e-i)/2,p=-1*xs(c)*(t-r)/2+ws(c)*(e-i)/2,d=f*f/(a*a)+p*p/(s*s);d>1&&(a*=ms(d),s*=ms(d));var v=(n===o?-1:1)*ms((a*a*(s*s)-a*a*(p*p)-s*s*(f*f))/(a*a*(p*p)+s*s*(f*f)))||0,y=v*a*p/s,g=v*-s*f/a,_=(t+r)/2+ws(c)*y-xs(c)*g,m=(e+i)/2+xs(c)*y+ws(c)*g,x=Ts([1,0],[(f-y)/a,(p-g)/s]),w=[(f-y)/a,(p-g)/s],b=[(-1*f-y)/a,(-1*p-g)/s],k=Ts(w,b);if(Ss(w,b)<=-1&&(k=bs),Ss(w,b)>=1&&(k=0),k<0){var S=Math.round(k/bs*1e6)/1e6;k=2*bs+S%2*bs}u.addData(l,_,m,a,s,x,k,c,o)}var Ps=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Ms=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var As=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kt(e,t),e.prototype.applyTransform=function(t){},e}(Fa);function Ls(t){return null!=t.setData}function Is(t,e){var r=function(t){var e=new ya;if(!t)return e;var r,i=0,n=0,o=i,a=n,s=ya.CMD,h=t.match(Ps);if(!h)return e;for(var l=0;l<h.length;l++){for(var u=h[l],c=u.charAt(0),f=void 0,p=u.match(Ms)||[],d=p.length,v=0;v<d;v++)p[v]=parseFloat(p[v]);for(var y=0;y<d;){var g=void 0,_=void 0,m=void 0,x=void 0,w=void 0,b=void 0,k=void 0,S=i,T=n,C=void 0,P=void 0;switch(c){case"l":i+=p[y++],n+=p[y++],f=s.L,e.addData(f,i,n);break;case"L":i=p[y++],n=p[y++],f=s.L,e.addData(f,i,n);break;case"m":i+=p[y++],n+=p[y++],f=s.M,e.addData(f,i,n),o=i,a=n,c="l";break;case"M":i=p[y++],n=p[y++],f=s.M,e.addData(f,i,n),o=i,a=n,c="L";break;case"h":i+=p[y++],f=s.L,e.addData(f,i,n);break;case"H":i=p[y++],f=s.L,e.addData(f,i,n);break;case"v":n+=p[y++],f=s.L,e.addData(f,i,n);break;case"V":n=p[y++],f=s.L,e.addData(f,i,n);break;case"C":f=s.C,e.addData(f,p[y++],p[y++],p[y++],p[y++],p[y++],p[y++]),i=p[y-2],n=p[y-1];break;case"c":f=s.C,e.addData(f,p[y++]+i,p[y++]+n,p[y++]+i,p[y++]+n,p[y++]+i,p[y++]+n),i+=p[y-2],n+=p[y-1];break;case"S":g=i,_=n,C=e.len(),P=e.data,r===s.C&&(g+=i-P[C-4],_+=n-P[C-3]),f=s.C,S=p[y++],T=p[y++],i=p[y++],n=p[y++],e.addData(f,g,_,S,T,i,n);break;case"s":g=i,_=n,C=e.len(),P=e.data,r===s.C&&(g+=i-P[C-4],_+=n-P[C-3]),f=s.C,S=i+p[y++],T=n+p[y++],i+=p[y++],n+=p[y++],e.addData(f,g,_,S,T,i,n);break;case"Q":S=p[y++],T=p[y++],i=p[y++],n=p[y++],f=s.Q,e.addData(f,S,T,i,n);break;case"q":S=p[y++]+i,T=p[y++]+n,i+=p[y++],n+=p[y++],f=s.Q,e.addData(f,S,T,i,n);break;case"T":g=i,_=n,C=e.len(),P=e.data,r===s.Q&&(g+=i-P[C-4],_+=n-P[C-3]),i=p[y++],n=p[y++],f=s.Q,e.addData(f,g,_,i,n);break;case"t":g=i,_=n,C=e.len(),P=e.data,r===s.Q&&(g+=i-P[C-4],_+=n-P[C-3]),i+=p[y++],n+=p[y++],f=s.Q,e.addData(f,g,_,i,n);break;case"A":m=p[y++],x=p[y++],w=p[y++],b=p[y++],k=p[y++],Cs(S=i,T=n,i=p[y++],n=p[y++],b,k,m,x,w,f=s.A,e);break;case"a":m=p[y++],x=p[y++],w=p[y++],b=p[y++],k=p[y++],Cs(S=i,T=n,i+=p[y++],n+=p[y++],b,k,m,x,w,f=s.A,e)}}"z"!==c&&"Z"!==c||(f=s.Z,e.addData(f),i=o,n=a),r=f}return e.toStatic(),e}(t),i=P({},e);return i.buildPath=function(t){if(Ls(t)){t.setData(r.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;r.rebuildPath(e,1)}},i.applyTransform=function(t){_s(r,t),this.dirtyShape()},i}function Os(t,e){return new As(Is(t,e))}function Ds(t,e){var r=Is(t,e);return function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=r.applyTransform,i.buildPath=r.buildPath,i}return kt(e,t),e}(As)}function zs(t,e){for(var r=[],i=t.length,n=0;n<i;n++){var o=t[n];r.push(o.getUpdatedPathProxy(!0))}var a=new Fa(e);return a.createPathProxy(),a.buildPath=function(t){if(Ls(t)){t.appendPath(r);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function Rs(t,e){e=e||{};var r=new Fa;return t.shape&&r.setShape(t.shape),r.setStyle(t.style),e.bakeTransform?_s(r.path,t.getComputedTransform()):e.toLocal?r.setLocalTransform(t.getComputedTransform()):r.copyTransform(t),r.buildPath=t.buildPath,r.applyTransform=r.applyTransform,r.z=t.z,r.z2=t.z2,r.zlevel=t.zlevel,r}var Fs=function(){this.cx=0,this.cy=0,this.r=0},Bs=function(t){function e(e){return t.call(this,e)||this}return kt(e,t),e.prototype.getDefaultShape=function(){return new Fs},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(Fa);Bs.prototype.type="circle";const Ns=Bs;var Hs=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Es=function(t){function e(e){return t.call(this,e)||this}return kt(e,t),e.prototype.getDefaultShape=function(){return new Hs},e.prototype.buildPath=function(t,e){var r=.5522848,i=e.cx,n=e.cy,o=e.rx,a=e.ry,s=o*r,h=a*r;t.moveTo(i-o,n),t.bezierCurveTo(i-o,n-h,i-s,n-a,i,n-a),t.bezierCurveTo(i+s,n-a,i+o,n-h,i+o,n),t.bezierCurveTo(i+o,n+h,i+s,n+a,i,n+a),t.bezierCurveTo(i-s,n+a,i-o,n+h,i-o,n),t.closePath()},e}(Fa);Es.prototype.type="ellipse";const Ws=Es;var Xs=Math.PI,js=2*Xs,qs=Math.sin,Ys=Math.cos,Vs=Math.acos,Us=Math.atan2,Gs=Math.abs,Zs=Math.sqrt,Ks=Math.max,Qs=Math.min,$s=1e-4;function Js(t,e,r,i,n,o,a){var s=t-r,h=e-i,l=(a?o:-o)/Zs(s*s+h*h),u=l*h,c=-l*s,f=t+u,p=e+c,d=r+u,v=i+c,y=(f+d)/2,g=(p+v)/2,_=d-f,m=v-p,x=_*_+m*m,w=n-o,b=f*v-d*p,k=(m<0?-1:1)*Zs(Ks(0,w*w*x-b*b)),S=(b*m-_*k)/x,T=(-b*_-m*k)/x,C=(b*m+_*k)/x,P=(-b*_+m*k)/x,M=S-y,A=T-g,L=C-y,I=P-g;return M*M+A*A>L*L+I*I&&(S=C,T=P),{cx:S,cy:T,x0:-u,y0:-c,x1:S*(n/w-1),y1:T*(n/w-1)}}function th(t,e){var r,i=Ks(e.r,0),n=Ks(e.r0||0,0),o=i>0;if(o||n>0){if(o||(i=n,n=0),n>i){var a=i;i=n,n=a}var s=e.startAngle,h=e.endAngle;if(!isNaN(s)&&!isNaN(h)){var l=e.cx,u=e.cy,c=!!e.clockwise,f=Gs(h-s),p=f>js&&f%js;if(p>$s&&(f=p),i>$s)if(f>js-$s)t.moveTo(l+i*Ys(s),u+i*qs(s)),t.arc(l,u,i,s,h,!c),n>$s&&(t.moveTo(l+n*Ys(h),u+n*qs(h)),t.arc(l,u,n,h,s,c));else{var d=void 0,v=void 0,y=void 0,g=void 0,_=void 0,m=void 0,x=void 0,w=void 0,b=void 0,k=void 0,S=void 0,T=void 0,C=void 0,P=void 0,M=void 0,A=void 0,L=i*Ys(s),I=i*qs(s),O=n*Ys(h),D=n*qs(h),z=f>$s;if(z){var R=e.cornerRadius;R&&(r=function(t){var e;if(X(t)){var r=t.length;if(!r)return t;e=1===r?[t[0],t[0],0,0]:2===r?[t[0],t[0],t[1],t[1]]:3===r?t.concat(t[2]):t}else e=[t,t,t,t];return e}(R),d=r[0],v=r[1],y=r[2],g=r[3]);var F=Gs(i-n)/2;if(_=Qs(F,y),m=Qs(F,g),x=Qs(F,d),w=Qs(F,v),S=b=Ks(_,m),T=k=Ks(x,w),(b>$s||k>$s)&&(C=i*Ys(h),P=i*qs(h),M=n*Ys(s),A=n*qs(s),f<Xs)){var B=function(t,e,r,i,n,o,a,s){var h=r-t,l=i-e,u=a-n,c=s-o,f=c*h-u*l;if(!(f*f<$s))return[t+(f=(u*(e-o)-c*(t-n))/f)*h,e+f*l]}(L,I,M,A,C,P,O,D);if(B){var N=L-B[0],H=I-B[1],E=C-B[0],W=P-B[1],j=1/qs(Vs((N*E+H*W)/(Zs(N*N+H*H)*Zs(E*E+W*W)))/2),q=Zs(B[0]*B[0]+B[1]*B[1]);S=Qs(b,(i-q)/(j+1)),T=Qs(k,(n-q)/(j-1))}}}if(z)if(S>$s){var Y=Qs(y,S),V=Qs(g,S),U=Js(M,A,L,I,i,Y,c),G=Js(C,P,O,D,i,V,c);t.moveTo(l+U.cx+U.x0,u+U.cy+U.y0),S<b&&Y===V?t.arc(l+U.cx,u+U.cy,S,Us(U.y0,U.x0),Us(G.y0,G.x0),!c):(Y>0&&t.arc(l+U.cx,u+U.cy,Y,Us(U.y0,U.x0),Us(U.y1,U.x1),!c),t.arc(l,u,i,Us(U.cy+U.y1,U.cx+U.x1),Us(G.cy+G.y1,G.cx+G.x1),!c),V>0&&t.arc(l+G.cx,u+G.cy,V,Us(G.y1,G.x1),Us(G.y0,G.x0),!c))}else t.moveTo(l+L,u+I),t.arc(l,u,i,s,h,!c);else t.moveTo(l+L,u+I);if(n>$s&&z)if(T>$s){Y=Qs(d,T),U=Js(O,D,C,P,n,-(V=Qs(v,T)),c),G=Js(L,I,M,A,n,-Y,c);t.lineTo(l+U.cx+U.x0,u+U.cy+U.y0),T<k&&Y===V?t.arc(l+U.cx,u+U.cy,T,Us(U.y0,U.x0),Us(G.y0,G.x0),!c):(V>0&&t.arc(l+U.cx,u+U.cy,V,Us(U.y0,U.x0),Us(U.y1,U.x1),!c),t.arc(l,u,n,Us(U.cy+U.y1,U.cx+U.x1),Us(G.cy+G.y1,G.cx+G.x1),c),Y>0&&t.arc(l+G.cx,u+G.cy,Y,Us(G.y1,G.x1),Us(G.y0,G.x0),!c))}else t.lineTo(l+O,u+D),t.arc(l,u,n,h,s,c);else t.lineTo(l+O,u+D)}else t.moveTo(l,u);t.closePath()}}}var eh=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},rh=function(t){function e(e){return t.call(this,e)||this}return kt(e,t),e.prototype.getDefaultShape=function(){return new eh},e.prototype.buildPath=function(t,e){th(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Fa);rh.prototype.type="sector";const ih=rh;var nh=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},oh=function(t){function e(e){return t.call(this,e)||this}return kt(e,t),e.prototype.getDefaultShape=function(){return new nh},e.prototype.buildPath=function(t,e){var r=e.cx,i=e.cy,n=2*Math.PI;t.moveTo(r+e.r,i),t.arc(r,i,e.r,0,n,!1),t.moveTo(r+e.r0,i),t.arc(r,i,e.r0,0,n,!0)},e}(Fa);oh.prototype.type="ring";const ah=oh;function sh(t,e,r){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var o=function(t,e,r,i){var n,o,a,s,h=[],l=[],u=[],c=[];if(i){a=[Infinity,Infinity],s=[-Infinity,-Infinity];for(var f=0,p=t.length;f<p;f++)jt(a,a,t[f]),qt(s,s,t[f]);jt(a,a,i[0]),qt(s,s,i[1])}for(f=0,p=t.length;f<p;f++){var d=t[f];if(r)n=t[f?f-1:p-1],o=t[(f+1)%p];else{if(0===f||f===p-1){h.push(Ct(t[f]));continue}n=t[f-1],o=t[f+1]}Lt(l,o,n),Rt(l,l,e);var v=Bt(d,n),y=Bt(d,o),g=v+y;0!==g&&(v/=g,y/=g),Rt(u,l,-v),Rt(c,l,y);var _=Mt([],d,u),m=Mt([],d,c);i&&(qt(_,_,a),jt(_,_,s),qt(m,m,a),jt(m,m,s)),h.push(_),h.push(m)}return r&&h.push(h.shift()),h}(n,i,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var a=n.length,s=0;s<(r?a:a-1);s++){var h=o[2*s],l=o[2*s+1],u=n[(s+1)%a];t.bezierCurveTo(h[0],h[1],l[0],l[1],u[0],u[1])}}else{t.moveTo(n[0][0],n[0][1]);s=1;for(var c=n.length;s<c;s++)t.lineTo(n[s][0],n[s][1])}r&&t.closePath()}}var hh=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},lh=function(t){function e(e){return t.call(this,e)||this}return kt(e,t),e.prototype.getDefaultShape=function(){return new hh},e.prototype.buildPath=function(t,e){sh(t,e,!0)},e}(Fa);lh.prototype.type="polygon";const uh=lh;var ch=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},fh=function(t){function e(e){return t.call(this,e)||this}return kt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ch},e.prototype.buildPath=function(t,e){sh(t,e,!1)},e}(Fa);fh.prototype.type="polyline";const ph=fh;var dh={},vh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},yh=function(t){function e(e){return t.call(this,e)||this}return kt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vh},e.prototype.buildPath=function(t,e){var r,i,n,o;if(this.subPixelOptimize){var a=Ya(dh,e,this.style);r=a.x1,i=a.y1,n=a.x2,o=a.y2}else r=e.x1,i=e.y1,n=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(r,i),s<1&&(n=r*(1-s)+n*s,o=i*(1-s)+o*s),t.lineTo(n,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(Fa);yh.prototype.type="line";const gh=yh;var _h=[],mh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function xh(t,e,r){var i=t.cpx2,n=t.cpy2;return null!=i||null!=n?[(r?Cr:Tr)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Cr:Tr)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Dr:Or)(t.x1,t.cpx1,t.x2,e),(r?Dr:Or)(t.y1,t.cpy1,t.y2,e)]}var wh=function(t){function e(e){return t.call(this,e)||this}return kt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mh},e.prototype.buildPath=function(t,e){var r=e.x1,i=e.y1,n=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,h=e.cpx2,l=e.cpy2,u=e.percent;0!==u&&(t.moveTo(r,i),null==h||null==l?(u<1&&(Rr(r,a,n,u,_h),a=_h[1],n=_h[2],Rr(i,s,o,u,_h),s=_h[1],o=_h[2]),t.quadraticCurveTo(a,s,n,o)):(u<1&&(Ar(r,a,h,n,u,_h),a=_h[1],h=_h[2],n=_h[3],Ar(i,s,l,o,u,_h),s=_h[1],l=_h[2],o=_h[3]),t.bezierCurveTo(a,s,h,l,n,o)))},e.prototype.pointAt=function(t){return xh(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=xh(this.shape,t,!0);return Ft(e,e)},e}(Fa);wh.prototype.type="bezier-curve";const bh=wh;var kh=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Sh=function(t){function e(e){return t.call(this,e)||this}return kt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new kh},e.prototype.buildPath=function(t,e){var r=e.cx,i=e.cy,n=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,h=Math.cos(o),l=Math.sin(o);t.moveTo(h*n+r,l*n+i),t.arc(r,i,n,o,a,!s)},e}(Fa);Sh.prototype.type="arc";const Th=Sh;var Ch=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return kt(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),r=0;r<t.length;r++)e=e||t[r].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),r=0;r<t.length;r++)t[r].path||t[r].createPathProxy(),t[r].path.setScale(e[0],e[1],t[r].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var r=e.paths||[],i=0;i<r.length;i++)r[i].buildPath(t,r[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Fa.prototype.getBoundingRect.call(this)},e}(Fa);const Ph=Ch;var Mh=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();const Ah=Mh;const Lh=function(t){function e(e,r,i,n,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==r?0:r,s.x2=null==i?1:i,s.y2=null==n?0:n,s.type="linear",s.global=a||!1,s}return kt(e,t),e}(Ah);const Ih=function(t){function e(e,r,i,n,o){var a=t.call(this,n)||this;return a.x=null==e?.5:e,a.y=null==r?.5:r,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return kt(e,t),e}(Ah);var Oh=[0,0],Dh=[0,0],zh=new Oe,Rh=new Oe,Fh=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Oe;for(r=0;r<2;r++)this._axes[r]=new Oe;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var r=this._corners,i=this._axes,n=t.x,o=t.y,a=n+t.width,s=o+t.height;if(r[0].set(n,o),r[1].set(a,o),r[2].set(a,s),r[3].set(n,s),e)for(var h=0;h<4;h++)r[h].transform(e);Oe.sub(i[0],r[1],r[0]),Oe.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(h=0;h<2;h++)this._origin[h]=i[h].dot(r[0])},t.prototype.intersect=function(t,e){var r=!0,i=!e;return zh.set(Infinity,Infinity),Rh.set(0,0),!this._intersectCheckOneSide(this,t,zh,Rh,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(t,this,zh,Rh,i,-1)&&(r=!1,i)||i||Oe.copy(e,r?zh:Rh),r},t.prototype._intersectCheckOneSide=function(t,e,r,i,n,o){for(var a=!0,s=0;s<2;s++){var h=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Oh),this._getProjMinMaxOnAxis(s,e._corners,Dh),Oh[1]<Dh[0]||Oh[0]>Dh[1]){if(a=!1,n)return a;var l=Math.abs(Dh[0]-Oh[1]),u=Math.abs(Oh[0]-Dh[1]);Math.min(l,u)>i.len()&&(l<u?Oe.scale(i,h,-l*o):Oe.scale(i,h,u*o))}else if(r){l=Math.abs(Dh[0]-Oh[1]),u=Math.abs(Oh[0]-Dh[1]);Math.min(l,u)<r.len()&&(l<u?Oe.scale(r,h,l*o):Oe.scale(r,h,-u*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,r){for(var i=this._axes[t],n=this._origin,o=e[0].dot(i)+n[t],a=o,s=o,h=1;h<e.length;h++){var l=e[h].dot(i)+n[t];a=Math.min(l,a),s=Math.max(l,s)}r[0]=a,r[1]=s},t}();const Bh=Fh;var Nh=[];const Hh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return kt(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var r=0;r<t.length;r++)this.addDisplayable(t[r],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Xe(Infinity,Infinity,-Infinity,-Infinity),e=0;e<this._displayables.length;e++){var r=this._displayables[e],i=r.getBoundingRect().clone();r.needLocalTransform()&&i.applyTransform(r.getLocalTransform(Nh)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var r=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(r[0],r[1]))for(var i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(t,e))return!0}return!1},e}(Ro);var Eh=Math.round(9*Math.random()),Wh="function"==typeof Object.defineProperty;const Xh=function(){function t(){this._id="__ec_inner_"+Eh++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var r=this._guard(t);return Wh?Object.defineProperty(r,this._id,{value:e,enumerable:!1,configurable:!0}):r[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}();function jh(t){return isFinite(t)}function qh(t,e,r){for(var i="radial"===e.type?function(t,e,r){var i=r.width,n=r.height,o=Math.min(i,n),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,h=null==e.r?.5:e.r;return e.global||(a=a*i+r.x,s=s*n+r.y,h*=o),a=jh(a)?a:.5,s=jh(s)?s:.5,h=h>=0&&jh(h)?h:.5,t.createRadialGradient(a,s,0,a,s,h)}(t,e,r):function(t,e,r){var i=null==e.x?0:e.x,n=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*r.width+r.x,n=n*r.width+r.x,o=o*r.height+r.y,a=a*r.height+r.y),i=jh(i)?i:0,n=jh(n)?n:1,o=jh(o)?o:0,a=jh(a)?a:0,t.createLinearGradient(i,o,n,a)}(t,e,r),n=e.colorStops,o=0;o<n.length;o++)i.addColorStop(n[o].offset,n[o].color);return i}function Yh(t){return parseInt(t,10)}function Vh(t,e,r){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=r[i]&&"auto"!==r[i])return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(t);return(t[n]||Yh(s[i])||Yh(t.style[i]))-(Yh(s[o])||0)-(Yh(s[a])||0)|0}function Uh(t){var e,r,i=t.style,n=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,r=i.lineWidth,e&&"solid"!==e&&r>0?"dashed"===e?[4*r,2*r]:"dotted"===e?[r]:V(e)?[e]:X(e)?e:null:null),o=i.lineDashOffset;if(n){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(n=R(n,(function(t){return t/a})),o/=a)}return[n,o]}var Gh=new ya(!0);function Zh(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Kh(t){return"string"==typeof t&&"none"!==t}function Qh(t){var e=t.fill;return null!=e&&"none"!==e}function $h(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function Jh(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function tl(t,e,r){var i=uo(e.image,e.__image,r);if(fo(i)){var n=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&n&&n.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*xt),o.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(o)}return n}}var el=["shadowBlur","shadowOffsetX","shadowOffsetY"],rl=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function il(t,e,r,i,n){var o=!1;if(!i&&e===(r=r||{}))return!1;if(i||e.opacity!==r.opacity){al(t,n),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Mo.opacity:a}(i||e.blend!==r.blend)&&(o||(al(t,n),o=!0),t.globalCompositeOperation=e.blend||Mo.blend);for(var s=0;s<el.length;s++){var h=el[s];(i||e[h]!==r[h])&&(o||(al(t,n),o=!0),t[h]=t.dpr*(e[h]||0))}return(i||e.shadowColor!==r.shadowColor)&&(o||(al(t,n),o=!0),t.shadowColor=e.shadowColor||Mo.shadowColor),o}function nl(t,e,r,i,n){var o=sl(e,n.inHover),a=i?null:r&&sl(r,n.inHover)||{};if(o===a)return!1;var s=il(t,o,a,i,n);if((i||o.fill!==a.fill)&&(s||(al(t,n),s=!0),Kh(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(al(t,n),s=!0),Kh(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(al(t,n),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var h=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==h&&(s||(al(t,n),s=!0),t.lineWidth=h)}for(var l=0;l<rl.length;l++){var u=rl[l],c=u[0];(i||o[c]!==a[c])&&(s||(al(t,n),s=!0),t[c]=o[c]||u[1])}return s}function ol(t,e){var r=e.transform,i=t.dpr||1;r?t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):t.setTransform(i,0,0,i,0,0)}function al(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function sl(t,e){return e&&t.__hoverStyle||t.style}function hl(t,e){ll(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ll(t,e,r,i){var o=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var a=e.__clipPaths,s=r.prevElClipPaths,h=!1,l=!1;if(s&&!function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}(a,s)||(s&&s.length&&(al(t,r),t.restore(),l=h=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(al(t,r),t.save(),function(t,e,r){for(var i=!1,n=0;n<t.length;n++){var o=t[n];i=i||o.isZeroArea(),ol(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}r.allClipped=i}(a,t,r),h=!0),r.prevElClipPaths=a),r.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=h=!0);var c,f,p=e instanceof Fa&&e.autoBatch&&function(t){var e=Qh(t),r=Zh(t);return!(t.lineDash||!(+e^+r)||e&&"string"!=typeof t.fill||r&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);h||(c=o,f=u.transform,c&&f?c[0]!==f[0]||c[1]!==f[1]||c[2]!==f[2]||c[3]!==f[3]||c[4]!==f[4]||c[5]!==f[5]:c||f)?(al(t,r),ol(t,e)):p||al(t,r);var d=sl(e,r.inHover);e instanceof Fa?(1!==r.lastDrawType&&(l=!0,r.lastDrawType=1),nl(t,e,u,l,r),p&&(r.batchFill||r.batchStroke)||t.beginPath(),function(t,e,r,i){var n,o=Zh(r),a=Qh(r),s=r.strokePercent,h=s<1,l=!e.path;e.silent&&!h||!l||e.createPathProxy();var u=e.path||Gh,c=e.__dirty;if(!i){var f=r.fill,p=r.stroke,d=a&&!!f.colorStops,v=o&&!!p.colorStops,y=a&&!!f.image,g=o&&!!p.image,_=void 0,m=void 0,x=void 0,w=void 0,b=void 0;(d||v)&&(b=e.getBoundingRect()),d&&(_=c?qh(t,f,b):e.__canvasFillGradient,e.__canvasFillGradient=_),v&&(m=c?qh(t,p,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=m),y&&(x=c||!e.__canvasFillPattern?tl(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=x),g&&(w=c||!e.__canvasStrokePattern?tl(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),d?t.fillStyle=_:y&&(x?t.fillStyle=x:a=!1),v?t.strokeStyle=m:g&&(w?t.strokeStyle=w:o=!1)}var k,S,T=e.getGlobalScale();u.setScale(T[0],T[1],e.segmentIgnoreThreshold),t.setLineDash&&r.lineDash&&(k=(n=Uh(e))[0],S=n[1]);var C=!0;(l||4&c)&&(u.setDPR(t.dpr),h?u.setContext(null):(u.setContext(t),C=!1),u.reset(),e.buildPath(u,e.shape,i),u.toStatic(),e.pathUpdated()),C&&u.rebuildPath(t,h?s:1),k&&(t.setLineDash(k),t.lineDashOffset=S),i||(r.strokeFirst?(o&&Jh(t,r),a&&$h(t,r)):(a&&$h(t,r),o&&Jh(t,r))),k&&t.setLineDash([])}(t,e,d,p),p&&(r.batchFill=d.fill||"",r.batchStroke=d.stroke||"")):e instanceof Ha?(3!==r.lastDrawType&&(l=!0,r.lastDrawType=3),nl(t,e,u,l,r),function(t,e,r){var i,o=r.text;if(null!=o&&(o+=""),o){t.font=r.font||n,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,s=void 0;t.setLineDash&&r.lineDash&&(a=(i=Uh(e))[0],s=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=s),r.strokeFirst?(Zh(r)&&t.strokeText(o,r.x,r.y),Qh(r)&&t.fillText(o,r.x,r.y)):(Qh(r)&&t.fillText(o,r.x,r.y),Zh(r)&&t.strokeText(o,r.x,r.y)),a&&t.setLineDash([])}}(t,e,d)):e instanceof ja?(2!==r.lastDrawType&&(l=!0,r.lastDrawType=2),function(t,e,r,i,n){il(t,sl(e,n.inHover),r&&sl(r,n.inHover),i,n)}(t,e,u,l,r),function(t,e,r){var i=e.__image=uo(r.image,e.__image,e,e.onload);if(i&&fo(i)){var n=r.x||0,o=r.y||0,a=e.getWidth(),s=e.getHeight(),h=i.width/i.height;if(null==a&&null!=s?a=s*h:null==s&&null!=a?s=a/h:null==a&&null==s&&(a=i.width,s=i.height),r.sWidth&&r.sHeight){var l=r.sx||0,u=r.sy||0;t.drawImage(i,l,u,r.sWidth,r.sHeight,n,o,a,s)}else if(r.sx&&r.sy){var c=a-(l=r.sx),f=s-(u=r.sy);t.drawImage(i,l,u,c,f,n,o,a,s)}else t.drawImage(i,n,o,a,s)}}(t,e,d)):e.getTemporalDisplayables&&(4!==r.lastDrawType&&(l=!0,r.lastDrawType=4),function(t,e,r){var i=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover};for(o=e.getCursor(),a=i.length;o<a;o++){(u=i[o]).beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),ll(t,u,s,o===a-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),s.prevEl=u}for(var h=0,l=n.length;h<l;h++){var u;(u=n[h]).beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),ll(t,u,s,h===l-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),s.prevEl=u}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,r)),p&&i&&al(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}}function ul(t,e){return Math.abs(t-e)<1e-8}function cl(t,e,r){var i=0,n=t[0];if(!n)return!1;for(var o=1;o<t.length;o++){var a=t[o];i+=Sa(n[0],n[1],a[0],a[1],e,r),n=a}var s=t[0];return ul(n[0],s[0])&&ul(n[1],s[1])||(i+=Sa(n[0],n[1],s[0],s[1],e,r)),0!==i}var fl=Math.sin,pl=Math.cos,dl=Math.PI,vl=2*Math.PI,yl=180/dl;const gl=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,r,i,n,o){this._add("C",t,e,r,i,n,o)},t.prototype.quadraticCurveTo=function(t,e,r,i){this._add("Q",t,e,r,i)},t.prototype.arc=function(t,e,r,i,n,o){this.ellipse(t,e,r,r,0,i,n,o)},t.prototype.ellipse=function(t,e,r,i,n,o,a,s){var h=a-o,l=!s,u=Math.abs(h),c=xi(u-vl)||(l?h>=vl:-h>=vl),f=h>0?h%vl:h%vl+vl,p=!1;p=!!c||!xi(u)&&f>=dl==!!l;var d=t+r*pl(o),v=e+i*fl(o);this._start&&this._add("M",d,v);var y=Math.round(n*yl);if(c){var g=1/this._p,_=(l?1:-1)*(vl-g);this._add("A",r,i,y,1,+l,t+r*pl(o+_),e+i*fl(o+_)),g>.01&&this._add("A",r,i,y,0,+l,d,v)}else{var m=t+r*pl(a),x=e+i*fl(a);this._add("A",r,i,y,+p,+l,m,x)}},t.prototype.rect=function(t,e,r,i){this._add("M",t,e),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,r,i,n,o,a,s,h){for(var l=[],u=this._p,c=1;c<arguments.length;c++){var f=arguments[c];if(isNaN(f))return void(this._invalid=!0);l.push(Math.round(f*u)/u)}this._d.push(t+l.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}();var _l="none",ml=Math.round;var xl=["lineCap","miterLimit","lineJoin"],wl=R(xl,(function(t){return"stroke-"+t.toLowerCase()}));function bl(t,e,r,i){var n=null==e.opacity?1:e.opacity;if(r instanceof ja)t("opacity",n);else{if(function(t){var e=t.fill;return null!=e&&e!==_l}(e)){var o=_i(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*n:o.opacity*n;(i||a<1)&&t("fill-opacity",a)}else t("fill",_l);if(function(t){var e=t.stroke;return null!=e&&e!==_l}(e)){var s=_i(e.stroke);t("stroke",s.color);var h=e.strokeNoScale?r.getLineScale():1,l=h?(e.lineWidth||0)/h:0,u=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*n:s.opacity*n,c=e.strokeFirst;if((i||1!==l)&&t("stroke-width",l),(i||c)&&t("paint-order",c?"stroke":"fill"),(i||u<1)&&t("stroke-opacity",u),e.lineDash){var f=Uh(r),p=f[0],d=f[1];p&&(d=ml(d||0),t("stroke-dasharray",p.join(",")),(d||i)&&t("stroke-dashoffset",d))}else i&&t("stroke-dasharray",_l);for(var v=0;v<xl.length;v++){var y=xl[v];if(i||e[y]!==Da[y]){var g=e[y]||Da[y];g&&t(wl[v],g)}}}else i&&t("stroke",_l)}}var kl="http://www.w3.org/2000/svg",Sl="http://www.w3.org/1999/xlink",Tl="ecmeta_";function Cl(t){return document.createElementNS(kl,t)}function Pl(t,e,r,i,n){return{tag:t,attrs:r||{},children:i,text:n,key:e}}function Ml(t,e){var r=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,n=e.tag,o=e.attrs,a=e.text;return function(t,e){var r=[];if(e)for(var i in e){var n=e[i],o=i;!1!==n&&(!0!==n&&null!=n&&(o+='="'+n+'"'),r.push(o))}return"<"+t+" "+r.join(" ")+">"}(n,o)+("style"!==n?se(a):a||"")+(i?""+r+R(i,(function(e){return t(e)})).join(r)+r:"")+("</"+n+">")}(t)}function Al(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Ll(t,e,r,i){return Pl("svg","root",{width:t,height:e,xmlns:kl,"xmlns:xlink":Sl,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},r)}var Il=0;function Ol(){return Il++}var Dl={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},zl="transform-origin";function Rl(t,e,r){var i=P({},t.shape);P(i,e),t.buildPath(r,i);var n=new gl;return n.reset(Li(t)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function Fl(t,e){var r=e.originX,i=e.originY;(r||i)&&(t[zl]=r+"px "+i+"px")}var Bl={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Nl(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function Hl(t){return q(t)?Dl[t]?"cubic-bezier("+Dl[t]+")":Hr(t)?t:"":""}function El(t,e,r,i){var n=t.animators,o=n.length,a=[];if(t instanceof Ph){var s=function(t,e,r){var i,n,o=t.shape.paths,a={};if(z(o,(function(t){var e=Al(r.zrId);e.animation=!0,El(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,h=H(o),l=h.length;if(l){var u=o[n=h[l-1]];for(var c in u){var f=u[c];a[c]=a[c]||{d:""},a[c].d+=f.d||""}for(var p in s){var d=s[p].animation;d.indexOf(n)>=0&&(i=d)}}})),i){e.d=!1;var s=Nl(a,r);return i.replace(n,s)}}(t,e,r);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var h={},l=0;l<o;l++){var u=n[l],c=[u.getMaxTime()/1e3+"s"],f=Hl(u.getClip().easing),p=u.getDelay();f?c.push(f):c.push("linear"),p&&c.push(p/1e3+"s"),u.getLoop()&&c.push("infinite");var d=c.join(" ");h[d]=h[d]||[d,[]],h[d][1].push(u)}function v(n){var o,a=n[1],s=a.length,h={},l={},u={},c="animation-timing-function";function f(t,e,r){for(var i=t.getTracks(),n=t.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,h=a.propName;if(r&&(h=r(h)),h)for(var l=0;l<s.length;l++){var u=s[l],f=Math.round(u.time/n*100)+"%",p=Hl(u.easing),d=u.rawValue;(q(d)||V(d))&&(e[f]=e[f]||{},e[f][h]=u.rawValue,p&&(e[f][c]=p))}}}}for(var p=0;p<s;p++){(k=(b=a[p]).targetName)?"shape"===k&&f(b,l):!i&&f(b,h)}for(var d in h){var v={};An(v,t),P(v,h[d]);var y=Ii(v),g=h[d][c];u[d]=y?{transform:y}:{},Fl(u[d],v),g&&(u[d][c]=g)}var _=!0;for(var d in l){u[d]=u[d]||{};var m=!o;g=l[d][c];m&&(o=new ya);var x=o.len();o.reset(),u[d].d=Rl(t,l[d],o);var w=o.len();if(!m&&x!==w){_=!1;break}g&&(u[d][c]=g)}if(!_)for(var d in u)delete u[d].d;if(!i)for(p=0;p<s;p++){var b,k;"style"===(k=(b=a[p]).targetName)&&f(b,u,(function(t){return Bl[t]}))}var S,T=H(u),C=!0;for(p=1;p<T.length;p++){var M=T[p-1],A=T[p];if(u[M][zl]!==u[A][zl]){C=!1;break}S=u[M][zl]}if(C&&S){for(var d in u)u[d][zl]&&delete u[d][zl];e[zl]=S}if(B(T,(function(t){return H(u[t]).length>0})).length)return Nl(u,r)+" "+n[0]+" both"}for(var y in h){(s=v(h[y]))&&a.push(s)}if(a.length){var g=r.zrId+"-cls-"+Ol();r.cssNodes["."+g]={animation:a.join(",")},e.class=g}}function Wl(t,e,r,i){var n=JSON.stringify(t),o=r.cssStyleCache[n];o||(o=r.zrId+"-cls-"+Ol(),r.cssStyleCache[n]=o,r.cssNodes["."+o+(i?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var Xl=Math.round;function jl(t){return t&&q(t.src)}function ql(t){return t&&j(t.toDataURL)}function Yl(t,e,r,i){bl((function(n,o){var a="fill"===n||"stroke"===n;a&&Mi(o)?ru(e,t,n,i):a&&Ti(o)?iu(r,t,n,i):t[n]=o,a&&i.ssr&&"none"===o&&(t["pointer-events"]="visible")}),e,r,!1),function(t,e,r){var i=t.style;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(i)){var n=function(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}(t),o=r.shadowCache,a=o[n];if(!a){var s=t.getGlobalScale(),h=s[0],l=s[1];if(!h||!l)return;var u=i.shadowOffsetX||0,c=i.shadowOffsetY||0,f=i.shadowBlur,p=_i(i.shadowColor),d=p.opacity,v=p.color,y=f/2/h+" "+f/2/l;a=r.zrId+"-s"+r.shadowIdx++,r.defs[a]=Pl("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Pl("feDropShadow","",{dx:u/h,dy:c/l,stdDeviation:y,"flood-color":v,"flood-opacity":d})]),o[n]=a}e.filter=Ai(a)}}(r,t,i)}function Vl(t,e){var r=oo(e);r&&(r.each((function(e,r){null!=e&&(t[(Tl+r).toLowerCase()]=e+"")})),e.isSilent()&&(t[Tl+"silent"]="true"))}function Ul(t){return xi(t[0]-1)&&xi(t[1])&&xi(t[2])&&xi(t[3]-1)}function Gl(t,e,r){if(e&&(!function(t){return xi(t[4])&&xi(t[5])}(e)||!Ul(e))){var i=r?10:1e4;t.transform=Ul(e)?"translate("+Xl(e[4]*i)/i+" "+Xl(e[5]*i)/i+")":function(t){return"matrix("+wi(t[0])+","+wi(t[1])+","+wi(t[2])+","+wi(t[3])+","+bi(t[4])+","+bi(t[5])+")"}(e)}}function Zl(t,e,r){for(var i=t.points,n=[],o=0;o<i.length;o++)n.push(Xl(i[o][0]*r)/r),n.push(Xl(i[o][1]*r)/r);e.points=n.join(" ")}function Kl(t){return!t.smooth}var Ql,$l,Jl={circle:[(Ql=["cx","cy","r"],$l=R(Ql,(function(t){return"string"==typeof t?[t,t]:t})),function(t,e,r){for(var i=0;i<$l.length;i++){var n=$l[i],o=t[n[0]];null!=o&&(e[n[1]]=Xl(o*r)/r)}})],polyline:[Zl,Kl],polygon:[Zl,Kl]};function tu(t,e){var r=t.style,i=t.shape,n=Jl[t.type],o={},a=e.animation,s="path",h=t.style.strokePercent,l=e.compress&&Li(t)||4;if(!n||e.willUpdate||n[1]&&!n[1](i)||a&&function(t){for(var e=t.animators,r=0;r<e.length;r++)if("shape"===e[r].targetName)return!0;return!1}(t)||h<1){var u=!t.path||t.shapeChanged();t.path||t.createPathProxy();var c=t.path;u&&(c.beginPath(),t.buildPath(c,t.shape),t.pathUpdated());var f=c.getVersion(),p=t,d=p.__svgPathBuilder;p.__svgPathVersion===f&&d&&h===p.__svgPathStrokePercent||(d||(d=p.__svgPathBuilder=new gl),d.reset(l),c.rebuildPath(d,h),d.generateStr(),p.__svgPathVersion=f,p.__svgPathStrokePercent=h),o.d=d.getStr()}else{s=t.type;var v=Math.pow(10,l);n[0](i,o,v)}return Gl(o,t.transform),Yl(o,r,t,e),Vl(o,t),e.animation&&El(t,o,e),e.emphasis&&function(t,e,r){if(!t.ignore)if(t.isSilent())Wl(l={"pointer-events":"none"},e,r,!0);else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},n=i.fill;if(!n){var o=t.style&&t.style.fill,a=t.states.select&&t.states.select.style&&t.states.select.style.fill,s=t.currentStates.indexOf("select")>=0&&a||o;s&&(n=vi(s))}var h=i.lineWidth;h&&(h/=!i.strokeNoScale&&t.transform?t.transform[0]:1);var l={cursor:"pointer"};n&&(l.fill=n),i.stroke&&(l.stroke=i.stroke),h&&(l["stroke-width"]=h),Wl(l,e,r,!0)}}(t,o,e),Pl(s,t.id+"",o)}function eu(t,e){return t instanceof Fa?tu(t,e):t instanceof ja?function(t,e){var r=t.style,i=r.image;if(i&&!q(i)&&(jl(i)?i=i.src:ql(i)&&(i=i.toDataURL())),i){var n=r.x||0,o=r.y||0,a={href:i,width:r.width,height:r.height};return n&&(a.x=n),o&&(a.y=o),Gl(a,t.transform),Yl(a,r,t,e),Vl(a,t),e.animation&&El(t,a,e),Pl("image",t.id+"",a)}}(t,e):t instanceof Ha?function(t,e){var r=t.style,o=r.text;if(null!=o&&(o+=""),o&&!isNaN(r.x)&&!isNaN(r.y)){var a=r.font||n,s=r.x||0,h=function(t,e,r){return"top"===r?t+=e/2:"bottom"===r&&(t-=e/2),t}(r.y||0,Bn(a),r.textBaseline),l={"dominant-baseline":"central","text-anchor":ki[r.textAlign]||r.textAlign};if(as(r)){var u="",c=r.fontStyle,f=ns(r.fontSize);if(!parseFloat(f))return;var p=r.fontFamily||i,d=r.fontWeight;u+="font-size:"+f+";font-family:"+p+";",c&&"normal"!==c&&(u+="font-style:"+c+";"),d&&"normal"!==d&&(u+="font-weight:"+d+";"),l.style=u}else l.style="font: "+a;return o.match(/\s/)&&(l["xml:space"]="preserve"),s&&(l.x=s),h&&(l.y=h),Gl(l,t.transform),Yl(l,r,t,e),Vl(l,t),e.animation&&El(t,l,e),Pl("text",t.id+"",l,void 0,o)}}(t,e):void 0}function ru(t,e,r,i){var n,o=t[r],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Ci(o))n="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!Pi(o))return;n="radialGradient",a.cx=rt(o.x,.5),a.cy=rt(o.y,.5),a.r=rt(o.r,.5)}for(var s=o.colorStops,h=[],l=0,u=s.length;l<u;++l){var c=100*bi(s[l].offset)+"%",f=_i(s[l].color),p=f.color,d=f.opacity,v={offset:c};v["stop-color"]=p,d<1&&(v["stop-opacity"]=d),h.push(Pl("stop",l+"",v))}var y=Ml(Pl(n,"",a,h)),g=i.gradientCache,_=g[y];_||(_=i.zrId+"-g"+i.gradientIdx++,g[y]=_,a.id=_,i.defs[_]=Pl(n,_,a,h)),e[r]=Ai(_)}function iu(t,e,r,i){var n,o=t.style[r],a=t.getBoundingRect(),s={},h=o.repeat,l="no-repeat"===h,u="repeat-x"===h,c="repeat-y"===h;if(Si(o)){var f=o.imageWidth,p=o.imageHeight,d=void 0,v=o.image;if(q(v)?d=v:jl(v)?d=v.src:ql(v)&&(d=v.toDataURL()),"undefined"==typeof Image){var y="Image width/height must been given explictly in svg-ssr renderer.";at(f,y),at(p,y)}else if(null==f||null==p){var g=function(t,e){if(t){var r=t.elm,i=f||e.width,n=p||e.height;"pattern"===t.tag&&(u?(n=1,i/=a.width):c&&(i=1,n/=a.height)),t.attrs.width=i,t.attrs.height=n,r&&(r.setAttribute("width",i),r.setAttribute("height",n))}},_=uo(d,null,t,(function(t){l||g(b,t),g(n,t)}));_&&_.width&&_.height&&(f=f||_.width,p=p||_.height)}n=Pl("image","img",{href:d,width:f,height:p}),s.width=f,s.height=p}else o.svgElement&&(n=S(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(n){var m,x;l?m=x=1:u?(x=1,m=s.width/a.width):c?(m=1,x=s.height/a.height):s.patternUnits="userSpaceOnUse",null==m||isNaN(m)||(s.width=m),null==x||isNaN(x)||(s.height=x);var w=Ii(o);w&&(s.patternTransform=w);var b=Pl("pattern","",s,[n]),k=Ml(b),T=i.patternCache,C=T[k];C||(C=i.zrId+"-p"+i.patternIdx++,T[k]=C,s.id=C,b=i.defs[C]=Pl("pattern",C,s,[n])),e[r]=Ai(C)}}function nu(t,e,r){var i=r.clipPathCache,n=r.defs,o=i[t.id];if(!o){var a={id:o=r.zrId+"-c"+r.clipPathIdx++};i[t.id]=o,n[o]=Pl("clipPath",o,a,[tu(t,r)])}e["clip-path"]=Ai(o)}function ou(t){return document.createTextNode(t)}function au(t,e,r){t.insertBefore(e,r)}function su(t,e){t.removeChild(e)}function hu(t,e){t.appendChild(e)}function lu(t){return t.parentNode}function uu(t){return t.nextSibling}function cu(t,e){t.textContent=e}var fu=Pl("","");function pu(t){return void 0===t}function du(t){return void 0!==t}function vu(t,e,r){for(var i={},n=e;n<=r;++n){var o=t[n].key;void 0!==o&&(i[o]=n)}return i}function yu(t,e){var r=t.key===e.key;return t.tag===e.tag&&r}function gu(t){var e,r=t.children,i=t.tag;if(du(i)){var n=t.elm=Cl(i);if(xu(fu,t),X(r))for(e=0;e<r.length;++e){var o=r[e];null!=o&&hu(n,gu(o))}else du(t.text)&&!U(t.text)&&hu(n,ou(t.text))}else t.elm=ou(t.text);return t.elm}function _u(t,e,r,i,n){for(;i<=n;++i){var o=r[i];null!=o&&au(t,gu(o),e)}}function mu(t,e,r,i){for(;r<=i;++r){var n=e[r];if(null!=n)if(du(n.tag))su(lu(n.elm),n.elm);else su(t,n.elm)}}function xu(t,e){var r,i=e.elm,n=t&&t.attrs||{},o=e.attrs||{};if(n!==o){for(r in o){var a=o[r];n[r]!==a&&(!0===a?i.setAttribute(r,""):!1===a?i.removeAttribute(r):"style"===r?i.style.cssText=a:120!==r.charCodeAt(0)?i.setAttribute(r,a):"xmlns:xlink"===r||"xmlns"===r?i.setAttributeNS("http://www.w3.org/2000/xmlns/",r,a):58===r.charCodeAt(3)?i.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,a):58===r.charCodeAt(5)?i.setAttributeNS(Sl,r,a):i.setAttribute(r,a))}for(r in n)r in o||i.removeAttribute(r)}}function wu(t,e){var r=e.elm=t.elm,i=t.children,n=e.children;t!==e&&(xu(t,e),pu(e.text)?du(i)&&du(n)?i!==n&&function(t,e,r){for(var i,n,o,a=0,s=0,h=e.length-1,l=e[0],u=e[h],c=r.length-1,f=r[0],p=r[c];a<=h&&s<=c;)null==l?l=e[++a]:null==u?u=e[--h]:null==f?f=r[++s]:null==p?p=r[--c]:yu(l,f)?(wu(l,f),l=e[++a],f=r[++s]):yu(u,p)?(wu(u,p),u=e[--h],p=r[--c]):yu(l,p)?(wu(l,p),au(t,l.elm,uu(u.elm)),l=e[++a],p=r[--c]):yu(u,f)?(wu(u,f),au(t,u.elm,l.elm),u=e[--h],f=r[++s]):(pu(i)&&(i=vu(e,a,h)),pu(n=i[f.key])||(o=e[n]).tag!==f.tag?au(t,gu(f),l.elm):(wu(o,f),e[n]=void 0,au(t,o.elm,l.elm)),f=r[++s]);(a<=h||s<=c)&&(a>h?_u(t,null==r[c+1]?null:r[c+1].elm,r,s,c):mu(t,e,a,h))}(r,i,n):du(n)?(du(t.text)&&cu(r,""),_u(r,null,n,0,n.length-1)):du(i)?mu(r,i,0,i.length-1):du(t.text)&&cu(r,""):t.text!==e.text&&(du(i)&&mu(r,i,0,i.length-1),cu(r,e.text)))}var bu=0,ku=function(){function t(t,e,r){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=e,this._opts=r=P({},r),this.root=t,this._id="zr"+bu++,this._oldVNode=Ll(r.width,r.height),t&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=Cl("svg");xu(null,this._oldVNode),i.appendChild(n),t.appendChild(i)}this.resize(r.width,r.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(yu(t,e))wu(t,e);else{var r=t.elm,i=lu(r);gu(e),null!==i&&(au(i,e.elm,uu(r)),mu(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return eu(t,Al(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),r=this._width,i=this._height,n=Al(this._id);n.animation=t.animation,n.willUpdate=t.willUpdate,n.compress=t.compress,n.emphasis=t.emphasis,n.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,r,i){var n;if(r&&"none"!==r)if(n=Pl("rect","bg",{width:t,height:e,x:"0",y:"0"}),Mi(r))ru({fill:r},n.attrs,"fill",i);else if(Ti(r))iu({style:{fill:r},dirty:mt,getBoundingRect:function(){return{width:t,height:e}}},n.attrs,"fill",i);else{var o=_i(r),a=o.color,s=o.opacity;n.attrs.fill=a,s<1&&(n.attrs["fill-opacity"]=s)}return n}(r,i,this._backgroundColor,n);a&&o.push(a);var s=t.compress?null:this._mainVNode=Pl("g","main",{},[]);this._paintList(e,n,s?s.children:o),s&&o.push(s);var h=R(H(n.defs),(function(t){return n.defs[t]}));if(h.length&&o.push(Pl("defs","defs",{},h)),t.animation){var l=function(t,e,r){var i=(r=r||{}).newline?"\n":"",n=" {"+i,o=i+"}",a=R(H(t),(function(e){return e+n+R(H(t[e]),(function(r){return r+":"+t[e][r]+";"})).join(i)+o})).join(i),s=R(H(e),(function(t){return"@keyframes "+t+n+R(H(e[t]),(function(r){return r+n+R(H(e[t][r]),(function(i){var n=e[t][r][i];return"d"===i&&(n='path("'+n+'")'),i+":"+n+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?["<![CDATA[",a,s,"]]>"].join(i):""}(n.cssNodes,n.cssAnims,{newline:!0});if(l){var u=Pl("style","stl",{},[],l);o.push(u)}}return Ll(r,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},Ml(this.renderToVNode({animation:rt(t.cssAnimation,!0),emphasis:rt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:rt(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,r){for(var i,n,o=t.length,a=[],s=0,h=0,l=0;l<o;l++){var u=t[l];if(!u.invisible){var c=u.__clipPaths,f=c&&c.length||0,p=n&&n.length||0,d=void 0;for(d=Math.max(f-1,p-1);d>=0&&(!c||!n||c[d]!==n[d]);d--);for(var v=p-1;v>d;v--)i=a[--s-1];for(var y=d+1;y<f;y++){var g={};nu(c[y],g,e);var _=Pl("g","clip-g-"+h++,g,[]);(i?i.children:r).push(_),a[s++]=_,i=_}n=c;var m=eu(u,e);m&&(i?i.children:r).push(m)}}},t.prototype.resize=function(t,e){var r=this._opts,i=this.root,n=this._viewport;if(null!=t&&(r.width=t),null!=e&&(r.height=e),i&&n&&(n.style.display="none",t=Vh(i,0,r),e=Vh(i,1,r),n.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,n){var o=n.style;o.width=t+"px",o.height=e+"px"}if(Ti(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),r="data:image/svg+xml;";return t?(e=Oi(e))&&r+"base64,"+e:r+"charset=UTF-8,"+encodeURIComponent(e)},t}();const Su=ku;function Tu(t,e,r){var i=h.createCanvas(),n=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=n+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=n*r,i.height=o*r,i}var Cu=function(t){function e(e,r,i){var n,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||gn,"string"==typeof e?n=Tu(e,r,i):U(e)&&(e=(n=e).id),o.id=e,o.dom=n;var a=n.style;return a&&(gt(n),n.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=r,o.dpr=i,o}return kt(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Tu("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,r,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var n,o=[],a=this.maxRepaintRectCount,s=!1,h=new Xe(0,0,0,0);function l(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new Xe(0,0,0,0)).copy(t),o.push(e)}else{for(var e,r=!1,i=Infinity,n=0,l=0;l<o.length;++l){var u=o[l];if(u.intersect(t)){var c=new Xe(0,0,0,0);c.copy(u),c.union(t),o[l]=c,r=!0;break}if(s){h.copy(t),h.union(u);var f=t.width*t.height,p=u.width*u.height,d=h.width*h.height-f-p;d<i&&(i=d,n=l)}}if(s&&(o[n].union(t),r=!0),!r)(e=new Xe(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var u=this.__startIndex;u<this.__endIndex;++u){if(p=t[u]){var c=p.shouldBePainted(r,i,!0,!0);(d=p.__isRendered&&(1&p.__dirty||!c)?p.getPrevPaintRect():null)&&l(d);var f=c&&(1&p.__dirty||!p.__isRendered)?p.getPaintRect():null;f&&l(f)}}for(u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var p,d;c=(p=e[u])&&p.shouldBePainted(r,i,!0,!0);if(p&&(!c||!p.__zr)&&p.__isRendered)(d=p.getPrevPaintRect())&&l(d)}do{n=!1;for(u=0;u<o.length;)if(o[u].isZero())o.splice(u,1);else{for(var v=u+1;v<o.length;)o[u].intersect(o[v])?(n=!0,o[u].union(o[v]),o.splice(v,1)):v++;u++}}while(n);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var r=this.dpr,i=this.dom,n=i.style,o=this.domBack;n&&(n.width=t+"px",n.height=e+"px"),i.width=t*r,i.height=e*r,o&&(o.width=t*r,o.height=e*r,1!==r&&this.ctxBack.scale(r,r))},e.prototype.clear=function(t,e,r){var i=this.dom,n=this.ctx,o=i.width,a=i.height;e=e||this.clearColor;var s=this.motionBlur&&!t,h=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/l,a/l));var c=this.domBack;function f(t,r,i,o){if(n.clearRect(t,r,i,o),e&&"transparent"!==e){var a=void 0;if(Q(e))a=(e.global||e.__width===i&&e.__height===o)&&e.__canvasGradient||qh(n,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a,e.__width=i,e.__height=o;else $(e)&&(e.scaleX=e.scaleX||l,e.scaleY=e.scaleY||l,a=tl(n,e,{dirty:function(){u.setUnpainted(),u.painter.refresh()}}));n.save(),n.fillStyle=a||e,n.fillRect(t,r,i,o),n.restore()}s&&(n.save(),n.globalAlpha=h,n.drawImage(c,t,r,i,o),n.restore())}!r||s?f(0,0,o,a):r.length&&z(r,(function(t){f(t.x*l,t.y*l,t.width*l,t.height*l)}))},e}(Kt);const Pu=Cu;var Mu=1e5,Au=314159,Lu=.01;var Iu=function(){function t(t,e,r,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=r=P({},r||{}),this.dpr=r.devicePixelRatio||gn,this._singleCanvas=n,this.root=t,t.style&&(gt(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(n){var s=t,h=s.width,l=s.height;null!=r.width&&(h=r.width),null!=r.height&&(l=r.height),this.dpr=r.devicePixelRatio||1,s.width=h*this.dpr,s.height=l*this.dpr,this._width=h,this._height=l;var u=new Pu(s,this,this.dpr);u.__builtin__=!0,u.initContext(),a[314159]=u,u.zlevel=Au,o.push(Au),this._domRoot=t}else{this._width=Vh(t,0,r),this._height=Vh(t,1,r);var c=this._domRoot=function(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}(this._width,this._height);t.appendChild(c)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),r=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,r,t,this._redrawId);for(var n=0;n<i.length;n++){var o=i[n],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===n?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,r=this._hoverlayer;if(r&&r.clear(),e){for(var i,n={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(r||(r=this._hoverlayer=this.getLayer(Mu)),i||(i=r.ctx).save(),ll(i,a,n,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(Mu)},t.prototype.paintOne=function(t,e){hl(t,e)},t.prototype._paintList=function(t,e,r,i){if(this._redrawId===i){r=r||!1,this._updateLayerStatus(t);var n=this._doPaintList(t,e,r),o=n.finished,a=n.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;cr((function(){s._paintList(t,e,r,i)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(Au).ctx,e=this._domRoot.width,r=this._domRoot.height;t.clearRect(0,0,e,r),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,r)}))},t.prototype._doPaintList=function(t,e,i){for(var n=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var h=this._zlevelList[s],l=this._layers[h];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||i)&&o.push(l)}for(var u=!0,c=!1,f=function(r){var s,h=o[r],l=h.ctx,f=a&&h.createRepaintRects(t,e,p._width,p._height),d=i?h.__startIndex:h.__drawIndex,v=!i&&h.incremental&&Date.now,y=v&&Date.now(),g=h.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(h.__startIndex===h.__endIndex)h.clear(!1,g,f);else if(d===h.__startIndex){var _=t[d];_.incremental&&_.notClear&&!i||h.clear(!1,g,f)}-1===d&&(d=h.__startIndex);var m=function(e){var r={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(s=d;s<h.__endIndex;s++){var i=t[s];if(i.__inHover&&(c=!0),n._doPaintEl(i,h,a,e,r,s===h.__endIndex-1),v)if(Date.now()-y>15)break}r.prevElClipPaths&&l.restore()};if(f)if(0===f.length)s=h.__endIndex;else for(var x=p.dpr,w=0;w<f.length;++w){var b=f[w];l.save(),l.beginPath(),l.rect(b.x*x,b.y*x,b.width*x,b.height*x),l.clip(),m(b),l.restore()}else l.save(),m(),l.restore();h.__drawIndex=s,h.__drawIndex<h.__endIndex&&(u=!1)},p=this,d=0;d<o.length;d++)f(d);return r.wxa&&z(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,r,i,n,o){var a=e.ctx;if(r){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(ll(a,t,n,o),t.setPrevPaintRect(s))}else ll(a,t,n,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Au);var r=this._layers[t];return r||((r=new Pu("zr_"+t,this,this.dpr)).zlevel=t,r.__builtin__=!0,this._layerConfig[t]?T(r,this._layerConfig[t],!0):this._layerConfig[t-Lu]&&T(r,this._layerConfig[t-Lu],!0),e&&(r.virtual=e),this.insertLayer(t,r),r.initContext()),r},t.prototype.insertLayer=function(t,e){var r=this._layers,i=this._zlevelList,n=i.length,o=this._domRoot,a=null,s=-1;if(!r[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(n>0&&t>i[0]){for(s=0;s<n-1&&!(i[s]<t&&i[s+1]>t);s++);a=r[i[s]]}if(i.splice(s+1,0,t),r[t]=e,!e.virtual)if(a){var h=a.dom;h.nextSibling?o.insertBefore(e.dom,h.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var r=this._zlevelList,i=0;i<r.length;i++){var n=r[i];t.call(e,this._layers[n],n)}},t.prototype.eachBuiltinLayer=function(t,e){for(var r=this._zlevelList,i=0;i<r.length;i++){var n=r[i],o=this._layers[n];o.__builtin__&&t.call(e,o,n)}},t.prototype.eachOtherLayer=function(t,e){for(var r=this._zlevelList,i=0;i<r.length;i++){var n=r[i],o=this._layers[n];o.__builtin__||t.call(e,o,n)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var r=1;r<t.length;r++){if((s=t[r]).zlevel!==t[r-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var i,n,o=null,a=0;for(n=0;n<t.length;n++){var s,h=(s=t[n]).zlevel,l=void 0;i!==h&&(i=h,a=0),s.incremental?((l=this.getLayer(h+.001,this._needsManuallyCompositing)).incremental=!0,a=1):l=this.getLayer(h+(a>0?Lu:0),this._needsManuallyCompositing),l.__builtin__||k("ZLevel "+h+" has been used by unkown layer "+l.id),l!==o&&(l.__used=!0,l.__startIndex!==n&&(l.__dirty=!0),l.__startIndex=n,l.incremental?l.__drawIndex=-1:l.__drawIndex=n,e(n),o=l),1&s.__dirty&&!s.__inHover&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=n))}e(n),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,z(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var r=this._layerConfig;r[t]?T(r[t],e,!0):r[t]=e;for(var i=0;i<this._zlevelList.length;i++){var n=this._zlevelList[i];if(n===t||n===t+Lu)T(this._layers[n],r[t],!0)}}},t.prototype.delLayer=function(t){var e=this._layers,r=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],r.splice(L(r,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var i=this._opts,n=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=Vh(n,0,i),e=Vh(n,1,i),r.style.display="",this._width!==t||e!==this._height){for(var o in r.style.width=t+"px",r.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(Au).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new Pu("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var r=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,n=e.dom.height;this.eachLayer((function(t){t.__builtin__?r.drawImage(t.dom,0,0,i,n):t.renderToCanvas&&(r.save(),t.renderToCanvas(r),r.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,h=a.length;s<h;s++){var l=a[s];ll(r,l,o,s===h-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const Ou=Iu;function Du(t){q(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var zu,Ru={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-anchor":"textAlign",visibility:"visibility",display:"display"},Fu=H(Ru),Bu={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Nu=H(Bu),Hu=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var r=Du(t);this._defsUsePending=[];var i=new $n;this._root=i;var n=[],o=r.getAttribute("viewBox")||"",a=parseFloat(r.getAttribute("width")||e.width),s=parseFloat(r.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),Yu(r,i,null,!0,!1);for(var h,l,u=r.firstChild;u;)this._parseNode(u,i,n,null,!1,!1),u=u.nextSibling;if(function(t,e){for(var r=0;r<e.length;r++){var i=e[r];i[0].style[i[1]]=t[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var c=Zu(o);c.length>=4&&(h={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(h&&null!=a&&null!=s&&(l=tc(h,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var f=i;(i=new $n).add(f),f.scaleX=f.scaleY=l.scale,f.x=l.x,f.y=l.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new Qa({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:h,viewBoxTransform:l,named:n}},t.prototype._parseNode=function(t,e,r,i,n,o){var a,s=t.nodeName.toLowerCase(),h=i;if("defs"===s&&(n=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!n){var l=zu[s];if(l&&_t(zu,s)){a=l.call(this,t,e);var u=t.getAttribute("name");if(u){var c={name:u,namedFrom:null,svgNodeTagLower:s,el:a};r.push(c),"g"===s&&(h=c)}else i&&r.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var f=Eu[s];if(f&&_t(Eu,s)){var p=f.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=p)}}if(a&&a.isGroup)for(var v=t.firstChild;v;)1===v.nodeType?this._parseNode(v,a,r,h,n,o):3===v.nodeType&&o&&this._parseText(v,a),v=v.nextSibling},t.prototype._parseText=function(t,e){var r=new Ha({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ju(e,r),Yu(t,r,this._defsUsePending,!1,!1),function(t,e){var r=e.__selfStyle;if(r){var i=r.textBaseline,n=i;i&&"auto"!==i?"baseline"===i?n="alphabetic":"before-edge"===i||"text-before-edge"===i?n="top":"after-edge"===i||"text-after-edge"===i?n="bottom":"central"!==i&&"mathematical"!==i||(n="middle"):n="alphabetic",t.style.textBaseline=n}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(r,e);var i=r.style,n=i.fontSize;n&&n<9&&(i.fontSize=9,r.scaleX*=n/9,r.scaleY*=n/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=r.getBoundingRect();return this._textX+=a.width,e.add(r),r},t.internalField=void(zu={g:function(t,e){var r=new $n;return ju(e,r),Yu(t,r,this._defsUsePending,!1,!1),r},rect:function(t,e){var r=new Qa;return ju(e,r),Yu(t,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(t,e){var r=new Ns;return ju(e,r),Yu(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),r.silent=!0,r},line:function(t,e){var r=new gh;return ju(e,r),Yu(t,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(t,e){var r=new Ws;return ju(e,r),Yu(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(t,e){var r,i=t.getAttribute("points");i&&(r=qu(i));var n=new uh({shape:{points:r||[]},silent:!0});return ju(e,n),Yu(t,n,this._defsUsePending,!1,!1),n},polyline:function(t,e){var r,i=t.getAttribute("points");i&&(r=qu(i));var n=new ph({shape:{points:r||[]},silent:!0});return ju(e,n),Yu(t,n,this._defsUsePending,!1,!1),n},image:function(t,e){var r=new ja;return ju(e,r),Yu(t,r,this._defsUsePending,!1,!1),r.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),r.silent=!0,r},text:function(t,e){var r=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",n=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(n),this._textY=parseFloat(i)+parseFloat(o);var a=new $n;return ju(e,a),Yu(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var r=t.getAttribute("x"),i=t.getAttribute("y");null!=r&&(this._textX=parseFloat(r)),null!=i&&(this._textY=parseFloat(i));var n=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new $n;return ju(e,a),Yu(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),a},path:function(t,e){var r=Os(t.getAttribute("d")||"");return ju(e,r),Yu(t,r,this._defsUsePending,!1,!1),r.silent=!0,r}}),t}(),Eu={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),r=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),n=parseInt(t.getAttribute("y2")||"0",10),o=new Lh(e,r,i,n);return Wu(t,o),Xu(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),r=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),n=new Ih(e,r,i);return Wu(t,n),Xu(t,n),n}};function Wu(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function Xu(t,e){for(var r=t.firstChild;r;){if(1===r.nodeType&&"stop"===r.nodeName.toLocaleLowerCase()){var i=r.getAttribute("offset"),n=void 0;n=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};Ju(r,o,o);var a=o.stopColor||r.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:a})}r=r.nextSibling}}function ju(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),M(e.__inheritedStyle,t.__inheritedStyle))}function qu(t){for(var e=Zu(t),r=[],i=0;i<e.length;i+=2){var n=parseFloat(e[i]),o=parseFloat(e[i+1]);r.push([n,o])}return r}function Yu(t,e,r,i,n){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){var r=t.getAttribute("transform");if(r){r=r.replace(/,/g," ");var i=[],n=null;r.replace(Ku,(function(t,e,r){return i.push(e,r),""}));for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],h=Zu(a);switch(n=n||[1,0,0,1,0,0],s){case"translate":Te(n,n,[parseFloat(h[0]),parseFloat(h[1]||"0")]);break;case"scale":Pe(n,n,[parseFloat(h[0]),parseFloat(h[1]||h[0])]);break;case"rotate":Ce(n,n,-parseFloat(h[0])*Qu,[parseFloat(h[1]||"0"),parseFloat(h[2]||"0")]);break;case"skewX":Se(n,[1,0,Math.tan(parseFloat(h[0])*Qu),1,0,0],n);break;case"skewY":Se(n,[1,Math.tan(parseFloat(h[0])*Qu),0,1,0,0],n);break;case"matrix":n[0]=parseFloat(h[0]),n[1]=parseFloat(h[1]),n[2]=parseFloat(h[2]),n[3]=parseFloat(h[3]),n[4]=parseFloat(h[4]),n[5]=parseFloat(h[5])}}e.setLocalTransform(n)}}(t,e),Ju(t,a,s),i||function(t,e,r){for(var i=0;i<Fu.length;i++){var n=Fu[i];null!=(o=t.getAttribute(n))&&(e[Ru[n]]=o)}for(i=0;i<Nu.length;i++){var o;n=Nu[i];null!=(o=t.getAttribute(n))&&(r[Bu[n]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=Uu(o,"fill",a.fill,r)),null!=a.stroke&&(o.style.stroke=Uu(o,"stroke",a.stroke,r)),z(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),z(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),n&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=R(Zu(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var Vu=/^url\(\s*#(.*?)\)/;function Uu(t,e,r,i){var n=r&&r.match(Vu);if(!n)return"none"===r&&(r=null),r;var o=st(n[1]);i.push([t,e,o])}var Gu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Zu(t){return t.match(Gu)||[]}var Ku=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Qu=Math.PI/180;var $u=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Ju(t,e,r){var i,n=t.getAttribute("style");if(n)for($u.lastIndex=0;null!=(i=$u.exec(n));){var o=i[1],a=_t(Ru,o)?Ru[o]:null;a&&(e[a]=i[2]);var s=_t(Bu,o)?Bu[o]:null;s&&(r[s]=i[2])}}function tc(t,e){var r=e.width/t.width,i=e.height/t.height,n=Math.min(r,i);return{scale:n,x:-(t.x+t.width/2)*n+(e.x+e.width/2),y:-(t.y+t.height/2)*n+(e.y+e.height/2)}}function ec(t,e){return(new Hu).parse(t,e)}var rc=ya.CMD;function ic(t,e){return Math.abs(t-e)<1e-5}function nc(t){var e,r,i,n,o,a=t.data,s=t.len(),h=[],l=0,u=0,c=0,f=0;function p(t,r){e&&e.length>2&&h.push(e),e=[t,r]}function d(t,r,i,n){ic(t,i)&&ic(r,n)||e.push(t,r,i,n,i,n)}function v(t,r,i,n,o,a){var s=Math.abs(r-t),h=4*Math.tan(s/4)/3,l=r<t?-1:1,u=Math.cos(t),c=Math.sin(t),f=Math.cos(r),p=Math.sin(r),d=u*o+i,v=c*a+n,y=f*o+i,g=p*a+n,_=o*h*l,m=a*h*l;e.push(d-_*c,v+m*u,y+_*p,g-m*f,y,g)}for(var y=0;y<s;){var g=a[y++],_=1===y;switch(_&&(c=l=a[y],f=u=a[y+1],g!==rc.L&&g!==rc.C&&g!==rc.Q||(e=[c,f])),g){case rc.M:l=c=a[y++],u=f=a[y++],p(c,f);break;case rc.L:d(l,u,r=a[y++],i=a[y++]),l=r,u=i;break;case rc.C:e.push(a[y++],a[y++],a[y++],a[y++],l=a[y++],u=a[y++]);break;case rc.Q:r=a[y++],i=a[y++],n=a[y++],o=a[y++],e.push(l+2/3*(r-l),u+2/3*(i-u),n+2/3*(r-n),o+2/3*(i-o),n,o),l=n,u=o;break;case rc.A:var m=a[y++],x=a[y++],w=a[y++],b=a[y++],k=a[y++],S=a[y++]+k;y+=1;var T=!a[y++];r=Math.cos(k)*w+m,i=Math.sin(k)*b+x,_?p(c=r,f=i):d(l,u,r,i),l=Math.cos(S)*w+m,u=Math.sin(S)*b+x;for(var C=(T?-1:1)*Math.PI/2,P=k;T?P>S:P<S;P+=C){v(P,T?Math.max(P+C,S):Math.min(P+C,S),m,x,w,b)}break;case rc.R:c=l=a[y++],f=u=a[y++],r=c+a[y++],i=f+a[y++],p(r,f),d(r,f,r,i),d(r,i,c,i),d(c,i,c,f),d(c,f,r,f);break;case rc.Z:e&&d(l,u,c,f),l=c,u=f}}return e&&e.length>2&&h.push(e),h}function oc(t,e,r,i,n,o,a,s,h,l){if(ic(t,r)&&ic(e,i)&&ic(n,a)&&ic(o,s))h.push(a,s);else{var u=2/l,c=u*u,f=a-t,p=s-e,d=Math.sqrt(f*f+p*p);f/=d,p/=d;var v=r-t,y=i-e,g=n-a,_=o-s,m=v*v+y*y,x=g*g+_*_;if(m<c&&x<c)h.push(a,s);else{var w=f*v+p*y,b=-f*g-p*_;if(m-w*w<c&&w>=0&&x-b*b<c&&b>=0)h.push(a,s);else{var k=[],S=[];Ar(t,r,n,a,.5,k),Ar(e,i,o,s,.5,S),oc(k[0],S[0],k[1],S[1],k[2],S[2],k[3],S[3],h,l),oc(k[4],S[4],k[5],S[5],k[6],S[6],k[7],S[7],h,l)}}}}function ac(t,e,r){var i=t[e],n=t[1-e],o=Math.abs(i/n),a=Math.ceil(Math.sqrt(o*r)),s=Math.floor(r/a);0===s&&(s=1,a=r);for(var h=[],l=0;l<a;l++)h.push(s);var u=r-a*s;if(u>0)for(l=0;l<u;l++)h[l%a]+=1;return h}function sc(t,e,r){for(var i=t.r0,n=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),h=s*n,l=n-i,u=h>Math.abs(l),c=ac([h,l],u?0:1,e),f=(u?s:l)/c.length,p=0;p<c.length;p++)for(var d=(u?l:s)/c[p],v=0;v<c[p];v++){var y={};u?(y.startAngle=o+f*p,y.endAngle=o+f*(p+1),y.r0=i+d*v,y.r=i+d*(v+1)):(y.startAngle=o+d*v,y.endAngle=o+d*(v+1),y.r0=i+f*p,y.r=i+f*(p+1)),y.clockwise=t.clockwise,y.cx=t.cx,y.cy=t.cy,r.push(y)}}function hc(t,e,r,i){return t*i-r*e}function lc(t,e,r,i,n,o,a,s){var h=r-t,l=i-e,u=a-n,c=s-o,f=hc(u,c,h,l);if(Math.abs(f)<1e-6)return null;var p=hc(t-n,e-o,u,c)/f;return p<0||p>1?null:new Oe(p*h+t,p*l+e)}function uc(t,e,r){var i=new Oe;Oe.sub(i,r,e),i.normalize();var n=new Oe;return Oe.sub(n,t,e),n.dot(i)}function cc(t,e){var r=t[t.length-1];r&&r[0]===e[0]&&r[1]===e[1]||t.push(e)}function fc(t){var e=t.points,r=[],i=[];qo(e,r,i);var n=new Xe(r[0],r[1],i[0]-r[0],i[1]-r[1]),o=n.width,a=n.height,s=n.x,h=n.y,l=new Oe,u=new Oe;return o>a?(l.x=u.x=s+o/2,l.y=h,u.y=h+a):(l.y=u.y=h+a/2,l.x=s,u.x=s+o),function(t,e,r){for(var i=t.length,n=[],o=0;o<i;o++){var a=t[o],s=t[(o+1)%i],h=lc(a[0],a[1],s[0],s[1],e.x,e.y,r.x,r.y);h&&n.push({projPt:uc(h,e,r),pt:h,idx:o})}if(n.length<2)return[{points:t},{points:t}];n.sort((function(t,e){return t.projPt-e.projPt}));var l=n[0],u=n[n.length-1];if(u.idx<l.idx){var c=l;l=u,u=c}var f=[l.pt.x,l.pt.y],p=[u.pt.x,u.pt.y],d=[f],v=[p];for(o=l.idx+1;o<=u.idx;o++)cc(d,t[o].slice());for(cc(d,p),cc(d,f),o=u.idx+1;o<=l.idx+i;o++)cc(v,t[o%i].slice());return cc(v,f),cc(v,p),[{points:d},{points:v}]}(e,l,u)}function pc(t,e,r,i){if(1===r)i.push(e);else{var n=Math.floor(r/2),o=t(e);pc(t,o[0],n,i),pc(t,o[1],r-n,i)}return i}function dc(t,e){var r,i=[],n=t.shape;switch(t.type){case"rect":!function(t,e,r){for(var i=t.width,n=t.height,o=i>n,a=ac([i,n],o?0:1,e),s=o?"width":"height",h=o?"height":"width",l=o?"x":"y",u=o?"y":"x",c=t[s]/a.length,f=0;f<a.length;f++)for(var p=t[h]/a[f],d=0;d<a[f];d++){var v={};v[l]=f*c,v[u]=d*p,v[s]=c,v[h]=p,v.x+=t.x,v.y+=t.y,r.push(v)}}(n,e,i),r=Qa;break;case"sector":sc(n,e,i),r=ih;break;case"circle":sc({r0:0,r:n.r,startAngle:0,endAngle:2*Math.PI,cx:n.cx,cy:n.cy},e,i),r=ih;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=R(function(t,e){var r=nc(t),i=[];e=e||1;for(var n=0;n<r.length;n++){var o=r[n],a=[],s=o[0],h=o[1];a.push(s,h);for(var l=2;l<o.length;){var u=o[l++],c=o[l++],f=o[l++],p=o[l++],d=o[l++],v=o[l++];oc(s,h,u,c,f,p,d,v,a,e),s=d,h=v}i.push(a)}return i}(t.getUpdatedPathProxy(),a),(function(t){return function(t){for(var e=[],r=0;r<t.length;)e.push([t[r++],t[r++]]);return e}(t)})),h=s.length;if(0===h)pc(fc,{points:s[0]},e,i);else if(h===e)for(var l=0;l<h;l++)i.push({points:s[l]});else{var u=0,c=R(s,(function(t){var e=[],r=[];qo(t,e,r);var i=(r[1]-e[1])*(r[0]-e[0]);return u+=i,{poly:t,area:i}}));c.sort((function(t,e){return e.area-t.area}));var f=e;for(l=0;l<h;l++){var p=c[l];if(f<=0)break;var d=l===h-1?f:Math.ceil(p.area/u*e);d<0||(pc(fc,{points:p.poly},d,i),f-=d)}}r=uh}if(!r)return function(t,e){for(var r=[],i=0;i<e;i++)r.push(Rs(t));return r}(t,e);var v,y,g=[];for(l=0;l<i.length;l++){var _=new r;_.setShape(i[l]),v=t,(y=_).setStyle(v.style),y.z=v.z,y.z2=v.z2,y.zlevel=v.zlevel,g.push(_)}return g}function vc(t,e){var r=t.length,i=e.length;if(r===i)return[t,e];for(var n=[],o=[],a=r<i?t:e,s=Math.min(r,i),h=Math.abs(i-r)/6,l=(s-2)/6,u=Math.ceil(h/l)+1,c=[a[0],a[1]],f=h,p=2;p<s;){var d=a[p-2],v=a[p-1],y=a[p++],g=a[p++],_=a[p++],m=a[p++],x=a[p++],w=a[p++];if(f<=0)c.push(y,g,_,m,x,w);else{for(var b=Math.min(f,u-1)+1,k=1;k<=b;k++){var S=k/b;Ar(d,y,_,x,S,n),Ar(v,g,m,w,S,o),d=n[3],v=o[3],c.push(n[1],o[1],n[2],o[2],d,v),y=n[5],g=o[5],_=n[6],m=o[6]}f-=b-1}}return a===t?[c,e]:[t,c]}function yc(t,e){for(var r=t.length,i=t[r-2],n=t[r-1],o=[],a=0;a<e.length;)o[a++]=i,o[a++]=n;return o}function gc(t){for(var e=0,r=0,i=0,n=t.length,o=0,a=n-2;o<n;a=o,o+=2){var s=t[a],h=t[a+1],l=t[o],u=t[o+1],c=s*u-l*h;e+=c,r+=(s+l)*c,i+=(h+u)*c}return 0===e?[t[0]||0,t[1]||0]:[r/e/3,i/e/3,e]}function _c(t,e,r,i){for(var n=(t.length-2)/6,o=Infinity,a=0,s=t.length,h=s-2,l=0;l<n;l++){for(var u=6*l,c=0,f=0;f<s;f+=2){var p=0===f?u:(u+f-2)%h+2,d=t[p]-r[0],v=t[p+1]-r[1],y=e[f]-i[0]-d,g=e[f+1]-i[1]-v;c+=y*y+g*g}c<o&&(o=c,a=l)}return a}function mc(t){for(var e=[],r=t.length,i=0;i<r;i+=2)e[i]=t[r-i-2],e[i+1]=t[r-i-1];return e}function xc(t){return t.__isCombineMorphing}var wc="__mOriginal_";function bc(t,e,r){var i=wc+e,n=t[i]||t[e];t[i]||(t[i]=t[e]);var o=r.replace,a=r.after,s=r.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):n.apply(this,e),a&&a.apply(this,e),t}}function kc(t,e){var r=wc+e;t[r]&&(t[e]=t[r],t[r]=null)}function Sc(t,e){for(var r=0;r<t.length;r++)for(var i=t[r],n=0;n<i.length;){var o=i[n],a=i[n+1];i[n++]=e[0]*o+e[2]*a+e[4],i[n++]=e[1]*o+e[3]*a+e[5]}}function Tc(t,e){var r=t.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),n=function(t,e){for(var r,i,n,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var h=t[s],l=e[s],u=void 0,c=void 0;h?l?(i=u=(r=vc(h,l))[0],n=c=r[1]):(c=yc(n||h,h),u=h):(u=yc(i||l,l),c=l),o.push(u),a.push(c)}return[o,a]}(nc(r),nc(i)),o=n[0],a=n[1],s=t.getComputedTransform(),h=e.getComputedTransform();s&&Sc(o,s),h&&Sc(a,h),bc(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var l=function(t,e,r,i){for(var n,o=[],a=0;a<t.length;a++){var s=t[a],h=e[a],l=gc(s),u=gc(h);null==n&&(n=l[2]<0!=u[2]<0);var c=[],f=[],p=0,d=Infinity,v=[],y=s.length;n&&(s=mc(s));for(var g=6*_c(s,h,l,u),_=y-2,m=0;m<_;m+=2){var x=(g+m)%_+2;c[m+2]=s[x]-l[0],c[m+3]=s[x+1]-l[1]}if(c[0]=s[g]-l[0],c[1]=s[g+1]-l[1],r>0)for(var w=i/r,b=-i/2;b<=i/2;b+=w){var k=Math.sin(b),S=Math.cos(b),T=0;for(m=0;m<s.length;m+=2){var C=c[m],P=c[m+1],M=h[m]-u[0],A=h[m+1]-u[1],L=M*S-A*k,I=M*k+A*S;v[m]=L,v[m+1]=I;var O=L-C,D=I-P;T+=O*O+D*D}if(T<d){d=T,p=b;for(var z=0;z<v.length;z++)f[z]=v[z]}}else for(var R=0;R<y;R+=2)f[R]=h[R]-u[0],f[R+1]=h[R+1]-u[1];o.push({from:c,to:f,fromCp:l,toCp:u,rotation:-p})}return o}(o,a,10,Math.PI),u=[];bc(e,"buildPath",{replace:function(t){for(var r=e.__morphT,i=1-r,n=[],o=0;o<l.length;o++){var a=l[o],s=a.from,h=a.to,c=a.rotation*r,f=a.fromCp,p=a.toCp,d=Math.sin(c),v=Math.cos(c);Wt(n,f,p,r);for(var y=0;y<s.length;y+=2){var g=s[y],_=s[y+1],m=g*i+(k=h[y])*r,x=_*i+(S=h[y+1])*r;u[y]=m*v-x*d+n[0],u[y+1]=m*d+x*v+n[1]}var w=u[0],b=u[1];t.moveTo(w,b);for(y=2;y<s.length;){var k=u[y++],S=u[y++],T=u[y++],C=u[y++],P=u[y++],M=u[y++];w===k&&b===S&&T===P&&C===M?t.lineTo(P,M):t.bezierCurveTo(k,S,T,C,P,M),w=P,b=M}}}})}function Cc(t,e,r){if(!t||!e)return e;var i=r.done,n=r.during;return Tc(t,e),e.__morphT=0,e.animateTo({__morphT:1},M({during:function(t){e.dirtyShape(),n&&n(t)},done:function(){kc(e,"buildPath"),kc(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),i&&i()}},r)),e}function Pc(t,e,r,i,n,o){t=n===r?0:Math.round(32767*(t-r)/(n-r)),e=o===i?0:Math.round(32767*(e-i)/(o-i));for(var a,s=0,h=32768;h>0;h/=2){var l=0,u=0;(t&h)>0&&(l=1),(e&h)>0&&(u=1),s+=h*h*(3*l^u),0===u&&(1===l&&(t=h-1-t,e=h-1-e),a=t,t=e,e=a)}return s}function Mc(t){var e=Infinity,r=Infinity,i=-Infinity,n=-Infinity,o=R(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),h=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),r=Math.min(h,r),i=Math.max(s,i),n=Math.max(h,n),[s,h]}));return R(o,(function(o,a){return{cp:o,z:Pc(o[0],o[1],e,r,i,n),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function Ac(t){return dc(t.path,t.count)}function Lc(t,e,r){var i=[];!function t(e){for(var r=0;r<e.length;r++){var n=e[r];xc(n)?t(n.childrenRef()):n instanceof Fa&&i.push(n)}}(t);var n=i.length;if(!n)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(r.dividePath||Ac)({path:e,count:n});if(o.length!==n)return{fromIndividuals:[],toIndividuals:[],count:0};i=Mc(i),o=Mc(o);for(var a=r.done,s=r.during,h=r.individualDelay,l=new Ln,u=0;u<n;u++){var c=i[u],f=o[u];f.parent=e,f.copyTransform(l),h||Tc(c,f)}function p(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function d(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,kc(e,"addSelfToZr"),kc(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},bc(e,"addSelfToZr",{after:function(t){p(t)}}),bc(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var v=o.length;if(h){var y=v,g=function(){0===--y&&(d(),a&&a())};for(u=0;u<v;u++){var _=h?M({delay:(r.delay||0)+h(u,v,i[u],o[u]),done:g},r):r;Cc(i[u],o[u],_)}}else e.__morphT=0,e.animateTo({__morphT:1},M({during:function(t){for(var r=0;r<v;r++){var i=o[r];i.__morphT=e.__morphT,i.dirtyShape()}s&&s(t)},done:function(){d();for(var e=0;e<t.length;e++)kc(t[e],"updateTransform");a&&a()}},r));return e.__zr&&p(e.__zr),{fromIndividuals:i,toIndividuals:o,count:v}}function Ic(t,e,r){var i=e.length,n=[],o=r.dividePath||Ac;if(xc(t)){!function t(e){for(var r=0;r<e.length;r++){var i=e[r];xc(i)?t(i.childrenRef()):i instanceof Fa&&n.push(i)}}(t.childrenRef());var a=n.length;if(a<i)for(var s=0,h=a;h<i;h++)n.push(Rs(n[s++%a]));n.length=i}else{n=o({path:t,count:i});var l=t.getComputedTransform();for(h=0;h<n.length;h++)n[h].setLocalTransform(l);if(n.length!==i)return{fromIndividuals:[],toIndividuals:[],count:0}}n=Mc(n),e=Mc(e);var u=r.individualDelay;for(h=0;h<i;h++){var c=u?M({delay:(r.delay||0)+u(h,i,n[h],e[h])},r):r;Cc(n[h],e[h],c)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}export{st as $,Va as A,Ua as B,Me as C,Xt as D,_t as E,Ns as F,Ws as G,uh as H,ph as I,Qa as J,bh as K,gh as L,Th as M,Xe as N,Ph as O,Fa as P,$n as Q,ah as R,ih as S,Ln as T,Hh as U,Lh as V,Bh as W,Oe as X,Ih as Y,ja as Z,ps as _,X as a,ui as a$,T as a0,S as a1,O as a2,ot as a3,se as a4,W as a5,Z as a6,B as a7,E as a8,lt as a9,wa as aA,Su as aB,Ou as aC,Pr as aD,Tr as aE,hi as aF,da as aG,it as aH,et as aI,Ce as aJ,N as aK,ge as aL,ye as aM,Du as aN,ec as aO,tc as aP,Ro as aQ,ke as aR,we as aS,Tt as aT,C as aU,qo as aV,Te as aW,Pe as aX,ai as aY,fi as aZ,ii as a_,vt as aa,mt as ab,Hn as ac,Xh as ad,qr as ae,h as af,hl as ag,Kt as ah,io as ai,or as aj,l as ak,ao as al,no as am,nt as an,Nn as ao,tt as ap,cl as aq,jt as ar,qt as as,vo as at,zn as au,ya as av,Nt as aw,Wt as ax,Fr as ay,Lr as az,U as b,ci as b0,Ct as b1,Ft as b2,Rt as b3,St as b4,Lt as b5,It as b6,Pt as b7,At as b8,Rr as b9,Or as ba,Et as bb,Ae as bc,Dr as bd,ga as be,ma as bf,oi as bg,Mn as bh,Ei as bi,K as bj,ve as bk,de as bl,re as bm,J as bn,xc as bo,Cc as bp,Lc as bq,Ic as br,Rs as bs,yi as bt,Le as bu,Yt as bv,wt as bw,so as bx,dt as c,at as d,z as e,V as f,Y as g,L as h,q as i,r as j,I as k,P as l,R as m,j as n,vi as o,D as p,H as q,F as r,rt as s,Os as t,zs as u,be as v,Se as w,M as x,Ds as y,Ya as z};
- //# sourceMappingURL=zrender-ee9f2f6d.js.map
|