1import{_ as Y}from"./tslib-BDyQ-Jie.js";var sh=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),oh=function(){function r(){this.browser=new sh,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 r}(),q=new oh;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(q.wxa=!0,q.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?q.worker=!0:!q.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(q.node=!0,q.svgSupported=!0):fh(navigator.userAgent,q);function fh(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),a&&(e.ie=!0,e.version=a[1]),n&&(e.edge=!0,e.version=n[1],e.newEdge=+n[1].split(".")[0]>18),s&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var o=t.domSupported=typeof document<"u";if(o){var f=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in f||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in f)&&!("OTransition"in f),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var mn=12,Ao="sans-serif",Vt=mn+"px "+Ao,hh=20,uh=100,vh="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function lh(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),a=(r.charCodeAt(e)-hh)/uh;t[i]=a}return t}var ch=lh(vh),Er={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,i){if(!r){var a=Er.createCanvas();r=a&&a.getContext("2d")}if(r)return t!==i&&(t=r.font=i||Vt),r.measureText(e);e=e||"",i=i||Vt;var n=/((?:\d+)?\.?\d*)px/.exec(i),s=n&&+n[1]||mn,o=0;if(i.indexOf("mono")>=0)o=s*e.length;else for(var f=0;f<e.length;f++){var h=ch[e[f]];o+=h==null?s:h*s}return{width:o}}}(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}},Io=Bi(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Eo=Bi(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),se=Object.prototype.toString,ki=Array.prototype,dh=ki.forEach,ph=ki.filter,wn=ki.slice,gh=ki.map,Yn=(function(){}).constructor,Xe=Yn?Yn.prototype:null,Tn="__proto__",_h=2311;function Fo(){return _h++}function bn(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function Fr(r){if(r==null||typeof r!="object")return r;var t=r,e=se.call(r);if(e==="[object Array]"){if(!Se(r)){t=[];for(var i=0,a=r.length;i<a;i++)t[i]=Fr(r[i])}}else if(Eo[e]){if(!Se(r)){var n=r.constructor;if(n.from)t=n.from(r);else{t=new n(r.length);for(var i=0,a=r.length;i<a;i++)t[i]=r[i]}}}else if(!Io[e]&&!Se(r)&&!Ba(r)){t={};for(var s in r)r.hasOwnProperty(s)&&s!==Tn&&(t[s]=Fr(r[s]))}return t}function Ur(r,t,e){if(!$t(t)||!$t(r))return e?Fr(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==Tn){var a=r[i],n=t[i];$t(n)&&$t(a)&&!ie(n)&&!ie(a)&&!Ba(n)&&!Ba(a)&&!Wn(n)&&!Wn(a)&&!Se(n)&&!Se(a)?Ur(a,n,e):(e||!(i in r))&&(r[i]=Fr(t[i]))}return r}function Yc(r,t){for(var e=r[0],i=1,a=r.length;i<a;i++)e=Ur(e,r[i],t);return e}function H(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Tn&&(r[e]=t[e]);return r}function Mt(r,t,e){for(var i=X(t),a=0,n=i.length;a<n;a++){var s=i[a];(e?t[s]!=null:r[s]==null)&&(r[s]=t[s])}return r}function Bt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function Wc(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var a in e)e.hasOwnProperty(a)&&(r.prototype[a]=e[a]);r.prototype.constructor=r,r.superClass=t}function Oo(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),a=0;a<i.length;a++){var n=i[a];n!=="constructor"&&(e?t[n]!=null:r[n]==null)&&(r[n]=t[n])}else Mt(r,t,e)}function Yt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function at(r,t,e){if(r&&t)if(r.forEach&&r.forEach===dh)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r);else for(var n in r)r.hasOwnProperty(n)&&t.call(e,r[n],n,r)}function K(r,t,e){if(!r)return[];if(!t)return ko(r);if(r.map&&r.map===gh)return r.map(t,e);for(var i=[],a=0,n=r.length;a<n;a++)i.push(t.call(e,r[a],a,r));return i}function Bi(r,t,e,i){if(r&&t){for(var a=0,n=r.length;a<n;a++)e=t.call(i,e,r[a],a,r);return e}}function ka(r,t,e){if(!r)return[];if(!t)return ko(r);if(r.filter&&r.filter===ph)return r.filter(t,e);for(var i=[],a=0,n=r.length;a<n;a++)t.call(e,r[a],a,r)&&i.push(r[a]);return i}function Gc(r,t,e){if(r&&t){for(var i=0,a=r.length;i<a;i++)if(t.call(e,r[i],i,r))return r[i]}}function X(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function yh(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(wn.call(arguments)))}}var Xc=Xe&&rr(Xe.bind)?Xe.call.bind(Xe.bind):yh;function Uc(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(wn.call(arguments)))}}function ie(r){return Array.isArray?Array.isArray(r):se.call(r)==="[object Array]"}function rr(r){return typeof r=="function"}function Wt(r){return typeof r=="string"}function qc(r){return se.call(r)==="[object String]"}function be(r){return typeof r=="number"}function $t(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Wn(r){return!!Io[se.call(r)]}function mh(r){return!!Eo[se.call(r)]}function Ba(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Hi(r){return r.colorStops!=null}function wh(r){return r.image!=null}function $c(r){return se.call(r)==="[object RegExp]"}function Th(r){return r!==r}function Vc(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function Q(r,t){return r??t}function li(r,t,e){return r??t??e}function ko(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return wn.apply(r,t)}function bh(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Gn(r,t){if(!r)throw new Error(t)}function qr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Bo="__ec_primitive__";function Zc(r){r[Bo]=!0}function Se(r){return r[Bo]}var Sh=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return X(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r}(),Ho=typeof Map=="function";function Ch(){return Ho?new Map:new Sh}var Mh=function(){function r(t){var e=ie(t);this.data=Ch();var i=this;t instanceof r?t.each(a):t&&at(t,a);function a(n,s){e?i.set(n,s):i.set(s,n)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,a){t.call(e,i,a)})},r.prototype.keys=function(){var t=this.data.keys();return Ho?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function Kc(r){return new Mh(r)}function Qc(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var a=r.length,i=0;i<t.length;i++)e[i+a]=t[i];return e}function zi(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&H(e,t),e}function zo(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function mi(r,t){return r.hasOwnProperty(t)}function Rr(){}var ci=180/Math.PI;function oe(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}
1function Jc(r,t){return r[0]=t[0],r[1]=t[1],r}function Ph(r){return[r[0],r[1]]}function jc(r,t,e){return r[0]=t,r[1]=e,r}function Xn(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function td(r,t,e,i){return r[0]=t[0]+e[0]*i,r[1]=t[1]+e[1]*i,r}function Lh(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function xh(r){return Math.sqrt(Rh(r))}function Rh(r){return r[0]*r[0]+r[1]*r[1]}function $i(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Dh(r,t){var e=xh(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Ha(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Ah=Ha;function Ih(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var re=Ih;function Eh(r,t,e,i){return r[0]=t[0]+i*(e[0]-t[0]),r[1]=t[1]+i*(e[1]-t[1]),r}function Ce(r,t,e){var i=t[0],a=t[1];return r[0]=e[0]*i+e[2]*a+e[4],r[1]=e[1]*i+e[3]*a+e[5],r}function $r(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Vr(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Or=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),Fh=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.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 Or(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,a=t.offsetY,n=i-this._x,s=a-this._y;this._x=i,this._y=a,e.drift(n,s,t),this.handler.dispatchToElement(new Or(e,t),"drag",t.event);var o=this.handler.findHover(i,a,e).target,f=this._dropTarget;this._dropTarget=o,e!==o&&(f&&o!==f&&this.handler.dispatchToElement(new Or(f,t),"dragleave",t.event),o&&o!==f&&this.handler.dispatchToElement(new Or(o,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Or(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Or(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),fe=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,a){this._$handlers||(this._$handlers={});var n=this._$handlers;if(typeof e=="function"&&(a=i,i=e,e=null),!i||!t)return this;var s=this._$eventProcessor;e!=null&&s&&s.normalizeQuery&&(e=s.normalizeQuery(e)),n[t]||(n[t]=[]);for(var o=0;o<n[t].length;o++)if(n[t][o].h===i)return this;var f={h:i,query:e,ctx:a||this,callAtLast:i.zrEventfulCallAtLast},h=n[t].length-1,u=n[t][h];return u&&u.callAtLast?n[t].splice(h,0,f):n[t].push(f),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var a=[],n=0,s=i[t].length;n<s;n++)i[t][n].h!==e&&a.push(i[t][n]);i[t]=a}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[t],n=this._$eventProcessor;if(a)for(var s=e.length,o=a.length,f=0;f<o;f++){var h=a[f];if(!(n&&n.filter&&h.query!=null&&!n.filter(t,h.query)))switch(s){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);break}}return n&&n.afterTrigger&&n.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[t],n=this._$eventProcessor;if(a)for(var s=e.length,o=e[s-1],f=a.length,h=0;h<f;h++){var u=a[h];if(!(n&&n.filter&&u.query!=null&&!n.filter(t,u.query)))switch(s){case 0:u.h.call(o);break;case 1:u.h.call(o,e[0]);break;case 2:u.h.call(o,e[0],e[1]);break;default:u.h.apply(o,e.slice(1,s-1));break}}return n&&n.afterTrigger&&n.afterTrigger(t),this},r}(),Oh=Math.log(2);function za(r,t,e,i,a,n){var s=i+"-"+a,o=r.length;if(n.hasOwnProperty(s))return n[s];if(t===1){var f=Math.round(Math.log((1<<o)-1&~a)/Oh);return r[e][f]}for(var h=i|1<<e,u=e+1;i&1<<u;)u++;for(var v=0,l=0,c=0;l<o;l++){var p=1<<l;p&a||(v+=(c%2?-1:1)*r[e][l]*za(r,t-1,u,h,a|p,n),c++)}return n[s]=v,v}function Un(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},a=za(e,8,0,0,0,i);if(a!==0){for(var n=[],s=0;s<8;s++)for(var o=0;o<8;o++)n[o]==null&&(n[o]=0),n[o]+=((s+o)%2?-1:1)*za(e,7,s===0?1:0,1<<s,1<<o,i)/a*t[s];return function(f,h,u){var v=h*n[6]+u*n[7]+1;f[0]=(h*n[0]+u*n[1]+n[2])/v,f[1]=(h*n[3]+u*n[4]+n[5])/v}}}var wi="___zrEVENTSAVED",Vi=[];function rd(r,t,e,i,a){return Na(Vi,t,i,a,!0)&&Na(r,e,Vi[0],Vi[1])}function ed(r,t){r&&e(r),t&&e(t);function e(i){var a=i[wi];a&&(a.clearMarkers&&a.clearMarkers(),delete i[wi])}}function Na(r,t,e,i,a){if(t.getBoundingClientRect&&q.domSupported&&!No(t)){var n=t[wi]||
1(t[wi]={}),s=kh(t,n),o=Bh(s,n,a);if(o)return o(r,e,i),!0}return!1}function kh(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],a=["top","bottom"],n=0;n<4;n++){var s=document.createElement("div"),o=s.style,f=n%2,h=(n>>1)%2;o.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[f]+":0",a[h]+":0",i[1-f]+":auto",a[1-h]+":auto",""].join("!important;"),r.appendChild(s),e.push(s)}return t.clearMarkers=function(){at(e,function(u){u.parentNode&&u.parentNode.removeChild(u)})},e}function Bh(r,t,e){for(var i=e?"invTrans":"trans",a=t[i],n=t.srcCoords,s=[],o=[],f=!0,h=0;h<4;h++){var u=r[h].getBoundingClientRect(),v=2*h,l=u.left,c=u.top;s.push(l,c),f=f&&n&&l===n[v]&&c===n[v+1],o.push(r[h].offsetLeft,r[h].offsetTop)}return f&&a?a:(t.srcCoords=s,t[i]=e?Un(o,s):Un(s,o))}function No(r){return r.nodeName.toUpperCase()==="CANVAS"}var Hh=/([&<>"'])/g,zh={"&":"&","<":"<",">":">",'"':""","'":"'"};function Nh(r){return r==null?"":(r+"").replace(Hh,function(t,e){return zh[e]})}var Yh=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Zi=[],Wh=q.browser.firefox&&+q.browser.version.split(".")[0]<39;function Ya(r,t,e,i){return e=e||{},i?qn(r,t,e):Wh&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):qn(r,t,e),e}function qn(r,t,e){if(q.domSupported&&r.getBoundingClientRect){var i=t.clientX,a=t.clientY;if(No(r)){var n=r.getBoundingClientRect();e.zrX=i-n.left,e.zrY=a-n.top;return}else if(Na(Zi,r,i,a)){e.zrX=Zi[0],e.zrY=Zi[1];return}}e.zrX=e.zrY=0}function Sn(r){return r||window.event}function Lt(r,t,e){if(t=Sn(t),t.zrX!=null)return t;var i=t.type,a=i&&i.indexOf("touch")>=0;if(a){var s=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];s&&Ya(r,s,t,e)}else{Ya(r,t,t,e);var n=Gh(t);t.zrDelta=n?n/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&Yh.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Gh(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var a=Math.abs(i!==0?i:e),n=i>0?-1:i<0?1:e>0?-1:1;return 3*a*n}function Xh(r,t,e,i){r.addEventListener(t,e,i)}function Uh(r,t,e,i){r.removeEventListener(t,e,i)}var qh=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function id(r){return r.which===2||r.which===3}var $h=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var a=t.touches;if(a){for(var n={points:[],touches:[],target:e,event:t},s=0,o=a.length;s<o;s++){var f=a[s],h=Ya(i,f,{});n.points.push([h.zrX,h.zrY]),n.touches.push(f)}this._track.push(n)}},r.prototype._recognize=function(t){for(var e in Ki)if(Ki.hasOwnProperty(e)){var i=Ki[e](this._track,t);if(i)return i}},r}();function $n(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function Vh(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Ki={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,a=(r[e-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var n=$n(i)/$n(a);!isFinite(n)&&(n=1),t.pinchScale=n;var s=Vh(i);return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:r[0].target,event:t}}}}};function Dr(){return[1,0,0,1,0,0]}function Zh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Yo(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Me(r,t,e){var i=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],n=t[0]*e[2]+t[2]*e[3],s=t[1]*e[2]+t[3]*e[3],o=t[0]*e[4]+t[2]*e[5]+t[4],f=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=a,r[2]=n,r[3]=s,r[4]=o,r[5]=f,r}function Wa(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Wo(r,t,e,i){i===void 0&&(i=[0,0]);var a=t[0],n=t[2],s=t[4],o=t[1],f=t[3],h=t[5],u=Math.sin(e),v=Math.cos(e);return r[0]=a*v+o*u,r[1]=-a*u+o*v,r[2]=n*v+f*u,r[3]=-n*u+v*f,r[4]=v*(s-i[0])+u*(h-i[1])+i[0],r[5]=v*(h-i[1])-u*(s-i[0])+i[1],r}function Go(r,t,e){var i=e[0],a=e[1];return r[0]=t[0]*i,r[1]=t[1]*a,r[2]=t[2]*i,r[3]=t[3]*a,r[4]=t[4]*i,r[5]=t[5]*a,r}function Xo(r,t){var e=t[0],i=t[2],a=t[4],n=t[1],s=t[3],o=t[5],f=e*s-n*i;return f?(f=1/f,r[0]=s*f,r[1]=-n*f,r[2]=-i*f,r[3]=e*f,r[4]=(i*o-s*a)*f,r[5]=(n*a-e*o)*f,r):null}function ad(r){var t=Dr();return Yo(t,r),t}var N=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]}
1,r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,a){t.x=e.x+i.x*a,t.y=e.y+i.y*a},r.lerp=function(t,e,i,a){var n=1-a;t.x=n*e.x+a*i.x,t.y=n*e.y+a*i.y},r}(),Pr=Math.min,Zr=Math.max,Ga=Math.abs,Vn=["x","y"],Kh=["width","height"],sr=new N,or=new N,fr=new N,hr=new N,gt=Uo(),_e=gt.minTv,Xa=gt.maxTv,Pe=[0,0],z=function(){function r(t,e,i,a){r.set(this,t,e,i,a)}return r.set=function(t,e,i,a,n){return a<0&&(e=e+a,a=-a),n<0&&(i=i+n,n=-n),t.x=e,t.y=i,t.width=a,t.height=n,t},r.prototype.union=function(t){var e=Pr(t.x,this.x),i=Pr(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Zr(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Zr(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,a=t.height/e.height,n=Dr();return Wa(n,n,[-e.x,-e.y]),Go(n,n,[i,a]),Wa(n,n,[t.x,t.y]),n},r.prototype.intersect=function(t,e,i){return r.intersect(this,t,e,i)},r.intersect=function(t,e,i,a){i&&N.set(i,0,0);var n=a&&a.outIntersectRect||null,s=a&&a.clamp;if(n&&(n.x=n.y=n.width=n.height=NaN),!t||!e)return!1;t instanceof r||(t=r.set(Qh,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(Jh,e.x,e.y,e.width,e.height));var o=!!i;gt.reset(a,o);var f=gt.touchThreshold,h=t.x+f,u=t.x+t.width-f,v=t.y+f,l=t.y+t.height-f,c=e.x+f,p=e.x+e.width-f,_=e.y+f,d=e.y+e.height-f;if(h>u||v>l||c>p||_>d)return!1;var g=!(u<c||p<h||l<_||d<v);return(o||n)&&(Pe[0]=1/0,Pe[1]=0,Zn(h,u,c,p,0,o,n,s),Zn(v,l,_,d,1,o,n,s),o&&N.copy(i,g?gt.useDir?gt.dirMinTv:_e:Xa)),g},r.contain=function(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var a=i[0],n=i[3],s=i[4],o=i[5];t.x=e.x*a+s,t.y=e.y*n+o,t.width=e.width*a,t.height=e.height*n,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}sr.x=fr.x=e.x,sr.y=hr.y=e.y,or.x=hr.x=e.x+e.width,or.y=fr.y=e.y+e.height,sr.transform(i),hr.transform(i),or.transform(i),fr.transform(i),t.x=Pr(sr.x,or.x,fr.x,hr.x),t.y=Pr(sr.y,or.y,fr.y,hr.y);var f=Zr(sr.x,or.x,fr.x,hr.x),h=Zr(sr.y,or.y,fr.y,hr.y);t.width=f-t.x,t.height=h-t.y},r}(),Qh=new z(0,0,0,0),Jh=new z(0,0,0,0);function Zn(r,t,e,i,a,n,s,o){var f=Ga(t-e),h=Ga(i-r),u=Pr(f,h),v=Vn[a],l=Vn[1-a],c=Kh[a];t<e||i<r?f<h?(n&&(Xa[v]=-f),o&&(s[v]=t,s[c]=0)):(n&&(Xa[v]=h),o&&(s[v]=r,s[c]=0)):(s&&(s[v]=Zr(r,e),s[c]=Pr(t,i)-s[v]),n&&(u<Pe[0]||gt.useDir)&&(Pe[0]=Pr(u,Pe[0]),(f<h||!gt.bidirectional)&&(_e[v]=f,_e[l]=0,gt.useDir&>.calcDirMTV()),(f>=h||!gt.bidirectional)&&(_e[v]=-h,_e[l]=0,gt.useDir&>.calcDirMTV())))}function Uo(){var r=0,t=new N,e=new N,i={minTv:new N,maxTv:new N,useDir:!1,dirMinTv:new N,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(n,s){i.touchThreshold=0,n&&n.touchThreshold!=null&&(i.touchThreshold=Zr(0,n.touchThreshold)),i.negativeSize=!1,s&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,n&&n.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),e.copy(i.minTv),r=n.direction,i.bidirectional=n.bidirectional==null||!!n.bidirectional,i.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var n=i.minTv,s=i.dirMinTv,o=n.y*n.y+n.x*n.x,f=Math.sin(r),h=Math.cos(r),u=f*n.y+h*n.x;if(a(u)){a(n.x)&&a(n.y)&&s.set(0,0);return}if(e.x=o*h/u,e.y=o*f/u,a(e.x)&&a(e.y)){s.set(0,0);return}(i.bidirectional||t.dot(e)>0)&&e.len()<s.len()&&s.copy(e)}};function a(n){return Ga(n)<1e-10}return i}var qo="silent";function jh(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:tu}}function tu(){qh(this.event)}var ru=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(fe),ve=function(){function r(t,e){this.x=t,this.y=e}return r}(),eu=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Qi=new z(0,0,0,0),$o=function(r){Y(t,r);function t(e,i,a,n,s){var o=r.call(this)||this;return o._hovered=new ve(0,0),o.storage=e,o.painter=i,o.painterRoot=n,o._pointerSize=s,a=a||new ru,o.proxy=null,o.setHandlerProxy(a),o._draggingMgr
1=new Fh(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(at(eu,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,a=e.zrY,n=Vo(this,i,a),s=this._hovered,o=s.target;o&&!o.__zr&&(s=this.findHover(s.x,s.y),o=s.target);var f=this._hovered=n?new ve(i,a):this.findHover(i,a),h=f.target,u=this.proxy;u.setCursor&&u.setCursor(h?h.cursor:"default"),o&&h!==o&&this.dispatchToElement(s,"mouseout",e),this.dispatchToElement(f,"mousemove",e),h&&h!==o&&this.dispatchToElement(f,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new ve(0,0)},t.prototype.dispatch=function(e,i){var a=this[e];a&&a.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,a){e=e||{};var n=e.target;if(!(n&&n.silent)){for(var s="on"+i,o=jh(i,e,a);n&&(n[s]&&(o.cancelBubble=!!n[s].call(n,o)),n.trigger(i,o),n=n.__hostTarget?n.__hostTarget:n.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(i,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[s]=="function"&&f[s].call(f,o),f.trigger&&f.trigger(i,o)}))}},t.prototype.findHover=function(e,i,a){var n=this.storage.getDisplayList(),s=new ve(e,i);if(Kn(n,s,e,i,a),this._pointerSize&&!s.target){for(var o=[],f=this._pointerSize,h=f/2,u=new z(e-h,i-h,f,f),v=n.length-1;v>=0;v--){var l=n[v];l!==a&&!l.ignore&&!l.ignoreCoarsePointer&&(!l.parent||!l.parent.ignoreCoarsePointer)&&(Qi.copy(l.getBoundingRect()),l.transform&&Qi.applyTransform(l.transform),Qi.intersect(u)&&o.push(l))}if(o.length)for(var c=4,p=Math.PI/12,_=Math.PI*2,d=0;d<h;d+=c)for(var g=0;g<_;g+=p){var y=e+d*Math.cos(g),m=i+d*Math.sin(g);if(Kn(o,s,y,m,a),s.target)return s}}return s},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new $h);var a=this._gestureMgr;i==="start"&&a.clear();var n=a.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);
1if(i==="end"&&a.clear(),n){var s=n.type;e.gestureEvent=s;var o=new ve;o.target=n.target,this.dispatchToElement(o,s,n.event)}},t}(fe);at(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){$o.prototype[r]=function(t){var e=t.zrX,i=t.zrY,a=Vo(this,e,i),n,s;if((r!=="mouseup"||!a)&&(n=this.findHover(e,i),s=n.target),r==="mousedown")this._downEl=s,this._downPoint=[t.zrX,t.zrY],this._upEl=s;else if(r==="mouseup")this._upEl=s;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Ah(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,r,t)}});function iu(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,a=void 0,n=!1;i;){if(i.ignoreClip&&(n=!0),!n){var s=i.getClipPath();if(s&&!s.contain(t,e))return!1}i.silent&&(a=!0);var o=i.__hostTarget;i=o?i.ignoreHostSilent?null:o:i.parent}return a?qo:!0}return!1}function Kn(r,t,e,i,a){for(var n=r.length-1;n>=0;n--){var s=r[n],o=void 0;if(s!==a&&!s.ignore&&(o=iu(s,e,i))&&(!t.topTarget&&(t.topTarget=s),o!==qo)){t.target=s;break}}}function Vo(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Zo=32,le=7;function au(r){for(var t=0;r>=Zo;)t|=r&1,r>>=1;return r+t}function Qn(r,t,e,i){var a=t+1;if(a===e)return 1;if(i(r[a++],r[t])<0){for(;a<e&&i(r[a],r[a-1])<0;)a++;nu(r,t,a)}else for(;a<e&&i(r[a],r[a-1])>=0;)a++;return a-t}function nu(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function Jn(r,t,e,i,a){for(i===t&&i++;i<e;i++){for(var n=r[i],s=t,o=i,f;s<o;)f=s+o>>>1,a(n,r[f])<0?o=f:s=f+1;var h=i-s;switch(h){case 3:r[s+3]=r[s+2];case 2:r[s+2]=r[s+1];case 1:r[s+1]=r[s];break;default:for(;h>0;)r[s+h]=r[s+h-1],h--}r[s]=n}}function Ji(r,t,e,i,a,n){var s=0,o=0,f=1;if(n(r,t[e+a])>0){for(o=i-a;f<o&&n(r,t[e+a+f])>0;)s=f,f=(f<<1)+1,f<=0&&(f=o);f>o&&(f=o),s+=a,f+=a}else{for(o=a+1;f<o&&n(r,t[e+a-f])<=0;)s=f,f=(f<<1)+1,f<=0&&(f=o);f>o&&(f=o);var h=s;s=a-f,f=a-h}for(s++;s<f;){var u=s+(f-s>>>1);n(r,t[e+u])>0?s=u+1:f=u}return f}function ji(r,t,e,i,a,n){var s=0,o=0,f=1;if(n(r,t[e+a])<0){for(o=a+1;f<o&&n(r,t[e+a-f])<0;)s=f,f=(f<<1)+1,f<=0&&(f=o);f>o&&(f=o);var h=s;s=a-f,f=a-h}else{for(o=i-a;f<o&&n(r,t[e+a+f])>=0;)s=f,f=(f<<1)+1,f<=0&&(f=o);f>o&&(f=o),s+=a,f+=a}for(s++;s<f;){var u=s+(f-s>>>1);n(r,t[e+u])<0?f=u:s=u+1}return f}function su(r,t){var e=le,i,a,n=0,s=[];i=[],a=[];function o(c,p){i[n]=c,a[n]=p,n+=1}function f(){for(;n>1;){var c=n-2;if(c>=1&&a[c-1]<=a[c]+a[c+1]||c>=2&&a[c-2]<=a[c]+a[c-1])a[c-1]<a[c+1]&&c--;else if(a[c]>a[c+1])break;u(c)}}function h(){for(;n>1;){var c=n-2;c>0&&a[c-1]<a[c+1]&&c--,u(c)}}function u(c){var p=i[c],_=a[c],d=i[c+1],g=a[c+1];a[c]=_+g,c===n-3&&(i[c+1]=i[c+2],a[c+1]=a[c+2]),n--;var y=ji(r[d],r,p,_,0,t);p+=y,_-=y,_!==0&&(g=Ji(r[p+_-1],r,d,g,g-1,t),g!==0&&(_<=g?v(p,_,d,g):l(p,_,d,g)))}function v(c,p,_,d){var g=0;for(g=0;g<p;g++)s[g]=r[c+g];var y=0,m=_,w=c;if(r[w++]=r[m++],--d===0){for(g=0;g<p;g++)r[w+g]=s[y+g];return}if(p===1){for(g=0;g<d;g++)r[w+g]=r[m+g];r[w+d]=s[y];return}for(var b=e,T,C,S;;){T=0,C=0,S=!1;do if(t(r[m],s[y])<0){if(r[w++]=r[m++],C++,T=0,--d===0){S=!0;break}}else if(r[w++]=s[y++],T++,C=0,--p===1){S=!0;break}while((T|C)<b);if(S)break;do{if(T=ji(r[m],s,y,p,0,t),T!==0){for(g=0;g<T;g++)r[w+g]=s[y+g];if(w+=T,y+=T,p-=T,p<=1){S=!0;break}}if(r[w++]=r[m++],--d===0){S=!0;break}if(C=Ji(s[y],r,m,d,0,t),C!==0){for(g=0;g<C;g++)r[w+g]=r[m+g];if(w+=C,m+=C,d-=C,d===0){S=!0;break}}if(r[w++]=s[y++],--p===1){S=!0;break}b--}while(T>=le||C>=le);if(S)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),p===1){for(g=0;g<d;g++)r[w+g]=r[m+g];r[w+d]=s[y]}else{if(p===0)throw new Error;for(g=0;g<p;g++)r[w+g]=s[y+g]}}function l(c,p,_,d){var g=0;for(g=0;g<d;g++)s[g]=r[_+g];var y=c+p-1,m=d-1,w=_+d-1,b=0,T=0;if(r[w--]=r[y--],--p===0){for(b=w-(d-1),g=0;g<d;g++)r[b+g]=s[g];return}if(d===1){for(w-=p,y-=p,T=w+1,b=y+1,g=p-1;g>=0;g--)r[T+g]=r[b+g];r[w]=s[m];return}for(var C=e;;){var S=0,M=0,P=!1;do if(t(s[m],r[y])<0){if(r[w--]=r[y--],S++,M=0,--p===0){P=!0;break}}else if(r[w--]=s[m--],M++,S=0,--d===1){P=!0;break}while((S|M)<C);if(P)break;do{if(S=p-ji(s[m],r,c,p,p-1,t),S!==0){for(w-=S,y-=S,p-=S,T=w+1,b=y+1,g=S-1;g>=0;g--)r[T+g]=r[b+g];if(p===0){P=!0;break}}if(r[w--]=s[m--],--d===1){P=!0;break}if(M=d-Ji(r[y],s,0,d,d-1,t),M!==0){for(w-=M,m-=M,d-=M,T=w+1,b=m+1,g=0;g<M;g++)r[T+g]=s[b+g];if(d<=1){P=!0;break}}if(r[w--]=r[y--],--p===0){P=!0;break}C--}while(S>=le||M>=le);if(P)break;C<0&&(C=0),C+=2}if(e=C,e<1&&(e=1),d===1){for(w-=p,y-=p,T=w+1,b=y+1,g=p-1;g>=0;g--)r[T+g]=r[b+g];r[w]=s[m]}else{if(d===0)throw new Error;for(b=w-(d-1),g=0;g<d;g++)r[b+g]=s[g]}}return{mergeRuns:f,forceMergeRuns:h,pushRun:o}}function ou(r,t,e,i){e||(e=0),i||(i=r.length);var a=i-e;if(!(a<2)){var n=0;if(a<Zo){n=Qn(r,e,i,t),Jn(r,e,i,e+n,t);return}var s=su(r,t),o=au(a);do{if(n=Qn(r,e,i,t),n<o){var f=a;f>o&&(f=o),Jn(r,e,e+f,e+n,t),n=f}s.pushRun(e,n),s.mergeRuns(),a-=n,e+=n}while(a!==0);s.forceMergeRuns()}}var _t=1,ye=2,Gr=4,jn=!1;function ta(){jn||(jn=!0,console.warn("z / z2 / zlevel of displayable is invali
1d, which may cause unexpected errors"))}function ts(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var fu=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ts}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,a=0,n=e.length;a<n;a++)this._updateAndAddDisplayable(e[a],null,t);i.length=this._displayListLen,ou(i,ts)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath(),n=e&&e.length,s=0,o=t.__clipPaths;if(!t.ignoreClip&&(n||a)){if(o||(o=t.__clipPaths=[]),n)for(var f=0;f<e.length;f++)o[s++]=e[f];for(var h=a,u=t;h;)h.parent=u,h.updateTransform(),o[s++]=h,u=h,h=h.getClipPath()}if(o&&(o.length=s),t.childrenRef){for(var v=t.childrenRef(),l=0;l<v.length;l++){var c=v[l];t.__dirty&&(c.__dirty|=_t),this._updateAndAddDisplayable(c,o,i)}t.__dirty=0}else{var p=t;isNaN(p.z)&&(ta(),p.z=0),isNaN(p.z2)&&(ta(),p.z2=0),isNaN(p.zlevel)&&(ta(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var _=t.getDecalElement&&t.getDecalElement();_&&this._updateAndAddDisplayable(_,o,i);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,o,i);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,o,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var a=Bt(this._roots,t);a>=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),Ti;Ti=q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Le={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Le.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Le.bounceIn(r*2)*.5:Le.bounceOut(r*2-1)*.5+.5}},Ue=Math.pow,er=Math.sqrt,bi=1e-8,Ko=1e-4,rs=er(3),qe=1/3,Ht=oe(),St=oe(),ee=oe();function Jt(r){return r>-bi&&r<bi}function Qo(r){return r>bi||r<-bi}function it(r,t,e,i,a){var n=1-a;return n*n*(n*r+3*a*t)+a*a*(a*i+3*n*e)}function es(r,t,e,i,a){var n=1-a;return 3*(((t-r)*n+2*(e-t)*a)*n+(i-e)*a*a)}function Jo(r,t,e,i,a,n){var s=i+3*(t-e)-r,o=3*(e-t*2+r),f=3*(t-r),h=r-a,u=o*o-3*s*f,v=o*f-9*s*h,l=f*f-3*o*h,c=0;if(Jt(u)&&Jt(v))if(Jt(o))n[0]=0;else{var p=-f/o;p>=0&&p<=1&&(n[c++]=p)}else{var _=v*v-4*u*l;if(Jt(_)){var d=v/u,p=-o/s+d,g=-d/2;p>=0&&p<=1&&(n[c++]=p),g>=0&&g<=1&&(n[c++]=g)}else if(_>0){var y=er(_),m=u*o+1.5*s*(-v+y),w=u*o+1.5*s*(-v-y);m<0?m=-Ue(-m,qe):m=Ue(m,qe),w<0?w=-Ue(-w,qe):w=Ue(w,qe);var p=(-o-(m+w))/(3*s);p>=0&&p<=1&&(n[c++]=p)}else{var b=(2*u*o-3*s*v)/(2*er(u*u*u)),T=Math.acos(b)/3,C=er(u),S=Math.cos(T),p=(-o-2*C*S)/(3*s),g=(-o+C*(S+rs*Math.sin(T)))/(3*s),M=(-o+C*(S-rs*Math.sin(T)))/(3*s);p>=0&&p<=1&&(n[c++]=p),g>=0&&g<=1&&(n[c++]=g),M>=0&&M<=1&&(n[c++]=M)}}return c}function jo(r,t,e,i,a){var n=6*e-12*t+6*r,s=9*t+3*i-3*r-9*e,o=3*t-3*r,f=0;if(Jt(s)){if(Qo(n)){var h=-o/n;h>=0&&h<=1&&(a[f++]=h)}}else{var u=n*n-4*s*o;if(Jt(u))a[0]=-n/(2*s);else if(u>0){var v=er(u),h=(-n+v)/(2*s),l=(-n-v)/(2*s);h>=0&&h<=1&&(a[f++]=h),l>=0&&l<=1&&(a[f++]=l)}}return f}function ar(r,t,e,i,a,n){var s=(t-r)*a+r,o=(e-t)*a+t,f=(i-e)*a+e,h=(o-s)*a+s,u=(f-o)*a+o,v=(u-h)*a+h;
1n[0]=r,n[1]=s,n[2]=h,n[3]=v,n[4]=v,n[5]=u,n[6]=f,n[7]=i}function hu(r,t,e,i,a,n,s,o,f,h,u){var v,l=.005,c=1/0,p,_,d,g;Ht[0]=f,Ht[1]=h;for(var y=0;y<1;y+=.05)St[0]=it(r,e,a,s,y),St[1]=it(t,i,n,o,y),d=re(Ht,St),d<c&&(v=y,c=d);c=1/0;for(var m=0;m<32&&!(l<Ko);m++)p=v-l,_=v+l,St[0]=it(r,e,a,s,p),St[1]=it(t,i,n,o,p),d=re(St,Ht),p>=0&&d<c?(v=p,c=d):(ee[0]=it(r,e,a,s,_),ee[1]=it(t,i,n,o,_),g=re(ee,Ht),_<=1&&g<c?(v=_,c=g):l*=.5);return u&&(u[0]=it(r,e,a,s,v),u[1]=it(t,i,n,o,v)),er(c)}function uu(r,t,e,i,a,n,s,o,f){for(var h=r,u=t,v=0,l=1/f,c=1;c<=f;c++){var p=c*l,_=it(r,e,a,s,p),d=it(t,i,n,o,p),g=_-h,y=d-u;v+=Math.sqrt(g*g+y*y),h=_,u=d}return v}function st(r,t,e,i){var a=1-i;return a*(a*r+2*i*t)+i*i*e}function is(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function vu(r,t,e,i,a){var n=r-2*t+e,s=2*(t-r),o=r-i,f=0;if(Jt(n)){if(Qo(s)){var h=-o/s;h>=0&&h<=1&&(a[f++]=h)}}else{var u=s*s-4*n*o;if(Jt(u)){var h=-s/(2*n);h>=0&&h<=1&&(a[f++]=h)}else if(u>0){var v=er(u),h=(-s+v)/(2*n),l=(-s-v)/(2*n);h>=0&&h<=1&&(a[f++]=h),l>=0&&l<=1&&(a[f++]=l)}}return f}function tf(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Si(r,t,e,i,a){var n=(t-r)*i+r,s=(e-t)*i+t,o=(s-n)*i+n;a[0]=r,a[1]=n,a[2]=o,a[3]=o,a[4]=s,a[5]=e}function lu(r,t,e,i,a,n,s,o,f){var h,u=.005,v=1/0;Ht[0]=s,Ht[1]=o;for(var l=0;l<1;l+=.05){St[0]=st(r,e,a,l),St[1]=st(t,i,n,l);var c=re(Ht,St);c<v&&(h=l,v=c)}v=1/0;for(var p=0;p<32&&!(u<Ko);p++){var _=h-u,d=h+u;St[0]=st(r,e,a,_),St[1]=st(t,i,n,_);var c=re(St,Ht);if(_>=0&&c<v)h=_,v=c;else{ee[0]=st(r,e,a,d),ee[1]=st(t,i,n,d);var g=re(ee,Ht);d<=1&&g<v?(h=d,v=g):u*=.5}}return f&&(f[0]=st(r,e,a,h),f[1]=st(t,i,n,h)),er(v)}function cu(r,t,e,i,a,n,s){for(var o=r,f=t,h=0,u=1/s,v=1;v<=s;v++){var l=v*u,c=st(r,e,a,l),p=st(t,i,n,l),_=c-o,d=p-f;h+=Math.sqrt(_*_+d*d),o=c,f=p}return h}var du=/cubic-bezier\(([0-9,\.e ]+)\)/;function Cn(r){var t=r&&du.exec(r);if(t){var e=t[1].split(","),i=+qr(e[0]),a=+qr(e[1]),n=+qr(e[2]),s=+qr(e[3]);if(isNaN(i+a+n+s))return;var o=[];return function(f){return f<=0?0:f>=1?1:Jo(0,i,n,1,f,o)&&it(0,a,s,1,o[0])}}}var pu=function(){function r(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||Rr,this.ondestroy=t.ondestroy||Rr,this.onrestart=t.onrestart||Rr,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,a=t-this._startTime-this._pausedTime,n=a/i;n<0&&(n=0),n=Math.min(n,1);var s=this.easingFunc,o=s?s(n):n;if(this.onframe(o),n===1)if(this.loop){var f=a%i;this._startTime=t-f,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=rr(t)?t:Le[t]||Cn(t)},r}(),rf=function(){function r(t){this.value=t}return r}(),gu=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new rf(t);return this.insertEntry(e),e},r.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++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),De=function(){function r(t){this._list=new gu,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,a=this._map,n=null;if(a[t]==null){var s=i.len(),o=this._lastRemovedEntry;if(s>=this._maxSize&&s>0){var f=i.head;i.remove(f),delete a[f.key],n=f.value,this._lastRemovedEntry=f}o?o.value=e:o=new rf(e),o.key=t,i.insertEntry(o),a[t]=o}return n},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),as={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 Rt(r){return r=Math.round(r),r<0?0:r>255?255:r}function _u(r){return r=Math.round(r),r<0?0:r>360?360:r}function Ae(r){return r<0?0:r>1?1:r}function ra(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Rt(parseFloat(t)/100*255):Rt(parseInt(t,10))}function ir(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ae(parseFloat(t)/100):Ae(parseFloat(t))}function ea(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function jt(r,t,e){return r+(t-r)*e}function Tt(r,t,e,i,a){return r[0]=t,r[1]=e,r[2]=i,r[3]=a,r}function Ua(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var ef=new De(20),$e=null;function kr(r,t){$e&&Ua($e,t),$e=ef.put(r,$e||t.slice())}function Ct(r,t){if(r){t=t||[];var e=ef.get(r);if(e)return Ua(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in as)return Ua(t,as[i]),kr(r,t),t;var a=i.length;if(i.charAt(0)==="#"){if(a===4||a===5){var n=parseInt(i.slice(1,4),16);if(!(n>=0&&n<=4095)){Tt(t,0,0,0,1);return}return Tt(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,a===5?parseInt(i.slice(4),16)/15:1),kr(r,t),t}else if(a===7||a===9){var n=parseInt(i.slice(1,7),16);if(!(n>=0&&n<=16777215)){Tt(t,0,0,0,1);return}return Tt(t,(n&16711680)>>16,(n&65280)>>8,n&255,a===9?parseInt(i.slice(7),16)/255:1),kr(r,t),t}return}var s=i.indexOf("("),o=i.indexOf(")");if(s!==-1&&o+1===a){var f=i.substr(0,s),h=i.substr(s+1,o-(s+1)).split(","),u=1;switch(f){case"rgba":if(h.length!==4)return h.length===3?Tt(t,+h[0],+h[1],+h[2],1):Tt(t,0,0,0,1);u=ir(h.pop());case"rgb":if(h.length>=3)return Tt(t,ra(h[0]),ra(h[1]),ra(h[2]),h.length===3?u:ir(h[3])),kr(r,t),t;Tt(t,0,0,0,1);return;case"hsla":if(h.length!==4){Tt(t,0,0,0,1);return}return h[3]=ir(h[3]),qa(h,t),kr(r,t),t;case"hsl":if(h.length!==3){Tt(t,0,0,0,1);return}return qa(h,t),kr(r,t),t;default:return}}Tt(t,0,0,0,1)}}function qa(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=ir(r[1]),a=ir(r[2]),n=a<=.5?a*(i+1):a+i-a*i,s=a*2-n;return t=t||[],Tt(t,Rt(ea(s,n,e+1/3)*255),Rt(ea(s,n,e)*255),Rt(ea(s,n,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function yu(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,a=Math.min(t,e,i),n=Math.max(t,e,i),s=n-a,o=(n+a)/2,f,h;if(s===0)f=0,h=0;else{o<.5?h=s/(n+a):h=s/(2-n-a);var u=((n-t)/6+s/2)/s,v=((n-e)/6+s/2)/s,l=((n-i)/6+s/2)/s;t===n?f=l-v:e===n?f=1/3+u-l:i===n&&(f=2/3+v-u),f<0&&(f+=1),f>1&&(f-=1)}var c=[f*360,h,o];return r[3]!=null&&c.push(r[3]),c}}function ns(r,t){var e=Ct(r);if(e){for(var i=0;i<3;i++)t<0?e[i]=e[i]*(1-t)|0:e[i]=(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return he(e,e.length===4?"rgba":"rgb")}}
1function nd(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var i=r*(t.length-1),a=Math.floor(i),n=Math.ceil(i),s=t[a],o=t[n],f=i-a;return e[0]=Rt(jt(s[0],o[0],f)),e[1]=Rt(jt(s[1],o[1],f)),e[2]=Rt(jt(s[2],o[2],f)),e[3]=Ae(jt(s[3],o[3],f)),e}}function sd(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),a=Math.floor(i),n=Math.ceil(i),s=Ct(t[a]),o=Ct(t[n]),f=i-a,h=he([Rt(jt(s[0],o[0],f)),Rt(jt(s[1],o[1],f)),Rt(jt(s[2],o[2],f)),Ae(jt(s[3],o[3],f))],"rgba");return e?{color:h,leftIndex:a,rightIndex:n,value:i}:h}}function od(r,t,e,i){var a=Ct(r);if(r)return a=yu(a),t!=null&&(a[0]=_u(rr(t)?t(a[0]):t)),e!=null&&(a[1]=ir(rr(e)?e(a[1]):e)),i!=null&&(a[2]=ir(rr(i)?i(a[2]):i)),he(qa(a),"rgba")}function fd(r,t){var e=Ct(r);if(e&&t!=null)return e[3]=Ae(t),he(e,"rgba")}function he(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Ci(r,t){var e=Ct(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var ss=new De(100);function mu(r){if(Wt(r)){var t=ss.get(r);return t||(t=ns(r,-.1),ss.put(r,t)),t}else if(Hi(r)){var e=H({},r);return e.colorStops=K(r.colorStops,function(i){return{offset:i.offset,color:ns(i.color,-.1)}}),e}return r}var Mi=Math.round;function Ie(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Ct(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var os=1e-4;function tr(r){return r<os&&r>-os}function Ve(r){return Mi(r*1e3)/1e3}function $a(r){return Mi(r*1e4)/1e4}function wu(r){return"matrix("+Ve(r[0])+","+Ve(r[1])+","+Ve(r[2])+","+Ve(r[3])+","+$a(r[4])+","+$a(r[5])+")"}var Tu={left:"start",right:"end",center:"middle",middle:"middle"};function bu(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function Su(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function Cu(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function af(r){return r&&!!r.image}function Mu(r){return r&&!!r.svgElement}function Mn(r){return af(r)||Mu(r)}function nf(r){return r.type==="linear"}function sf(r){return r.type==="radial"}function of(r){return r&&(r.type==="linear"||r.type==="radial")}function Ni(r){return"url(#"+r+")"}function ff(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function hf(r){var t=r.x||0,e=r.y||0,i=(r.rotation||0)*ci,a=Q(r.scaleX,1),n=Q(r.scaleY,1),s=r.skewX||0,o=r.skewY||0,f=[];return(t||e)&&f.push("translate("+t+"px,"+e+"px)"),i&&f.push("rotate("+i+")"),(a!==1||n!==1)&&f.push("scale("+a+","+n+")"),(s||o)&&f.push("skew("+Mi(s*ci)+"deg, "+Mi(o*ci)+"deg)"),f.join(" ")}var Pu=function(){return q.hasGlobalWindow&&rr(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Va=Array.prototype.slice;function Ut(r,t,e){return(t-r)*e+r}function ia(r,t,e,i){for(var a=t.length,n=0;n<a;n++)r[n]=Ut(t[n],e[n],i);return r}function Lu(r,t,e,i){for(var a=t.length,n=a&&t[0].length,s=0;s<a;s++){r[s]||(r[s]=[]);for(var o=0;o<n;o++)r[s][o]=Ut(t[s][o],e[s][o],i)}return r}function Ze(r,t,e,i){for(var a=t.length,n=0;n<a;n++)r[n]=t[n]+e[n]*i;return r}function fs(r,t,e,i){for(var a=t.length,n=a&&t[0].length,s=0;s<a;s++){r[s]||(r[s]=[]);for(var o=0;o<n;o++)r[s][o]=t[s][o]+e[s][o]*i}return r}function xu(r,t){for(var e=r.length,i=t.length,a=e>i?t:r,n=Math.min(e,i),s=a[n-1]||{color:[0,0,0,0],offset:0},o=n;o<Math.max(e,i);o++)a.push({offset:s.offset,color:s.color.slice()})}function Ru(r,t,e){var i=r,a=t;if(!(!i.push||!a.push)){var n=i.length,s=a.length;if(n!==s){var o=n>s;if(o)i.length=s;else for(var f=n;f<s;f++)i.push(e===1?a[f]:Va.call(a[f]))}for(var h=i[0]&&i[0].length,f=0;f<i.length;f++)if(e===1)isNaN(i[f])&&(i[f]=a[f]);else for(var u=0;u<h;u++)isNaN(i[f][u])&&(i[f][u]=a[f][u])}}function di(r){if(Yt(r)){var t=r.length;if(Yt(r[0])){for(var e=[],i=0;i<t;i++)e.push(Va.call(r[i]));return e}return Va.call(r)}return r}function pi(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function Du(r){return Yt(r&&r[0])?2:1}var Ke=0,gi=1,uf=2,me=3,Za=4,Ka=5,hs=6;function us(r){return r===Za||r===Ka}function Qe(r){return r===gi||r===uf}var ce=[0,0,0,0],Au=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack}
1,r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var a=this.keyframes,n=a.length,s=!1,o=hs,f=e;if(Yt(e)){var h=Du(e);o=h,(h===1&&!be(e[0])||h===2&&!be(e[0][0]))&&(s=!0)}else if(be(e)&&!Th(e))o=Ke;else if(Wt(e))if(!isNaN(+e))o=Ke;else{var u=Ct(e);u&&(f=u,o=me)}else if(Hi(e)){var v=H({},f);v.colorStops=K(e.colorStops,function(c){return{offset:c.offset,color:Ct(c.color)}}),nf(e)?o=Za:sf(e)&&(o=Ka),f=v}n===0?this.valType=o:(o!==this.valType||o===hs)&&(s=!0),this.discrete=this.discrete||s;var l={time:t,value:f,rawValue:e,percent:0};return i&&(l.easing=i,l.easingFunc=rr(i)?i:Le[i]||Cn(i)),a.push(l),l},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(_,d){return _.time-d.time});for(var a=this.valType,n=i.length,s=i[n-1],o=this.discrete,f=Qe(a),h=us(a),u=0;u<n;u++){var v=i[u],l=v.value,c=s.value;v.percent=v.time/t,o||(f&&u!==n-1?Ru(l,c,a):h&&xu(l.colorStops,c.colorStops))}if(!o&&a!==Ka&&e&&this.needsAnimate()&&e.needsAnimate()&&a===e.valType&&!e._finished){this._additiveTrack=e;for(var p=i[0].value,u=0;u<n;u++)a===Ke?i[u].additiveValue=i[u].value-p:a===me?i[u].additiveValue=Ze([],i[u].value,p,-1):Qe(a)&&(i[u].additiveValue=a===gi?Ze([],i[u].value,p,-1):fs([],i[u].value,p,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,a=i?"additiveValue":"value",n=this.valType,s=this.keyframes,o=s.length,f=this.propName,h=n===me,u,v=this._lastFr,l=Math.min,c,p;if(o===1)c=p=s[0];else{if(e<0)u=0;else if(e<this._lastFrP){var _=l(v+1,o-1);for(u=_;u>=0&&!(s[u].percent<=e);u--);u=l(u,o-2)}else{for(u=v;u<o&&!(s[u].percent>e);u++);u=l(u-1,o-2)}p=s[u+1],c=s[u]}if(c&&p){this._lastFr=u,this._lastFrP=e;var d=p.percent-c.percent,g=d===0?1:l((e-c.percent)/d,1);p.easingFunc&&(g=p.easingFunc(g));var y=i?this._additiveValue:h?ce:t[f];if((Qe(n)||h)&&!y&&(y=this._additiveValue=[]),this.discrete)t[f]=g<1?c.rawValue:p.rawValue;else if(Qe(n))n===gi?ia(y,c[a],p[a],g):Lu(y,c[a],p[a],g);else if(us(n)){var m=c[a],w=p[a],b=n===Za;t[f]={type:b?"linear":"radial",x:Ut(m.x,w.x,g),y:Ut(m.y,w.y,g),colorStops:K(m.colorStops,function(C,S){var M=w.colorStops[S];return{offset:Ut(C.offset,M.offset,g),color:pi(ia([],C.color,M.color,g))}}),global:w.global},b?(t[f].x2=Ut(m.x2,w.x2,g),t[f].y2=Ut(m.y2,w.y2,g)):t[f].r=Ut(m.r,w.r,g)}else if(h)ia(y,c[a],p[a],g),i||(t[f]=pi(y));else{var T=Ut(c[a],p[a],g);i?this._additiveValue=T:t[f]=T}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,a=this._additiveValue;e===Ke?t[i]=t[i]+a:e===me?(Ct(t[i],ce),Ze(ce,ce,a,1),t[i]=pi(ce)):e===gi?Ze(t[i],t[i],a,1):e===uf&&fs(t[i],t[i],a,1)},r}(),Pn=function(){function r(t,e,i,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){bn("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,X(e),i)},r.prototype.whenWithKeys=function(t,e,i,a){for(var n=this._tracks,s=0;s<i.length;s++){var o=i[s],f=n[o];if(!f){f=n[o]=new Au(o);var h=void 0,u=this._getAdditiveTrack(o);if(u){var v=u.keyframes,l=v[v.length-1];h=l&&l.value,u.valType===me&&h&&(h=pi(h))}else h=this._target[o];if(h==null)continue;t>0&&f.addKeyframe(0,di(h),a),this._trackKeys.push(o)}f.addKeyframe(t,di(e[o]),a)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var a=0;a<i.length;a++){var n=i[a].getTrack(t);
1n&&(e=n)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],a=this._maxTime||0,n=0;n<this._trackKeys.length;n++){var s=this._trackKeys[n],o=this._tracks[s],f=this._getAdditiveTrack(s),h=o.keyframes,u=h.length;if(o.prepare(a,f),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var v=h[u-1];v&&(e._target[o.propName]=v.rawValue),o.setFinished()}else i.push(o)}if(i.length||this._force){var l=new pu({life:a,loop:this._loop,delay:this._delay||0,onframe:function(c){e._started=2;var p=e._additiveAnimators;if(p){for(var _=!1,d=0;d<p.length;d++)if(p[d]._clip){_=!0;break}_||(e._additiveAnimators=null)}for(var d=0;d<i.length;d++)i[d].step(e._target,c);var g=e._onframeCbs;if(g)for(var d=0;d<g.length;d++)g[d](e._target,c)},ondestroy:function(){e._doneCallback()}});this._clip=l,this.animation&&this.animation.addClip(l),t&&l.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return K(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,a=this._trackKeys,n=0;n<t.length;n++){var s=i[t[n]];s&&!s.isFinished()&&(e?s.step(this._target,1):this._started===1&&s.step(this._target,0),s.setFinished())}for(var o=!0,n=0;n<a.length;n++)if(!i[a[n]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var a=0;a<e.length;a++){var n=e[a],s=this._tracks[n];if(!(!s||s.isFinished())){var o=s.keyframes,f=o[i?0:o.length-1];f&&(t[n]=di(f.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||X(t);for(var i=0;i<e.length;i++){var a=e[i],n=this._tracks[a];if(n){var s=n.keyframes;if(s.length>1){var o=s.pop();n.addKeyframe(o.time,t[a]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r}();function Kr(){return new Date().getTime()}var Iu=function(r){Y(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,a=e.next;i?i.next=a:this._head=a,a?a.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Kr()-this._pausedTime,a=i-this._time,n=this._head;n;){var s=n.next,o=n.step(i,a);o&&(n.ondestroy(),this.removeClip(n)),n=s}this._time=i,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(Ti(i),!e._paused&&e.update())}Ti(i)},t.prototype.start=function(){this._running||(this._time=Kr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Kr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Kr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var a=new Pn(e,i.loop);return this.addAnimator(a),a},t}(fe),Eu=300,aa=q.domSupported,na=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=K(r,function(a){var n=a.replace("mouse","pointer");return e.hasOwnProperty(n)?n:a});return{mouse:r,touch:t,pointer:i}}(),vs={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ls=!1;function Qa(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Fu(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function sa(r){r&&(r.zrByTouch=!0)}function Ou(r,t){return Lt(r.dom,new ku(r,t),!0)}function vf(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var ku=function(){function r(t,e){this.stopPropagation=Rr,this.stopImmediatePropagation=Rr,this.preventDefault=Rr,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),xt={mousedown:function(r){r=Lt(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Lt(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Lt(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Lt(this.dom,r);var t=r.toElement||r.relatedTarget;
1vf(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){ls=!0,r=Lt(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){ls||(r=Lt(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Lt(this.dom,r),sa(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),xt.mousemove.call(this,r),xt.mousedown.call(this,r)},touchmove:function(r){r=Lt(this.dom,r),sa(r),this.handler.processGesture(r,"change"),xt.mousemove.call(this,r)},touchend:function(r){r=Lt(this.dom,r),sa(r),this.handler.processGesture(r,"end"),xt.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<Eu&&xt.click.call(this,r)},pointerdown:function(r){xt.mousedown.call(this,r)},pointermove:function(r){Qa(r)||xt.mousemove.call(this,r)},pointerup:function(r){xt.mouseup.call(this,r)},pointerout:function(r){Qa(r)||xt.mouseout.call(this,r)}};at(["click","dblclick","contextmenu"],function(r){xt[r]=function(t){t=Lt(this.dom,t),this.trigger(r,t)}});var Ja={pointermove:function(r){Qa(r)||Ja.mousemove.call(this,r)},pointerup:function(r){Ja.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function Bu(r,t){var e=t.domHandlers;q.pointerEventsSupported?at(na.pointer,function(i){_i(t,i,function(a){e[i].call(r,a)})}):(q.touchEventsSupported&&at(na.touch,function(i){_i(t,i,function(a){e[i].call(r,a),Fu(t)})}),at(na.mouse,function(i){_i(t,i,function(a){a=Sn(a),t.touching||e[i].call(r,a)})}))}function Hu(r,t){q.pointerEventsSupported?at(vs.pointer,e):q.touchEventsSupported||at(vs.mouse,e);function e(i){function a(n){n=Sn(n),vf(r,n.target)||(n=Ou(r,n),t.domHandlers[i].call(r,n))}_i(t,i,a,{capture:!0})}}function _i(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,Xh(r.domTarget,t,e,i)}function oa(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&Uh(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var cs=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),zu=function(r){Y(t,r);function t(e,i){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=i,a._localHandlerScope=new cs(e,xt),aa&&(a._globalHandlerScope=new cs(document,Ja)),Bu(a,a._localHandlerScope),a}return t.prototype.dispose=function(){oa(this._localHandlerScope),aa&&oa(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,aa&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?Hu(this,i):oa(i)}},t}(fe),lf=1;q.hasGlobalWindow&&(lf=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Pi=lf,ja=.4,tn="#333",rn="#ccc",Nu="#eee",ds=Zh,ps=5e-5;function ur(r){return r>ps||r<-ps}var vr=[],Br=[],fa=Dr(),ha=Math.abs,Ln=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return ur(this.rotation)||ur(this.x)||ur(this.y)||ur(this.scaleX-1)||ur(this.scaleY-1)||ur(this.skewX)||ur(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(ds(i),this.invTransform=null);return}i=i||Dr(),e?this.getLocalTransform(i):ds(i),t&&(e?Me(i,t,i):Yo(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(vr);var i=vr[0]<0?-1:1,a=vr[1]<0?-1:1,n=((vr[0]-i)*e+i)/vr[0]||0,s=((vr[1]-a)*e+a)/vr[1]||0;t[0]*=n,t[1]*=n,t[2]*=s,t[3]*=s}this.invTransform=this.invTransform||Dr(),Xo(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),n=Math.PI/2+a-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(n),e=Math.sqrt(e),this.skewX=n,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Dr(),Me(Br,t.invTransform,e),e=Br);var i=this.originX,a=this.originY;(i||a)&&(fa[4]=i,fa[5]=a,Me(Br,e,fa),Br[4]-=i,Br[5]-=a,e=Br),this.setLocalTransform(e)}},r.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)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],a=this.invTransform;return a&&Ce(i,i,a),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],a=this.transform;return a&&Ce(i,i,a),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&ha(t[0]-1)>1e-10&&ha(t[3]-1)>1e-10?Math.sqrt(ha(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){cf(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,a=t.originY||0,n=t.scaleX,s=t.scaleY,o=t.anchorX,f=t.anchorY,h=t.rotation||0,u=t.x,v=t.y,l=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;
1if(i||a||o||f){var p=i+o,_=a+f;e[4]=-p*n-l*_*s,e[5]=-_*s-c*p*n}else e[4]=e[5]=0;return e[0]=n,e[3]=s,e[1]=c*n,e[2]=l*s,h&&Wo(e,e,h),e[4]+=i+u,e[5]+=a+v,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Ee=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function cf(r,t){for(var e=0;e<Ee.length;e++){var i=Ee[e];r[i]=t[i]}}function zt(r){Je||(Je=new De(100)),r=r||Vt;var t=Je.get(r);return t||(t={font:r,strWidthCache:new De(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Er.measureText("国",r).width,asciiCharWidth:Er.measureText("a",r).width},Je.put(r,t)),t}var Je;function Yu(r){if(!(ua>=gs)){r=r||Vt;for(var t=[],e=+new Date,i=0;i<=127;i++)t[i]=Er.measureText(String.fromCharCode(i),r).width;var a=+new Date-e;return a>16?ua=gs:a>2&&ua++,t}}var ua=0,gs=5;function df(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=Yu(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function Nt(r,t){var e=r.strWidthCache,i=e.get(t);return i==null&&(i=Er.measureText(t,r.font).width,e.put(t,i)),i}function _s(r,t,e,i){var a=Nt(zt(t),r),n=ze(t),s=ae(0,a,e),o=Ar(0,n,i),f=new z(s,o,a,n);return f}function hd(r,t,e,i){var a=((r||"")+"").split(` 2`),n=a.length;if(n===1)return _s(a[0],t,e,i);for(var s=new z(0,0,0,0),o=0;o<a.length;o++){var f=_s(a[o],t,e,i);o===0?s.copy(f):s.union(f)}return s}function ae(r,t,e,i){return e==="right"?i?r+=t:r-=t:e==="center"&&(i?r+=t/2:r-=t/2),r}function Ar(r,t,e,i){return e==="middle"?i?r+=t/2:r-=t/2:e==="bottom"&&(i?r+=t:r-=t),r}function ze(r){return zt(r).stWideCharWidth}function Fe(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Wu(r,t,e){var i=t.position||"inside",a=t.distance!=null?t.distance:5,n=e.height,s=e.width,o=n/2,f=e.x,h=e.y,u="left",v="top";if(i instanceof Array)f+=Fe(i[0],e.width),h+=Fe(i[1],e.height),u=null,v=null;else switch(i){case"left":f-=a,h+=o,u="right",v="middle";break;case"right":f+=a+s,h+=o,v="middle";break;case"top":f+=s/2,h-=a,u="center",v="bottom";break;case"bottom":f+=s/2,h+=n+a,u="center";break;case"inside":f+=s/2,h+=o,u="center",v="middle";break;case"insideLeft":f+=a,h+=o,v="middle";break;case"insideRight":f+=s-a,h+=o,u="right",v="middle";break;case"insideTop":f+=s/2,h+=a,u="center";break;case"insideBottom":f+=s/2,h+=n-a,u="center",v="bottom";break;case"insideTopLeft":f+=a,h+=a;break;case"insideTopRight":f+=s-a,h+=a,u="right";break;case"insideBottomLeft":f+=a,h+=n-a,v="bottom";break;case"insideBottomRight":f+=s-a,h+=n-a,u="right",v="bottom";break}return r=r||{},r.x=f,r.y=h,r.align=u,r.verticalAlign=v,r}var va="__zr_normal__",la=Ee.concat(["ignore"]),Gu=Bi(Ee,function(r,t){return r[t]=!0,r},{ignore:!1}),Hr={},Xu=new z(0,0,0,0),je=[],Yi=function(){function r(t){this.id=Fo(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,a=i.local,n=e.innerTransformable,s=void 0,o=void 0,f=!1;n.parent=a?this:null;var h=!1;n.copyTransform(e);var u=i.position!=null,v=i.autoOverflowArea,l=void 0;if((v||u)&&(l=Xu,i.layoutRect?l.copy(i.layoutRect):l.copy(this.getBoundingRect()),a||l.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(Hr,i,l):Wu(Hr,i,l),n.x=Hr.x,n.y=Hr.y,s=Hr.align,o=Hr.verticalAlign;var c=i.origin;if(c&&i.rotation!=null){var p=void 0,_=void 0;c==="center"?(p=l.width*.5,_=l.height*.5):(p=Fe(c[0],l.width),_=Fe(c[1],l.height)),h=!0,n.originX=-n.x+p+(a?0:l.x),n.originY=-n.y+_+(a?0:l.y)}}i.rotation!=null&&(n.rotation=i.rotation);var d=i.offset;d&&(n.x+=d[0],n.y+=d[1],h||(n.originX=-d[0],n.originY=-d[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(v){var y=g.overflowRect=g.overflowRect||new z(0,0,0,0);n.getLocalTransform(je),Xo(je,je),z.copy(y,l),y.applyTransform(je)}else g.overflowRect=null;
2var m=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,w=void 0,b=void 0,T=void 0;m&&this.canBeInsideText()?(w=i.insideFill,b=i.insideStroke,(w==null||w==="auto")&&(w=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(w),T=!0)):(w=i.outsideFill,b=i.outsideStroke,(w==null||w==="auto")&&(w=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(w),T=!0)),w=w||"#000",(w!==g.fill||b!==g.stroke||T!==g.autoStroke||s!==g.align||o!==g.verticalAlign)&&(f=!0,g.fill=w,g.stroke=b,g.autoStroke=T,g.align=s,g.verticalAlign=o,e.setDefaultTextStyle(g)),e.__dirty|=_t,f&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?rn:tn},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&Ct(e);i||(i=[255,255,255,1]);for(var a=i[3],n=this.__zr.isDarkMode(),s=0;s<3;s++)i[s]=i[s]*a+(n?0:255)*(1-a);return i[3]=1,he(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},H(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if($t(t))for(var i=t,a=X(i),n=0;n<a.length;n++){var s=a[n];this.attrKV(s,t[s])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var a=this.animators[i],n=a.__fromStateTransition;if(!(a.getLoop()||n&&n!==va)){var s=a.targetName,o=s?e[s]:e;a.saveTo(o)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,la)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var a=0;a<i.length;a++){var n=i[a];t[n]!=null&&!(n in e)&&(e[n]=this[n])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(va,!1,t)},r.prototype.useState=function(t,e,i,a){var n=t===va,s=this.hasState();if(!(!s&&n)){var o=this.currentStates,f=this.stateTransition;if(!(Bt(o,t)>=0&&(e||o.length===1))){var h;if(this.stateProxy&&!n&&(h=this.stateProxy(t)),h||(h=this.states&&this.states[t]),!h&&!n){bn("State "+t+" not exists.");return}n||this.saveCurrentToNormalState(h);var u=!!(h&&h.hoverLayer||a);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,h,this._normalState,e,!i&&!this.__inHover&&f&&f.duration>0,f);var v=this._textContent,l=this._textGuide;return v&&v.useState(t,e,i,u),l&&l.useState(t,e,i,u),n?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_t),h}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var a=[],n=this.currentStates,s=t.length,o=s===n.length;if(o){for(var f=0;f<s;f++)if(t[f]!==n[f]){o=!1;break}}if(o)return;for(var f=0;f<s;f++){var h=t[f],u=void 0;this.stateProxy&&(u=this.stateProxy(h,t)),u||(u=this.states[h]),u&&a.push(u)}var v=a[s-1],l=!!(v&&v.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var _=this._textContent,d=this._textGuide;_&&_.useStates(t,e,l),d&&d.useStates(t,e,l),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_t)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=Bt(this.currentStates,t);
2if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var a=this.currentStates.slice(),n=Bt(a,t),s=Bt(a,e)>=0;n>=0?s?a.splice(n,1):a[n]=e:i&&!s&&a.push(e),this.useStates(a)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,a=0;a<t.length;a++){var n=t[a];H(e,n),n.textConfig&&(i=i||{},H(i,n.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,a,n,s){var o=!(e&&a);e&&e.textConfig?(this.textConfig=H({},a?this.textConfig:i.textConfig),H(this.textConfig,e.textConfig)):o&&i.textConfig&&(this.textConfig=i.textConfig);for(var f={},h=!1,u=0;u<la.length;u++){var v=la[u],l=n&&Gu[v];e&&e[v]!=null?l?(h=!0,f[v]=e[v]):this[v]=e[v]:o&&i[v]!=null&&(l?(h=!0,f[v]=i[v]):this[v]=i[v])}if(!n)for(var u=0;u<this.animators.length;u++){var c=this.animators[u],p=c.targetName;c.getLoop()||c.__changeFinalValue(p?(e||i)[p]:e||i)}h&&this._transitionState(t,f,s)},r.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}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.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())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),H(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=_t;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var a=t?this[t]:this,n=new Pn(a,e,i);return t&&(n.targetName=t),this.addAnimator(n,t),n},r.prototype.addAnimator=function(t,e){var i=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(e)}).done(function(){var n=a.animators,s=Bt(n,t);s>=0&&n.splice(s,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,a=i.length,n=[],s=0;s<a;s++){var o=i[s];!t||t===o.scope?o.stop(e):n.push(o)}return this.animators=n,this}
2,r.prototype.animateTo=function(t,e,i){ca(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){ca(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,a){for(var n=ca(this,e,i,a),s=0;s<n.length;s++)n[s].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=_t;function e(i,a,n,s){Object.defineProperty(t,i,{get:function(){if(!this[a]){var f=this[a]=[];o(this,f)}return this[a]},set:function(f){this[n]=f[0],this[s]=f[1],this[a]=f,o(this,f)}});function o(f,h){Object.defineProperty(h,0,{get:function(){return f[n]},set:function(u){f[n]=u}}),Object.defineProperty(h,1,{get:function(){return f[s]},set:function(u){f[s]=u}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();Oo(Yi,fe);Oo(Yi,Ln);function ca(r,t,e,i,a){e=e||{};var n=[];pf(r,"",r,t,e,i,n,a);var s=n.length,o=!1,f=e.done,h=e.aborted,u=function(){o=!0,s--,s<=0&&(o?f&&f():h&&h())},v=function(){s--,s<=0&&(o?f&&f():h&&h())};s||f&&f(),n.length>0&&e.during&&n[0].during(function(p,_){e.during(_)});for(var l=0;l<n.length;l++){var c=n[l];u&&c.done(u),v&&c.aborted(v),e.force&&c.duration(e.duration),c.start(e.easing)}return n}function da(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function Uu(r){return Yt(r[0])}function qu(r,t,e){if(Yt(t[e]))if(Yt(r[e])||(r[e]=[]),mh(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),da(r[e],t[e],i))}else{var a=t[e],n=r[e],s=a.length;if(Uu(a))for(var o=a[0].length,f=0;f<s;f++)n[f]?da(n[f],a[f],o):n[f]=Array.prototype.slice.call(a[f]);else da(n,a,s);n.length=a.length}else r[e]=t[e]}function $u(r,t){return r===t||Yt(r)&&Yt(t)&&Vu(r,t)}function Vu(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(r[i]!==t[i])return!1;return!0}function pf(r,t,e,i,a,n,s,o){for(var f=X(i),h=a.duration,u=a.delay,v=a.additive,l=a.setToFinal,c=!$t(n),p=r.animators,_=[],d=0;d<f.length;d++){var g=f[d],y=i[g];if(y!=null&&e[g]!=null&&(c||n[g]))if($t(y)&&!Yt(y)&&!Hi(y)){if(t){o||(e[g]=y,r.updateDuringAnimation(t));continue}pf(r,g,e[g],y,a,n&&n[g],s,o)}else _.push(g);else o||(e[g]=y,r.updateDuringAnimation(t),_.push(g))}var m=_.length;if(!v&&m)for(var w=0;w<p.length;w++){var b=p[w];if(b.targetName===t){var T=b.stopTracks(_);if(T){var C=Bt(p,b);p.splice(C,1)}}}if(a.force||(_=ka(_,function(R){return!$u(i[R],e[R])}),m=_.length),m>0||a.force&&!s.length){var S=void 0,M=void 0,P=void 0;if(o){M={},l&&(S={});for(var w=0;w<m;w++){var g=_[w];M[g]=e[g],l?S[g]=i[g]:e[g]=i[g]}}else if(l){P={};for(var w=0;w<m;w++){var g=_[w];P[g]=di(e[g]),qu(e,i,g)}}var b=new Pn(e,!1,!1,v?ka(p,function(D){return D.targetName===t}):null);b.targetName=t,a.scope&&(b.scope=a.scope),l&&S&&b.whenWithKeys(0,S,_),P&&b.whenWithKeys(0,P,_),b.whenWithKeys(h??500,o?M:i,_).delay(u||0),r.addAnimator(b,t),s.push(b)}}var Cr=function(r){Y(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,a=0;a<i.length;a++)if(i[a].name===e)return i[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var a=this._children,n=a.indexOf(i);n>=0&&(a.splice(n,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var a=Bt(this._children,e);return a>=0&&this.replaceAt(i,a),this},t.prototype.replaceAt=function(e,i){var a=this._children,n=a[i];if(e&&e!==this&&e.parent!==this&&e!==n){a[i]=e,n.parent=null;var s=this.__zr;s&&n.removeSelfFromZr(s),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,a=this._children,n=Bt
2(a,e);return n<0?this:(a.splice(n,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,a=0;a<e.length;a++){var n=e[a];i&&n.removeSelfFromZr(i),n.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var a=this._children,n=0;n<a.length;n++){var s=a[n];e.call(i,s,n)}return this},t.prototype.traverse=function(e,i){for(var a=0;a<this._children.length;a++){var n=this._children[a],s=e.call(i,n);n.isGroup&&!s&&n.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new z(0,0,0,0),a=e||this._children,n=[],s=null,o=0;o<a.length;o++){var f=a[o];if(!(f.ignore||f.invisible)){var h=f.getBoundingRect(),u=f.getLocalTransform(n);u?(z.applyTransform(i,h,u),s=s||i.clone(),s.union(i)):(s=s||h.clone(),s.union(h))}}return s||i},t}(Yi);Cr.prototype.type="group";/*! 3* ZRender, a high performance 2d drawing library. 4* 5* Copyright (c) 2013, Baidu Inc. 6* All rights reserved. 7* 8* LICENSE 9* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt 10*/var yi={},gf={};function Zu(r){delete gf[r]}function Ku(r){if(!r)return!1;if(typeof r=="string")return Ci(r,1)<ja;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,a=0;a<i;a++)e+=Ci(t[a].color,1);return e/=i,e<ja}return!1}var Qu=function(){function r(t,e,i){var a=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 n=new fu,s=i.renderer||"canvas";yi[s]||(s=X(yi)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var o=new yi[s](e,n,i,t),f=i.ssr||o.ssrOnly;this.storage=n,this.painter=o;var h=!q.node&&!q.worker&&!f?new zu(o.getViewportRoot(),o.root):null,u=i.useCoarsePointer,v=u==null||u==="auto"?q.touchEventsSupported:!!u,l=44,c;v&&(c=Q(i.pointerSize,l)),this.handler=new $o(n,o,h,o.root,c),this.animation=new Iu({stage:{update:f?null:function(){return a._flush(!0)}}}),f||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Ku(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,i=Kr();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var a=Kr();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)}
10,r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Cr&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){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,Zu(this.id))},r}();function ud(r,t){var e=new Qu(Fo(),r,t);return gf[e.id]=e,e}function vd(r,t){yi[r]=t}var en;function Ju(r){if(typeof en=="function")return en(r)}function ld(r){en=r}var an=new De(50);function ju(r){if(typeof r=="string"){var t=an.get(r);return t&&t.image}else return r}function xn(r,t,e,i,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var n=an.get(r),s={hostEl:e,cb:i,cbPayload:a};return n?(t=n.image,!Wi(t)&&n.pending.push(s)):(t=Er.loadImage(r,ys,ys),t.__zrImageSrc=r,an.put(r,t.__cachedImgObj={image:t,pending:[s]})),t}else return r;else return t}function ys(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Wi(r){return r&&r.width&&r.height}var pa=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function tv(r,t,e,i,a,n){if(!e){r.text="",r.isTruncated=!1;return}var s=(t+"").split(` 11`);n=_f(e,i,a,n);for(var o=!1,f={},h=0,u=s.length;h<u;h++)yf(f,s[h],n),s[h]=f.textLine,o=o||f.isTruncated;r.text=s.join(` 12`),r.isTruncated=o}function _f(r,t,e,i){i=i||{};var a=H({},i);e=Q(e,"..."),a.maxIterations=Q(i.maxIterations,2);var n=a.minChar=Q(i.minChar,0),s=a.fontMeasureInfo=zt(t),o=s.asciiCharWidth;a.placeholder=Q(i.placeholder,"");for(var f=r=Math.max(0,r-1),h=0;h<n&&f>=o;h++)f-=o;var u=Nt(s,e);return u>f&&(e="",u=0),f=r-u,a.ellipsis=e,a.ellipsisWidth=u,a.contentWidth=f,a.containerWidth=r,a}function yf(r,t,e){var i=e.containerWidth,a=e.contentWidth,n=e.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var s=Nt(n,t);if(s<=i){r.textLine=t,r.isTruncated=!1;return}for(var o=0;;o++){if(s<=a||o>=e.maxIterations){t+=e.ellipsis;break}var f=o===0?rv(t,a,n):s>0?Math.floor(t.length*a/s):0;t=t.substr(0,f),s=Nt(n,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function rv(r,t,e){for(var i=0,a=0,n=r.length;a<n&&i<t;a++)i+=df(e,r.charCodeAt(a));return a}function ev(r,t,e,i){var a=Rn(r),n=t.overflow,s=t.padding,o=s?s[1]+s[3]:0,f=s?s[0]+s[2]:0,h=t.font,u=n==="truncate",v=ze(h),l=Q(t.lineHeight,v),c=t.lineOverflow==="truncate",p=!1,_=t.width;_==null&&e!=null&&(_=e-o);var d=t.height;d==null&&i!=null&&(d=i-f);var g;_!=null&&(n==="break"||n==="breakAll")?g=a?mf(a,t.font,_,n==="breakAll",0).lines:[]:g=a?a.split(` 13`):[];var y=g.length*l;if(d==null&&(d=y),y>d&&c){var m=Math.floor(d/l);p=p||g.length>m,g=g.slice(0,m),y=g.length*l}if(a&&u&&_!=null)for(var w=_f(_,h,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},T=0;T<g.length;T++)yf(b,g[T],w),g[T]=b.textLine,p=p||b.isTruncated;for(var C=d,S=0,M=zt(h),T=0;T<g.length;T++)S=Math.max(Nt(M,g[T]),S);_==null&&(_=S);var P=_;return C+=f,P+=o,{lines:g,height:d,outerWidth:P,outerHeight:C,lineHeight:l,calculatedLineHeight:v,contentWidth:S,contentHeight:y,width:_,isTruncated:p}}var iv=function(){function r(){}return r}(),ms=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),av=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function nv(r,t,e,i,a){var n=new av,s=Rn(r);if(!s)return n;var o=t.padding,f=o?o[1]+o[3]:0,h=o?o[0]+o[2]:0,u=t.width;u==null&&e!=null&&(u=e-f);var v=t.height;v==null&&i!=null&&(v=i-h);for(var l=t.overflow,c=(l==="break"||l==="breakAll")&&u!=null?{width:u,accumWidth:0,breakAll:l==="breakAll"}:null,p=pa.lastIndex=0,_;(_=pa.exec(s))!=null;){var d=_.index;d>
13p&&ga(n,s.substring(p,d),t,c),ga(n,_[2],t,c,_[1]),p=pa.lastIndex}p<s.length&&ga(n,s.substring(p,s.length),t,c);var g=[],y=0,m=0,w=l==="truncate",b=t.lineOverflow==="truncate",T={};function C(yt,mt,ot){yt.width=mt,yt.lineHeight=ot,y+=ot,m=Math.max(m,mt)}t:for(var S=0;S<n.lines.length;S++){for(var M=n.lines[S],P=0,R=0,D=0;D<M.tokens.length;D++){var L=M.tokens[D],x=L.styleName&&t.rich[L.styleName]||{},I=L.textPadding=x.padding,E=I?I[1]+I[3]:0,F=L.font=x.font||t.font;L.contentHeight=ze(F);var k=Q(x.height,L.contentHeight);if(L.innerHeight=k,I&&(k+=I[0]+I[2]),L.height=k,L.lineHeight=li(x.lineHeight,t.lineHeight,k),L.align=x&&x.align||a,L.verticalAlign=x&&x.verticalAlign||"middle",b&&v!=null&&y+L.lineHeight>v){var et=n.lines.length;D>0?(M.tokens=M.tokens.slice(0,D),C(M,R,P),n.lines=n.lines.slice(0,S+1)):n.lines=n.lines.slice(0,S),n.isTruncated=n.isTruncated||n.lines.length<et;break t}var G=x.width,$=G==null||G==="auto";if(typeof G=="string"&&G.charAt(G.length-1)==="%")L.percentWidth=G,g.push(L),L.contentWidth=Nt(zt(F),L.text);else{if($){var W=x.backgroundColor,U=W&&W.image;U&&(U=ju(U),Wi(U)&&(L.width=Math.max(L.width,U.width*k/U.height)))}var V=w&&u!=null?u-R:null;V!=null&&V<L.width?!$||V<E?(L.text="",L.width=L.contentWidth=0):(tv(T,L.text,V-E,F,t.ellipsis,{minChar:t.truncateMinChar}),L.text=T.text,n.isTruncated=n.isTruncated||T.isTruncated,L.width=L.contentWidth=Nt(zt(F),L.text)):L.contentWidth=Nt(zt(F),L.text)}L.width+=E,R+=L.width,x&&(P=Math.max(P,L.lineHeight))}C(M,R,P)}n.outerWidth=n.width=Q(u,m),n.outerHeight=n.height=Q(v,y),n.contentHeight=y,n.contentWidth=m,n.outerWidth+=f,n.outerHeight+=h;for(var S=0;S<g.length;S++){var L=g[S],ht=L.percentWidth;L.width=parseInt(ht,10)/100*n.width}return n}function ga(r,t,e,i,a){var n=t==="",s=a&&e.rich[a]||{},o=r.lines,f=s.font||e.font,h=!1,u,v;if(i){var l=s.padding,c=l?l[1]+l[3]:0;if(s.width!=null&&s.width!=="auto"){var p=Fe(s.width,i.width)+c;o.length>0&&p+i.accumWidth>i.width&&(u=t.split(` 14`),h=!0),i.accumWidth=p}else{var _=mf(t,f,i.width,i.breakAll,i.accumWidth);i.accumWidth=_.accumWidth+c,v=_.linesWidths,u=_.lines}}u||(u=t.split(` 15`));for(var d=zt(f),g=0;g<u.length;g++){var y=u[g],m=new iv;if(m.styleName=a,m.text=y,m.isLineHolder=!y&&!n,typeof s.width=="number"?m.width=s.width:m.width=v?v[g]:Nt(d,y),!g&&!h){var w=(o[o.length-1]||(o[0]=new ms)).tokens,b=w.length;b===1&&w[0].isLineHolder?w[0]=m:(y||!b||n)&&w.push(m)}else o.push(new ms([m]))}}function sv(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var ov=Bi(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function fv(r){return sv(r)?!!ov[r]:!0}function mf(r,t,e,i,a){for(var n=[],s=[],o="",f="",h=0,u=0,v=zt(t),l=0;l<r.length;l++){var c=r.charAt(l);if(c===` 16`){f&&(o+=f,u+=h),n.push(o),s.push(u),o="",f="",h=0,u=0;continue}var p=df(v,c.charCodeAt(0)),_=i?!1:!fv(c);if(n.length?u+p>e:a+u+p>e){u?(o||f)&&(_?(o||(o=f,f="",h=0,u=h),n.push(o),s.push(u-h),f+=c,h+=p,o="",u=h):(f&&(o+=f,f="",h=0),n.push(o),s.push(u),o=c,u=p)):_?(n.push(f),s.push(h),f=c,h=p):(n.push(c),s.push(p));continue}u+=p,_?(f+=c,h+=p):(f&&(o+=f,f="",h=0),o+=c)}return f&&(o+=f),o&&(n.push(o),s.push(u)),n.length===1&&(u+=a),{accumWidth:u,lines:n,linesWidths:s}}function ws(r,t,e,i,a,n){if(r.baseX=e,r.baseY=i,r.outerWidth=r.outerHeight=null,!!t){var s=t.width*2,o=t.height*2;z.set(Ts,ae(e,s,a),Ar(i,o,n),s,o),z.intersect(t,Ts,null,bs);var f=bs.outIntersectRect;r.outerWidth=f.width,r.outerHeight=f.height,r.baseX=ae(f.x,f.width,a,!0),r.baseY=Ar(f.y,f.height,n,!0)}}var Ts=new z(0,0,0,0),bs={outIntersectRect:{},clamp:!0};function Rn(r){return r!=null?r+="":r=""}function hv(r){var t=Rn(r.text),e=r.font,i=Nt(zt(e),t),a=ze(e);return nn(r,i,a,null)}function nn(r,t,e,i){var a=new z(ae(r.x||0,t,r.textAlign),Ar(r.y||0,e,r.textBaseline),t,e),n=i??(wf(r)?r.lineWidth:0);return n>0&&(a.x-=n/2,a.y-=n/2,a.width+=n,a.height+=n),a}function wf(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var sn="__zr_style_"+Math.round(Math.random()*10),Ir={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Gi={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ir[sn]=!0;var Ss=["z","z2","invisible"],uv=["invisible"],Ne=function(r){Y(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=X(e),a=0;a<i.length;a++){var n=i[a];n==="style"?this.useStyle(e[n]):r.prototype.attrKV.call(this,n,e[n])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,i,a,n){var s=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&vv(this,e,i)||s&&!s[0]&&!s[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1}if(n&&this.parent)for(var f=this.parent;f;){if(f.ignore)return!1;f=f.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var a=this.transformCoordToLocal(e,i),n=this.getBoundingRect
16();return n.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,a=this.getBoundingRect(),n=this.style,s=n.shadowBlur||0,o=n.shadowOffsetX||0,f=n.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new z(0,0,0,0)),i?z.applyTransform(e,a,i):e.copy(a),(s||o||f)&&(e.width+=s*2+Math.abs(o),e.height+=s*2+Math.abs(f),e.x=Math.min(e.x,e.x+o-s),e.y=Math.min(e.y,e.y+f-s));var h=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-h),e.y=Math.floor(e.y-h),e.width=Math.ceil(e.width+1+h*2),e.height=Math.ceil(e.height+1+h*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new z(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:H(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=ye,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&ye)},t.prototype.styleUpdated=function(){this.__dirty&=~ye},t.prototype.createStyle=function(e){return zi(Ir,e)},t.prototype.useStyle=function(e){e[sn]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[sn]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,Ss)},t.prototype._applyStateObj=function(e,i,a,n,s,o){r.prototype._applyStateObj.call(this,e,i,a,n,s,o);var f=!(i&&n),h;if(i&&i.style?s?n?h=i.style:(h=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(h,i.style)):(h=this._mergeStyle(this.createStyle(),n?this.style:a.style),this._mergeStyle(h,i.style)):f&&(h=a.style),h)if(s){var u=this.style;if(this.style=this.createStyle(f?{}:u),f)for(var v=X(u),l=0;l<v.length;l++){var c=v[l];c in h&&(h[c]=h[c],this.style[c]=u[c])}for(var p=X(h),l=0;l<p.length;l++){var c=p[l];this.style[c]=this.style[c]}this._transitionState(e,{style:h},o,this.getAnimationStyleProps())}else this.useStyle(h);for(var _=this.__inHover?uv:Ss,l=0;l<_.length;l++){var c=_[l];i&&i[c]!=null?this[c]=i[c]:f&&a[c]!=null&&(this[c]=a[c])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),a,n=0;n<e.length;n++){var s=e[n];s.style&&(a=a||{},this._mergeStyle(a,s.style))}return a&&(i.style=a),i},t.prototype._mergeStyle=function(e,i){return H(e,i),e},t.prototype.getAnimationStyleProps=function(){return Gi},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=_t|ye}(),t}(Yi),_a=new z(0,0,0,0),ya=new z(0,0,0,0);function vv(r,t,e){return _a.copy(r.getBoundingRect()),r.transform&&_a.applyTransform(r.transform),ya.width=t,ya.height=e,!_a.intersect(ya)}var lt=Math.min,ct=Math.max,ma=Math.sin,wa=Math.cos,lr=Math.PI*2,ti=oe(),ri=oe(),ei=oe();function Tf(r,t,e){if(r.length!==0){for(var i=r[0],a=i[0],n=i[0],s=i[1],o=i[1],f=1;f<r.length;f++)i=r[f],a=lt(a,i[0]),n=ct(n,i[0]),s=lt(s,i[1]),o=ct(o,i[1]);t[0]=a,t[1]=s,e[0]=n,e[1]=o}}function Cs(r,t,e,i,a,n){a[0]=lt(r,e),a[1]=lt(t,i),n[0]=ct(r,e),n[1]=ct(t,i)}var Ms=[],Ps=[];function lv(r,t,e,i,a,n,s,o,f,h){var u=jo,v=it,l=u(r,e,a,s,Ms);f[0]=1/0,f[1]=1/0,h[0]=-1/0,h[1]=-1/0;for(var c=0;c<l;c++){var p=v(r,e,a,s,Ms[c]);f[0]=lt(p,f[0]),h[0]=ct(p,h[0])}l=u(t,i,n,o,Ps);for(var c=0;c<l;c++){var _=v(t,i,n,o,Ps[c]);f[1]=lt(_,f[1]),h[1]=ct(_,h[1])}f[0]=lt(r,f[0]),h[0]=ct(r,h[0]),f[0]=lt(s,f[0]),h[0]=ct(s,h[0]),f[1]=lt(t,f[1]),h[1]=ct(t,h[1]),f[1]=lt(o,f[1]),h[1]=ct(o,h[1])}function cv(r,t,e,i,a,n,s,o){var f=tf,h=st,u=ct(lt(f(r,e,a),1),0),v=ct(lt(f(t,i,n),1),0),l=h(r,e,a,u),c=h(t,i,n,v);s[0]=lt(r,a,l),s[1]=lt(t,n,c),o[0]=ct(r,a,l),o[1]=ct(t,n,c)}function dv(r,t,e,i,a,n,s,o,f){var h=$r,u=Vr,v=Math.abs(a-n);if(v%lr<1e-4&&v>1e-4){o[0]=r-e,o[1]=t-i,f[0]=r+e,f[1]=t+i;return}if(ti[0]=wa(a)*e+r,ti[1]=ma(a)*i+t,ri[0]=wa(n)*e+r,ri[1]=ma(n)*i+t,h(o,ti,ri),u(f,t
16i,ri),a=a%lr,a<0&&(a=a+lr),n=n%lr,n<0&&(n=n+lr),a>n&&!s?n+=lr:a<n&&s&&(a+=lr),s){var l=n;n=a,a=l}for(var c=0;c<n;c+=Math.PI/2)c>a&&(ei[0]=wa(c)*e+r,ei[1]=ma(c)*i+t,h(o,ei,o),u(f,ei,f))}var B={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},cr=[],dr=[],Dt=[],Zt=[],At=[],It=[],Ta=Math.min,ba=Math.max,pr=Math.cos,gr=Math.sin,Xt=Math.abs,on=Math.PI,Qt=on*2,Sa=typeof Float32Array<"u",de=[];function Ca(r){var t=Math.round(r/on*1e8)/1e8;return t%2*on}function pv(r,t){var e=Ca(r[0]);e<0&&(e+=Qt);var i=e-r[0],a=r[1];a+=i,!t&&a-e>=Qt?a=e+Qt:t&&e-a>=Qt?a=e-Qt:!t&&e>a?a=e+(Qt-Ca(e-a)):t&&e<a&&(a=e-(Qt-Ca(a-e))),r[0]=e,r[1]=a}var nr=function(){function r(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=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=Xt(i/Pi/t)||0,this._uy=Xt(i/Pi/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(B.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=Xt(t-this._xi),a=Xt(e-this._yi),n=i>this._ux||a>this._uy;if(this.addData(B.L,t,e),this._ctx&&n&&this._ctx.lineTo(t,e),n)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var s=i*i+a*a;s>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=s)}return this},r.prototype.bezierCurveTo=function(t,e,i,a,n,s){return this._drawPendingPt(),this.addData(B.C,t,e,i,a,n,s),this._ctx&&this._ctx.bezierCurveTo(t,e,i,a,n,s),this._xi=n,this._yi=s,this},r.prototype.quadraticCurveTo=function(t,e,i,a){return this._drawPendingPt(),this.addData(B.Q,t,e,i,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,a),this._xi=i,this._yi=a,this},r.prototype.arc=function(t,e,i,a,n,s){this._drawPendingPt(),de[0]=a,de[1]=n,pv(de,s),a=de[0],n=de[1];var o=n-a;return this.addData(B.A,t,e,i,i,a,o,0,s?0:1),this._ctx&&this._ctx.arc(t,e,i,a,n,s),this._xi=pr(n)*i+t,this._yi=gr(n)*i+e,this},r.prototype.arcTo=function(t,e,i,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,a,n),this},r.prototype.rect=function(t,e,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,a),this.addData(B.R,t,e,i,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(B.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&Sa&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e}},r.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,i=0,a=this._len,n=0;n<e;n++)i+=t[n].len();var s=this.data;if(Sa&&(s instanceof Float32Array||!s)&&(this.data=new Float32Array(a+i),a>0&&s))for(var o=0;o<a;o++)this.data[o]=s[o];for(var n=0;n<e;n++)for(var f=t[n].data,o=0;o<f.length;o++)this.data[a++]=f[o];this._len=a}},r.prototype.addData=function(t,e,i,a,n,s,o,f,h){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var v=0;v<arguments.length;v++)u[this._len++]=arguments[v]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.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}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Sa&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Dt[0]=Dt[1]=At[0]=At[1]=Number.MAX_VALUE,Zt[0]=Zt[1]=It[0]=It[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,a=0,n=0,s;for(s=0;s<this._len;){var o=t[s++],f=s===1;switch(f&&(e=t[s],i=t[s+1],a=e,n=i),o){case B.M:e=a=t[s++],i=n=t[s++],At[0]=a,At[1]=n,It[0]=a,It[1]=n;break;case B.L:Cs(e,i,t[s],t[s+1],At,It),e=t[s++],i=t[s++];break;case B.C:lv(e,i,t[s++],t[s++],t[s++],t[s++],t[s],t[s+1],At,It),e=t[s++],i=t[s++];break;case B.Q:cv(e,i,t[s++],t[s++],t[s],t[s+1],At,It),e=t[s++],i=t[s++];break;case B.A:var h=t[s++],u=t[s++],v=t[s++],l=t[s++],c=t[s++],p=t[s++]+c;s+=1;var _=!t[s++];f&&(a=pr(c)*v+h,n=gr(c)*l+u),dv(h,u,v,l,c,p,_,At,It),e=pr(p)*v+h,i=gr(p)*l+u;break;case B.R:a=e=t[s++],n=i=t[s++];var d=t[s++],g=t[s++];Cs(a,n,a+d,n+g,At,It);break;case B.Z:e=a,i=n;break}$r(Dt,Dt,At),Vr(Zt,Zt,It)}return s===0&&(Dt[0]=Dt[1]=Zt[0]=Zt[1]=0),new z(Dt[0],Dt[1],Zt[0]-Dt[0],Zt[1]-Dt[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,a=this._uy,n=0,s=0,o=0,f=0;this._pathSegLen||(this._pathSegLen=[]);for(var h=this._pathSegLen,u=0,v=0,l=0;l<e;){var c=t[l++],p=l===1;p&&(n=t[l],s=t[l+1],o=n,f=s);var _=-1;switch(c){case B.M:n=o=t[l++],s=f=t[l++];break;case B.L:{var d=t[l++],g=t[l++],y=d-n,m=g-s;(Xt(y)>i||Xt(m)>a||l===e-1)&&(_=Math.sqrt(y*y+m*m),n=d,s=g);break}case B.C:{var w=t[l++],b=t[l++],d=t[l++],g=t[l++],T=t[l++],C=t[l++];_=uu(n,s,w,b,d,g,T,C,10),n=T,s=C;break}case B.Q:{var w=t[l++],b=t[l++],d=t[l++],g=t[l++];_=cu(n,s,w,b,d,g,10),n=d,s=g;break}case B.A:var S=t[l++],M=t[l++],P=t[l++],R=t[l++],D=t[l++],L=t[l++],x=L+D;l+=1,p&&(o=pr(D)*P+S,f=gr(D)*R+M),_=ba(P,R)*Ta(Qt,Math.abs(L)),n=pr(x)*P+S,s=gr(x)*R+M;break;case B.R:{o=n=t[l++],f=s=t[l++];var I=t[l++],E=t[l++];_=I*2+E*2;break}case B.Z:{var y=o-n,m=f-s;_=Math.sqrt(y*y+m*m),n=o,s=f;break}}_>=0&&(h[v++]=_,u+=_)}return this._pathLen=u,u},r.prototype.rebuildPath=function(t,e){var i=this.data,a=this._ux,n=this._uy,s=this._len,o,f,h,u,v,l,c=e<1,p,_,d=0,g=0,y,m=0,w,b;if(!(c&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,_=this._pathLen,y=e*_,!y)))t:for(var T=0;T<s;
16){var C=i[T++],S=T===1;switch(S&&(h=i[T],u=i[T+1],o=h,f=u),C!==B.L&&m>0&&(t.lineTo(w,b),m=0),C){case B.M:o=h=i[T++],f=u=i[T++],t.moveTo(h,u);break;case B.L:{v=i[T++],l=i[T++];var M=Xt(v-h),P=Xt(l-u);if(M>a||P>n){if(c){var R=p[g++];if(d+R>y){var D=(y-d)/R;t.lineTo(h*(1-D)+v*D,u*(1-D)+l*D);break t}d+=R}t.lineTo(v,l),h=v,u=l,m=0}else{var L=M*M+P*P;L>m&&(w=v,b=l,m=L)}break}case B.C:{var x=i[T++],I=i[T++],E=i[T++],F=i[T++],k=i[T++],et=i[T++];if(c){var R=p[g++];if(d+R>y){var D=(y-d)/R;ar(h,x,E,k,D,cr),ar(u,I,F,et,D,dr),t.bezierCurveTo(cr[1],dr[1],cr[2],dr[2],cr[3],dr[3]);break t}d+=R}t.bezierCurveTo(x,I,E,F,k,et),h=k,u=et;break}case B.Q:{var x=i[T++],I=i[T++],E=i[T++],F=i[T++];if(c){var R=p[g++];if(d+R>y){var D=(y-d)/R;Si(h,x,E,D,cr),Si(u,I,F,D,dr),t.quadraticCurveTo(cr[1],dr[1],cr[2],dr[2]);break t}d+=R}t.quadraticCurveTo(x,I,E,F),h=E,u=F;break}case B.A:var G=i[T++],$=i[T++],W=i[T++],U=i[T++],V=i[T++],ht=i[T++],yt=i[T++],mt=!i[T++],ot=W>U?W:U,j=Xt(W-U)>.001,Z=V+ht,A=!1;if(c){var R=p[g++];d+R>y&&(Z=V+ht*(y-d)/R,A=!0),d+=R}if(j&&t.ellipse?t.ellipse(G,$,W,U,yt,V,Z,mt):t.arc(G,$,ot,V,Z,mt),A)break t;S&&(o=pr(V)*W+G,f=gr(V)*U+$),h=pr(Z)*W+G,u=gr(Z)*U+$;break;case B.R:o=h=i[T],f=u=i[T+1],v=i[T++],l=i[T++];var O=i[T++],Gt=i[T++];if(c){var R=p[g++];if(d+R>y){var ut=y-d;t.moveTo(v,l),t.lineTo(v+Ta(ut,O),l),ut-=O,ut>0&&t.lineTo(v+O,l+Ta(ut,Gt)),ut-=Gt,ut>0&&t.lineTo(v+ba(O-ut,0),l+Gt),ut-=O,ut>0&&t.lineTo(v,l+ba(Gt-ut,0));break t}d+=R}t.rect(v,l,O,Gt);break;case B.Z:if(c){var R=p[g++];if(d+R>y){var D=(y-d)/R;t.lineTo(h*(1-D)+o*D,u*(1-D)+f*D);break t}d+=R}t.closePath(),h=o,u=f}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=B,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function zr(r,t,e,i,a,n,s){if(a===0)return!1;var o=a,f=0,h=r;if(s>t+o&&s>i+o||s<t-o&&s<i-o||n>r+o&&n>e+o||n<r-o&&n<e-o)return!1;if(r!==e)f=(t-i)/(r-e),h=(r*i-e*t)/(r-e);else return Math.abs(n-r)<=o/2;var u=f*n-s+h,v=u*u/(f*f+1);return v<=o/2*o/2}function gv(r,t,e,i,a,n,s,o,f,h,u){if(f===0)return!1;var v=f;if(u>t+v&&u>i+v&&u>n+v&&u>o+v||u<t-v&&u<i-v&&u<n-v&&u<o-v||h>r+v&&h>e+v&&h>a+v&&h>s+v||h<r-v&&h<e-v&&h<a-v&&h<s-v)return!1;var l=hu(r,t,e,i,a,n,s,o,h,u,null);return l<=v/2}function _v(r,t,e,i,a,n,s,o,f){if(s===0)return!1;var h=s;if(f>t+h&&f>i+h&&f>n+h||f<t-h&&f<i-h&&f<n-h||o>r+h&&o>e+h&&o>a+h||o<r-h&&o<e-h&&o<a-h)return!1;var u=lu(r,t,e,i,a,n,o,f,null);return u<=h/2}var Ls=Math.PI*2;function ii(r){return r%=Ls,r<0&&(r+=Ls),r}var pe=Math.PI*2;function yv(r,t,e,i,a,n,s,o,f){if(s===0)return!1;var h=s;o-=r,f-=t;var u=Math.sqrt(o*o+f*f);if(u-h>e||u+h<e)return!1;if(Math.abs(i-a)%pe<1e-4)return!0;if(n){var v=i;i=ii(a),a=ii(v)}else i=ii(i),a=ii(a);i>a&&(a+=pe);var l=Math.atan2(f,o);return l<0&&(l+=pe),l>=i&&l<=a||l+pe>=i&&l+pe<=a}function qt(r,t,e,i,a,n){if(n>t&&n>i||n<t&&n<i||i===t)return 0;var s=(n-t)/(i-t),o=i<t?1:-1;(s===1||s===0)&&(o=i<t?.5:-.5);var f=s*(e-r)+r;return f===a?1/0:f>a?o:0}var Kt=nr.CMD,_r=Math.PI*2,mv=1e-4;function wv(r,t){return Math.abs(r-t)<mv}var ft=[-1,-1,-1],bt=[-1,-1];function Tv(){var r=bt[0];bt[0]=bt[1],bt[1]=r}function bv(r,t,e,i,a,n,s,o,f,h){if(h>t&&h>i&&h>n&&h>o||h<t&&h<i&&h<n&&h<o)return 0;var u=Jo(t,i,n,o,h,ft);if(u===0)return 0;for(var v=0,l=-1,c=void 0,p=void 0,_=0;_<u;_++){var d=ft[_],g=d===0||d===1?.5:1,y=it(r,e,a,s,d);y<f||(l<0&&(l=jo(t,i,n,o,bt),bt[1]<bt[0]&&l>1&&Tv(),c=it(t,i,n,o,bt[0]),l>1&&(p=it(t,i,n,o,bt[1]))),l===2?d<bt[0]?v+=c<t?g:-g:d<bt[1]?v+=p<c?g:-g:v+=o<p?g:-g:d<bt[0]?v+=c<t?g:-g:v+=o<c?g:-g)}return v}function Sv(r,t,e,i,a,n,s,o){if(o>t&&o>i&&o>n||o<t&&o<i&&o<n)return 0;var f=vu(t,i,n,o,ft);if(f===0)return 0;var h=tf(t,i,n);if(h>=0&&h<=1){for(var u=0,v=st(t,i,n,h),l=0;l<f;l++){var c=ft[l]===0||ft[l]===1?.5:1,p=st(r,e,a,ft[l]);p<s||(ft[l]<h?u+=v<t?c:-c:u+=n<v?c:-c)}return u}else{var c=ft[0]===0||ft[0]===1?.5:1,p=st(r,e,a,ft[0]);return p<s?0:n<t?c:-c}}function Cv(r,t,e,i,a,n,s,o){if(o-=t,o>e||o<-e)return 0;var f=Math.sqrt(e*e-o*o);ft[0]=-f,ft[1]=f;var h=Math.abs(i-a);if(h<1e-4)return 0;if(h>=_r-1e-4){i=0,a=_r;var u=n?1:-1;return s>=ft[0]+r&&s<=ft[1]+r?u:0}if(i>a){var v=i;
16i=a,a=v}i<0&&(i+=_r,a+=_r);for(var l=0,c=0;c<2;c++){var p=ft[c];if(p+r>s){var _=Math.atan2(o,p),u=n?1:-1;_<0&&(_=_r+_),(_>=i&&_<=a||_+_r>=i&&_+_r<=a)&&(_>Math.PI/2&&_<Math.PI*1.5&&(u=-u),l+=u)}}return l}function bf(r,t,e,i,a){for(var n=r.data,s=r.len(),o=0,f=0,h=0,u=0,v=0,l,c,p=0;p<s;){var _=n[p++],d=p===1;switch(_===Kt.M&&p>1&&(e||(o+=qt(f,h,u,v,i,a))),d&&(f=n[p],h=n[p+1],u=f,v=h),_){case Kt.M:u=n[p++],v=n[p++],f=u,h=v;break;case Kt.L:if(e){if(zr(f,h,n[p],n[p+1],t,i,a))return!0}else o+=qt(f,h,n[p],n[p+1],i,a)||0;f=n[p++],h=n[p++];break;case Kt.C:if(e){if(gv(f,h,n[p++],n[p++],n[p++],n[p++],n[p],n[p+1],t,i,a))return!0}else o+=bv(f,h,n[p++],n[p++],n[p++],n[p++],n[p],n[p+1],i,a)||0;f=n[p++],h=n[p++];break;case Kt.Q:if(e){if(_v(f,h,n[p++],n[p++],n[p],n[p+1],t,i,a))return!0}else o+=Sv(f,h,n[p++],n[p++],n[p],n[p+1],i,a)||0;f=n[p++],h=n[p++];break;case Kt.A:var g=n[p++],y=n[p++],m=n[p++],w=n[p++],b=n[p++],T=n[p++];p+=1;var C=!!(1-n[p++]);l=Math.cos(b)*m+g,c=Math.sin(b)*w+y,d?(u=l,v=c):o+=qt(f,h,l,c,i,a);var S=(i-g)*w/m+g;if(e){if(yv(g,y,w,b,b+T,C,t,S,a))return!0}else o+=Cv(g,y,w,b,b+T,C,S,a);f=Math.cos(b+T)*m+g,h=Math.sin(b+T)*w+y;break;case Kt.R:u=f=n[p++],v=h=n[p++];var M=n[p++],P=n[p++];if(l=u+M,c=v+P,e){if(zr(u,v,l,v,t,i,a)||zr(l,v,l,c,t,i,a)||zr(l,c,u,c,t,i,a)||zr(u,c,u,v,t,i,a))return!0}else o+=qt(l,v,l,c,i,a),o+=qt(u,c,u,v,i,a);break;case Kt.Z:if(e){if(zr(f,h,u,v,t,i,a))return!0}else o+=qt(f,h,u,v,i,a);f=u,h=v;break}}return!e&&!wv(h,v)&&(o+=qt(f,h,u,v,i,a)||0),o!==0}function Mv(r,t,e){return bf(r,0,!1,t,e)}function Pv(r,t,e,i){return bf(r,t,!0,e,i)}var Li=Mt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ir),Lv={style:Mt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Gi.style)},Ma=Ee.concat(["invisible","culling","z","z2","zlevel","parent"]),J=function(r){Y(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(f){e.buildPath(f,e.shape)}),a.silent=!0;var n=a.style;for(var s in i)n[s]!==i[s]&&(n[s]=i[s]);n.fill=i.fill?i.decal:null,n.decal=null,n.shadowColor=null,i.strokeFirst&&(n.stroke=null);for(var o=0;o<Ma.length;++o)a[Ma[o]]=this[Ma[o]];a.__dirty|=_t}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=X(e);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var n=0;n<i.length;n++){var s=i[n],o=e[s];s==="style"?this.style?H(this.style,o):this.useStyle(o):s==="shape"?H(this.shape,o):r.prototype.attrKV.call(this,s,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(Wt(e)){var i=Ci(e,0);return i>.5?tn:i>.2?Nu:rn}else if(e)return rn}return tn},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(Wt(i)){var a=this.__zr,n=!!(a&&a.isDarkMode()),s=Ci(e,0)<ja;if(n===s)return i}},t.prototype.buildPath=function(e,i,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Gr},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new nr(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,a=!e;if(a){var n=!1;this.path||(n=!0,this.createPathProxy());var s=this.path;(n||this.__dirty&Gr)&&(s.beginPath(),this.buildPath(s,this.shape,!1),this.pathUpdated()),e=s.getBoundingRect
16()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||a){o.copy(e);var f=i.strokeNoScale?this.getLineScale():1,h=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;h=Math.max(h,u??4)}f>1e-10&&(o.width+=h/f,o.height+=h/f,o.x-=h/f/2,o.y-=h/f/2)}return o}return e},t.prototype.contain=function(e,i){var a=this.transformCoordToLocal(e,i),n=this.getBoundingRect(),s=this.style;if(e=a[0],i=a[1],n.contain(e,i)){var o=this.path;if(this.hasStroke()){var f=s.lineWidth,h=s.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),Pv(o,f/h,e,i)))return!0}if(this.hasFill())return Mv(o,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Gr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=i:H(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Gr)},t.prototype.createStyle=function(e){return zi(Li,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=H({},this.shape))},t.prototype._applyStateObj=function(e,i,a,n,s,o){r.prototype._applyStateObj.call(this,e,i,a,n,s,o);var f=!(i&&n),h;if(i&&i.shape?s?n?h=i.shape:(h=H({},a.shape),H(h,i.shape)):(h=H({},n?this.shape:a.shape),H(h,i.shape)):f&&(h=a.shape),h)if(s){this.shape=H({},this.shape);for(var u={},v=X(h),l=0;l<v.length;l++){var c=v[l];typeof h[c]=="object"?this.shape[c]=h[c]:u[c]=h[c]}this._transitionState(e,{shape:u},o)}else this.shape=h,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),a,n=0;n<e.length;n++){var s=e[n];s.shape&&(a=a||{},this._mergeStyle(a,s.shape))}return a&&(i.shape=a),i},t.prototype.getAnimationStyleProps=function(){return Lv},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=function(n){Y(s,n);function s(o){var f=n.call(this,o)||this;return e.init&&e.init.call(f,o),f}return s.prototype.getDefaultStyle=function(){return Fr(e.style)}
16,s.prototype.getDefaultShape=function(){return Fr(e.shape)},s}(t);for(var a in e)typeof e[a]=="function"&&(i.prototype[a]=e[a]);return i},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=_t|ye|Gr}(),t}(Ne),xv=Mt({strokeFirst:!0,font:Vt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Li),ne=function(r){Y(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return wf(this.style)},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return zi(xv,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=hv(this.style)),this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Ne);ne.prototype.type="tspan";var Rv=Mt({x:0,y:0},Ir),Dv={style:Mt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Gi.style)};function Av(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var ue=function(r){Y(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return zi(Rv,e)},t.prototype._getSize=function(e){var i=this.style,a=i[e];if(a!=null)return a;var n=Av(i.image)?i.image:this.__image;if(!n)return 0;var s=e==="width"?"height":"width",o=i[s];return o==null?n[e]:n[e]/n[s]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Dv},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new z(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ne);ue.prototype.type="image";function Iv(r,t){var e=t.x,i=t.y,a=t.width,n=t.height,s=t.r,o,f,h,u;a<0&&(e=e+a,a=-a),n<0&&(i=i+n,n=-n),typeof s=="number"?o=f=h=u=s:s instanceof Array?s.length===1?o=f=h=u=s[0]:s.length===2?(o=h=s[0],f=u=s[1]):s.length===3?(o=s[0],f=u=s[1],h=s[2]):(o=s[0],f=s[1],h=s[2],u=s[3]):o=f=h=u=0;var v;o+f>a&&(v=o+f,o*=a/v,f*=a/v),h+u>a&&(v=h+u,h*=a/v,u*=a/v),f+h>n&&(v=f+h,f*=n/v,h*=n/v),o+u>n&&(v=o+u,o*=n/v,u*=n/v),r.moveTo(e+o,i),r.lineTo(e+a-f,i),f!==0&&r.arc(e+a-f,i+f,f,-Math.PI/2,0),r.lineTo(e+a,i+n-h),h!==0&&r.arc(e+a-h,i+n-h,h,0,Math.PI/2),r.lineTo(e+u,i+n),u!==0&&r.arc(e+u,i+n-u,u,Math.PI/2,Math.PI),r.lineTo(e,i+o),o!==0&&r.arc(e+o,i+o,o,Math.PI,Math.PI*1.5)}var Qr=Math.round;function Ev(r,t,e){if(t){var i=t.x1,a=t.x2,n=t.y1,s=t.y2;r.x1=i,r.x2=a,r.y1=n,r.y2=s;var o=e&&e.lineWidth;return o&&(Qr(i*2)===Qr(a*2)&&(r.x1=r.x2=Jr(i,o,!0)),Qr(n*2)===Qr(s*2)&&(r.y1=r.y2=Jr(n,o,!0))),r}}function Fv(r,t,e){if(t){var i=t.x,a=t.y,n=t.width,s=t.height;r.x=i,r.y=a,r.width=n,r.height=s;var o=e&&e.lineWidth;return o&&(r.x=Jr(i,o,!0),r.y=Jr(a,o,!0),r.width=Math.max(Jr(i+n,o,!1)-r.x,n===0?0:1),r.height=Math.max(Jr(a+s,o,!1)-r.y,s===0?0:1)),r}}function Jr(r,t,e){if(!t)return r;var i=Qr(r*2);return(i+Qr(t))%2===0?i/2:(i+(e?1:-1))/2}var Ov=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),kv={},Oe=function(r){Y(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ov},t.prototype.buildPath=function(e,i){var a,n,s,o;if(this.subPixelOptimize){var f=Fv(kv,i,this.style);a=f.x,n=f.y,s=f.width,o=f.height,f.r=i.r,i=f}else a=i.x,n=i.y,s=i.width,o=i.height;i.r?Iv(e,i):e.rect(a,n,s,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(J);Oe.prototype.type="rect";var xs={fill:"#000"},Rs=2,Et={},Bv={style:Mt({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},Gi.style)},Hv=function(r){Y(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=xs,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Yv(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new z(0,0,0,0),i=this._children,a=[],n=null,s=0;s<i.length;
16s++){var o=i[s],f=o.getBoundingRect(),h=o.getLocalTransform(a);h?(e.copy(f),e.applyTransform(h),n=n||e.clone(),n.union(e)):(n=n||f.clone(),n.union(f))}this._rect=n||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||xs},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var a=i.rich,n=e.rich||a&&{};return H(e,i),a&&n?(this._mergeRich(n,a),e.rich=n):n&&(e.rich=n),e},t.prototype._mergeRich=function(e,i){for(var a=X(i),n=0;n<a.length;n++){var s=a[n];e[s]=e[s]||{},H(e[s],i[s])}},t.prototype.getAnimationStyleProps=function(){return Bv},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||Vt,a=e.padding,n=this._defaultStyle,s=e.x||0,o=e.y||0,f=e.align||n.align||"left",h=e.verticalAlign||n.verticalAlign||"top";ws(Et,n.overflowRect,s,o,f,h),s=Et.baseX,o=Et.baseY;var u=ks(e),v=ev(u,e,Et.outerWidth,Et.outerHeight),l=Pa(e),c=!!e.backgroundColor,p=v.outerHeight,_=v.outerWidth,d=v.lines,g=v.lineHeight;this.isTruncated=!!v.isTruncated;var y=s,m=Ar(o,v.contentHeight,h);if(l||a){var w=ae(s,_,f),b=Ar(o,p,h);l&&this._renderBackground(e,e,w,b,_,p)}m+=g/2,a&&(y=Os(s,f,a),h==="top"?m+=a[0]:h==="bottom"&&(m-=a[2]));for(var T=0,C=!1,S=!1,M=Fs("fill"in e?e.fill:(S=!0,n.fill)),P=Es("stroke"in e?e.stroke:!c&&(!n.autoStroke||S)?(T=Rs,C=!0,n.stroke):null),R=e.textShadowBlur>0,D=0;D<d.length;D++){var L=this._getOrCreateChild(ne),x=L.createStyle();L.useStyle(x),x.text=d[D],x.x=y,x.y=m,x.textAlign=f,x.textBaseline="middle",x.opacity=e.opacity,x.strokeFirst=!0,R&&(x.shadowBlur=e.textShadowBlur||0,x.shadowColor=e.textShadowColor||"transparent",x.shadowOffsetX=e.textShadowOffsetX||0,x.shadowOffsetY=e.textShadowOffsetY||0),x.stroke=P,x.fill=M,P&&(x.lineWidth=e.lineWidth||T,x.lineDash=e.lineDash,x.lineDashOffset=e.lineDashOffset||0),x.font=i,As(x,e),m+=g,L.setBoundingRect(nn(x,v.contentWidth,v.calculatedLineHeight,C?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,i=this._defaultStyle,a=e.align||i.align,n=e.verticalAlign||i.verticalAlign,s=e.x||0,o=e.y||0;ws(Et,i.overflowRect,s,o,a,n),s=Et.baseX,o=Et.baseY;var f=ks(e),h=nv(f,e,Et.outerWidth,Et.outerHeight,a),u=h.width,v=h.outerWidth,l=h.outerHeight,c=e.padding;this.isTruncated=!!h.isTruncated;var p=ae(s,v,a),_=Ar(o,l,n),d=p,g=_;c&&(d+=c[3],g+=c[0]);var y=d+u;Pa(e)&&this._renderBackground(e,e,p,_,v,l);for(var m=!!e.backgroundColor,w=0;w<h.lines.length;w++){for(var b=h.lines[w],T=b.tokens,C=T.length,S=b.lineHeight,M=b.width,P=0,R=d,D=y,L=C-1,x=void 0;P<C&&(x=T[P],!x.align||x.align==="left");)this._placeToken(x,e,S,g,R,"left",m),M-=x.width,R+=x.width,P++;for(;L>=0&&(x=T[L],x.align==="right");)this._placeToken(x,e,S,g,D,"right",m),M-=x.width,D-=x.width,L--;for(R+=(u-(R-d)-(y-D)-M)/2;P<=L;)x=T[P],this._placeToken(x,e,S,g,R+x.width/2,"center",m),R+=x.width,P++;g+=S}},t.prototype._placeToken=function(e,i,a,n,s,o,f){var h=i.rich[e.styleName]||{};h.text=e.text;var u=e.verticalAlign,v=n+a/2;u==="top"?v=n+e.height/2:u==="bottom"&&(v=n+a-e.height/2);var l=!e.isLineHolder&&Pa(h);l&&this._renderBackground(h,i,o==="right"?s-e.width:o==="center"?s-e.width/2:s,v-e.height/2,e.width,e.height);var c=!!h.backgroundColor,p=e.textPadding;p&&(s=Os(s,o,p),v-=e.height/2-p[0]-e.innerHeight/2);var _=this._getOrCreateChild(ne),d=_.createStyle();_.useStyle(d);var g=this._defaultStyle,y=!1,m=0,w=!1,b=Fs("fill"in h?h.fill:"fill"in i?i.fill:(y=!0,g.fill)),T=Es("stroke"in h?h.stroke:"stroke"in i?i.stroke:!c&&!f&&(!g.autoStroke||y)?(m=Rs,w=!0,g.stroke):null),C=h.textShadowBlur>0||i.textShadowBlur>0;d.text=e.text,d.x=s,d.y=v,C&&(d.shadowBlur=h.textShadowBlur||i.textShadowBlur||0,d.shadowColor=h.textShadowColor||i.textShadowColor||"transparent",d.shadowOffsetX=h.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=h.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=e.font||Vt,d.opacity=li(h.opacity,i.opacity,1),As(d,h),T&&(d.lineWidth=li(h.lineWidth,i.lineWidth,m),d.lineDash=Q(h.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=T),b&&(d.fill=b),_.setBoundingRect
16(nn(d,e.contentWidth,e.contentHeight,w?0:null))},t.prototype._renderBackground=function(e,i,a,n,s,o){var f=e.backgroundColor,h=e.borderWidth,u=e.borderColor,v=f&&f.image,l=f&&!v,c=e.borderRadius,p=this,_,d;if(l||e.lineHeight||h&&u){_=this._getOrCreateChild(Oe),_.useStyle(_.createStyle()),_.style.fill=null;var g=_.shape;g.x=a,g.y=n,g.width=s,g.height=o,g.r=c,_.dirtyShape()}if(l){var y=_.style;y.fill=f||null,y.fillOpacity=Q(e.fillOpacity,1)}else if(v){d=this._getOrCreateChild(ue),d.onload=function(){p.dirtyStyle()};var m=d.style;m.image=f.image,m.x=a,m.y=n,m.width=s,m.height=o}if(h&&u){var y=_.style;y.lineWidth=h,y.stroke=u,y.strokeOpacity=Q(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,_.strokeContainThreshold=0,_.hasFill()&&_.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(_||d).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=li(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return Cf(e)&&(i=[e.fontStyle,e.fontWeight,Sf(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&qr(i)||e.textFont||e.font},t}(Ne),zv={left:!0,right:1,center:1},Nv={top:1,bottom:1,middle:1},Ds=["fontStyle","fontWeight","fontSize","fontFamily"];function Sf(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?mn+"px":r+"px"}function As(r,t){for(var e=0;e<Ds.length;e++){var i=Ds[e],a=t[i];a!=null&&(r[i]=a)}}function Cf(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function Yv(r){return Is(r),at(r.rich,Is),r}function Is(r){if(r){r.font=Hv.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||zv[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||Nv[e]?e:"top";var i=r.padding;i&&(r.padding=bh(r.padding))}}function Es(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Fs(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Os(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function ks(r){var t=r.text;return t!=null&&(t+=""),t}function Pa(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Nr=nr.CMD,Wv=[[],[],[]],Bs=Math.sqrt,Gv=Math.atan2;function Mf(r,t){if(t){var e=r.data,i=r.len(),a,n,s,o,f,h,u=Nr.M,v=Nr.C,l=Nr.L,c=Nr.R,p=Nr.A,_=Nr.Q;for(s=0,o=0;s<i;){switch(a=e[s++],o=s,n=0,a){case u:n=1;break;case l:n=1;break;case v:n=3;break;case _:n=2;break;case p:var d=t[4],g=t[5],y=Bs(t[0]*t[0]+t[1]*t[1]),m=Bs(t[2]*t[2]+t[3]*t[3]),w=Gv(-t[1]/m,t[0]/y);e[s]*=y,e[s++]+=d,e[s]*=m,e[s++]+=g,e[s++]*=y,e[s++]*=m,e[s++]+=w,e[s++]+=w,s+=2,o=s;break;case c:h[0]=e[s++],h[1]=e[s++],Ce(h,h,t),e[o++]=h[0],e[o++]=h[1],h[0]+=e[s++],h[1]+=e[s++],Ce(h,h,t),e[o++]=h[0],e[o++]=h[1]}for(f=0;f<n;f++){var b=Wv[f];b[0]=e[s++],b[1]=e[s++],Ce(b,b,t),e[o++]=b[0],e[o++]=b[1]}}r.increaseVersion()}}var La=Math.sqrt,ai=Math.sin,ni=Math.cos,ge=Math.PI;function Hs(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function fn(r,t){return(r[0]*t[0]+r[1]*t[1])/(Hs(r)*Hs(t))}function zs(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(fn(r,t))}function Ns(r,t,e,i,a,n,s,o,f,h,u){var v=f*(ge/180),l=ni(v)*(r-e)/2+ai(v)*(t-i)/2,c=-1*ai(v)*(r-e)/2+ni(v)*(t-i)/2,p=l*l/(s*s)+c*c/(o*o);p>1&&(s*=La(p),o*=La(p));var _=(a===n?-1:1)*La((s*s*(o*o)-s*s*(c*c)-o*o*(l*l))/(s*s*(c*c)+o*o*(l*l)))||0,d=_*s*c/o,g=_*-o*l/s,y=(r+e)/2+ni(v)*d-ai(v)*g,m=(t+i)/2+ai(v)*d+ni(v)*g,w=zs([1,0],[(l-d)/s,(c-g)/o]),b=[(l-d)/s,(c-g)/o],T=[(-1*l-d)/s,(-1*c-g)/o],C=zs(b,T);if(fn(b,T)<=-1&&(C=ge),fn(b,T)>=1&&(C=0),C<0){var S=Math.round(C/ge*1e6)/1e6;C=ge*2+S%2*ge}u.addData(h,y,m,s,o,w,C,v,n)}var Xv=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Uv=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function qv(r){var t=new nr;if(!r)return t;var e=0,i=0,a=e,n=i,s,o=nr.CMD,f=r.match(Xv);if(!f)return t;for(var h=0;h<f.length;h++){for(var u=f[h],v=u.charAt(0),l=void 0,c=u.match(Uv)||[],p=c.length,_=0;_<p;_++)c[_]=parseFloat(c[_]);for(var d=0;d<p;){var g=void 0,y=void 0,m=void 0,w=void 0,b=void 0,T=void 0,C=void 0,S=e,M=i,P=void 0,R=void 0;switch(v){case"l":e+=c[d++],i+=c[d++],l=o.L,t.addData(l,e,i);break;case"L":e=c[d++],i=c[d++],l=o.L,t.addData(l,e,i);break;case"m":e+=c[d++],i+=c[d++],l=o.M,t.addData(l,e,i),a=e,n=i,v="l";break;case"M":e=c[d++],i=c[d++],l=o.M,t.addData(l,e,i),a=e,n=i,v="L";break;case"h":e+=c[d++],l=o.L,t.addData(l,e,i);break;case"H":e=c[d++],l=o.L,t.addData(l,e,i);break;case"v":i+=c[d++],l=o.L,t.addData(l,e,i);break;case"V":i=c[d++],l=o.L,t.addData(l,e,i);break;case"C":l=o.C,t.addData(l,c[d++],c[d++],c[d++],c[d++],c[d++],c[d++]),e=c[d-2],i=c[d-1];break;case"c":l=o.C,t.addData(l,c[d++]+e,c[d++]+i,c[d++]+e,c[d++]+i,c[d++]+e,c[d++]+i),e+=c[d-2],i+=c[d-1];break;case"S":g=e,y=i,P=t.len(),R=t.data,s===o.C&&(g+=e-R[P-4],y+=i-R[P-3]),l=o.C,S=c[d++],M=c[d++],e=c[d++],i=c[d++],t.addData(l,g,y,S,M,e,i);break;case"s":g=e,y=i,P=t.len(),R=t.data,s===o.C&&(g+=e-R[P-4],y+=i-R[P-3]),l=o.C,S=e+c[d++],M=i+c[d++],e+=c[d++],i+=c[d++],t.addData(l,g,y,S,M,e,i);break;case"Q":S=c[d++],M=c[d++],e=c[d++],i=c[d++],l=o.Q,t.addData(l,S,M,e,i);break;case"q":S=c[d++]+e,M=c[d++]+i,e+=c[d++],i+=c[d++],l=o.Q,t.addData(l,S,M,e,i);break;case"T":g=e,y=i,P=t.len(),R=t.data,s===o.Q&&(g+=e-R[P-4],y+=i-R[P-3]),e=c[d++],i=c[d++],l=o.Q,t.addData(l,g,y,e,i);break;case"t":g=e,y=i,P=t.len(),R=t.data,s===o.Q&&(g+=e-R[P-4],y+=i-R[P-3]),e+=c[d++],i+=c[d++],l=o.Q,t.addData(l,g,y,e,i);break;case"A":m=c[d++],w=c[d++],b=c[d++],T=c[d++],C=c[d++],S=e,M=i,e=c[d++],i=c[d++],l=o.A,Ns(S,M,e,i,T,C,m,w,b,l,t);break;case"a":m=c[d++],w=c[d++],b=c[d++],T=c[d++],C=c[d++],S=e,M=i,e+=c[d++],i+=c[d++],l=o.A,Ns(S,M,e,i,T,C,m,w,b,l,t);break}}(v==="z"||v==="Z")&&(l=o.Z,t.addData(l),e=a,i=n),s=l}return t.toStatic(),t}var Pf=function(r){Y(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(J);function Lf(r){return r.setData!=null}function xf(r,t){var e=qv(r),i=H({},t);return i.buildPath=function(a){var n=Lf(a);if(n&&a.canSave()){a.appendPath(e);var s=a.getContext();s&&a.rebuildPath(s,1)}else{var s=n?a.getContext():a;s&&e.rebuildPath(s,1)}},i.applyTransform=function(a){Mf(e,a),this.dirtyShape()},i}function $v(r,t){return new Pf(xf(r,t))}function cd(r,t){var e=xf(r,t),i=function(a){Y(n,a);function n(s){var o=a.call(this,s)||this;return o.applyTransform=e.applyTransform,o.buildPath=e.buildPath,o}return n}(Pf);return i}function dd(r,t){for(var e=[],i=r.length,a=0;a<i;a++){var n=r[a];e.push(n.getUpdatedPathProxy(!0))}var s=new J(t);
16return s.createPathProxy(),s.buildPath=function(o){if(Lf(o)){o.appendPath(e);var f=o.getContext();f&&o.rebuildPath(f,1)}},s}function Rf(r,t){t=t||{};var e=new J;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?Mf(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var Vv=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),Df=function(r){Y(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Vv},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t}(J);Df.prototype.type="circle";var Zv=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),Af=function(r){Y(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Zv},t.prototype.buildPath=function(e,i){var a=.5522848,n=i.cx,s=i.cy,o=i.rx,f=i.ry,h=o*a,u=f*a;e.moveTo(n-o,s),e.bezierCurveTo(n-o,s-u,n-h,s-f,n,s-f),e.bezierCurveTo(n+h,s-f,n+o,s-u,n+o,s),e.bezierCurveTo(n+o,s+u,n+h,s+f,n,s+f),e.bezierCurveTo(n-h,s+f,n-o,s+u,n-o,s),e.closePath()},t}(J);Af.prototype.type="ellipse";var If=Math.PI,xa=If*2,yr=Math.sin,Yr=Math.cos,Kv=Math.acos,nt=Math.atan2,Ys=Math.abs,xe=Math.sqrt,we=Math.max,Ft=Math.min,Pt=1e-4;function Qv(r,t,e,i,a,n,s,o){var f=e-r,h=i-t,u=s-a,v=o-n,l=v*f-u*h;if(!(l*l<Pt))return l=(u*(t-n)-v*(r-a))/l,[r+l*f,t+l*h]}function si(r,t,e,i,a,n,s){var o=r-e,f=t-i,h=(s?n:-n)/xe(o*o+f*f),u=h*f,v=-h*o,l=r+u,c=t+v,p=e+u,_=i+v,d=(l+p)/2,g=(c+_)/2,y=p-l,m=_-c,w=y*y+m*m,b=a-n,T=l*_-p*c,C=(m<0?-1:1)*xe(we(0,b*b*w-T*T)),S=(T*m-y*C)/w,M=(-T*y-m*C)/w,P=(T*m+y*C)/w,R=(-T*y+m*C)/w,D=S-d,L=M-g,x=P-d,I=R-g;return D*D+L*L>x*x+I*I&&(S=P,M=R),{cx:S,cy:M,x0:-u,y0:-v,x1:S*(a/b-1),y1:M*(a/b-1)}}function Jv(r){var t;if(ie(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function jv(r,t){var e,i=we(t.r,0),a=we(t.r0||0,0),n=i>0,s=a>0;if(!(!n&&!s)){if(n||(i=a,a=0),a>i){var o=i;i=a,a=o}var f=t.startAngle,h=t.endAngle;if(!(isNaN(f)||isNaN(h))){var u=t.cx,v=t.cy,l=!!t.clockwise,c=Ys(h-f),p=c>xa&&c%xa;if(p>Pt&&(c=p),!(i>Pt))r.moveTo(u,v);else if(c>xa-Pt)r.moveTo(u+i*Yr(f),v+i*yr(f)),r.arc(u,v,i,f,h,!l),a>Pt&&(r.moveTo(u+a*Yr(h),v+a*yr(h)),r.arc(u,v,a,h,f,l));else{var _=void 0,d=void 0,g=void 0,y=void 0,m=void 0,w=void 0,b=void 0,T=void 0,C=void 0,S=void 0,M=void 0,P=void 0,R=void 0,D=void 0,L=void 0,x=void 0,I=i*Yr(f),E=i*yr(f),F=a*Yr(h),k=a*yr(h),et=c>Pt;if(et){var G=t.cornerRadius;G&&(e=Jv(G),_=e[0],d=e[1],g=e[2],y=e[3]);var $=Ys(i-a)/2;if(m=Ft($,g),w=Ft($,y),b=Ft($,_),T=Ft($,d),M=C=we(m,w),P=S=we(b,T),(C>Pt||S>Pt)&&(R=i*Yr(h),D=i*yr(h),L=a*Yr(f),x=a*yr(f),c<If)){var W=Qv(I,E,L,x,R,D,F,k);if(W){var U=I-W[0],V=E-W[1],ht=R-W[0],yt=D-W[1],mt=1/yr(Kv((U*ht+V*yt)/(xe(U*U+V*V)*xe(ht*ht+yt*yt)))/2),ot=xe(W[0]*W[0]+W[1]*W[1]);M=Ft(C,(i-ot)/(mt+1)),P=Ft(S,(a-ot)/(mt-1))}}}if(!et)r.moveTo(u+I,v+E);else if(M>Pt){var j=Ft(g,M),Z=Ft(y,M),A=si(L,x,I,E,i,j,l),O=si(R,D,F,k,i,Z,l);r.moveTo(u+A.cx+A.x0,v+A.cy+A.y0),M<C&&j===Z?r.arc(u+A.cx,v+A.cy,M,nt(A.y0,A.x0),nt(O.y0,O.x0),!l):(j>0&&r.arc(u+A.cx,v+A.cy,j,nt(A.y0,A.x0),nt(A.y1,A.x1),!l),r.arc(u,v,i,nt(A.cy+A.y1,A.cx+A.x1),nt(O.cy+O.y1,O.cx+O.x1),!l),Z>0&&r.arc(u+O.cx,v+O.cy,Z,nt(O.y1,O.x1),nt(O.y0,O.x0),!l))}else r.moveTo(u+I,v+E),r.arc(u,v,i,f,h,!l);if(!(a>Pt)||!et)r.lineTo(u+F,v+k);else if(P>Pt){var j=Ft(_,P),Z=Ft(d,P),A=si(F,k,R,D,a,-Z,l),O=si(I,E,L,x,a,-j,l);r.lineTo(u+A.cx+A.x0,v+A.cy+A.y0),P<S&&j===Z?r.arc(u+A.cx,v+A.cy,P,nt(A.y0,A.x0),nt(O.y0,O.x0),!l):(Z>0&&r.arc(u+A.cx,v+A.cy,Z,nt(A.y0,A.x0),nt(A.y1,A.x1),!l),r.arc(u,v,a,nt(A.cy+A.y1,A.cx+A.x1),nt(O.cy+O.y1,O.cx+O.x1),l),j>0&&r.arc(u+O.cx,v+O.cy,j,nt(O.y1,O.x1),nt(O.y0,O.x0),!l))}else r.lineTo(u+F,v+k),r.arc(u,v,a,h,f,l)}r.closePath()}}}var tl=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),hn=function(r){Y(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new tl},t.prototype.buildPath=function(e,i){jv(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(J);hn.prototype.type="sector";var rl=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),el=function(r){Y(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new rl},t.prototype.buildPath=function(e,i){var a=i.cx,n=i.cy,s=Math.PI*2;e.moveTo(a+i.r,n),e.arc(a,n,i.r,0,s,!1),e.moveTo(a+i.r0,n),e.arc(a,n,i.r0,0,s,!0)},t}(J);el.prototype.type="ring";function il(r,t,e,i){var a=[],n=[],s=[],o=[],f,h,u,v;if(i){u=[1/0,1/0],v=[-1/0,-1/0];for(var l=0,c=r.length;l<c;l++)$r(u,u,r[l]),Vr(v,v,r[l]);$r(u,u,i[0]),Vr(v,v,i[1])}for(var l=0,c=r.length;l<c;l++){var p=r[l];if(e)f=r[l?l-1:c-1],h=r[(l+1)%c];else if(l===0||l===c-1){a.push(Ph(r[l]));continue}else f=r[l-1],h=r[l+1];Lh(n,h,f),$i(n,n,t);var _=Ha(p,f),d=Ha(p,h),g=_+d;g!==0&&(_/=g,d/=g),$i(s,n,-_),$i(o,n,d);var y=Xn([],p,s),m=Xn([],p,o);i&&(Vr(y,y,u),$r(y,y,v),Vr(m,m,u),$r(m,m,v)),a.push(y),a.push(m)}return e&&a.push(a.shift()),a}function Ef(r,t,e){var i=t.smooth,a=t.points;if(a&&a.length>=2){if(i){var n=il(a,i,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var s=a.length,o=0;o<(e?s:s-1);o++){var f=n[o*2],h=n[o*2+1],u=a[(o+1)%s];r.bezierCurveTo(f[0],f[1],h[0],h[1],u[0],u[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var o=1,v=a.length;o<v;
16o++)r.lineTo(a[o][0],a[o][1])}e&&r.closePath()}}var al=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),Dn=function(r){Y(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new al},t.prototype.buildPath=function(e,i){Ef(e,i,!0)},t}(J);Dn.prototype.type="polygon";var nl=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),Ff=function(r){Y(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new nl},t.prototype.buildPath=function(e,i){Ef(e,i,!1)},t}(J);Ff.prototype.type="polyline";var sl={},ol=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),Of=function(r){Y(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ol},t.prototype.buildPath=function(e,i){var a,n,s,o;if(this.subPixelOptimize){var f=Ev(sl,i,this.style);a=f.x1,n=f.y1,s=f.x2,o=f.y2}else a=i.x1,n=i.y1,s=i.x2,o=i.y2;var h=i.percent;h!==0&&(e.moveTo(a,n),h<1&&(s=a*(1-h)+s*h,o=n*(1-h)+o*h),e.lineTo(s,o))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t}(J);Of.prototype.type="line";var vt=[],fl=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function Ws(r,t,e){var i=r.cpx2,a=r.cpy2;return i!=null||a!=null?[(e?es:it)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?es:it)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?is:st)(r.x1,r.cpx1,r.x2,t),(e?is:st)(r.y1,r.cpy1,r.y2,t)]}var hl=function(r){Y(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new fl},t.prototype.buildPath=function(e,i){var a=i.x1,n=i.y1,s=i.x2,o=i.y2,f=i.cpx1,h=i.cpy1,u=i.cpx2,v=i.cpy2,l=i.percent;l!==0&&(e.moveTo(a,n),u==null||v==null?(l<1&&(Si(a,f,s,l,vt),f=vt[1],s=vt[2],Si(n,h,o,l,vt),h=vt[1],o=vt[2]),e.quadraticCurveTo(f,h,s,o)):(l<1&&(ar(a,f,u,s,l,vt),f=vt[1],u=vt[2],s=vt[3],ar(n,h,v,o,l,vt),h=vt[1],v=vt[2],o=vt[3]),e.bezierCurveTo(f,h,u,v,s,o)))},t.prototype.pointAt=function(e){return Ws(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=Ws(this.shape,e,!0);return Dh(i,i)},t}(J);hl.prototype.type="bezier-curve";var ul=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),vl=function(r){Y(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ul},t.prototype.buildPath=function(e,i){var a=i.cx,n=i.cy,s=Math.max(i.r,0),o=i.startAngle,f=i.endAngle,h=i.clockwise,u=Math.cos(o),v=Math.sin(o);e.moveTo(u*s+a,v*s+n),e.arc(a,n,s,o,f,!h)},t}(J);vl.prototype.type="arc";var ll=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),a=0;a<e.length;a++)i=i||e[a].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),a=0;a<e.length;a++)e[a].path||e[a].createPathProxy(),e[a].path.setScale(i[0],i[1],e[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var a=i.paths||[],n=0;n<a.length;n++)a[n].buildPath(e,a[n].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),J.prototype.getBoundingRect.call(this)},t}(J),kf=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),cl=function(r){Y(t,r);function t(e,i,a,n,s,o){var f=r.call(this,s)||this;return f.x=e??0,f.y=i??0,f.x2=a??1,f.y2=n??0,f.type="linear",f.global=o||!1,f}return t}(kf),dl=function(r){Y(t,r);function t(e,i,a,n,s){var o=r.call(this,n)||this;return o.x=e??.5,o.y=i??.5,o.r=a??.5,o.type="radial",o.global=s||!1,o}return t}(kf),Ra=Math.min,pl=Math.max,oi=Math.abs,mr=[0,0],wr=[0,0],rt=Uo(),fi=rt.minTv,hi=rt.maxTv,pd=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new N;for(var i=0;i<2;i++)this._axes[i]=new N;
vendor: 1,145 bytes, line 16
16t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,a=this._axes,n=t.x,s=t.y,o=n+t.width,f=s+t.height;if(i[0].set(n,s),i[1].set(o,s),i[2].set(o,f),i[3].set(n,f),e)for(var h=0;h<4;h++)i[h].transform(e);N.sub(a[0],i[1],i[0]),N.sub(a[1],i[3],i[0]),a[0].normalize(),a[1].normalize();for(var h=0;h<2;h++)this._origin[h]=a[h].dot(i[0])},r.prototype.intersect=function(t,e,i){var a=!0,n=!e;return e&&N.set(e,0,0),rt.reset(i,!n),!this._intersectCheckOneSide(this,t,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(t,this,n,-1)&&(a=!1,n)||!n&&!rt.negativeSize&&N.copy(e,a?rt.useDir?rt.dirMinTv:fi:hi),a},r.prototype._intersectCheckOneSide=function(t,e,i,a){for(var n=!0,s=0;s<2;s++){var o=t._axes[s];if(t._getProjMinMaxOnAxis(s,t._corners,mr),t._getProjMinMaxOnAxis(s,e._corners,wr),rt.negativeSize||mr[1]<wr[0]||mr[0]>wr[1]){if(n=!1,rt.negativeSize||i)return n;var f=oi(wr[0]-mr[1]),h=oi(mr[0]-wr[1]);Ra(f,h)>hi.len()&&(f<h?N.scale(hi,o,-f*a):N.scale(hi,o,h*a))}else if(!i){var f=oi(wr[0]-mr[1]),h=oi(mr[0]-wr[1]);(rt.useDir||Ra(f,h)<fi.len())&&((f<h||!rt.bidirectional)&&(N.scale(fi,o,f*a),rt.useDir&&rt.calc
16DirMTV()),(f>=h||!rt.bidirectional)&&(N.scale(fi,o,-h*a),rt.useDir&&rt.calcDirMTV()))}}return n},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var a=this._axes[t],n=this._origin,s=e[0].dot(a)+n[t],o=s,f=s,h=1;h<e.length;h++){var u=e[h].dot(a)+n[t];o=Ra(u,o),f=pl(u,f)}i[0]=o+rt.touchThreshold,i[1]=f-rt.touchThreshold,rt.negativeSize=i[1]<i[0]},r}(),gl=[],gd=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var a=0;a<e.length;a++)this.addDisplayable(e[a],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new z(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var a=this._displayables[i],n=a.getBoundingRect().clone();a.needLocalTransform()&&n.applyTransform(a.getLocalTransform(gl)),e.union(n)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var a=this.transformCoordToLocal(e,i),n=this.getBoundingRect();if(n.contain(a[0],a[1]))for(var s=0;s<this._displayables.length;s++){var o=this._displayables[s];if(o.contain(e,i))return!0}return!1},t}(Ne),_l=Math.round(Math.random()*9),yl=typeof Object.defineProperty=="function",_d=function(){function r(){this._id="__ec_inner_"+_l++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return yl?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}();function Lr(r){return isFinite(r)}function ml(r,t,e){var i=t.x==null?0:t.x,a=t.x2==null?1:t.x2,n=t.y==null?0:t.y,s=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,a=a*e.width+e.x,n=n*e.height+e.y,s=s*e.height+e.y),i=Lr(i)?i:0,a=Lr(a)?a:1,n=Lr(n)?n:0,s=Lr(s)?s:0;var o=r.createLinearGradient(i,n,a,s);return o}function wl(r,t,e){var i=e.width,a=e.height,n=Math.min(i,a),s=t.x==null?.5:t.x,o=t.y==null?.5:t.y,f=t.r==null?.5:t.r;t.global||(s=s*i+e.x,o=o*a+e.y,f=f*n),s=Lr(s)?s:.5,o=Lr(o)?o:.5,f=f>=0&&Lr(f)?f:.5;var h=r.createRadialGradient(s,o,0,s,o,f);return h}function un(r,t,e){for(var i=t.type==="radial"?wl(r,t,e):ml(r,t,e),a=t.colorStops,n=0;n<a.length;n++)i.addColorStop(a[n].offset,a[n].color);return i}function Tl(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function ui(r){return parseInt(r,10)}function jr(r,t,e){var i=["width","height"][t],a=["clientWidth","clientHeight"][t],n=["paddingLeft","paddingTop"][t],s=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var o=document.defaultView.getComputedStyle(r);return(r[a]||ui(o[i])||ui(r.style[i]))-(ui(o[n])||0)-(ui(o[s])||0)|0}function bl(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:be(r)?[r]:ie(r)?r:null}function An(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&bl(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=K(e,function(n){return n/a}),i/=a)}return[e,i]}var Sl=new nr(!0);function xi(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Gs(r){return typeof r=="string"&&r!=="none"}function Ri(r){var t=r.fill;return t!=null&&t!=="none"}function Xs(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}
16else r.fill()}function Us(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function vn(r,t,e){var i=xn(t.image,t.__image,e);if(Wi(i)){var a=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var n=new DOMMatrix;n.translateSelf(t.x||0,t.y||0),n.rotateSelf(0,0,(t.rotation||0)*ci),n.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(n)}return a}}function Cl(r,t,e,i){var a,n=xi(e),s=Ri(e),o=e.strokePercent,f=o<1,h=!t.path;(!t.silent||f)&&h&&t.createPathProxy();var u=t.path||Sl,v=t.__dirty;if(!i){var l=e.fill,c=e.stroke,p=s&&!!l.colorStops,_=n&&!!c.colorStops,d=s&&!!l.image,g=n&&!!c.image,y=void 0,m=void 0,w=void 0,b=void 0,T=void 0;(p||_)&&(T=t.getBoundingRect()),p&&(y=v?un(r,l,T):t.__canvasFillGradient,t.__canvasFillGradient=y),_&&(m=v?un(r,c,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),d&&(w=v||!t.__canvasFillPattern?vn(r,l,t):t.__canvasFillPattern,t.__canvasFillPattern=w),g&&(b=v||!t.__canvasStrokePattern?vn(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),p?r.fillStyle=y:d&&(w?r.fillStyle=w:s=!1),_?r.strokeStyle=m:g&&(b?r.strokeStyle=b:n=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var S,M;r.setLineDash&&e.lineDash&&(a=An(t),S=a[0],M=a[1]);var P=!0;(h||v&Gr)&&(u.setDPR(r.dpr),f?u.setContext(null):(u.setContext(r),P=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),P&&u.rebuildPath(r,f?o:1),S&&(r.setLineDash(S),r.lineDashOffset=M),i||(e.strokeFirst?(n&&Us(r,e),s&&Xs(r,e)):(s&&Xs(r,e),n&&Us(r,e))),S&&r.setLineDash([])}function Ml(r,t,e){var i=t.__image=xn(e.image,t.__image,t,t.onload);if(!(!i||!Wi(i))){var a=e.x||0,n=e.y||0,s=t.getWidth(),o=t.getHeight(),f=i.width/i.height;if(s==null&&o!=null?s=o*f:o==null&&s!=null?o=s/f:s==null&&o==null&&(s=i.width,o=i.height),e.sWidth&&e.sHeight){var h=e.sx||0,u=e.sy||0;r.drawImage(i,h,u,e.sWidth,e.sHeight,a,n,s,o)}else if(e.sx&&e.sy){var h=e.sx,u=e.sy,v=s-h,l=o-u;r.drawImage(i,h,u,v,l,a,n,s,o)}else r.drawImage(i,a,n,s,o)}}function Pl(r,t,e){var i,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||Vt,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var n=void 0,s=void 0;r.setLineDash&&e.lineDash&&(i=An(t),n=i[0],s=i[1]),n&&(r.setLineDash(n),r.lineDashOffset=s),e.strokeFirst?(xi(e)&&r.strokeText(a,e.x,e.y),Ri(e)&&r.fillText(a,e.x,e.y)):(Ri(e)&&r.fillText(a,e.x,e.y),xi(e)&&r.strokeText(a,e.x,e.y)),n&&r.setLineDash([])}}var qs=["shadowBlur","shadowOffsetX","shadowOffsetY"],$s=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Bf(r,t,e,i,a){var n=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){dt(r,a),n=!0;var s=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(s)?Ir.opacity:s}(i||t.blend!==e.blend)&&(n||(dt(r,a),n=!0),r.globalCompositeOperation=t.blend||Ir.blend);for(var o=0;o<qs.length;o++){var f=qs[o];(i||t[f]!==e[f])&&(n||(dt(r,a),n=!0),r[f]=r.dpr*(t[f]||0))}return(i||t.shadowColor!==e.shadowColor)&&(n||(dt(r,a),n=!0),r.shadowColor=t.shadowColor||Ir.shadowColor),n}function Vs(r,t,e,i,a){var n=ke(t,a.inHover),s=i?null:e&&ke(e,a.inHover)||{};if(n===s)return!1;var o=Bf(r,n,s,i,a);if((i||n.fill!==s.fill)&&(o||(dt(r,a),o=!0),Gs(n.fill)&&(r.fillStyle=n.fill)),(i||n.stroke!==s.stroke)&&(o||(dt(r,a),o=!0),Gs(n.stroke)&&(r.strokeStyle=n.stroke)),(i||n.opacity!==s.opacity)&&(o||(dt(r,a),o=!0),r.globalAlpha=n.opacity==null?1:n.opacity),t.hasStroke()){var f=n.lineWidth,h=f/(n.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==h&&(o||(dt(r,a),o=!0),r.lineWidth=h)}for(var u=0;u<$s.length;u++){var v=$s[u],l=v[0];(i||n[l]!==s[l])&&(o||(dt(r,a),o=!0),r[l]=n[l]||v[1])}return o}function Ll(r,t,e,i,a){return Bf(r,ke(t,a.inHover),e&&ke(e,a.inHover),i,a)}function Hf(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function xl(r,t,e){for(var i=!1,a=0;a<r.length;a++){var n=r[a];i=i||n.isZeroArea(),Hf(t,n),t.beginPath(),n.buildPath(t,n.shape),t.clip()}e.allClipped=i}function Rl(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var Zs=1,Ks=2,Qs=3,Js=4;function Dl(r){var t=Ri(r),e=xi(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function dt(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function ke(r,t){return t&&r.__hoverStyle||r.style}function Al(r,t){xr(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function xr(r,t,e,i){var a=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~_t,t.__isRendered=!1;return}var n=t.__clipPaths,s=e.prevElClipPaths,o=!1,f=!1;
16if((!s||Tl(n,s))&&(s&&s.length&&(dt(r,e),r.restore(),f=o=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),n&&n.length&&(dt(r,e),r.save(),xl(n,r,e),o=!0),e.prevElClipPaths=n),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var h=e.prevEl;h||(f=o=!0);var u=t instanceof J&&t.autoBatch&&Dl(t.style);o||Rl(a,h.transform)?(dt(r,e),Hf(r,t)):u||dt(r,e);var v=ke(t,e.inHover);t instanceof J?(e.lastDrawType!==Zs&&(f=!0,e.lastDrawType=Zs),Vs(r,t,h,f,e),(!u||!e.batchFill&&!e.batchStroke)&&r.beginPath(),Cl(r,t,v,u),u&&(e.batchFill=v.fill||"",e.batchStroke=v.stroke||"")):t instanceof ne?(e.lastDrawType!==Qs&&(f=!0,e.lastDrawType=Qs),Vs(r,t,h,f,e),Pl(r,t,v)):t instanceof ue?(e.lastDrawType!==Ks&&(f=!0,e.lastDrawType=Ks),Ll(r,t,h,f,e),Ml(r,t,v)):t.getTemporalDisplayables&&(e.lastDrawType!==Js&&(f=!0,e.lastDrawType=Js),Il(r,t,e)),u&&i&&dt(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Il(r,t,e){var i=t.getDisplayables(),a=t.getTemporalDisplayables();r.save();var n={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},s,o;for(s=t.getCursor(),o=i.length;s<o;s++){var f=i[s];f.beforeBrush&&f.beforeBrush(),f.innerBeforeBrush(),xr(r,f,n,s===o-1),f.innerAfterBrush(),f.afterBrush&&f.afterBrush(),n.prevEl=f}for(var h=0,u=a.length;h<u;h++){var f=a[h];f.beforeBrush&&f.beforeBrush(),f.innerBeforeBrush(),xr(r,f,n,h===u-1),f.innerAfterBrush(),f.afterBrush&&f.afterBrush(),n.prevEl=f}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var El=1e-8;function js(r,t){return Math.abs(r-t)<El}function yd(r,t,e){var i=0,a=r[0];if(!a)return!1;for(var n=1;n<r.length;n++){var s=r[n];i+=qt(a[0],a[1],s[0],s[1],t,e),a=s}var o=r[0];return(!js(a[0],o[0])||!js(a[1],o[1]))&&(i+=qt(a[0],a[1],o[0],o[1],t,e)),i!==0}var Da=Math.sin,Aa=Math.cos,zf=Math.PI,Tr=Math.PI*2,Fl=180/zf,Nf=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,i,a,n,s){this._add("C",t,e,i,a,n,s)},r.prototype.quadraticCurveTo=function(t,e,i,a){this._add("Q",t,e,i,a)},r.prototype.arc=function(t,e,i,a,n,s){this.ellipse(t,e,i,i,0,a,n,s)},r.prototype.ellipse=function(t,e,i,a,n,s,o,f){var h=o-s,u=!f,v=Math.abs(h),l=tr(v-Tr)||(u?h>=Tr:-h>=Tr),c=h>0?h%Tr:h%Tr+Tr,p=!1;l?p=!0:tr(v)?p=!1:p=c>=zf==!!u;var _=t+i*Aa(s),d=e+a*Da(s);this._start&&this._add("M",_,d);var g=Math.round(n*Fl);if(l){var y=1/this._p,m=(u?1:-1)*(Tr-y);this._add("A",i,a,g,1,+u,t+i*Aa(s+m),e+a*Da(s+m)),y>.01&&this._add("A",i,a,g,0,+u,_,d)}else{var w=t+i*Aa(o),b=e+a*Da(o);this._add("A",i,a,g,+p,+u,w,b)}},r.prototype.rect=function(t,e,i,a){this._add("M",t,e),this._add("l",i,0),this._add("l",0,a),this._add("l",-i,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,i,a,n,s,o,f,h){for(var u=[],v=this._p,l=1;l<arguments.length;l++){var c=arguments[l];if(isNaN(c)){this._invalid=!0;return}u.push(Math.round(c*v)/v)}this._d.push(t+u.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}(),In="none",Ol=Math.round;function kl(r){var t=r.fill;return t!=null&&t!==In}function Bl(r){var t=r.stroke;return t!=null&&t!==In}var ln=["lineCap","miterLimit","lineJoin"],Hl=K(ln,function(r){return"stroke-"+r.toLowerCase()});function zl(r,t,e,i){var a=t.opacity==null?1:t.opacity;if(e instanceof ue){r("opacity",a);return}if(kl(t)){var n=Ie(t.fill);r("fill",n.color);var s=t.fillOpacity!=null?t.fillOpacity*n.opacity*a:n.opacity*a;s<1&&r("fill-opacity",s)}else r("fill",In);if(Bl(t)){var o=Ie(t.stroke);r("stroke",o.color);var f=t.strokeNoScale?e.getLineScale():1,h=f?(t.lineWidth||0)/f:0,u=t.strokeOpacity!=null?t.strokeOpacity*o.opacity*a:o.opacity*a,v=t.strokeFirst;if(h!==1&&r("stroke-width",h),v&&r("paint-order",v?"stroke":"fill"),u<1&&r("stroke-opacity",u),t.lineDash){var l=An(e),c=l[0],p=l[1];c&&(p=Ol(p||0),r("stroke-dasharray",c.join(",")),(p||i)&&r("stroke-dashoffset",p))}for(var _=0;_<ln.length;_++){var d=ln[_];if(t[d]!==Li[d]){var g=t[d]||Li[d];g&&r(Hl[_],g)}}}}var Yf="http://www.w3.org/2000/svg",Wf="http://www.w3.org/1999/xlink",Nl="http://www.w3.org/2000/xmlns/",Yl="http://www.w3.org/XML/1998/namespace",to="ecmeta_";function Gf(r){return document.createElementNS(Yf,r)}function tt(r,t,e,i,a){return{tag:r,attrs:e||{},children:i,text:a,key:t}}function Wl(r,t){var e=[];
16if(t)for(var i in t){var a=t[i],n=i;a!==!1&&(a!==!0&&a!=null&&(n+='="'+a+'"'),e.push(n))}return"<"+r+" "+e.join(" ")+">"}function Gl(r){return"</"+r+">"}function En(r,t){t=t||{};var e=t.newline?` 17`:"";function i(a){var n=a.children,s=a.tag,o=a.attrs,f=a.text;return Wl(s,o)+(s!=="style"?Nh(f):f||"")+(n?""+e+K(n,function(h){return i(h)}).join(e)+e:"")+Gl(s)}return i(r)}function Xl(r,t,e){e=e||{};var i=e.newline?` 18`:"",a=" {"+i,n=i+"}",s=K(X(r),function(f){return f+a+K(X(r[f]),function(h){return h+":"+r[f][h]+";"}).join(i)+n}).join(i),o=K(X(t),function(f){return"@keyframes "+f+a+K(X(t[f]),function(h){return h+a+K(X(t[f][h]),function(u){var v=t[f][h][u];return u==="d"&&(v='path("'+v+'")'),u+":"+v+";"}).join(i)+n}).join(i)+n}).join(i);return!s&&!o?"":["<![CDATA[",s,o,"]]>"].join(i)}function cn(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function ro(r,t,e,i){return tt("svg","root",{width:r,height:t,xmlns:Yf,"xmlns:xlink":Wf,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+r+" "+t:!1},e)}var Ul=0;function Xf(){return Ul++}var eo={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"},Sr="transform-origin";function ql(r,t,e){var i=H({},r.shape);H(i,t),r.buildPath(e,i);var a=new Nf;return a.reset(ff(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function $l(r,t){var e=t.originX,i=t.originY;(e||i)&&(r[Sr]=e+"px "+i+"px")}var Vl={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Uf(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function Zl(r,t,e){var i=r.shape.paths,a={},n,s;if(at(i,function(f){var h=cn(e.zrId);h.animation=!0,Xi(f,{},h,!0);var u=h.cssAnims,v=h.cssNodes,l=X(u),c=l.length;if(c){s=l[c-1];var p=u[s];for(var _ in p){var d=p[_];a[_]=a[_]||{d:""},a[_].d+=d.d||""}for(var g in v){var y=v[g].animation;y.indexOf(s)>=0&&(n=y)}}}),!!n){t.d=!1;var o=Uf(a,e);return n.replace(s,o)}}function io(r){return Wt(r)?eo[r]?"cubic-bezier("+eo[r]+")":Cn(r)?r:"":""}function Xi(r,t,e,i){var a=r.animators,n=a.length,s=[];if(r instanceof ll){var o=Zl(r,t,e);if(o)s.push(o);else if(!n)return}else if(!n)return;for(var f={},h=0;h<n;h++){var u=a[h],v=[u.getMaxTime()/1e3+"s"],l=io(u.getClip().easing),c=u.getDelay();l?v.push(l):v.push("linear"),c&&v.push(c/1e3+"s"),u.getLoop()&&v.push("infinite");var p=v.join(" ");f[p]=f[p]||[p,[]],f[p][1].push(u)}function _(y){var m=y[1],w=m.length,b={},T={},C={},S="animation-timing-function";function M(ot,j,Z){for(var A=ot.getTracks(),O=ot.getMaxTime(),Gt=0;Gt<A.length;Gt++){var ut=A[Gt];if(ut.needsAnimate()){var Hn=ut.keyframes,Ye=ut.propName;if(Z&&(Ye=Z(Ye)),Ye)for(var qi=0;qi<Hn.length;qi++){var We=Hn[qi],Ge=Math.round(We.time/O*100)+"%",zn=io(We.easing),Nn=We.rawValue;(Wt(Nn)||be(Nn))&&(j[Ge]=j[Ge]||{},j[Ge][Ye]=We.rawValue,zn&&(j[Ge][S]=zn))}}}}for(var P=0;P<w;P++){var R=m[P],D=R.targetName;D?D==="shape"&&M(R,T):!i&&M(R,b)}for(var L in b){var x={};cf(x,r),H(x,b[L]);var I=hf(x),E=b[L][S];C[L]=I?{transform:I}:{},$l(C[L],x),E&&(C[L][S]=E)}var F,k=!0;for(var L in T){C[L]=C[L]||{};var et=!F,E=T[L][S];et&&(F=new nr);var G=F.len();F.reset(),C[L].d=ql(r,T[L],F);var $=F.len();if(!et&&G!==$){k=!1;break}E&&(C[L][S]=E)}if(!k)for(var L in C)delete C[L].d;if(!i)for(var P=0;P<w;P++){var R=m[P],D=R.targetName;D==="style"&&M(R,C,function(A){return Vl[A]})}for(var W=X(C),U=!0,V,P=1;P<W.length;P++){var ht=W[P-1],yt=W[P];if(C[ht][Sr]!==C[yt][Sr]){U=!1;break}V=C[ht][Sr]}if(U&&V){for(var L in C)C[L][Sr]&&delete C[L][Sr];t[Sr]=V}if(ka(W,function(ot){return X(C[ot]).length>0}).length){var mt=Uf(C,e);return mt+" "+y[0]+" both"}}for(var d in f){var o=_(f[d]);o&&s.push(o)}if(s.length){var g=e.zrId+"-cls-"+Xf();e.cssNodes["."+g]={animation:s.join(",")},t.class=g}}function Kl(r,t,e){if(!r.ignore)if(r.isSilent()){var i={"pointer-events":"none"};ao(i,t,e)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},n=a.fill;if(!n){var s=r.style&&r.style.fill,o=r.states.select&&r.states.select.style&&r.states.select.style.fill,f=r.currentStates.indexOf("select")>=0&&o||s;f&&(n=mu(f))}var h=a.lineWidth;if(h){var u=!a.strokeNoScale&&r.transform?r.transform[0]:1;h=h/u}var i={cursor:"pointer"};n&&(i.fill=n),a.stroke&&(i.stroke=a.stroke),h&&(i["stroke-width"]=h),ao(i,t,e)}}function ao(r,t,e,i){var a=JSON.stringify(r),n=e.cssStyleCache[a];n||(n=e.zrId+"-cls-"+Xf(),e.cssStyleCache[a]=n,e.cssNodes["."+n+":hover"]=r),t.class=t.class?t.class+" "+n:n}var Be=Math.round;function qf(r){return r&&Wt(r.src)}function $f(r){return r&&rr(r.toDataURL)}function Fn(r,t,e,i){zl(function(a,n){var s=a==="fill"||a==="stroke";s&&of(n)?Zf(t,r,a,i):s&&Mn(n)?Kf(e,r,a,i):r[a]=n,s&&i.ssr&&n==="none"&&(r["pointer-events"]="visible")},t,e,!1),ic(e,r,i)}function On(r,t){var e=Ju(t);e&&(e.each(function(i,a){i!=null&&(r[(to+a).toLowerCase()]=i+"")}),t.isSilent()&&(r[to+"silent"]="true"))}function no(r){return tr(r[0]-1)&&tr(r[1])&&tr(r[2])&&tr(r[3]-1)}function Ql(r){return tr(r[4])&&tr(r[5])}function kn(r,t,e){if(t&&!(Ql(t)&&no(t))){var i=1e4;r.transform=no(t)?"translate("+Be(t[4]*i)/i+" "+Be(t[5]*i)/i+")":wu(t)}}function so(r,t,e){for(var i=r.points,a=[],n=0;n<i.length;n++)a.push(Be(i[n][0]*e)/e),a.push(Be(i[n][1]*e)/e);t.points=a.join(" ")}function oo(r){return!r.smooth}function Jl(r){var t=K(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,i,a){for(var n=0;n<t.length;n++){var s=t[n],o=e[s[0]];o!=null&&(i[s[1]]=Be(o*a)/a)}}}var jl={circle:[Jl(["cx","cy","r"])],polyline:[so,oo],polygon:[so,oo]};function tc(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function Vf(r,t){var e=r.style,i=r.shape,a=jl[r.type],n={}
18,s=t.animation,o="path",f=r.style.strokePercent,h=t.compress&&ff(r)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](i))&&!(s&&tc(r))&&!(f<1)){o=r.type;var u=Math.pow(10,h);a[0](i,n,u)}else{var v=!r.path||r.shapeChanged();r.path||r.createPathProxy();var l=r.path;v&&(l.beginPath(),r.buildPath(l,r.shape),r.pathUpdated());var c=l.getVersion(),p=r,_=p.__svgPathBuilder;(p.__svgPathVersion!==c||!_||f!==p.__svgPathStrokePercent)&&(_||(_=p.__svgPathBuilder=new Nf),_.reset(h),l.rebuildPath(_,f),_.generateStr(),p.__svgPathVersion=c,p.__svgPathStrokePercent=f),n.d=_.getStr()}return kn(n,r.transform),Fn(n,e,r,t),On(n,r),t.animation&&Xi(r,n,t),t.emphasis&&Kl(r,n,t),tt(o,r.id+"",n)}function rc(r,t){var e=r.style,i=e.image;if(i&&!Wt(i)&&(qf(i)?i=i.src:$f(i)&&(i=i.toDataURL())),!!i){var a=e.x||0,n=e.y||0,s=e.width,o=e.height,f={href:i,width:s,height:o};return a&&(f.x=a),n&&(f.y=n),kn(f,r.transform),Fn(f,e,r,t),On(f,r),t.animation&&Xi(r,f,t),tt("image",r.id+"",f)}}function ec(r,t){var e=r.style,i=e.text;if(i!=null&&(i+=""),!(!i||isNaN(e.x)||isNaN(e.y))){var a=e.font||Vt,n=e.x||0,s=bu(e.y||0,ze(a),e.textBaseline),o=Tu[e.textAlign]||e.textAlign,f={"dominant-baseline":"central","text-anchor":o};if(Cf(e)){var h="",u=e.fontStyle,v=Sf(e.fontSize);if(!parseFloat(v))return;var l=e.fontFamily||Ao,c=e.fontWeight;h+="font-size:"+v+";font-family:"+l+";",u&&u!=="normal"&&(h+="font-style:"+u+";"),c&&c!=="normal"&&(h+="font-weight:"+c+";"),f.style=h}else f.style="font: "+a;return i.match(/\s/)&&(f["xml:space"]="preserve"),n&&(f.x=n),s&&(f.y=s),kn(f,r.transform),Fn(f,e,r,t),On(f,r),t.animation&&Xi(r,f,t),tt("text",r.id+"",f,void 0,i)}}function fo(r,t){if(r instanceof J)return Vf(r,t);if(r instanceof ue)return rc(r,t);if(r instanceof ne)return ec(r,t)}function ic(r,t,e){var i=r.style;if(Su(i)){var a=Cu(r),n=e.shadowCache,s=n[a];if(!s){var o=r.getGlobalScale(),f=o[0],h=o[1];if(!f||!h)return;var u=i.shadowOffsetX||0,v=i.shadowOffsetY||0,l=i.shadowBlur,c=Ie(i.shadowColor),p=c.opacity,_=c.color,d=l/2/f,g=l/2/h,y=d+" "+g;s=e.zrId+"-s"+e.shadowIdx++,e.defs[s]=tt("filter",s,{id:s,x:"-100%",y:"-100%",width:"300%",height:"300%"},[tt("feDropShadow","",{dx:u/f,dy:v/h,stdDeviation:y,"flood-color":_,"flood-opacity":p})]),n[a]=s}t.filter=Ni(s)}}function Zf(r,t,e,i){var a=r[e],n,s={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(nf(a))n="linearGradient",s.x1=a.x,s.y1=a.y,s.x2=a.x2,s.y2=a.y2;else if(sf(a))n="radialGradient",s.cx=Q(a.x,.5),s.cy=Q(a.y,.5),s.r=Q(a.r,.5);else return;for(var o=a.colorStops,f=[],h=0,u=o.length;h<u;++h){var v=$a(o[h].offset)*100+"%",l=o[h].color,c=Ie(l),p=c.color,_=c.opacity,d={offset:v};d["stop-color"]=p,_<1&&(d["stop-opacity"]=_),f.push(tt("stop",h+"",d))}var g=tt(n,"",s,f),y=En(g),m=i.gradientCache,w=m[y];w||(w=i.zrId+"-g"+i.gradientIdx++,m[y]=w,s.id=w,i.defs[w]=tt(n,w,s,f)),t[e]=Ni(w)}function Kf(r,t,e,i){var a=r.style[e],n=r.getBoundingRect(),s={},o=a.repeat,f=o==="no-repeat",h=o==="repeat-x",u=o==="repeat-y",v;if(af(a)){var l=a.imageWidth,c=a.imageHeight,p=void 0,_=a.image;if(Wt(_)?p=_:qf(_)?p=_.src:$f(_)&&(p=_.toDataURL()),typeof Image>"u"){var d="Image width/height must been given explictly in svg-ssr renderer.";Gn(l,d),Gn(c,d)}else if(l==null||c==null){var g=function(P,R){if(P){var D=P.elm,L=l||R.width,x=c||R.height;P.tag==="pattern"&&(h?(x=1,L/=n.width):u&&(L=1,x/=n.height)),P.attrs.width=L,P.attrs.height=x,D&&(D.setAttribute("width",L),D.setAttribute("height",x))}},y=xn(p,null,r,function(P){f||g(T,P),g(v,P)});y&&y.width&&y.height&&(l=l||y.width,c=c||y.height)}v=tt("image","img",{href:p,width:l,height:c}),s.width=l,s.height=c}else a.svgElement&&(v=Fr(a.svgElement),s.width=a.svgWidth,s.height=a.svgHeight);if(v){var m,w;f?m=w=1:h?(w=1,m=s.width/n.width):u?(m=1,w=s.height/n.height):s.patternUnits="userSpaceOnUse",m!=null&&!isNaN(m)&&(s.width=m),w!=null&&!isNaN(w)&&(s.height=w);var b=hf(a);b&&(s.patternTransform=b);var T=tt("pattern","",s,[v]),C=En(T),S=i.patternCache,M=S[C];M||(M=i.zrId+"-p"+i.patternIdx++,S[C]=M,s.id=M,T=i.defs[M]=tt("pattern",M,s,[v])),t[e]=Ni(M)}}function ac(r,t,e){var i=e.clipPathCache,a=e.defs,n=i[r.id];if(!n){n=e.zrId+"-c"+e.clipPathIdx++;var s={id:n};i[r.id]=n,a[n]=tt("clipPath",n,s,[Vf(r,e)])}t["clip-path"]=Ni(n)}function ho(r){return document.createTextNode(r)}function Mr(r,t,e){r.insertBefore(t,e)}function uo(r,t){r.removeChild(t)}function vo(r,t){r.appendChild(t)}function Qf(r){return r.parentNode}function Jf(r){return r.nextSibling}function Ia(r,t){r.textContent=t}var lo=58,nc=120,sc=tt("","");function dn(r){return r===void 0}function kt(r){return r!==void 0}function oc(r,t,e){for(var i={},a=t;a<=e;++a){var n=r[a].key;n!==void 0&&(i[n]=a)}return i}function Te(r,t){var e=r.key===t.key,i=r.tag===t.tag;return i&&e}function He(r){var t,e=r.children,i=r.tag;if(kt(i)){var a=r.elm=Gf(i);if(Bn(sc,r),ie(e))for(t=0;t<e.length;++t){var n=e[t];n!=null&&vo(a,He(n))}else kt(r.text)&&!$t(r.text)&&vo(a,ho(r.text))}else r.elm=ho(r.text);return r.elm}function jf(r,t,e,i,a){for(;i<=a;++i){var n=e[i];n!=null&&Mr(r,He(n),t)}}function Di(r,t,e,i){for(;e<=i;++e){var a=t[e];if(a!=null)if(kt(a.tag)){var n=Qf(a.elm);uo(n,a.elm)}else uo(r,a.elm)}}function Bn(r,t){var e,i=t.elm,a=r&&r.attrs||{},n=t.attrs||{};if(a!==n){for(e in n){var s=n[e],o=a[e];o!==s&&(s===!0?i.setAttribute(e,""):s===!1?i.removeAttribute(e):e==="style"?i.style.cssText=s:e.charCodeAt(0)!==nc?i.setAttribute(e,s):e==="xmlns:xlink"||e==="xmlns"?i.setAttributeNS(Nl,e,s):e.charCodeAt(3)===lo?i.setAttributeNS(Yl,e,s):e.charCodeAt(5)===lo?i.setAttributeNS(Wf,e,s):i.setAttribute(e,s))}for(e in a)e in n||i.removeAttribute(e)}}function fc(r,t,e){for(var i=0,a=0,n=t.length-1,s=t[0],o=t[n],f=e.length-1,h=e[0],u=e[f],v,l,c,p;i<=n&&a<=f;)s==null?s=t[++i]:o==null?o=t[--n]:h==null?h=e[++a]:u==null?u=e[--f]:Te(s,h)?(Xr(s,h),s=t[++i],h=e[++a]):Te(o,u)?(Xr(o,u),o=t[--n],u=e[--f]):Te(s,u)?(Xr(s,u),Mr(r,s.elm,Jf(o.elm)),s=t[++i],u=e[--f]):Te(o,h)?(Xr(o,h),Mr(r,o.elm,s.elm),o=t[--n],h=e[++a]):(dn(v)&&(v=oc(t,i,n)),l=v[h.key],dn(l)?Mr(r,He(h),s.elm):(c=t[l],c.tag!==h.tag?Mr(r,He(h),s.elm):(Xr(c,h),t[l]=void 0,Mr(r,c.elm,s.elm))),h=e[++a]);(i<=n||a<=f)&&(i>n?(p=e[f+1]==null?null:e[f+1].elm,jf(r,p,e,a,f)):Di(r,t,i,n))}function Xr(r,t){var e=t.elm=r.elm,i=r.children,a=t.children;r!==t&&(Bn(r,t),dn(t.text)?kt(i)&&kt(a)?i!==a&&fc(e,i,a):kt(a)?(kt(r.text)&&Ia(e,""),jf(e,null,a,0,a.length-1)):kt(i)?Di(e,i,0,i.length-1):kt(r.text)&&Ia(e,""):r.text!==t.text&&(kt(i)&&Di(e,i,0,i.length-1),Ia(e,t.text)))}function hc(r,t){if(Te(r,t))Xr(r,t);else{var e=r.elm,i=Qf(e);He(t),i!==null&&(Mr(i,t.elm,Jf(e)),Di(i,[r],0,0))}return t}
18var uc=0,md=function(){function r(t,e,i){if(this.type="svg",this.refreshHover=co(),this.configLayer=co(),this.storage=e,this._opts=i=H({},i),this.root=t,this._id="zr"+uc++,this._oldVNode=ro(i.width,i.height),t&&!i.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=Gf("svg");Bn(null,this._oldVNode),a.appendChild(n),t.appendChild(a)}this.resize(i.width,i.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",hc(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return fo(t,cn(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),i=this._width,a=this._height,n=cn(this._id);n.animation=t.animation,n.willUpdate=t.willUpdate,n.compress=t.compress,n.emphasis=t.emphasis,n.ssr=this._opts.ssr;var s=[],o=this._bgVNode=vc(i,a,this._backgroundColor,n);o&&s.push(o);var f=t.compress?null:this._mainVNode=tt("g","main",{},[]);this._paintList(e,n,f?f.children:s),f&&s.push(f);var h=K(X(n.defs),function(l){return n.defs[l]});if(h.length&&s.push(tt("defs","defs",{},h)),t.animation){var u=Xl(n.cssNodes,n.cssAnims,{newline:!0});if(u){var v=tt("style","stl",{},[],u);s.push(v)}}return ro(i,a,s,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},En(this.renderToVNode({animation:Q(t.cssAnimation,!0),emphasis:Q(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Q(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,i){for(var a=t.length,n=[],s=0,o,f,h=0,u=0;u<a;u++){var v=t[u];if(!v.invisible){var l=v.__clipPaths,c=l&&l.length||0,p=f&&f.length||0,_=void 0;for(_=Math.max(c-1,p-1);_>=0&&!(l&&f&&l[_]===f[_]);_--);for(var d=p-1;d>_;d--)s--,o=n[s-1];for(var g=_+1;g<c;g++){var y={};ac(l[g],y,e);var m=tt("g","clip-g-"+h++,y,[]);(o?o.children:i).push(m),n[s++]=m,o=m}f=l;var w=fo(v,e);w&&(o?o.children:i).push(w)}}},r.prototype.resize=function(t,e){var i=this._opts,a=this.root,n=this._viewport;if(t!=null&&(i.width=t),e!=null&&(i.height=e),a&&n&&(n.style.display="none",t=jr(a,0,i),e=jr(a,1,i),n.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,n){var s=n.style;s.width=t+"px",s.height=e+"px"}if(Mn(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute("width",t),o.setAttribute("height",e));var f=this._bgVNode&&this._bgVNode.elm;f&&(f.setAttribute("width",t),f.setAttribute("height",e))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(t){var e=this.renderToString(),i="data:image/svg+xml;";return t?(e=Pu(e),e&&i+"base64,"+e):i+"charset=UTF-8,"+encodeURIComponent(e)},r}();function co(r){return function(){}}function vc(r,t,e,i){var a;if(e&&e!=="none")if(a=tt("rect","bg",{width:r,height:t,x:"0",y:"0"}),of(e))Zf({fill:e},a.attrs,"fill",i);else if(Mn(e))Kf({style:{fill:e},dirty:Rr,getBoundingRect:function(){return{width:r,height:t}}},a.attrs,"fill",i);else{var n=Ie(e),s=n.color,o=n.opacity;a.attrs.fill=s,o<1&&(a.attrs["fill-opacity"]=o)}return a}function po(r,t,e){var i=Er.createCanvas(),a=t.getWidth(),n=t.getHeight(),s=i.style;return s&&(s.position="absolute",s.left="0",s.top="0",s.width=a+"px",s.height=n+"px",i.setAttribute("data-zr-dom-id",r)),i.width=a*e,i.height=n*e,i}var Ea=function(r){Y(t,r);function t(e,i,a){var n=r.call(this)||this;
18n.motionBlur=!1,n.lastFrameAlpha=.7,n.dpr=1,n.virtual=!1,n.config={},n.incremental=!1,n.zlevel=0,n.maxRepaintRectCount=5,n.__dirty=!0,n.__firstTimePaint=!0,n.__used=!1,n.__drawIndex=0,n.__startIndex=0,n.__endIndex=0,n.__prevStartIndex=null,n.__prevEndIndex=null;var s;a=a||Pi,typeof e=="string"?s=po(e,i,a):$t(e)&&(s=e,e=s.id),n.id=e,n.dom=s;var o=s.style;return o&&(zo(s),s.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),n.painter=i,n.dpr=a,n}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=po("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,a,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var s=[],o=this.maxRepaintRectCount,f=!1,h=new z(0,0,0,0);function u(y){if(!(!y.isFinite()||y.isZero()))if(s.length===0){var m=new z(0,0,0,0);m.copy(y),s.push(m)}else{for(var w=!1,b=1/0,T=0,C=0;C<s.length;++C){var S=s[C];if(S.intersect(y)){var M=new z(0,0,0,0);M.copy(S),M.union(y),s[C]=M,w=!0;break}else if(f){h.copy(y),h.union(S);var P=y.width*y.height,R=S.width*S.height,D=h.width*h.height,L=D-P-R;L<b&&(b=L,T=C)}}if(f&&(s[T].union(y),w=!0),!w){var m=new z(0,0,0,0);m.copy(y),s.push(m)}f||(f=s.length>=o)}}for(var v=this.__startIndex;v<this.__endIndex;++v){var l=e[v];if(l){var c=l.shouldBePainted(a,n,!0,!0),p=l.__isRendered&&(l.__dirty&_t||!c)?l.getPrevPaintRect():null;p&&u(p);var _=c&&(l.__dirty&_t||!l.__isRendered)?l.getPaintRect():null;_&&u(_)}}for(var v=this.__prevStartIndex;v<this.__prevEndIndex;++v){var l=i[v],c=l&&l.shouldBePainted(a,n,!0,!0);if(l&&(!c||!l.__zr)&&l.__isRendered){var p=l.getPrevPaintRect();p&&u(p)}}var d;do{d=!1;for(var v=0;v<s.length;){if(s[v].isZero()){s.splice(v,1);continue}for(var g=v+1;g<s.length;)s[v].intersect(s[g])?(d=!0,s[v].union(s[g]),s.splice(g,1)):g++;v++}}while(d);return this._paintRects=s,s},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var a=this.dpr,n=this.dom,s=n.style,o=this.domBack;s&&(s.width=e+"px",s.height=i+"px"),n.width=e*a,n.height=i*a,o&&(o.width=e*a,o.height=i*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(e,i,a){var n=this.dom,s=this.ctx,o=n.width,f=n.height;i=i||this.clearColor;var h=this.motionBlur&&!e,u=this.lastFrameAlpha,v=this.dpr,l=this;h&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,o/v,f/v));var c=this.domBack;function p(_,d,g,y){if(s.clearRect(_,d,g,y),i&&i!=="transparent"){var m=void 0;if(Hi(i)){var w=i.global||i.__width===g&&i.__height===y;m=w&&i.__canvasGradient||un(s,i,{x:0,y:0,width:g,height:y}),i.__canvasGradient=m,i.__width=g,i.__height=y}else wh(i)&&(i.scaleX=i.scaleX||v,i.scaleY=i.scaleY||v,m=vn(s,i,{dirty:function(){l.setUnpainted(),l.painter.refresh()}}));s.save(),s.fillStyle=m||i,s.fillRect(_,d,g,y),s.restore()}h&&(s.save(),s.globalAlpha=u,s.drawImage(c,_,d,g,y),s.restore())}!a||h?p(0,0,o,f):a.length&&at(a,function(_){p(_.x*v,_.y*v,_.width*v,_.height*v)})},t}(fe),go=1e5,br=314159,vi=.01,lc=.001;function cc(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function dc(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var wd=function(){function r(t,e,i,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var n=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=H({},i||{}),this.dpr=i.devicePixelRatio||Pi,this._singleCanvas=n,this.root=t;var s=t.style;s&&(zo(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var f=this._layers;if(n){var u=t,v=u.width,l=u.height;i.width!=null&&(v=i.width),i.height!=null&&(l=i.height),this.dpr=i.devicePixelRatio||1,u.width=v*this.dpr,u.height=l*this.dpr,this._width=v,this._height=l;var c=new Ea(u,this,this.dpr);
18c.__builtin__=!0,c.initContext(),f[br]=c,c.zlevel=br,o.push(br),this._domRoot=t}else{this._width=jr(t,0,i),this._height=jr(t,1,i);var h=this._domRoot=dc(this._width,this._height);t.appendChild(h)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var n=0;n<a.length;n++){var s=a[n],o=this._layers[s];if(!o.__builtin__&&o.refresh){var f=n===0?this._backgroundColor:null;o.refresh(f)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),!!e){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},n,s=0;s<e;s++){var o=t[s];o.__inHover&&(i||(i=this._hoverlayer=this.getLayer(go)),n||(n=i.ctx,n.save()),xr(n,o,a,s===e-1))}n&&n.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(go)},r.prototype.paintOne=function(t,e){Al(t,e)},r.prototype._paintList=function(t,e,i,a){if(this._redrawId===a){i=i||!1,this._updateLayerStatus(t);var n=this._doPaintList(t,e,i),s=n.finished,o=n.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),s)this.eachLayer(function(h){h.afterBrush&&h.afterBrush()});else{var f=this;Ti(function(){f._paintList(t,e,i,a)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(br).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,e,i)})},r.prototype._doPaintList=function(t,e,i){for(var a=this,n=[],s=this._opts.useDirtyRect,o=0;o<this._zlevelList.length;o++){var f=this._zlevelList[o],h=this._layers[f];h.__builtin__&&h!==this._hoverlayer&&(h.__dirty||i)&&n.push(h)}for(var u=!0,v=!1,l=function(_){var d=n[_],g=d.ctx,y=s&&d.createRepaintRects(t,e,c._width,c._height),m=i?d.__startIndex:d.__drawIndex,w=!i&&d.incremental&&Date.now,b=w&&Date.now(),T=d.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(d.__startIndex===d.__endIndex)d.clear(!1,T,y);else if(m===d.__startIndex){var C=t[m];(!C.incremental||!C.notClear||i)&&d.clear(!1,T,y)}m===-1&&(console.error("For some unknown reason. drawIndex is -1"),m=d.__startIndex);var S,M=function(L){var x={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(S=m;S<d.__endIndex;S++){var I=t[S];if(I.__inHover&&(v=!0),a._doPaintEl(I,d,s,L,x,S===d.__endIndex-1),w){var E=Date.now()-b;if(E>15)break}}x.prevElClipPaths&&g.restore()};if(y)if(y.length===0)S=d.__endIndex;else for(var P=c.dpr,R=0;R<y.length;++R){var D=y[R];g.save(),g.beginPath(),g.rect(D.x*P,D.y*P,D.width*P,D.height*P),g.clip(),M(D),g.restore()}else g.save(),M(),g.restore();d.__drawIndex=S,d.__drawIndex<d.__endIndex&&(u=!1)},c=this,p=0;p<n.length;p++)l(p);return q.wxa&&at(this._layers,function(_){_&&_.ctx&&_.ctx.draw&&_.ctx.draw()}),{finished:u,needsRefreshHover:v}},r.prototype._doPaintEl=function(t,e,i,a,n,s){var o=e.ctx;if(i){var f=t.getPaintRect();(!a||f&&f.intersect(a))&&(xr(o,t,n,s),t.setPrevPaintRect(f))}else xr(o,t,n,s)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=br);var i=this._layers[t];return i||(i=new Ea("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?Ur(i,this._layerConfig[t],!0):this._layerConfig[t-vi]&&Ur(i,this._layerConfig[t-vi],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},r.prototype.insertLayer=function(t,e){var i=this._layers,a=this._zlevelList,n=a.length,s=this._domRoot,o=null,f=-1;if(!i[t]&&cc(e)){if(n>0&&t>a[0]){for(f=0;f<n-1&&!(a[f]<t&&a[f+1]>t);f++);o=i[a[f]]}if(a.splice(f+1,0,t),i[t]=e,!e.virtual)if(o){var h=o.dom;h.nextSibling?s.insertBefore(e.dom,h.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,a=0;a<i.length;a++){var n=i[a];t.call(e,this._layers[n],n)}},r.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,a=0;a<i.length;a++){var n=i[a],s=this._layers[n];s.__builtin__&&t.call(e,s,n)}},r.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,a=0;a<i.length;a++){var n=i[a],s=this._layers[n];s.__builtin__||t.call(e,s,n)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(v,l){v.__dirty=v.__used=!1});function e(v){n&&(n.__endIndex!==v&&(n.__dirty=!0),n.__endIndex=v)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var a=t[i];if(a.zlevel!==t[i-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var n=null,s=0,o,f;for(f=0;f<t.length;f++){var a=t[f],h=a.zlevel,u=void 0;o!==h&&(o=h,s=0),a.incremental?(u=this.getLayer(h+lc,this._needsManuallyCompositing),u.incremental=!0,s=1):u=this.getLayer(h+(s>0?vi:0),this._needsManuallyCompositing),u.__builtin__||bn("ZLevel "+h+" has been used by unkown layer "+u.id),u!==n&&(u.__used=!0,u.__startIndex!==f&&(u.__dirty=!0),u.__startIndex=f,u.incremental?u.__drawIndex=-1:u.__drawIndex=f,e(f),n=u),a.__dirty&_t&&!a.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=f))}e(f),this.eachBuiltinLayer(function(v,l){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()}
18,r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,at(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?Ur(i[t],e,!0):i[t]=e;for(var a=0;a<this._zlevelList.length;a++){var n=this._zlevelList[a];if(n===t||n===t+vi){var s=this._layers[n];Ur(s,i[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,a=e[t];a&&(a.dom.parentNode.removeChild(a.dom),delete e[t],i.splice(Bt(i,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var a=this._opts,n=this.root;if(t!=null&&(a.width=t),e!=null&&(a.height=e),t=jr(n,0,a),e=jr(n,1,a),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var s in this._layers)this._layers.hasOwnProperty(s)&&this._layers[s].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(br).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[br].dom;var e=new Ea("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=e.dom.width,n=e.dom.height;this.eachLayer(function(v){v.__builtin__?i.drawImage(v.dom,0,0,a,n):v.renderToCanvas&&(i.save(),v.renderToCanvas(i),i.restore())})}else for(var s={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),f=0,h=o.length;f<h;f++){var u=o[f];xr(i,u,s,f===h-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function pc(r){if(Wt(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var Fa,Ai={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"},_o=X(Ai),Ii={"alignment-baseline":"textBaseline","stop-color":"stopColor"},yo=X(Ii),gc=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var i=pc(t);this._defsUsePending=[];var a=new Cr;this._root=a;var n=[],s=i.getAttribute("viewBox")||"",o=parseFloat(i.getAttribute("width")||e.width),f=parseFloat(i.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(f)&&(f=null),pt(i,a,null,!0,!1);for(var h=i.firstChild;h;)this._parseNode(h,a,n,null,!1,!1),h=h.nextSibling;mc(this._defs,this._defsUsePending),this._defsUsePending=[];var u,v;if(s){var l=Ui(s);l.length>=4&&(u={x:parseFloat(l[0]||0),y:parseFloat(l[1]||0),width:parseFloat(l[2]),height:parseFloat(l[3])})}if(u&&o!=null&&f!=null&&(v=Cc(u,{x:0,y:0,width:o,height:f}),!e.ignoreViewBox)){var c=a;a=new Cr,a.add(c),c.scaleX=c.scaleY=v.scale,c.x=v.x,c.y=v.y}return!e.ignoreRootClip&&o!=null&&f!=null&&a.setClipPath(new Oe({shape:{x:0,y:0,width:o,height:f}})),{root:a,width:o,height:f,viewBoxRect:u,viewBoxTransform:v,named:n}},r.prototype._parseNode=function(t,e,i,a,n,s){var o=t.nodeName.toLowerCase(),f,h=a;if(o==="defs"&&(n=!0),o==="text"&&(s=!0),o==="defs"||o==="switch")f=e;else{if(!n){var u=Fa[o];if(u&&mi(Fa,o)){f=u.call(this,t,e);var v=t.getAttribute("name");if(v){var l={name:v,namedFrom:null,svgNodeTagLower:o,el:f};i.push(l),o==="g"&&(h=l)}else a&&i.push({name:a.name,namedFrom:a,svgNodeTagLower:o,el:f});e.add(f)}}var c=mo[o];if(c&&mi(mo,o)){var p=c.call(this,t),_=t.getAttribute("id");_&&(this._defs[_]=p)}}if(f&&f.isGroup)for(var d=t.firstChild;d;)d.nodeType===1?this._parseNode(d,f,i,h,n,s):d.nodeType===3&&s&&this._parseText(d,f),d=d.nextSibling},r.prototype._parseText=function(t,e){var i=new ne({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});wt(e,i),pt(t,i,this._defsUsePending,!1,!1),_c(i,e);var a=i.style,n=a.fontSize;n&&n<9&&(a.fontSize=9,i.scaleX*=n/9,i.scaleY*=n/9);var s=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=s;
vendor: 1,250 bytes, line 18
18var o=i.getBoundingRect();return this._textX+=o.width,e.add(i),i},r.internalField=function(){Fa={g:function(t,e){var i=new Cr;return wt(e,i),pt(t,i,this._defsUsePending,!1,!1),i},rect:function(t,e){var i=new Oe;return wt(e,i),pt(t,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i},circle:function(t,e){var i=new Df;return wt(e,i),pt(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),i.silent=!0,i},line:function(t,e){var i=new Of;return wt(e,i),pt(t,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i},ellipse:function(t,e){var i=new Af;return wt(e,i),pt(t,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i}
18,polygon:function(t,e){var i=t.getAttribute("points"),a;i&&(a=bo(i));var n=new Dn({shape:{points:a||[]},silent:!0});return wt(e,n),pt(t,n,this._defsUsePending,!1,!1),n},polyline:function(t,e){var i=t.getAttribute("points"),a;i&&(a=bo(i));var n=new Ff({shape:{points:a||[]},silent:!0});return wt(e,n),pt(t,n,this._defsUsePending,!1,!1),n},image:function(t,e){var i=new ue;return wt(e,i),pt(t,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i},text:function(t,e){var i=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",n=t.getAttribute("dx")||"0",s=t.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(n),this._textY=parseFloat(a)+parseFloat(s);var o=new Cr;return wt(e,o),pt(t,o,this._defsUsePending,!1,!0),o},tspan:function(t,e){var i=t.getAttribute("x"),a=t.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),a!=null&&(this._textY=parseFloat(a));var n=t.getAttribute("dx")||"0",s=t.getAttribute("dy")||"0",o=new Cr;return wt(e,o),pt(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(s),o},path:function(t,e){var i=t.getAttribute("d")||"",a=$v(i);return wt(e,a),pt(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),mo={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),i=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),n=new cl(t,e,i,a);return wo(r,n),To(r,n),n},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),i=parseInt(r.getAttribute("r")||"0",10),a=new dl(t,e,i);return wo(r,a),To(r,a),a}};function wo(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function To(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var i=e.getAttribute("offset"),a=void 0;i&&i.indexOf("%")>0?a=parseInt(i,10)/100:i?a=parseFloat(i):a=0;var n={};th(e,n,n);var s=n.stopColor||e.getAttribute("stop-color")||"#000000",o=n.stopOpacity||e.getAttribute("stop-opacity");if(o){var f=Ct(s),h=f&&f[3];h&&(f[3]*=ir(o),s=he(f,"rgba"))}t.colorStops.push({offset:a,color:s})}e=e.nextSibling}}function wt(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Mt(t.__inheritedStyle,r.__inheritedStyle))}function bo(r){for(var t=Ui(r),e=[],i=0;i<t.length;i+=2){var a=parseFloat(t[i]),n=parseFloat(t[i+1]);e.push([a,n])}return e}function pt(r,t,e,i,a){var n=t,s=n.__inheritedStyle=n.__inheritedStyle||{},o={};r.nodeType===1&&(bc(r,t),th(r,s,o),i||Sc(r,s,o)),n.style=n.style||{},s.fill!=null&&(n.style.fill=So(n,"fill",s.fill,e)),s.stroke!=null&&(n.style.stroke=So(n,"stroke",s.stroke,e)),at(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(f){s[f]!=null&&(n.style[f]=parseFloat(s[f]))}),at(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(f){s[f]!=null&&(n.style[f]=s[f])}),a&&(n.__selfStyle=o),s.lineDash&&(n.style.lineDash=K(Ui(s.lineDash),function(f){return parseFloat(f)})),(s.visibility==="hidden"||s.visibility==="collapse")&&(n.invisible=!0),s.display==="none"&&(n.ignore=!0)}function _c(r,t){var e=t.__selfStyle;if(e){var i=e.textBaseline,a=i;!i||i==="auto"||i==="baseline"?a="alphabetic":i==="before-edge"||i==="text-before-edge"?a="top":i==="after-edge"||i==="text-after-edge"?a="bottom":(i==="central"||i==="mathematical")&&(a="middle"),r.style.textBaseline=a}var n=t.__inheritedStyle;if(n){var s=n.textAlign,o=s;s&&(s==="middle"&&(o="center"),r.style.textAlign=o)}}var yc=/^url\(\s*#(.*?)\)/;function So(r,t,e,i){var a=e&&e.match(yc);if(a){var n=qr(a[1]);i.push([r,t,n]);return}return e==="none"&&(e=null),e}function mc(r,t){for(var e=0;e<t.length;e++){var i=t[e];i[0].style[i[1]]=r[i[2]]}}var wc=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Ui(r){return r.match(wc)||[]}var Tc=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Oa=Math.PI/180;function bc(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var i=[],a=null;e.replace(Tc,function(v,l,c){return i.push(l,c),""});for(var n=i.length-1;n>0;n-=2){var s=i[n],o=i[n-1],f=Ui(s);switch(a=a||Dr(),o){case"translate":Wa(a,a,[parseFloat(f[0]),parseFloat(f[1]||"0")]);break;case"scale":Go(a,a,[parseFloat(f[0]),parseFloat(f[1]||f[0])]);break;case"rotate":Wo(a,a,-parseFloat(f[0])*Oa,[parseFloat(f[1]||"0"),parseFloat(f[2]||"0")]);break;case"skewX":var h=Math.tan(parseFloat(f[0])*Oa);Me(a,[1,0,h,1,0,0],a);break;case"skewY":var u=Math.tan(parseFloat(f[0])*Oa);Me(a,[1,u,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(f[0]),a[1]=parseFloat(f[1]),a[2]=parseFloat(f[2]),a[3]=parseFloat(f[3]),a[4]=parseFloat(f[4]),a[5]=parseFloat(f[5]);break}}t.setLocalTransform(a)}}var Co=/([^\s:;]+)\s*:\s*([^:;]+)/g;function th(r,t,e){var i=r.getAttribute("style");if(i){Co.lastIndex=0;for(var a;(a=Co.exec(i))!=null;){var n=a[1],s=mi(Ai,n)?Ai[n]:null;s&&(t[s]=a[2]);var o=mi(Ii,n)?Ii[n]:null;o&&(e[o]=a[2])}}}function Sc(r,t,e){for(var i=0;i<_o.length;i++){var a=_o[i],n=r.getAttribute(a);n!=null&&(t[Ai[a]]=n)}for(var i=0;i<yo.length;i++){var a=yo[i],n=r.getAttribute(a);n!=null&&(e[Ii[a]]=n)}}function Cc(r,t){var e=t.width/r.width,i=t.height/r.height,a=Math.min(e,i);return{scale:a,x:-(r.x+r.width/2)*a+(t.x+t.width/2),y:-(r.y+r.height/2)*a+(t.y+t.height/2)}}function Td(r,t){var e=new gc;return e.parse(r,t)}var Ot=nr.CMD;function te(r,t){return Math.abs(r-t)<1e-5}function pn(r){var t=r.data,e=r.len(),i=[],a,n=0,s=0,o=0,f=0;function h(L,x){a&&a.length>2&&i.push(a),a=[L,x]}function u(L,x,I,E){te(L,I)&&te(x,E)||a.push(L,x,I,E,I,E)}function v(L,x,I,E,F,k){var et=Math.abs(x-L),G=Math.tan(et/4)*4/3,$=x<L?-1:1,W=Math.cos(L),U=Math.sin(L),V=Math.cos(x),ht=
18Math.sin(x),yt=W*F+I,mt=U*k+E,ot=V*F+I,j=ht*k+E,Z=F*G*$,A=k*G*$;a.push(yt-Z*U,mt+A*W,ot+Z*ht,j-A*V,ot,j)}for(var l,c,p,_,d=0;d<e;){var g=t[d++],y=d===1;switch(y&&(n=t[d],s=t[d+1],o=n,f=s,(g===Ot.L||g===Ot.C||g===Ot.Q)&&(a=[o,f])),g){case Ot.M:n=o=t[d++],s=f=t[d++],h(o,f);break;case Ot.L:l=t[d++],c=t[d++],u(n,s,l,c),n=l,s=c;break;case Ot.C:a.push(t[d++],t[d++],t[d++],t[d++],n=t[d++],s=t[d++]);break;case Ot.Q:l=t[d++],c=t[d++],p=t[d++],_=t[d++],a.push(n+2/3*(l-n),s+2/3*(c-s),p+2/3*(l-p),_+2/3*(c-_),p,_),n=p,s=_;break;case Ot.A:var m=t[d++],w=t[d++],b=t[d++],T=t[d++],C=t[d++],S=t[d++]+C;d+=1;var M=!t[d++];l=Math.cos(C)*b+m,c=Math.sin(C)*T+w,y?(o=l,f=c,h(o,f)):u(n,s,l,c),n=Math.cos(S)*b+m,s=Math.sin(S)*T+w;for(var P=(M?-1:1)*Math.PI/2,R=C;M?R>S:R<S;R+=P){var D=M?Math.max(R+P,S):Math.min(R+P,S);v(R,D,m,w,b,T)}break;case Ot.R:o=n=t[d++],f=s=t[d++],l=o+t[d++],c=f+t[d++],h(l,f),u(l,f,l,c),u(l,c,o,c),u(o,c,o,f),u(o,f,l,f);break;case Ot.Z:a&&u(n,s,o,f),n=o,s=f;break}}return a&&a.length>2&&i.push(a),i}function gn(r,t,e,i,a,n,s,o,f,h){if(te(r,e)&&te(t,i)&&te(a,s)&&te(n,o)){f.push(s,o);return}var u=2/h,v=u*u,l=s-r,c=o-t,p=Math.sqrt(l*l+c*c);l/=p,c/=p;var _=e-r,d=i-t,g=a-s,y=n-o,m=_*_+d*d,w=g*g+y*y;if(m<v&&w<v){f.push(s,o);return}var b=l*_+c*d,T=-l*g-c*y,C=m-b*b,S=w-T*T;if(C<v&&b>=0&&S<v&&T>=0){f.push(s,o);return}var M=[],P=[];ar(r,e,a,s,.5,M),ar(t,i,n,o,.5,P),gn(M[0],P[0],M[1],P[1],M[2],P[2],M[3],P[3],f,h),gn(M[4],P[4],M[5],P[5],M[6],P[6],M[7],P[7],f,h)}function Mc(r,t){var e=pn(r),i=[];t=t||1;for(var a=0;a<e.length;a++){var n=e[a],s=[],o=n[0],f=n[1];s.push(o,f);for(var h=2;h<n.length;){var u=n[h++],v=n[h++],l=n[h++],c=n[h++],p=n[h++],_=n[h++];gn(o,f,u,v,l,c,p,_,s,t),o=p,f=_}i.push(s)}return i}function rh(r,t,e){var i=r[t],a=r[1-t],n=Math.abs(i/a),s=Math.ceil(Math.sqrt(n*e)),o=Math.floor(e/s);o===0&&(o=1,s=e);for(var f=[],h=0;h<s;h++)f.push(o);var u=s*o,v=e-u;if(v>0)for(var h=0;h<v;h++)f[h%s]+=1;return f}function Mo(r,t,e){for(var i=r.r0,a=r.r,n=r.startAngle,s=r.endAngle,o=Math.abs(s-n),f=o*a,h=a-i,u=f>Math.abs(h),v=rh([f,h],u?0:1,t),l=(u?o:h)/v.length,c=0;c<v.length;c++)for(var p=(u?h:o)/v[c],_=0;_<v[c];_++){var d={};u?(d.startAngle=n+l*c,d.endAngle=n+l*(c+1),d.r0=i+p*_,d.r=i+p*(_+1)):(d.startAngle=n+p*_,d.endAngle=n+p*(_+1),d.r0=i+l*c,d.r=i+l*(c+1)),d.clockwise=r.clockwise,d.cx=r.cx,d.cy=r.cy,e.push(d)}}function Pc(r,t,e){for(var i=r.width,a=r.height,n=i>a,s=rh([i,a],n?0:1,t),o=n?"width":"height",f=n?"height":"width",h=n?"x":"y",u=n?"y":"x",v=r[o]/s.length,l=0;l<s.length;l++)for(var c=r[f]/s[l],p=0;p<s[l];p++){var _={};_[h]=l*v,_[u]=p*c,_[o]=v,_[f]=c,_.x+=r.x,_.y+=r.y,e.push(_)}}function Po(r,t,e,i){return r*i-e*t}function Lc(r,t,e,i,a,n,s,o){var f=e-r,h=i-t,u=s-a,v=o-n,l=Po(u,v,f,h);if(Math.abs(l)<1e-6)return null;var c=r-a,p=t-n,_=Po(c,p,u,v)/l;return _<0||_>1?null:new N(_*f+r,_*h+t)}function xc(r,t,e){var i=new N;N.sub(i,e,t),i.normalize();var a=new N;N.sub(a,r,t);var n=a.dot(i);return n}function Wr(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function Rc(r,t,e){for(var i=r.length,a=[],n=0;n<i;n++){var s=r[n],o=r[(n+1)%i],f=Lc(s[0],s[1],o[0],o[1],t.x,t.y,e.x,e.y);f&&a.push({projPt:xc(f,t,e),pt:f,idx:n})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(d,g){return d.projPt-g.projPt});var h=a[0],u=a[a.length-1];if(u.idx<h.idx){var v=h;h=u,u=v}for(var l=[h.pt.x,h.pt.y],c=[u.pt.x,u.pt.y],p=[l],_=[c],n=h.idx+1;n<=u.idx;n++)Wr(p,r[n].slice());Wr(p,c),Wr(p,l);for(var n=u.idx+1;n<=h.idx+i;n++)Wr(_,r[n%i].slice());return Wr(_,l),Wr(_,c),[{points:p},{points:_}]}function Lo(r){var t=r.points,e=[],i=[];Tf(t,e,i);var a=new z(e[0],e[1],i[0]-e[0],i[1]-e[1]),n=a.width,s=a.height,o=a.x,f=a.y,h=new N,u=new N;return n>s?(h.x=u.x=o+n/2,h.y=f,u.y=f+s):(h.y=u.y=f+s/2,h.x=o,u.x=o+n),Rc(t,h,u)}function Ei(r,t,e,i){if(e===1)i.push(t);else{var a=Math.floor(e/2),n=r(t);Ei(r,n[0],a,i),Ei(r,n[1],e-a,i)}return i}function Dc(r,t){for(var e=[],i=0;i<t;i++)e.push(Rf(r));return e}function Ac(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function Ic(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function Ec(r,t){var e=[],i=r.shape,a;
18switch(r.type){case"rect":Pc(i,t,e),a=Oe;break;case"sector":Mo(i,t,e),a=hn;break;case"circle":Mo({r0:0,r:i.r,startAngle:0,endAngle:Math.PI*2,cx:i.cx,cy:i.cy},t,e),a=hn;break;default:var n=r.getComputedTransform(),s=n?Math.sqrt(Math.max(n[0]*n[0]+n[1]*n[1],n[2]*n[2]+n[3]*n[3])):1,o=K(Mc(r.getUpdatedPathProxy(),s),function(g){return Ic(g)}),f=o.length;if(f===0)Ei(Lo,{points:o[0]},t,e);else if(f===t)for(var h=0;h<f;h++)e.push({points:o[h]});else{var u=0,v=K(o,function(g){var y=[],m=[];Tf(g,y,m);var w=(m[1]-y[1])*(m[0]-y[0]);return u+=w,{poly:g,area:w}});v.sort(function(g,y){return y.area-g.area});for(var l=t,h=0;h<f;h++){var c=v[h];if(l<=0)break;var p=h===f-1?l:Math.ceil(c.area/u*t);p<0||(Ei(Lo,{points:c.poly},p,e),l-=p)}}a=Dn;break}if(!a)return Dc(r,t);for(var _=[],h=0;h<e.length;h++){var d=new a;d.setShape(e[h]),Ac(r,d),_.push(d)}return _}function Fc(r,t){var e=r.length,i=t.length;if(e===i)return[r,t];for(var a=[],n=[],s=e<i?r:t,o=Math.min(e,i),f=Math.abs(i-e)/6,h=(o-2)/6,u=Math.ceil(f/h)+1,v=[s[0],s[1]],l=f,c=2;c<o;){var p=s[c-2],_=s[c-1],d=s[c++],g=s[c++],y=s[c++],m=s[c++],w=s[c++],b=s[c++];if(l<=0){v.push(d,g,y,m,w,b);continue}for(var T=Math.min(l,u-1)+1,C=1;C<=T;C++){var S=C/T;ar(p,d,y,w,S,a),ar(_,g,m,b,S,n),p=a[3],_=n[3],v.push(a[1],n[1],a[2],n[2],p,_),d=a[5],g=n[5],y=a[6],m=n[6]}l-=T-1}return s===r?[v,t]:[r,v]}function xo(r,t){for(var e=r.length,i=r[e-2],a=r[e-1],n=[],s=0;s<t.length;)n[s++]=i,n[s++]=a;return n}function Oc(r,t){for(var e,i,a,n=[],s=[],o=0;o<Math.max(r.length,t.length);o++){var f=r[o],h=t[o],u=void 0,v=void 0;f?h?(e=Fc(f,h),u=e[0],v=e[1],i=u,a=v):(v=xo(a||f,f),u=f):(u=xo(i||h,h),v=h),n.push(u),s.push(v)}return[n,s]}function Ro(r){for(var t=0,e=0,i=0,a=r.length,n=0,s=a-2;n<a;s=n,n+=2){var o=r[s],f=r[s+1],h=r[n],u=r[n+1],v=o*u-h*f;t+=v,e+=(o+h)*v,i+=(f+u)*v}return t===0?[r[0]||0,r[1]||0]:[e/t/3,i/t/3,t]}function kc(r,t,e,i){for(var a=(r.length-2)/6,n=1/0,s=0,o=r.length,f=o-2,h=0;h<a;h++){for(var u=h*6,v=0,l=0;l<o;l+=2){var c=l===0?u:(u+l-2)%f+2,p=r[c]-e[0],_=r[c+1]-e[1],d=t[l]-i[0],g=t[l+1]-i[1],y=d-p,m=g-_;v+=y*y+m*m}v<n&&(n=v,s=h)}return s}function Bc(r){for(var t=[],e=r.length,i=0;i<e;i+=2)t[i]=r[e-i-2],t[i+1]=r[e-i-1];return t}function Hc(r,t,e,i){for(var a=[],n,s=0;s<r.length;s++){var o=r[s],f=t[s],h=Ro(o),u=Ro(f);n==null&&(n=h[2]<0!=u[2]<0);var v=[],l=[],c=0,p=1/0,_=[],d=o.length;n&&(o=Bc(o));for(var g=kc(o,f,h,u)*6,y=d-2,m=0;m<y;m+=2){var w=(g+m)%y+2;v[m+2]=o[w]-h[0],v[m+3]=o[w+1]-h[1]}v[0]=o[g]-h[0],v[1]=o[g+1]-h[1];for(var b=i/e,T=-i/2;T<=i/2;T+=b){for(var C=Math.sin(T),S=Math.cos(T),M=0,m=0;m<o.length;m+=2){var P=v[m],R=v[m+1],D=f[m]-u[0],L=f[m+1]-u[1],x=D*S-L*C,I=D*C+L*S;_[m]=x,_[m+1]=I;var E=x-P,F=I-R;M+=E*E+F*F}if(M<p){p=M,c=T;for(var k=0;k<_.length;k++)l[k]=_[k]}}a.push({from:v,to:l,fromCp:h,toCp:u,rotation:-c})}return a}function _n(r){return r.__isCombineMorphing}var eh="__mOriginal_";function Fi(r,t,e){var i=eh+t,a=r[i]||r[t];r[i]||(r[i]=r[t]);var n=e.replace,s=e.after,o=e.before;r[t]=function(){var f=arguments,h;return o&&o.apply(this,f),n?h=n.apply(this,f):h=a.apply(this,f),s&&s.apply(this,f),h}}function Re(r,t){var e=eh+t;r[e]&&(r[t]=r[e],r[e]=null)}function Do(r,t){for(var e=0;e<r.length;e++)for(var i=r[e],a=0;a<i.length;){var n=i[a],s=i[a+1];i[a++]=t[0]*n+t[2]*s+t[4],i[a++]=t[1]*n+t[3]*s+t[5]}}function ih(r,t){var e=r.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),a=Oc(pn(e),pn(i)),n=a[0],s=a[1],o=r.getComputedTransform(),f=t.getComputedTransform();function h(){this.transform=null}o&&Do(n,o),f&&Do(s,f),Fi(t,"updateTransform",{replace:h}),t.transform=null;var u=Hc(n,s,10,Math.PI),v=[];Fi(t,"buildPath",{replace:function(l){for(var c=t.__morphT,p=1-c,_=[],d=0;d<u.length;d++){var g=u[d],y=g.from,m=g.to,w=g.rotation*c,b=g.fromCp,T=g.toCp,C=Math.sin(w),S=Math.cos(w);Eh(_,b,T,c);for(var M=0;M<y.length;M+=2){var P=y[M],R=y[M+1],D=m[M],L=m[M+1],x=P*p+D*c,I=R*p+L*c;v[M]=x*S-I*C+_[0],v[M+1]=x*C+I*S+_[1]}var E=v[0],F=v[1];l.moveTo(E,F);for(var M=2;M<y.length;){var D=v[M++],L=v[M++],k=v[M++],et=v[M++],G=v[M++],$=v[M++];E===D&&F===L&&k===G&&et===$?l.lineTo(G,$):l.bezierCurveTo(D,L,k,et,G,$),E=G,F=$}}}})}function ah(r,t,e){if(!r||!t)return t;var i=e.done,a=e.during;ih(r,t),t.__morphT=0;function n(){Re(t,"buildPath"),Re(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Mt({during:function(s){t.dirtyShape(),a&&a(s)},done:function(){n(),i&&i()}},e)),t}function zc(r,t,e,i,a,n){var s=16;r=a===e?0:Math.round(32767*(r-e)/(a-e)),t=n===i?0:Math.round(32767*(t-i)/(n-i));for(var o=0,f,h=(1<<s)/2;h>0;h/=2){var u=0,v=0;(r&h)>0&&(u=1),(t&h)>0&&(v=1),o+=h*h*(3*u^v),v===0&&(u===1&&(r=h-1-r,t=h-1-t),f=r,r=t,t=f)}return o}function Oi(r){var t=1/0,e=1/0,i=-1/0,a=-1/0,n=K(r,function(o){var f=o.getBoundingRect
18(),h=o.getComputedTransform(),u=f.x+f.width/2+(h?h[4]:0),v=f.y+f.height/2+(h?h[5]:0);return t=Math.min(u,t),e=Math.min(v,e),i=Math.max(u,i),a=Math.max(v,a),[u,v]}),s=K(n,function(o,f){return{cp:o,z:zc(o[0],o[1],t,e,i,a),path:r[f]}});return s.sort(function(o,f){return o.z-f.z}).map(function(o){return o.path})}function nh(r){return Ec(r.path,r.count)}function yn(){return{fromIndividuals:[],toIndividuals:[],count:0}}function bd(r,t,e){var i=[];function a(b){for(var T=0;T<b.length;T++){var C=b[T];_n(C)?a(C.childrenRef()):C instanceof J&&i.push(C)}}a(r);var n=i.length;if(!n)return yn();var s=e.dividePath||nh,o=s({path:t,count:n});if(o.length!==n)return console.error("Invalid morphing: unmatched splitted path"),yn();i=Oi(i),o=Oi(o);for(var f=e.done,h=e.during,u=e.individualDelay,v=new Ln,l=0;l<n;l++){var c=i[l],p=o[l];p.parent=t,p.copyTransform(v),u||ih(c,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return o};function _(b){for(var T=0;T<o.length;T++)o[T].addSelfToZr(b)}Fi(t,"addSelfToZr",{after:function(b){_(b)}}),Fi(t,"removeSelfFromZr",{after:function(b){for(var T=0;T<o.length;T++)o[T].removeSelfFromZr(b)}});function d(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Re(t,"addSelfToZr"),Re(t,"removeSelfFromZr")}var g=o.length;if(u)for(var y=g,m=function(){y--,y===0&&(d(),f&&f())},l=0;l<g;l++){var w=u?Mt({delay:(e.delay||0)+u(l,g,i[l],o[l]),done:m},e):e;ah(i[l],o[l],w)}else t.__morphT=0,t.animateTo({__morphT:1},Mt({during:function(b){for(var T=0;T<g;T++){var C=o[T];C.__morphT=t.__morphT,C.dirtyShape()}h&&h(b)},done:function(){d();for(var b=0;b<r.length;b++)Re(r[b],"updateTransform");f&&f()}},e));return t.__zr&&_(t.__zr),{fromIndividuals:i,toIndividuals:o,count:g}}function Sd(r,t,e){var i=t.length,a=[],n=e.dividePath||nh;function s(c){for(var p=0;p<c.length;p++){var _=c[p];_n(_)?s(_.childrenRef()):_ instanceof J&&a.push(_)}}if(_n(r)){s(r.childrenRef());var o=a.length;if(o<i)for(var f=0,h=o;h<i;h++)a.push(Rf(a[f++%o]));a.length=i}else{a=n({path:r,count:i});for(var u=r.getComputedTransform(),h=0;h<a.length;h++)a[h].setLocalTransform(u);if(a.length!==i)return console.error("Invalid morphing: unmatched splitted path"),yn()}a=Oi(a),t=Oi(t);for(var v=e.individualDelay,h=0;h<i;h++){var l=v?Mt({delay:(e.delay||0)+v(h,i,a[h],t[h])},e):e;ah(a[h],t[h],l)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}export{N as $,Zh as A,Me as B,z as C,Yo as D,Dr as E,Ev as F,Fv as G,Fr as H,cd as I,Df as J,Af as K,Dn as L,Ff as M,Oe as N,Of as O,J as P,hl as Q,el as R,hn as S,Ln as T,vl as U,ll as V,Cr as W,gd as X,cl as Y,ue as Z,pd as _,ie as a,fd as a$,dl as a0,Hv as a1,qr as a2,bh as a3,li as a4,Ur as a5,Oo as a6,Nh as a7,Uc as a8,od as a9,lu as aA,hu as aB,ii as aC,md as aD,wd as aE,Jo as aF,it as aG,sd as aH,pv as aI,Wo as aJ,Vc as aK,cf as aL,Gc as aM,id as aN,qh as aO,pc as aP,Td as aQ,Cc as aR,Ne as aS,Jc as aT,Yc as aU,Tf as aV,Wa as aW,Go as aX,Ct as aY,he as aZ,nd as a_,mh as aa,ka as ab,Xc as ac,Zc as ad,Qc as ae,Rr as af,Wu as ag,_d as ah,De as ai,Er as aj,Al as ak,fe as al,ud as am,ou as an,ld as ao,vd as ap,ko as aq,Fe as ar,Th as as,yd as at,$r as au,Vr as av,hd as aw,Ah as ax,Eh as ay,nr as az,$t as b,Ph as b0,Dh as b1,$i as b2,oe as b3,Lh as b4,xh as b5,jc as b6,td as b7,Si as b8,st as b9,re as ba,ad as bb,is as bc,zr as bd,_v as be,ns as bf,Ee as bg,di as bh,Ba as bi,Xh as bj,Lt as bk,rd as bl,ed as bm,$c as bn,_n as bo,ah as bp,bd as bq,Sd as br,Rf as bs,Kc as c,Bt as d,at as e,be as f,qc as g,Gn as h,Wt as i,q as j,Wc as k,H as l,K as m,rr as n,Yt as o,X as p,mu as q,Bi as r,Q as s,$v as t,dd as u,Jr as v,mi as w,Mt as x,Xo as y,Ce as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.