UNPKG

trap-ui

Version:

基于elementPlus表格进行二次封装的组件库

14 lines (12 loc) 688 kB
(function(ft,T){typeof exports=="object"&&typeof module!="undefined"?T(exports,require("vue"),require("axios"),require("element-plus"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","axios","element-plus","@popperjs/core"],T):(ft=typeof globalThis!="undefined"?globalThis:ft||self,T(ft.TrapUI={},ft.Vue,ft.axios,ft.ElementPlus,ft["@popperjs/core"]))})(this,function(ft,T,St,Ir,So){"use strict";var DN=Object.defineProperty,MN=Object.defineProperties;var AN=Object.getOwnPropertyDescriptors;var HS=Object.getOwnPropertySymbols;var EN=Object.prototype.hasOwnProperty,LN=Object.prototype.propertyIsEnumerable;var US=ft=>{throw TypeError(ft)};var WS=(ft,T,St)=>T in ft?DN(ft,T,{enumerable:!0,configurable:!0,writable:!0,value:St}):ft[T]=St,Qt=(ft,T)=>{for(var St in T||(T={}))EN.call(T,St)&&WS(ft,St,T[St]);if(HS)for(var St of HS(T))LN.call(T,St)&&WS(ft,St,T[St]);return ft},yo=(ft,T)=>MN(ft,AN(T));var YS=(ft,T,St)=>T.has(ft)||US("Cannot "+St);var Qa=(ft,T,St)=>(YS(ft,T,"read from private field"),St?St.call(ft):T.get(ft)),_v=(ft,T,St)=>T.has(ft)?US("Cannot add the same private member more than once"):T instanceof WeakSet?T.add(ft):T.set(ft,St),$S=(ft,T,St,Ir)=>(YS(ft,T,"write to private field"),Ir?Ir.call(ft,St):T.set(ft,St),St);var _o=(ft,T,St)=>new Promise((Ir,So)=>{var ja=dr=>{try{Ja(St.next(dr))}catch(K){So(K)}},z=dr=>{try{Ja(St.throw(dr))}catch(K){So(K)}},Ja=dr=>dr.done?Ir(dr.value):Promise.resolve(dr.value).then(ja,z);Ja((St=St.apply(ft,T)).next())});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Qn,po;var ja=function(r,t){return ja=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},ja(r,t)};function z(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ja(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Ja=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),dr=function(){function r(){this.browser=new Ja,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!="undefined"}return r}(),K=new dr;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(K.wxa=!0,K.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?K.worker=!0:!K.hasGlobalWindow||"Deno"in window?(K.node=!0,K.svgSupported=!0):XS(navigator.userAgent,K);function XS(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),a&&(e.ie=!0,e.version=a[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var Kl=12,ZS="sans-serif",an=Kl+"px "+ZS,qS=20,KS=100,QS="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function jS(r){var t={};if(typeof JSON=="undefined")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),a=(r.charCodeAt(e)-qS)/KS;t[n]=a}return t}var JS=jS(QS),jn={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var a=jn.createCanvas();r=a&&a.getContext("2d")}if(r)return t!==n&&(t=r.font=n||an),r.measureText(e);e=e||"",n=n||an;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||Kl,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=JS[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}},Sv=kr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),bv=kr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Jn=Object.prototype.toString,bo=Array.prototype,tb=bo.forEach,eb=bo.filter,Ql=bo.slice,rb=bo.map,wv=function(){}.constructor,wo=wv?wv.prototype:null,jl="__proto__",nb=2311;function xv(){return nb++}function Pr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console!="undefined"&&console.error.apply(console,r)}function at(r){if(r==null||typeof r!="object")return r;var t=r,e=Jn.call(r);if(e==="[object Array]"){if(!ei(r)){t=[];for(var n=0,a=r.length;n<a;n++)t[n]=at(r[n])}}else if(bv[e]){if(!ei(r)){var i=r.constructor;if(i.from)t=i.from(r);else{t=new i(r.length);for(var n=0,a=r.length;n<a;n++)t[n]=r[n]}}}else if(!Sv[e]&&!ei(r)&&!on(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==jl&&(t[o]=at(r[o]))}return t}function ot(r,t,e){if(!q(t)||!q(r))return e?at(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==jl){var a=r[n],i=t[n];q(i)&&q(a)&&!H(i)&&!H(a)&&!on(i)&&!on(a)&&!Tv(i)&&!Tv(a)&&!ei(i)&&!ei(a)?ot(a,i,e):(e||!(n in r))&&(r[n]=at(t[n]))}return r}function ab(r,t){for(var e=r[0],n=1,a=r.length;n<a;n++)e=ot(e,r[n],t);return e}function G(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==jl&&(r[e]=t[e]);return r}function st(r,t,e){for(var n=Mt(t),a=0,i=n.length;a<i;a++){var o=n[a];r[o]==null&&(r[o]=t[o])}return r}function vt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function ib(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var a in e)e.hasOwnProperty(a)&&(r.prototype[a]=e[a]);r.prototype.constructor=r,r.superClass=t}function Oe(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&r[i]==null&&(r[i]=t[i])}else st(r,t)}function jt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function I(r,t,e){if(r&&t)if(r.forEach&&r.forEach===tb)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&t.call(e,r[i],i,r)}function U(r,t,e){if(!r)return[];if(!t)return Jl(r);if(r.map&&r.map===rb)return r.map(t,e);for(var n=[],a=0,i=r.length;a<i;a++)n.push(t.call(e,r[a],a,r));return n}function kr(r,t,e,n){if(r&&t){for(var a=0,i=r.length;a<i;a++)e=t.call(n,e,r[a],a,r);return e}}function Dt(r,t,e){if(!r)return[];if(!t)return Jl(r);if(r.filter&&r.filter===eb)return r.filter(t,e);for(var n=[],a=0,i=r.length;a<i;a++)t.call(e,r[a],a,r)&&n.push(r[a]);return n}function Mt(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 ob(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(Ql.call(arguments)))}}var xt=wo&&Z(wo.bind)?wo.call.bind(wo.bind):ob;function lt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Ql.call(arguments)))}}function H(r){return Array.isArray?Array.isArray(r):Jn.call(r)==="[object Array]"}function Z(r){return typeof r=="function"}function X(r){return typeof r=="string"}function xo(r){return Jn.call(r)==="[object String]"}function _t(r){return typeof r=="number"}function q(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Tv(r){return!!Sv[Jn.call(r)]}function Jt(r){return!!bv[Jn.call(r)]}function on(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function To(r){return r.colorStops!=null}function sb(r){return r.image!=null}function Cv(r){return Jn.call(r)==="[object RegExp]"}function ti(r){return r!==r}function _e(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function rt(r,t){return r!=null?r:t}function sn(r,t,e){return r!=null?r:t!=null?t:e}function Jl(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Ql.apply(r,t)}function Dv(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 J(r,t){if(!r)throw new Error(t)}function Xe(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Mv="__ec_primitive__";function Co(r){r[Mv]=!0}function ei(r){return r[Mv]}var lb=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 Mt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r}(),Av=typeof Map=="function";function ub(){return Av?new Map:new lb}var fb=function(){function r(t){var e=H(t);this.data=ub();var n=this;t instanceof r?t.each(a):t&&I(t,a);function a(i,o){e?n.set(i,o):n.set(o,i)}}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(n,a){t.call(e,n,a)})},r.prototype.keys=function(){var t=this.data.keys();return Av?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function tt(r){return new fb(r)}function hb(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var a=r.length,n=0;n<t.length;n++)e[n+a]=t[n];return e}function Do(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&G(e,t),e}function Ev(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ze(r,t){return r.hasOwnProperty(t)}function te(){}var cb=180/Math.PI;function ta(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function vb(r){return[r[0],r[1]]}function Lv(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Iv(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function db(r){return Math.sqrt(pb(r))}function pb(r){return r[0]*r[0]+r[1]*r[1]}function tu(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function eu(r,t){var e=db(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function ru(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var nu=ru;function gb(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var ea=gb;function Mo(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function Se(r,t,e){var n=t[0],a=t[1];return r[0]=e[0]*n+e[2]*a+e[4],r[1]=e[1]*n+e[3]*a+e[5],r}function ra(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function na(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var aa=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),mb=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 aa(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,e.drift(i,o,t),this.handler.dispatchToElement(new aa(e,t),"drag",t.event);var s=this.handler.findHover(n,a,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new aa(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new aa(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new aa(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new aa(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),Re=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof e=="function"&&(a=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:e,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,f=i[t][u];return f&&f.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=e.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=e.length,s=e[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r}(),yb=Math.log(2);function au(r,t,e,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/yb);return r[e][l]}for(var u=n|1<<e,f=e+1;n&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&a||(h+=(c%2?-1:1)*r[e][v]*au(r,t-1,f,u,a|d,i),c++)}return i[o]=h,h}function Pv(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]]],n={},a=au(e,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*au(e,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,f){var h=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/h,l[1]=(u*i[3]+f*i[4]+i[5])/h}}}var kv="___zrEVENTSAVED",iu=[];function _b(r,t,e,n,a){return ou(iu,t,n,a,!0)&&ou(r,e,iu[0],iu[1])}function ou(r,t,e,n,a){if(t.getBoundingClientRect&&K.domSupported&&!Nv(t)){var i=t[kv]||(t[kv]={}),o=Sb(t,i),s=bb(o,i,a);if(s)return s(r,e,n),!0}return!1}function Sb(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function bb(r,t,e){for(var n=e?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=e?Pv(s,o):Pv(o,s))}function Nv(r){return r.nodeName.toUpperCase()==="CANVAS"}var wb=/([&<>"'])/g,xb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function le(r){return r==null?"":(r+"").replace(wb,function(t,e){return xb[e]})}var Tb=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,su=[],Cb=K.browser.firefox&&+K.browser.version.split(".")[0]<39;function lu(r,t,e,n){return e=e||{},n?Ov(r,t,e):Cb&&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):Ov(r,t,e),e}function Ov(r,t,e){if(K.domSupported&&r.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(Nv(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(ou(su,r,n,a)){e.zrX=su[0],e.zrY=su[1];return}}e.zrX=e.zrY=0}function uu(r){return r||window.event}function be(r,t,e){if(t=uu(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&lu(r,o,t,e)}else{lu(r,t,t,e);var i=Db(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Tb.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Db(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var a=Math.abs(n!==0?n:e),i=n>0?-1:n<0?1:e>0?-1:1;return 3*a*i}function fu(r,t,e,n){r.addEventListener(t,e,n)}function Mb(r,t,e,n){r.removeEventListener(t,e,n)}var Rv=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},Ab=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:e,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=lu(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(t){for(var e in hu)if(hu.hasOwnProperty(e)){var n=hu[e](this._track,t);if(n)return n}},r}();function Bv(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function Eb(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var hu={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,a=(r[e-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=Bv(n)/Bv(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=Eb(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function ia(){return[1,0,0,1,0,0]}function cu(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Lb(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 oa(r,t,e){var n=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],i=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],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function vu(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 du(r,t,e,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=a*h+s*f,r[1]=-a*f+s*h,r[2]=i*h+l*f,r[3]=-i*f+h*l,r[4]=h*(o-n[0])+f*(u-n[1])+n[0],r[5]=h*(u-n[1])-f*(o-n[0])+n[1],r}function Ib(r,t,e){var n=e[0],a=e[1];return r[0]=t[0]*n,r[1]=t[1]*a,r[2]=t[2]*n,r[3]=t[3]*a,r[4]=t[4]*n,r[5]=t[5]*a,r}function Ao(r,t){var e=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-e*s)*l,r):null}var Q=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,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},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,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+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,n){t.x=e,t.y=n},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,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,a){t.x=e.x+n.x*a,t.y=e.y+n.y*a},r.lerp=function(t,e,n,a){var i=1-a;t.x=i*e.x+a*n.x,t.y=i*e.y+a*n.y},r}(),Eo=Math.min,Lo=Math.max,ln=new Q,un=new Q,fn=new Q,hn=new Q,ri=new Q,ni=new Q,gt=function(){function r(t,e,n,a){n<0&&(t=t+n,n=-n),a<0&&(e=e+a,a=-a),this.x=t,this.y=e,this.width=n,this.height=a}return r.prototype.union=function(t){var e=Eo(t.x,this.x),n=Eo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lo(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lo(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,a=t.height/e.height,i=ia();return vu(i,i,[-e.x,-e.y]),Ib(i,i,[n,a]),vu(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,v=!(i<l||u<a||s<f||h<o);if(e){var c=1/0,d=0,p=Math.abs(i-l),g=Math.abs(u-a),m=Math.abs(s-f),y=Math.abs(h-o),_=Math.min(p,g),S=Math.min(m,y);i<l||u<a?_>d&&(d=_,p<g?Q.set(ni,-p,0):Q.set(ni,g,0)):_<c&&(c=_,p<g?Q.set(ri,p,0):Q.set(ri,-g,0)),s<f||h<o?S>d&&(d=S,m<y?Q.set(ni,0,-m):Q.set(ni,0,y)):_<c&&(c=_,m<y?Q.set(ri,0,m):Q.set(ri,0,-y))}return e&&Q.copy(e,v?ri:ni),v},r.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},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){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=e.x*a+o,t.y=e.y*i+s,t.width=e.width*a,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ln.x=fn.x=e.x,ln.y=hn.y=e.y,un.x=hn.x=e.x+e.width,un.y=fn.y=e.y+e.height,ln.transform(n),hn.transform(n),un.transform(n),fn.transform(n),t.x=Eo(ln.x,un.x,fn.x,hn.x),t.y=Eo(ln.y,un.y,fn.y,hn.y);var l=Lo(ln.x,un.x,fn.x,hn.x),u=Lo(ln.y,un.y,fn.y,hn.y);t.width=l-t.x,t.height=u-t.y},r}(),Vv="silent";function Pb(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:kb}}function kb(){Rv(this.event)}var Nb=function(r){z(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}(Re),ai=function(){function r(t,e){this.x=t,this.y=e}return r}(),Ob=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],pu=new gt(0,0,0,0),Fv=function(r){z(t,r);function t(e,n,a,i,o){var s=r.call(this)||this;return s._hovered=new ai(0,0),s.storage=e,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new Nb,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new mb(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(I(Ob,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,a=e.zrY,i=Gv(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new ai(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new ai(0,0)},t.prototype.dispatch=function(e,n){var a=this[e];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,a){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var o="on"+n,s=Pb(n,e,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,a){var i=this.storage.getDisplayList(),o=new ai(e,n);if(zv(i,o,e,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new gt(e-u,n-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==a&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(pu.copy(v.getBoundingRect()),v.transform&&pu.applyTransform(v.transform),pu.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=c)for(var m=0;m<p;m+=d){var y=e+g*Math.cos(m),_=n+g*Math.sin(m);if(zv(s,o,y,_,a),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new Ab);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;e.gestureEvent=o;var s=new ai;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Re);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Fv.prototype[r]=function(t){var e=t.zrX,n=t.zrY,a=Gv(this,e,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(e,n),o=i.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||nu(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function Rb(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?Vv:!0}return!1}function zv(r,t,e,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=Rb(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==Vv)){t.target=o;break}}}function Gv(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var Hv=32,ii=7;function Bb(r){for(var t=0;r>=Hv;)t|=r&1,r>>=1;return r+t}function Wv(r,t,e,n){var a=t+1;if(a===e)return 1;if(n(r[a++],r[t])<0){for(;a<e&&n(r[a],r[a-1])<0;)a++;Vb(r,t,a)}else for(;a<e&&n(r[a],r[a-1])>=0;)a++;return a-t}function Vb(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function Uv(r,t,e,n,a){for(n===t&&n++;n<e;n++){for(var i=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){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(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function gu(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])>0){for(s=n-a;l<s&&i(r,t[e+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(r,t[e+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])>0?o=f+1:l=f}return l}function mu(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])<0){for(s=a+1;l<s&&i(r,t[e+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(r,t[e+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])<0?l=f:o=f+1}return l}function Fb(r,t){var e=ii,n,a,i=0,o=[];n=[],a=[];function s(c,d){n[i]=c,a[i]=d,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&a[c-1]<=a[c]+a[c+1]||c>=2&&a[c-2]<=a[c]+a[c-1])a[c-1]<a[c+1]&&c--;else if(a[c]>a[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&a[c-1]<a[c+1]&&c--,f(c)}}function f(c){var d=n[c],p=a[c],g=n[c+1],m=a[c+1];a[c]=p+m,c===i-3&&(n[c+1]=n[c+2],a[c+1]=a[c+2]),i--;var y=mu(r[g],r,d,p,0,t);d+=y,p-=y,p!==0&&(m=gu(r[d+p-1],r,g,m,m-1,t),m!==0&&(p<=m?h(d,p,g,m):v(d,p,g,m)))}function h(c,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=r[c+m];var y=0,_=p,S=c;if(r[S++]=r[_++],--g===0){for(m=0;m<d;m++)r[S+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)r[S+m]=r[_+m];r[S+g]=o[y];return}for(var w=e,b,x,C;;){b=0,x=0,C=!1;do if(t(r[_],o[y])<0){if(r[S++]=r[_++],x++,b=0,--g===0){C=!0;break}}else if(r[S++]=o[y++],b++,x=0,--d===1){C=!0;break}while((b|x)<w);if(C)break;do{if(b=mu(r[_],o,y,d,0,t),b!==0){for(m=0;m<b;m++)r[S+m]=o[y+m];if(S+=b,y+=b,d-=b,d<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(x=gu(o[y],r,_,g,0,t),x!==0){for(m=0;m<x;m++)r[S+m]=r[_+m];if(S+=x,_+=x,g-=x,g===0){C=!0;break}}if(r[S++]=o[y++],--d===1){C=!0;break}w--}while(b>=ii||x>=ii);if(C)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),d===1){for(m=0;m<g;m++)r[S+m]=r[_+m];r[S+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)r[S+m]=o[y+m]}}function v(c,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=r[p+m];var y=c+d-1,_=g-1,S=p+g-1,w=0,b=0;if(r[S--]=r[y--],--d===0){for(w=S-(g-1),m=0;m<g;m++)r[w+m]=o[m];return}if(g===1){for(S-=d,y-=d,b=S+1,w=y+1,m=d-1;m>=0;m--)r[b+m]=r[w+m];r[S]=o[_];return}for(var x=e;;){var C=0,D=0,M=!1;do if(t(o[_],r[y])<0){if(r[S--]=r[y--],C++,D=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],D++,C=0,--g===1){M=!0;break}while((C|D)<x);if(M)break;do{if(C=d-mu(o[_],r,c,d,d-1,t),C!==0){for(S-=C,y-=C,d-=C,b=S+1,w=y+1,m=C-1;m>=0;m--)r[b+m]=r[w+m];if(d===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(D=g-gu(r[y],o,0,g,g-1,t),D!==0){for(S-=D,_-=D,g-=D,b=S+1,w=_+1,m=0;m<D;m++)r[b+m]=o[w+m];if(g<=1){M=!0;break}}if(r[S--]=r[y--],--d===0){M=!0;break}x--}while(C>=ii||D>=ii);if(M)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),g===1){for(S-=d,y-=d,b=S+1,w=y+1,m=d-1;m>=0;m--)r[b+m]=r[w+m];r[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),m=0;m<g;m++)r[w+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Io(r,t,e,n){e||(e=0),n||(n=r.length);var a=n-e;if(!(a<2)){var i=0;if(a<Hv){i=Wv(r,e,n,t),Uv(r,e,n,e+i,t);return}var o=Fb(r,t),s=Bb(a);do{if(i=Wv(r,e,n,t),i<s){var l=a;l>s&&(l=s),Uv(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),a-=i,e+=i}while(a!==0);o.forceMergeRuns()}}var qe=1,Po=2,oi=4,Yv=!1;function yu(){Yv||(Yv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $v(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var zb=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$v}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,a=0,i=e.length;a<i;a++)this._updateAndAddDisplayable(e[a],null,t);n.length=this._displayListLen,Io(n,$v)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)e=null;else if(a){e?e=e.slice():e=[];for(var i=a,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=qe),this._updateAndAddDisplayable(u,e,n)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(yu(),f.z=0),isNaN(f.z2)&&(yu(),f.z2=0),isNaN(f.zlevel)&&(yu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,e,n);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,n)}},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,n=t.length;e<n;e++)this.delRoot(t[e]);return}var a=vt(this._roots,t);a>=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),ko;ko=K.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var si={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,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*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)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.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-si.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?si.bounceIn(r*2)*.5:si.bounceOut(r*2-1)*.5+.5}},No=Math.pow,Nr=Math.sqrt,Xv=1e-8,Zv=1e-4,qv=Nr(3),Oo=1/3,Ke=ta(),we=ta(),sa=ta();function Or(r){return r>-1e-8&&r<Xv}function Kv(r){return r>Xv||r<-1e-8}function zt(r,t,e,n,a){var i=1-a;return i*i*(i*r+3*a*t)+a*a*(a*n+3*i*e)}function Qv(r,t,e,n,a){var i=1-a;return 3*(((t-r)*i+2*(e-t)*a)*i+(n-e)*a*a)}function Ro(r,t,e,n,a,i){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-a,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Or(f)&&Or(h))if(Or(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[c++]=d)}else{var p=h*h-4*f*v;if(Or(p)){var g=h/f,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(i[c++]=d),m>=0&&m<=1&&(i[c++]=m)}else if(p>0){var y=Nr(p),_=f*s+1.5*o*(-h+y),S=f*s+1.5*o*(-h-y);_<0?_=-No(-_,Oo):_=No(_,Oo),S<0?S=-No(-S,Oo):S=No(S,Oo);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[c++]=d)}else{var w=(2*f*s-3*o*h)/(2*Nr(f*f*f)),b=Math.acos(w)/3,x=Nr(f),C=Math.cos(b),d=(-s-2*x*C)/(3*o),m=(-s+x*(C+qv*Math.sin(b)))/(3*o),D=(-s+x*(C-qv*Math.sin(b)))/(3*o);d>=0&&d<=1&&(i[c++]=d),m>=0&&m<=1&&(i[c++]=m),D>=0&&D<=1&&(i[c++]=D)}}return c}function jv(r,t,e,n,a){var i=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Or(o)){if(Kv(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(Or(f))a[0]=-i/(2*o);else if(f>0){var h=Nr(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function Rr(r,t,e,n,a,i){var o=(t-r)*a+r,s=(e-t)*a+t,l=(n-e)*a+e,u=(s-o)*a+o,f=(l-s)*a+s,h=(f-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=n}function Jv(r,t,e,n,a,i,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,m;Ke[0]=l,Ke[1]=u;for(var y=0;y<1;y+=.05)we[0]=zt(r,e,a,o,y),we[1]=zt(t,n,i,s,y),g=ea(Ke,we),g<c&&(h=y,c=g);c=1/0;for(var _=0;_<32&&!(v<Zv);_++)d=h-v,p=h+v,we[0]=zt(r,e,a,o,d),we[1]=zt(t,n,i,s,d),g=ea(we,Ke),d>=0&&g<c?(h=d,c=g):(sa[0]=zt(r,e,a,o,p),sa[1]=zt(t,n,i,s,p),m=ea(sa,Ke),p<=1&&m<c?(h=p,c=m):v*=.5);return f&&(f[0]=zt(r,e,a,o,h),f[1]=zt(t,n,i,s,h)),Nr(c)}function Gb(r,t,e,n,a,i,o,s,l){for(var u=r,f=t,h=0,v=1/l,c=1;c<=l;c++){var d=c*v,p=zt(r,e,a,o,d),g=zt(t,n,i,s,d),m=p-u,y=g-f;h+=Math.sqrt(m*m+y*y),u=p,f=g}return h}function Yt(r,t,e,n){var a=1-n;return a*(a*r+2*n*t)+n*n*e}function td(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function Hb(r,t,e,n,a){var i=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(Or(i)){if(Kv(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(Or(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var h=Nr(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function ed(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Bo(r,t,e,n,a){var i=(t-r)*n+r,o=(e-t)*n+t,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=e}function rd(r,t,e,n,a,i,o,s,l){var u,f=.005,h=1/0;Ke[0]=o,Ke[1]=s;for(var v=0;v<1;v+=.05){we[0]=Yt(r,e,a,v),we[1]=Yt(t,n,i,v);var c=ea(Ke,we);c<h&&(u=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<Zv);d++){var p=u-f,g=u+f;we[0]=Yt(r,e,a,p),we[1]=Yt(t,n,i,p);var c=ea(we,Ke);if(p>=0&&c<h)u=p,h=c;else{sa[0]=Yt(r,e,a,g),sa[1]=Yt(t,n,i,g);var m=ea(sa,Ke);g<=1&&m<h?(u=g,h=m):f*=.5}}return l&&(l[0]=Yt(r,e,a,u),l[1]=Yt(t,n,i,u)),Nr(h)}function Wb(r,t,e,n,a,i,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=Yt(r,e,a,v),d=Yt(t,n,i,v),p=c-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=c,l=d}return u}var Ub=/cubic-bezier\(([0-9,\.e ]+)\)/;function nd(r){var t=r&&Ub.exec(r);if(t){var e=t[1].split(","),n=+Xe(e[0]),a=+Xe(e[1]),i=+Xe(e[2]),o=+Xe(e[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ro(0,n,i,1,l,s)&&zt(0,a,o,1,s[0])}}}var Yb=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||te,this.ondestroy=t.ondestroy||te,this.onrestart=t.onrestart||te,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 n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=t-l,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=Z(t)?t:si[t]||nd(t)},r}(),ad=function(){function r(t){this.value=t}return r}(),$b=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new ad(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,n=t.next;e?e.next=n:this.head=n,n?n.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}(),li=function(){function r(t){this._list=new $b,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new ad(e),s.key=t,n.insertEntry(s),a[t]=s}return i},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),id={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 Br(r){return r=Math.round(r),r<0?0:r>255?255:r}function Vo(r){return r<0?0:r>1?1:r}function _u(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Br(parseFloat(t)/100*255):Br(parseInt(t,10))}function ui(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Vo(parseFloat(t)/100):Vo(parseFloat(t))}function Su(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 Fo(r,t,e){return r+(t-r)*e}function xe(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function bu(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var od=new li(20),zo=null;function la(r,t){zo&&bu(zo,t),zo=od.put(r,zo||t.slice())}function Qe(r,t){if(r){t=t||[];var e=od.get(r);if(e)return bu(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in id)return bu(t,id[n]),la(r,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){xe(t,0,0,0,1);return}return xe(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),la(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){xe(t,0,0,0,1);return}return xe(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),la(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?xe(t,+u[0],+u[1],+u[2],1):xe(t,0,0,0,1);f=ui(u.pop());case"rgb":if(u.length>=3)return xe(t,_u(u[0]),_u(u[1]),_u(u[2]),u.length===3?f:ui(u[3])),la(r,t),t;xe(t,0,0,0,1);return;case"hsla":if(u.length!==4){xe(t,0,0,0,1);return}return u[3]=ui(u[3]),sd(u,t),la(r,t),t;case"hsl":if(u.length!==3){xe(t,0,0,0,1);return}return sd(u,t),la(r,t),t;default:return}}xe(t,0,0,0,1)}}function sd(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=ui(r[1]),a=ui(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],xe(t,Br(Su(o,i,e+1/3)*255),Br(Su(o,i,e)*255),Br(Su(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function ld(r,t){var e=Qe(r);if(e){for(var n=0;n<3;n++)e[n]=e[n]*(1-t)|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return fi(e,e.length===4?"rgba":"rgb")}}function Xb(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=Qe(t[a]),s=Qe(t[i]),l=n-a,u=fi([Br(Fo(o[0],s[0],l)),Br(Fo(o[1],s[1],l)),Br(Fo(o[2],s[2],l)),Vo(Fo(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function ud(r,t){var e=Qe(r);if(e&&t!=null)return e[3]=Vo(t),fi(e,"rgba")}function fi(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 Go(r,t){var e=Qe(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var fd=new li(100);f