logistics_sy/public/admin/assets/zrender.1084fa23.js

17 lines
186 KiB
JavaScript
Raw Normal View History

2023-11-08 15:13:08 +08:00
import{_ as B}from"./tslib.60310f1a.js";var ms=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),ws=function(){function e(){this.browser=new ms,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 e}(),hr=new ws;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(hr.wxa=!0,hr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?hr.worker=!0:typeof navigator>"u"?(hr.node=!0,hr.svgSupported=!0):Ts(navigator.userAgent,hr);function Ts(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),n=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),a&&(r.ie=!0,r.version=a[1]),n&&(r.edge=!0,r.version=n[1],r.newEdge=+n[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const tt=hr;var ba=12,bs="sans-serif",cr=ba+"px "+bs,Cs=20,Ls=100,Ms="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Ss(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var i=String.fromCharCode(r+32),a=(e.charCodeAt(r)-Cs)/Ls;t[i]=a}return t}var Ps=Ss(Ms),le={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,i){if(!e){var a=le.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==i&&(t=e.font=i||cr),e.measureText(r);r=r||"",i=i||cr;var n=/^([0-9]*?)px$/.exec(i),o=+(n&&n[1])||ba,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var f=0;f<r.length;f++){var h=Ps[r[f]];s+=h==null?o:h*o}return{width:s}}}(),loadImage:function(e,t,r){var i=new Image;return i.onload=t,i.onerror=r,i.src=e,i}},io=oi(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),ao=oi(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ve=Object.prototype.toString,ni=Array.prototype,Rs=ni.forEach,Ds=ni.filter,Ca=ni.slice,As=ni.map,Ia=function(){}.constructor,pe=Ia?Ia.prototype:null,La="__proto__",xs=2311;function no(){return xs++}function Ma(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Br(e){if(e==null||typeof e!="object")return e;var t=e,r=ve.call(e);if(r==="[object Array]"){if(!te(e)){t=[];for(var i=0,a=e.length;i<a;i++)t[i]=Br(e[i])}}else if(ao[r]){if(!te(e)){var n=e.constructor;if(n.from)t=n.from(e);else{t=new n(e.length);for(var i=0,a=e.length;i<a;i++)t[i]=e[i]}}}else if(!io[r]&&!te(e)&&!Vi(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==La&&(t[o]=Br(e[o]))}return t}function Sr(e,t,r){if(!zt(t)||!zt(e))return r?Br(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==La){var a=e[i],n=t[i];zt(n)&&zt(a)&&!ne(n)&&!ne(a)&&!Vi(n)&&!Vi(a)&&!Ha(n)&&!Ha(a)&&!te(n)&&!te(a)?Sr(a,n,r):(r||!(i in e))&&(e[i]=Br(t[i]))}return e}function Ol(e,t){for(var r=e[0],i=1,a=e.length;i<a;i++)r=Sr(r,e[i],t);return r}function $(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==La&&(e[r]=t[r]);return e}function _t(e,t,r){for(var i=j(t),a=0;a<i.length;a++){var n=i[a];(r?t[n]!=null:e[n]==null)&&(e[n]=t[n])}return e}le.createCanvas;function Pt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r}return-1}function Hl(e,t){var r=e.prot
`),n=a.length;if(n===1)return on(a[0],t,r,i);for(var o=new W(0,0,0,0),s=0;s<a.length;s++){var f=on(a[s],t,r,i);s===0?o.copy(f):o.union(f)}return o}function Jr(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Lr(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function xa(e){return ut("\u56FD",e)}function he(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function ah(e,t,r){var i=t.position||"inside",a=t.distance!=null?t.distance:5,n=r.height,o=r.width,s=n/2,f=r.x,h=r.y,u="left",l="top";if(i instanceof Array)f+=he(i[0],r.width),h+=he(i[1],r.height),u=null,l=null;else switch(i){case"left":f-=a,h+=s,u="right",l="middle";break;case"right":f+=a+o,h+=s,l="middle";break;case"top":f+=o/2,h-=a,u="center",l="bottom";break;case"bottom":f+=o/2,h+=n+a,u="center";break;case"inside":f+=o/2,h+=s,u="center",l="middle";break;case"insideLeft":f+=a,h+=s,l="middle";break;case"insideRight":f+=o-a,h+=s,u="right",l="middle";break;case"insideTop":f+=o/2,h+=a,u="center";break;case"insideBottom":f+=o/2,h+=n-a,u="center",l="bottom";break;case"insideTopLeft":f+=a,h+=a;break;case"insideTopRight":f+=o-a,h+=a,u="right";break;case"insideBottomLeft":f+=a,h+=n-a,l="bottom";break;case"insideBottomRight":f+=o-a,h+=n-a,u="right",l="bottom";break}return e=e||{},e.x=f,e.y=h,e.align=u,e.verticalAlign=l,e}var Ri="__zr_normal__",Di=fe.concat(["ignore"]),nh=oi(fe,function(e,t){return e[t]=!0,e},{ignore:!1}),yr={},oh=new W(0,0,0,0),Ea=function(){function e(t){this.id=no(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,a=i.local,n=r.innerTransformable,o=void 0,s=void 0,f=!1;n.parent=a?this:null;var h=!1;if(n.copyTransform(r),i.position!=null){var u=oh;i.layoutRect?u.copy(i.layoutRect):u.copy(this.getBoundingRect()),a||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(yr,i,u):ah(yr,i,u),n.x=yr.x,n.y=yr.y,o=yr.align,s=yr.verticalAlign;var l=i.origin;if(l&&i.rotation!=null){var v=void 0,c=void 0;l==="center"?(v=u.width*.5,c=u.height*.5):(v=he(l[0],u.width),c=he(l[1],u.height)),h=!0,n.originX=-n.x+v+(a?0:u.x),n.originY=-n.y+c+(a?0:u.y)}}i.rotation!=null&&(n.rotation=i.rotation);var _=i.offset;_&&(n.x+=_[0],n.y+=_[1],h||(n.originX=-_[0],n.originY=-_[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,d=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),p=void 0,y=void 0,m=void 0;g&&this.canBeInsideText()?(p=i.insideFill,y=i.insideStroke,(p==null||p==="auto")&&(p=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(p),m=!0)):(p=i.outsideFill,y=i.outsideStroke,(p==null||p==="auto")&&(p=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(p),m=!0)),p=p||"#000",(p!==d.fill||y!==d.stroke||m!==d.autoStroke||o!==d.align||s!==d.verticalAlign)&&(f=!0,d.fill=p,d.stroke=y,d.autoStroke=m,d.align=o,d.verticalAlign=s,r.setDefaultTextStyle(d)),r.__dirty|=ht,f&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ua:ha},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&Dt(r);i||(i=[255,255,255,1]);for(var a=i[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*a+(n?0:255)*(1-a);return i[3]=1,ce(i,"rgba")},e.prototype.traverse=fun
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var Xe={},Io={};function lh(e){delete Io[e]}function vh(e){if(!e)return!1;if(typeof e=="string")return Ne(e,1)<fa;if(e.colorStops){for(var t=e.colorStops,r=0,i=t.length,a=0;a<i;a++)r+=Ne(t[a].color,1);return r/=i,r<fa}return!1}var ch=function(){function e(t,r,i){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=r,this.id=t;var n=new mf,o=i.renderer||"canvas";Xe[o]||(o=j(Xe)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Xe[o](r,n,i,t),f=i.ssr||s.ssrOnly;this.storage=n,this.painter=s;var h=!tt.node&&!tt.worker&&!f?new Nf(s.getViewportRoot(),s.root):null;this.handler=new cf(n,s,h,s.root),this.animation=new $f({stage:{update:f?null:function(){return a._flush(!0)}}}),f||this.animation.start()}return e.prototype.add=function(t){!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=vh(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var r,i=Ar();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=Ar();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Mr&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,lh(this.id)},e}();function tv(e,t){var r=new ch(no(),e,t);return Io[r.id]=r,r}function rv(e,t){Xe[e]=t}var va=new Ra(50);function dh(e){if(typeof e=="string"){var t=va.get(e);return t&&t.image}else return e}function Oo(e,t,r,i,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var n=va.get(e),o={hostEl:r,cb:i,cbPayload:a};return n?(t=n.image,!hi(t)&&n.pending.push(o)):(t=le.loadImage(e,sn,sn),t.__zrImageSrc=e,va.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function sn(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending
`);a=Ho(t,r,i,a);for(var o=0,s=n.length;o<s;o++)n[o]=Bo(n[o],a);return n.join(`
`)}function Ho(e,t,r,i){i=i||{};var a=$({},i);a.font=t,r=pt(r,"..."),a.maxIterations=pt(i.maxIterations,2);var n=a.minChar=pt(i.minChar,0);a.cnCharWidth=ut("\u56FD",t);var o=a.ascCharWidth=ut("a",t);a.placeholder=pt(i.placeholder,"");for(var s=e=Math.max(0,e-1),f=0;f<n&&s>=o;f++)s-=o;var h=ut(r,t);return h>s&&(r="",h=0),s=e-h,a.ellipsis=r,a.ellipsisWidth=h,a.contentWidth=s,a.containerWidth=e,a}function Bo(e,t){var r=t.containerWidth,i=t.font,a=t.contentWidth;if(!r)return"";var n=ut(e,i);if(n<=r)return e;for(var o=0;;o++){if(n<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?_h(e,a,t.ascCharWidth,t.cnCharWidth):n>0?Math.floor(e.length*a/n):0;e=e.substr(0,s),n=ut(e,i)}return e===""&&(e=t.placeholder),e}function _h(e,t,r,i){for(var a=0,n=0,o=e.length;n<o&&a<t;n++){var s=e.charCodeAt(n);a+=0<=s&&s<=127?r:i}return n}function gh(e,t){e!=null&&(e+="");var r=t.overflow,i=t.padding,a=t.font,n=r==="truncate",o=xa(a),s=pt(t.lineHeight,o),f=!!t.backgroundColor,h=t.lineOverflow==="truncate",u=t.width,l;u!=null&&(r==="break"||r==="breakAll")?l=e?ko(e,t.font,u,r==="breakAll",0).lines:[]:l=e?e.split(`
`):[];var v=l.length*s,c=pt(t.height,v);if(v>c&&h){var _=Math.floor(c/s);l=l.slice(0,_)}if(e&&n&&u!=null)for(var g=Ho(u,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),d=0;d<l.length;d++)l[d]=Bo(l[d],g);for(var p=c,y=0,d=0;d<l.length;d++)y=Math.max(ut(l[d],a),y);u==null&&(u=y);var m=y;return i&&(p+=i[0]+i[2],m+=i[1]+i[3],u+=i[1]+i[3]),f&&(m=u),{lines:l,height:c,outerWidth:m,outerHeight:p,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:v,width:u}}var yh=function(){function e(){}return e}(),fn=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),mh=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function wh(e,t){var r=new mh;if(e!=null&&(e+=""),!e)return r;for(var i=t.width,a=t.height,n=t.overflow,o=(n==="break"||n==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:n==="breakAll"}:null,s=Ei.lastIndex=0,f;(f=Ei.exec(e))!=null;){var h=f.index;h>s&&Fi(r,e.substring(s,h),t,o),Fi(r,f[2],t,o,f[1]),s=Ei.lastIndex}s<e.length&&Fi(r,e.substring(s,e.length),t,o);var u=[],l=0,v=0,c=t.padding,_=n==="truncate",g=t.lineOverflow==="truncate";function d(z,Y,q){z.width=Y,z.lineHeight=q,l+=q,v=Math.max(v,Y)}t:for(var p=0;p<r.lines.length;p++){for(var y=r.lines[p],m=0,T=0,b=0;b<y.tokens.length;b++){var w=y.tokens[b],L=w.styleName&&t.rich[w.styleName]||{},C=w.textPadding=L.padding,M=C?C[1]+C[3]:0,S=w.font=L.font||t.font;w.contentHeight=xa(S);var P=pt(L.height,w.contentHeight);if(w.innerHeight=P,C&&(P+=C[0]+C[2]),w.height=P,w.lineHeight=Be(L.lineHeight,t.lineHeight,P),w.align=L&&L.align||t.align,w.verticalAlign=L&&L.verticalAlign||"middle",g&&a!=null&&l+w.lineHeight>a){b>0?(y.tokens=y.tokens.slice(0,b),d(y,T,m),r.lines=r.lines.slice(0,p+1)):r.lines=r.lines.slice(0,p);break t}var R=L.width,x=R==null||R==="auto";if(typeof R=="string"&&R.charAt(R.length-1)==="%")w.percentWidth=R,u.push(w),w.contentWidth=ut(w.text,S);else{if(x){var A=L.backgroundColor,E=A&&A.image;E&&(E=dh(E),hi(E)&&(w.width=Math.max(w.width,E.width*P/E.height)))}var D=_&&i!=null?i-T:null;D!=null&&D<w.width?!x||D<M?(w.text="",w.width=w.contentWidth=0):(w.text=ph(w.text,D-M,S,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=ut(w.text,S)):w.contentWidth=ut(w.text,S)}w.width+=M,T+=w.width,L&&(m=Math.max(m,w.lineHeight))}d(y,T,m)}r.outerWidth=r.width=pt(i,v),r.outerHeight=r.height=pt(a,l),r.contentHeight=l,r.contentWidth=v,c&&(r.outerWidth+=c[1]+c[3],r.outerHeight+=c[0]+c[2]);for(var p=0;p<u.length;p++){var w=u[p],k=w.percentWidth;w.width=parseInt(k,10)/100*r.width}return r}function Fi(e,t,r,i,a){var n=t==="",o=a&&r.rich[a]||{},s=e.lines,f=o.font||r.font,h=!1,u,l;if(i){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var _=he(o.width,i.width)+c;s.length>0&&_+i.accumWidth>i.width&&(u=t.split(`
`),h=!0),i.accumWidth=_}else{var g=ko(t,f,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+c,l=g.linesWidths,u=g.lines}}else u=t.split(`
`);for(var d=0;d<u.length;d++){var p=u[d],y=new yh;if(y.styleName=a,y.text=p,y.isLineHolder=!p&&!n,typeof o.width=="number"?y.width=o.width:y.width=l?l[d]:ut(p,f),!d&&!h){var m=(s[s.length-1]||(s[0]=new fn)).tokens,T=m.length;T===1&&m[0].isLineHolder?m[0]=y:(p||!T||n)&&m.push(y)}else s.push(new fn([y]))}}function Th(e){var t=e.charCodeAt(0);return t>=33&&t<=383}var bh=oi(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Ch(e){return Th(e)?!!bh[e]:!0}function ko(e,t,r,i,a){for(var n=[],o=[],s="",f="",h=0,u=0,l=0;l<e.length;l++){var v=e.charAt(l);if(v===`
`){f&&(s+=f,u+=h),n.push(s),o.push(u),s="",f="",h=0,u=0;continue}var c=ut(v,t),_=i?!1:!Ch(v);if(n.length?u+c>r:a+u+c>r){u?(s||f)&&(_?(s||(s=f,f="",h=0,u=h),n.push(s),o.push(u-h),f+=v,h+=c,s="",u=h):(f&&(s+=f,f="",h=0),n.push(s),o.push(u),s=v,u=c)):_?(n.push(f),o.push(h),f=v,h=c):(n.push(v),o.push(c));continue}u+=c,_?(f+=v,h+=c):(f&&(s+=f,f="",h=0),s+=v)}return!n.length&&!s&&(s=e,f="",h=0),f&&(s+=f),s&&(n.push(s),o.push(u)),n.length===1&&(u+=a),{accumWidth:u,lines:n,linesWidths:o}}var ca="__zr_style_"+Math.round(Math.random()*10),vr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ui={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};vr[ca]=!0;var hn=["z","z2","invisible"],Lh=["invisible"],Mh=function(e){B(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=j(r),a=0;a<i.length;a++){var n=i[a];n==="style"?this.useStyle(r[n]):e.prototype.attrKV.call(this,n,r[n])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,i,a,n){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Sh(this,r,i)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(n&&this.parent)for(var f=this.parent;f;){if(f.ignore)return!1;f=f.parent}return!0},t.prototype.contain=function(r,i){return this.rectContain(r,i)},t.prototype.traverse=function(r,i){r.call(i,this)},t.prototype.rectContain=function(r,i){var a=this.transformCoordToLocal(r,i),n=this.getBoundingRect();return n.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,a=this.getBoundingRect(),n=this.style,o=n.shadowBlur||0,s=n.shadowOffsetX||0,f=n.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new W(0,0,0,0)),i?W.applyTransform(r,a,i):r.copy(a),(o||s||f)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(f),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+f-o));var h=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-h),r.y=Math.floor(r.y-h),r.width=Math.ceil(r.width+1+h*2),r.height=Math.ceil(r.height+1+h*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new W(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,i){r!=="style"?e.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:$(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Qr,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Qr)},t.prototype.styleUpdated=function(){this.__dirty&=~Qr},t.prototype.createStyle=function(r){return fi(vr,r)},t.prototype.useStyle=function(r){r[ca]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[ca]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,hn)},t.prototype._applyStateObj=function(r,i,a,n,o,s){e.prototype._applyStateObj.call(this,r,i,a,n,o,s);var f=!(i&&n),h;if(i&&i.style?o?n?h=i.style:(h=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(h,i.style)):(h=this._mergeStyle(this.createStyle(),n?this.style:a.style),this._mergeStyle(h,i.style)):f&&(h=a.style),h)if(o){var u=this.style;if(thi