edu/public/admin/assets/zrender.91adfe72.js

17 lines
188 KiB
JavaScript
Raw Normal View History

2024-10-26 03:35:51 +00:00
import{_ as B}from"./tslib.60310f1a.js";var Sn=12,Ms="sans-serif",dr=Sn+"px "+Ms,Ls=20,Ss=100,Ps="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Rs(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var i=String.fromCharCode(r+32),n=(e.charCodeAt(r)-Ls)/Ss;t[i]=n}return t}var Ds=Rs(Ps),le={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,i){if(!e){var n=le.createCanvas();e=n&&n.getContext("2d")}if(e)return t!==i&&(t=e.font=i||dr),e.measureText(r);r=r||"",i=i||dr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Sn,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var f=0;f<r.length;f++){var h=Ds[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}},so=oi(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),fo=oi(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ce=Object.prototype.toString,ai=Array.prototype,As=ai.forEach,xs=ai.filter,Pn=ai.slice,Fs=ai.map,Hn=function(){}.constructor,_e=Hn?Hn.prototype:null,Rn="__proto__",Es=2311;function ho(){return Es++}function Dn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function zr(e){if(e==null||typeof e!="object")return e;var t=e,r=ce.call(e);if(r==="[object Array]"){if(!re(e)){t=[];for(var i=0,n=e.length;i<n;i++)t[i]=zr(e[i])}}else if(fo[r]){if(!re(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}}}else if(!so[r]&&!re(e)&&!Ji(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==Rn&&(t[o]=zr(e[o]))}return t}function Pr(e,t,r){if(!zt(t)||!zt(e))return r?zr(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==Rn){var n=e[i],a=t[i];zt(a)&&zt(n)&&!oe(a)&&!oe(n)&&!Ji(a)&&!Ji(n)&&!kn(a)&&!kn(n)&&!re(a)&&!re(n)?Pr(n,a,r):(r||!(i in e))&&(e[i]=zr(t[i]))}return e}function Xv(e,t){for(var r=e[0],i=1,n=e.length;i<n;i++)r=Pr(r,e[i],t);return r}function z(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==Rn&&(e[r]=t[r]);return e}function _t(e,t,r){for(var i=tt(t),n=0;n<i.length;n++){var a=i[n];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}le.createCanvas;function Rt(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 Gv(e,t){var r=e.prototype;function i(){}i.prototype=t.prototype,e.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(e.prototype[n]=r[n]);e.prototype.constructor=e,e.superClass=t}function uo(e,t,r){if(e="prototype"in e?e.prototype:e,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?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else _t(e,t,r)}function xt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function j(e,t,r){if(!!(e&&t))if(e.forEach&&e.forEach===As)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function Tt(e,t,r){if(!e)return[];if(!t)return vo(e);if(e.map&&e.map===Fs)return e.map(t,r);for(var i=[],n=0,a=e.length;n<a;n++)i.push(t.call(r,e[n],n,e));return i}function oi(e,t,r,i){if(!!(e&&t)){for(var n=0,a=e.length;n<a;n++)r=t.call(i,r,e[n],n,e);return r}}function Bn(e,t,r){if(!e)return[];if(!t)return vo(e);if(e.filter&&e.filter===xs)return e.filter(t,r);for(var i=[],n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e)&&i.push(e[n]);return i}function qv(e,t,r){if(!!(e&&t)){for(var i=0,n=e.length;i<n;i++)if(t.call(r,e[i],i,e))return e[i]}}function tt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function Is(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return f
`),a=n.length;if(a===1)return $n(n[0],t,r,i);for(var o=new $(0,0,0,0),s=0;s<n.length;s++){var f=$n(n[s],t,r,i);s===0?o.copy(f):o.union(f)}return o}function Kr(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Mr(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function An(e){return vt("\u56FD",e)}function fe(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function rf(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,f=r.x,h=r.y,u="left",v="top";if(i instanceof Array)f+=fe(i[0],r.width),h+=fe(i[1],r.height),u=null,v=null;else switch(i){case"left":f-=n,h+=s,u="right",v="middle";break;case"right":f+=n+o,h+=s,v="middle";break;case"top":f+=o/2,h-=n,u="center",v="bottom";break;case"bottom":f+=o/2,h+=a+n,u="center";break;case"inside":f+=o/2,h+=s,u="center",v="middle";break;case"insideLeft":f+=n,h+=s,v="middle";break;case"insideRight":f+=o-n,h+=s,u="right",v="middle";break;case"insideTop":f+=o/2,h+=n,u="center";break;case"insideBottom":f+=o/2,h+=a-n,u="center",v="bottom";break;case"insideTopLeft":f+=n,h+=n;break;case"insideTopRight":f+=o-n,h+=n,u="right";break;case"insideBottomLeft":f+=n,h+=a-n,v="bottom";break;case"insideBottomRight":f+=o-n,h+=a-n,u="right",v="bottom";break}return e=e||{},e.x=f,e.y=h,e.align=u,e.verticalAlign=v,e}var di=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ef(e,t,r,i,n){if(!t)return"";var a=(e+"").split(`
`);n=wo(t,r,i,n);for(var o=0,s=a.length;o<s;o++)a[o]=To(a[o],n);return a.join(`
`)}function wo(e,t,r,i){i=i||{};var n=z({},i);n.font=t,r=ut(r,"..."),n.maxIterations=ut(i.maxIterations,2);var a=n.minChar=ut(i.minChar,0);n.cnCharWidth=vt("\u56FD",t);var o=n.ascCharWidth=vt("a",t);n.placeholder=ut(i.placeholder,"");for(var s=e=Math.max(0,e-1),f=0;f<a&&s>=o;f++)s-=o;var h=vt(r,t);return h>s&&(r="",h=0),s=e-h,n.ellipsis=r,n.ellipsisWidth=h,n.contentWidth=s,n.containerWidth=e,n}function To(e,t){var r=t.containerWidth,i=t.font,n=t.contentWidth;if(!r)return"";var a=vt(e,i);if(a<=r)return e;for(var o=0;;o++){if(a<=n||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?nf(e,n,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*n/a):0;e=e.substr(0,s),a=vt(e,i)}return e===""&&(e=t.placeholder),e}function nf(e,t,r,i){for(var n=0,a=0,o=e.length;a<o&&n<t;a++){var s=e.charCodeAt(a);n+=0<=s&&s<=127?r:i}return a}function af(e,t){e!=null&&(e+="");var r=t.overflow,i=t.padding,n=t.font,a=r==="truncate",o=An(n),s=ut(t.lineHeight,o),f=!!t.backgroundColor,h=t.lineOverflow==="truncate",u=t.width,v;u!=null&&(r==="break"||r==="breakAll")?v=e?bo(e,t.font,u,r==="breakAll",0).lines:[]:v=e?e.split(`
`):[];var l=v.length*s,c=ut(t.height,l);if(l>c&&h){var _=Math.floor(c/s);v=v.slice(0,_)}if(e&&a&&u!=null)for(var g=wo(u,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),d=0;d<v.length;d++)v[d]=To(v[d],g);for(var p=c,y=0,d=0;d<v.length;d++)y=Math.max(vt(v[d],n),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:v,height:c,outerWidth:m,outerHeight:p,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:l,width:u}}var of=function(){function e(){}return e}(),Wn=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),sf=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 ff(e,t){var r=new sf;if(e!=null&&(e+=""),!e)return r;for(var i=t.width,n=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:a==="breakAll"}:null,s=di.lastIndex=0,f;(f=di.exec(e))!=null;){var h=f.index;h>s&&pi(r,e.substring(s,h),t,o),pi(r,f[2],t,o,f[1]),s=di.lastIndex}s<e.length&&pi(r,e.substring(s,e.length),t,o);var u=[],v=0,l=0,c=t.padding,_=a==="truncate",g=t.lineOverflow==="truncate";function d(Y,W,q){Y.width=W,Y.lineHeight=q,v+=q,l=Math.max(l,W)}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],M=w.styleName&&t.rich[w.styleName]||{},C=w.textPadding=M.padding,L=C?C[1]+C[3]:0,S=w.font=M.font||t.font;w.contentHeight=An(S);var P=ut(M.height,w.contentHeight);if(w.innerHeight=P,C&&(P+=C[0]+C[2]),w.height=P,w.lineHeight=ke(M.lineHeight,t.lineHeight,P),w.align=M&&M.align||t.align,w.verticalAlign=M&&M.verticalAlign||"middle",g&&n!=null&&v+w.lineHeight>n){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=M.width,x=R==null||R==="auto";if(typeof R=="string"&&R.charAt(R.length-1)==="%")w.percentWidth=R,u.push(w),w.contentWidth=vt(w.text,S);else{if(x){var A=M.backgroundColor,F=A&&A.image;F&&(F=Ns(F),vi(F)&&(w.width=Math.max(w.width,F.width*P/F.height)))}var D=_&&i!=null?i-T:null;D!=null&&D<w.width?!x||D<L?(w.text="",w.width=w.contentWidth=0):(w.text=ef(w.text,D-L,S,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=vt(w.text,S)):w.contentWidth=vt(w.text,S)}w.width+=L,T+=w.width,M&&(m=Math.max(m,w.lineHeight))}d(y,T,m)}r.outerWidth=r.width=ut(i,l),r.outerHeight=r.height=ut(n,v),r.contentHeight=v,r.contentWidth=l,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 pi(e,t,r,i,n){var a=t==="",o=n&&r.rich[n]||{},s=e.lines,f=o.font||r.font,h=!1,u,v;if(i){var l=o.padding,c=l?l[1]+l[3]:0;if(o.width!=null&&o.width!=="auto"){var _=fe(o.width,i.width)+c;s.length>0&&_+i.accumWidth>i.width&&(u=t.split(`
`),h=!0),i.accumWidth=_}else{var g=bo(t,f,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+c,v=g.linesWidths,u=g.lines}}else u=t.split(`
`);for(var d=0;d<u.length;d++){var p=u[d],y=new of;if(y.styleName=n,y.text=p,y.isLineHolder=!p&&!a,typeof o.width=="number"?y.width=o.width:y.width=v?v[d]:vt(p,f),!d&&!h){var m=(s[s.length-1]||(s[0]=new Wn)).tokens,T=m.length;T===1&&m[0].isLineHolder?m[0]=y:(p||!T||a)&&m.push(y)}else s.push(new Wn([y]))}}function hf(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var uf=oi(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function vf(e){return hf(e)?!!uf[e]:!0}function bo(e,t,r,i,n){for(var a=[],o=[],s="",f="",h=0,u=0,v=0;v<e.length;v++){var l=e.charAt(v);if(l===`
`){f&&(s+=f,u+=h),a.push(s),o.push(u),s="",f="",h=0,u=0;continue}var c=vt(l,t),_=i?!1:!vf(l);if(a.length?u+c>r:n+u+c>r){u?(s||f)&&(_?(s||(s=f,f="",h=0,u=h),a.push(s),o.push(u-h),f+=l,h+=c,s="",u=h):(f&&(s+=f,f="",h=0),a.push(s),o.push(u),s=l,u=c)):_?(a.push(f),o.push(h),f=l,h=c):(a.push(l),o.push(c));continue}u+=c,_?(f+=l,h+=c):(f&&(s+=f,f="",h=0),s+=l)}return!a.length&&!s&&(s=e,f="",h=0),f&&(s+=f),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}function Yr(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function tl(e,t){return e[0]=t[0],e[1]=t[1],e}function lf(e){return[e[0],e[1]]}function Xn(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function cf(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function df(e){return Math.sqrt(pf(e))}function pf(e){return e[0]*e[0]+e[1]*e[1]}function _i(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function _f(e,t){var r=df(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function rn(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var gf=rn;function yf(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Br=yf;function mf(e,t,r,i){return e[0]=t[0]+i*(r[0]-t[0]),e[1]=t[1]+i*(r[1]-t[1]),e}function ie(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e}function Dr(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Ar(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Gn=Vs,qn=5e-5;function Kt(e){return e>qn||e<-qn}var Jt=[],_r=[],gi=Hr(),yi=Math.abs,wf=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Kt(this.rotation)||Kt(this.x)||Kt(this.y)||Kt(this.scaleX-1)||Kt(this.scaleY-1)||Kt(this.skewX)||Kt(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(Gn(i),this.invTransform=null);return}i=i||Hr(),r?this.getLocalTransform(i):Gn(i),t&&(r?ee(i,t,i):Qs(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Jt);var i=Jt[0]<0?-1:1,n=Jt[1]<0?-1:1,a=((Jt[0]-i)*r+i)/Jt[0]||0,o=((Jt[1]-n)*r+n)/Jt[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Hr(),Ks(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(!!t){var r=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),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Hr(),ee(_r,t.invTransform,r),r=_r);var i=this.originX,n=this.originY;(i||n)&&(gi[4]=i,gi[5]=n,ee(_r,r,gi),_r[4]-=i,_r[5]-=n,r=_r),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&ie(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&ie(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&yi(t[0]-1)>1e-10&&yi(t[3]-1)>1e-10?Math.sqrt(yi(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Tf(this,t)},e.getLocalTra
* 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 Ge={},ds={};function qu(e){delete ds[e]}function Uu(e){if(!e)return!1;if(typeof e=="string")return Ne(e,1)<fn;if(e.colorStops){for(var t=e.colorStops,r=0,i=t.length,n=0;n<i;n++)r+=Ne(t[n].color,1);return r/=i,r<fn}return!1}var Zu=function(){function e(t,r,i){var n=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 a=new Iu,o=i.renderer||"canvas";Ge[o]||(o=tt(Ge)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Ge[o](r,a,i,t),f=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var h=!K.node&&!K.worker&&!f?new Gu(s.getViewportRoot(),s.root):null,u=i.useCoarsePointer,v=u==null||u==="auto"?K.touchEventsSupported:!!u,l=44,c;v&&(c=ut(i.pointerSize,l)),this.handler=new Ru(a,s,h,s.root,c),this.animation=new Hu({stage:{update:f?null:function(){return n._flush(!0)}}}),f||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Uu(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){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,i=Er();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var n=Er();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-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._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this._disposed||this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Sr&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.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,qu(this.id))},e}();function yl(e,t){var r=new Zu(ho(),e,t);return ds[r.id]=r,r}function ml(e,t){Ge[e]=t}var Nu=Math.round(Math.random()*9),Vu=typeof Obj