mokelay-editor 0.0.2 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/EditorPanel-CF3kVQ21.css +1 -0
- package/assets/EditorPanel-CIQRB85C.js +1 -0
- package/assets/MPage-CMw0gXU4.js +1 -0
- package/assets/MPage.vue_vue_type_script_setup_true_lang-D5yGdSyf.js +1 -0
- package/assets/PreviewPanel-DUteH-hK.js +1 -0
- package/assets/block-advanced-BuKEuWQ4.js +1 -0
- package/assets/block-advanced-DfEsE7Tf.css +1 -0
- package/assets/block-chart-0eTcp5HJ.js +1 -0
- package/assets/block-chart-BDhOWgsD.css +1 -0
- package/assets/block-datasource-DIH8wAmJ.css +1 -0
- package/assets/block-datasource-_a7GVdwT.js +1 -0
- package/assets/block-editor-selector-Da_ew6E9.css +1 -0
- package/assets/block-editor-selector-niI9qUPh.js +72 -0
- package/assets/block-form-0t-EPu3N.css +1 -0
- package/assets/block-form-BEDK0U9Z.js +51 -0
- package/assets/echarts-BN_iJMI5.js +24 -0
- package/assets/{editorjs-hCuh8vdW.js → editorjs-CrGo22NX.js} +10 -10
- package/assets/element-plus-CD8wJz6b.js +1 -0
- package/assets/element-plus-Dit-l95b.css +1 -0
- package/assets/index-CTUsYCbZ.css +1 -0
- package/assets/index-DaLT-qTF.js +10 -0
- package/assets/vue-vendor-Dh3tbb7h.js +17 -0
- package/assets/zrender-CyMoNtco.js +29 -0
- package/index.html +19 -6
- package/package.json +1 -1
- package/assets/EditorPanel-bZ_ztq4l.css +0 -1
- package/assets/EditorPanel-s8UfMl2a.js +0 -1
- package/assets/MForm-DHyGtILs.css +0 -1
- package/assets/MForm-icLQ2kKk.js +0 -50
- package/assets/MPage-BkuklFgX.js +0 -1
- package/assets/PreviewPanel-Bs7PtelH.js +0 -1
- package/assets/index-DP9Xxuqs.js +0 -18
- package/assets/index-qSOXU8wC.css +0 -1
- package/assets/storage-DLZD2nc7.js +0 -51
- package/assets/storage-DdQoXp86.css +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var Bo=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),Ho=(function(){function r(){this.browser=new Bo,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})(),z=new Ho;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(z.wxa=!0,z.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?z.worker=!0:!z.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(z.node=!0,z.svgSupported=!0):zo(navigator.userAgent,z);function zo(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(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 s=t.domSupported=typeof document<"u";if(s){var h=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in h||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in h)&&!("OTransition"in h),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var mn=12,ko="sans-serif",Yt=mn+"px "+ko,Wo=20,No=100,Yo="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Xo(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-Wo)/No;t[i]=n}return t}var Go=Xo(Yo),cr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,i){if(!r){var n=cr.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||Yt),r.measureText(e);e=e||"",i=i||Yt;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||mn,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var h=0;h<e.length;h++){var f=Go[e[h]];s+=f==null?o:f*o}return{width:s}}})(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}},Na=je(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Ya=je(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),fe=Object.prototype.toString,Je=Array.prototype,qo=Je.forEach,$o=Je.filter,wn=Je.slice,Zo=Je.map,Mn=(function(){}).constructor,le=Mn?Mn.prototype:null,Tn="__proto__",Uo=2311;function Xa(){return Uo++}function bn(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function Er(r){if(r==null||typeof r!="object")return r;var t=r,e=fe.call(r);if(e==="[object Array]"){if(!Jr(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=Er(r[i])}}else if(Ya[e]){if(!Jr(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!Na[e]&&!Jr(r)&&!$i(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Tn&&(t[o]=Er(r[o]))}return t}function $r(r,t,e){if(!zt(t)||!zt(r))return e?Er(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==Tn){var n=r[i],a=t[i];zt(a)&&zt(n)&&!ne(a)&&!ne(n)&&!$i(a)&&!$i(n)&&!Rn(a)&&!Rn(n)&&!Jr(a)&&!Jr(n)?$r(n,a,e):(e||!(i in r))&&(r[i]=Er(t[i]))}return r}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 dr(r,t,e){for(var i=at(t),n=0,a=i.length;n<a;n++){var o=i[n];r[o]==null&&(r[o]=t[o])}return r}function Ct(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 du(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function Ga(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),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&r[a]==null&&(r[a]=t[a])}else dr(r,t)}function Mt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function et(r,t,e){if(r&&t)if(r.forEach&&r.forEach===qo)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function Ir(r,t,e){if(!r)return[];if(!t)return qa(r);if(r.map&&r.map===Zo)return r.map(t,e);for(var i=[],n=0,a=r.length;n<a;n++)i.push(t.call(e,r[n],n,r));return i}function je(r,t,e,i){if(r&&t){for(var n=0,a=r.length;n<a;n++)e=t.call(i,e,r[n],n,r);return e}}function xn(r,t,e){if(!r)return[];if(!t)return qa(r);if(r.filter&&r.filter===$o)return r.filter(t,e);for(var i=[],n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r)&&i.push(r[n]);return i}function pu(r,t,e){if(r&&t){for(var i=0,n=r.length;i<n;i++)if(t.call(e,r[i],i,r))return r[i]}}function at(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 Vo(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 _u=le&&Or(le.bind)?le.call.bind(le.bind):Vo;function gu(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 ne(r){return Array.isArray?Array.isArray(r):fe.call(r)==="[object Array]"}function Or(r){return typeof r=="function"}function Ne(r){return typeof r=="string"}function yu(r){return fe.call(r)==="[object String]"}function Oe(r){return typeof r=="number"}function zt(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Rn(r){return!!Na[fe.call(r)]}function Qo(r){return!!Ya[fe.call(r)]}function $i(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function ti(r){return r.colorStops!=null}function Ko(r){return r.image!=null}function Jo(r){return r!==r}function mu(){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 vt(r,t){return r??t}function Fe(r,t,e){return r??t??e}function qa(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return wn.apply(r,t)}function jo(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 wu(r,t){if(!r)throw new Error(t)}function Zr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var $a="__ec_primitive__";function Tu(r){r[$a]=!0}function Jr(r){return r[$a]}var ts=(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 at(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r})(),Za=typeof Map=="function";function rs(){return Za?new Map:new ts}var es=(function(){function r(t){var e=ne(t);this.data=rs();var i=this;t instanceof r?t.each(n):t&&et(t,n);function n(a,o){e?i.set(a,o):i.set(o,a)}}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,n){t.call(e,i,n)})},r.prototype.keys=function(){var t=this.data.keys();return Za?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function bu(r){return new es(r)}function Cu(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var n=r.length,i=0;i<t.length;i++)e[i+n]=t[i];return e}function ri(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 Ua(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Su(r,t){return r.hasOwnProperty(t)}function Rr(){}var is=180/Math.PI;/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var Zi=function(r,t){return Zi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},Zi(r,t)};function F(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Zi(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Hr(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function ns(r){return[r[0],r[1]]}function Dn(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function as(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function os(r){return Math.sqrt(ss(r))}function ss(r){return r[0]*r[0]+r[1]*r[1]}function si(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function hs(r,t){var e=os(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Ui(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var fs=Ui;function us(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Dr=us;function Lu(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 jr(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function Cr(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Sr(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var pr=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),ls=(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 pr(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new pr(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,h=this._dropTarget;this._dropTarget=s,e!==s&&(h&&s!==h&&this.handler.dispatchToElement(new pr(h,t),"dragleave",t.event),s&&s!==h&&this.handler.dispatchToElement(new pr(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new pr(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new pr(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),zr=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var h={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},f=a[t].length-1,u=a[t][f];return u&&u.callAtLast?a[t].splice(f,0,h):a[t].push(h),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 n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}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 n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,h=0;h<s;h++){var f=n[h];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(f.ctx);break;case 1:f.h.call(f.ctx,e[0]);break;case 2:f.h.call(f.ctx,e[0],e[1]);break;default:f.h.apply(f.ctx,e);break}}return a&&a.afterTrigger&&a.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 n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],h=n.length,f=0;f<h;f++){var u=n[f];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(s);break;case 1:u.h.call(s,e[0]);break;case 2:u.h.call(s,e[0],e[1]);break;default:u.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),vs=Math.log(2);function Vi(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var h=Math.round(Math.log((1<<s)-1&~n)/vs);return r[e][h]}for(var f=i|1<<e,u=e+1;i&1<<u;)u++;for(var l=0,v=0,c=0;v<s;v++){var _=1<<v;_&n||(l+=(c%2?-1:1)*r[e][v]*Vi(r,t-1,u,f,n|_,a),c++)}return a[o]=l,l}function An(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={},n=Vi(e,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Vi(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(h,f,u){var l=f*a[6]+u*a[7]+1;h[0]=(f*a[0]+u*a[1]+a[2])/l,h[1]=(f*a[3]+u*a[4]+a[5])/l}}}var Ye="___zrEVENTSAVED",hi=[];function Pu(r,t,e,i,n){return Qi(hi,t,i,n,!0)&&Qi(r,e,hi[0],hi[1])}function Mu(r,t){r&&e(r),t&&e(t);function e(i){var n=i[Ye];n&&(n.clearMarkers&&n.clearMarkers(),delete i[Ye])}}function Qi(r,t,e,i,n){if(t.getBoundingClientRect&&z.domSupported&&!Va(t)){var a=t[Ye]||(t[Ye]={}),o=cs(t,a),s=ds(o,a,n);if(s)return s(r,e,i),!0}return!1}function cs(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,h=a%2,f=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[h]+":0",n[f]+":0",i[1-h]+":auto",n[1-f]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){et(e,function(u){u.parentNode&&u.parentNode.removeChild(u)})},e}function ds(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],h=!0,f=0;f<4;f++){var u=r[f].getBoundingClientRect(),l=2*f,v=u.left,c=u.top;o.push(v,c),h=h&&a&&v===a[l]&&c===a[l+1],s.push(r[f].offsetLeft,r[f].offsetTop)}return h&&n?n:(t.srcCoords=o,t[i]=e?An(s,o):An(o,s))}function Va(r){return r.nodeName.toUpperCase()==="CANVAS"}var ps=/([&<>"'])/g,_s={"&":"&","<":"<",">":">",'"':""","'":"'"};function xu(r){return r==null?"":(r+"").replace(ps,function(t,e){return _s[e]})}var gs=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fi=[],ys=z.browser.firefox&&+z.browser.version.split(".")[0]<39;function Ki(r,t,e,i){return e=e||{},i?En(r,t,e):ys&&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):En(r,t,e),e}function En(r,t,e){if(z.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Va(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(Qi(fi,r,i,n)){e.zrX=fi[0],e.zrY=fi[1];return}}e.zrX=e.zrY=0}function Cn(r){return r||window.event}function pt(r,t,e){if(t=Cn(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Ki(r,o,t,e)}else{Ki(r,t,t,e);var a=ms(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&gs.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function ms(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function ws(r,t,e,i){r.addEventListener(t,e,i)}function Ts(r,t,e,i){r.removeEventListener(t,e,i)}var bs=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},Cs=(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 n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var h=n[o],f=Ki(i,h,{});a.points.push([f.zrX,f.zrY]),a.touches.push(h)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in ui)if(ui.hasOwnProperty(e)){var i=ui[e](this._track,t);if(i)return i}},r})();function In(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function Ss(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var ui={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,n=(r[e-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=In(i)/In(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Ss(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function te(){return[1,0,0,1,0,0]}function Ls(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Ps(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 li(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],h=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=h,r}function On(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 Ms(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],h=t[3],f=t[5],u=Math.sin(e),l=Math.cos(e);return r[0]=n*l+s*u,r[1]=-n*u+s*l,r[2]=a*l+h*u,r[3]=-a*u+l*h,r[4]=l*(o-i[0])+u*(f-i[1])+i[0],r[5]=l*(f-i[1])-u*(o-i[0])+i[1],r}function xs(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function Qa(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],h=e*o-a*i;return h?(h=1/h,r[0]=o*h,r[1]=-a*h,r[2]=-i*h,r[3]=e*h,r[4]=(i*s-o*n)*h,r[5]=(a*n-e*s)*h,r):null}var W=(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]},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,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r})(),sr=Math.min,Lr=Math.max,Ji=Math.abs,Fn=["x","y"],Rs=["width","height"],Gt=new W,qt=new W,$t=new W,Zt=new W,it=Ka(),Ur=it.minTv,ji=it.maxTv,re=[0,0],O=(function(){function r(t,e,i,n){r.set(this,t,e,i,n)}return r.set=function(t,e,i,n,a){return n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),t.x=e,t.y=i,t.width=n,t.height=a,t},r.prototype.union=function(t){var e=sr(t.x,this.x),i=sr(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lr(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lr(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,n=t.height/e.height,a=te();return On(a,a,[-e.x,-e.y]),xs(a,a,[i,n]),On(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e,i){return r.intersect(this,t,e,i)},r.intersect=function(t,e,i,n){i&&W.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!e)return!1;t instanceof r||(t=r.set(Ds,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(As,e.x,e.y,e.width,e.height));var s=!!i;it.reset(n,s);var h=it.touchThreshold,f=t.x+h,u=t.x+t.width-h,l=t.y+h,v=t.y+t.height-h,c=e.x+h,_=e.x+e.width-h,g=e.y+h,p=e.y+e.height-h;if(f>u||l>v||c>_||g>p)return!1;var d=!(u<c||_<f||v<g||p<l);return(s||a)&&(re[0]=1/0,re[1]=0,Bn(f,u,c,_,0,s,a,o),Bn(l,v,g,p,1,s,a,o),s&&W.copy(i,d?it.useDir?it.dirMinTv:Ur:ji)),d},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 n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Gt.x=$t.x=e.x,Gt.y=Zt.y=e.y,qt.x=Zt.x=e.x+e.width,qt.y=$t.y=e.y+e.height,Gt.transform(i),Zt.transform(i),qt.transform(i),$t.transform(i),t.x=sr(Gt.x,qt.x,$t.x,Zt.x),t.y=sr(Gt.y,qt.y,$t.y,Zt.y);var h=Lr(Gt.x,qt.x,$t.x,Zt.x),f=Lr(Gt.y,qt.y,$t.y,Zt.y);t.width=h-t.x,t.height=f-t.y},r})(),Ds=new O(0,0,0,0),As=new O(0,0,0,0);function Bn(r,t,e,i,n,a,o,s){var h=Ji(t-e),f=Ji(i-r),u=sr(h,f),l=Fn[n],v=Fn[1-n],c=Rs[n];t<e||i<r?h<f?(a&&(ji[l]=-h),s&&(o[l]=t,o[c]=0)):(a&&(ji[l]=f),s&&(o[l]=r,o[c]=0)):(o&&(o[l]=Lr(r,e),o[c]=sr(t,i)-o[l]),a&&(u<re[0]||it.useDir)&&(re[0]=sr(u,re[0]),(h<f||!it.bidirectional)&&(Ur[l]=h,Ur[v]=0,it.useDir&&it.calcDirMTV()),(h>=f||!it.bidirectional)&&(Ur[l]=-f,Ur[v]=0,it.useDir&&it.calcDirMTV())))}function Ka(){var r=0,t=new W,e=new W,i={minTv:new W,maxTv:new W,useDir:!1,dirMinTv:new W,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Lr(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),e.copy(i.minTv),r=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,h=Math.sin(r),f=Math.cos(r),u=h*a.y+f*a.x;if(n(u)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(e.x=s*f/u,e.y=s*h/u,n(e.x)&&n(e.y)){o.set(0,0);return}(i.bidirectional||t.dot(e)>0)&&e.len()<o.len()&&o.copy(e)}};function n(a){return Ji(a)<1e-10}return i}var Ja="silent";function Es(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:Is}}function Is(){bs(this.event)}var Os=(function(r){F(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})(zr),Wr=(function(){function r(t,e){this.x=t,this.y=e}return r})(),Fs=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],vi=new O(0,0,0,0),ja=(function(r){F(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new Wr(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new Os,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new ls(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(et(Fs,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,n=e.zrY,a=to(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var h=this._hovered=a?new Wr(i,n):this.findHover(i,n),f=h.target,u=this.proxy;u.setCursor&&u.setCursor(f?f.cursor:"default"),s&&f!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(h,"mousemove",e),f&&f!==s&&this.dispatchToElement(h,"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 Wr(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.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,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=Es(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(h){typeof h[o]=="function"&&h[o].call(h,s),h.trigger&&h.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new Wr(e,i);if(Hn(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],h=this._pointerSize,f=h/2,u=new O(e-f,i-f,h,h),l=a.length-1;l>=0;l--){var v=a[l];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(vi.copy(v.getBoundingRect()),v.transform&&vi.applyTransform(v.transform),vi.intersect(u)&&s.push(v))}if(s.length)for(var c=4,_=Math.PI/12,g=Math.PI*2,p=0;p<f;p+=c)for(var d=0;d<g;d+=_){var y=e+p*Math.cos(d),m=i+p*Math.sin(d);if(Hn(s,o,y,m,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new Cs);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Wr;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(zr);et(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){ja.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=to(this,e,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(e,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||fs(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function Bs(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?Ja:!0}return!1}function Hn(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=Bs(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==Ja)){t.target=o;break}}}function to(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var ro=32,Nr=7;function Hs(r){for(var t=0;r>=ro;)t|=r&1,r>>=1;return r+t}function zn(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n<e&&i(r[n],r[n-1])<0;)n++;zs(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function zs(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function kn(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,h;o<s;)h=o+s>>>1,n(a,r[h])<0?s=h:o=h+1;var f=i-o;switch(f){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;f>0;)r[o+f]=r[o+f-1],f--}r[o]=a}}function ci(r,t,e,i,n,a){var o=0,s=0,h=1;if(a(r,t[e+n])>0){for(s=i-n;h<s&&a(r,t[e+n+h])>0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s),o+=n,h+=n}else{for(s=n+1;h<s&&a(r,t[e+n-h])<=0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s);var f=o;o=n-h,h=n-f}for(o++;o<h;){var u=o+(h-o>>>1);a(r,t[e+u])>0?o=u+1:h=u}return h}function di(r,t,e,i,n,a){var o=0,s=0,h=1;if(a(r,t[e+n])<0){for(s=n+1;h<s&&a(r,t[e+n-h])<0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s);var f=o;o=n-h,h=n-f}else{for(s=i-n;h<s&&a(r,t[e+n+h])>=0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s),o+=n,h+=n}for(o++;o<h;){var u=o+(h-o>>>1);a(r,t[e+u])<0?h=u:o=u+1}return h}function ks(r,t){var e=Nr,i,n,a=0,o=[];i=[],n=[];function s(c,_){i[a]=c,n[a]=_,a+=1}function h(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;u(c)}}function f(){for(;a>1;){var c=a-2;c>0&&n[c-1]<n[c+1]&&c--,u(c)}}function u(c){var _=i[c],g=n[c],p=i[c+1],d=n[c+1];n[c]=g+d,c===a-3&&(i[c+1]=i[c+2],n[c+1]=n[c+2]),a--;var y=di(r[p],r,_,g,0,t);_+=y,g-=y,g!==0&&(d=ci(r[_+g-1],r,p,d,d-1,t),d!==0&&(g<=d?l(_,g,p,d):v(_,g,p,d)))}function l(c,_,g,p){var d=0;for(d=0;d<_;d++)o[d]=r[c+d];var y=0,m=g,w=c;if(r[w++]=r[m++],--p===0){for(d=0;d<_;d++)r[w+d]=o[y+d];return}if(_===1){for(d=0;d<p;d++)r[w+d]=r[m+d];r[w+p]=o[y];return}for(var b=e,T,S,C;;){T=0,S=0,C=!1;do if(t(r[m],o[y])<0){if(r[w++]=r[m++],S++,T=0,--p===0){C=!0;break}}else if(r[w++]=o[y++],T++,S=0,--_===1){C=!0;break}while((T|S)<b);if(C)break;do{if(T=di(r[m],o,y,_,0,t),T!==0){for(d=0;d<T;d++)r[w+d]=o[y+d];if(w+=T,y+=T,_-=T,_<=1){C=!0;break}}if(r[w++]=r[m++],--p===0){C=!0;break}if(S=ci(o[y],r,m,p,0,t),S!==0){for(d=0;d<S;d++)r[w+d]=r[m+d];if(w+=S,m+=S,p-=S,p===0){C=!0;break}}if(r[w++]=o[y++],--_===1){C=!0;break}b--}while(T>=Nr||S>=Nr);if(C)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),_===1){for(d=0;d<p;d++)r[w+d]=r[m+d];r[w+p]=o[y]}else{if(_===0)throw new Error;for(d=0;d<_;d++)r[w+d]=o[y+d]}}function v(c,_,g,p){var d=0;for(d=0;d<p;d++)o[d]=r[g+d];var y=c+_-1,m=p-1,w=g+p-1,b=0,T=0;if(r[w--]=r[y--],--_===0){for(b=w-(p-1),d=0;d<p;d++)r[b+d]=o[d];return}if(p===1){for(w-=_,y-=_,T=w+1,b=y+1,d=_-1;d>=0;d--)r[T+d]=r[b+d];r[w]=o[m];return}for(var S=e;;){var C=0,L=0,P=!1;do if(t(o[m],r[y])<0){if(r[w--]=r[y--],C++,L=0,--_===0){P=!0;break}}else if(r[w--]=o[m--],L++,C=0,--p===1){P=!0;break}while((C|L)<S);if(P)break;do{if(C=_-di(o[m],r,c,_,_-1,t),C!==0){for(w-=C,y-=C,_-=C,T=w+1,b=y+1,d=C-1;d>=0;d--)r[T+d]=r[b+d];if(_===0){P=!0;break}}if(r[w--]=o[m--],--p===1){P=!0;break}if(L=p-ci(r[y],o,0,p,p-1,t),L!==0){for(w-=L,m-=L,p-=L,T=w+1,b=m+1,d=0;d<L;d++)r[T+d]=o[b+d];if(p<=1){P=!0;break}}if(r[w--]=r[y--],--_===0){P=!0;break}S--}while(C>=Nr||L>=Nr);if(P)break;S<0&&(S=0),S+=2}if(e=S,e<1&&(e=1),p===1){for(w-=_,y-=_,T=w+1,b=y+1,d=_-1;d>=0;d--)r[T+d]=r[b+d];r[w]=o[m]}else{if(p===0)throw new Error;for(b=w-(p-1),d=0;d<p;d++)r[b+d]=o[d]}}return{mergeRuns:h,forceMergeRuns:f,pushRun:s}}function Ws(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<ro){a=zn(r,e,i,t),kn(r,e,i,e+a,t);return}var o=ks(r,t),s=Hs(n);do{if(a=zn(r,e,i,t),a<s){var h=n;h>s&&(h=s),kn(r,e,e+h,e+a,t),a=h}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var nt=1,Vr=2,br=4,Wn=!1;function pi(){Wn||(Wn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Nn(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var Ns=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Nn}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,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,Ws(i,Nn)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=e&&e.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var h=0;h<e.length;h++)s[o++]=e[h];for(var f=n,u=t;f;)f.parent=u,f.updateTransform(),s[o++]=f,u=f,f=f.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var l=t.childrenRef(),v=0;v<l.length;v++){var c=l[v];t.__dirty&&(c.__dirty|=nt),this._updateAndAddDisplayable(c,s,i)}t.__dirty=0}else{var _=t;isNaN(_.z)&&(pi(),_.z=0),isNaN(_.z2)&&(pi(),_.z2=0),isNaN(_.zlevel)&&(pi(),_.zlevel=0),this._displayList[this._displayListLen++]=_}var g=t.getDecalElement&&t.getDecalElement();g&&this._updateAndAddDisplayable(g,s,i);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,i);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,s,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 n=Ct(this._roots,t);n>=0&&this._roots.splice(n,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})(),Xe;Xe=z.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var ee={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-ee.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?ee.bounceIn(r*2)*.5:ee.bounceOut(r*2-1)*.5+.5}},ve=Math.pow,Wt=Math.sqrt,Ge=1e-8,eo=1e-4,Yn=Wt(3),ce=1/3,St=Hr(),ft=Hr(),Ar=Hr();function kt(r){return r>-Ge&&r<Ge}function io(r){return r>Ge||r<-Ge}function K(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function Xn(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function no(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),h=3*(t-r),f=r-n,u=s*s-3*o*h,l=s*h-9*o*f,v=h*h-3*s*f,c=0;if(kt(u)&&kt(l))if(kt(s))a[0]=0;else{var _=-h/s;_>=0&&_<=1&&(a[c++]=_)}else{var g=l*l-4*u*v;if(kt(g)){var p=l/u,_=-s/o+p,d=-p/2;_>=0&&_<=1&&(a[c++]=_),d>=0&&d<=1&&(a[c++]=d)}else if(g>0){var y=Wt(g),m=u*s+1.5*o*(-l+y),w=u*s+1.5*o*(-l-y);m<0?m=-ve(-m,ce):m=ve(m,ce),w<0?w=-ve(-w,ce):w=ve(w,ce);var _=(-s-(m+w))/(3*o);_>=0&&_<=1&&(a[c++]=_)}else{var b=(2*u*s-3*o*l)/(2*Wt(u*u*u)),T=Math.acos(b)/3,S=Wt(u),C=Math.cos(T),_=(-s-2*S*C)/(3*o),d=(-s+S*(C+Yn*Math.sin(T)))/(3*o),L=(-s+S*(C-Yn*Math.sin(T)))/(3*o);_>=0&&_<=1&&(a[c++]=_),d>=0&&d<=1&&(a[c++]=d),L>=0&&L<=1&&(a[c++]=L)}}return c}function ao(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,h=0;if(kt(o)){if(io(a)){var f=-s/a;f>=0&&f<=1&&(n[h++]=f)}}else{var u=a*a-4*o*s;if(kt(u))n[0]=-a/(2*o);else if(u>0){var l=Wt(u),f=(-a+l)/(2*o),v=(-a-l)/(2*o);f>=0&&f<=1&&(n[h++]=f),v>=0&&v<=1&&(n[h++]=v)}}return h}function qe(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,h=(i-e)*n+e,f=(s-o)*n+o,u=(h-s)*n+s,l=(u-f)*n+f;a[0]=r,a[1]=o,a[2]=f,a[3]=l,a[4]=l,a[5]=u,a[6]=h,a[7]=i}function Ys(r,t,e,i,n,a,o,s,h,f,u){var l,v=.005,c=1/0,_,g,p,d;St[0]=h,St[1]=f;for(var y=0;y<1;y+=.05)ft[0]=K(r,e,n,o,y),ft[1]=K(t,i,a,s,y),p=Dr(St,ft),p<c&&(l=y,c=p);c=1/0;for(var m=0;m<32&&!(v<eo);m++)_=l-v,g=l+v,ft[0]=K(r,e,n,o,_),ft[1]=K(t,i,a,s,_),p=Dr(ft,St),_>=0&&p<c?(l=_,c=p):(Ar[0]=K(r,e,n,o,g),Ar[1]=K(t,i,a,s,g),d=Dr(Ar,St),g<=1&&d<c?(l=g,c=d):v*=.5);return Wt(c)}function Xs(r,t,e,i,n,a,o,s,h){for(var f=r,u=t,l=0,v=1/h,c=1;c<=h;c++){var _=c*v,g=K(r,e,n,o,_),p=K(t,i,a,s,_),d=g-f,y=p-u;l+=Math.sqrt(d*d+y*y),f=g,u=p}return l}function tt(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function Gn(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function Gs(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,h=0;if(kt(a)){if(io(o)){var f=-s/o;f>=0&&f<=1&&(n[h++]=f)}}else{var u=o*o-4*a*s;if(kt(u)){var f=-o/(2*a);f>=0&&f<=1&&(n[h++]=f)}else if(u>0){var l=Wt(u),f=(-o+l)/(2*a),v=(-o-l)/(2*a);f>=0&&f<=1&&(n[h++]=f),v>=0&&v<=1&&(n[h++]=v)}}return h}function oo(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function $e(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function qs(r,t,e,i,n,a,o,s,h){var f,u=.005,l=1/0;St[0]=o,St[1]=s;for(var v=0;v<1;v+=.05){ft[0]=tt(r,e,n,v),ft[1]=tt(t,i,a,v);var c=Dr(St,ft);c<l&&(f=v,l=c)}l=1/0;for(var _=0;_<32&&!(u<eo);_++){var g=f-u,p=f+u;ft[0]=tt(r,e,n,g),ft[1]=tt(t,i,a,g);var c=Dr(ft,St);if(g>=0&&c<l)f=g,l=c;else{Ar[0]=tt(r,e,n,p),Ar[1]=tt(t,i,a,p);var d=Dr(Ar,St);p<=1&&d<l?(f=p,l=d):u*=.5}}return Wt(l)}function $s(r,t,e,i,n,a,o){for(var s=r,h=t,f=0,u=1/o,l=1;l<=o;l++){var v=l*u,c=tt(r,e,n,v),_=tt(t,i,a,v),g=c-s,p=_-h;f+=Math.sqrt(g*g+p*p),s=c,h=_}return f}var Zs=/cubic-bezier\(([0-9,\.e ]+)\)/;function so(r){var t=r&&Zs.exec(r);if(t){var e=t[1].split(","),i=+Zr(e[0]),n=+Zr(e[1]),a=+Zr(e[2]),o=+Zr(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(h){return h<=0?0:h>=1?1:no(0,i,a,1,h,s)&&K(0,n,o,1,s[0])}}}var Us=(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,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var h=n%i;this._startTime=t-h,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=Or(t)?t:ee[t]||so(t)},r})(),ho=(function(){function r(t){this.value=t}return r})(),Vs=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new ho(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})(),ae=(function(){function r(t){this._list=new Vs,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var h=i.head;i.remove(h),delete n[h.key],a=h.value,this._lastRemovedEntry=h}s?s.value=e:s=new ho(e),s.key=t,i.insertEntry(s),n[t]=s}return a},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})(),qn={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 Nt(r){return r=Math.round(r),r<0?0:r>255?255:r}function tn(r){return r<0?0:r>1?1:r}function _i(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Nt(parseFloat(t)/100*255):Nt(parseInt(t,10))}function ur(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?tn(parseFloat(t)/100):tn(parseFloat(t))}function gi(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 de(r,t,e){return r+(t-r)*e}function st(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function rn(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var fo=new ae(20),pe=null;function _r(r,t){pe&&rn(pe,t),pe=fo.put(r,pe||t.slice())}function At(r,t){if(r){t=t||[];var e=fo.get(r);if(e)return rn(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in qn)return rn(t,qn[i]),_r(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){st(t,0,0,0,1);return}return st(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),_r(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){st(t,0,0,0,1);return}return st(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),_r(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var h=i.substr(0,o),f=i.substr(o+1,s-(o+1)).split(","),u=1;switch(h){case"rgba":if(f.length!==4)return f.length===3?st(t,+f[0],+f[1],+f[2],1):st(t,0,0,0,1);u=ur(f.pop());case"rgb":if(f.length>=3)return st(t,_i(f[0]),_i(f[1]),_i(f[2]),f.length===3?u:ur(f[3])),_r(r,t),t;st(t,0,0,0,1);return;case"hsla":if(f.length!==4){st(t,0,0,0,1);return}return f[3]=ur(f[3]),en(f,t),_r(r,t),t;case"hsl":if(f.length!==3){st(t,0,0,0,1);return}return en(f,t),_r(r,t),t;default:return}}st(t,0,0,0,1)}}function en(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=ur(r[1]),n=ur(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],st(t,Nt(gi(o,a,e+1/3)*255),Nt(gi(o,a,e)*255),Nt(gi(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Qs(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,n=Math.min(t,e,i),a=Math.max(t,e,i),o=a-n,s=(a+n)/2,h,f;if(o===0)h=0,f=0;else{s<.5?f=o/(a+n):f=o/(2-a-n);var u=((a-t)/6+o/2)/o,l=((a-e)/6+o/2)/o,v=((a-i)/6+o/2)/o;t===a?h=v-l:e===a?h=1/3+u-v:i===a&&(h=2/3+l-u),h<0&&(h+=1),h>1&&(h-=1)}var c=[h*360,f,s];return r[3]!=null&&c.push(r[3]),c}}function $n(r,t){var e=At(r);if(e){for(var i=0;i<3;i++)e[i]=e[i]*(1-t)|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return ei(e,e.length===4?"rgba":"rgb")}}function Ru(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=At(t[n]),s=At(t[a]),h=i-n,f=ei([Nt(de(o[0],s[0],h)),Nt(de(o[1],s[1],h)),Nt(de(o[2],s[2],h)),tn(de(o[3],s[3],h))],"rgba");return e?{color:f,leftIndex:n,rightIndex:a,value:i}:f}}function Du(r,t,e,i){var n=At(r);if(r)return n=Qs(n),e!=null&&(n[1]=ur(Or(e)?e(n[1]):e)),i!=null&&(n[2]=ur(Or(i)?i(n[2]):i)),ei(en(n),"rgba")}function ei(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 Ze(r,t){var e=At(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var Zn=new ae(100);function Au(r){if(Ne(r)){var t=Zn.get(r);return t||(t=$n(r,-.1),Zn.put(r,t)),t}else if(ti(r)){var e=H({},r);return e.colorStops=Ir(r.colorStops,function(i){return{offset:i.offset,color:$n(i.color,-.1)}}),e}return r}function Ks(r){return r.type==="linear"}function Js(r){return r.type==="radial"}(function(){return z.hasGlobalWindow&&Or(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}})();var nn=Array.prototype.slice;function Dt(r,t,e){return(t-r)*e+r}function yi(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=Dt(t[a],e[a],i);return r}function js(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=Dt(t[o][s],e[o][s],i)}return r}function _e(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function Un(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function th(r,t){for(var e=r.length,i=t.length,n=e>i?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function rh(r,t,e){var i=r,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var h=a;h<o;h++)i.push(e===1?n[h]:nn.call(n[h]))}for(var f=i[0]&&i[0].length,h=0;h<i.length;h++)if(e===1)isNaN(i[h])&&(i[h]=n[h]);else for(var u=0;u<f;u++)isNaN(i[h][u])&&(i[h][u]=n[h][u])}}function Be(r){if(Mt(r)){var t=r.length;if(Mt(r[0])){for(var e=[],i=0;i<t;i++)e.push(nn.call(r[i]));return e}return nn.call(r)}return r}function He(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 eh(r){return Mt(r&&r[0])?2:1}var ge=0,ze=1,uo=2,Qr=3,an=4,on=5,Vn=6;function Qn(r){return r===an||r===on}function ye(r){return r===ze||r===uo}var Yr=[0,0,0,0],ih=(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},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Vn,h=e;if(Mt(e)){var f=eh(e);s=f,(f===1&&!Oe(e[0])||f===2&&!Oe(e[0][0]))&&(o=!0)}else if(Oe(e)&&!Jo(e))s=ge;else if(Ne(e))if(!isNaN(+e))s=ge;else{var u=At(e);u&&(h=u,s=Qr)}else if(ti(e)){var l=H({},h);l.colorStops=Ir(e.colorStops,function(c){return{offset:c.offset,color:At(c.color)}}),Ks(e)?s=an:Js(e)&&(s=on),h=l}a===0?this.valType=s:(s!==this.valType||s===Vn)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:h,rawValue:e,percent:0};return i&&(v.easing=i,v.easingFunc=Or(i)?i:ee[i]||so(i)),n.push(v),v},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(g,p){return g.time-p.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,h=ye(n),f=Qn(n),u=0;u<a;u++){var l=i[u],v=l.value,c=o.value;l.percent=l.time/t,s||(h&&u!==a-1?rh(v,c,n):f&&th(v.colorStops,c.colorStops))}if(!s&&n!==on&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var _=i[0].value,u=0;u<a;u++)n===ge?i[u].additiveValue=i[u].value-_:n===Qr?i[u].additiveValue=_e([],i[u].value,_,-1):ye(n)&&(i[u].additiveValue=n===ze?_e([],i[u].value,_,-1):Un([],i[u].value,_,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,h=this.propName,f=a===Qr,u,l=this._lastFr,v=Math.min,c,_;if(s===1)c=_=o[0];else{if(e<0)u=0;else if(e<this._lastFrP){var g=v(l+1,s-1);for(u=g;u>=0&&!(o[u].percent<=e);u--);u=v(u,s-2)}else{for(u=l;u<s&&!(o[u].percent>e);u++);u=v(u-1,s-2)}_=o[u+1],c=o[u]}if(c&&_){this._lastFr=u,this._lastFrP=e;var p=_.percent-c.percent,d=p===0?1:v((e-c.percent)/p,1);_.easingFunc&&(d=_.easingFunc(d));var y=i?this._additiveValue:f?Yr:t[h];if((ye(a)||f)&&!y&&(y=this._additiveValue=[]),this.discrete)t[h]=d<1?c.rawValue:_.rawValue;else if(ye(a))a===ze?yi(y,c[n],_[n],d):js(y,c[n],_[n],d);else if(Qn(a)){var m=c[n],w=_[n],b=a===an;t[h]={type:b?"linear":"radial",x:Dt(m.x,w.x,d),y:Dt(m.y,w.y,d),colorStops:Ir(m.colorStops,function(S,C){var L=w.colorStops[C];return{offset:Dt(S.offset,L.offset,d),color:He(yi([],S.color,L.color,d))}}),global:w.global},b?(t[h].x2=Dt(m.x2,w.x2,d),t[h].y2=Dt(m.y2,w.y2,d)):t[h].r=Dt(m.r,w.r,d)}else if(f)yi(y,c[n],_[n],d),i||(t[h]=He(y));else{var T=Dt(c[n],_[n],d);i?this._additiveValue=T:t[h]=T}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===ge?t[i]=t[i]+n:e===Qr?(At(t[i],Yr),_e(Yr,Yr,n,1),t[i]=He(Yr)):e===ze?_e(t[i],t[i],n,1):e===uo&&Un(t[i],t[i],n,1)},r})(),Sn=(function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){bn("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,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,at(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],h=a[s];if(!h){h=a[s]=new ih(s);var f=void 0,u=this._getAdditiveTrack(s);if(u){var l=u.keyframes,v=l[l.length-1];f=v&&v.value,u.valType===Qr&&f&&(f=He(f))}else f=this._target[s];if(f==null)continue;t>0&&h.addKeyframe(0,Be(f),n),this._trackKeys.push(s)}h.addKeyframe(t,Be(e[s]),n)}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 n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],h=this._getAdditiveTrack(o),f=s.keyframes,u=f.length;if(s.prepare(n,h),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var l=f[u-1];l&&(e._target[s.propName]=l.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var v=new Us({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){e._started=2;var _=e._additiveAnimators;if(_){for(var g=!1,p=0;p<_.length;p++)if(_[p]._clip){g=!0;break}g||(e._additiveAnimators=null)}for(var p=0;p<i.length;p++)i[p].step(e._target,c);var d=e._onframeCbs;if(d)for(var p=0;p<d.length;p++)d[p](e._target,c)},ondestroy:function(){e._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.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 Ir(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,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var a=e[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,h=s[i?0:s.length-1];h&&(t[a]=Be(h.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||at(t);for(var i=0;i<e.length;i++){var n=e[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})();function Pr(){return new Date().getTime()}var nh=(function(r){F(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,n=e.next;i?i.next=n:this._head=n,n?n.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=Pr()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(Xe(i),!e._paused&&e.update())}Xe(i)},t.prototype.start=function(){this._running||(this._time=Pr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Pr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Pr()-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 n=new Sn(e,i.loop);return this.addAnimator(n),n},t})(zr),ah=300,mi=z.domSupported,wi=(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=Ir(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}})(),Kn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Jn=!1;function sn(r){var t=r.pointerType;return t==="pen"||t==="touch"}function oh(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 Ti(r){r&&(r.zrByTouch=!0)}function sh(r,t){return pt(r.dom,new hh(r,t),!0)}function lo(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 hh=(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})(),_t={mousedown:function(r){r=pt(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=pt(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=pt(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=pt(this.dom,r);var t=r.toElement||r.relatedTarget;lo(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Jn=!0,r=pt(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Jn||(r=pt(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=pt(this.dom,r),Ti(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),_t.mousemove.call(this,r),_t.mousedown.call(this,r)},touchmove:function(r){r=pt(this.dom,r),Ti(r),this.handler.processGesture(r,"change"),_t.mousemove.call(this,r)},touchend:function(r){r=pt(this.dom,r),Ti(r),this.handler.processGesture(r,"end"),_t.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<ah&&_t.click.call(this,r)},pointerdown:function(r){_t.mousedown.call(this,r)},pointermove:function(r){sn(r)||_t.mousemove.call(this,r)},pointerup:function(r){_t.mouseup.call(this,r)},pointerout:function(r){sn(r)||_t.mouseout.call(this,r)}};et(["click","dblclick","contextmenu"],function(r){_t[r]=function(t){t=pt(this.dom,t),this.trigger(r,t)}});var hn={pointermove:function(r){sn(r)||hn.mousemove.call(this,r)},pointerup:function(r){hn.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 fh(r,t){var e=t.domHandlers;z.pointerEventsSupported?et(wi.pointer,function(i){ke(t,i,function(n){e[i].call(r,n)})}):(z.touchEventsSupported&&et(wi.touch,function(i){ke(t,i,function(n){e[i].call(r,n),oh(t)})}),et(wi.mouse,function(i){ke(t,i,function(n){n=Cn(n),t.touching||e[i].call(r,n)})}))}function uh(r,t){z.pointerEventsSupported?et(Kn.pointer,e):z.touchEventsSupported||et(Kn.mouse,e);function e(i){function n(a){a=Cn(a),lo(r,a.target)||(a=sh(r,a),t.domHandlers[i].call(r,a))}ke(t,i,n,{capture:!0})}}function ke(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,ws(r.domTarget,t,e,i)}function bi(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&Ts(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var jn=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),lh=(function(r){F(t,r);function t(e,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new jn(e,_t),mi&&(n._globalHandlerScope=new jn(document,hn)),fh(n,n._localHandlerScope),n}return t.prototype.dispose=function(){bi(this._localHandlerScope),mi&&bi(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,mi&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?uh(this,i):bi(i)}},t})(zr),vo=1;z.hasGlobalWindow&&(vo=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ue=vo,fn=.4,un="#333",ln="#ccc",vh="#eee",ta=Ls,ra=5e-5;function Ut(r){return r>ra||r<-ra}var Vt=[],gr=[],Ci=te(),Si=Math.abs,co=(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 Ut(this.rotation)||Ut(this.x)||Ut(this.y)||Ut(this.scaleX-1)||Ut(this.scaleY-1)||Ut(this.skewX)||Ut(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(ta(i),this.invTransform=null);return}i=i||te(),e?this.getLocalTransform(i):ta(i),t&&(e?li(i,t,i):Ps(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Vt);var i=Vt[0]<0?-1:1,n=Vt[1]<0?-1:1,a=((Vt[0]-i)*e+i)/Vt[0]||0,o=((Vt[1]-n)*e+n)/Vt[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||te(),Qa(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],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,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||te(),li(gr,t.invTransform,e),e=gr);var i=this.originX,n=this.originY;(i||n)&&(Ci[4]=i,Ci[5]=n,li(gr,e,Ci),gr[4]-=i,gr[5]-=n,e=gr),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],n=this.invTransform;return n&&jr(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&jr(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&Si(t[0]-1)>1e-10&&Si(t[3]-1)>1e-10?Math.sqrt(Si(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){ch(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,h=t.anchorY,f=t.rotation||0,u=t.x,l=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||h){var _=i+s,g=n+h;e[4]=-_*a-v*g*o,e[5]=-g*o-c*_*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=v*o,f&&Ms(e,e,f),e[4]+=i+u,e[5]+=n+l,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})(),oe=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ch(r,t){for(var e=0;e<oe.length;e++){var i=oe[e];r[i]=t[i]}}function Lt(r){me||(me=new ae(100)),r=r||Yt;var t=me.get(r);return t||(t={font:r,strWidthCache:new ae(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:cr.measureText("国",r).width,asciiCharWidth:cr.measureText("a",r).width},me.put(r,t)),t}var me;function dh(r){if(!(Li>=ea)){r=r||Yt;for(var t=[],e=+new Date,i=0;i<=127;i++)t[i]=cr.measureText(String.fromCharCode(i),r).width;var n=+new Date-e;return n>16?Li=ea:n>2&&Li++,t}}var Li=0,ea=5;function po(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=dh(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function Pt(r,t){var e=r.strWidthCache,i=e.get(t);return i==null&&(i=cr.measureText(t,r.font).width,e.put(t,i)),i}function ia(r,t,e,i){var n=Pt(Lt(t),r),a=ii(t),o=Fr(0,n,e),s=lr(0,a,i),h=new O(o,s,n,a);return h}function Eu(r,t,e,i){var n=((r||"")+"").split(`
|
|
15
|
+
`),a=n.length;if(a===1)return ia(n[0],t,e,i);for(var o=new O(0,0,0,0),s=0;s<n.length;s++){var h=ia(n[s],t,e,i);s===0?o.copy(h):o.union(h)}return o}function Fr(r,t,e,i){return e==="right"?i?r+=t:r-=t:e==="center"&&(i?r+=t/2:r-=t/2),r}function lr(r,t,e,i){return e==="middle"?i?r+=t/2:r-=t/2:e==="bottom"&&(i?r+=t:r-=t),r}function ii(r){return Lt(r).stWideCharWidth}function se(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function ph(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,h=e.x,f=e.y,u="left",l="top";if(i instanceof Array)h+=se(i[0],e.width),f+=se(i[1],e.height),u=null,l=null;else switch(i){case"left":h-=n,f+=s,u="right",l="middle";break;case"right":h+=n+o,f+=s,l="middle";break;case"top":h+=o/2,f-=n,u="center",l="bottom";break;case"bottom":h+=o/2,f+=a+n,u="center";break;case"inside":h+=o/2,f+=s,u="center",l="middle";break;case"insideLeft":h+=n,f+=s,l="middle";break;case"insideRight":h+=o-n,f+=s,u="right",l="middle";break;case"insideTop":h+=o/2,f+=n,u="center";break;case"insideBottom":h+=o/2,f+=a-n,u="center",l="bottom";break;case"insideTopLeft":h+=n,f+=n;break;case"insideTopRight":h+=o-n,f+=n,u="right";break;case"insideBottomLeft":h+=n,f+=a-n,l="bottom";break;case"insideBottomRight":h+=o-n,f+=a-n,u="right",l="bottom";break}return r=r||{},r.x=h,r.y=f,r.align=u,r.verticalAlign=l,r}var Pi="__zr_normal__",Mi=oe.concat(["ignore"]),_h=je(oe,function(r,t){return r[t]=!0,r},{ignore:!1}),yr={},gh=new O(0,0,0,0),we=[],ni=(function(){function r(t){this.id=Xa(),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 n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[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,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,h=!1;a.parent=n?this:null;var f=!1;a.copyTransform(e);var u=i.position!=null,l=i.autoOverflowArea,v=void 0;if((l||u)&&(v=gh,i.layoutRect?v.copy(i.layoutRect):v.copy(this.getBoundingRect()),n||v.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(yr,i,v):ph(yr,i,v),a.x=yr.x,a.y=yr.y,o=yr.align,s=yr.verticalAlign;var c=i.origin;if(c&&i.rotation!=null){var _=void 0,g=void 0;c==="center"?(_=v.width*.5,g=v.height*.5):(_=se(c[0],v.width),g=se(c[1],v.height)),f=!0,a.originX=-a.x+_+(n?0:v.x),a.originY=-a.y+g+(n?0:v.y)}}i.rotation!=null&&(a.rotation=i.rotation);var p=i.offset;p&&(a.x+=p[0],a.y+=p[1],f||(a.originX=-p[0],a.originY=-p[1]));var d=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(l){var y=d.overflowRect=d.overflowRect||new O(0,0,0,0);a.getLocalTransform(we),Qa(we,we),O.copy(y,v),y.applyTransform(we)}else d.overflowRect=null;var 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!==d.fill||b!==d.stroke||T!==d.autoStroke||o!==d.align||s!==d.verticalAlign)&&(h=!0,d.fill=w,d.stroke=b,d.autoStroke=T,d.align=o,d.verticalAlign=s,e.setDefaultTextStyle(d)),e.__dirty|=nt,h&&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()?ln:un},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&At(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,ei(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(zt(t))for(var i=t,n=at(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}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 n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Pi)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},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,Mi)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},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(Pi,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===Pi,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,h=this.stateTransition;if(!(Ct(s,t)>=0&&(e||s.length===1))){var f;if(this.stateProxy&&!a&&(f=this.stateProxy(t)),f||(f=this.states&&this.states[t]),!f&&!a){bn("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(f);var u=!!(f&&f.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,f,this._normalState,e,!i&&!this.__inHover&&h&&h.duration>0,h);var l=this._textContent,v=this._textGuide;return l&&l.useState(t,e,i,u),v&&v.useState(t,e,i,u),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nt),f}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var h=0;h<o;h++)if(t[h]!==a[h]){s=!1;break}}if(s)return;for(var h=0;h<o;h++){var f=t[h],u=void 0;this.stateProxy&&(u=this.stateProxy(f,t)),u||(u=this.states[f]),u&&n.push(u)}var l=n[o-1],v=!!(l&&l.hoverLayer||i);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(n),_=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!e&&!this.__inHover&&_&&_.duration>0,_);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,e,v),p&&p.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nt)}},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=Ct(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=Ct(n,t),o=Ct(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n<t.length;n++){var a=t[n];H(e,a),a.textConfig&&(i=i||{},H(i,a.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,n,a,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=H({},n?this.textConfig:i.textConfig),H(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var h={},f=!1,u=0;u<Mi.length;u++){var l=Mi[u],v=a&&_h[l];e&&e[l]!=null?v?(f=!0,h[l]=e[l]):this[l]=e[l]:s&&i[l]!=null&&(v?(f=!0,h[l]=i[l]):this[l]=i[l])}if(!a)for(var u=0;u<this.animators.length;u++){var c=this.animators[u],_=c.targetName;c.getLoop()||c.__changeFinalValue(_?(e||i)[_]:e||i)}f&&this._transitionState(t,h,o)},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 co,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|=nt;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 n=t?this[t]:this,a=new Sn(n,e,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var a=n.animators,o=Ct(a,t);o>=0&&a.splice(o,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,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,i){xi(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){xi(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,n){for(var a=xi(this,e,i,n),o=0;o<a.length;o++)a[o].__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=nt;function e(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var h=this[n]=[];s(this,h)}return this[n]},set:function(h){this[a]=h[0],this[o]=h[1],this[n]=h,s(this,h)}});function s(h,f){Object.defineProperty(f,0,{get:function(){return h[a]},set:function(u){h[a]=u}}),Object.defineProperty(f,1,{get:function(){return h[o]},set:function(u){h[o]=u}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),r})();Ga(ni,zr);Ga(ni,co);function xi(r,t,e,i,n){e=e||{};var a=[];_o(r,"",r,t,e,i,a,n);var o=a.length,s=!1,h=e.done,f=e.aborted,u=function(){s=!0,o--,o<=0&&(s?h&&h():f&&f())},l=function(){o--,o<=0&&(s?h&&h():f&&f())};o||h&&h(),a.length>0&&e.during&&a[0].during(function(_,g){e.during(g)});for(var v=0;v<a.length;v++){var c=a[v];u&&c.done(u),l&&c.aborted(l),e.force&&c.duration(e.duration),c.start(e.easing)}return a}function Ri(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function yh(r){return Mt(r[0])}function mh(r,t,e){if(Mt(t[e]))if(Mt(r[e])||(r[e]=[]),Qo(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),Ri(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(yh(n))for(var s=n[0].length,h=0;h<o;h++)a[h]?Ri(a[h],n[h],s):a[h]=Array.prototype.slice.call(n[h]);else Ri(a,n,o);a.length=n.length}else r[e]=t[e]}function wh(r,t){return r===t||Mt(r)&&Mt(t)&&Th(r,t)}function Th(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 _o(r,t,e,i,n,a,o,s){for(var h=at(i),f=n.duration,u=n.delay,l=n.additive,v=n.setToFinal,c=!zt(a),_=r.animators,g=[],p=0;p<h.length;p++){var d=h[p],y=i[d];if(y!=null&&e[d]!=null&&(c||a[d]))if(zt(y)&&!Mt(y)&&!ti(y)){if(t){s||(e[d]=y,r.updateDuringAnimation(t));continue}_o(r,d,e[d],y,n,a&&a[d],o,s)}else g.push(d);else s||(e[d]=y,r.updateDuringAnimation(t),g.push(d))}var m=g.length;if(!l&&m)for(var w=0;w<_.length;w++){var b=_[w];if(b.targetName===t){var T=b.stopTracks(g);if(T){var S=Ct(_,b);_.splice(S,1)}}}if(n.force||(g=xn(g,function(M){return!wh(i[M],e[M])}),m=g.length),m>0||n.force&&!o.length){var C=void 0,L=void 0,P=void 0;if(s){L={},v&&(C={});for(var w=0;w<m;w++){var d=g[w];L[d]=e[d],v?C[d]=i[d]:e[d]=i[d]}}else if(v){P={};for(var w=0;w<m;w++){var d=g[w];P[d]=Be(e[d]),mh(e,i,d)}}var b=new Sn(e,!1,!1,l?xn(_,function(D){return D.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),v&&C&&b.whenWithKeys(0,C,g),P&&b.whenWithKeys(0,P,g),b.whenWithKeys(f??500,s?L:i,g).delay(u||0),r.addAnimator(b,t),o.push(b)}}var go=(function(r){F(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,n=0;n<i.length;n++)if(i[n].name===e)return i[n]},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 n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=Ct(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),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,n=this._children,a=Ct(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n<e.length;n++){var a=e[n];i&&a.removeSelfFromZr(i),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];e.call(i,o,a)}return this},t.prototype.traverse=function(e,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=e.call(i,a);a.isGroup&&!o&&a.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 n=this._children[i];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new O(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var h=n[s];if(!(h.ignore||h.invisible)){var f=h.getBoundingRect(),u=h.getLocalTransform(a);u?(O.applyTransform(i,f,u),o=o||i.clone(),o.union(i)):(o=o||f.clone(),o.union(f))}}return o||i},t})(ni);go.prototype.type="group";/*!
|
|
16
|
+
* ZRender, a high performance 2d drawing library.
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
19
|
+
* All rights reserved.
|
|
20
|
+
*
|
|
21
|
+
* LICENSE
|
|
22
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
23
|
+
*/var We={},yo={};function bh(r){delete yo[r]}function Ch(r){if(!r)return!1;if(typeof r=="string")return Ze(r,1)<fn;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=Ze(t[n].color,1);return e/=i,e<fn}return!1}var Sh=(function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var a=new Ns,o=i.renderer||"canvas";We[o]||(o=at(We)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new We[o](e,a,i,t),h=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var f=!z.node&&!z.worker&&!h?new lh(s.getViewportRoot(),s.root):null,u=i.useCoarsePointer,l=u==null||u==="auto"?z.touchEventsSupported:!!u,v=44,c;l&&(c=vt(i.pointerSize,v)),this.handler=new ja(a,s,f,s.root,c),this.animation=new nh({stage:{update:h?null:function(){return n._flush(!0)}}}),h||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=Ch(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=Pr();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=Pr();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-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)},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 go&&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,bh(this.id))},r})();function Iu(r,t){var e=new Sh(Xa(),r,t);return yo[e.id]=e,e}function Ou(r,t){We[r]=t}var vn=new ae(50);function Lh(r){if(typeof r=="string"){var t=vn.get(r);return t&&t.image}else return r}function mo(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=vn.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!ai(t)&&a.pending.push(o)):(t=cr.loadImage(r,na,na),t.__zrImageSrc=r,vn.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function na(){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 ai(r){return r&&r.width&&r.height}var Di=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ph(r,t,e,i,n,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
|
|
24
|
+
`);a=wo(e,i,n,a);for(var s=!1,h={},f=0,u=o.length;f<u;f++)To(h,o[f],a),o[f]=h.textLine,s=s||h.isTruncated;r.text=o.join(`
|
|
25
|
+
`),r.isTruncated=s}function wo(r,t,e,i){i=i||{};var n=H({},i);e=vt(e,"..."),n.maxIterations=vt(i.maxIterations,2);var a=n.minChar=vt(i.minChar,0),o=n.fontMeasureInfo=Lt(t),s=o.asciiCharWidth;n.placeholder=vt(i.placeholder,"");for(var h=r=Math.max(0,r-1),f=0;f<a&&h>=s;f++)h-=s;var u=Pt(o,e);return u>h&&(e="",u=0),h=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=h,n.containerWidth=r,n}function To(r,t,e){var i=e.containerWidth,n=e.contentWidth,a=e.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=Pt(a,t);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var h=s===0?Mh(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,h),o=Pt(a,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function Mh(r,t,e){for(var i=0,n=0,a=r.length;n<a&&i<t;n++)i+=po(e,r.charCodeAt(n));return n}function xh(r,t,e,i){var n=Ln(r),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,h=o?o[0]+o[2]:0,f=t.font,u=a==="truncate",l=ii(f),v=vt(t.lineHeight,l),c=t.lineOverflow==="truncate",_=!1,g=t.width;g==null&&e!=null&&(g=e-s);var p=t.height;p==null&&i!=null&&(p=i-h);var d;g!=null&&(a==="break"||a==="breakAll")?d=n?bo(n,t.font,g,a==="breakAll",0).lines:[]:d=n?n.split(`
|
|
26
|
+
`):[];var y=d.length*v;if(p==null&&(p=y),y>p&&c){var m=Math.floor(p/v);_=_||d.length>m,d=d.slice(0,m),y=d.length*v}if(n&&u&&g!=null)for(var w=wo(g,f,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},T=0;T<d.length;T++)To(b,d[T],w),d[T]=b.textLine,_=_||b.isTruncated;for(var S=p,C=0,L=Lt(f),T=0;T<d.length;T++)C=Math.max(Pt(L,d[T]),C);g==null&&(g=C);var P=g;return S+=h,P+=s,{lines:d,height:p,outerWidth:P,outerHeight:S,lineHeight:v,calculatedLineHeight:l,contentWidth:C,contentHeight:y,width:g,isTruncated:_}}var Rh=(function(){function r(){}return r})(),aa=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),Dh=(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 Ah(r,t,e,i,n){var a=new Dh,o=Ln(r);if(!o)return a;var s=t.padding,h=s?s[1]+s[3]:0,f=s?s[0]+s[2]:0,u=t.width;u==null&&e!=null&&(u=e-h);var l=t.height;l==null&&i!=null&&(l=i-f);for(var v=t.overflow,c=(v==="break"||v==="breakAll")&&u!=null?{width:u,accumWidth:0,breakAll:v==="breakAll"}:null,_=Di.lastIndex=0,g;(g=Di.exec(o))!=null;){var p=g.index;p>_&&Ai(a,o.substring(_,p),t,c),Ai(a,g[2],t,c,g[1]),_=Di.lastIndex}_<o.length&&Ai(a,o.substring(_,o.length),t,c);var d=[],y=0,m=0,w=v==="truncate",b=t.lineOverflow==="truncate",T={};function S(It,Ot,Xt){It.width=Ot,It.lineHeight=Xt,y+=Xt,m=Math.max(m,Ot)}t:for(var C=0;C<a.lines.length;C++){for(var L=a.lines[C],P=0,M=0,D=0;D<L.tokens.length;D++){var R=L.tokens[D],x=R.styleName&&t.rich[R.styleName]||{},B=R.textPadding=x.padding,k=B?B[1]+B[3]:0,Y=R.font=x.font||t.font;R.contentHeight=ii(Y);var Z=vt(x.height,R.contentHeight);if(R.innerHeight=Z,B&&(Z+=B[0]+B[2]),R.height=Z,R.lineHeight=Fe(x.lineHeight,t.lineHeight,Z),R.align=x&&x.align||n,R.verticalAlign=x&&x.verticalAlign||"middle",b&&l!=null&&y+R.lineHeight>l){var xt=a.lines.length;D>0?(L.tokens=L.tokens.slice(0,D),S(L,M,P),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<xt;break t}var J=x.width,ot=J==null||J==="auto";if(typeof J=="string"&&J.charAt(J.length-1)==="%")R.percentWidth=J,d.push(R),R.contentWidth=Pt(Lt(Y),R.text);else{if(ot){var N=x.backgroundColor,G=N&&N.image;G&&(G=Lh(G),ai(G)&&(R.width=Math.max(R.width,G.width*Z/G.height)))}var U=w&&u!=null?u-M:null;U!=null&&U<R.width?!ot||U<k?(R.text="",R.width=R.contentWidth=0):(Ph(T,R.text,U-k,Y,t.ellipsis,{minChar:t.truncateMinChar}),R.text=T.text,a.isTruncated=a.isTruncated||T.isTruncated,R.width=R.contentWidth=Pt(Lt(Y),R.text)):R.contentWidth=Pt(Lt(Y),R.text)}R.width+=k,M+=R.width,x&&(P=Math.max(P,R.lineHeight))}S(L,M,P)}a.outerWidth=a.width=vt(u,m),a.outerHeight=a.height=vt(l,y),a.contentHeight=y,a.contentWidth=m,a.outerWidth+=h,a.outerHeight+=f;for(var C=0;C<d.length;C++){var R=d[C],Et=R.percentWidth;R.width=parseInt(Et,10)/100*a.width}return a}function Ai(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,h=o.font||e.font,f=!1,u,l;if(i){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var _=se(o.width,i.width)+c;s.length>0&&_+i.accumWidth>i.width&&(u=t.split(`
|
|
27
|
+
`),f=!0),i.accumWidth=_}else{var g=bo(t,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+c,l=g.linesWidths,u=g.lines}}u||(u=t.split(`
|
|
28
|
+
`));for(var p=Lt(h),d=0;d<u.length;d++){var y=u[d],m=new Rh;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=l?l[d]:Pt(p,y),!d&&!f){var w=(s[s.length-1]||(s[0]=new aa)).tokens,b=w.length;b===1&&w[0].isLineHolder?w[0]=m:(y||!b||a)&&w.push(m)}else s.push(new aa([m]))}}function Eh(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Ih=je(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Oh(r){return Eh(r)?!!Ih[r]:!0}function bo(r,t,e,i,n){for(var a=[],o=[],s="",h="",f=0,u=0,l=Lt(t),v=0;v<r.length;v++){var c=r.charAt(v);if(c===`
|
|
29
|
+
`){h&&(s+=h,u+=f),a.push(s),o.push(u),s="",h="",f=0,u=0;continue}var _=po(l,c.charCodeAt(0)),g=i?!1:!Oh(c);if(a.length?u+_>e:n+u+_>e){u?(s||h)&&(g?(s||(s=h,h="",f=0,u=f),a.push(s),o.push(u-f),h+=c,f+=_,s="",u=f):(h&&(s+=h,h="",f=0),a.push(s),o.push(u),s=c,u=_)):g?(a.push(h),o.push(f),h=c,f=_):(a.push(c),o.push(_));continue}u+=_,g?(h+=c,f+=_):(h&&(s+=h,h="",f=0),s+=c)}return h&&(s+=h),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}function oa(r,t,e,i,n,a){if(r.baseX=e,r.baseY=i,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;O.set(sa,Fr(e,o,n),lr(i,s,a),o,s),O.intersect(t,sa,null,ha);var h=ha.outIntersectRect;r.outerWidth=h.width,r.outerHeight=h.height,r.baseX=Fr(h.x,h.width,n,!0),r.baseY=lr(h.y,h.height,a,!0)}}var sa=new O(0,0,0,0),ha={outIntersectRect:{},clamp:!0};function Ln(r){return r!=null?r+="":r=""}function Fh(r){var t=Ln(r.text),e=r.font,i=Pt(Lt(e),t),n=ii(e);return cn(r,i,n,null)}function cn(r,t,e,i){var n=new O(Fr(r.x||0,t,r.textAlign),lr(r.y||0,e,r.textBaseline),t,e),a=i??(Co(r)?r.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function Co(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var dn="__zr_style_"+Math.round(Math.random()*10),vr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},oi={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};vr[dn]=!0;var fa=["z","z2","invisible"],Bh=["invisible"],ue=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=at(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}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,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Hh(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var h=this.parent;h;){if(h.ignore)return!1;h=h.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 n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,h=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new O(0,0,0,0)),i?O.applyTransform(e,n,i):e.copy(n),(o||s||h)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(h),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+h-o));var f=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-f),e.y=Math.floor(e.y-f),e.width=Math.ceil(e.width+1+f*2),e.height=Math.ceil(e.height+1+f*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new O(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|=Vr,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Vr)},t.prototype.styleUpdated=function(){this.__dirty&=~Vr},t.prototype.createStyle=function(e){return ri(vr,e)},t.prototype.useStyle=function(e){e[dn]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[dn]},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,fa)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var h=!(i&&a),f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):h&&(f=n.style),f)if(o){var u=this.style;if(this.style=this.createStyle(h?{}:u),h)for(var l=at(u),v=0;v<l.length;v++){var c=l[v];c in f&&(f[c]=f[c],this.style[c]=u[c])}for(var _=at(f),v=0;v<_.length;v++){var c=_[v];this.style[c]=this.style[c]}this._transitionState(e,{style:f},s,this.getAnimationStyleProps())}else this.useStyle(f);for(var g=this.__inHover?Bh:fa,v=0;v<g.length;v++){var c=g[v];i&&i[c]!=null?this[c]=i[c]:h&&n[c]!=null&&(this[c]=n[c])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,i){return H(e,i),e},t.prototype.getAnimationStyleProps=function(){return oi},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=nt|Vr})(),t})(ni),Ei=new O(0,0,0,0),Ii=new O(0,0,0,0);function Hh(r,t,e){return Ei.copy(r.getBoundingRect()),r.transform&&Ei.applyTransform(r.transform),Ii.width=t,Ii.height=e,!Ei.intersect(Ii)}var ut=Math.min,lt=Math.max,Oi=Math.sin,Fi=Math.cos,Qt=Math.PI*2,Te=Hr(),be=Hr(),Ce=Hr();function ua(r,t,e,i,n,a){n[0]=ut(r,e),n[1]=ut(t,i),a[0]=lt(r,e),a[1]=lt(t,i)}var la=[],va=[];function zh(r,t,e,i,n,a,o,s,h,f){var u=ao,l=K,v=u(r,e,n,o,la);h[0]=1/0,h[1]=1/0,f[0]=-1/0,f[1]=-1/0;for(var c=0;c<v;c++){var _=l(r,e,n,o,la[c]);h[0]=ut(_,h[0]),f[0]=lt(_,f[0])}v=u(t,i,a,s,va);for(var c=0;c<v;c++){var g=l(t,i,a,s,va[c]);h[1]=ut(g,h[1]),f[1]=lt(g,f[1])}h[0]=ut(r,h[0]),f[0]=lt(r,f[0]),h[0]=ut(o,h[0]),f[0]=lt(o,f[0]),h[1]=ut(t,h[1]),f[1]=lt(t,f[1]),h[1]=ut(s,h[1]),f[1]=lt(s,f[1])}function kh(r,t,e,i,n,a,o,s){var h=oo,f=tt,u=lt(ut(h(r,e,n),1),0),l=lt(ut(h(t,i,a),1),0),v=f(r,e,n,u),c=f(t,i,a,l);o[0]=ut(r,n,v),o[1]=ut(t,a,c),s[0]=lt(r,n,v),s[1]=lt(t,a,c)}function Wh(r,t,e,i,n,a,o,s,h){var f=Cr,u=Sr,l=Math.abs(n-a);if(l%Qt<1e-4&&l>1e-4){s[0]=r-e,s[1]=t-i,h[0]=r+e,h[1]=t+i;return}if(Te[0]=Fi(n)*e+r,Te[1]=Oi(n)*i+t,be[0]=Fi(a)*e+r,be[1]=Oi(a)*i+t,f(s,Te,be),u(h,Te,be),n=n%Qt,n<0&&(n=n+Qt),a=a%Qt,a<0&&(a=a+Qt),n>a&&!o?a+=Qt:n<a&&o&&(n+=Qt),o){var v=a;a=n,n=v}for(var c=0;c<a;c+=Math.PI/2)c>n&&(Ce[0]=Fi(c)*e+r,Ce[1]=Oi(c)*i+t,f(s,Ce,s),u(h,Ce,h))}var I={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Kt=[],Jt=[],yt=[],Ft=[],mt=[],wt=[],Bi=Math.min,Hi=Math.max,jt=Math.cos,tr=Math.sin,Rt=Math.abs,pn=Math.PI,Ht=pn*2,zi=typeof Float32Array<"u",Xr=[];function ki(r){var t=Math.round(r/pn*1e8)/1e8;return t%2*pn}function Nh(r,t){var e=ki(r[0]);e<0&&(e+=Ht);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=Ht?n=e+Ht:t&&e-n>=Ht?n=e-Ht:!t&&e>n?n=e+(Ht-ki(e-n)):t&&e<n&&(n=e-(Ht-ki(n-e))),r[0]=e,r[1]=n}var Br=(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=Rt(i/Ue/t)||0,this._uy=Rt(i/Ue/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(I.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=Rt(t-this._xi),n=Rt(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(I.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(I.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(I.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),Xr[0]=n,Xr[1]=a,Nh(Xr,o),n=Xr[0],a=Xr[1];var s=a-n;return this.addData(I.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=jt(a)*i+t,this._yi=tr(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(I.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(I.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)&&zi&&(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,n=this._len,a=0;a<e;a++)i+=t[a].len();var o=this.data;if(zi&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<e;a++)for(var h=t[a].data,s=0;s<h.length;s++)this.data[n++]=h[s];this._len=n}},r.prototype.addData=function(t,e,i,n,a,o,s,h,f){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var l=0;l<arguments.length;l++)u[this._len++]=arguments[l]}},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,zi&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){yt[0]=yt[1]=mt[0]=mt[1]=Number.MAX_VALUE,Ft[0]=Ft[1]=wt[0]=wt[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],h=o===1;switch(h&&(e=t[o],i=t[o+1],n=e,a=i),s){case I.M:e=n=t[o++],i=a=t[o++],mt[0]=n,mt[1]=a,wt[0]=n,wt[1]=a;break;case I.L:ua(e,i,t[o],t[o+1],mt,wt),e=t[o++],i=t[o++];break;case I.C:zh(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],mt,wt),e=t[o++],i=t[o++];break;case I.Q:kh(e,i,t[o++],t[o++],t[o],t[o+1],mt,wt),e=t[o++],i=t[o++];break;case I.A:var f=t[o++],u=t[o++],l=t[o++],v=t[o++],c=t[o++],_=t[o++]+c;o+=1;var g=!t[o++];h&&(n=jt(c)*l+f,a=tr(c)*v+u),Wh(f,u,l,v,c,_,g,mt,wt),e=jt(_)*l+f,i=tr(_)*v+u;break;case I.R:n=e=t[o++],a=i=t[o++];var p=t[o++],d=t[o++];ua(n,a,n+p,a+d,mt,wt);break;case I.Z:e=n,i=a;break}Cr(yt,yt,mt),Sr(Ft,Ft,wt)}return o===0&&(yt[0]=yt[1]=Ft[0]=Ft[1]=0),new O(yt[0],yt[1],Ft[0]-yt[0],Ft[1]-yt[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,h=0;this._pathSegLen||(this._pathSegLen=[]);for(var f=this._pathSegLen,u=0,l=0,v=0;v<e;){var c=t[v++],_=v===1;_&&(a=t[v],o=t[v+1],s=a,h=o);var g=-1;switch(c){case I.M:a=s=t[v++],o=h=t[v++];break;case I.L:{var p=t[v++],d=t[v++],y=p-a,m=d-o;(Rt(y)>i||Rt(m)>n||v===e-1)&&(g=Math.sqrt(y*y+m*m),a=p,o=d);break}case I.C:{var w=t[v++],b=t[v++],p=t[v++],d=t[v++],T=t[v++],S=t[v++];g=Xs(a,o,w,b,p,d,T,S,10),a=T,o=S;break}case I.Q:{var w=t[v++],b=t[v++],p=t[v++],d=t[v++];g=$s(a,o,w,b,p,d,10),a=p,o=d;break}case I.A:var C=t[v++],L=t[v++],P=t[v++],M=t[v++],D=t[v++],R=t[v++],x=R+D;v+=1,_&&(s=jt(D)*P+C,h=tr(D)*M+L),g=Hi(P,M)*Bi(Ht,Math.abs(R)),a=jt(x)*P+C,o=tr(x)*M+L;break;case I.R:{s=a=t[v++],h=o=t[v++];var B=t[v++],k=t[v++];g=B*2+k*2;break}case I.Z:{var y=s-a,m=h-o;g=Math.sqrt(y*y+m*m),a=s,o=h;break}}g>=0&&(f[l++]=g,u+=g)}return this._pathLen=u,u},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,h,f,u,l,v,c=e<1,_,g,p=0,d=0,y,m=0,w,b;if(!(c&&(this._pathSegLen||this._calculateLength(),_=this._pathSegLen,g=this._pathLen,y=e*g,!y)))t:for(var T=0;T<o;){var S=i[T++],C=T===1;switch(C&&(f=i[T],u=i[T+1],s=f,h=u),S!==I.L&&m>0&&(t.lineTo(w,b),m=0),S){case I.M:s=f=i[T++],h=u=i[T++],t.moveTo(f,u);break;case I.L:{l=i[T++],v=i[T++];var L=Rt(l-f),P=Rt(v-u);if(L>n||P>a){if(c){var M=_[d++];if(p+M>y){var D=(y-p)/M;t.lineTo(f*(1-D)+l*D,u*(1-D)+v*D);break t}p+=M}t.lineTo(l,v),f=l,u=v,m=0}else{var R=L*L+P*P;R>m&&(w=l,b=v,m=R)}break}case I.C:{var x=i[T++],B=i[T++],k=i[T++],Y=i[T++],Z=i[T++],xt=i[T++];if(c){var M=_[d++];if(p+M>y){var D=(y-p)/M;qe(f,x,k,Z,D,Kt),qe(u,B,Y,xt,D,Jt),t.bezierCurveTo(Kt[1],Jt[1],Kt[2],Jt[2],Kt[3],Jt[3]);break t}p+=M}t.bezierCurveTo(x,B,k,Y,Z,xt),f=Z,u=xt;break}case I.Q:{var x=i[T++],B=i[T++],k=i[T++],Y=i[T++];if(c){var M=_[d++];if(p+M>y){var D=(y-p)/M;$e(f,x,k,D,Kt),$e(u,B,Y,D,Jt),t.quadraticCurveTo(Kt[1],Jt[1],Kt[2],Jt[2]);break t}p+=M}t.quadraticCurveTo(x,B,k,Y),f=k,u=Y;break}case I.A:var J=i[T++],ot=i[T++],N=i[T++],G=i[T++],U=i[T++],Et=i[T++],It=i[T++],Ot=!i[T++],Xt=N>G?N:G,ct=Rt(N-G)>.001,V=U+Et,A=!1;if(c){var M=_[d++];p+M>y&&(V=U+Et*(y-p)/M,A=!0),p+=M}if(ct&&t.ellipse?t.ellipse(J,ot,N,G,It,U,V,Ot):t.arc(J,ot,Xt,U,V,Ot),A)break t;C&&(s=jt(U)*N+J,h=tr(U)*G+ot),f=jt(V)*N+J,u=tr(V)*G+ot;break;case I.R:s=f=i[T],h=u=i[T+1],l=i[T++],v=i[T++];var E=i[T++],kr=i[T++];if(c){var M=_[d++];if(p+M>y){var gt=y-p;t.moveTo(l,v),t.lineTo(l+Bi(gt,E),v),gt-=E,gt>0&&t.lineTo(l+E,v+Bi(gt,kr)),gt-=kr,gt>0&&t.lineTo(l+Hi(E-gt,0),v+kr),gt-=E,gt>0&&t.lineTo(l,v+Hi(kr-gt,0));break t}p+=M}t.rect(l,v,E,kr);break;case I.Z:if(c){var M=_[d++];if(p+M>y){var D=(y-p)/M;t.lineTo(f*(1-D)+s*D,u*(1-D)+h*D);break t}p+=M}t.closePath(),f=s,u=h}}},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=I,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function mr(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,h=0,f=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)h=(t-i)/(r-e),f=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var u=h*a-o+f,l=u*u/(h*h+1);return l<=s/2*s/2}function Yh(r,t,e,i,n,a,o,s,h,f,u){if(h===0)return!1;var l=h;if(u>t+l&&u>i+l&&u>a+l&&u>s+l||u<t-l&&u<i-l&&u<a-l&&u<s-l||f>r+l&&f>e+l&&f>n+l&&f>o+l||f<r-l&&f<e-l&&f<n-l&&f<o-l)return!1;var v=Ys(r,t,e,i,n,a,o,s,f,u);return v<=l/2}function Xh(r,t,e,i,n,a,o,s,h){if(o===0)return!1;var f=o;if(h>t+f&&h>i+f&&h>a+f||h<t-f&&h<i-f&&h<a-f||s>r+f&&s>e+f&&s>n+f||s<r-f&&s<e-f&&s<n-f)return!1;var u=qs(r,t,e,i,n,a,s,h);return u<=f/2}var ca=Math.PI*2;function Se(r){return r%=ca,r<0&&(r+=ca),r}var Gr=Math.PI*2;function Gh(r,t,e,i,n,a,o,s,h){if(o===0)return!1;var f=o;s-=r,h-=t;var u=Math.sqrt(s*s+h*h);if(u-f>e||u+f<e)return!1;if(Math.abs(i-n)%Gr<1e-4)return!0;if(a){var l=i;i=Se(n),n=Se(l)}else i=Se(i),n=Se(n);i>n&&(n+=Gr);var v=Math.atan2(h,s);return v<0&&(v+=Gr),v>=i&&v<=n||v+Gr>=i&&v+Gr<=n}function rr(r,t,e,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var h=o*(e-r)+r;return h===n?1/0:h>n?s:0}var Bt=Br.CMD,er=Math.PI*2,qh=1e-4;function $h(r,t){return Math.abs(r-t)<qh}var Q=[-1,-1,-1],ht=[-1,-1];function Zh(){var r=ht[0];ht[0]=ht[1],ht[1]=r}function Uh(r,t,e,i,n,a,o,s,h,f){if(f>t&&f>i&&f>a&&f>s||f<t&&f<i&&f<a&&f<s)return 0;var u=no(t,i,a,s,f,Q);if(u===0)return 0;for(var l=0,v=-1,c=void 0,_=void 0,g=0;g<u;g++){var p=Q[g],d=p===0||p===1?.5:1,y=K(r,e,n,o,p);y<h||(v<0&&(v=ao(t,i,a,s,ht),ht[1]<ht[0]&&v>1&&Zh(),c=K(t,i,a,s,ht[0]),v>1&&(_=K(t,i,a,s,ht[1]))),v===2?p<ht[0]?l+=c<t?d:-d:p<ht[1]?l+=_<c?d:-d:l+=s<_?d:-d:p<ht[0]?l+=c<t?d:-d:l+=s<c?d:-d)}return l}function Vh(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var h=Gs(t,i,a,s,Q);if(h===0)return 0;var f=oo(t,i,a);if(f>=0&&f<=1){for(var u=0,l=tt(t,i,a,f),v=0;v<h;v++){var c=Q[v]===0||Q[v]===1?.5:1,_=tt(r,e,n,Q[v]);_<o||(Q[v]<f?u+=l<t?c:-c:u+=a<l?c:-c)}return u}else{var c=Q[0]===0||Q[0]===1?.5:1,_=tt(r,e,n,Q[0]);return _<o?0:a<t?c:-c}}function Qh(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var h=Math.sqrt(e*e-s*s);Q[0]=-h,Q[1]=h;var f=Math.abs(i-n);if(f<1e-4)return 0;if(f>=er-1e-4){i=0,n=er;var u=a?1:-1;return o>=Q[0]+r&&o<=Q[1]+r?u:0}if(i>n){var l=i;i=n,n=l}i<0&&(i+=er,n+=er);for(var v=0,c=0;c<2;c++){var _=Q[c];if(_+r>o){var g=Math.atan2(s,_),u=a?1:-1;g<0&&(g=er+g),(g>=i&&g<=n||g+er>=i&&g+er<=n)&&(g>Math.PI/2&&g<Math.PI*1.5&&(u=-u),v+=u)}}return v}function So(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,h=0,f=0,u=0,l=0,v,c,_=0;_<o;){var g=a[_++],p=_===1;switch(g===Bt.M&&_>1&&(e||(s+=rr(h,f,u,l,i,n))),p&&(h=a[_],f=a[_+1],u=h,l=f),g){case Bt.M:u=a[_++],l=a[_++],h=u,f=l;break;case Bt.L:if(e){if(mr(h,f,a[_],a[_+1],t,i,n))return!0}else s+=rr(h,f,a[_],a[_+1],i,n)||0;h=a[_++],f=a[_++];break;case Bt.C:if(e){if(Yh(h,f,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Uh(h,f,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],i,n)||0;h=a[_++],f=a[_++];break;case Bt.Q:if(e){if(Xh(h,f,a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Vh(h,f,a[_++],a[_++],a[_],a[_+1],i,n)||0;h=a[_++],f=a[_++];break;case Bt.A:var d=a[_++],y=a[_++],m=a[_++],w=a[_++],b=a[_++],T=a[_++];_+=1;var S=!!(1-a[_++]);v=Math.cos(b)*m+d,c=Math.sin(b)*w+y,p?(u=v,l=c):s+=rr(h,f,v,c,i,n);var C=(i-d)*w/m+d;if(e){if(Gh(d,y,w,b,b+T,S,t,C,n))return!0}else s+=Qh(d,y,w,b,b+T,S,C,n);h=Math.cos(b+T)*m+d,f=Math.sin(b+T)*w+y;break;case Bt.R:u=h=a[_++],l=f=a[_++];var L=a[_++],P=a[_++];if(v=u+L,c=l+P,e){if(mr(u,l,v,l,t,i,n)||mr(v,l,v,c,t,i,n)||mr(v,c,u,c,t,i,n)||mr(u,c,u,l,t,i,n))return!0}else s+=rr(v,l,v,c,i,n),s+=rr(u,c,u,l,i,n);break;case Bt.Z:if(e){if(mr(h,f,u,l,t,i,n))return!0}else s+=rr(h,f,u,l,i,n);h=u,f=l;break}}return!e&&!$h(f,l)&&(s+=rr(h,f,u,l,i,n)||0),s!==0}function Kh(r,t,e){return So(r,0,!1,t,e)}function Jh(r,t,e,i){return So(r,t,!0,e,i)}var Lo=dr({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},vr),jh={style:dr({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},oi.style)},Wi=oe.concat(["invisible","culling","z","z2","zlevel","parent"]),$=(function(r){F(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 n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(h){e.buildPath(h,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<Wi.length;++s)n[Wi[s]]=this[Wi[s]];n.__dirty|=nt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=at(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=e[o];o==="style"?this.style?H(this.style,s):this.useStyle(s):o==="shape"?H(this.shape,s):r.prototype.attrKV.call(this,o,s)}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(Ne(e)){var i=Ze(e,0);return i>.5?un:i>.2?vh:ln}else if(e)return ln}return un},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(Ne(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Ze(e,0)<fn;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~br},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 Br(!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,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&br)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var h=i.strokeNoScale?this.getLineScale():1,f=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;f=Math.max(f,u??4)}h>1e-10&&(s.width+=f/h,s.height+=f/h,s.x-=f/h/2,s.y-=f/h/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var h=o.lineWidth,f=o.strokeNoScale?this.getLineScale():1;if(f>1e-10&&(this.hasFill()||(h=Math.max(h,this.strokeContainThreshold)),Jh(s,h/f,e,i)))return!0}if(this.hasFill())return Kh(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=br,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 n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:H(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&br)},t.prototype.createStyle=function(e){return ri(Lo,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,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var h=!(i&&a),f;if(i&&i.shape?o?a?f=i.shape:(f=H({},n.shape),H(f,i.shape)):(f=H({},a?this.shape:n.shape),H(f,i.shape)):h&&(f=n.shape),f)if(o){this.shape=H({},this.shape);for(var u={},l=at(f),v=0;v<l.length;v++){var c=l[v];typeof f[c]=="object"?this.shape[c]=f[c]:u[c]=f[c]}this._transitionState(e,{shape:u},s)}else this.shape=f,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return jh},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=(function(a){F(o,a);function o(s){var h=a.call(this,s)||this;return e.init&&e.init.call(h,s),h}return o.prototype.getDefaultStyle=function(){return Er(e.style)},o.prototype.getDefaultShape=function(){return Er(e.shape)},o})(t);for(var n in e)typeof e[n]=="function"&&(i.prototype[n]=e[n]);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=nt|Vr|br})(),t})(ue),tf=dr({strokeFirst:!0,font:Yt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Lo),Ve=(function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Co(this.style)},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return ri(tf,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=Fh(this.style)),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(ue);Ve.prototype.type="tspan";var rf=dr({x:0,y:0},vr),ef={style:dr({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},oi.style)};function nf(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Pn=(function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ri(rf,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=nf(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return ef},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new O(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(ue);Pn.prototype.type="image";function af(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,h,f,u;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=h=f=u=o:o instanceof Array?o.length===1?s=h=f=u=o[0]:o.length===2?(s=f=o[0],h=u=o[1]):o.length===3?(s=o[0],h=u=o[1],f=o[2]):(s=o[0],h=o[1],f=o[2],u=o[3]):s=h=f=u=0;var l;s+h>n&&(l=s+h,s*=n/l,h*=n/l),f+u>n&&(l=f+u,f*=n/l,u*=n/l),h+f>a&&(l=h+f,h*=a/l,f*=a/l),s+u>a&&(l=s+u,s*=a/l,u*=a/l),r.moveTo(e+s,i),r.lineTo(e+n-h,i),h!==0&&r.arc(e+n-h,i+h,h,-Math.PI/2,0),r.lineTo(e+n,i+a-f),f!==0&&r.arc(e+n-f,i+a-f,f,0,Math.PI/2),r.lineTo(e+u,i+a),u!==0&&r.arc(e+u,i+a-u,u,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Mr=Math.round;function of(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Mr(i*2)===Mr(n*2)&&(r.x1=r.x2=xr(i,s,!0)),Mr(a*2)===Mr(o*2)&&(r.y1=r.y2=xr(a,s,!0))),r}}function sf(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=xr(i,s,!0),r.y=xr(n,s,!0),r.width=Math.max(xr(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(xr(n+o,s,!1)-r.y,o===0?0:1)),r}}function xr(r,t,e){if(!t)return r;var i=Mr(r*2);return(i+Mr(t))%2===0?i/2:(i+(e?1:-1))/2}var hf=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),ff={},Po=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new hf},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var h=sf(ff,i,this.style);n=h.x,a=h.y,o=h.width,s=h.height,h.r=i.r,i=h}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?af(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})($);Po.prototype.type="rect";var da={fill:"#000"},pa=2,Tt={},uf={style:dr({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},oi.style)},lf=(function(r){F(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=da,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,_f(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 O(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],h=s.getBoundingRect(),f=s.getLocalTransform(n);f?(e.copy(h),e.applyTransform(f),a=a||e.clone(),a.union(e)):(a=a||h.clone(),a.union(h))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||da},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return H(e,i),n&&a?(this._mergeRich(a,n),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,i){for(var n=at(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},H(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return uf},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||Yt,n=e.padding,a=this._defaultStyle,o=e.x||0,s=e.y||0,h=e.align||a.align||"left",f=e.verticalAlign||a.verticalAlign||"top";oa(Tt,a.overflowRect,o,s,h,f),o=Tt.baseX,s=Tt.baseY;var u=ba(e),l=xh(u,e,Tt.outerWidth,Tt.outerHeight),v=Ni(e),c=!!e.backgroundColor,_=l.outerHeight,g=l.outerWidth,p=l.lines,d=l.lineHeight;this.isTruncated=!!l.isTruncated;var y=o,m=lr(s,l.contentHeight,f);if(v||n){var w=Fr(o,g,h),b=lr(s,_,f);v&&this._renderBackground(e,e,w,b,g,_)}m+=d/2,n&&(y=Ta(o,h,n),f==="top"?m+=n[0]:f==="bottom"&&(m-=n[2]));for(var T=0,S=!1,C=!1,L=wa("fill"in e?e.fill:(C=!0,a.fill)),P=ma("stroke"in e?e.stroke:!c&&(!a.autoStroke||C)?(T=pa,S=!0,a.stroke):null),M=e.textShadowBlur>0,D=0;D<p.length;D++){var R=this._getOrCreateChild(Ve),x=R.createStyle();R.useStyle(x),x.text=p[D],x.x=y,x.y=m,x.textAlign=h,x.textBaseline="middle",x.opacity=e.opacity,x.strokeFirst=!0,M&&(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=L,P&&(x.lineWidth=e.lineWidth||T,x.lineDash=e.lineDash,x.lineDashOffset=e.lineDashOffset||0),x.font=i,ga(x,e),m+=d,R.setBoundingRect(cn(x,l.contentWidth,l.calculatedLineHeight,S?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,i=this._defaultStyle,n=e.align||i.align,a=e.verticalAlign||i.verticalAlign,o=e.x||0,s=e.y||0;oa(Tt,i.overflowRect,o,s,n,a),o=Tt.baseX,s=Tt.baseY;var h=ba(e),f=Ah(h,e,Tt.outerWidth,Tt.outerHeight,n),u=f.width,l=f.outerWidth,v=f.outerHeight,c=e.padding;this.isTruncated=!!f.isTruncated;var _=Fr(o,l,n),g=lr(s,v,a),p=_,d=g;c&&(p+=c[3],d+=c[0]);var y=p+u;Ni(e)&&this._renderBackground(e,e,_,g,l,v);for(var m=!!e.backgroundColor,w=0;w<f.lines.length;w++){for(var b=f.lines[w],T=b.tokens,S=T.length,C=b.lineHeight,L=b.width,P=0,M=p,D=y,R=S-1,x=void 0;P<S&&(x=T[P],!x.align||x.align==="left");)this._placeToken(x,e,C,d,M,"left",m),L-=x.width,M+=x.width,P++;for(;R>=0&&(x=T[R],x.align==="right");)this._placeToken(x,e,C,d,D,"right",m),L-=x.width,D-=x.width,R--;for(M+=(u-(M-p)-(y-D)-L)/2;P<=R;)x=T[P],this._placeToken(x,e,C,d,M+x.width/2,"center",m),M+=x.width,P++;d+=C}},t.prototype._placeToken=function(e,i,n,a,o,s,h){var f=i.rich[e.styleName]||{};f.text=e.text;var u=e.verticalAlign,l=a+n/2;u==="top"?l=a+e.height/2:u==="bottom"&&(l=a+n-e.height/2);var v=!e.isLineHolder&&Ni(f);v&&this._renderBackground(f,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,l-e.height/2,e.width,e.height);var c=!!f.backgroundColor,_=e.textPadding;_&&(o=Ta(o,s,_),l-=e.height/2-_[0]-e.innerHeight/2);var g=this._getOrCreateChild(Ve),p=g.createStyle();g.useStyle(p);var d=this._defaultStyle,y=!1,m=0,w=!1,b=wa("fill"in f?f.fill:"fill"in i?i.fill:(y=!0,d.fill)),T=ma("stroke"in f?f.stroke:"stroke"in i?i.stroke:!c&&!h&&(!d.autoStroke||y)?(m=pa,w=!0,d.stroke):null),S=f.textShadowBlur>0||i.textShadowBlur>0;p.text=e.text,p.x=o,p.y=l,S&&(p.shadowBlur=f.textShadowBlur||i.textShadowBlur||0,p.shadowColor=f.textShadowColor||i.textShadowColor||"transparent",p.shadowOffsetX=f.textShadowOffsetX||i.textShadowOffsetX||0,p.shadowOffsetY=f.textShadowOffsetY||i.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||Yt,p.opacity=Fe(f.opacity,i.opacity,1),ga(p,f),T&&(p.lineWidth=Fe(f.lineWidth,i.lineWidth,m),p.lineDash=vt(f.lineDash,i.lineDash),p.lineDashOffset=i.lineDashOffset||0,p.stroke=T),b&&(p.fill=b),g.setBoundingRect(cn(p,e.contentWidth,e.contentHeight,w?0:null))},t.prototype._renderBackground=function(e,i,n,a,o,s){var h=e.backgroundColor,f=e.borderWidth,u=e.borderColor,l=h&&h.image,v=h&&!l,c=e.borderRadius,_=this,g,p;if(v||e.lineHeight||f&&u){g=this._getOrCreateChild(Po),g.useStyle(g.createStyle()),g.style.fill=null;var d=g.shape;d.x=n,d.y=a,d.width=o,d.height=s,d.r=c,g.dirtyShape()}if(v){var y=g.style;y.fill=h||null,y.fillOpacity=vt(e.fillOpacity,1)}else if(l){p=this._getOrCreateChild(Pn),p.onload=function(){_.dirtyStyle()};var m=p.style;m.image=h.image,m.x=n,m.y=a,m.width=o,m.height=s}if(f&&u){var y=g.style;y.lineWidth=f,y.stroke=u,y.strokeOpacity=vt(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(g||p).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=Fe(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return pf(e)&&(i=[e.fontStyle,e.fontWeight,df(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Zr(i)||e.textFont||e.font},t})(ue),vf={left:!0,right:1,center:1},cf={top:1,bottom:1,middle:1},_a=["fontStyle","fontWeight","fontSize","fontFamily"];function df(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 ga(r,t){for(var e=0;e<_a.length;e++){var i=_a[e],n=t[i];n!=null&&(r[i]=n)}}function pf(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function _f(r){return ya(r),et(r.rich,ya),r}function ya(r){if(r){r.font=lf.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||vf[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||cf[e]?e:"top";var i=r.padding;i&&(r.padding=jo(r.padding))}}function ma(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function wa(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Ta(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function ba(r){var t=r.text;return t!=null&&(t+=""),t}function Ni(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var wr=Br.CMD,gf=[[],[],[]],Ca=Math.sqrt,yf=Math.atan2;function mf(r,t){if(t){var e=r.data,i=r.len(),n,a,o,s,h,f,u=wr.M,l=wr.C,v=wr.L,c=wr.R,_=wr.A,g=wr.Q;for(o=0,s=0;o<i;){switch(n=e[o++],s=o,a=0,n){case u:a=1;break;case v:a=1;break;case l:a=3;break;case g:a=2;break;case _:var p=t[4],d=t[5],y=Ca(t[0]*t[0]+t[1]*t[1]),m=Ca(t[2]*t[2]+t[3]*t[3]),w=yf(-t[1]/m,t[0]/y);e[o]*=y,e[o++]+=p,e[o]*=m,e[o++]+=d,e[o++]*=y,e[o++]*=m,e[o++]+=w,e[o++]+=w,o+=2,s=o;break;case c:f[0]=e[o++],f[1]=e[o++],jr(f,f,t),e[s++]=f[0],e[s++]=f[1],f[0]+=e[o++],f[1]+=e[o++],jr(f,f,t),e[s++]=f[0],e[s++]=f[1]}for(h=0;h<a;h++){var b=gf[h];b[0]=e[o++],b[1]=e[o++],jr(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var Yi=Math.sqrt,Le=Math.sin,Pe=Math.cos,qr=Math.PI;function Sa(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function _n(r,t){return(r[0]*t[0]+r[1]*t[1])/(Sa(r)*Sa(t))}function La(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(_n(r,t))}function Pa(r,t,e,i,n,a,o,s,h,f,u){var l=h*(qr/180),v=Pe(l)*(r-e)/2+Le(l)*(t-i)/2,c=-1*Le(l)*(r-e)/2+Pe(l)*(t-i)/2,_=v*v/(o*o)+c*c/(s*s);_>1&&(o*=Yi(_),s*=Yi(_));var g=(n===a?-1:1)*Yi((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,p=g*o*c/s,d=g*-s*v/o,y=(r+e)/2+Pe(l)*p-Le(l)*d,m=(t+i)/2+Le(l)*p+Pe(l)*d,w=La([1,0],[(v-p)/o,(c-d)/s]),b=[(v-p)/o,(c-d)/s],T=[(-1*v-p)/o,(-1*c-d)/s],S=La(b,T);if(_n(b,T)<=-1&&(S=qr),_n(b,T)>=1&&(S=0),S<0){var C=Math.round(S/qr*1e6)/1e6;S=qr*2+C%2*qr}u.addData(f,y,m,o,s,w,S,l,a)}var wf=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Tf=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function bf(r){var t=new Br;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=Br.CMD,h=r.match(wf);if(!h)return t;for(var f=0;f<h.length;f++){for(var u=h[f],l=u.charAt(0),v=void 0,c=u.match(Tf)||[],_=c.length,g=0;g<_;g++)c[g]=parseFloat(c[g]);for(var p=0;p<_;){var d=void 0,y=void 0,m=void 0,w=void 0,b=void 0,T=void 0,S=void 0,C=e,L=i,P=void 0,M=void 0;switch(l){case"l":e+=c[p++],i+=c[p++],v=s.L,t.addData(v,e,i);break;case"L":e=c[p++],i=c[p++],v=s.L,t.addData(v,e,i);break;case"m":e+=c[p++],i+=c[p++],v=s.M,t.addData(v,e,i),n=e,a=i,l="l";break;case"M":e=c[p++],i=c[p++],v=s.M,t.addData(v,e,i),n=e,a=i,l="L";break;case"h":e+=c[p++],v=s.L,t.addData(v,e,i);break;case"H":e=c[p++],v=s.L,t.addData(v,e,i);break;case"v":i+=c[p++],v=s.L,t.addData(v,e,i);break;case"V":i=c[p++],v=s.L,t.addData(v,e,i);break;case"C":v=s.C,t.addData(v,c[p++],c[p++],c[p++],c[p++],c[p++],c[p++]),e=c[p-2],i=c[p-1];break;case"c":v=s.C,t.addData(v,c[p++]+e,c[p++]+i,c[p++]+e,c[p++]+i,c[p++]+e,c[p++]+i),e+=c[p-2],i+=c[p-1];break;case"S":d=e,y=i,P=t.len(),M=t.data,o===s.C&&(d+=e-M[P-4],y+=i-M[P-3]),v=s.C,C=c[p++],L=c[p++],e=c[p++],i=c[p++],t.addData(v,d,y,C,L,e,i);break;case"s":d=e,y=i,P=t.len(),M=t.data,o===s.C&&(d+=e-M[P-4],y+=i-M[P-3]),v=s.C,C=e+c[p++],L=i+c[p++],e+=c[p++],i+=c[p++],t.addData(v,d,y,C,L,e,i);break;case"Q":C=c[p++],L=c[p++],e=c[p++],i=c[p++],v=s.Q,t.addData(v,C,L,e,i);break;case"q":C=c[p++]+e,L=c[p++]+i,e+=c[p++],i+=c[p++],v=s.Q,t.addData(v,C,L,e,i);break;case"T":d=e,y=i,P=t.len(),M=t.data,o===s.Q&&(d+=e-M[P-4],y+=i-M[P-3]),e=c[p++],i=c[p++],v=s.Q,t.addData(v,d,y,e,i);break;case"t":d=e,y=i,P=t.len(),M=t.data,o===s.Q&&(d+=e-M[P-4],y+=i-M[P-3]),e+=c[p++],i+=c[p++],v=s.Q,t.addData(v,d,y,e,i);break;case"A":m=c[p++],w=c[p++],b=c[p++],T=c[p++],S=c[p++],C=e,L=i,e=c[p++],i=c[p++],v=s.A,Pa(C,L,e,i,T,S,m,w,b,v,t);break;case"a":m=c[p++],w=c[p++],b=c[p++],T=c[p++],S=c[p++],C=e,L=i,e+=c[p++],i+=c[p++],v=s.A,Pa(C,L,e,i,T,S,m,w,b,v,t);break}}(l==="z"||l==="Z")&&(v=s.Z,t.addData(v),e=n,i=a),o=v}return t.toStatic(),t}var Mo=(function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})($);function xo(r){return r.setData!=null}function Ro(r,t){var e=bf(r),i=H({},t);return i.buildPath=function(n){var a=xo(n);if(a&&n.canSave()){n.appendPath(e);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&e.rebuildPath(o,1)}},i.applyTransform=function(n){mf(e,n),this.dirtyShape()},i}function Fu(r,t){return new Mo(Ro(r,t))}function Bu(r,t){var e=Ro(r,t),i=(function(n){F(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a})(Mo);return i}function Hu(r,t){for(var e=[],i=r.length,n=0;n<i;n++){var a=r[n];e.push(a.getUpdatedPathProxy(!0))}var o=new $(t);return o.createPathProxy(),o.buildPath=function(s){if(xo(s)){s.appendPath(e);var h=s.getContext();h&&s.rebuildPath(h,1)}},o}var Cf=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Sf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Cf},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})($);Sf.prototype.type="circle";var Lf=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),Pf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Lf},t.prototype.buildPath=function(e,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,h=i.ry,f=s*n,u=h*n;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-u,a-f,o-h,a,o-h),e.bezierCurveTo(a+f,o-h,a+s,o-u,a+s,o),e.bezierCurveTo(a+s,o+u,a+f,o+h,a,o+h),e.bezierCurveTo(a-f,o+h,a-s,o+u,a-s,o),e.closePath()},t})($);Pf.prototype.type="ellipse";var Do=Math.PI,Xi=Do*2,ir=Math.sin,Tr=Math.cos,Mf=Math.acos,q=Math.atan2,Ma=Math.abs,ie=Math.sqrt,Kr=Math.max,bt=Math.min,dt=1e-4;function xf(r,t,e,i,n,a,o,s){var h=e-r,f=i-t,u=o-n,l=s-a,v=l*h-u*f;if(!(v*v<dt))return v=(u*(t-a)-l*(r-n))/v,[r+v*h,t+v*f]}function Me(r,t,e,i,n,a,o){var s=r-e,h=t-i,f=(o?a:-a)/ie(s*s+h*h),u=f*h,l=-f*s,v=r+u,c=t+l,_=e+u,g=i+l,p=(v+_)/2,d=(c+g)/2,y=_-v,m=g-c,w=y*y+m*m,b=n-a,T=v*g-_*c,S=(m<0?-1:1)*ie(Kr(0,b*b*w-T*T)),C=(T*m-y*S)/w,L=(-T*y-m*S)/w,P=(T*m+y*S)/w,M=(-T*y+m*S)/w,D=C-p,R=L-d,x=P-p,B=M-d;return D*D+R*R>x*x+B*B&&(C=P,L=M),{cx:C,cy:L,x0:-u,y0:-l,x1:C*(n/b-1),y1:L*(n/b-1)}}function Rf(r){var t;if(ne(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 Df(r,t){var e,i=Kr(t.r,0),n=Kr(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var h=t.startAngle,f=t.endAngle;if(!(isNaN(h)||isNaN(f))){var u=t.cx,l=t.cy,v=!!t.clockwise,c=Ma(f-h),_=c>Xi&&c%Xi;if(_>dt&&(c=_),!(i>dt))r.moveTo(u,l);else if(c>Xi-dt)r.moveTo(u+i*Tr(h),l+i*ir(h)),r.arc(u,l,i,h,f,!v),n>dt&&(r.moveTo(u+n*Tr(f),l+n*ir(f)),r.arc(u,l,n,f,h,v));else{var g=void 0,p=void 0,d=void 0,y=void 0,m=void 0,w=void 0,b=void 0,T=void 0,S=void 0,C=void 0,L=void 0,P=void 0,M=void 0,D=void 0,R=void 0,x=void 0,B=i*Tr(h),k=i*ir(h),Y=n*Tr(f),Z=n*ir(f),xt=c>dt;if(xt){var J=t.cornerRadius;J&&(e=Rf(J),g=e[0],p=e[1],d=e[2],y=e[3]);var ot=Ma(i-n)/2;if(m=bt(ot,d),w=bt(ot,y),b=bt(ot,g),T=bt(ot,p),L=S=Kr(m,w),P=C=Kr(b,T),(S>dt||C>dt)&&(M=i*Tr(f),D=i*ir(f),R=n*Tr(h),x=n*ir(h),c<Do)){var N=xf(B,k,R,x,M,D,Y,Z);if(N){var G=B-N[0],U=k-N[1],Et=M-N[0],It=D-N[1],Ot=1/ir(Mf((G*Et+U*It)/(ie(G*G+U*U)*ie(Et*Et+It*It)))/2),Xt=ie(N[0]*N[0]+N[1]*N[1]);L=bt(S,(i-Xt)/(Ot+1)),P=bt(C,(n-Xt)/(Ot-1))}}}if(!xt)r.moveTo(u+B,l+k);else if(L>dt){var ct=bt(d,L),V=bt(y,L),A=Me(R,x,B,k,i,ct,v),E=Me(M,D,Y,Z,i,V,v);r.moveTo(u+A.cx+A.x0,l+A.cy+A.y0),L<S&&ct===V?r.arc(u+A.cx,l+A.cy,L,q(A.y0,A.x0),q(E.y0,E.x0),!v):(ct>0&&r.arc(u+A.cx,l+A.cy,ct,q(A.y0,A.x0),q(A.y1,A.x1),!v),r.arc(u,l,i,q(A.cy+A.y1,A.cx+A.x1),q(E.cy+E.y1,E.cx+E.x1),!v),V>0&&r.arc(u+E.cx,l+E.cy,V,q(E.y1,E.x1),q(E.y0,E.x0),!v))}else r.moveTo(u+B,l+k),r.arc(u,l,i,h,f,!v);if(!(n>dt)||!xt)r.lineTo(u+Y,l+Z);else if(P>dt){var ct=bt(g,P),V=bt(p,P),A=Me(Y,Z,M,D,n,-V,v),E=Me(B,k,R,x,n,-ct,v);r.lineTo(u+A.cx+A.x0,l+A.cy+A.y0),P<C&&ct===V?r.arc(u+A.cx,l+A.cy,P,q(A.y0,A.x0),q(E.y0,E.x0),!v):(V>0&&r.arc(u+A.cx,l+A.cy,V,q(A.y0,A.x0),q(A.y1,A.x1),!v),r.arc(u,l,n,q(A.cy+A.y1,A.cx+A.x1),q(E.cy+E.y1,E.cx+E.x1),v),ct>0&&r.arc(u+E.cx,l+E.cy,ct,q(E.y1,E.x1),q(E.y0,E.x0),!v))}else r.lineTo(u+Y,l+Z),r.arc(u,l,n,f,h,v)}r.closePath()}}}var Af=(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})(),Ef=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Af},t.prototype.buildPath=function(e,i){Df(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})($);Ef.prototype.type="sector";var If=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),Of=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new If},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t})($);Of.prototype.type="ring";function Ff(r,t,e,i){var n=[],a=[],o=[],s=[],h,f,u,l;if(i){u=[1/0,1/0],l=[-1/0,-1/0];for(var v=0,c=r.length;v<c;v++)Cr(u,u,r[v]),Sr(l,l,r[v]);Cr(u,u,i[0]),Sr(l,l,i[1])}for(var v=0,c=r.length;v<c;v++){var _=r[v];if(e)h=r[v?v-1:c-1],f=r[(v+1)%c];else if(v===0||v===c-1){n.push(ns(r[v]));continue}else h=r[v-1],f=r[v+1];as(a,f,h),si(a,a,t);var g=Ui(_,h),p=Ui(_,f),d=g+p;d!==0&&(g/=d,p/=d),si(o,a,-g),si(s,a,p);var y=Dn([],_,o),m=Dn([],_,s);i&&(Sr(y,y,u),Cr(y,y,l),Sr(m,m,u),Cr(m,m,l)),n.push(y),n.push(m)}return e&&n.push(n.shift()),n}function Ao(r,t,e){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=Ff(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var h=a[s*2],f=a[s*2+1],u=n[(s+1)%o];r.bezierCurveTo(h[0],h[1],f[0],f[1],u[0],u[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,l=n.length;s<l;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var Bf=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),Hf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Bf},t.prototype.buildPath=function(e,i){Ao(e,i,!0)},t})($);Hf.prototype.type="polygon";var zf=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),kf=(function(r){F(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 zf},t.prototype.buildPath=function(e,i){Ao(e,i,!1)},t})($);kf.prototype.type="polyline";var Wf={},Nf=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),Yf=(function(r){F(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 Nf},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var h=of(Wf,i,this.style);n=h.x1,a=h.y1,o=h.x2,s=h.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var f=i.percent;f!==0&&(e.moveTo(n,a),f<1&&(o=n*(1-f)+o*f,s=a*(1-f)+s*f),e.lineTo(o,s))},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})($);Yf.prototype.type="line";var j=[],Xf=(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 xa(r,t,e){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(e?Xn:K)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Xn:K)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Gn:tt)(r.x1,r.cpx1,r.x2,t),(e?Gn:tt)(r.y1,r.cpy1,r.y2,t)]}var Gf=(function(r){F(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 Xf},t.prototype.buildPath=function(e,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,h=i.cpx1,f=i.cpy1,u=i.cpx2,l=i.cpy2,v=i.percent;v!==0&&(e.moveTo(n,a),u==null||l==null?(v<1&&($e(n,h,o,v,j),h=j[1],o=j[2],$e(a,f,s,v,j),f=j[1],s=j[2]),e.quadraticCurveTo(h,f,o,s)):(v<1&&(qe(n,h,u,o,v,j),h=j[1],u=j[2],o=j[3],qe(a,f,l,s,v,j),f=j[1],l=j[2],s=j[3]),e.bezierCurveTo(h,f,u,l,o,s)))},t.prototype.pointAt=function(e){return xa(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=xa(this.shape,e,!0);return hs(i,i)},t})($);Gf.prototype.type="bezier-curve";var qf=(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})(),$f=(function(r){F(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 qf},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,h=i.endAngle,f=i.clockwise,u=Math.cos(s),l=Math.sin(s);e.moveTo(u*o+n,l*o+a),e.arc(n,a,o,s,h,!f)},t})($);$f.prototype.type="arc";var zu=(function(r){F(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(),n=0;n<e.length;n++)i=i||e[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(i[0],i[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(e,n[a].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),$.prototype.getBoundingRect.call(this)},t})($),Eo=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),ku=(function(r){F(t,r);function t(e,i,n,a,o,s){var h=r.call(this,o)||this;return h.x=e??0,h.y=i??0,h.x2=n??1,h.y2=a??0,h.type="linear",h.global=s||!1,h}return t})(Eo),Wu=(function(r){F(t,r);function t(e,i,n,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t})(Eo),Gi=Math.min,Zf=Math.max,xe=Math.abs,nr=[0,0],ar=[0,0],X=Ka(),Re=X.minTv,De=X.maxTv,Nu=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new W;for(var i=0;i<2;i++)this._axes[i]=new W;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,h=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,h),i[3].set(a,h),e)for(var f=0;f<4;f++)i[f].transform(e);W.sub(n[0],i[1],i[0]),W.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var f=0;f<2;f++)this._origin[f]=n[f].dot(i[0])},r.prototype.intersect=function(t,e,i){var n=!0,a=!e;return e&&W.set(e,0,0),X.reset(i,!a),!this._intersectCheckOneSide(this,t,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(n=!1,a)||!a&&!X.negativeSize&&W.copy(e,n?X.useDir?X.dirMinTv:Re:De),n},r.prototype._intersectCheckOneSide=function(t,e,i,n){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,nr),t._getProjMinMaxOnAxis(o,e._corners,ar),X.negativeSize||nr[1]<ar[0]||nr[0]>ar[1]){if(a=!1,X.negativeSize||i)return a;var h=xe(ar[0]-nr[1]),f=xe(nr[0]-ar[1]);Gi(h,f)>De.len()&&(h<f?W.scale(De,s,-h*n):W.scale(De,s,f*n))}else if(!i){var h=xe(ar[0]-nr[1]),f=xe(nr[0]-ar[1]);(X.useDir||Gi(h,f)<Re.len())&&((h<f||!X.bidirectional)&&(W.scale(Re,s,h*n),X.useDir&&X.calcDirMTV()),(h>=f||!X.bidirectional)&&(W.scale(Re,s,-f*n),X.useDir&&X.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],a=this._origin,o=e[0].dot(n)+a[t],s=o,h=o,f=1;f<e.length;f++){var u=e[f].dot(n)+a[t];s=Gi(u,s),h=Zf(u,h)}i[0]=s+X.touchThreshold,i[1]=h-X.touchThreshold,X.negativeSize=i[1]<i[0]},r})(),Uf=[],Yu=(function(r){F(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 n=0;n<e.length;n++)this.addDisplayable(e[n],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 O(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(Uf)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,i))return!0}return!1},t})(ue),Vf=Math.round(Math.random()*9),Qf=typeof Object.defineProperty=="function",Xu=(function(){function r(){this._id="__ec_inner_"+Vf++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return Qf?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 hr(r){return isFinite(r)}function Kf(r,t,e){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,n=n*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),i=hr(i)?i:0,n=hr(n)?n:1,a=hr(a)?a:0,o=hr(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function Jf(r,t,e){var i=e.width,n=e.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,h=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,h=h*a),o=hr(o)?o:.5,s=hr(s)?s:.5,h=h>=0&&hr(h)?h:.5;var f=r.createRadialGradient(o,s,0,o,s,h);return f}function gn(r,t,e){for(var i=t.type==="radial"?Jf(r,t,e):Kf(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function jf(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 Ae(r){return parseInt(r,10)}function Ee(r,t,e){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||Ae(s[i])||Ae(r.style[i]))-(Ae(s[a])||0)-(Ae(s[o])||0)|0}function tu(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Oe(r)?[r]:ne(r)?r:null}function Io(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&tu(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Ir(e,function(a){return a/n}),i/=n)}return[e,i]}var ru=new Br(!0);function Qe(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Ra(r){return typeof r=="string"&&r!=="none"}function Ke(r){var t=r.fill;return t!=null&&t!=="none"}function Da(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Aa(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 yn(r,t,e){var i=mo(t.image,t.__image,e);if(ai(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*is),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function eu(r,t,e,i){var n,a=Qe(e),o=Ke(e),s=e.strokePercent,h=s<1,f=!t.path;(!t.silent||h)&&f&&t.createPathProxy();var u=t.path||ru,l=t.__dirty;if(!i){var v=e.fill,c=e.stroke,_=o&&!!v.colorStops,g=a&&!!c.colorStops,p=o&&!!v.image,d=a&&!!c.image,y=void 0,m=void 0,w=void 0,b=void 0,T=void 0;(_||g)&&(T=t.getBoundingRect()),_&&(y=l?gn(r,v,T):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(m=l?gn(r,c,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(w=l||!t.__canvasFillPattern?yn(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=w),d&&(b=l||!t.__canvasStrokePattern?yn(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),_?r.fillStyle=y:p&&(w?r.fillStyle=w:o=!1),g?r.strokeStyle=m:d&&(b?r.strokeStyle=b:a=!1)}var S=t.getGlobalScale();u.setScale(S[0],S[1],t.segmentIgnoreThreshold);var C,L;r.setLineDash&&e.lineDash&&(n=Io(t),C=n[0],L=n[1]);var P=!0;(f||l&br)&&(u.setDPR(r.dpr),h?u.setContext(null):(u.setContext(r),P=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),P&&u.rebuildPath(r,h?s:1),C&&(r.setLineDash(C),r.lineDashOffset=L),i||(e.strokeFirst?(a&&Aa(r,e),o&&Da(r,e)):(o&&Da(r,e),a&&Aa(r,e))),C&&r.setLineDash([])}function iu(r,t,e){var i=t.__image=mo(e.image,t.__image,t,t.onload);if(!(!i||!ai(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),h=i.width/i.height;if(o==null&&s!=null?o=s*h:s==null&&o!=null?s=o/h:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var f=e.sx||0,u=e.sy||0;r.drawImage(i,f,u,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var f=e.sx,u=e.sy,l=o-f,v=s-u;r.drawImage(i,f,u,l,v,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function nu(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||Yt,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=Io(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Qe(e)&&r.strokeText(n,e.x,e.y),Ke(e)&&r.fillText(n,e.x,e.y)):(Ke(e)&&r.fillText(n,e.x,e.y),Qe(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var Ea=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ia=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Oo(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){rt(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?vr.opacity:o}(i||t.blend!==e.blend)&&(a||(rt(r,n),a=!0),r.globalCompositeOperation=t.blend||vr.blend);for(var s=0;s<Ea.length;s++){var h=Ea[s];(i||t[h]!==e[h])&&(a||(rt(r,n),a=!0),r[h]=r.dpr*(t[h]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(rt(r,n),a=!0),r.shadowColor=t.shadowColor||vr.shadowColor),a}function Oa(r,t,e,i,n){var a=he(t,n.inHover),o=i?null:e&&he(e,n.inHover)||{};if(a===o)return!1;var s=Oo(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(rt(r,n),s=!0),Ra(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(rt(r,n),s=!0),Ra(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(rt(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var h=a.lineWidth,f=h/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==f&&(s||(rt(r,n),s=!0),r.lineWidth=f)}for(var u=0;u<Ia.length;u++){var l=Ia[u],v=l[0];(i||a[v]!==o[v])&&(s||(rt(r,n),s=!0),r[v]=a[v]||l[1])}return s}function au(r,t,e,i,n){return Oo(r,he(t,n.inHover),e&&he(e,n.inHover),i,n)}function Fo(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 ou(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),Fo(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function su(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 Fa=1,Ba=2,Ha=3,za=4;function hu(r){var t=Ke(r),e=Qe(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 rt(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function he(r,t){return t&&r.__hoverStyle||r.style}function fu(r,t){fr(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function fr(r,t,e,i){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~nt,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,h=!1;if((!o||jf(a,o))&&(o&&o.length&&(rt(r,e),r.restore(),h=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(rt(r,e),r.save(),ou(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var f=e.prevEl;f||(h=s=!0);var u=t instanceof $&&t.autoBatch&&hu(t.style);s||su(n,f.transform)?(rt(r,e),Fo(r,t)):u||rt(r,e);var l=he(t,e.inHover);t instanceof $?(e.lastDrawType!==Fa&&(h=!0,e.lastDrawType=Fa),Oa(r,t,f,h,e),(!u||!e.batchFill&&!e.batchStroke)&&r.beginPath(),eu(r,t,l,u),u&&(e.batchFill=l.fill||"",e.batchStroke=l.stroke||"")):t instanceof Ve?(e.lastDrawType!==Ha&&(h=!0,e.lastDrawType=Ha),Oa(r,t,f,h,e),nu(r,t,l)):t instanceof Pn?(e.lastDrawType!==Ba&&(h=!0,e.lastDrawType=Ba),au(r,t,f,h,e),iu(r,t,l)):t.getTemporalDisplayables&&(e.lastDrawType!==za&&(h=!0,e.lastDrawType=za),uu(r,t,e)),u&&i&&rt(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function uu(r,t,e){var i=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var h=i[o];h.beforeBrush&&h.beforeBrush(),h.innerBeforeBrush(),fr(r,h,a,o===s-1),h.innerAfterBrush(),h.afterBrush&&h.afterBrush(),a.prevEl=h}for(var f=0,u=n.length;f<u;f++){var h=n[f];h.beforeBrush&&h.beforeBrush(),h.innerBeforeBrush(),fr(r,h,a,f===u-1),h.innerAfterBrush(),h.afterBrush&&h.afterBrush(),a.prevEl=h}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}function ka(r,t,e){var i=cr.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*e,i.height=a*e,i}var qi=(function(r){F(t,r);function t(e,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||Ue,typeof e=="string"?o=ka(e,i,n):zt(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(Ua(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}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=ka("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,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,h=!1,f=new O(0,0,0,0);function u(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var m=new O(0,0,0,0);m.copy(y),o.push(m)}else{for(var w=!1,b=1/0,T=0,S=0;S<o.length;++S){var C=o[S];if(C.intersect(y)){var L=new O(0,0,0,0);L.copy(C),L.union(y),o[S]=L,w=!0;break}else if(h){f.copy(y),f.union(C);var P=y.width*y.height,M=C.width*C.height,D=f.width*f.height,R=D-P-M;R<b&&(b=R,T=S)}}if(h&&(o[T].union(y),w=!0),!w){var m=new O(0,0,0,0);m.copy(y),o.push(m)}h||(h=o.length>=s)}}for(var l=this.__startIndex;l<this.__endIndex;++l){var v=e[l];if(v){var c=v.shouldBePainted(n,a,!0,!0),_=v.__isRendered&&(v.__dirty&nt||!c)?v.getPrevPaintRect():null;_&&u(_);var g=c&&(v.__dirty&nt||!v.__isRendered)?v.getPaintRect():null;g&&u(g)}}for(var l=this.__prevStartIndex;l<this.__prevEndIndex;++l){var v=i[l],c=v&&v.shouldBePainted(n,a,!0,!0);if(v&&(!c||!v.__zr)&&v.__isRendered){var _=v.getPrevPaintRect();_&&u(_)}}var p;do{p=!1;for(var l=0;l<o.length;){if(o[l].isZero()){o.splice(l,1);continue}for(var d=l+1;d<o.length;)o[l].intersect(o[d])?(p=!0,o[l].union(o[d]),o.splice(d,1)):d++;l++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=i+"px"),a.width=e*n,a.height=i*n,s&&(s.width=e*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,i,n){var a=this.dom,o=this.ctx,s=a.width,h=a.height;i=i||this.clearColor;var f=this.motionBlur&&!e,u=this.lastFrameAlpha,l=this.dpr,v=this;f&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/l,h/l));var c=this.domBack;function _(g,p,d,y){if(o.clearRect(g,p,d,y),i&&i!=="transparent"){var m=void 0;if(ti(i)){var w=i.global||i.__width===d&&i.__height===y;m=w&&i.__canvasGradient||gn(o,i,{x:0,y:0,width:d,height:y}),i.__canvasGradient=m,i.__width=d,i.__height=y}else Ko(i)&&(i.scaleX=i.scaleX||l,i.scaleY=i.scaleY||l,m=yn(o,i,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=m||i,o.fillRect(g,p,d,y),o.restore()}f&&(o.save(),o.globalAlpha=u,o.drawImage(c,g,p,d,y),o.restore())}!n||f?_(0,0,s,h):n.length&&et(n,function(g){_(g.x*l,g.y*l,g.width*l,g.height*l)})},t})(zr),Wa=1e5,or=314159,Ie=.01,lu=.001;function vu(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function cu(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 Gu=(function(){function r(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=H({},i||{}),this.dpr=i.devicePixelRatio||Ue,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Ua(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var h=this._layers;if(a){var u=t,l=u.width,v=u.height;i.width!=null&&(l=i.width),i.height!=null&&(v=i.height),this.dpr=i.devicePixelRatio||1,u.width=l*this.dpr,u.height=v*this.dpr,this._width=l,this._height=v;var c=new qi(u,this,this.dpr);c.__builtin__=!0,c.initContext(),h[or]=c,c.zlevel=or,s.push(or),this._domRoot=t}else{this._width=Ee(t,0,i),this._height=Ee(t,1,i);var f=this._domRoot=cu(this._width,this._height);t.appendChild(f)}}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,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var a=0;a<n.length;a++){var o=n[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var h=a===0?this._backgroundColor:null;s.refresh(h)}}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 n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(Wa)),a||(a=i.ctx,a.save()),fr(a,s,n,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Wa)},r.prototype.paintOne=function(t,e){fu(t,e)},r.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(f){f.afterBrush&&f.afterBrush()});else{var h=this;Xe(function(){h._paintList(t,e,i,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(or).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},r.prototype._doPaintList=function(t,e,i){for(var n=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var h=this._zlevelList[s],f=this._layers[h];f.__builtin__&&f!==this._hoverlayer&&(f.__dirty||i)&&a.push(f)}for(var u=!0,l=!1,v=function(g){var p=a[g],d=p.ctx,y=o&&p.createRepaintRects(t,e,c._width,c._height),m=i?p.__startIndex:p.__drawIndex,w=!i&&p.incremental&&Date.now,b=w&&Date.now(),T=p.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,T,y);else if(m===p.__startIndex){var S=t[m];(!S.incremental||!S.notClear||i)&&p.clear(!1,T,y)}m===-1&&(console.error("For some unknown reason. drawIndex is -1"),m=p.__startIndex);var C,L=function(R){var x={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(C=m;C<p.__endIndex;C++){var B=t[C];if(B.__inHover&&(l=!0),n._doPaintEl(B,p,o,R,x,C===p.__endIndex-1),w){var k=Date.now()-b;if(k>15)break}}x.prevElClipPaths&&d.restore()};if(y)if(y.length===0)C=p.__endIndex;else for(var P=c.dpr,M=0;M<y.length;++M){var D=y[M];d.save(),d.beginPath(),d.rect(D.x*P,D.y*P,D.width*P,D.height*P),d.clip(),L(D),d.restore()}else d.save(),L(),d.restore();p.__drawIndex=C,p.__drawIndex<p.__endIndex&&(u=!1)},c=this,_=0;_<a.length;_++)v(_);return z.wxa&&et(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:u,needsRefreshHover:l}},r.prototype._doPaintEl=function(t,e,i,n,a,o){var s=e.ctx;if(i){var h=t.getPaintRect();(!n||h&&h.intersect(n))&&(fr(s,t,a,o),t.setPrevPaintRect(h))}else fr(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=or);var i=this._layers[t];return i||(i=new qi("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?$r(i,this._layerConfig[t],!0):this._layerConfig[t-Ie]&&$r(i,this._layerConfig[t-Ie],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},r.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,h=-1;if(!i[t]&&vu(e)){if(a>0&&t>n[0]){for(h=0;h<a-1&&!(n[h]<t&&n[h+1]>t);h++);s=i[n[h]]}if(n.splice(h+1,0,t),i[t]=e,!e.virtual)if(s){var f=s.dom;f.nextSibling?o.insertBefore(e.dom,f.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(l,v){l.__dirty=l.__used=!1});function e(l){a&&(a.__endIndex!==l&&(a.__dirty=!0),a.__endIndex=l)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,h;for(h=0;h<t.length;h++){var n=t[h],f=n.zlevel,u=void 0;s!==f&&(s=f,o=0),n.incremental?(u=this.getLayer(f+lu,this._needsManuallyCompositing),u.incremental=!0,o=1):u=this.getLayer(f+(o>0?Ie:0),this._needsManuallyCompositing),u.__builtin__||bn("ZLevel "+f+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==h&&(u.__dirty=!0),u.__startIndex=h,u.incremental?u.__drawIndex=-1:u.__drawIndex=h,e(h),a=u),n.__dirty&nt&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=h))}e(h),this.eachBuiltinLayer(function(l,v){!l.__used&&l.getElementCount()>0&&(l.__dirty=!0,l.__startIndex=l.__endIndex=l.__drawIndex=0),l.__dirty&&l.__drawIndex<0&&(l.__drawIndex=l.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,et(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?$r(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+Ie){var o=this._layers[a];$r(o,i[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(Ct(i,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=Ee(a,0,n),e=Ee(a,1,n),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].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(or).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[or].dom;var e=new qi("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 n=e.dom.width,a=e.dom.height;this.eachLayer(function(l){l.__builtin__?i.drawImage(l.dom,0,0,n,a):l.renderToCanvas&&(i.save(),l.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),h=0,f=s.length;h<f;h++){var u=s[h];fr(i,u,o,h===f-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();export{W as $,jr as A,O as B,Ls as C,li as D,of as E,sf as F,Er as G,Bu as H,te as I,Sf as J,Pf as K,Hf as L,kf as M,Po as N,Yf as O,$ as P,Gf as Q,Of as R,Ef as S,co as T,$f as U,zu as V,go as W,Yu as X,ku as Y,Pn as Z,Nu as _,ne as a,Wu as a0,lf as a1,Zr as a2,jo as a3,Fe as a4,$r as a5,Ga as a6,xu as a7,gu as a8,Du as a9,Ms as aA,mu as aB,ch as aC,pu as aD,bs as aE,On as aF,$i as aG,pt as aH,Pu as aI,Mu as aJ,At as aK,ei as aL,Gu as aM,Qo as aa,xn as ab,_u as ac,Tu as ad,Cu as ae,Rr as af,ph as ag,Xu as ah,ae as ai,cr as aj,fu as ak,zr as al,Iu as am,Ws as an,qa as ao,se as ap,Jo as aq,Ou as ar,Eu as as,fs as at,Lu as au,Br as av,no as aw,K as ax,Ru as ay,Nh as az,zt as b,bu as c,Ct as d,et as e,Oe as f,yu as g,wu as h,Ne as i,z as j,du as k,H as l,Ir as m,Or as n,Au as o,Mt as p,at as q,je as r,vt as s,Fu as t,Hu as u,xr as v,Su as w,dr as x,Ps as y,Qa as z};
|
package/index.html
CHANGED
|
@@ -4,13 +4,26 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<meta name="theme-color" content="#020617" />
|
|
7
|
-
<link rel="manifest" href="
|
|
8
|
-
<link rel="icon" href="
|
|
9
|
-
<link rel="apple-touch-icon" href="
|
|
7
|
+
<link rel="manifest" href="./manifest.webmanifest" />
|
|
8
|
+
<link rel="icon" href="./icons/icon-192.svg" type="image/svg+xml" />
|
|
9
|
+
<link rel="apple-touch-icon" href="./icons/icon-192.svg" />
|
|
10
10
|
<title>Mokelay Editor</title>
|
|
11
|
-
<script type="module" crossorigin src="
|
|
12
|
-
<link rel="modulepreload" crossorigin href="
|
|
13
|
-
<link rel="
|
|
11
|
+
<script type="module" crossorigin src="./assets/index-DaLT-qTF.js"></script>
|
|
12
|
+
<link rel="modulepreload" crossorigin href="./assets/vue-vendor-Dh3tbb7h.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="./assets/editorjs-CrGo22NX.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="./assets/element-plus-CD8wJz6b.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="./assets/block-advanced-BuKEuWQ4.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="./assets/zrender-CyMoNtco.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="./assets/echarts-BN_iJMI5.js">
|
|
18
|
+
<link rel="modulepreload" crossorigin href="./assets/block-chart-0eTcp5HJ.js">
|
|
19
|
+
<link rel="modulepreload" crossorigin href="./assets/block-datasource-_a7GVdwT.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="./assets/block-form-BEDK0U9Z.js">
|
|
21
|
+
<link rel="stylesheet" crossorigin href="./assets/element-plus-Dit-l95b.css">
|
|
22
|
+
<link rel="stylesheet" crossorigin href="./assets/block-advanced-DfEsE7Tf.css">
|
|
23
|
+
<link rel="stylesheet" crossorigin href="./assets/block-chart-BDhOWgsD.css">
|
|
24
|
+
<link rel="stylesheet" crossorigin href="./assets/block-datasource-DIH8wAmJ.css">
|
|
25
|
+
<link rel="stylesheet" crossorigin href="./assets/block-form-0t-EPu3N.css">
|
|
26
|
+
<link rel="stylesheet" crossorigin href="./assets/index-CTUsYCbZ.css">
|
|
14
27
|
</head>
|
|
15
28
|
<body class="bg-slate-950">
|
|
16
29
|
<div id="app"></div>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[data-v-4e7b6cf4] .mokelay-editor-tool{position:relative}[data-v-4e7b6cf4] .mokelay-editor-tool__property-dialog{width:min(100%,480px);border:0;border-radius:16px;padding:0;box-shadow:0 24px 80px #0f172a52}[data-v-4e7b6cf4] .mokelay-editor-tool__property-dialog::backdrop{background:#0f172a73}[data-v-4e7b6cf4] .mokelay-editor-tool__property-panel{margin:0;padding:20px;background:#fff}[data-v-4e7b6cf4] .mokelay-editor-tool__property-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}[data-v-4e7b6cf4] .mokelay-editor-tool__property-title{margin:0;color:#0f172a;font-size:18px;font-weight:600}[data-v-4e7b6cf4] .mokelay-editor-tool__property-close{border:0;border-radius:10px;padding:8px 12px;background:#e2e8f0;color:#334155;cursor:pointer}[data-v-4e7b6cf4] .mokelay-editor-tool__property-body{display:flex;flex-direction:column;gap:14px}[data-v-4e7b6cf4] .mokelay-editor-tool__property-field{display:flex;flex-direction:column;gap:6px}[data-v-4e7b6cf4] .mokelay-editor-tool__property-field--checkbox{flex-direction:row;align-items:center;gap:10px}[data-v-4e7b6cf4] .mokelay-editor-tool__property-label{color:#334155;font-size:13px;font-weight:600}[data-v-4e7b6cf4] .mokelay-editor-tool__property-checkbox{width:16px;height:16px;margin:0}[data-v-4e7b6cf4] .mokelay-editor-tool__property-input{width:100%;border:1px solid rgb(148 163 184 / .65);border-radius:10px;padding:10px 12px;background:#fff;color:#0f172a;font-size:14px;line-height:20px}[data-v-4e7b6cf4] .mokelay-editor-tool__property-input:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 2px #6366f126}.dark{background:#0f172a}.dark{color:#f1f5f9}.dark{background:#334155;color:#f1f5f9}.dark{color:#cbd5e1}.dark{background:#0f172a;color:#e2e8f0;border-color:#475569e6}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as m,r as l,o as g,c as p,a as k,w,b as a,t as c,u as x,e as y,f as C,_ as E}from"./index-DP9Xxuqs.js";import{M as _,_ as N}from"./storage-DLZD2nc7.js";import"./editorjs-hCuh8vdW.js";function S(r){const s=localStorage.getItem(_);if(!s)return[{type:"paragraph",data:{text:r("editor.defaultParagraph")}}];try{const t=JSON.parse(s);return Array.isArray(t.blocks)?t.blocks:[]}catch{return[{type:"paragraph",data:{text:r("editor.defaultParagraph")}}]}}const I={"data-testid":"editor-panel",class:"flex min-h-[520px] flex-1 flex-col rounded-xl border border-slate-200 bg-white p-4 shadow-sm dark:border-slate-700 dark:bg-slate-900"},O={"data-testid":"config-dialog",class:"w-full max-w-3xl rounded-xl bg-white p-4 shadow-2xl dark:bg-slate-900"},P={class:"mb-3 flex items-center justify-between"},B={"data-testid":"config-dialog-title",class:"text-base font-semibold text-slate-800 dark:text-slate-100"},A={"data-testid":"config-json",class:"max-h-[60vh] overflow-auto rounded bg-slate-100 p-3 text-xs text-slate-700 dark:bg-slate-950 dark:text-slate-300"},J=m({__name:"EditorPanel",setup(r,{expose:s}){const t=l(null),f=l(""),n=l(!1),{t:i}=C(),o=l(S(i));async function h(){var d;const e=await((d=t.value)==null?void 0:d.saveEditor())??{blocks:o.value};o.value=e.blocks,localStorage.setItem(_,JSON.stringify(e)),f.value=JSON.stringify(e,null,2),n.value=!0}function v(e){o.value=e}function b(){window.location.hash="/preview"}function u(){n.value=!1}return s({save:h,openPreview:b}),(e,d)=>(g(),p("section",I,[k(N,{ref_key:"pageRef",ref:t,edit:!0,value:o.value,onChange:v},null,8,["value"]),n.value?(g(),p("div",{key:0,"data-testid":"config-dialog-overlay",class:"fixed inset-0 z-50 flex items-center justify-center bg-slate-950/50 px-4",onClick:w(u,["self"])},[a("div",O,[a("div",P,[a("h3",B,c(x(i)("editor.configJson")),1),a("button",{"data-testid":"config-dialog-close",class:"rounded bg-slate-200 px-3 py-1 text-sm font-medium text-slate-700 hover:bg-slate-300 dark:bg-slate-700 dark:text-slate-100 dark:hover:bg-slate-600",onClick:u},c(x(i)("editor.close")),1)]),a("pre",A,c(f.value),1)])])):y("",!0)]))}}),R=E(J,[["__scopeId","data-v-4e7b6cf4"]]);export{R as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ce-form-tool[data-v-a3894c78]{width:100%;color:#0f172a}.ce-form-tool__editor-shell[data-v-a3894c78]{width:100%;min-height:54px;border:1px dashed rgb(148 163 184 / .72);border-radius:8px;background:#f8fafc;padding:8px 10px 8px 38px}.ce-form-tool__editor[data-v-a3894c78],.ce-form-tool__preview[data-v-a3894c78]{width:100%}.ce-form-tool__preview[data-v-a3894c78]{display:flex;flex-direction:column;gap:12px}.ce-form-tool[data-v-a3894c78] .codex-editor{min-height:0}.ce-form-tool[data-v-a3894c78] .codex-editor__redactor{min-height:0;padding-bottom:0!important}.ce-form-tool[data-v-a3894c78] .ce-block{padding:0}.ce-form-tool[data-v-a3894c78] .ce-block+.ce-block{margin-top:10px}.ce-form-tool[data-v-a3894c78] .ce-block__content,.ce-form-tool[data-v-a3894c78] .ce-toolbar__content{max-width:none;margin:0}.ce-form-tool[data-v-a3894c78] .ce-toolbar__actions{right:calc(100% + 8px);padding-right:0}.ce-form-tool[data-v-a3894c78] .ce-popover-item[data-item-name=paragraph]{display:none}.ce-form-tool[data-v-a3894c78] .ce-paragraph{min-height:36px;padding:8px 0;color:#64748b;font-size:14px;line-height:20px}.dark{color:#e2e8f0}.dark{border-color:#475569e6;background:#0f172a}.dark{color:#94a3b8}
|