收藏
回答

uniapp安装echarts图表后提示非法文件?

Error: 非法的文件,错误信息:invalid file: common/vendor.js, 33:7155, SyntaxError: Unexpected token ?***************************************************************************** */var Wf=function(t,e){return Wf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Wf(t,e)};function H(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Wf(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var sA=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),uA=function(){function t(){this.browser=new sA,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=typeof window<"u"}return t}(),mn=new uA;typeof Ds=="object"&&typeof Ds.getSystemInfoSync=="function"?(mn.wxa=!0,mn.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?mn.worker=!0:typeof navigator>"u"?(mn.node=!0,mn.svgSupported=!0):lA(navigator.userAgent,mn);function lA(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u";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}const ut=mn;var yh=12,fA="sans-serif",zn=yh+"px "+fA,cA=20,hA=100,vA="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function pA(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-cA)/hA;e[n]=i}return e}var dA=pA(vA),cr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var i=cr.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||zn),t.measureText(r);r=r||"",n=n||zn;var a=/(\d+)px/.exec(n),o=a&&+a[1]||yh,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=dA[r[u]];s+=l==null?o:l*o}return{width:s}}}(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}};function D_(t){for(var e in cr)t[e]&&(cr[e]=t[e])}var A_=Qe(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),P_=Qe(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Wi=Object.prototype.toString,Tu=Array.prototype,gA=Tu.forEach,yA=Tu.filter,mh=Tu.slice,mA=Tu.map,mp=function(){}.constructor,To=mp?mp.prototype:null,_h="__proto__",_A=2311;function Sh(){return _A++}function Or(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function et(t){if(t==null||typeof t!="object")return t;var e=t,r=Wi.call(t);if(r==="[object Array]"){if(!bi(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=et(t[n])}}else if(P_[r]){if(!bi(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!A_[r]&&!bi(t)&&!Va(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==_h&&(e[o]=et(t[o]))}return e}function it(t,e,r){if(!V(e)||!V(t))return r?et(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==_h){var i=t[n],a=e[n];V(a)&&V(i)&&!U(a)&&!U(i)&&!Va(a)&&!Va(i)&&!Yf(a)&&!Yf(i)&&!bi(a)&&!bi(i)?it(i,a,r):(r||!(n in t))&&(t[n]=et(e[n]))}return t}function SA(t,e){for(var r=t[0],n=1,i=t.length;n<i;n++)r=it(r,t[n],e);return r}function N(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==_h&&(t[r]=e[r]);return t}function ot(t,e,r){for(var n=ht(e),i=0;i<n.length;i++){var a=n[i];(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}return t}var wA=cr.createCanvas;function at(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function wh(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function Ce(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else ot(t,e,r)}function Kt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function M(t,e,r){if(t&&e)if(t.forEach&&t.forEach===gA)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function G(t,e,r){if(!t)return[];if(!e)return Mu(t);if(t.map&&t.map===mA)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function Qe(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function Dt(t,e,r){if(!t)return[];if(!e)return Mu(t);if(t.filter&&t.filter===yA)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function bA(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function ht(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}function xA(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(mh.call(arguments)))}}var Rt=To&&K(To.bind)?To.call.bind(To.bind):xA;function Yi(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(mh.call(arguments)))}}function U(t){return Array.isArray?Array.isArray(t):Wi.call(t)==="[object Array]"}function K(t){return typeof t=="function"}function X(t){return typeof t=="string"}function bh(t){return Wi.call(t)==="[object String]"}function Ct(t){return typeof t=="number"}function V(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Yf(t){return!!A_[Wi.call(t)]}function Wt(t){return!!P_[Wi.call(t)]}function Va(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function oo(t){return t.colorStops!=null}function I_(t){return t.image!=null}function E_(t){return Wi.call(t)==="[object RegExp]"}function Ei(t){return t!==t}function Fr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function tt(t,e){return t??e}function An(t,e,r){return t??e??r}function Mu(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return mh.apply(t,e)}function xh(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function q(t,e){if(!t)throw new Error(e)}function ar(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var L_="__ec_primitive__";function Hs(t){t[L_]=!0}function bi(t){return t[L_]}var CA=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return ht(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),R_=typeof Map=="function";function TA(){return R_?new Map:new CA}var O_=function(){function t(e){var r=U(e);this.data=TA();var n=this;e instanceof t?e.each(i):e&&M(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return R_?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function Z(t){return new O_(t)}function k_(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function so(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&N(r,e),r}function Ch(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Li(t,e){return t.hasOwnProperty(e)}function se(){}var N_=180/Math.PI;const MA=Object.freeze(Object.defineProperty({__proto__:null,HashMap:O_,RADIAN_TO_DEGREE:N_,assert:q,bind:Rt,clone:et,concatArray:k_,createCanvas:wA,createHashMap:Z,createObject:so,curry:Yi,defaults:ot,disableUserSelect:Ch,each:M,eqNaN:Ei,extend:N,filter:Dt,find:bA,guid:Sh,hasOwn:Li,indexOf:at,inherits:wh,isArray:U,isArrayLike:Kt,isBuiltInObject:Yf,isDom:Va,isFunction:K,isGradientObject:oo,isImagePatternObject:I_,isNumber:Ct,isObject:V,isPrimitive:bi,isRegExp:E_,isString:X,isStringSafe:bh,isTypedArray:Wt,keys:ht,logError:Or,map:G,merge:it,mergeAll:SA,mixin:Ce,noop:se,normalizeCssArray:xh,reduce:Qe,retrieve:Fr,retrieve2:tt,retrieve3:An,setAsPrimitive:Hs,slice:Mu,trim:ar},Symbol.toStringTag,{value:"Module"}));function Wn(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function DA(t,e){return t[0]=e[0],t[1]=e[1],t}function B_(t){return[t[0],t[1]]}function AA(t,e,r){return t[0]=e,t[1]=r,t}function jf(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function PA(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function $_(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function Th(t){return Math.sqrt(Mh(t))}var IA=Th;function Mh(t){return t[0]*t[0]+t[1]*t[1]}var EA=Mh;function LA(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function RA(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function OA(t,e){return t[0]*e[0]+t[1]*e[1]}function ls(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function F_(t,e){var r=Th(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function zs(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var H_=zs;function z_(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Pn=z_;function kA(t,e){return t[0]=-e[0],t[1]=-e[1],t}function NA(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function qt(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function Dr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Ar(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}const BA=Object.freeze(Object.defineProperty({__proto__:null,add:jf,applyTransform:qt,clone:B_,copy:DA,create:Wn,dist:H_,distSquare:Pn,distance:zs,distanceSquare:z_,div:RA,dot:OA,len:Th,lenSquare:Mh,length:IA,lengthSquare:EA,lerp:NA,max:Ar,min:Dr,mul:LA,negate:kA,normalize:F_,scale:ls,scaleAndAdd:PA,set:AA,sub:$_},Symbol.toStringTag,{value:"Module"}));var Jn=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),$A=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Jn(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new Jn(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Jn(u,e),"dragleave",e.event),s&&s!==u&&this.handler.dispatchToElement(new Jn(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Jn(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Jn(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}();const FA=$A;var HA=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var u={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=a[e].length-1,f=a[e][l];return f&&f.callAtLast?a[e].splice(l,0,u):a[e].push(u),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,u=0;u<s;u++){var l=i[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(e,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],u=i.length,l=0;l<u;l++){var f=i[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t}();const Je=HA;var zA=Math.log(2);function Xf(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var u=Math.round(Math.log((1<<s)-1&~i)/zA);return t[r][u]}for(var l=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var p=1<<v;p&i||(c+=(h%2?-1:1)*t[r][v]*Xf(t,e-1,f,l,i|p,a),h++)}return a[o]=c,c}function _p(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]]],n={},i=Xf(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Xf(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(u,l,f){var c=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/c,u[1]=(l*a[3]+f*a[4]+a[5])/c}}}var Sp="___zrEVENTSAVED";function VA(t,e,r,n,i){if(e.getBoundingClientRect&&ut.domSupported&&!V_(e)){var a=e[Sp]||(e[Sp]={}),o=GA(e,a),s=UA(o,a,i);if(s)return s(t,r,n),!0}return!1}function GA(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return r}function UA(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=t[l].getBoundingClientRect(),c=2*l,v=f.left,h=f.top;o.push(v,h),u=u&&a&&v===a[c]&&h===a[c+1],s.push(t[l].offsetLeft,t[l].offsetTop)}return u&&i?i:(e.srcCoords=o,e[n]=r?_p(s,o):_p(o,s))}function V_(t){return t.nodeName.toUpperCase()==="CANVAS"}var WA=/([&<>"'])/g,YA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Vs(t){return t==null?"":(t+"").replace(WA,function(e,r){return YA[r]})}var jA=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ol=[],XA=ut.browser.firefox&&+ut.browser.version.split(".")[0]<39;function qf(t,e,r,n){return r=r||{},n?wp(t,e,r):XA&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):wp(t,e,r),r}function wp(t,e,r){if(ut.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(V_(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(VA(ol,t,n,i)){r.zrX=ol[0],r.zrY=ol[1];return}}r.zrX=r.zrY=0}function Dh(t){return t||window.event}function Ae(t,e,r){if(e=Dh(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&qf(t,o,e,r)}else{qf(t,e,e,r);var a=qA(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&jA.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function qA(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function ZA(t,e,r,n){t.addEventListener(e,r,n)}function KA(t,e,r,n){t.removeEventListener(e,r,n)}var QA=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},JA=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var u=i[o],l=qf(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in sl)if(sl.hasOwnProperty(r)){var n=sl[r](this._track,e);if(n)return n}},t}();function bp(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function tP(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var sl={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=bp(n)/bp(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=tP(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Ri(){return[1,0,0,1,0,0]}function uo(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ah(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 kr(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],u=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t}function Zf(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 Ph(t,e,r){var n=e[0],i=e[2],a=e[4],o=e[1],s=e[3],u=e[5],l=Math.sin(r),f=Math.cos(r);return t[0]=n*f+o*l,t[1]=-n*l+o*f,t[2]=i*f+s*l,t[3]=-i*l+f*s,t[4]=f*a+l*u,t[5]=f*u-l*a,t}function G_(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Du(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],u=r*o-a*n;return u?(u=1/u,t[0]=o*u,t[1]=-a*u,t[2]=-n*u,t[3]=r*u,t[4]=(n*s-o*i)*u,t[5]=(a*i-r*s)*u,t):null}function eP(t){var e=Ri();return Ah(e,t),e}const rP=Object.freeze(Object.defineProperty({__proto__:null,clone:eP,copy:Ah,create:Ri,identity:uo,invert:Du,mul:kr,rotate:Ph,scale:G_,translate:Zf},Symbol.toStringTag,{value:"Module"}));var nP=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t}();const st=nP;var Mo=Math.min,Do=Math.max,Xr=new st,qr=new st,Zr=new st,Kr=new st,Zi=new st,Ki=new st,iP=function(){function t(e,r,n,i){n<0&&(e=e+n,n=-n),i<0&&(r=r+i,i=-i),this.x=e,this.y=r,this.width=n,this.height=i}return t.prototype.union=function(e){var r=Mo(e.x,this.x),n=Mo(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Do(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Do(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=Ri();return Zf(a,a,[-r.x,-r.y]),G_(a,a,[n,i]),Zf(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,u=e.x,l=e.x+e.width,f=e.y,c=e.y+e.height,v=!(a<u||l<i||s<f||c<o);if(r){var h=1/0,p=0,y=Math.abs(a-u),d=Math.abs(l-i),g=Math.abs(s-f),m=Math.abs(c-o),_=Math.min(y,d),S=Math.min(g,m);a<u||l<i?_>p&&(p=_,y<d?st.set(Ki,-y,0):st.set(Ki,d,0)):_<h&&(h=_,y<d?st.set(Zi,y,0):st.set(Zi,-d,0)),s<f||c<o?S>p&&(p=S,g<m?st.set(Ki,0,-g):st.set(Ki,0,m)):_<h&&(h=_,g<m?st.set(Zi,0,g):st.set(Zi,0,-m))}return r&&st.copy(r,v?Zi:Ki),v},t.prototype.contain=function(e,r){var n=this;return e>=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.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 this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Xr.x=Zr.x=r.x,Xr.y=Kr.y=r.y,qr.x=Kr.x=r.x+r.width,qr.y=Zr.y=r.y+r.height,Xr.transform(n),Kr.transform(n),qr.transform(n),Zr.transform(n),e.x=Mo(Xr.x,qr.x,Zr.x,Kr.x),e.y=Mo(Xr.y,qr.y,Zr.y,Kr.y);var u=Do(Xr.x,qr.x,Zr.x,Kr.x),l=Do(Xr.y,qr.y,Zr.y,Kr.y);e.width=u-e.x,e.height=l-e.y},t}();const J=iP;var U_="silent";function aP(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:oP}}function oP(){QA(this.event)}var sP=function(t){H(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Je),Qi=function(){function t(e,r){this.x=e,this.y=r}return t}(),uP=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ul=new J(0,0,0,0),W_=function(t){H(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Qi(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new sP,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new FA(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(M(uP,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=Y_(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Qi(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Qi(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=aP(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Qi(r,n);if(xp(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new J(r-l,n-l,u,u),c=a.length-1;c>=0;c--){var v=a[c];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(ul.copy(v.getBoundingRect()),v.transform&&ul.applyTransform(v.transform),ul.intersect(f)&&s.push(v))}if(s.length)for(var h=4,p=Math.PI/12,y=Math.PI*2,d=0;d<l;d+=h)for(var g=0;g<y;g+=p){var m=r+d*Math.cos(g),_=n+d*Math.sin(g);if(xp(s,o,m,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new JA);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Qi;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(Je);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){W_.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=Y_(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||H_(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function lP(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?U_:!0}return!1}function xp(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=lP(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==U_)){e.target=o;break}}}function Y_(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}const fP=W_;var j_=32,Ji=7;function cP(t){for(var e=0;t>=j_;)e|=t&1,t>>=1;return t+e}function Cp(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;hP(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function hP(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function Tp(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,u;o<s;)u=o+s>>>1,i(a,t[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;l>0;)t[o+l]=t[o+l-1],l--}t[o]=a}}function ll(t,e,r,n,i,a){var o=0,s=0,u=1;if(a(t,e[r+i])>0){for(s=n-i;u<s&&a(t,e[r+i+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;u<s&&a(t,e[r+i-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o<u;){var f=o+(u-o>>>1);a(t,e[r+f])>0?o=f+1:u=f}return u}function fl(t,e,r,n,i,a){var o=0,s=0,u=1;if(a(t,e[r+i])<0){for(s=i+1;u<s&&a(t,e[r+i-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u<s&&a(t,e[r+i+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o<u;){var f=o+(u-o>>>1);a(t,e[r+f])<0?u=f:o=f+1}return u}function vP(t,e){var r=Ji,n,i,a=0;t.length;var o=[];n=[],i=[];function s(h,p){n[a]=h,i[a]=p,a+=1}function u(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function l(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var p=n[h],y=i[h],d=n[h+1],g=i[h+1];i[h]=y+g,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var m=fl(t[d],t,p,y,0,e);p+=m,y-=m,y!==0&&(g=ll(t[p+y-1],t,d,g,g-1,e),g!==0&&(y<=g?c(p,y,d,g):v(p,y,d,g)))}function c(h,p,y,d){var g=0;for(g=0;g<p;g++)o[g]=t[h+g];var m=0,_=y,S=h;if(t[S++]=t[_++],--d===0){for(g=0;g<p;g++)t[S+g]=o[m+g];return}if(p===1){for(g=0;g<d;g++)t[S+g]=t[_+g];t[S+d]=o[m];return}for(var b=r,w,x,A;;){w=0,x=0,A=!1;do if(e(t[_],o[m])<0){if(t[S++]=t[_++],x++,w=0,--d===0){A=!0;break}}else if(t[S++]=o[m++],w++,x=0,--p===1){A=!0;break}while((w|x)<b);if(A)break;do{if(w=fl(t[_],o,m,p,0,e),w!==0){for(g=0;g<w;g++)t[S+g]=o[m+g];if(S+=w,m+=w,p-=w,p<=1){A=!0;break}}if(t[S++]=t[_++],--d===0){A=!0;break}if(x=ll(o[m],t,_,d,0,e),x!==0){for(g=0;g<x;g++)t[S+g]=t[_+g];if(S+=x,_+=x,d-=x,d===0){A=!0;break}}if(t[S++]=o[m++],--p===1){A=!0;break}b--}while(w>=Ji||x>=Ji);if(A)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),p===1){for(g=0;g<d;g++)t[S+g]=t[_+g];t[S+d]=o[m]}else{if(p===0)throw new Error;for(g=0;g<p;g++)t[S+g]=o[m+g]}}function v(h,p,y,d){var g=0;for(g=0;g<d;g++)o[g]=t[y+g];var m=h+p-1,_=d-1,S=y+d-1,b=0,w=0;if(t[S--]=t[m--],--p===0){for(b=S-(d-1),g=0;g<d;g++)t[b+g]=o[g];return}if(d===1){for(S-=p,m-=p,w=S+1,b=m+1,g=p-1;g>=0;g--)t[w+g]=t[b+g];t[S]=o[_];return}for(var x=r;;){var A=0,T=0,C=!1;do if(e(o[_],t[m])<0){if(t[S--]=t[m--],A++,T=0,--p===0){C=!0;break}}else if(t[S--]=o[_--],T++,A=0,--d===1){C=!0;break}while((A|T)<x);if(C)break;do{if(A=p-fl(o[_],t,h,p,p-1,e),A!==0){for(S-=A,m-=A,p-=A,w=S+1,b=m+1,g=A-1;g>=0;g--)t[w+g]=t[b+g];if(p===0){C=!0;break}}if(t[S--]=o[_--],--d===1){C=!0;break}if(T=d-ll(t[m],o,0,d,d-1,e),T!==0){for(S-=T,_-=T,d-=T,w=S+1,b=_+1,g=0;g<T;g++)t[w+g]=o[b+g];if(d<=1){C=!0;break}}if(t[S--]=t[m--],--p===0){C=!0;break}x--}while(A>=Ji||T>=Ji);if(C)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),d===1){for(S-=p,m-=p,w=S+1,b=m+1,g=p-1;g>=0;g--)t[w+g]=t[b+g];t[S]=o[_]}else{if(d===0)throw new Error;for(b=S-(d-1),g=0;g<d;g++)t[b+g]=o[g]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function fs(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<j_){a=Cp(t,r,n,e),Tp(t,r,n,r+a,e);return}var o=vP(t,e),s=cP(i);do{if(a=Cp(t,r,n,e),a<s){var u=i;u>s&&(u=s),Tp(t,r,r+u,r+a,e),a=u}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var oe=1,ga=2,vi=4,Mp=!1;function cl(){Mp||(Mp=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Dp(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var pP=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Dp}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,fs(n,Dp)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=e;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),u=0;u<s.length;u++){var l=s[u];e.__dirty&&(l.__dirty|=oe),this._updateAndAddDisplayable(l,r,n)}e.__dirty=0}else{var f=e;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(cl(),f.z=0),isNaN(f.z2)&&(cl(),f.z2=0),isNaN(f.zlevel)&&(cl(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,r,n);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=at(this._roots,e);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 dP=pP;var X_;X_=ut.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const Kf=X_;var cs={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 t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},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,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.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?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-cs.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?cs.bounceIn(t*2)*.5:cs.bounceOut(t*2-1)*.5+.5}};const q_=cs;var Ao=Math.pow,Nr=Math.sqrt,Gs=1e-8,Z_=1e-4,Ap=Nr(3),Po=1/3,Ye=Wn(),_e=Wn(),xi=Wn();function Pr(t){return t>-Gs&&t<Gs}function K_(t){return t>Gs||t<-Gs}function Mt(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function Pp(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function Q_(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),u=3*(e-t),l=t-i,f=s*s-3*o*u,c=s*u-9*o*l,v=u*u-3*s*l,h=0;if(Pr(f)&&Pr(c))if(Pr(s))a[0]=0;else{var p=-u/s;p>=0&&p<=1&&(a[h++]=p)}else{var y=c*c-4*f*v;if(Pr(y)){var d=c/f,p=-s/o+d,g=-d/2;p>=0&&p<=1&&(a[h++]=p),g>=0&&g<=1&&(a[h++]=g)}else if(y>0){var m=Nr(y),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-Ao(-_,Po):_=Ao(_,Po),S<0?S=-Ao(-S,Po):S=Ao(S,Po);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var b=(2*f*s-3*o*c)/(2*Nr(f*f*f)),w=Math.acos(b)/3,x=Nr(f),A=Math.cos(w),p=(-s-2*x*A)/(3*o),g=(-s+x*(A+Ap*Math.sin(w)))/(3*o),T=(-s+x*(A-Ap*Math.sin(w)))/(3*o);p>=0&&p<=1&&(a[h++]=p),g>=0&&g<=1&&(a[h++]=g),T>=0&&T<=1&&(a[h++]=T)}}return h}function J_(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,u=0;if(Pr(o)){if(K_(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(Pr(f))i[0]=-a/(2*o);else if(f>0){var c=Nr(f),l=(-a+c)/(2*o),v=(-a-c)/(2*o);l>=0&&l<=1&&(i[u++]=l),v>=0&&v<=1&&(i[u++]=v)}}return u}function Us(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,u=(n-r)*i+r,l=(s-o)*i+o,f=(u-s)*i+s,c=(f-l)*i+l;a[0]=t,a[1]=o,a[2]=l,a[3]=c,a[4]=c,a[5]=f,a[6]=u,a[7]=n}function gP(t,e,r,n,i,a,o,s,u,l,f){var c,v=.005,h=1/0,p,y,d,g;Ye[0]=u,Ye[1]=l;for(var m=0;m<1;m+=.05)_e[0]=Mt(t,r,i,o,m),_e[1]=Mt(e,n,a,s,m),d=Pn(Ye,_e),d<h&&(c=m,h=d);h=1/0;for(var _=0;_<32&&!(v<Z_);_++)p=c-v,y=c+v,_e[0]=Mt(t,r,i,o,p),_e[1]=Mt(e,n,a,s,p),d=Pn(_e,Ye),p>=0&&d<h?(c=p,h=d):(xi[0]=Mt(t,r,i,o,y),xi[1]=Mt(e,n,a,s,y),g=Pn(xi,Ye),y<=1&&g<h?(c=y,h=g):v*=.5);return f&&(f[0]=Mt(t,r,i,o,c),f[1]=Mt(e,n,a,s,c)),Nr(h)}function yP(t,e,r,n,i,a,o,s,u){for(var l=t,f=e,c=0,v=1/u,h=1;h<=u;h++){var p=h*v,y=Mt(t,r,i,o,p),d=Mt(e,n,a,s,p),g=y-l,m=d-f;c+=Math.sqrt(g*g+m*m),l=y,f=d}return c}function Et(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function Ip(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function mP(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,u=0;if(Pr(a)){if(K_(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(Pr(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var c=Nr(f),l=(-o+c)/(2*a),v=(-o-c)/(2*a);l>=0&&l<=1&&(i[u++]=l),v>=0&&v<=1&&(i[u++]=v)}}return u}function t0(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Ws(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function _P(t,e,r,n,i,a,o,s,u){var l,f=.005,c=1/0;Ye[0]=o,Ye[1]=s;for(var v=0;v<1;v+=.05){_e[0]=Et(t,r,i,v),_e[1]=Et(e,n,a,v);var h=Pn(Ye,_e);h<c&&(l=v,c=h)}c=1/0;for(var p=0;p<32&&!(f<Z_);p++){var y=l-f,d=l+f;_e[0]=Et(t,r,i,y),_e[1]=Et(e,n,a,y);var h=Pn(_e,Ye);if(y>=0&&h<c)l=y,c=h;else{xi[0]=Et(t,r,i,d),xi[1]=Et(e,n,a,d);var g=Pn(xi,Ye);d<=1&&g<c?(l=d,c=g):f*=.5}}return u&&(u[0]=Et(t,r,i,l),u[1]=Et(e,n,a,l)),Nr(c)}function SP(t,e,r,n,i,a,o){for(var s=t,u=e,l=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=Et(t,r,i,v),p=Et(e,n,a,v),y=h-s,d=p-u;l+=Math.sqrt(y*y+d*d),s=h,u=p}return l}var wP=/cubic-bezier\(([0-9,\.e ]+)\)/;function e0(t){var e=t&&wP.exec(t);if(e){var r=e[1].split(","),n=+ar(r[0]),i=+ar(r[1]),a=+ar(r[2]),o=+ar(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Q_(0,n,a,1,u,s)&&Mt(0,i,o,1,s[0])}}}var bP=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||se,this.ondestroy=e.ondestroy||se,this.onrestart=e.onrestart||se,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=e-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=K(e)?e:q_[e]||e0(e)},t}();const xP=bP;var r0=function(){function t(e){this.value=e}return t}(),CP=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new r0(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),TP=function(){function t(e){this._list=new CP,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new r0(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const lo=TP;var Ep={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 Re(t){return t=Math.round(t),t<0?0:t>255?255:t}function MP(t){return t=Math.round(t),t<0?0:t>360?360:t}function Ga(t){return t<0?0:t>1?1:t}function hl(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Re(parseFloat(e)/100*255):Re(parseInt(e,10))}function In(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ga(parseFloat(e)/100):Ga(parseFloat(e))}function vl(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Ir(t,e,r){return t+(e-t)*r}function de(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function Qf(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var n0=new lo(20),Io=null;function ti(t,e){Io&&Qf(Io,e),Io=n0.put(t,Io||e.slice())}function xe(t,e){if(t){e=e||[];var r=n0.get(t);if(r)return Qf(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in Ep)return Qf(e,Ep[n]),ti(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){de(e,0,0,0,1);return}return de(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),ti(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){de(e,0,0,0,1);return}return de(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ti(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?de(e,+l[0],+l[1],+l[2],1):de(e,0,0,0,1);f=In(l.pop());case"rgb":if(l.length>=3)return de(e,hl(l[0]),hl(l[1]),hl(l[2]),l.length===3?f:In(l[3])),ti(t,e),e;de(e,0,0,0,1);return;case"hsla":if(l.length!==4){de(e,0,0,0,1);return}return l[3]=In(l[3]),Jf(l,e),ti(t,e),e;case"hsl":if(l.length!==3){de(e,0,0,0,1);return}return Jf(l,e),ti(t,e),e;default:return}}de(e,0,0,0,1)}}function Jf(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=In(t[1]),i=In(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],de(e,Re(vl(o,a,r+1/3)*255),Re(vl(o,a,r)*255),Re(vl(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function DP(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+i):l=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,v=((a-n)/6+o/2)/o;e===a?u=v-c:r===a?u=1/3+f-v:n===a&&(u=2/3+c-f),u<0&&(u+=1),u>1&&(u-=1)}var h=[u*360,l,s];return t[3]!=null&&h.push(t[3]),h}}function tc(t,e){var r=xe(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Yn(r,r.length===4?"rgba":"rgb")}}function AP(t){var e=xe(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function i0(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],u=n-i;return r[0]=Re(Ir(o[0],s[0],u)),r[1]=Re(Ir(o[1],s[1],u)),r[2]=Re(Ir(o[2],s[2],u)),r[3]=Ga(Ir(o[3],s[3],u)),r}}var PP=i0;function a0(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=xe(e[i]),s=xe(e[a]),u=n-i,l=Yn([Re(Ir(o[0],s[0],u)),Re(Ir(o[1],s[1],u)),Re(Ir(o[2],s[2],u)),Ga(Ir(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}var IP=a0;function EP(t,e,r,n){var i=xe(t);if(t)return i=DP(i),e!=null&&(i[0]=MP(e)),r!=null&&(i[1]=In(r)),n!=null&&(i[2]=In(n)),Yn(Jf(i),"rgba")}function LP(t,e){var r=xe(t);if(r&&e!=null)return r[3]=Ga(e),Yn(r,"rgba")}function Yn(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Ua(t,e){var r=xe(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function RP(){return Yn([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const OP=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:i0,fastMapToColor:PP,lerp:a0,lift:tc,lum:Ua,mapToColor:IP,modifyAlpha:LP,modifyHSL:EP,parse:xe,random:RP,stringify:Yn,toHex:AP},Symbol.toStringTag,{value:"Module"}));function kP(t){return t.type==="linear"}function NP(t){return t.type==="radial"}(function(){return ut.hasGlobalWindow&&K(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return Or("Base64 isn't natively supported in the current environment."),null}})();var ec=Array.prototype.slice;function nr(t,e,r){return(e-t)*r+t}function pl(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=nr(e[a],r[a],n);return t}function BP(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=nr(e[o][s],r[o][s],n)}return t}function Eo(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function Lp(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function $P(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function FP(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var u=a;u<o;u++)n.push(r===1?i[u]:ec.call(i[u]))}for(var l=n[0]&&n[0].length,u=0;u<n.length;u++)if(r===1)isNaN(n[u])&&(n[u]=i[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=i[u][f])}}function hs(t){if(Kt(t)){var e=t.length;if(Kt(t[0])){for(var r=[],n=0;n<e;n++)r.push(ec.call(t[n]));return r}return ec.call(t)}return t}function vs(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]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function HP(t){return Kt(t&&t[0])?2:1}var Lo=0,ps=1,o0=2,ya=3,rc=4,nc=5,Rp=6;function Op(t){return t===rc||t===nc}function Ro(t){return t===ps||t===o0}var ta=[0,0,0,0],zP=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}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(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Rp,u=r;if(Kt(r)){var l=HP(r);s=l,(l===1&&!Ct(r[0])||l===2&&!Ct(r[0][0]))&&(o=!0)}else if(Ct(r)&&!Ei(r))s=Lo;else if(X(r))if(!isNaN(+r))s=Lo;else{var f=xe(r);f&&(u=f,s=ya)}else if(oo(r)){var c=N({},u);c.colorStops=G(r.colorStops,function(h){return{offset:h.offset,color:xe(h.color)}}),kP(r)?s=rc:NP(r)&&(s=nc),u=c}a===0?this.valType=s:(s!==this.valType||s===Rp)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:u,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=K(n)?n:q_[n]||e0(n)),i.push(v),v},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(y,d){return y.time-d.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=Ro(i),l=Op(i),f=0;f<a;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/e,s||(u&&f!==a-1?FP(v,h,i):l&&$P(v.colorStops,h.colorStops))}if(!s&&i!==nc&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var p=n[0].value,f=0;f<a;f++)i===Lo?n[f].additiveValue=n[f].value-p:i===ya?n[f].additiveValue=Eo([],n[f].value,p,-1):Ro(i)&&(n[f].additiveValue=i===ps?Eo([],n[f].value,p,-1):Lp([],n[f].value,p,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===ya,f,c=this._lastFr,v=Math.min,h,p;if(s===1)h=p=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var y=v(c+1,s-1);for(f=y;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}p=o[f+1],h=o[f]}if(h&&p){this._lastFr=f,this._lastFrP=r;var d=p.percent-h.percent,g=d===0?1:v((r-h.percent)/d,1);p.easingFunc&&(g=p.easingFunc(g));var m=n?this._additiveValue:l?ta:e[u];if((Ro(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)e[u]=g<1?h.rawValue:p.rawValue;else if(Ro(a))a===ps?pl(m,h[i],p[i],g):BP(m,h[i],p[i],g);else if(Op(a)){var _=h[i],S=p[i],b=a===rc;e[u]={type:b?"linear":"radial",x:nr(_.x,S.x,g),y:nr(_.y,S.y,g),colorStops:G(_.colorStops,function(x,A){var T=S.colorStops[A];return{offset:nr(x.offset,T.offset,g),color:vs(pl([],x.color,T.color,g))}}),global:S.global},b?(e[u].x2=nr(_.x2,S.x2,g),e[u].y2=nr(_.y2,S.y2,g)):e[u].r=nr(_.r,S.r,g)}else if(l)pl(m,h[i],p[i],g),n||(e[u]=vs(m));else{var w=nr(h[i],p[i],g);n?this._additiveValue=w:e[u]=w}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Lo?e[n]=e[n]+i:r===ya?(xe(e[n],ta),Eo(ta,ta,i,1),e[n]=vs(ta)):r===ps?Eo(e[n],e[n],i,1):r===o0&&Lp(e[n],e[n],i,1)},t}(),VP=function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){Or("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,ht(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],u=a[s];if(!u){u=a[s]=new zP(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,v=c[c.length-1];l=v&&v.value,f.valType===ya&&l&&(l=vs(l))}else l=this._target[s];if(l==null)continue;e>0&&u.addKeyframe(0,hs(l),i),this._trackKeys.push(s)}u.addKeyframe(e,hs(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(i,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=l[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new xP({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var p=r._additiveAnimators;if(p){for(var y=!1,d=0;d<p.length;d++)if(p[d]._clip){y=!0;break}y||(r._additiveAnimators=null)}for(var d=0;d<n.length;d++)n[d].step(r._target,h);var g=r._onframeCbs;if(g)for(var d=0;d<g.length;d++)g[d](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return G(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[n?0:s.length-1];u&&(e[a]=hs(u.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||ht(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t}();const Ih=VP;function yi(){return new Date().getTime()}var GP=function(t){H(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=yi()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Kf(n),!r._paused&&r.update())}Kf(n)},e.prototype.start=function(){this._running||(this._time=yi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=yi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=yi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new Ih(r,n.loop);return this.addAnimator(i),i},e}(Je);const UP=GP;var WP=300,dl=ut.domSupported,gl=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=G(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}}(),kp={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Np=!1;function ic(t){var e=t.pointerType;return e==="pen"||e==="touch"}function YP(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function yl(t){t&&(t.zrByTouch=!0)}function jP(t,e){return Ae(t.dom,new XP(t,e),!0)}function s0(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var XP=function(){function t(e,r){this.stopPropagation=se,this.stopImmediatePropagation=se,this.preventDefault=se,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),Pe={mousedown:function(t){t=Ae(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Ae(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=Ae(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Ae(this.dom,t);var e=t.toElement||t.relatedTarget;s0(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Np=!0,t=Ae(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Np||(t=Ae(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Ae(this.dom,t),yl(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Pe.mousemove.call(this,t),Pe.mousedown.call(this,t)},touchmove:function(t){t=Ae(this.dom,t),yl(t),this.handler.processGesture(t,"change"),Pe.mousemove.call(this,t)},touchend:function(t){t=Ae(this.dom,t),yl(t),this.handler.processGesture(t,"end"),Pe.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<WP&&Pe.click.call(this,t)},pointerdown:function(t){Pe.mousedown.call(this,t)},pointermove:function(t){ic(t)||Pe.mousemove.call(this,t)},pointerup:function(t){Pe.mouseup.call(this,t)},pointerout:function(t){ic(t)||Pe.mouseout.call(this,t)}};M(["click","dblclick","contextmenu"],function(t){Pe[t]=function(e){e=Ae(this.dom,e),this.trigger(t,e)}});var ac={pointermove:function(t){ic(t)||ac.mousemove.call(this,t)},pointerup:function(t){ac.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 qP(t,e){var r=e.domHandlers;ut.pointerEventsSupported?M(gl.pointer,function(n){ds(e,n,function(i){r[n].call(t,i)})}):(ut.touchEventsSupported&&M(gl.touch,function(n){ds(e,n,function(i){r[n].call(t,i),YP(e)})}),M(gl.mouse,function(n){ds(e,n,function(i){i=Dh(i),e.touching||r[n].call(t,i)})}))}function ZP(t,e){ut.pointerEventsSupported?M(kp.pointer,r):ut.touchEventsSupported||M(kp.mouse,r);function r(n){function i(a){a=Dh(a),s0(t,a.target)||(a=jP(t,a),e.domHandlers[n].call(t,a))}ds(e,n,i,{capture:!0})}}function ds(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,ZA(t.domTarget,e,r,n)}function ml(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&KA(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Bp=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),KP=function(t){H(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new Bp(r,Pe),dl&&(i._globalHandlerScope=new Bp(document,ac)),qP(i,i._localHandlerScope),i}return e.prototype.dispose=function(){ml(this._localHandlerScope),dl&&ml(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,dl&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?ZP(this,n):ml(n)}},e}(Je);const QP=KP;var u0=1;ut.hasGlobalWindow&&(u0=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ys=u0,oc=.4,sc="#333",uc="#ccc",JP="#eee",$p=uo,Fp=5e-5;function Qr(t){return t>Fp||t<-Fp}var Jr=[],ei=[],_l=Ri(),Sl=Math.abs,tI=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Qr(this.rotation)||Qr(this.x)||Qr(this.y)||Qr(this.scaleX-1)||Qr(this.scaleY-1)||Qr(this.skewX)||Qr(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&($p(n),this.invTransform=null);return}n=n||Ri(),r?this.getLocalTransform(n):$p(n),e&&(r?kr(n,e,n):Ah(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Jr);var n=Jr[0]<0?-1:1,i=Jr[1]<0?-1:1,a=((Jr[0]-n)*r+n)/Jr[0]||0,o=((Jr[1]-i)*r+i)/Jr[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Ri(),Du(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(kr(ei,e.invTransform,r),r=ei);var n=this.originX,i=this.originY;(n||i)&&(_l[4]=n,_l[5]=i,kr(ei,r,_l),ei[4]-=n,ei[5]-=i,r=ei),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&qt(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&qt(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Sl(e[0]-1)>1e-10&&Sl(e[3]-1)>1e-10?Math.sqrt(Sl(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){eI(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,u=e.anchorY,l=e.rotation||0,f=e.x,c=e.y,v=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||u){var p=n+s,y=i+u;r[4]=-p*a-v*y*o,r[5]=-y*o-h*p*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=v*o,l&&Ph(r,r,l),r[4]+=n+f,r[5]+=i+c,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Wa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function eI(t,e){for(var r=0;r<Wa.length;r++){var n=Wa[r];t[n]=e[n]}}const l0=tI;var Hp={};function ue(t,e){e=e||zn;var r=Hp[e];r||(r=Hp[e]=new lo(500));var n=r.get(t);return n==null&&(n=cr.measureText(t,e).width,r.put(t,n)),n}function zp(t,e,r,n){var i=ue(t,e),a=Eh(e),o=ma(0,i,r),s=pi(0,a,n),u=new J(o,s,i,a);return u}function f0(t,e,r,n){var i=((t||"")+"").split(` [20231106 15:11:14][wx5aa6234714f5445a] [1.06.2301160][win32-x64]



回答关注问题邀请回答
收藏
登录 后发表内容