realchart 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.ie.js CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
- * RealChart v1.1.0
3
+ * RealChart v1.1.1
4
4
  * Copyright (C) 2023-2024 WooriTech Inc.
5
5
  * All Rights Reserved.
6
6
  */
7
- var RealChart=function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i={exports:{}},n=i.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n);var r=i.exports,o={}.hasOwnProperty,s=function(t,e){return o.call(t,e)},a=function(t){try{return!!t()}catch(t){return!0}},u=!a((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),l={exports:{}},h=l.exports={version:"2.6.12"};"number"==typeof __e&&(__e=h);var p,c,f=l.exports,_={},d=function(t){return"object"==typeof t?null!==t:"function"==typeof t},y=d,g=function(t){if(!y(t))throw TypeError(t+" is not an object!");return t};function v(){if(c)return p;c=1;var t=d,e=r.document,i=t(e)&&t(e.createElement);return p=function(t){return i?e.createElement(t):{}}}var m=!u&&!a((function(){return 7!=Object.defineProperty(v()("div"),"a",{get:function(){return 7}}).a})),b=d,w=function(t,e){if(!b(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!b(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!b(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!b(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},x=g,S=m,P=w,V=Object.defineProperty;_.f=u?Object.defineProperty:function(t,e,i){if(x(t),e=P(e,!0),x(i),S)try{return V(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t};var k,A,C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}};function E(){if(A)return k;A=1;var t=_,e=C;return k=u?function(i,n,r){return t.f(i,n,e(1,r))}:function(t,e,i){return t[e]=i,t},k}var L={exports:{}},N=0,M=Math.random(),T=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++N+M).toString(36))},O={exports:{}},R=f,D=r,B="__core-js_shared__",F=D[B]||(D[B]={});(O.exports=function(t,e){return F[t]||(F[t]=void 0!==e?e:{})})("versions",[]).push({version:R.version,mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var I=O.exports,j=I("native-function-to-string",Function.toString),z=r,$=E(),H=s,G=T("src"),W=j,Y="toString",X=(""+W).split(Y);f.inspectSource=function(t){return W.call(t)},(L.exports=function(t,e,i,n){var r="function"==typeof i;r&&(H(i,"name")||$(i,"name",e)),t[e]!==i&&(r&&(H(i,G)||$(i,G,t[e]?""+t[e]:X.join(String(e)))),t===z?t[e]=i:n?t[e]?t[e]=i:$(t,e,i):(delete t[e],$(t,e,i)))})(Function.prototype,Y,(function(){return"function"==typeof this&&this[G]||W.call(this)}));var U=L.exports,q=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},Z=q,K=function(t,e,i){if(Z(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}},J=r,Q=f,tt=E(),et=U,it=K,nt="prototype",rt=function(t,e,i){var n,r,o,s,a=t&rt.F,u=t&rt.G,l=t&rt.S,h=t&rt.P,p=t&rt.B,c=u?J:l?J[e]||(J[e]={}):(J[e]||{})[nt],f=u?Q:Q[e]||(Q[e]={}),_=f[nt]||(f[nt]={});for(n in u&&(i=e),i)o=((r=!a&&c&&void 0!==c[n])?c:i)[n],s=p&&r?it(o,J):h&&"function"==typeof o?it(Function.call,o):o,c&&et(c,n,o,t&rt.U),f[n]!=o&&tt(f,n,s),h&&_[n]!=o&&(_[n]=o)};J.core=Q,rt.F=1,rt.G=2,rt.S=4,rt.P=8,rt.B=16,rt.W=32,rt.U=64,rt.R=128;var ot=rt,st={exports:{}},at=T("meta"),ut=d,lt=s,ht=_.f,pt=0,ct=Object.isExtensible||function(){return!0},ft=!a((function(){return ct(Object.preventExtensions({}))})),_t=function(t){ht(t,at,{value:{i:"O"+ ++pt,w:{}}})},dt=st.exports={KEY:at,NEED:!1,fastKey:function(t,e){if(!ut(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!lt(t,at)){if(!ct(t))return"F";if(!e)return"E";_t(t)}return t[at].i},getWeak:function(t,e){if(!lt(t,at)){if(!ct(t))return!0;if(!e)return!1;_t(t)}return t[at].w},onFreeze:function(t){return ft&&dt.NEED&&ct(t)&&!lt(t,at)&&_t(t),t}},yt=st.exports,gt={exports:{}},vt=I("wks"),mt=T,bt=r.Symbol,wt="function"==typeof bt;(gt.exports=function(t){return vt[t]||(vt[t]=wt&&bt[t]||(wt?bt:mt)("Symbol."+t))}).store=vt;var xt,St,Pt=gt.exports;function Vt(){if(St)return xt;St=1;var t=_.f,e=s,i=Pt("toStringTag");return xt=function(n,r,o){n&&!e(n=o?n:n.prototype,i)&&t(n,i,{configurable:!0,value:r})}}var kt={};kt.f=Pt;var At,Ct,Et=r,Lt=f,Nt=kt,Mt=_.f,Tt=function(t){var e=Lt.Symbol||(Lt.Symbol=Et.Symbol||{});"_"==t.charAt(0)||t in e||Mt(e,t,{value:Nt.f(t)})},Ot={}.toString,Rt=function(t){return Ot.call(t).slice(8,-1)};function Dt(){if(Ct)return At;Ct=1;var t=Rt;return At=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==t(e)?e.split(""):Object(e)}}var Bt=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},Ft=Dt(),It=Bt,jt=function(t){return Ft(It(t))},zt=Math.ceil,$t=Math.floor,Ht=function(t){return isNaN(t=+t)?0:(t>0?$t:zt)(t)},Gt=Ht,Wt=Math.min,Yt=function(t){return t>0?Wt(Gt(t),9007199254740991):0},Xt=Ht,Ut=Math.max,qt=Math.min,Zt=function(t,e){return(t=Xt(t))<0?Ut(t+e,0):qt(t,e)},Kt=jt,Jt=Yt,Qt=Zt,te=function(t){return function(e,i,n){var r,o=Kt(e),s=Jt(o.length),a=Qt(n,s);if(t&&i!=i){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===i)return t||a||0;return!t&&-1}},ee=I("keys"),ie=T,ne=function(t){return ee[t]||(ee[t]=ie(t))},re=s,oe=jt,se=te(!1),ae=ne("IE_PROTO"),ue=function(t,e){var i,n=oe(t),r=0,o=[];for(i in n)i!=ae&&re(n,i)&&o.push(i);for(;e.length>r;)re(n,i=e[r++])&&(~se(o,i)||o.push(i));return o},le="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),he=ue,pe=le,ce=Object.keys||function(t){return he(t,pe)},fe={};fe.f=Object.getOwnPropertySymbols;var _e={};_e.f={}.propertyIsEnumerable;var de,ye,ge=ce,ve=fe,me=_e;function be(){if(ye)return de;ye=1;var t=Rt;return de=Array.isArray||function(e){return"Array"==t(e)}}var we,xe,Se=Bt,Pe=function(t){return Object(Se(t))};function Ve(){if(xe)return we;xe=1;var t=_,e=g,i=ce;return we=u?Object.defineProperties:function(n,r){e(n);for(var o,s=i(r),a=s.length,u=0;a>u;)t.f(n,o=s[u++],r[o]);return n},we}var ke,Ae=r.document,Ce=Ae&&Ae.documentElement,Ee=g,Le=Ve(),Ne=le,Me=ne("IE_PROTO"),Te=function(){},Oe="prototype",Re=function(){var t,e=v()("iframe"),i=Ne.length;for(e.style.display="none",Ce.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Re=t.F;i--;)delete Re[Oe][Ne[i]];return Re()},De=Object.create||function(t,e){var i;return null!==t?(Te[Oe]=Ee(t),i=new Te,Te[Oe]=null,i[Me]=t):i=Re(),void 0===e?i:Le(i,e)},Be={},Fe={},Ie=ue,je=le.concat("length","prototype");function ze(){if(ke)return Be;ke=1;var t=jt,e=Fe.f,i={}.toString,n="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Be.f=function(r){return n&&"[object Window]"==i.call(r)?function(t){try{return e(t)}catch(t){return n.slice()}}(r):e(t(r))},Be}Fe.f=Object.getOwnPropertyNames||function(t){return Ie(t,je)};var $e={},He=_e,Ge=C,We=jt,Ye=w,Xe=s,Ue=m,qe=Object.getOwnPropertyDescriptor;$e.f=u?qe:function(t,e){if(t=We(t),e=Ye(e,!0),Ue)try{return qe(t,e)}catch(t){}if(Xe(t,e))return Ge(!He.f.call(t,e),t[e])};var Ze=r,Ke=s,Je=u,Qe=ot,ti=U,ei=yt.KEY,ii=a,ni=I,ri=Vt(),oi=T,si=Pt,ai=kt,ui=Tt,li=function(t){var e=ge(t),i=ve.f;if(i)for(var n,r=i(t),o=me.f,s=0;r.length>s;)o.call(t,n=r[s++])&&e.push(n);return e},hi=be(),pi=g,ci=d,fi=Pe,_i=jt,di=w,yi=C,gi=De,vi=ze(),mi=$e,bi=fe,wi=_,xi=ce,Si=mi.f,Pi=wi.f,Vi=vi.f,ki=Ze.Symbol,Ai=Ze.JSON,Ci=Ai&&Ai.stringify,Ei="prototype",Li=si("_hidden"),Ni=si("toPrimitive"),Mi={}.propertyIsEnumerable,Ti=ni("symbol-registry"),Oi=ni("symbols"),Ri=ni("op-symbols"),Di=Object[Ei],Bi="function"==typeof ki&&!!bi.f,Fi=Ze.QObject,Ii=!Fi||!Fi[Ei]||!Fi[Ei].findChild,ji=Je&&ii((function(){return 7!=gi(Pi({},"a",{get:function(){return Pi(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=Si(Di,e);n&&delete Di[e],Pi(t,e,i),n&&t!==Di&&Pi(Di,e,n)}:Pi,zi=function(t){var e=Oi[t]=gi(ki[Ei]);return e._k=t,e},$i=Bi&&"symbol"==typeof ki.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof ki},Hi=function(t,e,i){return t===Di&&Hi(Ri,e,i),pi(t),e=di(e,!0),pi(i),Ke(Oi,e)?(i.enumerable?(Ke(t,Li)&&t[Li][e]&&(t[Li][e]=!1),i=gi(i,{enumerable:yi(0,!1)})):(Ke(t,Li)||Pi(t,Li,yi(1,{})),t[Li][e]=!0),ji(t,e,i)):Pi(t,e,i)},Gi=function(t,e){pi(t);for(var i,n=li(e=_i(e)),r=0,o=n.length;o>r;)Hi(t,i=n[r++],e[i]);return t},Wi=function(t){var e=Mi.call(this,t=di(t,!0));return!(this===Di&&Ke(Oi,t)&&!Ke(Ri,t))&&(!(e||!Ke(this,t)||!Ke(Oi,t)||Ke(this,Li)&&this[Li][t])||e)},Yi=function(t,e){if(t=_i(t),e=di(e,!0),t!==Di||!Ke(Oi,e)||Ke(Ri,e)){var i=Si(t,e);return!i||!Ke(Oi,e)||Ke(t,Li)&&t[Li][e]||(i.enumerable=!0),i}},Xi=function(t){for(var e,i=Vi(_i(t)),n=[],r=0;i.length>r;)Ke(Oi,e=i[r++])||e==Li||e==ei||n.push(e);return n},Ui=function(t){for(var e,i=t===Di,n=Vi(i?Ri:_i(t)),r=[],o=0;n.length>o;)!Ke(Oi,e=n[o++])||i&&!Ke(Di,e)||r.push(Oi[e]);return r};Bi||(ki=function(){if(this instanceof ki)throw TypeError("Symbol is not a constructor!");var t=oi(arguments.length>0?arguments[0]:void 0),e=function(i){this===Di&&e.call(Ri,i),Ke(this,Li)&&Ke(this[Li],t)&&(this[Li][t]=!1),ji(this,t,yi(1,i))};return Je&&Ii&&ji(Di,t,{configurable:!0,set:e}),zi(t)},ti(ki[Ei],"toString",(function(){return this._k})),mi.f=Yi,wi.f=Hi,Fe.f=vi.f=Xi,_e.f=Wi,bi.f=Ui,Je&&ti(Di,"propertyIsEnumerable",Wi,!0),ai.f=function(t){return zi(si(t))}),Qe(Qe.G+Qe.W+Qe.F*!Bi,{Symbol:ki});for(var qi="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Zi=0;qi.length>Zi;)si(qi[Zi++]);for(var Ki=xi(si.store),Ji=0;Ki.length>Ji;)ui(Ki[Ji++]);Qe(Qe.S+Qe.F*!Bi,"Symbol",{for:function(t){return Ke(Ti,t+="")?Ti[t]:Ti[t]=ki(t)},keyFor:function(t){if(!$i(t))throw TypeError(t+" is not a symbol!");for(var e in Ti)if(Ti[e]===t)return e},useSetter:function(){Ii=!0},useSimple:function(){Ii=!1}}),Qe(Qe.S+Qe.F*!Bi,"Object",{create:function(t,e){return void 0===e?gi(t):Gi(gi(t),e)},defineProperty:Hi,defineProperties:Gi,getOwnPropertyDescriptor:Yi,getOwnPropertyNames:Xi,getOwnPropertySymbols:Ui});var Qi=ii((function(){bi.f(1)}));Qe(Qe.S+Qe.F*Qi,"Object",{getOwnPropertySymbols:function(t){return bi.f(fi(t))}}),Ai&&Qe(Qe.S+Qe.F*(!Bi||ii((function(){var t=ki();return"[null]"!=Ci([t])||"{}"!=Ci({a:t})||"{}"!=Ci(Object(t))}))),"JSON",{stringify:function(t){for(var e,i,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(i=e=n[1],(ci(e)||void 0!==t)&&!$i(t))return hi(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!$i(e))return e}),n[1]=e,Ci.apply(Ai,n)}}),ki[Ei][Ni]||E()(ki[Ei],Ni,ki[Ei].valueOf),ri(ki,"Symbol"),ri(Math,"Math",!0),ri(Ze.JSON,"JSON",!0);ot(ot.S,"Object",{create:De});var tn=ot;tn(tn.S+tn.F*!u,"Object",{defineProperty:_.f});var en=ot;en(en.S+en.F*!u,"Object",{defineProperties:Ve()});var nn=ot,rn=f,on=a,sn=function(t,e){var i=(rn.Object||{})[t]||Object[t],n={};n[t]=e(i),nn(nn.S+nn.F*on((function(){i(1)})),"Object",n)},an=jt,un=$e.f;sn("getOwnPropertyDescriptor",(function(){return function(t,e){return un(an(t),e)}}));var ln=s,hn=Pe,pn=ne("IE_PROTO"),cn=Object.prototype,fn=Object.getPrototypeOf||function(t){return t=hn(t),ln(t,pn)?t[pn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?cn:null},_n=Pe,dn=fn;sn("getPrototypeOf",(function(){return function(t){return dn(_n(t))}}));var yn=Pe,gn=ce;sn("keys",(function(){return function(t){return gn(yn(t))}})),sn("getOwnPropertyNames",(function(){return ze().f}));var vn=d,mn=yt.onFreeze;sn("freeze",(function(t){return function(e){return t&&vn(e)?t(mn(e)):e}}));var bn=d,wn=yt.onFreeze;sn("seal",(function(t){return function(e){return t&&bn(e)?t(wn(e)):e}}));var xn=d,Sn=yt.onFreeze;sn("preventExtensions",(function(t){return function(e){return t&&xn(e)?t(Sn(e)):e}}));var Pn=d;sn("isFrozen",(function(t){return function(e){return!Pn(e)||!!t&&t(e)}}));var Vn=d;sn("isSealed",(function(t){return function(e){return!Vn(e)||!!t&&t(e)}}));var kn=d;sn("isExtensible",(function(t){return function(e){return!!kn(e)&&(!t||t(e))}}));var An=u,Cn=ce,En=fe,Ln=_e,Nn=Pe,Mn=Dt(),Tn=Object.assign,On=!Tn||a((function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=Tn({},t)[i]||Object.keys(Tn({},e)).join("")!=n}))?function(t,e){for(var i=Nn(t),n=arguments.length,r=1,o=En.f,s=Ln.f;n>r;)for(var a,u=Mn(arguments[r++]),l=o?Cn(u).concat(o(u)):Cn(u),h=l.length,p=0;h>p;)a=l[p++],An&&!s.call(u,a)||(i[a]=u[a]);return i}:Tn,Rn=ot;Rn(Rn.S+Rn.F,"Object",{assign:On});var Dn,Bn,Fn=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};function In(){if(Bn)return Dn;Bn=1;var t=d,e=g,i=function(i,n){if(e(i),!t(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};return Dn={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=K(Function.call,$e.f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,r){return i(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:i},Dn}ot(ot.S,"Object",{is:Fn});ot(ot.S,"Object",{setPrototypeOf:In().set});var jn=Rt,zn=Pt("toStringTag"),$n="Arguments"==jn(function(){return arguments}()),Hn=function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),zn))?i:$n?jn(e):"Object"==(n=jn(e))&&"function"==typeof e.callee?"Arguments":n},Gn=Hn,Wn={};Wn[Pt("toStringTag")]="z",Wn+""!="[object z]"&&U(Object.prototype,"toString",(function(){return"[object "+Gn(this)+"]"}),!0);var Yn,Xn,Un=function(t,e,i){var n=void 0===i;switch(e.length){case 0:return n?t():t.call(i);case 1:return n?t(e[0]):t.call(i,e[0]);case 2:return n?t(e[0],e[1]):t.call(i,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(i,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(i,e[0],e[1],e[2],e[3])}return t.apply(i,e)};function qn(){if(Xn)return Yn;Xn=1;var t=q,e=d,i=Un,n=[].slice,r={};return Yn=Function.bind||function(o){var s=t(this),a=n.call(arguments,1),u=function(){var t=a.concat(n.call(arguments));return this instanceof u?function(t,e,i){if(!(e in r)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";r[e]=Function("F,a","return new F("+n.join(",")+")")}return r[e](t,i)}(s,t.length,t):i(s,t,o)};return e(s.prototype)&&(u.prototype=s.prototype),u},Yn}ot(ot.P,"Function",{bind:qn()});var Zn=_.f,Kn=Function.prototype,Jn=/^\s*function ([^ (]*)/,Qn="name";Qn in Kn||u&&Zn(Kn,Qn,{configurable:!0,get:function(){try{return(""+this).match(Jn)[1]}catch(t){return""}}});var tr=d,er=fn,ir=Pt("hasInstance"),nr=Function.prototype;ir in nr||_.f(nr,ir,{value:function(t){if("function"!=typeof this||!tr(t))return!1;if(!tr(this.prototype))return t instanceof this;for(;t=er(t);)if(this.prototype===t)return!0;return!1}});var rr="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",or=ot,sr=Bt,ar=a,ur=rr,lr="["+ur+"]",hr=RegExp("^"+lr+lr+"*"),pr=RegExp(lr+lr+"*$"),cr=function(t,e,i){var n={},r=ar((function(){return!!ur[t]()||"​…"!="​…"[t]()})),o=n[t]=r?e(fr):ur[t];i&&(n[i]=o),or(or.P+or.F*r,"String",n)},fr=cr.trim=function(t,e){return t=String(sr(t)),1&e&&(t=t.replace(hr,"")),2&e&&(t=t.replace(pr,"")),t},_r=cr,dr=r.parseInt,yr=_r.trim,gr=rr,vr=/^[-+]?0[xX]/,mr=8!==dr(gr+"08")||22!==dr(gr+"0x16")?function(t,e){var i=yr(String(t),3);return dr(i,e>>>0||(vr.test(i)?16:10))}:dr,br=ot,wr=mr;br(br.G+br.F*(parseInt!=wr),{parseInt:wr});var xr=r.parseFloat,Sr=_r.trim,Pr=1/xr(rr+"-0")!=-1/0?function(t){var e=Sr(String(t),3),i=xr(e);return 0===i&&"-"==e.charAt(0)?-0:i}:xr,Vr=ot,kr=Pr;Vr(Vr.G+Vr.F*(parseFloat!=kr),{parseFloat:kr});var Ar=d,Cr=In().set,Er=function(t,e,i){var n,r=e.constructor;return r!==i&&"function"==typeof r&&(n=r.prototype)!==i.prototype&&Ar(n)&&Cr&&Cr(t,n),t},Lr=r,Nr=s,Mr=Rt,Tr=Er,Or=w,Rr=a,Dr=Fe.f,Br=$e.f,Fr=_.f,Ir=_r.trim,jr="Number",zr=Lr[jr],$r=zr,Hr=zr.prototype,Gr=Mr(De(Hr))==jr,Wr="trim"in String.prototype,Yr=function(t){var e=Or(t,!1);if("string"==typeof e&&e.length>2){var i,n,r,o=(e=Wr?e.trim():Ir(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(i=e.charCodeAt(2))||120===i)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+e}for(var s,a=e.slice(2),u=0,l=a.length;u<l;u++)if((s=a.charCodeAt(u))<48||s>r)return NaN;return parseInt(a,n)}}return+e};if(!zr(" 0o1")||!zr("0b1")||zr("+0x1")){zr=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof zr&&(Gr?Rr((function(){Hr.valueOf.call(i)})):Mr(i)!=jr)?Tr(new $r(Yr(e)),i,zr):Yr(e)};for(var Xr,Ur=u?Dr($r):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),qr=0;Ur.length>qr;qr++)Nr($r,Xr=Ur[qr])&&!Nr(zr,Xr)&&Fr(zr,Xr,Br($r,Xr));zr.prototype=Hr,Hr.constructor=zr,U(Lr,jr,zr)}var Zr=Rt,Kr=function(t,e){if("number"!=typeof t&&"Number"!=Zr(t))throw TypeError(e);return+t},Jr=Ht,Qr=Bt,to=function(t){var e=String(Qr(this)),i="",n=Jr(t);if(n<0||n==1/0)throw RangeError("Count can't be negative");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(i+=e);return i},eo=ot,io=Ht,no=Kr,ro=to,oo=1..toFixed,so=Math.floor,ao=[0,0,0,0,0,0],uo="Number.toFixed: incorrect invocation!",lo="0",ho=function(t,e){for(var i=-1,n=e;++i<6;)n+=t*ao[i],ao[i]=n%1e7,n=so(n/1e7)},po=function(t){for(var e=6,i=0;--e>=0;)i+=ao[e],ao[e]=so(i/t),i=i%t*1e7},co=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==ao[t]){var i=String(ao[t]);e=""===e?i:e+ro.call(lo,7-i.length)+i}return e},fo=function(t,e,i){return 0===e?i:e%2==1?fo(t,e-1,i*t):fo(t*t,e/2,i)};eo(eo.P+eo.F*(!!oo&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a((function(){oo.call({})}))),"Number",{toFixed:function(t){var e,i,n,r,o=no(this,uo),s=io(t),a="",u=lo;if(s<0||s>20)throw RangeError(uo);if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(a="-",o=-o),o>1e-21)if(e=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e}(o*fo(2,69,1))-69,i=e<0?o*fo(2,-e,1):o/fo(2,e,1),i*=4503599627370496,(e=52-e)>0){for(ho(0,i),n=s;n>=7;)ho(1e7,0),n-=7;for(ho(fo(10,n,1),0),n=e-1;n>=23;)po(1<<23),n-=23;po(1<<n),ho(1,1),po(2),u=co()}else ho(0,i),ho(1<<-e,0),u=co()+ro.call(lo,s);return u=s>0?a+((r=u.length)<=s?"0."+ro.call(lo,s-r)+u:u.slice(0,r-s)+"."+u.slice(r-s)):a+u}});var _o=ot,yo=a,go=Kr,vo=1..toPrecision;_o(_o.P+_o.F*(yo((function(){return"1"!==vo.call(1,void 0)}))||!yo((function(){vo.call({})}))),"Number",{toPrecision:function(t){var e=go(this,"Number#toPrecision: incorrect invocation!");return void 0===t?vo.call(e):vo.call(e,t)}});ot(ot.S,"Number",{EPSILON:Math.pow(2,-52)});var mo=ot,bo=r.isFinite;mo(mo.S,"Number",{isFinite:function(t){return"number"==typeof t&&bo(t)}});var wo=d,xo=Math.floor,So=function(t){return!wo(t)&&isFinite(t)&&xo(t)===t};ot(ot.S,"Number",{isInteger:So});ot(ot.S,"Number",{isNaN:function(t){return t!=t}});var Po=ot,Vo=So,ko=Math.abs;Po(Po.S,"Number",{isSafeInteger:function(t){return Vo(t)&&ko(t)<=9007199254740991}});ot(ot.S,"Number",{MAX_SAFE_INTEGER:9007199254740991});ot(ot.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991});var Ao=ot,Co=Pr;Ao(Ao.S+Ao.F*(Number.parseFloat!=Co),"Number",{parseFloat:Co});var Eo=ot,Lo=mr;Eo(Eo.S+Eo.F*(Number.parseInt!=Lo),"Number",{parseInt:Lo});var No=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)},Mo=ot,To=No,Oo=Math.sqrt,Ro=Math.acosh;Mo(Mo.S+Mo.F*!(Ro&&710==Math.floor(Ro(Number.MAX_VALUE))&&Ro(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:To(t-1+Oo(t-1)*Oo(t+1))}});var Do=ot,Bo=Math.asinh;Do(Do.S+Do.F*!(Bo&&1/Bo(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}});var Fo=ot,Io=Math.atanh;Fo(Fo.S+Fo.F*!(Io&&1/Io(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}});var jo=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1},zo=jo;ot(ot.S,"Math",{cbrt:function(t){return zo(t=+t)*Math.pow(Math.abs(t),1/3)}});ot(ot.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}});var $o=ot,Ho=Math.exp;$o($o.S,"Math",{cosh:function(t){return(Ho(t=+t)+Ho(-t))/2}});var Go,Wo,Yo=Math.expm1,Xo=!Yo||Yo(10)>22025.465794806718||Yo(10)<22025.465794806718||-2e-17!=Yo(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:Yo,Uo=ot,qo=Xo;function Zo(){if(Wo)return Go;Wo=1;var t=jo,e=Math.pow,i=e(2,-52),n=e(2,-23),r=e(2,127)*(2-n),o=e(2,-126);return Go=Math.fround||function(e){var s,a,u=Math.abs(e),l=t(e);return u<o?l*(u/o/n+1/i-1/i)*o*n:(a=(s=(1+n/i)*u)-(s-u))>r||a!=a?l*(1/0):l*a}}Uo(Uo.S+Uo.F*(qo!=Math.expm1),"Math",{expm1:qo});ot(ot.S,"Math",{fround:Zo()});var Ko=ot,Jo=Math.abs;Ko(Ko.S,"Math",{hypot:function(t,e){for(var i,n,r=0,o=0,s=arguments.length,a=0;o<s;)a<(i=Jo(arguments[o++]))?(r=r*(n=a/i)*n+1,a=i):r+=i>0?(n=i/a)*n:i;return a===1/0?1/0:a*Math.sqrt(r)}});var Qo=ot,ts=Math.imul;Qo(Qo.S+Qo.F*a((function(){return-5!=ts(4294967295,5)||2!=ts.length})),"Math",{imul:function(t,e){var i=65535,n=+t,r=+e,o=i&n,s=i&r;return 0|o*s+((i&n>>>16)*s+o*(i&r>>>16)<<16>>>0)}});ot(ot.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}});ot(ot.S,"Math",{log1p:No});ot(ot.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}});ot(ot.S,"Math",{sign:jo});var es=ot,is=Xo,ns=Math.exp;es(es.S+es.F*a((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(is(t)-is(-t))/2:(ns(t-1)-ns(-t-1))*(Math.E/2)}});var rs=ot,os=Xo,ss=Math.exp;rs(rs.S,"Math",{tanh:function(t){var e=os(t=+t),i=os(-t);return e==1/0?1:i==1/0?-1:(e-i)/(ss(t)+ss(-t))}});ot(ot.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}});var as=ot,us=Zt,ls=String.fromCharCode,hs=String.fromCodePoint;as(as.S+as.F*(!!hs&&1!=hs.length),"String",{fromCodePoint:function(t){for(var e,i=[],n=arguments.length,r=0;n>r;){if(e=+arguments[r++],us(e,1114111)!==e)throw RangeError(e+" is not a valid code point");i.push(e<65536?ls(e):ls(55296+((e-=65536)>>10),e%1024+56320))}return i.join("")}});var ps=jt,cs=Yt;ot(ot.S,"String",{raw:function(t){for(var e=ps(t.raw),i=cs(e.length),n=arguments.length,r=[],o=0;i>o;)r.push(String(e[o++])),o<n&&r.push(String(arguments[o]));return r.join("")}}),_r("trim",(function(t){return function(){return t(this,3)}}));var fs=Ht,_s=Bt,ds=function(t){return function(e,i){var n,r,o=String(_s(e)),s=fs(i),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(r=o.charCodeAt(s+1))<56320||r>57343?t?o.charAt(s):n:t?o.slice(s,s+2):r-56320+(n-55296<<10)+65536}},ys={},gs=De,vs=C,ms=Vt(),bs={};E()(bs,Pt("iterator"),(function(){return this}));var ws=function(t,e,i){t.prototype=gs(bs,{next:vs(1,i)}),ms(t,e+" Iterator")},xs=ot,Ss=U,Ps=E(),Vs=ys,ks=ws,As=Vt(),Cs=fn,Es=Pt("iterator"),Ls=!([].keys&&"next"in[].keys()),Ns="keys",Ms="values",Ts=function(){return this},Os=function(t,e,i,n,r,o,s){ks(i,e,n);var a,u,l,h=function(t){if(!Ls&&t in _)return _[t];switch(t){case Ns:case Ms:return function(){return new i(this,t)}}return function(){return new i(this,t)}},p=e+" Iterator",c=r==Ms,f=!1,_=t.prototype,d=_[Es]||_["@@iterator"]||r&&_[r],y=d||h(r),g=r?c?h("entries"):y:void 0,v="Array"==e&&_.entries||d;if(v&&(l=Cs(v.call(new t)))!==Object.prototype&&l.next&&(As(l,p,!0),"function"!=typeof l[Es]&&Ps(l,Es,Ts)),c&&d&&d.name!==Ms&&(f=!0,y=function(){return d.call(this)}),(Ls||f||!_[Es])&&Ps(_,Es,y),Vs[e]=y,Vs[p]=Ts,r)if(a={values:c?y:h(Ms),keys:o?y:h(Ns),entries:g},s)for(u in a)u in _||Ss(_,u,a[u]);else xs(xs.P+xs.F*(Ls||f),e,a);return a},Rs=ds(!0);Os(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=Rs(e,i),this._i+=t.length,{value:t,done:!1})}));var Ds=ot,Bs=ds(!1);Ds(Ds.P,"String",{codePointAt:function(t){return Bs(this,t)}});var Fs,Is,js=d,zs=Rt,$s=Pt("match"),Hs=function(t){var e;return js(t)&&(void 0!==(e=t[$s])?!!e:"RegExp"==zs(t))},Gs=Hs,Ws=Bt,Ys=function(t,e,i){if(Gs(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(Ws(t))};function Xs(){if(Is)return Fs;Is=1;var t=Pt("match");return Fs=function(e){var i=/./;try{"/./"[e](i)}catch(n){try{return i[t]=!1,!"/./"[e](i)}catch(t){}}return!0},Fs}var Us=ot,qs=Yt,Zs=Ys,Ks="endsWith",Js=""[Ks];Us(Us.P+Us.F*Xs()(Ks),"String",{endsWith:function(t){var e=Zs(this,t,Ks),i=arguments.length>1?arguments[1]:void 0,n=qs(e.length),r=void 0===i?n:Math.min(qs(i),n),o=String(t);return Js?Js.call(e,o,r):e.slice(r-o.length,r)===o}});var Qs=ot,ta=Ys,ea="includes";Qs(Qs.P+Qs.F*Xs()(ea),"String",{includes:function(t){return!!~ta(this,t,ea).indexOf(t,arguments.length>1?arguments[1]:void 0)}});ot(ot.P,"String",{repeat:to});var ia=ot,na=Yt,ra=Ys,oa="startsWith",sa=""[oa];ia(ia.P+ia.F*Xs()(oa),"String",{startsWith:function(t){var e=ra(this,t,oa),i=na(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return sa?sa.call(e,n,i):e.slice(i,i+n.length)===n}});var aa=ot,ua=a,la=Bt,ha=/"/g,pa=function(t,e,i,n){var r=String(la(t)),o="<"+e;return""!==i&&(o+=" "+i+'="'+String(n).replace(ha,"&quot;")+'"'),o+">"+r+"</"+e+">"},ca=function(t,e){var i={};i[t]=e(pa),aa(aa.P+aa.F*ua((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",i)};ca("anchor",(function(t){return function(e){return t(this,"a","name",e)}})),ca("big",(function(t){return function(){return t(this,"big","","")}})),ca("blink",(function(t){return function(){return t(this,"blink","","")}})),ca("bold",(function(t){return function(){return t(this,"b","","")}})),ca("fixed",(function(t){return function(){return t(this,"tt","","")}})),ca("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}})),ca("fontsize",(function(t){return function(e){return t(this,"font","size",e)}})),ca("italics",(function(t){return function(){return t(this,"i","","")}})),ca("link",(function(t){return function(e){return t(this,"a","href",e)}})),ca("small",(function(t){return function(){return t(this,"small","","")}})),ca("strike",(function(t){return function(){return t(this,"strike","","")}})),ca("sub",(function(t){return function(){return t(this,"sub","","")}})),ca("sup",(function(t){return function(){return t(this,"sup","","")}}));ot(ot.S,"Date",{now:function(){return(new Date).getTime()}});var fa=ot,_a=Pe,da=w;fa(fa.P+fa.F*a((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=_a(this),i=da(e);return"number"!=typeof i||isFinite(i)?e.toISOString():null}});var ya=a,ga=Date.prototype.getTime,va=Date.prototype.toISOString,ma=function(t){return t>9?t:"0"+t},ba=ot,wa=ya((function(){return"0385-07-25T07:06:39.999Z"!=va.call(new Date(-50000000000001))}))||!ya((function(){va.call(new Date(NaN))}))?function(){if(!isFinite(ga.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),i=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+ma(t.getUTCMonth()+1)+"-"+ma(t.getUTCDate())+"T"+ma(t.getUTCHours())+":"+ma(t.getUTCMinutes())+":"+ma(t.getUTCSeconds())+"."+(i>99?i:"0"+ma(i))+"Z"}:va;ba(ba.P+ba.F*(Date.prototype.toISOString!==wa),"Date",{toISOString:wa});var xa,Sa,Pa=Date.prototype,Va="Invalid Date",ka="toString",Aa=Pa[ka],Ca=Pa.getTime;new Date(NaN)+""!=Va&&U(Pa,ka,(function(){var t=Ca.call(this);return t==t?Aa.call(this):Va}));var Ea=Pt("toPrimitive"),La=Date.prototype;Ea in La||E()(La,Ea,function(){if(Sa)return xa;Sa=1;var t=g,e=w,i="number";return xa=function(n){if("string"!==n&&n!==i&&"default"!==n)throw TypeError("Incorrect hint");return e(t(this),n!=i)}}());ot(ot.S,"Array",{isArray:be()});var Na,Ma,Ta=g,Oa=function(t,e,i,n){try{return n?e(Ta(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&Ta(r.call(t)),e}},Ra=ys,Da=Pt("iterator"),Ba=Array.prototype,Fa=function(t){return void 0!==t&&(Ra.Array===t||Ba[Da]===t)},Ia=_,ja=C,za=function(t,e,i){e in t?Ia.f(t,e,ja(0,i)):t[e]=i},$a=Hn,Ha=Pt("iterator"),Ga=ys,Wa=f.getIteratorMethod=function(t){if(null!=t)return t[Ha]||t["@@iterator"]||Ga[$a(t)]};function Ya(){if(Ma)return Na;Ma=1;var t=Pt("iterator"),e=!1;try{var i=[7][t]();i.return=function(){e=!0},Array.from(i,(function(){throw 2}))}catch(t){}return Na=function(i,n){if(!n&&!e)return!1;var r=!1;try{var o=[7],s=o[t]();s.next=function(){return{done:r=!0}},o[t]=function(){return s},i(o)}catch(t){}return r}}var Xa=K,Ua=ot,qa=Pe,Za=Oa,Ka=Fa,Ja=Yt,Qa=za,tu=Wa;Ua(Ua.S+Ua.F*!Ya()((function(t){Array.from(t)})),"Array",{from:function(t){var e,i,n,r,o=qa(t),s="function"==typeof this?this:Array,a=arguments.length,u=a>1?arguments[1]:void 0,l=void 0!==u,h=0,p=tu(o);if(l&&(u=Xa(u,a>2?arguments[2]:void 0,2)),null==p||s==Array&&Ka(p))for(i=new s(e=Ja(o.length));e>h;h++)Qa(i,h,l?u(o[h],h):o[h]);else for(r=p.call(o),i=new s;!(n=r.next()).done;h++)Qa(i,h,l?Za(r,u,[n.value,h],!0):n.value);return i.length=h,i}});var eu=ot,iu=za;eu(eu.S+eu.F*a((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,i=new("function"==typeof this?this:Array)(e);e>t;)iu(i,t,arguments[t++]);return i.length=e,i}});var nu=a,ru=function(t,e){return!!t&&nu((function(){e?t.call(null,(function(){}),1):t.call(null)}))},ou=ot,su=jt,au=[].join;ou(ou.P+ou.F*(Dt()!=Object||!ru(au)),"Array",{join:function(t){return au.call(su(this),void 0===t?",":t)}});var uu=ot,lu=Ce,hu=Rt,pu=Zt,cu=Yt,fu=[].slice;uu(uu.P+uu.F*a((function(){lu&&fu.call(lu)})),"Array",{slice:function(t,e){var i=cu(this.length),n=hu(this);if(e=void 0===e?i:e,"Array"==n)return fu.call(this,t,e);for(var r=pu(t,i),o=pu(e,i),s=cu(o-r),a=new Array(s),u=0;u<s;u++)a[u]="String"==n?this.charAt(r+u):this[r+u];return a}});var _u=ot,du=q,yu=Pe,gu=a,vu=[].sort,mu=[1,2,3];_u(_u.P+_u.F*(gu((function(){mu.sort(void 0)}))||!gu((function(){mu.sort(null)}))||!ru(vu)),"Array",{sort:function(t){return void 0===t?vu.call(yu(this)):vu.call(yu(this),du(t))}});var bu=d,wu=be(),xu=Pt("species"),Su=function(t){var e;return wu(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!wu(e.prototype)||(e=void 0),bu(e)&&null===(e=e[xu])&&(e=void 0)),void 0===e?Array:e},Pu=function(t,e){return new(Su(t))(e)},Vu=K,ku=Dt(),Au=Pe,Cu=Yt,Eu=Pu,Lu=function(t,e){var i=1==t,n=2==t,r=3==t,o=4==t,s=6==t,a=5==t||s,u=e||Eu;return function(e,l,h){for(var p,c,f=Au(e),_=ku(f),d=Vu(l,h,3),y=Cu(_.length),g=0,v=i?u(e,y):n?u(e,0):void 0;y>g;g++)if((a||g in _)&&(c=d(p=_[g],g,f),t))if(i)v[g]=c;else if(c)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:v.push(p)}else if(o)return!1;return s?-1:r||o?o:v}},Nu=ot,Mu=Lu(0),Tu=ru([].forEach,!0);Nu(Nu.P+Nu.F*!Tu,"Array",{forEach:function(t){return Mu(this,t,arguments[1])}});var Ou=ot,Ru=Lu(1);Ou(Ou.P+Ou.F*!ru([].map,!0),"Array",{map:function(t){return Ru(this,t,arguments[1])}});var Du=ot,Bu=Lu(2);Du(Du.P+Du.F*!ru([].filter,!0),"Array",{filter:function(t){return Bu(this,t,arguments[1])}});var Fu=ot,Iu=Lu(3);Fu(Fu.P+Fu.F*!ru([].some,!0),"Array",{some:function(t){return Iu(this,t,arguments[1])}});var ju=ot,zu=Lu(4);ju(ju.P+ju.F*!ru([].every,!0),"Array",{every:function(t){return zu(this,t,arguments[1])}});var $u=q,Hu=Pe,Gu=Dt(),Wu=Yt,Yu=function(t,e,i,n,r){$u(e);var o=Hu(t),s=Gu(o),a=Wu(o.length),u=r?a-1:0,l=r?-1:1;if(i<2)for(;;){if(u in s){n=s[u],u+=l;break}if(u+=l,r?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;r?u>=0:a>u;u+=l)u in s&&(n=e(n,s[u],u,o));return n},Xu=ot,Uu=Yu;Xu(Xu.P+Xu.F*!ru([].reduce,!0),"Array",{reduce:function(t){return Uu(this,t,arguments.length,arguments[1],!1)}});var qu=ot,Zu=Yu;qu(qu.P+qu.F*!ru([].reduceRight,!0),"Array",{reduceRight:function(t){return Zu(this,t,arguments.length,arguments[1],!0)}});var Ku=ot,Ju=te(!1),Qu=[].indexOf,tl=!!Qu&&1/[1].indexOf(1,-0)<0;Ku(Ku.P+Ku.F*(tl||!ru(Qu)),"Array",{indexOf:function(t){return tl?Qu.apply(this,arguments)||0:Ju(this,t,arguments[1])}});var el,il,nl=ot,rl=jt,ol=Ht,sl=Yt,al=[].lastIndexOf,ul=!!al&&1/[1].lastIndexOf(1,-0)<0;function ll(){if(il)return el;il=1;var t=Pe,e=Zt,i=Yt;return el=[].copyWithin||function(n,r){var o=t(this),s=i(o.length),a=e(n,s),u=e(r,s),l=arguments.length>2?arguments[2]:void 0,h=Math.min((void 0===l?s:e(l,s))-u,s-a),p=1;for(u<a&&a<u+h&&(p=-1,u+=h-1,a+=h-1);h-- >0;)u in o?o[a]=o[u]:delete o[a],a+=p,u+=p;return o},el}nl(nl.P+nl.F*(ul||!ru(al)),"Array",{lastIndexOf:function(t){if(ul)return al.apply(this,arguments)||0;var e=rl(this),i=sl(e.length),n=i-1;for(arguments.length>1&&(n=Math.min(n,ol(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}});var hl=Pt("unscopables"),pl=Array.prototype;null==pl[hl]&&E()(pl,hl,{});var cl,fl,_l=function(t){pl[hl][t]=!0};function dl(){if(fl)return cl;fl=1;var t=Pe,e=Zt,i=Yt;return cl=function(n){for(var r=t(this),o=i(r.length),s=arguments.length,a=e(s>1?arguments[1]:void 0,o),u=s>2?arguments[2]:void 0,l=void 0===u?o:e(u,o);l>a;)r[a++]=n;return r},cl}ot(ot.P,"Array",{copyWithin:ll()}),_l("copyWithin");ot(ot.P,"Array",{fill:dl()}),_l("fill");var yl=ot,gl=Lu(5),vl="find",ml=!0;vl in[]&&Array(1)[vl]((function(){ml=!1})),yl(yl.P+yl.F*ml,"Array",{find:function(t){return gl(this,t,arguments.length>1?arguments[1]:void 0)}}),_l(vl);var bl=ot,wl=Lu(6),xl="findIndex",Sl=!0;xl in[]&&Array(1)[xl]((function(){Sl=!1})),bl(bl.P+bl.F*Sl,"Array",{findIndex:function(t){return wl(this,t,arguments.length>1?arguments[1]:void 0)}}),_l(xl);var Pl=r,Vl=_,kl=u,Al=Pt("species"),Cl=function(t){var e=Pl[t];kl&&e&&!e[Al]&&Vl.f(e,Al,{configurable:!0,get:function(){return this}})};Cl("Array");var El=function(t,e){return{value:e,done:!!t}},Ll=_l,Nl=El,Ml=ys,Tl=jt,Ol=Os(Array,"Array",(function(t,e){this._t=Tl(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,Nl(1)):Nl(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])}),"values");Ml.Arguments=Ml.Array,Ll("keys"),Ll("values"),Ll("entries");var Rl=g,Dl=function(){var t=Rl(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Bl=r,Fl=Er,Il=_.f,jl=Fe.f,zl=Hs,$l=Dl,Hl=Bl.RegExp,Gl=Hl,Wl=Hl.prototype,Yl=/a/g,Xl=/a/g,Ul=new Hl(Yl)!==Yl;if(u&&(!Ul||a((function(){return Xl[Pt("match")]=!1,Hl(Yl)!=Yl||Hl(Xl)==Xl||"/a/i"!=Hl(Yl,"i")})))){Hl=function(t,e){var i=this instanceof Hl,n=zl(t),r=void 0===e;return!i&&n&&t.constructor===Hl&&r?t:Fl(Ul?new Gl(n&&!r?t.source:t,e):Gl((n=t instanceof Hl)?t.source:t,n&&r?$l.call(t):e),i?this:Wl,Hl)};for(var ql=function(t){t in Hl||Il(Hl,t,{configurable:!0,get:function(){return Gl[t]},set:function(e){Gl[t]=e}})},Zl=jl(Gl),Kl=0;Zl.length>Kl;)ql(Zl[Kl++]);Wl.constructor=Hl,Hl.prototype=Wl,U(Bl,"RegExp",Hl)}Cl("RegExp");var Jl=Dl,Ql=RegExp.prototype.exec,th=String.prototype.replace,eh=Ql,ih="lastIndex",nh=function(){var t=/a/,e=/b*/g;return Ql.call(t,"a"),Ql.call(e,"a"),0!==t[ih]||0!==e[ih]}(),rh=void 0!==/()??/.exec("")[1];(nh||rh)&&(eh=function(t){var e,i,n,r,o=this;return rh&&(i=new RegExp("^"+o.source+"$(?!\\s)",Jl.call(o))),nh&&(e=o[ih]),n=Ql.call(o,t),nh&&n&&(o[ih]=o.global?n.index+n[0].length:e),rh&&n&&n.length>1&&th.call(n[0],i,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(n[r]=void 0)})),n});var oh=eh;ot({target:"RegExp",proto:!0,forced:oh!==/./.exec},{exec:oh}),u&&"g"!=/./g.flags&&_.f(RegExp.prototype,"flags",{configurable:!0,get:Dl});var sh=g,ah=Dl,uh=u,lh="toString",hh=/./[lh],ph=function(t){U(RegExp.prototype,lh,t,!0)};a((function(){return"/a/b"!=hh.call({source:"a",flags:"b"})}))?ph((function(){var t=sh(this);return"/".concat(t.source,"/","flags"in t?t.flags:!uh&&t instanceof RegExp?ah.call(t):void 0)})):hh.name!=lh&&ph((function(){return hh.call(this)}));var ch=ds(!0),fh=function(t,e,i){return e+(i?ch(t,e).length:1)},_h=Hn,dh=RegExp.prototype.exec,yh=function(t,e){var i=t.exec;if("function"==typeof i){var n=i.call(t,e);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==_h(t))throw new TypeError("RegExp#exec called on incompatible receiver");return dh.call(t,e)},gh=U,vh=E(),mh=a,bh=Bt,wh=Pt,xh=oh,Sh=wh("species"),Ph=!mh((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Vh=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}(),kh=function(t,e,i){var n=wh(t),r=!mh((function(){var e={};return e[n]=function(){return 7},7!=""[t](e)})),o=r?!mh((function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[Sh]=function(){return i}),i[n](""),!e})):void 0;if(!r||!o||"replace"===t&&!Ph||"split"===t&&!Vh){var s=/./[n],a=i(bh,n,""[t],(function(t,e,i,n,o){return e.exec===xh?r&&!o?{done:!0,value:s.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}})),u=a[0],l=a[1];gh(String.prototype,t,u),vh(RegExp.prototype,n,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})}},Ah=g,Ch=Yt,Eh=fh,Lh=yh;kh("match",1,(function(t,e,i,n){return[function(i){var n=t(this),r=null==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=n(i,t,this);if(e.done)return e.value;var r=Ah(t),o=String(this);if(!r.global)return Lh(r,o);var s=r.unicode;r.lastIndex=0;for(var a,u=[],l=0;null!==(a=Lh(r,o));){var h=String(a[0]);u[l]=h,""===h&&(r.lastIndex=Eh(o,Ch(r.lastIndex),s)),l++}return 0===l?null:u}]}));var Nh=g,Mh=Pe,Th=Yt,Oh=Ht,Rh=fh,Dh=yh,Bh=Math.max,Fh=Math.min,Ih=Math.floor,jh=/\$([$&`']|\d\d?|<[^>]*>)/g,zh=/\$([$&`']|\d\d?)/g;kh("replace",2,(function(t,e,i,n){return[function(n,r){var o=t(this),s=null==n?void 0:n[e];return void 0!==s?s.call(n,o,r):i.call(String(o),n,r)},function(t,e){var o=n(i,t,this,e);if(o.done)return o.value;var s=Nh(t),a=String(this),u="function"==typeof e;u||(e=String(e));var l=s.global;if(l){var h=s.unicode;s.lastIndex=0}for(var p=[];;){var c=Dh(s,a);if(null===c)break;if(p.push(c),!l)break;""===String(c[0])&&(s.lastIndex=Rh(a,Th(s.lastIndex),h))}for(var f,_="",d=0,y=0;y<p.length;y++){c=p[y];for(var g=String(c[0]),v=Bh(Fh(Oh(c.index),a.length),0),m=[],b=1;b<c.length;b++)m.push(void 0===(f=c[b])?f:String(f));var w=c.groups;if(u){var x=[g].concat(m,v,a);void 0!==w&&x.push(w);var S=String(e.apply(void 0,x))}else S=r(g,a,v,m,w,e);v>=d&&(_+=a.slice(d,v)+S,d=v+g.length)}return _+a.slice(d)}];function r(t,e,n,r,o,s){var a=n+t.length,u=r.length,l=zh;return void 0!==o&&(o=Mh(o),l=jh),i.call(s,l,(function(i,s){var l;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(a);case"<":l=o[s.slice(1,-1)];break;default:var h=+s;if(0===h)return i;if(h>u){var p=Ih(h/10);return 0===p?i:p<=u?void 0===r[p-1]?s.charAt(1):r[p-1]+s.charAt(1):i}l=r[h-1]}return void 0===l?"":l}))}}));var $h=g,Hh=Fn,Gh=yh;kh("search",1,(function(t,e,i,n){return[function(i){var n=t(this),r=null==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=n(i,t,this);if(e.done)return e.value;var r=$h(t),o=String(this),s=r.lastIndex;Hh(s,0)||(r.lastIndex=0);var a=Gh(r,o);return Hh(r.lastIndex,s)||(r.lastIndex=s),null===a?-1:a.index}]}));var Wh=g,Yh=q,Xh=Pt("species"),Uh=function(t,e){var i,n=Wh(t).constructor;return void 0===n||null==(i=Wh(n)[Xh])?e:Yh(i)},qh=Hs,Zh=g,Kh=Uh,Jh=fh,Qh=Yt,tp=yh,ep=oh,ip=a,np=Math.min,rp=[].push,op="split",sp="length",ap="lastIndex",up=4294967295,lp=!ip((function(){RegExp(up,"y")}));kh("split",2,(function(t,e,i,n){var r;return r="c"=="abbc"[op](/(b)*/)[1]||4!="test"[op](/(?:)/,-1)[sp]||2!="ab"[op](/(?:ab)*/)[sp]||4!="."[op](/(.?)(.?)/)[sp]||"."[op](/()()/)[sp]>1||""[op](/.?/)[sp]?function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!qh(t))return i.call(n,t,e);for(var r,o,s,a=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,h=void 0===e?up:e>>>0,p=new RegExp(t.source,u+"g");(r=ep.call(p,n))&&!((o=p[ap])>l&&(a.push(n.slice(l,r.index)),r[sp]>1&&r.index<n[sp]&&rp.apply(a,r.slice(1)),s=r[0][sp],l=o,a[sp]>=h));)p[ap]===r.index&&p[ap]++;return l===n[sp]?!s&&p.test("")||a.push(""):a.push(n.slice(l)),a[sp]>h?a.slice(0,h):a}:"0"[op](void 0,0)[sp]?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,n){var o=t(this),s=null==i?void 0:i[e];return void 0!==s?s.call(i,o,n):r.call(String(o),i,n)},function(t,e){var o=n(r,t,this,e,r!==i);if(o.done)return o.value;var s=Zh(t),a=String(this),u=Kh(s,RegExp),l=s.unicode,h=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(lp?"y":"g"),p=new u(lp?s:"^(?:"+s.source+")",h),c=void 0===e?up:e>>>0;if(0===c)return[];if(0===a.length)return null===tp(p,a)?[a]:[];for(var f=0,_=0,d=[];_<a.length;){p.lastIndex=lp?_:0;var y,g=tp(p,lp?a:a.slice(_));if(null===g||(y=np(Qh(p.lastIndex+(lp?0:_)),a.length))===f)_=Jh(a,_,l);else{if(d.push(a.slice(f,_)),d.length===c)return d;for(var v=1;v<=g.length-1;v++)if(d.push(g[v]),d.length===c)return d;_=f=y}}return d.push(a.slice(f)),d}]}));var hp=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t},pp={exports:{}},cp=K,fp=Oa,_p=Fa,dp=g,yp=Yt,gp=Wa,vp={},mp={},bp=pp.exports=function(t,e,i,n,r){var o,s,a,u,l=r?function(){return t}:gp(t),h=cp(i,n,e?2:1),p=0;if("function"!=typeof l)throw TypeError(t+" is not iterable!");if(_p(l)){for(o=yp(t.length);o>p;p++)if((u=e?h(dp(s=t[p])[0],s[1]):h(t[p]))===vp||u===mp)return u}else for(a=l.call(t);!(s=a.next()).done;)if((u=fp(a,h,s.value,e))===vp||u===mp)return u};bp.BREAK=vp,bp.RETURN=mp;var wp,xp,Sp,Pp=pp.exports,Vp=K,kp=Un,Ap=Ce,Cp=v(),Ep=r,Lp=Ep.process,Np=Ep.setImmediate,Mp=Ep.clearImmediate,Tp=Ep.MessageChannel,Op=Ep.Dispatch,Rp=0,Dp={},Bp="onreadystatechange",Fp=function(){var t=+this;if(Dp.hasOwnProperty(t)){var e=Dp[t];delete Dp[t],e()}},Ip=function(t){Fp.call(t.data)};Np&&Mp||(Np=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return Dp[++Rp]=function(){kp("function"==typeof t?t:Function(t),e)},wp(Rp),Rp},Mp=function(t){delete Dp[t]},"process"==Rt(Lp)?wp=function(t){Lp.nextTick(Vp(Fp,t,1))}:Op&&Op.now?wp=function(t){Op.now(Vp(Fp,t,1))}:Tp?(Sp=(xp=new Tp).port2,xp.port1.onmessage=Ip,wp=Vp(Sp.postMessage,Sp,1)):Ep.addEventListener&&"function"==typeof postMessage&&!Ep.importScripts?(wp=function(t){Ep.postMessage(t+"","*")},Ep.addEventListener("message",Ip,!1)):wp=Bp in Cp("script")?function(t){Ap.appendChild(Cp("script"))[Bp]=function(){Ap.removeChild(this),Fp.call(t)}}:function(t){setTimeout(Vp(Fp,t,1),0)});var jp={set:Np,clear:Mp},zp=r,$p=jp.set,Hp=zp.MutationObserver||zp.WebKitMutationObserver,Gp=zp.process,Wp=zp.Promise,Yp="process"==Rt(Gp),Xp=function(){var t,e,i,n=function(){var n,r;for(Yp&&(n=Gp.domain)&&n.exit();t;){r=t.fn,t=t.next;try{r()}catch(n){throw t?i():e=void 0,n}}e=void 0,n&&n.enter()};if(Yp)i=function(){Gp.nextTick(n)};else if(!Hp||zp.navigator&&zp.navigator.standalone)if(Wp&&Wp.resolve){var r=Wp.resolve(void 0);i=function(){r.then(n)}}else i=function(){$p.call(zp,n)};else{var o=!0,s=document.createTextNode("");new Hp(n).observe(s,{characterData:!0}),i=function(){s.data=o=!o}}return function(n){var r={fn:n,next:void 0};e&&(e.next=r),t||(t=r,i()),e=r}},Up={},qp=q;function Zp(t){var e,i;this.promise=new t((function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n})),this.resolve=qp(e),this.reject=qp(i)}Up.f=function(t){return new Zp(t)};var Kp,Jp,Qp=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}},tc=r.navigator,ec=tc&&tc.userAgent||"",ic=g,nc=d,rc=Up,oc=function(t,e){if(ic(t),nc(e)&&e.constructor===t)return e;var i=rc.f(t);return(0,i.resolve)(e),i.promise};function sc(){if(Jp)return Kp;Jp=1;var t=U;return Kp=function(e,i,n){for(var r in i)t(e,r,i[r],n);return e},Kp}var ac,uc,lc,hc,pc=r,cc=K,fc=Hn,_c=ot,dc=d,yc=q,gc=hp,vc=Pp,mc=Uh,bc=jp.set,wc=Xp(),xc=Up,Sc=Qp,Pc=ec,Vc=oc,kc="Promise",Ac=pc.TypeError,Cc=pc.process,Ec=Cc&&Cc.versions,Lc=Ec&&Ec.v8||"",Nc=pc[kc],Mc="process"==fc(Cc),Tc=function(){},Oc=uc=xc.f,Rc=!!function(){try{var t=Nc.resolve(1),e=(t.constructor={})[Pt("species")]=function(t){t(Tc,Tc)};return(Mc||"function"==typeof PromiseRejectionEvent)&&t.then(Tc)instanceof e&&0!==Lc.indexOf("6.6")&&-1===Pc.indexOf("Chrome/66")}catch(t){}}(),Dc=function(t){var e;return!(!dc(t)||"function"!=typeof(e=t.then))&&e},Bc=function(t,e){if(!t._n){t._n=!0;var i=t._c;wc((function(){for(var n=t._v,r=1==t._s,o=0,s=function(e){var i,o,s,a=r?e.ok:e.fail,u=e.resolve,l=e.reject,h=e.domain;try{a?(r||(2==t._h&&jc(t),t._h=1),!0===a?i=n:(h&&h.enter(),i=a(n),h&&(h.exit(),s=!0)),i===e.promise?l(Ac("Promise-chain cycle")):(o=Dc(i))?o.call(i,u,l):u(i)):l(n)}catch(t){h&&!s&&h.exit(),l(t)}};i.length>o;)s(i[o++]);t._c=[],t._n=!1,e&&!t._h&&Fc(t)}))}},Fc=function(t){bc.call(pc,(function(){var e,i,n,r=t._v,o=Ic(t);if(o&&(e=Sc((function(){Mc?Cc.emit("unhandledRejection",r,t):(i=pc.onunhandledrejection)?i({promise:t,reason:r}):(n=pc.console)&&n.error&&n.error("Unhandled promise rejection",r)})),t._h=Mc||Ic(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},Ic=function(t){return 1!==t._h&&0===(t._a||t._c).length},jc=function(t){bc.call(pc,(function(){var e;Mc?Cc.emit("rejectionHandled",t):(e=pc.onrejectionhandled)&&e({promise:t,reason:t._v})}))},zc=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),Bc(e,!0))},$c=function(t){var e,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw Ac("Promise can't be resolved itself");(e=Dc(t))?wc((function(){var n={_w:i,_d:!1};try{e.call(t,cc($c,n,1),cc(zc,n,1))}catch(t){zc.call(n,t)}})):(i._v=t,i._s=1,Bc(i,!1))}catch(t){zc.call({_w:i,_d:!1},t)}}};Rc||(Nc=function(t){gc(this,Nc,kc,"_h"),yc(t),ac.call(this);try{t(cc($c,this,1),cc(zc,this,1))}catch(t){zc.call(this,t)}},(ac=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=sc()(Nc.prototype,{then:function(t,e){var i=Oc(mc(this,Nc));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=Mc?Cc.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&Bc(this,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),lc=function(){var t=new ac;this.promise=t,this.resolve=cc($c,t,1),this.reject=cc(zc,t,1)},xc.f=Oc=function(t){return t===Nc||t===hc?new lc(t):uc(t)}),_c(_c.G+_c.W+_c.F*!Rc,{Promise:Nc}),Vt()(Nc,kc),Cl(kc),hc=f[kc],_c(_c.S+_c.F*!Rc,kc,{reject:function(t){var e=Oc(this);return(0,e.reject)(t),e.promise}}),_c(_c.S+_c.F*!Rc,kc,{resolve:function(t){return Vc(this,t)}}),_c(_c.S+_c.F*!(Rc&&Ya()((function(t){Nc.all(t).catch(Tc)}))),kc,{all:function(t){var e=this,i=Oc(e),n=i.resolve,r=i.reject,o=Sc((function(){var i=[],o=0,s=1;vc(t,!1,(function(t){var a=o++,u=!1;i.push(void 0),s++,e.resolve(t).then((function(t){u||(u=!0,i[a]=t,--s||n(i))}),r)})),--s||n(i)}));return o.e&&r(o.v),i.promise},race:function(t){var e=this,i=Oc(e),n=i.reject,r=Sc((function(){vc(t,!1,(function(t){e.resolve(t).then(i.resolve,n)}))}));return r.e&&n(r.v),i.promise}});var Hc=d,Gc=function(t,e){if(!Hc(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t},Wc=_.f,Yc=De,Xc=sc(),Uc=K,qc=hp,Zc=Pp,Kc=Os,Jc=El,Qc=Cl,tf=u,ef=yt.fastKey,nf=Gc,rf=tf?"_s":"size",of=function(t,e){var i,n=ef(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i},sf={getConstructor:function(t,e,i,n){var r=t((function(t,o){qc(t,r,e,"_i"),t._t=e,t._i=Yc(null),t._f=void 0,t._l=void 0,t[rf]=0,null!=o&&Zc(o,i,t[n],t)}));return Xc(r.prototype,{clear:function(){for(var t=nf(this,e),i=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];t._f=t._l=void 0,t[rf]=0},delete:function(t){var i=nf(this,e),n=of(i,t);if(n){var r=n.n,o=n.p;delete i._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),i._f==n&&(i._f=r),i._l==n&&(i._l=o),i[rf]--}return!!n},forEach:function(t){nf(this,e);for(var i,n=Uc(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(n(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!of(nf(this,e),t)}}),tf&&Wc(r.prototype,"size",{get:function(){return nf(this,e)[rf]}}),r},def:function(t,e,i){var n,r,o=of(t,e);return o?o.v=i:(t._l=o={i:r=ef(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[rf]++,"F"!==r&&(t._i[r]=o)),t},getEntry:of,setStrong:function(t,e,i){Kc(t,e,(function(t,i){this._t=nf(t,e),this._k=i,this._l=void 0}),(function(){for(var t=this,e=t._k,i=t._l;i&&i.r;)i=i.p;return t._t&&(t._l=i=i?i.n:t._t._f)?Jc(0,"keys"==e?i.k:"values"==e?i.v:[i.k,i.v]):(t._t=void 0,Jc(1))}),i?"entries":"values",!i,!0),Qc(e)}},af=r,uf=ot,lf=U,hf=sc(),pf=yt,cf=Pp,ff=hp,_f=d,df=a,yf=Ya(),gf=Vt(),vf=Er,mf=function(t,e,i,n,r,o){var s=af[t],a=s,u=r?"set":"add",l=a&&a.prototype,h={},p=function(t){var e=l[t];lf(l,t,"delete"==t||"has"==t?function(t){return!(o&&!_f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!_f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,i){return e.call(this,0===t?0:t,i),this})};if("function"==typeof a&&(o||l.forEach&&!df((function(){(new a).entries().next()})))){var c=new a,f=c[u](o?{}:-0,1)!=c,_=df((function(){c.has(1)})),d=yf((function(t){new a(t)})),y=!o&&df((function(){for(var t=new a,e=5;e--;)t[u](e,e);return!t.has(-0)}));d||((a=e((function(e,i){ff(e,a,t);var n=vf(new s,e,a);return null!=i&&cf(i,r,n[u],n),n}))).prototype=l,l.constructor=a),(_||y)&&(p("delete"),p("has"),r&&p("get")),(y||f)&&p(u),o&&l.clear&&delete l.clear}else a=n.getConstructor(e,t,r,u),hf(a.prototype,i),pf.NEED=!0;return gf(a,t),h[t]=a,uf(uf.G+uf.W+uf.F*(a!=s),h),o||n.setStrong(a,t,r),a},bf=sf,wf=Gc,xf="Map",Sf=mf(xf,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=bf.getEntry(wf(this,xf),t);return e&&e.v},set:function(t,e){return bf.def(wf(this,xf),0===t?0:t,e)}},bf,!0),Pf=sf,Vf=Gc,kf=mf("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return Pf.def(Vf(this,"Set"),t=0===t?0:t,t)}},Pf),Af={exports:{}},Cf=sc(),Ef=yt.getWeak,Lf=g,Nf=d,Mf=hp,Tf=Pp,Of=Lu,Rf=s,Df=Gc,Bf=Of(5),Ff=Of(6),If=0,jf=function(t){return t._l||(t._l=new zf)},zf=function(){this.a=[]},$f=function(t,e){return Bf(t.a,(function(t){return t[0]===e}))};zf.prototype={get:function(t){var e=$f(this,t);if(e)return e[1]},has:function(t){return!!$f(this,t)},set:function(t,e){var i=$f(this,t);i?i[1]=e:this.a.push([t,e])},delete:function(t){var e=Ff(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}};var Hf,Gf={getConstructor:function(t,e,i,n){var r=t((function(t,o){Mf(t,r,e,"_i"),t._t=e,t._i=If++,t._l=void 0,null!=o&&Tf(o,i,t[n],t)}));return Cf(r.prototype,{delete:function(t){if(!Nf(t))return!1;var i=Ef(t);return!0===i?jf(Df(this,e)).delete(t):i&&Rf(i,this._i)&&delete i[this._i]},has:function(t){if(!Nf(t))return!1;var i=Ef(t);return!0===i?jf(Df(this,e)).has(t):i&&Rf(i,this._i)}}),r},def:function(t,e,i){var n=Ef(Lf(e),!0);return!0===n?jf(t).set(e,i):n[t._i]=i,t},ufstore:jf},Wf=r,Yf=Lu(0),Xf=U,Uf=yt,qf=On,Zf=Gf,Kf=d,Jf=Gc,Qf=Gc,t_=!Wf.ActiveXObject&&"ActiveXObject"in Wf,e_="WeakMap",i_=Uf.getWeak,n_=Object.isExtensible,r_=Zf.ufstore,o_=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},s_={get:function(t){if(Kf(t)){var e=i_(t);return!0===e?r_(Jf(this,e_)).get(t):e?e[this._i]:void 0}},set:function(t,e){return Zf.def(Jf(this,e_),t,e)}},a_=Af.exports=mf(e_,o_,s_,Zf,!0,!0);Qf&&t_&&(qf((Hf=Zf.getConstructor(o_,e_)).prototype,s_),Uf.NEED=!0,Yf(["delete","has","get","set"],(function(t){var e=a_.prototype,i=e[t];Xf(e,t,(function(e,n){if(Kf(e)&&!n_(e)){this._f||(this._f=new Hf);var r=this._f[t](e,n);return"set"==t?this:r}return i.call(this,e,n)}))})));var u_=Af.exports,l_=Gf,h_=Gc,p_="WeakSet";mf(p_,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return l_.def(h_(this,p_),t,!0)}},l_,!1,!0);for(var c_,f_=r,__=E(),d_=T,y_=d_("typed_array"),g_=d_("view"),v_=!(!f_.ArrayBuffer||!f_.DataView),m_=v_,b_=0,w_="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");b_<9;)(c_=f_[w_[b_++]])?(__(c_.prototype,y_,!0),__(c_.prototype,g_,!0)):m_=!1;var x_={ABV:v_,CONSTR:m_,TYPED:y_,VIEW:g_},S_={},P_=Ht,V_=Yt,k_=function(t){if(void 0===t)return 0;var e=P_(t),i=V_(e);if(e!==i)throw RangeError("Wrong length!");return i};!function(t){var e=r,i=u,n=x_,o=E(),s=sc(),l=a,h=hp,p=Ht,c=Yt,f=k_,d=Fe.f,y=_.f,g=dl(),v=Vt(),m="ArrayBuffer",b="DataView",w="prototype",x="Wrong index!",S=e[m],P=e[b],V=e.Math,k=e.RangeError,A=e.Infinity,C=S,L=V.abs,N=V.pow,M=V.floor,T=V.log,O=V.LN2,R="buffer",D="byteLength",B="byteOffset",F=i?"_b":R,I=i?"_l":D,j=i?"_o":B;function z(t,e,i){var n,r,o,s=new Array(i),a=8*i-e-1,u=(1<<a)-1,l=u>>1,h=23===e?N(2,-24)-N(2,-77):0,p=0,c=t<0||0===t&&1/t<0?1:0;for((t=L(t))!=t||t===A?(r=t!=t?1:0,n=u):(n=M(T(t)/O),t*(o=N(2,-n))<1&&(n--,o*=2),(t+=n+l>=1?h/o:h*N(2,1-l))*o>=2&&(n++,o/=2),n+l>=u?(r=0,n=u):n+l>=1?(r=(t*o-1)*N(2,e),n+=l):(r=t*N(2,l-1)*N(2,e),n=0));e>=8;s[p++]=255&r,r/=256,e-=8);for(n=n<<e|r,a+=e;a>0;s[p++]=255&n,n/=256,a-=8);return s[--p]|=128*c,s}function $(t,e,i){var n,r=8*i-e-1,o=(1<<r)-1,s=o>>1,a=r-7,u=i-1,l=t[u--],h=127&l;for(l>>=7;a>0;h=256*h+t[u],u--,a-=8);for(n=h&(1<<-a)-1,h>>=-a,a+=e;a>0;n=256*n+t[u],u--,a-=8);if(0===h)h=1-s;else{if(h===o)return n?NaN:l?-A:A;n+=N(2,e),h-=s}return(l?-1:1)*n*N(2,h-e)}function H(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function G(t){return[255&t]}function W(t){return[255&t,t>>8&255]}function Y(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function X(t){return z(t,52,8)}function U(t){return z(t,23,4)}function q(t,e,i){y(t[w],e,{get:function(){return this[i]}})}function Z(t,e,i,n){var r=f(+i);if(r+e>t[I])throw k(x);var o=t[F]._b,s=r+t[j],a=o.slice(s,s+e);return n?a:a.reverse()}function K(t,e,i,n,r,o){var s=f(+i);if(s+e>t[I])throw k(x);for(var a=t[F]._b,u=s+t[j],l=n(+r),h=0;h<e;h++)a[u+h]=l[o?h:e-h-1]}if(n.ABV){if(!l((function(){S(1)}))||!l((function(){new S(-1)}))||l((function(){return new S,new S(1.5),new S(NaN),S.name!=m}))){for(var J,Q=(S=function(t){return h(this,S),new C(f(t))})[w]=C[w],tt=d(C),et=0;tt.length>et;)(J=tt[et++])in S||o(S,J,C[J]);Q.constructor=S}var it=new P(new S(2)),nt=P[w].setInt8;it.setInt8(0,2147483648),it.setInt8(1,2147483649),!it.getInt8(0)&&it.getInt8(1)||s(P[w],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else S=function(t){h(this,S,m);var e=f(t);this._b=g.call(new Array(e),0),this[I]=e},P=function(t,e,i){h(this,P,b),h(t,S,b);var n=t[I],r=p(e);if(r<0||r>n)throw k("Wrong offset!");if(r+(i=void 0===i?n-r:c(i))>n)throw k("Wrong length!");this[F]=t,this[j]=r,this[I]=i},i&&(q(S,D,"_l"),q(P,R,"_b"),q(P,D,"_l"),q(P,B,"_o")),s(P[w],{getInt8:function(t){return Z(this,1,t)[0]<<24>>24},getUint8:function(t){return Z(this,1,t)[0]},getInt16:function(t){var e=Z(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Z(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return H(Z(this,4,t,arguments[1]))},getUint32:function(t){return H(Z(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return $(Z(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return $(Z(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){K(this,1,t,G,e)},setUint8:function(t,e){K(this,1,t,G,e)},setInt16:function(t,e){K(this,2,t,W,e,arguments[2])},setUint16:function(t,e){K(this,2,t,W,e,arguments[2])},setInt32:function(t,e){K(this,4,t,Y,e,arguments[2])},setUint32:function(t,e){K(this,4,t,Y,e,arguments[2])},setFloat32:function(t,e){K(this,4,t,U,e,arguments[2])},setFloat64:function(t,e){K(this,8,t,X,e,arguments[2])}});v(S,m),v(P,b),o(P[w],n.VIEW,!0),t[m]=S,t[b]=P}(S_);var A_=ot,C_=x_,E_=S_,L_=g,N_=Zt,M_=Yt,T_=d,O_=r.ArrayBuffer,R_=Uh,D_=E_.ArrayBuffer,B_=E_.DataView,F_=C_.ABV&&O_.isView,I_=D_.prototype.slice,j_=C_.VIEW,z_="ArrayBuffer";A_(A_.G+A_.W+A_.F*(O_!==D_),{ArrayBuffer:D_}),A_(A_.S+A_.F*!C_.CONSTR,z_,{isView:function(t){return F_&&F_(t)||T_(t)&&j_ in t}}),A_(A_.P+A_.U+A_.F*a((function(){return!new D_(2).slice(1,void 0).byteLength})),z_,{slice:function(t,e){if(void 0!==I_&&void 0===e)return I_.call(L_(this),t);for(var i=L_(this).byteLength,n=N_(t,i),r=N_(void 0===e?i:e,i),o=new(R_(this,D_))(M_(r-n)),s=new B_(this),a=new B_(o),u=0;n<r;)a.setUint8(u++,s.getUint8(n++));return o}}),Cl(z_);var $_=ot;$_($_.G+$_.W+$_.F*!x_.ABV,{DataView:S_.DataView});var H_={exports:{}};if(u){var G_=r,W_=a,Y_=ot,X_=x_,U_=S_,q_=K,Z_=hp,K_=C,J_=E(),Q_=sc(),td=Ht,ed=Yt,id=k_,nd=Zt,rd=w,od=s,sd=Hn,ad=d,ud=Pe,ld=Fa,hd=De,pd=fn,cd=Fe.f,fd=Wa,_d=T,dd=Pt,yd=Lu,gd=te,vd=Uh,md=Ol,bd=ys,wd=Ya(),xd=Cl,Sd=dl(),Pd=ll(),Vd=_,kd=$e,Ad=Vd.f,Cd=kd.f,Ed=G_.RangeError,Ld=G_.TypeError,Nd=G_.Uint8Array,Md="ArrayBuffer",Td="Shared"+Md,Od="BYTES_PER_ELEMENT",Rd="prototype",Dd=Array[Rd],Bd=U_.ArrayBuffer,Fd=U_.DataView,Id=yd(0),jd=yd(2),zd=yd(3),$d=yd(4),Hd=yd(5),Gd=yd(6),Wd=gd(!0),Yd=gd(!1),Xd=md.values,Ud=md.keys,qd=md.entries,Zd=Dd.lastIndexOf,Kd=Dd.reduce,Jd=Dd.reduceRight,Qd=Dd.join,ty=Dd.sort,ey=Dd.slice,iy=Dd.toString,ny=Dd.toLocaleString,ry=dd("iterator"),oy=dd("toStringTag"),sy=_d("typed_constructor"),ay=_d("def_constructor"),uy=X_.CONSTR,ly=X_.TYPED,hy=X_.VIEW,py="Wrong length!",cy=yd(1,(function(t,e){return gy(vd(t,t[ay]),e)})),fy=W_((function(){return 1===new Nd(new Uint16Array([1]).buffer)[0]})),_y=!!Nd&&!!Nd[Rd].set&&W_((function(){new Nd(1).set({})})),dy=function(t,e){var i=td(t);if(i<0||i%e)throw Ed("Wrong offset!");return i},yy=function(t){if(ad(t)&&ly in t)return t;throw Ld(t+" is not a typed array!")},gy=function(t,e){if(!ad(t)||!(sy in t))throw Ld("It is not a typed array constructor!");return new t(e)},vy=function(t,e){return my(vd(t,t[ay]),e)},my=function(t,e){for(var i=0,n=e.length,r=gy(t,n);n>i;)r[i]=e[i++];return r},by=function(t,e,i){Ad(t,e,{get:function(){return this._d[i]}})},wy=function(t){var e,i,n,r,o,s,a=ud(t),u=arguments.length,l=u>1?arguments[1]:void 0,h=void 0!==l,p=fd(a);if(null!=p&&!ld(p)){for(s=p.call(a),n=[],e=0;!(o=s.next()).done;e++)n.push(o.value);a=n}for(h&&u>2&&(l=q_(l,arguments[2],2)),e=0,i=ed(a.length),r=gy(this,i);i>e;e++)r[e]=h?l(a[e],e):a[e];return r},xy=function(){for(var t=0,e=arguments.length,i=gy(this,e);e>t;)i[t]=arguments[t++];return i},Sy=!!Nd&&W_((function(){ny.call(new Nd(1))})),Py=function(){return ny.apply(Sy?ey.call(yy(this)):yy(this),arguments)},Vy={copyWithin:function(t,e){return Pd.call(yy(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return $d(yy(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return Sd.apply(yy(this),arguments)},filter:function(t){return vy(this,jd(yy(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Hd(yy(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return Gd(yy(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Id(yy(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return Yd(yy(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return Wd(yy(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return Qd.apply(yy(this),arguments)},lastIndexOf:function(t){return Zd.apply(yy(this),arguments)},map:function(t){return cy(yy(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return Kd.apply(yy(this),arguments)},reduceRight:function(t){return Jd.apply(yy(this),arguments)},reverse:function(){for(var t,e=this,i=yy(e).length,n=Math.floor(i/2),r=0;r<n;)t=e[r],e[r++]=e[--i],e[i]=t;return e},some:function(t){return zd(yy(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ty.call(yy(this),t)},subarray:function(t,e){var i=yy(this),n=i.length,r=nd(t,n);return new(vd(i,i[ay]))(i.buffer,i.byteOffset+r*i.BYTES_PER_ELEMENT,ed((void 0===e?n:nd(e,n))-r))}},ky=function(t,e){return vy(this,ey.call(yy(this),t,e))},Ay=function(t){yy(this);var e=dy(arguments[1],1),i=this.length,n=ud(t),r=ed(n.length),o=0;if(r+e>i)throw Ed(py);for(;o<r;)this[e+o]=n[o++]},Cy={entries:function(){return qd.call(yy(this))},keys:function(){return Ud.call(yy(this))},values:function(){return Xd.call(yy(this))}},Ey=function(t,e){return ad(t)&&t[ly]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Ly=function(t,e){return Ey(t,e=rd(e,!0))?K_(2,t[e]):Cd(t,e)},Ny=function(t,e,i){return!(Ey(t,e=rd(e,!0))&&ad(i)&&od(i,"value"))||od(i,"get")||od(i,"set")||i.configurable||od(i,"writable")&&!i.writable||od(i,"enumerable")&&!i.enumerable?Ad(t,e,i):(t[e]=i.value,t)};uy||(kd.f=Ly,Vd.f=Ny),Y_(Y_.S+Y_.F*!uy,"Object",{getOwnPropertyDescriptor:Ly,defineProperty:Ny}),W_((function(){iy.call({})}))&&(iy=ny=function(){return Qd.call(this)});var My=Q_({},Vy);Q_(My,Cy),J_(My,ry,Cy.values),Q_(My,{slice:ky,set:Ay,constructor:function(){},toString:iy,toLocaleString:Py}),by(My,"buffer","b"),by(My,"byteOffset","o"),by(My,"byteLength","l"),by(My,"length","e"),Ad(My,oy,{get:function(){return this[ly]}}),H_.exports=function(t,e,i,n){var r=t+((n=!!n)?"Clamped":"")+"Array",o="get"+t,s="set"+t,a=G_[r],u=a||{},l=a&&pd(a),h=!a||!X_.ABV,p={},c=a&&a[Rd],f=function(t,i){Ad(t,i,{get:function(){return function(t,i){var n=t._d;return n.v[o](i*e+n.o,fy)}(this,i)},set:function(t){return function(t,i,r){var o=t._d;n&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[s](i*e+o.o,r,fy)}(this,i,t)},enumerable:!0})};h?(a=i((function(t,i,n,o){Z_(t,a,r,"_d");var s,u,l,h,p=0,c=0;if(ad(i)){if(!(i instanceof Bd||(h=sd(i))==Md||h==Td))return ly in i?my(a,i):wy.call(a,i);s=i,c=dy(n,e);var _=i.byteLength;if(void 0===o){if(_%e)throw Ed(py);if((u=_-c)<0)throw Ed(py)}else if((u=ed(o)*e)+c>_)throw Ed(py);l=u/e}else l=id(i),s=new Bd(u=l*e);for(J_(t,"_d",{b:s,o:c,l:u,e:l,v:new Fd(s)});p<l;)f(t,p++)})),c=a[Rd]=hd(My),J_(c,"constructor",a)):W_((function(){a(1)}))&&W_((function(){new a(-1)}))&&wd((function(t){new a,new a(null),new a(1.5),new a(t)}),!0)||(a=i((function(t,i,n,o){var s;return Z_(t,a,r),ad(i)?i instanceof Bd||(s=sd(i))==Md||s==Td?void 0!==o?new u(i,dy(n,e),o):void 0!==n?new u(i,dy(n,e)):new u(i):ly in i?my(a,i):wy.call(a,i):new u(id(i))})),Id(l!==Function.prototype?cd(u).concat(cd(l)):cd(u),(function(t){t in a||J_(a,t,u[t])})),a[Rd]=c,c.constructor=a);var _=c[ry],d=!!_&&("values"==_.name||null==_.name),y=Cy.values;J_(a,sy,!0),J_(c,ly,r),J_(c,hy,!0),J_(c,ay,a),(n?new a(1)[oy]==r:oy in c)||Ad(c,oy,{get:function(){return r}}),p[r]=a,Y_(Y_.G+Y_.W+Y_.F*(a!=u),p),Y_(Y_.S,r,{BYTES_PER_ELEMENT:e}),Y_(Y_.S+Y_.F*W_((function(){u.of.call(a,1)})),r,{from:wy,of:xy}),Od in c||J_(c,Od,e),Y_(Y_.P,r,Vy),xd(r),Y_(Y_.P+Y_.F*_y,r,{set:Ay}),Y_(Y_.P+Y_.F*!d,r,Cy),c.toString!=iy&&(c.toString=iy),Y_(Y_.P+Y_.F*W_((function(){new a(1).slice()})),r,{slice:ky}),Y_(Y_.P+Y_.F*(W_((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!W_((function(){c.toLocaleString.call([1,2])}))),r,{toLocaleString:Py}),bd[r]=d?_:y,d||J_(c,ry,y)}}else H_.exports=function(){};var Ty=H_.exports;Ty("Int8",1,(function(t){return function(e,i,n){return t(this,e,i,n)}})),Ty("Uint8",1,(function(t){return function(e,i,n){return t(this,e,i,n)}})),Ty("Uint8",1,(function(t){return function(e,i,n){return t(this,e,i,n)}}),!0),Ty("Int16",2,(function(t){return function(e,i,n){return t(this,e,i,n)}})),Ty("Uint16",2,(function(t){return function(e,i,n){return t(this,e,i,n)}})),Ty("Int32",4,(function(t){return function(e,i,n){return t(this,e,i,n)}})),Ty("Uint32",4,(function(t){return function(e,i,n){return t(this,e,i,n)}})),Ty("Float32",4,(function(t){return function(e,i,n){return t(this,e,i,n)}})),Ty("Float64",8,(function(t){return function(e,i,n){return t(this,e,i,n)}}));var Oy=ot,Ry=q,Dy=g,By=(r.Reflect||{}).apply,Fy=Function.apply;Oy(Oy.S+Oy.F*!a((function(){By((function(){}))})),"Reflect",{apply:function(t,e,i){var n=Ry(t),r=Dy(i);return By?By(n,e,r):Fy.call(n,e,r)}});var Iy=ot,jy=De,zy=q,$y=g,Hy=d,Gy=a,Wy=qn(),Yy=(r.Reflect||{}).construct,Xy=Gy((function(){function t(){}return!(Yy((function(){}),[],t)instanceof t)})),Uy=!Gy((function(){Yy((function(){}))}));Iy(Iy.S+Iy.F*(Xy||Uy),"Reflect",{construct:function(t,e){zy(t),$y(e);var i=arguments.length<3?t:zy(arguments[2]);if(Uy&&!Xy)return Yy(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(Wy.apply(t,n))}var r=i.prototype,o=jy(Hy(r)?r:Object.prototype),s=Function.apply.call(t,o,e);return Hy(s)?s:o}});var qy=_,Zy=ot,Ky=g,Jy=w;Zy(Zy.S+Zy.F*a((function(){Reflect.defineProperty(qy.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,i){Ky(t),e=Jy(e,!0),Ky(i);try{return qy.f(t,e,i),!0}catch(t){return!1}}});var Qy=ot,tg=$e.f,eg=g;Qy(Qy.S,"Reflect",{deleteProperty:function(t,e){var i=tg(eg(t),e);return!(i&&!i.configurable)&&delete t[e]}});var ig=ot,ng=g,rg=function(t){this._t=ng(t),this._i=0;var e,i=this._k=[];for(e in t)i.push(e)};ws(rg,"Object",(function(){var t,e=this,i=e._k;do{if(e._i>=i.length)return{value:void 0,done:!0}}while(!((t=i[e._i++])in e._t));return{value:t,done:!1}})),ig(ig.S,"Reflect",{enumerate:function(t){return new rg(t)}});var og=$e,sg=fn,ag=s,ug=d,lg=g;ot(ot.S,"Reflect",{get:function t(e,i){var n,r,o=arguments.length<3?e:arguments[2];return lg(e)===o?e[i]:(n=og.f(e,i))?ag(n,"value")?n.value:void 0!==n.get?n.get.call(o):void 0:ug(r=sg(e))?t(r,i,o):void 0}});var hg=$e,pg=g;ot(ot.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return hg.f(pg(t),e)}});var cg=fn,fg=g;ot(ot.S,"Reflect",{getPrototypeOf:function(t){return cg(fg(t))}});ot(ot.S,"Reflect",{has:function(t,e){return e in t}});var _g=ot,dg=g,yg=Object.isExtensible;_g(_g.S,"Reflect",{isExtensible:function(t){return dg(t),!yg||yg(t)}});var gg=Fe,vg=fe,mg=g,bg=r.Reflect,wg=bg&&bg.ownKeys||function(t){var e=gg.f(mg(t)),i=vg.f;return i?e.concat(i(t)):e};ot(ot.S,"Reflect",{ownKeys:wg});var xg=ot,Sg=g,Pg=Object.preventExtensions;xg(xg.S,"Reflect",{preventExtensions:function(t){Sg(t);try{return Pg&&Pg(t),!0}catch(t){return!1}}});var Vg=_,kg=$e,Ag=fn,Cg=s,Eg=C,Lg=g,Ng=d;ot(ot.S,"Reflect",{set:function t(e,i,n){var r,o,s=arguments.length<4?e:arguments[3],a=kg.f(Lg(e),i);if(!a){if(Ng(o=Ag(e)))return t(o,i,n,s);a=Eg(0)}if(Cg(a,"value")){if(!1===a.writable||!Ng(s))return!1;if(r=kg.f(s,i)){if(r.get||r.set||!1===r.writable)return!1;r.value=n,Vg.f(s,i,r)}else Vg.f(s,i,Eg(0,n));return!0}return void 0!==a.set&&(a.set.call(s,n),!0)}});var Mg=ot,Tg=In();Tg&&Mg(Mg.S,"Reflect",{setPrototypeOf:function(t,e){Tg.check(t,e);try{return Tg.set(t,e),!0}catch(t){return!1}}});var Og=ot,Rg=te(!0);Og(Og.P,"Array",{includes:function(t){return Rg(this,t,arguments.length>1?arguments[1]:void 0)}}),_l("includes");var Dg=be(),Bg=d,Fg=Yt,Ig=K,jg=Pt("isConcatSpreadable");var zg=function t(e,i,n,r,o,s,a,u){for(var l,h,p=o,c=0,f=!!a&&Ig(a,u,3);c<r;){if(c in n){if(l=f?f(n[c],c,i):n[c],h=!1,Bg(l)&&(h=void 0!==(h=l[jg])?!!h:Dg(l)),h&&s>0)p=t(e,i,l,Fg(l.length),p,s-1)-1;else{if(p>=9007199254740991)throw TypeError();e[p]=l}p++}c++}return p},$g=zg,Hg=Pe,Gg=Yt,Wg=q,Yg=Pu;ot(ot.P,"Array",{flatMap:function(t){var e,i,n=Hg(this);return Wg(t),e=Gg(n.length),i=Yg(n,0),$g(i,n,n,e,0,1,t,arguments[1]),i}}),_l("flatMap");var Xg=zg,Ug=Pe,qg=Yt,Zg=Ht,Kg=Pu;ot(ot.P,"Array",{flatten:function(){var t=arguments[0],e=Ug(this),i=qg(e.length),n=Kg(e,0);return Xg(n,e,e,i,0,void 0===t?1:Zg(t)),n}}),_l("flatten");var Jg=ot,Qg=ds(!0),tv=a((function(){return"𠮷"!=="𠮷".at(0)}));Jg(Jg.P+Jg.F*tv,"String",{at:function(t){return Qg(this,t)}});var ev=Yt,iv=to,nv=Bt,rv=function(t,e,i,n){var r=String(nv(t)),o=r.length,s=void 0===i?" ":String(i),a=ev(e);if(a<=o||""==s)return r;var u=a-o,l=iv.call(s,Math.ceil(u/s.length));return l.length>u&&(l=l.slice(0,u)),n?l+r:r+l},ov=ot,sv=rv,av=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(ec);ov(ov.P+ov.F*av,"String",{padStart:function(t){return sv(this,t,arguments.length>1?arguments[1]:void 0,!0)}});var uv=ot,lv=rv,hv=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(ec);uv(uv.P+uv.F*hv,"String",{padEnd:function(t){return lv(this,t,arguments.length>1?arguments[1]:void 0,!1)}}),_r("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart"),_r("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd");var pv=ot,cv=Bt,fv=Yt,_v=Hs,dv=Dl,yv=RegExp.prototype,gv=function(t,e){this._r=t,this._s=e};ws(gv,"RegExp String",(function(){var t=this._r.exec(this._s);return{value:t,done:null===t}})),pv(pv.P,"String",{matchAll:function(t){if(cv(this),!_v(t))throw TypeError(t+" is not a regexp!");var e=String(this),i="flags"in yv?String(t.flags):dv.call(t),n=new RegExp(t.source,~i.indexOf("g")?i:"g"+i);return n.lastIndex=fv(t.lastIndex),new gv(n,e)}}),Tt("asyncIterator"),Tt("observable");var vv=wg,mv=jt,bv=$e,wv=za;ot(ot.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,i,n=mv(t),r=bv.f,o=vv(n),s={},a=0;o.length>a;)void 0!==(i=r(n,e=o[a++]))&&wv(s,e,i);return s}});var xv=u,Sv=ce,Pv=jt,Vv=_e.f,kv=function(t){return function(e){for(var i,n=Pv(e),r=Sv(n),o=r.length,s=0,a=[];o>s;)i=r[s++],xv&&!Vv.call(n,i)||a.push(t?[i,n[i]]:n[i]);return a}},Av=ot,Cv=kv(!1);Av(Av.S,"Object",{values:function(t){return Cv(t)}});var Ev,Lv,Nv=ot,Mv=kv(!0);function Tv(){return Lv?Ev:(Lv=1,Ev=!a((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete r[t]})))}Nv(Nv.S,"Object",{entries:function(t){return Mv(t)}});var Ov=Pe,Rv=q,Dv=_;u&&ot(ot.P+Tv(),"Object",{__defineGetter__:function(t,e){Dv.f(Ov(this),t,{get:Rv(e),enumerable:!0,configurable:!0})}});var Bv=Pe,Fv=q,Iv=_;u&&ot(ot.P+Tv(),"Object",{__defineSetter__:function(t,e){Iv.f(Bv(this),t,{set:Fv(e),enumerable:!0,configurable:!0})}});var jv=ot,zv=Pe,$v=w,Hv=fn,Gv=$e.f;u&&jv(jv.P+Tv(),"Object",{__lookupGetter__:function(t){var e,i=zv(this),n=$v(t,!0);do{if(e=Gv(i,n))return e.get}while(i=Hv(i))}});var Wv=ot,Yv=Pe,Xv=w,Uv=fn,qv=$e.f;u&&Wv(Wv.P+Tv(),"Object",{__lookupSetter__:function(t){var e,i=Yv(this),n=Xv(t,!0);do{if(e=qv(i,n))return e.set}while(i=Uv(i))}});var Zv,Kv,Jv=Pp,Qv=function(t,e){var i=[];return Jv(t,!1,i.push,i,e),i};function tm(){if(Kv)return Zv;Kv=1;var t=Hn,e=Qv;return Zv=function(i){return function(){if(t(this)!=i)throw TypeError(i+"#toJSON isn't generic");return e(this)}},Zv}var em=ot;em(em.P+em.R,"Map",{toJSON:tm()("Map")});var im=ot;im(im.P+im.R,"Set",{toJSON:tm()("Set")});var nm=ot,rm=function(t){nm(nm.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})};rm("Map"),rm("Set"),rm("WeakMap"),rm("WeakSet");var om=ot,sm=q,am=K,um=Pp,lm=function(t){om(om.S,t,{from:function(t){var e,i,n,r,o=arguments[1];return sm(this),(e=void 0!==o)&&sm(o),null==t?new this:(i=[],e?(n=0,r=am(o,arguments[2],2),um(t,!1,(function(t){i.push(r(t,n++))}))):um(t,!1,i.push,i),new this(i))}})};lm("Map"),lm("Set"),lm("WeakMap"),lm("WeakSet");ot(ot.G,{global:r});ot(ot.S,"System",{global:r});var hm=Rt;ot(ot.S,"Error",{isError:function(t){return"Error"===hm(t)}});ot(ot.S,"Math",{clamp:function(t,e,i){return Math.min(i,Math.max(e,t))}});ot(ot.S,"Math",{DEG_PER_RAD:Math.PI/180});var pm=ot,cm=180/Math.PI;pm(pm.S,"Math",{degrees:function(t){return t*cm}});var fm=Math.scale||function(t,e,i,n,r){return 0===arguments.length||t!=t||e!=e||i!=i||n!=n||r!=r?NaN:t===1/0||t===-1/0?t:(t-e)*(r-n)/(i-e)+n},_m=ot,dm=fm,ym=Zo();_m(_m.S,"Math",{fscale:function(t,e,i,n,r){return ym(dm(t,e,i,n,r))}});ot(ot.S,"Math",{iaddh:function(t,e,i,n){var r=t>>>0,o=i>>>0;return(e>>>0)+(n>>>0)+((r&o|(r|o)&~(r+o>>>0))>>>31)|0}});ot(ot.S,"Math",{isubh:function(t,e,i,n){var r=t>>>0,o=i>>>0;return(e>>>0)-(n>>>0)-((~r&o|(r^~o)&r-o>>>0)>>>31)|0}});ot(ot.S,"Math",{imulh:function(t,e){var i=65535,n=+t,r=+e,o=n&i,s=r&i,a=n>>16,u=r>>16,l=(a*s>>>0)+(o*s>>>16);return a*u+(l>>16)+((o*u>>>0)+(l&i)>>16)}});ot(ot.S,"Math",{RAD_PER_DEG:180/Math.PI});var gm=ot,vm=Math.PI/180;gm(gm.S,"Math",{radians:function(t){return t*vm}});ot(ot.S,"Math",{scale:fm});ot(ot.S,"Math",{umulh:function(t,e){var i=65535,n=+t,r=+e,o=n&i,s=r&i,a=n>>>16,u=r>>>16,l=(a*s>>>0)+(o*s>>>16);return a*u+(l>>>16)+((o*u>>>0)+(l&i)>>>16)}});ot(ot.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}});var mm=ot,bm=f,wm=r,xm=Uh,Sm=oc;mm(mm.P+mm.R,"Promise",{finally:function(t){var e=xm(this,bm.Promise||wm.Promise),i="function"==typeof t;return this.then(i?function(i){return Sm(e,t()).then((function(){return i}))}:t,i?function(i){return Sm(e,t()).then((function(){throw i}))}:t)}});var Pm=Up,Vm=Qp;ot(ot.S,"Promise",{try:function(t){var e=Pm.f(this),i=Vm(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}});var km=Sf,Am=ot,Cm=I("metadata"),Em=Cm.store||(Cm.store=new u_),Lm=function(t,e,i){var n=Em.get(t);if(!n){if(!i)return;Em.set(t,n=new km)}var r=n.get(e);if(!r){if(!i)return;n.set(e,r=new km)}return r},Nm={store:Em,map:Lm,has:function(t,e,i){var n=Lm(e,i,!1);return void 0!==n&&n.has(t)},get:function(t,e,i){var n=Lm(e,i,!1);return void 0===n?void 0:n.get(t)},set:function(t,e,i,n){Lm(i,n,!0).set(t,e)},keys:function(t,e){var i=Lm(t,e,!1),n=[];return i&&i.forEach((function(t,e){n.push(e)})),n},key:function(t){return void 0===t||"symbol"==typeof t?t:String(t)},exp:function(t){Am(Am.S,"Reflect",t)}},Mm=Nm,Tm=g,Om=Mm.key,Rm=Mm.set;Mm.exp({defineMetadata:function(t,e,i,n){Rm(t,e,Tm(i),Om(n))}});var Dm=Nm,Bm=g,Fm=Dm.key,Im=Dm.map,jm=Dm.store;Dm.exp({deleteMetadata:function(t,e){var i=arguments.length<3?void 0:Fm(arguments[2]),n=Im(Bm(e),i,!1);if(void 0===n||!n.delete(t))return!1;if(n.size)return!0;var r=jm.get(e);return r.delete(i),!!r.size||jm.delete(e)}});var zm=Nm,$m=g,Hm=fn,Gm=zm.has,Wm=zm.get,Ym=zm.key,Xm=function(t,e,i){if(Gm(t,e,i))return Wm(t,e,i);var n=Hm(e);return null!==n?Xm(t,n,i):void 0};zm.exp({getMetadata:function(t,e){return Xm(t,$m(e),arguments.length<3?void 0:Ym(arguments[2]))}});var Um=kf,qm=Qv,Zm=Nm,Km=g,Jm=fn,Qm=Zm.keys,tb=Zm.key,eb=function(t,e){var i=Qm(t,e),n=Jm(t);if(null===n)return i;var r=eb(n,e);return r.length?i.length?qm(new Um(i.concat(r))):r:i};Zm.exp({getMetadataKeys:function(t){return eb(Km(t),arguments.length<2?void 0:tb(arguments[1]))}});var ib=Nm,nb=g,rb=ib.get,ob=ib.key;ib.exp({getOwnMetadata:function(t,e){return rb(t,nb(e),arguments.length<3?void 0:ob(arguments[2]))}});var sb=Nm,ab=g,ub=sb.keys,lb=sb.key;sb.exp({getOwnMetadataKeys:function(t){return ub(ab(t),arguments.length<2?void 0:lb(arguments[1]))}});var hb=Nm,pb=g,cb=fn,fb=hb.has,_b=hb.key,db=function(t,e,i){if(fb(t,e,i))return!0;var n=cb(e);return null!==n&&db(t,n,i)};hb.exp({hasMetadata:function(t,e){return db(t,pb(e),arguments.length<3?void 0:_b(arguments[2]))}});var yb=Nm,gb=g,vb=yb.has,mb=yb.key;yb.exp({hasOwnMetadata:function(t,e){return vb(t,gb(e),arguments.length<3?void 0:mb(arguments[2]))}});var bb=Nm,wb=g,xb=q,Sb=bb.key,Pb=bb.set;bb.exp({metadata:function(t,e){return function(i,n){Pb(t,e,(void 0!==n?wb:xb)(i),Sb(n))}}});var Vb=ot,kb=Xp(),Ab=r.process,Cb="process"==Rt(Ab);Vb(Vb.G,{asap:function(t){var e=Cb&&Ab.domain;kb(e?e.bind(t):t)}});var Eb=ot,Lb=r,Nb=f,Mb=Xp(),Tb=Pt("observable"),Ob=q,Rb=g,Db=hp,Bb=sc(),Fb=E(),Ib=Pp,jb=Ib.RETURN,zb=function(t){return null==t?void 0:Ob(t)},$b=function(t){var e=t._c;e&&(t._c=void 0,e())},Hb=function(t){return void 0===t._o},Gb=function(t){Hb(t)||(t._o=void 0,$b(t))},Wb=function(t,e){Rb(t),this._c=void 0,this._o=t,t=new Yb(this);try{var i=e(t),n=i;null!=i&&("function"==typeof i.unsubscribe?i=function(){n.unsubscribe()}:Ob(i),this._c=i)}catch(e){return void t.error(e)}Hb(this)&&$b(this)};Wb.prototype=Bb({},{unsubscribe:function(){Gb(this)}});var Yb=function(t){this._s=t};Yb.prototype=Bb({},{next:function(t){var e=this._s;if(!Hb(e)){var i=e._o;try{var n=zb(i.next);if(n)return n.call(i,t)}catch(t){try{Gb(e)}finally{throw t}}}},error:function(t){var e=this._s;if(Hb(e))throw t;var i=e._o;e._o=void 0;try{var n=zb(i.error);if(!n)throw t;t=n.call(i,t)}catch(t){try{$b(e)}finally{throw t}}return $b(e),t},complete:function(t){var e=this._s;if(!Hb(e)){var i=e._o;e._o=void 0;try{var n=zb(i.complete);t=n?n.call(i,t):void 0}catch(t){try{$b(e)}finally{throw t}}return $b(e),t}}});var Xb=function(t){Db(this,Xb,"Observable","_f")._f=Ob(t)};Bb(Xb.prototype,{subscribe:function(t){return new Wb(t,this._f)},forEach:function(t){var e=this;return new(Nb.Promise||Lb.Promise)((function(i,n){Ob(t);var r=e.subscribe({next:function(e){try{return t(e)}catch(t){n(t),r.unsubscribe()}},error:n,complete:i})}))}}),Bb(Xb,{from:function(t){var e="function"==typeof this?this:Xb,i=zb(Rb(t)[Tb]);if(i){var n=Rb(i.call(t));return n.constructor===e?n:new e((function(t){return n.subscribe(t)}))}return new e((function(e){var i=!1;return Mb((function(){if(!i){try{if(Ib(t,!1,(function(t){if(e.next(t),i)return jb}))===jb)return}catch(t){if(i)throw t;return void e.error(t)}e.complete()}})),function(){i=!0}}))},of:function(){for(var t=0,e=arguments.length,i=new Array(e);t<e;)i[t]=arguments[t++];return new("function"==typeof this?this:Xb)((function(t){var e=!1;return Mb((function(){if(!e){for(var n=0;n<i.length;++n)if(t.next(i[n]),e)return;t.complete()}})),function(){e=!0}}))}}),Fb(Xb.prototype,Tb,(function(){return this})),Eb(Eb.G,{Observable:Xb}),Cl("Observable");var Ub=r,qb=ot,Zb=[].slice,Kb=/MSIE .\./.test(ec),Jb=function(t){return function(e,i){var n=arguments.length>2,r=!!n&&Zb.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,i)}};qb(qb.G+qb.B+qb.F*Kb,{setTimeout:Jb(Ub.setTimeout),setInterval:Jb(Ub.setInterval)});var Qb=ot,tw=jp;Qb(Qb.G+Qb.B,{setImmediate:tw.set,clearImmediate:tw.clear});for(var ew=Ol,iw=ce,nw=U,rw=r,ow=E(),sw=ys,aw=Pt,uw=aw("iterator"),lw=aw("toStringTag"),hw=sw.Array,pw={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},cw=iw(pw),fw=0;fw<cw.length;fw++){var _w,dw=cw[fw],yw=pw[dw],gw=rw[dw],vw=gw&&gw.prototype;if(vw&&(vw[uw]||ow(vw,uw,hw),vw[lw]||ow(vw,lw,dw),sw[dw]=hw,yw))for(_w in ew)vw[_w]||nw(vw,_w,ew[_w],!0)}var mw=ce,bw=jt,ww=Hn,xw=Pt("iterator"),Sw=ys,Pw=f.isIterable=function(t){var e=Object(t);return void 0!==e[xw]||"@@iterator"in e||Sw.hasOwnProperty(ww(e))},Vw=K,kw=ot,Aw=C,Cw=On,Ew=De,Lw=fn,Nw=ce,Mw=_,Tw=function(t,e){for(var i,n=bw(t),r=mw(n),o=r.length,s=0;o>s;)if(n[i=r[s++]]===e)return i},Ow=q,Rw=Pp,Dw=Pw,Bw=ws,Fw=El,Iw=d,jw=jt,zw=u,$w=s,Hw=function(t){var e=1==t,i=4==t;return function(n,r,o){var s,a,u,l=Vw(r,o,3),h=jw(n),p=e||7==t||2==t?new("function"==typeof this?this:Xw):void 0;for(s in h)if($w(h,s)&&(u=l(a=h[s],s,n),t))if(e)p[s]=u;else if(u)switch(t){case 2:p[s]=a;break;case 3:return!0;case 5:return a;case 6:return s;case 7:p[u[0]]=u[1]}else if(i)return!1;return 3==t||i?i:p}},Gw=Hw(6),Ww=function(t){return function(e){return new Yw(e,t)}},Yw=function(t,e){this._t=jw(t),this._a=Nw(t),this._i=0,this._k=e};function Xw(t){var e=Ew(null);return null!=t&&(Dw(t)?Rw(t,!0,(function(t,i){e[t]=i})):Cw(e,t)),e}Bw(Yw,"Dict",(function(){var t,e=this,i=e._t,n=e._a,r=e._k;do{if(e._i>=n.length)return e._t=void 0,Fw(1)}while(!$w(i,t=n[e._i++]));return Fw(0,"keys"==r?t:"values"==r?i[t]:[t,i[t]])})),Xw.prototype=null,kw(kw.G+kw.F,{Dict:Xw}),kw(kw.S,"Dict",{keys:Ww("keys"),values:Ww("values"),entries:Ww("entries"),forEach:Hw(0),map:Hw(1),filter:Hw(2),some:Hw(3),every:Hw(4),find:Hw(5),findKey:Gw,mapPairs:Hw(7),reduce:function(t,e,i){Ow(e);var n,r,o=jw(t),s=Nw(o),a=s.length,u=0;if(arguments.length<3){if(!a)throw TypeError("Reduce of empty object with no initial value");n=o[s[u++]]}else n=Object(i);for(;a>u;)$w(o,r=s[u++])&&(n=e(n,o[r],r,t));return n},keyOf:Tw,includes:function(t,e){return void 0!==(e==e?Tw(t,e):Gw(t,(function(t){return t!=t})))},has:$w,get:function(t,e){if($w(t,e))return t[e]},set:function(t,e,i){return zw&&e in Object?Mw.f(t,e,Aw(0,i)):t[e]=i,t},isDict:function(t){return Iw(t)&&Lw(t)===Xw.prototype}});var Uw=g,qw=Wa;f.getIterator=function(t){var e=qw(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return Uw(e.call(t))};var Zw=r,Kw=Zw,Jw=Un,Qw=q,tx=function(){for(var t=Qw(this),e=arguments.length,i=new Array(e),n=0,r=Kw._,o=!1;e>n;)(i[n]=arguments[n++])===r&&(o=!0);return function(){var n,s=arguments.length,a=0,u=0;if(!o&&!s)return Jw(t,i,this);if(n=i.slice(),o)for(;e>a;a++)n[a]===r&&(n[a]=arguments[u++]);for(;s>u;)n.push(arguments[u++]);return Jw(t,n,this)}},ex=r,ix=f,nx=ot,rx=tx;nx(nx.G+nx.F,{delay:function(t){return new(ix.Promise||ex.Promise)((function(e){setTimeout(rx.call(e,!0),t)}))}});var ox=Zw,sx=ot;f._=ox._=ox._||{},sx(sx.P+sx.F,"Function",{part:tx});var ax=ot;ax(ax.S+ax.F,"Object",{isObject:d});var ux=ot;ux(ux.S+ux.F,"Object",{classof:Hn});var lx=_,hx=$e,px=wg,cx=jt,fx=function(t,e){for(var i,n=px(cx(e)),r=n.length,o=0;r>o;)lx.f(t,i=n[o++],hx.f(e,i));return t},_x=ot,dx=fx;_x(_x.S+_x.F,"Object",{define:dx});var yx=ot,gx=fx,vx=De;yx(yx.S+yx.F,"Object",{make:function(t,e){return gx(vx(t),e)}}),Os(Number,"Number",(function(t){this._l=+t,this._i=0}),(function(){var t=this._i++,e=!(t<this._l);return{done:e,value:e?void 0:t}}));var mx=function(t,e){var i=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,i)}},bx=ot,wx=mx(/[\\^$*+?.()|[\]{}]/g,"\\$&");bx(bx.S,"RegExp",{escape:function(t){return wx(t)}});var xx=ot,Sx=mx(/[&<>"']/g,{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"});xx(xx.P+xx.F,"String",{escapeHTML:function(){return Sx(this)}});var Px,Vx,kx,Ax=ot,Cx=mx(/&(?:amp|lt|gt|quot|apos);/g,{"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'"});Ax(Ax.P+Ax.F,"String",{unescapeHTML:function(){return Cx(this)}}),function(){function t(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1}if("HTMLElement"in self&&"contains"in HTMLElement.prototype)try{delete HTMLElement.prototype.contains}catch(t){}"Node"in self?Node.prototype.contains=t:document.contains=Element.prototype.contains=t}(),function(t,e){Document.prototype.remove=Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)},"Text"in t&&(Text.prototype.remove=Element.prototype.remove)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof e&&e||{}),Px=function(){function t(t){return"function"==typeof Node?t instanceof Node:t&&"object"==typeof t&&t.nodeName&&t.nodeType>=1&&t.nodeType<=12}return function(e){if(1===e.length)return t(e[0])?e[0]:document.createTextNode(e[0]+"");for(var i=document.createDocumentFragment(),n=0;n<e.length;n++)i.appendChild(t(e[n])?e[n]:document.createTextNode(e[n]+""));return i}}(),Document.prototype.append=Element.prototype.append=function(){this.appendChild(Px(arguments))},function(t,e){var i,n=function(){var t=!0,i=function(e,i,n,r){Object.defineProperty?Object.defineProperty(e,i,{configurable:!1===t||!!r,get:n}):e.__defineGetter__(i,n)};try{i({},"support")}catch(e){t=!1}return function(t,n){var r=this,o=[],s={},a=0,u=0,l=function(t){i(r,t,(function(){return p(),o[t]}),!1)},h=function(){if(a>=u)for(;u<a;++u)l(u)},p=function(){var e,i,r=arguments,u=/\s+/;if(r.length)for(i=0;i<r.length;++i)if(u.test(r[i]))throw(e=new SyntaxError('String "'+r[i]+'" contains an invalid character')).code=5,e.name="InvalidCharacterError",e;for(""===(o="object"==typeof t[n]?(""+t[n].baseVal).replace(/^\s+|\s+$/g,"").split(u):(""+t[n]).replace(/^\s+|\s+$/g,"").split(u))[0]&&(o=[]),s={},i=0;i<o.length;++i)s[o[i]]=!0;a=o.length,h()};return p(),i(r,"length",(function(){return p(),a})),r.toLocaleString=r.toString=function(){return p(),o.join(" ")},r.item=function(t){return p(),o[t]},r.contains=function(t){return p(),!!s[t]},r.add=function(){p.apply(r,e=arguments);for(var e,i,u=0,l=e.length;u<l;++u)s[i=e[u]]||(o.push(i),s[i]=!0);a!==o.length&&(a=o.length>>>0,"object"==typeof t[n]?t[n].baseVal=o.join(" "):t[n]=o.join(" "),h())},r.remove=function(){p.apply(r,e=arguments);for(var e,i={},u=0,l=[];u<e.length;++u)i[e[u]]=!0,delete s[e[u]];for(u=0;u<o.length;++u)i[o[u]]||l.push(o[u]);o=l,a=l.length>>>0,"object"==typeof t[n]?t[n].baseVal=o.join(" "):t[n]=o.join(" "),h()},r.toggle=function(t,i){return p.apply(r,[t]),e!==i?i?(r.add(t),!0):(r.remove(t),!1):s[t]?(r.remove(t),!1):(r.add(t),!0)},r.forEach=Array.prototype.forEach,r}}();"DOMTokenList"in(i=t)&&i.DOMTokenList&&(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg")||document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList)||(i.DOMTokenList=n),function(){var t=document.createElement("span");"classList"in t&&(t.classList.toggle("x",!1),t.classList.contains("x")&&(t.classList.constructor.prototype.toggle=function(t){var i=arguments[1];if(i===e){var n=!this.contains(t);return this[n?"add":"remove"](t),n}return i=!!i,this[i?"add":"remove"](t),i}))}(),function(){var t=document.createElement("span");if("classList"in t&&(t.classList.add("a","b"),!t.classList.contains("b"))){var e=t.classList.constructor.prototype.add;t.classList.constructor.prototype.add=function(){for(var t=arguments,i=arguments.length,n=0;n<i;n++)e.call(this,t[n])}}}(),function(){var t=document.createElement("span");if("classList"in t&&(t.classList.add("a"),t.classList.add("b"),t.classList.remove("a","b"),t.classList.contains("b"))){var e=t.classList.constructor.prototype.remove;t.classList.constructor.prototype.remove=function(){for(var t=arguments,i=arguments.length,n=0;n<i;n++)e.call(this,t[n])}}}(),function(t){var e=!0,i=function(t,i,n,r){Object.defineProperty?Object.defineProperty(t,i,{configurable:!1===e||!!r,get:n}):t.__defineGetter__(i,n)};try{i({},"support")}catch(t){e=!1}var r=function(t,o,s){i(t.prototype,o,(function(){var t,a=this,u="__defineGetter__DEFINE_PROPERTY"+o;if(a[u])return t;if(a[u]=!0,!1===e){for(var l,h=r.mirror||document.createElement("div"),p=h.childNodes,c=p.length,f=0;f<c;++f)if(p[f]._R===a){l=p[f];break}l||(l=h.appendChild(document.createElement("div"))),t=DOMTokenList.call(l,a,s)}else t=new n(a,s);return i(a,o,(function(){return t})),delete a[u],t}),!0)};r(t.Element,"classList","className"),r(t.HTMLElement,"classList","className"),r(t.HTMLLinkElement,"relList","rel"),r(t.HTMLAnchorElement,"relList","rel"),r(t.HTMLAreaElement,"relList","rel")}(t)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof e&&e||{}),kx={},function(t,e){function i(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=c}function n(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function r(e,n,r){var o=new i;return n&&(o.fill="both",o.duration="auto"),"number"!=typeof e||isNaN(e)?void 0!==e&&Object.getOwnPropertyNames(e).forEach((function(i){if("auto"!=e[i]){if(("number"==typeof o[i]||"duration"==i)&&("number"!=typeof e[i]||isNaN(e[i])))return;if("fill"==i&&-1==h.indexOf(e[i]))return;if("direction"==i&&-1==p.indexOf(e[i]))return;if("playbackRate"==i&&1!==e[i]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[i]=e[i]}})):o.duration=e,o}function o(t,e,i,n){return t<0||t>1||i<0||i>1?c:function(r){function o(t,e,i){return 3*t*(1-i)*(1-i)*i+3*e*(1-i)*i*i+i*i*i}if(r<=0){var s=0;return t>0?s=e/t:!e&&i>0&&(s=n/i),s*r}if(r>=1){var a=0;return i<1?a=(n-1)/(i-1):1==i&&t<1&&(a=(e-1)/(t-1)),1+a*(r-1)}for(var u=0,l=1;u<l;){var h=(u+l)/2,p=o(t,i,h);if(Math.abs(r-p)<1e-5)return o(e,n,h);p<r?u=h:l=h}return o(e,n,h)}}function s(t,e){return function(i){if(i>=1)return 1;var n=1/t;return(i+=e*n)-i%n}}function a(t){g||(g=document.createElement("div").style),g.animationTimingFunction="",g.animationTimingFunction=t;var e=g.animationTimingFunction;if(""==e&&n())throw new TypeError(t+" is not a valid value for easing");return e}function u(t){if("linear"==t)return c;var e=m.exec(t);if(e)return o.apply(this,e.slice(1).map(Number));var i=b.exec(t);if(i)return s(Number(i[1]),d);var n=w.exec(t);return n?s(Number(n[1]),{start:f,middle:_,end:d}[n[2]]):y[t]||c}function l(t,e,i){if(null==e)return x;var n=i.delay+t+i.endDelay;return e<Math.min(i.delay,n)?S:e>=Math.min(i.delay+t,n)?P:V}var h="backwards|forwards|both|none".split("|"),p="reverse|alternate|alternate-reverse".split("|"),c=function(t){return t};i.prototype={_setMember:function(e,i){this["_"+e]=i,this._effect&&(this._effect._timingInput[e]=i,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&n())throw new TypeError("iterationStart must be a non-negative number, received: "+t);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&n())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=u(a(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&n())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var f=1,_=.5,d=0,y={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":s(1,f),"step-middle":s(1,_),"step-end":s(1,d)},g=null,v="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",m=new RegExp("cubic-bezier\\("+v+","+v+","+v+","+v+"\\)"),b=/steps\(\s*(\d+)\s*\)/,w=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,x=0,S=1,P=2,V=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var i in t)e[i]=t[i];return e},t.makeTiming=r,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,i){return r(e=t.numericTimingToObject(e),i)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,i){var n=l(t,e,i),r=function(t,e,i,n,r){switch(n){case S:return"backwards"==e||"both"==e?0:null;case V:return i-r;case P:return"forwards"==e||"both"==e?t:null;case x:return null}}(t,i.fill,e,n,i.delay);if(null===r)return null;var o=function(t,e,i,n,r){var o=r;return 0===t?e!==S&&(o+=i):o+=n/t,o}(i.duration,n,i.iterations,r,i.iterationStart),s=function(t,e,i,n,r,o){var s=t===1/0?e%1:t%1;return 0!==s||i!==P||0===n||0===r&&0!==o||(s=1),s}(o,i.iterationStart,n,i.iterations,r,i.duration),a=function(t,e,i,n){return t===P&&e===1/0?1/0:1===i?Math.floor(n)-1:Math.floor(n)}(n,i.iterations,s,o),u=function(t,e,i){var n=t;if("normal"!==t&&"reverse"!==t){var r=e;"alternate-reverse"===t&&(r+=1),n="normal",r!==1/0&&r%2!=0&&(n="reverse")}return"normal"===n?i:1-i}(i.direction,a,s);return i._easingFunction(u)},t.calculatePhase=l,t.normalizeEasing=a,t.parseEasingFunction=u}(Vx={}),function(t,e){function i(t,e){return t in u&&u[t][e]||e}function n(t,e,n){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var r=o[t];if(r)for(var a in s.style[t]=e,r){var u=r[a],l=s.style[u];n[u]=i(u,l)}else n[t]=i(t,e)}}function r(t){var e=[];for(var i in t)if(!(i in["easing","offset","composite"])){var n=t[i];Array.isArray(n)||(n=[n]);for(var r,o=n.length,s=0;s<o;s++)(r={}).offset="offset"in t?t.offset:1==o?1:s/(o-1),"easing"in t&&(r.easing=t.easing),"composite"in t&&(r.composite=t.composite),r[i]=n[s],e.push(r)}return e.sort((function(t,e){return t.offset-e.offset})),e}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},s=document.createElementNS("http://www.w3.org/1999/xhtml","div"),a={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:a,borderLeftWidth:a,borderRightWidth:a,borderTopWidth:a,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:a,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};t.convertToArrayForm=r,t.normalizeKeyframes=function(e){if(null==e)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||(e=r(e));for(var i=e.map((function(e){var i={};for(var r in e){var o=e[r];if("offset"==r){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==r){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==r?t.normalizeEasing(o):""+o;n(r,o,i)}return null==i.offset&&(i.offset=null),null==i.easing&&(i.easing="linear"),i})),o=!0,s=-1/0,a=0;a<i.length;a++){var u=i[a].offset;if(null!=u){if(u<s)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");s=u}else o=!1}return i=i.filter((function(t){return t.offset>=0&&t.offset<=1})),o||function(){var t=i.length;null==i[t-1].offset&&(i[t-1].offset=1),t>1&&null==i[0].offset&&(i[0].offset=0);for(var e=0,n=i[0].offset,r=1;r<t;r++){var o=i[r].offset;if(null!=o){for(var s=1;s<r-e;s++)i[e+s].offset=n+(o-n)*s/(r-e);e=r,n=o}}}(),i}}(Vx),function(t){var e={};t.isDeprecated=function(t,i,n,r){var o=r?"are":"is",s=new Date,a=new Date(i);return a.setMonth(a.getMonth()+3),!(s<a&&(t in e||console.warn("Web Animations: "+t+" "+o+" deprecated and will stop working on "+a.toDateString()+". "+n),e[t]=!0,1))},t.deprecated=function(e,i,n,r){var o=r?"are":"is";if(t.isDeprecated(e,i,n,r))throw new Error(e+" "+o+" no longer supported. "+n)}}(Vx),function(){if(document.documentElement.animate){var t=document.documentElement.animate([],0),e=!0;if(t&&(e=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(i){void 0===t[i]&&(e=!0)}))),!e)return}!function(t,e,i){e.convertEffectInput=function(i){var n=function(t){for(var e={},i=0;i<t.length;i++)for(var n in t[i])if("offset"!=n&&"easing"!=n&&"composite"!=n){var r={offset:t[i].offset,easing:t[i].easing,value:t[i][n]};e[n]=e[n]||[],e[n].push(r)}for(var o in e){var s=e[o];if(0!=s[0].offset||1!=s[s.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return e}(t.normalizeKeyframes(i)),r=function(i){var n=[];for(var r in i)for(var o=i[r],s=0;s<o.length-1;s++){var a=s,u=s+1,l=o[a].offset,h=o[u].offset,p=l,c=h;0==s&&(p=-1/0,0==h&&(u=a)),s==o.length-2&&(c=1/0,1==l&&(a=u)),n.push({applyFrom:p,applyTo:c,startOffset:o[a].offset,endOffset:o[u].offset,easingFunction:t.parseEasingFunction(o[a].easing),property:r,interpolation:e.propertyInterpolation(r,o[a].value,o[u].value)})}return n.sort((function(t,e){return t.startOffset-e.startOffset})),n}(n);return function(t,i){if(null!=i)r.filter((function(t){return i>=t.applyFrom&&i<t.applyTo})).forEach((function(n){var r=i-n.startOffset,o=n.endOffset-n.startOffset,s=0==o?0:n.easingFunction(r/o);e.apply(t,n.property,n.interpolation(s))}));else for(var o in n)"offset"!=o&&"easing"!=o&&"composite"!=o&&e.clear(t,o)}}}(Vx,kx),function(t,e,i){function n(t){return t.replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function r(t,e,i){o[i]=o[i]||[],o[i].push([t,e])}var o={};e.addPropertiesHandler=function(t,e,i){for(var o=0;o<i.length;o++)r(t,e,n(i[o]))};var s={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};e.propertyInterpolation=function(i,r,a){var u=i;/-/.test(i)&&!t.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=n(i)),"initial"!=r&&"initial"!=a||("initial"==r&&(r=s[u]),"initial"==a&&(a=s[u]));for(var l=r==a?[]:o[u],h=0;l&&h<l.length;h++){var p=l[h][0](r),c=l[h][0](a);if(void 0!==p&&void 0!==c){var f=l[h][1](p,c);if(f){var _=e.Interpolation.apply(null,f);return function(t){return 0==t?r:1==t?a:_(t)}}}}return e.Interpolation(!1,!0,(function(t){return t?a:r}))}}(Vx,kx),function(t,e,i){e.KeyframeEffect=function(i,n,r,o){var s,a=function(e){var i=t.calculateActiveDuration(e),n=function(n){return t.calculateIterationProgress(i,n,e)};return n._totalDuration=e.delay+i+e.endDelay,n}(t.normalizeTimingInput(r)),u=e.convertEffectInput(n),l=function(){u(i,s)};return l._update=function(t){return null!==(s=a(t))},l._clear=function(){u(i,null)},l._hasSameTarget=function(t){return i===t},l._target=i,l._totalDuration=a._totalDuration,l._id=o,l}}(Vx,kx),function(t,e){function i(t,e,i){i.enumerable=!0,i.configurable=!0,Object.defineProperty(t,e,i)}function n(t){this._element=t,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=t.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(t,e){return!(!e.namespaceURI||-1==e.namespaceURI.indexOf("/svg"))&&(o in t||(t[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(t.navigator.userAgent)),t[o])}(window,t),this._savedTransformAttr=null;for(var e=0;e<this._style.length;e++){var i=this._style[e];this._surrogateStyle[i]=this._style[i]}this._updateIndices()}function r(t){if(!t._webAnimationsPatchedStyle){var e=new n(t);try{i(t,"style",{get:function(){return e}})}catch(e){t.style._set=function(e,i){t.style[e]=i},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}}var o="_webAnimationsUpdateSvgTransformAttr",s={cssText:1,length:1,parentRule:1},a={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in n.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(t){for(var e={},i=0;i<this._surrogateStyle.length;i++)e[this._surrogateStyle[i]]=!0;for(this._surrogateStyle.cssText=t,this._updateIndices(),i=0;i<this._surrogateStyle.length;i++)e[this._surrogateStyle[i]]=!0;for(var n in e)this._isAnimatedProperty[n]||this._style.setProperty(n,this._surrogateStyle.getPropertyValue(n))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(t){return function(){return this._surrogateStyle[t]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,i){this._style[e]=i,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(i)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},a)n.prototype[l]=function(t,e){return function(){var i=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),i}}(l,l in u);for(var h in document.documentElement.style)h in s||h in a||function(t){i(n.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(h);t.apply=function(e,i,n){r(e),e.style._set(t.propertyName(i),n)},t.clear=function(e,i){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(i))}}(kx),function(t){window.Element.prototype.animate=function(e,i){var n="";return i&&i.id&&(n=i.id),t.timeline._play(t.KeyframeEffect(this,e,i,n))}}(kx),function(t,e){function i(t,e,n){if("number"==typeof t&&"number"==typeof e)return t*(1-n)+e*n;if("boolean"==typeof t&&"boolean"==typeof e)return n<.5?t:e;if(t.length==e.length){for(var r=[],o=0;o<t.length;o++)r.push(i(t[o],e[o],n));return r}throw"Mismatched interpolation arguments "+t+":"+e}t.Interpolation=function(t,e,n){return function(r){return n(i(t,e,r))}}}(kx),function(t,e){var i=function(){function t(t,e){for(var i=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],n=0;n<4;n++)for(var r=0;r<4;r++)for(var o=0;o<4;o++)i[n][r]+=e[n][o]*t[o][r];return i}return function(e,i,n,r,o){for(var s=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],a=0;a<4;a++)s[a][3]=o[a];for(a=0;a<3;a++)for(var u=0;u<3;u++)s[3][a]+=e[u]*s[u][a];var l=r[0],h=r[1],p=r[2],c=r[3],f=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];f[0][0]=1-2*(h*h+p*p),f[0][1]=2*(l*h-p*c),f[0][2]=2*(l*p+h*c),f[1][0]=2*(l*h+p*c),f[1][1]=1-2*(l*l+p*p),f[1][2]=2*(h*p-l*c),f[2][0]=2*(l*p-h*c),f[2][1]=2*(h*p+l*c),f[2][2]=1-2*(l*l+h*h),s=t(s,f);var _=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(n[2]&&(_[2][1]=n[2],s=t(s,_)),n[1]&&(_[2][1]=0,_[2][0]=n[0],s=t(s,_)),n[0]&&(_[2][0]=0,_[1][0]=n[0],s=t(s,_)),a=0;a<3;a++)for(u=0;u<3;u++)s[a][u]*=i[a];return function(t){return 0==t[0][2]&&0==t[0][3]&&0==t[1][2]&&0==t[1][3]&&0==t[2][0]&&0==t[2][1]&&1==t[2][2]&&0==t[2][3]&&0==t[3][2]&&1==t[3][3]}(s)?[s[0][0],s[0][1],s[1][0],s[1][1],s[3][0],s[3][1]]:s[0].concat(s[1],s[2],s[3])}}();t.composeMatrix=i,t.quat=function(e,i,n){var r=t.dot(e,i);r=function(t,e,i){return Math.max(Math.min(t,i),e)}(r,-1,1);var o=[];if(1===r)o=e;else for(var s=Math.acos(r),a=1*Math.sin(n*s)/Math.sqrt(1-r*r),u=0;u<4;u++)o.push(e[u]*(Math.cos(n*s)-r*a)+i[u]*a);return o}}(kx),function(t,e,i){t.sequenceNumber=0;var n=function(t,e,i){this.target=t,this.currentTime=e,this.timelineTime=i,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};e.Animation=function(e){this.id="",e&&e._id&&(this.id=e._id),this._sequenceNumber=t.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=e,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},e.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,e.timeline._animations.push(this))},_tickCurrentTime:function(t,e){t!=this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var i=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=i&&(this.currentTime=i)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var i=this._finishHandlers.indexOf(e);i>=0&&this._finishHandlers.splice(i,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new n(this,this._currentTime,t),i=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){i.forEach((function(t){t.call(e.target,e)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(Vx,kx),function(t,e,i){function n(t){var e=l;l=[],t<d.currentTime&&(t=d.currentTime),d._animations.sort(r),d._animations=a(t,!0,d._animations)[0],e.forEach((function(e){e[1](t)})),s()}function r(t,e){return t._sequenceNumber-e._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function s(){f.forEach((function(t){t()})),f.length=0}function a(t,i,n){_=!0,c=!1,e.timeline.currentTime=t,p=!1;var r=[],o=[],s=[],a=[];return n.forEach((function(e){e._tick(t,i),e._inEffect?(o.push(e._effect),e._markTarget()):(r.push(e._effect),e._unmarkTarget()),e._needsTick&&(p=!0);var n=e._inEffect||e._needsTick;e._inTimeline=n,n?s.push(e):a.push(e)})),f.push.apply(f,r),f.push.apply(f,o),p&&requestAnimationFrame((function(){})),_=!1,[s,a]}var u=window.requestAnimationFrame,l=[],h=0;window.requestAnimationFrame=function(t){var e=h++;return 0==l.length&&u(n),l.push([e,t]),e},window.cancelAnimationFrame=function(t){l.forEach((function(e){e[0]==t&&(e[1]=function(){})}))},o.prototype={_play:function(i){i._timing=t.normalizeTimingInput(i.timing);var n=new e.Animation(i);return n._idle=!1,n._timeline=this,this._animations.push(n),e.restart(),e.applyDirtiedAnimation(n),n}};var p=!1,c=!1;e.restart=function(){return p||(p=!0,requestAnimationFrame((function(){})),c=!0),c},e.applyDirtiedAnimation=function(t){if(!_){t._markTarget();var i=t._targetAnimations();i.sort(r),a(e.timeline.currentTime,!1,i.slice())[1].forEach((function(t){var e=d._animations.indexOf(t);-1!==e&&d._animations.splice(e,1)})),s()}};var f=[],_=!1,d=new o;e.timeline=d}(Vx,kx),function(t,e){function i(t,e){for(var i=0,n=0;n<t.length;n++)i+=t[n]*e[n];return i}function n(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function r(t){var e=t.rad||0;return((t.deg||0)/360+(t.grad||0)/400+(t.turn||0))*(2*Math.PI)+e}function o(t){switch(t.t){case"rotatex":var e=r(t.d[0]);return[1,0,0,0,0,Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1];case"rotatey":return e=r(t.d[0]),[Math.cos(e),0,-Math.sin(e),0,0,1,0,0,Math.sin(e),0,Math.cos(e),0,0,0,0,1];case"rotate":case"rotatez":return e=r(t.d[0]),[Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var i=t.d[0],n=t.d[1],o=t.d[2],s=(e=r(t.d[3]),i*i+n*n+o*o);if(0===s)i=1,n=0,o=0;else if(1!==s){var a=Math.sqrt(s);i/=a,n/=a,o/=a}var u=Math.sin(e/2),l=u*Math.cos(e/2),h=u*u;return[1-2*(n*n+o*o)*h,2*(i*n*h+o*l),2*(i*o*h-n*l),0,2*(i*n*h-o*l),1-2*(i*i+o*o)*h,2*(n*o*h+i*l),0,2*(i*o*h+n*l),2*(n*o*h-i*l),1-2*(i*i+n*n)*h,0,0,0,0,1];case"scale":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[t.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,t.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,t.d[0],0,0,0,0,1];case"scale3d":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,t.d[2],0,0,0,0,1];case"skew":var p=r(t.d[0]),c=r(t.d[1]);return[1,Math.tan(c),0,0,Math.tan(p),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return e=r(t.d[0]),[1,0,0,0,Math.tan(e),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return e=r(t.d[0]),[1,Math.tan(e),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,n=t.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,n=t.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=t.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,n=t.d[1].px||0,o=t.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,t.d[0].px?-1/t.d[0].px:0,0,0,0,1];case"matrix":return[t.d[0],t.d[1],0,0,t.d[2],t.d[3],0,0,0,0,1,0,t.d[4],t.d[5],0,1];case"matrix3d":return t.d}}function s(t){return 0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(o).reduce(n)}var a=function(){function t(t){return t[0][0]*t[1][1]*t[2][2]+t[1][0]*t[2][1]*t[0][2]+t[2][0]*t[0][1]*t[1][2]-t[0][2]*t[1][1]*t[2][0]-t[1][2]*t[2][1]*t[0][0]-t[2][2]*t[0][1]*t[1][0]}function e(t){var e=n(t);return[t[0]/e,t[1]/e,t[2]/e]}function n(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])}function r(t,e,i,n){return[i*t[0]+n*e[0],i*t[1]+n*e[1],i*t[2]+n*e[2]]}return function(o){var s=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==s[3][3])return null;for(var a=[],u=0;u<4;u++)a.push(s[u].slice());for(u=0;u<3;u++)a[u][3]=0;if(0===t(a))return null;var l,h=[];s[0][3]||s[1][3]||s[2][3]?(h.push(s[0][3]),h.push(s[1][3]),h.push(s[2][3]),h.push(s[3][3]),l=function(t,e){for(var i=[],n=0;n<4;n++){for(var r=0,o=0;o<4;o++)r+=t[o]*e[o][n];i.push(r)}return i}(h,function(t){return[[t[0][0],t[1][0],t[2][0],t[3][0]],[t[0][1],t[1][1],t[2][1],t[3][1]],[t[0][2],t[1][2],t[2][2],t[3][2]],[t[0][3],t[1][3],t[2][3],t[3][3]]]}(function(e){for(var i=1/t(e),n=e[0][0],r=e[0][1],o=e[0][2],s=e[1][0],a=e[1][1],u=e[1][2],l=e[2][0],h=e[2][1],p=e[2][2],c=[[(a*p-u*h)*i,(o*h-r*p)*i,(r*u-o*a)*i,0],[(u*l-s*p)*i,(n*p-o*l)*i,(o*s-n*u)*i,0],[(s*h-a*l)*i,(l*r-n*h)*i,(n*a-r*s)*i,0]],f=[],_=0;_<3;_++){for(var d=0,y=0;y<3;y++)d+=e[3][y]*c[y][_];f.push(d)}return f.push(1),c.push(f),c}(a)))):l=[0,0,0,1];var p=s[3].slice(0,3),c=[];c.push(s[0].slice(0,3));var f=[];f.push(n(c[0])),c[0]=e(c[0]);var _=[];c.push(s[1].slice(0,3)),_.push(i(c[0],c[1])),c[1]=r(c[1],c[0],1,-_[0]),f.push(n(c[1])),c[1]=e(c[1]),_[0]/=f[1],c.push(s[2].slice(0,3)),_.push(i(c[0],c[2])),c[2]=r(c[2],c[0],1,-_[1]),_.push(i(c[1],c[2])),c[2]=r(c[2],c[1],1,-_[2]),f.push(n(c[2])),c[2]=e(c[2]),_[1]/=f[2],_[2]/=f[2];var d=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(c[1],c[2]);if(i(c[0],d)<0)for(u=0;u<3;u++)f[u]*=-1,c[u][0]*=-1,c[u][1]*=-1,c[u][2]*=-1;var y,g,v=c[0][0]+c[1][1]+c[2][2]+1;return v>1e-4?(y=.5/Math.sqrt(v),g=[(c[2][1]-c[1][2])*y,(c[0][2]-c[2][0])*y,(c[1][0]-c[0][1])*y,.25/y]):c[0][0]>c[1][1]&&c[0][0]>c[2][2]?g=[.25*(y=2*Math.sqrt(1+c[0][0]-c[1][1]-c[2][2])),(c[0][1]+c[1][0])/y,(c[0][2]+c[2][0])/y,(c[2][1]-c[1][2])/y]:c[1][1]>c[2][2]?(y=2*Math.sqrt(1+c[1][1]-c[0][0]-c[2][2]),g=[(c[0][1]+c[1][0])/y,.25*y,(c[1][2]+c[2][1])/y,(c[0][2]-c[2][0])/y]):(y=2*Math.sqrt(1+c[2][2]-c[0][0]-c[1][1]),g=[(c[0][2]+c[2][0])/y,(c[1][2]+c[2][1])/y,.25*y,(c[1][0]-c[0][1])/y]),[p,f,_,g,l]}}();t.dot=i,t.makeMatrixDecomposition=function(t){return[a(s(t))]},t.transformListToMatrix=s}(kx),function(t){function e(t,e){var i=t.exec(e);if(i)return[i=t.ignoreCase?i[0].toLowerCase():i[0],e.substr(i.length)]}function i(t,e){var i=t(e=e.replace(/^\s*/,""));if(i)return[i[0],i[1].replace(/^\s*/,"")]}function n(t,e,i,n,r){for(var o=[],s=[],a=[],u=function(t,e){for(var i=t,n=e;i&&n;)i>n?i%=n:n%=i;return t*e/(i+n)}(n.length,r.length),l=0;l<u;l++){var h=e(n[l%n.length],r[l%r.length]);if(!h)return;o.push(h[0]),s.push(h[1]),a.push(h[2])}return[o,s,function(e){var n=e.map((function(t,e){return a[e](t)})).join(i);return t?t(n):n}]}t.consumeToken=e,t.consumeTrimmed=i,t.consumeRepeated=function(t,n,r){t=i.bind(null,t);for(var o=[];;){var s=t(r);if(!s)return[o,r];if(o.push(s[0]),!(s=e(n,r=s[1]))||""==s[1])return[o,r];r=s[1]}},t.consumeParenthesised=function(t,e){for(var i=0,n=0;n<e.length&&(!/\s|,/.test(e[n])||0!=i);n++)if("("==e[n])i++;else if(")"==e[n]&&(0==--i&&n++,i<=0))break;var r=t(e.substr(0,n));return null==r?void 0:[r,e.substr(n)]},t.ignore=function(t){return function(e){var i=t(e);return i&&(i[0]=void 0),i}},t.optional=function(t,e){return function(i){return t(i)||[e,i]}},t.consumeList=function(e,i){for(var n=[],r=0;r<e.length;r++){var o=t.consumeTrimmed(e[r],i);if(!o||""==o[0])return;void 0!==o[0]&&n.push(o[0]),i=o[1]}if(""==i)return n},t.mergeNestedRepeated=n.bind(null,null),t.mergeWrappedNestedRepeated=n,t.mergeList=function(t,e,i){for(var n=[],r=[],o=[],s=0,a=0;a<i.length;a++)if("function"==typeof i[a]){var u=i[a](t[s],e[s++]);n.push(u[0]),r.push(u[1]),o.push(u[2])}else!function(t){n.push(!1),r.push(!1),o.push((function(){return i[t]}))}(a);return[n,r,function(t){for(var e="",i=0;i<t.length;i++)e+=o[i](t[i]);return e}]}}(kx),function(t){function e(e){var i={inset:!1,lengths:[],color:null},n=t.consumeRepeated((function(e){var n=t.consumeToken(/^inset/i,e);return n?(i.inset=!0,n):(n=t.consumeLengthOrPercent(e))?(i.lengths.push(n[0]),n):(n=t.consumeColor(e))?(i.color=n[0],n):void 0}),/^/,e);if(n&&n[0].length)return[i,n[1]]}var i=function(e,i,n,r){function o(t){return{inset:t,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var s=[],a=[],u=0;u<n.length||u<r.length;u++){var l=n[u]||o(r[u].inset),h=r[u]||o(n[u].inset);s.push(l),a.push(h)}return t.mergeNestedRepeated(e,i,s,a)}.bind(null,(function(e,i){for(;e.lengths.length<Math.max(e.lengths.length,i.lengths.length);)e.lengths.push({px:0});for(;i.lengths.length<Math.max(e.lengths.length,i.lengths.length);)i.lengths.push({px:0});if(e.inset==i.inset&&!!e.color==!!i.color){for(var n,r=[],o=[[],0],s=[[],0],a=0;a<e.lengths.length;a++){var u=t.mergeDimensions(e.lengths[a],i.lengths[a],2==a);o[0].push(u[0]),s[0].push(u[1]),r.push(u[2])}if(e.color&&i.color){var l=t.mergeColors(e.color,i.color);o[1]=l[0],s[1]=l[1],n=l[2]}return[o,s,function(t){for(var i=e.inset?"inset ":" ",o=0;o<r.length;o++)i+=r[o](t[0][o])+" ";return n&&(i+=n(t[1])),i}]}}),", ");t.addPropertiesHandler((function(i){var n=t.consumeRepeated(e,/^,/,i);if(n&&""==n[1])return n[0]}),i,["box-shadow","text-shadow"])}(kx),function(t,e){function i(t){return t.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function n(t,e,i){return Math.min(e,Math.max(t,i))}function r(t){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t))return Number(t)}function o(t,e){return function(r,o){return[r,o,function(r){return i(n(t,e,r))}]}}function s(t){var e=t.trim().split(/\s*[\s,]\s*/);if(0!==e.length){for(var i=[],n=0;n<e.length;n++){var o=r(e[n]);if(void 0===o)return;i.push(o)}return i}}t.clamp=n,t.addPropertiesHandler(s,(function(t,e){if(t.length==e.length)return[t,e,function(t){return t.map(i).join(" ")}]}),["stroke-dasharray"]),t.addPropertiesHandler(r,o(0,1/0),["border-image-width","line-height"]),t.addPropertiesHandler(r,o(0,1),["opacity","shape-image-threshold"]),t.addPropertiesHandler(r,(function(t,e){if(0!=t)return o(0,1/0)(t,e)}),["flex-grow","flex-shrink"]),t.addPropertiesHandler(r,(function(t,e){return[t,e,function(t){return Math.round(n(1,1/0,t))}]}),["orphans","widows"]),t.addPropertiesHandler(r,(function(t,e){return[t,e,Math.round]}),["z-index"]),t.parseNumber=r,t.parseNumberList=s,t.mergeNumbers=function(t,e){return[t,e,i]},t.numberToString=i}(kx),function(t,e){t.addPropertiesHandler(String,(function(t,e){if("visible"==t||"visible"==e)return[0,1,function(i){return i<=0?t:i>=1?e:"visible"}]}),["visibility"])}(kx),function(t,e){function i(t){t=t.trim(),o.fillStyle="#000",o.fillStyle=t;var e=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=t,e==o.fillStyle){o.fillRect(0,0,1,1);var i=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var n=i[3]/255;return[i[0]*n,i[1]*n,i[2]*n,n]}}function n(e,i){return[e,i,function(e){if(e[3])for(var i=0;i<3;i++)e[i]=Math.round(function(t){return Math.max(0,Math.min(255,t))}(e[i]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var r=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");r.width=r.height=1;var o=r.getContext("2d");t.addPropertiesHandler(i,n,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,i),t.mergeColors=n}(kx),function(t,e){function i(t){function e(){var e=s.exec(t);o=e?e[0]:void 0}function i(){if("("!==o)return function(){var t=Number(o);return e(),t}();e();var t=r();return")"!==o?NaN:(e(),t)}function n(){for(var t=i();"*"===o||"/"===o;){var n=o;e();var r=i();"*"===n?t*=r:t/=r}return t}function r(){for(var t=n();"+"===o||"-"===o;){var i=o;e();var r=n();"+"===i?t+=r:t-=r}return t}var o,s=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),r()}function n(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){e=e.replace(/calc\(/g,"(");var n={};e=e.replace(t,(function(t){return n[t]=null,"U"+t}));for(var r="U("+t.source+")",o=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+r,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),s=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],a=0;a<s.length;)s[a].test(o)?(o=o.replace(s[a],"$1"),a=0):a++;if("D"==o){for(var u in n){var l=i(e.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(r,"g"),"*0"));if(!isFinite(l))return;n[u]=l}return n}}}function r(t,e){return o(t,e,!0)}function o(e,i,n){var r,o=[];for(r in e)o.push(r);for(r in i)o.indexOf(r)<0&&o.push(r);return e=o.map((function(t){return e[t]||0})),i=o.map((function(t){return i[t]||0})),[e,i,function(e){var i=e.map((function(i,r){return 1==e.length&&n&&(i=Math.max(i,0)),t.numberToString(i)+o[r]})).join(" + ");return e.length>1?"calc("+i+")":i}]}var s="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",a=n.bind(null,new RegExp(s,"g")),u=n.bind(null,new RegExp(s+"|%","g")),l=n.bind(null,/deg|rad|grad|turn/g);t.parseLength=a,t.parseLengthOrPercent=u,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,u),t.parseAngle=l,t.mergeDimensions=o;var h=t.consumeParenthesised.bind(null,a),p=t.consumeRepeated.bind(void 0,h,/^/),c=t.consumeRepeated.bind(void 0,p,/^,/);t.consumeSizePairList=c;var f=t.mergeNestedRepeated.bind(void 0,r," "),_=t.mergeNestedRepeated.bind(void 0,f,",");t.mergeNonNegativeSizePair=f,t.addPropertiesHandler((function(t){var e=c(t);if(e&&""==e[1])return e[0]}),_,["background-size"]),t.addPropertiesHandler(u,r,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(kx),function(t,e){function i(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function n(e){var n=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,i,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(n&&4==n[0].length)return n[0]}var r=t.mergeWrappedNestedRepeated.bind(null,(function(t){return"rect("+t+")"}),(function(e,i){return"auto"==e||"auto"==i?[!0,!1,function(n){var r=n?e:i;if("auto"==r)return"auto";var o=t.mergeDimensions(r,r);return o[2](o[0])}]:t.mergeDimensions(e,i)}),", ");t.parseBox=n,t.mergeBoxes=r,t.addPropertiesHandler(n,r,["clip"])}(kx),function(t,e){function i(t){return function(e){var i=0;return t.map((function(t){return t===l?e[i++]:t}))}}function n(t){return t}function r(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var i,n=/\s*(\w+)\(([^)]*)\)/g,r=[],o=0;i=n.exec(e);){if(i.index!=o)return;o=i.index+i[0].length;var s=i[1],a=c[s];if(!a)return;var u=i[2].split(","),l=a[0];if(l.length<u.length)return;for(var f=[],_=0;_<l.length;_++){var d,y=u[_],g=l[_];if(void 0===(d=y?{A:function(e){return"0"==e.trim()?p:t.parseAngle(e)},N:t.parseNumber,T:t.parseLengthOrPercent,L:t.parseLength}[g.toUpperCase()](y):{a:p,n:f[0],t:h}[g]))return;f.push(d)}if(r.push({t:s,d:f}),n.lastIndex==e.length)return r}}function o(t){return t.toFixed(6).replace(".000000","")}function s(e,i){if(e.decompositionPair!==i){e.decompositionPair=i;var n=t.makeMatrixDecomposition(e)}if(i.decompositionPair!==e){i.decompositionPair=e;var r=t.makeMatrixDecomposition(i)}return null==n[0]||null==r[0]?[[!1],[!0],function(t){return t?i[0].d:e[0].d}]:(n[0].push(0),r[0].push(1),[n,r,function(e){var i=t.quat(n[0][3],r[0][3],e[5]);return t.composeMatrix(e[0],e[1],e[2],i,e[4]).map(o).join(",")}])}function a(t){return t.replace(/[xy]/,"")}function u(t){return t.replace(/(x|y|z|3d)?$/,"3d")}var l=null,h={px:0},p={deg:0},c={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],n],matrix3d:["NNNNNNNNNNNNNNNN",n],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",i([l,l,1]),n],scalex:["N",i([l,1,1]),i([l,1])],scaley:["N",i([1,l,1]),i([1,l])],scalez:["N",i([1,1,l])],scale3d:["NNN",n],skew:["Aa",null,n],skewx:["A",null,i([l,p])],skewy:["A",null,i([p,l])],translate:["Tt",i([l,l,h]),n],translatex:["T",i([l,h,h]),i([l,h])],translatey:["T",i([h,l,h]),i([h,l])],translatez:["L",i([h,h,l])],translate3d:["TTL",n]};t.addPropertiesHandler(r,(function(e,i){var n=t.makeMatrixDecomposition&&!0,r=!1;if(!e.length||!i.length){e.length||(r=!0,e=i,i=[]);for(var o=0;o<e.length;o++){var l=e[o].t,h=e[o].d,p="scale"==l.substr(0,5)?1:0;i.push({t:l,d:h.map((function(t){if("number"==typeof t)return p;var e={};for(var i in t)e[i]=p;return e}))})}}var f=[],_=[],d=[];if(e.length!=i.length){if(!n)return;f=[(x=s(e,i))[0]],_=[x[1]],d=[["matrix",[x[2]]]]}else for(o=0;o<e.length;o++){var y=e[o].t,g=i[o].t,v=e[o].d,m=i[o].d,b=c[y],w=c[g];if(function(t,e){return"perspective"==t&&"perspective"==e||("matrix"==t||"matrix3d"==t)&&("matrix"==e||"matrix3d"==e)}(y,g)){if(!n)return;var x=s([e[o]],[i[o]]);f.push(x[0]),_.push(x[1]),d.push(["matrix",[x[2]]])}else{if(y==g)l=y;else if(b[2]&&w[2]&&a(y)==a(g))l=a(y),v=b[2](v),m=w[2](m);else{if(!b[1]||!w[1]||u(y)!=u(g)){if(!n)return;f=[(x=s(e,i))[0]],_=[x[1]],d=[["matrix",[x[2]]]];break}l=u(y),v=b[1](v),m=w[1](m)}for(var S=[],P=[],V=[],k=0;k<v.length;k++)x=("number"==typeof v[k]?t.mergeNumbers:t.mergeDimensions)(v[k],m[k]),S[k]=x[0],P[k]=x[1],V.push(x[2]);f.push(S),_.push(P),d.push([l,V])}}if(r){var A=f;f=_,_=A}return[f,_,function(t){return t.map((function(t,e){var i=t.map((function(t,i){return d[e][1][i](t)})).join(",");return"matrix"==d[e][0]&&16==i.split(",").length&&(d[e][0]="matrix3d"),d[e][0]+"("+i+")"})).join(" ")}]}),["transform"]),t.transformToSvgMatrix=function(e){var i=t.transformListToMatrix(r(e));return"matrix("+o(i[0])+" "+o(i[1])+" "+o(i[4])+" "+o(i[5])+" "+o(i[12])+" "+o(i[13])+")"}}(kx),function(t){function e(e){return e=100*Math.round(e/100),400===(e=t.clamp(100,900,e))?"normal":700===e?"bold":String(e)}t.addPropertiesHandler((function(t){var e=Number(t);if(!(isNaN(e)||e<100||e>900||e%100!=0))return e}),(function(t,i){return[t,i,e]}),["font-weight"])}(kx),function(t){function e(t){var e={};for(var i in t)e[i]=-t[i];return e}function i(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function n(e,n){var r=t.consumeRepeated(i,/^/,n);if(r&&""==r[1]){var s=r[0];if(s[0]=s[0]||"center",s[1]=s[1]||"center",3==e&&(s[2]=s[2]||{px:0}),s.length==e){if(/top|bottom/.test(s[0])||/left|right/.test(s[1])){var a=s[0];s[0]=s[1],s[1]=a}if(/left|right|center|Object/.test(s[0])&&/top|bottom|center|Object/.test(s[1]))return s.map((function(t){return"object"==typeof t?t:o[t]}))}}}function r(n){var r=t.consumeRepeated(i,/^/,n);if(r){for(var s=r[0],a=[{"%":50},{"%":50}],u=0,l=!1,h=0;h<s.length;h++){var p=s[h];"string"==typeof p?(l=/bottom|right/.test(p),a[u={left:0,right:0,center:u,top:1,bottom:1}[p]]=o[p],"center"==p&&u++):(l&&((p=e(p))["%"]=(p["%"]||0)+100),a[u]=p,u++,l=!1)}return[a,r[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},s=t.mergeNestedRepeated.bind(null,t.mergeDimensions," ");t.addPropertiesHandler(n.bind(null,3),s,["transform-origin"]),t.addPropertiesHandler(n.bind(null,2),s,["perspective-origin"]),t.consumePosition=r,t.mergeOffsetList=s;var a=t.mergeNestedRepeated.bind(null,s,", ");t.addPropertiesHandler((function(e){var i=t.consumeRepeated(r,/^,/,e);if(i&&""==i[1])return i[0]}),a,["background-position","object-position"])}(kx),function(t){var e=t.consumeParenthesised.bind(null,t.parseLengthOrPercent),i=t.consumeRepeated.bind(void 0,e,/^/),n=t.mergeNestedRepeated.bind(void 0,t.mergeDimensions," "),r=t.mergeNestedRepeated.bind(void 0,n,",");t.addPropertiesHandler((function(n){var r=t.consumeToken(/^circle/,n);if(r&&r[0])return["circle"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),e,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],r[1]));var o=t.consumeToken(/^ellipse/,n);if(o&&o[0])return["ellipse"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),i,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],o[1]));var s=t.consumeToken(/^polygon/,n);return s&&s[0]?["polygon"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),t.optional(t.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),t.consumeSizePairList,t.ignore(t.consumeToken.bind(void 0,/^\)/))],s[1])):void 0}),(function(e,i){if(e[0]===i[0])return"circle"==e[0]?t.mergeList(e.slice(1),i.slice(1),["circle(",t.mergeDimensions," at ",t.mergeOffsetList,")"]):"ellipse"==e[0]?t.mergeList(e.slice(1),i.slice(1),["ellipse(",t.mergeNonNegativeSizePair," at ",t.mergeOffsetList,")"]):"polygon"==e[0]&&e[1]==i[1]?t.mergeList(e.slice(2),i.slice(2),["polygon(",e[1],r,")"]):void 0}),["shape-outside"])}(kx),function(t,e){function i(t,e){e.concat([t]).forEach((function(e){e in document.documentElement.style&&(n[t]=e),r[e]=t}))}var n={},r={};i("transform",["webkitTransform","msTransform"]),i("transformOrigin",["webkitTransformOrigin"]),i("perspective",["webkitPerspective"]),i("perspectiveOrigin",["webkitPerspectiveOrigin"]),t.propertyName=function(t){return n[t]||t},t.unprefixedPropertyName=function(t){return r[t]||t}}(kx)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var t=function(){return performance.now()};else t=function(){return Date.now()};var e=function(t,e,i){this.target=t,this.currentTime=e,this.timelineTime=i,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},i=window.Element.prototype.animate;window.Element.prototype.animate=function(n,r){var o=i.call(this,n,r);o._cancelHandlers=[],o.oncancel=null;var s=o.cancel;o.cancel=function(){s.call(this);var i=new e(this,null,t()),n=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){n.forEach((function(t){t.call(i.target,i)}))}),0)};var a=o.addEventListener;o.addEventListener=function(t,e){"function"==typeof e&&"cancel"==t?this._cancelHandlers.push(e):a.call(this,t,e)};var u=o.removeEventListener;return o.removeEventListener=function(t,e){if("cancel"==t){var i=this._cancelHandlers.indexOf(e);i>=0&&this._cancelHandlers.splice(i,1)}else u.call(this,t,e)},o}}}(),function(t){var e=document.documentElement,i=null,n=!1;try{var r="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(i=e.animate({opacity:[r,r]},{duration:1})).currentTime=0,n=getComputedStyle(e).getPropertyValue("opacity")==r}catch(t){}finally{i&&i.cancel()}if(!n){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(e,i){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),o.call(this,e,i)}}}(Vx),Object.defineProperty(window.SVGElement.prototype,"parentElement",{get:function(){return this.parentNode}}),Element.prototype._getBoundingClientRect=Element.prototype.getBoundingClientRect,Element.prototype.getBoundingClientRect=function(){const t=Element.prototype._getBoundingClientRect.call(this);return t.x=t.left,t.y=t.top,t},function(){function t(t){var e=t&&t.getBoundingClientRect()||{x:0,y:0,width:0,height:0};return[e.left,e.top]}SVGElement.prototype.getBBox=function(){return"tspan"===this.nodeName?function(e){try{var i=e.ownerSVGElement,n=e.parentNode,[r,o]=t(i),[s,a]=t(n),u={x:0,y:0,width:0,height:0};e.viewportElement&&e.textContent.trim()&&(u=e.getExtentOfChar(0))}catch(t){console.error(t.message),console.log(e.textContent,e.textContent.trim().length,{tspanElement:e})}finally{return{x:r+s+u.x,y:o+a+u.y,width:u.width,height:u.height}}}(this):this.getBoundingClientRect()}}();var Ex=function(t,e){return Ex=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Ex(t,e)};function Lx(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Ex(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Nx=function(){return Nx=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Nx.apply(this,arguments)};function Mx(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Tx(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s}function Ox(t,e,i){if(i||2===arguments.length)for(var n,r=0,o=e.length;r<o;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var Rx="http://www.w3.org/2000/svg",Dx=Object.prototype.hasOwnProperty,Bx=function(t){return t&&"object"==typeof t&&!Array.isArray(t)},Fx=Array.isArray,Ix=function(t){return"function"==typeof t},jx=function(t){return"string"==typeof t},zx=function(t){return"string"==typeof t&&t.length>0},$x=function(t){return"number"==typeof t},Hx=function(t){return"boolean"==typeof t},Gx=Object.assign,Wx=Math.floor,Yx=Math.ceil,Xx=Math.cos,Ux=Math.sin,qx=function(t){return Math.pow(10,t)},Zx=Math.log10,Kx=Math.min,Jx=Math.max,Qx=Math.abs,tS=function(t,e){return t=parseFloat(t),isNaN(t)?parseFloat(e):t},eS=function(t,e,i){var n=parseFloat(t);return isNaN(n)?(n=parseFloat(e),isNaN(n)?parseFloat(i):n):n},iS=function(t,e){return void 0!==t?t:e},nS=function(t,e,i){return void 0!==t?t:void 0!==e?e:i},rS=function(t,e,i){return t+(e-t)*i},oS=(new Date).getTime();"undefined"==typeof window||Element.prototype.animate||(Element.prototype.animate=function(t){});var sS=function(){function t(){}return t.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.LOGGING&&console.log.apply(console,Ox([],Tx(t),!1))},t.now=function(){return+new Date},t.parseDate=function(t,e){var i=new Date(t);return isNaN(i.getTime())?e||new Date:i},t.isLeapYear=function(t){return t%4==0&&t%100!=0||t%400==0},t.dateOfYear=function(e){var i=e.getMonth(),n=e.getDate(),r=[0,31,59,90,120,151,181,212,243,273,304,334][i]+n;return i>1&&t.isLeapYear(e.getFullYear())&&r++,r},t.incMonth=function(e,i){var n=e.getDate();return e.setDate(1),e.setMonth(e.getMonth()+i),e.setDate(Kx(n,t.month_days[t.isLeapYear(e.getFullYear())?1:0][e.getMonth()])),e},t.minDate=function(t,e){return null!==t?t:null!==e?e:t.getTime()<e.getTime()?t:e},t.maxDate=function(t,e){return null!==t?e:null!==e||t.getTime()>e.getTime()?t:e},t.weekOfMonth=function(t,e,i){var n=t.getMonth(),r=t.getFullYear(),o=new Date(r,n,1).getDay(),s=new Date(r,n+1,0).getDate(),a=t.getDate()+o-1,u=e+Math.ceil((s+o-7)/7),l=e+Math.floor(a/7);return i||l<2+e?l:l===u?e+5:l},t.weekOfYear=function(t,e){var i=t.getFullYear(),n=new Date(i,0,1).getDay(),r=this.dateOfYear(t)+n-1;return e+Math.floor(r/7)},t.isObject=function(t){return t&&"object"==typeof t&&!Fx(t)},t.isValidObject=function(t){if(this.isObject(t))for(var e in t)if(t.hasOwnProperty(e))return!0},t.copyObject=function(t){if(t&&"object"==typeof t&&!Fx(t))return Gx({},t)},t.checkArray=function(t){return Fx(t)?t:void 0},t.makeArray=function(t,e){return void 0===e&&(e=!1),null!=t?Fx(t)?t:[t]:e?[]:void 0},t.makeNumArray=function(t){return Fx(t)?t.map((function(t){return+t})):null!=t?[+t]:[]},t.getIntArray=function(t,e){void 0===e&&(e=0);for(var i=[],n=e,r=e+t;n<r;n++)i.push(n);return i},t.isValueArray=function(t){if(Fx(t)){for(var e=t.length-1;e>=0;e--)if(null!=t[e]&&"object"==typeof t[e])return!1;return!0}return!1},t.toArray=function(t){return Fx(t)?t:null!=t?[t]:null},t.copyArray=function(t){return Fx(t)?t.slice(0):null!=t?[t]:void 0},t.push=function(t,e){if(e&&e.length>0)for(var i=0,n=e.length;i<n;i++)t.push(e[i])},t.isDefined=function(t){return null!=t},t.isNotDefined=function(t){return null==t},t.isNumber=function(t){return"number"==typeof t},t.canNumber=function(t){return!isNaN(t)&&!isNaN(parseFloat(t))},t.isValidNum=function(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)},t.getNumber=function(t,e){void 0===e&&(e=0);var i=parseFloat(t);return isFinite(i)?i:e},t.toNumber=function(t,e){return void 0===e&&(e=0),isNaN(t)||null===t||""===t?e:+t},t.compareText=function(t,e,i){return void 0===i&&(i=!1),t=t||"",e=e||"",i&&(t=t.toLocaleLowerCase(),e=e.toLocaleLowerCase()),t>e?1:t<e?-1:0},t.getTimeF=function(){return(new Date).getTime()/1e3},t.getTimer=function(){return(new Date).getTime()-oS},t.isWhiteSpace=function(t){return!t||!t.trim()},t.pad=function(t,e,i){return e=Jx(e||2,1),i=i||"0",new Array(e-String(t).length+1).join(i)+t},t.pad16=function(t,e,i){return e=Jx(e||2,1),i=i||"0",new Array(e-t.toString(16).length+1).join(i)+t.toString(16)},t.pick=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i,n=t.length,r=0;r<n;r++)if(null!=(i=t[r]))return i},t.toStr=function(t){return Number.isNaN(t)||null==t?"":String(t)},t.extend=function(t,e){for(var i in t=t||{},e)t[i]=e[i];return t},t.equalNumbers=function(t,e){return isNaN(t)==isNaN(e)&&!isNaN(t)&&t==e},t.equalArrays=function(t,e){if(t===e)return!0;if(null==t||null==e)return!1;var i=t.length;if(i!=e.length)return!1;for(var n=0;n<i;++n)if(t[n]!==e[n])return!1;return!0},t.isEmpty=function(t){if(t)for(var e in t)return!1;return!0},t.isNotEmpty=function(t){if(t)for(var e in t)return!0;return!1},t.setter=function(t){return"set"+t[0].toUpperCase()+t.slice(1)},t.deepClone=function(e){var i,n;if(e instanceof Date)return new Date(e);if(null==e||"object"!=typeof e)return e;var r=Fx(e)?[]:{};try{for(var o=Mx(Object.keys(e)),s=o.next();!s.done;s=o.next()){var a=s.value;r[a]=t.deepClone(e[a])}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return r},t.getArray=function(t,e){for(var i=[],n=0;n<t;n++)i.push(e);return i},t.getNumArray=function(t,e){void 0===e&&(e=0);for(var i=[],n=0;n<t;n++)i.push(e);return i},t.dedupe=function(t,e){for(var i=(t=t.sort(e||function(t,e){return t>e?1:t<e?-1:0})).length-1;i>0;i--)t[i]===t[i-1]&&t.splice(i,1);return t},t.sortNum=function(t){return t.sort((function(t,e){return t-e}))},t.logElapsed=function(e,i){var n=+new Date;i(),t.log(e,+new Date-n+"ms")},t.clamp=function(t,e,i){return Jx(e,Kx(i,t))},t.makeIntArray=function(t,e){for(var i=new Array(Jx(0,e-t)),n=t;n<e;n++)i[n-t]=n;return i},t.shuffle=function(t){for(var e,i=t.length-1;i>0;i--){var n=Math.floor(Math.random()*(i+1));e=Tx([t[n],t[i]],2),t[i]=e[0],t[n]=e[1]}},t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isValidDate=function(t){return t.getTime()==t.getTime()},t.asFunction=function(t){return"function"==typeof t?t:void 0},t.getFieldProp=function(t){var e=t.indexOf(".");if(e>=0)return{field:t.substring(0,e),props:t.substring(e+1).split(".")}},t.startsWith=function(t,e){if(t&&e)return 0===t.indexOf(e)},t.endsWith=function(t,e){if(t&&e)return t.indexOf(e,-t.length)===t.length-e.length},t.scaleNumber=function(t,e,i){var n=Qx(t);if(n>=1e3)for(var r=e.length;r>0;){var o=Math.pow(1e3,r--);if(o<=Math.pow(10,Math.log(n)*Math.LOG10E)&&(i||10*n%o==0))return{value:t/o,symbol:e[r]}}},t.jitter=function(t,e){return t+(2*Math.random()-1)*e},t.LOGGING=!1,t.week_days=["일","월","화","수","목","금","토"],t.long_week_days=["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],t.month_days=[[31,28,31,30,31,30,31,31,30,31,30,31],[31,29,31,30,31,30,31,31,30,31,30,31]],t.uniqueKey=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"rr-chart-"+t+e++}}(),t}(),aS={ko:{dateFormat:"yyyy.MM.dd",am:"오전",pm:"오후",notExistsDataField:"존재하지 않는 필드입니다: %1",notSpecifiedDataField:"하나 이상의 데이터필드가 설정돼야 합니다.",invalidFieldName:"잘못된 데이터필드 이름입니다: %1",invalidRowIndex:"잘못된 데이터행 index입니다: %1",invalidToIndex:"잘못된 'to' index입니다.: %1",requireSourceData:"원본 data가 반드시 지정돼야 합니다.",requireFilterName:"필터 이름이 반드시 지정돼야 합니다.",invalidDateFormat:"잘못된 시간 날짜 형식입니다: %1",invalidSizeValue:"잘못된 Size 값입니다: %1",invalidOuterDiv:"잘못된 외부 div 입니다: %1",dataMustSet:"데이터가 먼저 설정돼야 합니다.",requireTableName:"테이블모델의 이름이 지정돼야 합니다.",alreadyTableExists:"이미 존재하는 테이블모델입니다: %1"},en:{dateFormat:"M/d/yyyy",am:"AM",pm:"PM",notExistsDataField:"A data field is not exists: %1",notSpecifiedDataField:"At least one datafield must be set.",invalidFieldName:"Invalid field name: %1",invalidRowIndex:"Invalid row index: %1",invalidToIndex:"Invalid 'to' index: %1",requireSourceData:"A source data must be set.",requireFilterName:"A filter name must be set.",invalidDateFormat:"Invalid datetime format: %1",invalidSizeValue:"Invalid size value: %1",invalidOuterDiv:"Invalid outer div element: %1",dataMustSet:"A data must be set first.",requireTableName:"The name of table model is required.",alreadyTableExists:"A table model is already exists: %1"}},uS="ko",lS=aS[uS]||aS[uS="ko"],hS=function(t,e){t&&Bx(e)&&(lS=aS[t.substring(0,2)]=Object.assign(aS.ko,aS.en,e))},pS=0,cS=function(){function t(t){this.$_destroyed=!1,this.$_destroying=!1,t||(this.$_hash=String(pS++))}return t.destroy=function(t){return t&&t.destroy()},t.prototype.destroy=function(){return this.$_destroyed||this.$_destroying||(this.$_destroyed=!0,this.$_destroying=!0,this._doDestroy()),null},t.prototype._doDestroy=function(){},Object.defineProperty(t.prototype,"destroying",{get:function(){return this.$_destroying},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.$_hash},enumerable:!1,configurable:!0}),t.prototype.isMe=function(t){return t===this.$_hash},t.prototype.toString=function(){return this.constructor.name},t.prototype.toBool=function(t){return"string"==typeof t?"true"===t:t},t.prototype.toNum=function(t,e){return void 0===e&&(e=NaN),t=parseFloat(t),isNaN(t)?e:t},t}(),fS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._listeners=[],e}return Lx(e,t),e.prototype._addListener=function(t){t&&this._listeners.indexOf(t)<0&&this._listeners.push(t)},e.prototype._removeListener=function(t){var e=this._listeners.indexOf(t);e>=0&&this._listeners.splice(e,1)},e.prototype._fireEvent=function(t){var e,i,n=Array.prototype.slice.call(arguments,0);n[0]=this;try{for(var r=Mx(this._listeners),o=r.next();!o.done;o=r.next()){var s=o.value,a=s[t];if(a){var u=a.apply(s,n);if(void 0!==u)return u}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e}(cS),_S=void 0,dS=Math.PI,yS=2*dS,gS=-dS/2,vS=2*dS/360,mS=360/dS/2,bS="%".charCodeAt(0);function wS(t){return t>yS?t%yS:t}function xS(t){return parseFloat(t.toPrecision(12))}function SS(t){return Math.floor(1e6*t)/1e6}function PS(t){return null==t?null:String(t)}function VS(t){return t+"px"}function kS(t){return null==t||Number.isNaN(t)||""===t}function AS(t){return t<10?"0"+t:String(t)}function CS(t){return t<10?"00"+t:t<100?"0"+t:String(t)}function ES(t,e){var i={};return i[t]=e,i}function LS(t,e,i){var n,r=!1;if(null==t){if(e)return null;n=i||0,r=!0}else if("string"==typeof t){var o=t.trim();if(0===o.length?n=NaN:o.charCodeAt(o.length-1)===bS?n=1===o.length?NaN:parseFloat(o):(n=parseFloat(o),r=!0),isNaN(n)){if(e)return null;IS(lS.invalidSizeValue,t)}}else if(n=+t,isNaN(n)){if(e)return null;n=i||0,r=!0}else r=!0;return{size:n,fixed:r}}function NS(t,e){return LS(t,!0)||LS(e,!1)}function MS(t,e,i){return void 0===i&&(i=NaN),t?t.fixed?t.size:t.size*e/100:i}var TS="fill",OS={fill:"fill",fillOpacity:"fill-opacity",stroke:"stroke",strokeWidth:"stroke-width",strokeDasharray:"stroke-dasharray",fontFamily:"font-family",fontSize:"font-size",fontWeight:"font-weight",fontStyle:"font-style",padding:"padding",margin:"margin"},RS=function(t){var e=OS[t];if(!e){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return OS[t]=i,i}return e};!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Lx(e,t),e.check=function(t){if(t instanceof e)return!0;throw t}}(Error);var DS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(Error),BS=function(t,e){if(!t)throw new DS(e)};!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Lx(e,t)}(Error);var FS,IS=function(t,e){throw new Error(function(t,e){return t.replace("%1",e)}(t,e))},jS=function(t,e,i,n,r,o,s){var a,u;if(void 0===n&&(n=!0),void 0===r&&(r=!0),void 0===o&&(o=!1),n&&(e=-Number.MAX_VALUE,i=Number.MAX_VALUE),Fx(t))a=[],t.forEach((function(t){if(Bx(t)&&jx(t.color)){var n={fromValue:tS(t.fromValue,u?u.toValue:e),toValue:tS(t.toValue,i),color:t.color,style:t.style?Gx({},t.style):_S};n.fromValue<n.toValue&&(a.push(n),u=n)}})),a=a.sort((function(t,e){return t.fromValue-e.fromValue})).filter((function(t){return t.toValue>=e&&t.fromValue<i})),r&&a.forEach((function(t){t.fromValue=Jx(t.fromValue,e),t.toValue=Kx(t.toValue,i)}));else if(Bx(t)&&Fx(t.colors)&&t.colors.length>0){var l=t.colors,h=Fx(t.styles)?t.styles:null;if(a=[],Fx(t.steps)&&t.steps.length>0){var p=Fx(t.steps)?t.steps:null;e<p[0]&&p.unshift(e),i>p[p.length-1]&&p.push(i);for(var c=0;c<p.length-1;c++)a.push({fromValue:p[c],toValue:p[c+1],color:l[Kx(c,l.length-1)],style:h?h[Kx(c,h.length-1)]:_S})}else{var f=tS(t.fromValue,e),_=tS(t.toValue,i),d=(_-f)/l.length;for(c=0;f<_;)a.push({fromValue:f,toValue:f+=d,color:l[Kx(c,l.length-1)],style:h?h[Kx(c,h.length-1)]:_S}),c++}}if(o&&a&&a.length>0){c=0;for(var y=e;c<a.length;)a[c].fromValue>y&&a.splice(c,0,{fromValue:y,toValue:a[c].fromValue,color:s}),y=a[c].toValue,c++;a[c-1].toValue<i&&a.push({fromValue:a[c-1].toValue,toValue:i,color:s})}return a},zS="vertical-lr",$S="vertical-rl",HS=function(t){return t&&"object"==typeof t},GS=function(t){function e(e,i){var n=t.call(this)||this;return n._rows=[],n.$_buildOptions(e||{}),Fx(i)&&i.forEach((function(t){return n._rows.push(n.$_readRow(t))})),n}return Lx(e,t),e.prototype.$_buildOptions=function(t){var e,i=t.fields;e=Fx(i)?i.slice():jx(i)?[i]:["x","y","z"],this._fields=e,this._field=t.field||"y",this._fieldMap={};for(var n=0;n<e.length;n++)this._fieldMap[e[n]]=n},Object.defineProperty(e.prototype,"rowCount",{get:function(){return this._rows.length},enumerable:!1,configurable:!0}),e.prototype._internalValues=function(){return this._rows},e.prototype.$_readRow=function(t){var e={};if(Fx(t))for(var i=0;i<this._fields.length;i++)e[this._fields[i]]=t[i];else HS(t)?Object.assign(e,t):e[this._field]=t;return e},e.prototype.getValue=function(t,e){return this._checkRow(t),this._rows[t][e]},e.prototype.setValue=function(t,e,i){this._checkRow(t);var n=this._rows[t],r=n[e];i!==r&&(n[e]=i,this._rows[t]=n,this._fireEvent("onDataValueChanged",t,e,i,r),this._changed())},e.prototype.getValues=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=-1);var n=this._rows,r=[];(isNaN(e)||e<0)&&(e=0),(isNaN(i)||i<0||i>n.length)&&(i=n.length);for(var o=e;o<i;o++)r.push(n[o][t]);return r},e.prototype.getRow=function(t){return this._checkRow(t),Object.assign({},this._rows[t])},e.prototype.addRow=function(t,e){isNaN(e)||e<0?e=this._rows.length:this._checkRow(e),this._rows.splice(e,0,t),this._fireEvent("onDataRowAdded",e),this._changed()},e.prototype.deleteRow=function(t){(isNaN(t)||t<0)&&(t=this._rows.length-1),this._checkRow(t);var e=this._rows[t];this._rows.splice(t,1),this._fireEvent("onDataRowDeleted",t,e),this._changed()},e.prototype._checkRow=function(t){(t<0||t>this._rows.length)&&IS(lS.invalidRowIndex,t)},e.prototype._changed=function(){this._fireEvent("onDataChanged")},e}(fS),WS=function(){function t(){this._map={}}return t.prototype.get=function(t){return this._map[t]},t.prototype.load=function(t){for(var e in t){var i=t[e],n=void 0;Fx(i)?n=new GS({},i):HS(i)&&Fx(i.values)&&(n=new GS(i.options,i.values)),this._map[e]=n}},t}(),YS="0".charCodeAt(0),XS="#".charCodeAt(0),US=",".charCodeAt(0),qS="s".charCodeAt(0),ZS="a".charCodeAt(0),KS=function(){function t(t){t=t.trim(),this._options=t?this.$_parse(this._format=t):{useGrouping:!1}}return t.getFormatter=function(e){var i=t.Formatters[e];return i||(t.Formatters[e]=i=new t(e)),i},Object.defineProperty(t,"Default",{get:function(){return t.getFormatter(t.DEFAULT_FORMAT)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this._format},enumerable:!1,configurable:!0}),t.prototype.toStr=function(t){return t.toLocaleString(void 0,this._options)},t.prototype.$_parse=function(t){var e=t.length;if(e>0){var i={useGrouping:!1,minimumIntegerDigits:0,minimumFractionDigits:0,maximumFractionDigits:0},n=t.indexOf(".");if(n>=0){for(var r=n+1;r<e&&t.charCodeAt(r)===YS;)i.minimumFractionDigits++,r++;for(i.maximumFractionDigits=i.minimumFractionDigits;r<e&&t.charCodeAt(r)===XS;)i.maximumFractionDigits++,r++;n-=1}else n=e-1;for(var o=n;o>=0&&t.charCodeAt(o)===YS;)i.minimumIntegerDigits++,o--;for(;o>=0;){if(t.charCodeAt(o--)===US){i.useGrouping=!0;break}}for(o=n;o>=0;){if(t.charCodeAt(o--)===qS){i.signDisplay="always";break}}if(!i.signDisplay)for(o=n;o>=0;){if(t.charCodeAt(o--)===ZS){i.signDisplay="never";break}}return i.minimumIntegerDigits=Jx(1,i.minimumIntegerDigits),i}},t.DEFAULT_FORMAT="",t.Formatters={},t}(),JS=["yy","yyyy","M","MM","d","dd","WW","W","w","ww","a","H","HH","h","hh","m","mm","s","ss","S","SS","SSS"],QS=[".","/","-",":"],tP="Z".charCodeAt(0),eP="z".charCodeAt(0),iP="A".charCodeAt(0),nP="a".charCodeAt(0),rP="y".charCodeAt(0),oP="M".charCodeAt(0),sP="m".charCodeAt(0),aP="W".charCodeAt(0),uP="w".charCodeAt(0),lP="d".charCodeAt(0),hP="H".charCodeAt(0),pP="h".charCodeAt(0),cP="S".charCodeAt(0),fP="s".charCodeAt(0),_P=function(){function t(t){this._baseYear=2e3,this._preserveTime=!1,this._hasAmPm=!1,this._formatString="",this.formatString=t}return t.getFormatter=function(e){var i=t.Formatters[e];return i||(t.Formatters[e]=i=new t(e)),i},Object.defineProperty(t,"Default",{get:function(){return t.getFormatter(lS.dateFormat)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this._format},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatString",{get:function(){return this._formatString},set:function(t){(t=t||lS.dateFormat)!=this._formatString&&(this._tokens=[],this.parse(t),this._formatString=t)},enumerable:!1,configurable:!0}),t.prototype.toStr=function(t,e){if(!this._tokens)return"";for(var i=this._tokens,n="",r=0,o=i.length;r<o;r++){var s=i[r],a=s.length;switch(s.charCodeAt(0)){case rP:n+=a>2?t.getFullYear():AS(t.getFullYear()%100);break;case oP:n+=a>1?AS(t.getMonth()+1):t.getMonth()+1;break;case lP:n+=a>1?AS(t.getDate()):t.getDate();break;case aP:n+=a>1?AS(sS.weekOfYear(t,e)+1):sS.weekOfMonth(t,e,!0)+1;break;case uP:n+=a>1?sS.long_week_days[t.getDay()]:sS.week_days[t.getDay()];break;case hP:n+=a>1?AS(t.getHours()):t.getHours();break;case pP:if(this._hasAmPm){var u=t.getHours();0==u?u=12:u>12&&(u-=12),n+=a>1?AS(u):u}else n+=a>1?AS(t.getHours()):t.getHours();break;case sP:n+=a>1?AS(t.getMinutes()):t.getMinutes();break;case fP:n+=a>1?AS(t.getSeconds()):t.getSeconds();break;case nP:case iP:t.getHours()<12?n+=lS.am:n+=lS.pm;break;case cP:var l=t.getMilliseconds();n+=3==a?CS(l):2==a?AS(l):l.toString().substring(0,a);break;default:n+=s}}return n},t.prototype.parseDateFormatTokens=function(t){var e=[];if(t)for(var i=t.trim(),n=i.length,r=0;r<n;){var o=i.charAt(r);if(QS.indexOf(o)>=0)e.push(o),r++;else{for(var s=r++;r<n&&i.charAt(r)==o;)r++;if(o=i.substring(s,r),JS.indexOf(o)<0){var a=o.charCodeAt(0);(a>=iP&&a<=tP||a>=nP&&a<=eP)&&IS(lS.invalidDateFormat,t)}e.push(o)}if(r<n&&sS.isWhiteSpace(o=i.charAt(r)))for(e.push(o);r<n&&sS.isWhiteSpace(i.charAt(r));)r++}return e},t.prototype.parse=function(t){t&&(this._format=t||lS.dateFormat,this._tokens=this.parseDateFormatTokens(this._format),this._hasAmPm=this._tokens.indexOf("a")>=0||this._tokens.indexOf("A")>=0)},t.Formatters={},t}(),dP=function(){function t(){}return t.clearChildren=function(t){for(var e;e=t.lastChild;)t.removeChild(e)},t.remove=function(t){var e=t&&t.parentElement;return e&&e.removeChild(t),null},t.htmlEncode=function(t){return document.createElement("a").appendChild(document.createTextNode(t)).parentNode.innerHTML},t.setImportantStyle=function(t,e,i){t.setProperty(e,i,"important")},t.getPadding=function(t){var e=getComputedStyle(t);return{left:parseFloat(e.paddingLeft)||0,right:parseFloat(e.paddingRight)||0,top:parseFloat(e.paddingTop)||0,bottom:parseFloat(e.paddingBottom)||0}},t}();!function(t){t.Developer="developer",t.Evaluation="evaluation",t.Limited="limited",t.Enterprise="enterprise"}(FS||(FS={}));var yP={name:"RealChart",version:"1.1.0",license:"enterprise",code:""},gP=function(){function t(){}return t.decode=function(e){for(var i=t.CHARS,n=t.PAD,r=e.split(""),o=[],s=r.length;r[--s]==n;);for(var a=0;a<s;){var u=i.indexOf(r[a++])<<18;a<=s&&(u|=i.indexOf(r[a++])<<12),a<=s&&(u|=i.indexOf(r[a++])<<6),a<=s&&(u|=i.indexOf(r[a++])),o.push(u>>>16&255),o.push(u>>>8&255),o.push(255&u)}for(;0==o[o.length-1];)o.pop();return o},t.PAD="=",t.CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t}(),vP=function(){function t(){}return t.union=function(t,e){var i=e.s3[255&t];t>>=8;var n=e.s2[255&t];t>>=8;var r=e.s1[255&t];t>>=8;var o=e.s0[255&t],s=(o>>16)+(r>>16)+((65535&o)+(65535&r)>>16)<<16|(65535&o)+(65535&r)&65535;return((s=(s>>16^n>>16)<<16|65535&(65535&s^65535&n))>>16)+(i>>16)+((65535&s)+(65535&i)>>16)<<16|(65535&s)+(65535&i)&65535},t.xor=function(t,e){return(t>>16^e>>16)<<16|65535&(65535&t^65535&e)},t._encryptBlock=function(e,i){var n=t.xor,r=t.union,o=e.left,s=e.right;o=n(o,i.p[0]),s=n(s,n(r(o,i),i.p[1])),o=n(o,n(r(s,i),i.p[2])),s=n(s,n(r(o,i),i.p[3])),o=n(o,n(r(s,i),i.p[4])),s=n(s,n(r(o,i),i.p[5])),o=n(o,n(r(s,i),i.p[6])),s=n(s,n(r(o,i),i.p[7])),o=n(o,n(r(s,i),i.p[8])),s=n(s,n(r(o,i),i.p[9])),o=n(o,n(r(s,i),i.p[10])),s=n(s,n(r(o,i),i.p[11])),o=n(o,n(r(s,i),i.p[12])),s=n(s,n(r(o,i),i.p[13])),o=n(o,n(r(s,i),i.p[14])),s=n(s,n(r(o,i),i.p[15])),o=n(o,n(r(s,i),i.p[16])),e.right=o,e.left=n(s,i.p[17])},t._decryptBlock=function(e,i){var n=t.xor,r=t.union,o=e.left,s=e.right;o=n(o,i.p[17]),s=n(s,n(r(o,i),i.p[16])),o=n(o,n(r(s,i),i.p[15])),s=n(s,n(r(o,i),i.p[14])),o=n(o,n(r(s,i),i.p[13])),s=n(s,n(r(o,i),i.p[12])),o=n(o,n(r(s,i),i.p[11])),s=n(s,n(r(o,i),i.p[10])),o=n(o,n(r(s,i),i.p[9])),s=n(s,n(r(o,i),i.p[8])),o=n(o,n(r(s,i),i.p[7])),s=n(s,n(r(o,i),i.p[6])),o=n(o,n(r(s,i),i.p[5])),s=n(s,n(r(o,i),i.p[4])),o=n(o,n(r(s,i),i.p[3])),s=n(s,n(r(o,i),i.p[2])),o=n(o,n(r(s,i),i.p[1])),e.right=o,e.left=n(s,i.p[0])},t._init=function(e){var i,n,r,o=e.split("").map((function(t){return 255&t.charCodeAt(0)})),s=t.kb,a=t._encryptBlock,u=0,l=0,h={left:0,right:0},p={p:s.p.slice(0).map((function(e){var i,n=o.length;for(i=0;i<4;i++)l=l*t.POW8|o[u++%n];return(e>>16^l>>16)<<16|65535&(65535&e^65535&l)})),s0:s.s0.slice(0),s1:s.s1.slice(0),s2:s.s2.slice(0),s3:s.s3.slice(0)};for(i=0,r=p.p.length;i<r;)a(h,p),p.p[i++]=h.left,p.p[i++]=h.right;for(i=0;i<4;i++)for(n=0,r=p["s"+i].length;n<r;)a(h,p),p["s"+i][n++]=h.left,p["s"+i][n++]=h.right;return p},t.decrypt=function(e,i){for(var n=t._decryptBlock,r=t._init(i),o=[],s=gP.decode(e),a=s.length>>3,u=0,l={left:null,right:null},h=0;h<a;h++){l.left=s[u]*t.POW24|s[u+1]*t.POW16|s[u+2]*t.POW8|s[u+3],l.right=s[u+4]*t.POW24|s[u+5]*t.POW16|s[u+6]*t.POW8|s[u+7],n(l,r);var p=l.left,c=l.right;o.push(p>>24&255),o.push(p>>16&255),o.push(p>>8&255),o.push(255&p),o.push(c>>24&255),o.push(c>>16&255),o.push(c>>8&255),o.push(255&c),u+=8}if(o[o.length-1]==o[o.length-2]||1==o[o.length-1]){var f=o[o.length-1];o.splice(o.length-f,f)}return String.fromCharCode.apply(null,o)},t.POW2=Math.pow(2,2),t.POW3=Math.pow(2,3),t.POW4=Math.pow(2,4),t.POW8=Math.pow(2,8),t.POW16=Math.pow(2,16),t.POW24=Math.pow(2,24),t.kb={p:[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s0:[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],s1:[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],s2:[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],s3:[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462],k:[202,218,204,100]},t}(),mP=function(){function t(){}return t.eqaulsUpperDomain=function(t,e){return t==e||0===t.indexOf("*")&&(t=t.substr(1,t.length-1),e.substr(e.indexOf(t),t.length)==t)},t._getLDKey=function(t){for(var e="",i=0,n=t.length;i<n;i++)e+=String.fromCharCode(t[i]>>1);return e},t.includedDomains=function(t,e,i){for(var n=t.split(","),r=0,o=n.length;r<o;r++){var s=n[r];if(this.eqaulsUpperDomain(s,e))return!0;if(i&&s&&"*"===s[0]&&"*."!==s.substring(0,2))if(new RegExp("^/"+s.substring(1)+"/").exec(i))return!0}return!1},t.decrypt=function(t){for(var e={},i=vP.decrypt(t,"dkdl"+this._getLDKey(vP.kb.k)).split(";"),n=0,r=i.length;n<r;n++){var o=i[n].split("="),s=o[0],a=o[1];a&&a.length>0&&(e[s]=a)}return e},t}(),bP=function(t){function e(i,n,r){var o=t.call(this)||this;return o._inited=!1,o._testing=!1,o._dirty=!0,o._toAnimation=0,o._invalidateLock=!1,o._lockDirty=!1,o._cssVars={},o.loaded=!1,o._windowResizeHandler=function(t){o._windowResized()},o._clickHandler=function(t){o._pointerHandler&&o._pointerHandler.handleClick(o.toOffset(t))},o._dblClickHandler=function(t){o._pointerHandler&&o._pointerHandler.handleDblClick(o.toOffset(t))},o._touchMoveHandler=function(t){},o._pointerDownHandler=function(t){o._pointerHandler&&o._pointerHandler.handleDown(o.toOffset(t))},o._pointerMoveHandler=function(t){o._pointerHandler&&o._pointerHandler.handleMove(o.toOffset(t))},o._pointerUpHandler=function(t){o._pointerHandler&&o._pointerHandler.handleUp(o.toOffset(t))},o._pointerCancelHandler=function(t){},o._pointerLeaveHandler=function(t){},o._keyPressHandler=function(t){},o._wheelHandler=function(t){},function(){var t,e=location.hostname,i="RealChart를 사용하려면 도움말을 참조하세요.\nhttps://www.realchart.co.kr/";try{if(!(t=window.realChartLic))throw new Error(i)}catch(t){throw new Error(i)}var n=mP.decrypt(t);if("RealChart"!==n.name||"RealChart"!==yP.name)throw new Error(i);try{var r=n.server.toLowerCase(),o=location.pathname.toLowerCase();if(yP.license!=FS.Developer&&!mP.includedDomains(r,e.toLowerCase(),o))throw new Error(i);var s=n.lic.toLowerCase();if(!Object.values(FS).includes(s))throw new Error(i);if(yP.code=n.code,yP.license=n.lic,s==FS.Evaluation||s==FS.Limited){var a=n.expire.split(".").map((function(t){return parseInt(t)})),u=new Date(a[0],a[1],a[2],23,59,59,999);if(new Date>u)throw new Error("라이선스가 만료되었습니다.")}}catch(t){throw new Error(i)}}(),!i&&n instanceof HTMLDivElement&&(i=n.ownerDocument),o._initControl(i||document,n,r||e.CLASS_NAME),o._resigterEventHandlers(o._dom),o._inited=!0,o.invalidate(!0),o}return Lx(e,t),e.prototype._doDestroy=function(){this._unresigterEventHandlers(this._dom),dP.remove(this._dom),this._dom=null,this._container=null},e.prototype.isInited=function(){return this._inited},e.prototype.isTesting=function(){return this._testing},e.prototype.doc=function(){return this._dom.ownerDocument},e.prototype.dom=function(){return this._dom},e.prototype.svg=function(){return this._svg},e.prototype.width=function(){return this._container.offsetWidth},e.prototype.height=function(){return this._container.offsetHeight},e.prototype.contentWidth=function(){return this.width()-this._padding.left-this._padding.right},e.prototype.contentHeight=function(){return this.height()-this._padding.top-this._padding.bottom},e.prototype.contentRight=function(){return this.width()-this._padding.right},e.prototype.clipContainer=function(){return this._defs},e.prototype.setData=function(t,e,i){kS(e)?(this._root.dom.removeAttribute("data-"+t),i&&this._dom.removeAttribute("data-"+t)):(this._root.dom.setAttribute("data-"+t,e),i&&this._dom.setAttribute("data-"+t,e))},e.prototype.clearDefs=function(){dP.clearChildren(this._defs)},e.prototype.$_clearDefs=function(t){for(var e=this._defs.children||[],i=e.length-1;i>=0;i--)e[i].hasAttribute(t)&&e[i].remove()},e.prototype.clearAssetDefs=function(){this.$_clearDefs(wP.ASSET_KEY)},e.prototype.clearTemporaryDefs=function(){this.$_clearDefs(wP.TEMP_KEY)},e.prototype.appendDom=function(t){t&&this._htmlRoot.append(t)},e.prototype.addElement=function(t){t&&this._root.add(t)},e.prototype.setPointerHandler=function(t){this._pointerHandler=t},e.prototype.invalidate=function(t){void 0===t&&(t=!1),t||!this._invalidateLock&&!this._dirty&&this._inited?(this._dirty=!0,this._requestTimer||this._testing||this.$_requestRender()):this._invalidateLock&&(this._lockDirty=!0)},e.prototype.invalidateLayout=function(t){void 0===t&&(t=!1),this.invalidate(t)},e.prototype.setLock=function(){this._invalidateLock=!0},e.prototype.releaseLock=function(t){void 0===t&&(t=!0),this._invalidateLock&&(this._invalidateLock=!1),this._lockDirty&&t&&this.invalidate(),this._lockDirty=!1},e.prototype.lock=function(t){this.setLock();try{t(this)}finally{this.releaseLock()}},e.prototype.silentLock=function(t){this.setLock();try{t(this)}finally{this.releaseLock(!1)}},e.prototype.getBounds=function(){return this._dom.getBoundingClientRect()},e.prototype.setAnimation=function(t){this._toAnimation=t||0},e.prototype.fling=function(t,e){},e.prototype.getCssVar=function(t){var e=this._cssVars[t];return t in this._cssVars?this._cssVars[t]:(e=getComputedStyle(this._root.dom).getPropertyValue(t),this._cssVars[t]=e,e)},e.prototype.clipBounds=function(t,e,i,n,r){void 0===t&&(t=NaN),void 0===e&&(e=NaN),void 0===i&&(i=NaN),void 0===n&&(n=NaN),void 0===r&&(r=0);var o=new VP(this.doc(),t,e,i,n,r,r);return this._defs.appendChild(o.dom),o},e.prototype.clipCircle=function(){var t=new LP(this.doc());return this._defs.appendChild(t.dom),t},e.prototype.addDef=function(t){this._defs.appendChild(t)},e.prototype.removeDef=function(t){if(jx(t))for(var e in this._defs.children)if(e instanceof Element&&e.id===t){t=e;break}t instanceof Element&&this._defs.removeChild(t)},e.prototype.containerToElement=function(t,e,i){var n=this._container.getBoundingClientRect(),r=t.getBounds();return{x:e-r.x+n.x,y:i-r.y+n.y}},e.prototype.svgToElement=function(t,e,i){var n=this._svg.getBoundingClientRect(),r=t.getBounds();return{x:e-r.left+n.left,y:i-r.top+n.top}},e.prototype.elementToSvg=function(t,e,i){var n=this._svg.getBoundingClientRect(),r=t.getBounds();return{x:e+r.left-n.left,y:i+r.top-n.top}},e.prototype._setTesting=function(){this._testing=!0,wP.TESTING=!0},e.prototype._setSize=function(t,e){isNaN(t)||(this._container.style.width=t+"px"),isNaN(e)||(this._container.style.height=e+"px")},e.prototype.$_addListener=function(t,e,i){t.addEventListener(e,i)},e.prototype._resigterEventHandlers=function(t){window.addEventListener("resize",this._windowResizeHandler),this.$_addListener(t,"click",this._clickHandler),this.$_addListener(t,"dblclick",this._dblClickHandler),this.$_addListener(t,"touchmove",this._touchMoveHandler),this.$_addListener(t,"pointerdown",this._pointerDownHandler),this.$_addListener(t,"pointermove",this._pointerMoveHandler),this.$_addListener(t,"pointerup",this._pointerUpHandler),this.$_addListener(t,"pointercancel",this._pointerCancelHandler),this.$_addListener(t,"pointerleave",this._pointerLeaveHandler),this.$_addListener(t,"keypress",this._keyPressHandler),this.$_addListener(t,"wheel",this._wheelHandler)},e.prototype._unresigterEventHandlers=function(t){window.removeEventListener("resize",this._windowResizeHandler),t.removeEventListener("click",this._clickHandler),t.removeEventListener("dblclick",this._dblClickHandler),t.removeEventListener("touchmove",this._touchMoveHandler),t.removeEventListener("pointerdown",this._pointerDownHandler),t.removeEventListener("pointermove",this._pointerMoveHandler),t.removeEventListener("pointerup",this._pointerUpHandler),t.removeEventListener("pointercancel",this._pointerCancelHandler),t.removeEventListener("pointerleave",this._pointerLeaveHandler),t.removeEventListener("keypress",this._keyPressHandler),t.removeEventListener("wheel",this._wheelHandler)},e.prototype._prepareRenderers=function(t){},e.prototype._initControl=function(t,e,i){if(!this._inited){e instanceof HTMLDivElement?this._container=e:this._container=t.getElementById(e),this._container instanceof HTMLDivElement||IS(lS.invalidOuterDiv,e);var n=this._container.ownerDocument,r=this._dom=n.createElement("div");Gx(r.style,{position:"relative",width:"100%",height:"100%",boxSizing:"border-box",overflow:"hidden","-webkit-touch-callout":"none","-webkit-user-select":"none","user-select":"none","-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"}),r.className=i,this._container.appendChild(r);var o=this._svg=n.createElementNS(Rx,"svg");o.classList.add("rct-svg"),o.style.setProperty("overflow","visible","important"),o.setAttribute("width","100%"),o.setAttribute("height","100%");var s=n.createElement("desc");s.textContent="Created by RealChart v1.1.0",o.appendChild(s);var a=this._defs=n.createElementNS(Rx,"defs");this._initDefs(n,a),o.appendChild(a),r.appendChild(o),this._root=new SP(this),o.appendChild(this._root._dom),this._htmlRoot=n.createElement("div"),r.appendChild(this._htmlRoot),Gx(this._htmlRoot.style,{position:"absolute"})}},e.prototype._initDefs=function(t,i){var n=t.createElementNS(Rx,"filter");n.setAttribute("id",e.SHADOW_FILTER);var r=t.createElementNS(Rx,"feGaussianBlur");r.setAttribute("stdDeviation","1.5"),r.setAttribute("in","SourceAlpha"),n.appendChild(r);var o=t.createElementNS(Rx,"feOffset");o.setAttribute("dx","1"),o.setAttribute("dy","1"),o.setAttribute("result","offsetblur"),n.appendChild(o);var s=t.createElementNS(Rx,"feFlood");s.setAttribute("flood-color","#000"),n.appendChild(s);var a=t.createElementNS(Rx,"feComposite");a.setAttribute("in2","offsetblur"),a.setAttribute("operator","in"),n.appendChild(a);var u=t.createElementNS(Rx,"feMerge"),l=t.createElementNS(Rx,"feMergeNode"),h=t.createElementNS(Rx,"feMergeNode");h.setAttribute("in","SourceGraphic"),u.appendChild(l),u.appendChild(h),n.appendChild(u),i.appendChild(n)},e.prototype._render=function(){this.$_render()},e.prototype.$_requestRender=function(){var t=this;window.requestAnimationFrame?this._requestTimer=window.requestAnimationFrame((function(){return t.$_render()})):setTimeout((function(){t.$_render()}),0)},e.prototype.updateNow=function(){this.$_render()},e.prototype.$_render=function(){if(+new Date<=this._toAnimation)this.$_requestRender();else{sS.LOGGING&&console.time("render chart");try{this._doBeforeRender();var t=this._dom.getBoundingClientRect(),e=this._svg.getBoundingClientRect(),i=this._svg.clientWidth,n=this._svg.clientHeight;Gx(this._htmlRoot.style,{left:VS(e.left-t.left),top:VS(e.top-t.top)}),this._doRenderBackground(this._container.firstElementChild,this._root,i,n);var r=this._padding=dP.getPadding(this._root.dom);this._doRender({x:r.left,y:r.top,width:i-r.left-r.right,height:n-r.top-r.bottom})}finally{this.loaded=!0,this._dirty=!1,this._requestTimer=null,this._doAfterRender(),sS.LOGGING&&console.timeEnd("render chart")}}},e.prototype._doBeforeRender=function(){},e.prototype._doAfterRender=function(){},e.prototype._doRenderBackground=function(t,e,i,n){},e.prototype._windowResized=function(){this.invalidateLayout()},e.prototype.toOffset=function(t){var e=this._container.getBoundingClientRect();return t.pointX=t.clientX-e.left,t.pointY=t.clientY-e.top,t},e.prototype.setPointerCapture=function(t){this._dom.setPointerCapture(t.pointerId)},e.prototype.releasePointerCapture=function(t){this._dom.releasePointerCapture(t.pointerId)},e.CLASS_NAME="rct-control",e.SHADOW_FILTER="rr-chart-shadow-filter",e._animatable=!0,e}(cS),wP=function(t){function e(e,i,n){void 0===n&&(n=_S);var r=t.call(this)||this;return r._visible=!0,r._zIndex=0,r._scaleX=1,r._scaleY=1,r._rotation=0,r._styles={},r._styleDirty=!1,r._dom=e.createElementNS(Rx,n||"g"),(r._styleName=i||"")&&r.setAttr("class",r._styleName),r}return Lx(e,t),e.prototype._doDestroy=function(){this.remove()},Object.defineProperty(e.prototype,"doc",{get:function(){return this._dom.ownerDocument},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dom",{get:function(){return this._dom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this._parent&&this._parent.control},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zIndex",{get:function(){return this._zIndex},set:function(t){t!==this._zIndex&&(this._zIndex=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(t){t!==this._x&&(this._x=t,this.setAttr("x",this._x))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tx",{get:function(){return this._tx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(t){t!==this._y&&(this._y=t,this.setAttr("y",this._y))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ty",{get:function(){return this._ty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){t!==this._width&&(this._width=t,this.setAttr("width",isNaN(t)?"":t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){t!==this._height&&(this._height=t,this.setAttr("height",isNaN(t)?"":t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(t){this.setVis(t)},enumerable:!1,configurable:!0}),e.prototype.setVis=function(t){return t!==this._visible&&(this._visible=t,this._dom&&(this._dom.style.display=this._visible?"":"none")),this._visible},Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){t!=this._rotation&&(this._rotation=t,this._updateTransform())},enumerable:!1,configurable:!0}),e.prototype.setRotation=function(t,e,i){return t===this._originX&&e===this._originY&&i===this._rotation||(this._originX=t,this._originY=e,this._rotation=i,this._updateTransform()),this},e.prototype.getStyle=function(t){return window.getComputedStyle(this._dom).getPropertyValue(t)},e.prototype.hasStyle=function(t){return this.dom.classList.contains(t)},e.prototype.add=function(t){return t&&t._parent!==this&&(t._parent=this,this._dom.appendChild(t._dom),t._doAttached(this)),t},e.prototype.insertChild=function(t,e){return t&&t._parent!==this&&(t._parent=this,this._dom.insertBefore(t._dom,e._dom),t._doAttached(this)),t},e.prototype.insertAfter=function(t,e){return t&&t._parent!==this&&(t._parent=this,e._dom.nextSibling?this._dom.insertBefore(t._dom,e._dom.nextSibling):this._dom.appendChild(t._dom),t._doAttached(this)),t},e.prototype.insertFirst=function(t){return t&&t._parent!==this&&(t._parent=this,this._dom.insertBefore(t._dom,this._dom.firstChild),t._doAttached(this)),t},e.prototype.appendElement=function(t,e){var i=t.createElementNS(Rx,e);return this._dom.appendChild(i),i},e.prototype.insertElement=function(t,e,i){var n=t.createElementNS(Rx,e);return this._dom.insertBefore(n,i),n},e.prototype.remove=function(){return this._parent&&(this._parent._dom.removeChild(this._dom),this._parent=null,this._doDetached(this)),this},e.prototype.getAttr=function(t){return this._dom.getAttribute(t)},e.prototype.setAttr=function(t,e){return this._dom.setAttribute(t,e),this},e.prototype.setAttrEx=function(t,e){return kS(e)?this._dom.removeAttribute(t):this._dom.setAttribute(t,e),this},e.prototype.setAttrs=function(t){for(var e in t)this._dom.setAttribute(e,t[e]);return this},e.prototype.unsetAttr=function(t){return this._dom.removeAttribute(t),this},e.prototype.getBounds=function(){return this._dom.getBoundingClientRect()},e.prototype.setBounds=function(t,e,i,n){return this.trans(t,e),this.resize(i,n),this},e.prototype.setRect=function(t){return this.trans(t.x,t.y),this.resize(t.width,t.height),this},e.prototype.getRect=function(){return{x:this._tx,y:this._ty,width:this.width,height:this.height}},e.prototype.getSize=function(){return{width:this.width,height:this.height}},e.prototype.getBBox=function(){return this._dom.getBBox()},e.prototype.controlToElement=function(t,e){return this.control.containerToElement(this,t,e)},e.prototype.svgToElement=function(t,e){return this.control.svgToElement(this,t,e)},e.prototype.elementToSvg=function(t,e){return this.control.elementToSvg(this,t,e)},e.prototype.move=function(t,e){return this.x=t,this.y=e,this},e.prototype.setPos=function(t,e){this._x=t,this._y=e},e.prototype.isDomAnimating=function(){return!!this._dom.getAnimations&&this._dom.getAnimations().length>0},e.prototype.rotate=function(t){return t!==this._rotation&&(this._rotation=t,this._updateTransform()),this},e.prototype.internalRotate=function(t){this._rotation=t},e.prototype.scale=function(t){return this._scaleX===t&&this._scaleY===t||(this._scaleX=this._scaleY=t,this._updateTransform()),this},e.prototype.trans=function(t,e){return t===this._tx&&e===this._ty||(sS.isValidNum(t)&&(this._tx=t),sS.isValidNum(e)&&(this._ty=e),this._updateTransform()),this},e.prototype.transp=function(t){return this.trans(t.x,t.y)},e.prototype.transEx=function(t,e,i,n){var r=this;if(void 0===i&&(i=0),void 0===n&&(n=!0),t=sS.isNumber(t)?t:this._tx,e=sS.isNumber(e)?e:this._ty,t!==this._tx||e!==this._ty){if(i>0){var o=this._dom.animate([{transform:"translate(".concat(this._tx,"px,").concat(this._ty,"px)")},{transform:"translate(".concat(t,"px,").concat(e,"px)")}],{duration:i,fill:"none"});n&&(null==o||o.addEventListener("finish",(function(){var t;return null===(t=r.control)||void 0===t?void 0:t.invalidateLayout()})))}this._tx=t,this._ty=e,this._updateTransform()}return this},e.prototype.transX=function(t){return t!==this._tx&&sS.isValidNum(t)&&(this._tx=t,this._updateTransform()),this},e.prototype.transY=function(t){return t!==this._ty&&sS.isValidNum(t)&&(this._ty=t,this._updateTransform()),this},e.prototype.resize=function(t,e,i){void 0===i&&(i=!0);var n=!1;return t!==this._width&&(this._width=Math.max(0,t),i&&this.setAttrEx("width",this._width),n=!0),e!==this._height&&(this._height=Math.max(0,e),i&&this.setAttrEx("height",this._height),n=!0),n},e.prototype.appendDom=function(t){return t&&this._dom.appendChild(t),t},e.prototype.insertDom=function(t,e){return t&&this._dom.insertBefore(t,e),t},e.prototype.clearDom=function(){for(var t,e=this._dom;t=e.lastChild;)e.removeChild(t)},e.prototype.saveStyles=function(){this._saveStyle=this._dom.getAttribute("style")||null,this._saveClass=this._dom.getAttribute("class")},e.prototype.restoreStyles=function(){this._saveStyle!==_S&&(this._dom.setAttribute("style",this._saveStyle),delete this._saveStyle),this._saveClass&&(this._dom.setAttribute("class",this._saveClass),delete this._saveClass)},e.prototype.internalClearStyles=function(){var t=this.dom.style;for(var e in this._styles)t.removeProperty(RS(e));this._styles={}},e.prototype.clearStyles=function(){var t=this.dom.style,e=!1;for(var i in this._styles)t.removeProperty(RS(i)),e=!0;return this._styles={},e&&(this._styleDirty=!0),e},e.prototype.clearStyle=function(t){var e,i,n=!1;if(t){var r=this.dom.style;try{for(var o=Mx(t),s=o.next();!s.done;s=o.next()){var a=s.value;a in this._styles&&(r.removeProperty(RS(a)),delete this._styles[a],n=!0)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}n&&(this._styleDirty=!0)}return n},e.prototype.internalSetStyles=function(t){if(t){var e=this.dom.style;for(var i in t)e[i]=this._styles[i]=t[i]}},e.prototype.internalImportantStylesOrClass=function(t){if(jx(t))t&&this._dom.classList.add(t);else if(Bx(t)){var e=this.dom.style;for(var i in t)e.setProperty(RS(i),this._styles[i]=t[i],"important")}},e.prototype.setStyles=function(t){var e=!1;if(t){var i=this.dom.style;for(var n in t){var r=t[n];this._styles[n]!==r&&(this._styles[n]=r,"rx"==n?this._dom.setAttribute(n,r):i[n]=r,e=!0)}e&&(this._styleDirty=!0)}return e},e.prototype.resetStyles=function(t){var e=this.clearStyles();return this.setStyles(t)||e},e.prototype._resetClass=function(){this._styleName?this.setAttr("class",this._styleName):this.unsetAttr("class")},e.prototype.clearStyleAndClass=function(){this.clearStyles(),this._resetClass()},e.prototype.internalClearStyleAndClass=function(){this.internalClearStyles(),this._resetClass()},e.prototype.setStyleOrClass=function(t){jx(t)?(this._resetClass(),t&&this._dom.classList.add(t)):this.resetStyles(t)},e.prototype.internalSetStyleOrClass=function(t){jx(t)?t&&this._dom.classList.add(t):this.internalSetStyles(t)},e.prototype.addStyleOrClass=function(t){jx(t)?t&&this._dom.classList.add(t):Bx(t)&&this.setStyles(t)},e.prototype.setClass=function(t){this.setAttr("class",t)},e.prototype.setStyle=function(t,e){var i=!1;return e!==this._styles[t]&&(i=this._styleDirty=!0,this._styles[t]=e,this.dom.style[t]=e),i},e.prototype.internalSetStyle=function(t,e){e!==this._styles[t]&&(this._styles[t]=e,this.dom.style[t]=e)},e.prototype.setColor=function(t){this.dom.style.fill=this.dom.style.stroke=this._styles.fill=this._styles.stroke=t},e.prototype.setFill=function(t){this.dom.style.fill=this._styles.fill=t},e.prototype.setStroke=function(t){this.dom.style.stroke=this._styles.stroke=t},e.prototype.setTransparent=function(t){this.dom.style.setProperty("fill","transparent",t?"important":""),this.dom.style.setProperty("stroke","none",t?"important":"")},e.prototype.textAlign=function(){return this._styles.textAlign},e.prototype.setData=function(t,e){null==e?this.dom.removeAttribute("data-"+t):this.dom.setAttribute("data-"+t,iS(e,""))},e.prototype.unsetData=function(t){this.dom.removeAttribute("data-"+t)},e.prototype.setBoolData=function(t,e){e?this.dom.setAttribute("data-"+t,""):this.dom.removeAttribute("data-"+t)},e.prototype.hasData=function(t){return null!=this.dom.getAttribute("data-"+t)},e.prototype.removeLater=function(t,e){var i=this;if(this._parent)if(t>0){var n=this._dom.animate([{},{opacity:0}],{duration:t,fill:"none"});null==n||n.addEventListener("finish",(function(){i.remove(),null==e||e(i)}))}else this.remove();return this},e.prototype.hide=function(t){var e=this;if(this._parent)if(t>0){var i=this._dom.animate([{},{opacity:0}],{duration:t,fill:"none"});null==i||i.addEventListener("finish",(function(){e.setVis(!1)}))}else this.setVis(!1);return this},e.prototype.clipRect=function(t,e,i,n,r){void 0===r&&(r=0);var o=this.control.clipBounds(t,e,i,n,r);return this.setClip(o),o},e.prototype.setClip=function(t){t?this.setAttr("clip-path","url(#"+(t.id||t)+")"):this.unsetAttr("clip-path")},e.prototype.setTemporary=function(){return this.setAttr(e.TEMP_KEY,1),this},e.prototype.setCursor=function(t){this._dom.style.cursor=t},e.prototype.ignorePointer=function(){this._dom.style.pointerEvents="none"},e.prototype.contains=function(t){return this._dom.contains(t)},e.prototype.front=function(t,e){if(this.parent){var i=this.parent._dom,n=this._dom,r=t.length;if(e){var o=e.sort((function(e,i){return t.indexOf(e)-t.indexOf(i)}))[e.length-1];this!==o&&(n.remove(),o===t[r-1]?i.appendChild(n):i.insertBefore(n,t[t.indexOf(o)+1].dom))}else r>1&&n!==i.lastElementChild&&(n.remove(),i.appendChild(n))}},e.prototype.back=function(t){if(this.parent&&t.length>1){var e=t.indexOf(this);this._dom.remove(),e<t.length-1?this.parent.dom.insertBefore(this._dom,t[e+1].dom):this.parent.dom.appendChild(this._dom)}},e.prototype.invalidate=function(){var t;null===(t=this.control)||void 0===t||t.invalidateLayout()},e.prototype.sort=function(t){var e=this;t.forEach((function(t){return e._dom.appendChild(t._dom)}))},e.prototype.getParent=function(t){for(var e=this._parent;e;){if(e instanceof t)return e;e=e._parent}},e.prototype._testing=function(){return e.TESTING},e.prototype._doAttached=function(t){},e.prototype._doDetached=function(t){},e.prototype._updateTransform=function(){this._dom.setAttribute("transform",this.getTransform())},e.prototype.getTransform=function(){var t=this._dom,e=this._tx,i=this._ty,n=[];(sS.isValidNum(e)||sS.isValidNum(i))&&(n=["translate("+(e=e||0)+","+(i=i||0)+")"]),sS.isNotEmpty(this._matrix)&&n.push("matrix("+this._matrix.join(",")+")"),this._rotation&&n.push("rotate("+this._rotation+" "+sS.pick(this._originX,t.getAttribute("x"),0)+" "+sS.pick(this._originY,t.getAttribute("y")||0)+")");var r=sS.getNumber(this._scaleX,1),o=sS.getNumber(this._scaleY,1);return 1===r&&1===o||n.push("scale("+r+" "+o+")"),n.length?n.join(" "):""},e.DEBUGGING=!1,e.TESTING=!1,e.ASSET_KEY="_asset_",e.TEMP_KEY="_temp_",e}(cS),xP=function(t){function e(e,i){return t.call(this,e,i,"g")||this}return Lx(e,t),e}(wP),SP=function(t){function e(e){var i=t.call(this,e.doc(),"rct-root")||this;return i._control=e,i}return Lx(e,t),Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!1,configurable:!0}),e}(wP),PP=function(t){function e(e){var i=t.call(this,e,_S,"clipPath")||this,n=i._id=sS.uniqueKey()+"-";return i.setAttr("id",n),i}return Lx(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}(wP),VP=function(t){function e(e,i,n,r,o,s,a){void 0===i&&(i=NaN),void 0===n&&(n=NaN),void 0===r&&(r=NaN),void 0===o&&(o=NaN),void 0===s&&(s=0),void 0===a&&(a=0);var u=t.call(this,e)||this,l=u._rect=new wP(e,null,"rect");return l.setAttr("fill","none"),s>0&&l.setAttr("rx",String(s)),a>0&&l.setAttr("ry",String(a)),isNaN(i)||l.setBounds(i,n,r,o),u.add(l),u}return Lx(e,t),e.prototype.setBounds=function(t,e,i,n){return this._rect.move(t,e),this._rect.resize(i,n),this},e.prototype.resize=function(t,e,i){return this._rect.resize(t,e)},Object.defineProperty(e.prototype,"x",{get:function(){return this._rect.x},set:function(t){this._rect.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._rect.y},set:function(t){this._rect.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._rect.width},set:function(t){this._rect.width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._rect.height},set:function(t){this._rect.height=t},enumerable:!1,configurable:!0}),e}(PP),kP=function(t){function e(e,i,n){void 0===i&&(i=void 0),void 0===n&&(n=void 0);var r=t.call(this,e,i,"path")||this;return n&&r.setPath(n),r}return Lx(e,t),e.prototype.path=function(){return this._path},e.prototype.setPath=function(t){var e=jx(t)?t:t.join(" ");return e!==this._path&&this.setAttr("d",this._path=e),this},e}(wP);!function(t){function e(e){var i=t.call(this,e)||this;return i._path=new kP(e),i.add(i._path),i}Lx(e,t),e.prototype.setPath=function(t){this._path.setPath(t)}}(PP);var AP,CP,EP,LP=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._circle=new wP(e,null,"circle")),i}return Lx(e,t),e.prototype.setCircle=function(t,e,i){this._circle.setAttrs({cx:t,cy:e,r:i})},e}(PP),NP=function(){function t(){this.dragging=!1}return t.prototype.start=function(t,e,i,n,r){return this.cancel(),!!this._doStart(t,e,i,n,r)&&(this.dragging=!0,this._showFeedback(n,r),!0)},t.prototype.drag=function(t,e,i,n,r){return!(!this.dragging||!this._doDrag(t,e,i,n,r))&&(this._moveFeedback(n,r),!0)},t.prototype.cancel=function(){if(this.dragging)try{this.dragging=!1,this._doCanceled()}finally{this.end(-1,-1)}},t.prototype.drop=function(t,e,i){if(this.dragging)try{this.dragging=!1,this._canAccept(t,e,i)?this._doCompleted(t,e,i):this._doCanceled()}finally{this.end(e,i)}},t.prototype.end=function(t,e){try{this.dragging=!1,this._hideFeedback()}finally{this._doEnded(t,e)}},t.prototype._canAccept=function(t,e,i){return!0},t.prototype._showFeedback=function(t,e){},t.prototype._moveFeedback=function(t,e){},t.prototype._hideFeedback=function(){},t.prototype._doStart=function(t,e,i,n,r){return!0},t.prototype._doCanceled=function(){},t.prototype._doCompleted=function(t,e,i){},t.prototype._doEnded=function(t,e){},t}(),MP=function(){function t(t){this.r=0,this.g=0,this.b=0,this.a=1,(t=t&&t.trim())&&(sS.startsWith(t,"rgb(")&&sS.endsWith(t,")")?this.$_parseRgb(t.substring(4,t.length-1)):sS.startsWith(t,"rgba(")&&sS.endsWith(t,")")?this.$_parseRgb(t.substring(5,t.length-1)):sS.startsWith(t,"#")&&this.$_parseNumber(t.substr(1)))}return t.isBright=function(e){return new t(e).isBright()},t.getContrast=function(e,i,n){return new t(e).getContrast(i,n)},Object.defineProperty(t.prototype,"rgba",{get:function(){return"rgba("+[this.r,this.g,this.b,this.a].join(",")+")"},enumerable:!1,configurable:!0}),t.prototype.isBright=function(){return.299*this.r+.587*this.g+.114*this.b>140},t.prototype.getContrast=function(t,e){return this.isBright()?t||"#000000":e||"#FFFFFF"},t.prototype.brighten=function(e,i){return void 0===i&&(i=null),(i=i||new t(null)).r=Math.ceil(this.r+(255-this.r)*e),i.g=Math.ceil(this.g+(255-this.g)*e),i.b=Math.ceil(this.b+(255-this.b)*e),i.a=this.a,i},t.prototype.toString=function(){return this.rgba},t.prototype.$_parseRgb=function(t){var e=t.split(/\,\s*/);e.length>=3&&(this.r=+e[0],this.g=+e[1],this.b=+e[2],e.length>=4?this.a=+e[3]:this.a=1)},t.prototype.$_parseNumber=function(t){var e,i=t.length;i>6?(e=parseInt(t.substr(0,6),16),this.a=parseInt(t.substring(6),16)/255):i>0&&(3===i&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),e=parseInt(t,16)),this.r=(16711680&e)>>16,this.g=(65280&e)>>8,this.b=255&e},t}();!function(t){t.START="start",t.MIDDLE="middle",t.END="end"}(AP||(AP={})),function(t){t.TOP="top",t.MIDDLE="middle",t.BOTTOM="bottom"}(CP||(CP={})),function(t){t.TRUNCATE="truncate",t.WRAP="wrap",t.ELLIPSIS="ellipsis"}(EP||(EP={}));var TP=function(t){function e(e,i){void 0===i&&(i=_S);var n=t.call(this,e,i,"text")||this;return n._layout=CP.TOP,n._overflow=EP.WRAP,n._dirty=!0,n._text="",n.anchor=AP.MIDDLE,n}return Lx(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){(t=t||"")!==this._text&&(this._dirty=!0,this.dom.textContent=this._text=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"anchor",{get:function(){return this.getAttr("text-anchor")},set:function(t){t!==this.anchor&&this.setAttr("text-anchor",t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},set:function(t){t!==this._layout&&(this._layout=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflow",{get:function(){return this._overflow},set:function(t){t!==this._overflow&&(this._overflow=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this.getAttr("fill-opacity")},set:function(t){this.setAttr("fill-opacity",t)},enumerable:!1,configurable:!0}),e.prototype.getAscent=function(t){return.75*t},e.prototype.layoutText=function(t){var e,i=this.getBBox(),n=this.getAscent(isNaN(t)?i.height:t);switch(this._layout){case CP.MIDDLE:e=Math.floor(n/2);break;case CP.BOTTOM:e=0;break;default:e=Math.ceil(n)}this.y=e},e.prototype.isFitIn=function(t){return this.calcWidth()>=t},e.prototype.calcWidth=function(){var t=this._text.length;return t&&this.dom.getSubStringLength(0,t)},e.prototype.calcRangeWidth=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=Number.MAX_SAFE_INTEGER),t=Jx(0,t),(e=Kx(this._text.length,e))>t?this.dom.getSubStringLength(t,e-t):0},e.prototype.truncate=function(t,e){var i=this._text;if(i){var n,r=this.dom,o=0,s=i.length;do{n=Math.ceil((o+s)/2),r.getSubStringLength(0,n)>t?s=n-1:o=n}while(o<s);for(this.text=i.substring(0,o)+"…";o>0&&this.calcWidth()>t;)this.text=i.substring(0,--o)+"…"}},e.prototype.setContrast=function(t,e,i){return this.setStyleOrClass(MP.isBright(getComputedStyle(t).fill)?e:i),this},e.prototype.clearDom=function(){t.prototype.clearDom.call(this),this._dirty=!0},e.prototype.setStyles=function(e){var i=t.prototype.setStyles.call(this,e);return i&&this.layoutText(),i},e.prototype.setStyle=function(e,i){var n=t.prototype.setStyle.call(this,e,i);return n&&this.layoutText(),n},e.prototype.getBBox=function(){return(this._dirty||this._styleDirty)&&(this._bounds=this.dom.getBBox(),this._dirty=this._styleDirty=!1),this._bounds},e.prototype.getBBoundsTest=function(){return(this._dirty||this._styleDirty)&&(this._bounds={x:this.x,y:this.y,width:100,height:30},this._dirty=this._styleDirty=!1),this._bounds},e.prototype.stain=function(){this._dirty=!0},e}(wP),OP="$_TH",RP="$_TW",DP=function(){function t(){}return t.prototype.tag=function(){return""},t.prototype.parse=function(t){return this.text=t,this._doParse(t),this},t.prototype.getText=function(t,e){var i=this._literals,n=this.text;if(i&&e.callback)for(var r=0;r<i.length;r+=4){var o=e.callback(t,i[r+1]);if("number"==typeof o&&!isNaN(o)||"bigint"==typeof o)(s=i[3]?KS.getFormatter(i[3]):e.numberFormatter)&&(o=s.toStr(o));else if(o instanceof Date){var s;(s=i[3]?_P.getFormatter(i[3]):e.timeFormatter)&&(o=s.toStr(o,e.startOfWeek||0))}else null==o&&(o=i[r+2]||"");n=n.replace(i[r],o)}return n},t.prototype.prepareSpan=function(t,e,i){var n=this.getText(e,i);return t.textContent=n,t},t.prototype._doParse=function(t){this._literals=[];for(var e=0;e<t.length;){var i=t.indexOf("${",e);if(i<0&&(i=t.indexOf("%{",e)),i<0)break;var n=t.indexOf("}",i+2);if(n<0)break;var r=t.substring(i,n+1),o=r.substring(2,r.length-1),s=o.indexOf(";");if(s>0){var a=o.indexOf(";",s+1);a>=s?this._literals.push(r,o.substring(0,s),o.substring(s+1,a),o.substring(a+1)):this._literals.push(r,o.substring(0,s),o.substring(s+1),_S),0===this._literals[2].length&&(this._literals[2]=_S)}else this._literals.push(r,o,_S,_S);e=n+1}return 0==this._literals.length&&(this._literals=null),this},t}(),BP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.prepareSpan=function(t,e,i){var n=this.getText(e,i),r=n.indexOf(">")+1,o=n.indexOf(this.tag(),r);return this._doPrepare(t,n,r,o),t},e.prototype._doPrepare=function(t,e,i,n){t.textContent=e.substring(i,n);var r=e.indexOf("style=");if(r>0&&r<i){var o=e[r+6],s=e.indexOf(o,r+7);s>0&&s<i&&t.setAttribute("style",e.substring(r+7,s))}},e}(DP),FP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.tag=function(){return"</t>"},e}(BP),IP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.tag=function(){return"</b>"},e.prototype._doPrepare=function(e,i,n,r){t.prototype._doPrepare.call(this,e,i,n,r),e.setAttribute("class","rct-text-bold")},e}(BP),jP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.tag=function(){return"</i>"},e.prototype._doPrepare=function(e,i,n,r){t.prototype._doPrepare.call(this,e,i,n,r),e.setAttribute("class","rct-text-italic")},e}(BP),zP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.target="_blank",e}return Lx(e,t),e.prototype.tag=function(){return"</a>"},e.prototype._doPrepare=function(e,i,n,r){var o=this;i.substring(2,n-1).trim().split(/\s+/g).forEach((function(t){var e=t.indexOf("=");if(e>0){var i=t.substring(0,e),n=t.substring(e+1,t.length),r=n.substring(1,n.length-1);switch(i){case"href":o.url=r;break;case"target":o.target=r}}})),t.prototype._doPrepare.call(this,e,i,n,r),e.setAttribute("class","rct-text-link")},e}(BP),$P={t:FP,b:IP,i:jP,a:zP},HP=function(){function t(){}return Object.defineProperty(t.prototype,"words",{get:function(){return this._words.slice()},enumerable:!1,configurable:!0}),t.prototype.parse=function(t){function e(t){var e=i.length;e>0&&""===i[e-1].type?i[e-1].text+=t:i.push((new DP).parse(t))}for(var i=this._words=[],n=0;n<t.length;){if("<"==t[n]){var r=t[n+1],o=void 0;if(r in $P)if((l=t.indexOf(">",n+2))>=0){var s="</"+r+">",a=t.indexOf(s,l+1);if(a>=0){var u=t.substring(n,a+s.length);o=(new $P[r]).parse(u),n+=u.length}}if(!o){e(t.substring(n));break}this._words.push(o)}else{var l;if(!((l=t.indexOf("<",n+1))>=0)){e(t.substring(n));break}e(t.substring(n,l)),n=l}}return this},t}(),GP=/<br.*?>|\r\n|\n/,WP=function(){function t(t){this.setFormat(t)}return t.prototype.setFormat=function(t){t!==this._format&&this.$_parse(this._format=null!=t?String(t):t)},t.prototype.lines=function(){return this._lines.slice()},t.prototype.build=function(t,e,i,n,r){var o,s,a=t.doc,u=tS(this.lineHeight,1),l=this._lines,h=l.length,p=[],c=[];t.clearDom(),n=n||t;for(var f=t.getStyle("writing-mode")||t.getStyle("writing-mode"),_=f===zS||f===$S,d=0;d<h;d++){var y=l[d],g=0,v=0,m=null;try{for(var b=(o=void 0,Mx(y.words)),w=b.next();!w.done;w=b.next()){var x=w.value,S=(k=x.prepareSpan(t.appendElement(a,"tspan"),n,r)).getBBox();if(k[RP]=S.width,k[OP]=S.height,_?(g=Jx(g,k[RP]),v+=k[OP]):(g+=k[RP],v=Jx(v,k[OP])),m||(m=k),x instanceof zP){var P=a.createElementNS(Rx,"a");P.setAttribute("href",x.url),P.setAttribute("target",x.target),P.appendChild(k),t.appendDom(P)}}}catch(t){o={error:t}}finally{try{w&&!w.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}c.push(m),y[OP]=v*u,y[RP]=g*u,p.push(0==d?y[RP]/2:y[RP])}if(h>0){var V=l[0];for(d=1;d<c.length;d++)if(c[d]){var k;g=0,v=0;if(_&&null!=c[d-1]?g=Math.floor(V[RP]-t.getAscent(V[RP]))+t.getAscent(l[d][RP]):v=Math.floor(V[OP]-t.getAscent(V[OP]))+t.getAscent(l[d][OP]),c[d]==c.find((function(t){return null!=t}))&&null==c[0])(k=t.insertElement(a,"tspan",c[d])).textContent=".",k.style.fill="transparent",g+=(S=k.getBBox()).width,k[RP]=S.width,k[OP]=V[OP]=S.height,c[0]=k;switch(f){case zS:c[d].setAttribute("dx",String(g)),c[d].setAttribute("y","0");break;case $S:c[d].setAttribute("dx",String(-g)),c[d].setAttribute("y","0");break;default:c[d].setAttribute("x","0"),c[d].setAttribute("dy",String(v))}V=l[d]}if(_){var A=t.parent.dom.classList.contains("rct-annotation"),C=t.getBBox().width;g=(m=Tx(c,1)[0])[RP];if(A)m.setAttribute("dx",String(f===$S?C-g/2:g/2));else switch(f){case zS:m.setAttribute("x",String((C-g)/-2));break;case $S:m.setAttribute("x",String((C-g)/2))}}else t.layoutText(l[0][OP])}},t.prototype.layout=function(t,e,i,n,r){var o=t.getBBox(),s=0,a=0,u=t.getStyle("writing-mode");if(u===zS||u===$S)switch(s=r.left+(i-r.left-r.right-o.width),e){case"center":t.anchor=AP.MIDDLE,a=r.top+(n-r.top-r.bottom)/2;break;case"right":t.anchor=AP.END,a=o.height-r.bottom;break;default:t.anchor=AP.START,a=r.top}else switch(a=r.top+(n-r.top-r.bottom-o.height)/2,e){case"center":t.anchor=AP.MIDDLE,s=r.left+(i-r.left-r.right)/2;break;case"right":t.anchor=AP.END,s=o.width-r.right;break;default:t.anchor=AP.START,s=r.left}t.trans(s,a)},t.prototype.$_parse=function(t){var e,i,n=this._lines=[];if(t){var r=t.split(GP);try{for(var o=Mx(r),s=o.next();!s.done;s=o.next()){var a=s.value;n.push((new HP).parse(a))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}}},t}(),YP=function(){function t(t){this.source=t}return t.prototype.hasDef=function(){return!0},t}(),XP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._setStops=function(t,e){e.setAttribute("id",this.source.id);var i=this.source.color,n=null==this.source.opacity?1:this.source.opacity,r=Fx(i)?Ox([],Tx(i),!1):[i,"white"],o=Fx(n)?Ox([],Tx(n),!1):Array(r.length).fill(n);1===r.length&&r.push("white"),r.forEach((function(i,n){!function(t,e,i,n,r){var o=t.createElementNS(Rx,"stop");o.setAttribute("offset",String(i)),o.setAttribute("stop-color",n),o.setAttribute("stop-opacity",String(r)),e.appendChild(o)}(t,e,n/(r.length-1),i,null==o[n]?1:o[n])}))},e}(YP),UP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getEelement=function(t,e){var i=t.createElementNS(Rx,"linearGradient"),n=0,r=0,o=0,s=0;switch(this._setStops(t,i),e.dir){case"up":o=1;break;case"right":r=1;break;case"left":n=1;break;default:s=1}return i.setAttribute("x1",n),i.setAttribute("y1",o),i.setAttribute("x2",r),i.setAttribute("y2",s),i},e.TYPE="lineargradient",e}(XP),qP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getEelement=function(t,e){var i=t.createElementNS(Rx,"radialGradient");return kS(e.cx)||i.setAttribute("cx",e.cx),kS(e.cy)||i.setAttribute("cy",e.cy),kS(e.r)||i.setAttribute("r",e.r),this._setStops(t,i),i},e.TYPE="radialgradient",e}(XP),ZP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getEelement=function(t,i){var n,r,o,s,a=t.createElementNS(Rx,"pattern"),u=t.createElementNS(Rx,"path"),l=!1;if(a.setAttribute("id",i.id),a.setAttribute("patternUnits","userSpaceOnUse"),u.classList.add("rct-pattern"),+i.pattern>=0){var h=e.STOCK[+i.pattern%e.STOCK.length];n=h.path,r=h.style,l=!h.fill,o=h.width||20,s=h.height||20}else jx(i.pattern)&&(n=i.pattern,o=i.width||i.height||20,s=i.height||i.width||20);a.setAttribute("width",String(o)),a.setAttribute("height",String(s)),u.setAttribute("d",n),r&&Gx(u.style,r),i.style&&Gx(u.style,i.style),l&&(u.style.fill="none");var p=i.backgroundStyle;if(jx(p)||Bx(p)){var c=t.createElementNS(Rx,"rect");a.append(c),c.style.fill=jx(p)?p:p.fill,c.setAttribute("width",String(o)),c.setAttribute("height",String(s))}return a.append(u),a},e.TYPE="pattern",e.STOCK=[{path:"M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9",width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M0 0 L0 3 L5.2 6 L10.4 3 L10.4 0 M5.2 6 L5.2 12 L0 15 L0 18 M5.2 12 L10.4 15 L10.4 18",width:10.4,height:18,style:{strokeWidth:"0.3px"}},{path:"M0 0h5v5H0zM5 5h5v5H5z",fill:!0,width:10,height:10},{path:"m5 .037 4.957 4.957L5 9.951.043 4.994z",fill:!0,width:10,height:10},{path:"M0 2.8 L5 0 L10 2.8 L10 14 L5 16.8 L0 14 L0 2.8 M5 0 L5 5.6 L0 8.4 L5 11.2 L5 16.8 M5 5.6 L10 8.4 L5 11.2",style:{strokeWidth:"0.3px"},width:10,height:16.8},{path:"m5 .037 4.957 4.957L5 9.951.043 4.994z",fill:!1,width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M 0 0 L 12 12 L 24 0 M 4 0 L 12 8 L 20 0 M 8 0 L 12 4 L 16 0 M 0 4 L 8 12 L 0 20 M 0 8 L 4 12 L 0 16 M 0 24 L 12 12 L 24 24 M 4 24 L 12 16 L 20 24 M 8 24 L 12 20 L 16 24 M 24 20 L 16 12 L 24 4 M 24 16 L 20 12 L 24 8",width:24,height:24,fill:!1,style:{strokeWidth:"0.4px"}},{path:"M10 2.52H0M0 7.48h10M7.48 10V0M2.52 0v10",style:{strokeWidth:"0.3px"},width:5,height:5},{path:"M-2.5 1.25l5 2.5L7.5 1.25l5 2.5 M-2.5 6.25l5 2.5 5-2.5 5 2.5 M-2.5 11.25l5 2.5 5-2.5 5 2.5 M-2.5 16.25l5 2.5 5-2.5 5 2.5",width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M25 1.95v.26c-.79 0-1.43.64-1.43 1.43 0 .25.15.62.33.8l.31.31c.25.27.31.65.16.98l-.06.11c-.18.32-.5.52-.87.54h-4.56v4.56c.02.26.17.5.39.63l.11.06c.21.1.52.05.68-.11l.31-.31c.27-.24.61-.39.98-.4.93 0 1.69.76 1.69 1.69 0 .93-.76 1.69-1.69 1.69-.36-.02-.71-.16-.98-.4l-.31-.31a.63.63 0 0 0-.68-.11l-.11.06c-.23.13-.38.37-.39.63v4.56h4.56c.36.02.69.22.87.54l.06.11c.15.33.09.72-.16.98l-.31.31c-.2.22-.31.5-.33.8 0 .79.64 1.43 1.43 1.43v.26c-.93 0-1.69-.76-1.69-1.69.02-.36.16-.71.4-.98l.31-.31a.63.63 0 0 0 .11-.68l-.06-.11a.764.764 0 0 0-.63-.39h-4.56v4.56c-.02.36-.22.69-.54.87l-.11.06c-.33.15-.72.09-.98-.16l-.31-.31c-.22-.2-.5-.31-.8-.33-.79 0-1.43.64-1.43 1.43h-.26c0-.93.76-1.69 1.69-1.69.32 0 .75.18.98.4l.31.31c.19.17.45.21.68.11l.11-.06c.23-.13.38-.37.39-.63v-4.56h-4.56c-.36-.02-.69-.22-.87-.54l-.06-.11a.886.886 0 0 1 .16-.98l.31-.31c.2-.22.31-.5.33-.8a1.43 1.43 0 1 0-2.86 0c0 .25.15.62.33.8l.31.31c.25.27.31.65.16.98l-.06.11c-.18.32-.5.52-.87.54H6.38v4.56c.02.26.17.5.39.63l.11.06c.21.1.52.05.68-.11l.31-.31c.27-.24.61-.39.98-.4.93 0 1.69.76 1.7 1.69h-.26c0-.79-.64-1.43-1.43-1.43-.25 0-.62.15-.8.33l-.31.31c-.27.25-.65.31-.98.16l-.11-.06c-.32-.18-.52-.5-.54-.87v-4.56H1.56c-.26.02-.5.17-.63.39l-.06.11c-.1.21-.05.52.11.68l.31.31c.24.27.39.61.4.98 0 .93-.76 1.69-1.69 1.7v-.26c.79 0 1.43-.64 1.43-1.43 0-.25-.15-.62-.33-.8l-.31-.31a.888.888 0 0 1-.16-.98l.06-.11c.18-.32.5-.52.87-.54h4.56v-4.56a.812.812 0 0 0-.39-.63l-.11-.06a.647.647 0 0 0-.68.11l-.31.31c-.27.25-.62.39-.98.4-.93 0-1.69-.76-1.69-1.69s.76-1.69 1.69-1.69c.32 0 .75.18.98.4l.31.31c.19.17.45.21.68.11l.11-.06c.23-.13.38-.37.39-.63V6.38H1.56c-.36-.02-.69-.22-.87-.54l-.06-.11a.886.886 0 0 1 .16-.98l.31-.31c.2-.22.31-.5.33-.8 0-.79-.64-1.43-1.43-1.43v-.26c.93 0 1.69.76 1.69 1.69 0 .32-.18.75-.4.98l-.31.31a.63.63 0 0 0-.11.68l.06.11c.13.23.37.38.63.39h4.56V1.56c.02-.36.22-.69.54-.87l.11-.06c.33-.15.72-.09.98.16l.31.31c.22.2.5.31.8.33.79 0 1.43-.64 1.43-1.43h.26c0 .93-.76 1.69-1.69 1.69-.36-.02-.71-.16-.98-.4L7.57.98a.63.63 0 0 0-.68-.11l-.11.06c-.23.13-.38.37-.39.63v4.56h4.56c.36.02.69.22.87.54l.06.11c.15.33.09.72-.16.98l-.31.31c-.2.22-.31.5-.33.8a1.43 1.43 0 1 0 2.86 0c0-.25-.15-.62-.33-.8l-.31-.31a.888.888 0 0 1-.16-.98l.06-.11c.18-.32.5-.52.87-.54h4.56V1.56a.812.812 0 0 0-.39-.63l-.11-.06a.647.647 0 0 0-.68.11l-.31.31c-.27.25-.62.39-.98.4-.95 0-1.71-.76-1.71-1.69h.26c0 .79.64 1.43 1.43 1.43.25 0 .62-.15.8-.33l.31-.31c.27-.25.65-.31.98-.16l.11.06c.32.18.52.5.54.87v4.56h4.56c.26-.02.5-.17.63-.39l.06-.11c.1-.21.05-.52-.11-.68l-.31-.31c-.25-.27-.39-.62-.4-.98 0-.93.76-1.69 1.69-1.69ZM10.94 18.62c.26-.02.5-.17.63-.39l.06-.11c.1-.21.05-.52-.11-.68l-.31-.31c-.25-.27-.39-.62-.4-.98 0-.93.76-1.69 1.69-1.69s1.69.76 1.69 1.69c0 .32-.18.75-.4.98l-.31.31a.63.63 0 0 0-.11.68l.06.11c.13.23.37.38.63.39h4.56v-4.56c.02-.36.22-.69.54-.87l.11-.06c.33-.15.72-.09.98.16l.31.31c.22.2.5.31.8.33a1.43 1.43 0 1 0 0-2.86c-.25 0-.62.15-.8.33l-.31.31c-.27.25-.65.31-.98.16l-.11-.06c-.32-.18-.52-.5-.54-.87V6.38h-4.56c-.26.02-.5.17-.63.39l-.06.11c-.1.21-.05.52.11.68l.31.31c.24.27.39.61.4.98 0 .93-.76 1.69-1.69 1.69s-1.69-.76-1.69-1.69c.02-.36.16-.71.4-.98l.31-.31a.63.63 0 0 0 .11-.68l-.06-.11a.764.764 0 0 0-.63-.39H6.38v4.56c-.02.36-.22.69-.54.87l-.11.06c-.33.15-.72.09-.98-.16l-.31-.31c-.22-.2-.5-.31-.8-.33a1.43 1.43 0 1 0 0 2.86c.25 0 .62-.15.8-.33l.31-.31c.27-.25.65-.31.98-.16l.11.06c.32.18.52.5.54.87v4.56h4.56Z",width:25,height:25,fill:!1,style:{strokeWidth:"0.3px"}},{path:"M 0 8 L 8 0 L 12 4 L 4 12 Z M -2 2 L 2 6 M 2 -2 L 6 2 M 6 10 L 10 14 M 10 6 L 14 10",width:12,height:12,style:{strokeWidth:"0.5px"}},{path:"M0 13.66 6.34 10 10 16.34 3.66 20zM0 6.34 3.66 0 10 3.66 6.34 10zM10 16.34 13.66 10 20 13.66 16.34 20zM10 3.66 16.34 0 20 6.34 13.66 10zM0 6.34v7.32M20 6.36v7.3M6.34 10h7.32",width:20,height:20,style:{strokeWidth:"0.3px"},fill:!1}],e}(YP),KP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.prepare=function(){var t=this.source;return this._colors=Fx(t.colors)?t.colors.slice():[],"random"===t.mode?this._index=-1:("shuffle"===t.mode&&sS.shuffle(this._colors),this._index=0),this},e.prototype.getNext=function(){return this._index<0?this._colors[Math.floor(Math.random()*this._colors.length)]:this._colors[this._index++%this._colors.length]},e.prototype.hasDef=function(){return!1},e.prototype.getEelement=function(t,e){this._colors=Fx(e.colors)?e.colors:[]},e.TYPE="colors",e}(YP),JP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.prepare=function(){var t=this,e=this.source.rootUrl||"";this._images=[],this._map={},this.source.images.forEach((function(i){if(jx(i))t._images.push(i);else{var n=e+i.url;i.name&&(t._map[i.name]=n),t._images.push(n)}}))},e.prototype.getImage=function(t){return jx(t)?this._map[t]:this._images[t]},e.prototype.hasDef=function(){return!1},e.prototype.getEelement=function(t,i){this.size=Object.freeze({width:i.width||i.height||e.SIZE,height:i.height||i.width||e.SIZE})},e.TYPE="images",e.SIZE=20,e}(YP),QP=function(){function t(){this._items=[],this._map={}}return t.prototype.load=function(t){var e=this;if(this._items=[],Fx(t))t.forEach((function(t){var i=e.$_loadItem(t);i&&(i.hasDef()?e._items.push(i):e._map[t.id]=i)}));else if(Bx(t)){var i=this.$_loadItem(t);i&&(i.hasDef()?this._items.push(i):this._map[t.id]=i)}},t.prototype.updateOptions=function(t,e){},t.prototype.register=function(t,e){this._items.forEach((function(i){var n=i.getEelement(t,i.source);n.setAttribute(wP.ASSET_KEY,"1"),e.addDef(n)}))},t.prototype.unregister=function(t){this._items.forEach((function(e){t.removeDef(e.source.id)}))},t.prototype.get=function(t){return this._map[t]},t.prototype.$_loadItem=function(t){if(Bx(t)&&t.id){var e=t.type;if(e||(null!=t.pattern?e=ZP.TYPE:Fx(t.colors)?e=KP.TYPE:Fx(t.images)&&(e=JP.TYPE)),e)switch(e.toLowerCase()){case UP.TYPE:return new UP(t);case qP.TYPE:return new qP(t);case ZP.TYPE:return new ZP(t);case KP.TYPE:return new KP(t);case JP.TYPE:return new JP(t)}}},t}(),tV=0,eV=function(t,e){var i={};for(var n in t)i[n]=t[n];for(var n in e)i[n]=e[n];return i},iV=function(t,e){var i=Bx(t)?t:{};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];Fx(r)?i[n]=r.slice(0):r instanceof Date?i[n]=new Date(r):Bx(r)?i[n]=iV(i[n],r):i[n]=r}return i},nV=function(t){function e(e){var i=t.call(this)||this;return i.chart=e,tV++,i}return Lx(e,t),e.prototype.init=function(){return this._op=iV({},this.constructor.defaults),this._doInit(),this._doApply(this._op),this},e.prototype._doInit=function(){},Object.defineProperty(e.prototype,"options",{get:function(){return this._op},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._isVisible()},set:function(t){this.updateOption("visible",t)},enumerable:!1,configurable:!0}),e.prototype._isVisible=function(){return this._op.visible},e.prototype.load=function(t){var e=this._op;if(this._config=t,void 0!==t&&!this._doSetSimple(t)){if(null!==t&&null!=t.template){var i=this.chart&&this.chart.assignTemplates;i&&(t=i(t))}this._doLoad(e,t)}return this._doApply(e),e},e.prototype.save=function(){var t={visible:this.visible};return this._doSave(t),t},e.prototype.updateOptions=function(t,i){void 0===i&&(i=!0);var n=this,r=this._op;return void 0===t||this._doSetSimple(t)||iV(r,t),this.$_applyOptions(r),Bx(t)&&function(t){if(n._children)n._children.forEach((function(e){return t.hasOwnProperty(e)&&n[e].updateOptions(t[e])}));else for(var i in n._children=[],n){var r=n[i];r instanceof e&&(n._children.push(i),t.hasOwnProperty(i)&&r.updateOptions(t[i]))}}(t),i&&this._changed(),this},e.prototype.updateOption=function(t,e,i){void 0===i&&(i=!0);var n=this._op;return e!==n[t]&&(n[t]=e,this.$_applyOptions(n),i&&this._changed()),this},e.prototype.toggleOption=function(t,e){void 0===e&&(e=!0);var i=this._op,n=i[t];return i[t]=!Hx(n)||!n,this.$_applyOptions(i),e&&this._changed(),this},e.prototype.removeOption=function(t,e){void 0===e&&(e=!0);var i=this._op;if(i.hasOwnProperty(t)){delete i[t];var n=self.constructor.defaults;Dx.call(n,t)&&(i[t]=n[t]),this.$_applyOptions(i),e&&this._changed()}return this},e.prototype.clearOptions=function(t){return void 0===t&&(t=!0),function t(i){if(i._op=iV({},i.constructor.defaults),i.$_applyOptions(i._op),i._children)i._children.forEach((function(e){return i._op[e]=t(i[e])}));else for(var n in i._children=[],i){var r=i[n];r instanceof e&&(i._op[n]=t(r))}return i._op}(this),t&&this._changed(),this},e.prototype._prepareRender=function(){this._doPrepareRender(this.chart)},e.prototype._changed=function(t){var e;null===(e=this.chart)||void 0===e||e._modelChanged(this,t)},e.prototype._doLoad=function(t,i){for(var n in i)if(i.hasOwnProperty(n)){var r=i[n];this._doLoadProp(n,r)||(this[n]instanceof e?t[n]=this[n].load(r):Fx(r)?t[n]=r.slice(0):r instanceof Date?t[n]=new Date(r):Bx(r)?t[n]=Gx({},r):t[n]=r)}},e.prototype._doSetSimple=function(t){if(Hx(t))return this._op.visible=t,!0},e.prototype._doLoadProp=function(t,e){if("visible"===t)return this._op.visible=e,!0},e.prototype.$_applyOptions=function(t){var e,i=this.visible;this._doApply(t),this.visible!==i&&(null===(e=this.chart)||void 0===e||e._visibleChanged(this))},e.prototype._setDim=function(t,e){var i="_".concat(e);t[e]!==this[i]&&(this["".concat(i,"Dim")]=LS(this[i]=t[e],!0))},e.prototype._setDims=function(t){for(var e=this,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];i.forEach((function(i){return e._setDim(t,i)}))},e.prototype._doApply=function(t){this._style=t.style},e.prototype._doSave=function(t){},e.prototype._doUpdate=function(t){for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];this._doLoadProp(i,n)||(this[i]instanceof e?this[i].update(n):Fx(n)?this[i]=n.slice(0):n instanceof Date?this[i]=new Date(n):Bx(n)?this[i]=Gx({},n):this[i]=n)}},e.prototype._doPrepareRender=function(t){},e.REFRESHED="refreshed",e.defaults={visible:!0},e}(cS),rV=function(){function t(t){this._items=[],this.chart=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._items[0]},enumerable:!1,configurable:!0}),t.prototype.items=function(){return this._items.slice(0)},t.prototype._internalItems=function(){return this._items},t.prototype.updateOptions=function(t,e){},t}(),oV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._outlineThickness=2,e._outlineWidth="2px",e}return Lx(e,t),e.prototype._setOutlineThickness=function(t){t!==this._outlineThickness&&(this._outlineThickness=t,this._outlineWidth=tS(t,2)+"px")},e.prototype._setNumberSymbols=function(t){t!==this._numberSymbols&&(this._numberSymbols=t,this._numSymbols=t&&t.split(","))},e.prototype._setNumberFormat=function(t){t!==this._numberFormat&&(this._numberFormat=t,this._numberFormatter=t?KS.getFormatter(t):null)},e.prototype._setText=function(t){return t!==this._text&&this.prepareRich(this._text=t),!isNaN(this._op.lineHeight)&&this._richTextImpl&&(this._richTextImpl.lineHeight=this._op.lineHeight),this},e.prototype.setText=function(t){this._setText(t)},e.prototype.buildSvg=function(t,e,i,n,r,o){this._richTextImpl&&(this._richTextImpl.build(t,i,n,r,o),e&&this._richTextImpl.build(e,i,n,r,o))},e.prototype.prepareRich=function(t){t?(this._richTextImpl||(this._richTextImpl=new WP),this._richTextImpl.setFormat(t)):this._richTextImpl=null},e.prototype._doSetSimple=function(e){return jx(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setOutlineThickness(e.outlineThickness),this._setNumberSymbols(e.numberSymbols),this._setNumberFormat(e.numberFormat),this._setText(e.text)},e.prototype.$_getNumberText=function(t,e,i){if(sS.isValidNum(t)){var n=this._numSymbols&&e&&sS.scaleNumber(t,this._numSymbols,i);return this._numberFormatter?n?this._numberFormatter.toStr(n.value)+n.symbol:this._numberFormatter.toStr(t):n?n.value+n.symbol:String(t)}return"NaN"},e.prototype._getText=function(t,e,i,n){var r=jx(t)?t:this.$_getNumberText(e,i,n)||e;return this._op.prefix&&(r=this._op.prefix+r),this._op.suffix&&(r+=this._op.suffix),r},e.defaults=eV(nV.defaults,{effect:"none",autoContrast:!0,outlineThickness:2,numberSymbols:"k,M,G,T,P,E",numberFormat:"#,##0.#"}),e}(nV),sV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getIconPos=function(){return"default"===this._op.iconPosition?this.getDefaultIconPos():this._op.iconPosition},e.prototype._doPrepareRender=function(t){if(this._images=null,this._op.imageList){var e=t._assets.get(this._op.imageList);e instanceof JP&&(this._images=e)}this._root=this._images?"":this._op.iconRoot||""},e.prototype.getUrl=function(t){if(t){var e=t.indexOf("::");if(0===e)return t=t.substring(2),this._images?this._images.getImage(t):t;if(e>0){var i=this.chart._assets.get(t.substring(0,e)),n=t.substring(e+2);return i instanceof JP?i.getImage(n):n}return this._root+t}},e.defaults=eV(oV.defaults,{iconPosition:"default",iconGap:2}),e}(oV),aV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(nV),uV={},lV=function(t){function e(e,i){var n=t.call(this,e)||this;return n.inBody=i,n._offsetX=0,n._offsetY=0,n.index=-1,n}return Lx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){uV[t.type]=t}))},e.prototype._type=function(){return this.constructor.type},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.getOffset=function(t,e){var i=function(t,e,i){return i.size*("h"===i.suffix?e:t)};return{x:this._offsetXDim?i(t,e,this._offsetXDim):+this._offsetX,y:this._offsetYDim?i(t,e,this._offsetYDim):+this._offsetY}},e.prototype.getSize=function(t,e){var i,n,r=this.chart.isInverted(),o=this._op;if(this.inBody){var s=+o.x1,a=+o.x2,u=+o.y1,l=+o.y2;if(this._x=this._y=this._w=this._h=NaN,!isNaN(s)){var h=this.chart.xAxis;r?this._y=e-h.getPos(e,s):this._x=h.getPos(t,s),isNaN(a)||(r?n=this._h=e-h.getPos(e,a)-this._y:i=this._w=h.getPos(t,a)-this._x)}if(!isNaN(u)){h=this.chart.yAxis;r?this._x=h.getPos(t,u):this._y=e-h.getPos(e,u),isNaN(l)||(r?i=this._w=h.getPos(t,l)-this._x:n=this._h=e-h.getPos(e,l)-this._y)}}return isNaN(i)?i=MS(this._widthDim,t):i<0&&(this._x+=i,i=-i),isNaN(n)?n=MS(this._heightDim,e):n<0&&(this._y+=n,n=-n),{width:i,height:n}},e.prototype.getPosition=function(t,e,i,n,r,o,s){var a,u,l;if(isNaN(u=this._x))switch(a=this.getOffset(o,s),u=e,this._op.align){case"center":u+=(n-o)/2+a.x;break;case"right":u+=n-a.x-o;break;default:this._anchorObj?u+=(n-o)/2+a.x:u+=a.x}else a=a||this.getOffset(o,s),u=this._x+a.x;if(isNaN(l=this._y))switch(a=a||this.getOffset(o,s),l=i,this._op.verticalAlign){case"middle":l+=(r-s)/2-a.y;break;case"bottom":l+=r-a.y-s;break;default:l+=a.y}else a=a||this.getOffset(o,s),l=this._y+a.y;return{x:u,y:l}},e.prototype.refresh=function(){this._changed(nV.REFRESHED)},e.prototype.load=function(e){return this.chart?t.prototype.load.call(this,this.chart.loadBase(e,"annotation",this._type())):t.prototype.load.call(this,e)},e.prototype._doApply=function(e){var i,n=this,r=function(t){if(jx(t)){var e=t[t.length-1];if("h"===e||"w"===e){var i=parseFloat(t);if(i===parseFloat(t.substring(0,t.length-1)))return{size:i,suffix:e}}}};t.prototype._doApply.call(this,e),this._name=e.name||"annotation ".concat(this.index+1),(i=e.offsetX)!=n._offsetX&&(n._offsetXDim=r(n._offsetX=i)),function(t){t!=n._offsetY&&(n._offsetYDim=r(n._offsetY=t))}(e.offsetY),this._setDims(e,"width","height")},e.prototype._doPrepareRender=function(t){},e.defaults=eV(nV.defaults,{front:!1,verticalAlign:"top",offsetX:0,offsetY:0,scope:"chart"}),e}(nV),hV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i._map={},i._visibles=[],i}return Lx(e,t),e.prototype.getVisibles=function(){return this._visibles.slice(0)},e.prototype.getAnnotation=function(t){var e=this._map[t];if(e instanceof lV)return e},e.prototype.get=function(t){return jx(t)?this._map[t]:this._items[t]},e.prototype.load=function(t,e){var i=this,n=this.owner.chart,r=this._items=[],o=this._map={};Fx(t)?t.forEach((function(t,o){r.push(i.$_loadItem(n,t,o,e))})):Bx(t)&&r.push(this.$_loadItem(n,t,0,e)),r.forEach((function(t){t.name&&(o[t.name]=t)})),this.owner.options.annotations=this._items.map((function(t){return t.options}))},e.prototype.prepareRender=function(){var t=this;this._visibles=this._items.filter((function(t){return t.visible})),this._visibles.forEach((function(e){e._prepareRender(),e._anchorObj=e.options.anchor?t.owner.anchorByName(e.options.anchor):_S}))},e.prototype.$_loadItem=function(t,e,i,n){var r=e.type;r||(r=jx(e.imageUrl)?"image":jx(e.shape)?"shape":"text");var o=t._getAnnotationType(r);if(!o)throw new Error("Invalid annotation type: "+e.type);var s=new o(t,n).init();return s.index=i,s.load(e),s},e}(rV),pV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(nV.defaults,{minWidth:50}),e}(nV),cV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.axis=e,i}return Lx(e,t),e.prototype._doInit=function(){this.flag=new pV(this.axis.chart).init(),this._args={axis:void 0,pos:void 0,flag:void 0,points:void 0}},e.prototype.isBar=function(){return!this.axis.continuous()&&"line"!==this._op.type},e.prototype.getFlag=function(t,e){var i=this.axis.axisValueAt(t,e);return i instanceof Date?_P.getFormatter(this._op.timeFormat).toStr(new Date(i),this.chart.startOfWeek):KS.getFormatter(this._op.numberFormat).toStr(i)},e.prototype.moved=function(t,e,i){this._op.onChange&&(this._args.pos=t,this._args.flag=e,this._args.points=i.map((function(t){return null==t?void 0:t.proxy()})),this._op.onChange(this._args))},e.prototype._setAxis=function(t){this._args.axis=t},e.prototype._doSetSimple=function(e){return Ix(e)?(this._op.visible=!0,this._op.onChange=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=eV(nV.defaults,{visible:!1,type:"auto",showAlways:!0,followPointer:!0,numberFormat:"#,##0.#",timeFormat:"yyyy-MM-dd HH:mm",markerHovering:!1}),e}(nV),fV={},_V=function(t){function e(e){var i=t.call(this,null==e?void 0:e.chart)||this;return i.axis=e,i}return Lx(e,t),e}(nV),dV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._isVisible=function(){return null==this._op.visible?this.axis._isX:this._op.visible},e.prototype._doSetSimple=function(e){return jx(e)?(this._op.visible=!0,this._op.style={stroke:e},!0):t.prototype._doSetSimple.call(this,e)},e.defaults=eV(_V.defaults,{visible:void 0}),e}(_V),yV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getRotation=function(){return this.axis._isHorz?0:isNaN(this._rotation)?"opposite"===this.axis.options.position?90:270:this._rotation},e.prototype._isVisible=function(){return this._op.visible&&!kS(this._op.text)},e.prototype._doSetSimple=function(e){return jx(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,n,r=this;t.prototype._doApply.call(this,e),i=e.rotation,n=+i,Number.isNaN(n)||90===n||270===n||-90===n||-270===n||(n=0),r._rotation=n},e.defaults=eV(_V.defaults,{align:"middle",offset:0,gap:5}),e}(_V),gV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getRows=function(){var t=this.axis,e=this._op.colors,i=e?e.length:0,n=[];if(this._op.belowColor&&t.isBaseVisible()&&n.push({axis:t,from:t.axisMin(),to:t.getBaseValue(),color:this._op.belowColor}),i>0){var r=t._ticks,o=0;r[0].value>t.axisMin()&&(e[o%i]&&n.push({axis:t,from:t.axisMin(),to:r[0].value,color:e[o%i]}),o++);for(var s=1;s<r.length;s++,o++)e[o%i]&&n.push({axis:t,from:r[s-1].value,to:r[s].value,color:e[o%i]});r[r.length-1].value<t.axisMax()&&e[o%i]&&n.push({axis:t,from:r[r.length-1].value,to:t.axisMax(),color:e[o%i]})}return n},e.prototype._doSetSimple=function(e){return jx(e)?(this._op.colors=[e,null],!0):Fx(e)?(this._op.colors=e,!0):t.prototype._doSetSimple.call(this,e)},e}(_V),vV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){this.rows=new gV(this.axis).init()},e.prototype._isVisible=function(){return this.axis._isPolar?!1!==this._op.visible:null==this._op.visible?!this.axis._isX:this._op.visible},e.defaults=eV(_V.defaults,{visible:void 0}),e}(_V),mV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getDefaultIconPos=function(){return"left"},e.defaults=eV(sV.defaults,{position:"inside",align:"left",verticalAlign:"top",offsetX:3,offsetY:3}),e}(sV),bV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){this.label=new mV(this.axis.chart).init()},e.prototype.canConstainedTo=function(t,e){var i,n,r,o,s=this._op;if(Fx(s.col)){try{for(var a=Mx(s.col),u=a.next();!u.done;u=a.next()){if(e==u.value)return!0}}catch(t){i={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return!1}if(!isNaN(s.col)&&e!=s.col)return!1;if(Fx(s.row)){try{for(var l=Mx(s.row),h=l.next();!h.done;h=l.next()){if(t==h.value)return!0}}catch(t){r={error:t}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return!1}return!(!isNaN(s.row)&&t!=s.row)},e.defaults=eV(_V.defaults,{front:!1,zindex:0}),e}(_V),wV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(bV),xV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(bV),SV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.canUseNumSymbols=function(){return!0},e.prototype._doSetSimple=function(e){return sS.canNumber(e)?(this._op.length=+e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=eV(_V.defaults,{visible:!1,length:7,gap:3}),e}(_V),PV=function(t){function e(e){var i=t.call(this,e&&e.chart)||this;return i.axis=e,i._domain={callback:function(t,e){return i._getParamValue(i._paramTick,e)}},i}return Lx(e,t),e.prototype._getParamValue=function(t,e){return e.startsWith("axis.")?this.axis[e.substring(5)]:t[e]},e.prototype.getLabelText=function(t,e){var i,n=this._op,r=t.index;if(n.textCallback){var o=n.textCallback(this.axis.getTickLabelArgs(r,t.value));if(null!=o)return o}return 1==e?iS(null!==(i=n.lastText)&&void 0!==i?i:n.firstText,n.text):0==r?iS(n.firstText,n.text):r==e-1?iS(n.lastText,n.text):n.text},e.prototype.getLabelStyle=function(t,e){var i=this._op,n=t.index;if(i.styleCallback){var r=i.styleCallback(this.axis.getTickLabelArgs(n,t.value));if(Bx(r))return r}return 1==e?i.lastStyle||i.firstStyle:0==n?i.firstStyle:n==e-1?i.lastStyle:void 0},e.prototype.getIcon=function(t){},e.prototype.getDefaultIconPos=function(){return this.axis._isHorz?"top":"right"},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._domain.numberFormatter=this._numberFormatter},e.defaults=eV(sV.defaults,{step:0,startStep:0,rows:0,maxRows:3,autoArrange:"rotate",overflow:"clip",firstOverflow:"pull",lastOverflow:"pull",overflowGap:12}),e}(sV),VV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getThickness=function(){return Math.max(0,this._op.thickness)},e.prototype.getMinThumbSize=function(){return Math.max(0,this._op.minThumbSize)},e.prototype.getGap=function(){return Math.max(0,this._op.gap)},e.prototype.getGapFar=function(){return Math.max(0,this._op.gapFar)},e.defaults=eV(_V.defaults,{visible:!1,thickness:10,minThumbSize:32,gap:3,gapFar:3}),e}(_V),kV=function(){function t(t){this.axis=t}return t.prototype.total=function(){return this.max-this.min},t.prototype.length=function(){return this.end-this.start},t.prototype.isFull=function(){return this.start===this.min&&this.end===this.max},t.prototype.resize=function(t,e,i){if((t=isNaN(t)?this.start:Jx(this.min,Kx(this.max,t)))>(e=isNaN(e)?this.end:Jx(t,Kx(this.max,e)))){var n=t;t=e,e=n}var r=this.max-this.min;if((t!==this.start||e!==this.end)&&e>t&&(isNaN(i)||(e-t)/r>=i)&&r/(e-t)>1)return this.start=t,this.end=e,!0},t}(),AV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(dV),CV=function(t){function e(e,i){var n=t.call(this,e)||this;return n._series=[],n._minPad=0,n._maxPad=0,n._values=[],n._labelArgs={},n._seriesChanged=!1,n.guides=[],n._isX=i,n}return Lx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){fV[t.type]=t,t.subtype&&(fV[t.subtype]=t)}))},e.prototype._animating=function(){return!isNaN(this._prevRate)},e.prototype._doInit=function(){this._title=new yV(this).init(),this._line=new dV(this).init(),this._sectorLine=new AV(this).init(),this._tick=this._createTickModel().init(),this._label=this._createLabel().init(),this._grid=this._createGrid().init(),this._crosshair=new cV(this).init(),this._scrollBar=new VV(this).init()},e.prototype._type=function(){return this.constructor.type},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sectorLine",{get:function(){return this._sectorLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){return this._grid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"crosshair",{get:function(){return this._crosshair},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollBar",{get:function(){return this._scrollBar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"xy",{get:function(){return this._isX?"x":"y"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isX",{get:function(){return this._isX},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(){return this._isEmpty},e.prototype._checkEmpty=function(){var t,e;if(this._series.length>0)try{for(var i=Mx(this._series),n=i.next();!n.done;n=i.next()){if(!n.value.isEmpty(!0))return!1}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return!0},e.prototype.getBaseValue=function(){return NaN},e.prototype.length=function(){return this._max-this._min},e.prototype.axisMin=function(){return this._min},e.prototype.axisMax=function(){return this._max},e.prototype.axisValueAt=function(t,e){return this.valueAt(t,e)},e.prototype.getStartAngle=function(){return gS+vS*this._op.startAngle},e.prototype.getTotalAngle=function(){return vS*Jx(0,Kx(360,tS(this._op.totalAngle,360)))},e.prototype.isArced=function(){return this._op.totalAngle>0&&this._op.totalAngle<360},e.prototype.getVisibleSeries=function(){var t=[];return this._series.forEach((function(e){e.visible&&t.push.apply(t,Ox([],Tx(e.getVisibleSeries()),!1))})),t},e.prototype.unitPad=function(){return 0},e.prototype.labelsVisible=function(){return this._label.visible&&this._ticks.length>0},e.prototype.value2Tooltip=function(t){return isNaN(t)?this.chart._tooltip.options.nanText:t},e.prototype.isBased=function(){return!1},e.prototype.isBaseVisible=function(){return this.axisMin()<this.getBaseValue()},e.prototype.disconnect=function(){this._series=[]},e.prototype.getSeries=function(){var t=[];return this._series.forEach((function(e){t.push.apply(t,Ox([],Tx(e.getVisibleSeries()),!1))})),t},e.prototype.collectValues=function(){var t=this;this._values=[],this._series.forEach((function(e){e.collectValues(t,e.needAxes()?t._values:null)}))},e.prototype.collectRanges=function(){var t=this;this._series.forEach((function(e){e.needAxes()&&e.collectRanges(t._values)}))},e.prototype.collectReferentsValues=function(){var t=this;this._series.forEach((function(e){e.pointValuesPrepared(t)}))},e.prototype._prepare=function(){this._isEmpty=this._checkEmpty()},e.prototype._prepareRender=function(){var t,e,i,n=this._op.position;this._isHorz=this.chart.isInverted()?!this._isX:this._isX,this._isBetween=this.chart.isSplitted()&&"between"===n&&this._isX,this._isOpposite="opposite"===n,this._runPos=n,this._crosshair._setAxis(this._labelArgs.axis=this),this._doPrepareRender(),null===(i=this._label)||void 0===i||i._prepareRender();var r=this._series,o=this._values;if(this._isX&&this._prevSeries){if(!(this._seriesChanged=!sS.equalArrays(r,this._prevSeries)))try{for(var s=Mx(r),a=s.next();!a.done;a=s.next()){if(a.value.seriesChanged()){this._seriesChanged=!0;break}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}}else this._seriesChanged=!1;if(this._zoom?this._range={min:this._zoom.start,max:this._zoom.end}:this._range=this._doCalculateRange(o),this._isX&&r.length>0)if(this.chart.isSplitted()){for(var u=[r[0]._row],l=1;l<r.length;l++)u.indexOf(r[l]._row)<0&&u.push(r[l]._row);u.forEach((function(t){var e=0,i=0;r.forEach((function(i){i._row==t&&i.isClusterable()&&(e+=tS(i.groupWidth(),1))})),r.forEach((function(n){if(n._row==t&&n.isClusterable()){var r=tS(n.groupWidth(),1)/e;n.setCluster(r,i),i+=r}}))}))}else{var h=0,p=0;r.forEach((function(t){t.isClusterable()&&(h+=tS(t.groupWidth(),1))})),r.forEach((function(t){if(t.isClusterable()){var e=tS(t.groupWidth(),1)/h;t.setCluster(e,p),p+=e}}))}},e.prototype.afterRender=function(){this._seriesChanged=!1,this._prevSeries=this._series,this._zooming=!1},e.prototype._buildTicks=function(t){this._ticks=this._doBuildTicks(this._range.min,this._range.max,this._vlen=t),this._labelArgs.count=this._ticks.length},e.prototype._calcPoints=function(t,e){var i=this;this._ticks.forEach((function(e){return e.pos=i.getPos(t,e.value)}))},e.prototype.getLabelLength=function(t,e){return this.getUnitLen(t,e)},e.prototype.getValue=function(t){return null==t?NaN:parseFloat(t)},e.prototype.incStep=function(t,e){return t+e},e.prototype.contains=function(t){return t>=this._range.min&&t<=this._range.max},e.prototype.resetZoom=function(){this._zoom&&(this._zoom=null,this._zooming=!0,this._changed())},e.prototype._prepareZoom=function(){return this._zoom||(this._zoom=new kV(this),this._buildTicks(this._vlen),this._zoom.start=this._zoom.min=this._min,this._zoom.end=this._zoom.max=this._max),this._zoom},e.prototype.zoom=function(t,e,i){void 0===i&&(i=NaN);var n=this._prepareZoom(),r=n.resize(t,e,i);return n.isFull()&&(this._zoom=null),this._zooming=!0,this._changed(),r},e.prototype.isZoomed=function(){return!!this._zoom},e.prototype.hasBreak=function(){return!1},e.prototype.isBreak=function(t){return!1},e.prototype.getTickLabelArgs=function(t,e){return this._labelArgs.index=t,this._labelArgs.value=e,this._labelArgs},e.prototype.getXValue=function(t){return t},e.prototype.setPrevRate=function(t){this._prevRate=t},e.prototype.prev=function(t){return isNaN(this._prevRate)?t:this._op.reversed?t+(this._vlen-t)*(this._prevRate-1):t*this._prevRate},e.prototype.load=function(e){return this.chart?t.prototype.load.call(this,this.chart.loadBase(e,this._isX?"xAxis":"yAxis",this._type())):t.prototype.load.call(this,e)},e.prototype._doApply=function(e){var i,n,r=this,o=this.guides;t.prototype._doApply.call(this,e),this._name=e.name||"Axis ".concat(this._index+1),(i=e.guide||e.guides)!==r._guides&&(r._guides=i,n=Fx(i)?i:[i],o.length=0,n.forEach((function(t){var e;(e="range"===t.type?new xV(r):"line"===t.type||isNaN(t.startValue)||isNaN(t.endValue)?new wV(r):new xV(r)).init().load(t),o.push(e)})))},e.prototype._setMinMax=function(t,e){this._min=t,this._max=e,this._single=t===e},e.prototype._connect=function(t){t&&!this._series.includes(t)&&this._series.push(t)},e.prototype._doCalculateRange=function(t){return{min:t.length>0?xS(Kx.apply(void 0,Ox([],Tx(t),!1))||0):NaN,max:t.length>0?xS(Jx.apply(void 0,Ox([],Tx(t),!1))||0):NaN}},e.defaults=eV(nV.defaults,{row:0,col:0,startAngle:0,totalAngle:360,position:"normal",reversed:!1,marginNear:0,marginFar:0,tooltipHeader:"<b>${name}</b>",tooltipRow:"${series}:<b> ${yValue}</b>",animatable:!0,fixedSize:!1}),e}(nV),EV=function(t){function e(e,i){var n=t.call(this,e)||this;return n._map=new Map,n.isX=i,n}return Lx(e,t),e.prototype._clear=function(){},e.prototype.load=function(t){var e=this,i=this.chart;Fx(t)?t.forEach((function(t,n){return e._items.push(e.$_loadAxis(i,t,n))})):this._items.push(this.$_loadAxis(i,t,0)),i.options[this.isX?"xAxis":"yAxis"]=this._items.map((function(t){return t.options}))},e.prototype.contains=function(t){return this._items.indexOf(t)>=0},e.prototype.get=function(t){return jx(t)?this._map.get(t):this._items[t]},e.prototype.disconnect=function(){this._items.forEach((function(t){return t.disconnect()}))},e.prototype.prepare=function(){this._items.forEach((function(t){return t._prepare()}))},e.prototype.collectValues=function(){this._items.forEach((function(t){return t.collectValues()}))},e.prototype.collectRanges=function(){this._items.forEach((function(t){return t.collectRanges()}))},e.prototype.collectReferentsValues=function(){this._items.forEach((function(t){return t.collectReferentsValues()}))},e.prototype.prepareRender=function(){this._items.forEach((function(t){return t._prepareRender()}))},e.prototype.afterRender=function(){this._items.forEach((function(t){return t.afterRender()}))},e.prototype._buildTicks=function(t){this._items.sort((function(t,e){return t.isBased()?1:e.isBased()?-1:0})).forEach((function(e){return e._buildTicks(t)}))},e.prototype.connect=function(t){var e,i=this._items,n=t.options,r=this.isX?n.xAxis:n.yAxis;return $x(r)&&r>=0&&r<i.length?e=i[r]:jx(r)&&(e=i.find((function(t){return t.options.name===r}))),e||(e=i[0]),e&&(e._connect(t),this.isX?t.setCol(tS(n.col,e.options.col)):t.setRow(tS(n.row,e.options.row))),e},e.prototype.forEach=function(t){for(var e=0,i=this._items.length;e<i&&!0!==t(this._items[e],e);e++);},e.prototype.isZoomed=function(){var t,e;try{for(var i=Mx(this._items),n=i.next();!n.done;n=i.next()){if(n.value.isZoomed())return!0}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.resetZoom=function(){this._items.forEach((function(t){return t.resetZoom()}))},e.prototype.$_loadAxis=function(t,e,i){var n,r,o,s=t._getAxisType(e.type);if(!s){var a=void 0;if(Fx(e.categories))a="category";else if(this.isX){var u=t._getSeries()._internalItems();if(u.length>0){a="category";try{for(var l=Mx(u),h=l.next();!h.done;h=l.next()){var p=h.value;if(!p.canCategorized()){if(e.name&&p.options.xAxis===e.name){a=_S;break}if(p.options.xAxis===i){a=_S;break}if(kS(p.options.xAxis)&&0===i){a=_S;break}}}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}else a=null===(o=t._getSeries().first)||void 0===o?void 0:o.defYAxisType();a&&(s=t._getAxisType(a))}s||(s=t._getAxisType("linear"));var c=new s(t,this.isX).init();return c.load(e),c._index=i,c._isPolar=t.isPolar(),c},e}(rV),LV=function(){this._axes=[]},NV=function(){function t(t,e){this.chart=t,this.isX=e}return t.prototype.rows=function(){return this._matrix.length},t.prototype.cols=function(){return this._matrix[0].length},t.prototype.get=function(t,e){return this._matrix[t][e]},t.prototype.getRow=function(t){return this._matrix[t]},t.prototype.getColumn=function(t){return this._matrix.map((function(e){return e[t]}))},t.prototype._buildTicks=function(t){var e=this.isX;this._matrix.forEach((function(i,n){i.forEach((function(i,n){i._axes.forEach((function(i){i.isBased()||i._buildTicks(t[e?i.options.col:i.options.row])}))}))})),this._matrix.forEach((function(i,n){i.forEach((function(i,n){i._axes.forEach((function(i){i.isBased()&&i._buildTicks(t[e?i.options.col:i.options.row])}))}))}))},t.prototype._calcPoints=function(t,e){var i=this.isX;this._matrix.forEach((function(n){n.forEach((function(n,r){n._axes.forEach((function(n){var r=i?n.options.col:n.options.row;n._calcPoints(t[r],e)}))}))}))},t}(),MV=function(t){function e(e){return t.call(this,e,!0)||this}return Lx(e,t),e.prototype._prepare=function(t,e,i){for(var n=this._matrix=new Array(e+1),r=0;r<n.length;r++){n[r]=[];for(var o=0;o<i;o++)n[r].push(new LV)}t.forEach((function(t){var i=t.options.position,r=t._row;"opposite"===i?(r++,t._runPos=i):r<e-1&&"between"===i?(r++,t._runPos="normal"):t._runPos=i,n[r][t._col]._axes.push(t)}))},e}(NV),TV=function(t){function e(e){return t.call(this,e,!1)||this}return Lx(e,t),e.prototype._prepare=function(t,e,i){for(var n=this._matrix=new Array(e),r=0;r<n.length;r++){n[r]=[];for(var o=0;o<=i;o++)n[r].push(new LV)}t.forEach((function(t){var e=t.options.position,r=t._col;"opposite"===e?(r++,t._runPos=e):t._col<i-1&&"between"===e?(r++,t._runPos="normal"):t._runPos=e,n[t._row][r]._axes.push(t)}))},e}(NV),OV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doPrepareRender=function(t){},e}(nV),RV={},DV={},BV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.index=-1,e}return Lx(e,t),e.prototype._type=function(){return this.constructor.type},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.getSize=function(t,e){return{width:MS(this._widthDim||this._sizeDim,t,t),height:MS(this._heightDim||this._sizeDim,e,e)}},e.prototype.getLeft=function(t){return MS(this._leftDim,t)},e.prototype.getRight=function(t){return MS(this._rightDim,t)},e.prototype.getTop=function(t){return MS(this._topDim,t)},e.prototype.getBottom=function(t){return MS(this._bottomDim,t)},e.prototype.load=function(e){return this.chart?t.prototype.load.call(this,this.chart.loadBase(e,"gauge",this._type())):t.prototype.load.call(this,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._name=e.name||"Gauge ".concat(this.index+1),this._setDims(e,"left","right","top","bottom","width","height","siz")},e.defaults=eV(OV.defaults,{size:"100%"}),e}(OV),FV=function(t){function e(e){return t.call(this,e.chart)||this}return Lx(e,t),e}(nV),IV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._gindex=-1,e}return Lx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){RV[t.type]=t}))},e._loadGauge=function(t,e,i){var n=t._getGaugeType(e.type);n||(n=t._getGaugeType(i||t.gaugeType));var r=new n(t).init();return r.load(e),r},e.prototype.setGroup=function(t,e){this._group=t,this._gindex=e},e.defaults=eV(BV.defaults,{duration:500}),e}(BV),jV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._gauges=[],e._visibles=[],e}return Lx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){DV[t.type]=t,DV[t.gaugeType]=t}))},e.prototype.count=function(){return this._gauges.length},e.prototype.isEmpty=function(){return this._gauges.length<1},e.prototype.visibles=function(){return this._visibles.slice(0)},e.prototype.get=function(t){return this._gauges[t]},e.prototype.getVisible=function(t){return this._visibles[t]},e.prototype.calcedMinMax=function(){return{min:this._op.minValue,max:this._op.maxValue}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),Dx.call(e,"children")&&this.$_loadGauges(this.chart,e.children)},e.prototype._prepareRender=function(){var e=this;this._visibles=this._gauges.filter((function(t){return t.visible})),t.prototype._prepareRender.call(this),this._visibles.forEach((function(t,i){e._setGroup(t,i),t._prepareRender()}))},e.prototype.$_loadGauges=function(t,e){var i=this,n=this._gaugesType();Fx(e)?e.forEach((function(e,r){return i.$_add(IV._loadGauge(t,e,n))})):Bx(e)&&this.$_add(IV._loadGauge(t,e,n))},e.prototype.$_add=function(t){if(t._type()!==this._gaugesType())throw new Error("이 그룹에 포함될 수 없는 게이지입니다: "+t);this._gauges.push(t),t.index=this._gauges.length-1},e.prototype._setGroup=function(t,e){t.setGroup(this,e)},e.defaults=eV(BV.defaults,{minValue:0}),e}(BV),zV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._visibles=[],e._gauges=[],e}return Lx(e,t),Object.defineProperty(e.prototype,"firstGauge",{get:function(){return this._gauges[0]},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(t){return(t?this._visibles:this._items).length<1},e.prototype.getVisibles=function(){return this._visibles.slice(0)},e.prototype.getPaneVisibles=function(t,e){return this._visibles.filter((function(i){var n=i.options.row||0,r=i.options.col||0;return t===n&&e===r}))},e.prototype.getGauge=function(t){var e=this._map[t];if(e instanceof IV)return e},e.prototype.get=function(t){return jx(t)?this._map[t]:this._items[t]},e.prototype.load=function(t){var e=this,i=this.chart,n=this._items=[],r=this._map={};Fx(t)?t.forEach((function(t,r){n.push(e.$_loadItem(i,t,r))})):Bx(t)&&n.push(this.$_loadItem(i,t,0)),n.forEach((function(t){if(t.name&&(r[t.name]=t),t instanceof jV)for(var i=0;i<t.count();i++){var n=t.get(i);n.name&&(r[n.name]=n),e._gauges.push(n)}else e._gauges.push(t)})),i.options.gauges=this._gauges.map((function(t){return t.options}))},e.prototype.prepareRender=function(){this._visibles=this._items.filter((function(t){return t.visible})),this._visibles.forEach((function(t){return t._prepareRender()}))},e.prototype.$_loadItem=function(t,e,i){var n=Fx(e.children)&&t._getGaugeGroupType(e.type||t.gaugeType);if(n||(n=t._getGaugeType(e.type||t.gaugeType)),!n)throw new Error("Invalid gauge type: "+e.type);var r=new n(t).init();return r.load(e),r.index=i,r},e}(rV),$V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.updateValue=function(t){t!==this._op.value&&(this._op.value=t,this._changed())},e.prototype.getLabel=function(t,e){return this._runValue=e,t.options.text||(t.options.prefix||"")+"${value}"+(t.options.suffix||"")},e.prototype.getParam=function(t){switch(t){case"value":return this._runValue;case"min":return this._op.minValue;case"max":return this._op.maxValue}},e.prototype.calcedMinMax=function(){return{min:this._op.minValue,max:this._op.maxValue}},e.defaults=eV(IV.defaults,{minValue:0,maxValue:100,value:0,animatable:!0}),e}(IV);!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Lx(e,t)}($V);var HV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.scale=e,i}return Lx(e,t),e.defaults=eV(nV.defaults,{reversed:!1,length:7}),e}(nV),GV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getText=function(t){return sS.isValidNum(t)?this._getText(null,t,Qx(t)>1e3,!0):t},e.prototype.getDefaultIconPos=function(){return"left"},e}(sV),WV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return Lx(e,t),e.prototype._doInit=function(){var t=this.chart;this._line=new nV(t).init(),this._tick=new HV(this).init(),this._label=new GV(t).init()},Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.range=function(){return{min:this._min,max:this._max}},e.prototype.isEmpty=function(){return this._max<=this._min},e.prototype.buildSteps=function(t,e,i){void 0===i&&(i=NaN),i=tS(i,e);var n=this._adjustMinMax(Kx(e,i),Jx(e,i)),r=n.min,o=n.max;return this._steps=this._buildSteps(t,r,o)},e.prototype.buildGroupSteps=function(t,e){var i=this._adjustGroupMinMax(e),n=i.min,r=i.max;return this._steps=this._buildSteps(t,n,r)},e.prototype.getRate=function(t){return(Jx(this._min,t)-this._min)/(this._max-this._min)},e.prototype._adjustMinMax=function(t,e){var i=this.gauge;return t=tS(i.options.minValue,t),e=tS(i.options.maxValue,e),this._min=Kx(t,e),this._max=Jx(e,t),{min:this._min,max:this._max}},e.prototype._adjustGroupMinMax=function(t){var e=this.gauge,i=e.options.minValue,n=e.options.maxValue;return isNaN(i)&&(i=Kx.apply(void 0,Ox([],Tx(t),!1))),isNaN(n)&&(n=Jx.apply(void 0,Ox([],Tx(t),!1))),this._min=Kx(i,n),this._max=Jx(n,i),{min:this._min,max:this._max}},e.prototype._buildSteps=function(t,e,i){var n,r=this._op;return n=Array.isArray(r.steps)?r.steps.slice(0):r.stepCount>0?this._getStepsByCount(r.stepCount,e,i):r.stepInterval>0?this._getStepsByInterval(r.stepInterval,e,i):r.stepPixels>0?this._getStepsByPixels(t,r.stepPixels,e,i):[e,i],this._min=n[0],this._max=n[n.length-1],n},e.prototype._getStepsByCount=function(t,e,i){var n=(i-e)/(t-1),r=Math.pow(10,Math.floor(Math.log10(n))),o=[];n=this._step=Math.ceil(n/r)*r,o.push(xS(e));for(var s=1;s<t;s++)o.push(xS(o[s-1]+n));return o},e.prototype._getStepsByInterval=function(t,e,i){var n,r=[];for(r.push(n=e);n<i;)r.push(n+=t);return this._step=t,r},e.prototype._getStepMultiples=function(t){return[1,2,2.5,5,10]},e.prototype._getStepsByPixels=function(t,e,i,n){var r=[],o=n-i;if(0===o)return r;var s,a=o/(Math.floor(t/e)+1-1),u=Math.pow(10,Math.floor(Math.log10(a))),l=this._getStepMultiples(u),h=0;if(a/=u,l)if(a>l[h]){for(;h<l.length-1;h++)if(a>l[h]&&a<l[h+1]){a=l[++h];break}}else a=l[h];for(a*=u,this._step=a,r.push(xS(s=i));;){if((s+=a)>=n){r.push(xS(n));break}r.push(xS(s))}return r},e.defaults=eV(nV.defaults,{position:"default",stepPixels:48,gap:8}),e}(nV),YV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(nV.defaults,{visible:!1}),e}(nV),XV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return Lx(e,t),e.prototype._doInit=function(){this._rangeLabel=new YV(this.chart).init(),this._tickLabel=new nV(this.chart).init()},Object.defineProperty(e.prototype,"rangeLabel",{get:function(){return this._rangeLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tickLabel",{get:function(){return this._tickLabel},enumerable:!1,configurable:!0}),e.prototype.getThickness=function(t){return this._thicknessDim?MS(this._thicknessDim,t,0):"inside"===this._op.position?t:e.defaults.thickness},e.prototype.getRanges=function(){return this.$_internalRanges().slice(0)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.ranges)!==n._ranges&&(n._ranges=i,n._runRanges=null),this._setDim(e,"thickness")},e.prototype.$_internalRanges=function(){if(!this._runRanges){var t=this.gauge.calcedMinMax();this._runRanges=jS(this._ranges,t.min,t.max,!1,!0)||[]}return this._runRanges},e.defaults=eV(nV.defaults,{visible:!1,position:"default",thickness:7,gap:5,itemGap:0}),e}(nV),UV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._domain={callback:function(t,e){return t.getParam(e)}},e}return Lx(e,t),e.prototype._doPrepareRender=function(t){this._domain.numberFormatter=this._numberFormatter},e.defaults=eV(oV.defaults,{animatable:!0}),e}(oV),qV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(WV),ZV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._offsetX=0,e._offsetY=0,e}return Lx(e,t),e.prototype.getOffset=function(t,e){return{x:MS(this._offsetXDim,t,0),y:MS(this._offsetYDim,e,0)}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"offsetX","offsetY")},e.defaults=eV(UV.defaults,{offsetX:0,offsetY:0}),e}(UV),KV=function(){function t(t){void 0===t&&(t=!1),t?(this.setCenterX("50%"),this.setCenterY("50%"),this.setValueRadius("100%")):(this.setCenterX(JV.DEF_CENTER),this.setCenterY(JV.DEF_CENTER),this.setRadius(JV.DEF_RADIUS),this.setInnerRadius(JV.DEF_INNER))}return t.prototype.centerX=function(){return this._centerX},t.prototype.setCenterX=function(t){t!==this._centerX&&(this._centerX=t,this._centerXDim=LS(iS(t,JV.DEF_CENTER),!0))},t.prototype.centerY=function(){return this._centerY},t.prototype.setCenterY=function(t){t!==this._centerY&&(this._centerY=t,this._centerYDim=LS(iS(t,JV.DEF_CENTER),!0))},t.prototype.radius=function(){return this._radius},t.prototype.setRadius=function(t){t!==this._radius&&(this._radius=t,this._radiusDim=LS(iS(t,JV.DEF_RADIUS),!0))},t.prototype.innerRadius=function(){return this._innerRadius},t.prototype.setInnerRadius=function(t){t!==this._innerRadius&&(this._innerRadius=t,this._innerDim=LS(iS(t,JV.DEF_INNER),!0))},t.prototype.valueRadius=function(){return this._valueRadius},t.prototype.setValueRadius=function(t){t!==this._valueRadius&&(this._valueRadius=t,this._valueDim=LS(t,!0))},t.prototype.getCenter=function(t,e){return{x:MS(this._centerXDim,t,t/2),y:MS(this._centerYDim,e,e/2)}},t.prototype.getExtents=function(t){var e=MS(this._radiusDim,t,t/2),i=Kx(e,this._innerDim?MS(this._innerDim,e):0),n=i+(e-i)/2;return{radius:e,inner:i,value:this._valueDim?MS(this._valueDim,n):n,radiusThick:e-i}},t.prototype.prepareAngles=function(t,e){var i=tS(t%360,0),n=Jx(0,Kx(360,tS(e,360)));this._startRad=gS+vS*i,this._handRad=vS*i,this._sweepRad=vS*n},t}(),JV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this._props=new KV,this._label=new ZV(this.chart).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.getProps=function(){return this._childProps||this._props},e.prototype.getCenter=function(t,e){return this._group?this._childProps.getCenter(t,e):this._props.getCenter(t,e)},e.prototype.getExtents=function(t){return this._group?this._childProps.getExtents(t):this._props.getExtents(t)},e.prototype.labelVisible=function(){return this._label.visible},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=this._props;i.setCenterX(e.centerX),i.setCenterY(e.centerY),i.setRadius(e.radius),i.setInnerRadius(e.innerRadius),i.setValueRadius(e.valueRadius)},e.prototype.setGroup=function(e,i){t.prototype.setGroup.call(this,e,i),e&&!this._childProps&&(this._childProps=new KV)},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._label._prepareRender();var i=this._group;i?this._childProps.prepareAngles(i.options.startAngle,i.options.sweepAngle):this._props.prepareAngles(this._op.startAngle,this._op.sweepAngle)},e.DEF_CENTER="50%",e.DEF_RADIUS="40%",e.DEF_INNER="80%",e.defaults=eV($V.defaults,{startAngle:0,sweepAngle:360,clockwise:!0}),e}($V),QV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.props=new KV,this._label=new ZV(this.chart).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.setChildExtents=function(t){var e=this._visibles.length;if(e>0){var i=+this._op.itemGap||0,n=t.radius,r=(n-t.inner-i*(e-1))/e;this._visibles.forEach((function(t,e){var o=t._childProps;o.setRadius(n),o.setInnerRadius(n-r),n-=r+i}))}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=this.props;i.setCenterX(e.centerX),i.setCenterY(e.centerY),i.setRadius(e.radius),i.setInnerRadius(e.innerRadius),i.setValueRadius(e.valueRadius)},e.defaults=eV(jV.defaults,{startAngle:0,sweepAngle:360,clockwise:!0,itemGap:4,labelGap:10}),e}(jV),tk=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.body=e,i}return Lx(e,t),e.prototype._isVisible=function(){return!1!==this._op.visible&&this.body.isZoomed()&&this.body.canZoom()},e.defaults=eV(nV.defaults,{visible:void 0}),e}(nV),ek=function(t){function e(e){var i=t.call(this,e)||this;return i._annotations=new hV(i),i}return Lx(e,t),e.prototype._doInit=function(){this.image=new aV(null).init(),this.zoomButton=new tk(this).init()},e.prototype.anchorByName=function(t){var e=this.chart._getGauges().get(t);return e instanceof BV&&this.contains(e)?e:this._annotations.get(t)},e.prototype.base=function(){return this},e.prototype.canZoom=function(){return!this.chart.isEmpty(!0)&&("x"===this._op.zoomType||"y"===this._op.zoomType||"both"===this._op.zoomType)},e.prototype.getRadius=function(t,e){return MS(this._radiusDim,Kx(t,e))},e.prototype.setPolar=function(t,e){return this._cx=MS(this._centerXDim,t),this._cy=MS(this._centerYDim,e),this._rd=MS(this._radiusDim,Kx(t,e)),this},e.prototype.getPolar=function(t){return this.chart.isPolar()?{start:t?t.getStartAngle():0,total:t?t.getTotalAngle():0,cx:this._cx,cy:this._cy,rd:this._rd}:void 0},e.prototype.isZoomed=function(){return this.chart._getXAxes().isZoomed()||this.chart._getYAxes().isZoomed()},e.prototype.getAnnotations=function(){return this._annotations.getVisibles()},e.prototype.getAnnotation=function(t){return this._annotations.getAnnotation(t)},e.prototype.contains=function(t){return!0},e.prototype._doLoadProp=function(e,i){return"annotations"===e||"annotation"===e?(this._annotations.load(i,!0),!0):t.prototype._doLoadProp.call(this,e,i)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"radius","centerX","centerY")},e.prototype._doPrepareRender=function(t){this._annotations.prepareRender()},e.defaults=eV(nV.defaults,{circular:!0,zoomType:"none",radius:"45%",centerX:"50%",centerY:"50%"}),e}(nV),ik=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(nV.defaults,{useLibrary:!1,menus:["png","jpeg","svg"],fileName:"realchart",scale:1,hideNavigator:!1,hideScrollbar:!1,hideZoomButton:!1}),e}(nV),nk=function(t){function e(e,i){var n=t.call(this,e.chart)||this;return n.legend=e,n.source=i,n}return Lx(e,t),e.prototype.text=function(){return this.source.legendLabel()},e.MARKER_SIZE=10,e}(nV),rk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._items=[],e}return Lx(e,t),e.prototype.items=function(){return this._items.slice(0)},e.prototype.getLayout=function(){if("auto"!==this._op.layout||"body"===this._location)return this._op.layout;switch(this._location){case"bottom":case"top":return"horizontal";default:return"vertical"}},e.prototype.getMaxWidth=function(t){return MS(this._maxWidthDim,t,t)},e.prototype.getMaxHeight=function(t){return MS(this._maxHeightDim,t,t)},e.prototype._isVisible=function(){return!0===this._op.visible&&this._items.length>0||!1!==this._op.visible&&this._items.length>1},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"maxWidth","maxHeight")},e.prototype._doPrepareRender=function(e){var i=this;t.prototype._doPrepareRender.call(this,e),this._location=iS(this._op.location,"bottom"),this._items=this.chart._getLegendSources().map((function(t){return new nk(i,t)})),this._op.reversed&&(this._items=this._items.reverse())},e.defaults=eV(OV.defaults,{visible:void 0,location:"bottom",layout:"auto",alignBase:"body",gap:6,itemGap:8,markerVisible:!0,markerGap:4,lineGap:4,offsetX:0,offsetY:0,itemsAlign:"center",seriesHovering:!0}),e}(OV),ok={inOutSine:function(t){return-(Xx(dS*t)-1)/2}},sk=function(t,e,i,n,r,o){var s=ES(e,null!=i?i:"initial"),a=ES(e,n),u=t.animate([s,a],{duration:r,fill:"none"});return o&&(u?u.addEventListener("finish",o):setTimeout(o,0)),u},ak=function(){function t(){var e=this;this.delay=0,this.duration=t.DURATION,this.easing="inOutSine",this._handler=function(){var t=+new Date-e._started-e.delay,i=Kx(1,Jx(0,xS(t/e.duration)));e._easing&&(i=e._easing(i));try{e._timer&&e._canUpdate()&&!1!==e._doUpdate(i)||e._stop()}finally{t>=e.duration?e._stop():e._started&&e._timer&&(e._ani=window.requestAnimationFrame(e._handler))}}}return t.prototype.start=function(t){return t&&(this.endHandler=t),this._start(this.duration,this.delay,this.easing),this},t.prototype.stop=function(){this._stop()},t.prototype._start=function(e,i,n){var r=this;void 0===i&&(i=0),void 0===n&&(n=null),this._started&&this._stop(),this.duration=tS(e,t.DURATION),this.delay=i||0,this._easing=ok[n],this._doStart(),this._started=+new Date,this._timer=setTimeout((function(){return r._stop()}),1.2*this.duration),this._handler()},t.prototype._stop=function(){var t;this._started&&(cancelAnimationFrame(this._ani),clearTimeout(this._timer),this._timer=null,this._started=null,this._doStop(),null===(t=this.endHandler)||void 0===t||t.call(this,this))},t.prototype._doStart=function(){},t.prototype._doStop=function(){},t.prototype._canUpdate=function(){return!0},t.DURATION=700,t.SHORT_DURATION=300,t}(),uk=Object.values({CIRCLE:"circle",DIAMOND:"diamond",SQUARE:"square",TRIANGLE:"triangle",STAR:"star",ITRIANGLE:"itriangle",RECTANGLE:"rectangle"}),lk=.001,hk=Math.PI,pk=function(){function t(){}return t.line=function(t,e,i,n){return["M",t,e,"L",i,n]},t.lines=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,n=["M",t[i],t[i+1]];i<t.length;i+=2)n.push("L",t[i],t[i+1]);return n.push("Z"),n},t.box=function(t,e,i,n){return["M",t,e,"L",i,e,"L",i,n,"L",t,n,"Z"]},t.rect=function(t){return this.rectangle(t.x,t.y,t.width,t.height)},t.rectangle=function(t,e,i,n){return["M",t,e,"h",i,"v",n,"h",-i,"Z"]},t.bar=function(t,e,i,n,r,o){var s=n>0,a=s?0:1;return r>0?o>0?(r=Kx(Qx(n)/2,i/2,r),o=Kx(Qx(n)/2,i/2,o),["M",t,e+(s?o:-o),"v",n+(s?-o-r:o+r),"a",r,r,0,0,a,r,s?r:-r,"h",i-2*r,"a",r,r,0,0,a,r,s?-r:r,"v",-n+(s?r+o:-r-o),"a",o,o,0,0,a,-o,s?-o:o,"h",2*o-i,"a",o,o,0,0,a,-o,s?o:-o,"Z"]):(r=Kx(Qx(n)/2,i/2,r),["M",t,e,"v",n+(s?-r:r),"a",r,r,0,0,a,r,s?r:-r,"h",i-2*r,"a",r,r,0,0,a,r,s?-r:r,"v",-n-r,"Z"]):o>0?(o=Kx(Qx(n)/2,i/2,o),["M",t,e+(s?o:-o),"v",n+(s?-o:+o),"h",i,"v",-n+(s?o:-o),"a",o,o,0,0,a,-o,s?-o:o,"h",2*o-i,"a",o,o,0,0,a,-o,s?o:-o,"Z"]):["M",t,e,"h",i,"v",n,"h",-i,"v",-n,"Z"]},t.square=function(t,e,i,n){var r=Kx(i,n);return["M",t+=(i-r)/2,e+=(n-r)/2,"h",r,"v",r,"h",-r,"Z"]},t.circle=function(t,e,i){return["M",t,e,"m",i,0,"a",i,i,0,1,1,2*-i,0,"a",i,i,0,1,1,2*i,0]},t.arc=function(t,e,i,n,r,o,s,a){void 0===a&&(a=!1);var u=wS(Qx(o-r)),l=2*hk-u<.01,h=u-hk<.01?0:1,p=s?1:0,c=Xx(r),f=Ux(r),_=Xx(o-=l?p?lk:-.001:0),d=Ux(o),y=[];return y.push("M",t+i*c,e+n*f,"A",i,n,0,h,p,t+i*_,e+n*d),l&&y.push("M",t,e),a&&y.push("Z"),y},t.sector=function(t,e,i,n,r,o,s,a){var u=wS(Qx(s-o)),l=2*hk-u<lk,h=u-hk<lk?0:1,p=a?1:0,c=Xx(o),f=Ux(o),_=Xx(s-=l?p?lk:-.001:0),d=Ux(s),y=i*r,g=n*r,v=[];return v.push("M",t+i*c,e+n*f,"A",i,n,0,h,p,t+i*_,e+n*d),l?v.push("M",t+y*_,e+g*d):v.push("L",t+y*_,e+g*d),isNaN(y)||v.push("A",y,g,0,h,1-p,t+y*c,e+g*f),v.push("Z"),v},t.diamond=function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n/2,"L",t+i/2,e+n,"L",t,e+n/2,"Z"]},t.triangle=function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n,"L",t,e+n,"Z"]},t.itriangle=function(t,e,i,n){return["M",t,e,"L",t+i,e,"L",t+i/2,e+n,"Z"]},t.star=function(t,e,i,n){var r=-Math.PI/2,o=t+i/2,s=e+n/2+(n/2-n/2*Ux(r+6*Math.PI/5))/2,a=i/2,u=n/2,l=i/4,h=n/4,p=2*Math.PI/5,c=p/2,f=[];f.push("M",o+a*Xx(r),s+u*Ux(r));for(var _=0;_<5;_++)f.push("L",o+a*Xx(r),s+u*Ux(r),"L",o+l*Xx(r+c),s+h*Ux(r+c)),r+=p;return f.push("Z"),f},t.setShape=function(e,i,n,r){var o;switch(i){case"square":case"diamond":case"triangle":case"itriangle":case"star":case"rectangle":o=t[i](0,0,2*n,2*r);break;default:o=t.circle(n,r,Kx(n,r))}e.setPath(o)},t}(),ck=function(t){function e(e,i,n){void 0===i&&(i=_S),void 0===n&&(n=_S);var r=t.call(this,e,i,"rect")||this;return r.rect=n,r}return Lx(e,t),e.create=function(t,i,n,r,o,s,a){return void 0===a&&(a=0),new e(t,i,{x:n,y:r,width:o,height:s,r:a})},Object.defineProperty(e.prototype,"rect",{get:function(){return this._rect&&Nx({},this._rect)},set:function(t){if(t!==this._rect&&(this._rect=t&&Nx({},t),t)){this.setRect(t);var e=t.rx||t.r,i=t.ry||t.r;e>0&&this.dom.setAttribute("rx",String(e)),i>0&&this.dom.setAttribute("rx",String(i))}},enumerable:!1,configurable:!0}),e.prototype.resizeRect=function(t,e){var i=this.getStyle("border-radius");return this.resize(t,e),i&&this.dom.setAttribute("rx",i),this},e.prototype.setBounds=function(t,e,i,n,r){return void 0===r&&(r=0),this.rect={x:t,y:e,width:i,height:n,r:r},this},e.prototype.setBox=function(t,e,i,n){this.rect=n<0?{x:t,y:e+n,width:i,height:-n}:{x:t,y:e,width:i,height:n}},e.prototype.setRadius=function(t){t>0&&(this._rect&&(this._rect.rx=this._rect.ry=t),this.dom.setAttribute("rx",String(t)),this.dom.setAttribute("ry",String(t)))},e}(wP),fk=function(t){function e(e,i){return void 0===i&&(i=_S),t.call(this,e,i)||this}return Lx(e,t),e.prototype.setBox=function(t,e,i,n){return this.setPath(pk.box(t,e,i,n)),this},e}(kP);!function(t){function e(e,i){return void 0===i&&(i=_S),t.call(this,e,"dlchart-point-back",i)||this}Lx(e,t)}(ck);var _k=0,dk=function(){function t(t){this.pid=_k++,this.visible=!0,this.source=t}return t.prototype.ariaHint=function(){return(this.x||this.xValue)+", "+this.yValue},t.prototype.labelCount=function(){return 1},t.prototype.getValue=function(){return this.yValue},t.prototype.copy=function(){return Nx({},this)},t.prototype.proxy=function(){return{pid:this.pid,xValue:this.xValue,yValue:this.yValue,zValue:this.zValue}},t.prototype.assignTo=function(t){return t||(t={}),this._assignTo(t),t},t.prototype.getProp=function(t){return null!==this.source&&this.source[t]},t.prototype.parse=function(t){var e=this.source;null==e?this.isNull=!0:Fx(e)?0===e.length?this.isNull=!0:this._readArray(t,e):Bx(e)?(this._readObject(t,e),(Fx(e.drillDown)||Bx(e.drillDown))&&(this.drillDown=e.drillDown)):this._readSingle(e),this.initValues()},t.prototype.getLabelValue=function(t){return this.yLabel===_S?this.yValue:this.yLabel},t.prototype.swap=function(){var t=this.xPos;this.xPos=this.yPos,this.yPos=t},t.prototype.updateValues=function(t,e){if(this._prev=this.copy(),Bx(e)?this.source=Object.assign(Bx(this.source)?this.source:{},e):Fx(e)?this.source=e.slice(0):this.source=e,this.parse(t),this._valuesChangd(this._prev))return this._prev;this._prev=_S},t.prototype.getTooltip=function(t){var e;return t in this?this[t]:null===(e=this.source)||void 0===e?void 0:e[t]},t.prototype.initValues=function(){},t.prototype.initPrev=function(t,e){e.yValue=t.axisMin()},t.prototype.applyValueRate=function(t,e){},t.prototype._assignTo=function(t){return Gx(t,{index:this.index,vindex:this.vindex,x:this.x,y:this.y,xValue:this.xValue,yValue:this.yValue,color:this.color,source:this.source})},t.prototype._readArray=function(t,e){var i=+t.options.colorField;e.length>1?(this.x=e[tS(t.options.xField,0)],this.y=e[tS(t.options.yField,1)]):this.y=e[0],isNaN(i)||(this.color=e[i])},t.prototype._readObject=function(t,e){var i,n,r,o;this.x=(i=t._xFielder(e),n=e.x,r=e.name,o=e.label,void 0!==i?i:void 0!==n?n:null!=r?r:o),this.y=nS(t._yFielder(e),e.y,e.value),this.color=iS(t._colorFielder(e),e.color)},t.prototype._readSingle=function(t){this.y=t},t.prototype._valuesChangd=function(t){return this.x!==t.x||this.y!==t.y},t}(),yk=function(){function t(t){this._points=[],this._owner=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this._points.length},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this._points.length<1},t.prototype.get=function(t){return this._points[t]},t.prototype.pointAt=function(t,e){function i(t,e,i){return Bx(t)?t.pid===e:t===i}return this._points.find((function(n){return i(t,n.pid,n.xValue)&&(void 0===e||i(e,n.pid,n.yValue))}))},t.prototype.contains=function(t){return this._points.indexOf(t)>=0},t.prototype.load=function(t){Fx(t)?this._points=this._owner.initPoints(t):this._points=[]},t.prototype.clear=function(){this._points=[]},t.prototype.add=function(t){this._points.push(t)},t.prototype.remove=function(t){var e=this._points.indexOf(t);if(e>=0)return this._points.splice(e,1),!0},t.prototype.getProps=function(t){return this._points.map((function(e){return e.getProp(t)}))},t.prototype.getCategories=function(t){return this._points.map((function(e){return e[t]}))},t.prototype.getProxies=function(){return this._points.map((function(t){return t.assignTo()}))},t.prototype.forEach=function(t){for(var e=0,i=this._points.length;e<i&&!0!==t(this._points[e],e);e++);},t.prototype.getPoints=function(t,e){var i=t._zoom;if(i){var n=this._points,r=n.length,o=i.start,s=i.end;if(t.continuous()){var a=0,u=void 0,l=void 0;for(l=Number.MIN_VALUE;a<r-1;a++){if(u=n[a],o>=l&&o<u.xValue+(n[a+1].xValue-u.xValue)/2){o=a;break}l=u.xValue}for(o!==a&&(o=r-1),l=Number.MAX_VALUE,a=r-1;a>0;a--){if(u=n[a],s<l&&s>u.xValue-(u.xValue-n[a-1].xValue)/2){s=a;break}l=u.xValue}s!==a&&(s=0),o=Jx(o-1,0),s=Kx(s+1,r-1)}else o=Jx(0,Math.floor(o)),s=Kx(Math.ceil(s),r-1);return this._points.slice(o,s+1)}return this._points},t}(),gk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getLabelValue=function(t){return this.zValue},e.prototype.getValue=function(){return this.zValue},e.prototype.getZValue=function(){return this.zValue},e.prototype._assignTo=function(e){return Gx(t.prototype._assignTo.call(this,e),{z:this.z,zValue:this.zValue})},e.prototype._valuesChangd=function(e){return this.z!==e.z||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){if(e.length<=1)this.isNull=!0;else{var i=e.length>2?1:0;i>0&&(this.x=e[tS(t.options.xField,0)]),this.y=e[tS(t.options.yField,0+i)],this.z=e[tS(t.options.zField,1+i)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.z=iS(e._zFielder(i),i.z))},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.z=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.zValue))},e.prototype.initValues=function(){this.zValue=parseFloat(this.z)},e.prototype.initPrev=function(t,e){e.yValue=e.zValue=this.yValue},e.prototype.applyValueRate=function(t,e){this.zValue=rS(t.zValue,this.zValue,e)},e}(dk),vk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype.labelCount=function(){return 2},e.prototype.getLabelValue=function(t){return 1===t?this.lowValue:this.yValue},e.prototype._assignTo=function(e){return Gx(t.prototype._assignTo.call(this,e),{low:this.low,high:this.high,lowValue:this.lowValue,highValue:this.yValue})},e.prototype._valuesChangd=function(e){return this.low!==e.low||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){var i=t.options,n=e.length>2?1:0;this.low=e[tS(i.lowField,0+n)],this.y=e[eS(i.highField,i.yField,1+n)],n>0&&(this.x=e[tS(i.xField,0)])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.low=iS(i[e.options.lowField],i.low),this.y=nS(i[e.options.highField],i.high,this.y))},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=rS(t.lowValue,this.lowValue,e)},e}(dk),mk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getPosition=function(){var t=this._op.position;return"point"===t||"edge"===t?t:this.axis._isX?"point":"edge"},e.defaults=eV(SV.defaults,{step:1}),e}(SV),bk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getTick=function(t,e){return null!=e?this._getText(e,e,!1,!1):""},e.prototype.getIcon=function(t){var e;return null===(e=this.axis._categories[t.index])||void 0===e?void 0:e.i},e}(PV),wk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getPoints=function(t){var e=t._pts,i=t._ticks.length,n=[];if(i>0){var r=Math.max(1,t.tick.options.step||1);if(r>1)for(var o=0,s=1,a=e.length;o<=i&&s<a;o++,s+=r)n.push(e[s]);else for(o=0;o<=i;o++)n.push(e[o+1])}return n},e}(vV),xk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._catPad=0,e._tstep=1,e}return Lx(e,t),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){return this._grid},enumerable:!1,configurable:!0}),e.prototype.getCategories=function(){return this._cats},e.prototype.xValueAt=function(t){for(var e=2;e<this._pts.length-1;e++)if(t>=this._pts[e-1]&&t<this._pts[e])return this._catMin+e-2;return-1},e.prototype.getWdith=function(t,e){return 0},e.prototype._type=function(){return"category"},e.prototype.unitPad=function(){return this._catPad},e.prototype.continuous=function(){return!1},e.prototype._createGrid=function(){return new wk(this)},e.prototype._createTickModel=function(){return new mk(this)},e.prototype._createLabel=function(){return new bk(this)},e.prototype.collectValues=function(){this.$_collectCategories(this._series),this._isEmpty,this._isEmpty?this._values=sS.makeIntArray(0,this._categories.length):t.prototype.collectValues.call(this)},e.prototype.getStartAngle=function(){var e=t.prototype.getStartAngle.call(this),i=+this._op.startOffset;return i>0&&(e-=Kx(i,1)*this._categories[0].w*yS/this._len),e},e.prototype._doPrepareRender=function(){var t=this._op;this._cats=[],this._weights=[],this._isPolar||this._zoom?this._minPad=this._maxPad=this._catPad=0:(this._minPad=eS(t.minPadding,t.padding,0),this._maxPad=eS(t.maxPadding,t.padding,0),this._catPad=Math.max(0,Math.min(.5,tS(t.categoryPadding,0))))},e.prototype._doBuildTicks=function(t,e,i){var n=this._label,r=this._cats=this._categories.map((function(t){return t.c})),o=this._weights=this._categories.map((function(t){return t.w})),s=this._tick.options.step||1,a=[],u=t,l=e;t=this._catMin=Math.floor(t+.5),e=this._catMax=Math.ceil(e-.5);var h=this._catLen=e-t+1;this._tstep=Math.max(1,Math.min(h,this._tick.options.step||1));for(var p=-1;p>=t;p--)r.unshift(String(p)),o.unshift(1);h=this._len=this._minPad+this._maxPad+o.reduce((function(t,e){return t+e}),0),h+=this._catLen-r.length,o.length=r.length=this._catLen||0;var c=this._pts=[];if(h>0){var f=this._minPad;c.push(0);for(p=t;p<=e;p++)c.push(f/h),f+=o[p-t]||1;c.push(f/h),c.push((f+this._maxPad)/h)}for(p=1;p<c.length-2;p+=s){var _=t+p-1,d=this._categories[t+p-1];a.push({index:p-1,pos:NaN,value:_,label:n.getTick(p-1,d?d.t:_)})}return this._setMinMax(u,l),a},e.prototype._calcPoints=function(e,i){t.prototype._calcPoints.call(this,e,i);var n=this._pts;if(i>0)for(var r=0;r<n.length;r++)n[r]/=this._vlen;for(r=0;r<n.length;r++)n[r]*=e;if(this._isPolar){if(i>0){var o=this._op.totalAngle*vS;this._pts=n.map((function(t){return t/e*o}))}}else{var s=void 0;s="edge"===this._tick.getPosition()?n.slice(1,n.length-1):this._ticks.map((function(t){return t.pos})),this._markPoints=s}},e.prototype.getPos=function(t,e){var i=this._pts,n=Math.floor(e-this._catMin+.5),r=i[n+1]+(i[n+2]-i[n+1])*(e-Math.floor(e+.5)+.5);return this._op.reversed?t-r:r},e.prototype.valueAt=function(t,e){this._op.reversed&&(e=t-e);for(var i=1;i<this._pts.length-1;i++)if(e>=this._pts[i]&&e<this._pts[i+1])return this._catMin+i-.5},e.prototype.getUnitLen=function(t,e){var i=Math.floor(e-this._catMin+.5);return this._pts[i+2]-this._pts[i+2-1]},e.prototype.getLabelLength=function(t,e){var i=Math.floor(e-this._catMin+.5);return i>this._tstep?this._pts[i+2]-this._pts[i+2-this._tstep]:this._pts[i+2+this._tstep-1]-this._pts[i+2-1]},e.prototype.getValue=function(t){return $x(t)?t:this._map[t]},e.prototype.getXValue=function(t){return this._cats[t-this._catMin]||t},e.prototype.$_collectCategories=function(t){var e,i,n,r,o=this,s=this._op.categories,a=this._categories=[];if(Fx(s)&&s.length>0)this._len=0,s.forEach((function(t){var e,i,n=null==t?1:tS(t.weight,1),r=t&&t.icon;null==t?i=e=null:Bx(t)?(e=iS(t.name,t.label),i=iS(t.label,t.name)):i=e=String(t),o._len+=n,a.push({c:e,t:i,w:n,i:r})}));else if(Fx(t))try{for(var u=Mx(t),l=u.next();!l.done;l=u.next()){var h=l.value.collectCategories(this),p=function(t){a.find((function(e){return e.c===t}))||a.push({c:t,w:1,t:t})};try{for(var c=(n=void 0,Mx(h)),f=c.next();!f.done;f=c.next()){p(f.value)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(e)throw e.error}}this._map={},a.forEach((function(t,e){null!=t.c&&(o._map[t.c]=e)}))},e.type="category",e.defaults=eV(CV.defaults,{padding:0,categoryPadding:.1,startOffset:0}),e}(CV),Sk={},Pk={},Vk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){var e=this;t.prototype._doInit.call(this),this._domain={callback:function(t,i){return e._point[i]||e._point.source[i]}}},e.prototype.getValue=function(t,e){if(this._op.textField){var i=t.getProp(this._op.textField);if(null!=i)return i}return t.getLabelValue(e)},e.prototype.getTextDomain=function(t){return this._point=t,this._domain},e.prototype.getText=function(t){return sS.isValidNum(t)?this._getText(null,t,Qx(t)>1e3,!0):t},e.prototype.getOffset=function(){var t=+this._op.offset;return isNaN(t)?"inside"===this._op.position?0:e.OFFSET:t},e.prototype.getDefaultIconPos=function(){return"top"},e.prototype._isVisible=function(){return this._op.visible||Ix(this._op.visibleCallback)},e.prototype._doSetSimple=function(e){return Ix(e)?(this._op.visibleCallback=e,this._op.visible=!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._domain.numberFormatter=this._numberFormatter},e.OFFSET=4,e.defaults=eV(sV.defaults,{visible:void 0,position:"auto",textAlign:"center",distance:25}),e}(sV),kk=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i}return Lx(e,t),e.prototype._doPrepareRender=function(t){var e=this.series,i=this._res=(e._runPoints.length-1)*Math.max(1,+this._op.resolution||5),n=e._minX>0?0:(e._maxX-e._minX)/i-e._minX,r=e._minY>0?0:(e._maxY-e._minY)/i-e._minY,o=e._runPoints.filter((function(t){return!t.isNull})).map((function(t){return{x:t.xValue+n,y:t.yValue+r}}));(this["_"+this._op.type]||this._linear).call(this,o,this._points=[]),this._points.forEach((function(t){t.x-=n,t.y-=r}))},e.prototype.isCurved=function(){var t=this._op.type;return!0===this._op.curved||null==this._op.curved&&("exponential"===t||"logarithmic"===t||"power"===t)},e.prototype._calcLine=function(t){var e=t.length,i=0,n=0,r=0,o=0;t.forEach((function(t){i+=t.x,n+=t.y,r+=t.x*t.y,o+=t.x*t.x}));var s=e*o-i*i,a=0===s?0:(e*r-i*n)/s;return{m:a,a:(n-a*i)/e}},e.prototype._linear=function(t,e){var i=t.length;if(i>1){var n=this._calcLine(t),r=n.m,o=n.a;e.push({x:t[0].x,y:r*t[0].x+o}),e.push({x:t[i-1].x,y:r*t[i-1].x+o})}},e.prototype._logarithmic=function(t,e){var i=t.length;if(i>1)for(var n=t.map((function(t){return{x:Math.log(t.x),y:tS(t.y,0)}})),r=this._calcLine(n),o=r.m,s=r.a,a=t[0].x,u=t[i-1].x,l=(u-a)/this._res,h=a;h<=u;h+=l){var p=s+Math.log(h)*o;e.push({x:h,y:p})}},e.prototype._power=function(t,e){var i=t.length;if(i>1)for(var n=t.map((function(t){return{x:Math.log(t.x),y:Math.log(t.y)}})),r=this._calcLine(n),o=r.m,s=r.a,a=Math.exp(s),u=t[0].x,l=t[i-1].x,h=(l-u)/this._res,p=u;p<=l;p+=h){var c=a*Math.pow(p,o);e.push({x:p,y:c})}},e.prototype._calcLine2=function(t){t.length;var e=0,i=0,n=0,r=0,o=0;t.forEach((function(t){t.x,e+=t.y,i+=t.x*t.x*t.y,n+=t.y*Math.log(t.y),r+=t.x*t.y*Math.log(t.y),o+=t.x*t.y}));var s=e*i-o*o,a=Math.exp((i*n-o*r)/s);return{m:(e*r-o*n)/s,a:a}},e.prototype._exponential=function(t,e){var i=t.length;if(i>1)for(var n=t.map((function(t){return{x:t.x,y:t.y}})),r=this._calcLine2(n),o=r.m,s=r.a,a=t[0].x,u=t[i-1].x,l=(u-a)/this._res,h=a;h<=u;h+=l){var p=s*Math.exp(o*h);e.push({x:h,y:p})}},e.prototype._polynomial=function(t,e){var i=t.length;if(i>1){for(var n=[],r=[],o=0,s=0,a=0;a<3;a++){for(var u=0;u<i;u++)o+=Math.pow(t[u].x,a)*t[u].y;n.push(o),o=0;for(var l=[],h=0;h<3;h++){for(u=0;u<i;u++)s+=Math.pow(t[u].x,a+h);l.push(s),s=0}r.push(l)}r.push(n);for(var p=function(t,e){for(var i=t,n=t.length-1,r=[e],o=0;o<n;o++){for(var s=o,a=o+1;a<n;a++)Qx(i[o][a])>Qx(i[o][s])&&(s=a);for(var u=o;u<n+1;u++){var l=i[u][o];i[u][o]=i[u][s],i[u][s]=l}for(a=o+1;a<n;a++)for(u=n;u>=o;u--)i[u][a]-=i[u][o]*i[o][a]/i[o][o]}for(a=n-1;a>=0;a--){var h=0;for(u=a+1;u<n;u++)h+=i[u][a]*r[u];r[a]=(i[n][a]-h)/i[a][a]}return r}(r,3),c=t[0].x,f=t[i-1].x,_=(f-c)/this._res,d=function(t){var i=p.reduce((function(e,i,n){return e+i*Math.pow(t,n)}),0);e.push({x:t,y:i})},y=c;y<=f;y+=_)d(y)}},e.prototype._movingAverage=function(t,e){for(var i=t.length,n=Jx(1,Kx(i-1,this._op.movingInterval)),r=n;r<=i;){var o=t.slice(r-n,r).reduce((function(t,e){return t+tS(e.y,0)}),0);e.push({x:t[r-1].x,y:o/n}),r++}},e.defaults=eV(nV.defaults,{visible:!1,type:"linear",resolution:5,movingInterval:2}),e}(nV),Ak={x:"xValue",y:"yValue",z:"zValue"},Ck=function(t){function e(e,i){var n=t.call(this)||this;return n.series=e,n.point=i,n.duration=500,n.endHandler=function(){delete n.point._vr,n.series._changed(),n.series=n.point=null},n}return Lx(e,t),e.prototype._doUpdate=function(t){return this.point._vr=t,this.series._changed(),!0},e}(ak),Ek=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._row=0,e._col=0,e.index=-1,e.seriesIndex=0,e._simpleMode=!1,e}return Lx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){Sk[t.type]=t}))},e._loadSeries=function(t,e,i,n){var r=t._getSeriesType(i.type)||t._getSeriesType(n||t.type);if(!r)throw new Error("Invalid series type: "+i.type+", "+t.type);var o=new r(t).init();return o.index=e,o.seriesIndex=t._seriesIndex++,o.load(i),o},e.getPointTooltipParam=function(t,e,i){switch(i){case"series":return t.displayName();case"name":return e.getTooltip(i)||t._xAxisObj.getXValue(e.xValue);case"xValue":return t._xAxisObj.value2Tooltip(e.xValue);case"yValue":return t._yAxisObj.value2Tooltip(e[i]);default:return e.getTooltip(i)}},e.prototype._doInit=function(){this._points=new yk(this),this._pointArgs=this._createPointArgs(),this._pointLabel=this._createLabel(this.chart).init(),this._trendline=new kk(this).init()},e.prototype.onDataValueChanged=function(t,e,i,n,r){sS.log("onDataValueChanged",e,i,n,r);var o=this._runPoints[e];if(o){var s={};s[i]=n,this.updatePoint(o,s)}},e.prototype.onDataRowUpdated=function(t,e,i){},e.prototype.onDataRowAdded=function(t,e){sS.log("onDataRowAdded",e),this.addPoint(t.getRow(e))},e.prototype.onDataRowDeleted=function(t,e){sS.log("onDataRowDeleted",e);var i=this._runPoints[e];i&&this.removePoint(i)},e.prototype.onDataChanged=function(t){sS.log("onDataChanged")},e.prototype.getTooltipText=function(t,e){return this._op.tooltipCallback?(this._getPointCallbackArgs(this._pointArgs,e),this._op.tooltipCallback(this._pointArgs)):this._op.tooltipText},e.prototype.getTooltipParam=function(t,i,n){return e.getPointTooltipParam(t,i,n)},e.prototype._type=function(){return this.constructor.type},e.prototype._viewType=function(){return this._type()},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trendline",{get:function(){return this._trendline},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},enumerable:!1,configurable:!0}),e.prototype._setData=function(t){t!==this._data&&(this._op.data=this._data=t,this._dataSourceDirty=!0,this._changed())},e.prototype.contains=function(t){return this._points.contains(t)},Object.defineProperty(e.prototype,"pointCount",{get:function(){return this._runPoints.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visiblePointCount",{get:function(){return this._visPoints.length},enumerable:!1,configurable:!0}),e.prototype.getPoints=function(){return this._points},e.prototype._getLabeledPoints=function(){return this._points.getPoints(this._xAxisObj,this._yAxisObj)},e.prototype._getVisiblePoints=function(){return this._points.getPoints(this._xAxisObj,this._yAxisObj)},e.prototype.pointLabelCount=function(){return 1},e.prototype.isEmpty=function(){return this._points.isEmpty()},e.prototype.needAxes=function(){return!0},e.prototype.canCategorized=function(){return!1},e.prototype.hasZ=function(){return!1},e.prototype.defYAxisType=function(){return"linear"},e.prototype.isClusterable=function(){return!1},e.prototype.isMarker=function(){return!1},e.prototype.displayName=function(){return this._op.label||this.name},e.prototype.legendMarker=function(t,e){return this._legendMarker||(this._legendMarker=this._createLegendMarker(t,+e||nk.MARKER_SIZE)),this._legendMarker},e.prototype.legendColor=function(){return this._calcedColor},e.prototype.legendLabel=function(){return this._op.label||this.name},e.prototype.styleLegendMarker=function(t){},e.prototype.canMixWith=function(t){return!0},e.prototype.getBaseValue=function(t){return NaN},e.prototype.isBased=function(t){return!1},e.prototype.canMinPadding=function(t,e){var i=this.getBaseValue(t);return isNaN(i)||!this.isBased(t)||e<i},e.prototype.canMaxPadding=function(t,e){var i=this.getBaseValue(t);return isNaN(i)||!this.isBased(t)||e>i},e.prototype.hasMarker=function(){return!1},e.prototype.setShape=function(t){},e.prototype.seriesChanged=function(){return this._pointsChanged},e.prototype.getMinPointWidth=function(){return NaN},e.prototype.getVisibleSeries=function(){return[this]},e.prototype._getNoClip=function(t){return this._group?this._group.options.noClip:this._op.noClip},e.prototype.needClip=function(t){var e=this._getNoClip(t);return t?!1===e:!0!==e},e.prototype.setCol=function(t){this._col=t},e.prototype.setRow=function(t){this._row=t},e.prototype.initPoints=function(t){var e=this;return this._containsNull=!1,t.map((function(t,i){return e.$_addPoint(t,i)}))},e.prototype.$_getXStart=function(t){var e=t.getValue(this._op.xStart),i=isNaN(e)?t.getValue(this.chart._chartOptions.getXStart(t)):e;return t._zoom?Math.floor(t._zoom.start):i||0},e.prototype.$_getXStep=function(t){return iS(this._op.xStep,this.chart._chartOptions.options.xStep)||1},e.prototype._prepareRender=function(){if(this._xAxisObj=this._group?this._group._xAxisObj:this.chart._connectSeries(this,!0),this._yAxisObj=this._group?this._group._yAxisObj:this.chart._connectSeries(this,!1),this._calcedColor=void 0,this._dataSourceDirty){var e=this._doLoadData(this._data);this._loadPoints(e),this._dataSourceDirty=!1}this._runPoints=this._points.getPoints(this._xAxisObj,this._yAxisObj),this._pointLabel._prepareRender(),t.prototype._prepareRender.call(this)},e.prototype.prepareAfter=function(){this._pointsChanged=!1},e.prototype.collectCategories=function(t){if(t instanceof xk){var e=t.options.categoryField;return null!=e?this._points.getProps(e):this._points.getCategories(t===this._xAxisObj?"x":"y").filter((function(t){return jx(t)}))}},e.prototype.collectValues=function(t,e){if(t===this._xAxisObj){var i=this.$_getXStart(t),n=this.$_getXStep(t);jx(n)&&(n=n.trim()),this._runPoints.forEach((function(r,o){var s=t.getValue(r.x);isNaN(s)&&(s=i,i=t.incStep(i,n)),isNaN(s)?r.isNull=!0:(r.xValue=s,e&&e.push(s))}))}else this._runPoints.forEach((function(i,n){if(i.isNull)i.y=i.yGroup=i.yValue=NaN;else{var r=null==i.y?NaN:t.getValue(i.y);isNaN(r)&&(r=t.getValue(i.y)),i.initValues(),isNaN(i._vr)||(isNaN(i._prev.yValue)&&i.initPrev(t,i._prev),r=i._prev.yValue+(r-i._prev.yValue)*i._vr,i.applyValueRate(i._prev,i._vr)),isNaN(r)?i.yGroup=0:(i.yGroup=i.yValue=r,e&&e.push(r)),i.isNull=isNaN(i.yValue)}}))},e.prototype.collectRanges=function(t){var e=this._visPoints,i=e.length;if(i>0){var n=this._pointArgs,r=e[0],o=r.xValue,s=o,a=r.yValue,u=a,l=r.zValue,h=l,p=this.hasZ();r.vindex=0;for(var c=1;c<i;c++)(r=e[c]).vindex=c,isNaN(u)&&!isNaN(r.yValue)?a=u=r.yValue:r.yValue>u?u=r.yValue:r.yValue<a&&(a=r.yValue),isNaN(s)&&!isNaN(r.xValue)?o=s=r.xValue:r.xValue>s?s=r.xValue:r.xValue<o&&(o=r.xValue);if(p)for(c=1;c<i;c++){var f=e[c].zValue;isNaN(h)&&!isNaN(f)?l=h=f:f>h?h=f:f<l&&(l=f)}if(this._minY=a,this._maxY=u,this._minX=o,this._maxX=s,this._trendline.visible){this._trendline._prepareRender();var _=this._trendline._points.map((function(t){return t.y})).sort((function(t,e){return t-e}));this._minY=Math.min(this._minY,_[0]),this._maxY=Math.max(this._maxY,_[_.length-1])}n.yMin=this._minY,n.yMax=this._maxY,n.xMin=this._minX,n.xMax=this._maxX,p&&(n.zMin=this._minZ=l,n.zMax=this._maxZ=h)}this.$_prepareViewRanges(e),isNaN(this._minY)||t.push(this._minY,this._maxY)},e.prototype._getRangeMinMax=function(t){var e,i;return"x"===t?(e=this._minX,i=this._maxX):"z"===t?(e=this._minZ,i=this._maxZ):(e=this._minY,i=this._maxY),{min:e,max:i}},e.prototype.$_prepareViewRanges=function(t){var e=this,i=this._runRangeValue=this.getViewRangeAxis(),n=this._getRangeMinMax(i),r=n.min,o=n.max;(this._runRanges=jS(this._op.viewRanges,r,o,!1,!1,!0,this._runColor))?t.forEach((function(t,n){e._setViewRange(t,i)})):t.forEach((function(t,e){t.range=_S}))},e.prototype.pointValuesPrepared=function(t){var e=this;this._referents&&this._referents.forEach((function(i){return i.reference(e,t)})),this.visible&&(this._visPoints=this._runPoints.filter((function(t){return t.visible})))},e.prototype.reference=function(t,e){},e.prototype.isVisible=function(t){return this._xAxisObj.contains(t.x)&&this._yAxisObj.contains(t.y)},e.prototype.getLegendSources=function(t){!1!==this._op.visibleInLegend&&t.push(this)},e.prototype.getLabelPosition=function(t){return t},e.prototype.getLabelOff=function(t){return t},e.prototype.referBy=function(t){t&&(this._referents?this._referents.indexOf(t)<0&&this._referents.push(t):this._referents=[t])},e.prototype.setPointVisible=function(t,e){t&&e!==t.visible&&(t.visible=e,this.chart._pointVisibleChanged(this,t))},e.prototype._createPointArgs=function(){return{}},e.prototype._preparePointArgs=function(t){this._pointLabelCallback=this._pointLabel.options.textCallback,this._argsPoint=null,t.series=this,t.count=this._points.count},e.prototype._getPointCallbackArgs=function(t,e){e!==this._argsPoint&&(this._argsPoint=e).assignTo(t)},e.prototype.getPointText=function(t,e){if(this._pointLabelCallback){this._getPointCallbackArgs(this._pointArgs,t);var i=this._pointLabelCallback(this._pointArgs);if(null!=i)return i}return e},e.prototype.getPointStyle=function(t){if(this._op.pointStyleCallback)return this._getPointCallbackArgs(this._pointArgs,t),this._op.pointStyleCallback(this._pointArgs)},e.prototype.getPointLabelStyle=function(t){if(this._pointLabel.options.styleCallback)return this._getPointCallbackArgs(this._pointArgs,t),this._pointLabel.options.styleCallback(this._pointArgs)},e.prototype.pointClicked=function(t){if(this._op.onPointClick)return this._getPointCallbackArgs(this._pointArgs,t),this._op.onPointClick(this._pointArgs)},e.prototype.pointHovered=function(t){this._op.onPointHover&&(t&&this._getPointCallbackArgs(this._pointArgs,t),this._op.onPointHover(t?this._pointArgs:null))},e.prototype.getViewRangeAxis=function(){return this._op.viewRangeValue||this._defViewRangeValue()},e.prototype.isPointLabelVisible=function(t){var e=this._pointLabel;return!1!==e.visible&&(e.options.visibleCallback?(this._getPointCallbackArgs(this._pointArgs,t),e.options.visibleCallback(this._pointArgs)):!0===e.visible)},e.prototype.getPointAt=function(t){return jx(t)&&(t=this._xAxisObj.getValue(t)),this._points.pointAt(t)},e.prototype.getValueAt=function(t,e){void 0===e&&(e="yValue");var i=this.getPointAt(t);return i?i[e]:_S},e.prototype.updatePoint=function(t,e){if(t instanceof dk||(t=this.getPointAt(t)),t){var i=t._prev;return i&&i.ani&&i.ani.stop(),(i=t.updateValues(this,e))&&(this.chart._dataChanged(),this.chart.animatable()&&(i.ani=new Ck(this,t),i.ani.start())),this._changed(),!!i}return!1},e.prototype.updateData=function(t){this._setData(t),this.chart._dataChanged()},e.prototype.addPoint=function(t){var e=this._doAddPoint(t);if(e){if(this._points.add(e),this.chart._dataChanged(),this.chart.animatable()){this._pointsChanged=!0;var i=e._prev=e.copy();i.ani=new Ck(this,e),i.ani.start()}this._changed()}return e},e.prototype.addPoints=function(t){var e=this,i=[];return Fx(t)&&t.forEach((function(t){var n=e._doAddPoint(t);n&&i.push(n)&&e._points.add(n)})),i.length>0&&(this._pointsChanged=!0,this.chart._dataChanged(),this.chart.animatable()&&i.forEach((function(t){var i=t._prev=t.copy();i.ani=new Ck(e,t),i.ani.start()})),this._changed()),i},e.prototype.removePoint=function(t){if(t instanceof dk||(t=this.getPointAt(t)),t&&this._points.remove(t))return this._doPointRemoved(t),this._pointsChanged=!0,this.chart._dataChanged(),this._changed(),!0},e.prototype.removePoints=function(t){var e=this;if(Fx(t)){var i=[];t.forEach((function(t){t instanceof dk||(t=e.getPointAt(t)),t&&e._points.remove(t)&&i.push(t)})),i.length>0&&(this._doPointsRemoved(i),this._pointsChanged=!0,this.chart._dataChanged(),this._changed())}return 0},e.prototype.followPointer=function(){return!1},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._name=e.name||"Series ".concat(this.index+1),this._setData(e.data),this._createFielders()},e.prototype._createLabel=function(t){return new Vk(t)},e.prototype._createPoint=function(t){return new dk(t)},e.prototype.$_addPoint=function(t,e){var i=this._createPoint(t);return i.index=e,i.parse(this),(i.isNull||(i.isNull=null==t||null==i.y))&&(this._containsNull=!0),i},e.prototype._doAddPoint=function(t){return this.$_addPoint(t,this._points.count)},e.prototype._doPointRemoved=function(t){},e.prototype._doPointsRemoved=function(t){},e.prototype._createLegendMarker=function(t,i){return ck.create(t,e.LEGEND_MARKER,0,0,i,i,i/2)},e.prototype._referOtherSeries=function(t){return!0},e.prototype._colorByPoint=function(){return!1},e.prototype._getFielderProps=function(){return["xField","yField","zField","colorField"]},e.prototype._createFielder=function(t){return Ix(t)?function(e){return t(e)}:jx(t)?function(e){return e[t]}:function(t){}},e.prototype._createFielders=function(){var t=this,e=this._op;this._getFielderProps().forEach((function(i){var n="_".concat(i,"er");(!t[n]||i in e&&t["_".concat(i)]!==e[i])&&(t[n]=t._createFielder(e[i]),t["_".concat(i)]=e[i])}))},e.prototype._defaultLoadAnimation=function(){return"reveal"},e.prototype.load=function(e){return this.chart?t.prototype.load.call(this,this.chart.loadBase(e,"series",this._type())):t.prototype.load.call(this,e)},e.prototype._doLoadData=function(t){if(Fx(t))return t;if(t){var e=void 0;if(t._obj instanceof GS?e=t._obj:t instanceof GS&&(e=t),e)return e!==this._cdata&&(this._cdata&&this._cdata._removeListener(this),this._cdata=e,this._cdata&&this._cdata._addListener(this)),e._internalValues()}},e.prototype._loadPoints=function(t){var e,i;this._doLoadPoints(t),null===(i=(e=this._op).onPointsLoaded)||void 0===i||i.call(e,this,!this._loaded),this._loaded=!0},e.prototype._doLoadPoints=function(t){this._points.load(t)},e.prototype._doPrepareRender=function(){var t,e,i=this._op,n=this._runColor=$x(i.color)?"var(--color-".concat((Math.floor(i.color)-1)%12+1,")"):i.color;Fx(i.pointColors)?t=i.pointColors:jx(i.pointColors)?e=this.chart._assets.get(i.pointColors):this._colorByPoint()&&(t=this.chart.options.options.colors),e instanceof KP?(e.prepare(),this._runPoints.forEach((function(t,i){t.color=t.color||e.getNext()||n}))):Fx(t)?this._runPoints.forEach((function(e,i){e.color=e.color||t[i%t.length]||n})):this._runPoints.forEach((function(t,e){t.color=t.color||n})),this._preparePointArgs(this._pointArgs)},e.prototype._setViewRange=function(t,e){var i,n,r=t[Ak[e]];try{for(var o=Mx(this._runRanges),s=o.next();!s.done;s=o.next()){var a=s.value;if(r>=a.fromValue&&r<=a.toValue)return void(t.range=a)}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}t.range=_S},e.prototype._defViewRangeValue=function(){return"y"},e.LEGEND_MARKER="rct-legend-item-marker",e.defaults=eV(nV.defaults,{zOrder:0,visibleInLegend:!0,visibleInNavigator:!1,tooltipText:"<b>${name}</b><br>${series}:<b> ${yValue}</b>",loadAnimation:"default",hoverEffect:"default"}),e}(nV),Lk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._visibles=[],e._series=[],e._visibleSeries=[],e}return Lx(e,t),Object.defineProperty(e.prototype,"firstSeries",{get:function(){return this._series[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstVisible",{get:function(){return this._visibles[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstVisibleSeries",{get:function(){return this._visibleSeries[0]},enumerable:!1,configurable:!0}),e.prototype.isWidget=function(){return this._widget},e.prototype.isEmpty=function(t){return!(t?this._visibles:this._items).find((function(e){return!e.isEmpty(t)}))},e.prototype.visibles=function(){return this._visibles.slice(0)},e.prototype.series=function(){return this._series.slice(0)},e.prototype.seriesCount=function(){return this._series.length},e.prototype.needAxes=function(){return!!this._visibles.find((function(t){return t.needAxes()}))||0===this._visibleSeries.length},e.prototype._clear=function(){},e.prototype.getSeries=function(t){return this._map[t]},e.prototype.getVisibleSeries=function(){return this._visibleSeries.slice(0)},e.prototype.getPaneSeries=function(t,e){return this._visibleSeries.filter((function(i){return t===i._row&&e===i._col}))},e.prototype.seriesByPoint=function(t){var e,i;try{for(var n=Mx(this._series),r=n.next();!r.done;r=n.next()){var o=r.value;if(o.contains(t))return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.getLegendSources=function(){var t=[];return this._items.forEach((function(e){return e.getLegendSources(t)})),t},e.prototype.load=function(t){var e=this,i=this.chart,n=this._items=[],r=this._series=[];Fx(t)?t.forEach((function(t,r){n.push(e.$_loadItem(i,t,r))})):Bx(t)&&n.push(this.$_loadItem(i,t,0)),n.forEach((function(t){t instanceof Ik?r.push.apply(r,Ox([],Tx(t.series),!1)):t instanceof Ek&&r.push(t)})),this._map={},this._widget=!0,r.forEach((function(t){return e.$_add(t)})),i.options.series=this._items.map((function(t){return t.options}))},e.prototype.add=function(t){var e=this.$_loadItem(this.chart,t,this._series.length);if(e)return this._items.push(e),this._series.push(e),this.$_add(e),e},e.prototype.remove=function(t){var e;if(t instanceof Ek?e=t:jx(t)&&(e=this._map[t]),e){if(!e._group)return this._items.splice(this._items.indexOf(e),1),this._series.splice(this._series.indexOf(e),1),e.name&&delete this._map[e.name],e;if(e._group.remove(e))return e}},e.prototype.updateData=function(t){},e.prototype.prepareRender=function(){var t=[],e=0;this._visibles=this._items.filter((function(t){return t.visible})).sort((function(t,e){return(+t.options.zOrder||0)-(+e.options.zOrder||0)})),this._series.forEach((function(i){i.visible&&t.push(i),i.hasMarker()&&i.setShape(uk[e++%uk.length])})),this._visibleSeries=t.sort((function(t,e){var i=+(t.group?t.group.zOrder:t.zOrder)||0,n=+(e.group?e.group.zOrder:e.zOrder)||0;return i===n&&t.group&&t.group===e.group?(+t.zOrder||0)-(+e.zOrder||0):i-n}));var i=this._visibleSeries.filter((function(t){return t.isClusterable()})).length;this._visibleSeries.forEach((function(t,e){t instanceof Rk&&(t._single=1===i)})),this._visibles.forEach((function(t){return t._prepareRender()}))},e.prototype.prepareAfter=function(){this._visibles.forEach((function(t){return t.prepareAfter()}))},e.prototype.$_loadItem=function(t,e,i){var n=Fx(e.children||e.series)&&t._getGroupType(e.type||t.type);if(n){var r=new n(t).init();return r.load(e),r.index=i,r}return Ek._loadSeries(t,i,e)},e.prototype.$_add=function(t){var e,i;!this._widget||t instanceof Tk||(this._widget=!1),t.name&&(this._map[t.name]=t);try{for(var n=Mx(this._series),r=n.next();!r.done;r=n.next()){var o=r.value;if(o!==t){if(!t.canMixWith(o))throw new Error("동시에 표시할 수 없는 시리즈들입니다: "+t._type()+", "+o._type());if(t._referOtherSeries(o))break}}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e}(rV),Nk=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i}return Lx(e,t),e.defaults=eV(nV.defaults,{radius:3}),e}(nV),Mk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.legendMarker=function(){return this._legendMarker},e.prototype.setLegendMarker=function(t){this._legendMarker=t},e.prototype.legendColor=function(){return this._calcedColor},e.prototype.legendLabel=function(){return iS(this.x,this.y)},e.prototype.styleLegendMarker=function(t){},e}(dk),Tk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getCenter=function(t,e){return{x:MS(this._centerXDim,t),y:MS(this._centerYDim,e)}},e.prototype.getLabelPosition=function(){var t=this._pointLabel.options.position;return"auto"===t?"inside":t},e.prototype.needAxes=function(){return!1},e.prototype._colorByPoint=function(){return!0},e.prototype.getLegendSources=function(e){this._op.legendByPoint?!1!==this._op.visibleInLegend&&this._runPoints.forEach((function(t){e.push(t)})):t.prototype.getLegendSources.call(this,e)},e.prototype._doApply=function(i){var n,r,o=this;t.prototype._doApply.call(this,i),n=i.centerX,r=i.centerY,n!==o._centerX&&(o._centerX=n,o._centerXDim=LS(nS(n,o._op.center,e.CENTER),!0)),r!==o._centerY&&(o._centerY=r,o._centerYDim=LS(nS(r,o._op.center,e.CENTER),!0))},e.prototype.canMinPadding=function(t,e){return!1},e.prototype.canMaxPadding=function(t,e){return!1},e.CENTER="50%",e.defaults=eV(Ek.defaults,{boundsAnimation:!0,legendByPoint:!1,centerX:"50%",centerY:"50%"}),e}(Ek),Ok=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getRadius=function(t,e){return MS(this._radiusDim,Kx(t,e))},e.prototype._doApply=function(i){var n,r=this;t.prototype._doApply.call(this,i),(n=i.radius)!==r._radius&&(r._radiusDim=LS(iS(r._radius=n,e.defaults.radius),!0))},e.defaults=eV(Tk.defaults,{radius:"40%",startAngle:0,totalAngle:360,clockwise:!0}),e}(Tk),Rk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._clusterWidth=1,e._clusterPos=0,e._childWidth=1,e._childPos=0,e._pointPad=0,e._minPointWidth=0,e}return Lx(e,t),e.prototype.groupWidth=function(){return this._op.pointWidth},e.prototype.getMinPointWidth=function(){return this._minPointWidth},e.prototype.getPointWidth=function(t){var e=this._group,i=t;return e?(i*=e._clusterWidth,i*=1-2*e.options.groupPadding,i*=this._childWidth):i*=this._clusterWidth,i*=1-2*this._pointPad,Jx(this._minPointWidth,i)},e.prototype.getPointPos=function(t){var e=this._group,i=t,n=0;return e?(n=i*e._clusterPos,n+=(i*=e._clusterWidth)*e.options.groupPadding,n+=(i-=i*e.options.groupPadding*2)*this._childPos,i*=this._childWidth):(n=i*this._clusterPos,i*=this._clusterWidth),n+=i*this._pointPad},e.prototype.getLabelPosition=function(t){return"auto"===t?"outsideFirst":t},e.prototype.isClusterable=function(){return!1!==this._op.clusterable},e.prototype.setCluster=function(t,e){this._clusterWidth=t,this._clusterPos=e},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._pointPad=isNaN(this._op.pointPadding)?this._single?.25:this._group?.1:.2:Math.max(0,Math.min(.5,this._op.pointPadding)),this._minPointWidth=tS(this.getMinPointWidth(),0)},e.defaults=eV(Ek.defaults,{pointWidth:1}),e}(Ek),Dk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._base=tS(this._getGroupBase(),this._yAxisObj.getBaseValue())},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?this._base:NaN},e.prototype._getGroupBase=function(){return this._op.baseValue},e.prototype.isBased=function(t){return t===this._yAxisObj},e.defaults=eV(Rk.defaults,{baseValue:0,nullAsBase:!1}),e}(Rk),Bk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.collectValues=function(e,i){var n=this;t.prototype.collectValues.call(this,e,i),e===this._yAxisObj&&this._runPoints.forEach((function(t){var e=n._getBottomValue(t);i&&!isNaN(e)&&i.push(e)}))},e}(Rk),Fk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(Bk),Ik=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.index=-1,e._series=[],e._visibles=[],e._seriesChanged=!1,e}return Lx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){Pk[t.type]=t}))},e.registerSeries=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){Pk[t.seriesType]=t}))},e.collectTooltipText=function(t,e,i){var n=t.tooltipHeader||"";return t.tooltipRow&&e.forEach((function(e,r){i.vindex>=e._visPoints.length||(n&&(n+="<br>"),n+=t.tooltipRow.replace("series","series."+r).replace(/\$\{/g,"${"+r+"."))})),n+=t.tooltipFooter?"<br>"+t.tooltipFooter:""},e.inflateTooltipParam=function(t,e,i,n){var r=n.indexOf("."),o=+n.substring(0,r);return isNaN(o)||(i=(e=t[o])._visPoints[i.vindex],n=n.substring(r+1)),n.startsWith("series.")&&(e=t[+n.substring(7)]||e,n="series"),Ek.getPointTooltipParam(e,i,n)},e.prototype.getTooltipText=function(t,i){return e.collectTooltipText(this._op,this._visibles,i)},e.prototype.getTooltipParam=function(t,i,n){return e.inflateTooltipParam(this._visibles,t,i,n)},Object.defineProperty(e.prototype,"series",{get:function(){return this._series.slice(0)},enumerable:!1,configurable:!0}),e.prototype.needAxes=function(){return!0},e.prototype.isEmpty=function(t){return(t?this._visibles:this._series).length<1},e.prototype.canCategorized=function(){return!1},e.prototype.defYAxisType=function(){return"linear"},e.prototype.isClusterable=function(){return!1},e.prototype.getBaseValue=function(t){return NaN},e.prototype.getVisibleSeries=function(){return this._visibles},e.prototype._type=function(){return this.constructor.type},e.prototype._seriesType=function(){return this.constructor.seriesType},e.prototype.setCol=function(t){this._col=t,this._series.forEach((function(e){return e.setCol(t)}))},e.prototype.setRow=function(t){this._row=t,this._series.forEach((function(e){return e.setRow(t)}))},e.prototype.isFirstVisible=function(t){return t===this._visibles[0]},e.prototype.isLastVisible=function(t){return t===this._visibles[this._visibles.length-1]},e.prototype.collectValues=function(t,e){if(this._visibles.length>0)if(t===this._visibles[0]._yAxisObj)switch(this._op.layout){case"stack":this.$_collectStack(t,e);break;case"fill":this.$_collectFill(t,e);break;default:this.$_collectValues(t,e)}else this.$_collectValues(t,e)},e.prototype.collectRanges=function(t){this._visibles.forEach((function(e){e.collectRanges(t)}))},e.prototype.pointValuesPrepared=function(t){this._series.forEach((function(e){return e.pointValuesPrepared(t)}))},e.prototype.collectCategories=function(t){var e=[];return this._visibles.forEach((function(i){return e=e.concat(i.collectCategories(t))})),e},e.prototype.getLegendSources=function(t){var e=this._op;if(!1!==e.visibleInLegend){var i=this._series;if(this._yAxisObj.options.reversed||"fill"!==e.layout&&"stack"!==e.layout)i.forEach((function(e){return e.getLegendSources(t)}));else for(var n=i.length-1;n>=0;n--)i[n].getLegendSources(t)}},e.prototype.isBased=function(t){return this._visibles[0]&&this._visibles[0].isBased(t)},e.prototype.canMinPadding=function(t,e){var i=this.getBaseValue(t);return isNaN(i)||!this.isBased(t)||e<i},e.prototype.canMaxPadding=function(t,e){var i=this.getBaseValue(t);return(isNaN(i)||e>i||!this.isBased(t))&&"fill"!==this._op.layout},e.prototype.getVisPoints=function(t){return this._visibles.map((function(e){return e._visPoints[t.vindex]}))},e.prototype.seriesChanged=function(){return this._seriesChanged},e.prototype.remove=function(t){var e=this._series.indexOf(t);if(e>=0)return this._series.splice(e,1),!0},e.prototype._getVisiblePoints=function(){var t=[];return this._visibles.forEach((function(e){return t.push.apply(t,Ox([],Tx(e._getVisiblePoints()),!1))})),t},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),Dx.call(e,"children")&&this.$_loadSeries(this.chart,e.children)},e.prototype._prepareRender=function(){var e=this._visibles;if(this._stacked="stack"===this._op.layout||"fill"===this._op.layout,this._visibles=this._series.filter((function(t){return t.visible})).sort((function(t,e){return(+t.options.zOrder||0)-(+e.options.zOrder||0)})),!(this._seriesChanged=!sS.equalArrays(e,this._visibles)))for(var i=this._visibles.length-1;i>=0;i--)if(this._visibles[i].seriesChanged()){this._seriesChanged=!0;break}t.prototype._prepareRender.call(this)},e.prototype._doPrepareRender=function(t){this._xAxisObj=this.chart._connectSeries(this,!0),this._yAxisObj=this.chart._connectSeries(this,!1),this._visibles.length>0&&(this._visibles.forEach((function(t){return t._prepareRender()})),this._doPrepareSeries(this._visibles))},e.prototype.prepareAfter=function(){this._visibles.forEach((function(t){return t.prepareAfter()}))},e.prototype._doPrepareSeries=function(t){},e.prototype.$_loadSeries=function(t,e){var i=this,n=this._seriesType();Fx(e)?e.forEach((function(e,r){return i.$_add(Ek._loadSeries(t,i._series.length,e,n))})):Bx(e)&&this.$_add(Ek._loadSeries(t,this._series.length,e,n))},e.prototype.$_add=function(t){if(!this._canContain(t))throw new Error("이 그룹에 포함될 수 없는 시리즈입니다: "+t);this._series.push(t),t._group=this},e.prototype.$_collectValues=function(t,e){this._visibles.forEach((function(i){i.collectValues(t,e)}))},e.prototype.$_collectPoints=function(t){var e=this._visibles,i=this._stackPoints=new Map;e.forEach((function(e){e.collectValues(t,null)})),e[0]._runPoints.forEach((function(t){i.set(t.xValue,[t])}));for(var n=1;n<e.length;n++)e[n]._runPoints.forEach((function(t){var e=i.get(t.xValue);e?e.push(t):i.set(t.xValue,[t])}));return i},e.prototype.$_collectStack=function(t,e){var i,n,r,o,s=this.getBaseValue(t),a=this.$_collectPoints(t);if(isNaN(s))try{for(var u=Mx(a.values()),l=u.next();!l.done;l=u.next()){(c=l.value)[0].yGroup=c[0].yValue||0;for(y=1;y<c.length;y++)c[y].yGroup=c[y-1].yGroup+(c[y].yValue||0);e.push(c[c.length-1].yGroup)}}catch(t){r={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}else try{for(var h=Mx(a.values()),p=h.next();!p.done;p=h.next()){var c,f=(c=p.value)[0].yValue||0,_=f>=s?0:-1,d=f<s?0:-1;c[0].yGroup=c[0].yValue||0;for(var y=1;y<c.length;y++)(f=c[y].yValue||0)>=s?(_>=0&&(c[y].yGroup=c[_].yGroup+f*(f<0?-1:1)),_=y):(d>=0&&(c[y].yGroup=c[d].yGroup+f*(f>=0?-1:1)),d=y);_>=0&&e.push(c[_].yGroup),d>=0&&e.push(c[d].yGroup)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}},e.prototype.$_collectFill=function(t,e){var i,n,r,o,s,a,u,l,h,p,c,f,_=this.getBaseValue(t),d=this.options.layoutMax||100,y=this.$_collectPoints(t);if(isNaN(_))try{for(var g=Mx(y.values()),v=g.next();!v.done;v=g.next()){k=(V=v.value).reduce((function(t,e){return t+(e.yValue||0)}),0);if(0===k){try{for(var m=(h=void 0,Mx(V)),b=m.next();!b.done;b=m.next()){(T=b.value).yValue=T.yGroup=0}}catch(t){h={error:t}}finally{try{b&&!b.done&&(p=m.return)&&p.call(m)}finally{if(h)throw h.error}}e.push(0)}else{E=0;try{for(var w=(c=void 0,Mx(V)),x=w.next();!x.done;x=w.next()){E=(T=x.value).yGroup=(T.yValue||0)/k*d+E}}catch(t){c={error:t}}finally{try{x&&!x.done&&(f=w.return)&&f.call(w)}finally{if(c)throw c.error}}e.push(d)}}}catch(t){u={error:t}}finally{try{v&&!v.done&&(l=g.return)&&l.call(g)}finally{if(u)throw u.error}}else try{for(var S=Mx(y.values()),P=S.next();!P.done;P=S.next()){var V,k=(V=P.value).reduce((function(t,e){return t+(Qx(e.yValue)||0)}),0);if(0===k){try{for(var A=(r=void 0,Mx(V)),C=A.next();!C.done;C=A.next()){(T=C.value).yValue=T.yGroup=0}}catch(t){r={error:t}}finally{try{C&&!C.done&&(o=A.return)&&o.call(A)}finally{if(r)throw r.error}}e.push(0,0)}else{var E=0,L=0;try{for(var N=(s=void 0,Mx(V)),M=N.next();!M.done;M=N.next()){var T;(T=M.value).yValue=(T.yValue||0)/k*d,T.yValue<_?L=T.yGroup=(T.yValue||0)+L:E=T.yGroup=(T.yValue||0)+E}}catch(t){s={error:t}}finally{try{M&&!M.done&&(a=N.return)&&a.call(N)}finally{if(s)throw s.error}}e.push(L,E)}}}catch(t){i={error:t}}finally{try{P&&!P.done&&(n=S.return)&&n.call(S)}finally{if(i)throw i.error}}},e.defaults=eV(nV.defaults,{layout:"default",layoutMax:100,visibleInLegend:!0,zOrder:0,tooltipHeader:"<b>${name}</b>",tooltipRow:"${series}:<b> ${yValue}</b>"}),e}(nV),jk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.collectValues=function(e,i){if(t.prototype.collectValues.call(this,e,i),e===this._yAxisObj){var n=this._doConstraintYValues(this._visibles);i.length=0,i.push.apply(i,Ox([],Tx(n),!1))}},e}(Ik),zk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._clusterWidth=1,e._clusterPos=0,e}return Lx(e,t),e.prototype.groupWidth=function(){return this._op.groupWidth},e.prototype.isClusterable=function(){return!1!==this._op.clusterable},e.prototype.setCluster=function(t,e){this._clusterWidth=t,this._clusterPos=e},e.defaults=eV(Ik.defaults,{groupWidth:1,groupPadding:.1}),e}(Ik),$k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.isMarker=function(){return!0},e.defaults=eV(Ek.defaults,{colorByPoint:!1}),e}(Ek),Hk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(nV),Gk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(nV),Wk={area:function(){return{type:"area"}},line:function(){return{type:"line"}},bar:function(){return{type:"bar"}}},Yk={category:function(){return{type:"category"}},linear:function(){return{type:"linear"}},time:function(){return{type:"time"}},log:function(){return{type:"log"}}},Xk={minPadding:0,maxPadding:0},Uk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._dataChanged=!0,e}return Lx(e,t),e.prototype._doInit=function(){var t=this.chart;this.handle=new Hk(t).init(),this.mask=new Gk(t).init(),this.borderLine=new nV(t).init()},e.prototype.getThickness=function(){return tS(this._op.thickness,e.defaults.thickness)},e.prototype.getGap=function(){return tS(this._op.gap,e.defaults.gap)},e.prototype.getGapFar=function(){return tS(this._op.gapFar,e.defaults.gapFar)},e.prototype.getSize=function(){return this.getThickness()+this.getGap()+this.getGapFar()},e.prototype.axisLen=function(){return this._naviChart.xAxis.length()},e.prototype.axis=function(){return this._source._xAxisObj},e.prototype._doLoad=function(e,i){t.prototype._doLoad.call(this,e,i);var n={};if(Bx(i.series)){var r=i.series.type;"area"!==r&&"line"!==r&&"bar"!==r&&(r="area"),n.series=Gx({},i.series,Wk[r]())}else n.series=Wk.area();Bx(i.xAxis)?n.xAxis=Gx({},i.xAxis,(Yk[i.xAxis.type]||Yk.linear)(),Xk):n.xAxis=Gx({},Xk),Bx(i.yAxis)?n.yAxis=Gx({},i.yAxis,(Yk[i.yAxis.type]||Yk.linear)(),Xk):n.yAxis=Gx(Yk.linear(),Xk),this._chartConfig=n,this._axisType=n.xAxis.type},e.prototype._doPrepareRender=function(t){var e=t._getSeries().getSeries(this._op.source)||t.firstSeries;e!==this._source&&(this._source=e,this._axisType||(this._chartConfig.xAxis.type=this._source._xAxisObj._type()),this._naviChart=this.chart._createChart(this._chartConfig),this._op.usePointSource?this._naviChart.firstSeries._loadPoints(this._source.getPoints()._points.map((function(t){return t.source}))):this._naviChart.firstSeries._loadPoints(this._source.getPoints()._points)),this._vertical=!1,this._naviChart._prepareRender()},e.defaults=eV(nV.defaults,{visible:!1,usePointSource:!1,liveScroll:!0,minSize:.05,thickness:45,gap:8,gapFar:3}),e}(nV),qk=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.pane=e,i}return Lx(e,t),e.prototype.base=function(){return this.chart._body},e.prototype.contains=function(t){return t.options.col===this.pane.col||t.options.row===this.pane.row},e.defaults=eV(ek.defaults,{radius:void 0,centerX:void 0,centerY:void 0}),e}(ek),Zk=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r.row=i,r.col=n,r}return Lx(e,t),e.prototype._doInit=function(){this.body=new qk(this).init()},e.prototype._prepareRender=function(){this.body._prepareRender()},e}(nV),Kk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._cols=1,e._rows=1,e._panes={},e._vcols=1,e._vrows=1,e._vpanes=[],e}return Lx(e,t),e.prototype.count=function(){return this._vrows*this._vcols},e.prototype.rowCount=function(){return this._vrows},e.prototype.colCount=function(){return this._vcols},e.prototype.paneCount=function(){return this._vrows*this._vcols},e.prototype.getPane=function(t,e){return this._vpanes[t][e]},e.prototype.getRow=function(t){return this._vpanes[t]},e.prototype.getColumn=function(t){return this._vpanes.map((function(e){return e[t]}))},e.prototype._doLoadProp=function(e,i){return["panes","cols","rows"].indexOf(e)>=0||t.prototype._doLoadProp.call(this,e,i)},e.prototype._doSetSimple=function(e){if(Fx(e)&&e.length>0){var i=this._op;return i.rows=Jx(1,+e[0]),i.cols=Jx(1,tS(+e[1],i.rows)),i.rows>0&&i.cols>0&&(this.$_parsePanes(i.rows,i.cols),this.visible=!0),!0}return t.prototype._doSetSimple.call(this,e)},e.prototype.load=function(e){return t.prototype.load.call(this,e),Bx(e)&&(this.$_parsePanes(this._op.rows=e.rows,this._op.cols=e.cols),this._panes=this.$_loadPanes(e.panes)),this},e.prototype._doPrepareRender=function(t){this._xAxes=t._xPaneAxes,this._yAxes=t._yPaneAxes,this._vpanes=this.$_collectPanes(t),this._vpanes.forEach((function(t){return t.forEach((function(t){return t._prepareRender()}))}))},e.prototype.getXLens=function(t){return new Array(this._vcols).fill(t/this._vcols)},e.prototype.getYLens=function(t){return new Array(this._vrows).fill(t/this._vrows)},e.prototype.layoutAxes=function(t,e,i,n){var r=this.getXLens(i?e:t),o=this.getYLens(i?t:e);this._xAxes._buildTicks(r),this._yAxes._buildTicks(o),this.$_calcAxesPoints(r,o,0)},e.prototype.$_calcAxesPoints=function(t,e,i){this._xAxes._calcPoints(t,i),this._yAxes._calcPoints(e,i)},e.prototype.calcAxesPoints=function(t,e){this.$_calcAxesPoints(t,e,101)},e.prototype.calcSizes=function(t,e){this._widths=this.$_calcSizes(t,this._widths),this._heights=this.$_calcSizes(e,this._heights)},e.prototype.getAnnotation=function(t){for(var e in this._panes){var i=this._panes[e].body.getAnnotation(t);if(i)return i}},e.prototype.$_parseSizes=function(t){return(Fx(t)&&t.length>0?t.slice(0):t>0?new Array(t).fill("*"):["*"]).map((function(t){if(jx(t)){var e=t.trim();return{size:"*"===e?1:parseFloat(e)}}return+t||{size:1}}))},e.prototype.$_parsePanes=function(t,e){this._widths=this.$_parseSizes(e),this._heights=this.$_parseSizes(t),this._cols=this._widths.length,this._rows=this._heights.length},e.prototype.$_loadPanes=function(t){var e=this,i={};return t=Fx(t)?t:Bx(t)?[t]:null,Fx(t)&&t.forEach((function(t){var n=+t.row||0,r=+t.col||0;if(r>=0&&r<e._cols&&n>=0&&n<e._rows){var o=new Zk(e.chart,n,r).init();o.load(t),i[n+","+r]=o}})),i},e.prototype.$_collectPanes=function(t){var e=this,i=t._getXAxes()._internalItems(),n=t._getYAxes()._internalItems(),r=[],o=[],s=[];i.concat(n).forEach((function(t){var i=t.options.row||0,n=t.options.col||0;t._row=i,t._col=n,n>=0&&n<e._cols&&r.indexOf(n)<0&&r.push(n),i>=0&&i<e._rows&&o.indexOf(i)<0&&o.push(i)})),r.sort(),o.sort();for(var a=0;a<o.length;a++){for(var u=[],l=0;l<r.length;l++){var h=this._panes[a+","+l]||new Zk(t,a,l).init();u.push(h)}s.push(u)}return this._vrows=s.length,this._vcols=s[0].length,s},e.prototype.$_calcSizes=function(t,e){},e.defaults=eV(nV.defaults,{visible:!1,gap:0}),e}(nV),Jk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._isVisible=function(){return this._op.visible&&!kS(this._op.text)},e.prototype._doSetSimple=function(e){return jx(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=eV(nV.defaults,{text:"Title",alignBase:"body",align:"center",verticalAlign:"middle",gap:10}),e}(nV),Qk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(Jk.defaults,{position:"bottom",text:"",titleGap:2,verticalAlign:"bottom"}),e}(Jk),tA=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i}return Lx(e,t),e.prototype._doInit=function(){var e=this;t.prototype._doInit.call(this),this._domain={callback:function(t,i){return e._ctx.getTooltipParam(e._series,e._point,i)}}},e.prototype.setTarget=function(t,e,i){var n=iS(this._op.scope,"hover");return this._ctx=this.visible&&this.owner.getTooltipContext(n,this._series=t,this._point=e)},e.prototype.getTextDomain=function(){return this._domain},e.prototype.isFollowPointer=function(t){return this._op.followPointer||!1!==this._op.followPointer&&(null==t?void 0:t.followPointer())},e.prototype._doSetSimple=function(e){return jx(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.numberFormat)!=n._numberFormat&&(n._numberFormat=i,n._domain.numberFormatter=n._numberFormat?KS.getFormatter(n._numberFormat):void 0),function(t){t!=n._timeFormat&&(n._timeFormat=t,n._domain.timeFormatter=n._timeFormat?_P.getFormatter(n._timeFormat):void 0)}(e.timeFormat)},e.defaults=eV(nV.defaults,{scope:"hover",offset:8,hideDelay:700,minWidth:100,minHeight:40,nanText:"",numberFormat:",#.##",timeFormat:"yyyy-MM-dd"}),e}(nV),eA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._isVisible=function(){return this._op.visible&&!kS(this._op.imageUrl)},e.prototype._doSetSimple=function(e){return jx(e)?(this._op.imageUrl=e,!0):t.prototype._doSetSimple.call(this,e)},e.type="image",e}(lV),iA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getSeries=function(){if(this._xRange&&this._yRange){var t=this.chart.seriesByName(this._op.series);if(t&&t.visible)return{series:t,xRange:this._xRange,yRange:this._yRange}}},e.prototype.getShape=function(){return this._op.shape||e.defaults.shape},e.prototype._doSetSimple=function(e){return jx(e)?(this._op.shape=e,!0):t.prototype._doSetSimple.call(this,e)},e.type="shape",e.defaults=eV(lV.defaults,{width:64,height:64,shape:"square"}),e}(lV),nA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._domain={callback:function(t,i){return e.chart.getParam(t,i)}},e}return Lx(e,t),e.prototype._isVisible=function(){return this._op.visible&&!kS(this._op.text)},e.prototype._doSetSimple=function(e){return jx(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.numberFormat)!==n._numberFormat&&(n._numberFormat=i,n._domain.numberFormatter=i?KS.getFormatter(i):_S),function(t){t!==n._timeFormat&&(n._timeFormat=t,n._domain.timeFormatter=t?_P.getFormatter(t):_S)}(e.timeFormat)},e.type="text",e.defaults=eV(lV.defaults,{text:"Text"}),e}(lV),rA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getPoints=function(t,e){return t.hasBreak()?t._ticks.filter((function(e){return!t.isBreak(e.value)})).map((function(i){return t.getPos(e,i.value)})):t._ticks.map((function(i){return t.getPos(e,i.value)}))},e}(vV),oA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._strictEnds=!1,e._strictTicks=!1,e}return Lx(e,t),e.prototype._isValidInterval=function(t){return t>0},e.prototype._normalizeSteps=function(t,e,i){return t},e.prototype.buildSteps=function(t,e,i,n,r){var o,s;void 0===r&&(r=!1);var a,u=this._op;return this._strictTicks=this._strictEnds=!1,this._step=NaN,r?a=this._getStepsByPixels(t,tS(.85*u.stepPixels,60),e,i,n):Fx(u.steps)||Ix(u.stepCallback)?((a=u.stepCallback?u.stepCallback.call(_S,{length:t,minValue:i,maxValue:n}):u.steps.slice(0)).length>0&&isNaN(a[0])&&(a[0]=i),a.length>1&&isNaN(a[a.length-1])&&(a[a.length-1]=n),this._strictTicks=this._strictEnds=!0):a=this._baseAxis instanceof hA&&this._baseAxis._ticks.length>0?this._getStepsByCount(this._baseAxis._ticks.length,e,i,n,!0):u.stepCount>0?this._getStepsByCount(u.stepCount,e,i,n,!1):this._isValidInterval(u.stepInterval)?this._getStepsByInterval(u.stepInterval,e,i,n):u.stepPixels>0?this._getStepsByPixels(t,((null===(o=this.axis)||void 0===o?void 0:o._isPolar)&&!(null===(s=this.axis)||void 0===s?void 0:s._isX)?.5:1)*u.stepPixels,e,i,n):i!==n?[i,n]:[i],a},e.prototype.getNextStep=function(t,e){return t+e*this._step},e.prototype.canUseNumSymbols=function(){return isNaN(this._step)||this._step>=500},e.prototype._findBaseAxis=function(){if(null!=this._op.baseAxis){var t=this.axis,e=(t._isX?this.chart._getXAxes():this.chart._getYAxes()).get(this._op.baseAxis);e!==t&&e instanceof hA&&(this._baseAxis=e,e.tick._baseAxis=null)}},e.prototype.$_normalizeMin=function(t,e){return t>Wx(t/e)*e?t=Wx(t/e)*e:t<Yx(t/e)*e&&(t=Yx(t/e)*e),xS(t)},e.prototype._getStepsByCount=function(t,e,i,n,r){i>e?(i=e,e=NaN):n<e&&(n=e,e=NaN),this._strictEnds=!0;var o=this.axis,s=n-i,a=s/(t-1),u=Math.pow(10,Math.floor(Math.log10(a))),l=[];if(isNaN(o._fixedMin)||isNaN(o._fixedMax)?r&&a/u==2.5&&Wx(t*s/a)==t*s/a?this._step=a:a=this._step=Yx(a/u)*u:a=s/(t-1),isNaN(o._fixedMin))if(isNaN(e))i=this.$_normalizeMin(i,u);else{for(BS(i<e&&n>e,"base error"),t=Jx(3,t);;){if(!(Yx((e-i)/a)+Yx((n-e)/a)+1>t))break;a+=u}i=e-Yx((e-i)/a)*a}else i=o._fixedMin;l.push(i);for(var h=1;h<t;h++)l.push(xS(l[h-1]+a));return l},e.prototype._getStepsByInterval=function(t,e,i,n){var r,o=[];if(i=this.$_normalizeMin(i,t),isNaN(e))for(o.push(r=i);r<n;)o.push(r=xS(r+t));else{for(o.push(r=e);r>i;)o.unshift(r=xS(r-t));for(r=e;r<n;)o.push(r=xS(r+t))}return this._step=t,o},e.prototype._getStepMultiples=function(t){return[1,2,2.5,5,10]},e.prototype._getStepsByPixels=function(t,e,i,n,r){n>=i?n=i:r<=i&&(r=i);var o=r-n,s=[];if(0===o)return isNaN(n)?[]:[n];var a,u=t>250?5:t>200?4:t>150?3:t>80?2:1,l=Jx(this.axis.isX?1:u,Wx(t/e))+1,h=o/(l-1),p=Math.pow(10,Math.floor(Zx(h))),c=this._getStepMultiples(p),f=0;if(h/=p,c)if(h>c[f]){for(;f<c.length-1;f++)if(h>c[f]&&h<c[f+1]){h=c[++f];break}}else h=c[f];if(h*=p,isNaN(i))n=this.$_normalizeMin(n,h);else{for(BS(n<=i&&r>=i,"base error"),l=Jx(3,l);f<c.length;){if(!(Yx((i-n)/h)+Yx((r-i)/h)+1>l))break;h=f<c.length-1?c[f+1]*p:2*h,f++}n=i-Yx((i-n)/h)*h}for(this._step=h,s.push(xS(a=n));a<r;)s.push(xS(a+=h));return s},e.defaults=eV(SV.defaults,{stepPixels:72,baseRange:!1}),e}(SV),sA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(PV.defaults,{numberFormat:"0.##"}),e}(PV),aA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getTick=function(t,e){return this._getText(null,e,"*"===this._op.useSymbols||this._op.useSymbols&&this.axis.tick.canUseNumSymbols(),!0)},e.defaults=eV(sA.defaults,{useSymbols:!0}),e}(sA),uA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getSize=function(t){return MS(this._sizeDim,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._op.space=tS(this._op.space,0),this._sizeDim=LS(this._op.size,!1)},e.defaults=eV(_V.defaults,{enabled:!0,size:"30%",space:16,gridVisible:!0}),e}(_V),lA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(dV.defaults,{visible:!1}),e}(dV),hA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._breaks=[],e}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.baseLine=new lA(this).init()},Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){return this._grid},enumerable:!1,configurable:!0}),e.prototype.getBaseValue=function(){return this._op.baseValue},e.prototype.hasBreak=function(){return null!=this._runBreaks},e.prototype.runBreaks=function(){return this._runBreaks&&this._runBreaks.slice(0,1)},e.prototype.isBreak=function(t){if(this._runBreaks){var e=this._runBreaks[0];return!e.options.gridVisible&&(t===e.options.from||t===e.options.to)}},e.prototype.getStartFit=function(){return"default"===this._op.startFit?this._isX?"value":"tick":this._op.startFit},e.prototype.getEndFit=function(){return"default"===this._op.endFit?this._isX?"value":"tick":this._op.endFit},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),Dx.call(e,"break")&&this.$_loadBreaks(e.break)},e.prototype.continuous=function(){return!0},e.prototype.contains=function(t){return!isNaN(t)},e.prototype.isBased=function(){return!!this._tick._baseAxis},e.prototype._createGrid=function(){return new rA(this)},e.prototype._createTickModel=function(){return new oA(this)},e.prototype._doPrepareRender=function(){this._baseVal=parseFloat(this._op.baseValue),this._tick._findBaseAxis()},e.prototype._doBuildTicks=function(t,i,n){if(isNaN(t)||isNaN(i))return[];var r,o=this._tick,s=o._baseAxis instanceof e&&o._baseAxis._ticks.length>0,a=this._adjustMinMax(n,this._calcedMin=t,this._calcedMax=i),u=a.min,l=a.max,h=this._baseVal;if(isNaN(h)&&u<0&&l>0&&(h=0),isNaN(h)?u<0&&l>0&&(h=0):(u=Math.min(u,h),l=Math.max(l,h)),s&&o.options.baseRange&&(u=o._baseAxis.axisMin(),l=o._baseAxis.axisMax()),u===l)r=[u];else if((r=o.buildSteps(n,h,u,l,!1)).length>0){if(o._strictTicks||(r=o._normalizeSteps(r,u,l)),!isNaN(this._fixedMin)||!o._strictEnds&&"tick"!==this.getStartFit())for(;r.length>2&&r[0]<u;)r.shift();else if(!o._strictEnds&&!s){for(;r.length>2&&r[1]<=u;)r.shift();if(!isNaN(o._step))for(;r[0]>u;)r.unshift(o.getNextStep(r[0],-1))}if(u=Math.min(u,r[0]),!isNaN(this._op.strictMax)||!o._strictEnds&&"tick"!==this.getEndFit())for(;r.length>2&&l<r[r.length-1];)r.pop();else if(!o._strictEnds&&!s){for(;r.length>2&&r[r.length-2]>=l;)r.pop();if(!isNaN(o._step))for(;r[r.length-1]<l;)r.push(o.getNextStep(r[r.length-1],1))}l=Math.max(l,r[r.length-1])}else r.push(u+(l-u)/2);this._setMinMax(u,l);var p=[];this._runBreaks&&(r=this.$_getBrokenSteps(this._runBreaks,n,u,l));for(var c=NaN,f=0;f<r.length;f++){var _=this._createTick(n,f,r[f]);_.value!==c&&(p.push(_),c=_.value)}return p},e.prototype._createTick=function(t,e,i){return{index:e,pos:NaN,value:xS(i),label:this.label.getTick(e,i)||String(i)}},e.prototype._calcPoints=function(e,i){if(i>100&&this._isX)if(this._min===this._max)this._unitLen=e/4;else{var n=this.$_calcUnitLength(this._isPolar?this.getTotalAngle():e);n&&(this._unitLen=n.len,this._isPolar||this._zoom||(this._min-=n.min/2,this._max+=n.min/2))}t.prototype._calcPoints.call(this,e,i),this._markPoints=this._ticks.map((function(t){return t.pos}))},e.prototype.$_buildBrokenSteps=function(t){return this._tick.buildSteps(t.len,void 0,t.from,t.to,!0)},e.prototype.$_getBrokenSteps=function(t,e,i,n){var r=this,o=0,s=i,a=[s],u=this._sects=[];e-=t.reduce((function(t,e){return t+e.options.space}),0),t.forEach((function(t){var i=t.options,n=t.getSize(e),l={from:s,to:t.options.from,pos:o,len:n};o+=n,u.push(l,t._sect={from:i.from,to:i.to,pos:o,len:i.space}),o+=i.space,r.$_buildBrokenSteps(l).forEach((function(t){t>l.from&&t<=l.to&&a.push(t)})),i.space>0&&a.push(i.to)}));var l=t[t.length-1];if(n>l.options.to){var h={from:l.options.to,to:n,pos:o,len:this._vlen-o};u.push(h),this.$_buildBrokenSteps(h).forEach((function(t){t>h.from&&t<=h.to&&a.push(t)}))}return this._lastSect=u[u.length-1],a},e.prototype.getPos=function(t,e){if(this._runBreaks){var i=this._sects.find((function(t){return e<t.to}))||this._lastSect,n=i.len*(e-i.from)/(i.to-i.from);return this._op.reversed?SS(t-n-i.pos):SS(n+i.pos)}n=this._single?.5*t:t*(e-this._min)/(this._max-this._min);return SS(this._op.reversed?t-n:n)},e.prototype.valueAt=function(t,e){var i,n;if(this._isHorz?this._op.reversed&&(e=t-e):this._op.reversed||(e=t-e),this._runBreaks){var r=0;try{for(var o=Mx(this._sects),s=o.next();!s.done;s=o.next()){var a=s.value;if(e>=r&&e<r+a.len)return(a.to-a.from)*(e-r)/a.len+a.from;r+=a.len}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return this._max}return(this._max-this._min)*e/t+this._min},e.prototype.xValueAt=function(t){return this.valueAt(this._vlen,t)},e.prototype.getUnitLen=function(t,e){return this._unitLen},e.prototype.getLabelLength=function(t,e){return Math.floor(t/this._ticks.length)},e.prototype._adjustMinMax=function(t,e,i){var n=this,r=this._op,o=this.isZoomed(),s=this.isZoomed(),a=!0,u=!0,l=NaN,h=NaN;this._series.forEach((function(t){var p=t.getBaseValue(n);isNaN(p)||(isNaN(r.minValue)&&p<=e?t.isBased(n)?e=p:l=tS(Kx(l,p),p):isNaN(r.maxValue)&&p>=i&&(t.isBased(n)?i=p:h=tS(Jx(h,p),p))),!o&&a&&t.canMinPadding(n,e)&&(a=!1),!s&&u&&t.canMaxPadding(n,i)&&(u=!1)})),o||(o=a),s||(s=u),this._fixedMin=this._fixedMax=NaN;var p=0,c=0;isNaN(r.strictMin)?r.minValue<e?e=r.minValue:o?this._fixedMin=e:p=eS(r.minPadding,r.padding,0):this._fixedMin=e=r.strictMin,isNaN(r.strictMax)?r.maxValue>i?i=r.maxValue:s?this._fixedMax=i:c=eS(r.maxPadding,r.padding,0):this._fixedMax=i=r.strictMax;var f=Jx(0,i-e),_=e-f*(this._minPad=p),d=i+f*(this._maxPad=c);return!isNaN(l)&&l<=e&&_<l&&(_=this._fixedMin=l),!isNaN(h)&&h>=i&&d>h&&(d=this._fixedMax=h),{min:_,max:d}},e.prototype.$_calcUnitLength=function(t){var e=[];if(this._series.forEach((function(t){t.visible&&t.isClusterable()&&e.push.apply(e,Ox([],Tx(t._getVisiblePoints()),!1))})),e.length>0){for(var i=this._isX,n=e.map((function(t){return i?t.xValue:t.yValue})).sort((function(t,e){return t-e})),r=n.length-1;r>0;r--)n[r]===n[r-1]&&n.splice(r,1);return this._calcUnitLen(n,t,this._min,this._max)}},e.prototype._calcUnitLen=function(t,e,i,n){if(t.length<2){if(this._ticks.length>0){var r=(n-i)/this._ticks.length;return{len:tS(e*=r/(n-i+r),1),min:r}}return{len:e,min:0}}r=t[1]-t[0];for(var o=2;o<t.length;o++)r=Kx(r,t[o]-t[o-1]);return{len:tS(e*=r/(n-i+r),1),min:r}},e.prototype.$_loadBreak=function(t){if(Bx(t)&&"from"in t&&"to"in t){var e=new uA(this).init();return e.load(t),e}},e.prototype.$_loadBreaks=function(t){var e,i;if(Fx(t))try{for(var n=Mx(t),r=n.next();!r.done;r=n.next()){var o=r.value;(s=this.$_loadBreak(o))&&this._breaks.push(s)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}else if(t){var s;(s=this.$_loadBreak(t))&&this._breaks.push(s)}this.$_mergeBreaks()},e.prototype.$_mergeBreaks=function(){function t(t,e){t.options.to=e.options.to}var e,i=this._breaks.sort((function(t,e){return t.options.from-e.options.from})).filter((function(t){return t.options.to>t.options.from}));if(this._runBreaks=null,i.length>0){var n=this._runBreaks=[];n.push(Gx(new uA(this).init(),i[0]));for(var r=1;r<i.length;r++){var o=n[n.length-1],s=i[r];e=o,s.options.from<e.options.to?t(o,s):n.push(Gx(new uA(this).init(),s))}}},e.defaults=eV(CV.defaults,{nullable:!0,padding:.04,startFit:"default",endFit:"default"}),e}(CV),pA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(){return new aA(this)},e.prototype._adjustMinMax=function(e,i,n){var r=t.prototype._adjustMinMax.call(this,e,i,n),o=this._series;return!this._isX&&1===o.length&&o[0]instanceof Ik&&"fill"===o[0].options.layout&&(r.max=o[0].options.layoutMax),r},e.type="linear",e}(hA),cA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.canUseNumSymbols=function(){return this.axis.axisMax()>Zx(500)},e.prototype._getStepMultiples=function(t){return[1,2,5,10]},e.prototype._normalizeSteps=function(t,e,i){if(!this._op.arrangeDecimals)return t;for(var n=[],r=i-e,o=0;o<t.length;o++){var s=n.length,a=t[o],u=Wx(a);if(a===u){var l=n[s-1];o>1&&a-l<r&&(l=Math.pow(10,l),Wx(l)!==xS(l)&&n.pop()),n.push(a)}else if(a>0&&a>u){if((a=u+Zx(10*(a-u)))<=i)(0===s||a>n[s-1])&&n.push(a);else if(s>0){if(n[o-1]>=i)break;var h=qx(Wx(Zx(t[o]-t[o-1]))),p=(l=t[o])-Wx(l);if(h<1)for(var c=1;c<10;c++)if(p>Zx(c)&&p<Zx(c+1)){var f=Wx(l)+Zx(c);if(f>=i){a=f;break}}n.push(a)}}else if(o>0&&a<=i&&a>n[s-1])n.push(a);else if(a>i)break;n.length>1&&(r=Math.min(.5,r,n[n.length-1]-n[n.length-2]))}return n},e.defaults=eV(oA.defaults,{arrangeDecimals:!0}),e}(oA),fA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._createLabel=function(){return new aA(this)},e.prototype._createTickModel=function(){return new cA(this)},e.prototype.collectValues=function(){t.prototype.collectValues.call(this),this._values=this._values.filter((function(t){return t>0}))},e.prototype.getPos=function(e,i){return i=i>0?Zx(i):-1,t.prototype.getPos.call(this,e,i)},e.prototype._doCalculateRange=function(e){var i=t.prototype._doCalculateRange.call(this,e);return i.min=Zx(i.min),i.max=Zx(i.max),i},e.prototype._createTick=function(e,i,n){return t.prototype._createTick.call(this,e,i,xS(qx(n)))},e.prototype._calcUnitLen=function(t,e,i,n){for(var r=Zx(t[1])-Zx(t[0]),o=2;o<t.length;o++)r=Kx(r,Zx(t[o])-Zx(t[o-1]));var s=n-i,a=r/s;return{len:tS(e*=a,1),min:s*a}},e.type="log",e}(hA),_A=[1,1e3,6e4,36e5,864e5,6048e5,24192e5,314496e5],dA=[[1,2,5,10,20,25,50,100,200,250,500],[1,2,5,10,15,30],[1,2,3,4,6,8,12],[1,2,3,4,6,12],[1,2],[1,2],[1,2,3,4,6]],yA={s:1,n:2,h:3,d:4,w:5,m:6,y:7},gA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getNextStep=function(t,e){var i=new Date(t);switch(e*=this._step,this._scale){case 7:i.setFullYear(i.getFullYear()+e);break;case 6:i.setMonth(i.getMonth()+e);break;case 5:i.setDate(i.getDate()+7*e);break;case 4:i.setDate(i.getDate()+e);break;case 3:i.setHours(i.getHours()+e);break;case 2:i.setMinutes(i.getMinutes()+e);break;case 1:i.setSeconds(i.getSeconds()+e);break;case 0:i.setMilliseconds(i.getMilliseconds()+e)}return+i},e.prototype._isValidInterval=function(t){return isNaN(t)?jx(t)&&yA.hasOwnProperty(t.charAt(t.length-1))?(t=parseFloat(t),!isNaN(t)&&(t<=-1||t>=1)):void 0:0!=+t},e.prototype._getStepMultiples=function(t){for(var e=0;e<7;e++)if(t>=_A[e]/2&&t<_A[e+1]/2)return this._scale=e,dA[e];this._scale=7},e.prototype._getStepsByPixels=function(t,e,i,n,r){var o=[],s=r-n;if(0===s)return o;var a=this.axis,u=new Date(a._calcedMin),l=Math.floor(t/this._op.stepPixels)+1,h=Jx(1,Math.floor(s/(l-1))),p=this._getStepMultiples(h),c=_A[this._scale];if(h/=c,p)if(h>p[0]){for(var f=0;f<p.length-1;f++)if(h>p[f]&&h<p[f+1]){h=p[f+1];break}}else h=p[0];var _,d=a.date(n),y=a.date(r),g=d;if(7===this._scale){var v=u.getFullYear(),m=g.getFullYear();this._step=h=Math.ceil(h),g=new Date(m,0),m<v&&m+h>v&&(m=v,g=new Date(m,0));do{o.push(+g),m+=h,g=new Date(m,0)}while(g<=y)}else if(6===this._scale){m=g.getFullYear();var b=g.getMonth();this._step=h=Math.ceil(h),(g=new Date(m,b))<u&&new Date(m,b+h)>u&&(b=u.getMonth(),g=new Date(u.getFullYear(),b));do{o.push(+g),g.setMonth(g.getMonth()+h)}while(g<=y)}else if(4===this._scale||5===this._scale){m=g.getFullYear(),b=g.getMonth();var w=g.getDate(),x=5===this._scale?7:1;this._step=h=Math.ceil(h),(g=new Date(m,b,w))<u&&new Date(m,b,w+x*h)>u&&(w=u.getDate(),g=new Date(u.getFullYear(),u.getMonth(),w));do{o.push(+g),g.setDate(g.getDate()+h*x)}while(g<=y)}else{switch(this._step=h,h*=c,this._scale){case 3:g.setMinutes(0);case 2:g.setSeconds(0);case 1:g.setMilliseconds(0)}_=g.getTime();var S=u.getTime();_<S&&_+h>S&&(_=S);do{o.push(_),_+=h}while(_<=r)}return o},e.prototype._getStepsByInterval=function(e,i,n,r){if(jx(e)){var o=this.axis,s=new Date(o._calcedMin),a=[],u=e.charAt(e.length-1),l=parseFloat(e),h=void 0,p=void 0;this._scale=yA[u],e=_A[this._scale];var c=new Date(n);switch(this._scale){case 7:var f=s.getFullYear(),_=c.getFullYear();c.setMonth(0,1),_<f&&f<_+l&&(c=new Date(f,0));break;case 6:c.setDate(1),c.setHours(0,0,0,0),(p=new Date(c)).setMonth(p.getMonth()+l),c<s&&s<p&&((c=new Date(s)).setDate(1),c.setHours(0,0,0,0));break;case 5:case 4:var d=5===this._scale?7:1;c.setHours(0,0,0,0),(p=new Date(c)).setDate(p.getDate()+l*d),c<s&&p>s&&(c=new Date(s)).setHours(0,0,0,0);break;case 3:c.setMinutes(0);case 2:c.setSeconds(0);case 1:c.setMilliseconds(0)}if(this._step=l,n=+c,isNaN(i))for(a.push(h=n);h<r;)a.push(h=this.getNextStep(h,1));else{for(a.push(h=i);h>n;)a.unshift(h=this.getNextStep(h,-1));for(h=i;h<r;)a.push(h=this.getNextStep(h,1))}return this._step=e,a}return t.prototype._getStepsByInterval.call(this,e,i,n,r)},e}(oA),vA=[{format:"SSS",beginningFormat:"mm:ss"},{format:"ss",beginningFormat:"mm:ss"},{format:"mm:ss",beginningFormat:"HH:mm:ss"},{format:"HH:mm",beginningFormat:"MM-dd HH:mm"},{format:"MM-dd",beginningFormat:"yyyy-MM-dd"},{format:"MM W주",beginningFormat:"yyyy-MM-dd"},{format:"yyyy-MM",beginningFormat:"yyyy-MM"},{format:"yyyy",beginningFormat:"yyyy"}],mA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=jx(e.timeFormat)?e.timeFormat:void 0,n=jx(e.beginningFormat)?e.beginningFormat:void 0,r=e.timeFormats,o=e.useBeginningFormat;if(this._formats=vA.map((function(t){return Gx(t)})),i&&this._formats.forEach((function(t){t.format=t.beginningFormat=i})),o&&n&&this._formats.forEach((function(t){t.beginningFormat=n})),Fx(r))for(var s=0;s<r.length;s++){var a=this._formats[s],u=r[s];zx(u)?a.format=u:Bx(u)&&(zx(u.format)&&(a.format=u.format),o&&zx(u.beginningFormat)&&(a.beginningFormat=u.beginningFormat))}},e.prototype.getTick=function(t,e){var i=this.chart,n=this.axis,r=n.date(e);if(this._formatter)return this._formatter.toStr(r,i.startOfWeek);var o=this._formats,s=n.tick._scale,a=_P.getFormatter;switch(s){case 7:return a(o[s].format).toStr(r,i.startOfWeek);case 6:return 0===t||0===r.getMonth()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 5:case 4:return 0===t||1===r.getDate()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 3:return 0===t||0===r.getHours()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 2:return 0===t||0===r.getMinutes()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 1:return 0===t||0===r.getSeconds()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 0:return 0===t||0===r.getMilliseconds()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek)}},e.defaults=eV(sA.defaults,{useBeginningFormat:!0}),e}(sA),bA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype._createTickModel=function(){return new gA(this)},e.prototype._createLabel=function(){return new mA(this)},e.prototype.collectValues=function(){this._offset=60*tS(this.chart.timeOffset,0)*1e3,t.prototype.collectValues.call(this)},e.prototype.getValue=function(t){return $x(t)?t:t instanceof Date?t.getTime():jx(t)?new Date(t).getTime()+this._offset:void 0},e.prototype.incStep=function(t,e){if(jx(e)){var i=parseFloat(e);if(0!=i){var n=new Date(t);switch(e.charAt(e.length-1)){case"y":n.setFullYear(n.getFullYear()+i);break;case"m":n.setMonth(n.getMonth()+i);break;case"d":n.setDate(n.getDate()+i);break;case"w":n.setDate(n.getDate()+7*i);break;case"h":n.setHours(n.getHours()+i);break;case"n":n.setMinutes(n.getMinutes()+i);break;case"s":n.setSeconds(n.getSeconds()+i)}return+n}return t}return t+e},e.prototype.date=function(t){return new Date(t)},e.prototype.axisValueAt=function(t,e){return new Date(this.valueAt(t,e))},e.prototype.value2Tooltip=function(t){return isNaN(t)?this.chart._tooltip.options.nanText:new Date(t)},e.prototype.getXValue=function(t){return isNaN(t)?NaN:new Date(t)},e.prototype.getPos=function(e,i){return t.prototype.getPos.call(this,e,i)},e.type="time",e.subtype="date",e.defaults=eV(hA.defaults,{baseValue:NaN}),e}(hA),wA="circle",xA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getWidth=function(t){return MS(this._widthDim,t)},e.prototype.getHeight=function(t){return MS(this._heightDim,t)},e.prototype.getMaxWidth=function(t){return MS(this._maxWidthDim,t)},e.prototype.getMaxHeight=function(t){return MS(this._maxHeightDim,t)},e.prototype.getGap=function(t){return MS(this._gapDim,t,0)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"width","height","maxWidth","maxHeight","gap")},e.defaults=eV(UV.defaults,{maxWidth:"30%",maxHeight:"30%",gap:10}),e}(UV),SA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this._label=new xA(this.chart).init(),this._scale=new qV(this).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),e.prototype.isVertical=function(){return this._group?this._group.options.vertical:this._op.vertical},e.prototype.scaleVisible=function(){return!this._group&&this._scale.visible},e.prototype.calcedMinMax=function(){return this._scale.range()},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._label._prepareRender()},e.defaults=eV($V.defaults,{reversed:!1}),e}($V),PA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._args={gauge:null,value:NaN},e}return Lx(e,t),e.prototype.getStyle=function(t,e){if(this._op.styleCallback)return this._args.gauge=t,this._args.value=e,this._op.styleCallback(this._args)},e}(FV),VA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.valueBar=new PA(this).init(),this.band=new XV(this).init()},e.type="linear",e}(SA),kA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(nV.defaults,{opposite:!1,gap:10}),e}(nV),AA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(xA.defaults,{gap:10}),e}(xA),CA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.label=new AA(this.chart).init(),this.itemLabel=new kA(this.chart).init(),this.scale=new qV(this).init()},e.prototype.calcedMinMax=function(){return this.scale.range()},e.defaults=eV(jV.defaults,{vertical:!1,itemGap:10}),e}(jV),EA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.band=new XV(this).init()},e.prototype._gaugesType=function(){return"linear"},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this.band.visible&&this.band._prepareRender()},e.type="lineargroup",e.gaugeType="line",e}(CA),LA=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return Lx(e,t),e.prototype.getRanges=function(){var t;return null===(t=this.$_internalRanges())||void 0===t?void 0:t.slice(0)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.ranges)!==n._ranges&&(n._ranges=i,n._runRanges=null)},e.prototype.$_internalRanges=function(){if(!this._runRanges){var t=this.gauge.options;this._runRanges=jS(this._ranges,t.minValue,t.maxValue,this._op.rangeInclusive)}return this._runRanges},e.defaults=eV(nV.defaults,{vertical:!0,rangeInclusive:!0}),e}(nV),NA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(nV.defaults,{visible:!0}),e}(FV),MA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(PA),TA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.band=new LA(this).init(),this.targetBar=new NA(this).init(),this.valueBar=new MA(this).init()},e.prototype.getRanges=function(t,e,i){return jS(this._op.ranges,t,e,iS(i,this._op.rangeInclusive))},e.type="bullet",e.defaults=eV(SA.defaults,{rangeInclusive:!0}),e}(SA),OA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getRanges=function(t,e,i){return jS(this._op.ranges,t,e,iS(i,this._op.rangeInclusive))},e.prototype._gaugesType=function(){return"bullet"},e.type="bulletgroup",e.gaugeType="bullet",e.defaults=eV(CA.defaults,{rangeInclusive:!0}),e}(CA),RA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getRange=function(t,e){var i,n,r=this.$_internalRanges(t);if(r)try{for(var o=Mx(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(e>=a.fromValue&&e<a.toValue)return a}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.ranges)!==n._ranges&&(n._ranges=i,n._runRanges=null)},e.prototype.$_internalRanges=function(t){return this._runRanges||(this._runRanges=jS(this._ranges,t.minValue,t.maxValue,this._op.rangeInclusive)),this._runRanges},e.defaults=eV(nV.defaults,{rangeInclusive:!0}),e}(FV),DA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getSegmentThickness=function(t){return MS(this._segmentThicknessDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"segmentThickness")},e.defaults=eV(RA.defaults,{segmentGap:0}),e}(RA),BA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getThickness=function(t){return MS(this._thicknessDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"thickness")},e.defaults=eV(RA.defaults,{thickness:"100%",stroked:!1}),e}(RA),FA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(nV.defaults,{visible:!1}),e}(FV),IA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getExtents=function(t){return{radius:MS(this._radiusDim,t,0),length:MS(this._lengthDim,t,0),offset:MS(this._offsetDim,t,0)}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"radius","length","offset")},e.defaults=eV(nV.defaults,{visible:!1,radius:3,length:"100%",offset:0}),e}(FV),jA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getRadius=function(t){return MS(this._radiusDim,t,0)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"radius")},e.defaults=eV(nV.defaults,{visible:!1,radius:5}),e}(FV),zA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._getStepMultiples=function(t){return[1,2,2.5,5,10]},e.defaults=eV(WV.defaults,{visible:!1,stepPixels:72}),e}(WV),$A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.band=new XV(this).init(),this.scale=new zA(this).init(),this.rim=new DA(this).init(),this.valueRim=new BA(this).init(),this.marker=new FA(this).init(),this.hand=new IA(this).init(),this.pin=new jA(this).init()},e.prototype.getExtents=function(e){var i=t.prototype.getExtents.call(this,e),n=this.scale,r=this.band,o=i.radius,s=o-i.inner;if(r.visible)switch(i.bandThick=r.getThickness(s),r.options.position){case"inside":i.band=o-(s-i.bandThick)/2;break;case"opposite":i.band=i.inner-r.options.gap,i.inner=i.band-i.bandThick;break;default:i.band=o+=i.bandThick+r.options.gap}if(i.scaleTick=Jx(1,n.tick.options.length||0),i.scaleLabel=16,"opposite"===n.options.position)i.scale=i.inner-n.options.gap,i.inner=i.scale-i.scaleTick-i.scaleLabel;else i.scale=o+n.options.gap;return i},e.type=wA,e}(JV),HA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._gaugesType=function(){return"circle"},e.type="circlegroup",e.gaugeType=wA,e.defaults=eV(QV.defaults,{innerRadius:"50%"}),e}(QV),GA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getThickness=function(t){return MS(this._thicknessDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"thickness")},e.defaults=eV(nV.defaults,{thickness:7}),e}(FV),WA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getLength=function(t){return MS(this._lengthDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"length")},e.defaults=eV(nV.defaults,{thickness:7,length:"60%"}),e}(FV),YA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(WA.defaults,{thickness:5,length:"85%"}),e}(WA),XA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(WA.defaults,{thickness:2,length:"95%",animatable:!1,duration:200}),e}(WA),UA=function(t){function e(e,i){var n=t.call(this,e)||this;return n.length=i,n}return Lx(e,t),e}(FV),qA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(nV.defaults,{step:1,offset:1}),e}(FV),ZA=function(t){function e(e,i){var n=t.call(this,e)||this;return n.raidus=i,n}return Lx(e,t),e}(FV),KA=function(t){function e(e){return t.call(this,e.chart)||this}return Lx(e,t),e.defaults=eV(oV.defaults,{text:"RealChart Clock<br>ver1.0",position:"top"}),e}(oV),JA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.rim=new GA(this).init(),this.hourHand=new WA(this).init(),this.minuteHand=new YA(this).init(),this.secondHand=new XA(this).init(),this.tick=new UA(this,10).init(),this.minorTick=new UA(this,5).init(),this.tickLabel=new qA(this).init(),this.pin=new ZA(this,5).init(),this.label=new KA(this).init()},e.prototype.getTime=function(){var t=this._op;return t.time instanceof Date?t.time:jx(t.time)?new Date(t.time):isNaN(t.time)?void 0:new Date(t.time)},e.prototype.getExtents=function(t,e){var i=Kx(t,e);return{cx:MS(this._centerXDim,t,t/2),cy:MS(this._centerYDim,e,e/3),rd:MS(this._radiusDim,i,i/2)}},e.prototype._doApply=function(e){var i,n,r,o=this;t.prototype._doApply.call(this,e),i=e.centerX,n=e.centerY,r=e.radius,(o._centerXDim||i!==o._centerX)&&(o._centerXDim=LS(iS(o._centerX=i,JV.DEF_CENTER),!0)),o._centerYDim&&n===o._centerY||(o._centerYDim=LS(iS(o._centerY=n,JV.DEF_CENTER),!0)),o._radiusDim&&r===o._radius||(o._radiusDim=LS(iS(o._radius=r,JV.DEF_RADIUS),!0))},e.type="clock",e.defaults=eV(IV.defaults,{centerX:"50%",centerY:"50%",radius:"40%",active:!0}),e}(IV),QA="line",tC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype._createLegendMarker=function(t,e){return ck.create(t,Ek.LEGEND_MARKER,0,0,e,e,2)},e.prototype._getFielderProps=function(){return["lowField"].concat(t.prototype._getFielderProps.call(this))},e.prototype._createPoint=function(t){return new vk(t)},e.prototype._getBottomValue=function(t){return t.lowValue},e.type="barrange",e.defaults=eV(Fk.defaults,{tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(Fk),eC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(dk),iC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype._createPoint=function(t){return new eC(t)},e.prototype._getGroupBase=function(){return this._group?this._group.options.baseValue:this._op.baseValue},e.defaults=eV(Dk.defaults,{colorByPoint:!1}),e}(Dk),nC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._createLegendMarker=function(t,e){return ck.create(t,Ek.LEGEND_MARKER,0,0,e,e,2)},e.type="bar",e}(iC),rC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype.getBaseValue=function(t){return t._isX?NaN:tS(this._op.baseValue,t.getBaseValue())},e.prototype._doPrepareSeries=function(t){if("default"===this._op.layout){var e=t.length>1?t.map((function(t){return t.options.pointWidth})).reduce((function(t,e){return t+e}),0):t[0].options.pointWidth,i=0;t.forEach((function(t){t._childWidth=t.options.pointWidth/e,t._childPos=i,i+=t._childWidth}))}else this._op.layout},e.defaults=eV(zk.defaults,{baseValue:0}),e}(zk),oC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._canContain=function(t){return t instanceof nC},e.type="bargroup",e.seriesType="bar",e}(rC),sC=function(t){function e(e,i){var n=t.call(this,e,Ek.LEGEND_MARKER)||this;return n._size=i,n.add(n._marker=new kP(e)),n.setShape("circle",12),n}return Lx(e,t),e.prototype.setShape=function(t,e){t===this._shape&&e===this._size||(this._shape=t,this._size=e,this._renderShape(e))},e.prototype._renderShape=function(t){pk.setShape(this._marker,this._shape,t/2,t/2),this._marker.trans(this._markerOffset(t),0)},e.prototype._markerOffset=function(t){return 0},e}(wP),aC=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.insertFirst(n._line=new kP(e)),n.insertFirst(n._area=new kP(e)),n._area.setBoolData("fill",!0),n}return Lx(e,t),e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e);var i=["M",0,.5*e,"L",2*e,0],n=["M",0,.5*e,"L",2*e,0,"L",2*e,e,"L",0,e,"Z"];this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setPath(i.join(" ")),this._area.setPath(n.join(" ")))},e.prototype._markerOffset=function(t){return t/2},e}(sC),uC=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.insertFirst(n._line=new kP(e)),n._line.setFill("none"),n.insertFirst(n._line2=new kP(e)),n._line2.setFill("none"),n.insertFirst(n._area=new kP(e)),n._area.setBoolData("fill",!0),n}return Lx(e,t),e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e);var i=["M",0,.3*e,"L",.7*e,0,"L",2*e,.4*e],n=["M",0,e,"L",e,.7*e,"L",2*e,e],r=["M",0,.3*e,"L",.7*e,0,"L",2*e,.4*e,"L",2*e,e,"L",e,.7*e,"L",0,e,"Z"];this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setPath(i.join(" ")),this._line2.setPath(n.join(" ")),this._area.setPath(r.join(" ")))},e.prototype._markerOffset=function(t){return t/2},e}(sC),lC=function(t,e){return t==e||!(!t||!e)&&(t.x1===e.x1&&t.x2===e.x2&&t.y1===e.y1&&t.y2===e.y2)},hC=function(t){function e(e,i,n){void 0===i&&(i=_S),void 0===n&&(n=_S);var r=t.call(this,e,i)||this;return n&&r.setLine(n),r}return Lx(e,t),e.prototype.setLine=function(t,e,i,n){sS.isNumber(t)?this.setPath(pk.line(t,e,i,n)):t&&this.setPath(pk.line(t.x1,t.y1,t.x2,t.y2))},e.prototype.setVLine=function(t,e,i){this.setPath(pk.line(t,e,t,i))},e.prototype.setVLineC=function(t,e,i){var n=parseFloat(this.getStyle("stroke-width"));isNaN(n)||(t=Math.round(t)-n%2/2),this.setPath(pk.line(t,e,t,i))},e.prototype.setHLine=function(t,e,i){this.setPath(pk.line(e,t,i,t))},e.prototype.setHLineC=function(t,e,i){var n=parseFloat(this.getStyle("stroke-width"));isNaN(n)||(t=Math.round(t)-n%2/2),this.setPath(pk.line(e,t,i,t))},e}(kP);!function(t){function e(e,i,n){void 0===i&&(i=_S),void 0===n&&(n=_S);var r=t.call(this,e,null,i)||this;return r.setLine(n),r}Lx(e,t),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},set:function(t){lC(t,this._line)||(this._line=t,this.$_render())},enumerable:!1,configurable:!0}),e.prototype.updateLine=function(t){lC(t,this._line)||(this.line=t)},e.prototype.updateVLine=function(t,e,i){this.updateLine({x1:t,y1:e,x2:t,y2:i})},e.prototype.updateHLine=function(t,e,i){this.updateLine({x1:e,y1:t,x2:i,y2:t})},e.prototype.updateVLineC=function(t,e,i){this.updateLine({x1:t,y1:e,x2:t,y2:i})},e.prototype.updateHLineC=function(t,e,i,n){this.updateLine({x1:e,y1:t,x2:i,y2:t})},e.prototype.setLine=function(t,e,i,n){sS.isNumber(t)?this.$_update(t,e,i,n):t&&this.updateLine(t)},e.prototype.setVLine=function(t,e,i){this.$_update(t,e,t,i)},e.prototype.setVLineC=function(t,e,i){this.$_update(t,e,t,i)},e.prototype.setHLine=function(t,e,i){this.$_update(e,t,i,t)},e.prototype.setHLineC=function(t,e,i){this.$_update(e,t,i,t)},e.prototype.$_update=function(t,e,i,n){this.line={x1:t,y1:e,x2:i,y2:n}},e.prototype.$_render=function(){var t=this._line;t&&this.setPath(pk.line(t.x1,t.y1,t.x2,t.y2))}}(kP),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Lx(e,t),e.prototype.setPoints=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.setPath(pk.lines.apply(pk,Ox([],Tx(t),!1)))}}(kP);var pC=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.setFill("none"),n}return Lx(e,t),e.prototype.setPoints=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.setPath(pk.lines.apply(pk,Ox([],Tx(t),!1)))},e.prototype.resetStyles=function(e){var i=t.prototype.resetStyles.call(this,e);return this.setFill("none"),i},e}(kP),cC=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.insertFirst(n._line=new hC(e)),n}return Lx(e,t),e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e),this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setHLine(e/2,0,2*e),this._shape&&this._line.setStyle("strokeDasharray",""))},e.prototype._markerOffset=function(t){return t/2},e}(sC),fC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.toPoint=function(){return{px:this.px,py:this.py,isNull:this.isNull,range:this.range}},e}(dk),_C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(Nk.defaults,{radius:4,hoverScale:1.75}),e}(Nk),dC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getAlignOffset=function(){var t=+this._op.alignOffset;return isNaN(t)?"left"===this._op.align||"right"===this._op.align?e.ALIGN_GAP:0:t},e.ALIGN_GAP=4,e.defaults=eV(Vk.defaults,{position:"head",align:"center"}),e}(Vk),yC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.marker=new _C(this).init()},e.prototype.getShape=function(t){return this.marker.visible?t&&t.shape||this.marker.options.shape||this._shape:null},e.prototype.getRadius=function(t){return tS(t.radius,this.marker.options.radius)},e.prototype.prepareLines=function(t){this._lines=this._doPrepareLines(t)},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new dC(t)},e.prototype._createPoint=function(t){return new fC(t)},e.prototype.isMarker=function(){return!0},e.prototype.hasMarker=function(){return!0},e.prototype.setShape=function(t){this._shape=t},e.prototype._defViewRangeValue=function(){return"x"},e.prototype._createLegendMarker=function(t,e){return new cC(t,e)},e.prototype.legendMarker=function(e,i){var n=t.prototype.legendMarker.call(this,e,i);return n.setShape(this.getShape(null),Kx(+i||nk.MARKER_SIZE,2*this.marker.options.radius)),n},e.prototype._doPrepareLines=function(t){var e=t.length,i=[];if(this._containsNull)for(var n=0;n<e;){for(var r=[];t[n].isNull&&n<e;)n++;for(;n<e&&!t[n].isNull;)r.push(t[n++]);r.length>0&&i.push(r)}else i.push(t.slice());return i},e.defaults=eV(Ek.defaults,{nullAsBase:!1}),e}(Ek),gC=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i}return Lx(e,t),e.prototype.label=function(){return this._op.text||this.series.displayName()},e.prototype.getDefaultIconPos=function(){return"left"},e.defaults=eV(sV.defaults,{visible:!1,offset:8}),e}(sV),vC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.flag=new gC(this).init()},e.prototype.backDir=function(){return"backward"===this._op.stepDir?"forward":"backward"},e.prototype.getLineType=function(){return this._group instanceof PC||this._group instanceof VC?this._group.options.lineType:this._op.lineType},e.prototype.getBaseValue=function(t){return t._isX?NaN:this._base},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._base=eS(this._group?this._group.getBaseValue(this._yAxisObj):this._op.baseValue,this._yAxisObj.getBaseValue(),0)},e.type=QA,e.defaults=eV(yC.defaults,{lineType:"default",stepDir:"forward",connectNullPoints:!1}),e}(yC),mC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._viewType=function(){return"line"},e.prototype.getLineType=function(){return"spline"},e.type="spline",e}(vC),bC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(fC),wC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this);var e=this.chart;this.marker.visible=e&&e.isPolar()},e.prototype.prepareAreas=function(){function t(t){var e=[];if(t.length>0){var i=t[t.length-1].toPoint();i.py=t[t.length-1].yLow,e.push(i),(i=t[0].toPoint()).py=tS(t[0].yLow,t[0].py),e.push(i)}return e}var e=this._group,i=this._lines,n=this._areas=[];if(e&&e._stacked){var r=[].concat.apply([],Ox([],Tx(i),!1));n.push(r),n.push(t(r))}else i.forEach((function(e){var i=e.slice(0);n.push(i),n.push(t(i))}))},e.prototype.isBased=function(t){return t===this._yAxisObj},e.prototype._createLegendMarker=function(t,e){return new aC(t,e)},e.prototype._createPoint=function(t){return new bC(t)},e.prototype._doPrepareLines=function(e){if(this._containsNull&&this._group&&this._group._stacked){for(var i=e.length,n=[],r=0;r<i;){var o=e[r].isNull,s=[];do{s.push(e[r++])}while(r<i&&e[r].isNull==o);n.push(s)}return n}return t.prototype._doPrepareLines.call(this,e)},e.type="area",e}(vC),xC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype._assignTo=function(e){return Gx(t.prototype._assignTo.call(this,e),{low:this.low,high:this.high,lowValue:this.lowValue,highValue:this.yValue})},e.prototype._valuesChangd=function(e){return this.low!==e.low||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){var i=e.length>2?1:0;this.low=e[tS(t.options.lowField,0+i)],this.y=e[tS(t.options.yField,1+i)],i>0&&(this.x=e[tS(t.options.xField,0)])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.low=iS(i[e.options.lowField],i.low),this.y=nS(e._yFielder(i),i.y,i.value))},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=rS(t.lowValue,this.lowValue,e)},e}(bC),SC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._createLegendMarker=function(t,e){return new uC(t,e)},e.prototype._createPoint=function(t){return new xC(t)},e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype.collectValues=function(e,i){t.prototype.collectValues.call(this,e,i),i&&e===this._yAxisObj&&this._runPoints.forEach((function(t){return!t.isNull&&i.push(t.lowValue)}))},e.prototype._doPrepareLines=function(e){var i=t.prototype._doPrepareLines.call(this,e),n=[];return i.forEach((function(t){for(var e=[],i=t.length-1;i>=0;i--){var r=t[i],o=r.toPoint();o.py=r.yLow,e.push(o)}n.push(t,e)})),n},e.type="arearange",e.defaults=eV(yC.defaults,{curved:!1,tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(yC),PC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._canContain=function(t){return t instanceof vC},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?eS(this._op.baseValue,t.getBaseValue(),0):NaN},e.type="linegroup",e.seriesType="line",e.defaults=eV(Ik.defaults,{lineType:"default"}),e}(Ik),VC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.prepareLines=function(t){if(this._stacked){var e=this._visibles.indexOf(t);if(e>0){for(var i=this._visibles[e-1],n=t._areas,r=i._areas,o=0;o<n.length;o+=2)n[o+1]=r[o].reverse();this._op.layout}}},e.prototype._canContain=function(t){return t instanceof wC},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?eS(this._op.baseValue,t.getBaseValue(),0):NaN},e.type="areagroup",e.seriesType="area",e.defaults=eV(Ik.defaults,{lineType:"default"}),e}(Ik),kC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(bC),AC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype._createPoint=function(t){return new kC(t)},e.prototype._doLoadData=function(e){var i=t.prototype._doLoadData.call(this,e);if(Fx(i))return this._loadTable(i)},e.prototype._referOtherSeries=function(t){if(this._points.isEmpty()&&(t.options.name===this._op.source||t.index===this._op.source))return t.referBy(this),!0},e.prototype.reference=function(t,e){if(!e._isX){var i=t._runPoints.map((function(t){return t.yValue})).filter((function(t){return!isNaN(t)})),n=this._loadTable(i);this._doLoadPoints(n),this._runPoints=this._points.getPoints(this._xAxisObj,this._yAxisObj),this.collectValues(this._xAxisObj,this._xAxisObj._values),this.collectValues(this._yAxisObj,this._yAxisObj._values)}},e.prototype._loadTable=function(t){var e=function(t,e,i){var n=i-t;return{x:i,y:Math.exp(-n*n/(2*e*e))/(e*Math.sqrt(2*Math.PI))}},i=t.length;if(!(i<1)){var n=this._op,r=t.reduce((function(t,e){return t+e}),0)/i,o=Math.sqrt(t.reduce((function(t,e){return t+Math.pow(e-r,2)}))/(i-1)),s=o/n.pointsInSigma,a=r-n.sigmas*o,u=r+n.sigmas*o,l=r,h=[];for(h.push(e(r,o,l));l>a;)l-=s,h.unshift(e(r,o,l));for(l=r;l<u;)l+=s,h.push(e(r,o,l));return h}},e.type="bellcurve",e.defaults=eV(wC.defaults,{sigmas:3,pointsInSigma:5,curved:!0}),e}(wC),CC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),Object.defineProperty(e.prototype,"max",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype.labelCount=function(){return 2},e.prototype.getLabelValue=function(t){return 0===t?this.yValue:this.minValue},e.prototype._assignTo=function(e){return Gx(t.prototype._assignTo.call(this,e),{min:this.min,low:this.low,mid:this.mid,high:this.high,max:this.max,minValue:this.minValue,lowValue:this.lowValue,midValue:this.midValue,highValue:this.highValue,maxValue:this.maxValue})},e.prototype._valuesChangd=function(e){return!!t.prototype._valuesChangd.call(this,e)||(this.min!==e.min||this.low!==e.low||this.mid!==e.mid||this.high!==e.high)},e.prototype._readArray=function(t,e){if(e.length<=4)this.isNull=!0;else{var i=t.options,n=e.length>5?1:0;n>0&&(this.x=e[tS(i.xField,0)]),this.min=e[tS(i.minField,0+n)],this.low=e[tS(i.lowField,1+n)],this.mid=e[tS(i.midField,2+n)],this.high=e[tS(i.highField,3+n)],this.y=e[eS(i.maxField,t.options.yField,4+n)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i);var n=e.options;this.min=iS(i[n.minField],i.min),this.low=iS(i[n.lowField],i.low),this.mid=iS(i[n.midField],i.mid),this.y=nS(i[n.highField],i.high,this.y)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.min=this.low=this.mid=this.high=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.minValue)||isNaN(this.lowValue)||isNaN(this.midValue))},e.prototype.initValues=function(){this.minValue=parseFloat(this.min),this.lowValue=parseFloat(this.low),this.midValue=parseFloat(this.mid),this.highValue=parseFloat(this.high)},e.prototype.initPrev=function(t,e){e.yValue=e.highValue=e.midValue=e.lowValue=e.minValue=this.minValue},e.prototype.applyValueRate=function(t,e){this.minValue=rS(t.minValue,this.minValue,e),this.lowValue=rS(t.lowValue,this.lowValue,e),this.midValue=rS(t.midValue,this.midValue,e),this.highValue=rS(t.highValue,this.highValue,e)},e}(dk),EC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype.canCategorized=function(){return!0},e.prototype._getFielderProps=function(){return["minField","lowField","midField","highField"].concat(t.prototype._getFielderProps.call(this))},e.prototype._createPoint=function(t){return new CC(t)},e.prototype._getBottomValue=function(t){return t.minValue},e.prototype._createLegendMarker=function(t,e){return ck.create(t,Ek.LEGEND_MARKER,0,0,e,e,2)},e.type="boxplot",e.defaults=eV(Fk.defaults,{tooltipText:"<b>${name}</b><br>min: <b>${minValue}</b><br>low: <b>${lowValue}</b><br>mid: <b>${midValue}</b><br>high: <b>${highValue}</b><br>max: <b>${maxValue}</b>"}),e}(Fk),LC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(gk),NC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getShape=function(){return this._op.shape||"circle"},e.prototype.getPixelMinMax=function(t){return{min:MS(this._minSizeDim,t),max:MS(this._maxSizeDim,t)}},e.prototype.getRadius=function(t,e,i){var n=this._noSize?1:(t-this._zMin)/(this._zMax-this._zMin);return"area"==this._op.sizeMode&&(n=Math.sqrt(n)),n=Math.ceil(e+n*(i-e))/2},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"minSize","maxSize")},e.prototype._createPoint=function(t){return new LC(t)},e.prototype._getNoClip=function(e){var i=t.prototype._getNoClip.call(this,e);return!Hx(i)||i},e.prototype.hasZ=function(){return!0},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=Number.MAX_VALUE,i=Number.MIN_VALUE;this._runPoints.forEach((function(t){t.isNull||isNaN(t.zValue)||(e=Kx(e,t.zValue),i=Jx(i,t.zValue))})),this._noSize=(this._zMin=e)===(this._zMax=i)},e.prototype._getRangeMinMax=function(e){return"z"===e?{min:this._zMin,max:this._zMax}:t.prototype._getRangeMinMax.call(this,e)},e.type="bubble",e.defaults=eV($k.defaults,{sizeMode:"area",minSize:10,maxSize:"20%",tooltipText:"x: <b>${x}</b><br>y: <b>${y}</b><br>volume: <b>${z}</b>"}),e}($k),MC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._canContain=function(t){return t instanceof vC},e.prototype._doConstraintYValues=function(t){var e={};for(var i in t.forEach((function(t){t._runPoints.forEach((function(t){var i=t.xValue,n=e[i];n?n.push(t):e[i]=[t]}))})),e)for(var n=e[i].sort((function(t,e){return t.yValue-e.yValue})),r=n.length-1;r>=0;r--)n[r].yLabel=n[r].yValue,n[r].yValue=n[r].yGroup=r;return sS.makeIntArray(0,t.length)},e.type="bump",e.seriesType=QA,e}(jk),TC=function(t){return isNaN(t)?0:t},OC=function(){function t(){this._path=[]}return t.prototype.length=function(){return this._path.length},t.prototype.isEmpty=function(){return 0===this._path.length},t.prototype.clear=function(){return this._path=[],this},t.prototype.end=function(t){return void 0===t&&(t=!1),this._path.length>0?(t&&this._path.push("Z"),this._path.join(" ")):""},t.prototype.close=function(t){var e=this.end(!0);return t&&this.clear(),e},t.prototype.move=function(t,e){return $x(t)?this._path.push("M",t,e):this._path.push("M",t.x,t.y),this},t.prototype.moveBy=function(t,e){return $x(t)?this._path.push("m",t,e):this._path.push("m",t.x,t.y),this},t.prototype.line=function(t,e){return $x(t)?this._path.push("L",t,e):this._path.push("L",t.x,t.y),this},t.prototype.moveOrLine=function(t,e,i){return t?this._path.push("L",e,i):this._path.push("M",e,i),this},t.prototype.vline=function(t,e,i){return this._path.push("M",t,e,"L",t,i),this},t.prototype.hline=function(t,e,i){return this._path.push("M",e,t,"L",i,t),this},t.prototype.curve=function(t,e,i,n,r,o){return this._path.push("C",t,e,i,n,r,o),this},t.prototype.quad=function(t,e,i,n){return $x(t)?this._path.push("Q",t,e,i,n):this._path.push("Q",t.x1,t.y1,t.x2,t.y2),this},t.prototype.rect=function(t,e,i,n){return this._path.push("M",t,e,"l",i,0,"l",0,n,"l",-i,0),this},t.prototype.lines=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if($x(t[0]))for(var i=0;i<t.length;i+=2)this._path.push("L",TC(t[i]),TC(t[i+1]));else for(i=0;i<t.length;i++)this._path.push("L",TC(t[i].x),TC(t[i].y));return this},t.prototype.polygon=function(){for(var t,e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return $x(i[0])?(t=this.move(i[0],i[1])).lines.apply(t,Ox([],Tx(i.slice(2)),!1)):(e=this.move(i[0])).lines.apply(e,Ox([],Tx(i.slice(1)),!1)),this._path.push("Z"),this},t.prototype.circle=function(t,e,i){return this._path.push("M ".concat(t-i,", ").concat(e," a ").concat(i,",").concat(i," 0 1,0 ").concat(2*i,",0 a ").concat(i,",").concat(i," 0 1,0 ").concat(2*-i,",0")),this},t.prototype.getMove=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"M"===this._path[t]){var i={x:this._path[t+1],y:this._path[t+2]};return e&&this._path.splice(t,3),i}},t.prototype.getLine=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"L"===this._path[t]){var i={x:this._path[t+1],y:this._path[t+2]};return e&&this._path.splice(t,3),i}},t.prototype.getQuad=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"Q"===this._path[t]){var i={x1:this._path[t+1],y1:this._path[t+2],x2:this._path[t+3],y2:this._path[t+4]};return e&&this._path.splice(t,5),i}},t.prototype.getPoints=function(t,e,i){void 0===i&&(i=!0);for(var n=[];t<this._path.length&&n.length<e&&t<this._path.length&&("M"===this._path[t]||"L"===this._path[t]);)n.push({x:this._path[t+1],y:this._path[t+2]}),i&&this._path.splice(t,3);return n},t}(),RC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype._assignTo=function(e){return Gx(t.prototype._assignTo.call(this,e),{low:this.low,close:this.close,open:this.open,high:this.high,lowValue:this.lowValue,closeValue:this.closeValue,openValue:this.openValue,highValue:this.highValue})},e.prototype._valuesChangd=function(e){return!!t.prototype._valuesChangd.call(this,e)||(this.low!==e.low||this.close!==e.close||this.open!==e.open)},e.prototype._readArray=function(t,e){if(e.length<=3)this.isNull=!0;else{var i=t.options,n=e.length>4?1:0;n>0&&(this.x=e[tS(i.xField,0)]),this.low=e[tS(i.lowField,0+n)],this.close=e[tS(i.closeField,1+n)],this.open=e[tS(i.openField,2+n)],this.y=e[eS(i.highField,t.options.yField,3+n)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i);var n=e.options;this.low=iS(i[n.lowField],i.low),this.open=iS(i[n.openField],i.open),this.close=iS(i[n.closeField],i.close),this.y=nS(i[n.highField],i.high,this.y)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.close=this.open=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue)||isNaN(this.openValue)||isNaN(this.closeValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low),this.openValue=parseFloat(this.open),this.closeValue=parseFloat(this.close)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=e.openValue=e.closeValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=rS(t.lowValue,this.lowValue,e),this.openValue=rS(t.openValue,this.openValue,e),this.closeValue=rS(t.closeValue,this.closeValue,e)},e}(dk),DC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new RC(t)},e.prototype._getBottomValue=function(t){return t.lowValue},e.prototype._createLegendMarker=function(t,e){var i=new OC;return i.rect(0,.2*e,e,.6*e),i.vline(e/2,0,e),new kP(t,Ek.LEGEND_MARKER,i.end())},e.type="candlestick",e.defaults=eV(Fk.defaults,{tooltipText:"<b>${name}</b><br>최저: <b>${lowValue}</b><br>시가: <b>${openValue}</b><br>종가: <b>${closeValue}</b><br>고가: <b>${highValue}</b>"}),e}(Fk),BC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(Vk.defaults,{position:"inside"}),e}(Vk),FC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new BC(t)},e.type="circlebar",e}(iC),IC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._canContain=function(t){return t instanceof FC},e.type="circlebargroup",e.seriesType="circlebar",e}(rC),jC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(vk),zC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(Nk.defaults,{radius:4,shape:"circle"}),e}(Nk),$C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.marker=new zC(this).init()},e.prototype.canCategorized=function(){return!0},e.prototype.pointLabelCount=function(){return 2},e.prototype.getLabelOff=function(e){return t.prototype.getLabelOff.call(this,e)+Jx(0,this.marker.options.radius)},e.prototype._createPoint=function(t){return new jC(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this.marker.options.radius,i=this.marker.options.shape;this._runPoints.forEach((function(t){t.radius=e,t.shape=i}))},e.prototype.collectValues=function(e,i){t.prototype.collectValues.call(this,e,i),i&&e===this._yAxisObj&&this._runPoints.forEach((function(t){var e=t.lowValue;!isNaN(e)&&i.push(e)}))},e.type="dumbbell",e}(Rk),HC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(dk),GC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getSegmentSize=function(t){return MS(this._segmentSizeDim,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"segmentSize")},e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new HC(t)},e.prototype._createLegendMarker=function(t,e){var i=new OC;return i.rect(0,0,e,.4*e),i.rect(0,.6*e,e,.4*e),new kP(t,Ek.LEGEND_MARKER,i.end())},e.type="equalizer",e.defaults=eV(Dk.defaults,{segmentSize:10,segmentGap:4,segmented:!1}),e}(Dk),WC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.isClusterable=function(){return!1},e.prototype.pointLabelCount=function(){return 2},e.prototype._createPoint=function(t){return new vk(t)},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?0:NaN},e.prototype._createLegendMarker=function(t,e){var i=(new OC).vline(e/2,.1,.8*e).hline(.1,0,e).hline(.9*e,0,e),n=new kP(t,Ek.LEGEND_MARKER,i.end());return n.setStyle("strokeWidth","2px"),n},e.prototype._getBottomValue=function(t){return t.lowValue},e.type="errorbar",e.defaults=eV(Fk.defaults,{pointPadding:.3,tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(Fk),YC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(Mk),XC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getSize=function(t,e){return{width:Jx(.1*t,MS(this._widthDim,t)),height:Jx(.1*e,MS(this._heightDim,e))}},e.prototype.getNeckSize=function(t,e){return{width:sS.clamp(MS(this._neckWidthDim,t),.1*t,t),height:sS.clamp(MS(this._neckHeightDim,e),.1*e,e)}},e.prototype._createPoint=function(t){return new YC(t)},e.prototype._doApply=function(i){var n,r=this;t.prototype._doApply.call(this,i),(n=i.width)!==r._width&&(r._width=n,r._widthDim=NS(r._width,e.defaults.width)),function(t){t!==r._height&&(r._height=t,r._heightDim=NS(r._height,e.defaults.height))}(i.height),function(t){t!==r._neckWidth&&(r._neckWidth=t,r._neckWidthDim=NS(r._neckWidth,e.defaults.neckWidth))}(i.neckWidth),function(t){t!==r._neckHeight&&(r._neckHeight=t,r._neckHeightDim=NS(r._neckHeight,e.defaults.neckHeight))}(i.neckHeight)},e.type="funnel",e.defaults=eV(Tk.defaults,{width:"85%",height:"90%",neckWidth:"30%",neckHeight:"30%",legendByPoint:!1}),e}(Tk),UC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(gk),qC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getColor=function(t){},e.prototype.canMixWith=function(t){return!1},e.prototype.canCategorized=function(){return!0},e.prototype.hasZ=function(){return!0},e.prototype.defYAxisType=function(){return"category"},e.prototype._createPoint=function(t){return new UC(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=Number.MAX_VALUE,i=Number.MIN_VALUE;this._runPoints.forEach((function(t){isNaN(t.zValue)||(e=Kx(e,t.zValue),i=Jx(i,t.zValue))})),this._heatMin=e,this._heatMax=i},e.type="heatmap",e.defaults=eV(Ek.defaults,{tooltipText:"x: <b>${x}</b><br>y: <b>${y}</b><br>heat: <b>${z}</b>"}),e}(Ek),ZC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.parse=function(e){t.prototype.parse.call(this,e);var i=this.source;this.min=i.min,this.max=i.max},e.prototype._assignTo=function(e){return Gx(t.prototype._assignTo.call(this,e),{min:this.min,max:this.max})},e}(dk),KC={squreRoot:function(t){return Math.ceil(Math.sqrt(t))},struges:function(t){return Math.ceil(Math.log(t)*Math.LOG2E)},rice:function(t){return Math.ceil(2*Math.pow(t,1/3))}},JC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getBinCount=function(t){var e=tS(this._op.binWidth,0);return e>0?t/e:tS(this._op.binsNumber,0)<1?KC[this._op.binsNumber||"squreRoot"](t):void 0},e.prototype._createPoint=function(t){return new ZC(t)},e.prototype._doLoadPoints=function(e){function i(t){var e;return e=Fx(t)?t[tS(this.yField,0)]:Bx(t)?nS(t[this.yField],t.y,t.value):t,parseFloat(e)}for(var n=this._op,r=[],o=[],s=0;s<e.length;s++){var a=i(e[s]);isNaN(a)||o.push(a)}if(o.length>0){o=o.sort((function(t,e){return t-e})),n.minValue<o[0]&&o.unshift(n.minValue),n.maxValue>o[o.length-1]&&o.push(n.maxValue);var u=o.length,l=o[0],h=o[u-1],p=this.getBinCount(u),c=this._binInterval=(h-l)/p,f=0,_=l,d=_+c;for(s=0;s<p;s++){var y=0;if(s==p-1)y=u-f;else for(;f<u&&o[f]<d;)y++,f++;r.push({x:_,y:y,min:_,max:s===p-1?h:d}),d=(_=d)+c}}t.prototype._doLoadPoints.call(this,r)},e.prototype.collectValues=function(e,i){t.prototype.collectValues.call(this,e,i),i&&(e===this._xAxisObj?i.push(this._runPoints[this._runPoints.length-1].max):e===this._yAxisObj&&i.push(this._base))},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._base=tS(this._op.baseValue,this._yAxisObj.getBaseValue())},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?this._base:NaN},e.prototype.isBased=function(t){return t===this._yAxisObj},e.prototype._createLegendMarker=function(t,e){return ck.create(t,Ek.LEGEND_MARKER,0,0,e,e,2)},e.type="histogram",e.defaults=eV(Ek.defaults,{baseValue:0,binsNumber:"squreRoot"}),e}(Ek),QC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(Nk.defaults,{radius:4,shape:"circle"}),e}(Nk),tE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(dk),eE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.marker=new QC(this).init()},e.prototype.canCategorized=function(){return!0},e.prototype.getLabelOff=function(e){return t.prototype.getLabelOff.call(this,e)+this.marker.options.radius},e.prototype._createPoint=function(t){return new tE(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this.marker.options.radius,i=this.marker.options.shape;this._runPoints.forEach((function(t){t.radius=e,t.shape=i}))},e.type="lollipop",e}(Dk),iE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(RC),nE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._createPoint=function(t){return new iE(t)},e.prototype._createLegendMarker=function(t,e){var i=new OC;i.vline(e/2,0,e),i.hline(.4*e,e/2,e),i.hline(.7*e,0,e/2);var n=new kP(t,Ek.LEGEND_MARKER,i.end());return n.setStyle("strokeWidth","2px"),n},e.type="ohlc",e}(DC),rE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(fC),oE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype._createPoint=function(t){return new rE(t)},e.prototype._referOtherSeries=function(t){if(t.options.name===this._op.source||t.index===this._op.source)return t.referBy(this),!0},e.prototype.reference=function(t,e){if(!e._isX){var i=this;n=t._runPoints,r=[],o=n.reduce((function(t,e){return t+tS(e.yValue,0)}),0),s=0,n.forEach((function(t){t.isNull||r.push({x:t.xValue,y:s+=100*t.yValue/o})})),i._doLoadPoints(r),i._runPoints=i._points.getPoints(i._xAxisObj,i._yAxisObj),this.collectValues(this._xAxisObj,this._xAxisObj._values),this.collectValues(this._yAxisObj,this._yAxisObj._values)}var n,r,o,s},e.type="pareto",e.defaults=eV(yC.defaults,{curved:!1}),e}(yC),sE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.sliced=!1,e.startAngle=0,e.angle=0,e}return Lx(e,t),Object.defineProperty(e.prototype,"thickness",{get:function(){return this._thickness},set:function(t){t!==this._thickness&&(this._thickness=t,this._thickDim=LS(t,!0))},enumerable:!1,configurable:!0}),e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.sliced=this.source.sliced},e.prototype._assignTo=function(e){return Gx(t.prototype._assignTo.call(this,e),{sliced:this.sliced})},e}(Mk),aE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getDefaultIconPos=function(){return"left"},e}(sV),uE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.defaults=eV(Vk.defaults,{visible:!0}),e}(Vk);!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Lx(e,t)}(nV);var lE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this._innerText=new aE(this.chart).init()},Object.defineProperty(e.prototype,"innerText",{get:function(){return this._innerText},enumerable:!1,configurable:!0}),e.prototype.followPointer=function(){return!0},e.prototype.hasInner=function(){return this._innerRadiusDim&&this._innerRadiusDim.size>0},e.prototype.getInnerRadius=function(t){var e=this._innerRadiusDim;return e?e.size/(e.fixed?t:100):0},e.prototype.getSliceOffset=function(t){return!this._group&&this._sliceOffsetDim?MS(this._sliceOffsetDim,t):0},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new uE(t)},e.prototype._createPoint=function(t){return new sE(t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"innerRadius","sliceOffset")},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=tS(this._op.startAngle%360,0),i=Jx(0,Kx(360,tS(this._op.totalAngle,360)));this._startRad=gS+vS*e,this._totalRad=vS*i,this._groupPos=NaN},e.type="pie",e.defaults=eV(Ok.defaults,{groupSize:1,labelDistance:25,sliceOffset:"7%",autoSlice:!0,sliceDuration:300,borderRadius:0}),e}(Ok),hE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getPolarSize=function(t,e){return MS(this._polarDim,Kx(t,e))},e.prototype.getInnerRadius=function(t){var e=this._innerDim;return e?e.size/(e.fixed?t:100):0},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.polarSize)!==n._polarSize&&(n._polarSize=i,n._polarDim=LS(i,!0)||{size:80,fixed:!1}),function(t){t!==n._innerSize&&(n._innerSize=t,n._innerDim=LS(t,!0))}(e.innerSize)},e.prototype.needAxes=function(){return!1},e.prototype._canContain=function(t){return t instanceof lE},e.prototype._doPrepareSeries=function(t){var e=t.map((function(t){return t.options.groupSize})).reduce((function(t,e){return t+tS(e,1)}),0),i=0;t.forEach((function(t){t._groupPos=i,i+=t._groupSize=tS(t.options.groupSize,1)/e}))},e.type="piegroup",e.seriesType="pie",e.defaults=eV(Ik.defaults,{polarSize:"80%",innerSize:0}),e}(Ik),pE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(dk),cE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._createPoint=function(t){return new pE(t)},e.prototype._createLegendMarker=function(t,e){return new sC(t,e)},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype.setShape=function(t){this._defShape=t},e.prototype.getShape=function(t){return this._op.shape||this._defShape},e.prototype.hasMarker=function(){return!0},e.prototype.legendMarker=function(e,i){var n=t.prototype.legendMarker.call(this,e,i);return n.setShape(this.getShape(null),Kx(+i||nk.MARKER_SIZE,2*this._op.radius)),n},e.type="scatter",e.defaults=eV($k.defaults,{jitterX:0,jitterY:0,radius:5,hoverScale:1.8}),e}($k),fE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._assignTo=function(e){return Gx(t.prototype._assignTo.call(this,e),{id:this.id,group:this.group})},e.prototype._readArray=function(t,e){if(e.length<=2)this.isNull=!0;else{var i=e.length>3?1:0;i>0&&(this.x=e[tS(t.options.xField,0)]),this.y=e[tS(t.options.yField,0+i)],this.id=PS(e[tS(t.options.idField,1+i)]),this.group=PS(e[tS(t.options.groupField,2+i)])}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.id=PS(i[e.options.idField]),this.group=PS(i[e.options.groupField])},e}(dk),_E=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.level=e,i.floating=!0,i}return Lx(e,t),e.defaults=eV(nV.defaults,{visible:!1}),e}(nV);!function(t){function e(e,i){var n=t.call(this,e.chart)||this;return n.series=e,n.level=i,n.head=new _E(n),n}Lx(e,t)}(nV);var dE,yE=function(){function t(t){this.point=t}return t.prototype.level=function(){return this.parent?this.parent.level()+1:0},t.prototype.getArea=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.setArea=function(t,e,i,n){this.x=t,this.y=e,this.width=i,this.height=n},t.prototype.getTotal=function(){return this.children.reduce((function(t,e){return t+e.value}),0)},t}(),gE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._levels=1,e}return Lx(e,t),e.prototype.buildMap=function(t,e){function i(t){if(t.children){var e=0;t.children.forEach((function(t,n){i(t),e+=t.value})),t.value=e,t.children=t.children.sort((function(t,e){return e.value-t.value})),t.children.forEach((function(t,e){t.index=e})),o=Jx(o,t.level()+1+1)}else r.push(t),t.value=t.point?t.point.yValue:0}var n="vertical"===this._op.startDir||e>t,r=this._leafs=[],o=1;return this._roots.forEach((function(t,e){i(t)})),this._roots=this._roots.sort((function(t,e){return e.value-t.value})),this._roots.forEach((function(t,e){t.index=e})),(this[this._op.algorithm]||this.squarify).call(this,this._roots,t,e,n),this._levels=o,{roots:this._roots,leafs:this._leafs}},e.prototype.needAxes=function(){return!1},e.prototype.canMixWith=function(t){return!1},e.prototype._createPoint=function(t){return new fE(t)},e.prototype._getLabeledPoints=function(){return this._leafs.map((function(t){return t.point}))},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._roots=this.$_buildTree(this._runPoints)},e.prototype.$_buildTree=function(t){var e=[],i=[],n=this._map;t.forEach((function(t){if(t.id||!t.isNull){var r=new yE(t);t.id&&(n[t.id]=r),t.group?i.push(r):e.push(r)}}));for(var r=i.length-1;r>=0;r--){var o=i[r],s=n[o.point.group];(o.parent=s)?(s.children||(s.children=[]),s.children.push(o),o.children&&i.splice(r,1)):(e.push(o),i.splice(r,1))}return e},e.prototype.$_squarifyRow=function(t,e,i,n){var r=e.width*e.height,o=e.width,s=e.height,a=e.x,u=e.y,l=Number.MAX_VALUE,h=0,p=[];if(2===t.length)return(1===i?o>s:o>=s)?t.forEach((function(t){t.setArea(a,u,o*t.value/n,s),a+=t.width})):t.forEach((function(t){t.setArea(a,u,o,s*t.value/n),u+=t.height})),0;for(var c=function(){var c,f,_,d,y=void 0;return c=t.shift(),y=(h+=c.value)*r/n,1===i?(f=y/s,_=s*c.value/h):(_=y/o,f=o*c.value/h),d=Jx(f/_,_/f),t.length>0&&d>l?(t.unshift(c),h-=c.value,y=r*h/n,1===i?f=y/(_=s):_=y/(f=o),p.forEach((function(t){1===i?(t.setArea(a,u,f,s*t.value/h),u+=t.height):(t.setArea(a,u,o*t.value/h,_),a+=t.width)})),1===i?(e.x+=f,e.width-=f):(e.y+=_,e.height-=_),{value:n-h}):0===t.length?(y=r*h/n,1===i?f=y/(_=s):_=y/(f=o),p.push(c),p.forEach((function(t){1===i?(t.setArea(a,u,f,s*t.value/h),u+=t.height):(t.setArea(a,u,o*t.value/h,_),a+=t.width)})),{value:0}):(l=d,void p.push(c))};t.length>0;){var f=c();if("object"==typeof f)return f.value}},e.prototype.$_squarify=function(t,e,i,n){var r=this,o=t.slice(0),s=i?1:0,a=t.reduce((function(t,e){return t+e.value}),0);do{a=this.$_squarifyRow(o,e,s,a),n&&(s=1-s)}while(a>0);t.forEach((function(t){t.children&&r.$_squarify(t.children,t.getArea(),!i,!0)}))},e.prototype.squarify=function(t,e,i,n){this.$_squarify(t,{x:0,y:0,width:e,height:i},n,!0)},e.prototype.strip=function(t,e,i,n){this.$_squarify(t,{x:0,y:0,width:e,height:i},n,!1)},e.prototype.$_sliceNext=function(t,e,i,n){if(t.x=e.x,t.y=e.y,1===i){var r=e.height*t.value/n;t.width=e.width,t.height=r,e.y+=r,e.height-=r}else{var o=e.width*t.value/n;t.height=e.height,t.width=o,e.x+=o,e.width-=o}t.children&&this.$_slice(t.children,t.getArea(),0===i,!0)},e.prototype.$_slice=function(t,e,i,n){var r=this,o=t.reduce((function(t,e){return t+e.value}),0),s=i?1:0;t.forEach((function(t){r.$_sliceNext(t,e,s,o),o-=t.value,n&&(s=1-s)}))},e.prototype.slice=function(t,e,i,n){this.$_slice(t,{x:0,y:0,width:e,height:i},n,!1)},e.prototype.sliceDice=function(t,e,i,n){this.$_slice(t,{x:0,y:0,width:e,height:i},n,!0)},e.type="treemap",e.defaults=eV(nV.defaults,{idField:"id",groupField:"group",algorithm:"squarify",alternate:!0,groupMode:!0}),e}(Ek),vE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._assignTo=function(e){return Gx(t.prototype._assignTo.call(this,e),{length:this.length,angle:this.angle,lengthValue:this.lengthValue,angleValue:this.angleValue})},e.prototype._valuesChangd=function(e){return this.length!==e.length||this.angle!==e.angle||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){if(e.length<=2)this.isNull=!0;else{var i=e.length>3?1:0;i>0&&(this.x=e[tS(t.options.xField,0)]),this.y=e[tS(t.options.yField,0+i)],this.length=e[tS(t.options.lengthField,1+i)],this.angle=e[tS(t.options.angleField,2+i)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.length=iS(i[e.options.lengthField],i.length),this.angle=iS(i[e.options.angleField],i.angle),this.y=nS(e._yFielder(i),i.y,i.value)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.length=this.angle=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lengthValue)||isNaN(this.angleValue))},e.prototype.initValues=function(){this.lengthValue=parseFloat(this.length),this.angleValue=parseFloat(this.angle)},e.prototype.initPrev=function(t,e){e.yValue=this.yValue,e.lengthValue=.001},e.prototype.applyValueRate=function(t,e){this.lengthValue=rS(t.lengthValue,this.lengthValue,e)},e}(dk),mE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._createPoint=function(t){return new vE(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this._runPoints;if(e.length>0){var i=this._op.maxLength,n=this._op.origin,r=e.map((function(t){return t.length})).reduce((function(t,e){return Jx(t,e)}));e.forEach((function(t){var e=t.length/r;switch(t._len=e*i,n){case"start":t._off=-t._len/2;break;case"end":t._off=t._len/2;break;default:t._off=0}}))}},e.prototype._createLegendMarker=function(t,e){for(var i=.3,n=.7*e,r=[0,-i*e,-.2*e,-i*e,0,-.6*e,.2*e,-i*e,0,-i*e,0,.6*e],o=["M",r[0],r[1]+n],s=2;s<r.length;s+=2)o.push("L",r[s],r[s+1]+n);var a=new kP(t,Ek.LEGEND_MARKER,o);return a.setStyle("strokeWidth","2px"),a.rotation=30,a},e.type="vector",e.defaults=eV(Ek.defaults,{origin:"center",maxLength:20,startAngle:0,arrowHead:"close"}),e}(Ek),bE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.low=0,e}return Lx(e,t),e.prototype.parse=function(e){t.prototype.parse.call(this,e),this._isSum=!0===this.source.isSum,this._intermediate=this.source.intermediate,this._isSum&&(this.y=0),this.save=this.y},e}(dk),wE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new bE(t)},e.prototype._createLegendMarker=function(t,e){return ck.create(t,Ek.LEGEND_MARKER,0,0,e,e,2)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this._runPoints;if(!(e.length<1))for(var i,n,r=e[0],o=r.y=r._isSum?0:r.y,s=o,a=o,u=o,l=0,h=1,p=e.length;h<p;h++){if((r=e[h])._isSum){var c=e[h-1],f=!0===r._intermediate||h<p-1&&!1!==r._intermediate,_=r.save=r.y=f?u:a;r.yGroup=r.yValue=r.y,f?u<0?n=(l=c.low)-_:l=(n=c.y)-_:n=(l=e[0].low)+_,u=0}else(i=r.y)<0?l=s<0?(n=o+s)+i:(n=o)+i:n=(l=o)+i,u+=i,a+=i;s=r.y,r.y=o=n,r.low=l}},e.prototype._getBottomValue=function(t){return t.y=t.save,NaN},e.type="waterfall",e}(Bk),xE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.isFloating=function(){return this._op.floating||"middle"===this._op.verticalAlign&&"center"===this._op.align},e.defaults=eV(nV.defaults,{text:"RealChart v1.0",url:"http://realchart.co.kr",floating:!1,align:"right",verticalAlign:"bottom",offsetX:2,offsetY:1,gap:4}),e}(nV),SE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scope="auto",e}return Lx(e,t),e.prototype.getHintDistance=function(t){return isNaN(this.hintDistance)?this.chart._tooltip.visible&&this.chart._tooltip.isFollowPointer(t)?Number.MAX_SAFE_INTEGER:30:this.hintDistance},e.prototype.getScope=function(t,e){return"auto"!==iS(this.scope,"auto")?this.scope:this.chart._chartOptions.options.seriesHovering?"point":t._xAxisObj.crosshair.visible?"axis":t.isMarker()&&t._group?"group":"point"},e.defaults=eV(nV.defaults,{scope:"auto"}),e}(nV),PE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.credits=new xE(null).init(),e.pointHovering=new SE(e.chart).init(),e}return Lx(e,t),e.prototype.getXStart=function(t){return t instanceof fA&&isNaN(this._op.xStart)?1:this._op.xStart||0},e.defaults=eV(nV.defaults,{paletteMode:"normal",animatable:!0,xStep:1,axisGap:8,seriesHovering:!1}),e}(nV);!function(t){t.LEFT="left",t.TOP="top",t.BOTTOM="bottom",t.RIGHT="right",t.CENTER="center",t.MIDDLE="middle"}(dE||(dE={}));var VE=function(t){function e(e){var i=t.call(this)||this;return i._data=new WS,i._params={},i._seriesIndex=0,i._dataDirty=!1,i._loadAnimatable=!0,i._assets=new QP,i._chartOptions=new PE(i).init(),i._title=new Jk(i).init(),i._subtitle=new Qk(i).init(),i._legend=new rk(i).init(),i._tooltip=new tA(i).init(),i._split=new Kk(i).init(),i._series=new Lk(i),i._xAxes=new EV(i,!0),i._yAxes=new EV(i,!1),i._xPaneAxes=new MV(i),i._yPaneAxes=new TV(i),i._gauges=new zV(i),i._body=new ek(i).init(),i._annotations=new hV(i),i._navigator=new Uk(i).init(),i._exporter=new ik(i).init(),Bx(e)?i._load(e):i._initOptions(),i}return Lx(e,t),e.prototype._initOptions=function(){return this.options=Object.assign({},e.defaults)},e.prototype._createChart=function(t){return new e(t)},e.prototype.animatable=function(){return!1!==this._chartOptions.options.animatable},e.prototype.loadAnimatable=function(){return this._loadAnimatable},e.prototype.getTooltipContext=function(t,e,i){var n=function(){function t(t){this.axis=t,this.series=t.getVisibleSeries()}return t.prototype.getTooltipText=function(t,e){return Ik.collectTooltipText(this.axis.options,this.series,e)},t.prototype.getTooltipParam=function(t,e,i){return Ik.inflateTooltipParam(this.series,t,e,i)},t}();switch("point"!==t&&"axis"!==t&&"group"!==t&&(t=this._chartOptions.pointHovering.getScope(e,i)),t){case"axis":return new n(e._xAxisObj);case"group":return e._group;default:return e}},Object.defineProperty(e.prototype,"chart",{get:function(){return this},enumerable:!1,configurable:!0}),e.prototype.anchorByName=function(t){},Object.defineProperty(e.prototype,"type",{get:function(){return this.options.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gaugeType",{get:function(){return this.options.gaugeType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polar",{get:function(){return this.options.polar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inverted",{get:function(){return this.options.inverted},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeOffset",{get:function(){return this.options.timeOffset},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startOfWeek",{get:function(){return this.options.startOfWeek},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._series.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstSeries",{get:function(){return this._series.firstSeries},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstGauge",{get:function(){return this._gauges.firstGauge},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"xAxis",{get:function(){return this._xAxes.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yAxis",{get:function(){return this._yAxes.first},enumerable:!1,configurable:!0}),e.prototype._needAxes=function(){return this._series.needAxes()},e.prototype._getSeries=function(){return this._series},e.prototype._getGauges=function(){return this._gauges},e.prototype._getXAxes=function(){return this._xAxes},e.prototype._getYAxes=function(){return this._yAxes},e.prototype.getAnnotations=function(){return this._annotations.getVisibles()},e.prototype.isGauge=function(){return this._gaugeOnly},e.prototype.isPolar=function(){return this._polar&&this._series.seriesCount()>0},e.prototype.isWidget=function(){return this._series.isWidget()},e.prototype.isInverted=function(){return this._inverted},e.prototype.isSplitted=function(){return this._splitted},e.prototype.isEmpty=function(t){return this._series.isEmpty(t)&&this._gauges.isEmpty(t)},e.prototype.seriesByName=function(t){return this._series.getSeries(t)},e.prototype.seriesByPoint=function(t){return this._series.seriesByPoint(t)},e.prototype.gaugeByName=function(t){return this._gauges.getGauge(t)},e.prototype.annotationByName=function(t){return this._annotations.getAnnotation(t)||(this._splitted?this._split.getAnnotation(t):this._body.getAnnotation(t))},e.prototype.axisByName=function(t){return this._xAxes.get(t)||this._yAxes.get(t)},e.prototype.containsAxis=function(t){return this._xAxes.contains(t)||this._yAxes.contains(t)},e.prototype.getXAxis=function(t){return this._xAxes.get(t)},e.prototype.getYAxis=function(t){return this._yAxes.get(t)},e.prototype.getAxes=function(t,e){var i,n=this._xAxes.items(),r=this._yAxes.items();if(this.isInverted())switch(t){case dE.LEFT:i=n.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case dE.RIGHT:i=n.filter((function(t){return t._isOpposite}));break;case dE.BOTTOM:i=r.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case dE.TOP:i=r.filter((function(t){return t._isOpposite}));break;case dE.CENTER:i=n.filter((function(t){return t._isBetween}))}else switch(t){case dE.LEFT:i=r.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case dE.RIGHT:i=r.filter((function(t){return t._isOpposite}));break;case dE.BOTTOM:i=n.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case dE.TOP:i=n.filter((function(t){return t._isOpposite}));break;case dE.MIDDLE:i=n.filter((function(t){return t._isBetween}))}return i?e?i.filter((function(t){return t.visible})):i:[]},e.prototype._getLegendSources=function(){return this._series.getLegendSources()},e.prototype._setProperties=function(t,i){var n=this.options;for(var r in e.defaults)t.hasOwnProperty(r)&&(n[r]=t[r]);n.type=n.type||"bar",n.gaugeType=n.gaugeType||"circle",this._polar=!0===this.polar},e.prototype.loadBase=function(t,e,i){var n,r=this._bases[e];return Bx(r.base)&&iV(n={},r.base),Bx(r[i])&&(n||(n={}),iV(n,r[i])),n?iV(n,t):t},e.prototype._load=function(t){var e=this._initOptions();return this.$_loadTemplates(t.templates),this._setProperties(t),this._assets.load(t.assets),e.options=this._chartOptions.load(t.options),e.title=this._title.load(t.title),e.subtitle=this._subtitle.load(t.subtitle),e.legend=this._legend.load(t.legend),e.tooltip=this._tooltip.load(t.tooltip),this._split.load(t.split),this._seriesIndex=0,this._series.load(t.series),this._gauges.load(t.gauges||t.gauge),this._gaugeOnly=0===this._series.count&&!this._gauges.isEmpty(!1),this._gaugeOnly||(this._xAxes.load(nS(t.xAxes,t.xAxis,{})),this._yAxes.load(nS(t.yAxes,t.yAxis,{}))),e.body=this._body.load(t.body||t.plot),this._annotations.load(t.annotations||t.annotation,!1),e.seriesNavigator=this._navigator.load(t.seriesNavigator),e.exporting=this._exporter.load(t.exporting),this},e.prototype.update=function(t,e){for(var i in this._setProperties(t,!1),this){var n=this[i];(n instanceof nV||n instanceof rV||n instanceof QP)&&n.updateOptions(t[i],!1)}e&&this._modelChanged(null)},e.prototype.export=function(t){this._fireEvent("onExportRequest",t)},e.prototype._connectSeries=function(t,e){return e?this._xAxes.connect(t):this._yAxes.connect(t)},e.prototype._dataChanged=function(){this._dataDirty=!0},e.prototype._isDataChanged=function(){return this._dataDirty},e.prototype._prepareRender=function(){var t=this,e=this._xAxes,i=this._yAxes,n=this._split;[e,i].forEach((function(e){e.count<1&&!t._gaugeOnly&&e.load({})})),this._inverted=!this._polar&&this.inverted,this._splitted=n.visible,e.disconnect(),i.disconnect(),this._series.prepareRender(),e.prepare(),i.prepare(),e.collectValues(),i.collectValues(),e.collectReferentsValues(),i.collectReferentsValues(),i.collectRanges(),e.prepareRender(),i.prepareRender(),this._splitted&&!this._gaugeOnly&&(n._prepareRender(),this._xPaneAxes._prepare(e,n._vrows,n._vcols),this._yPaneAxes._prepare(i,n._vrows,n._vcols)),this._series.prepareAfter(),this._legend._prepareRender(),this._gauges.prepareRender(),this._body._prepareRender(),this._annotations.prepareRender(),this._navigator.visible&&this._navigator._prepareRender()},e.prototype.afterRender=function(){this._dataDirty=!1,this._xAxes.afterRender(),this._yAxes.afterRender()},e.prototype.layoutAxes=function(t,e,i,n){this._xAxes._buildTicks(i?e:t),this._yAxes._buildTicks(i?t:e),this.$_calcAxesPoints(t,e,i,0)},e.prototype.$_calcAxesPoints=function(t,e,i,n){var r=i?e:t;this._xAxes.forEach((function(t){t._calcPoints(r,n)})),r=i?t:e,this._yAxes.forEach((function(t){t._calcPoints(r,n)}))},e.prototype.axesLayouted=function(t,e,i){this.$_calcAxesPoints(t,e,i,101)},e.prototype.getParam=function(t,e){return this._params[e]},e.prototype.setParam=function(t,e,i){return i&&e!==this._params[t]?(this._params[t]=e,this._modelChanged(null)):this._params[t]=e,this},e.prototype.addSeries=function(t,e){var i=this._series.add(t);return i&&(this._dataChanged(),this._modelChanged(i)),i},e.prototype.removeSeries=function(t,e){var i=this._series.remove(t);if(i)return this._dataChanged(),this._modelChanged(null),i},e.prototype.render=function(){this._fireEvent("onRefreshRequest")},e.prototype.$_loadTemplates=function(t){var e=this,i=this._bases={xAxis:{},yAxis:{},series:{},gauge:{},annotation:{}};if(Bx(t)){var n=this._templates={};for(var r in t){var o=t[r];Bx(o)&&(n[r]=Gx({},o))}["@xAxis","@yAxis","@series","@gauge","@annotation"].forEach((function(e){t.hasOwnProperty(e)&&Bx(t[e])&&(i[e.substring(1)]=t[e])})),this.assignTemplates=function(t){var i=t.template;if(jx(i)){var n=e._templates[i];if(n)return iV(iV({},n),t)}else Fx(i)&&i.forEach((function(i){var n=e._templates[i];return n?iV(iV({},n),t):n}));return t}}else this.assignTemplates=void 0},e.prototype._getGroupType=function(t){return jx(t)&&Pk[t.toLowerCase()]},e.prototype._getSeriesType=function(t){return jx(t)&&Sk[t.toLowerCase()]},e.prototype._getAxisType=function(t){return jx(t)&&fV[t.toLowerCase()]},e.prototype._getGaugeType=function(t){return jx(t)&&RV[t.toLowerCase()]},e.prototype._getGaugeGroupType=function(t){return jx(t)&&DV[t.toLowerCase()]},e.prototype._getAnnotationType=function(t){return jx(t)&&uV[t.toLowerCase()]},e.prototype.getAxesGap=function(){return this._chartOptions.options.axisGap||0},e.prototype._modelChanged=function(t,e){this._fireEvent("onModelChanged",t,e)},e.prototype._visibleChanged=function(t){this._fireEvent("onVisibleChanged",t)},e.prototype._pointVisibleChanged=function(t,e){this._fireEvent("onPointVisibleChanged",t,e)},e.defaults={type:"bar",gaugeType:"circle",polar:!1,inverted:!1,timeOffset:(new Date).getTimezoneOffset(),startOfWeek:0},e}(fS);CV.register(xk,pA,fA,bA),Ek.register(wC,SC,tC,nC,AC,EC,NC,DC,FC,$C,GC,WC,XC,qC,JC,vC,mC,eE,nE,oE,lE,cE,gE,mE,wE),Ik.register(VC,oC,MC,IC,PC,hE),Ik.registerSeries(VC,oC,IC,PC,hE),IV.register(TA,$A,JA,VA),jV.register(OA,HA,EA),lV.register(eA,iA,nA);var kE=function(){function t(t,e){this._loaded=!1,this._modelCallback=e,this._obj=new VE(t),null==e||e(this._obj,null)}return Object.defineProperty(t.prototype,"options",{get:function(){return this._obj.options},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._obj._data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._obj.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gaugeType",{get:function(){return this._obj.gaugeType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inverted",{get:function(){return this._obj.inverted},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polar",{get:function(){return this._obj.polar},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"assets",{get:function(){return this._obj._assets},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chartOptions",{get:function(){return this._obj._chartOptions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._obj._title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subtitle",{get:function(){return this._obj._subtitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._obj.first},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._obj.firstSeries},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gauge",{get:function(){return this._obj.firstGauge},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"legend",{get:function(){return this._obj._legend},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tooltip",{get:function(){return this._obj._tooltip},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xAxis",{get:function(){return this._obj.xAxis},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yAxis",{get:function(){return this._obj.yAxis},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"body",{get:function(){return this._obj._body},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"split",{get:function(){return this._obj._split},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xPaneAxes",{get:function(){return this._obj._xPaneAxes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yPaneAxes",{get:function(){return this._obj._yPaneAxes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seriesNavigator",{get:function(){return this._obj._navigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exporter",{get:function(){return this._obj._exporter},enumerable:!1,configurable:!0}),t.prototype.getXAxis=function(t){return this._obj.getXAxis(t)},t.prototype.getYAxis=function(t){return this._obj.getYAxis(t)},t.prototype.getSeries=function(t){return this._obj.seriesByName(t)},t.prototype.getGauge=function(t){return this._obj.gaugeByName(t)},t.prototype.getAnnotation=function(t){return this._obj.annotationByName(t)},t.prototype.load=function(t,e,i){var n;if(void 0===e&&(e=!1),Bx(t)){var r="load chart";sS.LOGGING&&console.time(r);var o=this._obj,s=o;this._loaded?(o.destroy(),s=this._obj=new VE):(this._loaded=!0,o=null),s._load(t),s._loadAnimatable=e,this._loadCallback=i,sS.log("chart-items:",tV),sS.LOGGING&&console.timeEnd(r),null===(n=this._modelCallback)||void 0===n||n.call(this,s,o)}return this},t.prototype.updateOptions=function(t,e){void 0===e&&(e=!0),this._obj.update(t,e)},t.prototype.export=function(t){this._obj.export(t)},t.prototype.render=function(){this._obj.render()},t.prototype.setParam=function(t,e,i){this._obj.setParam(t,e,i)},t.prototype.addSeries=function(t,e){return void 0===e&&(e=!0),this._obj.addSeries(t,e)},t.prototype.removeSeries=function(t,e){void 0===e&&(e=!0),this._obj.removeSeries(t,e)},t}(),AE=function(){function t(t,e){this._obj=new GS(t||{},e)}return Object.defineProperty(t.prototype,"rowCount",{get:function(){return this._obj.rowCount},enumerable:!1,configurable:!0}),t.prototype.getValue=function(t,e){return this._obj.getValue(t,e)},t.prototype.setValue=function(t,e,i){this._obj.setValue(t,e,i)},t.prototype.getValues=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=-1),this._obj.getValues(t,e,i)},t.prototype.getRow=function(t){return this._obj.getRow(t)},t.prototype.addRow=function(t,e){void 0===e&&(e=-1),this._obj.addRow(t,e)},t.prototype.deleteRow=function(t){void 0===t&&(t=-1),this._obj.deleteRow(t)},t}(),CE=function(t){function e(e,i,n,r){void 0===r&&(r=0);var o=t.call(this)||this;return o.removeDelay=0,o._pool=[],o._views=[],o._removes=[],o._owner=e,o._creator=i,o._styleName=n,o.removeDelay=r,o}return Lx(e,t),e.prototype._doDestroy=function(){this.freeAll(),this._owner=null,this._creator=null,t.prototype._doDestroy.call(this)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this._views.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._views.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._views[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._views[this._views.length-1]},enumerable:!1,configurable:!0}),e.prototype.get=function(t){return this._views[t]},e.prototype.getAll=function(){return this._views.slice()},e.prototype.pull=function(t){var e=this._views[t];return e||(e=this._pool.pop()||new this._creator(this._owner.doc,this._styleName),this._owner.add(e),this._views.push(e)),e},e.prototype._internalItems=function(){return this._views},e.prototype.elementOf=function(t){var e,i;try{for(var n=Mx(this._views),r=n.next();!r.done;r=n.next()){var o=r.value;if(o.dom.contains(t))return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.find=function(t){return this._views.find(t)},e.prototype.setRemoveDelay=function(t){return this.removeDelay=t,this},e.prototype.removeLater=function(t,e){var i=this,n=this._views.indexOf(t);n>=0&&(t.removeLater(e,(function(t){i._pool.push(t)})),this._views.splice(n,1))},e.prototype.$_create=function(t,e,i){var n=this._pool.pop();return n||(n=new this._creator(t,this._styleName)),n},e.prototype.prepare=function(t,e,i){for(var n=this._owner.doc,r=this._owner,o=this._pool,s=this._views;s.length>t;)o.push(s.pop().remove());for(;s.length<t;){var a=this.$_create(n);s.push(a),null==i||i(a,s.length-1,t),r.add(a)}return e&&this.forEach(e),this},e.prototype.borrow=function(){var t=this._pool.pop()||new this._creator(this._owner.doc,this._styleName);return this._owner.add(t),t},e.prototype.free=function(t,e){if(void 0===e&&(e=0),t){e>0?t.removeLater(e):t.remove(),this._pool.push(t);var i=this._views.indexOf(t);i>=0&&this._views.splice(i,1)}},e.prototype.freeAll=function(t,e){void 0===e&&(e=0);for(var i=(t=t||this._views).length-1;i>=0;i--)this.free(t[i],e)},e.prototype.freeHiddens=function(){for(var t=this._views,e=t.length-1;e>=0;e--)!t[e].visible&&this.free(t[e],0)},e.prototype.freeFrom=function(t){for(var e=this._views,i=e.length-1;i>=t;i--)this.free(e[i],0)},e.prototype.forEach=function(t){for(var e=this._views,i=0,n=e.length;i<n;i++)t(e[i],i,n)},e.prototype.visit=function(t){for(var e=this._views.length,i=0;i<e&&!1!==t(this._views[i],i,e);i++);return i===e},e.prototype.sort=function(t){return this._views=this._views.sort(t),this},e.prototype.map=function(t){return this._views.map(t)},e.prototype.front=function(t){t.front(this._views)},e.prototype.back=function(t){t.back(this._views)},e}(cS),EE=Object.freeze({x:0,y:0,width:0,height:0}),LE=function(t,e,i,n){return{x:t,y:e,width:i,height:n}};function NE(t){return{width:t.width,height:t.height}}function ME(t){return t.width<=0||t.height<=0}var TE=function(){function t(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.top=t,this.bottom=e,this.left=i,this.right=n}return t.create=function(e,i,n,r){return isNaN(n)?isNaN(i)?new t(e,e,e,e):new t(e,e,i,i):new t(e,i,n,r)},t.createFrom=function(t){var e,i=t.split(/\s*[\s,]+\s*/g);return(e=this.create).call.apply(e,Ox([null],Tx(i.map((function(t){return+t}))),!1))},t.prototype.clone=function(){return new t(this.top,this.bottom,this.left,this.right)},t.prototype.applyPadding=function(t){return this.left=tS(t.paddingLeft,0),this.right=tS(t.paddingRight,0),this.top=tS(t.paddingTop,0),this.bottom=tS(t.paddingBottom,0),this},t.prototype.applyMargin=function(t){return this.left=tS(t.marginLeft,0),this.right=tS(t.marginRight,0),this.top=tS(t.marginTop,0),this.bottom=tS(t.marginBottom,0),this},t.prototype.shrink=function(t){return{x:t.x+this.left,y:t.y+this.top,width:t.width-this.left-this.right,height:t.height-this.top-this.bottom}},t.Empty=Object.freeze(new t),t.Temp=new t,t}(),OE=function(t){function e(e,i){void 0===i&&(i=_S);var n=t.call(this,e,i,"g")||this;return n._doInitChildren(e),n}return Lx(e,t),e.prototype.setAttr=function(i,n){return e.IGNORE_ATTRS.hasOwnProperty(i)||t.prototype.setAttr.call(this,i,n),this},e.prototype._doInitChildren=function(t){},e.IGNORE_ATTRS={width:"",height:""},e}(wP),RE=function(t){function e(e,i){void 0===i&&(i=_S);var n=t.call(this,e,i,"g")||this;return wP.DEBUGGING&&(n.add(n._debugRect=new ck(e,"rct-debug")),n._debugRect.setAttr("pointerEvents","none")),n}return Lx(e,t),e.prototype.chart=function(){return this.model.chart},e.prototype._prepareStyleOrClass=function(t){this.setStyleOrClass(t._style)},e.prototype.setModel=function(t){t!==this.model&&(this.model=t,this.options=t._op)},e.prototype.measure=function(t,e,i,n,r){this._prepareStyleOrClass(e),this.setModel(e);var o=this._doMeasure(t,this.model,i,n,r);return this.mw=o.width,this.mh=o.height,o},e.prototype.layout=function(t){return this._doLayout(t),wP.DEBUGGING?(this._debugRect||this.insertFirst(this._debugRect=new ck(this.doc,"rct-debug")),this.width>1&&this.height>1&&this._debugRect.setRect(this._getDebugRect())):this._debugRect&&(this._debugRect.remove(),this._debugRect=null),this},e.prototype.resizeByMeasured=function(){return this.resize(this.mw,this.mh),this},e.prototype._getDebugRect=function(){return{x:0,y:0,width:this.width,height:this.height}},e.prototype._doMeasure=function(t,e,i,n,r){return{width:i,height:n}},e.prototype._doLayout=function(t){},e.prototype._invalidate=function(){var t;null===(t=this.control)||void 0===t||t.invalidateLayout()},e}(wP),DE=function(t){function e(e,i,n){var r=t.call(this,e,i)||this;return r._margins=new TE,r._paddings=new TE,r.add(r._background=new ck(e,n)),r}return Lx(e,t),e.prototype._getDebugRect=function(){return this._margins.shrink(t.prototype._getDebugRect.call(this))},e.prototype.measure=function(t,e,i,n,r){this._prepareStyleOrClass(e),this.setModel(e),this._setBackgroundStyle(this._background);var o=getComputedStyle(this._background.dom),s=this._paddings;s.applyPadding(o);var a=this._doMeasure(t,e,i,n,r);if(a.width+=s.left+s.right,a.height+=s.top+s.bottom,this._marginable()){var u=this._margins;o=getComputedStyle(this.dom),u.applyMargin(o),this.mw=a.width+=u.left+u.right,this.mh=a.height+=u.top+u.bottom}return this.mw=a.width,this.mh=a.height,a},e.prototype.layout=function(e){if(t.prototype.layout.call(this,e),this._marginable()){var i=this._margins;this._background.setBounds(i.left+this._getBackOffset(),i.top,this.width-i.left-i.right,this.height-i.top-i.bottom)}else this._resetBackBounds()&&this._background.setBounds(0,0,this.width,this.height);return this},e.prototype._marginable=function(){return!0},e.prototype._resetBackBounds=function(){return!0},e.prototype._getBackOffset=function(){return 0},e.prototype._deflatePaddings=function(t){var e=this._paddings;t.width-=e.left+e.right,t.height-=e.top+e.bottom},e}(RE),BE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.measure=function(t,e,i,n,r){this._setInverted(e.isInverted());var o=this._doMeasure(t,e,i,n,r);return this.mw=o.width,this.mh=o.height,o},e.prototype.resizeByMeasured=function(){return this.resize(this.mw,this.mh),this},e.prototype.layout=function(t){return this._doLayout(t),this},e.prototype._setInverted=function(t){this._inverted=t},e}(OE),FE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._inverted=!1,e._animatable=!0,e._loadAnimatable=!0,e}return Lx(e,t),e.prototype._setChartOptions=function(t,e,i){this._inverted=t,this._animatable=e,this._loadAnimatable=i},e}(RE),IE=function(t){function e(e,i,n){var r=t.call(this,e,n,"image")||this;return r._dirty=!0,r._bounds=EE,r.onloadProxy=function(){var t=r.getBBox();r.resize(t.width,t.height)},i&&r.setAttr("preserveAspectRatio","xMidYMid slice"),r.dom.onload=function(){r._dirty=!0,r.invalidate(),r._dirty=!1},window.SVGGraphicsElement||(r._proxy=new Image,r._proxy.onload=function(){r._dirty=!0,r.invalidate(),setTimeout((function(){r.onloadProxy(),r._dirty=!1}),0)}),r}return Lx(e,t),Object.defineProperty(e.prototype,"url",{get:function(){return this.getAttr("href")},set:function(t){t!==this.url&&(this._dirty=!0,t?this.setAttr("href",t):this.unsetAttr("href"),this._proxy&&(this._proxy.src=t))},enumerable:!1,configurable:!0}),e.prototype.setImage=function(t,e,i){return!!t&&(this.url=t,this.resize(e,i)&&(this._dirty=!0),!0)},e.prototype.getBBox=function(){if(this._bounds=this.dom.getBBox(),this._proxy){var t=this._bounds.width,e=this._bounds.height;0==t||e?0==e||t||(t=e/this._proxy.height*this._proxy.width):e=t/this._proxy.width*this._proxy.height,this._bounds={x:this._bounds.x,y:this._bounds.y,width:t,height:e}}return this._bounds},e.prototype.resize=function(e,i,n){return void 0===n&&(n=!0),this._dirty&&t.prototype.resize.call(this,e,i,n)},e}(wP),jE=function(t){function e(e,i){void 0===i&&(i=_S);var n=t.call(this,e)||this;return n.add(n._text=new TP(e,i)),n._text.anchor=AP.START,n}return Lx(e,t),e.prototype.setText=function(t){return this._outline&&(this._outline.text=t),this._text.text=t,this},e.prototype.setModel=function(t,e,i,n){var r=e.options.effect;return this._model=e,this._text.setStyleOrClass(e._style),"background"===r?(this._outline&&this._outline.remove(),this._back||(this._back=new ck(t,"rct-label-background")),this.insertFirst(this._back),this._back.setStyleOrClass(e.options.backgroundStyle)):"outline"===r?(this._back&&this._back.remove(),this._outline||(this._outline=new TP(t)),this.insertFirst(this._outline),this._outline.anchor=this._text.anchor,this._outline.setStyleOrClass(e._style)):(this._back&&this._back.remove(),this._outline&&this._outline.remove()),i?this._icon||(this.add(this._icon=new IE(t,!1)),this._icon.url=i,this._icon.width=e.options.width,this._icon.height=e.options.height||16):this._icon&&(this._icon.remove(),this._icon=null),this},e.prototype.setContrast=function(t){var e,i=null===(e=this._model)||void 0===e?void 0:e.options;if(t&&(null==i?void 0:i.autoContrast)&&this._text.setContrast(t,i.darkStyle||"rct-label-dark",i.lightStyle||"rct-label-light"),this._outline&&this._outline.parent){var n=MP.getContrast(getComputedStyle(this._text.dom).fill);this._outline.setStyles({fill:n,stroke:n,strokeWidth:this._model._outlineWidth})}return this},e.prototype.layout=function(t){var e=this._icon,i=0,n=this._text.getBBox(),r=n.width,o=n.height,s=r,a=o,u=0,l=0,h=0,p=0;if(e){var c=e.getBBox();switch(i=tS(this._model.options.iconGap,0),u=c.width,l=c.height,this._model.getIconPos()){case"left":case"right":s+=i+u,a=Math.max(l,o);break;default:a+=i+l,s=Math.max(u,r)}}if(this._back&&this._back.parent){var f=getComputedStyle(this._back.dom);h=parseFloat(f.paddingLeft)||0,p=parseFloat(f.paddingTop)||0,this._back.setBounds(0,0,s+h+(parseFloat(f.paddingRight)||0),a+p+(parseFloat(f.paddingBottom)||0),f.rx)}if(e)switch(this._model.getIconPos()){case"left":e.trans(h,(a-l)/2),h+=u+i,s-=u+i;break;case"right":e.trans(h+s-u,(a-l)/2),s-=u+i;break;case"top":e.transX((s-u)/2),p+=l+i;break;case"bottom":e.trans((s-u)/2,p+o+i)}switch(t){case"center":h+=s/2,this._text.anchor=AP.MIDDLE;break;case"right":h+=s,this._text.anchor=AP.END;break;default:this._text.anchor=AP.START}return this._text.trans(h,p),this._outline&&(this._outline.anchor=this._text.anchor,this._outline.setAttr("y",this._text.getAttr("y")),this._outline.trans(h,p)),this},e}(OE),zE=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o._axis=e,o._prevMin=i,o._prevMax=n,o.start(r),o}return Lx(e,t),e.prototype._doUpdate=function(t){if(this._axis.parent){var e=this._axis.model,i=this._prevMax-this._prevMin,n=(e.axisMax()-e.axisMin())/i;return t=n+(1-n)*t,e.setPrevRate(t),this._axis.invalidate(),!0}return!1},e.prototype._doStop=function(){this._axis.model.setPrevRate(NaN),this._axis=null},e}(ak),$E=function(t){function e(i){var n=t.call(this,i,e.TITLE_CLASS,"rct-axis-title-background")||this;return n.add(n._textView=new TP(i)),n._richText=new WP,n}return Lx(e,t),e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._getBackOffset=function(){return-this.width/2},e.prototype._doMeasure=function(t,e,i,n,r){this._angle=e.getRotation(),e.writingMode&&this._textView.setStyle("writingMode",e.writingMode),e.textOrientation&&this._textView.setStyle("textOrientation",e.textOrientation),this._richText.setFormat(e.options.text),this._richText.build(this._textView,i,n,null,null);var o=NE(this._textView.getBBox());if(!e.axis._isHorz&&0!==this._angle){var s=o.width;o.width=o.height,o.height=s}return o},e.prototype._doLayout=function(t){var e=this._textView,i=e.getStyle("writing-mode"),n=i===zS||i===$S;t?this.rotation=0:this.setRotation(0,(n?this.width:this.height)/2,this._angle);var r=this._margins.top+this._paddings.top,o=0;switch(this.textAlign()){case"left":this._textView.anchor=AP.START,n||(o-=this.width/2);break;case"right":this._textView.anchor=AP.END,n?r+=this.height:o+=this.width/2;break;default:this._textView.anchor=AP.MIDDLE,n&&(r+=this.height/2)}e.trans(o,r)},e.prototype.resizeByMeasured=function(){return 0===this._angle?this.resize(this.mw,this.mh):this.resize(this.mh,this.mw),this},e.prototype.layout=function(e){return t.prototype.layout.call(this,e),this._debugRect&&this._debugRect.setBounds(-this.width/2,0,this.width,this.height),this},e.TITLE_CLASS="rct-axis-title",e}(DE),HE=function(t){function e(e){var i=t.call(this,e,UE.TICK_CLASS)||this;return i.add(i._lineView=new hC(e)),i}return Lx(e,t),e.prototype._doLayout=function(t){this.model.axis._isHorz?this._lineView.setVLine(0,0,this.height):this._lineView.setHLine(0,0,this.width)},e}(RE),GE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.index=-1,e.col=0,e.row=0,e.tickWidth=0,e}return Lx(e,t),e.prototype.setLabel=function(t,e,i,n,r){if(i){this._richText?this._richText._format!==i&&this._richText.setFormat(i):this._richText=new WP(i);var o=t.getIcon(e);this.setModel(this.doc,t,o&&t.getUrl(o),null),this._richText.build(this._text,n,r,t,t._domain),this._outline&&this._richText.build(this._outline,n,r,t,t._domain)}else this._richText&&(this._richText=null,this._text.text="")},e.prototype.rotatedWidth=function(){var t=this.rotation*vS,e=this.getBBox();return Qx(Ux(t)*e.height)+Qx(Xx(t)*e.width)},e.prototype.rotatedHeight=function(){var t=this.rotation*vS,e=this.getBBox();return Qx(Xx(t)*e.height)+Qx(Ux(t)*e.width)},e}(jE),WE=function(t){function e(e){var i=t.call(this,e,void 0)||this;return i.add(i._back=new kP(e,"rct-crosshair-flag")),i.add(i._text=new TP(e,"rct-crosshair-flag-text")),i}return Lx(e,t),e.prototype.setText=function(t,e){if(e!==this._text.text){this._text.text=e;var i=this._text.getBBox(),n=new OC,r=Jx(t.flag.minWidth||0,i.width+8);n.rect(0,0,r,i.height+4),this._back.setPath(n.end()),this._text.trans(r/2,2)}},e}(wP),YE=function(t){function e(i){var n=t.call(this,i,"rct-axis-scrollbar")||this;return n._len=0,n._page=0,n._pos=0,n.add(n._trackView=new ck(i,e.TRACK_CLASS)),n.add(n._thumbView=new ck(i,e.THUMB_CLASS)),n}return Lx(e,t),e.isThumb=function(t){return t.classList.contains(e.THUMB_CLASS)},e.prototype.setScroll=function(t,e){if(this._reversed=e,t){var i=t.max-t.min,n=t.end-t.start;this._len=Jx(0,i),this._page=Kx(n,i),this._pos=Kx(t.min+i-n,Jx(0,t.start))}else this._len=0},e.prototype.getZoomPos=function(t){var e=this.model.axis._zoom,i=(this._vertical?this.height:this.width)-(this._vertical?this._thumbView.height:this._thumbView.width);return this.model.axis.options.reversed,(t=Jx(0,Kx(t,i)))*(e.max-e.min-(e.end-e.start))/i+e.min},e.prototype._doMeasure=function(t,e,i,n,r){return this.setStyleOrClass(e._style),(this._vertical=!e.axis._isHorz)?{width:e.getThickness()+e.getGap()+e.getGapFar(),height:n}:{width:i,height:e.getThickness()+e.getGap()+e.getGapFar()}},e.prototype._doLayout=function(t){var e=this.model,i=e.axis._zoom,n=this._szThumb=tS(e.getMinThumbSize(),32),r=this._len,o=0===this._len,s=this._page,a=o?0:this._pos-i.min,u=e.getGap(),l=u+e.getGapFar(),h=this.width,p=this.height;if(this._vertical){h-=l,this._trackView.setBounds(u,0,h,p),p-=n;var c=(o||s===r?p:p*s/r)+n;this._reversed,this._thumbView.setBounds(u+1,o?0:this.height-p*a/r-c,h-2,c)}else{p-=u+e.getGapFar(),this._trackView.setBounds(0,u,h,p),h-=n;var f=(o||s===r?h:h*s/r)+n;this._reversed,this._thumbView.setBounds(o?0:h*a/r,u+1,f,p-2)}},e.CLASS_NAME="rct-axis-scrollbar",e.TRACK_CLASS="rct-axis-scrollbar-track",e.THUMB_CLASS="rct-axis-scrollbar-thumb",e}(RE),XE=/\${label}.*?/g,UE=function(t){function e(i){var n=t.call(this,i,e.AXIS_CLASS)||this;return n._simpleMode=!1,n._markViews=[],n._edgeStart=0,n._marginStart=0,n._marginEnd=0,n._edgeEnd=0,n.add(n._lineView=new hC(i,e.LINE_CLASS)),n.add(n._titleView=new $E(i)),n.add(n._markContainer=new wP(i,"rct-axis-ticks")),n.add(n._labelContainer=new wP(i,"rct-axis-labels")),n._labelViews=new CE(n._labelContainer,GE,"rct-axis-label"),n}return Lx(e,t),e.prototype.$_checkScrollView=function(t,e,i,n,r){return e.visible&&!this.model._isBetween?(this._scrollView||this.add(this._scrollView=new YE(t)),this._scrollView.setVis(!0),this._scrollView.measure(t,e,n,r,1)[i]):(this._scrollView&&this._scrollView.setVis(!1),0)},e.prototype.checkHeight=function(t,e,i){var n=this.model,r=n.title,o=n.tick.visible?n.tick.options.length:0;return this.$_prepareLabels(n,e)&&(o+=this.$_measureLabelsHorz(n,e,!0)),this._titleView.setVis(r.visible)&&(o+=this._titleView.measure(t,r,e,i,1).height,o+=r.options.gap),o+=this.$_checkScrollView(t,n.scrollBar,"height",e,i)},e.prototype.checkWidth=function(t,e,i){var n=this.model,r=n.title,o=n.tick.visible?n.tick.options.length:0;return this.$_prepareLabels(n,e)&&(o+=this.$_measureLabelsVert(n,i,!0)),(this._titleView.visible=r.visible)&&(o+=this._titleView.measure(t,r,e,i,1).width,o+=r.options.gap),o+=this.$_checkScrollView(t,n.scrollBar,"width",e,i)},e.prototype.prepareGuides=function(t,e,i,n,r){var o=this;[n,r].forEach((function(n,r){if(n.setVis(!o._empty)){var s=o.model.guides.filter((function(t){return t.options.front==(1===r)&&t.canConstainedTo(e,i)}));n.setAll(t,s,!1)}}))},e.prototype.showCrosshair=function(t,e){var i,n=this.model,r=this._crosshairView;r||this.add(r=this._crosshairView=new WE(this.doc)),r.setVis(!0),r.setText(n.crosshair,e);var o=r.getBBox();n._isHorz?r.trans(t-o.width/2,n.tick.options.length):(i="opposite"===n._runPos?Kx(0,this.width-o.width):Jx(0,this.width-n.tick.options.length-o.width),r.trans(i,t-o.height/2))},e.prototype.setMargins=function(t,e,i,n){this._edgeStart=t,this._marginStart=e,this._marginEnd=i,this._edgeEnd=n},e.prototype.hideCrosshiar=function(){this._crosshairView&&this._crosshairView.setVis(!1)},e.prototype.scroll=function(t){},e.prototype.prepare=function(t){this.model=t,this._chartEmpty=t.chart.isEmpty(!0),this._empty=this._chartEmpty||t.isEmpty()},e.prototype.checkExtents=function(t){var e=this,i=this._prevModel,n=this._prevModel=this.model;if((!i||i===n)&&t){var r=this._prevMin,o=this._prevMax;this._prevMin=n.axisMin(),this._prevMax=n.axisMax(),(!isNaN(o)&&this._prevMax!==o||!isNaN(r)&&this._prevMin!==r)&&!n._zooming&&n.options.animatable&&new zE(this,r,o,(function(){e.invalidate()}))}},e.prototype.clean=function(){this._prevMax=this._prevMin=NaN,this._prevModel=null},e.prototype._doMeasure=function(t,i,n,r,o){var s,a=i.line,u=i.tick,l=i._isHorz,h=i._isBetween,p=this._titleView,c=0;return(this._lineView.visible=a.visible)?(this._lineView.setStyleOrClass(a._style),h&&(this._lineView2?this._lineView2.setVis(!0):this.insertChild(this._lineView2=new hC(t,e.LINE_CLASS),this._lineView),this._lineView.setStyleOrClass(a._style))):this._lineView2&&this._lineView2.setVis(!1),this._markLen=u.options.length||0,this._markLen>0&&(c+=i.tick.options.gap||0),c+=this._markLen,this.$_prepareTickMarks(t,i)&&this._markViews.forEach((function(e){return e.measure(t,i.tick,n,r,o)})),h&&(c*=2),this.$_prepareLabels(i,l?n:r)?c+=this._labelSize=l?this.$_measureLabelsHorz(i,n):this.$_measureLabelsVert(i,r):this._labelSize=0,this._simpleMode?p.setVis(!1):(p.visible&&(c+=l?p.mh:p.mw,c+=+i.title.options.gap||0),(null===(s=this._scrollView)||void 0===s?void 0:s.visible)&&(c+=l?this._scrollView.mh:this._scrollView.mw)),{width:l?n:c,height:l?c:r}},e.prototype._doLayout=function(){var t=this.model,e=t._isHorz,i=t._isOpposite,n=t._isBetween,r=t._ticks,o=t._markPoints,s=this._labelViews,a=this._markLen,u=this.width,l=this.height;this._lineView.visible&&(e?this._lineView.setHLine(i?l:0,0,u):this._lineView.setVLine(i?0:u,0,l),this._lineView2&&(e?this._lineView2.setHLine(l,0,u):this._lineView2.setVLine(0,0,l))),this._markContainer.visible&&(e?this._markViews.forEach((function(e,n){e.resize(1,a),e.layout().trans(t.prev(o[n]),i?l-a:0)})):this._markViews.forEach((function(e,n){e.resize(a,1),e.layout().trans(i?0:u-a,l-t.prev(o[n]))})));var h=a+(t.tick.options.gap||0);if(this._labelContainer.visible&&s.count>0&&(e?this.$_layoutLabelsHorz(s,r,n,i,u,l,h):this.$_layoutLabelsVert(s,r,n,i,u,l,h)),!this._simpleMode){var p=t.title.options,c=this._titleView,f=this._scrollView,_=this._labelSize,d=0,y=0;if(c.visible){var g=+p.offset||0,v=+p.gap||0;if(c.resizeByMeasured().layout(e),e){if(y+=i?0:h+_+v,t.options.reversed)switch(p.align){case"start":d=u-c.width/2-g;break;case"end":d=c.width/2+g;break;default:d=u/2-g}else switch(p.align){case"start":d=c.width/2+g;break;case"end":d=u-c.width/2-g;break;default:d=u/2+g}c.trans(d,y),y+=c.height}else{var m=0===c._angle?c.width:c.height;if(d=i?h+_+v+m/2:u-h-_-v-m/2,t.options.reversed)if(0===c._angle)switch(p.align){case"start":y=0+g;break;case"end":y=l-c.height-g;break;default:y=(l-c.height)/2+g}else switch(p.align){case"start":y=c.width/2-c.height/2+g;break;case"end":y=l-c.width/2-c.height/2-g;break;default:y=(l-c.height)/2+g}else if(0===c._angle)switch(p.align){case"start":y=l-c.height-g;break;case"end":y=0+g;break;default:y=(l-c.height)/2-g}else switch(p.align){case"start":y=l-c.width/2-c.height/2-g;break;case"end":y=c.width/2-c.height/2+g;break;default:y=(l-c.height)/2-g}c.trans(d,y)}}else y+=i?0:h+_;(null==f?void 0:f.visible)&&(e?(f.trans(0,y).resize(this.width,f.mh),f.setScroll(t._zoom,t.options.reversed)):(f.trans(0,0).resize(f.mw,this.height),f.setScroll(t._zoom,t.options.reversed)),f.layout())}},e.prototype.$_prepareTickMarks=function(t,e){var i=this._markContainer;if(i.visible=e.tick.visible){for(var n=e._markPoints.length,r=this._markViews;r.length<n;){var o=new HE(t);i.add(o),r.push(o)}for(;r.length>n;)r.pop().remove();return!0}},e.prototype._prepareLabel=function(t,e,i,n,r){if(r||t.value!==e.value){var o=i.getLabelText(e,n),s=e.label;if(t.value=e.value,t.internalClearStyleAndClass(),t.internalSetStyleOrClass(i._style),t.internalSetStyleOrClass(i.getLabelStyle(e,n)),null!=o)s&&o.match(XE)?t.setLabel(i,e,o.replace(XE,s),1e3,1e3):(i.prepareRich(o),i._paramTick=e,t.setModel(this.doc,i,null,null),i.buildSvg(t._text,t._outline,NaN,NaN,i,i._domain));else t.setLabel(i,e,s,1e3,1e3)}},e.prototype.$_prepareLabels=function(t,e){if(this._labelContainer.setVis(!this._chartEmpty&&t.labelsVisible())){var i=t._ticks.length;return this._labelContainer.setStyleOrClass(t.label._style),i}return 0},e.prototype.$_getRows=function(t){return 2},e.prototype.$_getStep=function(t){return 2},e.prototype.$_checkOverlappedHorz2=function(t,e,i,n,r,o,s,a){for(var u,l=t.label,h=Jx(0,Kx(n-1,l.options.startStep||0)),p=t._ticks,c=p.length,f=(n=Jx(1,n))*(r=Kx(Jx(1,r),p.length)),_=o||0,d=Qx(_)*vS,y=d<35*vS,g=!1,v=0,m=0;m<r;m++){for(var b=m*n+h;b<c;b+=f){for(var w=0,x=b;x<b+f&&x<c;x++)w+=t.getLabelLength(i,p[x].value);if(b+f<c){(u=e.pull(v++)).rotation=_,u.row=m,u.index=b,this._prepareLabel(u,p[b],l,c,a),u.setVis(!0);var S=w;if(0===_&&u.getBBox().width>=S){g=!0;break}if(y&&u.getBBox().width*Xx(d)>=S){g=!0;break}if(0!==_&&u.getBBox().height>=S){g=!0;break}}}if(g)return!0;b-f<c&&((u=e.pull(v++)).row=m,u.rotation=_,u.index=b-f,this._prepareLabel(u,p[b-f],l,c,a),u.setVis(!0))}!s&&e.freeFrom(v)},e.prototype.$_applyStep=function(t,e,i){var n=t.label,r=Jx(0,Kx(i-1,n.options.startStep||0));e.forEach((function(t){return t.index=-1}));for(var o=r;o<e.length;o+=i)e[o].index=o;return e.forEach((function(t){return t.setVis(t.index>=0)})),e.filter((function(t){return t.visible}))},e.prototype.$_measureLabelsHorz=function(t,e,i){var n=this;void 0===i&&(i=!1);var r,o=t.label,s=o.options,a=+s.step|0,u=+s.rows|0,l=+s.rotation%360,h=this.$_checkOverlappedHorz2(t,this._labelViews,e,a,u,l,!1,i),p=this._labelViews._internalItems();if(this._labelRowPts=[0],h)if("none"===s.autoArrange)this._labelViews.prepare(t._ticks.length,(function(e,r,s){e.rotation=l,e.row=0,e.index=r,n._prepareLabel(e,t._ticks[r],o,s,i),e.setVis(!0)})),p=this.$_applyStep(t,p,a||1);else{switch(a=u=0,o.options.autoArrange){case"rows":u=this.$_getRows(p);break;case"step":a=this.$_getStep(p)}if(a>1)for(;this.$_checkOverlappedHorz2(t,this._labelViews,e,a,1,0,!1,i);)a++;else if(u>1){for(;t._ticks.length>u&&(p.forEach((function(t,e){t.row=e%u,t.index=e})),this.$_checkOverlappedHorz2(t,this._labelViews,e,1,u,0,!1,i));)u++;this._labelRowPts=[]}else if((isNaN(l)||Math.abs(Math.tan(l*vS))<1)&&(l=-45),this.$_checkOverlappedHorz2(t,this._labelViews,e,a,u,l,!1,i))for(a=2;;){if(!this.$_checkOverlappedHorz2(t,this._labelViews,e,a,u,l,!1,i)){this.$_checkOverlappedHorz2(t,this._labelViews,e,a,u,0,!0,i)&&p.forEach((function(t,e){t.rotation=l}));break}a++}}else;if(p.length>0){if(u>1){for(var c=!isNaN(l)&&0!=l,f=this._labelRowPts,_=0;_<u;_++)f.push(0);p.forEach((function(t){f[t.row]=Jx(f[t.row],c?t.rotatedHeight():t.getBBox().height)})),f.unshift(0);for(_=2;_<f.length;_++)f[_]+=f[_-1];return f[f.length-1]}if(isNaN(l)||0==l){r=p[0].getBBox().height;for(_=1;_<p.length;_++)r=Jx(r,p[_].getBBox().height)}else{r=p[0].rotatedHeight();for(var _=1;_<p.length;_++)r=Jx(r,p[_].rotatedHeight())}return r}return 0},e.prototype.$_checkOverlappedVert=function(t,e,i,n){var r=e.length,o=Jx(1,n);e.forEach((function(t){return t.rotation=0}));for(var s=0;s<r-1;s+=o){for(var a=0,u=s;u<s+o&&u<r-1;u++)a+=t.getLabelLength(i,e[s].value);if(e[s].getBBox().height>=a)return!0}},e.prototype.$_checkOverlappedVert2=function(t,e,i,n,r){for(var o,s=t.label,a=t._ticks,u=a.length,l=Jx(1,n),h=0,p=0;h<u;h+=l){for(var c=0,f=h;f<h+l&&f<u;f++)c+=t.getLabelLength(i,a[f].value);if(h+l<u&&((o=e.pull(p++)).rotation=0,o.index=h,this._prepareLabel(o,a[h],s,u,r),o.setVis(!0),o.getBBox().height>=c))return!0}h-l<u&&((o=e.pull(p++)).rotation=0,o.index=h-l,this._prepareLabel(o,a[h-l],s,u,r),o.setVis(!0)),e.freeFrom(p)},e.prototype.$_measureLabelsVert=function(t,e,i){var n=this;void 0===i&&(i=!1);var r=t.label,o=Jx(1,+r.options.step|0),s=this.$_checkOverlappedVert2(t,this._labelViews,e,o,i),a=this._labelViews._internalItems();if(s)if("none"===r.options.autoArrange)this._labelViews.prepare(t._ticks.length,(function(e,o,s){e.rotation=0,e.index=o,n._prepareLabel(e,t._ticks[o],r,s,i),e.setVis(!0)})),a=this.$_applyStep(t,a,o||1);else for(;this.$_checkOverlappedVert2(t,this._labelViews,e,++o,i););else;if(a.length>0){for(var u=a[0].getBBox().width,l=1;l<a.length;l++)u=Jx(u,a[l].getBBox().width);return u}return 0},e.prototype.$_layoutLabelsHorz=function(t,e,i,n,r,o,s){var a,u,l=this.model,h=l.label,p=l.options.reversed,c=this._labelRowPts,f=t.get(0).rotation,_=f*vS,d=f<-15&&f>=-90||f>15&&f<=90,y=t.count;t.freeHiddens(),t.forEach((function(t,i){var r=t.getBBox();a=l.prev(e[t.index].pos),u=n?o-s-r.height-c[t.row]:s+c[t.row],f<-15&&f>=-90?n?(a-=r.width,u-=Ux(_)*r.height/2,t.setRotation(r.width,r.height/2,-f)):(a-=r.width,u+=Ux(_)*r.height/2,t.setRotation(r.width,r.height/2,f)):f>15&&f<=90?n?(u+=Ux(_)*r.height/2,t.setRotation(0,r.height/2,-f)):(u-=Ux(_)*r.height/2,t.setRotation(0,r.height/2,f)):(a-=r.width/2,t.setRotation(r.width/2,0,n?-f:f)),t.setContrast(null).layout("center").trans(a,u)})),!d&&y>1&&(function(e,i,n){var r=!0,o=i.rotatedWidth(),s=i.tx;if(s<-e._marginStart-e._edgeStart)if("pull"===(p?h.options.lastOverflow:h.options.firstOverflow))if(s=-e._marginStart-e._edgeStart+2,t.count>0){var a=n.tx;s+o+(+h.options.overflowGap||12)>a&&(r=!1)}else r=!1;else r=!1;r?i.transX(s):i.setVis(!1)}(this,t.get(p?y-1:0),t.get(p?y-2:1)),function(t,e,i){var n=!0,o=e.tx,s=e.rotatedWidth();if(o+s>(r+=t._marginEnd+t._edgeEnd)){var a=h.options;"pull"===(p?a.firstOverflow:a.lastOverflow)?(o=r-s,i?o<i.tx+i.rotatedWidth()+(+a.overflowGap||12)&&(n=!1):n=!1):n=!1}n?e.transX(o):e.setVis(!1)}(this,t.get(p?0:y-1),t.get(p?1:y-2)))},e.prototype.$_layoutLabelsVert=function(t,e,i,n,r,o,s){var a=this.model,u=n?"left":i?"center":"right",l=n?s:r-s;t.freeHiddens(),t.forEach((function(t,s){var h=t.getBBox(),p=n?l:i?(r-h.width)/2:l-h.width;t.setContrast(null).layout(u).trans(p,o-a.prev(e[t.index].pos)-h.height/2)}))},e.AXIS_CLASS="rct-axis",e.LINE_CLASS="rct-axis-line",e.TICK_CLASS="rct-axis-tick",e}(RE),qE=function(t){function e(i,n,r){var o=t.call(this,i,e.STYLE)||this;return o.add(o._back=new ck(i,e.BACK_STYLE)),o.add(o._textView=new TP(i)),r&&o.dom.classList.add(r),n&&o.setText(n),o}return Lx(e,t),e.prototype.setText=function(t){this._textView.text=t},e.prototype.layout=function(t){this.setStyleOrClass(t),this._textView.layoutText();var e=getComputedStyle(this._back.dom),i=(new TE).applyPadding(e),n=this._textView.getBBox();this._back.rect={x:0,y:0,width:n.width+i.left+i.right,height:n.height+i.top+i.bottom},this._textView.trans(n.width/2+i.left,i.top)},e.prototype.click=function(){return!1},e.prototype.setVis=function(e){if(t.prototype.setVis.call(this,e))return e&&this._textView.stain(),!0},e.STYLE="rct-button",e.BACK_STYLE="rct-button-background",e}(wP),ZE=function(t){function e(e,i){return t.call(this,e,i,"circle")||this}return Lx(e,t),e.prototype.setCircle=function(t,e,i){this.setAttrs({cx:t,cy:e,r:i})},e}(wP);!function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.setFill("none"),n}Lx(e,t),e.prototype.resetStyles=function(e){var i=t.prototype.resetStyles.call(this,e);return this.setFill("none"),i}}(ZE);var KE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.setArc=function(t,e,i,n,r,o){this.setPath(pk.arc(t,e,i,i,n,close?n+r:n-r,o))},e}(kP),JE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.setPolyline=function(t){this.setPath(pk.lines.apply(pk,Ox([],Tx(t),!1)))},e}(KE),QE=function(t){function e(e,i,n){void 0===i&&(i=_S),void 0===n&&(n=_S);var r=t.call(this,e,i)||this;return r.cx=0,r.cy=0,r.rx=0,r.ry=0,r.innerRadius=0,r.start=0,r.angle=0,r.clockwise=!0,r.rate=1,n&&r._assignShape(n,!1),r.setAttr("role","img"),r}return Lx(e,t),e.create=function(t,i,n,r,o,s,a,u,l){return void 0===l&&(l=!0),new e(t,i,{cx:n,cy:r,rx:o,ry:s,innerRadius:0,start:a,angle:u,clockwise:l})},e.createInner=function(t,i,n,r,o,s,a,u,l,h){return void 0===i&&(i=""),void 0===h&&(h=!0),new e(t,i,{cx:n,cy:r,rx:o,ry:s,innerRadius:a,start:u,angle:l,clockwise:h})},e.prototype.equals=function(t){return t.cx===this.cx&&t.cy===this.cy&&t.rx===this.rx&&t.ry===this.ry&&t.innerRadius===this.innerRadius&&t.start===this.start&&t.angle===this.angle&&t.clockwise===this.clockwise},e.prototype.setSector=function(t){this._assignShape(t,!1)},e.prototype.setSectorEx=function(t,e){this._assignShape(t,e)},e.prototype._getShape=function(){return{cx:this.cx,cy:this.cy,rx:this.rx,ry:this.ry,innerRadius:this.innerRadius,start:this.start,angle:this.angle,clockwise:this.clockwise}},e.prototype._assignShape=function(t,e){this.cx=t.cx,this.cy=t.cy,this.rx=t.rx,this.ry=t.ry,this.innerRadius=t.innerRadius,this.start=t.start,this.angle=t.angle,this.clockwise=t.clockwise,this.setPath(e?this.$_renderArc():this.$_renderSector())},e.prototype.$_renderSector=function(){return pk.sector(this.cx,this.cy,this.rx*this.rate,this.ry*this.rate,this.innerRadius||0,this.start,this.clockwise?this.start+this.angle:this.start-this.angle,this.clockwise)},e.prototype.$_renderArc=function(){return pk.arc(this.cx,this.cy,this.rx*this.rate,this.ry*this.rate,this.start,this.clockwise?this.start+this.angle:this.start-this.angle,this.clockwise)},e}(kP),tL={},eL=function(t){function e(i,n){return t.call(this,i,e.CLASS_NAME+" "+n,"rct-annotation-background")||this}return Lx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){tL[t[0].type]=t[1]}))},e.prototype.update=function(t,e,i){this.measure(this.doc,this.model,e,i,0),this._layoutView(this.chart().isInverted(),t,0,0,e,i)},e.prototype._layoutView=function(t,e,i,n,r,o){this.resizeByMeasured(),this.layout(this._posByAnchor(e)||this.model.getPosition(this.chart().isInverted(),i,n,r,o,this.width,this.height))},e.prototype._posByAnchor=function(t){var e=this.model,i=e._anchorObj;if(i){var n=t.getAnnotationAnchor(i);if(n){var r=e.getOffset(this.width,this.height),o=n.width,s=n.height,a=n.tx,u=n.ty;switch(this.options.align){case"left":a-=this.width+r.x;break;case"right":a+=o+r.x;break;default:a+=(o-this.width)/2+r.x}switch(this.options.verticalAlign){case"middle":u+=(s-this.height)/2+r.y;break;case"bottom":u+=s+r.y;break;default:u-=this.height+r.y}return{x:a,y:u}}}},e.prototype._marginable=function(){return!1},e.prototype._resetBackBounds=function(){return!1},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doLayout=function(t){var e=this.model.options.rotation;this._background.setBounds(t.x,t.y,this.width,this.height),isNaN(e)||0===e?this.rotation=0:this.setRotation(this.width/2,this.height/2,e)},e.prototype.setRotation=function(t,e,i){return this._background.setRotation(t,e,i),this._setRotation(t,e,i),this},e.prototype._setRotation=function(t,e,i){},e.CLASS_NAME="rct-annotation",e}(DE),iL={},nL=function(t){function e(i,n){var r=t.call(this,i,n)||this;return r.dom.classList.add(r._defaultCalss()),r.add(r._paneElement=new ck(i,e.PANE_CLASS)),r.add(r._contentContainer=new xP(i,null)),r._doInitContents(i,r._contentContainer),r}return Lx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){iL[t[0].type]=t[1]}))},e.prototype._defaultCalss=function(){return e.GAUGE_CLASS},e.prototype.clicked=function(t){},e.prototype.prepareGauge=function(t,e){this._prepareGauge(t,e)},e.prototype.getPosition=function(t,e){var i=this.model,n=i.getLeft(t),r=i.getTop(e);return isNaN(n)&&(n=i.getRight(t)-this.width,isNaN(n)&&(n=(t-this.width)/2)),isNaN(r)&&(r=i.getBottom(e)-this.height,isNaN(r)&&(r=(e-this.height)/2)),{x:n,y:r}},e.prototype._prepareStyleOrClass=function(t){this._paneElement.setStyleOrClass(t.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,n,r){return e.getSize(i,n)},e.prototype._doLayout=function(){var t=this.width,e=this.height;this._paneElement.resizeRect(t,e);var i=Gx(dP.getPadding(this.dom));t-=i.left+i.right,e-=i.top+i.bottom,this._renderGauge(t,e),this._contentContainer.trans(i.left,i.top)},e.prototype._getGroupView=function(){for(var t=this.parent;t;){if(t instanceof pL)return t;t=t.parent}},e.GAUGE_CLASS="rct-gauge",e.PANE_CLASS="rct-gauge-pane",e}(FE),rL=function(t){function e(e,i,n){var r=t.call(this)||this;return r.view=e,r.from=i,r.to=n,r}return Lx(e,t),e.prototype._doUpdate=function(t){return this.view._runValue=this.from+(this.to-this.from)*t,this.view._renderValue(),!0},e}(ak),oL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueOf=function(t,e,i){var n=t.getParam(e);return $x(n)?KS.getFormatter(i||t.label.numberFormat).toStr(n):n},e._prevValue=0,e}return Lx(e,t),e.prototype._prepareStyleOrClass=function(e){t.prototype._prepareStyleOrClass.call(this,e),this._backgroundView().setStyleOrClass(e._style)},e.prototype._doLayout=function(){this._ani&&(this._ani.stop(),this._ani=null,this._prevValue=0),t.prototype._doLayout.call(this),this._checkValueAnimation()},e.prototype._getValue=function(t){return Jx(t.options.minValue,Kx(t.options.maxValue,tS(this._runValue,t.options.value)))},e.prototype._checkValueAnimation=function(){var t=this,e=this.model;this._animatable&&e.options.animatable&&e.options.value!==this._prevValue&&(this._ani=new rL(this,this._prevValue,e.options.value).start((function(){return t._runValue=NaN})),this._prevValue=e.options.value)},e}(nL),sL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(jE),aL=function(t){function e(e){var i=t.call(this,e,"rct-gauge-scale")||this;return i.add(i._line=i._createLine(e,"rct-gauge-scale-line")),i.add(i._tickContainer=new xP(e,"rct-gauge-scale-ticks")),i._ticks=new CE(i._tickContainer,hC),i.add(i._labelContainer=new xP(e,"rct-gauge-scale-tick-labels")),i._labels=new CE(i._labelContainer,sL),i}return Lx(e,t),e}(RE),uL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._createLine=function(t,e){return new hC(t,e)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._reversed,s=e._vertical,a=e.label,u=e.tick,l=e._steps,h=l.length,p=s?e.options.gap:i,c=s?n:e.options.gap;if(this._tickContainer.setVis(u.visible)&&(this._tickContainer.setStyleOrClass(u._style),this._ticks.prepare(h)),s?p+=u.options.length:c+=u.options.length,this._labelContainer.setVis(a.visible)&&(this._labelContainer.setStyleOrClass(a._style),this._labels.prepare(h,(function(e){e.setModel(t,a,null,null)})),h>0))if(s){var f=0;this._labels.forEach((function(t,e){t.setText(a.getText(l[o?e:h-1-e])),f=Jx(t.getBBox().width)})),p+=f}else{var _=0;this._labels.forEach((function(t,e){t.setText(a.getText(l[o?h-1-e:e])),_=Jx(t.getBBox().height)})),c+=_}return{width:p,height:c}},e.prototype._doLayout=function(){var t=this.model;t._vertical?this.$_layoutVert(t,this.width,this.height):this.$_layoutHorz(t,this.width,this.height)},e.prototype.$_layoutHorz=function(t,e,i){var n=t.options,r=this._line,o=t.tick,s=t._steps;s.length;var a,u="opposite"===n.position,l=u?-o.options.length:o.options.length,h=u?i-n.gap:n.gap;if(r.setVis(t.line.visible)&&(r.setStyleOrClass(t.line._style),r.setHLine(h,0,e)),this._tickContainer.setVis(o.visible)&&this._ticks.forEach((function(i,n){a=t.getRate(s[n])*e,i.setVLine(a,h,h+l)})),this._labelContainer.visible){var p=Number.MIN_SAFE_INTEGER;h=u?0:h+l,this._labels.forEach((function(i,n){var r=i.getBBox();a=t.getRate(s[n])*e,i.setVis(a-r.width/2>p)&&(i.layout("center").trans(a-r.width/2,h),p=a+r.width/2)}))}},e.prototype.$_layoutVert=function(t,e,i){var n=t.options,r=this._line,o=t.tick,s=t._steps;this.height,s.length;var a,u="opposite"===n.position,l=u?o.options.length:-o.options.length,h=u?n.gap:e-n.gap;if(r.setVis(t.line.visible)&&(r.setStyleOrClass(t.line._style),r.setVLine(h,0,i)),this._tickContainer.setVis(o.visible)&&this._ticks.forEach((function(e,n){a=t.getRate(s[n])*i,e.setHLine(a,h,h+l)})),this._labelContainer.visible){u?AP.START:AP.END;var p=u?"left":"right";h=u?h+l:e-n.gap+l,this._labels.forEach((function(e,n){var r=e.getBBox(),o=u?h:h-r.width;a=t.getRate(s[n])*i,e.layout(p).trans(o,a-r.height/2)}))}},e}(aL),lL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._measureLabelSize=function(t,e,i){var n=t.label,r=this.labelView();return n.setText(t.getLabel(n,t.options.value)),r.text=n.options.text,n.buildSvg(r,null,e,i,t,n._domain),NE(r.getBBox())},e.prototype._renderGauge=function(t,e){var i=this.model,n=tS(this._runValue,i.options.value);this._measureGauge(i,i.label,this.labelView(),n,i.isVertical(),t,e),this._renderValue()},e.prototype._renderValue=function(){var t=this.model,e=t.label,i=t.scale,n=this.labelView(),r=tS(this._runValue,t.options.value),o=Gx({},this._rBand);if(this._renderScale(o),this.background().setRect(o),o.height>0&&this._renderBand(t,o,r),"top"!==e._runPos&&"bottom"!==e._runPos||(this._rLabel.height=o.height),this._renderLabel(t,e,n,r),!this._vertical&&("left"===e._runPos||"right"===e._runPos)&&i.visible&&"opposite"===i.options.position){var s=n.getBBox();n.ty+s.height>this.height&&n.transY(Jx(0,this.height-s.height))}},e.prototype._measureGauge=function(t,e,i,n,r,o,s){var a=this._rBand=LE(0,0,o,s);if(this._vertical=t._group instanceof CA?t._group.options.vertical:r,e.visible){var u=e._runPos=iS(e.options.position,this._vertical?"top":"left"),l=e._runVert="top"===u||"bottom"===u,h=t._group?t._group.itemLabel.options.gap:e._runGap=e.getGap(l?s:o),p=l?o:e.getWidth(o),c=l?e.getHeight(s):s,f=l?o:e.getMaxWidth(o),_=l?e.getMaxHeight(s):s,d=this._rLabel=LE(0,0,o,s);i.setStyleOrClass(e._style),e.setText(t.getLabel(e,e.options.animatable?n:t.options.value)),i.text=e.options.text,e.buildSvg(i,null,tS(p,f),tS(c,_),t,e._domain);var y=i.getBBox();switch(l?(d.height=tS(c,y.height),a.height=Jx(0,a.height-(d.height+h))):(d.width=tS(p,y.width),this._wLabel=t._group?t._group._labelWidth:d.width,a.width=Jx(0,a.width-(this._wLabel+h))),u){case"top":a.y=d.height+h;break;case"bottom":d.y=a.height+h;break;case"right":d.x=a.width+h;break;default:a.x=this._wLabel+h}}else this._rLabel=null},e.prototype._renderLabel=function(t,e,i,n){if(i.visible){var r=this._rLabel,o=i.getBBox(),s=r.x,a=r.y;switch(e._runPos){case"top":case"bottom":s+=r.width/2;break;case"right":s=this.width-r.width,i.anchor=AP.START,a+=Jx(0,(r.height-o.height)/2);break;default:i.anchor=AP.END,s+=this._wLabel,a+=Jx(0,(r.height-o.height)/2)}i.trans(s,a)}},e.prototype._renderScale=function(t){var e,i,n=this.model,r=n.label,o=n.scale,s=this.scaleView(),a=this._vertical?t.height:t.width;if(o._vertical=this._vertical,o._reversed=n.options.reversed,isNaN(this._runValue)&&o.buildSteps(a,n.options.value),s.setVis(n.scaleVisible())){var u=s.measure(this.doc,o,t.width,t.height,1);this._vertical?(e=0,i=t.y,t.width=Jx(0,t.width-u.width),"opposite"===o.options.position?e=t.x+t.width:(r._runVert||(e=t.x),t.x+=u.width)):(e=t.x,t.height=Jx(0,t.height-u.height),"opposite"===o.options.position?r._runVert?(i=t.y,t.y+=u.height):(this._rLabel.y=t.y+=u.height,i=t.y-u.height):i=t.y+t.height),s.resizeByMeasured().layout().trans(e,i)}},e}(oL),hL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(oL),pL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._defaultCalss=function(){return e.GAUGE_GROUP_CLASS},e.prototype._doInitContents=function(t,e){e.add(this._gaugeContainer=new xP(t,"rct-gauge-group-container")),this._gaugeViews=this._createPool(this._gaugeContainer)},e.prototype._setChartOptions=function(e,i,n){t.prototype._setChartOptions.call(this,e,i,n),this._gaugeViews.forEach((function(t){return t._setChartOptions(e,i,n)}))},e.prototype._prepareGauge=function(t,e){this._gaugeViews.prepare(e.count()),this._doPrepareGauges(t,e,this._gaugeViews)},e.prototype._renderGauge=function(t,e){this._doRenderGauges(this._gaugeContainer,this._gaugeViews,t,e)},e.prototype._doPrepareGauges=function(t,e,i){i.forEach((function(i,n){i.prepareGauge(t,e.getVisible(n))}))},e.GAUGE_GROUP_CLASS="rct-gauge-group",e}(nL),cL=function(){function t(t,e){var i=this._createAnimation(t,e);window.Animation&&i instanceof Animation&&(i.addEventListener("finish",(function(){t._animationFinished(i)})),t._animationStarted(i))}return t.reveal=function(t,e){new _L(t,e)},t.grow=function(t,e){new yL(t,e)},t.spread=function(t,e){new gL(t,e)},t.fadeIn=function(t){new fL(t,{prop:"opacity",start:"0",end:"1"})},t}(),fL=function(t){function e(e,i){return t.call(this,e,i)||this}return Lx(e,t),e.prototype._createAnimation=function(t,e){var i={},n={};return i[e.prop]=e.start,n[e.prop]=e.end,t.dom.animate([i,n],{duration:ak.DURATION,fill:"none"})},e}(cL),_L=function(t){function e(e,i){return t.call(this,e,i)||this}return Lx(e,t),e.prototype._createAnimation=function(t,e){var i,n=this.$_clipRect(t);switch(e&&e.from){case"top":i=this.$_top(t,n,e);break;case"bottom":i=this.$_bottom(t,n,e);break;case"right":i=this.$_right(t,n,e);break;default:i=this.$_left(t,n,e)}return null==i||i.addEventListener("finish",(function(){n.dom.remove()})),i},e.prototype.$_aniOptions=function(t){return{duration:ak.DURATION,fill:"none"}},e.prototype.$_clipRect=function(t){var e;if(t.model.needClip(!1))e=t.clipRect(.1*-t.width,.1*-t.height,1.2*t.width,1.2*t.height);else{var i=t.control;e=t.model.chart.isInverted()?t.clipRect(-i.width(),.1*-t.height,2*i.width(),1.2*t.height):t.clipRect(.1*-t.width,-i.height(),1.2*t.width,2*i.height())}return e},e.prototype.$_left=function(t,e,i){return e.dom.firstElementChild.animate([{width:"0"},{width:VS(t.width)}],this.$_aniOptions(i))},e.prototype.$_right=function(t,e,i){return e.dom.firstElementChild.animate([{transform:"translateX(".concat(t.width,"px)")},{transform:""}],this.$_aniOptions(i))},e.prototype.$_top=function(t,e,i){return e.dom.firstElementChild.animate([{height:"0"},{height:VS(t.height)}],this.$_aniOptions(i))},e.prototype.$_bottom=function(t,e,i){return e.dom.firstElementChild.animate([{transform:"translateY(".concat(t.height,"px)")},{transform:""}],this.$_aniOptions(i))},e}(cL),dL=function(t){function e(e,i){var n=t.call(this)||this;return n._series=e,n.endHandler=i,n.start(),n}return Lx(e,t),e.prototype._canUpdate=function(){return this._series.parent instanceof wP},e.prototype._stop=function(){t.prototype._stop.call(this),this._series=null},e}(ak),yL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doUpdate=function(t){return this._series.setGrowRate(t),!0},e.prototype._doStop=function(){this._series.setGrowRate(NaN)},e}(dL),gL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doUpdate=function(t){return this._series.setPosRate(t),!0},e.prototype._doStop=function(){this._series.setPosRate(NaN)},e}(dL),vL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.duration=500,e}return Lx(e,t),e.prototype._doUpdate=function(t){return this._series.setPrevRate(t),!0},e.prototype._doStop=function(){this._series.setPrevRate(NaN)},e}(dL),mL=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.duration=n?200:100,o._sv=e,o._focused=n,o._marker=i,n||(o._marker.setBoolData(kL.DATA_UNHOVER,!0),o._marker.saveStyles(),e.setHoverStyle(o._marker)),o.start(r),o}return Lx(e,t),e.prototype._doStart=function(){this._marker.beginHover(this._sv,this._focused)},e.prototype._doUpdate=function(t){return!!this._marker.parent&&(this._marker.setHoverRate(this._sv,this._focused,t),!0)},e.prototype._doStop=function(){this._marker.setBoolData(kL.DATA_UNHOVER,!1),!this._focused&&this._marker.restoreStyles(),this._marker.setHoverRate(this._sv,this._focused,NaN),this._marker=null},e}(ak),bL=function(t){function e(e){return t.call(this,e,"rct-point-label")||this}return Lx(e,t),e}(jE),wL=function(t){function e(e){var i=t.call(this,e,"rct-point-labels")||this;return i._labels=[new CE(i,bL),new CE(i,bL)],i._maps=[],i.ignorePointer(),i}return Lx(e,t),e.prototype.clear=function(){this._labels[0].prepare(0),this._labels[1].prepare(0)},e.prototype.prepareLabel=function(t,e,i,n,r,o){var s=r.getPointText(n,o.options.text),a=o._style;e.point=n,e.setModel(t,o,null,null),e._text.internalClearStyleAndClass(),e._text.internalSetStyleOrClass(a),e._text.internalSetStyleOrClass(r.getPointLabelStyle(n)),s?(o.prepareRich(s),o.buildSvg(e._text,e._outline,NaN,NaN,o,o.getTextDomain(n))):e.setText(o.getText(o.getValue(n,i)))},e.prototype.prepare=function(t,e){var i=this,n=e.model,r=n.pointLabel;if(r.visible){this.setVis(!0);var o=n.pointLabelCount(),s=this._labels,a=n._getLabeledPoints(),u=this._maps,l=r._style;s[0].prepare(a.length),u[0]={},s[1].prepare(o>1?a.length:0),u[1]={},a.forEach((function(o,a){for(var l=0;l<o.labelCount();l++){var h=s[l].get(a);h.setVis(e.isPointVisible(o))&&(i.prepareLabel(t,h,l,o,n,r),u[l][o.pid]=h)}})),this.setStyleOrClass(l)}else this.clear()},e.prototype.get=function(t,e){var i=this._maps[e];return i&&i[t.pid]},e.prototype.removePoint=function(t,e){for(var i=0;i<2;i++){var n=this.get(t,i);if(n)return void this._labels[i].removeLater(n,e)}},e}(xP),xL=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._line=new kP(e)),i}return Lx(e,t),e.prototype.setLine=function(t){this._line.setPath(t)},e}(OE),SL=function(t){function e(e){var i=t.call(this,e,"rct-point-label-lines")||this;return i._lines=new CE(i,xL),i}return Lx(e,t),e.prototype.prepare=function(t){var e=this._lines,i=t.getPoints(),n=t.pointLabel,r=this._map={};n.visible?e.prepare(i.count).forEach((function(t,e){var n=i.get(e);t.visible=n.visible,r[n.pid]=t})):e.prepare(0)},e.prototype.get=function(t){return this._map[t.pid]},e}(OE),PL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inverted=!1,e}return Lx(e,t),e.prototype.invert=function(t,e){return t!==this.inverted&&((this.inverted=t)?this.setAttr("transform","translate(0,".concat(e,") rotate(90) scale(-1,1)")):this.setAttr("transform","")),this.inverted},e}(xP),VL={},kL=function(t){function e(e,i){var n=t.call(this,e,"rct-series "+i)||this;return n._simpleMode=!1,n._growRate=NaN,n._posRate=NaN,n._prevRate=NaN,n._animations=[],n._hoverAnis=[],n._hoverPts=[],n.add(n._pointContainer=new PL(e,"rct-series-points")),n._labelContainer=new wL(e),n}return Lx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){VL[t[0].type]=t[1]}))},e.prototype.clipInvertable=function(){return!0},e.prototype.getClipContainer=function(){return this._pointContainer},e.prototype.getClipContainer2=function(){return null},e.prototype.defaultAnimation=function(){return"reveal"},e.prototype.setGrowRate=function(t){isNaN(t)&&isNaN(this._growRate)||t===this._growRate||(this._growRate=t,isNaN(t)&&isNaN(this._posRate)&&isNaN(this._prevRate)?this.invalidate():this._doViewRateChanged(t))},e.prototype.setPosRate=function(t){isNaN(t)&&isNaN(this._posRate)||t===this._posRate||(this._posRate=t,isNaN(t)&&isNaN(this._growRate)&&isNaN(this._prevRate)?this.invalidate():this._doPosRateChanged(t))},e.prototype.setPrevRate=function(t){isNaN(t)&&isNaN(this._prevRate)||t===this._prevRate||(this._prevRate=t,isNaN(t)&&isNaN(this._growRate)&&isNaN(this._prevRate)?this.invalidate():this._doPrevRateChanged(t))},e.prototype.isPointVisible=function(t){return t.visible&&!t.isNull&&this.model.isPointLabelVisible(t)},e.prototype._doViewRateChanged=function(t){},e.prototype._doPosRateChanged=function(t){},e.prototype._doPrevRateChanged=function(t){},e.prototype._animationStarted=function(t){this._animations.push(t),this._labelContainer&&this._labelContainer.setVis(!1)},e.prototype._animationFinished=function(t){var e=this._animations.indexOf(t);e>=0&&this._animations.splice(e,1),this._invalidate()},e.prototype.pointByDom=function(t){return this._getPointPool().elementOf(t)},e.prototype.getPointView=function(t){return this._getPointPool().find((function(e){return e.point===t}))},e.prototype.clicked=function(t){var e=this.pointByDom(t);e&&!0!==this.model.pointClicked(e.point)&&this._doPointClicked(e)},e.prototype._doPointClicked=function(t){},e.prototype.prepareSeries=function(t,e){this.setModel(e),this.setData("index",e.seriesIndex%12),this.setData("pointcolors",e._colorByPoint()?"a":_S),this.internalClearStyleAndClass(),this.internalSetStyleOrClass(e._style),e._runColor&&this._setModelColor(e._runColor),e._calcedColor=getComputedStyle(this.dom)[this._legendColorProp()],this._visPoints=this._collectVisPoints(e),this._prepareSeries(t,e)},e.prototype._setModelColor=function(t){this.setColor(t)},e.prototype._legendColorProp=function(){return"fill"},e.prototype.needDecoreateLegend=function(){return!1},e.prototype.decoreateLegend=function(t){},e.prototype.afterLayout=function(){this._doAfterLayout()},e.prototype.setHoverStyle=function(t){t.internalImportantStylesOrClass(this.model.options.hoverStyle)},e.prototype.hoverPoints=function(t){var i=this,n="none"!==this.model.options.hoverEffect,r=this._hoverAnis,o=this._hoverPts,s=[],a=[];n&&(o.forEach((function(n){if(n instanceof wP&&(!t||t.indexOf(n)<0)){var o=r.find((function(t){return t._marker===n}));o&&o.stop(),n.setBoolData(e.DATA_HOVER,!1),n.restoreStyles(),n instanceof OL&&s.push(new mL(i,n,!1,(function(){n.endHover(i,!1)})))}})),t&&t.forEach((function(t){if(!t.point.isNull){var n=r.find((function(e){return e._marker===t}));n&&n.stop(),t instanceof wP&&(t.setBoolData(e.DATA_HOVER,!0),a.push(t),t.restoreStyles(),t.saveStyles(),i.setHoverStyle(t),t instanceof OL?s.push(new mL(i,t,!0,(function(){t.endHover(i,!0)}))):i instanceof BL&&i._getPointPool().front(t))}}))),r&&r.forEach((function(t,e){t._started&&s.push(t)})),this._hoverAnis=s,this._hoverPts=a,this.model.pointHovered(a&&a.length>0?a[0].point:null)},e.prototype._needFocusOrder=function(){return!0},e.prototype.getPointsAt=function(t,e){},e.prototype.getSiblings=function(t){return[t]},e.prototype.getSibling=function(t){},e.prototype._doAttached=function(t){this.control.loaded&&sk(this.dom,"opacity",0,1,500,null)},e.prototype._prepareStyleOrClass=function(t){},e.prototype._prepareViewRanges=function(t){},e.prototype._doMeasure=function(t,e,i,n,r){return this._animating()||this.setClip(),this.model._xAxisObj._seriesChanged&&this._savePrevs(),this._prepareViewRanges(e),!this._lazyPrepareLabels()&&this._labelContainer.prepare(t,this),e.trendline.visible?(this._trendLineView||this.add(this._trendLineView=new kP(t,"rct-series-trendline")),this._trendLineView.setVis(!0)):this._trendLineView&&this._trendLineView.setVis(!1),{width:i,height:n}},e.prototype._doLayout=function(){this._labelViews(),this._renderSeries(this.width,this.height),this._trendLineView&&this._trendLineView.visible&&this.$_renderTrendline(this._inverted),this._animatable&&!this._simpleMode&&this._runShowEffect(!this.control.loaded&&this.chart().loadAnimatable())},e.prototype._doAfterLayout=function(){var t=this;this.model._xAxisObj._seriesChanged&&new vL(this,(function(){t.invalidate()}))},e.prototype._collectVisPoints=function(t){return t._visPoints},e.prototype.$_setColorIndex=function(t,e){t.setData("index",e.index%12)},e.prototype._setPointColor=function(t,e){t.setColor(e)},e.prototype._setPointStyle=function(t,e,i,n){t.setAttrEx("aria-label",i.ariaHint()),this.$_setColorIndex(t,i),t.internalClearStyleAndClass(),e.options.pointStyle&&t.internalSetStyleOrClass(e.options.pointStyle),n&&n.forEach((function(e){return e&&t.internalSetStyleOrClass(e)})),i.color&&this._setPointColor(t,i.color),i.range&&(i.range.color&&this._setPointColor(t,i.range.color),i.range.style&&t.internalSetStyleOrClass(i.range.style));var r=e.getPointStyle(i);r&&t.internalSetStyleOrClass(r)},e.prototype._labelViews=function(){return this._labelContainer.setVis(this.model.pointLabel.visible&&!this._animating()),this._labelContainer.visible?this._labelContainer:_S},e.prototype._getGrowRate=function(){return tS(this._growRate,1)},e.prototype._animating=function(){return!isNaN(this._growRate)||!isNaN(this._posRate)||!isNaN(this._prevRate)||this._animations.length>0},e.prototype._lazyPrepareLabels=function(){return!1},e.prototype._getShowAnimation=function(){},e.prototype._runShowEffect=function(t){},e.prototype._drawSpline=function(t,e,i,n){var r=e;if(i<0&&(i=t.length-1),1!==Qx(i-e)){var o=.23,s={x:0,y:0},a={x:0,y:0},u={x:0,y:0},l={x:t[r+1].px-t[r].px,y:t[r+1].py-t[r].py},h={x:0,y:0},p={x:0,y:0},c={x:0,y:0},f={x:0,y:0},_=Math.sqrt(l.x*l.x+l.y*l.y);l.x/=_,l.y/=_;var d=t[r+1].px-t[r].px,y=t[r].px,g=t[r].py;for(++r;r!=i;r++){u.x=-l.x,u.y=-l.y,l.x=t[r+1].px-t[r].px,l.y=t[r+1].py-t[r].py,_=Math.sqrt(l.x*l.x+l.y*l.y),l.x/=_,l.y/=_,l.x<u.x?(f.x=u.x-l.x,f.y=u.y-l.y):(f.x=l.x-u.x,f.y=l.y-u.y);var v=Math.sqrt(f.x*f.x+f.y*f.y);f.x/=v,f.y/=v,u.y*l.y>=0&&(f={x:1,y:0}),s.x=-f.x*d*o,s.y=-f.y*d*o,r===e+1?n.quad(t[r].px+s.x,t[r].py+s.y,t[r].px,t[r].py):(h.x=y+a.x,h.y=g+a.y,p.x=t[r].px+s.x,p.y=t[r].py+s.y,c.x=(h.x+p.x)/2,c.y=(h.y+p.y)/2,n.quad(h.x,h.y,c.x,c.y),n.quad(p.x,p.y,t[r].px,t[r].py)),d=t[r+1].px-t[r].px,a.x=f.x*d*o,a.y=f.y*d*o,y=t[r].px,g=t[r].py}n.quad(y+a.x,g+a.y,t[r].px,t[r].py)}else n.line(t[r+1].px,t[r+1].py)},e.prototype.$_renderTrendline=function(t){var e=this.model,i=e.trendline,n=e._xAxisObj,r=e._yAxisObj,o=r._vlen,s=n._vlen,a=i._points.map((function(e){var i,a;return t?(a=s-n.getPos(s,e.x),i=r.getPos(o,e.y)):(i=n.getPos(s,e.x),a=o-r.getPos(o,e.y)),{x:i,y:a}}));if(this._trendLineView.setVis(a.length>1)){var u=new OC;u.move(a[0].x,a[0].y),i.isCurved()?this._drawSpline(a.map((function(t){return{px:t.x,py:t.y}})),0,-1,u):u.lines.apply(u,Ox([],Tx(a),!1)),this._trendLineView.setPath(u.end(!1))}},e.prototype._layoutLabel=function(t,e,i){var n=t.inverted,r=t.x,o=t.y,s=t.hPoint,a=t.labelView,u=t.labelOff;if(a.setVis(r>=0&&r<=e&&o>=0&&o<=i)){var l=t.reversed?s<=0:s<0,h=a.getBBox(),p=!0;switch(n?o-=h.height/2:r-=h.width/2,t.labelPos){case"inside":n?r-=(s+h.width)/2+(t.reversed?u:-u):o+=(s-h.height)/2+(t.reversed?u:-u);break;case"head":n?l?r+=h.width-u:r-=h.width+u:l?o-=h.height+u:o+=u;break;case"foot":n?r-=l?s+h.width+u:s-u:o+=l?s+u:s-h.height-u;break;default:n?l?r-=h.width+u:r+=u:l?o+=u:o-=h.height+u,p=!1}a.setContrast(p&&t.pointView.dom),a.layout(a.textAlign()).trans(r,o)}},e.prototype._clipRange=function(t,e,i,n,r,o){if(o){var s=t;t=e,e=s}var a="x"===i,u=a?this.model._xAxisObj:this.model._yAxisObj,l=u.options.reversed,h=u.getPos(a?t:e,Jx(u.axisMin(),n.fromValue)),p=u.getPos(a?t:e,Kx(u.axisMax(),n.toValue));o?a?l?r.setBounds(p,-e,Qx(p-h),e):r.setBounds(h,-e,Qx(p-h),e):r.setBounds(0,-Jx(h,p),t,Qx(p-h)):a?l?r.setBounds(p,0,Qx(p-h),e):r.setBounds(h,0,Qx(p-h),e):r.setBounds(0,e-Jx(h,p),t,Qx(p-h))},e.prototype._setFill=function(t,e){Bx(e)&&e[TS]?t.internalSetStyle(TS,e[TS]):jx(e)&&t.dom.classList.add(e)},e.prototype._savePrevs=function(){},e.POINT_CLASS="rct-point",e.DATA_HOVER="hover",e.DATA_UNHOVER="unhover",e.LEGEND_MARKER="rct-legend-item-marker",e}(FE),AL=function(t){function e(e){return t.call(this,e,kL.POINT_CLASS)||this}return Lx(e,t),e.prototype.savePrevs=function(){},e}(kP),CL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelViews=[],e}return Lx(e,t),e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}(AL),EL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.layout=function(t,e,i,n){this.x=t,this.setPath(pk.bar(t-this.wPoint/2,e,this.wPoint,-this.hPoint,i,n))},e}(CL),LL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.savePrevs=function(){this.wSave=this.width,this.xSave=this.x},e}(OE),NL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._labelInfo={},e}return Lx(e,t),e.prototype._prepareSeries=function(t,e){this._preparePoints(t,e,this._visPoints)},e.prototype._renderSeries=function(t,e){this._pointContainer.invert(this._inverted,e),this._layoutPoints(t,e)},e.prototype._runShowEffect=function(t){t&&cL.grow(this)},e.prototype._doViewRateChanged=function(t){this._layoutPoints(this.width,this.height)},e.prototype._savePrevs=function(){this._getPointPool().forEach((function(t){return t.savePrevs()}))},e.prototype.getPointsAt=function(t,e){return[]},e}(kL),ML=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doPrevRateChanged=function(t){0==t&&this._layoutPoints(this.width,this.height),this.invalidate()},e.prototype._layoutPoints=function(t,e){var i=this,n=this.model,r=this._inverted,o=this._getGrowRate(),s=this._prevRate,a=n.pointLabel,u=this._labelViews(),l=n._xAxisObj,h=n._yAxisObj,p=h.options.reversed,c=2*l.unitPad(),f=h.prev(r?t:e),_=l.prev(r?e:t),d=r?0:e,y=h.axisMin(),g=h.getPos(f,y),v=n.getBaseValue(h)||0,m=tS(h.getPos(f,Jx(y,v)),g),b=!isNaN(v),w=function(t){return h.getPos(f,t)},x=function(t){return l.getPos(_,t)},S=u&&Gx(this._labelInfo,{inverted:r,reversed:p,labelPos:n.getLabelPosition(a.options.position),labelOff:n.getLabelOff(a.getOffset())});this._getPointPool().forEach((function(a,h){var p=a.point;if(a.setVis(!p.isNull)){var f=l.getUnitLen(_,p.xValue)*(1-c),y=n.getPointWidth(f),g=w(p.yGroup),P=m;if(p.yGroup!=p.yValue){var V=v>p.yGroup,k=p.yGroup<0,A=p.yValue<0,C=V&&k&&!A||V&&!k&&!A||!V&&k&&A||!V&&!k&&A,E=p.yGroup-p.yValue*(C?-1:1);P=w(E)}var L=(g-P)*o,N=x(p.xValue)-f/2;if(isNaN(N)){var M=l.getUnitLen(_,p.xValue)*(1-c);N=x(p.xValue)-M/2}var T=d-g;isNaN(s+a.wSave)||(y=a.wSave+(y-a.wSave)*s),N+=n.getPointPos(f)+y/2,isNaN(s+a.xSave)||(N=a.xSave+(N-a.xSave)*s),p.xPos=N,p.yPos=T,i._layoutPoint(a,h,N,d-m*(1-o)-P*o,y,L),r&&(T=_-x(p.xValue)+f/2,N=d,p.yPos=T-=n.getPointPos(f)+y/2,p.xPos=N+=b?w(p.yGroup)*o:w(p.yGroup*o)),S&&(S.labelView=u.get(p,0))&&(S.pointView=a,S.x=N,S.y=T,S.wPoint=y,S.hPoint=L,i._layoutLabel(S,t,e))}}))},e}(NL),TL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doPrevRateChanged=function(t){0==t&&this._layoutPoints(this.width,this.height),this.invalidate()},e.prototype._layoutPoints=function(t,e){var i=this,n=this.model,r=n.chart.isInverted(),o=this._getGrowRate(),s=this._prevRate,a=n.pointLabel,u=this._labelViews(),l=n._xAxisObj,h=n._yAxisObj,p=2*l.unitPad(),c=r?t:e,f=r?e:t,_=r?0:e,d=u&&Gx(this._labelInfo,{inverted:r,labelPos:n.getLabelPosition(a.options.position),labelOff:n.getLabelOff(a.getOffset())});this._getPointPool().forEach((function(a,y){var g=a.point;if(a.setVis(!g.isNull)){var v=l.getUnitLen(f,g.xValue)*(1-p),m=n.getPointWidth(v),b=(h.getPos(c,g.yValue)-h.getPos(c,i._getLowValue(g)))*o,w=l.getPos(f,g.xValue)-v/2,x=_-h.getPos(c,g.yGroup)*o;isNaN(s+a.wSave)||(m=a.wSave+(m-a.wSave)*s),w+=n.getPointPos(v)+m/2,isNaN(s+a.xSave)||(w=a.xSave+(w-a.xSave)*s),g.xPos=w,g.yPos=x,i._layoutPoint(a,y,w,x,m,b),r&&(x=f-l.getPos(f,g.xValue)+v/2,w=_,g.yPos=x-=n.getPointPos(v)+m/2,g.xPos=w+=h.getPos(c,g.yGroup)*o),u&&(d.pointView=a,d.hPoint=b,d.x=w,d.y=x,(d.labelView=u.get(g,0))&&(d.hPoint=b,i._layoutLabel(d,t,e)),(d.labelView=u.get(g,1))&&(r?d.x-=b:d.y+=b,d.hPoint=-b,i._layoutLabel(d,t,e)))}}))},e}(NL),OL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.beginHover=function(t,e){},e.prototype.setHoverRate=function(t,e,i){},e.prototype.endHover=function(t,e){},e.prototype.distance=function(t,e,i){return this.point.isNull?Number.MAX_VALUE:Math.sqrt(Math.pow(this.point.xPos-e,2)+Math.pow(this.point.yPos-i,2))-t},e}(AL),RL=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._markers=n._createMarkers(n._pointContainer),n}var i;return Lx(e,t),e._createDrawers=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i={};return t.forEach((function(t){i[t]=function(e){return pk[t](0-e,0-e,2*e,2*e)}})),i},e.prototype.getHintDistance=function(){return this.model.options.hintDistance},e.prototype._getPointPool=function(){return this._markers},e.prototype.clipInvertable=function(){return!1},e.prototype.getPointsAt=function(t,e){return[]},e.prototype._getDrawer=function(t){return e._drawers[t]||e._drawers.circle},e.prototype._layoutLabelView=function(t,e,i,n,r,o){var s=t.getBBox();"auto"===e&&(e=this._getAutoPos(s.width>=2*n*.9)),t.setVis(null!=e)&&(r-=s.width/2,"inside"===e?t.trans(r,o-s.height/2):e&&t.trans(r,o-n-s.height-i))},i=e,e._drawers=Object.assign({circle:function(t){return pk.circle(0,0,t)}},i._createDrawers("square","diamond","triangle","itriangle","star","rectangle")),e}(kL),DL=function(t){function e(e){var i=t.call(this)||this;return i.series=e,i.duration=300,i}return Lx(e,t),e.prototype._doUpdate=function(t){return!!this.series&&(this.series._zombieRate=this.series._zombie.visible?t:1-t,this.series._resizeZombie(),!0)},e.prototype._doStop=function(){this.series&&(this.series._zombie=null,this.series._zombieAni=null,this.series.invalidate(),this.series=null)},e}(ak),BL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.togglePointVisible=function(t){var e;this._willZombie=t,t.visible||null===(e=this._labelContainer.get(t,0))||void 0===e||e.hide(200)},e.prototype.isPointVisible=function(e){return e===this._zombie||t.prototype.isPointVisible.call(this,e)},e.prototype._collectVisPoints=function(e){var i=t.prototype._collectVisPoints.call(this,e);return this._willZombie&&!this._willZombie.visible&&(i.push(this._willZombie),i=i.sort((function(t,e){return t.index-e.index}))),i},e.prototype._prepareSeries=function(t,e){var i;this._zombie&&(this._zombie=null,null===(i=this._zombieAni)||void 0===i||i.stop(),this._zombieAni=null),this._willZombie&&(this._zombie=this._willZombie,this._willZombie=null,this._zombieAni=new DL(this),this._zombieAni.start()),this.setData("pointcolors","f")},e.prototype._createPointLegendMarker=function(t,e,i){return ck.create(t,"rct-legend-item-marker",0,0,i,i,i/2)},e.prototype._preparePoint=function(t,e,i,n){i._legendMarker||i.setLegendMarker(this._createPointLegendMarker(t,i,nk.MARKER_SIZE)),this._setPointStyle(n,e,i),i._calcedColor=getComputedStyle(n.dom).fill},e}(kL),FL=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._imageView=new IE(i,!1)),n._imageView.onloadProxy=function(){var t=n._imageView.getBBox();n._deflatePaddings(t),n._imageView.resize(t.width,t.height)},n}return Lx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.getSize(i,n);return this._deflatePaddings(o),this._imageView.url=this.model.options.imageUrl,this._imageView.resize(o.width,o.height),NE(this._imageView.getBBox())},e.prototype._doLayout=function(e){this._imageView.trans(e.x+this._paddings.left,e.y+this._paddings.top),t.prototype._doLayout.call(this,e)},e.prototype._setRotation=function(t,e,i){this._imageView.setRotation(t,e,i)},e.CLASS_NAME="rct-image-annotation",e}(eL),IL=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._shapeView=new kP(i)),n}return Lx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.getSize(i,n);return this._deflatePaddings(o),pk.setShape(this._shapeView,e.getShape(),o.width/2,o.height/2),o},e.prototype._doLayout=function(e){this._shapeView.trans(this._paddings.left+e.x,this._paddings.top+e.y),t.prototype._doLayout.call(this,e)},e.prototype._setRotation=function(t,e,i){this._shapeView.setRotation(t,e,i)},e.CLASS_NAME="rct-shape-annotation",e}(eL),jL=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._textView=new TP(i)),n._textView.anchor=AP.START,n._richText=new WP,n}return Lx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.options,s=e.getSize(i,n),a=this._textView;o.writingMode&&this._textView.setStyle("writingMode",o.writingMode),o.textOrientation&&this._textView.setStyle("textOrientation",o.textOrientation),this._deflatePaddings(s),this._richText.setFormat(o.text),this._richText.build(a,i,n,null,e._domain);var u=NE(this._textView.getBBox());return{width:tS(s.width,u.width),height:tS(s.height,u.height)}},e.prototype._doLayout=function(e){this._richText.layout(this._textView,this.textAlign(),this.width,this.height,this._paddings),this._textView.trans(e.x+this._textView.tx,e.y+this._textView.ty),t.prototype._doLayout.call(this,e)},e.prototype._setRotation=function(t,e,i){this._textView.setRotation(t,e,i)},e.CLASS_NAME="rct-text-annotation",e}(eL),zL=function(t){function e(e){var i=t.call(this,e,"rct-linear-gauge-band")||this;return i._thick=0,i._gap=0,i._labelGap=3,i._barViews=new CE(i,ck),i.add(i._labelContainer=new xP(e,"rct-linear-gauge-band-tick-labels")),i._labels=new CE(i._labelContainer,TP),i}return Lx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.gauge,s=this._vertical=o instanceof VA?o.isVertical():o.options.vertical,a=e.options.position,u=this._thick=e.getThickness(s?i:n)+("inside"===a?0:this._gap=tS(e.options.gap,0)),l=s?u:i,h=s?n:u,p=this._ranges=e.getRanges();if(this._labelContainer.setVis(e.tickLabel.visible&&p.length>0)){var c=[p[0].fromValue].concat(p.map((function(t){return t.toValue})));if(this._labelContainer.setStyleOrClass(e.tickLabel._style),this._labels.prepare(p.length+1),s){var f=0;this._labels.forEach((function(t,e){t.text=String(c[e]),f=Jx(t.getBBox().width)})),l+=f+this._labelGap}else{var _=0;this._labels.forEach((function(t,e){t.text=String(c[e]),_=Jx(t.getBBox().height)})),h+=_}}return{width:l,height:h}},e.prototype._doLayout=function(t){var e=this.model,i=e.gauge,n=i.scale,r=n._max-n._min;this._labelContainer.setVis(this.$_layoutBars(i,r,this._ranges)&&this._labelContainer.visible&&"inside"!==e.options.position)&&this.$_layoutLabels(i,r,this._ranges)},e.prototype.$_layoutBars=function(t,e,i){var n=this;if(this._barViews.prepare(i.length),!this._barViews.isEmpty&&e>0){var r=this._vertical,o="inside"===this.model.options.position,s="opposite"===this.model.options.position,a=this.width,u=this.height,l=r?u:a,h=this._thick,p=0;return this._barViews.prepare(i.length).forEach((function(t,c){var f=i[c],_=l*(f.toValue-f.fromValue)/e;if(r){var d=o||s?0:a-h;t.setBounds(d,u-p-_,h,_)}else{var y=s?u-h:0;t.setBounds(p,y,_,n._thick)}t.internalClearStyleAndClass(),t.setFill(f.color),f.style&&t.addStyleOrClass(f.style),p+=_})),!0}},e.prototype.$_layoutLabels=function(t,e,i){var n="opposite"===this.model.options.position;if(this._vertical){var r=this.height,o=n?AP.START:AP.END,s=n?this._thick+this._labelGap:this.width-this._thick-this._labelGap;(l=this._labels.get(0)).anchor=o,l.trans(s,r-l.getBBox().height/2);for(var a=1;a<=i.length;a++){var u=r-r*i[a-1].toValue/e;(l=this._labels.get(a)).anchor=o,l.trans(s,u-l.getBBox().height/2)}}else{var l;r=this.width,s=n?0:this._thick;(l=this._labels.get(0)).trans(0,s);for(a=1;a<=i.length;a++){var h=r*i[a-1].toValue/e;this._labels.get(a).trans(h,s)}}},e}(RE),$L=function(t){function e(e){return t.call(this,e,"rct-linear-gauge")||this}return Lx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._background=new ck(t,"rct-linear-gauge-background")),e.add(this._bandView=new zL(t)),e.add(this._scaleView=new uL(t)),e.add(this._valueView=new ck(t,"rct-linear-gauge-value")),e.add(this._labelView=new TP(t))},e.prototype._backgroundView=function(){return this._background},e.prototype.labelView=function(){return this._labelView},e.prototype.scaleView=function(){return this._scaleView},e.prototype.background=function(){return this._background},e.prototype._prepareGauge=function(t,e){},e.prototype._renderScale=function(e){var i=this.model.band,n=this._bandView;if(t.prototype._renderScale.call(this,e),n.setVis(i.visible)){var r=+i.options.gap||0,o=n.measure(this.doc,i,e.width,e.height,1);n.resizeByMeasured().layout(),this._vertical?"inside"===i.options.position?n.trans(e.x,e.y):"opposite"===i.options.position?(n.trans(e.x+e.width-o.width,e.y),e.width-=o.width+r):(n.trans(e.x,e.y),e.width-=o.width+r,e.x+=o.width+r):"inside"===i.options.position?n.trans(e.x,e.y):"opposite"===i.options.position?(n.trans(e.x,e.y),e.height-=o.height+r,e.y+=o.height+r):(n.trans(e.x,e.y+e.height-o.height),e.height-=o.height+r)}},e.prototype._renderBand=function(t,e,i){var n=this._valueView,r=t.options.reversed,o=t.valueBar,s=t._group?t._group.scale:t.scale;if(n.setVis(!ME(e)&&o.visible&&!s.isEmpty()&&!isNaN(t.options.value)))if(n.setStyleOrClass(o._style),n.internalSetStyleOrClass(o.getStyle(t,i)),this._vertical){var a=e.height*s.getRate(i),u=r?e.y:e.y+e.height-a;n.setBounds(e.x,u,e.width,a)}else{var l=e.width*s.getRate(i),h=r?e.x+e.width-l:e.x;n.setBounds(h,e.y,l,e.height)}},e}(lL),HL=function(t){function e(e,i){return t.call(this,e,i)||this}return Lx(e,t),e.prototype._doInitContents=function(e,i){t.prototype._doInitContents.call(this,e,i),i.insertFirst(this._scaleView=new uL(e)),i.insertFirst(this._textView=new TP(e,"rct-linear-gauge-group-label"))},e.prototype._prepareGauge=function(e,i){this._textView.setVis(i.label.visible)&&this._textView.setStyleOrClass(i.label._style),this._scaleView.setVis(i.scale.visible)&&this._scaleView.setStyleOrClass(i.scale._style),t.prototype._prepareGauge.call(this,e,i)},e.prototype._doRenderGauges=function(t,e,i,n){var r=this.model,o=r.options,s=this._textView,a=LE(0,0,i,n);if(s.visible){s.text=r.label.options.text,r.label.buildSvg(s,null,NaN,NaN,r,null);var u=this._textView.getBBox().height+r.label.getGap(n);a.y+=u,a.height-=u,s.trans(this.width/2,0)}r._labelWidth=r._labelHeight=0,this._gaugeViews.forEach((function(t,e){var o=t._measureLabelSize(r.get(e),i,n);r._labelWidth=Jx(r._labelWidth,o.width),r._labelHeight=Jx(r._labelHeight,o.height)}));var l,h=(l=a)&&Gx({},l),p=r.itemLabel.options.gap;o.vertical?(h.height-=r._labelHeight+p,r.itemLabel.options.opposite||(h.y+=r._labelHeight+p)):(h.width-=r._labelWidth+p,r.itemLabel.options.opposite||(h.x+=r._labelWidth+p)),this._renderScale(r,a,h),o.vertical?this.$_layoutVert(this.doc,r,e,a):this.$_layoutHorz(this.doc,r,e,a)},e.prototype._renderScale=function(t,e,i){var n,r,o=this._scaleView,s=t.scale,a=t.options.vertical,u=a?e.height:e.width,l=[];if(this._gaugeViews.forEach((function(e,i){l.push(tS(e._runValue,t.get(i).options.value))})),s.buildGroupSteps(u,l),s._vertical=a,o.setVis(s.visible)){var h=o.measure(this.doc,s,i.width,i.height,1);if(a){var p=h.width;i.width-=p,e.width-=p,r=i.y,"opposite"===s.options.position?n=i.x+i.width:(n=i.x,i.x+=p,e.x+=p)}else{var c=h.height;i.height-=c,e.height-=c,n=i.x,"opposite"===s.options.position?(r=i.y,i.y+=c,e.y+=c):r=i.y+i.height}o.resizeByMeasured().layout().trans(n,r)}},e.prototype.$_layoutVert=function(t,e,i,n){var r=n.height,o=(n.width-e.options.itemGap*(i.count-1))/i.count,s=n.y,a=n.x;i.forEach((function(i,n){i.measure(t,e.get(n),o,r,0),i.resize(o,r),i.layout(),i.trans(a,s),a+=o+e.options.itemGap}))},e.prototype.$_layoutHorz=function(t,e,i,n){var r=e.options.itemGap,o=n.width,s=(n.height-r*(i.count-1))/i.count,a=n.x,u=n.y;i.forEach((function(i,n){i.measure(t,e.get(n),o,s,0),i.resize(o,s),i.layout(),i.trans(a,u),u+=s+r}))},e}(pL),GL=function(t){function e(e){return t.call(this,e,"rct-linear-gauge-group")||this}return Lx(e,t),e.prototype._doInitContents=function(e,i){t.prototype._doInitContents.call(this,e,i),i.insertChild(this._bandView=new zL(e),this._scaleView)},e.prototype._createPool=function(t){return new CE(t,$L)},e.prototype._renderScale=function(e,i,n){t.prototype._renderScale.call(this,e,i,n);var r,o,s=this._bandView,a=e.band;if(s.setVis(a.visible)){var u=+a.options.gap||0,l=s.measure(this.doc,a,n.width,n.height,1);if(e.options.vertical){var h=l.width+u;n.width-=h,i.width-=h,o=n.y,"opposite"===a.options.position?r=n.x+n.width+u:(r=n.x,n.x+=h,i.x+=h)}else{var p=l.height+u;n.height-=p,i.height-=p,r=n.x,"opposite"===a.options.position?(o=n.y,n.y+=p,i.y+=p):o=n.y+n.height+u}s.resizeByMeasured().layout().trans(r,o)}},e}(HL),WL=function(t){function e(e){return t.call(this,e,"rct-bullet-gage")||this}return Lx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._background=new ck(t,"rct-bullet-gauge-background")),e.add(this._barContainer=new xP(t,void 0)),this._barViews=new CE(this._barContainer,ck),e.add(this._valueView=new ck(t,"rct-bullet-gauge-value")),e.add(this._targetView=new ck(t,"rct-bullet-gauge-target")),e.add(this._scaleView=new uL(t)),e.add(this._labelView=new TP(t))},e.prototype._backgroundView=function(){return this._background},e.prototype.labelView=function(){return this._labelView},e.prototype.scaleView=function(){return this._scaleView},e.prototype.background=function(){return this._background},e.prototype._prepareGauge=function(t,e){},e.prototype._renderBand=function(t,e,i){var n=t.options,r=t._group,o=t.options.reversed,s=this._vertical,a=r?r.scale:t.scale,u=this._valueView,l=this._targetView;if(this._barContainer.setVis(!ME(e)&&!a.isEmpty())){var h=t.getRanges(a._min,a._max,!1)||(null==r?void 0:r.getRanges(a._min,a._max,!1));h&&(this._barContainer.setRect(e),this._barViews.prepare(h.length),s?this._barViews.forEach((function(t,i){var n=h[i],r=e.height*a.getRate(n.toValue-n.fromValue),s=e.height*a.getRate(n.fromValue);t.setBounds(0,o?s:e.height-s-r,e.width,r),t.internalClearStyleAndClass(),t.setFill(n.color),n.style&&t.addStyleOrClass(n.style)})):this._barViews.forEach((function(t,i){var n=h[i],r=e.width*a.getRate(n.toValue-n.fromValue),s=e.width*a.getRate(n.fromValue);t.setBounds(o?e.width-r-s:s,0,r,e.height),t.internalClearStyleAndClass(),t.setFill(n.color),n.style&&t.addStyleOrClass(n.style)})))}if(u.setVis(!a.isEmpty()&&!isNaN(i)))if(u.setStyleOrClass(t.valueBar._style),i<n.targetValue&&t.valueBar.options.belowStyle&&u.internalSetStyleOrClass(t.valueBar.options.belowStyle),u.internalSetStyleOrClass(t.valueBar.getStyle(t,i)),s){var p=e.height*a.getRate(i),c=o?e.y:e.y+e.height-p;u.setBounds(e.x+e.width/3,c,e.width/3,p)}else{var f=e.width*a.getRate(i),_=o?e.x+e.width-f:e.x;u.setBounds(_,e.y+e.height/3,f,e.height/3)}if(l.setVis(!a.isEmpty()&&!isNaN(n.targetValue)))if(l.setStyleOrClass(t.targetBar._style),s&&e.width>10){c=e.height*a.getRate(n.targetValue);c=o?e.y+c:e.y+e.height-c,l.setBounds(e.x+5,c-1,e.width-10,3)}else if(!s&&e.height>10){_=e.width*a.getRate(n.targetValue);_=o?e.x+e.width-_:e.x+_,l.setBounds(_-1,e.y+5,3,e.height-10)}},e}(lL),YL=function(t){function e(e){return t.call(this,e,"rct-bullet-gauge-group")||this}return Lx(e,t),e.prototype._createPool=function(t){return new CE(t,WL)},e}(HL),XL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.setExtents=function(t,e){this._center=t,this._exts=e},e.prototype._createLine=function(t,e){return new KE(t,e)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._steps.length-(360===e.gauge.options.sweepAngle?1:0);return this._line.setVis(e.line.visible)&&this._line.internalSetStyleOrClass(e.line._style),this._tickContainer.setVis(e.tick.visible)&&(this._tickContainer.internalSetStyleOrClass(e.tick._style),this._ticks.prepare(o)),this._labelContainer.setVis(e.label.visible)&&(this._labelContainer.internalSetStyleOrClass(e.label._style),this._labels.prepare(o,(function(t){}))),{width:i,height:n}},e.prototype._doLayout=function(t){var e,i,n,r,o=this.model,s=o._steps,a=o.gauge,u=a.options,l="opposite"===o.options.position?-1:1,h=a._props,p=this._center.x,c=this._center.y,f=this._exts.scale,_=f+this.model.tick.options.length*l,d=h._sweepRad,y=h._startRad,g=u.maxValue-u.minValue,v=u.clockwise;if(this._line.visible&&this._line.setArc(p,c,f,y,v?d:-d,v),this._tickContainer.visible&&this._ticks.forEach((function(t,a,u){var l=o.getRate(s[a])*(v?d:-d)+y;e=p+Xx(l)*f,i=c+Ux(l)*f,n=p+Xx(l)*_,r=c+Ux(l)*_,t.setLine(e,i,n,r)})),this._labelContainer.visible){this._labels.get(0).setText(String(u.maxValue));var m=_+.2*this._labels.get(0).getBBox().height*l;this._labels.forEach((function(t,e,i){var a=o.getRate(s[e])*(v?d:-d)+y;t.setText(String(xS(u.minValue+o.getRate(s[e])*g)));var h=t.getBBox();n=p+Xx(a)*(m+h.width/2*l)-h.width/2,r=c+Ux(a)*(m+h.height/2*l)-h.height/2,t.trans(n,r)}))}},e}(aL),UL=function(t){function e(e){var i=t.call(this,e,"rct-circle-gauge-band")||this;return i._sectorViews=new CE(i,QE),i.add(i._labelContainer=new xP(e,"rct-circle-gauge-band-tick-labels")),i._labels=new CE(i._labelContainer,TP),i}return Lx(e,t),e.prototype.setExtends=function(t,e){this._center=t,this._exts=e},e.prototype._doLayout=function(t){var e=this.model,i=e.gauge,n=i.scale,r=i._props,o=this._center.x,s=this._center.y,a=this._exts.band,u=i.options.clockwise,l=1-this._exts.bandThick/a,h=e.getRanges(),p=r._sweepRad;i.options.maxValue,i.options.minValue;var c=r._startRad;this._sectorViews.prepare(h.length).forEach((function(t,e){var i=n.getRate(h[e].toValue-h[e].fromValue)*p;t.setSector({cx:o,cy:s,rx:a,ry:a,innerRadius:l,start:c,angle:i,clockwise:u}),t.internalClearStyleAndClass(),t.setFill(h[e].color),h[e].style&&t.addStyleOrClass(h[e].style),c+=u?i:-i}))},e}(RE),qL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.render=function(t,e){var i=t.getRadius(e);return i!==this._radius&&(this._radius=i,this.setPath((new OC).circle(0,0,i).end())),this.internalSetStyleOrClass(t._style),this},e}(kP),ZL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.render=function(t,e){var i=t.getExtents(e);if(i.radius!==this._radius||i.length!==this._length||i.offset!==this._offset){var n=this._radius=i.radius,r=this._offset=i.offset;if(this._length=i.length,this._radius>0&&this._length>0){var o=new OC;o.move(-n,r).line(0,-this._length+r).line(n,r),this.setPath(o.end())}else this.setPath("")}return this.internalSetStyleOrClass(t._style),this},e}(kP),KL=function(t){function e(e){return t.call(this,e,"rct-circle-gauge")||this}return Lx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._rimView=new QE(t,"rct-circle-gauge-rim")),e.add(this._valueView=new QE(t,"rct-circle-gauge-value")),e.add(this._innerView=new QE(t,"rct-circle-gauge-inner")),e.add(this._textView=new TP(t,"rct-circle-gauge-label")),e.add(this._handContainer=new xP(t,void 0)),e.add(this._scaleView=new XL(t)),e.add(this._bandView=new UL(t))},e.prototype._backgroundView=function(){return this._rimView},e.prototype._prepareGauge=function(t,e){this._rimView.setVis(e.rim.visible),this._scaleView.setVis(e.scale.visible),this._bandView.setVis(e.band.visible),this._valueView.setVis(e.valueRim.visible),e.hand.visible?(this._handView||this._handContainer.add(this._handView=new ZL(t,"rct-circle-gauge-hand")),this._handView.visible=!0):this._handView&&(this._handView.visible=!1),e.pin.visible?(this._pinView||this._handContainer.add(this._pinView=new qL(t,"rct-circle-gauge-pin")),this._pinView.visible=!0):this._pinView&&(this._pinView.visible=!1),this._textView.setVis(e.labelVisible())&&this._textView.setStyleOrClass(e.label._style)},e.prototype._renderGauge=function(t,e){var i=this.model,n=i.getCenter(t,e),r=i.getExtents(Kx(t,e));this.$_renderBackground(i,n,r),this._renderValue()},e.prototype._renderValue=function(){var t=this.model,e=t.options,i=t.scale,n=t.getProps(),r=this._getValue(t),o=i.getRate(tS(r,0)),s=this._center,a=this._exts,u=t.valueRim.getThickness(a.radiusThick),l=this._textView;if(this._valueView.visible){var h=t.valueRim,p=h.options,c=h.getRange(e,r),f=a.value+(p.stroked?0:u/2),_=this._valueView;_.setStyleOrClass(h._style),c&&(_.setStyle(p.stroked?"stroke":"fill",c.color),c.style&&_.addStyleOrClass(c.style)),p.stroked&&(_.setFill("none"),_.setStyle("strokeWidth",VS(u))),_.setBoolData("stroked",p.stroked),_.setSectorEx({cx:s.x,cy:s.y,rx:f,ry:f,innerRadius:(f-u)/f,start:n._startRad,angle:n._sweepRad*o,clockwise:e.clockwise},p.stroked)}if(this._handView){var d=(n._handRad+n._sweepRad*o)*mS;this._handView.render(t.hand,a.radius).transp(s).rotate(t.options.clockwise?d:-d)}if(l.visible){var y=t.label;if(y.setText(t.getLabel(y,y.options.animatable?r:e.value)),l.text=y.options.text,y.buildSvg(l,null,NaN,NaN,t,y._domain),l.setBoolData("grouped",!!t._group),t._group)this.$_layoutGroupedLabel(t,l,a);else{var g=l.getBBox(),v=y.getOffset(this.width,this.height);l.trans(s.x+v.x,s.y-g.height/2+v.y)}}},e.prototype.$_renderBackground=function(t,e,i){var n=t.getProps(),r=n._startRad;this._center=e,this._exts=i,t.scale.buildSteps(i.scale*n._sweepRad,NaN),this._rimView.visible&&(this._rimView.internalSetStyleOrClass(t.rim._style),this._rimView.setSector({cx:e.x,cy:e.y,rx:i.radius,ry:i.radius,innerRadius:1-i.radiusThick/i.radius,start:r,angle:n._sweepRad,clockwise:t.options.clockwise})),this._scaleView.visible&&(this._scaleView.setStyleOrClass(t.scale._style),this._scaleView.measure(this.doc,t.scale,this.width,this.height,0),this._scaleView.setExtents(e,i),this._scaleView.layout()),this._bandView.visible&&(this._bandView.setStyleOrClass(t.band._style),this._bandView.measure(this.doc,t.band,this.width,this.height,0),this._bandView.setExtends(e,i),this._bandView.layout()),this._innerView.setStyleOrClass(t.options.innerStyle);var o=i.inner,s=getComputedStyle(this._innerView.dom),a=parseFloat(s.strokeWidth);a>1&&(o-=a/2),this._innerView.setSector({cx:e.x,cy:e.y,rx:o,ry:o,innerRadius:0,start:0,angle:2*Math.PI,clockwise:!0}),this._pinView&&this._pinView.render(t.pin,o).trans(e.x,e.y)},e.prototype.$_layoutGroupedLabel=function(t,e,i){var n=e.getBBox(),r=this._rimView.getBBox(),o=+t._group.options.labelGap||0;e.anchor=AP.END,e.trans(r.x+r.width/2-o,r.y+(i.radius-i.inner-n.height)/2)},e}(hL),JL=function(t){function e(e){return t.call(this,e,"rct-circle-gauge-group")||this}return Lx(e,t),e.prototype._createPool=function(t){return new CE(t,KL)},e.prototype._doRenderGauges=function(t,e,i,n){var r=this.doc,o=this.model,s=o.props.getCenter(i,n),a=o.props.getExtents(Kx(i,n));o.setChildExtents(a),i=n=2*a.radius,e.forEach((function(t,e){t.measure(r,o.getVisible(e),i,n,0),t.resize(i,n),t.layout()})),t.trans(s.x-a.radius,s.y-a.radius)},e}(pL),QL=function(t){function e(e){var i=t.call(this)||this;return i.view=e,i}return Lx(e,t),e.prototype._doUpdate=function(t){return this.view._secRate=t,this.view.$_renderHands(this.view.model,this.view._exts),!0},e}(ak),tN=function(t){function e(e){var i=t.call(this,e,"rct-clock-gauge")||this;return i._rimThick=0,i._secRate=1,i}return Lx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._faceView=new ZE(t,"rct-clock-gauge-face")),e.add(this._rimView=new QE(t,"rct-clock-gauge-rim")),e.add(this._labelView=new TP(t,"rct-clock-gauge-label")),this._labelView.layout=CP.MIDDLE,e.add(this._tickContainer=new xP(t,"rct-clock-gauge-ticks")),e.add(this._tickLabelContainer=new xP(t,"rct-clock-gauge-tick-labels")),e.add(this._hourView=new kP(t,"rct-clock-gauge-hour")),e.add(this._minuteView=new kP(t,"rct-clock-gauge-minute")),e.add(this._secondView=new kP(t,"rct-clock-gauge-second")),e.add(this._pinView=new ZE(t,"rct-clock-gauge-pin")),this._tickViews=new CE(this._tickContainer,hC,"rct-clock-gauge-tick"),this._minorTickViews=new CE(this._tickContainer,hC,"rct-clock-gauge-minor-tick"),this._tickLabelViews=new CE(this._tickLabelContainer,TP,"rct-clock-gauge-tick-label")},e.prototype._prepareGauge=function(t,e){this._tickViews.prepare(e.tick.visible?12:0),this._minorTickViews.prepare(e.minorTick.visible?48:0);var i=Math.round(12/Jx(1,Math.floor(e.tickLabel.options.step)||1));this._tickLabelViews.prepare(e.tickLabel.visible?i:0,(function(t){t.layout=CP.MIDDLE}))},e.prototype._renderGauge=function(t,e){var i=this,n=this.model,r=this._exts=n.getExtents(t,e);this._secRate=1,this.$_renderFace(n,r),this.$_renderHands(n,r),n.options.active&&!n.getTime()?this._runner||(this._runner=setInterval((function(){var t=i._prevSec;i.$_renderHands(i.model,i._exts),Qx(t-i._prevSec)>=1&&i._secondView.visible&&n.chart.animatable()&&n.secondHand.options.animatable&&i.$_moveSecond(t)}),1e3)):this._runner&&(clearInterval(this._runner),this._runner=void 0)},e.prototype.$_renderFace=function(t,e){var i=this._labelView,n=e.cx,r=e.cy,o=e.rd,s=this._rimThick=this._rimView.visible?this.model.rim.getThickness(o):0;this._faceView.setCircle(n,r,o),this._rimView.visible&&(this._rimView.internalSetStyleOrClass(t.rim._style),this._rimView.setSector({cx:n,cy:r,rx:o,ry:o,innerRadius:1-s/o,start:0,angle:2*Math.PI,clockwise:!0}));var a=o-s,u=a-this.model.tick.length,l=gS,h=yS/12;if(this._tickViews.forEach((function(t,e){t.setLine(n+Xx(l)*a,r+Ux(l)*a,n+Xx(l)*u,r+Ux(l)*u),l+=h})),!this._minorTickViews.isEmpty){var p=0;u=a-this.model.minorTick.length,l=gS,h=yS/60,this._minorTickViews.forEach((function(t){p%5==0&&(l+=h,p++),t.setLine(n+Xx(l)*a,r+Ux(l)*a,n+Xx(l)*u,r+Ux(l)*u),l+=h,p++}))}if(!this._tickLabelViews.isEmpty){var c=12/this._tickLabelViews.count,f=yS/12*c;l=gS,this._tickLabelViews.get(0).text="12",u=a-(this.model.tick.length+this.model.tickLabel.options.offset||0),u-=.5*this._tickLabelViews.get(0).getBBox().height,this._tickLabelViews.forEach((function(t,e,i){t.text=String(0===e?12:e*c),t.trans(n+Xx(l)*u,r+Ux(l)*u),l+=f}))}this._pinView.setCircle(n,r,t.pin.raidus),i.setVis(t.label.visible)&&(i.internalSetStyleOrClass(t.label._style),t.label.buildSvg(i,null,NaN,NaN,null,null),"bottom"===t.label.options.position?i.trans(n,r+u/2):i.trans(n,r-u/2))},e.prototype.$_getNow=function(){var t=this.model.options.timezone,e=this.model.getTime()||new Date;if(!isNaN(t)){var i=e.getMinutes()+(e.getTimezoneOffset()+t);e.setMinutes(i)}return e},e.prototype.$_renderHands=function(t,e){var i,n,r,o,s=this.$_getNow(),a=s.getHours(),u=s.getMinutes(),l=s.getSeconds(),h=e.cx,p=e.cy,c=e.rd,f=new OC;i=t.hourHand,(n=this._hourView).setVis(i.visible)&&(o=yS*(a/12+u/60/12+l/60/60/12),r=i.getLength(c-this._rimThick),f.rect(-i.options.thickness/2,-r,i.options.thickness,r),n.internalSetStyleOrClass(i._style),n.setPath(f.close(!0)).trans(h,p).rotate(o*mS)),i=t.minuteHand,(n=this._minuteView).setVis(i.visible)&&(o=yS*(u/60+l/60/60),r=i.getLength(c-this._rimThick),f.rect(-i.options.thickness/2,-r,i.options.thickness,r),n.internalSetStyleOrClass(i._style),n.setPath(f.close(!0)).trans(h,p).rotate(o*mS)),i=t.secondHand,(n=this._secondView).setVis(i.visible)&&(o=this._secRate<1?yS*(this._aniSec+this._secRate)/60:yS*l/60,r=i.getLength(c-this._rimThick),f.rect(-i.options.thickness/2,-r,i.options.thickness,r),n.internalSetStyleOrClass(i._style),n.setPath(f.close(!0)).trans(h,p).rotate(o*mS),this._prevSec=l)},e.prototype.$_moveSecond=function(t){if(!isNaN(t)){this._aniSec=t;var e=new QL(this);e.duration=this.model.secondHand.options.duration||200,e.start()}},e}(nL),eN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.getTooltipPos=function(){return{x:this.point.xPos,y:this.point.yPos}},e.prototype.beginHover=function(t,e){this._saveRadius=this._radius},e.prototype.setHoverRate=function(t,e,i){var n=this.point,r=(+t.model.marker.options.hoverScale||1.8)-1,o=this._radius;e?isNaN(i)||(o=this._radius=this._saveRadius*(1+i*r)):o=this._radius=this._saveRadius*(1+r-(isNaN(i)?r:r*i)),pk.setShape(this,t.model.getShape(n),o,o),this.index>0?this.trans(n.px2-o,n.py2-o):this.trans(n.xPos-o,n.yPos-o)},e.prototype.endHover=function(t,e){this._radius=this._saveRadius},e.prototype.distance=function(t,e,i){var n=0===this.index?this.point.xPos:this.point.px2,r=0===this.index?this.point.yPos:this.point.py2;return this.point.isNull?Number.MAX_VALUE:Math.sqrt(Math.pow(n-e,2)+Math.pow(r-i,2))-t},e}(OL),iN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(PL),nN=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._needBelow=!1,n._rangeClips=[],n.insertFirst(n._lineContainer=new iN(e,"rct-line-series-lines")),n._lineContainer.add(n._line=new kP(e,"rct-line-series-line")),n._markers=new CE(n._pointContainer,eN),n}return Lx(e,t),e.prototype.getClipContainer=function(){return this._lineContainer},e.prototype._getPointPool=function(){return this._markers},e.prototype.needDecoreateLegend=function(){return!0},e.prototype.decoreateLegend=function(t){var e=getComputedStyle(this._line.dom),i=t._marker;i._line.setStyle("strokeWidth",e.strokeWidth),i._shape?(i._marker.internalSetStyles(this.model.marker._style),i._line.setStyle("strokeDasharray","")):i._line.setStyle("strokeDasharray",e.strokeDasharray)},e.prototype._prepareSeries=function(t,e){e instanceof vC&&this._prepareBelow(e),!this._simpleMode&&this.$_prepareMarkers(e,this._visPoints)},e.prototype._prepareViewRanges=function(e){t.prototype._prepareViewRanges.call(this,e),this._prepareRanges(e,e._runRanges)},e.prototype._renderSeries=function(t,e){this._lineContainer.invert(this._inverted,e),this._layoutMarkers(this._visPoints,t,e),this.model.prepareLines(this._visPoints)},e.prototype._doAfterLayout=function(){this._layoutLines()},e.prototype._runShowEffect=function(t){this._polar?t&&cL.grow(this):t&&cL.reveal(this,{from:function(t){var e=t.model._xAxisObj.reversed;return t._inverted?e?"top":"bottom":e?"right":"left"}(this)})},e.prototype._doViewRateChanged=function(t){this._layoutMarkers(this._visPoints,this.width,this.height),this._layoutLines()},e.prototype.getPointsAt=function(t,e){return[]},e.prototype.getNearest=function(t,e){var i=this.model.marker.options.radius,n=this._markers._internalItems().reduce((function(n,r){return n.distance(i,t,e)<r.distance(i,t,e)?n:r}));return{pv:n,dist:n.distance(i,t,e)}},e.prototype.getHintDistance=function(){return this.model.marker.options.hintDistance},e.prototype.canHover=function(t,e,i){return t<=this.model.marker.options.radius+i},e.prototype._markersPerPoint=function(){return 1},e.prototype._prepareBelow=function(t){var e,i,n=this.control,r=this._lowLine;if(this._needBelow=t.options.belowStyle&&t._minY<t.getBaseValue(t._yAxisObj),this._needBelow)return r||(this._lineContainer.insertChild(r=this._lowLine=new kP(this.doc,"rct-line-series-line rct-line-series-line-below"),this._line),this._upperClip=n.clipBounds(),this._lowerClip=n.clipBounds(),this._upperClip.setAttr(wP.ASSET_KEY,"1"),this._lowerClip.setAttr(wP.ASSET_KEY,"1")),this._line.setClip(this._upperClip),r.setClip(this._lowerClip),!0;null==r||r.setClip(),this._line.setClip(),null===(e=this._upperClip)||void 0===e||e.remove(),null===(i=this._lowerClip)||void 0===i||i.remove()},e.prototype._prepareRanges=function(t,e){var i=this._rangeClips,n=this._rangeLines;if(e){for(n||(n=this._rangeLines=new CE(this._lineContainer,kP)),n.prepare(e.length);i.length<e.length;){var r=new VP(this.doc);r.setAttr(wP.ASSET_KEY,"1"),this.control.clipContainer().append(r.dom),i.push(r)}for(;i.length>e.length;)i.pop().remove()}else n&&(n.freeAll(),i.forEach((function(t){return t.remove()})),i.length=0)},e.prototype.$_resetClips=function(t,e,i,n){var r,o=this.model._yAxisObj.options.reversed;(r=this._upperClip)&&(n?o?r.setBounds(0,-i,e,t):r.setBounds(0,-t,e,t-i):o?r.setBounds(0,0+i,t,e-i):r.setBounds(0,0,t,i)),(r=this._lowerClip)&&(this._inverted?o?r.setBounds(0,-t,e,t):r.setBounds(0,-i,e,t-i):o?r.setBounds(0,0,t,i):r.setBounds(0,0+i,t,e-i))},e.prototype.$_prepareMarkers=function(t,e){var i=this,n=t instanceof vC&&this._needBelow,r=n?t.getBaseValue(t._yAxisObj):NaN,o=[t.marker._style,null];if(this._pointContainer.setVis(!t._simpleMode)){var s=this._markersPerPoint(),a=n&&t.options.belowStyle,u=e.length;this._markers.prepare(u*s,(function(s,l){var h=e[l%u];h.isNull||(s.point=h,o[1]=n&&h.yValue<r?a:null,i._setPointStyle(s,t,h,o)),s.point=h,s.index=l<u?0:1}))}else this._markers.prepare(0)},e.prototype._layoutMarker=function(t,e,i,n){var r=this.model,o=t.point,s=t._radius=r.getRadius(o);e&&t.internalSetStyleOrClass(e),pk.setShape(t,r.getShape(o),s,s),t.setPos(i,n),t.trans(i-=s,n-=s)},e.prototype._layoutMarkers=function(t,e,i){var n=this,r=this.model,o=r.marker,s=o._style,a=this._inverted,u=r.needClip(!1),l=this._getGrowRate(),h=o.visible,p=o.options.firstVisible,c=o.options.lastVisible,f=r.pointLabel,_=f.options.position,d=f.options.align,y=f.getAlignOffset(),g=f.options.textAlign,v=f.getOffset(),m=this._labelViews(),b=r._xAxisObj,w=r._yAxisObj,x=this._polar=r.chart._body.getPolar(b),S=!!x,P=w.prev(a?e:i),V=b.prev(x?x.rd*yS:a?i:e),k=a?0:i,A=t.length;t.forEach((function(t,r){var o,f;if(x){var C=x.start+b.getPos(V,t.xValue),E=w.getPos(x.rd,t.yGroup)*l;o=t.px=x.cx+E*Xx(C),f=t.py=x.cy+E*Ux(C)}else o=t.px=b.getPos(V,t.xValue),f=t.py=k-w.getPos(P,t.yGroup),a&&(o=w.getPos(P,t.yGroup),f=i-b.getPos(V,t.xValue));t.xPos=o,t.yPos=f;var L=n._markers.get(r),N=m&&m.get(t,0);if(L&&L.setVis(!t.isNull&&(S||!u||o>=0&&o<=e&&f>=0&&f<=i))){n._layoutMarker(L,s,o,f);var M=0==r&&null!=p?p:r==A-1&&null!=c?c:h;if(L.setStyle("opacity",M?"1":"0"),N){var T=N.getBBox(),O=L._radius;switch(N.visible=!0,N.setContrast(null),_){case"inside":f-=T.height/2+v;break;case"foot":f+=v+(h?O:0);break;default:f-=T.height+v+(h?O:0)}switch(d){case"left":o-=T.width+(h?O:0)+y;break;case"right":o+=(h?O:0)+y;break;default:o-=T.width/2+y}N.layout(g).trans(o,f)}}else N&&N.setVis(!1)}))},e.prototype._layoutLines=function(){var t=this,e=this.model;if(this._lineContainer.setVis(e._lines.length>0)){var i=this.width,n=this.height,r=this._inverted,o=e instanceof vC&&this._needBelow,s=this._buildLines2(e._lines,this._polar);if(e._runRanges)this._rangeLines.forEach((function(o,a){var u=e._runRanges[a];o.setPath(s),o.internalClearStyleAndClass(),o.internalSetStyle("stroke",u.color),o.internalSetStyleOrClass(u.style),dP.setImportantStyle(o.dom.style,TS,"none"),o.setClip(t._rangeClips[a]),t._clipRange(i,n,e._runRangeValue,u,t._rangeClips[a],r)}));else{var a=this._line;a.setPath(s),a.internalClearStyleAndClass(),a.internalSetStyle("stroke",e._runColor),a.internalSetStyleOrClass(e._style),dP.setImportantStyle(a.dom.style,TS,"none")}if(o){var u=this._lowLine,l=e._yAxisObj,h=e.getBaseValue(l);r?this.$_resetClips(i,n,l.getPos(i,h),!0):this.$_resetClips(i,n,n-l.getPos(n,h),!1),u.setPath(s),u.internalClearStyleAndClass(),u.internalSetStyle("stroke",e._runColor),u.internalSetStyleOrClass(e._style),u.internalSetStyleOrClass(e.options.belowStyle),dP.setImportantStyle(u.dom.style,TS,"none")}}},e.prototype._buildLine2=function(t,e,i,n){var r=this.model;"spline"===e?this._drawCurve2(t,i,n):r instanceof vC&&"step"===e?this._drawStep2(t,i,n,i?r.backDir():r.options.stepDir):this._drawLine2(t,i,n)},e.prototype._buildLines2=function(t,e){var i=this.model,n=i.getLineType(),r=new OC;return"spline"===n?this._drawCurves(t,r):i instanceof vC&&"step"===n?this._drawSteps(t,r,i.options.stepDir):this._drawLines(t,r),r.end(e)},e.prototype._drawLine2=function(t,e,i){if(t.length>1){i.moveOrLine(e,t[0].px,t[0].py);for(var n=1;n<t.length;n++)this.model instanceof vC&&this.model.options.connectNullPoints&&t[n].isNull||i.line(t[n].px,t[n].py)}},e.prototype._drawLines=function(t,e){var i=this;t.forEach((function(t){return i._drawLine2(t,!1,e)}))},e.prototype._drawStep2=function(t,e,i,n){if(t.length>1){i.moveOrLine(e,t[0].px,t[0].py);for(var r=1;r<t.length;r++)switch(n){case"backward":i.line(t[r-1].px,t[r].py),i.line(t[r].px,t[r].py);break;case"center":i.line((t[r].px+t[r-1].px)/2,t[r-1].py),i.line((t[r].px+t[r-1].px)/2,t[r].py),r+1===t.length&&i.line(t[r].px,t[r].py);break;default:i.line(t[r].px,t[r-1].py),i.line(t[r].px,t[r].py)}}},e.prototype._drawSteps=function(t,e,i){var n=this;t.forEach((function(t){return n._drawStep2(t,!1,e,i)}))},e.prototype._drawCurve2=function(t,e,i){t.length>1&&(i.moveOrLine(e,t[0].px,t[0].py),this._drawSpline(t,0,t.length-1,i))},e.prototype._drawCurves=function(t,e){var i=this;t.forEach((function(t){return i._drawCurve2(t,!1,e)}))},e.prototype._drawCurve=function(t,e,i){var n,r=t.length;if(t&&t.length>1){var o=e;for(n=e;n<r;)if(t[n].isNull){n-1>o&&this._drawSpline(t,o,n-1,i);do{n++}while(n<r&&t[n].isNull);o=n,n<r&&(i.move(t[n].px,t[n].py),n++)}else n++;n-1>o&&this._drawSpline(t,o,n-1,i)}},e.prototype._buildAreas=function(t,e,i){var n=new OC;i=i||e;for(var r=0;r<t.length;r+=2){var o=t[r],s=t[r+1];this._buildLine2(o,e,!1,n),this._buildLine2(s,i,!0,n)}return n.end(!0)},e.prototype.setHoverStyle=function(e){t.prototype.setHoverStyle.call(this,e),e.internalImportantStylesOrClass(this.model.marker.options.hoverStyle)},e}(kL),rN=function(t){function e(i){var n=t.call(this,i,e.CLASS)||this;return n._flagView=new jE(i,"rct-line-series-flag"),n._pointContainer.add(n._flagView),n}return Lx(e,t),e.prototype._legendColorProp=function(){return"stroke"},e.prototype._doLayout=function(){t.prototype._doLayout.call(this);var e,i=this.model,n=i.flag,r=this._flagView;if(r.setVis(n.visible&&!!(e=n.label()))){r.setText(e),r.setModel(this.doc,n,null,null),r.layout("left");var o=n.options.offset,s=r.getBBox(),a=void 0,u=void 0;a=this._markers.last.x,u=this._markers.last.y,this._inverted?(i._xAxisObj.options.reversed?u+=o:u-=o+s.height,a-=s.width/2):(i._xAxisObj.options.reversed?a-=o+s.width:a+=o,u-=s.height/2),r.trans(a,u)}},e.CLASS="rct-line-series",e}(nN),oN=function(t){function e(e){var i=t.call(this,e,"rct-arearange-series")||this;return i.insertFirst(i._areaContainer=new iN(e,"rct-arearange-series-areas")),i._areaContainer.add(i._area=new kP(e,"rct-arearange-series-area")),i._lineContainer.add(i._lowerLine=new kP(e,"rct-areanrange-series-line")),dP.setImportantStyle(i._lowerLine.dom.style,"fill","none"),i}return Lx(e,t),e.prototype._markersPerPoint=function(){return 2},e.prototype.getSiblings=function(t){return[t,this._markers.find((function(e){return e!==t&&e.point===t.point}))]},e.prototype.getSibling=function(t){return t&&this._markers.find((function(e){return e!==t&&e.point===t.point}))},e.prototype.decoreateLegend=function(e){t.prototype.decoreateLegend.call(this,e);var i=getComputedStyle(this._area.dom);e._marker._area.setStroke("none"),e._marker._area.setFill(i.fill),e._marker._area.setStyle("fillOpacity",i.fillOpacity)},e.prototype._renderSeries=function(e,i){this._areaContainer.invert(this.model.chart.isInverted(),i),t.prototype._renderSeries.call(this,e,i)},e.prototype._layoutMarkers=function(e,i,n){t.prototype._layoutMarkers.call(this,e,i,n);var r=this.model,o=r.marker,s=o._style,a=o.visible,u=this._inverted;r._xAxisObj;for(var l=r._yAxisObj,h=u?i:n,p=u?0:n,c=0,f=e.length;c<f;c++){(d=e[c]).yLow=p-l.getPos(h,d.lowValue)}var _=this._markers;for(c=0,f=e.length;c<f;c++){var d=e[c],y=_.get(f+c),g=void 0,v=void 0;u?(g=d.px2=l.getPos(h,d.lowValue),v=d.py2=_.get(c).ty+r.getRadius(d)):(g=d.px2=d.xPos,v=d.py2=d.yLow),y&&y.setVis(!d.isNull&&g>=0&&g<=i&&v>=0&&v<=n)&&(this._layoutMarker(y,s,g,v),y.setStyle("opacity",a||0==c&&!0===o.options.firstVisible||c===f-1&&!0===o.options.lastVisible?"1":"0"))}},e.prototype._layoutLines=function(){t.prototype._layoutLines.call(this);var e=this._area,i=this.model;if(this._areaContainer.setVis(i._lines.length>0)){var n=this._buildAreas(i._lines,i.getLineType());e.setPath(n),e.unsetData("polar"),e.setBoolData("simple",this._simpleMode),e.internalClearStyleAndClass(),i._runColor&&e.setFill(i._runColor),this._setFill(e,i._style),i.options.areaStyle&&e.internalSetStyleOrClass(i.options.areaStyle)}},e}(nN),sN=function(t){function e(e,i){var n=t.call(this,e,i||"rct-area-series")||this;return n._rangeAreaClips=[],n.insertFirst(n._areaContainer=new iN(e,"rct-area-series-areas")),n._areaContainer.insertFirst(n._area=new kP(e,"rct-area-series-area")),n}return Lx(e,t),e.prototype.decoreateLegend=function(e){t.prototype.decoreateLegend.call(this,e);var i=getComputedStyle(this._area.dom);e._marker._area.setStroke("none"),e._marker._area.setFill(i.fill),e._marker._area.setStyle("fillOpacity",i.fillOpacity)},e.prototype.getClipContainer2=function(){return this._areaContainer},e.prototype._prepareBelow=function(e){var i=this._lowArea;if(t.prototype._prepareBelow.call(this,e))return i||this._areaContainer.add(i=this._lowArea=new kP(this.doc,"rct-area-series-area")),this._area.setClip(this._upperClip),i.setClip(this._lowerClip),!0;null==i||i.setClip(),this._area.setClip()},e.prototype._prepareRanges=function(e,i){t.prototype._prepareRanges.call(this,e,i);var n=this._rangeAreas,r=this._rangeAreaClips;if(i){for(n||(n=this._rangeAreas=new CE(this._areaContainer,kP,"rct-area-series-area")),n.prepare(i.length);r.length<i.length;){var o=new VP(this.doc);o.setAttr(wP.ASSET_KEY,"1"),this.control.clipContainer().append(o.dom),r.push(o)}for(;r.length>i.length;)r.pop().remove()}else n&&(n.freeAll(),r.forEach((function(t){return t.remove()})),r.length=0)},e.prototype._renderSeries=function(e,i){t.prototype._renderSeries.call(this,e,i),this.model.prepareAreas(),this._areaContainer.invert(this._inverted,i)},e.prototype._layoutMarkers=function(e,i,n){t.prototype._layoutMarkers.call(this,e,i,n);for(var r=this._inverted,o=this.model._yAxisObj,s=r?i:n,a=r?0:n,u=0,l=e.length;u<l;u++){var h=e[u];h.yLow=a-o.getPos(s,h.yGroup-h.yValue)}},e.prototype._doAfterLayout=function(){var e;null===(e=this.model._group)||void 0===e||e.prepareLines(this.model),t.prototype._doAfterLayout.call(this),this._polar?this._layoutPolar(this._area,this._visPoints):this.$_layoutArea(this._area)},e.prototype.$_layoutArea=function(t){var e=this,i=this.model,n=i.options;if(this._areaContainer.setVis(i._areas.length>0)){var r=this.width,o=this.height,s=i.chart.isInverted(),a=this._needBelow?this._lowArea:void 0,u=this._buildAreas(i._areas,i.getLineType());i._runRanges?this._rangeAreas.forEach((function(t,n){var a=i._runRanges[n];t.setBoolData("simple",e._simpleMode),t.setPath(u),t.internalClearStyleAndClass(),t.setFill(a.color),e._setFill(t,a.style),a.areaStyle&&t.internalSetStyleOrClass(a.areaStyle),t.setClip(e._rangeAreaClips[n]),e._clipRange(r,o,i._runRangeValue,a,e._rangeAreaClips[n],s)})):(t.setPath(u),t.unsetData("polar"),t.setBoolData("simple",this._simpleMode),t.internalClearStyleAndClass(),i._runColor&&t.internalSetStyle(TS,i._runColor),this._setFill(t,n.style),i.options.areaStyle&&t.internalSetStyleOrClass(n.areaStyle)),a&&(a.setBoolData("simple",this._simpleMode),a.setPath(u),a.internalClearStyleAndClass(),i._runColor&&a.internalSetStyle(TS,i._runColor),n.areaStyle&&a.internalSetStyleOrClass(n.areaStyle),this._setFill(a,i.options.belowStyle),n.belowAreaStyle&&a.internalSetStyleOrClass(n.belowAreaStyle))}},e.prototype._layoutPolar=function(t,e){var i=this.model,n=i._group,r=i._yAxisObj,o=r instanceof pA?i.getBaseValue(r):NaN,s=this.height;r.getPos(s,sS.isNotEmpty(o)?o:r.axisMax());var a=new OC;if(!n||"stack"!==n.options.layout&&"fill"!==n.options.layout){a.move(e[0].xPos,e[0].yPos);for(u=1;u<e.length;u++)a.line(e[u].xPos,e[u].yPos);t.setPath(a.end())}else{a.move(e[0].xPos,e[0].yLow),a.line(e[0].xPos,e[0].yPos);for(var u=1;u<e.length;u++)a.line(e[u].xPos,e[u].yPos);a.line(e[e.length-1].xPos,e[e.length-1].yLow);for(var u=e.length-1;u>=0;u--)a.line(e[u].xPos,e[u].yLow);t.setPath(a.end())}t.setBoolData("polar",!0),t.clearStyleAndClass(),t.setFill(i._runColor),t.addStyleOrClass(i._style)},e}(nN),aN=function(t){function e(e){var i=t.call(this,e,"rct-barrange-series")||this;return i._bars=new CE(i._pointContainer,EL),i}return Lx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this._rd=+i.options.cornerRadius||0},e.prototype._preparePoints=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.wPoint=r,t.hPoint=o,t.layout(i,n+o,this._rd,this._rd)},e}(TL),uN=function(t){function e(e){return t.call(this,e,kL.POINT_CLASS)||this}return Lx(e,t),e.prototype.savePrevs=function(){},e}(QE),lN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._labelInfo={},e}return Lx(e,t),e.prototype._getPointPool=function(){return this.chart().isPolar()?this._sectors:this._bars},e.prototype._preparePoints=function(t,e,i){e.chart.isPolar()?this.$_parepareSectors(t,e,this._visPoints):this.$_parepareBars(t,e,this._visPoints)},e.prototype._setPointStyle=function(e,i,n){t.prototype._setPointStyle.call(this,e,i,n),n.yValue<i.options.baseValue&&i.options.belowStyle&&e.addStyleOrClass(i.options.belowStyle)},e.prototype._layoutPoints=function(e,i){this.model.chart.isPolar()?this.$_layoutSectors():t.prototype._layoutPoints.call(this,e,i)},e.prototype.$_parepareBars=function(t,e,i){var n=this;this._bars||(this._bars=this._createBarPool(this._pointContainer)),this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype.$_parepareSectors=function(t,e,i){var n=this;this._sectors||(this._sectors=new CE(this._pointContainer,uN)),this._sectors.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype.$_layoutSectors=function(){var t,e,i,n=this.model,r=this._getGrowRate(),o=n.pointLabel,s=this._labelViews(),a=n.chart._body,u=n._xAxisObj,l=n._yAxisObj,h=a.getPolar(u),p=u.getTotalAngle(),c=h.cx,f=h.cy;s&&(t=this._labelInfo,e=n.getLabelPosition(o.options.position),i=n.getLabelOff(o.getOffset())),this._sectors.forEach((function(o,a){var _=o.point,d=l.getPos(h.rd,_.yValue)*r,y=l.getPos(h.rd,_.yGroup)*r,g=u.getUnitLen(p,_.xValue),v=n.getPointWidth(g),m=h.start+u.getPos(p,_.xValue);if(m+=n.getPointPos(g),o.setSector({cx:c,cy:f,rx:y,ry:y,innerRadius:(y-d)/y,start:m-v/2,angle:v,clockwise:!0}),m=o.start+o.angle/2,_.xPos=c+o.rx*Xx(m),_.yPos=f+o.ry*Ux(m),s&&(t.labelView=s.get(_,0))){var b=t.labelView.getBBox(),w=void 0;"outside"===e?(y=f+(o.ry+b.height+i)*Ux(m),w=c+(o.rx+b.width+i)*Xx(m)):"head"===e?(y=f+(o.ry-b.height/2-i)*Ux(m)-b.height/2,w=c+(o.rx-b.height/2-i)*Xx(m)):(y=f+.7*o.ry*Ux(m)-b.height/2,w=c+.7*o.rx*Xx(m)),t.labelView.layout("center").trans(w-b.width/2,y)}}))},e}(ML),hN=function(t){function e(e){return t.call(this,e,"rct-bar-series")||this}return Lx(e,t),e.prototype._createBarPool=function(t){return new CE(t,EL)},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this._rdTop=+i.options.topRadius||0,this._rdBottom=+i.options.bottomRadius||0},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.wPoint=r,t.hPoint=o,t.layout(i,n,this._rdTop,this._rdBottom)},e}(lN),pN=function(t){function e(e){return t.call(this,e,"rct-bellcurve-series")||this}return Lx(e,t),e}(sN),cN=function(t){function e(e){return t.call(this,e,kL.POINT_CLASS+" rct-boxplot-point")||this}return Lx(e,t),e.prototype.layout=function(t,e){var i=this.point,n=i.yValue-i.minValue,r=t/2,o=0+e-e*(i.lowValue-i.minValue)/n,s=0+e-e*(i.highValue-i.minValue)/n,a=e*(i.highValue-i.lowValue)/n;i.color&&this._box.setFill(i.color),this.x=this.tx+r,this._stemUp.setVLine(r,0,s),this._stemDown.setVLine(r,o,e),this._min.setHLine(0,t/4,3*t/4),this._max.setHLine(0+e,t/4,3*t/4),this._box.setBox(0,s,t,a),this._mid.setHLine(0+e-e*(i.midValue-i.minValue)/n,0,t)},e.prototype._doInitChildren=function(t){this.add(this._stemUp=new hC(t,"rct-boxplot-point-stem")),this.add(this._stemDown=new hC(t,"rct-boxplot-point-stem")),this.add(this._box=new ck(t,"rct-boxplot-point-box")),this.add(this._mid=new hC(t,"rct-boxplot-point-mid")),this.add(this._min=new hC(t,"rct-boxplot-point-min")),this.add(this._max=new hC(t,"rct-boxplot-point-max"))},e}(LL),fN=function(t){function e(e){var i=t.call(this,e,"rct-boxplot-series")||this;return i._boxes=new CE(i._pointContainer,cN),i}return Lx(e,t),e.prototype._getPointPool=function(){return this._boxes},e.prototype._getLowValue=function(t){return t.minValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._boxes.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i-r/2,n),t.layout(r,o)},e}(TL),_N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(OL),dN=function(t){function e(e){return t.call(this,e,"rct-bubble-series")||this}return Lx(e,t),e.prototype._createMarkers=function(t){return new CE(t,_N)},e.prototype._prepareSeries=function(t,e){this.$_prepareMarkers(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this.$_layoutMarkers(t,e)},e.prototype._runShowEffect=function(t){t&&cL.grow(this)},e.prototype._doViewRateChanged=function(t){this.$_layoutMarkers(this.width,this.height)},e.prototype.$_prepareMarkers=function(t,e){var i=this;t.getShape();var n=e.length;this._markers.prepare(n,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e.prototype._getAutoPos=function(t){return t?"outside":"inside"},e.prototype.$_layoutMarkers=function(t,e){var i,n=this,r=this.model,o=r.options,s=this._inverted,a=r.needClip(!1),u=this._getGrowRate(),l=+o.rotation||0,h=r.pointLabel,p=h.options.position,c=h.getOffset(),f=this._labelViews(),_=r._xAxisObj,d=r._yAxisObj,y=this._polar=r.chart._body.getPolar(_),g=d.prev(s?t:e),v=_.prev(y?y.rd*yS:s?e:t),m=(r._xAxisObj._vlen<r._yAxisObj._vlen?r._xAxisObj:r._yAxisObj)._vlen,b=r.getPixelMinMax(m),w=b.min,x=b.max,S=s?0:e,P=this._getDrawer(o.shape);this._markers.forEach((function(o,h){var m=o.point,b=f&&(i=f.get(m,0));if(o.setVis(!m.isNull&&!isNaN(m.zValue))){var V=(o._radius=r.getRadius(m.zValue,w,x))*u,k=void 0,A=void 0;if(y){var C=y.start+_.getPos(yS,m.xValue),E=d.getPos(y.rd,m.yValue);k=y.cx+E*Xx(C),A=y.cy+E*Ux(C)}else k=_.getPos(v,m.xValue),A=S-d.getPos(g,m.yValue),s&&(k=d.getPos(g,m.yValue),A=e-_.getPos(v,m.xValue));m.xPos=k,m.yPos=A,o.setVis(!a||k>=0&&k<=t&&A>=0&&A<=e)?(o.setPath(P(V)).trans(k,A).rotate(l),b&&(i.setContrast(o.dom),i.layout("center"),n._layoutLabelView(i,p,c,V,k,A))):b&&b.setVis(!1)}else b&&b.setVis(!1)}))},e.prototype.getNearest=function(t,e){var i=this._markers._internalItems().reduce((function(i,n){return i.distance(i._radius,t,e)<n.distance(n._radius,t,e)?i:n}));return{pv:i,dist:i.distance(i._radius,t,e)}},e.prototype.canHover=function(t,e,i){return t<=e._radius+i},e}(RL),yN=function(t){function e(e){return t.call(this,e,kL.POINT_CLASS)||this}return Lx(e,t),e.prototype.layout=function(t,e){var i=this.point,n=i.yValue-i.lowValue,r=0+e-e*(0===n?1:(Kx(i.openValue,i.closeValue)-i.lowValue)/n),o=0+e-e*(0===n?1:(Jx(i.openValue,i.closeValue)-i.lowValue)/n),s=Kx(o,r),a=Jx(1,Qx(r-o)),u=i.close<i.open;this.x=this.tx+0,this._wickUpper.setVLine(0,0,o),this._wickLower.setVLine(0,r,e),this._body.setBox(-t/2,s,t,a),this.setBoolData("decline",u)},e.prototype._doInitChildren=function(t){this.add(this._wickUpper=new hC(t,"rct-candlestick-point-wick")),this.add(this._wickLower=new hC(t,"rct-candlestick-point-wick")),this.add(this._body=new ck(t))},e}(LL),gN=function(t){function e(e){var i=t.call(this,e,"rct-candlestick-series")||this;return i._sticks=new CE(i._pointContainer,yN),i}return Lx(e,t),e.prototype._getPointPool=function(){return this._sticks},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._sticks.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._setPointColor=function(t,e){t._body.setColor(e)},e.prototype._setPointStyle=function(e,i,n,r){t.prototype._setPointStyle.call(this,e,i,n,r),n.closeValue<n.openValue&&i.options.declineStyle&&e.addStyleOrClass(i.options.declineStyle)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i,n),t.layout(r,o)},e}(TL),vN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.layout=function(t,e,i){var n=new OC;n.circle(t,e,i),this.setPath(n.end())},e}(AL),mN=function(t){function e(e){return t.call(this,e,"rct-circlebar-series")||this}return Lx(e,t),e.prototype._createBarPool=function(t){return new CE(t,vN)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.layout(i,n-o/2,o/2-1)},e}(lN),bN=function(t){function e(e){var i=t.call(this,e,kL.POINT_CLASS)||this;return i.add(i._line=new hC(e)),i.add(i._hmarker=new kP(e,"rct-dumbbell-point-marker")),i.add(i._lmarker=new kP(e,"rct-dumbbell-point-marker")),i}return Lx(e,t),e.prototype.layout=function(t,e){var i=this.point,n=i.radius,r=t/2;i.color&&(this._line.setStyle("stroke",i.color),this._hmarker.setFill(i.color),this._lmarker.setFill(i.color)),this.x=this.tx+r,this._line.setVLineC(r,0,e),pk.setShape(this._hmarker,i.shape,n,n),pk.setShape(this._lmarker,i.shape,n,n),this._hmarker.trans(r-n,0-n),this._lmarker.trans(r-n,e-n)},e}(LL),wN=function(t){function e(e){var i=t.call(this,e,"rct-dumbbell-series")||this;return i._bars=new CE(i._pointContainer,bN),i}return Lx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i-r/2,n),t.layout(r,o)},e}(TL),xN=function(t){function e(e){var i=t.call(this,e,kL.POINT_CLASS)||this;return i._segments=new CE(i,kP),i._decimal=0,i.add(i._back=new ck(e)),i._back.setTransparent(!0),i}return Lx(e,t),e.prototype.prepareSegments=function(t,e,i,n){this._decimal=i,this._segments.prepare(Math.round(e)).forEach((function(t,e){}))},e.prototype.layout=function(t,e,i){var n=this,r=this.wPoint,o=this.hPoint,s=o<0?Math.max:Math.min;e-=r/2,o<0&&(t=t.map((function(t){return-t}))),this._back.setBounds(e,i-o,r,o),this._segments.forEach((function(a,u,l){u===l-1&&n._decimal>0?a.setPath(pk.rectangle(e,i-t[2*u],r,o<0?s(1,n._decimal):s(-1,-n._decimal))):a.setPath(pk.rectangle(e,i-t[2*u],r,s(-1,t[2*u]-t[2*u+1])))}))},e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}(OE),SN=function(t){function e(e){var i=t.call(this,e,"rct-equalizer-series")||this;return i._bars=new CE(i._pointContainer,xN),i}return Lx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(e,i)},e.prototype._layoutPoints=function(e,i){var n=this.model._yAxisObj.prev(this._inverted?e:i)*this._getGrowRate();this.$_buildSegments(this.model,n),t.prototype._layoutPoints.call(this,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){var s=this._prevRate;isNaN(s+t.wSave)||(r=t.wSave+(r-t.wSave)*s),isNaN(s+t.xSave)||(i=t.xSave+(i-t.xSave)*s),t.wPoint=r,t.hPoint=o,t.layout(this._pts,i,n)},e.prototype.$_parepareBars=function(t,e){var i=this;this._bars.prepare(e.length,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e.prototype.$_buildSegments=function(t,e){var i,n,r=t.options,o=t._yAxisObj.axisMax(),s=r.segmented,a=r.segmentGap||0,u=this._pts=[],l=0;for(n=r.maxCount>0?r.maxCount:Math.round(e/(t.getSegmentSize(e)+a/2)),i=(e-a*(n-1))/n;u.length<2*n;)u.push(l,l+i),l+=i+a;u[u.length-1]=e;var h=u.length/2;this._bars.forEach((function(t){var n=t.point;if(t.setVis(!n.isNull)){for(var a=n.yValue/o,l=-1,p=0,c=0;c<h-1;c++)if(a>=u[2*c]/e&&a<u[2*(c+1)]/e){l=c+1,p=!s&&a<u[2*c+1]/e?a*e-u[2*c]:i;break}l<0&&(l=h,p=i),t.prepareSegments(h,l,p,r.backStyle)}}))},e}(ML),PN=function(t){function e(e){return t.call(this,e,kL.POINT_CLASS)||this}return Lx(e,t),e.prototype._doInitChildren=function(t){this.add(this._stem=new hC(t)),this.add(this._whiskerUp=new hC(t)),this.add(this._whiskerDown=new hC(t)),this.add(this._back=new ck(t,"rct-errorbar-point-back")),this._back.setTransparent(!1)},e.prototype.layout=function(t,e){var i=t/2;this.x=this.tx+i,this._stem.setVLine(i,0,e),this._whiskerUp.setHLine(0,0,t),this._whiskerDown.setHLine(e,0,t),this._back.setBox(0,0,t,e)},e}(LL),VN=function(t){function e(e){var i=t.call(this,e,"rct-errorbar-series")||this;return i._bars=new CE(i._pointContainer,PN),i}return Lx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i-r/2,n),t.layout(r,o)},e}(TL),kN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e}(AL),AN=function(t){function e(e){var i=t.call(this,e,"rct-funnel-series")||this;return i._segments=new CE(i._pointContainer,kN),i.add(i._lineContainer=new SL(e)),i}return Lx(e,t),e.prototype._getPointPool=function(){return this._segments},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this.$_prepareSegments(e,i,this._visPoints),this._lineContainer.prepare(i)},e.prototype._renderSeries=function(t,e){this.$_calcRates(this._visPoints),this.$_layoutSegments(t,e)},e.prototype._runShowEffect=function(t){t&&cL.reveal(this,{from:this.model.options.reversed?"bottom":"top"})},e.prototype._resizeZombie=function(){this._renderSeries(this.width,this.height)},e.prototype._animationStarted=function(e){t.prototype._animationStarted.call(this,e),this._lineContainer.setVis(this._labelContainer.visible)},e.prototype.$_prepareSegments=function(t,e,i){var n=this;this._segments.prepare(i.length,(function(r,o){var s=r.point=i[o];n._preparePoint(t,e,s,r)}))},e.prototype.$_calcRates=function(t){var e=this,i=t.length,n=0,r=0;if(t.forEach((function(t){n+=t.yValue*(t===e._zombie?e._zombieRate:1)})),i>1||i>0&&!this._zombie){for(var o=0;o<i-1;o++){var s=xS((a=t[o]).yValue*(a===this._zombie?this._zombieRate:1)/n)||0;a.yRate=100*s,a.yPos=r,a.height=s,r+=s}t[o].yPos=r,t[o].height=1-r}else if(1==i){var a=t[0];r=1-(s=xS(this._zombieRate)),a.yRate=100*s,a.yPos=r,a.height=s,a.yPos=r,a.height=1-r}},e.prototype.$_layoutSegments=function(t,e){var i=this;function n(t){return c?g+(x-g)*(m-t)/(m-S):g+(x-g)*(t-v)/(S-v)}var r,o=this.model,s=this._labelViews(),a="inside"===o.getLabelPosition(),u=o.pointLabel,l=u.getOffset(),h=s&&u.options.distance||0,p=this._lineContainer,c=o.options.reversed,f=o.getSize(t,e),_=o.getNeckSize(f.width,f.height),d=new OC,y=o.getCenter(t,e),g=y.x-f.width/2,v=y.y-f.height/2,m=v+f.height,b=g+f.width/2,w=f.height-_.height,x=g+(f.width-_.width)/2,S=c?m-w:v+w;this._lineContainer.setVis(s&&!a),this._segments.forEach((function(t){var e,o=t.point;if(t.setVis(!o.isNull)){var u=o.yPos*f.height,y=(o.yPos+o.height)*f.height,g=c?m-u:v+u,P=c?m-y:v+y,V=void 0,k=void 0,A=void 0,C=void 0;if(u>=w?(k=(V=x)+_.width,d.move(V,g).lines(k,g,k,P,V,P),t.ny=t.nx1=NaN):y<w?(k=(V=n(g))+2*(b-V),C=(A=n(P))+2*(b-A),d.move(V,g).lines(k,g,C,P,A,P),t.ny=NaN,t.nx1=A-V,t.nx2=C-V):(k=(V=n(g))+2*(b-V),C=(A=x)+_.width,d.move(V,g).lines(k,g,C,S,C,P,A,P,A,S),t.ny=S-g,t.nx1=A-V,t.nx2=C-V),t.setPath(d.close(!0)),o.xPos=b,o.yPos=g+(P-g)/2,s&&(r=s.get(o,0))){var E=p.get(o);if(E.setVis(!a)){var L=t.getBBox(),N=o.xPos,M=o.yPos;isNaN(t.ny)?isNaN(t.nx1)||(N-=t.nx1*L.height/2/L.height):Qx(t.ny)>L.height/2&&(N-=t.nx1*L.height/2/Qx(t.ny)),i.$_layoutLabel(r,L,E,l,h,N,M)}else i.$_layoutLabelInner(r,o.xPos,o.yPos);r.setContrast(a&&t.dom)}else null===(e=p.get(o))||void 0===e||e.setVis(!1)}}))},e.prototype.$_layoutLabel=function(t,e,i,n,r,o,s){var a=t.getBBox();o+=e.width/2,i.setLine((new OC).move(0,0).line(r,0).end()),i.trans(o,s),o+=r+n,t.trans(o,s-a.height/2)},e.prototype.$_layoutLabelInner=function(t,e,i){var n=t.getBBox();t.trans(e-n.width/2,i-n.height/2)},e}(BL),CN=function(t){function e(e){return t.call(this,e,kL.POINT_CLASS)||this}return Lx(e,t),e}(ck),EN=function(t){function e(e){var i=t.call(this,e,"rct-heatmap-series")||this;return i._cells=new CE(i._pointContainer,CN),i}return Lx(e,t),e.prototype._getPointPool=function(){return this._cells},e.prototype._prepareSeries=function(t,e){this.$_parepareCells(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this._pointContainer.invert(this._inverted,e),this.$_layoutCells(t,e)},e.prototype._runShowEffect=function(t){t&&cL.grow(this)},e.prototype._doViewRateChanged=function(t){this.$_layoutCells(this.width,this.height)},e.prototype.$_parepareCells=function(t,e){var i=this,n=new MP(t._calcedColor),r=[{fill:void 0}],o=t._heatMin,s=t._heatMax-o;this._cells.prepare(e.length,(function(a,u){var l=a.point=e[u];r[0].fill=n.brighten(1-(l.zValue-o)/s).toString(),i._setPointStyle(a,t,l,r)}))},e.prototype.$_layoutCells=function(t,e){var i=this.model,n=this._inverted,r=this._getGrowRate(),o=this._labelViews(),s=i._xAxisObj,a=i._yAxisObj,u=n?t:e,l=n?e:t,h=n?0:e;this._cells.forEach((function(t){var e=t.point;if(t.setVis(!e.isNull)){var i=s.getUnitLen(l,e.xValue)*r,p=a.getUnitLen(u,e.yValue)*r,c=s.getPos(l,e.xValue)-i/2,f=h-a.getPos(u,e.yValue)-p/2,_=void 0;if(e.xPos=n?h+a.getPos(u,e.yValue):c+i/2,e.yPos=n?l-s.getPos(l,e.xValue)+i/2:f+p/2,t.setBounds(c,f,i,p),o&&(_=o.get(e,0))){var d=_.getBBox();n?(f=l-s.getPos(l,e.xValue)-d.height/2,c=h+a.getPos(u,e.yValue)):(c+=i/2,f+=(p-d.height)/2),c-=d.width/2,_.layout("center").trans(c,f)}}}))},e}(kL),LN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.layout=function(t,e){this.setPath(pk.rect({x:t-this.wPoint/2,y:e,width:this.wPoint,height:-this.hPoint}))},e}(CL),NN=function(t){function e(e){var i=t.call(this,e,"rct-histogram-series")||this;return i._bars=new CE(i._pointContainer,LN),i}return Lx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.wPoint=r,t.hPoint=o,t.layout(i,n)},e.prototype._layoutPoints=function(t,e){var i=this,n=this.model,r=this._inverted,o=this._getGrowRate(),s=n.pointLabel,a=this._labelViews(),u=n._xAxisObj,l=n._yAxisObj,h=r?t:e,p=r?e:t,c=l.getPos(h,n.getBaseValue(l)),f=r?0:e,_=a&&Gx(this._labelInfo,{inverted:r,labelPos:n.getLabelPosition(s.options.position),labelOff:n.getLabelOff(s.getOffset())});this._getPointPool().forEach((function(n,s){var d=n.point,y=u.getPos(p,d.min),g=u.getPos(p,d.max),v=l.getPos(h,d.yValue),m=g-y+(g>y?-1:1),b=v-c,w=y+(g-y)/2,x=f;d.xPos=w,d.yPos=x-=v,i._layoutPoint(n,s,w,x+b,m,b*o),_&&(_.labelView=a.get(d,0))&&(r&&(x=p-w,w=f,d.yPos=x,d.xPos=w+=l.getPos(h,d.yGroup)),_.pointView=n,_.x=w,_.y=x,_.wPoint=m,_.hPoint=b,i._layoutLabel(_,t,e))}))},e.prototype.$_parepareBars=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype.$_layoutBars=function(t,e){var i=this.model._xAxisObj,n=this.model._yAxisObj,r=this.height,o=this._getGrowRate();this._bars.forEach((function(s,a){var u=s.point,l=i.getPos(t,u.min),h=i.getPos(t,u.max),p=l+(h-l)/2,c=n.getPos(e,s.point.yValue)*o,f=Jx(1,h-l-1);u.xPos=p,u.yPos=r-c,s.wPoint=f,s.hPoint=c,s.layout(p,r)}))},e}(NL),MN=function(t){function e(e){var i=t.call(this,e,kL.POINT_CLASS)||this;return i.add(i._line=new hC(e)),i.add(i._marker=new kP(e,"rct-lollipop-point-marker")),i}return Lx(e,t),e.prototype.layout=function(t){var e=this.point.radius;this._line.setVLineC(0,0,t),pk.setShape(this._marker,this.point.shape,e,e),this._marker.trans(-e,-e)},e.prototype.savePrevs=function(){this.xSave=this.tx},e}(OE),TN=function(t){function e(e){return t.call(this,e,"rct-lollipop-series")||this}return Lx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i,n-o),t.layout(o)},e.prototype.$_parepareBars=function(t,e,i){var n=this,r=e.marker._style;this._bars||(this._bars=new CE(this._pointContainer,MN)),this._bars.prepare(i.length,(function(t,o){var s=t.point=i[o];n._setPointStyle(t,e,s),r&&t._marker.setStyleOrClass(r)}))},e}(ML),ON=function(t){function e(e){return t.call(this,e,kL.POINT_CLASS)||this}return Lx(e,t),e.prototype.layout=function(t,e){var i=this.point,n=i.yValue-i.lowValue,r=-t/2,o=0+e-e*(Kx(i.openValue,i.closeValue)-i.lowValue)/n,s=0+e-e*(Jx(i.openValue,i.closeValue)-i.lowValue)/n,a=i.close<i.open;this.x=this.tx+0,this._back.setBox(r,0,t,e),this._tickOpen.setHLine(o,r,0),this._tickClose.setHLine(s,0,t/2),this._bar.setVLine(0,0,0+e),this.setBoolData("decline",a)},e.prototype._doInitChildren=function(t){this.add(this._tickOpen=new hC(t,"rct-ohlc-point-tick")),this.add(this._tickClose=new hC(t,"rct-ohlc-point-tick")),this.add(this._bar=new hC(t)),this.add(this._back=new ck(t,"rct-ohlc-point-back")),this._back.setTransparent(!1)},e}(LL),RN=function(t){function e(e){var i=t.call(this,e,"rct-ohlc-series")||this;return i._sticks=new CE(i._pointContainer,ON),i}return Lx(e,t),e.prototype._getPointPool=function(){return this._sticks},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){this.$_prepareSticks(e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i,n),t.layout(r,o)},e.prototype._setPointStyle=function(e,i,n,r){t.prototype._setPointStyle.call(this,e,i,n,r),n.closeValue<n.openValue&&i.options.declineStyle&&e.addStyleOrClass(i.options.declineStyle)},e.prototype.$_prepareSticks=function(t,e){var i=this;this._sticks.prepare(e.length,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e}(TL),DN=function(t){function e(e){return t.call(this,e,"rct-pareto-series")||this}return Lx(e,t),e}(nN),BN=function(t){function e(e){return t.call(this,e,kL.POINT_CLASS)||this}return Lx(e,t),e.prototype.setPieSector=function(t,e,i){this._assignShape(i,!1)},e}(QE),FN=function(t){function e(e){var i=t.call(this,e,"rct-pie-series")||this;return i._sectors=new CE(i._pointContainer,BN,null,.5),i._cx=0,i._cy=0,i._rd=0,i._rdInner=0,i._slicedOff=0,i.add(i._circle=new ZE(e)),i._circle.setStyles({stroke:"#aaa",fill:"none",strokeDasharray:"2"}),i.add(i._textView=new jE(e,"rct-pie-series-inner")),i._textView._text.anchor=AP.MIDDLE,i._labelContainer.add(i._lineContainer=new SL(e)),i}return Lx(e,t),e.prototype._getPointPool=function(){return this._sectors},e.prototype._setPointColor=function(t,e){t.setFill(e)},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i);var n=i.innerText;this.$_prepareSectors(e,i,this._visPoints),this._lineContainer.prepare(i),this._textView.setVis(i.hasInner()&&n.visible)&&(this._textView.setModel(e,n,null,null),n.buildSvg(this._textView._text,this._textView._outline,NaN,NaN,i,null))},e.prototype._renderSeries=function(t,e){isNaN(this.model._groupPos)?this.$_calcNormal(t,e):this.$_calcGroup(t,e),this.$_layoutSectors(this._visPoints,t,e)},e.prototype.$_calcNormal=function(t,e){this._rd=this.model.getRadius(t,e),this._rdInner=this.model.getInnerRadius(this._rd)},e.prototype.$_calcGroup=function(t,e){var i=this.model,n=i._group,r=Math.floor(n.getPolarSize(t,e)/2),o=n.getInnerRadius(r)*r,s=r-o;this._rd=o+(i._groupPos+i._groupSize)*s,this._rdInner=(o+i._groupPos*s)/this._rd},e.prototype._runShowEffect=function(t){var e=this;t&&cL.grow(this,(function(t){var i=e._sectors.find((function(t){return t.point.sliced}));i&&(i.trans(0,0),e.$_slice(i,e.model.options.autoSlice,!1))}))},e.prototype._doPointClicked=function(t){if(t instanceof BN&&this.model.options.autoSlice){var e=this._sectors.find((function(t){return t.point.sliced}));e&&this.$_slice(e,!1,!0),t!==e&&this.$_slice(t,!0,!0)}else this.invalidate()},e.prototype._doViewRateChanged=function(t){this.$_layoutSectors(this._visPoints,this.width,this.height)},e.prototype._resizeZombie=function(){this._renderSeries(this.width,this.height)},e.prototype.getClipContainer=function(){return null},e.prototype.$_prepareSectors=function(t,e,i){var n=this;this._sectors.prepare(i.length,(function(r,o){var s=r.point=i[o];n._preparePoint(t,e,s,r)}))},e.prototype.$_calcAngles=function(t){var e=this,i=t.length,n=this.model.options.clockwise?1:-1,r=t.filter((function(t){return(t.visible||t===e._zombie)&&!t.isNull})).map((function(t){return t===e._zombie?t.yValue*e._zombieRate:t.yValue})).reduce((function(t,e){return t+e}),0),o=this.model._totalRad*this._getGrowRate(),s=this.model._startRad;if(i>1||i>0&&!this._zombie)t.forEach((function(t){t.isNull||(t.yRate=xS(t===e._zombie?t.yValue*e._zombieRate:t.yValue)/r||0,t.startAngle=s,s+=t.angle=n*t.yRate*o)}));else if(1==i){var a=t[0];a.startAngle=s,a.angle=n*this._zombieRate*o}},e.prototype.$_layoutSectors=function(t,e,i){var n,r=this,o=this.model,s=o.options.clockwise,a=this._getGrowRate(),u=o.getCenter(e,i),l=this._cx=u.x,h=this._cy=u.y,p=this._rd,c=this._rdInner,f=o.pointLabel,_=this._labelViews(),d="inside"===o.getLabelPosition(),y=f.getOffset(),g=f.options.distance||0,v=this._lineContainer,m=this._slicedOff=o.getSliceOffset(p)*a;if(this._textView.visible){var b=this._textView.getBBox();this._textView.trans(l,h-b.height/2)}this._circle.setVis(this._sectors.isEmpty)&&this._circle.setCircle(this._cx,this._cy,this._rd),this.$_calcAngles(t),this._sectors.forEach((function(t){var e,i,o=t.point;if(o.isNull)t.setVis(!1),_&&(n=_.get(o,0))&&n.setVis(!1),null===(i=v.get(o))||void 0===i||i.setVis(!1);else{var u=o.startAngle,f=0,b=0;if(o.sliced&&a>=1&&!t.isDomAnimating()){var w=u+o.angle/2;f+=Xx(w)*m,b+=Ux(w)*m}t.trans(f,b).setVis(!0);var x=o.startAngle+o.angle/2;if(o.xPos=l+Xx(x)*(m+.7*p),o.yPos=h+Ux(x)*(m+.7*p),t.setPieSector(_,null,{cx:l,cy:h,rx:p,ry:p,innerRadius:c,start:u,angle:Qx(o.angle),clockwise:s}),_&&(n=_.get(o,0))){var S=v.get(o);S.setVis(!d)?r.$_layoutLabel(o,n,S,y,g,o.sliced?m:0,s):(S.visible=!1,r.$_layoutLabelInside(o,n,y,0,o.sliced?m:0)),n.setContrast(d&&t.dom).setVis(!0)}else null===(e=v.get(o))||void 0===e||e.setVis(!1)}}))},e.prototype.$_layoutLabel=function(t,e,i,n,r,o,s){var a,u=e.getBBox(),l=t.startAngle+t.angle/2,h=this._cx,p=this._cy,c=this._rd+.8*r,f=Xx(l)*o,_=Ux(l)*o,d=h+Xx(l)*this._rd,y=p+Ux(l)*this._rd,g=h+Xx(l)*c,v=p+Ux(l)*c,m=g<h;a=m?g-.2*r:g+.2*r,i&&i.setVis(c>0)&&(i.setLine((new OC).move(0,0).quad(g-d,v-y,a-d,v-y).end()),i.setPos(d,y),!e.isDomAnimating()&&i.trans(d+f,y+_)),m?(a-=u.width+n,v-=u.height/2):(a+=n,v-=u.height/2),e.setPos(a,v),!e.isDomAnimating()&&e.layout("center").trans(a+f,v+_)},e.prototype.$_layoutLabelInside=function(t,e,i,n,r){var o=e.getBBox(),s=this._rd*this._rdInner,a=(s>0?s+(this._rd-s)/2:.7*this._rd)+i,u=t.startAngle+t.angle/2,l=this._cx+Xx(u)*a,h=this._cy+Ux(u)*a;e.move(l-o.width/2,h-o.height/2),l=this._cx+Xx(u)*(r+a),h=this._cy+Ux(u)*(r+a),e.layout("center").trans(l-o.width/2,h-o.height/2)},e.prototype.$_slice=function(t,e,i){var n=this.model,r=n.options.autoSlice?n.options.sliceDuration:0,o=t.point,s=o.startAngle+o.angle/2;(o.sliced=e)?t.transEx(Xx(s)*this._slicedOff,Ux(s)*this._slicedOff,r):t.transEx(0,0,r);var a=this._labelViews();if(a){var u=n.pointLabel,l=this._lineContainer,h="inside"===n.getLabelPosition(),p=a.get(o,0);if(p){var c=!h&&l.get(o);if(i&&(h?this.$_layoutLabelInside(o,p,u.getOffset(),u.options.distance,this._slicedOff):this.$_layoutLabel(o,p,c,u.getOffset(),u.options.distance,this._slicedOff,n.options.clockwise)),e){var f=p.tx,_=p.ty;p.trans(p.x,p.y),p.transEx(f,_,r),c&&(f=c.tx,_=c.ty,c.trans(c.x,c.y),c.transEx(f,_,r))}else p.trans(p.tx,p.ty),p.transEx(p.x,p.y,r),c&&(c.trans(c.tx,c.ty),c.transEx(c.x,c.y,r))}}},e}(BL),IN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.setHoverRate=function(t,e,i){var n=this.point,r=t._getDrawer(t.model.getShape(this.point)),o=(+t.model.options.hoverScale||1.8)-1,s=t._radius;e?this._radius=s=t._radius*(1+(isNaN(i)?1:i)*o):s=t._radius*(1+o-(isNaN(i)?o:o*i)),this.setPath(r(s)),this.trans(n.xPos,n.yPos)},e.prototype.endHover=function(t,e){delete this._radius},e}(OL),jN=function(t){function e(e){return t.call(this,e,"rct-scatter-series")||this}return Lx(e,t),e.prototype._createMarkers=function(t){return new CE(t,IN)},e.prototype._prepareSeries=function(t,e){this.$_prepareMarkers(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this.$_layoutMarkers(t,e)},e.prototype._runShowEffect=function(t){t&&(this._polar,cL.grow(this))},e.prototype.$_prepareMarkers=function(t,e){var i=this,n=e.length;this._pointContainer.setFill(t._runColor),this._markers.prepare(n,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e.prototype._getAutoPos=function(t){return"outside"},e.prototype._doViewRateChanged=function(t){this.$_layoutMarkers(this.width,this.height)},e.prototype.$_layoutMarkers=function(t,e){var i,n=this,r=this.model,o=r.options,s=this._inverted,a=r.needClip(!1),u=r._xAxisObj,l=r._yAxisObj,h=this._polar=r.chart._body.getPolar(u),p=this._getGrowRate(),c=this._radius=Math.max(0,+r.options.radius||0)*p,f=+o.rotation||0,_=+o.jitterX||0,d=+o.jitterY||0,y=r.pointLabel,g=y.options.position,v=y.getOffset(),m=this._labelViews(),b=l.prev(s?t:e),w=u.prev(h?h.rd*yS:s?e:t),x=s?0:e;this._markers.forEach((function(o,y){var S=o.point,P=m&&(i=m.get(S,0));if(o.setVis(!S.isNull)){var V=n._getDrawer(r.getShape(S)),k=sS.jitter(S.xValue,_),A=sS.jitter(S.yGroup,d),C=void 0,E=void 0;if(h){var L=h.start+u.getPos(yS,k),N=l.getPos(h.rd,A)*p;C=h.cx+N*Xx(L),E=h.cy+N*Ux(L)}else C=u.getPos(w,k),E=x-l.getPos(b,A),s&&(C=l.getPos(b,A),E=e-u.getPos(w,k));S.xPos=C,S.yPos=E,o.setVis(!!h||!a||C>=0&&C<=t&&E>=0&&E<=e)?(o.setPath(V(o._radius||c)),o.trans(C,E).rotate(f),P&&n._layoutLabelView(i,g,v,c,C,E)):P&&P.setVis(!1)}else P&&P.setVis(!1)}))},e.prototype.getNearest=function(t,e){var i=this.model.options.radius,n=this._markers._internalItems().reduce((function(n,r){return n.distance(i,t,e)<r.distance(i,t,e)?n:r}));return{pv:n,dist:n.distance(i,t,e)}},e.prototype.canHover=function(t,e,i){return t<=this.model.options.radius+i},e}(RL),zN=function(t){function e(e){return t.call(this,e,kL.POINT_CLASS)||this}return Lx(e,t),Object.defineProperty(e.prototype,"point",{get:function(){return this.node.point},enumerable:!1,configurable:!0}),e.prototype.render=function(t){if(1!==t){var e=Object.assign({},this.node);e.width*=t,e.height*=t,e.x+=(this.node.width-e.width)/2,e.y+=(this.node.height-e.height)/2,this.setRect(e)}else this.setRect(this.node)},e}(ck);!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Lx(e,t)}(zN);var $N=function(t){function e(e){var i=t.call(this,e,"rct-treemap-series")||this;return i._nodeViews=new CE(i._pointContainer,zN),i}return Lx(e,t),e.prototype._lazyPrepareLabels=function(){return!0},e.prototype._getPointPool=function(){return this._nodeViews},e.prototype._prepareSeries=function(t,e){},e.prototype._renderSeries=function(t,e){this._pointContainer.invert(this._inverted,e),this._rootView?this.$_renderGroups(t,e):this.$_renderLeafs(t,e)},e.prototype._runShowEffect=function(t){t&&cL.grow(this)},e.prototype._doViewRateChanged=function(t){this._rootView?this.$_renderGroups(this.width,this.height):this.$_renderLeafs(this.width,this.height)},e.prototype.$_renderLeafs=function(t,e){var i=this.model,n=i._xAxisObj,r=i._yAxisObj,o=this._inverted,s=this._getGrowRate(),a=this._labelViews(),u=o?t:e,l=o?e:t,h=i.buildMap(l,u);h.roots;var p,c=h.leafs,f=new MP(i._calcedColor);null==a||a.prepare(this.doc,this),this._nodeViews.prepare(c.length,(function(t,e,i){var h=c[e],_=h.point,d=h.parent,y=f;d&&(!d._color&&d.point.color?y=d._color=new MP(d.point.color):d._color&&(y=d._color)),t.node=h,t.setFill(y.brighten(h.index/i).toString()),n.options.reversed&&(h.x=l-h.x-h.width),r.options.reversed&&(h.y=u-h.y-h.height),o&&(h.y=h.y-u),t.render(s);var g=h.x+h.width/2,v=h.y+h.height/2;if(_.xPos=o?-h.y-h.height/2:g,_.yPos=o?l-h.x-h.width/2:v,a&&(p=a.get(_,0))){var m=p.getBBox();p.setVis(h.width>=m.height&&h.height>=m.height)&&(o?(g=-h.y-h.height/2-m.width/2,v=l-h.x-(h.width+m.height)/2):(g-=m.width/2,v-=m.height/2),p.setContrast(t.dom),p.layout("center").trans(g,v))}}))},e.prototype.$_renderGroups=function(t,e){},e}(kL),HN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype.layout=function(t,e,i,n){var r,o=this.point._len,s=o*n,a=.5,u=(o-s)/2;switch(t){case"none":r=[0,u-a*s,0,u+a*s];break;case"open":r=[0,u-.45*s,0-.15*s,u-.2*s,0,u-a*s,0+.15*s,u-.2*s,0,u-.45*s,0,u+a*s];break;default:var l=.3;r=[0,u-l*s,0-.1*s,u-l*s,0,u-a*s,0+.1*s,u-l*s,0,u-l*s,0,u+a*s]}for(var h=this.point._off*n,p=["M",r[0],r[1]+h],c=2;c<r.length;c+=2)p.push("L",r[c],r[c+1]+h);this.rotation=e,this.setPath(p)},e}(AL),GN=function(t){function e(e){var i=t.call(this,e,"rct-vector-series")||this;return i._arrows=new CE(i._pointContainer,HN),i}return Lx(e,t),e.prototype._getPointPool=function(){return this._arrows},e.prototype._prepareSeries=function(t,e){this.$_prepareArrows(e,this._visPoints)},e.prototype._renderSeries=function(t,e){var i=this.model,n=i.options.startAngle,r=i.options.arrowHead,o=i._xAxisObj,s=i._yAxisObj,a=this._inverted,u=a?t:e,l=a?e:t,h=this._getGrowRate(),p=a?0:e,c=o.options.reversed?-1:1,f=s.options.reversed;this._pointContainer.invert(a,e),this._arrows.forEach((function(t){var e=t.point;if(t.setVis(!e.isNull)){var i=o.getPos(l,e.xValue),_=p-s.getPos(u,e.yValue),d=n+e.angleValue*c;f&&(d=180-d),e.xPos=a?p+s.getPos(u,e.yValue):i,e.yPos=a?l-o.getPos(l,e.xValue):_,t.trans(i,_),t.layout(r,d,!1,h)}}))},e.prototype._runShowEffect=function(t){t&&cL.grow(this)},e.prototype._doViewRateChanged=function(t){this._renderSeries(this.width,this.height)},e.prototype.getPointsAt=function(t,e){return[]},e.prototype.$_prepareArrows=function(t,e){var i=this;this._arrows.prepare(e.length,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e}(kL),WN=function(t){function e(e){var i=t.call(this,e,"rct-waterfall-series")||this;return i._bars=new CE(i._pointContainer,EL),i.add(i._lineContainer=new xP(e,"rct-waterfall-series-lines")),i._lines=new CE(i._lineContainer,hC),i}return Lx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.low},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this._rd=+i.options.cornerRadius||0},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){var s=t.point;if(t.wPoint=r,t.hPoint=o,n+=o,t.layout(i,n,this._rd,this._rd),e>0){var a=this._lines.get(e-1),u=s._isSum?n-o:s.y>=0?n:n-o;a.setHLine(u,this._xPrev+this._wPrev/2,i-r/2)}this._xPrev=i,this._wPrev=r},e.prototype._layoutPoints=function(e,i){this._inverted?this._lineContainer.dom.style.transform="translate(0px, ".concat(i,"px) rotate(90deg) scale(-1, 1)"):this._lineContainer.dom.style.transform="",t.prototype._layoutPoints.call(this,e,i)},e.prototype.$_parepareBars=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o),t.setStyleOrClass(o._isSum?"rct-waterfall-point-sum":o.y<0?"rct-waterfall-point-negative":"")})),this._lines.prepare(i.length-1,(function(t,e){t.visible=!i[e].isNull&&!i[e+1].isNull}))},e}(TL);function YN(t,e){return new(tL[e._type()])(t)}function XN(t,e){return new(VL[e._viewType()])(t)}kL.register([wC,sN],[SC,oN],[nC,hN],[tC,aN],[AC,pN],[EC,fN],[NC,dN],[DC,gN],[FC,mN],[$C,wN],[GC,SN],[WC,VN],[XC,AN],[qC,EN],[JC,NN],[vC,rN],[eE,TN],[nE,RN],[oE,DN],[lE,FN],[cE,jN],[gE,$N],[mE,GN],[wE,WN]),nL.register([$A,KL],[VA,$L],[TA,WL],[JA,tN],[HA,JL],[EA,GL],[OA,YL]),eL.register([nA,jL],[eA,FL],[iA,IL]);var UN,qN=function(t){function e(e){var i=t.call(this,e,"rct-axis-grid")||this;return i._lines=new CE(i,hC),i}return Lx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){return{width:i,height:n}},e.prototype._doLayout=function(){var t,e=this.model,i=e.options,n=e.axis,r=this.width,o=this.height,s=n.isEmpty()?[]:e.getPoints(n,n._isHorz?r:o),a=this._lines.prepare(s.length,(function(t){t.internalClearStyleAndClass(),t.internalSetStyleOrClass(e._style),t.setClass("rct-axis-grid-line")})),u=a.count-1;a.forEach((function(t,e){t.setBoolData("first",0===e),t.setBoolData("last",s[e]===(n._isHorz?r:o))}));var l=null==i.firstVisible?e.visible:i.firstVisible,h=null==i.lastVisible?e.visible:i.lastVisible;n._isHorz?a.forEach((function(i,r){t=0===r?l:r===u?h:e.visible,i.setVis(t)&&i.setVLine(n.prev(s[r]),0,o)})):a.forEach((function(i,a){s[a],t=0===a?l:a===u?h:e.visible,i.setVis(t)&&i.setHLine(o-n.prev(s[a]),0,r)}))},e}(RE),ZN=function(t){function e(e){var i=t.call(this,e,"rct-axis-break")||this;return i.add(i._mask=new kP(e)),i._mask.setStroke("none"),i.add(i._upLine=new kP(e)),i._upLine.setFill("none"),i.add(i._downLine=new kP(e)),i._downLine.setFill("none"),i}return Lx(e,t),e.prototype.setModel=function(t){this._model=t},e.prototype.layout=function(t,e,i){this._clip?this._clip.resize(t,e):this._clip=this.control.clipBounds(0,0,t,e),this.setClip(this._clip);var n=this._model._sect.len,r=new OC;if(i){var o=0,s=n/2,a=n;for(r.move(0,o);o<e;)o+=20,r.line(s,o),o+=20,r.line(0,o);for(this._downLine.setPath(r.end(!1)),o=0,r.clear().move(s,o);o<e;)o+=20,r.line(a,o),o+=20,r.line(s,o);for(this._upLine.setPath(r.end(!1)),o=0,r.clear().move(0,o);o<e;)o+=20,r.line(s,o),o+=20,r.line(0,o);for(r.line(s,o);o>=0;)o-=20,r.line(a,o),o-=20,r.line(s,o);this._mask.setPath(r.end())}else{var u=0,l=n/2,h=n;for(r.move(u,l);u<t;)u+=20,r.line(u,0),u+=20,r.line(u,l);for(this._upLine.setPath(r.end(!1)),u=0,r.clear().move(u,h);u<t;)u+=20,r.line(u,l),u+=20,r.line(u,h);for(this._downLine.setPath(r.end(!1)),u=0,r.clear().move(u,l);u<t;)u+=20,r.line(u,0),u+=20,r.line(u,l);for(r.line(u,h);u>=0;)u-=20,r.line(u,l),u-=20,r.line(u,h);this._mask.setPath(r.end())}},e}(wP),KN=function(t){function e(e){var i=t.call(this,e,"rct-axis-guide")||this;return i.add(i._labelView=new jE(e,"rct-axis-guide-label")),i}return Lx(e,t),e.prototype.vertical=function(){return this.model.axis._isHorz},e.prototype.prepare=function(t,e){this.model=e,this._labelView.setVis(!!e.label.options.text)&&(this._labelView.setModel(t,e.label,null,null),this._labelView.setStyles(e.label._style))},e.prototype.layout=function(t,e,i){this._labelView.visible&&(this.model.label.buildSvg(this._labelView._text,this._labelView._outline,t,e,null,null),this._labelView.layout("center")),i?this._doLayoutPolar(t,e,i):this._doLayout(t,e)},e}(wP),JN=function(t){function e(e,i){var n=t.call(this,e)||this;return n.insertFirst(n._line=new(i?JE:hC)(e,"rct-axis-guide-line")),n}return Lx(e,t),e.prototype.prepare=function(e,i){t.prototype.prepare.call(this,e,i),this._line.setStyles(i._style)},e.prototype._doLayout=function(t,e){var i,n,r=this.model,o=r.label,s=o.options,a=this._line,u=this._labelView.setVis(o.visible)&&this._labelView,l=u.getBBox(),h=tS(s.offsetX,0),p=tS(s.offsetY,0);if(this.vertical()){var c=r.axis.getPos(t,r.options.value);if(u.setVis(a.setVis(!isNaN(c)))&&(a.setVLine(c,0,e),u)){switch(s.align){case"center":i=c-l.width/2+h;break;case"right":i=c+h;break;default:i=c-l.width-h}switch(s.verticalAlign){case"bottom":n="inside"===s.position?e-l.height-p:e+p;break;case"middle":n=(e-l.height)/2-p;break;default:n="inside"===s.position?p:-1*(l.height+p)}}}else{c=e-r.axis.getPos(e,r.options.value);if(u.setVis(a.setVis(!isNaN(c)))&&(a.setHLine(c,0,t),u)){switch(s.align){case"center":i=(t-l.width)/2-h;break;case"right":i="inside"===s.position?t-l.width-h:t+h;break;default:i="inside"===s.position?h:-1*(l.width+h)}switch(s.verticalAlign){case"bottom":n=c+p;break;case"middle":n=c-l.height/2-p;break;default:n=c-l.height-p}}}u&&u.trans(i,n)},e.prototype._doLayoutPolar=function(t,e,i){var n=this.model,r=this._line,o=this._labelView.setVis(n.label.visible)&&this._labelView,s=n.axis.getStartAngle(),a=n.axis.getPos(i.rd,n.options.value);r.setArc(i.cx,i.cy,a,s,n.axis.getTotalAngle(),!1),r.setStyle(TS,"none"),o&&o.trans(i.cx+a*Xx(i.start),i.cy+a*Ux(i.start))},e}(KN),QN=function(t){function e(e,i){var n=t.call(this,e)||this;return n.insertFirst(n._box=new(i?QE:fk)(e,"rct-axis-guide-range")),n}return Lx(e,t),e.prototype.prepare=function(e,i){t.prototype.prepare.call(this,e,i),this._box.setStyleOrClass(i._style)},e.prototype._doLayout=function(t,e){var i=this.model,n=i.options,r=i.label,o=r.options,s=this._box,a=Kx(n.startValue,n.endValue),u=Jx(n.startValue,n.endValue),l=this._labelView.setVis(r.visible)&&this._labelView,h=l.getBBox(),p=tS(o.offsetX,0),c=tS(o.offsetY,0);if(this.vertical()){var f=i.axis.getPos(t,a),_=i.axis.getPos(t,u);if(!isNaN(f)&&!isNaN(_)&&l.setVis(s.setVis(_!==f))){var d=void 0,y=void 0;switch(o.align){case"center":d=f+(_-f-h.width)/2+p;break;case"right":d=_-h.width-p;break;default:d=f+p}switch(o.verticalAlign){case"bottom":y="inside"===o.position?e-h.height-c:e+c;break;case"middle":y=(e-h.height)/2-c;break;default:y="inside"===o.position?c:-1*(h.height+c)}s.setBox(f,0,_,e),l&&l.trans(Jx(0,Kx(t,d)),y)}}else{var g=e-i.axis.getPos(e,a),v=e-i.axis.getPos(e,u);if(!isNaN(g)&&!isNaN(v)&&l.setVis(s.setVis(g!==v))){d=void 0,y=void 0;switch(o.align){case"center":d=(t-h.width)/2-p;break;case"right":d="inside"===o.position?t-h.width-p:t+p;break;default:d="inside"===o.position?p:-1*(h.width+p)}switch(o.verticalAlign){case"bottom":y=g-h.height-c;break;case"middle":y=v+(g-v-h.height)/2-c;break;default:y=v+c}l&&l.trans(d,y),s.setBox(0,v,t,g)}}},e.prototype._doLayoutPolar=function(t,e,i){var n=this.model,r=this._box,o=this._labelView.setVis(n.label.visible)&&this._labelView,s=n.axis.getStartAngle(),a=n.axis.getPos(i.rd,n.options.startValue),u=n.axis.getPos(i.rd,n.options.endValue);if(r.setSector({cx:i.cx,cy:i.cy,rx:u,ry:u,innerRadius:a/u,start:s,angle:yS,clockwise:!0}),o){var l=a+(u-a)/2;o.trans(i.cx+l*Xx(i.start),i.cy+l*Ux(i.start))}},e}(KN),tM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._views=new CE(e,kP),e}return Lx(e,t),e.prototype.prepare=function(){this._rows=[]},e.prototype.addAll=function(t,e){var i=this._rows;e.forEach((function(t){i.push.apply(i,Ox([],Tx(t.grid.rows.getRows()),!1))}))},e.prototype.layout=function(t,e,i){var n=this._rows;this._views.prepare(n.length),this._views.forEach((function(i,r){var o=n[r];if(o.axis._isHorz){var s=o.axis.getPos(t,o.from),a=o.axis.getPos(t,o.to);i.setPath(pk.rectangle(s,0,a-s,e))}else{var u=o.axis.getPos(e,o.from),l=o.axis.getPos(e,o.to);i.setPath(pk.rectangle(0,e-u,t,u-l))}i.setFill(o.color)}))},e}(xP),eM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._linePool=[],e._rangePool=[],e._views=[],e}return Lx(e,t),e.prototype.prepare=function(){for(var t=this._views;t.length;){var e=t.pop().remove();e instanceof QN?this._rangePool.push(e):this._linePool.push(e)}},e.prototype.setAll=function(t,e,i){var n=this;e.forEach((function(e){var r;e instanceof xV?r=n._rangePool.pop()||new QN(t,i):e instanceof wV&&(r=n._linePool.pop()||new JN(t,i)),n.add(r),r.prepare(t,e)}))},e.prototype.add=function(e){return this._views.push(e),t.prototype.add.call(this,e)},e}(xP),iM=function(t){function e(e){var i=t.call(this,e)||this;return i.ignorePointer(),i}return Lx(e,t),e.prototype.setModel=function(t){t!=this.model&&(this.model=t,this._bar=t.isBar(),this.setClass(this._bar?"rct-crosshair-bar":"rct-crosshair-line"))},e.prototype.layout=function(t,e,i,n,r){var o=this.model.axis,s=o._isHorz,a=new OC;if(this._bar){var u=o._isHorz?n:r,l=void 0;if(t?l=t.point.xValue:this.model.options.showAlways&&(l=o.options.reversed?o.xValueAt(s?n-e:i):o.xValueAt(s?e:r-i)),o instanceof xk&&(l=Wx(l)),!isNaN(l)){var h=o.getPos(u,l),p=o.getUnitLen(u,l);s?a.rect(h-p/2,0,p,r):a.rect(0,r-h-p/2,n,p)}}else(t||this.model.options.showAlways)&&(s?a.vline(e,0,r):a.hline(i,0,n));this.setPath(a.end())},e}(kP),nM=function(t){function e(i){var n=t.call(this,i,"Reset Zoom",e.CLASS_NAME)||this;return n.setVis(!1),n}return Lx(e,t),e.CLASS_NAME="rct-reset-zoom",e}(qE),rM=function(t){function e(i,n){var r=t.call(this,i,e.BODY_CLASS)||this;return r._gridViews=new Map,r._baseViews=new Map,r._breakViews=[],r._seriesViews=[],r._seriesMap=new Map,r._annotationViews=[],r._annotationMap=new Map,r._gaugeViews=[],r._gaugeMap=new Map,r._owner=n,r.add(r._hitTester=new ck(i)),r._hitTester.setFill("transparent"),r.add(r._background=new ck(i,"rct-body-background")),r.add(r._image=new IE(i,!0,"rct-body-image")),r.add(r._gridRowContainer=new tM(i,"rct-axis-grid-rows")),r.add(r._gridContainer=new xP(i,"rct-axis-grids")),r.add(r._baseContainer=new xP(i,"rct-axis-bases")),r.add(r._guideContainer=new eM(i,"rct-axis-guides")),r.add(r._annotationContainer=new xP(i,"rct-annotations")),r.add(r._seriesContainer=new xP(i,"rct-series-container")),r.add(r._axisBreakContainer=new xP(i,"rct-axis-breaks")),r.add(r._labelContainer=new xP(i,"rct-label-container")),r.add(r._frontGuideContainer=new eM(i,"rct-front-axis-guides")),r.add(r._frontAnnotationContainer=new xP(i,"rct-front-annotations")),r.add(r._feedbackContainer=new xP(i,"rct-feedbacks")),r.add(r._zoomButton=new nM(i)),r._crosshairViews=new CE(r._feedbackContainer,iM),r}return Lx(e,t),e.prototype.getAnnotationAnchor=function(t){return this._gaugeMap.get(t)||this._annotationMap.get(t)},e.prototype.prepareRender=function(t,e){this._animatable=bP._animatable&&e.animatable(),this._prepareSeries(t,e,e._getSeries().getVisibleSeries()),this._prepareGauges(t,e,e._getGauges().getVisibles()),this._prepareAnnotations(t,e._body.getAnnotations())},e.prototype.prepareGuideContainers=function(){this._guideContainer.prepare(),this._frontGuideContainer.prepare()},e.prototype.pointerMoved=function(t,e){var i,n,r=this.width,o=this.height,s=t.x>=0&&t.x<r&&t.y>=0&&t.y<o;if(e instanceof SVGElement&&(e.classList.contains(kL.POINT_CLASS)||e.parentElement instanceof SVGElement&&e.parentElement.classList.contains(kL.POINT_CLASS)))for(var a=this._seriesViews.length-1;a>=0;a--)if(n=this._seriesViews[a].pointByDom(e)){i=this._seriesViews[a];break}var u=null==e?void 0:e.classList,l=(null==u?void 0:u.value)&&(u.contains("rct-contextmenu-item")||u.contains("rct-contextmenu-list")),h=s&&!this._zoomRequested&&!this.chart().isEmpty(!0)&&!l;if(this._crosshairViews.forEach((function(e){e.setVis(h)&&e.layout(n,t.x,t.y,r,o)})),n)this.$_setFocused(i,n,t);else{var p,c,f=this.chart()._chartOptions.pointHovering.getHintDistance(null==i?void 0:i.model);i=null,this._seriesViews.forEach((function(e){if(e.getHintDistance&&(p=tS(e.getHintDistance(),f))>0){var n=void 0;e.model.isMarker()&&(n=e.getNearest(t.x,t.y)),(!c||n.dist<c.dist)&&(i=e,c=n)}})),s&&c&&i.canHover(c.dist,c.pv,p)?this.$_setFocused(i,c.pv,t):this.$_setFocused(null,null,t)}return s},e.prototype.hoverSeries=function(t){var e=this._seriesMap.get(t);this.$_hoverSeries(e)},e.prototype.$_setFocused=function(t,e,i){var n,r,o,s=this,a=this._focused,u=this._siblings,l=this._siblingSeries;if(t&&e)switch(this.chart()._chartOptions.pointHovering.getScope(t.model,e.point)){case"axis":o=t.model._xAxisObj.getSeries();case"group":o||(o=t.model._group.getVisibleSeries());var h=o.map((function(t){if(t instanceof $k){for(var n=void 0,r=Number.MAX_SAFE_INTEGER,o=0;o<t.getPoints().count;o++){var s=t.getPoints().get(o),a=void 0;if(t instanceof NC){var u=(t._xAxisObj._vlen<t._yAxisObj._vlen?t._xAxisObj:t._yAxisObj)._vlen,l=t.getPixelMinMax(u),h=l.min,p=l.max,c=t.getRadius(s.zValue,h,p);a=Math.sqrt(Math.pow(s.xPos-i.x,2)+Math.pow(s.yPos-i.y,2))-c}else a=Math.sqrt(Math.pow(s.xPos-i.x,2)+Math.pow(s.yPos-i.y,2));a<r&&(r=a,n=s)}return n}return t.getPoints().pointAt(e.point.xValue)}));n=o.map((function(t){return s._owner.getSeriesView(t)})),r=[],h.forEach((function(t,e){r.push(n[e].getPointView(t))}));break;default:n=[t],r=[e]}var p=[];if(n&&n.forEach((function(t,e){p.push.apply(p,Ox([],Tx(t.getSiblings(r[e])),!1))})),p=p.length>1?p.sort((function(t,e){return t.hash-e.hash})):p.length>0?p:null,sS.equalArrays(u,p)||(n&&n.forEach((function(t,e){t.hoverPoints(t.getSiblings(r[e]))})),l&&l.forEach((function(t){(!n||n.indexOf(t)<0)&&t.hoverPoints(null)})),this._siblingSeries=n,this._siblings=p),e!==a){var c=this._focusedSeries;this._focused=e,t!==c&&(c&&this.$_focusSeries(c,!1),this._focusedSeries=t,t&&this.$_focusSeries(t,!0),this.chart()._chartOptions.options.seriesHovering&&this.$_hoverSeries(t))}!this._focused||this._focused===a&&this._owner.tooltipVisible()&&!this.model.chart._tooltip.isFollowPointer(t.model)?!this._focused&&this._owner.tooltipVisible()&&this._owner.hideTooltip():i.x>0&&i.x<this.width&&i.y>0&&i.y<this.height?this._owner.showTooltip(t.model,e,[],this,i):this._owner.hideTooltip()},e.prototype.$_focusSeries=function(t,e){e?t.model._group?t.front(this._seriesViews,this._seriesViews.filter((function(e){return e.model._group===t.model._group}))):t.front(this._seriesViews):t&&t.parent&&t.back(this._seriesViews)},e.prototype.$_hoverSeries=function(t){this._seriesViews.forEach((function(e){e.setBoolData(kL.DATA_UNHOVER,t&&e!==t),e._labelContainer.setBoolData(kL.DATA_UNHOVER,t&&e!==t)}))},e.prototype.seriesByDom=function(t){return this._seriesViews.find((function(e){return e.dom.contains(t)}))},e.prototype.findSeries=function(t){return this._seriesMap.get(t)},e.prototype.isConnected=function(t){return!!this._seriesViews.find((function(e){return e.model._xAxisObj==t||e.model._yAxisObj==t}))},e.prototype.getButton=function(t){if(this._zoomButton.contains(t))return this._zoomButton},e.prototype.buttonClicked=function(t){t===this._zoomButton&&(this.model.chart._getXAxes().resetZoom(),this.model.chart._getYAxes().resetZoom())},e.prototype.addFeedback=function(t){t&&this._feedbackContainer.add(t)},e.prototype.setZoom=function(t,e,i,n){var r=this.chart(),o=r.isInverted(),s=r.xAxis,a=o?this.height:this.width,u=s.valueAt(a,o?a-n:t),l=s.valueAt(a,o?a-e:i);s.zoom(u,l)&&(this._zoomRequested=!0)},e.prototype.animating=function(){var t,e,i=!1;try{for(var n=Mx(this._seriesViews),r=n.next();!r.done;r=n.next()){var o=r.value;if(o.visible&&o._animating()){i=!0;break}}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return i},e.prototype.getTooltipPos=function(){return{x:this.tx,y:this.ty}},e.prototype.getFocusPointView=function(){return this._focused},e.prototype.hoverPoints=function(t,e){this._seriesViews.forEach((function(i){i.hoverPoints(i.getPointsAt(t,e))}))},e.prototype.getSeries=function(t){return this._seriesViews.find((function(e){return e.model===t}))},e.prototype.removeFocus=function(){this._seriesViews.forEach((function(t){t._hoverPts.forEach((function(e){e instanceof OL&&e.endHover(t,!1),e.setBoolData(kL.DATA_HOVER,!1)})),t._hoverPts=[],t._hoverAnis.forEach((function(t){t.stop()})),t._hoverAnis=[]})),this._owner.hideTooltip(),this._focused=null,this._siblings=null,this._siblingSeries=null},e.prototype.getBounds=function(){return this._hitTester.getBounds()},e.prototype._doMeasure=function(t,e,i,n,r){var o,s,a=this,u=e.chart,l=e.base();if(this._polar=u.isPolar(),this._zoomRequested=!1,this._seriesClip||(this._seriesClip=this.control.clipBounds(),this._seriesClip2=this.control.clipBounds(),this._bodyClip=this.control.clipBounds()),this._background.setStyleOrClass(l._style),l!==e&&this._background.internalSetStyleOrClass(e._style),this._background.setBoolData("polar",this._polar||u.isWidget()),this._seriesViews.forEach((function(e,o){e.measure(t,a._series[o],i,n,r)})),!this._polar){this.$_prepareGrids(t,u);try{for(var h=Mx(this._gridViews.keys()),p=h.next();!p.done;p=h.next()){var c=p.value;this._gridViews.get(c).measure(t,c.grid,i,n,r)}}catch(t){o={error:t}}finally{try{p&&!p.done&&(s=h.return)&&s.call(h)}finally{if(o)throw o.error}}this.$_prepareAxisBreaks(t,u)}return this._gaugeViews.forEach((function(e,o){e.measure(t,a._gauges[o],i,n,r)})),this._annotationViews.forEach((function(e,o){e.measure(t,a._annotations[o],i,n,r)})),this._zoomButton.setVis(e.zoomButton.visible)&&this._zoomButton.layout(),{width:i,height:n}},e.prototype._clipSeries=function(t,e,i){var n=i?this._seriesClip:this._seriesClip2;t&&t.setClip(n),e&&e.setClip(n)},e.prototype._doLayout=function(){var t,e,i,n,r=this,o=this.width,s=this.height,a=this._image;if(this._inverted?(this._seriesClip.setBounds(0,-o,s,o),this._seriesClip2.setBounds(0,0,o,s)):(this._seriesClip.setBounds(0,0,o,s),this._seriesClip2.setBounds(0,0,o,s)),this._bodyClip.setBounds(0,0,o,s),this._hitTester.resize(o,s),this._background.resize(o,s),a.setVis(a.setImage(this.model.image.options.url,o,s))&&a.setStyleOrClass(this.model.image._style),this._seriesViews.forEach((function(t){t.model.needClip(!1)&&r._clipSeries(t.getClipContainer(),t.getClipContainer2(),t.clipInvertable()),t.resize(o,s),t.trans(0,0),t.layout()})),this._seriesViews.forEach((function(t){t.afterLayout()})),!this._polar){try{for(var u=Mx(this._gridViews.values()),l=u.next();!l.done;l=u.next()){(c=l.value).resize(o,s),c.layout()}}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}try{for(var h=Mx(this._baseViews.values()),p=h.next();!p.done;p=h.next()){var c,f=(c=p.value).tag;c.setStyleOrClass(f.baseLine._style),f._isHorz?c.setVLine(f.getPos(o,f.getBaseValue()),0,s):c.setHLine(f.getPos(s,f.getBaseValue()),0,o)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}this._breakViews.forEach((function(t){var e=t._model,i=e.axis;i._isHorz?i.options.reversed?t.trans(o-e._sect.pos,0):t.trans(e._sect.pos,0):i.options.reversed?t.trans(0,e._sect.pos):t.trans(0,s-e._sect.pos-e._sect.len),t.layout(o,s,e.axis._isHorz)}));var _=this.control;if(this._guideClip)this._guideClip.resize(_.width(),_.height());else{var d=_._padding;this._guideClip=_.clipBounds(-1*(d.left+this.tx),-1*(d.top+this.ty),_.width(),_.height())}[this._guideContainer,this._frontGuideContainer].forEach((function(t){t._views.forEach((function(t){return t.setVis(t.model.visible)&&t.layout(o,s)})),t.setClip(r._guideClip)})),this._gridRowContainer.layout(o,s,!1)}this.$_prepareCrosshairs(this.chart()),this._gaugeViews.forEach((function(t){t.resizeByMeasured(),t.layout().transp(t.getPosition(o,s))})),this._layoutAnnotations(this._inverted,this,o,s),this._zoomButton.visible&&this._zoomButton.trans(o-this._zoomButton.getBBox().width-10,10)},e.prototype.$_createGaugeView=function(t,e){return new(iL[e._type()])(t)},e.prototype.$_prepareGrids=function(t,e){var i,n,r,o,s=e._needAxes(),a=this._gridContainer,u=this._gridViews,l=this._baseContainer,h=this._baseViews;try{for(var p=Mx(u.keys()),c=p.next();!c.done;c=p.next()){var f=c.value;s&&e.containsAxis(f)&&f.grid.visible||(u.get(f).remove(),u.delete(f))}}catch(t){i={error:t}}finally{try{c&&!c.done&&(n=p.return)&&n.call(p)}finally{if(i)throw i.error}}try{for(var _=Mx(h.keys()),d=_.next();!d.done;d=_.next()){f=d.value;(!s||!e.containsAxis(f)||f instanceof hA&&!f.baseLine.visible||!f.isBaseVisible())&&(h.get(f).remove(),h.delete(f))}}catch(t){r={error:t}}finally{try{d&&!d.done&&(o=_.return)&&o.call(_)}finally{if(r)throw r.error}}s&&[e._getXAxes(),e._getYAxes()].forEach((function(e){return e.forEach((function(e){var i=e.grid;if(!u.has(e)&&(i.visible||i.options.firstVisible||i.options.lastVisible)){var n=new qN(t);u.set(e,n),a.add(n)}if(e instanceof hA&&e.baseLine.visible&&e.isBaseVisible()&&!h.has(e)){n=new hC(t,"rct-axis-baseline");h.set(e,n),l.add(n),n.tag=e}}))}))},e.prototype._prepareSeries=function(t,e,i){var n,r,o=this,s=this._inverted=e.isInverted(),a=this._seriesMap,u=this._seriesViews;try{for(var l=Mx(a.keys()),h=l.next();!h.done;h=l.next()){var p=h.value;i.indexOf(p)<0&&(a.get(p).remove(),a.delete(p))}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}this._series=i,u.forEach((function(t){i.indexOf(t.model)<0&&(o.control.loaded?t.removeLater(200):t.remove(),t._labelContainer.remove())})),u.length=0,i.forEach((function(i){var n=a.get(i)||XN(t,i);n._setChartOptions(s,o._animatable,e.loadAnimatable()),n.parent||(o._seriesContainer.add(n),o._labelContainer.add(n._labelContainer)),a.set(i,n),u.push(n),n.prepareSeries(t,i)})),this._seriesContainer.sort(u),u.forEach((function(t){return o._labelContainer.dom.appendChild(t._labelContainer.dom)}))},e.prototype._prepareGauges=function(t,e,i){var n,r,o=this,s=this._seriesContainer,a=e.isInverted(),u=this._gaugeMap,l=this._gaugeViews;try{for(var h=Mx(u.keys()),p=h.next();!p.done;p=h.next()){var c=p.value;i.indexOf(c)<0&&(u.get(c).remove(),u.delete(c))}}catch(t){n={error:t}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}this._gauges=i,l.forEach((function(t){return t.remove()})),l.length=0,i.forEach((function(i){var n=u.get(i)||o.$_createGaugeView(t,i);s.add(n),u.set(i,n),l.push(n),n.prepareGauge(t,i),n._setChartOptions(a,o._animatable,e.loadAnimatable())}))},e.prototype._prepareAnnotations=function(t,e){var i,n,r=this._annotationContainer,o=this._frontAnnotationContainer,s=this._annotationMap,a=this._annotationViews;try{for(var u=Mx(s.keys()),l=u.next();!l.done;l=u.next()){var h=l.value;e.indexOf(h)<0&&(s.get(h).remove(),s.delete(h))}}catch(t){i={error:t}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}a.forEach((function(t){return t.remove()})),a.length=0,(this._annotations=e).forEach((function(e){var i=s.get(e)||YN(t,e);(e.options.front?o:r).add(i),s.set(e,i),a.push(i)}))},e.prototype.$_prepareAxisBreaks=function(t,e){var i=this._axisBreakContainer,n=this._breakViews,r=[];for([e._getXAxes(),e._getYAxes()].forEach((function(t){return t.forEach((function(t){t instanceof pA&&r.push.apply(r,Ox([],Tx(t.runBreaks()||[]),!1))}))}));n.length<r.length;){var o=new ZN(t);i.add(o),n.push(o)}for(;n.length>r.length;)n.pop().remove();n.forEach((function(t,e){return t.setModel(r[e])}))},e.prototype.$_prepareCrosshairs=function(t){var e=this,i=this._crosshairViews,n=[];[t._getXAxes(),t._getYAxes()].forEach((function(t){return t.forEach((function(t){t.crosshair.visible&&n.push(t.crosshair)}))})),i.prepare(n.length,(function(t,i){t.setModel(n[i]),t.setClip(e._bodyClip)}))},e.prototype._layoutAnnotations=function(t,e,i,n){var r=this;this._annotationViews.length>0&&this._annotationViews.forEach((function(o){o._layoutView(t,e,0,0,i,n),o.setClip(r._polar||o.model.options.noClip?_S:r._bodyClip)}))},e.BODY_CLASS="rct-body",e}(RE),oM=function(t){function e(e){var i=t.call(this,e,sM.HANDLE_STYLE)||this;return i.add(i._back=new ck(e)),i.add(i._shape=new kP(e)),i._shape.setFill("white"),i}return Lx(e,t),e.prototype.layout=function(t,e,i){if(t!==this._w||e!==this._h||i!==this._vertical){var n=1.3*Kx(t,e),r=new OC;this._back.rect={x:-n/2,y:-n/2,width:n,height:n,rx:n/2},n/=3,r.polygon(-n-1,0,-1,-n,-1,n),r.polygon(n+1,0,1,-n,1,n),this._shape.setPath(r.end()),this._w=this.width=t,this._h=this.height=e,this._vertical=i}},e}(wP),sM=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._back=new ck(i,e.BACK_STYLE)),n.add(n._container=new xP(i,null)),n.add(n._mask=new ck(i,e.MASK_STYLE)),n.add(n._trackView=new ck(i,e.TRACK_CLASS)),n.add(n._thumbView=new ck(i,e.THUMB_CLASS)),n.add(n._startHandle=new oM(i)),n.add(n._endHandle=new oM(i)),n._startHandle.setStyle("cursor","ew-resize"),n._endHandle.setStyle("cursor","ew-resize"),n._mask.setStyle("cursor","ew-resize"),n._mask.dom.addEventListener("dblclick",(function(){n.model.axis()._zoom&&n.model.axis().resetZoom()})),n}return Lx(e,t),e.isHandle=function(t){var i;return null===(i=t.parentElement)||void 0===i?void 0:i.classList.contains(e.HANDLE_STYLE)},e.isMask=function(t){return t.classList.contains(e.MASK_STYLE)},e.prototype.dblClick=function(t){var e=this.model.axis();return this._startHandle.contains(t)?(e.zoom(e._zoom.min,e._zoom.end),!0):this._endHandle.contains(t)?(e.zoom(e._zoom.start,e._zoom.max),!0):void(this.contains(t)&&e.resetZoom())},e.prototype.svgToElement=function(t,e){return this.control.svgToElement(this._back,t,e)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._naviChart;o.firstSeries;var s=i,a=n;return e._vertical?s=e.getSize():a=e.getSize(),e._naviChart.layoutAxes(s,a,!1,1),this.$_prepareSeriesView(t,o),this.$_prepareXAxisView(t,o),this.$_prepareYAxisView(t,o),e._naviChart.xAxis._calcPoints(s,101),e._naviChart.yAxis._calcPoints(a,1),{width:s,height:a}},e.prototype._doLayout=function(t){var e=this.model,i=e.axis()._zoom,n=this.width,r=this.height;if(this._back.resize(n,r),e._vertical);else{var o=i?(i.start-i.min)*n/i.total():0,s=i?(i.end-i.min)*n/i.total():n;this._mask.setBounds(o,0,s-o,r),this._trackView.setBounds(-2,r,n+4,6),this._trackView.setRadius(4),this._thumbView.setBounds(o,r,s-o,6),this._startHandle.layout(r/3,r/3,!1),this._startHandle.trans(o,r+3),this._endHandle.layout(r/3,r/3,!1),this._endHandle.trans(s,r+3)}this._seriesView&&(this._seriesView.measure(this.doc,e._naviChart.firstSeries,n,r,1),this._seriesView.resize(n,r),this._seriesView.layout(),this._seriesView.afterLayout()),this._xAxisView&&(this._xAxisView.measure(this.doc,e._naviChart.xAxis,n,r,1),this._xAxisView.resize(n,r),this._xAxisView.layout()),this._yAxisView.setVis(!1)},e.prototype.$_prepareSeriesView=function(t,e){var i=e.firstSeries,n=this._seriesView;n&&n.model!==i&&(n.remove(),n=this._seriesView=null),n||(this._container.add(n=this._seriesView=XN(t,i)),n._simpleMode=!0),n&&n.prepareSeries(t,i)},e.prototype.$_prepareXAxisView=function(t,e){var i=e.xAxis,n=this._xAxisView;n&&n.model!==i&&(n.remove(),n=this._xAxisView=null),n||(this._container.add(n=this._xAxisView=new UE(t)),n._simpleMode=!0)},e.prototype.$_prepareYAxisView=function(t,e){var i=e.yAxis,n=this._yAxisView;n&&n.model!==i&&(n.remove(),n=this._yAxisView=null),n||(this._container.add(n=this._yAxisView=new UE(t)),n._simpleMode=!0)},e.CLASS_NAME="rct-navigator",e.BACK_STYLE="rct-navigator-back",e.MASK_STYLE="rct-navigator-mask",e.HANDLE_STYLE="rct-navigator-handle",e.HANDLE_BACK_STYLE="rct-navigator-handle-back",e.TRACK_CLASS="rct-navigator-track",e.THUMB_CLASS="rct-navigator-thumb",e}(RE),aM=function(t){function e(e){var i=t.call(this)||this;return i.chart=e,i}return Lx(e,t),e}(NP),uM=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r._body=i,r._vertical=n,r}return Lx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this.chart.getBounds(),s=this._body.getBounds();return this._xStart=e-(s.x-o.x),this._yStart=i-(s.y-o.y),this._body.addFeedback(this._feedback=new ck(this.chart.doc(),"rct-zoom-tracker")),!0},e.prototype._doEnded=function(t,e){var i=this.chart.getBounds(),n=this._body.getBounds();this._vertical?(e-=n.y-i.y,this._body.setZoom(0,Kx(this._yStart,e),this._body.width,Jx(this._yStart,e))):(t-=n.x-i.x,this._body.setZoom(Kx(this._xStart,t),0,Jx(this._xStart,t),this._body.height)),this._feedback.remove()},e.prototype._doDrag=function(t,e,i,n,r){var o=this.chart.getBounds(),s=this._body.getBounds();return this._vertical?(r=Math.max(0,Math.min(s.height,r-(s.y-o.y))),this._feedback.setBounds(0,Kx(this._yStart,r),this._body.width,Qx(this._yStart-r))):(n=Math.max(0,Math.min(s.width,n-(s.x-o.x))),this._feedback.setBounds(Kx(this._xStart,n),0,Qx(this._xStart-n),this._body.height)),!0},e}(aM),lM=function(t){function e(e,i){var n=t.call(this,e)||this;return n._view=i,n}return Lx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this._view,s=o.model.axis._zoom;if(s){var a=o._thumbView.elementToSvg(0,0);return this._startOff=o._vertical?i-a.y:e-a.x,this._zoomLen=s.length(),!0}return!1},e.prototype._doDrag=function(t,e,i,n,r){var o,s=this._view;return s._vertical?(o=s.svgToElement(n,r).y-this._startOff,o=s.getZoomPos(s.height-o-s._thumbView.height),s.model.axis.zoom(o,o+this._zoomLen)):(o=s.svgToElement(n,r).x-this._startOff,o=s.getZoomPos(o),s.model.axis.zoom(o,o+this._zoomLen),console.log(o)),!0},e}(aM),hM=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r._view=i,(r._isStart=i._startHandle.contains(n))?r._handleView=i._startHandle:r._handleView=i._endHandle,r}return Lx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this._handleView,s=o.elementToSvg(0,0);return this._startOff=o._vertical?i-s.y-o.height/2:e-s.x-o.width/2,this._handleView.setBoolData("select",!0),!0},e.prototype._doEnded=function(t,e){this._handleView.setBoolData("select",!1)},e.prototype._doDrag=function(t,e,i,n,r){var o=this._view,s=o.model.axis();s._prepareZoom();var a=o.svgToElement(n,r).x-this._startOff,u=s._zoom.total(),l=s._zoom.min,h=o.model.options.minSize;return this._handleView._vertical?this._isStart:this._isStart?a>0?s.zoom(a*u/o.width+l,NaN,h):s.zoom(l,NaN,h):a>0&&a<o.width?s.zoom(NaN,a*u/o.width+l,h):a>=o.width&&s.zoom(NaN,s._zoom.max,h),!0},e}(aM),pM=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r._view=i,r._maskView=i._mask,r}return Lx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this._view.model.axis(),s=this._maskView.elementToSvg(0,0);return this._startOff=this._view.model._vertical?i-s.y:e-s.x,this._totalLen=o._zoom.total(),this._zoomLen=o._zoom.length(),!0},e.prototype._doEnded=function(t,e){},e.prototype._doDrag=function(t,e,i,n,r){var o=this._view,s=o.svgToElement(n,r).x-this._startOff;return o.model._vertical?this.$_moveZoom(s*this._totalLen/o.height):this.$_moveZoom(s*this._totalLen/o.width),!0},e.prototype.$_moveZoom=function(t){var e=this._view.model;t=Jx(0,Kx(t,this._totalLen-this._zoomLen))+e.axis()._zoom.min,e.axis().zoom(t,t+this._zoomLen)},e}(aM),cM=function(){function t(t){this._chart=t}return t.prototype.handleDown=function(t){if(t.isPrimary){var e=this._clickElement=t.target;if(e){var i=this.$_pointerToPoint(t);this._dragTracker&&this.$_stopDragTracker(t,e,i.x,i.y),this._prevX=this._clickX=i.x,this._prevY=this._clickY=i.y}}},t.prototype.handleUp=function(t){this.isDragging()&&this.$_stopDragTracker(t,t.target,this._prevX,this._prevY)},t.prototype.handleMove=function(t){var e=this._chart.chartView(),i=this.$_pointerToPoint(t),n=i.x,r=i.y;if(t.buttons>=1||0===t.buttons&&0===t.button){var o=this.isDragging(),s=this._clickElement;n<0||n>=e.control.dom().offsetWidth||r<0||r>=e.control.dom().offsetHeight||(o?this.$_doDrag(t,s,n,r):(!this._dragTracker&&(Qx(this._clickX-n)>3||Qx(this._clickY-r)>3)||this._dragTracker&&!o)&&this.$_startMove(t,s,n,r))}this._prevX=n,this._prevY=r,this.isDragging()?(e.pointerMoved(-1,-1,null),this._stopEvent(t)):e.getButton(t.target)||e.pointerMoved(t.pointX,t.pointY,t.target)},t.prototype.handleClick=function(t){var e,i,n,r=this._chart.chartView(),o=this._clickElement,s=r.getButton(o);if(s)!0!==s.click()&&r.buttonClicked(s);else if(i=r.legendByDom(o))if(i.source instanceof dk){var a=i.source,u=this._chart.model.seriesByPoint(a);if(u){u.setPointVisible(a,!a.visible);var l=this._chart.chartView().findSeriesView(u);l instanceof BL&&l.togglePointVisible(a)}}else i.source.visible=!i.source.visible,r.bodyView().hoverSeries(i.source.visible?i.source:null);else(n=r.seriesByDom(o))?n.clicked(o):(e=r.creditByDom(o))&&e.clicked(o)},t.prototype.handleDblClick=function(t){var e=this._chart.chartView()._navigatorView,i=this._clickElement;!e.visible||e.dblClick(i)},t.prototype.handleWheel=function(t){},Object.defineProperty(t.prototype,"dragTracker",{get:function(){return this._dragTracker},enumerable:!1,configurable:!0}),t.prototype.setDragTracker=function(t){t!=this._dragTracker&&(this._dragTracker&&this._dragTracker.cancel(),this._dragTracker=t)},t.prototype.isDragging=function(){return this._dragTracker&&this._dragTracker.dragging},t.prototype._stopEvent=function(t){t.cancelable&&t.preventDefault(),t.stopImmediatePropagation()},t.prototype.$_pointerToPoint=function(t){var e=this._chart.svg().getBoundingClientRect();return{x:t.clientX-e.left,y:t.clientY-e.top}},t.prototype._getDragTracker=function(t,e,i){var n=this._chart.chartView(),r=n.bodyOf(t);return YE.isThumb(t)?new lM(this._chart,n.getScrollView(t)):sM.isHandle(t)?new hM(this._chart,n._navigatorView,t):sM.isMask(t)&&r&&r.model.isZoomed()?new pM(this._chart,n._navigatorView,t):r&&r.model.canZoom()&&r.contains(t)?new uM(this._chart,r,n._inverted):void 0},t.prototype.$_doDrag=function(t,e,i,n){if(!this.$_drag(e,this._prevX,this._prevY,i,n))return this.$_stopDragTracker(t,e,i,n,!0),this._stopEvent(t),!0},t.prototype.$_startMove=function(t,e,i,n){this.$_startDrag(e,this._prevX,this._prevY,i,n)&&(i!==this._prevX||n!==this._prevY?this.$_doDrag(t,e,i,n):this._stopEvent(t),this._chart.setPointerCapture(t))},t.prototype.$_startDrag=function(t,e,i,n,r){if(this._dragTracker||this.setDragTracker(this._getDragTracker(t,n-e,r-i)),this._dragTracker){if(this._dragTracker.start(t,e,i,n,r))return!0;this._dragTracker=null}return!1},t.prototype.$_drag=function(t,e,i,n,r){return this._dragTracker.drag(t,e,i,n,r)},t.prototype.$_stopDragTracker=function(t,e,i,n,r){void 0===r&&(r=!1),this.isDragging()&&(this._chart.releasePointerCapture(t),r?this._dragTracker.cancel():this._dragTracker.drop(null,i,n),this._dragTracker=null)},t}(),fM=function(t){function e(i){var n=t.call(this,i,e.TITLE_CLASS)||this;return n._itemViews=[],n._separators=[],n.itemGap=8,n.setVis(!1),n}return Lx(e,t),e.prototype.setHistory=function(t,e){if(this.setVis(e&&e.length>0)){for(var i=this._itemViews,n=this._separators;i.length<e.length;){(r=new TP(t,"rct-history-item")).anchor=AP.START,i.push(r)}for(;i.length>e.length;)i.pop().remove();for(;n.length<e.length-1;){var r;(r=new TP(t)).anchor=AP.START,r.text=">",n.push(r)}for(;n.length>e.length-1;)n.pop().remove();this.$_layout(e)}},e.prototype.$_layout=function(t){for(var e=this._itemViews,i=this._separators,n=this.itemGap,r=t.length,o=0,s=0;s<r;s++)e[s].text=t[s].name,e[s].transX(o),s<r-1&&(o+=e[s].width+n,i[s].transX(o),o+=i[s].width+n)},e.TITLE_CLASS="rct-history",e}(xP),_M=function(t){function e(e){var i=t.call(this,e,"rct-legend-item")||this;return i.add(i._back=new ck(e)),i._back.setFill("transparent"),i._back.setStroke("none"),i.add(i._label=new TP(e,"rct-legend-item-label")),i._label.anchor=AP.START,i}return Lx(e,t),e.prototype.setMarker=function(t){t!==this._marker&&(this._marker&&this._marker.remove(),this.insertFirst(this._marker=t))},e.prototype._doMeasure=function(t,e,i,n,r){this._label.setBoolData("hidden",!e.source.visible),this._marker.setBoolData("hidden",!e.source.visible),this._label.text=e.text()||"…";var o=this._rMarker=this._marker.setVis(e.legend.options.markerVisible)?this._marker.getBBox():EE,s=NE(this._label.getBBox());return this._gap=tS(e.legend.options.markerGap,0),{width:o.width+this._gap+s.width,height:Jx(o.height,s.height)}},e.prototype._doLayout=function(t){var e=this._rMarker,i=tS(t,e.width);this._back.setBounds(0,0,this.width,this.height),this._marker.visible&&this._marker.trans((i-e.width)/2,(this.height-e.height)/2),this._label.trans(i+this._gap,(this.height-this._label.getBBox().height)/2)},e}(RE),dM=function(t){function e(i){var n=t.call(this,i,e.LEGEND_CLASS,"rct-legend-background")||this;return n._itemViews=new CE(n,_M),n}return Lx(e,t),e.prototype.legendByDom=function(t){var e=this._itemViews.elementOf(t);return e&&e.model},e.prototype.legendOfSeries=function(t){return this._itemViews.find((function(e){return e.model.source===t}))},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e.options,s=e.items(),a=this._vertical="vertical"===e.getLayout();return this._ipr=tS(o.itemsPerLine,Number.MAX_SAFE_INTEGER),this._gap="body"!==e._location?tS(o.gap,0):0,a?n=e.getMaxHeight(n):i=e.getMaxWidth(i),this.$_prepareItems(t,s),this.$_measure(t,e,a,this._ipr,i,n)},e.prototype._doLayout=function(){var t,e=this,i=this.model.options,n=this._rowViews,r=i.useTextColor,o=this._sizes,s=i.itemsAlign,a=i.lineGap||0,u=i.itemGap||0,l=this._margins,h=this._paddings,p=this._vertical,c=l.left+h.left,f=l.top+h.top,_=c,d=f;this._itemViews.forEach((function(t){var e=t.model.source,i=e.legendColor();t._marker.setColor(i),r&&e.visible?t._label.setFill(i):t._label.setFill("")})),n.forEach((function(i,n){p?(i.forEach((function(t){t.mw=o[n],t.resizeByMeasured().layout(e._wMarkers[n])})),d=f,"center"!==s&&"end"!==s||(t=i.map((function(t){return t.height})).reduce((function(t,e){return t+e}))+u*(i.length-1)+l.top+l.bottom+h.top+h.bottom,d+="center"===s?(e.height-t)/2:e.height-t),i.forEach((function(t){t.trans(_,d),d+=t.height+u})),_+=o[n]+a):(i.forEach((function(t){t.resizeByMeasured().layout(NaN)})),_=c,"center"!==s&&"end"!==s||(t=i.map((function(t){return t.width})).reduce((function(t,e){return t+e}))+u*(i.length-1)+l.left+l.right+h.left+h.right,_+="center"===s?(e.width-t)/2:e.width-t),i.forEach((function(t){t.trans(_,d),_+=t.width+u})),d+=o[n]+a)}))},e.prototype.$_prepareItems=function(t,e){this._itemViews.prepare(e.length)},e.prototype.$_measure=function(t,e,i,n,r,o){var s,a,u,l,h=this,p=e.options,c=e.items(),f=this._itemViews,_=p.itemGap||0,d=p.lineGap||0,y=p.markerSize,g=f.count,v=this._rowViews=[],m=this._sizes=[];f.forEach((function(e,i){e.setMarker(c[i].source.legendMarker(t,y)),e.measure(t,c[i],r,o,1)}));var b=0,w=0;if(i){for(;b<g;)l=f.get(b),w%n==0?(v.push(u=[l]),a=l.mh,w++,b++):(a+=_+l.mh)<=o?(u.push(l),w++,b++):w=0;this._wMarkers=[],s=a=0,v.forEach((function(t,e){var i=0,n=0,r=0;t.forEach((function(t){n+=t.mh,i=Jx(i,t.mw),r=Jx(r,t._rMarker.width),t._col=e})),n+=_*(t.length-1),a=Jx(a,n),s+=i,m.push(i),h._wMarkers.push(r)})),s+=d*(v.length-1)}else{for(;b<g;)l=f.get(b),w%n==0?(v.push(u=[l]),s=l.mw,w++,b++):(s+=_+l.mw)<=r?(u.push(l),w++,b++):w=0;s=a=0,v.forEach((function(t){var e=0,i=0;t.forEach((function(t){e+=t.mw,i=Jx(i,t.mh)})),e+=_*(t.length-1),s=Jx(s,e),a+=i,m.push(i)})),a+=d*(v.length-1)}return{width:s,height:a}},e.LEGEND_CLASS="rct-legend",e}(DE),yM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.views=[],e._gap=0,e}return Lx(e,t),e.prototype.isEmpty=function(){return 0===this.views.length},e.prototype.prepare=function(t,e,i,n,r){var o=this.views,s=[];for(this.isX=e,i&&i._axes.forEach((function(t){s.push(t)}));o.length<s.length;){var a=new UE(t);this.add(a),o.push(a)}for(;o.length>s.length;)o.pop().remove();if(o.forEach((function(e,i){var r=s[i];r._runPos,e.model=s[i],n.forEach((function(i){i.forEach((function(i){i.isConnected(r)&&e.prepareGuides(t,i.row,i.col,i._guideContainer,i._frontGuideContainer)}))}))})),this.axes=s,this.setVis(o.length>0)){var u=o[0].model;this._gap=u.chart.getAxesGap()}},e.prototype.checkHeights=function(t,e,i){return this.views.length>0?this.$_checkHeights(this.views,t,e,i):0},e.prototype.$_checkHeights=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkHeight(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.checkWidths=function(t,e,i){return this.views.length>0?this.$_checkWidths(this.views,t,e,i):0},e.prototype.$_checkWidths=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkWidth(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.getScrollView=function(t){var e,i,n;try{for(var r=Mx(this.views),o=r.next();!o.done;o=r.next()){var s=o.value;if(null===(n=s._scrollView)||void 0===n?void 0:n.contains(t))return s._scrollView}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.setMargins=function(t,e,i,n){this.views.forEach((function(r){return r.setMargins(t,e,i,n)}))},e.prototype._setInverted=function(e){t.prototype._setInverted.call(this,e),this.isHorz=e&&!this.isX||!e&&this.isX},e.prototype._doMeasure=function(t,e,i,n,r){var o=this.axes;if(this.isHorz){var s=0;return this.views.forEach((function(e,a){s+=e.measure(t,o[a],i,n,r).height})),{width:i,height:s}}var a=0;return this.views.forEach((function(e,s){a+=e.measure(t,o[s],i,n,r).width})),{width:a,height:n}},e.prototype._doLayout=function(t){var e=this;this.isHorz?this.views.forEach((function(t){t.resize(e.width,t.mh),t.layout()})):this.views.forEach((function(t){t.resize(t.mw,e.height),t.transX(e.width-t.mw),t.layout()}))},e}(BE),gM=function(t){function e(e,i){var n=t.call(this,e,"rct-axis-container")||this;return n.isX=i,n.sections=[],n}return Lx(e,t),e.prototype.prepare=function(t,e,i,n){for(var r=this,o=this.isX?i.getRow(n):i.getColumn(n);this.sections.length<o.length;){var s=new yM(t);this.add(s),this.sections.push(s)}for(;this.sections.length>o.length;)this.sections.pop().remove();this.sections.forEach((function(s,a){r.isX?(s.row=n,s.col=a):(s.col=n,s.row=a),s.prepare(t,r.isX,o[a],e,i)}))},e.prototype.checkWidths=function(t,e,i){return this.sections.length>0?this.sections.reduce((function(n,r){return n+r.checkWidths(t,e,i)}),0):0},e.prototype.checkHeights=function(t,e,i){return this.sections.length>0?this.sections.reduce((function(n,r){return n+r.checkHeights(t,e,i)}),0):0},e.prototype._setInverted=function(e){t.prototype._setInverted.call(this,e),this._isHorz=e&&!this.isX||!e&&this.isX},e.prototype._doMeasure=function(t,e,i,n,r){var o=0,s=0;return this._isHorz?this.sections.forEach((function(o){s=Jx(s,o.measure(t,e,i,n,r).height)})):this.sections.forEach((function(s){o=Jx(o,s.measure(t,e,i,n,r).width)})),{width:o,height:s}},e.prototype._doLayout=function(t){var e=this;this._isHorz?this.height>0&&this.sections.forEach((function(i,n){i.resize(t[2*(n+1)]-t[2*(n+1)-1],e.height),i.trans(t[2*n+1]-t[1],0),i.layout()})):this.width>0&&this.sections.forEach((function(i,n){i.resize(e.width,t[2*(n+1)]-t[2*(n+1)-1]),i.trans(0,e.height-(t[2*(n+1)]-t[1])),i.layout()}))},e}(BE),vM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.row=0,e.col=0,e}return Lx(e,t),e.prototype.prepareRender=function(t,e){var i=this.row,n=this.col,r=e._split.getPane(i,n).body,o=e._getSeries().getPaneSeries(i,n),s=e._getGauges().getPaneVisibles(i,n);this._animatable=bP._animatable&&e.animatable(),this._prepareSeries(t,e,o),this._prepareGauges(t,e,s),this._prepareAnnotations(t,r.getAnnotations())},e.prototype.getTooltipPos=function(){return{x:this.parent.parent.tx+this.tx,y:this.parent.parent.ty+this.ty}},e}(rM),mM=function(t){function e(i,n){var r=t.call(this,i,e.STYLE_NAME)||this;return r._bodies=[],r._xContainers=[],r._yContainers=[],r._owner=n,r}return Lx(e,t),Object.defineProperty(e.prototype,"bodies",{get:function(){return this._bodies},enumerable:!1,configurable:!0}),e.prototype.bodyViewOf=function(t){return this._bodies.find((function(e){return e.contains(t)}))},e.prototype.prepare=function(t,e){e.chart,this.$_init(t),this._model=e,this.$_prepareBodies(t,e)},e.prototype.measure=function(t,e,i,n,r,o,s){var a=e.chart,u=this._inverted=e.chart.isInverted(),l=r,h=o;this.$_prepareAxes(t,i,!0),this.$_prepareAxes(t,n,!1),e.layoutAxes(r,o,u,s),u?(r-=this._xContainers.reduce((function(e,i){return e+i.checkWidths(t,r,o)}),0),o-=this._yContainers.reduce((function(e,i){return e+i.checkHeights(t,r,o)}),0)):(o-=this._xContainers.reduce((function(e,i){return e+i.checkHeights(t,r,o)}),0),r-=this._yContainers.reduce((function(e,i){return e+i.checkWidths(t,r,o)}),0)),e.layoutAxes(r,o,u,s),this._xContainers.forEach((function(e){return e.measure(t,a,r,o,s)})),this._yContainers.forEach((function(e){return e.measure(t,a,r,o,s)})),r=l,o=h,u?(r-=this._xContainers.reduce((function(t,e){return t+e.mw}),0),o-=this._yContainers.reduce((function(t,e){return t+e.mh}),0)):(o-=this._xContainers.reduce((function(t,e){return t+e.mh}),0),r-=this._yContainers.reduce((function(t,e){return t+e.mw}),0)),e.layoutAxes(r,o,u,s),this._xContainers.forEach((function(e){return e.measure(t,a,r,o,s)})),this._yContainers.forEach((function(e){return e.measure(t,a,r,o,s)}));var p=e.getXLens(u?o:r),c=e.getYLens(u?r:o);e.calcAxesPoints(p,c)},e.prototype.layout=function(){var t=this._model,e=this.width,i=this.height;this._back.resize(e,i),this.$_calcExtents(t,e,i),this.$_layoutAxes(t,!0,e,i),this.$_layoutAxes(t,!1,e,i),this.$_layoutBodies(t,e,i)},e.prototype.seriesByDom=function(t){var e,i;try{for(var n=Mx(this._bodies),r=n.next();!r.done;r=n.next()){var o=r.value.seriesByDom(t);if(o)return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.getSeries=function(t){var e,i;try{for(var n=Mx(this.bodies),r=n.next();!r.done;r=n.next()){var o=r.value.findSeries(t);if(o)return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.$_init=function(t){this._back||(this.add(this._back=new ck(t)),this._back.setStyles({fill:"none"}),this.add(this._bodyContainer=new xP(t,_S)),this.add(this._axisContainer=new xP(t,_S)))},e.prototype.$_prepareBodies=function(t,e){for(var i=e.chart,n=e.paneCount(),r=this._bodies,o=this._bodyMap=[];r.length<n;){var s=new vM(t,this._owner);this._bodyContainer.add(s),r.push(s)}for(;r.length>n;)r.pop().remove();for(var a=0;a<e.rowCount();a++){for(var u=[],l=0;l<e.colCount();l++){var h=r[a*e.colCount()+l];u.push(h),h.row=a,h.col=l}o.push(u)}r.forEach((function(e){e.prepareRender(t,i),e.prepareGuideContainers(),e._gridRowContainer.prepare()}))},e.prototype.$_prepareAxes=function(t,e,i){for(var n=this,r=i?this._xContainers:this._yContainers,o=i?e.rows():e.cols();r.length<o;){var s=new gM(t,i);this._axisContainer.add(s),r.push(s)}for(;r.length>o;)r.pop().remove();r.forEach((function(i,r){i.prepare(t,n._bodyMap,e,r)}))},e.prototype.$_calc=function(t,e,i,n){var r=new Array(2*(e+1)),o=i-t.reduce((function(t,e){return t+e[n]}),0),s=new Array(e),a=0,u=0;for(u=0;u<e;u++)s[u]=o/e;for(u=0;u<e;u++)r[2*u]=a,r[2*u+1]=a+=t[u][n],a+=s[u];return r[2*u]=a,r[2*u+1]=a+t[u][n],r},e.prototype.$_calcExtents=function(t,e,i){this._inverted?(this._rowPoints=this.$_calc(this._xContainers,t.rowCount(),e,"mw"),this._colPoints=this.$_calc(this._yContainers,t.colCount(),i,"mh")):(this._rowPoints=this.$_calc(this._xContainers,t.rowCount(),i,"mh"),this._colPoints=this.$_calc(this._yContainers,t.colCount(),e,"mw"))},e.prototype.$_layoutAxes=function(t,e,i,n){var r=this.control._padding,o=this._rowPoints,s=this._colPoints,a=e?this._xContainers:this._yContainers;if(this._inverted)if(e){var u=s[1],l=s[s.length-2]-u;a.forEach((function(t,e){t.resize(t.mw,l),t.trans(o[2*e],n-s[s.length-2]),t.layout(s)}))}else{var h=o[1],p=o[o.length-2]-h;a.forEach((function(t,e){for(var i=t.sections,a=0,u=i.length;a<u;a++){var l=i[a],c=0===a?r.left:0,f=a===u-1?r.right:0,_=0,d=0;u>1&&(_=o[2*a+1]-o[2*a],d=o[2*(a+1)+1]-o[2*(a+1)],0===a?i[a+1].isEmpty()?d=o[2*(a+1)]-o[2*(a+1)-1]:d/=2:a===u-1?i[a-1].isEmpty()?_=o[2*(a-1)]-o[2*(a-1)-1]:_/=2:(i[a-1].isEmpty()?_=o[2*(a-1)]-o[2*(a-1)-1]:_/=2,i[a+1].isEmpty()?d=o[2*(a+1)]-o[2*(a+1)-1]:d/=2)),l.setMargins(c,_,d,f)}t.resize(p,t.mh),t.trans(h,n-s[2*e+1]),t.layout(o)}))}else if(e){var c=s[1];i=s[s.length-2]-c,a.forEach((function(t,e){for(var u=t.sections,l=0,h=u.length;l<h;l++){var p=u[l],f=0===e?r.left:0,_=e===a.length-1?r.right:0,d=0,y=0;h>1&&(d=s[2*l+1]-s[2*l],y=s[2*(l+1)+1]-s[2*(l+1)],0===l?u[l+1].isEmpty()?y=s[2*(l+1)]-s[2*(l+1)-1]:y/=2:l===h-1?u[l-1].isEmpty()?d=s[2*(l-1)]-s[2*(l-1)-1]:d/=2:(u[l-1].isEmpty()?d=s[2*(l-1)]-s[2*(l-1)-1]:d/=2,u[l+1].isEmpty()?y=s[2*(l+1)]-o[2*(l+1)-1]:y/=2)),p.setMargins(f,d,y,_)}t.resize(i,t.mh),t.trans(c,n-o[2*e+1]),t.layout(s)}))}else{var f=o[o.length-2],_=f-o[1];a.forEach((function(t,e){t.resize(t.mw,_),t.trans(s[2*e],n-f),t.layout(o)}))}},e.prototype.$_layoutBodies=function(t,e,i){t.chart._body;var n=t.rowCount(),r=t.colCount(),o=this._rowPoints,s=this._colPoints,a=this._bodies;if(this._inverted)for(var u=0;u<n;u++)for(var l=o[2*(u+1)-1],h=o[2*(u+1)],p=0;p<r;p++){var c=a[u*r+p],f=s[2*p+1],_=s[2*(p+1)];c.measure(this.doc,t.getPane(u,p).body,h-l,_-f,1),c.resize(h-l,_-f),c.trans(l,this.height-_),c.layout()}else for(u=0;u<n;u++)for(f=o[2*(u+1)-1],_=o[2*(u+1)],p=0;p<r;p++){c=a[u*r+p],l=s[2*(p+1)-1],h=s[2*(p+1)];c.measure(this.doc,t.getPane(u,p).body,h-l,_-f,1),c.resize(h-l,_-f),c.trans(l,i-_),c.layout()}},e.STYLE_NAME="rct-panes",e}(xP),bM=function(t){function e(e){var i=t.call(this,e,"rct-polar-axis-tick-mark")||this;return i.add(i._lineView=new ZE(e)),i}return Lx(e,t),e.prototype.layout=function(){},e}(wP),wM=function(t){function e(e,i,n,r){var o=t.call(this,e,i)||this;return o.add(o._markContainer=new xP(e,"rct-polar-axis-markers")),o._markViews=new CE(o._markContainer,bM),o.add(o._gridContainer=new wP(e,"rct-polar-axis-grids")),o._labelViews=new CE(o._labelContainer=n,GE,r?"rct-polar-xaxis-label":"rct-polar-yaxis-label"),o}return Lx(e,t),e.prototype.prepare=function(t,e,i,n){this._model=e,this._circular=i,this._markLen=e.tick.options.length,this.$_prepareTickMarks(t,e),this.$_prepareLabels(t,e),this._doPrepare(e,e._ticks,i,n)},e.prototype.layout=function(t,e,i,n){var r=this._model._ticks;return this._doLayout(this._model,e,i,n,r,t),this},e.prototype.$_prepareTickMarks=function(t,e){this._markViews.prepare(e._ticks.length)},e.prototype._prepareLabel=function(t,e,i,n){var r=i.getLabelText(e,n),o=e.label;(t.value=e.value,t.internalClearStyleAndClass(),t.internalSetStyleOrClass(i._style),t.internalSetStyleOrClass(i.getLabelStyle(e,n)),null!=r)?o&&r.match(XE)?t.setLabel(i,e,r.replace(XE,o),1e3,1e3):(i.prepareRich(r),i._paramTick=e,i.buildSvg(t._text,t._outline,NaN,NaN,i,i._domain)):t.setLabel(i,e,o,1e3,1e3)},e.prototype.$_prepareLabels=function(t,e){var i=this,n=e.label;if(this._labelContainer.setVis(n.visible)){var r=e._ticks;this._labelContainer.setStyleOrClass(n._style),this._labelViews.prepare(r.length,(function(t,e,o){t.setVis(!0),i._prepareLabel(t,r[e],n,o)}))}},e.prototype.prepareGuides=function(t,e,i){var n=this._model.guides.filter((function(t){return!t.options.front}));e.setAll(t,n,!0),n=this._model.guides.filter((function(t){return t.options.front})),i.setAll(t,n,!0)},e}(wP),xM=function(t){function e(i,n,r){var o=t.call(this,i,"rct-polar-xaxis",r,!0)||this;return o._gridLines=new CE(o._gridContainer,hC,e.GRID_CLASS),n.insertFirst(o._startView=new hC(i,e.SECTOR_LINE_CLASS)),n.insertFirst(o._endView=new hC(i,e.SECTOR_LINE_CLASS)),n.insertFirst(o._lineView=new JE(i,e.LINE_CLASS)),o}return Lx(e,t),e.prototype._doPrepare=function(t,e,i){var n=t.line,r=t.sectorLine,o=this._lineView;this._gridContainer.setVis(t.grid.visible)&&this._gridLines.prepare(e.length),o.setVis(n.visible)&&(o.setStyleOrClass(n._style),o.setFill("none")),this._startView.setVis(i&&t.isArced()&&r.visible)?(this._startView.setStyleOrClass(r._style),this._endView.setVis(!0),this._endView.setStyleOrClass(r._style)):this._endView.setVis(!1)},e.prototype._doLayout=function(t,e,i,n,r,o){var s=t.getStartAngle(),a=t.getTotalAngle();if(r.forEach((function(t){return t.pos=t.pos/n*a/yS})),this._gridContainer.visible&&this._gridLines.forEach((function(t,o){var a=r[o].pos,u=e+Xx(s+a)*n,l=i+Ux(s+a)*n;t.setLine(e,i,u,l)})),this._labelContainer.visible){var u=this._labelViews.count,l=Math.ceil(9/(360/u)),h=n+t.tick.options.length;this._labelViews.forEach((function(t,n){if(t.setVis(n%l==0)){var o=r[n],a=t.getBBox(),u=s+o.pos,p=e+Xx(u)*(h+a.width/2)-a.width/2,c=i+Ux(u)*(h+a.height/2)-a.height/2;t.layout("center").trans(p,c)}})),u>2&&Qx(r[u-1].pos-r[u-2].pos)<yS/24&&this._labelViews.get(u-1).setVis(!1)}if(this._lineView.visible)if(this._circular)this._lineView.setArc(e,i,n,s,t.getTotalAngle(),!0);else{var p=[];r.map((function(t){var r=t.pos;p.push(e+Xx(s+r)*n,i+Ux(s+r)*n)})),this._lineView.setPolyline(p)}this._startView.visible&&(this._startView.setLine(e,i,e+Xx(s)*n,i+Ux(s)*n),this._endView.setLine(e,i,e+Xx(s+a)*n,i+Ux(s+a)*n))},e.LINE_CLASS="rct-polar-xaxis-line",e.SECTOR_LINE_CLASS="rct-polar-xaxis-sector-line",e.GRID_CLASS="rct-polar-xaxis-grid-line",e}(wM),SM=function(t){function e(i,n,r){var o=t.call(this,i,"rct-polar-yaxis",r,!1)||this;return o._gridLines=new CE(o._gridContainer,JE,e.GRID_LINE_STYLE),n.add(o._lineView=new hC(i,"rct-polar-yaxis-line")),o}return Lx(e,t),e.prototype._doPrepare=function(t,e,i,n){var r=t.line;this._gridContainer.setVis(!1!==t.grid.visible)&&this._gridLines.prepare(e.length,null),(this._lineView.visible=r.visible)&&this._lineView.setStyleOrClass(r._style)},e.prototype._doLayout=function(t,e,i,n,r,o){var s=o.getStartAngle(),a=o.getTotalAngle();if(this._gridContainer.visible){var u=this._circular;this._gridLines.forEach((function(n,l){var h=r[l].pos;if(n.setArc(e,i,h,s,a,!0),u)n.setFill("none");else if(n instanceof pC){var p=t.getStartAngle(),c=[];o._ticks.forEach((function(t){var n=t.pos;c.push(e+Xx(p+n)*h,i+Ux(p+n)*h)})),n.setPoints.apply(n,Ox([],Tx(c),!1))}}))}if(this._labelContainer.visible)if(o.isArced()){var l=o.getStartAngle();this._labelViews.forEach((function(t,n){var o=e+Xx(l)*r[n].pos-t.getBBox().width/2,s=i+Ux(l)*r[n].pos-t.getBBox().height/2;t.setContrast(null).trans(o,s)}))}else this._labelViews.forEach((function(t,n){t.setContrast(null).trans(e+2,i-r[n].pos-t.getBBox().height/2)}));this._lineView.visible&&this._lineView.setVLine(e,i,i-n)},e.GRID_LINE_STYLE="rct-polar-yaxis-grid-line",e}(wM),PM=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._yAxisViews=[],n}return Lx(e,t),e.prototype._doMeasure=function(e,i,n,r,o){var s=i.chart,a=t.prototype._doMeasure.call(this,e,i,n,r,o);return this._prepareAxes(e,s.xAxis,s._getYAxes().items(),this.model.options.circular,s.xAxis.isArced()),a},e.prototype._doLayout=function(){var t=this,e=this.model.setPolar(this.width,this.height),i=e.getPolar(null),n=i.cx,r=i.cy,o=i.rd;this._seriesViews.forEach((function(e){var i;e.model.needClip(!0)&&(t._polarClip||(t._polarClip=t.control.clipCircle()),t._polarClip.setCircle(n,r,o),e.getClipContainer().setClip(t._polarClip),null===(i=e.getClipContainer2())||void 0===i||i.setClip(t._polarClip)),e.resize(2*o,2*o),e.layout()})),this._seriesViews.forEach((function(t){t.afterLayout()})),this._xAxisView.layout(e.chart.yAxis,n,r,o),this._yAxisViews.forEach((function(t){t.layout(e.chart.xAxis,n,r,o)})),[this._guideContainer,this._frontGuideContainer].forEach((function(i){i._views.forEach((function(i){return i.layout(t.width,t.height,e.getPolar(i.model.axis))}))})),this._layoutAnnotations(!1,this,this.width,this.height)},e.prototype._prepareAxes=function(t,e,i,n,r){var o=this;this._axisContainer||(this.insertFirst(this._axisLabelContainer=new xP(t,"rct-polar-axis-labels")),this.insertFirst(this._lineContainer=new xP(t,"rct_axis-lines")),this.insertFirst(this._axisContainer=new xP(t,"rct-polar-axes")));for(var s=this._yAxisViews;s.length<i.length;){var a=new SM(t,this._lineContainer,this._axisLabelContainer);this._axisContainer.add(a),s.push(a)}for(;s.length>i.length;)s.pop().remove();s.forEach((function(e,s){e.prepare(t,i[s],n,r),e.prepareGuides(t,o._guideContainer,o._frontGuideContainer)})),this._xAxisView||this._axisContainer.add(this._xAxisView=new xM(t,this._lineContainer,this._axisLabelContainer)),this._xAxisView.prepare(t,e,n,r)},e}(rM),VM=function(t){function e(i,n){var r=t.call(this,i,n?e.SUBTITLE_CLASS:e.TITLE_CLASS,n?"rct-subtitle-background":"rct-title-background")||this;return r.isSub=n,r.add(r._textView=new TP(i)),r._richText=new WP,r}return Lx(e,t),e.prototype._marginable=function(){return!1},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,n,r){return this._richText.setFormat(e.options.text),this._richText.build(this._textView,i,n,null,null),NE(this._textView.getBBox())},e.prototype._doLayout=function(){this._richText.layout(this._textView,this.textAlign(),this.width,this.height,this._paddings)},e.TITLE_CLASS="rct-title",e.SUBTITLE_CLASS="rct-subtitle",e}(DE);!function(t){t.TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right"}(UN||(UN={}));var kM,AM=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n._topHeight=7,n._tailSize=10,n._radius=5,n._tailVisible=!0,n._hideHandler=function(){n.$_hide(),n._hideTimer=void 0},n.add(n._back=new kP(i,"rct-tooltip-back")),n.add(n._top=new kP(i,"rct-tooltip-top")),n.add(n._textView=new TP(i,"rct-tooltip-text")),n._back.setAttr("filter","url(#"+bP.SHADOW_FILTER+")"),n._textView.anchor=AP.START,n._richText=new WP,n.close(!0,!1),n}return Lx(e,t),e.prototype.show=function(t,e,i,n,r,o,s){var a=e.point,u=this._model=t.chart._tooltip,l=u.options,h=u.setTarget(t,a,i&&i.map((function(t){return t.point})));if(h){var p=l.text||h.getTooltipText(t,a);if(p&&p.trim()){var c=this.control,f=c.contentWidth(),_=c.contentHeight(),d=this._textView,y=t.chart.isInverted(),g=t._yAxisObj.options.reversed;this._richText.setFormat(p),this._richText.build(d,NaN,NaN,null,u.getTextDomain());var v=d.getBBox(),m=Jx(l.minWidth||0,v.width+16),b=Jx(l.minHeight||0,v.height+12)+this._topHeight;t instanceof lE&&t.options.legendByPoint?this._top.setFill(a._calcedColor):this._top.setFill(t._calcedColor);var w,x="visible"===this.getStyle("visibility")?300:0,S=l.offset+this._tailSize,P=o.getFocusPointView().getBounds(),V=c.getBounds();if(y){w=r-b/2-Jx(0,Kx(r-b/2,_-b)),this._tailVisible=Math.abs(b/2-this._radius-this._tailSize/2)>Math.abs(w),(u.isFollowPointer(t)?g?m+S>n:n+m+S>f:g?m+S>P.x-V.x+P.width:P.x-V.x-S>f-m)&&(g=!g);var k=g?UN.LEFT:UN.RIGHT;this.drawTooltip(0,0,m,b,k,w),g?n-=m+S:n+=S,r-=b/2}else{w=n-m/2-Jx(0,Kx(n-m/2,f-m)),this._tailVisible=Math.abs(m/2-this._radius-this._tailSize/2)>Math.abs(w),(u.isFollowPointer(t)?g?r+b+S>_:r-(b+S)<0:g?_-(P.y-V.y-c._padding.top)<b+S:V.bottom-P.bottom+S>_-b)&&(g=!g);k=g?UN.BOTTOM:UN.TOP;this.drawTooltip(0,0,m,b,k,w),n-=m/2,g?r+=S:r-=b+S}n=Jx(0,Kx(n,f-m)),r=Jx(0,Kx(r,_-b)),this.transEx(n,r,x,!1),0===x&&this.setStyle("visibility","visible"),this._hideTimer&&(clearTimeout(this._hideTimer),this._hideTimer=void 0)}}},e.prototype.close=function(t,e){t?(this._hideTimer&&(clearTimeout(this._hideTimer),this._hideTimer=void 0),this.$_hide()):this._hideTimer||(this._hideTimer=setTimeout(this._hideHandler,this._model?this._model.options.hideDelay:tA.defaults.hideDelay))},e.prototype.isVisible=function(){return"visible"===this.getStyle("visibility")},e.prototype.$_hide=function(){var t=this;sk(this.dom,"opacity",void 0,0,200,(function(){t.setStyle("visibility","hidden")}))},e.prototype.drawTooltip=function(t,e,i,n,r,o){var s=this._tailSize,a=this._radius,u=this._topHeight,l=["M",t+a,e,"L",t+i-a,e,"Q",t+i,e,t+i,e+a,"L",t+i,e+n-a,"Q",t+i,e+n,t+i-a,e+n,"L",t+a,e+n,"Q",t,e+n,t,e+n-a,"L",t,e+a,"Q",t,e,t+a,e];if(this._tailVisible)switch(r){case UN.TOP:l=l.concat(["M",t+i/2-s/2+o,e+n,"L",t+i/2+o,e+n+s,"L",t+i/2+s/2+o,e+n]);break;case UN.BOTTOM:l=l.concat(["M",t+i/2-s/2+o,e,"L",t+i/2+o,e-s,"L",t+i/2+s/2+o,e]);break;case UN.LEFT:l=l.concat(["M",t+i,e+n/2-s/2+o,"L",t+i+s,e+n/2+o,"L",t+i,e+n/2+s/2+o]);break;case UN.RIGHT:l=l.concat(["M",t,e+n/2-s/2+o,"L",t-s,e+n/2+o,"L",t,e+n/2+s/2+o])}var h=r===UN.BOTTOM,p=h?["M",t,e+n-u,"l",i,0,"l",0,u-a,"q",0,a,-a,a,"l",2*a-i,0,"q",-a,0,-a,-a]:["M",t+a,e,"l",i-2*a,0,"q",a,0,a,a,"l",0,u-a,"l",-i,0,"l",0,a-u,"q",0,-a,a,-a],c=this._textView,f=c.getBBox();t+=(i-f.width)/2,e+=(n-f.height+(h?-u:u))/2,c.trans(t,e),this._top.setPath(p),this._back.setPath(l)},e.CLASS_NAME="rct-tooltip",e}(wP),CM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._hTitle=0,e._wTitle=0,e._hSub=0,e._wSub=0,e}return Lx(e,t),e.prototype._doInitChildren=function(t){this.add(this.titleView=new VM(t,!1)),this.add(this.subtitleView=new VM(t,!0))},e.prototype._doMeasure=function(t,e,i,n,r){var o,s=e._title,a=e._subtitle,u=0,l=0,h=0,p=0,c=this.titleView,f=i,_=0,d=0;switch(c.setVis(s.visible)?(o=c.measure(t,s,i,n,r),l=this._hTitle=o.height,u=this._wTitle=o.width):c.setModel(s),(c=this.subtitleView).setVis(a.visible)?(o=c.measure(t,a,i,n,r),p=this._hSub=o.height,h=this._wSub=o.width,d=+a.options.titleGap||0):c.setModel(a),a.options.position){case"left":case"right":_=Jx(l,p),f=u+d+h;break;default:_=l+d+p,f=Jx(f,u+h)}return _>0&&(_+=this.titleView.visible?tS(s.options.gap,0):tS(a.options.gap,0)),{width:f,height:_}},e.prototype._doLayout=function(t){var e=this,i=this.titleView,n=this.subtitleView,r=i.model,o=n.model,s=r&&r.options,a=o&&o.options,u=r&&r.visible?this._wTitle>t.wPlot||"chart"===s.alignBase?t.wChart:t.wPlot:0,l=o&&o.visible?this._wSub>t.wPlot||"chart"===a.alignBase?t.wChart:t.wPlot:0,h=this._wTitle>t.wPlot||r&&"chart"===s.alignBase?0:t.xPlot,p=this._wSub>t.wPlot||o&&"chart"===a.alignBase?0:t.xPlot;if(u>0&&l>0){var c=function(t,e,i){switch(t.options.verticalAlign){case"top":return 0;case"bottom":return e-i;default:return(e-i)/2}},f=function(){var t=Jx(e._hTitle,e._hSub);g=Jx(g,g+c(r,t,e._hTitle)),m=Jx(m,m+c(o,t,e._hSub))},_=function(t,e,i){switch(t.options.align){case"left":return 0;case"right":return e-i;default:return(e-i)/2}},d=function(){if(v=Jx(v,v+_(r,u,e._wTitle)),"parent"===o.options.alignBase)switch(o.options.align){case"left":b=v;break;case"right":b=v+e._wTitle-e._wSub;break;default:b=v+(e._wTitle-e._wSub)/2}else b=Jx(b,b+_(o,l,e._wSub))},y=tS(a.titleGap,0),g=0,v=h,m=0,b=p;switch(s.align){case"left":switch(a.position){case"left":v=b+this._wSub+y,f();break;case"right":switch(b=v+this._wTitle+y,a.align){case"center":b=Jx(b,b+(l-this._wTitle-this._wSub)/2);break;case"right":b=Jx(b,p+l-this._wSub)}f();break;case"top":d(),g=m+this._hSub+y;break;default:d(),m=g+this._hTitle+y}break;case"right":switch(a.position){case"left":switch(v+=u-this._wTitle,a.align){case"center":b+=(u-this._wTitle-this._wSub)/2;break;case"right":b=v-y-this._wSub}f();break;case"right":b+=l-this._wSub,v=b-y-this._wTitle,f();break;case"top":d(),g=m+this._hSub+y;break;default:d(),m=g+this._hTitle+y}break;default:switch(a.position){case"left":switch(v+=(u-this._wTitle)/2,a.align){case"left":break;case"center":b+=(v-b-this._wSub)/2;break;case"right":b=v-y-this._wSub}f();break;case"right":switch(v+=(u-this._wTitle)/2,a.align){case"left":b=v+this._wTitle+y;break;case"center":b=v+this._wTitle+y,b+=(l-b-this._wSub)/2;break;case"right":b+=l-y-this._wSub}f();break;case"top":d(),g=m+this._hSub+y;break;default:d(),m=g+this._hTitle+y}}i.resizeByMeasured().layout().trans(v,g),n.resizeByMeasured().layout().trans(b,m)}else if(u>0||l>0){var w=u?r:o,x=u?i:n,S=u||l,P=u?this._wTitle:this._wSub,V=u?h:p;switch(x.resizeByMeasured().layout(),w.options.align){case"left":break;case"right":V+=S-P;break;default:V+=(S-P)/2}x.trans(V,0)}},e}(BE),EM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lx(e,t),e.prototype._doInitChildren=function(t){this.add(this._legendView=new dM(t))},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._legend,s=this._legendView.measure(t,o,i,n,r),a=this._pos=o._location;return"left"===a||"right"===a?s.width+=this._legendView._gap:s.height+=this._legendView._gap,s},e.prototype._doLayout=function(){var t=this._legendView,e=t._gap,i=this.width,n=this.height,r=0,o=0;switch(this._pos){case"left":i-=e;break;case"right":i-=e,r+=e;break;case"top":n-=e;break;default:o+=e,n-=e}t.trans(r,o).resize(i,n),t.layout()},e}(BE),LM=function(t){function e(e,i){var n=t.call(this,e)||this;return n.dir=i,n.views=[],n.visibles=[],n._gap=0,n}return Lx(e,t),e.prototype.prepare=function(t,e,i,n,r){for(var o,s=this.views,a=s.length;s.length<i.length;)o=new UE(t),i[a++].visible&&this.add(o),s.push(o);for(;s.length>i.length;)(o=s.pop()).parent&&o.remove();if(s.forEach((function(e,o){e.prepare(i[o]),e.prepareGuides(t,NaN,NaN,n,r)})),this.setVis(s.filter((function(t){return t.model.visible})).length>0)){var u=s[0].model;this.isX=u._isX,this.isHorz=u._isHorz,this._gap=u.chart.getAxesGap()}},e.prototype.checkHeights=function(t,e,i){return this.views.length>0?this.$_checkHeights(this.views,t,e,i):0},e.prototype.$_checkHeights=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkHeight(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.checkWidths=function(t,e,i){return this.views.length>0?this.$_checkWidths(this.views,t,e,i):0},e.prototype.$_checkWidths=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkWidth(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.getScrollView=function(t){var e,i,n;try{for(var r=Mx(this.views),o=r.next();!o.done;o=r.next()){var s=o.value;if(null===(n=s._scrollView)||void 0===n?void 0:n.contains(t))return s._scrollView}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.prepareGridRows=function(t,e){e.addAll(t,this.views.map((function(t){return t.model})))},e.prototype.clean=function(){this.views.forEach((function(t){return t.clean()}))},e.prototype.setMargins=function(t,e,i,n){this.views.forEach((function(r){return r.setMargins(t,e,i,n)}))},e.prototype._doMeasure=function(t,e,i,n,r){var o=this,s=(this._inverted,0),a=0;return[this.views].forEach((function(e){if(e){var u=(o.isX,i),l=(o.isX,n),h=0,p=0;e.forEach((function(e){if(e.visible){var i=e.measure(t,e.model,u,l,r);e.setAttr("xy",e.model._isX?"x":"y"),h+=i.width,p+=i.height}})),o.isHorz?p+=(e.length-1)*o._gap:h+=(e.length-1)*o._gap,s=Jx(s,h),a=Jx(a,p)}})),{width:s,height:a}},e.prototype._doLayout=function(t){var e=this,i=this.control.loaded,n=this.width,r=this.height,o=0,s=0;t=+t||0,[this.views].forEach((function(a){if(a){var u=0;a.forEach((function(t){t.visible&&(t.checkExtents(i),e.isHorz?t.resize(n,t.mh):t.resize(t.mw,r),t.layout(),e.isHorz?(t.trans(o,e.dir===dE.TOP?r-u-t.mh:u),u+=t.mh+e._gap):(t.trans(e.dir===dE.RIGHT?u:n-u-t.mw,s),u+=t.mw+e._gap))})),e.isHorz?o+=n+t:s+=r+t}}))},e}(BE),NM=function(t){function e(e){var i=t.call(this,e,"rct-credits")||this;return i.add(i._textView=new TP(e)),i._textView.anchor=AP.START,i}return Lx(e,t),e.prototype.clicked=function(t){this.model.options.url&&window.open(this.model.options.url,"new")},e.prototype._doMeasure=function(t,e,i,n,r){return this._textView.text=e.options.text,this.setCursor(e.options.url?"pointer":""),this._textView.getBBox()},e}(RE),MM=function(t){function e(e){var i=t.call(this,e,"rct-chart")||this;for(var n in i._inverted=!1,i._axisSectionMap={},i._annotationViews=[],i._annotationMap=new Map,i.add(i._annotationContainer=new xP(e,"rct-annotations")),i.add(i._plotContainer=new xP(e,"rct-plot-container")),i._plotContainer.add(i._currBody=i._bodyView=new rM(e,i)),dE){var r=new LM(e,dE[n]);i._plotContainer.add(r),i._axisSectionMap[dE[n]]=r}return i.add(i._paneContainer=new mM(e,i)),i.add(i._titleSectionView=new CM(e)),i.add(i._legendSectionView=new EM(e)),i.add(i._frontAnnotationContainer=new xP(e,"rct-front-annotations")),i.add(i._creditView=new NM(e)),i.add(i._navigatorView=new sM(e)),i.add(i._historyView=new fM(e)),i.add(i._tooltipView=new AM(e)),i}return Lx(e,t),e.prototype.getAnnotationAnchor=function(t){return this._annotationMap.get(t)},e.prototype.titleView=function(){return this._titleSectionView.titleView},e.prototype.subtitleView=function(){return this._titleSectionView.subtitleView},e.prototype.bodyView=function(){return this._bodyView},e.prototype.clean=function(){for(var t in this._axisSectionMap)this._axisSectionMap[t].clean()},e.prototype.measure=function(t,e,i,n,r){var o,s=this,a=this._model=e,u=a.isPolar(),l=a._chartOptions.credits,h=a._legend,p=a._navigator,c=i,f=n;if(this._inverted=a.isInverted(),a.isSplitted()?(this._plotContainer.setVis(!1),this._paneContainer.setVis(!0),this.$_preparePanes(t,a._split)):(this._plotContainer.setVis(!0),this._paneContainer.setVis(!1),this.$_prepareBody(t,u)),this._creditView.setVis(l.visible)&&(o=this._creditView.measure(t,l,c,f,r),l.isFloating()||("middle"!==l.options.verticalAlign?f-=o.height+(+l.options.offsetY||0)+(+l.options.gap||0):"center"!==l.options.align&&(c-=o.width+(+l.options.offsetX||0)+(+l.options.gap||0)))),f-=(o=this._titleSectionView.measure(t,a,c,f,r)).height,this._legendSectionView.setVis(h.visible))switch(o=this._legendSectionView.measure(t,a,c,f,r),h._location){case"top":case"bottom":f-=o.height;break;case"right":case"left":c-=o.width}this._navigatorView.setVis(p.visible),this._paneContainer.visible?this._paneContainer.measure(t,a._split,a._xPaneAxes,a._yPaneAxes,c,f,1):u?this.$_measurePolar(t,a,c,f,1):this.$_measurePlot(t,a,c,f,1),this._navigatorView.visible&&(a._navigator._vertical?f=this._bodyView.mh:c=this._bodyView.mw,this._navigatorView.measure(t,p,c,f,r)),this.$_prepareAnnotations(t,e.getAnnotations()),this._annotationViews.forEach((function(e,o){e.measure(t,s._annotations[o],i,n,r)}))},e.prototype.layout=function(){var t=this,e=this.width,i=this.height,n=e,r=i,o=this._model,s=o.isPolar(),a=o._legend,u=o._chartOptions.credits,l=this._creditView,h=+u.options.gap||0,p=0,c=0,f=0,_=0,d=0,y=0;l.visible&&(l.resizeByMeasured(),u.isFloating()||("middle"!==u.options.verticalAlign?(p=+u.options.offsetY||0,"top"===u.options.verticalAlign?r-=c=l.height+p+h:r-=f=l.height+p+h):(p=+u.options.offsetX||0,"left"===u.options.align?n-=_=l.width+p+h:n-=l.width+p+h)));var g=this._titleSectionView,v=0,m=y+c;g.visible&&(g.resizeByMeasured(),r-=v=g.height),d=_,y=i-f;var b=this._navigatorView,w=0;b.visible&&(b.model._vertical||(b.resize(b.mw,b.mh-b.model.getGap()-b.model.getGapFar()),r-=w=b.mh));var x,S,P=this._legendSectionView,V=0,k=0;if(P.visible)switch(P.resizeByMeasured().layout(),V=P.height,k=P.width,a._location){case"top":x=v+c,r-=V;break;case"bottom":r-=V,x=y-V,y-=V;break;case"right":n-=k,S=e-k;break;case"left":n-=k,d+=k,S=0}b.visible&&(y-=w,b.layout().transY(y+b.model.getGap()));var A,C=0,E=0,L=0,N=0;if(this._paneContainer.visible)this._paneContainer.trans(d,m+v).resize(n,r),this._paneContainer.layout(),L=r,N=n,A=this._paneContainer.getRect();else{var M,T=this._axisSectionMap,O=T[dE.CENTER],R=T[dE.MIDDLE];if(!s){var D=this.control._padding;O&&O.visible&&(C=O.mw),R&&R.visible&&(E=R.mh),[dE.LEFT,dE.RIGHT].forEach((function(t){(M=T[t])&&M.visible&&(n-=M.mw)})),[dE.TOP,dE.BOTTOM].forEach((function(t){(M=T[t])&&M.visible&&(r-=M.mh)})),(M=T[dE.LEFT])&&M.visible&&(M.resize(M.mw,r),M.layout(E),d+=M.mw),(M=T[dE.RIGHT])&&M.visible&&(M.resize(M.mw,r),M.layout(E)),C>0&&(O.resize(M.mw,r),O.layout()),(M=T[dE.BOTTOM])&&M.visible&&(M.setMargins(D.left,d,this.width-d-n,Math.max(0,D.right-2)),M.resize(n,M.mh),M.layout(C),y-=M.mh),(M=T[dE.TOP])&&M.visible&&(M.setMargins(D.left,d,this.width-d-n,Math.max(0,D.right-1)),M.resize(n,M.mh),M.layout(C)),E>0&&(R.resize(n,M.mh),R.layout())}b.visible&&b.layout().transX(d);var B=this._org={x:d,y:y};this._plotWidth=n,this._plotHeight=r,s||((M=T[dE.LEFT])&&M.visible&&M.trans(B.x-M.mw,B.y-M.height),(M=T[dE.RIGHT])&&M.visible&&M.trans(B.x+n,B.y-M.height),C>0&&O.trans(B.x+(n-C)/2,B.y-O.height),(M=T[dE.BOTTOM])&&M.visible&&M.trans(B.x,B.y),(M=T[dE.TOP])&&M.visible&&M.trans(B.x,B.y-r-M.height),E>0&&R.trans(B.x,B.y-(r-E)/2-E));var F=this._currBody;L=this._plotHeight-E,N=this._plotWidth-C,d=B.x,y=B.y-this._plotHeight,F.resize(N,L),F.trans(d,y),F.layout(),A=F.getRect(),F._seriesViews.forEach((function(e){if(e.needDecoreateLegend()){var i=t._legendSectionView._legendView.legendOfSeries(e.model);i&&e.decoreateLegend(i)}}))}if(l.visible){var I=+u.options.offsetX||0,j=p,z=void 0,$=void 0;switch(l.layout(),u.options.verticalAlign){case"top":break;case"middle":$=(i-l.height)/2+j;break;default:$=i-f+h}switch(u.options.align){case"left":z=I;break;case"center":z=(e-l.width)/2+I;break;default:z=e-l.width-I}l.trans(z,$)}if(N+=C,g.visible&&g.layout({xPlot:d,wPlot:N,wChart:e}).trans(0,m),P.visible){var H=a.options,G=H.align,W=H.verticalAlign;if("body"===a._location){var Y=+H.offsetX||0;switch(G){case"right":d+=N-k-Y;break;case"center":d+=(N-k)/2+Y;break;default:d+=Y}switch(Y=+H.offsetY||0,W){case"bottom":y+=L-V-Y;break;case"middle":y+=(L-V)/2+Y;break;default:y+=Y}}else if(isNaN(x)){Y=+H.offsetY||0;if(d=S,"chart"===H.alignBase){switch(W){case"top":y=Y;break;case"bottom":y=i-V-Y;break;default:y=(i-V)/2+Y}y+V>i&&(y=(i-V)/2)}else switch(W){case"top":y+=Y;break;case"bottom":y=y+r-V-Y;break;default:y=y+(r-V)/2+Y}y+V>i&&(y=(i-V)/2),y<0&&(y=0)}else{var Y=+H.offsetX||0;if(y=x,"chart"===H.alignBase)switch(G){case"left":d=Y;break;case"right":d=e-k-Y;break;default:d=(e-k)/2+Y}else switch(G){case"left":d+=Y;break;case"right":d=d+n-k-Y;break;default:d+=(n-k)/2+Y}d+k>e&&(d=(e-k)/2),d<0&&(d=0)}P.trans(d,y)}this.$_layoutAnnotations(this._inverted,e,i,A),this._tooltipView.close(!0,!1)},e.prototype.showTooltip=function(t,e,i,n,r){var o=e.getTooltipPos?e.getTooltipPos():{x:e.point.xPos,y:e.point.yPos},s=o.x,a=o.y,u=this._model.chart._tooltip.isFollowPointer(t),l=n.getTooltipPos(),h=u?r.x+l.x:s+l.x,p=u?r.y+l.y:a+l.y;this._tooltipView.show(t,e,i,h,p,n,!0)},e.prototype.tooltipVisible=function(){return this._tooltipView.isVisible()},e.prototype.hideTooltip=function(){this._tooltipView.close(!1,!0)},e.prototype.getSeriesView=function(t){return this._model.isSplitted()?this._paneContainer.getSeries(t):this._currBody.getSeries(t)},e.prototype.legendByDom=function(t){return this._legendSectionView._legendView.legendByDom(t)},e.prototype.seriesByDom=function(t){return this._paneContainer.visible?this._paneContainer.seriesByDom(t):this._currBody.seriesByDom(t)},e.prototype.findSeriesView=function(t){return this._currBody.findSeries(t)},e.prototype.creditByDom=function(t){return this._creditView.dom.contains(t)?this._creditView:null},e.prototype.bodyOf=function(t){return this._model.isSplitted()?this._paneContainer.bodyViewOf(t):this._currBody},e.prototype.pointerMoved=function(t,e,i){var n,r=this,o=i,s=this._model&&this.bodyOf(i),a=null==o?void 0:o.classList,u=(null==a?void 0:a.value)&&(a.contains("rct-contextmenu-item")||a.contains("rct-contextmenu-list")),l=this._hoverItem;if(this._hoverItem=null,s){var h=s.controlToElement(t,e),p=s.pointerMoved(h,i);if(!this._hoverItem&&this._legendSectionView._legendView.contains(o)){var c=this._hoverItem=this._legendSectionView._legendView.legendByDom(o);c&&c.legend.options.seriesHovering&&c.source&&s.hoverSeries(c.source)}if(l instanceof nk&&!(this._hoverItem instanceof nk)&&s.hoverSeries(null),!p)return void s.removeFocus();for(var f in this._axisSectionMap)this._axisSectionMap[f].views.forEach((function(t){var e=t.model,i=e.crosshair,n=e._isHorz?s.width:s.height,o=e._isHorz?h.x:h.y,a=p&&i.visible&&!u&&i.flag.visible&&!i.isBar()&&i.getFlag(n,o);if(a){t.showCrosshair(o,a);var l=[];s._seriesViews.forEach((function(t){var i,n=Number.MAX_SAFE_INTEGER,o=r._model.inverted;t.model._visPoints.forEach((function(t){var r=t.xPos,s=t instanceof xC&&!o?t.yPos-(t.yPos-t.yLow)/2:t.yPos,a=e._isX?Math.abs(h.x-r):Math.abs(h.y-s);a<n&&(n=a,i=t)})),l.push(i)})),i.moved(o,a,l)}else t.hideCrosshiar()}))}else(null===(n=this._model)||void 0===n?void 0:n.isSplitted())?this._paneContainer.bodies.forEach((function(t){t.removeFocus()})):this._currBody.removeFocus()},e.prototype.getAxis=function(t){for(var e in this._axisSectionMap){var i=this._axisSectionMap[e].views.find((function(e){return e.model===t}));if(i)return i}},e.prototype.getButton=function(t){return this._currBody.getButton(t)},e.prototype.buttonClicked=function(t){this._currBody.buttonClicked(t)},e.prototype.getScrollView=function(t){for(var e in dE){var i=this._axisSectionMap[dE[e]].getScrollView(t);if(i)return i}},e.prototype.updateAnnotation=function(t){var e=this._annotationViews.find((function(e){return e.model===t}));e?e.update(this,this.width,this.height):this._model.isSplitted()||(e=this._currBody._annotationViews.find((function(e){return e.model===t})))&&e.update(this._currBody,this._currBody.width,this._currBody.height)},e.prototype.isAnimating=function(){return this._bodyView.animating()},e.prototype._doAttached=function(t){},e.prototype.$_preparePanes=function(t,e){this._paneContainer.prepare(t,e)},e.prototype.$_prepareBody=function(t,e){var i,n;e?(this._polarView||(this._polarView=new PM(t,this),this._plotContainer.insertChild(this._polarView,this._bodyView)),this._currBody=this._polarView,null===(i=this._bodyView)||void 0===i||i.setVis(!1),this._polarView.setVis(!0)):(null===(n=this._polarView)||void 0===n||n.setVis(!1),this._bodyView.setVis(!0),this._currBody=this._bodyView),this._currBody.prepareRender(t,this._model)},e.prototype.$_prepareAxes=function(t,e){var i=this._currBody._gridRowContainer,n=this._currBody._guideContainer,r=this._currBody._frontGuideContainer,o=!e.isPolar()&&e._needAxes(),s=this._axisSectionMap;for(var a in s){var u=s[a];o?u.prepare(t,e,e.getAxes(a,!1),n,r):u.visible=!1}i.prepare()},e.prototype.$_measurePlot=function(t,e,i,n,r){var o=this._axisSectionMap;if(this._navigatorView.visible){var s=e._navigator;s._vertical?i-=s.getSize():n-=s.getSize()}var a=i,u=n,l=0,h=0;for(var p in this._bodyView.prepareGuideContainers(),this.$_prepareAxes(t,e),e.layoutAxes(i,n,this._inverted,r),i-=o[dE.LEFT].checkWidths(t,i,n),i-=o[dE.RIGHT].checkWidths(t,i,n),n-=o[dE.BOTTOM].checkHeights(t,i,n),n-=o[dE.TOP].checkHeights(t,i,n),this._inverted?i-=l=o[dE.CENTER].checkWidths(t,i,n):n-=h=o[dE.MIDDLE].checkHeights(t,i,n),i-=l,n-=h,e.layoutAxes(i,n,this._inverted,r),o){(c=o[p]).visible&&c.measure(t,e,i,n,r)}for(var p in i=a,n=u,l=0,h=0,o){(c=o[p]).visible&&(p===dE.LEFT||p===dE.RIGHT?i-=c.mw:p!==dE.BOTTOM&&p!==dE.TOP||(n-=c.mh),this._inverted?p===dE.CENTER&&(i-=l=c.mw):p===dE.MIDDLE&&(n-=h=c.mh))}for(var p in e.layoutAxes(i,n,this._inverted,r),o){(c=o[p]).visible&&(c.measure(t,e,i,n,r),c.prepareGridRows(t,this._bodyView._gridRowContainer))}for(var p in i=a,n=u,l=0,h=0,o){var c;(c=o[p]).visible&&(p===dE.LEFT||p===dE.RIGHT?i-=c.mw:p!==dE.BOTTOM&&p!==dE.TOP||(n-=c.mh),this._inverted?p===dE.CENTER&&(i-=l=c.mw):p===dE.MIDDLE&&(n-=h=c.mh))}e.axesLayouted(i,n,this._inverted),this._bodyView.measure(t,e._body,i,n,r)},e.prototype.$_measurePolar=function(t,e,i,n,r){var o=e._body.getRadius(i,n),s=2*Math.PI*o,a=o;this._polarView.prepareGuideContainers(),this.$_prepareAxes(t,e),e.layoutAxes(s,a,!1,r),e.axesLayouted(s,a,!1),this._polarView.measure(t,e._body,i,n,r)},e.prototype.$_prepareAnnotations=function(t,e){var i,n,r=this._annotationContainer,o=this._frontAnnotationContainer,s=this._annotationMap,a=this._annotationViews;try{for(var u=Mx(s.keys()),l=u.next();!l.done;l=u.next()){var h=l.value;e.indexOf(h)<0&&s.delete(h)}}catch(t){i={error:t}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}a.forEach((function(t){return t.remove()})),a.length=0,(this._annotations=e).forEach((function(e){var i=s.get(e)||YN(t,e);(e.options.front?o:r).add(i),s.set(e,i),a.push(i)}))},e.prototype.$_layoutAnnotations=function(t,e,i,n){var r,o,s,a,u=this,l=this.control._padding;this._annotationViews.forEach((function(n){if("container"===n.model.options.scope)r=-l.left,o=-l.top,s=e+l.left+l.right,a=i+l.top+l.bottom;else r=o=0,s=e,a=i;n._layoutView(t,u,r,o,s,a)}))},e}(xP);!function(t){t.EXPORT="$$realchart_export"}(kM||(kM={}));var TM=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.addElement(n._chartView=new MM(e)),n.setPointerHandler(new cM(n)),n}return Lx(e,t),e.prototype._initControl=function(e,i,n){var r=this;t.prototype._initControl.call(this,e,i,n),this._chart=new kE(null,(function(t,e){r.changeModel(t,e)}))},e.prototype._doDestroy=function(){this.setPointerHandler(null),this._chart=null,t.prototype._doDestroy.call(this)},e.prototype.onModelChanged=function(t,e,i){e instanceof lV&&i===nV.REFRESHED?this._chartView.updateAnnotation(e):this.invalidateLayout()},e.prototype.onVisibleChanged=function(t,e){this.invalidateLayout()},e.prototype.onPointVisibleChanged=function(t,e,i){this.invalidateLayout()},e.prototype.onExportRequest=function(t,e){this._export(e)},e.prototype.onRefreshRequest=function(t){this.refresh()},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){t!==this._chart&&(this._chart=t,this.changeModel(t._obj,this.model))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this._chart._obj},enumerable:!1,configurable:!0}),e.prototype.changeModel=function(t,e){t!==e&&(this.clearAssetDefs(),e&&(e._assets.unregister(this),e._removeListener(this)),t&&(t._addListener(this),t._assets.register(this.doc(),this)),this.loaded=!1,this.invalidateLayout(!0))},e.prototype.chartView=function(){return this._chartView},e.prototype.refresh=function(){this._render()},e.prototype.scroll=function(t,e){var i;null===(i=this._chartView.getAxis(t))||void 0===i||i.scroll(e)},e.prototype.use=function(t){if(t.MODULE_NAME&&t.MODULE_NAME===kM.EXPORT)this._exporter=t},e.prototype._doRender=function(t){var e,i=this.model,n=this._chartView;this.clearTemporaryDefs(),i&&(this.setData("theme",i._chartOptions.options.theme,!0),this.setData("palette",i._chartOptions.options.palette),i._prepareRender(),this._loadModules(),this._prepareModules()),this.loaded||n.clean(),n.measure(this.doc(),i,t.width,t.height,1),n.setRect(t),n.layout(),i&&i.afterRender(),(null===(e=this._chart)||void 0===e?void 0:e._loadCallback)&&(setTimeout(this._chart._loadCallback,0),this._chart._loadCallback=void 0)},e.prototype._doRenderBackground=function(t,e,i,n){if(this.model){var r=this.model._chartOptions._style;if(Bx(r))for(var o in r)o.startsWith("padding")?e.setStyle(o,r[o]):t.style[o]=r[o]}},e.prototype._loadModules=function(){if(!this._exporter){var t=null===window||void 0===window?void 0:window.$$_RealChartExporter;t&&t.RealchartExport(this)}},e.prototype._prepareModules=function(){this._exporter&&this._exporter.render(this.doc(),this.dom(),this.model._exporter.options)},e.prototype._export=function(t){if(this.model&&this._exporter){var e=this.dom();switch(t.type){case"png":case"jpeg":case"svg":this._exporter.exportToImage(e,t)}}},e}(bP),OM=function(){function t(){}return t.getVersion=function(){return"1.1.0"},t.setLocale=function(t,e){e&&hS(t,e),function(t){t&&(lS=aS[uS=t.substring(0,2)]),lS||(lS=aS[uS="ko"])}(t)},t.registerLocale=function(t,e){hS(t,e)},t.setDebugging=function(t){wP.DEBUGGING=t},t.setLogging=function(t){sS.LOGGING=t},t.setAnimatable=function(t){bP._animatable=t},t.createChart=function(t,e,i,n,r){void 0===n&&(n=!0);var o=new TM(t,e);return Bx(i)&&o.chart.load(i,n,r),o.chart},t.createData=function(t,e){return new AE(t||{},e)},t}(),RM=OM.getVersion,DM=OM.setDebugging,BM=OM.setLogging,FM=OM.setAnimatable,IM=OM.createChart,jM=OM.createData;return t.Chart=kE,t.ChartData=AE,t.createChart=IM,t.createData=jM,t.getVersion=RM,t.setAnimatable=FM,t.setDebugging=DM,t.setLogging=BM,t}({});
7
+ var RealChart=function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i={exports:{}},n=i.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n);var r=i.exports,o={}.hasOwnProperty,s=function(t,e){return o.call(t,e)},a=function(t){try{return!!t()}catch(t){return!0}},u=!a((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),l={exports:{}},h=l.exports={version:"2.6.12"};"number"==typeof __e&&(__e=h);var p,c,f=l.exports,_={},d=function(t){return"object"==typeof t?null!==t:"function"==typeof t},y=d,g=function(t){if(!y(t))throw TypeError(t+" is not an object!");return t};function v(){if(c)return p;c=1;var t=d,e=r.document,i=t(e)&&t(e.createElement);return p=function(t){return i?e.createElement(t):{}}}var m=!u&&!a((function(){return 7!=Object.defineProperty(v()("div"),"a",{get:function(){return 7}}).a})),b=d,w=function(t,e){if(!b(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!b(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!b(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!b(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},x=g,S=m,P=w,V=Object.defineProperty;_.f=u?Object.defineProperty:function(t,e,i){if(x(t),e=P(e,!0),x(i),S)try{return V(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t};var k,A,C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}};function E(){if(A)return k;A=1;var t=_,e=C;return k=u?function(i,n,r){return t.f(i,n,e(1,r))}:function(t,e,i){return t[e]=i,t},k}var L={exports:{}},N=0,M=Math.random(),T=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++N+M).toString(36))},O={exports:{}},R=f,D=r,B="__core-js_shared__",F=D[B]||(D[B]={});(O.exports=function(t,e){return F[t]||(F[t]=void 0!==e?e:{})})("versions",[]).push({version:R.version,mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var I=O.exports,j=I("native-function-to-string",Function.toString),$=r,z=E(),H=s,G=T("src"),W=j,Y="toString",X=(""+W).split(Y);f.inspectSource=function(t){return W.call(t)},(L.exports=function(t,e,i,n){var r="function"==typeof i;r&&(H(i,"name")||z(i,"name",e)),t[e]!==i&&(r&&(H(i,G)||z(i,G,t[e]?""+t[e]:X.join(String(e)))),t===$?t[e]=i:n?t[e]?t[e]=i:z(t,e,i):(delete t[e],z(t,e,i)))})(Function.prototype,Y,(function(){return"function"==typeof this&&this[G]||W.call(this)}));var U=L.exports,q=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},Z=q,K=function(t,e,i){if(Z(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}},J=r,Q=f,tt=E(),et=U,it=K,nt="prototype",rt=function(t,e,i){var n,r,o,s,a=t&rt.F,u=t&rt.G,l=t&rt.S,h=t&rt.P,p=t&rt.B,c=u?J:l?J[e]||(J[e]={}):(J[e]||{})[nt],f=u?Q:Q[e]||(Q[e]={}),_=f[nt]||(f[nt]={});for(n in u&&(i=e),i)o=((r=!a&&c&&void 0!==c[n])?c:i)[n],s=p&&r?it(o,J):h&&"function"==typeof o?it(Function.call,o):o,c&&et(c,n,o,t&rt.U),f[n]!=o&&tt(f,n,s),h&&_[n]!=o&&(_[n]=o)};J.core=Q,rt.F=1,rt.G=2,rt.S=4,rt.P=8,rt.B=16,rt.W=32,rt.U=64,rt.R=128;var ot=rt,st={exports:{}},at=T("meta"),ut=d,lt=s,ht=_.f,pt=0,ct=Object.isExtensible||function(){return!0},ft=!a((function(){return ct(Object.preventExtensions({}))})),_t=function(t){ht(t,at,{value:{i:"O"+ ++pt,w:{}}})},dt=st.exports={KEY:at,NEED:!1,fastKey:function(t,e){if(!ut(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!lt(t,at)){if(!ct(t))return"F";if(!e)return"E";_t(t)}return t[at].i},getWeak:function(t,e){if(!lt(t,at)){if(!ct(t))return!0;if(!e)return!1;_t(t)}return t[at].w},onFreeze:function(t){return ft&&dt.NEED&&ct(t)&&!lt(t,at)&&_t(t),t}},yt=st.exports,gt={exports:{}},vt=I("wks"),mt=T,bt=r.Symbol,wt="function"==typeof bt;(gt.exports=function(t){return vt[t]||(vt[t]=wt&&bt[t]||(wt?bt:mt)("Symbol."+t))}).store=vt;var xt=gt.exports,St=_.f,Pt=s,Vt=xt("toStringTag"),kt=function(t,e,i){t&&!Pt(t=i?t:t.prototype,Vt)&&St(t,Vt,{configurable:!0,value:e})},At={};At.f=xt;var Ct,Et,Lt=r,Nt=f,Mt=At,Tt=_.f,Ot=function(t){var e=Nt.Symbol||(Nt.Symbol=Lt.Symbol||{});"_"==t.charAt(0)||t in e||Tt(e,t,{value:Mt.f(t)})},Rt={}.toString,Dt=function(t){return Rt.call(t).slice(8,-1)};function Bt(){if(Et)return Ct;Et=1;var t=Dt;return Ct=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==t(e)?e.split(""):Object(e)}}var Ft=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},It=Bt(),jt=Ft,$t=function(t){return It(jt(t))},zt=Math.ceil,Ht=Math.floor,Gt=function(t){return isNaN(t=+t)?0:(t>0?Ht:zt)(t)},Wt=Gt,Yt=Math.min,Xt=function(t){return t>0?Yt(Wt(t),9007199254740991):0},Ut=Gt,qt=Math.max,Zt=Math.min,Kt=function(t,e){return(t=Ut(t))<0?qt(t+e,0):Zt(t,e)},Jt=$t,Qt=Xt,te=Kt,ee=function(t){return function(e,i,n){var r,o=Jt(e),s=Qt(o.length),a=te(n,s);if(t&&i!=i){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===i)return t||a||0;return!t&&-1}},ie=I("keys"),ne=T,re=function(t){return ie[t]||(ie[t]=ne(t))},oe=s,se=$t,ae=ee(!1),ue=re("IE_PROTO"),le=function(t,e){var i,n=se(t),r=0,o=[];for(i in n)i!=ue&&oe(n,i)&&o.push(i);for(;e.length>r;)oe(n,i=e[r++])&&(~ae(o,i)||o.push(i));return o},he="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),pe=le,ce=he,fe=Object.keys||function(t){return pe(t,ce)},_e={};_e.f=Object.getOwnPropertySymbols;var de,ye={};function ge(){return de||(de=1,ye.f={}.propertyIsEnumerable),ye}var ve,me,be=fe,we=_e,xe=ge(),Se=Dt,Pe=Array.isArray||function(t){return"Array"==Se(t)},Ve=Ft,ke=function(t){return Object(Ve(t))};function Ae(){if(me)return ve;me=1;var t=_,e=g,i=fe;return ve=u?Object.defineProperties:function(n,r){e(n);for(var o,s=i(r),a=s.length,u=0;a>u;)t.f(n,o=s[u++],r[o]);return n},ve}var Ce=r.document,Ee=Ce&&Ce.documentElement,Le=g,Ne=Ae(),Me=he,Te=re("IE_PROTO"),Oe=function(){},Re="prototype",De=function(){var t,e=v()("iframe"),i=Me.length;for(e.style.display="none",Ee.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),De=t.F;i--;)delete De[Re][Me[i]];return De()},Be=Object.create||function(t,e){var i;return null!==t?(Oe[Re]=Le(t),i=new Oe,Oe[Re]=null,i[Te]=t):i=De(),void 0===e?i:Ne(i,e)},Fe={},Ie={},je=le,$e=he.concat("length","prototype");Ie.f=Object.getOwnPropertyNames||function(t){return je(t,$e)};var ze=$t,He=Ie.f,Ge={}.toString,We="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Fe.f=function(t){return We&&"[object Window]"==Ge.call(t)?function(t){try{return He(t)}catch(t){return We.slice()}}(t):He(ze(t))};var Ye={},Xe=ge(),Ue=C,qe=$t,Ze=w,Ke=s,Je=m,Qe=Object.getOwnPropertyDescriptor;Ye.f=u?Qe:function(t,e){if(t=qe(t),e=Ze(e,!0),Je)try{return Qe(t,e)}catch(t){}if(Ke(t,e))return Ue(!Xe.f.call(t,e),t[e])};var ti=r,ei=s,ii=u,ni=ot,ri=U,oi=yt.KEY,si=a,ai=I,ui=kt,li=T,hi=xt,pi=At,ci=Ot,fi=function(t){var e=be(t),i=we.f;if(i)for(var n,r=i(t),o=xe.f,s=0;r.length>s;)o.call(t,n=r[s++])&&e.push(n);return e},_i=Pe,di=g,yi=d,gi=ke,vi=$t,mi=w,bi=C,wi=Be,xi=Fe,Si=Ye,Pi=_e,Vi=_,ki=fe,Ai=Si.f,Ci=Vi.f,Ei=xi.f,Li=ti.Symbol,Ni=ti.JSON,Mi=Ni&&Ni.stringify,Ti="prototype",Oi=hi("_hidden"),Ri=hi("toPrimitive"),Di={}.propertyIsEnumerable,Bi=ai("symbol-registry"),Fi=ai("symbols"),Ii=ai("op-symbols"),ji=Object[Ti],$i="function"==typeof Li&&!!Pi.f,zi=ti.QObject,Hi=!zi||!zi[Ti]||!zi[Ti].findChild,Gi=ii&&si((function(){return 7!=wi(Ci({},"a",{get:function(){return Ci(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=Ai(ji,e);n&&delete ji[e],Ci(t,e,i),n&&t!==ji&&Ci(ji,e,n)}:Ci,Wi=function(t){var e=Fi[t]=wi(Li[Ti]);return e._k=t,e},Yi=$i&&"symbol"==typeof Li.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Li},Xi=function(t,e,i){return t===ji&&Xi(Ii,e,i),di(t),e=mi(e,!0),di(i),ei(Fi,e)?(i.enumerable?(ei(t,Oi)&&t[Oi][e]&&(t[Oi][e]=!1),i=wi(i,{enumerable:bi(0,!1)})):(ei(t,Oi)||Ci(t,Oi,bi(1,{})),t[Oi][e]=!0),Gi(t,e,i)):Ci(t,e,i)},Ui=function(t,e){di(t);for(var i,n=fi(e=vi(e)),r=0,o=n.length;o>r;)Xi(t,i=n[r++],e[i]);return t},qi=function(t){var e=Di.call(this,t=mi(t,!0));return!(this===ji&&ei(Fi,t)&&!ei(Ii,t))&&(!(e||!ei(this,t)||!ei(Fi,t)||ei(this,Oi)&&this[Oi][t])||e)},Zi=function(t,e){if(t=vi(t),e=mi(e,!0),t!==ji||!ei(Fi,e)||ei(Ii,e)){var i=Ai(t,e);return!i||!ei(Fi,e)||ei(t,Oi)&&t[Oi][e]||(i.enumerable=!0),i}},Ki=function(t){for(var e,i=Ei(vi(t)),n=[],r=0;i.length>r;)ei(Fi,e=i[r++])||e==Oi||e==oi||n.push(e);return n},Ji=function(t){for(var e,i=t===ji,n=Ei(i?Ii:vi(t)),r=[],o=0;n.length>o;)!ei(Fi,e=n[o++])||i&&!ei(ji,e)||r.push(Fi[e]);return r};$i||(Li=function(){if(this instanceof Li)throw TypeError("Symbol is not a constructor!");var t=li(arguments.length>0?arguments[0]:void 0),e=function(i){this===ji&&e.call(Ii,i),ei(this,Oi)&&ei(this[Oi],t)&&(this[Oi][t]=!1),Gi(this,t,bi(1,i))};return ii&&Hi&&Gi(ji,t,{configurable:!0,set:e}),Wi(t)},ri(Li[Ti],"toString",(function(){return this._k})),Si.f=Zi,Vi.f=Xi,Ie.f=xi.f=Ki,ge().f=qi,Pi.f=Ji,ii&&ri(ji,"propertyIsEnumerable",qi,!0),pi.f=function(t){return Wi(hi(t))}),ni(ni.G+ni.W+ni.F*!$i,{Symbol:Li});for(var Qi="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tn=0;Qi.length>tn;)hi(Qi[tn++]);for(var en=ki(hi.store),nn=0;en.length>nn;)ci(en[nn++]);ni(ni.S+ni.F*!$i,"Symbol",{for:function(t){return ei(Bi,t+="")?Bi[t]:Bi[t]=Li(t)},keyFor:function(t){if(!Yi(t))throw TypeError(t+" is not a symbol!");for(var e in Bi)if(Bi[e]===t)return e},useSetter:function(){Hi=!0},useSimple:function(){Hi=!1}}),ni(ni.S+ni.F*!$i,"Object",{create:function(t,e){return void 0===e?wi(t):Ui(wi(t),e)},defineProperty:Xi,defineProperties:Ui,getOwnPropertyDescriptor:Zi,getOwnPropertyNames:Ki,getOwnPropertySymbols:Ji});var rn=si((function(){Pi.f(1)}));ni(ni.S+ni.F*rn,"Object",{getOwnPropertySymbols:function(t){return Pi.f(gi(t))}}),Ni&&ni(ni.S+ni.F*(!$i||si((function(){var t=Li();return"[null]"!=Mi([t])||"{}"!=Mi({a:t})||"{}"!=Mi(Object(t))}))),"JSON",{stringify:function(t){for(var e,i,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(i=e=n[1],(yi(e)||void 0!==t)&&!Yi(t))return _i(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!Yi(e))return e}),n[1]=e,Mi.apply(Ni,n)}}),Li[Ti][Ri]||E()(Li[Ti],Ri,Li[Ti].valueOf),ui(Li,"Symbol"),ui(Math,"Math",!0),ui(ti.JSON,"JSON",!0);ot(ot.S,"Object",{create:Be});var on=ot;on(on.S+on.F*!u,"Object",{defineProperty:_.f});var sn=ot;sn(sn.S+sn.F*!u,"Object",{defineProperties:Ae()});var an=ot,un=f,ln=a,hn=function(t,e){var i=(un.Object||{})[t]||Object[t],n={};n[t]=e(i),an(an.S+an.F*ln((function(){i(1)})),"Object",n)},pn=$t,cn=Ye.f;hn("getOwnPropertyDescriptor",(function(){return function(t,e){return cn(pn(t),e)}}));var fn=s,_n=ke,dn=re("IE_PROTO"),yn=Object.prototype,gn=Object.getPrototypeOf||function(t){return t=_n(t),fn(t,dn)?t[dn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?yn:null},vn=ke,mn=gn;hn("getPrototypeOf",(function(){return function(t){return mn(vn(t))}}));var bn=ke,wn=fe;hn("keys",(function(){return function(t){return wn(bn(t))}})),hn("getOwnPropertyNames",(function(){return Fe.f}));var xn=d,Sn=yt.onFreeze;hn("freeze",(function(t){return function(e){return t&&xn(e)?t(Sn(e)):e}}));var Pn=d,Vn=yt.onFreeze;hn("seal",(function(t){return function(e){return t&&Pn(e)?t(Vn(e)):e}}));var kn=d,An=yt.onFreeze;hn("preventExtensions",(function(t){return function(e){return t&&kn(e)?t(An(e)):e}}));var Cn=d;hn("isFrozen",(function(t){return function(e){return!Cn(e)||!!t&&t(e)}}));var En=d;hn("isSealed",(function(t){return function(e){return!En(e)||!!t&&t(e)}}));var Ln=d;hn("isExtensible",(function(t){return function(e){return!!Ln(e)&&(!t||t(e))}}));var Nn=u,Mn=fe,Tn=_e,On=ge(),Rn=ke,Dn=Bt(),Bn=Object.assign,Fn=!Bn||a((function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=Bn({},t)[i]||Object.keys(Bn({},e)).join("")!=n}))?function(t,e){for(var i=Rn(t),n=arguments.length,r=1,o=Tn.f,s=On.f;n>r;)for(var a,u=Dn(arguments[r++]),l=o?Mn(u).concat(o(u)):Mn(u),h=l.length,p=0;h>p;)a=l[p++],Nn&&!s.call(u,a)||(i[a]=u[a]);return i}:Bn,In=ot;In(In.S+In.F,"Object",{assign:Fn});var jn=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};ot(ot.S,"Object",{is:jn});var $n=d,zn=g,Hn=function(t,e){if(zn(t),!$n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},Gn={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{(i=K(Function.call,Ye.f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return Hn(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:Hn};ot(ot.S,"Object",{setPrototypeOf:Gn.set});var Wn=Dt,Yn=xt("toStringTag"),Xn="Arguments"==Wn(function(){return arguments}()),Un=function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Yn))?i:Xn?Wn(e):"Object"==(n=Wn(e))&&"function"==typeof e.callee?"Arguments":n},qn=Un,Zn={};Zn[xt("toStringTag")]="z",Zn+""!="[object z]"&&U(Object.prototype,"toString",(function(){return"[object "+qn(this)+"]"}),!0);var Kn=function(t,e,i){var n=void 0===i;switch(e.length){case 0:return n?t():t.call(i);case 1:return n?t(e[0]):t.call(i,e[0]);case 2:return n?t(e[0],e[1]):t.call(i,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(i,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(i,e[0],e[1],e[2],e[3])}return t.apply(i,e)},Jn=q,Qn=d,tr=Kn,er=[].slice,ir={},nr=Function.bind||function(t){var e=Jn(this),i=er.call(arguments,1),n=function(){var r=i.concat(er.call(arguments));return this instanceof n?function(t,e,i){if(!(e in ir)){for(var n=[],r=0;r<e;r++)n[r]="a["+r+"]";ir[e]=Function("F,a","return new F("+n.join(",")+")")}return ir[e](t,i)}(e,r.length,r):tr(e,r,t)};return Qn(e.prototype)&&(n.prototype=e.prototype),n};ot(ot.P,"Function",{bind:nr});var rr=_.f,or=Function.prototype,sr=/^\s*function ([^ (]*)/,ar="name";ar in or||u&&rr(or,ar,{configurable:!0,get:function(){try{return(""+this).match(sr)[1]}catch(t){return""}}});var ur=d,lr=gn,hr=xt("hasInstance"),pr=Function.prototype;hr in pr||_.f(pr,hr,{value:function(t){if("function"!=typeof this||!ur(t))return!1;if(!ur(this.prototype))return t instanceof this;for(;t=lr(t);)if(this.prototype===t)return!0;return!1}});var cr="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",fr=ot,_r=Ft,dr=a,yr=cr,gr="["+yr+"]",vr=RegExp("^"+gr+gr+"*"),mr=RegExp(gr+gr+"*$"),br=function(t,e,i){var n={},r=dr((function(){return!!yr[t]()||"​…"!="​…"[t]()})),o=n[t]=r?e(wr):yr[t];i&&(n[i]=o),fr(fr.P+fr.F*r,"String",n)},wr=br.trim=function(t,e){return t=String(_r(t)),1&e&&(t=t.replace(vr,"")),2&e&&(t=t.replace(mr,"")),t},xr=br,Sr=r.parseInt,Pr=xr.trim,Vr=cr,kr=/^[-+]?0[xX]/,Ar=8!==Sr(Vr+"08")||22!==Sr(Vr+"0x16")?function(t,e){var i=Pr(String(t),3);return Sr(i,e>>>0||(kr.test(i)?16:10))}:Sr,Cr=ot,Er=Ar;Cr(Cr.G+Cr.F*(parseInt!=Er),{parseInt:Er});var Lr=r.parseFloat,Nr=xr.trim,Mr=1/Lr(cr+"-0")!=-1/0?function(t){var e=Nr(String(t),3),i=Lr(e);return 0===i&&"-"==e.charAt(0)?-0:i}:Lr,Tr=ot,Or=Mr;Tr(Tr.G+Tr.F*(parseFloat!=Or),{parseFloat:Or});var Rr=d,Dr=Gn.set,Br=function(t,e,i){var n,r=e.constructor;return r!==i&&"function"==typeof r&&(n=r.prototype)!==i.prototype&&Rr(n)&&Dr&&Dr(t,n),t},Fr=r,Ir=s,jr=Dt,$r=Br,zr=w,Hr=a,Gr=Ie.f,Wr=Ye.f,Yr=_.f,Xr=xr.trim,Ur="Number",qr=Fr[Ur],Zr=qr,Kr=qr.prototype,Jr=jr(Be(Kr))==Ur,Qr="trim"in String.prototype,to=function(t){var e=zr(t,!1);if("string"==typeof e&&e.length>2){var i,n,r,o=(e=Qr?e.trim():Xr(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(i=e.charCodeAt(2))||120===i)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+e}for(var s,a=e.slice(2),u=0,l=a.length;u<l;u++)if((s=a.charCodeAt(u))<48||s>r)return NaN;return parseInt(a,n)}}return+e};if(!qr(" 0o1")||!qr("0b1")||qr("+0x1")){qr=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof qr&&(Jr?Hr((function(){Kr.valueOf.call(i)})):jr(i)!=Ur)?$r(new Zr(to(e)),i,qr):to(e)};for(var eo,io=u?Gr(Zr):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),no=0;io.length>no;no++)Ir(Zr,eo=io[no])&&!Ir(qr,eo)&&Yr(qr,eo,Wr(Zr,eo));qr.prototype=Kr,Kr.constructor=qr,U(Fr,Ur,qr)}var ro=Dt,oo=function(t,e){if("number"!=typeof t&&"Number"!=ro(t))throw TypeError(e);return+t},so=Gt,ao=Ft,uo=function(t){var e=String(ao(this)),i="",n=so(t);if(n<0||n==1/0)throw RangeError("Count can't be negative");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(i+=e);return i},lo=ot,ho=Gt,po=oo,co=uo,fo=1..toFixed,_o=Math.floor,yo=[0,0,0,0,0,0],go="Number.toFixed: incorrect invocation!",vo="0",mo=function(t,e){for(var i=-1,n=e;++i<6;)n+=t*yo[i],yo[i]=n%1e7,n=_o(n/1e7)},bo=function(t){for(var e=6,i=0;--e>=0;)i+=yo[e],yo[e]=_o(i/t),i=i%t*1e7},wo=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==yo[t]){var i=String(yo[t]);e=""===e?i:e+co.call(vo,7-i.length)+i}return e},xo=function(t,e,i){return 0===e?i:e%2==1?xo(t,e-1,i*t):xo(t*t,e/2,i)};lo(lo.P+lo.F*(!!fo&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a((function(){fo.call({})}))),"Number",{toFixed:function(t){var e,i,n,r,o=po(this,go),s=ho(t),a="",u=vo;if(s<0||s>20)throw RangeError(go);if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(a="-",o=-o),o>1e-21)if(e=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e}(o*xo(2,69,1))-69,i=e<0?o*xo(2,-e,1):o/xo(2,e,1),i*=4503599627370496,(e=52-e)>0){for(mo(0,i),n=s;n>=7;)mo(1e7,0),n-=7;for(mo(xo(10,n,1),0),n=e-1;n>=23;)bo(1<<23),n-=23;bo(1<<n),mo(1,1),bo(2),u=wo()}else mo(0,i),mo(1<<-e,0),u=wo()+co.call(vo,s);return u=s>0?a+((r=u.length)<=s?"0."+co.call(vo,s-r)+u:u.slice(0,r-s)+"."+u.slice(r-s)):a+u}});var So=ot,Po=a,Vo=oo,ko=1..toPrecision;So(So.P+So.F*(Po((function(){return"1"!==ko.call(1,void 0)}))||!Po((function(){ko.call({})}))),"Number",{toPrecision:function(t){var e=Vo(this,"Number#toPrecision: incorrect invocation!");return void 0===t?ko.call(e):ko.call(e,t)}});ot(ot.S,"Number",{EPSILON:Math.pow(2,-52)});var Ao=ot,Co=r.isFinite;Ao(Ao.S,"Number",{isFinite:function(t){return"number"==typeof t&&Co(t)}});var Eo=d,Lo=Math.floor,No=function(t){return!Eo(t)&&isFinite(t)&&Lo(t)===t};ot(ot.S,"Number",{isInteger:No});ot(ot.S,"Number",{isNaN:function(t){return t!=t}});var Mo=ot,To=No,Oo=Math.abs;Mo(Mo.S,"Number",{isSafeInteger:function(t){return To(t)&&Oo(t)<=9007199254740991}});ot(ot.S,"Number",{MAX_SAFE_INTEGER:9007199254740991});ot(ot.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991});var Ro=ot,Do=Mr;Ro(Ro.S+Ro.F*(Number.parseFloat!=Do),"Number",{parseFloat:Do});var Bo=ot,Fo=Ar;Bo(Bo.S+Bo.F*(Number.parseInt!=Fo),"Number",{parseInt:Fo});var Io=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)},jo=ot,$o=Io,zo=Math.sqrt,Ho=Math.acosh;jo(jo.S+jo.F*!(Ho&&710==Math.floor(Ho(Number.MAX_VALUE))&&Ho(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:$o(t-1+zo(t-1)*zo(t+1))}});var Go=ot,Wo=Math.asinh;Go(Go.S+Go.F*!(Wo&&1/Wo(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}});var Yo=ot,Xo=Math.atanh;Yo(Yo.S+Yo.F*!(Xo&&1/Xo(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}});var Uo=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1},qo=Uo;ot(ot.S,"Math",{cbrt:function(t){return qo(t=+t)*Math.pow(Math.abs(t),1/3)}});ot(ot.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}});var Zo=ot,Ko=Math.exp;Zo(Zo.S,"Math",{cosh:function(t){return(Ko(t=+t)+Ko(-t))/2}});var Jo=Math.expm1,Qo=!Jo||Jo(10)>22025.465794806718||Jo(10)<22025.465794806718||-2e-17!=Jo(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:Jo,ts=ot,es=Qo;ts(ts.S+ts.F*(es!=Math.expm1),"Math",{expm1:es});var is=Uo,ns=Math.pow,rs=ns(2,-52),os=ns(2,-23),ss=ns(2,127)*(2-os),as=ns(2,-126),us=Math.fround||function(t){var e,i,n=Math.abs(t),r=is(t);return n<as?r*(n/as/os+1/rs-1/rs)*as*os:(i=(e=(1+os/rs)*n)-(e-n))>ss||i!=i?r*(1/0):r*i};ot(ot.S,"Math",{fround:us});var ls=ot,hs=Math.abs;ls(ls.S,"Math",{hypot:function(t,e){for(var i,n,r=0,o=0,s=arguments.length,a=0;o<s;)a<(i=hs(arguments[o++]))?(r=r*(n=a/i)*n+1,a=i):r+=i>0?(n=i/a)*n:i;return a===1/0?1/0:a*Math.sqrt(r)}});var ps=ot,cs=Math.imul;ps(ps.S+ps.F*a((function(){return-5!=cs(4294967295,5)||2!=cs.length})),"Math",{imul:function(t,e){var i=65535,n=+t,r=+e,o=i&n,s=i&r;return 0|o*s+((i&n>>>16)*s+o*(i&r>>>16)<<16>>>0)}});ot(ot.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}});ot(ot.S,"Math",{log1p:Io});ot(ot.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}});ot(ot.S,"Math",{sign:Uo});var fs=ot,_s=Qo,ds=Math.exp;fs(fs.S+fs.F*a((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(_s(t)-_s(-t))/2:(ds(t-1)-ds(-t-1))*(Math.E/2)}});var ys=ot,gs=Qo,vs=Math.exp;ys(ys.S,"Math",{tanh:function(t){var e=gs(t=+t),i=gs(-t);return e==1/0?1:i==1/0?-1:(e-i)/(vs(t)+vs(-t))}});ot(ot.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}});var ms=ot,bs=Kt,ws=String.fromCharCode,xs=String.fromCodePoint;ms(ms.S+ms.F*(!!xs&&1!=xs.length),"String",{fromCodePoint:function(t){for(var e,i=[],n=arguments.length,r=0;n>r;){if(e=+arguments[r++],bs(e,1114111)!==e)throw RangeError(e+" is not a valid code point");i.push(e<65536?ws(e):ws(55296+((e-=65536)>>10),e%1024+56320))}return i.join("")}});var Ss=$t,Ps=Xt;ot(ot.S,"String",{raw:function(t){for(var e=Ss(t.raw),i=Ps(e.length),n=arguments.length,r=[],o=0;i>o;)r.push(String(e[o++])),o<n&&r.push(String(arguments[o]));return r.join("")}}),xr("trim",(function(t){return function(){return t(this,3)}}));var Vs=Gt,ks=Ft,As=function(t){return function(e,i){var n,r,o=String(ks(e)),s=Vs(i),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(r=o.charCodeAt(s+1))<56320||r>57343?t?o.charAt(s):n:t?o.slice(s,s+2):r-56320+(n-55296<<10)+65536}},Cs={},Es=Be,Ls=C,Ns=kt,Ms={};E()(Ms,xt("iterator"),(function(){return this}));var Ts=function(t,e,i){t.prototype=Es(Ms,{next:Ls(1,i)}),Ns(t,e+" Iterator")},Os=ot,Rs=U,Ds=E(),Bs=Cs,Fs=Ts,Is=kt,js=gn,$s=xt("iterator"),zs=!([].keys&&"next"in[].keys()),Hs="keys",Gs="values",Ws=function(){return this},Ys=function(t,e,i,n,r,o,s){Fs(i,e,n);var a,u,l,h=function(t){if(!zs&&t in _)return _[t];switch(t){case Hs:case Gs:return function(){return new i(this,t)}}return function(){return new i(this,t)}},p=e+" Iterator",c=r==Gs,f=!1,_=t.prototype,d=_[$s]||_["@@iterator"]||r&&_[r],y=d||h(r),g=r?c?h("entries"):y:void 0,v="Array"==e&&_.entries||d;if(v&&(l=js(v.call(new t)))!==Object.prototype&&l.next&&(Is(l,p,!0),"function"!=typeof l[$s]&&Ds(l,$s,Ws)),c&&d&&d.name!==Gs&&(f=!0,y=function(){return d.call(this)}),(zs||f||!_[$s])&&Ds(_,$s,y),Bs[e]=y,Bs[p]=Ws,r)if(a={values:c?y:h(Gs),keys:o?y:h(Hs),entries:g},s)for(u in a)u in _||Rs(_,u,a[u]);else Os(Os.P+Os.F*(zs||f),e,a);return a},Xs=As(!0);Ys(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=Xs(e,i),this._i+=t.length,{value:t,done:!1})}));var Us=ot,qs=As(!1);Us(Us.P,"String",{codePointAt:function(t){return qs(this,t)}});var Zs,Ks,Js=d,Qs=Dt,ta=xt("match"),ea=function(t){var e;return Js(t)&&(void 0!==(e=t[ta])?!!e:"RegExp"==Qs(t))},ia=ea,na=Ft,ra=function(t,e,i){if(ia(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(na(t))};function oa(){if(Ks)return Zs;Ks=1;var t=xt("match");return Zs=function(e){var i=/./;try{"/./"[e](i)}catch(n){try{return i[t]=!1,!"/./"[e](i)}catch(t){}}return!0},Zs}var sa=ot,aa=Xt,ua=ra,la="endsWith",ha=""[la];sa(sa.P+sa.F*oa()(la),"String",{endsWith:function(t){var e=ua(this,t,la),i=arguments.length>1?arguments[1]:void 0,n=aa(e.length),r=void 0===i?n:Math.min(aa(i),n),o=String(t);return ha?ha.call(e,o,r):e.slice(r-o.length,r)===o}});var pa=ot,ca=ra,fa="includes";pa(pa.P+pa.F*oa()(fa),"String",{includes:function(t){return!!~ca(this,t,fa).indexOf(t,arguments.length>1?arguments[1]:void 0)}});ot(ot.P,"String",{repeat:uo});var _a=ot,da=Xt,ya=ra,ga="startsWith",va=""[ga];_a(_a.P+_a.F*oa()(ga),"String",{startsWith:function(t){var e=ya(this,t,ga),i=da(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return va?va.call(e,n,i):e.slice(i,i+n.length)===n}});var ma=ot,ba=a,wa=Ft,xa=/"/g,Sa=function(t,e,i,n){var r=String(wa(t)),o="<"+e;return""!==i&&(o+=" "+i+'="'+String(n).replace(xa,"&quot;")+'"'),o+">"+r+"</"+e+">"},Pa=function(t,e){var i={};i[t]=e(Sa),ma(ma.P+ma.F*ba((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",i)};Pa("anchor",(function(t){return function(e){return t(this,"a","name",e)}})),Pa("big",(function(t){return function(){return t(this,"big","","")}})),Pa("blink",(function(t){return function(){return t(this,"blink","","")}})),Pa("bold",(function(t){return function(){return t(this,"b","","")}})),Pa("fixed",(function(t){return function(){return t(this,"tt","","")}})),Pa("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}})),Pa("fontsize",(function(t){return function(e){return t(this,"font","size",e)}})),Pa("italics",(function(t){return function(){return t(this,"i","","")}})),Pa("link",(function(t){return function(e){return t(this,"a","href",e)}})),Pa("small",(function(t){return function(){return t(this,"small","","")}})),Pa("strike",(function(t){return function(){return t(this,"strike","","")}})),Pa("sub",(function(t){return function(){return t(this,"sub","","")}})),Pa("sup",(function(t){return function(){return t(this,"sup","","")}}));ot(ot.S,"Date",{now:function(){return(new Date).getTime()}});var Va=ot,ka=ke,Aa=w;Va(Va.P+Va.F*a((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=ka(this),i=Aa(e);return"number"!=typeof i||isFinite(i)?e.toISOString():null}});var Ca=a,Ea=Date.prototype.getTime,La=Date.prototype.toISOString,Na=function(t){return t>9?t:"0"+t},Ma=ot,Ta=Ca((function(){return"0385-07-25T07:06:39.999Z"!=La.call(new Date(-50000000000001))}))||!Ca((function(){La.call(new Date(NaN))}))?function(){if(!isFinite(Ea.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),i=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+Na(t.getUTCMonth()+1)+"-"+Na(t.getUTCDate())+"T"+Na(t.getUTCHours())+":"+Na(t.getUTCMinutes())+":"+Na(t.getUTCSeconds())+"."+(i>99?i:"0"+Na(i))+"Z"}:La;Ma(Ma.P+Ma.F*(Date.prototype.toISOString!==Ta),"Date",{toISOString:Ta});var Oa,Ra,Da=Date.prototype,Ba="Invalid Date",Fa="toString",Ia=Da[Fa],ja=Da.getTime;new Date(NaN)+""!=Ba&&U(Da,Fa,(function(){var t=ja.call(this);return t==t?Ia.call(this):Ba}));var $a=xt("toPrimitive"),za=Date.prototype;$a in za||E()(za,$a,function(){if(Ra)return Oa;Ra=1;var t=g,e=w,i="number";return Oa=function(n){if("string"!==n&&n!==i&&"default"!==n)throw TypeError("Incorrect hint");return e(t(this),n!=i)}}());ot(ot.S,"Array",{isArray:Pe});var Ha,Ga,Wa=g,Ya=function(t,e,i,n){try{return n?e(Wa(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&Wa(r.call(t)),e}},Xa=Cs,Ua=xt("iterator"),qa=Array.prototype,Za=function(t){return void 0!==t&&(Xa.Array===t||qa[Ua]===t)},Ka=_,Ja=C,Qa=function(t,e,i){e in t?Ka.f(t,e,Ja(0,i)):t[e]=i},tu=Un,eu=xt("iterator"),iu=Cs,nu=f.getIteratorMethod=function(t){if(null!=t)return t[eu]||t["@@iterator"]||iu[tu(t)]};function ru(){if(Ga)return Ha;Ga=1;var t=xt("iterator"),e=!1;try{var i=[7][t]();i.return=function(){e=!0},Array.from(i,(function(){throw 2}))}catch(t){}return Ha=function(i,n){if(!n&&!e)return!1;var r=!1;try{var o=[7],s=o[t]();s.next=function(){return{done:r=!0}},o[t]=function(){return s},i(o)}catch(t){}return r}}var ou=K,su=ot,au=ke,uu=Ya,lu=Za,hu=Xt,pu=Qa,cu=nu;su(su.S+su.F*!ru()((function(t){Array.from(t)})),"Array",{from:function(t){var e,i,n,r,o=au(t),s="function"==typeof this?this:Array,a=arguments.length,u=a>1?arguments[1]:void 0,l=void 0!==u,h=0,p=cu(o);if(l&&(u=ou(u,a>2?arguments[2]:void 0,2)),null==p||s==Array&&lu(p))for(i=new s(e=hu(o.length));e>h;h++)pu(i,h,l?u(o[h],h):o[h]);else for(r=p.call(o),i=new s;!(n=r.next()).done;h++)pu(i,h,l?uu(r,u,[n.value,h],!0):n.value);return i.length=h,i}});var fu=ot,_u=Qa;fu(fu.S+fu.F*a((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,i=new("function"==typeof this?this:Array)(e);e>t;)_u(i,t,arguments[t++]);return i.length=e,i}});var du=a,yu=function(t,e){return!!t&&du((function(){e?t.call(null,(function(){}),1):t.call(null)}))},gu=ot,vu=$t,mu=[].join;gu(gu.P+gu.F*(Bt()!=Object||!yu(mu)),"Array",{join:function(t){return mu.call(vu(this),void 0===t?",":t)}});var bu=ot,wu=Ee,xu=Dt,Su=Kt,Pu=Xt,Vu=[].slice;bu(bu.P+bu.F*a((function(){wu&&Vu.call(wu)})),"Array",{slice:function(t,e){var i=Pu(this.length),n=xu(this);if(e=void 0===e?i:e,"Array"==n)return Vu.call(this,t,e);for(var r=Su(t,i),o=Su(e,i),s=Pu(o-r),a=new Array(s),u=0;u<s;u++)a[u]="String"==n?this.charAt(r+u):this[r+u];return a}});var ku=ot,Au=q,Cu=ke,Eu=a,Lu=[].sort,Nu=[1,2,3];ku(ku.P+ku.F*(Eu((function(){Nu.sort(void 0)}))||!Eu((function(){Nu.sort(null)}))||!yu(Lu)),"Array",{sort:function(t){return void 0===t?Lu.call(Cu(this)):Lu.call(Cu(this),Au(t))}});var Mu=d,Tu=Pe,Ou=xt("species"),Ru=function(t){var e;return Tu(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!Tu(e.prototype)||(e=void 0),Mu(e)&&null===(e=e[Ou])&&(e=void 0)),void 0===e?Array:e},Du=function(t,e){return new(Ru(t))(e)},Bu=K,Fu=Bt(),Iu=ke,ju=Xt,$u=Du,zu=function(t,e){var i=1==t,n=2==t,r=3==t,o=4==t,s=6==t,a=5==t||s,u=e||$u;return function(e,l,h){for(var p,c,f=Iu(e),_=Fu(f),d=Bu(l,h,3),y=ju(_.length),g=0,v=i?u(e,y):n?u(e,0):void 0;y>g;g++)if((a||g in _)&&(c=d(p=_[g],g,f),t))if(i)v[g]=c;else if(c)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:v.push(p)}else if(o)return!1;return s?-1:r||o?o:v}},Hu=ot,Gu=zu(0),Wu=yu([].forEach,!0);Hu(Hu.P+Hu.F*!Wu,"Array",{forEach:function(t){return Gu(this,t,arguments[1])}});var Yu=ot,Xu=zu(1);Yu(Yu.P+Yu.F*!yu([].map,!0),"Array",{map:function(t){return Xu(this,t,arguments[1])}});var Uu=ot,qu=zu(2);Uu(Uu.P+Uu.F*!yu([].filter,!0),"Array",{filter:function(t){return qu(this,t,arguments[1])}});var Zu=ot,Ku=zu(3);Zu(Zu.P+Zu.F*!yu([].some,!0),"Array",{some:function(t){return Ku(this,t,arguments[1])}});var Ju=ot,Qu=zu(4);Ju(Ju.P+Ju.F*!yu([].every,!0),"Array",{every:function(t){return Qu(this,t,arguments[1])}});var tl=q,el=ke,il=Bt(),nl=Xt,rl=function(t,e,i,n,r){tl(e);var o=el(t),s=il(o),a=nl(o.length),u=r?a-1:0,l=r?-1:1;if(i<2)for(;;){if(u in s){n=s[u],u+=l;break}if(u+=l,r?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;r?u>=0:a>u;u+=l)u in s&&(n=e(n,s[u],u,o));return n},ol=ot,sl=rl;ol(ol.P+ol.F*!yu([].reduce,!0),"Array",{reduce:function(t){return sl(this,t,arguments.length,arguments[1],!1)}});var al=ot,ul=rl;al(al.P+al.F*!yu([].reduceRight,!0),"Array",{reduceRight:function(t){return ul(this,t,arguments.length,arguments[1],!0)}});var ll=ot,hl=ee(!1),pl=[].indexOf,cl=!!pl&&1/[1].indexOf(1,-0)<0;ll(ll.P+ll.F*(cl||!yu(pl)),"Array",{indexOf:function(t){return cl?pl.apply(this,arguments)||0:hl(this,t,arguments[1])}});var fl,_l,dl=ot,yl=$t,gl=Gt,vl=Xt,ml=[].lastIndexOf,bl=!!ml&&1/[1].lastIndexOf(1,-0)<0;function wl(){if(_l)return fl;_l=1;var t=ke,e=Kt,i=Xt;return fl=[].copyWithin||function(n,r){var o=t(this),s=i(o.length),a=e(n,s),u=e(r,s),l=arguments.length>2?arguments[2]:void 0,h=Math.min((void 0===l?s:e(l,s))-u,s-a),p=1;for(u<a&&a<u+h&&(p=-1,u+=h-1,a+=h-1);h-- >0;)u in o?o[a]=o[u]:delete o[a],a+=p,u+=p;return o},fl}dl(dl.P+dl.F*(bl||!yu(ml)),"Array",{lastIndexOf:function(t){if(bl)return ml.apply(this,arguments)||0;var e=yl(this),i=vl(e.length),n=i-1;for(arguments.length>1&&(n=Math.min(n,gl(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}});var xl=xt("unscopables"),Sl=Array.prototype;null==Sl[xl]&&E()(Sl,xl,{});var Pl,Vl,kl=function(t){Sl[xl][t]=!0};function Al(){if(Vl)return Pl;Vl=1;var t=ke,e=Kt,i=Xt;return Pl=function(n){for(var r=t(this),o=i(r.length),s=arguments.length,a=e(s>1?arguments[1]:void 0,o),u=s>2?arguments[2]:void 0,l=void 0===u?o:e(u,o);l>a;)r[a++]=n;return r},Pl}ot(ot.P,"Array",{copyWithin:wl()}),kl("copyWithin");ot(ot.P,"Array",{fill:Al()}),kl("fill");var Cl=ot,El=zu(5),Ll="find",Nl=!0;Ll in[]&&Array(1)[Ll]((function(){Nl=!1})),Cl(Cl.P+Cl.F*Nl,"Array",{find:function(t){return El(this,t,arguments.length>1?arguments[1]:void 0)}}),kl(Ll);var Ml,Tl,Ol=ot,Rl=zu(6),Dl="findIndex",Bl=!0;function Fl(){if(Tl)return Ml;Tl=1;var t=r,e=_,i=u,n=xt("species");return Ml=function(r){var o=t[r];i&&o&&!o[n]&&e.f(o,n,{configurable:!0,get:function(){return this}})},Ml}Dl in[]&&Array(1)[Dl]((function(){Bl=!1})),Ol(Ol.P+Ol.F*Bl,"Array",{findIndex:function(t){return Rl(this,t,arguments.length>1?arguments[1]:void 0)}}),kl(Dl),Fl()("Array");var Il=function(t,e){return{value:e,done:!!t}},jl=kl,$l=Il,zl=Cs,Hl=$t,Gl=Ys(Array,"Array",(function(t,e){this._t=Hl(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,$l(1)):$l(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])}),"values");zl.Arguments=zl.Array,jl("keys"),jl("values"),jl("entries");var Wl=g,Yl=function(){var t=Wl(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Xl=r,Ul=Br,ql=_.f,Zl=Ie.f,Kl=ea,Jl=Yl,Ql=Xl.RegExp,th=Ql,eh=Ql.prototype,ih=/a/g,nh=/a/g,rh=new Ql(ih)!==ih;if(u&&(!rh||a((function(){return nh[xt("match")]=!1,Ql(ih)!=ih||Ql(nh)==nh||"/a/i"!=Ql(ih,"i")})))){Ql=function(t,e){var i=this instanceof Ql,n=Kl(t),r=void 0===e;return!i&&n&&t.constructor===Ql&&r?t:Ul(rh?new th(n&&!r?t.source:t,e):th((n=t instanceof Ql)?t.source:t,n&&r?Jl.call(t):e),i?this:eh,Ql)};for(var oh=function(t){t in Ql||ql(Ql,t,{configurable:!0,get:function(){return th[t]},set:function(e){th[t]=e}})},sh=Zl(th),ah=0;sh.length>ah;)oh(sh[ah++]);eh.constructor=Ql,Ql.prototype=eh,U(Xl,"RegExp",Ql)}Fl()("RegExp");var uh=Yl,lh=RegExp.prototype.exec,hh=String.prototype.replace,ph=lh,ch="lastIndex",fh=function(){var t=/a/,e=/b*/g;return lh.call(t,"a"),lh.call(e,"a"),0!==t[ch]||0!==e[ch]}(),_h=void 0!==/()??/.exec("")[1];(fh||_h)&&(ph=function(t){var e,i,n,r,o=this;return _h&&(i=new RegExp("^"+o.source+"$(?!\\s)",uh.call(o))),fh&&(e=o[ch]),n=lh.call(o,t),fh&&n&&(o[ch]=o.global?n.index+n[0].length:e),_h&&n&&n.length>1&&hh.call(n[0],i,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(n[r]=void 0)})),n});var dh=ph;ot({target:"RegExp",proto:!0,forced:dh!==/./.exec},{exec:dh}),u&&"g"!=/./g.flags&&_.f(RegExp.prototype,"flags",{configurable:!0,get:Yl});var yh=g,gh=Yl,vh=u,mh="toString",bh=/./[mh],wh=function(t){U(RegExp.prototype,mh,t,!0)};a((function(){return"/a/b"!=bh.call({source:"a",flags:"b"})}))?wh((function(){var t=yh(this);return"/".concat(t.source,"/","flags"in t?t.flags:!vh&&t instanceof RegExp?gh.call(t):void 0)})):bh.name!=mh&&wh((function(){return bh.call(this)}));var xh=As(!0),Sh=function(t,e,i){return e+(i?xh(t,e).length:1)},Ph=Un,Vh=RegExp.prototype.exec,kh=function(t,e){var i=t.exec;if("function"==typeof i){var n=i.call(t,e);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==Ph(t))throw new TypeError("RegExp#exec called on incompatible receiver");return Vh.call(t,e)},Ah=U,Ch=E(),Eh=a,Lh=Ft,Nh=xt,Mh=dh,Th=Nh("species"),Oh=!Eh((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Rh=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}(),Dh=function(t,e,i){var n=Nh(t),r=!Eh((function(){var e={};return e[n]=function(){return 7},7!=""[t](e)})),o=r?!Eh((function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[Th]=function(){return i}),i[n](""),!e})):void 0;if(!r||!o||"replace"===t&&!Oh||"split"===t&&!Rh){var s=/./[n],a=i(Lh,n,""[t],(function(t,e,i,n,o){return e.exec===Mh?r&&!o?{done:!0,value:s.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}})),u=a[0],l=a[1];Ah(String.prototype,t,u),Ch(RegExp.prototype,n,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})}},Bh=g,Fh=Xt,Ih=Sh,jh=kh;Dh("match",1,(function(t,e,i,n){return[function(i){var n=t(this),r=null==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=n(i,t,this);if(e.done)return e.value;var r=Bh(t),o=String(this);if(!r.global)return jh(r,o);var s=r.unicode;r.lastIndex=0;for(var a,u=[],l=0;null!==(a=jh(r,o));){var h=String(a[0]);u[l]=h,""===h&&(r.lastIndex=Ih(o,Fh(r.lastIndex),s)),l++}return 0===l?null:u}]}));var $h=g,zh=ke,Hh=Xt,Gh=Gt,Wh=Sh,Yh=kh,Xh=Math.max,Uh=Math.min,qh=Math.floor,Zh=/\$([$&`']|\d\d?|<[^>]*>)/g,Kh=/\$([$&`']|\d\d?)/g;Dh("replace",2,(function(t,e,i,n){return[function(n,r){var o=t(this),s=null==n?void 0:n[e];return void 0!==s?s.call(n,o,r):i.call(String(o),n,r)},function(t,e){var o=n(i,t,this,e);if(o.done)return o.value;var s=$h(t),a=String(this),u="function"==typeof e;u||(e=String(e));var l=s.global;if(l){var h=s.unicode;s.lastIndex=0}for(var p=[];;){var c=Yh(s,a);if(null===c)break;if(p.push(c),!l)break;""===String(c[0])&&(s.lastIndex=Wh(a,Hh(s.lastIndex),h))}for(var f,_="",d=0,y=0;y<p.length;y++){c=p[y];for(var g=String(c[0]),v=Xh(Uh(Gh(c.index),a.length),0),m=[],b=1;b<c.length;b++)m.push(void 0===(f=c[b])?f:String(f));var w=c.groups;if(u){var x=[g].concat(m,v,a);void 0!==w&&x.push(w);var S=String(e.apply(void 0,x))}else S=r(g,a,v,m,w,e);v>=d&&(_+=a.slice(d,v)+S,d=v+g.length)}return _+a.slice(d)}];function r(t,e,n,r,o,s){var a=n+t.length,u=r.length,l=Kh;return void 0!==o&&(o=zh(o),l=Zh),i.call(s,l,(function(i,s){var l;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(a);case"<":l=o[s.slice(1,-1)];break;default:var h=+s;if(0===h)return i;if(h>u){var p=qh(h/10);return 0===p?i:p<=u?void 0===r[p-1]?s.charAt(1):r[p-1]+s.charAt(1):i}l=r[h-1]}return void 0===l?"":l}))}}));var Jh=g,Qh=jn,tp=kh;Dh("search",1,(function(t,e,i,n){return[function(i){var n=t(this),r=null==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=n(i,t,this);if(e.done)return e.value;var r=Jh(t),o=String(this),s=r.lastIndex;Qh(s,0)||(r.lastIndex=0);var a=tp(r,o);return Qh(r.lastIndex,s)||(r.lastIndex=s),null===a?-1:a.index}]}));var ep=g,ip=q,np=xt("species"),rp=function(t,e){var i,n=ep(t).constructor;return void 0===n||null==(i=ep(n)[np])?e:ip(i)},op=ea,sp=g,ap=rp,up=Sh,lp=Xt,hp=kh,pp=dh,cp=a,fp=Math.min,_p=[].push,dp="split",yp="length",gp="lastIndex",vp=4294967295,mp=!cp((function(){RegExp(vp,"y")}));Dh("split",2,(function(t,e,i,n){var r;return r="c"=="abbc"[dp](/(b)*/)[1]||4!="test"[dp](/(?:)/,-1)[yp]||2!="ab"[dp](/(?:ab)*/)[yp]||4!="."[dp](/(.?)(.?)/)[yp]||"."[dp](/()()/)[yp]>1||""[dp](/.?/)[yp]?function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!op(t))return i.call(n,t,e);for(var r,o,s,a=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,h=void 0===e?vp:e>>>0,p=new RegExp(t.source,u+"g");(r=pp.call(p,n))&&!((o=p[gp])>l&&(a.push(n.slice(l,r.index)),r[yp]>1&&r.index<n[yp]&&_p.apply(a,r.slice(1)),s=r[0][yp],l=o,a[yp]>=h));)p[gp]===r.index&&p[gp]++;return l===n[yp]?!s&&p.test("")||a.push(""):a.push(n.slice(l)),a[yp]>h?a.slice(0,h):a}:"0"[dp](void 0,0)[yp]?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,n){var o=t(this),s=null==i?void 0:i[e];return void 0!==s?s.call(i,o,n):r.call(String(o),i,n)},function(t,e){var o=n(r,t,this,e,r!==i);if(o.done)return o.value;var s=sp(t),a=String(this),u=ap(s,RegExp),l=s.unicode,h=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(mp?"y":"g"),p=new u(mp?s:"^(?:"+s.source+")",h),c=void 0===e?vp:e>>>0;if(0===c)return[];if(0===a.length)return null===hp(p,a)?[a]:[];for(var f=0,_=0,d=[];_<a.length;){p.lastIndex=mp?_:0;var y,g=hp(p,mp?a:a.slice(_));if(null===g||(y=fp(lp(p.lastIndex+(mp?0:_)),a.length))===f)_=up(a,_,l);else{if(d.push(a.slice(f,_)),d.length===c)return d;for(var v=1;v<=g.length-1;v++)if(d.push(g[v]),d.length===c)return d;_=f=y}}return d.push(a.slice(f)),d}]}));var bp=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t},wp={exports:{}},xp=K,Sp=Ya,Pp=Za,Vp=g,kp=Xt,Ap=nu,Cp={},Ep={},Lp=wp.exports=function(t,e,i,n,r){var o,s,a,u,l=r?function(){return t}:Ap(t),h=xp(i,n,e?2:1),p=0;if("function"!=typeof l)throw TypeError(t+" is not iterable!");if(Pp(l)){for(o=kp(t.length);o>p;p++)if((u=e?h(Vp(s=t[p])[0],s[1]):h(t[p]))===Cp||u===Ep)return u}else for(a=l.call(t);!(s=a.next()).done;)if((u=Sp(a,h,s.value,e))===Cp||u===Ep)return u};Lp.BREAK=Cp,Lp.RETURN=Ep;var Np,Mp,Tp,Op=wp.exports,Rp=K,Dp=Kn,Bp=Ee,Fp=v(),Ip=r,jp=Ip.process,$p=Ip.setImmediate,zp=Ip.clearImmediate,Hp=Ip.MessageChannel,Gp=Ip.Dispatch,Wp=0,Yp={},Xp="onreadystatechange",Up=function(){var t=+this;if(Yp.hasOwnProperty(t)){var e=Yp[t];delete Yp[t],e()}},qp=function(t){Up.call(t.data)};$p&&zp||($p=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return Yp[++Wp]=function(){Dp("function"==typeof t?t:Function(t),e)},Np(Wp),Wp},zp=function(t){delete Yp[t]},"process"==Dt(jp)?Np=function(t){jp.nextTick(Rp(Up,t,1))}:Gp&&Gp.now?Np=function(t){Gp.now(Rp(Up,t,1))}:Hp?(Tp=(Mp=new Hp).port2,Mp.port1.onmessage=qp,Np=Rp(Tp.postMessage,Tp,1)):Ip.addEventListener&&"function"==typeof postMessage&&!Ip.importScripts?(Np=function(t){Ip.postMessage(t+"","*")},Ip.addEventListener("message",qp,!1)):Np=Xp in Fp("script")?function(t){Bp.appendChild(Fp("script"))[Xp]=function(){Bp.removeChild(this),Up.call(t)}}:function(t){setTimeout(Rp(Up,t,1),0)});var Zp={set:$p,clear:zp},Kp=r,Jp=Zp.set,Qp=Kp.MutationObserver||Kp.WebKitMutationObserver,tc=Kp.process,ec=Kp.Promise,ic="process"==Dt(tc),nc=function(){var t,e,i,n=function(){var n,r;for(ic&&(n=tc.domain)&&n.exit();t;){r=t.fn,t=t.next;try{r()}catch(n){throw t?i():e=void 0,n}}e=void 0,n&&n.enter()};if(ic)i=function(){tc.nextTick(n)};else if(!Qp||Kp.navigator&&Kp.navigator.standalone)if(ec&&ec.resolve){var r=ec.resolve(void 0);i=function(){r.then(n)}}else i=function(){Jp.call(Kp,n)};else{var o=!0,s=document.createTextNode("");new Qp(n).observe(s,{characterData:!0}),i=function(){s.data=o=!o}}return function(n){var r={fn:n,next:void 0};e&&(e.next=r),t||(t=r,i()),e=r}},rc={},oc=q;function sc(t){var e,i;this.promise=new t((function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n})),this.resolve=oc(e),this.reject=oc(i)}rc.f=function(t){return new sc(t)};var ac,uc,lc=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}},hc=r.navigator,pc=hc&&hc.userAgent||"",cc=g,fc=d,_c=rc,dc=function(t,e){if(cc(t),fc(e)&&e.constructor===t)return e;var i=_c.f(t);return(0,i.resolve)(e),i.promise};function yc(){if(uc)return ac;uc=1;var t=U;return ac=function(e,i,n){for(var r in i)t(e,r,i[r],n);return e},ac}var gc,vc,mc,bc,wc=r,xc=K,Sc=Un,Pc=ot,Vc=d,kc=q,Ac=bp,Cc=Op,Ec=rp,Lc=Zp.set,Nc=nc(),Mc=rc,Tc=lc,Oc=pc,Rc=dc,Dc="Promise",Bc=wc.TypeError,Fc=wc.process,Ic=Fc&&Fc.versions,jc=Ic&&Ic.v8||"",$c=wc[Dc],zc="process"==Sc(Fc),Hc=function(){},Gc=vc=Mc.f,Wc=!!function(){try{var t=$c.resolve(1),e=(t.constructor={})[xt("species")]=function(t){t(Hc,Hc)};return(zc||"function"==typeof PromiseRejectionEvent)&&t.then(Hc)instanceof e&&0!==jc.indexOf("6.6")&&-1===Oc.indexOf("Chrome/66")}catch(t){}}(),Yc=function(t){var e;return!(!Vc(t)||"function"!=typeof(e=t.then))&&e},Xc=function(t,e){if(!t._n){t._n=!0;var i=t._c;Nc((function(){for(var n=t._v,r=1==t._s,o=0,s=function(e){var i,o,s,a=r?e.ok:e.fail,u=e.resolve,l=e.reject,h=e.domain;try{a?(r||(2==t._h&&Zc(t),t._h=1),!0===a?i=n:(h&&h.enter(),i=a(n),h&&(h.exit(),s=!0)),i===e.promise?l(Bc("Promise-chain cycle")):(o=Yc(i))?o.call(i,u,l):u(i)):l(n)}catch(t){h&&!s&&h.exit(),l(t)}};i.length>o;)s(i[o++]);t._c=[],t._n=!1,e&&!t._h&&Uc(t)}))}},Uc=function(t){Lc.call(wc,(function(){var e,i,n,r=t._v,o=qc(t);if(o&&(e=Tc((function(){zc?Fc.emit("unhandledRejection",r,t):(i=wc.onunhandledrejection)?i({promise:t,reason:r}):(n=wc.console)&&n.error&&n.error("Unhandled promise rejection",r)})),t._h=zc||qc(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},qc=function(t){return 1!==t._h&&0===(t._a||t._c).length},Zc=function(t){Lc.call(wc,(function(){var e;zc?Fc.emit("rejectionHandled",t):(e=wc.onrejectionhandled)&&e({promise:t,reason:t._v})}))},Kc=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),Xc(e,!0))},Jc=function(t){var e,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw Bc("Promise can't be resolved itself");(e=Yc(t))?Nc((function(){var n={_w:i,_d:!1};try{e.call(t,xc(Jc,n,1),xc(Kc,n,1))}catch(t){Kc.call(n,t)}})):(i._v=t,i._s=1,Xc(i,!1))}catch(t){Kc.call({_w:i,_d:!1},t)}}};Wc||($c=function(t){Ac(this,$c,Dc,"_h"),kc(t),gc.call(this);try{t(xc(Jc,this,1),xc(Kc,this,1))}catch(t){Kc.call(this,t)}},(gc=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=yc()($c.prototype,{then:function(t,e){var i=Gc(Ec(this,$c));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=zc?Fc.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&Xc(this,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),mc=function(){var t=new gc;this.promise=t,this.resolve=xc(Jc,t,1),this.reject=xc(Kc,t,1)},Mc.f=Gc=function(t){return t===$c||t===bc?new mc(t):vc(t)}),Pc(Pc.G+Pc.W+Pc.F*!Wc,{Promise:$c}),kt($c,Dc),Fl()(Dc),bc=f[Dc],Pc(Pc.S+Pc.F*!Wc,Dc,{reject:function(t){var e=Gc(this);return(0,e.reject)(t),e.promise}}),Pc(Pc.S+Pc.F*!Wc,Dc,{resolve:function(t){return Rc(this,t)}}),Pc(Pc.S+Pc.F*!(Wc&&ru()((function(t){$c.all(t).catch(Hc)}))),Dc,{all:function(t){var e=this,i=Gc(e),n=i.resolve,r=i.reject,o=Tc((function(){var i=[],o=0,s=1;Cc(t,!1,(function(t){var a=o++,u=!1;i.push(void 0),s++,e.resolve(t).then((function(t){u||(u=!0,i[a]=t,--s||n(i))}),r)})),--s||n(i)}));return o.e&&r(o.v),i.promise},race:function(t){var e=this,i=Gc(e),n=i.reject,r=Tc((function(){Cc(t,!1,(function(t){e.resolve(t).then(i.resolve,n)}))}));return r.e&&n(r.v),i.promise}});var Qc=d,tf=function(t,e){if(!Qc(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t},ef=_.f,nf=Be,rf=yc(),of=K,sf=bp,af=Op,uf=Ys,lf=Il,hf=Fl(),pf=u,cf=yt.fastKey,ff=tf,_f=pf?"_s":"size",df=function(t,e){var i,n=cf(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i},yf={getConstructor:function(t,e,i,n){var r=t((function(t,o){sf(t,r,e,"_i"),t._t=e,t._i=nf(null),t._f=void 0,t._l=void 0,t[_f]=0,null!=o&&af(o,i,t[n],t)}));return rf(r.prototype,{clear:function(){for(var t=ff(this,e),i=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];t._f=t._l=void 0,t[_f]=0},delete:function(t){var i=ff(this,e),n=df(i,t);if(n){var r=n.n,o=n.p;delete i._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),i._f==n&&(i._f=r),i._l==n&&(i._l=o),i[_f]--}return!!n},forEach:function(t){ff(this,e);for(var i,n=of(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(n(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!df(ff(this,e),t)}}),pf&&ef(r.prototype,"size",{get:function(){return ff(this,e)[_f]}}),r},def:function(t,e,i){var n,r,o=df(t,e);return o?o.v=i:(t._l=o={i:r=cf(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[_f]++,"F"!==r&&(t._i[r]=o)),t},getEntry:df,setStrong:function(t,e,i){uf(t,e,(function(t,i){this._t=ff(t,e),this._k=i,this._l=void 0}),(function(){for(var t=this,e=t._k,i=t._l;i&&i.r;)i=i.p;return t._t&&(t._l=i=i?i.n:t._t._f)?lf(0,"keys"==e?i.k:"values"==e?i.v:[i.k,i.v]):(t._t=void 0,lf(1))}),i?"entries":"values",!i,!0),hf(e)}},gf=r,vf=ot,mf=U,bf=yc(),wf=yt,xf=Op,Sf=bp,Pf=d,Vf=a,kf=ru(),Af=kt,Cf=Br,Ef=function(t,e,i,n,r,o){var s=gf[t],a=s,u=r?"set":"add",l=a&&a.prototype,h={},p=function(t){var e=l[t];mf(l,t,"delete"==t||"has"==t?function(t){return!(o&&!Pf(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!Pf(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,i){return e.call(this,0===t?0:t,i),this})};if("function"==typeof a&&(o||l.forEach&&!Vf((function(){(new a).entries().next()})))){var c=new a,f=c[u](o?{}:-0,1)!=c,_=Vf((function(){c.has(1)})),d=kf((function(t){new a(t)})),y=!o&&Vf((function(){for(var t=new a,e=5;e--;)t[u](e,e);return!t.has(-0)}));d||((a=e((function(e,i){Sf(e,a,t);var n=Cf(new s,e,a);return null!=i&&xf(i,r,n[u],n),n}))).prototype=l,l.constructor=a),(_||y)&&(p("delete"),p("has"),r&&p("get")),(y||f)&&p(u),o&&l.clear&&delete l.clear}else a=n.getConstructor(e,t,r,u),bf(a.prototype,i),wf.NEED=!0;return Af(a,t),h[t]=a,vf(vf.G+vf.W+vf.F*(a!=s),h),o||n.setStrong(a,t,r),a},Lf=yf,Nf=tf,Mf="Map",Tf=Ef(Mf,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=Lf.getEntry(Nf(this,Mf),t);return e&&e.v},set:function(t,e){return Lf.def(Nf(this,Mf),0===t?0:t,e)}},Lf,!0),Of=yf,Rf=tf,Df=Ef("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return Of.def(Rf(this,"Set"),t=0===t?0:t,t)}},Of),Bf={exports:{}},Ff=yc(),If=yt.getWeak,jf=g,$f=d,zf=bp,Hf=Op,Gf=zu,Wf=s,Yf=tf,Xf=Gf(5),Uf=Gf(6),qf=0,Zf=function(t){return t._l||(t._l=new Kf)},Kf=function(){this.a=[]},Jf=function(t,e){return Xf(t.a,(function(t){return t[0]===e}))};Kf.prototype={get:function(t){var e=Jf(this,t);if(e)return e[1]},has:function(t){return!!Jf(this,t)},set:function(t,e){var i=Jf(this,t);i?i[1]=e:this.a.push([t,e])},delete:function(t){var e=Uf(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}};var Qf,t_={getConstructor:function(t,e,i,n){var r=t((function(t,o){zf(t,r,e,"_i"),t._t=e,t._i=qf++,t._l=void 0,null!=o&&Hf(o,i,t[n],t)}));return Ff(r.prototype,{delete:function(t){if(!$f(t))return!1;var i=If(t);return!0===i?Zf(Yf(this,e)).delete(t):i&&Wf(i,this._i)&&delete i[this._i]},has:function(t){if(!$f(t))return!1;var i=If(t);return!0===i?Zf(Yf(this,e)).has(t):i&&Wf(i,this._i)}}),r},def:function(t,e,i){var n=If(jf(e),!0);return!0===n?Zf(t).set(e,i):n[t._i]=i,t},ufstore:Zf},e_=r,i_=zu(0),n_=U,r_=yt,o_=Fn,s_=t_,a_=d,u_=tf,l_=tf,h_=!e_.ActiveXObject&&"ActiveXObject"in e_,p_="WeakMap",c_=r_.getWeak,f_=Object.isExtensible,__=s_.ufstore,d_=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y_={get:function(t){if(a_(t)){var e=c_(t);return!0===e?__(u_(this,p_)).get(t):e?e[this._i]:void 0}},set:function(t,e){return s_.def(u_(this,p_),t,e)}},g_=Bf.exports=Ef(p_,d_,y_,s_,!0,!0);l_&&h_&&(o_((Qf=s_.getConstructor(d_,p_)).prototype,y_),r_.NEED=!0,i_(["delete","has","get","set"],(function(t){var e=g_.prototype,i=e[t];n_(e,t,(function(e,n){if(a_(e)&&!f_(e)){this._f||(this._f=new Qf);var r=this._f[t](e,n);return"set"==t?this:r}return i.call(this,e,n)}))})));var v_=Bf.exports,m_=t_,b_=tf,w_="WeakSet";Ef(w_,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return m_.def(b_(this,w_),t,!0)}},m_,!1,!0);for(var x_,S_=r,P_=E(),V_=T,k_=V_("typed_array"),A_=V_("view"),C_=!(!S_.ArrayBuffer||!S_.DataView),E_=C_,L_=0,N_="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");L_<9;)(x_=S_[N_[L_++]])?(P_(x_.prototype,k_,!0),P_(x_.prototype,A_,!0)):E_=!1;var M_={ABV:C_,CONSTR:E_,TYPED:k_,VIEW:A_},T_={},O_=Gt,R_=Xt,D_=function(t){if(void 0===t)return 0;var e=O_(t),i=R_(e);if(e!==i)throw RangeError("Wrong length!");return i};!function(t){var e=r,i=u,n=M_,o=E(),s=yc(),l=a,h=bp,p=Gt,c=Xt,f=D_,d=Ie.f,y=_.f,g=Al(),v=kt,m="ArrayBuffer",b="DataView",w="prototype",x="Wrong index!",S=e[m],P=e[b],V=e.Math,k=e.RangeError,A=e.Infinity,C=S,L=V.abs,N=V.pow,M=V.floor,T=V.log,O=V.LN2,R="buffer",D="byteLength",B="byteOffset",F=i?"_b":R,I=i?"_l":D,j=i?"_o":B;function $(t,e,i){var n,r,o,s=new Array(i),a=8*i-e-1,u=(1<<a)-1,l=u>>1,h=23===e?N(2,-24)-N(2,-77):0,p=0,c=t<0||0===t&&1/t<0?1:0;for((t=L(t))!=t||t===A?(r=t!=t?1:0,n=u):(n=M(T(t)/O),t*(o=N(2,-n))<1&&(n--,o*=2),(t+=n+l>=1?h/o:h*N(2,1-l))*o>=2&&(n++,o/=2),n+l>=u?(r=0,n=u):n+l>=1?(r=(t*o-1)*N(2,e),n+=l):(r=t*N(2,l-1)*N(2,e),n=0));e>=8;s[p++]=255&r,r/=256,e-=8);for(n=n<<e|r,a+=e;a>0;s[p++]=255&n,n/=256,a-=8);return s[--p]|=128*c,s}function z(t,e,i){var n,r=8*i-e-1,o=(1<<r)-1,s=o>>1,a=r-7,u=i-1,l=t[u--],h=127&l;for(l>>=7;a>0;h=256*h+t[u],u--,a-=8);for(n=h&(1<<-a)-1,h>>=-a,a+=e;a>0;n=256*n+t[u],u--,a-=8);if(0===h)h=1-s;else{if(h===o)return n?NaN:l?-A:A;n+=N(2,e),h-=s}return(l?-1:1)*n*N(2,h-e)}function H(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function G(t){return[255&t]}function W(t){return[255&t,t>>8&255]}function Y(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function X(t){return $(t,52,8)}function U(t){return $(t,23,4)}function q(t,e,i){y(t[w],e,{get:function(){return this[i]}})}function Z(t,e,i,n){var r=f(+i);if(r+e>t[I])throw k(x);var o=t[F]._b,s=r+t[j],a=o.slice(s,s+e);return n?a:a.reverse()}function K(t,e,i,n,r,o){var s=f(+i);if(s+e>t[I])throw k(x);for(var a=t[F]._b,u=s+t[j],l=n(+r),h=0;h<e;h++)a[u+h]=l[o?h:e-h-1]}if(n.ABV){if(!l((function(){S(1)}))||!l((function(){new S(-1)}))||l((function(){return new S,new S(1.5),new S(NaN),S.name!=m}))){for(var J,Q=(S=function(t){return h(this,S),new C(f(t))})[w]=C[w],tt=d(C),et=0;tt.length>et;)(J=tt[et++])in S||o(S,J,C[J]);Q.constructor=S}var it=new P(new S(2)),nt=P[w].setInt8;it.setInt8(0,2147483648),it.setInt8(1,2147483649),!it.getInt8(0)&&it.getInt8(1)||s(P[w],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else S=function(t){h(this,S,m);var e=f(t);this._b=g.call(new Array(e),0),this[I]=e},P=function(t,e,i){h(this,P,b),h(t,S,b);var n=t[I],r=p(e);if(r<0||r>n)throw k("Wrong offset!");if(r+(i=void 0===i?n-r:c(i))>n)throw k("Wrong length!");this[F]=t,this[j]=r,this[I]=i},i&&(q(S,D,"_l"),q(P,R,"_b"),q(P,D,"_l"),q(P,B,"_o")),s(P[w],{getInt8:function(t){return Z(this,1,t)[0]<<24>>24},getUint8:function(t){return Z(this,1,t)[0]},getInt16:function(t){var e=Z(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Z(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return H(Z(this,4,t,arguments[1]))},getUint32:function(t){return H(Z(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return z(Z(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return z(Z(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){K(this,1,t,G,e)},setUint8:function(t,e){K(this,1,t,G,e)},setInt16:function(t,e){K(this,2,t,W,e,arguments[2])},setUint16:function(t,e){K(this,2,t,W,e,arguments[2])},setInt32:function(t,e){K(this,4,t,Y,e,arguments[2])},setUint32:function(t,e){K(this,4,t,Y,e,arguments[2])},setFloat32:function(t,e){K(this,4,t,U,e,arguments[2])},setFloat64:function(t,e){K(this,8,t,X,e,arguments[2])}});v(S,m),v(P,b),o(P[w],n.VIEW,!0),t[m]=S,t[b]=P}(T_);var B_=ot,F_=M_,I_=T_,j_=g,$_=Kt,z_=Xt,H_=d,G_=r.ArrayBuffer,W_=rp,Y_=I_.ArrayBuffer,X_=I_.DataView,U_=F_.ABV&&G_.isView,q_=Y_.prototype.slice,Z_=F_.VIEW,K_="ArrayBuffer";B_(B_.G+B_.W+B_.F*(G_!==Y_),{ArrayBuffer:Y_}),B_(B_.S+B_.F*!F_.CONSTR,K_,{isView:function(t){return U_&&U_(t)||H_(t)&&Z_ in t}}),B_(B_.P+B_.U+B_.F*a((function(){return!new Y_(2).slice(1,void 0).byteLength})),K_,{slice:function(t,e){if(void 0!==q_&&void 0===e)return q_.call(j_(this),t);for(var i=j_(this).byteLength,n=$_(t,i),r=$_(void 0===e?i:e,i),o=new(W_(this,Y_))(z_(r-n)),s=new X_(this),a=new X_(o),u=0;n<r;)a.setUint8(u++,s.getUint8(n++));return o}}),Fl()(K_);var J_=ot;J_(J_.G+J_.W+J_.F*!M_.ABV,{DataView:T_.DataView});var Q_={exports:{}};if(u){var td=r,ed=a,id=ot,nd=M_,rd=T_,od=K,sd=bp,ad=C,ud=E(),ld=yc(),hd=Gt,pd=Xt,cd=D_,fd=Kt,_d=w,dd=s,yd=Un,gd=d,vd=ke,md=Za,bd=Be,wd=gn,xd=Ie.f,Sd=nu,Pd=T,Vd=xt,kd=zu,Ad=ee,Cd=rp,Ed=Gl,Ld=Cs,Nd=ru(),Md=Fl(),Td=Al(),Od=wl(),Rd=_,Dd=Ye,Bd=Rd.f,Fd=Dd.f,Id=td.RangeError,jd=td.TypeError,$d=td.Uint8Array,zd="ArrayBuffer",Hd="Shared"+zd,Gd="BYTES_PER_ELEMENT",Wd="prototype",Yd=Array[Wd],Xd=rd.ArrayBuffer,Ud=rd.DataView,qd=kd(0),Zd=kd(2),Kd=kd(3),Jd=kd(4),Qd=kd(5),ty=kd(6),ey=Ad(!0),iy=Ad(!1),ny=Ed.values,ry=Ed.keys,oy=Ed.entries,sy=Yd.lastIndexOf,ay=Yd.reduce,uy=Yd.reduceRight,ly=Yd.join,hy=Yd.sort,py=Yd.slice,cy=Yd.toString,fy=Yd.toLocaleString,_y=Vd("iterator"),dy=Vd("toStringTag"),yy=Pd("typed_constructor"),gy=Pd("def_constructor"),vy=nd.CONSTR,my=nd.TYPED,by=nd.VIEW,wy="Wrong length!",xy=kd(1,(function(t,e){return Ay(Cd(t,t[gy]),e)})),Sy=ed((function(){return 1===new $d(new Uint16Array([1]).buffer)[0]})),Py=!!$d&&!!$d[Wd].set&&ed((function(){new $d(1).set({})})),Vy=function(t,e){var i=hd(t);if(i<0||i%e)throw Id("Wrong offset!");return i},ky=function(t){if(gd(t)&&my in t)return t;throw jd(t+" is not a typed array!")},Ay=function(t,e){if(!gd(t)||!(yy in t))throw jd("It is not a typed array constructor!");return new t(e)},Cy=function(t,e){return Ey(Cd(t,t[gy]),e)},Ey=function(t,e){for(var i=0,n=e.length,r=Ay(t,n);n>i;)r[i]=e[i++];return r},Ly=function(t,e,i){Bd(t,e,{get:function(){return this._d[i]}})},Ny=function(t){var e,i,n,r,o,s,a=vd(t),u=arguments.length,l=u>1?arguments[1]:void 0,h=void 0!==l,p=Sd(a);if(null!=p&&!md(p)){for(s=p.call(a),n=[],e=0;!(o=s.next()).done;e++)n.push(o.value);a=n}for(h&&u>2&&(l=od(l,arguments[2],2)),e=0,i=pd(a.length),r=Ay(this,i);i>e;e++)r[e]=h?l(a[e],e):a[e];return r},My=function(){for(var t=0,e=arguments.length,i=Ay(this,e);e>t;)i[t]=arguments[t++];return i},Ty=!!$d&&ed((function(){fy.call(new $d(1))})),Oy=function(){return fy.apply(Ty?py.call(ky(this)):ky(this),arguments)},Ry={copyWithin:function(t,e){return Od.call(ky(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Jd(ky(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return Td.apply(ky(this),arguments)},filter:function(t){return Cy(this,Zd(ky(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Qd(ky(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return ty(ky(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){qd(ky(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return iy(ky(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ey(ky(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ly.apply(ky(this),arguments)},lastIndexOf:function(t){return sy.apply(ky(this),arguments)},map:function(t){return xy(ky(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ay.apply(ky(this),arguments)},reduceRight:function(t){return uy.apply(ky(this),arguments)},reverse:function(){for(var t,e=this,i=ky(e).length,n=Math.floor(i/2),r=0;r<n;)t=e[r],e[r++]=e[--i],e[i]=t;return e},some:function(t){return Kd(ky(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return hy.call(ky(this),t)},subarray:function(t,e){var i=ky(this),n=i.length,r=fd(t,n);return new(Cd(i,i[gy]))(i.buffer,i.byteOffset+r*i.BYTES_PER_ELEMENT,pd((void 0===e?n:fd(e,n))-r))}},Dy=function(t,e){return Cy(this,py.call(ky(this),t,e))},By=function(t){ky(this);var e=Vy(arguments[1],1),i=this.length,n=vd(t),r=pd(n.length),o=0;if(r+e>i)throw Id(wy);for(;o<r;)this[e+o]=n[o++]},Fy={entries:function(){return oy.call(ky(this))},keys:function(){return ry.call(ky(this))},values:function(){return ny.call(ky(this))}},Iy=function(t,e){return gd(t)&&t[my]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},jy=function(t,e){return Iy(t,e=_d(e,!0))?ad(2,t[e]):Fd(t,e)},$y=function(t,e,i){return!(Iy(t,e=_d(e,!0))&&gd(i)&&dd(i,"value"))||dd(i,"get")||dd(i,"set")||i.configurable||dd(i,"writable")&&!i.writable||dd(i,"enumerable")&&!i.enumerable?Bd(t,e,i):(t[e]=i.value,t)};vy||(Dd.f=jy,Rd.f=$y),id(id.S+id.F*!vy,"Object",{getOwnPropertyDescriptor:jy,defineProperty:$y}),ed((function(){cy.call({})}))&&(cy=fy=function(){return ly.call(this)});var zy=ld({},Ry);ld(zy,Fy),ud(zy,_y,Fy.values),ld(zy,{slice:Dy,set:By,constructor:function(){},toString:cy,toLocaleString:Oy}),Ly(zy,"buffer","b"),Ly(zy,"byteOffset","o"),Ly(zy,"byteLength","l"),Ly(zy,"length","e"),Bd(zy,dy,{get:function(){return this[my]}}),Q_.exports=function(t,e,i,n){var r=t+((n=!!n)?"Clamped":"")+"Array",o="get"+t,s="set"+t,a=td[r],u=a||{},l=a&&wd(a),h=!a||!nd.ABV,p={},c=a&&a[Wd],f=function(t,i){Bd(t,i,{get:function(){return function(t,i){var n=t._d;return n.v[o](i*e+n.o,Sy)}(this,i)},set:function(t){return function(t,i,r){var o=t._d;n&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[s](i*e+o.o,r,Sy)}(this,i,t)},enumerable:!0})};h?(a=i((function(t,i,n,o){sd(t,a,r,"_d");var s,u,l,h,p=0,c=0;if(gd(i)){if(!(i instanceof Xd||(h=yd(i))==zd||h==Hd))return my in i?Ey(a,i):Ny.call(a,i);s=i,c=Vy(n,e);var _=i.byteLength;if(void 0===o){if(_%e)throw Id(wy);if((u=_-c)<0)throw Id(wy)}else if((u=pd(o)*e)+c>_)throw Id(wy);l=u/e}else l=cd(i),s=new Xd(u=l*e);for(ud(t,"_d",{b:s,o:c,l:u,e:l,v:new Ud(s)});p<l;)f(t,p++)})),c=a[Wd]=bd(zy),ud(c,"constructor",a)):ed((function(){a(1)}))&&ed((function(){new a(-1)}))&&Nd((function(t){new a,new a(null),new a(1.5),new a(t)}),!0)||(a=i((function(t,i,n,o){var s;return sd(t,a,r),gd(i)?i instanceof Xd||(s=yd(i))==zd||s==Hd?void 0!==o?new u(i,Vy(n,e),o):void 0!==n?new u(i,Vy(n,e)):new u(i):my in i?Ey(a,i):Ny.call(a,i):new u(cd(i))})),qd(l!==Function.prototype?xd(u).concat(xd(l)):xd(u),(function(t){t in a||ud(a,t,u[t])})),a[Wd]=c,c.constructor=a);var _=c[_y],d=!!_&&("values"==_.name||null==_.name),y=Fy.values;ud(a,yy,!0),ud(c,my,r),ud(c,by,!0),ud(c,gy,a),(n?new a(1)[dy]==r:dy in c)||Bd(c,dy,{get:function(){return r}}),p[r]=a,id(id.G+id.W+id.F*(a!=u),p),id(id.S,r,{BYTES_PER_ELEMENT:e}),id(id.S+id.F*ed((function(){u.of.call(a,1)})),r,{from:Ny,of:My}),Gd in c||ud(c,Gd,e),id(id.P,r,Ry),Md(r),id(id.P+id.F*Py,r,{set:By}),id(id.P+id.F*!d,r,Fy),c.toString!=cy&&(c.toString=cy),id(id.P+id.F*ed((function(){new a(1).slice()})),r,{slice:Dy}),id(id.P+id.F*(ed((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!ed((function(){c.toLocaleString.call([1,2])}))),r,{toLocaleString:Oy}),Ld[r]=d?_:y,d||ud(c,_y,y)}}else Q_.exports=function(){};var Hy=Q_.exports;Hy("Int8",1,(function(t){return function(e,i,n){return t(this,e,i,n)}})),Hy("Uint8",1,(function(t){return function(e,i,n){return t(this,e,i,n)}})),Hy("Uint8",1,(function(t){return function(e,i,n){return t(this,e,i,n)}}),!0),Hy("Int16",2,(function(t){return function(e,i,n){return t(this,e,i,n)}})),Hy("Uint16",2,(function(t){return function(e,i,n){return t(this,e,i,n)}})),Hy("Int32",4,(function(t){return function(e,i,n){return t(this,e,i,n)}})),Hy("Uint32",4,(function(t){return function(e,i,n){return t(this,e,i,n)}})),Hy("Float32",4,(function(t){return function(e,i,n){return t(this,e,i,n)}})),Hy("Float64",8,(function(t){return function(e,i,n){return t(this,e,i,n)}}));var Gy=ot,Wy=q,Yy=g,Xy=(r.Reflect||{}).apply,Uy=Function.apply;Gy(Gy.S+Gy.F*!a((function(){Xy((function(){}))})),"Reflect",{apply:function(t,e,i){var n=Wy(t),r=Yy(i);return Xy?Xy(n,e,r):Uy.call(n,e,r)}});var qy=ot,Zy=Be,Ky=q,Jy=g,Qy=d,tg=a,eg=nr,ig=(r.Reflect||{}).construct,ng=tg((function(){function t(){}return!(ig((function(){}),[],t)instanceof t)})),rg=!tg((function(){ig((function(){}))}));qy(qy.S+qy.F*(ng||rg),"Reflect",{construct:function(t,e){Ky(t),Jy(e);var i=arguments.length<3?t:Ky(arguments[2]);if(rg&&!ng)return ig(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(eg.apply(t,n))}var r=i.prototype,o=Zy(Qy(r)?r:Object.prototype),s=Function.apply.call(t,o,e);return Qy(s)?s:o}});var og=_,sg=ot,ag=g,ug=w;sg(sg.S+sg.F*a((function(){Reflect.defineProperty(og.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,i){ag(t),e=ug(e,!0),ag(i);try{return og.f(t,e,i),!0}catch(t){return!1}}});var lg=ot,hg=Ye.f,pg=g;lg(lg.S,"Reflect",{deleteProperty:function(t,e){var i=hg(pg(t),e);return!(i&&!i.configurable)&&delete t[e]}});var cg=ot,fg=g,_g=function(t){this._t=fg(t),this._i=0;var e,i=this._k=[];for(e in t)i.push(e)};Ts(_g,"Object",(function(){var t,e=this,i=e._k;do{if(e._i>=i.length)return{value:void 0,done:!0}}while(!((t=i[e._i++])in e._t));return{value:t,done:!1}})),cg(cg.S,"Reflect",{enumerate:function(t){return new _g(t)}});var dg=Ye,yg=gn,gg=s,vg=d,mg=g;ot(ot.S,"Reflect",{get:function t(e,i){var n,r,o=arguments.length<3?e:arguments[2];return mg(e)===o?e[i]:(n=dg.f(e,i))?gg(n,"value")?n.value:void 0!==n.get?n.get.call(o):void 0:vg(r=yg(e))?t(r,i,o):void 0}});var bg=Ye,wg=g;ot(ot.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return bg.f(wg(t),e)}});var xg=gn,Sg=g;ot(ot.S,"Reflect",{getPrototypeOf:function(t){return xg(Sg(t))}});ot(ot.S,"Reflect",{has:function(t,e){return e in t}});var Pg=ot,Vg=g,kg=Object.isExtensible;Pg(Pg.S,"Reflect",{isExtensible:function(t){return Vg(t),!kg||kg(t)}});var Ag=Ie,Cg=_e,Eg=g,Lg=r.Reflect,Ng=Lg&&Lg.ownKeys||function(t){var e=Ag.f(Eg(t)),i=Cg.f;return i?e.concat(i(t)):e};ot(ot.S,"Reflect",{ownKeys:Ng});var Mg=ot,Tg=g,Og=Object.preventExtensions;Mg(Mg.S,"Reflect",{preventExtensions:function(t){Tg(t);try{return Og&&Og(t),!0}catch(t){return!1}}});var Rg=_,Dg=Ye,Bg=gn,Fg=s,Ig=C,jg=g,$g=d;ot(ot.S,"Reflect",{set:function t(e,i,n){var r,o,s=arguments.length<4?e:arguments[3],a=Dg.f(jg(e),i);if(!a){if($g(o=Bg(e)))return t(o,i,n,s);a=Ig(0)}if(Fg(a,"value")){if(!1===a.writable||!$g(s))return!1;if(r=Dg.f(s,i)){if(r.get||r.set||!1===r.writable)return!1;r.value=n,Rg.f(s,i,r)}else Rg.f(s,i,Ig(0,n));return!0}return void 0!==a.set&&(a.set.call(s,n),!0)}});var zg=Gn;zg&&ot(ot.S,"Reflect",{setPrototypeOf:function(t,e){zg.check(t,e);try{return zg.set(t,e),!0}catch(t){return!1}}});var Hg=ot,Gg=ee(!0);Hg(Hg.P,"Array",{includes:function(t){return Gg(this,t,arguments.length>1?arguments[1]:void 0)}}),kl("includes");var Wg=Pe,Yg=d,Xg=Xt,Ug=K,qg=xt("isConcatSpreadable");var Zg=function t(e,i,n,r,o,s,a,u){for(var l,h,p=o,c=0,f=!!a&&Ug(a,u,3);c<r;){if(c in n){if(l=f?f(n[c],c,i):n[c],h=!1,Yg(l)&&(h=void 0!==(h=l[qg])?!!h:Wg(l)),h&&s>0)p=t(e,i,l,Xg(l.length),p,s-1)-1;else{if(p>=9007199254740991)throw TypeError();e[p]=l}p++}c++}return p},Kg=Zg,Jg=ke,Qg=Xt,tv=q,ev=Du;ot(ot.P,"Array",{flatMap:function(t){var e,i,n=Jg(this);return tv(t),e=Qg(n.length),i=ev(n,0),Kg(i,n,n,e,0,1,t,arguments[1]),i}}),kl("flatMap");var iv=Zg,nv=ke,rv=Xt,ov=Gt,sv=Du;ot(ot.P,"Array",{flatten:function(){var t=arguments[0],e=nv(this),i=rv(e.length),n=sv(e,0);return iv(n,e,e,i,0,void 0===t?1:ov(t)),n}}),kl("flatten");var av=ot,uv=As(!0),lv=a((function(){return"𠮷"!=="𠮷".at(0)}));av(av.P+av.F*lv,"String",{at:function(t){return uv(this,t)}});var hv=Xt,pv=uo,cv=Ft,fv=function(t,e,i,n){var r=String(cv(t)),o=r.length,s=void 0===i?" ":String(i),a=hv(e);if(a<=o||""==s)return r;var u=a-o,l=pv.call(s,Math.ceil(u/s.length));return l.length>u&&(l=l.slice(0,u)),n?l+r:r+l},_v=ot,dv=fv,yv=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(pc);_v(_v.P+_v.F*yv,"String",{padStart:function(t){return dv(this,t,arguments.length>1?arguments[1]:void 0,!0)}});var gv=ot,vv=fv,mv=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(pc);gv(gv.P+gv.F*mv,"String",{padEnd:function(t){return vv(this,t,arguments.length>1?arguments[1]:void 0,!1)}}),xr("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart"),xr("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd");var bv=ot,wv=Ft,xv=Xt,Sv=ea,Pv=Yl,Vv=RegExp.prototype,kv=function(t,e){this._r=t,this._s=e};Ts(kv,"RegExp String",(function(){var t=this._r.exec(this._s);return{value:t,done:null===t}})),bv(bv.P,"String",{matchAll:function(t){if(wv(this),!Sv(t))throw TypeError(t+" is not a regexp!");var e=String(this),i="flags"in Vv?String(t.flags):Pv.call(t),n=new RegExp(t.source,~i.indexOf("g")?i:"g"+i);return n.lastIndex=xv(t.lastIndex),new kv(n,e)}}),Ot("asyncIterator"),Ot("observable");var Av=Ng,Cv=$t,Ev=Ye,Lv=Qa;ot(ot.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,i,n=Cv(t),r=Ev.f,o=Av(n),s={},a=0;o.length>a;)void 0!==(i=r(n,e=o[a++]))&&Lv(s,e,i);return s}});var Nv=u,Mv=fe,Tv=$t,Ov=ge().f,Rv=function(t){return function(e){for(var i,n=Tv(e),r=Mv(n),o=r.length,s=0,a=[];o>s;)i=r[s++],Nv&&!Ov.call(n,i)||a.push(t?[i,n[i]]:n[i]);return a}},Dv=ot,Bv=Rv(!1);Dv(Dv.S,"Object",{values:function(t){return Bv(t)}});var Fv,Iv,jv=ot,$v=Rv(!0);function zv(){return Iv?Fv:(Iv=1,Fv=!a((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete r[t]})))}jv(jv.S,"Object",{entries:function(t){return $v(t)}});var Hv=ke,Gv=q,Wv=_;u&&ot(ot.P+zv(),"Object",{__defineGetter__:function(t,e){Wv.f(Hv(this),t,{get:Gv(e),enumerable:!0,configurable:!0})}});var Yv=ke,Xv=q,Uv=_;u&&ot(ot.P+zv(),"Object",{__defineSetter__:function(t,e){Uv.f(Yv(this),t,{set:Xv(e),enumerable:!0,configurable:!0})}});var qv=ot,Zv=ke,Kv=w,Jv=gn,Qv=Ye.f;u&&qv(qv.P+zv(),"Object",{__lookupGetter__:function(t){var e,i=Zv(this),n=Kv(t,!0);do{if(e=Qv(i,n))return e.get}while(i=Jv(i))}});var tm=ot,em=ke,im=w,nm=gn,rm=Ye.f;u&&tm(tm.P+zv(),"Object",{__lookupSetter__:function(t){var e,i=em(this),n=im(t,!0);do{if(e=rm(i,n))return e.set}while(i=nm(i))}});var om,sm,am=Op,um=function(t,e){var i=[];return am(t,!1,i.push,i,e),i};function lm(){if(sm)return om;sm=1;var t=Un,e=um;return om=function(i){return function(){if(t(this)!=i)throw TypeError(i+"#toJSON isn't generic");return e(this)}},om}var hm=ot;hm(hm.P+hm.R,"Map",{toJSON:lm()("Map")});var pm=ot;pm(pm.P+pm.R,"Set",{toJSON:lm()("Set")});var cm=ot,fm=function(t){cm(cm.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})};fm("Map"),fm("Set"),fm("WeakMap"),fm("WeakSet");var _m=ot,dm=q,ym=K,gm=Op,vm=function(t){_m(_m.S,t,{from:function(t){var e,i,n,r,o=arguments[1];return dm(this),(e=void 0!==o)&&dm(o),null==t?new this:(i=[],e?(n=0,r=ym(o,arguments[2],2),gm(t,!1,(function(t){i.push(r(t,n++))}))):gm(t,!1,i.push,i),new this(i))}})};vm("Map"),vm("Set"),vm("WeakMap"),vm("WeakSet");ot(ot.G,{global:r});ot(ot.S,"System",{global:r});var mm=Dt;ot(ot.S,"Error",{isError:function(t){return"Error"===mm(t)}});ot(ot.S,"Math",{clamp:function(t,e,i){return Math.min(i,Math.max(e,t))}});ot(ot.S,"Math",{DEG_PER_RAD:Math.PI/180});var bm=ot,wm=180/Math.PI;bm(bm.S,"Math",{degrees:function(t){return t*wm}});var xm=Math.scale||function(t,e,i,n,r){return 0===arguments.length||t!=t||e!=e||i!=i||n!=n||r!=r?NaN:t===1/0||t===-1/0?t:(t-e)*(r-n)/(i-e)+n},Sm=xm,Pm=us;ot(ot.S,"Math",{fscale:function(t,e,i,n,r){return Pm(Sm(t,e,i,n,r))}});ot(ot.S,"Math",{iaddh:function(t,e,i,n){var r=t>>>0,o=i>>>0;return(e>>>0)+(n>>>0)+((r&o|(r|o)&~(r+o>>>0))>>>31)|0}});ot(ot.S,"Math",{isubh:function(t,e,i,n){var r=t>>>0,o=i>>>0;return(e>>>0)-(n>>>0)-((~r&o|(r^~o)&r-o>>>0)>>>31)|0}});ot(ot.S,"Math",{imulh:function(t,e){var i=65535,n=+t,r=+e,o=n&i,s=r&i,a=n>>16,u=r>>16,l=(a*s>>>0)+(o*s>>>16);return a*u+(l>>16)+((o*u>>>0)+(l&i)>>16)}});ot(ot.S,"Math",{RAD_PER_DEG:180/Math.PI});var Vm=ot,km=Math.PI/180;Vm(Vm.S,"Math",{radians:function(t){return t*km}});ot(ot.S,"Math",{scale:xm});ot(ot.S,"Math",{umulh:function(t,e){var i=65535,n=+t,r=+e,o=n&i,s=r&i,a=n>>>16,u=r>>>16,l=(a*s>>>0)+(o*s>>>16);return a*u+(l>>>16)+((o*u>>>0)+(l&i)>>>16)}});ot(ot.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}});var Am=ot,Cm=f,Em=r,Lm=rp,Nm=dc;Am(Am.P+Am.R,"Promise",{finally:function(t){var e=Lm(this,Cm.Promise||Em.Promise),i="function"==typeof t;return this.then(i?function(i){return Nm(e,t()).then((function(){return i}))}:t,i?function(i){return Nm(e,t()).then((function(){throw i}))}:t)}});var Mm=rc,Tm=lc;ot(ot.S,"Promise",{try:function(t){var e=Mm.f(this),i=Tm(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}});var Om=Tf,Rm=ot,Dm=I("metadata"),Bm=Dm.store||(Dm.store=new v_),Fm=function(t,e,i){var n=Bm.get(t);if(!n){if(!i)return;Bm.set(t,n=new Om)}var r=n.get(e);if(!r){if(!i)return;n.set(e,r=new Om)}return r},Im={store:Bm,map:Fm,has:function(t,e,i){var n=Fm(e,i,!1);return void 0!==n&&n.has(t)},get:function(t,e,i){var n=Fm(e,i,!1);return void 0===n?void 0:n.get(t)},set:function(t,e,i,n){Fm(i,n,!0).set(t,e)},keys:function(t,e){var i=Fm(t,e,!1),n=[];return i&&i.forEach((function(t,e){n.push(e)})),n},key:function(t){return void 0===t||"symbol"==typeof t?t:String(t)},exp:function(t){Rm(Rm.S,"Reflect",t)}},jm=Im,$m=g,zm=jm.key,Hm=jm.set;jm.exp({defineMetadata:function(t,e,i,n){Hm(t,e,$m(i),zm(n))}});var Gm=Im,Wm=g,Ym=Gm.key,Xm=Gm.map,Um=Gm.store;Gm.exp({deleteMetadata:function(t,e){var i=arguments.length<3?void 0:Ym(arguments[2]),n=Xm(Wm(e),i,!1);if(void 0===n||!n.delete(t))return!1;if(n.size)return!0;var r=Um.get(e);return r.delete(i),!!r.size||Um.delete(e)}});var qm=Im,Zm=g,Km=gn,Jm=qm.has,Qm=qm.get,tb=qm.key,eb=function(t,e,i){if(Jm(t,e,i))return Qm(t,e,i);var n=Km(e);return null!==n?eb(t,n,i):void 0};qm.exp({getMetadata:function(t,e){return eb(t,Zm(e),arguments.length<3?void 0:tb(arguments[2]))}});var ib=Df,nb=um,rb=Im,ob=g,sb=gn,ab=rb.keys,ub=rb.key,lb=function(t,e){var i=ab(t,e),n=sb(t);if(null===n)return i;var r=lb(n,e);return r.length?i.length?nb(new ib(i.concat(r))):r:i};rb.exp({getMetadataKeys:function(t){return lb(ob(t),arguments.length<2?void 0:ub(arguments[1]))}});var hb=Im,pb=g,cb=hb.get,fb=hb.key;hb.exp({getOwnMetadata:function(t,e){return cb(t,pb(e),arguments.length<3?void 0:fb(arguments[2]))}});var _b=Im,db=g,yb=_b.keys,gb=_b.key;_b.exp({getOwnMetadataKeys:function(t){return yb(db(t),arguments.length<2?void 0:gb(arguments[1]))}});var vb=Im,mb=g,bb=gn,wb=vb.has,xb=vb.key,Sb=function(t,e,i){if(wb(t,e,i))return!0;var n=bb(e);return null!==n&&Sb(t,n,i)};vb.exp({hasMetadata:function(t,e){return Sb(t,mb(e),arguments.length<3?void 0:xb(arguments[2]))}});var Pb=Im,Vb=g,kb=Pb.has,Ab=Pb.key;Pb.exp({hasOwnMetadata:function(t,e){return kb(t,Vb(e),arguments.length<3?void 0:Ab(arguments[2]))}});var Cb=Im,Eb=g,Lb=q,Nb=Cb.key,Mb=Cb.set;Cb.exp({metadata:function(t,e){return function(i,n){Mb(t,e,(void 0!==n?Eb:Lb)(i),Nb(n))}}});var Tb=ot,Ob=nc(),Rb=r.process,Db="process"==Dt(Rb);Tb(Tb.G,{asap:function(t){var e=Db&&Rb.domain;Ob(e?e.bind(t):t)}});var Bb=ot,Fb=r,Ib=f,jb=nc(),$b=xt("observable"),zb=q,Hb=g,Gb=bp,Wb=yc(),Yb=E(),Xb=Op,Ub=Xb.RETURN,qb=function(t){return null==t?void 0:zb(t)},Zb=function(t){var e=t._c;e&&(t._c=void 0,e())},Kb=function(t){return void 0===t._o},Jb=function(t){Kb(t)||(t._o=void 0,Zb(t))},Qb=function(t,e){Hb(t),this._c=void 0,this._o=t,t=new tw(this);try{var i=e(t),n=i;null!=i&&("function"==typeof i.unsubscribe?i=function(){n.unsubscribe()}:zb(i),this._c=i)}catch(e){return void t.error(e)}Kb(this)&&Zb(this)};Qb.prototype=Wb({},{unsubscribe:function(){Jb(this)}});var tw=function(t){this._s=t};tw.prototype=Wb({},{next:function(t){var e=this._s;if(!Kb(e)){var i=e._o;try{var n=qb(i.next);if(n)return n.call(i,t)}catch(t){try{Jb(e)}finally{throw t}}}},error:function(t){var e=this._s;if(Kb(e))throw t;var i=e._o;e._o=void 0;try{var n=qb(i.error);if(!n)throw t;t=n.call(i,t)}catch(t){try{Zb(e)}finally{throw t}}return Zb(e),t},complete:function(t){var e=this._s;if(!Kb(e)){var i=e._o;e._o=void 0;try{var n=qb(i.complete);t=n?n.call(i,t):void 0}catch(t){try{Zb(e)}finally{throw t}}return Zb(e),t}}});var ew=function(t){Gb(this,ew,"Observable","_f")._f=zb(t)};Wb(ew.prototype,{subscribe:function(t){return new Qb(t,this._f)},forEach:function(t){var e=this;return new(Ib.Promise||Fb.Promise)((function(i,n){zb(t);var r=e.subscribe({next:function(e){try{return t(e)}catch(t){n(t),r.unsubscribe()}},error:n,complete:i})}))}}),Wb(ew,{from:function(t){var e="function"==typeof this?this:ew,i=qb(Hb(t)[$b]);if(i){var n=Hb(i.call(t));return n.constructor===e?n:new e((function(t){return n.subscribe(t)}))}return new e((function(e){var i=!1;return jb((function(){if(!i){try{if(Xb(t,!1,(function(t){if(e.next(t),i)return Ub}))===Ub)return}catch(t){if(i)throw t;return void e.error(t)}e.complete()}})),function(){i=!0}}))},of:function(){for(var t=0,e=arguments.length,i=new Array(e);t<e;)i[t]=arguments[t++];return new("function"==typeof this?this:ew)((function(t){var e=!1;return jb((function(){if(!e){for(var n=0;n<i.length;++n)if(t.next(i[n]),e)return;t.complete()}})),function(){e=!0}}))}}),Yb(ew.prototype,$b,(function(){return this})),Bb(Bb.G,{Observable:ew}),Fl()("Observable");var iw=r,nw=ot,rw=[].slice,ow=/MSIE .\./.test(pc),sw=function(t){return function(e,i){var n=arguments.length>2,r=!!n&&rw.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,i)}};nw(nw.G+nw.B+nw.F*ow,{setTimeout:sw(iw.setTimeout),setInterval:sw(iw.setInterval)});var aw=ot,uw=Zp;aw(aw.G+aw.B,{setImmediate:uw.set,clearImmediate:uw.clear});for(var lw=Gl,hw=fe,pw=U,cw=r,fw=E(),_w=Cs,dw=xt,yw=dw("iterator"),gw=dw("toStringTag"),vw=_w.Array,mw={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},bw=hw(mw),ww=0;ww<bw.length;ww++){var xw,Sw=bw[ww],Pw=mw[Sw],Vw=cw[Sw],kw=Vw&&Vw.prototype;if(kw&&(kw[yw]||fw(kw,yw,vw),kw[gw]||fw(kw,gw,Sw),_w[Sw]=vw,Pw))for(xw in lw)kw[xw]||pw(kw,xw,lw[xw],!0)}var Aw=fe,Cw=$t,Ew=Un,Lw=xt("iterator"),Nw=Cs,Mw=f.isIterable=function(t){var e=Object(t);return void 0!==e[Lw]||"@@iterator"in e||Nw.hasOwnProperty(Ew(e))},Tw=K,Ow=ot,Rw=C,Dw=Fn,Bw=Be,Fw=gn,Iw=fe,jw=_,$w=function(t,e){for(var i,n=Cw(t),r=Aw(n),o=r.length,s=0;o>s;)if(n[i=r[s++]]===e)return i},zw=q,Hw=Op,Gw=Mw,Ww=Ts,Yw=Il,Xw=d,Uw=$t,qw=u,Zw=s,Kw=function(t){var e=1==t,i=4==t;return function(n,r,o){var s,a,u,l=Tw(r,o,3),h=Uw(n),p=e||7==t||2==t?new("function"==typeof this?this:ex):void 0;for(s in h)if(Zw(h,s)&&(u=l(a=h[s],s,n),t))if(e)p[s]=u;else if(u)switch(t){case 2:p[s]=a;break;case 3:return!0;case 5:return a;case 6:return s;case 7:p[u[0]]=u[1]}else if(i)return!1;return 3==t||i?i:p}},Jw=Kw(6),Qw=function(t){return function(e){return new tx(e,t)}},tx=function(t,e){this._t=Uw(t),this._a=Iw(t),this._i=0,this._k=e};function ex(t){var e=Bw(null);return null!=t&&(Gw(t)?Hw(t,!0,(function(t,i){e[t]=i})):Dw(e,t)),e}Ww(tx,"Dict",(function(){var t,e=this,i=e._t,n=e._a,r=e._k;do{if(e._i>=n.length)return e._t=void 0,Yw(1)}while(!Zw(i,t=n[e._i++]));return Yw(0,"keys"==r?t:"values"==r?i[t]:[t,i[t]])})),ex.prototype=null,Ow(Ow.G+Ow.F,{Dict:ex}),Ow(Ow.S,"Dict",{keys:Qw("keys"),values:Qw("values"),entries:Qw("entries"),forEach:Kw(0),map:Kw(1),filter:Kw(2),some:Kw(3),every:Kw(4),find:Kw(5),findKey:Jw,mapPairs:Kw(7),reduce:function(t,e,i){zw(e);var n,r,o=Uw(t),s=Iw(o),a=s.length,u=0;if(arguments.length<3){if(!a)throw TypeError("Reduce of empty object with no initial value");n=o[s[u++]]}else n=Object(i);for(;a>u;)Zw(o,r=s[u++])&&(n=e(n,o[r],r,t));return n},keyOf:$w,includes:function(t,e){return void 0!==(e==e?$w(t,e):Jw(t,(function(t){return t!=t})))},has:Zw,get:function(t,e){if(Zw(t,e))return t[e]},set:function(t,e,i){return qw&&e in Object?jw.f(t,e,Rw(0,i)):t[e]=i,t},isDict:function(t){return Xw(t)&&Fw(t)===ex.prototype}});var ix=g,nx=nu;f.getIterator=function(t){var e=nx(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return ix(e.call(t))};var rx=r,ox=rx,sx=Kn,ax=q,ux=function(){for(var t=ax(this),e=arguments.length,i=new Array(e),n=0,r=ox._,o=!1;e>n;)(i[n]=arguments[n++])===r&&(o=!0);return function(){var n,s=arguments.length,a=0,u=0;if(!o&&!s)return sx(t,i,this);if(n=i.slice(),o)for(;e>a;a++)n[a]===r&&(n[a]=arguments[u++]);for(;s>u;)n.push(arguments[u++]);return sx(t,n,this)}},lx=r,hx=f,px=ot,cx=ux;px(px.G+px.F,{delay:function(t){return new(hx.Promise||lx.Promise)((function(e){setTimeout(cx.call(e,!0),t)}))}});var fx=rx,_x=ot;f._=fx._=fx._||{},_x(_x.P+_x.F,"Function",{part:ux});var dx=ot;dx(dx.S+dx.F,"Object",{isObject:d});var yx=ot;yx(yx.S+yx.F,"Object",{classof:Un});var gx=_,vx=Ye,mx=Ng,bx=$t,wx=function(t,e){for(var i,n=mx(bx(e)),r=n.length,o=0;r>o;)gx.f(t,i=n[o++],vx.f(e,i));return t},xx=ot,Sx=wx;xx(xx.S+xx.F,"Object",{define:Sx});var Px=ot,Vx=wx,kx=Be;Px(Px.S+Px.F,"Object",{make:function(t,e){return Vx(kx(t),e)}}),Ys(Number,"Number",(function(t){this._l=+t,this._i=0}),(function(){var t=this._i++,e=!(t<this._l);return{done:e,value:e?void 0:t}}));var Ax=function(t,e){var i=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,i)}},Cx=ot,Ex=Ax(/[\\^$*+?.()|[\]{}]/g,"\\$&");Cx(Cx.S,"RegExp",{escape:function(t){return Ex(t)}});var Lx=ot,Nx=Ax(/[&<>"']/g,{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"});Lx(Lx.P+Lx.F,"String",{escapeHTML:function(){return Nx(this)}});var Mx,Tx,Ox,Rx=ot,Dx=Ax(/&(?:amp|lt|gt|quot|apos);/g,{"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'"});Rx(Rx.P+Rx.F,"String",{unescapeHTML:function(){return Dx(this)}}),function(){function t(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1}if("HTMLElement"in self&&"contains"in HTMLElement.prototype)try{delete HTMLElement.prototype.contains}catch(t){}"Node"in self?Node.prototype.contains=t:document.contains=Element.prototype.contains=t}(),function(t,e){Document.prototype.remove=Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)},"Text"in t&&(Text.prototype.remove=Element.prototype.remove)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof e&&e||{}),Mx=function(){function t(t){return"function"==typeof Node?t instanceof Node:t&&"object"==typeof t&&t.nodeName&&t.nodeType>=1&&t.nodeType<=12}return function(e){if(1===e.length)return t(e[0])?e[0]:document.createTextNode(e[0]+"");for(var i=document.createDocumentFragment(),n=0;n<e.length;n++)i.appendChild(t(e[n])?e[n]:document.createTextNode(e[n]+""));return i}}(),Document.prototype.append=Element.prototype.append=function(){this.appendChild(Mx(arguments))},function(t,e){var i,n=function(){var t=!0,i=function(e,i,n,r){Object.defineProperty?Object.defineProperty(e,i,{configurable:!1===t||!!r,get:n}):e.__defineGetter__(i,n)};try{i({},"support")}catch(e){t=!1}return function(t,n){var r=this,o=[],s={},a=0,u=0,l=function(t){i(r,t,(function(){return p(),o[t]}),!1)},h=function(){if(a>=u)for(;u<a;++u)l(u)},p=function(){var e,i,r=arguments,u=/\s+/;if(r.length)for(i=0;i<r.length;++i)if(u.test(r[i]))throw(e=new SyntaxError('String "'+r[i]+'" contains an invalid character')).code=5,e.name="InvalidCharacterError",e;for(""===(o="object"==typeof t[n]?(""+t[n].baseVal).replace(/^\s+|\s+$/g,"").split(u):(""+t[n]).replace(/^\s+|\s+$/g,"").split(u))[0]&&(o=[]),s={},i=0;i<o.length;++i)s[o[i]]=!0;a=o.length,h()};return p(),i(r,"length",(function(){return p(),a})),r.toLocaleString=r.toString=function(){return p(),o.join(" ")},r.item=function(t){return p(),o[t]},r.contains=function(t){return p(),!!s[t]},r.add=function(){p.apply(r,e=arguments);for(var e,i,u=0,l=e.length;u<l;++u)s[i=e[u]]||(o.push(i),s[i]=!0);a!==o.length&&(a=o.length>>>0,"object"==typeof t[n]?t[n].baseVal=o.join(" "):t[n]=o.join(" "),h())},r.remove=function(){p.apply(r,e=arguments);for(var e,i={},u=0,l=[];u<e.length;++u)i[e[u]]=!0,delete s[e[u]];for(u=0;u<o.length;++u)i[o[u]]||l.push(o[u]);o=l,a=l.length>>>0,"object"==typeof t[n]?t[n].baseVal=o.join(" "):t[n]=o.join(" "),h()},r.toggle=function(t,i){return p.apply(r,[t]),e!==i?i?(r.add(t),!0):(r.remove(t),!1):s[t]?(r.remove(t),!1):(r.add(t),!0)},r.forEach=Array.prototype.forEach,r}}();"DOMTokenList"in(i=t)&&i.DOMTokenList&&(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg")||document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList)||(i.DOMTokenList=n),function(){var t=document.createElement("span");"classList"in t&&(t.classList.toggle("x",!1),t.classList.contains("x")&&(t.classList.constructor.prototype.toggle=function(t){var i=arguments[1];if(i===e){var n=!this.contains(t);return this[n?"add":"remove"](t),n}return i=!!i,this[i?"add":"remove"](t),i}))}(),function(){var t=document.createElement("span");if("classList"in t&&(t.classList.add("a","b"),!t.classList.contains("b"))){var e=t.classList.constructor.prototype.add;t.classList.constructor.prototype.add=function(){for(var t=arguments,i=arguments.length,n=0;n<i;n++)e.call(this,t[n])}}}(),function(){var t=document.createElement("span");if("classList"in t&&(t.classList.add("a"),t.classList.add("b"),t.classList.remove("a","b"),t.classList.contains("b"))){var e=t.classList.constructor.prototype.remove;t.classList.constructor.prototype.remove=function(){for(var t=arguments,i=arguments.length,n=0;n<i;n++)e.call(this,t[n])}}}(),function(t){var e=!0,i=function(t,i,n,r){Object.defineProperty?Object.defineProperty(t,i,{configurable:!1===e||!!r,get:n}):t.__defineGetter__(i,n)};try{i({},"support")}catch(t){e=!1}var r=function(t,o,s){i(t.prototype,o,(function(){var t,a=this,u="__defineGetter__DEFINE_PROPERTY"+o;if(a[u])return t;if(a[u]=!0,!1===e){for(var l,h=r.mirror||document.createElement("div"),p=h.childNodes,c=p.length,f=0;f<c;++f)if(p[f]._R===a){l=p[f];break}l||(l=h.appendChild(document.createElement("div"))),t=DOMTokenList.call(l,a,s)}else t=new n(a,s);return i(a,o,(function(){return t})),delete a[u],t}),!0)};r(t.Element,"classList","className"),r(t.HTMLElement,"classList","className"),r(t.HTMLLinkElement,"relList","rel"),r(t.HTMLAnchorElement,"relList","rel"),r(t.HTMLAreaElement,"relList","rel")}(t)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof e&&e||{}),Ox={},function(t,e){function i(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=c}function n(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function r(e,n,r){var o=new i;return n&&(o.fill="both",o.duration="auto"),"number"!=typeof e||isNaN(e)?void 0!==e&&Object.getOwnPropertyNames(e).forEach((function(i){if("auto"!=e[i]){if(("number"==typeof o[i]||"duration"==i)&&("number"!=typeof e[i]||isNaN(e[i])))return;if("fill"==i&&-1==h.indexOf(e[i]))return;if("direction"==i&&-1==p.indexOf(e[i]))return;if("playbackRate"==i&&1!==e[i]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[i]=e[i]}})):o.duration=e,o}function o(t,e,i,n){return t<0||t>1||i<0||i>1?c:function(r){function o(t,e,i){return 3*t*(1-i)*(1-i)*i+3*e*(1-i)*i*i+i*i*i}if(r<=0){var s=0;return t>0?s=e/t:!e&&i>0&&(s=n/i),s*r}if(r>=1){var a=0;return i<1?a=(n-1)/(i-1):1==i&&t<1&&(a=(e-1)/(t-1)),1+a*(r-1)}for(var u=0,l=1;u<l;){var h=(u+l)/2,p=o(t,i,h);if(Math.abs(r-p)<1e-5)return o(e,n,h);p<r?u=h:l=h}return o(e,n,h)}}function s(t,e){return function(i){if(i>=1)return 1;var n=1/t;return(i+=e*n)-i%n}}function a(t){g||(g=document.createElement("div").style),g.animationTimingFunction="",g.animationTimingFunction=t;var e=g.animationTimingFunction;if(""==e&&n())throw new TypeError(t+" is not a valid value for easing");return e}function u(t){if("linear"==t)return c;var e=m.exec(t);if(e)return o.apply(this,e.slice(1).map(Number));var i=b.exec(t);if(i)return s(Number(i[1]),d);var n=w.exec(t);return n?s(Number(n[1]),{start:f,middle:_,end:d}[n[2]]):y[t]||c}function l(t,e,i){if(null==e)return x;var n=i.delay+t+i.endDelay;return e<Math.min(i.delay,n)?S:e>=Math.min(i.delay+t,n)?P:V}var h="backwards|forwards|both|none".split("|"),p="reverse|alternate|alternate-reverse".split("|"),c=function(t){return t};i.prototype={_setMember:function(e,i){this["_"+e]=i,this._effect&&(this._effect._timingInput[e]=i,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&n())throw new TypeError("iterationStart must be a non-negative number, received: "+t);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&n())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=u(a(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&n())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var f=1,_=.5,d=0,y={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":s(1,f),"step-middle":s(1,_),"step-end":s(1,d)},g=null,v="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",m=new RegExp("cubic-bezier\\("+v+","+v+","+v+","+v+"\\)"),b=/steps\(\s*(\d+)\s*\)/,w=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,x=0,S=1,P=2,V=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var i in t)e[i]=t[i];return e},t.makeTiming=r,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,i){return r(e=t.numericTimingToObject(e),i)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,i){var n=l(t,e,i),r=function(t,e,i,n,r){switch(n){case S:return"backwards"==e||"both"==e?0:null;case V:return i-r;case P:return"forwards"==e||"both"==e?t:null;case x:return null}}(t,i.fill,e,n,i.delay);if(null===r)return null;var o=function(t,e,i,n,r){var o=r;return 0===t?e!==S&&(o+=i):o+=n/t,o}(i.duration,n,i.iterations,r,i.iterationStart),s=function(t,e,i,n,r,o){var s=t===1/0?e%1:t%1;return 0!==s||i!==P||0===n||0===r&&0!==o||(s=1),s}(o,i.iterationStart,n,i.iterations,r,i.duration),a=function(t,e,i,n){return t===P&&e===1/0?1/0:1===i?Math.floor(n)-1:Math.floor(n)}(n,i.iterations,s,o),u=function(t,e,i){var n=t;if("normal"!==t&&"reverse"!==t){var r=e;"alternate-reverse"===t&&(r+=1),n="normal",r!==1/0&&r%2!=0&&(n="reverse")}return"normal"===n?i:1-i}(i.direction,a,s);return i._easingFunction(u)},t.calculatePhase=l,t.normalizeEasing=a,t.parseEasingFunction=u}(Tx={}),function(t,e){function i(t,e){return t in u&&u[t][e]||e}function n(t,e,n){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var r=o[t];if(r)for(var a in s.style[t]=e,r){var u=r[a],l=s.style[u];n[u]=i(u,l)}else n[t]=i(t,e)}}function r(t){var e=[];for(var i in t)if(!(i in["easing","offset","composite"])){var n=t[i];Array.isArray(n)||(n=[n]);for(var r,o=n.length,s=0;s<o;s++)(r={}).offset="offset"in t?t.offset:1==o?1:s/(o-1),"easing"in t&&(r.easing=t.easing),"composite"in t&&(r.composite=t.composite),r[i]=n[s],e.push(r)}return e.sort((function(t,e){return t.offset-e.offset})),e}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},s=document.createElementNS("http://www.w3.org/1999/xhtml","div"),a={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:a,borderLeftWidth:a,borderRightWidth:a,borderTopWidth:a,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:a,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};t.convertToArrayForm=r,t.normalizeKeyframes=function(e){if(null==e)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||(e=r(e));for(var i=e.map((function(e){var i={};for(var r in e){var o=e[r];if("offset"==r){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==r){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==r?t.normalizeEasing(o):""+o;n(r,o,i)}return null==i.offset&&(i.offset=null),null==i.easing&&(i.easing="linear"),i})),o=!0,s=-1/0,a=0;a<i.length;a++){var u=i[a].offset;if(null!=u){if(u<s)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");s=u}else o=!1}return i=i.filter((function(t){return t.offset>=0&&t.offset<=1})),o||function(){var t=i.length;null==i[t-1].offset&&(i[t-1].offset=1),t>1&&null==i[0].offset&&(i[0].offset=0);for(var e=0,n=i[0].offset,r=1;r<t;r++){var o=i[r].offset;if(null!=o){for(var s=1;s<r-e;s++)i[e+s].offset=n+(o-n)*s/(r-e);e=r,n=o}}}(),i}}(Tx),function(t){var e={};t.isDeprecated=function(t,i,n,r){var o=r?"are":"is",s=new Date,a=new Date(i);return a.setMonth(a.getMonth()+3),!(s<a&&(t in e||console.warn("Web Animations: "+t+" "+o+" deprecated and will stop working on "+a.toDateString()+". "+n),e[t]=!0,1))},t.deprecated=function(e,i,n,r){var o=r?"are":"is";if(t.isDeprecated(e,i,n,r))throw new Error(e+" "+o+" no longer supported. "+n)}}(Tx),function(){if(document.documentElement.animate){var t=document.documentElement.animate([],0),e=!0;if(t&&(e=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(i){void 0===t[i]&&(e=!0)}))),!e)return}!function(t,e,i){e.convertEffectInput=function(i){var n=function(t){for(var e={},i=0;i<t.length;i++)for(var n in t[i])if("offset"!=n&&"easing"!=n&&"composite"!=n){var r={offset:t[i].offset,easing:t[i].easing,value:t[i][n]};e[n]=e[n]||[],e[n].push(r)}for(var o in e){var s=e[o];if(0!=s[0].offset||1!=s[s.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return e}(t.normalizeKeyframes(i)),r=function(i){var n=[];for(var r in i)for(var o=i[r],s=0;s<o.length-1;s++){var a=s,u=s+1,l=o[a].offset,h=o[u].offset,p=l,c=h;0==s&&(p=-1/0,0==h&&(u=a)),s==o.length-2&&(c=1/0,1==l&&(a=u)),n.push({applyFrom:p,applyTo:c,startOffset:o[a].offset,endOffset:o[u].offset,easingFunction:t.parseEasingFunction(o[a].easing),property:r,interpolation:e.propertyInterpolation(r,o[a].value,o[u].value)})}return n.sort((function(t,e){return t.startOffset-e.startOffset})),n}(n);return function(t,i){if(null!=i)r.filter((function(t){return i>=t.applyFrom&&i<t.applyTo})).forEach((function(n){var r=i-n.startOffset,o=n.endOffset-n.startOffset,s=0==o?0:n.easingFunction(r/o);e.apply(t,n.property,n.interpolation(s))}));else for(var o in n)"offset"!=o&&"easing"!=o&&"composite"!=o&&e.clear(t,o)}}}(Tx,Ox),function(t,e,i){function n(t){return t.replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function r(t,e,i){o[i]=o[i]||[],o[i].push([t,e])}var o={};e.addPropertiesHandler=function(t,e,i){for(var o=0;o<i.length;o++)r(t,e,n(i[o]))};var s={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};e.propertyInterpolation=function(i,r,a){var u=i;/-/.test(i)&&!t.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=n(i)),"initial"!=r&&"initial"!=a||("initial"==r&&(r=s[u]),"initial"==a&&(a=s[u]));for(var l=r==a?[]:o[u],h=0;l&&h<l.length;h++){var p=l[h][0](r),c=l[h][0](a);if(void 0!==p&&void 0!==c){var f=l[h][1](p,c);if(f){var _=e.Interpolation.apply(null,f);return function(t){return 0==t?r:1==t?a:_(t)}}}}return e.Interpolation(!1,!0,(function(t){return t?a:r}))}}(Tx,Ox),function(t,e,i){e.KeyframeEffect=function(i,n,r,o){var s,a=function(e){var i=t.calculateActiveDuration(e),n=function(n){return t.calculateIterationProgress(i,n,e)};return n._totalDuration=e.delay+i+e.endDelay,n}(t.normalizeTimingInput(r)),u=e.convertEffectInput(n),l=function(){u(i,s)};return l._update=function(t){return null!==(s=a(t))},l._clear=function(){u(i,null)},l._hasSameTarget=function(t){return i===t},l._target=i,l._totalDuration=a._totalDuration,l._id=o,l}}(Tx,Ox),function(t,e){function i(t,e,i){i.enumerable=!0,i.configurable=!0,Object.defineProperty(t,e,i)}function n(t){this._element=t,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=t.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(t,e){return!(!e.namespaceURI||-1==e.namespaceURI.indexOf("/svg"))&&(o in t||(t[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(t.navigator.userAgent)),t[o])}(window,t),this._savedTransformAttr=null;for(var e=0;e<this._style.length;e++){var i=this._style[e];this._surrogateStyle[i]=this._style[i]}this._updateIndices()}function r(t){if(!t._webAnimationsPatchedStyle){var e=new n(t);try{i(t,"style",{get:function(){return e}})}catch(e){t.style._set=function(e,i){t.style[e]=i},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}}var o="_webAnimationsUpdateSvgTransformAttr",s={cssText:1,length:1,parentRule:1},a={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in n.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(t){for(var e={},i=0;i<this._surrogateStyle.length;i++)e[this._surrogateStyle[i]]=!0;for(this._surrogateStyle.cssText=t,this._updateIndices(),i=0;i<this._surrogateStyle.length;i++)e[this._surrogateStyle[i]]=!0;for(var n in e)this._isAnimatedProperty[n]||this._style.setProperty(n,this._surrogateStyle.getPropertyValue(n))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(t){return function(){return this._surrogateStyle[t]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,i){this._style[e]=i,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(i)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},a)n.prototype[l]=function(t,e){return function(){var i=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),i}}(l,l in u);for(var h in document.documentElement.style)h in s||h in a||function(t){i(n.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(h);t.apply=function(e,i,n){r(e),e.style._set(t.propertyName(i),n)},t.clear=function(e,i){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(i))}}(Ox),function(t){window.Element.prototype.animate=function(e,i){var n="";return i&&i.id&&(n=i.id),t.timeline._play(t.KeyframeEffect(this,e,i,n))}}(Ox),function(t,e){function i(t,e,n){if("number"==typeof t&&"number"==typeof e)return t*(1-n)+e*n;if("boolean"==typeof t&&"boolean"==typeof e)return n<.5?t:e;if(t.length==e.length){for(var r=[],o=0;o<t.length;o++)r.push(i(t[o],e[o],n));return r}throw"Mismatched interpolation arguments "+t+":"+e}t.Interpolation=function(t,e,n){return function(r){return n(i(t,e,r))}}}(Ox),function(t,e){var i=function(){function t(t,e){for(var i=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],n=0;n<4;n++)for(var r=0;r<4;r++)for(var o=0;o<4;o++)i[n][r]+=e[n][o]*t[o][r];return i}return function(e,i,n,r,o){for(var s=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],a=0;a<4;a++)s[a][3]=o[a];for(a=0;a<3;a++)for(var u=0;u<3;u++)s[3][a]+=e[u]*s[u][a];var l=r[0],h=r[1],p=r[2],c=r[3],f=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];f[0][0]=1-2*(h*h+p*p),f[0][1]=2*(l*h-p*c),f[0][2]=2*(l*p+h*c),f[1][0]=2*(l*h+p*c),f[1][1]=1-2*(l*l+p*p),f[1][2]=2*(h*p-l*c),f[2][0]=2*(l*p-h*c),f[2][1]=2*(h*p+l*c),f[2][2]=1-2*(l*l+h*h),s=t(s,f);var _=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(n[2]&&(_[2][1]=n[2],s=t(s,_)),n[1]&&(_[2][1]=0,_[2][0]=n[0],s=t(s,_)),n[0]&&(_[2][0]=0,_[1][0]=n[0],s=t(s,_)),a=0;a<3;a++)for(u=0;u<3;u++)s[a][u]*=i[a];return function(t){return 0==t[0][2]&&0==t[0][3]&&0==t[1][2]&&0==t[1][3]&&0==t[2][0]&&0==t[2][1]&&1==t[2][2]&&0==t[2][3]&&0==t[3][2]&&1==t[3][3]}(s)?[s[0][0],s[0][1],s[1][0],s[1][1],s[3][0],s[3][1]]:s[0].concat(s[1],s[2],s[3])}}();t.composeMatrix=i,t.quat=function(e,i,n){var r=t.dot(e,i);r=function(t,e,i){return Math.max(Math.min(t,i),e)}(r,-1,1);var o=[];if(1===r)o=e;else for(var s=Math.acos(r),a=1*Math.sin(n*s)/Math.sqrt(1-r*r),u=0;u<4;u++)o.push(e[u]*(Math.cos(n*s)-r*a)+i[u]*a);return o}}(Ox),function(t,e,i){t.sequenceNumber=0;var n=function(t,e,i){this.target=t,this.currentTime=e,this.timelineTime=i,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};e.Animation=function(e){this.id="",e&&e._id&&(this.id=e._id),this._sequenceNumber=t.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=e,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},e.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,e.timeline._animations.push(this))},_tickCurrentTime:function(t,e){t!=this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var i=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=i&&(this.currentTime=i)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var i=this._finishHandlers.indexOf(e);i>=0&&this._finishHandlers.splice(i,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new n(this,this._currentTime,t),i=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){i.forEach((function(t){t.call(e.target,e)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(Tx,Ox),function(t,e,i){function n(t){var e=l;l=[],t<d.currentTime&&(t=d.currentTime),d._animations.sort(r),d._animations=a(t,!0,d._animations)[0],e.forEach((function(e){e[1](t)})),s()}function r(t,e){return t._sequenceNumber-e._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function s(){f.forEach((function(t){t()})),f.length=0}function a(t,i,n){_=!0,c=!1,e.timeline.currentTime=t,p=!1;var r=[],o=[],s=[],a=[];return n.forEach((function(e){e._tick(t,i),e._inEffect?(o.push(e._effect),e._markTarget()):(r.push(e._effect),e._unmarkTarget()),e._needsTick&&(p=!0);var n=e._inEffect||e._needsTick;e._inTimeline=n,n?s.push(e):a.push(e)})),f.push.apply(f,r),f.push.apply(f,o),p&&requestAnimationFrame((function(){})),_=!1,[s,a]}var u=window.requestAnimationFrame,l=[],h=0;window.requestAnimationFrame=function(t){var e=h++;return 0==l.length&&u(n),l.push([e,t]),e},window.cancelAnimationFrame=function(t){l.forEach((function(e){e[0]==t&&(e[1]=function(){})}))},o.prototype={_play:function(i){i._timing=t.normalizeTimingInput(i.timing);var n=new e.Animation(i);return n._idle=!1,n._timeline=this,this._animations.push(n),e.restart(),e.applyDirtiedAnimation(n),n}};var p=!1,c=!1;e.restart=function(){return p||(p=!0,requestAnimationFrame((function(){})),c=!0),c},e.applyDirtiedAnimation=function(t){if(!_){t._markTarget();var i=t._targetAnimations();i.sort(r),a(e.timeline.currentTime,!1,i.slice())[1].forEach((function(t){var e=d._animations.indexOf(t);-1!==e&&d._animations.splice(e,1)})),s()}};var f=[],_=!1,d=new o;e.timeline=d}(Tx,Ox),function(t,e){function i(t,e){for(var i=0,n=0;n<t.length;n++)i+=t[n]*e[n];return i}function n(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function r(t){var e=t.rad||0;return((t.deg||0)/360+(t.grad||0)/400+(t.turn||0))*(2*Math.PI)+e}function o(t){switch(t.t){case"rotatex":var e=r(t.d[0]);return[1,0,0,0,0,Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1];case"rotatey":return e=r(t.d[0]),[Math.cos(e),0,-Math.sin(e),0,0,1,0,0,Math.sin(e),0,Math.cos(e),0,0,0,0,1];case"rotate":case"rotatez":return e=r(t.d[0]),[Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var i=t.d[0],n=t.d[1],o=t.d[2],s=(e=r(t.d[3]),i*i+n*n+o*o);if(0===s)i=1,n=0,o=0;else if(1!==s){var a=Math.sqrt(s);i/=a,n/=a,o/=a}var u=Math.sin(e/2),l=u*Math.cos(e/2),h=u*u;return[1-2*(n*n+o*o)*h,2*(i*n*h+o*l),2*(i*o*h-n*l),0,2*(i*n*h-o*l),1-2*(i*i+o*o)*h,2*(n*o*h+i*l),0,2*(i*o*h+n*l),2*(n*o*h-i*l),1-2*(i*i+n*n)*h,0,0,0,0,1];case"scale":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[t.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,t.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,t.d[0],0,0,0,0,1];case"scale3d":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,t.d[2],0,0,0,0,1];case"skew":var p=r(t.d[0]),c=r(t.d[1]);return[1,Math.tan(c),0,0,Math.tan(p),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return e=r(t.d[0]),[1,0,0,0,Math.tan(e),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return e=r(t.d[0]),[1,Math.tan(e),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,n=t.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,n=t.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=t.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,n=t.d[1].px||0,o=t.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,t.d[0].px?-1/t.d[0].px:0,0,0,0,1];case"matrix":return[t.d[0],t.d[1],0,0,t.d[2],t.d[3],0,0,0,0,1,0,t.d[4],t.d[5],0,1];case"matrix3d":return t.d}}function s(t){return 0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(o).reduce(n)}var a=function(){function t(t){return t[0][0]*t[1][1]*t[2][2]+t[1][0]*t[2][1]*t[0][2]+t[2][0]*t[0][1]*t[1][2]-t[0][2]*t[1][1]*t[2][0]-t[1][2]*t[2][1]*t[0][0]-t[2][2]*t[0][1]*t[1][0]}function e(t){var e=n(t);return[t[0]/e,t[1]/e,t[2]/e]}function n(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])}function r(t,e,i,n){return[i*t[0]+n*e[0],i*t[1]+n*e[1],i*t[2]+n*e[2]]}return function(o){var s=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==s[3][3])return null;for(var a=[],u=0;u<4;u++)a.push(s[u].slice());for(u=0;u<3;u++)a[u][3]=0;if(0===t(a))return null;var l,h=[];s[0][3]||s[1][3]||s[2][3]?(h.push(s[0][3]),h.push(s[1][3]),h.push(s[2][3]),h.push(s[3][3]),l=function(t,e){for(var i=[],n=0;n<4;n++){for(var r=0,o=0;o<4;o++)r+=t[o]*e[o][n];i.push(r)}return i}(h,function(t){return[[t[0][0],t[1][0],t[2][0],t[3][0]],[t[0][1],t[1][1],t[2][1],t[3][1]],[t[0][2],t[1][2],t[2][2],t[3][2]],[t[0][3],t[1][3],t[2][3],t[3][3]]]}(function(e){for(var i=1/t(e),n=e[0][0],r=e[0][1],o=e[0][2],s=e[1][0],a=e[1][1],u=e[1][2],l=e[2][0],h=e[2][1],p=e[2][2],c=[[(a*p-u*h)*i,(o*h-r*p)*i,(r*u-o*a)*i,0],[(u*l-s*p)*i,(n*p-o*l)*i,(o*s-n*u)*i,0],[(s*h-a*l)*i,(l*r-n*h)*i,(n*a-r*s)*i,0]],f=[],_=0;_<3;_++){for(var d=0,y=0;y<3;y++)d+=e[3][y]*c[y][_];f.push(d)}return f.push(1),c.push(f),c}(a)))):l=[0,0,0,1];var p=s[3].slice(0,3),c=[];c.push(s[0].slice(0,3));var f=[];f.push(n(c[0])),c[0]=e(c[0]);var _=[];c.push(s[1].slice(0,3)),_.push(i(c[0],c[1])),c[1]=r(c[1],c[0],1,-_[0]),f.push(n(c[1])),c[1]=e(c[1]),_[0]/=f[1],c.push(s[2].slice(0,3)),_.push(i(c[0],c[2])),c[2]=r(c[2],c[0],1,-_[1]),_.push(i(c[1],c[2])),c[2]=r(c[2],c[1],1,-_[2]),f.push(n(c[2])),c[2]=e(c[2]),_[1]/=f[2],_[2]/=f[2];var d=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(c[1],c[2]);if(i(c[0],d)<0)for(u=0;u<3;u++)f[u]*=-1,c[u][0]*=-1,c[u][1]*=-1,c[u][2]*=-1;var y,g,v=c[0][0]+c[1][1]+c[2][2]+1;return v>1e-4?(y=.5/Math.sqrt(v),g=[(c[2][1]-c[1][2])*y,(c[0][2]-c[2][0])*y,(c[1][0]-c[0][1])*y,.25/y]):c[0][0]>c[1][1]&&c[0][0]>c[2][2]?g=[.25*(y=2*Math.sqrt(1+c[0][0]-c[1][1]-c[2][2])),(c[0][1]+c[1][0])/y,(c[0][2]+c[2][0])/y,(c[2][1]-c[1][2])/y]:c[1][1]>c[2][2]?(y=2*Math.sqrt(1+c[1][1]-c[0][0]-c[2][2]),g=[(c[0][1]+c[1][0])/y,.25*y,(c[1][2]+c[2][1])/y,(c[0][2]-c[2][0])/y]):(y=2*Math.sqrt(1+c[2][2]-c[0][0]-c[1][1]),g=[(c[0][2]+c[2][0])/y,(c[1][2]+c[2][1])/y,.25*y,(c[1][0]-c[0][1])/y]),[p,f,_,g,l]}}();t.dot=i,t.makeMatrixDecomposition=function(t){return[a(s(t))]},t.transformListToMatrix=s}(Ox),function(t){function e(t,e){var i=t.exec(e);if(i)return[i=t.ignoreCase?i[0].toLowerCase():i[0],e.substr(i.length)]}function i(t,e){var i=t(e=e.replace(/^\s*/,""));if(i)return[i[0],i[1].replace(/^\s*/,"")]}function n(t,e,i,n,r){for(var o=[],s=[],a=[],u=function(t,e){for(var i=t,n=e;i&&n;)i>n?i%=n:n%=i;return t*e/(i+n)}(n.length,r.length),l=0;l<u;l++){var h=e(n[l%n.length],r[l%r.length]);if(!h)return;o.push(h[0]),s.push(h[1]),a.push(h[2])}return[o,s,function(e){var n=e.map((function(t,e){return a[e](t)})).join(i);return t?t(n):n}]}t.consumeToken=e,t.consumeTrimmed=i,t.consumeRepeated=function(t,n,r){t=i.bind(null,t);for(var o=[];;){var s=t(r);if(!s)return[o,r];if(o.push(s[0]),!(s=e(n,r=s[1]))||""==s[1])return[o,r];r=s[1]}},t.consumeParenthesised=function(t,e){for(var i=0,n=0;n<e.length&&(!/\s|,/.test(e[n])||0!=i);n++)if("("==e[n])i++;else if(")"==e[n]&&(0==--i&&n++,i<=0))break;var r=t(e.substr(0,n));return null==r?void 0:[r,e.substr(n)]},t.ignore=function(t){return function(e){var i=t(e);return i&&(i[0]=void 0),i}},t.optional=function(t,e){return function(i){return t(i)||[e,i]}},t.consumeList=function(e,i){for(var n=[],r=0;r<e.length;r++){var o=t.consumeTrimmed(e[r],i);if(!o||""==o[0])return;void 0!==o[0]&&n.push(o[0]),i=o[1]}if(""==i)return n},t.mergeNestedRepeated=n.bind(null,null),t.mergeWrappedNestedRepeated=n,t.mergeList=function(t,e,i){for(var n=[],r=[],o=[],s=0,a=0;a<i.length;a++)if("function"==typeof i[a]){var u=i[a](t[s],e[s++]);n.push(u[0]),r.push(u[1]),o.push(u[2])}else!function(t){n.push(!1),r.push(!1),o.push((function(){return i[t]}))}(a);return[n,r,function(t){for(var e="",i=0;i<t.length;i++)e+=o[i](t[i]);return e}]}}(Ox),function(t){function e(e){var i={inset:!1,lengths:[],color:null},n=t.consumeRepeated((function(e){var n=t.consumeToken(/^inset/i,e);return n?(i.inset=!0,n):(n=t.consumeLengthOrPercent(e))?(i.lengths.push(n[0]),n):(n=t.consumeColor(e))?(i.color=n[0],n):void 0}),/^/,e);if(n&&n[0].length)return[i,n[1]]}var i=function(e,i,n,r){function o(t){return{inset:t,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var s=[],a=[],u=0;u<n.length||u<r.length;u++){var l=n[u]||o(r[u].inset),h=r[u]||o(n[u].inset);s.push(l),a.push(h)}return t.mergeNestedRepeated(e,i,s,a)}.bind(null,(function(e,i){for(;e.lengths.length<Math.max(e.lengths.length,i.lengths.length);)e.lengths.push({px:0});for(;i.lengths.length<Math.max(e.lengths.length,i.lengths.length);)i.lengths.push({px:0});if(e.inset==i.inset&&!!e.color==!!i.color){for(var n,r=[],o=[[],0],s=[[],0],a=0;a<e.lengths.length;a++){var u=t.mergeDimensions(e.lengths[a],i.lengths[a],2==a);o[0].push(u[0]),s[0].push(u[1]),r.push(u[2])}if(e.color&&i.color){var l=t.mergeColors(e.color,i.color);o[1]=l[0],s[1]=l[1],n=l[2]}return[o,s,function(t){for(var i=e.inset?"inset ":" ",o=0;o<r.length;o++)i+=r[o](t[0][o])+" ";return n&&(i+=n(t[1])),i}]}}),", ");t.addPropertiesHandler((function(i){var n=t.consumeRepeated(e,/^,/,i);if(n&&""==n[1])return n[0]}),i,["box-shadow","text-shadow"])}(Ox),function(t,e){function i(t){return t.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function n(t,e,i){return Math.min(e,Math.max(t,i))}function r(t){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t))return Number(t)}function o(t,e){return function(r,o){return[r,o,function(r){return i(n(t,e,r))}]}}function s(t){var e=t.trim().split(/\s*[\s,]\s*/);if(0!==e.length){for(var i=[],n=0;n<e.length;n++){var o=r(e[n]);if(void 0===o)return;i.push(o)}return i}}t.clamp=n,t.addPropertiesHandler(s,(function(t,e){if(t.length==e.length)return[t,e,function(t){return t.map(i).join(" ")}]}),["stroke-dasharray"]),t.addPropertiesHandler(r,o(0,1/0),["border-image-width","line-height"]),t.addPropertiesHandler(r,o(0,1),["opacity","shape-image-threshold"]),t.addPropertiesHandler(r,(function(t,e){if(0!=t)return o(0,1/0)(t,e)}),["flex-grow","flex-shrink"]),t.addPropertiesHandler(r,(function(t,e){return[t,e,function(t){return Math.round(n(1,1/0,t))}]}),["orphans","widows"]),t.addPropertiesHandler(r,(function(t,e){return[t,e,Math.round]}),["z-index"]),t.parseNumber=r,t.parseNumberList=s,t.mergeNumbers=function(t,e){return[t,e,i]},t.numberToString=i}(Ox),function(t,e){t.addPropertiesHandler(String,(function(t,e){if("visible"==t||"visible"==e)return[0,1,function(i){return i<=0?t:i>=1?e:"visible"}]}),["visibility"])}(Ox),function(t,e){function i(t){t=t.trim(),o.fillStyle="#000",o.fillStyle=t;var e=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=t,e==o.fillStyle){o.fillRect(0,0,1,1);var i=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var n=i[3]/255;return[i[0]*n,i[1]*n,i[2]*n,n]}}function n(e,i){return[e,i,function(e){if(e[3])for(var i=0;i<3;i++)e[i]=Math.round(function(t){return Math.max(0,Math.min(255,t))}(e[i]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var r=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");r.width=r.height=1;var o=r.getContext("2d");t.addPropertiesHandler(i,n,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,i),t.mergeColors=n}(Ox),function(t,e){function i(t){function e(){var e=s.exec(t);o=e?e[0]:void 0}function i(){if("("!==o)return function(){var t=Number(o);return e(),t}();e();var t=r();return")"!==o?NaN:(e(),t)}function n(){for(var t=i();"*"===o||"/"===o;){var n=o;e();var r=i();"*"===n?t*=r:t/=r}return t}function r(){for(var t=n();"+"===o||"-"===o;){var i=o;e();var r=n();"+"===i?t+=r:t-=r}return t}var o,s=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),r()}function n(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){e=e.replace(/calc\(/g,"(");var n={};e=e.replace(t,(function(t){return n[t]=null,"U"+t}));for(var r="U("+t.source+")",o=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+r,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),s=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],a=0;a<s.length;)s[a].test(o)?(o=o.replace(s[a],"$1"),a=0):a++;if("D"==o){for(var u in n){var l=i(e.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(r,"g"),"*0"));if(!isFinite(l))return;n[u]=l}return n}}}function r(t,e){return o(t,e,!0)}function o(e,i,n){var r,o=[];for(r in e)o.push(r);for(r in i)o.indexOf(r)<0&&o.push(r);return e=o.map((function(t){return e[t]||0})),i=o.map((function(t){return i[t]||0})),[e,i,function(e){var i=e.map((function(i,r){return 1==e.length&&n&&(i=Math.max(i,0)),t.numberToString(i)+o[r]})).join(" + ");return e.length>1?"calc("+i+")":i}]}var s="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",a=n.bind(null,new RegExp(s,"g")),u=n.bind(null,new RegExp(s+"|%","g")),l=n.bind(null,/deg|rad|grad|turn/g);t.parseLength=a,t.parseLengthOrPercent=u,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,u),t.parseAngle=l,t.mergeDimensions=o;var h=t.consumeParenthesised.bind(null,a),p=t.consumeRepeated.bind(void 0,h,/^/),c=t.consumeRepeated.bind(void 0,p,/^,/);t.consumeSizePairList=c;var f=t.mergeNestedRepeated.bind(void 0,r," "),_=t.mergeNestedRepeated.bind(void 0,f,",");t.mergeNonNegativeSizePair=f,t.addPropertiesHandler((function(t){var e=c(t);if(e&&""==e[1])return e[0]}),_,["background-size"]),t.addPropertiesHandler(u,r,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(Ox),function(t,e){function i(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function n(e){var n=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,i,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(n&&4==n[0].length)return n[0]}var r=t.mergeWrappedNestedRepeated.bind(null,(function(t){return"rect("+t+")"}),(function(e,i){return"auto"==e||"auto"==i?[!0,!1,function(n){var r=n?e:i;if("auto"==r)return"auto";var o=t.mergeDimensions(r,r);return o[2](o[0])}]:t.mergeDimensions(e,i)}),", ");t.parseBox=n,t.mergeBoxes=r,t.addPropertiesHandler(n,r,["clip"])}(Ox),function(t,e){function i(t){return function(e){var i=0;return t.map((function(t){return t===l?e[i++]:t}))}}function n(t){return t}function r(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var i,n=/\s*(\w+)\(([^)]*)\)/g,r=[],o=0;i=n.exec(e);){if(i.index!=o)return;o=i.index+i[0].length;var s=i[1],a=c[s];if(!a)return;var u=i[2].split(","),l=a[0];if(l.length<u.length)return;for(var f=[],_=0;_<l.length;_++){var d,y=u[_],g=l[_];if(void 0===(d=y?{A:function(e){return"0"==e.trim()?p:t.parseAngle(e)},N:t.parseNumber,T:t.parseLengthOrPercent,L:t.parseLength}[g.toUpperCase()](y):{a:p,n:f[0],t:h}[g]))return;f.push(d)}if(r.push({t:s,d:f}),n.lastIndex==e.length)return r}}function o(t){return t.toFixed(6).replace(".000000","")}function s(e,i){if(e.decompositionPair!==i){e.decompositionPair=i;var n=t.makeMatrixDecomposition(e)}if(i.decompositionPair!==e){i.decompositionPair=e;var r=t.makeMatrixDecomposition(i)}return null==n[0]||null==r[0]?[[!1],[!0],function(t){return t?i[0].d:e[0].d}]:(n[0].push(0),r[0].push(1),[n,r,function(e){var i=t.quat(n[0][3],r[0][3],e[5]);return t.composeMatrix(e[0],e[1],e[2],i,e[4]).map(o).join(",")}])}function a(t){return t.replace(/[xy]/,"")}function u(t){return t.replace(/(x|y|z|3d)?$/,"3d")}var l=null,h={px:0},p={deg:0},c={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],n],matrix3d:["NNNNNNNNNNNNNNNN",n],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",i([l,l,1]),n],scalex:["N",i([l,1,1]),i([l,1])],scaley:["N",i([1,l,1]),i([1,l])],scalez:["N",i([1,1,l])],scale3d:["NNN",n],skew:["Aa",null,n],skewx:["A",null,i([l,p])],skewy:["A",null,i([p,l])],translate:["Tt",i([l,l,h]),n],translatex:["T",i([l,h,h]),i([l,h])],translatey:["T",i([h,l,h]),i([h,l])],translatez:["L",i([h,h,l])],translate3d:["TTL",n]};t.addPropertiesHandler(r,(function(e,i){var n=t.makeMatrixDecomposition&&!0,r=!1;if(!e.length||!i.length){e.length||(r=!0,e=i,i=[]);for(var o=0;o<e.length;o++){var l=e[o].t,h=e[o].d,p="scale"==l.substr(0,5)?1:0;i.push({t:l,d:h.map((function(t){if("number"==typeof t)return p;var e={};for(var i in t)e[i]=p;return e}))})}}var f=[],_=[],d=[];if(e.length!=i.length){if(!n)return;f=[(x=s(e,i))[0]],_=[x[1]],d=[["matrix",[x[2]]]]}else for(o=0;o<e.length;o++){var y=e[o].t,g=i[o].t,v=e[o].d,m=i[o].d,b=c[y],w=c[g];if(function(t,e){return"perspective"==t&&"perspective"==e||("matrix"==t||"matrix3d"==t)&&("matrix"==e||"matrix3d"==e)}(y,g)){if(!n)return;var x=s([e[o]],[i[o]]);f.push(x[0]),_.push(x[1]),d.push(["matrix",[x[2]]])}else{if(y==g)l=y;else if(b[2]&&w[2]&&a(y)==a(g))l=a(y),v=b[2](v),m=w[2](m);else{if(!b[1]||!w[1]||u(y)!=u(g)){if(!n)return;f=[(x=s(e,i))[0]],_=[x[1]],d=[["matrix",[x[2]]]];break}l=u(y),v=b[1](v),m=w[1](m)}for(var S=[],P=[],V=[],k=0;k<v.length;k++)x=("number"==typeof v[k]?t.mergeNumbers:t.mergeDimensions)(v[k],m[k]),S[k]=x[0],P[k]=x[1],V.push(x[2]);f.push(S),_.push(P),d.push([l,V])}}if(r){var A=f;f=_,_=A}return[f,_,function(t){return t.map((function(t,e){var i=t.map((function(t,i){return d[e][1][i](t)})).join(",");return"matrix"==d[e][0]&&16==i.split(",").length&&(d[e][0]="matrix3d"),d[e][0]+"("+i+")"})).join(" ")}]}),["transform"]),t.transformToSvgMatrix=function(e){var i=t.transformListToMatrix(r(e));return"matrix("+o(i[0])+" "+o(i[1])+" "+o(i[4])+" "+o(i[5])+" "+o(i[12])+" "+o(i[13])+")"}}(Ox),function(t){function e(e){return e=100*Math.round(e/100),400===(e=t.clamp(100,900,e))?"normal":700===e?"bold":String(e)}t.addPropertiesHandler((function(t){var e=Number(t);if(!(isNaN(e)||e<100||e>900||e%100!=0))return e}),(function(t,i){return[t,i,e]}),["font-weight"])}(Ox),function(t){function e(t){var e={};for(var i in t)e[i]=-t[i];return e}function i(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function n(e,n){var r=t.consumeRepeated(i,/^/,n);if(r&&""==r[1]){var s=r[0];if(s[0]=s[0]||"center",s[1]=s[1]||"center",3==e&&(s[2]=s[2]||{px:0}),s.length==e){if(/top|bottom/.test(s[0])||/left|right/.test(s[1])){var a=s[0];s[0]=s[1],s[1]=a}if(/left|right|center|Object/.test(s[0])&&/top|bottom|center|Object/.test(s[1]))return s.map((function(t){return"object"==typeof t?t:o[t]}))}}}function r(n){var r=t.consumeRepeated(i,/^/,n);if(r){for(var s=r[0],a=[{"%":50},{"%":50}],u=0,l=!1,h=0;h<s.length;h++){var p=s[h];"string"==typeof p?(l=/bottom|right/.test(p),a[u={left:0,right:0,center:u,top:1,bottom:1}[p]]=o[p],"center"==p&&u++):(l&&((p=e(p))["%"]=(p["%"]||0)+100),a[u]=p,u++,l=!1)}return[a,r[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},s=t.mergeNestedRepeated.bind(null,t.mergeDimensions," ");t.addPropertiesHandler(n.bind(null,3),s,["transform-origin"]),t.addPropertiesHandler(n.bind(null,2),s,["perspective-origin"]),t.consumePosition=r,t.mergeOffsetList=s;var a=t.mergeNestedRepeated.bind(null,s,", ");t.addPropertiesHandler((function(e){var i=t.consumeRepeated(r,/^,/,e);if(i&&""==i[1])return i[0]}),a,["background-position","object-position"])}(Ox),function(t){var e=t.consumeParenthesised.bind(null,t.parseLengthOrPercent),i=t.consumeRepeated.bind(void 0,e,/^/),n=t.mergeNestedRepeated.bind(void 0,t.mergeDimensions," "),r=t.mergeNestedRepeated.bind(void 0,n,",");t.addPropertiesHandler((function(n){var r=t.consumeToken(/^circle/,n);if(r&&r[0])return["circle"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),e,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],r[1]));var o=t.consumeToken(/^ellipse/,n);if(o&&o[0])return["ellipse"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),i,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],o[1]));var s=t.consumeToken(/^polygon/,n);return s&&s[0]?["polygon"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),t.optional(t.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),t.consumeSizePairList,t.ignore(t.consumeToken.bind(void 0,/^\)/))],s[1])):void 0}),(function(e,i){if(e[0]===i[0])return"circle"==e[0]?t.mergeList(e.slice(1),i.slice(1),["circle(",t.mergeDimensions," at ",t.mergeOffsetList,")"]):"ellipse"==e[0]?t.mergeList(e.slice(1),i.slice(1),["ellipse(",t.mergeNonNegativeSizePair," at ",t.mergeOffsetList,")"]):"polygon"==e[0]&&e[1]==i[1]?t.mergeList(e.slice(2),i.slice(2),["polygon(",e[1],r,")"]):void 0}),["shape-outside"])}(Ox),function(t,e){function i(t,e){e.concat([t]).forEach((function(e){e in document.documentElement.style&&(n[t]=e),r[e]=t}))}var n={},r={};i("transform",["webkitTransform","msTransform"]),i("transformOrigin",["webkitTransformOrigin"]),i("perspective",["webkitPerspective"]),i("perspectiveOrigin",["webkitPerspectiveOrigin"]),t.propertyName=function(t){return n[t]||t},t.unprefixedPropertyName=function(t){return r[t]||t}}(Ox)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var t=function(){return performance.now()};else t=function(){return Date.now()};var e=function(t,e,i){this.target=t,this.currentTime=e,this.timelineTime=i,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},i=window.Element.prototype.animate;window.Element.prototype.animate=function(n,r){var o=i.call(this,n,r);o._cancelHandlers=[],o.oncancel=null;var s=o.cancel;o.cancel=function(){s.call(this);var i=new e(this,null,t()),n=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){n.forEach((function(t){t.call(i.target,i)}))}),0)};var a=o.addEventListener;o.addEventListener=function(t,e){"function"==typeof e&&"cancel"==t?this._cancelHandlers.push(e):a.call(this,t,e)};var u=o.removeEventListener;return o.removeEventListener=function(t,e){if("cancel"==t){var i=this._cancelHandlers.indexOf(e);i>=0&&this._cancelHandlers.splice(i,1)}else u.call(this,t,e)},o}}}(),function(t){var e=document.documentElement,i=null,n=!1;try{var r="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(i=e.animate({opacity:[r,r]},{duration:1})).currentTime=0,n=getComputedStyle(e).getPropertyValue("opacity")==r}catch(t){}finally{i&&i.cancel()}if(!n){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(e,i){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),o.call(this,e,i)}}}(Tx),Object.defineProperty(window.SVGElement.prototype,"parentElement",{get:function(){return this.parentNode}}),Element.prototype._getBoundingClientRect=Element.prototype.getBoundingClientRect,Element.prototype.getBoundingClientRect=function(){const t=Element.prototype._getBoundingClientRect.call(this);return t.x=t.left,t.y=t.top,t},function(){function t(t){var e=t&&t.getBoundingClientRect()||{x:0,y:0,width:0,height:0};return[e.left,e.top]}SVGElement.prototype.getBBox=function(){return"tspan"===this.nodeName?function(e){try{var i=e.ownerSVGElement,n=e.parentNode,[r,o]=t(i),[s,a]=t(n),u={x:0,y:0,width:0,height:0};e.viewportElement&&e.textContent.trim()&&(u=e.getExtentOfChar(0))}catch(t){console.error(t.message),console.log(e.textContent,e.textContent.trim().length,{tspanElement:e})}finally{return{x:r+s+u.x,y:o+a+u.y,width:u.width,height:u.height}}}(this):this.getBoundingClientRect()}}();var Bx=function(t,e){return Bx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Bx(t,e)};function Fx(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Bx(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Ix=function(){return Ix=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ix.apply(this,arguments)};function jx(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function $x(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s}function zx(t,e,i){if(i||2===arguments.length)for(var n,r=0,o=e.length;r<o;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var Hx="http://www.w3.org/2000/svg",Gx=Object.prototype.hasOwnProperty,Wx=function(t){return t&&"object"==typeof t&&!Array.isArray(t)},Yx=Array.isArray,Xx=function(t){return"function"==typeof t},Ux=function(t){return"string"==typeof t},qx=function(t){return"string"==typeof t&&t.length>0},Zx=function(t){return"number"==typeof t},Kx=function(t){return"boolean"==typeof t},Jx=Object.assign,Qx=Math.floor,tS=Math.ceil,eS=Math.cos,iS=Math.sin,nS=function(t){return Math.pow(10,t)},rS=Math.log10,oS=Math.min,sS=Math.max,aS=Math.abs,uS=function(t,e){return t=parseFloat(t),isNaN(t)?parseFloat(e):t},lS=function(t,e,i){var n=parseFloat(t);return isNaN(n)?(n=parseFloat(e),isNaN(n)?parseFloat(i):n):n},hS=function(t,e){return void 0!==t?t:e},pS=function(t,e,i){return void 0!==t?t:void 0!==e?e:i},cS=function(t,e,i){return t+(e-t)*i},fS=(new Date).getTime();"undefined"==typeof window||Element.prototype.animate||(Element.prototype.animate=function(t){});var _S=function(){function t(){}return t.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.LOGGING&&console.log.apply(console,zx([],$x(t),!1))},t.now=function(){return+new Date},t.parseDate=function(t,e){var i=new Date(t);return isNaN(i.getTime())?e||new Date:i},t.isLeapYear=function(t){return t%4==0&&t%100!=0||t%400==0},t.dateOfYear=function(e){var i=e.getMonth(),n=e.getDate(),r=[0,31,59,90,120,151,181,212,243,273,304,334][i]+n;return i>1&&t.isLeapYear(e.getFullYear())&&r++,r},t.incMonth=function(e,i){var n=e.getDate();return e.setDate(1),e.setMonth(e.getMonth()+i),e.setDate(oS(n,t.month_days[t.isLeapYear(e.getFullYear())?1:0][e.getMonth()])),e},t.minDate=function(t,e){return null!==t?t:null!==e?e:t.getTime()<e.getTime()?t:e},t.maxDate=function(t,e){return null!==t?e:null!==e||t.getTime()>e.getTime()?t:e},t.weekOfMonth=function(t,e,i){var n=t.getMonth(),r=t.getFullYear(),o=new Date(r,n,1).getDay(),s=new Date(r,n+1,0).getDate(),a=t.getDate()+o-1,u=e+Math.ceil((s+o-7)/7),l=e+Math.floor(a/7);return i||l<2+e?l:l===u?e+5:l},t.weekOfYear=function(t,e){var i=t.getFullYear(),n=new Date(i,0,1).getDay(),r=this.dateOfYear(t)+n-1;return e+Math.floor(r/7)},t.isObject=function(t){return t&&"object"==typeof t&&!Yx(t)},t.isValidObject=function(t){if(this.isObject(t))for(var e in t)if(t.hasOwnProperty(e))return!0},t.copyObject=function(t){if(t&&"object"==typeof t&&!Yx(t))return Jx({},t)},t.checkArray=function(t){return Yx(t)?t:void 0},t.makeArray=function(t,e){return void 0===e&&(e=!1),null!=t?Yx(t)?t:[t]:e?[]:void 0},t.makeNumArray=function(t){return Yx(t)?t.map((function(t){return+t})):null!=t?[+t]:[]},t.getIntArray=function(t,e){void 0===e&&(e=0);for(var i=[],n=e,r=e+t;n<r;n++)i.push(n);return i},t.isValueArray=function(t){if(Yx(t)){for(var e=t.length-1;e>=0;e--)if(null!=t[e]&&"object"==typeof t[e])return!1;return!0}return!1},t.toArray=function(t){return Yx(t)?t:null!=t?[t]:null},t.copyArray=function(t){return Yx(t)?t.slice(0):null!=t?[t]:void 0},t.push=function(t,e){if(e&&e.length>0)for(var i=0,n=e.length;i<n;i++)t.push(e[i])},t.isDefined=function(t){return null!=t},t.isNotDefined=function(t){return null==t},t.isNumber=function(t){return"number"==typeof t},t.canNumber=function(t){return!isNaN(t)&&!isNaN(parseFloat(t))},t.isValidNum=function(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)},t.getNumber=function(t,e){void 0===e&&(e=0);var i=parseFloat(t);return isFinite(i)?i:e},t.toNumber=function(t,e){return void 0===e&&(e=0),isNaN(t)||null===t||""===t?e:+t},t.compareText=function(t,e,i){return void 0===i&&(i=!1),t=t||"",e=e||"",i&&(t=t.toLocaleLowerCase(),e=e.toLocaleLowerCase()),t>e?1:t<e?-1:0},t.getTimeF=function(){return(new Date).getTime()/1e3},t.getTimer=function(){return(new Date).getTime()-fS},t.isWhiteSpace=function(t){return!t||!t.trim()},t.pad=function(t,e,i){return e=sS(e||2,1),i=i||"0",new Array(e-String(t).length+1).join(i)+t},t.pad16=function(t,e,i){return e=sS(e||2,1),i=i||"0",new Array(e-t.toString(16).length+1).join(i)+t.toString(16)},t.pick=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i,n=t.length,r=0;r<n;r++)if(null!=(i=t[r]))return i},t.toStr=function(t){return Number.isNaN(t)||null==t?"":String(t)},t.extend=function(t,e){for(var i in t=t||{},e)t[i]=e[i];return t},t.equalNumbers=function(t,e){return isNaN(t)==isNaN(e)&&!isNaN(t)&&t==e},t.equalArrays=function(t,e){if(t===e)return!0;if(null==t||null==e)return!1;var i=t.length;if(i!=e.length)return!1;for(var n=0;n<i;++n)if(t[n]!==e[n])return!1;return!0},t.isEmpty=function(t){if(t)for(var e in t)return!1;return!0},t.isNotEmpty=function(t){if(t)for(var e in t)return!0;return!1},t.setter=function(t){return"set"+t[0].toUpperCase()+t.slice(1)},t.deepClone=function(e){var i,n;if(e instanceof Date)return new Date(e);if(null==e||"object"!=typeof e)return e;var r=Yx(e)?[]:{};try{for(var o=jx(Object.keys(e)),s=o.next();!s.done;s=o.next()){var a=s.value;r[a]=t.deepClone(e[a])}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return r},t.getArray=function(t,e){for(var i=[],n=0;n<t;n++)i.push(e);return i},t.getNumArray=function(t,e){void 0===e&&(e=0);for(var i=[],n=0;n<t;n++)i.push(e);return i},t.dedupe=function(t,e){for(var i=(t=t.sort(e||function(t,e){return t>e?1:t<e?-1:0})).length-1;i>0;i--)t[i]===t[i-1]&&t.splice(i,1);return t},t.sortNum=function(t){return t.sort((function(t,e){return t-e}))},t.logElapsed=function(e,i){var n=+new Date;i(),t.log(e,+new Date-n+"ms")},t.clamp=function(t,e,i){return sS(e,oS(i,t))},t.makeIntArray=function(t,e){for(var i=new Array(sS(0,e-t)),n=t;n<e;n++)i[n-t]=n;return i},t.shuffle=function(t){for(var e,i=t.length-1;i>0;i--){var n=Math.floor(Math.random()*(i+1));e=$x([t[n],t[i]],2),t[i]=e[0],t[n]=e[1]}},t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isValidDate=function(t){return t.getTime()==t.getTime()},t.asFunction=function(t){return"function"==typeof t?t:void 0},t.getFieldProp=function(t){var e=t.indexOf(".");if(e>=0)return{field:t.substring(0,e),props:t.substring(e+1).split(".")}},t.startsWith=function(t,e){if(t&&e)return 0===t.indexOf(e)},t.endsWith=function(t,e){if(t&&e)return t.indexOf(e,-t.length)===t.length-e.length},t.scaleNumber=function(t,e,i){var n=aS(t);if(n>=1e3)for(var r=e.length;r>0;){var o=Math.pow(1e3,r--);if(o<=Math.pow(10,Math.log(n)*Math.LOG10E)&&(i||10*n%o==0))return{value:t/o,symbol:e[r]}}},t.jitter=function(t,e){return t+(2*Math.random()-1)*e},t.LOGGING=!1,t.week_days=["일","월","화","수","목","금","토"],t.long_week_days=["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],t.month_days=[[31,28,31,30,31,30,31,31,30,31,30,31],[31,29,31,30,31,30,31,31,30,31,30,31]],t.uniqueKey=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"rr-chart-"+t+e++}}(),t}(),dS={ko:{dateFormat:"yyyy.MM.dd",am:"오전",pm:"오후",notExistsDataField:"존재하지 않는 필드입니다: %1",notSpecifiedDataField:"하나 이상의 데이터필드가 설정돼야 합니다.",invalidFieldName:"잘못된 데이터필드 이름입니다: %1",invalidRowIndex:"잘못된 데이터행 index입니다: %1",invalidToIndex:"잘못된 'to' index입니다.: %1",requireSourceData:"원본 data가 반드시 지정돼야 합니다.",requireFilterName:"필터 이름이 반드시 지정돼야 합니다.",invalidDateFormat:"잘못된 시간 날짜 형식입니다: %1",invalidSizeValue:"잘못된 Size 값입니다: %1",invalidOuterDiv:"잘못된 외부 div 입니다: %1",dataMustSet:"데이터가 먼저 설정돼야 합니다.",requireTableName:"테이블모델의 이름이 지정돼야 합니다.",alreadyTableExists:"이미 존재하는 테이블모델입니다: %1"},en:{dateFormat:"M/d/yyyy",am:"AM",pm:"PM",notExistsDataField:"A data field is not exists: %1",notSpecifiedDataField:"At least one datafield must be set.",invalidFieldName:"Invalid field name: %1",invalidRowIndex:"Invalid row index: %1",invalidToIndex:"Invalid 'to' index: %1",requireSourceData:"A source data must be set.",requireFilterName:"A filter name must be set.",invalidDateFormat:"Invalid datetime format: %1",invalidSizeValue:"Invalid size value: %1",invalidOuterDiv:"Invalid outer div element: %1",dataMustSet:"A data must be set first.",requireTableName:"The name of table model is required.",alreadyTableExists:"A table model is already exists: %1"}},yS="ko",gS=dS[yS]||dS[yS="ko"],vS=function(t,e){t&&Wx(e)&&(gS=dS[t.substring(0,2)]=Object.assign(dS.ko,dS.en,e))},mS=0,bS=function(){function t(t){this.$_destroyed=!1,this.$_destroying=!1,t||(this.$_hash=String(mS++))}return t.destroy=function(t){return t&&t.destroy()},t.prototype.destroy=function(){return this.$_destroyed||this.$_destroying||(this.$_destroying=!0,this._doDestroy(),this.$_destroyed=!0),null},t.prototype._doDestroy=function(){},Object.defineProperty(t.prototype,"destroying",{get:function(){return this.$_destroying},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.$_hash},enumerable:!1,configurable:!0}),t.prototype.isMe=function(t){return t===this.$_hash},t.prototype.toString=function(){return this.constructor.name},t.prototype.toBool=function(t){return"string"==typeof t?"true"===t:t},t.prototype.toNum=function(t,e){return void 0===e&&(e=NaN),t=parseFloat(t),isNaN(t)?e:t},t}(),wS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._listeners=[],e}return Fx(e,t),e.prototype._addListener=function(t){t&&this._listeners.indexOf(t)<0&&this._listeners.push(t)},e.prototype._removeListener=function(t){var e=this._listeners.indexOf(t);e>=0&&this._listeners.splice(e,1)},e.prototype._fireEvent=function(t){var e,i,n=Array.prototype.slice.call(arguments,0);n[0]=this;try{for(var r=jx(this._listeners),o=r.next();!o.done;o=r.next()){var s=o.value,a=s[t];if(a){var u=a.apply(s,n);if(void 0!==u)return u}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e}(bS),xS=void 0,SS=Math.PI,PS=2*SS,VS=-SS/2,kS=2*SS/360,AS=360/SS/2,CS="%".charCodeAt(0);function ES(t){return t>PS?t%PS:t}function LS(t){return parseFloat(t.toPrecision(12))}function NS(t){return Math.floor(1e6*t)/1e6}function MS(t){return null==t?null:String(t)}function TS(t){return t+"px"}function OS(t){return null==t||Number.isNaN(t)||""===t}function RS(t){return t<10?"0"+t:String(t)}function DS(t){return t<10?"00"+t:t<100?"0"+t:String(t)}function BS(t,e){var i={};return i[t]=e,i}function FS(t,e,i){var n,r=!1;if(null==t){if(e)return null;n=i||0,r=!0}else if("string"==typeof t){var o=t.trim();if(0===o.length?n=NaN:o.charCodeAt(o.length-1)===CS?n=1===o.length?NaN:parseFloat(o):(n=parseFloat(o),r=!0),isNaN(n)){if(e)return null;XS(gS.invalidSizeValue,t)}}else if(n=+t,isNaN(n)){if(e)return null;n=i||0,r=!0}else r=!0;return{size:n,fixed:r}}function IS(t,e){return FS(t,!0)||FS(e,!1)}function jS(t,e,i){return void 0===i&&(i=NaN),t?t.fixed?t.size:t.size*e/100:i}var $S="fill",zS={fill:"fill",fillOpacity:"fill-opacity",stroke:"stroke",strokeWidth:"stroke-width",strokeDasharray:"stroke-dasharray",fontFamily:"font-family",fontSize:"font-size",fontWeight:"font-weight",fontStyle:"font-style",padding:"padding",margin:"margin"},HS=function(t){var e=zS[t];if(!e){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return zS[t]=i,i}return e};!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Fx(e,t),e.check=function(t){if(t instanceof e)return!0;throw t}}(Error);var GS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(Error),WS=function(t,e){if(!t)throw new GS(e)};!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Fx(e,t)}(Error);var YS,XS=function(t,e){throw new Error(function(t,e){return t.replace("%1",e)}(t,e))},US=function(t,e,i,n,r,o,s){var a,u;if(void 0===n&&(n=!0),void 0===r&&(r=!0),void 0===o&&(o=!1),n&&(e=-Number.MAX_VALUE,i=Number.MAX_VALUE),Yx(t))a=[],t.forEach((function(t){if(Wx(t)&&Ux(t.color)){var n={fromValue:uS(t.fromValue,u?u.toValue:e),toValue:uS(t.toValue,i),color:t.color,style:t.style?Jx({},t.style):xS};n.fromValue<n.toValue&&(a.push(n),u=n)}})),a=a.sort((function(t,e){return t.fromValue-e.fromValue})).filter((function(t){return t.toValue>=e&&t.fromValue<i})),r&&a.forEach((function(t){t.fromValue=sS(t.fromValue,e),t.toValue=oS(t.toValue,i)}));else if(Wx(t)&&Yx(t.colors)&&t.colors.length>0){var l=t.colors,h=Yx(t.styles)?t.styles:null;if(a=[],Yx(t.steps)&&t.steps.length>0){var p=Yx(t.steps)?t.steps:null;e<p[0]&&p.unshift(e),i>p[p.length-1]&&p.push(i);for(var c=0;c<p.length-1;c++)a.push({fromValue:p[c],toValue:p[c+1],color:l[oS(c,l.length-1)],style:h?h[oS(c,h.length-1)]:xS})}else{var f=uS(t.fromValue,e),_=uS(t.toValue,i),d=(_-f)/l.length;for(c=0;f<_;)a.push({fromValue:f,toValue:f+=d,color:l[oS(c,l.length-1)],style:h?h[oS(c,h.length-1)]:xS}),c++}}if(o&&a&&a.length>0){c=0;for(var y=e;c<a.length;)a[c].fromValue>y&&a.splice(c,0,{fromValue:y,toValue:a[c].fromValue,color:s}),y=a[c].toValue,c++;a[c-1].toValue<i&&a.push({fromValue:a[c-1].toValue,toValue:i,color:s})}return a},qS="vertical-lr",ZS="vertical-rl",KS=function(t){return t&&"object"==typeof t},JS=function(t){function e(e,i){var n=t.call(this)||this;return n._rows=[],n.$_buildOptions(e||{}),Yx(i)&&i.forEach((function(t){return n._rows.push(n.$_readRow(t))})),n}return Fx(e,t),e.prototype.$_buildOptions=function(t){var e,i=t.fields;e=Yx(i)?i.slice():Ux(i)?[i]:["x","y","z"],this._fields=e,this._field=t.field||"y",this._fieldMap={};for(var n=0;n<e.length;n++)this._fieldMap[e[n]]=n},Object.defineProperty(e.prototype,"rowCount",{get:function(){return this._rows.length},enumerable:!1,configurable:!0}),e.prototype._internalValues=function(){return this._rows},e.prototype.$_readRow=function(t){var e={};if(Yx(t))for(var i=0;i<this._fields.length;i++)e[this._fields[i]]=t[i];else KS(t)?Object.assign(e,t):e[this._field]=t;return e},e.prototype.getValue=function(t,e){return this._checkRow(t),this._rows[t][e]},e.prototype.setValue=function(t,e,i){this._checkRow(t);var n=this._rows[t],r=n[e];i!==r&&(n[e]=i,this._rows[t]=n,this._fireEvent("onDataValueChanged",t,e,i,r),this._changed())},e.prototype.getValues=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=-1);var n=this._rows,r=[];(isNaN(e)||e<0)&&(e=0),(isNaN(i)||i<0||i>n.length)&&(i=n.length);for(var o=e;o<i;o++)r.push(n[o][t]);return r},e.prototype.getRow=function(t){return this._checkRow(t),Object.assign({},this._rows[t])},e.prototype.addRow=function(t,e){isNaN(e)||e<0?e=this._rows.length:this._checkRow(e),this._rows.splice(e,0,t),this._fireEvent("onDataRowAdded",e),this._changed()},e.prototype.deleteRow=function(t){(isNaN(t)||t<0)&&(t=this._rows.length-1),this._checkRow(t);var e=this._rows[t];this._rows.splice(t,1),this._fireEvent("onDataRowDeleted",t,e),this._changed()},e.prototype._checkRow=function(t){(t<0||t>this._rows.length)&&XS(gS.invalidRowIndex,t)},e.prototype._changed=function(){this._fireEvent("onDataChanged")},e}(wS),QS=function(){function t(){this._map={}}return t.prototype.get=function(t){return this._map[t]},t.prototype.load=function(t){for(var e in t){var i=t[e],n=void 0;Yx(i)?n=new JS({},i):KS(i)&&Yx(i.values)&&(n=new JS(i.options,i.values)),this._map[e]=n}},t}(),tP="0".charCodeAt(0),eP="#".charCodeAt(0),iP=",".charCodeAt(0),nP="s".charCodeAt(0),rP="a".charCodeAt(0),oP=function(){function t(t){t=t.trim(),this._options=t?this.$_parse(this._format=t):{useGrouping:!1}}return t.getFormatter=function(e){var i=t.Formatters[e];return i||(t.Formatters[e]=i=new t(e)),i},Object.defineProperty(t,"Default",{get:function(){return t.getFormatter(t.DEFAULT_FORMAT)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this._format},enumerable:!1,configurable:!0}),t.prototype.toStr=function(t){return t.toLocaleString(void 0,this._options)},t.prototype.$_parse=function(t){var e=t.length;if(e>0){var i={useGrouping:!1,minimumIntegerDigits:0,minimumFractionDigits:0,maximumFractionDigits:0},n=t.indexOf(".");if(n>=0){for(var r=n+1;r<e&&t.charCodeAt(r)===tP;)i.minimumFractionDigits++,r++;for(i.maximumFractionDigits=i.minimumFractionDigits;r<e&&t.charCodeAt(r)===eP;)i.maximumFractionDigits++,r++;n-=1}else n=e-1;for(var o=n;o>=0&&t.charCodeAt(o)===tP;)i.minimumIntegerDigits++,o--;for(;o>=0;){if(t.charCodeAt(o--)===iP){i.useGrouping=!0;break}}for(o=n;o>=0;){if(t.charCodeAt(o--)===nP){i.signDisplay="always";break}}if(!i.signDisplay)for(o=n;o>=0;){if(t.charCodeAt(o--)===rP){i.signDisplay="never";break}}return i.minimumIntegerDigits=sS(1,i.minimumIntegerDigits),i}},t.DEFAULT_FORMAT="",t.Formatters={},t}(),sP=["yy","yyyy","M","MM","d","dd","WW","W","w","ww","a","H","HH","h","hh","m","mm","s","ss","S","SS","SSS"],aP=[".","/","-",":"],uP="Z".charCodeAt(0),lP="z".charCodeAt(0),hP="A".charCodeAt(0),pP="a".charCodeAt(0),cP="y".charCodeAt(0),fP="M".charCodeAt(0),_P="m".charCodeAt(0),dP="W".charCodeAt(0),yP="w".charCodeAt(0),gP="d".charCodeAt(0),vP="H".charCodeAt(0),mP="h".charCodeAt(0),bP="S".charCodeAt(0),wP="s".charCodeAt(0),xP=function(){function t(t){this._baseYear=2e3,this._preserveTime=!1,this._hasAmPm=!1,this._formatString="",this.formatString=t}return t.getFormatter=function(e){var i=t.Formatters[e];return i||(t.Formatters[e]=i=new t(e)),i},Object.defineProperty(t,"Default",{get:function(){return t.getFormatter(gS.dateFormat)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this._format},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatString",{get:function(){return this._formatString},set:function(t){(t=t||gS.dateFormat)!=this._formatString&&(this._tokens=[],this.parse(t),this._formatString=t)},enumerable:!1,configurable:!0}),t.prototype.toStr=function(t,e){if(!this._tokens)return"";for(var i=this._tokens,n="",r=0,o=i.length;r<o;r++){var s=i[r],a=s.length;switch(s.charCodeAt(0)){case cP:n+=a>2?t.getFullYear():RS(t.getFullYear()%100);break;case fP:n+=a>1?RS(t.getMonth()+1):t.getMonth()+1;break;case gP:n+=a>1?RS(t.getDate()):t.getDate();break;case dP:n+=a>1?RS(_S.weekOfYear(t,e)+1):_S.weekOfMonth(t,e,!0)+1;break;case yP:n+=a>1?_S.long_week_days[t.getDay()]:_S.week_days[t.getDay()];break;case vP:n+=a>1?RS(t.getHours()):t.getHours();break;case mP:if(this._hasAmPm){var u=t.getHours();0==u?u=12:u>12&&(u-=12),n+=a>1?RS(u):u}else n+=a>1?RS(t.getHours()):t.getHours();break;case _P:n+=a>1?RS(t.getMinutes()):t.getMinutes();break;case wP:n+=a>1?RS(t.getSeconds()):t.getSeconds();break;case pP:case hP:t.getHours()<12?n+=gS.am:n+=gS.pm;break;case bP:var l=t.getMilliseconds();n+=3==a?DS(l):2==a?RS(l):l.toString().substring(0,a);break;default:n+=s}}return n},t.prototype.parseDateFormatTokens=function(t){var e=[];if(t)for(var i=t.trim(),n=i.length,r=0;r<n;){var o=i.charAt(r);if(aP.indexOf(o)>=0)e.push(o),r++;else{for(var s=r++;r<n&&i.charAt(r)==o;)r++;if(o=i.substring(s,r),sP.indexOf(o)<0){var a=o.charCodeAt(0);(a>=hP&&a<=uP||a>=pP&&a<=lP)&&XS(gS.invalidDateFormat,t)}e.push(o)}if(r<n&&_S.isWhiteSpace(o=i.charAt(r)))for(e.push(o);r<n&&_S.isWhiteSpace(i.charAt(r));)r++}return e},t.prototype.parse=function(t){t&&(this._format=t||gS.dateFormat,this._tokens=this.parseDateFormatTokens(this._format),this._hasAmPm=this._tokens.indexOf("a")>=0||this._tokens.indexOf("A")>=0)},t.Formatters={},t}(),SP=function(){function t(){}return t.clearChildren=function(t){for(var e;e=t.lastChild;)t.removeChild(e)},t.remove=function(t){var e=t&&t.parentElement;return e&&e.removeChild(t),null},t.htmlEncode=function(t){return document.createElement("a").appendChild(document.createTextNode(t)).parentNode.innerHTML},t.setImportantStyle=function(t,e,i){t.setProperty(e,i,"important")},t.getPadding=function(t){var e=getComputedStyle(t);return{left:parseFloat(e.paddingLeft)||0,right:parseFloat(e.paddingRight)||0,top:parseFloat(e.paddingTop)||0,bottom:parseFloat(e.paddingBottom)||0}},t}();!function(t){t.Developer="developer",t.Evaluation="evaluation",t.Limited="limited",t.Enterprise="enterprise"}(YS||(YS={}));var PP={name:"RealChart",version:"1.1.1",license:"enterprise",code:""},VP=function(){function t(){}return t.decode=function(e){for(var i=t.CHARS,n=t.PAD,r=e.split(""),o=[],s=r.length;r[--s]==n;);for(var a=0;a<s;){var u=i.indexOf(r[a++])<<18;a<=s&&(u|=i.indexOf(r[a++])<<12),a<=s&&(u|=i.indexOf(r[a++])<<6),a<=s&&(u|=i.indexOf(r[a++])),o.push(u>>>16&255),o.push(u>>>8&255),o.push(255&u)}for(;0==o[o.length-1];)o.pop();return o},t.PAD="=",t.CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t}(),kP=function(){function t(){}return t.union=function(t,e){var i=e.s3[255&t];t>>=8;var n=e.s2[255&t];t>>=8;var r=e.s1[255&t];t>>=8;var o=e.s0[255&t],s=(o>>16)+(r>>16)+((65535&o)+(65535&r)>>16)<<16|(65535&o)+(65535&r)&65535;return((s=(s>>16^n>>16)<<16|65535&(65535&s^65535&n))>>16)+(i>>16)+((65535&s)+(65535&i)>>16)<<16|(65535&s)+(65535&i)&65535},t.xor=function(t,e){return(t>>16^e>>16)<<16|65535&(65535&t^65535&e)},t._encryptBlock=function(e,i){var n=t.xor,r=t.union,o=e.left,s=e.right;o=n(o,i.p[0]),s=n(s,n(r(o,i),i.p[1])),o=n(o,n(r(s,i),i.p[2])),s=n(s,n(r(o,i),i.p[3])),o=n(o,n(r(s,i),i.p[4])),s=n(s,n(r(o,i),i.p[5])),o=n(o,n(r(s,i),i.p[6])),s=n(s,n(r(o,i),i.p[7])),o=n(o,n(r(s,i),i.p[8])),s=n(s,n(r(o,i),i.p[9])),o=n(o,n(r(s,i),i.p[10])),s=n(s,n(r(o,i),i.p[11])),o=n(o,n(r(s,i),i.p[12])),s=n(s,n(r(o,i),i.p[13])),o=n(o,n(r(s,i),i.p[14])),s=n(s,n(r(o,i),i.p[15])),o=n(o,n(r(s,i),i.p[16])),e.right=o,e.left=n(s,i.p[17])},t._decryptBlock=function(e,i){var n=t.xor,r=t.union,o=e.left,s=e.right;o=n(o,i.p[17]),s=n(s,n(r(o,i),i.p[16])),o=n(o,n(r(s,i),i.p[15])),s=n(s,n(r(o,i),i.p[14])),o=n(o,n(r(s,i),i.p[13])),s=n(s,n(r(o,i),i.p[12])),o=n(o,n(r(s,i),i.p[11])),s=n(s,n(r(o,i),i.p[10])),o=n(o,n(r(s,i),i.p[9])),s=n(s,n(r(o,i),i.p[8])),o=n(o,n(r(s,i),i.p[7])),s=n(s,n(r(o,i),i.p[6])),o=n(o,n(r(s,i),i.p[5])),s=n(s,n(r(o,i),i.p[4])),o=n(o,n(r(s,i),i.p[3])),s=n(s,n(r(o,i),i.p[2])),o=n(o,n(r(s,i),i.p[1])),e.right=o,e.left=n(s,i.p[0])},t._init=function(e){var i,n,r,o=e.split("").map((function(t){return 255&t.charCodeAt(0)})),s=t.kb,a=t._encryptBlock,u=0,l=0,h={left:0,right:0},p={p:s.p.slice(0).map((function(e){var i,n=o.length;for(i=0;i<4;i++)l=l*t.POW8|o[u++%n];return(e>>16^l>>16)<<16|65535&(65535&e^65535&l)})),s0:s.s0.slice(0),s1:s.s1.slice(0),s2:s.s2.slice(0),s3:s.s3.slice(0)};for(i=0,r=p.p.length;i<r;)a(h,p),p.p[i++]=h.left,p.p[i++]=h.right;for(i=0;i<4;i++)for(n=0,r=p["s"+i].length;n<r;)a(h,p),p["s"+i][n++]=h.left,p["s"+i][n++]=h.right;return p},t.decrypt=function(e,i){for(var n=t._decryptBlock,r=t._init(i),o=[],s=VP.decode(e),a=s.length>>3,u=0,l={left:null,right:null},h=0;h<a;h++){l.left=s[u]*t.POW24|s[u+1]*t.POW16|s[u+2]*t.POW8|s[u+3],l.right=s[u+4]*t.POW24|s[u+5]*t.POW16|s[u+6]*t.POW8|s[u+7],n(l,r);var p=l.left,c=l.right;o.push(p>>24&255),o.push(p>>16&255),o.push(p>>8&255),o.push(255&p),o.push(c>>24&255),o.push(c>>16&255),o.push(c>>8&255),o.push(255&c),u+=8}if(o[o.length-1]==o[o.length-2]||1==o[o.length-1]){var f=o[o.length-1];o.splice(o.length-f,f)}return String.fromCharCode.apply(null,o)},t.POW2=Math.pow(2,2),t.POW3=Math.pow(2,3),t.POW4=Math.pow(2,4),t.POW8=Math.pow(2,8),t.POW16=Math.pow(2,16),t.POW24=Math.pow(2,24),t.kb={p:[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s0:[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],s1:[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],s2:[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],s3:[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462],k:[202,218,204,100]},t}(),AP=function(){function t(){}return t.eqaulsUpperDomain=function(t,e){return t==e||0===t.indexOf("*")&&(t=t.substr(1,t.length-1),e.substr(e.indexOf(t),t.length)==t)},t._getLDKey=function(t){for(var e="",i=0,n=t.length;i<n;i++)e+=String.fromCharCode(t[i]>>1);return e},t.includedDomains=function(t,e,i){for(var n=t.split(","),r=0,o=n.length;r<o;r++){var s=n[r];if(this.eqaulsUpperDomain(s,e))return!0;if(i&&s&&"*"===s[0]&&"*."!==s.substring(0,2))if(new RegExp("^/"+s.substring(1)+"/").exec(i))return!0}return!1},t.decrypt=function(t){for(var e={},i=kP.decrypt(t,"dkdl"+this._getLDKey(kP.kb.k)).split(";"),n=0,r=i.length;n<r;n++){var o=i[n].split("="),s=o[0],a=o[1];a&&a.length>0&&(e[s]=a)}return e},t}(),CP=function(t){function e(i,n,r){var o=t.call(this)||this;return o._inited=!1,o._testing=!1,o._dirty=!0,o._toAnimation=0,o._invalidateLock=!1,o._lockDirty=!1,o._cssVars={},o.loaded=!1,o._windowResizeHandler=function(t){o._windowResized()},o._clickHandler=function(t){o._pointerHandler&&o._pointerHandler.handleClick(o.toOffset(t))},o._dblClickHandler=function(t){o._pointerHandler&&o._pointerHandler.handleDblClick(o.toOffset(t))},o._touchMoveHandler=function(t){},o._pointerDownHandler=function(t){o._pointerHandler&&o._pointerHandler.handleDown(o.toOffset(t))},o._pointerMoveHandler=function(t){o._pointerHandler&&o._pointerHandler.handleMove(o.toOffset(t))},o._pointerUpHandler=function(t){o._pointerHandler&&o._pointerHandler.handleUp(o.toOffset(t))},o._pointerCancelHandler=function(t){},o._pointerLeaveHandler=function(t){},o._keyPressHandler=function(t){},o._wheelHandler=function(t){},function(){var t,e=location.hostname,i="RealChart를 사용하려면 도움말을 참조하세요.\nhttps://www.realchart.co.kr/";try{if(!(t=window.realChartLic))throw new Error(i)}catch(t){throw new Error(i)}var n=AP.decrypt(t);if("RealChart"!==n.name||"RealChart"!==PP.name)throw new Error(i);try{var r=n.server.toLowerCase(),o=location.pathname.toLowerCase();if(PP.license!=YS.Developer&&!AP.includedDomains(r,e.toLowerCase(),o))throw new Error(i);var s=n.lic.toLowerCase();if(!Object.values(YS).includes(s))throw new Error(i);if(PP.code=n.code,PP.license=n.lic,s==YS.Evaluation||s==YS.Limited){var a=n.expire.split(".").map((function(t){return parseInt(t)})),u=new Date(a[0],a[1],a[2],23,59,59,999);if(new Date>u)throw new Error("라이선스가 만료되었습니다.")}}catch(t){throw new Error(i)}}(),!i&&n instanceof HTMLDivElement&&(i=n.ownerDocument),o._initControl(i||document,n,r||e.CLASS_NAME),o._resigterEventHandlers(o._dom),o._inited=!0,o.invalidate(!0),o}return Fx(e,t),e.prototype._doDestroy=function(){this._unresigterEventHandlers(this._dom),SP.remove(this._dom),this._dom=null,this._container=null},e.prototype.isInited=function(){return this._inited},e.prototype.isTesting=function(){return this._testing},e.prototype.doc=function(){return this._dom.ownerDocument},e.prototype.dom=function(){return this._dom},e.prototype.svg=function(){return this._svg},e.prototype.width=function(){return this._container.offsetWidth},e.prototype.height=function(){return this._container.offsetHeight},e.prototype.contentWidth=function(){return this.width()-this._padding.left-this._padding.right},e.prototype.contentHeight=function(){return this.height()-this._padding.top-this._padding.bottom},e.prototype.contentRight=function(){return this.width()-this._padding.right},e.prototype.clipContainer=function(){return this._defs},e.prototype.setData=function(t,e,i){OS(e)?(this._root.dom.removeAttribute("data-"+t),i&&this._dom.removeAttribute("data-"+t)):(this._root.dom.setAttribute("data-"+t,e),i&&this._dom.setAttribute("data-"+t,e))},e.prototype.clearDefs=function(){SP.clearChildren(this._defs)},e.prototype.$_clearDefs=function(t){for(var e=this._defs.children||[],i=e.length-1;i>=0;i--)e[i].hasAttribute(t)&&e[i].remove()},e.prototype.clearAssetDefs=function(){this.$_clearDefs(EP.ASSET_KEY)},e.prototype.clearTemporaryDefs=function(){this.$_clearDefs(EP.TEMP_KEY)},e.prototype.appendDom=function(t){t&&this._htmlRoot.append(t)},e.prototype.addElement=function(t){t&&this._root.add(t)},e.prototype.setPointerHandler=function(t){this._pointerHandler=t},e.prototype.invalidate=function(t){void 0===t&&(t=!1),t||!this._invalidateLock&&!this._dirty&&this._inited?(this._dirty=!0,this._requestTimer||this._testing||this.$_requestRender()):this._invalidateLock&&(this._lockDirty=!0)},e.prototype.invalidateLayout=function(t){void 0===t&&(t=!1),this.invalidate(t)},e.prototype.setLock=function(){this._invalidateLock=!0},e.prototype.releaseLock=function(t){void 0===t&&(t=!0),this._invalidateLock&&(this._invalidateLock=!1),this._lockDirty&&t&&this.invalidate(),this._lockDirty=!1},e.prototype.lock=function(t){this.setLock();try{t(this)}finally{this.releaseLock()}},e.prototype.silentLock=function(t){this.setLock();try{t(this)}finally{this.releaseLock(!1)}},e.prototype.getBounds=function(){return this._dom.getBoundingClientRect()},e.prototype.setAnimation=function(t){this._toAnimation=t||0},e.prototype.fling=function(t,e){},e.prototype.getCssVar=function(t){var e=this._cssVars[t];return t in this._cssVars?this._cssVars[t]:(e=getComputedStyle(this._root.dom).getPropertyValue(t),this._cssVars[t]=e,e)},e.prototype.clipBounds=function(t,e,i,n,r){void 0===t&&(t=NaN),void 0===e&&(e=NaN),void 0===i&&(i=NaN),void 0===n&&(n=NaN),void 0===r&&(r=0);var o=new TP(this.doc(),t,e,i,n,r,r);return this._defs.appendChild(o.dom),o},e.prototype.clipCircle=function(){var t=new FP(this.doc());return this._defs.appendChild(t.dom),t},e.prototype.addDef=function(t){this._defs.appendChild(t)},e.prototype.removeDef=function(t){if(Ux(t))for(var e in this._defs.children)if(e instanceof Element&&e.id===t){t=e;break}t instanceof Element&&this._defs.removeChild(t)},e.prototype.containerToElement=function(t,e,i){var n=this._container.getBoundingClientRect(),r=t.getBounds();return{x:e-r.x+n.x,y:i-r.y+n.y}},e.prototype.svgToElement=function(t,e,i){var n=this._svg.getBoundingClientRect(),r=t.getBounds();return{x:e-r.left+n.left,y:i-r.top+n.top}},e.prototype.elementToSvg=function(t,e,i){var n=this._svg.getBoundingClientRect(),r=t.getBounds();return{x:e+r.left-n.left,y:i+r.top-n.top}},e.prototype._setTesting=function(){this._testing=!0,EP.TESTING=!0},e.prototype._setSize=function(t,e){isNaN(t)||(this._container.style.width=t+"px"),isNaN(e)||(this._container.style.height=e+"px")},e.prototype.$_addListener=function(t,e,i){t.addEventListener(e,i)},e.prototype._resigterEventHandlers=function(t){window.addEventListener("resize",this._windowResizeHandler),this.$_addListener(t,"click",this._clickHandler),this.$_addListener(t,"dblclick",this._dblClickHandler),this.$_addListener(t,"touchmove",this._touchMoveHandler),this.$_addListener(t,"pointerdown",this._pointerDownHandler),this.$_addListener(t,"pointermove",this._pointerMoveHandler),this.$_addListener(t,"pointerup",this._pointerUpHandler),this.$_addListener(t,"pointercancel",this._pointerCancelHandler),this.$_addListener(t,"pointerleave",this._pointerLeaveHandler),this.$_addListener(t,"keypress",this._keyPressHandler),this.$_addListener(t,"wheel",this._wheelHandler)},e.prototype._unresigterEventHandlers=function(t){window.removeEventListener("resize",this._windowResizeHandler),t.removeEventListener("click",this._clickHandler),t.removeEventListener("dblclick",this._dblClickHandler),t.removeEventListener("touchmove",this._touchMoveHandler),t.removeEventListener("pointerdown",this._pointerDownHandler),t.removeEventListener("pointermove",this._pointerMoveHandler),t.removeEventListener("pointerup",this._pointerUpHandler),t.removeEventListener("pointercancel",this._pointerCancelHandler),t.removeEventListener("pointerleave",this._pointerLeaveHandler),t.removeEventListener("keypress",this._keyPressHandler),t.removeEventListener("wheel",this._wheelHandler)},e.prototype._prepareRenderers=function(t){},e.prototype._initControl=function(t,e,i){if(!this._inited){e instanceof HTMLDivElement?this._container=e:this._container=t.getElementById(e),this._container instanceof HTMLDivElement||XS(gS.invalidOuterDiv,e);var n=this._container.ownerDocument,r=this._dom=n.createElement("div");Jx(r.style,{position:"relative",width:"100%",height:"100%",boxSizing:"border-box",overflow:"hidden","-webkit-touch-callout":"none","-webkit-user-select":"none","user-select":"none","-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"}),r.className=i,this._container.appendChild(r);var o=this._svg=n.createElementNS(Hx,"svg");o.classList.add("rct-svg"),o.style.setProperty("overflow","visible","important"),o.setAttribute("width","100%"),o.setAttribute("height","100%");var s=n.createElement("desc");s.textContent="Created by RealChart v1.1.1",o.appendChild(s);var a=this._defs=n.createElementNS(Hx,"defs");this._initDefs(n,a),o.appendChild(a),r.appendChild(o),this._root=new NP(this),o.appendChild(this._root._dom),this._htmlRoot=n.createElement("div"),r.appendChild(this._htmlRoot),Jx(this._htmlRoot.style,{position:"absolute"})}},e.prototype._initDefs=function(t,i){var n=t.createElementNS(Hx,"filter");n.setAttribute("id",e.SHADOW_FILTER);var r=t.createElementNS(Hx,"feGaussianBlur");r.setAttribute("stdDeviation","1.5"),r.setAttribute("in","SourceAlpha"),n.appendChild(r);var o=t.createElementNS(Hx,"feOffset");o.setAttribute("dx","1"),o.setAttribute("dy","1"),o.setAttribute("result","offsetblur"),n.appendChild(o);var s=t.createElementNS(Hx,"feFlood");s.setAttribute("flood-color","#000"),n.appendChild(s);var a=t.createElementNS(Hx,"feComposite");a.setAttribute("in2","offsetblur"),a.setAttribute("operator","in"),n.appendChild(a);var u=t.createElementNS(Hx,"feMerge"),l=t.createElementNS(Hx,"feMergeNode"),h=t.createElementNS(Hx,"feMergeNode");h.setAttribute("in","SourceGraphic"),u.appendChild(l),u.appendChild(h),n.appendChild(u),i.appendChild(n)},e.prototype._render=function(){this.$_render()},e.prototype.$_requestRender=function(){var t=this;window.requestAnimationFrame?this._requestTimer=window.requestAnimationFrame((function(){return t.$_render()})):setTimeout((function(){t.$_render()}),0)},e.prototype.updateNow=function(){this.$_render()},e.prototype.$_render=function(){if(+new Date<=this._toAnimation)this.$_requestRender();else{_S.LOGGING&&console.time("render chart");try{this._doBeforeRender();var t=this._dom.getBoundingClientRect(),e=this._svg.getBoundingClientRect(),i=this._svg.clientWidth,n=this._svg.clientHeight;Jx(this._htmlRoot.style,{left:TS(e.left-t.left),top:TS(e.top-t.top)}),this._doRenderBackground(this._container.firstElementChild,this._root,i,n);var r=this._padding=SP.getPadding(this._root.dom);this._doRender({x:r.left,y:r.top,width:i-r.left-r.right,height:n-r.top-r.bottom})}finally{this.loaded=!0,this._dirty=!1,this._requestTimer=null,this._doAfterRender(),_S.LOGGING&&console.timeEnd("render chart")}}},e.prototype._doBeforeRender=function(){},e.prototype._doAfterRender=function(){},e.prototype._doRenderBackground=function(t,e,i,n){},e.prototype._windowResized=function(){this.invalidateLayout()},e.prototype.toOffset=function(t){var e=this._container.getBoundingClientRect();return t.pointX=t.clientX-e.left,t.pointY=t.clientY-e.top,t},e.prototype.setPointerCapture=function(t){this._dom.setPointerCapture(t.pointerId)},e.prototype.releasePointerCapture=function(t){this._dom.releasePointerCapture(t.pointerId)},e.CLASS_NAME="rct-control",e.SHADOW_FILTER="rr-chart-shadow-filter",e._animatable=!0,e}(bS),EP=function(t){function e(e,i,n){void 0===n&&(n=xS);var r=t.call(this)||this;return r._visible=!0,r._zIndex=0,r._scaleX=1,r._scaleY=1,r._rotation=0,r._styles={},r._styleDirty=!1,r._dom=e.createElementNS(Hx,n||"g"),(r._styleName=i||"")&&r.setAttr("class",r._styleName),r}return Fx(e,t),e.prototype._doDestroy=function(){this.remove()},Object.defineProperty(e.prototype,"doc",{get:function(){return this._dom.ownerDocument},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dom",{get:function(){return this._dom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this._parent&&this._parent.control},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zIndex",{get:function(){return this._zIndex},set:function(t){t!==this._zIndex&&(this._zIndex=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(t){t!==this._x&&(this._x=t,this.setAttr("x",this._x))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tx",{get:function(){return this._tx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(t){t!==this._y&&(this._y=t,this.setAttr("y",this._y))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ty",{get:function(){return this._ty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){t!==this._width&&(this._width=t,this.setAttr("width",isNaN(t)?"":t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){t!==this._height&&(this._height=t,this.setAttr("height",isNaN(t)?"":t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(t){this.setVis(t)},enumerable:!1,configurable:!0}),e.prototype.setVis=function(t){return t!==this._visible&&(this._visible=t,this._dom&&(this._dom.style.display=this._visible?"":"none")),this._visible},Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){t!=this._rotation&&(this._rotation=t,this._updateTransform())},enumerable:!1,configurable:!0}),e.prototype.setRotation=function(t,e,i){return t===this._originX&&e===this._originY&&i===this._rotation||(this._originX=t,this._originY=e,this._rotation=i,this._updateTransform()),this},e.prototype.getStyle=function(t){return window.getComputedStyle(this._dom).getPropertyValue(t)},e.prototype.hasStyle=function(t){return this.dom.classList.contains(t)},e.prototype.add=function(t){return t&&t._parent!==this&&(t._parent=this,this._dom.appendChild(t._dom),t._doAttached(this)),t},e.prototype.insertChild=function(t,e){return t&&t._parent!==this&&(t._parent=this,this._dom.insertBefore(t._dom,e._dom),t._doAttached(this)),t},e.prototype.insertAfter=function(t,e){return t&&t._parent!==this&&(t._parent=this,e._dom.nextSibling?this._dom.insertBefore(t._dom,e._dom.nextSibling):this._dom.appendChild(t._dom),t._doAttached(this)),t},e.prototype.insertFirst=function(t){return t&&t._parent!==this&&(t._parent=this,this._dom.insertBefore(t._dom,this._dom.firstChild),t._doAttached(this)),t},e.prototype.appendElement=function(t,e){var i=t.createElementNS(Hx,e);return this._dom.appendChild(i),i},e.prototype.insertElement=function(t,e,i){var n=t.createElementNS(Hx,e);return this._dom.insertBefore(n,i),n},e.prototype.remove=function(){return this._parent&&(this._parent._dom.removeChild(this._dom),this._parent=null,this._doDetached(this)),this},e.prototype.getAttr=function(t){return this._dom.getAttribute(t)},e.prototype.setAttr=function(t,e){return this._dom.setAttribute(t,e),this},e.prototype.setAttrEx=function(t,e){return OS(e)?this._dom.removeAttribute(t):this._dom.setAttribute(t,e),this},e.prototype.setAttrs=function(t){for(var e in t)this._dom.setAttribute(e,t[e]);return this},e.prototype.unsetAttr=function(t){return this._dom.removeAttribute(t),this},e.prototype.getBounds=function(){return this._dom.getBoundingClientRect()},e.prototype.setBounds=function(t,e,i,n){return this.trans(t,e),this.resize(i,n),this},e.prototype.setRect=function(t){return this.trans(t.x,t.y),this.resize(t.width,t.height),this},e.prototype.getRect=function(){return{x:this._tx,y:this._ty,width:this.width,height:this.height}},e.prototype.getSize=function(){return{width:this.width,height:this.height}},e.prototype.getBBox=function(){return this._dom.getBBox()},e.prototype.controlToElement=function(t,e){return this.control.containerToElement(this,t,e)},e.prototype.svgToElement=function(t,e){return this.control.svgToElement(this,t,e)},e.prototype.elementToSvg=function(t,e){return this.control.elementToSvg(this,t,e)},e.prototype.move=function(t,e){return this.x=t,this.y=e,this},e.prototype.setPos=function(t,e){this._x=t,this._y=e},e.prototype.isDomAnimating=function(){return!!this._dom.getAnimations&&this._dom.getAnimations().length>0},e.prototype.rotate=function(t){return t!==this._rotation&&(this._rotation=t,this._updateTransform()),this},e.prototype.internalRotate=function(t){this._rotation=t},e.prototype.scale=function(t){return this._scaleX===t&&this._scaleY===t||(this._scaleX=this._scaleY=t,this._updateTransform()),this},e.prototype.trans=function(t,e){return t===this._tx&&e===this._ty||(_S.isValidNum(t)&&(this._tx=t),_S.isValidNum(e)&&(this._ty=e),this._updateTransform()),this},e.prototype.transp=function(t){return this.trans(t.x,t.y)},e.prototype.transEx=function(t,e,i,n){var r=this;if(void 0===i&&(i=0),void 0===n&&(n=!0),t=_S.isNumber(t)?t:this._tx,e=_S.isNumber(e)?e:this._ty,t!==this._tx||e!==this._ty){if(i>0){var o=this._dom.animate([{transform:"translate(".concat(this._tx,"px,").concat(this._ty,"px)")},{transform:"translate(".concat(t,"px,").concat(e,"px)")}],{duration:i,fill:"none"});n&&(null==o||o.addEventListener("finish",(function(){var t;return null===(t=r.control)||void 0===t?void 0:t.invalidateLayout()})))}this._tx=t,this._ty=e,this._updateTransform()}return this},e.prototype.transX=function(t){return t!==this._tx&&_S.isValidNum(t)&&(this._tx=t,this._updateTransform()),this},e.prototype.transY=function(t){return t!==this._ty&&_S.isValidNum(t)&&(this._ty=t,this._updateTransform()),this},e.prototype.resize=function(t,e,i){void 0===i&&(i=!0);var n=!1;return t!==this._width&&(this._width=Math.max(0,t),i&&this.setAttrEx("width",this._width),n=!0),e!==this._height&&(this._height=Math.max(0,e),i&&this.setAttrEx("height",this._height),n=!0),n},e.prototype.appendDom=function(t){return t&&this._dom.appendChild(t),t},e.prototype.insertDom=function(t,e){return t&&this._dom.insertBefore(t,e),t},e.prototype.clearDom=function(){for(var t,e=this._dom;t=e.lastChild;)e.removeChild(t)},e.prototype.saveStyles=function(){this._saveStyle=this._dom.getAttribute("style")||null,this._saveClass=this._dom.getAttribute("class")},e.prototype.restoreStyles=function(){this._saveStyle!==xS&&(this._dom.setAttribute("style",this._saveStyle),delete this._saveStyle),this._saveClass&&(this._dom.setAttribute("class",this._saveClass),delete this._saveClass)},e.prototype.internalClearStyles=function(){var t=this.dom.style;for(var e in this._styles)t.removeProperty(HS(e));this._styles={}},e.prototype.clearStyles=function(){var t=this.dom.style,e=!1;for(var i in this._styles)t.removeProperty(HS(i)),e=!0;return this._styles={},e&&(this._styleDirty=!0),e},e.prototype.clearStyle=function(t){var e,i,n=!1;if(t){var r=this.dom.style;try{for(var o=jx(t),s=o.next();!s.done;s=o.next()){var a=s.value;a in this._styles&&(r.removeProperty(HS(a)),delete this._styles[a],n=!0)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}n&&(this._styleDirty=!0)}return n},e.prototype.internalSetStyles=function(t){if(t){var e=this.dom.style;for(var i in t)e[i]=this._styles[i]=t[i]}},e.prototype.internalImportantStylesOrClass=function(t){if(Ux(t))t&&this._dom.classList.add(t);else if(Wx(t)){var e=this.dom.style;for(var i in t)e.setProperty(HS(i),this._styles[i]=t[i],"important")}},e.prototype.setStyles=function(t){var e=!1;if(t){var i=this.dom.style;for(var n in t){var r=t[n];this._styles[n]!==r&&(this._styles[n]=r,"rx"==n?this._dom.setAttribute(n,r):i[n]=r,e=!0)}e&&(this._styleDirty=!0)}return e},e.prototype.resetStyles=function(t){var e=this.clearStyles();return this.setStyles(t)||e},e.prototype._resetClass=function(){this._styleName?this.setAttr("class",this._styleName):this.unsetAttr("class")},e.prototype.clearStyleAndClass=function(){this.clearStyles(),this._resetClass()},e.prototype.internalClearStyleAndClass=function(){this.internalClearStyles(),this._resetClass()},e.prototype.setStyleOrClass=function(t){Ux(t)?(this._resetClass(),t&&this._dom.classList.add(t)):this.resetStyles(t)},e.prototype.internalSetStyleOrClass=function(t){Ux(t)?t&&this._dom.classList.add(t):this.internalSetStyles(t)},e.prototype.addStyleOrClass=function(t){Ux(t)?t&&this._dom.classList.add(t):Wx(t)&&this.setStyles(t)},e.prototype.setClass=function(t){this.setAttr("class",t)},e.prototype.setStyle=function(t,e){var i=!1;return e!==this._styles[t]&&(i=this._styleDirty=!0,this._styles[t]=e,this.dom.style[t]=e),i},e.prototype.internalSetStyle=function(t,e){e!==this._styles[t]&&(this._styles[t]=e,this.dom.style[t]=e)},e.prototype.setColor=function(t){this.dom.style.fill=this.dom.style.stroke=this._styles.fill=this._styles.stroke=t},e.prototype.setFill=function(t){this.dom.style.fill=this._styles.fill=t},e.prototype.setStroke=function(t){this.dom.style.stroke=this._styles.stroke=t},e.prototype.setTransparent=function(t){this.dom.style.setProperty("fill","transparent",t?"important":""),this.dom.style.setProperty("stroke","none",t?"important":"")},e.prototype.textAlign=function(){return this._styles.textAlign},e.prototype.setData=function(t,e){null==e?this.dom.removeAttribute("data-"+t):this.dom.setAttribute("data-"+t,hS(e,""))},e.prototype.unsetData=function(t){this.dom.removeAttribute("data-"+t)},e.prototype.setBoolData=function(t,e){e?this.dom.setAttribute("data-"+t,""):this.dom.removeAttribute("data-"+t)},e.prototype.hasData=function(t){return null!=this.dom.getAttribute("data-"+t)},e.prototype.removeLater=function(t,e){var i=this;if(this._parent)if(t>0){var n=this._dom.animate([{},{opacity:0}],{duration:t,fill:"none"});null==n||n.addEventListener("finish",(function(){i.remove(),null==e||e(i)}))}else this.remove();return this},e.prototype.hide=function(t){var e=this;if(this._parent)if(t>0){var i=this._dom.animate([{},{opacity:0}],{duration:t,fill:"none"});null==i||i.addEventListener("finish",(function(){e.setVis(!1)}))}else this.setVis(!1);return this},e.prototype.clipRect=function(t,e,i,n,r){void 0===r&&(r=0);var o=this.control.clipBounds(t,e,i,n,r);return this.setClip(o),o},e.prototype.setClip=function(t){t?this.setAttr("clip-path","url(#"+(t.id||t)+")"):this.unsetAttr("clip-path")},e.prototype.setTemporary=function(){return this.setAttr(e.TEMP_KEY,1),this},e.prototype.setCursor=function(t){this._dom.style.cursor=t},e.prototype.ignorePointer=function(){this._dom.style.pointerEvents="none"},e.prototype.contains=function(t){return this._dom.contains(t)},e.prototype.front=function(t,e){if(this.parent){var i=this.parent._dom,n=this._dom,r=t.length;if(e){var o=e.sort((function(e,i){return t.indexOf(e)-t.indexOf(i)}))[e.length-1];this!==o&&(n.remove(),o===t[r-1]?i.appendChild(n):i.insertBefore(n,t[t.indexOf(o)+1].dom))}else r>1&&n!==i.lastElementChild&&(n.remove(),i.appendChild(n))}},e.prototype.back=function(t){if(this.parent&&t.length>1){var e=t.indexOf(this);this._dom.remove(),e<t.length-1?this.parent.dom.insertBefore(this._dom,t[e+1].dom):this.parent.dom.appendChild(this._dom)}},e.prototype.invalidate=function(){var t;null===(t=this.control)||void 0===t||t.invalidateLayout()},e.prototype.sort=function(t){var e=this;t.forEach((function(t){return e._dom.appendChild(t._dom)}))},e.prototype.getParent=function(t){for(var e=this._parent;e;){if(e instanceof t)return e;e=e._parent}},e.prototype._testing=function(){return e.TESTING},e.prototype._doAttached=function(t){},e.prototype._doDetached=function(t){},e.prototype._updateTransform=function(){this._dom.setAttribute("transform",this.getTransform())},e.prototype.getTransform=function(){var t=this._dom,e=this._tx,i=this._ty,n=[];(_S.isValidNum(e)||_S.isValidNum(i))&&(n=["translate("+(e=e||0)+","+(i=i||0)+")"]),_S.isNotEmpty(this._matrix)&&n.push("matrix("+this._matrix.join(",")+")"),this._rotation&&n.push("rotate("+this._rotation+" "+_S.pick(this._originX,t.getAttribute("x"),0)+" "+_S.pick(this._originY,t.getAttribute("y")||0)+")");var r=_S.getNumber(this._scaleX,1),o=_S.getNumber(this._scaleY,1);return 1===r&&1===o||n.push("scale("+r+" "+o+")"),n.length?n.join(" "):""},e.DEBUGGING=!1,e.TESTING=!1,e.ASSET_KEY="_asset_",e.TEMP_KEY="_temp_",e}(bS),LP=function(t){function e(e,i){return t.call(this,e,i,"g")||this}return Fx(e,t),e}(EP),NP=function(t){function e(e){var i=t.call(this,e.doc(),"rct-root")||this;return i._control=e,i}return Fx(e,t),Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!1,configurable:!0}),e}(EP),MP=function(t){function e(e){var i=t.call(this,e,xS,"clipPath")||this,n=i._id=_S.uniqueKey()+"-";return i.setAttr("id",n),i}return Fx(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}(EP),TP=function(t){function e(e,i,n,r,o,s,a){void 0===i&&(i=NaN),void 0===n&&(n=NaN),void 0===r&&(r=NaN),void 0===o&&(o=NaN),void 0===s&&(s=0),void 0===a&&(a=0);var u=t.call(this,e)||this,l=u._rect=new EP(e,null,"rect");return l.setAttr("fill","none"),s>0&&l.setAttr("rx",String(s)),a>0&&l.setAttr("ry",String(a)),isNaN(i)||l.setBounds(i,n,r,o),u.add(l),u}return Fx(e,t),e.prototype.setBounds=function(t,e,i,n){return this._rect.move(t,e),this._rect.resize(i,n),this},e.prototype.resize=function(t,e,i){return this._rect.resize(t,e)},Object.defineProperty(e.prototype,"x",{get:function(){return this._rect.x},set:function(t){this._rect.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._rect.y},set:function(t){this._rect.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._rect.width},set:function(t){this._rect.width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._rect.height},set:function(t){this._rect.height=t},enumerable:!1,configurable:!0}),e}(MP),OP=function(t){function e(e,i,n){void 0===i&&(i=void 0),void 0===n&&(n=void 0);var r=t.call(this,e,i,"path")||this;return n&&r.setPath(n),r}return Fx(e,t),e.prototype.path=function(){return this._path},e.prototype.setPath=function(t){var e=Ux(t)?t:t.join(" ");return e!==this._path&&this.setAttr("d",this._path=e),this},e}(EP);!function(t){function e(e){var i=t.call(this,e)||this;return i._path=new OP(e),i.add(i._path),i}Fx(e,t),e.prototype.setPath=function(t){this._path.setPath(t)}}(MP);var RP,DP,BP,FP=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._circle=new EP(e,null,"circle")),i}return Fx(e,t),e.prototype.setCircle=function(t,e,i){this._circle.setAttrs({cx:t,cy:e,r:i})},e}(MP),IP=function(){function t(){this.dragging=!1}return t.prototype.start=function(t,e,i,n,r){return this.cancel(),!!this._doStart(t,e,i,n,r)&&(this.dragging=!0,this._showFeedback(n,r),!0)},t.prototype.drag=function(t,e,i,n,r){return!(!this.dragging||!this._doDrag(t,e,i,n,r))&&(this._moveFeedback(n,r),!0)},t.prototype.cancel=function(){if(this.dragging)try{this.dragging=!1,this._doCanceled()}finally{this.end(-1,-1)}},t.prototype.drop=function(t,e,i){if(this.dragging)try{this.dragging=!1,this._canAccept(t,e,i)?this._doCompleted(t,e,i):this._doCanceled()}finally{this.end(e,i)}},t.prototype.end=function(t,e){try{this.dragging=!1,this._hideFeedback()}finally{this._doEnded(t,e)}},t.prototype._canAccept=function(t,e,i){return!0},t.prototype._showFeedback=function(t,e){},t.prototype._moveFeedback=function(t,e){},t.prototype._hideFeedback=function(){},t.prototype._doStart=function(t,e,i,n,r){return!0},t.prototype._doCanceled=function(){},t.prototype._doCompleted=function(t,e,i){},t.prototype._doEnded=function(t,e){},t}(),jP=function(){function t(t){this.r=0,this.g=0,this.b=0,this.a=1,(t=t&&t.trim())&&(_S.startsWith(t,"rgb(")&&_S.endsWith(t,")")?this.$_parseRgb(t.substring(4,t.length-1)):_S.startsWith(t,"rgba(")&&_S.endsWith(t,")")?this.$_parseRgb(t.substring(5,t.length-1)):_S.startsWith(t,"#")&&this.$_parseNumber(t.substr(1)))}return t.isBright=function(e){return new t(e).isBright()},t.getContrast=function(e,i,n){return new t(e).getContrast(i,n)},Object.defineProperty(t.prototype,"rgba",{get:function(){return"rgba("+[this.r,this.g,this.b,this.a].join(",")+")"},enumerable:!1,configurable:!0}),t.prototype.isBright=function(){return.299*this.r+.587*this.g+.114*this.b>140},t.prototype.getContrast=function(t,e){return this.isBright()?t||"#000000":e||"#FFFFFF"},t.prototype.brighten=function(e,i){return void 0===i&&(i=null),(i=i||new t(null)).r=Math.ceil(this.r+(255-this.r)*e),i.g=Math.ceil(this.g+(255-this.g)*e),i.b=Math.ceil(this.b+(255-this.b)*e),i.a=this.a,i},t.prototype.toString=function(){return this.rgba},t.prototype.$_parseRgb=function(t){var e=t.split(/\,\s*/);e.length>=3&&(this.r=+e[0],this.g=+e[1],this.b=+e[2],e.length>=4?this.a=+e[3]:this.a=1)},t.prototype.$_parseNumber=function(t){var e,i=t.length;i>6?(e=parseInt(t.substr(0,6),16),this.a=parseInt(t.substring(6),16)/255):i>0&&(3===i&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),e=parseInt(t,16)),this.r=(16711680&e)>>16,this.g=(65280&e)>>8,this.b=255&e},t}();!function(t){t.START="start",t.MIDDLE="middle",t.END="end"}(RP||(RP={})),function(t){t.TOP="top",t.MIDDLE="middle",t.BOTTOM="bottom"}(DP||(DP={})),function(t){t.TRUNCATE="truncate",t.WRAP="wrap",t.ELLIPSIS="ellipsis"}(BP||(BP={}));var $P=function(t){function e(e,i){void 0===i&&(i=xS);var n=t.call(this,e,i,"text")||this;return n._layout=DP.TOP,n._overflow=BP.WRAP,n._dirty=!0,n._text="",n.anchor=RP.MIDDLE,n}return Fx(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){(t=t||"")!==this._text&&(this._dirty=!0,this.dom.textContent=this._text=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"anchor",{get:function(){return this.getAttr("text-anchor")},set:function(t){t!==this.anchor&&this.setAttr("text-anchor",t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},set:function(t){t!==this._layout&&(this._layout=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflow",{get:function(){return this._overflow},set:function(t){t!==this._overflow&&(this._overflow=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this.getAttr("fill-opacity")},set:function(t){this.setAttr("fill-opacity",t)},enumerable:!1,configurable:!0}),e.prototype.getAscent=function(t){return.75*t},e.prototype.layoutText=function(t){var e,i=this.getBBox(),n=this.getAscent(isNaN(t)?i.height:t);switch(this._layout){case DP.MIDDLE:e=Math.floor(n/2);break;case DP.BOTTOM:e=0;break;default:e=Math.ceil(n)}this.y=e},e.prototype.isFitIn=function(t){return this.calcWidth()>=t},e.prototype.calcWidth=function(){var t=this._text.length;return t&&this.dom.getSubStringLength(0,t)},e.prototype.calcRangeWidth=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=Number.MAX_SAFE_INTEGER),t=sS(0,t),(e=oS(this._text.length,e))>t?this.dom.getSubStringLength(t,e-t):0},e.prototype.truncate=function(t,e){var i=this._text;if(i){var n,r=this.dom,o=0,s=i.length;do{n=Math.ceil((o+s)/2),r.getSubStringLength(0,n)>t?s=n-1:o=n}while(o<s);for(this.text=i.substring(0,o)+"…";o>0&&this.calcWidth()>t;)this.text=i.substring(0,--o)+"…"}},e.prototype.setContrast=function(t,e,i){return this.setStyleOrClass(jP.isBright(getComputedStyle(t).fill)?e:i),this},e.prototype.clearDom=function(){t.prototype.clearDom.call(this),this._dirty=!0},e.prototype.setStyles=function(e){var i=t.prototype.setStyles.call(this,e);return i&&this.layoutText(),i},e.prototype.setStyle=function(e,i){var n=t.prototype.setStyle.call(this,e,i);return n&&this.layoutText(),n},e.prototype.getBBox=function(){return(this._dirty||this._styleDirty)&&(this._bounds=this.dom.getBBox(),this._dirty=this._styleDirty=!1),this._bounds},e.prototype.getBBoundsTest=function(){return(this._dirty||this._styleDirty)&&(this._bounds={x:this.x,y:this.y,width:100,height:30},this._dirty=this._styleDirty=!1),this._bounds},e.prototype.stain=function(){this._dirty=!0},e}(EP),zP="$_TH",HP="$_TW",GP=function(){function t(){}return t.prototype.tag=function(){return""},t.prototype.parse=function(t){return this.text=t,this._doParse(t),this},t.prototype.getText=function(t,e){var i=this._literals,n=this.text;if(i&&e.callback)for(var r=0;r<i.length;r+=4){var o=e.callback(t,i[r+1]);if("number"==typeof o&&!isNaN(o)||"bigint"==typeof o)(s=i[3]?oP.getFormatter(i[3]):e.numberFormatter)&&(o=s.toStr(o));else if(o instanceof Date){var s;(s=i[3]?xP.getFormatter(i[3]):e.timeFormatter)&&(o=s.toStr(o,e.startOfWeek||0))}else null==o&&(o=i[r+2]||"");n=n.replace(i[r],o)}return n},t.prototype.prepareSpan=function(t,e,i){var n=this.getText(e,i);return t.textContent=n,t},t.prototype._doParse=function(t){this._literals=[];for(var e=0;e<t.length;){var i=t.indexOf("${",e);if(i<0&&(i=t.indexOf("%{",e)),i<0)break;var n=t.indexOf("}",i+2);if(n<0)break;var r=t.substring(i,n+1),o=r.substring(2,r.length-1),s=o.indexOf(";");if(s>0){var a=o.indexOf(";",s+1);a>=s?this._literals.push(r,o.substring(0,s),o.substring(s+1,a),o.substring(a+1)):this._literals.push(r,o.substring(0,s),o.substring(s+1),xS),0===this._literals[2].length&&(this._literals[2]=xS)}else this._literals.push(r,o,xS,xS);e=n+1}return 0==this._literals.length&&(this._literals=null),this},t}(),WP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.prepareSpan=function(t,e,i){var n=this.getText(e,i),r=n.indexOf(">")+1,o=n.indexOf(this.tag(),r);return this._doPrepare(t,n,r,o),t},e.prototype._doPrepare=function(t,e,i,n){t.textContent=e.substring(i,n);var r=e.indexOf("style=");if(r>0&&r<i){var o=e[r+6],s=e.indexOf(o,r+7);s>0&&s<i&&t.setAttribute("style",e.substring(r+7,s))}},e}(GP),YP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.tag=function(){return"</t>"},e}(WP),XP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.tag=function(){return"</b>"},e.prototype._doPrepare=function(e,i,n,r){t.prototype._doPrepare.call(this,e,i,n,r),e.setAttribute("class","rct-text-bold")},e}(WP),UP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.tag=function(){return"</i>"},e.prototype._doPrepare=function(e,i,n,r){t.prototype._doPrepare.call(this,e,i,n,r),e.setAttribute("class","rct-text-italic")},e}(WP),qP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.target="_blank",e}return Fx(e,t),e.prototype.tag=function(){return"</a>"},e.prototype._doPrepare=function(e,i,n,r){var o=this;i.substring(2,n-1).trim().split(/\s+/g).forEach((function(t){var e=t.indexOf("=");if(e>0){var i=t.substring(0,e),n=t.substring(e+1,t.length),r=n.substring(1,n.length-1);switch(i){case"href":o.url=r;break;case"target":o.target=r}}})),t.prototype._doPrepare.call(this,e,i,n,r),e.setAttribute("class","rct-text-link")},e}(WP),ZP={t:YP,b:XP,i:UP,a:qP},KP=function(){function t(){}return Object.defineProperty(t.prototype,"words",{get:function(){return this._words.slice()},enumerable:!1,configurable:!0}),t.prototype.parse=function(t){function e(t){var e=i.length;e>0&&""===i[e-1].type?i[e-1].text+=t:i.push((new GP).parse(t))}for(var i=this._words=[],n=0;n<t.length;){if("<"==t[n]){var r=t[n+1],o=void 0;if(r in ZP)if((l=t.indexOf(">",n+2))>=0){var s="</"+r+">",a=t.indexOf(s,l+1);if(a>=0){var u=t.substring(n,a+s.length);o=(new ZP[r]).parse(u),n+=u.length}}if(!o){e(t.substring(n));break}this._words.push(o)}else{var l;if(!((l=t.indexOf("<",n+1))>=0)){e(t.substring(n));break}e(t.substring(n,l)),n=l}}return this},t}(),JP=/<br.*?>|\r\n|\n/,QP=function(){function t(t){this.setFormat(t)}return t.prototype.setFormat=function(t){t!==this._format&&this.$_parse(this._format=null!=t?String(t):t)},t.prototype.lines=function(){return this._lines.slice()},t.prototype.build=function(t,e,i,n,r){var o,s,a=t.doc,u=uS(this.lineHeight,1),l=this._lines,h=l.length,p=[],c=[];t.clearDom(),n=n||t;for(var f=t.getStyle("writing-mode")||t.getStyle("writing-mode"),_=f===qS||f===ZS,d=0;d<h;d++){var y=l[d],g=0,v=0,m=null;try{for(var b=(o=void 0,jx(y.words)),w=b.next();!w.done;w=b.next()){var x=w.value,S=(k=x.prepareSpan(t.appendElement(a,"tspan"),n,r)).getBBox();if(k[HP]=S.width,k[zP]=S.height,_?(g=sS(g,k[HP]),v+=k[zP]):(g+=k[HP],v=sS(v,k[zP])),m||(m=k),x instanceof qP){var P=a.createElementNS(Hx,"a");P.setAttribute("href",x.url),P.setAttribute("target",x.target),P.appendChild(k),t.appendDom(P)}}}catch(t){o={error:t}}finally{try{w&&!w.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}c.push(m),y[zP]=v*u,y[HP]=g*u,p.push(0==d?y[HP]/2:y[HP])}if(h>0){var V=l[0];for(d=1;d<c.length;d++)if(c[d]){var k;g=0,v=0;if(_&&null!=c[d-1]?g=Math.floor(V[HP]-t.getAscent(V[HP]))+t.getAscent(l[d][HP]):v=Math.floor(V[zP]-t.getAscent(V[zP]))+t.getAscent(l[d][zP]),c[d]==c.find((function(t){return null!=t}))&&null==c[0])(k=t.insertElement(a,"tspan",c[d])).textContent=".",k.style.fill="transparent",g+=(S=k.getBBox()).width,k[HP]=S.width,k[zP]=V[zP]=S.height,c[0]=k;switch(f){case qS:c[d].setAttribute("dx",String(g)),c[d].setAttribute("y","0");break;case ZS:c[d].setAttribute("dx",String(-g)),c[d].setAttribute("y","0");break;default:c[d].setAttribute("x","0"),c[d].setAttribute("dy",String(v))}V=l[d]}if(_){var A=t.parent.dom.classList.contains("rct-annotation"),C=t.getBBox().width;g=(m=$x(c,1)[0])[HP];if(A)m.setAttribute("dx",String(f===ZS?C-g/2:g/2));else switch(f){case qS:m.setAttribute("x",String((C-g)/-2));break;case ZS:m.setAttribute("x",String((C-g)/2))}}else t.layoutText(l[0][zP])}},t.prototype.layout=function(t,e,i,n,r){var o=t.getBBox(),s=0,a=0,u=t.getStyle("writing-mode");if(u===qS||u===ZS)switch(s=r.left+(i-r.left-r.right-o.width),e){case"center":t.anchor=RP.MIDDLE,a=r.top+(n-r.top-r.bottom)/2;break;case"right":t.anchor=RP.END,a=o.height-r.bottom;break;default:t.anchor=RP.START,a=r.top}else switch(a=r.top+(n-r.top-r.bottom-o.height)/2,e){case"center":t.anchor=RP.MIDDLE,s=r.left+(i-r.left-r.right)/2;break;case"right":t.anchor=RP.END,s=o.width-r.right;break;default:t.anchor=RP.START,s=r.left}t.trans(s,a)},t.prototype.$_parse=function(t){var e,i,n=this._lines=[];if(t){var r=t.split(JP);try{for(var o=jx(r),s=o.next();!s.done;s=o.next()){var a=s.value;n.push((new KP).parse(a))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}}},t}(),tV=function(){function t(t){this.source=t}return t.prototype.hasDef=function(){return!0},t}(),eV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._setStops=function(t,e){e.setAttribute("id",this.source.id);var i=this.source.color,n=null==this.source.opacity?1:this.source.opacity,r=Yx(i)?zx([],$x(i),!1):[i,"white"],o=Yx(n)?zx([],$x(n),!1):Array(r.length).fill(n);1===r.length&&r.push("white"),r.forEach((function(i,n){!function(t,e,i,n,r){var o=t.createElementNS(Hx,"stop");o.setAttribute("offset",String(i)),o.setAttribute("stop-color",n),o.setAttribute("stop-opacity",String(r)),e.appendChild(o)}(t,e,n/(r.length-1),i,null==o[n]?1:o[n])}))},e}(tV),iV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getEelement=function(t,e){var i=t.createElementNS(Hx,"linearGradient"),n=0,r=0,o=0,s=0;switch(this._setStops(t,i),e.dir){case"up":o=1;break;case"right":r=1;break;case"left":n=1;break;default:s=1}return i.setAttribute("x1",n),i.setAttribute("y1",o),i.setAttribute("x2",r),i.setAttribute("y2",s),i},e.TYPE="lineargradient",e}(eV),nV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getEelement=function(t,e){var i=t.createElementNS(Hx,"radialGradient");return OS(e.cx)||i.setAttribute("cx",e.cx),OS(e.cy)||i.setAttribute("cy",e.cy),OS(e.r)||i.setAttribute("r",e.r),this._setStops(t,i),i},e.TYPE="radialgradient",e}(eV),rV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getEelement=function(t,i){var n,r,o,s,a=t.createElementNS(Hx,"pattern"),u=t.createElementNS(Hx,"path"),l=!1;if(a.setAttribute("id",i.id),a.setAttribute("patternUnits","userSpaceOnUse"),u.classList.add("rct-pattern"),+i.pattern>=0){var h=e.STOCK[+i.pattern%e.STOCK.length];n=h.path,r=h.style,l=!h.fill,o=h.width||20,s=h.height||20}else Ux(i.pattern)&&(n=i.pattern,o=i.width||i.height||20,s=i.height||i.width||20);a.setAttribute("width",String(o)),a.setAttribute("height",String(s)),u.setAttribute("d",n),r&&Jx(u.style,r),i.style&&Jx(u.style,i.style),l&&(u.style.fill="none");var p=i.backgroundStyle;if(Ux(p)||Wx(p)){var c=t.createElementNS(Hx,"rect");a.append(c),c.style.fill=Ux(p)?p:p.fill,c.setAttribute("width",String(o)),c.setAttribute("height",String(s))}return a.append(u),a},e.TYPE="pattern",e.STOCK=[{path:"M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9",width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M0 0 L0 3 L5.2 6 L10.4 3 L10.4 0 M5.2 6 L5.2 12 L0 15 L0 18 M5.2 12 L10.4 15 L10.4 18",width:10.4,height:18,style:{strokeWidth:"0.3px"}},{path:"M0 0h5v5H0zM5 5h5v5H5z",fill:!0,width:10,height:10},{path:"m5 .037 4.957 4.957L5 9.951.043 4.994z",fill:!0,width:10,height:10},{path:"M0 2.8 L5 0 L10 2.8 L10 14 L5 16.8 L0 14 L0 2.8 M5 0 L5 5.6 L0 8.4 L5 11.2 L5 16.8 M5 5.6 L10 8.4 L5 11.2",style:{strokeWidth:"0.3px"},width:10,height:16.8},{path:"m5 .037 4.957 4.957L5 9.951.043 4.994z",fill:!1,width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M 0 0 L 12 12 L 24 0 M 4 0 L 12 8 L 20 0 M 8 0 L 12 4 L 16 0 M 0 4 L 8 12 L 0 20 M 0 8 L 4 12 L 0 16 M 0 24 L 12 12 L 24 24 M 4 24 L 12 16 L 20 24 M 8 24 L 12 20 L 16 24 M 24 20 L 16 12 L 24 4 M 24 16 L 20 12 L 24 8",width:24,height:24,fill:!1,style:{strokeWidth:"0.4px"}},{path:"M10 2.52H0M0 7.48h10M7.48 10V0M2.52 0v10",style:{strokeWidth:"0.3px"},width:5,height:5},{path:"M-2.5 1.25l5 2.5L7.5 1.25l5 2.5 M-2.5 6.25l5 2.5 5-2.5 5 2.5 M-2.5 11.25l5 2.5 5-2.5 5 2.5 M-2.5 16.25l5 2.5 5-2.5 5 2.5",width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M25 1.95v.26c-.79 0-1.43.64-1.43 1.43 0 .25.15.62.33.8l.31.31c.25.27.31.65.16.98l-.06.11c-.18.32-.5.52-.87.54h-4.56v4.56c.02.26.17.5.39.63l.11.06c.21.1.52.05.68-.11l.31-.31c.27-.24.61-.39.98-.4.93 0 1.69.76 1.69 1.69 0 .93-.76 1.69-1.69 1.69-.36-.02-.71-.16-.98-.4l-.31-.31a.63.63 0 0 0-.68-.11l-.11.06c-.23.13-.38.37-.39.63v4.56h4.56c.36.02.69.22.87.54l.06.11c.15.33.09.72-.16.98l-.31.31c-.2.22-.31.5-.33.8 0 .79.64 1.43 1.43 1.43v.26c-.93 0-1.69-.76-1.69-1.69.02-.36.16-.71.4-.98l.31-.31a.63.63 0 0 0 .11-.68l-.06-.11a.764.764 0 0 0-.63-.39h-4.56v4.56c-.02.36-.22.69-.54.87l-.11.06c-.33.15-.72.09-.98-.16l-.31-.31c-.22-.2-.5-.31-.8-.33-.79 0-1.43.64-1.43 1.43h-.26c0-.93.76-1.69 1.69-1.69.32 0 .75.18.98.4l.31.31c.19.17.45.21.68.11l.11-.06c.23-.13.38-.37.39-.63v-4.56h-4.56c-.36-.02-.69-.22-.87-.54l-.06-.11a.886.886 0 0 1 .16-.98l.31-.31c.2-.22.31-.5.33-.8a1.43 1.43 0 1 0-2.86 0c0 .25.15.62.33.8l.31.31c.25.27.31.65.16.98l-.06.11c-.18.32-.5.52-.87.54H6.38v4.56c.02.26.17.5.39.63l.11.06c.21.1.52.05.68-.11l.31-.31c.27-.24.61-.39.98-.4.93 0 1.69.76 1.7 1.69h-.26c0-.79-.64-1.43-1.43-1.43-.25 0-.62.15-.8.33l-.31.31c-.27.25-.65.31-.98.16l-.11-.06c-.32-.18-.52-.5-.54-.87v-4.56H1.56c-.26.02-.5.17-.63.39l-.06.11c-.1.21-.05.52.11.68l.31.31c.24.27.39.61.4.98 0 .93-.76 1.69-1.69 1.7v-.26c.79 0 1.43-.64 1.43-1.43 0-.25-.15-.62-.33-.8l-.31-.31a.888.888 0 0 1-.16-.98l.06-.11c.18-.32.5-.52.87-.54h4.56v-4.56a.812.812 0 0 0-.39-.63l-.11-.06a.647.647 0 0 0-.68.11l-.31.31c-.27.25-.62.39-.98.4-.93 0-1.69-.76-1.69-1.69s.76-1.69 1.69-1.69c.32 0 .75.18.98.4l.31.31c.19.17.45.21.68.11l.11-.06c.23-.13.38-.37.39-.63V6.38H1.56c-.36-.02-.69-.22-.87-.54l-.06-.11a.886.886 0 0 1 .16-.98l.31-.31c.2-.22.31-.5.33-.8 0-.79-.64-1.43-1.43-1.43v-.26c.93 0 1.69.76 1.69 1.69 0 .32-.18.75-.4.98l-.31.31a.63.63 0 0 0-.11.68l.06.11c.13.23.37.38.63.39h4.56V1.56c.02-.36.22-.69.54-.87l.11-.06c.33-.15.72-.09.98.16l.31.31c.22.2.5.31.8.33.79 0 1.43-.64 1.43-1.43h.26c0 .93-.76 1.69-1.69 1.69-.36-.02-.71-.16-.98-.4L7.57.98a.63.63 0 0 0-.68-.11l-.11.06c-.23.13-.38.37-.39.63v4.56h4.56c.36.02.69.22.87.54l.06.11c.15.33.09.72-.16.98l-.31.31c-.2.22-.31.5-.33.8a1.43 1.43 0 1 0 2.86 0c0-.25-.15-.62-.33-.8l-.31-.31a.888.888 0 0 1-.16-.98l.06-.11c.18-.32.5-.52.87-.54h4.56V1.56a.812.812 0 0 0-.39-.63l-.11-.06a.647.647 0 0 0-.68.11l-.31.31c-.27.25-.62.39-.98.4-.95 0-1.71-.76-1.71-1.69h.26c0 .79.64 1.43 1.43 1.43.25 0 .62-.15.8-.33l.31-.31c.27-.25.65-.31.98-.16l.11.06c.32.18.52.5.54.87v4.56h4.56c.26-.02.5-.17.63-.39l.06-.11c.1-.21.05-.52-.11-.68l-.31-.31c-.25-.27-.39-.62-.4-.98 0-.93.76-1.69 1.69-1.69ZM10.94 18.62c.26-.02.5-.17.63-.39l.06-.11c.1-.21.05-.52-.11-.68l-.31-.31c-.25-.27-.39-.62-.4-.98 0-.93.76-1.69 1.69-1.69s1.69.76 1.69 1.69c0 .32-.18.75-.4.98l-.31.31a.63.63 0 0 0-.11.68l.06.11c.13.23.37.38.63.39h4.56v-4.56c.02-.36.22-.69.54-.87l.11-.06c.33-.15.72-.09.98.16l.31.31c.22.2.5.31.8.33a1.43 1.43 0 1 0 0-2.86c-.25 0-.62.15-.8.33l-.31.31c-.27.25-.65.31-.98.16l-.11-.06c-.32-.18-.52-.5-.54-.87V6.38h-4.56c-.26.02-.5.17-.63.39l-.06.11c-.1.21-.05.52.11.68l.31.31c.24.27.39.61.4.98 0 .93-.76 1.69-1.69 1.69s-1.69-.76-1.69-1.69c.02-.36.16-.71.4-.98l.31-.31a.63.63 0 0 0 .11-.68l-.06-.11a.764.764 0 0 0-.63-.39H6.38v4.56c-.02.36-.22.69-.54.87l-.11.06c-.33.15-.72.09-.98-.16l-.31-.31c-.22-.2-.5-.31-.8-.33a1.43 1.43 0 1 0 0 2.86c.25 0 .62-.15.8-.33l.31-.31c.27-.25.65-.31.98-.16l.11.06c.32.18.52.5.54.87v4.56h4.56Z",width:25,height:25,fill:!1,style:{strokeWidth:"0.3px"}},{path:"M 0 8 L 8 0 L 12 4 L 4 12 Z M -2 2 L 2 6 M 2 -2 L 6 2 M 6 10 L 10 14 M 10 6 L 14 10",width:12,height:12,style:{strokeWidth:"0.5px"}},{path:"M0 13.66 6.34 10 10 16.34 3.66 20zM0 6.34 3.66 0 10 3.66 6.34 10zM10 16.34 13.66 10 20 13.66 16.34 20zM10 3.66 16.34 0 20 6.34 13.66 10zM0 6.34v7.32M20 6.36v7.3M6.34 10h7.32",width:20,height:20,style:{strokeWidth:"0.3px"},fill:!1}],e}(tV),oV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.prepare=function(){var t=this.source;return this._colors=Yx(t.colors)?t.colors.slice():[],"random"===t.mode?this._index=-1:("shuffle"===t.mode&&_S.shuffle(this._colors),this._index=0),this},e.prototype.getNext=function(){return this._index<0?this._colors[Math.floor(Math.random()*this._colors.length)]:this._colors[this._index++%this._colors.length]},e.prototype.hasDef=function(){return!1},e.prototype.getEelement=function(t,e){this._colors=Yx(e.colors)?e.colors:[]},e.TYPE="colors",e}(tV),sV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.prepare=function(){var t=this,e=this.source.rootUrl||"";this._images=[],this._map={},this.source.images.forEach((function(i){if(Ux(i))t._images.push(i);else{var n=e+i.url;i.name&&(t._map[i.name]=n),t._images.push(n)}}))},e.prototype.getImage=function(t){return Ux(t)?this._map[t]:this._images[t]},e.prototype.hasDef=function(){return!1},e.prototype.getEelement=function(t,i){this.size=Object.freeze({width:i.width||i.height||e.SIZE,height:i.height||i.width||e.SIZE})},e.TYPE="images",e.SIZE=20,e}(tV),aV=function(){function t(){this._items=[],this._map={}}return t.prototype.load=function(t){var e=this;if(this._items=[],Yx(t))t.forEach((function(t){var i=e.$_loadItem(t);i&&(i.hasDef()?e._items.push(i):e._map[t.id]=i)}));else if(Wx(t)){var i=this.$_loadItem(t);i&&(i.hasDef()?this._items.push(i):this._map[t.id]=i)}},t.prototype.updateOptions=function(t,e){},t.prototype.register=function(t,e){this._items.forEach((function(i){var n=i.getEelement(t,i.source);n.setAttribute(EP.ASSET_KEY,"1"),e.addDef(n)}))},t.prototype.unregister=function(t){this._items.forEach((function(e){t.removeDef(e.source.id)}))},t.prototype.get=function(t){return this._map[t]},t.prototype.$_loadItem=function(t){if(Wx(t)&&t.id){var e=t.type;if(e||(null!=t.pattern?e=rV.TYPE:Yx(t.colors)?e=oV.TYPE:Yx(t.images)&&(e=sV.TYPE)),e)switch(e.toLowerCase()){case iV.TYPE:return new iV(t);case nV.TYPE:return new nV(t);case rV.TYPE:return new rV(t);case oV.TYPE:return new oV(t);case sV.TYPE:return new sV(t)}}},t}(),uV=0,lV=function(t,e){var i={};for(var n in t)i[n]=t[n];for(var n in e)i[n]=e[n];return i},hV=function(t,e){var i=Wx(t)?t:{};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];Yx(r)?i[n]=r.slice(0):r instanceof Date?i[n]=new Date(r):Wx(r)?i[n]=hV(i[n],r):i[n]=r}return i},pV=function(t){function e(e){var i=t.call(this)||this;return i.chart=e,uV++,i}return Fx(e,t),e.prototype.init=function(){return this._op=hV({},this.constructor.defaults),this._doInit(),this._doApply(this._op),this},e.prototype._doInit=function(){},Object.defineProperty(e.prototype,"options",{get:function(){return this._op},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._isVisible()},set:function(t){this.updateOption("visible",t)},enumerable:!1,configurable:!0}),e.prototype._isVisible=function(){return this._op.visible},e.prototype.load=function(t){var e=this._op;if(this._config=t,void 0!==t&&!this._doSetSimple(t)){if(null!==t&&null!=t.template){var i=this.chart&&this.chart.assignTemplates;i&&(t=i(t))}this._doLoad(e,t)}return this._doApply(e),e},e.prototype.save=function(){var t={visible:this.visible};return this._doSave(t),t},e.prototype.updateOptions=function(t,i){void 0===i&&(i=!0);var n=this,r=this._op;return void 0===t||this._doSetSimple(t)||hV(r,t),this.$_applyOptions(r),Wx(t)&&function(t){if(n._children)n._children.forEach((function(e){return t.hasOwnProperty(e)&&n[e].updateOptions(t[e])}));else for(var i in n._children=[],n){var r=n[i];r instanceof e&&(n._children.push(i),t.hasOwnProperty(i)&&r.updateOptions(t[i]))}}(t),i&&this._changed(),this},e.prototype.updateOption=function(t,e,i){void 0===i&&(i=!0);var n=this._op;return e!==n[t]&&(n[t]=e,this.$_applyOptions(n),i&&this._changed()),this},e.prototype.toggleOption=function(t,e){void 0===e&&(e=!0);var i=this._op,n=i[t];return i[t]=!Kx(n)||!n,this.$_applyOptions(i),e&&this._changed(),this},e.prototype.removeOption=function(t,e){void 0===e&&(e=!0);var i=this._op;if(i.hasOwnProperty(t)){delete i[t];var n=self.constructor.defaults;Gx.call(n,t)&&(i[t]=n[t]),this.$_applyOptions(i),e&&this._changed()}return this},e.prototype.clearOptions=function(t){return void 0===t&&(t=!0),function t(i){if(i._op=hV({},i.constructor.defaults),i.$_applyOptions(i._op),i._children)i._children.forEach((function(e){return i._op[e]=t(i[e])}));else for(var n in i._children=[],i){var r=i[n];r instanceof e&&(i._op[n]=t(r))}return i._op}(this),t&&this._changed(),this},e.prototype._prepareRender=function(){this._doPrepareRender(this.chart)},e.prototype._changed=function(t){var e;null===(e=this.chart)||void 0===e||e._modelChanged(this,t)},e.prototype._doLoad=function(t,i){for(var n in i)if(i.hasOwnProperty(n)){var r=i[n];this._doLoadProp(n,r)||(this[n]instanceof e?t[n]=this[n].load(r):Yx(r)?t[n]=r.slice(0):r instanceof Date?t[n]=new Date(r):Wx(r)?t[n]=Jx({},r):t[n]=r)}},e.prototype._doSetSimple=function(t){if(Kx(t))return this._op.visible=t,!0},e.prototype._doLoadProp=function(t,e){if("visible"===t)return this._op.visible=e,!0},e.prototype.$_applyOptions=function(t){var e,i=this.visible;this._doApply(t),this.visible!==i&&(null===(e=this.chart)||void 0===e||e._visibleChanged(this))},e.prototype._setDim=function(t,e){var i="_".concat(e);t[e]!==this[i]&&(this["".concat(i,"Dim")]=FS(this[i]=t[e],!0))},e.prototype._setDims=function(t){for(var e=this,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];i.forEach((function(i){return e._setDim(t,i)}))},e.prototype._doApply=function(t){this._style=t.style},e.prototype._doSave=function(t){},e.prototype._doUpdate=function(t){for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];this._doLoadProp(i,n)||(this[i]instanceof e?this[i].update(n):Yx(n)?this[i]=n.slice(0):n instanceof Date?this[i]=new Date(n):Wx(n)?this[i]=Jx({},n):this[i]=n)}},e.prototype._doPrepareRender=function(t){},e.REFRESHED="refreshed",e.defaults={visible:!0},e}(bS),cV=function(){function t(t){this._items=[],this.chart=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._items[0]},enumerable:!1,configurable:!0}),t.prototype.items=function(){return this._items.slice(0)},t.prototype._internalItems=function(){return this._items},t.prototype.updateOptions=function(t,e){},t}(),fV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._outlineThickness=2,e._outlineWidth="2px",e}return Fx(e,t),e.prototype._setOutlineThickness=function(t){t!==this._outlineThickness&&(this._outlineThickness=t,this._outlineWidth=uS(t,2)+"px")},e.prototype._setNumberSymbols=function(t){t!==this._numberSymbols&&(this._numberSymbols=t,this._numSymbols=t&&t.split(","))},e.prototype._setNumberFormat=function(t){t!==this._numberFormat&&(this._numberFormat=t,this._numberFormatter=t?oP.getFormatter(t):null)},e.prototype._setText=function(t){return t!==this._text&&this.prepareRich(this._text=t),!isNaN(this._op.lineHeight)&&this._richTextImpl&&(this._richTextImpl.lineHeight=this._op.lineHeight),this},e.prototype.setText=function(t){this._setText(t)},e.prototype.buildSvg=function(t,e,i,n,r,o){this._richTextImpl&&(this._richTextImpl.build(t,i,n,r,o),e&&this._richTextImpl.build(e,i,n,r,o))},e.prototype.prepareRich=function(t){t?(this._richTextImpl||(this._richTextImpl=new QP),this._richTextImpl.setFormat(t)):this._richTextImpl=null},e.prototype._doSetSimple=function(e){return Ux(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setOutlineThickness(e.outlineThickness),this._setNumberSymbols(e.numberSymbols),this._setNumberFormat(e.numberFormat),this._setText(e.text)},e.prototype.$_getNumberText=function(t,e,i){if(_S.isValidNum(t)){var n=this._numSymbols&&e&&_S.scaleNumber(t,this._numSymbols,i);return this._numberFormatter?n?this._numberFormatter.toStr(n.value)+n.symbol:this._numberFormatter.toStr(t):n?n.value+n.symbol:String(t)}return"NaN"},e.prototype._getText=function(t,e,i,n){var r=Ux(t)?t:this.$_getNumberText(e,i,n)||e;return this._op.prefix&&(r=this._op.prefix+r),this._op.suffix&&(r+=this._op.suffix),r},e.defaults=lV(pV.defaults,{effect:"none",autoContrast:!0,outlineThickness:2,numberSymbols:"k,M,G,T,P,E",numberFormat:"#,##0.#"}),e}(pV),_V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getIconPos=function(){return"default"===this._op.iconPosition?this.getDefaultIconPos():this._op.iconPosition},e.prototype._doPrepareRender=function(t){if(this._images=null,this._op.imageList){var e=t._assets.get(this._op.imageList);e instanceof sV&&(this._images=e)}this._root=this._images?"":this._op.iconRoot||""},e.prototype.getUrl=function(t){if(t){var e=t.indexOf("::");if(0===e)return t=t.substring(2),this._images?this._images.getImage(t):t;if(e>0){var i=this.chart._assets.get(t.substring(0,e)),n=t.substring(e+2);return i instanceof sV?i.getImage(n):n}return this._root+t}},e.defaults=lV(fV.defaults,{iconPosition:"default",iconGap:2}),e}(fV),dV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(pV),yV={},gV=function(t){function e(e,i){var n=t.call(this,e)||this;return n.inBody=i,n._offsetX=0,n._offsetY=0,n.index=-1,n}return Fx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){yV[t.type]=t}))},e.prototype._type=function(){return this.constructor.type},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.getOffset=function(t,e){var i=function(t,e,i){return i.size*("h"===i.suffix?e:t)};return{x:this._offsetXDim?i(t,e,this._offsetXDim):+this._offsetX,y:this._offsetYDim?i(t,e,this._offsetYDim):+this._offsetY}},e.prototype.getSize=function(t,e){var i,n,r=this.chart.isInverted(),o=this._op;if(this.inBody){var s=+o.x1,a=+o.x2,u=+o.y1,l=+o.y2;if(this._x=this._y=this._w=this._h=NaN,!isNaN(s)){var h=this.chart.xAxis;r?this._y=e-h.getPos(e,s):this._x=h.getPos(t,s),isNaN(a)||(r?n=this._h=e-h.getPos(e,a)-this._y:i=this._w=h.getPos(t,a)-this._x)}if(!isNaN(u)){h=this.chart.yAxis;r?this._x=h.getPos(t,u):this._y=e-h.getPos(e,u),isNaN(l)||(r?i=this._w=h.getPos(t,l)-this._x:n=this._h=e-h.getPos(e,l)-this._y)}}return isNaN(i)?i=jS(this._widthDim,t):i<0&&(this._x+=i,i=-i),isNaN(n)?n=jS(this._heightDim,e):n<0&&(this._y+=n,n=-n),{width:i,height:n}},e.prototype.getPosition=function(t,e,i,n,r,o,s){var a,u,l;if(isNaN(u=this._x))switch(a=this.getOffset(o,s),u=e,this._op.align){case"center":u+=(n-o)/2+a.x;break;case"right":u+=n-a.x-o;break;default:this._anchorObj?u+=(n-o)/2+a.x:u+=a.x}else a=a||this.getOffset(o,s),u=this._x+a.x;if(isNaN(l=this._y))switch(a=a||this.getOffset(o,s),l=i,this._op.verticalAlign){case"middle":l+=(r-s)/2-a.y;break;case"bottom":l+=r-a.y-s;break;default:l+=a.y}else a=a||this.getOffset(o,s),l=this._y+a.y;return{x:u,y:l}},e.prototype.refresh=function(){this._changed(pV.REFRESHED)},e.prototype.load=function(e){return this.chart?t.prototype.load.call(this,this.chart.loadBase(e,"annotation",this._type())):t.prototype.load.call(this,e)},e.prototype._doApply=function(e){var i,n=this,r=function(t){if(Ux(t)){var e=t[t.length-1];if("h"===e||"w"===e){var i=parseFloat(t);if(i===parseFloat(t.substring(0,t.length-1)))return{size:i,suffix:e}}}};t.prototype._doApply.call(this,e),this._name=e.name||"annotation ".concat(this.index+1),(i=e.offsetX)!=n._offsetX&&(n._offsetXDim=r(n._offsetX=i)),function(t){t!=n._offsetY&&(n._offsetYDim=r(n._offsetY=t))}(e.offsetY),this._setDims(e,"width","height")},e.prototype._doPrepareRender=function(t){},e.defaults=lV(pV.defaults,{front:!1,verticalAlign:"top",offsetX:0,offsetY:0,scope:"chart"}),e}(pV),vV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i._map={},i._visibles=[],i}return Fx(e,t),e.prototype.getVisibles=function(){return this._visibles.slice(0)},e.prototype.getAnnotation=function(t){var e=this._map[t];if(e instanceof gV)return e},e.prototype.get=function(t){return Ux(t)?this._map[t]:this._items[t]},e.prototype.load=function(t,e){var i=this,n=this.owner.chart,r=this._items=[],o=this._map={};Yx(t)?t.forEach((function(t,o){r.push(i.$_loadItem(n,t,o,e))})):Wx(t)&&r.push(this.$_loadItem(n,t,0,e)),r.forEach((function(t){t.name&&(o[t.name]=t)})),this.owner.options.annotations=this._items.map((function(t){return t.options}))},e.prototype.prepareRender=function(){var t=this;this._visibles=this._items.filter((function(t){return t.visible})),this._visibles.forEach((function(e){e._prepareRender(),e._anchorObj=e.options.anchor?t.owner.anchorByName(e.options.anchor):xS}))},e.prototype.$_loadItem=function(t,e,i,n){var r=e.type;r||(r=Ux(e.imageUrl)?"image":Ux(e.shape)?"shape":"text");var o=t._getAnnotationType(r);if(!o)throw new Error("Invalid annotation type: "+e.type);var s=new o(t,n).init();return s.index=i,s.load(e),s},e}(cV),mV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(pV.defaults,{minWidth:50}),e}(pV),bV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.axis=e,i}return Fx(e,t),e.prototype._doInit=function(){this.flag=new mV(this.axis.chart).init(),this._args={axis:void 0,pos:void 0,flag:void 0,points:void 0}},e.prototype.isBar=function(){return!this.axis.continuous()&&"line"!==this._op.type},e.prototype.getFlag=function(t,e){var i=this.axis.axisValueAt(t,e);return i instanceof Date?xP.getFormatter(this._op.timeFormat).toStr(new Date(i),this.chart.startOfWeek):oP.getFormatter(this._op.numberFormat).toStr(i)},e.prototype.moved=function(t,e,i){this._op.onChange&&(this._args.pos=t,this._args.flag=e,this._args.points=i.slice(0),this._op.onChange(this._args))},e.prototype._setAxis=function(t){this._args.axis=t},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.visible=!0,this._op.onChange=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=lV(pV.defaults,{visible:!1,type:"auto",showAlways:!0,followPointer:!0,numberFormat:"#,##0.#",timeFormat:"yyyy-MM-dd HH:mm",markerHovering:!1}),e}(pV),wV={},xV=function(t){function e(e){var i=t.call(this,null==e?void 0:e.chart)||this;return i.axis=e,i}return Fx(e,t),e}(pV),SV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._isVisible=function(){return null==this._op.visible?this.axis._isX:this._op.visible},e.prototype._doSetSimple=function(e){return Ux(e)?(this._op.visible=!0,this._op.style={stroke:e},!0):t.prototype._doSetSimple.call(this,e)},e.defaults=lV(xV.defaults,{visible:void 0}),e}(xV),PV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getRotation=function(){return this.axis._isHorz?0:isNaN(this._rotation)?"opposite"===this.axis.options.position?90:270:this._rotation},e.prototype._isVisible=function(){return this._op.visible&&!OS(this._op.text)},e.prototype._doSetSimple=function(e){return Ux(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,n,r=this;t.prototype._doApply.call(this,e),i=e.rotation,n=+i,Number.isNaN(n)||90===n||270===n||-90===n||-270===n||(n=0),r._rotation=n},e.defaults=lV(xV.defaults,{align:"middle",offset:0,gap:5}),e}(xV),VV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getRows=function(){var t=this.axis,e=this._op.colors,i=e?e.length:0,n=[];if(this._op.belowColor&&t.isBaseVisible()&&n.push({axis:t,from:t.axisMin(),to:t.getBaseValue(),color:this._op.belowColor}),i>0){var r=t._ticks,o=0;r[0].value>t.axisMin()&&(e[o%i]&&n.push({axis:t,from:t.axisMin(),to:r[0].value,color:e[o%i]}),o++);for(var s=1;s<r.length;s++,o++)e[o%i]&&n.push({axis:t,from:r[s-1].value,to:r[s].value,color:e[o%i]});r[r.length-1].value<t.axisMax()&&e[o%i]&&n.push({axis:t,from:r[r.length-1].value,to:t.axisMax(),color:e[o%i]})}return n},e.prototype._doSetSimple=function(e){return Ux(e)?(this._op.colors=[e,null],!0):Yx(e)?(this._op.colors=e,!0):t.prototype._doSetSimple.call(this,e)},e}(xV),kV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){this.rows=new VV(this.axis).init()},e.prototype._isVisible=function(){return this.axis._isPolar?!1!==this._op.visible:null==this._op.visible?!this.axis._isX:this._op.visible},e.defaults=lV(xV.defaults,{visible:void 0}),e}(xV),AV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getDefaultIconPos=function(){return"left"},e.defaults=lV(_V.defaults,{position:"inside",align:"left",verticalAlign:"top",offsetX:3,offsetY:3}),e}(_V),CV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){this.label=new AV(this.axis.chart).init()},e.prototype.canConstainedTo=function(t,e){var i,n,r,o,s=this._op;if(Yx(s.col)){try{for(var a=jx(s.col),u=a.next();!u.done;u=a.next()){if(e==u.value)return!0}}catch(t){i={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return!1}if(!isNaN(s.col)&&e!=s.col)return!1;if(Yx(s.row)){try{for(var l=jx(s.row),h=l.next();!h.done;h=l.next()){if(t==h.value)return!0}}catch(t){r={error:t}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return!1}return!(!isNaN(s.row)&&t!=s.row)},e.defaults=lV(xV.defaults,{front:!1,zindex:0}),e}(xV),EV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(CV),LV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(CV),NV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.canUseNumSymbols=function(){return!0},e.prototype._doSetSimple=function(e){return _S.canNumber(e)?(this._op.length=+e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=lV(xV.defaults,{visible:!1,length:7,gap:3}),e}(xV),MV=function(t){function e(e){var i=t.call(this,e&&e.chart)||this;return i.axis=e,i._domain={callback:function(t,e){return i._getParamValue(i._paramTick,e)}},i}return Fx(e,t),e.prototype._getParamValue=function(t,e){return e.startsWith("axis.")?this.axis[e.substring(5)]:t[e]},e.prototype.getLabelText=function(t,e){var i,n=this._op,r=t.index;if(n.textCallback){var o=n.textCallback(this.axis.getTickLabelArgs(r,t.value));if(null!=o)return o}return 1==e?hS(null!==(i=n.lastText)&&void 0!==i?i:n.firstText,n.text):0==r?hS(n.firstText,n.text):r==e-1?hS(n.lastText,n.text):n.text},e.prototype.getLabelStyle=function(t,e){var i=this._op,n=t.index;if(i.styleCallback){var r=i.styleCallback(this.axis.getTickLabelArgs(n,t.value));if(Wx(r))return r}return 1==e?i.lastStyle||i.firstStyle:0==n?i.firstStyle:n==e-1?i.lastStyle:void 0},e.prototype.getIcon=function(t){},e.prototype.getDefaultIconPos=function(){return this.axis._isHorz?"top":"right"},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._domain.numberFormatter=this._numberFormatter},e.defaults=lV(_V.defaults,{step:0,startStep:0,rows:0,maxRows:3,autoArrange:"rotate",overflow:"clip",firstOverflow:"pull",lastOverflow:"pull",overflowGap:12}),e}(_V),TV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getThickness=function(){return Math.max(0,this._op.thickness)},e.prototype.getMinThumbSize=function(){return Math.max(0,this._op.minThumbSize)},e.prototype.getGap=function(){return Math.max(0,this._op.gap)},e.prototype.getGapFar=function(){return Math.max(0,this._op.gapFar)},e.defaults=lV(xV.defaults,{visible:!1,thickness:10,minThumbSize:32,gap:3,gapFar:3}),e}(xV),OV=function(){function t(t){this.axis=t}return t.prototype.total=function(){return this.max-this.min},t.prototype.length=function(){return this.end-this.start},t.prototype.isFull=function(){return this.start===this.min&&this.end===this.max},t.prototype.resize=function(t,e,i){if((t=isNaN(t)?this.start:sS(this.min,oS(this.max,t)))>(e=isNaN(e)?this.end:sS(t,oS(this.max,e)))){var n=t;t=e,e=n}var r=this.max-this.min;if((t!==this.start||e!==this.end)&&e>t&&(isNaN(i)||(e-t)/r>=i)&&r/(e-t)>1)return this.start=t,this.end=e,!0},t}(),RV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(SV),DV=function(t){function e(e,i){var n=t.call(this,e)||this;return n._series=[],n._minPad=0,n._maxPad=0,n._values=[],n._labelArgs={},n._seriesChanged=!1,n.guides=[],n._isX=i,n}return Fx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){wV[t.type]=t,t.subtype&&(wV[t.subtype]=t)}))},e.prototype._animating=function(){return!isNaN(this._prevRate)},e.prototype._doInit=function(){this._title=new PV(this).init(),this._line=new SV(this).init(),this._sectorLine=new RV(this).init(),this._tick=this._createTickModel().init(),this._label=this._createLabel().init(),this._grid=this._createGrid().init(),this._crosshair=new bV(this).init(),this._scrollBar=new TV(this).init()},e.prototype._type=function(){return this.constructor.type},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sectorLine",{get:function(){return this._sectorLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){return this._grid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"crosshair",{get:function(){return this._crosshair},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollBar",{get:function(){return this._scrollBar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"xy",{get:function(){return this._isX?"x":"y"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isX",{get:function(){return this._isX},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(){return this._isEmpty},e.prototype._checkEmpty=function(){var t,e;if(this._series.length>0)try{for(var i=jx(this._series),n=i.next();!n.done;n=i.next()){if(!n.value.isEmpty(!0))return!1}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return!0},e.prototype.getBaseValue=function(){return NaN},e.prototype.length=function(){return this._max-this._min},e.prototype.axisMin=function(){return this._min},e.prototype.axisMax=function(){return this._max},e.prototype.axisValueAt=function(t,e){return this.valueAt(t,e)},e.prototype.getStartAngle=function(){return VS+kS*this._op.startAngle},e.prototype.getTotalAngle=function(){return kS*sS(0,oS(360,uS(this._op.totalAngle,360)))},e.prototype.isArced=function(){return this._op.totalAngle>0&&this._op.totalAngle<360},e.prototype.getVisibleSeries=function(){var t=[];return this._series.forEach((function(e){e.visible&&t.push.apply(t,zx([],$x(e.getVisibleSeries()),!1))})),t},e.prototype.unitPad=function(){return 0},e.prototype.labelsVisible=function(){return this._label.visible&&this._ticks.length>0},e.prototype.value2Tooltip=function(t){return isNaN(t)?this.chart._tooltip.options.nanText:t},e.prototype.isBased=function(){return!1},e.prototype.isBaseVisible=function(){return this.axisMin()<this.getBaseValue()},e.prototype.disconnect=function(){this._series=[]},e.prototype.getSeries=function(){var t=[];return this._series.forEach((function(e){t.push.apply(t,zx([],$x(e.getVisibleSeries()),!1))})),t},e.prototype.collectValues=function(){var t=this;this._values=[],this._series.forEach((function(e){e.collectValues(t,e.needAxes()?t._values:null)}))},e.prototype.collectRanges=function(){var t=this;this._series.forEach((function(e){e.needAxes()&&e.collectRanges(t._values)}))},e.prototype.collectReferentsValues=function(){var t=this;this._series.forEach((function(e){e.pointValuesPrepared(t)}))},e.prototype._prepare=function(){this._isEmpty=this._checkEmpty()},e.prototype._prepareRender=function(){var t,e,i,n=this._op.position;this._isHorz=this.chart.isInverted()?!this._isX:this._isX,this._isBetween=this.chart.isSplitted()&&"between"===n&&this._isX,this._isOpposite="opposite"===n,this._runPos=n,this._crosshair._setAxis(this._labelArgs.axis=this),this._doPrepareRender(),null===(i=this._label)||void 0===i||i._prepareRender();var r=this._series,o=this._values;if(this._isX&&this._prevSeries){if(!(this._seriesChanged=!_S.equalArrays(r,this._prevSeries)))try{for(var s=jx(r),a=s.next();!a.done;a=s.next()){if(a.value.seriesChanged()){this._seriesChanged=!0;break}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}}else this._seriesChanged=!1;if(this._zoom?this._range={min:this._zoom.start,max:this._zoom.end}:this._range=this._doCalculateRange(o),this._isX&&r.length>0)if(this.chart.isSplitted()){for(var u=[r[0]._row],l=1;l<r.length;l++)u.indexOf(r[l]._row)<0&&u.push(r[l]._row);u.forEach((function(t){var e=0,i=0;r.forEach((function(i){i._row==t&&i.isClusterable()&&(e+=uS(i.groupWidth(),1))})),r.forEach((function(n){if(n._row==t&&n.isClusterable()){var r=uS(n.groupWidth(),1)/e;n.setCluster(r,i),i+=r}}))}))}else{var h=0,p=0;r.forEach((function(t){t.isClusterable()&&(h+=uS(t.groupWidth(),1))})),r.forEach((function(t){if(t.isClusterable()){var e=uS(t.groupWidth(),1)/h;t.setCluster(e,p),p+=e}}))}},e.prototype.afterRender=function(){this._seriesChanged=!1,this._prevSeries=this._series,this._zooming=!1},e.prototype._buildTicks=function(t){this._ticks=this._doBuildTicks(this._range.min,this._range.max,this._vlen=t),this._labelArgs.count=this._ticks.length},e.prototype._calcPoints=function(t,e){var i=this;this._ticks.forEach((function(e){return e.pos=i.getPos(t,e.value)}))},e.prototype.getLabelLength=function(t,e){return this.getUnitLen(t,e)},e.prototype.getValue=function(t){return null==t?NaN:parseFloat(t)},e.prototype.incStep=function(t,e){return t+e},e.prototype.contains=function(t){return t>=this._range.min&&t<=this._range.max},e.prototype.resetZoom=function(){this._zoom&&(this._zoom=null,this._zooming=!0,this._changed())},e.prototype._prepareZoom=function(){return this._zoom||(this._zoom=new OV(this),this._buildTicks(this._vlen),this._zoom.start=this._zoom.min=this._min,this._zoom.end=this._zoom.max=this._max),this._zoom},e.prototype.zoom=function(t,e,i){void 0===i&&(i=NaN);var n=this._prepareZoom(),r=n.resize(t,e,i);return n.isFull()&&(this._zoom=null),this._zooming=!0,this._changed(),r},e.prototype.isZoomed=function(){return!!this._zoom},e.prototype.hasBreak=function(){return!1},e.prototype.isBreak=function(t){return!1},e.prototype.getTickLabelArgs=function(t,e){return this._labelArgs.index=t,this._labelArgs.value=e,this._labelArgs},e.prototype.getXValue=function(t){return t},e.prototype.setPrevRate=function(t){this._prevRate=t},e.prototype.prev=function(t){return isNaN(this._prevRate)?t:this._op.reversed?t+(this._vlen-t)*(this._prevRate-1):t*this._prevRate},e.prototype.load=function(e){return this.chart?t.prototype.load.call(this,this.chart.loadBase(e,this._isX?"xAxis":"yAxis",this._type())):t.prototype.load.call(this,e)},e.prototype._doApply=function(e){var i,n,r=this,o=this.guides;t.prototype._doApply.call(this,e),this._name=e.name||"Axis ".concat(this._index+1),(i=e.guide||e.guides)!==r._guides&&(r._guides=i,n=Yx(i)?i:[i],o.length=0,n.forEach((function(t){var e;(e="range"===t.type?new LV(r):"line"===t.type||isNaN(t.startValue)||isNaN(t.endValue)?new EV(r):new LV(r)).init().load(t),o.push(e)})))},e.prototype._setMinMax=function(t,e){this._min=t,this._max=e,this._single=t===e},e.prototype._connect=function(t){t&&!this._series.includes(t)&&this._series.push(t)},e.prototype._doCalculateRange=function(t){return{min:t.length>0?LS(oS.apply(void 0,zx([],$x(t),!1))||0):NaN,max:t.length>0?LS(sS.apply(void 0,zx([],$x(t),!1))||0):NaN}},e.defaults=lV(pV.defaults,{row:0,col:0,startAngle:0,totalAngle:360,position:"normal",reversed:!1,marginNear:0,marginFar:0,tooltipHeader:"<b>${name}</b>",tooltipRow:"${series}:<b> ${yValue}</b>",animatable:!0,fixedSize:!1}),e}(pV),BV=function(t){function e(e,i){var n=t.call(this,e)||this;return n._map=new Map,n.isX=i,n}return Fx(e,t),e.prototype._clear=function(){},e.prototype.load=function(t){var e=this,i=this.chart;Yx(t)?t.forEach((function(t,n){return e._items.push(e.$_loadAxis(i,t,n))})):this._items.push(this.$_loadAxis(i,t,0)),i.options[this.isX?"xAxis":"yAxis"]=this._items.map((function(t){return t.options}))},e.prototype.contains=function(t){return this._items.indexOf(t)>=0},e.prototype.get=function(t){return Ux(t)?this._map.get(t):this._items[t]},e.prototype.disconnect=function(){this._items.forEach((function(t){return t.disconnect()}))},e.prototype.prepare=function(){this._items.forEach((function(t){return t._prepare()}))},e.prototype.collectValues=function(){this._items.forEach((function(t){return t.collectValues()}))},e.prototype.collectRanges=function(){this._items.forEach((function(t){return t.collectRanges()}))},e.prototype.collectReferentsValues=function(){this._items.forEach((function(t){return t.collectReferentsValues()}))},e.prototype.prepareRender=function(){this._items.forEach((function(t){return t._prepareRender()}))},e.prototype.afterRender=function(){this._items.forEach((function(t){return t.afterRender()}))},e.prototype._buildTicks=function(t){this._items.sort((function(t,e){return t.isBased()?1:e.isBased()?-1:0})).forEach((function(e){return e._buildTicks(t)}))},e.prototype.connect=function(t){var e,i=this._items,n=t.options,r=this.isX?n.xAxis:n.yAxis;return Zx(r)&&r>=0&&r<i.length?e=i[r]:Ux(r)&&(e=i.find((function(t){return t.options.name===r}))),e||(e=i[0]),e&&(e._connect(t),this.isX?t.setCol(uS(n.col,e.options.col)):t.setRow(uS(n.row,e.options.row))),e},e.prototype.forEach=function(t){for(var e=0,i=this._items.length;e<i&&!0!==t(this._items[e],e);e++);},e.prototype.isZoomed=function(){var t,e;try{for(var i=jx(this._items),n=i.next();!n.done;n=i.next()){if(n.value.isZoomed())return!0}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.resetZoom=function(){this._items.forEach((function(t){return t.resetZoom()}))},e.prototype.$_loadAxis=function(t,e,i){var n,r,o,s=t._getAxisType(e.type);if(!s){var a=void 0;if(Yx(e.categories))a="category";else if(this.isX){var u=t._getSeries()._internalItems();if(u.length>0){a="category";try{for(var l=jx(u),h=l.next();!h.done;h=l.next()){var p=h.value;if(!p.canCategorized()){if(e.name&&p.options.xAxis===e.name){a=xS;break}if(p.options.xAxis===i){a=xS;break}if(OS(p.options.xAxis)&&0===i){a=xS;break}}}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}else a=null===(o=t._getSeries().first)||void 0===o?void 0:o.defYAxisType();a&&(s=t._getAxisType(a))}s||(s=t._getAxisType("linear"));var c=new s(t,this.isX).init();return c.load(e),c._index=i,c._isPolar=t.isPolar(),c},e}(cV),FV=function(){this._axes=[]},IV=function(){function t(t,e){this.chart=t,this.isX=e}return t.prototype.rows=function(){return this._matrix.length},t.prototype.cols=function(){return this._matrix[0].length},t.prototype.get=function(t,e){return this._matrix[t][e]},t.prototype.getRow=function(t){return this._matrix[t]},t.prototype.getColumn=function(t){return this._matrix.map((function(e){return e[t]}))},t.prototype._buildTicks=function(t){var e=this.isX;this._matrix.forEach((function(i,n){i.forEach((function(i,n){i._axes.forEach((function(i){i.isBased()||i._buildTicks(t[e?i.options.col:i.options.row])}))}))})),this._matrix.forEach((function(i,n){i.forEach((function(i,n){i._axes.forEach((function(i){i.isBased()&&i._buildTicks(t[e?i.options.col:i.options.row])}))}))}))},t.prototype._calcPoints=function(t,e){var i=this.isX;this._matrix.forEach((function(n){n.forEach((function(n,r){n._axes.forEach((function(n){var r=i?n.options.col:n.options.row;n._calcPoints(t[r],e)}))}))}))},t}(),jV=function(t){function e(e){return t.call(this,e,!0)||this}return Fx(e,t),e.prototype._prepare=function(t,e,i){for(var n=this._matrix=new Array(e+1),r=0;r<n.length;r++){n[r]=[];for(var o=0;o<i;o++)n[r].push(new FV)}t.forEach((function(t){var i=t.options.position,r=t._row;"opposite"===i?(r++,t._runPos=i):r<e-1&&"between"===i?(r++,t._runPos="normal"):t._runPos=i,n[r][t._col]._axes.push(t)}))},e}(IV),$V=function(t){function e(e){return t.call(this,e,!1)||this}return Fx(e,t),e.prototype._prepare=function(t,e,i){for(var n=this._matrix=new Array(e),r=0;r<n.length;r++){n[r]=[];for(var o=0;o<=i;o++)n[r].push(new FV)}t.forEach((function(t){var e=t.options.position,r=t._col;"opposite"===e?(r++,t._runPos=e):t._col<i-1&&"between"===e?(r++,t._runPos="normal"):t._runPos=e,n[t._row][r]._axes.push(t)}))},e}(IV),zV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doPrepareRender=function(t){},e}(pV),HV={},GV={},WV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.index=-1,e}return Fx(e,t),e.prototype._type=function(){return this.constructor.type},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.getSize=function(t,e){return{width:jS(this._widthDim||this._sizeDim,t,t),height:jS(this._heightDim||this._sizeDim,e,e)}},e.prototype.getLeft=function(t){return jS(this._leftDim,t)},e.prototype.getRight=function(t){return jS(this._rightDim,t)},e.prototype.getTop=function(t){return jS(this._topDim,t)},e.prototype.getBottom=function(t){return jS(this._bottomDim,t)},e.prototype.load=function(e){return this.chart?t.prototype.load.call(this,this.chart.loadBase(e,"gauge",this._type())):t.prototype.load.call(this,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._name=e.name||"Gauge ".concat(this.index+1),this._setDims(e,"left","right","top","bottom","width","height","siz")},e.defaults=lV(zV.defaults,{size:"100%"}),e}(zV),YV=function(t){function e(e){return t.call(this,e.chart)||this}return Fx(e,t),e}(pV),XV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._gindex=-1,e}return Fx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){HV[t.type]=t}))},e._loadGauge=function(t,e,i){var n=t._getGaugeType(e.type);n||(n=t._getGaugeType(i||t.gaugeType));var r=new n(t).init();return r.load(e),r},e.prototype.setGroup=function(t,e){this._group=t,this._gindex=e},e.defaults=lV(WV.defaults,{duration:500}),e}(WV),UV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._gauges=[],e._visibles=[],e}return Fx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){GV[t.type]=t,GV[t.gaugeType]=t}))},e.prototype.count=function(){return this._gauges.length},e.prototype.isEmpty=function(){return this._gauges.length<1},e.prototype.visibles=function(){return this._visibles.slice(0)},e.prototype.get=function(t){return this._gauges[t]},e.prototype.getVisible=function(t){return this._visibles[t]},e.prototype.calcedMinMax=function(){return{min:this._op.minValue,max:this._op.maxValue}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),Gx.call(e,"children")&&this.$_loadGauges(this.chart,e.children)},e.prototype._prepareRender=function(){var e=this;this._visibles=this._gauges.filter((function(t){return t.visible})),t.prototype._prepareRender.call(this),this._visibles.forEach((function(t,i){e._setGroup(t,i),t._prepareRender()}))},e.prototype.$_loadGauges=function(t,e){var i=this,n=this._gaugesType();Yx(e)?e.forEach((function(e,r){return i.$_add(XV._loadGauge(t,e,n))})):Wx(e)&&this.$_add(XV._loadGauge(t,e,n))},e.prototype.$_add=function(t){if(t._type()!==this._gaugesType())throw new Error("이 그룹에 포함될 수 없는 게이지입니다: "+t);this._gauges.push(t),t.index=this._gauges.length-1},e.prototype._setGroup=function(t,e){t.setGroup(this,e)},e.defaults=lV(WV.defaults,{minValue:0}),e}(WV),qV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._visibles=[],e._gauges=[],e}return Fx(e,t),Object.defineProperty(e.prototype,"firstGauge",{get:function(){return this._gauges[0]},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(t){return(t?this._visibles:this._items).length<1},e.prototype.getVisibles=function(){return this._visibles.slice(0)},e.prototype.getPaneVisibles=function(t,e){return this._visibles.filter((function(i){var n=i.options.row||0,r=i.options.col||0;return t===n&&e===r}))},e.prototype.getGauge=function(t){var e=this._map[t];if(e instanceof XV)return e},e.prototype.get=function(t){return Ux(t)?this._map[t]:this._items[t]},e.prototype.load=function(t){var e=this,i=this.chart,n=this._items=[],r=this._map={};Yx(t)?t.forEach((function(t,r){n.push(e.$_loadItem(i,t,r))})):Wx(t)&&n.push(this.$_loadItem(i,t,0)),n.forEach((function(t){if(t.name&&(r[t.name]=t),t instanceof UV)for(var i=0;i<t.count();i++){var n=t.get(i);n.name&&(r[n.name]=n),e._gauges.push(n)}else e._gauges.push(t)})),i.options.gauges=this._gauges.map((function(t){return t.options}))},e.prototype.prepareRender=function(){this._visibles=this._items.filter((function(t){return t.visible})),this._visibles.forEach((function(t){return t._prepareRender()}))},e.prototype.$_loadItem=function(t,e,i){var n=Yx(e.children)&&t._getGaugeGroupType(e.type||t.gaugeType);if(n||(n=t._getGaugeType(e.type||t.gaugeType)),!n)throw new Error("Invalid gauge type: "+e.type);var r=new n(t).init();return r.load(e),r.index=i,r},e}(cV),ZV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.updateValue=function(t){t!==this._op.value&&(this._op.value=t,this._changed())},e.prototype.getLabel=function(t,e){return this._runValue=e,t.options.text||(t.options.prefix||"")+"${value}"+(t.options.suffix||"")},e.prototype.getParam=function(t){switch(t){case"value":return this._runValue;case"min":return this._op.minValue;case"max":return this._op.maxValue}},e.prototype.calcedMinMax=function(){return{min:this._op.minValue,max:this._op.maxValue}},e.defaults=lV(XV.defaults,{minValue:0,maxValue:100,value:0,animatable:!0}),e}(XV);!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Fx(e,t)}(ZV);var KV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.scale=e,i}return Fx(e,t),e.defaults=lV(pV.defaults,{reversed:!1,length:7}),e}(pV),JV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getText=function(t){return _S.isValidNum(t)?this._getText(null,t,aS(t)>1e3,!0):t},e.prototype.getDefaultIconPos=function(){return"left"},e}(_V),QV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return Fx(e,t),e.prototype._doInit=function(){var t=this.chart;this._line=new pV(t).init(),this._tick=new KV(this).init(),this._label=new JV(t).init()},Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.range=function(){return{min:this._min,max:this._max}},e.prototype.isEmpty=function(){return this._max<=this._min},e.prototype.buildSteps=function(t,e,i){void 0===i&&(i=NaN),i=uS(i,e);var n=this._adjustMinMax(oS(e,i),sS(e,i)),r=n.min,o=n.max;return this._steps=this._buildSteps(t,r,o)},e.prototype.buildGroupSteps=function(t,e){var i=this._adjustGroupMinMax(e),n=i.min,r=i.max;return this._steps=this._buildSteps(t,n,r)},e.prototype.getRate=function(t){return(sS(this._min,t)-this._min)/(this._max-this._min)},e.prototype._adjustMinMax=function(t,e){var i=this.gauge;return t=uS(i.options.minValue,t),e=uS(i.options.maxValue,e),this._min=oS(t,e),this._max=sS(e,t),{min:this._min,max:this._max}},e.prototype._adjustGroupMinMax=function(t){var e=this.gauge,i=e.options.minValue,n=e.options.maxValue;return isNaN(i)&&(i=oS.apply(void 0,zx([],$x(t),!1))),isNaN(n)&&(n=sS.apply(void 0,zx([],$x(t),!1))),this._min=oS(i,n),this._max=sS(n,i),{min:this._min,max:this._max}},e.prototype._buildSteps=function(t,e,i){var n,r=this._op;return n=Array.isArray(r.steps)?r.steps.slice(0):r.stepCount>0?this._getStepsByCount(r.stepCount,e,i):r.stepInterval>0?this._getStepsByInterval(r.stepInterval,e,i):r.stepPixels>0?this._getStepsByPixels(t,r.stepPixels,e,i):[e,i],this._min=n[0],this._max=n[n.length-1],n},e.prototype._getStepsByCount=function(t,e,i){var n=(i-e)/(t-1),r=Math.pow(10,Math.floor(Math.log10(n))),o=[];n=this._step=Math.ceil(n/r)*r,o.push(LS(e));for(var s=1;s<t;s++)o.push(LS(o[s-1]+n));return o},e.prototype._getStepsByInterval=function(t,e,i){var n,r=[];for(r.push(n=e);n<i;)r.push(n+=t);return this._step=t,r},e.prototype._getStepMultiples=function(t){return[1,2,2.5,5,10]},e.prototype._getStepsByPixels=function(t,e,i,n){var r=[],o=n-i;if(0===o)return r;var s,a=o/(Math.floor(t/e)+1-1),u=Math.pow(10,Math.floor(Math.log10(a))),l=this._getStepMultiples(u),h=0;if(a/=u,l)if(a>l[h]){for(;h<l.length-1;h++)if(a>l[h]&&a<l[h+1]){a=l[++h];break}}else a=l[h];for(a*=u,this._step=a,r.push(LS(s=i));;){if((s+=a)>=n){r.push(LS(n));break}r.push(LS(s))}return r},e.defaults=lV(pV.defaults,{position:"default",stepPixels:48,gap:8}),e}(pV),tk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(pV.defaults,{visible:!1}),e}(pV),ek=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return Fx(e,t),e.prototype._doInit=function(){this._rangeLabel=new tk(this.chart).init(),this._tickLabel=new pV(this.chart).init()},Object.defineProperty(e.prototype,"rangeLabel",{get:function(){return this._rangeLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tickLabel",{get:function(){return this._tickLabel},enumerable:!1,configurable:!0}),e.prototype.getThickness=function(t){return this._thicknessDim?jS(this._thicknessDim,t,0):"inside"===this._op.position?t:e.defaults.thickness},e.prototype.getRanges=function(){return this.$_internalRanges().slice(0)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.ranges)!==n._ranges&&(n._ranges=i,n._runRanges=null),this._setDim(e,"thickness")},e.prototype.$_internalRanges=function(){if(!this._runRanges){var t=this.gauge.calcedMinMax();this._runRanges=US(this._ranges,t.min,t.max,!1,!0)||[]}return this._runRanges},e.defaults=lV(pV.defaults,{visible:!1,position:"default",thickness:7,gap:5,itemGap:0}),e}(pV),ik=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._domain={callback:function(t,e){return t.getParam(e)}},e}return Fx(e,t),e.prototype._doPrepareRender=function(t){this._domain.numberFormatter=this._numberFormatter},e.defaults=lV(fV.defaults,{animatable:!0}),e}(fV),nk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(QV),rk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._offsetX=0,e._offsetY=0,e}return Fx(e,t),e.prototype.getOffset=function(t,e){return{x:jS(this._offsetXDim,t,0),y:jS(this._offsetYDim,e,0)}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"offsetX","offsetY")},e.defaults=lV(ik.defaults,{offsetX:0,offsetY:0}),e}(ik),ok=function(){function t(t){void 0===t&&(t=!1),t?(this.setCenterX("50%"),this.setCenterY("50%"),this.setValueRadius("100%")):(this.setCenterX(sk.DEF_CENTER),this.setCenterY(sk.DEF_CENTER),this.setRadius(sk.DEF_RADIUS),this.setInnerRadius(sk.DEF_INNER))}return t.prototype.centerX=function(){return this._centerX},t.prototype.setCenterX=function(t){t!==this._centerX&&(this._centerX=t,this._centerXDim=FS(hS(t,sk.DEF_CENTER),!0))},t.prototype.centerY=function(){return this._centerY},t.prototype.setCenterY=function(t){t!==this._centerY&&(this._centerY=t,this._centerYDim=FS(hS(t,sk.DEF_CENTER),!0))},t.prototype.radius=function(){return this._radius},t.prototype.setRadius=function(t){t!==this._radius&&(this._radius=t,this._radiusDim=FS(hS(t,sk.DEF_RADIUS),!0))},t.prototype.innerRadius=function(){return this._innerRadius},t.prototype.setInnerRadius=function(t){t!==this._innerRadius&&(this._innerRadius=t,this._innerDim=FS(hS(t,sk.DEF_INNER),!0))},t.prototype.valueRadius=function(){return this._valueRadius},t.prototype.setValueRadius=function(t){t!==this._valueRadius&&(this._valueRadius=t,this._valueDim=FS(t,!0))},t.prototype.getCenter=function(t,e){return{x:jS(this._centerXDim,t,t/2),y:jS(this._centerYDim,e,e/2)}},t.prototype.getExtents=function(t){var e=jS(this._radiusDim,t,t/2),i=oS(e,this._innerDim?jS(this._innerDim,e):0),n=i+(e-i)/2;return{radius:e,inner:i,value:this._valueDim?jS(this._valueDim,n):n,radiusThick:e-i}},t.prototype.prepareAngles=function(t,e){var i=uS(t%360,0),n=sS(0,oS(360,uS(e,360)));this._startRad=VS+kS*i,this._handRad=kS*i,this._sweepRad=kS*n},t}(),sk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this._props=new ok,this._label=new rk(this.chart).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.getProps=function(){return this._childProps||this._props},e.prototype.getCenter=function(t,e){return this._group?this._childProps.getCenter(t,e):this._props.getCenter(t,e)},e.prototype.getExtents=function(t){return this._group?this._childProps.getExtents(t):this._props.getExtents(t)},e.prototype.labelVisible=function(){return this._label.visible},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=this._props;i.setCenterX(e.centerX),i.setCenterY(e.centerY),i.setRadius(e.radius),i.setInnerRadius(e.innerRadius),i.setValueRadius(e.valueRadius)},e.prototype.setGroup=function(e,i){t.prototype.setGroup.call(this,e,i),e&&!this._childProps&&(this._childProps=new ok)},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._label._prepareRender();var i=this._group;i?this._childProps.prepareAngles(i.options.startAngle,i.options.sweepAngle):this._props.prepareAngles(this._op.startAngle,this._op.sweepAngle)},e.DEF_CENTER="50%",e.DEF_RADIUS="40%",e.DEF_INNER="80%",e.defaults=lV(ZV.defaults,{startAngle:0,sweepAngle:360,clockwise:!0}),e}(ZV),ak=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.props=new ok,this._label=new rk(this.chart).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.setChildExtents=function(t){var e=this._visibles.length;if(e>0){var i=+this._op.itemGap||0,n=t.radius,r=(n-t.inner-i*(e-1))/e;this._visibles.forEach((function(t,e){var o=t._childProps;o.setRadius(n),o.setInnerRadius(n-r),n-=r+i}))}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=this.props;i.setCenterX(e.centerX),i.setCenterY(e.centerY),i.setRadius(e.radius),i.setInnerRadius(e.innerRadius),i.setValueRadius(e.valueRadius)},e.defaults=lV(UV.defaults,{startAngle:0,sweepAngle:360,clockwise:!0,itemGap:4,labelGap:10}),e}(UV),uk=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.body=e,i}return Fx(e,t),e.prototype._isVisible=function(){return!1!==this._op.visible&&this.body.isZoomed()&&this.body.canZoom()},e.defaults=lV(pV.defaults,{visible:void 0}),e}(pV),lk=function(t){function e(e){var i=t.call(this,e)||this;return i._annotations=new vV(i),i}return Fx(e,t),e.prototype._doInit=function(){this.image=new dV(null).init(),this.zoomButton=new uk(this).init()},e.prototype.anchorByName=function(t){var e=this.chart._getGauges().get(t);return e instanceof WV&&this.contains(e)?e:this._annotations.get(t)},e.prototype.base=function(){return this},e.prototype.canZoom=function(){return!this.chart.isEmpty(!0)&&("x"===this._op.zoomType||"y"===this._op.zoomType||"both"===this._op.zoomType)},e.prototype.getRadius=function(t,e){return jS(this._radiusDim,oS(t,e))},e.prototype.setPolar=function(t,e){return this._cx=jS(this._centerXDim,t),this._cy=jS(this._centerYDim,e),this._rd=jS(this._radiusDim,oS(t,e)),this},e.prototype.getPolar=function(t){return this.chart.isPolar()?{start:t?t.getStartAngle():0,total:t?t.getTotalAngle():0,cx:this._cx,cy:this._cy,rd:this._rd}:void 0},e.prototype.isZoomed=function(){return this.chart._getXAxes().isZoomed()||this.chart._getYAxes().isZoomed()},e.prototype.getAnnotations=function(){return this._annotations.getVisibles()},e.prototype.getAnnotation=function(t){return this._annotations.getAnnotation(t)},e.prototype.contains=function(t){return!0},e.prototype._doLoadProp=function(e,i){return"annotations"===e||"annotation"===e?(this._annotations.load(i,!0),!0):t.prototype._doLoadProp.call(this,e,i)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"radius","centerX","centerY")},e.prototype._doPrepareRender=function(t){this._annotations.prepareRender()},e.defaults=lV(pV.defaults,{circular:!0,zoomType:"none",radius:"45%",centerX:"50%",centerY:"50%"}),e}(pV),hk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(pV.defaults,{useLibrary:!1,menus:["png","jpeg","svg"],fileName:"realchart",scale:1,hideNavigator:!1,hideScrollbar:!1,hideZoomButton:!1}),e}(pV),pk=function(t){function e(e,i){var n=t.call(this,e.chart)||this;return n.legend=e,n.source=i,n}return Fx(e,t),e.prototype.text=function(){return this.source.legendLabel()},e.MARKER_SIZE=10,e}(pV),ck=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._items=[],e}return Fx(e,t),e.prototype.items=function(){return this._items.slice(0)},e.prototype.getLayout=function(){if("auto"!==this._op.layout||"body"===this._location)return this._op.layout;switch(this._location){case"bottom":case"top":return"horizontal";default:return"vertical"}},e.prototype.getMaxWidth=function(t){return jS(this._maxWidthDim,t,t)},e.prototype.getMaxHeight=function(t){return jS(this._maxHeightDim,t,t)},e.prototype._isVisible=function(){return!0===this._op.visible&&this._items.length>0||!1!==this._op.visible&&this._items.length>1},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"maxWidth","maxHeight")},e.prototype._doPrepareRender=function(e){var i=this;t.prototype._doPrepareRender.call(this,e),this._location=hS(this._op.location,"bottom"),this._items=this.chart._getLegendSources().map((function(t){return new pk(i,t)})),this._op.reversed&&(this._items=this._items.reverse())},e.defaults=lV(zV.defaults,{visible:void 0,location:"bottom",layout:"auto",alignBase:"body",gap:6,itemGap:8,markerVisible:!0,markerGap:4,lineGap:4,offsetX:0,offsetY:0,itemsAlign:"center",seriesHovering:!0}),e}(zV),fk={inOutSine:function(t){return-(eS(SS*t)-1)/2}},_k=function(t,e,i,n,r,o){var s=BS(e,null!=i?i:"initial"),a=BS(e,n),u=t.animate([s,a],{duration:r,fill:"none"});return o&&(u?u.addEventListener("finish",o):setTimeout(o,0)),u},dk=function(){function t(){var e=this;this.delay=0,this.duration=t.DURATION,this.easing="inOutSine",this._handler=function(){var t=+new Date-e._started-e.delay,i=oS(1,sS(0,LS(t/e.duration)));e._easing&&(i=e._easing(i));try{e._timer&&e._canUpdate()&&!1!==e._doUpdate(i)||e._stop()}finally{t>=e.duration?e._stop():e._started&&e._timer&&(e._ani=window.requestAnimationFrame(e._handler))}}}return t.prototype.start=function(t){return t&&(this.endHandler=t),this._start(this.duration,this.delay,this.easing),this},t.prototype.stop=function(){this._stop()},t.prototype._start=function(e,i,n){var r=this;void 0===i&&(i=0),void 0===n&&(n=null),this._started&&this._stop(),this.duration=uS(e,t.DURATION),this.delay=i||0,this._easing=fk[n],this._doStart(),this._started=+new Date,this._timer=setTimeout((function(){return r._stop()}),1.2*this.duration),this._handler()},t.prototype._stop=function(){var t;this._started&&(cancelAnimationFrame(this._ani),clearTimeout(this._timer),this._timer=null,this._started=null,this._doStop(),null===(t=this.endHandler)||void 0===t||t.call(this,this))},t.prototype._doStart=function(){},t.prototype._doStop=function(){},t.prototype._canUpdate=function(){return!0},t.DURATION=700,t.SHORT_DURATION=300,t}(),yk=Object.values({CIRCLE:"circle",DIAMOND:"diamond",SQUARE:"square",TRIANGLE:"triangle",STAR:"star",ITRIANGLE:"itriangle",RECTANGLE:"rectangle"}),gk=.001,vk=Math.PI,mk=function(){function t(){}return t.line=function(t,e,i,n){return["M",t,e,"L",i,n]},t.lines=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,n=["M",t[i],t[i+1]];i<t.length;i+=2)n.push("L",t[i],t[i+1]);return n.push("Z"),n},t.box=function(t,e,i,n){return["M",t,e,"L",i,e,"L",i,n,"L",t,n,"Z"]},t.rect=function(t){return this.rectangle(t.x,t.y,t.width,t.height)},t.rectangle=function(t,e,i,n){return["M",t,e,"h",i,"v",n,"h",-i,"Z"]},t.bar=function(t,e,i,n,r,o){var s=n>0,a=s?0:1;return r>0?o>0?(r=oS(aS(n)/2,i/2,r),o=oS(aS(n)/2,i/2,o),["M",t,e+(s?o:-o),"v",n+(s?-o-r:o+r),"a",r,r,0,0,a,r,s?r:-r,"h",i-2*r,"a",r,r,0,0,a,r,s?-r:r,"v",-n+(s?r+o:-r-o),"a",o,o,0,0,a,-o,s?-o:o,"h",2*o-i,"a",o,o,0,0,a,-o,s?o:-o,"Z"]):(r=oS(aS(n)/2,i/2,r),["M",t,e,"v",n+(s?-r:r),"a",r,r,0,0,a,r,s?r:-r,"h",i-2*r,"a",r,r,0,0,a,r,s?-r:r,"v",-n-r,"Z"]):o>0?(o=oS(aS(n)/2,i/2,o),["M",t,e+(s?o:-o),"v",n+(s?-o:+o),"h",i,"v",-n+(s?o:-o),"a",o,o,0,0,a,-o,s?-o:o,"h",2*o-i,"a",o,o,0,0,a,-o,s?o:-o,"Z"]):["M",t,e,"h",i,"v",n,"h",-i,"v",-n,"Z"]},t.square=function(t,e,i,n){var r=oS(i,n);return["M",t+=(i-r)/2,e+=(n-r)/2,"h",r,"v",r,"h",-r,"Z"]},t.circle=function(t,e,i){return["M",t,e,"m",i,0,"a",i,i,0,1,1,2*-i,0,"a",i,i,0,1,1,2*i,0]},t.arc=function(t,e,i,n,r,o,s,a){void 0===a&&(a=!1);var u=ES(aS(o-r)),l=2*vk-u<.01,h=u-vk<.01?0:1,p=s?1:0,c=eS(r),f=iS(r),_=eS(o-=l?p?gk:-.001:0),d=iS(o),y=[];return y.push("M",t+i*c,e+n*f,"A",i,n,0,h,p,t+i*_,e+n*d),l&&y.push("M",t,e),a&&y.push("Z"),y},t.sector=function(t,e,i,n,r,o,s,a){var u=ES(aS(s-o)),l=2*vk-u<gk,h=u-vk<gk?0:1,p=a?1:0,c=eS(o),f=iS(o),_=eS(s-=l?p?gk:-.001:0),d=iS(s),y=i*r,g=n*r,v=[];return v.push("M",t+i*c,e+n*f,"A",i,n,0,h,p,t+i*_,e+n*d),l?v.push("M",t+y*_,e+g*d):v.push("L",t+y*_,e+g*d),isNaN(y)||v.push("A",y,g,0,h,1-p,t+y*c,e+g*f),v.push("Z"),v},t.diamond=function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n/2,"L",t+i/2,e+n,"L",t,e+n/2,"Z"]},t.triangle=function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n,"L",t,e+n,"Z"]},t.itriangle=function(t,e,i,n){return["M",t,e,"L",t+i,e,"L",t+i/2,e+n,"Z"]},t.star=function(t,e,i,n){var r=-Math.PI/2,o=t+i/2,s=e+n/2+(n/2-n/2*iS(r+6*Math.PI/5))/2,a=i/2,u=n/2,l=i/4,h=n/4,p=2*Math.PI/5,c=p/2,f=[];f.push("M",o+a*eS(r),s+u*iS(r));for(var _=0;_<5;_++)f.push("L",o+a*eS(r),s+u*iS(r),"L",o+l*eS(r+c),s+h*iS(r+c)),r+=p;return f.push("Z"),f},t.setShape=function(e,i,n,r){var o;switch(i){case"square":case"diamond":case"triangle":case"itriangle":case"star":case"rectangle":o=t[i](0,0,2*n,2*r);break;default:o=t.circle(n,r,oS(n,r))}e.setPath(o)},t}(),bk=function(t){function e(e,i,n){void 0===i&&(i=xS),void 0===n&&(n=xS);var r=t.call(this,e,i,"rect")||this;return r.rect=n,r}return Fx(e,t),e.create=function(t,i,n,r,o,s,a){return void 0===a&&(a=0),new e(t,i,{x:n,y:r,width:o,height:s,r:a})},Object.defineProperty(e.prototype,"rect",{get:function(){return this._rect&&Ix({},this._rect)},set:function(t){if(t!==this._rect&&(this._rect=t&&Ix({},t),t)){this.setRect(t);var e=t.rx||t.r,i=t.ry||t.r;e>0&&this.dom.setAttribute("rx",String(e)),i>0&&this.dom.setAttribute("rx",String(i))}},enumerable:!1,configurable:!0}),e.prototype.resizeRect=function(t,e){var i=this.getStyle("border-radius");return this.resize(t,e),i&&this.dom.setAttribute("rx",i),this},e.prototype.setBounds=function(t,e,i,n,r){return void 0===r&&(r=0),this.rect={x:t,y:e,width:i,height:n,r:r},this},e.prototype.setBox=function(t,e,i,n){this.rect=n<0?{x:t,y:e+n,width:i,height:-n}:{x:t,y:e,width:i,height:n}},e.prototype.setRadius=function(t){t>0&&(this._rect&&(this._rect.rx=this._rect.ry=t),this.dom.setAttribute("rx",String(t)),this.dom.setAttribute("ry",String(t)))},e}(EP),wk=function(t){function e(e,i){return void 0===i&&(i=xS),t.call(this,e,i)||this}return Fx(e,t),e.prototype.setBox=function(t,e,i,n){return this.setPath(mk.box(t,e,i,n)),this},e}(OP);!function(t){function e(e,i){return void 0===i&&(i=xS),t.call(this,e,"dlchart-point-back",i)||this}Fx(e,t)}(bk);var xk=0,Sk=function(){function t(t){this.pid=xk++,this.visible=!0,this.source=t}return t.prototype.ariaHint=function(){return(this.x||this.xValue)+", "+this.yValue},t.prototype.labelCount=function(){return 1},t.prototype.getValue=function(){return this.yValue},t.prototype.copy=function(){return Ix({},this)},t.prototype.assignTo=function(t){return t||(t={}),this._assignTo(t),t},t.prototype.getProp=function(t){return null!==this.source&&this.source[t]},t.prototype.parse=function(t){var e=this.source;null==e?this.isNull=!0:Yx(e)?0===e.length?this.isNull=!0:this._readArray(t,e):Wx(e)?(this._readObject(t,e),(Yx(e.drillDown)||Wx(e.drillDown))&&(this.drillDown=e.drillDown)):this._readSingle(e),this.initValues()},t.prototype.getLabelValue=function(t){return this.yLabel===xS?this.yValue:this.yLabel},t.prototype.swap=function(){var t=this.xPos;this.xPos=this.yPos,this.yPos=t},t.prototype.updateValues=function(t,e){if(this._prev=this.copy(),Wx(e)?this.source=Object.assign(Wx(this.source)?this.source:{},e):Yx(e)?this.source=e.slice(0):this.source=e,this.parse(t),this._valuesChangd(this._prev))return this._prev;this._prev=xS},t.prototype.getTooltip=function(t){var e;return t in this?this[t]:null===(e=this.source)||void 0===e?void 0:e[t]},t.prototype.initValues=function(){},t.prototype.initPrev=function(t,e){e.yValue=t.axisMin()},t.prototype.applyValueRate=function(t,e){},t.prototype._assignTo=function(t){return Jx(t,{index:this.index,vindex:this.vindex,x:this.x,y:this.y,xValue:this.xValue,yValue:this.yValue,color:this.color,source:this.source})},t.prototype._readArray=function(t,e){var i=+t.options.colorField;e.length>1?(this.x=e[uS(t.options.xField,0)],this.y=e[uS(t.options.yField,1)]):this.y=e[0],isNaN(i)||(this.color=e[i])},t.prototype._readObject=function(t,e){var i,n,r,o;this.x=(i=t._xFielder(e),n=e.x,r=e.name,o=e.label,void 0!==i?i:void 0!==n?n:null!=r?r:o),this.y=pS(t._yFielder(e),e.y,e.value),this.color=hS(t._colorFielder(e),e.color)},t.prototype._readSingle=function(t){this.y=t},t.prototype._valuesChangd=function(t){return this.x!==t.x||this.y!==t.y},t}(),Pk=function(){function t(t){this._points=[],this._owner=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this._points.length},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this._points.length<1},t.prototype.get=function(t){return this._points[t]},t.prototype.pointAt=function(t,e){function i(t,e,i){return Wx(t)?t.pid===e:t===i}return this._points.find((function(n){return i(t,n.pid,n.xValue)&&(void 0===e||i(e,n.pid,n.yValue))}))},t.prototype.contains=function(t){return this._points.indexOf(t)>=0},t.prototype.load=function(t){Yx(t)?this._points=this._owner.initPoints(t):this._points=[]},t.prototype.clear=function(){this._points=[]},t.prototype.add=function(t){this._points.push(t)},t.prototype.remove=function(t){var e=this._points.indexOf(t);if(e>=0)return this._points.splice(e,1),!0},t.prototype.getProps=function(t){return this._points.map((function(e){return e.getProp(t)}))},t.prototype.getCategories=function(t){return this._points.map((function(e){return e[t]}))},t.prototype.forEach=function(t){for(var e=0,i=this._points.length;e<i&&!0!==t(this._points[e],e);e++);},t.prototype.getPoints=function(t,e){var i=t._zoom;if(i){var n=this._points,r=n.length,o=i.start,s=i.end;if(t.continuous()){var a=0,u=void 0,l=void 0;for(l=Number.MIN_VALUE;a<r-1;a++){if(u=n[a],o>=l&&o<u.xValue+(n[a+1].xValue-u.xValue)/2){o=a;break}l=u.xValue}for(o!==a&&(o=r-1),l=Number.MAX_VALUE,a=r-1;a>0;a--){if(u=n[a],s<l&&s>u.xValue-(u.xValue-n[a-1].xValue)/2){s=a;break}l=u.xValue}s!==a&&(s=0),o=sS(o-1,0),s=oS(s+1,r-1)}else o=sS(0,Math.floor(o)),s=oS(Math.ceil(s),r-1);return this._points.slice(o,s+1)}return this._points},t}(),Vk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getLabelValue=function(t){return this.zValue},e.prototype.getValue=function(){return this.zValue},e.prototype.getZValue=function(){return this.zValue},e.prototype._assignTo=function(e){return Jx(t.prototype._assignTo.call(this,e),{z:this.z,zValue:this.zValue})},e.prototype._valuesChangd=function(e){return this.z!==e.z||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){if(e.length<=1)this.isNull=!0;else{var i=e.length>2?1:0;i>0&&(this.x=e[uS(t.options.xField,0)]),this.y=e[uS(t.options.yField,0+i)],this.z=e[uS(t.options.zField,1+i)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.z=hS(e._zFielder(i),i.z))},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.z=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.zValue))},e.prototype.initValues=function(){this.zValue=parseFloat(this.z)},e.prototype.initPrev=function(t,e){e.yValue=e.zValue=this.yValue},e.prototype.applyValueRate=function(t,e){this.zValue=cS(t.zValue,this.zValue,e)},e}(Sk),kk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype.labelCount=function(){return 2},e.prototype.getLabelValue=function(t){return 1===t?this.lowValue:this.yValue},e.prototype._assignTo=function(e){return Jx(t.prototype._assignTo.call(this,e),{low:this.low,high:this.high,lowValue:this.lowValue,highValue:this.yValue})},e.prototype._valuesChangd=function(e){return this.low!==e.low||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){var i=t.options,n=e.length>2?1:0;this.low=e[uS(i.lowField,0+n)],this.y=e[lS(i.highField,i.yField,1+n)],n>0&&(this.x=e[uS(i.xField,0)])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.low=hS(i[e.options.lowField],i.low),this.y=pS(i[e.options.highField],i.high,this.y))},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=cS(t.lowValue,this.lowValue,e)},e}(Sk),Ak=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getPosition=function(){var t=this._op.position;return"point"===t||"edge"===t?t:this.axis._isX?"point":"edge"},e.defaults=lV(NV.defaults,{step:1}),e}(NV),Ck=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getTick=function(t,e){return null!=e?this._getText(e,e,!1,!1):""},e.prototype.getIcon=function(t){var e;return null===(e=this.axis._categories[t.index])||void 0===e?void 0:e.i},e}(MV),Ek=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getPoints=function(t){var e=t._pts,i=t._ticks.length,n=[];if(i>0){var r=Math.max(1,t.tick.options.step||1);if(r>1)for(var o=0,s=1,a=e.length;o<=i&&s<a;o++,s+=r)n.push(e[s]);else for(o=0;o<=i;o++)n.push(e[o+1])}return n},e}(kV),Lk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._catPad=0,e._tstep=1,e}return Fx(e,t),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){return this._grid},enumerable:!1,configurable:!0}),e.prototype.getCategories=function(){return this._cats},e.prototype.xValueAt=function(t){for(var e=2;e<this._pts.length-1;e++)if(t>=this._pts[e-1]&&t<this._pts[e])return this._catMin+e-2;return-1},e.prototype.getWdith=function(t,e){return 0},e.prototype._type=function(){return"category"},e.prototype.unitPad=function(){return this._catPad},e.prototype.continuous=function(){return!1},e.prototype._createGrid=function(){return new Ek(this)},e.prototype._createTickModel=function(){return new Ak(this)},e.prototype._createLabel=function(){return new Ck(this)},e.prototype.collectValues=function(){this.$_collectCategories(this._series),this._isEmpty,this._isEmpty?this._values=_S.makeIntArray(0,this._categories.length):t.prototype.collectValues.call(this)},e.prototype.getStartAngle=function(){var e=t.prototype.getStartAngle.call(this),i=+this._op.startOffset;return i>0&&(e-=oS(i,1)*this._categories[0].w*PS/this._len),e},e.prototype._doPrepareRender=function(){var t=this._op;this._cats=[],this._weights=[],this._isPolar||this._zoom?this._minPad=this._maxPad=this._catPad=0:(this._minPad=lS(t.minPadding,t.padding,0),this._maxPad=lS(t.maxPadding,t.padding,0),this._catPad=Math.max(0,Math.min(.5,uS(t.categoryPadding,0))))},e.prototype._doBuildTicks=function(t,e,i){var n=this._label,r=this._cats=this._categories.map((function(t){return t.c})),o=this._weights=this._categories.map((function(t){return t.w})),s=this._tick.options.step||1,a=[],u=t,l=e;t=this._catMin=Math.floor(t+.5),e=this._catMax=Math.ceil(e-.5);var h=this._catLen=e-t+1;this._tstep=Math.max(1,Math.min(h,this._tick.options.step||1));for(var p=-1;p>=t;p--)r.unshift(String(p)),o.unshift(1);h=this._len=this._minPad+this._maxPad+o.reduce((function(t,e){return t+e}),0),h+=this._catLen-r.length,o.length=r.length=this._catLen||0;var c=this._pts=[];if(h>0){var f=this._minPad;c.push(0);for(p=t;p<=e;p++)c.push(f/h),f+=o[p-t]||1;c.push(f/h),c.push((f+this._maxPad)/h)}for(p=1;p<c.length-2;p+=s){var _=t+p-1,d=this._categories[t+p-1];a.push({index:p-1,pos:NaN,value:_,label:n.getTick(p-1,d?d.t:_)})}return this._setMinMax(u,l),a},e.prototype._calcPoints=function(e,i){t.prototype._calcPoints.call(this,e,i);var n=this._pts;if(i>0)for(var r=0;r<n.length;r++)n[r]/=this._vlen;for(r=0;r<n.length;r++)n[r]*=e;if(this._isPolar){if(i>0){var o=this._op.totalAngle*kS;this._pts=n.map((function(t){return t/e*o}))}}else{var s=void 0;s="edge"===this._tick.getPosition()?n.slice(1,n.length-1):this._ticks.map((function(t){return t.pos})),this._markPoints=s}},e.prototype.getPos=function(t,e){var i=this._pts,n=Math.floor(e-this._catMin+.5),r=i[n+1]+(i[n+2]-i[n+1])*(e-Math.floor(e+.5)+.5);return this._op.reversed?t-r:r},e.prototype.valueAt=function(t,e){this._op.reversed&&(e=t-e);for(var i=1;i<this._pts.length-1;i++)if(e>=this._pts[i]&&e<this._pts[i+1])return this._catMin+i-.5},e.prototype.getUnitLen=function(t,e){var i=Math.floor(e-this._catMin+.5);return this._pts[i+2]-this._pts[i+2-1]},e.prototype.getLabelLength=function(t,e){var i=Math.floor(e-this._catMin+.5);return i>this._tstep?this._pts[i+2]-this._pts[i+2-this._tstep]:this._pts[i+2+this._tstep-1]-this._pts[i+2-1]},e.prototype.getValue=function(t){return Zx(t)?t:this._map[t]},e.prototype.getXValue=function(t){return this._cats[t-this._catMin]||t},e.prototype.$_collectCategories=function(t){var e,i,n,r,o=this,s=this._op.categories,a=this._categories=[];if(Yx(s)&&s.length>0)this._len=0,s.forEach((function(t){var e,i,n=null==t?1:uS(t.weight,1),r=t&&t.icon;null==t?i=e=null:Wx(t)?(e=hS(t.name,t.label),i=hS(t.label,t.name)):i=e=String(t),o._len+=n,a.push({c:e,t:i,w:n,i:r})}));else if(Yx(t))try{for(var u=jx(t),l=u.next();!l.done;l=u.next()){var h=l.value.collectCategories(this),p=function(t){a.find((function(e){return e.c===t}))||a.push({c:t,w:1,t:t})};try{for(var c=(n=void 0,jx(h)),f=c.next();!f.done;f=c.next()){p(f.value)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(e)throw e.error}}this._map={},a.forEach((function(t,e){null!=t.c&&(o._map[t.c]=e)}))},e.type="category",e.defaults=lV(DV.defaults,{padding:0,categoryPadding:.1,startOffset:0}),e}(DV),Nk={},Mk={},Tk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){var e=this;t.prototype._doInit.call(this),this._domain={callback:function(t,i){return e._point[i]||e._point.source[i]}}},e.prototype.getValue=function(t,e){if(this._op.textField){var i=t.getProp(this._op.textField);if(null!=i)return i}return t.getLabelValue(e)},e.prototype.getTextDomain=function(t){return this._point=t,this._domain},e.prototype.getText=function(t){return _S.isValidNum(t)?this._getText(null,t,aS(t)>1e3,!0):t},e.prototype.getOffset=function(){var t=+this._op.offset;return isNaN(t)?"inside"===this._op.position?0:e.OFFSET:t},e.prototype.getDefaultIconPos=function(){return"top"},e.prototype._isVisible=function(){return this._op.visible||Xx(this._op.visibleCallback)},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.visibleCallback=e,this._op.visible=!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._domain.numberFormatter=this._numberFormatter},e.OFFSET=4,e.defaults=lV(_V.defaults,{visible:void 0,position:"auto",textAlign:"center",distance:25}),e}(_V),Ok=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i}return Fx(e,t),e.prototype._doPrepareRender=function(t){var e=this.series,i=this._res=(e._runPoints.length-1)*Math.max(1,+this._op.resolution||5),n=e._minX>0?0:(e._maxX-e._minX)/i-e._minX,r=e._minY>0?0:(e._maxY-e._minY)/i-e._minY,o=e._runPoints.filter((function(t){return!t.isNull})).map((function(t){return{x:t.xValue+n,y:t.yValue+r}}));(this["_"+this._op.type]||this._linear).call(this,o,this._points=[]),this._points.forEach((function(t){t.x-=n,t.y-=r}))},e.prototype.isCurved=function(){var t=this._op.type;return!0===this._op.curved||null==this._op.curved&&("exponential"===t||"logarithmic"===t||"power"===t)},e.prototype._calcLine=function(t){var e=t.length,i=0,n=0,r=0,o=0;t.forEach((function(t){i+=t.x,n+=t.y,r+=t.x*t.y,o+=t.x*t.x}));var s=e*o-i*i,a=0===s?0:(e*r-i*n)/s;return{m:a,a:(n-a*i)/e}},e.prototype._linear=function(t,e){var i=t.length;if(i>1){var n=this._calcLine(t),r=n.m,o=n.a;e.push({x:t[0].x,y:r*t[0].x+o}),e.push({x:t[i-1].x,y:r*t[i-1].x+o})}},e.prototype._logarithmic=function(t,e){var i=t.length;if(i>1)for(var n=t.map((function(t){return{x:Math.log(t.x),y:uS(t.y,0)}})),r=this._calcLine(n),o=r.m,s=r.a,a=t[0].x,u=t[i-1].x,l=(u-a)/this._res,h=a;h<=u;h+=l){var p=s+Math.log(h)*o;e.push({x:h,y:p})}},e.prototype._power=function(t,e){var i=t.length;if(i>1)for(var n=t.map((function(t){return{x:Math.log(t.x),y:Math.log(t.y)}})),r=this._calcLine(n),o=r.m,s=r.a,a=Math.exp(s),u=t[0].x,l=t[i-1].x,h=(l-u)/this._res,p=u;p<=l;p+=h){var c=a*Math.pow(p,o);e.push({x:p,y:c})}},e.prototype._calcLine2=function(t){t.length;var e=0,i=0,n=0,r=0,o=0;t.forEach((function(t){t.x,e+=t.y,i+=t.x*t.x*t.y,n+=t.y*Math.log(t.y),r+=t.x*t.y*Math.log(t.y),o+=t.x*t.y}));var s=e*i-o*o,a=Math.exp((i*n-o*r)/s);return{m:(e*r-o*n)/s,a:a}},e.prototype._exponential=function(t,e){var i=t.length;if(i>1)for(var n=t.map((function(t){return{x:t.x,y:t.y}})),r=this._calcLine2(n),o=r.m,s=r.a,a=t[0].x,u=t[i-1].x,l=(u-a)/this._res,h=a;h<=u;h+=l){var p=s*Math.exp(o*h);e.push({x:h,y:p})}},e.prototype._polynomial=function(t,e){var i=t.length;if(i>1){for(var n=[],r=[],o=0,s=0,a=0;a<3;a++){for(var u=0;u<i;u++)o+=Math.pow(t[u].x,a)*t[u].y;n.push(o),o=0;for(var l=[],h=0;h<3;h++){for(u=0;u<i;u++)s+=Math.pow(t[u].x,a+h);l.push(s),s=0}r.push(l)}r.push(n);for(var p=function(t,e){for(var i=t,n=t.length-1,r=[e],o=0;o<n;o++){for(var s=o,a=o+1;a<n;a++)aS(i[o][a])>aS(i[o][s])&&(s=a);for(var u=o;u<n+1;u++){var l=i[u][o];i[u][o]=i[u][s],i[u][s]=l}for(a=o+1;a<n;a++)for(u=n;u>=o;u--)i[u][a]-=i[u][o]*i[o][a]/i[o][o]}for(a=n-1;a>=0;a--){var h=0;for(u=a+1;u<n;u++)h+=i[u][a]*r[u];r[a]=(i[n][a]-h)/i[a][a]}return r}(r,3),c=t[0].x,f=t[i-1].x,_=(f-c)/this._res,d=function(t){var i=p.reduce((function(e,i,n){return e+i*Math.pow(t,n)}),0);e.push({x:t,y:i})},y=c;y<=f;y+=_)d(y)}},e.prototype._movingAverage=function(t,e){for(var i=t.length,n=sS(1,oS(i-1,this._op.movingInterval)),r=n;r<=i;){var o=t.slice(r-n,r).reduce((function(t,e){return t+uS(e.y,0)}),0);e.push({x:t[r-1].x,y:o/n}),r++}},e.defaults=lV(pV.defaults,{visible:!1,type:"linear",resolution:5,movingInterval:2}),e}(pV),Rk={x:"xValue",y:"yValue",z:"zValue"},Dk=function(t){function e(e,i){var n=t.call(this)||this;return n.series=e,n.point=i,n.duration=500,n.endHandler=function(){delete n.point._vr,n.series._changed(),n.series=n.point=null},n}return Fx(e,t),e.prototype._doUpdate=function(t){return this.point._vr=t,this.series._changed(),!0},e}(dk),Bk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._row=0,e._col=0,e.index=-1,e.seriesIndex=0,e._simpleMode=!1,e}return Fx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){Nk[t.type]=t}))},e._loadSeries=function(t,e,i,n){var r=t._getSeriesType(i.type)||t._getSeriesType(n||t.type);if(!r)throw new Error("Invalid series type: "+i.type+", "+t.type);var o=new r(t).init();return o.index=e,o.seriesIndex=t._seriesIndex++,o.load(i),o},e.getPointTooltipParam=function(t,e,i){switch(i){case"series":return t.displayName();case"name":return e.getTooltip(i)||t._xAxisObj.getXValue(e.xValue);case"xValue":return t._xAxisObj.value2Tooltip(e.xValue);case"yValue":return t._yAxisObj.value2Tooltip(e[i]);default:return e.getTooltip(i)}},e.prototype._doInit=function(){this._points=new Pk(this),this._pointArgs=this._createPointArgs(),this._pointLabel=this._createLabel(this.chart).init(),this._trendline=new Ok(this).init()},e.prototype.onDataValueChanged=function(t,e,i,n,r){_S.log("onDataValueChanged",e,i,n,r);var o=this._runPoints[e];if(o){var s={};s[i]=n,this.updatePoint(o,s)}},e.prototype.onDataRowUpdated=function(t,e,i){},e.prototype.onDataRowAdded=function(t,e){_S.log("onDataRowAdded",e),this.addPoint(t.getRow(e))},e.prototype.onDataRowDeleted=function(t,e){_S.log("onDataRowDeleted",e);var i=this._runPoints[e];i&&this.removePoint(i)},e.prototype.onDataChanged=function(t){_S.log("onDataChanged")},e.prototype.getTooltipText=function(t,e){return this._op.tooltipCallback?(this._getPointCallbackArgs(this._pointArgs,e),this._op.tooltipCallback(this._pointArgs)):this._op.tooltipText},e.prototype.getTooltipParam=function(t,i,n){return e.getPointTooltipParam(t,i,n)},e.prototype._type=function(){return this.constructor.type},e.prototype._viewType=function(){return this._type()},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trendline",{get:function(){return this._trendline},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},enumerable:!1,configurable:!0}),e.prototype._setData=function(t){t!==this._data&&(this._op.data=this._data=t,this._dataSourceDirty=!0,this._changed())},e.prototype.contains=function(t){return this._points.contains(t)},Object.defineProperty(e.prototype,"pointCount",{get:function(){return this._runPoints.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visiblePointCount",{get:function(){return this._visPoints.length},enumerable:!1,configurable:!0}),e.prototype.getPoints=function(){return this._points},e.prototype._getLabeledPoints=function(){return this._points.getPoints(this._xAxisObj,this._yAxisObj)},e.prototype._getVisiblePoints=function(){return this._points.getPoints(this._xAxisObj,this._yAxisObj)},e.prototype.pointLabelCount=function(){return 1},e.prototype.isEmpty=function(){return this._points.isEmpty()},e.prototype.needAxes=function(){return!0},e.prototype.canCategorized=function(){return!1},e.prototype.hasZ=function(){return!1},e.prototype.defYAxisType=function(){return"linear"},e.prototype.isClusterable=function(){return!1},e.prototype.isMarker=function(){return!1},e.prototype.displayName=function(){return this._op.label||this.name},e.prototype.legendMarker=function(t,e){return this._legendMarker||(this._legendMarker=this._createLegendMarker(t,+e||pk.MARKER_SIZE)),this._legendMarker},e.prototype.legendColor=function(){return this._calcedColor},e.prototype.legendLabel=function(){return this._op.label||this.name},e.prototype.styleLegendMarker=function(t){},e.prototype.canMixWith=function(t){return!0},e.prototype.getBaseValue=function(t){return NaN},e.prototype.isBased=function(t){return!1},e.prototype.canMinPadding=function(t,e){var i=this.getBaseValue(t);return isNaN(i)||!this.isBased(t)||e<i},e.prototype.canMaxPadding=function(t,e){var i=this.getBaseValue(t);return isNaN(i)||!this.isBased(t)||e>i},e.prototype.hasShape=function(){return!1},e.prototype.setShape=function(t){},e.prototype.seriesChanged=function(){return this._pointsChanged},e.prototype.getMinPointWidth=function(){return NaN},e.prototype.getVisibleSeries=function(){return[this]},e.prototype._getNoClip=function(t){return this._group?this._group.options.noClip:this._op.noClip},e.prototype.needClip=function(t){var e=this._getNoClip(t);return t?!1===e:!0!==e},e.prototype.setCol=function(t){this._col=t},e.prototype.setRow=function(t){this._row=t},e.prototype.initPoints=function(t){var e=this;return this._containsNull=!1,t.map((function(t,i){return e.$_addPoint(t,i)}))},e.prototype.$_getXStart=function(t){var e=t.getValue(this._op.xStart),i=isNaN(e)?t.getValue(this.chart._chartOptions.getXStart(t)):e;return t._zoom?Math.floor(t._zoom.start):i||0},e.prototype.$_getXStep=function(t){return hS(this._op.xStep,this.chart._chartOptions.options.xStep)||1},e.prototype._prepareRender=function(){if(this._xAxisObj=this._group?this._group._xAxisObj:this.chart._connectSeries(this,!0),this._yAxisObj=this._group?this._group._yAxisObj:this.chart._connectSeries(this,!1),this._calcedColor=void 0,this._dataSourceDirty){var e=this._doLoadData(this._data);this._loadPoints(e),this._dataSourceDirty=!1}this._runPoints=this._points.getPoints(this._xAxisObj,this._yAxisObj),this._pointLabel._prepareRender(),t.prototype._prepareRender.call(this)},e.prototype.prepareAfter=function(){this._pointsChanged=!1},e.prototype.collectCategories=function(t){if(t instanceof Lk){var e=t.options.categoryField;return null!=e?this._points.getProps(e):this._points.getCategories(t===this._xAxisObj?"x":"y").filter((function(t){return Ux(t)}))}},e.prototype.collectValues=function(t,e){if(t===this._xAxisObj){var i=this.$_getXStart(t),n=this.$_getXStep(t);Ux(n)&&(n=n.trim()),this._runPoints.forEach((function(r,o){var s=t.getValue(r.x);isNaN(s)&&(s=i,i=t.incStep(i,n)),isNaN(s)?r.isNull=!0:(r.xValue=s,e&&e.push(s))}))}else this._runPoints.forEach((function(i,n){if(i.isNull)i.y=i.yGroup=i.yValue=NaN;else{var r=null==i.y?NaN:t.getValue(i.y);isNaN(r)&&(r=t.getValue(i.y)),i.initValues(),isNaN(i._vr)||(isNaN(i._prev.yValue)&&i.initPrev(t,i._prev),r=i._prev.yValue+(r-i._prev.yValue)*i._vr,i.applyValueRate(i._prev,i._vr)),isNaN(r)?i.yGroup=0:(i.yGroup=i.yValue=r,e&&e.push(r)),i.isNull=isNaN(i.yValue)}}))},e.prototype.collectRanges=function(t){var e=this._visPoints,i=e.length;if(i>0){var n=this._pointArgs,r=e[0],o=r.xValue,s=o,a=r.yValue,u=a,l=r.zValue,h=l,p=this.hasZ();r.vindex=0;for(var c=1;c<i;c++)(r=e[c]).vindex=c,isNaN(u)&&!isNaN(r.yValue)?a=u=r.yValue:r.yValue>u?u=r.yValue:r.yValue<a&&(a=r.yValue),isNaN(s)&&!isNaN(r.xValue)?o=s=r.xValue:r.xValue>s?s=r.xValue:r.xValue<o&&(o=r.xValue);if(p)for(c=1;c<i;c++){var f=e[c].zValue;isNaN(h)&&!isNaN(f)?l=h=f:f>h?h=f:f<l&&(l=f)}if(this._minY=a,this._maxY=u,this._minX=o,this._maxX=s,this._trendline.visible){this._trendline._prepareRender();var _=this._trendline._points.map((function(t){return t.y})).sort((function(t,e){return t-e}));this._minY=Math.min(this._minY,_[0]),this._maxY=Math.max(this._maxY,_[_.length-1])}n.yMin=this._minY,n.yMax=this._maxY,n.xMin=this._minX,n.xMax=this._maxX,p&&(n.zMin=this._minZ=l,n.zMax=this._maxZ=h)}this.$_prepareViewRanges(e),isNaN(this._minY)||t.push(this._minY,this._maxY)},e.prototype._getRangeMinMax=function(t){var e,i;return"x"===t?(e=this._minX,i=this._maxX):"z"===t?(e=this._minZ,i=this._maxZ):(e=this._minY,i=this._maxY),{min:e,max:i}},e.prototype.$_prepareViewRanges=function(t){var e=this,i=this._runRangeValue=this.getViewRangeAxis(),n=this._getRangeMinMax(i),r=n.min,o=n.max;(this._runRanges=US(this._op.viewRanges,r,o,!1,!1,!0,this._runColor))?t.forEach((function(t,n){e._setViewRange(t,i)})):t.forEach((function(t,e){t.range=xS}))},e.prototype.pointValuesPrepared=function(t){var e=this;this._referents&&this._referents.forEach((function(i){return i.reference(e,t)})),this.visible&&(this._visPoints=this._runPoints.filter((function(t){return t.visible})))},e.prototype.reference=function(t,e){},e.prototype.isVisible=function(t){return this._xAxisObj.contains(t.x)&&this._yAxisObj.contains(t.y)},e.prototype.getLegendSources=function(t){!1!==this._op.visibleInLegend&&t.push(this)},e.prototype.getLabelPosition=function(t){return t},e.prototype.getLabelOff=function(t){return t},e.prototype.referBy=function(t){t&&(this._referents?this._referents.indexOf(t)<0&&this._referents.push(t):this._referents=[t])},e.prototype.setPointVisible=function(t,e){t&&e!==t.visible&&(t.visible=e,this.chart._pointVisibleChanged(this,t))},e.prototype._createPointArgs=function(){return{}},e.prototype._preparePointArgs=function(t){this._pointLabelCallback=this._pointLabel.options.textCallback,this._argsPoint=null,t.series=this,t.count=this._points.count},e.prototype._getPointCallbackArgs=function(t,e){e!==this._argsPoint&&(this._argsPoint=e).assignTo(t)},e.prototype.getPointText=function(t,e){if(this._pointLabelCallback){this._getPointCallbackArgs(this._pointArgs,t);var i=this._pointLabelCallback(this._pointArgs);if(null!=i)return i}return e},e.prototype.getPointStyle=function(t){if(this._op.pointStyleCallback)return this._getPointCallbackArgs(this._pointArgs,t),this._op.pointStyleCallback(this._pointArgs)},e.prototype.getPointLabelStyle=function(t){if(this._pointLabel.options.styleCallback)return this._getPointCallbackArgs(this._pointArgs,t),this._pointLabel.options.styleCallback(this._pointArgs)},e.prototype.pointClicked=function(t){if(this._op.onPointClick)return this._getPointCallbackArgs(this._pointArgs,t),this._op.onPointClick(this._pointArgs)},e.prototype.pointHovered=function(t){this._op.onPointHover&&(t&&this._getPointCallbackArgs(this._pointArgs,t),this._op.onPointHover(t?this._pointArgs:null))},e.prototype.getViewRangeAxis=function(){return this._op.viewRangeValue||this._defViewRangeValue()},e.prototype.isPointLabelVisible=function(t){var e=this._pointLabel;return!1!==e.visible&&(e.options.visibleCallback?(this._getPointCallbackArgs(this._pointArgs,t),e.options.visibleCallback(this._pointArgs)):!0===e.visible)},e.prototype.getPointAt=function(t){return Ux(t)&&(t=this._xAxisObj.getValue(t)),this._points.pointAt(t)},e.prototype.getValueAt=function(t,e){void 0===e&&(e="yValue");var i=this.getPointAt(t);return i?i[e]:xS},e.prototype.updatePoint=function(t,e){if(t instanceof Sk||(t=this.getPointAt(t)),t){var i=t._prev;return i&&i.ani&&i.ani.stop(),(i=t.updateValues(this,e))&&(this.chart._dataChanged(),this.chart.animatable()&&(i.ani=new Dk(this,t),i.ani.start())),this._changed(),!!i}return!1},e.prototype.updateData=function(t){this._setData(t),this.chart._dataChanged()},e.prototype.addPoint=function(t){var e=this._doAddPoint(t);if(e){if(this._points.add(e),this.chart._dataChanged(),this.chart.animatable()){this._pointsChanged=!0;var i=e._prev=e.copy();i.ani=new Dk(this,e),i.ani.start()}this._changed()}return e},e.prototype.addPoints=function(t){var e=this,i=[];return Yx(t)&&t.forEach((function(t){var n=e._doAddPoint(t);n&&i.push(n)&&e._points.add(n)})),i.length>0&&(this._pointsChanged=!0,this.chart._dataChanged(),this.chart.animatable()&&i.forEach((function(t){var i=t._prev=t.copy();i.ani=new Dk(e,t),i.ani.start()})),this._changed()),i},e.prototype.removePoint=function(t){if(t instanceof Sk||(t=this.getPointAt(t)),t&&this._points.remove(t))return this._doPointRemoved(t),this._pointsChanged=!0,this.chart._dataChanged(),this._changed(),!0},e.prototype.removePoints=function(t){var e=this;if(Yx(t)){var i=[];t.forEach((function(t){t instanceof Sk||(t=e.getPointAt(t)),t&&e._points.remove(t)&&i.push(t)})),i.length>0&&(this._doPointsRemoved(i),this._pointsChanged=!0,this.chart._dataChanged(),this._changed())}return 0},e.prototype.followPointer=function(){return!1},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._name=e.name||"Series ".concat(this.index+1),this._setData(e.data),this._createFielders()},e.prototype._createLabel=function(t){return new Tk(t)},e.prototype._createPoint=function(t){return new Sk(t)},e.prototype.$_addPoint=function(t,e){var i=this._createPoint(t);return i.index=e,i.parse(this),(i.isNull||(i.isNull=null==t||null==i.y))&&(this._containsNull=!0),i},e.prototype._doAddPoint=function(t){return this.$_addPoint(t,this._points.count)},e.prototype._doPointRemoved=function(t){},e.prototype._doPointsRemoved=function(t){},e.prototype._createLegendMarker=function(t,i){return bk.create(t,e.LEGEND_MARKER,0,0,i,i,i/2)},e.prototype._referOtherSeries=function(t){return!0},e.prototype._colorByPoint=function(){return!1},e.prototype._getFielderProps=function(){return["xField","yField","zField","colorField"]},e.prototype._createFielder=function(t){return Xx(t)?function(e){return t(e)}:Ux(t)?function(e){return e[t]}:function(t){}},e.prototype._createFielders=function(){var t=this,e=this._op;this._getFielderProps().forEach((function(i){var n="_".concat(i,"er");(!t[n]||i in e&&t["_".concat(i)]!==e[i])&&(t[n]=t._createFielder(e[i]),t["_".concat(i)]=e[i])}))},e.prototype._defaultLoadAnimation=function(){return"reveal"},e.prototype.load=function(e){return this.chart?t.prototype.load.call(this,this.chart.loadBase(e,"series",this._type())):t.prototype.load.call(this,e)},e.prototype._doLoadData=function(t){if(Yx(t))return t;if(t){var e=void 0;if(t._obj instanceof JS?e=t._obj:t instanceof JS&&(e=t),e)return e!==this._cdata&&(this._cdata&&this._cdata._removeListener(this),this._cdata=e,this._cdata&&this._cdata._addListener(this)),e._internalValues()}},e.prototype._loadPoints=function(t){var e,i;this._doLoadPoints(t),null===(i=(e=this._op).onPointsLoaded)||void 0===i||i.call(e,this,!this._loaded),this._loaded=!0},e.prototype._doLoadPoints=function(t){this._points.load(t)},e.prototype._doPrepareRender=function(){var t,e,i=this._op,n=this._runColor=Zx(i.color)?"var(--color-".concat((Math.floor(i.color)-1)%12+1,")"):i.color;Yx(i.pointColors)?t=i.pointColors:Ux(i.pointColors)?e=this.chart._assets.get(i.pointColors):this._colorByPoint()&&(t=this.chart.options.options.colors),e instanceof oV?(e.prepare(),this._runPoints.forEach((function(t,i){t.color=t.color||e.getNext()||n}))):Yx(t)?this._runPoints.forEach((function(e,i){e.color=e.color||t[i%t.length]||n})):this._runPoints.forEach((function(t,e){t.color=t.color||n})),this._preparePointArgs(this._pointArgs)},e.prototype._setViewRange=function(t,e){var i,n,r=t[Rk[e]];try{for(var o=jx(this._runRanges),s=o.next();!s.done;s=o.next()){var a=s.value;if(r>=a.fromValue&&r<=a.toValue)return void(t.range=a)}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}t.range=xS},e.prototype._defViewRangeValue=function(){return"y"},e.LEGEND_MARKER="rct-legend-item-marker",e.defaults=lV(pV.defaults,{zOrder:0,visibleInLegend:!0,visibleInNavigator:!1,tooltipText:"<b>${name}</b><br>${series}:<b> ${yValue}</b>",loadAnimation:"default",hoverEffect:"default"}),e}(pV),Fk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._visibles=[],e._series=[],e._visibleSeries=[],e}return Fx(e,t),Object.defineProperty(e.prototype,"firstSeries",{get:function(){return this._series[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstVisible",{get:function(){return this._visibles[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstVisibleSeries",{get:function(){return this._visibleSeries[0]},enumerable:!1,configurable:!0}),e.prototype.isWidget=function(){return this._widget},e.prototype.isEmpty=function(t){return!(t?this._visibles:this._items).find((function(e){return!e.isEmpty(t)}))},e.prototype.visibles=function(){return this._visibles.slice(0)},e.prototype.series=function(){return this._series.slice(0)},e.prototype.seriesCount=function(){return this._series.length},e.prototype.needAxes=function(){return!!this._visibles.find((function(t){return t.needAxes()}))||0===this._visibleSeries.length},e.prototype._clear=function(){},e.prototype.get=function(t){return this._items[t]},e.prototype.getSeries=function(t){return this._map[t]},e.prototype.getVisibleSeries=function(){return this._visibleSeries.slice(0)},e.prototype.getPaneSeries=function(t,e){return this._visibleSeries.filter((function(i){return t===i._row&&e===i._col}))},e.prototype.seriesByPoint=function(t){var e,i;try{for(var n=jx(this._series),r=n.next();!r.done;r=n.next()){var o=r.value;if(o.contains(t))return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.getLegendSources=function(){var t=[];return this._items.forEach((function(e){return e.getLegendSources(t)})),t},e.prototype.load=function(t){var e=this,i=this.chart,n=this._items=[],r=this._series=[];Yx(t)?t.forEach((function(t,r){n.push(e.$_loadItem(i,t,r))})):Wx(t)&&n.push(this.$_loadItem(i,t,0)),n.forEach((function(t){t instanceof Xk?r.push.apply(r,zx([],$x(t.series),!1)):t instanceof Bk&&r.push(t)})),this._map={},this._widget=!0,r.forEach((function(t){return e.$_add(t)})),i.options.series=this._items.map((function(t){return t.options}))},e.prototype.add=function(t){var e=this.$_loadItem(this.chart,t,this._series.length);if(e)return this._items.push(e),this._series.push(e),this.$_add(e),e},e.prototype.remove=function(t){var e;if(t instanceof Bk?e=t:Ux(t)&&(e=this._map[t]),e){if(!e._group)return this._items.splice(this._items.indexOf(e),1),this._series.splice(this._series.indexOf(e),1),e.name&&delete this._map[e.name],e;if(e._group.remove(e))return e}},e.prototype.updateData=function(t){},e.prototype.prepareRender=function(){var t=[],e=0;this._visibles=this._items.filter((function(t){return t.visible})).sort((function(t,e){return(+t.options.zOrder||0)-(+e.options.zOrder||0)})),this._series.forEach((function(i){i.visible&&(!i._group||i._group.visible)&&t.push(i),i.hasShape()&&i.setShape(yk[e++%yk.length])})),this._visibleSeries=t.sort((function(t,e){var i=+(t.group?t.group.zOrder:t.zOrder)||0,n=+(e.group?e.group.zOrder:e.zOrder)||0;return i===n&&t.group&&t.group===e.group?(+t.zOrder||0)-(+e.zOrder||0):i-n}));var i=this._visibleSeries.filter((function(t){return t.isClusterable()})).length;this._visibleSeries.forEach((function(t,e){t instanceof Hk&&(t._single=1===i)})),this._visibles.forEach((function(t){return t._prepareRender()}))},e.prototype.prepareAfter=function(){this._visibles.forEach((function(t){return t.prepareAfter()}))},e.prototype.$_loadItem=function(t,e,i){var n=Yx(e.children||e.series)&&t._getGroupType(e.type||t.type);if(n){var r=new n(t).init();return r.load(e),r.index=i,r}return Bk._loadSeries(t,i,e)},e.prototype.$_add=function(t){var e,i;!this._widget||t instanceof $k||(this._widget=!1),t.name&&(this._map[t.name]=t);try{for(var n=jx(this._series),r=n.next();!r.done;r=n.next()){var o=r.value;if(o!==t){if(!t.canMixWith(o))throw new Error("동시에 표시할 수 없는 시리즈들입니다: "+t._type()+", "+o._type());if(t._referOtherSeries(o))break}}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e}(cV),Ik=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i}return Fx(e,t),e.defaults=lV(pV.defaults,{radius:3}),e}(pV),jk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.legendMarker=function(){return this._legendMarker},e.prototype.setLegendMarker=function(t){this._legendMarker=t},e.prototype.legendColor=function(){return this._calcedColor},e.prototype.legendLabel=function(){return hS(this.x,this.y)},e.prototype.styleLegendMarker=function(t){},e}(Sk),$k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getCenter=function(t,e){return{x:jS(this._centerXDim,t),y:jS(this._centerYDim,e)}},e.prototype.getLabelPosition=function(){var t=this._pointLabel.options.position;return"auto"===t?"inside":t},e.prototype.needAxes=function(){return!1},e.prototype._colorByPoint=function(){return!0},e.prototype.getLegendSources=function(e){this._op.legendByPoint?!1!==this._op.visibleInLegend&&this._runPoints.forEach((function(t){e.push(t)})):t.prototype.getLegendSources.call(this,e)},e.prototype._doApply=function(i){var n,r,o=this;t.prototype._doApply.call(this,i),n=i.centerX,r=i.centerY,n!==o._centerX&&(o._centerX=n,o._centerXDim=FS(pS(n,o._op.center,e.CENTER),!0)),r!==o._centerY&&(o._centerY=r,o._centerYDim=FS(pS(r,o._op.center,e.CENTER),!0))},e.prototype.canMinPadding=function(t,e){return!1},e.prototype.canMaxPadding=function(t,e){return!1},e.CENTER="50%",e.defaults=lV(Bk.defaults,{boundsAnimation:!0,legendByPoint:!1,centerX:"50%",centerY:"50%"}),e}(Bk),zk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getRadius=function(t,e){return jS(this._radiusDim,oS(t,e))},e.prototype._doApply=function(i){var n,r=this;t.prototype._doApply.call(this,i),(n=i.radius)!==r._radius&&(r._radiusDim=FS(hS(r._radius=n,e.defaults.radius),!0))},e.defaults=lV($k.defaults,{radius:"40%",startAngle:0,totalAngle:360,clockwise:!0}),e}($k),Hk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._clusterWidth=1,e._clusterPos=0,e._childWidth=1,e._childPos=0,e._pointPad=0,e._minPointWidth=0,e}return Fx(e,t),e.prototype.groupWidth=function(){return this._op.pointWidth},e.prototype.getMinPointWidth=function(){return this._minPointWidth},e.prototype.getPointWidth=function(t){var e=this._group,i=t;return e?(i*=e._clusterWidth,i*=1-2*e.options.groupPadding,i*=this._childWidth):i*=this._clusterWidth,i*=1-2*this._pointPad,sS(this._minPointWidth,i)},e.prototype.getPointPos=function(t){var e=this._group,i=t,n=0;return e?(n=i*e._clusterPos,n+=(i*=e._clusterWidth)*e.options.groupPadding,n+=(i-=i*e.options.groupPadding*2)*this._childPos,i*=this._childWidth):(n=i*this._clusterPos,i*=this._clusterWidth),n+=i*this._pointPad},e.prototype.getLabelPosition=function(t){return"auto"===t?"outsideFirst":t},e.prototype.isClusterable=function(){return!1!==this._op.clusterable},e.prototype.setCluster=function(t,e){this._clusterWidth=t,this._clusterPos=e},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._pointPad=isNaN(this._op.pointPadding)?this._single?.25:this._group?.1:.2:Math.max(0,Math.min(.5,this._op.pointPadding)),this._minPointWidth=uS(this.getMinPointWidth(),0)},e.defaults=lV(Bk.defaults,{pointWidth:1}),e}(Bk),Gk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._base=uS(this._getGroupBase(),this._yAxisObj.getBaseValue())},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?this._base:NaN},e.prototype._getGroupBase=function(){return this._op.baseValue},e.prototype.isBased=function(t){return t===this._yAxisObj},e.defaults=lV(Hk.defaults,{baseValue:0,nullAsBase:!1}),e}(Hk),Wk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.collectValues=function(e,i){var n=this;t.prototype.collectValues.call(this,e,i),e===this._yAxisObj&&this._runPoints.forEach((function(t){var e=n._getBottomValue(t);i&&!isNaN(e)&&i.push(e)}))},e}(Hk),Yk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(Wk),Xk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.index=-1,e._series=[],e._visibles=[],e._seriesChanged=!1,e}return Fx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){Mk[t.type]=t}))},e.registerSeries=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){Mk[t.seriesType]=t}))},e.collectTooltipText=function(t,e,i){var n=t.tooltipHeader||"";return t.tooltipRow&&e.forEach((function(e,r){i.vindex>=e._visPoints.length||(n&&(n+="<br>"),n+=t.tooltipRow.replace("series","series."+r).replace(/\$\{/g,"${"+r+"."))})),n+=t.tooltipFooter?"<br>"+t.tooltipFooter:""},e.inflateTooltipParam=function(t,e,i,n){var r=n.indexOf("."),o=+n.substring(0,r);return isNaN(o)||(i=(e=t[o])._visPoints[i.vindex],n=n.substring(r+1)),n.startsWith("series.")&&(e=t[+n.substring(7)]||e,n="series"),Bk.getPointTooltipParam(e,i,n)},e.prototype.getTooltipText=function(t,i){return e.collectTooltipText(this._op,this._visibles,i)},e.prototype.getTooltipParam=function(t,i,n){return e.inflateTooltipParam(this._visibles,t,i,n)},Object.defineProperty(e.prototype,"series",{get:function(){return this._series.slice(0)},enumerable:!1,configurable:!0}),e.prototype.needAxes=function(){return!0},e.prototype.isEmpty=function(t){return(t?this._visibles:this._series).length<1},e.prototype.canCategorized=function(){return!1},e.prototype.defYAxisType=function(){return"linear"},e.prototype.isClusterable=function(){return!1},e.prototype.getBaseValue=function(t){return NaN},e.prototype.getVisibleSeries=function(){return this._visibles},e.prototype._type=function(){return this.constructor.type},e.prototype._seriesType=function(){return this.constructor.seriesType},e.prototype.setCol=function(t){this._col=t,this._series.forEach((function(e){return e.setCol(t)}))},e.prototype.setRow=function(t){this._row=t,this._series.forEach((function(e){return e.setRow(t)}))},e.prototype.isFirstVisible=function(t){return t===this._visibles[0]},e.prototype.isLastVisible=function(t){return t===this._visibles[this._visibles.length-1]},e.prototype.collectValues=function(t,e){if(this._visibles.length>0)if(t===this._visibles[0]._yAxisObj)switch(this._op.layout){case"stack":this.$_collectStack(t,e);break;case"fill":this.$_collectFill(t,e);break;default:this.$_collectValues(t,e)}else this.$_collectValues(t,e)},e.prototype.collectRanges=function(t){this._visibles.forEach((function(e){e.collectRanges(t)}))},e.prototype.pointValuesPrepared=function(t){this._series.forEach((function(e){return e.pointValuesPrepared(t)}))},e.prototype.collectCategories=function(t){var e=[];return this._visibles.forEach((function(i){return e=e.concat(i.collectCategories(t))})),e},e.prototype.getLegendSources=function(t){var e,i=this._op;if(!1!==i.visibleInLegend&&this.visible){var n=this._series;if((null===(e=this._yAxisObj)||void 0===e?void 0:e.options.reversed)||"fill"!==i.layout&&"stack"!==i.layout)n.forEach((function(e){return e.getLegendSources(t)}));else for(var r=n.length-1;r>=0;r--)n[r].getLegendSources(t)}},e.prototype.isBased=function(t){return this._visibles[0]&&this._visibles[0].isBased(t)},e.prototype.canMinPadding=function(t,e){var i=this.getBaseValue(t);return isNaN(i)||!this.isBased(t)||e<i},e.prototype.canMaxPadding=function(t,e){var i=this.getBaseValue(t);return(isNaN(i)||e>i||!this.isBased(t))&&"fill"!==this._op.layout},e.prototype.getVisPoints=function(t){return this._visibles.map((function(e){return e._visPoints[t.vindex]}))},e.prototype.seriesChanged=function(){return this._seriesChanged},e.prototype.remove=function(t){var e=this._series.indexOf(t);if(e>=0)return this._series.splice(e,1),!0},e.prototype._getVisiblePoints=function(){var t=[];return this._visibles.forEach((function(e){return t.push.apply(t,zx([],$x(e._getVisiblePoints()),!1))})),t},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),Gx.call(e,"children")&&this.$_loadSeries(this.chart,e.children)},e.prototype._prepareRender=function(){var e=this._visibles;if(this._stacked="stack"===this._op.layout||"fill"===this._op.layout,this._visibles=this._series.filter((function(t){return t.visible})).sort((function(t,e){return(+t.options.zOrder||0)-(+e.options.zOrder||0)})),!(this._seriesChanged=!_S.equalArrays(e,this._visibles)))for(var i=this._visibles.length-1;i>=0;i--)if(this._visibles[i].seriesChanged()){this._seriesChanged=!0;break}t.prototype._prepareRender.call(this)},e.prototype._doPrepareRender=function(t){this._xAxisObj=this.chart._connectSeries(this,!0),this._yAxisObj=this.chart._connectSeries(this,!1),this._visibles.length>0&&(this._visibles.forEach((function(t){return t._prepareRender()})),this._doPrepareSeries(this._visibles))},e.prototype.prepareAfter=function(){this._visibles.forEach((function(t){return t.prepareAfter()}))},e.prototype._doPrepareSeries=function(t){},e.prototype.$_loadSeries=function(t,e){var i=this,n=this._seriesType();Yx(e)?e.forEach((function(e,r){return i.$_add(Bk._loadSeries(t,i._series.length,e,n))})):Wx(e)&&this.$_add(Bk._loadSeries(t,this._series.length,e,n))},e.prototype.$_add=function(t){if(!this._canContain(t))throw new Error("이 그룹에 포함될 수 없는 시리즈입니다: "+t);this._series.push(t),t._group=this},e.prototype.$_collectValues=function(t,e){this._visibles.forEach((function(i){i.collectValues(t,e)}))},e.prototype.$_collectPoints=function(t){var e=this._visibles,i=this._stackPoints=new Map;e.forEach((function(e){e.collectValues(t,null)})),e[0]._runPoints.forEach((function(t){i.set(t.xValue,[t])}));for(var n=1;n<e.length;n++)e[n]._runPoints.forEach((function(t){var e=i.get(t.xValue);e?e.push(t):i.set(t.xValue,[t])}));return i},e.prototype.$_collectStack=function(t,e){var i,n,r,o,s=this.getBaseValue(t),a=this.$_collectPoints(t);if(isNaN(s))try{for(var u=jx(a.values()),l=u.next();!l.done;l=u.next()){(c=l.value)[0].yGroup=c[0].yValue||0;for(y=1;y<c.length;y++)c[y].yGroup=c[y-1].yGroup+(c[y].yValue||0);e.push(c[c.length-1].yGroup)}}catch(t){r={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}else try{for(var h=jx(a.values()),p=h.next();!p.done;p=h.next()){var c,f=(c=p.value)[0].yValue||0,_=f>=s?0:-1,d=f<s?0:-1;c[0].yGroup=c[0].yValue||0;for(var y=1;y<c.length;y++)(f=c[y].yValue||0)>=s?(_>=0&&(c[y].yGroup=c[_].yGroup+f*(f<0?-1:1)),_=y):(d>=0&&(c[y].yGroup=c[d].yGroup+f*(f>=0?-1:1)),d=y);_>=0&&e.push(c[_].yGroup),d>=0&&e.push(c[d].yGroup)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}},e.prototype.$_collectFill=function(t,e){var i,n,r,o,s,a,u,l,h,p,c,f,_=this.getBaseValue(t),d=this.options.layoutMax||100,y=this.$_collectPoints(t);if(isNaN(_))try{for(var g=jx(y.values()),v=g.next();!v.done;v=g.next()){k=(V=v.value).reduce((function(t,e){return t+(e.yValue||0)}),0);if(0===k){try{for(var m=(h=void 0,jx(V)),b=m.next();!b.done;b=m.next()){(T=b.value).yValue=T.yGroup=0}}catch(t){h={error:t}}finally{try{b&&!b.done&&(p=m.return)&&p.call(m)}finally{if(h)throw h.error}}e.push(0)}else{E=0;try{for(var w=(c=void 0,jx(V)),x=w.next();!x.done;x=w.next()){E=(T=x.value).yGroup=(T.yValue||0)/k*d+E}}catch(t){c={error:t}}finally{try{x&&!x.done&&(f=w.return)&&f.call(w)}finally{if(c)throw c.error}}e.push(d)}}}catch(t){u={error:t}}finally{try{v&&!v.done&&(l=g.return)&&l.call(g)}finally{if(u)throw u.error}}else try{for(var S=jx(y.values()),P=S.next();!P.done;P=S.next()){var V,k=(V=P.value).reduce((function(t,e){return t+(aS(e.yValue)||0)}),0);if(0===k){try{for(var A=(r=void 0,jx(V)),C=A.next();!C.done;C=A.next()){(T=C.value).yValue=T.yGroup=0}}catch(t){r={error:t}}finally{try{C&&!C.done&&(o=A.return)&&o.call(A)}finally{if(r)throw r.error}}e.push(0,0)}else{var E=0,L=0;try{for(var N=(s=void 0,jx(V)),M=N.next();!M.done;M=N.next()){var T;(T=M.value).yValue=(T.yValue||0)/k*d,T.yValue<_?L=T.yGroup=(T.yValue||0)+L:E=T.yGroup=(T.yValue||0)+E}}catch(t){s={error:t}}finally{try{M&&!M.done&&(a=N.return)&&a.call(N)}finally{if(s)throw s.error}}e.push(L,E)}}}catch(t){i={error:t}}finally{try{P&&!P.done&&(n=S.return)&&n.call(S)}finally{if(i)throw i.error}}},e.defaults=lV(pV.defaults,{layout:"default",layoutMax:100,visibleInLegend:!0,zOrder:0,tooltipHeader:"<b>${name}</b>",tooltipRow:"${series}:<b> ${yValue}</b>"}),e}(pV),Uk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.collectValues=function(e,i){if(t.prototype.collectValues.call(this,e,i),e===this._yAxisObj){var n=this._doConstraintYValues(this._visibles);i.length=0,i.push.apply(i,zx([],$x(n),!1))}},e}(Xk),qk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._clusterWidth=1,e._clusterPos=0,e}return Fx(e,t),e.prototype.groupWidth=function(){return this._op.groupWidth},e.prototype.isClusterable=function(){return!1!==this._op.clusterable},e.prototype.setCluster=function(t,e){this._clusterWidth=t,this._clusterPos=e},e.defaults=lV(Xk.defaults,{groupWidth:1,groupPadding:.1}),e}(Xk),Zk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.isMarker=function(){return!0},e.defaults=lV(Bk.defaults,{colorByPoint:!1}),e}(Bk),Kk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(pV),Jk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(pV),Qk={area:function(){return{type:"area"}},line:function(){return{type:"line"}},bar:function(){return{type:"bar"}}},tA={category:function(){return{type:"category"}},linear:function(){return{type:"linear"}},time:function(){return{type:"time"}},log:function(){return{type:"log"}}},eA={minPadding:0,maxPadding:0},iA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._dataChanged=!0,e}return Fx(e,t),e.prototype._doInit=function(){var t=this.chart;this.handle=new Kk(t).init(),this.mask=new Jk(t).init(),this.borderLine=new pV(t).init()},e.prototype.getThickness=function(){return uS(this._op.thickness,e.defaults.thickness)},e.prototype.getGap=function(){return uS(this._op.gap,e.defaults.gap)},e.prototype.getGapFar=function(){return uS(this._op.gapFar,e.defaults.gapFar)},e.prototype.getSize=function(){return this.getThickness()+this.getGap()+this.getGapFar()},e.prototype.axisLen=function(){return this._naviChart.xAxis.length()},e.prototype.axis=function(){return this._source._xAxisObj},e.prototype._doLoad=function(e,i){t.prototype._doLoad.call(this,e,i);var n={};if(Wx(i.series)){var r=i.series.type;"area"!==r&&"line"!==r&&"bar"!==r&&(r="area"),n.series=Jx({},i.series,Qk[r]())}else n.series=Qk.area();Wx(i.xAxis)?n.xAxis=Jx({},i.xAxis,(tA[i.xAxis.type]||tA.linear)(),eA):n.xAxis=Jx({},eA),Wx(i.yAxis)?n.yAxis=Jx({},i.yAxis,(tA[i.yAxis.type]||tA.linear)(),eA):n.yAxis=Jx(tA.linear(),eA),this._chartConfig=n,this._axisType=n.xAxis.type},e.prototype._doPrepareRender=function(t){var e=t._getSeries().getSeries(this._op.source)||t.firstSeries;e!==this._source&&(this._source=e,this._axisType||(this._chartConfig.xAxis.type=this._source._xAxisObj._type()),this._naviChart=this.chart._createChart(this._chartConfig),this._op.usePointSource?this._naviChart.firstSeries._loadPoints(this._source.getPoints()._points.map((function(t){return t.source}))):this._naviChart.firstSeries._loadPoints(this._source.getPoints()._points)),this._vertical=!1,this._naviChart._prepareRender()},e.defaults=lV(pV.defaults,{visible:!1,usePointSource:!1,liveScroll:!0,minSize:.05,thickness:45,gap:8,gapFar:3}),e}(pV),nA=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.pane=e,i}return Fx(e,t),e.prototype.base=function(){return this.chart._body},e.prototype.contains=function(t){return t.options.col===this.pane.col||t.options.row===this.pane.row},e.defaults=lV(lk.defaults,{radius:void 0,centerX:void 0,centerY:void 0}),e}(lk),rA=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r.row=i,r.col=n,r}return Fx(e,t),e.prototype._doInit=function(){this.body=new nA(this).init()},e.prototype._prepareRender=function(){this.body._prepareRender()},e}(pV),oA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._cols=1,e._rows=1,e._panes={},e._vcols=1,e._vrows=1,e._vpanes=[],e}return Fx(e,t),e.prototype.count=function(){return this._vrows*this._vcols},e.prototype.rowCount=function(){return this._vrows},e.prototype.colCount=function(){return this._vcols},e.prototype.paneCount=function(){return this._vrows*this._vcols},e.prototype.getPane=function(t,e){return this._vpanes[t][e]},e.prototype.getRow=function(t){return this._vpanes[t]},e.prototype.getColumn=function(t){return this._vpanes.map((function(e){return e[t]}))},e.prototype._doLoadProp=function(e,i){return["panes","cols","rows"].indexOf(e)>=0||t.prototype._doLoadProp.call(this,e,i)},e.prototype._doSetSimple=function(e){if(Yx(e)&&e.length>0){var i=this._op;return i.rows=sS(1,+e[0]),i.cols=sS(1,uS(+e[1],i.rows)),i.rows>0&&i.cols>0&&(this.$_parsePanes(i.rows,i.cols),this.visible=!0),!0}return t.prototype._doSetSimple.call(this,e)},e.prototype.load=function(e){return t.prototype.load.call(this,e),Wx(e)&&(this.$_parsePanes(this._op.rows=e.rows,this._op.cols=e.cols),this._panes=this.$_loadPanes(e.panes)),this},e.prototype._doPrepareRender=function(t){this._xAxes=t._xPaneAxes,this._yAxes=t._yPaneAxes,this._vpanes=this.$_collectPanes(t),this._vpanes.forEach((function(t){return t.forEach((function(t){return t._prepareRender()}))}))},e.prototype.getXLens=function(t){return new Array(this._vcols).fill(t/this._vcols)},e.prototype.getYLens=function(t){return new Array(this._vrows).fill(t/this._vrows)},e.prototype.layoutAxes=function(t,e,i,n){var r=this.getXLens(i?e:t),o=this.getYLens(i?t:e);this._xAxes._buildTicks(r),this._yAxes._buildTicks(o),this.$_calcAxesPoints(r,o,0)},e.prototype.$_calcAxesPoints=function(t,e,i){this._xAxes._calcPoints(t,i),this._yAxes._calcPoints(e,i)},e.prototype.calcAxesPoints=function(t,e){this.$_calcAxesPoints(t,e,101)},e.prototype.calcSizes=function(t,e){this._widths=this.$_calcSizes(t,this._widths),this._heights=this.$_calcSizes(e,this._heights)},e.prototype.getAnnotation=function(t){for(var e in this._panes){var i=this._panes[e].body.getAnnotation(t);if(i)return i}},e.prototype.$_parseSizes=function(t){return(Yx(t)&&t.length>0?t.slice(0):t>0?new Array(t).fill("*"):["*"]).map((function(t){if(Ux(t)){var e=t.trim();return{size:"*"===e?1:parseFloat(e)}}return+t||{size:1}}))},e.prototype.$_parsePanes=function(t,e){this._widths=this.$_parseSizes(e),this._heights=this.$_parseSizes(t),this._cols=this._widths.length,this._rows=this._heights.length},e.prototype.$_loadPanes=function(t){var e=this,i={};return t=Yx(t)?t:Wx(t)?[t]:null,Yx(t)&&t.forEach((function(t){var n=+t.row||0,r=+t.col||0;if(r>=0&&r<e._cols&&n>=0&&n<e._rows){var o=new rA(e.chart,n,r).init();o.load(t),i[n+","+r]=o}})),i},e.prototype.$_collectPanes=function(t){var e=this,i=t._getXAxes()._internalItems(),n=t._getYAxes()._internalItems(),r=[],o=[],s=[];i.concat(n).forEach((function(t){var i=t.options.row||0,n=t.options.col||0;t._row=i,t._col=n,n>=0&&n<e._cols&&r.indexOf(n)<0&&r.push(n),i>=0&&i<e._rows&&o.indexOf(i)<0&&o.push(i)})),r.sort(),o.sort();for(var a=0;a<o.length;a++){for(var u=[],l=0;l<r.length;l++){var h=this._panes[a+","+l]||new rA(t,a,l).init();u.push(h)}s.push(u)}return this._vrows=s.length,this._vcols=s[0].length,s},e.prototype.$_calcSizes=function(t,e){},e.defaults=lV(pV.defaults,{visible:!1,gap:0}),e}(pV),sA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._isVisible=function(){return this._op.visible&&!OS(this._op.text)},e.prototype._doSetSimple=function(e){return Ux(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=lV(pV.defaults,{text:"Title",alignBase:"body",align:"center",verticalAlign:"middle",gap:10}),e}(pV),aA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(sA.defaults,{position:"bottom",text:"",titleGap:2,verticalAlign:"bottom"}),e}(sA),uA=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i}return Fx(e,t),e.prototype._doInit=function(){var e=this;t.prototype._doInit.call(this),this._domain={callback:function(t,i){return e._ctx.getTooltipParam(e._series,e._point,i)}}},e.prototype.setTarget=function(t,e,i){var n=hS(this._op.scope,"hover");return this._ctx=this.visible&&this.owner.getTooltipContext(n,this._series=t,this._point=e)},e.prototype.getTextDomain=function(){return this._domain},e.prototype.isFollowPointer=function(t){return this._op.followPointer||!1!==this._op.followPointer&&(null==t?void 0:t.followPointer())},e.prototype._doSetSimple=function(e){return Ux(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.numberFormat)!=n._numberFormat&&(n._numberFormat=i,n._domain.numberFormatter=n._numberFormat?oP.getFormatter(n._numberFormat):void 0),function(t){t!=n._timeFormat&&(n._timeFormat=t,n._domain.timeFormatter=n._timeFormat?xP.getFormatter(n._timeFormat):void 0)}(e.timeFormat)},e.defaults=lV(pV.defaults,{scope:"hover",offset:8,hideDelay:700,minWidth:100,minHeight:40,nanText:"",numberFormat:",#.##",timeFormat:"yyyy-MM-dd"}),e}(pV),lA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._isVisible=function(){return this._op.visible&&!OS(this._op.imageUrl)},e.prototype._doSetSimple=function(e){return Ux(e)?(this._op.imageUrl=e,!0):t.prototype._doSetSimple.call(this,e)},e.type="image",e}(gV),hA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getSeries=function(){if(this._xRange&&this._yRange){var t=this.chart.seriesByName(this._op.series);if(t&&t.visible)return{series:t,xRange:this._xRange,yRange:this._yRange}}},e.prototype.getShape=function(){return this._op.shape||e.defaults.shape},e.prototype._doSetSimple=function(e){return Ux(e)?(this._op.shape=e,!0):t.prototype._doSetSimple.call(this,e)},e.type="shape",e.defaults=lV(gV.defaults,{width:64,height:64,shape:"square"}),e}(gV),pA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._domain={callback:function(t,i){return e.chart.getParam(t,i)}},e}return Fx(e,t),e.prototype._isVisible=function(){return this._op.visible&&!OS(this._op.text)},e.prototype._doSetSimple=function(e){return Ux(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.numberFormat)!==n._numberFormat&&(n._numberFormat=i,n._domain.numberFormatter=i?oP.getFormatter(i):xS),function(t){t!==n._timeFormat&&(n._timeFormat=t,n._domain.timeFormatter=t?xP.getFormatter(t):xS)}(e.timeFormat)},e.type="text",e.defaults=lV(gV.defaults,{text:"Text"}),e}(gV),cA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getPoints=function(t,e){return t.hasBreak()?t._ticks.filter((function(e){return!t.isBreak(e.value)})).map((function(i){return t.getPos(e,i.value)})):t._ticks.map((function(i){return t.getPos(e,i.value)}))},e}(kV),fA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._strictEnds=!1,e._strictTicks=!1,e}return Fx(e,t),e.prototype._isValidInterval=function(t){return t>0},e.prototype._normalizeSteps=function(t,e,i){return t},e.prototype.buildSteps=function(t,e,i,n,r){var o,s;void 0===r&&(r=!1);var a,u=this._op;return this._strictTicks=this._strictEnds=!1,this._step=NaN,r?a=this._getStepsByPixels(t,uS(.85*u.stepPixels,60),e,i,n):Yx(u.steps)||Xx(u.stepCallback)?((a=u.stepCallback?u.stepCallback.call(xS,{length:t,minValue:i,maxValue:n}):u.steps.slice(0)).length>0&&isNaN(a[0])&&(a[0]=i),a.length>1&&isNaN(a[a.length-1])&&(a[a.length-1]=n),this._strictTicks=this._strictEnds=!0):a=this._baseAxis instanceof vA&&this._baseAxis._ticks.length>0?this._getStepsByCount(this._baseAxis._ticks.length,e,i,n,!0):u.stepCount>0?this._getStepsByCount(u.stepCount,e,i,n,!1):this._isValidInterval(u.stepInterval)?this._getStepsByInterval(u.stepInterval,e,i,n):u.stepPixels>0?this._getStepsByPixels(t,((null===(o=this.axis)||void 0===o?void 0:o._isPolar)&&!(null===(s=this.axis)||void 0===s?void 0:s._isX)?.5:1)*u.stepPixels,e,i,n):i!==n?[i,n]:[i],a},e.prototype.getNextStep=function(t,e){return t+e*this._step},e.prototype.canUseNumSymbols=function(){return isNaN(this._step)||this._step>=500},e.prototype._findBaseAxis=function(){if(null!=this._op.baseAxis){var t=this.axis,e=(t._isX?this.chart._getXAxes():this.chart._getYAxes()).get(this._op.baseAxis);e!==t&&e instanceof vA&&(this._baseAxis=e,e.tick._baseAxis=null)}},e.prototype.$_normalizeMin=function(t,e){return t>Qx(t/e)*e?t=Qx(t/e)*e:t<tS(t/e)*e&&(t=tS(t/e)*e),LS(t)},e.prototype._getStepsByCount=function(t,e,i,n,r){i>e?(i=e,e=NaN):n<e&&(n=e,e=NaN),this._strictEnds=!0;var o=this.axis,s=n-i,a=s/(t-1),u=Math.pow(10,Math.floor(Math.log10(a))),l=[];if(isNaN(o._fixedMin)||isNaN(o._fixedMax)?r&&a/u==2.5&&Qx(t*s/a)==t*s/a?this._step=a:a=this._step=tS(a/u)*u:a=s/(t-1),isNaN(o._fixedMin))if(isNaN(e))i=this.$_normalizeMin(i,u);else{for(WS(i<e&&n>e,"base error"),t=sS(3,t);;){if(!(tS((e-i)/a)+tS((n-e)/a)+1>t))break;a+=u}i=e-tS((e-i)/a)*a}else i=o._fixedMin;l.push(i);for(var h=1;h<t;h++)l.push(LS(l[h-1]+a));return l},e.prototype._getStepsByInterval=function(t,e,i,n){var r,o=[];if(i=this.$_normalizeMin(i,t),isNaN(e))for(o.push(r=i);r<n;)o.push(r=LS(r+t));else{for(o.push(r=e);r>i;)o.unshift(r=LS(r-t));for(r=e;r<n;)o.push(r=LS(r+t))}return this._step=t,o},e.prototype._getStepMultiples=function(t){return[1,2,2.5,5,10]},e.prototype._getStepsByPixels=function(t,e,i,n,r){n>=i?n=i:r<=i&&(r=i);var o=r-n,s=[];if(0===o)return isNaN(n)?[]:[n];var a,u=t>250?5:t>200?4:t>150?3:t>80?2:1,l=sS(this.axis.isX?1:u,Qx(t/e))+1,h=o/(l-1),p=Math.pow(10,Math.floor(rS(h))),c=this._getStepMultiples(p),f=0;if(h/=p,c)if(h>c[f]){for(;f<c.length-1;f++)if(h>c[f]&&h<c[f+1]){h=c[++f];break}}else h=c[f];if(h*=p,isNaN(i))n=this.$_normalizeMin(n,h);else{for(WS(n<=i&&r>=i,"base error"),l=sS(3,l);f<c.length;){if(!(tS((i-n)/h)+tS((r-i)/h)+1>l))break;h=f<c.length-1?c[f+1]*p:2*h,f++}n=i-tS((i-n)/h)*h}for(this._step=h,s.push(LS(a=n));a<r;)s.push(LS(a+=h));return s},e.defaults=lV(NV.defaults,{stepPixels:72,baseRange:!1}),e}(NV),_A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(MV.defaults,{numberFormat:"0.##"}),e}(MV),dA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getTick=function(t,e){return this._getText(null,e,"*"===this._op.useSymbols||this._op.useSymbols&&this.axis.tick.canUseNumSymbols(),!0)},e.defaults=lV(_A.defaults,{useSymbols:!0}),e}(_A),yA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getSize=function(t){return jS(this._sizeDim,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._op.space=uS(this._op.space,0),this._sizeDim=FS(this._op.size,!1)},e.defaults=lV(xV.defaults,{enabled:!0,size:"30%",space:16,gridVisible:!0}),e}(xV),gA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(SV.defaults,{visible:!1}),e}(SV),vA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._breaks=[],e}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.baseLine=new gA(this).init()},Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){return this._grid},enumerable:!1,configurable:!0}),e.prototype.getBaseValue=function(){return this._op.baseValue},e.prototype.hasBreak=function(){return null!=this._runBreaks},e.prototype.runBreaks=function(){return this._runBreaks&&this._runBreaks.slice(0,1)},e.prototype.isBreak=function(t){if(this._runBreaks){var e=this._runBreaks[0];return!e.options.gridVisible&&(t===e.options.from||t===e.options.to)}},e.prototype.getStartFit=function(){return"default"===this._op.startFit?this._isX?"value":"tick":this._op.startFit},e.prototype.getEndFit=function(){return"default"===this._op.endFit?this._isX?"value":"tick":this._op.endFit},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),Gx.call(e,"break")&&this.$_loadBreaks(e.break)},e.prototype.continuous=function(){return!0},e.prototype.contains=function(t){return!isNaN(t)},e.prototype.isBased=function(){return!!this._tick._baseAxis},e.prototype._createGrid=function(){return new cA(this)},e.prototype._createTickModel=function(){return new fA(this)},e.prototype._doPrepareRender=function(){this._baseVal=parseFloat(this._op.baseValue),this._tick._findBaseAxis()},e.prototype._doBuildTicks=function(t,i,n){if(isNaN(t)||isNaN(i))return[];var r,o=this._tick,s=o._baseAxis instanceof e&&o._baseAxis._ticks.length>0,a=this._adjustMinMax(n,this._calcedMin=t,this._calcedMax=i),u=a.min,l=a.max,h=this._baseVal;if(isNaN(h)&&u<0&&l>0&&(h=0),isNaN(h)?u<0&&l>0&&(h=0):(u=Math.min(u,h),l=Math.max(l,h)),s&&o.options.baseRange&&(u=o._baseAxis.axisMin(),l=o._baseAxis.axisMax()),u===l)r=[u];else if((r=o.buildSteps(n,h,u,l,!1)).length>0){if(o._strictTicks||(r=o._normalizeSteps(r,u,l)),!isNaN(this._fixedMin)||!o._strictEnds&&"tick"!==this.getStartFit())for(;r.length>2&&r[0]<u;)r.shift();else if(!o._strictEnds&&!s){for(;r.length>2&&r[1]<=u;)r.shift();if(!isNaN(o._step))for(;r[0]>u;)r.unshift(o.getNextStep(r[0],-1))}if(u=Math.min(u,r[0]),!isNaN(this._op.strictMax)||!o._strictEnds&&"tick"!==this.getEndFit())for(;r.length>2&&l<r[r.length-1];)r.pop();else if(!o._strictEnds&&!s){for(;r.length>2&&r[r.length-2]>=l;)r.pop();if(!isNaN(o._step))for(;r[r.length-1]<l;)r.push(o.getNextStep(r[r.length-1],1))}l=Math.max(l,r[r.length-1])}else r.push(u+(l-u)/2);this._setMinMax(u,l);var p=[];this._runBreaks&&(r=this.$_getBrokenSteps(this._runBreaks,n,u,l));for(var c=NaN,f=0;f<r.length;f++){var _=this._createTick(n,f,r[f]);_.value!==c&&(p.push(_),c=_.value)}return p},e.prototype._createTick=function(t,e,i){return{index:e,pos:NaN,value:LS(i),label:this.label.getTick(e,i)||String(i)}},e.prototype._calcPoints=function(e,i){if(i>100&&this._isX)if(this._min===this._max)this._unitLen=e/4;else{var n=this.$_calcUnitLength(this._isPolar?this.getTotalAngle():e);n&&(this._unitLen=n.len,this._isPolar||this._zoom||(this._min-=n.min/2,this._max+=n.min/2))}t.prototype._calcPoints.call(this,e,i),this._markPoints=this._ticks.map((function(t){return t.pos}))},e.prototype.$_buildBrokenSteps=function(t){return this._tick.buildSteps(t.len,void 0,t.from,t.to,!0)},e.prototype.$_getBrokenSteps=function(t,e,i,n){var r=this,o=0,s=i,a=[s],u=this._sects=[];e-=t.reduce((function(t,e){return t+e.options.space}),0),t.forEach((function(t){var i=t.options,n=t.getSize(e),l={from:s,to:t.options.from,pos:o,len:n};o+=n,u.push(l,t._sect={from:i.from,to:i.to,pos:o,len:i.space}),o+=i.space,r.$_buildBrokenSteps(l).forEach((function(t){t>l.from&&t<=l.to&&a.push(t)})),i.space>0&&a.push(i.to)}));var l=t[t.length-1];if(n>l.options.to){var h={from:l.options.to,to:n,pos:o,len:this._vlen-o};u.push(h),this.$_buildBrokenSteps(h).forEach((function(t){t>h.from&&t<=h.to&&a.push(t)}))}return this._lastSect=u[u.length-1],a},e.prototype.getPos=function(t,e){if(this._runBreaks){var i=this._sects.find((function(t){return e<t.to}))||this._lastSect,n=i.len*(e-i.from)/(i.to-i.from);return this._op.reversed?NS(t-n-i.pos):NS(n+i.pos)}n=this._single?.5*t:t*(e-this._min)/(this._max-this._min);return NS(this._op.reversed?t-n:n)},e.prototype.valueAt=function(t,e){var i,n;if(this._isHorz?this._op.reversed&&(e=t-e):this._op.reversed||(e=t-e),this._runBreaks){var r=0;try{for(var o=jx(this._sects),s=o.next();!s.done;s=o.next()){var a=s.value;if(e>=r&&e<r+a.len)return(a.to-a.from)*(e-r)/a.len+a.from;r+=a.len}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return this._max}return(this._max-this._min)*e/t+this._min},e.prototype.xValueAt=function(t){return this.valueAt(this._vlen,t)},e.prototype.getUnitLen=function(t,e){return this._unitLen},e.prototype.getLabelLength=function(t,e){return Math.floor(t/this._ticks.length)},e.prototype._adjustMinMax=function(t,e,i){var n=this,r=this._op,o=this.isZoomed(),s=this.isZoomed(),a=!0,u=!0,l=NaN,h=NaN;this._series.forEach((function(t){var p=t.getBaseValue(n);isNaN(p)||(isNaN(r.minValue)&&p<=e?t.isBased(n)?e=p:l=uS(oS(l,p),p):isNaN(r.maxValue)&&p>=i&&(t.isBased(n)?i=p:h=uS(sS(h,p),p))),!o&&a&&t.canMinPadding(n,e)&&(a=!1),!s&&u&&t.canMaxPadding(n,i)&&(u=!1)})),o||(o=a),s||(s=u),this._fixedMin=this._fixedMax=NaN;var p=0,c=0;isNaN(r.strictMin)?r.minValue<e?e=r.minValue:o?this._fixedMin=e:p=lS(r.minPadding,r.padding,0):this._fixedMin=e=r.strictMin,isNaN(r.strictMax)?r.maxValue>i?i=r.maxValue:s?this._fixedMax=i:c=lS(r.maxPadding,r.padding,0):this._fixedMax=i=r.strictMax;var f=sS(0,i-e),_=e-f*(this._minPad=p),d=i+f*(this._maxPad=c);return!isNaN(l)&&l<=e&&_<l&&(_=this._fixedMin=l),!isNaN(h)&&h>=i&&d>h&&(d=this._fixedMax=h),{min:_,max:d}},e.prototype.$_calcUnitLength=function(t){var e=[];if(this._series.forEach((function(t){t.visible&&t.isClusterable()&&e.push.apply(e,zx([],$x(t._getVisiblePoints()),!1))})),e.length>0){for(var i=this._isX,n=e.map((function(t){return i?t.xValue:t.yValue})).sort((function(t,e){return t-e})),r=n.length-1;r>0;r--)n[r]===n[r-1]&&n.splice(r,1);return this._calcUnitLen(n,t,this._min,this._max)}},e.prototype._calcUnitLen=function(t,e,i,n){if(t.length<2){if(this._ticks.length>0){var r=(n-i)/this._ticks.length;return{len:uS(e*=r/(n-i+r),1),min:r}}return{len:e,min:0}}r=t[1]-t[0];for(var o=2;o<t.length;o++)r=oS(r,t[o]-t[o-1]);return{len:uS(e*=r/(n-i+r),1),min:r}},e.prototype.$_loadBreak=function(t){if(Wx(t)&&"from"in t&&"to"in t){var e=new yA(this).init();return e.load(t),e}},e.prototype.$_loadBreaks=function(t){var e,i;if(Yx(t))try{for(var n=jx(t),r=n.next();!r.done;r=n.next()){var o=r.value;(s=this.$_loadBreak(o))&&this._breaks.push(s)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}else if(t){var s;(s=this.$_loadBreak(t))&&this._breaks.push(s)}this.$_mergeBreaks()},e.prototype.$_mergeBreaks=function(){function t(t,e){t.options.to=e.options.to}var e,i=this._breaks.sort((function(t,e){return t.options.from-e.options.from})).filter((function(t){return t.options.to>t.options.from}));if(this._runBreaks=null,i.length>0){var n=this._runBreaks=[];n.push(Jx(new yA(this).init(),i[0]));for(var r=1;r<i.length;r++){var o=n[n.length-1],s=i[r];e=o,s.options.from<e.options.to?t(o,s):n.push(Jx(new yA(this).init(),s))}}},e.defaults=lV(DV.defaults,{nullable:!0,padding:.04,startFit:"default",endFit:"default"}),e}(DV),mA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(){return new dA(this)},e.prototype._adjustMinMax=function(e,i,n){var r=t.prototype._adjustMinMax.call(this,e,i,n),o=this._series;return!this._isX&&1===o.length&&o[0]instanceof Xk&&"fill"===o[0].options.layout&&(r.max=o[0].options.layoutMax),r},e.type="linear",e}(vA),bA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.canUseNumSymbols=function(){return this.axis.axisMax()>rS(500)},e.prototype._getStepMultiples=function(t){return[1,2,5,10]},e.prototype._normalizeSteps=function(t,e,i){if(!this._op.arrangeDecimals)return t;for(var n=[],r=i-e,o=0;o<t.length;o++){var s=n.length,a=t[o],u=Qx(a);if(a===u){var l=n[s-1];o>1&&a-l<r&&(l=Math.pow(10,l),Qx(l)!==LS(l)&&n.pop()),n.push(a)}else if(a>0&&a>u){if((a=u+rS(10*(a-u)))<=i)(0===s||a>n[s-1])&&n.push(a);else if(s>0){if(n[o-1]>=i)break;var h=nS(Qx(rS(t[o]-t[o-1]))),p=(l=t[o])-Qx(l);if(h<1)for(var c=1;c<10;c++)if(p>rS(c)&&p<rS(c+1)){var f=Qx(l)+rS(c);if(f>=i){a=f;break}}n.push(a)}}else if(o>0&&a<=i&&a>n[s-1])n.push(a);else if(a>i)break;n.length>1&&(r=Math.min(.5,r,n[n.length-1]-n[n.length-2]))}return n},e.defaults=lV(fA.defaults,{arrangeDecimals:!0}),e}(fA),wA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._createLabel=function(){return new dA(this)},e.prototype._createTickModel=function(){return new bA(this)},e.prototype.collectValues=function(){t.prototype.collectValues.call(this),this._values=this._values.filter((function(t){return t>0}))},e.prototype.getPos=function(e,i){return i=i>0?rS(i):-1,t.prototype.getPos.call(this,e,i)},e.prototype._doCalculateRange=function(e){var i=t.prototype._doCalculateRange.call(this,e);return i.min=rS(i.min),i.max=rS(i.max),i},e.prototype._createTick=function(e,i,n){return t.prototype._createTick.call(this,e,i,LS(nS(n)))},e.prototype._calcUnitLen=function(t,e,i,n){for(var r=rS(t[1])-rS(t[0]),o=2;o<t.length;o++)r=oS(r,rS(t[o])-rS(t[o-1]));var s=n-i,a=r/s;return{len:uS(e*=a,1),min:s*a}},e.type="log",e}(vA),xA=[1,1e3,6e4,36e5,864e5,6048e5,24192e5,314496e5],SA=[[1,2,5,10,20,25,50,100,200,250,500],[1,2,5,10,15,30],[1,2,3,4,6,8,12],[1,2,3,4,6,12],[1,2],[1,2],[1,2,3,4,6]],PA={s:1,n:2,h:3,d:4,w:5,m:6,y:7},VA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getNextStep=function(t,e){var i=new Date(t);switch(e*=this._step,this._scale){case 7:i.setFullYear(i.getFullYear()+e);break;case 6:i.setMonth(i.getMonth()+e);break;case 5:i.setDate(i.getDate()+7*e);break;case 4:i.setDate(i.getDate()+e);break;case 3:i.setHours(i.getHours()+e);break;case 2:i.setMinutes(i.getMinutes()+e);break;case 1:i.setSeconds(i.getSeconds()+e);break;case 0:i.setMilliseconds(i.getMilliseconds()+e)}return+i},e.prototype._isValidInterval=function(t){return isNaN(t)?Ux(t)&&PA.hasOwnProperty(t.charAt(t.length-1))?(t=parseFloat(t),!isNaN(t)&&(t<=-1||t>=1)):void 0:0!=+t},e.prototype._getStepMultiples=function(t){for(var e=0;e<7;e++)if(t>=xA[e]/2&&t<xA[e+1]/2)return this._scale=e,SA[e];this._scale=7},e.prototype._getStepsByPixels=function(t,e,i,n,r){var o=[],s=r-n;if(0===s)return o;var a=this.axis,u=new Date(a._calcedMin),l=Math.floor(t/this._op.stepPixels)+1,h=sS(1,Math.floor(s/(l-1))),p=this._getStepMultiples(h),c=xA[this._scale];if(h/=c,p)if(h>p[0]){for(var f=0;f<p.length-1;f++)if(h>p[f]&&h<p[f+1]){h=p[f+1];break}}else h=p[0];var _,d=a.date(n),y=a.date(r),g=d;if(7===this._scale){var v=u.getFullYear(),m=g.getFullYear();this._step=h=Math.ceil(h),g=new Date(m,0),m<v&&m+h>v&&(m=v,g=new Date(m,0));do{o.push(+g),m+=h,g=new Date(m,0)}while(g<=y)}else if(6===this._scale){m=g.getFullYear();var b=g.getMonth();this._step=h=Math.ceil(h),(g=new Date(m,b))<u&&new Date(m,b+h)>u&&(b=u.getMonth(),g=new Date(u.getFullYear(),b));do{o.push(+g),g.setMonth(g.getMonth()+h)}while(g<=y)}else if(4===this._scale||5===this._scale){m=g.getFullYear(),b=g.getMonth();var w=g.getDate(),x=5===this._scale?7:1;this._step=h=Math.ceil(h),(g=new Date(m,b,w))<u&&new Date(m,b,w+x*h)>u&&(w=u.getDate(),g=new Date(u.getFullYear(),u.getMonth(),w));do{o.push(+g),g.setDate(g.getDate()+h*x)}while(g<=y)}else{switch(this._step=h,h*=c,this._scale){case 3:g.setMinutes(0);case 2:g.setSeconds(0);case 1:g.setMilliseconds(0)}_=g.getTime();var S=u.getTime();_<S&&_+h>S&&(_=S);do{o.push(_),_+=h}while(_<=r)}return o},e.prototype._getStepsByInterval=function(e,i,n,r){if(Ux(e)){var o=this.axis,s=new Date(o._calcedMin),a=[],u=e.charAt(e.length-1),l=parseFloat(e),h=void 0,p=void 0;this._scale=PA[u],e=xA[this._scale];var c=new Date(n);switch(this._scale){case 7:var f=s.getFullYear(),_=c.getFullYear();c.setMonth(0,1),_<f&&f<_+l&&(c=new Date(f,0));break;case 6:c.setDate(1),c.setHours(0,0,0,0),(p=new Date(c)).setMonth(p.getMonth()+l),c<s&&s<p&&((c=new Date(s)).setDate(1),c.setHours(0,0,0,0));break;case 5:case 4:var d=5===this._scale?7:1;c.setHours(0,0,0,0),(p=new Date(c)).setDate(p.getDate()+l*d),c<s&&p>s&&(c=new Date(s)).setHours(0,0,0,0);break;case 3:c.setMinutes(0);case 2:c.setSeconds(0);case 1:c.setMilliseconds(0)}if(this._step=l,n=+c,isNaN(i))for(a.push(h=n);h<r;)a.push(h=this.getNextStep(h,1));else{for(a.push(h=i);h>n;)a.unshift(h=this.getNextStep(h,-1));for(h=i;h<r;)a.push(h=this.getNextStep(h,1))}return this._step=e,a}return t.prototype._getStepsByInterval.call(this,e,i,n,r)},e}(fA),kA=[{format:"SSS",beginningFormat:"mm:ss"},{format:"ss",beginningFormat:"mm:ss"},{format:"mm:ss",beginningFormat:"HH:mm:ss"},{format:"HH:mm",beginningFormat:"MM-dd HH:mm"},{format:"MM-dd",beginningFormat:"yyyy-MM-dd"},{format:"MM W주",beginningFormat:"yyyy-MM-dd"},{format:"yyyy-MM",beginningFormat:"yyyy-MM"},{format:"yyyy",beginningFormat:"yyyy"}],AA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=Ux(e.timeFormat)?e.timeFormat:void 0,n=Ux(e.beginningFormat)?e.beginningFormat:void 0,r=e.timeFormats,o=e.useBeginningFormat;if(this._formats=kA.map((function(t){return Jx(t)})),i&&this._formats.forEach((function(t){t.format=t.beginningFormat=i})),o&&n&&this._formats.forEach((function(t){t.beginningFormat=n})),Yx(r))for(var s=0;s<r.length;s++){var a=this._formats[s],u=r[s];qx(u)?a.format=u:Wx(u)&&(qx(u.format)&&(a.format=u.format),o&&qx(u.beginningFormat)&&(a.beginningFormat=u.beginningFormat))}},e.prototype.getTick=function(t,e){var i=this.chart,n=this.axis,r=n.date(e);if(this._formatter)return this._formatter.toStr(r,i.startOfWeek);var o=this._formats,s=n.tick._scale,a=xP.getFormatter;switch(s){case 7:return a(o[s].format).toStr(r,i.startOfWeek);case 6:return 0===t||0===r.getMonth()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 5:case 4:return 0===t||1===r.getDate()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 3:return 0===t||0===r.getHours()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 2:return 0===t||0===r.getMinutes()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 1:return 0===t||0===r.getSeconds()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 0:return 0===t||0===r.getMilliseconds()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek)}},e.defaults=lV(_A.defaults,{useBeginningFormat:!0}),e}(_A),CA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype._createTickModel=function(){return new VA(this)},e.prototype._createLabel=function(){return new AA(this)},e.prototype.collectValues=function(){this._offset=60*uS(this.chart.timeOffset,0)*1e3,t.prototype.collectValues.call(this)},e.prototype.getValue=function(t){return Zx(t)?t:t instanceof Date?t.getTime():Ux(t)?new Date(t).getTime()+this._offset:void 0},e.prototype.incStep=function(t,e){if(Ux(e)){var i=parseFloat(e);if(0!=i){var n=new Date(t);switch(e.charAt(e.length-1)){case"y":n.setFullYear(n.getFullYear()+i);break;case"m":n.setMonth(n.getMonth()+i);break;case"d":n.setDate(n.getDate()+i);break;case"w":n.setDate(n.getDate()+7*i);break;case"h":n.setHours(n.getHours()+i);break;case"n":n.setMinutes(n.getMinutes()+i);break;case"s":n.setSeconds(n.getSeconds()+i)}return+n}return t}return t+e},e.prototype.date=function(t){return new Date(t)},e.prototype.axisValueAt=function(t,e){return new Date(this.valueAt(t,e))},e.prototype.value2Tooltip=function(t){return isNaN(t)?this.chart._tooltip.options.nanText:new Date(t)},e.prototype.getXValue=function(t){return isNaN(t)?NaN:new Date(t)},e.prototype.getPos=function(e,i){return t.prototype.getPos.call(this,e,i)},e.type="time",e.subtype="date",e.defaults=lV(vA.defaults,{baseValue:NaN}),e}(vA),EA="circle",LA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getWidth=function(t){return jS(this._widthDim,t)},e.prototype.getHeight=function(t){return jS(this._heightDim,t)},e.prototype.getMaxWidth=function(t){return jS(this._maxWidthDim,t)},e.prototype.getMaxHeight=function(t){return jS(this._maxHeightDim,t)},e.prototype.getGap=function(t){return jS(this._gapDim,t,0)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"width","height","maxWidth","maxHeight","gap")},e.defaults=lV(ik.defaults,{maxWidth:"30%",maxHeight:"30%",gap:10}),e}(ik),NA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this._label=new LA(this.chart).init(),this._scale=new nk(this).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),e.prototype.isVertical=function(){return this._group?this._group.options.vertical:this._op.vertical},e.prototype.scaleVisible=function(){return!this._group&&this._scale.visible},e.prototype.calcedMinMax=function(){return this._scale.range()},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._label._prepareRender()},e.defaults=lV(ZV.defaults,{reversed:!1}),e}(ZV),MA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._args={gauge:null,value:NaN},e}return Fx(e,t),e.prototype.getStyle=function(t,e){if(this._op.styleCallback)return this._args.gauge=t,this._args.value=e,this._op.styleCallback(this._args)},e}(YV),TA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.valueBar=new MA(this).init(),this.band=new ek(this).init()},e.type="linear",e}(NA),OA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(pV.defaults,{opposite:!1,gap:10}),e}(pV),RA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(LA.defaults,{gap:10}),e}(LA),DA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.label=new RA(this.chart).init(),this.itemLabel=new OA(this.chart).init(),this.scale=new nk(this).init()},e.prototype.calcedMinMax=function(){return this.scale.range()},e.defaults=lV(UV.defaults,{vertical:!1,itemGap:10}),e}(UV),BA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.band=new ek(this).init()},e.prototype._gaugesType=function(){return"linear"},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this.band.visible&&this.band._prepareRender()},e.type="lineargroup",e.gaugeType="line",e}(DA),FA=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return Fx(e,t),e.prototype.getRanges=function(){var t;return null===(t=this.$_internalRanges())||void 0===t?void 0:t.slice(0)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.ranges)!==n._ranges&&(n._ranges=i,n._runRanges=null)},e.prototype.$_internalRanges=function(){if(!this._runRanges){var t=this.gauge.options;this._runRanges=US(this._ranges,t.minValue,t.maxValue,this._op.rangeInclusive)}return this._runRanges},e.defaults=lV(pV.defaults,{vertical:!0,rangeInclusive:!0}),e}(pV),IA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(pV.defaults,{visible:!0}),e}(YV),jA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(MA),$A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.band=new FA(this).init(),this.targetBar=new IA(this).init(),this.valueBar=new jA(this).init()},e.prototype.getRanges=function(t,e,i){return US(this._op.ranges,t,e,hS(i,this._op.rangeInclusive))},e.type="bullet",e.defaults=lV(NA.defaults,{rangeInclusive:!0}),e}(NA),zA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getRanges=function(t,e,i){return US(this._op.ranges,t,e,hS(i,this._op.rangeInclusive))},e.prototype._gaugesType=function(){return"bullet"},e.type="bulletgroup",e.gaugeType="bullet",e.defaults=lV(DA.defaults,{rangeInclusive:!0}),e}(DA),HA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getRange=function(t,e){var i,n,r=this.$_internalRanges(t);if(r)try{for(var o=jx(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(e>=a.fromValue&&e<a.toValue)return a}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.ranges)!==n._ranges&&(n._ranges=i,n._runRanges=null)},e.prototype.$_internalRanges=function(t){return this._runRanges||(this._runRanges=US(this._ranges,t.minValue,t.maxValue,this._op.rangeInclusive)),this._runRanges},e.defaults=lV(pV.defaults,{rangeInclusive:!0}),e}(YV),GA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getSegmentThickness=function(t){return jS(this._segmentThicknessDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"segmentThickness")},e.defaults=lV(HA.defaults,{segmentGap:0}),e}(HA),WA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getThickness=function(t){return jS(this._thicknessDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"thickness")},e.defaults=lV(HA.defaults,{thickness:"100%",stroked:!1}),e}(HA),YA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(pV.defaults,{visible:!1}),e}(YV),XA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getExtents=function(t){return{radius:jS(this._radiusDim,t,0),length:jS(this._lengthDim,t,0),offset:jS(this._offsetDim,t,0)}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"radius","length","offset")},e.defaults=lV(pV.defaults,{visible:!1,radius:3,length:"100%",offset:0}),e}(YV),UA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getRadius=function(t){return jS(this._radiusDim,t,0)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"radius")},e.defaults=lV(pV.defaults,{visible:!1,radius:5}),e}(YV),qA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._getStepMultiples=function(t){return[1,2,2.5,5,10]},e.defaults=lV(QV.defaults,{visible:!1,stepPixels:72}),e}(QV),ZA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.band=new ek(this).init(),this.scale=new qA(this).init(),this.rim=new GA(this).init(),this.valueRim=new WA(this).init(),this.marker=new YA(this).init(),this.hand=new XA(this).init(),this.pin=new UA(this).init()},e.prototype.getExtents=function(e){var i=t.prototype.getExtents.call(this,e),n=this.scale,r=this.band,o=i.radius,s=o-i.inner;if(r.visible)switch(i.bandThick=r.getThickness(s),r.options.position){case"inside":i.band=o-(s-i.bandThick)/2;break;case"opposite":i.band=i.inner-r.options.gap,i.inner=i.band-i.bandThick;break;default:i.band=o+=i.bandThick+r.options.gap}if(i.scaleTick=sS(1,n.tick.options.length||0),i.scaleLabel=16,"opposite"===n.options.position)i.scale=i.inner-n.options.gap,i.inner=i.scale-i.scaleTick-i.scaleLabel;else i.scale=o+n.options.gap;return i},e.type=EA,e}(sk),KA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._gaugesType=function(){return"circle"},e.type="circlegroup",e.gaugeType=EA,e.defaults=lV(ak.defaults,{innerRadius:"50%"}),e}(ak),JA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getThickness=function(t){return jS(this._thicknessDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"thickness")},e.defaults=lV(pV.defaults,{thickness:7}),e}(YV),QA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getLength=function(t){return jS(this._lengthDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"length")},e.defaults=lV(pV.defaults,{thickness:7,length:"60%"}),e}(YV),tC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(QA.defaults,{thickness:5,length:"85%"}),e}(QA),eC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(QA.defaults,{thickness:2,length:"95%",animatable:!1,duration:200}),e}(QA),iC=function(t){function e(e,i){var n=t.call(this,e)||this;return n.length=i,n}return Fx(e,t),e}(YV),nC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(pV.defaults,{step:1,offset:1}),e}(YV),rC=function(t){function e(e,i){var n=t.call(this,e)||this;return n.raidus=i,n}return Fx(e,t),e}(YV),oC=function(t){function e(e){return t.call(this,e.chart)||this}return Fx(e,t),e.defaults=lV(fV.defaults,{text:"RealChart Clock<br>ver1.0",position:"top"}),e}(fV),sC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.rim=new JA(this).init(),this.hourHand=new QA(this).init(),this.minuteHand=new tC(this).init(),this.secondHand=new eC(this).init(),this.tick=new iC(this,10).init(),this.minorTick=new iC(this,5).init(),this.tickLabel=new nC(this).init(),this.pin=new rC(this,5).init(),this.label=new oC(this).init()},e.prototype.getTime=function(){var t=this._op;return t.time instanceof Date?t.time:Ux(t.time)?new Date(t.time):isNaN(t.time)?void 0:new Date(t.time)},e.prototype.getExtents=function(t,e){var i=oS(t,e);return{cx:jS(this._centerXDim,t,t/2),cy:jS(this._centerYDim,e,e/3),rd:jS(this._radiusDim,i,i/2)}},e.prototype._doApply=function(e){var i,n,r,o=this;t.prototype._doApply.call(this,e),i=e.centerX,n=e.centerY,r=e.radius,(o._centerXDim||i!==o._centerX)&&(o._centerXDim=FS(hS(o._centerX=i,sk.DEF_CENTER),!0)),o._centerYDim&&n===o._centerY||(o._centerYDim=FS(hS(o._centerY=n,sk.DEF_CENTER),!0)),o._radiusDim&&r===o._radius||(o._radiusDim=FS(hS(o._radius=r,sk.DEF_RADIUS),!0))},e.type="clock",e.defaults=lV(XV.defaults,{centerX:"50%",centerY:"50%",radius:"40%",active:!0}),e}(XV),aC="line",uC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype._createLegendMarker=function(t,e){return bk.create(t,Bk.LEGEND_MARKER,0,0,e,e,2)},e.prototype._getFielderProps=function(){return["lowField"].concat(t.prototype._getFielderProps.call(this))},e.prototype._createPoint=function(t){return new kk(t)},e.prototype._getBottomValue=function(t){return t.lowValue},e.type="barrange",e.defaults=lV(Yk.defaults,{tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(Yk),lC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(Sk),hC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype._createPoint=function(t){return new lC(t)},e.prototype._getGroupBase=function(){return this._group?this._group.options.baseValue:this._op.baseValue},e.defaults=lV(Gk.defaults,{colorByPoint:!1}),e}(Gk),pC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._createLegendMarker=function(t,e){return bk.create(t,Bk.LEGEND_MARKER,0,0,e,e,2)},e.type="bar",e}(hC),cC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype.getBaseValue=function(t){return t._isX?NaN:uS(this._op.baseValue,t.getBaseValue())},e.prototype._doPrepareSeries=function(t){if("default"===this._op.layout){var e=t.length>1?t.map((function(t){return t.options.pointWidth})).reduce((function(t,e){return t+e}),0):t[0].options.pointWidth,i=0;t.forEach((function(t){t._childWidth=t.options.pointWidth/e,t._childPos=i,i+=t._childWidth}))}else this._op.layout},e.defaults=lV(qk.defaults,{baseValue:0}),e}(qk),fC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._canContain=function(t){return t instanceof pC},e.type="bargroup",e.seriesType="bar",e}(cC),_C=function(t){function e(e,i){var n=t.call(this,e,Bk.LEGEND_MARKER)||this;return n._size=i,n.add(n._marker=new OP(e)),n.setShape("circle",12),n}return Fx(e,t),e.prototype.setShape=function(t,e){t===this._shape&&e===this._size||(this._shape=t,this._size=e,this._renderShape(e))},e.prototype._renderShape=function(t){mk.setShape(this._marker,this._shape,t/2,t/2),this._marker.trans(this._markerOffset(t),0)},e.prototype._markerOffset=function(t){return 0},e}(EP),dC=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.insertFirst(n._line=new OP(e)),n.insertFirst(n._area=new OP(e)),n._area.setBoolData("fill",!0),n}return Fx(e,t),e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e);var i=["M",0,.5*e,"L",2*e,0],n=["M",0,.5*e,"L",2*e,0,"L",2*e,e,"L",0,e,"Z"];this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setPath(i.join(" ")),this._area.setPath(n.join(" ")))},e.prototype._markerOffset=function(t){return t/2},e}(_C),yC=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.insertFirst(n._line=new OP(e)),n._line.setFill("none"),n.insertFirst(n._line2=new OP(e)),n._line2.setFill("none"),n.insertFirst(n._area=new OP(e)),n._area.setBoolData("fill",!0),n}return Fx(e,t),e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e);var i=["M",0,.3*e,"L",.7*e,0,"L",2*e,.4*e],n=["M",0,e,"L",e,.7*e,"L",2*e,e],r=["M",0,.3*e,"L",.7*e,0,"L",2*e,.4*e,"L",2*e,e,"L",e,.7*e,"L",0,e,"Z"];this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setPath(i.join(" ")),this._line2.setPath(n.join(" ")),this._area.setPath(r.join(" ")))},e.prototype._markerOffset=function(t){return t/2},e}(_C),gC=function(t,e){return t==e||!(!t||!e)&&(t.x1===e.x1&&t.x2===e.x2&&t.y1===e.y1&&t.y2===e.y2)},vC=function(t){function e(e,i,n){void 0===i&&(i=xS),void 0===n&&(n=xS);var r=t.call(this,e,i)||this;return n&&r.setLine(n),r}return Fx(e,t),e.prototype.setLine=function(t,e,i,n){_S.isNumber(t)?this.setPath(mk.line(t,e,i,n)):t&&this.setPath(mk.line(t.x1,t.y1,t.x2,t.y2))},e.prototype.setVLine=function(t,e,i){this.setPath(mk.line(t,e,t,i))},e.prototype.setVLineC=function(t,e,i){var n=parseFloat(this.getStyle("stroke-width"));isNaN(n)||(t=Math.round(t)-n%2/2),this.setPath(mk.line(t,e,t,i))},e.prototype.setHLine=function(t,e,i){this.setPath(mk.line(e,t,i,t))},e.prototype.setHLineC=function(t,e,i){var n=parseFloat(this.getStyle("stroke-width"));isNaN(n)||(t=Math.round(t)-n%2/2),this.setPath(mk.line(e,t,i,t))},e}(OP);!function(t){function e(e,i,n){void 0===i&&(i=xS),void 0===n&&(n=xS);var r=t.call(this,e,null,i)||this;return r.setLine(n),r}Fx(e,t),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},set:function(t){gC(t,this._line)||(this._line=t,this.$_render())},enumerable:!1,configurable:!0}),e.prototype.updateLine=function(t){gC(t,this._line)||(this.line=t)},e.prototype.updateVLine=function(t,e,i){this.updateLine({x1:t,y1:e,x2:t,y2:i})},e.prototype.updateHLine=function(t,e,i){this.updateLine({x1:e,y1:t,x2:i,y2:t})},e.prototype.updateVLineC=function(t,e,i){this.updateLine({x1:t,y1:e,x2:t,y2:i})},e.prototype.updateHLineC=function(t,e,i,n){this.updateLine({x1:e,y1:t,x2:i,y2:t})},e.prototype.setLine=function(t,e,i,n){_S.isNumber(t)?this.$_update(t,e,i,n):t&&this.updateLine(t)},e.prototype.setVLine=function(t,e,i){this.$_update(t,e,t,i)},e.prototype.setVLineC=function(t,e,i){this.$_update(t,e,t,i)},e.prototype.setHLine=function(t,e,i){this.$_update(e,t,i,t)},e.prototype.setHLineC=function(t,e,i){this.$_update(e,t,i,t)},e.prototype.$_update=function(t,e,i,n){this.line={x1:t,y1:e,x2:i,y2:n}},e.prototype.$_render=function(){var t=this._line;t&&this.setPath(mk.line(t.x1,t.y1,t.x2,t.y2))}}(OP),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Fx(e,t),e.prototype.setPoints=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.setPath(mk.lines.apply(mk,zx([],$x(t),!1)))}}(OP);var mC=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.setFill("none"),n}return Fx(e,t),e.prototype.setPoints=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.setPath(mk.lines.apply(mk,zx([],$x(t),!1)))},e.prototype.resetStyles=function(e){var i=t.prototype.resetStyles.call(this,e);return this.setFill("none"),i},e}(OP),bC=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.insertFirst(n._line=new vC(e)),n}return Fx(e,t),e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e),this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setHLine(e/2,0,2*e),this._shape&&this._line.setStyle("strokeDasharray",""))},e.prototype._markerOffset=function(t){return t/2},e}(_C),wC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.toPoint=function(){return{px:this.px,py:this.py,isNull:this.isNull,range:this.range}},e}(Sk),xC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(Ik.defaults,{radius:4,hoverScale:1.75}),e}(Ik),SC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getAlignOffset=function(){var t=+this._op.alignOffset;return isNaN(t)?"left"===this._op.align||"right"===this._op.align?e.ALIGN_GAP:0:t},e.ALIGN_GAP=4,e.defaults=lV(Tk.defaults,{position:"head",align:"center"}),e}(Tk),PC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.marker=new xC(this).init()},e.prototype.getShape=function(t){return this.marker.visible?t&&t.shape||this.marker.options.shape||this._shape:null},e.prototype.getRadius=function(t){return uS(t.radius,this.marker.options.radius)},e.prototype.prepareLines=function(t){this._lines=this._doPrepareLines(t)},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new SC(t)},e.prototype._createPoint=function(t){return new wC(t)},e.prototype.hasShape=function(){return!0},e.prototype.setShape=function(t){this._shape=t},e.prototype._defViewRangeValue=function(){return"x"},e.prototype._createLegendMarker=function(t,e){return new bC(t,e)},e.prototype.legendMarker=function(e,i){var n=t.prototype.legendMarker.call(this,e,i);return n.setShape(this.getShape(null),oS(+i||pk.MARKER_SIZE,2*this.marker.options.radius)),n},e.prototype._doPrepareLines=function(t){var e=t.length,i=[];if(this._containsNull)for(var n=0;n<e;){for(var r=[];t[n].isNull&&n<e;)n++;for(;n<e&&!t[n].isNull;)r.push(t[n++]);r.length>0&&i.push(r)}else i.push(t.slice());return i},e.defaults=lV(Bk.defaults,{nullAsBase:!1}),e}(Bk),VC=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i}return Fx(e,t),e.prototype.label=function(){return this._op.text||this.series.displayName()},e.prototype.getDefaultIconPos=function(){return"left"},e.defaults=lV(_V.defaults,{visible:!1,offset:8}),e}(_V),kC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.flag=new VC(this).init()},e.prototype.backDir=function(){return"backward"===this._op.stepDir?"forward":"backward"},e.prototype.isMarker=function(){return!0},e.prototype.getLineType=function(){return this._group instanceof MC||this._group instanceof TC?this._group.options.lineType:this._op.lineType},e.prototype.getBaseValue=function(t){return t._isX?NaN:this._base},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._base=lS(this._group?this._group.getBaseValue(this._yAxisObj):this._op.baseValue,this._yAxisObj.getBaseValue(),0)},e.type=aC,e.defaults=lV(PC.defaults,{lineType:"default",stepDir:"forward",connectNullPoints:!1}),e}(PC),AC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._viewType=function(){return"line"},e.prototype.getLineType=function(){return"spline"},e.type="spline",e}(kC),CC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(wC),EC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this);var e=this.chart;this.marker.visible=e&&e.isPolar()},e.prototype.prepareAreas=function(){function t(t){var e=[];if(t.length>0){var i=t[t.length-1].toPoint();i.py=t[t.length-1].yLow,e.push(i),(i=t[0].toPoint()).py=uS(t[0].yLow,t[0].py),e.push(i)}return e}var e=this._group,i=this._lines,n=this._areas=[];if(e&&e._stacked){var r=[].concat.apply([],zx([],$x(i),!1));n.push(r),n.push(t(r))}else i.forEach((function(e){var i=e.slice(0);n.push(i),n.push(t(i))}))},e.prototype.isBased=function(t){return t===this._yAxisObj},e.prototype._createLegendMarker=function(t,e){return new dC(t,e)},e.prototype._createPoint=function(t){return new CC(t)},e.prototype._doPrepareLines=function(e){if(this._containsNull&&this._group&&this._group._stacked){for(var i=e.length,n=[],r=0;r<i;){var o=e[r].isNull,s=[];do{s.push(e[r++])}while(r<i&&e[r].isNull==o);n.push(s)}return n}return t.prototype._doPrepareLines.call(this,e)},e.type="area",e}(kC),LC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype._assignTo=function(e){return Jx(t.prototype._assignTo.call(this,e),{low:this.low,high:this.high,lowValue:this.lowValue,highValue:this.yValue})},e.prototype._valuesChangd=function(e){return this.low!==e.low||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){var i=e.length>2?1:0;this.low=e[uS(t.options.lowField,0+i)],this.y=e[uS(t.options.yField,1+i)],i>0&&(this.x=e[uS(t.options.xField,0)])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.low=hS(i[e.options.lowField],i.low),this.y=pS(e._yFielder(i),i.y,i.value))},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=cS(t.lowValue,this.lowValue,e)},e}(CC),NC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._createLegendMarker=function(t,e){return new yC(t,e)},e.prototype._createPoint=function(t){return new LC(t)},e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype.collectValues=function(e,i){t.prototype.collectValues.call(this,e,i),i&&e===this._yAxisObj&&this._runPoints.forEach((function(t){return!t.isNull&&i.push(t.lowValue)}))},e.prototype._doPrepareLines=function(e){var i=t.prototype._doPrepareLines.call(this,e),n=[];return i.forEach((function(t){for(var e=[],i=t.length-1;i>=0;i--){var r=t[i],o=r.toPoint();o.py=r.yLow,e.push(o)}n.push(t,e)})),n},e.type="arearange",e.defaults=lV(PC.defaults,{curved:!1,tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(PC),MC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._canContain=function(t){return t instanceof kC},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?lS(this._op.baseValue,t.getBaseValue(),0):NaN},e.type="linegroup",e.seriesType="line",e.defaults=lV(Xk.defaults,{lineType:"default"}),e}(Xk),TC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.prepareLines=function(t){if(this._stacked){var e=this._visibles.indexOf(t);if(e>0){for(var i=this._visibles[e-1],n=t._areas,r=i._areas,o=0;o<n.length;o+=2)n[o+1]=r[o].reverse();this._op.layout}}},e.prototype._canContain=function(t){return t instanceof EC},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?lS(this._op.baseValue,t.getBaseValue(),0):NaN},e.type="areagroup",e.seriesType="area",e.defaults=lV(Xk.defaults,{lineType:"default"}),e}(Xk),OC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(CC),RC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype._createPoint=function(t){return new OC(t)},e.prototype._doLoadData=function(e){var i=t.prototype._doLoadData.call(this,e);if(Yx(i))return this._loadTable(i)},e.prototype._referOtherSeries=function(t){if(this._points.isEmpty()&&(t.options.name===this._op.source||t.index===this._op.source))return t.referBy(this),!0},e.prototype.reference=function(t,e){if(!e._isX){var i=t._runPoints.map((function(t){return t.yValue})).filter((function(t){return!isNaN(t)})),n=this._loadTable(i);this._doLoadPoints(n),this._runPoints=this._points.getPoints(this._xAxisObj,this._yAxisObj),this.collectValues(this._xAxisObj,this._xAxisObj._values),this.collectValues(this._yAxisObj,this._yAxisObj._values)}},e.prototype._loadTable=function(t){var e=function(t,e,i){var n=i-t;return{x:i,y:Math.exp(-n*n/(2*e*e))/(e*Math.sqrt(2*Math.PI))}},i=t.length;if(!(i<1)){var n=this._op,r=t.reduce((function(t,e){return t+e}),0)/i,o=Math.sqrt(t.reduce((function(t,e){return t+Math.pow(e-r,2)}))/(i-1)),s=o/n.pointsInSigma,a=r-n.sigmas*o,u=r+n.sigmas*o,l=r,h=[];for(h.push(e(r,o,l));l>a;)l-=s,h.unshift(e(r,o,l));for(l=r;l<u;)l+=s,h.push(e(r,o,l));return h}},e.type="bellcurve",e.defaults=lV(EC.defaults,{sigmas:3,pointsInSigma:5,curved:!0}),e}(EC),DC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),Object.defineProperty(e.prototype,"max",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype.labelCount=function(){return 2},e.prototype.getLabelValue=function(t){return 0===t?this.yValue:this.minValue},e.prototype._assignTo=function(e){return Jx(t.prototype._assignTo.call(this,e),{min:this.min,low:this.low,mid:this.mid,high:this.high,max:this.max,minValue:this.minValue,lowValue:this.lowValue,midValue:this.midValue,highValue:this.highValue,maxValue:this.maxValue})},e.prototype._valuesChangd=function(e){return!!t.prototype._valuesChangd.call(this,e)||(this.min!==e.min||this.low!==e.low||this.mid!==e.mid||this.high!==e.high)},e.prototype._readArray=function(t,e){if(e.length<=4)this.isNull=!0;else{var i=t.options,n=e.length>5?1:0;n>0&&(this.x=e[uS(i.xField,0)]),this.min=e[uS(i.minField,0+n)],this.low=e[uS(i.lowField,1+n)],this.mid=e[uS(i.midField,2+n)],this.high=e[uS(i.highField,3+n)],this.y=e[lS(i.maxField,t.options.yField,4+n)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i);var n=e.options;this.min=hS(i[n.minField],i.min),this.low=hS(i[n.lowField],i.low),this.mid=hS(i[n.midField],i.mid),this.y=pS(i[n.highField],i.high,this.y)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.min=this.low=this.mid=this.high=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.minValue)||isNaN(this.lowValue)||isNaN(this.midValue))},e.prototype.initValues=function(){this.minValue=parseFloat(this.min),this.lowValue=parseFloat(this.low),this.midValue=parseFloat(this.mid),this.highValue=parseFloat(this.high)},e.prototype.initPrev=function(t,e){e.yValue=e.highValue=e.midValue=e.lowValue=e.minValue=this.minValue},e.prototype.applyValueRate=function(t,e){this.minValue=cS(t.minValue,this.minValue,e),this.lowValue=cS(t.lowValue,this.lowValue,e),this.midValue=cS(t.midValue,this.midValue,e),this.highValue=cS(t.highValue,this.highValue,e)},e}(Sk),BC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype.canCategorized=function(){return!0},e.prototype._getFielderProps=function(){return["minField","lowField","midField","highField"].concat(t.prototype._getFielderProps.call(this))},e.prototype._createPoint=function(t){return new DC(t)},e.prototype._getBottomValue=function(t){return t.minValue},e.prototype._createLegendMarker=function(t,e){return bk.create(t,Bk.LEGEND_MARKER,0,0,e,e,2)},e.type="boxplot",e.defaults=lV(Yk.defaults,{tooltipText:"<b>${name}</b><br>min: <b>${minValue}</b><br>low: <b>${lowValue}</b><br>mid: <b>${midValue}</b><br>high: <b>${highValue}</b><br>max: <b>${maxValue}</b>"}),e}(Yk),FC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(Vk),IC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getShape=function(){return this._op.shape||"circle"},e.prototype.getPixelMinMax=function(t){return{min:jS(this._minSizeDim,t),max:jS(this._maxSizeDim,t)}},e.prototype.getRadius=function(t,e,i){var n=this._noSize?1:(t-this._zMin)/(this._zMax-this._zMin);return"area"==this._op.sizeMode&&(n=Math.sqrt(n)),n=Math.ceil(e+n*(i-e))/2},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"minSize","maxSize")},e.prototype._createPoint=function(t){return new FC(t)},e.prototype._getNoClip=function(e){var i=t.prototype._getNoClip.call(this,e);return!Kx(i)||i},e.prototype.hasZ=function(){return!0},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=Number.MAX_VALUE,i=Number.MIN_VALUE;this._runPoints.forEach((function(t){t.isNull||isNaN(t.zValue)||(e=oS(e,t.zValue),i=sS(i,t.zValue))})),this._noSize=(this._zMin=e)===(this._zMax=i)},e.prototype._getRangeMinMax=function(e){return"z"===e?{min:this._zMin,max:this._zMax}:t.prototype._getRangeMinMax.call(this,e)},e.type="bubble",e.defaults=lV(Zk.defaults,{sizeMode:"area",minSize:10,maxSize:"20%",tooltipText:"x: <b>${x}</b><br>y: <b>${y}</b><br>volume: <b>${z}</b>"}),e}(Zk),jC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._canContain=function(t){return t instanceof kC},e.prototype._doConstraintYValues=function(t){var e={};for(var i in t.forEach((function(t){t._runPoints.forEach((function(t){var i=t.xValue,n=e[i];n?n.push(t):e[i]=[t]}))})),e)for(var n=e[i].sort((function(t,e){return t.yValue-e.yValue})),r=n.length-1;r>=0;r--)n[r].yLabel=n[r].yValue,n[r].yValue=n[r].yGroup=r;return _S.makeIntArray(0,t.length)},e.type="bump",e.seriesType=aC,e}(Uk),$C=function(t){return isNaN(t)?0:t},zC=function(){function t(){this._path=[]}return t.prototype.length=function(){return this._path.length},t.prototype.isEmpty=function(){return 0===this._path.length},t.prototype.clear=function(){return this._path=[],this},t.prototype.end=function(t){return void 0===t&&(t=!1),this._path.length>0?(t&&this._path.push("Z"),this._path.join(" ")):""},t.prototype.close=function(t){var e=this.end(!0);return t&&this.clear(),e},t.prototype.move=function(t,e){return Zx(t)?this._path.push("M",t,e):this._path.push("M",t.x,t.y),this},t.prototype.moveBy=function(t,e){return Zx(t)?this._path.push("m",t,e):this._path.push("m",t.x,t.y),this},t.prototype.line=function(t,e){return Zx(t)?this._path.push("L",t,e):this._path.push("L",t.x,t.y),this},t.prototype.moveOrLine=function(t,e,i){return t?this._path.push("L",e,i):this._path.push("M",e,i),this},t.prototype.vline=function(t,e,i){return this._path.push("M",t,e,"L",t,i),this},t.prototype.hline=function(t,e,i){return this._path.push("M",e,t,"L",i,t),this},t.prototype.curve=function(t,e,i,n,r,o){return this._path.push("C",t,e,i,n,r,o),this},t.prototype.quad=function(t,e,i,n){return Zx(t)?this._path.push("Q",t,e,i,n):this._path.push("Q",t.x1,t.y1,t.x2,t.y2),this},t.prototype.rect=function(t,e,i,n){return this._path.push("M",t,e,"l",i,0,"l",0,n,"l",-i,0),this},t.prototype.lines=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(Zx(t[0]))for(var i=0;i<t.length;i+=2)this._path.push("L",$C(t[i]),$C(t[i+1]));else for(i=0;i<t.length;i++)this._path.push("L",$C(t[i].x),$C(t[i].y));return this},t.prototype.polygon=function(){for(var t,e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return Zx(i[0])?(t=this.move(i[0],i[1])).lines.apply(t,zx([],$x(i.slice(2)),!1)):(e=this.move(i[0])).lines.apply(e,zx([],$x(i.slice(1)),!1)),this._path.push("Z"),this},t.prototype.circle=function(t,e,i){return this._path.push("M ".concat(t-i,", ").concat(e," a ").concat(i,",").concat(i," 0 1,0 ").concat(2*i,",0 a ").concat(i,",").concat(i," 0 1,0 ").concat(2*-i,",0")),this},t.prototype.getMove=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"M"===this._path[t]){var i={x:this._path[t+1],y:this._path[t+2]};return e&&this._path.splice(t,3),i}},t.prototype.getLine=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"L"===this._path[t]){var i={x:this._path[t+1],y:this._path[t+2]};return e&&this._path.splice(t,3),i}},t.prototype.getQuad=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"Q"===this._path[t]){var i={x1:this._path[t+1],y1:this._path[t+2],x2:this._path[t+3],y2:this._path[t+4]};return e&&this._path.splice(t,5),i}},t.prototype.getPoints=function(t,e,i){void 0===i&&(i=!0);for(var n=[];t<this._path.length&&n.length<e&&t<this._path.length&&("M"===this._path[t]||"L"===this._path[t]);)n.push({x:this._path[t+1],y:this._path[t+2]}),i&&this._path.splice(t,3);return n},t}(),HC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype._assignTo=function(e){return Jx(t.prototype._assignTo.call(this,e),{low:this.low,close:this.close,open:this.open,high:this.high,lowValue:this.lowValue,closeValue:this.closeValue,openValue:this.openValue,highValue:this.highValue})},e.prototype._valuesChangd=function(e){return!!t.prototype._valuesChangd.call(this,e)||(this.low!==e.low||this.close!==e.close||this.open!==e.open)},e.prototype._readArray=function(t,e){if(e.length<=3)this.isNull=!0;else{var i=t.options,n=e.length>4?1:0;n>0&&(this.x=e[uS(i.xField,0)]),this.low=e[uS(i.lowField,0+n)],this.close=e[uS(i.closeField,1+n)],this.open=e[uS(i.openField,2+n)],this.y=e[lS(i.highField,t.options.yField,3+n)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i);var n=e.options;this.low=hS(i[n.lowField],i.low),this.open=hS(i[n.openField],i.open),this.close=hS(i[n.closeField],i.close),this.y=pS(i[n.highField],i.high,this.y)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.close=this.open=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue)||isNaN(this.openValue)||isNaN(this.closeValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low),this.openValue=parseFloat(this.open),this.closeValue=parseFloat(this.close)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=e.openValue=e.closeValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=cS(t.lowValue,this.lowValue,e),this.openValue=cS(t.openValue,this.openValue,e),this.closeValue=cS(t.closeValue,this.closeValue,e)},e}(Sk),GC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new HC(t)},e.prototype._getBottomValue=function(t){return t.lowValue},e.prototype._createLegendMarker=function(t,e){var i=new zC;return i.rect(0,.2*e,e,.6*e),i.vline(e/2,0,e),new OP(t,Bk.LEGEND_MARKER,i.end())},e.type="candlestick",e.defaults=lV(Yk.defaults,{tooltipText:"<b>${name}</b><br>최저: <b>${lowValue}</b><br>시가: <b>${openValue}</b><br>종가: <b>${closeValue}</b><br>고가: <b>${highValue}</b>"}),e}(Yk),WC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(Tk.defaults,{position:"inside"}),e}(Tk),YC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new WC(t)},e.type="circlebar",e}(hC),XC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._canContain=function(t){return t instanceof YC},e.type="circlebargroup",e.seriesType="circlebar",e}(cC),UC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(kk),qC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(Ik.defaults,{radius:4,shape:"circle"}),e}(Ik),ZC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.marker=new qC(this).init()},e.prototype.canCategorized=function(){return!0},e.prototype.pointLabelCount=function(){return 2},e.prototype.getLabelOff=function(e){return t.prototype.getLabelOff.call(this,e)+sS(0,this.marker.options.radius)},e.prototype._createPoint=function(t){return new UC(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this.marker.options.radius,i=this.marker.options.shape;this._runPoints.forEach((function(t){t.radius=e,t.shape=i}))},e.prototype.collectValues=function(e,i){t.prototype.collectValues.call(this,e,i),i&&e===this._yAxisObj&&this._runPoints.forEach((function(t){var e=t.lowValue;!isNaN(e)&&i.push(e)}))},e.type="dumbbell",e}(Hk),KC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(Sk),JC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getSegmentSize=function(t){return jS(this._segmentSizeDim,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"segmentSize")},e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new KC(t)},e.prototype._createLegendMarker=function(t,e){var i=new zC;return i.rect(0,0,e,.4*e),i.rect(0,.6*e,e,.4*e),new OP(t,Bk.LEGEND_MARKER,i.end())},e.type="equalizer",e.defaults=lV(Gk.defaults,{segmentSize:10,segmentGap:4,segmented:!1}),e}(Gk),QC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.isClusterable=function(){return!1},e.prototype.pointLabelCount=function(){return 2},e.prototype._createPoint=function(t){return new kk(t)},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?0:NaN},e.prototype._createLegendMarker=function(t,e){var i=(new zC).vline(e/2,.1,.8*e).hline(.1,0,e).hline(.9*e,0,e),n=new OP(t,Bk.LEGEND_MARKER,i.end());return n.setStyle("strokeWidth","2px"),n},e.prototype._getBottomValue=function(t){return t.lowValue},e.type="errorbar",e.defaults=lV(Yk.defaults,{pointPadding:.3,tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(Yk),tE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(jk),eE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getSize=function(t,e){return{width:sS(.1*t,jS(this._widthDim,t)),height:sS(.1*e,jS(this._heightDim,e))}},e.prototype.getNeckSize=function(t,e){return{width:_S.clamp(jS(this._neckWidthDim,t),.1*t,t),height:_S.clamp(jS(this._neckHeightDim,e),.1*e,e)}},e.prototype._createPoint=function(t){return new tE(t)},e.prototype._doApply=function(i){var n,r=this;t.prototype._doApply.call(this,i),(n=i.width)!==r._width&&(r._width=n,r._widthDim=IS(r._width,e.defaults.width)),function(t){t!==r._height&&(r._height=t,r._heightDim=IS(r._height,e.defaults.height))}(i.height),function(t){t!==r._neckWidth&&(r._neckWidth=t,r._neckWidthDim=IS(r._neckWidth,e.defaults.neckWidth))}(i.neckWidth),function(t){t!==r._neckHeight&&(r._neckHeight=t,r._neckHeightDim=IS(r._neckHeight,e.defaults.neckHeight))}(i.neckHeight)},e.type="funnel",e.defaults=lV($k.defaults,{width:"85%",height:"90%",neckWidth:"30%",neckHeight:"30%",legendByPoint:!1}),e}($k),iE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(Vk),nE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getColor=function(t){},e.prototype.canMixWith=function(t){return!1},e.prototype.canCategorized=function(){return!0},e.prototype.hasZ=function(){return!0},e.prototype.defYAxisType=function(){return"category"},e.prototype._createPoint=function(t){return new iE(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=Number.MAX_VALUE,i=Number.MIN_VALUE;this._runPoints.forEach((function(t){isNaN(t.zValue)||(e=oS(e,t.zValue),i=sS(i,t.zValue))})),this._heatMin=e,this._heatMax=i},e.type="heatmap",e.defaults=lV(Bk.defaults,{tooltipText:"x: <b>${x}</b><br>y: <b>${y}</b><br>heat: <b>${z}</b>"}),e}(Bk),rE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.parse=function(e){t.prototype.parse.call(this,e);var i=this.source;this.min=i.min,this.max=i.max},e.prototype._assignTo=function(e){return Jx(t.prototype._assignTo.call(this,e),{min:this.min,max:this.max})},e}(Sk),oE={squreRoot:function(t){return Math.ceil(Math.sqrt(t))},struges:function(t){return Math.ceil(Math.log(t)*Math.LOG2E)},rice:function(t){return Math.ceil(2*Math.pow(t,1/3))}},sE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getBinCount=function(t){var e=uS(this._op.binWidth,0);return e>0?t/e:uS(this._op.binsNumber,0)<1?oE[this._op.binsNumber||"squreRoot"](t):void 0},e.prototype._createPoint=function(t){return new rE(t)},e.prototype._doLoadPoints=function(e){function i(t){var e;return e=Yx(t)?t[uS(this.yField,0)]:Wx(t)?pS(t[this.yField],t.y,t.value):t,parseFloat(e)}for(var n=this._op,r=[],o=[],s=0;s<e.length;s++){var a=i(e[s]);isNaN(a)||o.push(a)}if(o.length>0){o=o.sort((function(t,e){return t-e})),n.minValue<o[0]&&o.unshift(n.minValue),n.maxValue>o[o.length-1]&&o.push(n.maxValue);var u=o.length,l=o[0],h=o[u-1],p=this.getBinCount(u),c=this._binInterval=(h-l)/p,f=0,_=l,d=_+c;for(s=0;s<p;s++){var y=0;if(s==p-1)y=u-f;else for(;f<u&&o[f]<d;)y++,f++;r.push({x:_,y:y,min:_,max:s===p-1?h:d}),d=(_=d)+c}}t.prototype._doLoadPoints.call(this,r)},e.prototype.collectValues=function(e,i){t.prototype.collectValues.call(this,e,i),i&&(e===this._xAxisObj?i.push(this._runPoints[this._runPoints.length-1].max):e===this._yAxisObj&&i.push(this._base))},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._base=uS(this._op.baseValue,this._yAxisObj.getBaseValue())},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?this._base:NaN},e.prototype.isBased=function(t){return t===this._yAxisObj},e.prototype._createLegendMarker=function(t,e){return bk.create(t,Bk.LEGEND_MARKER,0,0,e,e,2)},e.type="histogram",e.defaults=lV(Bk.defaults,{baseValue:0,binsNumber:"squreRoot"}),e}(Bk),aE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(Ik.defaults,{radius:4,shape:"circle"}),e}(Ik),uE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(Sk),lE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this.marker=new aE(this).init()},e.prototype.canCategorized=function(){return!0},e.prototype.getLabelOff=function(e){return t.prototype.getLabelOff.call(this,e)+this.marker.options.radius},e.prototype._createPoint=function(t){return new uE(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this.marker.options.radius,i=this.marker.options.shape;this._runPoints.forEach((function(t){t.radius=e,t.shape=i}))},e.type="lollipop",e}(Gk),hE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(HC),pE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._createPoint=function(t){return new hE(t)},e.prototype._createLegendMarker=function(t,e){var i=new zC;i.vline(e/2,0,e),i.hline(.4*e,e/2,e),i.hline(.7*e,0,e/2);var n=new OP(t,Bk.LEGEND_MARKER,i.end());return n.setStyle("strokeWidth","2px"),n},e.type="ohlc",e}(GC),cE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(wC),fE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype._createPoint=function(t){return new cE(t)},e.prototype._referOtherSeries=function(t){if(t.options.name===this._op.source||t.index===this._op.source)return t.referBy(this),!0},e.prototype.reference=function(t,e){if(!e._isX){var i=this;n=t._runPoints,r=[],o=n.reduce((function(t,e){return t+uS(e.yValue,0)}),0),s=0,n.forEach((function(t){t.isNull||r.push({x:t.xValue,y:s+=100*t.yValue/o})})),i._doLoadPoints(r),i._runPoints=i._points.getPoints(i._xAxisObj,i._yAxisObj),this.collectValues(this._xAxisObj,this._xAxisObj._values),this.collectValues(this._yAxisObj,this._yAxisObj._values)}var n,r,o,s},e.type="pareto",e.defaults=lV(PC.defaults,{curved:!1}),e}(PC),_E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.sliced=!1,e.startAngle=0,e.angle=0,e}return Fx(e,t),Object.defineProperty(e.prototype,"thickness",{get:function(){return this._thickness},set:function(t){t!==this._thickness&&(this._thickness=t,this._thickDim=FS(t,!0))},enumerable:!1,configurable:!0}),e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.sliced=this.source.sliced},e.prototype._assignTo=function(e){return Jx(t.prototype._assignTo.call(this,e),{sliced:this.sliced})},e}(jk),dE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getDefaultIconPos=function(){return"left"},e}(_V),yE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.defaults=lV(Tk.defaults,{visible:!0}),e}(Tk);!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Fx(e,t)}(pV);var gE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInit=function(){t.prototype._doInit.call(this),this._innerText=new dE(this.chart).init()},Object.defineProperty(e.prototype,"innerText",{get:function(){return this._innerText},enumerable:!1,configurable:!0}),e.prototype.followPointer=function(){return!0},e.prototype.hasInner=function(){return this._innerRadiusDim&&this._innerRadiusDim.size>0},e.prototype.getInnerRadius=function(t){var e=this._innerRadiusDim;return e?e.size/(e.fixed?t:100):0},e.prototype.getSliceOffset=function(t){return!this._group&&this._sliceOffsetDim?jS(this._sliceOffsetDim,t):0},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new yE(t)},e.prototype._createPoint=function(t){return new _E(t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"innerRadius","sliceOffset")},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=uS(this._op.startAngle%360,0),i=sS(0,oS(360,uS(this._op.totalAngle,360)));this._startRad=VS+kS*e,this._totalRad=kS*i,this._groupPos=NaN},e.type="pie",e.defaults=lV(zk.defaults,{groupSize:1,labelDistance:25,sliceOffset:"7%",autoSlice:!0,sliceDuration:300,borderRadius:0}),e}(zk),vE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getPolarSize=function(t,e){return jS(this._polarDim,oS(t,e))},e.prototype.getInnerRadius=function(t){var e=this._innerDim;return e?e.size/(e.fixed?t:100):0},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.polarSize)!==n._polarSize&&(n._polarSize=i,n._polarDim=FS(i,!0)||{size:80,fixed:!1}),function(t){t!==n._innerSize&&(n._innerSize=t,n._innerDim=FS(t,!0))}(e.innerSize)},e.prototype.needAxes=function(){return!1},e.prototype._canContain=function(t){return t instanceof gE},e.prototype._doPrepareSeries=function(t){var e=t.map((function(t){return t.options.groupSize})).reduce((function(t,e){return t+uS(e,1)}),0),i=0;t.forEach((function(t){t._groupPos=i,i+=t._groupSize=uS(t.options.groupSize,1)/e}))},e.type="piegroup",e.seriesType="pie",e.defaults=lV(Xk.defaults,{polarSize:"80%",innerSize:0}),e}(Xk),mE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(Sk),bE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._createPoint=function(t){return new mE(t)},e.prototype._createLegendMarker=function(t,e){return new _C(t,e)},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype.setShape=function(t){this._defShape=t},e.prototype.getShape=function(t){return this._op.shape||this._defShape},e.prototype.hasShape=function(){return!0},e.prototype.legendMarker=function(e,i){var n=t.prototype.legendMarker.call(this,e,i);return n.setShape(this.getShape(null),oS(+i||pk.MARKER_SIZE,2*this._op.radius)),n},e.type="scatter",e.defaults=lV(Zk.defaults,{jitterX:0,jitterY:0,radius:5,hoverScale:1.8}),e}(Zk),wE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._assignTo=function(e){return Jx(t.prototype._assignTo.call(this,e),{id:this.id,group:this.group})},e.prototype._readArray=function(t,e){if(e.length<=2)this.isNull=!0;else{var i=e.length>3?1:0;i>0&&(this.x=e[uS(t.options.xField,0)]),this.y=e[uS(t.options.yField,0+i)],this.id=MS(e[uS(t.options.idField,1+i)]),this.group=MS(e[uS(t.options.groupField,2+i)])}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.id=MS(i[e.options.idField]),this.group=MS(i[e.options.groupField])},e}(Sk),xE=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.level=e,i.floating=!0,i}return Fx(e,t),e.defaults=lV(pV.defaults,{visible:!1}),e}(pV);!function(t){function e(e,i){var n=t.call(this,e.chart)||this;return n.series=e,n.level=i,n.head=new xE(n),n}Fx(e,t)}(pV);var SE,PE=function(){function t(t){this.point=t}return t.prototype.level=function(){return this.parent?this.parent.level()+1:0},t.prototype.getArea=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.setArea=function(t,e,i,n){this.x=t,this.y=e,this.width=i,this.height=n},t.prototype.getTotal=function(){return this.children.reduce((function(t,e){return t+e.value}),0)},t}(),VE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._levels=1,e}return Fx(e,t),e.prototype.buildMap=function(t,e){function i(t){if(t.children){var e=0;t.children.forEach((function(t,n){i(t),e+=t.value})),t.value=e,t.children=t.children.sort((function(t,e){return e.value-t.value})),t.children.forEach((function(t,e){t.index=e})),o=sS(o,t.level()+1+1)}else r.push(t),t.value=t.point?t.point.yValue:0}var n="vertical"===this._op.startDir||e>t,r=this._leafs=[],o=1;return this._roots.forEach((function(t,e){i(t)})),this._roots=this._roots.sort((function(t,e){return e.value-t.value})),this._roots.forEach((function(t,e){t.index=e})),(this[this._op.algorithm]||this.squarify).call(this,this._roots,t,e,n),this._levels=o,{roots:this._roots,leafs:this._leafs}},e.prototype.needAxes=function(){return!1},e.prototype.canMixWith=function(t){return!1},e.prototype._createPoint=function(t){return new wE(t)},e.prototype._getLabeledPoints=function(){return this._leafs.map((function(t){return t.point}))},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._roots=this.$_buildTree(this._runPoints)},e.prototype.$_buildTree=function(t){var e=[],i=[],n=this._map;t.forEach((function(t){if(t.id||!t.isNull){var r=new PE(t);t.id&&(n[t.id]=r),t.group?i.push(r):e.push(r)}}));for(var r=i.length-1;r>=0;r--){var o=i[r],s=n[o.point.group];(o.parent=s)?(s.children||(s.children=[]),s.children.push(o),o.children&&i.splice(r,1)):(e.push(o),i.splice(r,1))}return e},e.prototype.$_squarifyRow=function(t,e,i,n){var r=e.width*e.height,o=e.width,s=e.height,a=e.x,u=e.y,l=Number.MAX_VALUE,h=0,p=[];if(2===t.length)return(1===i?o>s:o>=s)?t.forEach((function(t){t.setArea(a,u,o*t.value/n,s),a+=t.width})):t.forEach((function(t){t.setArea(a,u,o,s*t.value/n),u+=t.height})),0;for(var c=function(){var c,f,_,d,y=void 0;return c=t.shift(),y=(h+=c.value)*r/n,1===i?(f=y/s,_=s*c.value/h):(_=y/o,f=o*c.value/h),d=sS(f/_,_/f),t.length>0&&d>l?(t.unshift(c),h-=c.value,y=r*h/n,1===i?f=y/(_=s):_=y/(f=o),p.forEach((function(t){1===i?(t.setArea(a,u,f,s*t.value/h),u+=t.height):(t.setArea(a,u,o*t.value/h,_),a+=t.width)})),1===i?(e.x+=f,e.width-=f):(e.y+=_,e.height-=_),{value:n-h}):0===t.length?(y=r*h/n,1===i?f=y/(_=s):_=y/(f=o),p.push(c),p.forEach((function(t){1===i?(t.setArea(a,u,f,s*t.value/h),u+=t.height):(t.setArea(a,u,o*t.value/h,_),a+=t.width)})),{value:0}):(l=d,void p.push(c))};t.length>0;){var f=c();if("object"==typeof f)return f.value}},e.prototype.$_squarify=function(t,e,i,n){var r=this,o=t.slice(0),s=i?1:0,a=t.reduce((function(t,e){return t+e.value}),0);do{a=this.$_squarifyRow(o,e,s,a),n&&(s=1-s)}while(a>0);t.forEach((function(t){t.children&&r.$_squarify(t.children,t.getArea(),!i,!0)}))},e.prototype.squarify=function(t,e,i,n){this.$_squarify(t,{x:0,y:0,width:e,height:i},n,!0)},e.prototype.strip=function(t,e,i,n){this.$_squarify(t,{x:0,y:0,width:e,height:i},n,!1)},e.prototype.$_sliceNext=function(t,e,i,n){if(t.x=e.x,t.y=e.y,1===i){var r=e.height*t.value/n;t.width=e.width,t.height=r,e.y+=r,e.height-=r}else{var o=e.width*t.value/n;t.height=e.height,t.width=o,e.x+=o,e.width-=o}t.children&&this.$_slice(t.children,t.getArea(),0===i,!0)},e.prototype.$_slice=function(t,e,i,n){var r=this,o=t.reduce((function(t,e){return t+e.value}),0),s=i?1:0;t.forEach((function(t){r.$_sliceNext(t,e,s,o),o-=t.value,n&&(s=1-s)}))},e.prototype.slice=function(t,e,i,n){this.$_slice(t,{x:0,y:0,width:e,height:i},n,!1)},e.prototype.sliceDice=function(t,e,i,n){this.$_slice(t,{x:0,y:0,width:e,height:i},n,!0)},e.type="treemap",e.defaults=lV(pV.defaults,{idField:"id",groupField:"group",algorithm:"squarify",alternate:!0,groupMode:!0}),e}(Bk),kE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._assignTo=function(e){return Jx(t.prototype._assignTo.call(this,e),{length:this.length,angle:this.angle,lengthValue:this.lengthValue,angleValue:this.angleValue})},e.prototype._valuesChangd=function(e){return this.length!==e.length||this.angle!==e.angle||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){if(e.length<=2)this.isNull=!0;else{var i=e.length>3?1:0;i>0&&(this.x=e[uS(t.options.xField,0)]),this.y=e[uS(t.options.yField,0+i)],this.length=e[uS(t.options.lengthField,1+i)],this.angle=e[uS(t.options.angleField,2+i)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.length=hS(i[e.options.lengthField],i.length),this.angle=hS(i[e.options.angleField],i.angle),this.y=pS(e._yFielder(i),i.y,i.value)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.length=this.angle=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lengthValue)||isNaN(this.angleValue))},e.prototype.initValues=function(){this.lengthValue=parseFloat(this.length),this.angleValue=parseFloat(this.angle)},e.prototype.initPrev=function(t,e){e.yValue=this.yValue,e.lengthValue=.001},e.prototype.applyValueRate=function(t,e){this.lengthValue=cS(t.lengthValue,this.lengthValue,e)},e}(Sk),AE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._createPoint=function(t){return new kE(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this._runPoints;if(e.length>0){var i=this._op.maxLength,n=this._op.origin,r=e.map((function(t){return t.length})).reduce((function(t,e){return sS(t,e)}));e.forEach((function(t){var e=t.length/r;switch(t._len=e*i,n){case"start":t._off=-t._len/2;break;case"end":t._off=t._len/2;break;default:t._off=0}}))}},e.prototype._createLegendMarker=function(t,e){for(var i=.3,n=.7*e,r=[0,-i*e,-.2*e,-i*e,0,-.6*e,.2*e,-i*e,0,-i*e,0,.6*e],o=["M",r[0],r[1]+n],s=2;s<r.length;s+=2)o.push("L",r[s],r[s+1]+n);var a=new OP(t,Bk.LEGEND_MARKER,o);return a.setStyle("strokeWidth","2px"),a.rotation=30,a},e.type="vector",e.defaults=lV(Bk.defaults,{origin:"center",maxLength:20,startAngle:0,arrowHead:"close"}),e}(Bk),CE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.low=0,e}return Fx(e,t),e.prototype.parse=function(e){t.prototype.parse.call(this,e),this._isSum=!0===this.source.isSum,this._intermediate=this.source.intermediate,this._isSum&&(this.y=0),this.save=this.y},e}(Sk),EE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new CE(t)},e.prototype._createLegendMarker=function(t,e){return bk.create(t,Bk.LEGEND_MARKER,0,0,e,e,2)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this._runPoints;if(!(e.length<1))for(var i,n,r=e[0],o=r.y=r._isSum?0:r.y,s=o,a=o,u=o,l=0,h=1,p=e.length;h<p;h++){if((r=e[h])._isSum){var c=e[h-1],f=!0===r._intermediate||h<p-1&&!1!==r._intermediate,_=r.save=r.y=f?u:a;r.yGroup=r.yValue=r.y,f?u<0?n=(l=c.low)-_:l=(n=c.y)-_:n=(l=e[0].low)+_,u=0}else(i=r.y)<0?l=s<0?(n=o+s)+i:(n=o)+i:n=(l=o)+i,u+=i,a+=i;s=r.y,r.y=o=n,r.low=l}},e.prototype._getBottomValue=function(t){return t.y=t.save,NaN},e.type="waterfall",e}(Wk),LE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.isFloating=function(){return this._op.floating||"middle"===this._op.verticalAlign&&"center"===this._op.align},e.defaults=lV(pV.defaults,{text:"RealChart v1.0",url:"http://realchart.co.kr",floating:!1,align:"right",verticalAlign:"bottom",offsetX:2,offsetY:1,gap:4}),e}(pV),NE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scope="auto",e}return Fx(e,t),e.prototype.getHintDistance=function(t){return isNaN(this.hintDistance)?this.chart._tooltip.visible&&this.chart._tooltip.isFollowPointer(t)?Number.MAX_SAFE_INTEGER:30:this.hintDistance},e.prototype.getScope=function(t,e){return"auto"!==hS(this.scope,"auto")?this.scope:this.chart._chartOptions.options.seriesHovering?"point":t._xAxisObj.crosshair.visible?"axis":t.isMarker()&&t._group?"group":"point"},e.defaults=lV(pV.defaults,{scope:"auto"}),e}(pV),ME=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.credits=new LE(null).init(),e.pointHovering=new NE(e.chart).init(),e}return Fx(e,t),e.prototype.getXStart=function(t){return t instanceof wA&&isNaN(this._op.xStart)?1:this._op.xStart||0},e.defaults=lV(pV.defaults,{paletteMode:"normal",animatable:!0,xStep:1,axisGap:8,seriesHovering:!1}),e}(pV);!function(t){t.LEFT="left",t.TOP="top",t.BOTTOM="bottom",t.RIGHT="right",t.CENTER="center",t.MIDDLE="middle"}(SE||(SE={}));var TE=function(t){function e(e){var i=t.call(this)||this;return i._data=new QS,i._params={},i._seriesIndex=0,i._dataDirty=!1,i._loadAnimatable=!0,i._assets=new aV,i._chartOptions=new ME(i).init(),i._title=new sA(i).init(),i._subtitle=new aA(i).init(),i._legend=new ck(i).init(),i._tooltip=new uA(i).init(),i._split=new oA(i).init(),i._series=new Fk(i),i._xAxes=new BV(i,!0),i._yAxes=new BV(i,!1),i._xPaneAxes=new jV(i),i._yPaneAxes=new $V(i),i._gauges=new qV(i),i._body=new lk(i).init(),i._annotations=new vV(i),i._navigator=new iA(i).init(),i._exporter=new hk(i).init(),Wx(e)?i._load(e):i._initOptions(),i}return Fx(e,t),e.prototype._initOptions=function(){return this.options=Object.assign({},e.defaults)},e.prototype._createChart=function(t){return new e(t)},e.prototype.animatable=function(){return!1!==this._chartOptions.options.animatable},e.prototype.loadAnimatable=function(){return this._loadAnimatable},e.prototype.getTooltipContext=function(t,e,i){var n=function(){function t(t){this.axis=t,this.series=t.getVisibleSeries()}return t.prototype.getTooltipText=function(t,e){return Xk.collectTooltipText(this.axis.options,this.series,e)},t.prototype.getTooltipParam=function(t,e,i){return Xk.inflateTooltipParam(this.series,t,e,i)},t}();switch("point"!==t&&"axis"!==t&&"group"!==t&&(t=this._chartOptions.pointHovering.getScope(e,i)),t){case"axis":return new n(e._xAxisObj);case"group":return e._group;default:return e}},Object.defineProperty(e.prototype,"chart",{get:function(){return this},enumerable:!1,configurable:!0}),e.prototype.anchorByName=function(t){},Object.defineProperty(e.prototype,"type",{get:function(){return this.options.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gaugeType",{get:function(){return this.options.gaugeType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polar",{get:function(){return this.options.polar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inverted",{get:function(){return this.options.inverted},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeOffset",{get:function(){return this.options.timeOffset},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startOfWeek",{get:function(){return this.options.startOfWeek},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._series.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstSeries",{get:function(){return this._series.firstSeries},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstGauge",{get:function(){return this._gauges.firstGauge},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"xAxis",{get:function(){return this._xAxes.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yAxis",{get:function(){return this._yAxes.first},enumerable:!1,configurable:!0}),e.prototype._needAxes=function(){return this._series.needAxes()},e.prototype._getSeries=function(){return this._series},e.prototype._getGauges=function(){return this._gauges},e.prototype._getXAxes=function(){return this._xAxes},e.prototype._getYAxes=function(){return this._yAxes},e.prototype.getAnnotations=function(){return this._annotations.getVisibles()},e.prototype.isGauge=function(){return this._gaugeOnly},e.prototype.isPolar=function(){return this._polar&&this._series.seriesCount()>0},e.prototype.isWidget=function(){return this._series.isWidget()},e.prototype.isInverted=function(){return this._inverted},e.prototype.isSplitted=function(){return this._splitted},e.prototype.isEmpty=function(t){return this._series.isEmpty(t)&&this._gauges.isEmpty(t)},e.prototype.seriesByName=function(t){return this._series.getSeries(t)},e.prototype.seriesAt=function(t){return this._series.get(t)},e.prototype.seriesByPoint=function(t){return this._series.seriesByPoint(t)},e.prototype.gaugeByName=function(t){return this._gauges.getGauge(t)},e.prototype.gaugeAt=function(t){return this._gauges.get(t)},e.prototype.annotationByName=function(t){return this._annotations.getAnnotation(t)||(this._splitted?this._split.getAnnotation(t):this._body.getAnnotation(t))},e.prototype.axisByName=function(t){return this._xAxes.get(t)||this._yAxes.get(t)},e.prototype.containsAxis=function(t){return this._xAxes.contains(t)||this._yAxes.contains(t)},e.prototype.getXAxis=function(t){return this._xAxes.get(t)},e.prototype.getYAxis=function(t){return this._yAxes.get(t)},e.prototype.getAxes=function(t,e){var i,n=this._xAxes.items(),r=this._yAxes.items();if(this.isInverted())switch(t){case SE.LEFT:i=n.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case SE.RIGHT:i=n.filter((function(t){return t._isOpposite}));break;case SE.BOTTOM:i=r.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case SE.TOP:i=r.filter((function(t){return t._isOpposite}));break;case SE.CENTER:i=n.filter((function(t){return t._isBetween}))}else switch(t){case SE.LEFT:i=r.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case SE.RIGHT:i=r.filter((function(t){return t._isOpposite}));break;case SE.BOTTOM:i=n.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case SE.TOP:i=n.filter((function(t){return t._isOpposite}));break;case SE.MIDDLE:i=n.filter((function(t){return t._isBetween}))}return i?e?i.filter((function(t){return t.visible})):i:[]},e.prototype._getLegendSources=function(){return this._series.getLegendSources()},e.prototype._setProperties=function(t,i){var n=this.options;for(var r in e.defaults)t.hasOwnProperty(r)&&(n[r]=t[r]);n.type=n.type||"bar",n.gaugeType=n.gaugeType||"circle",this._polar=!0===this.polar},e.prototype.loadBase=function(t,e,i){var n,r=this._bases[e];return Wx(r.base)&&hV(n={},r.base),Wx(r[i])&&(n||(n={}),hV(n,r[i])),n?hV(n,t):t},e.prototype._load=function(t){var e=this._initOptions();return this.$_loadTemplates(t.templates),this._setProperties(t),this._assets.load(t.assets),e.options=this._chartOptions.load(t.options),e.title=this._title.load(t.title),e.subtitle=this._subtitle.load(t.subtitle),e.legend=this._legend.load(t.legend),e.tooltip=this._tooltip.load(t.tooltip),this._split.load(t.split),this._seriesIndex=0,this._series.load(t.series),this._gauges.load(t.gauges||t.gauge),this._gaugeOnly=0===this._series.count&&!this._gauges.isEmpty(!1),this._gaugeOnly||(this._xAxes.load(pS(t.xAxes,t.xAxis,{})),this._yAxes.load(pS(t.yAxes,t.yAxis,{}))),e.body=this._body.load(t.body||t.plot),this._annotations.load(t.annotations||t.annotation,!1),e.seriesNavigator=this._navigator.load(t.seriesNavigator),e.exporting=this._exporter.load(t.exporting),this},e.prototype.update=function(t,e){for(var i in this._setProperties(t,!1),this){var n=this[i];(n instanceof pV||n instanceof cV||n instanceof aV)&&n.updateOptions(t[i],!1)}e&&this._modelChanged(null)},e.prototype.export=function(t){this._fireEvent("onExportRequest",t)},e.prototype._connectSeries=function(t,e){return e?this._xAxes.connect(t):this._yAxes.connect(t)},e.prototype._dataChanged=function(){this._dataDirty=!0},e.prototype._isDataChanged=function(){return this._dataDirty},e.prototype._prepareRender=function(){var t=this,e=this._xAxes,i=this._yAxes,n=this._split;[e,i].forEach((function(e){e.count<1&&!t._gaugeOnly&&e.load({})})),this._inverted=!this._polar&&this.inverted,this._splitted=n.visible,e.disconnect(),i.disconnect(),this._series.prepareRender(),e.prepare(),i.prepare(),e.collectValues(),i.collectValues(),e.collectReferentsValues(),i.collectReferentsValues(),i.collectRanges(),e.prepareRender(),i.prepareRender(),this._splitted&&!this._gaugeOnly&&(n._prepareRender(),this._xPaneAxes._prepare(e,n._vrows,n._vcols),this._yPaneAxes._prepare(i,n._vrows,n._vcols)),this._series.prepareAfter(),this._legend._prepareRender(),this._gauges.prepareRender(),this._body._prepareRender(),this._annotations.prepareRender(),this._navigator.visible&&this._navigator._prepareRender()},e.prototype.afterRender=function(){this._dataDirty=!1,this._xAxes.afterRender(),this._yAxes.afterRender()},e.prototype.layoutAxes=function(t,e,i,n){this._xAxes._buildTicks(i?e:t),this._yAxes._buildTicks(i?t:e),this.$_calcAxesPoints(t,e,i,0)},e.prototype.$_calcAxesPoints=function(t,e,i,n){var r=i?e:t;this._xAxes.forEach((function(t){t._calcPoints(r,n)})),r=i?t:e,this._yAxes.forEach((function(t){t._calcPoints(r,n)}))},e.prototype.axesLayouted=function(t,e,i){this.$_calcAxesPoints(t,e,i,101)},e.prototype.getParam=function(t,e){return this._params[e]},e.prototype.setParam=function(t,e,i){return i&&e!==this._params[t]?(this._params[t]=e,this._modelChanged(null)):this._params[t]=e,this},e.prototype.addSeries=function(t,e){var i=this._series.add(t);return i&&(this._dataChanged(),this._modelChanged(i)),i},e.prototype.removeSeries=function(t,e){var i=this._series.remove(t);if(i)return this._dataChanged(),this._modelChanged(null),i},e.prototype.render=function(){this._fireEvent("onRefreshRequest")},e.prototype.$_loadTemplates=function(t){var e=this,i=this._bases={xAxis:{},yAxis:{},series:{},gauge:{},annotation:{}};if(Wx(t)){var n=this._templates={};for(var r in t){var o=t[r];Wx(o)&&(n[r]=Jx({},o))}["@xAxis","@yAxis","@series","@gauge","@annotation"].forEach((function(e){t.hasOwnProperty(e)&&Wx(t[e])&&(i[e.substring(1)]=t[e])})),this.assignTemplates=function(t){var i=t.template;if(Ux(i)){var n=e._templates[i];if(n)return hV(hV({},n),t)}else Yx(i)&&i.forEach((function(i){var n=e._templates[i];return n?hV(hV({},n),t):n}));return t}}else this.assignTemplates=void 0},e.prototype._getGroupType=function(t){return Ux(t)&&Mk[t.toLowerCase()]},e.prototype._getSeriesType=function(t){return Ux(t)&&Nk[t.toLowerCase()]},e.prototype._getAxisType=function(t){return Ux(t)&&wV[t.toLowerCase()]},e.prototype._getGaugeType=function(t){return Ux(t)&&HV[t.toLowerCase()]},e.prototype._getGaugeGroupType=function(t){return Ux(t)&&GV[t.toLowerCase()]},e.prototype._getAnnotationType=function(t){return Ux(t)&&yV[t.toLowerCase()]},e.prototype.getAxesGap=function(){return this._chartOptions.options.axisGap||0},e.prototype._modelChanged=function(t,e){this._fireEvent("onModelChanged",t,e)},e.prototype._visibleChanged=function(t){this._fireEvent("onVisibleChanged",t)},e.prototype._pointVisibleChanged=function(t,e){this._fireEvent("onPointVisibleChanged",t,e)},e.defaults={type:"bar",gaugeType:"circle",polar:!1,inverted:!1,timeOffset:(new Date).getTimezoneOffset(),startOfWeek:0},e}(wS);DV.register(Lk,mA,wA,CA),Bk.register(EC,NC,uC,pC,RC,BC,IC,GC,YC,ZC,JC,QC,eE,nE,sE,kC,AC,lE,pE,fE,gE,bE,VE,AE,EE),Xk.register(TC,fC,jC,XC,MC,vE),Xk.registerSeries(TC,fC,XC,MC,vE),XV.register($A,ZA,sC,TA),UV.register(zA,KA,BA),gV.register(lA,hA,pA);var OE="$ctrl",RE=function(){function t(t,e){this._loaded=!1,this._modelCallback=e,this._obj=new TE(t),null==e||e(this._obj,null)}return t.prototype.destroy=function(){var t;this.$_destroyed||this.$_destroying||(this.$_destroying=!0,this[OE]=null===(t=this[OE])||void 0===t?void 0:t.destroy(),this._obj=null,this.$_destroyed=!0)},Object.defineProperty(t.prototype,"options",{get:function(){return this._obj.options},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._obj._data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._obj.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gaugeType",{get:function(){return this._obj.gaugeType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inverted",{get:function(){return this._obj.inverted},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polar",{get:function(){return this._obj.polar},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"assets",{get:function(){return this._obj._assets},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chartOptions",{get:function(){return this._obj._chartOptions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._obj._title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subtitle",{get:function(){return this._obj._subtitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._obj.first},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._obj.firstSeries},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gauge",{get:function(){return this._obj.firstGauge},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"legend",{get:function(){return this._obj._legend},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tooltip",{get:function(){return this._obj._tooltip},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xAxis",{get:function(){return this._obj.xAxis},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yAxis",{get:function(){return this._obj.yAxis},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"body",{get:function(){return this._obj._body},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"split",{get:function(){return this._obj._split},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xPaneAxes",{get:function(){return this._obj._xPaneAxes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yPaneAxes",{get:function(){return this._obj._yPaneAxes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seriesNavigator",{get:function(){return this._obj._navigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exporter",{get:function(){return this._obj._exporter},enumerable:!1,configurable:!0}),t.prototype.getXAxis=function(t){return this._obj.getXAxis(t)},t.prototype.getYAxis=function(t){return this._obj.getYAxis(t)},t.prototype.getSeries=function(t){return Ux(t)?this._obj.seriesByName(t):this._obj.seriesAt(t)},t.prototype.getGauge=function(t){return this._obj.gaugeAt(t)},t.prototype.getAnnotation=function(t){return this._obj.annotationByName(t)},t.prototype.load=function(t,e,i){var n;if(void 0===e&&(e=!1),Wx(t)){var r="load chart";_S.LOGGING&&console.time(r);var o=this._obj,s=o;this._loaded?(o.destroy(),s=this._obj=new TE):(this._loaded=!0,o=null),s._load(t),s._loadAnimatable=e,this._loadCallback=i,_S.log("chart-items:",uV),_S.LOGGING&&console.timeEnd(r),null===(n=this._modelCallback)||void 0===n||n.call(this,s,o)}return this},t.prototype.updateOptions=function(t,e){void 0===e&&(e=!0),this._obj.update(t,e)},t.prototype.export=function(t){this._obj.export(t)},t.prototype.render=function(){this._obj.render()},t.prototype.setParam=function(t,e,i){this._obj.setParam(t,e,i)},t.prototype.addSeries=function(t,e){return void 0===e&&(e=!0),this._obj.addSeries(t,e)},t.prototype.removeSeries=function(t,e){void 0===e&&(e=!0),this._obj.removeSeries(t,e)},t}(),DE=function(){function t(t,e){this._obj=new JS(t||{},e)}return Object.defineProperty(t.prototype,"rowCount",{get:function(){return this._obj.rowCount},enumerable:!1,configurable:!0}),t.prototype.getValue=function(t,e){return this._obj.getValue(t,e)},t.prototype.setValue=function(t,e,i){this._obj.setValue(t,e,i)},t.prototype.getValues=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=-1),this._obj.getValues(t,e,i)},t.prototype.getRow=function(t){return this._obj.getRow(t)},t.prototype.addRow=function(t,e){void 0===e&&(e=-1),this._obj.addRow(t,e)},t.prototype.deleteRow=function(t){void 0===t&&(t=-1),this._obj.deleteRow(t)},t}(),BE=function(t){function e(e,i,n,r){void 0===r&&(r=0);var o=t.call(this)||this;return o.removeDelay=0,o._pool=[],o._views=[],o._removes=[],o._owner=e,o._creator=i,o._styleName=n,o.removeDelay=r,o}return Fx(e,t),e.prototype._doDestroy=function(){this.freeAll(),this._owner=null,this._creator=null,t.prototype._doDestroy.call(this)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this._views.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._views.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._views[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._views[this._views.length-1]},enumerable:!1,configurable:!0}),e.prototype.get=function(t){return this._views[t]},e.prototype.getAll=function(){return this._views.slice()},e.prototype.pull=function(t){var e=this._views[t];return e||(e=this._pool.pop()||new this._creator(this._owner.doc,this._styleName),this._owner.add(e),this._views.push(e)),e},e.prototype._internalItems=function(){return this._views},e.prototype.elementOf=function(t){var e,i;try{for(var n=jx(this._views),r=n.next();!r.done;r=n.next()){var o=r.value;if(o.dom.contains(t))return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.find=function(t){return this._views.find(t)},e.prototype.setRemoveDelay=function(t){return this.removeDelay=t,this},e.prototype.removeLater=function(t,e){var i=this,n=this._views.indexOf(t);n>=0&&(t.removeLater(e,(function(t){i._pool.push(t)})),this._views.splice(n,1))},e.prototype.$_create=function(t,e,i){var n=this._pool.pop();return n||(n=new this._creator(t,this._styleName)),n},e.prototype.prepare=function(t,e,i){for(var n=this._owner.doc,r=this._owner,o=this._pool,s=this._views;s.length>t;)o.push(s.pop().remove());for(;s.length<t;){var a=this.$_create(n);s.push(a),null==i||i(a,s.length-1,t),r.add(a)}return e&&this.forEach(e),this},e.prototype.borrow=function(){var t=this._pool.pop()||new this._creator(this._owner.doc,this._styleName);return this._owner.add(t),t},e.prototype.free=function(t,e){if(void 0===e&&(e=0),t){e>0?t.removeLater(e):t.remove(),this._pool.push(t);var i=this._views.indexOf(t);i>=0&&this._views.splice(i,1)}},e.prototype.freeAll=function(t,e){void 0===e&&(e=0);for(var i=(t=t||this._views).length-1;i>=0;i--)this.free(t[i],e)},e.prototype.freeHiddens=function(){for(var t=this._views,e=t.length-1;e>=0;e--)!t[e].visible&&this.free(t[e],0)},e.prototype.freeFrom=function(t){for(var e=this._views,i=e.length-1;i>=t;i--)this.free(e[i],0)},e.prototype.forEach=function(t){for(var e=this._views,i=0,n=e.length;i<n;i++)t(e[i],i,n)},e.prototype.visit=function(t){for(var e=this._views.length,i=0;i<e&&!1!==t(this._views[i],i,e);i++);return i===e},e.prototype.sort=function(t){return this._views=this._views.sort(t),this},e.prototype.map=function(t){return this._views.map(t)},e.prototype.front=function(t){t.front(this._views)},e.prototype.back=function(t){t.back(this._views)},e}(bS),FE=Object.freeze({x:0,y:0,width:0,height:0}),IE=function(t,e,i,n){return{x:t,y:e,width:i,height:n}};function jE(t){return{width:t.width,height:t.height}}function $E(t){return t.width<=0||t.height<=0}var zE=function(){function t(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.top=t,this.bottom=e,this.left=i,this.right=n}return t.create=function(e,i,n,r){return isNaN(n)?isNaN(i)?new t(e,e,e,e):new t(e,e,i,i):new t(e,i,n,r)},t.createFrom=function(t){var e,i=t.split(/\s*[\s,]+\s*/g);return(e=this.create).call.apply(e,zx([null],$x(i.map((function(t){return+t}))),!1))},t.prototype.clone=function(){return new t(this.top,this.bottom,this.left,this.right)},t.prototype.applyPadding=function(t){return this.left=uS(t.paddingLeft,0),this.right=uS(t.paddingRight,0),this.top=uS(t.paddingTop,0),this.bottom=uS(t.paddingBottom,0),this},t.prototype.applyMargin=function(t){return this.left=uS(t.marginLeft,0),this.right=uS(t.marginRight,0),this.top=uS(t.marginTop,0),this.bottom=uS(t.marginBottom,0),this},t.prototype.shrink=function(t){return{x:t.x+this.left,y:t.y+this.top,width:t.width-this.left-this.right,height:t.height-this.top-this.bottom}},t.Empty=Object.freeze(new t),t.Temp=new t,t}(),HE=function(t){function e(e,i){void 0===i&&(i=xS);var n=t.call(this,e,i,"g")||this;return n._doInitChildren(e),n}return Fx(e,t),e.prototype.setAttr=function(i,n){return e.IGNORE_ATTRS.hasOwnProperty(i)||t.prototype.setAttr.call(this,i,n),this},e.prototype._doInitChildren=function(t){},e.IGNORE_ATTRS={width:"",height:""},e}(EP),GE=function(t){function e(e,i){void 0===i&&(i=xS);var n=t.call(this,e,i,"g")||this;return EP.DEBUGGING&&(n.add(n._debugRect=new bk(e,"rct-debug")),n._debugRect.setAttr("pointerEvents","none")),n}return Fx(e,t),e.prototype.chart=function(){return this.model.chart},e.prototype._prepareStyleOrClass=function(t){this.setStyleOrClass(t._style)},e.prototype.setModel=function(t){t!==this.model&&(this.model=t,this.options=t._op)},e.prototype.measure=function(t,e,i,n,r){this._prepareStyleOrClass(e),this.setModel(e);var o=this._doMeasure(t,this.model,i,n,r);return this.mw=o.width,this.mh=o.height,o},e.prototype.layout=function(t){return this._doLayout(t),EP.DEBUGGING?(this._debugRect||this.insertFirst(this._debugRect=new bk(this.doc,"rct-debug")),this.width>1&&this.height>1&&this._debugRect.setRect(this._getDebugRect())):this._debugRect&&(this._debugRect.remove(),this._debugRect=null),this},e.prototype.resizeByMeasured=function(){return this.resize(this.mw,this.mh),this},e.prototype._getDebugRect=function(){return{x:0,y:0,width:this.width,height:this.height}},e.prototype._doMeasure=function(t,e,i,n,r){return{width:i,height:n}},e.prototype._doLayout=function(t){},e.prototype._invalidate=function(){var t;null===(t=this.control)||void 0===t||t.invalidateLayout()},e}(EP),WE=function(t){function e(e,i,n){var r=t.call(this,e,i)||this;return r._margins=new zE,r._paddings=new zE,r.add(r._background=new bk(e,n)),r}return Fx(e,t),e.prototype._getDebugRect=function(){return this._margins.shrink(t.prototype._getDebugRect.call(this))},e.prototype.measure=function(t,e,i,n,r){this._prepareStyleOrClass(e),this.setModel(e),this._setBackgroundStyle(this._background);var o=getComputedStyle(this._background.dom),s=this._paddings;s.applyPadding(o);var a=this._doMeasure(t,e,i,n,r);if(a.width+=s.left+s.right,a.height+=s.top+s.bottom,this._marginable()){var u=this._margins;o=getComputedStyle(this.dom),u.applyMargin(o),this.mw=a.width+=u.left+u.right,this.mh=a.height+=u.top+u.bottom}return this.mw=a.width,this.mh=a.height,a},e.prototype.layout=function(e){if(t.prototype.layout.call(this,e),this._marginable()){var i=this._margins;this._background.setBounds(i.left+this._getBackOffset(),i.top,this.width-i.left-i.right,this.height-i.top-i.bottom)}else this._resetBackBounds()&&this._background.setBounds(0,0,this.width,this.height);return this},e.prototype._marginable=function(){return!0},e.prototype._resetBackBounds=function(){return!0},e.prototype._getBackOffset=function(){return 0},e.prototype._deflatePaddings=function(t){var e=this._paddings;t.width-=e.left+e.right,t.height-=e.top+e.bottom},e}(GE),YE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.measure=function(t,e,i,n,r){this._setInverted(e.isInverted());var o=this._doMeasure(t,e,i,n,r);return this.mw=o.width,this.mh=o.height,o},e.prototype.resizeByMeasured=function(){return this.resize(this.mw,this.mh),this},e.prototype.layout=function(t){return this._doLayout(t),this},e.prototype._setInverted=function(t){this._inverted=t},e}(HE),XE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._inverted=!1,e._animatable=!0,e._loadAnimatable=!0,e}return Fx(e,t),e.prototype._setChartOptions=function(t,e,i){this._inverted=t,this._animatable=e,this._loadAnimatable=i},e}(GE),UE=function(t){function e(e,i,n){var r=t.call(this,e,n,"image")||this;return r._dirty=!0,r._bounds=FE,r.onloadProxy=function(){var t=r.getBBox();r.resize(t.width,t.height)},i&&r.setAttr("preserveAspectRatio","xMidYMid slice"),r.dom.onload=function(){r._dirty=!0,r.invalidate(),r._dirty=!1},window.SVGGraphicsElement||(r._proxy=new Image,r._proxy.onload=function(){r._dirty=!0,r.invalidate(),setTimeout((function(){r.onloadProxy(),r._dirty=!1}),0)}),r}return Fx(e,t),Object.defineProperty(e.prototype,"url",{get:function(){return this.getAttr("href")},set:function(t){t!==this.url&&(this._dirty=!0,t?this.setAttr("href",t):this.unsetAttr("href"),this._proxy&&(this._proxy.src=t))},enumerable:!1,configurable:!0}),e.prototype.setImage=function(t,e,i){return!!t&&(this.url=t,this.resize(e,i)&&(this._dirty=!0),!0)},e.prototype.getBBox=function(){if(this._bounds=this.dom.getBBox(),this._proxy){var t=this._bounds.width,e=this._bounds.height;0==t||e?0==e||t||(t=e/this._proxy.height*this._proxy.width):e=t/this._proxy.width*this._proxy.height,this._bounds={x:this._bounds.x,y:this._bounds.y,width:t,height:e}}return this._bounds},e.prototype.resize=function(e,i,n){return void 0===n&&(n=!0),this._dirty&&t.prototype.resize.call(this,e,i,n)},e}(EP),qE=function(t){function e(e,i){void 0===i&&(i=xS);var n=t.call(this,e)||this;return n.add(n._text=new $P(e,i)),n._text.anchor=RP.START,n}return Fx(e,t),e.prototype.setText=function(t){return this._outline&&(this._outline.text=t),this._text.text=t,this},e.prototype.setModel=function(t,e,i,n){var r=e.options.effect;return this._model=e,this._text.setStyleOrClass(e._style),"background"===r?(this._outline&&this._outline.remove(),this._back||(this._back=new bk(t,"rct-label-background")),this.insertFirst(this._back),this._back.setStyleOrClass(e.options.backgroundStyle)):"outline"===r?(this._back&&this._back.remove(),this._outline||(this._outline=new $P(t)),this.insertFirst(this._outline),this._outline.anchor=this._text.anchor,this._outline.setStyleOrClass(e._style)):(this._back&&this._back.remove(),this._outline&&this._outline.remove()),i?this._icon||(this.add(this._icon=new UE(t,!1)),this._icon.url=i,this._icon.width=e.options.width,this._icon.height=e.options.height||16):this._icon&&(this._icon.remove(),this._icon=null),this},e.prototype.setContrast=function(t){var e,i=null===(e=this._model)||void 0===e?void 0:e.options;if(t&&(null==i?void 0:i.autoContrast)&&this._text.setContrast(t,i.darkStyle||"rct-label-dark",i.lightStyle||"rct-label-light"),this._outline&&this._outline.parent){var n=jP.getContrast(getComputedStyle(this._text.dom).fill);this._outline.setStyles({fill:n,stroke:n,strokeWidth:this._model._outlineWidth})}return this},e.prototype.layout=function(t){var e=this._icon,i=0,n=this._text.getBBox(),r=n.width,o=n.height,s=r,a=o,u=0,l=0,h=0,p=0;if(e){var c=e.getBBox();switch(i=uS(this._model.options.iconGap,0),u=c.width,l=c.height,this._model.getIconPos()){case"left":case"right":s+=i+u,a=Math.max(l,o);break;default:a+=i+l,s=Math.max(u,r)}}if(this._back&&this._back.parent){var f=getComputedStyle(this._back.dom);h=parseFloat(f.paddingLeft)||0,p=parseFloat(f.paddingTop)||0,this._back.setBounds(0,0,s+h+(parseFloat(f.paddingRight)||0),a+p+(parseFloat(f.paddingBottom)||0),f.rx)}if(e)switch(this._model.getIconPos()){case"left":e.trans(h,(a-l)/2),h+=u+i,s-=u+i;break;case"right":e.trans(h+s-u,(a-l)/2),s-=u+i;break;case"top":e.transX((s-u)/2),p+=l+i;break;case"bottom":e.trans((s-u)/2,p+o+i)}switch(t){case"center":h+=s/2,this._text.anchor=RP.MIDDLE;break;case"right":h+=s,this._text.anchor=RP.END;break;default:this._text.anchor=RP.START}return this._text.trans(h,p),this._outline&&(this._outline.anchor=this._text.anchor,this._outline.setAttr("y",this._text.getAttr("y")),this._outline.trans(h,p)),this},e}(HE),ZE=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o._axis=e,o._prevMin=i,o._prevMax=n,o.start(r),o}return Fx(e,t),e.prototype._doUpdate=function(t){if(this._axis.parent){var e=this._axis.model,i=this._prevMax-this._prevMin,n=(e.axisMax()-e.axisMin())/i;return t=n+(1-n)*t,e.setPrevRate(t),this._axis.invalidate(),!0}return!1},e.prototype._doStop=function(){this._axis.model.setPrevRate(NaN),this._axis=null},e}(dk),KE=function(t){function e(i){var n=t.call(this,i,e.TITLE_CLASS,"rct-axis-title-background")||this;return n.add(n._textView=new $P(i)),n._richText=new QP,n}return Fx(e,t),e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._getBackOffset=function(){return-this.width/2},e.prototype._doMeasure=function(t,e,i,n,r){this._angle=e.getRotation(),e.writingMode&&this._textView.setStyle("writingMode",e.writingMode),e.textOrientation&&this._textView.setStyle("textOrientation",e.textOrientation),this._richText.setFormat(e.options.text),this._richText.build(this._textView,i,n,null,null);var o=jE(this._textView.getBBox());if(!e.axis._isHorz&&0!==this._angle){var s=o.width;o.width=o.height,o.height=s}return o},e.prototype._doLayout=function(t){var e=this._textView,i=e.getStyle("writing-mode"),n=i===qS||i===ZS;t?this.rotation=0:this.setRotation(0,(n?this.width:this.height)/2,this._angle);var r=this._margins.top+this._paddings.top,o=0;switch(this.textAlign()){case"left":this._textView.anchor=RP.START,n||(o-=this.width/2);break;case"right":this._textView.anchor=RP.END,n?r+=this.height:o+=this.width/2;break;default:this._textView.anchor=RP.MIDDLE,n&&(r+=this.height/2)}e.trans(o,r)},e.prototype.resizeByMeasured=function(){return 0===this._angle?this.resize(this.mw,this.mh):this.resize(this.mh,this.mw),this},e.prototype.layout=function(e){return t.prototype.layout.call(this,e),this._debugRect&&this._debugRect.setBounds(-this.width/2,0,this.width,this.height),this},e.TITLE_CLASS="rct-axis-title",e}(WE),JE=function(t){function e(e){var i=t.call(this,e,nL.TICK_CLASS)||this;return i.add(i._lineView=new vC(e)),i}return Fx(e,t),e.prototype._doLayout=function(t){this.model.axis._isHorz?this._lineView.setVLine(0,0,this.height):this._lineView.setHLine(0,0,this.width)},e}(GE),QE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.index=-1,e.col=0,e.row=0,e.tickWidth=0,e}return Fx(e,t),e.prototype.setLabel=function(t,e,i,n,r){if(i){this._richText?this._richText._format!==i&&this._richText.setFormat(i):this._richText=new QP(i);var o=t.getIcon(e);this.setModel(this.doc,t,o&&t.getUrl(o),null),this._richText.build(this._text,n,r,t,t._domain),this._outline&&this._richText.build(this._outline,n,r,t,t._domain)}else this._richText&&(this._richText=null,this._text.text="")},e.prototype.rotatedWidth=function(){var t=this.rotation*kS,e=this.getBBox();return aS(iS(t)*e.height)+aS(eS(t)*e.width)},e.prototype.rotatedHeight=function(){var t=this.rotation*kS,e=this.getBBox();return aS(eS(t)*e.height)+aS(iS(t)*e.width)},e}(qE),tL=function(t){function e(e){var i=t.call(this,e,void 0)||this;return i.add(i._back=new OP(e,"rct-crosshair-flag")),i.add(i._text=new $P(e,"rct-crosshair-flag-text")),i}return Fx(e,t),e.prototype.setText=function(t,e){if(e!==this._text.text){this._text.text=e;var i=this._text.getBBox(),n=new zC,r=sS(t.flag.minWidth||0,i.width+8);n.rect(0,0,r,i.height+4),this._back.setPath(n.end()),this._text.trans(r/2,2)}},e}(EP),eL=function(t){function e(i){var n=t.call(this,i,"rct-axis-scrollbar")||this;return n._len=0,n._page=0,n._pos=0,n.add(n._trackView=new bk(i,e.TRACK_CLASS)),n.add(n._thumbView=new bk(i,e.THUMB_CLASS)),n}return Fx(e,t),e.isThumb=function(t){return t.classList.contains(e.THUMB_CLASS)},e.prototype.setScroll=function(t,e){if(this._reversed=e,t){var i=t.max-t.min,n=t.end-t.start;this._len=sS(0,i),this._page=oS(n,i),this._pos=oS(t.min+i-n,sS(0,t.start))}else this._len=0},e.prototype.getZoomPos=function(t){var e=this.model.axis._zoom,i=(this._vertical?this.height:this.width)-(this._vertical?this._thumbView.height:this._thumbView.width);return this.model.axis.options.reversed,(t=sS(0,oS(t,i)))*(e.max-e.min-(e.end-e.start))/i+e.min},e.prototype._doMeasure=function(t,e,i,n,r){return this.setStyleOrClass(e._style),(this._vertical=!e.axis._isHorz)?{width:e.getThickness()+e.getGap()+e.getGapFar(),height:n}:{width:i,height:e.getThickness()+e.getGap()+e.getGapFar()}},e.prototype._doLayout=function(t){var e=this.model,i=e.axis._zoom,n=this._szThumb=uS(e.getMinThumbSize(),32),r=this._len,o=0===this._len,s=this._page,a=o?0:this._pos-i.min,u=e.getGap(),l=u+e.getGapFar(),h=this.width,p=this.height;if(this._vertical){h-=l,this._trackView.setBounds(u,0,h,p),p-=n;var c=(o||s===r?p:p*s/r)+n;this._reversed,this._thumbView.setBounds(u+1,o?0:this.height-p*a/r-c,h-2,c)}else{p-=u+e.getGapFar(),this._trackView.setBounds(0,u,h,p),h-=n;var f=(o||s===r?h:h*s/r)+n;this._reversed,this._thumbView.setBounds(o?0:h*a/r,u+1,f,p-2)}},e.CLASS_NAME="rct-axis-scrollbar",e.TRACK_CLASS="rct-axis-scrollbar-track",e.THUMB_CLASS="rct-axis-scrollbar-thumb",e}(GE),iL=/\${label}.*?/g,nL=function(t){function e(i){var n=t.call(this,i,e.AXIS_CLASS)||this;return n._simpleMode=!1,n._markViews=[],n._edgeStart=0,n._marginStart=0,n._marginEnd=0,n._edgeEnd=0,n.add(n._lineView=new vC(i,e.LINE_CLASS)),n.add(n._titleView=new KE(i)),n.add(n._markContainer=new EP(i,"rct-axis-ticks")),n.add(n._labelContainer=new EP(i,"rct-axis-labels")),n._labelViews=new BE(n._labelContainer,QE,"rct-axis-label"),n}return Fx(e,t),e.prototype.$_checkScrollView=function(t,e,i,n,r){return e.visible&&!this.model._isBetween?(this._scrollView||this.add(this._scrollView=new eL(t)),this._scrollView.setVis(!0),this._scrollView.measure(t,e,n,r,1)[i]):(this._scrollView&&this._scrollView.setVis(!1),0)},e.prototype.checkHeight=function(t,e,i){var n=this.model,r=n.title,o=n.tick.visible?n.tick.options.length:0;return this.$_prepareLabels(n,e)&&(o+=this.$_measureLabelsHorz(n,e,!0)),this._titleView.setVis(r.visible)&&(o+=this._titleView.measure(t,r,e,i,1).height,o+=r.options.gap),o+=this.$_checkScrollView(t,n.scrollBar,"height",e,i)},e.prototype.checkWidth=function(t,e,i){var n=this.model,r=n.title,o=n.tick.visible?n.tick.options.length:0;return this.$_prepareLabels(n,e)&&(o+=this.$_measureLabelsVert(n,i,!0)),(this._titleView.visible=r.visible)&&(o+=this._titleView.measure(t,r,e,i,1).width,o+=r.options.gap),o+=this.$_checkScrollView(t,n.scrollBar,"width",e,i)},e.prototype.prepareGuides=function(t,e,i,n,r){var o=this;[n,r].forEach((function(n,r){if(n.setVis(!o._empty)){var s=o.model.guides.filter((function(t){return t.options.front==(1===r)&&t.canConstainedTo(e,i)}));n.setAll(t,s,!1)}}))},e.prototype.showCrosshair=function(t,e){var i,n=this.model,r=this._crosshairView;r||this.add(r=this._crosshairView=new tL(this.doc)),r.setVis(!0),r.setText(n.crosshair,e);var o=r.getBBox();n._isHorz?r.trans(t-o.width/2,n.tick.options.length):(i="opposite"===n._runPos?oS(0,this.width-o.width):sS(0,this.width-n.tick.options.length-o.width),r.trans(i,t-o.height/2))},e.prototype.setMargins=function(t,e,i,n){this._edgeStart=t,this._marginStart=e,this._marginEnd=i,this._edgeEnd=n},e.prototype.hideCrosshiar=function(){this._crosshairView&&this._crosshairView.setVis(!1)},e.prototype.scroll=function(t){},e.prototype.prepare=function(t){this.model=t,this._chartEmpty=t.chart.isEmpty(!0),this._empty=this._chartEmpty||t.isEmpty()},e.prototype.checkExtents=function(t){var e=this,i=this._prevModel,n=this._prevModel=this.model;if((!i||i===n)&&t){var r=this._prevMin,o=this._prevMax;this._prevMin=n.axisMin(),this._prevMax=n.axisMax(),(!isNaN(o)&&this._prevMax!==o||!isNaN(r)&&this._prevMin!==r)&&!n._zooming&&n.options.animatable&&new ZE(this,r,o,(function(){e.invalidate()}))}},e.prototype.clean=function(){this._prevMax=this._prevMin=NaN,this._prevModel=null},e.prototype._doMeasure=function(t,i,n,r,o){var s,a=i.line,u=i.tick,l=i._isHorz,h=i._isBetween,p=this._titleView,c=0;return(this._lineView.visible=a.visible)?(this._lineView.setStyleOrClass(a._style),h&&(this._lineView2?this._lineView2.setVis(!0):this.insertChild(this._lineView2=new vC(t,e.LINE_CLASS),this._lineView),this._lineView.setStyleOrClass(a._style))):this._lineView2&&this._lineView2.setVis(!1),this._markLen=u.options.length||0,this._markLen>0&&(c+=i.tick.options.gap||0),c+=this._markLen,this.$_prepareTickMarks(t,i)&&this._markViews.forEach((function(e){return e.measure(t,i.tick,n,r,o)})),h&&(c*=2),this.$_prepareLabels(i,l?n:r)?c+=this._labelSize=l?this.$_measureLabelsHorz(i,n):this.$_measureLabelsVert(i,r):this._labelSize=0,this._simpleMode?p.setVis(!1):(p.visible&&(c+=l?p.mh:p.mw,c+=+i.title.options.gap||0),(null===(s=this._scrollView)||void 0===s?void 0:s.visible)&&(c+=l?this._scrollView.mh:this._scrollView.mw)),{width:l?n:c,height:l?c:r}},e.prototype._doLayout=function(){var t=this.model,e=t._isHorz,i=t._isOpposite,n=t._isBetween,r=t._ticks,o=t._markPoints,s=this._labelViews,a=this._markLen,u=this.width,l=this.height;this._lineView.visible&&(e?this._lineView.setHLine(i?l:0,0,u):this._lineView.setVLine(i?0:u,0,l),this._lineView2&&(e?this._lineView2.setHLine(l,0,u):this._lineView2.setVLine(0,0,l))),this._markContainer.visible&&(e?this._markViews.forEach((function(e,n){e.resize(1,a),e.layout().trans(t.prev(o[n]),i?l-a:0)})):this._markViews.forEach((function(e,n){e.resize(a,1),e.layout().trans(i?0:u-a,l-t.prev(o[n]))})));var h=a+(t.tick.options.gap||0);if(this._labelContainer.visible&&s.count>0&&(e?this.$_layoutLabelsHorz(s,r,n,i,u,l,h):this.$_layoutLabelsVert(s,r,n,i,u,l,h)),!this._simpleMode){var p=t.title.options,c=this._titleView,f=this._scrollView,_=this._labelSize,d=0,y=0;if(c.visible){var g=+p.offset||0,v=+p.gap||0;if(c.resizeByMeasured().layout(e),e){if(y+=i?0:h+_+v,t.options.reversed)switch(p.align){case"start":d=u-c.width/2-g;break;case"end":d=c.width/2+g;break;default:d=u/2-g}else switch(p.align){case"start":d=c.width/2+g;break;case"end":d=u-c.width/2-g;break;default:d=u/2+g}c.trans(d,y),y+=c.height}else{var m=0===c._angle?c.width:c.height;if(d=i?h+_+v+m/2:u-h-_-v-m/2,t.options.reversed)if(0===c._angle)switch(p.align){case"start":y=0+g;break;case"end":y=l-c.height-g;break;default:y=(l-c.height)/2+g}else switch(p.align){case"start":y=c.width/2-c.height/2+g;break;case"end":y=l-c.width/2-c.height/2-g;break;default:y=(l-c.height)/2+g}else if(0===c._angle)switch(p.align){case"start":y=l-c.height-g;break;case"end":y=0+g;break;default:y=(l-c.height)/2-g}else switch(p.align){case"start":y=l-c.width/2-c.height/2-g;break;case"end":y=c.width/2-c.height/2+g;break;default:y=(l-c.height)/2-g}c.trans(d,y)}}else y+=i?0:h+_;(null==f?void 0:f.visible)&&(e?(f.trans(0,y).resize(this.width,f.mh),f.setScroll(t._zoom,t.options.reversed)):(f.trans(0,0).resize(f.mw,this.height),f.setScroll(t._zoom,t.options.reversed)),f.layout())}},e.prototype.$_prepareTickMarks=function(t,e){var i=this._markContainer;if(i.visible=e.tick.visible){for(var n=e._markPoints.length,r=this._markViews;r.length<n;){var o=new JE(t);i.add(o),r.push(o)}for(;r.length>n;)r.pop().remove();return!0}},e.prototype._prepareLabel=function(t,e,i,n,r){if(r||t.value!==e.value){var o=i.getLabelText(e,n),s=e.label;if(t.value=e.value,t.internalClearStyleAndClass(),t.internalSetStyleOrClass(i._style),t.internalSetStyleOrClass(i.getLabelStyle(e,n)),null!=o)s&&o.match(iL)?t.setLabel(i,e,o.replace(iL,s),1e3,1e3):(i.prepareRich(o),i._paramTick=e,t.setModel(this.doc,i,null,null),i.buildSvg(t._text,t._outline,NaN,NaN,i,i._domain));else t.setLabel(i,e,s,1e3,1e3)}},e.prototype.$_prepareLabels=function(t,e){if(this._labelContainer.setVis(!this._chartEmpty&&t.labelsVisible())){var i=t._ticks.length;return this._labelContainer.setStyleOrClass(t.label._style),i}return 0},e.prototype.$_getRows=function(t){return 2},e.prototype.$_getStep=function(t){return 2},e.prototype.$_checkOverlappedHorz2=function(t,e,i,n,r,o,s,a){for(var u,l=t.label,h=sS(0,oS(n-1,l.options.startStep||0)),p=t._ticks,c=p.length,f=(n=sS(1,n))*(r=oS(sS(1,r),p.length)),_=o||0,d=aS(_)*kS,y=d<35*kS,g=!1,v=0,m=0;m<r;m++){for(var b=m*n+h;b<c;b+=f){for(var w=0,x=b;x<b+f&&x<c;x++)w+=t.getLabelLength(i,p[x].value);if(b+f<c){(u=e.pull(v++)).rotation=_,u.row=m,u.index=b,this._prepareLabel(u,p[b],l,c,a),u.setVis(!0);var S=w;if(0===_&&u.getBBox().width>=S){g=!0;break}if(y&&u.getBBox().width*eS(d)>=S){g=!0;break}if(0!==_&&u.getBBox().height>=S){g=!0;break}}}if(g)return!0;b-f<c&&((u=e.pull(v++)).row=m,u.rotation=_,u.index=b-f,this._prepareLabel(u,p[b-f],l,c,a),u.setVis(!0))}!s&&e.freeFrom(v)},e.prototype.$_applyStep=function(t,e,i){var n=t.label,r=sS(0,oS(i-1,n.options.startStep||0));e.forEach((function(t){return t.index=-1}));for(var o=r;o<e.length;o+=i)e[o].index=o;return e.forEach((function(t){return t.setVis(t.index>=0)})),e.filter((function(t){return t.visible}))},e.prototype.$_measureLabelsHorz=function(t,e,i){var n=this;void 0===i&&(i=!1);var r,o=t.label,s=o.options,a=+s.step|0,u=+s.rows|0,l=+s.rotation%360,h=this.$_checkOverlappedHorz2(t,this._labelViews,e,a,u,l,!1,i),p=this._labelViews._internalItems();if(this._labelRowPts=[0],h)if("none"===s.autoArrange)this._labelViews.prepare(t._ticks.length,(function(e,r,s){e.rotation=l,e.row=0,e.index=r,n._prepareLabel(e,t._ticks[r],o,s,i),e.setVis(!0)})),p=this.$_applyStep(t,p,a||1);else{switch(a=u=0,o.options.autoArrange){case"rows":u=this.$_getRows(p);break;case"step":a=this.$_getStep(p)}if(a>1)for(;this.$_checkOverlappedHorz2(t,this._labelViews,e,a,1,0,!1,i);)a++;else if(u>1){for(;t._ticks.length>u&&(p.forEach((function(t,e){t.row=e%u,t.index=e})),this.$_checkOverlappedHorz2(t,this._labelViews,e,1,u,0,!1,i));)u++;this._labelRowPts=[]}else if((isNaN(l)||Math.abs(Math.tan(l*kS))<1)&&(l=-45),this.$_checkOverlappedHorz2(t,this._labelViews,e,a,u,l,!1,i))for(a=2;;){if(!this.$_checkOverlappedHorz2(t,this._labelViews,e,a,u,l,!1,i)){this.$_checkOverlappedHorz2(t,this._labelViews,e,a,u,0,!0,i)&&p.forEach((function(t,e){t.rotation=l}));break}a++}}else;if(p.length>0){if(u>1){for(var c=!isNaN(l)&&0!=l,f=this._labelRowPts,_=0;_<u;_++)f.push(0);p.forEach((function(t){f[t.row]=sS(f[t.row],c?t.rotatedHeight():t.getBBox().height)})),f.unshift(0);for(_=2;_<f.length;_++)f[_]+=f[_-1];return f[f.length-1]}if(isNaN(l)||0==l){r=p[0].getBBox().height;for(_=1;_<p.length;_++)r=sS(r,p[_].getBBox().height)}else{r=p[0].rotatedHeight();for(var _=1;_<p.length;_++)r=sS(r,p[_].rotatedHeight())}return r}return 0},e.prototype.$_checkOverlappedVert=function(t,e,i,n){var r=e.length,o=sS(1,n);e.forEach((function(t){return t.rotation=0}));for(var s=0;s<r-1;s+=o){for(var a=0,u=s;u<s+o&&u<r-1;u++)a+=t.getLabelLength(i,e[s].value);if(e[s].getBBox().height>=a)return!0}},e.prototype.$_checkOverlappedVert2=function(t,e,i,n,r){for(var o,s=t.label,a=t._ticks,u=a.length,l=sS(1,n),h=0,p=0;h<u;h+=l){for(var c=0,f=h;f<h+l&&f<u;f++)c+=t.getLabelLength(i,a[f].value);if(h+l<u&&((o=e.pull(p++)).rotation=0,o.index=h,this._prepareLabel(o,a[h],s,u,r),o.setVis(!0),o.getBBox().height>=c))return!0}h-l<u&&((o=e.pull(p++)).rotation=0,o.index=h-l,this._prepareLabel(o,a[h-l],s,u,r),o.setVis(!0)),e.freeFrom(p)},e.prototype.$_measureLabelsVert=function(t,e,i){var n=this;void 0===i&&(i=!1);var r=t.label,o=sS(1,+r.options.step|0),s=this.$_checkOverlappedVert2(t,this._labelViews,e,o,i),a=this._labelViews._internalItems();if(s)if("none"===r.options.autoArrange)this._labelViews.prepare(t._ticks.length,(function(e,o,s){e.rotation=0,e.index=o,n._prepareLabel(e,t._ticks[o],r,s,i),e.setVis(!0)})),a=this.$_applyStep(t,a,o||1);else for(;this.$_checkOverlappedVert2(t,this._labelViews,e,++o,i););else;if(a.length>0){for(var u=a[0].getBBox().width,l=1;l<a.length;l++)u=sS(u,a[l].getBBox().width);return u}return 0},e.prototype.$_layoutLabelsHorz=function(t,e,i,n,r,o,s){var a,u,l=this.model,h=l.label,p=l.options.reversed,c=this._labelRowPts,f=t.get(0).rotation,_=f*kS,d=f<-15&&f>=-90||f>15&&f<=90,y=t.count;t.freeHiddens(),t.forEach((function(t,i){var r=t.getBBox();a=l.prev(e[t.index].pos),u=n?o-s-r.height-c[t.row]:s+c[t.row],f<-15&&f>=-90?n?(a-=r.width,u-=iS(_)*r.height/2,t.setRotation(r.width,r.height/2,-f)):(a-=r.width,u+=iS(_)*r.height/2,t.setRotation(r.width,r.height/2,f)):f>15&&f<=90?n?(u+=iS(_)*r.height/2,t.setRotation(0,r.height/2,-f)):(u-=iS(_)*r.height/2,t.setRotation(0,r.height/2,f)):(a-=r.width/2,t.setRotation(r.width/2,0,n?-f:f)),t.setContrast(null).layout("center").trans(a,u)})),!d&&y>1&&(function(e,i,n){var r=!0,o=i.rotatedWidth(),s=i.tx;if(s<-e._marginStart-e._edgeStart)if("pull"===(p?h.options.lastOverflow:h.options.firstOverflow))if(s=-e._marginStart-e._edgeStart+2,t.count>0){var a=n.tx;s+o+(+h.options.overflowGap||12)>a&&(r=!1)}else r=!1;else r=!1;r?i.transX(s):i.setVis(!1)}(this,t.get(p?y-1:0),t.get(p?y-2:1)),function(t,e,i){var n=!0,o=e.tx,s=e.rotatedWidth();if(o+s>(r+=t._marginEnd+t._edgeEnd)){var a=h.options;"pull"===(p?a.firstOverflow:a.lastOverflow)?(o=r-s,i?o<i.tx+i.rotatedWidth()+(+a.overflowGap||12)&&(n=!1):n=!1):n=!1}n?e.transX(o):e.setVis(!1)}(this,t.get(p?0:y-1),t.get(p?1:y-2)))},e.prototype.$_layoutLabelsVert=function(t,e,i,n,r,o,s){var a=this.model,u=n?"left":i?"center":"right",l=n?s:r-s;t.freeHiddens(),t.forEach((function(t,s){var h=t.getBBox(),p=n?l:i?(r-h.width)/2:l-h.width;t.setContrast(null).layout(u).trans(p,o-a.prev(e[t.index].pos)-h.height/2)}))},e.AXIS_CLASS="rct-axis",e.LINE_CLASS="rct-axis-line",e.TICK_CLASS="rct-axis-tick",e}(GE),rL=function(t){function e(i,n,r){var o=t.call(this,i,e.STYLE)||this;return o.add(o._back=new bk(i,e.BACK_STYLE)),o.add(o._textView=new $P(i)),r&&o.dom.classList.add(r),n&&o.setText(n),o}return Fx(e,t),e.prototype.setText=function(t){this._textView.text=t},e.prototype.layout=function(t){this.setStyleOrClass(t),this._textView.layoutText();var e=getComputedStyle(this._back.dom),i=(new zE).applyPadding(e),n=this._textView.getBBox();this._back.rect={x:0,y:0,width:n.width+i.left+i.right,height:n.height+i.top+i.bottom},this._textView.trans(n.width/2+i.left,i.top)},e.prototype.click=function(){return!1},e.prototype.setVis=function(e){if(t.prototype.setVis.call(this,e))return e&&this._textView.stain(),!0},e.STYLE="rct-button",e.BACK_STYLE="rct-button-background",e}(EP),oL=function(t){function e(e,i){return t.call(this,e,i,"circle")||this}return Fx(e,t),e.prototype.setCircle=function(t,e,i){this.setAttrs({cx:t,cy:e,r:i})},e}(EP);!function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.setFill("none"),n}Fx(e,t),e.prototype.resetStyles=function(e){var i=t.prototype.resetStyles.call(this,e);return this.setFill("none"),i}}(oL);var sL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.setArc=function(t,e,i,n,r,o){this.setPath(mk.arc(t,e,i,i,n,close?n+r:n-r,o))},e}(OP),aL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.setPolyline=function(t){this.setPath(mk.lines.apply(mk,zx([],$x(t),!1)))},e}(sL),uL=function(t){function e(e,i,n){void 0===i&&(i=xS),void 0===n&&(n=xS);var r=t.call(this,e,i)||this;return r.cx=0,r.cy=0,r.rx=0,r.ry=0,r.innerRadius=0,r.start=0,r.angle=0,r.clockwise=!0,r.rate=1,n&&r._assignShape(n,!1),r.setAttr("role","img"),r}return Fx(e,t),e.create=function(t,i,n,r,o,s,a,u,l){return void 0===l&&(l=!0),new e(t,i,{cx:n,cy:r,rx:o,ry:s,innerRadius:0,start:a,angle:u,clockwise:l})},e.createInner=function(t,i,n,r,o,s,a,u,l,h){return void 0===i&&(i=""),void 0===h&&(h=!0),new e(t,i,{cx:n,cy:r,rx:o,ry:s,innerRadius:a,start:u,angle:l,clockwise:h})},e.prototype.equals=function(t){return t.cx===this.cx&&t.cy===this.cy&&t.rx===this.rx&&t.ry===this.ry&&t.innerRadius===this.innerRadius&&t.start===this.start&&t.angle===this.angle&&t.clockwise===this.clockwise},e.prototype.setSector=function(t){this._assignShape(t,!1)},e.prototype.setSectorEx=function(t,e){this._assignShape(t,e)},e.prototype._getShape=function(){return{cx:this.cx,cy:this.cy,rx:this.rx,ry:this.ry,innerRadius:this.innerRadius,start:this.start,angle:this.angle,clockwise:this.clockwise}},e.prototype._assignShape=function(t,e){this.cx=t.cx,this.cy=t.cy,this.rx=t.rx,this.ry=t.ry,this.innerRadius=t.innerRadius,this.start=t.start,this.angle=t.angle,this.clockwise=t.clockwise,this.setPath(e?this.$_renderArc():this.$_renderSector())},e.prototype.$_renderSector=function(){return mk.sector(this.cx,this.cy,this.rx*this.rate,this.ry*this.rate,this.innerRadius||0,this.start,this.clockwise?this.start+this.angle:this.start-this.angle,this.clockwise)},e.prototype.$_renderArc=function(){return mk.arc(this.cx,this.cy,this.rx*this.rate,this.ry*this.rate,this.start,this.clockwise?this.start+this.angle:this.start-this.angle,this.clockwise)},e}(OP),lL={},hL=function(t){function e(i,n){return t.call(this,i,e.CLASS_NAME+" "+n,"rct-annotation-background")||this}return Fx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){lL[t[0].type]=t[1]}))},e.prototype.update=function(t,e,i){this.measure(this.doc,this.model,e,i,0),this._layoutView(this.chart().isInverted(),t,0,0,e,i)},e.prototype._layoutView=function(t,e,i,n,r,o){this.resizeByMeasured(),this.layout(this._posByAnchor(e)||this.model.getPosition(this.chart().isInverted(),i,n,r,o,this.width,this.height))},e.prototype._posByAnchor=function(t){var e=this.model,i=e._anchorObj;if(i){var n=t.getAnnotationAnchor(i);if(n){var r=e.getOffset(this.width,this.height),o=n.width,s=n.height,a=n.tx,u=n.ty;switch(this.options.align){case"left":a-=this.width+r.x;break;case"right":a+=o+r.x;break;default:a+=(o-this.width)/2+r.x}switch(this.options.verticalAlign){case"middle":u+=(s-this.height)/2+r.y;break;case"bottom":u+=s+r.y;break;default:u-=this.height+r.y}return{x:a,y:u}}}},e.prototype._marginable=function(){return!1},e.prototype._resetBackBounds=function(){return!1},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doLayout=function(t){var e=this.model.options.rotation;this._background.setBounds(t.x,t.y,this.width,this.height),isNaN(e)||0===e?this.rotation=0:this.setRotation(this.width/2,this.height/2,e)},e.prototype.setRotation=function(t,e,i){return this._background.setRotation(t,e,i),this._setRotation(t,e,i),this},e.prototype._setRotation=function(t,e,i){},e.CLASS_NAME="rct-annotation",e}(WE),pL={},cL=function(t){function e(i,n){var r=t.call(this,i,n)||this;return r.dom.classList.add(r._defaultCalss()),r.add(r._paneElement=new bk(i,e.PANE_CLASS)),r.add(r._contentContainer=new LP(i,null)),r._doInitContents(i,r._contentContainer),r}return Fx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){pL[t[0].type]=t[1]}))},e.prototype._defaultCalss=function(){return e.GAUGE_CLASS},e.prototype.clicked=function(t){},e.prototype.prepareGauge=function(t,e){this._prepareGauge(t,e)},e.prototype.getPosition=function(t,e){var i=this.model,n=i.getLeft(t),r=i.getTop(e);return isNaN(n)&&(n=i.getRight(t)-this.width,isNaN(n)&&(n=(t-this.width)/2)),isNaN(r)&&(r=i.getBottom(e)-this.height,isNaN(r)&&(r=(e-this.height)/2)),{x:n,y:r}},e.prototype._prepareStyleOrClass=function(t){this._paneElement.setStyleOrClass(t.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,n,r){return e.getSize(i,n)},e.prototype._doLayout=function(){var t=this.width,e=this.height;this._paneElement.resizeRect(t,e);var i=Jx(SP.getPadding(this.dom));t-=i.left+i.right,e-=i.top+i.bottom,this._renderGauge(t,e),this._contentContainer.trans(i.left,i.top)},e.prototype._getGroupView=function(){for(var t=this.parent;t;){if(t instanceof bL)return t;t=t.parent}},e.GAUGE_CLASS="rct-gauge",e.PANE_CLASS="rct-gauge-pane",e}(XE),fL=function(t){function e(e,i,n){var r=t.call(this)||this;return r.view=e,r.from=i,r.to=n,r}return Fx(e,t),e.prototype._doUpdate=function(t){return this.view._runValue=this.from+(this.to-this.from)*t,this.view._renderValue(),!0},e}(dk),_L=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueOf=function(t,e,i){var n=t.getParam(e);return Zx(n)?oP.getFormatter(i||t.label.numberFormat).toStr(n):n},e._prevValue=0,e}return Fx(e,t),e.prototype._prepareStyleOrClass=function(e){t.prototype._prepareStyleOrClass.call(this,e),this._backgroundView().setStyleOrClass(e._style)},e.prototype._doLayout=function(){this._ani&&(this._ani.stop(),this._ani=null,this._prevValue=0),t.prototype._doLayout.call(this),this._checkValueAnimation()},e.prototype._getValue=function(t){return sS(t.options.minValue,oS(t.options.maxValue,uS(this._runValue,t.options.value)))},e.prototype._checkValueAnimation=function(){var t=this,e=this.model;this._animatable&&e.options.animatable&&e.options.value!==this._prevValue&&(this._ani=new fL(this,this._prevValue,e.options.value).start((function(){return t._runValue=NaN})),this._prevValue=e.options.value)},e}(cL),dL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(qE),yL=function(t){function e(e){var i=t.call(this,e,"rct-gauge-scale")||this;return i.add(i._line=i._createLine(e,"rct-gauge-scale-line")),i.add(i._tickContainer=new LP(e,"rct-gauge-scale-ticks")),i._ticks=new BE(i._tickContainer,vC),i.add(i._labelContainer=new LP(e,"rct-gauge-scale-tick-labels")),i._labels=new BE(i._labelContainer,dL),i}return Fx(e,t),e}(GE),gL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._createLine=function(t,e){return new vC(t,e)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._reversed,s=e._vertical,a=e.label,u=e.tick,l=e._steps,h=l.length,p=s?e.options.gap:i,c=s?n:e.options.gap;if(this._tickContainer.setVis(u.visible)&&(this._tickContainer.setStyleOrClass(u._style),this._ticks.prepare(h)),s?p+=u.options.length:c+=u.options.length,this._labelContainer.setVis(a.visible)&&(this._labelContainer.setStyleOrClass(a._style),this._labels.prepare(h,(function(e){e.setModel(t,a,null,null)})),h>0))if(s){var f=0;this._labels.forEach((function(t,e){t.setText(a.getText(l[o?e:h-1-e])),f=sS(t.getBBox().width)})),p+=f}else{var _=0;this._labels.forEach((function(t,e){t.setText(a.getText(l[o?h-1-e:e])),_=sS(t.getBBox().height)})),c+=_}return{width:p,height:c}},e.prototype._doLayout=function(){var t=this.model;t._vertical?this.$_layoutVert(t,this.width,this.height):this.$_layoutHorz(t,this.width,this.height)},e.prototype.$_layoutHorz=function(t,e,i){var n=t.options,r=this._line,o=t.tick,s=t._steps;s.length;var a,u="opposite"===n.position,l=u?-o.options.length:o.options.length,h=u?i-n.gap:n.gap;if(r.setVis(t.line.visible)&&(r.setStyleOrClass(t.line._style),r.setHLine(h,0,e)),this._tickContainer.setVis(o.visible)&&this._ticks.forEach((function(i,n){a=t.getRate(s[n])*e,i.setVLine(a,h,h+l)})),this._labelContainer.visible){var p=Number.MIN_SAFE_INTEGER;h=u?0:h+l,this._labels.forEach((function(i,n){var r=i.getBBox();a=t.getRate(s[n])*e,i.setVis(a-r.width/2>p)&&(i.layout("center").trans(a-r.width/2,h),p=a+r.width/2)}))}},e.prototype.$_layoutVert=function(t,e,i){var n=t.options,r=this._line,o=t.tick,s=t._steps;this.height,s.length;var a,u="opposite"===n.position,l=u?o.options.length:-o.options.length,h=u?n.gap:e-n.gap;if(r.setVis(t.line.visible)&&(r.setStyleOrClass(t.line._style),r.setVLine(h,0,i)),this._tickContainer.setVis(o.visible)&&this._ticks.forEach((function(e,n){a=t.getRate(s[n])*i,e.setHLine(a,h,h+l)})),this._labelContainer.visible){u?RP.START:RP.END;var p=u?"left":"right";h=u?h+l:e-n.gap+l,this._labels.forEach((function(e,n){var r=e.getBBox(),o=u?h:h-r.width;a=t.getRate(s[n])*i,e.layout(p).trans(o,a-r.height/2)}))}},e}(yL),vL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._measureLabelSize=function(t,e,i){var n=t.label,r=this.labelView();return n.setText(t.getLabel(n,t.options.value)),r.text=n.options.text,n.buildSvg(r,null,e,i,t,n._domain),jE(r.getBBox())},e.prototype._renderGauge=function(t,e){var i=this.model,n=uS(this._runValue,i.options.value);this._measureGauge(i,i.label,this.labelView(),n,i.isVertical(),t,e),this._renderValue()},e.prototype._renderValue=function(){var t=this.model,e=t.label,i=t.scale,n=this.labelView(),r=uS(this._runValue,t.options.value),o=Jx({},this._rBand);if(this._renderScale(o),this.background().setRect(o),o.height>0&&this._renderBand(t,o,r),"top"!==e._runPos&&"bottom"!==e._runPos||(this._rLabel.height=o.height),this._renderLabel(t,e,n,r),!this._vertical&&("left"===e._runPos||"right"===e._runPos)&&i.visible&&"opposite"===i.options.position){var s=n.getBBox();n.ty+s.height>this.height&&n.transY(sS(0,this.height-s.height))}},e.prototype._measureGauge=function(t,e,i,n,r,o,s){var a=this._rBand=IE(0,0,o,s);if(this._vertical=t._group instanceof DA?t._group.options.vertical:r,e.visible){var u=e._runPos=hS(e.options.position,this._vertical?"top":"left"),l=e._runVert="top"===u||"bottom"===u,h=t._group?t._group.itemLabel.options.gap:e._runGap=e.getGap(l?s:o),p=l?o:e.getWidth(o),c=l?e.getHeight(s):s,f=l?o:e.getMaxWidth(o),_=l?e.getMaxHeight(s):s,d=this._rLabel=IE(0,0,o,s);i.setStyleOrClass(e._style),e.setText(t.getLabel(e,e.options.animatable?n:t.options.value)),i.text=e.options.text,e.buildSvg(i,null,uS(p,f),uS(c,_),t,e._domain);var y=i.getBBox();switch(l?(d.height=uS(c,y.height),a.height=sS(0,a.height-(d.height+h))):(d.width=uS(p,y.width),this._wLabel=t._group?t._group._labelWidth:d.width,a.width=sS(0,a.width-(this._wLabel+h))),u){case"top":a.y=d.height+h;break;case"bottom":d.y=a.height+h;break;case"right":d.x=a.width+h;break;default:a.x=this._wLabel+h}}else this._rLabel=null},e.prototype._renderLabel=function(t,e,i,n){if(i.visible){var r=this._rLabel,o=i.getBBox(),s=r.x,a=r.y;switch(e._runPos){case"top":case"bottom":s+=r.width/2;break;case"right":s=this.width-r.width,i.anchor=RP.START,a+=sS(0,(r.height-o.height)/2);break;default:i.anchor=RP.END,s+=this._wLabel,a+=sS(0,(r.height-o.height)/2)}i.trans(s,a)}},e.prototype._renderScale=function(t){var e,i,n=this.model,r=n.label,o=n.scale,s=this.scaleView(),a=this._vertical?t.height:t.width;if(o._vertical=this._vertical,o._reversed=n.options.reversed,isNaN(this._runValue)&&o.buildSteps(a,n.options.value),s.setVis(n.scaleVisible())){var u=s.measure(this.doc,o,t.width,t.height,1);this._vertical?(e=0,i=t.y,t.width=sS(0,t.width-u.width),"opposite"===o.options.position?e=t.x+t.width:(r._runVert||(e=t.x),t.x+=u.width)):(e=t.x,t.height=sS(0,t.height-u.height),"opposite"===o.options.position?r._runVert?(i=t.y,t.y+=u.height):(this._rLabel.y=t.y+=u.height,i=t.y-u.height):i=t.y+t.height),s.resizeByMeasured().layout().trans(e,i)}},e}(_L),mL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(_L),bL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._defaultCalss=function(){return e.GAUGE_GROUP_CLASS},e.prototype._doInitContents=function(t,e){e.add(this._gaugeContainer=new LP(t,"rct-gauge-group-container")),this._gaugeViews=this._createPool(this._gaugeContainer)},e.prototype._setChartOptions=function(e,i,n){t.prototype._setChartOptions.call(this,e,i,n),this._gaugeViews.forEach((function(t){return t._setChartOptions(e,i,n)}))},e.prototype._prepareGauge=function(t,e){this._gaugeViews.prepare(e.count()),this._doPrepareGauges(t,e,this._gaugeViews)},e.prototype._renderGauge=function(t,e){this._doRenderGauges(this._gaugeContainer,this._gaugeViews,t,e)},e.prototype._doPrepareGauges=function(t,e,i){i.forEach((function(i,n){i.prepareGauge(t,e.getVisible(n))}))},e.GAUGE_GROUP_CLASS="rct-gauge-group",e}(cL),wL=function(){function t(t,e){var i=this._createAnimation(t,e);window.Animation&&i instanceof Animation&&(i.addEventListener("finish",(function(){t._animationFinished(i)})),t._animationStarted(i))}return t.reveal=function(t,e){new SL(t,e)},t.grow=function(t,e){new VL(t,e)},t.spread=function(t,e){new kL(t,e)},t.fadeIn=function(t){new xL(t,{prop:"opacity",start:"0",end:"1"})},t}(),xL=function(t){function e(e,i){return t.call(this,e,i)||this}return Fx(e,t),e.prototype._createAnimation=function(t,e){var i={},n={};return i[e.prop]=e.start,n[e.prop]=e.end,t.dom.animate([i,n],{duration:dk.DURATION,fill:"none"})},e}(wL),SL=function(t){function e(e,i){return t.call(this,e,i)||this}return Fx(e,t),e.prototype._createAnimation=function(t,e){var i,n=this.$_clipRect(t);switch(e&&e.from){case"top":i=this.$_top(t,n,e);break;case"bottom":i=this.$_bottom(t,n,e);break;case"right":i=this.$_right(t,n,e);break;default:i=this.$_left(t,n,e)}return null==i||i.addEventListener("finish",(function(){n.dom.remove()})),i},e.prototype.$_aniOptions=function(t){return{duration:dk.DURATION,fill:"none"}},e.prototype.$_clipRect=function(t){var e;if(t.model.needClip(!1))e=t.clipRect(.1*-t.width,.1*-t.height,1.2*t.width,1.2*t.height);else{var i=t.control;e=t.model.chart.isInverted()?t.clipRect(-i.width(),.1*-t.height,2*i.width(),1.2*t.height):t.clipRect(.1*-t.width,-i.height(),1.2*t.width,2*i.height())}return e},e.prototype.$_left=function(t,e,i){return e.dom.firstElementChild.animate([{width:"0"},{width:TS(t.width)}],this.$_aniOptions(i))},e.prototype.$_right=function(t,e,i){return e.dom.firstElementChild.animate([{transform:"translateX(".concat(t.width,"px)")},{transform:""}],this.$_aniOptions(i))},e.prototype.$_top=function(t,e,i){return e.dom.firstElementChild.animate([{height:"0"},{height:TS(t.height)}],this.$_aniOptions(i))},e.prototype.$_bottom=function(t,e,i){return e.dom.firstElementChild.animate([{transform:"translateY(".concat(t.height,"px)")},{transform:""}],this.$_aniOptions(i))},e}(wL),PL=function(t){function e(e,i){var n=t.call(this)||this;return n._series=e,n.endHandler=i,n.start(),n}return Fx(e,t),e.prototype._canUpdate=function(){return this._series.parent instanceof EP},e.prototype._stop=function(){t.prototype._stop.call(this),this._series=null},e}(dk),VL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doUpdate=function(t){return this._series.setGrowRate(t),!0},e.prototype._doStop=function(){this._series.setGrowRate(NaN)},e}(PL),kL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doUpdate=function(t){return this._series.setPosRate(t),!0},e.prototype._doStop=function(){this._series.setPosRate(NaN)},e}(PL),AL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.duration=500,e}return Fx(e,t),e.prototype._doUpdate=function(t){return this._series.setPrevRate(t),!0},e.prototype._doStop=function(){this._series.setPrevRate(NaN)},e}(PL),CL=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.duration=n?200:100,o._sv=e,o._focused=n,o._marker=i,n||(o._marker.setBoolData(RL.DATA_UNHOVER,!0),o._marker.saveStyles(),e.setHoverStyle(o._marker)),o.start(r),o}return Fx(e,t),e.prototype._doStart=function(){this._marker.beginHover(this._sv,this._focused)},e.prototype._doUpdate=function(t){return!!this._marker.parent&&(this._marker.setHoverRate(this._sv,this._focused,t),!0)},e.prototype._doStop=function(){this._marker.setBoolData(RL.DATA_UNHOVER,!1),!this._focused&&this._marker.restoreStyles(),this._marker.setHoverRate(this._sv,this._focused,NaN),this._marker=null},e}(dk),EL=function(t){function e(e){return t.call(this,e,"rct-point-label")||this}return Fx(e,t),e}(qE),LL=function(t){function e(e){var i=t.call(this,e,"rct-point-labels")||this;return i._labels=[new BE(i,EL),new BE(i,EL)],i._maps=[],i.ignorePointer(),i}return Fx(e,t),e.prototype.clear=function(){this._labels[0].prepare(0),this._labels[1].prepare(0)},e.prototype.prepareLabel=function(t,e,i,n,r,o){var s=r.getPointText(n,o.options.text),a=o._style;e.point=n,e.setModel(t,o,null,null),e._text.internalClearStyleAndClass(),e._text.internalSetStyleOrClass(a),e._text.internalSetStyleOrClass(r.getPointLabelStyle(n)),s?(o.prepareRich(s),o.buildSvg(e._text,e._outline,NaN,NaN,o,o.getTextDomain(n))):e.setText(o.getText(o.getValue(n,i)))},e.prototype.prepare=function(t,e){var i=this,n=e.model,r=n.pointLabel;if(r.visible){this.setVis(!0);var o=n.pointLabelCount(),s=this._labels,a=n._getLabeledPoints(),u=this._maps,l=r._style;s[0].prepare(a.length),u[0]={},s[1].prepare(o>1?a.length:0),u[1]={},a.forEach((function(o,a){for(var l=0;l<o.labelCount();l++){var h=s[l].get(a);h.setVis(e.isPointVisible(o))&&(i.prepareLabel(t,h,l,o,n,r),u[l][o.pid]=h)}})),this.setStyleOrClass(l)}else this.clear()},e.prototype.get=function(t,e){var i=this._maps[e];return i&&i[t.pid]},e.prototype.removePoint=function(t,e){for(var i=0;i<2;i++){var n=this.get(t,i);if(n)return void this._labels[i].removeLater(n,e)}},e}(LP),NL=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._line=new OP(e)),i}return Fx(e,t),e.prototype.setLine=function(t){this._line.setPath(t)},e}(HE),ML=function(t){function e(e){var i=t.call(this,e,"rct-point-label-lines")||this;return i._lines=new BE(i,NL),i}return Fx(e,t),e.prototype.prepare=function(t){var e=this._lines,i=t.getPoints(),n=t.pointLabel,r=this._map={};n.visible?e.prepare(i.count).forEach((function(t,e){var n=i.get(e);t.visible=n.visible,r[n.pid]=t})):e.prepare(0)},e.prototype.get=function(t){return this._map[t.pid]},e}(HE),TL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inverted=!1,e}return Fx(e,t),e.prototype.invert=function(t,e){return t!==this.inverted&&((this.inverted=t)?this.setAttr("transform","translate(0,".concat(e,") rotate(90) scale(-1,1)")):this.setAttr("transform","")),this.inverted},e}(LP),OL={},RL=function(t){function e(e,i){var n=t.call(this,e,"rct-series "+i)||this;return n._simpleMode=!1,n._growRate=NaN,n._posRate=NaN,n._prevRate=NaN,n._animations=[],n._hoverAnis=[],n._hoverPts=[],n.add(n._pointContainer=new TL(e,"rct-series-points")),n._labelContainer=new LL(e),n}return Fx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){OL[t[0].type]=t[1]}))},e.prototype.clipInvertable=function(){return!0},e.prototype.getClipContainer=function(){return this._pointContainer},e.prototype.getClipContainer2=function(){return null},e.prototype.defaultAnimation=function(){return"reveal"},e.prototype.setGrowRate=function(t){isNaN(t)&&isNaN(this._growRate)||t===this._growRate||(this._growRate=t,isNaN(t)&&isNaN(this._posRate)&&isNaN(this._prevRate)?this.invalidate():this._doViewRateChanged(t))},e.prototype.setPosRate=function(t){isNaN(t)&&isNaN(this._posRate)||t===this._posRate||(this._posRate=t,isNaN(t)&&isNaN(this._growRate)&&isNaN(this._prevRate)?this.invalidate():this._doPosRateChanged(t))},e.prototype.setPrevRate=function(t){isNaN(t)&&isNaN(this._prevRate)||t===this._prevRate||(this._prevRate=t,isNaN(t)&&isNaN(this._growRate)&&isNaN(this._prevRate)?this.invalidate():this._doPrevRateChanged(t))},e.prototype.isPointVisible=function(t){return t.visible&&!t.isNull&&this.model.isPointLabelVisible(t)},e.prototype._doViewRateChanged=function(t){},e.prototype._doPosRateChanged=function(t){},e.prototype._doPrevRateChanged=function(t){},e.prototype._animationStarted=function(t){this._animations.push(t),this._labelContainer&&this._labelContainer.setVis(!1)},e.prototype._animationFinished=function(t){var e=this._animations.indexOf(t);e>=0&&this._animations.splice(e,1),this._invalidate()},e.prototype.pointByDom=function(t){return this._getPointPool().elementOf(t)},e.prototype.getPointView=function(t){return this._getPointPool().find((function(e){return e.point===t}))},e.prototype.clicked=function(t){var e=this.pointByDom(t);e&&!0!==this.model.pointClicked(e.point)&&this._doPointClicked(e)},e.prototype._doPointClicked=function(t){},e.prototype.prepareSeries=function(t,e){this.setModel(e),this.setData("index",e.seriesIndex%12),this.setData("pointcolors",e._colorByPoint()?"a":xS),this.internalClearStyleAndClass(),this.internalSetStyleOrClass(e._style),e._runColor&&this._setModelColor(e._runColor),e._calcedColor=getComputedStyle(this.dom)[this._legendColorProp()],this._visPoints=this._collectVisPoints(e),this._prepareSeries(t,e)},e.prototype._setModelColor=function(t){this.setColor(t)},e.prototype._legendColorProp=function(){return"fill"},e.prototype.needDecoreateLegend=function(){return!1},e.prototype.decoreateLegend=function(t){},e.prototype.afterLayout=function(){this._doAfterLayout()},e.prototype.setHoverStyle=function(t){t.internalImportantStylesOrClass(this.model.options.hoverStyle)},e.prototype.hoverPoints=function(t){var i=this,n="none"!==this.model.options.hoverEffect,r=this._hoverAnis,o=this._hoverPts,s=[],a=[];n&&(o.forEach((function(n){if(n instanceof EP&&(!t||t.indexOf(n)<0)){var o=r.find((function(t){return t._marker===n}));o&&o.stop(),n.setBoolData(e.DATA_HOVER,!1),n.restoreStyles(),n instanceof HL&&s.push(new CL(i,n,!1,(function(){n.endHover(i,!1)})))}})),t&&t.forEach((function(t){if(!t.point.isNull){var n=r.find((function(e){return e._marker===t}));n&&n.stop(),t instanceof EP&&(t.setBoolData(e.DATA_HOVER,!0),a.push(t),t.restoreStyles(),t.saveStyles(),i.setHoverStyle(t),t instanceof HL?s.push(new CL(i,t,!0,(function(){t.endHover(i,!0)}))):i instanceof YL&&i._getPointPool().front(t))}}))),r&&r.forEach((function(t,e){t._started&&s.push(t)})),this._hoverAnis=s,this._hoverPts=a,this.model.pointHovered(a&&a.length>0?a[0].point:null)},e.prototype._needFocusOrder=function(){return!0},e.prototype.getPointsAt=function(t,e){},e.prototype.getSiblings=function(t){return[t]},e.prototype.getSibling=function(t){},e.prototype._doAttached=function(t){this.control.loaded&&_k(this.dom,"opacity",0,1,500,null)},e.prototype._prepareStyleOrClass=function(t){},e.prototype._prepareViewRanges=function(t){},e.prototype._doMeasure=function(t,e,i,n,r){return this._animating()||this.setClip(),this.model._xAxisObj._seriesChanged&&this._savePrevs(),this._prepareViewRanges(e),!this._lazyPrepareLabels()&&this._labelContainer.prepare(t,this),e.trendline.visible?(this._trendLineView||this.add(this._trendLineView=new OP(t,"rct-series-trendline")),this._trendLineView.setVis(!0)):this._trendLineView&&this._trendLineView.setVis(!1),{width:i,height:n}},e.prototype._doLayout=function(){this._labelViews(),this._renderSeries(this.width,this.height),this._trendLineView&&this._trendLineView.visible&&this.$_renderTrendline(this._inverted),this._animatable&&!this._simpleMode&&this._runShowEffect(!this.control.loaded&&this.chart().loadAnimatable())},e.prototype._doAfterLayout=function(){var t=this;this.model._xAxisObj._seriesChanged&&new AL(this,(function(){t.invalidate()}))},e.prototype._collectVisPoints=function(t){return t._visPoints},e.prototype.$_setColorIndex=function(t,e){t.setData("index",e.index%12)},e.prototype._setPointColor=function(t,e){t.setColor(e)},e.prototype._setPointStyle=function(t,e,i,n){t.setAttrEx("aria-label",i.ariaHint()),this.$_setColorIndex(t,i),t.internalClearStyleAndClass(),e.options.pointStyle&&t.internalSetStyleOrClass(e.options.pointStyle),n&&n.forEach((function(e){return e&&t.internalSetStyleOrClass(e)})),i.color&&this._setPointColor(t,i.color),i.range&&(i.range.color&&this._setPointColor(t,i.range.color),i.range.style&&t.internalSetStyleOrClass(i.range.style));var r=e.getPointStyle(i);r&&t.internalSetStyleOrClass(r)},e.prototype._labelViews=function(){return this._labelContainer.setVis(this.model.pointLabel.visible&&!this._animating()),this._labelContainer.visible?this._labelContainer:xS},e.prototype._getGrowRate=function(){return uS(this._growRate,1)},e.prototype._animating=function(){return!isNaN(this._growRate)||!isNaN(this._posRate)||!isNaN(this._prevRate)||this._animations.length>0},e.prototype._lazyPrepareLabels=function(){return!1},e.prototype._getShowAnimation=function(){},e.prototype._runShowEffect=function(t){},e.prototype._drawSpline=function(t,e,i,n){var r=e;if(i<0&&(i=t.length-1),1!==Math.abs(i-e)){var o=.35,s={x:0,y:0},a={x:0,y:0},u={x:0,y:0},l={x:t[r+1].px-t[r].px,y:t[r+1].py-t[r].py},h={x:0,y:0},p=Math.sqrt(l.x*l.x+l.y*l.y);l.x/=p,l.y/=p;var c=t[r+1].px-t[r].px,f=t[r].px,_=t[r].py;for(++r;r!=i;r++){u.x=-l.x,u.y=-l.y,l.x=t[r+1].px-t[r].px,l.y=t[r+1].py-t[r].py,p=Math.sqrt(l.x*l.x+l.y*l.y),l.x/=p,l.y/=p,l.x<u.x?(h.x=u.x-l.x,h.y=u.y-l.y):(h.x=l.x-u.x,h.y=l.y-u.y);var d=Math.sqrt(h.x*h.x+h.y*h.y);h.x/=d,h.y/=d,s.x=-h.x*c*o,s.y=-h.y*c*o;var y=f+a.x,g=_+a.y,v=t[r].px+s.x,m=t[r].py+s.y;n.curve(y,g,v,m,t[r].px,t[r].py),c=t[r+1].px-t[r].px,a.x=h.x*c*o,a.y=h.y*c*o,f=t[r].px,_=t[r].py}n.curve(f+a.x,_+a.y,t[r].px,t[r].py,t[r].px,t[r].py)}else n.line(t[r+1].px,t[r+1].py)},e.prototype.$_renderTrendline=function(t){var e=this.model,i=e.trendline,n=e._xAxisObj,r=e._yAxisObj,o=r._vlen,s=n._vlen,a=i._points.map((function(e){var i,a;return t?(a=s-n.getPos(s,e.x),i=r.getPos(o,e.y)):(i=n.getPos(s,e.x),a=o-r.getPos(o,e.y)),{x:i,y:a}}));if(this._trendLineView.setVis(a.length>1)){var u=new zC;u.move(a[0].x,a[0].y),i.isCurved()?this._drawSpline(a.map((function(t){return{px:t.x,py:t.y}})),0,-1,u):u.lines.apply(u,zx([],$x(a),!1)),this._trendLineView.setPath(u.end(!1))}},e.prototype._layoutLabel=function(t,e,i){var n=t.inverted,r=t.x,o=t.y,s=t.hPoint,a=t.labelView,u=t.labelOff;if(a.setVis(r>=0&&r<=e&&o>=0&&o<=i)){var l=t.reversed?s<=0:s<0,h=a.getBBox(),p=!0;switch(n?o-=h.height/2:r-=h.width/2,t.labelPos){case"inside":n?r-=(s+h.width)/2+(t.reversed?u:-u):o+=(s-h.height)/2+(t.reversed?u:-u);break;case"head":n?l?r+=h.width-u:r-=h.width+u:l?o-=h.height+u:o+=u;break;case"foot":n?r-=l?s+h.width+u:s-u:o+=l?s+u:s-h.height-u;break;default:n?l?r-=h.width+u:r+=u:l?o+=u:o-=h.height+u,p=!1}a.setContrast(p&&t.pointView.dom),a.layout(a.textAlign()).trans(r,o)}},e.prototype._clipRange=function(t,e,i,n,r,o){if(o){var s=t;t=e,e=s}var a="x"===i,u=a?this.model._xAxisObj:this.model._yAxisObj,l=u.options.reversed,h=u.getPos(a?t:e,sS(u.axisMin(),n.fromValue)),p=u.getPos(a?t:e,oS(u.axisMax(),n.toValue));o?a?l?r.setBounds(p,-e,aS(p-h),e):r.setBounds(h,-e,aS(p-h),e):r.setBounds(0,-sS(h,p),t,aS(p-h)):a?l?r.setBounds(p,0,aS(p-h),e):r.setBounds(h,0,aS(p-h),e):r.setBounds(0,e-sS(h,p),t,aS(p-h))},e.prototype._setFill=function(t,e){Wx(e)&&e[$S]?t.internalSetStyle($S,e[$S]):Ux(e)&&t.dom.classList.add(e)},e.prototype._savePrevs=function(){},e.POINT_CLASS="rct-point",e.DATA_HOVER="hover",e.DATA_UNHOVER="unhover",e.LEGEND_MARKER="rct-legend-item-marker",e}(XE),DL=function(t){function e(e){return t.call(this,e,RL.POINT_CLASS)||this}return Fx(e,t),e.prototype.savePrevs=function(){},e}(OP),BL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelViews=[],e}return Fx(e,t),e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}(DL),FL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.layout=function(t,e,i,n){this.x=t,this.setPath(mk.bar(t-this.wPoint/2,e,this.wPoint,-this.hPoint,i,n))},e}(BL),IL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.savePrevs=function(){this.wSave=this.width,this.xSave=this.x},e}(HE),jL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._labelInfo={},e}return Fx(e,t),e.prototype._prepareSeries=function(t,e){this._preparePoints(t,e,this._visPoints)},e.prototype._renderSeries=function(t,e){this._pointContainer.invert(this._inverted,e),this._layoutPoints(t,e)},e.prototype._runShowEffect=function(t){t&&wL.grow(this)},e.prototype._doViewRateChanged=function(t){this._layoutPoints(this.width,this.height)},e.prototype._savePrevs=function(){this._getPointPool().forEach((function(t){return t.savePrevs()}))},e.prototype.getPointsAt=function(t,e){return[]},e}(RL),$L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doPrevRateChanged=function(t){0==t&&this._layoutPoints(this.width,this.height),this.invalidate()},e.prototype._layoutPoints=function(t,e){var i=this,n=this.model,r=this._inverted,o=this._getGrowRate(),s=this._prevRate,a=n.pointLabel,u=this._labelViews(),l=n._xAxisObj,h=n._yAxisObj,p=h.options.reversed,c=2*l.unitPad(),f=h.prev(r?t:e),_=l.prev(r?e:t),d=r?0:e,y=h.axisMin(),g=h.getPos(f,y),v=n.getBaseValue(h)||0,m=uS(h.getPos(f,sS(y,v)),g),b=!isNaN(v),w=function(t){return h.getPos(f,t)},x=function(t){return l.getPos(_,t)},S=u&&Jx(this._labelInfo,{inverted:r,reversed:p,labelPos:n.getLabelPosition(a.options.position),labelOff:n.getLabelOff(a.getOffset())});this._getPointPool().forEach((function(a,h){var p=a.point;if(a.setVis(!p.isNull)){var f=l.getUnitLen(_,p.xValue)*(1-c),y=n.getPointWidth(f),g=w(p.yGroup),P=m;if(p.yGroup!=p.yValue){var V=v>p.yGroup,k=p.yGroup<0,A=p.yValue<0,C=V&&k&&!A||V&&!k&&!A||!V&&k&&A||!V&&!k&&A,E=p.yGroup-p.yValue*(C?-1:1);P=w(E)}var L=(g-P)*o,N=x(p.xValue)-f/2;if(isNaN(N)){var M=l.getUnitLen(_,p.xValue)*(1-c);N=x(p.xValue)-M/2}var T=d-g;isNaN(s+a.wSave)||(y=a.wSave+(y-a.wSave)*s),N+=n.getPointPos(f)+y/2,isNaN(s+a.xSave)||(N=a.xSave+(N-a.xSave)*s),p.xPos=N,p.yPos=T,i._layoutPoint(a,h,N,d-m*(1-o)-P*o,y,L),r&&(T=_-x(p.xValue)+f/2,N=d,p.yPos=T-=n.getPointPos(f)+y/2,p.xPos=N+=b?w(p.yGroup)*o:w(p.yGroup*o)),S&&(S.labelView=u.get(p,0))&&(S.pointView=a,S.x=N,S.y=T,S.wPoint=y,S.hPoint=L,i._layoutLabel(S,t,e))}}))},e}(jL),zL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doPrevRateChanged=function(t){0==t&&this._layoutPoints(this.width,this.height),this.invalidate()},e.prototype._layoutPoints=function(t,e){var i=this,n=this.model,r=n.chart.isInverted(),o=this._getGrowRate(),s=this._prevRate,a=n.pointLabel,u=this._labelViews(),l=n._xAxisObj,h=n._yAxisObj,p=2*l.unitPad(),c=r?t:e,f=r?e:t,_=r?0:e,d=u&&Jx(this._labelInfo,{inverted:r,labelPos:n.getLabelPosition(a.options.position),labelOff:n.getLabelOff(a.getOffset())});this._getPointPool().forEach((function(a,y){var g=a.point;if(a.setVis(!g.isNull)){var v=l.getUnitLen(f,g.xValue)*(1-p),m=n.getPointWidth(v),b=(h.getPos(c,g.yValue)-h.getPos(c,i._getLowValue(g)))*o,w=l.getPos(f,g.xValue)-v/2,x=_-h.getPos(c,g.yGroup)*o;isNaN(s+a.wSave)||(m=a.wSave+(m-a.wSave)*s),w+=n.getPointPos(v)+m/2,isNaN(s+a.xSave)||(w=a.xSave+(w-a.xSave)*s),g.xPos=w,g.yPos=x,i._layoutPoint(a,y,w,x,m,b),r&&(x=f-l.getPos(f,g.xValue)+v/2,w=_,g.yPos=x-=n.getPointPos(v)+m/2,g.xPos=w+=h.getPos(c,g.yGroup)*o),u&&(d.pointView=a,d.hPoint=b,d.x=w,d.y=x,(d.labelView=u.get(g,0))&&(d.hPoint=b,i._layoutLabel(d,t,e)),(d.labelView=u.get(g,1))&&(r?d.x-=b:d.y+=b,d.hPoint=-b,i._layoutLabel(d,t,e)))}}))},e}(jL),HL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.beginHover=function(t,e){},e.prototype.setHoverRate=function(t,e,i){},e.prototype.endHover=function(t,e){},e.prototype.distance=function(t,e,i){return this.point.isNull?Number.MAX_VALUE:Math.sqrt(Math.pow(this.point.xPos-e,2)+Math.pow(this.point.yPos-i,2))-t},e}(DL),GL=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._markers=n._createMarkers(n._pointContainer),n}var i;return Fx(e,t),e._createDrawers=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i={};return t.forEach((function(t){i[t]=function(e){return mk[t](0-e,0-e,2*e,2*e)}})),i},e.prototype.getHintDistance=function(){return this.model.options.hintDistance},e.prototype._getPointPool=function(){return this._markers},e.prototype.clipInvertable=function(){return!1},e.prototype.getPointsAt=function(t,e){return[]},e.prototype._getDrawer=function(t){return e._drawers[t]||e._drawers.circle},e.prototype._layoutLabelView=function(t,e,i,n,r,o){var s=t.getBBox();"auto"===e&&(e=this._getAutoPos(s.width>=2*n*.9)),t.setVis(null!=e)&&(r-=s.width/2,"inside"===e?t.trans(r,o-s.height/2):e&&t.trans(r,o-n-s.height-i))},i=e,e._drawers=Object.assign({circle:function(t){return mk.circle(0,0,t)}},i._createDrawers("square","diamond","triangle","itriangle","star","rectangle")),e}(RL),WL=function(t){function e(e){var i=t.call(this)||this;return i.series=e,i.duration=300,i}return Fx(e,t),e.prototype._doUpdate=function(t){return!!this.series&&(this.series._zombieRate=this.series._zombie.visible?t:1-t,this.series._resizeZombie(),!0)},e.prototype._doStop=function(){this.series&&(this.series._zombie=null,this.series._zombieAni=null,this.series.invalidate(),this.series=null)},e}(dk),YL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.togglePointVisible=function(t){var e;this._willZombie=t,t.visible||null===(e=this._labelContainer.get(t,0))||void 0===e||e.hide(200)},e.prototype.isPointVisible=function(e){return e===this._zombie||t.prototype.isPointVisible.call(this,e)},e.prototype._collectVisPoints=function(e){var i=t.prototype._collectVisPoints.call(this,e);return this._willZombie&&!this._willZombie.visible&&(i.push(this._willZombie),i=i.sort((function(t,e){return t.index-e.index}))),i},e.prototype._prepareSeries=function(t,e){var i;this._zombie&&(this._zombie=null,null===(i=this._zombieAni)||void 0===i||i.stop(),this._zombieAni=null),this._willZombie&&(this._zombie=this._willZombie,this._willZombie=null,this._zombieAni=new WL(this),this._zombieAni.start()),this.setData("pointcolors","f")},e.prototype._createPointLegendMarker=function(t,e,i){return bk.create(t,"rct-legend-item-marker",0,0,i,i,i/2)},e.prototype._preparePoint=function(t,e,i,n){i._legendMarker||i.setLegendMarker(this._createPointLegendMarker(t,i,pk.MARKER_SIZE)),this._setPointStyle(n,e,i),i._calcedColor=getComputedStyle(n.dom).fill},e}(RL),XL=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._imageView=new UE(i,!1)),n._imageView.onloadProxy=function(){var t=n._imageView.getBBox();n._deflatePaddings(t),n._imageView.resize(t.width,t.height)},n}return Fx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.getSize(i,n);return this._deflatePaddings(o),this._imageView.url=this.model.options.imageUrl,this._imageView.resize(o.width,o.height),jE(this._imageView.getBBox())},e.prototype._doLayout=function(e){this._imageView.trans(e.x+this._paddings.left,e.y+this._paddings.top),t.prototype._doLayout.call(this,e)},e.prototype._setRotation=function(t,e,i){this._imageView.setRotation(t,e,i)},e.CLASS_NAME="rct-image-annotation",e}(hL),UL=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._shapeView=new OP(i)),n}return Fx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.getSize(i,n);return this._deflatePaddings(o),mk.setShape(this._shapeView,e.getShape(),o.width/2,o.height/2),o},e.prototype._doLayout=function(e){this._shapeView.trans(this._paddings.left+e.x,this._paddings.top+e.y),t.prototype._doLayout.call(this,e)},e.prototype._setRotation=function(t,e,i){this._shapeView.setRotation(t,e,i)},e.CLASS_NAME="rct-shape-annotation",e}(hL),qL=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._textView=new $P(i)),n._textView.anchor=RP.START,n._richText=new QP,n}return Fx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.options,s=e.getSize(i,n),a=this._textView;o.writingMode&&this._textView.setStyle("writingMode",o.writingMode),o.textOrientation&&this._textView.setStyle("textOrientation",o.textOrientation),this._deflatePaddings(s),this._richText.setFormat(o.text),this._richText.build(a,i,n,null,e._domain);var u=jE(this._textView.getBBox());return{width:uS(s.width,u.width),height:uS(s.height,u.height)}},e.prototype._doLayout=function(e){this._richText.layout(this._textView,this.textAlign(),this.width,this.height,this._paddings),this._textView.trans(e.x+this._textView.tx,e.y+this._textView.ty),t.prototype._doLayout.call(this,e)},e.prototype._setRotation=function(t,e,i){this._textView.setRotation(t,e,i)},e.CLASS_NAME="rct-text-annotation",e}(hL),ZL=function(t){function e(e){var i=t.call(this,e,"rct-linear-gauge-band")||this;return i._thick=0,i._gap=0,i._labelGap=3,i._barViews=new BE(i,bk),i.add(i._labelContainer=new LP(e,"rct-linear-gauge-band-tick-labels")),i._labels=new BE(i._labelContainer,$P),i}return Fx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.gauge,s=this._vertical=o instanceof TA?o.isVertical():o.options.vertical,a=e.options.position,u=this._thick=e.getThickness(s?i:n)+("inside"===a?0:this._gap=uS(e.options.gap,0)),l=s?u:i,h=s?n:u,p=this._ranges=e.getRanges();if(this._labelContainer.setVis(e.tickLabel.visible&&p.length>0)){var c=[p[0].fromValue].concat(p.map((function(t){return t.toValue})));if(this._labelContainer.setStyleOrClass(e.tickLabel._style),this._labels.prepare(p.length+1),s){var f=0;this._labels.forEach((function(t,e){t.text=String(c[e]),f=sS(t.getBBox().width)})),l+=f+this._labelGap}else{var _=0;this._labels.forEach((function(t,e){t.text=String(c[e]),_=sS(t.getBBox().height)})),h+=_}}return{width:l,height:h}},e.prototype._doLayout=function(t){var e=this.model,i=e.gauge,n=i.scale,r=n._max-n._min;this._labelContainer.setVis(this.$_layoutBars(i,r,this._ranges)&&this._labelContainer.visible&&"inside"!==e.options.position)&&this.$_layoutLabels(i,r,this._ranges)},e.prototype.$_layoutBars=function(t,e,i){var n=this;if(this._barViews.prepare(i.length),!this._barViews.isEmpty&&e>0){var r=this._vertical,o="inside"===this.model.options.position,s="opposite"===this.model.options.position,a=this.width,u=this.height,l=r?u:a,h=this._thick,p=0;return this._barViews.prepare(i.length).forEach((function(t,c){var f=i[c],_=l*(f.toValue-f.fromValue)/e;if(r){var d=o||s?0:a-h;t.setBounds(d,u-p-_,h,_)}else{var y=s?u-h:0;t.setBounds(p,y,_,n._thick)}t.internalClearStyleAndClass(),t.setFill(f.color),f.style&&t.addStyleOrClass(f.style),p+=_})),!0}},e.prototype.$_layoutLabels=function(t,e,i){var n="opposite"===this.model.options.position;if(this._vertical){var r=this.height,o=n?RP.START:RP.END,s=n?this._thick+this._labelGap:this.width-this._thick-this._labelGap;(l=this._labels.get(0)).anchor=o,l.trans(s,r-l.getBBox().height/2);for(var a=1;a<=i.length;a++){var u=r-r*i[a-1].toValue/e;(l=this._labels.get(a)).anchor=o,l.trans(s,u-l.getBBox().height/2)}}else{var l;r=this.width,s=n?0:this._thick;(l=this._labels.get(0)).trans(0,s);for(a=1;a<=i.length;a++){var h=r*i[a-1].toValue/e;this._labels.get(a).trans(h,s)}}},e}(GE),KL=function(t){function e(e){return t.call(this,e,"rct-linear-gauge")||this}return Fx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._background=new bk(t,"rct-linear-gauge-background")),e.add(this._bandView=new ZL(t)),e.add(this._scaleView=new gL(t)),e.add(this._valueView=new bk(t,"rct-linear-gauge-value")),e.add(this._labelView=new $P(t))},e.prototype._backgroundView=function(){return this._background},e.prototype.labelView=function(){return this._labelView},e.prototype.scaleView=function(){return this._scaleView},e.prototype.background=function(){return this._background},e.prototype._prepareGauge=function(t,e){},e.prototype._renderScale=function(e){var i=this.model.band,n=this._bandView;if(t.prototype._renderScale.call(this,e),n.setVis(i.visible)){var r=+i.options.gap||0,o=n.measure(this.doc,i,e.width,e.height,1);n.resizeByMeasured().layout(),this._vertical?"inside"===i.options.position?n.trans(e.x,e.y):"opposite"===i.options.position?(n.trans(e.x+e.width-o.width,e.y),e.width-=o.width+r):(n.trans(e.x,e.y),e.width-=o.width+r,e.x+=o.width+r):"inside"===i.options.position?n.trans(e.x,e.y):"opposite"===i.options.position?(n.trans(e.x,e.y),e.height-=o.height+r,e.y+=o.height+r):(n.trans(e.x,e.y+e.height-o.height),e.height-=o.height+r)}},e.prototype._renderBand=function(t,e,i){var n=this._valueView,r=t.options.reversed,o=t.valueBar,s=t._group?t._group.scale:t.scale;if(n.setVis(!$E(e)&&o.visible&&!s.isEmpty()&&!isNaN(t.options.value)))if(n.setStyleOrClass(o._style),n.internalSetStyleOrClass(o.getStyle(t,i)),this._vertical){var a=e.height*s.getRate(i),u=r?e.y:e.y+e.height-a;n.setBounds(e.x,u,e.width,a)}else{var l=e.width*s.getRate(i),h=r?e.x+e.width-l:e.x;n.setBounds(h,e.y,l,e.height)}},e}(vL),JL=function(t){function e(e,i){return t.call(this,e,i)||this}return Fx(e,t),e.prototype._doInitContents=function(e,i){t.prototype._doInitContents.call(this,e,i),i.insertFirst(this._scaleView=new gL(e)),i.insertFirst(this._textView=new $P(e,"rct-linear-gauge-group-label"))},e.prototype._prepareGauge=function(e,i){this._textView.setVis(i.label.visible)&&this._textView.setStyleOrClass(i.label._style),this._scaleView.setVis(i.scale.visible)&&this._scaleView.setStyleOrClass(i.scale._style),t.prototype._prepareGauge.call(this,e,i)},e.prototype._doRenderGauges=function(t,e,i,n){var r=this.model,o=r.options,s=this._textView,a=IE(0,0,i,n);if(s.visible){s.text=r.label.options.text,r.label.buildSvg(s,null,NaN,NaN,r,null);var u=this._textView.getBBox().height+r.label.getGap(n);a.y+=u,a.height-=u,s.trans(this.width/2,0)}r._labelWidth=r._labelHeight=0,this._gaugeViews.forEach((function(t,e){var o=t._measureLabelSize(r.get(e),i,n);r._labelWidth=sS(r._labelWidth,o.width),r._labelHeight=sS(r._labelHeight,o.height)}));var l,h=(l=a)&&Jx({},l),p=r.itemLabel.options.gap;o.vertical?(h.height-=r._labelHeight+p,r.itemLabel.options.opposite||(h.y+=r._labelHeight+p)):(h.width-=r._labelWidth+p,r.itemLabel.options.opposite||(h.x+=r._labelWidth+p)),this._renderScale(r,a,h),o.vertical?this.$_layoutVert(this.doc,r,e,a):this.$_layoutHorz(this.doc,r,e,a)},e.prototype._renderScale=function(t,e,i){var n,r,o=this._scaleView,s=t.scale,a=t.options.vertical,u=a?e.height:e.width,l=[];if(this._gaugeViews.forEach((function(e,i){l.push(uS(e._runValue,t.get(i).options.value))})),s.buildGroupSteps(u,l),s._vertical=a,o.setVis(s.visible)){var h=o.measure(this.doc,s,i.width,i.height,1);if(a){var p=h.width;i.width-=p,e.width-=p,r=i.y,"opposite"===s.options.position?n=i.x+i.width:(n=i.x,i.x+=p,e.x+=p)}else{var c=h.height;i.height-=c,e.height-=c,n=i.x,"opposite"===s.options.position?(r=i.y,i.y+=c,e.y+=c):r=i.y+i.height}o.resizeByMeasured().layout().trans(n,r)}},e.prototype.$_layoutVert=function(t,e,i,n){var r=n.height,o=(n.width-e.options.itemGap*(i.count-1))/i.count,s=n.y,a=n.x;i.forEach((function(i,n){i.measure(t,e.get(n),o,r,0),i.resize(o,r),i.layout(),i.trans(a,s),a+=o+e.options.itemGap}))},e.prototype.$_layoutHorz=function(t,e,i,n){var r=e.options.itemGap,o=n.width,s=(n.height-r*(i.count-1))/i.count,a=n.x,u=n.y;i.forEach((function(i,n){i.measure(t,e.get(n),o,s,0),i.resize(o,s),i.layout(),i.trans(a,u),u+=s+r}))},e}(bL),QL=function(t){function e(e){return t.call(this,e,"rct-linear-gauge-group")||this}return Fx(e,t),e.prototype._doInitContents=function(e,i){t.prototype._doInitContents.call(this,e,i),i.insertChild(this._bandView=new ZL(e),this._scaleView)},e.prototype._createPool=function(t){return new BE(t,KL)},e.prototype._renderScale=function(e,i,n){t.prototype._renderScale.call(this,e,i,n);var r,o,s=this._bandView,a=e.band;if(s.setVis(a.visible)){var u=+a.options.gap||0,l=s.measure(this.doc,a,n.width,n.height,1);if(e.options.vertical){var h=l.width+u;n.width-=h,i.width-=h,o=n.y,"opposite"===a.options.position?r=n.x+n.width+u:(r=n.x,n.x+=h,i.x+=h)}else{var p=l.height+u;n.height-=p,i.height-=p,r=n.x,"opposite"===a.options.position?(o=n.y,n.y+=p,i.y+=p):o=n.y+n.height+u}s.resizeByMeasured().layout().trans(r,o)}},e}(JL),tN=function(t){function e(e){return t.call(this,e,"rct-bullet-gage")||this}return Fx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._background=new bk(t,"rct-bullet-gauge-background")),e.add(this._barContainer=new LP(t,void 0)),this._barViews=new BE(this._barContainer,bk),e.add(this._valueView=new bk(t,"rct-bullet-gauge-value")),e.add(this._targetView=new bk(t,"rct-bullet-gauge-target")),e.add(this._scaleView=new gL(t)),e.add(this._labelView=new $P(t))},e.prototype._backgroundView=function(){return this._background},e.prototype.labelView=function(){return this._labelView},e.prototype.scaleView=function(){return this._scaleView},e.prototype.background=function(){return this._background},e.prototype._prepareGauge=function(t,e){},e.prototype._renderBand=function(t,e,i){var n=t.options,r=t._group,o=t.options.reversed,s=this._vertical,a=r?r.scale:t.scale,u=this._valueView,l=this._targetView;if(this._barContainer.setVis(!$E(e)&&!a.isEmpty())){var h=t.getRanges(a._min,a._max,!1)||(null==r?void 0:r.getRanges(a._min,a._max,!1));h&&(this._barContainer.setRect(e),this._barViews.prepare(h.length),s?this._barViews.forEach((function(t,i){var n=h[i],r=e.height*a.getRate(n.toValue-n.fromValue),s=e.height*a.getRate(n.fromValue);t.setBounds(0,o?s:e.height-s-r,e.width,r),t.internalClearStyleAndClass(),t.setFill(n.color),n.style&&t.addStyleOrClass(n.style)})):this._barViews.forEach((function(t,i){var n=h[i],r=e.width*a.getRate(n.toValue-n.fromValue),s=e.width*a.getRate(n.fromValue);t.setBounds(o?e.width-r-s:s,0,r,e.height),t.internalClearStyleAndClass(),t.setFill(n.color),n.style&&t.addStyleOrClass(n.style)})))}if(u.setVis(!a.isEmpty()&&!isNaN(i)))if(u.setStyleOrClass(t.valueBar._style),i<n.targetValue&&t.valueBar.options.belowStyle&&u.internalSetStyleOrClass(t.valueBar.options.belowStyle),u.internalSetStyleOrClass(t.valueBar.getStyle(t,i)),s){var p=e.height*a.getRate(i),c=o?e.y:e.y+e.height-p;u.setBounds(e.x+e.width/3,c,e.width/3,p)}else{var f=e.width*a.getRate(i),_=o?e.x+e.width-f:e.x;u.setBounds(_,e.y+e.height/3,f,e.height/3)}if(l.setVis(!a.isEmpty()&&!isNaN(n.targetValue)))if(l.setStyleOrClass(t.targetBar._style),s&&e.width>10){c=e.height*a.getRate(n.targetValue);c=o?e.y+c:e.y+e.height-c,l.setBounds(e.x+5,c-1,e.width-10,3)}else if(!s&&e.height>10){_=e.width*a.getRate(n.targetValue);_=o?e.x+e.width-_:e.x+_,l.setBounds(_-1,e.y+5,3,e.height-10)}},e}(vL),eN=function(t){function e(e){return t.call(this,e,"rct-bullet-gauge-group")||this}return Fx(e,t),e.prototype._createPool=function(t){return new BE(t,tN)},e}(JL),iN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.setExtents=function(t,e){this._center=t,this._exts=e},e.prototype._createLine=function(t,e){return new sL(t,e)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._steps.length-(360===e.gauge.options.sweepAngle?1:0);return this._line.setVis(e.line.visible)&&this._line.internalSetStyleOrClass(e.line._style),this._tickContainer.setVis(e.tick.visible)&&(this._tickContainer.internalSetStyleOrClass(e.tick._style),this._ticks.prepare(o)),this._labelContainer.setVis(e.label.visible)&&(this._labelContainer.internalSetStyleOrClass(e.label._style),this._labels.prepare(o,(function(t){}))),{width:i,height:n}},e.prototype._doLayout=function(t){var e,i,n,r,o=this.model,s=o._steps,a=o.gauge,u=a.options,l="opposite"===o.options.position?-1:1,h=a._props,p=this._center.x,c=this._center.y,f=this._exts.scale,_=f+this.model.tick.options.length*l,d=h._sweepRad,y=h._startRad,g=u.maxValue-u.minValue,v=u.clockwise;if(this._line.visible&&this._line.setArc(p,c,f,y,v?d:-d,v),this._tickContainer.visible&&this._ticks.forEach((function(t,a,u){var l=o.getRate(s[a])*(v?d:-d)+y;e=p+eS(l)*f,i=c+iS(l)*f,n=p+eS(l)*_,r=c+iS(l)*_,t.setLine(e,i,n,r)})),this._labelContainer.visible){this._labels.get(0).setText(String(u.maxValue));var m=_+.2*this._labels.get(0).getBBox().height*l;this._labels.forEach((function(t,e,i){var a=o.getRate(s[e])*(v?d:-d)+y;t.setText(String(LS(u.minValue+o.getRate(s[e])*g)));var h=t.getBBox();n=p+eS(a)*(m+h.width/2*l)-h.width/2,r=c+iS(a)*(m+h.height/2*l)-h.height/2,t.trans(n,r)}))}},e}(yL),nN=function(t){function e(e){var i=t.call(this,e,"rct-circle-gauge-band")||this;return i._sectorViews=new BE(i,uL),i.add(i._labelContainer=new LP(e,"rct-circle-gauge-band-tick-labels")),i._labels=new BE(i._labelContainer,$P),i}return Fx(e,t),e.prototype.setExtends=function(t,e){this._center=t,this._exts=e},e.prototype._doLayout=function(t){var e=this.model,i=e.gauge,n=i.scale,r=i._props,o=this._center.x,s=this._center.y,a=this._exts.band,u=i.options.clockwise,l=1-this._exts.bandThick/a,h=e.getRanges(),p=r._sweepRad;i.options.maxValue,i.options.minValue;var c=r._startRad;this._sectorViews.prepare(h.length).forEach((function(t,e){var i=n.getRate(h[e].toValue-h[e].fromValue)*p;t.setSector({cx:o,cy:s,rx:a,ry:a,innerRadius:l,start:c,angle:i,clockwise:u}),t.internalClearStyleAndClass(),t.setFill(h[e].color),h[e].style&&t.addStyleOrClass(h[e].style),c+=u?i:-i}))},e}(GE),rN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.render=function(t,e){var i=t.getRadius(e);return i!==this._radius&&(this._radius=i,this.setPath((new zC).circle(0,0,i).end())),this.internalSetStyleOrClass(t._style),this},e}(OP),oN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.render=function(t,e){var i=t.getExtents(e);if(i.radius!==this._radius||i.length!==this._length||i.offset!==this._offset){var n=this._radius=i.radius,r=this._offset=i.offset;if(this._length=i.length,this._radius>0&&this._length>0){var o=new zC;o.move(-n,r).line(0,-this._length+r).line(n,r),this.setPath(o.end())}else this.setPath("")}return this.internalSetStyleOrClass(t._style),this},e}(OP),sN=function(t){function e(e){return t.call(this,e,"rct-circle-gauge")||this}return Fx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._rimView=new uL(t,"rct-circle-gauge-rim")),e.add(this._valueView=new uL(t,"rct-circle-gauge-value")),e.add(this._innerView=new uL(t,"rct-circle-gauge-inner")),e.add(this._textView=new $P(t,"rct-circle-gauge-label")),e.add(this._handContainer=new LP(t,void 0)),e.add(this._scaleView=new iN(t)),e.add(this._bandView=new nN(t))},e.prototype._backgroundView=function(){return this._rimView},e.prototype._prepareGauge=function(t,e){this._rimView.setVis(e.rim.visible),this._scaleView.setVis(e.scale.visible),this._bandView.setVis(e.band.visible),this._valueView.setVis(e.valueRim.visible),e.hand.visible?(this._handView||this._handContainer.add(this._handView=new oN(t,"rct-circle-gauge-hand")),this._handView.visible=!0):this._handView&&(this._handView.visible=!1),e.pin.visible?(this._pinView||this._handContainer.add(this._pinView=new rN(t,"rct-circle-gauge-pin")),this._pinView.visible=!0):this._pinView&&(this._pinView.visible=!1),this._textView.setVis(e.labelVisible())&&this._textView.setStyleOrClass(e.label._style)},e.prototype._renderGauge=function(t,e){var i=this.model,n=i.getCenter(t,e),r=i.getExtents(oS(t,e));this.$_renderBackground(i,n,r),this._renderValue()},e.prototype._renderValue=function(){var t=this.model,e=t.options,i=t.scale,n=t.getProps(),r=this._getValue(t),o=i.getRate(uS(r,0)),s=this._center,a=this._exts,u=t.valueRim.getThickness(a.radiusThick),l=this._textView;if(this._valueView.visible){var h=t.valueRim,p=h.options,c=h.getRange(e,r),f=a.value+(p.stroked?0:u/2),_=this._valueView;_.setStyleOrClass(h._style),c&&(_.setStyle(p.stroked?"stroke":"fill",c.color),c.style&&_.addStyleOrClass(c.style)),p.stroked&&(_.setFill("none"),_.setStyle("strokeWidth",TS(u))),_.setBoolData("stroked",p.stroked),_.setSectorEx({cx:s.x,cy:s.y,rx:f,ry:f,innerRadius:(f-u)/f,start:n._startRad,angle:n._sweepRad*o,clockwise:e.clockwise},p.stroked)}if(this._handView){var d=(n._handRad+n._sweepRad*o)*AS;this._handView.render(t.hand,a.radius).transp(s).rotate(t.options.clockwise?d:-d)}if(l.visible){var y=t.label;if(y.setText(t.getLabel(y,y.options.animatable?r:e.value)),l.text=y.options.text,y.buildSvg(l,null,NaN,NaN,t,y._domain),l.setBoolData("grouped",!!t._group),t._group)this.$_layoutGroupedLabel(t,l,a);else{var g=l.getBBox(),v=y.getOffset(this.width,this.height);l.trans(s.x+v.x,s.y-g.height/2+v.y)}}},e.prototype.$_renderBackground=function(t,e,i){var n=t.getProps(),r=n._startRad;this._center=e,this._exts=i,t.scale.buildSteps(i.scale*n._sweepRad,NaN),this._rimView.visible&&(this._rimView.internalSetStyleOrClass(t.rim._style),this._rimView.setSector({cx:e.x,cy:e.y,rx:i.radius,ry:i.radius,innerRadius:1-i.radiusThick/i.radius,start:r,angle:n._sweepRad,clockwise:t.options.clockwise})),this._scaleView.visible&&(this._scaleView.setStyleOrClass(t.scale._style),this._scaleView.measure(this.doc,t.scale,this.width,this.height,0),this._scaleView.setExtents(e,i),this._scaleView.layout()),this._bandView.visible&&(this._bandView.setStyleOrClass(t.band._style),this._bandView.measure(this.doc,t.band,this.width,this.height,0),this._bandView.setExtends(e,i),this._bandView.layout()),this._innerView.setStyleOrClass(t.options.innerStyle);var o=i.inner,s=getComputedStyle(this._innerView.dom),a=parseFloat(s.strokeWidth);a>1&&(o-=a/2),this._innerView.setSector({cx:e.x,cy:e.y,rx:o,ry:o,innerRadius:0,start:0,angle:2*Math.PI,clockwise:!0}),this._pinView&&this._pinView.render(t.pin,o).trans(e.x,e.y)},e.prototype.$_layoutGroupedLabel=function(t,e,i){var n=e.getBBox(),r=this._rimView.getBBox(),o=+t._group.options.labelGap||0;e.anchor=RP.END,e.trans(r.x+r.width/2-o,r.y+(i.radius-i.inner-n.height)/2)},e}(mL),aN=function(t){function e(e){return t.call(this,e,"rct-circle-gauge-group")||this}return Fx(e,t),e.prototype._createPool=function(t){return new BE(t,sN)},e.prototype._doRenderGauges=function(t,e,i,n){var r=this.doc,o=this.model,s=o.props.getCenter(i,n),a=o.props.getExtents(oS(i,n));o.setChildExtents(a),i=n=2*a.radius,e.forEach((function(t,e){t.measure(r,o.getVisible(e),i,n,0),t.resize(i,n),t.layout()})),t.trans(s.x-a.radius,s.y-a.radius)},e}(bL),uN=function(t){function e(e){var i=t.call(this)||this;return i.view=e,i}return Fx(e,t),e.prototype._doUpdate=function(t){return this.view._secRate=t,this.view.$_renderHands(this.view.model,this.view._exts),!0},e}(dk),lN=function(t){function e(e){var i=t.call(this,e,"rct-clock-gauge")||this;return i._rimThick=0,i._secRate=1,i}return Fx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._faceView=new oL(t,"rct-clock-gauge-face")),e.add(this._rimView=new uL(t,"rct-clock-gauge-rim")),e.add(this._labelView=new $P(t,"rct-clock-gauge-label")),this._labelView.layout=DP.MIDDLE,e.add(this._tickContainer=new LP(t,"rct-clock-gauge-ticks")),e.add(this._tickLabelContainer=new LP(t,"rct-clock-gauge-tick-labels")),e.add(this._hourView=new OP(t,"rct-clock-gauge-hour")),e.add(this._minuteView=new OP(t,"rct-clock-gauge-minute")),e.add(this._secondView=new OP(t,"rct-clock-gauge-second")),e.add(this._pinView=new oL(t,"rct-clock-gauge-pin")),this._tickViews=new BE(this._tickContainer,vC,"rct-clock-gauge-tick"),this._minorTickViews=new BE(this._tickContainer,vC,"rct-clock-gauge-minor-tick"),this._tickLabelViews=new BE(this._tickLabelContainer,$P,"rct-clock-gauge-tick-label")},e.prototype._prepareGauge=function(t,e){this._tickViews.prepare(e.tick.visible?12:0),this._minorTickViews.prepare(e.minorTick.visible?48:0);var i=Math.round(12/sS(1,Math.floor(e.tickLabel.options.step)||1));this._tickLabelViews.prepare(e.tickLabel.visible?i:0,(function(t){t.layout=DP.MIDDLE}))},e.prototype._renderGauge=function(t,e){var i=this,n=this.model,r=this._exts=n.getExtents(t,e);this._secRate=1,this.$_renderFace(n,r),this.$_renderHands(n,r),n.options.active&&!n.getTime()?this._runner||(this._runner=setInterval((function(){var t=i._prevSec;i.$_renderHands(i.model,i._exts),aS(t-i._prevSec)>=1&&i._secondView.visible&&n.chart.animatable()&&n.secondHand.options.animatable&&i.$_moveSecond(t)}),1e3)):this._runner&&(clearInterval(this._runner),this._runner=void 0)},e.prototype.$_renderFace=function(t,e){var i=this._labelView,n=e.cx,r=e.cy,o=e.rd,s=this._rimThick=this._rimView.visible?this.model.rim.getThickness(o):0;this._faceView.setCircle(n,r,o),this._rimView.visible&&(this._rimView.internalSetStyleOrClass(t.rim._style),this._rimView.setSector({cx:n,cy:r,rx:o,ry:o,innerRadius:1-s/o,start:0,angle:2*Math.PI,clockwise:!0}));var a=o-s,u=a-this.model.tick.length,l=VS,h=PS/12;if(this._tickViews.forEach((function(t,e){t.setLine(n+eS(l)*a,r+iS(l)*a,n+eS(l)*u,r+iS(l)*u),l+=h})),!this._minorTickViews.isEmpty){var p=0;u=a-this.model.minorTick.length,l=VS,h=PS/60,this._minorTickViews.forEach((function(t){p%5==0&&(l+=h,p++),t.setLine(n+eS(l)*a,r+iS(l)*a,n+eS(l)*u,r+iS(l)*u),l+=h,p++}))}if(!this._tickLabelViews.isEmpty){var c=12/this._tickLabelViews.count,f=PS/12*c;l=VS,this._tickLabelViews.get(0).text="12",u=a-(this.model.tick.length+this.model.tickLabel.options.offset||0),u-=.5*this._tickLabelViews.get(0).getBBox().height,this._tickLabelViews.forEach((function(t,e,i){t.text=String(0===e?12:e*c),t.trans(n+eS(l)*u,r+iS(l)*u),l+=f}))}this._pinView.setCircle(n,r,t.pin.raidus),i.setVis(t.label.visible)&&(i.internalSetStyleOrClass(t.label._style),t.label.buildSvg(i,null,NaN,NaN,null,null),"bottom"===t.label.options.position?i.trans(n,r+u/2):i.trans(n,r-u/2))},e.prototype.$_getNow=function(){var t=this.model.options.timezone,e=this.model.getTime()||new Date;if(!isNaN(t)){var i=e.getMinutes()+(e.getTimezoneOffset()+t);e.setMinutes(i)}return e},e.prototype.$_renderHands=function(t,e){var i,n,r,o,s=this.$_getNow(),a=s.getHours(),u=s.getMinutes(),l=s.getSeconds(),h=e.cx,p=e.cy,c=e.rd,f=new zC;i=t.hourHand,(n=this._hourView).setVis(i.visible)&&(o=PS*(a/12+u/60/12+l/60/60/12),r=i.getLength(c-this._rimThick),f.rect(-i.options.thickness/2,-r,i.options.thickness,r),n.internalSetStyleOrClass(i._style),n.setPath(f.close(!0)).trans(h,p).rotate(o*AS)),i=t.minuteHand,(n=this._minuteView).setVis(i.visible)&&(o=PS*(u/60+l/60/60),r=i.getLength(c-this._rimThick),f.rect(-i.options.thickness/2,-r,i.options.thickness,r),n.internalSetStyleOrClass(i._style),n.setPath(f.close(!0)).trans(h,p).rotate(o*AS)),i=t.secondHand,(n=this._secondView).setVis(i.visible)&&(o=this._secRate<1?PS*(this._aniSec+this._secRate)/60:PS*l/60,r=i.getLength(c-this._rimThick),f.rect(-i.options.thickness/2,-r,i.options.thickness,r),n.internalSetStyleOrClass(i._style),n.setPath(f.close(!0)).trans(h,p).rotate(o*AS),this._prevSec=l)},e.prototype.$_moveSecond=function(t){if(!isNaN(t)){this._aniSec=t;var e=new uN(this);e.duration=this.model.secondHand.options.duration||200,e.start()}},e}(cL),hN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.getTooltipPos=function(){return{x:this.point.xPos,y:this.point.yPos}},e.prototype.beginHover=function(t,e){this._saveRadius=this._radius},e.prototype.setHoverRate=function(t,e,i){var n=this.point,r=(+t.model.marker.options.hoverScale||1.8)-1,o=this._radius;e?isNaN(i)||(o=this._radius=this._saveRadius*(1+i*r)):o=this._radius=this._saveRadius*(1+r-(isNaN(i)?r:r*i)),mk.setShape(this,t.model.getShape(n),o,o),this.index>0?this.trans(n.px2-o,n.py2-o):this.trans(n.xPos-o,n.yPos-o)},e.prototype.endHover=function(t,e){this._radius=this._saveRadius},e.prototype.distance=function(t,e,i){var n=0===this.index?this.point.xPos:this.point.px2,r=0===this.index?this.point.yPos:this.point.py2;return this.point.isNull?Number.MAX_VALUE:Math.sqrt(Math.pow(n-e,2)+Math.pow(r-i,2))-t},e.prototype.distance2=function(t,e,i,n){var r=0===this.index?this.point.xPos:this.point.px2,o=0===this.index?this.point.yPos:this.point.py2;return this.point.isNull?Number.MAX_VALUE:n?Math.abs(o-i):Math.abs(r-e)},e}(HL),pN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(TL),cN=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._needBelow=!1,n._rangeClips=[],n.insertFirst(n._lineContainer=new pN(e,"rct-line-series-lines")),n._lineContainer.add(n._line=new OP(e,"rct-line-series-line")),n._markers=new BE(n._pointContainer,hN),n}return Fx(e,t),e.prototype.getClipContainer=function(){return this._lineContainer},e.prototype._getPointPool=function(){return this._markers},e.prototype.needDecoreateLegend=function(){return!0},e.prototype.decoreateLegend=function(t){var e=getComputedStyle(this._line.dom),i=t._marker;i._line.setStyle("strokeWidth",e.strokeWidth),i._shape?(i._marker.internalSetStyles(this.model.marker._style),i._line.setStyle("strokeDasharray","")):i._line.setStyle("strokeDasharray",e.strokeDasharray)},e.prototype._prepareSeries=function(t,e){e instanceof kC&&this._prepareBelow(e),!this._simpleMode&&this.$_prepareMarkers(e,this._visPoints)},e.prototype._prepareViewRanges=function(e){t.prototype._prepareViewRanges.call(this,e),this._prepareRanges(e,e._runRanges)},e.prototype._renderSeries=function(t,e){this._lineContainer.invert(this._inverted,e),this._layoutMarkers(this._visPoints,t,e),this.model.prepareLines(this._visPoints)},e.prototype._doAfterLayout=function(){this._layoutLines()},e.prototype._runShowEffect=function(t){this._polar?t&&wL.grow(this):t&&wL.reveal(this,{from:function(t){var e=t.model._xAxisObj.reversed;return t._inverted?e?"top":"bottom":e?"right":"left"}(this)})},e.prototype._doViewRateChanged=function(t){this._layoutMarkers(this._visPoints,this.width,this.height),this._layoutLines()},e.prototype.getPointsAt=function(t,e){return[]},e.prototype.getNearest=function(t,e){var i=this.model.marker.options.radius,n=this._markers._internalItems().reduce((function(n,r){return n.distance(i,t,e)<r.distance(i,t,e)?n:r}));return{pv:n,dist:n.distance(i,t,e)}},e.prototype.getNearest2=function(t,e,i){var n=this.model.marker.options.radius,r=this._markers._internalItems().reduce((function(r,o){return r.distance2(n,t,e,i)<o.distance2(n,t,e,i)?r:o}));return{pv:r,dist:r.distance2(n,t,e,i)}},e.prototype.getHintDistance=function(){return this.model.marker.options.hintDistance},e.prototype.canHover=function(t,e,i){return t<=this.model.marker.options.radius+i},e.prototype._markersPerPoint=function(){return 1},e.prototype._prepareBelow=function(t){var e,i,n=this.control,r=this._lowLine;if(this._needBelow=t.options.belowStyle&&t._minY<t.getBaseValue(t._yAxisObj),this._needBelow)return r||(this._lineContainer.insertChild(r=this._lowLine=new OP(this.doc,"rct-line-series-line rct-line-series-line-below"),this._line),this._upperClip=n.clipBounds(),this._lowerClip=n.clipBounds(),this._upperClip.setAttr(EP.ASSET_KEY,"1"),this._lowerClip.setAttr(EP.ASSET_KEY,"1")),this._line.setClip(this._upperClip),r.setClip(this._lowerClip),!0;null==r||r.setClip(),this._line.setClip(),null===(e=this._upperClip)||void 0===e||e.remove(),null===(i=this._lowerClip)||void 0===i||i.remove()},e.prototype._prepareRanges=function(t,e){var i=this._rangeClips,n=this._rangeLines;if(e){for(n||(n=this._rangeLines=new BE(this._lineContainer,OP)),n.prepare(e.length);i.length<e.length;){var r=new TP(this.doc);r.setAttr(EP.ASSET_KEY,"1"),this.control.clipContainer().append(r.dom),i.push(r)}for(;i.length>e.length;)i.pop().remove()}else n&&(n.freeAll(),i.forEach((function(t){return t.remove()})),i.length=0)},e.prototype.$_resetClips=function(t,e,i,n){var r,o=this.model._yAxisObj.options.reversed;(r=this._upperClip)&&(n?o?r.setBounds(0,-i,e,t):r.setBounds(0,-t,e,t-i):o?r.setBounds(0,0+i,t,e-i):r.setBounds(0,0,t,i)),(r=this._lowerClip)&&(this._inverted?o?r.setBounds(0,-t,e,t):r.setBounds(0,-i,e,t-i):o?r.setBounds(0,0,t,i):r.setBounds(0,0+i,t,e-i))},e.prototype.$_prepareMarkers=function(t,e){var i=this,n=t instanceof kC&&this._needBelow,r=n?t.getBaseValue(t._yAxisObj):NaN,o=[t.marker._style,null];if(this._pointContainer.setVis(!t._simpleMode)){var s=this._markersPerPoint(),a=n&&t.options.belowStyle,u=e.length;this._markers.prepare(u*s,(function(s,l){var h=e[l%u];h.isNull||(s.point=h,o[1]=n&&h.yValue<r?a:null,i._setPointStyle(s,t,h,o)),s.point=h,s.index=l<u?0:1}))}else this._markers.prepare(0)},e.prototype._layoutMarker=function(t,e,i,n){var r=this.model,o=t.point,s=t._radius=r.getRadius(o);e&&t.internalSetStyleOrClass(e),mk.setShape(t,r.getShape(o),s,s),t.setPos(i,n),t.trans(i-=s,n-=s)},e.prototype._layoutMarkers=function(t,e,i){var n=this,r=this.model,o=r.marker,s=o._style,a=this._inverted,u=r.needClip(!1),l=this._getGrowRate(),h=o.visible,p=o.options.firstVisible,c=o.options.lastVisible,f=r.pointLabel,_=f.options.position,d=f.options.align,y=f.getAlignOffset(),g=f.options.textAlign,v=f.getOffset(),m=this._labelViews(),b=r._xAxisObj,w=r._yAxisObj,x=this._polar=r.chart._body.getPolar(b),S=!!x,P=w.prev(a?e:i),V=b.prev(x?x.rd*PS:a?i:e),k=a?0:i,A=t.length;t.forEach((function(t,r){var o,f;if(x){var C=x.start+b.getPos(V,t.xValue),E=w.getPos(x.rd,t.yGroup)*l;o=t.px=x.cx+E*eS(C),f=t.py=x.cy+E*iS(C)}else o=t.px=b.getPos(V,t.xValue),f=t.py=k-w.getPos(P,t.yGroup),a&&(o=w.getPos(P,t.yGroup),f=i-b.getPos(V,t.xValue));t.xPos=o,t.yPos=f;var L=n._markers.get(r),N=m&&m.get(t,0);if(L&&L.setVis(!t.isNull&&(S||!u||o>=0&&o<=e&&f>=0&&f<=i))){n._layoutMarker(L,s,o,f);var M=0==r&&null!=p?p:r==A-1&&null!=c?c:h;if(L.setStyle("opacity",M?"1":"0"),N){var T=N.getBBox(),O=L._radius;switch(N.visible=!0,N.setContrast(null),_){case"inside":f-=T.height/2+v;break;case"foot":f+=v+(h?O:0);break;default:f-=T.height+v+(h?O:0)}switch(d){case"left":o-=T.width+(h?O:0)+y;break;case"right":o+=(h?O:0)+y;break;default:o-=T.width/2+y}N.layout(g).trans(o,f)}}else N&&N.setVis(!1)}))},e.prototype._layoutLines=function(){var t=this,e=this.model;if(this._lineContainer.setVis(e._lines.length>0)){var i=this.width,n=this.height,r=this._inverted,o=e instanceof kC&&this._needBelow,s=this._buildLines2(e._lines,this._polar);if(e._runRanges)this._rangeLines.forEach((function(o,a){var u=e._runRanges[a];o.setPath(s),o.internalClearStyleAndClass(),o.internalSetStyle("stroke",u.color),o.internalSetStyleOrClass(u.style),SP.setImportantStyle(o.dom.style,$S,"none"),o.setClip(t._rangeClips[a]),t._clipRange(i,n,e._runRangeValue,u,t._rangeClips[a],r)}));else{var a=this._line;a.setPath(s),a.internalClearStyleAndClass(),a.internalSetStyle("stroke",e._runColor),a.internalSetStyleOrClass(e._style),SP.setImportantStyle(a.dom.style,$S,"none")}if(o){var u=this._lowLine,l=e._yAxisObj,h=e.getBaseValue(l);r?this.$_resetClips(i,n,l.getPos(i,h),!0):this.$_resetClips(i,n,n-l.getPos(n,h),!1),u.setPath(s),u.internalClearStyleAndClass(),u.internalSetStyle("stroke",e._runColor),u.internalSetStyleOrClass(e._style),u.internalSetStyleOrClass(e.options.belowStyle),SP.setImportantStyle(u.dom.style,$S,"none")}}},e.prototype._buildLine2=function(t,e,i,n){var r=this.model;"spline"===e?this._drawCurve2(t,i,n):r instanceof kC&&"step"===e?this._drawStep2(t,i,n,i?r.backDir():r.options.stepDir):this._drawLine2(t,i,n)},e.prototype._buildLines2=function(t,e){var i=this.model,n=i.getLineType(),r=new zC;return"spline"===n?this._drawCurves(t,r):i instanceof kC&&"step"===n?this._drawSteps(t,r,i.options.stepDir):this._drawLines(t,r),r.end(e)},e.prototype._drawLine2=function(t,e,i){if(t.length>1){i.moveOrLine(e,t[0].px,t[0].py);for(var n=1;n<t.length;n++)this.model instanceof kC&&this.model.options.connectNullPoints&&t[n].isNull||i.line(t[n].px,t[n].py)}},e.prototype._drawLines=function(t,e){var i=this;t.forEach((function(t){return i._drawLine2(t,!1,e)}))},e.prototype._drawStep2=function(t,e,i,n){if(t.length>1){i.moveOrLine(e,t[0].px,t[0].py);for(var r=1;r<t.length;r++)switch(n){case"backward":i.line(t[r-1].px,t[r].py),i.line(t[r].px,t[r].py);break;case"center":i.line((t[r].px+t[r-1].px)/2,t[r-1].py),i.line((t[r].px+t[r-1].px)/2,t[r].py),r+1===t.length&&i.line(t[r].px,t[r].py);break;default:i.line(t[r].px,t[r-1].py),i.line(t[r].px,t[r].py)}}},e.prototype._drawSteps=function(t,e,i){var n=this;t.forEach((function(t){return n._drawStep2(t,!1,e,i)}))},e.prototype._drawCurve2=function(t,e,i){t.length>1&&(i.moveOrLine(e,t[0].px,t[0].py),this._drawSpline(t,0,t.length-1,i))},e.prototype._drawCurves=function(t,e){var i=this;t.forEach((function(t){return i._drawCurve2(t,!1,e)}))},e.prototype._drawCurve=function(t,e,i){var n,r=t.length;if(t&&t.length>1){var o=e;for(n=e;n<r;)if(t[n].isNull){n-1>o&&this._drawSpline(t,o,n-1,i);do{n++}while(n<r&&t[n].isNull);o=n,n<r&&(i.move(t[n].px,t[n].py),n++)}else n++;n-1>o&&this._drawSpline(t,o,n-1,i)}},e.prototype._buildAreas=function(t,e,i){var n=new zC;i=i||e;for(var r=0;r<t.length;r+=2){var o=t[r],s=t[r+1];this._buildLine2(o,e,!1,n),this._buildLine2(s,i,!0,n)}return n.end(!0)},e.prototype.setHoverStyle=function(e){t.prototype.setHoverStyle.call(this,e),e.internalImportantStylesOrClass(this.model.marker.options.hoverStyle)},e}(RL),fN=function(t){function e(i){var n=t.call(this,i,e.CLASS)||this;return n._flagView=new qE(i,"rct-line-series-flag"),n._pointContainer.add(n._flagView),n}return Fx(e,t),e.prototype._legendColorProp=function(){return"stroke"},e.prototype._doLayout=function(){t.prototype._doLayout.call(this);var e,i=this.model,n=i.flag,r=this._flagView;if(r.setVis(n.visible&&!!(e=n.label()))){r.setText(e),r.setModel(this.doc,n,null,null),r.layout("left");var o=n.options.offset,s=r.getBBox(),a=void 0,u=void 0;a=this._markers.last.x,u=this._markers.last.y,this._inverted?(i._xAxisObj.options.reversed?u+=o:u-=o+s.height,a-=s.width/2):(i._xAxisObj.options.reversed?a-=o+s.width:a+=o,u-=s.height/2),r.trans(a,u)}},e.CLASS="rct-line-series",e}(cN),_N=function(t){function e(e){var i=t.call(this,e,"rct-arearange-series")||this;return i.insertFirst(i._areaContainer=new pN(e,"rct-arearange-series-areas")),i._areaContainer.add(i._area=new OP(e,"rct-arearange-series-area")),i._lineContainer.add(i._lowerLine=new OP(e,"rct-areanrange-series-line")),SP.setImportantStyle(i._lowerLine.dom.style,"fill","none"),i}return Fx(e,t),e.prototype._markersPerPoint=function(){return 2},e.prototype.getSiblings=function(t){return[t,this._markers.find((function(e){return e!==t&&e.point===t.point}))]},e.prototype.getSibling=function(t){return t&&this._markers.find((function(e){return e!==t&&e.point===t.point}))},e.prototype.decoreateLegend=function(e){t.prototype.decoreateLegend.call(this,e);var i=getComputedStyle(this._area.dom);e._marker._area.setStroke("none"),e._marker._area.setFill(i.fill),e._marker._area.setStyle("fillOpacity",i.fillOpacity)},e.prototype._renderSeries=function(e,i){this._areaContainer.invert(this.model.chart.isInverted(),i),t.prototype._renderSeries.call(this,e,i)},e.prototype._layoutMarkers=function(e,i,n){t.prototype._layoutMarkers.call(this,e,i,n);var r=this.model,o=r.marker,s=o._style,a=o.visible,u=this._inverted;r._xAxisObj;for(var l=r._yAxisObj,h=u?i:n,p=u?0:n,c=0,f=e.length;c<f;c++){(d=e[c]).yLow=p-l.getPos(h,d.lowValue)}var _=this._markers;for(c=0,f=e.length;c<f;c++){var d=e[c],y=_.get(f+c),g=void 0,v=void 0;u?(g=d.px2=l.getPos(h,d.lowValue),v=d.py2=_.get(c).ty+r.getRadius(d)):(g=d.px2=d.xPos,v=d.py2=d.yLow),y&&y.setVis(!d.isNull&&g>=0&&g<=i&&v>=0&&v<=n)&&(this._layoutMarker(y,s,g,v),y.setStyle("opacity",a||0==c&&!0===o.options.firstVisible||c===f-1&&!0===o.options.lastVisible?"1":"0"))}},e.prototype._layoutLines=function(){t.prototype._layoutLines.call(this);var e=this._area,i=this.model;if(this._areaContainer.setVis(i._lines.length>0)){var n=this._buildAreas(i._lines,i.getLineType());e.setPath(n),e.unsetData("polar"),e.setBoolData("simple",this._simpleMode),e.internalClearStyleAndClass(),i._runColor&&e.setFill(i._runColor),this._setFill(e,i._style),i.options.areaStyle&&e.internalSetStyleOrClass(i.options.areaStyle)}},e}(cN),dN=function(t){function e(e,i){var n=t.call(this,e,i||"rct-area-series")||this;return n._rangeAreaClips=[],n.insertFirst(n._areaContainer=new pN(e,"rct-area-series-areas")),n._areaContainer.insertFirst(n._area=new OP(e,"rct-area-series-area")),n}return Fx(e,t),e.prototype.decoreateLegend=function(e){t.prototype.decoreateLegend.call(this,e);var i=getComputedStyle(this._area.dom);e._marker._area.setStroke("none"),e._marker._area.setFill(i.fill),e._marker._area.setStyle("fillOpacity",i.fillOpacity)},e.prototype.getClipContainer2=function(){return this._areaContainer},e.prototype._prepareBelow=function(e){var i=this._lowArea;if(t.prototype._prepareBelow.call(this,e))return i||this._areaContainer.add(i=this._lowArea=new OP(this.doc,"rct-area-series-area")),this._area.setClip(this._upperClip),i.setClip(this._lowerClip),!0;null==i||i.setClip(),this._area.setClip()},e.prototype._prepareRanges=function(e,i){t.prototype._prepareRanges.call(this,e,i);var n=this._rangeAreas,r=this._rangeAreaClips;if(i){for(n||(n=this._rangeAreas=new BE(this._areaContainer,OP,"rct-area-series-area")),n.prepare(i.length);r.length<i.length;){var o=new TP(this.doc);o.setAttr(EP.ASSET_KEY,"1"),this.control.clipContainer().append(o.dom),r.push(o)}for(;r.length>i.length;)r.pop().remove()}else n&&(n.freeAll(),r.forEach((function(t){return t.remove()})),r.length=0)},e.prototype._renderSeries=function(e,i){t.prototype._renderSeries.call(this,e,i),this.model.prepareAreas(),this._areaContainer.invert(this._inverted,i)},e.prototype._layoutMarkers=function(e,i,n){t.prototype._layoutMarkers.call(this,e,i,n);for(var r=this._inverted,o=this.model._yAxisObj,s=r?i:n,a=r?0:n,u=0,l=e.length;u<l;u++){var h=e[u];h.yLow=a-o.getPos(s,h.yGroup-h.yValue)}},e.prototype._doAfterLayout=function(){var e;null===(e=this.model._group)||void 0===e||e.prepareLines(this.model),t.prototype._doAfterLayout.call(this),this._polar?this._layoutPolar(this._area,this._visPoints):this.$_layoutArea(this._area)},e.prototype.$_layoutArea=function(t){var e=this,i=this.model,n=i.options;if(this._areaContainer.setVis(i._areas.length>0)){var r=this.width,o=this.height,s=i.chart.isInverted(),a=this._needBelow?this._lowArea:void 0,u=this._buildAreas(i._areas,i.getLineType());i._runRanges?this._rangeAreas.forEach((function(t,n){var a=i._runRanges[n];t.setBoolData("simple",e._simpleMode),t.setPath(u),t.internalClearStyleAndClass(),t.setFill(a.color),e._setFill(t,a.style),a.areaStyle&&t.internalSetStyleOrClass(a.areaStyle),t.setClip(e._rangeAreaClips[n]),e._clipRange(r,o,i._runRangeValue,a,e._rangeAreaClips[n],s)})):(t.setPath(u),t.unsetData("polar"),t.setBoolData("simple",this._simpleMode),t.internalClearStyleAndClass(),i._runColor&&t.internalSetStyle($S,i._runColor),this._setFill(t,n.style),i.options.areaStyle&&t.internalSetStyleOrClass(n.areaStyle)),a&&(a.setBoolData("simple",this._simpleMode),a.setPath(u),a.internalClearStyleAndClass(),i._runColor&&a.internalSetStyle($S,i._runColor),n.areaStyle&&a.internalSetStyleOrClass(n.areaStyle),this._setFill(a,i.options.belowStyle),n.belowAreaStyle&&a.internalSetStyleOrClass(n.belowAreaStyle))}},e.prototype._layoutPolar=function(t,e){var i=this.model,n=i._group,r=i._yAxisObj,o=r instanceof mA?i.getBaseValue(r):NaN,s=this.height;r.getPos(s,_S.isNotEmpty(o)?o:r.axisMax());var a=new zC;if(!n||"stack"!==n.options.layout&&"fill"!==n.options.layout){a.move(e[0].xPos,e[0].yPos);for(u=1;u<e.length;u++)a.line(e[u].xPos,e[u].yPos);t.setPath(a.end())}else{a.move(e[0].xPos,e[0].yLow),a.line(e[0].xPos,e[0].yPos);for(var u=1;u<e.length;u++)a.line(e[u].xPos,e[u].yPos);a.line(e[e.length-1].xPos,e[e.length-1].yLow);for(var u=e.length-1;u>=0;u--)a.line(e[u].xPos,e[u].yLow);t.setPath(a.end())}t.setBoolData("polar",!0),t.clearStyleAndClass(),t.setFill(i._runColor),t.addStyleOrClass(i._style)},e}(cN),yN=function(t){function e(e){var i=t.call(this,e,"rct-barrange-series")||this;return i._bars=new BE(i._pointContainer,FL),i}return Fx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this._rd=+i.options.cornerRadius||0},e.prototype._preparePoints=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.wPoint=r,t.hPoint=o,t.layout(i,n+o,this._rd,this._rd)},e}(zL),gN=function(t){function e(e){return t.call(this,e,RL.POINT_CLASS)||this}return Fx(e,t),e.prototype.savePrevs=function(){},e}(uL),vN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._labelInfo={},e}return Fx(e,t),e.prototype._getPointPool=function(){return this.chart().isPolar()?this._sectors:this._bars},e.prototype._preparePoints=function(t,e,i){e.chart.isPolar()?this.$_parepareSectors(t,e,this._visPoints):this.$_parepareBars(t,e,this._visPoints)},e.prototype._setPointStyle=function(e,i,n){t.prototype._setPointStyle.call(this,e,i,n),n.yValue<i.options.baseValue&&i.options.belowStyle&&e.addStyleOrClass(i.options.belowStyle)},e.prototype._layoutPoints=function(e,i){this.model.chart.isPolar()?this.$_layoutSectors():t.prototype._layoutPoints.call(this,e,i)},e.prototype.$_parepareBars=function(t,e,i){var n=this;this._bars||(this._bars=this._createBarPool(this._pointContainer)),this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype.$_parepareSectors=function(t,e,i){var n=this;this._sectors||(this._sectors=new BE(this._pointContainer,gN)),this._sectors.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype.$_layoutSectors=function(){var t,e,i,n=this.model,r=this._getGrowRate(),o=n.pointLabel,s=this._labelViews(),a=n.chart._body,u=n._xAxisObj,l=n._yAxisObj,h=a.getPolar(u),p=u.getTotalAngle(),c=h.cx,f=h.cy;s&&(t=this._labelInfo,e=n.getLabelPosition(o.options.position),i=n.getLabelOff(o.getOffset())),this._sectors.forEach((function(o,a){var _=o.point,d=l.getPos(h.rd,_.yValue)*r,y=l.getPos(h.rd,_.yGroup)*r,g=u.getUnitLen(p,_.xValue),v=n.getPointWidth(g),m=h.start+u.getPos(p,_.xValue);if(m+=n.getPointPos(g),o.setSector({cx:c,cy:f,rx:y,ry:y,innerRadius:(y-d)/y,start:m-v/2,angle:v,clockwise:!0}),m=o.start+o.angle/2,_.xPos=c+o.rx*eS(m),_.yPos=f+o.ry*iS(m),s&&(t.labelView=s.get(_,0))){var b=t.labelView.getBBox(),w=void 0;"outside"===e?(y=f+(o.ry+b.height+i)*iS(m),w=c+(o.rx+b.width+i)*eS(m)):"head"===e?(y=f+(o.ry-b.height/2-i)*iS(m)-b.height/2,w=c+(o.rx-b.height/2-i)*eS(m)):(y=f+.7*o.ry*iS(m)-b.height/2,w=c+.7*o.rx*eS(m)),t.labelView.layout("center").trans(w-b.width/2,y)}}))},e}($L),mN=function(t){function e(e){return t.call(this,e,"rct-bar-series")||this}return Fx(e,t),e.prototype._createBarPool=function(t){return new BE(t,FL)},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this._rdTop=+i.options.topRadius||0,this._rdBottom=+i.options.bottomRadius||0},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.wPoint=r,t.hPoint=o,t.layout(i,n,this._rdTop,this._rdBottom)},e}(vN),bN=function(t){function e(e){return t.call(this,e,"rct-bellcurve-series")||this}return Fx(e,t),e}(dN),wN=function(t){function e(e){return t.call(this,e,RL.POINT_CLASS+" rct-boxplot-point")||this}return Fx(e,t),e.prototype.layout=function(t,e){var i=this.point,n=i.yValue-i.minValue,r=t/2,o=0+e-e*(i.lowValue-i.minValue)/n,s=0+e-e*(i.highValue-i.minValue)/n,a=e*(i.highValue-i.lowValue)/n;i.color&&this._box.setFill(i.color),this.x=this.tx+r,this._stemUp.setVLine(r,0,s),this._stemDown.setVLine(r,o,e),this._min.setHLine(0,t/4,3*t/4),this._max.setHLine(0+e,t/4,3*t/4),this._box.setBox(0,s,t,a),this._mid.setHLine(0+e-e*(i.midValue-i.minValue)/n,0,t)},e.prototype._doInitChildren=function(t){this.add(this._stemUp=new vC(t,"rct-boxplot-point-stem")),this.add(this._stemDown=new vC(t,"rct-boxplot-point-stem")),this.add(this._box=new bk(t,"rct-boxplot-point-box")),this.add(this._mid=new vC(t,"rct-boxplot-point-mid")),this.add(this._min=new vC(t,"rct-boxplot-point-min")),this.add(this._max=new vC(t,"rct-boxplot-point-max"))},e}(IL),xN=function(t){function e(e){var i=t.call(this,e,"rct-boxplot-series")||this;return i._boxes=new BE(i._pointContainer,wN),i}return Fx(e,t),e.prototype._getPointPool=function(){return this._boxes},e.prototype._getLowValue=function(t){return t.minValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._boxes.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i-r/2,n),t.layout(r,o)},e}(zL),SN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(HL),PN=function(t){function e(e){return t.call(this,e,"rct-bubble-series")||this}return Fx(e,t),e.prototype._createMarkers=function(t){return new BE(t,SN)},e.prototype._prepareSeries=function(t,e){this.$_prepareMarkers(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this.$_layoutMarkers(t,e)},e.prototype._runShowEffect=function(t){t&&wL.grow(this)},e.prototype._doViewRateChanged=function(t){this.$_layoutMarkers(this.width,this.height)},e.prototype.$_prepareMarkers=function(t,e){var i=this;t.getShape();var n=e.length;this._markers.prepare(n,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e.prototype._getAutoPos=function(t){return t?"outside":"inside"},e.prototype.$_layoutMarkers=function(t,e){var i,n=this,r=this.model,o=r.options,s=this._inverted,a=r.needClip(!1),u=this._getGrowRate(),l=+o.rotation||0,h=r.pointLabel,p=h.options.position,c=h.getOffset(),f=this._labelViews(),_=r._xAxisObj,d=r._yAxisObj,y=this._polar=r.chart._body.getPolar(_),g=d.prev(s?t:e),v=_.prev(y?y.rd*PS:s?e:t),m=(r._xAxisObj._vlen<r._yAxisObj._vlen?r._xAxisObj:r._yAxisObj)._vlen,b=r.getPixelMinMax(m),w=b.min,x=b.max,S=s?0:e,P=this._getDrawer(o.shape);this._markers.forEach((function(o,h){var m=o.point,b=f&&(i=f.get(m,0));if(o.setVis(!m.isNull&&!isNaN(m.zValue))){var V=(o._radius=r.getRadius(m.zValue,w,x))*u,k=void 0,A=void 0;if(y){var C=y.start+_.getPos(PS,m.xValue),E=d.getPos(y.rd,m.yValue);k=y.cx+E*eS(C),A=y.cy+E*iS(C)}else k=_.getPos(v,m.xValue),A=S-d.getPos(g,m.yValue),s&&(k=d.getPos(g,m.yValue),A=e-_.getPos(v,m.xValue));m.xPos=k,m.yPos=A,o.setVis(!a||k>=0&&k<=t&&A>=0&&A<=e)?(o.setPath(P(V)).trans(k,A).rotate(l),b&&(i.setContrast(o.dom),i.layout("center"),n._layoutLabelView(i,p,c,V,k,A))):b&&b.setVis(!1)}else b&&b.setVis(!1)}))},e.prototype.getNearest=function(t,e){var i=this._markers._internalItems().reduce((function(i,n){return i.distance(i._radius,t,e)<n.distance(n._radius,t,e)?i:n}));return{pv:i,dist:i.distance(i._radius,t,e)}},e.prototype.canHover=function(t,e,i){return t<=e._radius+i},e}(GL),VN=function(t){function e(e){return t.call(this,e,RL.POINT_CLASS)||this}return Fx(e,t),e.prototype.layout=function(t,e){var i=this.point,n=i.yValue-i.lowValue,r=0+e-e*(0===n?1:(oS(i.openValue,i.closeValue)-i.lowValue)/n),o=0+e-e*(0===n?1:(sS(i.openValue,i.closeValue)-i.lowValue)/n),s=oS(o,r),a=sS(1,aS(r-o)),u=i.close<i.open;this.x=this.tx+0,this._wickUpper.setVLine(0,0,o),this._wickLower.setVLine(0,r,e),this._body.setBox(-t/2,s,t,a),this.setBoolData("decline",u)},e.prototype._doInitChildren=function(t){this.add(this._wickUpper=new vC(t,"rct-candlestick-point-wick")),this.add(this._wickLower=new vC(t,"rct-candlestick-point-wick")),this.add(this._body=new bk(t))},e}(IL),kN=function(t){function e(e){var i=t.call(this,e,"rct-candlestick-series")||this;return i._sticks=new BE(i._pointContainer,VN),i}return Fx(e,t),e.prototype._getPointPool=function(){return this._sticks},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._sticks.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._setPointColor=function(t,e){t._body.setColor(e)},e.prototype._setPointStyle=function(e,i,n,r){t.prototype._setPointStyle.call(this,e,i,n,r),n.closeValue<n.openValue&&i.options.declineStyle&&e.addStyleOrClass(i.options.declineStyle)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i,n),t.layout(r,o)},e}(zL),AN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.layout=function(t,e,i){var n=new zC;n.circle(t,e,i),this.setPath(n.end())},e}(DL),CN=function(t){function e(e){return t.call(this,e,"rct-circlebar-series")||this}return Fx(e,t),e.prototype._createBarPool=function(t){return new BE(t,AN)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.layout(i,n-o/2,o/2-1)},e}(vN),EN=function(t){function e(e){var i=t.call(this,e,RL.POINT_CLASS)||this;return i.add(i._line=new vC(e)),i.add(i._hmarker=new OP(e,"rct-dumbbell-point-marker")),i.add(i._lmarker=new OP(e,"rct-dumbbell-point-marker")),i}return Fx(e,t),e.prototype.layout=function(t,e){var i=this.point,n=i.radius,r=t/2;i.color&&(this._line.setStyle("stroke",i.color),this._hmarker.setFill(i.color),this._lmarker.setFill(i.color)),this.x=this.tx+r,this._line.setVLineC(r,0,e),mk.setShape(this._hmarker,i.shape,n,n),mk.setShape(this._lmarker,i.shape,n,n),this._hmarker.trans(r-n,0-n),this._lmarker.trans(r-n,e-n)},e}(IL),LN=function(t){function e(e){var i=t.call(this,e,"rct-dumbbell-series")||this;return i._bars=new BE(i._pointContainer,EN),i}return Fx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i-r/2,n),t.layout(r,o)},e}(zL),NN=function(t){function e(e){var i=t.call(this,e,RL.POINT_CLASS)||this;return i._segments=new BE(i,OP),i._decimal=0,i.add(i._back=new bk(e)),i._back.setTransparent(!0),i}return Fx(e,t),e.prototype.prepareSegments=function(t,e,i,n){this._decimal=i,this._segments.prepare(Math.round(e)).forEach((function(t,e){}))},e.prototype.layout=function(t,e,i){var n=this,r=this.wPoint,o=this.hPoint,s=o<0?Math.max:Math.min;e-=r/2,o<0&&(t=t.map((function(t){return-t}))),this._back.setBounds(e,i-o,r,o),this._segments.forEach((function(a,u,l){u===l-1&&n._decimal>0?a.setPath(mk.rectangle(e,i-t[2*u],r,o<0?s(1,n._decimal):s(-1,-n._decimal))):a.setPath(mk.rectangle(e,i-t[2*u],r,s(-1,t[2*u]-t[2*u+1])))}))},e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}(HE),MN=function(t){function e(e){var i=t.call(this,e,"rct-equalizer-series")||this;return i._bars=new BE(i._pointContainer,NN),i}return Fx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(e,i)},e.prototype._layoutPoints=function(e,i){var n=this.model._yAxisObj.prev(this._inverted?e:i)*this._getGrowRate();this.$_buildSegments(this.model,n),t.prototype._layoutPoints.call(this,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){var s=this._prevRate;isNaN(s+t.wSave)||(r=t.wSave+(r-t.wSave)*s),isNaN(s+t.xSave)||(i=t.xSave+(i-t.xSave)*s),t.wPoint=r,t.hPoint=o,t.layout(this._pts,i,n)},e.prototype.$_parepareBars=function(t,e){var i=this;this._bars.prepare(e.length,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e.prototype.$_buildSegments=function(t,e){var i,n,r=t.options,o=t._yAxisObj.axisMax(),s=r.segmented,a=r.segmentGap||0,u=this._pts=[],l=0;for(n=r.maxCount>0?r.maxCount:Math.round(e/(t.getSegmentSize(e)+a/2)),i=(e-a*(n-1))/n;u.length<2*n;)u.push(l,l+i),l+=i+a;u[u.length-1]=e;var h=u.length/2;this._bars.forEach((function(t){var n=t.point;if(t.setVis(!n.isNull)){for(var a=n.yValue/o,l=-1,p=0,c=0;c<h-1;c++)if(a>=u[2*c]/e&&a<u[2*(c+1)]/e){l=c+1,p=!s&&a<u[2*c+1]/e?a*e-u[2*c]:i;break}l<0&&(l=h,p=i),t.prepareSegments(h,l,p,r.backStyle)}}))},e}($L),TN=function(t){function e(e){return t.call(this,e,RL.POINT_CLASS)||this}return Fx(e,t),e.prototype._doInitChildren=function(t){this.add(this._stem=new vC(t)),this.add(this._whiskerUp=new vC(t)),this.add(this._whiskerDown=new vC(t)),this.add(this._back=new bk(t,"rct-errorbar-point-back")),this._back.setTransparent(!1)},e.prototype.layout=function(t,e){var i=t/2;this.x=this.tx+i,this._stem.setVLine(i,0,e),this._whiskerUp.setHLine(0,0,t),this._whiskerDown.setHLine(e,0,t),this._back.setBox(0,0,t,e)},e}(IL),ON=function(t){function e(e){var i=t.call(this,e,"rct-errorbar-series")||this;return i._bars=new BE(i._pointContainer,TN),i}return Fx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i-r/2,n),t.layout(r,o)},e}(zL),RN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e}(DL),DN=function(t){function e(e){var i=t.call(this,e,"rct-funnel-series")||this;return i._segments=new BE(i._pointContainer,RN),i.add(i._lineContainer=new ML(e)),i}return Fx(e,t),e.prototype._getPointPool=function(){return this._segments},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this.$_prepareSegments(e,i,this._visPoints),this._lineContainer.prepare(i)},e.prototype._renderSeries=function(t,e){this.$_calcRates(this._visPoints),this.$_layoutSegments(t,e)},e.prototype._runShowEffect=function(t){t&&wL.reveal(this,{from:this.model.options.reversed?"bottom":"top"})},e.prototype._resizeZombie=function(){this._renderSeries(this.width,this.height)},e.prototype._animationStarted=function(e){t.prototype._animationStarted.call(this,e),this._lineContainer.setVis(this._labelContainer.visible)},e.prototype.$_prepareSegments=function(t,e,i){var n=this;this._segments.prepare(i.length,(function(r,o){var s=r.point=i[o];n._preparePoint(t,e,s,r)}))},e.prototype.$_calcRates=function(t){var e=this,i=t.length,n=0,r=0;if(t.forEach((function(t){n+=t.yValue*(t===e._zombie?e._zombieRate:1)})),i>1||i>0&&!this._zombie){for(var o=0;o<i-1;o++){var s=LS((a=t[o]).yValue*(a===this._zombie?this._zombieRate:1)/n)||0;a.yRate=100*s,a.yPos=r,a.height=s,r+=s}t[o].yPos=r,t[o].height=1-r}else if(1==i){var a=t[0];r=1-(s=LS(this._zombieRate)),a.yRate=100*s,a.yPos=r,a.height=s,a.yPos=r,a.height=1-r}},e.prototype.$_layoutSegments=function(t,e){var i=this;function n(t){return c?g+(x-g)*(m-t)/(m-S):g+(x-g)*(t-v)/(S-v)}var r,o=this.model,s=this._labelViews(),a="inside"===o.getLabelPosition(),u=o.pointLabel,l=u.getOffset(),h=s&&u.options.distance||0,p=this._lineContainer,c=o.options.reversed,f=o.getSize(t,e),_=o.getNeckSize(f.width,f.height),d=new zC,y=o.getCenter(t,e),g=y.x-f.width/2,v=y.y-f.height/2,m=v+f.height,b=g+f.width/2,w=f.height-_.height,x=g+(f.width-_.width)/2,S=c?m-w:v+w;this._lineContainer.setVis(s&&!a),this._segments.forEach((function(t){var e,o=t.point;if(t.setVis(!o.isNull)){var u=o.yPos*f.height,y=(o.yPos+o.height)*f.height,g=c?m-u:v+u,P=c?m-y:v+y,V=void 0,k=void 0,A=void 0,C=void 0;if(u>=w?(k=(V=x)+_.width,d.move(V,g).lines(k,g,k,P,V,P),t.ny=t.nx1=NaN):y<w?(k=(V=n(g))+2*(b-V),C=(A=n(P))+2*(b-A),d.move(V,g).lines(k,g,C,P,A,P),t.ny=NaN,t.nx1=A-V,t.nx2=C-V):(k=(V=n(g))+2*(b-V),C=(A=x)+_.width,d.move(V,g).lines(k,g,C,S,C,P,A,P,A,S),t.ny=S-g,t.nx1=A-V,t.nx2=C-V),t.setPath(d.close(!0)),o.xPos=b,o.yPos=g+(P-g)/2,s&&(r=s.get(o,0))){var E=p.get(o);if(E.setVis(!a)){var L=t.getBBox(),N=o.xPos,M=o.yPos;isNaN(t.ny)?isNaN(t.nx1)||(N-=t.nx1*L.height/2/L.height):aS(t.ny)>L.height/2&&(N-=t.nx1*L.height/2/aS(t.ny)),i.$_layoutLabel(r,L,E,l,h,N,M)}else i.$_layoutLabelInner(r,o.xPos,o.yPos);r.setContrast(a&&t.dom)}else null===(e=p.get(o))||void 0===e||e.setVis(!1)}}))},e.prototype.$_layoutLabel=function(t,e,i,n,r,o,s){var a=t.getBBox();o+=e.width/2,i.setLine((new zC).move(0,0).line(r,0).end()),i.trans(o,s),o+=r+n,t.trans(o,s-a.height/2)},e.prototype.$_layoutLabelInner=function(t,e,i){var n=t.getBBox();t.trans(e-n.width/2,i-n.height/2)},e}(YL),BN=function(t){function e(e){return t.call(this,e,RL.POINT_CLASS)||this}return Fx(e,t),e}(bk),FN=function(t){function e(e){var i=t.call(this,e,"rct-heatmap-series")||this;return i._cells=new BE(i._pointContainer,BN),i}return Fx(e,t),e.prototype._getPointPool=function(){return this._cells},e.prototype._prepareSeries=function(t,e){this.$_parepareCells(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this._pointContainer.invert(this._inverted,e),this.$_layoutCells(t,e)},e.prototype._runShowEffect=function(t){t&&wL.grow(this)},e.prototype._doViewRateChanged=function(t){this.$_layoutCells(this.width,this.height)},e.prototype.$_parepareCells=function(t,e){var i=this,n=new jP(t._calcedColor),r=[{fill:void 0}],o=t._heatMin,s=t._heatMax-o;this._cells.prepare(e.length,(function(a,u){var l=a.point=e[u];r[0].fill=n.brighten(1-(l.zValue-o)/s).toString(),i._setPointStyle(a,t,l,r)}))},e.prototype.$_layoutCells=function(t,e){var i=this.model,n=this._inverted,r=this._getGrowRate(),o=this._labelViews(),s=i._xAxisObj,a=i._yAxisObj,u=n?t:e,l=n?e:t,h=n?0:e;this._cells.forEach((function(t){var e=t.point;if(t.setVis(!e.isNull)){var i=s.getUnitLen(l,e.xValue)*r,p=a.getUnitLen(u,e.yValue)*r,c=s.getPos(l,e.xValue)-i/2,f=h-a.getPos(u,e.yValue)-p/2,_=void 0;if(e.xPos=n?h+a.getPos(u,e.yValue):c+i/2,e.yPos=n?l-s.getPos(l,e.xValue)+i/2:f+p/2,t.setBounds(c,f,i,p),o&&(_=o.get(e,0))){var d=_.getBBox();n?(f=l-s.getPos(l,e.xValue)-d.height/2,c=h+a.getPos(u,e.yValue)):(c+=i/2,f+=(p-d.height)/2),c-=d.width/2,_.layout("center").trans(c,f)}}}))},e}(RL),IN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.layout=function(t,e){this.setPath(mk.rect({x:t-this.wPoint/2,y:e,width:this.wPoint,height:-this.hPoint}))},e}(BL),jN=function(t){function e(e){var i=t.call(this,e,"rct-histogram-series")||this;return i._bars=new BE(i._pointContainer,IN),i}return Fx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.wPoint=r,t.hPoint=o,t.layout(i,n)},e.prototype._layoutPoints=function(t,e){var i=this,n=this.model,r=this._inverted,o=this._getGrowRate(),s=n.pointLabel,a=this._labelViews(),u=n._xAxisObj,l=n._yAxisObj,h=r?t:e,p=r?e:t,c=l.getPos(h,n.getBaseValue(l)),f=r?0:e,_=a&&Jx(this._labelInfo,{inverted:r,labelPos:n.getLabelPosition(s.options.position),labelOff:n.getLabelOff(s.getOffset())});this._getPointPool().forEach((function(n,s){var d=n.point,y=u.getPos(p,d.min),g=u.getPos(p,d.max),v=l.getPos(h,d.yValue),m=g-y+(g>y?-1:1),b=v-c,w=y+(g-y)/2,x=f;d.xPos=w,d.yPos=x-=v,i._layoutPoint(n,s,w,x+b,m,b*o),_&&(_.labelView=a.get(d,0))&&(r&&(x=p-w,w=f,d.yPos=x,d.xPos=w+=l.getPos(h,d.yGroup)),_.pointView=n,_.x=w,_.y=x,_.wPoint=m,_.hPoint=b,i._layoutLabel(_,t,e))}))},e.prototype.$_parepareBars=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype.$_layoutBars=function(t,e){var i=this.model._xAxisObj,n=this.model._yAxisObj,r=this.height,o=this._getGrowRate();this._bars.forEach((function(s,a){var u=s.point,l=i.getPos(t,u.min),h=i.getPos(t,u.max),p=l+(h-l)/2,c=n.getPos(e,s.point.yValue)*o,f=sS(1,h-l-1);u.xPos=p,u.yPos=r-c,s.wPoint=f,s.hPoint=c,s.layout(p,r)}))},e}(jL),$N=function(t){function e(e){var i=t.call(this,e,RL.POINT_CLASS)||this;return i.add(i._line=new vC(e)),i.add(i._marker=new OP(e,"rct-lollipop-point-marker")),i}return Fx(e,t),e.prototype.layout=function(t){var e=this.point.radius;this._line.setVLineC(0,0,t),mk.setShape(this._marker,this.point.shape,e,e),this._marker.trans(-e,-e)},e.prototype.savePrevs=function(){this.xSave=this.tx},e}(HE),zN=function(t){function e(e){return t.call(this,e,"rct-lollipop-series")||this}return Fx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i,n-o),t.layout(o)},e.prototype.$_parepareBars=function(t,e,i){var n=this,r=e.marker._style;this._bars||(this._bars=new BE(this._pointContainer,$N)),this._bars.prepare(i.length,(function(t,o){var s=t.point=i[o];n._setPointStyle(t,e,s),r&&t._marker.setStyleOrClass(r)}))},e}($L),HN=function(t){function e(e){return t.call(this,e,RL.POINT_CLASS)||this}return Fx(e,t),e.prototype.layout=function(t,e){var i=this.point,n=i.yValue-i.lowValue,r=-t/2,o=0+e-e*(oS(i.openValue,i.closeValue)-i.lowValue)/n,s=0+e-e*(sS(i.openValue,i.closeValue)-i.lowValue)/n,a=i.close<i.open;this.x=this.tx+0,this._back.setBox(r,0,t,e),this._tickOpen.setHLine(o,r,0),this._tickClose.setHLine(s,0,t/2),this._bar.setVLine(0,0,0+e),this.setBoolData("decline",a)},e.prototype._doInitChildren=function(t){this.add(this._tickOpen=new vC(t,"rct-ohlc-point-tick")),this.add(this._tickClose=new vC(t,"rct-ohlc-point-tick")),this.add(this._bar=new vC(t)),this.add(this._back=new bk(t,"rct-ohlc-point-back")),this._back.setTransparent(!1)},e}(IL),GN=function(t){function e(e){var i=t.call(this,e,"rct-ohlc-series")||this;return i._sticks=new BE(i._pointContainer,HN),i}return Fx(e,t),e.prototype._getPointPool=function(){return this._sticks},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){this.$_prepareSticks(e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i,n),t.layout(r,o)},e.prototype._setPointStyle=function(e,i,n,r){t.prototype._setPointStyle.call(this,e,i,n,r),n.closeValue<n.openValue&&i.options.declineStyle&&e.addStyleOrClass(i.options.declineStyle)},e.prototype.$_prepareSticks=function(t,e){var i=this;this._sticks.prepare(e.length,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e}(zL),WN=function(t){function e(e){return t.call(this,e,"rct-pareto-series")||this}return Fx(e,t),e}(cN),YN=function(t){function e(e){return t.call(this,e,RL.POINT_CLASS)||this}return Fx(e,t),e.prototype.setPieSector=function(t,e,i){this._assignShape(i,!1)},e}(uL),XN=function(t){function e(e){var i=t.call(this,e,"rct-pie-series")||this;return i._sectors=new BE(i._pointContainer,YN,null,.5),i._cx=0,i._cy=0,i._rd=0,i._rdInner=0,i._slicedOff=0,i.add(i._circle=new oL(e)),i._circle.setStyles({stroke:"#aaa",fill:"none",strokeDasharray:"2"}),i.add(i._textView=new qE(e,"rct-pie-series-inner")),i._textView._text.anchor=RP.MIDDLE,i._labelContainer.add(i._lineContainer=new ML(e)),i}return Fx(e,t),e.prototype._getPointPool=function(){return this._sectors},e.prototype._setPointColor=function(t,e){t.setFill(e)},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i);var n=i.innerText;this.$_prepareSectors(e,i,this._visPoints),this._lineContainer.prepare(i),this._textView.setVis(i.hasInner()&&n.visible)&&(this._textView.setModel(e,n,null,null),n.buildSvg(this._textView._text,this._textView._outline,NaN,NaN,i,null))},e.prototype._renderSeries=function(t,e){isNaN(this.model._groupPos)?this.$_calcNormal(t,e):this.$_calcGroup(t,e),this.$_layoutSectors(this._visPoints,t,e)},e.prototype.$_calcNormal=function(t,e){this._rd=this.model.getRadius(t,e),this._rdInner=this.model.getInnerRadius(this._rd)},e.prototype.$_calcGroup=function(t,e){var i=this.model,n=i._group,r=Math.floor(n.getPolarSize(t,e)/2),o=n.getInnerRadius(r)*r,s=r-o;this._rd=o+(i._groupPos+i._groupSize)*s,this._rdInner=(o+i._groupPos*s)/this._rd},e.prototype._runShowEffect=function(t){var e=this;t&&wL.grow(this,(function(t){var i=e._sectors.find((function(t){return t.point.sliced}));i&&(i.trans(0,0),e.$_slice(i,e.model.options.autoSlice,!1))}))},e.prototype._doPointClicked=function(t){if(t instanceof YN&&this.model.options.autoSlice){var e=this._sectors.find((function(t){return t.point.sliced}));e&&this.$_slice(e,!1,!0),t!==e&&this.$_slice(t,!0,!0)}else this.invalidate()},e.prototype._doViewRateChanged=function(t){this.$_layoutSectors(this._visPoints,this.width,this.height)},e.prototype._resizeZombie=function(){this._renderSeries(this.width,this.height)},e.prototype.getClipContainer=function(){return null},e.prototype.$_prepareSectors=function(t,e,i){var n=this;this._sectors.prepare(i.length,(function(r,o){var s=r.point=i[o];n._preparePoint(t,e,s,r)}))},e.prototype.$_calcAngles=function(t){var e=this,i=t.length,n=this.model.options.clockwise?1:-1,r=t.filter((function(t){return(t.visible||t===e._zombie)&&!t.isNull})).map((function(t){return t===e._zombie?t.yValue*e._zombieRate:t.yValue})).reduce((function(t,e){return t+e}),0),o=this.model._totalRad*this._getGrowRate(),s=this.model._startRad;if(i>1||i>0&&!this._zombie)t.forEach((function(t){t.isNull||(t.yRate=LS(t===e._zombie?t.yValue*e._zombieRate:t.yValue)/r||0,t.startAngle=s,s+=t.angle=n*t.yRate*o)}));else if(1==i){var a=t[0];a.startAngle=s,a.angle=n*this._zombieRate*o}},e.prototype.$_layoutSectors=function(t,e,i){var n,r=this,o=this.model,s=o.options.clockwise,a=this._getGrowRate(),u=o.getCenter(e,i),l=this._cx=u.x,h=this._cy=u.y,p=this._rd,c=this._rdInner,f=o.pointLabel,_=this._labelViews(),d="inside"===o.getLabelPosition(),y=f.getOffset(),g=f.options.distance||0,v=this._lineContainer,m=this._slicedOff=o.getSliceOffset(p)*a;if(this._textView.visible){var b=this._textView.getBBox();this._textView.trans(l,h-b.height/2)}this._circle.setVis(this._sectors.isEmpty)&&this._circle.setCircle(this._cx,this._cy,this._rd),this.$_calcAngles(t),this._sectors.forEach((function(t){var e,i,o=t.point;if(o.isNull)t.setVis(!1),_&&(n=_.get(o,0))&&n.setVis(!1),null===(i=v.get(o))||void 0===i||i.setVis(!1);else{var u=o.startAngle,f=0,b=0;if(o.sliced&&a>=1&&!t.isDomAnimating()){var w=u+o.angle/2;f+=eS(w)*m,b+=iS(w)*m}t.trans(f,b).setVis(!0);var x=o.startAngle+o.angle/2;if(o.xPos=l+eS(x)*(m+.7*p),o.yPos=h+iS(x)*(m+.7*p),t.setPieSector(_,null,{cx:l,cy:h,rx:p,ry:p,innerRadius:c,start:u,angle:aS(o.angle),clockwise:s}),_&&(n=_.get(o,0))){var S=v.get(o);S.setVis(!d)?r.$_layoutLabel(o,n,S,y,g,o.sliced?m:0,s):(S.visible=!1,r.$_layoutLabelInside(o,n,y,0,o.sliced?m:0)),n.setContrast(d&&t.dom).setVis(!0)}else null===(e=v.get(o))||void 0===e||e.setVis(!1)}}))},e.prototype.$_layoutLabel=function(t,e,i,n,r,o,s){var a,u=e.getBBox(),l=t.startAngle+t.angle/2,h=this._cx,p=this._cy,c=this._rd+.8*r,f=eS(l)*o,_=iS(l)*o,d=h+eS(l)*this._rd,y=p+iS(l)*this._rd,g=h+eS(l)*c,v=p+iS(l)*c,m=g<h;a=m?g-.2*r:g+.2*r,i&&i.setVis(c>0)&&(i.setLine((new zC).move(0,0).quad(g-d,v-y,a-d,v-y).end()),i.setPos(d,y),!e.isDomAnimating()&&i.trans(d+f,y+_)),m?(a-=u.width+n,v-=u.height/2):(a+=n,v-=u.height/2),e.setPos(a,v),!e.isDomAnimating()&&e.layout("center").trans(a+f,v+_)},e.prototype.$_layoutLabelInside=function(t,e,i,n,r){var o=e.getBBox(),s=this._rd*this._rdInner,a=(s>0?s+(this._rd-s)/2:.7*this._rd)+i,u=t.startAngle+t.angle/2,l=this._cx+eS(u)*a,h=this._cy+iS(u)*a;e.move(l-o.width/2,h-o.height/2),l=this._cx+eS(u)*(r+a),h=this._cy+iS(u)*(r+a),e.layout("center").trans(l-o.width/2,h-o.height/2)},e.prototype.$_slice=function(t,e,i){var n=this.model,r=n.options.autoSlice?n.options.sliceDuration:0,o=t.point,s=o.startAngle+o.angle/2;(o.sliced=e)?t.transEx(eS(s)*this._slicedOff,iS(s)*this._slicedOff,r):t.transEx(0,0,r);var a=this._labelViews();if(a){var u=n.pointLabel,l=this._lineContainer,h="inside"===n.getLabelPosition(),p=a.get(o,0);if(p){var c=!h&&l.get(o);if(i&&(h?this.$_layoutLabelInside(o,p,u.getOffset(),u.options.distance,this._slicedOff):this.$_layoutLabel(o,p,c,u.getOffset(),u.options.distance,this._slicedOff,n.options.clockwise)),e){var f=p.tx,_=p.ty;p.trans(p.x,p.y),p.transEx(f,_,r),c&&(f=c.tx,_=c.ty,c.trans(c.x,c.y),c.transEx(f,_,r))}else p.trans(p.tx,p.ty),p.transEx(p.x,p.y,r),c&&(c.trans(c.tx,c.ty),c.transEx(c.x,c.y,r))}}},e}(YL),UN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.setHoverRate=function(t,e,i){var n=this.point,r=t._getDrawer(t.model.getShape(this.point)),o=(+t.model.options.hoverScale||1.8)-1,s=t._radius;e?this._radius=s=t._radius*(1+(isNaN(i)?1:i)*o):s=t._radius*(1+o-(isNaN(i)?o:o*i)),this.setPath(r(s)),this.trans(n.xPos,n.yPos)},e.prototype.endHover=function(t,e){delete this._radius},e}(HL),qN=function(t){function e(e){return t.call(this,e,"rct-scatter-series")||this}return Fx(e,t),e.prototype._createMarkers=function(t){return new BE(t,UN)},e.prototype._prepareSeries=function(t,e){this.$_prepareMarkers(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this.$_layoutMarkers(t,e)},e.prototype._runShowEffect=function(t){t&&(this._polar,wL.grow(this))},e.prototype.$_prepareMarkers=function(t,e){var i=this,n=e.length;this._pointContainer.setFill(t._runColor),this._markers.prepare(n,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e.prototype._getAutoPos=function(t){return"outside"},e.prototype._doViewRateChanged=function(t){this.$_layoutMarkers(this.width,this.height)},e.prototype.$_layoutMarkers=function(t,e){var i,n=this,r=this.model,o=r.options,s=this._inverted,a=r.needClip(!1),u=r._xAxisObj,l=r._yAxisObj,h=this._polar=r.chart._body.getPolar(u),p=this._getGrowRate(),c=this._radius=Math.max(0,+r.options.radius||0)*p,f=+o.rotation||0,_=+o.jitterX||0,d=+o.jitterY||0,y=r.pointLabel,g=y.options.position,v=y.getOffset(),m=this._labelViews(),b=l.prev(s?t:e),w=u.prev(h?h.rd*PS:s?e:t),x=s?0:e;this._markers.forEach((function(o,y){var S=o.point,P=m&&(i=m.get(S,0));if(o.setVis(!S.isNull)){var V=n._getDrawer(r.getShape(S)),k=_S.jitter(S.xValue,_),A=_S.jitter(S.yGroup,d),C=void 0,E=void 0;if(h){var L=h.start+u.getPos(PS,k),N=l.getPos(h.rd,A)*p;C=h.cx+N*eS(L),E=h.cy+N*iS(L)}else C=u.getPos(w,k),E=x-l.getPos(b,A),s&&(C=l.getPos(b,A),E=e-u.getPos(w,k));S.xPos=C,S.yPos=E,o.setVis(!!h||!a||C>=0&&C<=t&&E>=0&&E<=e)?(o.setPath(V(o._radius||c)),o.trans(C,E).rotate(f),P&&n._layoutLabelView(i,g,v,c,C,E)):P&&P.setVis(!1)}else P&&P.setVis(!1)}))},e.prototype.getNearest=function(t,e){var i=this.model.options.radius,n=this._markers._internalItems().reduce((function(n,r){return n.distance(i,t,e)<r.distance(i,t,e)?n:r}));return{pv:n,dist:n.distance(i,t,e)}},e.prototype.canHover=function(t,e,i){return t<=this.model.options.radius+i},e}(GL),ZN=function(t){function e(e){return t.call(this,e,RL.POINT_CLASS)||this}return Fx(e,t),Object.defineProperty(e.prototype,"point",{get:function(){return this.node.point},enumerable:!1,configurable:!0}),e.prototype.render=function(t){if(1!==t){var e=Object.assign({},this.node);e.width*=t,e.height*=t,e.x+=(this.node.width-e.width)/2,e.y+=(this.node.height-e.height)/2,this.setRect(e)}else this.setRect(this.node)},e}(bk);!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Fx(e,t)}(ZN);var KN=function(t){function e(e){var i=t.call(this,e,"rct-treemap-series")||this;return i._nodeViews=new BE(i._pointContainer,ZN),i}return Fx(e,t),e.prototype._lazyPrepareLabels=function(){return!0},e.prototype._getPointPool=function(){return this._nodeViews},e.prototype._prepareSeries=function(t,e){},e.prototype._renderSeries=function(t,e){this._pointContainer.invert(this._inverted,e),this._rootView?this.$_renderGroups(t,e):this.$_renderLeafs(t,e)},e.prototype._runShowEffect=function(t){t&&wL.grow(this)},e.prototype._doViewRateChanged=function(t){this._rootView?this.$_renderGroups(this.width,this.height):this.$_renderLeafs(this.width,this.height)},e.prototype.$_renderLeafs=function(t,e){var i=this.model,n=i._xAxisObj,r=i._yAxisObj,o=this._inverted,s=this._getGrowRate(),a=this._labelViews(),u=o?t:e,l=o?e:t,h=i.buildMap(l,u);h.roots;var p,c=h.leafs,f=new jP(i._calcedColor);null==a||a.prepare(this.doc,this),this._nodeViews.prepare(c.length,(function(t,e,i){var h=c[e],_=h.point,d=h.parent,y=f;d&&(!d._color&&d.point.color?y=d._color=new jP(d.point.color):d._color&&(y=d._color)),t.node=h,t.setFill(y.brighten(h.index/i).toString()),n.options.reversed&&(h.x=l-h.x-h.width),r.options.reversed&&(h.y=u-h.y-h.height),o&&(h.y=h.y-u),t.render(s);var g=h.x+h.width/2,v=h.y+h.height/2;if(_.xPos=o?-h.y-h.height/2:g,_.yPos=o?l-h.x-h.width/2:v,a&&(p=a.get(_,0))){var m=p.getBBox();p.setVis(h.width>=m.height&&h.height>=m.height)&&(o?(g=-h.y-h.height/2-m.width/2,v=l-h.x-(h.width+m.height)/2):(g-=m.width/2,v-=m.height/2),p.setContrast(t.dom),p.layout("center").trans(g,v))}}))},e.prototype.$_renderGroups=function(t,e){},e}(RL),JN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype.layout=function(t,e,i,n){var r,o=this.point._len,s=o*n,a=.5,u=(o-s)/2;switch(t){case"none":r=[0,u-a*s,0,u+a*s];break;case"open":r=[0,u-.45*s,0-.15*s,u-.2*s,0,u-a*s,0+.15*s,u-.2*s,0,u-.45*s,0,u+a*s];break;default:var l=.3;r=[0,u-l*s,0-.1*s,u-l*s,0,u-a*s,0+.1*s,u-l*s,0,u-l*s,0,u+a*s]}for(var h=this.point._off*n,p=["M",r[0],r[1]+h],c=2;c<r.length;c+=2)p.push("L",r[c],r[c+1]+h);this.rotation=e,this.setPath(p)},e}(DL),QN=function(t){function e(e){var i=t.call(this,e,"rct-vector-series")||this;return i._arrows=new BE(i._pointContainer,JN),i}return Fx(e,t),e.prototype._getPointPool=function(){return this._arrows},e.prototype._prepareSeries=function(t,e){this.$_prepareArrows(e,this._visPoints)},e.prototype._renderSeries=function(t,e){var i=this.model,n=i.options.startAngle,r=i.options.arrowHead,o=i._xAxisObj,s=i._yAxisObj,a=this._inverted,u=a?t:e,l=a?e:t,h=this._getGrowRate(),p=a?0:e,c=o.options.reversed?-1:1,f=s.options.reversed;this._pointContainer.invert(a,e),this._arrows.forEach((function(t){var e=t.point;if(t.setVis(!e.isNull)){var i=o.getPos(l,e.xValue),_=p-s.getPos(u,e.yValue),d=n+e.angleValue*c;f&&(d=180-d),e.xPos=a?p+s.getPos(u,e.yValue):i,e.yPos=a?l-o.getPos(l,e.xValue):_,t.trans(i,_),t.layout(r,d,!1,h)}}))},e.prototype._runShowEffect=function(t){t&&wL.grow(this)},e.prototype._doViewRateChanged=function(t){this._renderSeries(this.width,this.height)},e.prototype.getPointsAt=function(t,e){return[]},e.prototype.$_prepareArrows=function(t,e){var i=this;this._arrows.prepare(e.length,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e}(RL),tM=function(t){function e(e){var i=t.call(this,e,"rct-waterfall-series")||this;return i._bars=new BE(i._pointContainer,FL),i.add(i._lineContainer=new LP(e,"rct-waterfall-series-lines")),i._lines=new BE(i._lineContainer,vC),i}return Fx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.low},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this._rd=+i.options.cornerRadius||0},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){var s=t.point;if(t.wPoint=r,t.hPoint=o,n+=o,t.layout(i,n,this._rd,this._rd),e>0){var a=this._lines.get(e-1),u=s._isSum?n-o:s.y>=0?n:n-o;a.setHLine(u,this._xPrev+this._wPrev/2,i-r/2)}this._xPrev=i,this._wPrev=r},e.prototype._layoutPoints=function(e,i){this._inverted?this._lineContainer.dom.style.transform="translate(0px, ".concat(i,"px) rotate(90deg) scale(-1, 1)"):this._lineContainer.dom.style.transform="",t.prototype._layoutPoints.call(this,e,i)},e.prototype.$_parepareBars=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o),t.setStyleOrClass(o._isSum?"rct-waterfall-point-sum":o.y<0?"rct-waterfall-point-negative":"")})),this._lines.prepare(i.length-1,(function(t,e){t.visible=!i[e].isNull&&!i[e+1].isNull}))},e}(zL);function eM(t,e){return new(lL[e._type()])(t)}function iM(t,e){return new(OL[e._viewType()])(t)}RL.register([EC,dN],[NC,_N],[pC,mN],[uC,yN],[RC,bN],[BC,xN],[IC,PN],[GC,kN],[YC,CN],[ZC,LN],[JC,MN],[QC,ON],[eE,DN],[nE,FN],[sE,jN],[kC,fN],[lE,zN],[pE,GN],[fE,WN],[gE,XN],[bE,qN],[VE,KN],[AE,QN],[EE,tM]),cL.register([ZA,sN],[TA,KL],[$A,tN],[sC,lN],[KA,aN],[BA,QL],[zA,eN]),hL.register([pA,qL],[lA,XL],[hA,UL]);var nM,rM=function(t){function e(e){var i=t.call(this,e,"rct-axis-grid")||this;return i._lines=new BE(i,vC),i}return Fx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){return{width:i,height:n}},e.prototype._doLayout=function(){var t,e=this.model,i=e.options,n=e.axis,r=this.width,o=this.height,s=n.isEmpty()?[]:e.getPoints(n,n._isHorz?r:o),a=this._lines.prepare(s.length,(function(t){t.internalClearStyleAndClass(),t.internalSetStyleOrClass(e._style),t.setClass("rct-axis-grid-line")})),u=a.count-1;a.forEach((function(t,e){t.setBoolData("first",0===e),t.setBoolData("last",s[e]===(n._isHorz?r:o))}));var l=null==i.firstVisible?e.visible:i.firstVisible,h=null==i.lastVisible?e.visible:i.lastVisible;n._isHorz?a.forEach((function(i,r){t=0===r?l:r===u?h:e.visible,i.setVis(t)&&i.setVLine(n.prev(s[r]),0,o)})):a.forEach((function(i,a){s[a],t=0===a?l:a===u?h:e.visible,i.setVis(t)&&i.setHLine(o-n.prev(s[a]),0,r)}))},e}(GE),oM=function(t){function e(e){var i=t.call(this,e,"rct-axis-break")||this;return i.add(i._mask=new OP(e)),i._mask.setStroke("none"),i.add(i._upLine=new OP(e)),i._upLine.setFill("none"),i.add(i._downLine=new OP(e)),i._downLine.setFill("none"),i}return Fx(e,t),e.prototype.setModel=function(t){this._model=t},e.prototype.layout=function(t,e,i){this._clip?this._clip.resize(t,e):this._clip=this.control.clipBounds(0,0,t,e),this.setClip(this._clip);var n=this._model._sect.len,r=new zC;if(i){var o=0,s=n/2,a=n;for(r.move(0,o);o<e;)o+=20,r.line(s,o),o+=20,r.line(0,o);for(this._downLine.setPath(r.end(!1)),o=0,r.clear().move(s,o);o<e;)o+=20,r.line(a,o),o+=20,r.line(s,o);for(this._upLine.setPath(r.end(!1)),o=0,r.clear().move(0,o);o<e;)o+=20,r.line(s,o),o+=20,r.line(0,o);for(r.line(s,o);o>=0;)o-=20,r.line(a,o),o-=20,r.line(s,o);this._mask.setPath(r.end())}else{var u=0,l=n/2,h=n;for(r.move(u,l);u<t;)u+=20,r.line(u,0),u+=20,r.line(u,l);for(this._upLine.setPath(r.end(!1)),u=0,r.clear().move(u,h);u<t;)u+=20,r.line(u,l),u+=20,r.line(u,h);for(this._downLine.setPath(r.end(!1)),u=0,r.clear().move(u,l);u<t;)u+=20,r.line(u,0),u+=20,r.line(u,l);for(r.line(u,h);u>=0;)u-=20,r.line(u,l),u-=20,r.line(u,h);this._mask.setPath(r.end())}},e}(EP),sM=function(t){function e(e){var i=t.call(this,e,"rct-axis-guide")||this;return i.add(i._labelView=new qE(e,"rct-axis-guide-label")),i}return Fx(e,t),e.prototype.vertical=function(){return this.model.axis._isHorz},e.prototype.prepare=function(t,e){this.model=e,this._labelView.setVis(!!e.label.options.text)&&(this._labelView.setModel(t,e.label,null,null),this._labelView.setStyles(e.label._style))},e.prototype.layout=function(t,e,i){this._labelView.visible&&(this.model.label.buildSvg(this._labelView._text,this._labelView._outline,t,e,null,null),this._labelView.layout("center")),i?this._doLayoutPolar(t,e,i):this._doLayout(t,e)},e}(EP),aM=function(t){function e(e,i){var n=t.call(this,e)||this;return n.insertFirst(n._line=new(i?aL:vC)(e,"rct-axis-guide-line")),n}return Fx(e,t),e.prototype.prepare=function(e,i){t.prototype.prepare.call(this,e,i),this._line.setStyles(i._style)},e.prototype._doLayout=function(t,e){var i,n,r=this.model,o=r.label,s=o.options,a=this._line,u=this._labelView.setVis(o.visible)&&this._labelView,l=u.getBBox(),h=uS(s.offsetX,0),p=uS(s.offsetY,0);if(this.vertical()){var c=r.axis.getPos(t,r.options.value);if(u.setVis(a.setVis(!isNaN(c)))&&(a.setVLine(c,0,e),u)){switch(s.align){case"center":i=c-l.width/2+h;break;case"right":i=c+h;break;default:i=c-l.width-h}switch(s.verticalAlign){case"bottom":n="inside"===s.position?e-l.height-p:e+p;break;case"middle":n=(e-l.height)/2-p;break;default:n="inside"===s.position?p:-1*(l.height+p)}}}else{c=e-r.axis.getPos(e,r.options.value);if(u.setVis(a.setVis(!isNaN(c)))&&(a.setHLine(c,0,t),u)){switch(s.align){case"center":i=(t-l.width)/2-h;break;case"right":i="inside"===s.position?t-l.width-h:t+h;break;default:i="inside"===s.position?h:-1*(l.width+h)}switch(s.verticalAlign){case"bottom":n=c+p;break;case"middle":n=c-l.height/2-p;break;default:n=c-l.height-p}}}u&&u.trans(i,n)},e.prototype._doLayoutPolar=function(t,e,i){var n=this.model,r=this._line,o=this._labelView.setVis(n.label.visible)&&this._labelView,s=n.axis.getStartAngle(),a=n.axis.getPos(i.rd,n.options.value);r.setArc(i.cx,i.cy,a,s,n.axis.getTotalAngle(),!1),r.setStyle($S,"none"),o&&o.trans(i.cx+a*eS(i.start),i.cy+a*iS(i.start))},e}(sM),uM=function(t){function e(e,i){var n=t.call(this,e)||this;return n.insertFirst(n._box=new(i?uL:wk)(e,"rct-axis-guide-range")),n}return Fx(e,t),e.prototype.prepare=function(e,i){t.prototype.prepare.call(this,e,i),this._box.setStyleOrClass(i._style)},e.prototype._doLayout=function(t,e){var i=this.model,n=i.options,r=i.label,o=r.options,s=this._box,a=oS(n.startValue,n.endValue),u=sS(n.startValue,n.endValue),l=this._labelView.setVis(r.visible)&&this._labelView,h=l.getBBox(),p=uS(o.offsetX,0),c=uS(o.offsetY,0);if(this.vertical()){var f=i.axis.getPos(t,a),_=i.axis.getPos(t,u);if(!isNaN(f)&&!isNaN(_)&&l.setVis(s.setVis(_!==f))){var d=void 0,y=void 0;switch(o.align){case"center":d=f+(_-f-h.width)/2+p;break;case"right":d=_-h.width-p;break;default:d=f+p}switch(o.verticalAlign){case"bottom":y="inside"===o.position?e-h.height-c:e+c;break;case"middle":y=(e-h.height)/2-c;break;default:y="inside"===o.position?c:-1*(h.height+c)}s.setBox(f,0,_,e),l&&l.trans(sS(0,oS(t,d)),y)}}else{var g=e-i.axis.getPos(e,a),v=e-i.axis.getPos(e,u);if(!isNaN(g)&&!isNaN(v)&&l.setVis(s.setVis(g!==v))){d=void 0,y=void 0;switch(o.align){case"center":d=(t-h.width)/2-p;break;case"right":d="inside"===o.position?t-h.width-p:t+p;break;default:d="inside"===o.position?p:-1*(h.width+p)}switch(o.verticalAlign){case"bottom":y=g-h.height-c;break;case"middle":y=v+(g-v-h.height)/2-c;break;default:y=v+c}l&&l.trans(d,y),s.setBox(0,v,t,g)}}},e.prototype._doLayoutPolar=function(t,e,i){var n=this.model,r=this._box,o=this._labelView.setVis(n.label.visible)&&this._labelView,s=n.axis.getStartAngle(),a=n.axis.getPos(i.rd,n.options.startValue),u=n.axis.getPos(i.rd,n.options.endValue);if(r.setSector({cx:i.cx,cy:i.cy,rx:u,ry:u,innerRadius:a/u,start:s,angle:PS,clockwise:!0}),o){var l=a+(u-a)/2;o.trans(i.cx+l*eS(i.start),i.cy+l*iS(i.start))}},e}(sM),lM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._views=new BE(e,OP),e}return Fx(e,t),e.prototype.prepare=function(){this._rows=[]},e.prototype.addAll=function(t,e){var i=this._rows;e.forEach((function(t){i.push.apply(i,zx([],$x(t.grid.rows.getRows()),!1))}))},e.prototype.layout=function(t,e,i){var n=this._rows;this._views.prepare(n.length),this._views.forEach((function(i,r){var o=n[r];if(o.axis._isHorz){var s=o.axis.getPos(t,o.from),a=o.axis.getPos(t,o.to);i.setPath(mk.rectangle(s,0,a-s,e))}else{var u=o.axis.getPos(e,o.from),l=o.axis.getPos(e,o.to);i.setPath(mk.rectangle(0,e-u,t,u-l))}i.setFill(o.color)}))},e}(LP),hM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._linePool=[],e._rangePool=[],e._views=[],e}return Fx(e,t),e.prototype.prepare=function(){for(var t=this._views;t.length;){var e=t.pop().remove();e instanceof uM?this._rangePool.push(e):this._linePool.push(e)}},e.prototype.setAll=function(t,e,i){var n=this;e.forEach((function(e){var r;e instanceof LV?r=n._rangePool.pop()||new uM(t,i):e instanceof EV&&(r=n._linePool.pop()||new aM(t,i)),n.add(r),r.prepare(t,e)}))},e.prototype.add=function(e){return this._views.push(e),t.prototype.add.call(this,e)},e}(LP),pM=function(t){function e(e){var i=t.call(this,e)||this;return i.ignorePointer(),i}return Fx(e,t),e.prototype.setModel=function(t){t!=this.model&&(this.model=t,this._bar=t.isBar(),this.setClass(this._bar?"rct-crosshair-bar":"rct-crosshair-line"))},e.prototype.layout=function(t,e,i,n,r){var o=this.model.axis,s=o._isHorz,a=new zC;if(this._bar){var u=o._isHorz?n:r,l=void 0;if(t?l=t.point.xValue:this.model.options.showAlways&&(l=o.options.reversed?o.xValueAt(s?n-e:i):o.xValueAt(s?e:r-i)),o instanceof Lk&&(l=Qx(l)),!isNaN(l)){var h=o.getPos(u,l),p=o.getUnitLen(u,l);s?a.rect(h-p/2,0,p,r):a.rect(0,r-h-p/2,n,p)}}else(t||this.model.options.showAlways)&&(s?a.vline(e,0,r):a.hline(i,0,n));this.setPath(a.end())},e}(OP),cM=function(t){function e(i){var n=t.call(this,i,"Reset Zoom",e.CLASS_NAME)||this;return n.setVis(!1),n}return Fx(e,t),e.CLASS_NAME="rct-reset-zoom",e}(rL),fM=function(t){function e(i,n){var r=t.call(this,i,e.BODY_CLASS)||this;return r._gridViews=new Map,r._baseViews=new Map,r._breakViews=[],r._seriesViews=[],r._seriesMap=new Map,r._annotationViews=[],r._annotationMap=new Map,r._gaugeViews=[],r._gaugeMap=new Map,r._owner=n,r.add(r._hitTester=new bk(i)),r._hitTester.setFill("transparent"),r.add(r._background=new bk(i,"rct-body-background")),r.add(r._image=new UE(i,!0,"rct-body-image")),r.add(r._gridRowContainer=new lM(i,"rct-axis-grid-rows")),r.add(r._gridContainer=new LP(i,"rct-axis-grids")),r.add(r._baseContainer=new LP(i,"rct-axis-bases")),r.add(r._guideContainer=new hM(i,"rct-axis-guides")),r.add(r._annotationContainer=new LP(i,"rct-annotations")),r.add(r._seriesContainer=new LP(i,"rct-series-container")),r.add(r._axisBreakContainer=new LP(i,"rct-axis-breaks")),r.add(r._labelContainer=new LP(i,"rct-label-container")),r.add(r._frontGuideContainer=new hM(i,"rct-front-axis-guides")),r.add(r._frontAnnotationContainer=new LP(i,"rct-front-annotations")),r.add(r._feedbackContainer=new LP(i,"rct-feedbacks")),r.add(r._zoomButton=new cM(i)),r._crosshairViews=new BE(r._feedbackContainer,pM),r}return Fx(e,t),e.prototype.getAnnotationAnchor=function(t){return this._gaugeMap.get(t)||this._annotationMap.get(t)},e.prototype.prepareRender=function(t,e){this._animatable=CP._animatable&&e.animatable(),this._prepareSeries(t,e,e._getSeries().getVisibleSeries()),this._prepareGauges(t,e,e._getGauges().getVisibles()),this._prepareAnnotations(t,e._body.getAnnotations())},e.prototype.prepareGuideContainers=function(){this._guideContainer.prepare(),this._frontGuideContainer.prepare()},e.prototype.pointerMoved=function(t,e){var i,n,r,o,s=this.width,a=this.height,u=this._inverted,l=this._seriesViews,h=l.length,p=t.x>=0&&t.x<s&&t.y>=0&&t.y<a;if(e instanceof SVGElement&&(e.classList.contains(RL.POINT_CLASS)||e.parentElement instanceof SVGElement&&e.parentElement.classList.contains(RL.POINT_CLASS)))for(var c=h-1;c>=0;c--)if(o=l[c].pointByDom(e)){r=l[c];break}var f=null==e?void 0:e.classList,_=(null==f?void 0:f.value)&&(f.contains("rct-contextmenu-item")||f.contains("rct-contextmenu-list")),d=p&&!this._zoomRequested&&!this.chart().isEmpty(!0)&&!_;if(this._crosshairViews.forEach((function(e){e.setVis(d)&&e.layout(o,t.x,t.y,s,a)})),o)this.$_setFocused(r,o,t);else if(h>0){var y,g,v=this.chart()._chartOptions.pointHovering.getHintDistance(null==r?void 0:r.model),m=!0;try{for(var b=jx(l),w=b.next();!w.done;w=b.next()){if(!(w.value.model instanceof PC)){m=!1;break}}}catch(t){i={error:t}}finally{try{w&&!w.done&&(n=b.return)&&n.call(b)}finally{if(i)throw i.error}}if(r=null,m)if(h>1){var x=[];l.forEach((function(e){y=uS(e.getHintDistance(),v),g=e.getNearest2(t.x,t.y,u),x.push({hint:y,sv:e,pv:g})}));var S=x.reduce((function(e,i){return u?aS(e.pv.pv.point.xPos-t.x)<aS(i.pv.pv.point.xPos-t.x)?e:i:aS(e.pv.pv.point.yPos-t.y)<aS(i.pv.pv.point.yPos-t.y)?e:i}));r=S.sv,g=S.pv,y=S.hint}else r=l[0],y=uS(r.getHintDistance(),v),g=r.getNearest2(t.x,t.y,u);else l.forEach((function(e){if(e.getHintDistance&&(y=uS(e.getHintDistance(),v))>0){var i=e.getNearest(t.x,t.y);(!g||i.dist<g.dist)&&(r=e,g=i)}}));p&&g&&r.canHover(g.dist,g.pv,y)?this.$_setFocused(r,g.pv,t):this.$_setFocused(null,null,t)}return p},e.prototype.hoverSeries=function(t){var e=this._seriesMap.get(t);this.$_hoverSeries(e)},e.prototype.$_setFocused=function(t,e,i){var n,r,o,s=this,a=this._focused,u=this._siblings,l=this._siblingSeries;if(t&&e)switch(this.chart()._chartOptions.pointHovering.getScope(t.model,e.point)){case"axis":o=t.model._xAxisObj.getSeries();case"group":o||(o=t.model._group.getVisibleSeries());var h=o.map((function(t){if(t instanceof Zk){for(var n=void 0,r=Number.MAX_SAFE_INTEGER,o=0;o<t.getPoints().count;o++){var s=t.getPoints().get(o),a=void 0;if(t instanceof IC){var u=(t._xAxisObj._vlen<t._yAxisObj._vlen?t._xAxisObj:t._yAxisObj)._vlen,l=t.getPixelMinMax(u),h=l.min,p=l.max,c=t.getRadius(s.zValue,h,p);a=Math.sqrt(Math.pow(s.xPos-i.x,2)+Math.pow(s.yPos-i.y,2))-c}else a=Math.sqrt(Math.pow(s.xPos-i.x,2)+Math.pow(s.yPos-i.y,2));a<r&&(r=a,n=s)}return n}return t.getPoints().pointAt(e.point.xValue)}));n=o.map((function(t){return s._owner.getSeriesView(t)})),r=[],h.forEach((function(t,e){r.push(n[e].getPointView(t))}));break;default:n=[t],r=[e]}var p=[];if(n&&n.forEach((function(t,e){p.push.apply(p,zx([],$x(t.getSiblings(r[e])),!1))})),p=p.length>1?p.sort((function(t,e){return t.hash-e.hash})):p.length>0?p:null,_S.equalArrays(u,p)||(n&&n.forEach((function(t,e){t.hoverPoints(t.getSiblings(r[e]))})),l&&l.forEach((function(t){(!n||n.indexOf(t)<0)&&t.hoverPoints(null)})),this._siblingSeries=n,this._siblings=p),e!==a){var c=this._focusedSeries;this._focused=e,t!==c&&(c&&this.$_focusSeries(c,!1),this._focusedSeries=t,t&&this.$_focusSeries(t,!0),this.chart()._chartOptions.options.seriesHovering&&this.$_hoverSeries(t))}!this._focused||this._focused===a&&this._owner.tooltipVisible()&&!this.model.chart._tooltip.isFollowPointer(t.model)?!this._focused&&this._owner.tooltipVisible()&&this._owner.hideTooltip():i.x>0&&i.x<this.width&&i.y>0&&i.y<this.height?this._owner.showTooltip(t.model,e,[],this,i):this._owner.hideTooltip()},e.prototype.$_focusSeries=function(t,e){e?t.model._group?t.front(this._seriesViews,this._seriesViews.filter((function(e){return e.model._group===t.model._group}))):t.front(this._seriesViews):t&&t.parent&&t.back(this._seriesViews)},e.prototype.$_hoverSeries=function(t){this._seriesViews.forEach((function(e){e.setBoolData(RL.DATA_UNHOVER,t&&e!==t),e._labelContainer.setBoolData(RL.DATA_UNHOVER,t&&e!==t)}))},e.prototype.seriesByDom=function(t){return this._seriesViews.find((function(e){return e.dom.contains(t)}))},e.prototype.findSeries=function(t){return this._seriesMap.get(t)},e.prototype.isConnected=function(t){return!!this._seriesViews.find((function(e){return e.model._xAxisObj==t||e.model._yAxisObj==t}))},e.prototype.getButton=function(t){if(this._zoomButton.contains(t))return this._zoomButton},e.prototype.buttonClicked=function(t){t===this._zoomButton&&(this.model.chart._getXAxes().resetZoom(),this.model.chart._getYAxes().resetZoom())},e.prototype.addFeedback=function(t){t&&this._feedbackContainer.add(t)},e.prototype.setZoom=function(t,e,i,n){var r=this.chart(),o=r.isInverted(),s=r.xAxis,a=o?this.height:this.width,u=s.valueAt(a,o?a-n:t),l=s.valueAt(a,o?a-e:i);s.zoom(u,l)&&(this._zoomRequested=!0)},e.prototype.animating=function(){var t,e,i=!1;try{for(var n=jx(this._seriesViews),r=n.next();!r.done;r=n.next()){var o=r.value;if(o.visible&&o._animating()){i=!0;break}}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return i},e.prototype.getTooltipPos=function(){return{x:this.tx,y:this.ty}},e.prototype.getFocusPointView=function(){return this._focused},e.prototype.hoverPoints=function(t,e){this._seriesViews.forEach((function(i){i.hoverPoints(i.getPointsAt(t,e))}))},e.prototype.getSeries=function(t){return this._seriesViews.find((function(e){return e.model===t}))},e.prototype.removeFocus=function(){this._seriesViews.forEach((function(t){t._hoverPts.forEach((function(e){e instanceof HL&&e.endHover(t,!1),e.setBoolData(RL.DATA_HOVER,!1)})),t._hoverPts=[],t._hoverAnis.forEach((function(t){t.stop()})),t._hoverAnis=[]})),this._owner.hideTooltip(),this._focused=null,this._siblings=null,this._siblingSeries=null},e.prototype.getBounds=function(){return this._hitTester.getBounds()},e.prototype._doMeasure=function(t,e,i,n,r){var o,s,a=this,u=e.chart,l=e.base();if(this._polar=u.isPolar(),this._zoomRequested=!1,this._seriesClip||(this._seriesClip=this.control.clipBounds(),this._seriesClip2=this.control.clipBounds(),this._bodyClip=this.control.clipBounds()),this._background.setStyleOrClass(l._style),l!==e&&this._background.internalSetStyleOrClass(e._style),this._background.setBoolData("polar",this._polar||u.isWidget()),this._seriesViews.forEach((function(e,o){e.measure(t,a._series[o],i,n,r)})),!this._polar){this.$_prepareGrids(t,u);try{for(var h=jx(this._gridViews.keys()),p=h.next();!p.done;p=h.next()){var c=p.value;this._gridViews.get(c).measure(t,c.grid,i,n,r)}}catch(t){o={error:t}}finally{try{p&&!p.done&&(s=h.return)&&s.call(h)}finally{if(o)throw o.error}}this.$_prepareAxisBreaks(t,u)}return this._gaugeViews.forEach((function(e,o){e.measure(t,a._gauges[o],i,n,r)})),this._annotationViews.forEach((function(e,o){e.measure(t,a._annotations[o],i,n,r)})),this._zoomButton.setVis(e.zoomButton.visible)&&this._zoomButton.layout(),{width:i,height:n}},e.prototype._clipSeries=function(t,e,i){var n=i?this._seriesClip:this._seriesClip2;t&&t.setClip(n),e&&e.setClip(n)},e.prototype._doLayout=function(){var t,e,i,n,r=this,o=this.width,s=this.height,a=this._image;if(this._inverted?(this._seriesClip.setBounds(0,-o,s,o),this._seriesClip2.setBounds(0,0,o,s)):(this._seriesClip.setBounds(0,0,o,s),this._seriesClip2.setBounds(0,0,o,s)),this._bodyClip.setBounds(0,0,o,s),this._hitTester.resize(o,s),this._background.resize(o,s),a.setVis(a.setImage(this.model.image.options.url,o,s))&&a.setStyleOrClass(this.model.image._style),this._seriesViews.forEach((function(t){t.model.needClip(!1)&&r._clipSeries(t.getClipContainer(),t.getClipContainer2(),t.clipInvertable()),t.resize(o,s),t.trans(0,0),t.layout()})),this._seriesViews.forEach((function(t){t.afterLayout()})),!this._polar){try{for(var u=jx(this._gridViews.values()),l=u.next();!l.done;l=u.next()){(c=l.value).resize(o,s),c.layout()}}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}try{for(var h=jx(this._baseViews.values()),p=h.next();!p.done;p=h.next()){var c,f=(c=p.value).tag;c.setStyleOrClass(f.baseLine._style),f._isHorz?c.setVLine(f.getPos(o,f.getBaseValue()),0,s):c.setHLine(f.getPos(s,f.getBaseValue()),0,o)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}this._breakViews.forEach((function(t){var e=t._model,i=e.axis;i._isHorz?i.options.reversed?t.trans(o-e._sect.pos,0):t.trans(e._sect.pos,0):i.options.reversed?t.trans(0,e._sect.pos):t.trans(0,s-e._sect.pos-e._sect.len),t.layout(o,s,e.axis._isHorz)}));var _=this.control;if(this._guideClip)this._guideClip.resize(_.width(),_.height());else{var d=_._padding;this._guideClip=_.clipBounds(-1*(d.left+this.tx),-1*(d.top+this.ty),_.width(),_.height())}[this._guideContainer,this._frontGuideContainer].forEach((function(t){t._views.forEach((function(t){return t.setVis(t.model.visible)&&t.layout(o,s)})),t.setClip(r._guideClip)})),this._gridRowContainer.layout(o,s,!1)}this.$_prepareCrosshairs(this.chart()),this._gaugeViews.forEach((function(t){t.resizeByMeasured(),t.layout().transp(t.getPosition(o,s))})),this._layoutAnnotations(this._inverted,this,o,s),this._zoomButton.visible&&this._zoomButton.trans(o-this._zoomButton.getBBox().width-10,10)},e.prototype.$_createGaugeView=function(t,e){return new(pL[e._type()])(t)},e.prototype.$_prepareGrids=function(t,e){var i,n,r,o,s=e._needAxes(),a=this._gridContainer,u=this._gridViews,l=this._baseContainer,h=this._baseViews;try{for(var p=jx(u.keys()),c=p.next();!c.done;c=p.next()){var f=c.value;s&&e.containsAxis(f)&&f.grid.visible||(u.get(f).remove(),u.delete(f))}}catch(t){i={error:t}}finally{try{c&&!c.done&&(n=p.return)&&n.call(p)}finally{if(i)throw i.error}}try{for(var _=jx(h.keys()),d=_.next();!d.done;d=_.next()){f=d.value;(!s||!e.containsAxis(f)||f instanceof vA&&!f.baseLine.visible||!f.isBaseVisible())&&(h.get(f).remove(),h.delete(f))}}catch(t){r={error:t}}finally{try{d&&!d.done&&(o=_.return)&&o.call(_)}finally{if(r)throw r.error}}s&&[e._getXAxes(),e._getYAxes()].forEach((function(e){return e.forEach((function(e){var i=e.grid;if(!u.has(e)&&(i.visible||i.options.firstVisible||i.options.lastVisible)){var n=new rM(t);u.set(e,n),a.add(n)}if(e instanceof vA&&e.baseLine.visible&&e.isBaseVisible()&&!h.has(e)){n=new vC(t,"rct-axis-baseline");h.set(e,n),l.add(n),n.tag=e}}))}))},e.prototype._prepareSeries=function(t,e,i){var n,r,o=this,s=this._inverted=e.isInverted(),a=this._seriesMap,u=this._seriesViews;try{for(var l=jx(a.keys()),h=l.next();!h.done;h=l.next()){var p=h.value;i.indexOf(p)<0&&(a.get(p).remove(),a.delete(p))}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}this._series=i,u.forEach((function(t){i.indexOf(t.model)<0&&(o.control.loaded?t.removeLater(200):t.remove(),t._labelContainer.remove())})),u.length=0,i.forEach((function(i){var n=a.get(i)||iM(t,i);n._setChartOptions(s,o._animatable,e.loadAnimatable()),n.parent||(o._seriesContainer.add(n),o._labelContainer.add(n._labelContainer)),a.set(i,n),u.push(n),n.prepareSeries(t,i)})),this._seriesContainer.sort(u),u.forEach((function(t){return o._labelContainer.dom.appendChild(t._labelContainer.dom)}))},e.prototype._prepareGauges=function(t,e,i){var n,r,o=this,s=this._seriesContainer,a=e.isInverted(),u=this._gaugeMap,l=this._gaugeViews;try{for(var h=jx(u.keys()),p=h.next();!p.done;p=h.next()){var c=p.value;i.indexOf(c)<0&&(u.get(c).remove(),u.delete(c))}}catch(t){n={error:t}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}this._gauges=i,l.forEach((function(t){return t.remove()})),l.length=0,i.forEach((function(i){var n=u.get(i)||o.$_createGaugeView(t,i);s.add(n),u.set(i,n),l.push(n),n.prepareGauge(t,i),n._setChartOptions(a,o._animatable,e.loadAnimatable())}))},e.prototype._prepareAnnotations=function(t,e){var i,n,r=this._annotationContainer,o=this._frontAnnotationContainer,s=this._annotationMap,a=this._annotationViews;try{for(var u=jx(s.keys()),l=u.next();!l.done;l=u.next()){var h=l.value;e.indexOf(h)<0&&(s.get(h).remove(),s.delete(h))}}catch(t){i={error:t}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}a.forEach((function(t){return t.remove()})),a.length=0,(this._annotations=e).forEach((function(e){var i=s.get(e)||eM(t,e);(e.options.front?o:r).add(i),s.set(e,i),a.push(i)}))},e.prototype.$_prepareAxisBreaks=function(t,e){var i=this._axisBreakContainer,n=this._breakViews,r=[];for([e._getXAxes(),e._getYAxes()].forEach((function(t){return t.forEach((function(t){t instanceof mA&&r.push.apply(r,zx([],$x(t.runBreaks()||[]),!1))}))}));n.length<r.length;){var o=new oM(t);i.add(o),n.push(o)}for(;n.length>r.length;)n.pop().remove();n.forEach((function(t,e){return t.setModel(r[e])}))},e.prototype.$_prepareCrosshairs=function(t){var e=this,i=this._crosshairViews,n=[];[t._getXAxes(),t._getYAxes()].forEach((function(t){return t.forEach((function(t){t.crosshair.visible&&n.push(t.crosshair)}))})),i.prepare(n.length,(function(t,i){t.setModel(n[i]),t.setClip(e._bodyClip)}))},e.prototype._layoutAnnotations=function(t,e,i,n){var r=this;this._annotationViews.length>0&&this._annotationViews.forEach((function(o){o._layoutView(t,e,0,0,i,n),o.setClip(r._polar||o.model.options.noClip?xS:r._bodyClip)}))},e.BODY_CLASS="rct-body",e}(GE),_M=function(t){function e(e){var i=t.call(this,e,dM.HANDLE_STYLE)||this;return i.add(i._back=new bk(e)),i.add(i._shape=new OP(e)),i._shape.setFill("white"),i}return Fx(e,t),e.prototype.layout=function(t,e,i){if(t!==this._w||e!==this._h||i!==this._vertical){var n=1.3*oS(t,e),r=new zC;this._back.rect={x:-n/2,y:-n/2,width:n,height:n,rx:n/2},n/=3,r.polygon(-n-1,0,-1,-n,-1,n),r.polygon(n+1,0,1,-n,1,n),this._shape.setPath(r.end()),this._w=this.width=t,this._h=this.height=e,this._vertical=i}},e}(EP),dM=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._back=new bk(i,e.BACK_STYLE)),n.add(n._container=new LP(i,null)),n.add(n._mask=new bk(i,e.MASK_STYLE)),n.add(n._trackView=new bk(i,e.TRACK_CLASS)),n.add(n._thumbView=new bk(i,e.THUMB_CLASS)),n.add(n._startHandle=new _M(i)),n.add(n._endHandle=new _M(i)),n._startHandle.setStyle("cursor","ew-resize"),n._endHandle.setStyle("cursor","ew-resize"),n._mask.setStyle("cursor","ew-resize"),n._mask.dom.addEventListener("dblclick",(function(){n.model.axis()._zoom&&n.model.axis().resetZoom()})),n}return Fx(e,t),e.isHandle=function(t){var i;return null===(i=t.parentElement)||void 0===i?void 0:i.classList.contains(e.HANDLE_STYLE)},e.isMask=function(t){return t.classList.contains(e.MASK_STYLE)},e.prototype.dblClick=function(t){var e=this.model.axis();return this._startHandle.contains(t)?(e.zoom(e._zoom.min,e._zoom.end),!0):this._endHandle.contains(t)?(e.zoom(e._zoom.start,e._zoom.max),!0):void(this.contains(t)&&e.resetZoom())},e.prototype.svgToElement=function(t,e){return this.control.svgToElement(this._back,t,e)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._naviChart;o.firstSeries;var s=i,a=n;return e._vertical?s=e.getSize():a=e.getSize(),e._naviChart.layoutAxes(s,a,!1,1),this.$_prepareSeriesView(t,o),this.$_prepareXAxisView(t,o),this.$_prepareYAxisView(t,o),e._naviChart.xAxis._calcPoints(s,101),e._naviChart.yAxis._calcPoints(a,1),{width:s,height:a}},e.prototype._doLayout=function(t){var e=this.model,i=e.axis()._zoom,n=this.width,r=this.height;if(this._back.resize(n,r),e._vertical);else{var o=i?(i.start-i.min)*n/i.total():0,s=i?(i.end-i.min)*n/i.total():n;this._mask.setBounds(o,0,s-o,r),this._trackView.setBounds(-2,r,n+4,6),this._trackView.setRadius(4),this._thumbView.setBounds(o,r,s-o,6),this._startHandle.layout(r/3,r/3,!1),this._startHandle.trans(o,r+3),this._endHandle.layout(r/3,r/3,!1),this._endHandle.trans(s,r+3)}this._seriesView&&(this._seriesView.measure(this.doc,e._naviChart.firstSeries,n,r,1),this._seriesView.resize(n,r),this._seriesView.layout(),this._seriesView.afterLayout()),this._xAxisView&&(this._xAxisView.measure(this.doc,e._naviChart.xAxis,n,r,1),this._xAxisView.resize(n,r),this._xAxisView.layout()),this._yAxisView.setVis(!1)},e.prototype.$_prepareSeriesView=function(t,e){var i=e.firstSeries,n=this._seriesView;n&&n.model!==i&&(n.remove(),n=this._seriesView=null),n||(this._container.add(n=this._seriesView=iM(t,i)),n._simpleMode=!0),n&&n.prepareSeries(t,i)},e.prototype.$_prepareXAxisView=function(t,e){var i=e.xAxis,n=this._xAxisView;n&&n.model!==i&&(n.remove(),n=this._xAxisView=null),n||(this._container.add(n=this._xAxisView=new nL(t)),n._simpleMode=!0)},e.prototype.$_prepareYAxisView=function(t,e){var i=e.yAxis,n=this._yAxisView;n&&n.model!==i&&(n.remove(),n=this._yAxisView=null),n||(this._container.add(n=this._yAxisView=new nL(t)),n._simpleMode=!0)},e.CLASS_NAME="rct-navigator",e.BACK_STYLE="rct-navigator-back",e.MASK_STYLE="rct-navigator-mask",e.HANDLE_STYLE="rct-navigator-handle",e.HANDLE_BACK_STYLE="rct-navigator-handle-back",e.TRACK_CLASS="rct-navigator-track",e.THUMB_CLASS="rct-navigator-thumb",e}(GE),yM=function(t){function e(e){var i=t.call(this)||this;return i.chart=e,i}return Fx(e,t),e}(IP),gM=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r._body=i,r._vertical=n,r}return Fx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this.chart.getBounds(),s=this._body.getBounds();return this._xStart=e-(s.x-o.x),this._yStart=i-(s.y-o.y),this._body.addFeedback(this._feedback=new bk(this.chart.doc(),"rct-zoom-tracker")),!0},e.prototype._doEnded=function(t,e){var i=this.chart.getBounds(),n=this._body.getBounds();this._vertical?(e-=n.y-i.y,this._body.setZoom(0,oS(this._yStart,e),this._body.width,sS(this._yStart,e))):(t-=n.x-i.x,this._body.setZoom(oS(this._xStart,t),0,sS(this._xStart,t),this._body.height)),this._feedback.remove()},e.prototype._doDrag=function(t,e,i,n,r){var o=this.chart.getBounds(),s=this._body.getBounds();return this._vertical?(r=Math.max(0,Math.min(s.height,r-(s.y-o.y))),this._feedback.setBounds(0,oS(this._yStart,r),this._body.width,aS(this._yStart-r))):(n=Math.max(0,Math.min(s.width,n-(s.x-o.x))),this._feedback.setBounds(oS(this._xStart,n),0,aS(this._xStart-n),this._body.height)),!0},e}(yM),vM=function(t){function e(e,i){var n=t.call(this,e)||this;return n._view=i,n}return Fx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this._view,s=o.model.axis._zoom;if(s){var a=o._thumbView.elementToSvg(0,0);return this._startOff=o._vertical?i-a.y:e-a.x,this._zoomLen=s.length(),!0}return!1},e.prototype._doDrag=function(t,e,i,n,r){var o,s=this._view;return s._vertical?(o=s.svgToElement(n,r).y-this._startOff,o=s.getZoomPos(s.height-o-s._thumbView.height),s.model.axis.zoom(o,o+this._zoomLen)):(o=s.svgToElement(n,r).x-this._startOff,o=s.getZoomPos(o),s.model.axis.zoom(o,o+this._zoomLen),console.log(o)),!0},e}(yM),mM=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r._view=i,(r._isStart=i._startHandle.contains(n))?r._handleView=i._startHandle:r._handleView=i._endHandle,r}return Fx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this._handleView,s=o.elementToSvg(0,0);return this._startOff=o._vertical?i-s.y-o.height/2:e-s.x-o.width/2,this._handleView.setBoolData("select",!0),!0},e.prototype._doEnded=function(t,e){this._handleView.setBoolData("select",!1)},e.prototype._doDrag=function(t,e,i,n,r){var o=this._view,s=o.model.axis();s._prepareZoom();var a=o.svgToElement(n,r).x-this._startOff,u=s._zoom.total(),l=s._zoom.min,h=o.model.options.minSize;return this._handleView._vertical?this._isStart:this._isStart?a>0?s.zoom(a*u/o.width+l,NaN,h):s.zoom(l,NaN,h):a>0&&a<o.width?s.zoom(NaN,a*u/o.width+l,h):a>=o.width&&s.zoom(NaN,s._zoom.max,h),!0},e}(yM),bM=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r._view=i,r._maskView=i._mask,r}return Fx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this._view.model.axis(),s=this._maskView.elementToSvg(0,0);return this._startOff=this._view.model._vertical?i-s.y:e-s.x,this._totalLen=o._zoom.total(),this._zoomLen=o._zoom.length(),!0},e.prototype._doEnded=function(t,e){},e.prototype._doDrag=function(t,e,i,n,r){var o=this._view,s=o.svgToElement(n,r).x-this._startOff;return o.model._vertical?this.$_moveZoom(s*this._totalLen/o.height):this.$_moveZoom(s*this._totalLen/o.width),!0},e.prototype.$_moveZoom=function(t){var e=this._view.model;t=sS(0,oS(t,this._totalLen-this._zoomLen))+e.axis()._zoom.min,e.axis().zoom(t,t+this._zoomLen)},e}(yM),wM=function(){function t(t){this._chart=t}return t.prototype.handleDown=function(t){if(t.isPrimary){var e=this._clickElement=t.target;if(e){var i=this.$_pointerToPoint(t);this._dragTracker&&this.$_stopDragTracker(t,e,i.x,i.y),this._prevX=this._clickX=i.x,this._prevY=this._clickY=i.y}}},t.prototype.handleUp=function(t){this.isDragging()&&this.$_stopDragTracker(t,t.target,this._prevX,this._prevY)},t.prototype.handleMove=function(t){var e=this._chart.chartView(),i=this.$_pointerToPoint(t),n=i.x,r=i.y;if(t.buttons>=1||0===t.buttons&&0===t.button){var o=this.isDragging(),s=this._clickElement;n<0||n>=e.control.dom().offsetWidth||r<0||r>=e.control.dom().offsetHeight||(o?this.$_doDrag(t,s,n,r):(!this._dragTracker&&(aS(this._clickX-n)>3||aS(this._clickY-r)>3)||this._dragTracker&&!o)&&this.$_startMove(t,s,n,r))}this._prevX=n,this._prevY=r,this.isDragging()?(e.pointerMoved(-1,-1,null),this._stopEvent(t)):e.getButton(t.target)||e.pointerMoved(t.pointX,t.pointY,t.target)},t.prototype.handleClick=function(t){var e,i,n,r=this._chart.chartView(),o=this._clickElement,s=r.getButton(o);if(s)!0!==s.click()&&r.buttonClicked(s);else if(i=r.legendByDom(o))if(i.source instanceof Sk){var a=i.source,u=this._chart.model.seriesByPoint(a);if(u){u.setPointVisible(a,!a.visible);var l=this._chart.chartView().findSeriesView(u);l instanceof YL&&l.togglePointVisible(a)}}else i.source.visible=!i.source.visible,r.bodyView().hoverSeries(i.source.visible?i.source:null);else(n=r.seriesByDom(o))?n.clicked(o):(e=r.creditByDom(o))&&e.clicked(o)},t.prototype.handleDblClick=function(t){var e=this._chart.chartView()._navigatorView,i=this._clickElement;!e.visible||e.dblClick(i)},t.prototype.handleWheel=function(t){},Object.defineProperty(t.prototype,"dragTracker",{get:function(){return this._dragTracker},enumerable:!1,configurable:!0}),t.prototype.setDragTracker=function(t){t!=this._dragTracker&&(this._dragTracker&&this._dragTracker.cancel(),this._dragTracker=t)},t.prototype.isDragging=function(){return this._dragTracker&&this._dragTracker.dragging},t.prototype._stopEvent=function(t){t.cancelable&&t.preventDefault(),t.stopImmediatePropagation()},t.prototype.$_pointerToPoint=function(t){var e=this._chart.svg().getBoundingClientRect();return{x:t.clientX-e.left,y:t.clientY-e.top}},t.prototype._getDragTracker=function(t,e,i){var n=this._chart.chartView(),r=n.bodyOf(t);return eL.isThumb(t)?new vM(this._chart,n.getScrollView(t)):dM.isHandle(t)?new mM(this._chart,n._navigatorView,t):dM.isMask(t)&&r&&r.model.isZoomed()?new bM(this._chart,n._navigatorView,t):r&&r.model.canZoom()&&r.contains(t)?new gM(this._chart,r,n._inverted):void 0},t.prototype.$_doDrag=function(t,e,i,n){if(!this.$_drag(e,this._prevX,this._prevY,i,n))return this.$_stopDragTracker(t,e,i,n,!0),this._stopEvent(t),!0},t.prototype.$_startMove=function(t,e,i,n){this.$_startDrag(e,this._prevX,this._prevY,i,n)&&(i!==this._prevX||n!==this._prevY?this.$_doDrag(t,e,i,n):this._stopEvent(t),this._chart.setPointerCapture(t))},t.prototype.$_startDrag=function(t,e,i,n,r){if(this._dragTracker||this.setDragTracker(this._getDragTracker(t,n-e,r-i)),this._dragTracker){if(this._dragTracker.start(t,e,i,n,r))return!0;this._dragTracker=null}return!1},t.prototype.$_drag=function(t,e,i,n,r){return this._dragTracker.drag(t,e,i,n,r)},t.prototype.$_stopDragTracker=function(t,e,i,n,r){void 0===r&&(r=!1),this.isDragging()&&(this._chart.releasePointerCapture(t),r?this._dragTracker.cancel():this._dragTracker.drop(null,i,n),this._dragTracker=null)},t}(),xM=function(t){function e(i){var n=t.call(this,i,e.TITLE_CLASS)||this;return n._itemViews=[],n._separators=[],n.itemGap=8,n.setVis(!1),n}return Fx(e,t),e.prototype.setHistory=function(t,e){if(this.setVis(e&&e.length>0)){for(var i=this._itemViews,n=this._separators;i.length<e.length;){(r=new $P(t,"rct-history-item")).anchor=RP.START,i.push(r)}for(;i.length>e.length;)i.pop().remove();for(;n.length<e.length-1;){var r;(r=new $P(t)).anchor=RP.START,r.text=">",n.push(r)}for(;n.length>e.length-1;)n.pop().remove();this.$_layout(e)}},e.prototype.$_layout=function(t){for(var e=this._itemViews,i=this._separators,n=this.itemGap,r=t.length,o=0,s=0;s<r;s++)e[s].text=t[s].name,e[s].transX(o),s<r-1&&(o+=e[s].width+n,i[s].transX(o),o+=i[s].width+n)},e.TITLE_CLASS="rct-history",e}(LP),SM=function(t){function e(e){var i=t.call(this,e,"rct-legend-item")||this;return i.add(i._back=new bk(e)),i._back.setFill("transparent"),i._back.setStroke("none"),i.add(i._label=new $P(e,"rct-legend-item-label")),i._label.anchor=RP.START,i}return Fx(e,t),e.prototype.setMarker=function(t){t!==this._marker&&(this._marker&&this._marker.remove(),this.insertFirst(this._marker=t))},e.prototype._doMeasure=function(t,e,i,n,r){this._label.setBoolData("hidden",!e.source.visible),this._marker.setBoolData("hidden",!e.source.visible),this._label.text=e.text()||"…";var o=this._rMarker=this._marker.setVis(e.legend.options.markerVisible)?this._marker.getBBox():FE,s=jE(this._label.getBBox());return this._gap=uS(e.legend.options.markerGap,0),{width:o.width+this._gap+s.width,height:sS(o.height,s.height)}},e.prototype._doLayout=function(t){var e=this._rMarker,i=uS(t,e.width);this._back.setBounds(0,0,this.width,this.height),this._marker.visible&&this._marker.trans((i-e.width)/2,(this.height-e.height)/2),this._label.trans(i+this._gap,(this.height-this._label.getBBox().height)/2)},e}(GE),PM=function(t){function e(i){var n=t.call(this,i,e.LEGEND_CLASS,"rct-legend-background")||this;return n._itemViews=new BE(n,SM),n}return Fx(e,t),e.prototype.legendByDom=function(t){var e=this._itemViews.elementOf(t);return e&&e.model},e.prototype.legendOfSeries=function(t){return this._itemViews.find((function(e){return e.model.source===t}))},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e.options,s=e.items(),a=this._vertical="vertical"===e.getLayout();return this._ipr=uS(o.itemsPerLine,Number.MAX_SAFE_INTEGER),this._gap="body"!==e._location?uS(o.gap,0):0,a?n=e.getMaxHeight(n):i=e.getMaxWidth(i),this.$_prepareItems(t,s),this.$_measure(t,e,a,this._ipr,i,n)},e.prototype._doLayout=function(){var t,e=this,i=this.model.options,n=this._rowViews,r=i.useTextColor,o=this._sizes,s=i.itemsAlign,a=i.lineGap||0,u=i.itemGap||0,l=this._margins,h=this._paddings,p=this._vertical,c=l.left+h.left,f=l.top+h.top,_=c,d=f;this._itemViews.forEach((function(t){var e=t.model.source,i=e.legendColor();t._marker.setColor(i),r&&e.visible?t._label.setFill(i):t._label.setFill("")})),n.forEach((function(i,n){p?(i.forEach((function(t){t.mw=o[n],t.resizeByMeasured().layout(e._wMarkers[n])})),d=f,"center"!==s&&"end"!==s||(t=i.map((function(t){return t.height})).reduce((function(t,e){return t+e}))+u*(i.length-1)+l.top+l.bottom+h.top+h.bottom,d+="center"===s?(e.height-t)/2:e.height-t),i.forEach((function(t){t.trans(_,d),d+=t.height+u})),_+=o[n]+a):(i.forEach((function(t){t.resizeByMeasured().layout(NaN)})),_=c,"center"!==s&&"end"!==s||(t=i.map((function(t){return t.width})).reduce((function(t,e){return t+e}))+u*(i.length-1)+l.left+l.right+h.left+h.right,_+="center"===s?(e.width-t)/2:e.width-t),i.forEach((function(t){t.trans(_,d),_+=t.width+u})),d+=o[n]+a)}))},e.prototype.$_prepareItems=function(t,e){this._itemViews.prepare(e.length)},e.prototype.$_measure=function(t,e,i,n,r,o){var s,a,u,l,h=this,p=e.options,c=e.items(),f=this._itemViews,_=p.itemGap||0,d=p.lineGap||0,y=p.markerSize,g=f.count,v=this._rowViews=[],m=this._sizes=[];f.forEach((function(e,i){e.setMarker(c[i].source.legendMarker(t,y)),e.measure(t,c[i],r,o,1)}));var b=0,w=0;if(i){for(;b<g;)l=f.get(b),w%n==0?(v.push(u=[l]),a=l.mh,w++,b++):(a+=_+l.mh)<=o?(u.push(l),w++,b++):w=0;this._wMarkers=[],s=a=0,v.forEach((function(t,e){var i=0,n=0,r=0;t.forEach((function(t){n+=t.mh,i=sS(i,t.mw),r=sS(r,t._rMarker.width),t._col=e})),n+=_*(t.length-1),a=sS(a,n),s+=i,m.push(i),h._wMarkers.push(r)})),s+=d*(v.length-1)}else{for(;b<g;)l=f.get(b),w%n==0?(v.push(u=[l]),s=l.mw,w++,b++):(s+=_+l.mw)<=r?(u.push(l),w++,b++):w=0;s=a=0,v.forEach((function(t){var e=0,i=0;t.forEach((function(t){e+=t.mw,i=sS(i,t.mh)})),e+=_*(t.length-1),s=sS(s,e),a+=i,m.push(i)})),a+=d*(v.length-1)}return{width:s,height:a}},e.LEGEND_CLASS="rct-legend",e}(WE),VM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.views=[],e._gap=0,e}return Fx(e,t),e.prototype.isEmpty=function(){return 0===this.views.length},e.prototype.prepare=function(t,e,i,n,r){var o=this.views,s=[];for(this.isX=e,i&&i._axes.forEach((function(t){s.push(t)}));o.length<s.length;){var a=new nL(t);this.add(a),o.push(a)}for(;o.length>s.length;)o.pop().remove();if(o.forEach((function(e,i){var r=s[i];r._runPos,e.model=s[i],n.forEach((function(i){i.forEach((function(i){i.isConnected(r)&&e.prepareGuides(t,i.row,i.col,i._guideContainer,i._frontGuideContainer)}))}))})),this.axes=s,this.setVis(o.length>0)){var u=o[0].model;this._gap=u.chart.getAxesGap()}},e.prototype.checkHeights=function(t,e,i){return this.views.length>0?this.$_checkHeights(this.views,t,e,i):0},e.prototype.$_checkHeights=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkHeight(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.checkWidths=function(t,e,i){return this.views.length>0?this.$_checkWidths(this.views,t,e,i):0},e.prototype.$_checkWidths=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkWidth(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.getScrollView=function(t){var e,i,n;try{for(var r=jx(this.views),o=r.next();!o.done;o=r.next()){var s=o.value;if(null===(n=s._scrollView)||void 0===n?void 0:n.contains(t))return s._scrollView}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.setMargins=function(t,e,i,n){this.views.forEach((function(r){return r.setMargins(t,e,i,n)}))},e.prototype._setInverted=function(e){t.prototype._setInverted.call(this,e),this.isHorz=e&&!this.isX||!e&&this.isX},e.prototype._doMeasure=function(t,e,i,n,r){var o=this.axes;if(this.isHorz){var s=0;return this.views.forEach((function(e,a){s+=e.measure(t,o[a],i,n,r).height})),{width:i,height:s}}var a=0;return this.views.forEach((function(e,s){a+=e.measure(t,o[s],i,n,r).width})),{width:a,height:n}},e.prototype._doLayout=function(t){var e=this;this.isHorz?this.views.forEach((function(t){t.resize(e.width,t.mh),t.layout()})):this.views.forEach((function(t){t.resize(t.mw,e.height),t.transX(e.width-t.mw),t.layout()}))},e}(YE),kM=function(t){function e(e,i){var n=t.call(this,e,"rct-axis-container")||this;return n.isX=i,n.sections=[],n}return Fx(e,t),e.prototype.prepare=function(t,e,i,n){for(var r=this,o=this.isX?i.getRow(n):i.getColumn(n);this.sections.length<o.length;){var s=new VM(t);this.add(s),this.sections.push(s)}for(;this.sections.length>o.length;)this.sections.pop().remove();this.sections.forEach((function(s,a){r.isX?(s.row=n,s.col=a):(s.col=n,s.row=a),s.prepare(t,r.isX,o[a],e,i)}))},e.prototype.checkWidths=function(t,e,i){return this.sections.length>0?this.sections.reduce((function(n,r){return n+r.checkWidths(t,e,i)}),0):0},e.prototype.checkHeights=function(t,e,i){return this.sections.length>0?this.sections.reduce((function(n,r){return n+r.checkHeights(t,e,i)}),0):0},e.prototype._setInverted=function(e){t.prototype._setInverted.call(this,e),this._isHorz=e&&!this.isX||!e&&this.isX},e.prototype._doMeasure=function(t,e,i,n,r){var o=0,s=0;return this._isHorz?this.sections.forEach((function(o){s=sS(s,o.measure(t,e,i,n,r).height)})):this.sections.forEach((function(s){o=sS(o,s.measure(t,e,i,n,r).width)})),{width:o,height:s}},e.prototype._doLayout=function(t){var e=this;this._isHorz?this.height>0&&this.sections.forEach((function(i,n){i.resize(t[2*(n+1)]-t[2*(n+1)-1],e.height),i.trans(t[2*n+1]-t[1],0),i.layout()})):this.width>0&&this.sections.forEach((function(i,n){i.resize(e.width,t[2*(n+1)]-t[2*(n+1)-1]),i.trans(0,e.height-(t[2*(n+1)]-t[1])),i.layout()}))},e}(YE),AM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.row=0,e.col=0,e}return Fx(e,t),e.prototype.prepareRender=function(t,e){var i=this.row,n=this.col,r=e._split.getPane(i,n).body,o=e._getSeries().getPaneSeries(i,n),s=e._getGauges().getPaneVisibles(i,n);this._animatable=CP._animatable&&e.animatable(),this._prepareSeries(t,e,o),this._prepareGauges(t,e,s),this._prepareAnnotations(t,r.getAnnotations())},e.prototype.getTooltipPos=function(){return{x:this.parent.parent.tx+this.tx,y:this.parent.parent.ty+this.ty}},e}(fM),CM=function(t){function e(i,n){var r=t.call(this,i,e.STYLE_NAME)||this;return r._bodies=[],r._xContainers=[],r._yContainers=[],r._owner=n,r}return Fx(e,t),Object.defineProperty(e.prototype,"bodies",{get:function(){return this._bodies},enumerable:!1,configurable:!0}),e.prototype.bodyViewOf=function(t){return this._bodies.find((function(e){return e.contains(t)}))},e.prototype.prepare=function(t,e){e.chart,this.$_init(t),this._model=e,this.$_prepareBodies(t,e)},e.prototype.measure=function(t,e,i,n,r,o,s){var a=e.chart,u=this._inverted=e.chart.isInverted(),l=r,h=o;this.$_prepareAxes(t,i,!0),this.$_prepareAxes(t,n,!1),e.layoutAxes(r,o,u,s),u?(r-=this._xContainers.reduce((function(e,i){return e+i.checkWidths(t,r,o)}),0),o-=this._yContainers.reduce((function(e,i){return e+i.checkHeights(t,r,o)}),0)):(o-=this._xContainers.reduce((function(e,i){return e+i.checkHeights(t,r,o)}),0),r-=this._yContainers.reduce((function(e,i){return e+i.checkWidths(t,r,o)}),0)),e.layoutAxes(r,o,u,s),this._xContainers.forEach((function(e){return e.measure(t,a,r,o,s)})),this._yContainers.forEach((function(e){return e.measure(t,a,r,o,s)})),r=l,o=h,u?(r-=this._xContainers.reduce((function(t,e){return t+e.mw}),0),o-=this._yContainers.reduce((function(t,e){return t+e.mh}),0)):(o-=this._xContainers.reduce((function(t,e){return t+e.mh}),0),r-=this._yContainers.reduce((function(t,e){return t+e.mw}),0)),e.layoutAxes(r,o,u,s),this._xContainers.forEach((function(e){return e.measure(t,a,r,o,s)})),this._yContainers.forEach((function(e){return e.measure(t,a,r,o,s)}));var p=e.getXLens(u?o:r),c=e.getYLens(u?r:o);e.calcAxesPoints(p,c)},e.prototype.layout=function(){var t=this._model,e=this.width,i=this.height;this._back.resize(e,i),this.$_calcExtents(t,e,i),this.$_layoutAxes(t,!0,e,i),this.$_layoutAxes(t,!1,e,i),this.$_layoutBodies(t,e,i)},e.prototype.seriesByDom=function(t){var e,i;try{for(var n=jx(this._bodies),r=n.next();!r.done;r=n.next()){var o=r.value.seriesByDom(t);if(o)return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.getSeries=function(t){var e,i;try{for(var n=jx(this.bodies),r=n.next();!r.done;r=n.next()){var o=r.value.findSeries(t);if(o)return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.$_init=function(t){this._back||(this.add(this._back=new bk(t)),this._back.setStyles({fill:"none"}),this.add(this._bodyContainer=new LP(t,xS)),this.add(this._axisContainer=new LP(t,xS)))},e.prototype.$_prepareBodies=function(t,e){for(var i=e.chart,n=e.paneCount(),r=this._bodies,o=this._bodyMap=[];r.length<n;){var s=new AM(t,this._owner);this._bodyContainer.add(s),r.push(s)}for(;r.length>n;)r.pop().remove();for(var a=0;a<e.rowCount();a++){for(var u=[],l=0;l<e.colCount();l++){var h=r[a*e.colCount()+l];u.push(h),h.row=a,h.col=l}o.push(u)}r.forEach((function(e){e.prepareRender(t,i),e.prepareGuideContainers(),e._gridRowContainer.prepare()}))},e.prototype.$_prepareAxes=function(t,e,i){for(var n=this,r=i?this._xContainers:this._yContainers,o=i?e.rows():e.cols();r.length<o;){var s=new kM(t,i);this._axisContainer.add(s),r.push(s)}for(;r.length>o;)r.pop().remove();r.forEach((function(i,r){i.prepare(t,n._bodyMap,e,r)}))},e.prototype.$_calc=function(t,e,i,n){var r=new Array(2*(e+1)),o=i-t.reduce((function(t,e){return t+e[n]}),0),s=new Array(e),a=0,u=0;for(u=0;u<e;u++)s[u]=o/e;for(u=0;u<e;u++)r[2*u]=a,r[2*u+1]=a+=t[u][n],a+=s[u];return r[2*u]=a,r[2*u+1]=a+t[u][n],r},e.prototype.$_calcExtents=function(t,e,i){this._inverted?(this._rowPoints=this.$_calc(this._xContainers,t.rowCount(),e,"mw"),this._colPoints=this.$_calc(this._yContainers,t.colCount(),i,"mh")):(this._rowPoints=this.$_calc(this._xContainers,t.rowCount(),i,"mh"),this._colPoints=this.$_calc(this._yContainers,t.colCount(),e,"mw"))},e.prototype.$_layoutAxes=function(t,e,i,n){var r=this.control._padding,o=this._rowPoints,s=this._colPoints,a=e?this._xContainers:this._yContainers;if(this._inverted)if(e){var u=s[1],l=s[s.length-2]-u;a.forEach((function(t,e){t.resize(t.mw,l),t.trans(o[2*e],n-s[s.length-2]),t.layout(s)}))}else{var h=o[1],p=o[o.length-2]-h;a.forEach((function(t,e){for(var i=t.sections,a=0,u=i.length;a<u;a++){var l=i[a],c=0===a?r.left:0,f=a===u-1?r.right:0,_=0,d=0;u>1&&(_=o[2*a+1]-o[2*a],d=o[2*(a+1)+1]-o[2*(a+1)],0===a?i[a+1].isEmpty()?d=o[2*(a+1)]-o[2*(a+1)-1]:d/=2:a===u-1?i[a-1].isEmpty()?_=o[2*(a-1)]-o[2*(a-1)-1]:_/=2:(i[a-1].isEmpty()?_=o[2*(a-1)]-o[2*(a-1)-1]:_/=2,i[a+1].isEmpty()?d=o[2*(a+1)]-o[2*(a+1)-1]:d/=2)),l.setMargins(c,_,d,f)}t.resize(p,t.mh),t.trans(h,n-s[2*e+1]),t.layout(o)}))}else if(e){var c=s[1];i=s[s.length-2]-c,a.forEach((function(t,e){for(var u=t.sections,l=0,h=u.length;l<h;l++){var p=u[l],f=0===e?r.left:0,_=e===a.length-1?r.right:0,d=0,y=0;h>1&&(d=s[2*l+1]-s[2*l],y=s[2*(l+1)+1]-s[2*(l+1)],0===l?u[l+1].isEmpty()?y=s[2*(l+1)]-s[2*(l+1)-1]:y/=2:l===h-1?u[l-1].isEmpty()?d=s[2*(l-1)]-s[2*(l-1)-1]:d/=2:(u[l-1].isEmpty()?d=s[2*(l-1)]-s[2*(l-1)-1]:d/=2,u[l+1].isEmpty()?y=s[2*(l+1)]-o[2*(l+1)-1]:y/=2)),p.setMargins(f,d,y,_)}t.resize(i,t.mh),t.trans(c,n-o[2*e+1]),t.layout(s)}))}else{var f=o[o.length-2],_=f-o[1];a.forEach((function(t,e){t.resize(t.mw,_),t.trans(s[2*e],n-f),t.layout(o)}))}},e.prototype.$_layoutBodies=function(t,e,i){t.chart._body;var n=t.rowCount(),r=t.colCount(),o=this._rowPoints,s=this._colPoints,a=this._bodies;if(this._inverted)for(var u=0;u<n;u++)for(var l=o[2*(u+1)-1],h=o[2*(u+1)],p=0;p<r;p++){var c=a[u*r+p],f=s[2*p+1],_=s[2*(p+1)];c.measure(this.doc,t.getPane(u,p).body,h-l,_-f,1),c.resize(h-l,_-f),c.trans(l,this.height-_),c.layout()}else for(u=0;u<n;u++)for(f=o[2*(u+1)-1],_=o[2*(u+1)],p=0;p<r;p++){c=a[u*r+p],l=s[2*(p+1)-1],h=s[2*(p+1)];c.measure(this.doc,t.getPane(u,p).body,h-l,_-f,1),c.resize(h-l,_-f),c.trans(l,i-_),c.layout()}},e.STYLE_NAME="rct-panes",e}(LP),EM=function(t){function e(e){var i=t.call(this,e,"rct-polar-axis-tick-mark")||this;return i.add(i._lineView=new oL(e)),i}return Fx(e,t),e.prototype.layout=function(){},e}(EP),LM=function(t){function e(e,i,n,r){var o=t.call(this,e,i)||this;return o.add(o._markContainer=new LP(e,"rct-polar-axis-markers")),o._markViews=new BE(o._markContainer,EM),o.add(o._gridContainer=new EP(e,"rct-polar-axis-grids")),o._labelViews=new BE(o._labelContainer=n,QE,r?"rct-polar-xaxis-label":"rct-polar-yaxis-label"),o}return Fx(e,t),e.prototype.prepare=function(t,e,i,n){this._model=e,this._circular=i,this._markLen=e.tick.options.length,this.$_prepareTickMarks(t,e),this.$_prepareLabels(t,e),this._doPrepare(e,e._ticks,i,n)},e.prototype.layout=function(t,e,i,n){var r=this._model._ticks;return this._doLayout(this._model,e,i,n,r,t),this},e.prototype.$_prepareTickMarks=function(t,e){this._markViews.prepare(e._ticks.length)},e.prototype._prepareLabel=function(t,e,i,n){var r=i.getLabelText(e,n),o=e.label;(t.value=e.value,t.internalClearStyleAndClass(),t.internalSetStyleOrClass(i._style),t.internalSetStyleOrClass(i.getLabelStyle(e,n)),null!=r)?o&&r.match(iL)?t.setLabel(i,e,r.replace(iL,o),1e3,1e3):(i.prepareRich(r),i._paramTick=e,i.buildSvg(t._text,t._outline,NaN,NaN,i,i._domain)):t.setLabel(i,e,o,1e3,1e3)},e.prototype.$_prepareLabels=function(t,e){var i=this,n=e.label;if(this._labelContainer.setVis(n.visible)){var r=e._ticks;this._labelContainer.setStyleOrClass(n._style),this._labelViews.prepare(r.length,(function(t,e,o){t.setVis(!0),i._prepareLabel(t,r[e],n,o)}))}},e.prototype.prepareGuides=function(t,e,i){var n=this._model.guides.filter((function(t){return!t.options.front}));e.setAll(t,n,!0),n=this._model.guides.filter((function(t){return t.options.front})),i.setAll(t,n,!0)},e}(EP),NM=function(t){function e(i,n,r){var o=t.call(this,i,"rct-polar-xaxis",r,!0)||this;return o._gridLines=new BE(o._gridContainer,vC,e.GRID_CLASS),n.insertFirst(o._startView=new vC(i,e.SECTOR_LINE_CLASS)),n.insertFirst(o._endView=new vC(i,e.SECTOR_LINE_CLASS)),n.insertFirst(o._lineView=new aL(i,e.LINE_CLASS)),o}return Fx(e,t),e.prototype._doPrepare=function(t,e,i){var n=t.line,r=t.sectorLine,o=this._lineView;this._gridContainer.setVis(t.grid.visible)&&this._gridLines.prepare(e.length),o.setVis(n.visible)&&(o.setStyleOrClass(n._style),o.setFill("none")),this._startView.setVis(i&&t.isArced()&&r.visible)?(this._startView.setStyleOrClass(r._style),this._endView.setVis(!0),this._endView.setStyleOrClass(r._style)):this._endView.setVis(!1)},e.prototype._doLayout=function(t,e,i,n,r,o){var s=t.getStartAngle(),a=t.getTotalAngle();if(r.forEach((function(t){return t.pos=t.pos/n*a/PS})),this._gridContainer.visible&&this._gridLines.forEach((function(t,o){var a=r[o].pos,u=e+eS(s+a)*n,l=i+iS(s+a)*n;t.setLine(e,i,u,l)})),this._labelContainer.visible){var u=this._labelViews.count,l=Math.ceil(9/(360/u)),h=n+t.tick.options.length;this._labelViews.forEach((function(t,n){if(t.setVis(n%l==0)){var o=r[n],a=t.getBBox(),u=s+o.pos,p=e+eS(u)*(h+a.width/2)-a.width/2,c=i+iS(u)*(h+a.height/2)-a.height/2;t.layout("center").trans(p,c)}})),u>2&&aS(r[u-1].pos-r[u-2].pos)<PS/24&&this._labelViews.get(u-1).setVis(!1)}if(this._lineView.visible)if(this._circular)this._lineView.setArc(e,i,n,s,t.getTotalAngle(),!0);else{var p=[];r.map((function(t){var r=t.pos;p.push(e+eS(s+r)*n,i+iS(s+r)*n)})),this._lineView.setPolyline(p)}this._startView.visible&&(this._startView.setLine(e,i,e+eS(s)*n,i+iS(s)*n),this._endView.setLine(e,i,e+eS(s+a)*n,i+iS(s+a)*n))},e.LINE_CLASS="rct-polar-xaxis-line",e.SECTOR_LINE_CLASS="rct-polar-xaxis-sector-line",e.GRID_CLASS="rct-polar-xaxis-grid-line",e}(LM),MM=function(t){function e(i,n,r){var o=t.call(this,i,"rct-polar-yaxis",r,!1)||this;return o._gridLines=new BE(o._gridContainer,aL,e.GRID_LINE_STYLE),n.add(o._lineView=new vC(i,"rct-polar-yaxis-line")),o}return Fx(e,t),e.prototype._doPrepare=function(t,e,i,n){var r=t.line;this._gridContainer.setVis(!1!==t.grid.visible)&&this._gridLines.prepare(e.length,null),(this._lineView.visible=r.visible)&&this._lineView.setStyleOrClass(r._style)},e.prototype._doLayout=function(t,e,i,n,r,o){var s=o.getStartAngle(),a=o.getTotalAngle();if(this._gridContainer.visible){var u=this._circular;this._gridLines.forEach((function(n,l){var h=r[l].pos;if(n.setArc(e,i,h,s,a,!0),u)n.setFill("none");else if(n instanceof mC){var p=t.getStartAngle(),c=[];o._ticks.forEach((function(t){var n=t.pos;c.push(e+eS(p+n)*h,i+iS(p+n)*h)})),n.setPoints.apply(n,zx([],$x(c),!1))}}))}if(this._labelContainer.visible)if(o.isArced()){var l=o.getStartAngle();this._labelViews.forEach((function(t,n){var o=e+eS(l)*r[n].pos-t.getBBox().width/2,s=i+iS(l)*r[n].pos-t.getBBox().height/2;t.setContrast(null).trans(o,s)}))}else this._labelViews.forEach((function(t,n){t.setContrast(null).trans(e+2,i-r[n].pos-t.getBBox().height/2)}));this._lineView.visible&&this._lineView.setVLine(e,i,i-n)},e.GRID_LINE_STYLE="rct-polar-yaxis-grid-line",e}(LM),TM=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._yAxisViews=[],n}return Fx(e,t),e.prototype._doMeasure=function(e,i,n,r,o){var s=i.chart,a=t.prototype._doMeasure.call(this,e,i,n,r,o);return this._prepareAxes(e,s.xAxis,s._getYAxes().items(),this.model.options.circular,s.xAxis.isArced()),a},e.prototype._doLayout=function(){var t=this,e=this.model.setPolar(this.width,this.height),i=e.getPolar(null),n=i.cx,r=i.cy,o=i.rd;this._seriesViews.forEach((function(e){var i;e.model.needClip(!0)&&(t._polarClip||(t._polarClip=t.control.clipCircle()),t._polarClip.setCircle(n,r,o),e.getClipContainer().setClip(t._polarClip),null===(i=e.getClipContainer2())||void 0===i||i.setClip(t._polarClip)),e.resize(2*o,2*o),e.layout()})),this._seriesViews.forEach((function(t){t.afterLayout()})),this._xAxisView.layout(e.chart.yAxis,n,r,o),this._yAxisViews.forEach((function(t){t.layout(e.chart.xAxis,n,r,o)})),[this._guideContainer,this._frontGuideContainer].forEach((function(i){i._views.forEach((function(i){return i.layout(t.width,t.height,e.getPolar(i.model.axis))}))})),this._layoutAnnotations(!1,this,this.width,this.height)},e.prototype._prepareAxes=function(t,e,i,n,r){var o=this;this._axisContainer||(this.insertFirst(this._axisLabelContainer=new LP(t,"rct-polar-axis-labels")),this.insertFirst(this._lineContainer=new LP(t,"rct_axis-lines")),this.insertFirst(this._axisContainer=new LP(t,"rct-polar-axes")));for(var s=this._yAxisViews;s.length<i.length;){var a=new MM(t,this._lineContainer,this._axisLabelContainer);this._axisContainer.add(a),s.push(a)}for(;s.length>i.length;)s.pop().remove();s.forEach((function(e,s){e.prepare(t,i[s],n,r),e.prepareGuides(t,o._guideContainer,o._frontGuideContainer)})),this._xAxisView||this._axisContainer.add(this._xAxisView=new NM(t,this._lineContainer,this._axisLabelContainer)),this._xAxisView.prepare(t,e,n,r)},e}(fM),OM=function(t){function e(i,n){var r=t.call(this,i,n?e.SUBTITLE_CLASS:e.TITLE_CLASS,n?"rct-subtitle-background":"rct-title-background")||this;return r.isSub=n,r.add(r._textView=new $P(i)),r._richText=new QP,r}return Fx(e,t),e.prototype._marginable=function(){return!1},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,n,r){return this._richText.setFormat(e.options.text),this._richText.build(this._textView,i,n,null,null),jE(this._textView.getBBox())},e.prototype._doLayout=function(){this._richText.layout(this._textView,this.textAlign(),this.width,this.height,this._paddings)},e.TITLE_CLASS="rct-title",e.SUBTITLE_CLASS="rct-subtitle",e}(WE);!function(t){t.TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right"}(nM||(nM={}));var RM,DM=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n._topHeight=7,n._tailSize=10,n._radius=5,n._tailVisible=!0,n._hideHandler=function(){n.$_hide(),n._hideTimer=void 0},n.add(n._back=new OP(i,"rct-tooltip-back")),n.add(n._top=new OP(i,"rct-tooltip-top")),n.add(n._textView=new $P(i,"rct-tooltip-text")),n._back.setAttr("filter","url(#"+CP.SHADOW_FILTER+")"),n._textView.anchor=RP.START,n._richText=new QP,n.close(!0,!1),n}return Fx(e,t),e.prototype.show=function(t,e,i,n,r,o,s){var a=e.point,u=this._model=t.chart._tooltip,l=u.options,h=u.setTarget(t,a,i&&i.map((function(t){return t.point})));if(h){var p=l.text||h.getTooltipText(t,a);if(p&&p.trim()){var c=this.control,f=c.contentWidth(),_=c.contentHeight(),d=this._textView,y=t.chart.isInverted(),g=t._yAxisObj.options.reversed;this._richText.setFormat(p),this._richText.build(d,NaN,NaN,null,u.getTextDomain());var v=d.getBBox(),m=sS(l.minWidth||0,v.width+16),b=sS(l.minHeight||0,v.height+12)+this._topHeight;t instanceof gE&&t.options.legendByPoint?this._top.setFill(a._calcedColor):this._top.setFill(t._calcedColor);var w,x="visible"===this.getStyle("visibility")?300:0,S=l.offset+this._tailSize,P=o.getFocusPointView().getBounds(),V=c.getBounds();if(y){w=r-b/2-sS(0,oS(r-b/2,_-b)),this._tailVisible=Math.abs(b/2-this._radius-this._tailSize/2)>Math.abs(w),(u.isFollowPointer(t)?g?m+S>n:n+m+S>f:g?m+S>P.x-V.x+P.width:P.x-V.x-S>f-m)&&(g=!g);var k=g?nM.LEFT:nM.RIGHT;this.drawTooltip(0,0,m,b,k,w),g?n-=m+S:n+=S,r-=b/2}else{w=n-m/2-sS(0,oS(n-m/2,f-m)),this._tailVisible=Math.abs(m/2-this._radius-this._tailSize/2)>Math.abs(w),(u.isFollowPointer(t)?g?r+b+S>_:r-(b+S)<0:g?_-(P.y-V.y-c._padding.top)<b+S:V.bottom-P.bottom+S>_-b)&&(g=!g);k=g?nM.BOTTOM:nM.TOP;this.drawTooltip(0,0,m,b,k,w),n-=m/2,g?r+=S:r-=b+S}n=sS(0,oS(n,f-m)),r=sS(0,oS(r,_-b)),this.transEx(n,r,x,!1),0===x&&this.setStyle("visibility","visible"),this._hideTimer&&(clearTimeout(this._hideTimer),this._hideTimer=void 0)}}},e.prototype.close=function(t,e){t?(this._hideTimer&&(clearTimeout(this._hideTimer),this._hideTimer=void 0),this.$_hide()):this._hideTimer||(this._hideTimer=setTimeout(this._hideHandler,this._model?this._model.options.hideDelay:uA.defaults.hideDelay))},e.prototype.isVisible=function(){return"visible"===this.getStyle("visibility")},e.prototype.$_hide=function(){var t=this;_k(this.dom,"opacity",void 0,0,200,(function(){t.setStyle("visibility","hidden")}))},e.prototype.drawTooltip=function(t,e,i,n,r,o){var s=this._tailSize,a=this._radius,u=this._topHeight,l=["M",t+a,e,"L",t+i-a,e,"Q",t+i,e,t+i,e+a,"L",t+i,e+n-a,"Q",t+i,e+n,t+i-a,e+n,"L",t+a,e+n,"Q",t,e+n,t,e+n-a,"L",t,e+a,"Q",t,e,t+a,e];if(this._tailVisible)switch(r){case nM.TOP:l=l.concat(["M",t+i/2-s/2+o,e+n,"L",t+i/2+o,e+n+s,"L",t+i/2+s/2+o,e+n]);break;case nM.BOTTOM:l=l.concat(["M",t+i/2-s/2+o,e,"L",t+i/2+o,e-s,"L",t+i/2+s/2+o,e]);break;case nM.LEFT:l=l.concat(["M",t+i,e+n/2-s/2+o,"L",t+i+s,e+n/2+o,"L",t+i,e+n/2+s/2+o]);break;case nM.RIGHT:l=l.concat(["M",t,e+n/2-s/2+o,"L",t-s,e+n/2+o,"L",t,e+n/2+s/2+o])}var h=r===nM.BOTTOM,p=h?["M",t,e+n-u,"l",i,0,"l",0,u-a,"q",0,a,-a,a,"l",2*a-i,0,"q",-a,0,-a,-a]:["M",t+a,e,"l",i-2*a,0,"q",a,0,a,a,"l",0,u-a,"l",-i,0,"l",0,a-u,"q",0,-a,a,-a],c=this._textView,f=c.getBBox();t+=(i-f.width)/2,e+=(n-f.height+(h?-u:u))/2,c.trans(t,e),this._top.setPath(p),this._back.setPath(l)},e.CLASS_NAME="rct-tooltip",e}(EP),BM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._hTitle=0,e._wTitle=0,e._hSub=0,e._wSub=0,e}return Fx(e,t),e.prototype._doInitChildren=function(t){this.add(this.titleView=new OM(t,!1)),this.add(this.subtitleView=new OM(t,!0))},e.prototype._doMeasure=function(t,e,i,n,r){var o,s=e._title,a=e._subtitle,u=0,l=0,h=0,p=0,c=this.titleView,f=i,_=0,d=0;switch(c.setVis(s.visible)?(o=c.measure(t,s,i,n,r),l=this._hTitle=o.height,u=this._wTitle=o.width):c.setModel(s),(c=this.subtitleView).setVis(a.visible)?(o=c.measure(t,a,i,n,r),p=this._hSub=o.height,h=this._wSub=o.width,d=+a.options.titleGap||0):c.setModel(a),a.options.position){case"left":case"right":_=sS(l,p),f=u+d+h;break;default:_=l+d+p,f=sS(f,u+h)}return _>0&&(_+=this.titleView.visible?uS(s.options.gap,0):uS(a.options.gap,0)),{width:f,height:_}},e.prototype._doLayout=function(t){var e=this,i=this.titleView,n=this.subtitleView,r=i.model,o=n.model,s=r&&r.options,a=o&&o.options,u=r&&r.visible?this._wTitle>t.wPlot||"chart"===s.alignBase?t.wChart:t.wPlot:0,l=o&&o.visible?this._wSub>t.wPlot||"chart"===a.alignBase?t.wChart:t.wPlot:0,h=this._wTitle>t.wPlot||r&&"chart"===s.alignBase?0:t.xPlot,p=this._wSub>t.wPlot||o&&"chart"===a.alignBase?0:t.xPlot;if(u>0&&l>0){var c=function(t,e,i){switch(t.options.verticalAlign){case"top":return 0;case"bottom":return e-i;default:return(e-i)/2}},f=function(){var t=sS(e._hTitle,e._hSub);g=sS(g,g+c(r,t,e._hTitle)),m=sS(m,m+c(o,t,e._hSub))},_=function(t,e,i){switch(t.options.align){case"left":return 0;case"right":return e-i;default:return(e-i)/2}},d=function(){if(v=sS(v,v+_(r,u,e._wTitle)),"parent"===o.options.alignBase)switch(o.options.align){case"left":b=v;break;case"right":b=v+e._wTitle-e._wSub;break;default:b=v+(e._wTitle-e._wSub)/2}else b=sS(b,b+_(o,l,e._wSub))},y=uS(a.titleGap,0),g=0,v=h,m=0,b=p;switch(s.align){case"left":switch(a.position){case"left":v=b+this._wSub+y,f();break;case"right":switch(b=v+this._wTitle+y,a.align){case"center":b=sS(b,b+(l-this._wTitle-this._wSub)/2);break;case"right":b=sS(b,p+l-this._wSub)}f();break;case"top":d(),g=m+this._hSub+y;break;default:d(),m=g+this._hTitle+y}break;case"right":switch(a.position){case"left":switch(v+=u-this._wTitle,a.align){case"center":b+=(u-this._wTitle-this._wSub)/2;break;case"right":b=v-y-this._wSub}f();break;case"right":b+=l-this._wSub,v=b-y-this._wTitle,f();break;case"top":d(),g=m+this._hSub+y;break;default:d(),m=g+this._hTitle+y}break;default:switch(a.position){case"left":switch(v+=(u-this._wTitle)/2,a.align){case"left":break;case"center":b+=(v-b-this._wSub)/2;break;case"right":b=v-y-this._wSub}f();break;case"right":switch(v+=(u-this._wTitle)/2,a.align){case"left":b=v+this._wTitle+y;break;case"center":b=v+this._wTitle+y,b+=(l-b-this._wSub)/2;break;case"right":b+=l-y-this._wSub}f();break;case"top":d(),g=m+this._hSub+y;break;default:d(),m=g+this._hTitle+y}}i.resizeByMeasured().layout().trans(v,g),n.resizeByMeasured().layout().trans(b,m)}else if(u>0||l>0){var w=u?r:o,x=u?i:n,S=u||l,P=u?this._wTitle:this._wSub,V=u?h:p;switch(x.resizeByMeasured().layout(),w.options.align){case"left":break;case"right":V+=S-P;break;default:V+=(S-P)/2}x.trans(V,0)}},e}(YE),FM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fx(e,t),e.prototype._doInitChildren=function(t){this.add(this._legendView=new PM(t))},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._legend,s=this._legendView.measure(t,o,i,n,r),a=this._pos=o._location;return"left"===a||"right"===a?s.width+=this._legendView._gap:s.height+=this._legendView._gap,s},e.prototype._doLayout=function(){var t=this._legendView,e=t._gap,i=this.width,n=this.height,r=0,o=0;switch(this._pos){case"left":i-=e;break;case"right":i-=e,r+=e;break;case"top":n-=e;break;default:o+=e,n-=e}t.trans(r,o).resize(i,n),t.layout()},e}(YE),IM=function(t){function e(e,i){var n=t.call(this,e)||this;return n.dir=i,n.views=[],n.visibles=[],n._gap=0,n}return Fx(e,t),e.prototype.prepare=function(t,e,i,n,r){for(var o,s=this.views,a=s.length;s.length<i.length;)o=new nL(t),i[a++].visible&&this.add(o),s.push(o);for(;s.length>i.length;)(o=s.pop()).parent&&o.remove();if(s.forEach((function(e,o){e.prepare(i[o]),e.prepareGuides(t,NaN,NaN,n,r)})),this.setVis(s.filter((function(t){return t.model.visible})).length>0)){var u=s[0].model;this.isX=u._isX,this.isHorz=u._isHorz,this._gap=u.chart.getAxesGap()}},e.prototype.checkHeights=function(t,e,i){return this.views.length>0?this.$_checkHeights(this.views,t,e,i):0},e.prototype.$_checkHeights=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkHeight(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.checkWidths=function(t,e,i){return this.views.length>0?this.$_checkWidths(this.views,t,e,i):0},e.prototype.$_checkWidths=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkWidth(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.getScrollView=function(t){var e,i,n;try{for(var r=jx(this.views),o=r.next();!o.done;o=r.next()){var s=o.value;if(null===(n=s._scrollView)||void 0===n?void 0:n.contains(t))return s._scrollView}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.prepareGridRows=function(t,e){e.addAll(t,this.views.map((function(t){return t.model})))},e.prototype.clean=function(){this.views.forEach((function(t){return t.clean()}))},e.prototype.setMargins=function(t,e,i,n){this.views.forEach((function(r){return r.setMargins(t,e,i,n)}))},e.prototype._doMeasure=function(t,e,i,n,r){var o=this,s=(this._inverted,0),a=0;return[this.views].forEach((function(e){if(e){var u=(o.isX,i),l=(o.isX,n),h=0,p=0;e.forEach((function(e){if(e.visible){var i=e.measure(t,e.model,u,l,r);e.setAttr("xy",e.model._isX?"x":"y"),h+=i.width,p+=i.height}})),o.isHorz?p+=(e.length-1)*o._gap:h+=(e.length-1)*o._gap,s=sS(s,h),a=sS(a,p)}})),{width:s,height:a}},e.prototype._doLayout=function(t){var e=this,i=this.control.loaded,n=this.width,r=this.height,o=0,s=0;t=+t||0,[this.views].forEach((function(a){if(a){var u=0;a.forEach((function(t){t.visible&&(t.checkExtents(i),e.isHorz?t.resize(n,t.mh):t.resize(t.mw,r),t.layout(),e.isHorz?(t.trans(o,e.dir===SE.TOP?r-u-t.mh:u),u+=t.mh+e._gap):(t.trans(e.dir===SE.RIGHT?u:n-u-t.mw,s),u+=t.mw+e._gap))})),e.isHorz?o+=n+t:s+=r+t}}))},e}(YE),jM=function(t){function e(e){var i=t.call(this,e,"rct-credits")||this;return i.add(i._textView=new $P(e)),i._textView.anchor=RP.START,i}return Fx(e,t),e.prototype.clicked=function(t){this.model.options.url&&window.open(this.model.options.url,"new")},e.prototype._doMeasure=function(t,e,i,n,r){return this._textView.text=e.options.text,this.setCursor(e.options.url?"pointer":""),this._textView.getBBox()},e}(GE),$M=function(t){function e(e){var i=t.call(this,e,"rct-chart")||this;for(var n in i._inverted=!1,i._axisSectionMap={},i._annotationViews=[],i._annotationMap=new Map,i.add(i._annotationContainer=new LP(e,"rct-annotations")),i.add(i._plotContainer=new LP(e,"rct-plot-container")),i._plotContainer.add(i._currBody=i._bodyView=new fM(e,i)),SE){var r=new IM(e,SE[n]);i._plotContainer.add(r),i._axisSectionMap[SE[n]]=r}return i.add(i._paneContainer=new CM(e,i)),i.add(i._titleSectionView=new BM(e)),i.add(i._legendSectionView=new FM(e)),i.add(i._frontAnnotationContainer=new LP(e,"rct-front-annotations")),i.add(i._creditView=new jM(e)),i.add(i._navigatorView=new dM(e)),i.add(i._historyView=new xM(e)),i.add(i._tooltipView=new DM(e)),i}return Fx(e,t),e.prototype.getAnnotationAnchor=function(t){return this._annotationMap.get(t)},e.prototype.titleView=function(){return this._titleSectionView.titleView},e.prototype.subtitleView=function(){return this._titleSectionView.subtitleView},e.prototype.bodyView=function(){return this._bodyView},e.prototype.clean=function(){for(var t in this._axisSectionMap)this._axisSectionMap[t].clean()},e.prototype.measure=function(t,e,i,n,r){var o,s=this,a=this._model=e,u=a.isPolar(),l=a._chartOptions.credits,h=a._legend,p=a._navigator,c=i,f=n;if(this._inverted=a.isInverted(),a.isSplitted()?(this._plotContainer.setVis(!1),this._paneContainer.setVis(!0),this.$_preparePanes(t,a._split)):(this._plotContainer.setVis(!0),this._paneContainer.setVis(!1),this.$_prepareBody(t,u)),this._creditView.setVis(l.visible)&&(o=this._creditView.measure(t,l,c,f,r),l.isFloating()||("middle"!==l.options.verticalAlign?f-=o.height+(+l.options.offsetY||0)+(+l.options.gap||0):"center"!==l.options.align&&(c-=o.width+(+l.options.offsetX||0)+(+l.options.gap||0)))),f-=(o=this._titleSectionView.measure(t,a,c,f,r)).height,this._legendSectionView.setVis(h.visible))switch(o=this._legendSectionView.measure(t,a,c,f,r),h._location){case"top":case"bottom":f-=o.height;break;case"right":case"left":c-=o.width}this._navigatorView.setVis(p.visible),this._paneContainer.visible?this._paneContainer.measure(t,a._split,a._xPaneAxes,a._yPaneAxes,c,f,1):u?this.$_measurePolar(t,a,c,f,1):this.$_measurePlot(t,a,c,f,1),this._navigatorView.visible&&(a._navigator._vertical?f=this._bodyView.mh:c=this._bodyView.mw,this._navigatorView.measure(t,p,c,f,r)),this.$_prepareAnnotations(t,e.getAnnotations()),this._annotationViews.forEach((function(e,o){e.measure(t,s._annotations[o],i,n,r)}))},e.prototype.layout=function(){var t=this,e=this.width,i=this.height,n=e,r=i,o=this._model,s=o.isPolar(),a=o._legend,u=o._chartOptions.credits,l=this._creditView,h=+u.options.gap||0,p=0,c=0,f=0,_=0,d=0,y=0;l.visible&&(l.resizeByMeasured(),u.isFloating()||("middle"!==u.options.verticalAlign?(p=+u.options.offsetY||0,"top"===u.options.verticalAlign?r-=c=l.height+p+h:r-=f=l.height+p+h):(p=+u.options.offsetX||0,"left"===u.options.align?n-=_=l.width+p+h:n-=l.width+p+h)));var g=this._titleSectionView,v=0,m=y+c;g.visible&&(g.resizeByMeasured(),r-=v=g.height),d=_,y=i-f;var b=this._navigatorView,w=0;b.visible&&(b.model._vertical||(b.resize(b.mw,b.mh-b.model.getGap()-b.model.getGapFar()),r-=w=b.mh));var x,S,P=this._legendSectionView,V=0,k=0;if(P.visible)switch(P.resizeByMeasured().layout(),V=P.height,k=P.width,a._location){case"top":x=v+c,r-=V;break;case"bottom":r-=V,x=y-V,y-=V;break;case"right":n-=k,S=e-k;break;case"left":n-=k,d+=k,S=0}b.visible&&(y-=w,b.layout().transY(y+b.model.getGap()));var A,C=0,E=0,L=0,N=0;if(this._paneContainer.visible)this._paneContainer.trans(d,m+v).resize(n,r),this._paneContainer.layout(),L=r,N=n,A=this._paneContainer.getRect();else{var M,T=this._axisSectionMap,O=T[SE.CENTER],R=T[SE.MIDDLE];if(!s){var D=this.control._padding;O&&O.visible&&(C=O.mw),R&&R.visible&&(E=R.mh),[SE.LEFT,SE.RIGHT].forEach((function(t){(M=T[t])&&M.visible&&(n-=M.mw)})),[SE.TOP,SE.BOTTOM].forEach((function(t){(M=T[t])&&M.visible&&(r-=M.mh)})),(M=T[SE.LEFT])&&M.visible&&(M.resize(M.mw,r),M.layout(E),d+=M.mw),(M=T[SE.RIGHT])&&M.visible&&(M.resize(M.mw,r),M.layout(E)),C>0&&(O.resize(M.mw,r),O.layout()),(M=T[SE.BOTTOM])&&M.visible&&(M.setMargins(D.left,d,this.width-d-n,Math.max(0,D.right-2)),M.resize(n,M.mh),M.layout(C),y-=M.mh),(M=T[SE.TOP])&&M.visible&&(M.setMargins(D.left,d,this.width-d-n,Math.max(0,D.right-1)),M.resize(n,M.mh),M.layout(C)),E>0&&(R.resize(n,M.mh),R.layout())}b.visible&&b.layout().transX(d);var B=this._org={x:d,y:y};this._plotWidth=n,this._plotHeight=r,s||((M=T[SE.LEFT])&&M.visible&&M.trans(B.x-M.mw,B.y-M.height),(M=T[SE.RIGHT])&&M.visible&&M.trans(B.x+n,B.y-M.height),C>0&&O.trans(B.x+(n-C)/2,B.y-O.height),(M=T[SE.BOTTOM])&&M.visible&&M.trans(B.x,B.y),(M=T[SE.TOP])&&M.visible&&M.trans(B.x,B.y-r-M.height),E>0&&R.trans(B.x,B.y-(r-E)/2-E));var F=this._currBody;L=this._plotHeight-E,N=this._plotWidth-C,d=B.x,y=B.y-this._plotHeight,F.resize(N,L),F.trans(d,y),F.layout(),A=F.getRect(),F._seriesViews.forEach((function(e){if(e.needDecoreateLegend()){var i=t._legendSectionView._legendView.legendOfSeries(e.model);i&&e.decoreateLegend(i)}}))}if(l.visible){var I=+u.options.offsetX||0,j=p,$=void 0,z=void 0;switch(l.layout(),u.options.verticalAlign){case"top":break;case"middle":z=(i-l.height)/2+j;break;default:z=i-f+h}switch(u.options.align){case"left":$=I;break;case"center":$=(e-l.width)/2+I;break;default:$=e-l.width-I}l.trans($,z)}if(N+=C,g.visible&&g.layout({xPlot:d,wPlot:N,wChart:e}).trans(0,m),P.visible){var H=a.options,G=H.align,W=H.verticalAlign;if("body"===a._location){var Y=+H.offsetX||0;switch(G){case"right":d+=N-k-Y;break;case"center":d+=(N-k)/2+Y;break;default:d+=Y}switch(Y=+H.offsetY||0,W){case"bottom":y+=L-V-Y;break;case"middle":y+=(L-V)/2+Y;break;default:y+=Y}}else if(isNaN(x)){Y=+H.offsetY||0;if(d=S,"chart"===H.alignBase){switch(W){case"top":y=Y;break;case"bottom":y=i-V-Y;break;default:y=(i-V)/2+Y}y+V>i&&(y=(i-V)/2)}else switch(W){case"top":y+=Y;break;case"bottom":y=y+r-V-Y;break;default:y=y+(r-V)/2+Y}y+V>i&&(y=(i-V)/2),y<0&&(y=0)}else{var Y=+H.offsetX||0;if(y=x,"chart"===H.alignBase)switch(G){case"left":d=Y;break;case"right":d=e-k-Y;break;default:d=(e-k)/2+Y}else switch(G){case"left":d+=Y;break;case"right":d=d+n-k-Y;break;default:d+=(n-k)/2+Y}d+k>e&&(d=(e-k)/2),d<0&&(d=0)}P.trans(d,y)}this.$_layoutAnnotations(this._inverted,e,i,A),this._tooltipView.close(!0,!1)},e.prototype.showTooltip=function(t,e,i,n,r){var o=e.getTooltipPos?e.getTooltipPos():{x:e.point.xPos,y:e.point.yPos},s=o.x,a=o.y,u=this._model.chart._tooltip.isFollowPointer(t),l=n.getTooltipPos(),h=u?r.x+l.x:s+l.x,p=u?r.y+l.y:a+l.y;this._tooltipView.show(t,e,i,h,p,n,!0)},e.prototype.tooltipVisible=function(){return this._tooltipView.isVisible()},e.prototype.hideTooltip=function(){this._tooltipView.close(!1,!0)},e.prototype.getSeriesView=function(t){return this._model.isSplitted()?this._paneContainer.getSeries(t):this._currBody.getSeries(t)},e.prototype.legendByDom=function(t){return this._legendSectionView._legendView.legendByDom(t)},e.prototype.seriesByDom=function(t){return this._paneContainer.visible?this._paneContainer.seriesByDom(t):this._currBody.seriesByDom(t)},e.prototype.findSeriesView=function(t){return this._currBody.findSeries(t)},e.prototype.creditByDom=function(t){return this._creditView.dom.contains(t)?this._creditView:null},e.prototype.bodyOf=function(t){return this._model.isSplitted()?this._paneContainer.bodyViewOf(t):this._currBody},e.prototype.pointerMoved=function(t,e,i){var n,r=this,o=i,s=this._model&&this.bodyOf(i),a=null==o?void 0:o.classList,u=(null==a?void 0:a.value)&&(a.contains("rct-contextmenu-item")||a.contains("rct-contextmenu-list")),l=this._hoverItem;if(this._hoverItem=null,s){var h=s.controlToElement(t,e),p=s.pointerMoved(h,i);if(!this._hoverItem&&this._legendSectionView._legendView.contains(o)){var c=this._hoverItem=this._legendSectionView._legendView.legendByDom(o);c&&c.legend.options.seriesHovering&&c.source&&s.hoverSeries(c.source)}if(l instanceof pk&&!(this._hoverItem instanceof pk)&&s.hoverSeries(null),!p)return void s.removeFocus();for(var f in this._axisSectionMap)this._axisSectionMap[f].views.forEach((function(t){var e=t.model,i=e.crosshair,n=e._isHorz?s.width:s.height,o=e._isHorz?h.x:h.y,a=p&&i.visible&&!u&&i.flag.visible&&!i.isBar()&&i.getFlag(n,o);if(a){t.showCrosshair(o,a);var l=[];s._seriesViews.forEach((function(t){var i,n=Number.MAX_SAFE_INTEGER,o=r._model.inverted;t.model._visPoints.forEach((function(t){var r=t.xPos,s=t instanceof LC&&!o?t.yPos-(t.yPos-t.yLow)/2:t.yPos,a=e._isX?Math.abs(h.x-r):Math.abs(h.y-s);a<n&&(n=a,i=t)})),l.push(i)})),i.moved(o,a,l)}else t.hideCrosshiar()}))}else(null===(n=this._model)||void 0===n?void 0:n.isSplitted())?this._paneContainer.bodies.forEach((function(t){t.removeFocus()})):this._currBody.removeFocus()},e.prototype.getAxis=function(t){for(var e in this._axisSectionMap){var i=this._axisSectionMap[e].views.find((function(e){return e.model===t}));if(i)return i}},e.prototype.getButton=function(t){return this._currBody.getButton(t)},e.prototype.buttonClicked=function(t){this._currBody.buttonClicked(t)},e.prototype.getScrollView=function(t){for(var e in SE){var i=this._axisSectionMap[SE[e]].getScrollView(t);if(i)return i}},e.prototype.updateAnnotation=function(t){var e=this._annotationViews.find((function(e){return e.model===t}));e?e.update(this,this.width,this.height):this._model.isSplitted()||(e=this._currBody._annotationViews.find((function(e){return e.model===t})))&&e.update(this._currBody,this._currBody.width,this._currBody.height)},e.prototype.isAnimating=function(){return this._bodyView.animating()},e.prototype._doAttached=function(t){},e.prototype.$_preparePanes=function(t,e){this._paneContainer.prepare(t,e)},e.prototype.$_prepareBody=function(t,e){var i,n;e?(this._polarView||(this._polarView=new TM(t,this),this._plotContainer.insertChild(this._polarView,this._bodyView)),this._currBody=this._polarView,null===(i=this._bodyView)||void 0===i||i.setVis(!1),this._polarView.setVis(!0)):(null===(n=this._polarView)||void 0===n||n.setVis(!1),this._bodyView.setVis(!0),this._currBody=this._bodyView),this._currBody.prepareRender(t,this._model)},e.prototype.$_prepareAxes=function(t,e){var i=this._currBody._gridRowContainer,n=this._currBody._guideContainer,r=this._currBody._frontGuideContainer,o=!e.isPolar()&&e._needAxes(),s=this._axisSectionMap;for(var a in s){var u=s[a];o?u.prepare(t,e,e.getAxes(a,!1),n,r):u.visible=!1}i.prepare()},e.prototype.$_measurePlot=function(t,e,i,n,r){var o=this._axisSectionMap;if(this._navigatorView.visible){var s=e._navigator;s._vertical?i-=s.getSize():n-=s.getSize()}var a=i,u=n,l=0,h=0;for(var p in this._bodyView.prepareGuideContainers(),this.$_prepareAxes(t,e),e.layoutAxes(i,n,this._inverted,r),i-=o[SE.LEFT].checkWidths(t,i,n),i-=o[SE.RIGHT].checkWidths(t,i,n),n-=o[SE.BOTTOM].checkHeights(t,i,n),n-=o[SE.TOP].checkHeights(t,i,n),this._inverted?i-=l=o[SE.CENTER].checkWidths(t,i,n):n-=h=o[SE.MIDDLE].checkHeights(t,i,n),i-=l,n-=h,e.layoutAxes(i,n,this._inverted,r),o){(c=o[p]).visible&&c.measure(t,e,i,n,r)}for(var p in i=a,n=u,l=0,h=0,o){(c=o[p]).visible&&(p===SE.LEFT||p===SE.RIGHT?i-=c.mw:p!==SE.BOTTOM&&p!==SE.TOP||(n-=c.mh),this._inverted?p===SE.CENTER&&(i-=l=c.mw):p===SE.MIDDLE&&(n-=h=c.mh))}for(var p in e.layoutAxes(i,n,this._inverted,r),o){(c=o[p]).visible&&(c.measure(t,e,i,n,r),c.prepareGridRows(t,this._bodyView._gridRowContainer))}for(var p in i=a,n=u,l=0,h=0,o){var c;(c=o[p]).visible&&(p===SE.LEFT||p===SE.RIGHT?i-=c.mw:p!==SE.BOTTOM&&p!==SE.TOP||(n-=c.mh),this._inverted?p===SE.CENTER&&(i-=l=c.mw):p===SE.MIDDLE&&(n-=h=c.mh))}e.axesLayouted(i,n,this._inverted),this._bodyView.measure(t,e._body,i,n,r)},e.prototype.$_measurePolar=function(t,e,i,n,r){var o=e._body.getRadius(i,n),s=2*Math.PI*o,a=o;this._polarView.prepareGuideContainers(),this.$_prepareAxes(t,e),e.layoutAxes(s,a,!1,r),e.axesLayouted(s,a,!1),this._polarView.measure(t,e._body,i,n,r)},e.prototype.$_prepareAnnotations=function(t,e){var i,n,r=this._annotationContainer,o=this._frontAnnotationContainer,s=this._annotationMap,a=this._annotationViews;try{for(var u=jx(s.keys()),l=u.next();!l.done;l=u.next()){var h=l.value;e.indexOf(h)<0&&s.delete(h)}}catch(t){i={error:t}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}a.forEach((function(t){return t.remove()})),a.length=0,(this._annotations=e).forEach((function(e){var i=s.get(e)||eM(t,e);(e.options.front?o:r).add(i),s.set(e,i),a.push(i)}))},e.prototype.$_layoutAnnotations=function(t,e,i,n){var r,o,s,a,u=this,l=this.control._padding;this._annotationViews.forEach((function(n){if("container"===n.model.options.scope)r=-l.left,o=-l.top,s=e+l.left+l.right,a=i+l.top+l.bottom;else r=o=0,s=e,a=i;n._layoutView(t,u,r,o,s,a)}))},e}(LP);!function(t){t.EXPORT="$$realchart_export"}(RM||(RM={}));var zM=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.addElement(n._chartView=new $M(e)),n.setPointerHandler(new wM(n)),n}return Fx(e,t),e.prototype._initControl=function(e,i,n){var r=this;t.prototype._initControl.call(this,e,i,n),this._chart=new RE(null,(function(t,e){r.changeModel(t,e)}))},e.prototype._doDestroy=function(){this.setPointerHandler(null),this._chart=null,t.prototype._doDestroy.call(this)},e.prototype.onModelChanged=function(t,e,i){e instanceof gV&&i===pV.REFRESHED?this._chartView.updateAnnotation(e):this.invalidateLayout()},e.prototype.onVisibleChanged=function(t,e){this.invalidateLayout()},e.prototype.onPointVisibleChanged=function(t,e,i){this.invalidateLayout()},e.prototype.onExportRequest=function(t,e){this._export(e)},e.prototype.onRefreshRequest=function(t){this.refresh()},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){t!==this._chart&&(this._chart=t,this.changeModel(t._obj,this.model))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this._chart._obj},enumerable:!1,configurable:!0}),e.prototype.changeModel=function(t,e){t!==e&&(this.clearAssetDefs(),e&&(e._assets.unregister(this),e._removeListener(this)),t&&(t._addListener(this),t._assets.register(this.doc(),this)),this.loaded=!1,this.invalidateLayout(!0))},e.prototype.chartView=function(){return this._chartView},e.prototype.refresh=function(){this._render()},e.prototype.scroll=function(t,e){var i;null===(i=this._chartView.getAxis(t))||void 0===i||i.scroll(e)},e.prototype.use=function(t){if(t.MODULE_NAME&&t.MODULE_NAME===RM.EXPORT)this._exporter=t},e.prototype._doRender=function(t){var e,i=this.model,n=this._chartView;this.clearTemporaryDefs(),i&&(this.setData("theme",i._chartOptions.options.theme,!0),this.setData("palette",i._chartOptions.options.palette),i._prepareRender(),this._loadModules(),this._prepareModules()),this.loaded||n.clean(),n.measure(this.doc(),i,t.width,t.height,1),n.setRect(t),n.layout(),i&&i.afterRender(),(null===(e=this._chart)||void 0===e?void 0:e._loadCallback)&&(setTimeout(this._chart._loadCallback,0),this._chart._loadCallback=void 0)},e.prototype._doRenderBackground=function(t,e,i,n){if(this.model){var r=this.model._chartOptions._style;if(Wx(r))for(var o in r)o.startsWith("padding")?e.setStyle(o,r[o]):t.style[o]=r[o]}},e.prototype._loadModules=function(){if(!this._exporter){var t=null===window||void 0===window?void 0:window.$$_RealChartExporter;t&&t.RealchartExport(this)}},e.prototype._prepareModules=function(){this._exporter&&this._exporter.render(this.doc(),this.dom(),this.model._exporter.options)},e.prototype._export=function(t){if(this.model&&this._exporter){var e=this.dom();switch(t.type){case"png":case"jpeg":case"svg":this._exporter.exportToImage(e,t)}}},e}(CP),HM=function(){function t(){}return t.getVersion=function(){return"1.1.1"},t.setLocale=function(t,e){e&&vS(t,e),function(t){t&&(gS=dS[yS=t.substring(0,2)]),gS||(gS=dS[yS="ko"])}(t)},t.registerLocale=function(t,e){vS(t,e)},t.setDebugging=function(t){EP.DEBUGGING=t},t.setLogging=function(t){_S.LOGGING=t},t.setAnimatable=function(t){CP._animatable=t},t.createChart=function(t,e,i,n,r){void 0===n&&(n=!0);var o=new zM(t,e);return Wx(i)&&o.chart.load(i,n,r),o.chart[OE]=o,o.chart},t.createData=function(t,e){return new DE(t||{},e)},t}(),GM=HM.getVersion,WM=HM.setDebugging,YM=HM.setLogging,XM=HM.setAnimatable,UM=HM.createChart,qM=HM.createData;return t.Chart=RE,t.ChartData=DE,t.createChart=UM,t.createData=qM,t.getVersion=GM,t.setAnimatable=XM,t.setDebugging=WM,t.setLogging=YM,t}({});