/*! * build: Hopaheal * copyright: Mead * time: 2022-9-23 10:41:22 */ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1f95336e"],{"1be6":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var r=i("ba54");function n(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(r["z"])(t)?[t]:Object(r["t"])(t)?t:null:null}function a(t){var e=t.style,i=e.lineDash&&e.lineWidth>0&&n(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(i){var o=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;o&&1!==o&&(i=Object(r["H"])(i,(function(t){return t/o})),a/=o)}return[i,a]}},6199:function(t,e,i){"use strict";var r=i("08c2"),n=i("ba54"),a=i("d9bc"),o=i("2eae"),s=i("3aae"),h=i("13be"),l=i("f779"),u="silent";function c(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:p}}function p(){h["g"](this.event)}var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return Object(r["a"])(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(s["a"]),d=function(){function t(t,e){this.x=t,this.y=e}return t}(),_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],v=function(t){function e(e,i,r,n){var a=t.call(this)||this;return a._hovered=new d(0,0),a.storage=e,a.painter=i,a.painterRoot=n,r=r||new f,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new o["a"](a),a}return Object(r["a"])(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(n["k"](_,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,r=y(this,e,i),n=this._hovered,a=n.target;a&&!a.__zr&&(n=this.findHover(n.x,n.y),a=n.target);var o=this._hovered=r?new d(e,i):this.findHover(e,i),s=o.target,h=this.proxy;h.setCursor&&h.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(n,"mouseout",t),this.dispatchToElement(o,"mousemove",t),s&&s!==a&&this.dispatchToElement(o,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new d(0,0)},e.prototype.dispatch=function(t,e){var i=this[t];i&&i.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,i){t=t||{};var r=t.target;if(!r||!r.silent){var n="on"+e,a=c(e,t,i);while(r)if(r[n]&&(a.cancelBubble=!!r[n].call(r,a)),r.trigger(e,a),r=r.__hostTarget?r.__hostTarget:r.parent,a.cancelBubble)break;a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[n]&&t[n].call(t,a),t.trigger&&t.trigger(e,a)})))}},e.prototype.findHover=function(t,e,i){for(var r=this.storage.getDisplayList(),n=new d(t,e),a=r.length-1;a>=0;a--){var o=void 0;if(r[a]!==i&&!r[a].ignore&&(o=g(r[a],t,e))&&(!n.topTarget&&(n.topTarget=r[a]),o!==u)){n.target=r[a];break}}return n},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new l["a"]);var i=this._gestureMgr;"start"===e&&i.clear();var r=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),r){var n=r.type;t.gestureEvent=n;var a=new d;a.target=r.target,this.dispatchToElement(a,n,r.event)}},e}(s["a"]);function g(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){var r=t,n=void 0,a=!1;while(r){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(e,i))return!1;r.silent&&(n=!0)}var s=r.__hostTarget;r=s||r.parent}return!n||u}return!1}function y(t,e,i){var r=t.painter;return e<0||e>r.getWidth()||i<0||i>r.getHeight()}n["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){v.prototype[t]=function(e){var i,r,n=e.zrX,o=e.zrY,s=y(this,n,o);if("mouseup"===t&&s||(i=this.findHover(n,o),r=i.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a["f"](this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}})),e["a"]=v},"7ca8":function(t,e,i){"use strict";function r(t){return isFinite(t)}function n(t,e,i){var n=null==e.x?0:e.x,a=null==e.x2?1:e.x2,o=null==e.y?0:e.y,s=null==e.y2?0:e.y2;e.global||(n=n*i.width+i.x,a=a*i.width+i.x,o=o*i.height+i.y,s=s*i.height+i.y),n=r(n)?n:0,a=r(a)?a:1,o=r(o)?o:0,s=r(s)?s:0;var h=t.createLinearGradient(n,o,a,s);return h}function a(t,e,i){var n=i.width,a=i.height,o=Math.min(n,a),s=null==e.x?.5:e.x,h=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(s=s*n+i.x,h=h*a+i.y,l*=o),s=r(s)?s:.5,h=r(h)?h:.5,l=l>=0&&r(l)?l:.5;var u=t.createRadialGradient(s,h,0,s,h,l);return u}function o(t,e,i){for(var r="radial"===e.type?a(t,e,i):n(t,e,i),o=e.colorStops,s=0;s=o)}}for(var p=this.__startIndex;p15)break}}i.prevElClipPaths&&l.restore()};if(p)if(0===p.length)s=h.__endIndex;else for(var b=f.dpr,x=0;x0&&t>r[0]){for(s=0;st)break;o=i[r[s]]}if(r.splice(s+1,0,t),i[t]=e,!e.virtual)if(o){var h=o.dom;h.nextSibling?a.insertBefore(e.dom,h.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,r=0;r0?m:0),this._needsManuallyCompositing),c.__builtin__||n["G"]("ZLevel "+l+" has been used by unkown layer "+c.id),c!==s&&(c.__used=!0,c.__startIndex!==o&&(c.__dirty=!0),c.__startIndex=o,c.incremental?c.__drawIndex=-1:c.__drawIndex=o,e(o),s=c),r.__dirty&u["a"]&&!r.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,n["k"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?n["I"](i[t],e,!0):i[t]=e;for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(s(),c.z=0),isNaN(c.z2)&&(s(),c.z2=0),isNaN(c.zlevel)&&(s(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,e,i);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,e,i);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,i)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;e=0&&this._roots.splice(n,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();e["a"]=l},a2f5:function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var r={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1,r=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=r/4):e=r*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,i=.1,r=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=r/4):e=r*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,i=.1,r=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=r/4):e=r*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-r.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*r.bounceIn(2*t):.5*r.bounceOut(2*t-1)+.5}},n=r,a=i("ba54"),o=i("a6b4"),s=function(){function t(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||a["L"],this.ondestroy=t.ondestroy||a["L"],this.onrestart=t.onrestart||a["L"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var i=this._life,r=t-this._startTime-this._pausedTime,n=r/i;n<0&&(n=0),n=Math.min(n,1);var a=this.easingFunc,o=a?a(n):n;if(this.onframe(o),1===n){if(!this.loop)return!0;var s=r%i;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(a["w"])(t)?t:n[t]||Object(o["a"])(t)},t}(),h=s,l=i("1eb8"),u=i("c8d0"),c=Array.prototype.slice;function p(t,e,i){return(e-t)*i+t}function f(t,e,i,r){for(var n=e.length,a=0;ar?e:t,a=Math.min(i,r),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)r.length=o;else for(var h=a;h=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var r=this.keyframes,s=r.length,h=!1,c=L,p=e;if(Object(a["u"])(e)){var f=x(e);c=f,(1===f&&!Object(a["z"])(e[0])||2===f&&!Object(a["z"])(e[0][0]))&&(h=!0)}else if(Object(a["z"])(e)&&!Object(a["l"])(e))c=w;else if(Object(a["C"])(e))if(isNaN(+e)){var d=l["g"](e);d&&(p=d,c=k)}else c=w;else if(Object(a["x"])(e)){var _=Object(a["m"])({},p);_.colorStops=Object(a["H"])(e.colorStops,(function(t){return{offset:t.offset,color:l["g"](t.color)}})),Object(u["m"])(e)?c=O:Object(u["o"])(e)&&(c=S),p=_}0===s?this.valType=c:c===this.valType&&c!==L||(h=!0),this.discrete=this.discrete||h;var v={time:t,value:p,rawValue:e,percent:0};return i&&(v.easing=i,v.easingFunc=Object(a["w"])(i)?i:n[i]||Object(o["a"])(i)),r.push(v),v},t.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,n=i.length,a=i[n-1],o=this.discrete,s=P(r),h=j(r),l=0;l=0;i--)if(l[i].percent<=e)break;i=g(i,u-2)}else{for(i=v;ie)break;i=g(i-1,u-2)}n=l[i+1],r=l[i]}if(r&&n){this._lastFr=i,this._lastFrP=e;var m=n.percent-r.percent,x=0===m?1:g((e-r.percent)/m,1);n.easingFunc&&(x=n.easingFunc(x));var w=o?this._additiveValue:_?I:t[c];if(!P(h)&&!_||w||(w=this._additiveValue=[]),this.discrete)t[c]=x<1?r.rawValue:n.rawValue;else if(P(h))h===C?f(w,r[s],n[s],x):d(w,r[s],n[s],x);else if(j(h)){var T=r[s],S=n[s],L=h===O;t[c]={type:L?"linear":"radial",x:p(T.x,S.x,x),y:p(T.y,S.y,x),colorStops:Object(a["H"])(T.colorStops,(function(t,e){var i=S.colorStops[e];return{offset:p(t.offset,i.offset,x),color:b(f([],t.color,i.color,x))}})),global:S.global},L?(t[c].x2=p(T.x2,S.x2,x),t[c].y2=p(T.y2,S.y2,x)):t[c].r=p(T.r,S.r,x)}else if(_)f(w,r[s],n[s],x),o||(t[c]=b(w));else{var z=p(r[s],n[s],x);o?this._additiveValue=z:t[c]=z}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,r=this._additiveValue;e===w?t[i]=t[i]+r:e===k?(l["g"](t[i],I),_(I,I,r,1),t[i]=b(I)):e===C?_(t[i],t[i],r,1):e===T&&v(t[i],t[i],r,1)},t}(),R=function(){function t(t,e,i,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(a["G"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=i)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,Object(a["F"])(e),i)},t.prototype.whenWithKeys=function(t,e,i,r){for(var n=this._tracks,a=0;a0&&s.addKeyframe(0,m(h),r),this._trackKeys.push(o)}s.addKeyframe(t,m(e[o]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i0)){this._started=1;for(var e=this,i=[],r=this._maxTime||0,n=0;n1){var s=o.pop();n.addKeyframe(s.time,t[r]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},t}();e["b"]=R},a6b4:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var r=i("e094"),n=i("ba54"),a=/cubic-bezier\(([0-9,\.e ]+)\)/;function o(t){var e=t&&a.exec(t);if(e){var i=e[1].split(","),o=+Object(n["T"])(i[0]),s=+Object(n["T"])(i[1]),h=+Object(n["T"])(i[2]),l=+Object(n["T"])(i[3]);if(isNaN(o+s+h+l))return;var u=[];return function(t){return t<=0?0:t>=1?1:Object(r["f"])(0,o,h,1,t,u)&&Object(r["a"])(0,s,l,1,u[0])}}}},cd0d:function(t,e,i){"use strict";var r,n=i("f505");r=n["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},e["a"]=r},d0c1:function(t,e,i){"use strict";i.d(e,"b",(function(){return s}));var r=i("08c2"),n=i("3aae"),a=i("cd0d"),o=i("a2f5");function s(){return(new Date).getTime()}var h=function(t){function e(e){var i=t.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 Object(r["a"])(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){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=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=s()-this._pausedTime,i=e-this._time,r=this._head;while(r){var n=r.next,a=r.step(e,i);a?(r.ondestroy(),this.removeClip(r),r=n):r=n}this._time=e,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(Object(a["a"])(e),!t._paused&&t.update())}this._running=!0,Object(a["a"])(e)},e.prototype.start=function(){this._running||(this._time=s(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=s(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=s()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var i=new o["b"](t,e.loop);return this.addAnimator(i),i},e}(n["a"]);e["a"]=h},e016:function(t,e,i){"use strict";i.d(e,"c",(function(){return b})),i.d(e,"b",(function(){return H})),i.d(e,"a",(function(){return E}));var r=i("9ada"),n=i("c3a0"),a=i("85f8"),o=i("7ca8"),s=i("f566"),h=i("a274"),l=i("ed6b"),u=i("ba54"),c=i("1be6"),p=i("71a8"),f=i("cf22"),d=new n["a"](!0);function _(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function v(t){return"string"===typeof t&&"none"!==t}function g(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var i=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i}else t.fill()}function m(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var i=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=i}else t.stroke()}function b(t,e,i){var r=Object(a["a"])(e.image,e.__image,i);if(Object(a["c"])(r)){var n=t.createPattern(r,e.repeat||"repeat");if("function"===typeof DOMMatrix&&n&&n.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*u["a"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(o)}return n}}function x(t,e,i,r){var n,a=_(i),s=g(i),h=i.strokePercent,l=h<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var f=e.path||d,v=e.__dirty;if(!r){var x=i.fill,w=i.stroke,C=s&&!!x.colorStops,T=a&&!!w.colorStops,k=s&&!!x.image,O=a&&!!w.image,S=void 0,L=void 0,j=void 0,P=void 0,I=void 0;(C||T)&&(I=e.getBoundingRect()),C&&(S=v?Object(o["a"])(t,x,I):e.__canvasFillGradient,e.__canvasFillGradient=S),T&&(L=v?Object(o["a"])(t,w,I):e.__canvasStrokeGradient,e.__canvasStrokeGradient=L),k&&(j=v||!e.__canvasFillPattern?b(t,x,e):e.__canvasFillPattern,e.__canvasFillPattern=j),O&&(P=v||!e.__canvasStrokePattern?b(t,w,e):e.__canvasStrokePattern,e.__canvasStrokePattern=j),C?t.fillStyle=S:k&&(j?t.fillStyle=j:s=!1),T?t.strokeStyle=L:O&&(P?t.strokeStyle=P:a=!1)}var z,R,A=e.getGlobalScale();f.setScale(A[0],A[1],e.segmentIgnoreThreshold),t.setLineDash&&i.lineDash&&(n=Object(c["a"])(e),z=n[0],R=n[1]);var F=!0;(u||v&p["b"])&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),F=!1),f.reset(),e.buildPath(f,e.shape,r),f.toStatic(),e.pathUpdated()),F&&f.rebuildPath(t,l?h:1),z&&(t.setLineDash(z),t.lineDashOffset=R),r||(i.strokeFirst?(a&&m(t,i),s&&y(t,i)):(s&&y(t,i),a&&m(t,i))),z&&t.setLineDash([])}function w(t,e,i){var r=e.__image=Object(a["a"])(i.image,e.__image,e,e.onload);if(r&&Object(a["c"])(r)){var n=i.x||0,o=i.y||0,s=e.getWidth(),h=e.getHeight(),l=r.width/r.height;if(null==s&&null!=h?s=h*l:null==h&&null!=s?h=s/l:null==s&&null==h&&(s=r.width,h=r.height),i.sWidth&&i.sHeight){var u=i.sx||0,c=i.sy||0;t.drawImage(r,u,c,i.sWidth,i.sHeight,n,o,s,h)}else if(i.sx&&i.sy){u=i.sx,c=i.sy;var p=s-u,f=h-c;t.drawImage(r,u,c,p,f,n,o,s,h)}else t.drawImage(r,n,o,s,h)}}function C(t,e,i){var r,n=i.text;if(null!=n&&(n+=""),n){t.font=i.font||f["a"],t.textAlign=i.textAlign,t.textBaseline=i.textBaseline;var a=void 0,o=void 0;t.setLineDash&&i.lineDash&&(r=Object(c["a"])(e),a=r[0],o=r[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),i.strokeFirst?(_(i)&&t.strokeText(n,i.x,i.y),g(i)&&t.fillText(n,i.x,i.y)):(g(i)&&t.fillText(n,i.x,i.y),_(i)&&t.strokeText(n,i.x,i.y)),a&&t.setLineDash([])}}var T=["shadowBlur","shadowOffsetX","shadowOffsetY"],k=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function O(t,e,i,n,a){var o=!1;if(!n&&(i=i||{},e===i))return!1;if(n||e.opacity!==i.opacity){B(t,a),o=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?r["b"].opacity:s}(n||e.blend!==i.blend)&&(o||(B(t,a),o=!0),t.globalCompositeOperation=e.blend||r["b"].blend);for(var h=0;h=0:i.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),b=void 0,x=void 0,w=void 0;y&&this.canBeInsideText()?(b=i.insideFill,x=i.insideStroke,null!=b&&"auto"!==b||(b=this.getInsideTextFill()),null!=x&&"auto"!==x||(x=this.getInsideTextStroke(b),w=!0)):(b=i.outsideFill,x=i.outsideStroke,null!=b&&"auto"!==b||(b=this.getOutsideFill()),null!=x&&"auto"!==x||(x=this.getOutsideStroke(b),w=!0)),b=b||"#000",b===m.fill&&x===m.stroke&&w===m.autoStroke&&a===m.align&&o===m.verticalAlign||(h=!0,m.fill=b,m.stroke=x,m.autoStroke=w,m.align=a,m.verticalAlign=o,e.setDefaultTextStyle(m)),e.__dirty|=c["a"],h&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?l["d"]:l["a"]},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i="string"===typeof e&&Object(u["g"])(e);i||(i=[255,255,255,1]);for(var r=i[3],n=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*r+(n?0:255)*(1-r);return i[3]=1,Object(u["h"])(i,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(h["m"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(h["A"])(t))for(var i=t,r=Object(h["F"])(i),n=0;n0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(p,!1,t)},t.prototype.useState=function(t,e,i,r){var n=t===p,a=this.hasState();if(a||!n){var o=this.currentStates,s=this.stateTransition;if(!(Object(h["r"])(o,t)>=0)||!e&&1!==o.length){var l;if(this.stateProxy&&!n&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||n){n||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&s&&s.duration>0,s);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,e,i,u),d&&d.useState(t,e,i,u),n?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~c["a"]),l}Object(h["G"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,i){if(t.length){var r=[],n=this.currentStates,a=t.length,o=a===n.length;if(o)for(var s=0;s0,d);var _=this._textContent,v=this._textGuide;_&&_.useStates(t,e,p),v&&v.useStates(t,e,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~c["a"])}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},t.prototype.replaceState=function(t,e,i){var r=this.currentStates.slice(),n=Object(h["r"])(r,t),a=Object(h["r"])(r,e)>=0;n>=0?a?r.splice(n,1):r[n]=e:i&&!a&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,i={},r=0;r=0&&e.splice(i,1)})),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var i=this.animators,r=i.length,n=[],a=0;a0&&i.during&&a[0].during((function(t,e){i.during(e)}));for(var p=0;p0||a.force&&!s.length){var j=void 0,P=void 0,I=void 0;if(l){P={},d&&(j={});for(k=0;k