PageSourceSearch

https://aaafx.com/assets/economic-calendar-0daf7098.js

js aaafx.com collected 2026-10-04 13:24:44 UTC 1,397,234 bytes, 48 lines download raw bytes

1import{b as Vl,_ as Ap,u as km}from"./index-010e327e.js";import{s as oe,a as we,h as ae,d as rn,N as Sf,W as Ho,V as Re,_ as Ld,L as Co,O as nn,$ as Rd,R as Pa,M as je,x as Ir,a0 as Er,o as zi,w as kt,v as Ge,a1 as vr,a2 as dn,u as q,m as sr,Q as Ba,e as Qt,g as Pe,r as jp,a3 as Mm,b as ni,G as At,l as Sr,F as Et,n as Kn,i as bi,j as it,a4 as Ls,y as ia,J as va,K as ml,a5 as Am,a6 as jm,a7 as Vm,f as ll,a8 as Fm,a9 as fh}from"./vue-vendor-bd567a24.js";import{c as Vp,g as Fp}from"./bootstrap-71154e5e.js";import{D as Im}from"./discover-more-c1731183.js";function Em(n,i){for(var e=0;e<i.length;e++){const t=i[e];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in n)){const a=Object.getOwnPropertyDescriptor(t,r);a&&Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var Xh=function(n,i){return Xh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Xh(n,i)};function W(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");Xh(n,i);function e(){this.constructor=n}n.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}var $r=function(){return $r=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=e[a])}return i},$r.apply(this,arguments)};function Rt(n,i,e,t){function r(a){return a instanceof e?a:new e(function(s){s(a)})}return new(e||(e=Promise))(function(a,s){function o(h){try{u(t.next(h))}catch(d){s(d)}}function l(h){try{u(t.throw(h))}catch(d){s(d)}}function u(h){h.done?a(h.value):r(h.value).then(o,l)}u((t=t.apply(n,i||[])).next())})}function Tt(n,i){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,r,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(h){return l([u,h])}}function l(u){if(t)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(e=0)),e;)try{if(t=1,r&&(a=u[0]&2?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,r=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){e.label=u[1];break}if(u[0]===6&&e.label<a[1]){e.label=a[1],a=u;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(u);break}a[2]&&e.ops.pop(),e.trys.pop();continue}u=i.call(n,e)}catch(h){u=[6,h],r=0}finally{t=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Fl(n){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&n[i],t=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function _s(n,i){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var t=e.call(n),r,a=[],s;try{for(;(i===void 0||i-- >0)&&!(r=t.next()).done;)a.push(r.value)}catch(o){s={error:o}}finally{try{r&&!r.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return a}function Ss(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(_s(arguments[i]));return n}var mt=function(){function n(i){this._value=i}return Object.defineProperty(n.prototype,"value",{get:function(){return this._value/100},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"percent",{get:function(){return this._value},enumerable:!0,configurable:!0}),n.prototype.toString=function(){return""+this._value+"%"},n}();function pe(n){return new mt(n)}function Lm(n){return n instanceof mt}function ar(n){return Number(n)!==n}function Ip(n){return{}.toString.call(n)}
1function Nd(n){if(typeof n=="string")return n;if(typeof n=="number")return""+n;throw new Error("Expected a string or number but got "+Ip(n))}function ti(n){return!!n}function Bt(n){if(T(n)&&!C(n)){var i=Number(n);return ar(i)&&bt(n)&&n!=""?Bt(n.replace(/[^0-9.\-]+/g,"")):i}return n}function er(n){if(T(n)&&!bt(n)){if(C(n))return Nd(n);if(Zt(n))return n.toString()}return n}function Rm(n){return!T(n)||C(n)||Lm(n)?n:bt(n)&&n.indexOf("%")!=-1?pe(Bt(n)):Bt(n)}function T(n){return n!=null}function ai(n){if(T(n))return n;throw new Error("Value doesn't exist")}function ph(n,i){return T(n)?n:i}function Do(n){return Ip(n)==="[object Date]"}function bt(n){return typeof n=="string"}function C(n){return typeof n=="number"&&Number(n)==n}function Zt(n){return typeof n=="object"&&n!=null}function Ui(n){return Array.isArray(n)}var fu=Math.PI,Ep=fu/2,pu=fu/180,ga=180/fu;function yh(n,i,e){return T(n)?(n=Bt(n),ke(n,i,e)):n}function de(n,i,e){if(!C(i)||i<=0){var t=Math.round(n);return e&&t-n==.5&&t--,t}else{var r=Math.pow(10,i);return Math.round(n*r)/r}}function Of(n,i){if(!C(i)||i<=0)return Math.ceil(n);var e=Math.pow(10,i);return Math.ceil(n*e)/e}function ke(n,i,e){if(C(i)){if(C(e)&&e<i){var t=e;e=i,i=t}n<i&&(n=i)}return C(e)&&n>e&&(n=e),n}function be(n){return de(Math.sin(pu*n),10)}function Tf(n){return de(Math.tan(pu*n),10)}function xe(n){return de(Math.cos(pu*n),10)}function st(n,i){return C(n)?C(i)&&i>n?i:n:C(i)?i:null}function xt(n,i){return C(n)?C(i)&&i<n?i:n:C(i)?i:null}function Nm(n,i){return n.reduce(function(e,t){return Math.abs(t-i)<Math.abs(e-i)?t:e})}function Il(n,i){var e=ai(n.start),t=ai(i.start),r=ai(n.end),a=ai(i.end);return Math.max(e,t)<=Math.min(r,a)}function Js(n){var i=ai(n.start),e=ai(n.end);return{start:1-e,end:1-i}}function Hm(n,i){var e=ai(n.start),t=ai(i.start),r=ai(n.end),a=ai(i.end),s=Math.max(e,t),o=Math.min(r,a);if(!(o<s))return{start:s,end:o}}function Mt(n,i){return n?(i||(i={x:0,y:0}),Math.sqrt(Math.pow(Math.abs(n.x-i.x),2)+Math.pow(Math.abs(n.y-i.y),2))):0}function Ym(n,i){return n?(i||(i={x:0,y:0}),Math.abs(n.x-i.x)):0}function Wm(n,i){return n?(i||(i={x:0,y:0}),Math.abs(n.y-i.y)):0}function Bm(n,i,e,t,r){if(!n)return 0;i||(i={x:0,y:0});var a=0,s=n;if(r>0)for(var o=0;o<=r;o++){var l=Hd(n,i,e,t,o/r);a+=Mt(s,l),s=l}return a}function zm(n,i,e,t){var r=Mt(i,t),a=Mt(n,e);return Math.abs(a/r)}function El(n,i,e){return C(e)||(e=.5),{x:n.x+(i.x-n.x)*e,y:n.y+(i.y-n.y)*e}}function tr(n,i){i||(i={x:n.x*2,y:n.y*2});var e=i.x-n.x,t=i.y-n.y,r=Math.atan2(t,e)*ga;return r<0&&(r+=360),Ka(r)}function eo(n){if(n){var i=n.length;if(i!==0){for(var e=void 0,t=void 0,r,a=void 0,s=0;s<i;s++){var o=n[s];(!C(t)||o.x>t)&&(t=o.x),(!C(e)||o.x<e)&&(e=o.x),(!C(r)||o.y<r)&&(r=o.y),(!C(a)||o.y>a)&&(a=o.y)}return{x:e,y:r,width:t-e,height:a-r}}}return{x:0,y:0,width:0,height:0}}function Yo(n){var i=n.length;if(i!==0){for(var e=void 0,t=void 0,r=void 0,a=void 0,s=0;s<i;s++){var o=n[s];e=xt(o.x,e),t=xt(o.y,t),r=st(o.x+o.width,r),a=st(o.y+o.height,a)}return{x:e,y:t,width:r-e,height:a-t}}}function kf(n,i,e,t){var r=(1-t)*(1-t)*n.x+2*(1-t)*t*e.x+t*t*i.x,a=(1-t)*(1-t)*n.y+2*(1-t)*t*e.y+t*t*i.y;return{x:r,y:a}}function Hd(n,i,e,t,r){var a={x:0,y:0},s=1-r,o=s*s,l=o*s;return a.x=n.x*l+e.x*3*o*r+t.x*3*s*r*r+i.x*r*r*r,a.y=n.y*l+e.y*3*o*r+t.y*3*s*r*r+i.y*r*r*r,a}function Lp(n,i,e,t,r,a){return r=Ll(r),a=Ll(a),{x:(-n.x+i.x/r+e.x)*r,y:(-n.y+i.y/a+e.y)*a}}function Rp(n,i,e,t,r,a){return r=Ll(r),a=Ll(a),{x:(i.x+e.x/r-t.x)*r,y:(i.y+e.y/a-t.y)*a}}function Ll(n){return 1-n+1e-5}function Ka(n){return n==360?360:n%360}function Tn(n,i,e){if(i>e){var t=i;i=e,e=t}n=Ka(n);var r=(i-Ka(i))/360;n<i&&(n+=360*(r+1));var a=i+(e-i)/2+180,s=i+(e-i)/2-180;return n>e&&(n-360>i?n-=360:n<a?n=e:n=i),n<i&&(n>s?n=i:n=e),n}function In(n,i,e){var t=Number.MAX_VALUE,r=Number.MAX_VALUE,a=-Number.MAX_VALUE,s=-Number.MAX_VALUE,o=[];C(e)||(e=1),o.push(vh(e,n)),o.push(vh(e,i));for(var l=Math.min(Math.floor(n/90)*90,Math.floor(i/90)*90),u=Math.max(Math.ceil(n/90)*90,Math.ceil(i/90)*90),h=l;h<=u;h+=90)h>=n&&h<=i&&o.push(vh(e,h));for(var d=0;d<o.length;d++){var f=o[d];f.x<t&&(t=f.x),f.y<r&&(r=f.y),f.x>a&&(a=f.x),f.y>s&&(s=f.y)}return{x:t,y:r,width:a-t,height:s-r}}function vh(n,i){return{x:n*xe(i),y:n*be(i)}}function Np(n,i){return n.x>=i.x&&n.x<=i.x+i.width&&n.y>=i.y&&n.y<=i.y+i.height}function yn(n,i){for(var e=n.length,t=0;t<e;++t)if(n[t]===i)return t;return-1}function Yd(n,i){for(var e=n.length,t=0;t<e;++t)if(i(n[t]))return!0;return!1}function Wo(n,i){for(var e=n.length,t=new Array(e),r=0;r<e;++r)t[r]=i(n[r],r);return t}function De(n,i){for(var e=n.length,t=0;t<e;++t)i(n[t],t)}function Um(n,i){for(var e=n.length;e--;)i(n[e],e)}function Wd(n,i){for(var e=n.length,t=0;t<e&&i(n[t],t);++t);}function Xm(n,i){for(var e=n.length,t=i;t<e;++t)n[t-i]=n[t];n.length=e-i}function Gm(n,i){for(var e=i.length,t=0;t<e;++t)n.push(i[t])}function Qe(n,i){var e=!1,t=n.indexOf(i);if(t!==-1){e=!0,n.splice(t,1);for(var r=n.length;t<r;)n[t]===i?(n.splice(t,1),--r):++t}return e}function Jr(n,i,e){var t=yn(n,i);t!==-1&&Vs(n,t),e==null?n.push(i):js(n,e,i)}function ys(n,i,e){C(e)?e===0?n.unshift(i):n.splice(e,0,i):n.push(i)}function $m(n,i,e){var t=n.indexOf(i);t!==-1&&n.splice(t,1),C(e)?n.splice(e,0,i):n.push(i)}function Hp(n){return Array.isArray(n)?n:[n]}function So(n){for(var i=n.length,e=new Array(i),t=0;t<i;++t)e[t]=n[t];return e}function js(n,i,e){n.splice(i,0,e)}function Vs(n,i){n.splice(i,1)}function Rl(n,i,e){for(var t=0,r=n.length,a=!1;t<r;){var s=t+r>>1,o=i(e,n[s]);o<0?r=s:(o===0&&(a=!0),t=s+1)}return{found:a,index:a?t-1:t}}function Yp(n,i){for(var e=n.length,t=0;t<e;++t)if(i(n[t],t))return t;return-1}function Wp(n,i){for(var e=n.length,t=0;t<e;)i(n[t])?++t:(n.splice(t,1),--e)}var Lt=function(){function n(i){this._disposed=!1,this._dispose=i}return n.prototype.isDisposed=function(){return this._disposed},n.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._dispose())},n}(),di=function(n){W(i,n);function i(e){return n.call(this,function(){De(e,function(t){t.dispose()})})||this}return i}(Lt),Ni=function(n){W(i,n);function i(){var e=n.call(this,function(){T(e._disposer)&&(e._disposer.dispose(),e._disposer=void 0)})||this;return e}return i.prototype.get=function(){return this._value},i.prototype.set=function(e,t){T(this._disposer)&&this._disposer.dispose(),this._disposer=t,this._value=e},i.prototype.reset=function(){this.set(void 0,void 0)},i}(Lt),yu=function(n){W(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e._counter=0,e}return i.prototype.increment=function(){var e=this;return++this._counter,new Lt(function(){--e._counter,e._counter===0&&e.dispose()})},i}(Lt),Gh=!1,ul=[],ho=[],bl=[],$h=[],Km=1e3/60,Bd=typeof requestAnimationFrame=="function"?function(n){requestAnimationFrame(n)}:function(n){setTimeout(n,Km)};function Bp(){for(var n=Date.now(),i=ul.length,e=0;e<i;++e)ul[e](n);Xm(ul,i);for(var e=0;e<ho.length;++e)ho[e](n);ho.length=0;for(var e=0;e<bl.length;++e)bl[e](n);bl.length=0,ul.length===0&&ho.length===0?Gh=!1:Bd(Bp)}function zp(){Gh||(Gh=!0,Bd(Bp))}function qm(n){ho.push(n),zp()}function Mf(n){bl.push(n),zp()}function Zm(n){$h.push(n)}function Qm(){for(var n=Date.now(),i=$h.length,e=0;e<i;++e)$h.shift()(n)}var Ca=function(){function n(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}return n.prototype.isDisposed=function(){return this._disposed},n.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var i=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{De(i,function(e){e.disposer.dispose()})}finally{this._killed=null,this._iterating=null}}},n.prototype.hasListeners=function(){return this._listeners.length!==0},n.prototype.hasListenersByType=function(i){return Yd(this._listeners,function(e){return(e.type===null||e.type===i)&&!e.killed})},n.prototype.enable=function(){this._enabled=!0},n.prototype.disable=function(){this._enabled=!1},n.prototype.enableType=function(i){delete this._disabled[i]},n.prototype.disableType=function(i,e){e===void 0&&(e=1/0),this._disabled[i]=e},n.prototype._removeListener=function(i){if(this._iterating===0){var e=this._listeners.indexOf(i);if(e===-1)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(i)},n.prototype._removeExistingListener=function(i,e,t,r){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener(function(a){a.once===i&&a.type===e&&(t==null||a.callback===t)&&a.context===r&&a.disposer.dispose()})},n.prototype.isEnabled=function(i){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(i)&&this._disabled[i]==null},n.prototype.has=function(i,e,t){var r=Yp(this._listeners,function(a){return a.once!==!0&&a.type===i&&(e==null||a.callback===e)&&a.context===t});return r!==-1},n.prototype._shouldDispatch=function(i){if(this._disposed)throw new Error("EventDispatcher is disposed");var e=this._disabled[i];return C(e)?(e<=1?delete this._disabled[i]:--this._disabled[i],!1):this._enabled},n.prototype._eachListener=function(i){var e=this;++this._iterating;try{De(this._listeners,i)}finally{--this._iterating,this._iterating===0&&this._killed.length!==0&&(De(this._killed,function(t){e._removeListener(t)}),this._killed.length=0)}},n.prototype.dispatchImmediately=function(i,e){this._shouldDispatch(i)&&this._eachListener(function(t){!t.killed&&(t.type===null||t.type===i)&&t.dispatch(i,e)})},n.prototype.dispatch=function(i,e){this._shouldDispatch(i)&&this._eachListener(function(t){!t.killed&&(t.type===null||t.type===i)&&Zm(function(){t.killed||t.dispatch(i,e)})})},n.prototype._on=function(i,e,t,r,a,s){var o=this;if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(i,e,t,r);var l={type:e,callback:t,context:r,shouldClone:a,dispatch:s,killed:!1,once:i,disposer:new Lt(function(){l.killed=!0,o._removeListener(l)})};return this._listeners.push(l),l},n.prototype.onAll=function(i,e,t){return t===void 0&&(t=!0),this._on(!1,null,i,e,t,function(r,a){return i.call(e,r,a)}).disposer},n.prototype.on=function(i,e,t,r){return r===void 0&&(r=!0),this._on(!1,i,e,t,r,function(a,s){return e.call(t,s)}).disposer},n.prototype.once=function(i,e,t,r){r===void 0&&(r=!0);var a=this._on(!0,i,e,t,r,function(s,o){a.disposer.dispose(),e.call(t,o)});return a.disposer},n.prototype.off=function(i,e,t){this._removeExistingListener(!1,i,e,t)},n.prototype.copyFrom=function(i){var e=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(i===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");De(i._listeners,function(t){!t.killed&&t.shouldClone&&(t.type===null?e.onAll(t.callback,t.context):t.once?e.once(t.type,t.callback,t.context):e.on(t.type,t.callback,t.context))})},n}(),Up=function(n){W(i,n);function i(e){var t=n.call(this)||this;return t.target=e,t}return i.prototype.copyFrom=function(e){var t=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(e===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");De(e._listeners,function(r){r.context!==e.target&&!r.killed&&r.shouldClone&&(r.type===null?t.onAll(r.callback,r.context):r.once?t.once(r.type,r.callback,r.context):t.on(r.type,r.callback,r.context))})},i}(Ca);function Jm(n){return function(i){for(var e in n)if(kn(n,e)&&!i([e,n[e]]))break}}function Xp(n){var i=[];for(var e in n)kn(n,e)&&i.push(e);return i}function e0(n,i){return Xp(n).sort(i)}function kn(n,i){return{}.hasOwnProperty.call(n,i)}function Gp(n,i){for(var e in n)if(kn(n,e)&&!i(e,n[e]))break}function $e(n,i){Gp(n,function(e,t){return i(e,t),!0})}function Gn(n,i,e){De(e0(n,e),function(t){i(t,n[t])})}function Kh(n,i){return Object.assign({},n,i)}function t0(n){return JSON.parse(JSON.stringify(n))}function Ci(n,i,e){De(e,function(t){T(n[t])&&(i[t]=n[t])})}function i0(n,i,e){De(e,function(t){i[t]=n[t]})}function to(n,i){Ci(n,i,Xp(n))}function qa(n){return function(i){for(var e=n.length,t=0;t<e&&i(n[t]);++t);}}function r0(n){var i=0;return n(function(e){return++i,!0}),i}function Oo(n){var i=[];return n(function(e){return i.push(e),!0}),i}function Yr(n,i){n(i)}function ue(n,i){n(function(e){return i(e),!0})}function ws(n,i){return qa(Oo(n).sort(i))}function $p(n,i){return function(e){return n(function(t){return e(i(t))})}}function n0(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return function(e){for(var t=!0,r=function(o){return t=e(o)},a=n.length,s=0;s<a&&(n[s](r),!!t);++s);}}function a0(n){return function(i){var e=!0,t=function(r){return e=i(r)};n(function(r){return r(t),e})}}function Za(n){return function(i){var e=0;n(function(t){return i([e++,t])})}}function s0(n,i){var e;return n(function(t){return i(t)?(e=t,!1):!0}),e}function zd(n,i){var e=!1;return n(function(t){return i(t)?(e=!0,!1):!0}),e}var Ud=function(){function n(i,e){this.createNewItems=!1,this.list=i,this._create=e,this.reset()}return n.prototype.reset=function(){this._listCopy=Oo(this.list.iterator())},n.prototype.clear=function(){this._listCopy.length=0},n.prototype.getFirst=function(){return this.returnItem(0)},n.prototype.getLast=function(){return this.returnItem(this._listCopy.length-1)},n.prototype.find=function(i){var e=Yp(this._listCopy,i);if(e!==-1){var t=this._listCopy[e];return Qe(this._listCopy,t),t}else return this.getLast()},n.prototype.removeItem=function(i){return Qe(this._listCopy,i)},n.prototype.returnItem=function(i){if(i>=0&&i<this._listCopy.length){var e=this._listCopy[i];return Qe(this._listCopy,e),e}else if(this.createNewItems)return this._create()},n.prototype.iterator=function(){return qa(this._listCopy)},n}();function qh(n,i){return n===i?0:n<i?-1:1}function Af(n,i){return new Array(i+1).join(n)}function o0(n){for(var i="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=0;t<n;t++)i+=e.charAt(Math.floor(Math.random()*e.length));return i}var Qa=function(n){W(i,n);function i(e){var t=this,r=e.events.on("removed",function(a){a.oldValue.dispose()},void 0,!1);return t=n.call(this,function(){r.dispose(),ue(e.iterator(),function(a){var s=a[1];s.dispose()})})||this,t}return i}(Lt),Gt=function(){function n(){this.events=new Ca,this._dictionary={}}return n.prototype.hasKey=function(i){return kn(this._dictionary,i)},n.prototype.getKey=function(i){return this._dictionary[i]},n.prototype.insertKey=function(i,e){if(kn(this._dictionary,i))throw new Error("Ke
1y "+i+" already exists in dictionary");this._dictionary[i]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:i,newValue:e})},n.prototype.setKey=function(i,e){if(kn(this._dictionary,i)){var t=this._dictionary[i];t!==e&&(this._dictionary[i]=e,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:i,oldValue:t,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:t}))}else this._dictionary[i]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:i,newValue:e})},n.prototype.updateKey=function(i,e){if(kn(this._dictionary,i)){var t=this._dictionary[i],r=e(t);t!==r&&(this._dictionary[i]=r,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:i,oldValue:t,newValue:r}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:t}))}else throw new Error("Key "+i+" doesn't exist in dictionary")},n.prototype.removeKey=function(i){if(kn(this._dictionary,i)){var e=this._dictionary[i];delete this._dictionary[i],this.events.isEnabled("removeKey")&&this.events.dispatchImmediately("removeKey",{type:"removeKey",target:this,key:i,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e})}},n.prototype.insertKeyIfEmpty=function(i,e){return this.hasKey(i)||this.insertKey(i,e()),this.getKey(i)},n.prototype.clear=function(){var i=this;this.events.isEnabled("removed")&&$e(this._dictionary,function(e,t){i.events.dispatchImmediately("removed",{type:"removed",target:i,oldValue:t})}),this._dictionary={},this.events.isEnabled("cleared")&&this.events.dispatchImmediately("cleared",{type:"cleared",target:this})},n.prototype.copyFrom=function(i){var e=this;ue(i.iterator(),function(t){e.setKey(t[0],t[1])})},n.prototype.iterator=function(){return Jm(this._dictionary)},n.prototype[Symbol.iterator]=function(){var i,e,t,r;return Tt(this,function(a){switch(a.label){case 0:i=[];for(e in this._dictionary)i.push(e);t=0,a.label=1;case 1:return t<i.length?(r=i[t],kn(this._dictionary,r)?[4,[r,this._dictionary[r]]]:[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return t++,[3,1];case 4:return[2]}})},n.prototype.each=function(i){ue(this.iterator(),function(e){var t=_s(e,2),r=t[0],a=t[1];return i(r,a)})},n.prototype.sortedIterator=function(){return ws(this.iterator(),function(i,e){return qh(i[0],e[0])})},n}(),To=function(n){W(i,n);function i(e){var t=n.call(this)||this;return t.template=e,t}return Object.defineProperty(i.prototype,"template",{get:function(){return this._template},set:function(e){e.isTemplate=!0,this._template=e},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;ue(e.iterator(),function(r){t.setKey(r[0],r[1].clone())})},i.prototype.create=function(e){var t=this;return this.insertKeyIfEmpty(e,function(){return t.template.clone()})},i}(Gt),l0=function(){function n(){this._storage=new Gt,this.ttl=1e3}return n.prototype.set=function(i,e,t,r){var a=this._storage.insertKeyIfEmpty(i,function(){return new Gt}),s={touched:new Date().getTime(),ttl:C(r)?r:this.ttl,value:t};
1a.setKey(e,s)},n.prototype.get=function(i,e,t){if(t===void 0&&(t=void 0),this._storage.hasKey(i)){var r=this._storage.getKey(i);if(r.hasKey(e)){var a=r.getKey(e);return a.ttl&&a.touched+a.ttl<new Date().getTime()&&(a.expired=!0),a.expired?(r.removeKey(e),t):a.value}else return t}else return t},n.prototype.clear=function(i){i?this._storage.removeKey(i):this._storage.clear()},n}(),yo=new l0,u0=function(){function n(){var i=this;this.events=new Ca,this.themes=[],this.loadedThemes={},this._uidCount=0,this.registeredClasses={},this._placeholders={},this.invalidSprites={},this.invalidDatas={},this.invalidRawDatas=[],this.invalidDataItems=[],this.invalidDataRange=[],this.invalidPositions={},this.invalidLayouts={},this.baseSprites=[],this.baseSpritesByUid={},this.queue=[],this.deferred=[],this.uid=this.getUniqueId(),this.invalidSprites.noBase=[],this.invalidDatas.noBase=[],this.invalidLayouts.noBase=[],this.invalidPositions.noBase=[],typeof addEventListener<"u"&&(addEventListener("beforeprint",function(){De(i.baseSprites,function(e){var t=e.paper.svg;t.setAttribute("viewBox","0 0 "+t.clientWidth+" "+t.clientHeight)})}),addEventListener("afterprint",function(){De(i.baseSprites,function(e){var t=e.paper.svg;t.removeAttribute("viewBox")})}))}return n.prototype.getUniqueId=function(){var i=this._uidCount;return this._uidCount+=1,"id-"+i},Object.defineProperty(n.prototype,"map",{get:function(){return this._map||(this._map=new Gt),this._map},enumerable:!0,configurable:!0}),n.prototype.setCache=function(i,e,t){yo.set(this.uid,i,e,t)},n.prototype.getCache=function(i,e){return e===void 0&&(e=void 0),yo.get(this.uid,i,e)},n.prototype.dispatch=function(i,e){this.events.isEnabled(i)&&(e?(e.type=i,e.target=e.target||this,this.events.dispatch(i,{type:i,target:this})):this.events.dispatch(i,{type:i,target:this}))},n.prototype.dispatchImmediately=function(i,e){this.events.isEnabled(i)&&(e?(e.type=i,e.target=e.target||this,this.events.dispatchImmediately(i,e)):this.events.dispatchImmediately(i,{type:i,target:this}))},n.prototype.getPlaceholder=function(i){return T(this._placeholders[i])?this._placeholders[i]:(this._placeholders[i]="__amcharts_"+i+"_"+o0(8)+"__",this._placeholders[i])},n.prototype.addToInvalidComponents=function(i){i.baseId?Jr(this.invalidDatas[i.baseId],i):Jr(this.invalidDatas.noBase,i)},n.prototype.removeFromInvalidComponents=function(i){i.baseId&&Qe(this.invalidDatas[i.baseId],i),Qe(this.invalidDatas.noBase,i)},n.prototype.addToInvalidSprites=function(i){i.baseId?ys(this.invalidSprites[i.baseId],i):ys(this.invalidSprites.noBase,i)},n.prototype.removeFromInvalidSprites=function(i){i.baseId&&Qe(this.invalidSprites[i.baseId],i),Qe(this.invalidSprites.noBase,i)},n.prototype.addToInvalidPositions=function(i){i.baseId?ys(this.invalidPositions[i.baseId],i):ys(this.invalidPositions.noBase,i)},n.prototype.removeFromInvalidPositions=function(i){i.baseId&&Qe(this.invalidPositions[i.baseId],i),Qe(this.invalidPositions.noBase,i)},n.prototype.addToInvalidLayouts=function(i){i.baseId?ys(this.invalidLayouts[i.baseId],i):ys(this.invalidLayouts.noBase,i)},n.prototype.removeFromInvalidLayouts=function(i){i.baseId&&Qe(this.invalidLayouts[i.baseId],i),Qe(this.invalidLayouts.noBase,i)},n}(),V=new u0;function pr(n,i){var e=V.registeredClasses[i];return e!=null&&n instanceof e}var jf=function(){function n(i,e,t){this._array=i,this._start=e,this._end=t}return n.prototype.iterator=function(){var i=this;return function(e){if(i._start!==i._end)if(i._start<i._end)for(var t=i._start;t<i._end&&e(i._array[t]);++t);else for(var t=i._start-1;t>=i._end&&e(i._array[t]);--t);}},n.prototype.backwards=function(){return new n(this._array,this._end,this._start)},n.prototype.range=function(i,e){if(i<=e){if(this._start===this._end)return this;if(this._start<this._end){var t=e-i;return i=Math.max(this._start+i,this._start),e=Math.min(i+t,this._end),new n(this._array,i,e)}else{var t=e-i;return i=Math.max(this._start-i,this._end),e=Math.max(i-t,this._end),new n(this._array,i,e)}}else throw new Error("Start index must be lower than end index")},n}();(function(n){W(i,n);function i(e,t,r){var a=n.call(this,[e.events.on("inserted",function(s){var o=s.newValue,l=a._getKey(o),u=0;Yr(e.iterator(),function(h){return h===o?!1:(a._getKey(h)===l&&++u,!0)}),a._insert(o,l,u)},void 0,!1),e.events.on("removed",function(s){a._remove(s.oldValue)},void 0,!1)])||this;return a._keys=[],a._groups={},a._getKey=t,a._sort=r,ue(e.iterator(),function(s){a._insert(s,t(s))}),a}return i.prototype._insert=function(e,t,r){if(this._groups[t]==null){this._groups[t]=[];var a=Rl(this._keys,this._sort,t),s=a.found,o=a.index;
1if(s)throw new Error("Key already exists: "+t);js(this._keys,o,t)}r==null?this._groups[t].push(e):js(this._groups[t],r,e)},i.prototype._remove=function(e){var t=this._getKey(e),r=this._groups[t];if(r!=null&&(Qe(r,e),r.length===0)){delete this._groups[t];var a=Rl(this._keys,this._sort,t),s=a.found,o=a.index;if(s)Vs(this._keys,o);else throw new Error("Key doesn't exist: "+t)}},i.prototype.iterator=function(){var e=this;return a0($p(qa(this._keys),function(t){return qa(e._groups[t])}))},i})(di);var zt=function(n){W(i,n);function i(e,t){t===void 0&&(t=!0);var r=this;if(t){var a=e.events.on("removed",function(s){s.oldValue.dispose()},void 0,!1);r=n.call(this,function(){a.dispose(),ue(e.iterator(),function(s){s.dispose()})})||this}else r=n.call(this,function(){ue(e.iterator(),function(s){s.dispose()})})||this;return r}return i}(Lt);function io(n,i){if(!(n>=0&&n<i))throw new Error("Index out of bounds: "+n)}var Pt=function(){function n(i){i===void 0&&(i=[]),this.events=new Ca,this._values=i}return Object.defineProperty(n.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),n.prototype.contains=function(i){return this._values.indexOf(i)!==-1},n.prototype.removeValue=function(i){for(var e=0,t=this._values.length;e<t;)this._values[e]===i?(this.removeIndex(e),--t):++e},n.prototype.indexOf=function(i){return yn(this._values,i)},Object.defineProperty(n.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),n.prototype.hasIndex=function(i){return i>=0&&i<this._values.length},n.prototype.getIndex=function(i){return this._values[i]},n.prototype.setIndex=function(i,e){io(i,this._values.length);var t=this._values[i];return t!==e&&(this._values[i]=e,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:i,oldValue:t,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:t}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})),t},n.prototype.insertIndex=function(i,e){io(i,this._values.length+1),js(this._values,i,e),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:i,newValue:e}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})},n.prototype._sortQuicksort=function(i,e,t){if(i<e){var r=this._sortPartition(i,e,t);this._sortQuicksort(i,r,t),this._sortQuicksort(r+1,e,t)}},n.prototype._sortPartition=function(i,e,t){for(var r=this._values,a=r[i],s=i-1,o=e+1;;){do++s;while(t(r[s],a)<0);do--o;while(t(r[o],a)>0);if(s>=o)return o;this.swap(s,o)}},n.prototype.sort=function(i){this._sortQuicksort(0,this._values.length-1,i)},n.prototype.swap=function(i,e){var t=this._values.length;if(io(i,t),io(e,t),i!==e){var r=this._values[i],a=this._values[e];this._values[i]=a,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:i,oldValue:r,newValue:a}),this._values[e]=r,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:e,oldValue:a,newValue:r})}},n.prototype.removeIndex=function(i){io(i,this._values.length);var e=this._values[i];return Vs(this._values,i),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:i,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e}),e},n.prototype.moveValue=function(i,e){var t=this.indexOf(i);if(t!==-1){var r=this._values[t];Vs(this._values,t),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:t,oldValue:r})}e==null?(e=this._values.length,this._values.push(i)):js(this._values,e,i),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:i}),t===-1&&this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:i})},n.prototype.push=function(i){var e=this._values.push(i)-1;return this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:i}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:i}),i},n.prototype.unshift=function(i){this.insertIndex(0,i)},n.prototype.pushAll=function(i){var e=this;De(i,function(t){e.push(t)})},n.prototype.copyFrom=function(i){this.pushAll(i._values)},n.prototype.pop=function(){var i=this._values.length-1;return i<0?void 0:this.removeIndex(this._values.length-1)},n.prototype.shift=function(){return this._values.length?this.removeIndex(0):void 0},n.prototype.setAll=function(i){var e=this,t=So(this._values);this._values.length=0,De(i,function(r){e._values.push(r)}),this.events.isEnabled("setAll")&&this.events.dispatchImmediately("setAll",{type:"setAll",target:this,oldArray:t,newArray:this._values}),this.events.isEnabled("removed")&&De(t,function(r){e.events.dispatchImmediately("removed",{type:"removed",target:e,oldValue:r})}),this.events.isEnabled("inserted")&&De(this._values,function(r){e.events.dispatchImmediately("inserted",{type:"inserted",target:e,newValue:r})})},n.prototype.clear=function(){this.setAll([])},n.prototype.iterator=function(){return qa(this._values)},n.prototype[Symbol.iterator]=function(){var i,e;return Tt(this,function(t){switch(t.label){case 0:i=this._values.length,e=0,t.label=1;case 1:return e<i?[4,this._values[e]]:[3,4];case 2:t.sent(),t.label=3;case 3:return++e,[3,1];case 4:return[2]}})},n.prototype.each=function(i){De(this._values,i)},n.prototype.range=function(i,e){if(i<=e){var t=e-i;return i=Math.max(i,0),e=Math.min(i+t,this._values.length),new jf(this._values,i,e)}else throw new Error("Start index must be lower than end index")},n.prototype.backwards=function(){return new jf(this._values,this._values.length,0)},n}(),fi=function(n){W(i,n);function i(e){var t=n.call(this)||this;return t.template=e,t}return Object.defineProperty(i.prototype,"template",{get:function(){return this._template},set:function(e){e.isTemplate=!0,this._template=e},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;ue(e.iterator(),function(r){t.push(r.clone())})},i.prototype.create=function(e){var t=e!=null?new e:this.template.clone();return this.push(t),t},i.prototype.clone=function(){for(var e=new i(this.template),t=this.values,r=t.length,a=0;a<r;++a)e.push(t[a].clone());return e},i}(Pt),Kp=function(){function n(i){this._values=[],this.events=new Ca,i!=null&&this.setAll(i)}return Object.defineProperty(n.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),n.prototype._insert=function(i){return this._values.push(i),this._values.length-1},Object.defineProperty(n.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),n.prototype.indexOf=function(i){return yn(this._values,i)},n.prototype.contains=function(i){return this.indexOf(i)!==-1},n.prototype.getIndex=function(i){return this._values[i]},Object.defineProperty(n.prototype,"first",{get:function(){return this._values[0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"last",{get:function(){return this._values[this._values.length-1]},enumerable:!0,configurable:!0}),n.prototype.insert=function(i){var e=this._insert(i);this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,index:e,newValue:i})},n.prototype.remove=function(i){var e=this.indexOf(i);if(e!==-1){var t=this._values[e];Vs(this._values,e),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,index:e,oldValue:t})}},n.prototype.setAll=function(i){var e=this;Um(this._values,function(t,r){e._values.pop(),e.events.isEnabled("removed")&&e.events.dispatchImmediately("removed",{type:"removed",target:e,index:r,oldValue:t})}),De(i,function(t){e.insert(t)})},n.prototype.clear=function(){this.setAll([])},n.prototype.slice=function(i,e){var t=new n;return t._values=this._values.slice(i,e),t},n.prototype.findClosestIndex=function(i,e,t){t===void 0&&(t="any");var r=-1,a,s,o=0;return Yr(this.iterator(),function(l){var u=e(l);if(t==="any"){if(u===i)return r=o,!1;var h=Math.abs(i-u);(!T(s)||s>h)&&(r=o,a=u,s=h)}else t==="left"&&u<i?(!T(a)||a<u)&&(r=o,a=u):t==="right"&&u>=i&&(!T(a)||a>=u)&&(r=o,a=u);return++o,!0}),r===-1&&(t==="left"?r=0:t==="right"&&(r=this.length-1)),r},n.prototype.iterator=function(){return qa(this._values)},n.prototype[Symbol.iterator]=function(){var i,e;return Tt(this,function(t){switch(t.label){case 0:i=this._values.length,e=0,t.label=1;case 1:return e<i?[4,this._values[e]]:[3,4];case 2:t.sent(),t.label=3;case 3:return++e,[3,1];case 4:return[2]}})},n.prototype.each=function(i){De(this._values,i)},n}(),Xd=function(n){W(i,n);function i(e){var t=n.call(this)||this;return t._ordering=e,t}return i.prototype._insert=function(e){var t=Rl(this._values,this._ordering,e).index;return js(this._values,t,e),t},i.prototype.indexOf=function(e){var t=Rl(this._values,this._ordering,e),r=t.foun
1d,a=t.index;return r?a:-1},i.prototype.update=function(e){var t=yn(this._values,e);if(t!==-1){var r=this._values.length-1;(t===0||this._ordering(this._values[t-1],e)<0)&&(t===r||this._ordering(e,this._values[t+1])<0)||(Vs(this._values,t),this._insert(e))}},i}(Kp),Nl=function(n){W(i,n);function i(e){var t=n.call(this)||this;return t.template=e,t}return Object.defineProperty(i.prototype,"template",{get:function(){return this._template},set:function(e){e.isTemplate=!0,this._template=e},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;ue(e.iterator(),function(r){t.insert(r.clone())})},i.prototype.slice=function(e,t){var r=new i(this.template);return r._values=this._values.slice(e,t),r},i.prototype.create=function(e){var t=e!=null?new e:this.template.clone();return this.insert(t),t},i}(Kp),qp=function(n){W(i,n);function i(e,t){var r=n.call(this,t)||this;return r.template=e,r}return Object.defineProperty(i.prototype,"template",{get:function(){return this._template},set:function(e){e.isTemplate=!0,this._template=e},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;ue(e.iterator(),function(r){t.insert(r.clone())})},i.prototype.create=function(e){var t=e!=null?new e:this.template.clone();return this.insert(t),t},i}(Xd);function En(n,i){return n===i?0:n<i?-1:1}function Zh(n){switch(n){case 0:return 0;case-1:return 1;case 1:return-1}}function Zp(n,i){return n===0?i:n}var h0=function(){function n(){this._callbackId=0,this._callbacks=new Xd(function(i,e){return Zp(En(i.priority,e.priority),En(i.id,e.id))})}return n.prototype.addAll=function(i,e,t,r,a){r===void 0&&(r=0),this._callbacks.insert({id:++this._callbackId,key:e,callback:t,priority:r,scope:a,type:i})},n.prototype.isEnabled=function(i,e){return Yd(this._callbacks.values,function(t){return t.key===e&&i instanceof t.type})},n.prototype.applyAll=function(i,e,t){var r=this._callbacks.values,a=r.length;if(a==0)return t;for(var s=0;s<a;++s){var o=r[s];o.key===e&&i instanceof o.type&&(t=o.callback.call(o.scope,t,i,e))}return t},n}(),Qh=new h0,Lr=function(){function n(i){this._callbackId=0,this._callbacks=new Xd(function(e,t){return Zp(En(e.priority,t.priority),En(e.id,t.id))}),this._disabled={},this.object=i,this.events=this._callbacks.events}return n.prototype.add=function(i,e,t,r){t===void 0&&(t=0),this._callbacks.insert({id:++this._callbackId,key:i,callback:e,priority:t,scope:r})},n.prototype.has=function(i,e,t,r){return t===void 0&&(t=0),zd(this._callbacks.iterator(),function(a){return a.key===i&&a.callback===e&&a.priority===t&&a.scope===r})},n.prototype.remove=function(i,e){var t=this;De(Oo(this._callbacks.iterator()),function(r){r.key===i&&(!C(e)||e===r.priority)&&t._callbacks.remove(r)})},n.prototype.enableKey=function(i){delete this._disabled[i]},n.prototype.disableKey=function(i,e){e===void 0&&(e=1/0),this._disabled[i]=e},n.prototype._hasListenersByType=function(i){return Yd(this._callbacks.values,function(e){return e.key===i})},n.prototype.isEnabled=function(i){return this._disabled[i]==null&&(this._hasListenersByType(i)||Qh.isEnabled(this.object,i))},n.prototype._shouldDispatch=function(i){var e=this._disabled[i];return C(e)?(e<=1?delete this._disabled[i]:--this._disabled[i],!1):!0},n.prototype.apply=function(i,e){if(this._shouldDispatch(i)){var t=this._callbacks.values,r=t.length;if(r>0)for(var a=0;a<r;++a){var s=t[a];s.key===i&&(e=s.callback.call(s.scope,e,this.object,i))}return e=Qh.applyAll(this.object,i,e),e}else return e},n.prototype.keys=function(){return Oo($p(this._callbacks.iterator(),function(i){return i.key}))},n.prototype.copyFrom=function(i){var e=this;ue(i._callbacks.iterator(),function(t){e.add(t.key,t.callback,t.priority,t.scope)}),$e(i._disabled,function(t,r){e._disabled[t]=r})},n.prototype.clear=function(){this._callbacks.clear()},n}(),Vf={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgrey:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32}
1,gray:{r:128,g:128,b:128},grey:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgrey:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function d0(n,i){var e;return Vf[n]?e=Vf[n]:n.charAt(0)==="#"?e=c0(n):n.match(/^rgba?\(/)&&(e=p0(n)),e||(e={r:0,g:0,b:0,a:1}),T(i)&&(e.a=i),e}function c0(n){var i=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;n=n.replace(i,function(t,r,a,s){return r+r+a+a+s+s});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:f0(n)}function f0(n){var i=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])$/i;n=n.replace(i,function(t,r,a,s,o){return r+r+a+a+s+s+o+o});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16),a:parseInt(e[4],16)/256}:void 0}function p0(n){n=n.replace(/[ ]/g,"");var i=n.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(i)i.push("1");else if(i=n.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!i)return;return{r:parseInt(i[1]),g:parseInt(i[2]),b:parseInt(i[3]),a:parseFloat(i[4])}}function y0(n){return"#"+gh(n.r.toString(16))+gh(n.g.toString(16))+gh(n.b.toString(16))}function v0(n){return T(n.a)&&n.a!==1?"rgba("+n.r+","+n.g+","+n.b+","+n.a+")":"rgb("+n.r+","+n.g+","+n.b+")"}function gh(n){return n.length==1?"0"+n:""+n}function Hl(n,i,e){return e=ke(e,0,1),n?i?{r:n.r+Math.round((i.r-n.r)*e),g:n.g+Math.round((i.g-n.g)*e),b:n.b+Math.round((i.b-n.b)*e),a:(n.a||1)+Math.round(((i.a||1)-(n.a||1))*e)}:n:i||n}function g0(n,i){return n&&{r:Math.max(0,Math.min(255,n.r+xl(n.r,i))),g:Math.max(0,Math.min(255,n.g+xl(n.g,i))),b:Math.max(0,Math.min(255,n.b+xl(n.b,i))),a:n.a}}function xl(n,i){var e=i>0?255-n:n;return Math.round(e*i)}
1function m0(n,i){if(n){var e=Math.min(Math.max(n.r,n.g,n.b),230),t=xl(e,i);return{r:Math.max(0,Math.min(255,Math.round(n.r+t))),g:Math.max(0,Math.min(255,Math.round(n.g+t))),b:Math.max(0,Math.min(255,Math.round(n.b+t))),a:n.a}}else return n}function b0(n,i){if(n==null||i==1)return n;var e=_l(n);return e.s=i,Qp(e)}function Qp(n){var i,e,t,r=n.h,a=n.s,s=n.l;if(a==0)i=e=t=s;else{var o=function(d,f,p){return p<0&&(p+=1),p>1&&(p-=1),p<.16666666666666666?d+(f-d)*6*p:p<.5?f:p<.6666666666666666?d+(f-d)*(.6666666666666666-p)*6:d},l=s<.5?s*(1+a):s+a-s*a,u=2*s-l;i=o(u,l,r+1/3),e=o(u,l,r),t=o(u,l,r-1/3)}return{r:Math.round(i*255),g:Math.round(e*255),b:Math.round(t*255)}}function _l(n){var i=n.r/255,e=n.g/255,t=n.b/255,r=Math.max(i,e,t),a=Math.min(i,e,t),s=0,o=0,l=(r+a)/2;if(r===a)s=o=0;else{var u=r-a;switch(o=l>.5?u/(2-r-a):u/(r+a),r){case i:s=(e-t)/u+(e<t?6:0);break;case e:s=(t-i)/u+2;break;case t:s=(i-e)/u+4;break}s/=6}return{h:s,s:o,l}}function x0(n){return(n.r*299+n.g*587+n.b*114)/1e3>=128}var wt=function(){function n(i){this._value=i}return Object.defineProperty(n.prototype,"rgb",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hex",{get:function(){return this._value?y0(this._value):"none"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rgba",{get:function(){return this._value?v0(this._value):"none"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alpha",{get:function(){return this._value!=null&&this._value.a!=null?this._value.a:1},set:function(i){this._value&&(this._value.a=i)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"lightColor",{get:function(){return this._lightColor||(this._lightColor=new n({r:255,g:255,b:255})),this._lightColor},set:function(i){this._lightColor=i},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"darkColor",{get:function(){return this._darkColor||(this._darkColor=new n({r:0,g:0,b:0})),this._darkColor},set:function(i){this._darkColor=i},enumerable:!0,configurable:!0}),n.prototype.toString=function(){return this.alpha<1?this.rgba:this.hex},n.prototype.lighten=function(i){return new n(g0(this.rgb,i))},n.prototype.brighten=function(i){return new n(m0(this.rgb,i))},n.prototype.saturate=function(i){return new n(b0(this.rgb,i))},Object.defineProperty(n.prototype,"alternative",{get:function(){if(this.rgb!=null)return x0(this.rgb)?this.darkColor:this.lightColor;throw new Error("Color does not exist")},enumerable:!0,configurable:!0}),n}();function qe(n,i){if(!T(n))return new wt(void 0);if(typeof n=="string"){var e="_color_"+n+"_"+(i||"1"),t=V.getCache(e);if(t)return new wt({r:t.r,g:t.g,b:t.b,a:t.a});var r=d0(n,i);return V.setCache(e,r),new wt(r)}return n instanceof wt?(T(i)&&(n.alpha=i),n):new wt(n)}function _0(n){return n instanceof wt}function w0(n){return qe(n)}function qr(n){return T(n)&&!_0(n)?w0(n):n}var cr=function(){function n(){this._disposed=!1,this._disposers=[],this.className="BaseObject"}return n.prototype.debug=function(){},Object.defineProperty(n.prototype,"uid",{get:function(){return this._uid||(this._uid=V.getUniqueId(),V.map.setKey(this._uid,this)),this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return this._id},set:function(i){this._id=i},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"map",{get:function(){return this._map||(this._map=new Gt),this._map},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"delayedMap",{get:function(){return this._delayedMap||(this._delayedMap=new Gt),this._delayedMap},enumerable:!0,configurable:!0}),n.prototype.addDelayedMap=function(i,e){var t=this.delayedMap;t.hasKey(e)||t.setKey(e,[]);var r=t.getKey(e);r.push({property:i,target:this})},n.prototype.processDelayedMap=function(){var i=this;this.delayedMap.each(function(e,t){if(i.map.hasKey(e)){var r=i.map.getKey(e);De(t,function(a){a.target[a.property]=r}),i.delayedMap.removeKey(e)}})},n.prototype.applyTheme=function(){var i=this;if(V){var e=this.getCurrentThemes();e&&De(e,function(t,r){t(i)})}},Object.defineProperty(n.prototype,"themes",{get:function(){return this._themes},set:function(i){this._themes=i},enumerable:!0,configurable:!0}),n.prototype.getCurrentThemes=function(){return this.themes||V.themes},n.prototype.isDisposed=function(){return this._disposed},n.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var i=this._disposers;for(this._disposers=null;i.length!==0;){var e=i.shift();e.dispose()}this.clearCache(),this.clonedFrom&&this.clonedFrom.clones.removeValue(this);var t=this._uid;t!=null&&V.map.removeKey(t)}},n.prototype.addDisposer=function(i){this._disposers.push(i)},n.prototype.removeDispose=function(i){if(!this._disposed){var e=yn(this._disposers,i);e>-1&&this._disposers.splice(e,1)}i.dispose()},n.prototype.clone=function(i){i||(i="clone-"+V.getUniqueId());var e=new this.constructor;return e.cloneId=i,e.copyFrom(this),e},Object.defineProperty(n.prototype,"clones",{get:function(){return this._clones||(this._clones=new Pt),this._clones},enumerable:!0,configurable:!0}),n.prototype.copyFrom=function(i){i.clones.push(this),this.clonedFrom=i},Object.defineProperty(n.prototype,"className",{get:function(){return this._className},set:function(i){this._className=i},enumerable:!0,configurable:!0}),n.prototype.setCache=function(i,e,t){yo.set(this.uid,i,e,t)},n.prototype.getCache=function(i,e){return e===void 0&&(e=void 0),yo.get(this.uid,i,e)},n.prototype.clearCache=function(){yo.clear(this.uid)},n.prototype.setTimeout=function(i,e){var t=this,r=setTimeout(function(){t.removeDispose(a),i()},e),a=new Lt(function(){clearTimeout(r)});return this._disposers.push(a),a},n.prototype.setInterval=function(i,e){var t=this,r=setInterval(function(){t.removeDispose(a),i()},e),a=new Lt(function(){clearTimeout(r)});return this._disposers.push(a),a},Object.defineProperty(n.prototype,"config",{set:function(i){try{this.processConfig(i)}catch(e){this.raiseCriticalError(e)}},enumerable:!0,configurable:!0}),n.prototype.processConfig=function(i){var e=this;if(i){var t=this;if(Gn(i,function(a,s){var o=s;if(a=="callback"&&typeof s=="function"&&s.call(t),e.hasProperty(a)){var l;if(Zt(o)&&T(o.type)&&(!Zt(t[a])||!T(t[a].className)||o.forceCreate||t[a].className!=o.type)&&!e.asIs(a)?(l=e.createClassInstance(o.type),l?t[a]=l:l=t[a]):l=t[a],l instanceof Lr)e.processAdapters(l,o);else if(l instanceof Ca)e.processEvents(l,o);else if(a=="locale"&&bt(o))window["am4lang_"+o]&&(t[a]=window["am4lang_"+o]);else if(a=="parent"&&bt(o)){var u=e.map.getKey(o);u?t[a]=u:e.addDelayedMap("parent",o)}else if(e.asIs(a))t[a]=o;else if(e.asFunction(a)&&bt(o))if(T(V.registeredClasses[o]))t[a]=V.registeredClasses[o];else throw Error("Invalid easing function: "+o);else if(o instanceof n)t[a]=o;else if(l instanceof n)l.config=o;else if(l instanceof fi||l instanceof Nl||l instanceof qp){if(Ui(o))l instanceof fi?e.processListTemplate(o,l):e.processOrderedTemplate(o,l);else if(Zt(o))if(o instanceof n)l.template=o;else{var h=void 0;T(o.template)?h=o.template:h=o,l.template instanceof n?l.template.config=h:$e(h,function(d,f){var p=l.template[d];p instanceof Lr?e.processAdapters(p,f):p instanceof Ca?e.processEvents(p,f):p instanceof To?e.processDictionaryTemplate(p,f):l.template[d]instanceof n?l.template[d].config=f:Zt(f)&&T(f.type)?(p=e.createClassInstance(f.type),p?(p instanceof n&&(p.config=f),l.template[d]=p):l.template[d]=f):p instanceof Pt?e.processList(f,p):l.template[d]=e.maybeColorOrPercent(f)}),T(o.values)&&(l instanceof fi?e.processListTemplate(o.values,l):e.processOrderedTemplate(o.values,l))}}else l instanceof Pt?a=="children"?e.processList(o,l,e):e.processList(o,l):l instanceof To?e.processDictionaryTemplate(l,o):l instanceof Gt?e.processDictionary(l,o):l instanceof wt||l instanceof mt?t[a]=e.maybeColorOrPercent(o):Zt(l)&&Zt(o)?to(o,l):(o=e.maybeColorOrPercent(o),t[a]=o)}else e.isReserved(a)||(t[a]=o)},this.configOrder),this.processingErrors.length){var r=this.processingErrors.join(`
2`);throw this._processingErrors=[],Error(r)}}},n.prototype.maybeColorOrPercent=function(i){if(bt(i)){if(i.match(/^[\-]?[0-9.]+\%$/))return pe(Bt(i));if(i.match(/^\#[0-9abcdef]{3,}$/i))return qe(i)}return i},n.prototype.processAdapters=function(i,e){var t=this;
2Ui(e)?De(e,function(r,a){i.add(r.key,r.callback,r.priority||0,t)}):Zt(e)&&$e(e,function(r,a){i.has(r,a)||i.add(r,a)})},n.prototype.processEvents=function(i,e){var t=this;Ui(e)?De(e,function(r,a){i.on(r.type,r.callback,t)}):Zt(e)&&$e(e,function(r,a){i.has(r,a)||i.on(r,a)})},n.prototype.processDictionaryTemplate=function(i,e){Zt(e)&&$e(e,function(t,r){var a;t=="template"?a=i.template:i.hasKey(t)?a=i.getKey(t):a=i.create(t),a instanceof n?a.config=r:Zt(a)&&Zt(r)?to(r,a):a.setKey(t,r)})},n.prototype.processDictionary=function(i,e){Zt(e)&&$e(e,function(t,r){i.setKey(t,r)})},n.prototype.processListTemplate=function(i,e){var t=this;for(De(i,function(r,a){var s=t.getConfigEntryType(r),o;if(e.hasIndex(a)&&!r.forceCreate)o=e.getIndex(a);else if(r instanceof n){e.push(r);return}else s?o=e.create(s):o=e.create();r===o||Zt(r)&&(o instanceof n?o.config=r:Zt(o)&&Zt(r)?to(r,o):e.setIndex(e.indexOf(o),r))});i.length>e.length;)e.pop()},n.prototype.processOrderedTemplate=function(i,e){var t=this;De(i,function(r,a){var s=t.getConfigEntryType(r),o;s?o=e.create(s):o=e.create(),Zt(r)&&(o instanceof n?o.config=r:Zt(o)&&Zt(r)?to(r,o):e.insert(r))})},n.prototype.processList=function(i,e,t){var r=this;Ui(i)||(i=[i]);var a=e.length,s=0;for(De(i,function(o,l){if(Zt(o)){var u=void 0;if(l<a&&!o.forceCreate)u=e.getIndex(l);else if(o instanceof n){e.push(o);return}else s++,u=r.createEntryInstance(o),t?u.parent=t:e.push(u);u instanceof n?u.config=o:Zt(u)&&Zt(o)&&to(o,u)}else e.hasIndex(l)?e.setIndex(l,o):e.push(o)});!t&&i.length+s<e.length;)e.pop()},n.prototype.configOrder=function(i,e){return i==e?0:i=="language"?-1:e=="language"?1:0},n.prototype.asIs=function(i){return yn(["locale"],i)!=-1},n.prototype.asFunction=function(i){return!1},n.prototype.createClassInstance=function(i){if(T(V.registeredClasses[i]))return new V.registeredClasses[i];throw Error('Invalid type: "'+i+'".')},n.prototype.createEntryInstance=function(i){var e;return T(i.type)&&(e=this.createClassInstance(i.type)),e||i},n.prototype.getConfigEntryType=function(i){if(T(i.type)){if(T(V.registeredClasses[i.type]))return V.registeredClasses[i.type];throw Error('Invalid type: "'+i.type+'".')}},n.prototype.hasProperty=function(i){return i in this},n.prototype.isReserved=function(i){return["type","forceCreate"].indexOf(i)!==-1},Object.defineProperty(n.prototype,"processingErrors",{get:function(){return this._processingErrors||(this._processingErrors=[]),this._processingErrors},enumerable:!0,configurable:!0}),n}(),Nn=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="BaseObjectEvents",e}return Object.defineProperty(i.prototype,"events",{get:function(){return this._eventDispatcher||(this._eventDispatcher=new Ca,this._disposers.push(this._eventDispatcher)),this._eventDispatcher},enumerable:!0,configurable:!0}),i.prototype.dispatch=function(e,t){this._eventDispatcher&&this.events.isEnabled(e)&&(t?(t.type=e,t.target=t.target||this,this.events.dispatch(e,{type:e,target:this})):this.events.dispatch(e,{type:e,target:this}))},i.prototype.dispatchImmediately=function(e,t){this._eventDispatcher&&this.events.isEnabled(e)&&(t?(t.type=e,t.target=t.target||this,this.events.dispatchImmediately(e,t)):this.events.dispatchImmediately(e,{type:e,target:this}))},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),e._eventDispatcher&&this.events.copyFrom(e._eventDispatcher)},i}(cr);function P0(){return/apple/i.test(navigator.vendor)}function C0(){return/MSIE |Trident\//.test(navigator.userAgent)}var Ff="string",wl="number",Pl="date",Jh="duration",Hr="__§§§__",Ps="__§§§§__";function na(n,i){return $e(n,function(e,t){T(t)&&(i[e]=t)}),i}function If(n){return/^[^#]*/.exec(n)[0]}function co(){var n="#";if(P0()){var i=document.baseURI;if(i){i=If(i);var e=If(location.href);i!==e&&(n=e+n)}}return n}function D0(n,i){return $e(n,function(e,t){i[e]=t}),i}function Yl(n){return T(n)&&n.toString()!==""}function ri(n,i){return C(n)?n:n!=null&&C(n.value)&&C(i)?i*n.value:0}function Bi(n,i,e){var t;return C(n)?(t=n,t<0&&(e?t=i+t:t=i-t)):n!=null&&C(n.value)&&(t=i*n.value),t}function S0(){var n=window.devicePixelRatio||1;return n}function Wl(n){var i=n.split("");return i[0]=i[0].toUpperCase(),i.join("")}function Ef(n){return JSON.stringify(n)}function ed(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function td(n,i,e,t,r){if(n.length<=i)return[n];var a=[];if(e){for(var s=-1,o=n.replace(/([,;:!?\\\/]+|[\s])/g,Hr+"$1"+Hr),l=o.split(Hr),u=1;u<l.length;u++){var h=l[u];(h=="."||h==",")&&l[u-1].match(/[\w]+$/)&&(l[u-1]+=h,l[u]="")}for(var u=0;u<l.length;u++){var h=l[u],d=h.length;if(d!==0){if(d>i&&(e!==!0||r!=!1)){t&&(h=mh(h));var f=h.match(new RegExp(".{1,"+i+"}","g"));if(f){if(t)for(var p=0;p<f.length;p++)f[p]=mh(f[p]);a=a.concat(f)}}else s===-1&&(a.push(""),s=0),a[s].length+d+1>i&&a[s]!==""&&(a.push(""),s++),a[s]+=h;s=a.length-1}}}else{var f=n.match(new RegExp(".{1,"+i+"}","g"));if(f){if(t)for(var p=0;p<f.length;p++)t||(f[p]=mh(f[p]));a=f}}return a.length==1&&e&&r&&a[0].length>i&&(a=[]),a}function id(n,i,e,t,r){if(n.length<=i)return n;i-=e.length,i<1&&(i=1);var a=td(n,i,t,r);return(a[0]||"")+e}function Jp(n){return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function O0(n){return n.replace(/[\s\uFEFF\xA0]+$/g,"")}function T0(n){return n.replace(/^[\s\uFEFF\xA0]+/g,"")}function mh(n){return n.split("").reverse().join("")}function nr(n,i,e){return i===void 0&&(i=0),e===void 0&&(e="0"),typeof n!="str
2ing"&&(n=n.toString()),i>n.length?Array(i-n.length+1).join(e)+n:n}function k0(n){if(typeof n>"u")return Ff;n=n.toLowerCase().replace(/^\[[^\]]*\]/,""),n=n.replace(/\[[^\]]+\]/,""),n=n.trim();var i=n.match(/\/(date|number|duration)$/);return i?i[1]:n===wl?wl:n===Pl?Pl:n===Jh?Jh:n.match(/[#0]/)?wl:n.match(/[ymwdhnsqaxkzgtei]/)?Pl:Ff}function Bl(n){return n.replace(/\/(date|number|duration)$/i,"")}function ey(n){return n&&n.replace(/<[^>]*>/g,"")}function rd(n){return n&&ey((""+n).replace(/[\n\r]+/g,". "))}function M0(n){if(ar(n))return"NaN";if(n===1/0)return"Infinity";if(n===-1/0)return"-Infinity";if(n===0&&1/n===-1/0)return"-0";var i=n<0;n=Math.abs(n);var e=ai(/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+n)),t=e[1],r=e[2]||"",a;if(e[3]==null)a=r===""?t:t+"."+r;else{var s=+e[3];if(n<1){var o=s-1;a="0."+Af("0",o)+t+r}else{var o=s-r.length;o===0?a=t+r:o<0?a=t+r.slice(0,o)+"."+r.slice(o):a=t+r+Af("0",o)}}return i?"-"+a:a}function ty(n){if(Do(n)){var i=new Date(n);return i.setMilliseconds(n.getMilliseconds()),i}else{if(C(n))return new Date(n);var e=Number(n);return C(e)?new Date(e):new Date(n)}}function nd(n){if(Do(n))return n.getTime();if(C(n))return n;if(bt(n)){var i=Number(n);return C(i)?i:void 0}}function Lf(n,i){var e=new Date(n.getFullYear(),0,0),t=n.getTime()-e.getTime()+(e.getTimezoneOffset()-n.getTimezoneOffset())*60*1e3,r=1e3*60*60*24;return Math.floor(t/r)}function vo(n,i){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())),t=e.getUTCDay()||7;e.setUTCDate(e.getUTCDate()+4-t);var r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e.getTime()-r.getTime())/864e5+1)/7)}function A0(n,i){var e=vo(new Date(n.getFullYear(),n.getMonth(),1)),t=vo(n);return t==1&&(t=53),t-e+1}function j0(n,i,e,t){e===void 0&&(e=1),t===void 0&&(t=!1);var r=new Date(i,0,4,0,0,0,0);t&&r.setUTCFullYear(i);var a=n*7+e-((r.getDay()||7)+3);return a}function hl(n,i){return n>12?n-=12:n===0&&(n=12),T(i)?n+(i-1):n}function dl(n,i,e,t){if(i===void 0&&(i=!1),e===void 0&&(e=!1),t===void 0&&(t=!1),t)return i?"Coordinated Universal Time":"UTC";var r=n.toLocaleString("UTC"),a=n.toLocaleString("UTC",{timeZoneName:i?"long":"short"}).substr(r.length);return e===!1&&(a=a.replace(/ (standard|daylight|summer|winter) /i," ")),a}function bh(n,i,e){return n>e?e:n<i?i:n}function xh(n,i,e){var t=e-i;return(n>e||n<i)&&(n=i+(n-t*Math.floor(n/t))),n}function vn(n,i){var e=n.x,t=n.y,r=[];if(i){for(;T(i.parent);)r.push(i),i=i.parent;r.reverse();for(var a=0;a<r.length;a++){var s=r[a],o=s.rotation,l=e-s.pixelX-s.ex,u=t-s.pixelY-s.ey;s.dx&&(e-=s.dx),s.dy&&(t-=s.dy);var h=s.scale;s.group&&(h=s.group.scale),e=(xe(-o)*l-be(-o)*u)/h-s.pixelPaddingLeft,t=(xe(-o)*u+be(-o)*l)/h-s.pixelPaddingTop}}return{x:e,y:t}}function Qr(n,i){var e=n.x,t=n.y;if(i)for(;T(i.parent);){var r=i.rotation;e+=i.pixelPaddingLeft+i.ex,t+=i.pixelPaddingTop+i.ey;var a=i.scale;i.group&&(a=i.group.scale);var s=i.pixelX+(e*xe(r)-t*be(r))*a,o=i.pixelY+(e*be(r)+t*xe(r))*a;i.dx&&(s+=i.dx),i.dy&&(o+=i.dy),e=s,t=o,i=i.parent}return{x:e,y:t}}function Tr(n,i,e){return vn(Qr(n,i),e)}function Gd(n,i){var e=Qr(n,i),t=Qr({x:n.x+n.width,y:n.y+n.height},i);return{x:e.x,y:e.y,width:t.x-e.x,height:t.y-e.y}}function ya(n,i,e){try{var t=i.getBoundingClientRect();return C(e)||(e=1),{x:(n.x-t.left)/e,y:(n.y-t.top)/e}}catch{return n}}function iy(n,i){try{var e=i.getBoundingClientRect();return{x:n.x+e.left,y:n.y+e.top}}catch{return n}}
2function Os(n,i){if(i&&i.htmlContainer){var e=ya(n,ai(i.htmlContainer),i.svgContainer.cssScale);return vn(e,i)}else return n}function ad(n,i){if(i&&i.htmlContainer){var e=Qr(n,i);return iy(e,ai(i.htmlContainer))}else return n}function V0(n){var i=getComputedStyle(n),e=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),t=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth);return n.clientWidth-e-t}function F0(n){var i=getComputedStyle(n),e=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),t=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth);return n.clientHeight-e-t}function I0(n){var i=(""+n).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return i?Math.max(0,(i[1]?i[1].length:0)-(i[2]?+i[2]:0)):0}var E0=/^([a-zA-Z][a-zA-Z0-9\+\.\-]*:)?(?:(\/\/)([^\@]+\@)?([^\/\?\#\:]*)(\:[0-9]+)?)?([^\?\#]*)(\?[^\#]*)?(\#.*)?$/;function Rf(n){var i=E0.exec(n);return{protocol:i&&i[1]||"",separator:i&&i[2]||"",authority:i&&i[3]||"",domain:i&&i[4]||"",port:i&&i[5]||"",path:i&&i[6]||"",query:i&&i[7]||"",hash:i&&i[8]||""}}function Nf(n){return n.protocol+n.separator+n.authority+n.domain+n.port+n.path+n.query+n.hash}function Hf(n){return n.protocol===""&&n.separator===""&&n.authority===""&&n.domain===""&&n.port===""}function $d(n,i){var e=Rf(n),t=Rf(i);if(Hf(e))throw new Error("Left URL is not absolute");if(Hf(t)){if(t.path!=="")if(t.path[0]==="/")e.path=t.path;else{var r=e.path.split(/\//),a=t.path.split(/\//);if(r.length===0?a.length!==0&&r.push(""):r.length>1&&r.pop(),Gm(r,a),e.path=r.join("/"),e.path!==""&&e.path[0]!=="/")throw new Error("URL path must start with /")}return e.query=t.query,e.hash=t.hash,Nf(e)}else return Nf(t)}function ko(){return!!window.MSInputMethodContext&&!!document.documentMode}function ry(n){return+n}V.registeredClasses["ease.linear"]=ry;function L0(n){return n*n}V.registeredClasses["ease.quadIn"]=L0;function R0(n){return n*(2-n)}V.registeredClasses["ease.quadOut"]=R0;function N0(n){return n*=2,(n<=1?n*n:--n*(2-n)+1)/2}V.registeredClasses["ease.quadInOut"]=N0;function ny(n,i){return Math.pow(n,i)}V.registeredClasses["ease.polyIn"]=ny;function ay(n,i){return 1-Math.pow(1-n,i)}V.registeredClasses["ease.polyOut"]=ay;function sy(n,i){return n*=2,(n<=1?Math.pow(n,i):2-Math.pow(2-n,i))/2}V.registeredClasses["ease.polyInOut"]=sy;function H0(n){return ny(n,3)}V.registeredClasses["ease.polyIn3"]=H0;function sd(n){return ay(n,3)}V.registeredClasses["ease.polyOut3"]=sd;function Y0(n){return sy(n,3)}V.registeredClasses["ease.polyInOut3"]=Y0;function W0(n){return Math.pow(2,10*n-10)}V.registeredClasses["ease.expIn"]=W0;function B0(n){return 1-Math.pow(2,-10*n)}V.registeredClasses["ease.expOut"]=B0;function z0(n){return n*=2,(n<=1?Math.pow(2,10*n-10):2-Math.pow(2,10-10*n))/2}V.registeredClasses["ease.expInOut"]=z0;function U0(n){return 1-Math.cos(n*Ep)}V.registeredClasses["ease.sinIn"]=U0;function oy(n){return Math.sin(n*Ep)}V.registeredClasses["ease.sinOut"]=oy;function X0(n){return(1-Math.cos(fu*n))/2}V.registeredClasses["ease.sinInOut"]=X0;function ly(n){return n*n*n}V.registeredClasses["ease.cubicIn"]=ly;function Ja(n){return--n*n*n+1}V.registeredClasses["ease.cubicOut"]=Ja;function G0(n){return n*=2,(n<=1?n*n*n:(n-=2)*n*n+2)/2}V.registeredClasses["ease.cubicInOut"]=G0;function $0(n){return 1-Math.sqrt(1-n*n)}V.registeredClasses["ease.circleIn"]=$0;function K0(n){return Math.sqrt(1- --n*n)}V.registeredClasses["ease.circleOut"]=K0;function q0(n){return n*=2,(n<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}V.registeredClasses["ease.circleInOut"]=q0;var od=4/11,Z0=6/11,Q0=8/11,J0=3/4,eb=9/11,tb=10/11,ib=15/16,rb=21/22,nb=63/64,cl=1/od/od;function ab(n){return 1-zl(1-n)}V.registeredClasses["ease.bounceIn"]=ab;function zl(n){return n=+n,n<od?cl*n*n:n<Q0?cl*(n-=Z0)*n+J0:n<tb?cl*(n-=eb)*n+ib:cl*(n-=rb)*n+nb}V.registeredClasses["ease.bounceOut"]=zl;function sb(n){return n*=2,(n<=1?1-zl(1-n):zl(n-1)+1)/2}V.registeredClasses["ease.bounceInOut"]=sb;var ob=2*Math.PI,Mo=1,Ao=.3/ob,Ul=Math.asin(1/Mo)*Ao;function lb(n){return Mo*Math.pow(2,10*--n)*Math.sin((Ul-n)/Ao)}V.registeredClasses["ease.elasticIn"]=lb;function ub(n){return 1-Mo*Math.pow(2,-10*(n=+n))*Math.sin((n+Ul)/Ao)}V.registeredClasses["ease.elasticOut"]=ub;function hb(n){return n=n*2-1,(n<0?Mo*Math.pow(2,10*n)*Math.sin((Ul-n)/Ao):2-Mo*Math.pow(2,-10*n)*Math.sin((Ul+n)/Ao))/2}V.registeredClasses["ease.elasticInOut"]=hb;var Xl=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.transitionDuration=0,e.transitionEasing=Ja,e.properties={},e.propertyFields={},e.filters=new Pt,e.isTemplate=!1,e.className="SpriteState",e._disposers.push(new zt(e.filters)),e.applyTheme(),e}return Object.defineProperty(i.prototype,"adapter",{get:function(){var e=this;return this._adapterO||(this._adapterO=new Lr(this),this._adapterO.events.on("inserted",function(t){e[t.newValue.key]=e[t.newValue.key]},void 0,!1),this._adapterO.events.on("removed",function(t){e[t.newValue.key]=e[t.newValue.key]},void 0,!1)),this._adapterO},enumerable:!0,configurable:!0}),i.prototype.getPropertyValue=function(e){var t=this.properties[e],r=this.sprite;if(r){var a=this.propertyFields[e];if(T(a)&&(r.dataItem&&(t=r.dataItem.dataContext[a]),t==null&&(t="__unset")),T(t))this._adapterO&&(t=this._adapterO.apply(e,t));else{var s=r.getPropertyValue(e);this._adapterO?t=this._adapterO.apply(e,s):t=s,t==s&&(t=void 0)}}return t},i.prototype.copyFrom=function(e){e&&e!=this&&(this.transitionDuration=e.transitionDuration,this.transitionEasing=e.transitionEasing,na(e.properties,this.properties),na(e.propertyFields,this.propertyFields),this.filters.copyFrom(e.filters),e._adapterO&&this.adapter.copyFrom(e._adapterO))},Object.defineProperty(i.prototype,"allValues",{get:function(){var e=this,t={};if($e(this.properties,function(s,o){t[s]=e.getPropertyValue(s)}),this._adapterO){var r=this._adapterO.keys();
2$e(r,function(s,o){var l=e.getPropertyValue(o);t[o]=l})}var a=this.propertyFields;return $e(a,function(s){var o=e.getPropertyValue(s);t[s]=o}),t},enumerable:!0,configurable:!0}),i.prototype.reset=function(){this.properties={},this.filters.clear()},i.prototype.processConfig=function(e){T(e)&&T(e.properties)&&$e(e.properties,function(t,r){bt(r)&&(r.match(/^[0-9.\-]+\%$/)?e.properties[t]=pe(Bt(r)):r.match(/^\#[0-9abcdef]{3,}$/i)&&(e.properties[t]=qr(r)))}),n.prototype.processConfig.call(this,e)},i.prototype.asFunction=function(e){return e=="transitionEasing"||n.prototype.asIs.call(this,e)},i}(cr);V.registeredClasses.SpriteState=Xl;var db=function(n){W(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e._interactionEvents=new Gt,e}return i.prototype._dispatchSpriteEvent=function(e){if(!(this.target.disabled||this.target.isTemplate)&&this.target.events.isEnabled(e.type)){var t=Kh(e,{target:this.target});this.target.events.dispatchImmediately(t.type,t)}},i.prototype._dispatchSpritePointEvent=function(e){if(!(this.target.disabled||this.target.isTemplate)&&this.target.events.isEnabled(e.type)){var t=Kh(e,{target:this.target,spritePoint:e.point?Os(e.point,this.target):void 0,svgPoint:this.target.getSvgPoint(e.point)});this.target.events.dispatchImmediately(t.type,t)}},i.prototype._addInteractionObjectEvent=function(e,t,r,a){var s=this,o=a+"-"+e,l=this._interactionEvents.insertKeyIfEmpty(o,function(){var u=s.target.interactions.events.on(e,t,r,a);return new yu(function(){s._interactionEvents.removeKey(o),u.dispose()})});return l.increment()},i.prototype._on=function(e,t,r,a,s,o){var l=n.prototype._on.call(this,e,t,r,a,s,o),u=[l.disposer];switch(t){case"hit":case"track":case"doublehit":case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":u.push(this._addInteractionObjectEvent(t,this._dispatchSpritePointEvent,this,s));break;case"rightclick":case"down":case"up":case"drag":case"dragged":case"dragstart":case"dragstop":case"over":case"out":case"swipe":case"swipeleft":case"swiperight":case"resize":case"focus":case"blur":case"toggled":u.push(this._addInteractionObjectEvent(t,this._dispatchSpriteEvent,this,s));break}switch(t){case"hit":case"doublehit":case"rightclick":case"down":case"up":this.target.clickable=!0;break;case"toggled":this.target.togglable=!0;break;case"drag":case"dragstart":case"dragstop":this.target.draggable=!0;break;case"track":this.target.trackable=!0;break;case"resize":this.target.resizable=!0;break;case"swipe":case"swipeleft":case"swiperight":this.target.swipeable=!0;break;case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":this.target.wheelable=!0;break;case"over":this.target.hoverable=!0;case"out":this.target.hoverable=!0;break;case"focus":case"blur":this.target.focusable=!0;break}return l.disposer=new di(u),l},i}(Up),cb=function(){function n(){}return n.opacity=1,n.strokeOpacity=1,n.strokeWidth=1,n.fillOpacity=1,n.fill=qe("#000000"),n.stroke=qe("#000000"),n.focusable=void 0,n.tabindex=0,n}(),ir={verbose:!0,commercialLicense:!1,classNamePrefix:"amcharts-",autoSetClassName:!1,minPolylineStep:.5,onlyShowOnViewport:!1,queue:!1,autoDispose:!1,licenses:[],suppressErrors:!1,suppressWarnings:!1,animationsEnabled:!0,nonce:"",deferredDelay:100,disableHoverOnTransform:"never",pixelPerfectPrecision:0};function uy(n,i,e){return i+(e-i)*n}function fb(n,i,e){return new mt(uy(n,i.percent,e.percent))}function pb(n,i,e){var t=new wt(Hl(i.rgb,e.rgb,n));return i.alpha!=e.alpha&&(t.alpha=i.alpha+(e.alpha-i.alpha)*n),t}function Yf(n,i){return i+n.charAt(0).toUpperCase()+n.substr(1)}var Rs=function(){function n(i){this._disposer=new Lt(function(){for(;i.length!==0;)i[0].dispose()})}return n.prototype.isDisposed=function(){return this._disposer.isDisposed()},n.prototype.dispose=function(){this._disposer.dispose()},n}(),cn=function(n){W(i,n);function i(e,t,r,a){var s=n.call(this)||this;return s.duration=0,s.easing=ry,s.progress=0,s._loop=0,s._pause=!1,s._delayTimeout=null,s._time=0,s._isFinished=!1,s.className="Animation",s.object=e,s.animationOptions=Hp(t),s.duration=r,a&&(s.easing=a),s.applyTheme(),s}return i.prototype.debug=function(){},i.prototype.dispose=function(){n.prototype.dispose.call(this),this.pause()},i.prototype.delay=function(e){var t=this;if(e>0){this.pause(),Jr(this.object.animations,this);var r=setTimeout(function(){t._delayTimeout=null,t.start()},e);this._delayTimeout=new Lt(function(){clearTimeout(r)})}return this},i.prototype._start=function(){this._isFinished=!1,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),this.stopSameAnimations(),this._pause=!1,Jr(yt.animations,this),Jr(this.object.animations,this),yt.requestFrame()},i.prototype.start=function(){this._start(),this._startTime=Date.now(),this._time=0,this.staticOptions=[];for(var e=this.animationOptions.length-1;e>=0;e--){var t=this.animationOptions[e];if(T(t.from)||(t.childObject?t.from=t.childObject[t.property]:(t.from=this.object[t.property],T(t.from)||(t.from=cb[t.property]))),t.from==t.to)Qe(this.animationOptions,t);else if(!T(t.from)||!(t.from instanceof mt)&&t.to instanceof mt||t.from instanceof mt&&!(t.to instanceof mt))this.staticOptions.push(t),Qe(this.animationOptions,t);else if(C(t.to))if(t.updateMethod=uy,t.from instanceof mt){var r=this.object[Yf(t.property,"pixel")];isNaN(r)?(this.staticOptions.push(t),Qe(this.animationOptions,t)):t.from=r}else isNaN(t.from)&&(this.staticOptions.push(t),Qe(this.animationOptions,t));else if(t.to instanceof wt)t.from?t.updateMethod=pb:(this.staticOptions.push(t),Qe(this.animationOptions,t));else if(t.to instanceof mt){if(t.updateMethod=fb,!isNaN(t.from)){var r=this.object[Yf(t.property,"relative")];isNaN(r)||(t.from=pe(r*100))}}else this.staticOptions.push(t),Qe(this.animationOptions,t)}if(this.applyStaticOptions(),this.events.isEnabled("animationstarted")){var a={type:"animationstarted",target:this,progress:this.progress};this.events.dispatchImmediately("animationstarted",a)}return this.update(),this.duration===0&&this.end(),this},i.prototype.loop=function(e){return C(e)||(e=1/0),this._loop=e,this},i.prototype.pause=function(){return this._pause=!0,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),Qe(yt.animations,this),Qe(this.object.animations,this),this},i.prototype.resume=function(){return this._start(),this._startTime=Date.now()-this._time,this},i.prototype.end=function(){if(this._loop==0&&this.pause(),this.setProgress(1),this.applyStaticOptions(),this.events.isEnabled("animationended")){var e={type:"animationended",target:this,progress:this.progress};this.events.dispatchImmediately("animationended",e)}return this._loop>0?(this._loop--,this.start()):(this.stop(),this._isFinished=!0),this},i.prototype.kill=function(){this.pause(),this._isFinished=!0},i.prototype.isFinished=function(){return this._isFinished},i.prototype.applyStaticOptions=function(){var e=this;De(this.staticOptions,function(t){t.childObject?t.childObject[t.property]=e.progress==1?t.to:t.from:e.object[t.property]=e.progress==1?t.to:t.from})},i.prototype.stop=function(e){if(this.pause(),!e&&this.events.isEnabled("animationstopped")){var t={type:"animationstopped",target:this,progress:this.progress};this.events.dispatchImmediately("animationstopped",t)}return this},i.prototype.setProgress=function(e){var t=this;if(this._time=this.duration*e,De(this.animationOptions,function(a){if
2(a.updateMethod&&T(a.from)){var s=a.updateMethod(e,a.from,a.to);a.childObject?a.childObject[a.property]=s:t.object[a.property]=s}}),this.progress=e,this.events.isEnabled("animationprogress")){var r={type:"animationprogress",target:this,progress:this.progress};this.events.dispatchImmediately("animationprogress",r)}yt.requestFrame()},i.prototype.update=function(){if(!this._pause){var e=void 0;this._time=ke(Date.now()-this._startTime,0,this.duration);var t=this._time/this.duration;e=this.easing(t),(this.duration==0||!C(e)||t>=1)&&(e=1),this.setProgress(e),de(this._time/this.duration,6)==1&&this.end()}return this},Object.defineProperty(i.prototype,"delayed",{get:function(){return!!this._delayTimeout},enumerable:!0,configurable:!0}),i.prototype.stopSameAnimations=function(){var e=this;De(So(this.object.animations),function(t){if(t!==e&&!t.delayed){var r=[];De(e.animationOptions,function(a){De(t.animationOptions,function(s){a.property==s.property&&a.childObject==s.childObject&&(r.push(s),t.animationOptions.length==0&&t.kill())})}),De(r,function(a){Qe(t.animationOptions,a)})}})},i.prototype.asFunction=function(e){return e=="easing"||n.prototype.asIs.call(this,e)},i}(Nn),Cl="http://www.w3.org/2000/svg",Wf="http://www.w3.org/2000/xmlns/",Kd="http://www.w3.org/1999/xlink";function ki(n,i,e,t){return n.addEventListener(i,e,t||!1),new Lt(function(){n.removeEventListener(i,e,t||!1)})}function hy(n){if(bt(n)){var i=document.getElementById(n);if(i==null&&(i=document.getElementsByClassName(n)[0]),i instanceof HTMLElement)return i}else if(n instanceof HTMLElement)return n}function ld(n,i){if(n)if(n.classList){var e=i.split(" ");De(e,function(r){n.classList.add(r)})}else{var t=n.getAttribute("class");t?n.setAttribute("class",t.split(" ").filter(function(r){return r!==i}).join(" ")+" "+i):n.setAttribute("class",i)}}function ud(n,i){if(n)if(n.classList)n.classList.remove(i);else{var e=n.getAttribute("class");e&&n.setAttribute("class",e.split(" ").filter(function(t){return t!==i}).join(" "))}}function Bf(n,i,e){n.style[i]=e}function qd(n,i){return n.currentStyle?n.currentStyle[i]:document.defaultView.getComputedStyle(n,null).getPropertyValue(i)}function Dl(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{var n=document.createElement("button");n.style.position="fixed",n.style.top="0px",n.style.left="-10000px",document.body.appendChild(n),n.focus(),n.blur(),document.body.removeChild(n)}}function zf(n,i){for(var e=i;;){if(n===e)return!0;if(e.parentNode==null){if(e.host==null)return!1;e=e.host}else e=e.parentNode}}function Zd(n){for(var i=n;;){if(i.parentNode==null)return i.host!=null?i:null;i=i.parentNode}}function dy(n){for(var i=n.ownerDocument,e=n;;){if(e.parentNode==null)return e===i||e.host!=null?e:null;e=e.parentNode}}function yb(n){return typeof n.composedPath=="function"?n.composedPath()[0]:n.target}function vb(n){qm(function(){try{var i=n.getBoundingClientRect(),e=i.left-Math.round(i.left),t=i.top-Math.round(i.top);e!==0&&Mf(function(){n.style.left=e+"px"}),t!==0&&Mf(function(){n.style.top=t+"px"})}catch{}})}var _h;function gb(n){if(n==null){if(!T(_h)){var i=document.createElement("style");i.type="text/css",document.head.appendChild(i),_h=i.sheet}return _h}else{var i=document.createElement("style");return i.type="text/css",n.appendChild(i),i.sheet}}function mb(n,i){var e=n.cssRules.length;return n.insertRule(i+"{}",e),n.cssRules[e]}var Nt=function(n){W(i,n);function i(e,t,r){var a=this,s=gb(e);return a=n.call(this,function(){var o=yn(s.cssRules,a._rule);if(o===-1)throw new Error("Could not dispose StyleRule");s.deleteRule(o)})||this,a._rule=mb(s,t),$e(r,function(o,l){a.setStyle(o,l)}),a}return Object.defineProperty(i.prototype,"selector",{get:function(){return this._rule.selectorText},set:function(e){this._rule.selectorText=e},enumerable:!0,configurable:!0}),i.prototype._setVendorPrefixName=function(e,t){var r=this._rule.style;r.setProperty("-webkit-"+e,t,""),r.setProperty("-moz-"+e,t,""),r.setProperty("-ms-"+e,t,""),r.setProperty("-o-"+e,t,""),r.setProperty(e,t,"")},i.prototype.setStyle=function(e,t){e==="transition"?this._setVendorPrefixName(e,t):this._rule.style.setProperty(e,t,"")},i}(Lt),bb=0;(function(n){W(i,n);function i(e,t,r){var a=this,s=T(r)?r:"__style_"+ ++bb+"__";return a=n.call(this,e,"."+s,t)||this,a._className=s,a}return Object.defineProperty(i.prototype,"className",{get:function(){return this._className},set:function(e){this._className=e,this.selector="."+e},enumerable:!0,configurable:!0}),i.prototype.toString=function(){return this._className},i})(Nt);function xb(n){if(document.readyState!=="loading")n();else{var i=function(){document.readyState!=="loading"&&(document.removeEventListener("readystatechange",i
2),n())};document.addEventListener("readystatechange",i)}}function Sl(n){var i=qd(n,"font-family");if(i)return i;var e=n.parentElement||n.parentNode;return e?Sl(e):void 0}function Ol(n){var i=qd(n,"font-size");if(i)return i;var e=n.parentElement||n.parentNode;return e?Ol(e):void 0}var Gl=function(){function n(i){this._isDisposed=!1,this._x=0,this._y=0,this._rotationY=0,this._rotationX=0,this._rotation=0,this._scale=1,typeof i=="string"?this.node=document.createElementNS(Cl,i):this.node=i}return n.prototype.removeNode=function(){this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node)},Object.defineProperty(n.prototype,"transformString",{get:function(){if(this.node)return this._transformString},enumerable:!0,configurable:!0}),n.prototype.transform=function(){var i="translate("+this._x+","+this._y+")";if(this._scale!=1&&(i+=(i?" ":"")+"scale("+this._scale+")"),this._rotation!=0){var e="rotate("+this._rotation+")";this._rotationX&&this._rotationY&&(e="rotate("+this._rotation+" "+this._rotationX+" "+this._rotationY+")"),i+=(i?" ":"")+e}this._transformString=i,this.node.setAttribute("transform",i)},n.prototype.getBBox=function(){var i={width:0,height:0,x:0,y:0};if(this.node&&this.node.parentNode)try{var e=this.node.getBBox();i.x=e.x,i.y=e.y,i.width=e.width,i.height=e.height}catch{}return i},n.prototype.moveTo=function(i){if(i){var e=i.x,t=i.y;(this._x!=e||this._y!=t)&&(this._x=e,this._y=t,this.transform())}},Object.defineProperty(n.prototype,"content",{get:function(){return this.node.innerHTML||""},set:function(i){this.node.innerHTML=i},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"textContent",{get:function(){return this.node.textContent||""},set:function(i){this.node.textContent=i},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"x",{get:function(){return this._x},set:function(i){this._x!=i&&(this._x=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"y",{get:function(){return this._y},set:function(i){this._y!=i&&(this._y=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rotation",{get:function(){return this._rotation},set:function(i){this._rotation!=i&&(this._rotation=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rotationX",{get:function(){return this._rotationX},set:function(i){this._rotationX!=i&&(this._rotationX=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rotationY",{get:function(){return this._rotationY},set:function(i){this._rotationY!=i&&(this._rotationY=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scale",{get:function(){return this._scale},set:function(i){this._scale!=i&&(this._scale=i,this.transform())},enumerable:!0,configurable:!0}),n.prototype.removeAttr=function(i){this.node.removeAttribute(i)},n.prototype.attr=function(i){var e=this;return $e(i,function(t,r){T(r)?e.node.setAttribute(t,r):e.node.removeAttribute(t)}),this},n.prototype.getAttr=function(i){return this.node.getAttribute(i)},n.prototype.attrNS=function(i,e,t){return this.node.setAttributeNS(i,e,t),this},n.prototype.getAttrNS=function(i,e){return this.node.getAttributeNS(i,e)},n.prototype.removeStyle=function(i){this.node.style[i]=null,delete this.node.style[i]},n.prototype.getStyle=function(i){return this.node.style[i]},n.prototype.addStyle=function(i){var e=this;return $e(i,function(t,r){T(r)?e.node.style[t]=r:e.removeStyle(t)}),this},n.prototype.addClass=function(i){ld(this.node,i)},n.prototype.removeClass=function(i){ud(this.node,i)},n.prototype.setClass=function(i){this.node.setAttribute("class",i)},n.prototype.removeChildNodes=function(){for(;this.node.childNodes.length>0;)this.node.removeChild(this.node.firstChild)},n.prototype.isDisposed=function(){return this._isDisposed},n.prototype.dispose=function(){this.removeNode()},n}(),_b=function(n){W(i,n);function i(e){return n.call(this,e)||this}return i.prototype.add=function(e){e&&this.node.appendChild(e.node)},i.prototype.addToBack=function(e){if(e){var t=this.node.childNodes[0];t?t!=e.node&&this.node.insertBefore(e.node,t):this.node.appendChild(e.node)}},i.prototype.removeElement=function(e){if(e)try{e.node&&e.node.parentNode==this.node&&this.node.removeChild(e.node)}catch{}},i.prototype.hasChild=function(e){for(var t=0;t<this.node.childNodes.length;t++)if(this.node.childNodes[t]==e.node)return!0;return!1},Object.defineProperty(i.prototype,"content",{get:function(){return this.node.innerHTML},set:function(e){this.node.innerHTML=e},enumerable:!0,configurable:!0}),i.prototype.removeChildren=function(){if(this.node.childNodes)for(;this.node.childNodes.length>0;){var e=this.node.firstChild;e&&e.parentNode&&e.parentNode.removeChild(e)}},i.prototype.removeChildrenByTag=function(e){if(this.node.childNodes)for(var t=this.node.getElementsByTagName(e),r=0;r<t.length;r++)this.node.removeChild(t[r])},i}(Gl),Ot=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._purposes={stroke:qe("#e5e5e5"),fill:qe("#f3f3f3"),primaryButton:qe("#6794dc"),primaryButtonHover:qe("#6771dc"),primaryButtonDown:qe("#68dc75"),primaryButtonActive:qe("#68dc75"),primaryButtonText:qe("#FFFFFF"),primaryButtonStroke:qe("#FFFFFF"),secondaryButton:qe("#d9d9d9"),secondaryButtonHover:qe("#d9d9d9").brighten(-.25),secondaryButtonDown:qe("#d9d9d9").brighten(-.35),secondaryButtonActive:qe("#d9d9d9").brighten(.35),secondaryButtonText:qe("#000000"),secondaryButtonStroke:qe("#FFFFFF"),grid:qe("#000000"),background:qe("#ffffff"),alternativeBackgroun
2d:qe("#000000"),text:qe("#000000"),alternativeText:qe("#FFFFFF"),disabledBackground:qe("#999999"),positive:qe("#67dc75"),negative:qe("#dc6788")},e.className="InterfaceColorSet",e.applyTheme(),e}return i.prototype.debug=function(){},i.prototype.getFor=function(e){return this._purposes[e]},i.prototype.setFor=function(e,t){this._purposes[e]=t},i}(cr);V.registeredClasses.InterfaceColorSet=Ot;var Uf=new Gt;function wb(n,i){i||(i="ampopup");var e=new Ot,t=e.getFor("text"),r=e.getFor("background");r.alpha=.8;var a=e.getFor("alternativeBackground");a.alpha=.05;var s=Uf.insertKeyIfEmpty(i,function(){var o=new di([new Nt(n,"."+i,{overflow:"visible",position:"absolute",top:"0",left:"0","z-index":"2000"}),new Nt(n,"."+i+"-curtain",{width:"100%",height:"100%",position:"absolute",top:"0",left:"0","z-index":"2001","background-color":r.hex,opacity:"0.5"}),new Nt(n,"."+i+"-header",{display:"block",width:"100%","min-height":"1.8em",background:a.rgba}),new Nt(n,"."+i+"-title",{"font-weight":"bold","font-size":"110%",padding:"0.5em 1.2em 0.5em 1em"}),new Nt(n,"."+i+"-content",{background:r.hex,"background-color":r.rgba,color:t.hex,display:"inline-block",position:"absolute",top:"0",left:"0","max-width":"90%","max-height":"90%",overflow:"auto","z-index":"2002"}),new Nt(n,"."+i+"-inside",{padding:"1em"}),new Nt(n,"."+i+"-close",{display:"block",position:"absolute",top:"0.3em",right:"0.3em","background-color":"rgb(100, 100, 100)",background:"rgba(100, 100, 100, 0.1) url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmVyc2lvbj0iMSIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ0NS4yIDEwOS4ybC00Mi40LTQyLjRMMjU2IDIxMy42IDEwOS4yIDY2LjhsLTQyLjQgNDIuNEwyMTMuNiAyNTYgNjYuOCA0MDIuOGw0Mi40IDQyLjRMMjU2IDI5OC40bDE0Ni44IDE0Ni44IDQyLjQtNDIuNEwyOTguNCAyNTYiLz48L3N2Zz4=) no-repeat center","background-size":"80%",width:"1.2em",height:"1.2em",cursor:"pointer"})]);return new yu(function(){Uf.removeKey(i),o.dispose()})});return s.increment()}var Pb=function(n){W(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e._domEvents={},e}return i.prototype._addDOMEvent=function(e,t,r,a){var s=this;if(!this._domEvents[e]){var o=function(l){r.call(a,t,l)};this.target.element.addEventListener(e,o,!1),this._domEvents[e]=new yu(function(){delete s._domEvents[e],s.target.element.removeEventListener(e,o,!1)})}return this._domEvents[e].increment()},i.prototype._dispatchKeyboardEvent=function(e,t){this.target.events.isEnabled(e)&&this.target.events.dispatchImmediately(e,{type:e,target:this.target,event:t})},i.prototype._on=function(e,t,r,a,s,o){var l=n.prototype._on.call(this,e,t,r,a,s,o),u=[l.disposer];switch(t){case"hit":case"doublehit":case"rightclick":case"down":case"up":this.target.clickable=!0;break;case"drag":case"dragstart":case"dragstop":this.target.draggable=!0;break;case"track":this.target.trackable=!0;break;case"resize":this.target.resizable=!0;break;case"swipe":case"swipeleft":case"swiperight":this.target.swipeable=!0;break;case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":this.target.wheelable=!0;break;case"over":case"out":this.target.hoverable=!0;break;case"focus":case"blur":case"focusin":case"focusout":this.target.focusable=!0;break;case"keydown":u.push(this._addDOMEvent(t,t,this._dispatchKeyboardEvent,this));break;case"keyup":u.push(this._addDOMEvent(t,t,this._dispatchKeyboardEvent,this));break;case"keypress":u.push(this._addDOMEvent(t,t,this._dispatchKeyboardEvent,this));break;case"input":u.push(this._addDOMEvent(t,t,this._dispatchKeyboardEvent,this));break}return l.disposer=new di(u),l},i}(Up),Cb=function(n){W(i,n);function i(e){var t=n.call(this)||this;return t._eventDispatcher=new Pb(t),t.eventDisposers=new Gt,t.replacedStyles=new Gt,t._clickable=!1,t._contextMenuDisabled=!1,t._hoverable=!1,t._trackable=!1,t._draggable=!1,t._swipeable=!1,t._resizable=!1,t._wheelable=!1,t._inert=!1,t._isHover=!1,t.isRealHover=!1,t._isHoverByTouch=!1,t._isDown=!1,t._isFocused=!1,t._isTouchProtected=!1,t._inertiaOptions=new Gt,t.inertias=new Gt,t._hitOptions={},t._hoverOptions={},t._swipeOptions={},t._keyboardOptions={},t._mouseOptions={},t._cursorOptions={defaultStyle:[{property:"cursor",value:"default"}]},t._disposers.push(t._eventDispatcher),t._element=e,t.className="InteractionObject",t._disposers.push(new Qa(t.inertias)),t._disposers.push(new Qa(t.eventDisposers)),t.applyTheme(),t}return Object.defineProperty(i.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isHover",{get:function(){return this._isHover},set:function(e){this.isHover!=e&&(this._isHover=e,e?Je().overObjects.moveValue(this):(this.isRealHover=!1,Je().overObjects.removeValue(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isHoverByTouch",{get:function(){return this._isHoverByTouch},set:function(e){this.isHoverByTouch!=e&&(this._isHoverByTouch=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"overPointers",{get:function(){return this._overPointers||(this._overPointers=new Pt),this._overPointers},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDown",{get:function(){return this._isDown}
2,set:function(e){this.isDown!=e&&(this._isDown=e,e?Je().downObjects.moveValue(this):Je().downObjects.removeValue(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"downPointers",{get:function(){return this._downPointers||(this._downPointers=new Pt),this._downPointers},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.isFocused!=e&&(this._isFocused=e,e?Je().focusedObject=this:Je().focusedObject=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isTouchProtected",{get:function(){return this._isTouchProtected},set:function(e){this._isTouchProtected!=e&&(this._isTouchProtected=e,e?Je().unprepElement(this):(this.draggable||this.swipeable||this.trackable||this.resizable)&&Je().prepElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"clickable",{get:function(){return this._clickable},set:function(e){this._clickable!==e&&(this._clickable=e,Je().processClickable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contextMenuDisabled",{get:function(){return this._contextMenuDisabled},set:function(e){this._contextMenuDisabled!==e&&(this._contextMenuDisabled=e,Je().processContextMenu(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverable",{get:function(){return this._hoverable},set:function(e){this._hoverable!==e&&(this._hoverable=e,Je().processHoverable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"trackable",{get:function(){return this._trackable},set:function(e){this._trackable!==e&&(this._trackable=e,Je().processTrackable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"draggable",{get:function(){return this._draggable},set:function(e){this._draggable!==e&&(this._draggable=e,Je().processDraggable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"swipeable",{get:function(){return this._swipeable},set:function(e){this._swipeable!==e&&(this._swipeable=e,Je().processSwipeable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"resizable",{get:function(){return this._resizable},set:function(e){this._resizable!==e&&(this._resizable=e,Je().processResizable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wheelable",{get:function(){return this._wheelable},set:function(e){this._wheelable!==e&&(this._wheelable=e,Je().processWheelable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inert",{get:function(){return this._inert},set:function(e){this._inert!==e&&(this._inert=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"focusable",{get:function(){return this._focusable},set:function(e){this._focusable!==e&&(this._focusable=e,this._focusable&&this.tabindex==-1&&(this._tabindex=1),Je().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tabindex",{get:function(){return ph(this._tabindex,-1)},set:function(e){this._tabindex!==e&&(this._tabindex=e,e>-1&&(this.focusable=!0),Je().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"element",{get:function(){return this._element},set:function(e){this._element=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"originalPosition",{get:function(){return this._originalPosition||{x:0,y:0}},set:function(e){this._originalPosition=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"originalScale",{get:function(){return ph(this._originalScale,1)},set:function(e){this._originalScale!==e&&(this._originalScale=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"originalAngle",{get:function(){return ph(this._originalAngle,0)},set:function(e){this._originalAngle!==e&&(this._originalAngle=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inertiaOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("inertiaOptions",this._inertiaOptions):this._inertiaOptions}
2,set:function(e){this._inertiaOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hitOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hitOptions",this._hitOptions):this._hitOptions},set:function(e){this._hitOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hoverOptions",this._hoverOptions):this._hoverOptions},set:function(e){this._hoverOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"swipeOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("swipeOptions",this._swipeOptions):this._swipeOptions},set:function(e){this._swipeOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keyboardOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("keyboardOptions",this._keyboardOptions):this._keyboardOptions},set:function(e){this._keyboardOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mouseOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("mouseOptions",this._mouseOptions):this._mouseOptions},set:function(e){this._mouseOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("cursorOptions",this._cursorOptions):this._cursorOptions},set:function(e){this._cursorOptions=e},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.inertiaOptions=e.inertiaOptions,this.hitOptions=e.hitOptions,this.hoverOptions=e.hoverOptions,this.swipeOptions=e.swipeOptions,this.keyboardOptions=e.keyboardOptions,this.cursorOptions=e.cursorOptions,this.contextMenuDisabled=e.contextMenuDisabled,Je().applyCursorOverStyle(this)},i.prototype.setEventDisposer=function(e,t,r){var a=this.eventDisposers.getKey(e);t?a==null&&this.eventDisposers.setKey(e,r()):a!=null&&(a.dispose(),this.eventDisposers.removeKey(e))},i.prototype.dispose=function(){n.prototype.dispose.call(this);var e=Je();e.overObjects.removeValue(this),e.downObjects.removeValue(this),e.trackedObjects.removeValue(this),e.transformedObjects.removeValue(this),this.isHover&&this.wheelable&&e.unlockWheel(),e.focusedObject===this&&(e.focusedObject=void 0)},i}(Nn),Db=function(){function n(i,e){this._disposed=!1,this.directionX=0,this.directionY=0,this.interaction=i,this.keyboardEvent=e,this._startedOn=new Date().getTime(),Je().processDragStart(i),yt.animations.push(this),this.update()}return n.prototype.update=function(){var i=this.interaction,e=Je().getKeyboardOption(i,"speed"),t=Je().getKeyboardOption(i,"accelleration"),r=Je().getKeyboardOption(i,"accellerationDelay"),a={x:0,y:0};this.keyboardEvent.shiftKey?(e*=.5,t=1):this.keyboardEvent.ctrlKey&&(e*=2);var s=new Date().getTime()-this._startedOn,o=s-r;if(t>0&&o>0){var l=s/r;s=r,a.x+=this.directionX*(e*t*l*o),a.y+=this.directionY*(e*t*l*o)}a.x+=this.directionX*(e*s),a.y+=this.directionY*(e*s),Je().handleTransformMove(i,a,{x:0,y:0},this.keyboardEvent,!0,!1)},n.prototype.isDisposed=function(){return this._disposed},n.prototype.dispose=function(){this._disposed||(Je().processDragStop(this.interaction),Qe(yt.animations,this))},n}(),Sb=function(n){W(i,n);function i(e,t,r,a){var s=n.call(this)||this;return s.animations=[],s.className="Inertia",s.interaction=e,s.type=t,s.point=r,s.startPoint=a,s._disposers.push(new Rs(s.animations)),s}return Object.defineProperty(i.prototype,"x",{get:function(){return this.point.x},set:function(e){C(e)&&(this.point.x=e,this.handleMove())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y",{get:function(){return this.point.y},set:function(e){C(e)&&(this.point.y=e,this.handleMove())},enumerable:!0,configurable:!0}),i.prototype.handleMove=function(){if(this.interaction.events.isEnabled("drag")){var e={type:"drag",target:this.interaction,shift:{x:this.x-this.startPoint.x,y:this.y-this.startPoint.y},startPoint:this.startPoint,point:{x:this.x,y:this.y},touch:!1};this.interaction.events.dispatchImmediately("drag",e)}},i.prototype.done=function(){this.interaction.inertias.removeKey(this.type),this.type==="move"&&Je().processDragStop(this.interaction),this.dispose()},i}(cr),Ob=function(){function n(){}return n.prototype.getEventKey=function(i){var e=i.keyCode||i.which,t;switch(e){case 38:t="up";break;case 40:t="down";break;case 37:t="left";break;case 39:t="right";break;case 13:t="enter";break;case 27:t="esc";break;case 36:t="home";break;case 35:t="end";break;case 9:t="tab";break;case 17:t="ctrl";break;case 18:t="alt";break;case 16:t="shift";break;case 32:t="space";break;case 36:t="home";break;case 35:t="end";break;case 33:t="pgup";break;case 34:t="pgdn";break;case 45:t="ins";break;case 46:t="del";break;case 107:t="plus";break;case 109:t="minus";break;default:t="other";break}return t},n.prototype.isKey=function(i,e){var t=this.getEventKey(i);return bt(e)&&(e=[e]),e.indexOf(t)!==-1}
2,n.prototype.shiftKey=function(i){return i.shiftKey},n.prototype.ctrlKey=function(i){return i.ctrlKey},n.prototype.altKey=function(i){return i.altKey},n.prototype.metaKey=function(i){return i.metaKey},n}(),Vn=new Ob,Tb={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6};function cy(n){switch(n){case"year":return;case"month":return"year";case"week":return"month";case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function yi(n,i){return T(i)||(i=1),Tb[n]*i}function kb(){return new Date}function On(){return kb().getTime()}function vs(n){return new Date(n.getTime())}function hd(n,i,e,t){n=new Date(n.getTime()),i=new Date(i.getTime());var r=0,a=0;!t&&e!="millisecond"&&(r=n.getTimezoneOffset(),n.setUTCMinutes(n.getUTCMinutes()-r),a=i.getTimezoneOffset(),i.setUTCMinutes(i.getUTCMinutes()-a));var s=!1;switch(e){case"year":n.getUTCFullYear()!=i.getUTCFullYear()&&(s=!0);break;case"month":(n.getUTCFullYear()!=i.getUTCFullYear()||n.getUTCMonth()!=i.getUTCMonth())&&(s=!0);break;case"day":(n.getUTCMonth()!=i.getUTCMonth()||n.getUTCDate()!=i.getUTCDate())&&(s=!0);break;case"hour":n.getUTCHours()!=i.getUTCHours()&&(s=!0);break;case"minute":n.getUTCMinutes()!=i.getUTCMinutes()&&(s=!0);break;case"second":n.getUTCSeconds()!=i.getUTCSeconds()&&(s=!0);break;case"millisecond":n.getTime()!=i.getTime()&&(s=!0);break}if(s)return!0;var o=cy(e);return o?(n.setUTCMinutes(n.getUTCMinutes()+r),i.setUTCMinutes(i.getUTCMinutes()+a),hd(n,i,o,t)):!1}function dr(n,i,e,t){var r=0;switch(!t&&i!="millisecond"&&(r=n.getTimezoneOffset(),n.setUTCMinutes(n.getUTCMinutes()-r)),i){case"day":var a=n.getUTCDate();n.setUTCDate(a+e);break;case"second":var s=n.getUTCSeconds();n.setUTCSeconds(s+e);break;case"millisecond":var o=n.getUTCMilliseconds();n.setUTCMilliseconds(o+e);break;case"hour":var l=n.getUTCHours();n.setUTCHours(l+e);break;case"minute":var u=n.getUTCMinutes();n.setUTCMinutes(u+e);break;case"year":var h=n.getUTCFullYear();n.setUTCFullYear(h+e);break;case"month":var d=n.getUTCMonth();n.setUTCMonth(d+e);break;case"week":var f=n.getUTCDate();n.setUTCDate(f+e*7);break}if(!t&&i!="millisecond"&&(n.setUTCMinutes(n.getUTCMinutes()+r),i=="day"||i=="week"||i=="month"||i=="year")){var p=n.getTimezoneOffset();if(p!=r){var v=p-r;n.setUTCMinutes(n.getUTCMinutes()+v),n.getTimezoneOffset()!=p&&n.setUTCMinutes(n.getUTCMinutes()-v)}}return n}function Yi(n,i,e,t,r,a,s,o){s===void 0&&(s=0),C(e)||(e=1);var l=0;switch(o&&["day","month","week","year"].indexOf(i)!=-1&&(n=vu(n,o)),!r&&i!="millisecond"&&(l=n.getTimezoneOffset(),n.setUTCMinutes(n.getUTCMinutes()-l)),i){case"day":var u=n.getUTCDate();if(e>1){if(a){a=Yi(a,"day",1);var h=n.getTime()-a.getTime(),d=Math.floor(h/yi("day")/e),f=yi("day",d*e);n.setTime(a.getTime()+f-l*yi("minute"))}}else n.setUTCDate(u);n.setUTCHours(0,0,0,0);break;case"second":var p=n.getUTCSeconds();e>1&&(p=Math.floor(p/e)*e),n.setUTCSeconds(p,0);break;case"millisecond":if(e==1)return n;var v=n.getUTCMilliseconds();v=Math.floor(v/e)*e,n.setUTCMilliseconds(v);break;case"hour":var m=n.getUTCHours();e>1&&(m=Math.floor(m/e)*e),n.setUTCHours(m,s,0,0);break;case"minute":var x=n.getUTCMinutes();v=n.getUTCMilliseconds(),e>1&&(x=Math.floor(x/e)*e),n.setUTCMinutes(x,0,0);break;case"month":var w=n.getUTCMonth();e>1&&(w=Math.floor(w/e)*e),n.setUTCMonth(w,1),n.setUTCHours(0,s,0,0);break;case"year":var P=n.getUTCFullYear();e>1&&(P=Math.floor(P/e)*e),n.setUTCFullYear(P,0,1),n.setUTCHours(0,s,0,0);break;case"week":var O=n.getUTCDate(),j=n.getUTCDay();C(t)||(t=1),j>=t?O=O-j+t:O=O-(7+j)+t,n.setUTCDate(O),n.setUTCHours(0,s,0,0);break}if(!r&&i!="millisecond"&&(n.setUTCMinutes(n.getUTCMinutes()+l),i=="day"||i=="week"||i=="month"||i=="year")){var M=n.getTimezoneOffset();if(M!=l){var F=M-l;n.setUTCMinutes(n.getUTCMinutes()+F)}}return n}function vu(n,i){var e=new Date(n.toLocaleString("en-US",{timeZone:i}));return e}function Mb(n){var i=new Date;i.setHours(0,0,0,0);var e=vu(i,n);return e.getMinutes()}var Ab=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._globalEventsAdded=!1,e._pointerEvents={pointerdown:"mousedown",pointerup:"mouseup",pointermove:"mou
2semove",pointercancel:"mouseup",pointerover:"mouseover",pointerout:"mouseout",wheel:"wheel"},e._usePointerEventsOnly=!1,e._useTouchEventsOnly=!1,e._addHoverEvents=!0,e._passiveSupported=!1,e._delayedEvents={out:[]},e.overObjects=new Pt,e.downObjects=new Pt,e.trackedObjects=new Pt,e.transformedObjects=new Pt,e.pointers=new Gt,e.inertiaOptions=new Gt,e.hitOptions={doubleHitTime:300,hitTolerance:10,noFocus:!0},e.hoverOptions={touchOutBehavior:"leave",touchOutDelay:1e3},e.swipeOptions={time:500,verticalThreshold:75,horizontalThreshold:30},e.keyboardOptions={speed:.1,accelleration:1.2,accellerationDelay:2e3},e.mouseOptions={sensitivity:1},e.className="Interaction",e.body=e.getInteraction(document.body),e._disposers.push(e.body),window.hasOwnProperty("PointerEvent")?(e._pointerEvents.pointerdown="pointerdown",e._pointerEvents.pointerup="pointerup",e._pointerEvents.pointermove="pointermove",e._pointerEvents.pointercancel="pointercancel",e._pointerEvents.pointerover="pointerover",e._pointerEvents.pointerout="pointerout"):window.hasOwnProperty("MSPointerEvent")?(e._pointerEvents.pointerdown="MSPointerDown",e._pointerEvents.pointerup="MSPointerUp",e._pointerEvents.pointermove="MSPointerMove",e._pointerEvents.pointercancel="MSPointerUp",e._pointerEvents.pointerover="MSPointerOver",e._pointerEvents.pointerout="MSPointerOut"):typeof matchMedia<"u"&&matchMedia("(pointer:fine)").matches?"ontouchstart"in window&&(e._addHoverEvents=!1,e._useTouchEventsOnly=!0):window.navigator.userAgent.match(/MSIE /)||e.fullFF()?e._usePointerEventsOnly=!0:e._useTouchEventsOnly=!0,"onwheel"in document.createElement("div")?e._pointerEvents.wheel="wheel":T(document.onmousewheel)&&(e._pointerEvents.wheel="mousewheel"),e.inertiaOptions.setKey("move",{time:100,duration:500,factor:1,easing:sd}),e.inertiaOptions.setKey("resize",{time:100,duration:500,factor:1,easing:sd}),e._passiveSupported=i.passiveSupported,e.applyTheme(),e}return i.prototype.fullFF=function(){return window.navigator.userAgent.match(/Firefox/)&&!window.navigator.userAgent.match(/Android/)},i.prototype.debug=function(){},i.prototype.addGlobalEvents=function(){var e=this;this._globalEventsAdded||(this._useTouchEventsOnly||(this._disposers.push(ki(document,this._pointerEvents.pointerdown,function(t){e.handleGlobalPointerDown(t)})),this._disposers.push(ki(document,this._pointerEvents.pointermove,function(t){e.handleGlobalPointerMove(t)})),this._disposers.push(ki(document,this._pointerEvents.pointerup,function(t){e.handleGlobalPointerUp(t)})),this._disposers.push(ki(document,this._pointerEvents.pointercancel,function(t){e.handleGlobalPointerUp(t,!0)})),this._disposers.push(ki(document,"mouseenter",function(t){!T(t.relatedTarget)&&(t.buttons==0||t.which==0)&&e.handleDocumentLeave(t)}))),this._usePointerEventsOnly||(this._disposers.push(ki(document,"touchstart",function(t){e.handleGlobalTouchStart(t)})),this._disposers.push(ki(document,"touchmove",function(t){e.handleGlobalTouchMove(t)})),this._disposers.push(ki(document,"touchend",function(t){e.handleGlobalTouchEnd(t)}))),this._disposers.push(ki(document,"keydown",function(t){e.handleGlobalKeyDown(t)})),this._disposers.push(ki(document,"keyup",function(t){e.handleGlobalKeyUp(t)})),this._globalEventsAdded=!0)},i.prototype.processClickable=function(e){this.processTouchable(e)},i.prototype.processContextMenu=function(e){e.contextMenuDisabled?e.eventDisposers.hasKey("contextMenuDisabled")||e.eventDisposers.setKey("contextMenuDisabled",ki(e.element,"contextmenu",function(t){t.preventDefault()})):e.eventDisposers.hasKey("contextMenuDisabled")&&e.eventDisposers.getKey("contextMenuDisabled").dispose()},i.prototype.processHoverable=function(e){var t=this;if(e.hoverable||e.trackable)this.addGlobalEvents(),this.applyCursorOverStyle(e),!e.eventDisposers.hasKey("hoverable")&&this._addHoverEvents&&e.eventDisposers.setKey("hoverable",new di([ki(e.element,this._pointerEvents.pointerout,function(a){return t.handlePointerOut(e,a)}),ki(e.element,this._pointerEvents.pointerover,function(a){return t.handlePointerOver(e,a)})])),e.trackable;else{var r=e.eventDisposers.getKey("hoverable");r!=null&&(r.dispose(),e.eventDisposers.removeKey("hoverable"))}this.processTouchable(e)},i.prototype.processMovable=function(e){(e.draggable||e.swipeable||e.trackable||e.resizable)&&(!this.isGlobalElement(e)&&!e.isTouchProtected&&this.prepElement(e),this.applyCursorOverStyle(e)),this.processTouchable(e)},i.prototype.processTrackable=function(e){this.processHoverable(e),this.processMovable(e),e.trackable?this.trackedObjects.moveValue(e):this.trackedObjects.removeValue(e)},i.prototype.processDraggable=function(e){this.processMovable(e)},i.prototype.processSwipeable=function(e){this.processMovable(e)},i.prototype.processResizable=function(e){this.processMovable(e)},i.prototype.processWheelable=function(e){var t=this;if(e.wheelable)e.eventDisposers.hasKey("wheelable")||e.eventDisposers.setKey("wheelable",new di([ki(e.element,this._pointerEvents.wheel,function(a){return t.handleMouseWheel(e,a)},this._passiveSupported?{passive:!1}:!1),e.events.on("out",function(a){e.wheelable&&t.unlockWheel()}),e.events.on("over",function(a){e.wheelable&&t.lockWheel()})]));else{var r=e.eventDisposers.getKey("wheelable");r!=null&&(r.dispose(),e.eventDisposers.removeKey("wheelable"))}}
2,i.prototype.processFocusable=function(e){var t=this;if(e.focusable===!0&&e.tabindex>-1&&!this._useTouchEventsOnly)e.eventDisposers.hasKey("focusable")||e.eventDisposers.setKey("focusable",new di([ki(e.element,"focus",function(a){return t.handleFocus(e,a)}),ki(e.element,"blur",function(a){return t.handleBlur(e,a)}),ki(e.element,this._pointerEvents.pointerdown,function(a){return t.handleFocusBlur(e,a)}),ki(e.element,"touchstart",function(a){return t.handleFocusBlur(e,a)},this._passiveSupported?{passive:!1}:!1)]));else{var r=e.eventDisposers.getKey("focusable");r!=null&&(r.dispose(),e.eventDisposers.removeKey("focusable"))}},i.prototype.processTouchable=function(e){var t=this;if(e.clickable||e.hoverable||e.trackable||e.draggable||e.swipeable||e.resizable)this.addGlobalEvents(),e.eventDisposers.hasKey("touchable")||(!this._useTouchEventsOnly&&!this._usePointerEventsOnly?e.eventDisposers.setKey("touchable",new di([ki(e.element,this._pointerEvents.pointerdown,function(a){return t.handlePointerDown(e,a)}),ki(e.element,"touchstart",function(a){return t.handleTouchDown(e,a)},this._passiveSupported?{passive:!1}:!1)])):this._useTouchEventsOnly?this._usePointerEventsOnly||e.eventDisposers.setKey("touchable",ki(e.element,"touchstart",function(a){return t.handleTouchDown(e,a)},this._passiveSupported?{passive:!1}:!1)):e.eventDisposers.setKey("touchable",ki(e.element,this._pointerEvents.pointerdown,function(a){return t.handlePointerDown(e,a)})));else{var r=e.eventDisposers.getKey("touchable");r!=null&&(r.dispose(),e.eventDisposers.removeKey("touchable"))}},i.prototype.handleFocus=function(e,t){if(!e.focusable){t.preventDefault();return}if(e.isFocused=!0,e.events.isEnabled("focus")&&!yt.isPaused){var r={type:"focus",target:e,event:t};e.events.dispatchImmediately("focus",r)}},i.prototype.handleFocusBlur=function(e,t){e.focusable!==!1&&this.getHitOption(e,"noFocus")&&e.events.once("focus",function(){e.events.disableType("blur"),Dl(),e.sprite&&e.sprite.handleBlur(),e.events.enableType("blur")})},i.prototype.handleBlur=function(e,t){if(!e.focusable){t.preventDefault();return}if(e.isFocused=!1,e.events.isEnabled("blur")&&!yt.isPaused){var r={type:"blur",target:e,event:t};e.events.dispatchImmediately("blur",r)}},i.prototype.handleGlobalKeyDown=function(e){if(this.focusedObject){if(Vn.isKey(e,"esc"))Dl();else if(this.focusedObject.draggable&&Vn.isKey(e,["up","down","left","right"])){e.preventDefault();var t=this.focusedObject,r="interactionKeyboardObject";if(t.eventDisposers.hasKey(r))return;var a=new Db(t,e);switch(t.eventDisposers.setKey(r,a),Vn.getEventKey(e)){case"up":a.directionY=-1;break;case"down":a.directionY=1;break;case"left":a.directionX=-1;break;case"right":a.directionX=1;break}}}},i.prototype.handleGlobalKeyUp=function(e){var t="interactionKeyboardObject";if(this.focusedObject){var r=this.focusedObject.eventDisposers.getKey(t);r!=null&&(e.preventDefault(),r.dispose(),this.focusedObject.eventDisposers.removeKey(t));var a=this.focusedObject.sprite;Vn.isKey(e,"enter")&&a&&(a.events.isEnabled("hit")||a.events.isEnabled("toggled")?this.focusedObject.dispatchImmediately("hit"):a.showTooltipOn=="hit"&&this.focusedObject.dispatchImmediately("up"))}},i.prototype.handleGlobalPointerMove=function(e){var t=this.getPointer(e);if(t.point=this.getPointerPoint(e),this.events.isEnabled("track")&&!yt.isPaused){var r={type:"track",target:this,event:e,pointer:t,touch:t.touch};this.events.dispatchImmediately("track",r)}this.addBreadCrumb(t,t.point),this.handleGlobalMove(t,e)},i.prototype.handleGlobalPointerDown=function(e){this.processDelayed();var t=this.getPointer(e);if(this.events.isEnabled("down")&&!yt.isPaused){var r={type:"down",target:this,event:e,pointer:t,touch:t.touch};this.events.dispatchImmediately("down",r)}},i.prototype.preventTouchAction=function(e){e.defaultPrevented||e.preventDefault()},i.prototype.handleGlobalPointerUp=function(e,t){t===void 0&&(t=!1);var r=this.getPointer(e);if(this.events.isEnabled("up")&&!yt.isPaused){var a={type:"up",target:this,event:e,pointer:r,touch:r.touch};this.events.dispatchImmediately("up",a)}this.handleGlobalUp(r,e,t)},i.prototype.handleGlobalTouchMove=function(e){for(var t=0;t<e.changedTouches.length;t++){var r=this.getPointer(e.changedTouches[t]);if(r.point=this.getPointerPoint(e.changedTouches[t]),this.events.isEnabled("track")&&!yt.isPau
2sed){var a={type:"track",target:this,event:e,pointer:r,touch:r.touch};this.events.dispatchImmediately("track",a)}this.addBreadCrumb(r,r.point),this.handleGlobalMove(r,e)}},i.prototype.handleGlobalTouchStart=function(e){this.processDelayed();for(var t=0;t<e.changedTouches.length;t++){var r=this.getPointer(e.changedTouches[t]);if(!this._usePointerEventsOnly&&this.events.isEnabled("down")&&!yt.isPaused){var a={type:"down",target:this,event:e,pointer:r,touch:r.touch};this.events.dispatchImmediately("down",a)}}},i.prototype.handleGlobalTouchEnd=function(e){for(var t=0;t<e.changedTouches.length;t++){var r=this.getPointer(e.changedTouches[t]);if(this.events.isEnabled("up")&&!yt.isPaused){var a={type:"up",target:this,event:e,pointer:r,touch:r.touch};this.events.dispatchImmediately("up",a)}this.handleGlobalUp(r,e)}},i.prototype.handlePointerDown=function(e,t){var r=this.getPointer(t);!r.touch&&t.which!=1&&t.which!=3||(r.button=t.which,this.resetPointer(r,t),this.handleDown(e,r,t))},i.prototype.handlePointerOver=function(e,t){var r=this.getPointer(t);this.handleOver(e,r,t)},i.prototype.handlePointerOut=function(e,t){var r=this.getPointer(t);this.handleOut(e,r,t)},i.prototype.handleMouseWheel=function(e,t){var r=this.getPointer(t);r.point=this.getPointerPoint(t);var a=0,s=0,o=1;if(t.deltaMode==1&&(o=50),o*=this.getMouseOption(e,"sensitivity"),t instanceof WheelEvent)a=Math.round(-1*t.wheelDeltaX||t.deltaX*o),s=Math.round(-1*t.wheelDeltaY||t.deltaY*o);else throw new Error("Invalid event type");this.handleWheel(e,r,a,s,t)},i.prototype.handleTouchDown=function(e,t){for(var r=0;r<t.changedTouches.length;r++){var a=this.getPointer(t.changedTouches[r]);this.maybePreventDefault(e,t,a),this.resetPointer(a,t.changedTouches[r]),this.handleDown(e,a,t)}},i.prototype.handleHit=function(e,t,r){var a=On();if(e.lastHit&&e.lastHit>=a-this.getHitOption(e,"doubleHitTime")){if(a-e.lastHit<100)return;if(e.lastHit=void 0,e.lastHitPointer=void 0,e.events.isEnabled("doublehit")&&!yt.isPaused){var s={type:"doublehit",target:e,point:t.point,event:r,touch:t.touch};e.events.dispatchImmediately("doublehit",s)}}else if(e.lastHit=a,e.lastHitPointer=t,t.button===3){if(e.events.isEnabled("rightclick")&&!yt.isPaused){var s={type:"rightclick",target:e,event:r};e.events.dispatchImmediately("rightclick",s)}}else if(e.events.isEnabled("hit")&&!yt.isPaused){var s={type:"hit",target:e,event:r,point:t.point,touch:t.touch};e.events.dispatchImmediately("hit",s)}},i.prototype.handleOver=function(e,t,r,a){if(e.hoverable){var s=!1;if(this.shouldCancelHovers(t)&&this.areTransformed()&&this.moved(t,this.getHitOption(e,"hitTolerance"))&&(s=!0,this.cancelAllHovers(r)),this.processDelayed(),e.overPointers.moveValue(t),!e.isRealHover&&(s||(e.isHover=!0,e.isRealHover=!0,this.overObjects.moveValue(e)),this.handleTrack(this.body,t,r,!0),e.events.isEnabled("over")&&!yt.isPaused&&!s)){var o={type:"over",target:e,event:r,pointer:t,touch:t.touch};e.events.dispatchImmediately("over",o)}}},i.prototype.handleOut=function(e,t,r,a,s){var o=this;if(a===void 0&&(a=!1),s===void 0&&(s=!1),!!e.hoverable&&(e.overPointers.removeValue(t),e.isHover&&(!e.hasDelayedOut||s))){if(a&&e.overPointers.length)return;if(t&&t.touch&&!s&&!this.old(t)){var l=this.getHoverOption(e,"touchOutBehavior");if(l=="leave"){this._delayedEvents.out.push({type:"out",io:e,pointer:t,event:r,keepUntil:On()+500}),e.hasDelayedOut=!0;return}else if(l=="delay"&&this.getHoverOption(e,"touchOutDelay")){this._delayedEvents.out.push({type:"out",io:e,pointer:t,event:r,keepUntil:On()+500,timeout:this.setTimeout(function(){o.handleOut(e,t,r,!0)},this.getHoverOption(e,"touchOutDelay"))});return}}if(e.isHover=!1,this.overObjects.removeValue(e),!e.isDisposed()&&e.events.isEnabled("out")&&!yt.isPaused){var u={type:"out",target:e,event:r,pointer:t,touch:t.touch};e.events.dispatchImmediately("out",u)}e.overPointers.clear(),e.hasDelayedOut=!1}},i.prototype.processDelayed=function(){for(var e;e=this._delayedEvents.out.pop(),!!e;)e.timeout&&e.timeout.dispose(),this.handleOut(e.io,e.pointer,e.event,!1,!0)},i.prototype.handleDown=function(e,t,r){if(this.maybePreventDefault(e,r,t),e.inert&&this.stopInertia(e),this.handleOver(e,t,r,!0),e.downPointers.moveValue(t),this.applyCursorDownStyle(e,t),e.isDown||(e.focusable!==!1&&this.getHitOption(e,"noFocus")&&this.focusedObject&&Dl(),e.isDown=!0,this.downObjects.moveValue(e),e.draggable&&this.processDragStart(e,t,r),e.resizable&&this.processResizeStart(e,t,r)),e.events.isEnabled("down")&&!yt.isPau
2sed){var a={type:"down",target:e,event:r,pointer:t,touch:t.touch};e.events.dispatchImmediately("down",a)}},i.prototype.handleGlobalUp=function(e,t,r){var a=this;r===void 0&&(r=!1);var s=this.downObjects.values.slice();s.sort(function(o,l){if(o&&l){var u=o.element.compareDocumentPosition(l.element);return u&Node.DOCUMENT_POSITION_CONTAINED_BY?1:u&Node.DOCUMENT_POSITION_CONTAINS?-1:0}else return 0}),De(s,function(o){o&&o.downPointers.contains(e)&&a.handleUp(o,e,t,r)})},i.prototype.handleDocumentLeave=function(e){var t=this;ue(this.downObjects.backwards().iterator(),function(r){r.downPointers.each(function(a){t.handleUp(r,a,e)})})},i.prototype.handleUp=function(e,t,r,a){if(a===void 0&&(a=!1),this.restoreCursorDownStyle(e,t),e.downPointers.removeValue(t),(t&&t.touch||this._useTouchEventsOnly)&&this.handleOut(e,t,r,!0),e.isDown){if(e.downPointers.length==0&&(e.isDown=!1,this.downObjects.removeValue(e)),e.events.isEnabled("up")&&!yt.isPaused&&t){var s={type:"up",target:e,event:r,pointer:t,touch:t.touch};e.events.dispatchImmediately("up",s)}a||(e.swipeable&&this.swiped(e,t)?this.handleSwipe(e,t,r):(e.clickable&&!this.moved(t,this.getHitOption(e,"hitTolerance"))&&this.handleHit(e,t,r),e.inert&&this.moved(t,this.getHitOption(e,"hitTolerance"))?this.handleInertia(e,t):e.draggable&&this.processDragStop(e,t,r),e.resizable&&this.processResizeStop(e,t,r)))}},i.prototype.maybePreventDefault=function(e,t,r){T(t)&&(e.draggable||e.swipeable||e.trackable||e.resizable)&&!this.isGlobalElement(e)&&t.cancelable!==!1&&(!e.isTouchProtected||!r||!r.touch)&&t.preventDefault()},i.prototype.cancelAllHovers=function(e){var t=this;ue(this.overObjects.backwards().iterator(),function(r){if(r){var a=r.overPointers.getIndex(0);t.handleOut(r,a,e,!0,!0)}})},i.prototype.shouldCancelHovers=function(e){return ir.disableHoverOnTransform=="touch"},i.prototype.handleGlobalMove=function(e,t){var r=this;if(!e.touch){var a=yb(e.lastEvent);ue(this.overObjects.backwards().iterator(),function(s){if(s&&s.overPointers.contains(e)&&s.hoverable){var o=!1;s.element&&e.lastEvent&&zf(s.element,a)||(o=!0),o&&r.handleOut(s,e,t,!0)}})}ue(this.transformedObjects.backwards().iterator(),function(s){s.downPointers.contains(e)&&!(s.swipeable&&r.swiping(s,e))&&(s.draggable||s.resizable)&&r.handleTransform(s,t)}),ue(this.trackedObjects.backwards().iterator(),function(s){s.overPointers.contains(e)||r.handleTrack(s,e,t)})},i.prototype.handleTrack=function(e,t,r,a){if(a===void 0&&(a=!1),!(!a&&!this.moved(t,0))&&e.events.isEnabled("track")&&!yt.isPaused){var s={type:"track",target:e,event:r,point:t.point,pointer:t,touch:t.touch};e.events.dispatchImmediately("track",s)}},i.prototype.handleSwipe=function(e,t,r){if(e.events.isEnabled("swipe")&&!yt.isPaused){var a={type:"swipe",target:e,event:r,touch:t.touch};e.events.dispatchImmediately("swipe",a)}if(t.startPoint.x<t.point.x){if(e.events.isEnabled("swiperight")&&!yt.isPaused){var a={type:"swiperight",target:e,event:r,touch:t.touch};e.events.dispatchImmediately("swiperight",a)}}else if(e.events.isEnabled("swipeleft")&&!yt.isPaused){var a={type:"swipeleft",target:e,event:r,touch:t.touch};e.events.dispatchImmediately("swipeleft",a)}},i.prototype.handleWheel=function(e,t,r,a,s){var o={x:r,y:a};e.events.isEnabled("wheel")&&!yt.isPaused&&e.events.dispatchImmediately("wheel",{type:"wheel",target:e,event:s,point:t.point,shift:o}),r<0?e.events.isEnabled("wheelleft")&&!yt.isPaused&&e.events.dispatchImmediately("wheelleft",{type:"wheelleft",target:e,event:s,point:t.point,shift:o}):r>0?e.events.isEnabled("swiperight")&&!yt.isPaused&&e.events.dispatchImmediately("wheelright",{type:"wheelright",target:e,event:s,point:t.point,shift:o}):a<0?e.events.isEnabled("wheelup")&&!yt.isPaused&&e.events.dispatchImmediately("wheelup",{type:"wheelup",target:e,event:s,point:t.point,shift:o}):a>0&&e.events.isEnabled("wheeldown")&&!yt.isPaused&&e.events.dispatchImmediately("wheeldown",{type:"wheeldown",target:e,event:s,point:t.point,shift:o})},i.prototype.handleInertia=function(e,t){e.draggable&&e.downPointers.length===0&&this.handleMoveInertia(e,t),e.resizable&&e.downPointers.length>1&&this.handleResizeInertia(e,t)},i.prototype.handleMoveInertia=function(e,t){var r=e,a="move",s={x:t.point.x,y:t.point.y},o={x:t.startPoint.x,y:t.startPoint.y}
2,l=new Sb(r,a,s,o),u=this.getTrailPoint(t,On()-this.getInertiaOption(e,"move","time"));if(typeof u>"u"){this.processDragStop(e,t,t.lastUpEvent);return}var h=this.getInertiaOption(e,"move","factor"),d=[{to:t.point.x+(t.point.x-u.point.x)*h,property:"x"},{to:t.point.y+(t.point.y-u.point.y)*h,property:"y"}],f=new cn(l,d,this.getInertiaOption(e,"move","duration"),this.getInertiaOption(e,"move","easing")).start();this._disposers.push(f.events.on("animationended",function(p){l.done()})),e.inertias.setKey("move",l)},i.prototype.handleResizeInertia=function(e,t){},i.prototype.handleTransform=function(e,t){var r=e.downPointers.getIndex(0),a=null,s=null;r&&(a=r.point,s=r.startPoint);var o,l,u;l={x:e.originalPosition.x,y:e.originalPosition.y},u=l;for(var h=!0,d=1;d<e.downPointers.length;d++){var f=e.downPointers.getIndex(d);if(s.x!=f.startPoint.x&&s.y!=f.startPoint.y){h=!1,o=f,l=o.point,u=o.startPoint;break}}var p=r&&this.moved(r,0);if(e.draggable&&r&&r.dragStartEvents&&r.dragStartEvents.length&&p&&e.events.isEnabled("dragstart")&&!yt.isPaused&&e.events.dispatchImmediately("dragstart",r.dragStartEvents.shift()),h&&e.draggable)this.handleTransformMove(e,a,s,t,p,r.touch),this.shouldCancelHovers(r)&&this.moved(r,this.getHitOption(e,"hitTolerance"))&&this.cancelAllHovers(t);else{var v=o&&this.moved(o,0);(this.shouldCancelHovers(r)&&this.moved(r,this.getHitOption(e,"hitTolerance"))||this.shouldCancelHovers(o)&&this.moved(o,this.getHitOption(e,"hitTolerance")))&&this.cancelAllHovers(t),e.draggable&&e.resizable?(this.handleTransformMove(e,a,s,t,p&&v,r.touch),this.handleTransformResize(e,a,s,l,u,t,p&&v,r.touch)):(e.draggable&&this.handleTransformMove(e,a,s,t,p,r.touch),e.resizable&&(!h||t.ctrlKey)&&this.handleTransformResize(e,a,s,l,u,t,p&&v,r.touch))}},i.prototype.handleTransformMove=function(e,t,r,a,s,o){if(s&&e.events.isEnabled("drag")&&!yt.isPaused&&(!e.isTouchProtected||!o)){var l={type:"drag",target:e,event:a,shift:{x:t.x-r.x,y:t.y-r.y},startPoint:r,point:t,touch:o};e.events.dispatchImmediately("drag",l)}},i.prototype.handleTransformResize=function(e,t,r,a,s,o,l,u){if(e.events.isEnabled("resize")&&!yt.isPaused&&(!e.isTouchProtected||!u)){var h={type:"resize",target:e,event:o,scale:zm(t,r,a,s),startPoint1:r,point1:t,startPoint2:s,point2:a,touch:u};e.events.dispatchImmediately("resize",h)}},i.prototype.processDragStart=function(e,t,r){this.transformedObjects.moveValue(e),this.shouldCancelHovers(t)&&this.cancelAllHovers(r);var a={type:"dragstart",target:e,event:r,touch:t?t.touch:!1};t&&(t.dragTarget=e),t&&t.dragStartEvents?t.dragStartEvents.push(a):yt.isPaused||e.dispatchImmediately("dragstart",a)},i.prototype.processDragStop=function(e,t,r){if(t||(t=this.getDragPointer(e)),t&&(t.dragTarget=void 0),this.transformedObjects.removeValue(e),(!t||this.moved(t,0))&&e.events.isEnabled("dragstop")&&!yt.isPaused){var a={type:"dragstop",target:e,touch:t?t.touch:!1};e.events.dispatchImmediately("dragstop",a)}},i.prototype.processResizeStart=function(e,t,r){this.transformedObjects.moveValue(e)},i.prototype.processResizeStop=function(e,t,r){this.transformedObjects.removeValue(e)},i.prototype.dragStart=function(e,t){t||(t=this.getDragPointer(e)),t&&this.handleDown(e,t,t.lastDownEvent)},i.prototype.dragStop=function(e,t,r){t||(t=this.getDragPointer(e)),t&&!r&&this.handleGlobalUp(t,t.lastUpEvent,r)},i.prototype.getDragPointer=function(e){return e?e.downPointers.getIndex(0):this.transformedObjects.length?this.getDragPointer(this.transformedObjects.getIndex(0)):void 0},i.prototype.getPointerId=function(e){var t="";return T(e.identifier)?t=""+e.identifier:T(e.pointerId)?t=""+e.pointerId:t="m",t.replace("-","")},i.prototype.getPointerPoint=function(e){return{x:e.clientX,y:e.clientY}},i.prototype.getPointer=function(e){var t=this.getPointerId(e),r=this.getPointerPoint(e),a;return this.pointers.hasKey(t)?(a=this.pointers.getKey(t),a.touch=this.isPointerTouch(e)):(a={id:t,touch:this.isPointerTouch(e),startPoint:r,startTime:On(),point:r,track:[],swipeCanceled:!1,dragStartEvents:[]},this.addBreadCrumb(a,r),this.pointers.setKey(t,a)),a.lastEvent=e,this.lastPointer=a,a},i.prototype.isPointerTouch=function(e){if(typeof Touch<"u"&&e instanceof Touch)return!0;
2if(typeof PointerEvent<"u"&&e instanceof PointerEvent&&T(e.pointerType))switch(e.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(e instanceof MouseEvent)}else if(T(e.type)&&e.type.match(/^mouse/))return!1;return!0},i.prototype.resetPointer=function(e,t){var r=this.getPointerPoint(t);e.startTime=On(),e.startPoint={x:r.x,y:r.y},e.point={x:r.x,y:r.y},e.track=[],e.swipeCanceled=!1},i.prototype.addBreadCrumb=function(e,t){e.track.push({timestamp:On(),point:t})},i.prototype.lockDocument=function(){this.prepElement(this.body)},i.prototype.unlockDocument=function(){this.transformedObjects.length==0&&this.restoreAllStyles(this.body)},i.prototype.lockElement=function(e){this.prepElement(e)},i.prototype.unlockElement=function(e){this.restoreAllStyles(e)},i.prototype.lockWheel=function(){window.addEventListener(this._pointerEvents.wheel,this.wheelLockEvent,this._passiveSupported?{passive:!1}:!1)},i.prototype.unlockWheel=function(){window.removeEventListener(this._pointerEvents.wheel,this.wheelLockEvent)},i.prototype.isLocalElement=function(e,t,r){var a=this.getCache("local_pointer_"+e.id);if(T(a))return a;var s=dy(t)||document;if(s.elementFromPoint){var o=s.elementFromPoint(e.point.x,e.point.y),l=o&&zf(t,o);return this.setCache("local_pointer_"+e.id+"_"+r,l,100),l}return!1},i.prototype.wheelLockEvent=function(e){return e.preventDefault(),!1},i.prototype.prepElement=function(e){var t=e.element;if(t){for(var r=["touchAction","webkitTouchAction","MozTouchAction","MSTouchAction","msTouchAction","oTouchAction","userSelect","webkitUserSelect","MozUserSelect","MSUserSelect","msUserSelect","oUserSelect","touchSelect","webkitTouchSelect","MozTouchSelect","MSTouchSelect","msTouchSelect","oTouchSelect","touchCallout","webkitTouchCallout","MozTouchCallout","MSTouchCallout","msTouchCallout","oTouchCallout","contentZooming","webkitContentZooming","MozContentZooming","MSContentZooming","msContentZooming","oContentZooming","userDrag","webkitUserDrag","MozUserDrag","MSUserDrag","msUserDrag","oUserDrag"],a=0;a<r.length;a++)r[a]in t.style&&this.setTemporaryStyle(e,r[a],"none");this.setTemporaryStyle(e,"tapHighlightColor","rgba(0, 0, 0, 0)")}},i.prototype.unprepElement=function(e){var t=e.element;if(t){for(var r=["touchAction","webkitTouchAction","MozTouchAction","MSTouchAction","msTouchAction","oTouchAction","userSelect","webkitUserSelect","MozUserSelect","MSUserSelect","msUserSelect","oUserSelect","touchSelect","webkitTouchSelect","MozTouchSelect","MSTouchSelect","msTouchSelect","oTouchSelect","touchCallout","webkitTouchCallout","MozTouchCallout","MSTouchCallout","msTouchCallout","oTouchCallout","contentZooming","webkitContentZooming","MozContentZooming","MSContentZooming","msContentZooming","oContentZooming","userDrag","webkitUserDrag","MozUserDrag","MSUserDrag","msUserDrag","oUserDrag"],a=0;a<r.length;a++)r[a]in t.style&&this.restoreStyle(e,r[a]);this.restoreStyle(e,"tapHighlightColor")}},i.prototype.getHitOption=function(e,t){var r=e.hitOptions[t];return typeof r>"u"&&(r=this.hitOptions[t]),r},i.prototype.getHoverOption=function(e,t){var r=e.hoverOptions[t];return typeof r>"u"&&(r=this.hoverOptions[t]),r},i.prototype.getSwipeOption=function(e,t){var r=e.swipeOptions[t];return typeof r>"u"&&(r=this.swipeOptions[t]),r},i.prototype.getKeyboardOption=function(e,t){var r=e.keyboardOptions[t];return typeof r>"u"&&(r=this.keyboardOptions[t]),r},i.prototype.getMouseOption=function(e,t){var r=e.mouseOptions[t];return typeof r>"u"&&(r=this.mouseOptions[t]),r},i.prototype.getInertiaOption=function(e,t,r){var a=e.inertiaOptions.getKey(t),s;return a&&T(a[r])?s=a[r]:s=this.inertiaOptions.getKey(t)[r],s},i.prototype.stopInertia=function(e){for(var t,r=["move","resize"],a=0;a<r.length;a++)if(t=r[a],e.inertias.hasKey(t)){var s=e.inertias.getKey(t);if(s){s.dispose();continue}}},i.prototype.swiping=function(e,t){var r=On();return t.swipeCanceled||!e.swipeable?!1:Math.abs(t.startPoint.y-t.point.y)<this.getSwipeOption(e,"verticalThreshold")&&t.startTime>r-this.getSwipeOption(e,"time")},i.prototype.swiped=function(e,t){var r=On();return t.swipeCanceled?!1:Math.abs(t.startPoint.x-t.point.x)>this.getSwipeOption(e,"horizontalThreshold")&&Math.abs(t.startPoint.y-t.point.y)<this.getSwipeOption(e,"verticalThreshold")&&t.startTime>r-this.getSwipeOption(e,"time")},i.prototype.applyCursorOverStyle=function(e){var t=e.cursorOptions;if(T(t.overStyle))for(var r=0;r<t.overStyle.length;r++)Bf(e.element,t.overStyle[r].property,t.overStyle[r].value)},i.prototype.applyCursorDownStyle=function(e,t){if(!(t&&t.touch)){var r=e.cursorOptions.downStyle;if(e.downPointers.contains(t)&&T(r))for(var a=0;a<r.length;a++)this.setTemporaryStyle(this.body,r[a].property,r[a].value),this.setTemporaryStyle(e,r[a].property,r[a].value)}},i.prototype.restoreCursorDownStyle=function(e,t){if(!(t&&t.touch)){var r=e.cursorOptions.downStyle;if(e.downPointers.contains(t)&&T(r))for(var a=0;a<r.length;a++)this.restoreStyle(this.body,r[a].property),this.restoreStyle(e,r[a].property)}},i.prototype.setGlobalStyle=function(e){for(var t=Je().body,r=Ui(e)?e:[e],a=0;a<r.length;a++)this.setTemporaryStyle(t,r[a].property,r[a].value)},i.prototype.restoreGlobalStyle=function(e){for(var t=Je().body,r=Ui(e)?e:[e],a=0;a<r.length;a++)this.restoreStyle(t,r[a].property)},i.prototype.isGlobalElement=function(e){return document.body===e.element},i.prototype.moved=function(e,t,r){var a=this.getShift(e);return Math.abs(a.x)>t||Math.abs(a.y)>t},i.prototype.old=function(e,t){return t===void 0&&(t=300),On()-e.startTime>t},i.prototype.getShift=function(e){return{x:e.startPoint.x-e.point.x,y:e.startPoint.y-e.point.y}},i.prototype.getTrailPoint=function(e,t){for(var r,a=0;a<e.track.length;a++)if(e.track[a].timestamp>=t){r=e.track[a];break}return r},i.prototype.pointerExists=function(e,t){var r=!1;return e.each(function(a){a!=t&&(r=a.point.x==t.point.x&&a.point.y==t.point.y)}),r},i.prototype.getInteraction=function(e){return new Cb(e)},i.prototype.setTemporaryStyle=function(e,t,r){var a=e.element;T(a.style[t])&&!e.replacedStyles.hasKey(t)&&e.replacedStyles.setKey(t,a.style[t]),Bf(a,t,r)},i.prototype.restoreStyle=function(e,t){e.replacedStyles.hasKey(t)?(e.element.style[t]=e.replacedStyles.getKey(t),e.replacedStyles.removeKey(t)):delete e.element.style[t]},i.prototype.restoreAllStyles=function(e){ue(e.replacedStyles.iterator(),function(t){var r=t[0],a=t[1];e.element.style[r]=a,e.replacedStyles.removeKey(r)})},i.prototype.dispose=function(){this.isDisposed()||(n.prototype.dispose.call(this),this.restoreAllStyles(this.body),this.unlockWheel())},i.prototype.log=function(e,t,r){{if(t.changedTouches){for(var a=0;a<t.changedTouches.length;a++)this.logTouch(e,t.type,t.changedTouches[a]);return}var s="";if(t.pointerType)switch(t.pointerType){case 2:s="touch";break;case 4:s="mouse";break;default:s=t.pointerType;break}else typeof TouchEvent<"u"&&t instanceof TouchEvent?s="touch":t.type.match(/^mouse/)?s="mouse":s="???";var o="";T(t.identifier)?o=t.identifier:T(t.pointerId)?o=t.pointerId:o="???",console.log(r?e+" ("+r.uid+")  "+t.type+"  "+s+"  "+o:e+"  "+t.type+"  "+s+"  "+o)}},i.prototype.areTransformed=function(e){var t=this.transformedObjects.length;if(e)for(var r=Ui(e)?e:[e],a=0;a<r.length;a++)this.transformedObjects.contains(r[a])&&t--;return t>0},i.prototype.logTouch=function(e,t,r){console.log(e+"  "+t+"  touch  "+r.identifier)},Object.defineProperty(i,"passiveSupported",{get:function(){var e=this;if(this._passiveSupported==null)try{var t=Object.defineProperty({},"passive",{get:function(){e._passiveSupported=!0}
2});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{this._passiveSupported=!1}return this._passiveSupported},enumerable:!0,configurable:!0}),i}(Nn),wh=null;function Je(){return wh==null&&(wh=new Ab),wh}var fy=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.adapter=new Lr(e),e._elements={},e._IOs={},e._content="",e._title="",e._classPrefix="ampopup",e._defaultStyles=!0,e._showCurtain=!1,e._draggable=!0,e._align="center",e._dynamicResize=!0,e._verticalAlign="middle",e._shift={x:0,y:0},e._tempShift={x:0,y:0},e._readerTitle="",e._closable=!0,e._cssLoaded=!1,e._fitTo="window",e.isTemplate=!1,e._sized=!1,e.className="Popup",e}return i.prototype.open=function(){this.container&&(this._elements.wrapper&&this.container.appendChild(this._elements.wrapper),this._elements.curtain&&(this.container.appendChild(this._elements.curtain),this.showCurtain=this.showCurtain),this.positionElement(),this.dispatchImmediately("opened"))},i.prototype.close=function(){this._elements.wrapper&&this._elements.wrapper.parentElement&&this._elements.wrapper.parentElement.removeChild(this._elements.wrapper),this._elements.curtain&&this._elements.curtain.parentElement&&this._elements.curtain.parentElement.removeChild(this._elements.curtain),this.dispatchImmediately("closed"),this.releasePointers()},i.prototype.dispose=function(){this.close(),n.prototype.dispose.call(this)},i.prototype.positionElement=function(e){var t=this;e===void 0&&(e=!0),this._elements.wrapper&&setTimeout(function(){if(t._elements.wrapper){if(e||!t._sized){t._elements.wrapper.style.opacity="0.01",t._elements.wrapper.style.left="0",t._elements.wrapper.style.top="0",t._elements.wrapper.style.margin="0 0 0 0",t._elements.wrapper.style.width="",t._elements.wrapper.style.height="";var r=t._elements.wrapper.getBoundingClientRect();t._elements.wrapper.style.width=r.width+"px",t._elements.wrapper.style.height=r.height+"px",t._sized=!0}if(t.dynamicResize)for(var a=t._elements.wrapper.getElementsByTagName("img"),s=0;s<a.length;s++){var o=a[s];if(!o.complete){o.addEventListener("load",function(){t.positionElement(!0)});break}}setTimeout(function(){if(t._elements.wrapper){var l;switch((e||!t._sized)&&t._bbox?l=t._bbox:(l=t._elements.wrapper.getBoundingClientRect(),t._elements.wrapper.style.opacity=""),t.align){case"left":t._elements.wrapper.style.left="0",t._elements.wrapper.style.right="auto",t._elements.wrapper.style.marginLeft=t.toStyle(t._shift.x+t._tempShift.x);break;case"center":t._elements.wrapper.style.left="50%",t._elements.wrapper.style.right="auto",t._elements.wrapper.style.marginLeft=t.toStyle(Math.round(-l.width/2)+(t._shift.x+t._tempShift.x));break;case"right":t._elements.wrapper.style.left="auto",t._elements.wrapper.style.right="0",t._elements.wrapper.style.marginLeft=t.toStyle(t._shift.x+t._tempShift.x);break;default:t._elements.wrapper.style.left=t.toStyle(t.left)||"auto",t._elements.wrapper.style.right=t.toStyle(t.right)||"auto",t._elements.wrapper.style.marginLeft=t.toStyle(t._shift.x+t._tempShift.x);break}switch(t.verticalAlign){case"top":t._elements.wrapper.style.top="0",t._elements.wrapper.style.bottom="auto",t._elements.wrapper.style.marginTop=t.toStyle(t._shift.y+t._tempShift.y);break;case"middle":t._elements.wrapper.style.top="50%",t._elements.wrapper.style.bottom="auto",t._elements.wrapper.style.marginTop=t.toStyle(Math.round(-l.height/2)+(t._shift.y+t._tempShift.y));break;case"bottom":t._elements.wrapper.style.top="auto",t._elements.wrapper.style.bottom="0",t._elements.wrapper.style.marginTop=t.toStyle(t._shift.y+t._tempShift.y);break;default:t._elements.wrapper.style.top=t.toStyle(t.top)||"auto",t._elements.wrapper.style.bottom=t.toStyle(t.bottom)||"auto",t._elements.wrapper.style.marginTop=t.toStyle(t._shift.y+t._tempShift.y);break}}},1)}},1)},i.prototype.setupDragging=function(){var e=this;this.draggable?(this._IOs.header.events.has("drag")||this._IOs.header.events.on("drag",function(t){e._tempShift.x=t.shift.x,e._tempShift.y=t.shift.y,e.positionElement(!1)}),this._IOs.header.events.has("dragstop")||this._IOs.header.events.on("dragstop",function(t){e._shift.x+=e._tempShift.x,e._shift.y+=e._tempShift.y,e._tempShift.x=0,e._tempShift.y=0,e.positionElement(!1)})):this._IOs.header&&(Je().unprepElement(this._IOs.header),this._IOs.header.events.has("drag")&&this._IOs.header.events.off("drag"),this._IOs.header.events.has("dragstop")&&this._IOs.header.events.off("dragstop"))},i.prototype.toStyle=function(e){return T(e)?C(e)?""+e+"px":e.toString():null},Object.defineProperty(i.prototype,"classPrefix",{get:function(){return this.adapter.apply("classPrefix",this._classPrefix)},set:function(e){this._classPrefix=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"classPrefixRaw",{get:function(){return this._classPrefix},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"content",{get:function(){return this.adapter.apply("content",this._content)},set:function(e){this._content!=e&&(this._content=e,this._elements.content||this.createContentElement(),this._elements.content.innerHTML=e,this.positionElement())},enumerable:!0,configurable:!0}),i.prototype.getClassNames=function(){return this.adapter.apply("classNames",{wrapperClass:this.classPrefix+"",headerClass:this.classPrefix+"-header",titleClass:this.classPrefix+"-title",contentClass:this.classPrefix+"-content",insideClass:this.classPrefix+"-inside",curtainClass:this.classPrefix+"-curtain",closeClass:this.classPrefix+"-close"})},i.prototype.createContentElement=function(){if(!this._elements.wrapper){var e=this.getClassNames(),t=document.createElement("div");t.className=e.contentClass,t.style.opacity="0.01";var r=document.createElement("a");r.className=e.closeClass;var a=document.createElement("div");a.className=e.headerClass;var s=document.createElement("div");s.innerHTML=this.title,s.className=e.titleClass,this.title||(s.style.display="none");var o=document.createElement("div");o.className=e.insideClass,o.innerHTML=this.content,this._IOs.wrapper=Je().getInteraction(t),this._IOs.header=Je().getInteraction(a),this._disposers.push(this._IOs.wrapper),this._IOs.wrapper.events.on("over",this.disablePointers,this),this._IOs.wrapper.events.on("out",this.releasePointers,this),this._IOs.close=Je().getInteraction(r),this._disposers.push(this._IOs.close),r.style.visibility="hidden",t.setAttribute("role","dialog"),a.appendChild(r),a.appendChild(s),t.appendChild(a),t.appendChild(o),this.container.appendChild(t),this._elements.wrapper=t,this._elements.header=a,this._elements.content=o,this._elements.title=s,this._elements.close=r,this.defaultStyles&&this.loadDefaultCSS(),this.createCurtainElement(),this.applyEvents(),this.applyReaderSettings(),this.setupDragging()}},Object.defineProperty(i.prototype,"title",{get:function(){return this.adapter.apply("title",this._title)},set:function(e){this._title!=e&&(this._title=e,this._elements.content||this.createContentElement(),this._elements.title.innerHTML=e,this.positionElement(),this.applyReaderSettings())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerTitle",{get:function(){return this.adapter.apply("readerTitle",this._readerTitle!=""?this._readerTitle:this.title)},set:function(e){this._readerTitle!=e&&(this._readerTitle=e,this.applyReaderSettings())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"closable",{get:function(){return this.adapter.apply("closable",this._closable)},set:function(e){e!==this._closable&&(this._closable=e,this.applyEvents())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fitTo",{get:function(){return this.adapter.apply("fitTo",this._fitTo)},set:function(e){e!=this._fitTo&&(this._fitTo=e,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultStyles",{get:function(){return this.adapter.apply("defaultStyles",this._defaultStyles)},set:function(e){this._defaultStyles!=e&&(this._defaultStyles=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showCurtain",{get:function(){return this.adapter.apply("showCurtain",this._showCurtain)},set:function(e){this._showCurtain!=e&&(this._showCurtain=e,this._elements.curtain&&(this._elements.curtain.style.display=e?"block":"none"))},enumerable:!0,configurable:!0}),i.prototype.createCurtainElement=function(){var e=this.getClassNames(),t=document.createElement("div");t.className=e.curtainClass,this.container.appendChild(t),this._IOs.curtain=Je().getInteraction(t),this._disposers.push(this._IOs.curtain),this._IOs.curtain.events.on("over",this.disablePointers,this),this._IOs.curtain.events.on("out",this.releasePointers,this),t.style.display=this.showCurtain?"block":"none",this._elements.curtain=t},Object.defineProperty(i.prototype,"draggable",{get:function(){return this.adapter.apply("draggable",this._draggable)},set:function(e){this._draggable!=e&&(this._draggable=e,this.setupDragging())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dynamicResize",{get:function(){return this.adapter.apply("dynamicResize",this._dynamicResize)},set:function(e){this._dynamicResize!=e&&(this._dynamicResize=e,this.positionElement(!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"align",{get:function(){return this.adapter.apply("align",this._align)},set:function(e){this._align!=e&&(this._align=e,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalAlign",{get:function(){return this.adapter.apply("verticalAlign",this._verticalAlign)},set:function(e){this._verticalAlign!=e&&(this._verticalAlign=e,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"left",{get:function(){return this.adapter.apply("left",this._left)},set:function(e){this.left!=e&&(this._left=e,this._align="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"right",{get:function(){return this.adapter.apply("right",this._right)},set:function(e){this.right!=e&&(this._right=e,this._align="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return this.adapter.apply("top",this._top)},set:function(e){this.top!=e&&(this._top=e,this._verticalAlign="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bottom",{get:function(){return this.adapter.apply("bottom",this._bottom)},set:function(e){this.bottom!=e&&(this._bottom=e,this._verticalAlign="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),i.prototype.loadDefaultCSS=function(){this._cssLoaded||(this._disposers.push(wb(Zd(this.container),this.classPrefix)),$e(this._elements,function(e,t){t.style.display=""}),this._cssLoaded=!0)},i.prototype.applyEvents=function(){var e=this;if(this._IOs.close)if(this.closable){this._IOs.close.element.style.visibility="visible";var t=[Je().body.events.on("keyup",function(r){Vn.isKey(r.event,"esc")&&e.closable&&e.close()}),this._IOs.close.events.on("hit",function(r){e.close()})];t.push(this._IOs.curtain.events.on("hit",function(r){e.showCurtain&&e.closable&&e.close()})),this._disposers.push(new di(t))}else this._IOs.close.element.style.visibility="hidden"},i.prototype.disablePointers=function(){this.sprite&&(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled,this.sprite.interactionsEnabled=!1)},i.prototype.releasePointers=function(){T(this._spriteInteractionsEnabled)&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled,this._spriteInteractionsEnabled=void 0)},i.prototype.applyReaderSettings=function(){this.elements.wrapper.setAttribute("aria-label",this.readerTitle)},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.container=e.container,this.sprite=e.sprite,this.classPrefix=e.classPrefixRaw,this.content=e.content,this.title=e.title,this.readerTitle=e.readerTitle,this.defaultStyles=e.defaultStyles,this.showCurtain=e.showCurtain,this.align=e.align,this.verticalAlign=e.verticalAlign,this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.adapter.copyFrom(e.adapter)},i}(Nn),py=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.adapter=new Lr(e),e.className="Modal",e.showCurtain=!0,e.draggable=!1,e}return i}(fy);function jb(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];console&&console.log.apply(console,Ss(n))}function Qd(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];console&&console.warn.apply(console,Ss(n))}var Vb=function(){function n(){var i=this;this._targets=[],this._observer=new ResizeObserver(function(e){De(e,function(t){De(i._targets,function(r){r.target===t.target&&r.callback()})})})}return n.prototype.addTarget=function(i,e){this._observer.observe(i,{box:"content-box"}),this._targets.push({target:i,callback:e})},n.prototype.removeTarget=function(i){this._observer.unobserve(i),Wp(this._targets,function(e){return e.target!==i})},n}(),Fb=function(){function n(){this._targets=[]}return n.prototype.addTarget=function(i,e){var t=this;if(this._targets.length===0){var r=null,a=function(){var o=Date.now();(r===null||o>r+n.delay)&&(r=o,De(t._targets,function(l){var u=l.target.getBoundingClientRect();(u.width!==l.size.width||u.height!==l.size.height)&&(l.size=u,l.callback())})),t._timer=requestAnimationFrame(a)};this._timer=requestAnimationFrame(a)}var s=i.getBoundingClientRect();this._targets.push({target:i,callback:e,size:s})},n.prototype.removeTarget=function(i){Wp(this._targets,function(e){return e.target!==i}
2),this._targets.length===0&&cancelAnimationFrame(this._timer)},n.delay=200,n}(),fl=null;function Ib(){return fl===null&&(typeof ResizeObserver<"u"?fl=new Vb:fl=new Fb),fl}var Eb=function(){function n(i,e){this._disposed=!1,this._sensor=Ib(),this._element=i,this._sensor.addTarget(i,e)}return n.prototype.isDisposed=function(){return this._disposed},n.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element))},Object.defineProperty(n.prototype,"sensor",{get:function(){return this._sensor},enumerable:!0,configurable:!0}),n.prototype.reset=function(){Qd("resizeSensor.reset() is no longer needed and can be removed")},n}(),dd=[],yy=function(){function n(i,e){var t=this;this._disposed=!1,this.autoResize=!0,this.nonExportableSprites=[],this._disposers=[],this.cssScale=1,this._printing=!1,this.htmlElement=i,e||(this._printing=!1,this.initSensor(),this._disposers.push(ki(window,"beforeprint",function(){t._printing=!0})),this._disposers.push(ki(window,"afterprint",function(){t._printing=!1}))),dd.push(this);var r=document.createElement("div"),a=r.style;a.width="100%",a.height="100%",a.position="relative",i.appendChild(r),this.SVGContainer=r}return n.prototype.initSensor=function(){var i=this;this.resizeSensor&&this.resizeSensor.dispose();var e=function(){i.autoResize&&!i._printing&&i.measure()};this.resizeSensor=new Eb(this.htmlElement,e),this._disposers.push(this.resizeSensor)},n.prototype.measure=function(){var i=V0(this.htmlElement),e=F0(this.htmlElement),t=this.container;t&&((this.width!=i||this.height!=e)&&(this.width=i,this.height=e,i>0&&(t.maxWidth=i),e>0&&(t.maxHeight=e),vb(this.SVGContainer)),t.maxWidth||(t.maxWidth=0),t.maxHeight||(t.maxHeight=0),this.cssScale=1,this.checkTransform(this.htmlElement))},Object.defineProperty(n.prototype,"container",{get:function(){return this._container},set:function(i){this._container=i,this.measure()},enumerable:!0,configurable:!0}),n.prototype.isDisposed=function(){return this._disposed},n.prototype.dispose=function(){this._disposed||Qe(dd,this),De(this._disposers,function(i){i.dispose()})},Object.defineProperty(n.prototype,"hideOverflow",{set:function(i){i?this.SVGContainer.style.overflow="hidden":this.SVGContainer.style.overflow=""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"modal",{get:function(){return T(this._modal)||(this._modal=new py,this._modal.container=this.SVGContainer,this._disposers.push(this._modal)),this._modal},enumerable:!0,configurable:!0}),n.prototype.openModal=function(i,e){this.closeModal();var t=this.modal;return t.content=i,t.readerTitle=e||"",t.title=e||"",t.open(),t},n.prototype.closeModal=function(){this._modal&&this.modal.close()},Object.defineProperty(n.prototype,"popups",{get:function(){if(!T(this._popups)){var i=new fy;i.container=this.SVGContainer,this._popups=new fi(i),this._disposers.push(new zt(this._popups)),this._disposers.push(this._popups.template)}return this._popups},enumerable:!0,configurable:!0}),n.prototype.openPopup=function(i,e){var t=this.popups.create();return t.content=i,T(e)&&(t.title=e),t.open(),t},n.prototype.closeAllPopups=function(){this.popups.each(function(i){i.close()})},Object.defineProperty(n.prototype,"readerAlertElement",{get:function(){if(!T(this._readerAlertElement)){var i=document.createElement("div");i.setAttribute("role","alert"),i.style.zIndex="-100000",i.style.opacity="0",i.style.position="absolute",i.style.top="0",this.SVGContainer.appendChild(i),this._readerAlertElement=i}return this._readerAlertElement},enumerable:!0,configurable:!0}),n.prototype.readerAlert=function(i){this.readerAlertElement.innerHTML=i},n.prototype.checkTransform=function(i){if(window.getComputedStyle){if(i&&i.style){var e=window.getComputedStyle(i,null);if(e){var t=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("-moz-transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-o-transform")||e.getPropertyValue("transform");if(t&&t!=="none"){var r=t.split("(")[1].split(")")[0].split(","),a=Number(r[0]),s=Number(r[1]),o=Math.sqrt(a*a+s*s);isNaN(o)||(this.cssScale*=o)}}}i.parentNode&&i.parentNode instanceof HTMLElement&&this.checkTransform(i.parentNode)}},n}(),vy=function(){function n(i,e){this.container=i,this.id=e;var t=document.createElementNS(Cl,"svg");t.setAttribute("version","1.1"),t.setAttributeNS(Wf,"xmlns",Cl),t.setAttributeNS(Wf,"xmlns:xlink",Kd),t.setAttribute("role","group"),this.container.appendChild(t),this.defs=document.createElementNS(Cl,"defs"),t.appendChild(this.defs),t.style.width="100%",t.style.height="100%",t.style.overflow="visible",this.svg=t}return n.prototype.add=function(i){return new Gl(i)},n.prototype.addGroup=function(i){return new _b(i)},n.prototype.append=function(i){i&&this.svg.appendChild(i.node)},n.prototype.appendDef=function(i){i&&this.defs.appendChild(i.node)}
2,n.prototype.foreignObject=function(){var i=new Gl("foreignObject");return i},n.prototype.supportsForeignObject=function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Extensibility","1.1")},n}(),Ph=null;function Bo(){if(Ph===null){var n=document.createElement("div");n.hidden=!0,n.style.width="1px",n.style.height="1px",n.style.position="absolute",n.style.zIndex="-1000000",document.body.appendChild(n);var i=new yy(n,!0);Ph=new vy(i.SVGContainer,"ghost")}return Ph}var Fs=function(n){W(i,n);function i(){var e=n.call(this)||this;e._elements=new Pt,e.properties={},e.className="Pattern",e.width=10,e.height=10,e.x=0,e.y=0,e.patternUnits="userSpaceOnUse";var t=new Ot;return e.backgroundFill=t.getFor("background"),e.backgroundOpacity=0,e.fillOpacity=1,e.fill=t.getFor("alternativeBackground"),e.stroke=t.getFor("alternativeBackground"),e.strokeOpacity=1,e.strokeWidth=1,e.shapeRendering="crispEdges",e.rotation=0,e.element=e.paper.addGroup("pattern"),e.id="pattern-"+V.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e._disposers.push(new zt(e._elements)),e.patternUnits=e.patternUnits,e.width=e.width,e.height=e.height,e.applyTheme(),e}return i.prototype.draw=function(){var e=this,t=this.element;if(t){t.removeChildNodes();var r=this.paper.add("rect");r.attr({width:this.width,height:this.height,"shape-rendering":"crispEdges",fill:this.backgroundFill.hex,"fill-opacity":this.backgroundOpacity,stroke:this.backgroundFill.hex,"stroke-opacity":0}),t.add(r),t.attr({x:this.x,y:this.y,width:this.width,height:this.height,stroke:this.stroke.hex,fill:this.fill.hex,"fill-opacity":this.fillOpacity,"stroke-opacity":this.strokeOpacity,"stroke-width":this.strokeWidth,"shape-rendering":this.shapeRendering,patternUnits:this.patternUnits,"stroke-dasharray":this.strokeDasharray}),ue(this._elements.iterator(),function(a){a.rotation=e.rotation,a.rotationX=e.properties.rotationX,a.rotationY=e.properties.rotationY,e.element.add(a)})}},i.prototype.animate=function(e,t,r){return new cn(this,e,t,r).start()},i.prototype.addElement=function(e){this._elements.push(e),this._disposers.push(e)},i.prototype.removeElement=function(e){this._elements.removeValue(e),this.removeDispose(e)},Object.defineProperty(i.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fillOpacity",{get:function(){return this.properties.fillOpacity},set:function(e){this.properties.fillOpacity=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this.properties.fill},set:function(e){this.properties.fill=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"backgroundFill",{get:function(){return this.properties.backgroundFill},set:function(e){this.properties.backgroundFill=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"backgroundOpacity",{get:function(){return this.properties.backgroundOpacity},set:function(e){this.properties.backgroundOpacity=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(e){this.properties.stroke=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeOpacity",{get:function(){return this.properties.strokeOpacity},set:function(e){this.properties.strokeOpacity=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(e){this.properties.strokeWidth=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shapeRendering",{get:function(){return this.properties.shapeRendering},set:function(e){this.properties.shapeRendering=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rotation",{get:function(){return this.properties.rotation},set:function(e){this.properties.rotation=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"patternUnits",{get:function(){return this.properties.patternUnits},set:function(e){this.properties.patternUnits=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"width",{get:function(){return this.properties.width}
2,set:function(e){this.properties.width=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this.properties.height},set:function(e){this.properties.height=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"x",{get:function(){return this.properties.x},set:function(e){this.properties.x=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y",{get:function(){return this.properties.y},set:function(e){this.properties.y=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paper",{get:function(){return this._paper?this._paper:Bo()},set:function(e){this._paper!=e&&(this._paper=e,this.draw(),e.appendDef(this.element))},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;n.prototype.copyFrom.call(this,e),$e(e.properties,function(r,a){t[r]=a})},Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Rs(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeDasharray",{get:function(){return this.properties.strokeDashArray},set:function(e){this.properties.strokeDashArray=e,this.draw()},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){if(e&&T(e.elements)&&Ui(e.elements))for(var t=0,r=e.elements.length;t<r;t++){var a=e.elements[t];if(T(a.type)){var s=this.createEntryInstance(a);s instanceof cr&&(s.config=a),this.addElement(T(a.typeProperty)?s[a.typeProperty]:s.element)}}n.prototype.processConfig.call(this,e)},i}(cr);V.registeredClasses.Pattern=Fs;var en=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._stops=new Pt,e._rotation=0,e.className="LinearGradient",e._stops.events.on("setIndex",e.validate,e),e._stops.events.on("inserted",e.validate,e),e.element=e.paper.addGroup("linearGradient"),e.id="gradient-"+V.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e.applyTheme(),e}return i.prototype.validate=function(){var e=this,t=(this._rotation+90)*pu,r=Math.round(50+Math.sin(t+Math.PI)*50)+"%",a=Math.round(50+Math.cos(t)*50)+"%",s=Math.round(50+Math.sin(t)*50)+"%",o=Math.round(50+Math.cos(t+Math.PI)*50)+"%",l=this.element;l.removeChildNodes(),l.attr({x1:r,x2:s,y1:a,y2:o}),ue(Za(this._stops.iterator()),function(u){var h=u[0],d=u[1],f=d.offset;C(f)||(f=h/(e._stops.length-1));var p=e.paper.add("stop");T(d.color)&&p.attr({"stop-color":d.color.toString()}),C(d.opacity)&&p.attr({"stop-opacity":d.opacity}),C(f)&&p.attr({offset:f}),l.add(p)})},i.prototype.clear=function(){this._stops.clear()},i.prototype.addColor=function(e,t,r){this._stops.push({color:e,opacity:t,offset:r})},Object.defineProperty(i.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paper",{get:function(){return this._paper?this._paper:Bo()},set:function(e){this._paper!=e&&(this._paper=e,this.validate(),e.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation=e,this.validate()},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.stops.copyFrom(e.stops),this._rotation=e.rotation},Object.defineProperty(i.prototype,"gradientUnits",{set:function(e){this.element.attr({gradientUnits:e})},enumerable:!0,configurable:!0}),i}(cr);V.registeredClasses.LinearGradient=en;var Da=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._stops=new Pt,e.element=e.paper.addGroup("radialGradient"),e.id="gradient-"+V.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e.applyTheme(),e}return i.prototype.draw=function(){var e=this,t=this.element;if(C(this.cx)){var r=this.cx;r instanceof mt&&(r=r.percent+"%"),t.attr({cx:r})}if(C(this.cy)){var r=this.cy;r instanceof mt&&(r=r.percent+"%"),t.attr({cy:r})}if(this.fx){var r=this.fx;r instanceof mt&&(r=r.percent+"%"),t.attr({fx:r})}if(this.fy){var r=this.fy;r instanceof mt&&(r=r.percent+"%"),t.attr({fy:r})}t.removeChildNodes(),ue(Za(this._stops.iterator()),function(a){var s=a[0],o=a[1],l=o.offset;C(l)||(l=s/(e._stops.length-1));var u=e.paper.add("stop");T(o.color)&&u.attr({"stop-color":o.color.toString()}),C(o.opacity)&&u.attr({"stop-opacity":o.opacity}),C(l)&&u.attr({offset:l}),t.add(u)})},i.prototype.addColor=function(e,t,r){this._stops.push({color:e,opacity:t,offset:r}),this.draw()},Object.defineProperty(i.prototype,"paper",{get:function(){return this._paper?this._paper:Bo()},set:function(e){this._paper!=e&&(this._paper=e,this.draw(),e.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cx",{get:function(){return this._cx},set:function(e){this._cx=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cy",{get:function(){return this._cy},set:function(e){this._cy=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fx",{get:function(){return this._fx},set:function(e){this._fx=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fy",{get:function(){return this._fy},set:function(e){this._fy=e,this.draw()},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.stops.copyFrom(e.stops),this.cx=e.cx,this.cy=e.cy,this.fx=e.fx,this.fy=e.fy}
2,Object.defineProperty(i.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),i.prototype.clear=function(){this._stops.clear()},i}(cr);V.registeredClasses.RadialGradient=Da;var Ki=function(){function n(){}return n.grab=[{property:"cursor",value:"move"},{property:"cursor",value:"grab"},{property:"cursor",value:"-webkit-grab"}],n.grabbing=[{property:"cursor",value:"move"},{property:"cursor",value:"grabbing"},{property:"cursor",value:"-webkit-grabbing"}],n.pointer=[{property:"cursor",value:"pointer"}],n.default=[{property:"cursor",value:"default"}],n.horizontalResize=[{property:"cursor",value:"ew-resize"}],n.verticalResize=[{property:"cursor",value:"ns-resize"}],n.notAllowed=[{property:"cursor",value:"not-allowed"}],n.text=[{property:"cursor",value:"text"}],n}();const Xf={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(n){var i="th";if(n<11||n>13)switch(n%10){case 1:i="st";break;case 2:i="nd";break;case 3:i="rd";break}return i},"Zoom Out":"",Play:"",Stop:"",Legend:"","Click, tap or press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:""};var Sa=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.adapter=new Lr(e),e._locale=Xf,e._defaultLocale=Xf,e.className="Language",T(ir.defaultLocale)&&(e.locale=ir.defaultLocale),e.a
2pplyTheme(),e}return i.prototype.getLocale=function(e){return e==null&&(e=this._locale),this.adapter.apply("locale",{locale:e}).locale},i.prototype.translate=function(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];t=this.getLocale(t);var s=e,o=this.getTranslations(t),l=o[e];if(l===null)s="";else if(T(l))l&&(s=l);else if(t!==this._defaultLocale)return this.translate.apply(this,Ss([e,this._defaultLocale],r));if(r.length)for(var u=r.length,h=0;h<u;++h)s=s.split("%"+(h+1)).join(r[h]);return this.adapter.apply("translate",{translation:s,locale:t}).translation},i.prototype.translateAny=function(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];return this.translate.apply(this,Ss([e,t],r))},i.prototype.setTranslationAny=function(e,t,r){var a=r||this.locale;a[e]=t},i.prototype.translateEmpty=function(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];var s=this.translate.apply(this,Ss([e,t],r));return s==e?"":s},i.prototype.translateFunc=function(e,t){t=this.getLocale(t);var r=this.getTranslations(t),a=r[e];return a??(t!==this._defaultLocale?this.translateFunc(e,this._defaultLocale):function(){return""})},i.prototype.translateAll=function(e,t){var r=this;return this.isDefault()?e:Wo(e,function(a){return r.translate(a,t)})},i.prototype.isDefault=function(){return this._defaultLocale===this._locale},Object.defineProperty(i.prototype,"locale",{get:function(){return this._locale},set:function(e){if(this._locale!=e&&(this._locale=e,this.events.isEnabled("localechanged"))){var t={type:"localechanged",locale:e,target:this};this.events.dispatchImmediately("localechanged",t)}},enumerable:!0,configurable:!0}),i.prototype.getTranslations=function(e){return this.adapter.apply("translations",{translations:e,locale:e}).translations},i}(Nn),gy=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.adapter=new Lr(e),e.className="TextFormatter",e.applyTheme(),e}return i.prototype.debug=function(){},i.prototype.format=function(e,t){T(t)||(t="svg");var r="";e=this.escape(e);var a=e.match(/\[([^\]]*?)\]/gm);if(!a)return this.wrap(e,"",t);for(var s=e.split(/\[[^\[\]]*\]/),o=0,l=s.length;o<l;o++){var u=s[o];if(u!==""){u=this.adapter.apply("chunk",u);var h="";o>0&&(h=a[o-1].replace("[","").replace("]","")),r+=this.wrap(u,h,t)}}return r=this.unescape(r),this.cleanUp(r)},i.prototype.escape=function(e){return e.replace(/\[\[/g,V.getPlaceholder("1")).replace(/([^\/\]]{1})\]\]/g,"$1"+V.getPlaceholder("2")).replace(/\]\]/g,V.getPlaceholder("2")).replace(/\{\{/g,V.getPlaceholder("3")).replace(/\}\}/g,V.getPlaceholder("4")).replace(/\'\'/g,V.getPlaceholder("5"))},i.prototype.unescape=function(e){return e.replace(new RegExp(V.getPlaceholder("1"),"g"),"[[").replace(new RegExp(V.getPlaceholder("2"),"g"),"]]").replace(new RegExp(V.getPlaceholder("3"),"g"),"{{").replace(new RegExp(V.getPlaceholder("4"),"g"),"}}").replace(new RegExp(V.getPlaceholder("5"),"g"),"''")},i.prototype.cleanUp=function(e){return e.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")},i.prototype.wrap=function(e,t,r){switch((t===""||t==="/")&&(t=""),r){case"html":return this.wrapHtml(e,this.translateStyleShortcuts(t));default:return this.wrapSvg(e,this.translateStyleShortcuts(t))}},i.prototype.wrapSvg=function(e,t){return t===""?"<tspan>"+e+"</tspan>":"<tspan style='"+t+"'>"+e+"</tspan>"},i.prototype.getSvgElement=function(e,t){var r=new Gl("tspan");return r.textContent=e,t&&r.node.setAttribute("style",t),r},i.prototype.wrapHtml=function(e,t){return t===""?"<span>"+e+"</span>":"<span style='"+this.styleSvgToHtml(t)+"'>"+e+"</span>"},i.prototype.getHtmlElement=function(e,t){var r=document.createElement("span");return r.innerHTML=e,t&&r.setAttribute("style",t),r},i.prototype.styleSvgToHtml=function(e){return e=e.replace(/fill:/,"color:"),e},i.prototype.translateStyleShortcuts=function(e){if(e==""||e=="[ ]")return"";var t=V.getCache("translateStyleShortcuts_"+e);if(t)return t;var r=e.match(/('[^']*')|("[^"]*")/gi);if(r)for(var a=0;a<r.length;a++)e=e.replace(r[a],r[a].replace(/['"]*/g,"").replace(/[ ]+/g,"+"));var s=e.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w]+)|(\/)/gi);if(!s)return e;for(var a=0;a<s.length;a++)s[a].match(/^bold$/i)?s[a]="font-weight:"+s[a]:s[a]=="/"?s[a]="":s[a].match(/:/)?s[a]=s[a].replace(/\+/g," "):s[a]="fill:"+s[a];var o=s.join(";");return V.setCache("translateStyleShortcuts_"+e,o),o},i.prototype.chunk=function(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var a=[];e=this.escape(e);for(var s=t?e.split("'"):[e],o=0;o<s.length;o++){var l=s[o];if(l!=="")if(o%2===0){l=l.replace(/\]\[/g,"]"+Hr+"["),l=l.replace(/\[\]/g,"[ ]");for(var u=l.split(/[\[\]]+/),h=0;h<u.length;h++){var d=this.cleanUp(this.unescape(u[h]));d!==Hr&&d!==""&&(h%2===0?a.push({type:"value",text:this.adapter.apply("chunk",d)}):a.push({type:r?"value":"format",text:"["+d+"]"}))}}else for(var u=l.split(/[\[\]]+/),h=0;h<u.length;h++){var d=this.cleanUp(this.unescape(u[h]));d!==""&&(h%2===0?a.push({type:"text",text:d}):this.isImage(d)?a.push({type:"image",text:"["+d+"]"}):a.push({type:"format",text:"["+d+"]"}))}}return a},i.prototype.isImage=function(e){return!!e.match(/img[ ]?:/)},i}(cr),Ch;function Qn(){return Ch==null&&(Ch=new gy),Ch}V.registeredClasses.TextFormatter=gy;var Jd=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._negativeBase=0,e._numberFormat="#,###.#####",e._outputFormat="svg",e._smallNumberThreshold=1,e._forceLTR=!1,e.className="NumberFormatter",e.applyTheme(),e}return i.prototype.dispose=function(){n.prototype.dispose.call(this),this.language&&this.language.dispose()},Object.defineProperty(i.prototype,"language",{get:function(){return this._language||(this.sprite?this._language=this.sprite.language:this._language=new Sa),this._language},set:function(e){this._language=e},enumerable:!0,configurable:!0}),i.prototype.format=function(e,t,r){(typeof t>"u"||bt(t)&&t.toLowerCase()==="number")&&(t=this._numberFormat);var a,s=Number(e);if(Zt(t))try{return this.intlLocales?new Intl.NumberFormat(this.intlLocales,t).format(s):new Intl.NumberFormat(void 0,t).format(s)}catch{return"Invalid"}else{t=Bl(t);var o=this.parseFormat(t,this.language),l=void 0;s>this._negativeBase?l=o.positive:s<this._negativeBase?l=o.negative:l=o.zero,T(r)&&!l.mod&&(l=t0(l),l.decimals.active=s==0?0:r),a=l.template.split(Hr).join(this.applyFormat(s,l))}return this.forceLTR&&(a="‎"+a),a},i.prototype.parseFormat=function(e,t){var r=this,a=this.getCache(e);if(T(a))return a;
2var s={positive:{thousands:{active:-1,passive:-1,interval:-1,separator:t.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:t.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1},negative:{thousands:{active:-1,passive:-1,interval:-1,separator:t.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:t.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1},zero:{thousands:{active:-1,passive:-1,interval:-1,separator:t.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:t.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1}};e=e.replace("||",Ps);var o=e.split("|");return s.positive.source=o[0],typeof o[2]>"u"?s.zero=s.positive:s.zero.source=o[2],typeof o[1]>"u"?s.negative=s.positive:s.negative.source=o[1],$e(s,function(l,u){if(!u.parsed){if(typeof r.getCache(u.source)<"u"){s[l]=r.getCache(u.source);return}var h=u.source;h.toLowerCase()==="number"&&(h=bt(r._numberFormat)?r._numberFormat:"#,###.#####");for(var d=Qn().chunk(h,!0),f=0;f<d.length;f++){var p=d[f];if(p.text=p.text.replace(Ps,"|"),p.type==="value"){var v=p.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/);if(v)if(v===null||v[0]==="")u.template+=p.text;else{var m=v[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/);m&&(u.mod=m[0].toLowerCase(),u.modSpacing=!!v[0].match(/[ ]{1}[abespABESP%‰!]{1}$/));var x=v[0].split(".");if(x[0]!==""){u.thousands.active=(x[0].match(/0/g)||[]).length,u.thousands.passive=(x[0].match(/\#/g)||[]).length+u.thousands.active;var w=x[0].split(",");w.length===1||(u.thousands.interval=ai(w.pop()).length,u.thousands.interval===0&&(u.thousands.interval=-1))}typeof x[1]>"u"||(u.decimals.active=(x[1].match(/0/g)||[]).length,u.decimals.passive=(x[1].match(/\#/g)||[]).length+u.decimals.active),u.template+=p.text.split(v[0]).join(Hr)}}else u.template+=p.text}r.setCache(u.source,u),u.parsed=!0}}),this.setCache(e,s),s},i.prototype.applyFormat=function(e,t){var r=e<0;e=Math.abs(e);var a="",s="",o=t.mod?t.mod.split(""):[];if(o.indexOf("b")!==-1){var l=this.applyPrefix(e,this.bytePrefixes,o.indexOf("!")!==-1);e=l[0],a=l[1],s=l[2],t.modSpacing&&(s=" "+s)}else if(o.indexOf("a")!==-1){var u=this.applyPrefix(e,e<this.smallNumberThreshold?this.smallNumberPrefixes:this.bigNumberPrefixes,o.indexOf("!")!==-1);e=u[0],a=u[1],s=u[2],t.modSpacing&&(s=" "+s)}else if(o.indexOf("p")!==-1){var h=Math.min(e.toString().length+2,21);e=parseFloat(e.toPrecision(h)),a=this.language.translate("_percentPrefix")||"",s=this.language.translate("_percentSuffix")||"",a==""&&s==""&&(s="%")}else if(o.indexOf("%")!==-1){var h=xt(e.toString().length+2,21);e*=100,e=parseFloat(e.toPrecision(h)),s="%"}else if(o.indexOf("‰")!==-1){var h=xt(e.toString().length+3,21);e*=1e3,e=parseFloat(e.toPrecision(h)),s="‰"}if(o.indexOf("e")!==-1){var d=void 0;t.decimals.passive>=0?d=e.toExponential(t.decimals.passive).split("e"):d=e.toExponential().split("e"),e=Number(d[0]),s="e"+d[1],t.modSpacing&&(s=" "+s)}else if(t.decimals.passive===0)e=Math.round(e);else if(t.decimals.passive>0){var f=Math.pow(10,t.decimals.passive);e=Math.round(e*f)/f}var p="",v=M0(e).split("."),m=v[0];if(m.length<t.thousands.active&&(m=Array(t.thousands.active-m.length+1).join("0")+m),t.thousands.interval>0){for(var x=[],w=m.split("").reverse().join(""),P=0,O=m.length;P<=O;P+=t.thousands.interval){var j=w.substr(P,t.thousands.interval).split("").reverse().join("");j!==""&&x.unshift(j)}m=x.join(t.thousands.separator)}p+=m,v.length===1&&v.push("");var M=v[1];return M.length<t.decimals.active&&(M+=Array(t.decimals.active-M.length+1).join("0")),M!==""&&(p+=t.decimals.separator+M),p===""&&(p="0"),e!==0&&r&&o.indexOf("s")===-1&&(p="-"+p),a&&(p=a+p),s&&(p+=s),p},i.prototype.applyPrefix=function(e,t,r){r===void 0&&(r=!1);for(var a=e,s="",o="",l=!1,u=1,h=0,d=t.length;h<d;h++)t[h].number<=e&&(t[h].number===0?a=0:(a=e/t[h].number,u=t[h].number),s=t[h].prefix,o=t[h].suffix,l=!0);return!l&&r&&t.length&&e!=0&&(a=e/t[0].number,s=t[0].prefix,o=t[0].suffix,l=!0),l&&(a=parseFloat(a.toPrecision(xt(u.toString().length+Math.floor(a).toString().replace(/[^0-9]*/g,"").length,21)))),[a,s,o]},i.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invali
2date()},Object.defineProperty(i.prototype,"numberFormat",{get:function(){return this._numberFormat},set:function(e){this._numberFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intlLocales",{get:function(){return this._intlLocales},set:function(e){this._intlLocales=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"negativeBase",{get:function(){return this._negativeBase},set:function(e){this._negativeBase=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bigNumberPrefixes",{get:function(){return T(this._bigNumberPrefixes)||(this._bigNumberPrefixes=[{number:1e3,suffix:this.language.translate("_big_number_suffix_3")},{number:1e6,suffix:this.language.translate("_big_number_suffix_6")},{number:1e9,suffix:this.language.translate("_big_number_suffix_9")},{number:1e12,suffix:this.language.translate("_big_number_suffix_12")},{number:1e15,suffix:this.language.translate("_big_number_suffix_15")},{number:1e18,suffix:this.language.translate("_big_number_suffix_18")},{number:1e21,suffix:this.language.translate("_big_number_suffix_21")},{number:1e24,suffix:this.language.translate("_big_number_suffix_24")}]),this._bigNumberPrefixes},set:function(e){this._bigNumberPrefixes=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"smallNumberPrefixes",{get:function(){return T(this._smallNumberPrefixes)||(this._smallNumberPrefixes=[{number:1e-24,suffix:this.language.translate("_small_number_suffix_24")},{number:1e-21,suffix:this.language.translate("_small_number_suffix_21")},{number:1e-18,suffix:this.language.translate("_small_number_suffix_18")},{number:1e-15,suffix:this.language.translate("_small_number_suffix_15")},{number:1e-12,suffix:this.language.translate("_small_number_suffix_12")},{number:1e-9,suffix:this.language.translate("_small_number_suffix_9")},{number:1e-6,suffix:this.language.translate("_small_number_suffix_6")},{number:.001,suffix:this.language.translate("_small_number_suffix_3")}]),this._smallNumberPrefixes},set:function(e){this._smallNumberPrefixes=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"smallNumberThreshold",{get:function(){return this._smallNumberThreshold},set:function(e){this._smallNumberThreshold=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bytePrefixes",{get:function(){return T(this._bytePrefixes)||(this._bytePrefixes=[{number:1,suffix:this.language.translate("_byte_suffix_B")},{number:1024,suffix:this.language.translate("_byte_suffix_KB")},{number:1048576,suffix:this.language.translate("_byte_suffix_MB")},{number:1073741824,suffix:this.language.translate("_byte_suffix_GB")},{number:1099511627776,suffix:this.language.translate("_byte_suffix_TB")},{number:0x4000000000000,suffix:this.language.translate("_byte_suffix_PB")}]),this._bytePrefixes},set:function(e){this._bytePrefixes=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(e){this._outputFormat=e.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"forceLTR",{get:function(){return this._forceLTR},set:function(e){this._forceLTR=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),i.prototype.escape=function(e){return e.replace("||",Ps)},i.prototype.unescape=function(e){return e.replace(Ps,"|")},i}(cr);V.registeredClasses.NumberFormatter=Jd;var zo=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._dateFormat="yyyy-MM-dd",e._inputDateFormat="yyyy-MM-dd",e._utc=!1,e.timezoneMinutes=0,e._firstDayOfWeek=1,e.months=["January","February","March","April","May","June","July","August","September","October","November","December"],e.monthsShort=["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e.weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],e.weekdaysShort=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],e._outputFormat="svg",e.capitalize=!0,e.className="DateFormatter",e.applyTheme(),e}return Object.defineProperty(i.prototype,"language",{get:function(){return this._language},set:function(e){this._language=e,this.dateFormat=this._language.translate("_date")},enumerable:!0,configurable:!0}),i.prototype.format=function(e,t,r){this.language||(this.sprite?this.language=this.sprite.language:this.language=new Sa),(typeof t>"u"||t==="")&&(t=this._dateFormat);var a,s;if(bt(e)?s=this.parse(e):s=ty(e),Zt(t))try{return this.intlLocales?new Intl.DateTimeFormat(this.intlLocales,t).format(s):new Intl.DateTimeFormat(void 0,t).format(s)}catch{return"Invalid"}else{t=Bl(t);var o=this.parseFormat(t);if(T(this.timezoneOffset)?s.setMinutes(s.getMinutes()+s.getTimezoneOffset()-this.timezoneOffset):T(this.timezone)&&r!==!1&&(s=vu(s,this.timezone)),!C(s.getTime()))return this.language.translate("Invalid date");a=this.applyFormat(s,o,this.language),this.capitalize&&(a=a.replace(/^.{1}/,a.substr(0,1).toUpperCase()))}return a},i.prototype.parseFormat=function(e){var t=this.getCache(e);if(T(t))return t;for(var r={template:"",parts:[]},a=Qn().chunk(e,!0),s=0;s<a.length;s++){var o=a[s];if(o.type==="value"){o.text.match(/^date$/i)&&bt(this._dateFormat)&&(o.text=this._dateFormat);var l=o.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);if(l)for(var u=0;u<l.length;u++)r.parts.push(l[u]),o.text=o.text.replace(l[u],Hr)}r.template+=o.text}return this.setCache(e,r),r},i.prototype.applyFormat=function(e,t,r){var a=t.template,s,o,l,u,h,d,f,p,v=e.getTimezoneOffset(),m=e.getTime();this.utc?(s=e.getUTCFullYear(),o=e.getUTCMonth(),l=e.getUTCDay(),u=e.getUTCDate(),h=e.getUTCHours(),d=e.getUTCMinutes(),f=e.getUTCSeconds(),p=e.getUTCMilliseconds()):(s=e.getFullYear(),o=e.getMonth(),l=e.getDay(),u=e.getDate(),h=e.getHours(),d=e.getMinutes(),f=e.getSeconds(),p=e.getMilliseconds());for(var x=0,w=t.parts.length;x<w;x++){var P="";switch(t.parts[x]){case"G":P=r.translate(s<0?"_era_bc":"_era_ad");break;case"yyyy":P=Math.abs(s).toString(),s<0&&(P+=r.translate("_era_bc"));break;case"yyy":case"yy":case"y":P=Math.abs(s).toString().substr(-t.parts[x].length),s<0&&(P+=r.translate("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":var O=vo(e),j=s;O==1&&l>4&&j--,t.parts[x]=="YYYY"?P=Math.abs(j).toString():P=Math.abs(j).toString().substr(-t.parts[x].length),j<0&&(P+=r.translate("_era_bc"));break;case"u":break;case"q":P=""+Math.ceil((e.getMonth()+1)/3);break;case"MMMMM":P=r.translate(this.months[o]).substr(0,1);break;case"MMMM":P=r.translate(this.months[o]);break;case"MMM":P=r.translate(this.monthsShort[o]);break;case"MM":P=nr(o+1,2,"0");break;case"M":P=(o+1).toString();break;case"ww":P=nr(vo(e,this.utc),2,"0");break;case"w":P=vo(e,this.utc).toString();break;case"W":P=A0(e,this.utc).toString();break;case"dd":P=nr(u,2,"0");break;case"d":P=u.toString();break;case"DD":case"DDD":P=nr(Lf(e,this.utc).toString(),t.parts[x].length,"0");break;case"D":P=Lf(e,this.utc).toString();break;case"F":break;case"g":break;case"t":P=r.translateFunc("_dateOrd").call(this,u);break;case"E":P=(l||7).toString();break;case"EE":P=nr((l||7).toString(),2,"0");break;case"EEE":case"eee":P=r.translate(this.weekdaysShort[l]);break;case"EEEE":case"eeee":P=r.translate(this.weekdays[l]);break;case"EEEEE":case"eeeee":P=r.translate(this.weekdays[l]).substr(0,1);break;case"e":case"ee":P=(l-this.firstDayOfWeek+1).toString(),t.parts[x]=="ee"&&(P=nr(P,2,"0"));break;case"a":h>=12?P=r.translate("PM"):P=r.translate("AM");break;case"aa":h>=12?P=r.translate("P.M."):P=r.translate("A.M.");break;case"aaa":h>=12?P=r.translate("P"):P=r.translate("A");break;case"h":P=hl(h).toString();break;case"hh":P=nr(hl(h),2,"0");break;case"H":P=h.toString();break;case"HH":P=nr(h,2,"0");break;
2case"K":P=hl(h,0).toString();break;case"KK":P=nr(hl(h,0),2,"0");break;case"k":P=(h+1).toString();break;case"kk":P=nr(h+1,2,"0");break;case"m":P=d.toString();break;case"mm":P=nr(d,2,"0");break;case"s":P=f.toString();break;case"ss":P=nr(f,2,"0");break;case"S":case"SS":case"SSS":P=Math.round(p/1e3*Math.pow(10,t.parts[x].length)).toString();break;case"x":P=m.toString();break;case"n":case"nn":case"nnn":P=nr(p,t.parts[x].length,"0");break;case"z":P=dl(e,!1,!1,this.utc);break;case"zz":P=dl(e,!0,!1,this.utc);break;case"zzz":P=dl(e,!1,!0,this.utc);break;case"zzzz":P=dl(e,!0,!0,this.utc);break;case"Z":case"ZZ":var M=Math.abs(v)/60,F=Math.floor(M),g=M*60-F*60;this.utc&&(F=0,g=0),t.parts[x]=="Z"?(P="GMT",P+=v>0?"-":"+",P+=nr(F,2)+":"+nr(g,2)):(P=v>0?"-":"+",P+=nr(F,2)+nr(g,2));break;case"i":P=e.toISOString();break;case"I":P=e.toUTCString();break}a=a.replace(Hr,P)}return a},i.prototype.parse=function(e,t){if(T(t)||(t=this.inputDateFormat),e instanceof Date)return e;if(typeof e=="number")return new Date(e);typeof e!="string"&&(e=e.toString()),this.language||(this.sprite?this.language=this.sprite.language:this.language=new Sa);var r,a="";t=Bl(t),t=t.substr(0,e.length);for(var s=this.parseFormat(t),o={year:-1,year3:-1,year2:-1,year1:-1,month:-1,monthShort:-1,monthLong:-1,weekdayShort:-1,weekdayLong:-1,day:-1,yearDay:-1,week:-1,hourBase0:-1,hour12Base0:-1,hourBase1:-1,hour12Base1:-1,minute:-1,second:-1,millisecond:-1,millisecondDigits:-1,am:-1,zone:-1,timestamp:-1,iso:-1},l={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:this.utc},u=0,h=0,d=0;d<s.parts.length;d++){switch(h=d+u+1,s.parts[d]){case"yyyy":case"YYYY":a+="([0-9]{4})",o.year=h;break;case"yyy":case"YYY":a+="([0-9]{3})",o.year3=h;break;case"yy":case"YY":a+="([0-9]{2})",o.year2=h;break;case"y":case"Y":a+="([0-9]{1})",o.year1=h;break;case"MMMM":a+="("+this.getStringList(this.months).join("|")+")",o.monthLong=h;break;case"MMM":a+="("+this.getStringList(this.monthsShort).join("|")+")",o.monthShort=h;break;case"MM":case"M":a+="([0-9]{2}|[0-9]{1})",o.month=h;break;case"ww":case"w":a+="([0-9]{2}|[0-9]{1})",o.week=h;break;case"dd":case"d":a+="([0-9]{2}|[0-9]{1})",o.day=h;break;case"DDD":case"DD":case"D":a+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.yearDay=h;break;case"dddd":a+="("+this.getStringList(this.weekdays).join("|")+")",o.weekdayLong=h;break;case"ddd":a+="("+this.getStringList(this.weekdaysShort).join("|")+")",o.weekdayShort=h;break;case"aaa":case"aa":case"a":a+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",o.am=h;break;case"hh":case"h":a+="([0-9]{2}|[0-9]{1})",o.hour12Base1=h;break;case"HH":case"H":a+="([0-9]{2}|[0-9]{1})",o.hourBase0=h;break;case"KK":case"K":a+="([0-9]{2}|[0-9]{1})",o.hour12Base0=h;break;case"kk":case"k":a+="([0-9]{2}|[0-9]{1})",o.hourBase1=h;break;case"mm":case"m":a+="([0-9]{2}|[0-9]{1})",o.minute=h;break;case"ss":case"s":a+="([0-9]{2}|[0-9]{1})",o.second=h;break;case"SSS":case"SS":case"S":a+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.millisecond=h,o.millisecondDigits=s.parts[d].length;break;case"nnn":case"nn":case"n":a+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.millisecond=h;break;case"x":a+="([0-9]{1,})",o.timestamp=h;break;case"Z":a+="GMT([-+]+[0-9]{2}:[0-9]{2})",o.zone=h;break;case"ZZ":a+="([\\-+]+[0-9]{2}[0-9]{2})",o.zone=h;break;case"i":a+="([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2}).?([0-9]{0,3})([zZ]|[+-][0-9]{2}:?[0-9]{2}|$)",o.iso=h,u+=7;break;case"G":case"YYYY":case"YYY":case"YY":case"Y":case"MMMMM":case"W":case"EEEEE":case"EEEE":case"EEE":case"EE":case"E":case"eeeee":case"eeee":case"eee":case"ee":case"e":case"zzzz"
2:case"zzz":case"zz":case"z":case"t":u--;break}a+="[^0-9]*"}var f=new RegExp(a),p=e.match(f);if(p){if(o.year>-1&&(l.year=parseInt(p[o.year])),o.year3>-1){var v=parseInt(p[o.year3]);v+=1e3,l.year=v}if(o.year2>-1){var v=parseInt(p[o.year2]);v>50?v+=1e3:v+=2e3,l.year=v}if(o.year1>-1){var v=parseInt(p[o.year1]);v=Math.floor(new Date().getFullYear()/10)*10+v,l.year=v}if(o.monthLong>-1&&(l.month=this.resolveMonth(p[o.monthLong])),o.monthShort>-1&&(l.month=this.resolveShortMonth(p[o.monthShort])),o.month>-1&&(l.month=parseInt(p[o.month])-1),o.week>-1&&o.day===-1&&(l.month=0,l.day=j0(parseInt(p[o.week]),l.year,1,this.utc)),o.day>-1&&(l.day=parseInt(p[o.day])),o.yearDay>-1&&(l.month=0,l.day=parseInt(p[o.yearDay])),o.hourBase0>-1&&(l.hour=parseInt(p[o.hourBase0])),o.hourBase1>-1&&(l.hour=parseInt(p[o.hourBase1])-1),o.hour12Base0>-1){var v=parseInt(p[o.hour12Base0]);v==11&&(v=0),o.am>-1&&!this.isAm(p[o.am])&&(v+=12),l.hour=v}if(o.hour12Base1>-1){var v=parseInt(p[o.hour12Base1]);v==12&&(v=0),o.am>-1&&!this.isAm(p[o.am])&&(v+=12),l.hour=v}if(o.minute>-1&&(l.minute=parseInt(p[o.minute])),o.second>-1&&(l.second=parseInt(p[o.second])),o.millisecond>-1){var v=parseInt(p[o.millisecond]);o.millisecondDigits==2?v*=10:o.millisecondDigits==1&&(v*=100),l.millisecond=v}if(o.timestamp>-1){l.timestamp=parseInt(p[o.timestamp]);var m=new Date(l.timestamp);l.year=m.getUTCFullYear(),l.month=m.getUTCMonth(),l.day=m.getUTCDate(),l.hour=m.getUTCHours(),l.minute=m.getUTCMinutes(),l.second=m.getUTCSeconds(),l.millisecond=m.getUTCMilliseconds()}o.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[o.zone])),o.iso>-1&&(l.year=Bt(p[o.iso+0]),l.month=Bt(p[o.iso+1])-1,l.day=Bt(p[o.iso+2]),l.hour=Bt(p[o.iso+3]),l.minute=Bt(p[o.iso+4]),l.second=Bt(p[o.iso+5]),l.millisecond=Bt(p[o.iso+6]),p[o.iso+7]=="Z"||p[o.iso+7]=="z"?l.utc=!0:p[o.iso+7]!=""&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[o.iso+7]))),l.utc?r=new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):r=new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else r=new Date(e);return r},i.prototype.resolveTimezoneOffset=function(e,t){var r=t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/);if(r){var a=ai(t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)),s=a[1],o=a[2],l=a[3],u=parseInt(o)*60+parseInt(l);s=="+"&&(u*=-1);var h=(e||new Date).getTimezoneOffset(),d=u-h;return d}return 0},i.prototype.resolveMonth=function(e){var t=this.months.indexOf(e);return t>-1||this.language&&!this.language.isDefault()&&(t=this.language.translateAll(this.months).indexOf(e),t>-1)?t:0},i.prototype.resolveShortMonth=function(e){var t=this.monthsShort.indexOf(e);return t>-1||(t=this.months.indexOf(e),t>-1)||this.language&&!this.language.isDefault()&&(t=this.language.translateAll(this.monthsShort).indexOf(e),t>-1)?t:0},i.prototype.isAm=function(e){var t=this.getStringList(["AM","A.M.","A"]);return t.indexOf(e.toUpperCase())>-1},i.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},i.prototype.getStringList=function(e){for(var t=[],r=0;r<e.length;r++)this.language?t.push(ed(this.language.translate(e[r]))):t.push(ed(e[r]));return t},Object.defineProperty(i.prototype,"dateFormat",{get:function(){return this._dateFormat},set:function(e){this._dateFormat=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inputDateFormat",{get:function(){return this._inputDateFormat},set:function(e){this._inputDateFormat=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intlLocales",{get:function(){return this._intlLocales},set:function(e){this._intlLocales=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"utc",{get:function(){return this._utc},set:function(e){this._utc=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"timezoneOffset",{get:function(){return this._timezoneOffset},set:function(e){this._timezoneOffset!=e&&(this._timezoneOffset=e,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"timezone",{get:function(){return this._timezone},set:function(e){this._timezone!=e&&(this._timezone=e,this.timezoneMinutes=Mb(e),this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},set:function(e){this._firstDayOfWeek=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(e){this._outputFormat=e.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),i}(cr);V.registeredClasses.DateFormatter=zo;var ec=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._negativeBase=0,e._baseUnit="second",e._outputFormat="svg",e._unitValues={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6},e._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"},e.className="DurationFormatter",e.applyTheme(),e}return i.prototype.format=function(e,t,r){this.language||(this.sprite?this.language=this.sprite.language:this.language=new Sa);var a=r||this._baseUnit;(typeof t>"u"||t==="")&&(T(this.durationFormat)?t=this.durationFormat:t=this.getFormat(Bt(e),null,a)),t=Bl(t);var s=this.parseFormat(t,a),o=Number(e),l;o>this._negativeBase?l=s.positive:o<this._negativeBase?l=s.negative:l=s.zero;var u=this.applyFormat(o,l);return l.color!==""&&(this._outputFormat==="svg"?u="<tspan fill='"+l.color+"'>"+u+"</tspan>":this._outputFormat==="html"&&(u="<span style='color: "+l.color+";'>"+u+"</span>")),u},i.prototype.parseFormat=function(e,t){var r=this,a=this.getCache(e);if(T(a))return a;var s=t||this._baseUnit,o={positive:{color:"",template:"",parts:[],source:"",baseUnit:s,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:s,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:s,parsed:!1,absolute:!1}};e=e.replace("||",Ps);var l=e.split("|");return o.positive.source=l[0],typeof l[2]>"u"?o.zero=o.positive:o.zero.source=l[2],typeof l[1]>"u"?o.negative=o.positive:o.negative.source=l[1],$e(o,function(u,h){if(!h.parsed){if(typeof r.getCache(h.source)<"u"){o[u]=r.getCache(h.source);return}var d=h.source,f=[];f=h.source.match(/^\[([^\]]*)\]/),f&&f.length&&f[0]!==""&&(d=h.source.substr(f[0].length),h.color=f[1]);for(var p=Qn().chunk(d,!0),v=0;v<p.length;v++){var m=p[v];if(m.text=m.text.replace(Ps,"|"),m.type==="value"){m.text.match(/[yYMdDwhHKkmsSn]+a/)&&(h.absolute=!0,m.text=m.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));var x=m.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(x)for(var w=0;w<x.length;w++)T(x[w])||(x[w]=r._unitAliases[x[w]]),h.parts.push(x[w]),m.text=m.text.replace(x[w],Hr)}h.template+=m.text}
2r.setCache(h.source,h),h.parsed=!0}}),this.setCache(e,o),o},i.prototype.applyFormat=function(e,t){var r=!t.absolute&&e<this._negativeBase;e=Math.abs(e);for(var a=this.toTimeStamp(e,t.baseUnit),s=t.template,o=0,l=t.parts.length;o<l;o++){var u=t.parts[o],h=this.toTimeUnit(u.substr(0,1)),d=u.length,f=Math.floor(a/this._unitValues[h]);s=s.replace(Hr,nr(f,d,"0")),a-=f*this._unitValues[h]}return r&&(s="-"+s),s},i.prototype.toTimeStamp=function(e,t){return e*this._unitValues[t]},i.prototype.toTimeUnit=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year"}},i.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},Object.defineProperty(i.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(e){this._baseUnit=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(e){this._outputFormat=e.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),i.prototype.getFormat=function(e,t,r){if(T(this.durationFormat))return this.durationFormat;if(r||(r=this.baseUnit),T(t)&&e!=t){e=Math.abs(e),t=Math.abs(t);var a=this.getValueUnit(st(e,t),r);return this.durationFormats[r][a]}else{var s=this.getValueUnit(e,r);return this.durationFormats[r][s]}},i.prototype.getValueUnit=function(e,t){t||(t=this.baseUnit);var r,a=this.getMilliseconds(e,t);return Gp(this._unitValues,function(s,o){if(s==t||r){var l=a/o;if(l<=1)return r||(r=s),!1;r=s}return!0}),r},i.prototype.getMilliseconds=function(e,t){return t||(t=this.baseUnit),e*this._unitValues[t]},Object.defineProperty(i.prototype,"durationFormat",{get:function(){return this._durationFormat},set:function(e){this._durationFormat!=e&&(this._durationFormat=e,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFormats",{get:function(){return this._durationFormats||(this._durationFormats={millisecond:{millisecond:this.language.translate("_duration_millisecond"),second:this.language.translate("_duration_millisecond_second"),minute:this.language.translate("_duration_millisecond_minute"),hour:this.language.translate("_duration_millisecond_hour"),day:this.language.translate("_duration_millisecond_day"),week:this.language.translate("_duration_millisecond_week"),month:this.language.translate("_duration_millisecond_month"),year:this.language.translate("_duration_millisecond_year")},second:{second:this.language.translate("_duration_second"),minute:this.language.translate("_duration_second_minute"),hour:this.language.translate("_duration_second_hour"),day:this.language.translate("_duration_second_day"),week:this.language.translate("_duration_second_week"),month:this.language.translate("_duration_second_month"),year:this.language.translate("_duration_second_year")},minute:{minute:this.language.translate("_duration_minute"),hour:this.language.translate("_duration_minute_hour"),day:this.language.translate("_duration_minute_day"),week:this.language.translate("_duration_minute_week"),month:this.language.translate("_duration_minute_month"),year:this.language.translate("_duration_minute_year")},hour:{hour:this.language.translate("_duration_hour"),day:this.language.translate("_duration_hour_day"),week:this.language.translate("_duration_hour_week"),month:this.language.translate("_duration_hour_month"),year:this.language.translate("_duration_hour_year")},day:{day:this.language.translate("_duration_day"),week:this.language.translate("_duration_day_week"),month:this.language.translate("_duration_day_month"),year:this.language.translate("_duration_day_year")},week:{week:this.language.translate("_duration_week"),month:this.language.translate("_duration_week_month"),year:this.language.translate("_duration_week_year")},month:{month:this.language.translate("_duration_month"),year:this.language.translate("_duration_month_year")},year:{year:this.language.translate("_duration_year")}}),this._durationFormats},set:function(e){this._durationFormats=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),i}(cr);V.registeredClasses.DurationFormatter=ec;var Gf=new Gt;
2function Lb(n,i){var e=i||"amexport",t=new Ot,r=Gf.insertKeyIfEmpty(e,function(){var a=new di([new Nt(n,"."+e+"-menu *",{"box-sizing":"border-box"}),new Nt(n,"."+e+"-menu-level-0",{position:"absolute",top:"5px",right:"5px"}),new Nt(n,"."+e+"-menu-level-0."+e+"-left",{right:"auto",left:"5px"}),new Nt(n,"."+e+"-menu-level-0."+e+"-right",{right:"5px",left:"auto"}),new Nt(n,"."+e+"-menu-level-0."+e+"-top",{top:"5px",bottom:"auto"}),new Nt(n,"."+e+"-menu-level-0."+e+"-bottom",{top:"auto",bottom:"5px"}),new Nt(n,"."+e+"-item."+e+"-item-level-0",{opacity:"0.3",width:"30px","min-height":"30px",transition:"all 100ms ease-in-out"}),new Nt(n,"div:hover > div > ."+e+"-menu ."+e+"-item."+e+"-item-level-0, ."+e+"-item."+e+"-item-level-0.active",{opacity:"0.9"}),new Nt(n,"."+e+"-item."+e+"-item-level-0 > a",{padding:"0","text-align":"center",overflow:"hidden"}),new Nt(n,"."+e+"-item."+e+"-item-level-0:before",{display:"block"}),new Nt(n,"."+e+"-item",{position:"relative",display:"block",opacity:"0","z-index":"1","border-radius":"3px","background-color":t.getFor("secondaryButton").hex,padding:"0",margin:"1px 1px 0 0",color:t.getFor("secondaryButton").alternative.hex,transition:"all 100ms ease-in-out, opacity 0.5s ease 0.5s"}),new Nt(n,"."+e+"-left ."+e+"-item",{margin:"1px 0 0 1px"}),new Nt(n,"."+e+"-item:hover, ."+e+"-item.active",{background:t.getFor("secondaryButtonHover").hex,color:t.getFor("secondaryButtonText").hex}),new Nt(n,"."+e+"-item > ."+e+"-menu",{position:"absolute",top:"-1px",right:"0","margin-right":"100%"}),new Nt(n,"."+e+"-left ."+e+"-item > ."+e+"-menu",{left:"0",right:"auto","margin-left":"100%","margin-right":"auto"}),new Nt(n,"."+e+"-right ."+e+"-item > ."+e+"-menu",{left:"auto",right:"0","margin-left":"auto","margin-right":"100%"}),new Nt(n,"."+e+"-top ."+e+"-item > ."+e+"-menu",{top:"-1px",bottom:"auto"}),new Nt(n,"."+e+"-bottom ."+e+"-item > ."+e+"-menu",{top:"auto",bottom:"0"}),new Nt(n,"."+e+"-item > ."+e+"-menu",{display:"none"}),new Nt(n,"."+e+"-item:hover > ."+e+"-menu, ."+e+"-item.active > ."+e+"-menu",{display:"block"}),new Nt(n,"."+e+"-item:hover > ."+e+"-menu > ."+e+"-item, ."+e+"-item.active > ."+e+"-menu > ."+e+"-item",{opacity:"1"}),new Nt(n,"."+e+"-menu",{display:"block","list-style":"none",margin:"0",padding:"0"}),new Nt(n,"."+e+"-label",{display:"block",cursor:"default",padding:"0.5em 1em"}),new Nt(n,"."+e+"-icon",{display:"block",cursor:"default",padding:"0.2em 0.4em",width:"1.2em",height:"1.2em","min-width":"32px","min-height":"32px",margin:"auto auto","border-radius":"3px"}),new Nt(n,"."+e+"-item-level-0 > ."+e+"-icon",{padding:"0.1em 0.2em"}),new Nt(n,"."+e+"-clickable",{cursor:"pointer"})]);return new yu(function(){Gf.removeKey(e),a.dispose()})});return r.increment()}var my=function(n){W(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e._validateDisposer=null,e}return i.prototype.invalidate=function(){this._validateDisposer===null&&(this._validateDisposer=V.events.on("exitframe",this.validate,this))},i.prototype.validate=function(){this._validateDisposer!==null&&(this._validateDisposer.dispose(),this._validateDisposer=null)},i.prototype.dispose=function(){this._validateDisposer!==null&&(this._validateDisposer.dispose(),this._validateDisposer=null),n.prototype.dispose.call(this)},i}(Nn),Rb=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.adapter=new Lr(e),e.closeDelay=1e3,e.closeOnClick=!0,e._language=new Ni,e._menuTag="ul",e._itemTag="li",e._labelTag="a",e._iconTag="img",e._classPrefix="amexport",e._defaultStyles=!0,e._align="right",e._verticalAlign="top",e._tabindex=0,e._ignoreNextClose=!1,e._items=[{label:"...",menu:[{label:"Image",menu:[{type:"png",label:"PNG"},{type:"jpg",label:"JPG"},{type:"svg",label:"SVG"},{type:"pdf",label:"PDF"}]},{label:"Data",menu:[{type:"json",label:"JSON"},{type:"csv",label:"CSV"},{type:"xlsx",label:"XLSX"},{type:"html",label:"HTML"},{type:"pdfdata",label:"PDF"}]},{label:"Print",type:"print"}]}],e.className="ExportMenu",e._disposers.push(e._language),e.invali
2date(),e.applyTheme(),e}return i.prototype.validate=function(){this.draw(),n.prototype.validate.call(this)},i.prototype.draw=function(){var e=this;this._element?(this._element.innerHTML="",this._element.className=this.getMenuItemClass(0)):this._element=this.createMenuElement(0),this.defaultStyles&&(this._element.style.display="none"),ai(this._container).appendChild(this._element);for(var t=this.adapter.apply("items",{items:this._items}).items,r=t.length,a=0;a<r;a++)this.drawBranch(this._element,t[a],0);this._element=this.adapter.apply("menuElement",{menuElement:this._element}).menuElement,this._disposers.push(Je().body.events.on("down",function(s){s.pointer.touch||(e._ignoreNextClose=!1),e.close()})),this._disposers.push(Je().body.events.on("keydown",function(s){var o=Vn.getEventKey(s.event);switch(o){case"esc":e.close();break;case"up":case"down":case"left":case"right":e._currentSelection&&s.event.preventDefault(),e.moveSelection(o);break}})),this.defaultStyles&&this.loadDefaultCSS()},i.prototype.drawBranch=function(e,t,r){var a=this;if(t=this.adapter.apply("branch",{branch:t,level:r}).branch,t.unsupported!==!0){t.ascendants||(t.ascendants=new Pt);var s=t.type,o=this.createItemElement(r,s),l;t.icon?(l=this.createIconElement(r,s),l.src=t.icon,(t.label||t.title)&&(l.title=t.title||t.label)):t.svg?(l=this.createSvgElement(r,s,t.svg),(t.label||t.title)&&(l.title=t.title||t.label)):(l=this.createLabelElement(r,s),l.innerHTML=t.label?this.language.translate(t.label):"",t.title&&(l.title=t.title));var u=this.getReaderLabel(t,l.innerHTML);l.setAttribute("aria-label",u),o.appendChild(l),t.interactions=Je().getInteraction(o),t.element=o,this.typeClickable(s)&&(t.interactions.events.on("hit",function(x){if(a.events.isEnabled("hit")&&!a.isDisposed()){var w={type:"hit",event:x.event,target:a,branch:t};a.events.dispatchImmediately("hit",w)}}),t.interactions.events.on("keyup",function(x){if(Vn.isKey(x.event,"enter")&&a.events.isEnabled("enter")){var w={type:"enter",event:x.event,target:a,branch:t};a.events.dispatchImmediately("enter",w)}}));{var h=this.getSubMenu(t);h!=null&&(t.interactions.events.on("keyup",function(x){Vn.isKey(x.event,"enter")&&(a.selectBranch(h[0]),a.setFocus(h[0]))}),t.interactions.events.on("hit",function(x){a.selectBranch(t)}))}t.interactions.events.on("over",function(x){if(x.pointer.touch&&(a._ignoreNextClose=!0),a.selectBranch(t),a.events.isEnabled("over")){var w={type:"over",event:x.event,target:a,branch:t};a.events.dispatchImmediately("over",w)}}),t.interactions.events.on("out",function(x){if(!a.isDisposed()&&(x.pointer.touch||a.delayUnselectBranch(t),a.events.isEnabled("out"))){var w={type:"out",event:x.event,target:a,branch:t};a.events.dispatchImmediately("out",w)}}),t.interactions.events.on("focus",function(x){a.selectBranch(t)}),t.interactions.events.on("blur",function(x){a.delayUnselectBranch(t)});var d=r+1;if(t.menu){var f=this.createMenuElement(d);t.submenuElement=f;for(var p=t.menu.length,v=0;v<p;v++){var m=new Pt;t.menu[v].ascendants=m,t.ascendants.length&&m.copyFrom(t.ascendants),m.push(t),this.drawBranch(f,t.menu[v],d)}if(f.innerHTML=="")return;o.appendChild(f)}t.hidden&&this.hideBranch(t),t.id&&o.setAttribute("id",t.id),t.color&&(o.style.backgroundColor=t.color.hex),e.appendChild(o)}},i.prototype.createMenuElement=function(e){var t=document.createElement(this.menuTag);return t.className=this.getMenuItemClass(e),e===0?t.setAttribute("role","menubar"):t.setAttribute("role","menu"),t},i.prototype.getMenuItemClass=function(e){var t=this.classPrefix+"-menu "+this.classPrefix+"-menu-level-"+e;return e===0&&(t+=" "+this.classPrefix+"-menu-root "+this.classPrefix+"-"+this.align+" "+this.classPrefix+"-"+this.verticalAlign),this.adapter.apply("menuClass",{className:t,level:e}).className},i.prototype.createItemElement=function(e,t){var r=document.createElement(this.itemTag),a=this.classPrefix+"-item "+this.classPrefix+"-item-level-"+e+" "+this.classPrefix+"-item-"+(t||"blank");return r.className=this.adapter.apply("itemClass",{className:a,level:e,type:t}).className,r.setAttribute("role","menuitem"),r.setAttribute("tabindex",this.tabindex.toString()),r},i.prototype.createLabelElement=function(e,t){var r=document.createElement(this.labelTag),a=this.classPrefix+"-label "+this.classPrefix+"-label-level-"+e+" "+this.classPrefix+"-item-"+(t||"blank");return this.typeClickable(t)&&(a+=" "+this.classPrefix+"-clickable"),r.className=this.adapter.apply("labelClass",{className:a,level:e,type:t}).className,r},i.prototype.createIconElement=function(e,t){var r=document.createElement(this.iconTag),a=this.classPrefix+"-icon "+this.classPrefix+"-icon-level-"+e+" "+this.classPrefix+"-item-"+(t||"blank");return this.typeClickable(t)&&(a+=" "+this.classPrefix+"-clickable"),r.className=this.adapter.apply("labelClass",{className:a,level:e,type:t}).className,r.setAttribute("tabindex",this.tabindex.toString()),r.setAttribute("role","menuitem"),r},i.prototype.createSvgElement=function(e,t,r){var a=new DOMParser,s=a.parseFromString(r,"image/svg+xml").documentElement,o=this.classPrefix+"-icon "+this.classPrefix+"-icon-level-"+e+" "+this.classPrefix+"-item-"+(t||"blank");return this.typeClickable(t)&&(o+=" "+this.classPrefix+"-clickable"),s.setAttribute("class",this.adapter.apply("labelClass",{className:o,level:e,type:t}).className),s.setAttribute("tabindex",this.tabindex.toString()),s.setAttribute("role","menuitem"),s},i.prototype.dispose=function(){this._disposed||(n.prototype.dispose.call(this),this._element&&this._element.parentNode&&this._element.parentNode.removeChild(this._element))},i.prototype.typeClickable=function(e){return T(e)},i.prototype.hasSubMenu=function(e){return!!(e.menu&&e.menu.length)},i.prototype.getSubMenu=function(e){if(e.menu&&e.menu.length)return e.menu},i.prototype.getReaderLabel=function(e,t){return t=ey(t),e.ascendants.length==0?(t=t=="..."?this.language.translate("Export"):t,t+=" ["+this.language.translate("Press ENTER or use arrow keys to navigate")+"]"):this.hasSubMenu(e)?t+=" ["+this.language.translate("Click, tap or press ENTER to open")+"]":e.type=="print"?t=this.language.translate("Click, tap or press ENTER to print."):this.typeClickable(e.type)&&(t=this.language.translate("Click, tap or press ENTER to export as %1.",void 0,t)),this.adapter.apply("rederLabel",{label:t,branch:e}).label},Object.defineProperty(i.prototype,"container",{get:function(){return this._container},set:function(e){this._container=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"items",{get:function(){return this._items},set:function(e){this._items=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tag",{set:function(e){this._menuTag=e,this._itemTag=e=="ul"?"li":"div",this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"menuTag",{get:function(){return this.adapter.apply("menuTag",{tag:this._menuTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemTag",{get:function(){return this.adapter.apply("itemTag",{tag:this._itemTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labelTag",{get:function(){return this.adapter.apply("labelTag",{tag:this._labelTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"iconTag",{get:function(){return this.adapter.apply("iconTag",{tag:this._iconTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"align",{get:function(){return this.adapter.apply("align",{align:this._align}
2).align},set:function(e){this._align=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalAlign",{get:function(){return this.adapter.apply("verticalAlign",{verticalAlign:this._verticalAlign}).verticalAlign},set:function(e){this._verticalAlign=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"classPrefix",{get:function(){return this.adapter.apply("classPrefix",{classPrefix:this._classPrefix}).classPrefix},set:function(e){this._classPrefix=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultStyles",{get:function(){return this.adapter.apply("defaultStyles",{defaultStyles:this._defaultStyles}).defaultStyles},set:function(e){this._defaultStyles!=e&&(this._defaultStyles=e,e&&this.loadDefaultCSS()),this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.loadDefaultCSS=function(){this._disposers.push(Lb(Zd(this.container),this.classPrefix)),this._element&&(this._element.style.display="")},Object.defineProperty(i.prototype,"tabindex",{get:function(){return this.adapter.apply("tabindex",{tabindex:this._tabindex}).tabindex},set:function(e){this._tabindex=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"language",{get:function(){var e=this,t=this._language.get();return t==null&&(t=new Sa,this._language.set(t,t.events.on("localechanged",function(r){e.invalidate()}))),t},set:function(e){var t=this;this._language.set(e,e.events.on("localechanged",function(r){t.invalidate()})),this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.close=function(){var e=this;if(!this.isDisposed()){if(this._ignoreNextClose){this._ignoreNextClose=!1;return}if(this.closeOnClick&&(this._element.style.pointerEvents="none",setTimeout(function(){e._element.style.pointerEvents="auto"},100)),this._currentSelection&&(this.setBlur(this._currentSelection),this._currentSelection=void 0),this._element)for(var t=this._element.getElementsByClassName("active"),r=t.length,a=r-1;a>=0;a--)t[a]&&ud(t[a],"active");this.events.dispatchImmediately("closed",{type:"closed",target:this})}},i.prototype.selectBranch=function(e){var t=this;if(!this.isDisposed()&&(e.closeTimeout&&(this.removeDispose(e.closeTimeout),e.closeTimeout=void 0),ld(e.element,"active"),e.submenuElement&&e.submenuElement.setAttribute("aria-expanded","true"),this._currentSelection&&this._currentSelection!==e&&this._currentSelection.ascendants&&ue(n0(qa([this._currentSelection]),this._currentSelection.ascendants.iterator()),function(a){!e.ascendants.contains(a)&&e!==a&&t.unselectBranch(a,!0)}),ue(e.ascendants.iterator(),function(a){a.closeTimeout&&(t.removeDispose(a.closeTimeout),a.closeTimeout=void 0),ld(a.element,"active")}),this._currentSelection=e,this.events.isEnabled("branchselected"))){var r={type:"branchselected",target:this,branch:e};this.events.dispatchImmediately("branchselected",r)}},i.prototype.unselectBranch=function(e,t){if(!this.isDisposed()&&(ud(e.element,"active"),e.submenuElement&&e.submenuElement.removeAttribute("aria-expanded"),this._currentSelection==e&&(this._currentSelection=void 0),this.events.isEnabled("branchunselected"))){var r={type:"branchunselected",target:this,branch:e};this.events.dispatchImmediately("branchunselected",r)}},i.prototype.delayUnselectBranch=function(e,t){var r=this;this.isDisposed()||(e.closeTimeout&&(this.removeDispose(e.closeTimeout),e.closeTimeout=void 0),e.closeTimeout=this.setTimeout(function(){r.unselectBranch(e,t)},this.closeDelay),t!==!0&&e.ascendants&&ue(e.ascendants.iterator(),function(a){r.delayUnselectBranch(a,!0)}))},i.prototype.moveSelection=function(e){if(!this.isDisposed()&&this._currentSelection){var t;if(e=="up")t=this.getPrevSibling(this._currentSelection);else if(e=="down")t=this.getNextSibling(this._currentSelection);else if(e=="left"&&this.align=="right"||e=="right"&&this.align=="left"){var r=this.getSubMenu(this._currentSelection);r!=null&&(t=r[0])}else(e=="right"&&this.align=="right"||e=="left"&&this.align=="left")&&(t=this.getParentItem(this._currentSelection));t&&t!==this._currentSelection&&(this.selectBranch(t),this.setFocus(t),this._currentSelection=t)}},i.prototype.getSiblings=function(e){var t=this.getParentItem(e);return t&&t.menu?t.menu:[]},i.prototype.getParentItem=function(e){if(e.ascendants&&e.ascendants.length)return e.ascendants.getIndex(e.ascendants.length-1)},i.prototype.getNextSibling=function(e){var t=this.getSiblings(e);if(t.length>1){var r=t.indexOf(e)+1;return r=t.length==r?0:r,t[r].unsupported?this.getNextSibling(t[r]):t[r]}else return e},i.prototype.getPrevSibling=function(e){var t=this.getSiblings(e);if(t.length>1){var r=t.indexOf(e)-1;return r=r==-1?t.length-1:r,t[r].unsupported?this.getPrevSibling(t[r]):t[r]}else return e},i.prototype.setFocus=function(e){if(e.interactions)try{e.interactions.element.focus()}catch{}},i.prototype.setBlur=function(e){if(e.interactions)try{e.interactions.element.blur()}catch{}},i.prototype.hideBranch=function(e){e.element.style.display="none"},i.prototype.showBranch=function(e){e.element.style.display=""},Object.defineProperty(i.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),i}(my);function $l(n,i,e){return new Promise(function(t,r){var a=T(e)&&e.responseType=="blob",s=new XMLHttpRequest;if(s.onload=function(){if(s.status===200){var u=void 0,h;
2if(a){h=s.response,Nb(h).then(function(f){var p={xhr:s,error:!1,response:f,blob:h,type:s.getResponseHeader("Content-Type"),target:i};t(p)});return}else u=s.responseText||s.response;var d={xhr:s,error:!1,response:u,blob:h,type:s.getResponseHeader("Content-Type"),target:i};t(d)}else r({xhr:s,error:!0,type:s.getResponseHeader("Content-Type"),target:i})},s.onerror=function(){r({xhr:s,error:!0,type:s.getResponseHeader("Content-Type"),target:i})},s.open("GET",n,!0),e&&e.withCredentials&&(s.withCredentials=!0),T(e)){if(T(e.requestHeaders))for(var o=0;o<e.requestHeaders.length;o++){var l=e.requestHeaders[o];s.setRequestHeader(l.key,l.value)}T(e.responseType)&&(s.responseType=e.responseType)}s.send()})}function Nb(n){return new Promise(function(i,e){var t=new FileReader;t.onload=function(r){i(t.result)},t.onerror=function(r){e(r)},t.readAsText(n)})}var Dh;function Hb(){return Rt(this,void 0,void 0,function(){var n,i,e,t;return Tt(this,function(r){switch(r.label){case 0:return[4,Promise.all([Vl(()=>import("./pdfmake-f602bd6e.js").then(a=>a.p),["assets/pdfmake-f602bd6e.js","assets/bootstrap-71154e5e.js"]),Vl(()=>import("./vfs_fonts-7b67f08d.js"),[])])];case 1:return n=r.sent(),i=n[0].default||n[0],e=n[1].default||n[1],t=window,t.pdfMake=t.pdfMake||{},t.pdfMake.vfs=e,i.vfs=e,[2,i]}})})}var $f=/src: ([^;]+);/;function Yb(){return window.navigator.msSaveOrOpenBlob!=null}function Wb(n){return new Promise(function(i,e){var t=new FileReader;t.onload=function(r){i(t.result)},t.onerror=function(r){e(r)},t.readAsDataURL(n)})}function Bb(n){return Rt(this,void 0,void 0,function(){var i;return Tt(this,function(e){switch(e.label){case 0:i=n.sheet,e.label=1;case 1:return e.trys.push([1,2,,4]),[2,i.cssRules];case 2:return e.sent(),[4,new Promise(function(t,r){n.addEventListener("load",function(){t(i.cssRules)},!0),n.addEventListener("error",function(a){r(a)},!0),setTimeout(function(){r(new Error("Timeout while waiting for <style> to load"))},1e4)})];case 3:return[2,e.sent()];case 4:return[2]}})})}function by(n,i,e){return Rt(this,void 0,void 0,function(){var t,r,a,s;return Tt(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,$l(i)];case 1:return t=o.sent(),[3,3];case 2:return r=o.sent(),console.error("Failed to load stylesheet",i,r),[2];case 3:a=n.createElement("style"),a.textContent=t.response,n.head.appendChild(a),o.label=4;case 4:return o.trys.push([4,,7,8]),[4,Bb(a)];case 5:return s=o.sent(),[4,xy(n,i,s,e)];case 6:return o.sent(),[3,8];case 7:return n.head.removeChild(a),[7];case 8:return[2]}})})}function xy(n,i,e,t){return Rt(this,void 0,void 0,function(){var r,a,s,o,l;return Tt(this,function(u){switch(u.label){case 0:for(r=[],a=e.length,s=0;s<a;s++)o=e[s],o.type===CSSRule.IMPORT_RULE?(l=o.href,l&&(l=$d(i,l),r.push(by(n,l,t)))):t(i,o);return r.length?[4,Promise.all(r)]:[3,2];case 1:u.sent(),u.label=2;case 2:return[2]}})})}function zb(n){return Rt(this,void 0,void 0,function(){var i,e;return Tt(this,function(t){switch(t.label){case 0:i=document.createElement("iframe"),i.src="about:blank",i.setAttribute("title",""),document.head.appendChild(i),t.label=1;case 1:return t.trys.push([1,,3,4]),e=i.contentDocument,[4,Promise.all(Wo(document.styleSheets,function(r){var a=r.href;return a==null?xy(e,location.href,r.cssRules,n):(a=$d(location.href,a),by(e,a,n))}))];case 2:return t.sent(),[3,4];case 3:return document.head.removeChild(i),[7];case 4:return[2]}})})}var Ub=function(n){W(i,n);function i(e){var t=n.call(this)||this;return t.adapter=new Lr(t),t._formatOptions=new Gt,t._extraSprites=[],t._validateSprites=[],t.dataFieldsOrder=[],t._dynamicDataFields=!0,t._removedObjects=new Pt,t._hiddenObjects=[],t._objectsAlreadyHidden=!1,t._filePrefix="amCharts",t.useWebFonts=!0,t.useRetina=!0,t.useSimplifiedExport=!0,t.timeoutDelay=2e3,t._exportRunning=!1,t._prevHasData=!1,t._container=e,t.className="Export",t._formatOptions.setKey("png",{}),t._formatOptions.setKey("jpg",{quality:.8}),t._formatOptions.setKey("gif",{}),t._formatOptions.setKey("svg",{}),t._formatOptions.setKey("pdf",{fontSize:14,imageFormat:"png",align:"left",addURL:!0,addColumnNames:!0}),t._formatOptions.setKey("json",{indent:2,useLocale:!0}),t._formatOptions.setKey("csv",{addColumnNames:!0,emptyAs:"",addBOM:!0}),t._formatOptions.setKey("xlsx",{addColumnNames:!0,useLocale:!0,emptyAs:""}),t._formatOptions.setKey("html",{addColumnNames:!0,emptyAs:""}),t._formatOptions.setKey("pdfdata",{fontSize:14,imageFormat:"png",addURL:!0,addColumnNames:!0,emptyAs:""}),t._formatOptions.setKey("print",{delay:500,printMethod:"iframe"}),t.adapter.add("options",function(r){var a=t._formatOptions.getKey(r.type);return r.options?r.options=Kh(a,r.options):r.options=a,r}
2),t.applyTheme(),t.dispatchImmediately("inited"),t}return Object.defineProperty(i.prototype,"menu",{get:function(){return this._menu},set:function(e){var t=this;this._menu&&this.removeDispose(this._menu),this._menu=e,this._menu.container=this.container,this._menu.language=this._language,this._menu.adapter.add("branch",function(r){return r.branch.unsupported=!t.typeSupported(r.branch.type),r}),this._menu.events.on("hit",function(r){t.export(r.branch.type,r.branch.options),t.menu.close()}),this._menu.events.on("enter",function(r){t.export(r.branch.type,r.branch.options),t.menu.close()}),this._menu.events.on("over",function(r){t._disablePointers()}),this._menu.events.on("out",function(r){setTimeout(function(){t._releasePointers()},10)}),this.dispatchImmediately("menucreated"),this._menu.adapter.add("classPrefix",function(r){return r.classPrefix=ir.classNamePrefix+r.classPrefix,r}),this._disposers.push(this._menu)},enumerable:!0,configurable:!0}),i.prototype.typeSupported=function(e){var t=!0,r=this.getFormatOptions(e);return T(r)&&r.disabled?t=!1:e==="pdf"||(e==="xlsx"?t=!!this._hasData():(e=="print"&&!window.print||["json","csv","html","pdfdata"].indexOf(e)!==-1&&!this._hasData())&&(t=!1)),this.adapter.apply("supported",{supported:t,type:e}).supported},i.prototype._hasData=function(){return this.data&&this.data.length},i.prototype._getFunction=function(e){switch(e){case"png":case"gif":case"jpg":return this.getImage;case"svg":return this.getSVG;case"pdf":case"pdfdata":return this.getPDF;case"xlsx":return this.getExcel;case"csv":return this.getCSV;case"json":return this.getJSON;case"html":return this.getHTML;case"print":return this.getPrint;default:return this.unsupported}},i.prototype.export=function(e,t){return Rt(this,void 0,void 0,function(){var r,a,s,o,l,u=this;return Tt(this,function(h){switch(h.label){case 0:return e=="custom"?(this.handleCustom(t),[2,!0]):(this._exportRunning=!0,this.events.isEnabled("exportstarted")&&(r={type:"exportstarted",target:this,format:e,options:t},this.events.dispatchImmediately("exportstarted",r)),this.showPreloader(),this.timeoutDelay&&(this.hideTimeout(),this._timeoutTimeout=this.setTimeout(function(){if(u.events.isEnabled("exporttimedout")){var d={type:"exporttimedout",target:u,format:e,options:t};u.events.dispatchImmediately("exporttimedout",d)}u.showTimeout()},this.timeoutDelay)),this.hideNonExportableSprites(),a=this._getFunction(e),t=this.adapter.apply("options",{options:t,type:e}).options,a=this.adapter.apply("exportFunction",{func:a,type:e,options:t}).func,[4,a.call(this,e,t)]);case 1:return s=h.sent(),this._exportRunning=!1,this._releasePointers(),this.restoreNonExportableSprites(),s?(this.events.isEnabled("exportfinished")&&(o={type:"exportfinished",target:this,format:e,options:t},this.events.dispatchImmediately("exportfinished",o)),this.hidePreloader(),this.hideTimeout(),this.menu&&this.menu.close(),e==="print"?[2,this.print(s,t,this.adapter.apply("title",{title:this.title,options:t}).title)]:e=="pdfdata"?[2,this.download(s,this.filePrefix+".pdf")]:[2,this.download(s,this.filePrefix+"."+e,t&&t.addBOM)]):(this.events.isEnabled("error")&&(l={type:"error",target:this,format:e,options:t},this.events.dispatchImmediately("error",l)),[2,!1])}})})},i.prototype.unsupported=function(e,t){return Rt(this,void 0,void 0,function(){return Tt(this,function(r){return[2,""]})})},i.prototype.handleCustom=function(e){T(e)&&T(e.callback)&&e.callback.call(e.callbackTarget||this,e)},i.prototype.getPrint=function(e,t){return Rt(this,void 0,void 0,function(){return Tt(this,function(r){return[2,this.getImage("png",t)]})})},i.prototype.getFontFamilies=function(){return Rt(this,void 0,void 0,function(){var e,t,r,a,s=this;return Tt(this,function(o){switch(o.label){case 0:return e=this.getDOMURL(),t=[],r=[],[4,zb(function(l,u){if(u.type===CSSRule.FONT_FACE_RULE){var h=u.cssText,d=$f.exec(h);if(d!==null){var f=d[1].split(/ *, */).map(function(p){return Rt(s,void 0,void 0,function(){var v,m,x,w,P,O;return Tt(this,function(j){switch(j.label){case 0:return v=/^url\(["']?([^"'\)]+)["']?\)([^,]*)$/.exec(p),v!==null?[3,1]:[2,p];case 1:if(m=v[2],x=$d(l,v[1]),this.webFontFilter&&!x.match(this.webFontFilter))return[2,null];j.label=2;case 2:return j.trys.push([2,7,,8]),[4,$l(x,void 0,{responseType:"blob"})];case 3:return w=j.sent(),Yb()?(P=e.createObjectURL(w.blob),t.push(P),[3,6]):[3,4];case 4:return[4,Wb(w.blob)];case 5:P=j.sent(),j.label=6;case 6:return[2,'url("'+P+'")'+m];case 7:return O=j.sent(),console.error("Failed to load font",x,O),[2,null];case 8:return[2]}})})});
2r.push(Promise.all(f).then(function(p){return p=p.filter(function(v){return v!=null}),p.length===0?"":h.replace($f,"src: "+p.join(", ")+";")}))}}})];case 1:return o.sent(),[4,Promise.all(r)];case 2:return a=o.sent(),[2,{blobs:t,cssText:a.filter(function(l){return!!l}).join(`
3`)}]}})})},i.prototype.getImage=function(e,t,r){return Rt(this,void 0,void 0,function(){var a,s,o,l,u,h,h;return Tt(this,function(d){switch(d.label){case 0:return a=this._objectsAlreadyHidden,a||this.hideNonExportableSprites(),T(t)||(t=this.getFormatOptions(e)),[4,this.awaitValidSprites()];case 1:return d.sent(),[4,this.simplifiedImageExport()];case 2:if(!d.sent())return[3,10];s=void 0,d.label=3;case 3:return d.trys.push([3,7,,9]),[4,this.getCanvas(t)];case 4:return s=d.sent(),r===!1?[3,6]:[4,this.addExtras(s,t)];case 5:o=d.sent(),this.disposeCanvas(s),s=o,d.label=6;case 6:return l=s.toDataURL(this.getContentType(e),t.quality),this.disposeCanvas(s),a||this.restoreNonExportableSprites(),[2,l];case 7:return u=d.sent(),console.error(u.message+`
4`+u.stack),Qd("Simple export failed, falling back to advanced export"),s&&this.disposeCanvas(s),[4,this.getImageAdvanced(e,t,r)];case 8:return h=d.sent(),a||this.restoreNonExportableSprites(),[2,h];case 9:return[3,12];case 10:return[4,this.getImageAdvanced(e,t,r)];case 11:return h=d.sent(),a||this.restoreNonExportableSprites(),[2,h];case 12:return[2]}})})},i.prototype.addExtras=function(e,t,r){return Rt(this,void 0,void 0,function(){var a,s,o,l,u,h,d,f,p,v,m,x,w,P,O=this;return Tt(this,function(j){switch(j.label){case 0:return this.extraSprites.length?(a=0,s=0,o=e.width,l=e.height,u=0,h=0,[4,Promise.all(Wo(this.extraSprites,function(M){return Rt(O,void 0,void 0,function(){var F,g,L,N;return Tt(this,function(ye){switch(ye.label){case 0:return M instanceof ot?F={sprite:M,position:"bottom"}:F=M,F.position=F.position||"bottom",F.marginTop=F.marginTop||0,F.marginRight=F.marginRight||0,F.marginBottom=F.marginBottom||0,F.marginLeft=F.marginLeft||0,r?[4,F.sprite.exporting.getCanvasAdvanced(t)]:[3,2];case 1:return g=ye.sent(),[3,4];case 2:return[4,F.sprite.exporting.getCanvas(t)];case 3:g=ye.sent(),ye.label=4;case 4:return L=g.width+F.marginLeft+F.marginRight,N=g.height+F.marginTop+F.marginBottom,F.position=="top"?(o=F.crop?l:st(o,L),s+=N):F.position=="right"?(l=F.crop?l:st(l,N),u+=L):F.position=="left"?(l=F.crop?l:st(l,N),a+=L):F.position==="bottom"&&(o=F.crop?l:st(o,L),h+=N),[2,{canvas:g,position:F.position,left:F.marginLeft,top:F.marginTop,width:L,height:N}]}})})}))]):[3,2];case 1:return d=j.sent(),f=this.getDisposableCanvas(),f.width=a+o+u,f.height=s+l+h,p=f.getContext("2d"),v=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),v&&(p.fillStyle=v.toString(),p.fillRect(0,0,f.width,f.height)),m=a,x=s,w=m+o,P=x+l,De(d,function(M){M.position=="top"?(x-=M.height,p.drawImage(M.canvas,a+M.left,x+M.top)):M.position=="right"?(p.drawImage(M.canvas,w+M.left,s+M.top),w+=M.width):M.position=="left"?(m-=M.width,p.drawImage(M.canvas,m+M.left,s+M.top)):M.position==="bottom"&&(p.drawImage(M.canvas,a+M.left,P+M.top),P+=M.height),O.disposeCanvas(M.canvas)}),p.drawImage(e,a,s),[2,f];case 2:return[2,e]}})})},i.prototype.getCanvas=function(e){return Rt(this,void 0,void 0,function(){var t,r,a,s,o,l,u,h,d,f,p,v,m,x,w,P,O;return Tt(this,function(j){switch(j.label){case 0:T(e)||(e={}),t=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),r=this.getDOMURL(),a=null,s=null,j.label=1;case 1:return j.trys.push([1,,4,5]),l=this.sprite.pixelWidth,u=this.sprite.pixelHeight,h=Sl(this.sprite.dom),d=Ol(this.sprite.dom),f=e.scale||1,p=this.getPixelRatio(e),f=this.getAdjustedScale(l*p,u*p,f,e),o=this.getDisposableCanvas(),o.style.width=l*f+"px",o.style.height=u*f+"px",o.width=l*f,o.height=u*f,v=o.getContext("2d"),t&&(v.fillStyle=t.toString(),v.fillRect(0,0,l*f,u*f)),m=[],this.useWebFonts&&m.push(this.getFontFamilies().then(function(M){return s=M.blobs,M.cssText})),m.push(this.imagesToDataURI(this.sprite.dom,e)),m.push(this.prepForeignObjects(this.sprite.dom,e)),[4,Promise.all(m)];case 2:return x=j.sent(),w=this.normalizeSVG("<style>"+x[0]+"</style>"+this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),e,l,u,f,h,d),P=new Blob([w],{type:"image/svg+xml"}),a=r.createObjectURL(P),[4,this.loadNewImage(a,l*f*p,u*f*p,"anonymous")];case 3:return O=j.sent(),v.drawImage(O,0,0),[3,5];case 4:return a!==null&&r.revokeObjectURL(a),s!==null&&De(s,function(M){r.revokeObjectURL(M)}),this.restoreRemovedObjects(),[7];case 5:return[2,o]}})})},i.prototype.getCanvasAdvanced=function(e){return Rt(this,void 0,void 0,function(){var t,r,a,s,o,l,u,h,d,f,p;return Tt(this,function(v){switch(v.label){case 0:return T(e)||(e={}),[4,this.imagesToDataURI(this.sprite.dom,e)];case 1:return v.sent(),t=this.backgroundColor||this.findBackgroun
4dColor(this.sprite.dom),[4,this.canvg];case 2:return r=v.sent(),a=this.sprite.pixelWidth,s=this.sprite.pixelHeight,o=Sl(this.sprite.dom),l=Ol(this.sprite.dom),u=e.scale||1,h=this.getPixelRatio(e),u=this.getAdjustedScale(a*h,s*h,u,e),d=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),e,a,s,u,o,l,t),f=this.getDisposableCanvas(),f.style.width=a*h*u+"px",f.style.height=s*h*u+"px",f.width=a*h*u,f.height=s*h*u,p={useCORS:!0},h!=1&&(p.ignoreDimensions=!0,p.scaleWidth=a*h*u,p.scaleHeight=s*h*u),[4,r.fromString(f.getContext("2d"),d,p).render()];case 3:return v.sent(),[2,f]}})})},i.prototype.getImageAdvanced=function(e,t,r){return Rt(this,void 0,void 0,function(){var a,s,o;return Tt(this,function(l){switch(l.label){case 0:return a=this._objectsAlreadyHidden,a||this.hideNonExportableSprites(),T(t)||(t=this.getFormatOptions(e)),[4,this.getCanvasAdvanced(t)];case 1:return s=l.sent(),r===!1?[3,3]:[4,this.addExtras(s,t,!0)];case 2:s=l.sent(),l.label=3;case 3:return o=s.toDataURL(this.getContentType(e),t.quality),this.disposeCanvas(s),a||this.restoreNonExportableSprites(),[2,o]}})})},i.prototype.getDisposableCanvas=function(){var e=document.createElement("canvas");return e.style.position="fixed",e.style.top="-10000px",document.body.appendChild(e),e},i.prototype.disposeCanvas=function(e){document.body.contains(e)&&document.body.removeChild(e)},i.prototype.getPixelRatio=function(e){return this.useRetina?S0():1},i.prototype.getAdjustedScale=function(e,t,r,a){if(!a)return r;var s=e*r,o=e*r,l,u;return a.maxWidth&&s>a.maxWidth&&(l=a.maxWidth/e),a.maxHeight&&o>a.maxHeight&&(u=a.maxHeight/t),l||u?xt(l,u):(a.minWidth&&s<a.minWidth&&(l=a.minWidth/e),a.minHeight&&o<a.minHeight&&(u=a.minHeight/t),l||u?st(l,u):r)},i.prototype.imagesToDataURI=function(e,t){return Rt(this,void 0,void 0,function(){var r,a,s,o,l,u;return Tt(this,function(h){switch(h.label){case 0:if(r=e.querySelectorAll("image"),!r.length)return[3,2];for(a=[],s=r.length,o=0;o<s;o++)l=r[o],u=l.getAttributeNS(i.XLINK,"href"),u&&(u.indexOf("data:image")!==-1||(u.indexOf(".svg")!==-1?a.push(this.svgToDataURI(l,t)):a.push(this.imageToDataURI(l,t))));return[4,Promise.all(a)];case 1:return h.sent(),[2];case 2:return[2]}})})},i.prototype.prepForeignObjects=function(e,t){return Rt(this,void 0,void 0,function(){var r,a,s;return Tt(this,function(o){if(r=e.querySelectorAll("foreignObject"),r.length)for(a=r.length,s=0;s<a;s++)this.temporarilyRemoveObject(r[s]);return[2]})})},i.prototype.imageToDataURI=function(e,t){return Rt(this,void 0,void 0,function(){var r,a,s;return Tt(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.loadNewImage(e.getAttributeNS(i.XLINK,"href"),null,null,"anonymous")];case 1:r=o.sent(),a=document.createElement("canvas"),a.width=r.width,a.height=r.height,a.getContext("2d").drawImage(r,0,0);try{return s=a.toDataURL(),e.setAttribute("href",s),[2,s]}catch{return t.keepTainted!==!1&&this.temporarilyRemoveObject(e),[2,void 0]}return[3,3];case 2:return o.sent(),(!t||t.keepTainted!==!1)&&this.temporarilyRemoveObject(e),[2,void 0];case 3:return[2]}})})},i.prototype.svgToDataURI=function(e,t){return Rt(this,void 0,void 0,function(){var r,a,s,o;return Tt(this,function(l){switch(l.label){case 0:r=e.getAttributeNS(i.XLINK,"href"),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,$l(r)];case 2:return a=l.sent(),s=this.adapter.apply("charset",{charset:"base64",type:"svg",options:t}).charset,o=this.adapter.apply("svgToDataURI",{data:"data:"+this.getContentType("svg")+";"+s+","+btoa(a.response),options:t}).data,e.setAttributeNS(i.XLINK,"href",o),[2,o];case 3:return l.sent(),(!t||t.keepTainted!==!1)&&this.temporarilyRemoveObject(e),[2,void 0];case 4:return[2]}})})},i.prototype.temporarilyRemoveObject=function(e,t){var r=e.parentElement||e.parentNode;t||(t=this.sprite.paper.add("g").node),r.insertBefore(t,e),e.textContent,r.removeChild(e),this._removedObjects.push({element:e,placeholder:t})},i.prototype.restoreRemovedObjects=function(){for(var e;e=this._removedObjects.pop(),!!e;){var t=e.placeholder.parentElement||e.placeholder.parentNode;t.insertBefore(e.element,e.placeholder)}},i.prototype.simplifiedImageExport=function(){return Rt(this,void 0,void 0,function(){var e,t,r,a,s,o,l;return Tt(this,function(u){switch(u.label){case 0:if(this.useSimplifiedExport===!1)return[2,!1];if(e=V.getCache("simplifiedImageExport"),e===!1||e===!0)return[2,e];u.label=1;case 1:u.trys.push([1,6,,7]),t=document.createElement("canvas"),t.width=1,t.height=1,r=t.getContext("2d"),a=this.getDOMURL(),s=new Blob([this.normalizeSVG("<g></g>",{}
4,1,1)],{type:"image/svg+xml"}),o=a.createObjectURL(s),l=void 0,u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.loadNewImage(o,1,1)];case 3:return l=u.sent(),[3,5];case 4:return u.sent(),[2,!1];case 5:r.drawImage(l,0,0),a.revokeObjectURL(o);try{return V.setCache("simplifiedImageExport",!0),[2,!0]}catch{return V.setCache("simplifiedImageExport",!1),[2,!1]}return[3,7];case 6:return u.sent(),V.setCache("simplifiedImageExport",!1),[2,!1];case 7:return[2]}})})},i.prototype.loadNewImage=function(e,t,r,a){return new Promise(function(s,o){var l;t&&r?l=new Image(t,r):l=new Image,a&&l.setAttribute("crossOrigin",a),l.onload=function(){s(l)};function u(){if(a){var h=l.src;l.onerror=function(){o(new Error('Loading image "'+e+'" failed'))},l.removeAttribute("crossorigin"),l.src="",l.src=h}else o(new Error('Loading image "'+e+'" failed'))}l.onabort=u,l.onerror=u,l.src=e})},i.prototype.getDOMURL=function(){return self.URL||self.webkitURL||self},i.prototype.getSVG=function(e,t,r){return r===void 0&&(r=!0),Rt(this,void 0,void 0,function(){var a,s,o,l,u,h,d,f,p,v;return Tt(this,function(m){switch(m.label){case 0:return a=this._objectsAlreadyHidden,a||this.hideNonExportableSprites(),T(t)||(t=this.getFormatOptions("svg")),[4,this.awaitValidSprites()];case 1:return m.sent(),s=this.sprite.pixelWidth,o=this.sprite.pixelHeight,l=Sl(this.sprite.dom),u=Ol(this.sprite.dom),h=t.scale||1,d=this.getPixelRatio(t),h=this.getAdjustedScale(s*d,o*d,h,t),f=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),t,s,o,h,l,u),p=this.adapter.apply("charset",{charset:"charset=utf-8",type:"svg",options:t}).charset,v=this.adapter.apply("getSVG",{data:r?"data:"+this.getContentType(e)+";"+p+","+encodeURIComponent(f):f,options:t}).data,a||this.restoreNonExportableSprites(),[2,v]}})})},i.prototype.normalizeSVG=function(e,t,r,a,s,o,l,u){var h="";r&&(h+='width="'+Math.round(r*(s||1))+'px" '),a&&(h+='height="'+Math.round(a*(s||1))+'px" ');var d="";o&&(d+="font-family: "+o.replace(/"/g,"")+";"),l&&(d+="font-size: "+l+";"),s&&(h+='viewBox="0 0 '+r+" "+a+'" ');var f=[],p=e.match(/<foreignObject[\s\S]*<\/foreignObject>/gi);if(p)for(var v=0;v<p.length;v++)e=e.replace(p[v],Hr),f.push(p[v]);e.match(/<svg/)?h!==""&&(e=e.replace(/(<svg[^>]*)width="[^"]*"/,"$1"),e=e.replace(/(<svg[^>]*)height="[^"]*"/,"$1"),e=e.replace(/(<svg)/,"$1"+h)):e='<?xml version="1.0" encoding="utf-8"?><svg '+h+' style="'+d+'" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+e+"</svg>",u&&(e=e.replace(/(<svg[^>]*>)/,'$1<rect width="100%" height="100%" fill="'+u.rgba+'"/>')),C0()&&(e=e.replace(/<feColorMatrix [^\/>]*\/>/gi,""));var m=new RegExp("url\\("+ed(co()),"g");if(e=e.replace(m,"url(#"),e=e.replace(/url\(&quot;([^)]*)&quot;\)/gm,"url($1)"),f.length)for(var v=0;v<f.length;v++)e=e.replace(Hr,f[v]);return e=this.adapter.apply("normalizeSVG",{data:e,options:t}).data,e},i.prototype.serializeElement=function(e){return new XMLSerializer().serializeToString(e)},i.prototype.getPDF=function(e,t){return Rt(this,void 0,void 0,function(){function r(x){var w={};w.normal=x.normal.path,m[x.normal.path]=x.normal.bytes,x.bold?(w.bold=x.bold.path,m[x.bold.path]=x.bold.bytes):w.bold=x.normal.path,x.italics?(w.italics=x.italics.path,m[x.italics.path]=x.italics.bytes):w.italics=x.normal.path,x.bolditalics?(w.bolditalics=x.bolditalics.path,m[x.bolditalics.path]=x.bolditalics.bytes):w.bolditalics=x.normal.path,v[x.name]=w}var a,s,o,l,u,h,d,f,p,v,m;return Tt(this,function(x){switch(x.label){case 0:return[4,this.getImage(t.imageFormat||"png",t)];case 1:return a=x.sent(),[4,this.pdfmake];case 2:return s=x.sent(),o=[30,30,30,30],l={pageSize:t.pageSize||"A4",pageOrientation:t.pageOrientation||"portrait",pageMargins:t.pageMargins||o,defaultStyle:{font:t.font?t.font.name:void 0},content:[]},u=this.adapter.apply("title",{title:this.title,options:t}).title,h=0,u&&(l.content.push({text:u,fontSize:t.fontSize||14,bold:!0,margin:[0,0,0,15]}),h+=50),t.addURL&&(l.content.push({text:this.language.translate("Saved from")+": "+document.location.href,fontSize:t.fontSize,margin:[0,0,0,15]}),h+=50),e!="pdfdata"&&l.content.push({image:a,alignment:t.align||"left",fit:this.getPageSizeFit(l.pageSize,l.pageMargins,h)}),e=="pdfdata"||t.addData?(f=(d=l.content).push,p={},[4,this.getPDFData("pdf",t)]):[3,4];case 3:f.apply(d,[(p.table=x.sent(),p.fontSize=t.fontSize||14,p)]),x.label=4;case 4:return l=this.adapter.apply("pdfmakeDocument",{doc:l,options:t}).doc,v=null,m=null,t.font&&(v={},m={},r(t.font),t.extraFonts&&De(t.extraFonts,r)),[4,new Promise(function(w,P){s.createPdf(l,null,v,m).getDataUrl(function(O){w(O)})})];case 5:return[2,x.sent()]}})})},i.prototype.getPDFData=function(e,t){return Rt(this,void 0,void 0,function(){var r,a,s,o,l,u,h=this;return Tt(this,function(d){if(r={body:[]},a=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"pdf"}).dataFields,s=this.data,t.pivot)o=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"pdfdata"}).dataFieldsOrder,Gn(a,function(f,p){var v=[];t.addColumnNames&&v.push(p);for(var m=s.length,x=0;x<m;x++){var w=s[x][f];v.push(h.convertToSpecialFormat(f,w,t,!0))}r.body.push(h.getPDFDataRow(v,t,void 0,!0))},function(f,p){var v=o.indexOf(f),m=o.indexOf(p);return v>m?1:v<m?-1:0});else for(t.addColumnNames&&(r.body.push(this.getPDFDataRow(a,t,void 0,!0)),r.headerRows=1),l=s.length,u=0;u<l;u++)r.body.push(this.getPDFDataRow(s[u],t,a));return[2,this.adapter.apply("pdfmakeTable",{table:r,options:t}).table]})})},i.prototype.getPDFDataRow=function(e,t,r,a){var s=this;a===void 0&&(a=!1);var o=[];r||(r=e);var l=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"pdfdata"}).dataFieldsOrder;return Gn(r,function(u,h){var d=s.convertEmptyValue(u,e[u],t),f=a?d:s.convertToSpecialFormat(u,d,t);f=""+f,o.push(f)},function(u,h){var d=l.indexOf(u),f=l.indexOf(h);return d>f?1:d<f?-1:0}),o},i.prototype.getPageSizeFit=function(e,t,r){r===void 0&&(r=0);var a=[0,0,0,0];typeof t=="number"?a=[t,t,t,t]:t.length==2?a=[t[0],t[1],t[0],t[1]]:t.length==4&&(a=t);var s={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]},o=s[e];return o[0]-=a[0]+a[2],o[1]-=a[1]+a[3]+r,o},i.prototype.getExcel=function(e,t){return Rt(this,void 0,void 0,function(){var r,a,s,o,l,u,h,d,f,p,v=this;return Tt(this,function(m){switch(m.label){case 0:return T(t)||(t=this.getFormatOptions("xlsx")),[4,this.xlsx];case 1:if(r=m.sent(),a=this.adapter.apply("xlsxWorkbookOptions",{xlsx:r,options:{bookType:"xlsx",bookSST:!1,type:"base64"}}).options,s=this.normalizeExcelSheetName(this.adapter.apply("xlsxSheetName",{xlsx:r,name:this.title||this.language.translate("Data")}).name),o={SheetNames:[s],Sheets:{}},l=[],u=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"xslx"}).dataFields,t.pivot)h=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"xlsx"}).dataFieldsOrder,Gn(u,function(x,w){var P=[];t.addColumnNames&&P.push(w);for(var O=v.data.length,j=0;j<O;j++){var M=v.data[j][x];P.push(v.convertToSpecialFormat(x,M,t,!0))}l.push(v.getExcelRow(P,t,void 0,!0))},function(x,w){var P=h.indexOf(x),O=h.indexOf(w);return P>O?1:P<O?-1:0});else for(t.addColumnNames&&l.push(this.getExcelRow(u,t,void 0,!0)),d=this.data.length,f=0;f<d;f++)l.push(this.getExcelRow(this.data[f],t,u));return o.Sheets[s]=r.utils.aoa_to_sheet(l),o=this.adapter.apply("xlsxWorkbook",{xlsx:r,workbook:o,options:t}).workbook,p=this.adapter.apply("getExcel",{data:"data:"+this.getContentType(e)+";base64,"+r.write(o,a),options:t}).data,[2,p]}})})},i.prototype.normalizeExcelSheetName=function(e){return e=e.replace(/([:\\\/?*\[\]]+)/g," "),id(e,31,"...",!0)},i.prototype.getExcelRow=function(e,t,r,a){var s=this;a===void 0&&(a=!1);var o=[];r||(r=e);var l=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"xlsx"}).dataFieldsOrder;return Gn(r,function(u,h){var d=s.convertEmptyValue(u,e[u],t),f=a?d:s.convertToSpecialFormat(u,d,t,!0);o.push(f)},function(u,h){var d=l.indexOf(u),f=l.indexOf(h);return d>f?1:d<f?-1:0}),o},i.prototype.getCSV=function(e,t,r){return r===void 0&&(r=!0),Rt(this,void 0,void 0,function(){var a,s,o,l,u,h,d,f,p,v,m=this;return Tt(this,function(x){if(T(t)||(t=this.getFormatOptions("csv")),a="",s=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"csv"}).dataFields,o="",l=this.data,t.pivot)u=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"csv"}).dataFieldsOrder,Gn(s,function(w,P){var O=[];t.addColumnNames&&O.push(P);for(var j=l.length,M=0;M<j;M++){var F=l[M][w];O.push(m.convertToSpecialFormat(w,F,t,!0))}a+=o+m.getCSVRow(O,t,void 0,!0),o=`
5`},function(w,P){var O=u.indexOf(w),j=u.indexOf(P);return O>j?-1:O<j?1:0});else{for(h=l.length,d=0;d<h;d++)f=this.getCSVRow(l[d],t,s),t.reverse?a=f+o+a:a+=o+f,o=`
6`;t.addColumnNames&&(a=this.getCSVRow(s,t,void 0,!0)+o+a)}return p=this.adapter.apply("charset",{charset:"charset=utf-8",type:e,options:t}).charset,v=this.adapter.apply("getCSV",{data:r?"data:"+this.getContentType(e)+";"+p+","+encodeURIComponent(a):a,options:t}).data,[2,v]})})},i.prototype.getCSVRow=function(e,t,r,a){var s=this;a===void 0&&(a=!1);var o=t.separator||",",l=[];r||(r=e);var u=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"csv"}).dataFieldsOrder;return Gn(r,function(h,d){var f=s.convertEmptyValue(h,e[h],t),p=a?f:s.convertToSpecialFormat(h,f,t);
6p=""+p,p=p.replace(/"/g,'""'),(t.forceQuotes||p.search(new RegExp(`"|
7|`+o,"g"))>=0)&&(p='"'+p+'"'),l.push(p)},function(h,d){var f=u.indexOf(h),p=u.indexOf(d);return f>p?1:f<p?-1:0}),l.join(o)},i.prototype.getHTML=function(e,t,r){return r===void 0&&(r=!0),Rt(this,void 0,void 0,function(){var a,s,o,l,u,h,d,f,p=this;return Tt(this,function(v){if(T(t)||(t=this.getFormatOptions("html")),a="<table>",t.tableClass&&(a='<table class="'+t.tableClass+'">'),s=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"html"}).dataFields,o=this.data,t.pivot)l=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,a+=`
8<tbody>`,Gn(s,function(m,x){var w=[];t.addColumnNames&&w.push(x);for(var P=o.length,O=0;O<P;O++){var j=o[O][m];w.push(p.convertToSpecialFormat(m,j,t,!0))}a+=`
9`+p.getHTMLRow(w,t,void 0,!0)},function(m,x){var w=l.indexOf(m),P=l.indexOf(x);return w>P?-1:w<P?1:0}),a+=`
10</tbody>`;else{for(t.addColumnNames&&(a+=`
11<thead>
12`+this.getHTMLRow(s,t,void 0,!0,!0)+`
13</thead>`),a+=`
14<tbody>`,u=o.length,h=0;h<u;h++)a+=`
15`+this.getHTMLRow(o[h],t,s);a+=`
16</tbody>`}return a+=`
17</table>`,d=this.adapter.apply("charset",{charset:"charset=utf-8",type:e,options:t}).charset,f=this.adapter.apply("getHTML",{data:r?"data:"+this.getContentType(e)+";"+d+","+encodeURIComponent(a):a,options:t}).data,[2,f]})})},i.prototype.getHTMLRow=function(e,t,r,a,s){var o=this;a===void 0&&(a=!1),s===void 0&&(s=!1);var l="	<tr>";t.rowClass&&(l='	<tr class="'+t.rowClass+'">'),r||(r=e);var u=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,h=s?"th":"td",d=!0;return Gn(r,function(f,p){var v=o.convertEmptyValue(f,e[f],t),m=a?v:o.convertToSpecialFormat(f,v,t);m=""+m,m=m.replace(/[\u00A0-\u9999<>\&]/gim,function(w){return"&#"+w.charCodeAt(0)+";"});var x=h;t.pivot&&d&&(x="th"),t.cellClass?l+=`
18		<`+x+' class="'+t.cellClass+'">'+m+"</"+x+">":l+=`
19		<`+x+">"+m+"</"+x+">",d=!1},function(f,p){var v=u.indexOf(f),m=u.indexOf(p);return v>m?1:v<m?-1:0}),l+=`
20	</tr>`,l},i.prototype.getJSON=function(e,t,r){return r===void 0&&(r=!0),Rt(this,void 0,void 0,function(){var a,s,o,l,u,h,d,f,p,v=this;return Tt(this,function(m){if(T(t)||(t=this.getFormatOptions("json")),s=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"json"}).dataFields,this._dynamicDataFields)a=this.data;else for(a=[],o=this.data,l=function(x,w){var P=o[w];if(typeof P=="object"){var O={};$e(P,function(j,M){T(s[j])&&(O[s[j]]=v.convertToSpecialFormat(j,M,t))}),a.push(O)}},u=o.length,h=0;h<u;h++)l(u,h);return d=JSON.stringify(a,function(x,w){return typeof w=="object"&&$e(w,function(P,O){w[P]=v.convertToSpecialFormat(P,O,t)}),w},t.indent),f=this.adapter.apply("charset",{charset:"charset=utf-8",type:e,options:t}).charset,p=this.adapter.apply("getJSON",{data:r?"data:"+this.getContentType(e)+";"+f+","+encodeURIComponent(d):d,options:t}).data,[2,p]})})},i.prototype.convertToSpecialFormat=function(e,t,r,a){if(typeof t=="number")if(this.isDateField(e))t=new Date(t);else{if(this.isDurationField(e))return this.durationFormatter.format(t,this.durationFormat);if(this.isNumberField(e)&&this.numberFormat)return this.numberFormatter.format(t,this.numberFormat)}return t instanceof Date?r.useTimestamps?t=t.getTime():r.useLocale?a||(t=t.toLocaleString()):t=this.dateFormatter.format(t,this.dateFormat):bt(t)&&this.isDateField(e)&&this.dateFormat&&(t=this.dateFormatter.format(this.dateFormatter.parse(t),this.dateFormat)),t},i.prototype.convertEmptyValue=function(e,t,r){return T(t)?t:r.emptyAs},i.prototype.download=function(e,t,r){return r===void 0&&(r=!1),Rt(this,void 0,void 0,function(){var x,w,o,a,h,d,f,p,s,x,w,o,l,u,h,d,f,p,v,m,x,w,P,O;return Tt(this,function(j){if(this.msBlobDownloadSupport()){if(x=e.split(";"),w=x.shift().replace(/data:/,""),e=decodeURIComponent(x.join(";").replace(/^[^,]*,/,"")),["image/svg+xml","application/json","text/csv"].indexOf(w)==-1)try{o=atob(e),e=o}catch{return[2,!1]}else return a=new Blob([e],{type:w}),window.navigator.msSaveBlob(a,t),[2,!0];for(h=new Array(e.length),d=0;d<e.length;++d)f=e.charCodeAt(d),h[d]=f;
20p=new Blob([new Uint8Array(h)],{type:w}),window.navigator.msSaveBlob(p,t)}else if(this.blobDownloadSupport()){if(s=document.createElement("a"),s.download=t,document.body.appendChild(s),x=e.split(";"),w=x.shift().replace(/data:/,""),e=decodeURIComponent(x.join(";").replace(/^[^,]*,/,"")),["image/svg+xml","application/json","text/csv","text/html"].indexOf(w)==-1)try{o=atob(e),e=o}catch{return[2,!1]}else return r&&(e="\uFEFF"+e),l=new Blob([e],{type:w}),u=window.URL.createObjectURL(l),s.href=u,s.download=t,s.click(),setTimeout(function(){document.body.removeChild(s),window.URL.revokeObjectURL(u)},100),[2,!0];for(h=new Array(e.length),d=0;d<e.length;++d)f=e.charCodeAt(d),h[d]=f;r&&(h=[239,187,191].concat(h)),p=new Blob([new Uint8Array(h)],{type:w}),v=window.URL.createObjectURL(p),s.href=v,s.download=t,document.body.appendChild(s),s.click(),document.body.removeChild(s),setTimeout(function(){window.URL.revokeObjectURL(v)},100)}else this.linkDownloadSupport()?(m=document.createElement("a"),m.download=t,m.href=e,document.body.appendChild(m),m.click(),document.body.removeChild(m)):this.legacyIE()?(x=e.match(/^data:(.*);[ ]*([^,]*),(.*)$/),x.length===4&&(x[2]=="base64"?x[1].match(/^image\//)&&this.showModal('<img src="'+e+'" style="float: left; max-width: 50%; max-height: 80%; margin: 0 1em 0.5em 0; border: 1px solid #eee;" /><p>'+this.language.translate('To save the image, right-click thumbnail on the left and choose "Save picture as..."')+'</p><p style="text-align: center;"><small>'+this.language.translate("(Press ESC to close this message)")+"</small></p>",this.language.translate("Image Export Complete")):(w=void 0,t.match(/\.svg$/)?w="image/svg+xml":(w="text/plain",t+=".txt"),P=document.createElement("iframe"),P.width="1px",P.height="1px",P.style.display="none",document.body.appendChild(P),O=P.contentDocument,O.open(w,"replace"),O.write(decodeURIComponent(x[3])),O.close(),O.execCommand("SaveAs",!0,t),document.body.removeChild(P)))):window.location.href=e;return[2,!0]})})},i.prototype.downloadSupport=function(){return this.linkDownloadSupport()||this.msBlobDownloadSupport()},i.prototype.linkDownloadSupport=function(){var e=V.getCache("linkDownloadSupport");if(e===!1||e===!0)return e;var t=document.createElement("a"),r=typeof t.download<"u";return V.setCache("linkDownloadSupport",r),r},i.prototype.blobDownloadSupport=function(){return T(window.Blob)},i.prototype.msBlobDownloadSupport=function(){return T(window.navigator.msSaveOrOpenBlob)},i.prototype.legacyIE=function(){var e=document.createElement("div");return e.innerHTML="<!--[if lt IE 10]><i></i><![endif]-->",e.getElementsByTagName("i").length==1},i.prototype.print=function(e,t,r){return Rt(this,void 0,void 0,function(){return Tt(this,function(a){return t.printMethod=="css"?[2,this.printViaCSS(e,t,r)]:[2,this.printViaIframe(e,t,r)]})})},i.prototype.printViaCSS=function(e,t,r){return Rt(this,void 0,void 0,function(){var a,s,o,l,u;return Tt(this,function(h){return a=document.documentElement.scrollTop||document.body.scrollTop,s=new Nt(Zd(this.container),"body > *",{display:"none",position:"fixed",visibility:"hidden",opacity:"0",clipPath:"polygon(0px 0px,0px 0px,0px 0px,0px 0px);"}),r&&document&&document.title&&(o=document.title,document.title=r),l=new Image,l.src=e,l.style.maxWidth="100%",l.style.display="block",l.style.position="relative",l.style.visibility="visible",l.style.opacity="1",l.style.clipPath="none",document.body.appendChild(l),this.setTimeout(function(){window.print()},50),u=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,u&&t.delay<1e3?t.delay=1e3:t.delay<100&&(t.delay=100),this.setTimeout(function(){document.body.removeChild(l),s.dispose(),o&&(document.title=document.title),document.documentElement.scrollTop=document.body.scrollTop=a},t.delay||500),[2,!0]})})},i.prototype.printViaIframe=function(e,t,r){return Rt(this,void 0,void 0,function(){var a,s,o;return Tt(this,function(l){return a=document.createElement("iframe"),a.style.visibility="hidden",document.body.appendChild(a),a.contentWindow.document.open(),a.contentWindow.document.close(),s=new Image,s.src=e,s.style.maxWidth="100%",s.style.height="auto",r&&(a.contentWindow.document.title=r),a.contentWindow.document.body.appendChild(s),a.load=function(){a.contentWindow.document.body.appendChild(s)},this.setTimeout(function(){try{a.contentWindow.document.execCommand("print",!1,null)||a.contentWindow.print()}catch{a.contentWindow.print()}},t.delay||50),o=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,o&&t.delay<1e3?t.delay=1e3:t.delay<100&&(t.delay=100),this.setTimeout(function(){document.body.removeChild(a)},t.delay+50||100),[2,!0]})})}
20,i.prototype.findBackgroundColor=function(e){var t=1,r=qd(e,"background-color");if((r.match(/[^,]*,[^,]*,[^,]*,[ ]?0/)||r=="transparent")&&(t=0),t==0){var a=e.parentElement;return a?this.findBackgroundColor(a):qe("#fff")}else return qe(r,t)},Object.defineProperty(i.prototype,"container",{get:function(){return this.adapter.apply("container",{container:this._container}).container},set:function(e){this._container=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sprite",{get:function(){return this.adapter.apply("sprite",{sprite:this._sprite}).sprite},set:function(e){this._sprite=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraSprites",{get:function(){return this.adapter.apply("extraSprites",{extraSprites:this._extraSprites}).extraSprites},set:function(e){this._extraSprites=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"validateSprites",{get:function(){return this.adapter.apply("validateSprites",{validateSprites:this._validateSprites}).validateSprites},set:function(e){this._validateSprites=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"data",{get:function(){return this.adapter.apply("data",{data:this._data}).data},set:function(e){this._data=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataFields",{get:function(){return this._dataFields||this.generateDataFields(),this.adapter.apply("dataFields",{dataFields:this._dataFields}).dataFields},set:function(e){this._dataFields=e,this._dynamicDataFields=!1},enumerable:!0,configurable:!0}),i.prototype.handleDataUpdated=function(){this._dynamicDataFields&&(this._dataFields=void 0);var e=this.data.length>0;this._prevHasData!=e&&(this._prevHasData=e,this.menu&&this.menu.invalidate())},Object.defineProperty(i.prototype,"dateFormatter",{get:function(){return this._dateFormatter||(this._dateFormatter=new zo,this._dateFormatter.language=this.language),this.adapter.apply("dateFormatter",{dateFormatter:this._dateFormatter}).dateFormatter},set:function(e){this._dateFormatter=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateFormat",{get:function(){return this.adapter.apply("dateFormat",{dateFormat:this._dateFormat}).dateFormat},set:function(e){this._dateFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateFields",{get:function(){return this._dateFields||(this._dateFields=new Pt),this.adapter.apply("dateFields",{dateFields:this._dateFields}).dateFields},set:function(e){this._dateFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFormatter",{get:function(){return this._numberFormatter||(this._numberFormatter=new Jd,this._numberFormatter.language=this.language),this.adapter.apply("numberFormatter",{numberFormatter:this._numberFormatter}).numberFormatter},set:function(e){this._numberFormatter=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFormat",{get:function(){return this.adapter.apply("numberFormat",{numberFormat:this._numberFormat}).numberFormat},set:function(e){this._numberFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFields",{get:function(){return this._numberFields||(this._numberFields=new Pt),this.adapter.apply("numberFields",{numberFields:this._numberFields}).numberFields},set:function(e){this._numberFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFormatter",{get:function(){return this._durationFormatter||(this._durationFormatter=new ec,this._durationFormatter.language=this.language),this.adapter.apply("durationFormatter",{durationFormatter:this._durationFormatter}).durationFormatter},set:function(e){this._durationFormatter=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFormat",{get:function(){return this.adapter.apply("durationFormat",{durationFormat:this._durationFormat}).durationFormat},set:function(e){this._durationFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFields",{get:function(){return this._durationFields||(this._durationFields=new Pt),this.adapter.apply("durationFields",{durationFields:this._durationFields}).durationFields}
20,set:function(e){this._durationFields=e},enumerable:!0,configurable:!0}),i.prototype.generateDataFields=function(){var e=this;this._dataFields={},this.data.length&&De(this.data,function(t){$e(t,function(r,a){T(e._dataFields[r])||(e._dataFields[r]=e.adapter.apply("dataFieldName",{name:r,field:r}).name)})})},i.prototype.isDateField=function(e){return this.adapter.apply("isDateField",{isDateField:this.dateFields.contains(e),field:e}).isDateField},i.prototype.isNumberField=function(e){return this.adapter.apply("isNumberField",{isNumberField:this.numberFields.contains(e),field:e}).isNumberField},i.prototype.isDurationField=function(e){return this.adapter.apply("isDurationField",{isDurationField:this.durationFields.contains(e),field:e}).isDurationField},i.prototype.getContentType=function(e){var t="";switch(e){case"png":case"gif":t="image/"+e;break;case"jpg":t="image/jpeg";break;case"svg":t="image/svg+xml";break;case"csv":t="text/csv";break;case"json":t="application/json";break;case"html":t="text/html";break;case"pdf":case"pdfdata":t="application/pdf";break;case"xlsx":t="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break}return this.adapter.apply("contentType",{contentType:t,type:e}).contentType},Object.defineProperty(i.prototype,"filePrefix",{get:function(){return this.adapter.apply("filePrefix",{filePrefix:this._filePrefix}).filePrefix},set:function(e){this._filePrefix=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"backgroundColor",{get:function(){return this.adapter.apply("backgroundColor",{backgroundColor:this._backgroundColor}).backgroundColor},set:function(e){this._backgroundColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this.adapter.apply("title",{title:this._title}).title},set:function(e){this._title=e},enumerable:!0,configurable:!0}),i.prototype.showPreloader=function(){var e=this.preloader;e&&(e.progress=.5,e.label.text="...")},i.prototype.hidePreloader=function(){var e=this.preloader;e&&(e.progress=1)},Object.defineProperty(i.prototype,"preloader",{get:function(){return this._sprite&&this._sprite.parent&&this._sprite.parent.preloader?this._sprite.parent.preloader:void 0},enumerable:!0,configurable:!0}),i.prototype.showTimeout=function(){this.showModal(this.adapter.apply("timeoutMessage",{message:this.language.translate("Export operation took longer than expected. Something might have gone wrong.")}).message)},i.prototype.hideTimeout=function(){this._timeoutTimeout&&(this.removeDispose(this._timeoutTimeout),this._timeoutTimeout=null),this.hideModal()},Object.defineProperty(i.prototype,"language",{get:function(){return this._language||(this._language=new Sa),this._language},set:function(e){this._language=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"modal",{get:function(){return this._modal||(this._modal=new py,this._modal.adapter.add("classPrefix",function(e){return e=ir.classNamePrefix+e,e})),this._modal},enumerable:!0,configurable:!0}),i.prototype.showModal=function(e,t){this.hideModal(),this.hidePreloader();var r=this.modal;r.container=this.sprite.svgContainer.SVGContainer,r.content=e,r.readerTitle=t,r.open()},i.prototype.hideModal=function(){this._modal&&this.modal.close()},i.prototype._canvg=function(){return Rt(this,void 0,void 0,function(){var e;return Tt(this,function(t){switch(t.label){case 0:return[4,Vl(()=>import("./index-d925fa1d.js"),["assets/index-d925fa1d.js","assets/bootstrap-71154e5e.js","assets/index-010e327e.js","assets/vue-vendor-bd567a24.js","assets/index-27fc820b.css","assets/discover-more-c1731183.js"])];case 1:return e=t.sent(),e.default!=null?[2,e.default]:[2,e]}})})},Object.defineProperty(i.prototype,"canvg",{get:function(){return this._canvg()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pdfmake",{get:function(){return Dh==null&&(Dh=Hb()),Dh},enumerable:!0,configurable:!0}),i.prototype._xlsx=function(){return Rt(this,void 0,void 0,function(){return Tt(this,function(e){switch(e.label){case 0:return[4,Vl(()=>import("./xlsx-3736b657.js"),[])];case 1:return[2,e.sent()]}})})},Object.defineProperty(i.prototype,"xlsx",{get:function(){return this._xlsx()},enumerable:!0,configurable:!0}),i.prototype.setFormatOptions=function(e,t){this._formatOptions.setKey(e,t)},i.prototype.getFormatOptions=function(e){return this._formatOptions.getKey(e)},Object.defineProperty(i.prototype,"formatOptions",{get:function(){return this._formatOptions},enumerable:!0,configurable:!0}),i.prototype._disablePointers=function(){T(this._spriteInteractionsEnabled)||(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled),this.sprite.interactionsEnabled=!1},i.prototype._releasePointers=function(){T(this._spriteInteractionsEnabled)&&!this._exportRunning&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled)},i.prototype.hideNonExportableSprites=function(){var e=this;if(!this._objectsAlreadyHidden){var t=this.sprite.svgContainer;t&&De(t.nonExportableSprites,function(r){!r.isHidden&&!r.isHiding&&r.visible&&e._hiddenObjects.push(r),r.hide(0)}),this._objectsAlreadyHidden=!0}},i.prototype.restoreNonExportableSprites=function(){this._objectsAlreadyHidden&&(De(this._hiddenObjects,function(e){e.show(0)}),this._hiddenObjects=[],this._objectsAlreadyHidden=!1)},i.prototype.awaitValidSprites=function(){return Rt(this,void 0,void 0,function(){var e;return Tt(this,function(t){switch(t.label){case 0:return e=[],this.validateSprites.length&&De(this.validateSprites,function(r,a){r.invalid&&e.push(new Promise(function(s,o){r.events.once("validated",function(l){s()})}))}),e.length?[4,Promise.all(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},i.prototype.processConfig=function(e){V.registeredClasses.ExportMenu=Rb,e&&(T(e.menu)&&!T(e.menu.type)&&(e.menu.type="ExportMenu"),T(e.dataFields)&&Zt(e.dataFields)&&(this.dataFields=e.dataFields,delete e.dataFields)),n.prototype.processConfig.call(this,e)},i.XLINK="http://www.w3.org/1999/xlink",i}(my),vi=["fill","fillOpacity","stroke","strokeOpacity","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin"],ot=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.properties={},e._eventDispatcher=new db(e),e._bindings={},e._isTemplate=!1,e._isPath=!1,e._inited=!1,e._ready=!1,e.isHiding=!1,e._isHidden=!1,e.isShowing=!1,e.isStandaloneInstance=!1,e._isActive=!1,e._mask=new Ni,e._positionPrecision=3,e._language=new Ni,e._exporting=new Ni,e._exportable=!0,e._bbox={x:0,y:0,width:0,height:0}
20,e.invalid=!1,e.positionInvalid=!1,e.propertyFields={},e.applyOnClones=!1,e._measuredWidthSelf=0,e._measuredHeightSelf=0,e.maxLeft=0,e.maxRight=0,e.maxTop=0,e.maxBottom=0,e.maxLeftSelf=0,e.maxRightSelf=0,e.maxTopSelf=0,e.maxBottomSelf=0,e._isDragged=!1,e._isResized=!1,e._disabled=!1,e._internalDisabled=!1,e._updateDisabled=!1,e._internalDefaultsApplied=!1,e.rollOutDelay=0,e.isBaseSprite=!1,e.shouldClone=!0,e.appeared=!1,e.ex=0,e.ey=0,e.dragWhileResize=!1,e.measureFailed=!1,e.preventShow=!1,e.cloneTooltip=!0,e.className="Sprite",e._disposers.push(e._eventDispatcher),e.uid,e.group=e.paper.addGroup("g"),e.setPropertyValue("scale",1),e.setPropertyValue("rotation",0),e.setPropertyValue("align","none"),e.setPropertyValue("valign","none"),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("visible",!0),e.setPropertyValue("tooltipPosition","fixed"),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e.setPropertyValue("tooltipX",pe(50)),e.setPropertyValue("tooltipX",pe(50)),e.setPropertyValue("marginTop",0),e.setPropertyValue("marginBottom",0),e.setPropertyValue("marginLeft",0),e.setPropertyValue("marginRight",0),e.setPropertyValue("dx",0),e.setPropertyValue("dy",0),e.setPropertyValue("paddingTop",0),e.setPropertyValue("paddingBottom",0),e.setPropertyValue("paddingRight",0),e.setPropertyValue("paddingLeft",0),e.setPropertyValue("togglable",!1),e.setPropertyValue("hidden",!1),e.setPropertyValue("urlTarget","_self"),e.setPropertyValue("alwaysShowTooltip",!1),e.setPropertyValue("showTooltipOn","hover"),e._prevMeasuredWidth=0,e._prevMeasuredHeight=0,e._measuredWidth=0,e._measuredHeight=0,e._isMeasured=!0,e.invalidate(),e.applyTheme(),e._disposers.push(e.events),e._disposers.push(e.group),e._disposers.push(e._mask),e._disposers.push(e._language),e._disposers.push(e._exporting),e._disposers.push(new Lt(function(){$e(e._bindings,function(t,r){r.dispose()})})),e.setPropertyValue("interactionsEnabled",!0),e}return Object.defineProperty(i.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new Lr(this)),this._adapterO},enumerable:!0,configurable:!0}),i.prototype.applyTheme=function(){n.prototype.applyTheme.call(this),ir.autoSetClassName&&this.setClassName()},i.prototype.getCurrentThemes=function(){var e=this._themes;if(e)return e;var t=this._parent;return t?t.getCurrentThemes():V.themes},i.prototype.applyInternalDefaults=function(){this._internalDefaultsApplied=!0},i.prototype.invalidate=function(){this.disabled||this._isTemplate||this.__disabled||this.invalid||(this.invalid=!0,V.addToInvalidSprites(this),yt.requestFrame())},i.prototype.validate=function(){this.dispatchImmediately("beforevalidated"),this._internalDefaultsApplied||this.applyInternalDefaults(),this.beforeDraw(),this.draw(),this.invalid=!1,V.removeFromInvalidSprites(this),this.afterDraw()},i.prototype.invalidatePosition=function(){this.disabled||this._isTemplate||this.positionInvalid||(this.positionInvalid=!0,V.addToInvalidPositions(this),yt.requestFrame())},i.prototype.validatePosition=function(){var e=this.pixelX,t=this.pixelY,r=this.dx,a=this.dy,s=e+r,o=t+a;this._updateDisabled&&(this._internalDisabled?this.group.attr({display:"none"}):this.disabled||this.removeSVGAttribute("display"),this._updateDisabled=!1);var l=this.measure(),u=this.group.transformString;this.group.moveTo({x:s,y:o}),this.group.rotation=this.rotation,this.nonScaling?this.group.scale=this.scale/this.globalScale:this.group.scale=this.scale,(u!=this.group.transformString||l)&&(u==null?this.dispatch("transformed"):this.dispatchImmediately("transformed"),this.dispatch("positionchanged"),(this.showTooltipOn=="hit"||this.showTooltipOn=="always")&&this.updateTooltipPosition()),e+r==s&&t+a==o&&(V.removeFromInvalidPositions(this),this.positionInvalid=!1);var h=this._maskRectangle;h&&this._clipElement.moveTo({x:h.x-e,y:h.y-t})},i.prototype.beforeDraw=function(){},i.prototype.draw=function(){},i.prototype.afterDraw=function(){var e,t;if((this.isMeasured||this.horizontalCenter!=="none"||this.verticalCenter!=="none")&&this.measureElement(),this._inited)this.dispatch("validated");else{if(this._adapterO)try{for(var r=Fl(this._adapterO.keys()),a=r.next();!a.done;a=r.next()){var s=a.value;switch(s){case"mask":case"fill":case"opacity":case"fillOpacity":case"stroke":case"strokeOpacity":case"strokeWidth":case"shapeRendering":case"strokeDasharray":case"strokeDashoffset":case"strokeLinecap":case"strokeLinejoin":case"textDecoration":case"fontSize":case"fontFamily":case"fontWeight":this[s]=this[s];break}}}catch(o){e={error:o}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this.applyFilters(),this.visible=this.visible,this.interactionsEnabled=this.getPropertyValue("interactionsEnabled"),this._inited=!0,this.showOnInit||(this.appeared=!0),this.hidden&&this.hide(0),this.applyMask(),this.dispatch("validated"),this.dispatch("inited"),this.dispatchReady()}this.showTooltipOn=="always"&&(this.visible&&!this.disabled&&!this.__disabled?this.showTooltip():this.hideTooltip(0))},i.prototype.dispatchReady=function(){this.isReady()||(this._ready=!0,this.dispatch("ready"))},i.prototype.reinit=function(){this._inited=!1,this.setState(this.defaultState),this.invalidate()},i.prototype.handleGlobalScale=function(){this.dispatch("globalscalechanged"),this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth),this.nonScaling&&this.validatePosition(),this.updateFilterScale()},i.prototype.updateFilterScale=function(){var e=this;ue(this.filters.iterator(),function(t){t.scale=e.globalScale})},i.prototype.removeFromInvalids=function(){V.removeFromInvalidSprites(this),V.removeFromInvalidPositions(this)},i.prototype.copyFrom=function(e){var t=this;n.prototype.copyFrom.call(this,e),this.isMeasured=e.isMeasured,this.states.copyFrom(e.states),e.filters.length>0&&e.filters.each(function(r){t.filters.push(r.clone())}),e._adapterO&&this.adapter.copyFrom(e._adapterO),e._interaction&&this.interactions.copyFrom(e.interactions),e._plugins&&this.plugins.copyFrom(e.plugins),this.configField=e.configField,this.applyOnClones=e.applyOnClones,this.disabled=e.disabled,this.virtualParent=e.virtualParent,this.exportable=e.exp
20ortable,e._tooltip&&(this._tooltip?this._tooltip.copyFrom(e.tooltip):e.cloneTooltip?this.tooltip=e.tooltip.clone():this._tooltip=e.tooltip),this._showSystemTooltip=e.showSystemTooltip,na(e.propertyFields,this.propertyFields),na(e.properties,this),e.fillModifier&&(this.fillModifier=e.fillModifier.clone()),e.strokeModifier&&(this.strokeModifier=e.strokeModifier.clone()),e.focusFilter&&(this.focusFilter=e.focusFilter.clone())},i.prototype.dispose=function(){if(!this.isDisposed()){if(this.showTooltipOn=="always"&&this.tooltip&&this.tooltip.hide(),this.dispatchImmediately("beforedisposed"),this.isBaseSprite){if(this.htmlContainer)for(;this.htmlContainer.childNodes.length>0;)this.htmlContainer.removeChild(this.htmlContainer.firstChild);this.isBaseSprite=!1}if(n.prototype.dispose.call(this),this._adapterO&&this._adapterO.clear(),this.applyOnClones&&this._clones)for(var e=this._clones.length-1;e>=0;e--){var t=this._clones.getIndex(e);t.dispose()}this._svgContainer&&this._svgContainer.dispose(),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0),this._urlDisposer&&this._urlDisposer.dispose(),this.removeFromInvalids(),this.element&&this.element.dispose(),this.group&&this.group.dispose(),this._numberFormatter&&this._numberFormatter.dispose(),this._focusFilter&&this._focusFilter.dispose();var r=this.stroke;r&&!(r instanceof wt)&&r.dispose&&(this.clonedFrom&&this.clonedFrom.stroke==r||r.dispose());var a=this.fill;if(a&&!(a instanceof wt)&&a.dispose&&(this.clonedFrom&&this.clonedFrom.fill==a||a.dispose()),T(this.id)&&this.map.removeKey(this.id),this.parent=void 0,this._filters)for(;this._filters.length>0;){var s=this._filters.getIndex(0);s.dispose(),this._filters.removeValue(s)}this._alwaysShowDisposers=void 0}},Object.defineProperty(i.prototype,"isTemplate",{get:function(){return this._isTemplate},set:function(e){e=ti(e),this._isTemplate!=e&&(this._isTemplate=e,this instanceof Ee&&ue(this.children.iterator(),function(t){t.isTemplate=e}),e?(this.parent=this._parent,this.removeFromInvalids()):this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showSystemTooltip",{get:function(){return T(this._showSystemTooltip)?this._showSystemTooltip:this.virtualParent?this.virtualParent.showSystemTooltip:this._parent?this._parent.showSystemTooltip:!1},set:function(e){e=ti(e),this._showSystemTooltip!=e&&(this._showSystemTooltip=e,this.applyAccessibility())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"topParent",{get:function(){if(this._topParent)return this._topParent;if(this._parent)return this._parent.topParent},set:function(e){this._topParent=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"parent",{get:function(){return this._parent},set:function(e){if(!this._isTemplate){this.paper;var t=this._parent;t!=e&&(t&&t.children.removeValue(this),this._parent=e,e?(this.topParent=e.topParent,e.isTemplate&&(this.isTemplate=!0),this.baseId=e.baseId,e.children.push(this),this._tooltip&&!this._tooltipContainer&&(this._tooltip.parent=e.tooltipContainer),this._dataItem||(this.dataItem=e.dataItem),this.handleAlwaysShowTooltip(),this.dataItem&&this.applyAccessibility(),this.dispatchImmediately("parentset")):this.topParent=void 0)}},enumerable:!0,configurable:!0}),i.prototype.handleAlwaysShow=function(){this.showTooltip()},i.prototype.handleAlwaysShowTooltip=function(){var e=this,t=this._alwaysShowDisposers;if(t&&De(t,function(a){a.dispose()}),this._alwaysShowDisposers=[],this.showTooltipOn=="always")for(;e!=null;){var r=e.events.on("visibilitychanged",this.handleAlwaysShow,this,!1);this.addDisposer(r),this._alwaysShowDisposers.push(r),e=e.parent}},Object.defineProperty(i.prototype,"virtualParent",{get:function(){return this._virtualParent},set:function(e){this._virtualParent=e,this.dataItem&&this.applyAccessibility()},enumerable:!0,configurable:!0}),i.prototype.appendDefs=function(){this.filterElement&&this.paper.appendDef(this.filterElement);var e=this.fill;e&&e.element&&this.paper.appendDef(e.element);var t=this.stroke;if(t&&t.element&&this.paper.appendDef(t.element),this.fillModifier&&this.fill instanceof wt){var r=this.fillModifier.modify(this.fill);r&&r.element&&this.paper.appendDef(r.element)}if(this.strokeModifier&&this.stroke instanceof wt){var a=this.strokeModifier.modify(this.stroke);a&&a.element&&this.paper.appendDef(a.element)}this._clipPath&&this.paper.appendDef(this._clipPath),this._exportable===!1&&(this.exportable=!1)},Object.defineProperty(i.prototype,"map",{get:function(){var e=this.topParent;return e?e.map:(this._map||(this._map=new Gt),this._map)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"delayedMap",{get:function(){var e=this.topParent;return e?e.delayedMap:(this._delayedMap||(this._delayedMap=new Gt),this._delayedMap)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this._id},set:function(e){if(this._id!=e){if(this._id=e,this.map.hasKey(e))throw Error("Duplicate id ("+e+") used on multiple objects.");this.map.setKey(e,this),ir.autoSetClassName&&this.setClassName()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dom",{get:function(){return this.group.node},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paper",{get:function(){if(this._paper)return this._paper;var e=this._parent;return e?e.paper:Bo()},set:function(e){this.setPaper(e)},enumerable:!0,configurable:!0}),i.prototype.setPaper=function(e){var t=this._paper;return t!=e?(this._paper=e,this.appendDefs(),!0):!1},Object.defineProperty(i.prototype,"htmlContainer",{get:function(){if(this._htmlContainer)return this._htmlContainer;var e=this._parent;if(e)return e.htmlContainer},set:function(e){this._htmlContainer=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"titleElement",{get:function(){return this._titleElement||(this._titleElement=this.paper.add("title"),this.group.add(this._titleElement)),this._titleElement},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"descriptionElement",{get:function(){return this._descriptionElement||(this._descriptionElement=this.paper.add("desc"),this.group.add(this._descriptionElement)),this._descriptionElement},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"filters",{get:function(){return this._filters||(this._filters=new Pt,this._disposers.push(this._filters.events.onAll(this.applyFilters,this)),this._disposers.push(new zt(this._filters))),this._filters},enumerable:!0,configurable:!0}),i.prototype.setSVGAttributes=function(){this.fill=this.fill,this.opacity=this.opacity,this.fillOpacity=this.fillOpacity,this.stroke=this.stroke,this.strokeOpacity=this.strokeOpacity,this.shapeRendering=this.shapeRendering,this.strokeDasharray=this.strokeDasharray,this.strokeDashoffset=this.strokeDashoffset,this.strokeLinecap=this.strokeLinecap,this.strokeLinejoin=this.strokeLinejoin,this.focusable=this.focusable,this.tabindex=this.tabindex,this.role=this.role},i.prototype.setSVGAttribute=function(e){this.group.attr(e)},i.prototype.removeSVGAttribute=function(e){this.group.removeAttr(e)},i.prototype.setClassName=function(){var e=this.className,t=ir.classNamePrefix;this.element&&this.element.addClass(t+e),this.group.addClass(t+e+"-group"),T(this.id
20)&&this.group.addClass(t+this.id),this.userClassName&&this.group.addClass(this.userClassName)},i.prototype.uidAttr=function(){return this.setSVGAttribute({id:this.uid}),this.uid},i.prototype.updateClipPath=function(){var e=this._clipElement;e&&e.moveTo({x:this.mask.pixelX,y:this.mask.pixelY})},i.prototype.createClipPath=function(){if(!this._clipPath){this._clipPath=this.paper.addGroup("clipPath"),this.paper.appendDef(this._clipPath),this._disposers.push(this._clipPath);var e=V.getUniqueId();this._clipPath.attr({id:e}),this.group.attr({"clip-path":'url("'+co()+e+'")'})}},i.prototype.applyMask=function(){var e=this.mask;if(this._clipPath&&e)if(e instanceof Ee){this._clipElement.attr({width:st(0,e.pixelWidth),height:st(0,e.pixelHeight)});var t=Tr({x:e.pixelX,y:e.pixelY},e.parent,this);this._clipPath.x=t.x,this._clipPath.y=t.y}else e.element&&e.element!=this._clipElement&&(this._clipElement=e.element,this._clipPath.add(this._clipElement)),this._clipPath.scale=e.scale,this._clipPath.x=e.pixelX,this._clipPath.y=e.pixelY,this._clipPath.rotation=e.rotation},i.prototype.applyFilters=function(){var e=this;if(this._filters&&this._filters.length>0){var t=100,r=100;this.filterElement?this.filterElement.removeChildNodes():(this.filterElement=this.paper.addGroup("filter"),this._disposers.push(this.filterElement)),this.paper.appendDef(this.filterElement);var a="filter-"+this.uid;this.filterElement.attr({id:a}),ue(this.filters.iterator(),function(l){l.sprite=e,l.paper=e.paper,e.filterElement.attr({filterUnits:l.filterUnits}),l.appendPrimitives(e.filterElement),l.width>t&&(t=l.width),l.height>r&&(r=l.height),l.scale=e.globalScale});var s=t+"%",o=r+"%";this.filterElement.attr({width:s,height:o,x:-(t-100)/2+"%",y:-(r-100)/2+"%"}),this.group.attr({filter:'url("'+co()+a+'")'})}else this.filterElement&&(this.group.removeAttr("filter"),this.filterElement.removeChildNodes())},i.prototype.removeClipPath=function(){this._clipPath&&(this.removeDispose(this._clipPath),this._clipPath=void 0)},i.prototype.setElement=function(e){this.element=e,this.setSVGAttributes(),this.applyAccessibility()},Object.defineProperty(i.prototype,"element",{get:function(){return this._element},set:function(e){this.removeElement(),this._element=e,this.group.add(e),e.node instanceof SVGPathElement&&(this._isPath=!0),this.invalid||this.validate(),ir.autoSetClassName&&this.setClassName()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"svgContainer",{get:function(){if(this._svgContainer)return this._svgContainer;if(this._parent)return this._parent.svgContainer},set:function(e){this._svgContainer=e},enumerable:!0,configurable:!0}),i.prototype.measureElement=function(){if(this.element)if(this.definedBBox)this._bbox=this.definedBBox;else{var e=this.element.getBBox();this._bbox={x:e.x,y:e.y,width:e.width,height:e.height}}},i.prototype.updateCenter=function(){if(this.element){var e=this.element.transformString,t=this.bbox,r=0,a=0,s=t.x,o=t.y,l=t.width,u=t.height,h=this.pixelPaddingLeft,d=this.pixelPaddingRight,f=this.pixelPaddingTop,p=this.pixelPaddingBottom,v=st(l+h+d,this.pixelWidth),m=st(u+f+p,this.pixelHeight),x=t.x,w=t.x+v,P=t.y,O=t.y+m,j=this.horizontalCenter,M=this.verticalCenter;switch(j){case"none":r=s+h;break;case"left":r=h;break;case"middle":r=h-(l+d+h)/2;break;case"right":r=-d-l;break}switch(M){case"none":a=o+f;break;case"top":a=f;break;case"middle":a=f-(u+p+f)/2;break;case"bottom":a=-p-u;break}this._measuredHeight=m,this._measuredWidth=v;var F=de(r-s,this._positionPrecision,!0),g=de(a-o,this._positionPrecision,!0);this.ex=F-h,this.ey=g-f,this.maxLeft=x+F-h,this.maxRight=w+F-h,this.maxTop=P+g-f,this.maxBottom=O+g-f,this.pixelPerfect&&ir.pixelPerfectPrecision==0&&(F-=.5,g-=.5),this.element.moveTo({x:F,y:g}),e!=this.element.transformString&&this.dispatchImmediately("transformed")}},i.prototype.measure=function(){this.updateCenter();var e=this._measuredWidth,t=this._measuredHeight,r=this.maxLeft,a=this.maxRight,s=this.maxTop,o=this.maxBottom;this._measuredWidthSelf=e,this._measuredHeightSelf=t;var l=this._positionPrecision;if(this.maxLeftSelf=this.maxLeft,this.maxRightSelf=this.maxRight,this.maxTopSelf=this.maxTop,this.maxBottomSelf=this.maxBottom,this.rotation!==0||this.scale!==1||this.nonScaling){this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth);var u=this.paper.svg,h=u.createSVGMatrix(),d=this.rotation,f=this.scale;this.nonScaling&&(f=this.scale/this.globalScale),h.a=xe(d)*f,h.c=-be(d)*f,h.e=0,h.b=be(d)*f,h.d=xe(d)*f,h.f=0;var p=u.createSVGPoint();p.x=r,p.y=s;var v=u.createSVGPoint();v.x=a,v.y=s;var m=u.createSVGPoint();m.x=a,m.y=o;var x=u.createSVGPoint();x.x=r,x.y=o;var w=p.matrixTransform(h),P=v.matrixTransform(h),O=m.matrixTransform(h),j=x.matrixTransform(h);r=Math.min(w.x,P.x,O.x,j.x),a=Math.max(w.x,P.x,O.x,j.x),s=Math.min(w.y,P.y,O.y,j.y),o=Math.max(w.y,P.y,O.y,j.y),e=a-r,t=o-s,this.maxLeft=de(r,l,!0),this.maxRight=de(a,l,!0),this.maxTop=de(s,l,!0),this.maxBottom=de(o,l,!0)}return this._measuredWidth=de(e,l,!0),this._measuredHeight=de(t,l,!0),this._measuredWidth!=this._prevMeasuredWidth||this._measuredHeight!=this._prevMeasuredHeight?(this._prevMeasuredHeight=this._measuredHeight,this._prevMeasuredWidth=this._measuredWidth,this.dispatch("sizechanged"),(this.isHover||this.showTooltipOn=="hit"||this.showTooltipOn=="always")&&this.tooltip&&this.tooltip.visible&&(T(this.tooltipText)||T(this.tooltipHTML))&&this.updateTooltipPosition(),!0):!1},i.prototype.insertBefore=function(e){var t=this._parent;if(t){var r=t.children.indexOf(e);r!==-1&&(t.children.moveValue(this,r),t.sortChildren())}return this},i.prototype.insertAfter=function(e){var t=this._parent;if(t){var r=t.children.indexOf(e);r!==-1&&(t.children.moveValue(this,r+1),t.sortChildren())}return this},i.prototype.removeElement=function(){this._element&&(this.removeDispose(this._element),this._element=void 0)},i.prototype.getRelativeX=function(e){return e instanceof mt?e.value:this._parent?e/this._parent.innerWidth:0},i.prototype.getRelativeY=function(e){return e instanceof mt?e.value:this._parent?e/this._parent.innerHe
20ight:0},i.prototype.getPixelX=function(e){var t=0;if(C(e))t=e;else if(e instanceof mt){var r=e.value;this._parent&&(t=de(this._parent.innerWidth*r,this._positionPrecision,!0))}return t},i.prototype.getPixelY=function(e){var t=0;if(C(e))t=e;else if(e instanceof mt){var r=e.value;this._parent&&(t=de(this._parent.innerHeight*r,this._positionPrecision,!0))}return t},i.prototype.moveTo=function(e,t,r,a){this.isDragged&&!a||(e&&(C(e.x)&&this.setPropertyValue("x",de(e.x,this._positionPrecision,!0)),C(e.y)&&this.setPropertyValue("y",de(e.y,this._positionPrecision,!0))),C(t)&&(this.rotation=t),C(r)&&(this.scale=r),this.invalidatePosition())},Object.defineProperty(i.prototype,"mask",{get:function(){return this._adapterO?this._adapterO.apply("mask",this._mask.get()):this._mask.get()},set:function(e){var t=this;this._mask.get()!==e&&(e?(this.createClipPath(),e instanceof Ee?this._clipElement=this.paper.add("rect"):(e.isMeasured=!1,e.element&&(this._clipElement=e.element)),this._clipElement&&this._clipPath.add(this._clipElement),this._mask.set(e,new di([e.events.on("maxsizechanged",function(){t.inited&&t.applyMask()},void 0,!1),e.events.on("validated",this.applyMask,this,!1),e.events.on("positionchanged",this.applyMask,this,!1)])),this.applyMask()):(this._mask.reset(),this.group.removeAttr("clip-path"),this.removeClipPath()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maskRectangle",{get:function(){return this._maskRectangle},set:function(e){e?(this.createClipPath(),this._clipElement||(this._clipElement=this.paper.add("rect"),this._clipPath.add(this._clipElement)),this._clipElement.attr({width:e.width,height:e.height})):(this.removeClipPath(),this._clipElement=void 0),this._maskRectangle=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isMeasured",{get:function(){return this._isMeasured},set:function(e){e=ti(e),e||(this._measuredWidth=0,this._measuredHeight=0),this._isMeasured!=e&&(this._isMeasured=e,this.invalidatePosition())},enumerable:!0,configurable:!0}),i.prototype.hitTest=function(e){this.invalid&&this.validate(),e.invalid&&e.validate();var t=this.pixelX+this.maxLeft,r=this.pixelY+this.maxTop,a=t+this.maxRight,s=r+this.maxBottom,o=e.pixelX+e.maxLeft,l=e.pixelY+e.maxTop,u=o+e.maxRight,h=l+e.maxBottom;return!(o>a||u<t||l>s||h<r)},Object.defineProperty(i.prototype,"inited",{get:function(){return this._inited},enumerable:!0,configurable:!0}),i.prototype.isReady=function(){return this._ready},Object.defineProperty(i.prototype,"states",{get:function(){if(!this._states){var e=new Xl;this._states=new To(e),this._disposers.push(this._states.events.on("insertKey",this.processState,this,!1)),this._disposers.push(this._states.events.on("setKey",this.processState,this,!1)),this._disposers.push(new Qa(this._states)),this._disposers.push(e)}return this._states},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hiddenState",{get:function(){if(!this.states.getKey("hidden")){var e=this.states.create("hidden");e.properties.opacity=0,e.properties.visible=!1}return this.states.getKey("hidden")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultState",{get:function(){if(!this.states.getKey("default")){var e=this.states.create("default");e.properties.opacity=1}return this.states.getKey("default")},enumerable:!0,configurable:!0}),i.prototype.processState=function(e){var t=e.newValue;if(t.sprite=this,t.name=e.key,(this.states.hasKey("hover")||this.showTooltipOn=="hover"&&(T(this.tooltipHTML)||T(this.tooltipText)))&&(this.hoverable=!0),(this.states.hasKey("down")||this.showTooltipOn=="hover"&&(T(this.tooltipHTML)||T(this.tooltipText)))&&(this.clickable=!0),this.states.hasKey("focus")&&(this.focusable=!0),this.applyOnClones)for(var r=this.clones.values,a=r.length,s=0;s<a;++s){var o=r[s];o.isDisposed()||o.states.setKey(t.name,t)}},Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Rs(this._animations))),this._animations},enumerable:!0,configurable:!0}),i.prototype.getSvgPoint=function(e){try{var t=this.htmlContainer.getBoundingClientRect();return{x:e.x-t.left,y:e.y-t.top}}catch{return e}},i.prototype.animate=function(e,t,r){return new cn(this,e,t,r).start()},i.prototype.setState=function(e,t,r){var a;if(e instanceof Xl)this.states.setKey(e.name,e),a=e;else if(a=this.states.getKey(e),!a)return;if(a.name=="hover"){if(this.isHidden)return;this.isHover=!0}return a.name=="hidden"?this.isHiding=!0:this.visible||this.setVisibility(a.properties.visible||this.defaultState.properties.visible),a.name=="active"&&(this.isActive=!0),C(t)||(t=a.transitionDuration),T(r)||(r=a.transitionEasing),this.transitTo(a,t,r)},i.prototype.applyCurrentState=function(e){var t=this.setState(this.defaultState,e);return this.isHover&&(t=this.setState("hover",e)),this.isDown&&this.interactions.downPointers.length&&(t=this.setState("down",e)),this.isFocused=this.isFocused,this.isActive&&(t=this.setState("active",e),this.isHover&&this.states.hasKey("hoverActive")&&(t=this.setState("hoverActive",e))),t},i.prototype.transitTo=function(e,t,r){var a=this,s=[],o=e.allValues,l;if($e(o,function(h,d){var f=a[h];if(d!=f&&a.defaultState.properties[h]==null&&(a.defaultState.properties[h]=f),d!="__unset"){var p={from:f,to:d,property:h};s.push(p)}}),s.length>0&&(l=this.animate(s,t,r),l&&!l.isFinished()?this._disposers.push(l.events.on("animationended",function(){a.dispatchImmediately("transitionended")})):this.dispatchImmediately("transitionended")),e.filters.length>0){var u=[];ue(e.filters.iterator(),function(h){var d=h.clone();u.push(d);var f=[];ue(a.filters.iterator(),function(p){p.className==d.className&&(zd(a.defaultState.filters.iterator(),function(v){return v.className===d.className})||a.defaultState.filters.push(p),$e(d.properties,function(v,m){var x=p.properties[v];x!=m&&f.push({property:v,from:x,to:m})}))}),d.animate(f,t,r)}),this.filters.clear(),this.filters.pushAll(u)}return l},i.prototype.isInTransition=function(){return this.animations.length>0},Object.defineProperty(i.prototype,"isHover",{get:function(){return this.isInteractive()?this.interactions.isHover:!1},set:function(e){e=ti(e),e!==this.isHover&&this.isInteractive()&&(this.interactions.isHover=e,e?this.handleOver():(this.interactions.isRealHover=!1,this.handleOut()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDragged",{get:function(){return this._isDragged},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isResized",{get:function(){return this._isResized},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDown",{get:function(){return this.isInteractive()?this.interactions.isDown:!1},set:function(e){e=ti(e),this.isInteractive()&&this.isDown!=e&&(this.interactions.isDown=e,e?this.handleDown():this.handleUp())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isFocused",{get:function(){return this.isInteractive()?this.interactions.isFocused:!1},set:function(e){e=ti(e),this.focusable&&this.isFocused!=e&&this.isInteractive()&&(this.interactions.isFocused=e,e===!0?this.handleFocus():this.handleBlur())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isActive",{get:function(){return this._isActive},set:function(e){this.setActive(e)},enumerable:!0,configurable:!0}),i.prototype.setActive=function(e){e=ti(e),this._isActive!==e&&(this._isActive=e,e&&this.states.hasKey("active")?(this.setState("active"),this.isHover&&this.states.hasKey("hoverActive")&&this.setState("hoverActive")):this.applyCurrentState(),this.dispatchImmediately("toggled"))},Object.defineProperty(i.prototype,"disabled",{get:function(){var e=this.getPropertyValue("disabled");return T(e)?e:this.virtualParent?this.virtualParent.disabled:this._parent?this._parent.disabled:!1},set:function(e){this.setDisabled(e)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(e){e=ti(e);var t=this.getPropertyValue("disabled");if(t!=e){if(this.setPropertyValue("disabled",e,!0),e)this.parent=this._parent,this.removeFromInvalids(),this.group.attr({display:"none"}),this.dispatch("disabled");else{if(this._parent){var r=this._parent.element;r.hasChild(this.group)||r.add(this.group)}this instanceof Ee?(this.deepInvalidate(),this._background&&this._background.invalidate()):this.invalidate(),this.__disabled||this.removeSVGAttribute("display"),this.dispatch("enabled")}return this.dispatch("transformed"),yt.requestFrame(),!0}return!1},Object.defineProperty(i.prototype,"__disabled",{get:function(){return this._internalDisabled},set:function(e){this._internalDisabled!=e&&(this._internalDisabled=e,this._updateDisabled=!0,this.invalidatePosition(),e||this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFormatter",{get:function(){return this._numberFormatter?this._numberFormatter:this.virtualParent?this.virtualParent.
20numberFormatter:this._parent?this._parent.numberFormatter:(this._numberFormatter=new Jd,this._numberFormatter.language=this.language,this.numberFormatter)},set:function(e){this._numberFormatter=e,this._numberFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.virtualParent?this.virtualParent.dateFormatter:this._parent?this._parent.dateFormatter:(this._dateFormatter=new zo,this._dateFormatter.language=this.language,this.dateFormatter)},set:function(e){this._dateFormatter=e,this._dateFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFormatter",{get:function(){return this._durationFormatter?this._durationFormatter:this.virtualParent?this.virtualParent.durationFormatter:this._parent?this._parent.durationFormatter:(this._durationFormatter=new ec,this._durationFormatter.language=this.language,this.durationFormatter)},set:function(e){this._durationFormatter=e,this._durationFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"language",{get:function(){var e=this._language.get();return e||(this.virtualParent?this.virtualParent.language:this._parent?this._parent.language:(e=new Sa,this.language=e,e))},set:function(e){var t=this;this._language.get()!==e&&this._language.set(e,e.events.on("localechanged",function(r){if(t._numberFormatter&&(t._numberFormatter.language=t.language),t._dateFormatter&&(t._dateFormatter.language=t.language),t._durationFormatter&&(t._durationFormatter.language=t.language),t._exporting.get()){var a=t._exporting.get();a.numberFormatter.language=t.language,a.dateFormatter.language=t.language,a.durationFormatter.language=t.language,a.language=t.language}t instanceof Ee&&t.deepInvalidate()}))},enumerable:!0,configurable:!0}),i.prototype.populateString=function(e,t){if(T(e)){e=Nd(e),e=Qn().escape(e);var r=e.match(/\{([^}]+)\}/g),a=void 0;if(r)for(a=0;a<r.length;a++){var s=r[a].replace(/\{([^}]+)\}/,"$1"),o=this.getTagValue(s,"",t);T(o)||(o=""),e=e.split(r[a]).join(o)}e=Qn().unescape(e)}else e="";return this._adapterO?this._adapterO.apply("populateString",e):e},i.prototype.getTagValue=function(e,t,r){var a;T(r)||(r=this.dataItem);for(var s=[],o=/([^.]+)\(([^)]*)\)|([^.]+)/g,l;l=o.exec(e),l!==null;)if(l[3])s.push({prop:l[3]});else{var u=[];
20if(Jp(l[2])!="")for(var h=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g,d=void 0;d=h.exec(l[2]),d!==null;)u.push(d[1]||d[2]||d[3]);s.push({method:l[1],params:u})}if(r){a=this.getTagValueFromObject(s,r.values),(!T(a)||Zt(a))&&(a=this.getTagValueFromObject(s,r));var f=r.dataContext;!T(a)&&f&&(a=this.getTagValueFromObject(s,r.dataContext),T(a)||(a=this.getTagValueFromObject([{prop:e}],f)),!T(a)&&f.dataContext&&(a=this.getTagValueFromObject(s,f.dataContext))),!T(a)&&r.component&&r.component.dataItem!==r&&(a=r.component.getTagValue(e,t))}return T(a)||(a=this.getTagValueFromObject(s,this.populateStringFrom||this)),!T(a)&&this._parent&&(a=this._parent.getTagValue(e,t)),a},i.prototype.getTagValueFromObject=function(e,t,r){for(var a=t,s=!1,o=0,l=e.length;o<l;o++){var u=e[o];if(u.prop){if(a=a[u.prop],!T(a))return}else switch(u.method){case"formatNumber":var h=nd(a);T(h)&&(a=this.numberFormatter.format(h,r||u.params[0]||void 0),s=!0);break;case"formatDate":var d=void 0;if(bt(a)?d=this.dateFormatter.parse(a):d=ty(a),!Do(d)||ar(d.getTime()))return;T(d)&&(a=this.dateFormatter.format(d,r||u.params[0]||void 0),s=!0);break;case"formatDuration":var f=nd(a);T(f)&&(a=this.durationFormatter.format(f,r||u.params[0]||void 0,u.params[1]||void 0),s=!0);break;case"urlEncode":case"encodeURIComponent":a=encodeURIComponent(a);break;default:a[u.method]&&a[u.method].apply(this,u.params);break}}if(!s){var p=[{method:"",params:r}];if(!T(r))C(a)?(p[0].method="formatNumber",p[0].params=""):Do(a)&&(p[0].method="formatDate",p[0].params="");else{var v=k0(r);v===wl?p[0].method="formatNumber":v===Pl?p[0].method="formatDate":v===Jh&&(p[0].method="formatDuration")}p[0].method&&(a=this.getTagValueFromObject(p,a))}return a},Object.defineProperty(i.prototype,"dataItem",{get:function(){if(!this._dataItem){if(this.virtualParent)return this.virtualParent.dataItem;if(this._parent)return this._parent.dataItem}return this._dataItem},set:function(e){this.setDataItem(e)},enumerable:!0,configurable:!0}),i.prototype.setDataItem=function(e){var t=this;if(this._dataItem!=e){if(this._dataItem=e,e){if(this.configField){var r=e.dataContext;r&&(this.config=r[this.configField],!this.config&&r.dataContext&&(this.config=r.dataContext[this.configField]))}var a=e.dataContext;if(a){var s=a.dataContext;$e(this.propertyFields,function(o,l){if(T(a[l])){var u=t;u[o]=a[l]}else if(s){var h=s[l];if(T(h)){var u=t;u[o]=h}}})}}this.invalidate()}},i.prototype.getPropertyValue=function(e){var t=this.properties[e];return this._isTemplate||(this._adapterO&&(t=this._adapterO.apply(e,t)),t=Qh.applyAll(this,e,t)),t},i.prototype.setColorProperty=function(e,t,r){var a=this.properties[e];return t instanceof wt&&a instanceof wt&&t.toString()==a.toString()?!1:this.setPropertyValue(e,t,r)},i.prototype.setPercentProperty=function(e,t,r,a,s,o){if(t=Rm(t),C(t))return C(s)&&(t=de(t,s,o)),this.setPropertyValue(e,t,r,a);var l=this.properties[e];return t instanceof mt&&l instanceof mt&&t.value==l.value?!1:this.setPropertyValue(e,t,r,a)},i.prototype.setPropertyValue=function(e,t,r,a){if(this.properties[e]!==t&&!this.isDisposed()){if(this.properties[e]=t,this.events.isEnabled("propertychanged")){var s={type:"propertychanged",target:this,property:e};this.events.dispatchImmediately("propertychanged",s)}if(r&&this.invalidate(),a&&this.invalidatePosition(),this.applyOnClones)for(var o=this.clones.values,l=o.length,u=0;u<l;++u){var h=o[u];h.isDisposed()||(h[e]=t)}return!0}return!1},i.prototype.bind=function(e,t,r,a){var s=this;r===void 0&&(r=e),T(this._bindings[e])&&this._bindings[e].dispose(),this[e]=t[r],this._bindings[e]=t.events.on("propertychanged",function(o){if(o.property===r){var l=t[r];a&&(l=a(l)),s[e]=l}})},i.prototype.observe=function(e,t,r,a){var s=this;return new di(Wo(Hp(e),function(o){return s.events.on("propertychanged",function(l){l.property===o&&t.call(r,l)},r,a)}))},i.prototype.applyAccessibility=function(){var e=this.readerTitle,t=this.readerDescription,r=this.role,a=this.readerHidden,s=this.readerChecked,o=this.readerControls,l=this.readerLive,u=this.readerOrientation,h=this.readerValueNow,d=this.readerValueText,f=[],p=[],v=this.readerLabelledBy;v&&f.push(v);var m=this.readerDescribedBy;if(m&&p.push(m),e)if(f.length||this.showSystemTooltip){var x=this.titleElement,w=this.uid+"-title";x.node.textContent!=e&&(x.node.textContent=e,x.attr({id:w}
20)),f.push(w)}else this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0),this.setSVGAttribute({"aria-label":e});else this.removeSVGAttribute("aria-label"),this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0);if(t){var P=this.descriptionElement,O=this.uid+"-description";P.node.textContent!=t&&(P.node.textContent=t,P.attr({id:O})),p.push(O)}else this._descriptionElement&&(this.group.removeElement(this._descriptionElement),this._descriptionElement=void 0);f.length?this.setSVGAttribute({"aria-labelledby":f.join(" ")}):this.removeSVGAttribute("aria-labelledby"),p.length?this.setSVGAttribute({"aria-describedby":p.join(" ")}):this.removeSVGAttribute("aria-describedby"),r?this.setSVGAttribute({role:r}):this.removeSVGAttribute("role"),a?this.setSVGAttribute({"aria-hidden":"true"}):this.removeSVGAttribute("aria-hidden"),s?this.setSVGAttribute({"aria-checked":"true"}):s===!1?this.setSVGAttribute({"aria-checked":"false"}):this.removeSVGAttribute("aria-checked"),o?this.setSVGAttribute({"aria-controls":o}):this.removeSVGAttribute("aria-controls"),l?this.setSVGAttribute({"aria-live":l}):this.removeSVGAttribute("aria-live"),u?this.setSVGAttribute({"aria-orientation":u}):this.removeSVGAttribute("aria-orientation"),h?this.setSVGAttribute({"aria-valuenow":h}):this.removeSVGAttribute("aria-valuenow"),d?this.setSVGAttribute({"aria-valuetext":d}):this.removeSVGAttribute("aria-valuetext")},Object.defineProperty(i.prototype,"readerTitle",{get:function(){var e=this.getPropertyValue("readerTitle");return T(e)&&this.dataItem?this.populateString(e):e},set:function(e){e=er(e),this.setPropertyValue("readerTitle",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerDescription",{get:function(){var e=this.getPropertyValue("readerDescription");return T(e)&&this.dataItem?this.populateString(e):this.getPropertyValue("readerDescription")},set:function(e){e=er(e),this.setPropertyValue("readerDescription",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"role",{get:function(){return this.getPropertyValue("role")},set:function(e){e=er(e),this.setPropertyValue("role",e)&&(this.applyAccessibility(),e=="slider"&&(this.setSVGAttribute({"aria-valuemin":"0"}),this.setSVGAttribute({"aria-valuemax":"100"})))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerHidden",{get:function(){return this.getPropertyValue("readerHidden")},set:function(e){e=ti(e),this.setPropertyValue("readerHidden",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerChecked",{get:function(){return this.getPropertyValue("readerChecked")},set:function(e){e=ti(e),this.setPropertyValue("readerChecked",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerControls",{get:function(){return this.getPropertyValue("readerControls")},set:function(e){e=er(e),this.setPropertyValue("readerControls",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerLive",{get:function(){return this.getPropertyValue("readerLive")},set:function(e){e=er(e),this.setPropertyValue("readerLive",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerLabelledBy",{get:function(){return this.getPropertyValue("readerLabelledBy")},set:function(e){e=er(e),this.setPropertyValue("readerLabelledBy",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerDescribedBy",{get:function(){return this.getPropertyValue("readerDescribedBy")},set:function(e){e=er(e),this.setPropertyValue("readerDescribedBy",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerOrientation",{get:function(){return this.getPropertyValue("readerOrientation")},set:function(e){e=er(e),this.setPropertyValue("readerOrientation",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerValueNow",{get:function(){return this.getPropertyValue("readerValueNow")},set:function(e){e=er(e),this.setPropertyValue("readerValueNow",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerValueText",{get:function(){return this.getPropertyValue("readerValueText")}
20,set:function(e){e=er(e),this.setPropertyValue("readerValueText",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keyboardOptions",{get:function(){if(!this.interactions.keyboardOptions){if(this.virtualParent)return this.virtualParent.keyboardOptions;if(this._parent)return this._parent.keyboardOptions}return this.interactions.keyboardOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mouseOptions",{get:function(){if(!this.interactions.mouseOptions){if(this.virtualParent)return this.virtualParent.mouseOptions;if(this._parent)return this._parent.mouseOptions}return this.interactions.mouseOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"interactions",{get:function(){if(!this._interaction){var e=Je().getInteraction(this.dom);this._interaction=e,e.clickable=this.clickable,e.hoverable=this.hoverable,e.trackable=this.trackable,e.draggable=this.draggable,e.swipeable=this.swipeable,e.resizable=this.resizable,e.wheelable=this.wheelable,e.contextMenuDisabled=this.contextMenuDisabled,e.inert=this.inert,e.sprite=this,this._disposers.push(e)}return this._interaction},enumerable:!0,configurable:!0}),i.prototype.isInteractive=function(){return!!this._interaction},Object.defineProperty(i.prototype,"focusable",{get:function(){return this.getPropertyValue("focusable")},set:function(e){var t=this;e=ti(e),this.setPropertyValue("focusable",e)&&(!e&&!this.isInteractive()||(this.interactions.focusable=e,e?(this.setSVGAttribute({focusable:e}),T(this._tabindex)||(this.tabindex=0)):(this.removeSVGAttribute("focusable"),this.tabindex=void 0),this.interactions.setEventDisposer("sprite-focusable",e,function(){return new di([t.events.on("blur",t.handleBlur,t,!1),t.events.on("focus",t.handleFocus,t,!1)])})))},enumerable:!0,configurable:!0}),i.prototype.handleFocus=function(e){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!0,this.topParent.focusedElement=this),this.focusFilter&&this.filters.push(this.focusFilter),this.hoverOnFocus&&(this.isHover=!0,this.handleOver()))},i.prototype.handleBlur=function(e){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!1,this.topParent.focusedElement=void 0),this.focusFilter&&this.filters.removeValue(this.focusFilter),this.hoverOnFocus&&(this.isHover=!1,this.handleOut()))},Object.defineProperty(i.prototype,"focusFilter",{get:function(){var e=this._focusFilter;if(e)return e;if(this.virtualParent)return this.virtualParent.focusFilter;if(this._parent)return this._parent.focusFilter},set:function(e){this._focusFilter=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverOnFocus",{get:function(){return this.getPropertyValue("hoverOnFocus")},set:function(e){e!==this.hoverOnFocus&&this.setPropertyValue("hoverOnFocus",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tabindex",{get:function(){var e=this._tabindex;if(e!=null)return e;if(this.virtualParent)return this.virtualParent.tabindex;if(this._parent)return this._parent.tabindex},set:function(e){e=Bt(e),this.setPropertyValue("tabindex",e)&&C(e)&&(this.interactions.tabindex=e,this.setSVGAttribute({tabindex:e}),this._tabindex=e,this.focusable=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inertiaOptions",{get:function(){return!this.interactions.inertiaOptions&&this._parent?this._parent.inertiaOptions:this.interactions.inertiaOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"draggable",{get:function(){return this.getPropertyValue("draggable")},set:function(e){var t=this;e=ti(e),this.setPropertyValue("draggable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.draggable=e,this.interactions.setEventDisposer("sprite-draggable",e,function(){return new di([t.events.on("down",t.handleDown,t,!1),t.events.on("dragstart",t.handleDragStart,t,!1),t.events.on("drag",t.handleDragMove,t,!1),t.events.on("dragstop",t.handleDragStop,t,!1)])})))},enumerable:!0,configurable:!0}),i.prototype.handleDragStart=function(e){(!this.interactions.isTouchProtected||!e.touch)&&(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this._isDragged=!0,this.hideTooltip(0))},i.prototype.dragStart=function(e){this._isDragged=!0,Je().dragStart(this.interactions,e)},i.prototype.handleDragStop=function(e){(!this.interactions.isTouchProtected||!e.touch)&&(this._isDragged=!1,this.showTooltip(),this.interactions.originalPosition=void 0)},i.prototype.dragStop=function(e,t){this._isDragged=!1,Je().dragStop(this.interactions,e,t)},i.prototype.handleDragMove=function(e){if(!this.interactions.isTouchProtected||!e.touch){var t=this.interactions.originalPosition;if(t&&this._isDragged){var r=this._parent.globalScale*this.svgContainer.cssScale;this.moveTo({x:t.x+e.shift.x/r,y:t.y+e.shift.y/r},void 0,void 0,!0)}this.dispatchImmediately("dragged",e)}},Object.defineProperty(i.prototype,"inert",{get:function(){return this.getPropertyValue("inert")},set:function(e){e=ti(e),this.setPropertyValue("inert",e)&&(!e&&!this.isInteractive()||(this.interactions.inert=e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverOptions",{get:function(){if(!this.interactions.hoverOptions){if(this.virtualParent)return this.virtualParent.hoverOptions;if(this._parent)return this._parent.hoverOptions}return this.interactions.hoverOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverable",{get:function(){return this.getPropertyValue("hoverable")}
20,set:function(e){var t=this;e=ti(e),this.setPropertyValue("hoverable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.hoverable=e,this.interactions.setEventDisposer("sprite-hoverable",e,function(){return new di([t.events.on("over",t.handleOver,t,!1),t.events.on("out",t.handleOut,t,!1)])})))},enumerable:!0,configurable:!0}),i.prototype.handleOver=function(e){if(this._outTimeout&&this._outTimeout.dispose(),this.isHover){this.states.hasKey("hover")&&(this.isHidden||this.applyCurrentState());var t=void 0;e&&e.pointer&&(t=ya(e.pointer.point,this.svgContainer.SVGContainer,this.svgContainer.cssScale)),this.showTooltipOn=="hover"&&this.showTooltip(t)}else this.showTooltipOn=="hover"&&this.hideTooltip(),!this.isHidden&&this.states.hasKey("hover")&&this.applyCurrentState()},i.prototype.handleOut=function(e){var t=this;if(this.tooltip&&this.tooltip.targetSprite==this&&this.tooltip.keepTargetHover){this._outTimeout=this.setTimeout(function(){t.tooltip.isHover||(t.tooltip.targetSprite==t&&t.hideTooltip(),t._outTimeout=t.setTimeout(t.handleOutReal.bind(t),t.rollOutDelay))},10);return}this.showTooltipOn=="hover"&&this.hideTooltip(),this._outTimeout=this.setTimeout(this.handleOutReal.bind(this),this.rollOutDelay)},i.prototype.handleOutReal=function(){!this.isHidden&&!this.isHiding&&this.states.hasKey("hover")&&this.applyCurrentState()},Object.defineProperty(i.prototype,"hitOptions",{get:function(){if(!this.interactions.hitOptions){if(this.virtualParent)return this.virtualParent.hitOptions;if(this._parent)return this._parent.hitOptions}return this.interactions.hitOptions},enumerable:!0,configurable:!0}),i.prototype.handleDown=function(e){this.interactions.downPointers.length===1&&(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this.interactions.originalAngle=this.rotation,this.interactions.originalScale=this.scale,this.states.hasKey("down")&&this.setState("down"))},i.prototype.handleUp=function(e){var t=this;this._isResized=!1,this.states.hasKey("down")&&this.applyCurrentState(),this.showTooltipOn=="hit"&&(this.updateTooltipPosition(e.pointer?e.pointer.point:void 0),this._disposers.push(V.events.once("exitframe",function(){t.showTooltip()})),this._disposers.push(Je().body.events.once("down",function(r){t.hideTooltip()})))},Object.defineProperty(i.prototype,"clickable",{get:function(){return this.getPropertyValue("clickable")},set:function(e){var t=this;e=ti(e),this.setPropertyValue("clickable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.clickable=e,this.interactions.setEventDisposer("sprite-clickable",e,function(){return new di([t.events.on("down",t.handleDown,t,!1),t.events.on("up",t.handleUp,t,!1)])})))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"togglable",{get:function(){return this.getPropertyValue("togglable")},set:function(e){var t=this;e=ti(e),this.setPropertyValue("togglable",e)&&(!e&&!this.isInteractive()||this.interactions.setEventDisposer("sprite-togglable",e,function(){return t.events.on("hit",t.handleToggle,t,!1)}))},enumerable:!0,configurable:!0}),i.prototype.handleToggle=function(e){this.isActive=!this.isActive},Object.defineProperty(i.prototype,"contextMenuDisabled",{get:function(){return this.getPropertyValue("contextMenuDisabled")},set:function(e){e=ti(e),this.setPropertyValue("contextMenuDisabled",e)&&(this.interactions.contextMenuDisabled=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"url",{get:function(){return this.getPropertyValue("url")},set:function(e){this.setPropertyValue("url",e)&&(this._urlDisposer&&this._urlDisposer.dispose(),Yl(e)&&(this._urlDisposer=this.events.on("hit",this.urlHandler,this,!1),this.clickable=!0,this.cursorOverStyle=Ki.pointer))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"baseId",{get:function(){return!this._baseId&&this._parent&&(this.baseId=this._parent.baseId),this._baseId},set:function(e){this.setBaseId(e)},enumerable:!0,configurable:!0}),i.prototype.setBaseId=function(e){e!=this._baseId&&(this.invalid&&(this.invalid=!1,V.removeFromInvalidSprites(this),this.invalidate()),this._baseId=e)},Object.defineProperty(i.prototype,"baseSprite",{get:function(){if(this.isBaseSprite)return this;if(this._parent)return this._parent.baseSprite},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"urlTarget",{get:function(){return this.getPropertyValue("urlTarget")},set:function(e){this.setPropertyValue("urlTarget",e)},enumerable:!0,configurable:!0}),i.prototype.urlHandler=function(e){if(Yl(this.url)){var t=this.populateString(this.url);this.urlTarget==="_self"?window.location.href=t:window.open(t,this.urlTarget)}},Object.defineProperty(i.prototype,"swipeOptions",{get:function(){if(!this.interactions.swipeOptions){if(this.virtualParent)return this.virtualParent.swipeOptions;if(this._parent)return this._parent.swipeOptions}return this.interactions.swipeOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"swipeable",{get:function(){return this.getPropertyValue("swipeable")}
20,set:function(e){e=ti(e),this.setPropertyValue("swipeable",e)&&(this.applyCursorStyle(),!e&&!this.isInteractive()||(this.interactions.swipeable=e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"trackable",{get:function(){return this.getPropertyValue("trackable")},set:function(e){e=ti(e),this.setPropertyValue("trackable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.trackable=e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wheelable",{get:function(){return this.getPropertyValue("wheelable")},set:function(e){this.setPropertyValue("wheelable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.wheelable=e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"resizable",{get:function(){return this.getPropertyValue("resizable")},set:function(e){var t=this;e=ti(e),this.setPropertyValue("resizable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.resizable=e,this.interactions.setEventDisposer("sprite-resizable",e,function(){return new di([t.events.on("down",t.handleDown,t,!1),t.events.on("resize",t.handleResize,t,!1)])})))},enumerable:!0,configurable:!0}),i.prototype.handleResize=function(e){if((!this.interactions.isTouchProtected||!e.touch)&&(this._isResized=!0,this.scale=this.interactions.originalScale*e.scale,this.validatePosition(),this.draggable||this.dragWhileResize)){this._isDragged=!1;var t=ya(e.point1,this.htmlContainer,this.svgContainer.cssScale),r=ya(e.point2,this.htmlContainer,this.svgContainer.cssScale),a=El(t,r),s=Os(e.startPoint1,this._parent),o=Os(e.startPoint2,this._parent),l=this.interactions.originalPosition,u=this.interactions.originalScale;if(l){var h={x:(s.x-l.x)/u,y:(s.y-l.y)/u},d={x:(o.x-l.x)/u,y:(o.y-l.y)/u},f=El(h,d),p=vn(a,this._parent);this.moveTo({x:p.x-f.x*this.scale,y:p.y-f.y*this.scale},void 0,void 0,!0)}}},Object.defineProperty(i.prototype,"cursorOptions",{get:function(){if(!this.interactions.cursorOptions){if(this.virtualParent)return this.virtualParent.cursorOptions;if(this._parent)return this._parent.cursorOptions}return this.interactions.cursorOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorOverStyle",{set:function(e){this.cursorOptions.overStyle||(this.interactions.cursorOptions={defaultStyle:this.cursorOptions.defaultStyle}),this.cursorOptions.overStyle=e,Je().applyCursorOverStyle(this.interactions)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorDownStyle",{set:function(e){this.cursorOptions.downStyle=e},enumerable:!0,configurable:!0}),i.prototype.applyCursorStyle=function(){},Object.defineProperty(i.prototype,"interactionsEnabled",{get:function(){var e=this.getPropertyValue("interactionsEnabled");return e===!1?!1:this.virtualParent?this.virtualParent.interactionsEnabled:this._parent?this._parent.interactionsEnabled:!0},set:function(e){if(e=ti(e),this.setPropertyValue("interactionsEnabled",e)){var t=null;e?this.group.node.style.pointerEvents="":t="none",this.group.node.style.pointerEvents=t}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"exporting",{get:function(){return this.getExporting()},set:function(e){this._exporting.set(e,e)},enumerable:!0,configurable:!0}),i.prototype.getExporting=function(){var e=this._exporting.get();if(e)return e;if(this.isStandaloneInstance||!this._parent)e=new Ub(this.svgContainer.SVGContainer),e.sprite=this,e.language=this.language,e.numberFormatter=this.numberFormatter,e.dateFormatter=this.dateFormatter,e.durationFormatter=this.durationFormatter,this._exporting.set(e,e);else return this._parent.exporting;return e},Object.defineProperty(i.prototype,"exportable",{get:function(){return this._exportable},set:function(e){var t=this.svgContainer;this._exportable=e,t&&(e?Qe(t.nonExportableSprites,this):yn(t.nonExportableSprites,this)==-1&&t.nonExportableSprites.push(this))},enumerable:!0,configurable:!0}),i.prototype.modalPrefix=function(e){return e=ir.classNamePrefix+e,e},Object.defineProperty(i.prototype,"modal",{get:function(){var e=this.svgContainer;if(e){var t=e.modal;return t.adapter.has("classPrefix",this.modalPrefix)||t.adapter.add("classPrefix",this.modalPrefix),t}},enumerable:!0,configurable:!0}),i.prototype.openModal=function(e,t){var r=this.svgContainer;if(r)return r.openModal(e,t)},i.prototype.closeModal=function(){var e=this.svgContainer;e&&e.closeModal()}
20,Object.defineProperty(i.prototype,"popups",{get:function(){var e=this.svgContainer;if(e){var t=e.popups;return t.template.sprite=this,t.template.adapter.has("classPrefix",this.modalPrefix)||t.template.adapter.add("classPrefix",this.modalPrefix),t}},enumerable:!0,configurable:!0}),i.prototype.openPopup=function(e,t){var r=this.svgContainer;if(r)return r.openPopup(e,t)},i.prototype.closeAllPopups=function(){var e=this.svgContainer;e&&e.closeAllPopups()},Object.defineProperty(i.prototype,"x",{get:function(){return this.getPropertyValue("x")},set:function(e){this.isDragged||this.setPercentProperty("x",e,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelX",{get:function(){var e=ke(this.getPixelX(this.x),this.minX,this.maxX);return this._adapterO?this._adapterO.apply("pixelX",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeX",{get:function(){return this._adapterO?this._adapterO.apply("relativeX",this.getRelativeX(this.x)):this.getRelativeX(this.x)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minX",{get:function(){return this.getPropertyValue("minX")},set:function(e){C(e)&&(e=de(e,this._positionPrecision,!0),this.setPropertyValue("minX",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxX",{get:function(){return this.getPropertyValue("maxX")},set:function(e){C(e)&&(e=de(e,this._positionPrecision,!0),this.setPropertyValue("maxX",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y",{get:function(){return this.getPropertyValue("y")},set:function(e){this.isDragged||this.setPercentProperty("y",e,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelY",{get:function(){var e=ke(this.getPixelY(this.y),this.minY,this.maxY);return this._adapterO?this._adapterO.apply("pixelY",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeY",{get:function(){return this._adapterO?this._adapterO.apply("relativeY",this.getRelativeX(this.y)):this.getRelativeX(this.y)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minY",{get:function(){return this.getPropertyValue("minY")},set:function(e){C(e)&&(e=de(e,this._positionPrecision,!0),this.setPropertyValue("minY",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxY",{get:function(){return this.getPropertyValue("maxY")},set:function(e){C(e)&&(e=de(e,this._positionPrecision,!0),this.setPropertyValue("maxY",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dx",{get:function(){return this.getPropertyValue("dx")},set:function(e){C(e)&&(e=de(e,this._positionPrecision,!0),this.setPropertyValue("dx",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dy",{get:function(){return this.getPropertyValue("dy")},set:function(e){C(e)&&(e=de(e,this._positionPrecision,!0),this.setPropertyValue("dy",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rotation",{get:function(){return this.getPropertyValue("rotation")},set:function(e){e=Bt(e),C(e)||(e=0),this.setPropertyValue("rotation",e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"align",{get:function(){return this.getPropertyValue("align")},set:function(e){e=er(e),this.setPropertyValue("align",e)&&this._parent&&this._parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valign",{get:function(){return this.getPropertyValue("valign")},set:function(e){e=er(e),this.setPropertyValue("valign",e)&&this._parent&&this._parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"horizontalCenter",{get:function(){return this.getPropertyValue("horizontalCenter")},set:function(e){e=er(e),this.setPropertyValue("horizontalCenter",e)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalCenter",{get:function(){return this.getPropertyValue("verticalCenter")},set:function(e){e=er(e),this.setPropertyValue("verticalCenter",e)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxWidth",{get:function(){var e=this.getPropertyValue("maxWidth");if(!C(e)&&this._parent){var t=this._parent.maxWidth;return this._parent.layout!="absolute"&&this.align!="none"&&this.align!=null&&(t=t-this.pixelMarginLeft-this.pixelMarginRight),t}return e},set:function(e){this.setMaxWidth(e)},enumerable:!0,configurable:!0}),i.prototype.setMaxWidth=function(e){var t=this.maxWidth,r=this.maxHeight;if(this.setPropertyValue("maxWidth",e)){C(this.relativeWidth)&&this.invalidate();var a={type:"maxsizechanged",target:this,previousWidth:t,previousHeight:r};this.dispatchImmediately("maxsizechanged",a)}},Object.defineProperty(i.prototype,"maxHeight",{get:function(){var e=this.getPropertyValue("maxHeight");if(!C(e)&&this._parent){var t=this._parent.maxHeight;return this._parent.layout!="absolute"&&this.valign!="none"&&this.valign!=null&&(t=t-this.pixelMarginTop-this.pixelMarginBottom),t}return e},set:function(e){this.setMaxHeight(e)},enumerable:!0,configurable:!0}),i.prototype.setMaxHeight=function(e){var t=this.maxWidth,r=this.maxHeight;if(this.setPropertyValue("maxHeight",e)){C(this.relativeHeight)&&this.invalidate();var a={type:"maxsizechanged",target:this,previousWidth:t,previousHeight:r};this.dispatchImmediately("maxsizechanged",a)}},Object.defineProperty(i.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")}
20,set:function(e){this.setPropertyValue("minHeight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){var t=this.setPercentProperty("width",e,!0,!1,this._positionPrecision,!0);t&&(this.percentWidth=void 0,this.relativeWidth=void 0,e instanceof mt?(this.percentWidth=e.percent,C(this._pixelWidth)&&(this.maxWidth=void 0),this._pixelWidth=void 0):(this._pixelWidth=Number(e),this.maxWidth=this._pixelWidth),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){var t=this.setPercentProperty("height",e,!0,!1,this._positionPrecision,!0);t&&(this.percentHeight=void 0,this._relativeHeight=void 0,e instanceof mt?(this.percentHeight=e.percent,C(this._pixelHeight)&&(this.maxHeight=void 0),this._pixelHeight=void 0):(this._pixelHeight=Number(e),this.maxHeight=this._pixelHeight),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelWidth",{get:function(){var e;C(this.percentWidth)?e=this.maxWidth:C(this._pixelWidth)?e=this._pixelWidth:e=0;var t=this.minWidth;t!=null&&e<t&&(e=t);var r=de(e,this._positionPrecision,!0);return this._adapterO?this._adapterO.apply("pixelWidth",r):r},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelHeight",{get:function(){var e;C(this.percentHeight)?e=this.maxHeight:C(this._pixelHeight)?e=this._pixelHeight:e=0;var t=this.minHeight;t!=null&&e<t&&(e=t);var r=de(e,this._positionPrecision,!0);return this._adapterO?this._adapterO.apply("pixelHeight",r):r},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeWidth",{get:function(){var e=this._relativeWidth;if(C(e))return this._adapterO?this._adapterO.apply("relativeWidth",e):e},set:function(e){this._relativeWidth!=e&&(this._relativeWidth=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeHeight",{get:function(){var e=this._relativeHeight;if(C(e))return this._adapterO?this._adapterO.apply("relativeHeight",e):e},set:function(e){this._relativeHeight!=e&&(this._relativeHeight=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"measuredWidth",{get:function(){return this.disabled||this.__disabled?0:this._adapterO?this._adapterO.apply("measuredWidth",this._measuredWidth):this._measuredWidth},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"measuredHeight",{get:function(){return this.disabled||this.__disabled?0:this._adapterO?this._adapterO.apply("measuredHeight",this._measuredHeight):this._measuredHeight},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outerWidth",{get:function(){var e=this.pixelWidth+this.pixelMarginRight+this.pixelMarginLeft;return this._adapterO?this._adapterO.apply("outerWidth",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outerHeight",{get:function(){var e=this.pixelHeight+this.pixelMarginTop+this.pixelMarginBottom;return this._adapterO?this._adapterO.apply("outerHeight",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerWidth",{get:function(){var e=Math.max(0,this.pixelWidth-this.pixelPaddingRight-this.pixelPaddingLeft);return this._adapterO?this._adapterO.apply("innerWidth",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerHeight",{get:function(){var e=Math.max(0,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom);return this._adapterO?this._adapterO.apply("innerHeight",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"globalScale",{get:function(){var e=this.scale;return this._parent&&(e=e*this._parent.globalScale),this._adapterO?this._adapterO.apply("globalScale",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scale",{get:function(){return this.getPropertyValue("scale")},set:function(e){e=Bt(e),e<0&&(e=0),e!=this.getPropertyValue("scale")&&(this.setPropertyValue("scale",e,!1,!0),this.handleGlobalScale())},enumerable:!0,configurable:!0}),i.prototype.margin=function(e,t,r,a){return this.marginTop=e,this.marginRight=t,this.marginBottom=r,this.marginLeft=a,this},Object.defineProperty(i.prototype,"marginLeft",{get:function(){return this.getPropertyValue("marginLeft")},set:function(e){this.setPercentProperty("marginLeft",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"marginRight",{get:function(){return this.getPropertyValue("marginRight")}
20,set:function(e){this.setPercentProperty("marginRight",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"marginTop",{get:function(){return this.getPropertyValue("marginTop")},set:function(e){this.setPercentProperty("marginTop",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"marginBottom",{get:function(){return this.getPropertyValue("marginBottom")},set:function(e){this.setPercentProperty("marginBottom",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelMarginRight",{get:function(){var e=this.getPixelX(this.marginRight);return this._adapterO?this._adapterO.apply("pixelMarginRight",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeMarginRight",{get:function(){var e=this.getRelativeX(this.marginRight);return this._adapterO?this._adapterO.apply("relativeMarginRight",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelMarginLeft",{get:function(){var e=this.getPixelX(this.marginLeft);return this._adapterO?this._adapterO.apply("pixelMarginLeft",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeMarginLeft",{get:function(){var e=this.getRelativeX(this.marginLeft);return this._adapterO?this._adapterO.apply("relativeMarginLeft",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelMarginTop",{get:function(){var e=this.getPixelY(this.marginTop);return this._adapterO?this._adapterO.apply("pixelMarginTop",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeMarginTop",{get:function(){var e=this.getRelativeY(this.marginTop);return this._adapterO?this._adapterO.apply("relativeMarginTop",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelMarginBottom",{get:function(){var e=this.getPixelY(this.marginBottom);return this._adapterO?this._adapterO.apply("pixelMarginBottom",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeMarginBottom",{get:function(){var e=this.getRelativeY(this.marginBottom);return this._adapterO?this._adapterO.apply("relativeMarginBottom",e):e},enumerable:!0,configurable:!0}),i.prototype.padding=function(e,t,r,a){return this.paddingTop=e,this.paddingRight=t,this.paddingBottom=r,this.paddingLeft=a,this},Object.defineProperty(i.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft")},set:function(e){this.setPercentProperty("paddingLeft",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight")},set:function(e){this.setPercentProperty("paddingRight",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paddingTop",{get:function(){return this.getPropertyValue("paddingTop")},set:function(e){this.setPercentProperty("paddingTop",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paddingBottom",{get:function(){return this.getPropertyValue("paddingBottom")},set:function(e){this.setPercentProperty("paddingBottom",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelPaddingRight",{get:function(){return this.getPixelX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativePaddingRight",{get:function(){return this.getRelativeX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelPaddingLeft",{get:function(){return this.getPixelX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativePaddingLeft",{get:function(){return this.getRelativeX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelPaddingTop",{get:function(){return this.getPixelY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativePaddingTop",{get:function(){return this.getRelativeY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelPaddingBottom",{get:function(){return this.getPixelY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativePaddingBottom",{get:function(){return this.getRelativeY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"path",{get:function(){return this.getPropertyValue("path")},set:function(e){this.setPath(e)},enumerable:!0,configurable:!0}),i.prototype.setPath=function(e){return this.setPropertyValue("path",e)?(this._adapterO&&(e=this._adapterO.apply("path",e)),this._isPath||((!this.element||this.element.node&&!(this.element.node instanceof SVGPathElement))&&(this.element=this.paper.add("path")),this._isPath=!0),T(e)?this.element.attr({d:e}):this.element.removeAttr("d"),this.invalidatePosition(),this.inited||this.events.once("inited",this.validatePosition,this,!1),!0):!1},Object.defineProperty(i.prototype,"fillModifier",{get:function(){return this.getPropertyValue("fillModifier")},set:function(e){this.setPropertyValue("fillModifier",e)&&this.setFill(this.fill)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeModifier",{get:function(){return this.getPropertyValue("strokeModifier")},set:function(e){this.setPropertyValue("strokeModifier",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fillOpacity",{get:function(){return this.getPropertyValue("fillOpacity")},set:function(e){e=yh(e,0,1),this.setPropertyValue("fillOpacity",e)&&this.setSVGAttribute({"fill-opacity":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this.getPropertyValue("fill")}
20,set:function(e){this.setFill(e)},enumerable:!0,configurable:!0}),i.prototype.setFill=function(e){if((!Zt(e)||"r"in e)&&(e=qr(e)),this.setColorProperty("fill",e)||this.fillModifier){if(e instanceof wt&&this.fillModifier&&(e=this.fillModifier.modify(e)),this.realFill=e,e instanceof wt)this.setSVGAttribute({fill:e.toString()});else if(!T(e))this.removeSVGAttribute("fill");else if(e instanceof Fs||e instanceof en||e instanceof Da){var t=e;t.paper=this.paper,this.setSVGAttribute({fill:'url("'+co()+t.id+'")'})}}},Object.defineProperty(i.prototype,"opacity",{get:function(){return this.getPropertyValue("opacity")},set:function(e){e=yh(e,0,1),this.setPropertyValue("opacity",e)&&this.setSVGAttribute({opacity:e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"stroke",{get:function(){return this.getPropertyValue("stroke")},set:function(e){this.setStroke(e)},enumerable:!0,configurable:!0}),i.prototype.setStroke=function(e){if((!Zt(e)||"r"in e)&&(e=qr(e)),this.setColorProperty("stroke",e)||this.strokeModifier){if(e instanceof wt&&this.strokeModifier&&(e=this.strokeModifier.modify(e)),this.realStroke=e,e instanceof wt)e.hex=="none"?this.removeSVGAttribute("stroke"):this.setSVGAttribute({stroke:e.toString()});else if(!T(e))this.removeSVGAttribute("stroke");else if(e instanceof Fs||e instanceof en||e instanceof Da){var t=e;t.paper=this.paper,this.setSVGAttribute({stroke:'url("'+co()+t.id+'")'})}}},Object.defineProperty(i.prototype,"strokeOpacity",{get:function(){return this.getPropertyValue("strokeOpacity")},set:function(e){e=yh(e,0,1),this.setPropertyValue("strokeOpacity",e)&&this.setSVGAttribute({"stroke-opacity":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nonScalingStroke",{get:function(){return this.getPropertyValue("nonScalingStroke")},set:function(e){e=ti(e),this.setPropertyValue("nonScalingStroke",e)&&(this.strokeWidth=this.strokeWidth)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nonScaling",{get:function(){return this.getPropertyValue("nonScaling")},set:function(e){e=ti(e),this.setPropertyValue("nonScaling",e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeWidth",{get:function(){return this.getPropertyValue("strokeWidth")},set:function(e){e=Bt(e),this.setPropertyValue("strokeWidth",e,!0),this.nonScalingStroke&&(C(e)||(e=1),e=e/this.globalScale),this.setSVGAttribute({"stroke-width":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeDasharray",{get:function(){return this.getPropertyValue("strokeDasharray")},set:function(e){e=er(e),this.setPropertyValue("strokeDasharray",e)&&this.setSVGAttribute({"stroke-dasharray":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeDashoffset",{get:function(){return this.getPropertyValue("strokeDashoffset")},set:function(e){e=Bt(e),this.setPropertyValue("strokeDashoffset",e)&&this.setSVGAttribute({"stroke-dashoffset":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeLinecap",{get:function(){return this.getPropertyValue("strokeLinecap")},set:function(e){this.setPropertyValue("strokeLinecap",e)&&this.setSVGAttribute({"stroke-linecap":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeLinejoin",{get:function(){return this.getPropertyValue("strokeLinejoin")},set:function(e){this.setPropertyValue("strokeLinejoin",e)&&this.setSVGAttribute({"stroke-linejoin":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shapeRendering",{get:function(){return this.getPropertyValue("shapeRendering")},set:function(e){e=er(e),this.setPropertyValue("shapeRendering",e)&&this.setSVGAttribute({"shape-rendering":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelPerfect",{get:function(){return this.getPropertyValue("pixelPerfect")},set:function(e){e=ti(e),e?this._positionPrecision=ir.pixelPerfectPrecision:this._positionPrecision=3,this.setPropertyValue("pixelPerfect",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rtl",{get:function(){return T(this._rtl)?this._rtl:this._topParent?this._topParent.rtl:!1},set:function(e){e=ti(e),this.isBaseSprite&&(this.topParent.rtl=e),this._rtl=e},enumerable:!0,configurable:!0}),i.prototype.show=function(e){return this.showReal(e)},i.prototype.showReal=function(e){var t=this;if(!this.preventShow){var r,a=this.defaultState.properties;if(!this.disabled&&(this.isHidden||!this.visible||this.isHiding||a.opacity!=null&&this.opacity<a.opacity&&!this.isShowing)&&!this.isDisposed()){this.invalid&&this.validate(),this.positionInvalid&&this.validatePosition(),C(e)||(e=this.defaultState.transitionDuration),this._hideAnimation&&(this._hideAnimation.kill(),this._hideAnimation=void 0),this._showHideDisposer&&this.removeDispose(this._showHideDisposer),this._isHidden=!1,this.isHiding=!1,this.isShowing=!0,r=this.applyCurrentState(e),r&&!r.isFinished()?(this._showHideDisposer=r.events.on("animationended",function(){t.isShowing=!1}),this._disposers.push(this._showHideDisposer)):this.isShowing=!1;var s=this.defaultState.properties.visible;T(s)||(s=!0),this.visible=s,this.readerHidden=!1,this.dispatchImmediately("shown")}return r}},i.prototype.hide=function(e){return this.hideReal(e)},i.prototype.hideReal=function(e){var t=this,r;if(!this.isHiding&&this.visible&&!this.isDisposed()){this.tooltip&&this.tooltip.currentSprite==this&&this.hideTooltip(0),this._hideAnimation&&(this._hideAnimation.kill(),this._hideAnimation=void 0),this.isShowing=!1,this._showHideDisposer&&this.removeDispose(this._showHideDisposer);var a=this.hiddenState;a?(r=this.setState(a,e,void 0),r&&!r.isFinished()?(this._hideAnimation=r,this._showHideDisposer=r.events.on("animationended",function(){t.isHiding=!1,t._isHidden=!0,a.properties.visible==!1&&(t.visible=!1)},this),this._disposers.push(this._showHideDisposer),this._disposers.push(r)):(this.isHiding=!1,this._isHidden=!0)):(this.visible=!1,this.isHiding=!1,this._isHidden=!0),this.readerHidden=!0,this.dispatchImmediately("hidden"),this.invalidate()}return C(e)||(e=this.hiddenState.transitionDuration),r},Object.defineProperty(i.prototype,"visible",{get:function(){return this.getVisibility()},set:function(e){e=ti(e),this.setVisibility(e)},enumerable:!0,configurable:!0}),i.prototype.getVisibility=function(){var e=this.getPropertyValue("visible");return T(e)||(e=!0),e},i.prototype.setVisibility=function(e){if(this.setPropertyValue("visible",e)&&(e?this.group.removeAttr("visibility"):this.group.attr({visibility:"hidden"}),this.events.isEnabled("visibilitychanged"))){var t={type:"visibilitychanged",target:this,visible:e};this.events.dispatchImmediately("visibilitychanged",t)}}
20,Object.defineProperty(i.prototype,"zIndex",{get:function(){return this.getPropertyValue("zIndex")},set:function(e){e=Bt(e),this.setPropertyValue("zIndex",e)&&this.dispatch("zIndexChanged")},enumerable:!0,configurable:!0}),i.prototype.toFront=function(){var e=this._parent;e&&e.children.indexOf(this)!=e.children.length-1&&(e.children.moveValue(this,e.children.length-1),this.dispatch("zIndexChanged"))},i.prototype.toBack=function(){var e=this._parent;e&&e.children.indexOf(this)!=0&&(e.children.moveValue(this,0),this.dispatch("zIndexChanged"))},Object.defineProperty(i.prototype,"userClassName",{get:function(){return this.getPropertyValue("userClassName")},set:function(e){this.setPropertyValue("userClassName",e)&&(!e&&this.userClassName&&this.group.removeClass(this.userClassName),this.setClassName())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltip",{get:function(){if(this._tooltip)return this._tooltip;if(this.virtualParent)return this.virtualParent.tooltip;if(this._parent)return this._parent.tooltip},set:function(e){this._tooltip&&this.removeDispose(this._tooltip),this._tooltip=e,e&&(e.parent=this.tooltipContainer)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipDataItem",{get:function(){var e=this._tooltipDataItem;return e||this.dataItem},set:function(e){this._tooltipDataItem=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipColorSource",{get:function(){return this._tooltipColorSource},set:function(e){this._tooltipColorSource=e},enumerable:!0,configurable:!0}),i.prototype.showTooltip=function(e){this.showTooltipOn=="always"&&!this._tooltip&&this.tooltip&&(this._tooltip=this.tooltip.clone()),!e&&this.tooltipPosition=="pointer"&&this.isHover&&(e=ya(Je().lastPointer.point,this.svgContainer.SVGContainer,this.svgContainer.cssScale));for(var t=this;t!=null;){if(!t.visible||t.disabled||t.__disabled){this._tooltip&&this._tooltip.visible&&this._tooltip.hide(0);return}t=t.parent}if(T(this.tooltipText)||T(this.tooltipHTML)){var r=this.tooltip,a=this.tooltipDataItem;if(r){r.targetSprite=this;var s=this,o=this.tooltipColorSource;if((r.getStrokeFromObject||r.getFillFromObject)&&o&&(o.isTemplate?a&&Wd(a.sprites,function(p){return p.clonedFrom==o?(s=p,!1):!0}):s=o),r.getStrokeFromObject){for(var l=this.stroke,u=s;u.parent!=null&&(l=u.stroke,l==null&&(u=u.parent),l==null););l instanceof wt?r.background.animate({property:"stroke",to:l},r.animationDuration):r.background.stroke=l}if(r.dataItem=a,r.label.populateStringFrom=this,r.getFillFromObject){for(var h=this.fill,u=s;u.parent!=null;)if(h=u.fill,h==null||h instanceof wt&&h.rgb==null)u=u.parent;else if(h!=null)break;h==null&&(h=qe("#000000")),h instanceof wt&&r.visible?r.background.animate({property:"fill",to:h},r.animationDuration):r.background.fill=h,r.autoTextColor&&h instanceof wt&&(r.label.fill=h.alternative)}var d="";if(this.tooltipHTML&&(r.html=this.tooltipHTML,d=this.tooltipHTML),this.tooltipText&&(r.text=this.tooltipText,d=this.tooltipText),this.updateTooltipPosition(e))if(r.readerDescribedBy=this.uidAttr(),r.label.invalid&&r.label.validate(),d!=null&&d!=""&&r.label.currentText!=""){r&&!r.parent&&(r.parent=this.tooltipContainer);var f=r.defaultState.transitionDuration;return f<=0&&(f=1),r.show(f),r.currentSprite=this,!0}else this.hideTooltip(0);else this.hideTooltip(0)}}return!1},i.prototype.updateTooltipPosition=function(e){var t=this;if(this.tooltipPosition=="pointer"){if(this._interactionDisposer&&this._interactionDisposer.dispose(),this._interactionDisposer=Je().body.events.on("track",function(a){return t.pointTooltipTo(ya(a.point,t.svgContainer.SVGContainer,t.svgContainer.cssScale),!0)}),e)return this.pointTooltipTo(e,!0)}else{var r=Qr({x:this.getTooltipX(),y:this.getTooltipY()},this);return this.pointTooltipTo(r)}},i.prototype.pointTooltipTo=function(e,t){var r=this.tooltip;return r&&this.topParent&&(r.showInViewport||Np(e,{x:0,y:0,width:this.topParent.maxWidth,height:this.topParent.maxHeight}))?(r.pointTo(e,t),!0):!1},i.prototype.hideTooltip=function(e){if(this.showTooltipOn!="always"){var t=this.tooltip;t&&(t.targetSprite==this&&(t.targetSprite=void 0),t.hide(e),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0))}},Object.defineProperty(i.prototype,"tooltipHTML",{get:function(){return this.getPropertyValue("tooltipHTML")},set:function(e){e=er(e),this.hoverable=!0,this.setPropertyValue("tooltipHTML",e)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipText",{get:function(){return this.getPropertyValue("tooltipText")}
20,set:function(e){e=er(e),e&&(this.hoverable=!0),this.setPropertyValue("tooltipText",e)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipContainer",{get:function(){if(this._tooltipContainer)return this._tooltipContainer;if(this._parent)return this._parent.tooltipContainer},set:function(e){this._tooltipContainer=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipX",{get:function(){return this.getTooltipX()},set:function(e){this.setPercentProperty("tooltipX",e)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"alwaysShowTooltip",{get:function(){return this.getPropertyValue("showTooltipOn")=="always"},set:function(e){e=ti(e),e&&(this.showTooltipOn="always")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showTooltipOn",{get:function(){return this.getPropertyValue("showTooltipOn")},set:function(e){this.setPropertyValue("showTooltipOn",e)&&(e=="hit"&&(this.clickable=!0),this.tooltip&&(e=="always"?this.showTooltip():this.handleAlwaysShowTooltip()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipPosition",{get:function(){return this.getPropertyValue("tooltipPosition")},set:function(e){this.setPropertyValue("tooltipPosition",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipY",{get:function(){return this.getTooltipY()},set:function(e){this.setPercentProperty("tooltipY",e)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),i.prototype.getTooltipX=function(){var e=this.getPropertyValue("tooltipX");T(e)||(e=pe(50));var t;return C(e)&&(t=e),e instanceof mt&&(t=this.maxLeftSelf+this._measuredWidthSelf*e.value-this.pixelPaddingLeft-this.ex),C(t)||(t=0),t},i.prototype.getTooltipY=function(){var e=this.getPropertyValue("tooltipY");T(e)||(e=pe(50));var t;return C(e)&&(t=e),e instanceof mt&&(t=this.maxTopSelf+this._measuredHeightSelf*e.value-this.pixelPaddingTop-this.ey),C(t)||(t=0),t},i.prototype.raiseCriticalError=function(e,t){this.svgContainer&&(this._adapterO?this.modal.content=this._adapterO.apply("criticalError",e).message:this.modal.content=e.message,t?this.modal.closable=!0:this.disabled=!0,this.modal.open()),console.log(e)},i.prototype.processConfig=function(e){e&&(T(e.tooltipColorSource)&&bt(e.tooltipColorSource)&&this.map.hasKey(e.tooltipColorSource)&&(e.tooltipColorSource=this.map.getKey(e.tooltipColorSource)),T(e.cursorOverStyle)&&bt(e.cursorOverStyle)&&(e.cursorOverStyle=this.getCursorStyle(e.cursorOverStyle)),T(e.cursorDowntyle)&&bt(e.cursorDowntyle)&&(e.cursorDowntyle=this.getCursorStyle(e.cursorDowntyle)),T(e.cursorOptions)&&(T(e.cursorOptions.overStyle)&&bt(e.cursorOptions.overStyle)&&(e.cursorOptions.overStyle=this.getCursorStyle(e.cursorOptions.overStyle)),T(e.cursorOptions.downStyle)&&bt(e.cursorOptions.downStyle)&&(e.cursorOptions.downStyle=this.getCursorStyle(e.cursorOptions.downStyle)))),n.prototype.processConfig.call(this,e),this.processDelayedMap()},i.prototype.getCursorStyle=function(e){switch(e){case"grab":return Ki.grab;case"grabbing":return Ki.grabbing;case"pointer":return Ki.pointer;case"horizontalResize":return Ki.horizontalResize;case"verticalResize":return Ki.verticalResize;default:return Ki.default}},i.prototype.configOrder=function(e,t){return e==t?0:e=="tooltipColorSource"?1:t=="tooltipColorSource"?-1:n.prototype.configOrder.call(this,e,t)},Object.defineProperty(i.prototype,"isHidden",{get:function(){return this._isHidden?this._isHidden:this._parent?this._parent.isHidden:!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showOnInit",{get:function(){return this.getPropertyValue("showOnInit")},set:function(e){e=ti(e),this.setShowOnInit(e)},enumerable:!0,configurable:!0}),i.prototype.setShowOnInit=function(e){this.setPropertyValue("showOnInit",e)&&(this.isTemplate||(e&&!this.inited&&!this.hidden?(this._showOnInitDisposer=new di([V.events.once("enterframe",this.hideInitially,this),this.events.once("beforevalidated",this.hideInitially,this,!1),this.events.on("inited",this.appear,this,!1)]),this._disposers.push(this._showOnInitDisposer)):this._showOnInitDisposer&&this._showOnInitDisposer.dispose()))},i.prototype.hideInitially=function(){this.isDisposed()||(this.appeared=!1,this.inited||this.hide(0))},i.prototype.appear=function(){var e=this;if(this.appeared=!1,!this.hidden&&!this.isHidden&&this.hide(0),this.hidden)this.appeared=!0,this.dispatch("appeared");else{var t=this.show();t&&!t.isFinished()?this.addDisposer(t.events.on("animationended",function(){e.appeared=!0,e.dispatch("appeared")})):(this.appeared=!0,this.dispatch("appeared"))}},Object.defineProperty(i.prototype,"hidden",{get:function(){return this.getPropertyValue("hidden")},set:function(e){e=ti(e),this.setPropertyValue("hidden",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this._bbox},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"plugins",{get:function(){var e=this;return this._plugins||(this._plugins=new Pt,this._disposers.push(this._plugins.events.on("inserted",function(t){t.newValue.target=e,t.newValue.init(
20)})),this._disposers.push(new zt(this._plugins))),this._plugins},enumerable:!0,configurable:!0}),i.prototype._systemUpdate=function(e){this.validate()},i.prototype._systemCheckIfValidate=function(){return!0},i.prototype._systemValidatePositions=function(){this.validatePosition()},i.prototype._systemValidateLayouts=function(){},i}(Nn);V.registeredClasses.Sprite=ot;var gu=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Rectangle",e.element=e.paper.add("rect"),e.applyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this);var e=this._positionPrecision;this.pixelPerfect&&(e=0);var t=de(this.innerWidth,e),r=de(this.innerHeight,e);this.element.attr({width:t,height:r})},i.prototype.measureElement=function(){},Object.defineProperty(i.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),i}(ot);V.registeredClasses.Rectangle=gu;var Ee=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._childrenByLayout=[],e._childrenDisposers=new Gt,e.hasFocused=!1,e.setStateOnSprites=[],e.layoutInvalid=!1,e._absoluteWidth=0,e._absoluteHeight=0,e._shouldBeReady=[],e._tapToActivate=!1,e.tapTimeout=3e3,e.className="Container",e._element=e.paper.addGroup("g"),e.group.add(e.element),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("layout","absolute"),e.setPropertyValue("fixedWidthGrid",!1),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e._positionPrecision=4,e._disposers.push(new Qa(e._childrenDisposers)),e.children.events.on("inserted",e.handleChildAdded,e),e.children.events.on("removed",e.handleChildRemoved,e),e.applyTheme(),e}return i.prototype.handleChildAdded=function(e){this.processChild(e.newValue)},i.prototype.processChild=function(e){try{this._childrenDisposers.insertKey(e.uid,new di([e.events.on("transformed",this.handleChildTransform,this),e.events.on("zIndexChanged",this.sortAndAdd,this)]))}catch{}if(this.element){var t=this.element;t.add(e.group)}e.parent=this,e.paper=this.paper,this.dispatchImmediately("childadded",{type:"childadded",newValue:e}),this.invalidate()},i.prototype.sortAndAdd=function(){this.sortChildren(),this.addChildren()},i.prototype.handleChildRemoved=function(e){var t=e.oldValue;if(this._childrenDisposers.removeKey(t.uid),this.element){var r=this.element;r.removeElement(t.group)}t.isMeasured&&this.invalidateLayout(),this.dispatchImmediately("childremoved",{type:"childremoved",oldValue:t})},i.prototype.handleChildTransform=function(e){var t=e.target;t.isMeasured&&this.invalidateLayout()},i.prototype.invalidateLayout=function(){this.layoutInvalid||this.disabled||this.isTemplate||this.layout=="none"||this.__disabled||(this.layoutInvalid=!0,V.addToInvalidLayouts(this),yt.requestFrame())},i.prototype.invalidate=function(){n.prototype.invalidate.call(this),this.invalidateLayout()},i.prototype.deepInvalidate=function(){n.prototype.invalidate.call(this),De(this._childrenByLayout,function(e){e instanceof i?e.deepInvalidate():e.invalidate()}),this.invalidateLayout()},Object.defineProperty(i.prototype,"children",{get:function(){return this._children||(this._children=new Pt),this._children},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(e){this.setPropertyValue("minHeight",e)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),i.prototype.removeElement=function(){},i.prototype.sortChildren=function(){var e=this;if(this._childrenByLayout=[],this.layout=="none"||this.layout=="absolute"||!this.layout)this._childrenByLayout=this.children.values;else{var t=[],r=[];ue(this.children.iterator(),function(a){e.layout=="horizontal"||e.layout=="grid"?C(a.percentWidth)?r.push(a):t.push(a):e.layout=="vertical"&&C(a.percentHeight)?r.push(a):t.push(a)}),this._childrenByLayout=t.concat(r)}this.calculateRelativeSize()},i.prototype.calculateRelativeSize=function(){var e=this,t=0,r=0;De(this._childrenByLayout,function(a){a.isMeasured&&(C(a.percentWidth)&&(t+=a.percentWidth),C(a.percentHeight)&&(r+=a.percentHeight))}),De(this._childrenByLayout,function(a){a.isMeasured&&(e.layout=="horizontal"&&(C(a.percentWidth)&&(a.relativeWidth=a.percentWidth/t),C(a.percentHeight)&&(a.relativeHeight=a.percentHeight/100)),e.layout=="vertical"&&(C(a.percentHeight)&&(a.relativeHeight=a.percentHeight/r),C(a.percentWidth)&&(a.relativeWidth=a.percentWidth/100)),e.layout=="grid"&&(C(a.percentHeight)&&(a.relativeHeight=a.percentHeight/100),C(a.percentWidth)&&(a.relativeWidth=a.percentWidth/100))),(e.layout=="absolute"||!a.isMeasured)&&(C(a.percentWidth)&&(a.relativeWidth=a.percentWidth/100),C(a.percentHeight)&&(a.relativeHeight=a.percentHeight/100))})},i.prototype.addChildren=function(){if(this.element){var e=So(this.children.values),t=e.map(function(l,u){return{idx:u,data:l}});
20t.sort(function(l,u){var h=l.data.zIndex||0,d=u.data.zIndex||0;return h<d?-1:h>d?1:l.idx-u.idx}),e=t.map(function(l){return l.data});var r=this.element,a=!0;if(r.node&&r.node.childNodes){for(var s=0,o=r.node.childNodes.length;s<o;s++)if(r.node.childNodes[s]!=e[s].group.node){a=!1;break}}a||(De(e,function(l){l.group&&r.add(l.group)}),this._background&&this.group.addToBack(this._background.group),this.invalidateLayout())}},i.prototype.createChild=function(e){var t=new e;return t.parent=this,t},i.prototype.removeChildren=function(){for(;this.children.length>0;){var e=this.children.getIndex(0);e.parent=void 0,this.children.removeValue(e)}},i.prototype.disposeChildren=function(){for(;this.children.length>0;){var e=this.children.getIndex(0);e.dispose(),this.children.removeValue(e)}},Object.defineProperty(i.prototype,"background",{get:function(){return this._background||(this._background=this.createBackground(),this.processBackground()),this._background},set:function(e){this._background&&this.background!=e&&this.removeDispose(this._background),e&&(this._background=e,this._disposers.push(e),this.processBackground())},enumerable:!0,configurable:!0}),i.prototype.handleGlobalScale=function(){n.prototype.handleGlobalScale.call(this),this.children.each(function(e){e.handleGlobalScale()})},i.prototype.createBackground=function(){return new gu},i.prototype.processBackground=function(){var e=this._background;e&&(e.isMeasured=!1,this._background.fill=new Ot().getFor("background"),e.parent=this,e.isMeasured=!1,this.children.removeValue(e),this._disposers.push(e),this.group.addToBack(this._background.group))},i.prototype.validateLayout=function(){var e=this;V.removeFromInvalidLayouts(this),this.layoutInvalid=!1,this._availableWidth=this.innerWidth,this._availableHeight=this.innerHeight;var t=0,r=0,a=!0;this.children&&(this.sortChildren(),De(this._childrenByLayout,function(s){var o,l;if(C(s.relativeWidth)?(o=de(e._availableWidth*s.relativeWidth,2),e.layout=="horizontal"&&(o-=s.pixelMarginRight+s.pixelMarginLeft)):e.layout=="horizontal"&&s.invalid&&s.validate(),C(s.relativeHeight)?(l=de(e._availableHeight*s.relativeHeight,2),e.layout=="vertical"&&(l-=s.pixelMarginTop+s.pixelMarginBottom)):e.layout=="vertical"&&s.invalid&&s.validate(),s.invalid==!1){if(C(s.relativeWidth)&&(s.maxWidth=o),C(s.relativeHeight)&&(s.maxHeight=l),s.isMeasured){e.layout=="horizontal"&&(C(s.percentWidth)||s.measuredWidth>0&&(e._availableWidth-=s.measuredWidth+s.pixelMarginLeft+s.pixelMarginRight)),e.layout=="vertical"&&(C(s.percentHeight)||s.measuredHeight>0&&(e._availableHeight-=s.measuredHeight+s.pixelMarginTop+s.pixelMarginBottom));var u=s.measuredWidth,h=s.measuredHeight;s.align!="none"&&(u+=s.pixelMarginLeft+s.pixelMarginRight),s.valign!="none"&&(h+=s.pixelMarginTop+s.pixelMarginBottom),t=Math.max(t,u),r=Math.max(r,h)}}else s.isMeasured&&(C(s.relativeWidth)&&s.maxWidth!=o&&(s.maxWidth=o,a=!1),C(s.relativeHeight)&&s.maxHeight!=l&&(s.maxHeight=l,a=!1))})),this._absoluteWidth=t,this._absoluteHeight=r,a&&this.arrange()},i.prototype.arrange=function(){var e=this,t=this.children,r=0,a=0,s=st(this.innerWidth,this._absoluteWidth),o=st(this.innerHeight,this._absoluteHeight),l,u,h,d,f=this.pixelPaddingLeft,p=this.pixelPaddingRight,v=this.pixelPaddingTop,m=this.pixelPaddingBottom,x=0,w=0,P=0,O=0,j=[],M=[],F,g,L,N=this.maxWidth,ye=this.maxHeight,H=this.minWidth,z=this.minHeight,Z=So(t.values);if(this.reverseOrder&&Z.reverse(),this.layout=="grid"){g=N,F=1;for(var _e=0,ve=Z.length;_e<ve;_e++){var $=Z[_e];if($.isMeasured&&!$.disabled&&!$.__disabled){var I=$.measuredWidth;I<g&&(g=I),I>F&&(F=I)}}g=ke(g,1,N),F=ke(F,1,N),this.fixedWidthGrid?L=N/F:L=N/g,L=st(1,Math.floor(L)),L=xt(this.maxColumns,L),j=this.getColumnWidth(Z,L,F)}for(var te,A,Q,he,_e=0,ve=Z.length;_e<ve;_e++){var $=Z[_e];if($.isMeasured&&!$.disabled&&!$.__disabled){var K=void 0,le=void 0,E=$.pixelMarginLeft,ne=$.pixelMarginRight,Ue=$.pixelMarginTop,Ve=$.pixelMarginBottom,Ye=$.measuredWidth,Xe=$.measuredHeight,ft=void 0,Ke=void 0,oi=void 0,Oi=void 0;switch(this.layout){case"none":break;case"absolute":switch($.align){case"left":K=E-$.maxLeft;break;case"center":K=(s-Ye)/2-$.maxLeft;break;case"right":K=s-ne-$.maxRight;break;default:$.x instanceof mt||(K=$.pixelX);break}switch($.valign){case"top":le=Ue-$.maxTop;break;case"middle":le=(o-Xe)/2-$.maxTop;break;case"bottom":le=o-Ve-$.maxBottom;break;default:$.y instanceof mt||(le=$.pixelY);break}break;case"vertical":switch($.align){case"left":K=E-$.maxLeft;break;case"center":K=(s-Ye)/2-$.maxLeft;break;case"right":K=s-ne-$.maxRight;break;default:K=$.pixelX;break}le=w+Ue-$.maxTop,w=le+$.maxBottom+Ve;break;case"horizontal":switch($.valign){case"top":le=Ue-$.maxTop;break;case"middle":le=(o-Xe)/2-$.maxTop;break;case"bottom":le=o-Ve-$.maxBottom;break;default:le=$.pixelY;break}K=x+E-$.maxLeft,x=K+$.maxRight+ne;break;case"grid":switch(K=x+E-$.maxLeft,$.valign){case"top":le=w+Ue-$.maxTop;break;case"middle":le=w+(o-Xe)/2-$.maxTop;break;case"bottom":le=w+o-Ve-$.maxBottom;break;default:le=w-$.maxTop;break}x+=j[O],M[P]=st(M[P],Xe),O++;var gi=j[O];if(C(gi)||(gi=F),x>xt(this.innerWidth,N)-gi+1&&O<L){L=O,x=0,w=0,P=0,O=0,j=this.getColumnWidth(Z,L,F),M=[],_e=-1;continue}O>=L&&(O=0,w+=M[P],P++,x=0);break}this.layout!=="none"&&($.moveTo({x:K,y:le}
20),ft=K+$.maxLeft-E,Ke=K+$.maxRight+ne,oi=le+$.maxTop-Ue,Oi=le+$.maxBottom+Ve,(Ke>u||!C(u))&&(u=Ke),(ft<l||!C(l))&&(l=ft),(oi<h||!C(h))&&(h=oi),(Oi>d||!C(d))&&(d=Oi),(Ke>A||!C(A))&&(A=Ke),(ft<te||!C(te))&&(te=ft),(oi<Q||!C(Q))&&(Q=oi),(Oi>he||!C(he))&&(he=he))}else $.validatePosition()}if(this.layout=="none"){var Zi=this.bbox;l=Zi.x,u=Zi.x+Zi.width,h=Zi.y,d=Zi.y+Zi.height}C(l)||(l=0,te=0),C(u)||(u=this._availableWidth,A=u),C(h)||(h=0,Q=0),C(d)||(d=this._availableHeight,he=d),C(Q)||(Q=0),C(he)||(he=Q),C(te)||(te=0),C(A)||(A=te),r=u-l,a=d-h,C(this.relativeWidth)&&(r=N-f-p,l=0,u=r),C(this.relativeHeight)&&(a=ye-v-m,h=0,d=a),C(this._pixelWidth)&&(l=0,r=this._pixelWidth-f-p),C(H)&&r<H&&(l=0,r=this.minWidth-f-p),C(this._pixelHeight)&&(h=0,a=this._pixelHeight-v-m),C(z)&&a<z&&(h=0,a=z-v-m);var Mr=A-te,wr=he-Q;if(this.layout!="none"&&(this.contentAlign||this.contentValign)&&t.length>0){var We,Ct,vt=r,Ar=a;vt<Mr&&(vt=Mr),Ar<wr&&(Ar=wr),this.contentAlign=="center"&&(We=(vt-Mr)/2),this.contentAlign=="right"&&(We=vt-Mr),this.contentValign=="middle"&&(Ct=(Ar-wr)/2),this.contentValign=="bottom"&&(Ct=Ar-wr),C(We)&&ue(t.iterator(),function(li){var zr=li.maxLeft,Ii=We;e.layout=="horizontal"&&(li.x=li.pixelX+Ii),e.layout=="grid"&&(li.x=li.pixelX+Ii),e.layout=="vertical"&&(Ii+=li.pixelMarginLeft,li.align=="none"&&(li.x=Ii-zr)),e.layout=="absolute"&&(Ii+=li.pixelMarginLeft,li.align=="none"&&(li.x=Ii-zr))}),C(Ct)&&ue(t.iterator(),function(li){var zr=li.maxTop,Ii=Ct;e.layout=="horizontal"&&(Ii+=li.pixelMarginTop,li.valign=="none"&&(li.y=Ii-zr)),e.layout=="grid"&&(Ii+=li.pixelMarginTop,li.y=Ii-zr),e.layout=="vertical"&&(li.y=li.pixelY+Ii),e.layout=="absolute"&&(Ii+=li.pixelMarginTop,li.valign=="none"&&(li.y=Ii-zr))})}var Vi=this.bbox;r=st(r,H),a=st(a,z),this.contentWidth=r,this.contentHeight=a,r=xt(r,N),a=xt(a,ye),this._bbox={x:l,y:h,width:r,height:a};var on=this.maxLeft,ln=this.maxTop,Be=this.maxBottom,Fi=this.maxRight;if(this.measure(),(on!=this.maxLeft||Fi!=this.maxRight||ln!=this.maxTop||Be!=this.maxBottom)&&this.events.isEnabled("transformed")){var ha={type:"transformed",target:this};Vi&&(ha.dummyData=Vi.width+" "+r+"  "+Vi.height+" "+a),this.events.dispatchImmediately("transformed",ha)}this.dispatchImmediately("layoutvalidated")},i.prototype.updateCenter=function(){n.prototype.updateCenter.call(this),this.updateBackgroun
20d()},i.prototype.updateBackground=function(){var e=this._background;e&&(e.x=this.maxLeft,e.y=this.maxTop,e.width=this.maxRight-this.maxLeft,e.height=this.maxBottom-this.maxTop)},i.prototype.getColumnWidth=function(e,t,r){var a=this,s=[],o=0;return De(e,function(l){l.isMeasured&&!l.disabled&&!l.__disabled&&(a.fixedWidthGrid?s[o]=r:s[o]=st(s[o],l.measuredWidth+l.pixelMarginRight+l.pixelMarginLeft),o++,o==t&&(o=0))}),s},Object.defineProperty(i.prototype,"layout",{get:function(){return this.getPropertyValue("layout")},set:function(e){this.setPropertyValue("layout",e)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contentValign",{get:function(){return this.getPropertyValue("contentValign")},set:function(e){this.setPropertyValue("contentValign",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contentAlign",{get:function(){return this.getPropertyValue("contentAlign")},set:function(e){this.setPropertyValue("contentAlign",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fixedWidthGrid",{get:function(){return this.getPropertyValue("fixedWidthGrid")},set:function(e){this.setPropertyValue("fixedWidthGrid",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxColumns",{get:function(){return this.getPropertyValue("maxColumns")},set:function(e){this.setPropertyValue("maxColumns",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"reverseOrder",{get:function(){return this.getPropertyValue("reverseOrder")},set:function(e){this.setPropertyValue("reverseOrder",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"setStateOnChildren",{get:function(){return this.getPropertyValue("setStateOnChildren")},set:function(e){this.setPropertyValue("setStateOnChildren",e,!0)},enumerable:!0,configurable:!0}),i.prototype.fitsToBounds=function(e){var t=e.x,r=e.y,a=.5;return t>=-a&&t<=this.pixelWidth+a&&r>=-a&&r<=this.pixelHeight+a},i.prototype.copyFrom=function(e){var t=this;n.prototype.copyFrom.call(this,e),this.layout=e.layout,this.setStateOnChildren=e.setStateOnChildren,e._background&&(this.background=e._background.clone(),this.background.copyFrom(e._background)),ue(e.children.iterator(),function(r){if(r.shouldClone){var a=r.clone();a.parent=t}})},Object.defineProperty(i.prototype,"preloader",{get:function(){var e=this._preloader;if(e)return e;if(this.parent)return this.parent.preloader},set:function(e){this._preloader&&this.removeDispose(this._preloader),this._preloader=e,e&&(e.parent=this.tooltipContainer,this._disposers.push(e))},enumerable:!0,configurable:!0}),i.prototype.setPaper=function(e){var t=this,r=n.prototype.setPaper.call(this,e);return r&&(this._background&&(this._background.paper=e,this._background.topParent=this.topParent),this.children.each(function(a){a.setPaper(e),a.topParent=t.topParent})),r},i.prototype.removeFromInvalids=function(){n.prototype.removeFromInvalids.call(this),V.removeFromInvalidLayouts(this)},i.prototype.setDataItem=function(e){this._dataItem!=e&&(ue(this.children.iterator(),function(t){t.dataItem=e}),this._background&&(this._background.dataItem=e)),n.prototype.setDataItem.call(this,e)},i.prototype.measureElement=function(){this.disabled||this.isTemplate||this.layout=="none"||this.__disabled||this.validateLayout()},Object.defineProperty(i.prototype,"fontFamily",{get:function(){return this.getPropertyValue("fontFamily")},set:function(e){this.setPropertyValue("fontFamily",e,!0)&&(this.setSVGAttribute({"font-family":e}),this.invalidateLabels())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fontSize",{get:function(){return this.getPropertyValue("fontSize")},set:function(e){this.setPropertyValue("fontSize",e,!0)&&(this.setSVGAttribute({"font-size":e}),this.invalidateLabels())},enumerable:!0,configurable:!0}),i.prototype.invalidateLabels=function(){this.children.each(function(e){e.hardInvalidate?(e.hardInvalidate(),e.events.once("validated",e.handleValidate,e,!1)):e instanceof i&&e.invalidateLabels()})},Object.defineProperty(i.prototype,"fontWeight",{get:function(){return this.getPropertyValue("fontWeight")}
20,set:function(e){this.setPropertyValue("fontWeight",e),this.setSVGAttribute({"font-weight":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textDecoration",{get:function(){return this.getPropertyValue("textDecoration")},set:function(e){this.setPropertyValue("textDecoration",e),this.setSVGAttribute({"text-decoration":e})},enumerable:!0,configurable:!0}),i.prototype.dispose=function(){this._background&&this._background.dispose(),this._shouldBeReady=[],this.disposeChildren(),n.prototype.dispose.call(this)},i.prototype.setState=function(e,t,r){var a=e;return e instanceof Xl&&(a=e.name),this.setStateOnChildren&&ue(this.children.iterator(),function(s){s.setState(a,t,r),a!="active"&&(s.isActive=!1)}),this._background&&this._background.setState(a),this.setStateOnSprites.length&&De(this.setStateOnSprites,function(s){s.setState(a,t,r)}),n.prototype.setState.call(this,e,t,r)},i.prototype.setActive=function(e){n.prototype.setActive.call(this,e),this._background&&(this._background.isActive=e)},i.prototype.dispatchReady=function(){var e=this;if(!this.isReady()&&!this.isDisposed()){var t=!0;Yr(this.children.iterator(),function(r){return!r.__disabled&&!r.disabled&&!r.isReady()?(t=!1,!1):!0}),Wd(this._shouldBeReady,function(r){return!r.__disabled&&!r.disabled&&!r.isReady()?(t=!1,!1):!0}),t?n.prototype.dispatchReady.call(this):V.events.once("exitframe",function(){e.dispatchReady(),yt.requestFrame()},void 0,!1)}},i.prototype._systemUpdate=function(e){this.children.each(function(t){t.invalid&&(t._systemCheckIfValidate()?t.dataItem&&t.dataItem.component&&t.dataItem.component.dataInvalid?e.push(t):t.validate():e.push(t))}),n.prototype._systemUpdate.call(this,e)},i.prototype._systemValidatePositions=function(){this.children.each(function(e){e.positionInvalid&&e.validatePosition()}),n.prototype._systemValidatePositions.call(this)},i.prototype._systemValidateLayouts=function(){this.layoutInvalid&&!this.isDisposed()&&this.validateLayout()},Object.defineProperty(i.prototype,"tapToActivate",{get:function(){return this._tapToActivate},set:function(e){this._tapToActivate!=e&&this.setTapToActivate(e)},enumerable:!0,configurable:!0}),i.prototype.setTapToActivate=function(e){var t=this;this._tapToActivate=e,this.interactions.isTouchProtected=e,e&&this.interactions.setEventDisposer("container-tapToActivate",e,function(){return new di([t.events.on("hit",t.handleTapToActivate,t,!1),t.events.on("down",t.initTapTimeout,t,!1),t.events.on("track",t.initTapTimeout,t,!1),Je().body.events.on("down",function(r){Je().isLocalElement(r.pointer,t.paper.svg,t.uid)||t.handleTapToActivateDeactivation()},t,!1)])}),Je()},i.prototype.handleTapToActivate=function(){this.interactions.isTouchProtected=!1,this.initTapTimeout()},i.prototype.handleTapToActivateDeactivation=function(){this.interactions.isTouchProtected=!0},i.prototype.initTapTimeout=function(){var e=this;this._tapToActivateTimeout&&this._tapToActivateTimeout.dispose(),this.tapToActivate&&!this.interactions.isTouchProtected&&this.tapTimeout&&(this._tapToActivateTimeout=this.setTimeout(function(){e.handleTapToActivateDeactivation()},this.tapTimeout))},i.prototype.moveHtmlContainer=function(e){var t=hy(e);if(t){this.htmlContainer=t;var r=this.svgContainer;r.htmlElement=t,r.htmlElement.appendChild(r.SVGContainer),r.initSensor(),r.measure()}else bt(e)&&e!=""&&yt.log("html container '"+e+"' not found")},i.prototype.hasLicense=function(){if(ir.commercialLicense)return!0;for(var e=0;e<ir.licenses.length;e++)if(ir.licenses[e].match(/^CH.{5,}/i))return!0;return!1},i}(ot);V.registeredClasses.Container=Ee;var Xb=function(){function n(){this._isPaused=!1,this.animations=[],this.uid=V.getUniqueId(),this.dummyCounter=0,this._frameRequested=!1,this.updateStepDuration=45,this.time=Date.now()}return n.prototype.reportTime=function(i,e){this.dummyCounter<6,e&&(this.time=Date.now())},n.prototype.update=function(){var i=this;if(!this._isPaused){this._frameRequested=!1;var e=Date.now();V.dispatchImmediately("enterframe");var t=[];for(var r in V.invalidDatas)if(kn(V.invalidDatas,r)){for(var a=V.invalidDatas[r];a.length>0;){var s=a[0],o=s.dataProvider;if(s.isDisposed())Qe(a,s);
20else if(o&&o.dataInvalid)try{if(o.validateData(),o.dataValidationProgress<1)break}catch(d){Qe(a,o),o.raiseCriticalError(d)}else try{if(s.validateData(),s.dataValidationProgress<1)break}catch(d){Qe(a,s),s.raiseCriticalError(d)}}if(Date.now()-e>this.updateStepDuration)break}for(;V.invalidRawDatas.length>0;){var s=V.invalidRawDatas[0];if(s.isDisposed())Qe(V.invalidRawDatas,s);else try{s.validateRawData()}catch(f){Qe(V.invalidRawDatas,s),s.raiseCriticalError(f)}}for(;V.invalidDataItems.length>0;){var s=V.invalidDataItems[0],o=s.dataProvider;if(!(s.isDisposed()||s.dataInvalid||o&&o.dataInvalid))try{s.validateDataItems()}catch(p){Qe(V.invalidDataItems,s),s.raiseCriticalError(p)}Qe(V.invalidDataItems,s)}for(;V.invalidDataRange.length>0;){var s=V.invalidDataRange[0],o=s.dataProvider;if(!(s.isDisposed()||s.dataInvalid||o&&o.dataInvalid))try{s.validateDataRange(),s.skipRangeEvent||s.dispatchImmediately("datarangechanged"),s.skipRangeEvent=!1}catch(p){Qe(V.invalidDataRange,s),s.raiseCriticalError(p)}Qe(V.invalidDataRange,s)}var l=[];$e(V.invalidLayouts,function(d){i.validateLayouts(d)}),$e(V.invalidPositions,function(d){i.validatePositions(d)});var u=!1;if(e=Date.now(),$e(V.invalidSprites,function(d,f){for(var p=0;f.length>0;){if(i.validateLayouts(d),i.validatePositions(d),p++,p==5){if(Date.now()-e>i.updateStepDuration)break;p=0}var v=f[f.length-1];if(v&&!v.isDisposed()){if(!v._systemCheckIfValidate())l.push(v);else if(!i.checkIfValidate2(v))l.push(v);else try{v._systemUpdate(l)}catch(m){v.invalid=!1,Qe(f,v),v.raiseCriticalError(m)}v.invalid=!1}Qe(f,v)}V.invalidSprites[d]=V.invalidSprites[d].concat(l)}),$e(V.invalidSprites,function(d,f){f.length>0&&(u=!0)}),$e(V.invalidDatas,function(d,f){f.length>0&&(u=!0)}),De(So(this.animations),function(d){d.update()}),$e(V.invalidLayouts,function(d){i.validateLayouts(d)}),$e(V.invalidPositions,function(d){i.validatePositions(d)}),Qm(),$e(V.invalidLayouts,function(d){i.validateLayouts(d)}),$e(V.invalidPositions,function(d){i.validatePositions(d)}),V.dispatchImmediately("exitframe"),(u||this.animations.length>0||t.length>0)&&this.requestFrame(),this.updateStepDuration<200){var h=!0;$e(V.invalidDatas,function(d,f){f.length>0&&(h=!1)}),$e(V.invalidSprites,function(d,f){f.length>0&&(h=!1)}),h&&(this.updateStepDuration=200)}}},n.prototype.checkIfValidate2=function(i){return!(i.dataItem&&i.dataItem.component&&i.dataItem.component.dataInvalid&&!i.dataItem.component.isTemplate)},n.prototype.requestFrame=function(){var i=this;this._frameRequested||(Bd(function(){i.update()}),this._frameRequested=!0)},n.prototype.softInvalidate=function(i){var e=this;i.children.each(function(t){t instanceof Ee&&e.softInvalidate(t),t.measureFailed&&(pr(t,"Label")?t.hardInvalidate():t.invalidate(),t.measureFailed=!1)})},n.prototype.validatePositions=function(i){for(var e=V.invalidPositions[i];e.length>0;){var t=e[e.length-1];if(t.isDisposed())Qe(e,t);else try{t._systemValidatePositions()}catch(r){t.positionInvalid=!1,Qe(e,t),t.raiseCriticalError(r)}}},n.prototype.validateLayouts=function(i){for(var e=V.invalidLayouts[i];e.length>0;){var t=e[e.length-1];if(t.isDisposed())Qe(e,t);else try{t.children.each(function(r){r._systemValidateLayouts()}),t.validateLayout()}catch(r){t.layoutInvalid=!1,Qe(e,t),t.raiseCriticalError(r)}}},n.prototype.log=function(i){jb(i)},Object.defineProperty(n.prototype,"isPaused",{get:function(){return this._isPaused},set:function(i){this._isPaused=i,i||(this._frameRequested=!1,this.requestFrame())},enumerable:!0,configurable:!0}),n.VERSION="4.10.38",n}(),yt=new Xb,_y=function(){function n(){}return n.prototype.parse=function(i){return[]},Object.defineProperty(n.prototype,"parsableNumbers",{get:function(){return this.options.numberFields&&this.options.numberFields.length>0},enumerable:!0,configurable:!0}),n.prototype.maybeToNumber=function(i,e){return this.options.numberFields.indexOf(i)!==-1?nd(e):e},Object.defineProperty(n.prototype,"parsableDates",{get:function(){return this.options.dateFields&&this.options.dateFields.length>0},enumerable:!0,configurable:!0}),n.prototype.maybeToDate=function(i,e){return this.options.dateFields.indexOf(i)!==-1?this.options.dateFormatter.parse(e,this.dateFormat):e},n.prototype.maybeToEmpty=function(i){return(!T(i)||i=="")&&T(this.options.emptyAs)?this.options.emptyAs:i},Object.defineProperty(n.prototype,"dateFormatter",{get:function(){return this.options.dateFormatter||(this.options.dateFormatter=new zo,this.options.dateFormat&&(this.options.dateFormat=this.options.dateFormat)),this.options.dateFormatter},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dateFormat",{get:function(){return this.options.dateFormat||this.dateFormatter.inputDateFormat},enumerable:!0,configurable:!0}),n}(),Gb=[",",";","	"],Kl=function(n){W(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.contentType="text/csv",e.options={delimiter:"",reverse:!1,skipRows:0,skipEmpty:!0,useColumnNames:!1},e}return i.isCSV=function(e){return!!i.getDelimiterFromData(e)},i.getDelimiterFromData=function(e){var t=e.split(`
21`),r=t.length,a;return De(Gb,function(s){for(var o=0,l=0,u=0;u<r;++u)if(o=t[u].split(s).length,o>
211){if(l===0)l=o;else if(o!=l){l=0;break}}else{l=0;break}l&&(a=s)}),a},i.prototype.parse=function(e){this.options.delimiter||(this.options.delimiter=i.getDelimiterFromData(e));var t=this.CSVToArray(e,this.options.delimiter),r=T(this.options.emptyAs),a=this.parsableNumbers,s=this.parsableDates,o=[],l=[],u,h;for(h=0;h<this.options.skipRows;h++)t.shift();if(this.options.useColumnNames){l=t.shift();for(var d=0;d<l.length;d++)u=T(l[d])?l[d].replace(/^\s+|\s+$/gm,""):"",u===""&&(u="col"+d),l[d]=u}for(var f;f=this.options.reverse?t.pop():t.shift(),!!f;)if(!(this.options.skipEmpty&&f.length===1&&f[0]==="")){var p={};for(h=0;h<f.length;h++)u=l[h]===void 0?"col"+h:l[h],p[u]=f[h]===""?this.options.emptyAs:f[h],r&&(p[u]=this.maybeToEmpty(p[u])),a&&(p[u]=this.maybeToNumber(u,p[u])),s&&(p[u]=this.maybeToDate(u,p[u]));o.push(p)}return o},i.prototype.CSVToArray=function(e,t){t=t||",";for(var r=new RegExp("(\\"+t+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+t+"\\r\\n]*))","gi"),a=[[]],s=null;s=r.exec(e),!!s;){var o=s[1];o.length&&o!==t&&a.push([]);var l=void 0;s[2]?l=s[2].replace(new RegExp('""',"g"),'"'):l=s[3],a[a.length-1].push(l)}return a},i}(_y),go=function(n){W(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.contentType="application/json",e.options={},e}return i.isJSON=function(e){try{return JSON.parse(e),!0}catch{return!1}},i.prototype.parse=function(e){var t=this,r;try{T(JSON)&&(r=JSON.parse(e))}catch{return}var a=T(this.options.emptyAs),s=this.parsableNumbers,o=this.parsableDates;if(Array.isArray(r)&&(s||o||a))for(var l=function(d,f){var p=r[d];$e(p,function(v,m){a&&(p[v]=t.maybeToEmpty(p[v])),s&&(p[v]=t.maybeToNumber(v,p[v])),o&&(p[v]=t.maybeToDate(v,p[v]))})},u=0,h=r.length;u<h;u++)l(u,h);return r},i}(_y),$b=function(){function n(){this.adapter=new Lr(this)}return n.prototype.load=function(i){var e=Array.isArray(i)?i:[i],t=Wo(e,function(r){return r.dispatchImmediately("started"),r.dispatchImmediately("loadstarted"),$l(r.url,r,r.requestOptions)});Promise.all(t).then(function(r){De(r,function(a){var s=a.target;s.dispatchImmediately("loadended"),a.error?s.events.isEnabled("error")&&s.events.dispatchImmediately("error",{type:"error",code:a.xhr.status,message:s.language.translate("Unable to load file: %1",null,s.url),target:s}):s.processData(a.response,a.type),s.dispatchImmediately("ended")})}).catch(function(r){r.target&&(r.target.dispatchImmediately("loadended"),r.target.events.isEnabled("error")&&r.target.events.dispatchImmediately("error",{type:"error",code:r.xhr.status,message:r.target.language.translate("Unable to load file: %1",null,r.target.url),target:r.target}),r.target.dispatchImmediately("ended"))})},n.prototype.getParserByType=function(i){var e=this.adapter.apply("getParserByType",{parser:null,type:i}).parser;if(e)return e;if(i=="csv"||i=="text/csv"||i=="application/vnd.ms-excel")return new Kl;if(i=="json"||i=="application/json")return new go},n.prototype.getParserByData=function(i,e){var t=this.adapter.apply("getParserByData",{parser:null,data:i,type:e}).parser;if(!t){if(t=this.getParserByType(e),t)return t;if(go.isJSON(i))return this.getParserByType("json");if(Kl.isCSV(i))return this.getParserByType("csv")}return t},n}
21(),Sh=new $b,Kb=function(n){W(i,n);function i(e,t){var r=n.call(this)||this;return r.adapter=new Lr(r),r._requestOptions={},r._incremental=!1,r._incrementalParams={},r._keepCount=!1,r._updateCurrentData=!1,r.showPreloader=!0,r.className="DataSource",e&&(r.url=e),t&&(typeof t=="string"?r.parser=Sh.getParserByType(t):r.parser=t),r}return i.prototype.processData=function(e,t){if(this.dispatchImmediately("parsestarted"),!this.parser&&(this.parser=Sh.getParserByData(e,t),!this.parser)){if(this.events.isEnabled("parseerror")){var r={type:"parseerror",message:this.language.translate("No parser available for file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",r)}this.dispatchImmediately("parseended");return}if(this.parser.options=this.adapter.apply("parserOptions",this.parser.options),this.parser.options.dateFields=this.adapter.apply("dateFields",this.parser.options.dateFields||[]),this.parser.options.numberFields=this.adapter.apply("numberFields",this.parser.options.numberFields||[]),this.parser.options.dateFields&&!this.parser.options.dateFormatter&&(this.parser.options.dateFormatter=this.dateFormatter),this.data=this.adapter.apply("parsedData",this.parser.parse(this.adapter.apply("unparsedData",e))),!T(this.data)&&this.events.isEnabled("parseerror")){var a={type:"parseerror",message:this.language.translate("Error parsing file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",a)}this.dispatchImmediately("parseended"),T(this.data)&&this.dispatchImmediately("done",{data:this.data}),this.lastLoad=new Date},Object.defineProperty(i.prototype,"url",{get:function(){var e=this.disableCache?this.timestampUrl(this._url):this._url;return this.incremental&&this.component.data.length&&(e=this.addUrlParams(e,this.incrementalParams)),this.adapter.apply("url",e)},set:function(e){this._url=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"requestOptions",{get:function(){return this.adapter.apply("requestOptions",this._requestOptions)},set:function(e){this._requestOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"parser",{get:function(){return this._parser||(this._parser=new go),this.adapter.apply("parser",this._parser)},set:function(e){this._parser=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"reloadFrequency",{get:function(){return this.adapter.apply("reloadTimeout",this._reloadFrequency)},set:function(e){var t=this;this._reloadFrequency!=e&&(this._reloadFrequency=e,e?T(this._reloadDisposer)||(this._reloadDisposer=this.events.on("ended",function(r){t._reloadTimeout=setTimeout(function(){t.load()},t.reloadFrequency)})):T(this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"incremental",{get:function(){return this.adapter.apply("incremental",this._incremental)},set:function(e){this._incremental=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"incrementalParams",{get:function(){return this.adapter.apply("incrementalParams",this._incrementalParams)},set:function(e){this._incrementalParams=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keepCount",{get:function(){return this.adapter.apply("keepCount",this._keepCount)},set:function(e){this._keepCount=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"updateCurrentData",{get:function(){return this.adapter.apply("updateCurrentData",this._updateCurrentData)},set:function(e){this._updateCurrentData=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"language",{get:function(){return this._language?this._language:this.component?(this._language=this.component.language,this._language):(this.language=new Sa,this.language)},set:function(e){this._language=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.component?(this._dateFormatter=this.component.dateFormatter,this._dateFormatter):(this.dateFormatter=new zo,this.dateFormatter)},set:function(e){this._dateFormatter=e},enumerable:!0,configurable:!0}),i.prototype.timestampUrl=function(e){var t=new Date().getTime().toString(),r={};return r[t]="",this.addUrlParams(e,r)},i.prototype.dispose=function(){n.prototype.dispose.call(this),this._reloadTimeout&&clearTimeout(this._reloadTimeout),T(this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0)},i.prototype.load=function(){this.url&&(this._reloadTimeout&&clearTimeout(this._reloadTimeout),Sh.load(this))},i.prototype.addUrlParams=function(e,t){var r=e.match(/\?/)?"&":"?",a=[];return $e(t,function(s,o){o!=""?a.push(s+"="+encodeURIComponent(o)):a.push(s)}),a.length?e+r+a.join("&"):e},i.prototype.processConfig=function(e){V.registeredClasses.json=go,V.registeredClasses.JSONParser=go,V.registeredClasses.csv=Kl,V.registeredClasses.CSVParser=Kl,n.prototype.processConfig.call(this,e)},i}(Nn),qb=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._rules=new Pt,e._appliedRules={},e._appliedTargets=[],e._useDefault=!0,e.adapter=new Lr(e),e._enabled=!1,e._responsiveDisposers=[],e._noStates=[],e.className="Responsive",e.rules.events.on("inserted",function(){e.checkRules()},!0),e.rules.events.on("removed",function(){e.checkRules()},!0),e._disposers.push(e.rules.events),e.applyTheme(),e}return Object.defineProperty(i.prototype,"component",{get:function(){return this._component},set:function(e){var t=this;e!=this._component&&(this.disposeResponsiveHandlers(),this._component=e,this._responsiveDisposers.push(ai(this.component).events.on("sizechanged",function(){t.checkRules()},this)),this._responsiveDisposers.push(ai(this.component).events.once("datavalidated",function(){t._component.isReady()&&t.checkRules(!0)},this)),this.enabled=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"enabled",{get:function(){return this.adapter.apply("enabled",this._enabled)},set:function(e){this._enabled!=e&&(this._enabled=e,this.applyRules())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"useDefault",{get:function(){return this.adapter.apply("useDefault",this._useDefault)}
21,set:function(e){this._useDefault!=e&&(this._useDefault=e,this.applyRules())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rules",{get:function(){return this.adapter.apply("rules",this._rules)},set:function(e){this._rules=e,this._enabled=!0,this.applyRules()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultRules",{get:function(){return this.adapter.apply("defaultRules",qi)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"allRules",{get:function(){var e=new Pt;return this.useDefault&&e.copyFrom(this.defaultRules),e.copyFrom(this.rules),this.adapter.apply("allRules",e)},enumerable:!0,configurable:!0}),i.prototype.isApplied=function(e){var t=this._appliedRules[e];return T(t)?t:!1},i.prototype.checkRules=function(e){var t=this;e===void 0&&(e=!1);var r=this.allRules;if(!(!r||r.length==0)){var a=!1,s=ai(this.component);if(!(s.pixelWidth==0||s.pixelHeight==0)&&(ue(r.iterator(),function(o){o.id||(o.id=V.getUniqueId());var l=o.relevant(s);(l&&!t.isApplied(o.id)||!l&&t.isApplied(o.id))&&(a=!0),t._appliedRules[o.id]=l}),e&&(a=!0),a)){if(!this.component.isReady()){s.hidden=!0,s.events.once("ready",function(o){o.target.show(0),t._applyRules()});return}this.dispatchImmediately("ruleschanged"),this._applyRules()}}},i.prototype._applyRules=function(){var e=this;this._timeout&&this._timeout.dispose(),this._timeout=this.setTimeout(function(){e.applyRules()},10)},i.prototype.applyRules=function(e){var t=this,r=T(e)?e:ai(this.component),a=!1;if(this.enabled){var s=!1;ue(this.allRules.iterator(),function(o){var l=t.getState(o,r);l&&(a||(yn(t._appliedTargets,r.uid)!==-1&&r.setState(t.getDefaultState(r),0),a=!0),t.isApplied(ai(o.id))&&(l.transitionDuration=0,t.setTargetState(r,l),t.dispatchImmediately("ruleapplied",{rule:o}),s=!0))}),s?$m(this._appliedTargets,r.uid):Qe(this._appliedTargets,r.uid)}r.children&&ue(r.children.iterator(),function(o){t.applyRules(o)})},i.prototype.getState=function(e,t){var r="responsive-"+e.id,a=t.uid+"_"+r;if(yn(this._noStates,a)===-1){if(t.states.hasKey(r))return t.states.getKey(r);var s=e.state(t,r);return s||this._noStates.push(a),s}},i.prototype.getDefaultState=function(e){return e.states.hasKey("responsive-default")?e.states.getKey("responsive-default"):e.states.create("responsive-default")},i.prototype.setTargetState=function(e,t){var r=this,a=this.getDefaultState(e);$e(t.properties,function(s,o){T(a.properties[s])||(a.properties[s]=r.getValue(e,s))}),e.setState(t)},i.prototype.getValue=function(e,t){var r=e.getPropertyValue(t);return!T(r)&&T(e[t])&&(r=e[t]),r},i.prototype.dispose=function(){this.disposeResponsiveHandlers(),n.prototype.dispose.call(this)},i.prototype.disposeResponsiveHandlers=function(){for(var e=this._responsiveDisposers.pop();e;)e.dispose(),e=this._responsiveDisposers.pop()},i}(Nn),qi=new Pt;qi.events.on("inserted",function(n){n.newValue.id=V.getUniqueId()});var lr=function(){function n(){}return n.widthXXS=function(i){return i.pixelWidth<=n.XXS},n.widthXS=function(i){return i.pixelWidth<=n.XS},n.widthS=function(i){return i.pixelWidth<=n.S},n.widthM=function(i){return i.pixelWidth<=n.M},n.widthL=function(i){return i.pixelWidth<=n.L},n.widthXL=function(i){return i.pixelWidth<=n.XL},n.widthXXL=function(i){return i.pixelWidth<=n.XXL},n.heightXXS=function(i){return i.pixelHeight<=n.XXS},n.heightXS=function(i){return i.pixelHeight<=n.XS},n.heightS=function(i){return i.pixelHeight<=n.S},n.heightM=function(i){return i.pixelHeight<=n.M},n.heightL=function(i){return i.pixelHeight<=n.L},n.heightXL=function(i){return i.pixelHeight<=n.XL},n.heightXXL=function(i){return i.pixelHeight<=n.XXL},n.isXXS=function(i){return i.pixelWidth<=n.XXS&&i.pixelHeight<=n.XXS},n.isXS=function(i){return i.pixelWidth<=n.XS&&i.pixelHeight<=n.XS},n.isS=function(i){return i.pixelWidth<=n.S&&i.pixelHeight<=n.S},n.isM=function(i){return i.pixelWidth<=n.M&&i.pixelHeight<=n.M},n.isL=function(i){return i.pixelWidth<=n.L&&i.pixelHeight<=n.L},n.isXL=function(i){return i.pixelWidth<=n.XL&&i.pixelHeight<=n.XL},n.isXXL=function(i){return i.pixelWidth<=n.XXL&&i.pixelHeight<=n.XXL},n.maybeXXS=function(i){return i.pixelWidth<=n.XXS||i.pixelHeight<=n.XXS},n.maybeXS=function(i){return i.pixelWidth<=n.XS||i.pixelHeight<=n.XS},n.maybeS=function(i){return i.pixelWidth<=n.S||i.pixelHeight<=n.S},n.maybeM=function(i){return i.pixelWidth<=n.M||i.pixelHeight<=n.M},n.maybeL=function(i){return i.pixelWidth<=n.L||i.pixelHeight<=n.L},n.maybeXL=function(i){return i.pixelWidth<=n.XL||i.pixelHeight<=n.XL},n.maybeXXL=function(i){return i.pixelWidth<=n.XXL||i.pixelHeight<=n.XXL},n.XXS=100,n.XS=200,n.S=300,n.M=400,n.L=600,n.XL=800,n.XXL=1e3,n}(),es=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._disabled=!1,e.hasProperties=!1,e.values={},e.categories={},e.dates={},e.locations={},e.workingLocations={},e.properties={},e.sprites=[],e.isTemplate=!1,e._index=null,e._visible=!0,e._hidden=!1,e._ignoreMinMax=!1,e.hasChildren={},e.isHiding=!1,e._valueAnimations={},e._locationAnimations={},e.className="DataItem",e.applyTheme(),e}return Object.defineProperty(i.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new Lr(this)),this._adapterO},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"index",{get:function(){return this.component&&this._index!=null?this._index:-1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Rs(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return this._hidden?!1:this._visible},set:function(e){e&&(this.hidden=!1),this._visible!=e&&this.setVisibility(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hidden",{get:function(){return this._hidden},set:function(e){this._hidden!=e&&(this._hidden=e,e?this.setVisibility(!1):this.setVisibility(!0,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"__disabled",{get:function(){return this._disabled},set:function(e){this._disabled=e,De(this.sprites,function(t){t.__disabled=e})},enumerable:!0,configurable:!0}),i.prototype.setVisibility=function(e,t){if(De(this.sprites,function(a){e?a.visible=a.defaultState.properties.visible:a.hiddenState?a.visible=a.hiddenState.properties.visible:a.visible=!1}),this._visible=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("visibilitychanged")){var r={type:"visibilitychanged",target:this,visible:e};this.events.dispatchImmediately("visibilitychanged",r)}},i.prototype.show=function(e,t,r){var a=this;if(!this.hidden){this.setVisibility(!0,!0),this.isHiding=!1,this._hideDisposer&&this.removeDispose(this._hideDisposer);var s;return r&&De(r,function(o){s=a.setWorkingValue(o,a.values[o].value,e,t)}),De(this.sprites,function(o){var l=o.show(e);l!=null&&!l.isFinished()&&(a._disposers.push(l),t!=null&&t>0&&l.delay(t))}),s}},i.prototype.dispose=function(){n.prototype.dispose.call(this),De(this.sprites,function(e){e.dispose()}),this.sprites=[]},i.prototype.hide=function(e,t,r,a){var s=this;if(this.isHiding=!0,De(this.sprites,function(l){var u=l.hide(e);u!=null&&!u.isFinished()&&(s._disposers.push(u),t!=null&&t>0&&u.delay(t))}),C(r)&&a){var o;if(De(a,function(l){var u=s.setWorkingValue(l,r,e,t);u&&(o=u)}),o&&!o.isFinished())return this._hideDisposer=o.events.on("animationended",function(){s.setVisibility(!1,!0),s.isHiding=!1}),this._disposers.push(this._hideDisposer),o;this.isHiding=!1,this.setVisibility(!1,!0)}else this.isHiding=!1,this.setVisibility(!1)},i.prototype.getDuration=function(e){if(!C(e)){var t=this.component;t&&(e=t.interpolationDuration)}if(e!=null)return this._adapterO?this._adapterO.apply("duration",e):e},i.prototype.getValue=function(e,t){if(e&&this.component){t||(t=this.component.dataFields[e+"Show"],t||(t="value"));var r=this.values[e][t];return this._adapterO&&this._adapterO.isEnabled("value")?this._adapterO.apply("value",{value:r,field:e}).value:r}},i.prototype.getWorkingValue=function(e){if(e&&this.component){var t=this.component.dataFields[e+"Show"];return t||(t="workingValue"),this._adapterO?this._adapterO.apply("workingValue",{workingValue:this.values[e][t],field:e}).workingValue:this.values[e][t]}},i.prototype.getActualWorkingValue=function(e){return this.values[e].workingValue},i.prototype.setValue=function(e,t,r,a){var s=this.values[e].value,o=this.getDuration(r);if(t=Bt(t),s!==t){if(this.values[e].value=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("valuechanged")){var l={type:"valuechanged",target:this,property:e};this.events.dispatchImmediately("valuechanged",l)}this.component&&this.component.handleDataItemValueChange(this,e)}this.setWorkingValue(e,t,o,a)},i.prototype.setCalculatedValue=function(e,t,r){var a=this.values[e][r];if(a!==t&&C(t)){if(this.values[e][r]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("calculatedvaluechanged")){var s={type:"calculatedvaluechanged",target:this,property:e};this.events.dispatchImmediately("calculatedvaluechanged",s)}this.component&&this.component.handleDataItemCalculatedValueChange(this,e)}},i.prototype.setWorkingValue=function(e,t,r,a){if(C(this.values[e].value)){var s=this.getDuration(r),o=this.values[e].workingValue;if(s!=null&&s>0&&C(o)&&this.component)if(o!=t){var l=this.animate({childObject:this.values[e],property:"workingValue",from:o,to:t,dummyData:e},s,this.component.interpolationEasing);return a!=null&&l.delay(a),l.events.on("animationstarted",this.handleInterpolationProgress,this),l.events.on("animationprogress",this.handleInterpolationProgress,this),l.events.on("animationended",this.handleInterpolationProgress,this),this._valueAnimations[e]=l,l}else{var u=this._valueAnimations[e];u&&u.stop(),this.values[e].workingValue=t}else{var u=this._valueAnimations[e];if(u&&u.stop(),this.values[e].workingValue=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var h={type:"workingvaluechanged",target:this,property:e};this.events.dispatchImmediately("workingvaluechanged",h)}this.component&&this.component.handleDataItemWorkingValueChange(this,e)}}},i.prototype.setLocation=function(e,t,r,a){var s=this.locations[e];if(s!==t){if(this.locations[e]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("locationchanged")){var o={type:"locationchanged",target:this,property:e};this.events.dispatchImmediately("locationchanged",o)}this.component&&this.component.handleDataItemValueChange(this,e),this.setWorkingLocation(e,t,r,a)}},i.prototype.setWorkingLocation=function(e,t,r,a){var s=this.getDuration(r),o=this.workingLocations[e];if(s!=null&&s>0&&C(o)&&this.component)if(o!=t){var l=this.animate({childObject:this.workingLocations,property:e,from:o,to:t,dummyData:e},s,this.component.interpolationEasing);return a!=null&&l.delay(a),l.events.on("animationstarted",this.handleInterpolationProgress,this),l.events.on("animationprogress",this.handleInterpolationProgress,this),l.events.on("animationended",this.handleInterpolationProgress,this),this._locationAnimations[e]=l,l}else{var u=this._locationAnimations[e];u&&u.stop(),this.workingLocations[e]=t}else{var u=this._locationAnimations[e];if(u&&u.stop(),this.workingLocations[e]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workinglocationchanged")){var h={type:"workinglocationchanged",target:this,property:e};this.events.dispatchImmediately("workinglocationchanged",h)}this.component&&this.component.handleDataItemWorkingLocationChange(this,e)}},i.prototype.setDate=function(e,t,r){!Do(t)&&this.component&&(t=this.component.dateFormatter.parse(t));var a=this.dates[e];a!==t&&(this.dates[e]=t,this.setValue(e,t.getTime(),r))},i.prototype.getDate=function(e){return this._adapterO?this._adapterO.apply("date",{date:this.dates[e],field:e}).date:this.dates[e]},i.prototype.setProperty=function(e,t){if(this.properties[e]!==t){if(this.hasProperties=!0,this.properties[e]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var r={type:"propertychanged",target:this,property:e,value:t};this.events.dispatchImmediately("propertychanged",r)}this.component&&this.component.handleDataItemPropertyChange(this,e)}},i.prototype.setCategory=function(e,t){bt(t)||(t=Nd(t)),this.categories[e]!==t&&(this.categories[e]=t)},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),e.dataContext&&(this.dataContext=D0(e.dataContext,{})),na(e.locations,this.locations),e._adapterO&&this.adapter.copyFrom(e._adapterO),this.component=e.component},Object.defineProperty(i.prototype,"opacity",{set:function(e){De(this.sprites,function(t){t.opacity=e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(e){if(this._ignoreMinMax=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var t={type:"propertychanged",target:this,property:"ignoreMinMax",value:e};this.events.dispatchImmediately("propertychanged",t)}this.component&&this.component.handleDataItemPropertyChange(this,"ignoreMinMax")},enumerable:!0,configurable:!0}),i.prototype.animate=function(e,t,r){return new cn(this,e,t,r).start()},i.prototype.handleInterpolationProgress=function(e){var t=e.target,r=t.animationOptions[0];if(r){if(this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var a={type:"workingvaluechanged",target:this,property:r.dummyData};this.events.dispatchImmediately("workingvaluechanged",a)}this.component&&this.component.handleDataItemWorkingValueChange(this,r.dummyData)}},i.prototype.hasValue=function(e){for(var t=0,r=e.length;t<r;t++){var a=this.values[e[t]];if(!a||!T(a.value))return!1}return!0},Object.defineProperty(i.prototype,"depth",{get:function(){return this.parent?this.parent.depth+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataContext",{get:function(){return this._dataContext},set:function(e){this._dataContext=e},enumerable:!0,configurable:!0}),i.prototype.addSprite=function(e){e.dataItem&&e.dataItem!=this&&Qe(e.dataItem.sprites,e),this.visible||e.hide(0),this.isHiding&&e.hide(),this.sprites.push(e),e.dataItem=this},i}(Nn),Ns=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.dataFields={},e._dataSources={},e._parseDataFrom=0,e._dataDisposers=[],e._currentDataSetId="",e._start=0,e._end=1,e.skipRangeEvent=!1,e.rangeChangeDuration=0,e.rangeChangeEasing=Ja,e.parsingStepDuration=50,e.dataInvalid=!1,e.rawDataInvalid=!1,e.dataRangeInvalid=!1,e.dataItemsInvali
21d=!1,e.interpolationDuration=0,e.interpolationEasing=Ja,e.sequencedInterpolation=!0,e.sequencedInterpolationDelay=0,e.dataValidationProgress=0,e._addAllDataItems=!0,e._usesData=!0,e.className="Component",e.minZoomCount=1,e.maxZoomCount=0,e._dataItems=new Nl(e.createDataItem()),e._dataItems.events.on("inserted",e.handleDataItemAdded,e,!1),e._dataItems.events.on("removed",e.handleDataItemRemoved,e,!1),e._disposers.push(new zt(e._dataItems)),e._disposers.push(e._dataItems.template),e.invalidateData(),e.dataUsers.events.on("inserted",e.handleDataUserAdded,e,!1),e._disposers.push(new di(e._dataDisposers)),e._start=0,e._end=1,e.maxZoomDeclination=1,e.applyTheme(),e}return i.prototype.createDataItem=function(){return new es},i.prototype.handleDataUserAdded=function(e){var t=e.newValue;t.dataProvider=this},i.prototype.handleDataItemValueChange=function(e,t){this.dataItemsInvalid||this.invalidateDataItems()},i.prototype.handleDataItemWorkingValueChange=function(e,t){},i.prototype.handleDataItemWorkingLocationChange=function(e,t){},i.prototype.handleDataItemCalculatedValueChange=function(e,t){},i.prototype.handleDataItemPropertyChange=function(e,t){},i.prototype.processDataItem=function(e,t){var r=this;if(e){t||(t={}),e.dataContext=t;var a=!1;$e(this.dataFields,function(s,o){var l=s,u=t[o];if(r._adapterO&&r._adapterO.isEnabled("dataContextValue")&&(u=r._adapterO.apply("dataContextValue",{field:l,value:u,dataItem:e}).value),T(u))if(a=!0,e.hasChildren[l]){var h=r.createDataItem();h.copyFrom(r.mainDataSet.template);var d=new Nl(h);d.events.on("inserted",r.handleDataItemAdded,r,!1),d.events.on("removed",r.handleDataItemRemoved,r,!1),r._dataDisposers.push(new zt(d));for(var f=u.length,p=0;p<f;p++){var v=u[p],m=d.create();m.parent=e,r.processDataItem(m,v)}var x=e;x[l]=d}else e[l]=u}),$e(this.propertyFields,function(s,o){var l=s,u=t[o];T(u)&&(a=!0,e.setProperty(l,u))}),!this._addAllDataItems&&!a&&this.mainDataSet.remove(e)}},i.prototype.updateDataItem=function(e){var t=this;if(e){var r=e.dataContext;$e(this.dataFields,function(a,s){var o=a,l=r[s];if(t._adapterO&&(l=t._adapterO.apply("dataContextValue",{field:o,value:l,dataItem:e}).value),T(l))if(e.hasChildren[o]){var u=e,h=u[o];h.each(function(d){t.updateDataItem(d)})}else e[o]=l}),$e(this.propertyFields,function(a,s){var o=a,l=r[s];T(l)&&e.setProperty(o,l)})}},i.prototype.validateDataElements=function(){for(var e=this.endIndex,t=this.startIndex;t<e;t++){var r=this.dataItems.getIndex(t);r&&this.validateDataElement(r)}},i.prototype.validate=function(){this.validateDataElements(),n.prototype.validate.call(this)},i.prototype.validateDataElement=function(e){},i.prototype.addData=function(e,t,r){var a=this;if(!this.dataInvalid&&this.inited&&(this._parseDataFrom=this.data.length),r||(e instanceof Array?De(e,function(s){a.data.push(s)}):this.data.push(e)),this.inited)this.removeData(t,r);else if(C(t))for(;t>0;)this.data.shift(),t--;this.invalidateData()},i.prototype.removeData=function(e,t){if(C(e)&&e>0){for(;e>0;){var r=this.mainDataSet.getIndex(0);r&&this.mainDataSet.remove(r),this.dataUsers.each(function(a){if(!a.data||a.data.length==0){var s=a.mainDataSet.getIndex(0);s&&a.mainDataSet.remove(s)}}),t||this.data.shift(),this._parseDataFrom>0&&this._parseDataFrom--,e--}this.invalidateDataItems()}},i.prototype.invalidateData=function(){this.disabled||this.isTemplate||(V.addToInvalidComponents(this),yt.requestFrame(),this.dataInvalid=!0,ue(this.dataUsers.iterator(),function(e){e.invalidateDataItems()}))},i.prototype.invalidateDataUsers=function(){ue(this.dataUsers.iterator(),function(e){e.invalidate()})},i.prototype.invalidateDataItems=function(){this.disabled||this.isTemplate||(Jr(V.invalidDataItems,this),yt.requestFrame(),this.dataItemsInvalid=!0,ue(this.dataUsers.iterator(),function(e){e.invalidateDataItems()}))},i.prototype.invalidateDataRange=function(){this.disabled||this.isTemplate||(this.dataRangeInvalid=!0,Jr(V.invalidDataRange,this),yt.requestFrame())},i.prototype.validateDataRange=function(){Qe(V.invalidDataRange,this),this.dataRangeInvalid=!1,(this.startIndex!=this._prevStartIndex||this.endIndex!=this._prevEndIndex)&&(this.rangeChangeUpdate(),this.appendDataItems(),this.invalidate(),this.dispatchImmediately("datarangechanged"))},i.prototype.sliceData=function(){this._workingStartIndex=this.startIndex,this._workingEndIndex=this.endIndex},i.prototype.rangeChangeUpdate=function(){this.sliceData(),this._prevStartIndex=this.startIndex,this._prevEndIndex=this.endIndex},i.prototype.appendDataItems=function(){for(var e=this.endIndex,t=this.startIndex;t<e;t++){var r=this.dataItems.getIndex(t);r&&(r.__disabled=!1)}for(var t=0;t<this.startIndex;t++){var r=this.dataItems.getIndex(t);r&&(r.__disabled=!0)}for(var t=this.endIndex;t<this.dataItems.length;t++){var r=this.dataItems.getIndex(t);r&&(r.__disabled=!0)}},i.prototype.invalidateRawData=function(){this.disabled||this.isTemplate||(Jr(V.invalidRawDatas,this),yt.requestFrame(),this.rawDataInvalid=!0,ue(this.dataUsers.iterator(),function(e){e.invali
21dateRawData()}))},i.prototype.validateRawData=function(){var e=this;Qe(V.invalidRawDatas,this),ue(this.mainDataSet.iterator(),function(t){t&&e.updateDataItem(t)})},i.prototype.dispose=function(){var e=this;this.mainDataSet.template.clones.clear(),$e(this._dataSources,function(t,r){e.removeDispose(r)}),this.disposeData(),n.prototype.dispose.call(this)},i.prototype.disposeData=function(){this.mainDataSet.template.clones.clear(),De(this._dataDisposers,function(e){e.dispose()}),ue(this.dataUsers.iterator(),function(e){e.disposeData()}),this._dataDisposers.length=0,this._startIndex=void 0,this._endIndex=void 0,this.mainDataSet.clear(),this.mainDataSet.template.clones.clear(),this._dataSets&&this._dataSets.clear()},i.prototype.getDataItem=function(e){return this.mainDataSet.create()},i.prototype.validateData=function(){if(this.dispatchImmediately("beforedatavalidated"),this.dataInvalid=!1,V.removeFromInvalidComponents(this),!this.__disabled){if(this.dataValidationProgress=0,this._prevStartIndex=void 0,this._prevEndIndex=void 0,this._startIndex=void 0,this._endIndex=void 0,this.dataFields.data&&this.dataItem){var e=this.dataItem.dataContext;this._data=e[this.dataFields.data]}if(this._parseDataFrom===0&&this.data.length>0&&this.disposeData(),this.data.length>0){var t=this.preloader;ue(this.dataUsers.iterator(),function(d){d._startIndex=void 0,d._endIndex=void 0});var r=0,a=Date.now(),s=this._parseDataFrom,o=this.data.length,l=function(){var d=u.data[s];if(u._usesData){var f=u.getDataItem(d);u.processDataItem(f,d)}if(u.dataUsers.each(function(v){if(v.data.length==0){var m=v.getDataItem(d);v.processDataItem(m,d)}}),r++,r==100){r=0;var p=Date.now()-a;if(p>u.parsingStepDuration&&s<u.data.length-10)return u._parseDataFrom=s+1,t&&(s/u.data.length>.5&&!t.visible||(t.progress=s/u.data.length)),u.dataValidationProgress=s/u.data.length,s=u.data.length,u.invalidateData(),{value:void 0}}},u=this;for(s;s<o;s++){var h=l();if(typeof h=="object")return h.value}t&&(t.progress=1),this.dataUsers.each(function(d){(d.hidden||d.appeared&&!d.visible&&d.stacked)&&d.hide(0)})}this.dataValidationProgress=1,this._parseDataFrom=0,this.invalidateDataItems(),this._internalDefaultsApplied||this.applyInternalDefaults(),this.dispatch("datavalidated")}},i.prototype.validateDataItems=function(){Qe(V.invalidDataItems,this),this.dataItemsInvalid=!1,this.invalidateDataRange(),this.invalidate(),this.dispatch("dataitemsvalidated")},Object.defineProperty(i.prototype,"data",{get:function(){return this._data||(this._data=[]),this._adapterO?this._adapterO.apply("data",this._data):this._data},set:function(e){this.setData(e)},enumerable:!0,configurable:!0}),i.prototype.setData=function(e){this.isDisposed()||(this._parseDataFrom=0,this.disposeData(),this._data=e,e&&e.length>0?this.invalidateData():(this.dispatchImmediately("beforedatavalidated"),this.dispatch("datavalidated")))},i.prototype.getDataSource=function(e){var t=this;return T(this._dataSources[e])||(this._dataSources[e]=new Kb,this._dataSources[e].component=this,this.setDataSourceEvents(this._dataSources[e],e),this._dataSources[e].adapter.add("dateFields",function(r){return t.dataSourceDateFields(r)}),this._dataSources[e].adapter.add("numberFields",function(r){return t.dataSourceNumberFields(r)}),this.events.on("inited",function(){t.loadData(e)},this,!1)),this._dataSources[e]},Object.defineProperty(i.prototype,"dataSource",{get:function(){return this._dataSources.data||this.getDataSource("data"),this._dataSources.data},set:function(e){var t=this;this._dataSources.data&&this.removeDispose(this._dataSources.data),this._dataSources.data=e,this._dataSources.data.component=this,this.events.on("inited",function(){t.loadData("data")},this,!1),this.setDataSourceEvents(e,"data")},enumerable:!0,configurable:!0}),i.prototype.loadData=function(e){this._dataSources[e].load()},i.prototype.dataSourceDateFields=function(e){return e},i.prototype.dataSourceNumberFields=function(e){return e},i.prototype.populateDataSourceFields=function(e,t,r){return De(r,function(a){t[a]&&yn(e,t[a])===-1&&e.push(t[a])}),e},i.prototype.setDataSourceEvents=function(e,t){var r=this;e.events.on("started",function(a){var s=r.preloader;s&&(s.progress=0)},void 0,!1),e.events.on("loadstarted",function(a){var s=r.preloader;s&&(s.progress=.25)},void 0,!1),e.events.on("loadended",function(a){var s=r.preloader;s&&(s.progress=.5)},void 0,!1),e.events.on("parseended",function(a){var s=r.preloader;s&&(s.progress=.75)},void 0,!1),e.events.on("ended",function(a){var s=r.preloader;s&&(s.progress=1)},void 0,!1),e.events.on("error",function(a){var s=r.preloader;s&&(s.progress=1),r.openModal(a.message)},void 0,!1),t&&e.events.on("done",function(a){var s=r.preloader;s&&(s.progress=1),t=="data"&&!Ui(a.data)&&(a.data=[a.data]),e.incremental&&t=="data"&&r.data.length?r.addData(a.data,e.keepCount?a.data.length:0):e.updateCurrentData&&t=="data"&&r.data.length?(De(r.data,function(o,l){T(a.data[l])&&$e(o,function(u,h){T(a.data[l][u])&&(o[u]=a.data[l][u])})}),r.invalidateRawData()):r[t]=a.data})},Object.defineProperty(i.prototype,"responsive",{get:function(){return this._responsive||(this._responsive=new qb,this._responsive.component=this),this._responsive},set:function(e){this._responsive=e,this._responsive.component=this},enumerable:!0,configurable:!0}),i.prototype.zoom=function(e,t,r,a){var s=this;t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.start,l=e.end,u=e.priority;if(e.start==e.end&&(e.start=e.start-.5/this.maxZoomFactor,e.end=e.end+.5/this.maxZoomFactor),u=="end"&&l==1&&o!=0&&o<this.start&&(u="start"),u=="start"&&o==0&&l>this.end&&(u="end"),C(a)||(a=this.maxZoomDeclination),!C(o)||!C(l))return{start:this.start,end:this.end};if(this._finalStart!=o||this._finalEnd!=l){var h=this.maxZoomFactor/this.minZoomCount,d=this.maxZoomFactor/this.maxZoomCount;if(u=="start"?(this.maxZoomCount>0&&1/(l-o)<d&&(l=o+1/d),1/(l-o)>h&&(l=o+1/h),l>1&&l-o<1/h&&(o=l-1/h)):(this.maxZoomCount>0&&1/(l-o)<d&&(o=l-1/d),1/(l-o)>h&&(o<=0?l=o+1/h:o=l-1/h),o<0&&l-o<1/h&&(l=o+1/h)),o<-a&&(o=-a),1/(l-o)>h&&(l=o+1/h),l>1+a&&(l=1+a),1/(l-o)>h&&(o=l-1/h),this._finalEnd=l,this._finalStart=o,this.skipRangeEvent=t,this.dispatchImmediately("rangechangestarted"),this.rangeChangeDuration>0&&!r){var f=this.rangeChangeAnimation;if(f&&f.progress<1){var p=f.animationOptions;if(p.length>1){if(p[0].to==o&&p[1].to==l)return{start:o,end:l};f.isDisposed()||f.stop()}}this.rangeChangeAnimation&&this.rangeChangeAnimation.kill(),f=this.animate([{property:"start",to:o},{property:"end",to:l}],this.rangeChangeDuration,this.rangeChangeEasing),this.rangeChangeAnimation=f,f&&!f.isFinished()?f.events.on("animationended",function(){s.dispatchImmediately("rangechangeended")}):this.dispatchImmediately("rangechangeended")}else this.start=o,this.end=l,this.dispatch("rangechangeended")}return{start:o,end:l}},i.prototype.zoomToIndexes=function(e,t,r,a){if(!(!C(e)||!C(t))){var s=e/this.dataItems.length,o=t/this.dataItems.length;this.zoom({start:s,end:o},r,a)}},Object.defineProperty(i.prototype,"zoomFactor",{get:function(){return ke(1/(this.end-this.start),1,this.maxZoomFactor)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxZoomFactor",{get:function(){return this.getPropertyValue("maxZoomFactor")}
21,set:function(e){this.setPropertyValue("maxZoomFactor",e)&&(e==1&&(this.maxZoomDeclination=0),this.invalidateDataRange())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxZoomDeclination",{get:function(){return this.getPropertyValue("maxZoomDeclination")},set:function(e){this.setPropertyValue("maxZoomDeclination",e)&&this.invalidateDataRange()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startIndex",{get:function(){return C(this._startIndex)||(this._startIndex=0),this._startIndex},set:function(e){this._startIndex=ke(Math.round(e),0,this.dataItems.length),this.start=this.indexToPosition(this._startIndex)},enumerable:!0,configurable:!0}),i.prototype.indexToPosition=function(e){return e/this.dataItems.length},Object.defineProperty(i.prototype,"endIndex",{get:function(){var e=this.dataItems.length;return(!C(this._endIndex)||this._endIndex>e)&&(this._endIndex=e),this._endIndex},set:function(e){this._endIndex=ke(Math.round(e),0,this.dataItems.length),this.end=this.indexToPosition(this._endIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"start",{get:function(){return this._adapterO?this._adapterO.apply("start",this._start):this._start},set:function(e){if(this._start!=e){this._start=e;var t=Math.max(0,Math.floor(this.dataItems.length*e)||0);this._startIndex=Math.min(t,this.dataItems.length),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("startchanged"),this.dispatch("startendchanged")}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"end",{get:function(){return this._adapterO?this._adapterO.apply("end",this._end):this._end},set:function(e){this._end!=e&&(this._end=e,this._endIndex=Math.min(this.dataItems.length,Math.ceil(this.dataItems.length*e)||0),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("endchanged"),this.dispatch("startendchanged"))},enumerable:!0,configurable:!0}),i.prototype.removeFromInvalids=function(){n.prototype.removeFromInvalids.call(this),V.removeFromInvalidComponents(this),Qe(V.invalidDataItems,this),Qe(V.invalidDataRange,this),Qe(V.invalidRawDatas,this)},Object.defineProperty(i.prototype,"dataItems",{get:function(){if(this._currentDataSetId!=""){var e=this.dataSets.getKey(this._currentDataSetId);if(e)return e}return this._dataItems},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataSets",{get:function(){return this._dataSets||(this._dataSets=new Gt),this._dataSets},enumerable:!0,configurable:!0}),i.prototype.setDataSet=function(e){if(this._currentDataSetId!=e){var t=this.dataSets.getKey(e);if(t)return this.dataItems.each(function(r){r.__disabled=!0}),this._currentDataSetId=e,this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each(function(r){r.__disabled=!1}),!0;if(this._currentDataSetId!="")return this.dataItems.each(function(r){r.__disabled=!0}),this._currentDataSetId="",this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each(function(r){r.__disabled=!1}),!0}return!1},Object.defineProperty(i.prototype,"currentDataSetId",{get:function(){return this._currentDataSetId},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mainDataSet",{get:function(){return this._dataItems},enumerable:!0,configurable:!0}),i.prototype._updateDataItemIndexes=function(e){for(var t=this.mainDataSet.values,r=t.length,a=e;a<r;++a)t[a]._index=a},i.prototype.handleDataItemAdded=function(e){e.newValue.component=this,this._updateDataItemIndexes(e.index),this.dataItemsInvalid||this.invalidateDataItems()},i.prototype.handleDataItemRemoved=function(e){this._updateDataItemIndexes(e.index),this.dataItemsInvalid||this.invalidateDataItems()},i.prototype.bindDataField=function(e,t){this.dataFields[e]=t,this.invalidateDataRange()},i.prototype.invalidateProcessedData=function(){this.resetProcessedRange(),this.invalidateDataRange()},i.prototype.resetProcessedRange=function(){this._prevEndIndex=null,this._prevStartIndex=null},Object.defineProperty(i.prototype,"dataUsers",{get:function(){var e=this;return this._dataUsers||(this._dataUsers=new Pt,this._disposers.push(new Lt(function(){ue(e._dataUsers.iterator(),function(t){t.dispose()})}))),this._dataUsers},enumerable:!0,configurable:!0}),i.prototype.clone=function(){var e=n.prototype.clone.call(this);return e.dataFields=na(this.dataFields,{}),e},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.data=e.data,this.sequencedInterpolation=e.sequencedInterpolation,this.sequencedInterpolationDelay=e.sequencedInterpolationDelay,this.interpolationDuration=e.interpolationDuration,this.interpolationEasing=e.interpolationEasing},i.prototype.reinit=function(){this._inited=!1,this.deepInvalidate()},i.prototype.getExporting=function(){var e=n.prototype.getExporting.call(this);return e.adapter.has("data",this._exportData,-1,this)||(e.adapter.add("data",this._exportData,-1,this),this.events.on("datavalidated",function(t){e.handleDataUpdated()})),e},i.prototype._exportData=function(e){return e.data=this.data,e},i.prototype.setDisabled=function(e){var t=n.prototype.setDisabled.call(this,e);return t&&this.invalidateData(),t},i.prototype.setShowOnInit=function(e){e!=this.getPropertyValue("showOnInit")&&(e&&!this.inited&&!this.hidden?(this._showOnInitDisposer2=this.events.once("dataitemsvalidated",this.hideInitially,this,!1),this._disposers.push(this._showOnInitDisposer2)):this._showOnInitDisposer2&&this.removeDispose(this._showOnInitDisposer2)),n.prototype.setShowOnInit.call(this,e)},i.prototype.setBaseId=function(e){e!=this._baseId&&this.dataInvalid&&(this.dataInvalid=!1,V.removeFromInvalidComponents(this),this._baseId=e,this.invalidateData()),n.prototype.setBaseId.call(this,e)},Object.defineProperty(i.prototype,"minZoomCount",{get:function(){return this.getPropertyValue("minZoomCount")}
21,set:function(e){this.setPropertyValue("minZoomCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxZoomCount",{get:function(){return this.getPropertyValue("maxZoomCount")},set:function(e){this.setPropertyValue("maxZoomCount",e)},enumerable:!0,configurable:!0}),i.prototype._systemCheckIfValidate=function(){return!(this.dataInvalid||this.dataProvider&&this.dataProvider.dataInvalid)},i.prototype.asFunction=function(e){return e=="interpolationEasing"||e=="rangeChangeEasing"||n.prototype.asIs.call(this,e)},i}(Ee);V.registeredClasses.Component=Ns;var br=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.isOversized=!1,e.className="Label",e.fill=new Ot().getFor("text"),e.wrap=!1,e.truncate=!1,e.fullWords=!0,e.ellipsis="…",e.textAlign="start",e.textValign="top",e.layout="absolute",e.baseLineRatio=-.27,e._positionPrecision=1,e.events.on("maxsizechanged",function(){e.inited&&e.handleMaxSize()},e,!1),e.events.once("validated",e.handleValidate,e,!1),e.applyTheme(),e}return i.prototype.afterDraw=function(){n.prototype.afterDraw.call(this),this.validatePosition()},i.prototype.setPaper=function(e){var t=n.prototype.setPaper.call(this,e);return t&&this.hardInvalidate(),t},i.prototype.handleValidate=function(){(this.currentText||this.text)&&(this.bbox.width==0||this.bbox.height==0)&&V.events.once("exitframe",this.hardInvalidate,this)},i.prototype.handleMaxSize=function(){(this.bbox.width>this.availableWidth||this.bbox.width<this.availableWidth&&(this.isOversized||this.truncate)||this.bbox.height>this.availableHeight||this.bbox.height<this.availableHeight&&this.isOversized)&&this.invalidate()},i.prototype.arrange=function(){},i.prototype.updateCurrentText=function(){var e,t;Yl(this.html)&&this.paper.supportsForeignObject()?(e="html",t=this.html):(e="svg",t=this.text),Zt(t)&&(t=t.toString()),T(t)&&t!==""&&(t=this.populateString(t,this.dataItem)),e=="html"?this._adapterO&&(t=this._adapterO.apply("htmlOutput",t)):this._adapterO&&(t=this._adapterO.apply("textOutput",t));var r=t!=this.currentText||e!=this._currentFormat;return this.currentText=t,this._currentFormat=e,r},i.prototype.hardInvalidate=function(){this._prevStatus="",this.invalidate()},i.prototype.getLineBBox=function(e){var t=e&&e.element,r=t&&t.node;r&&r.parentNode&&(e.bbox=t.getBBox())},i.prototype.draw=function(){n.prototype.draw.call(this);var e=this.bbox.width,t=this.bbox.height,r=this.topParent;if(r&&(!r.maxWidth||!r.maxHeight)){r.events.once("maxsizechanged",this.hardInvalidate,this,!1);return}var a=st(this.availableWidth-this.pixelPaddingLeft-this.pixelPaddingRight,0),s=st(this.availableHeight-this.pixelPaddingTop-this.pixelPaddingBottom,0),o=s+","+a+this.wrap+this.truncate+this.fullWords+this.rtl+this.ellipsis;if(!(!this.updateCurrentText()&&this.inited&&this._prevStatus==o)){this._measuredWidth=0,this._measuredHeight=0,this.isOversized=!1;var l=this._currentFormat,u=this.currentText;if(!T(u)||u==""){this.element.attr({display:"none"});return}var h=u.split(`
22`);this._prevStatus=o,this.textAlign=this.textAlign;var d=this.group.getAttr("display");if(d=="none"&&this.group.removeAttr("display"),this.textPathElement&&this.textPathElement.removeChildren(),l==="svg"){this.element.removeAttr("display");var f=this.element;this.resetBBox();for(var p=0,v="",m=0;m<h.length;m++){var x=h[m];if(x==""){var w=this.getSVGLineElement("",0);w.add(this.getSvgElement(".",Qn().translateStyleShortcuts(v))),f.add(w);var P=Math.ceil(w.getBBox().height);P>0&&(p+=P),f.removeElement(w);var O=this.getLineInfo(m);O&&(O.text="",O.element.textContent="");continue}var j=Qn().chunk(x,null,this.ignoreFormatting),M=0,F=!0,g=!1,L=this.getLineInfo(m);L?(L.text="",L.element.textContent=""):(L={text:"",element:this.getSVGLineElement("",0),complex:!1},f.add(L.element)),L.element.removeAttr("display"),L.element.removeChildren(),this.textPathElement&&L.element.add(this.textPathElement);for(var N=0;N<j.length;N++){N&&(L.complex=!0);var ye=j[N];if(ye.type==="format")v=ye.text;else{if(g)continue;if(L.text=ye.text,L.style=Qn().translateStyleShortcuts(v),this.textPathElement?this.get
22SvgElement(L.text,L.style,this.textPathElement):this.getSvgElement(L.text,L.style,L.element),this.getLineBBox(L),L.bbox.width=Math.ceil(L.bbox.width),M<L.bbox.height&&(M=L.bbox.height),(this.wrap||this.truncate)&&L.bbox.width>a){this.isOversized=!0;var H=L.element.textContent,z=L.bbox.width/H.length,Z=xt(Math.ceil((L.bbox.width-a)/z),H.length);if(this.truncate){var _e=!1,ve=L.element.node;if(ve&&ve.childNodes)for(var $=L.element.node.childNodes.length-1;$>=0;$--){var I=L.element.node.childNodes[$];if(_e&&L.bbox.width<=a&&(I.textContent+=" "+this.ellipsis,L.bbox=L.element.getBBox(),L.bbox.width=Math.floor(L.bbox.width),L.bbox.width<=a))break;_e=!1;var te=I.textContent;for(H=L.element.textContent,Z=xt(Math.ceil((L.bbox.width-a)/z),H.length);L.bbox.width>a&&Z<=H.length&&Z>0;){var A=st(H.length-Z-this.ellipsis.length,1);A<=1&&(Z=0,$>0&&(_e=!0,L.element.node.removeChild(I))),te=id(te,A,this.ellipsis,this.fullWords,this.rtl),te.length>A&&this.fullWords&&(te=id(te,A,this.ellipsis,!1,this.rtl)),I.textContent=te,L.bbox=L.element.getBBox(),L.bbox.width=Math.floor(L.bbox.width),Z=Math.ceil(Z*1.1)}g=!0}}else{var Q=L.element.node;if(Q){for(var he=L.element.node.lastChild,K=void 0;L.bbox.width>a&&Z<=H.length&&Z>0;){var A=st(ye.text.length-Z,1);if(F?K=td(ye.text,A,!0,this.rtl):(K=td(ye.text,A,!0,this.rtl,!1),(K[0].length>A||A===1)&&(L.element.node.removeChild(he),Z=0)),Z>0){var le=K.shift();F&&(le=Jp(le)),he.textContent=Qn().cleanUp(le)}L.bbox=L.element.getBBox(),L.bbox.width=Math.floor(L.bbox.width),Z++}if(K.length>0){var E="";T(K)&&(this.rtl?E+=K.join("")+v:E+=v+K.join("").replace(/([\[\]]{1})/g,"$1$1"));for(var ne=N+1;ne<j.length;ne++)j[ne].type=="value"?E+=j[ne].text.replace(/([\[\]]{1})/g,"$1$1"):E+=j[ne].text;h.splice(m+1,0,E)}g=!0}}}this.bbox.width<L.bbox.width&&(this.bbox.width=L.bbox.width),this.bbox.height=p+M,this.textPathElement?L.element.attr({dy:-this.paddingBottom.toString()}):L.element.attr({x:"0",y:p+M,dy:de(this.baseLineRatio*M,3).toString()}),F=!1}}var Ue=L.element.node;if(Ue){var he=Ue.lastChild;he&&(he.textContent=this.rtl?T0(he.textContent):O0(he.textContent))}p+=M,this.addLineInfo(L,m)}this.maybeHideOversized(),this.measureFailed=!1,(this.bbox.width==0||this.bbox.height==0)&&(this.measureFailed=!0),this._measuredWidth=de(st(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight)),this._measuredHeight=de(st(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom)),this.alignSVGText(),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,(t!=this._measuredHeight||e!=this._measuredWidth)&&this.dispatch("transformed"),this.hideUnused(h.length)}else{this.element.removeAttr("display"),this.resetBBox();var f=this.element;f.removeChildren(),this.setCache("lineInfo",[],0);var Ve=this.paper.foreignObject();f.add(Ve),this.maxWidth&&Ve.attr({width:this.maxWidth-this.pixelPaddingLeft-this.pixelPaddingRight}),this.maxHeight&&Ve.attr({height:this.maxHeight-this.pixelPaddingTop-this.pixelPaddingBottom});var Ye=this.getHTMLLineElement(u);Ve.node.appendChild(Ye),Ye.style.display="inline-block";var Xe=Ye.clientWidth,ft=Ye.clientHeight;Ye.style.display="block",this._bbox={x:0,y:0,width:Xe,height:ft},Ve.attr({width:Xe+1,height:ft}),this.maybeHideOversized(),this._measuredWidth=st(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight),this._measuredHeight=st(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,this.truncate&&(Ye.style.overflow="hidden"),(Xe>a||ft>s)&&(this.isOversized=!0)}
22this.setStyles(),this.updateCenter(),this.updateBackground(),d=="none"&&this.group.attr({display:"none"}),this.pathElement&&this.paper.appendDef(this.pathElement)}},i.prototype.maybeHideOversized=function(){this.hideOversized&&(this.availableWidth<this.bbox.width||this.availableHeight<this.bbox.height?(this.element.attr({display:"none"}),this.isOversized=!0):(this.element.removeAttr("display"),this.isOversized=!1))},i.prototype.alignSVGText=function(){var e=this.element,t=e.node.children||e.node.childNodes;if(!(!t||t&&t.length==0)){var r=this._measuredWidth,a=this._measuredHeight;this.pixelPaddingLeft,this.pixelPaddingRight,this.pixelPaddingTop,this.pixelPaddingBottom,this.rtl?e.attr({direction:"rtl"}):e.removeAttr("direction");for(var s=t.length-1;s>=0;s--){var o=t[s];if(o.setAttribute("text-anchor",this.textAlign),this.textPathElement)o.removeAttribute("x"),o.removeAttribute("y");else{switch(this.textAlign){case"middle":o.setAttribute("x",(r/2).toString()+"px");break;case"end":this.rtl||o.setAttribute("x",r.toString());break;default:this.rtl?o.setAttribute("x",r.toString()):o.removeAttribute("text-anchor");break}var l=Bt(o.getAttribute("y"));switch(this.textValign){case"middle":o.setAttribute("y",((l||0)+(a-this.bbox.height)/2).toString());break;case"bottom":o.setAttribute("y",((l||0)+a-this.bbox.height).toString());break;default:o.setAttribute("y",(l||0).toString());break}}}}},i.prototype.getSVGLineElement=function(e,t){var r=this.paper.addGroup("text");return r.textContent=e,r.attr({x:"0"}),T(t)&&r.attr({y:t.toString()}),(this.truncate||this.wrap)&&r.attr({overflow:"hidden"}),r},Object.defineProperty(i.prototype,"rtl",{get:function(){return T(this._rtl)?this._rtl:this._topParent?this._topParent.rtl:!1},set:function(e){e=ti(e),this._rtl=e,this.element&&this.alignSVGText()},enumerable:!0,configurable:!0}),i.prototype.resetBBox=function(){this._bbox={x:0,y:0,width:0,height:0}},i.prototype.getHTMLLineElement=function(e){var t=document.createElement("div");switch(t.innerHTML=e,this.textAlign){case"middle":t.style.textAlign="center";break;case"end":t.style.textAlign="right";break}return this.wrap?t.style.wordWrap="break-word":t.style.whiteSpace="nowrap",this.rtl&&(t.style.direction="rtl"),T(this.fill)&&(t.style.color=this.fill.toString()),t},i.prototype.setStyles=function(){var e=this.element;!this.selectable||this.draggable||this.resizable||this.swipeable?e.addStyle({webkitUserSelect:"none",msUserSelect:"none"}):this.selectable&&(e.removeStyle("webkitUserSelect"),e.removeStyle("msUserSelect"))},i.prototype.hideUnused=function(e){this.initLineCache();var t=this.getCache("lineInfo");if(t.length>=e)for(var r=e;r<t.length;r++){var a=t[r];a&&a.element&&a.element.attr({display:"none"})}},Object.defineProperty(i.prototype,"text",{get:function(){return this.getPropertyValue("text")},set:function(e){this.setPropertyValue("text",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"path",{get:function(){return this.getPropertyValue("path")},set:function(e){this.setPropertyValue("path",e,!0)&&(this.pathElement&&this.pathElement.dispose(),this.textPathElement&&this.textPathElement.dispose(),this.pathElement=this.paper.add("path"),this.pathElement.attr({d:e}),this.pathElement.attr({id:"text-path-"+this.uid}),this._disposers.push(this.pathElement),this.textPathElement=this.paper.addGroup("textPath"),this.textPathElement.attrNS(Kd,"xlink:href","#text-path-"+this.uid),this.textPathElement.attr({path:e}),this._disposers.push(this.textPathElement),this.hardInvalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locationOnPath",{get:function(){return this.getPropertyValue("locationOnPath")},set:function(e){this.setPropertyValue("locationOnPath",e),this.textPathElement&&this.textPathElement.attr({startOffset:e*100+"%"})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"baseLineRatio",{get:function(){return this.getPropertyValue("baseLineRatio")},set:function(e){this.setPropertyValue("baseLineRatio",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wrap",{get:function(){return this.getPropertyValue("wrap")},set:function(e){this.resetBBox(),this.setPropertyValue("wrap",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"truncate",{get:function(){return this.getPropertyValue("truncate")}
22,set:function(e){this.resetBBox(),this.setPropertyValue("truncate",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fullWords",{get:function(){return this.getPropertyValue("fullWords")},set:function(e){this.setPropertyValue("fullWords",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ellipsis",{get:function(){return this.getPropertyValue("ellipsis")},set:function(e){this.setPropertyValue("ellipsis",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectable",{get:function(){return this.getPropertyValue("selectable")},set:function(e){this.setPropertyValue("selectable",e,!0),this.setStyles()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textAlign",{get:function(){return this.getPropertyValue("textAlign")},set:function(e){this.setPropertyValue("textAlign",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textValign",{get:function(){return this.getPropertyValue("textValign")},set:function(e){this.setPropertyValue("textValign",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"html",{get:function(){return this.getPropertyValue("html")},set:function(e){if(this.setPropertyValue("html",e,!0),!T(e)){var t=this.element;t.removeChildrenByTag("foreignObject")}},enumerable:!0,configurable:!0}),i.prototype.setFill=function(e){if(n.prototype.setFill.call(this,e),this.html)for(var t=this.element,r=t.node.getElementsByTagName("div"),a=0;a<r.length;a++){var s=r[a];T(this.fill)&&(s.style.color=this.fill.toString())}},Object.defineProperty(i.prototype,"hideOversized",{get:function(){return this.getPropertyValue("hideOversized")},set:function(e){this.setPropertyValue("hideOversized",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ignoreFormatting",{get:function(){return this.getPropertyValue("ignoreFormatting")},set:function(e){this.setPropertyValue("ignoreFormatting",e,!0)},enumerable:!0,configurable:!0}),i.prototype.measureElement=function(){},i.prototype.getLineInfo=function(e){this.initLineCache();var t=this.getCache("lineInfo");return t.length>e?t[e]:void 0},i.prototype.addLineInfo=function(e,t){this.initLineCache(),this.getCache("lineInfo")[t]=e},i.prototype.initLineCache=function(){T(this.getCache("lineInfo"))||this.setCache("lineInfo",[],0)},i.prototype.setDataItem=function(e){this._sourceDataItemEvents&&this._sourceDataItemEvents.dispose(),e&&(this._sourceDataItemEvents=new di([e.events.on("valuechanged",this.invalidate,this,!1),e.events.on("workingvaluechanged",this.invalidate,this,!1),e.events.on("calculatedvaluechanged",this.invalidate,this,!1),e.events.on("propertychanged",this.invalidate,this,!1)])),n.prototype.setDataItem.call(this,e)},Object.defineProperty(i.prototype,"availableWidth",{get:function(){return T(this.maxWidth)?this.maxWidth:this.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"availableHeight",{get:function(){return T(this.maxHeight)?this.maxHeight:this.pixelHeight},enumerable:!0,configurable:!0}),i.prototype.getSvgElement=function(e,t,r){var a=this.paper.add("tspan");return a.textContent=e,t&&a.node.setAttribute("style",t),r&&r.add(a),a},i.prototype.deepInvalidate=function(){n.prototype.deepInvalidate.call(this),this.hardInvalidate()},Object.defineProperty(i.prototype,"readerTitle",{get:function(){var e=this.getPropertyValue("readerTitle");return e?this.dataItem&&(e=this.populateString(e)):e=this.populateString(rd(Yl(this.html)?this.html:this.text)),e},set:function(e){e=er(e),this.setPropertyValue("readerTitle",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),i}(Ee);V.registeredClasses.Label=br;qi.push({relevant:lr.heightXS,state:function(n,i){if(n instanceof br&&n.parent&&n.parent.isBaseSprite){var e=n.states.create(i);return e.properties.disabled=!0,e}return null}});var Hn=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="RoundedRectangle",e.element=e.paper.add("path"),e.cornerRadius(3,3,3,3),e.applyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this);var e=this.innerWidth,t=this.innerHeight;if(C(e)&&C(t)){var r=xt(e,t)/2,a=ri(this.cornerRadiusTopLeft,r),s=ri(this.cornerRadiusTopRight,r),o=ri(this.cornerRadiusBottomRight,r),l=ri(this.cornerRadiusBottomLeft,r),u=xt(Math.abs(e/2),Math.abs(t/2)),h=ke(a,0,u),d=ke(s,0,u),f=ke(o,0,u),p=ke(l,0,u),v="M"+h+",0 L"+(e-d)+",0",m=" L"+p+","+t,x=" L0,"+h,w=" L"+e+","+(t-f),P=" a"+d+","+d+" 0 0 1 "+d+","+d,O=" a"+f+","+f+" 0 0 1 -"+f+","+f,j=" a"+p+","+p+" 0 0 1 -"+p+",-"+p,M=" a"+h+","+h+" 0 0 1 "+h+",-"+h,F=v+P+w+O+m+j+x+M+" Z";this.path=F}},i.prototype.cornerRadius=function(e,t,r,a){this.cornerRadiusTopLeft=e,this.cornerRadiusTopRight=t,this.cornerRadiusBottomLeft=r,this.cornerRadiusBottomRight=a},Object.defineProperty(i.prototype,"cornerRadiusTopLeft",{get:function(){return this.getPropertyValue("cornerRadiusTopLeft")},set:function(e){this.setPercentProperty("cornerRadiusTopLeft",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadiusTopRight",{get:function(){return this.getPropertyValue("cornerRadiusTopRight")}
22,set:function(e){this.setPercentProperty("cornerRadiusTopRight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadiusBottomRight",{get:function(){return this.getPropertyValue("cornerRadiusBottomRight")},set:function(e){this.setPercentProperty("cornerRadiusBottomRight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadiusBottomLeft",{get:function(){return this.getPropertyValue("cornerRadiusBottomLeft")},set:function(e){this.setPercentProperty("cornerRadiusBottomLeft",e,!0)},enumerable:!0,configurable:!0}),i.prototype.measureElement=function(){},Object.defineProperty(i.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),i}(ot);V.registeredClasses.RoundedRectangle=Hn;var Ta=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="Button",e.tooltipY=0,e.iconPosition="left",e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16),e.setStateOnChildren=!0;var t=new Ot,r=e.background;r.fill=t.getFor("secondaryButton"),r.stroke=t.getFor("secondaryButtonStroke"),r.fillOpacity=1,r.strokeOpacity=1,r.cornerRadius(3,3,3,3),e.label=new br,e.label.fill=t.getFor("secondaryButtonText"),e.label.shouldClone=!1;var a=r.states.create("hover");a.properties.fillOpacity=1,a.properties.fill=t.getFor("secondaryButtonHover");var s=r.states.create("down");return s.transitionDuration=100,s.properties.fill=t.getFor("secondaryButtonDown"),s.properties.fillOpacity=1,e.role="button",e.focusable=!0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"icon",{get:function(){return this._icon},set:function(e){var t=this._icon;t&&(t.parent=void 0),e&&(this._icon=e,e.parent=this,e.interactionsEnabled=!1,e.shouldClone=!1,this.iconPosition=this.iconPosition,this._disposers.push(e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"iconPosition",{get:function(){return this.getPropertyValue("iconPosition")},set:function(e){this.setPropertyValue("iconPosition",e),this.icon&&(e=="left"?this.icon.toBack():this.icon.toFront())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){return this._label},set:function(e){this._label&&this.removeDispose(this._label),this._label=e,e&&(e.parent=this,e.interactionsEnabled=!1,this._disposers.push(this._label))},enumerable:!0,configurable:!0}),i.prototype.createBackground=function(){return new Hn},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),e.label&&this.label.copyFrom(e.label),e.icon&&(this.icon=e.icon.clone())},i}(Ee);V.registeredClasses.Button=Ta;var as=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Circle",e.element=e.paper.add("circle"),e.setPercentProperty("radius",pe(100)),e.setPropertyValue("horizontalCenter","middle"),e.setPropertyValue("verticalCenter","middle"),e.applyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this),this.element.attr({r:this.pixelRadius})},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return ri(this.radius,xt(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),i.prototype.measureElement=function(){var e=this.pixelRadius;this._bbox={x:-e,y:-e,width:e*2,height:e*2}},i}(ot);V.registeredClasses.Circle=as;var cd=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Ellipse",e.element=e.paper.add("ellipse"),e.applyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this),this.element.attr({rx:this.radius}),this.element.attr({ry:this.radiusY})},Object.defineProperty(i.prototype,"radiusY",{get:function(){return this.innerHeight/2},set:function(e){this.height=e*2,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.innerWidth/2},set:function(e){this.width=e*2,this.invalidate()},enumerable:!0,configurable:!0}),i}(as);V.registeredClasses.Ellipse=cd;var Zb=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Image",e.element=e.paper.add("image"),e.applyTheme(),e.width=50,e.height=50,e}return i.prototype.draw=function(){if(n.prototype.draw.call(this),this.href){var e=this.innerWidth,t=this.innerHeight;C(this.widthRatio)&&(e=t*this.widthRatio,this.width=e),C(this.heightRatio)&&(t=e*this.heightRatio,this.height=t),this.element.attr({width:e,height:t}),this.element.attrNS(Kd,"xlink:href",this.href)}},Object.defineProperty(i.prototype,"href",{get:function(){return this.getPropertyValue("href")},set:function(e){this.setPropertyValue("href",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"widthRatio",{get:function(){return this.getPropertyValue("widthRatio")},set:function(e){this.setPropertyValue("widthRatio",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"heightRatio",{get:function(){return this.getPropertyValue("heightRatio")},set:function(e){this.setPropertyValue("heightRatio",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bbox",{get:function(){return{x:0,y:0,width:this.pixelWidth,height:this.pixelHeight}},enumerable:!0,configurable:!0}),i}(ot);V.registeredClasses.Image=Zb;var pn=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Line",e.element=e.paper.add("line"),e.fill=qe(),e.x1=0,e.y1=0,e.applyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this),this.x1==this.x2||this.y1==this.y2?this.pixelPerfect=!0:this.pixelPerfect=!1,this.x1=this.x1,this.x2=this.x2,this.y1=this.y1,this.y2=this.y2},Object.defineProperty(i.prototype,"x1",{get:function(){return this.getPropertyValue("x1")},set:function(e){C(e)||(e=0);var t=0;this.pixelPerfect&&this.stroke instanceof en&&(t=1e-5),this.setPropertyValue("x1",e,!0),this.element.attr({x1:e+t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"x2",{get:function(){var e=this.getPropertyValue("x2");return C(e)||(e=this.pixelWidth),e},set:function(e){C(e)||(e=0),this.setPropertyValue("x2",e,!0),this.element.attr({x2:e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y1",{get:function(){return this.getPropertyValue("y1")},set:function(e){C(e)||(e=0);var t=0;this.pixelPerfect&&this.stroke instanceof en&&(t=1e-5),this.setPropertyValue("y1",e,!0),this.element.attr({y1:e+t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y2",{get:function(){var e=this.getPropertyValue("y2");return C(e)||(e=this.pixelHeight),e},set:function(e){C(e)||(e=0),this.setPropertyValue("y2",e,!0),this.element.attr({y2:e})},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e){var t={x:this.x1,y:this.y1},r={x:this.x2,y:this.y2},a=El(t,r,e),s=tr(t,r);return{x:a.x,y:a.y,angle:s}},i}(ot);V.registeredClasses.Line=pn;var Qb=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PointedShape",e.pointerBaseWidth=15,e.pointerLength=10,e.pointerY=0,e.pointerX=0,e.a
22pplyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this),C(this.pointerX)||(this.pointerX=this.pixelWidth/2),C(this.pointerY)||(this.pointerY=this.pixelHeight+10)},Object.defineProperty(i.prototype,"pointerBaseWidth",{get:function(){return this.getPropertyValue("pointerBaseWidth")},set:function(e){this.setPropertyValue("pointerBaseWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pointerLength",{get:function(){return this.getPropertyValue("pointerLength")},set:function(e){this.setPropertyValue("pointerLength",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pointerX",{get:function(){return this.getPropertyValue("pointerX")},set:function(e){this.setPropertyValue("pointerX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pointerY",{get:function(){return this.getPropertyValue("pointerY")},set:function(e){this.setPropertyValue("pointerY",e,!0)},enumerable:!0,configurable:!0}),i}(ot),Jb=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PointedRectangle",e.element=e.paper.add("path"),e.cornerRadius=6,e.applyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this);var e=this.cornerRadius,t=this.innerWidth,r=this.innerHeight;if(t>0&&r>0){var a=this.pointerX,s=this.pointerY,o=this.pointerBaseWidth/2,l=xt(t/2,r/2),u=ke(e,0,l),h=ke(e,0,l),d=ke(e,0,l),f=ke(e,0,l),p=0,v=0,m=t,x=0,w=t,P=r,O=0,j=r,M=void 0,F=void 0,g=void 0,L=void 0,N=(a-p)*(P-v)-(s-v)*(w-p),ye=(a-O)*(x-j)-(s-j)*(m-O);if(N>0&&ye>0){var H=ke(a,u+o,t-o-h);
22s=ke(s,-1/0,0),M="M"+u+",0 L"+(H-o)+",0 L"+a+","+s+" L"+(H+o)+",0 L"+(t-h)+",0"}else M="M"+u+",0 L"+(t-h)+",0";if(N<0&&ye<0){var H=ke(a,f+o,t-o-d);s=ke(s,r,1/0),g=" L"+(t-d)+","+r+" L"+(H+o)+","+r+" L"+a+","+s+" L"+(H-o)+","+r+" L"+f+","+r}else g=" L"+f+","+r;if(N<0&&ye>0){var z=ke(s,u+o,r-f-o);a=ke(a,-1/0,0),L=" L0,"+(r-f)+" L0,"+(z+o)+" L"+a+","+s+" L0,"+(z-o)+" L0,"+u}else L=" L0,"+u;if(N>0&&ye<0){var z=ke(s,h+o,r-o-d);a=ke(a,t,1/0),F=" L"+t+","+h+" L"+t+","+(z-o)+" L"+a+","+s+" L"+t+","+(z+o)+" L"+t+","+(r-d)}else F=" L"+t+","+(r-d);var Z=" a"+h+","+h+" 0 0 1 "+h+","+h,_e=" a"+d+","+d+" 0 0 1 -"+d+","+d,ve=" a"+f+","+f+" 0 0 1 -"+f+",-"+f,$=" a"+u+","+u+" 0 0 1 "+u+",-"+u;this.path=M+Z+F+_e+g+ve+L+$}},Object.defineProperty(i.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(e){this.setPropertyValue("cornerRadius",e,!0)},enumerable:!0,configurable:!0}),i}(Qb);function fo(n){var i=ie(n[0]),e={x:0,y:0},t=ir.minPolylineStep;C(t)||(t=.5);for(var r=0,a=n.length;r<a;r++){var s=n[r];Mt(s,e)>t&&(i+=ie(s),e=s)}return i}function Oe(n){return" M"+de(n.x,4)+","+de(n.y,4)+" "}function ie(n){return" L"+de(n.x,4)+","+de(n.y,4)+" "}function za(n,i){return" Q"+de(i.x,4)+","+de(i.y,4)+" "+de(n.x,4)+","+de(n.y,4)}function jo(n,i,e){return" C"+de(i.x,4)+","+de(i.y,4)+" "+de(e.x,4)+","+de(e.y,4)+" "+de(n.x,4)+","+de(n.y,4)}function Ai(){return" Z"}function Li(n,i,e,t){if(i==0)return"";C(t)||(t=e);var r="",a=",",s=Math.ceil(Math.abs(i)/180),o=1;i<0&&(o=0);var l=0,u=0,h=-xe(n)*e,d=-be(n)*t;if(i<.5&&e>3e3){var f=n+i,p=de(xe(f)*e,4),v=de(be(f)*t,4);return ie({x:p,y:v})}for(var m=0;m<s;m++){var f=n+i/s*(m+1),p=de(xe(f)*e+h-l,4),v=de(be(f)*t+d-u,4);r+=" a"+e+a+t+a+0+a+0+a+o+a+p+a+v,l=p,u=v}return r}function Hs(n,i,e,t,r,a,s){if(i==0||(C(t)||(t=0),e==0&&t<=0))return"";if(e<t){var o=e;e=t,t=o,C(r)&&(r=r/t*e)}i=xt(i,360),i==360&&(a=0,s=0);var l=n+i,u=be(xt(i,45)/2);r=C(r)?r:e,a=a||0,s=C(s)?s:a;var h=r/e*t,d=r/e*a,f=r/e*s;a=ke(a,0,(e-t)/2),d=ke(d,0,(r-h)/2),s=ke(s,0,(e-t)/2),f=ke(f,0,(r-h)/2),a=de(ke(a,0,e*u),4),d=de(ke(d,0,r*u),4),s=de(ke(s,0,t*u),4),f=de(ke(f,0,h*u),4);var p=Math.asin(a/e/2)*ga*2,v=Math.asin(d/r/2)*ga*2;t<s&&(t=s),h<f&&(h=f);var m=Math.asin(s/t/2)*ga*2,x=Math.asin(f/h/2)*ga*2;C(m)||(m=0),C(x)||(x=0);var w=n+i/2,P={x:de(xe(w)*t,4),y:be(w)*h},O={x:xe(n)*(t+s),y:be(n)*(h+f)},j={x:xe(n)*(e-a),y:be(n)*(r-d)},M={x:xe(l)*(e-a),y:be(l)*(r-d)},F={x:xe(l)*(t+s),y:be(l)*(h+f)},g={x:xe(n+p)*e,y:be(n+v)*r},L={x:xe(l-m)*t,y:be(l-x)*h};s+=s*be(m/2),f+=f*be(x/2),m>(l-n)/2&&(L=P);var N="";return i==360?N=Oe(j):(N=Oe(O),N+=ie(j),N+=Rr(g,a,d,!0)),N+=Li(n+p,i-2*p,e,r),C(t)&&t!=0?(i==360&&a==0?N+=Oe(F):(N+=Rr(M,a,d,!0),N+=ie(F),N+=Rr(L,s,f,!0)),N+=Li(l-m,-(i-2*m),t,h),(i<360||a>0)&&(N+=Rr(O,s,f,!0)),N+=ie(O)):(N+=Rr(M,a,d,!0),i<360&&(N+=ie(O))),N}function Rr(n,i,e,t,r,a){if(i==0)return"";a=a||0,r=!!r,t=!!t;var s=",",o=+t,l=+r;return" A"+i+s+e+s+a+s+l+s+o+s+de(n.x,4)+s+de(n.y,4)}function Oh(n,i,e,t){return C(e)||(e=0),C(t)||(t=0),Oe({x:e,y:t})+ie({x:e+n,y:t})+ie({x:e+n,y:t+i})+ie({x:e,y:t+i})+Ai()}function ma(n,i){var e=",",t=" L";return i?"M"+n.x+e+n.y+t+n.x+e+(n.y+n.height)+t+(n.x+n.width)+e+(n.y+n.height)+t+(n.x+n.width)+e+n.y+t+n.x+e+n.y:"M"+n.x+e+n.y+t+(n.x+n.width)+e+n.y+t+(n.x+n.width)+e+(n.y+n.height)+t+n.x+e+(n.y+n.height)+t+n.x+e+n.y}var Vo=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._distance=0,e.className="Polyline",e.element=e.paper.add("path"),e.shapeRendering="auto",e.fill=qe(),e.strokeOpacity=1,e.applyTheme(),e}return i.prototype.makePath=function(){this._distance=0;var e=this.segments;if(e&&e.length>0){for(var t="",r=0,a=e.length;r<a;r++){var s=e[r];if(s.length>0){t+=Oe(s[0]);for(var o=1;o<s.length;o++){var l=s[o];t+=ie(l),this._distance+=Mt(s[o-1],l)}}}this.path=t}this._realSegments=e},Object.defineProperty(i.prototype,"segments",{get:function(){return this.getPropertyValue("segments")},set:function(e){this.setPropertyValue("segments",e),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"distance",{get:function(){return this._distance},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e){var t=0;e<0&&(e=Math.abs(e),t=180);var r=this._realSegments;if(r){for(var a=this.distance,s=0,o=void 0,l=0,u=0,h=void 0,d=void 0,f=0;f<r.length;f++){var p=r[f];if(p.length>1){for(var v=1;v<p.length;v++)if(h=p[v-1],d=p[v],l=s/a,o=Mt(h,d),s+=o,u=s/a,l<=e&&u>e){f=r.length;break}}else p.length==1&&(h=p[0],d=p[0],l=0,u=1)}if(h&&d){var m=(e-l)/(u-l),x=El(h,d,m);return{x:x.x,y:x.y,angle:t+tr(h,d)}}}return{x:0,y:0,angle:0}},Object.defineProperty(i.prototype,"realSegments",{get:function(){return this._realSegments},enumerable:!0,configurable:!0}),i}(ot);V.registeredClasses.Polyline=Vo;var ex=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Polyarc",e.controlPointDistance=.5,e.controlPointPosition=.5,e.applyTheme(),e}return i.prototype.makePath=function(){this._distance=0;var e=this.segments;if(e&&e.length>0){var t="";this._realSegments=[];for(var r=0,a=e.length;r<a;r++){var s=e[r],o=[];if(this._realSegments.push(o),s.length>0){t+=Oe(s[0]);for(var l=1;l<s.length;l++){var u=s[l-1],h=s[l],d=Mt(h,u),f=d*this.controlPointDistance,p=this.controlPointPosition,v=-tr(u,h),m=u.x+(h.x-u.x)*p*.5-f*be(v),x=u.y+(h.y-u.y)*p*.5-f*xe(v),w={x:m,y:x},P=u.x+(h.x-u.x)*p*1.5-f*be(v),O=u.y+(h.y-u.y)*p*1.5-f*xe(v),j={x:P,y:O};t+=jo(h,w,j);var M=Math.ceil(d),F=u;if(M>0)for(var g=0;g<=M;g++){var L=Hd(u,h,w,j,g/M);o.push(L),this._distance+=Mt(F,L),F=L}else o.push(u)}}}this.path=t}},Object.defineProperty(i.prototype,"controlPointPosition",{get:function(){return this.getPropertyValue("controlPointPosition")},set:function(e){this.setPropertyValue("controlPointPosition",e),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(e){this.setPropertyValue("controlPointDistance",e),this.makePath()},enumerable:!0,configurable:!0}),i}(Vo);V.registeredClasses.Polyarc=ex;var tx=function(n){W(i,n);function i(e){var t=n.call(this)||this;return t._bboxes=[],t.morphDuration=800,t.morphEasing=Ja,t.morphToSingle=!0,t.scaleRatio=1,t.className="Morpher",t.morphable=e,t.applyTheme(),t}return i.prototype.morphToPolygon=function(e,t,r){var a=this.morphable.currentPoints;if(a&&e){this.sortPoints(a),this.sortPoints(e),this._morphFromPointsReal=[],this._morphToPointsReal=[],T(t)||(t=this.morphDuration),T(r)||(r=this.morphEasing),this._morphFromPointsReal=this.normalizePoints(e,a),this._morphToPointsReal=this.normalizePoints(a,e),this.morphable.currentPoints=this._morphFromPointsReal;var s=new cn(this,{property:"morphProgress",from:0,to:1},t,r);return this._disposers.push(s),s.start(),s}},i.prototype.normalizePoints=function(e,t){for(var r=0,a=e.length;r<a;r++){var s=e[r][0],o=e[r][1],l=ai(eo(s)),u=l.x+l.width,h=l.y+l.height;if(t[r]||(t[r]=[]),s&&!t[r][0]&&(t[r][0]=[{x:u,y:h},{x:u,y:h}]),t[r][0]){t[r][0]=this.addPoints(t[r][0],s.length);for(var d=1/0,f=0,p=0;p<t[r][0].length;p++){var v=Mt(t[r][0][p],s[0]);v<d&&(f=p,d=v)}var m=t[r][0].slice(0,f),x=t[r][0].slice(f);t[r][0]=x.concat(m)}o&&(t[r][1]||(t[r][1]=[{x:u,y:h},{x:u,y:h}]),t[r][1]=this.addPoints(t[r][1],o.length))}return t},i.prototype.sortPoints=function(e){e.sort(function(o,l){var u=ai(eo(o[0])),h=ai(eo(l[0]));return u.width*u.height>h.width*h.height?-1:1});for(var t=[],r=0,a=e.length;r<a;r++){var s=e[r][0];
22s&&t.push(ai(eo(s)))}return Yo(t)},i.prototype.morphToCircle=function(e,t,r){var a=this.morphable.points,s=this.sortPoints(a);this._morphFromPointsReal=[],this._morphToPointsReal=[],T(t)||(t=this.morphDuration),T(r)||(r=this.morphEasing);for(var o=0,l=a.length;o<l;o++){var u=a[o][0],h=a[o][1];if(this._morphFromPointsReal[o]=[],this._morphToPointsReal[o]=[],u){var d=u,f=u,p=ai(eo(f));this.morphToSingle&&(p=ai(s));var v=p.x+p.width/2,m=p.y+p.height/2,x=e;C(x)||(x=Math.min(p.width/2,p.height/2)),d=[];var w=tr({x:v,y:m},u[0]),P=100;u.length>P&&(P=u.length),f=this.addPoints(u,P),P=f.length;for(var O=360/(P-1),j=0;j<P;j++){var M=O*j+w,F={x:v+x*xe(M),y:m+x*be(M)};d[j]=F}if(h&&h.length>0)for(var g=0,L=h.length;g<L;g++)d.push({x:v,y:m});this._morphFromPointsReal[o][0]=f,this._morphToPointsReal[o][0]=d}}this.morphable.currentPoints=this._morphFromPointsReal;var N=new cn(this,{property:"morphProgress",from:0,to:1},t,r);return this._disposers.push(N),N.start(),N},i.prototype.addPoints=function(e,t){for(var r=Math.round(t/e.length),a=[],s=0,o=e.length;s<o;s++){var l=e[s],u=void 0;s==e.length-1?u=e[0]:u=e[s+1],a.push(l);for(var h=1;h<r;h++){var d=h/r,f={x:l.x+(u.x-l.x)*d,y:l.y+(u.y-l.y)*d};a.push(f)}a.length+e.length-s==t&&(r=0)}if(a.length<t&&e.length>0)for(var p=e[e.length-1],h=a.length;h<t;h++)a.push({x:p.x,y:p.y});return a},i.prototype.morphToRectangle=function(e,t,r,a){var s=this.morphable.points;this.sortPoints(s),this._morphFromPointsReal=[],this._morphToPointsReal=[],T(r)||(r=this.morphDuration),T(a)||(a=this.morphEasing);for(var o=0,l=s.length;o<l;o++){var u=s[o][0],h=s[o][1];if(this._morphFromPointsReal[o]=[],this._morphToPointsReal[o]=[],u){var d=u,f=u,p=this._bboxes[o];this.morphToSingle;var v=p.x,m=p.y,x=e,w=t;if(C(x)||(x=p.width),C(w)||(w=p.height),d=[{x:v,y:m},{x:v+x,y:m},{x:v+x,y:m+w},{x:v,y:m+w}],d=this.addPoints(d,u.length),u.length<4)for(var P=u.length;P<4;P++)d.push({x:u[P].x,y:u[P].y});if(h&&h.length>0)for(var O=p.x+p.width/2,j=p.y+p.height/2,M=0,F=h.length;M<F;M++)d.push({x:O,y:j});this._morphFromPointsReal[o][0]=f,this._morphToPointsReal[o][0]=d}}this.morphable.currentPoints=this._morphFromPointsReal;var g=new cn(this,{property:"morphProgress",from:0,to:1},r,a);return this._disposers.push(g),g.start(),g},Object.defineProperty(i.prototype,"morphProgress",{get:function(){return this._morphProgress},set:function(e){this._morphProgress=e;var t=[];if(e!=null){var r=this._morphFromPointsReal,a=this._morphToPointsReal;if(r!=null&&a!=null)for(var s=0,o=r.length;s<o;s++){var l=[];t.push(l);var u=r[s][0],h=r[s][1],d=a[s][0],f=a[s][1];if(u&&u.length>0&&d&&d.length>0){for(var p=[],v=0,m=u.length;v<m;v++){var x=u[v],w=d[v],P={x:x.x+(w.x*this.scaleRatio-x.x)*e,y:x.y+(w.y*this.scaleRatio-x.y)*e};p.push(P)}l[0]=p}if(h&&h.length>0&&f&&f.length>0){for(var O=[],j=0,M=h.length;j<M;j++){var x=h[j],w=f[j],P={x:x.x+(w.x*this.scaleRatio-x.x)*e,y:x.y+(w.y*this.scaleRatio-x.y)*e};O.push(P)}l[1]=O}}}this.morphable.currentPoints=t},enumerable:!0,configurable:!0}),i.prototype.morphBack=function(e,t){this._morphToPointsReal=this._morphFromPointsReal,this._morphFromPointsReal=this.morphable.currentPoints,T(e)||(e=this.morphDuration),T(t)||(t=this.morphEasing);var r=new cn(this,{property:"morphProgress",from:0,to:1},e,t);return this._disposers.push(r),r.start(),r},Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Rs(this._animations))),this._animations},enumerable:!0,configurable:!0}),i}(cr),ix=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Polygon",e.element=e.paper.add("path"),e.shapeRendering="auto",e._currentPoints=[],e.applyTheme(),e}return Object.defineProperty(i.prototype,"points",{get:function(){var e=this.getPropertyValue("points"),t=this.path;if(t&&(!e||e.length==0)){for(var r=t.slice(1,t.length-1),a=r.split("ZM"),s=0;s<a.length;s++){var o=a[s];if(o.length>0){var l=o.split("M"),u=l[0],h=l[1];if(u&&u.length>0){var d=u.split("L");if(d.length>0){var f=[],p=[f];e.push(p);for(var v=0;v<d.length;v++){var m=d[v].split(",");f.push({x:+m[0],y:+m[1]})}if(h&&h.length>0){var x=h.split("L");if(x.length>0){var w=[];p.push(w);for(var v=x.length-1;v>=0;v--){var m=x[v].split(",");w.push({x:+m[0],y:+m[1]})}}}}}}}this.setPropertyValue("points",e),this._currentPoints=e}return e},set:function(e){this.setPropertyValue("points",e,!0),this._currentPoints=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"currentPoints",{get:function(){return(!this._currentPoints||this._currentPoints.length==0)&&this.path&&(this._currentPoints=this.points),this._currentPoints},set:function(e){this._currentPoints!=e&&(this._currentPoints=e,this.draw())},enumerable:!0,configurable:!0}),i.prototype.draw=function(){var e="",t=this._currentPoints,r,a,s,o;if(t.length>0){for(var l=0,u=t.length;l<u;l++){var h=t[l][0],d=t[l][1];if(h&&h.length>0){var f=h[0];e+=Oe(f);for(var p=0;p<h.length;p++)f=h[p],e+=ie(f),(!C(a)||a<f.x)&&(a=f.x),(!C(r)||r>f.x)&&(r=f.x),(!C(s)||s>f.y)&&(s=f.y),(!C(o)||o<f.y)&&(o=f.y)}if(d&&d.length>
220){var f=d[0];e+=Oe(f);for(var v=0,m=d.length;v<m;v++)f=d[v],e+=ie(f)}}e&&(e+=Ai()),this.bbox.x=r,this.bbox.y=s,this.bbox.width=a-r,this.bbox.height=o-s,n.prototype.setPath.call(this,e)}},i.prototype.setPath=function(e){return n.prototype.setPath.call(this,e)?(this.points=[],this._bbox=this.group.getBBox(),!0):!1},i.prototype.measureElement=function(){},Object.defineProperty(i.prototype,"centerPoint",{get:function(){return{x:this.bbox.x+this.bbox.width/2,y:this.bbox.y+this.bbox.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"morpher",{get:function(){return this._morpher||(this._morpher=new tx(this),this._disposers.push(this._morpher)),this._morpher},enumerable:!0,configurable:!0}),i}(ot);V.registeredClasses.Polygon=ix;var ql=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Polyspline",e.tensionX=.5,e.tensionY=.5,e.applyTheme(),e}return i.prototype.makePath=function(){this._distance=0;var e=this.segments,t=this.tensionX,r=this.tensionY;if(this.allPoints=[],e&&e.length>0){var a="";this._realSegments=[];for(var s=0,o=e.length;s<o;s++){var l=e[s],u=[];if(this._realSegments.push(u),l.length>0){var h=l[0],d=l[l.length-1],f=!1;de(h.x,3)==de(d.x)&&de(h.y)==de(d.y)&&(f=!0),a+=Oe(l[0]);for(var p=0;p<l.length-1;p++){var v=l[p-1],m=l[p],x=l[p+1],w=l[p+2];p===0?v=l[p]:p==l.length-2&&(w=l[p+1]),w||(w=x),p===0?f?v=l[l.length-2]:v=l[s]:p==l.length-2&&(f?w=l[1]:w=l[p+1]);var P=Lp(v,m,x,w,t,r),O=Rp(v,m,x,w,t,r);a+=jo(x,P,O);var j=Math.ceil(Bm(m,x,P,O,20))*1.2,M=m;if(j>0)for(var F=0;F<=j;F++){var g=Hd(m,x,P,O,F/j);if(!(g.x==M.x&&g.y==M.y)){u.push(g);var L=de(tr(M,g),5);this._distance+=Mt(M,g),this.allPoints[Math.floor(this._distance)]={x:g.x,y:g.y,angle:L},M=g}}else u.push(v)}}var N=this.allPoints;if(N.length>1){for(var ye=0;ye<N.length;ye++)if(!N[ye]){if(ye>1)N[ye]=N[ye-1];else for(var H=1;H<N.length;H++)if(N[H]){N[ye]=N[H];break}}}}this.path=a}},i.prototype.getClosestPointIndex=function(e){var t=this.allPoints,r,a=1/0;if(t.length>1)for(var s=1;s<t.length;s++){var o=Mt(e,t[s]);o<a&&(r=s,a=o)}return r},Object.defineProperty(i.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(e){this.setPropertyValue("tensionX",e),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(e){this.setPropertyValue("tensionY",e,!0),this.makePath()},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e,t){var r=0,a=this.allPoints,s=a.length;if(C(e)||(e=0),s>1){if(t&&s>3){if(e<0){e<-.01&&(e=-.01);var o=a[0],l=a[1],u=o.x-(o.x-l.x)*s*e,h=o.y-(o.y-l.y)*s*e;return{x:u,y:h,angle:tr(o,l)}}else if(e>1){e>1.01&&(e=1.01);var o=a[a.length-2],l=a[a.length-3],u=o.x+(o.x-l.x)*s*(e-1),h=o.y+(o.y-l.y)*s*(e-1);return{x:u,y:h,angle:tr(o,{x:u,y:h})}}else if(e==1){var d=a[a.length-1];return{x:d.x,y:d.y,angle:d.angle}}}else e<0&&(e=Math.abs(e),r=180),e>=1&&(e=.9999999999999);var f=a[Math.floor(e*s)];return{x:f.x,y:f.y,angle:f.angle+r}}else if(s==1){var f=a[0];return{x:f.x,y:f.y,angle:f.angle}}else return{x:0,y:0,angle:0}},i}(Vo);V.registeredClasses.Polyspline=ql;var ts=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Slice",e.setPropertyValue("cornerRadius",0),e.setPropertyValue("startAngle",0),e.setPercentProperty("innerRadius",0),e.setPercentProperty("radius",0),e.setPropertyValue("arc",0),e.setPropertyValue("shiftRadius",0),e.strokeOpacity=1,e.setPropertyValue("layout","none"),e.slice=e.createChild(ot),e.slice.isMeasured=!1,e._disposers.push(e.slice),e.applyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this);var e=this.radiusY;this.radius>0&&e==0&&(e=.01),this.slice.path=Hs(this.startAngle,this.arc,this.radius,this.pixelInnerRadius,e,this.cornerRadius,this.innerCornerRadius),this.slice.invalidate(),this.shiftRadius=this.shiftRadius,this.realFill instanceof Da&&this.updateGradient(this.realFill),this.realStroke instanceof Da&&this.updateGradient(this.realStroke)},i.prototype.updateGradient=function(e){e.element.attr({gradientUnits:"userSpaceOnUse"}),e.element.attr({r:this.radius}),e.cx=0,e.cy=0,e.element.attr({radius:this.radius})},Object.defineProperty(i.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;if(this.isMeasured){var e=In(this.startAngle,this.startAngle+this.arc,this.pixelInnerRadius),t=In(this.startAngle,this.startAngle+this.arc,this.radius);return Yo([e,t])}else return{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")}
22,set:function(e){this.setPropertyValue("startAngle",Ka(e),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(e){C(e)||(e=0),this.setPropertyValue("arc",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){var e=this.getPropertyValue("radius");return C(e)||(e=0),e},set:function(e){this.setPropertyValue("radius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radiusY",{get:function(){var e=this.getPropertyValue("radiusY");return C(e)||(e=this.radius),e},set:function(e){this.setPropertyValue("radiusY",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return ri(this.innerRadius,this.radius)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(e){this.setPropertyValue("cornerRadius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerCornerRadius",{get:function(){return this.getPropertyValue("innerCornerRadius")},set:function(e){this.setPropertyValue("innerCornerRadius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shiftRadius",{get:function(){return this.getPropertyValue("shiftRadius")},set:function(e){this.setPropertyValue("shiftRadius",e),e=this.getPropertyValue("shiftRadius"),this.dx=e*this.radius*this.ix,this.dy=e*this.radiusY*this.iy},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ix",{get:function(){return xe(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"iy",{get:function(){return be(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"middleAngle",{get:function(){return this.startAngle+this.arc/2},enumerable:!0,configurable:!0}),i.prototype.getTooltipX=function(){var e=this.getPropertyValue("tooltipX");if(C(e))return e;var t=.5;e instanceof mt&&(t=e.value);var r=ri(this.innerRadius,this.radius);return this.ix*(r+(this.radius-r)*t)},i.prototype.getTooltipY=function(){var e=this.getPropertyValue("tooltipY");if(C(e))return e;var t=.5;e instanceof mt&&(t=e.value);var r=ri(this.innerRadius,this.radius);return this.iy*(r+(this.radius-r)*t)+this.slice.dy},i}(Ee);V.registeredClasses.Slice=ts;var wy=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="Preloader",e.width=pe(100),e.height=pe(100);var t=new Ot,r=e.createChild(Ee);r.shouldClone=!1;var a=r.createChild(ts);a.shouldClone=!1,a.radius=53,a.arc=360,a.fill=t.getFor("fill"),a.fillOpacity=.8,a.innerRadius=42,a.isMeasured=!1,e.backgroundSlice=a;var s=r.createChild(ts);s.shouldClone=!1,s.radius=50,s.innerRadius=45,s.fill=t.getFor("alternativeBackground"),s.fillOpacity=.2,s.isMeasured=!1,e.progressSlice=s;var o=r.createChild(br);o.shouldClone=!1,o.horizontalCenter="middle",o.verticalCenter="middle",o.isMeasured=!1,o.fill=t.getFor("text"),o.align="center",o.valign="middle",o.textAlign="middle",o.fillOpacity=.4,e.label=o,e.background.opacity=1,e.background.fill=t.getFor("background"),e.contentAlign="center",e.contentValign="middle",e.delay=300;var l=e.states.create("hidden");return l.properties.opacity=0,e.visible=!1,e.hide(0),e.__disabled=!0,e._disposers.push(e.backgroundSlice),e._disposers.push(e.progressSlice),e._disposers.push(e.label),e._disposers.push(r),e}return Object.defineProperty(i.prototype,"progress",{get:function(){return this.getPropertyValue("progress")},set:function(e){var t=this;this.__disabled=!1,this.validateLayout(),this.setPropertyValue("progress",e),this.progressSlice.arc=360*e,this.label&&(this.label.text=Math.round(e*100)+"%"),e>=1?(this._started&&(this._started=void 0),V.events.once("enterframe",function(){var r=t.hide();r&&!r.isFinished()?r.events.once("animationended",function(){t.__disabled=!0}):t.__disabled=!0}),this.interactionsEnabled=!1,this.setPropertyValue("progress",0)):e>0&&(this.delay?this._started?this._started+this.delay<=new Date().getTime()&&(this.__disabled=!1,this.show(),this.interactionsEnabled=!0):this._started=new Date().getTime():(this.__disabled=!1,this.show(),this.interactionsEnabled=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"delay",{get:function(){return this.getPropertyValue("delay")},set:function(e){this.setPropertyValue("delay",e)},enumerable:!0,configurable:!0}),i}(Ee);V.registeredClasses.Preloader=wy;var fd=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="ResizeButton",e.orientation="horizontal",e.layout="absolute",e.horizontalCenter="middle",e.verticalCenter="middle",e.draggable=!0,e.padding(8,8,8,8),e.background.cornerRadius(20,20,20,20);var t=new ot;t.element=e.paper.add("path");var r=Oe({x:-2,y:-6});return r+=ie({x:-2,y:6}),r+=Oe({x:2,y:-6}),r+=ie({x:2,y:6}),t.path=r,t.pixelPerfect=!0,t.padding(0,4,0,4),t.stroke=new Ot().getFor("alternativeText"),t.strokeOpacity=.7,e.icon=t,e.label.dispose(),e.label=void 0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"orientation",{set:function(e){var t=this.icon;t&&(e=="horizontal"?t.rotation=0:t.rotation=-90)},enumerable:!0,configurable:!0}),i}(Ta);V.registeredClasses.ResizeButton=fd;var rx=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="CloseButton",e.padding(8,8,8,8),e.showSystemTooltip=!0,e.width=30,e.height=30;var t=new Ot;e.cursorOverStyle=Ki.pointer;var r=e.background;r.cornerRadius(20,20,20,20);var a=t.getFor("background");r.fill=a,r.stroke=t.getFor("primaryButton"),r.strokeOpacity=1,r.strokeWidth=1;var s=t.getFor("primaryButtonActive"),o=r.states.getKey("hover");o.properties.strokeWidth=3,o.properties.fill=a;var l=r.states.getKey("down");l.properties.stroke=s,l.properties.fill=a;var u=new ot;return u.element=e.paper.add("path"),u.stroke=r.stroke,e.icon=u,e.applyTheme(),e}return i.prototype.validate=function(){n.prototype.validate.call(this);var e=this.pixelWidth/3,t=this.pixelHeight/3,r=Oe({x:-e/2,y:-t/2});r+=ie({x:e/2,y:t/2}),r+=Oe({x:e/2,y:-t/2}),r+=ie({x:-e/2,y:t/2}),this.icon.path=r,this.invalidateLayout()},i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Close"))},i}(Ta);V.registeredClasses.CloseButton=rx;var nx=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="SwitchButton",e.tooltipY=0,e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16),e.setStateOnChildren=!0,e.states.create("active");var t=new Ot,r=new br;r.fillOpacity=.3;var a=r.states.create("active");a.properties.fillOpacity=1,r.isActive=!0,e.leftLabel=r;var s=new Ta,o=new as;s.contentValign="none",s.padding(0,0,0,0),o.radius=10,s.icon=o,s.icon.valign="middle",s.label=void 0;var l=pe(100);s.background.cornerRadius(l,l,l,l),s.width=o.radius*3.5,s.height=o.radius*2.1,s.marginLeft=8,s.marginRight=8,s.togglable=!0,o.dx=-o.radius*.7,o.fill=t.getFor("primaryButton");var u=o.states.create("hover");u.properties.fill=t.getFor("primaryButtonHover");var h=o.states.create("active");h.properties.fill=t.getFor("primaryButtonActive"),h.properties.dx=o.radius*.7,e.switchButton=s,e.events.on("toggled",function(){e.leftLabel.isActive=!e.isActive,e.rightLabel.isActive=e.isActive});var d=new br;d.fillOpacity=.3;var f=d.states.create("active");return f.properties.fillOpacity=1,e.rightLabel=d,e.role="button",e.focusable=!0,d.valign="middle",r.valign="middle",s.valign="middle",e.applyTheme(),e}return Object.defineProperty(i.prototype,"leftLabel",{get:function(){return this._leftLabel},set:function(e){this._leftLabel&&this.removeDispose(this._leftLabel),this._leftLabel=e,e&&(e.parent=this,e.interactionsEnabled=!1,e.shouldClone=!1,this._disposers.push(this._leftLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rightLabel",{get:function(){return this._rightLabel},set:function(e){this._rightLabel&&this.removeDispose(this._rightLabel),this._rightLabel=e,e&&(e.parent=this,e.interactionsEnabled=!1,e.shouldClone=!1,this._disposers.push(this._rightLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"switch",{get:function(){return this._switchButton},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"switchButton",{get:function(){return this._switchButton},set:function(e){this._switchButton&&this.removeDispose(this._switchButton),this._switchButton=e,e&&(e.parent=this,e.shouldClone=!1,this._disposers.push(this._switchButton))},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),e.leftLabel&&this.left
22Label.copyFrom(e.leftLabel),e.rightLabel&&this.rightLabel.copyFrom(e.rightLabel),e.switchButton&&this.switchButton.copyFrom(e.switchButton)},i}(Ee);V.registeredClasses.SwitchButton=nx;var mu=function(n){W(i,n);function i(){var e=n.call(this)||this;e._previousStart=0,e._previousEnd=1,e._prevStart=0,e._prevEnd=1,e._isBusy=!1,e._skipRangeEvents=!1,e.updateWhileMoving=!0,e.className="Scrollbar",e.minHeight=12,e.minWidth=12,e.animationDuration=0,e.animationEasing=Ja,e.margin(10,10,10,10);var t=new Ot,r=e.background;return r.cornerRadius(10,10,10,10),r.fill=t.getFor("fill"),r.fillOpacity=.5,e.showSystemTooltip=!0,e.startGrip=new fd,e.endGrip=new fd,e.events.on("transformed",function(){e.updateThumb()},e,!1),e.start=0,e.end=1,e.role="scrollbar",e.thumb.role="slider",e.thumb.readerLive="polite",e.startGrip.role="slider",e.endGrip.role="slider",e.events.once("inited",function(){e._previousStart=void 0,e.dispatchRangeChange()},void 0,!1),e.hideGrips=!1,e.orientation="horizontal",e.setSVGAttribute({"aria-valuemin":"0"}),e.setSVGAttribute({"aria-valuemax":"100"}),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),this.orientation==="horizontal"?(T(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB to select grip buttons or left and right arrows to change selection")),T(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use left and right arrows to move selection")),T(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use left and right arrows to move left selection")),T(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use left and right arrows to move right selection")),this.readerOrientation="horizontal"):(T(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB select grip buttons or up and down arrows to change selection")),T(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use up and down arrows to move selection")),T(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use up and down arrows to move upper selection")),T(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use up and down arrows to move lower selection")),this.readerOrientation="vertical"),this.readerControls=this.baseSprite.uidAttr()},i.prototype.validateLayout=function(){this.updateSize(),n.prototype.validateLayout.call(this),this.updateExtremes()},i.prototype.processBackground=function(){n.prototype.processBackground.call(this);var e=this.background;e.clickable=!0,e.events.on("hit",this.handleBgHit,this,void 0)},i.prototype.handleBgHit=function(e){this.makeBusy();var t=e.spritePoint;t=Tr(t,this.background,this);var r=this.thumb;if(this.orientation=="horizontal"){var a=t.x-r.pixelWidth/2;a=ke(a,0,this.innerWidth-r.pixelWidth),this._thumbAnimation=r.animate({property:"x",to:a},this.animationDuration,this.animationEasing)}else{var s=t.y-r.pixelHeight/2;s=ke(s,0,this.innerHeight-r.pixelHeight),this._thumbAnimation=r.animate({property:"y",to:s},this.animationDuration,this.animationEasing)}this.animationDuration>0?this._thumbAnimation.events.on("animationended",this.makeUnbusy,this,!1):(this._thumb.validate(),this.makeUnbusy())},i.prototype.makeBusy=function(){this._isBusy=!0,this._skipRangeEvents=!1,this._unbusyTimeout&&this.removeDispose(this._unbusyTimeout),this._unbusyTimeout=void 0,this.stopAnimations()},i.prototype.stopAnimations=function(){this._thumbAnimation&&this._thumbAnimation.stop(!0),this._zoomAnimation&&this._zoomAnimation.stop(!0)},i.prototype.makeUnbusy=function(){this._unbusyTimeout=this.setTimeout(this.makeUnbusyReal.bind(this),this.animationDuration*1.1)},i.prototype.makeUnbusyReal=function(){this._usingGrip=void 0,this._isBusy=!1,this.updateWhileMoving||this.dispatchRangeChange()},i.prototype.dispatchRangeChange=function(){(this._previousEnd!=this.end||this._previousStart!=this.start)&&(this._previousStart=this.start,this._previousEnd=this.end,this.dispatch("rangechanged"))},i.prototype.updateThumb=function(e){if(e===void 0&&(e=!0),!!this.parent){var t=this.thumb,r=this.start,a=this.end,s=this.startGrip,o=this.endGrip,l=this.adapter.apply("positionValueDirection",{flipped:!1}).flipped,u=l?"To %1":"From %1",h=l?"From %1":"To %1",d,f;if(this.orientation=="horizontal"){var p=this.innerWidth;t.width=p*(a-r),t.maxX=p-t.pixelWidth,t.x=r*p,s.moveTo({x:t.pixelX,y:0},void 0,void 0,!0),o.moveTo({x:t.pixelX+t.pixelWidth,y:0},void 0,void 0,!0),d=this.adapter.apply("positionValue",{value:Math.round(r*100)+"%",position:r}).value,f=this.adapter.apply("positionValue",{value:Math.round(a*100)+"%",position:a}).value,s.readerTitle=this.language.translate(u,void 0,d),s.readerValueNow=""+Math.round(r*100),s.readerValueText=s.readerTitle,o.readerTitle=this.language.translate(h,void 0,f),o.readerValueNow=""+Math.round(a*100),o.readerValueText=o.readerTitle}else{var v=this.innerHeight;t.height=v*(a-r),t.maxY=v-t.pixelHeight,t.y=(1-a)*v,s.moveTo({x:0,y:t.pixelY+t.pixelHeight},void 0,void 0,!0),o.moveTo({x:0,y:t.pixelY},void 0,void 0,!0),d=this.adapter.apply("positionValue",{value:Math.round((1-r)*100)+"%",position:1-r}).value,f=this.adapter.apply("positionValue",{value:Math.round((1-a)*100)+"%",position:1-a}).value,s.readerTitle=this.language.translate(h,void 0,d),s.readerValueNow=""+Math.round(r*100),s.readerValueText=s.readerTitle,o.readerTitle=this.language.translate(u,void 0,f),o.readerValueNow=""+Math.round(a*100),o.readerValueText=o.readerTitle}t.readerTitle=this.language.translate("From %1 to %2",void 0,d,f),t.readerValueNow=""+Math.round(r*100),t.readerValueText=t.readerTitle,this.readerValueNow=""+Math.round(r*100),this.readerValueText=t.readerTitle,!this._skipRangeEvents&&this.updateWhileMoving&&e&&this.dispatchRangeChange()}},i.prototype.updateExtremes=function(){var e=this.orientation,t=0,r=0,a=0,s=0;e=="horizontal"?(a=this.innerWidth,r=s=this.innerHeight/2):(s=this.innerHeight,t=a=this.innerWidth/2);var o=this.startGrip;o.minX=t,o.maxX=a,o.minY=r,o.maxY=s;var l=this.endGrip;l.minX=t,l.maxX=a,l.minY=r,l.maxY=s;var u=this.thumb;u.minX=t,u.maxX=a,u.minY=r,u.maxY=s},i.prototype.updateSize=function(){var e=this.orientation,t=this.startGrip;t&&(t.orientation=e),this.endGrip&&(this.endGrip.orientation=e);var r=this.thumb;r&&(e=="horizontal"?(C(this._pixelWidth)||this.width instanceof mt||(this.width=pe(100)),T(this.percentHeight)&&(this.height=this.minHeight),r.height=this.innerHeight,r.verticalCenter="middle",r.horizontalCenter="left"):(C(this._pixelHeight)||this.height instanceof mt||(this.height=pe(100)),T(this.percentWidth)&&(this.width=this.minWidth),r.width=this.innerWidth,r.verticalCenter="top",r.horizontalCenter="middle"))},Object.defineProperty(i.prototype,"isBusy",{get:function(){return this._isBusy},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"start",{get:function(){return Math.min(this.getPosition(this._start),this.getPosition(this._end))},set:function(e){this._isBusy||(this.__start=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"__start",{get:function(){return this._start},set:function(e){this._start=this.getPosition(e),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"end",{get:function(){return Math.max(this.getPosition(this._start),this.getPosition(this._end))},set:function(e){this._isBusy||(this.__end=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"__end",{get:function(){return this._end},set:function(e){this._end=this.getPosition(e),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"range",{get:function(){return{start:this.start,end:this.end,priority:this._usingGrip}},enumerable:!0,configurable:!0}),i.prototype.skipRangeEvents=function(){this._isBusy||(this._skipRangeEvents=!0)},i.prototype.fixRange=function(e){(e.start!=de(this._start,2)||e.end!=de(this._end,2))&&(this._start=e.start,this._end=e.end,this._skipRangeEvents=!0,this.updateThumb(),this._skipRangeEvents=!1,this.thumb.validate(),this.thumb.background.validate())},i.prototype.getPosition=function(e){return ke(de(e,4),0,1)},Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e)&&(e==="horizontal"?(this.startGrip.cursorOverStyle=Ki.horizontalResize,this.endGrip.cursorOverStyle=Ki.horizontalResize):(this.startGrip.cursorOverStyle=Ki.verticalResize,this.endGrip.cursorOverStyle=Ki.verticalResize),this.updateByOrientation(),this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.updateByOrientation=function(){},Object.defineProperty(i.prototype,"startGrip",{get:function(){return this._startGrip},set:function(e){this._startGrip&&this.removeDispose(this._startGrip),this._startGrip=e,this.processGrip(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endGrip",{get:function(){return this._endGrip},set:function(e){this._endGrip&&this.removeDispose(this._endGrip),this._endGrip=e,this.processGrip(e)},enumerable:!0,configurable:!0}),i.prototype.processGrip=function(e){e.parent=this,e.isMeasured=!1,e.focusable=!0,e.shouldClone=!1,e.zIndex=100,e.events.on("drag",this.handleGripDrag,this,
22!1),e.events.on("dragstop",this.makeUnbusy,this,!1),e.events.on("down",this.makeBusy,this,!1),e.events.on("up",this.makeUnbusy,this,!1),this._disposers.push(e)},i.prototype.handleGripDrag=function(e){this.makeBusy(),e.target===this._startGrip?this._usingGrip="start":this._usingGrip="end",this.orientation=="horizontal"?(this._start=this.startGrip.pixelX/this.innerWidth,this._end=this.endGrip.pixelX/this.innerWidth):(this._start=1-this.startGrip.pixelY/this.innerHeight,this._end=1-this.endGrip.pixelY/this.innerHeight),this.updateThumb()},Object.defineProperty(i.prototype,"thumb",{get:function(){if(!this._thumb){var e=new Ta;e.background.cornerRadius(10,10,10,10),e.padding(0,0,0,0),this.thumb=e}return this._thumb},set:function(e){var t=this;e&&(this._thumb&&this.removeDispose(this._thumb),this._thumb=e,e.parent=this,e.isMeasured=!1,e.inert=!0,e.draggable=!0,e.clickable=!0,e.hoverable=!0,e.focusable=!0,e.shouldClone=!1,e.zIndex=0,e.cursorOverStyle=Ki.grab,e.cursorDownStyle=Ki.grabbing,e.events.on("dragstart",this.makeBusy,this,!1),e.events.on("dragstop",this.makeUnbusy,this,!1),e.events.on("positionchanged",this.handleThumbPosition,this,!1),e.events.on("sizechanged",this.handleThumbPosition,this,!1),e.events.on("doublehit",this.handleDoubleClick,this,!1),this._disposers.push(Je().body.events.on("keyup",function(r){Vn.isKey(r.event,["space","enter"])&&t.thumb.isFocused&&(r.event.preventDefault(),t.handleDoubleClick())})),this._disposers.push(this._thumb))},enumerable:!0,configurable:!0}),i.prototype.handleDoubleClick=function(){this.makeBusy();var e=0,t=1;this.start!=0||this.end!=1?(this._prevStart=this.start,this._prevEnd=this.end):(e=this._prevStart,t=this._prevEnd);var r=this.animate([{property:"__start",to:e},{property:"__end",to:t}],this.animationDuration,this.animationEasing);r&&!r.isFinished()?(r.events.on("animationended",this.makeUnbusy,this,!1),this._zoomAnimation=r):this.makeUnbusy()},i.prototype.handleThumbPosition=function(){var e=this.thumb;if(this.orientation=="horizontal"){var t=this.innerWidth,r=e.innerWidth,a=e.pixelX;this._start=a/t,this._end=(a+r)/t,this.updateThumb()}else{var s=this.innerHeight,o=e.innerHeight,l=e.pixelY;l+o>s&&(l=s-o,e.y=l),this._start=1-(l+o)/s,this._end=1-l/s,this.updateThumb()}},i.prototype.createBackground=function(){return new Hn},Object.defineProperty(i.prototype,"hideGrips",{get:function(){return this._hideGrips},set:function(e){var t=this;this._hideGrips=e,this._overDisposer&&this.removeDispose(this._overDisposer),this._outDisposer&&this.removeDispose(this._outDisposer),e?(this._overDisposer=this.events.on("over",function(){t.startGrip.show(),t.endGrip.show()},void 0,!1),this._outDisposer=this.events.on("out",function(){t.startGrip.hide(),t.endGrip.hide()},void 0,!1),this.startGrip.hide(),this.endGrip.hide()):(this.startGrip.show(),this.endGrip.show())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(e){this.setPropertyValue("animationDuration",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(e){this.setPropertyValue("animationEasing",e)},enumerable:!0,configurable:!0}),i.prototype.asFunction=function(e){return e=="animationEasing"||n.prototype.asIs.call(this,e)},i}(Ee);V.registeredClasses.Scrollbar=mu;var ax=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Slider",e.thumb.opacity=0,e.thumb.interactionsEnabled=!1,e.endGrip.opacity=0,e.endGrip.interactionsEnabled=!1,e.startGrip.events.on("drag",function(){e.endGrip.x=e.startGrip.x,e.endGrip.y=e.startGrip.y}),e.applyTheme(),e}return Object.defineProperty(i.prototype,"__end",{get:function(){return this._start},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"end",{get:function(){return this._start},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"start",{get:function(){return this._start},set:function(e){this._isBusy||(this.__start=e)},enumerable:!0,configurable:!0}),i}(mu);V.registeredClasses.Slider=ax;var pd=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="TextLink",e.selectable=!0;var t=new Ot;e.fill=t.getFor("primaryButton").brighten(.3);var r=e.states.create("hover");r.properties.fill=t.getFor("primaryButtonHover").brighten(.3);var a=e.states.create("down");return a.properties.fill=t.getFor("primaryButtonDown").brighten(.3),e.cursorOverStyle=Ki.pointer,e.applyTheme(),e}return i}(br);
22V.registeredClasses.TextLink=pd;var Ys=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.properties={},e.isTemplate=!1,e._scale=1,e._nonScaling=!0,e.className="Filter",e.filterPrimitives=new Pt,e.properties.filterUnits="objectBoundingBox",e.filterPrimitives.events.on("inserted",function(t){e._disposers.push(t.newValue)}),e.width=120,e.height=120,e.applyTheme(),e}return i.prototype.appendPrimitives=function(e){ue(this.filterPrimitives.iterator(),function(t){e.add(t)})},i.prototype.animate=function(e,t,r){var a=new cn(this,e,t,r).start();return a},Object.defineProperty(i.prototype,"width",{get:function(){return this.properties.width},set:function(e){this.properties.width=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this.properties.height},set:function(e){this.properties.height=e},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;n.prototype.copyFrom.call(this,e),$e(e.properties,function(r,a){t[r]=a})},Object.defineProperty(i.prototype,"paper",{get:function(){return this._paper?this._paper:Bo()},set:function(e){this._paper!=e&&(this._paper=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Rs(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scale",{get:function(){return this._scale},set:function(e){this._scale=e,this.updateScale()},enumerable:!0,configurable:!0}),i.prototype.updateScale=function(){},Object.defineProperty(i.prototype,"filterUnits",{get:function(){return this.properties.filterUnits},set:function(e){this.properties.filterUnits=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nonScaling",{get:function(){return this._nonScaling},set:function(e){this._nonScaling=e,e||(this._scale=1),this.updateScale()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sprite",{set:function(e){this.setSprite(e)},enumerable:!0,configurable:!0}),i.prototype.setSprite=function(e){this._sprite&&this._sprite!=e&&this._sprite.filters.removeValue(this),this._sprite=e},i}(cr),Py=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="DropShadowFilter",e.color=qe("#000"),e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.feOffset=e.paper.add("feOffset"),e.feOffset.attr({result:"offsetBlur"}),e.filterPrimitives.push(e.feOffset),e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":e.color}),e.filterPrimitives.push(e.feFlood),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({in2:"offsetBlur",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feMerge=e.paper.addGroup("feMerge"),e.feMerge.add(e.paper.add("feMergeNode")),e.feMerge.add(e.paper.add("feMergeNode").attr({in:"SourceGraphic"})),e.filterPrimitives.push(e.feMerge),e.width=200,e.height=200,e.blur=1.5,e.dx=3,e.dy=3,e.opacity=.5,e.applyTheme(),e}return Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.properties.color=e,this.feFlood&&this.feFlood.attr({"flood-color":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(e){this.properties.opacity=e,this.feFlood.attr({"flood-opacity":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dx",{get:function(){return this.properties.dx},set:function(e){this.properties.dx=e,this.feOffset.attr({dx:e/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dy",{get:function(){return this.properties.dy},set:function(e){this.properties.dy=e,this.feOffset.attr({dy:e/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"blur",{get:function(){return this.properties.blur},set:function(e){this.properties.blur=e,this.feGaussianBlur.attr({stdDeviation:e/this.scale})},enumerable:!0,configurable:!0}),i.prototype.updateScale=function(){this.dx=this.dx,this.dy=this.dy,this.blur=this.blur},i}(Ys);V.registeredClasses.DropShadowFilter=Py;var bu=function(n){W(i,n);function i(){var e=n.call(this)||this;e._boundingRect={x:-4e4,y:-4e4,width:8e4,height:8e4},e._pointTo={x:0,y:0},e.fitPointerToBounds=!1,e._verticalOrientation="up",e.fixDoc=!0,e.className="Tooltip",e.isMeasured=!1,e.getFillFromObject=!0,e.margin(5,5,5,5),e.defaultState.transitionDuration=1,e.hiddenState.transitionDuration=1;var t=e.background;t.interactionsEnabled=!1,t.fillOpacity=.9,t.strokeWidth=1,t.strokeOpacity=1,t.stroke=qe("#ffffff"),t.cornerRadius=3,t.pointerLength=6,t.pointerBaseWidth=10;var r=new Py;r.dy=1,r.dx=1,r.opacity=.5,t.filters.push(r),e.autoTextColor=!0;var a=e.createChild(br);return a.shouldClone=!1,e.label=a,a.padding(7,12,4,12),a.interactionsEnabled=!1,a.horizontalCenter="middle",a.fill=qe("#ffffff"),e._disposers.push(a),e.label.events.on("sizechanged",e.drawBackgroun
22d,e),e.label.zIndex=1,e.pointerOrientation="vertical",e.animationDuration=0,e.animationEasing=Ja,e.setPropertyValue("showInViewport",!1),e.role="tooltip",e.visible=!1,e.opacity=0,e.x=0,e.y=0,e.events.on("visibilitychanged",e.handleVisibility,e),e.applyTheme(),e}return i.prototype.handleVisibility=function(){this.visible&&this.label.invalidate()},Object.defineProperty(i.prototype,"getStrokeFromObject",{get:function(){return this.getPropertyValue("getStrokeFromObject")},set:function(e){this.setPropertyValue("getStrokeFromObject",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"autoTextColor",{get:function(){return this.getPropertyValue("autoTextColor")},set:function(e){this.setPropertyValue("autoTextColor",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keepTargetHover",{get:function(){return this.getPropertyValue("keepTargetHover")},set:function(e){var t=this;this.setPropertyValue("keepTargetHover",e,!0)&&e&&(this.hoverable=!0,this.background.interactionsEnabled=!0,this._disposers.push(this.events.on("over",function(r){t.targetSprite&&t.targetSprite.hoverable&&(t.targetSprite.isHover=!0)})),this._disposers.push(this.events.on("out",function(r){t.targetSprite&&t.targetSprite.hoverable&&(t.targetSprite.isHover=!1)})))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showInViewport",{get:function(){return this.getPropertyValue("showInViewport")},set:function(e){this.setPropertyValue("showInViewport",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"getFillFromObject",{get:function(){return this.getPropertyValue("getFillFromObject")},set:function(e){this.setPropertyValue("getFillFromObject",e,!0)},enumerable:!0,configurable:!0}),i.prototype.createBackground=function(){return new Jb},Object.defineProperty(i.prototype,"pointerOrientation",{get:function(){return this.getPropertyValue("pointerOrientation")},set:function(e){this.setPropertyValue("pointerOrientation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(e){this.setPropertyValue("animationDuration",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(e){this.setPropertyValue("animationEasing",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"html",{get:function(){return this.label.html},set:function(e){this.label.html!=e&&(this.label.html=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this.label.text},set:function(e){this.label.text!=e&&(this.label.text=e,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.draw=function(){n.prototype.draw.call(this);var e=this.label;e.invalid&&e.validate();var t=this._pointTo.x,r=this._pointTo.y,a=this._boundingRect,s=e.measuredWidth,o=e.measuredHeight,l=this.background.pointerLength,u,h;if(this.ignoreBounds&&(a=void 0),a&&this.fixDoc&&s>a.width){ad({x:a.x,y:a.y},this.parent);var d=ad({x:a.x+a.width,y:a.y+a.height},this.parent),f=document.body.offsetWidth;document.body.offsetHeight,d.x>f/2?a.x=a.width-s:a.width=a.x+s}var p=this.pointerOrientation;p=="horizontal"||p=="left"||p=="right"?(h=-o/2,p=="horizontal"?a&&t>a.x+a.width/2?u=-s/2-l:u=s/2+l:p=="left"?u=s/2+l:u=-s/2-l):(a&&(u=ke(0,a.x-t+s/2,a.x-t+a.width-s/2)),p=="vertical"?a&&r>a.y+o+l?(h=-o-l,this._verticalOrientation="up"):(h=l,this._verticalOrientation="down"):p=="down"?(h=-o-l,this._verticalOrientation="up"):(h=l,this._verticalOrientation="down")),a&&(h=ke(h,a.y-r,a.y+a.height-o-r)),e.x=u,e.y=h,this.drawBackground()}
22,i.prototype.updateBackground=function(){this.group.addToBack(this.background.group)},i.prototype.drawBackground=function(){var e=this.label,t=this.background,r=e.measuredWidth,a=e.measuredHeight,s=this._boundingRect,o=r,l=e.pixelX-r/2,u=a,h=e.pixelY,d=this._pointTo.x,f=this._pointTo.y,p=s.x-d,v=p+s.width,m=s.y-f,x=m+s.height;t.x=l,t.y=h,t.width=o,t.height=u,this.fitPointerToBounds?(t.pointerX=ke(-t.x,p-t.x,v-t.x),t.pointerY=ke(-t.y,m-t.y,x-t.y)):(t.pointerX=-t.x,t.pointerY=-t.y),t.validate()},i.prototype.delayedPointTo=function(e,t){var r=this;this._pointToDisposer&&this._pointToDisposer.dispose(),this._pointToDisposer=V.events.once("exitframe",function(){r.pointTo(e,t)}),this.addDisposer(this._pointToDisposer)},i.prototype.pointTo=function(e,t){(this._pointTo.x!=e.x||this._pointTo.y!=e.y)&&(this._pointTo=e,this.invalidate(),!this.visible||t?(this.moveTo(this._pointTo),this._animation&&this._animation.kill()):this.pixelX==0&&this.pixelY==0?this.moveTo(this._pointTo):(this._animation&&this._animation.kill(),this._animation=new cn(this,[{property:"x",to:e.x,from:this.pixelX},{property:"y",to:e.y,from:this.pixelY}],this.animationDuration,this.animationEasing).start()))},i.prototype.setBounds=function(e){var t=this._boundingRect;(t.x!=e.x||t.y!=e.y||t.width!=e.width||t.height!=e.height)&&(this._boundingRect=e,this.invalidate())},Object.defineProperty(i.prototype,"boundingContainer",{set:function(e){this._boundingContainer=e,e.events.on("sizechanged",this.updateBounds,this),e.events.on("positionchanged",this.updateBounds,this)},enumerable:!0,configurable:!0}),i.prototype.updateBounds=function(){var e=this._boundingContainer,t=Gd({x:e.pixelX,y:e.pixelY,width:e.maxWidth,height:e.maxHeight},e);this.setBounds(t)},Object.defineProperty(i.prototype,"ignoreBounds",{get:function(){return this.getPropertyValue("ignoreBounds")},set:function(e){this.setPropertyValue("ignoreBounds",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalOrientation",{get:function(){return this._verticalOrientation},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltip",{get:function(){},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),e._boundingRect&&(this._boundingRect=e._boundingRect)},i.prototype.asFunction=function(e){return e=="animationEasing"||n.prototype.asIs.call(this,e)},i}(Ee);V.registeredClasses.Tooltip=bu;var Cy=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Trapezoid",e.element=e.paper.add("path"),e.topSide=pe(100),e.bottomSide=pe(100),e.leftSide=pe(100),e.rightSide=pe(100),e.isMeasured=!1,e.applyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this);var e=this.pixelWidth,t=this.pixelHeight,r=ri(this.topSide,e),a=ri(this.bottomSide,e),s=ri(this.leftSide,t),o=ri(this.rightSide,t),l=(e-r)/2,u=(t-s)/2,h=e-(e-r)/2,d=(t-o)/2,f=e-(e-a)/2,p=t-(t-o)/2,v=(e-a)/2,m=t-(t-s)/2,x="",w="",P="",O="";if(T(this.horizontalNeck)){var j=this.horizontalNeck.value;x=ie({x:e*j,y:Math.max(u,d)}),P=ie({x:e*j,y:Math.min(p,m)})}if(T(this.verticalNeck)){var M=this.verticalNeck.value;w=ie({x:Math.min(h,f),y:t*M}),O=ie({x:Math.max(l,v),y:t*M})}var F=Oe({x:l,y:u})+x+ie({x:h,y:d})+w+ie({x:f,y:p})+P+ie({x:v,y:m})+O;this.path=F},Object.defineProperty(i.prototype,"topSide",{get:function(){return this.getPropertyValue("topSide")},set:function(e){this.setPercentProperty("topSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bottomSide",{get:function(){return this.getPropertyValue("bottomSide")},set:function(e){this.setPercentProperty("bottomSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"leftSide",{get:function(){return this.getPropertyValue("leftSide")},set:function(e){this.setPercentProperty("leftSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rightSide",{get:function(){return this.getPropertyValue("rightSide")},set:function(e){this.setPercentProperty("rightSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"horizontalNeck",{get:function(){return this.getPropertyValue("horizontalNeck")},set:function(e){this.setPropertyValue("horizontalNeck",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalNeck",{get:function(){return this.getPropertyValue("verticalNeck")},set:function(e){this.setPropertyValue("verticalNeck",e,!0)},enumerable:!0,configurable:!0}),i}(ot);V.registeredClasses.Trapezoid=Cy;var tc=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Triangle",e.element=e.paper.add("path"),e.direction="top",e.applyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this);var e=this.pixelWidth,t=this.pixelHeight,r;switch(this.direction){case"right":r=Oe({x:0,y:0})+ie({x:e,y:t/2})+ie({x:0,y:t})+Ai();break;case"left":r=Oe({x:e,y:0})+ie({x:0,y:t/2})+ie({x:e,y:t})+Ai();break;case"bottom":r=Oe({x:0,y:0})+ie({x:e,y:0})+ie({x:e/2,y:t})+Ai();break;case"top":r=Oe({x:e/2,y:0})+ie({x:e,y:t})+ie({x:0,y:t})+Ai();break}this.path=r},Object.defineProperty(i.prototype,"direction",{get:function(){return this.getPropertyValue("direction")},set:function(e){this.setPropertyValue("direction",e,!0)},enumerable:!0,configurable:!0}),i}(ot);V.registeredClasses.Triangle=tc;var Oa=function(){function n(i,e){this._tensionX=i,this._tensionY=e}return n.prototype.smooth=function(i){for(var e=i.length-1;e>0;e--){var t=i[e],r=i[e-1];
22Math.abs(t.x-r.x)<.1&&Math.abs(t.y-r.y)<.1&&i.splice(e-1,1)}var a=this._tensionX,s=this._tensionY;if(i.length<3||a>=1&&s>=1)return fo(i);var o=i[0],l=i[i.length-1],u=!1;de(o.x,3)==de(l.x)&&de(o.y)==de(l.y)&&(u=!0);for(var h="",e=0,d=i.length-1;e<d;e++){var t=i[e-1],r=i[e],f=i[e+1],p=i[e+2];e===0?u?t=i[i.length-2]:t=i[e]:e==i.length-2&&(u?p=i[1]:p=i[e+1]);var v=Lp(t,r,f,p,a,s),m=Rp(t,r,f,p,a,s);h+=jo(f,v,m)}return h},n}();function po(n,i,e,t,r,a){var s=n.x,o=n.y,l=i.x,u=i.y,h=Mt(n,i);a&&(e=h/Math.round(h/e));var d=V.getCache(Ef(["wavedLine",n.x,i.x,n.y,i.y,e,t]));if(!d){if(h>0){var f=Math.atan2(u-o,l-s),p=Math.cos(f),v=Math.sin(f),m=e*p,x=e*v;if(e<=1||t<=1)d=ie(i);else{var w=Math.round(2*h/e),P=[],O=1;l<s&&(O*=-1),u<o&&(O*=-1);for(var j=0;j<=w;j++){O*=-1;var M=s+j*m/2+O*t/2*v,F=o+j*x/2-O*t/2*p;P.push({x:M,y:F})}d=new Oa(r,r).smooth(P)}}else d="";V.setCache(Ef(["wavedLine",n.x,i.x,n.y,i.y,e,t]),d)}return d}var Dy=function(){function n(i,e){this._reversed=i,this._closed=e.closed}return n.prototype._curve=function(i,e,t,r,a,s){var o=(e-i)/3;return this._reversed?jo({x:r,y:e},{x:t+o*a,y:i+o},{x:r-o*s,y:e-o}):jo({x:e,y:r},{x:i+o,y:t+o*a},{x:e-o,y:r-o*s})},n.prototype.smooth=function(i){var e=this,t=NaN,r=NaN,a=NaN,s=NaN,o=NaN,l=0,u="";switch(De(i,function(h){var d=h.x,f=h.y;if(e._reversed){var p=d;d=f,f=p}var v=NaN;if(!(d===r&&f===s)){switch(l){case 0:l=1,e._reversed?u+=ie({x:f,y:d}):u+=ie({x:d,y:f});break;case 1:l=2;break;case 2:l=3,u+=e._curve(t,r,a,s,qf(t,r,a,s,v=Zf(t,r,a,s,d,f)),v);break;default:u+=e._curve(t,r,a,s,o,v=Zf(t,r,a,s,d,f));break}t=r,r=d,a=s,s=f,o=v}}),l){case 2:this._reversed?u+=ie({x:s,y:r}):u+=ie({x:r,y:s});break;case 3:u+=this._curve(t,r,a,s,o,qf(t,r,a,s,o));break}return this._closed&&(u+=Ai()),u},n}();function Kf(n){return n<0?-1:1}function qf(n,i,e,t,r){var a=i-n;return a?(3*(t-e)/a-r)/2:r}function Zf(n,i,e,t,r,a){var s=i-n,o=r-i,l=(t-e)/(s||o<0&&-0),u=(a-t)/(o||s<0&&-0),h=(l*o+u*s)/(s+o);return(Kf(l)+Kf(u))*Math.min(Math.abs(l),Math.abs(u),.5*Math.abs(h))||0}var Qf=function(n){W(i,n);function i(e){return n.call(this,!1,e)||this}return i}(Dy),Jf=function(n){W(i,n);function i(e){return n.call(this,!0,e)||this}return i}(Dy),Tl=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="WavedCircle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.fill=void 0,e.fillOpacity=0,e.tension=.8,e.applyTheme(),e}return i.prototype.draw=function(){var e="",t=this.pixelRadius;if(t>0){var r=this.getPoints(t);e=Oe(r[0])+new Oa(this.tension,this.tension).smooth(r)}var a=this.pixelInnerRadius;if(a>0){var r=this.getPoints(a);r.reverse(),e+=Oe(r[0])+new Oa(this.tension,this.tension).smooth(r)}this.path=e},i.prototype.getPoints=function(e){for(var t=e*Math.PI*2,r=this.waveHeight/2,a=t/Math.round(t/this.waveLength),s=a/2,o=[],l=t/a,u=0;u<=l;u++){var h=u*a/t*360,d=(u*a+s)/t*360;o.push({x:(e-r)*xe(h),y:(e-r)*be(h)}),o.push({x:(e+r)*xe(d),y:(e+r)*be(d)})}return o.pop(),o},Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return ri(this.innerRadius,xt(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(e){this.setPropertyValue("waveLength",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(e){this.setPropertyValue("waveHeight",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e),this.invalidate()},enumerable:!0,configurable:!0}),i}(as);V.registeredClasses.WavedCircle=Tl;var Ga=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="WavedLine",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.pixelPerfect=!1,e.fill=qe(),e.applyTheme(),e}return i.prototype.draw=function(){var e={x:this.x1,y:this.y1},t={x:this.x2,y:this.y2};this.path=Oe(e)+po(e,t,this.waveLength,this.waveHeight,this.tension,!0)},Object.defineProperty(i.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(e){this.setPropertyValue("waveLength",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")}
22,set:function(e){this.setPropertyValue("waveHeight",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e),this.invalidate()},enumerable:!0,configurable:!0}),i}(pn),Sy=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="WavedRectangle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.setPropertyValue("wavedLeft",!0),e.setPropertyValue("wavedRight",!0),e.setPropertyValue("wavedTop",!0),e.setPropertyValue("wavedBottom",!0),e.applyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this);var e=this.pixelWidth,t=this.pixelHeight;if(e>0&&t>0){var r={x:0,y:0},a={x:e,y:0},s={x:e,y:t},o={x:0,y:t},l=Math.min(e,this.waveLength),u=Math.min(t,this.waveHeight),h=Math.min(t,this.waveLength),d=Math.min(e,this.waveHeight),f="",p="",v="",m="";this.wavedTop&&(f=po(r,a,l,u,this.tension,!0)),this.wavedRight&&(p=po(a,s,h,d,this.tension,!0)),this.wavedBottom&&(v=po(s,o,l,u,this.tension,!0)),this.wavedLeft&&(m=po(o,r,h,d,this.tension,!0)),this.path=Oe(r)+f+ie(a)+p+ie(s)+v+ie(o)+m+"z"}},Object.defineProperty(i.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(e){this.setPropertyValue("waveLength",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(e){this.setPropertyValue("waveHeight",e),this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.setWavedSides=function(e,t,r,a){this.wavedTop=e,this.wavedRight=t,this.wavedBottom=r,this.wavedLeft=a},Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedRight",{get:function(){return this.getPropertyValue("wavedRight")},set:function(e){this.setPropertyValue("wavedRight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedLeft",{get:function(){return this.getPropertyValue("wavedLeft")},set:function(e){this.setPropertyValue("wavedLeft",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedTop",{get:function(){return this.getPropertyValue("wavedTop")},set:function(e){this.setPropertyValue("wavedTop",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedBottom",{get:function(){return this.getPropertyValue("wavedBottom")},set:function(e){this.setPropertyValue("wavedBottom",e,!0)},enumerable:!0,configurable:!0}),i}(gu),Oy=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="ZoomOutButton",e.padding(9,9,9,9),e.showSystemTooltip=!0;var t=new Ot,r=e.background;r.cornerRadius(20,20,20,20),r.fill=t.getFor("primaryButton"),r.stroke=t.getFor("primaryButtonStroke"),r.strokeOpacity=0,r.states.getKey("hover").properties.fill=t.getFor("primaryButtonHover"),r.states.getKey("down").properties.fill=t.getFor("primaryButtonActive");var a=new ot;a.element=e.paper.add("path");var s=Oe({x:0,y:0});return s+=ie({x:11,y:0}),a.path=s,a.pixelPerfect=!0,a.padding(8,3,8,3),a.stroke=t.getFor("primaryButtonText"),e.icon=a,e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Zoom Out"))},i}(Ta);V.registeredClasses.ZoomOutButton=Oy;var sx=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="PlayButton",e.padding(12,12,12,12),e.showSystemTooltip=!0;var t=new Ot,r=e.background;r.cornerRadius(25,25,25,25),r.fill=t.getFor("primaryButton"),r.stroke=t.getFor("primaryButtonStroke"),r.strokeOpacity=0,r.states.getKey("hover").properties.fill=t.getFor("primaryButtonHover"),r.states.getKey("down").properties.fill=t.getFor("primaryButtonActive");var a=new tc;a.direction="right",a.width=9,a.height=11,a.marginLeft=1,a.marginRight=1,a.horizontalCenter="middle",a.verticalCenter="middle",a.stroke=t.getFor("primaryButtonText"),a.fill=a.stroke,e.icon=a;var s=new Hn;s.width=11,s.height=11,s.horizontalCenter="middle",s.verticalCenter="middle",s.cornerRadius(0,0,0,0),s.stroke=t.getFor("primaryButtonText"),s.fill=a.stroke,e.togglable=!0;var o=e.states.create("active");return o.transitionDuration=0,o.properties.icon=s,e.defaultState.transitionDuration=0,e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Play"))},i}(Ta);V.registeredClasses.PlayButton=sx;var Ty=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="ColorModifier",e.applyTheme(),e}return i.prototype.modify=function(e){return e},i}(cr);V.registeredClasses.ColorModifier=Ty;var ic=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.lightnesses=[],e.brightnesses=[],e.opacities=[],e.offsets=[],e.className="GradientModifier",e.applyTheme(),e}return Object.defineProperty(i.prototype,"lightnesses",{get:function(){return this._lightnesses},set:function(e){this._lightnesses=e,this._brightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"brightnesses",{get:function(){return this._brightnesses},set:function(e){this._brightnesses=e,this._lightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opacities",{get:function(){return this._opacities},set:function(e){this._opacities=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"offsets",{get:function(){return this._offsets},set:function(e){this._offsets=e},enumerable:!0,configurable:!0}),i.prototype.modify=function(e){this.gradient.clear();var t=0;this.opacities&&(t=st(t,this.opacities.length)),this.lightnesses&&(t=st(t,this.lightnesses.length)),this.brightnesses&&(t=st(t,this.brightnesses.length));for(var r=1,a,s,o=0;o<t;o++){var l=e;this.opacities&&C(this.opacities[o])&&(r=this.opacities[o]),this.lightnesses&&C(this.lightnesses[o])&&(a=this.lightnesses[o],s=void 0),this.brightnesses&&C(this.brightnesses[o])&&(s=this.brightnesses[o],a=void 0),C(s)?l=e.brighten(this.brightnesses[o]):C(a)&&(l=e.lighten(this.lightnesses[o]));var u=this.offsets[o];
22this.gradient.addColor(l,r,u)}return this.gradient},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this._offsets=e.offsets,this._brightnesses=e.brightnesses,this._lightnesses=e.lightnesses,this._opacities=e.opacities},i}(Ty);V.registeredClasses.GradientModifier=ic;var Zl=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="LinearGradientModifier",e.gradient=new en,e.applyTheme(),e}return i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},i}(ic);V.registeredClasses.LinearGradientModifier=Zl;var ox=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Cone",e.angle=30,e.radius=pe(100),e.topRadius=pe(100),e.top=e.createChild(cd),e.top.shouldClone=!1,e.bottom=e.createChild(cd),e.bottom.shouldClone=!1,e.body=e.createChild(ot),e.body.shouldClone=!1,e.body.setElement(e.paper.add("path")),e.layout="none",e.bodyFillModifier=new Zl,e.bodyFillModifier.lightnesses=[0,-.25,0],e.body.fillModifier=e.bodyFillModifier,e.applyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this),Ci(this,this.top,vi),Ci(this,this.bottom,vi),Ci(this,this.body,vi);var e=this.innerWidth,t=this.innerHeight,r=this.bottom,a=this.top,s=this.angle,o,l,u;this.orientation=="horizontal"?(o=t/2,r.y=t/2,r.x=0,a.y=t/2,a.x=e,l=(90-s)/90,u=0,this.bodyFillModifier.gradient.rotation=90):(l=0,u=(90-s)/90,o=e/2,r.y=t,r.x=e/2,a.x=e/2,this.bodyFillModifier.gradient.rotation=0);var h=this.radius.value*o,d=this.topRadius.value*o;r.radius=h-h*l,r.radiusY=h-h*u,a.radius=d-d*l,a.radiusY=d-d*u;var f;this.orientation=="horizontal"?f=Oe({x:0,y:t/2-r.radiusY})+Li(-90,-180,r.radius,r.radiusY)+ie({x:e,y:t/2+a.radiusY})+Li(90,180,a.radius,a.radiusY)+Ai():f=Oe({x:e/2-a.radius,y:0})+Li(180,-180,a.radius,a.radiusY)+ie({x:e/2+r.radius,y:t})+Li(0,180,r.radius,r.radiusY)+Ai(),this.body.path=f},Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPropertyValue("radius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"topRadius",{get:function(){return this.getPropertyValue("topRadius")},set:function(e){this.setPropertyValue("topRadius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0)},enumerable:!0,configurable:!0}),i}(Ee),rc=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="LightenFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.lightness=0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"lightness",{get:function(){return this.properties.lightness},set:function(e){this.properties.lightness=e;var t=e+1;this.feColorMatrix.attr({values:t+" 0 0 0 0 0 "+t+" 0 0 0 0 0 "+t+" 0 0 0 0 0 1 0"})},enumerable:!0,configurable:!0}),i}(Ys);V.registeredClasses.LightenFilter=rc;var lx=function(n){W(i,n);function i(){var e=n.call(this)||this;e.angle=30,e.depth=30,e.className="Rectangle3D",e.layout="none";var t=e.createChild(ot);t.shouldClone=!1,t.setElement(e.paper.add("path")),t.isMeasured=!1,e.sideBack=t,e._disposers.push(e.sideBack);var r=e.createChild(ot);r.shouldClone=!1,r.setElement(e.paper.add("path")),r.isMeasured=!1,e.sideBottom=r,e._disposers.push(e.sideBottom);var a=e.createChild(ot);a.shouldClone=!1,a.setElement(e.paper.add("path")),a.isMeasured=!1,e.sideLeft=a,e._disposers.push(e.sideLeft);var s=e.createChild(ot);s.shouldClone=!1,s.setElement(e.paper.add("path")),s.isMeasured=!1,e.sideRight=s,e._disposers.push(e.sideRight);var o=e.createChild(ot);o.shouldClone=!1,o.setElement(e.paper.add("path")),o.isMeasured=!1,e.sideTop=o,e._disposers.push(e.sideTop);var l=e.createChild(ot);return l.shouldClone=!1,l.setElement(e.paper.add("path")),l.isMeasured=!1,e.sideFront=l,e._disposers.push(e.sideFront),e.applyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this);var e=this.innerWidth,t=this.innerHeight,r=this.depth,a=this.angle,s=be(a),o=xe(a),l={x:0,y:0},u={x:e,y:0},h={x:e,y:t},d={x:0,y:t},f={x:r*o,y:-r*s},p={x:r*o+e,y:-r*s},v={x:r*o+e,y:-r*s+t},m={x:r*o,y:-r*s+t};this.sideFront.path=Oe(l)+ie(u)+ie(h)+ie(d)+Ai(),this.sideBack.path=Oe(f)+ie(p)+ie(v)+ie(m)+Ai(),this.sideLeft.path=Oe(l)+ie(f)+ie(m)+ie(d)+Ai(),this.sideRight.path=Oe(u)+ie(p)+ie(v)+ie(h)+Ai(),this.sideBottom.path=Oe(d)+ie(m)+ie(v)+ie(h)+Ai(),this.sideTop.path=Oe(l)+ie(f)+ie(p)+ie(u)+Ai()},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")}
22,set:function(e){this.setPropertyValue("angle",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setFill=function(e){n.prototype.setFill.call(this,e),(!Zt(e)||"r"in e)&&(e=qr(e));var t;if(e instanceof wt)t=e.hex;else if(e instanceof en||e instanceof Da)t=e.stops.getIndex(0).color.hex;else{var r=new rc;r.lightness=-.2,this.sideBack.filters.push(r);var a=r.clone();a.lightness=-.4,this.sideLeft.filters.push(a);var s=r.clone();s.lightness=-.2,this.sideRight.filters.push(s);var o=r.clone();o.lightness=-.1,this.sideTop.filters.push(o);var l=r.clone();l.lightness=-.5,this.sideBottom.filters.push(l)}t&&(this.sideBack.fill=qe(t).lighten(-.2),this.sideLeft.fill=qe(t).lighten(-.4),this.sideRight.fill=qe(t).lighten(-.2),this.sideTop.fill=qe(t).lighten(-.1),this.sideBottom.fill=qe(t).lighten(-.5))},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.sideBack.copyFrom(e.sideBack),this.sideLeft.copyFrom(e.sideLeft),this.sideRight.copyFrom(e.sideRight),this.sideTop.copyFrom(e.sideTop),this.sideBottom.copyFrom(e.sideBottom)},i}(Ee),ux=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="Slice3D",e.layout="none";var t=e.createChild(ot);e.edge=t,t.shouldClone=!1,t.isMeasured=!1,t.toBack(),e.angle=30,e.depth=20;var r=e.createChild(ot);e.sideA=r,r.shouldClone=!1,r.isMeasured=!1;var a=e.createChild(ot);return e.sideB=a,a.shouldClone=!1,a.isMeasured=!1,e.applyTheme(),e}return i.prototype.setFill=function(e){n.prototype.setFill.call(this,e);var t;if(e instanceof wt)t=e.hex;else if(e instanceof en||e instanceof Da)t=e.stops.getIndex(0).color.hex;else{var r=new rc;r.lightness=-.25,this.edge.filters.push(r),this.sideA.filters.push(r.clone()),this.sideB.filters.push(r.clone())}if(t){var a=qe(t).lighten(-.25);this.edge.fill=a,this.sideA.fill=a,this.sideB.fill=a,this.edge.stroke=a,this.sideA.stroke=a,this.sideB.stroke=a}},i.prototype.draw=function(){if(this.cornerRadius=0,this.innerCornerRadius=0,n.prototype.draw.call(this),this.arc!==0&&this.radius>0&&this.depth>0){this.sideB.show(0),this.sideA.show(0),this.edge.show(0);for(var e=this.startAngle,t=this.arc,r=this.pixelInnerRadius||0,a=this.radiusY||0,s=this.radius,o=e+t,l=a/s*r,u={x:xe(e)*r,y:be(e)*l},h={x:xe(e)*s,y:be(e)*a},d={x:xe(o)*s,y:be(o)*a},f={x:xe(o)*r,y:be(o)*l},p=this.depth,v={x:u.x,y:u.y-p},m={x:h.x,y:h.y-p},x={x:d.x,y:d.y-p},w={x:f.x,y:f.y-p},P="",O=Math.ceil(t/5),j=t/O,M=e,F=m,g=0;g<O;g++)if(M+=j,M>0&&M<180){P+=Oe(F);var L={x:xe(M)*s,y:be(M)*a-p};P+=ie({x:F.x,y:F.y+p}),P+=Rr({x:L.x,y:L.y+p},s,a,!0),P+=ie(L),P+=Rr(F,s,a),P+="z",F=L}else{P+=Oe(F);var L={x:xe(M)*s,y:be(M)*a-p};P+=Rr(L,s,a,!0),P+=ie({x:L.x,y:L.y+p}),P+=Rr({x:F.x,y:F.y+p},s,a),P+=ie(F),P+="z",F=L}F=v,M=e;for(var g=0;g<O;g++)if(M+=j,M>0&&M<180){P+=Oe(F);var L={x:xe(M)*r,y:be(M)*l-p};P+=ie({x:F.x,y:F.y+p}),P+=Rr({x:L.x,y:L.y+p},r,l,!0),P+=ie(L),P+=Rr(F,r,l),P+="z",F=L}else{P+=Oe(F);var L={x:xe(M)*r,y:be(M)*l-p};P+=Rr(L,r,l,!0),P+=ie({x:L.x,y:L.y+p}),P+=Rr({x:F.x,y:F.y+p},r,l),P+=ie(F),P+="z",F=L}this.edge.path=P,this.sideA.path=Oe(u)+ie(h)+ie(m)+ie(v)+Ai(),this.sideB.path=Oe(d)+ie(f)+ie(w)+ie(x)+Ai(),this.startAngle<90?this.sideA.toBack():this.sideA.toFront(),this.startAngle+this.arc>90?this.sideB.toBack():this.sideB.toFront(),this.slice.dy=-p}else this.sideA.hide(0),this.sideB.hide(0),this.edge.hide(0)},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){var e=this.getPropertyValue("angle");return C(e)||(e=0),e},set:function(e){this.setPropertyValue("angle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radiusY",{get:function(){var e=this.getPropertyValue("radiusY");return C(e)||(e=this.radius-this.radius*this.angle/90),e},set:function(e){this.setPropertyValue("radiusY",e,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.edge.copyFrom(e.edge),this.sideA.copyFrom(e.sideA),this.sideB.copyFrom(e.sideB)},i}(ts),hx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="RadialGradientModifier",e.gradient=new Da,e.applyTheme(),e}return i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},i}(ic);V.registeredClasses.RadialGradientModifier=hx;var ky=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.properties.gap=0,e._line=e.paper.add("path"),e.addElement(e._line),e}return i.prototype.draw=function(){if(n.prototype.draw.call(this),Math.round(this.rotation/90)!=this.rotation/90&&(this.properties.shapeRendering="auto"),this._line){var e=this.width,t=this.height,r="";if(!this.gap)Math.round(this.rotation/90)!=this.rotation/90?(r=Oe({x:-e,y:t/2})+ie({x:e*2,y:t/2}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):r=Oe({x:0,y:0})+ie({x:e,y:0});else for(var a=this.gap+this.strokeWidth,s=this.height/a,o=-s/2;o<s*1.5;o++)Math.round(this.rotation/90)!=this.rotation/90?(r+=Oe({x:-e,y:(o+.5)*a})+ie({x:e*2,y:(o+.5)*a}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):r+=Oe({x:-e,y:o*a})+ie({x:e*2,y:o*a});this._line.attr({d:r})}},Object.defineProperty(i.prototype,"gap",{get:function(){return this.properties.gap},set:function(e){this.properties.gap=e,this.draw()},enumerable:!0,configurable:!0}),i}(Fs);V.registeredClasses.LinePattern=ky;var My=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.properties.radius=2,e._circle=e.paper.add("circle"),e.addElement(e._circle),e.shapeRendering="auto",e}return i.prototype.draw=function(){n.prototype.draw.call(this),this._circle&&this._circle.attr({r:this.radius,cx:this.width/2,cy:this.height/2})},Object.defineProperty(i.prototype,"radius",{get:function(){return this.properties.radius},set:function(e){this.properties.radius=e,this.draw()},enumerable:!0,configurable:!0}),i}(Fs);V.registeredClasses.CirclePattern=My;var Ay=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.rectHeight=1,e.rectWidth=1,e._rect=e.paper.add("rect"),e.addElement(e._rect),e}return i.prototype.draw=function(){n.prototype.draw.call(this),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2,this._rect&&this._rect.attr({width:this.rectWidth,height:this.rectHeight,x:(this.width-this.rectWidth)/2,y:(this.height-this.rectHeight)/2})},Object.defineProperty(i.prototype,"rectWidth",{get:function(){return this.properties.rectWidth}
22,set:function(e){this.properties.rectWidth=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rectHeight",{get:function(){return this.properties.rectHeight},set:function(e){this.properties.rectHeight=e,this.draw()},enumerable:!0,configurable:!0}),i}(Fs);V.registeredClasses.RectPattern=Ay;var dx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="ColorizeFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.intensity=1,e.applyTheme(),e}return i.prototype.applyFilter=function(){var e=this.intensity,t=1-e,r,a,s,o=this.color;o&&o.rgb?(r=o.rgb.r/255*e,a=o.rgb.g/255*e,s=o.rgb.b/255*e):(r=0,a=0,s=0),this.feColorMatrix.attr({values:t+" 0 0 0 "+r+" 0 "+t+" 0 0 "+a+" 0 0 "+t+" 0 "+s+" 0 0 0 1 0"})},Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.properties.color=e,this.applyFilter()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intensity",{get:function(){return this.properties.intensity},set:function(e){this.properties.intensity=e,this.applyFilter()},enumerable:!0,configurable:!0}),i}(Ys);V.registeredClasses.ColorizeFilter=dx;var Ql=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="DesaturateFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"saturate"}),e.filterPrimitives.push(e.feColorMatrix),e.width=120,e.height=120,e.saturation=0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"saturation",{get:function(){return this.properties.saturation},set:function(e){this.properties.saturation=e,this.feColorMatrix.attr({values:e.toString()})},enumerable:!0,configurable:!0}),i}(Ys);V.registeredClasses.DesaturateFilter=Ql;var cx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="BlurFilter",e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.width=200,e.height=200,e.blur=1.5,e.applyTheme(),e}return Object.defineProperty(i.prototype,"blur",{get:function(){return this.properties.blur},set:function(e){this.properties.blur=e,this.feGaussianBlur.attr({stdDeviation:e/this.scale})},enumerable:!0,configurable:!0}),i}(Ys);V.registeredClasses.BlurFilter=cx;var fx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="FocusFilter",e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":new Ot().getFor("primaryButtonHover"),result:"base"}),e.filterPrimitives.push(e.feFlood),e.feMorphology=e.paper.add("feMorphology"),e.feMorphology.attr({result:"bigger",in:"SourceGraphic",operator:"dilate",radius:"2"}),e.filterPrimitives.push(e.feMorphology),e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({result:"mask",in:"bigger",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),e.filterPrimitives.push(e.feColorMatrix),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({result:"drop",in:"base",in2:"mask",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feBlend=e.paper.add("feBlend"),e.feBlend.attr({in:"SourceGraphic",in2:"drop",mode:"normal"}),e.filterPrimitives.push(e.feBlend),e.width=130,e.height=130,e.applyTheme(),e}return Object.defineProperty(i.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(e){this.properties.stroke=e,this.feFlood.attr({"flood-color":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(e){this.properties.strokeWidth=e,this.feMorphology.attr({radius:e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(e){this.properties.opacity=e,this.feColorMatrix.attr({values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "+e+" 0"})},enumerable:!0,configurable:!0}),i.prototype.setSprite=function(e){this._sprite&&this._sprite!=e&&this._sprite.group.removeStyle("outline"),e.group.addStyle({outline:"none"}),n.prototype.setSprite.call(this,e)},i}(Ys),Uo=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._list=[],e._currentStep=0,e._startIndex=0,e._currentPass=0,e.baseColor=new wt({r:103,g:183,b:220}),e.stepOptions={},e.passOptions={brighten:-.2},e.step=1,e.minColors=20,e.minLightness=.2,e.maxLightness=.9,e.shuffle=!1,e.wrap=!0,e.reuse=!1,e.saturation=1,e.className="ColorSet",e.applyTheme(),e}return Object.defineProperty(i.prototype,"list",{get:function(){return this._list||this.generate(this.minColors),this._list},set:function(e){this._list=e,this.reset()},enumerable:!0,configurable:!0}),i.prototype.getReusableColor=function(e){if(this._list.length==0)return this.generate(1),this.list[0];var t=e-Math.floor(e/this._list.length)*this.list.length;return this.list[t]},i.prototype.next=function(){var e;return this.list.length<=this._currentStep?this.reuse?e=this.getReusableColor(this._currentStep):(this.generate(st(this.minColors,this._currentStep+1)),e=this.list[this._currentStep]):e=this.list[this._currentStep],this._currentStep+=this.step,e.saturate(this.saturation)},i.prototype.getIndex=function(e){var t;return this.list.length<=e?this.reuse?t=this.getReusableColor(e):(this.generate(this.minColors),t=this.getIndex(e)):t=this.list[e],t.saturate(this.saturation)},i.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(i.prototype,"currentStep",{get:function(){return this._currentStep},set:function(e){this._currentStep=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startIndex",{get:function(){return this._startIndex},set:function(e){this._startIndex=e,this.reset()},enumerable:!0,configurable:!0}),i.prototype.generate=function(e){var t=this.currentColor,r=_l(ai(t.rgb)),a=T(this.stepOptions.hue)?this.stepOptions.hue:1/e,s={brighten:0,lighten:0,hue:r.h,lightness:r.l,saturation:r.s},o=[],l=this.list.length==0?0:1;if(this.reuse)for(var u=l;u<=e;u++)o.push(_l(ai(this._list[u].rgb)).h);else for(var u=l;u<=e;u++){var h=r.h+a*u;this.wrap&&h>1&&(h-=1),o.push(h)}this.shuffle&&o.sort(function(v,m){return Math.random()-.5});for(var u=0;u<e;u++){this.reuse?r=_l(ai(this._list[u].rgb)):r.h=o.shift(),this.applyStepOptions(r,s,u,this._currentPass);var d=qe(Qp(r)),f=(this.stepOptions.brighten||0)*u+(this.passOptions.brighten||0)*this._currentPass;f!=0&&(this.wrap?f=xh(f,this.minLightness,this.maxLightness):f=bh(f,this.minLightness,this.maxLightness),d=d.brighten(f));var p=(this.stepOptions.lighten||0)*u+(this.passOptions.lighten||0)*this._currentPass;p!=0&&(this.wrap?p=xh(p,this.minLightness,this.maxLightness):p=bh(p,this.minLightness,this.maxLightness),d=d.lighten(p)),this._list.push(d)}this._currentPass++},Object.defineProperty(i.prototype,"currentColor",{get:function(){return this._list.length==0?this.baseColor.saturate(this.saturation):this._list[this._list.length-1].saturate(this.saturation)},enumerable:!0,configurable:!0}),i.prototype.applyStepOptions=function(e,t,r,a){e.l=t.lightness+(this.stepOptions.lightness||0)*r+(this.passOptions.lightness||0)*a,this.wrap?(e.l>1?e.l=e.l-Math.floor(e.l):e.l<0&&(e.l=-(e.l-Math.floor(e.l))),e.l=xh(e.l,this.minLightness,this.maxLightness)):(e.l>1?e.l=1:e.l<0&&(e.l=0),e.l=bh(e.l,this.minLightness,this.maxLightness))},i.prototype.processConfig=function(e){if(e){if(T(e.list)&&Ui(e.list))for(var t=0,r=e.list.length;t<r;t++)e.list[t]instanceof wt||(e.list[t]=qe(e.list[t]));T(e.baseColor)&&!(e.baseColor instanceof wt)&&(e.baseColor=qe(e.baseColor))}n.prototype.processConfig.call(this,e)},i}(cr);V.registeredClasses.ColorSet=Uo;var px=function(n){W(i,n);function i(){var e=n.call(this)||this;e._list=[],e._currentStep=0,e._startIndex=0,e._currentPass=0,e.baseColor=new wt({r:103,g:183,b:220}),e.className="PatternSet";var t=new Ot;return e.list=[e.getLinePattern(1e3,45,1,6),e.getRectPattern(10,0,4),e.getLinePattern(1e3,-45,1,6),e.getCirclePattern(11,2,!0),e.getLinePattern(6,90,1),e.getRectPattern(12,45,6,!0),e.getLinePattern(6,0,1),e.getRectPattern(7,0,4),e.getLinePattern(1e3,45,2,3,"4,2"),e.getCirclePattern(9,3,!1),e.getLinePattern(1e3,-45,2,3,"4,2"),e.getRectPattern(10,45,Math.sqrt(50)),e.getLinePattern(1e3,-45,2,1),e.getRectPattern(10,0,9),e.getLinePattern(1e3,45,2,1),e.getLinePattern(1e3,0,3,1),e.getRectPattern(10,45,10),e.getLinePattern(1e3,90,3,1)],e.baseColor=t.getFor("stroke"),e.applyTheme(),e}return i.prototype.getLinePattern=function(e,t,r,a,s){var o=new ky;return o.width=e,o.height=e,o.stroke=this.baseColor,o.gap=a,o.strokeDasharray=s,o.strokeWidth=r,o.rotation=t,o},i.prototype.getRectPattern=function(e,t,r,a){var s=new Ay;return s.width=e,s.height=e,s.rectWidth=r,s.rectHeight=r,a?(s.stroke=this.baseColor,s.strokeWidth=1,s.fillOpacity=0):(s.fill=this.baseColor,s.strokeWidth=0),t!=0&&(s.shapeRendering="auto"),s.rotation=t,s},i.prototype.getCirclePattern=function(e,t,r){var a=new My;return a.width=e,a.height=e,a.shapeRendering="auto",a.radius=t,r?(a.stroke=this.baseColor,a.strokeWidth=1,a.fillOpacity=0):(a.fill=this.baseColor,a.strokeWidth=0),a},Object.defineProperty(i.prototype,"list",{get:function(){return this._list},set:function(e){this._list=e,this.reset()},enumerable:!0,configurable:!0}),i.prototype.next=function(){var e=this.getIndex(this.currentStep);return this._currentStep++,e},i.prototype.getIndex=function(e){for(var t;this.list.length<=e;)this.generatePatterns();return t=this.list[e],t.clone()},i.prototype.generatePatterns=function(){var e=this.list.length/(this._currentPass+1);this._currentPass++;for(var t=0;t<e;t++)this.list.push(this.list[t].clone())},i.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(i.prototype,"currentStep",{get:function(){return this._currentStep},set:function(e){this._currentStep=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startIndex",{get:function(){return this._startIndex},set:function(e){this._startIndex=e,this.reset()},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){n.prototype.processConfig.call(this,e)},i}(cr);V.registeredClasses.PatternSet=px;var yx=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="AmChartsLogo",e.valign="bottom";var t=.3;e.opacity=.3,e.defaultState.properties.opacity=.4,e.url="https://www.amcharts.com/",e.urlTarget="_blank",e.showSystemTooltip=!0,e.readerTitle="Chart created using amCharts library",e.width=220*t,e.height=70*t,e.background.opacity=0;var r=qe("#474758");new Ot().getFor("background").alternative.hex=="#ffffff"&&(r=qe("#ffffff"));var a=new en;
22a.addColor(r),a.addColor(r,1,.75),a.addColor(qe("#3cabff"),1,.755),a.rotation=-10;var s=a,o=e.createChild(ql);o.shouldClone=!1,o.isMeasured=!1,o.segments=[[{x:50*t,y:50*t},{x:90*t,y:50*t},{x:120*t,y:20*t},{x:135*t,y:35*t},{x:150*t,y:20*t},{x:180*t,y:50*t},{x:200*t,y:50*t}]],o.strokeWidth=6*t,o.tensionX=.8,o.tensionY=1,o.stroke=qe("#3cabff");var l=e.createChild(ql);l.shouldClone=!1,l.isMeasured=!1,l.segments=[[{x:20*t,y:50*t},{x:50*t,y:50*t},{x:90*t,y:12*t},{x:133*t,y:50*t},{x:170*t,y:50*t},{x:200*t,y:50*t}]],l.strokeWidth=6*t,l.tensionX=.75,l.tensionY=1,l.stroke=s,e._disposers.push(l);var u=new Ql;e.filters.push(u);var h=new Ql;h.saturation=1;var d=e.states.create("hover");return d.properties.opacity=1,d.filters.push(h),e.applyTheme(),e}return i}(Ee);function vx(n,i){var e=hy(n),t=!1;if(e||(e=document.createElement("div"),e.style.width="200px",e.style.height="200px",e.style.top="0",e.style.left="0",e.style.visibility="hidden",e.style.position="absolute",document.body.appendChild(e),t=!0),e){e.innerHTML="";var r=new yy(e),a=new vy(r.SVGContainer,"svg-"+(dd.length-1)),s=new Ee;s.htmlContainer=e,s.svgContainer=r,s.width=pe(100),s.height=pe(100),s.background.fillOpacity=0,s.paper=a,a.append(s.group),t&&xb(function(){s.moveHtmlContainer(n)}),s.relativeWidth=1,s.relativeHeight=1,r.container=s;var o=s.createChild(i);o.topParent=s;var l=o.uid;V.invalidSprites[l]=[],V.invalidDatas[l]=[],V.invalidPositions[l]=[],V.invalidLayouts[l]=[],s.baseId=l,o.isBaseSprite=!0,o.focusFilter=new fx,V.baseSprites.push(o),V.baseSpritesByUid[l]=o,o.maskRectangle={x:0,y:0,width:Math.max(r.width||0,0),height:Math.max(r.height||0,0)},s.events.on("maxsizechanged",function(v){(v.previousWidth==0||v.previousHeight==0)&&s.deepInvalidate(),o.maskRectangle&&(o.maskRectangle={x:0,y:0,width:Math.max(r.width||0,0),height:Math.max(r.height||0,0)})});var u=null,h=function(){o.isDisposed()?u=null:dy(o.dom)==null?(Qd("Chart was not disposed",o.uid),u=null):u=window.setTimeout(h,1e3)};h(),o.addDisposer(new Lt(function(){u!==null&&clearTimeout(u),Qe(V.baseSprites,o),V.baseSpritesByUid[o.uid]=void 0})),o.addDisposer(s);var d=s.createChild(Ee);d.topParent=s,d.width=pe(100),d.height=pe(100),d.isMeasured=!1,s.tooltipContainer=d,o.tooltip=new bu,o.tooltip.hide(0),o.tooltip.setBounds({x:0,y:0,width:d.maxWidth,height:d.maxHeight}),d.events.on("maxsizechanged",function(){ai(o.tooltip).setBounds({x:0,y:0,width:d.maxWidth,height:d.maxHeight})},void 0,!1);var f=new wy;if(f.events.on("inited",function(){f.__disabled=!0},void 0,!1),s.preloader=f,o instanceof Ee&&!o.hasLicense()){var p=d.createChild(yx);d.events.on("maxsizechanged",function(v){d.maxWidth<=100||d.maxHeight<=50?p.hide():(p.isHidden||p.isHiding)&&p.show()},void 0,!1),o.logo=p,p.align="left",p.valign="bottom"}return o.numberFormatter,s.isStandaloneInstance=!0,o}else throw yt.log("html container not found"),new Error("html container not found")}function gx(n,i){var e;bt(i)&&(T(V.registeredClasses[i])?i=V.registeredClasses[i]:(i=V.registeredClasses.Container,e=new Error("Class ["+i+"] is not loaded.")));var t=vx(n,i);return e&&t.raiseCriticalError(e),t}function mx(n){V.themes.indexOf(n)===-1&&V.themes.push(n)}var jy=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="Grip";var t=new Ot;e.layout="absolute",e.padding(10,10,10,10),e.margin(3,3,3,3),e.background.fillOpacity=.3,e.background.cornerRadius(10,10,10,10);var r=new ot;r.element=e.paper.add("path");var a=Oe({x:-6,y:0});return a+=ie({x:6,y:0}),a+=Oe({x:-8,y:-6}),a+=ie({x:0,y:-12}),a+=ie({x:8,y:-6}),a+=Oe({x:-8,y:6}),a+=ie({x:0,y:12}),a+=ie({x:8,y:6}),r.path=a,r.strokeWidth=2,r.fillOpacity=0,r.pixelPerfect=!0,r.padding(0,4,0,4),r.stroke=t.getFor("text"),r.strokeOpacity=.7,r.align="center",r.valign="middle",e.icon=r,e.label.dispose(),e.label=void 0,e.position="right",e.autoHideDelay=3e3,e.events.on("shown",function(s){e._autoHideTimeout&&e._autoHideTimeout.dispose(),e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout(function(){e.hide()},e.autoHideDelay))}),e.events.on("down",function(s){e._autoHideTimeout&&e._autoHideTimeout.dispose()}),e.events.on("out",function(s){e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout(function(){e.hide()},e.autoHideDelay))}),e.applyTheme(),e}return Object.defineProperty(i.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(e){if(this.setPropertyValue("position",e))switch(e){case"left":this.align="left",this.valign="middle",this.horizontalCenter="left",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=pe(30);break;case"right":this.align="right",this.valign="middle",this.horizontalCenter="r
22ight",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=pe(30);break;case"top":this.align="center",this.valign="top",this.horizontalCenter="middle",this.verticalCenter="top",this.icon.rotation=90,this.width=pe(30),this.height=void 0;break;case"bottom":this.align="center",this.valign="bottom",this.horizontalCenter="middle",this.verticalCenter="bottom",this.icon.rotation=90,this.width=pe(30),this.height=void 0;break;default:this.align="center",this.valign="middle",this.horizontalCenter="middle",this.verticalCenter="middle",this.icon.rotation=90,this.width=pe(30),this.height=void 0}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"autoHideDelay",{get:function(){return this.getPropertyValue("autoHideDelay")},set:function(e){this.setPropertyValue("autoHideDelay",e)},enumerable:!0,configurable:!0}),i}(Ta);V.registeredClasses.Grip=jy;var Vy=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="ChartDataItem",e.applyTheme(),e}return i}(es),ss=function(n){W(i,n);function i(){var e=n.call(this)||this;if(e._legend=new Ni,e.constructor===i)throw new Error("'Chart' cannot be instantiated directly. Please use a specific chart type.");e.className="Chart";var t=new br;e.titles=new fi(t),e._disposers.push(new zt(e.titles)),e._disposers.push(t),e.width=pe(100),e.height=pe(100),e.layout="vertical";var r=e.createChild(Ee);r.shouldClone=!1,r.layout="vertical",r.width=pe(100),r.height=pe(100),e.chartAndLegendContainer=r;var a=r.createChild(Ee);return a.shouldClone=!1,a.width=pe(100),a.height=pe(100),e.chartContainer=a,e.showOnInit=!0,e._disposers.push(e._legend),e.titles.events.on("inserted",function(s){e.processTitle(s),e.updateReaderTitleReferences()},e,!1),e.titles.events.on("removed",function(s){e.updateReaderTitleReferences()},e,!1),e.role="region",e.defaultState.transitionDuration=1,e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Chart"))},i.prototype.draw=function(){this.fixLayout(),n.prototype.draw.call(this)},i.prototype.fixLayout=function(){var e=this.legend;if(e){var t=this.chartAndLegendContainer,r=this.chartContainer;switch(r.x=void 0,r.y=void 0,e.position!="absolute"&&(e.x=void 0,e.y=void 0),e.position){case"left":t.layout="horizontal",e.toBack();break;case"right":t.layout="horizontal",e.toFront();break;case"top":t.layout="vertical",e.toBack();break;case"bottom":t.layout="vertical",e.toFront();break;case"absolute":e.isMeasured=!1;break}}},i.prototype.feedLegend=function(){},i.prototype.processTitle=function(e){var t=e.newValue;return t.parent=this,t.toBack(),t.shouldClone=!1,t.align="center",t.uidAttr(),t},i.prototype.updateReaderTitleReferences=function(){if(this.titles.length){var e=[];ue(this.titles.iterator(),function(t){e.push(t.uid)}),this.setSVGAttribute({"aria-labelledby":e.join(" ")})}else this.removeSVGAttribute("aria-labelledby")},Object.defineProperty(i.prototype,"legend",{get:function(){return this._legend.get()},set:function(e){this.setLegend(e)},enumerable:!0,configurable:!0}),i.prototype.setLegend=function(e){var t=this;this._legend.get()!==e&&(e?(e.parent=this.chartAndLegendContainer,this._legend.set(e,e.events.on("propertychanged",function(r){r.property=="position"&&t.fixLayout()},void 0,!1)),e.addDisposer(new Lt(function(){t.legend=void 0}))):this._legend.reset(),this.feedLegend())},i.prototype.dispose=function(){this.legend&&this.legend.dispose(),n.prototype.dispose.call(this)},i.prototype.processConfig=function(e){e&&T(e.legend)&&!T(e.legend.type)&&(e.legend.type="Legend"),n.prototype.processConfig.call(this,e)},i.prototype.copyFrom=function(e){this.titles.copyFrom(e.titles),this.chartContainer.copyFrom(e.chartContainer),e.legend&&(this.legend=e.legend.clone(),this.legend.removeChildren()),n.prototype.copyFrom.call(this,e)},Object.defineProperty(i.prototype,"dragGrip",{get:function(){var e=this;if(!this._dragGrip){var t=this.tooltipContainer.createChild(jy);t.align="right",t.valign="middle",t.hide(0),t.events.on("down",function(r){r.touch&&(e.interactionsEnabled=!1)}),t.events.on("up",function(r){e.interactionsEnabled=!0}),this.events.on("down",function(r){r.touch&&t.show()}),this._dragGrip=t}return this._dragGrip},set:function(e){this._dragGrip=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"focusable",{get:function(){return this.parent.focusable},set:function(e){this.parent.focusable=e},enumerable:!0,configurable:!0}),i}(Ns);V.registeredClasses.Chart=ss;
22qi.push({relevant:lr.widthXS,state:function(n,i){if(n instanceof ss){var e=n.states.create(i);return n.pixelPaddingLeft>10&&(e.properties.paddingLeft=10),n.pixelPaddingRight>10&&(e.properties.paddingRight=10),e}return null}});qi.push({relevant:lr.heightXS,state:function(n,i){if(n instanceof ss){var e=n.states.create(i);return n.pixelPaddingTop>10&&(e.properties.paddingTop=10),n.pixelPaddingBottom>10&&(e.properties.paddingBottom=10),e}return null}});qi.push({relevant:lr.widthXXS,state:function(n,i){if(n instanceof ss){var e=n.states.create(i);return e.properties.paddingLeft=0,e.properties.paddingRight=0,e}return null}});qi.push({relevant:lr.heightXXS,state:function(n,i){if(n instanceof ss){var e=n.states.create(i);return e.properties.paddingTop=0,e.properties.paddingBottom=0,e}return null}});var Ln=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Bullet",e.isMeasured=!1,e.tooltipX=0,e.tooltipY=0,e.layout="none",e.applyOnClones=!0,e.copyToLegendMarker=!0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(e){if(this.setPropertyValue("locationX",e)){var t=this.dataItem;t&&t.component&&t.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(e){if(this.setPropertyValue("locationY",e)){var t=this.dataItem;t&&t.component&&t.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xField",{get:function(){return this.getPropertyValue("xField")},set:function(e){this.setPropertyValue("xField",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yField",{get:function(){return this.getPropertyValue("yField")},set:function(e){this.setPropertyValue("yField",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDynamic",{get:function(){return this.getPropertyValue("isDynamic")},set:function(e){this.setPropertyValue("isDynamic",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"copyToLegendMarker",{get:function(){return this.getPropertyValue("copyToLegendMarker")},set:function(e){this.setPropertyValue("copyToLegendMarker",e)},enumerable:!0,configurable:!0}),i}(Ee);V.registeredClasses.Bullet=Ln;qi.push({relevant:lr.isXS,state:function(n,i){if(n instanceof Ln){var e=n.states.create(i);return e.properties.disabled=!0,e}return null}});var bx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.childrenCreated=!1,e.className="LegendDataItem",e.applyTheme(),e}return Object.defineProperty(i.prototype,"label",{get:function(){var e=this;if(!this._label){var t=this.component.labels.create();this._label=t,this.addSprite(t),this._disposers.push(t),t.parent=this.itemContainer,this._disposers.push(new Lt(function(){T(e.component)&&e.component.labels.removeValue(t)}))}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.setProperty("color",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueLabel",{get:function(){var e=this;if(!this._valueLabel){var t=this.component.valueLabels.create();this._valueLabel=t,this.addSprite(t),this._disposers.push(t),t.parent=this.itemContainer,this._disposers.push(new Lt(function(){T(e.component)&&e.component.valueLabels.removeValue(t)}))}return this._valueLabel},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemContainer",{get:function(){var e=this;if(!this._itemContainer){var t=this.component,r=t.itemContainers.create();r.parent=t,this._itemContainer=r,this.addSprite(r),this._disposers.push(r),r.togglable&&r.events.on("toggled",function(o){t.toggleDataItem(o.target.dataItem)},void 0,!1),r.focusable&&(r.events.on("hit",function(o){t.focusedItem=void 0},void 0,!1),r.events.on("focus",function(o){t.focusedItem=o.target.dataItem},void 0,!1),r.events.on("blur",function(o){t.focusedItem=void 0},void 0,!1)),this._disposers.push(new Lt(function(){T(e.component)&&e.component.itemContainers.removeValue(r)})),this.dataContext.uidAttr&&(r.readerControls=this.dataContext.uidAttr(),r.readerLabelledBy=this.dataContext.uidAttr());var a=this.dataContext;if((a instanceof es||a instanceof ot)&&!a.isDisposed()){var s=function(o){r.readerChecked=o.visible,r.events.disableType("toggled"),r.isActive=!o.visible,r.events.enableType("toggled")};a.addDisposer(new Lt(function(){e.component&&e.component.dataItems.remove(e)})),a instanceof ot?(r.addDisposer(a.events.on("visibilitychanged",s,void 0,!1)),r.addDisposer(a.events.on("hidden",function(o){r.readerChecked=!1,r.events.disableType("toggled"),r.isActive=!0,r.events.enableType("toggled")},void 0,!1)),r.addDisposer(a.events.on("shown",function(o){r.readerChecked=!0,r.events.disableType("toggled"),r.isActive=!1,r.events.enableType("toggled")},void 0,!1))):r.addDisposer(a.events.on("visibilitychanged",s,void 0,!1))}}return this._itemContainer},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"marker",{get:function(){var e=this;if(!this._marker){var t=this.component.markers.create();this._marker=t,t.parent=this.itemContainer,this.addSprite(t),this._disposers.push(t),this._disposers.push(new Lt(function(){T(e.component)&&e.component.markers.removeValue(t)}))}return this._marker},enumerable:!0,configurable:!0}),i}(es),Fy=function(){function n(){this.createMarker=!0}return n}(),xu=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="Legend",e.layout="grid",e.setPropertyValue("useDefaultMarker",!1),e.setPropertyValue("scrollable",!1),e.setPropertyValue("contentAlign","center");var t=new Ee;t.applyOnClones=!0,t.padding(8,0,8,0),t.margin(0,10,0,10),t.layout="horizontal",t.clickable=!0,t.focu
22sable=!0,t.role="switch",t.togglable=!0,t.cursorOverStyle=Ki.pointer,t.background.fillOpacity=0,e.itemContainers=new fi(t),e._disposers.push(new zt(e.itemContainers)),e._disposers.push(e.itemContainers.template),e._disposers.push(Je().body.events.on("keyup",function(h){if(Vn.isKey(h.event,"enter")&&e.focusedItem){var d=e.focusedItem,f=d.itemContainer;f.togglable?e.toggleDataItem(d):f.clickable&&f.events.isEnabled("hit")&&(f.dispatchImmediately("hit",{event:h}),e.focusedItem=d)}},e));var r=new Ot,a=new Ee;a.width=23,a.height=23,a.interactionsEnabled=!1,a.applyOnClones=!0,a.setStateOnChildren=!0,a.background.fillOpacity=0,a.background.strokeOpacity=0,a.propertyFields.fill="fill",a.valign="middle";var s=r.getFor("disabledBackground");a.events.on("childadded",function(h){var d=h.newValue,f=d.states.create("active");f.properties.stroke=s,f.properties.fill=s}),e.markers=new fi(a),e._disposers.push(new zt(e.markers)),e._disposers.push(e.markers.template);var o=a.createChild(Hn);o.width=pe(100),o.height=pe(100),o.applyOnClones=!0,o.propertyFields.fill="fill",o.strokeOpacity=0;var l=new br;l.text="{name}",l.margin(0,5,0,5),l.valign="middle",l.applyOnClones=!0,l.states.create("active").properties.fill=r.getFor("disabledBackground"),e.labels=new fi(l),e._disposers.push(new zt(e.labels)),e._disposers.push(e.labels.template),l.interactionsEnabled=!1,l.truncate=!0,l.fullWords=!1;var u=new br;return u.margin(0,5,0,0),u.valign="middle",u.width=50,u.align="right",u.textAlign="end",u.applyOnClones=!0,u.states.create("active").properties.fill=r.getFor("disabledBackground"),u.interactionsEnabled=!1,e.valueLabels=new fi(u),e._disposers.push(new zt(e.valueLabels)),e._disposers.push(e.valueLabels.template),e.position="bottom",t.states.create("active"),t.setStateOnChildren=!0,e.role="group",e.events.on("layoutvalidated",e.handleScrollbar,e,!1),e.events.on("parentset",function(){var h=e.parent;h&&e._disposers.push(h.events.on("maxsizechanged",function(){e.scrollable&&e.setTimeout(function(){e.updateMasks(),e.handleScrollbar(),e._handleWheelReal(1)},100)}))}),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Legend"))},i.prototype.createDataItem=function(){return new bx},i.prototype.validateDataElements=function(){this.scrollbar&&(this.scrollbar.start=0,this.scrollbar.end=1),n.prototype.validateDataElements.call(this)},i.prototype.validateDataElement=function(e){n.prototype.validateDataElement.call(this,e);var t=e.itemContainer,r=e.marker;e.label;var a=e.valueLabel;t.readerChecked=e.dataContext.visible,e.dataContext.legendDataItem=e;var s=e.label.maxWidth;e.label.width instanceof mt||(e.label.width=void 0),s>0&&(e.label.maxWidth=s),a.align=="right"&&(a.width=void 0);var o=e.dataContext.legendSettings,l=e.dataContext;l.createLegendMarker&&(!this.useDefaultMarker||!(l instanceof ot))?e.childrenCreated||(l.createLegendMarker(r),e.childrenCreated=!0):this.markers.template.propertyFields.fill=void 0,l.updateLegendValue&&l.updateLegendValue(),l.component&&l.component.updateLegendValue&&l.component.updateLegendValue(l),a.invalid&&a.validate(),a.text==""||a.text==null?a.__disabled=!0:a.__disabled=!1,o&&(o.itemValueText!=null||o.valueText!=null)&&(a.__disabled=!1);var u=e.dataContext.visible;u===void 0&&(u=!0),u=ti(u),e.dataContext.visible=u,t.events.disableType("toggled"),t.isActive=!u,t.isActive?t.setState("active",0):t.setState("default",0),t.events.enableType("toggled")},i.prototype.afterDraw=function(){var e=this,t=this.getPropertyValue("maxWidth"),r=0;this.labels.each(function(d){d.invalid&&(d.maxWidth=void 0,d.validate()),d.measuredWidth+d.pixelMarginLeft+d.pixelMarginRight>r&&(r=d.measuredWidth+d.pixelMarginLeft+d.pixelMarginRight)});var a=0;this.valueLabels.each(function(d){d.invalid&&d.validate(),d.measuredWidth+d.pixelMarginLeft+d.pixelMarginRight>a&&(a=d.measuredWidth+d.pixelMarginLeft+d.pixelMarginRight)});var s=0;this.markers.each(function(d){d.invalid&&d.validate(),d.measuredWidth+d.pixelMarginLeft+d.pixelMarginRight>s&&(s=d.measuredWidth+d.pixelMarginLeft+d.pixelMarginRight)});var o=this.itemContainers.template,l=o.pixelMarginRight+o.pixelMarginLeft,u,h=r+a+s;C(t)?(t=t-l,t>h&&(t=h),u=t-s-a):u=r,this.labels.each(function(d){(e.valueLabels.template.align=="right"||d.measuredWidth>u)&&(d.width instanceof mt||(d.width=Math.min(d.maxWidth,u-d.pixelMarginLeft-d.pixelMarginRight),d.maxWidth=d.width))}),this.valueLabels.template.align=="right"&&this.valueLabels.each(function(d){d.width=a-d.pixelMarginRight-d.pixelMarginLeft}),n.prototype.afterDraw.call(this)},i.prototype.handleScrollbar=function(){var e=this.scrollbar;if(this.scrollable&&e){var t=this.maxHeight;e.height=t,e.x=this.measuredWidth-e.pixelWidth-e.pixelMarginLeft,this.contentHeight>t?(e.visible=!0,e.thumb.height=e.height*t/this.contentHeight,this.paddingRight=e.pixelWidth+e.pixelMarginLeft+e.pixelMarginRight):(e.thumb.height=e.height*t/this.contentHeight,this.paddingRight=e.pixelWidth+e.pixelMarginLeft+e.pixelMarginRight,e.visible=!1,e.start=0,e.end=1),e.handleThumbPosition(),this.updateMasks()}},Object.defineProperty(i.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(e){this.setPropertyValue("position",e)&&(e=="left"||e=="right"?(this.margin(10,5,10,10),this.valign="middle",this.contentAlign="none",this.valueLabels.template.align="right",C(this.maxColumns)||(this.maxColumns=1),this.width=void 0,this.maxWidth=220):(this.maxColumns=void 0,this.width=pe(100),this.valueLabels.template.align="left"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"useDefaultMarker",{get:function(){return this.getPropertyValue("useDefaultMarker")},set:function(e){this.setPropertyValue("useDefaultMarker",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scrollable",{get:function(){return this.getPropertyValue("scrollable")}
22,set:function(e){if(this.setPropertyValue("scrollable",e,!0))if(e){var t=this.createChild(mu);this.scrollbar=t,t.isMeasured=!1,t.orientation="vertical",t.endGrip.__disabled=!0,t.startGrip.__disabled=!0,t.visible=!1,t.marginLeft=5,this._mouseWheelDisposer=this.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer),this._disposers.push(t.events.on("rangechanged",this.updateMasks,this,!1))}else this._mouseWheelDisposer&&(this._mouseWheelDisposer.dispose(),this.scrollbar&&(this.scrollbar.dispose(),this.scrollbar=void 0))},enumerable:!0,configurable:!0}),i.prototype.handleWheel=function(e){this._handleWheelReal(e.shift.y)},i.prototype._handleWheelReal=function(e){var t=this.scrollbar;if(t){var r=e/1e3*this.measuredHeight/this.contentHeight,a=t.end-t.start;e>0?(t.start=st(0,t.start-r),t.end=t.start+a):(t.end=xt(1,t.end-r),t.start=t.end-a)}},i.prototype.updateMasks=function(){var e=this;this.scrollbar&&this.itemContainers.each(function(t){t.dy=-e.scrollbar.thumb.pixelY*e.contentHeight/e.maxHeight,t.maskRectangle={x:0,y:-t.dy,width:e.measuredWidth,height:e.maxHeight}}),this.invalidatePosition()},i.prototype.toggleDataItem=function(e){var t=e.dataContext;!t.visible||t.isHiding||t instanceof ot&&t.isHidden?(e.color=e.colorOrig,t.appeared=!0,e.itemContainer.isActive=!1,t.hidden===!0&&(t.hidden=!1),t.show?t.show():t.visible=!0,this.svgContainer.readerAlert(this.language.translate("%1 shown",this.language.locale,e.label.readerTitle))):(e.itemContainer.isActive=!0,t.appeared=!0,t.hide?t.hide():t.visible=!1,this.svgContainer.readerAlert(this.language.translate("%1 hidden",this.language.locale,e.label.readerTitle)),e.color=new Ot().getFor("disabledBackground"))},Object.defineProperty(i.prototype,"preloader",{get:function(){},enumerable:!0,configurable:!0}),i.prototype.handleDataItemPropertyChange=function(e,t){e.valueLabel.invalidate(),e.label.invalidate()},i}(Ns);V.registeredClasses.Legend=xu;qi.push({relevant:lr.widthXS,state:function(n,i){if(n instanceof xu&&(n.position=="left"||n.position=="right")){var e=n.states.create(i);return e.properties.position="bottom",e}return null}});qi.push({relevant:lr.heightXS,state:function(n,i){if(n instanceof xu&&(n.position=="top"||n.position=="bottom")){var e=n.states.create(i);return e.properties.position="right",e}return null}});qi.push({relevant:lr.isXS,state:function(n,i){if(n instanceof xu){var e=n.states.create(i);return e.properties.disabled=!0,e}return null}});var _u=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="SeriesDataItem",e.values.value={},e.values.value={},e.applyTheme(),e}return Object.defineProperty(i.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new Gt,this._disposers.push(new Qa(this._bullets))),this._bullets},enumerable:!0,configurable:!0}),i.prototype.dispose=function(){this.bullets.clear(),n.prototype.dispose.call(this)},Object.defineProperty(i.prototype,"value",{get:function(){return this.values.value.value},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),i}(es),wu=function(n){W(i,n);function i(){var e=n.call(this)||this;if(e._ignoreMinMax=!1,e._showBullets=!0,e.legendSettings=new Fy,e._tmin=new Gt,e._tmax=new Gt,e._smin=new Gt,e._smax=new Gt,e.dataItemsByAxis=new Gt,e.skipFocusThreshold=20,e._itemReaderTextChanged=!1,e.calculatePercent=!1,e.usePercentHack=!0,e.autoDispose=!0,e.simplifiedProcessing=!1,e.constructor===i)throw new Error("'Series' cannot be instantiated directly. Please use a specific series type.");e.className="Series",e.isMeasured=!1,e.layout="none",e.shouldClone=!1,e.setPropertyValue("hidden",!1),e.axisRanges=new Pt,e.axisRanges.events.on("inserted",e.processAxisRange,e,!1),e.minBulletDistance=0,e.mainContainer=e.createChild(Ee),e.mainContainer.shouldClone=!1,e.mainContainer.mask=e.createChild(ot),e._disposers.push(e.mainContainer);var t=e.mainContainer.createChild(Ee);return e._shouldBeReady.push(t),t.shouldClone=!1,t.layout="none",t.virtualParent=e,e._disposers.push(t),e.bulletsContainer=t,e.tooltip=new bu,e.tooltip.virtualParent=e,e._disposers.push(e.tooltip),e.hiddenState.transitionEasing=ly,e.dataItem=e.createDataItem(),e._disposers.push(e.dataItem),e.dataItem.component=e,e.role="group",e.applyTheme(),e}return i.prototype.applyTheme=function(){n.prototype.applyTheme.call(this),ir.autoSetClassName&&this.bulletsContainer&&(this.bulletsContainer.className=this.className+"-bullets",this.bulletsContainer.setClassName())},i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Series"))},i.prototype.createDataItem=function(){return new _u},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(e){},i.prototype.processBullet=function(e){var t=this,r=e.newValue;r.isTemplate=!0,this.events.once("datavalidated",function(a){t.itemsFocusable()&&(r.focusable=!0)}),this.invalidate()},i.prototype.removeBullet=function(e){var t=e.oldValue;this.dataItems.each(function(r){var a=r.bullets.getKey(t.uid);a&&a.dispose()}),this.invalidate()},i.prototype.validateDataItems=function(){n.prototype.validateDataItems.call(this),this.processValues(!1)},i.prototype.getFirstValue=function(e,t){for(var r=t;r>=0;r--){var a=this.dataItems.getIndex(r),s=a.getActualWorkingValue(e);if(C(s))return s}return null},i.prototype.getAbsoluteFirstValue=function(e){for(var t=0;t<this.dataItems.length;t++){var r=this.dataItems.getIndex(t),a=r.values[e].value;if(C(a))return a}return null},i.prototype.rangeChangeUpdate=function(){n.prototype.rangeChangeUpdate.call(this),this.processValues(!0)},i.prototype.processValues=function(e){var t=this;if(!this.simplifiedProcessing){var r=this.dataItems,a={},s={},o={},l={},u={},h={},d={},f={},p={},v={},m=st(0,this.startIndex);m=xt(m,this.dataItems.length);var x=xt(this.endIndex,this.dataItems.length);if(C(m)||(m=0),C(x)||(x=this.dataItems.length),m>0){var w=r.getIndex(m-1);$e(w.values,function(g,L){var N=w.getActualWorkingValue(g);C(N)&&(f[g]=N)})}for(var P=function(g){var L=r.getIndex(g);$e(L.values,function(N,ye){var H=L.getActualWorkingValue(N);if(C(H)){C(a[N])||(a[N]=0),a[N]++,C(s[N])||(s[N]=0),s[N]+=H,C(o[N])||(o[N]=0),o[N]+=Math.abs(H),C(h[N])||(h[N]=H),d[N]=H,C(l[N])?l[N]>H&&(l[N]=H):l[N]=H,C(u[N])?u[N]<H&&(u[N]=H):u[N]=H,C(p[N])||(p[N]=t.getFirstValue(N,m)),C(v[N])||(v[N]=t.getAbsoluteFirstValue(N)),L.setCalculatedValue(N,H-p[N],"change"),L.setCalculatedValue(N,(H-p[N])/p[N]*100,"changePercent"),L.setCalculatedValue(N,H-v[N],"startChange"),L.setCalculatedValue(N,(H-v[N])/v[N]*100,"startChangePercent");var z=f[N];C(z)||(z=H),L.setCalculatedValue(N,H-z,"previousChange"),L.setCalculatedValue(N,(H-z)/z*100,"previousChangePercent"),f[N]=H}})},O=m;O<x;O++)P(O);if(this.calculatePercent)for(var j=function(g){var L=r.getIndex(g);$e(L.values,function(N){var ye=o[N],H=L.getActualWorkingValue(N);if(C(H))if(ye>0){t.usePercentHack&&H==ye&&(ye=L.values[N].value);var z=H/ye*100;L.setCalculatedValue(N,z,"percent")}else L.setCalculatedValue(N,0,"percent")})},O=m;O<x;O++)j(O);if(m>0){var M=r.getIndex(m-1);$e(M.values,function(g){var L=M.values[g].value;M.setCalculatedValue(g,L-h[g],"change"),M.setCalculatedValue(g,(L-h[g])/h[g]*100,"changePercent")})}var F=this.dataItem;$e(F.values,function(g){F.setCalculatedValue(g,s[g],"sum"),F.setCalculatedValue(g,o[g],"absoluteSum"),F.setCalculatedValue(g,s[g]/a[g],"average"),F.setCalculatedValue(g,h[g],"open"),F.setCalculatedValue(g,d[g],"close"),F.setCalculatedValue(g,l[g],"low"),F.setCalculatedValue(g,u[g],"high"),F.setCalculatedValue(g,a[g],"count")})}},i.prototype.validate=function(){ko()&&this.filters.clear(),ue(this.axisRanges.iterator(),function(a){a.validate()}),n.prototype.validate.call(this);var e=this.bulletsContainer;if(e.fill=this.fill,e.stroke=this.stroke,e.x=this.pixelX,e.y=this.pixelY,this.bulletsContainer.children.length>0)if(this._showBullets){for(var t=0;t<this.startIndex;t++){var r=this.dataItems.getIndex(t);r&&r.bullets.each(function(a,s){s.__disabled=!0})}for(var t=this.dataItems.length-1;t>this.endIndex;t--){var r=this.dataItems.getIndex(t);r&&r.bullets.each(function(o,l){l.__disabled=!0})}}else this.bulletsContainer.children.each(function(a){a.__disabled=!0});this.updateTooltipBounds()},i.prototype.updateTooltipBounds=function(){if(this.topParent){var e=0,t=0,r=this.topParent.maxWidth,a=this.topParent.maxHeight,s={x:e,y:t,width:r,height:a};this.tooltip.setBounds(s)}},i.prototype.shouldCreateBullet=function(e,t){return!0},i.prototype.validateDataElement=function(e){var t=this;n.prototype.validateDataElement.call(this,e),this._showBullets?(this.isHidden||(this.bulletsContainer.visible=!0),this.bullets.each(function(r){var a=e.bullets.getKey(r.uid);if(t.shouldCreateBullet(e,r)){if(!a){var s=r.propertyFields.disabled,o=e.dataContext;s&&o&&o[s]===!1?(r.applyOnClones=!1,r.disabled=!1,a=r.clone(),r.disabled=!0,r.applyOnClones=!0):a=r.clone(),a.shouldClone=!1,e.addSprite(a),(!t.visible||t.isHiding)&&a.hide(0)}var l=a.dataItem;if(l!=e){l&&l.bullets.setKey(r.uid,void 0);var u=t.itemReaderText;a instanceof Ln&&(u||(u="{"+a.xField+"}: {"+a.yField+"}"),a.isDynamic&&(e.events.on("workingvaluechanged",a.deepInvalidate,a,!1),t.dataItem.events.on("workingvaluechanged",a.deepInvalidate,a,!1)),a.deepInvalidate()),a.focusable&&(a.events.on("focus",function(h){a.readerTitle=t.populateString(u,a.dataItem)},void 0,!1),a.events.on("blur",function(h){a.readerTitle=""},void 0,!1)),a.hoverable&&(a.events.on("over",function(h){a.readerTitle=t.populateString(u,a.dataItem)},void 0,!1),a.events.on("out",function(h){a.readerTitle=""},void 0,!1))}a.parent=t.bulletsContainer,e.bullets.setKey(r.uid,a),a.maxWidth=e.itemWidth,a.maxHeight=e.itemHeight,a.__disabled=!1,t.positionBullet(a)}else a&&(a.__disabled=!0)})):this.bulletsContainer.visible=!1},i.prototype.handleDataItemWorkingValueChange=function(e,t){this.dataRangeInvalid||this.invalidateProcessedData()},Object.defineProperty(i.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(e){this._ignoreMinMax=e,this.invalidateDataItems()},enumerable:!0,configurable:!0}),i.prototype.createMask=function(){},i.prototype.processAxisRange=function(e){this.rangesContainer||(this.rangesContainer=this.createChild(Ee),this.rangesContainer.shouldClone=!1,this.rangesContainer.isMeasured=!1);var t=e.newValue;t&&(t.contents.parent=this.rangesContainer,t.isRange=!0,t.events.on("valuechanged",this.invalidateDataItems,this,!1))},i.prototype.getAxisField=function(e){},i.prototype.showTooltipAtPosition=function(e,t){},Object.defineProperty(i.prototype,"minBulletDistance",{get:function(){return this.getPropertyValue("minBulletDistance")},set:function(e){this.setPropertyValue("minBulletDistance",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new fi(new Ln),this._bullets.template.virtualParent=this,this._bullets.events.on("inserted",this.processBullet,this,!1),this._bullets.events.on("removed",this.removeBullet,this,!1),this._disposers.push(new zt(this._bullets)),this._disposers.push(this._bullets.template)),this._bullets},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(e){},Object.defineProperty(i.prototype,"hiddenInLegend",{get:function(){return this.getPropertyValue("hiddenInLegend")},set:function(e){this.setPropertyValue("hiddenInLegend",e)&&this.chart&&this.chart.feedLegend()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.getPropertyValue("name")}
22,set:function(e){this.setPropertyValue("name",e);var t=this.legendDataItem;t&&(t.component.invalidate(),t.component.invalidateRawData()),this.readerTitle=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemReaderText",{get:function(){var e=this._itemReaderText;return e||(this.tooltipText?e=rd(this.tooltipText):this.tooltipHTML&&(e=rd(this.tooltipHTML))),this._adapterO?this._adapterO.apply("itemReaderText",e):e},set:function(e){this._itemReaderText=e,this._itemReaderTextChanged=!0},enumerable:!0,configurable:!0}),i.prototype.itemsFocusable=function(){return!(this.dataItems.length>=this.skipFocusThreshold)},Object.defineProperty(i.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),i.prototype.updateLegendValue=function(e,t){if(this.legendDataItem){var r=this.legendSettings,a=this.legendDataItem,s=a.label,o=a.valueLabel;e&&!e.isDisposed()||t?(o&&(r.itemValueText&&(o.text=r.itemValueText),o.dataItem=e),s&&(r.itemLabelText&&(s.text=r.itemLabelText),s.dataItem=e)):(s&&((r.labelText||r.itemLabelText!=null)&&(s.text=r.labelText),s.dataItem=this.dataItem),o&&((r.valueText||r.itemValueText!=null)&&(o.text=r.valueText),o.dataItem=this.dataItem))}},i.prototype.copyFrom=function(e){this.bullets.copyFrom(e.bullets),this.bulletsContainer.copyFrom(e.bulletsContainer),this.calculatePercent=e.calculatePercent,this.usePercentHack=e.usePercentHack,this.simplifiedProcessing=e.simplifiedProcessing,n.prototype.copyFrom.call(this,e)},i.prototype.raiseCriticalError=function(e){this._chart&&this._chart.modal&&(this._chart.modal.content=this._chart.adapter.apply("criticalError",e).message,this._chart.modal.closable=!1,this._chart.modal.open(),this._chart.disabled=!0),console.log(e)},i.prototype.applyFilters=function(){var e=this;n.prototype.applyFilters.call(this),this.bulletsContainer.filters.clear(),ue(this.filters.iterator(),function(t){e.bulletsContainer.filters.push(t.clone())})},Object.defineProperty(i.prototype,"heatRules",{get:function(){var e=this;return this._heatRules||(this._heatRules=new Pt,this._heatRules.events.on("inserted",function(t){var r=t.newValue,a=r.target;if(a){var s=r.dataField;T(s)||(s="value");var o=e.dataItem,l=r.property,u=Bt(r.minValue),h=Bt(r.maxValue);!C(u)&&!C(h)&&e.dataItem.events.on("calculatedvaluechanged",function(d){d.property==s&&ue(e.dataItems.iterator(),function(f){var p=!1;De(f.sprites,function(v){if(v.clonedFrom==a){var m=v;m[l]=m[l],p=!0}}),p||De(f.sprites,function(v){v instanceof Ee&&ue(v.children.iterator(),function(m){if(m.className==a.className){var x=m;x[l]=x[l]}else m instanceof Ee&&m.deepInvalidate()})})})}),e.dataItems.template.events.on("workingvaluechanged",function(d){if(d.property==s){var f=d.target,p=!1;De(f.sprites,function(v){if(v.clonedFrom==a){var m=v;m[l]=m[l],p=!0}}),p||De(f.sprites,function(v){v instanceof Ee&&ue(v.children.iterator(),function(m){if(m.className==a.className){var x=m;x[l]=x[l]}else m instanceof Ee&&m.deepInvalidate()})})}}),a.adapter.add(l,function(d,f,p){var v=Bt(r.minValue),m=Bt(r.maxValue),x=r.min,w=r.max;if(f instanceof ot){var P=f,O=P.propertyFields[p];if(O&&f.dataItem){var j=f.dataItem.dataContext;if(j&&T(j[O]))return d}}var M=f.dataItem;if(C(v)||(v=o.values[s].low),C(m)||(m=o.values[s].high),M){var F=M.values[s];if(F){var g=M.getActualWorkingValue(s);if(T(x)&&T(w)&&C(v)&&C(m)&&C(g)){var L=void 0;if(r.logarithmic?L=(Math.log(g)*Math.LOG10E-Math.log(v)*Math.LOG10E)/(Math.log(m)*Math.LOG10E-Math.log(v)*Math.LOG10E):L=(g-v)/(m-v),C(g)&&(!C(L)||Math.abs(L)==1/0)&&(L=.5),C(x))return x+(w-x)*L;if(x instanceof wt)return new wt(Hl(x.rgb,w.rgb,L))}}}return d})}})),this._heatRules},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){var t;if(e){if(T(e.bullets)&&Ui(e.bullets))for(var r=0,a=e.bullets.length;r<a;r++){var s=e.bullets[r];T(s.type)||(s.type="Bullet")}T(e.heatRules)&&Ui(e.heatRules)&&(t=e.heatRules,delete e.heatRules)}if(n.prototype.processConfig.call(this,e),t){for(var r=0,a=t.length;r<a;r++){var o=t[r],l=this;if(T(o.target)&&bt(o.target))if(this.map.hasKey(o.target))l=this.map.getKey(o.target);else for(var u=o.target.split("."),h=0;h<u.length;h++)if(l instanceof Pt){var d=l.getIndex(Bt(u[h]));d?l=d:l=l[u[h]]}else{var f=u[h].match(/^(.*)\[([0-9]+)\]/);f?l[f[1]]instanceof Pt?l=l[f[1]].getIndex(Bt(f[2])):l=l[f[1]][Bt(f[2])]:l=l[u[h]]}o.target=l,T(o.min)&&(o.min=this.maybeColorOrPercent(o.min)),T(o.max)&&(o.max=this.maybeColorOrPercent(o.max))}n.prototype.processConfig.call(this,{heatRules:t})}},i.prototype.configOrder=function(e,t){return e==t?0:e=="heatRules"?1:t=="heatRules"?-1:n.prototype.configOrder.call(this,e,t)},i.prototype.setVisibility=function(e){n.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},i}(Ns);V.registeredClasses.Series=wu;V.registeredClasses.SeriesDataItem=_u;var Iy=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="SerialChartDataItem",e.applyTheme(),e}return i}(Vy),nc=function(n){W(i,n);function i(){var e=n.call(this)||this;e._exitDP={},e.className="SerialChart",e.colors=new Uo,e._usesData=!1;var t=e.chartContainer.createChild(Ee);t.shouldClone=!1,t.width=pe(100),t.height=pe(100),t.isMeasured=!1,t.layout="none",t.zIndex=2,e.seriesContainer=t;var r=e.chartContainer.createChild(Ee);return r.shouldClone=!1,r.width=pe(100),r.height=pe(100),r.isMeasured=!1,r.zIndex=3,r.layout="none",e.bulletsContainer=r,e.applyTheme(),e}return i.prototype.dispose=function(){n.prototype.dispose.call(this),this.colors&&this.colors.dispose(),this.patterns&&this.patterns.dispose()},i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Serial chart"))},Object.defineProperty(i.prototype,"series",{get:function(){return this._series||(this._series=new fi(this.createSeries()),this._series.events.on("inserted",this.handleSeriesAdded,this,!1),this._series.events.on("removed",this.handleSeriesRemoved,this,!1),this._disposers.push(new zt(this._series,!1)),this._disposers.push(this._series.template)),this._series},enumerable:!0,configurable:!0}),i.prototype.handleSeriesRemoved=function(e){var t=e.oldValue;this.dataUsers.removeValue(t),this.dataUsers.each(function(u){u.invali
22dateDataItems()}),this._exitDP[t.uid]&&(this._exitDP[t.uid].dispose(),delete this._exitDP[t.uid]),t.autoDispose?t.dispose():(t.parent=void 0,t.bulletsContainer.parent=void 0);var r=this.legend;if(r){for(var a=this.legend.dataItems,s=a.length-1;s>=0;s--){var o=a.getIndex(s);o&&o.dataContext==t&&r.dataItems.remove(o)}for(var s=r.data.length-1;s>=0;s--){var l=r.data[s];l&&l==t&&Qe(r.data,l)}}},i.prototype.handleSeriesAdded=function(e){var t=this,r=e.newValue;r.isDisposed()||(r.chart=this,r.parent=this.seriesContainer,r.bulletsContainer.parent=this.bulletsContainer,this._dataUsers.moveValue(r),r.addDisposer(new Lt(function(){t.dataUsers.removeValue(r)})),this.handleSeriesAdded2(r),this.handleLegendSeriesAdded(r))},i.prototype.handleLegendSeriesAdded=function(e){e.hiddenInLegend||this.legend&&this.legend.addData(e)},i.prototype.handleSeriesAdded2=function(e){var t=this;this.dataInvalid||(this._exitDP[e.uid]=V.events.once("exitframe",function(){(!e.data||e.data.length==0)&&(e.data=t.data,e.showOnInit&&(e.reinit(),e.setPropertyValue("showOnInit",!1),e.showOnInit=!0),e.isDisposed()||e.events.once("datavalidated",function(){e.data==t.data&&(e._data=[])}))}),this._disposers.push(this._exitDP[e.uid]))},i.prototype.feedLegend=function(){var e=this.legend;if(e){var t=[];ue(this.series.iterator(),function(r){r.hiddenInLegend||t.push(r)}),e.dataFields.name="name",e.data=t}},i.prototype.createSeries=function(){return new wu},Object.defineProperty(i.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(e){this.setPropertyValue("colors",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(e){this.setPropertyValue("patterns",e,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.series.copyFrom(e.series)},i.prototype.appear=function(){n.prototype.appear.call(this),this.series.each(function(e){e.showOnInit&&e.inited&&e.appear()})},i}(ss);V.registeredClasses.SerialChart=nc;var Pu=function(n){W(i,n);function i(){var e=n.call(this)||this;e._axis=new Ni,e.dataItems=new Pt,e.className="AxisBreak",e.breakSize=.01,e.marginLeft=-5,e.marginRight=-5,e.marginTop=-5,e.marginBottom=-5;var t=new Ot,r=new Ga;r.fill=t.getFor("background"),r.stroke=qe(),r.fillOpacity=.9,r.zIndex=0,e._fillShape=r;var a=new Ga;a.fill=qe(),a.stroke=t.getFor("grid"),a.strokeOpacity=.3,a.zIndex=1,e._startLine=a;var s=new Ga;return s.fill=qe(),s.stroke=qe("#000000"),s.strokeOpacity=.3,s.zIndex=2,e._endLine=s,e._disposers.push(e._axis),e.applyTheme(),e}return i.prototype.dispose=function(){n.prototype.dispose.call(this),this._fillShape&&this._fillShape.dispose(),this._startLine&&this._startLine.dispose(),this._endLine&&this._endLine.dispose()},Object.defineProperty(i.prototype,"startLine",{get:function(){return this._startLine},set:function(e){this._startLine&&this._startLine.dispose(),this._startLine=e,this.addBreakSprite(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLine",{get:function(){return this._endLine},set:function(e){this._endLine&&this._endLine.dispose(),this._endLine=e,this.addBreakSprite(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fillShape",{get:function(){return this._fillShape},set:function(e){this._fillShape&&this._fillShape.dispose(),this._fillShape=e,this.addBreakSprite(e)},enumerable:!0,configurable:!0}),i.prototype.addBreakSprite=function(e){e.parent=this,e.isMeasured=!1,this._disposers.push(e)},Object.defineProperty(i.prototype,"axis",{get:function(){return this._axis.get()},set:function(e){if(this._axis.get()!==e){this._axis.set(e,e.renderer.gridContainer.events.on("transformed",this.invalidate,this,!1)),e.renderer.createBreakSprites(this);var t=e.axisBreaks.template;this.startLine.copyFrom(t.startLine),this.endLine.copyFrom(t.endLine),this.fillShape.copyFrom(t.fillShape)}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"breakSize",{get:function(){return this.getPropertyValue("breakSize")},set:function(e){this.setPropertyValue("breakSize",e)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startPoint",{get:function(){var e=this.axis.renderer;if(e)return e.positionToPoint(this.startPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPoint",{get:function(){var e=this.axis.renderer;if(e)return e.positionToPoint(this.endPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startPosition",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPosition",{get:function(){},enumerable:!0,configurable:!0}),i.prototype.draw=function(){if(n.prototype.draw.call(this),this.axis){var e=this.axis.renderer;e.updateBreakElement(this)}},Object.defineProperty(i.prototype,"startValue",{get:function(){return this.getPropertyValue("startValue")}
22,set:function(e){this.setPropertyValue("startValue",e)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endValue",{get:function(){return this.getPropertyValue("endValue")},set:function(e){this.setPropertyValue("endValue",e)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),i}(Ee);V.registeredClasses.AxisBreak=Pu;var Xo=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="AxisDataItem",e.applyTheme(),e}return Object.defineProperty(i.prototype,"grid",{get:function(){if(!this._grid){var e=this.component;if(e){var t=void 0,r;if(this.isRange){if(t=e.axisRanges.template.grid,t.disabled)return;r=t.clone()}else{if(t=e.renderer.grid.template,t.disabled)return;r=e.renderer.grid.create(),this._disposers.push(new Lt(function(){e.renderer.grid.removeValue(r)}))}this.grid=r,r.shouldClone=!1,this._disposers.push(r),r.axis=this.component}}return this._grid},set:function(e){this._grid&&this._grid!=e&&(Qe(this.sprites,this._grid),this._grid.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(Qe(e.dataItem.sprites,e),e.dataItem.grid=void 0),this.addSprite(e)),this._grid=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tick",{get:function(){if(!this._tick){var e=this.component;if(e){var t=void 0,r;if(this.isRange){if(t=e.axisRanges.template.tick,t.disabled)return;r=t.clone()}else{if(t=e.renderer.ticks.template,t.disabled)return;r=e.renderer.ticks.create(),this._disposers.push(new Lt(function(){e.renderer.ticks.removeValue(r)}))}this.tick=r,r.axis=this.component,r.shouldClone=!1,this._disposers.push(r)}}return this._tick},set:function(e){this._tick&&this._tick!=e&&(Qe(this.sprites,this._tick),this._tick.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(Qe(e.dataItem.sprites,e),e.dataItem.tick=void 0),this.addSprite(e)),this._tick=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){if(!this._label){var e=this.component;if(e){var t=void 0,r;if(this.isRange){if(t=e.axisRanges.template.label,t.disabled)return;r=t.clone()}else{if(t=e.renderer.labels.template,t.disabled)return;r=e.renderer.labels.create(),this._disposers.push(new Lt(function(){e.renderer.labels.removeValue(r)}))}this._disposers.push(r),this.label=r,r.shouldClone=!1,r.axis=this.component,r.virtualParent=e}}return this._label},set:function(e){this._label&&this._label!=e&&(Qe(this.sprites,this._label),this._label.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(Qe(e.dataItem.sprites,e),e.dataItem.label=void 0),this.addSprite(e)),this._label=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axisFill",{get:function(){if(!this._axisFill){var e=this.component;if(e){var t=void 0,r;if(this.isRange){if(t=e.axisRanges.template.axisFill,!this.isTemplate&&t.disabled)return;r=t.clone()}else{if(t=e.renderer.axisFills.template,t.disabled)return;r=e.renderer.axisFills.create(),this._disposers.push(new Lt(function(){e.renderer.axisFills.removeValue(r)}))}this.axisFill=r,r.shouldClone=!1,this._disposers.push(r)}}return this._axisFill},set:function(e){this._axisFill&&this._axisFill!=e&&(Qe(this.sprites,this._axisFill),this._axisFill.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(Qe(e.dataItem.sprites,e),e.dataItem.axisFill=void 0),e.axis=this.component,this.addSprite(e)),this._axisFill=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e,this._label&&(this._label.text=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mask",{get:function(){return this._mask},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contents",{get:function(){if(!this._contents){var e=new Ee;this.addSprite(e),e.isMeasured=!1,this._contents=e;var t=this.component;if(t){var r=t.renderer.createFill(this.component);r.disabled=!1,r.axis=t,this.addSprite(r),this._mask=r,e.mask=r}}return this._contents},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axisBreak",{get:function(){return this._axisBreak},set:function(e){this._axisBreak&&this._axisBreak.dataItems.removeValue(this),e&&e.dataItems.push(this),this._axisBreak=e},enumerable:!0,configurable:!0}),i.prototype.validate=function(){this.component&&this.component.validateDataElement(this)},i.prototype.appendChildren=function(){this.component&&this.component.appendDataItem(this)},i.prototype.hasProperty=function(e){return e=="component"?!0:n.prototype.hasProperty.call(this,e)},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.text=e.text,e.bullet&&(this.bullet=e.bullet.clone()),this.minPosition=e.minPosition,this.maxPosition=e.maxPosition},i.prototype.setVisibility=function(e,t){n.prototype.setVisibility.call(this,e,t),this._contents&&(this._contents.visible=e)},Object.defineProperty(i.prototype,"bullet",{get:function(){return this._bullet},set:function(e){this._bullet&&this._bullet!=e&&(Qe(this.sprites,this._bullet),this._bullet.dataItem=void 0),this._bullet=e,e&&this.addSprite(e)},enumerable:!0,configurable:!0}),i}(es),ep;(function(n){n[n.Start=0]="Start",n[n.Middle=.5]="Middle",n[n.End=1]="End"})(ep||(ep={}));var Cu=function(n){W(i,n);function i(){var e=n.call(this)||this;if(e._gridCount=10,e._series=new Pt,e.autoDispose=!0,e._axisItemCount=0,e.constructor===i)throw new Error("'Axis' cannot be instantiated directly. Please use a specific axis type.");e.hideTooltipWhileZooming=!0,e.minWidth=1e-4,e.minHeight=1e-4,e.className="Axis",e.shouldClone=!1,e.setPropertyValue("cursorTooltipEnabled",!0),e.toggleZoomOutButton=!0,e.zoomable=!0;var t=new Ot;e.title=new br,e.title.shouldClone=!1,e._disposers.push(e.title),e.setPropertyValue("startLocation",0),e.setPropertyValue("endLocation",1),e._dataItemsIterator=new Ud(e.dataItems,function(){return e.dataItems.create()}),e._dataItemsIterator.createNewItems=!0;var r=new bu;e._disposers.push(r),r.label.padding(5,10,5,10),r.background.pointerLength=5,r.fitPointerToBounds=!0,r.background.filters.clear(),r.virtualParent=e;var a=r.background;
22return a.cornerRadius=0,a.fill=t.getFor("alternativeBackground"),a.stroke=a.fill,a.strokeWidth=1,a.fillOpacity=1,r.label.fill=t.getFor("alternativeText"),e.tooltip=r,e.readerHidden=!0,e.events.on("rangechangestarted",function(){e.series.each(function(s){s.hideTooltipWhileZooming&&(s.tooltip.hide(),s.tooltip.preventShow=!0)}),e.hideTooltipWhileZooming&&(e.tooltip.hide(),e.tooltip.preventShow=!0)},void 0,!1),e.events.on("rangechangeended",function(){e.series.each(function(s){s.hideTooltipWhileZooming&&(s.tooltip.hide(),s.tooltip.preventShow=!1)}),e.hideTooltipWhileZooming&&(e.tooltip.hide(),e.tooltip.preventShow=!1)},void 0,!1),e.applyTheme(),e}return i.prototype.fillRule=function(e,t){C(t)||(t=e.index),t/2==Math.round(t/2)?(e.axisFill.__disabled=!0,e.axisFill.opacity=0):(e.axisFill.opacity=1,e.axisFill.__disabled=!1)},i.prototype.createDataItem=function(){return new Xo},i.prototype.invalidateLayout=function(){n.prototype.invalidateLayout.call(this),ue(this.series.iterator(),function(e){e.invalidateLayout()})},i.prototype.invalidateSeries=function(){ue(this.series.iterator(),function(e){e.invalidate()})},i.prototype.validateDataElements=function(){this._axisItemCount=0,this.ghostLabel&&(this.renderer.updateLabelElement(this.ghostLabel,this.start,this.end),this.ghostLabel.validate())},i.prototype.updateGridCount=function(){if(this.renderer){var e=this.axisLength/this.renderer.minGridDistance;e!=this._gridCount&&(this._gridCount=e,this.clearCache())}},i.prototype.validateLayout=function(){this.axisFullLength=this.axisLength/(this.end-this.start),n.prototype.validateLayout.call(this),this.updateGridCount();var e=this.renderer;e&&(e.updateAxisLine(),e.updateTooltip(),e.updateBaseGridElement()),this._prevLength!=this.axisLength&&(this.dispatchImmediately("lengthchanged"),this._prevLength=this.axisLength)},i.prototype.initRenderer=function(){},i.prototype.appendDataItem=function(e){var t=this.renderer,r=e.tick;r&&(r.above?r.parent=t.bulletsContainer:r.parent=t.gridContainer),e.label&&(e.label.parent=t);var a=e.axisFill;a&&(a.above?a.parent=t.bulletsContainer:a.parent=t.gridContainer);var s=e.grid;s&&(s.above?s.parent=t.bulletsContainer:s.parent=t.gridContainer),e.bullet&&(e.bullet.parent=t.bulletsContainer)},i.prototype.validate=function(){n.prototype.validate.call(this),this.validateLayout(),this.renderer.updateGridContainer()},i.prototype.validateAxisRanges=function(){var e=this;ue(this.axisRanges.iterator(),function(t){e.appendDataItem(t),e.validateDataElement(t),t.grid&&t.grid.validate(),t.tick&&t.tick.validate(),t.axisFill&&t.axisFill.validate(),t.label&&t.label.validate()})},i.prototype.validateBreaks=function(){this._axisBreaks&&ue(this._axisBreaks.iterator(),function(e){e.invalidate()})},i.prototype.processBreak=function(e){var t=e.newValue;t.parent=this.renderer.breakContainer,t.axis=this},i.prototype.registerSeries=function(e){var t=this;return this.series.moveValue(e),new di([new Lt(function(){t.series.removeValue(e)}),this.events.on("lengthchanged",e.invalidate,e,!1),this.events.on("lengthchanged",e.createMask,e,!1),this.events.on("startchanged",e.invalidate,e,!1),this.events.on("endchanged",e.invalidate,e,!1)])},Object.defineProperty(i.prototype,"renderer",{get:function(){return this._renderer},set:function(e){if(e!=this._renderer){this._renderer=e,e.chart=this.chart,e.axis=this,e.parent=this,this.title.parent=this,this.initRenderer(),this._disposers.push(e.gridContainer.events.on("maxsizechanged",this.invalidate,this,!1));var t=this.renderer.labels.create();this._disposers.push(t),t.dataItem=this.dataItems.template.clone(),t.text="L",t.parent=this.renderer,t.shouldClone=!1,t.fillOpacity=0,t.opacity=0,t.strokeOpacity=0,t.interactionsEnabled=!1,t.validate(),this.ghostLabel=t,this.events.on("beforedatavalidated",function(){t.text="L"},void 0,!1)}},enumerable:!0,configurable:!0}),i.prototype.positionToAngle=function(e){return this.renderer.positionToAngle(e)},i.prototype.pointToPosition=function(e){return this.renderer.pointToPosition(e)},i.prototype.positionToCoordinate=function(e){return this.renderer.positionToCoordinate(e)},i.prototype.getAnyRangePath=function(e,t){return this.renderer.getPositionRangePath(e,t)},i.prototype.anyToPosition=function(e){return 0},i.prototype.anyToPoint=function(e){return{x:0,y:0,angle:0}},i.prototype.getPositionRangePath=function(e,t){return this.renderer?this.renderer.getPositionRangePath(e,t):""}
22,Object.defineProperty(i.prototype,"axisLength",{get:function(){return this.renderer?this.renderer.axisLength:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(e){this.setPropertyValue("cursorTooltipEnabled",e)&&(e&&this.renderer?this.renderer.updateTooltip():this.tooltip&&this.tooltip.hide(0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"toggleZoomOutButton",{get:function(){return this.getPropertyValue("toggleZoomOutButton")},set:function(e){this.setPropertyValue("toggleZoomOutButton",e)},enumerable:!0,configurable:!0}),i.prototype.hideTooltip=function(e){n.prototype.hideTooltip.call(this,e),this._tooltipPosition=void 0},i.prototype.showTooltipAtPosition=function(e,t){var r=this._tooltip;if(!r||this.dataItems.length<=0)this._tooltipPosition=void 0;else{if(t||(e=this.toAxisPosition(e)),!C(e)||e<this.start||e>this.end){r.hide(0),this._tooltipPosition=void 0;return}var a=this.renderer;r.parent||(r.parent=this.tooltipContainer);var s=a.tooltipLocation,o=this.getCellStartPosition(e),l=this.getCellEndPosition(e);if(this.tooltipPosition=="fixed"&&(e=o+(l-o)*s),e=ke(e,this.start,this.end),this._tooltipPosition!=e){this._tooltipPosition=e;var u=a.tooltipLocation2,h=a.positionToPoint(o,u),d=a.positionToPoint(l,u);this.currentItemStartPoint=h,this.currentItemEndPoint=d,a.fullWidthTooltip&&(r.width=d.x-h.x,r.height=d.y-h.y);var f=a.positionToPoint(e,u),p=Qr(f,this.renderer.line);r.text=this.getTooltipText(e),r.text&&(r.delayedPointTo(p),r.show())}(!this.cursorTooltipEnabled||this.tooltip.disabled)&&r.hide(0)}},i.prototype.toAxisPosition=function(e){if(e=this.renderer.toAxisPosition(e),e!=null)return e=e*(this.end-this.start),this.renderer.inversed?e=this.end-e:e=this.start+e,e},i.prototype.toGlobalPosition=function(e){return this.renderer.inversed?e=this.end-e:e=e-this.start,e/(this.end-this.start)},i.prototype.getTooltipText=function(e){},i.prototype.updateTooltip=function(e,t){var r=this._tooltip;r&&(r.fixDoc=!1,r.pointerOrientation=e,r.setBounds(Gd(t,this.renderer.line)))},i.prototype.roundPosition=function(e,t,r){return e},i.prototype.getCellStartPosition=function(e){return e},i.prototype.getCellEndPosition=function(e){return e},Object.defineProperty(i.prototype,"axisRanges",{get:function(){if(!this._axisRanges){var e=this.createDataItem();e.isRange=!0,e.axisFill=this.renderer.axisFills.template.clone(),e.grid=this.renderer.grid.template.clone(),e.tick=this.renderer.ticks.template.clone(),e.label=this.renderer.labels.template.clone(),e.isTemplate=!0,e.component=this,e.axisFill.disabled=!1,e.tick.disabled=!1,e.grid.disabled=!1,e.label.disabled=!1,this._axisRanges=new fi(e),this._axisRanges.events.on("inserted",this.processAxisRange,this,!1),this._disposers.push(new zt(this._axisRanges)),this._disposers.push(this._axisRanges.template)}return this._axisRanges},enumerable:!0,configurable:!0}),i.prototype.processAxisRange=function(e){var t=e.newValue;t.component=this,t.isRange=!0},Object.defineProperty(i.prototype,"axisBreaks",{get:function(){return this._axisBreaks||(this._axisBreaks=new qp(this.createAxisBreak(),function(e,t){return En(e.adjustedStartValue,t.adjustedStartValue)}),this._axisBreaks.events.on("inserted",this.processBreak,this,!1),this._disposers.push(new zt(this._axisBreaks)),this._disposers.push(this._axisBreaks.template)),this._axisBreaks},enumerable:!0,configurable:!0}),i.prototype.createAxisBreak=function(){return new Pu},Object.defineProperty(i.prototype,"series",{get:function(){return this._series||(this._series=new Pt),this._series},enumerable:!0,configurable:!0}),i.prototype.processSeriesDataItems=function(){},i.prototype.processSeriesDataItem=function(e,t){},i.prototype.postProcessSeriesDataItems=function(e){},i.prototype.postProcessSeriesDataItem=function(e){},i.prototype.updateAxisBySeries=function(){},i.prototype.hideUnusedDataItems=function(){var e=this,t=this._dataItemsIterator;t.createNewItems=!1,ue(t.iterator(),function(r){e.validateDataElement(r),r.__disabled=!0}),t.clear(),t.createNewItems=!0},i.prototype.getSeriesDataItem=function(e,t,r){},i.prototype.getAngle=function(e,t,r,a,s){},i.prototype.getX=function(e,t,r,a,s){},i.prototype.getPositionX=function(e,t,r,a,s){},i.prototype.getY=function(e,t,r,a,s){},i.prototype.getPositionY=function(e,t,r,a,s){},Object.defineProperty(i.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),i.prototype.dataChangeUpdate=function(){},i.prototype.seriesDataChangeUpdate=function(e){},i.prototype.adjustDifference=function(e,t){var r=t-e;if(C(r))return this._axisBreaks&&Yr(this._axisBreaks.iterator(),function(a){var s=a.adju
22stedStartValue,o=a.adjustedEndValue;if(C(s)&&C(o)){if(s>t)return!1;if(o>=e&&C(s)&&C(o)){var l=a.breakSize,u=Hm({start:s,end:o},{start:e,end:t});u&&(r-=(u.end-u.start)*(1-l))}return!0}}),r},i.prototype.isInBreak=function(e){if(this._axisBreaks)return s0(this._axisBreaks.iterator(),function(t){return e>=t.adjustedStartValue&&e<=t.adjustedEndValue})},i.prototype.fixAxisBreaks=function(){var e=this;if(this._axisBreaks){var t=this._axisBreaks;if(t.length>0){De(Oo(t.iterator()),function(s){var o=xt(s.startValue,s.endValue),l=st(s.startValue,s.endValue);s.adjustedStartValue=o,s.adjustedEndValue=l,e._axisBreaks.update(s)});var r=t.first,a=Math.min(r.startValue,r.endValue);ue(t.iterator(),function(s){var o=s.adjustedStartValue,l=s.adjustedEndValue;o<a&&(o=a,l<a&&(l=a)),s.adjustedStartValue=o,s.adjustedEndValue=l})}}},Object.defineProperty(i.prototype,"startIndex",{get:function(){return 0},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endIndex",{get:function(){return this.dataItems.length},set:function(e){},enumerable:!0,configurable:!0}),i.prototype.getPositionLabel=function(e){return Math.round(e*100)+"%x"},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),i.prototype.createSeriesRange=function(e){var t=this.axisRanges.create();return t.component=this,t.axisFill=this.renderer.axisFills.template.clone(),t.axisFill.disabled=!1,t.axisFill.fillOpacity=0,t.grid=this.renderer.grid.template.clone(),t.grid.disabled=!0,t.tick=this.renderer.ticks.template.clone(),t.tick.disabled=!0,t.label=this.renderer.labels.template.clone(),t.label.disabled=!0,t.addDisposer(new Lt(function(){e.axisRanges.removeValue(t)})),e.axisRanges.push(t),t},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.renderer?this.renderer.copyFrom(e.renderer):e.renderer&&(this.renderer=e.renderer.clone(),this._disposers.push(this.renderer)),e.title&&(this.title?this.title.copyFrom(e.title):(this.title=e.title.clone(),this.title.parent=this),this._disposers.push(this.title))},i.prototype.resetIterators=function(){this._dataItemsIterator.reset()},i.prototype.processConfig=function(e){if(e&&T(e.axisRanges)&&Ui(e.axisRanges))for(var t=0,r=e.axisRanges.length;t<r;t++){var a=e.axisRanges[t];T(a.series)&&bt(a.series)&&this.map.hasKey(a.series)&&(e.axisRanges[t]=this.createSeriesRange(this.map.getKey(a.series)),delete a.series,e.axisRanges[t].config=a)}n.prototype.processConfig.call(this,e)},i.prototype.configOrder=function(e,t){return e==t?0:e=="title"?1:t=="title"||e=="component"?-1:t=="component"?1:n.prototype.configOrder.call(this,e,t)},Object.defineProperty(i.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(e){var t=n.prototype.setDisabled.call(this,e);return this.renderer&&(this.renderer.gridContainer.disabled=e),t},Object.defineProperty(i.prototype,"title",{get:function(){return this._title},set:function(e){this._title&&this._title!=e&&this._title.dispose(),e&&(this._title=e,e.parent=this,e.shouldClone=!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideTooltipWhileZooming",{get:function(){return this.getPropertyValue("hideTooltipWhileZooming")},set:function(e){this.setPropertyValue("hideTooltipWhileZooming",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"zoomable",{get:function(){return this.getPropertyValue("zoomable")},set:function(e){this.setPropertyValue("zoomable",e)},enumerable:!0,configurable:!0}),i}(Ns);V.registeredClasses.Axis=Cu;V.registeredClasses.AxisDataItem=Xo;qi.push({relevant:lr.maybeXS,state:function(n,i){if(n instanceof Cu&&n.tooltip){var e=n.states.create(i);return e.properties.cursorTooltipEnabled=!1,e}return null}});var Ey=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="AxisLine",e.element=e.paper.add("path");var t=new Ot;return e.stroke=t.getFor("grid"),e.strokeOpacity=.15,e.pixelPerfect=!0,e.fill=qe(),e.applyTheme(),e.interactionsEnabled=!1,e}return i}(ot);V.registeredClasses.AxisLine=Ey;var ac=function(n){W(i,n);function i(e){var t=n.call(this)||this;t.axis=e,t.element=t.paper.add("path"),t.className="AxisFill",t.isMeasured=!1,t.location=0,t.above=!1;var r=new Ot;
22return t.fill=r.getFor("alternativeBackground"),t.fillOpacity=0,t.applyTheme(),t}return i.prototype.setDisabled=function(e){var t=n.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),t},i.prototype.draw=function(){n.prototype.draw.call(this),!(this.__disabled||this.disabled)&&this.axis&&C(this.startPosition)&&C(this.endPosition)&&(this.fillPath=this.axis.getPositionRangePath(this.startPosition,this.endPosition),this.path=this.fillPath,this.isMeasured&&this.measure())},Object.defineProperty(i.prototype,"startPosition",{get:function(){return this.getPropertyValue("startPosition")},set:function(e){this.setPropertyValue("startPosition",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPosition",{get:function(){return this.getPropertyValue("endPosition")},set:function(e){this.setPropertyValue("endPosition",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setPath=function(e){return this.setPropertyValue("path",e)?(this.element.attr({d:e}),!0):!1},Object.defineProperty(i.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(e){this.setPropertyValue("above",e,!0)},enumerable:!0,configurable:!0}),i}(ot);V.registeredClasses.AxisFill=ac;var Fo=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="Grid",e.element=e.paper.add("path"),e.location=.5,e.isMeasured=!1,e.above=!1;var t=new Ot;return e.stroke=t.getFor("grid"),e.pixelPerfect=!0,e.strokeOpacity=.15,e.fill=qe(),e.applyTheme(),e}return Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(e){this.setPropertyValue("above",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(e){var t=n.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),t},i}(ot);V.registeredClasses.Grid=Fo;qi.push({relevant:lr.maybeXS,state:function(n,i){if(n instanceof Fo){var e=n.states.create(i);return e.properties.disabled=!0,e}return null}});var sc=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="AxisLabel",e.isMeasured=!1,e.padding(10,10,10,10),e.location=.5,e.applyTheme(),e}return Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(e){this.setPropertyValue("inside",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(e){var t=n.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),t},i}(br);V.registeredClasses.AxisLabel=sc;var Go=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="Tick";var t=new Ot;return e.fillOpacity=0,e.length=6,e.strokeOpacity=.2,e.stroke=t.getFor("grid"),e.isMeasured=!1,e.nonScalingStroke=!0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"length",{get:function(){return this.disabled?0:this.getPropertyValue("length")},set:function(e){this.setPropertyValue("length",e,!0)},enumerable:!0,configurable:!0}),i}(ot);V.registeredClasses.Tick=Go;var Ly=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="AxisTick",e.element=e.paper.add("path"),e.location=.5,e.above=!1,e.isMeasured=!1,e.pixelPerfect=!0,e.strokeOpacity=0,e.length=5,e.applyTheme(),e}return Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(e){this.setPropertyValue("inside",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"above",{get:function(){return this.getPropertyValue("above")}
22,set:function(e){this.setPropertyValue("above",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(e){var t=n.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),t},i}(Go);V.registeredClasses.AxisTick=Ly;var Du=function(n){W(i,n);function i(){var e=n.call(this)||this;e._chart=new Ni,e.className="AxisRenderer",e.minGridDistance=50,e.inside=!1,e.inversed=!1,e.tooltipLocation=.5,e.fullWidthTooltip=!1,e.cellStartLocation=0,e.cellEndLocation=1,e.minLabelPosition=0,e.maxLabelPosition=1,e.shouldClone=!1;var t=e.createChild(Ee);t.shouldClone=!1,t.layout="none",t.virtualParent=e,t.width=pe(100),t.height=pe(100),e.gridContainer=t,t.events.on("maxsizechanged",function(){e.inited&&e.invalidateAxisItems()},e,!1);var r=e.createChild(Ee);r.shouldClone=!1,r.isMeasured=!1,r.layout="none",r.width=pe(100),r.height=pe(100),e.breakContainer=r;var a=e.createChild(Ee);a.shouldClone=!1,a.isMeasured=!1,a.layout="none",a.width=pe(100),a.height=pe(100),e.bulletsContainer=a,e.line=e.createChild(Ey),e.line.shouldClone=!1,e.line.strokeOpacity=0;var s=e.createChild(Fo);s.shouldClone=!1,e.baseGrid=s;var o=e._disposers;return o.push(s),o.push(e.line),o.push(t),o.push(r),o.push(a),o.push(e._chart),e.ticks.template.disabled=!0,e.axisFills.template.disabled=!0,e.axisFills.template.interactionsEnabled=!1,e.applyTheme(),e}return Object.defineProperty(i.prototype,"axis",{get:function(){return this._axis},set:function(e){this.setAxis(e)},enumerable:!0,configurable:!0}),i.prototype.setAxis=function(e){this._axis=e,this.baseGrid.parent=e,this.line.parent=e,this.gridContainer.bind("opacity",e)},i.prototype.processRenderer=function(){this.events.on("sizechanged",this.updateTooltip,this,!1),this.events.on("positionchanged",this.updateTooltip,this,!1),this.labels.template.inside=this.inside,this.ticks.template.inside=this.inside},i.prototype.updateTooltip=function(){},Object.defineProperty(i.prototype,"axisLength",{get:function(){return 0},enumerable:!0,configurable:!0}),i.prototype.positionItem=function(e,t){e&&e.moveTo(t)},i.prototype.positionToPoint=function(e,t){return{x:0,y:0}},i.prototype.positionToAngle=function(e){return 0},i.prototype.positionToCoordinate=function(e){var t,r=this.axis,a=r.axisFullLength;return r.renderer.inversed?t=(r.end-e)*a:t=(e-r.start)*a,t},i.prototype.updateGridContainer=function(){},i.prototype.getHeight=function(){var e=this.gridContainer;return e.parent?e.parent.pixelHeight:this.gridContainer.pixelHeight||0},i.prototype.getWidth=function(){var e=this.gridContainer;return e.parent?e.parent.pixelWidth:this.gridContainer.pixelWidth||0},i.prototype.coordinateToPosition=function(e,t){var r,a=this.axis,s=a.axisFullLength;return a.renderer.inversed?r=a.end-e/s:r=e/s+a.start,de(r,5)},i.prototype.pointToPosition=function(e){return 0},i.prototype.getPositionRangePath=function(e,t){return""},i.prototype.invalidateAxisItems=function(){var e=this.axis;e&&e.invalidateDataItems()},i.prototype.updateGridElement=function(e,t,r){},i.prototype.updateTickElement=function(e,t,r){},i.prototype.updateBullet=function(e,t,r){},i.prototype.updateLabelElement=function(e,t,r,a){},i.prototype.updateFillElement=function(e,t,r){e.startPosition=t,e.endPosition=r},i.prototype.updateAxisLine=function(){},i.prototype.updateBaseGridElement=function(){},i.prototype.updateBreakElement=function(e){this.positionItem(e.startLine,e.startPoint),this.toggleVisibility(e.startLine,e.startPosition,0,1),this.positionItem(e.endLine,e.endPoint),this.toggleVisibility(e.endLine,e.endPosition,0,1)},Object.defineProperty(i.prototype,"minGridDistance",{get:function(){return this.getPropertyValue("minGridDistance")},set:function(e){this.setPropertyValue("minGridDistance",e)&&this.axis&&this.axis.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){this._chart.set(e,null)},enumerable:!0,configurable:!0}),i.prototype.toggleVisibility=function(e,t,r,a){var s=this.axis,o=e.dataItem;o&&o instanceof Xo&&(C(o.minPosition)&&(r=o.minPosition),C(o.maxPosition)&&(a=o.maxPosition));var l=s.start+(s.end-s.start)*(r-1e-4),u=s.start+(s.end-s.start)*(a+1e-4);e.disabled||(t<l||t>u?e.__disabled=!0:e.__disabled=!1)},i.prototype.createBreakSprites=function(e){},Object.defineProperty(i.prototype,"axisFills",{get:function(){if(!this._axisFills){var e=this.createFill(this.axis);this._axisFills=new fi(e),e.applyOnClones=!0,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new zt(this._axisFills)),this._disposers.push(this._axisFills.template)}return this._axisFills},enumerable:!0,configurable:!0}),i.prototype.createFill=function(e){return new ac(e)},Object.defineProperty(i.prototype,"grid",{get:function(){if(!this._grid){var e=this.createGrid();this._grid=new fi(e),e.applyOnClones=!0,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new zt(this._grid)),this._disposers.push(this._grid.template)}return this._grid},enumerable:!0,configurable:!0}),i.prototype.createGrid=function(){return new Fo},Object.defineProperty(i.prototype,"ticks",{get:function(){if(!this._ticks){var e=this.createTick();e.applyOnClones=!0,e.isMeasured=!1,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._ticks=new fi(e),this._disposers.push(new zt(this._ticks)),this._disposers.push(this._ticks.template)}return this._ticks},enumerable:!0,configurable:!0}),i.prototype.createTick=function(){return new Ly},Object.defineProperty(i.prototype,"labels",{get:function(){if(!this._labels){var e=this.createLabel();this._labels=new fi(e),e.applyOnClones=!0,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new zt(this._labels)),this._disposers.push(this._labels.template)}return this._labels},enumerable:!0,configurable:!0}),i.prototype.createLabel=function(){return new sc},Object.defineProperty(i.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(e){this.setPropertyValue("inside",e)&&this.axis&&this.axis.invalidate(),e?(this.width=0,this.height=0):(this.width=void 0,this.height=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opposite",{get:function(){return this.getPropertyValue("opposite")}
22,set:function(e){this.setPropertyValue("opposite",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fullWidthTooltip",{get:function(){return this.getPropertyValue("fullWidthTooltip")},set:function(e){this.setPropertyValue("fullWidthTooltip",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(e){this.setPropertyValue("tooltipLocation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipLocation2",{get:function(){return this.getPropertyValue("tooltipLocation2")},set:function(e){this.setPropertyValue("tooltipLocation2",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cellStartLocation",{get:function(){return this.getPropertyValue("cellStartLocation")},set:function(e){this.setPropertyValue("cellStartLocation",e)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cellEndLocation",{get:function(){return this.getPropertyValue("cellEndLocation")},set:function(e){this.setPropertyValue("cellEndLocation",e)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inversed",{get:function(){return this.getPropertyValue("inversed")},set:function(e){this.setPropertyValue("inversed",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minLabelPosition",{get:function(){return this.getPropertyValue("minLabelPosition")},set:function(e){this.setPropertyValue("minLabelPosition",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxLabelPosition",{get:function(){return this.getPropertyValue("maxLabelPosition")},set:function(e){this.setPropertyValue("maxLabelPosition",e,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.grid.template.copyFrom(e.grid.template),this.ticks.template.copyFrom(e.ticks.template),this.labels.template.copyFrom(e.labels.template),this.axisFills.template.copyFrom(e.axisFills.template),this.line.copyFrom(e.line),this.baseGrid.copyFrom(e.baseGrid)},i.prototype.toAxisPosition=function(e){return e},i.prototype.setVisibility=function(e){n.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},i}(Ee);V.registeredClasses.AxisRenderer=Du;var $o=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="AxisBullet",e.location=.5,e.isMeasured=!1,e.applyTheme(),e}return Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(e){var t=n.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),t},i}(Ee);V.registeredClasses.AxisBullet=$o;var gn=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="AxisRendererY",e.minGridDistance=40,e.opposite=!1,e.height=pe(100),e.labels.template.verticalCenter="middle",e.applyTheme(),e}return i.prototype.setAxis=function(e){n.prototype.setAxis.call(this,e),e.layout="horizontal"},i.prototype.updateGridContainer=function(){var e=this.axis;if(e){var t=this.gridContainer;t.y=e.pixelY,t.height=e.axisLength}},i.prototype.toAxisPosition=function(e){var t=this.axis;if(t){var r=1-e,a=t.relativePositionSprite,s=t.pixelY;if(a?s=Tr({x:0,y:this.pixelY},this.parent,a).y:a=t.parent,a){var o=s/a.innerHeight,l=t.axisLength/a.innerHeight;return 1-(r-o)/l}}return e},i.prototype.processRenderer=function(){n.prototype.processRenderer.call(this);var e=this.axis;if(e){var t=e.title;t.valign="middle",e.height instanceof mt||(e.height=pe(100)),this.opposite?(t.rotation=90,this.line.toBack(),t.toFront()):(t.rotation=-90,t.toBack(),this.line.toFront())}},i.prototype.updateTooltip=function(){var e=this.axis;if(e){var t=2e3,r=0,a=0,s=t,o=this.axisLength;this.opposite?this.inside&&(r=-t,s=t):this.inside||(r=-t,s=t),this.axis.updateTooltip("horizontal",{x:r,y:a,width:s,height:o})}}
22,Object.defineProperty(i.prototype,"axisLength",{get:function(){var e=this.axis;return e.measuredHeight-e.pixelPaddingTop-e.pixelPaddingBottom||0},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e,t){return{x:0,y:this.positionToCoordinate(e)}},i.prototype.pointToPosition=function(e){return this.coordinateToPosition(e.y,e.x)},i.prototype.coordinateToPosition=function(e,t){var r,a=this.axis,s=a.axisFullLength;return a.renderer.inversed?r=1-a.start-e/s:r=e/s+(1-a.end),de(r,5)},i.prototype.getPositionRangePath=function(e,t){var r=ke(this.positionToCoordinate(e),0,this.axisLength),a=ke(this.positionToCoordinate(t),0,this.axisLength),s=Math.abs(a-r),o=this.getWidth(),l=Math.min(r,a),u=0;return ma({x:u,y:l,width:o,height:s},!0)},i.prototype.updateGridElement=function(e,t,r){t=t+(r-t)*e.location;var a=this.positionToPoint(t);e.path=Oe({x:0,y:0})+ie({x:this.getWidth(),y:0}),this.positionItem(e,a),this.toggleVisibility(e,t,0,1)},i.prototype.updateTickElement=function(e,t,r){t=t+(r-t)*e.location;var a=this.positionToPoint(t),s=e.length;try{this.axis.title.measuredWidth}catch{}a.x=Tr({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.opposite?s*=e.inside?-1:1:s*=e.inside?1:-1,e.path=Oe({x:0,y:0})+ie({x:s,y:0}),this.positionItem(e,a),this.toggleVisibility(e,t,0,1)},i.prototype.updateAxisLine=function(){this.line.path=Oe({x:0,y:0})+ie({x:0,y:this.axisLength})},i.prototype.updateBaseGridElement=function(){n.prototype.updateBaseGridElement.call(this);var e=this.axis,t=this.getWidth(),r=this.axisLength,a=e.basePoint.y,s=this.baseGrid;if(a<-.2||a>r+.2)s.hide(0);else{var o=Tr({x:0,y:0},this.gridContainer,s.parent).x;s.path=Oe({x:0,y:0})+ie({x:t,y:0}),s.moveTo({x:o,y:a}),s.show(0)}},i.prototype.updateLabelElement=function(e,t,r,a){T(a)||(a=e.location),t=t+(r-t)*a,e.isMeasured=!e.inside;var s=this.positionToPoint(t),o,l=0,u=this.gridContainer.maxWidth;this.opposite?(e.inside?(o="right",e.align=="left"&&(l=-u,o="left"),e.align=="center"&&(l=-u/2,o="middle")):o="left",s.x=0+l):(e.inside?(o="left",e.align=="right"&&(l=u,o="right"),e.align=="center"&&(l=u/2,o="middle")):o="right",s.x=this.measuredWidth+l),e.rotation==0&&(e.horizontalCenter=o),this.positionItem(e,s),this.toggleVisibility(e,t,this.minLabelPosition,this.maxLabelPosition)},i.prototype.updateBreakElement=function(e){n.prototype.updateBreakElement.call(this,e);var t=e.startLine,r=e.endLine,a=e.fillShape,s=e.startPoint,o=e.endPoint,l=e.pixelMarginLeft,u=this.getWidth()-e.pixelMarginLeft-e.pixelMarginRight;s.y=ke(s.y,-1,this.axisLength+1),o.y=ke(o.y,-1,this.axisLength+1),s.y==o.y&&(s.y<0||s.y>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1;var h=Math.abs(u-l);t.x=l,t.height=0,t.width=h,r.x=l,r.height=0,r.width=h,a.width=h,a.height=Math.abs(o.y-s.y),a.x=l,a.y=o.y},i.prototype.createBreakSprites=function(e){e.startLine=new Ga,e.endLine=new Ga;var t=new Sy;t.setWavedSides(!0,!1,!0,!1),e.fillShape=t},i.prototype.positionToCoordinate=function(e){var t,r=this.axis,a=r.axisFullLength;return r.renderer.inversed?t=(e-r.start)*a:t=(r.end-e)*a,t},i.prototype.updateBullet=function(e,t,r){var a=.5;e instanceof $o&&(a=e.location),t=t+(r-t)*a;var s=this.positionToPoint(t);s.x=Tr({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.positionItem(e,s),this.toggleVisibility(e,t,0,1)},i}(Du);V.registeredClasses.AxisRendererY=gn;qi.push({relevant:lr.widthS,state:function(n,i){if(n instanceof gn){var e=n.states.create(i);return e.properties.inside=!0,e.properties.maxLabelPosition=.9,e.properties.minLabelPosition=.1,e}return null}});qi.push({relevant:lr.widthXS,state:function(n,i){if(n instanceof gn){var e=n.states.create(i);return e.properties.disabled=!0,e}return null}});var oc=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="ValueAxisBreak",e.applyTheme(),e}return Object.defineProperty(i.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedStartValue)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedEndValue)},enumerable:!0,configurable:!0}),i}(Pu);V.registeredClasses.ValueAxisBreak=oc;var Su=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="ValueAxisDataItem",e.values.value={},e.values.endValue={},e.applyTheme(),e}return Object.defineProperty(i.prototype,"value",{get:function(){return this.values.value.value},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endValue",{get:function(){return this.values.endValue.value},set:function(e){this.setValue("endValue",e)},enumerable:!0,configurable:!0}),i}(Xo),dt=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._stepDecimalPlaces=0,e._prevStepDecimalPlaces=0,e._adjustLabelPrecision=!0,e._baseValue=0,e._adjustedStart=0,e._adjustedEnd=1,e._extremesChanged=!1,e._deltaMinMax=1,e._dsc=!1,e.calculateTotals=!1,e.className="ValueAxis",e.axisFieldName="value",e.setPropertyValue("maxZoomFactor",1e3),e.setPropertyValue("extraMin",0),e.setPropertyValue("extraMax",0),e.setPropertyValue("strictMinMax",!1),e.setPropertyValue("maxPrecision",Number.MAX_VALUE),e.setPropertyValue("adjustLabelPrecision",!0),e.setPropertyValue("extraTooltipPrecision",0),e.keepSelection=!1,e.includeRangesInMinMax=!1,e.applyTheme(),e}return i.prototype.fillRule=function(e){var t=e.value,r=e.component;e.axisFill.disabled||(de(t/r.step/2,5)==Math.round(t/r.step/2)?e.axisFill.__disabled=!0:e.axisFill.__disabled=!1)},i.prototype.createDataItem=function(){return new Su},i.prototype.createAxisBreak=function(){return new oc},i.prototype.dataChangeUpdate=function(){this.clearCache(),this.keepSelection?(this._start!=0&&this.dispatchImmediately("startchanged"),this._end!=1&&this.dispatchImmediately("endchanged"),(this._start!=0||this._end!=1)&&this.dispatchImmediately("startendchanged")):(this._start!=0||this._end!=1)&&(this._start=0,this._end=1,this.dispatchImmediately("startendchanged")),this._maxZoomed=this._maxDefined,this._minZoomed=this._minDefined,this._maxAdjusted=this._maxDefined,this._minAdjusted=this._minDefined}
22,i.prototype.processSeriesDataItems=function(){if(this.calculateTotals){var e=this.series.getIndex(0),t=e.startIndex;if(e.dataItems.length>0){t>0&&t--;var r=e.endIndex;r<e.dataItems.length&&r++;for(var a=function(l){var u={},h={};s.series.each(function(d){if(!d.excludeFromTotal){var f=d.dataItems.getIndex(l);f&&$e(f.values,function(p){var v=f.values[p].workingValue;C(v)&&(C(u[p])?u[p]+=Math.abs(v):u[p]=Math.abs(v),C(h[p])?h[p]+=v:h[p]=v)})}}),s.series.each(function(d){if(!d.excludeFromTotal){var f=d.dataItems.getIndex(l);f&&$e(f.values,function(p){var v=f.values[p].workingValue;C(v)&&(f.setCalculatedValue(p,u[p],"total"),f.setCalculatedValue(p,100*v/u[p],"totalPercent"),f.setCalculatedValue(p,h[p],"sum"))})}})},s=this,o=t;o<r;++o)a(o)}}},i.prototype.validate=function(){this.axisLength<=0||(n.prototype.validate.call(this),this.getMinMax(),C(this._minAdjusted)||this.dataItems.each(function(e){e.value=null}),this.fixAxisBreaks(),this.calculateZoom(),this.validateAxisElements(),this.validateAxisRanges(),this.validateBreaks(),this.hideUnusedDataItems(),this.renderer.invalidateLayout())},i.prototype.calculateZoom=function(){if(C(this.min)&&C(this.max)){var e=this.positionToValue(this.start),t=this.positionToValue(this.end),r=this.adjustDifference(e,t),a=this.adjustMinMax(e,t,r,this._gridCount,!0),s=I0(a.step);this._stepDecimalPlaces=s,e=de(e,s),t=de(t,s),a=this.adjustMinMax(e,t,r,this._gridCount,!0);var o=a.step;if(this.syncWithAxis){var l=this.getCache(e+"-"+t);C(l)&&(o=l)}else e=a.min,t=a.max;(this._minZoomed!=e||this._maxZoomed!=t||this._step!=o||this._dsc)&&(this._dsc=!1,this._minZoomed=e,this._maxZoomed=t,this._step=o,this.dispatchImmediately("selectionextremeschanged"))}},i.prototype.fixSmallStep=function(e){return 1+e==1?(e*=2,this.fixSmallStep(e)):e},i.prototype.validateAxisElements=function(){var e=this;if(C(this.max)&&C(this.min)){var t=this.minZoomed-this._step*2;if(!this.logarithmic)t=Math.floor(t/this._step)*this._step;else{var r=Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E;r>1?t=Math.pow(10,Math.log(this.min)*Math.LOG10E):(t=Math.floor(this.minZoomed/this._step)*this._step,t==0&&(t=this.minZoomed))}var a=this._maxZoomed+this._step;this.resetIterators();var s=this._dataItemsIterator;if(this._step==0)return;this._step=this.fixSmallStep(this._step);var o=0,l=this._prevStepDecimalPlaces!=this._stepDecimalPlaces;for(this._prevStepDecimalPlaces=this._stepDecimalPlaces;t<=a;){var u=this.isInBreak(t);if(!u){var h=s.find(function(x){return x.value===t});h.__disabled&&(h.__disabled=!1),this.appendDataItem(h),h.axisBreak=void 0,(h.value!=t||l)&&(h.value=t,h.text=this.formatLabel(t),h.label&&h.label.invalid&&h.label.validate(),h.value>=this.min&&h.value<=this.max&&h.label&&(this.axisLetter=="Y"&&h.label.measuredWidth>this.ghostLabel.measuredWidth||this.axisLetter=="X"&&h.label.measuredHeight>this.ghostLabel.measuredHeight)&&(this.ghostLabel.text=h.label.currentText,this.ghostLabel.validate())),this.validateDataElement(h)}o++;var d=t;if(!this.logarithmic)t+=this._step;else{var r=Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E;r>1?t=Math.pow(10,Math.log(this.min)*Math.LOG10E+o):t+=this._step}var f=Math.pow(10,Math.floor(Math.log(Math.abs(this._step))*Math.LOG10E));if(f<1){var p=Math.round(Math.abs(Math.log(Math.abs(f))*Math.LOG10E))+2;if(p=Math.min(13,p),t=de(t,p),d==t){t=a;break}}}var v=this._axisBreaks;if(v){var m=this.renderer;ue(v.iterator(),function(x){if(x.breakSize>0&&Mt(x.startPoint,x.endPoint)>m.minGridDistance)for(var w=x.adjustedMin;w<=x.adjustedMax;){if(w>=x.adjustedStartValue&&w<=x.adjustedEndValue){var P=s.find(function(O){return O.value===w});P.__disabled&&(P.__disabled=!1),e.appendDataItem(P),P.axisBreak=x,P.value!=w&&(P.value=w,P.text=e.formatLabel(w),P.label&&P.label.invalid&&P.label.validate()),e.validateDataElement(P)}w+=x.adjustedStep}})}}},i.prototype.validateDataElement=function(e){n.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var t=this.renderer,r=e.value,a=e.endValue,s=this.valueToPosition(r);e.position=s;var o=s,l=this.valueToPosition(r+this._step);C(a)&&(o=this.valueToPosition(a),l=o),e.point=t.positionToPoint(s);var u=e.tick;u&&!u.disabled&&t.updateTickElement(u,s,o);var h=e.grid;h&&!h.disabled&&t.updateGridElement(h,s,o);var d=e.label;d&&!d.disabled&&t.updateLabelElement(d,s,o);var f=e.axisFill;f&&!f.disabled&&(t.updateFillElement(f,s,l),e.isRange||this.fillRule(e)),e.bullet&&t.updateBullet(e.bullet,s,o);var p=e.mask;p&&t.updateFillElement(p,s,l)},i.prototype.formatLabel=function(e){return this.adjustLabelPrecision&&e!=0?this.numberFormatter.format(e,void 0,this._stepDecimalPlaces):this.numberFormatter.format(e)},Object.defineProperty(i.prototype,"basePoint",{get:function(){var e=this.baseValue,t=this.valueToPosition(e),r=this.renderer.positionToPoint(t);return r},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"baseValue",{get:function(){var e=this._baseValue;return this.logarithmic&&(e=this.min),this._adapterO?this._adapterO.apply("baseValue",e):e},set:function(e){this._baseValue=e,this.invalidateLayout(),this.invalidateSeries()},enumerable:!0,configurable:!0}),i.prototype.anyToPosition=function(e){return this.valueToPosition(e)},i.prototype.valueToPoint=function(e){var t=this.valueToPosition(e),r=this.renderer.positionToPoint(t),a=this.renderer.positionToAngle(t);return{x:r.x,y:r.y,angle:a}},i.prototype.anyToPoint=function(e){return this.valueToPoint(e)},i.prototype.valueToPosition=function(e){if(C(e)){var t=this.min,r=this.max;if(C(t)&&C(r)){var a=this._difference,s=this._axisBreaks;s&&s.length>0&&Yr(s.iterator(),function(u){var h=u.adjustedStartValue,d=u.adjustedEndValue;if(C(h)&&C(d)){if(e<h)return!1;if(Il({start:h,end:d},{start:t,end:r})){h=Math.max(h,t),d=Math.min(d,r);var f=u.breakSize;e>d?t+=(d-h)*(1-f):e<h||(e=h+(e-h)*f)}}return!0});var o=void 0;if(!this.logarithmic)o=(e-t)/a;else{var l=this.treatZeroAs;C(l)&&e<=l&&(e=l),o=(Math.log(e)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)/(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)}return o}}return 0},i.prototype.invalidateLabels=function(){n.prototype.invalidateLabels.call(this),this.dataItems&&(this.dataItems.each(function(e){e.value=void 0}),this.invalidate())},i.prototype.positionToValue=function(e){var t=this.min,r=this.max;if(C(t)&&C(r)){var a=r-t,s=null,o=this._axisBreaks;return o&&o.length>0&&Yr(o.iterator(),function(l){var u=l.startPosition,h=l.endPosition,d=l.adjustedStartValue,f=l.adjustedEndValue;if(C(d)&&C(f)){if(d>r)return!1;if(Il({start:d,end:f},{start:t,end:r})){d=st(d,t),f=xt(f,r);var p=l.breakSize;if(a-=(f-d)*(1-p),e>h)t+=(f-d)*(1-p);else if(!(e<u)){var v=(e-u)/(h-u);return s=d+v*(f-d),!1}}return!0}}),C(s)||(this.logarithmic?s=Math.pow(Math.E,(e*(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)+Math.log(this.min)*Math.LOG10E)/Math.LOG10E):s=e*a+t),s}},i.prototype.xToValue=function(e){return this.positionToValue(this.pointToPosition({x:e,y:0}))},i.prototype.yToValue=function(e){return this.positionToValue(this.pointToPosition({x:0,y:e}))},i.prototype.pointToPosition=function(e){return this.renderer instanceof gn?1-this.renderer.pointToPosition(e):this.renderer.pointToPosition(e)},i.prototype.animateMinMax=function(e,t){return this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:e},{property:"_maxAdjusted",from:this._maxAdjusted,to:t}],this.rangeChangeDuration,this.rangeChangeEasing)},i.prototype.getMinMax=function(){var e=this;this.updateGridCount();var t=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;if((!C(this._minDefined)||!C(this._maxDefined))&&(this.series.each(function(f){if(!f.ignoreMinMax){var p=f.min(e);C(p)&&p<t&&(t=p);var v=f.max(e);C(v)&&v>r&&(r=v)}}),this.includeRangesInMinMax&&this.axisRanges.each(function(f){if(!f.ignoreMinMax){var p=xt(f.value,f.endValue),v=st(f.value,f.endValue);(p<t||!C(t))&&(t=p),(v>r||!C(r))&&(r=v)}})),this.logarithmic){var a=this.treatZeroAs;C(a)&&t<=0&&(t=a),t<=0&&this.raiseCriticalError(new Error("Logarithmic value axis can not have values <= 0."),!0)}if(t==0&&r==0&&(r=.9,t=-.9),C(this._minDefined)&&(t=this._minDefined),C(this._maxDefined)&&(r=this._maxDefined),this._adapterO&&(t=this._adapterO.apply("min",t)),this._adapterO&&(r=this._adapterO.apply("max",r)),!(!C(t)||!C(r))){this._minReal=t,this._maxReal=r,t==Number.POSITIVE_INFINITY&&(t=void 0),r==Number.NEGATIVE_INFINITY&&(r=void 0);var s=this.adjustDifference(t,r);
22if(t=this.fixMin(t),r=this.fixMax(r),r-t<=1/Math.pow(10,15)){if(r-t!=0)this._deltaMinMax=(r-t)/2;else{var o=Math.log(Math.abs(r))*Math.LOG10E,l=Math.pow(10,Math.floor(o));l=l/10,this._deltaMinMax=l}t-=this._deltaMinMax,r+=this._deltaMinMax}t-=(r-t)*this.extraMin,r+=(r-t)*this.extraMax;var u=this.strictMinMax;C(this._maxDefined)&&(u=!0);var h=this.adjustMinMax(t,r,s,this._gridCount,u);if(t=h.min,r=h.max,s=r-t,h=this.adjustMinMax(t,r,r-t,this._gridCount,!0),t=h.min,r=h.max,this.strictMinMax&&(C(this._minDefined)?t=this._minDefined:t=this._minReal,C(this._maxDefined)?r=this._maxDefined:r=this._maxReal,r-t<=1e-8&&(t-=this._deltaMinMax,r+=this._deltaMinMax),t-=(r-t)*this.extraMin,r+=(r-t)*this.extraMax),this._adapterO&&(t=this._adapterO.apply("min",t)),this._adapterO&&(r=this._adapterO.apply("max",r)),this._step=h.step,!C(t)&&!C(r)&&(this.start=0,this.end=1,this.renderer.labels.each(function(f){f.dataItem.text=""})),(this._minAdjusted!=t||this._maxAdjusted!=r)&&C(t)&&C(r)){var d=this._minMaxAnimation;if(this._extremesChanged&&C(this._minAdjusted)&&C(this._maxAdjusted)&&this.inited){if(d&&!d.isFinished()&&this._finalMax==r&&this._finalMin==t)return;this._finalMin=t,this._finalMax=r,d=this.animateMinMax(t,r),d&&!d.isFinished()?(d.events.on("animationprogress",this.validateDataItems,this),d.events.on("animationended",function(){e.series.each(function(f){f.validate()}),e.validateDataItems(),e.handleSelectionExtremesChange()}),this._minMaxAnimation=d):this.series.each(function(f){f.invalidate()}),this.validateDataItems(),this.dispatchImmediately("extremeschanged"),this.handleSelectionExtremesChange()}else{if(d&&!d.isFinished()&&this._finalMax==r&&this._finalMin==t)return;this._minAdjusted=t,this._maxAdjusted=r,this._finalMin=t,this._finalMax=r,this.invalidateDataItems(),this.dispatchImmediately("extremeschanged"),this._saveMinMax(t,r)}}this._extremesChanged=!1,this._difference=this.adjustDifference(t,r)}},i.prototype.fixMin=function(e){return e},i.prototype.fixMax=function(e){return e},i.prototype.adjustMinMax=function(e,t,r,a,s){a<=1&&(a=1),a=Math.round(a);var o=e,l=t;r===0&&(r=Math.abs(t));var u=Math.log(Math.abs(r))*Math.LOG10E,h=Math.pow(10,Math.floor(u));h=h/10;var d=h;s&&(d=0),this.logarithmic?(e<=0&&(e=this.baseValue),e==1/0&&(e=1),t==-1/0&&(t=10),this.strictMinMax?(this._minDefined>0?e=this._minDefined:e=e,this._maxDefined>0&&(t=t)):(e=Math.pow(10,Math.floor(Math.log(Math.abs(e))*Math.LOG10E)),t=Math.pow(10,Math.ceil(Math.log(Math.abs(t))*Math.LOG10E)))):(s?(e=Math.floor(e/h)*h,t=Math.ceil(t/h)*h):(e=Math.ceil(e/h)*h-d,t=Math.floor(t/h)*h+d),e<0&&o>=0&&(e=0),t>0&&l<=0&&(t=0)),u=Math.log(Math.abs(r))*Math.LOG10E,h=Math.pow(10,Math.floor(u)),h=h/10;var f=Math.ceil(r/a/h)*h,p=Math.pow(10,Math.floor(Math.log(Math.abs(f))*Math.LOG10E)),v=Math.ceil(f/p);v>5?v=10:v<=5&&v>2&&(v=5),f=Math.ceil(f/(p*v))*p*v,this.maxPrecision<Number.MAX_VALUE&&f!=Of(f,this.maxPrecision)&&(f=Of(f,this.maxPrecision));var m=0;if(p<1&&(m=Math.round(Math.abs(Math.log(Math.abs(p))*Math.LOG10E))+1,f=de(f,m)),!this.logarithmic){var x=Math.floor(e/f);e=de(f*x,m);var w=void 0;s?w=Math.floor(t/f):w=Math.ceil(t/f),w==x&&w++,t=de(f*w,m),t<l&&(t=t+f),e>o&&(e=e-f)}return{min:e,max:t,step:f}},Object.defineProperty(i.prototype,"min",{get:function(){var e=this._minAdjusted;return C(e)||(e=this._minDefined),e},set:function(e){this._minDefined!=e&&(this._minDefined=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minDefined",{get:function(){return this._minDefined},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxDefined",{get:function(){return this._maxDefined},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraMin",{get:function(){return this.getPropertyValue("extraMin")},set:function(e){this.setPropertyValue("extraMin",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraMax",{get:function(){return this.getPropertyValue("extraMax")},set:function(e){this.setPropertyValue("extraMax",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"step",{get:function(){return this._step},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"max",{get:function(){var e=this._maxAdjusted;return C(e)||(e=this._maxDefined),e},set:function(e){this._maxDefined!=e&&(this._maxDefined=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"adjustLabelPrecision",{get:function(){return this.getPropertyValue("adjustLabelPrecision")},set:function(e){this.setPropertyValue("adjustLabelPrecision",e)&&this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.registerSeries=function(e){return new di([n.prototype.registerSeries.call(this,e),e.events.on("extremeschanged",this.handleExtremesChange,this,
22!1),e.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1),this.events.on("extremeschanged",e.invalidate,e,!1)])},i.prototype.handleSelectionExtremesChange=function(){var e=this,t,r,a=!0;if(ue(this.series.iterator(),function(p){if(!p.ignoreMinMax&&!p.isHidden&&!p.outOfRange){p.visible&&!p.isHiding&&(a=!1);var v=p.selectionMin(e),m=p.selectionMax(e);C(v)&&(!C(t)||v<t)&&(t=v),C(m)&&(!C(r)||m>r)&&(r=m)}}),this.includeRangesInMinMax&&this.axisRanges.each(function(p){if(!p.ignoreMinMax){var v=xt(p.value,p.endValue),m=st(p.value,p.endValue);v<t&&(t=v),m>r&&(r=m)}}),C(this._minDefined)?this.strictMinMax?t=this._minDefined:t=this.min:this.strictMinMax&&(t=this._minReal),C(this._maxDefined)?this.strictMinMax?r=this._maxDefined:r=this.max:this.strictMinMax&&(r=this._maxReal),t==r){t-=this._deltaMinMax,r+=this._deltaMinMax;var s=this.adjustMinMax(t,r,0,this._gridCount,this.strictMinMax);t=s.min,r=s.max}var o=this.adjustDifference(t,r),l=this.adjustMinMax(t,r,o,this._gridCount);t=l.min,r=l.max,t-=(r-t)*this.extraMin,r+=(r-t)*this.extraMax,t=ke(t,this.min,this.max),r=ke(r,this.min,this.max),o=this.adjustDifference(t,r),l=this.adjustMinMax(t,r,o,this._gridCount,!0),t=l.min,r=l.max,this.strictMinMax&&(t=st(t,this._minDefined),r=xt(r,this._maxDefined));var u=l.step;this.syncWithAxis&&(l=this.syncAxes(t,r,u),t=l.min,r=l.max,this.invalidate()),u=l.step,this._difference=this.adjustDifference(this.min,this.max);var h=this.valueToPosition(t),d=this.valueToPosition(r);a&&!this.syncWithAxis&&(h=0,d=1);var f=0;this.syncWithAxis?(f=5,this.setCache(t+"-"+r,u)):((this._step!=u||this._minZoomed!=t||this._maxZoomed!=r)&&(this._dsc=!0),this._step=u,this._minZoomed=t,this._maxZoomed=r),this.keepSelection||this.zoom({start:h,end:d},!1,!1,f)},Object.defineProperty(i.prototype,"strictMinMax",{get:function(){return this.getPropertyValue("strictMinMax")},set:function(e){this.setPropertyValue("strictMinMax",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"logarithmic",{get:function(){return this.getPropertyValue("logarithmic")},set:function(e){this.setPropertyValue("logarithmic",e)&&(this.invalidate(),this.series.each(function(t){t.invalidateDataItems()}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keepSelection",{get:function(){return this.getPropertyValue("keepSelection")},set:function(e){this.setPropertyValue("keepSelection",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"includeRangesInMinMax",{get:function(){return this.getPropertyValue("includeRangesInMinMax")},set:function(e){this.setPropertyValue("includeRangesInMinMax",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxPrecision",{get:function(){return this.getPropertyValue("maxPrecision")},set:function(e){this.setPropertyValue("maxPrecision",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraTooltipPrecision",{get:function(){return this.getPropertyValue("extraTooltipPrecision")},set:function(e){this.setPropertyValue("extraTooltipPrecision",e)&&this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.handleExtremesChange=function(){var e=this;if(this._extremesChanged=!0,this.getMinMax(),this.ghostLabel){var t=0;this.dataItems.each(function(r){r.label&&r.label.pixelWidth>t&&(e.ghostLabel.text=r.label.currentText)})}},i.prototype.getX=function(e,t,r,a,s){return this.renderer.positionToPoint(this.getPositionX(e,t,r,a,s)).x},i.prototype.getPositionX=function(e,t,r,a,s){var o=e.getWorkingValue(t);T(a)||(a="valueX");var l=e.getValue(a,"stack");C(o)||(o=this.baseValue,this.logarithmic&&l>0&&(o=0));var u=this.valueToPosition(o+l);return s&&(u=ke(u,s.start,s.end)),u},i.prototype.getY=function(e,t,r,a,s){return this.renderer.positionToPoint(this.getPositionY(e,t,r,a,s)).y},i.prototype.getPositionY=function(e,t,r,a,s){var o=e.getWorkingValue(t);T(a)||(a="valueY");var l=e.getValue(a,"stack");C(o)||(o=this.baseValue,this.logarithmic&&l>0&&(o=0));var u=this.valueToPosition(o+l);return s&&(u=ke(u,s.start,s.end)),u},i.prototype.getAngle=function(e,t,r,a,s){var o=e.getWorkingValue(t),l=e.getValue(a,"stack");C(o)||(o=this.baseValue);var u=this.valueToPosition(o+l);return s&&(u=ke(u,s.start,s.end)),this.positionToAngle(u)},i.prototype.getAnyRangePath=function(e,t,r){var a=this.valueToPosition(e),s=this.valueToPosition(t);return this.getPositionRangePath(a,s)},i.prototype.getTooltipText=function(e){var t=de(this.positionToValue(e),this._stepDecimalPlaces+this.extraTooltipPrecision),r=this.tooltip.numberFormatter.format(t);return this._adapterO?this._adapterO.apply("getTooltipText",r):r},i.prototype.zoomToValues=function(e,t,r,a){var s=(e-this.min)/(this.max-this.min),o=(t-this.min)/(this.max-this.min);this.zoom({start:s,end:o},r,a)},Object.defineProperty(i.prototype,"minZoomed",{get:function(){return this.syncWithAxis?this._minZoomed:st(this.min,this._minZoomed)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxZoomed",{get:function(){return this.syncWithAxis?this._maxZoomed:xt(this.max,this._maxZoomed)},enumerable:!0,configurable:!0}),i.prototype.fixAxisBreaks=function(){var e=this;n.prototype.fixAxisBreaks.call(this);var t=this._axisBreaks;t&&t.length>0&&t.each(function(r){var a=r.adjustedStartValue,s=r.adjustedEndValue,o=s-a,l=Math.ceil(o*r.breakSize)*e._gridCount/(e.max-e.min),u=e.adjustMinMax(a,s,o,l,!0);r.adjustedStep=u.step,r.adjustedMin=u.min,r.adjustedMax=u.max}),this._difference=this.adjustDifference(this.min,this.max)},i.prototype.getPositionLabel=function(e){var t=this.positionToValue(e);return this.numberFormatter.format(t)},i.prototype.showTooltipAt=function(e){this.showTooltipAtPosition(this.valueToPosition(e))},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.min=e.min,this.max=e.max,this.calculateTotals=e.calculateTotals,this._baseValue=e.baseValue},Object.defineProperty(i.prototype,"syncWithAxis",{get:function(){return this.getPropertyValue("syncWithAxis")},set:function(e){var t=this;this.setPropertyValue("syncWithAxis",e,!0)&&e&&(this._disposers.push(e.events.on("extremeschanged",this.handleSelectionExtremesChange,this,
22!1)),this._disposers.push(e.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(e.events.on("startendchanged",this.handleSelectionExtremesChange,this,!1)),this.events.on("shown",this.handleSelectionExtremesChange,this,!1),this.events.on("maxsizechanged",function(){t.clearCache(),t._disposers.push(V.events.once("exitframe",function(){t.handleSelectionExtremesChange()}))},this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"treatZeroAs",{get:function(){return this.getPropertyValue("treatZeroAs")},set:function(e){this.setPropertyValue("treatZeroAs",e,!0)},enumerable:!0,configurable:!0}),i.prototype.syncAxes=function(e,t,r){var a=this.syncWithAxis;if(a){C(e)||(e=this.min),C(t)||(t=this.max),C(r)||(r=this._step);var s=Math.round((a.maxZoomed-a.minZoomed)/a.step),o=Math.round((t-e)/r);if(C(s)&&C(o))for(var l=!1,u=0,h=(t-e)*.01,d=e,f=t,p=r;l!=!0;)if(l=this.checkSync(d,f,p,s),u++,u>1e3&&(l=!0),l)e=d,t=f,r=p;else{u/3==Math.round(u/3)?(d=e-h*u,e>=0&&d<0&&(d=0)):(f=t+h*u,f<=0&&f>0&&(f=0));var v=this.adjustMinMax(d,f,f-d,this._gridCount,!0);d=v.min,f=v.max,p=v.step}}return{min:e,max:t,step:r}},i.prototype.checkSync=function(e,t,r,a){for(var s=(t-e)/r,o=1;o<a;o++)if(de(s/o,1)==a||s*o==a)return!0;return!1},i.prototype.processConfig=function(e){e&&T(e.syncWithAxis)&&bt(e.syncWithAxis)&&(this.map.hasKey(e.syncWithAxis)?e.syncWithAxis=this.map.getKey(e.syncWithAxis):(this.processingErrors.push('[ValueAxis] No axis with id "'+e.syncWithAxis+'" found for `syncWithAxis`'),delete e.xAxis)),n.prototype.processConfig.call(this,e)},i.prototype._saveMinMax=function(e,t){},i}(Cu);V.registeredClasses.ValueAxis=dt;V.registeredClasses.ValueAxisDataItem=Su;var Ry=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="DateAxisBreak",e.applyTheme(),e}return Object.defineProperty(i.prototype,"startDate",{get:function(){return this.getPropertyValue("startDate")},set:function(e){this.setPropertyValue("startDate",e)&&(this.startValue=e.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endDate",{get:function(){return this.getPropertyValue("endDate")},set:function(e){this.setPropertyValue("endDate",e)&&(this.endValue=e.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),i}(oc);V.registeredClasses.DateAxisBreak=Ry;var Ny=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="DateAxisDataItem",e.applyTheme(),e.values.date={},e.values.endDate={},e}return Object.defineProperty(i.prototype,"date",{get:function(){return this.dates.date},set:function(e){this.setDate("date",e),this.value=e.getTime()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endDate",{get:function(){return this.dates.endDate},set:function(e){this.setDate("endDate",e),this.endValue=e.getTime()},enumerable:!0,configurable:!0}),i}(Su),ii=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._gapBreaks=!1,e.gridIntervals=new Pt,e.groupIntervals=new Pt,e.dateFormats=new Gt,e.periodChangeDateFormats=new Gt,e._baseIntervalReal={timeUnit:"day",count:1},e._prevSeriesTime={},e._minDifference={},e._firstWeekDay=1,e.groupMin={},e.groupMax={},e._intervalMax={},e._intervalMin={},e.className="DateAxis",e.setPropertyValue("markUnitChange",!0),e.snapTooltip=!0,e.tooltipPosition="pointer",e.setPropertyValue("groupData",!1),e.groupCount=200,e.events.on("parentset",e.getDFFormatter,e,!1),e.gridIntervals.pushAll([{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}]),e.groupIntervals.pushAll([{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}]),e.axisFieldName="date",e.applyTheme(),e}return i.prototype.fillRule=function(e){var t=e.value,r=e.component,a=r._gridInterval,s=yi(a.timeUnit,a.count);Math.round((t-r.min)/s)/2==Math.round(Math.round((t-r.min)/s)/2)?e.axisFill.__disabled=!0:e.axisFill.__disabled=!1},i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),this.dateFormats.hasKey("millisecond")||this.dateFormats.setKey("millisecond",this.language.translate("_date_millisecond")),this.dateFormats.hasKey("second")||this.dateFormats.setKey("second",this.language.translate("_date_second")),this.dateFormats.hasKey("minute")||this.dateFormats.setKey("minute",this.language.translate("_date_minute")),this.dateFormats.hasKey("hour")||this.dateFormats.setKey("hour",this.language.translate("_date_hour")),this.dateFormats.hasKey("day")||this.dateFormats.setKey("day",this.language.translate("_date_day")),this.dateFormats.hasKey("week")||this.dateFormats.setKey("week",this.language.translate("_date_day")),this.dateFormats.hasKey("month")||this.dateFormats.setKey("month",this.language.translate("_date_month")),this.dateFormats.hasKey("year")||this.dateFormats.setKey("year",this.language.translate("_date_year")),this.periodChangeDateFormats.hasKey("millisecond")||this.periodChangeDateFormats.setKey("millisecond",this.language.translate("_date_millisecond")),this.periodChangeDateFormats.hasKey("second")||this.periodChangeDateFormats.setKey("second",this.language.translate("_date_second")),this.periodChangeDateFormats.hasKey("minute")||this.periodChangeDateFormats.setKey("minute",this.language.translate("_date_minute")),this.periodChangeDateFormats.hasKey("hour")||this.periodChangeDateFormats.setKey("hour",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("day")||this.periodChangeDateFormats.setKey("day",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("week")||this.periodChangeDateFormats.setKey("week",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("month")||this.periodChangeDateFormats.setKey("month",this.language.translate("_date_month")+" "+this.language.translate("_date_year"))},i.prototype.createDataItem=function(){return new Ny},i.prototype.createAxisBreak=function(){return new Ry},i.prototype.validateDataItems=function(){var e=this.start,t=this.end,r=this.baseDuration,a=(this.max-this.min)/r;this._firstWeekDay=this.getFirstWeekDay(),this.getDFFormatter(),n.prototype.validateDataItems.call(this);var s=yi(this.mainBaseInterval.timeUnit,this.mainBaseInterval.count);this.maxZoomFactor=Math.max(1,(this.max-this.min)/s),this._deltaMinMax=this.baseDuration/2;var o=(this.max-this.min)/r;e=e+(t-e)*(1-a/o),this.zoom({start:e,end:t},!1,!0)},i.prototype.handleSelectionExtremesChange=function(){},i.prototype.getIntervalMax=function(e){return this._intervalMax[e.timeUnit+e.count]},i.prototype.getIntervalMin=function(e){return this._intervalMin[e.timeUnit+e.count]},i.prototype.calculateZoom=function(){var e=this;n.prototype.calculateZoom.call(this);var t=this.adjustDifference(this._minZoomed,this._maxZoomed),r=!1;if(this.groupData&&T(t)){var a=this.mainBaseInterval,s=this.getIntervalMin(a),o=this.getIntervalMax(a),l=s+(o-s)*this.start,u=s+(o-s)*this.end,h=this.adjustDifference(l,u),d=h+(this.startLocation+(1-this.endLocation))*this.baseDuration,f=void 0;this.groupInterval?f=$r({},this.groupInterval):(f=this.chooseInterval(0,d,this.groupCount,this.groupIntervals),yi(f.timeUnit,f.count)<yi(a.timeUnit,a.count)&&(f=$r({},a))),this._groupInterval=f;
22var p=f.timeUnit+f.count;this._currentDataSetId!=p&&(this._currentDataSetId=p,this.dispatch("groupperiodchanged")),this.series.each(function(m){m.baseAxis==e&&m.setDataSet(e._currentDataSetId)&&(r=!0)})}var v=this.chooseInterval(0,t,this._gridCount);yi(v.timeUnit,v.count)<this.baseDuration&&(v=$r({},this.baseInterval)),this._gridInterval=v,this._nextGridUnit=cy(v.timeUnit),this._intervalDuration=yi(v.timeUnit,v.count),this._gridDate=Yi(new Date(this.minZoomed-yi(v.timeUnit,v.count)),v.timeUnit,v.count,this._firstWeekDay,this._df.utc,new Date(this.min),this._df.timezoneMinutes,this._df.timezone),ue(this.series.iterator(),function(m){if(m.baseAxis==e){var x=m.getAxisField(e),w=Yi(new Date(e._minZoomed+e.baseDuration*.05),e.baseInterval.timeUnit,e.baseInterval.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone).getTime(),P=w.toString(),O=m.dataItemsByAxis.getKey(e.uid).getKey(P+m.currentDataSetId),j=0;e.start!=0&&(O?(O=e.findFirst(O,w,x),j=O.index):j=m.dataItems.findClosestIndex(e._minZoomed,function(ye){return ye[x]},"left"));var M=e.baseInterval,F=dr(Yi(new Date(e._maxZoomed),M.timeUnit,M.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone),M.timeUnit,M.count,e._df.utc).getTime(),g=F.toString(),L=m.dataItemsByAxis.getKey(e.uid).getKey(g+m.currentDataSetId),N=m.dataItems.length;e.end!=1&&(L?N=L.index:(F-=1,N=m.dataItems.findClosestIndex(F,function(ye){return ye[x]},"right"),N++)),m.max(e)<w?(m.startIndex=m.dataItems.length,m.endIndex=m.dataItems.length,m.outOfRange=!0):m.min(e)>F?(m.startIndex=0,m.endIndex=0,m.outOfRange=!0):(m.outOfRange=!1,m.startIndex=j,m.endIndex=N),!r&&m.dataRangeInvalid&&m.validateDataRange()}})},i.prototype.findFirst=function(e,t,r){var a=e.index;if(a>0){var s=e.component,o=s.dataItems.getIndex(a-1),l=o[r];return!l||l.getTime()<t?e:this.findFirst(o,t,r)}else return e},i.prototype.validateData=function(){n.prototype.validateData.call(this),C(this.baseInterval.count)||(this.baseInterval.count=1)},Object.defineProperty(i.prototype,"minDifference",{get:function(){var e=this,t=Number.MAX_VALUE;return this.series.each(function(r){t>e._minDifference[r.uid]&&(t=e._minDifference[r.uid])}),(t==Number.MAX_VALUE||t==0)&&(t=yi("day")),t},enumerable:!0,configurable:!0}),i.prototype.seriesDataChangeUpdate=function(e){this._minDifference[e.uid]=Number.MAX_VALUE},i.prototype.postProcessSeriesDataItems=function(e){var t=this;this._firstWeekDay=this.getFirstWeekDay(),e?this.seriesGroupUpdate(e):this.series.each(function(r){t.seriesGroupUpdate(r)}),this.addEmptyUnitsBreaks()},i.prototype.seriesGroupUpdate=function(e){var t=this;JSON.stringify(e._baseInterval[this.uid])!=JSON.stringify(this.mainBaseInterval)&&(e._baseInterval[this.uid]=this.mainBaseInterval,e.mainDataSet.each(function(r){t.postProcessSeriesDataItem(r)}
22),this.groupData&&this.groupSeriesData(e))},i.prototype.groupSeriesData=function(e){var t=this;if(e.baseAxis==this&&e.dataItems.length>0&&!e.dataGrouped){e.bulletsContainer.removeChildren();var r=[],a=this.mainBaseInterval,s=yi(a.timeUnit,a.count);this.groupIntervals.each(function(o){var l=yi(o.timeUnit,o.count);(l>s&&l<t.max-t.min||t.groupInterval)&&r.push(o)}),e._dataSets&&(e._dataSets.each(function(o,l){l.each(function(u){u.dispose()}),l.clear()}),e._dataSets.clear()),e.dataGrouped=!0,De(r,function(o){var l="date"+t.axisLetter,u=o.timeUnit+o.count,h=new Nl(e.mainDataSet.template.clone());e.dataSets.setKey(u,h);var d=e.mainDataSet,f=Number.NEGATIVE_INFINITY,p=0,v,m=[];$e(e.dataFields,function(w,P){var O=w;O!=l&&O.indexOf("Show")==-1&&m.push(O)});var x;d.each(function(w){var P=w.getDate(l);if(P){var O=P.getTime();x=Yi(new Date(O),o.timeUnit,o.count,t._df.firstDayOfWeek,t._df.utc,void 0,t._df.timezoneMinutes,t._df.timezone);var j=x.getTime();f<j?(v&&e._adapterO&&De(m,function(M){v.values[M].value=e._adapterO.apply("groupDataItem",{dataItem:v,interval:o,dataField:M,date:x,value:v.values[M].value}).value,v.values[M].workingValue=v.values[M].value}),v=h.create(),v.dataContext={},v.setWorkingLocation("dateX",e.dataItems.template.locations.dateX,0),v.setWorkingLocation("openDateX",e.dataItems.template.locations.openDateX,0),v.setWorkingLocation("dateY",e.dataItems.template.locations.dateY,0),v.setWorkingLocation("openDateY",e.dataItems.template.locations.openDateY,0),v.component=e,v.setDate(l,x),v._index=p,p++,De(m,function(M){var F=w.values[M];if(F){var g=F.value;e._adapterO&&(g=e._adapterO.apply("groupValue",{dataItem:w,interval:o,dataField:M,date:x,value:g}).value);var L=v.values[M];C(g)?(L.value=g,L.workingValue=g,L.open=g,L.close=g,L.low=g,L.high=g,L.sum=g,L.average=g,L.count=1):L.count=0}}),t.postProcessSeriesDataItem(v,o),$e(e.propertyFields,function(M,F){var g=M,L=w.properties[M];T(L)&&(v.hasProperties=!0,v.setProperty(g,L))}),v.groupDataItems=[w],f=j):v&&(De(m,function(M){var F=e.groupFields[M],g=w.values[M];if(g){var L=g.value;if(e._adapterO&&(L=e._adapterO.apply("groupValue",{dataItem:w,interval:o,dataField:M,date:x,value:L}).value),C(L)){var N=v.values[M];C(N.open)||(N.open=L),N.close=L,(N.low>L||!C(N.low))&&(N.low=L),(N.high<L||!C(N.high))&&(N.high=L),C(N.sum)?N.sum+=L:N.sum=L,N.count++,N.average=N.sum/N.count,C(N[F])&&(N.value=N[F],N.workingValue=N.value)}}}),na(w.properties,v.properties),$e(e.propertyFields,function(M,F){var g=M,L=w.properties[M];T(L)&&(v.hasProperties=!0,v.setProperty(g,L))}),v.groupDataItems.push(w))}v&&na(w.dataContext,v.dataContext)}),v&&e._adapterO&&De(m,function(w){v.values[w].value=e._adapterO.apply("groupDataItem",{dataItem:v,interval:o,dataField:w,date:x,value:v.values[w].value}).value,v.values[w].workingValue=v.values[w].value})}),this.calculateZoom()}},i.prototype.getDFFormatter=function(){this._df=this.dateFormatter},i.prototype.postProcessSeriesDataItem=function(e,t){var r=this,a="";t?a=t.timeUnit+t.count:t=this.mainBaseInterval;var s=e.component,o=s.dataItemsByAxis.getKey(this.uid);$e(e.dates,function(l){var u=e.getDate(l),h=u.getTime(),d=Yi(new Date(h),t.timeUnit,t.count,r._firstWeekDay,r._df.utc,void 0,r._df.timezoneMinutes,r._df.timezone),f=d.getTime(),p=dr(new Date(f),t.timeUnit,t.count,r._df.utc);e.setCalculatedValue(l,f,"open"),e.setCalculatedValue(l,p.getTime(),"close"),o.setKey(f+a,e)})},i.prototype.addEmptyUnitsBreaks=function(){var e=this;if(this.skipEmptyPeriods&&C(this.min)&&C(this.max)){var t=this.baseInterval.timeUnit,r=this.baseInterval.count;this._axisBreaks&&this._axisBreaks.clear();for(var a=Yi(new Date(this.min),t,r,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),s=void 0,o=function(){dr(a,t,r,l._df.utc);var u=a.getTime(),h=u.toString(),d=zd(l.series.iterator(),function(f){return!!f.dataItemsByAxis.getKey(e.uid).getKey(h+f.currentDataSetId)});d?s&&(s.endDate=new Date(u-1),s=void 0):s||(s=l.axisBreaks.create(),s.startDate=new Date(u),l._gapBreaks=!0)},l=this;a.getTime()<this.max-this.baseDuration;)o()}},i.prototype.fixAxisBreaks=function(){var e=this;n.prototype.fixAxisBreaks.call(this);var t=this._axisBreaks;t&&t.length>0&&t.each(function(r){var a=Math.ceil(e._gridCount*(Math.min(e.end,r.endPosition)-Math.max(e.start,r.startPosition))/(e.end-e.start));r.gridInterval=e.chooseInterval(0,r.adjustedEndValue-r.adjustedStartValue,a);var s=Yi(new Date(r.adjustedStartValue),r.gridInterval.timeUnit,r.gridInterval.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone);
22s.getTime()>r.startDate.getTime()&&dr(s,r.gridInterval.timeUnit,r.gridInterval.count,e._df.utc),r.gridDate=s})},i.prototype.getFirstWeekDay=function(){return this._df?this._df.firstDayOfWeek:1},i.prototype.getGridDate=function(e,t){var r=this._gridInterval.timeUnit,a=this._gridInterval.count;Yi(e,r,1,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone);var s=e.getTime(),o=vs(e),l=dr(o,r,t,this._df.utc).getTime(),u=this.isInBreak(l);u&&u.endDate&&(o=new Date(u.endDate.getTime()),Yi(o,r,a,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),o.getTime()<u.endDate.getTime()&&dr(o,r,a,this._df.utc),l=o.getTime());var h=this.adjustDifference(s,l),d=Math.round(h/yi(r));return d<a?this.getGridDate(e,t+a):o},i.prototype.getBreaklessDate=function(e,t,r){var a=new Date(e.endValue);Yi(a,t,r,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),dr(a,t,r,this._df.utc);var s=a.getTime();return e=this.isInBreak(s),e?this.getBreaklessDate(e,t,r):a},i.prototype.validateAxisElements=function(){var e=this;if(C(this.max)&&C(this.min)){this.calculateZoom();var t=this._gridDate.getTime(),r=this._gridInterval.timeUnit,a=this._gridInterval.count,s=vs(this._gridDate),o=this._dataItemsIterator;this.resetIterators();for(var l=function(){var d=u.getGridDate(vs(s),a);t=d.getTime();var f=vs(d);f=dr(f,r,a,u._df.utc);var p=u.dateFormats.getKey(r);u.markUnitChange&&s&&hd(d,s,u._nextGridUnit,u._df.utc)&&r!=="year"&&(p=u.periodChangeDateFormats.getKey(r));var v=u._df.format(d,p),m=o.find(function(x){return x.text===v});m.__disabled&&(m.__disabled=!1),u.appendDataItem(m),m.axisBreak=void 0,m.date=d,m.endDate=f,m.text=v,u.validateDataElement(m),s=d},u=this;t<=this._maxZoomed;)l();var h=this.renderer;this._axisBreaks&&ue(this._axisBreaks.iterator(),function(d){if(d.breakSize>0){var f=d.gridInterval.timeUnit,p=d.gridInterval.count;if(Mt(d.startPoint,d.endPoint)>h.minGridDistance*4)for(var v=d.gridDate.getTime(),m,x=0,w=function(){var P=vs(d.gridDate);if(v=dr(P,f,p*x,e._df.utc).getTime(),x++,v>d.adjustedStartValue&&v<d.adjustedEndValue){var O=vs(P);O=dr(O,f,p,e._df.utc);var j=e.dateFormats.getKey(f);e.markUnitChange&&m&&hd(P,m,e._nextGridUnit,e._df.utc)&&f!=="year"&&(j=e.periodChangeDateFormats.getKey(f));var M=e._df.format(P,j),F=o.find(function(g){return g.text===M});F.__disabled&&(F.__disabled=!1),e.appendDataItem(F),F.axisBreak=d,d.dataItems.moveValue(F),F.date=P,F.endDate=O,F.text=M,m=P,e.validateDataElement(F)}};v<=d.adjustedMax;)w()}})}},i.prototype.validateDataElement=function(e){if(e.itemIndex=this._axisItemCount,this._axisItemCount++,C(this.max)&&C(this.min)){var t=this.renderer,r=e.value,a=e.endValue;C(a)||(a=r);var s=this.valueToPosition(r),o=this.valueToPosition(a),l=o;!e.isRange&&this._gridInterval.count>this.baseInterval.count&&(o=s+(o-s)/(this._gridInterval.count/this.baseInterval.count)),e.position=s;var u=e.tick;u&&!u.disabled&&t.updateTickElement(u,s,o);var h=e.grid;h&&!h.disabled&&t.updateGridElement(h,s,o);var d=e.axisFill;d&&!d.disabled&&(t.updateFillElement(d,s,l),e.isRange||this.fillRule(e));var f=e.mask;f&&t.updateFillElement(f,s,o),e.bullet&&t.updateBullet(e.bullet,s,o);var p=e.label;if(p&&!p.disabled){var v=p.location;v==0&&(this._gridInterval.count==1&&this._gridInterval.timeUnit!="week"&&!e.isRange?v=.5:v=0),t.updateLabelElement(p,s,o,v)}}},Object.defineProperty(i.prototype,"baseDuration",{get:function(){return yi(this.baseInterval.timeUnit,this.baseInterval.count)},enumerable:!0,configurable:!0}),i.prototype.adjustMinMax=function(e,t){return{min:e,max:t,step:this.baseDuration}},i.prototype.fixMin=function(e){var t=this.baseInterval,r=Yi(new Date(e),t.timeUnit,t.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime(),a=dr(new Date(r),t.timeUnit,t.count,this._df.utc).getTime();return r+(a-r)*this.startLocation},i.prototype.fixMax=function(e){var t=this.baseInterval,r=Yi(new Date(e),t.timeUnit,t.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime(),a=dr(new Date(r),t.timeUnit,t.count,this._df.utc).getTime();return r+(a-r)*this.endLocation},i.prototype.chooseInterval=function(e,t,r,a){a||(a=this.gridIntervals);var s=a.getIndex(e),o=yi(s.timeUnit,s.count),l=a.length-1;if(e>=l)return $r({},a.getIndex(l));var u=Math.ceil(t/o);return t<o&&e>0?$r({},a.getIndex(e-1)):u<=r?$r({},a.getIndex(e)):e+1<a.length?this.chooseInterval(e+1,t,r,a):$r({},a.getIndex(e))},i.prototype.formatLabel=function(e){return this._df.format(e)},i.prototype.dateToPosition=function(e){return this.valueToPosition(e.getTime())},i.prototype.anyToPosition=function(e){return e instanceof Date?this.dateToPosition(e):this.valueToPosition(e)},i.prototype.dateToPoint=function(e){var t=this.dateToPosition(e),r=this.renderer.positionToPoint(t),a=this.renderer.positionToAngle(t);return{x:r.x,y:r.y,angle:a}},i.prototype.anyToPoint=function(e){return e instanceof Date?this.dateToPoint(e):this.valueToPoint(e)},i.prototype.positionToDate=function(e){return new Date(this.positionToValue(e))},i.prototype.getPositionX=function(e,t,r,a,s){var o=this.getTimeByLocation(e,t,r);C(o)||(o=this.baseValue);var l=this.valueToPosition(o);return s&&(l=ke(l,s.start,s.end)),l},i.prototype.getPositionY=function(e,t,r,a,s){var o=this.getTimeByLocation(e,t,r),l=e.getValue("valueX","stack");C(o)||(o=this.baseValue);var u=this.valueToPosition(o+l);return s&&(u=ke(u,s.start,s.end)),u},i.prototype.getAngle=function(e,t,r,a,s){var o=this.getTimeByLocation(e,t,r),l=e.getValue(a,"stack");C(o)||(o=this.baseValue);var u=this.valueToPosition(o+l);return s&&(u=ke(u,s.start,s.end)),this.positionToAngle(u)},i.prototype.getTimeByLocation=function(e,t,r){if(T(t)){C(r)||(r=e.workingLocations[t],C(r)||(r=0));var a=e.values[t].open,s=e.values[t].close,o=e.values[t].workingValue,l=e.values[t].value,u=l-o;if(a-=u,s-=u,C(a)&&C(s))return a+(s-a)*r}}
22,i.prototype.processSeriesDataItem=function(e,t){var r=e.component,a,s=e["date"+t];if(C(this.timezoneOffset)?(s.setTime(s.getTime()+(s.getTimezoneOffset()-this.timezoneOffset)*6e4),e.setValue("date"+t,s.getTime(),0)):T(this.timezone)&&(s=vu(s,this.timezone),e.setValue("date"+t,s.getTime(),0),e["date"+t]=s),s)a=s.getTime();else return;var o=e["openDate"+t],l=this._prevSeriesTime[r.uid],u;if(o&&(u=o.getTime()),C(u)){var h=Math.abs(a-u);this._minDifference[r.uid]>h&&(this._minDifference[r.uid]=h)}var d=a-l;d>0&&this._minDifference[r.uid]>d&&(this._minDifference[r.uid]=d),this._prevSeriesTime[r.uid]=a,r._baseInterval[this.uid]&&this.postProcessSeriesDataItem(e)},i.prototype.updateAxisBySeries=function(){n.prototype.updateAxisBySeries.call(this);var e=this.chooseInterval(0,this.minDifference,1);this.minDifference>=yi("day",27)&&e.timeUnit=="week"&&(e.timeUnit="month",e.count=1),e.timeUnit=="month"&&(this.minDifference>=yi("day",29*2)&&e.count==1&&(e.count=2),this.minDifference>=yi("day",29*3)&&e.count==2&&(e.count=3),this.minDifference>=yi("day",29*6)&&e.count==5&&(e.count=6)),this.minDifference>=yi("hour",23)&&e.timeUnit=="hour"&&(e.timeUnit="day",e.count=1),this.minDifference>=yi("week",1)-yi("hour",1)&&e.timeUnit=="day"&&(e.timeUnit="week",e.count=1),this.minDifference>=yi("year",1)-yi("day",1.01)&&e.timeUnit=="month"&&(e.timeUnit="year",e.count=1),this._baseIntervalReal=e,this._mainBaseInterval=e},Object.defineProperty(i.prototype,"baseInterval",{get:function(){return this._groupInterval?this._groupInterval:this._baseInterval?this._baseInterval:this._baseIntervalReal},set:function(e){JSON.stringify(this._baseInterval)!=JSON.stringify(e)&&(this._baseInterval=e,this._mainBaseInterval=e,C(e.count)||(e.count=1),this.invalidate(),this.postProcessSeriesDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mainBaseInterval",{get:function(){return this._baseInterval?this._baseInterval:this._mainBaseInterval?this._mainBaseInterval:this._baseIntervalReal},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"skipEmptyPeriods",{get:function(){return this.getPropertyValue("skipEmptyPeriods")},set:function(e){if(e){var t=this.axisBreaks.template;t.startLine.disabled=!0,t.endLine.disabled=!0,t.fillShape.disabled=!0,t.breakSize=0}else this._gapBreaks&&(this.axisBreaks.clear(),this._gapBreaks=!1);this.setPropertyValue("skipEmptyPeriods",e)&&(this.invalidate(),this.postProcessSeriesDataItems(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipDateFormat",{get:function(){return this.getPropertyValue("tooltipDateFormat")},set:function(e){this.setPropertyValue("tooltipDateFormat",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"markUnitChange",{get:function(){return this.getPropertyValue("markUnitChange")},set:function(e){this.setPropertyValue("markUnitChange",e)&&this.invalidateData()},enumerable:!0,configurable:!0}),i.prototype.getTooltipText=function(e){var t,r=this.positionToDate(e);if(r=Yi(r,this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,new Date(this.min),this._df.timezoneMinutes,this._df.timezone),this.tooltipDate=r,T(this.tooltipDateFormat))t=this._df.format(r,this.tooltipDateFormat,["day","month","week","year"].indexOf(this.baseInterval.timeUnit)==-1);else{var a=this.dateFormats.getKey(this.baseInterval.timeUnit);a?t=this._df.format(r,a):t=this.getPositionLabel(e)}return this._adapterO?this._adapterO.apply("getTooltipText",t):t},i.prototype.roundPosition=function(e,t,r){var a=this.baseInterval,s=a.timeUnit,o=a.count,l=this.positionToDate(e);if(Yi(l,s,o,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),t>0&&dr(l,s,t*o,this._df.utc),r>0&&r<1&&l.setTime(l.getTime()+this.baseDuration*r),this.isInBreak(l.getTime()))for(;l.getTime()<this.max&&(dr(l,s,o,this._df.utc),!!this.isInBreak(l.getTime())););return this.dateToPosition(l)},i.prototype.getCellStartPosition=function(e){return this.roundPosition(e,0)},i.prototype.getCellEndPosition=function(e){return this.roundPosition(e,1)},i.prototype.getSeriesDataItem=function(e,t,r){var a=this.positionToValue(t),s=.5;this.axisLetter=="Y"?s=e.dataItems.template.locations.dateY:s=e.dataItems.template.locations.dateX;var o=a-s*this.baseDuration,l=Yi(new Date(a),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),u=Yi(new Date(a+this.baseDuration),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone);u.getTime()>l.getTime()&&Math.abs(u.getTime()-o)<Math.abs(o-l.getTime())&&(l=u);var h=e.dataItemsByAxis.getKey(this.uid),d=h.getKey(l.getTime()+e.currentDataSetId);if(!d&&r){var f;this.axisLetter=="Y"?f="dateY":f="dateX",d=e.dataItems.getIndex(e.dataItems.findClosestIndex(l.getTime(),function(p){return p[f]?p[f].getTime():-1/0},"any"))}return d},i.prototype.getPositionLabel=function(e){var t=this.positionToDate(e);return this._df.format(t,this.getCurrentLabelFormat())},i.prototype.getCurrentLabelFormat=function(){return this.dateFormats.getKey(this._gridInterval?this._gridInterval.timeUnit:"day")},i.prototype.initRenderer=function(){n.prototype.initRenderer.call(this);var e=this.renderer;e&&(e.ticks.template.location=0,e.grid.template.location=0,e.labels.template.location=0,e.baseGrid.disabled=!0)},Object.defineProperty(i.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),i.prototype.animateMinMax=function(e,t){var r=this,a=this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:e},{property:"_maxAdjusted",from:this._maxAdjusted,to:t}],this.rangeChangeDuration,this.rangeChangeEasing);return a.events.on("animationprogress",function(){r.dispatch("extremeschanged")}),a},i.prototype.handleExtremesChange=function(){if(n.prototype.handleExtremesChange.call(this),this.groupData){var e=this.baseInterval.timeUnit+this.baseInterval.count;this.groupMin[e]=this._finalMin,this.groupMax[e]=this._finalMax}},i.prototype.zoomToDates=function(e,t,r,a,s){e=this._df.parse(e),t=this._df.parse(t),this.zoomToValues(e.getTime(),t.getTime(),r,a,s)},i.prototype.zoomToValues=function(e,t,r,a,s){var o=this;if(this.groupData){var h=this.adjustDifference(e,t),d=!1;t==this.max&&(d=!0);var f=!1;if(e==this.min&&(f=!0),T(h)){var p=this.mainBaseInterval,v=this.chooseInterval(0,h,this.groupCount,this.groupIntervals);(v.timeUnit==p.timeUnit&&v.count<p.count||yi(v.timeUnit,1)<yi(p.timeUnit,1))&&(v=$r({},p));var m=v.timeUnit+v.count,x=this.groupMin[m],w=this.groupMax[m];(!C(x)||!C(w))&&(x=Number.POSITIVE_INFINITY,w=Number.NEGATIVE_INFINITY,this.series.each(function(j){var M=j.min(o),F=j.max(o);if(j._dataSets){var g=j._dataSets.getKey(v.timeUnit+v.count);if(g){var L=g.getIndex(0),N=g.getIndex(g.length-1);L&&(j.xAxis==o?M=L.dateX.getTime():j.yAxis==o&&(M=L.dateY.getTime())),N&&(j.xAxis==o?F=N.dateX.getTime():j.yAxis==o&&(F=N.dateY.getTime()))}}F=Yi(dr(new Date(F),v.timeUnit,1,o._df.utc),v.timeUnit,1,o._df.firstDayOfWeek,o._df.utc,void 0,o._df.timezoneMinutes,o._df.timezone).getTime(),M<x&&(x=M),F>w&&(w=F)}),this.groupMin[m]=x,this.groupMax[m]=w),e=ke(e,x,w),t=ke(t,x,w),s&&(d&&(e=t-h,e=ke(e,x,w)),f&&(t=e+h,t=ke(t,x,w)));var l=(e-x)/(w-x),u=(t-x)/(w-x);this.zoom({start:l,end:u},r,a)}}else{var l=this.valueToPosition(e),u=this.valueToPosition(t);this.zoom({start:l,end:u},r,a)}},i.prototype.asIs=function(e){return e=="baseInterval"||n.prototype.asIs.call(this,e)},i.prototype.copyFrom=function(e){var t=this;n.prototype.copyFrom.call(this,e),this.dateFormats=e.dateFormats,this.periodChangeDateFormats=e.periodChangeDateFormats,this.groupIntervals.clear(),e.groupIntervals.each(function(r){t.groupIntervals.push($r({},r))}),this.gridIntervals.clear(),e.gridIntervals.each(function(r){t.gridIntervals.push($r({},r))}),e._baseInterval&&(this.baseInterval=e._baseInterval)},i.prototype.showTooltipAtPosition=function(e,t){var r=this;if(t||(e=this.toAxisPosition(e)),this.snapTooltip){var a=this.positionToDate(e),s=a.getTime(),o;if(this.series.each(function(h){if(h.baseAxis==r){var d=r.getSeriesDataItem(h,e,!0);if(d){var f=void 0;h.xAxis==r&&(f=d.dateX),h.yAxis==r&&(f=d.dateY),o?Math.abs(o.getTime()-s)>Math.abs(f.getTime()-s)&&(o=f):o=f}}}),o){var l=o.getTime();o=Yi(new Date(l),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),l=o.getTime();var u=this.renderer.tooltipLocation;u==0&&(u=1e-4),o=new Date(o.getTime()+this.baseDuration*u),e=this.dateToPosition(o),this.chart.cursor&&this.chart.cursor.snapToSeries||this.series.each(function(h){var d=h.dataItemsByAxis.getKey(r.uid).getKey(l+h.currentDataSetId),f=h.showTooltipAtDataItem(d);f?r.chart._seriesPoints.push({series:h,point:f}):(h.tooltipText||h.tooltipHTML)&&h.hideTooltip()})}}n.prototype.showTooltipAtPosition.call(this,e,!0)},Object.defineProperty(i.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(e){this.setPropertyValue("snapTooltip",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"groupData",{get:function(){return this.getPropertyValue("groupData")},set:function(e){var t=this;this.setPropertyValue("groupData",e)&&(this.series.each(function(r){r.setDataSet(""),e&&!r.dataGrouped&&r.inited&&(r._baseInterval[t.uid]=t.mainBaseInterval,t.groupSeriesD
22ata(r))}),this._currentDataSetId="",this._groupInterval=void 0,this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"groupInterval",{get:function(){return this.getPropertyValue("groupInterval")},set:function(e){this.setPropertyValue("groupInterval",e)&&(this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"groupCount",{get:function(){return this.getPropertyValue("groupCount")},set:function(e){this.setPropertyValue("groupCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"timezoneOffset",{get:function(){return this.getPropertyValue("timezoneOffset")},set:function(e){this.setPropertyValue("timezoneOffset",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"timezone",{get:function(){return this.getPropertyValue("timezone")},set:function(e){this.setPropertyValue("timezone",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"gridInterval",{get:function(){return this._gridInterval},enumerable:!0,configurable:!0}),i.prototype.makeGap=function(e,t){var r=e.component;if(e&&t&&!r.connect&&C(r.autoGapCount)&&r.baseAxis==this){var a=e.dates["date"+this.axisLetter],s=t.dates["date"+this.axisLetter];if(a&&s){var o=a.getTime(),l=s.getTime();if(o-l>r.autoGapCount*this.baseDuration)return!0}}return!1},Object.defineProperty(i.prototype,"baseValue",{get:function(){return this.min},enumerable:!0,configurable:!0}),i.prototype._saveMinMax=function(e,t){var r=this.groupInterval;r||(r=this.mainBaseInterval);var a=r.timeUnit+r.count;this._intervalMin[a]=e,this._intervalMax[a]=t},i}(dt);V.registeredClasses.DateAxis=ii;V.registeredClasses.DateAxisDataItem=Ny;var aa=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="AxisRendererX",e.minGridDistance=120,e.opposite=!1,e.rotation=0,e.width=pe(100),e.labels.template.horizontalCenter="middle",e.applyTheme(),e}return i.prototype.setAxis=function(e){n.prototype.setAxis.call(this,e),e.layout="vertical"},i.prototype.updateGridContainer=function(){var e=this.axis;if(e){var t=this.gridContainer;t.x=e.pixelX,t.width=e.axisLength}},i.prototype.processRenderer=function(){n.prototype.processRenderer.call(this);var e=this.axis;if(e){e.width instanceof mt||(e.width=pe(100)),this.line;var t=e.title;t.rotation=0,t.align="center",this.opposite?(this.line.toFront(),t.toBack()):(t.toFront(),this.toBack(),this.line.toBack())}},i.prototype.updateTooltip=function(){var e=this.axis;if(e){var t=1e3,r=this.line.pixelX,a=this.line.pixelY,s=this.axisLength,o=t;this.opposite?this.inside||(a=-t,o=t):this.inside&&(a=-t,o=t),this.axis.updateTooltip("vertical",{x:r,y:a,width:s,height:o})}},i.prototype.updateLabelElement=function(e,t,r,a){T(a)||(a=e.location),t=t+(r-t)*a;var s=this.positionToPoint(t);e.isMeasured=!e.inside;var o=0,l,u=this.gridContainer.maxHeight;this.opposite?(e.inside?(l="top",e.valign=="bottom"&&(o=u,l="bottom"),e.valign=="middle"&&(o=u/2,l="middle")):l="bottom",s.y=o):(e.inside?(l="bottom",e.valign=="top"&&(o=-u,l="top"),e.valign=="middle"&&(o=-u/2,l="middle")):l="top",s.y+=o),e.rotation==0&&(e.verticalCenter=l),this.positionItem(e,s),this.toggleVisibility(e,t,this.minLabelPosition,this.maxLabelPosition)},Object.defineProperty(i.prototype,"axisLength",{get:function(){var e=this.axis;return e.measuredWidth-e.pixelPaddingRight-e.pixelPaddingLeft||0},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e,t){return{x:this.positionToCoordinate(e),y:0}},i.prototype.pointToPosition=function(e){return this.coordinateToPosition(e.x,e.y)},i.prototype.getPositionRangePath=function(e,t){var r=ke(this.positionToCoordinate(e),0,this.axisLength),a=ke(this.positionToCoordinate(t),0,this.axisLength),s=Math.abs(a-r),o=this.getHeight(),l=Math.min(r,a),u=0;return ma({x:l,y:u,width:s,height:o},!0)},i.prototype.updateBreakElement=function(e){n.prototype.updateBreakElement.call(this,e);var t=e.startLine,r=e.endLine,a=e.fillShape,s=e.startPoint,o=e.endPoint,l=e.pixelMarginLeft,u=this.getHeight()-e.pixelMarginTop-e.pixelMarginBottom;s.x=ke(s.x,-1,this.axisLength+1),o.x=ke(o.x,-1,this.axisLength+1),s.x==o.x&&(s.x<0||s.x>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1,t.y=l,t.width=0,t.height=u,r.y=l,r.width=0,r.height=u,a.height=u,a.width=Math.abs(o.x-s.x),a.y=l,a.x=s.x},i.prototype.updateGridElement=function(e,t,r){t=t+(r-t)*e.location;var a=this.positionToPoint(t);e.path=Oe({x:0,y:0})+ie({x:0,y:this.getHeight()}),this.positionItem(e,a),this.toggleVisibility(e,t,0,1)},i.prototype.updateTickElement=function(e,t,r){t=t+(r-t)*e.location;var a=this.positionToPoint(t),s=e.length;a.y=Tr({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.opposite?s*=e.inside?1:-1:s*=e.inside?-1:1,e.path=Oe({x:0,y:0})+ie({x:0,y:s}),this.positionItem(e,a),this.toggleVisibility(e,t,0,1)},i.prototype.updateAxisLine=function(){this.line.path=Oe({x:0,y:0})+ie({x:this.axisLength,y:0})},i.prototype.updateBaseGridElement=function(){n.prototype.updateBaseGridElement.call(this);var e=this.axis,t=this.getHeight(),r=this.axisLength,a=this.baseGrid,s=e.basePoint.x;if(s<-.2||s>r+.2)a.hide(0);else{var o=Tr({x:0,y:0},this.gridContainer,a.parent).y;a.path=Oe({x:0,y:0})+ie({x:0,y:t}),a.moveTo({x:s,y:o}),a.show(0)}},i.prototype.createBreakSprites=function(e){e.startLine=new Ga,e.endLine=new Ga;var t=new Sy;t.setWavedSides(!1,!0,!1,!0),e.fillShape=t},i.prototype.toAxisPosition=function(e){var t=e,r=this.axis;if(r){var a=r.relativePositionSprite,s=r.pixelX;if(a?s=Tr({x:this.pixelX,y:0}
22,this.parent,a).x:a=r.parent,a){var o=s/a.innerWidth,l=r.axisLength/a.innerWidth;return(t-o)/l}}return e},i.prototype.updateBullet=function(e,t,r){var a=.5;e instanceof $o&&(a=e.location),t=t+(r-t)*a;var s=this.positionToPoint(t);s.y=Tr({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.positionItem(e,s),this.toggleVisibility(e,t,0,1)},i}(Du);V.registeredClasses.AxisRendererX=aa;qi.push({relevant:lr.heightXS,state:function(n,i){if(n instanceof aa){var e=n.states.create(i);return e.properties.inside=!0,e.properties.maxLabelPosition=.9,e.properties.minLabelPosition=.1,e}return null}});qi.push({relevant:lr.heightXXS,state:function(n,i){if(n instanceof aa){var e=n.states.create(i);return e.properties.disabled=!0,e}return null}});var Hy=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="CategoryAxisBreak",e.properties.startLocation=.5,e.properties.endLocation=.5,e.applyTheme(),e}return Object.defineProperty(i.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedStartValue,this.startLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedEndValue,this.endLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startCategory",{get:function(){return this.getPropertyValue("startCategory")},set:function(e){this.setPropertyValue("startCategory",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endCategory",{get:function(){return this.getPropertyValue("endCategory")},set:function(e){this.setPropertyValue("endCategory",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startValue",{get:function(){var e=this.getPropertyValue("startCategory");return e?this.axis.categoryToIndex(e):this.getPropertyValue("startValue")},set:function(e){this.setPropertyValue("startValue",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endValue",{get:function(){var e=this.getPropertyValue("endCategory");return e?this.axis.categoryToIndex(e):this.getPropertyValue("endValue")},set:function(e){this.setPropertyValue("endValue",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),i}(Pu);V.registeredClasses.CategoryAxisBreak=Hy;var Yy=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.seriesDataItems={},e.className="CategoryAxisDataItem",e.text="{category}",e.locations.category=0,e.locations.endCategory=1,e.deltaPosition=0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"category",{get:function(){return this._adapterO&&this._adapterO.isEnabled("category")?this._adapterO.apply("category",this.properties.category):this.properties.category},set:function(e){var t=this.properties.category;this.setProperty("category",e),T(t)&&t!=e&&this.component&&this.component.validateDataElement(this)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endCategory",{get:function(){return this.properties.endCategory},set:function(e){this.setProperty("endCategory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"deltaPosition",{get:function(){return this.properties.deltaCoordinate},set:function(e){e!=this.properties.deltaCoordinate&&(this.setProperty("deltaCoordinate",e),this.component&&(this.component.invali
22dateDataItems(),this.component.invalidateSeries()))},enumerable:!0,configurable:!0}),i}(Xo),_i=function(n){W(i,n);function i(){var e=n.call(this)||this;e.dataItemsByCategory=new Gt,e.className="CategoryAxis",e.axisFieldName="category",e._lastDataItem=e.createDataItem(),e._lastDataItem.component=e,e._disposers.push(e._lastDataItem),e.applyTheme();var t=e.dataItemsByCategory;return e.addDisposer(e.mainDataSet.events.on("removed",function(r){t.removeKey(r.oldValue.category)})),e}return i.prototype.createDataItem=function(){return new Yy},i.prototype.createAxisBreak=function(){return new Hy},i.prototype.processSeriesDataItem=function(e,t){n.prototype.processSeriesDataItem.call(this,e,t);var r=e["category"+this.axisLetter];if(T(r)){var a=this.dataItemsByCategory.getKey(r);if(a){var s=e.component.uid,o=a.seriesDataItems[s];o||(o=[],a.seriesDataItems[s]=o),o.push(e)}}else e.component.dataItems.remove(e)},i.prototype.validateDataRange=function(){var e=this;n.prototype.validateDataRange.call(this),ue(this._series.iterator(),function(t){if(t.xAxis instanceof i&&t.yAxis instanceof i)t.invalidateDataRange();else{var r=e.positionToIndex(e.start),a=e.positionToIndex(e.end);a>=e.dataItems.length&&a--;for(var s=t.uid,o=void 0,l=void 0,u=r;u<=a;u++){var h=e.dataItems.getIndex(u);if(h){var d=h.seriesDataItems[s];if(d)for(var f=0;f<d.length;f++){var p=d[f];if(p){var v=p.index;(!C(o)||v<o)&&(o=v),(!C(l)||v>l)&&(l=v)}}}}C(o)?t.startIndex=o:t.start=e.start,C(l)?t.endIndex=l+1:t.end=e.end,e._axisBreaks&&e._axisBreaks.length>0&&t.invalidateDataRange()}})},i.prototype.validate=function(){var e=this;n.prototype.validate.call(this);var t=this.dataItems.length,r=ke(Math.floor(this.start*t-1),0,t),a=ke(Math.ceil(this.end*t),0,t);this.renderer.invalid&&this.renderer.validate();var s=this.renderer.axisLength/Math.max(this.renderer.minGridDistance,1/Number.MAX_SAFE_INTEGER),o=Math.min(this.dataItems.length,Math.ceil((a-r)/s));if(this._startIndex=Math.floor(r/o)*o,this._endIndex=Math.ceil(this.end*t),this.fixAxisBreaks(),this._startIndex==this._endIndex&&this._endIndex++,this._frequency=o,!(this.axisLength<=0)){this.maxZoomFactor=this.dataItems.length,this.dataItems.length<=0&&(this.maxZoomFactor=1),this.resetIterators(),r=st(0,this._startIndex-this._frequency),a=xt(this.dataItems.length,this._endIndex+this._frequency);for(var l=0,u=0;u<r;u++){var h=this.dataItems.getIndex(u);h.__disabled=!0}for(var u=a,d=this.dataItems.length;u<d;u++){var h=this.dataItems.getIndex(u);h.__disabled=!0}for(var u=r;u<a;u++)if(u<this.dataItems.length){var h=this.dataItems.getIndex(u);if(u/this._frequency==Math.round(u/this._frequency)){var f=this.isInBreak(u);f||(this.appendDataItem(h),this.validateDataElement(h,l)),l++}else h.__disabled=!0}if(this.appendDataItem(this._lastDataItem),this.validateDataElement(this._lastDataItem,l+1,this.dataItems.length),this._axisBreaks){var p=this._axisBreaks;p.each(function(v){var m=v.adjustedStartValue,x=v.adjustedEndValue;if(Il({start:m,end:x},{start:e._startIndex,end:e._endIndex})){for(var w=m;w<=x;w++){var P=e.dataItems.getIndex(w);P.__disabled=!0}var O=ke(Math.ceil(e._frequency/v.breakSize),1,x-m),j=0;if(v.breakSize>0)for(var w=m;w<=x;w=w+O){var P=e.dataItems.getIndex(w);P.__disabled=!1,e.appendDataItem(P),e.validateDataElement(P,j),j++}}})}this.validateBreaks(),this.validateAxisRanges(),this.ghostLabel.invalidate(),this.renderer.invalidateLayout()}},i.prototype.validateDataElement=function(e,t,r){n.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var a=this.renderer;C(r)||(r=this.categoryToIndex(e.category));var s=this.categoryToIndex(e.endCategory);C(s)||(s=r);var o=this.indexToPosition(r,e.locations.category),l=this.indexToPosition(s,e.locations.endCategory);e.position=o;var u,h,d;e.isRange&&(u=s,h=this.indexToPosition(r,e.locations.category),d=this.indexToPosition(u,e.locations.endCategory)),e.point=a.positionToPoint(o);var f=e.tick;f&&!f.disabled&&a.updateTickElement(f,o,l);var p=e.grid;p&&!p.disabled&&a.updateGridElement(p,o,l);var v=e.label;v&&!v.disabled&&((!e.isRange||v.text==null)&&(e.text=e.text),a.updateLabelElement(v,o,l),(a instanceof gn&&e.label.measuredWidth>this.ghostLabel.measuredWidth||a instanceof aa&&e.label.measuredHeight>this.ghostLabel.measuredHeight)&&(e.label.html?this.ghostLabel.html=e.label.currentText:this.ghostLabel.text=e.label.currentText));var m=e.axisFill;m&&!m.disabled&&(e.isRange||(u=r+this._frequency,h=this.indexToPosition(r,m.location),d=this.indexToPosition(u,m.location)),a.updateFillElement(m,h,d),e.isRange||this.fillRule(e,t)),e.bullet&&a.updateBullet(e.bullet,o,l);var x=e.mask;x&&a.updateFillElement(x,h,d)},i.prototype.disposeData=function(){this.dataItemsByCategory.clear(),n.prototype.disposeData.call(this)},i.prototype.processDataItem=function(e,t){e&&(n.prototype.processDataItem.call(this,e,t),T(e.category)&&this.dataItemsByCategory.setKey(e.category,e))},i.prototype.getDataItem=function(e){var t=e[this.dataFields.category];if(T(t)){var r=this.dataItemsByCategory.getKey(t);return r||this.dataItems.create()}},i.prototype.indexToPosition=function(e,t){C(t)||(t=.5);var r=this.startIndex,a=this.endIndex,s=this.adjustDifference(r,a),o=this.startLocation,l=this.endLocation;if(s-=o,s-=1-l,this._axisBreaks){var u=this._axisBreaks;Yr(u.iterator(),function(f){var p=f.adjustedStartValue,v=f.adjustedEndValue;if(e<r||!C(p)||!C(v))return!1;if(Il({start:p,end:v},{start:r,end:a})){p=Math.max(r,p),v=Math.min(a,v);var m=f.breakSize;e>v?r+=(v-p)*(1-m):e<p||(e=p+(e-p)*m)}return!0})}var h=0,d=this.dataItems.getIndex(e);return d&&(h=d.deltaPosition),de(h+(e+t-o-r)/s,5)},i.prototype.categoryToPosition=function(e,t){var r=this.categoryToIndex(e);return this.indexToPosition(r,t)},i.prototype.categoryToPoint=function(e,t){var r=this.categoryToPosition(e,t),a=this.renderer.positionToPoint(r),s=this.renderer.positionToAngle(r);return{x:a.x,y:a.y,angle:s}},i.prototype.anyToPoint=function(e,t){return this.categoryToPoint(e,t)},i.prototype.anyToPosition=function(e,t){return this.categoryToPosition(e,t)},i.prototype.categoryToIndex=function(e){if(T(e)){var t=this.dataItemsByCategory.getKey(e);if(t)return t.index}},i.prototype.zoomToCategories=function(e,t){this.zoomToIndexes(this.categoryToIndex(e),this.categoryToIndex(t)+1)},i.prototype.getAnyRangePath=function(e,t,r,a){var s=this.categoryToPosition(e,r),o=this.categoryToPosition(t,a);return this.getPositionRangePath(s,o)},i.prototype.roundPosition=function(e,t){var r=this.positionToIndex(e);return this.indexToPosition(r,t)},i.prototype.getFirstSeriesDataItem=function(e,t){for(var r=0;r<e.dataItems.length;r++){var a=e.dataItems.getIndex(r);if(e.xAxis==this&&a.categoryX==t||e.yAxis==this&&a.categoryY==t)return a}},i.prototype.getLastSeriesDataItem=function(e,t){for(var r=e.dataItems.length-1;r>=0;r--){var a=e.dataItems.getIndex(r);if(e.xAxis==this&&a.categoryX==t||e.yAxis==this&&a.categoryY==t)return a}},i.prototype.getSeriesDataItemByCategory=function(e,t){var r=this,a;return t.dataItems.each(function(s){t.xAxis==r?s.categoryX==e&&(a=s):t.yAxis==r&&s.categoryY==e&&(a=s)}),a},i.prototype.getSeriesDataItem=function(e,t,r){var a=this;if(C(t)){var s=this.positionToIndex(t);s>=this.dataItems.length&&s--;var o=this.dataItems.getIndex(s);if(o){var l=o.category,u,h=e.dataItems.getIndex(s);return h&&(e.xAxis==this&&h.categoryX==l||e.yAxis==this&&h.categoryY==l)?h:(e.dataItems.each(function(d){e.xAxis==a&&d.categoryX==l&&(u||(u=d),Math.abs(s-u.index)>Math.abs(s-d.index)&&(u=d)),e.yAxis==a&&d.categoryY==l&&(u||(u=d),Math.abs(s-u.index)>Math.abs(s-d.index)&&(u=d))}),u)}}},i.prototype.getX=function(e,t,r,a,s){var o=this.getPositionX(e,t,r,a,s);return ar(o)?this.basePoint.x:this.renderer.positionToPoint(o).x},i.prototype.getPositionX=function(e,t,r,a,s){var o;return T(t)&&(o=this.categoryToPosition(e.categories[t],r)),s&&(o=ke(o,s.start,s.end)),o},i.prototype.getY=function(e,t,r,a,s){var o=this.getPositionY(e,t,r,a,s);return ar(o)?this.basePoint.y:this.renderer.positionToPoint(o).y},i.prototype.getPositionY=function(e,t,r,a,s){var o;return T(t)&&(o=this.categoryToPosition(e.categories[t],r)),s&&(o=ke(o,s.start,s.end)),o},i.prototype.getAngle=function(e,t,r,a,s){var o=this.categoryToPosition(e.categories[t],r);return s&&(o=ke(o,s.start,s.end)),this.positionToAngle(o)},i.prototype.getCellStartPosition=function(e){return this.roundPosition(e,0)},i.prototype.getCellEndPosition=function(e){return this.roundPosition(e,1)},i.prototype.getTooltipText=function(e){var t=this.dataItems.getIndex(this.positionToIndex(e));if(t)return this.tooltipDataItem=t,this.tooltip.dataItem=t,this.tooltipText?this.tooltipText:this._adapterO?this._adapterO.apply("getTooltipText",t.category):t.category},i.prototype.positionToIndex=function(e){e=de(e,10),e<0&&(e=0),e>1&&(e=1);var t=this.startIndex,r=this.endIndex,a=r-t-this.startLocation-(1-this.endLocation);e+=1/a*this.startLocation;var s=null;if(this._axisBreaks){var o=this._axisBreaks;Yr(o.iterator(),function(l){var u=l.startPosition,h=l.endPosition,d=l.adjustedStartValue,f=l.adjustedEndValue;d=st(d,t),f=xt(f,r);var p=l.breakSize;if(a-=(f-d)*(1-p),e>h)t+=(f-d)*(1-p);else if(!(e<u)){var v=(e-u)/(h-u);return s=d+Math.round(v*(f-d)),!1}return!0})}return C(s)||(s=Math.floor(e*a+t)),s>=this.dataItems.length&&(s=this.dataItems.length-1),s},i.prototype.positionToCategory=function(e){return this.getPositionLabel(e)},i.prototype.getPositionLabel=function(e){var t=this.dataItems.getIndex(this.positionToIndex(e));if(t)return t.category},Object.defineProperty(i.prototype,"basePoint",{get:function(){return this.renderer.positionToPoint(1)},enumerable:!0,configurable:!0}),i.prototype.initRenderer=function(){n.prototype.initRenderer.call(this);var e=this.renderer;e.baseGrid.disabled=!0},Object.defineProperty(i.prototype,"frequency",{get:function(){return this._frequency},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sortBySeries",{get:function(){return this.getPropertyValue("sortBySeries")},set:function(e){this.setPropertyValue("sortBySeries",e,!0)},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){e&&T(e.sortBySeries)&&bt(e.sortBySeries)&&(this.map.hasKey(e.sortBySeries)?e.sortBySeries=this.map.getKey(e.sortBySeries):(this.addDelayedMap("sortBySeries",e.sortBySeries),delete e.sortBySeries)),n.prototype.processConfig.call(this,e)},i}(Cu);V.registeredClasses.CategoryAxis=_i;V.registeredClasses.CategoryAxisDataItem=Yy;var Ou=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="XYSeriesDataItem",e.values.customValue={},e.values.valueX={stack:0},e.values.valueY={stack:0},e.values.openValueX={},e.values.openValueY={},e.values.dateX={},e.values.dateY={},e.values.openDateX={},e.values.openDateY={},e.setLocation("dateX",.5,0),e.setLocation("dateY",.5,0),e.setLocation("categoryX",.5,0),e.setLocation("categoryY",.5,0),e.applyTheme(),e}return Object.defineProperty(i.prototype,"valueX",{get:function(){return this.values.valueX.value},set:function(e){this.setValue("valueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"customValue",{get:function(){return this.values.customValue.value},set:function(e){this.setValue("customValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueY",{get:function(){return this.values.valueY.value},set:function(e){this.setValue("valueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateX",{get:function(){return this.getDate("dateX")},set:function(e){this.setDate("dateX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateY",{get:function(){return this.getDate("dateY")}
22,set:function(e){this.setDate("dateY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"categoryX",{get:function(){return this.categories.categoryX},set:function(e){this.setCategory("categoryX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"categoryY",{get:function(){return this.categories.categoryY},set:function(e){this.setCategory("categoryY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openValueX",{get:function(){return this.values.openValueX.value},set:function(e){this.setValue("openValueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openValueY",{get:function(){return this.values.openValueY.value},set:function(e){this.setValue("openValueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openDateX",{get:function(){return this.getDate("openDateX")},set:function(e){this.setDate("openDateX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openDateY",{get:function(){return this.getDate("openD
22ateY")},set:function(e){this.setDate("openDateY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openCategoryX",{get:function(){return this.categories.openCategoryX},set:function(e){this.setCategory("openCategoryX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openCategoryY",{get:function(){return this.categories.openCategoryY},set:function(e){this.setCategory("openCategoryY",e)},enumerable:!0,configurable:!0}),i.prototype.getMin=function(e,t,r){var a=this,s;return C(r)||(r=0),De(e,function(o){var l;t?l=a.getWorkingValue(o):l=a.getValue(o),l+=r,(l<s||!C(s))&&(s=l)}),s},i.prototype.getMax=function(e,t,r){var a=this,s;return C(r)||(r=0),De(e,function(o){var l;t?l=a.getWorkingValue(o):l=a.getValue(o),l+=r,(l>s||!C(s))&&(s=l)}),s},i}(_u),is=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.groupFields={},e._xAxis=new Ni,e._yAxis=new Ni,e._xValueFields=[],e._yValueFields=[],e._baseInterval={},e.dataGrouped=!1,e.usesShowFields=!1,e._dataSetChanged=!1,e._maxxX=1e5,e._maxxY=1e5,e._propertiesChanged=!1,e.outOfRange=!1,e.className="XYSeries",e.isMeasured=!1,e.groupFields.valueX="close",e.groupFields.valueY="close",e.groupFields.customValue="close",e.groupFields.openValueX="open",e.groupFields.openValueY="open",e.cursorTooltipEnabled=!0,e.cursorHoverEnabled=!0,e.excludeFromTotal=!1,e.mainContainer.mask=new ot,e.mainContainer.mask.setElement(e.paper.add("path")),e.stacked=!1,e.snapTooltip=!1,e._showBullets=!1,e.tooltip.pointerOrientation="horizontal",e.properties.stackToNegative=!0,e.hideTooltipWhileZooming=!0,e.setPropertyValue("maskBullets",!0),e.tooltip.events.on("hidden",function(){e.returnBulletDefaultState()},void 0,!1),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.observe(vi,function(){e.inited&&(e._propertiesChanged=!0,e.legendDataItem&&(e.legendDataItem.childrenCreated=!1),e.chart&&e.chart.legend&&e.chart.legend.invalidateDataItems(),e.invalidate())},void 0,!1),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y Series"))},i.prototype.createDataItem=function(){return new Ou},i.prototype.resetExtremes=function(){this._tmin.clear(),this._tmax.clear(),this._smin.clear(),this._smax.clear()},i.prototype.dataChangeUpdate=function(){this.dataGrouped=!1,this._baseInterval={},this._currentDataSetId="",this.resetExtremes(),this.xAxis&&this.xAxis.seriesDataChangeUpdate(this),this.yAxis&&this.yAxis.seriesDataChangeUpdate(this)},i.prototype.validateData=function(){this._baseInterval={};var e=this.dataFields;if(e.valueYShow||e.openValueXShow||e.openValueXShow||e.openValueYShow?this.usesShowFields=!0:this.usesShowFields=!1,this.defineFields(),this.data.length>0&&this.dataChangeUpdate(),n.prototype.validateData.call(this),this.updateItemReaderText(),this.chart&&(!T(this.dataFields[this._xField])||!T(this.dataFields[this._yField])))throw Error('Data fields for series "'+(this.name?this.name:this.uid)+'" are not properly defined.');this.inited&&this.isHidden&&this.hide(0),this.dataGrouped=!1},i.prototype.processDataItem=function(e,t){try{n.prototype.processDataItem.call(this,e,t),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y"),this.setInitialWorkingValues(e)}catch(r){this._chart&&this._chart.raiseCriticalError(r)}},i.prototype.updateDataItem=function(e){n.prototype.updateDataItem.call(this,e),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y")},i.prototype.setInitialWorkingValues=function(e){},i.prototype.disposeData=function(){n.prototype.disposeData.call(this);var e=this.xAxis,t=this.yAxis;if(e){var r=this.dataItemsByAxis.getKey(e.uid);r&&r.clear(),e instanceof _i&&this.clearCatAxis(e)}if(t){var a=this.dataItemsByAxis.getKey(t.uid);a&&a.clear(),t instanceof _i&&this.clearCatAxis(t)}},i.prototype.clearCatAxis=function(e){var t=this.uid;e.dataItems.each(function(r){r.seriesDataItems[t]&&(r.seriesDataItems[t]=[])})},i.prototype.defineFields=function(){var e=this.xAxis,t=this.yAxis;if(e&&t){var r=e.axisFieldName,a=r+"X",s="open"+Wl(r)+"X",o=t.axisFieldName,l=o+"Y",u="open"+Wl(o)+"Y";this._xField=a,this._yField=l,this.dataFields[s]&&(this._xOpenField=s),this.dataFields[u]&&(this._yOpenField=u),!this.dataFields[u]&&this.baseAxis==t&&(this._yOpenField=l),!this.dataFields[s]&&this.baseAxis==e&&(this._xOpenField=a),this.stacked&&this.baseAxis==e&&(this._xOpenField=a),this.stacked&&this.baseAxis==t&&(this._yOpenField=l),e instanceof _i&&t instanceof _i&&(this._yOpenField||(this._yOpenField=l)),this._xValueFields=[],this._yValueFields=[],this.addValueField(e,this._xValueFields,this._xField),this.addValueField(e,this._xValueFields,this._xOpenField),this.addValueField(t,this._yValueFields,this._yField),this.addValueField(t,this._yValueFields,this._yOpenField)}},i.prototype.addValueField=function(e,t,r){e instanceof dt&&T(this.dataFields[r])&&t.indexOf(r)==-1&&t.push(r)},i.prototype.setCategoryAxisField=function(e,t){T(this.dataFields[e])||(this.dataFields[e]=t.dataFields.category)},i.prototype.setDateAxisField=function(e,t){T(this.dataFields[e])||(this.dataFields[e]=t.dataFields.date)},i.prototype.afterDraw=function(){n.prototype.afterDraw.call(this),this.createMask()},i.prototype.createMask=function(){if(this.mainContainer.mask){var e=this.getMaskPath();ue(this.axisRanges.iterator(),function(t){t.axisFill.fillPath&&(t.axisFill.validate(),e+=t.axisFill.fillPath)}),this.mainContainer.mask.path=e}},i.prototype.getMaskPath=function(){return this.xAxis&&this.yAxis?ma({x:0,y:0,width:this.xAxis.axisLength,height:this.yAxis.axisLength}):""},i.prototype.getAxisField=function(e){if(e==this.xAxis)return this.xField;if(e==this.yAxis)return this.yField},i.prototype.validateDataItems=function(){var e=this.chart;
22e&&(this._maxxX=st(1e5,e.plotContainer.maxWidth*2),this._maxxY=st(1e5,e.plotContainer.maxHeight*2));var t=this.xAxis,r=this.yAxis;t&&r&&(t.updateAxisBySeries(),r.updateAxisBySeries()),n.prototype.validateDataItems.call(this),t&&r&&(t.postProcessSeriesDataItems(this),r.postProcessSeriesDataItems(this))},i.prototype.validateDataRange=function(){var e=this.xAxis,t=this.yAxis;e&&t&&(e.dataRangeInvalid&&e.validateDataRange(),t.dataRangeInvalid&&t.validateDataRange()),n.prototype.validateDataRange.call(this)},i.prototype.validate=function(){var e=this.xAxis,t=this.yAxis;if(e&&t){e.invalid&&e.validate(),t.invalid&&t.validate(),this.y=t.pixelY,this.x=e.pixelX,this._showBullets=!0;var r=this.minBulletDistance;C(r)&&this.baseAxis.axisLength/(this.endIndex-this.startIndex)<r&&(this._showBullets=!1)}if(this.updateTooltip(),!(e instanceof ii&&e.groupData&&!this.dataGrouped||t instanceof ii&&t.groupData&&!this.dataGrouped)){n.prototype.validate.call(this);var a=this.chart,s=this.maskBullets;a&&s&&a.className=="XYChart"&&((a.leftAxesContainer.layout=="vertical"||a.rightAxesContainer.layout=="vertical")&&(this.yAxis?this.bulletsContainer.mask=this.yAxis.renderer.gridContainer:this.bulletsContainer.mask=void 0),(a.topAxesContainer.layout=="horizontal"||a.bottomAxesContainer.layout=="horizontal")&&(this.xAxis?this.bulletsContainer.mask=this.xAxis.renderer.gridContainer:this.bulletsContainer.mask=void 0))}},Object.defineProperty(i.prototype,"xAxis",{get:function(){if(this.chart){if(!this._xAxis.get()){var e=this.chart.xAxes.getIndex(0);if(!e)throw Error("There are no X axes on chart.");this.xAxis=e}return this._xAxis.get()}},set:function(e){this.setXAxis(e)},enumerable:!0,configurable:!0}),i.prototype.setXAxis=function(e){var t=this._xAxis.get();t!=e&&(t&&(this.dataItemsByAxis.removeKey(t.uid),this._xAxis.dispose(),t.series.removeValue(this)),this._xAxis.set(e,e.registerSeries(this)),this.dataItemsByAxis.setKey(e.uid,new Gt),this.invalidateData())},Object.defineProperty(i.prototype,"yAxis",{get:function(){if(this.chart){if(!this._yAxis.get()){var e=this.chart.yAxes.getIndex(0);if(!e)throw Error("There are no Y axes on chart.");this.yAxis=e}return this._yAxis.get()}},set:function(e){this.setYAxis(e)},enumerable:!0,configurable:!0}),i.prototype.setYAxis=function(e){var t=this._yAxis.get();t!=e&&(t&&(this.dataItemsByAxis.removeKey(t.uid),this._yAxis.dispose(),t.series.removeValue(this)),this._yAxis.set(e,e.registerSeries(this)),e.chart instanceof oa&&e.chart.handleYAxisSet(this),this.dataItemsByAxis.setKey(e.uid,new Gt),this.invalidateData())},Object.defineProperty(i.prototype,"baseAxis",{get:function(){var e=this.xAxis,t=this.yAxis;return!this._baseAxis&&e&&t&&(t instanceof ii&&(this._baseAxis=t),e instanceof ii&&(this._baseAxis=e),t instanceof _i&&(this._baseAxis=t),e instanceof _i&&(this._baseAxis=e),this._baseAxis||(this._baseAxis=e)),this._baseAxis},set:function(e){this._baseAxis!=e&&(this._baseAxis=e,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.addData=function(e,t,r){n.prototype.addData.call(this,e,t,r);var a=this.scrollbarSeries;a&&(this.scrollbarSeries.addData(e,t,!0),this.scrollbarSeries._parseDataFrom=this._parseDataFrom)},i.prototype.setData=function(e){n.prototype.setData.call(this,e),this.scrollbarSeries&&this.scrollbarSeries.setData(e)},i.prototype.setDataSet=function(e){var t=n.prototype.setDataSet.call(this,e);if(t){this._dataSetChanged=!0;var r=this.dataItems;if(this.resetExtremes(),r&&r.length>0){var a=this.xAxis,s=this.yAxis;this._prevStartIndex=void 0,this._prevEndIndex=void 0,this._startIndex=void 0,this._endIndex=void 0,this.appeared||this.processValues(!1),a instanceof ii&&a==this.baseAxis&&(this._tmin.setKey(a.uid,r.getIndex(0).dateX.getTime()),this._tmax.setKey(a.uid,r.getIndex(r.length-1).dateX.getTime()),this.dispatch("extremeschanged")),s instanceof ii&&s==this.baseAxis&&(this._tmin.setKey(s.uid,r.getIndex(0).dateY.getTime()),this._tmax.setKey(s.uid,r.getIndex(r.length-1).dateY.getTime()),this.dispatch("extremeschanged"))}}return t},i.prototype.processValues=function(e){n.prototype.processValues.call(this,e);var t=this.xAxis,r=this.yAxis;if(!(!t||!r)){var a=this.dataItems,s=1/0,o=-1/0,l=1/0,u=-1/0,h=this.startIndex,d=this.endIndex,f=h,p=d;e||(h=0,d=this.dataItems.length);for(var v=h;v<d;v++){var m=a.getIndex(v);
22this.getStackValue(m,e);var x=m.getValue("valueX","stack"),w=m.getValue("valueY","stack");e||(x=m.getValue("valueX","stackTrue"),w=m.getValue("valueY","stackTrue")),s=xt(m.getMin(this._xValueFields,e,x),s),l=xt(m.getMin(this._yValueFields,e,w),l),o=st(m.getMax(this._xValueFields,e,x),o),u=st(m.getMax(this._yValueFields,e,w),u),this.stacked&&(this.baseAxis==t&&(w<l&&(l=w),w>u&&(u=w)),this.baseAxis==r&&(x<s&&(s=x),x>o&&(o=x)))}t.processSeriesDataItems(),r.processSeriesDataItems();var P=t.uid,O=r.uid;if(this.xAxis instanceof dt&&(s==1/0||o==-1/0)){this._smin.setKey(P,void 0),this._smax.setKey(P,void 0),this.dispatchImmediately("selectionextremeschanged");return}if(this.yAxis instanceof dt&&(l==1/0||u==-1/0)){this._smin.setKey(O,void 0),this._smax.setKey(O,void 0),this.dispatchImmediately("selectionextremeschanged");return}if(!e&&(this._tmin.getKey(P)!=s||this._tmax.getKey(P)!=o||this._tmin.getKey(O)!=l||this._tmax.getKey(O)!=u)){this._tmin.setKey(P,s),this._tmax.setKey(P,o),this._tmin.setKey(O,l),this._tmax.setKey(O,u);var j=this.stackedSeries;j&&(j.isDisposed()?this.stackedSeries=void 0:j.processValues(!1)),this.dispatchImmediately("extremeschanged")}if(h!=f||d!=p){s=1/0,o=-1/0,l=1/0,u=-1/0;for(var v=f;v<p;v++){var m=a.getIndex(v);this.getStackValue(m,e);var x=m.getValue("valueX","stack"),w=m.getValue("valueY","stack");e||(x=m.getValue("valueX","stackTrue"),w=m.getValue("valueY","stackTrue")),s=xt(m.getMin(this._xValueFields,e,x),s),l=xt(m.getMin(this._yValueFields,e,w),l),o=st(m.getMax(this._xValueFields,e,x),o),u=st(m.getMax(this._yValueFields,e,w),u),this.stacked&&(this.baseAxis==t&&(w<l&&(l=w),w>u&&(u=w)),this.baseAxis==r&&(x<s&&(s=x),x>o&&(o=x)))}}if(this.xAxis instanceof dt&&(s==1/0||o==-1/0)){this._smin.setKey(P,void 0),this._smax.setKey(P,void 0),this.dispatchImmediately("selectionextremeschanged");return}if(this.yAxis instanceof dt&&(l==1/0||u==-1/0)){this._smin.setKey(O,void 0),this._smax.setKey(O,void 0),this.dispatchImmediately("selectionextremeschanged");return}if((this._smin.getKey(P)!=s||this._smax.getKey(P)!=o||this._smin.getKey(O)!=l||this._smax.getKey(O)!=u)&&(this._smin.setKey(P,s),this._smax.setKey(P,o),this._smin.setKey(O,l),this._smax.setKey(O,u),this.appeared||this.start!=0||this.end!=1||this.dataItems!=this.mainDataSet)){var M=!1;if(r instanceof dt&&!(r instanceof ii)){var F=this._tmin.getKey(O);(!C(F)||(this.usesShowFields||this._dataSetChanged||t instanceof ii&&t.groupData&&this.isShowing)&&l<F||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmin.setKey(O,l),M=!0);var g=this._tmax.getKey(O);(!C(g)||(this.usesShowFields||this._dataSetChanged||t instanceof ii&&t.groupData&&this.isShowing)&&u>g||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmax.setKey(O,u),M=!0)}if(t instanceof dt&&!(t instanceof ii)){var F=this._tmin.getKey(P);(!C(F)||(this.usesShowFields||this._dataSetChanged||r instanceof ii&&r.groupData&&this.isShowing)&&s<F||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmin.setKey(P,s),M=!0);var g=this._tmax.getKey(P);(!C(g)||(this.usesShowFields||this._dataSetChanged||r instanceof ii&&r.groupData&&this.isShowing)&&o>g||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmax.setKey(P,o),M=!0)}M&&this.dispatchImmediately("extremeschanged"),this.start==0&&this.end==1&&(this._dataSetChanged=!1),this.dispatchImmediately("selectionextremeschanged")}!e&&this.stacked&&this.processValues(!0)}},i.prototype.hideTooltip=function(e){n.prototype.hideTooltip.call(this,e),this.returnBulletDefaultState(),this._prevTooltipDataItem=void 0},i.prototype.showTooltipAtPosition=function(e,t){var r;if(this.visible&&!this.isHiding&&!this.isShowing){var a=this._xAxis.get(),s=this._yAxis.get();a==this.baseAxis&&(r=a.getSeriesDataItem(this,a.toAxisPosition(e),this.snapTooltip)),s==this.baseAxis&&(r=s.getSeriesDataItem(this,s.toAxisPosition(t),this.snapTooltip));var o=this.showTooltipAtDataItem(r);if(o)return o;if(!this.tooltipText&&!this.tooltipHTML)return}this.hideTooltip()},i.prototype.getAdjustedXLocation=function(e,t,r){return e.locations[t]},i.prototype.getAdjustedYLocation=function(e,t,r){return e.locations[t]},i.prototype.showTooltipAtDataItem=function(e){var t,r,a=this.chart.cursor;if(a&&a.hideSeriesTooltipsOnSelection&&a.selection.visible&&a.downPoint){this.hideTooltip();return}if(this.returnBulletDefaultState(e),e&&e.visible){if(this.updateLegendValue(e),this.cursorTooltipEnabled){this.tooltipDataItem=e;var s=this.tooltipXField,o=this.tooltipYField;if(T(e[s])&&T(e[o])){var l=this.getPoint(e,s,o,this.getAdjustedXLocation(e,s),this.getAdjustedYLocation(e,o));if(l&&!(this.chart.className=="XYChart"&&(l.y<-1||l.y>this.yAxis.pixelHeight+1||l.x<-1||l.x>this.xAxis.pixelWidth+1))){if(this.tooltipX=l.x,this.tooltipY=l.y,this._prevTooltipDataItem!=e&&(this.dispatchImmediately("tooltipshownat",{type:"tooltipshownat",target:this,dataItem:e}),this._prevTooltipDataItem=e),this.cursorHoverEnabled)try{for(var u=Fl(e.sprites),h=u.next();!h.done;h=u.next()){var d=h.value;!d.parent.visible||d.isHidden||d.__disabled||d.disabled||d.isHiding||(d.interactions.isRealHover||(d.dispatchImmediately("over"),d.interactions.isRealHover=!0),d.isHover=!0)}}catch(f){t={error:f}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return this.showTooltip()?Qr({x:l.x,y:l.y},this):void 0}}}}else this.updateLegendValue(e,!0)},i.prototype.returnBulletDefaultState=function(e){var t,r;if(this._prevTooltipDataItem&&this._prevTooltipDataItem!=e)try{for(var a=Fl(this._prevTooltipDataItem.sprites),s=a.next();!s.done;s=a.next()){var o=s.value;if(o.isDisposed())this._prevTooltipDataItem=void 0;else{var l=o.interactions.isRealHover;o.isHover=!1,l&&o.dispatchImmediately("out")}}}catch(u){t={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}},i.prototype.shouldCreateBullet=function(e,t){var r=t.xField;T(r)||(r=this.xField);var a=t.yField;if(T(a)||(a=this.yField),this.xAxis instanceof dt&&!e.hasValue([r])||this.yAxis instanceof dt&&!e.hasValue([a]))return!1;if(t.disabled){var s=t.propertyFields.disabled,o=e.dataContext;return!!(o&&o[s]===!1)}return!0},i.prototype.updateTooltip=function(){!this.hideTooltipWhileZooming&&this.tooltip&&!this.tooltip.isHidden&&!this.isHiding&&!this.isHidden&&this.tooltipDataItem&&this.showTooltipAtDataItem(this.tooltipDataItem)},i.prototype.positionBullet=function(e){n.prototype.positionBullet.call(this,e);var t=e.dataItem,r=e.xField;T(r)||(r=this.xField);var a=e.yField;T(a)||(a=this.yField);var s=this.xAxis,o=this.yAxis;if(s instanceof dt&&!t.hasValue([r])||o instanceof dt&&!t.hasValue([a]))e.visible=!1;else{var l=this.getBulletLocationX(e,r),u=this.getBulletLocationY(e,a),h=this.getPoint(t,r,a,l,u);if(h){var d=this.xOpenField,f=this.yOpenField,p=void 0,v=void 0;if(s instanceof ii){C(l)||(l=0);var m=void 0,x=t.getWorkingValue(r);d?m=t.getWorkingValue(d):s==this.baseAxis&&(m=s.baseValue),C(m)||(m=x);var w=t.getValue("valueX","stack");if(m+=w,x+=w,m==x){var P=s.baseInterval,O=s.dateFormatter;m=Yi(new Date(m),P.timeUnit,P.count,O.firstDayOfWeek,O.utc,void 0,O.timezoneMinutes,O.timezone).getTime(),x=dr(new Date(m),P.timeUnit,P.count,O.utc).getTime()}var j=void 0;s==this.baseAxis?j=m+(x-m)*l:j=m+(x-m)*(1-l),p=s.valueToPosition(j)}else if(s instanceof dt){C(l)||(l=0);var m=void 0,x=t.getWorkingValue(r);d?m=t.getWorkingValue(d):m=s.baseValue;var w=t.getValue("valueX","stack");m+=w,x+=w;var j=m+(x-m)*(1-l);p=s.valueToPosition(j)}else if(s instanceof _i){var M=this.getAdjustedXLocation(t,r,e.locationX),F=this.getAdjustedXLocation(t,d,e.locationX);p=s.categoryToPosition(t[r],M);var g=void 0;d&&(g=s.categoryToPosition(t[d],F)),C(g)||(g=1),p=g+(p-g)*l}if(o instanceof ii){C(u)||(u=0);var m=void 0,x=t.getWorkingValue(a);f?m=t.getWorkingValue(f):o==this.baseAxis&&(m=o.baseValue),C(m)||(m=x);var w=t.getValue("valueY","stack");if(m+=w,x+=w,m==x){var P=o.baseInterval,O=o.dateFormatter;m=Yi(new Date(m),P.timeUnit,P.count,O.firstDayOfWeek,O.utc,void 0,O.timezoneMinutes,O.timezone).getTime(),x=dr(new Date(m),P.timeUnit,P.count,O.utc).getTime()}var j=void 0;o==this.baseAxis?j=m+(x-m)*u:j=m+(x-m)*(1-u),v=o.valueToPosition(j)}else if(o instanceof dt){C(u)||(u=0);var m=void 0,x=t.getWorkingValue(a);f?m=t.getWorkingValue(f):m=o.baseValue;var w=t.getValue("valueY","stack");m+=w,x+=w;var j=m+(x-m)*(1-u);v=o.valueToPosition(j)}else if(o instanceof _i){v=o.categoryToPosition(t[a],u);var L=this.getAdjustedYLocation(t,a,e.locationY),N=this.getAdjustedYLocation(t,f,e.locationY);v=o.categoryToPosition(t[a],L);var ye=void 0;f&&(ye=o.categoryToPosition(t[f],N)),C(ye)||(ye=1),v=ye+(v-ye)*u}e.visible=!0,this.positionBulletReal(e,p,v)}else e.visible=!1}},i.prototype.positionBulletReal=function(e,t,r){e.x=this.xAxis.renderer.positionToPoint(t,r).x,e.y=this.yAxis.renderer.positionToPoint(r,t).y},i.prototype.getBulletLocationX=function(e,t){var r=e.locationX,a=e.dataItem;return C(r)||(r=a.workingLocations[t]),r},i.prototype.getBulletLocationY=function(e,t){var r=e.locationY,a=e.dataItem;return C(r)||(r=a.workingLocations[t]),r},i.prototype.updateStacking=function(){var e=this;this.invalidateDataItems(),this.chart&&this.chart.series.each(function(t){t.baseAxis==e.baseAxis&&(t.stackedSeries=void 0,t.invalidateDataItems(),t.invalidateProcessedData())})},Object.defineProperty(i.prototype,"stacked",{get:function(){return this.getPropertyValue("stacked")},set:function(e){if(this.setPropertyValue("stacked",e,!0)){this.updateStacking();var t=this.xAxis,r=this.yAxis;if(!e){var a;t!=this.baseAxis&&t instanceof dt&&(a=this.xField),r!=this.baseAxis&&r instanceof dt&&(a=this.yField),a&&this.dataItems.each(function(s){s.setCalculatedValue(a,0,"stack"),s.setCalculatedValue(a,0,"stackTrue")})}}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(e){this.setPropertyValue("snapTooltip",e)},enumerable:!0,configurable:!0}),i.prototype.show=function(e){var t=this;this.isHidden&&(this.appeared&&this.xAxis instanceof ii&&this.xAxis.groupData&&(this._tmin.setKey(this.yAxis.uid,void 0),this._tmax.setKey(this.yAxis.uid,void 0)),this.appeared&&this.yAxis instanceof ii&&this.yAxis.groupData&&(this._tmin.setKey(this.xAxis.uid,void 0),this._tmax.setKey(this.xAxis.uid,void 0)));var r;this.xAxis instanceof dt&&this.xAxis!=this.baseAxis&&(r=this._xValueFields),this.yAxis instanceof dt&&this.yAxis!=this.baseAxis&&(r=this._yValueFields);var a=this.startIndex,s=this.endIndex,o=0,l=this.defaultState.transitionDuration;C(e)&&(l=e);var u;
22ue(Za(this.dataItems.iterator()),function(d){var f=d[0],p=d[1],v=l;(f<t.startIndex-10||f>t.endIndex+10)&&(v=0,o=0),t.sequencedInterpolation&&v>0&&(o=t.sequencedInterpolationDelay*f+l*(f-a)/(s-a)),u=p.show(v,o,r)}),this.dataSets.each(function(d,f){f!=t.dataItems&&f.each(function(p){p.events.disable(),p.show(0,0,r),p.events.enable()})}),this.mainDataSet!=this.dataItems&&this.mainDataSet.each(function(d){d.events.disable(),d.show(0,0,r),d.events.enable()});var h=n.prototype.show.call(this,e);return u&&!u.isFinished()&&(h=u),this.hidden&&(this.dispatchImmediately("selectionextremeschanged"),this.hidden=!1),h},i.prototype.hide=function(e){var t=this,r,a,s=this.xAxis;s instanceof dt&&s!=this.baseAxis&&(r=this._xValueFields,this.stacked||s.minZoomed<s.baseValue&&s.maxZoomed>s.baseValue||this.stackedSeries?a=s.baseValue:a=s.min);var o=this.yAxis;o instanceof dt&&o!=this.baseAxis&&(r=this._yValueFields,this.stacked||o.minZoomed<o.baseValue&&o.maxZoomed>o.baseValue||this.stackedSeries?a=o.baseValue:a=o.min);var l=this.startIndex,u=this.endIndex,h=this.hiddenState.transitionDuration;C(e)&&(h=e);var d=0,f;ue(Za(this.dataItems.iterator()),function(v){var m=v[0],x=v[1],w=h;(m<t.startIndex-10||m>t.endIndex+10)&&(w=0),w==0?x.hide(0,0,a,r):(t.sequencedInterpolation&&w>0&&(d=t.sequencedInterpolationDelay*m+h*(m-l)/(u-l)),f=x.hide(w,d,a,r))}),this.dataSets.each(function(v,m){m!=t.dataItems&&m.each(function(x){x.events.disable(),x.hide(0,0,a,r),x.events.enable()})}),this.mainDataSet!=this.dataItems&&this.mainDataSet.each(function(v){v.events.disable(),v.hide(0,0,a,r),v.events.enable()});var p=n.prototype.hide.call(this,h);return p&&!p.isFinished()&&p.delay(d),f&&!f.isFinished()&&(p=f),this.appeared&&this.dispatch("selectionextremeschanged"),this.validateDataElements(),p},i.prototype.handleDataItemWorkingValueChange=function(e,t){n.prototype.handleDataItemWorkingValueChange.call(this,e,t);var r=this.baseAxis.series;ue(r.iterator(),function(a){(a.stacked||a.stackedSeries)&&a.invalidateProcessedData()})},i.prototype.getStackValue=function(e,t){var r=this,a=this.xAxis,s=this.yAxis;if(!(!this.stacked||!a||!s)){var o=this.chart,l=o.series.indexOf(this),u;if(a!=this.baseAxis&&a instanceof dt&&(u=this.xField),s!=this.baseAxis&&s instanceof dt&&(u=this.yField),!u)return;e.setCalculatedValue(u,0,"stack"),e.setCalculatedValue(u,0,"stackTrue"),Yr(o.series.range(0,l).backwards().iterator(),function(h){if(h.xAxis==a&&h.yAxis==s&&h.className==r.className){h.stackedSeries=r;var d=h.dataItems.getIndex(e.index);if(d&&d.hasValue(r._xValueFields)&&d.hasValue(r._yValueFields)){var f=e.getValue(u),p=void 0,v=d.getValue(u,"stackTrue");v==null&&(v=0);var m=d.getValue(u)+v;if(p=d.getWorkingValue(u)+d.getValue(u,"stack"),r.stackToNegative){if(f>=0&&m>=0||f<0&&m<0)return e.setCalculatedValue(u,p,"stack"),e.setCalculatedValue(u,m,"stackTrue"),!1;if(!h.stacked)return!1}else return e.setCalculatedValue(u,p,"stack"),e.setCalculatedValue(u,m,"stackTrue"),!1}else if(!h.stacked)return!1}return!0})}},Object.defineProperty(i.prototype,"stackToNegative",{get:function(){return this.getPropertyValue("stackToNegative")},set:function(e){this.setPropertyValue("stackToNegative",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xField",{get:function(){return this._xField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yField",{get:function(){return this._yField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xOpenField",{get:function(){return this._xOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yOpenField",{get:function(){return this._yOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipXField",{get:function(){return this._tooltipXField?this._tooltipXField:this._xField},set:function(e){this._tooltipXField=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipYField",{get:function(){return this._tooltipYField?this._tooltipYField:this._yField},set:function(e){this._tooltipYField=e},enumerable:!0,configurable:!0}),i.prototype.min=function(e){return this._tmin.getKey(e.uid)},i.prototype.max=function(e){return this._tmax.getKey(e.uid)},i.prototype.selectionMin=function(e){var t=this._smin.getKey(e.uid);return t},i.prototype.selectionMax=function(e){var t=this._smax.getKey(e.uid);return t},i.prototype.processConfig=function(e){if(e){if(T(e.baseAxis)&&bt(e.baseAxis)&&(this.map.hasKey(e.baseAxis)?e.baseAxis=this.map.getKey(e.baseAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.baseAxis+'" found for `baseAxis`.'),delete e.baseAxis)),T(e.xAxis)&&bt(e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.xAxis+'" found for `xAxis`.'),delete e.xAxis)),T(e.yAxis)&&bt(e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.yAxis+'" found for `yAxis`.'),delete e.yAxis)),T(e.axisRanges)&&Ui(e.axisRanges))for(var t=0,r=e.axisRanges.length;t<r;t++){var a=e.axisRanges[t];T(a.type)||(a.type="AxisDataItem"),T(a.axis)&&bt(a.axis)&&this.map.hasKey(a.axis)?a.component=this.map.getKey(a.axis):T(a.component)&&bt(a.component)&&this.map.hasKey(a.component)&&(a.component=this.map.getKey(a.component))}(!T(e.dataFields)||!Zt(e.dataFields))&&this.processingErrors.push("`dataFields` is not set for series ["+(this.name||"unnamed")+"]")}n.prototype.processConfig.call(this,e)},i.prototype.getPoint=function(e,t,r,a,s,o,l){if(this.xAxis&&this.yAxis){var u=this.xAxis.getX(e,t,a),h=this.yAxis.getY(e,r,s);
22return u=ke(u,-this._maxxX,this._maxxX),h=ke(h,-this._maxxY,this._maxxY),{x:u,y:h}}},i.prototype.updateItemReaderText=function(){if(!this._itemReaderTextChanged){var e="";$e(this.dataFields,function(t,r){e+="{"+t+"} "}),this.itemReaderText=e,this._itemReaderTextChanged=!1}},Object.defineProperty(i.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(e){this.setPropertyValue("cursorTooltipEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorHoverEnabled",{get:function(){return this.getPropertyValue("cursorHoverEnabled")},set:function(e){this.setPropertyValue("cursorHoverEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"excludeFromTotal",{get:function(){return this.getPropertyValue("excludeFromTotal")},set:function(e){this.setPropertyValue("excludeFromTotal",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideTooltipWhileZooming",{get:function(){return this.getPropertyValue("hideTooltipWhileZooming")},set:function(e){this.setPropertyValue("hideTooltipWhileZooming",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(e){this.setPropertyValue("maskBullets",e);var t=this.chart;t&&(e?this.bulletsContainer.parent=t.bulletsContainer:this.bulletsContainer.parent=t.axisBulletsContainer)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){this.groupFields=na(e.groupFields,{}),n.prototype.copyFrom.call(this,e)},i.prototype.dispose=function(){this.scrollbarSeries&&this.scrollbarSeries.dispose(),n.prototype.dispose.call(this)},i}(wu);V.registeredClasses.XYSeries=is;V.registeredClasses.XYSeriesDataItem=Ou;var Ya=function(n){W(i,n);function i(){var e=n.call(this)||this;e._chart=new Ni,e.className="XYChartScrollbar";var t=new Ot;e.padding(0,0,0,0);var r=e.createChild(oa);if(r.shouldClone=!1,r.margin(0,0,0,0),r.padding(0,0,0,0),r.interactionsEnabled=!1,e._scrollbarChart=r,!ko()){var a=new Ql;a.filterUnits="userSpaceOnUse",r.plotContainer.filters.push(a)}e._disposers.push(e._scrollbarChart),e.minHeight=60,e.minWidth=60;var s=e.createChild(ot);s.shouldClone=!1,s.setElement(e.paper.add("path")),s.fill=t.getFor("background"),s.fillOpacity=.8,s.interactionsEnabled=!1,s.isMeasured=!1,s.toBack(),e._unselectedOverlay=s,e._disposers.push(e._unselectedOverlay),r.toBack(),e.background.cornerRadius(0,0,0,0);var o=e.thumb.background;o.cornerRadius(0,0,0,0),o.fillOpacity=0,o.fill=t.getFor("background");var l=o.states.getKey("hover");l&&(l.properties.fillOpacity=.2);var u=o.states.getKey("down");return u&&(u.properties.fillOpacity=.4),e._disposers.push(e._chart),e.applyTheme(),e}return Object.defineProperty(i.prototype,"series",{get:function(){return this._series||(this._series=new Pt,this._disposers.push(this._series.events.on("inserted",this.handleSeriesAdded,this,!1)),this._disposers.push(this._series.events.on("removed",this.handleSeriesRemoved,this,!1))),this._series},enumerable:!0,configurable:!0}),i.prototype.handleSeriesAdded=function(e){var t=this,r=e.newValue;if(!(!r.xAxis||!r.yAxis)){var a=this.scrollbarChart;a.zoomOutButton.disabled=!0,this.chart=r.chart,a.dateFormatter.inputDateFormat=this.chart.dateFormatter.inputDateFormat,a.language.locale=this.chart.language.locale;var s=!0,o=!0;ue(this.series.iterator(),function(O){O!=r&&(O.xAxis==r.xAxis&&t.scrollbarChart.xAxes.length>0&&(s=!1),O.yAxis==r.yAxis&&t.scrollbarChart.yAxes.length>0&&(o=!1))}),r.events.on("beforedisposed",function(){t.series.removeValue(r)});var l=new Ot,u=r.clone();if(ko()&&(u.stroke=qe("#aaaaaa"),u.fill=u.stroke,u.propertyFields.fill=void 0,u.propertyFields.stroke=void 0),r.scrollbarSeries=u,s){var h=r.xAxis.clone();a.xAxes.moveValue(h),h.title.disabled=!0,h.rangeChangeDuration=0;var d=h.renderer;d.ticks.template.disabled=!0,d.inside=!0,d.labels.template.inside=!0,d.line.strokeOpacity=0,d.minLabelPosition=.02,d.maxLabelPosition=.98,d.line.disabled=!0,d.axisFills.template.disabled=!0,d.baseGrid.disabled=!0,d.grid.template.strokeOpacity=.05,d.minWidth=void 0,d.minHeight=void 0,d.padding(0,0,0,0),d.chart=a,d.margin(0,0,0,0),h.width=pe(100);var f=d.labels.template;if(f.fillOpacity=.5,h.maxZoomCount=void 0,h.minZoomCount=void 0,h instanceof ii){var p=h,v=r.xAxis;p.groupCount=v.groupCount*5,p.min=void 0,p.max=void 0,this._disposers.push(p.clonedFrom.events.on("extremeschanged",function(){C(p.clonedFrom.minDefined)&&(p.min=p.clonedFrom.minDefined),C(p.clonedFrom.maxDefined)&&(p.max=p.clonedFrom.maxDefined)},void 0,!1))}else if(h instanceof dt){var m=h;m.min=void 0,m.max=void 0,C(m.clonedFrom.minDefined)||(m.min=void 0),C(m.clonedFrom.maxDefined)||(m.max=void 0),this._disposers.push(m.clonedFrom.events.on("extremeschanged",function(){C(m.clonedFrom.minDefined)&&(m.min=m.clonedFrom.min),C(m.clonedFrom.maxDefined)&&(m.max=m.clonedFrom.max)},void 0,!1))}u.xAxis=h}else this.scrollbarChart.xAxes.each(function(O){O.clonedFrom==r.xAxis&&(u.xAxis=O)});if(o){var x=r.yAxis.clone();a.yAxes.moveValue(x),x.title.disabled=!0,x.rangeChangeDuration=0;var d=x.renderer;d.ticks.template.disabled=!0,d.inside=!0,d.labels.template.inside=!0,d.line.strokeOpacity=0,d.minLabelPosition=.02,d.maxLabelPosition=.98,d.line.disabled=!0,d.axisFills.template.disabled=!0,d.grid.template.stroke=l.getFor("background"),d.baseGrid.disabled=!0,d.grid.template.strokeOpacity=.05,d.minWidth=void 0,d.minHeight=void 0,d.chart=a,d.padding(0,0,0,0),d.margin(0,0,0,0),x.height=pe(100);var f=d.labels.template;if(f.fillOpacity=.5,u.yAxis=x,x.maxZoomCount=void 0,x.minZoomCount=void 0,x instanceof ii){var w=x;w.min=void 0,w.max=void 0;var v=r.yAxis;x.groupCount=v.groupCount*5,this._disposers.push(w.clonedFrom.events.on("extremeschanged",function(){C(w.clonedFrom.minDefined)&&(w.min=w.clonedFrom.minDefined),C(w.clonedFrom.maxDefined)&&(w.max=w.clonedFrom.maxDefined)}))}else if(x instanceof dt){var P=x;P.min=void 0,P.max=void 0,C(P.clonedFrom.minDefined)||(P.min=void 0),C(P.clonedFrom.maxDefined)||(P.max=void 0),this._disposers.push(P.clonedFrom.events.on("extremeschanged",function(){C(P.clonedFrom.minDefined)&&(P.min=P.clonedFrom.minDefined),C(P.clonedFrom.maxDefined)&&(P.max=P.clonedFrom.maxDefined)}))}}else this.scrollbarChart.yAxes.each(function(O){O.clonedFrom==r.yAxis&&(u.yAxis=O)});u.rangeChangeDuration=0,u.interpolationDuration=0,u.defaultState.transitionDuration=0,u.showOnInit=!1,this._disposers.push(u.events.on("validated",this.zoomOutAxes,this,!1)),this._disposers.push(r.events.on("datavalidated",function(){u.data!=r.data&&(u.data=r.data)},void 0,!1)),u.defaultState.properties.visible=!0,a.series.push(u),this.updateByOrientation()}},i.prototype.updateByOrientation=function(){var e=this;this._scrollbarChart&&(ue(this._scrollbarChart.xAxes.iterator(),function(t){var r=t.renderer;e.orientation=="vertical"?(r.grid.template.disabled=!0,r.labels.template.disabled=!0,r.minGridDistance=10):(r.grid.template.disabled=!1,r.labels.template.disabled=!1,r.minGridDistance=t.clonedFrom.renderer.minGridDistance)}),ue(this._scrollbarChart.yAxes.iterator(),function(t){var r=t.renderer;e.orientation=="horizontal"?(r.grid.template.disabled=!0,r.labels.template.disabled=!0,r.minGridDistance=10):(r.grid.template.disabled=!1,r.labels.template.disabled=!1,r.minGridDistance=t.clonedFrom.renderer.minGridDistance)}))},i.prototype.handleSeriesRemoved=function(e){var t=e.oldValue,r=this.scrollbarChart;r.series.each(function(a){a&&a.clonedFrom==t&&r.series.removeValue(a)}),r.series.length==0&&(r.xAxes.clear(),r.yAxes.clear());try{t.events.off("validated",this.zoomOutAxes,this)}catch{}},Object.defineProperty(i.prototype,"scrollbarChart",{get:function(){return this._scrollbarChart},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){this._chart.get()!==e&&(this._chart.set(e,e.events.on("datavalidated",this.handleDataChanged,this,!1)),this.handleDataChanged(),this._scrollbarChart.dataProvider=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"unselectedOverlay",{get:function(){return this._unselectedOverlay},enumerable:!0,configurable:!0}),i.prototype.handleDataChanged=function(){this.chart.data!=this.scrollbarChart.data?this.scrollbarChart.data=this.chart.data:this.scrollbarChart.invalidateRawData()},i.prototype.zoomOutAxes=function(){var e=this.scrollbarChart;ue(e.xAxes.iterator(),function(t){t.zoom({start:0,end:1},!0,!0)}),ue(e.yAxes.iterator(),function(t){t.zoom({start:0,end:1},!0,!0)})},i.prototype.updateThumb=function(e){if(e===void 0&&(e=!0),n.prototype.updateThumb.call(this,e),this._unselectedOverlay){var t=this.thumb,r=t.pixelX||0,a=t.pixelY||0,s=t.pixelWidth||0,o=t.pixelHeight||0,l="";this.orientation=="horizontal"?(l=ma({x:-1,y:0,width:r,height:o}),l+=ma({x:r+s,y:0,width:(this.pixelWidth||0)-r-s,height:o})):(l=ma({x:0,y:0,width:s,height:a}),l+=ma({x:0,y:a+o,width:s,height:(this.pixelHeight||0)-a-o})),this._unselectedOverlay.path=l}},i.prototype.processConfig=function(e){if(e&&T(e.series)&&Ui(e.series))for(var t=0,r=e.series.length;t<r;t++){var a=e.series[t];
22if(T(a)&&bt(a))if(this.map.hasKey(a))e.series[t]=this.map.getKey(a);else throw Error("XYChartScrollbar error: Series with id `"+a+"` does not exist.")}n.prototype.processConfig.call(this,e)},i}(mu);V.registeredClasses.XYChartScrollbar=Ya;var lc=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="XYChartDataItem",e.applyTheme(),e}return i}(Iy),oa=function(n){W(i,n);function i(){var e=n.call(this)||this;e._axisRendererX=aa,e._axisRendererY=gn,e._seriesPoints=[],e.className="XYChart",e.maskBullets=!0,e.arrangeTooltips=!0;var t=e.chartContainer;t.layout="vertical",e.padding(15,15,15,15);var r=t.createChild(Ee);r.shouldClone=!1,r.layout="vertical",r.width=pe(100),r.zIndex=1,e.topAxesContainer=r;var a=t.createChild(Ee);a.shouldClone=!1,a.layout="horizontal",a.width=pe(100),a.height=pe(100),a.zIndex=0,e.yAxesAndPlotContainer=a;var s=t.createChild(Ee);s.shouldClone=!1,s.width=pe(100),s.layout="vertical",s.zIndex=1,e.bottomAxesContainer=s;var o=a.createChild(Ee);o.shouldClone=!1,o.layout="horizontal",o.height=pe(100),o.contentAlign="right",o.events.on("transformed",e.updateXAxesMargins,e,!1),o.zIndex=1,e.leftAxesContainer=o;var l=a.createChild(Ee);l.shouldClone=!1,l.height=pe(100),l.width=pe(100),l.background.fillOpacity=0,e.plotContainer=l,e.mouseWheelBehavior="none",e._cursorContainer=l;var u=a.createChild(Ee);u.shouldClone=!1,u.layout="horizontal",u.height=pe(100),u.zIndex=1,u.events.on("transformed",e.updateXAxesMargins,e,!1),e.rightAxesContainer=u,e.seriesContainer.parent=l,e.bulletsContainer.parent=l;var h=l.createChild(Oy);h.shouldClone=!1,h.align="right",h.valign="top",h.zIndex=Number.MAX_SAFE_INTEGER,h.marginTop=5,h.marginRight=5,h.hide(0),e.zoomOutButton=h;var d=e.plotContainer.createChild(Ee);return d.shouldClone=!1,d.width=pe(100),d.height=pe(100),d.isMeasured=!1,d.zIndex=4,d.layout="none",e.axisBulletsContainer=d,e._bulletMask=e.plotContainer,e.events.on("beforedatavalidated",function(){e.series.each(function(f){f.dataGrouped=!1,f._baseInterval={}})},e,!1),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),this.zoomOutButton.exportable=!1,T(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y chart"))},i.prototype.draw=function(){n.prototype.draw.call(this),this.seriesContainer.toFront(),this.bulletsContainer.toFront(),this.maskBullets&&(this.bulletsContainer.mask=this._bulletMask),this.updateSeriesLegend()},i.prototype.updatePlotElements=function(){ue(this.series.iterator(),function(e){e.invalidate()})},i.prototype.validateData=function(){this._parseDataFrom==0&&(ue(this.xAxes.iterator(),function(e){e.dataChangeUpdate()}),ue(this.yAxes.iterator(),function(e){e.dataChangeUpdate()}),ue(this.series.iterator(),function(e){e.dataChangeUpdate()})),n.prototype.validateData.call(this)},i.prototype.updateXAxesMargins=function(){var e=this.leftAxesContainer.measuredWidth,t=this.rightAxesContainer.measuredWidth,r=this.bottomAxesContainer;(r.paddingLeft!=e||r.paddingRight!=t)&&(r.paddingLeft=e,r.paddingRight=t);var a=this.topAxesContainer;(a.paddingLeft!=e||a.paddingRight!=t)&&(a.paddingLeft=e,a.paddingRight=t)},i.prototype.reinit=function(){n.prototype.reinit.call(this),this.series.each(function(e){e.appeared=!1})},i.prototype.handleXAxisChange=function(e){this.updateXAxis(e.target)},i.prototype.handleYAxisChange=function(e){this.updateYAxis(e.target)},i.prototype.processXAxis=function(e){var t=e.newValue;t.chart=this,t.renderer||(t.renderer=new this._axisRendererX,t.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleXAxisChange,this,!1)),t.axisLetter="X",t.events.on("startendchanged",this.handleXAxisRangeChange,this,!1),t.dataProvider=this,this.updateXAxis(t.renderer),this.processAxis(t)},i.prototype.processYAxis=function(e){var t=e.newValue;t.chart=this,t.renderer||(t.renderer=new this._axisRendererY,t.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleYAxisChange,this,!1)),t.axisLetter="Y",t.events.on("startendchanged",this.handleYAxisRangeChange,this,!1),t.dataProvider=this,this.updateYAxis(t.renderer),this.processAxis(t)}
22,i.prototype.handleXAxisRangeChange=function(){var e=this.getCommonAxisRange(this.xAxes);this.scrollbarX&&this.zoomAxes(this.xAxes,e,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarX,e)},i.prototype.toggleZoomOutButton=function(){if(this.zoomOutButton){var e=!1;Yr(this.xAxes.iterator(),function(t){if(t.toggleZoomOutButton){if(t.maxZoomCount>0){var r=t.maxZoomFactor/t.maxZoomCount;if(de(t.end-t.start,3)<1/r)return e=!0,!1}else if(de(t.start,3)>0||de(t.end,3)<1)return e=!0,!1}return!0}),Yr(this.yAxes.iterator(),function(t){if(t.toggleZoomOutButton){if(t.maxZoomCount>0){var r=t.maxZoomFactor/t.maxZoomCount;if(de(t.end-t.start,3)<1/r)return e=!0,!1}else if(de(t.start,3)>0||de(t.end,3)<1)return e=!0,!1;return!0}}),this.seriesAppeared||(e=!1),e?this.zoomOutButton.show():this.zoomOutButton.hide()}},i.prototype.seriesAppeared=function(){var e=!1;return ue(this.series.iterator(),function(t){if(!t.appeared)return e=!1,!1}),e},i.prototype.handleYAxisRangeChange=function(){var e=this.getCommonAxisRange(this.yAxes);this.scrollbarY&&this.zoomAxes(this.yAxes,e,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarY,e)},i.prototype.updateScrollbar=function(e,t){e&&(e.skipRangeEvents(),e.start=t.start,e.end=t.end)},i.prototype.getCommonAxisRange=function(e){var t,r;return e.each(function(a){if(!(!a.zoomable||a instanceof dt&&a.syncWithAxis)){var s=a.start,o=a.end;a.renderer.inversed&&(s=1-a.end,o=1-a.start),(!C(t)||s<t)&&(t=s),(!C(r)||o>r)&&(r=o)}}),{start:t,end:r}},i.prototype.updateXAxis=function(e){var t=e.axis;e.opposite?(t.parent=this.topAxesContainer,t.toFront()):(t.parent=this.bottomAxesContainer,t.toBack()),t.renderer&&t.renderer.processRenderer()},i.prototype.updateYAxis=function(e){var t=e.axis;e.opposite?(t.parent=this.rightAxesContainer,t.toBack()):(t.parent=this.leftAxesContainer,t.toFront()),t.renderer&&t.renderer.processRenderer()},i.prototype.processAxis=function(e){var t=this;e instanceof _i&&this._dataUsers.moveValue(e);var r=e.renderer;r.gridContainer.parent=this.plotContainer,r.gridContainer.toBack(),r.breakContainer.parent=this.plotContainer,r.breakContainer.toFront(),r.breakContainer.zIndex=10,e.addDisposer(new Lt(function(){t.dataUsers.removeValue(e)})),r.bulletsContainer.parent=this.axisBulletsContainer,this._disposers.push(e.events.on("positionchanged",function(){var a=Tr({x:0,y:0},e,t.axisBulletsContainer);e.renderer instanceof gn&&(r.bulletsContainer.y=a.y),e.renderer instanceof aa&&(r.bulletsContainer.x=a.x)},void 0,!1)),this.plotContainer.events.on("maxsizechanged",function(){t.inited&&(e.invalidateDataItems(),t.updateSeriesMasks())},e,!1)},i.prototype.updateSeriesMasks=function(){ko()&&this.series.each(function(e){var t=e.mainContainer.mask;e.mainContainer.mask=void 0,e.mainContainer.mask=t})},i.prototype.handleSeriesRemoved=function(e){var t=e.oldValue;t&&(t.xAxis&&(t.xAxis.series.removeValue(t),t.xAxis.invalidateProcessedData()),t.yAxis&&(t.yAxis.series.removeValue(t),t.yAxis.invalidateProcessedData()),this.series.each(function(r){r.resetExtremes()})),n.prototype.handleSeriesRemoved.call(this,e)},Object.defineProperty(i.prototype,"xAxes",{get:function(){return this._xAxes||(this._xAxes=new Pt,this._xAxes.events.on("inserted",this.processXAxis,this,!1),this._xAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new zt(this._xAxes,!1))),this._xAxes},enumerable:!0,configurable:!0}),i.prototype.handleAxisRemoval=function(e){var t=e.oldValue;this.dataUsers.removeValue(t),t.autoDispose&&t.dispose()},Object.defineProperty(i.prototype,"yAxes",{get:function(){return this._yAxes||(this._yAxes=new Pt,this._yAxes.events.on("inserted",this.processYAxis,this,!1),this._yAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new zt(this._yAxes,!1))),this._yAxes},enumerable:!0,configurable:!0}),i.prototype.handleSeriesAdded=function(e){try{n.prototype.handleSeriesAdded.call(this,e);var t=e.newValue;(this.xAxes.length==0||this.yAxes.length==0)&&(V.removeFromInvalidComponents(t),t.dataInvalid=!1),t.xAxis,t.yAxis,t.maskBullets=t.maskBullets,t.fill==null&&(this.patterns?(T(t.stroke)||(t.stroke=this.colors.next()),t.fill=this.patterns.next(),T(t.fillOpacity)&&(t.fill.backgroundOpacity=t.fillOpacity),t.stroke instanceof wt&&(t.fill.stroke=t.stroke,t.fill.fill=t.
22stroke)):t.fill=this.colors.next()),T(t.stroke)||(t.stroke=t.fill)}catch(r){this.raiseCriticalError(r)}},Object.defineProperty(i.prototype,"cursor",{get:function(){return this._cursor},set:function(e){this._cursor!=e&&(this._cursor&&this.removeDispose(this._cursor),this._cursor=e,e&&(this._disposers.push(e),e.chart=this,e.shouldClone=!1,e.parent=this._cursorContainer,e.events.on("cursorpositionchanged",this.handleCursorPositionChange,this,!1),e.events.on("zoomstarted",this.handleCursorZoomStart,this,!1),e.events.on("zoomended",this.handleCursorZoomEnd,this,!1),e.events.on("panstarted",this.handleCursorPanStart,this,!1),e.events.on("panning",this.handleCursorPanning,this,!1),e.events.on("panended",this.handleCursorPanEnd,this,!1),e.events.on("behaviorcanceled",this.handleCursorCanceled,this,!1),e.events.on("hidden",this.handleHideCursor,this,!1),e.zIndex=Number.MAX_SAFE_INTEGER-1,this.tapToActivate&&this.setTapToActivate(this.tapToActivate)))},enumerable:!0,configurable:!0}),i.prototype.handleCursorPositionChange=function(){var e=this.cursor;if(e.visible&&!e.isHiding){var t=this.cursor.xPosition,r=this.cursor.yPosition;this.showSeriesTooltip({x:t,y:r});var a=[],s=e.snapToSeries;if(s&&!e.downPoint){s instanceof is&&(s=[s]);var o=[];De(s,function(u){if(!u.isHidden&&!u.isHiding){var h=u.xAxis,d=u.yAxis;h instanceof dt&&!(h instanceof ii)&&d instanceof dt&&!(d instanceof ii)?(u.dataItems.each(function(f){o.push(f)}),Jr(a,u.yAxis),Jr(a,u.xAxis)):(u.baseAxis==u.xAxis&&(Jr(a,u.yAxis),o.push(h.getSeriesDataItem(u,h.toAxisPosition(t),!0))),u.baseAxis==u.yAxis&&(Jr(a,u.xAxis),o.push(d.getSeriesDataItem(u,d.toAxisPosition(r),!0))))}});var l=this.getClosest(o,t,r);l&&(this.series.each(function(u){var h=l.component;u!=h&&(u.hideTooltip(),u.xAxis!=h.xAxis&&(u.xAxis.hideTooltip(),a.push(u.xAxis)),u.yAxis!=h.yAxis&&(u.yAxis.hideTooltip(),a.push(u.yAxis)))}),l.component.showTooltipAtDataItem(l),e.handleSnap(l.component))}this._seriesPoints=[],this._cursorXPosition!=t&&this.showAxisTooltip(this.xAxes,t,a),this._cursorYPosition!=r&&this.showAxisTooltip(this.yAxes,r,a),this.arrangeTooltips&&this.sortSeriesTooltips(this._seriesPoints),this.legend&&this.legend.afterDraw()}},i.prototype.getClosest=function(e,t,r){var a=1/0,s;return Wd(e,function(o){if(o){var l=o.component.xAxis,u=o.component.yAxis,h=l.positionToCoordinate(l.toGlobalPosition(l.toAxisPosition(t))),d=u.positionToCoordinate(u.toGlobalPosition(u.toAxisPosition(r))),f=o.component.xField,p=o.component.yField;if(l instanceof dt&&!C(o.getValue(f))||u instanceof dt&&!C(o.getValue(p)))return!0;var v=l.positionToCoordinate(l.toGlobalPosition(l.getPositionX(o,f,o.locations[f],"valueX"))),m=u.positionToCoordinate(u.toGlobalPosition(u.getPositionY(o,p,o.locations[p],"valueY"))),x=Math.sqrt(Math.pow(h-v,2)+Math.pow(d-m,2));return x<a&&(a=x,s=o),!0}}),s},i.prototype.handleHideCursor=function(){this.hideObjectTooltip(this.xAxes),this.hideObjectTooltip(this.yAxes),this.hideObjectTooltip(this.series),this._cursorXPosition=void 0,this._cursorYPosition=void 0,this.updateSeriesLegend()},i.prototype.updateSeriesLegend=function(){ue(this.series.iterator(),function(e){e.updateLegendValue()})},i.prototype.hideObjectTooltip=function(e){ue(e.iterator(),function(t){t.cursorTooltipEnabled&&t.hideTooltip(0)})},i.prototype.showSeriesTooltip=function(e){var t=this;if(!e){this.series.each(function(a){a.hideTooltip()});return}var r=[];this.series.each(function(a){if(!(a.xAxis instanceof ii&&a.xAxis.snapTooltip||a.yAxis instanceof ii&&a.yAxis.snapTooltip)){var s=a.showTooltipAtPosition(e.x,e.y);s&&(a.tooltip.setBounds(Gd({x:0,y:0,width:t.pixelWidth,height:t.pixelHeight},t)),r.push({series:a,point:s}))}}),this.arrangeTooltips&&this.sortSeriesTooltips(r)},i.prototype.sortSeriesTooltips=function(e){if(e.length>0){var t=this.cursor;if(t&&C(t.maxTooltipDistance)){var r=Qr({x:t.point.x,y:t.point.y},t),a,s,o=1/0;De(e,function(H){var z=H.series,Z=H.point;if(Z){var _e={x:Z.x,y:Z.y},ve=Math.abs(Mt(_e,r));ve<o&&(s=_e,o=ve,a=z)}});var l=[];a&&(De(e,function(H){if(Math.abs(Mt(H.point,s))<=Math.abs(t.maxTooltipDistance))l.push({series:H.series,point:H.point});else{var z=H.series.tooltipDataItem;z&&De(z.sprites,function(Z){Z.isHover=!1,Z.handleOutReal()}),H.series.hideTooltip(0)}}),t.maxTooltipDistance<0&&(l.length>0&&De(l,function(H){a!=H.series&&H.series.hideTooltip(0)}),l=[{series:a,point:s}])),e=l}var u=Qr({x:-.5,y:-.5},this.plotContainer),h=Qr({x:this.plotContainer.pixelWidth+.5,y:this.plotContainer.pixelHeight+.5},this.plotContainer),d=0,f=[];De(e,function(H){var z=H.point;z&&Np(z,{x:u.x,y:u.y,width:h.x-u.x,height:h.y-u.y})&&(f.push({point:z,series:H.series}),d+=z.y)}),e=f;var p=this.series.getIndex(0),v=!1;p&&p.yAxis&&p.yAxis.renderer.inversed&&(v=!0),v?e.sort(function(H,z){return En(H.point.y,z.point.y)}):(e.sort(function(H,z){return En(z.point.y,H.point.y)}),e.reverse());var m=d/e.length,x=iy({x:0,y:0},this.svgContainer.SVGContainer).y;if(e.length>0){var w=u.y,P=h.y;ad({x:0,y:w},this);var O=!1;if(m>w+(P-w)/2)for(var j=P,M=e.length-1;M>=0;M--){var F=e[M].series,g=F.tooltip,L=e[M].point.y;if(g.setBounds({x:0,y:-x,width:this.pixelWidth,height:j+x}),g.invalid&&g.validate(),g.toBack(),j=Qr({x:0,y:g.label.pixelY-g.pixelY+L-g.pixelMarginTop},g).y,j<-x){O=!0;break}}if(m<=w+(P-w)/2||O)for(var N=w,M=0,ye=e.length;M<ye;
22M++){var F=e[M].series,L=e[M].point.y,g=F.tooltip;g.setBounds({x:0,y:N,width:this.pixelWidth,height:P}),g.invalid&&g.validate(),g.toBack(),N=Qr({x:0,y:g.label.pixelY+g.label.measuredHeight-g.pixelY+L+g.pixelMarginBottom},g).y}}}},i.prototype.showAxisTooltip=function(e,t,r){var a=this;ue(e.iterator(),function(s){(!r||r.indexOf(s)==-1)&&(a.dataItems.length>0||s.dataItems.length>0)&&s.showTooltipAtPosition(t)})},i.prototype.getUpdatedRange=function(e,t){if(e){var r,a,s=e.renderer.inversed;s?(Js(t),r=1-e.end,a=1-e.start):(r=e.start,a=e.end);var o=a-r;return{start:r+t.start*o,end:r+t.end*o}}},i.prototype.handleCursorZoomEnd=function(e){var t=this.cursor,r=t.behavior;if(r=="zoomX"||r=="zoomXY"){var a=t.xRange;a&&this.xAxes.length>0&&(a=this.getUpdatedRange(this.xAxes.getIndex(0),a),a.priority="start",this.zoomAxes(this.xAxes,a))}if(r=="zoomY"||r=="zoomXY"){var s=t.yRange;s&&this.yAxes.length>0&&(s=this.getUpdatedRange(this.yAxes.getIndex(0),s),s.priority="start",this.zoomAxes(this.yAxes,s))}this.handleHideCursor()},i.prototype.handleCursorPanStart=function(e){var t=this.xAxes.getIndex(0);t&&(this._panStartXRange={start:t.start,end:t.end},t.renderer.inversed&&(this._panStartXRange=Js(this._panStartXRange)));var r=this.yAxes.getIndex(0);r&&(this._panStartYRange={start:r.start,end:r.end},r.renderer.inversed&&(this._panStartYRange=Js(this._panStartYRange)))},i.prototype.handleCursorPanEnd=function(e){var t=this.cursor,r=t.behavior;if(this._panEndXRange&&(r=="panX"||r=="panXY")){var a=this._panEndXRange,s=this._panStartXRange,o=0;a.start<0&&(o=a.start),s.end>1?a.end>s.end&&(o=a.end-s.end):a.end>1&&(o=a.end-1),this.zoomAxes(this.xAxes,{start:a.start-o,end:a.end-o},!1,t.snapOnPan),this._panEndXRange=void 0,this._panStartXRange=void 0}if(this._panEndYRange&&(r=="panY"||r=="panXY")){var a=this._panEndYRange,o=0;a.start<0&&(o=a.start),a.end>1&&(o=a.end-1),this.zoomAxes(this.yAxes,{start:a.start-o,end:a.end-o},!1,t.snapOnPan),this._panEndYRange=void 0,this._panStartYRange=void 0}},i.prototype.handleCursorCanceled=function(){this._panEndXRange=void 0,this._panStartXRange=void 0},i.prototype.handleCursorPanning=function(e){var t=this.cursor,r=t.behavior,a=t.maxPanOut;if(this._panStartXRange&&(r=="panX"||r=="panXY")){var s=this._panStartXRange,o=t.xRange,l=this.getCommonAxisRange(this.xAxes),u=s.end-s.start,h=o.start*(l.end-l.start),d=Math.max(-a,h+s.start),f=Math.min(h+s.end,1+a);d<=0&&(f=d+u),f>=1&&(d=f-u);var p={start:d,end:f};this._panEndXRange=p,this.zoomAxes(this.xAxes,p,!1,!1,t.maxPanOut)}if(this._panStartYRange&&(r=="panY"||r=="panXY")){var s=this._panStartYRange,o=t.yRange,l=this.getCommonAxisRange(this.yAxes),u=s.end-s.start,h=o.start*(l.end-l.start),d=Math.max(-a,h+s.start),f=Math.min(h+s.end,1+a);d<=0&&(f=d+u),f>=1&&(d=f-u);var p={start:d,end:f};this._panEndYRange=p,this.zoomAxes(this.yAxes,p,!1,!1,t.maxPanOut)}this.handleHideCursor()},i.prototype.handleYAxisSet=function(e){},i.prototype.handleCursorZoomStart=function(e){},Object.defineProperty(i.prototype,"scrollbarX",{get:function(){return this._scrollbarX},set:function(e){var t=this;this._scrollbarX&&this.removeDispose(this._scrollbarX),this._scrollbarX=e,e&&(this._disposers.push(e),e.parent=this.topAxesContainer,e.shouldClone=!1,e.startGrip.exportable=!1,e.endGrip.exportable=!1,e.toBack(),e.orientation="horizontal",e.events.on("rangechanged",this.handleXScrollbarChange,this,!1),this.events.on("datavalidated",function(){return e.updateThumb(!1)},this,!1),e.adapter.add("positionValue",function(r){var a=t.xAxes.getIndex(0);return a&&(r.value=a.getPositionLabel(a.renderer.inversed?1-r.position:r.position)),r}),e.adapter.add("positionValueDirection",function(r){var a=t.xAxes.getIndex(0);return a&&(r.flipped=a.renderer.inversed),r}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scrollbarY",{get:function(){return this._scrollbarY},set:function(e){var t=this;this._scrollbarY&&this.removeDispose(this._scrollbarY),this._scrollbarY=e,e&&(this._disposers.push(e),e.parent=this.rightAxesContainer,e.startGrip.exportable=!1,e.shouldClone=!1,e.endGrip.exportable=!1,e.toFront(),e.orientation="vertical",e.events.on("rangechanged",this.handleYScrollbarChange,this,
22!1),this.events.on("datavalidated",function(){return e.updateThumb(!1)},this,!1),e.adapter.add("positionValue",function(r){var a=t.yAxes.getIndex(0);return a&&(r.value=a.getPositionLabel(a.renderer.inversed?r.position:1-r.position)),r}),e.adapter.add("positionValueDirection",function(r){var a=t.yAxes.getIndex(0);return a&&(r.flipped=!a.renderer.inversed),r}))},enumerable:!0,configurable:!0}),i.prototype.handleXScrollbarChange=function(e){if(this.inited){var t=e.target,r=t.range;r.start==0&&(r.priority="start"),r.end==1&&(r.priority="end"),r=this.zoomAxes(this.xAxes,r),t.fixRange(r)}},i.prototype.handleYScrollbarChange=function(e){if(this.inited){var t=e.target,r=t.range;r.end==1&&(r.priority="end"),r.start==0&&(r.priority="start"),r=this.zoomAxes(this.yAxes,r),t.fixRange(r)}},i.prototype.zoomAxes=function(e,t,r,a,s,o){var l={start:0,end:1};this.showSeriesTooltip();var u=t;return this.dataInvalid||ue(e.iterator(),function(h){var d=h.maxZoomFactor;if(C(h.minZoomCount)&&(d=d/h.minZoomCount),!(o&&1/(t.end-t.start)>=d)){if(h.zoomable){if(h.renderer.inversed?t=Js(u):t=u,h.hideTooltip(0),a)if(h instanceof _i){var f=h.getCellEndPosition(0)-h.getCellStartPosition(0);t.start=h.roundPosition(t.start+f/2-h.startLocation*f,h.startLocation),t.end=h.roundPosition(t.end-f/2+(1-h.endLocation)*f,h.endLocation)}else{var p=1e-4;t.start=h.roundPosition(t.start+p,0,h.startLocation),t.end=h.roundPosition(t.end+p,0,h.endLocation)}var v=h.zoom(t,r,r,s);h.renderer.inversed&&(v=Js(v)),l=v}}}),l},Object.defineProperty(i.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(e){this.setPropertyValue("maskBullets",e,!0)&&this.bulletsContainer&&(e?this.bulletsContainer.mask=this._bulletMask:this.bulletsContainer.mask=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"arrangeTooltips",{get:function(){return this.getPropertyValue("arrangeTooltips")},set:function(e){this.setPropertyValue("arrangeTooltips",e,!0)},enumerable:!0,configurable:!0}),i.prototype.handleWheel=function(e){var t=this.plotContainer,r=ya(e.point,this.htmlContainer,this.svgContainer.cssScale),a=vn(r,t),s=e.shift.y;this.handleWheelReal(s,this.mouseWheelBehavior,a)},i.prototype.handleHorizontalWheel=function(e){var t=this.plotContainer,r=ya(e.point,this.htmlContainer,this.svgContainer.cssScale),a=vn(r,t);this.handleWheelReal(e.shift.x,this.horizontalMouseWheelBehavior,a)},i.prototype.handleWheelReal=function(e,t,r){if(e!=0){var a=this.plotContainer,s=this.getCommonAxisRange(this.xAxes),o=this.getCommonAxisRange(this.yAxes),l=.1,u=0;if(t=="panX"||t=="panXY"){var h=this.xAxes.getIndex(0),d=!1,f=l;h instanceof _i&&(f=.5/((s.end-s.start)*h.dataItems.length),d=!0),l=Math.max(.2,f);var p=s.end-s.start,v=Math.max(-u,s.start+l*e/100*(s.end-s.start)),m=Math.min(s.end+l*e/100*(s.end-s.start),1+u);v<=0&&(m=v+p),m>=1&&(v=m-p),this.zoomAxes(this.xAxes,{start:v,end:m},void 0,d)}if(t=="panY"||t=="panXY"){var x=this.yAxes.getIndex(0),f=l,d=!1;x instanceof _i&&(f=.5/((s.end-s.start)*x.dataItems.length),d=!0),l=Math.max(.2,f),e*=-1;var w=o.end-o.start,P=Math.max(-u,o.start+l*e/100*(o.end-o.start)),O=Math.min(o.end+l*e/100*(o.end-o.start),1+u);P<=0&&(O=P+w),O>=1&&(P=O-w),this.zoomAxes(this.yAxes,{start:P,end:O},void 0,d)}if(t=="zoomX"||t=="zoomXY"){var j=r.x/a.maxWidth,M=this.xAxes.getIndex(0).toAxisPosition(j),v=Math.max(-u,s.start-l*(s.end-s.start)*e/100*j);v=Math.min(v,M);var m=Math.min(s.end+l*(s.end-s.start)*e/100*(1-j),1+u);m=Math.max(m,M),this.zoomAxes(this.xAxes,{start:v,end:m},void 0)}if(t=="zoomY"||t=="zoomXY"){var F=r.y/a.maxHeight,g=this.yAxes.getIndex(0).toAxisPosition(F),P=Math.max(-u,o.start-l*(o.end-o.start)*e/100*(1-F));P=Math.min(P,g);var O=Math.min(o.end+l*e/100*F*(o.end-o.start),1+u);O=Math.max(O,g),this.zoomAxes(this.yAxes,{start:P,end:O},void 0)}}},Object.defineProperty(i.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(e){this.setPropertyValue("mouseWheelBehavior",e)&&(e!="none"?(this._mouseWheelDisposer=this.plotContainer.events.on("wheel",this.handleWheel,this,
22!1),this._disposers.push(this._mouseWheelDisposer)):this._mouseWheelDisposer&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer.dispose()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"horizontalMouseWheelBehavior",{get:function(){return this.getPropertyValue("horizontalMouseWheelBehavior")},set:function(e){this.setPropertyValue("horizontalMouseWheelBehavior",e)&&(e!="none"?(this._mouseWheelDisposer2=this.plotContainer.events.on("wheel",this.handleHorizontalWheel,this,!1),this._disposers.push(this._mouseWheelDisposer2)):this._mouseWheelDisposer2&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer2.dispose()))},enumerable:!0,configurable:!0}),i.prototype.dataSourceDateFields=function(e){var t=this;return e=n.prototype.dataSourceDateFields.call(this,e),ue(this.series.iterator(),function(r){e=t.populateDataSourceFields(e,r.dataFields,["dateX","dateY","openDateX","openDateY"])}),e},i.prototype.dataSourceNumberFields=function(e){var t=this;return e=n.prototype.dataSourceDateFields.call(this,e),ue(this.series.iterator(),function(r){e=t.populateDataSourceFields(e,r.dataFields,["valueX","valueY","openValueX","openValueY"])}),e},i.prototype.processConfig=function(e){if(e){var t=[],r=[];if(T(e.xAxes)&&Ui(e.xAxes))for(var a=0,s=e.xAxes.length;a<s;a++)if(e.xAxes[a].type){if(T(e.xAxes[a].axisRanges)){for(var o=0,l=e.xAxes[a].axisRanges.length;o<l;o++){var u=e.xAxes[a].axisRanges[o];T(u.date)&&bt(u.date)&&(u.date=this.dateFormatter.parse(u.date)),T(u.endDate)&&bt(u.endDate)&&(u.endDate=this.dateFormatter.parse(u.endDate))}t.push({axisRanges:e.xAxes[a].axisRanges,index:a}),delete e.xAxes[a].axisRanges}}else throw Error("[XYChart error] No type set for xAxes["+a+"].");if(T(e.yAxes)&&Ui(e.yAxes))for(var a=0,s=e.yAxes.length;a<s;a++)if(e.yAxes[a].type){if(T(e.yAxes[a].axisRanges)){for(var o=0,h=e.yAxes[a].axisRanges.length;o<h;o++){var u=e.yAxes[a].axisRanges[o];T(u.date)&&bt(u.date)&&(u.date=this.dateFormatter.parse(u.date)),T(u.endDate)&&bt(u.endDate)&&(u.endDate=this.dateFormatter.parse(u.endDate))}r.push({axisRanges:e.yAxes[a].axisRanges,index:a}),delete e.yAxes[a].axisRanges}}else throw Error("[XYChart error] No type set for yAxes["+a+"].");if(T(e.series)&&Ui(e.series))for(var a=0,s=e.series.length;a<s;a++)e.series[a].type=e.series[a].type||"LineSeries";if(T(e.cursor)&&!T(e.cursor.type)&&(e.cursor.type="XYCursor"),T(e.scrollbarX)&&!T(e.scrollbarX.type)&&(e.scrollbarX.type="Scrollbar"),T(e.scrollbarY)&&!T(e.scrollbarY.type)&&(e.scrollbarY.type="Scrollbar"),n.prototype.processConfig.call(this,e),r.length)for(var a=0,s=r.length;a<s;a++)this.yAxes.getIndex(r[a].index).config={axisRanges:r[a].axisRanges};if(t.length)for(var a=0,s=t.length;a<s;a++)this.xAxes.getIndex(t[a].index).config={axisRanges:t[a].axisRanges}}},i.prototype.configOrder=function(e,t){return e==t?0:e=="scrollbarX"?1:t=="scrollbarX"?-1:e=="scrollbarY"?1:t=="scrollbarY"?-1:e=="cursor"?1:t=="cursor"?-1:e=="series"?1:t=="series"?-1:n.prototype.configOrder.call(this,e,t)},i.prototype.createSeries=function(){return new is},Object.defineProperty(i.prototype,"zoomOutButton",{get:function(){return this._zoomOutButton},set:function(e){var t=this;this._zoomOutButton=e,e&&e.events.on("hit",function(){t.zoomAxes(t.xAxes,{start:0,end:1}),t.zoomAxes(t.yAxes,{start:0,end:1})},void 0,!1)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;e.xAxes.each(function(r){var a=t.xAxes.push(r.clone());a.chart=t,a.renderer.chart=t}),e.yAxes.each(function(r){var a=t.yAxes.push(r.clone());a.renderer.chart=t,a.chart=t}),n.prototype.copyFrom.call(this,e),e.cursor&&(this.cursor=e.cursor.clone()),e.scrollbarX&&(this.scrollbarX=e.scrollbarX.clone()),e.scrollbarY&&(this.scrollbarY=e.scrollbarY.clone())},i.prototype.disposeData=function(){n.prototype.disposeData.call(this);var e=this.scrollbarX;e&&e instanceof Ya&&e.scrollbarChart.disposeData();var t=this.scrollbarY;t&&t instanceof Ya&&t.scrollbarChart.disposeData(),this.xAxes.each(function(r){r instanceof _i&&r.disposeData()}),this.yAxes.each(function(r){r instanceof _i&&r.disposeData()})},i.prototype.addData=function(e,t){this.scrollbarX instanceof Ya&&this.addScrollbarData(this.scrollbarX,t),this.scrollbarY instanceof Ya&&this.addScrollbarData(this.scrollbarY,t),n.prototype.addData.call(this,e,t)},i.prototype.addScrollbarData=function(e,t){var r=e.scrollbarChart;r._parseDataFrom=r.data.length,r.invalidateData()},i.prototype.removeScrollbarData=function(e,t){var r=e.scrollbarChart;if(C(t)){for(;t>0;){var a=this.dataItems.getIndex(0);a&&r.dataItems.remove(a),r.dataUsers.each(function(s){var o=s.dataItems.getIndex(0);o&&s.dataItems.remove(o)}),r._parseDataFrom--,t--}
22r.invalidateData()}},i.prototype.removeData=function(e){this.scrollbarX instanceof Ya&&this.removeScrollbarData(this.scrollbarX,e),this.scrollbarY instanceof Ya&&this.removeScrollbarData(this.scrollbarY,e),n.prototype.removeData.call(this,e)},i.prototype.setTapToActivate=function(e){n.prototype.setTapToActivate.call(this,e),this.cursor&&(this.cursor.interactions.isTouchProtected=e,this.plotContainer.interactions.isTouchProtected=e)},i.prototype.handleTapToActivate=function(){n.prototype.handleTapToActivate.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!1,this.plotContainer.interactions.isTouchProtected=!1)},i.prototype.handleTapToActivateDeactivation=function(){n.prototype.handleTapToActivateDeactivation.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!0,this.plotContainer.interactions.isTouchProtected=!0)},i}(nc);V.registeredClasses.XYChart=oa;qi.push({relevant:lr.maybeXS,state:function(n,i){if(n instanceof oa&&n.scrollbarX){var e=n.states.create(i),t=n.scrollbarX.states.create(i);return t.properties.disabled=!0,e}return null}});qi.push({relevant:lr.maybeXS,state:function(n,i){if(n instanceof oa&&n.scrollbarY){var e=n.states.create(i),t=n.scrollbarY.states.create(i);return t.properties.disabled=!0,e}return null}});var uc=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="LineSeriesSegment",e.isMeasured=!1,e.interactionsEnabled=!1,e.layout="none";var t=e.createChild(ot);e.fillSprite=t,t.shouldClone=!1,t.setElement(e.paper.add("path")),t.isMeasured=!1,e._disposers.push(t);var r=e.createChild(ot);return e.strokeSprite=r,r.shouldClone=!1,r.fill=qe(),r.setElement(e.paper.add("path")),r.isMeasured=!1,e._disposers.push(r),e}return i.prototype.drawSegment=function(e,t,r,a){if(!this.disabled)if(e.length>0&&t.length>0&&C(e[0].x)&&C(e[0].y)){var s=Oe({x:e[0].x-.2,y:e[0].y-.2})+Oe(e[0]),o=this.series;o.smoothing=="bezier"?s+=new Oa(r,a).smooth(e):o.smoothing=="monotoneX"?s+=new Qf({closed:!1}).smooth(e):o.smoothing=="monotoneY"&&(s+=new Jf({closed:!1}).smooth(e)),this.strokeOpacity==0||this.strokeSprite.strokeOpacity==0||(this.strokeSprite.path=s),(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&C(t[0].x)&&C(t[0].y)&&(s+=ie(t[0]),o.smoothing=="bezier"?s+=new Oa(r,a).smooth(t):o.smoothing=="monotoneX"?s+=new Qf({closed:!1}).smooth(t):o.smoothing=="monotoneY"&&(s+=new Jf({closed:!1}).smooth(t)),s+=ie(e[0]),s+=Ai(),this.fillSprite.path=s)}else this.fillSprite.path="",this.strokeSprite.path=""},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e);var t=this.strokeSprite;Ci(e,t.properties,vi),t.events.copyFrom(e.strokeSprite.events),t.fillOpacity=0;var r=this.fillSprite;Ci(e,r.properties,vi),r.events.copyFrom(e.fillSprite.events),r.strokeOpacity=0},i}(Ee);V.registeredClasses.LineSeriesSegment=uc;var xx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="DurationAxisDataItem",e.applyTheme(),e}return i}(Su),yd=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._baseUnit="second",e.className="DurationAxis",e.setPropertyValue("maxZoomFactor",1e6),e.applyTheme(),e}return i.prototype.formatLabel=function(e,t){return this.durationFormatter.format(e,t||this.axisDurationFormat)},i.prototype.adjustMinMax=function(e,t,r,a,s){var o,l,u,h=this.baseUnit;if(this.setPropertyValue("maxPrecision",0),h=="millisecond"||h=="second"||h=="minute"||h=="hour"){a<=1&&(a=1),a=Math.round(a);var d=e,f=t;r===0&&(r=Math.abs(t));var p=r/a,v=[60,30,20,15,10,2,1],m=1;h=="hour"&&(v=[24,12,6,4,2,1]);try{for(var x=Fl(v),w=x.next();!w.done;w=x.next()){var P=w.value;if(r/P>a){m=P;break}}}catch(L){o={error:L}}finally{try{w&&!w.done&&(l=x.return)&&l.call(x)}finally{if(o)throw o.error}}var O=Math.ceil((t-e)/m/a),j=Math.log(Math.abs(O))*Math.LOG10E,M=Math.pow(10,Math.floor(j))/10,F=O/M,g=Nm(v,F);O=g*M,p=m*O,this.durationFormatter.getValueUnit(p,this.baseUnit),e=Math.floor(e/p)*p,t=Math.ceil(t/p)*p,s&&(e-=p,e<0&&d>=0&&(e=0),t+=p,t>0&&f<=0&&(t=0)),u={min:e,max:t,step:p}}else u=n.prototype.adjustMinMax.call(this,e,t,r,a,s);return this.axisDurationFormat=this.durationFormatter.getFormat(u.step,u.max,this.baseUnit),u},Object.defineProperty(i.prototype,"tooltipDurationFormat",{get:function(){return this._tooltipDurationFormat},set:function(e){this._tooltipDurationFormat=e},enumerable:!0,configurable:!0}),i.prototype.getTooltipText=function(e){var t=de(this.positionToValue(e),this._stepDecimalPlaces),r=this.formatLabel(t,this.tooltipDurationFormat);return this._adapterO?this._adapterO.apply("getTooltipText",r):r},Object.defineProperty(i.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(e){this._baseUnit!=e&&(this._baseUnit=e,this.durationFormatter.baseUnit=e,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.baseUnit=e.baseUnit},i}(dt);V.registeredClasses.DurationAxis=yd;V.registeredClasses.DurationAxisDataItem=xx;var Tu=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="LineSeriesDataItem",e}return i}(Ou),hc=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.minDistance=.5,e.segments=new fi(e.createSegment()),e.segments.template.applyOnClones=!0,e._disposers.push(new zt(e.segments)),e._disposers.push(e.segments.template),e._segmentsIterator=new Ud(e.segments,function(){return e.segments.create()}),e._segmentsIterator.createNewItems=!0,e.className="LineSeries",e.strokeOpacity=1,e.fillOpacity=0,e.connect=!0,e.tensionX=1,e.tensionY=1,e.autoGapCount=1.1,e.smoothing="bezier",e.segmentsContainer=e.mainContainer.createChild(Ee),e.segmentsContainer.isMeasured=!1,e.bulletsContainer.toFront(),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Line Series"))},i.prototype.createSegment=function(){return new uc},i.prototype.createDataItem=function(){return new Tu},i.prototype.setInitialWorkingValues=function(e){var t=this._yAxis.get(),r=this._xAxis.get();if(this.appeared&&this.visible){var a=this.dataItems.getIndex(e.index-1);if(e.component=this,this.baseAxis==r&&t instanceof dt){var s=t.minZoomed;
22if(a&&(s=a.values.valueY.workingValue),e.setWorkingValue("valueY",s,0),e.setWorkingValue("valueY",e.values.valueY.value),r instanceof ii)e.setWorkingLocation("dateX",e.locations.dateX-1,0),e.setWorkingLocation("dateX",e.locations.dateX);else if(r instanceof yd&&a){var o=e.valueX;e.setWorkingValue("valueX",a.valueX,0),e.setWorkingValue("valueX",o)}}if(this.baseAxis==t&&r instanceof dt){var l=r.minZoomed;if(a&&(l=a.values.valueX.workingValue),e.setWorkingValue("valueX",l,0),e.setWorkingValue("valueX",e.values.valueX.value),t instanceof ii)e.setWorkingLocation("dateY",e.locations.dateX-1,0),e.setWorkingLocation("dateY",e.locations.dateY);else if(t instanceof yd&&a){var o=e.valueY;e.setWorkingValue("valueY",a.valueY,0),e.setWorkingValue("valueY",o)}}}else this.baseAxis==r&&t instanceof dt&&(r instanceof ii&&e.setWorkingLocation("dateX",e.locations.dateX),r instanceof _i&&e.setWorkingLocation("categoryX",e.locations.categoryX)),this.baseAxis==t&&r instanceof dt&&(t instanceof ii&&e.setWorkingLocation("dateY",e.locations.dateY),t instanceof _i&&e.setWorkingLocation("categoryY",e.locations.categoryY))},i.prototype.updateLegendValue=function(e,t){n.prototype.updateLegendValue.call(this,e,t),e&&e.segment&&(this.tooltipColorSource=e.segment)},i.prototype.validate=function(){var e=this;n.prototype.validate.call(this),this.xAxis&&this.yAxis&&(this._segmentsIterator.reset(),this.openSegmentWrapper(this._adjustedStartIndex),ue(this.axisRanges.iterator(),function(t){e.openSegmentWrapper(e._adjustedStartIndex,t)}),ue(this._segmentsIterator.iterator(),function(t){t.__disabled=!0}))},i.prototype.sliceData=function(){for(var e=this.startIndex,t=this.endIndex,r=this.startIndex-1;r>=0;r--){var a=this.dataItems.getIndex(r);if(a&&a.hasValue(this._xValueFields)&&a.hasValue(this._yValueFields)){e=r;break}}this._adjustedStartIndex=this.findAdjustedIndex(e,["stroke","strokeWidth","strokeDasharray","strokeOpacity","fill","fillOpacity","opacity"]);for(var r=this.endIndex,s=this.dataItems.length;r<s;r++){var a=this.dataItems.getIndex(r);if(a&&a.hasValue(this._xValueFields)&&a.hasValue(this._yValueFields)){t=r+1;break}}this._workingStartIndex=e,this._workingEndIndex=t},i.prototype.findAdjustedIndex=function(e,t){var r=this,a=this.propertyFields,s=e;return De(t,function(o){if(T(a[o]))for(var l=s;l>=0;l--){var u=r.dataItems.getIndex(l);if(u&&T(u.properties[o])){e>l&&(e=l);break}}}),e},i.prototype.openSegmentWrapper=function(e,t){var r={index:e,axisRange:t};do r=this.openSegment(r.index,r.axisRange);while(r)},i.prototype.getSegment=function(){var e=this._segmentsIterator.getFirst();return e.series=this,e.isDisposed()?(this.segments.removeValue(e),this.getSegment()):e},i.prototype.openSegment=function(e,t){var r=!1,a=[];e=Math.min(e,this.dataItems.length);var s=Math.min(this._workingEndIndex,this.dataItems.length);this._workingEndIndex=Math.min(this._workingEndIndex,this.dataItems.length);var o,l=!1,u=this.getSegment();u.strokeDasharray=void 0,u.__disabled=!1,t?(u.parent=t.contents,Ci(t.contents,u,vi)):(Ci(this,u,vi),u.filters.clear(),u.parent=this.segmentsContainer),this.group.node.removeAttribute("fill");for(var h=this.connect,d=!1,f=e;f<s;f++){var p=this.dataItems.getIndex(f);if(p.segment=u,p.hasProperties&&(f==e?this.updateSegmentProperties(p.properties,u):l=this.updateSegmentProperties(p.properties,u,!0)),p.hasValue(this._xValueFields)&&p.hasValue(this._yValueFields))this.addPoints(a,p,this.xField,this.yField),d=!0;else{if(f==e)continue;if(!h&&d){o=f;break}}if(o=f,this.baseAxis instanceof ii){var v=this.dataItems.getIndex(f+1);if(v&&this.baseAxis.makeGap(v,p)){r=!0;break}}if(l)break}return this.closeSegment(u,a,e,o,t,r)},i.prototype.addPoints=function(e,t,r,a,s){var o=this.getPoint(t,r,a,t.workingLocations[r],t.workingLocations[a]);s||(t.point=o),e.push(o)},i.prototype.closeSegment=function(e,t,r,a,s,o){var l=[];if(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)for(var u=a;u>=r;u--){var h=this.dataItems.getIndex(u);h.hasValue(this._xValueFields)&&h.hasValue(this._yValueFields)&&this.addPoints(l,h,this.xOpenField,this.yOpenField,!0)}else{var d=this.baseAxis,f=t.length,p=this.xAxis,v=this.yAxis;f>0&&(d==p?(l.push({x:t[f-1].x,y:v.basePoint.y}),l.push({x:t[0].x,y:v.basePoint.y})):(l.push({x:p.basePoint.x,y:t[f-1].y}),l.push({x:p.basePoint.x,y:t[0].y})))}return this.drawSegment(e,t,l),o&&a++,a<this._workingEndIndex-1?{index:a,axisRange:s}:null},i.prototype.drawSegment=function(e,t,r){e.drawSegment(t,r,this.tensionX,this.tensionY)},i.prototype.updateSegmentProperties=function(e,t,r){var a=!1;return $e(e,function(s,o){if(T(o)){var l=t[s],u=void 0;l&&(l.toString?u=l.toString():u=l);var h=void 0;o&&(o.toString?h=o.toString():h=o),l==o||u!=null&&h!=null&&u==h||(r||(t[s]=o),a=!0)}}),a},Object.defineProperty(i.prototype,"connect",{get:function(){return this.getPropertyValue("connect")}
22,set:function(e){this.setPropertyValue("connect",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(e){this.setPropertyValue("tensionX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(e){this.setPropertyValue("tensionY",e,!0)},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(e){var t=this,r=e.pixelWidth,a=e.pixelHeight;e.disposeChildren();var s=e.createChild(pn);if(s.shouldClone=!1,Ci(this,s,vi),s.x2=r,s.y=a/2,s.y2=1e-5,s.visible=!0,this.fillOpacity>0){var o=e.createChild(gu);Ci(this,o,vi),o.width=r,o.height=a,o.y=0,o.strokeOpacity=0,o.visible=!0,s.y=0}var l=e.dataItem;l.color=this.stroke,l.colorOrig=this.fill,Yr(this.bullets.iterator(),function(u){if(u instanceof Ln&&!u.copyToLegendMarker)return!1;var h=!1;if(u instanceof Ee&&ue(u.children.iterator(),function(f){if(f instanceof br)return h=!0,!0}),!h){var d=u.clone();return d.parent=e,d.isMeasured=!0,d.tooltipText=void 0,d.x=r/2,t.fillOpacity>0?d.y=0:d.y=a/2,d.visible=!0,T(d.fill)||(d.fill=t.fill),T(d.stroke)||(d.stroke=t.stroke),!1}})},i.prototype.disposeData=function(){n.prototype.disposeData.call(this),this.segments.clear()},Object.defineProperty(i.prototype,"autoGapCount",{get:function(){return this.getPropertyValue("autoGapCount")},set:function(e){this.setPropertyValue("autoGapCount",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"smoothing",{get:function(){return this.getPropertyValue("smoothing")},set:function(e){this.setPropertyValue("smoothing",e,!0)},enumerable:!0,configurable:!0}),i}(is);V.registeredClasses.LineSeries=hc;V.registeredClasses.LineSeriesDataItem=Tu;var Wy=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="RadarSeriesDataItem",e.setLocation("dateX",0,0),e.setLocation("dateY",0,0),e.setLocation("categoryX",0,0),e.setLocation("categoryY",0,0),e.applyTheme(),e}return i}(Tu),By=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="RadarSeries",e.connectEnds=!0,e.applyTheme(),e}return i.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),n.prototype.validate.call(this)},i.prototype.createDataItem=function(){return new Wy},i.prototype.getPoint=function(e,t,r,a,s,o,l){o||(o="valueX"),l||(l="valueY");var u=this.yAxis.getX(e,r,s,l),h=this.yAxis.getY(e,r,s,l),d=Mt({x:u,y:h});d==0&&(d=1e-5);var f=this.xAxis.getAngle(e,t,a,o),p=this.chart.startAngle,v=this.chart.endAngle;if(!(f<p||f>v))return{x:d*xe(f),y:d*be(f)}},i.prototype.addPoints=function(e,t,r,a,s){var o=this.getPoint(t,r,a,t.locations[r],t.locations[a]);o&&e.push(o)},i.prototype.getMaskPath=function(){var e=this.yAxis.renderer;return Hs(e.startAngle,e.endAngle-e.startAngle,e.pixelRadius,e.pixelInnerRadius)},i.prototype.drawSegment=function(e,t,r){var a=this.yAxis,s=a.renderer;this.connectEnds&&Math.abs(s.endAngle-s.startAngle)==360&&(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)&&(t.push(t[0]),r.length>0&&r.unshift(r[r.length-1])),n.prototype.drawSegment.call(this,e,t,r)},Object.defineProperty(i.prototype,"connectEnds",{get:function(){return this.getPropertyValue("connectEnds")},set:function(e){this.setPropertyValue("connectEnds",e,!0)},enumerable:!0,configurable:!0}),i.prototype.positionBulletReal=function(e,t,r){var a=this.xAxis,s=this.yAxis;(t<a.start||t>a.end||r<s.start||r>s.end)&&(e.visible=!1),e.moveTo(this.xAxis.renderer.positionToPoint(t,r))},i.prototype.setXAxis=function(e){n.prototype.setXAxis.call(this,e),this.updateRendererRefs()},i.prototype.setYAxis=function(e){n.prototype.setYAxis.call(this,e),this.updateRendererRefs()},i.prototype.updateRendererRefs=function(){var e=this.xAxis.renderer,t=this.yAxis.renderer;e.axisRendererY=t},i}(hc);V.registeredClasses.RadarSeries=By;V.registeredClasses.RadarSeriesDataItem=Wy;var zy=function(n){W(i,n);function i(e){var t=n.call(this,e)||this;return t.className="AxisFillCircular",t.element=t.paper.add("path"),t.radiu
22s=pe(100),t.applyTheme(),t}return i.prototype.draw=function(){if(n.prototype.draw.call(this),!(this.__disabled||this.disabled)&&this.axis){var e=this.axis.renderer;this.fillPath=e.getPositionRangePath(this.startPosition,this.endPosition,this.radius,T(this.innerRadius)?this.innerRadius:e.innerRadius,this.cornerRadius),this.path=this.fillPath}},Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(e){this.setPropertyValue("cornerRadius",e,!0)},enumerable:!0,configurable:!0}),i}(ac);V.registeredClasses.AxisFillCircular=zy;var Uy=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="GridCircular",e.pixelPerfect=!1,e.applyTheme(),e}return Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),i}(Fo);V.registeredClasses.GridCircular=Uy;var ku=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.fdx=0,e.fdy=0,e.className="AxisLabelCircular",e.padding(0,0,0,0),e.location=.5,e.locationOnPath=.5,e.radius=0,e.isMeasured=!1,e.applyTheme(),e}return Object.defineProperty(i.prototype,"relativeRotation",{get:function(){return this.getPropertyValue("relativeRotation")},set:function(e){if(this.setPropertyValue("relativeRotation",e,!0),!T(e)){this.rotation=void 0;var t=this.dataItem;t&&t.component&&t.component.invalidateDataItems()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bent",{get:function(){return this.getPropertyValue("bent")},set:function(e){this.setPropertyValue("bent",e,!0),this.setPropertyValue("wrap",!1),this.setPropertyValue("horizontalCenter","none"),this.setPropertyValue("verticalCenter","none"),e?(this.setPropertyValue("dx",0),this.setPropertyValue("dy",0),this.setPropertyValue("x",0),this.setPropertyValue("y",0),this.setPropertyValue("rotation",0),this.fdx=0,this.fdy=0,this.textAlign="middle"):this.textPathElement&&(this.textPathElement.dispose(),this.textPathElement=void 0)},enumerable:!0,configurable:!0}),i.prototype.pixelRadius=function(e){var t=1;return this.inside&&(t=-1),ri(this.radius,e)*t},i.prototype.pixelRadiusY=function(e,t){var r=1;this.inside&&(r=-1);var a=this.radius;return C(a)?(a*=t/e,ri(a,e)*r):ri(a,t)*r},i.prototype.fixPosition=function(e,t,r,a,s){C(r)||(r=t),C(a)||(a=0),C(s)||(s=0);var o={x:t*xe(e),y:r*be(e)};this.invalid&&this.validate();var l=!1,u=this.radius;(u instanceof mt&&u.value<0||u<0)&&(l=!0);var h=this.relativeRotation,d=this.pixelRadius(t);if(this.bent){var f={x:(t+d)*xe(e+180),y:(r+d*r/t)*be(e+180)};this.path=Oe(f)+Li(e+180,360,t+d,r+d*r/t),this.textPathElement&&this.textPathElement.attr({startOffset:this.locationOnPath*100+"%"});return}if(C(h)){this.horizontalCenter="none",this.verticalCenter="none",e=Tn(e,-180,180);var p=this.bbox.width,v=this.bbox.height,m=this.pixelPaddingBottom,x=this.pixelPaddingTop,w=this.pixelPaddingLeft,P=this.pixelPaddingRight;e>90||e<-90?h==-90&&(h=90,p=0):(h==-90&&(v=-v),h==90&&(h=-90,p=-w-P,v=-v-x-m)),this.rotation=h+e+90;var O=be(h)/2,j=xe(h)/2,M=this.rotation;this.dx=v*O*be(M)-p*j*xe(M),this.dy=-v*O*xe(M)-p*j*be(M),this.inside?e>90||e<-90?d-=(m+x)*xe(h)+(w+P)*be(h):d+=(m+this.bbox.height+x)*xe(h)+(w+P+this.bbox.width)*be(h):d+=(v+m+x)*xe(h)+(p+w+P)*be(h),o.x+=xe(e)*d,o.y+=be(e)*d*r/t}else this.horizontalCenter="middle",this.verticalCenter="middle",l?(this.dx=0,this.dy=0,o.x=(t+d)*xe(e),o.y=(r+d*r/t)*be(e)):(this.dy=this._measuredHeight/2*be(e),this.dx=this._measuredWidth/2*xe(e),o.x+=xe(e)*d,o.y+=be(e)*d*r/t);o.x+=a,o.y+=s,this.fdx=this.dx,this.fdy=this.dy,this.moveTo(o)},i}(sc);V.registeredClasses.AxisLabelCircular=ku;var Xy=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.pixelRadiusReal=0,e.layout="none",e.className="AxisRendererCircular",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.useChartAngles=!0,e.radius=pe(100),e.isMeasured=!1,e.grid.template.location=0,e.labels.template.location=0,e.labels.template.radius=15,e.ticks.template.location=0,e.ticks.template.pixelPerfect=!1,e.tooltipLocation=0,e.line.strokeOpacity=0,e.a
22pplyTheme(),e}return i.prototype.setAxis=function(e){var t=this;n.prototype.setAxis.call(this,e),e.isMeasured=!1;var r=e.tooltip;r.adapter.add("dx",function(a,s){var o=vn({x:s.pixelX,y:s.pixelY},t);return t.pixelRadius*Math.cos(Math.atan2(o.y,o.x))-o.x}),r.adapter.add("dy",function(a,s){var o=vn({x:s.pixelX,y:s.pixelY},t);return t.pixelRadius*Math.sin(Math.atan2(o.y,o.x))-o.y})},i.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),n.prototype.validate.call(this)},Object.defineProperty(i.prototype,"axisLength",{get:function(){return 2*Math.PI*this.pixelRadius},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return Bi(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){var e=this.chart,t=this.getPropertyValue("innerRadius");if(e){if(!T(t))t=e.innerRadius,t instanceof mt&&e&&(t=pe(t.value*e.innerRadiusModifyer*100));else if(t instanceof mt&&e){var r=e.mr,a=t.value;a=Math.max(r*a,r-Math.min(e.plotContainer.innerHeight,e.plotContainer.innerWidth))/r,t=pe(a*100)}return t}},set:function(e){this.setPercentProperty("innerRadius",e,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"useChartAngles",{get:function(){return this.getPropertyValue("useChartAngles")},set:function(e){this.setPropertyValue("useChartAngles",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return Bi(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e,t){C(t)||(t=1);var r=this.positionToCoordinate(e),a=this.startAngle+(this.endAngle-this.startAngle)*r/this.axisLength,s=this.pixelRadius,o=this.pixelInnerRadius;if(this.axisRendererY){var l=ke(this.axisRendererY.positionToCoordinate(t),0,1/0);l==0&&(l=1e-6);var u={x:l*xe(a),y:l*be(a)};return u}return{x:xe(a)*o+(s-o)*xe(a)*t,y:be(a)*o+(s-o)*be(a)*t}},i.prototype.positionToAngle=function(e){var t=this.axis,r=(this.endAngle-this.startAngle)/(t.end-t.start),a;return t.renderer.inversed?a=this.startAngle+(t.end-e)*r:a=this.startAngle+(e-t.start)*r,de(a,3)},i.prototype.angleToPosition=function(e){var t=this.axis,r=(this.endAngle-this.startAngle)/(t.end-t.start),a;return t.renderer.inversed?a=t.end-(e-this.startAngle)/r:a=(e-this.startAngle)/r+t.start,de(a,5)},i.prototype.updateAxisLine=function(){var e=this.pixelRadius,t=this.startAngle,r=this.endAngle,a=xt(360,r-t);this.line.path=Oe({x:e*xe(t),y:e*be(t)})+Li(t,a,e,e)},i.prototype.updateGridElement=function(e,t,r){t=t+(r-t)*e.location;var a=this.positionToPoint(t);if(C(a.x)&&C(a.y)&&e.element){var s=ga*Math.atan2(a.y,a.x),o=Bi(T(e.radius)?e.radius:pe(100),this.pixelRadius),l=Bi(e.innerRadius,this.pixelRadius);e.zIndex=0;var u=Bi(C(l)?l:this.innerRadius,this.pixelRadiusReal,!0);C(u)||(u=0),e.path=Oe({x:u*xe(s),y:u*be(s)})+ie({x:o*xe(s),y:o*be(s)})}this.toggleVisibility(e,t,0,1)},i.prototype.updateTickElement=function(e,t,r){t=t+(r-t)*e.location;var a=this.positionToPoint(t);if(e.element){var s=this.pixelRadius,o=ga*Math.atan2(a.y,a.x),l=e.length;e.inside&&(l=-l),e.zIndex=1,e.path=Oe({x:s*xe(o),y:s*be(o)})+ie({x:(s+l)*xe(o),y:(s+l)*be(o)})}this.toggleVisibility(e,t,0,1)},i.prototype.updateBullet=function(e,t,r){var a=.5;e instanceof $o&&(a=e.location),t=t+(r-t)*a;var s=this.positionToPoint(t),o=this.pixelRadius,l=ga*Math.atan2(s.y,s.x);s={x:o*xe(l),y:o*be(l)},this.positionItem(e,s),this.toggleVisibility(e,t,0,1)},i.prototype.updateLabelElement=function(e,t,r,a){T(a)||(a=e.location),t=t+(r-t)*a,e.fixPosition(this.positionToAngle(t),this.pixelRadius),e.zIndex=2,this.toggleVisibility(e,t,this.minLabelPosition,this.maxLabelPosition)},i.prototype.fitsToBounds=function(e){return!0},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")}
22,set:function(e){this.setPropertyValue("startAngle",e)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),i.prototype.getPositionRangePath=function(e,t,r,a,s){var o="";if(C(e)&&C(t)){T(r)||(r=this.radius),e=st(e,this.axis.start),t=xt(t,this.axis.end),t<e&&(t=e);var l=Bi(r,this.pixelRadius),u=Bi(a,this.pixelRadius,!0),h=this.positionToAngle(e),d=this.positionToAngle(t),f=d-h;o=Hs(h,f,l,u,l,s)}return o},i.prototype.createGrid=function(){return new Uy},i.prototype.createFill=function(e){return new zy(e)},i.prototype.createLabel=function(){return new ku},i.prototype.pointToPosition=function(e){var t=Tn(tr(e),this.startAngle,this.endAngle);return this.coordinateToPosition((t-this.startAngle)/360*this.axisLength)},i}(Du);V.registeredClasses.AxisRendererCircular=Xy;var Gy=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._chart=new Ni,e.pixelRadiusReal=0,e.className="AxisRendererRadial",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.minGridDistance=30,e.gridType="circles",e.axisAngle=-90,e.isMeasured=!1,e.layout="none",e.radius=pe(100),e.line.strokeOpacity=0,e.labels.template.horizontalCenter="middle",e._disposers.push(e._chart),e.applyTheme(),e}return i.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),n.prototype.validate.call(this)},Object.defineProperty(i.prototype,"axisLength",{get:function(){return this.pixelRadius-this.pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return Bi(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){var e=this.chart,t=this.getPropertyValue("innerRadius");if(e){if(!T(t))t=e.innerRadius,t instanceof mt&&e&&(t=pe(t.value*e.innerRadiusModifyer*100));else if(t instanceof mt&&e){var r=e.mr,a=t.value;a=Math.max(r*a,r-Math.min(e.plotContainer.innerHeight,e.plotContainer.innerWidth))/r,t=pe(a*100)}}return t},set:function(e){this.setPercentProperty("innerRadius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return Bi(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e,t){var r=ke(this.positionToCoordinate(e),0,1/0);return{x:r*xe(this.axisAngle),y:r*be(this.axisAngle)}},i.prototype.updateAxisLine=function(){this.line.path=Oe({x:this.pixelInnerRadius*xe(this.axisAngle),y:this.pixelInnerRadius*be(this.axisAngle)})+ie({x:this.pixelRadius*xe(this.axisAngle),y:this.pixelRadius*be(this.axisAngle)});var e=this.axis.title;e.valign="none",e.horizontalCenter="middle",e.verticalCenter="bottom",e.y=-this.axisLength/2;var t=90;this.opposite?this.inside||(t=-90):this.inside&&(t=-90),e.rotation=t},i.prototype.updateGridElement=function(e,t,r){t=t+(r-t)*e.location;var a=this.positionToPoint(t),s,o=Mt(a),l=this.startAngle,u=this.endAngle,h=this.chart;if(C(o)&&e.element&&h){var d=h.xAxes.getIndex(0),f=0,p=h.series.getIndex(0);if(p&&(f=p.dataItems.length),this.gridType=="polygons"&&f>0&&p&&d&&d instanceof _i){var v=d.renderer.grid.template.location,m=d.getAngle(p.dataItems.getIndex(0),"categoryX",v);s=Oe({x:o*xe(m),y:o*be(m)});for(var x=1;x<f;x++)m=d.getAngle(p.dataItems.getIndex(x),"categoryX",v),s+=ie({x:o*xe(m),y:o*be(m)});m=d.getAngle(p.dataItems.getIndex(f-1),"categoryX",d.renderer.cellEndLocation),s+=ie({x:o*xe(m),y:o*be(m)})}else s=Oe({x:o*xe(l),y:o*be(l)})+Li(l,u-l,o,o);e.path=s}this.toggleVisibility(e,t,0,1)},i.prototype.updateLabelElement=function(e,t,r,a){T(a)||(a=e.location),t=t+(r-t)*a;var s=this.positionToPoint(t);this.positionItem(e,s),this.toggleVisibility(e,t,this.minLabelPosition,this.maxLabelPosition)},i.prototype.updateBaseGridElement=function(){},i.prototype.fitsToBounds=function(e){return!0},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")}
22,set:function(e){this.setPropertyValue("startAngle",e)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axisAngle",{get:function(){return this.getPropertyValue("axisAngle")},set:function(e){this.setPropertyValue("axisAngle",Ka(e)),this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"gridType",{get:function(){var e=this.chart.xAxes.getIndex(0);return e instanceof _i?this.getPropertyValue("gridType"):"circles"},set:function(e){this.setPropertyValue("gridType",e,!0)},enumerable:!0,configurable:!0}),i.prototype.getPositionRangePath=function(e,t){var r=this.pixelInnerRadius,a=this.axisLength+r,s=ke(this.positionToCoordinate(e),r,a),o=ke(this.positionToCoordinate(t),r,a),l=this.startAngle,u=this.endAngle,h=u-l,d,f=this.chart,p=f.xAxes.getIndex(0),v=f.series.getIndex(0),m=0;if(v&&(m=v.dataItems.length),this.gridType=="polygons"&&m>0&&v&&p&&p instanceof _i){var x=p.renderer.grid.template.location,w=p.getAngle(v.dataItems.getIndex(0),"categoryX",x);d=Oe({x:o*xe(w),y:o*be(w)});for(var P=1;P<m;P++)w=p.getAngle(v.dataItems.getIndex(P),"categoryX",x),d+=ie({x:o*xe(w),y:o*be(w)});w=p.getAngle(v.dataItems.getIndex(m-1),"categoryX",p.renderer.cellEndLocation),d+=ie({x:o*xe(w),y:o*be(w)}),d+=Oe({x:s*xe(w),y:s*be(w)});for(var P=m-1;P>=0;P--)w=p.getAngle(v.dataItems.getIndex(P),"categoryX",x),d+=ie({x:s*xe(w),y:s*be(w)})}else d=Hs(l,h,o,s);return d},i.prototype.updateBreakElement=function(e){var t=e.startLine,r=e.endLine,a=e.fillShape,s=e.startPoint,o=e.endPoint;t.radius=Math.abs(s.y),r.radius=Math.abs(o.y),a.radius=Math.abs(o.y),a.innerRadius=Math.abs(s.y)},i.prototype.createBreakSprites=function(e){e.startLine=new Tl,e.endLine=new Tl,e.fillShape=new Tl},i.prototype.updateTooltip=function(){var e=this.axis;if(e){var t=4e3,r=-4e3,a=-4e3,s=t*2,o=t*2,l=this.axisAngle;l<0&&(l+=360);var u="vertical";(l>45&&l<135||l>225&&l<315)&&(u="horizontal"),this.axis.updateTooltip(u,{x:r,y:a,width:s,height:o})}},i.prototype.updateTickElement=function(e,t,r){t=t+(r-t)*e.location;var a=this.positionToPoint(t);if(e.element){var s=Ka(this.axisAngle+90);s/90!=Math.round(s/90)?e.pixelPerfect=!1:e.pixelPerfect=!0;var o=-e.length;e.inside&&(o*=-1),e.path=Oe({x:0,y:0})+ie({x:o*xe(s),y:o*be(s)})}this.positionItem(e,a),this.toggleVisibility(e,t,0,1)},i.prototype.updateBullet=function(e,t,r){var a=.5;e instanceof $o&&(a=e.location),t=t+(r-t)*a;var s=this.positionToPoint(t);this.positionItem(e,s),this.toggleVisibility(e,t,0,1)},i.prototype.positionToCoordinate=function(e){var t,r=this.axis,a=r.axisFullLength,s=this.pixelInnerRadius;return r.renderer.inversed?t=(r.end-e)*a+s:t=(e-r.start)*a+s,de(t,1)},i.prototype.pointToPosition=function(e){var t=Mt(e)-this.pixelInnerRadius;return this.coordinateToPosition(t)},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){this._chart.set(e,null)},enumerable:!0,configurable:!0}),i}(gn);V.registeredClasses.AxisRendererRadial=Gy;var _x=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="RadarChartDataItem",e.applyTheme(),e}return i}(lc),$y=function(n){W(i,n);function i(){var e=n.call(this)||this;e._axisRendererX=Xy,e._axisRendererY=Gy,e.innerRadiusModifyer=1,e.mr=1,e.className="RadarChart",e.startAngle=-90,e.endAngle=270,e.radius=pe(80),e.innerRadius=0;var t=e.plotContainer.createChild(Ee);return t.shouldClone=!1,t.layout="absolute",t.align="center",t.valign="middle",e.seriesContainer.parent=t,e.radarContainer=t,e.bulletsContainer.parent=t,e.axisBulletsContainer=t,e._cursorContainer=t,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e._bulletMask=t.createChild(as),e._bulletMask.shouldClone=!1,e._bulletMask.element=e.paper.add("path"),e._bulletMask.opacity=0,e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Radar chart"))},i.prototype.processAxis=function(e){n.prototype.processAxis.call(this,e);var t=e.renderer;t.gridContainer.parent=t,t.breakContainer.parent=t,e.parent=this.radarContainer,t.toBack()}
22,i.prototype.handleXAxisRangeChange=function(){n.prototype.handleXAxisRangeChange.call(this),ue(this.yAxes.iterator(),function(e){e.invalidate()})},i.prototype.handleYAxisRangeChange=function(){n.prototype.handleYAxisRangeChange.call(this),ue(this.xAxes.iterator(),function(e){e.invalidate()})},i.prototype.processConfig=function(e){if(e&&(T(e.cursor)&&!T(e.cursor.type)&&(e.cursor.type="RadarCursor"),T(e.series)&&Ui(e.series)))for(var t=0,r=e.series.length;t<r;t++)e.series[t].type=e.series[t].type||"RadarSeries";n.prototype.processConfig.call(this,e)},i.prototype.beforeDraw=function(){n.prototype.beforeDraw.call(this);var e=this.plotContainer,t=In(this.startAngle,this.endAngle,1),r={x:0,y:0,width:0,height:0},a=e.innerWidth/t.width,s=e.innerHeight/t.height,o=this.innerRadius;if(o instanceof mt){var l=o.value,u=Math.min(a,s);this.mr=u,l=Math.max(u*l,u-Math.min(e.innerHeight,e.innerWidth))/u,r=In(this.startAngle,this.endAngle,l),this.innerRadiusModifyer=l/o.value,o=pe(l*100)}t=Yo([t,r]);var h=Math.min(e.innerWidth/t.width,e.innerHeight/t.height),d=Bi(this.radius,h)*2||0,f=d/2,p=this.startAngle,v=this.endAngle;this._pixelInnerRadius=Bi(o,f),this._bulletMask.path=Hs(p,v-p,f,this._pixelInnerRadius),ue(this.xAxes.iterator(),function(x){x.renderer.useChartAngles&&(x.renderer.startAngle=p,x.renderer.endAngle=v),x.width=d,x.height=d,x.renderer.pixelRadiusReal=f}),ue(this.yAxes.iterator(),function(x){x.renderer.startAngle=p,x.renderer.endAngle=v,x.width=d,x.height=d,x.renderer.pixelRadiusReal=f});var m=this.cursor;m&&(m.width=d,m.height=d,m.startAngle=p,m.endAngle=v),this.radarContainer.definedBBox={x:f*t.x,y:f*t.y,width:f*t.width,height:f*t.height},this.radarContainer.validatePosition()},i.prototype.createSeries=function(){return new By},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),i.prototype.updateXAxis=function(e){e&&e.processRenderer()},i.prototype.updateYAxis=function(e){e&&e.processRenderer()},i}(oa);V.registeredClasses.RadarChart=$y;var Ky=function(n){W(i,n);function i(){var e=n.call(this)||this;e._axis=new Ni,e.className="ClockHand";var t=new Ot;e.fill=t.getFor("alternativeBackground"),e.stroke=e.fill;var r=new as;r.radius=5,e.pin=r,e.isMeasured=!1,e.startWidth=5,e.endWidth=1,e.width=pe(100),e.height=pe(100),e.radius=pe(100),e.innerRadius=pe(0);var a=new Cy;return e.hand=a,e._disposers.push(e._axis),e.applyTheme(),e}return i.prototype.validate=function(){n.prototype.validate.call(this);var e=this.hand;e.width=this.pixelWidth;var t=Math.max(this.startWidth,this.endWidth);if(e.height=t,e.leftSide=pe(this.startWidth/t*100),e.rightSide=pe(this.endWidth/t*100),this.axis){var r=this.axis.renderer,a=Bi(this.innerRadius,r.pixelRadius),s=Bi(this.radius,r.pixelRadius);e.x=a,e.y=-t/2,e.width=s-a}},Object.defineProperty(i.prototype,"pin",{get:function(){return this._pin},set:function(e){this._pin&&this.removeDispose(this._pin),e&&(this._pin=e,e.parent=this,this._disposers.push(e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hand",{get:function(){return this._hand},set:function(e){this._hand&&this.removeDispose(this._hand),e&&(this._hand=e,e.parent=this,this._disposers.push(e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")}
22,set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startWidth",{get:function(){return this.getPropertyValue("startWidth")},set:function(e){this.setPropertyValue("startWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endWidth",{get:function(){return this.getPropertyValue("endWidth")},set:function(e){this.setPropertyValue("endWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rotationDirection",{get:function(){return this.getPropertyValue("rotationDirection")},set:function(e){this.setPropertyValue("rotationDirection",e)},enumerable:!0,configurable:!0}),i.prototype.showValue=function(e,t,r){if(this._value=e,e!=null&&(C(t)||(t=0),this.axis)){var a=this.axis.renderer,s=a.positionToAngle(this.axis.anyToPosition(e)),o=this.rotation;this.rotationDirection=="clockWise"&&s<o&&(this.rotation=o-360),this.rotationDirection=="counterClockWise"&&s>o&&(this.rotation=o+360),this.animate({property:"rotation",to:s},t,r)}},Object.defineProperty(i.prototype,"currentPosition",{get:function(){if(this.axis){var e=this.axis.renderer;return e.angleToPosition(this.rotation)}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this._value},set:function(e){this.showValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axis",{get:function(){return this._axis.get()},set:function(e){if(this.axis!=e&&this._axis.set(e,new di([e.events.on("datavalidated",this.updateValue,this,
22!1),e.events.on("datarangechanged",this.updateValue,this,!1),e.events.on("dataitemsvalidated",this.updateValue,this,!1),e.events.on("propertychanged",this.invalidate,this,!1)])),e){var t=e.chart;t&&(this.rotation=t.startAngle)}this.parent=e.renderer,this.zIndex=5},enumerable:!0,configurable:!0}),i.prototype.updateValue=function(){this.value=this.value},i.prototype.processConfig=function(e){e&&T(e.axis)&&bt(e.axis)&&this.map.hasKey(e.axis)&&(e.axis=this.map.getKey(e.axis)),n.prototype.processConfig.call(this,e)},i}(Ee);V.registeredClasses.ClockHand=Ky;(function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="GaugeChartDataItem",e.applyTheme(),e}return i})(_x);var wx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="GaugeChart",e.startAngle=180,e.endAngle=360,e.hands=new fi(new Ky),e.hands.events.on("inserted",e.processHand,e,!1),e._disposers.push(new zt(e.hands)),e._disposers.push(e.hands.template),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Gauge chart"))},i.prototype.processHand=function(e){var t=e.newValue;t.axis||(t.axis=this.xAxes.getIndex(0))},i.prototype.configOrder=function(e,t){return e==t?0:e=="hands"?1:t=="hands"?-1:n.prototype.configOrder.call(this,e,t)},i}($y);V.registeredClasses.GaugeChart=wx;var Mu=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PercentSeriesDataItem",e.applyTheme(),e}return i.prototype.uidAttr=function(){return this.slice.uidAttr()},i.prototype.hide=function(e,t,r,a){return a||(a=["value"]),n.prototype.hide.call(this,e,t,0,a)},i.prototype.setVisibility=function(e,t){t||(e?this.setWorkingValue("value",this.values.value.value,0,0):this.setWorkingValue("value",0,0,0)),n.prototype.setVisibility.call(this,e,t)},i.prototype.show=function(e,t,r){return r||(r=["value"]),n.prototype.show.call(this,e,t,r)},Object.defineProperty(i.prototype,"category",{get:function(){return this.properties.category},set:function(e){this.setProperty("category",e)},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(e){this.component.createLegendMarker(e,this)},Object.defineProperty(i.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,e.label&&(e.label.dataItem=this),e.valueLabel&&(e.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tick",{get:function(){var e=this;if(!this._tick){var t=this.component.ticks.create();this._tick=t,this.addSprite(t),this._disposers.push(t),t.parent=this.component.ticksContainer,this._disposers.push(new Lt(function(){e.component&&e.component.ticks.removeValue(t)})),t.visible=this.visible}return this._tick},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){var e=this;if(!this._label){var t=this.component.labels.create();this.addSprite(t),this._label=t,this._disposers.push(t),t.parent=this.component.labelsContainer,this._disposers.push(new Lt(function(){e.component&&e.component.labels.removeValue(t)})),t.visible=this.visible}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"slice",{get:function(){var e=this;if(!this._slice){var t=this.component,r=t.slices.create();this.addSprite(r),this._slice=r,this._disposers.push(r),r.parent=t.slicesContainer,this._disposers.push(new Lt(function(){t.slices.removeValue(r)})),r.visible=this.visible,t.itemsFocusable()?(T(this.component.role)||(this.component.role="menu"),T(r.role)||(r.role="menuitem"),r.focusable=!0):(T(this.component.role)||(this.component.role="list"),T(r.role)||(r.role="listitem"),r.focusable=!1),r.focusable&&(r.events.on("focus",function(a){r.readerTitle=t.populateString(t.itemReaderText,e)},void 0,!1),r.events.on("blur",function(a){r.readerTitle=""},void 0,!1)),r.hoverable&&(r.events.on("over",function(a){r.readerTitle=t.populateString(t.itemReaderText,e)},void 0,!1),r.events.on("out",function(a){r.readerTitle=""},void 0,!1))}return this._slice},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hiddenInLegend",{get:function(){return this.properties.hiddenInLegend},set:function(e){this.setProperty("hiddenInLegend",e)},enumerable:!0,configurable:!0}),i}(_u),Ko=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="PercentSeries",e._addAllDataItems=!1,e.colors=new Uo,e.colors.step=1,e.isMeasured=!0,e.calculatePercent=!0;var t=e.createChild(Ee);t.shouldClone=!1,t.isMeasured=!1,e.slicesContainer=t;var r=e.createChild(Ee);r.shouldClone=!1,r.isMeasured=!1,r.layout="none",e.ticksContainer=r;var a=e.createChild(Ee);a.shouldClone=!1,a.isMeasured=!1,a.layout="none",e.labelsContainer=a,e.alignLabels=!1,e.bulletsContainer.toFront(),e.skipFocusThreshold=50;var s=e.defaultState;return s.transitionEasing=oy,e.itemReaderText="{category}: {value.percent.formatNumber('#.#p')}",e.applyTheme(),e}
22return i.prototype.createSlice=function(){return new ot},i.prototype.createTick=function(){return new Go},i.prototype.createLabel=function(){return new br},Object.defineProperty(i.prototype,"slices",{get:function(){if(!this._slices){var e=this.createSlice();e.applyOnClones=!0,this._disposers.push(e),this.initSlice(e),this._slices=new fi(e),this._disposers.push(new zt(this._slices))}return this._slices},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ticks",{get:function(){if(!this._ticks){var e=this.createTick();e.applyOnClones=!0,this._disposers.push(e),this.initTick(e),this._ticks=new fi(e),this._disposers.push(new zt(this._ticks))}return this._ticks},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labels",{get:function(){if(!this._labels){var e=this.createLabel();e.applyOnClones=!0,this._disposers.push(e),this.initLabel(e),this._labels=new fi(e),this._disposers.push(new zt(this._labels))}return this._labels},enumerable:!0,configurable:!0}),i.prototype.createDataItem=function(){return new Mu},i.prototype.initSlice=function(e){},i.prototype.initLabel=function(e){e.text="{category}: {value.percent.formatNumber('#.0p')}",e.isMeasured=!1,e.padding(5,5,5,5)},i.prototype.initTick=function(e){},i.prototype.validateDataItems=function(){this.colors.reset(),this.patterns&&this.patterns.reset(),n.prototype.validateDataItems.call(this)},i.prototype.validateDataElement=function(e){var t=e.slice;t&&(t.fill==null?this.patterns?(T(t.stroke)||(t.stroke=this.colors.next()),t.fill=this.patterns.next(),T(t.fillOpacity)&&(t.fill.backgroundOpacity=t.fillOpacity),t.stroke instanceof wt&&(t.fill.stroke=t.stroke,t.fill.fill=t.
22stroke)):t.fill=this.colors.next():this.colors.currentStep+=this.colors.step,t.stroke==null&&(t.stroke=t.fill)),n.prototype.validateDataElement.call(this,e),t&&e.bullets.each(function(r,a){a.fill==null&&(a.fill=t.fill),a.stroke==null&&(a.stroke=t.stroke)}),this.updateLegendValue(e)},i.prototype.validateData=function(){n.prototype.validateData.call(this),this.chart&&this.chart.feedLegend()},i.prototype.arrangeLabels=function(e){for(var t=0,r=e.length;t<r;t++){var a=e[t],s=a.label;if(s){s.invalid&&s.validate();var o=s.measuredHeight;s.visible||(o=0),s.pixelY-o/2<-this.maxHeight/2&&(s.y=-this.maxHeight/2+o/2);var l=this.getNextLabel(t+1,e),u=s.pixelY+o/2;if(l){l.invalid&&l.validate();var h=l.measuredHeight;l.visible||(h=0);var d=l.pixelY;d==null&&(d=0),d-h/2<u&&(l.y=u+h/2)}}}},i.prototype.arrangeLabels2=function(e){for(var t=this.maxHeight/2,r=e.length-1;r>=0;r--){var a=e[r],s=a.label;if(s){s.invalid&&s.validate();var o=s.measuredHeight;s.visible||(o=0),s.pixelY+o/2>t&&(s.y=t-o/2,t=s.y-o/2)}}},i.prototype.getNextLabel=function(e,t){if(t.length>=e){var r=t[e];if(r)return r.label?r.visible?r.label:this.getNextLabel(e+1,t):this.getNextLabel(e+1,t)}},Object.defineProperty(i.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(e){this.setPropertyValue("colors",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(e){this.setPropertyValue("patterns",e,!0)},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(e,t){ue(e.children.iterator(),function(r){var a=t.slice;r.defaultState.properties.fill=a.fill,r.defaultState.properties.stroke=a.stroke,r.defaultState.properties.fillOpacity=a.fillOpacity,r.defaultState.properties.strokeOpacity=a.strokeOpacity,r.fill=a.fill,r.stroke=a.stroke,r.fillOpacity=a.fillOpacity,r.strokeOpacity=a.strokeOpacity,r.fill==null&&(r.__disabled=!0);var s=e.dataItem;s.color=a.fill,s.colorOrig=a.fill,r.addDisposer(a.events.on("propertychanged",function(o){o.property=="fill"&&(r.__disabled=!1,r.isActive||(r.fill=a.fill),r.defaultState.properties.fill=a.fill,s.color=a.fill,s.colorOrig=a.fill),o.property=="stroke"&&(r.isActive||(r.stroke=a.stroke),r.defaultState.properties.stroke=a.stroke),o.property=="strokeOpacity"&&(r.isActive||(r.strokeOpacity=a.strokeOpacity),r.defaultState.properties.strokeOpacity=a.strokeOpacity)},void 0,!1))})},i.prototype.handleSliceScale=function(e){var t=this,r=e.target,a=r.dataItem;a&&a.bullets&&ue(a.bullets.iterator(),function(s){var o=s[1];t.positionBullet(o)})},i.prototype.handleSliceMove=function(e){},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.slices.template.copyFrom(e.slices.template),this.labels.template.copyFrom(e.labels.template),this.ticks.template.copyFrom(e.ticks.template),this.colors=e.colors.clone()},Object.defineProperty(i.prototype,"alignLabels",{get:function(){return this.getPropertyValue("alignLabels")},set:function(e){this.setAlignLabels(e)},enumerable:!0,configurable:!0}),i.prototype.setAlignLabels=function(e){this.setPropertyValue("alignLabels",e,!0)},Object.defineProperty(i.prototype,"ignoreZeroValues",{get:function(){return this.getPropertyValue("ignoreZeroValues")},set:function(e){this.setPropertyValue("ignoreZeroValues",e,!0)},enumerable:!0,configurable:!0}),i.prototype.updateLegendValue=function(e){if(e){var t=e.legendDataItem,r=e.legendSettings;t&&r&&r&&(r.labelText&&(t.label.text=r.labelText),r.itemLabelText&&(t.label.text=r.itemLabelText),r.valueText&&(t.valueLabel.text=r.valueText),r.itemValueText&&(t.valueLabel.text=r.itemValueText))}},i}(wu);V.registeredClasses.PercentSeries=Ko;V.registeredClasses.PercentSeriesDataItem=Mu;qi.push({relevant:lr.maybeXS,state:function(n,i){if(n instanceof Ko){var e=n.states.create(i),t=n.labels.template.states.create(i);t.properties.disabled=!0;var r=n.ticks.template.states.create(i);return r.properties.disabled=!0,e}return null}});var dc=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PercentChartDataItem",e.applyTheme(),e}return i}(Iy),cc=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PercentChart",e.align="none",e.valign="none",e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.applyTheme(),e}return i.prototype.validateData=function(){n.prototype.validateData.call(this),this.feedLegend()},i.prototype.feedLegend=function(){var e=this.legend;if(e){var t=[];ue(this.series.iterator(),function(r){r.hiddenInLegend||ue(r.dataItems.iterator(),function(a){a.hiddenInLegend||(t.push(a),a.legendSettings||(a.legendSettings=r.legendSettings))})}),e.data=t,e.dataFields.name="category"}},i.prototype.createSeries=function(){return new Ko},i.prototype.setLegend=function(e){n.prototype.setLegend.call(this,e),e&&(e.labels.template.text="{category}",e.valueLabels.template.text="{value.percent.formatNumber('#.0p')}",e.itemContainers.template.events.on("over",function(t){var r=t.target.dataItem.dataContext;if(r.visible&&!r.isHiding){var a=r.slice;a.dispatchImmediately("over"),a.isHover=!0,a.interactions.isRealHover=!0}}
22),e.itemContainers.template.events.on("out",function(t){var r=t.target.dataItem.dataContext,a=r.slice;a.dispatchImmediately("out"),a.isHover=!1}))},i}(nc);V.registeredClasses.PercentChart=cc;V.registeredClasses.PercentChartDataItem=dc;var qy=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._label=new Ni,e._slice=new Ni,e.className="PieTick",e.element=e.paper.add("polyline"),e._disposers.push(e._label),e._disposers.push(e._slice),e.applyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this);var e=this.slice,t=this.label,r=e.dataItem.component;if(e&&e.radius>0&&t&&t.text){var a=e.dx+e.slice.dx+e.pixelX+e.ix*e.radius*e.scale,s=e.dy+e.slice.dy+e.pixelY+e.iy*e.radiusY*e.scale,o=void 0,l=void 0,u=void 0,h=void 0;if(r.alignLabels)o=t.pixelX-this.length,l=t.pixelY,u=t.pixelX,h=l,t.horizontalCenter=="right"&&(o+=2*this.length,u=o-this.length);else{var d=t.pixelRadius(e.radius);o=a+d*e.ix,l=s+d*e.iy,u=o,h=l}this.element.attr({points:[a,s,o,l,u,h]})}},Object.defineProperty(i.prototype,"slice",{get:function(){return this._slice.get()},set:function(e){this._slice.set(e,new di([e.events.on("transformed",this.invalidate,this),e.events.on("validated",this.invalidate,this)]))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){return this._label.get()},set:function(e){this._label.set(e,e.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),i}(Go);V.registeredClasses.PieTick=qy;var fc=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PieSeriesDataItem",e.values.radiusValue={},e.applyTheme(),e}return Object.defineProperty(i.prototype,"radiusValue",{get:function(){return this.values.radiusValue.value},set:function(e){this.setValue("radiusValue",e)},enumerable:!0,configurable:!0}),i.prototype.hide=function(e,t,r,a){return n.prototype.hide.call(this,e,t,0,["value","radiusValue"])},i.prototype.show=function(e,t,r){return n.prototype.show.call(this,e,t,["value","radiusValue"])},i}(Mu),pc=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PieSeries",e.alignLabels=!0,e.layout="none",e.labels.template.radius=pe(5),e.addDisposer(e.labels.template.events.on("enabled",e.invalidate,e,!1)),e.applyTheme(),e}return i.prototype.createSlice=function(){return new ts},i.prototype.createTick=function(){return new qy},i.prototype.createLabel=function(){return new ku},i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Pie Slice Series"))},i.prototype.createDataItem=function(){return new fc},i.prototype.initSlice=function(e){e.isMeasured=!1,e.defaultState.properties.scale=1,e.observe("scale",this.handleSliceScale,this),e.observe(["dx","dy","x","y","shiftRadius"],this.handleSliceMove,this),e.tooltipText="{category}: {value.percent.formatNumber('#.#p')} ({value.value})";var t=e.states.create("hover");t.properties.scale=1.05;var r=e.defaultState;r.properties.shiftRadius=0,e.togglable=!0,e.events.on("toggled",function(s){s.target.hideTooltip(),s.target.interactions.lastHitPointer&&s.target.interactions.lastHitPointer.touch&&!s.target.isActive&&(s.target.isHover=!1)});var a=e.states.create("active");a.properties.shiftRadius=.1},i.prototype.validate=function(){this._leftItems=[],this._rightItems=[],this._currentStartAngle=this.startAngle,this._arcRect=In(this.startAngle,this.endAngle),this._maxRadiusPercent=0;for(var e=this.startIndex;e<this.endIndex;e++){var t=this.dataItems.getIndex(e),r=t.values.radiusValue.percent;r>this._maxRadiusPercent&&(this._maxRadiusPercent=r)}n.prototype.validate.call(this),this.alignLabels&&(this.startAngle>this.endAngle?this._rightItems.reverse():this._leftItems.reverse(),this._rightItems.sort(function(a,s){var o=(a.slice.middleAngle+360)%360,l=(s.slice.middleAngle+360)%360;return o>270&&(o-=360),l>270&&(l-=360),o<l?-1:o>l?1:0}),this._leftItems.sort(function(a,s){var o=(a.slice.middleAngle+360)%360,l=(s.slice.middleAngle+360)%360;return o<l?1:o>l?-1:0}),this.arrangeLabels(this._rightItems),this.arrangeLabels2(this._rightItems),this.arrangeLabels(this._leftItems),this.arrangeLabels2(this._leftItems))},i.prototype.validateDataElement=function(e){if(this.pixelRadius>0){this.ignoreZeroValues&&(e.value==0||e.value==null)?e.__disabled=!0:e.__disabled=!1;var t=e.slice;if(t.radius=this.pixelRadius,C(e.radiusValue)&&(t.radius=this.pixelInnerRadius+(this.pixelRadius-this.pixelInnerRadius)*e.values.radiusValue.percent/this._maxRadiusPercent),t.innerRadius instanceof mt||(t.innerRadius=this.pixelInnerRadius),t.startAngle=this._currentStartAngle,t.arc=Math.abs(e.values.value.percent)*(this.endAngle-this.startAngle)/100,!this.labels.template.disabled){var r=e.label,a=e.tick;a.slice=t,a.label=r;var s=(t.middleAngle+360)%360,o=void 0;if(this.alignLabels){var l=r.pixelRadius(t.radius),u=a.length+l;r.dx=0,r.dy=0,r.verticalCenter="middle";var h=this._arcRect;s>
22270||s<=90?(u+=(h.width+h.x)*this.pixelRadius,r.horizontalCenter="left",this._rightItems.push(e)):(u-=h.x*this.pixelRadius,r.horizontalCenter="right",this._leftItems.push(e),u*=-1);var d=t.radius+a.length+l;o={x:u,y:t.iy*d},r.moveTo(o)}else{var f=t.depth;C(f)||(f=0),r.fixPosition(t.middleAngle,t.radius,t.radiusY,0,-f)}}this._currentStartAngle+=t.arc,n.prototype.validateDataElement.call(this,e)}},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return this._pixelRadius},set:function(e){this._pixelRadius!=e&&(this._pixelRadius=e,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},set:function(e){this._pixelInnerRadius!=e&&(this._pixelInnerRadius=e,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startAngle",{get:function(){var e=this.getPropertyValue("startAngle");return C(e)?e:this._startAngleInternal},set:function(e){this.setPropertyValue("startAngle",Ka(e),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){var e=this.getPropertyValue("endAngle");return C(e)?e:this._endAngleInternal},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(e){n.prototype.positionBullet.call(this,e);var t=e.dataItem,r=t.slice,a=e.locationX;C(a)||(a=.5);var s=e.locationY;C(s)||(s=1);var o=r.startAngle+r.arc*a;e.x=s*r.radius*xe(o),e.y=s*r.radiusY*be(o)},i.prototype.handleSliceMove=function(e){if(!this.alignLabels){var t=e.target,r=t.dataItem;if(r){var a=r.label;a&&(a.dx=a.fdx+t.dx+t.pixelX,a.dy=a.fdy+t.dy+t.pixelY)}}},Object.defineProperty(i.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;var e=this.chart;return e?In(e.startAngle,e.endAngle,this.pixelRadius):In(this.startAngle,this.endAngle,this.pixelRadius)},enumerable:!0,configurable:!0}),i}(Ko);V.registeredClasses.PieSeries=pc;V.registeredClasses.PieSeriesDataItem=fc;var Zy=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PieChartDataItem",e.applyTheme(),e}return i}(dc),Qy=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="PieChart",e.innerRadius=0,e.radius=pe(80),e.align="none",e.valign="none",e.startAngle=-90,e.endAngle=270;var t=e.seriesContainer;return t.isMeasured=!0,t.valign="middle",t.align="center",t.layout="absolute",t.width=void 0,t.height=void 0,e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.chartContainer.events.on("maxsizechanged",e.updateRadius,e,!1),e._disposers.push(e.seriesContainer.events.on("positionchanged",function(){e.bulletsContainer.x=e.seriesContainer.x,e.bulletsContainer.y=e.seriesContainer.y})),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Pie chart"))},i.prototype.validateLayout=function(){n.prototype.validateLayout.call(this),this.updateRadius()},i.prototype.handleSeriesAdded=function(e){n.prototype.handleSeriesAdded.call(this,e),this._chartPixelRadius=void 0,this.updateSeriesAngles()},i.prototype.updateSeriesAngles=function(){var e=this;this.series.each(function(t){t._startAngleInternal=e.startAngle,t._endAngleInternal=e.endAngle})},i.prototype.updateRadius=function(){var e=this.chartContainer,t=In(this.startAngle,this.endAngle,1),r={x:0,y:0,width:0,height:0},a=this.innerRadius;a instanceof mt&&(r=In(this.startAngle,this.endAngle,a.value)),t=Yo([t,r]);var s=Math.min(e.innerWidth/t.width,e.innerHeight/t.height);C(s)||(s=0);var o=Bi(this.radius,s),l=Bi(this.innerRadius,s),u=(o-l)/this.series.length;(o!=this._chartPixelRadius||l!=this._chartPixelInnerRadius)&&(this._chartPixelRadius=o,this._chartPixelInnerRadius=l,ue(Za(this.series.iterator()),function(h){var d=h[0],f=h[1],p=l+Bi(f.radius,o-l),v=l+Bi(f.innerRadius,o-l);C(p)||(p=l+u*(d+1)),C(v)||(v=l+u*d),f.pixelRadius=p,f.pixelInnerRadius=v}),this.seriesContainer.definedBBox={x:o*t.x,y:o*t.y,width:o*t.width,height:o*t.height},this.seriesContainer.invalidateLayout())},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")}
22,set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),i.prototype.createSeries=function(){return new pc},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),i}(cc);V.registeredClasses.PieChart=Qy;V.registeredClasses.PieChartDataItem=Zy;var Jy=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PieSeries3DDataItem",e.values.depthValue={},e.applyTheme(),e}return Object.defineProperty(i.prototype,"depthValue",{get:function(){return this.values.depthValue.value},set:function(e){this.setValue("depthValue",e)},enumerable:!0,configurable:!0}),i}(fc),ev=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PieSeries3D",e.applyTheme(),e}return i.prototype.createDataItem=function(){return new Jy},i.prototype.createSlice=function(){return new ux},i.prototype.validateDataElement=function(e){var t=e.slice,r=this.depth;C(r)||(r=this.chart.depth);var a=e.values.depthValue.percent;C(a)||(a=100),t.depth=a*r/100;var s=this.angle;C(s)||(s=this.chart.angle),t.angle=s,n.prototype.validateDataElement.call(this,e)},i.prototype.validate=function(){n.prototype.validate.call(this);for(var e=this._workingStartIndex;e<this._workingEndIndex;e++){var t=this.dataItems.getIndex(e),r=t.slice,a=r.startAngle;a>=-90&&a<90?r.toFront():a>=90&&r.toBack()}},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e)},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(e){n.prototype.positionBullet.call(this,e);var t=e.dataItem,r=t.slice;e.y=e.pixelY-r.depth},i}(pc);V.registeredClasses.PieSeries3D=ev;V.registeredClasses.PieSeries3DDataItem=Jy;(function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PieChart3DDataItem",e.applyTheme(),e}return i})(Zy);var Px=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PieChart3D",e.depth=20,e.angle=10,e.applyTheme(),e}return Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){e=ke(e,0,90),this.setPropertyValue("angle",e)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),i.prototype.createSeries=function(){return new ev},i}(Qy);V.registeredClasses.PieChart3D=Px;var Cx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="SlicedChartDataItem",e.applyTheme(),e}return i}(dc),Dx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="SlicedChart",e.seriesContainer.layout="horizontal",e.padding(15,15,15,15),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Sliced chart"))},i.prototype.validate=function(){n.prototype.validate.call(this)},i}(cc);V.registeredClasses.SlicedChart=Dx;V.registeredClasses.SlicedChartDataItem=Cx;var Au=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.legendSettings=new Fy,e.className="FlowDiagramNode",e.isMeasured=!1,new Ot,e.draggable=!0,e.inert=!0,e.setStateOnChildren=!0,e.events.on("positionchanged",e.invali
22dateLinks,e,!1),e.events.on("sizechanged",e.invalidateLinks,e,!1),e}return i.prototype.handleHit=function(e){this.isHidden||this.isHiding?this.show():this.hide()},i.prototype.show=function(e){var t=n.prototype.show.call(this,e);return this.outgoingDataItems.each(function(r){(!r.toNode||r.toNode&&!r.toNode.isHidden)&&(r.setWorkingValue("value",r.getValue("value"),e),r.link.show())}),this.incomingDataItems.each(function(r){(!r.fromNode||r.fromNode&&!r.fromNode.isHidden)&&(r.setWorkingValue("value",r.getValue("value"),e),r.link.show())}),t},i.prototype.hide=function(e){var t=n.prototype.hide.call(this,e);return this.outgoingDataItems.each(function(r){r.setWorkingValue("value",0,e),r.link.hide()}),this.incomingDataItems.each(function(r){r.setWorkingValue("value",0,e),r.link.hide()}),t},i.prototype.validate=function(){this.isDisposed()||(n.prototype.validate.call(this),this.invalidateLinks())},i.prototype.invalidateLinks=function(){var e=this;this.outgoingDataItems.each(function(t){var r=t.link;if(r.colorMode=="fromNode"&&(r.fill=r.dataItem.fromNode.color),r.colorMode=="gradient"){r.fill=r.gradient,r.stroke=r.gradient;var a=r.gradient.stops.getIndex(0);a&&(a.color=e.color,r.gradient.validate())}}),this.incomingDataItems.each(function(t){var r=t.link;if(r.colorMode=="toNode"&&(r.fill=r.dataItem.toNode.color),r.colorMode=="gradient"){r.fill=r.gradient,r.stroke=r.gradient;var a=r.gradient.stops.getIndex(1);a&&(a.color=e.color,r.gradient.validate())}})},Object.defineProperty(i.prototype,"incomingDataItems",{get:function(){var e=this;if(!this._incomingDataItems){var t=new Pt;t.events.on("inserted",function(){e.chart.sortBy=="name"?e._incomingSorted=ws(e._incomingDataItems.iterator(),function(r,a){return qh(r.fromName,a.fromName)}):e.chart.sortBy=="value"?e._incomingSorted=ws(e._incomingDataItems.iterator(),function(r,a){return Zh(En(r.value,a.value))}):e._incomingSorted=e._incomingDataItems.iterator()},void 0,!1),this._incomingDataItems=t}return this._incomingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outgoingDataItems",{get:function(){var e=this;if(!this._outgoingDataItems){var t=new Pt;t.events.on("inserted",function(){e.chart.sortBy=="name"?e._outgoingSorted=ws(e._outgoingDataItems.iterator(),function(r,a){return qh(r.fromName,a.fromName)}):e.chart.sortBy=="value"?e._outgoingSorted=ws(e._outgoingDataItems.iterator(),function(r,a){return Zh(En(r.value,a.value))}):e._outgoingSorted=e._outgoingDataItems.iterator()},void 0,!1),this._outgoingDataItems=t}return this._outgoingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(e){this.setPropertyValue("name",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"total",{get:function(){return this.getPropertyValue("total")},set:function(e){this.setPropertyValue("total",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"totalIncoming",{get:function(){return this.getPropertyValue("totalIncoming")},set:function(e){this.setPropertyValue("totalIncoming",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"totalOutgoing",{get:function(){return this.getPropertyValue("totalOutgoing")},set:function(e){this.setPropertyValue("totalOutgoing",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"color",{get:function(){return this.getPropertyValue("color")}
22,set:function(e){this.setColorProperty("color",e),this._background&&(this._background.fill=e),this.fill=e},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(e){var t=e.pixelWidth,r=e.pixelHeight;e.removeChildren();var a=e.createChild(Hn);a.shouldClone=!1,Ci(this,a,vi),a.stroke=this.fill,a.copyFrom(this),a.padding(0,0,0,0),a.width=t,a.height=r;var s=e.dataItem;s.color=a.fill,s.colorOrig=a.fill},Object.defineProperty(i.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),i}(Ee);V.registeredClasses.FlowDiagramNode=Au;var ju=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="FlowDiagramLink";var t=new Ot;return e.maskBullets=!1,e.colorMode="fromNode",e.layout="none",e.isMeasured=!1,e.startAngle=0,e.endAngle=0,e.strokeOpacity=0,e.verticalCenter="none",e.horizontalCenter="none",e.tooltipText="{fromName}→{toName}:{value.value}",e.tooltipLocation=.5,e.link=e.createChild(ot),e.link.shouldClone=!1,e.link.setElement(e.paper.add("path")),e.link.isMeasured=!1,e.fillOpacity=.2,e.fill=t.getFor("alternativeBackground"),e.applyTheme(),e}return i.prototype.positionBullets=function(){var e=this;ue(this.bullets.iterator(),function(t){t.parent=e.bulletsContainer,t.maxWidth=e.maxWidth,t.maxHeight=e.maxHeight,e.positionBullet(t)})},Object.defineProperty(i.prototype,"bulletsContainer",{get:function(){if(!this._bulletsContainer){var e=this.createChild(Ee);e.shouldClone=!1,e.layout="none",this._bulletsContainer=e}return this._bulletsContainer},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bulletsMask",{get:function(){if(!this._bulletsMask){var e=this.createChild(ot);e.shouldClone=!1,e.setElement(this.paper.add("path")),e.isMeasured=!1,this._bulletsMask=e}return this._bulletsMask},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(e){var t=e.locationX;C(t)||(t=e.locationY),C(t)||(t=.5);var r=this.middleLine.positionToPoint(t);e.moveTo(r);var a=e.propertyFields.rotation,s;if(e.dataItem){var o=e.dataItem.dataContext;s=o[a]}C(s)||(s=r.angle),e.rotation=s},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"colorMode",{get:function(){return this.getPropertyValue("colorMode")},set:function(e){if(e=="gradient"){var t=this.fill;this.gradient.stops.clear(),t instanceof wt&&(this.gradient.addColor(t),this.gradient.addColor(t)),this.fill=this.gradient,this.stroke=this.gradient}this.setPropertyValue("colorMode",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(e){this.setPropertyValue("maskBullets",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(e){this.setPropertyValue("tooltipLocation",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setFill=function(e){n.prototype.setFill.call(this,e);var t=this._gradient;t&&e instanceof wt&&(t.stops.clear(),t.addColor(e),t.addColor(e))},i.prototype.measureElement=function(){},Object.defineProperty(i.prototype,"bullets",{get:function(){var e=this;return this._bullets||(this._bullets=new fi(new Ln),this._disposers.push(new zt(this._bullets)),this._disposers.push(this._bullets.template),this._bullets.events.on("inserted",function(t){t.newValue.events.on("propertychanged",function(r){(r.property=="locationX"||r.property=="locationY")&&e.positionBullet(r.target)},void 0,!1)},void 0,!1)),this._bullets},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.bullets.copyFrom(e.bullets);var t=this.middleLine;t&&(t instanceof pn&&e.middleLine instanceof pn&&t.copyFrom(e.middleLine),t instanceof Vo&&e.middleLine instanceof Vo&&t.copyFrom(e.middleLine)),this.link.copyFrom(e.link)},i.prototype.getTooltipX=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).x}
22,i.prototype.getTooltipY=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).y},Object.defineProperty(i.prototype,"gradient",{get:function(){return this._gradient||(this._gradient=new en),this._gradient},enumerable:!0,configurable:!0}),i}(Ee);V.registeredClasses.FlowDiagramLink=ju;var yc=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="FlowDiagramDataItem",e.values.value={},e.applyTheme(),e}return Object.defineProperty(i.prototype,"fromName",{get:function(){return this.properties.fromName},set:function(e){this.setProperty("fromName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"toName",{get:function(){return this.properties.toName},set:function(e){this.setProperty("toName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.setProperty("color",qr(e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.values.value.value},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"link",{get:function(){var e=this;if(!this._link){var t=this.component.links.create();this._link=t,this.addSprite(t),this._disposers.push(new Lt(function(){e.component&&e.component.links.removeValue(t)}))}return this._link},enumerable:!0,configurable:!0}),i}(Vy),vc=function(n){W(i,n);function i(){var e=n.call(this)||this;e.colors=new Uo,e.className="FlowDiagram",e.nodePadding=20,e.sortBy="none",e.sequencedInterpolation=!0,e.colors.step=2,e.minNodeSize=.02;var t=e.chartContainer.createChild(Ee);t.shouldClone=!1,t.layout="none",t.isMeasured=!1,e.linksContainer=t;var r=e.chartContainer.createChild(Ee);return r.shouldClone=!1,r.layout="none",r.isMeasured=!1,e.nodesContainer=r,e.dataItem=e.createDataItem(),e.dataItem.component=e,e.applyTheme(),e}return i.prototype.dispose=function(){n.prototype.dispose.call(this),this.dataItem.dispose()},i.prototype.validateData=function(){var e=this;this._parseDataFrom==0&&this.nodes.clear(),this.sortNodes(),this.colors.reset(),n.prototype.validateData.call(this);var t=0,r=0,a,s;ue(this.dataItems.iterator(),function(l){var u=l.fromName;if(u){var h=e.nodes.getKey(u);h||(h=e.nodes.create(u),h.name=u,h.chart=e,h.dataItem=l),l.fromNode=h,l.fromNode.outgoingDataItems.push(l)}var d=l.toName;if(d){var h=e.nodes.getKey(d);h||(h=e.nodes.create(d),h.name=d,h.chart=e,h.dataItem=l),l.toNode=h,l.toNode.incomingDataItems.push(l)}if(!l.fromNode){var f=new Zl;f.opacities=[0,1],l.link.strokeModifier=f}if(!l.toNode){var p=new Zl;p.opacities=[1,0],l.link.strokeModifier=p}var v=l.value;C(v)&&(t+=v,r++,(a>v||!C(a))&&(a=v),(s<v||!C(s))&&(s=v))});var o="value";this.dataItem.setCalculatedValue(o,s,"high"),this.dataItem.setCalculatedValue(o,a,"low"),this.dataItem.setCalculatedValue(o,t,"sum"),this.dataItem.setCalculatedValue(o,t/r,"average"),this.dataItem.setCalculatedValue(o,r,"count"),ue(this.nodes.iterator(),function(l){var u=l[1];u.fill instanceof wt&&(u.color=u.fill),u.color==null&&(u.color=e.colors.next()),u.dataItem.color!=null&&(u.color=u.dataItem.color),u.dataItem.visible||u.hide(0),e.getNodeValue(u)}),this.sortNodes(),this.feedLegend()},i.prototype.handleDataItemWorkingValueChange=function(e,t){this.invalidate()},i.prototype.sortNodes=function(){this.sortBy=="name"?this._sorted=this.nodes.sortedIterator():this.sortBy=="value"?this._sorted=ws(this.nodes.iterator(),function(e,t){return Zh(En(e[1].total,t[1].total))}):this._sorted=this.nodes.iterator()},i.prototype.getNodeValue=function(e){var t=0,r=0;ue(e.incomingDataItems.iterator(),function(a){var s=a.getWorkingValue("value");C(s)&&(t+=s)}),ue(e.outgoingDataItems.iterator(),function(a){var s=a.getWorkingValue("value");C(s)&&(r+=s)}),e.total=t+r,e.totalIncoming=t,e.totalOutgoing=r},i.prototype.changeSorting=function(){this.sortNodes()},i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Flow diagram"))},i.prototype.createDataItem=function(){return new yc},Object.defineProperty(i.prototype,"nodePadding",{get:function(){return this.getPropertyValue("nodePadding")}
22,set:function(e){this.setPropertyValue("nodePadding",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sortBy",{get:function(){return this.getPropertyValue("sortBy")},set:function(e){this.setPropertyValue("sortBy",e),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minNodeSize",{get:function(){return this.getPropertyValue("minNodeSize")},set:function(e){this.setPropertyValue("minNodeSize",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nodes",{get:function(){if(!this._nodes){var e=this.createNode();e.events.on("hit",function(t){t.target.handleHit(t)}),this._nodes=new To(e),this._disposers.push(new Qa(this._nodes))}return this._nodes},enumerable:!0,configurable:!0}),i.prototype.createNode=function(){var e=new Au;return this._disposers.push(e),e},Object.defineProperty(i.prototype,"links",{get:function(){return this._links||(this._links=new fi(this.createLink()),this._disposers.push(new zt(this._links))),this._links},enumerable:!0,configurable:!0}),i.prototype.createLink=function(){var e=new ju;return this._disposers.push(e),e},i.prototype.feedLegend=function(){var e=this.legend;if(e){var t=[];this.nodes.each(function(r,a){t.push(a)}),e.data=t,e.dataFields.name="name"}},i.prototype.disposeData=function(){n.prototype.disposeData.call(this),this.nodes.clear()},i}(ss);V.registeredClasses.FlowDiagram=vc;var vd=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="LabelBullet";var t=e.createChild(br);return t.shouldClone=!1,t.verticalCenter="middle",t.horizontalCenter="middle",t.truncate=!0,t.hideOversized=!1,t.maxWidth=500,t.maxHeight=500,t.stroke=qe(),t.strokeOpacity=0,t.fill=new Ot().getFor("text"),e.events.on("maxsizechanged",e.handleMaxSize,e,!1),e.label=t,e.applyTheme(),e}return i.prototype.handleMaxSize=function(){this.label.maxWidth=this.maxWidth,this.label.maxHeight=this.maxHeight},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label)},i}(Ln);V.registeredClasses.LabelBullet=vd;var tv=function(n){W(i,n);function i(){var e=n.call(this)||this;e.nextInCoord=0,e.nextOutCoord=0,e.className="SankeyNode",e.width=10,e.height=10;var t=e.createChild(vd);t.shouldClone=!1,t.locationX=1,t.locationY=.5,t.label.text="{name}",t.width=150,t.height=150,t.label.horizontalCenter="left",t.label.padding(0,5,0,5),e.nameLabel=t;var r=e.createChild(vd);r.shouldClone=!1,r.label.hideOversized=!1,r.locationX=.5,r.locationY=.5,r.width=150,r.he
22ight=150,r.label.horizontalCenter="middle",e.valueLabel=r;var a=e.hiddenState;return a.properties.fill=new Ot().getFor("disabledBackground"),a.properties.opacity=.5,a.properties.visible=!0,e.background.hiddenState.copyFrom(a),e}return i.prototype.invalidateLinks=function(){var e=this;n.prototype.invalidateLinks.call(this),this.nextInCoord=0,this.nextOutCoord=0;var t=this.chart;if(t){var r=t.orientation;this._incomingSorted&&ue(this._incomingSorted,function(a){var s=a.link,o=a.getWorkingValue("value");if(C(o)){s.parent=e.chart.linksContainer;var l=void 0,u=void 0,h=void 0;if(r=="horizontal"?(l=e.pixelX+e.dx,u=e.nextInCoord+e.pixelY+e.dy,h=0):(u=e.pixelY+e.dy,l=e.nextInCoord+e.pixelX+e.dx,h=90),s.endX=l,s.endY=u,s.startAngle=h,s.endAngle=h,s.gradient.rotation=h,s.linkWidth=o*t.valueHeight,!a.fromNode){r=="horizontal"?(s.maxWidth=200,s.startX=e.pixelX+e.dx-s.maxWidth,s.startY=s.endY):(s.maxHeight=200,s.startX=s.endX,s.startY=e.pixelY+e.dy-s.maxHeight),s.gradient,s.fill=a.toNode.color;var d=s.gradient.stops.getIndex(0);d&&(s.colorMode=="gradient"&&(d.color=e.color),d.opacity=0,s.fill=s.gradient,s.stroke=s.gradient,s.gradient.validate())}e.nextInCoord+=s.linkWidth}}),this._outgoingSorted&&ue(this._outgoingSorted,function(a){var s=a.link;s.parent=e.chart.linksContainer;var o=a.getWorkingValue("value");if(C(o)){var l=void 0,u=void 0,h=void 0;if(r=="horizontal"?(h=0,l=e.pixelX+e.pixelWidth+e.dx-1,u=e.nextOutCoord+e.pixelY+e.dy):(h=90,l=e.nextOutCoord+e.pixelX+e.dx,u=e.pixelY+e.pixelHeight+e.dy-1),s.startX=l,s.startY=u,s.startAngle=h,s.endAngle=h,s.gradient.rotation=h,s.linkWidth=o*e.chart.valueHeight,!a.toNode){r=="horizontal"?(s.maxWidth=200,s.endX=e.pixelX+s.maxWidth+e.dx,s.endY=s.startY):(s.maxHeight=200,s.endX=s.startX,s.endY=e.pixelY+s.maxHeight+e.dy),s.opacity=e.opacity;var d=s.gradient.stops.getIndex(1);d&&(s.colorMode=="gradient"&&(d.color=e.color),d.opacity=0,s.fill=s.gradient,s.stroke=s.gradient,s.gradient.validate())}e.nextOutCoord+=s.linkWidth}})}this.positionBullet(this.nameLabel),this.positionBullet(this.valueLabel)},i.prototype.positionBullet=function(e){e&&(e.x=this.measuredWidth*e.locationX,e.y=this.measuredHeight*e.locationY)},Object.defineProperty(i.prototype,"level",{get:function(){return this.getPropertyValue("level")},set:function(e){this.setPropertyValue("level",e,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.nameLabel.copyFrom(e.nameLabel),this.valueLabel.copyFrom(e.valueLabel)},i}(Au);V.registeredClasses.SankeyNode=tv;var iv=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="SankeyLink",new Ot,e.tension=.8,e.controlPointDistance=.2,e.startAngle=0,e.endAngle=0,e.linkWidth=0,e.startX=0,e.endX=0,e.startY=0,e.endY=0,e.middleLine=e.createChild(ql),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return i.prototype.makeBackwards=function(){this.states.getKey("backwards")!=null&&this.setState("backwards")},i.prototype.validate=function(){var e,t,r,a;if(n.prototype.validate.call(this),!this.isTemplate){var s=this.startX,o=this.startY,l=this.endX,u=this.endY;if(this.states.getKey("backwards")&&this.setState("default"),this.dataItem){var h=this.dataItem.component;h&&(h.orientation=="horizontal"?l<s&&(e=_s([l,s],2),s=e[0],l=e[1],t=_s([u,o],2),o=t[0],u=t[1],this.makeBackwards()):u<o&&(r=_s([u,o],2),o=r[0],u=r[1],a=_s([l,s],2),s=a[0],l=a[1],this.makeBackwards()))}C(l)||(l=s),C(u)||(u=o);var d=this.startAngle,f=this.endAngle,p=this.linkWidth,v="",m=s,x=o,w=l,P=u,O=s+p*be(d),j=l+p*be(f),M=o+p*xe(d),F=u+p*xe(f),g=s+p/2*be(d),L=l+p/2*be(f),N=o+p/2*xe(d),ye=u+p/2*xe(f);this.zIndex=this.zIndex||this.dataItem.index;var H=this.tension+(1-this.tension)*be(d),z=this.tension+(1-this.tension)*xe(d);if(this.middleLine.tensionX=H,this.middleLine.tensionY=z,C(p)&&C(s)&&C(l)&&C(o)&&C(u)){de(m,3)==de(w,3)&&(w+=.01),de(x,3)==de(P,3)&&(P+=.01),de(O,3)==de(j,3)&&(j+=.01),de(M,3)==de(F,3)&&(F+=.01);var Z=Math.min(O,j,m,w),_e=Math.min(M,F,x,P),ve=Math.max(O,j,m,w),$=Math.max(M,F,x,P);this._bbox={x:Z,y:_e,width:ve-Z,height:$-_e};var I=this.controlPointDistance,te=m+(w-m)*I*xe(d),A=x+(P-x)*I*be(d),Q=w-(w-m)*I*xe(f),he=P-(P-x)*I*be(f),K=g+(L-g)*I*xe(d),le=N+(ye-N)*I*be(d),E=L-(L-g)*I*xe(f),ne=ye-(ye-N)*I*be(f),Ue=tr({x:te,y:A},{x:Q,y:he}),Ve=(p/xe(Ue)-p)/Tf(Ue)*xe(d),Ye=(p/be(Ue)-p)*Tf(Ue)*be(d),Xe=-Ve/2+O+(j-O)*I*xe(d),ft=-Ye/2+M+(F-M)*I*be(d),Ke=-Ve/2+j-(j-O)*I*xe(f),oi=-Ye/2+F-(F-M)*I*be(f);ye==N&&(ye+=.01),this.middleLine.segments=[[{x:g,y:N},{x:K,y:le},{x:E,y:ne},{x:L,y:ye}]],te+=Ve/2,A+=Ye/2,Q+=Ve/2,he+=Ye/2,v+=Oe({x:m,y:x}),v+=new Oa(H,z).smooth([{x:m,y:x},{x:te,y:A},{x:Q,y:he},{x:w,y:P}]),v+=ie({x:j,y:F}),v+=new Oa(H,z).smooth([{x:j,y:F},{x:Ke,y:oi},{x:Xe,y:ft},{x:O,y:M}]),v+=Ai()}this.link.path=v,this.maskBullets&&(this.bulletsMask.path=v,this.bulletsContainer.mask=this.bulletsMask),this.positionBullets()}},Object.defineProperty(i.prototype,"startX",{get:function(){return this.getPropertyValue("startX")},set:function(e){this.setPropertyValue("startX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endX",{get:function(){return this.getPropertyValue("endX")},set:function(e){this.setPropertyValue("endX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startY",{get:function(){return this.getPropertyValue("startY")}
22,set:function(e){this.setPropertyValue("startY",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endY",{get:function(){return this.getPropertyValue("endY")},set:function(e){this.setPropertyValue("endY",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"linkWidth",{get:function(){return this.getPropertyValue("linkWidth")},set:function(e){this.setPropertyValue("linkWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(e){this.setPropertyValue("controlPointDistance",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e,!0)},enumerable:!0,configurable:!0}),i}(ju);V.registeredClasses.SankeyLink=iv;var Sx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="SankeyDiagramDataItem",e.applyTheme(),e}return i}(yc),Ox=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="SankeyDiagram",e.orientation="horizontal",e.nodeAlign="middle",e.nodesContainer.width=pe(100),e.nodesContainer.height=pe(100),e.linksContainer.width=pe(100),e.linksContainer.height=pe(100),e.applyTheme(),e}return i.prototype.validateData=function(){var e=this;this._valueHeight=void 0,n.prototype.validateData.call(this),this._levelCount=0,this.nodes.each(function(t,r){r.level=void 0}),this.nodes.each(function(t,r){r.level=e.getNodeLevel(r,0),e._levelCount=st(e._levelCount,r.level)})},i.prototype.getNodeLevel=function(e,t){var r=this,a=[t];return ue(e.incomingDataItems.iterator(),function(s){s.fromNode&&(C(s.fromNode.level)?a.push(s.fromNode.level+1):(r._counter=0,r.checkLoop(s.fromNode),r._counter<r.dataItems.length&&a.push(r.getNodeLevel(s.fromNode,t+1))))}),Math.max.apply(Math,Ss(a))},i.prototype.checkLoop=function(e){var t=this;this._counter++,!(this._counter>this.dataItems.length)&&ue(e.incomingDataItems.iterator(),function(r){t.checkLoop(r.fromNode)})},i.prototype.calculateValueHeight=function(){var e=this;this._levelSum={},this._levelNodesCount={},this.maxSum=0;var t=this.dataItem.values.value.sum;ue(this._sorted,function(d){var f=d[1];e.getNodeValue(f)}),this.nodes.each(function(d,f){var p=f.level,v=Math.max(f.totalIncoming,f.totalOutgoing);v/t<e.minNodeSize&&(v=t*e.minNodeSize),C(e._levelSum[p])?e._levelSum[p]+=v:e._levelSum[p]=v,C(e._levelNodesCount[p])?e._levelNodesCount[p]++:e._levelNodesCount[p]=1});var r;this.orientation=="horizontal"?r=this.chartContainer.maxHeight-1:r=this.chartContainer.maxWidth-1;var a,s;$e(this._levelSum,function(d,f){var p=f,v=e._levelNodesCount[d],m=(r-(v-1)*e.nodePadding)/p;m==1/0&&(m=0),(s>m||!C(s))&&(s=m,e.maxSum=p,a=Bt(d))}),this._maxSumLevel=a;var o=this._levelNodesCount[this._maxSumLevel],l=(r-(o-1)*this.nodePadding)/this.maxSum;if(l==1/0&&(l=0),!C(this.valueHeight))this.valueHeight=l;else{var u=void 0;try{u=this._heightAnimation.animationOptions[0].to}catch{}if(u!=l){var h=this.interpolationDuration;try{h=this.nodes.template.states.getKey("active").transitionDuration}catch{}this._heightAnimation=new cn(this,{property:"valueHeight",from:this.valueHeight,to:l},h,this.interpolationEasing).start(),this._disposers.push(this._heightAnimation)}}},i.prototype.validate=function(){var e=this;n.prototype.validate.call(this),this.calculateValueHeight();var t=this.nodesContainer,r={},a=this._levelNodesCount[this._maxSumLevel],s=this.dataItem.values.value.sum,o;this.orientation=="horizontal"?o=this.chartContainer.maxHeight-1:o=this.chartContainer.maxWidth-1,ue(this._sorted,function(l){var u=l[1],h=u.level,d=0,f=e._levelNodesCount[h];switch(e.nodeAlign){case"bottom":d=(e.maxSum-e._levelSum[h])*e.valueHeight-(f-a)*e.nodePadding;break;case"middle":d=(e.maxSum-e._levelSum[h])*e.valueHeight/2-(f-a)*e.nodePadding/2;break}if(e.maxSum==0)switch(e.nodeAlign){case"bottom":d=o-f*(e.minNodeSize*o+e.nodePadding);break;case"middle":d=o/2-f/2*(e.minNodeSize*o+e.nodePadding);break}u.parent=t;var p,v,m,x=Math.max(u.totalIncoming,u.totalOutgoing);if(x/s<e.minNodeSize&&(x=s*e.minNodeSize),e.orientation=="horizontal"){p=(e.innerWidth-u.pixelWidth)/e._levelCount,v=p*u.level,m=r[h]||d;var w=x*e.valueHeight;s==0&&w==0&&(w=e.minNodeSize*o),u.height=w,u.minX=v,u.maxX=v,r[h]=m+w+e.nodePadding}
22else{p=(e.innerHeight-u.pixelHeight)/e._levelCount,v=r[h]||d,m=p*u.level;var P=x*e.valueHeight;s==0&&P==0&&(P=e.minNodeSize*o),u.width=P,u.minY=m,u.maxY=m,r[h]=v+P+e.nodePadding}u.x=v,u.y=m})},i.prototype.showReal=function(e){var t=this;if(!this.preventShow){if(this.interpolationDuration>0){var r=this.nodesContainer,a=0;ue(this.links.iterator(),function(s){s.hide(0)}),ue(this._sorted,function(s){var o=s[1],l;t.orientation=="horizontal"?(o.dx=-(r.pixelWidth-o.pixelWidth)/Math.max(t._levelCount,1),l="dx"):(o.dy=-(r.pixelHeight-o.pixelHeight)/Math.max(t._levelCount,1),l="dy");var u=0,h=t.interpolationDuration;t.sequencedInterpolation&&(u=t.sequencedInterpolationDelay*a+h*a/r0(t.nodes.iterator())),o.opacity=0,o.invalidateLinks(),o.animate([{property:"opacity",from:0,to:1},{property:l,to:0}],t.interpolationDuration,t.interpolationEasing).delay(u),ue(o.outgoingDataItems.iterator(),function(d){var f=d.link.show(t.interpolationDuration);f&&!f.isFinished()&&f.delay(u)}),ue(o.incomingDataItems.iterator(),function(d){if(!d.fromNode){var f=d.link.show(t.interpolationDuration);f&&!f.isFinished()&&f.delay(u)}}),a++})}return n.prototype.showReal.call(this)}},i.prototype.changeSorting=function(){var e=this;this.sortNodes();var t={};ue(this._sorted,function(r){var a=r[1],s=a.level,o=(e.maxSum-e._levelSum[s])*e.valueHeight/2,l,u;e.orientation=="horizontal"?(l="y",u=a.pixelHeight):(l="x",u=a.pixelWidth),a.animate({property:l,to:t[s]||o},e.interpolationDuration,e.interpolationEasing),t[s]=(t[s]||o)+u+e.nodePadding,a.invalidateLinks()})},i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Sankey diagram"))},i.prototype.createDataItem=function(){return new Sx},Object.defineProperty(i.prototype,"nodeAlign",{get:function(){return this.getPropertyValue("nodeAlign")},set:function(e){this.setPropertyValue("nodeAlign",e),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0);var t=this.nodes.template.nameLabel;e=="vertical"?(this.nodes.template.width=void 0,t.label.horizontalCenter="middle",t.locationX=.5):(this.nodes.template.height=void 0,t.label.horizontalCenter="left",t.locationX=1)},enumerable:!0,configurable:!0}),i.prototype.createNode=function(){var e=new tv;return this._disposers.push(e),e},i.prototype.createLink=function(){var e=new iv;return this._disposers.push(e),e},Object.defineProperty(i.prototype,"valueHeight",{get:function(){return this._valueHeight},set:function(e){e!=this._valueHeight&&(this._valueHeight=e,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.disposeData=function(){n.prototype.disposeData.call(this),this._sorted=this.nodes.iterator()},i}(vc);V.registeredClasses.SankeyDiagram=Ox;var rv=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="ChordNode";var t=e.createChild(ku);t.location=.5,t.radius=5,t.text="{name}",t.zIndex=1,t.shouldClone=!1,e.label=t,e.layout="none",e.events.on("positionchanged",e.updateRotation,e,!1),e.isMeasured=!1,e.slice=e.createChild(ts),e.slice.isMeasured=!1;var r=e.hiddenState;return r.properties.fill=new Ot().getFor("disabledBackground"),r.properties.opacity=.5,r.properties.visible=!0,e.setStateOnChildren=!1,e.slice.hiddenState.properties.visible=!0,e.adapter.add("tooltipX",function(a,s){return s.slice.ix*(s.slice.radius-(s.slice.radius-s.slice.pixelInnerRadius)/2)}),e.adapter.add("tooltipY",function(a,s){return s.slice.iy*(s.slice.radius-(s.slice.radius-s.slice.pixelInnerRadius)/2)}),e}return i.prototype.invalidateLinks=function(){var e=this;n.prototype.invalidateLinks.call(this);var t=this.label,r=this.slice,a=this.chart;if(a&&r){var s=this.total,o=r.arc,l=r.startAngle;this.children.each(function(d){if(d instanceof Ln){var f=d.locationX;C(f)||(f=.5);var p=d.locationY;C(p)||(p=1);var v=l+o*f,m=p*r.radius;d.x=m*xe(v),d.y=m*be(v)}});var u=l+o*t.location,h=l+(1-s/this.adjustedTotal)*o*.5;
22ar(h)&&(h=l),t.fixPosition(u,r.radius),this.nextAngle=h,this._outgoingSorted&&ue(this._outgoingSorted,function(d){var f=d.link;f.parent=e.chart.linksContainer;var p=d.getWorkingValue("value");if(C(p)){if(a.nonRibbon){var v=f.percentWidth;C(v)||(v=5),v=v/100,f.startAngle=l+o/2-o/2*v,f.arc=o*v}else f.arc=p*a.valueAngle,f.startAngle=e.nextAngle,e.nextAngle+=f.arc;d.toNode||(f.endAngle=f.startAngle),f.radius=r.pixelInnerRadius}}),this._incomingSorted&&ue(this._incomingSorted,function(d){var f=d.link;if(f.radius=r.pixelInnerRadius,a.nonRibbon){var p=f.percentWidth;C(p)||(p=5),p=p/100,f.endAngle=l+o/2-o/2*p,f.arc=o*p}else{f.endAngle=e.nextAngle;var v=d.getWorkingValue("value");C(v)&&(f.arc=v*a.valueAngle,e.nextAngle+=f.arc)}d.fromNode||(f.startAngle=f.endAngle)})}},i.prototype.updateRotation=function(){var e=this.slice,t=this.trueStartAngle+e.arc/2,r=e.radius,a=r*xe(t),s=r*be(t),o=tr({x:a+this.pixelX,y:s+this.pixelY});e.startAngle=this.trueStartAngle+(o-t),this.dx=-this.pixelX,this.dy=-this.pixelY},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),this.slice.copyFrom(e.slice)},i}(Au);V.registeredClasses.ChordNode=rv;var Tx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="QuadraticCurve",e.element=e.paper.add("path"),e.pixelPerfect=!1,e.fill=qe(),e.applyTheme(),e}return i.prototype.draw=function(){if(C(this.x1+this.x2+this.y1+this.y2+this.cpx+this.cpy)){var e={x:this.x1,y:this.y1},t={x:this.x2,y:this.y2},r={x:this.cpx,y:this.cpy},a=Oe(e)+za(t,r);this.path=a}},Object.defineProperty(i.prototype,"cpx",{get:function(){return this.getPropertyValue("cpx")},set:function(e){this.setPropertyValue("cpx",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cpy",{get:function(){return this.getPropertyValue("cpy")},set:function(e){this.setPropertyValue("cpy",e,!0)},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e){var t={x:this.x1,y:this.y1},r={x:this.cpx,y:this.cpy},a={x:this.x2,y:this.y2},s=kf(t,a,r,e),o=kf(t,a,r,e+.001);return{x:s.x,y:s.y,angle:tr(s,o)}},i}(pn),nv=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="ChordLink",e.middleLine=e.createChild(Tx),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return i.prototype.validate=function(){if(n.prototype.validate.call(this),!this.isTemplate){var e=this.startAngle,t=this.endAngle,r=this.arc,a=this.radius,s=this.dataItem.fromNode,o=this.dataItem.toNode,l=0,u=0;s&&(l=s.pixelX+s.dx,u=s.pixelY+s.dy);var h=0,d=0;if(o&&(h=o.pixelX+o.dx,d=o.pixelY+o.dy),a>0){var f=a*xe(e)+l,p=a*be(e)+u,v=a*xe(t)+h,m=a*be(t)+d,x={x:0,y:0},w=Oe({x:f,y:p});w+=Li(e,r,a),w+=za({x:v,y:m},x),w+=Li(t,r,a),w+=za({x:f,y:p},x),r>0?this.link.path=w:this.link.path="",this.maskBullets&&(this.bulletsMask.path=w,this.bulletsContainer.mask=this.bulletsMask);var P=e+r/2,O=t+r/2,j=this.middleLine;j.x1=a*xe(P)+l,j.y1=a*be(P)+u,j.x2=a*xe(O)+h,j.y2=a*be(O)+d,j.cpx=0,j.cpy=0,j.stroke=this.fill,this.positionBullets()}}},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPropertyValue("radius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(e){this.setPropertyValue("arc",e,!0)},enumerable:!0,configurable:!0}),i}(ju);V.registeredClasses.ChordLink=nv;var kx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="ChordDiagramDataItem",e.applyTheme(),e}return i}(yc),Mx=function(n){W(i,n);function i(){var e=n.call(this)||this;e.valueAngle=0,e.className="ChordDiagram",e.startAngle=-90,e.endAngle=270,e.radius=pe(80),e.innerRadius=-15,e.nodePadding=5;var t=e.chartContainer.createChild(Ee);return t.align="center",t.valign="middle",t.shouldClone=!1,t.layout="absolute",e.chordContainer=t,e.nodesContainer.parent=t,e.linksContainer.parent=t,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e.applyTheme(),e}return i.prototype.validate=function(){var e=this,t=this.chartContainer,r=this.endAngle,a=this.startAngle+this.nodePadding/2,s=In(this.startAngle,this.endAngle,1),o={x:0,y:0,width:0,height:0};s=Yo([s,o]);
22var l=Math.min(t.innerWidth/s.width,t.innerHeight/s.height);C(l)||(l=0);var u=Bi(this.radius,l),h=Bi(this.innerRadius,u,!0),d=this.dataItem.values.value.sum,f=0,p=0;ue(this._sorted,function(v){var m=v[1];e.getNodeValue(m),f++;var x=m.total;m.total/d<e.minNodeSize&&(x=d*e.minNodeSize),p+=x}),this.valueAngle=(r-this.startAngle-this.nodePadding*f)/p,ue(this._sorted,function(v){var m=v[1],x=m.slice;x.radius=u,x.innerRadius=h;var w=m.total;m.total/d<e.minNodeSize&&(w=d*e.minNodeSize),m.adjustedTotal=w;var P;e.nonRibbon?P=(r-e.startAngle)/f-e.nodePadding:P=e.valueAngle*w,x.arc=P,x.startAngle=a,m.trueStartAngle=a,m.parent=e.nodesContainer,m.validate(),a+=P+e.nodePadding}),this.chordContainer.definedBBox={x:u*s.x,y:u*s.y,width:u*s.width,height:u*s.height},this.chordContainer.invalidateLayout(),n.prototype.validate.call(this)},i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Chord diagram"))},i.prototype.createDataItem=function(){return new kx},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nonRibbon",{get:function(){return this.getPropertyValue("nonRibbon")},set:function(e){this.setPropertyValue("nonRibbon",e,!0),this.links.template.middleLine.strokeOpacity=1,this.links.template.link.fillOpacity=0},enumerable:!0,configurable:!0}),i.prototype.createNode=function(){var e=new rv;return this._disposers.push(e),e},i.prototype.createLink=function(){var e=new nv;return this._disposers.push(e),e},i}(vc);V.registeredClasses.ChordDiagram=Mx;var os=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Column",e.width=pe(80),e.height=pe(80),e.events.disableType("transformed"),e.applyOnClones=!0,e.strokeOpacity=1,e.layout="none",e.createAssets(),e.events.on("childadded",e.handleKidAdded,e,!1),e}return i.prototype.handleKidAdded=function(){this.layout=="none"&&(this.layout="absolute")},i.prototype.createAssets=function(){this.column=this.createChild(Hn),this.column.shouldClone=!1,this.column.isMeasured=!1,this.column.cornerRadius(0,0,0,0),this._disposers.push(this.column)},i.prototype.validate=function(){n.prototype.validate.call(this);var e=this.column;e&&(e.width=xt(this.pixelWidth,this.maxWidth),e.height=xt(this.pixelHeight,this.maxHeight),e.invali
22d&&e.validate())},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.column&&this.column.copyFrom(e.column)},Object.defineProperty(i.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.column?{x:0,y:0,width:this.column.measuredWidth,height:this.column.measuredHeight}:{x:0,y:0,width:xt(this.pixelWidth,this.maxWidth),height:xt(this.pixelHeight,this.maxHeight)}},enumerable:!0,configurable:!0}),i}(Ee);V.registeredClasses.Column=os;var ka=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="ColumnSeriesDataItem",e.locations.dateX=.5,e.locations.dateY=.5,e.locations.categoryX=.5,e.locations.categoryY=.5,e.applyTheme(),e}return Object.defineProperty(i.prototype,"column",{get:function(){return this._column},set:function(e){this.setColumn(e)},enumerable:!0,configurable:!0}),i.prototype.setColumn=function(e){var t=this;if(this._column&&e!=this._column&&Qe(this.sprites,this._column),this._column=e,e){var r=e.dataItem;r&&r!=this&&(r.column=void 0),this.addSprite(e),this._disposers.push(new Lt(function(){t.component&&t.component.columns.removeValue(e)}))}},Object.defineProperty(i.prototype,"width",{get:function(){var e=this.properties.width;return this._adapterO&&(e=this._adapterO.apply("width",e)),e},set:function(e){this.properties.width!=e&&(this.properties.width=e,this.component&&this.component.validateDataElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){var e=this.properties.height;return this._adapterO&&(e=this._adapterO.apply("height",e)),e},set:function(e){this.properties.height!=e&&(this.properties.height=e,this.component&&this.component.validateDataElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rangesColumns",{get:function(){return this._rangesColumns||(this._rangesColumns=new Gt),this._rangesColumns},enumerable:!0,configurable:!0}),i}(Ou),Ma=function(n){W(i,n);function i(){var e=n.call(this)||this;e._startLocation=0,e._endLocation=1,e.className="ColumnSeries",e.width=pe(100),e.height=pe(100),e.strokeOpacity=0,e.fillOpacity=1,e.clustered=!0;var t=e.mainContainer.createChild(Ee);return t.shouldClone=!1,t.isMeasured=!1,t.layout="none",e._columnsContainer=t,e.columns.template.pixelPerfect=!1,e.tooltipColorSource=e.columns.template,e.applyTheme(),e}return Object.defineProperty(i.prototype,"columnsContainer",{get:function(){return this._columnsContainer},enumerable:!0,configurable:!0}),i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Column Series"))},i.prototype.createDataItem=function(){return new ka},i.prototype.validate=function(){var e=this;if(this.group.node.removeAttribute("fill"),this.chart&&this.xAxis&&this.yAxis){var t=this.chart.series,r=0,a=0,s=[];ue(t.iterator(),function(m){if(m instanceof i&&e.baseAxis==m.baseAxis){var x;e.baseAxis==e.xAxis?x=e.chart.yAxes.indexOf(m.yAxis):x=e.chart.xAxes.indexOf(m.xAxis),s.push({series:m,axis:x})}}),s.sort(function(m,x){return m.axis-x.axis});var o;De(s,function(m){var x=m.series;x instanceof i&&((!x.stacked&&x.clustered||o!=m.axis&&x.clustered)&&r++,x==e&&(a=r-1)),o=m.axis}),this.clustered||(a=0,r=1);var l=this.baseAxis.renderer,u=l.cellStartLocation,h=l.cellEndLocation;this._startLocation=u+a/r*(h-u),this._endLocation=u+(a+1)/r*(h-u);var d=this.xAxis,f=this.yAxis;d instanceof _i&&f instanceof dt&&d.sortBySeries==this&&this.sortCategoryAxis(d,"valueY"),f instanceof _i&&d instanceof dt&&f.sortBySeries==this&&this.sortCategoryAxis(f,"valueX")}n.prototype.validate.call(this);for(var p=0;p<this.startIndex;p++){var v=this.dataItems.getIndex(p);this.disableUnusedColumns(v)}for(var p=this.dataItems.length-1;p>this.endIndex;p--){var v=this.dataItems.getIndex(p);this.disableUnusedColumns(v)}this._propertiesChanged=!1},i.prototype.sortCategoryAxis=function(e,t){var r=this;this.dataItems.values.sort(function(s,o){return o.values[t].workingValue-s.values[t].workingValue});var a=0;this.dataItems.each(function(s){s._index=a,a++}),e.dataItems.each(function(s){var o=s.component,l=o.categoryToPosition(s.category)-s.deltaPosition,u=o.getSeriesDataItemByCategory(s.category,r);if(u){var h=r.dataItems.indexOf(u);s._index=h;var d=de((h+.5)/r.dataItems.length-l,3);s.deltaAnimation&&!s.deltaAnimation.isDisposed()&&s.deltaAnimation.animationOptions[0].to==d||d!=de(s.deltaPosition,3)&&(s.deltaAnimation&&s.deltaAnimation.stop(),s.deltaAnimation=s.animate({property:"deltaPosition",from:-d,to:0},o.interpolationDuration,o.interpolationEasing),r._disposers.push(s.deltaAnimation))}}),e.dataItems.values.sort(function(s,o){return s.index-o.index})},i.prototype.validateDataElement=function(e){this.chart&&this.xAxis&&this.yAxis&&(this.validateDataElementReal(e),n.prototype.validateDataElement.call(this,e))},i.prototype.getStartLocation=function(e){var t=this._startLocation;return this.baseAxis==this.xAxis?t+=e.locations[this.xOpenField]-.5:t+=e.locations[this.yOpenField]-.5,t},i.prototype.getEndLocation=function(e){var t=this._endLocation;return this.baseAxis==this.xAxis?t+=e.locations[this.xField]-.5:t+=e.locations[this.yField]-.5,t},i.prototype.validateDataElementReal=function(e){var t=this,r,a,s,o,l=this.getStartLocation(e),u=this.getEndLocation(e),h=this.xField,d=this.xOpenField,f=this.yField,p=this.yOpenField,v=this.columns.template,m=v.percentWidth,x=v.percentHeight,w=v.pixelWidth,P=v.pixelHeight,O=v.maxWidth,j=v.maxHeight,M=v.pixelPaddingLeft,F=v.pixelPaddingRight,g=v.pixelPaddingTop,L=v.pixelPaddingBottom,N=!1,ye=e.width;T(ye)&&(C(ye)&&(w=ye),ye instanceof mt&&(m=ye.value*100));var H=e.height;if(T(H)&&(C(H)&&(P=H),H instanceof mt&&(x=H.value*100)),this.xAxis instanceof _i&&this.yAxis instanceof _i){if(!e.hasValue(this._xValueFields)||!e.hasValue(this._yValueFields))return;if(l=0,u=1,!ar(m)){var z=de((u-l)*(1-m/100)/2,5);l+=z,u-=z}if(r=this.xAxis.getX(e,d,l),a=this.xAxis.getX(e,h,u),ar(m)){var z=(a-r-w)/2;r+=z,a-=z}if(!ar(O)&&O<Math.abs(a-r)){var z=(a-r-O)/2;r+=z,a-=z}if(l=0,u=1,!ar(x)){var z=de((1-x/100)/2,5);l+=z,u-=z}
22if(s=this.yAxis.getY(e,p,l),o=this.yAxis.getY(e,f,u),ar(x)){var z=(o-s-P)/2;o+=z,s-=z}if(!ar(j)&&j<Math.abs(o-s)){var z=(o-s-j)/2;o+=z,s-=z}a=this.fixHorizontalCoordinate(a),r=this.fixHorizontalCoordinate(r),s=this.fixVerticalCoordinate(s),o=this.fixVerticalCoordinate(o)}else if(this.baseAxis==this.xAxis){if(!e.hasValue(this._yValueFields))return;if(!ar(m)){var z=de((u-l)*(1-m/100)/2,5);l+=z,u-=z}if(r=this.xAxis.getX(e,d,l),a=this.xAxis.getX(e,h,u),ar(m)){var z=(a-r-w)/2;r+=z,a-=z}if(!ar(O)&&O<Math.abs(a-r)){var z=(a-r-O)/2;r+=z,a-=z}var Z=e.locations[p],_e=e.locations[f];this.yAxis instanceof dt&&this.dataFields[this.yField]!=this.dataFields[this.yOpenField]&&(Z=0,_e=0),o=this.yAxis.getY(e,p,Z),s=this.yAxis.getY(e,f,_e);var ve=Math.ceil(this.yAxis.axisLength);(s<0&&o<0||s>ve&&o>ve)&&(N=!0),s=this.fixVerticalCoordinate(s),o=this.fixVerticalCoordinate(o),Math.abs(a-r)-M-F==0&&(N=!0)}else{if(!e.hasValue(this._xValueFields))return;if(!ar(x)){var z=de((u-l)*(1-x/100)/2,5);l+=z,u-=z}if(s=this.yAxis.getY(e,p,l),o=this.yAxis.getY(e,f,u),ar(x)){var z=(o-s-P)/2;o-=z,s+=z}if(!ar(j)&&j<Math.abs(o-s)){var z=(o-s-j)/2;o-=z,s+=z}var $=e.locations[h],I=e.locations[d];this.xAxis instanceof dt&&this.dataFields[this.xField]!=this.dataFields[this.xOpenField]&&($=0,I=0),a=this.xAxis.getX(e,h,$),r=this.xAxis.getX(e,d,I);var ve=Math.ceil(this.xAxis.axisLength);(a<0&&r<0||a>ve&&r>ve)&&(N=!0),a=this.fixHorizontalCoordinate(a),r=this.fixHorizontalCoordinate(r),Math.abs(s-o)-g-L==0&&(N=!0)}var te=Math.abs(a-r),A=Math.abs(o-s),Q=Math.min(r,a),he=Math.min(s,o);if(N)this.disableUnusedColumns(e);else{var K;e.column?(K=e.column,this._propertiesChanged&&(Ci(this,K,vi),Ci(this.columns.template,K,vi),De(vi,function(le){K[le]=K[le]}))):(K=this.columns.create(),Ci(this,K,vi),Ci(this.columns.template,K,vi),e.addSprite(K),e.column=K,K.paper=this.paper,this.itemsFocusable()?(T(this.role)||(this.role="menu"),T(K.role)||(K.role="menuitem"),K.focusable=!0):(T(this.role)||(this.role="list"),T(K.role)||(K.role="listitem"),K.focusable=!1),K.focusable&&(K.events.on("focus",function(le){K.readerTitle=t.populateString(t.itemReaderText,e)},void 0,!1),K.events.on("blur",function(le){K.readerTitle=""},void 0,!1)),K.hoverable&&(K.events.on("over",function(le){K.readerTitle=t.populateString(t.itemReaderText,e)},void 0,!1),K.events.on("out",function(le){K.readerTitle=""},void 0,!1)),K.parent=this.columnsContainer,K.virtualParent=this),K.width=te,K.height=A,K.x=Q,K.y=he,K.realX=r,K.realY=s,K.realWidth=a-r,K.realHeight=o-s,this.setColumnStates(K),K.invalid&&K.validate(),K.__disabled=!1,ue(this.axisRanges.iterator(),function(le){var E=e.rangesColumns.getKey(le.uid);E||(E=t.columns.create(),Ci(le.contents,E,vi),e.addSprite(E),e.rangesColumns.setKey(le.uid,E),E.paper=t.paper),E.parent=le.contents,E.width=te,E.height=A,E.x=Q,E.y=he,t.setColumnStates(E),E.invalid&&E.validate(),E.__disabled=!1})}e.itemWidth=te,e.itemHeight=A},i.prototype.disableUnusedColumns=function(e){e&&(e.column&&(e.column.width=0,e.column.height=0,e.column.__disabled=!0),ue(this.axisRanges.iterator(),function(t){var r=e.rangesColumns.getKey(t.uid);r&&(r.width=0,r.height=0,r.__disabled=!0)}))},i.prototype.setColumnStates=function(e){if(this._dropFromOpenState||this._dropFromPreviousState||this._riseFromOpenState||this._riseFromPreviousState){var t=e.dataItem;if(this.xAxis instanceof dt||this.yAxis instanceof dt){var r,a=void 0,s=void 0;this.baseAxis==this.yAxis?(this.xOpenField&&this.xField&&this.xAxis instanceof dt&&(r=t.getValue(this.xOpenField),a=t.getValue(this.xField)),s=t.getValue(this.xAxis.axisFieldName+"X","previousChange")):(this.yOpenField&&this.yField&&this.yAxis instanceof dt&&(r=t.getValue(this.yOpenField),a=t.getValue(this.yField)),s=t.getValue(this.yAxis.axisFieldName+"Y","previousChange")),a<r?(t.droppedFromOpen=!0,e.defaultState.copyFrom(this._dropFromOpenState),e.setState(this._dropFromOpenState,0)):(t.droppedFromOpen=!1,e.defaultState.copyFrom(this._riseFromOpenState),e.setState(this._riseFromOpenState,0)),s<0?(t.droppedFromPrevious=!0,e.defaultState.copyFrom(this._dropFromPreviousState),e.setState(this._dropFromPreviousState,0)):(t.droppedFromPrevious=!1,e.defaultState.copyFrom(this._riseFromPreviousState),e.setState(this._riseFromPreviousState,0))}}},Object.defineProperty(i.prototype,"columns",{get:function(){return this._columns||(this._columns=new fi(this.createColumnTemplate()),this._disposers.push(new zt(this._columns)),this._disposers.push(this._columns.template)),this._columns},enumerable:!0,configurable:!0}),i.prototype.createColumnTemplate=function(){return new os},Object.defineProperty(i.prototype,"clustered",{get:function(){return this.getPropertyValue("clustered")},set:function(e){this.setPropertyValue("clustered",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dropFromOpenState",{get:function(){return this._dropFromOpenState||(this._dropFromOpenState=this.states.create("dropFromOpenState")),this._dropFromOpenState},set:function(e){this._dropFromOpenState=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dropFromPreviousState",{get:function(){return this._dropFromPreviousState||(this._dropFromPreviousState=this.states.create("dropFromPreviousState")),this._dropFromPreviousState},set:function(e){this._dropFromPreviousState=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"riseFromOpenState",{get:function(){return this._riseFromOpenState||(this._riseFromOpenState=this.states.create("riseFromOpenState")),this._riseFromOpenState},set:function(e){this._riseFromOpenState=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"riseFromPreviousState",{get:function(){return this._riseFromPreviousState||(this._riseFromPreviousState=this.states.create("riseFromPreviousState")),this._riseFromPreviousState},set:function(e){this._riseFromPreviousState=e},enumerable:!0,configurable:!0}),i.prototype.updateLegendValue=function(e,t){var r=this;if(n.prototype.updateLegendValue.call(this,e,t),this.legendDataItem){var a=this.legendDataItem.marker,s,o;e&&(e.droppedFromOpen?s=this._dropFromOpenState:s=this._riseFromOpenState,e.droppedFromPrevious?o=this._dropFromPreviousState:o=this._riseFromPreviousState),ue(a.children.iterator(),function(l){e?(l.setState(o),l.setState(s)):(l.setState(r._riseFromPreviousState),l.setState(r._riseFromOpenState))})}},i.prototype.createLegendMarker=function(e){var t=e.pixelWidth,r=e.pixelHeight;e.removeChildren();var a=e.createChild(Hn);a.shouldClone=!1,Ci(this,a,vi),a.copyFrom(this.columns.template),a.padding(0,0,0,0),a.width=t,a.height=r;var s=e.dataItem;s.color=this.fill,s.colorOrig=this.fill},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.columns.template.copyFrom(e.columns.template)},i.prototype.getBulletLocationX=function(e,t){if(this.baseAxis==this.xAxis){var r=e.locationX;C(r)||(r=.5);var a=this.getEndLocation(e.dataItem),s=this.getStartLocation(e.dataItem);return a-(a-s)*r}else return n.prototype.getBulletLocationX.call(this,e,t)},i.prototype.getBulletLocationY=function(e,t){if(this.baseAxis==this.yAxis){var r=e.locationY;C(r)||(r=.5);var a=this.getEndLocation(e.dataItem),s=this.getStartLocation(e.dataItem);return a-(a-s)*r}else return n.prototype.getBulletLocationY.call(this,e,t)},i.prototype.getAdjustedXLocation=function(e,t,r){return C(r)||(e?r=e.locations[t]:r=.5),this._endLocation-(this._endLocation-this._startLocation)*(1-r)},i.prototype.getAdjustedYLocation=function(e,t,r){return C(r)||(e?r=e.locations[t]:r=.5),this._endLocation-(this._endLocation-this._startLocation)*r},i.prototype.fixVerticalCoordinate=function(e){var t=this.columns.template.pixelPaddingBottom,r=this.columns.template.pixelPaddingTop,a=-r,s=this.yAxis.axisLength+t;return ke(e,a,s)},i.prototype.fixHorizontalCoordinate=function(e){var t=this.columns.template.pixelPaddingLeft,r=this.columns.template.pixelPaddingRight,a=-t,s=this.xAxis.axisLength+r;return ke(e,a,s)},i.prototype.disposeData=function(){n.prototype.disposeData.call(this),this.columns.clear()},i}(is);V.registeredClasses.ColumnSeries=Ma;V.registeredClasses.ColumnSeriesDataItem=ka;var av=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="TreeMapSeriesDataItem",e.applyTheme(),e}return Object.defineProperty(i.prototype,"parentName",{get:function(){var e=this.treeMapDataItem;if(e&&e.parent)return e.parent.name},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){var e=this.treeMapDataItem;if(e)return e.value},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"treeMapDataItem",{get:function(){return this._dataContext},enumerable:!0,configurable:!0}),i.prototype.hide=function(e,t,r,a){var s=this.treeMapDataItem;return s&&s.hide(e),n.prototype.hide.call(this,e,t,r,a)},i.prototype.show=function(e,t,r){var a=this.treeMapDataItem;return a&&a.show(e,t,r),n.prototype.show.call(this,e,t,r)},i}(ka),gd=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="TreeMapSeries",e.applyTheme(),e.fillOpacity=1,e.strokeOpacity=1,e.minBulletDistance=0,e.columns.template.tooltipText="{parentName} {name}: {value}",e.columns.template.configField="config";var t=new Ot;return e.stroke=t.getFor("background"),e.dataFields.openValueX="x0",e.dataFields.valueX="x1",e.dataFields.openValueY="y0",e.dataFields.valueY="y1",e.sequencedInterpolation=!1,e.showOnInit=!1,e.columns.template.pixelPerfect=!1,e}return i.prototype.processDataItem=function(e,t){t.seriesDataItem=e,n.prototype.processDataItem.call(this,e,t)},i.prototype.createDataItem=function(){return new av},i.prototype.show=function(e){if(!this.preventShow){var t=this.defaultState.transitionDuration;return C(e)&&(t=e),this.dataItems.each(function(r){r.show(e)}),n.prototype.showReal.call(this,t)}},i.prototype.hide=function(e){var t=this.defaultState.transitionDuration;C(e)&&(t=e);var r=n.prototype.hideReal.call(this,t);return this.dataItems.each(function(a){a.hide(e)}),r},i.prototype.processValues=function(){},i.prototype.getStartLocation=function(e){return 0},i.prototype.getEndLocation=function(e){return 1},i.prototype.dataChangeUpdate=function(){},i.prototype.processConfig=function(e){e&&(!T(e.dataFields)||!Zt(e.dataFields))&&(e.dataFields={}),n.prototype.processConfig.call(this,e)},i.prototype.createLegendMarker=function(e){var t=e.pixelWidth,r=e.pixelHeight;e.removeChildren();var a=e.createChild(Hn);a.shouldClone=!1,Ci(this,a,vi),a.padding(0,0,0,0),a.width=t,a.height=r;var s=e.dataItem;s.color=a.fill,s.colorOrig=a.fill},i.prototype.disableUnusedColumns=function(e){n.prototype.disableUnusedColumns.call(this,e),e.column&&(e.column.__disabled=!1)},i}(Ma);V.registeredClasses.TreeMapSeries=gd;V.registeredClasses.TreeMapSeriesDataItem=av;var Ax=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.rows=[],e.className="TreeMapDataItem",e.values.value={workingValue:0},e.values.x0={},e.values.y0={},e.values.x1={},e.values.y1={},e.hasChildren.children=!0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,e.label&&(e.label.dataItem=this),e.valueLabel&&(e.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),i.prototype.getDuration=function(){return 0},Object.defineProperty(i.prototype,"value",{get:function(){var e=0;return!this.children||this.children.length==0?e=this.values.value.workingValue:ue(this.children.iterator(),function(t){var r=t.value;C(r)&&(e+=r)}),e},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"percent",{get:function(){return this.parent?this.value/this.parent.value*100:100},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"x0",{get:function(){return this.values.x0.value},set:function(e){this.setValue("x0",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"x1",{get:function(){return this.values.x1.value},set:function(e){this.setValue("x1",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y0",{get:function(){return this.values.y0.value},set:function(e){this.setValue("y0",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y1",{get:function(){return this.values.y1.value},set:function(e){this.setValue("y1",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.properties.name},set:function(e){this.setProperty("name",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"children",{get:function(){return this.properties.children},set:function(e){this.setProperty("children",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"level",{get:function(){return this.parent?this.parent.level+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"color",{get:function(){var e=this.properties.color;return e==null&&this.parent&&(e=this.parent.color),e==null&&this.component&&(e=this.component.colors.getIndex(this.component.colors.step*this.index)),e},set:function(e){this.setProperty("color",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this.color},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"series",{get:function(){return this._series},set:function(e){e!=this._series&&(this._series&&(this.component.series.removeValue(this._series),this._series.dispose()),this._series=e,this._disposers.push(e))},enumerable:!0,configurable:!0}),i.prototype.hide=function(e,t,r,a){this.setWorkingValue("value",0),this.children&&this.children.each(function(o){o.hide(e,t,r,a)});var s=this.seriesDataItem;return s&&s.bullets.each(function(o,l){l.hide(),l.preventShow=!0}),n.prototype.hide.call(this,e,t,r,a)},i.prototype.show=function(e,t,r){this.setWorkingValue("value",this.values.value.value),this.children&&this.children.each(function(s){s.show(e,t,r)});var a=this.seriesDataItem;return a&&a.bullets.each(function(s,o){o.preventShow=!1}),n.prototype.show.call(this,e,t,r)},i}(lc),jx=function(n){W(i,n);function i(){var e=n.call(this)||this;e.layoutAlgorithm=e.squarify,e.zoomable=!0,e.className="TreeMap",e._usesData=!0,e.maxLevels=2,e.currentLevel=0,e.hideParentColumns=!1,e.colors=new Uo,e.sorting="descending";var t=e.xAxes.push(new dt);t.title.disabled=!0,t.strictMinMax=!0;var r=t.renderer;r.inside=!0,r.labels.template.disabled=!0,r.ticks.template.disabled=!0,r.grid.template.disabled=!0,r.axisFills.template.disabled=!0,r.minGridDistance=100,r.line.disabled=!0,r.baseGrid.disabled=!0;var a=e.yAxes.push(new dt);a.title.disabled=!0,a.strictMinMax=!0;var s=a.renderer;s.inside=!0,s.labels.template.disabled=!0,s.ticks.template.disabled=!0,s.grid.template.disabled=!0,s.axisFills.template.disabled=!0,s.minGridDistance=100,s.line.disabled=!0,s.baseGrid.disabled=!0,s.inversed=!0,e.xAxis=t,e.yAxis=a;var o=new gd;return e.seriesTemplates=new To(o),o.virtualParent=e,e._disposers.push(new Qa(e.seriesTemplates)),e._disposers.push(o),e.zoomOutButton.events.on("hit",function(){e.zoomToChartDataItem(e._homeDataItem)},void 0,!1),e.seriesTemplates.events.on("insertKey",function(l){l.newValue.isTemplate=!0},void 0,!1),e.applyTheme(),e}return Object.defineProperty(i.prototype,"navigationBar",{get:function(){return this._navigationBar},set:function(e){var t=this;this._navigationBar!=e&&(this._navigationBar=e,e.parent=this,e.toBack(),e.links.template.events.on("hit",function(r){var a=r.target.dataItem.dataContext;a.isDisposed()||(t.zoomToChartDataItem(a),t.createTreeSeries(a))},void 0,!0),this._disposers.push(e))},enumerable:!0,configurable:!0}),i.prototype.validateData=function(){this.series.clear(),this._tempSeries=[],n.prototype.validateData.call(this),this._homeDataItem&&this._homeDataItem.dispose();var e=this.dataItems.template.clone();this._homeDataItem=e,ue(this.dataItems.iterator(),function(a){a.parent=e}),e.children=this.dataItems,e.x0=0,e.y0=0,e.name=this._homeText;var t=1e3,r=Math.round(t*this.pixelHeight/this.pixelWidth/10)*10||
221e3;e.x1=t,e.y1=r,this.xAxis.min=0,this.xAxis.max=t,this.xAxis.getMinMax(),this.yAxis.min=0,this.yAxis.max=r,this.yAxis.getMinMax(),this.layoutItems(e),this.createTreeSeries(e),this.feedLegend()},i.prototype.layoutItems=function(e,t){if(e){var r=e.children;t||(t=this.sorting),t=="ascending"&&r.values.sort(function(l,u){return l.value-u.value}),t=="descending"&&r.values.sort(function(l,u){return u.value-l.value}),this._updateDataItemIndexes(0),this.layoutAlgorithm(e);for(var a=0,s=r.length;a<s;a++){var o=r.getIndex(a);o.children&&this.layoutItems(o)}}},i.prototype.createTreeSeries=function(e){var t=this;this._tempSeries=[];for(var r=[e],a=e.parent;a!=null;)this.initSeries(a),r.push(a),a=a.parent;r.reverse(),this.navigationBar&&(this.navigationBar.data=r),this.createTreeSeriesReal(e),De(this._tempSeries,function(s){t.series.indexOf(s)==-1&&t.series.push(s),s.zIndex=s.level})},i.prototype.createTreeSeriesReal=function(e){if(e.children){var t=e.level;if(t<this.currentLevel+this.maxLevels){this.initSeries(e);for(var r=0;r<e.children.length;r++){var a=e.children.getIndex(r);a.children&&this.createTreeSeriesReal(a)}}}},i.prototype.setData=function(e){this.currentLevel=0,this.currentlyZoomed=void 0,this.xAxis.start=0,this.xAxis.end=1,this.yAxis.start=0,this.yAxis.end=1,n.prototype.setData.call(this,e)},i.prototype.seriesAppeared=function(){return!0},i.prototype.initSeries=function(e){var t=this;if(!e.series){var r=void 0,a=this.seriesTemplates.getKey(e.level.toString());a?r=a.clone():r=this.series.create(),r.dataItem.dataContext=e,r.name=e.name,r.parentDataItem=e,e.series=r;var s=e.level;r.level=s;var o=e.dataContext;o&&(r.config=o.config),this.dataUsers.removeValue(r),r.data=e.children.values,r.fill=e.color,r.columnsContainer.hide(0),r.bulletsContainer.hide(0),r.columns.template.adapter.add("fill",function(l,u){var h=u.dataItem;if(h){var d=h.treeMapDataItem;if(d)return u.fill=d.color,u.adapter.remove("fill"),d.color}}),this.zoomable&&(e.level>this.currentLevel||e.children&&e.children.length>0)&&(r.columns.template.cursorOverStyle=Ki.pointer,this.zoomable&&r.columns.template.events.on("hit",function(l){var u=l.target.dataItem;e.level>t.currentLevel?t.zoomToChartDataItem(u.treeMapDataItem.parent):t.zoomToSeriesD
22ataItem(u)},this,void 0))}this._tempSeries.push(e.series)},i.prototype.toggleBullets=function(e){var t=this;ue(this.series.iterator(),function(r){t._tempSeries.indexOf(r)==-1?(r.columnsContainer.hide(),r.bulletsContainer.hide(e)):(r.columnsContainer.show(),r.bulletsContainer.show(e),r.dataItems.each(function(a){a.bullets.each(function(s,o){o.show()})}),r.level<t.currentLevel?(t.hideParentColumns&&r.columnsContainer.hide(),r.bulletsContainer.hide(e)):r.level==t.currentLevel&&t.maxLevels>1&&r.dataItems.each(function(a){a.treeMapDataItem.children&&a.bullets.each(function(s,o){o.hide()})}))})},i.prototype.zoomToSeriesDataItem=function(e){this.zoomToChartDataItem(e.treeMapDataItem)},i.prototype.zoomToChartDataItem=function(e){var t=this;e||(e=this._homeDataItem);var r=this.zoomOutButton;if(r&&(e!=this._homeDataItem?r.show():r.hide()),e&&e.children){this.xAxis.zoomToValues(e.x0,e.x1),this.yAxis.zoomToValues(e.y0,e.y1),this.currentLevel=e.level,this.currentlyZoomed=e,this.createTreeSeries(e);var a=this.xAxis.rangeChangeAnimation||this.yAxis.rangeChangeAnimation;a&&!a.isDisposed()&&!a.isFinished()?(this._dataDisposers.push(a),a.events.once("animationended",function(){t.toggleBullets()})):this.toggleBullets()}},i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("TreeMap chart"))},i.prototype.createDataItem=function(){return new Ax},Object.defineProperty(i.prototype,"maxLevels",{get:function(){return this.getPropertyValue("maxLevels")},set:function(e){this.setPropertyValue("maxLevels",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"currentLevel",{get:function(){return this.getPropertyValue("currentLevel")},set:function(e){this.setPropertyValue("currentLevel",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideParentColumns",{get:function(){return this.getPropertyValue("hideParentColumns")},set:function(e){this.setPropertyValue("hideParentColumns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sorting",{get:function(){return this.getPropertyValue("sorting")},set:function(e){this.setPropertyValue("sorting",e,!0)},enumerable:!0,configurable:!0}),i.prototype.createSeries=function(){return new gd},Object.defineProperty(i.prototype,"homeText",{get:function(){return this._homeText},set:function(e){this._homeText=e,this._homeDataItem&&(this._homeDataItem.name=this._homeText)},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){if(e){if(T(e.layoutAlgorithm)&&bt(e.layoutAlgorithm))switch(e.layoutAlgorithm){case"squarify":e.layoutAlgorithm=this.squarify;break;case"binaryTree":e.layoutAlgorithm=this.binaryTree;break;case"slice":e.layoutAlgorithm=this.slice;break;case"dice":e.layoutAlgorithm=this.dice;break;case"sliceDice":e.layoutAlgorithm=this.sliceDice;break;default:delete e.layoutAlgorithm;break}T(e.navigationBar)&&!T(e.navigationBar.type)&&(e.navigationBar.type="NavigationBar"),n.prototype.processConfig.call(this,e)}},i.prototype.validateLayout=function(){n.prototype.validateLayout.call(this),this.layoutItems(this.currentlyZoomed)},i.prototype.validateDataItems=function(){n.prototype.validateDataItems.call(this),this.layoutItems(this._homeDataItem),ue(this.series.iterator(),function(e){e.validateRawData()}),this.zoomToChartDataItem(this._homeDataItem)},i.prototype.binaryTree=function(e){var t=e.children,r,a=t.length,s,o=new Array(a+1);for(o[0]=s=r=0;r<a;++r)o[r+1]=s+=t.getIndex(r).value;a>0&&l(0,a,e.value,e.x0,e.y0,e.x1,e.y1);function l(u,h,d,f,p,v,m){if(u>=h-1){var x=t.getIndex(u);x.x0=f,x.y0=p,x.x1=v,x.y1=m;return}for(var w=o[u],P=d/2+w,O=u+1,j=h-1;O<j;){var M=O+j>>>1;o[M]<P?O=M+1:j=M}P-o[O-1]<o[O]-P&&u+1<O&&--O;var F=o[O]-w,g=d-F;if(d==0){var x=t.getIndex(u);x.x0=f,x.y0=p,x.x1=v,x.y1=m;return}if(v-f>m-p){var L=(f*g+v*F)/d;l(u,O,F,f,p,L,m),l(O,h,g,L,p,v,m)}else{var N=(p*g+m*F)/d;l(u,O,F,f,p,v,N),l(O,h,g,f,N,v,m)}}},i.prototype.slice=function(e){for(var t=e.x0,r=e.x1,a=e.y0,s=e.y1,o=e.children,l,u=-1,h=o.length,d=e.value&&(s-a)/e.value;++u<h;)l=o.getIndex(u),l.x0=t,l.x1=r,l.y0=a,a+=l.value*d,l.y1=a},i.prototype.dice=function(e){for(var t=e.x0,r=e.x1,a=e.y0,s=e.y1,o=e.children,l,u=-1,h=o.length,d=e.value&&(r-t)/e.value;++u<h;)l=o.getIndex(u),l.y0=a,l.y1=s,l.x0=t,t+=l.value*d,l.x1=t},i.prototype.sliceDice=function(e){e.level&1?this.slice(e):this.dice(e)},i.prototype.squarify=function(e){for(var t=(1+Math.sqrt(5))/2,r=e.x0,a=e.x1,s=e.y0,o=e.y1,l=e.children,u,h=0,d=0,f=l.length,p,v,m=e.value,x,w,P,O,j,M,F;h<f;){p=a-r,v=o-s;do x=l.getIndex(d++).value;while(!x&&d<f);for(w=P=x,M=Math.max(v/p,p/v)/(m*t),F=x*x*M,j=Math.max(P/F,F/w);d<f;++d){if(x+=u=l.getIndex(d).value,u<w&&(w=u),u>P&&(P=u),F=x*x*M,O=Math.max(P/F,F/w),O>j){x-=u;break}j=O}var g=this.dataItems.template.clone();g.value=x,g.dice=p<v,g.children=l.slice(h,d),g.x0=r,g.y0=s,g.x1=a,g.y1=o,g.dice?(g.y1=m?s+=v*x/m:o,this.dice(g)):(g.x1=m?r+=p*x/m:a,this.slice(g)),m-=x,h=d}},i.prototype.handleSeriesAdded2=function(){},i.prototype.handleDataItemValueChange=function(e,t){t=="value"&&this.invalidateDataItems()},i.prototype.handleDataItemWorkingValueChange=function(e,t){t=="value"&&this.invalidateDataItems()},i.prototype.getLegendLevel=function(e){if(e&&e.children){if(e.children.length>1)return e;if(e.children.length==1){var t=e.children.getIndex(0);return t.children?this.getLegendLevel(t):e}else return e}},i.prototype.handleLegendSeriesAdded=function(e){},Object.defineProperty(i.prototype,"homeDataItem",{get:function(){return this._homeDataItem},enumerable:!0,configurable:!0}),i.prototype.feedLegend=function(){var e=this.legend;if(e){e.dataFields.name="name";var t=this.getLegendLevel(this._homeDataItem);if(t){var r=[];t.children.each(function(a){r.push(a)}),e.data=r}}},i.prototype.disposeData=function(){n.prototype.disposeData.call(this),this._homeDataItem=void 0,this.series.clear(),this.navigationBar&&this.navigationBar.disposeData(),this.xAxis.disposeData(),this.yAxis.disposeData()},i.prototype.getExporting=function(){var e=this,t=n.prototype.getExporting.call(this);return t.adapter.add("formatDataFields",function(r){return(r.format=="csv"||r.format=="xlsx")&&T(e.dataFields.children)&&delete r.dataFields[e.dataFields.children],r}),t},i}(oa);V.registeredClasses.TreeMap=jx;var sv=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._chart=new Ni,e.className="AxisRendererX3D",e._disposers.push(e._chart),e.applyTheme(),e}return i.prototype.updateGridElement=function(e,t,r){t=t+(r-t)*e.location;var a=this.positionToPoint(t);if(e.element){var s=this.chart.dx3D||0,o=this.chart.dy3D||0,l=this.getHeight();e.path=Oe({x:s,y:o})+ie({x:s,y:l+o})+ie({x:0,y:l})}this.positionItem(e,a),this.toggleVisibility(e,t,0,1)},i.prototype.updateBaseGridElement=function(){n.prototype.updateBaseGridElement.call(this);var e=this.getHeight(),t=this.chart.dx3D||0,r=this.chart.dy3D||0;this.baseGrid.path=Oe({x:t,y:r})+ie({x:0,y:0})+ie({x:0,y:e})},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){e&&this._chart.set(e,e.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),i.prototype.handle3DChanged=function(e){(e.property=="depth"||e.property=="angle")&&this.invalidate()},i}(aa);V.registeredClasses.AxisRendererX3D=sv;var Vx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._chart=new Ni,e.className="AxisRendererY3D",e._disposers.push(e._chart),e.applyTheme(),e}return i.prototype.updateGridElement=function(e,t,r){t=t+(r-t)*e.location;var a=this.positionToPoint(t);if(e.element){var s=this.chart.dx3D||0,o=this.chart.dy3D||0,l=this.getWidth();e.path=Oe({x:0,y:0})+ie({x:s,y:o})+ie({x:l+s,y:o})}this.positionItem(e,a),this.toggleVisibility(e,t,0,1)},i.prototype.updateBaseGridElement=function(){n.prototype.updateBaseGridElement.call(this);var e=this.chart.dx3D||0,t=this.chart.dy3D||0,r=this.getWidth();this.baseGrid.path=Oe({x:0,y:0})+ie({x:r,y:0})+ie({x:r+e,y:t})},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){e&&this._chart.set(e,e.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),i.prototype.handle3DChanged=function(e){(e.property=="depth"||e.property=="angle")&&this.invalidate()},i}(gn),ov=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Column3D",e}return i.prototype.createAssets=function(){this.column3D=this.createChild(lx),this.column3D.shouldClone=!1,this.column3D.strokeOpacity=0,this.column=this.column3D},i.prototype.validate=function(){n.prototype.validate.call(this),this.column3D&&(this.column3D.width=this.pixelWidth,this.column3D.height=this.pixelHeight,this.column3D.invalid&&this.column3D.validate())},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.column3D&&this.column3D.copyFrom(e.column3D)},i.prototype.setFill=function(e){n.prototype.setFill.call(this,e),this.column.fill=e},i}(os);V.registeredClasses.Column3D=ov;var Fx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="ColumnSeries3DDataItem",e.applyTheme(),e}return i}(ka),md=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="ColumnSeries3D",e.columns.template.column3D.applyOnClones=!0,e.columns.template.hiddenState.properties.visible=!0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"columnsContainer",{get:function(){var e=this.chart;return e&&e.columnsContainer&&e.leftAxesContainer.layout!="vertical"&&e.rightAxesContainer.layout!="vertical"&&e.bottomAxesContainer.layout!="horizontal"&&e.topAxesContainer.layout!="horizontal"?e.columnsContainer:this._columnsContainer},enumerable:!0,configurable:!0}),i.prototype.validateDataElementReal=function(e){n.prototype.validateDataElementReal.call(this,e),e.column&&(e.column.dx=this.dx,e.column.dy=this.dy,e.column.visible=this.visible)},i.prototype.validateDataElements=function(){n.prototype.validateDataElements.call(this),this.chart&&this.chart.invalidateLayout()},i.prototype.createColumnTemplate=function(){return new ov},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0);var t=this.columns.template;t.column3D.depth=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")}
22,set:function(e){this.setPropertyValue("angle",e);var t=this.columns.template;t.column3D.angle=e},enumerable:!0,configurable:!0}),i}(Ma);V.registeredClasses.ColumnSeries3D=md;V.registeredClasses.ColumnSeries3DDataItem=Fx;(function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="XYChart3DDataItem",e.applyTheme(),e}return i})(lc);var Ix=function(n){W(i,n);function i(){var e=n.call(this)||this;e._axisRendererX=sv,e._axisRendererY=Vx,e.className="XYChart3D",e.depth=30,e.angle=30;var t=e.seriesContainer.createChild(Ee);return t.shouldClone=!1,t.isMeasured=!1,t.layout="none",e.columnsContainer=t,e.columnsContainer.mask=e.createChild(ot),e.applyTheme(),e}return i.prototype.updateSeriesMasks=function(){if(n.prototype.updateSeriesMasks.call(this),ko()){var e=this.columnsContainer,t=e.mask;e.mask=void 0,e.mask=t}},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dx3D",{get:function(){return xe(this.angle)*this.depth},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dy3D",{get:function(){return-be(this.angle)*this.depth},enumerable:!0,configurable:!0}),i.prototype.validateLayout=function(){n.prototype.validateLayout.call(this),this.fixColumns()},i.prototype.fixLayout=function(){this.chartContainer.paddingTop=-this.dy3D,this.chartContainer.paddingRight=this.dx3D,this.scrollbarX&&(this.scrollbarX.dy=this.dy3D,this.scrollbarX.dx=this.dx3D),this.scrollbarY&&(this.scrollbarY.dy=this.dy3D,this.scrollbarY.dx=this.dx3D),this.fixColumns(),n.prototype.fixLayout.call(this)},i.prototype.fixColumns=function(){var e=this,t=1,r=0;ue(this.series.iterator(),function(s){s instanceof md&&(!s.clustered&&r>0&&t++,s.depthIndex=t-1,r++)});var a=0;ue(this.series.iterator(),function(s){if(s instanceof md){s.depth=e.depth/t,s.angle=e.angle,s.columnsContainer==e.columnsContainer&&(s.dx=e.depth/t*xe(e.angle)*s.depthIndex,s.dy=-e.depth/t*be(e.angle)*s.depthIndex);var o=!1;(s.baseAxis==s.xAxis&&s.xAxis.renderer.inversed||s.baseAxis==s.yAxis&&s.yAxis.renderer.inversed)&&(o=!0);var l=1;s.dataItems.each(function(u){var h=u.column;h&&(o?h.zIndex=1e3*(1e3-l)+a-s.depthIndex*100:h.zIndex=1e3*l+a-s.depthIndex*100),l++}),o?a--:a++}}),this.maskColumns()},i.prototype.processConfig=function(e){if(e&&T(e.series)&&Ui(e.series))for(var t=0,r=e.series.length;t<r;t++)e.series[t].type=e.series[t].type||"ColumnSeries3D";n.prototype.processConfig.call(this,e)},i.prototype.maskColumns=function(){var e=this.plotContainer.pixelWidth,t=this.plotContainer.pixelHeight,r=this.dx3D,a=this.dy3D,s=Oe({x:0,y:0})+ie({x:r,y:a})+ie({x:e+r,y:a})+ie({x:e+r,y:t+a})+ie({x:e,y:t})+ie({x:e,y:t})+ie({x:0,y:t})+Ai(),o=this.columnsContainer;o&&o.mask&&(o.mask.path=s)},i}(oa);V.registeredClasses.XYChart3D=Ix;var Ex=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="HeatLegend",e.markerContainer=e.createChild(Ee),e.markerContainer.shouldClone=!1,e.markerCount=1;var t=new Hn;return t.minHeight=20,t.minWidth=20,t.interactionsEnabled=!1,t.fillOpacity=1,t.cornerRadius(0,0,0,0),e.markerContainer.minHeight=20,e.markerContainer.minWidth=20,e.orientation="horizontal",e.markers=new fi(t),e._disposers.push(new zt(e.markers)),e._disposers.push(e.markers.template),e.applyTheme(),e}return i.prototype.getMinFromRules=function(e){var t=this.series;if(t){var r;return Yr(t.heatRules.iterator(),function(a){return a.property==e?(r=a.min,!1):!0}),r}},i.prototype.getMaxFromRules=function(e){var t=this.series;if(t){var r;return ue(t.heatRules.iterator(),function(a){return a.property==e?(r=a.max,!1):!0}),r}},i.prototype.validate=function(){n.prototype.validate.call(this),this.valueAxis.renderer.inversed=this.reverseOrder;var e=this.series,t=this.minColor,r=this.maxColor;if(T(t)||(t=qr(this.getMinFromRules("fill"))),T(r)||(r=qr(this.getMaxFromRules("fill"))),e){var a=e.fill;!T(t)&&a instanceof wt&&(t=a),!T(r)&&a instanceof wt&&(r=a)}T(r)||(r=qr(this.getMaxFromRules("fill")));var s=Bt(this.getMinFromRules("fillOpacity"));C(s)||(s=1);var o=Bt(this.getMaxFromRules("fillOpacity"));C(o)||(o=1);var l=Bt(this.getMinFromRules("strokeOpacity"));C(l)||(l=1);var u=Bt(this.getMaxFromRules("strokeOpacity"));C(u)||(u=1);for(var h=qr(this.getMinFromRules("stroke")),d=qr(this.getMaxFromRules("stroke")),f=0;f<this.markerCount;f++){var p=this.markers.getIndex(f);if(p||(p=this.markers.create(),p.parent=this.markerContainer,p.height=pe(100),p.width=pe(100)),this.markerCount==1){var v=new en;
22if(this.reverseOrder?(v.addColor(r,o),v.addColor(t,s)):(v.addColor(t,s),v.addColor(r,o)),this.orientation=="vertical"&&(v.rotation=-90),p.fill=v,T(h)&&T(d)){var m=new en;this.reverseOrder?(m.addColor(d,u),m.addColor(h,l)):(m.addColor(h,l),m.addColor(d,u)),this.orientation=="vertical"&&(m.rotation=-90),p.stroke=m}}else{var x=f;this.reverseOrder&&(x=this.markerCount-f-1);var w=new wt(Hl(t.rgb,r.rgb,x/this.markerCount));p.fill=w;var P=s+(o-s)*x/this.markerCount;if(p.fillOpacity=P,T(h)&&T(d)){var O=new wt(Hl(h.rgb,d.rgb,x/this.markerCount));p.stroke=O;var j=l+(u-l)*x/this.markerCount;p.strokeOpacity=j}}}var M=this.valueAxis.renderer;this.markerCount>1&&(this.orientation=="horizontal"?M.minGridDistance=this.measuredWidth/this.markerCount:M.minGridDistance=this.measuredHeight/this.markerCount),this.valueAxis.invalidate();for(var f=this.markerCount,F=this.markers.length;f<F;f++)this.markers.getIndex(f).parent=void 0},Object.defineProperty(i.prototype,"minColor",{get:function(){return this.getPropertyValue("minColor")},set:function(e){e instanceof wt||(e=qr(e)),this.setColorProperty("minColor",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxColor",{get:function(){return this.getPropertyValue("maxColor")},set:function(e){e instanceof wt||(e=qr(e)),this.setColorProperty("maxColor",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"markerCount",{get:function(){return this.getPropertyValue("markerCount")},set:function(e){this.setPropertyValue("markerCount",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e),this.valueAxis.min=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e),this.valueAxis.max=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0);var t=this.markerContainer,r=this.valueAxis;e=="horizontal"?(T(this.width)||(this.width=200),this.height=void 0,r.width=pe(100),r.height=void 0,r.tooltip.pointerOrientation="vertical",this.layout="vertical",t.width=pe(100),t.height=void 0,r.renderer instanceof aa||(r.renderer=new aa)):(T(this.height)||(this.height=200),this.width=void 0,this.layout="horizontal",t.width=void 0,t.height=pe(100),r.height=pe(100),r.width=void 0,r.tooltip.pointerOrientation="horizontal",r.renderer instanceof gn||(r.renderer=new gn),r.renderer.inside=!0,r.renderer.labels.template.inside=!0,this.markerContainer.reverseOrder=!0);var a=r.renderer;a.grid.template.disabled=!0,a.axisFills.template.disabled=!0,a.baseGrid.disabled=!0,a.labels.template.padding(2,3,2,3),a.minHeight=void 0,a.minWidth=void 0,this.markerContainer.layout=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueAxis",{get:function(){return this._valueAxis||(this.valueAxis=this.createChild(dt),this.valueAxis.shouldClone=!1),this._valueAxis},set:function(e){this._valueAxis=e,e.parent=this,e.strictMinMax=!0,this.orientation=this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"series",{get:function(){return this._series},set:function(e){var t=this;this._series=e;var r="value";try{var a=e.heatRules.getIndex(0).dataField;a&&(r=a)}catch{}this.updateMinMax(e.dataItem.values[r].low,e.dataItem.values[r].high),e.dataItem.events.on("calculatedvaluechanged",function(s){t.updateMinMax(e.dataItem.values[r].low,e.dataItem.values[r].high)},void 0,!1),e.heatRules.events.on("inserted",this.invalidate,this,!1),e.heatRules.events.on("removed",this.invalidate,this,!1)},enumerable:!0,configurable:!0}),i.prototype.updateMinMax=function(e,t){var r=this.valueAxis;C(this.minValue)||(r.min=e,r.invalidate()),C(this.maxValue)||(r.max=t,r.invalidate())},i.prototype.processConfig=function(e){if(e&&T(e.series)&&bt(e.series)&&bt(e.series))if(this.map.hasKey(e.series))e.series=this.map.getKey(e.series);else{var t=e.series,r=this.map.events.on("insertKey",function(a){a.key==t&&(this.series=a.newValue,r.dis
22pose())},this);this._disposers.push(r),delete e.series}n.prototype.processConfig.call(this,e)},i}(Ee);V.registeredClasses.HeatLegend=Ex;var Jl=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="Candlestick",e.layout="none",e}return i.prototype.createAssets=function(){n.prototype.createAssets.call(this),this.lowLine=this.createChild(pn),this.lowLine.shouldClone=!1,this.highLine=this.createChild(pn),this.highLine.shouldClone=!1},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.lowLine&&this.lowLine.copyFrom(e.lowLine),this.highLine&&this.highLine.copyFrom(e.highLine)},i}(os);V.registeredClasses.Candlestick=Jl;var gc=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.values.lowValueX={},e.values.lowValueY={},e.values.highValueX={},e.values.highValueY={},e.className="CandlestickSeriesDataItem",e.applyTheme(),e}return Object.defineProperty(i.prototype,"lowValueX",{get:function(){return this.values.lowValueX.value},set:function(e){this.setValue("lowValueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"lowValueY",{get:function(){return this.values.lowValueY.value},set:function(e){this.setValue("lowValueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"highValueX",{get:function(){return this.values.highValueX.value},set:function(e){this.setValue("highValueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"highValueY",{get:function(){return this.values.highValueY.value},set:function(e){this.setValue("highValueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"closeValueX",{get:function(){return this.values.valueX.value},set:function(e){this.setValue("valueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"closeValueY",{get:function(){return this.values.valueY.value},set:function(e){this.setValue("valueY",e)},enumerable:!0,configurable:!0}),i}(ka),lv=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="CandlestickSeries",e.groupFields.lowValueX="low",e.groupFields.lowValueY="low",e.groupFields.highValueX="high",e.groupFields.highValueY="high",e.strokeOpacity=1;var t=new Ot,r=t.getFor("positive"),a=t.getFor("negative");return e.dropFromOpenState.properties.fill=a,e.dropFromOpenState.properties.stroke=a,e.riseFromOpenState.properties.fill=r,e.riseFromOpenState.properties.stroke=r,e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Candlestick Series"))},i.prototype.createDataItem=function(){return new gc},i.prototype.validateDataElementReal=function(e){n.prototype.validateDataElementReal.call(this,e),this.validateCandlestick(e)},i.prototype.validateCandlestick=function(e){var t=e.column;if(t){var r=t.lowLine,a=t.highLine;if(this.baseAxis==this.xAxis){var s=t.pixelWidth/2;r.x=s,a.x=s;var o=e.getWorkingValue(this.yOpenField),l=e.getWorkingValue(this.yField),u=this.yAxis.getY(e,this.yOpenField),h=this.yAxis.getY(e,this.yField),d=this.yAxis.getY(e,this.yLowField),f=this.yAxis.getY(e,this.yHighField),p=t.pixelY;r.y1=d-p,a.y1=f-p,o<l?(r.y2=u-p,a.y2=h-p):(r.y2=h-p,a.y2=u-p)}if(this.baseAxis==this.yAxis){var v=t.pixelHeight/2;r.y=v,a.y=v;var m=e.getWorkingValue(this.xOpenField),x=e.getWorkingValue(this.xField),w=this.xAxis.getX(e,this.xOpenField),P=this.xAxis.getX(e,this.xField),O=this.xAxis.getX(e,this.xLowField),j=this.xAxis.getX(e,this.xHighField),M=t.pixelX;r.x1=O-M,a.x1=j-M,m<x?(r.x2=w-M,a.x2=P-M):(r.x2=P-M,a.x2=w-M)}ue(this.axisRanges.iterator(),function(F){var g=e.rangesColumns.getKey(F.uid);if(g){var L=g.lowLine;L.x=r.x,L.y=r.y,L.x1=r.x1,L.x2=r.x2,L.y1=r.y1,L.y2=r.y2;var N=g.highLine;N.x=a.x,N.y=a.y,N.x1=a.x1,N.x2=a.x2,N.y1=a.y1,N.y2=a.y2}})}},Object.defineProperty(i.prototype,"xLowField",{get:function(){return this._xLowField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yLowField",{get:function(){return this._yLowField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xHighField",{get:function(){return this._xHighField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yHighField",{get:function(){return this._yHighField},enumerable:!0,configurable:!0}),i.prototype.defineFields=function(){n.prototype.defineFields.call(this);var e=this.xAxis,t=this.yAxis;if(e&&t){if(this.baseAxis==e){var r=Wl(t.axisFieldName);this._yLowField="low"+r+"Y",this._yHighField="high"+r+"Y"}if(this.baseAxis==t){var a=Wl(e.axisFieldName);this._xLowField="low"+a+"X",this._xHighField="high"+a+"X"}this.addValueField(e,this._xValueFields,this._xLowField),this.addValueField(e,this._xValueFields,this._xHighField),this.addValueField(t,this._yValueFields,this._yLowField),this.addValueField(t,this._yValueFields,this._yHighField)}},i.prototype.createLegendMarker=function(e){var t=e.pixelWidth,r=e.pixelHeight;e.removeChildren();var a=e.createChild(Jl);a.shouldClone=!1,a.copyFrom(this.columns.template);var s,o,l=a.lowLine,u=a.highLine;this.baseAxis==this.yAxis?(s=t/3,o=r,l.y=r/2,u.y=r/2,l.x2=t/3,u.x2=t/3,u.x=t/3*2,a.column.x=t/3):(s=t,o=r/3,l.x=t/2,u.x=t/2,l.y2=r/3,u.y2=r/3,u.y=r/3*2,a.column.y=r/3),a.width=s,a.height=o,Ci(this,e,vi),Ci(this.columns.template,a,vi),a.stroke=this.riseFromOpenState.properties.stroke,a.fill=a.stroke;var h=e.dataItem;h.color=a.fill,h.colorOrig=a.fill},i.prototype.createColumnTemplate=function(){return new Jl},i}(Ma);V.registeredClasses.CandlestickSeries=lv;
22V.registeredClasses.CandlestickSeriesDataItem=gc;var bd=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="OHLC",e.layout="none",e}return i.prototype.createAssets=function(){this.openLine=this.createChild(pn),this.openLine.shouldClone=!1,this.highLowLine=this.createChild(pn),this.highLowLine.shouldClone=!1,this.closeLine=this.createChild(pn),this.closeLine.shouldClone=!1},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.openLine&&this.openLine.copyFrom(e.openLine),this.highLowLine&&this.highLowLine.copyFrom(e.highLowLine),this.closeLine&&this.closeLine.copyFrom(e.closeLine)},i}(Jl);V.registeredClasses.OHLC=bd;var uv=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="OHLCSeriesDataItem",e.applyTheme(),e}return i}(gc),Lx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="OHLCSeries",e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("OHLC Series"))},i.prototype.createDataItem=function(){return new uv},i.prototype.validateCandlestick=function(e){var t=e.column;if(t){var r=t.openLine,a=t.highLowLine,s=t.closeLine;if(this.baseAxis==this.xAxis){var o=t.pixelWidth/2;a.x=o,e.getWorkingValue(this.yOpenField),e.getWorkingValue(this.yField);var l=this.yAxis.getY(e,this.yOpenField),u=this.yAxis.getY(e,this.yField),h=this.yAxis.getY(e,this.yLowField),d=this.yAxis.getY(e,this.yHighField),f=t.pixelY;r.y1=l-f,r.y2=l-f,r.x1=0,r.x2=o,s.y1=u-f,s.y2=u-f,s.x1=o,s.x2=2*o,a.y1=d-f,a.y2=h-f}if(this.baseAxis==this.yAxis){var p=t.pixelHeight/2;a.y=p,e.getWorkingValue(this.xOpenField),e.getWorkingValue(this.xField);var v=this.xAxis.getX(e,this.xOpenField),m=this.xAxis.getX(e,this.xField),x=this.xAxis.getX(e,this.xLowField),w=this.xAxis.getX(e,this.xHighField),P=t.pixelX;r.x1=v-P,r.x2=v-P,r.y1=p,r.y2=2*p,s.x1=m-P,s.x2=m-P,s.y1=0,s.y2=p,a.x1=w-P,a.x2=x-P}ue(this.axisRanges.iterator(),function(O){var j=e.rangesColumns.getKey(O.uid);if(j){var M=j.openLine;M.x=r.x,M.y=r.y,M.x1=r.x1,M.x2=r.x2,M.y1=r.y1,M.y2=r.y2;var F=j.closeLine;F.x=s.x,F.y=s.y,F.x1=s.x1,F.x2=s.x2,F.y1=s.y1,F.y2=s.y2;var g=j.highLowLine;g.x=a.x,g.y=a.y,g.x1=a.x1,g.x2=a.x2,g.y1=a.y1,g.y2=a.y2}})}},i.prototype.createLegendMarker=function(e){var t=e.pixelWidth,r=e.pixelHeight;e.removeChildren();var a=e.createChild(bd);a.shouldClone=!1,a.copyFrom(this.columns.template);var s,o,l=a.openLine,u=a.closeLine,h=a.highLowLine;this.baseAxis==this.yAxis?(s=t/3,o=r,h.y=r/2,h.x2=t,l.x=t/3*2,l.y2=r/2,u.x=t/3,u.y2=r,u.y1=r/2):(s=t,o=r/3,h.x=t/2,h.y2=r,l.y=r/3*2,l.x2=t/2,u.y=r/3,u.x2=t,u.x1=t/2),a.width=s,a.height=o,Ci(this,e,vi),Ci(this.columns.template,a,vi),a.stroke=this.riseFromOpenState.properties.stroke;var d=e.dataItem;d.color=a.stroke,d.colorOrig=a.stroke},i.prototype.createColumnTemplate=function(){return new bd},i}(lv);V.registeredClasses.OHLCSeries=Lx;V.registeredClasses.OHLCSeriesDataItem=uv;var hv=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="StepLineSeriesSegment",e}return i.prototype.drawSegment=function(e,t,r,a,s,o){if(e.length>0&&t.length>0)if(s){var l=Oe(e[0]);if(e.length>0)for(var u=1;u<e.length;u++){var h=e[u];u/2==Math.round(u/2)?l+=Oe(h):l+=ie(h)}this.strokeSprite.path=l,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(l=Oe(e[0])+fo(e),l+=ie(t[0])+fo(t),l+=ie(e[0]),l+=Ai(),this.fillSprite.path=l)}else{var l=Oe(e[0])+fo(e);this.strokeSprite.path=l,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(l+=ie(t[0])+fo(t),l+=ie(e[0]),l+=Ai(),this.fillSprite.path=l)}else this.strokeSprite.path="",this.fillSprite.path=""},i}(uc);V.registeredClasses.StepLineSeriesSegment=hv;var dv=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="StepLineSeriesDataItem",e.applyTheme(),e}return i}(Tu),Rx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="StepLineSeries",e.applyTheme(),e.startLocation=0,e.endLocation=1,e}return i.prototype.createDataItem=function(){return new dv},i.prototype.addPoints=function(e,t,r,a,s){var o,l,u,h;this.baseAxis==this.xAxis&&(o=this.startLocation,l=this.endLocation,u=this.getAdjustedXLocation(t,this.yOpenField),h=this.getAdjustedXLocation(t,this.yField)),this.baseAxis==this.yAxis&&(u=this.startLocation,h=this.endLocation,o=this.getAdjustedXLocation(t,this.xOpenField),l=this.getAdjustedXLocation(t,this.xField));var d=this.xAxis.getX(t,r,o),f=this.yAxis.getY(t,a,u),p=this.xAxis.getX(t,r,l),v=this.yAxis.getY(t,a,h);
22if(d=ke(d,-1e5,1e5),f=ke(f,-1e5,1e5),p=ke(p,-1e5,1e5),v=ke(v,-1e5,1e5),!this.noRisers&&e.length>1){var m=e[e.length-1];this.baseAxis==this.xAxis&&(s?e.push({x:m.x,y:v}):e.push({x:d,y:m.y})),this.baseAxis==this.yAxis&&(s?e.push({x:p,y:m.y}):e.push({x:m.x,y:f}))}var x={x:d,y:f},w={x:p,y:v};s?e.push(w,x):e.push(x,w)},i.prototype.drawSegment=function(e,t,r){var a=!1;this.yAxis==this.baseAxis&&(a=!0),e.drawSegment(t,r,this.tensionX,this.tensionY,this.noRisers,a)},i.prototype.createSegment=function(){return new hv},Object.defineProperty(i.prototype,"noRisers",{get:function(){return this.getPropertyValue("noRisers")},set:function(e){this.setPropertyValue("noRisers",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e,!0)},enumerable:!0,configurable:!0}),i}(hc);V.registeredClasses.StepLineSeries=Rx;V.registeredClasses.StepLineSeriesDataItem=dv;var cv=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="RadarColumn",e}return i.prototype.createAssets=function(){this.radarColumn=this.createChild(ts),this.radarColumn.shouldClone=!1,this.radarColumn.strokeOpacity=void 0,this.column=this.radarColumn},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.radarColumn&&this.radarColumn.copyFrom(e.radarColumn)},i.prototype.getTooltipX=function(){var e=this.getPropertyValue("tooltipX");return C(e)?e:this.radarColumn.getTooltipX()},i.prototype.getTooltipY=function(){var e=this.getPropertyValue("tooltipX");return C(e)?e:this.radarColumn.getTooltipY()},i}(os);V.registeredClasses.RadarColumn=cv;var Nx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="ColumnSeriesDataItem",e.applyTheme(),e}return i}(ka),Hx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="RadarColumnSeries",e.applyTheme(),e}return i.prototype.createColumnTemplate=function(){return new cv},i.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),n.prototype.validate.call(this)},i.prototype.disableUnusedColumns=function(e){e&&(e.column&&(e.column.__disabled=!0),ue(this.axisRanges.iterator(),function(t){var r=e.rangesColumns.getKey(t.uid);r&&(r.__disabled=!0)}))},i.prototype.validateDataElementReal=function(e){var t=this,r=this.chart.startAngle,a=this.chart.endAngle,s=this.yField,o=this.yOpenField,l=this.xField,u=this.xOpenField,h,d,f,p,v=this.getStartLocation(e),m=this.getEndLocation(e),x=(a-r)/(this.dataItems.length*(this.end-this.start)),w=e.column;w||(w=this.columns.create(),e.column=w,Ci(this,w,vi),Ci(this.columns.template,w,vi),e.addSprite(w),w.paper=this.paper,this.setColumnStates(w));var P=w.width,O=100;P instanceof mt&&(O=P.percent);var j=de((m-v)*(1-O/100)/2,5);if(v+=j,m-=j,this.xAxis instanceof _i&&this.yAxis instanceof _i)f=Mt({x:this.yAxis.getX(e,s,0,"valueY"),y:this.yAxis.getY(e,s,0,"valueY")}),p=Mt({x:this.yAxis.getX(e,o,1,"valueY"),y:this.yAxis.getY(e,o,1,"valueY")}),h=this.xAxis.getAngle(e,u,0,"valueX"),d=this.xAxis.getAngle(e,l,1,"valueX"),r=r+v*x,a=a-(1-m)*x;else if(this.baseAxis==this.xAxis)f=Mt({x:this.yAxis.getX(e,s,e.locations[s],"valueY"),y:this.yAxis.getY(e,s,e.locations[s],"valueY")}),p=Mt({x:this.yAxis.getX(e,o,e.locations[o],"valueY"),y:this.yAxis.getY(e,o,e.locations[o],"valueY")}),h=this.xAxis.getAngle(e,u,v,"valueX"),d=this.xAxis.getAngle(e,l,m,"valueX"),r=r+v*x,a=a-(1-m)*x;else{if(f=Mt({x:this.yAxis.getX(e,s,v,"valueY"),y:this.yAxis.getY(e,s,v,"valueY")}),p=Mt({x:this.yAxis.getX(e,o,m,"valueY"),y:this.yAxis.getY(e,o,m,"valueY")}),C(P)){var M=Math.abs(f-p);if(M>P){var F=(M-P)/2;f+=F,p-=F}}h=this.xAxis.getAngle(e,l,e.locations[l],"valueX"),d=this.xAxis.getAngle(e,u,e.locations[u],"valueX")}if(d<h){var g=d;d=h,h=g}h=ke(h,r,a),d=ke(d,r,a);var L=w.radarColumn;L.startAngle=h;var N=d-h;N>0?(L.arc=N,L.radius=f,L.innerRadius=p,w.__disabled=!1,w.parent=this.columnsContainer,ue(this.axisRanges.iterator(),function(ye){var H=e.rangesColumns.getKey(ye.uid);H||(H=t.columns.create(),i0(t.columns.template,H,vi),Ci(ye.contents,H,vi),H.dataItem&&Qe(H.dataItem.sprites,H),e.addSprite(H),H.paper=t.paper,t.setColumnStates(H),e.rangesColumns.setKey(ye.uid,H));var z=H.radarColumn;
22z.startAngle=h,z.arc=N,z.radius=f,z.innerRadius=p,z.invalid&&(z.paper=t.paper,z.validate()),H.__disabled=!1,H.parent=ye.contents})):this.disableUnusedColumns(e)},i.prototype.getPoint=function(e,t,r,a,s,o,l){o||(o="valueX"),l||(l="valueY");var u=this.yAxis.getX(e,r,s,l),h=this.yAxis.getY(e,r,s,l),d=Mt({x:u,y:h});d==0&&(d=1e-5);var f=this.xAxis.getAngle(e,t,a,o);return{x:d*xe(f),y:d*be(f)}},i.prototype.getMaskPath=function(){var e=this.yAxis.renderer;return Hs(e.startAngle,e.endAngle-e.startAngle,e.pixelRadius,e.pixelInnerRadius)},i.prototype.positionBulletReal=function(e,t,r){var a=this.xAxis,s=this.yAxis;(t<a.start||t>a.end||r<s.start||r>s.end)&&(e.visible=!1),e.moveTo(this.xAxis.renderer.positionToPoint(t,r))},i.prototype.setXAxis=function(e){n.prototype.setXAxis.call(this,e),this.updateRendererRefs()},i.prototype.setYAxis=function(e){n.prototype.setYAxis.call(this,e),this.updateRendererRefs()},i.prototype.updateRendererRefs=function(){var e=this.xAxis.renderer,t=this.yAxis.renderer;e.axisRendererY=t},i}(Ma);V.registeredClasses.RadarColumnSeries=Hx;V.registeredClasses.RadarColumnSeriesDataItem=Nx;var xd=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.slice=e.createChild(ot),e.slice.shouldClone=!1,e.slice.setElement(e.paper.add("path")),e.slice.isMeasured=!1,e.orientation="vertical",e.bottomWidth=pe(100),e.topWidth=pe(100),e.isMeasured=!1,e.width=10,e.height=10,e.expandDistance=0,e.className="FunnelSlice",e.applyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this);var e=this.pixelPaddingTop,t=this.pixelPaddingBottom,r=this.pixelPaddingRight,a=this.pixelPaddingLeft,s=this.pixelWidth-r-a,o=this.pixelHeight-e-t,l=this.expandDistance,u="";if(this.orientation=="vertical"){var h=ri(this.topWidth,s),d=ri(this.bottomWidth,s),f={x:(s-h)/2+a,y:e},p={x:(s+h)/2+a,y:e},v={x:(s+d)/2+a,y:e+o},m={x:(s-d)/2+a,y:e+o},x={x:p.x+(v.x-p.x)/2+l*o,y:p.y+.5*o},w={x:f.x+(m.x-f.x)/2-l*o,y:f.y+.5*o},P=ie(v),O=ie(f);l!=0&&(P=za(v,x),O=za(f,w)),u=Oe(f)+ie(p)+P+ie(m)+O,this.tickPoint={x:p.x+(v.x-p.x)/2,y:p.y+(v.y-p.y)/2}}else{var h=ri(this.topWidth,o),d=ri(this.bottomWidth,o),j={x:a,y:(o-h)/2+e},M={x:a,y:(o+h)/2+e},F={x:a+s,y:(o-d)/2+e},g={x:a+s,y:(o+d)/2+e},x={y:j.y+(F.y-j.y)/2-l*s,x:j.x+.5*s},w={y:M.y+(g.y-M.y)/2+l*s,x:M.x+.5*s},P=ie(F),O=ie(M);l!=0&&(P=za(F,x),O=za(M,w)),u=Oe(M)+ie(j)+P+ie(g)+O,this.tickPoint={y:M.y+(g.y-M.y)/2,x:M.x+(g.x-M.x)/2}}this.slice.path=u,this.invalidateLayout()},i.prototype.getPoint=function(e,t){var r=this.pixelPaddingTop,a=this.pixelPaddingBottom,s=this.pixelPaddingRight,o=this.pixelPaddingLeft,l=this.pixelWidth-s-o,u=this.pixelHeight-r-a;if(this.orientation=="vertical"){var h=ri(this.topWidth,l),d=ri(this.bottomWidth,l),f={x:(l-h)/2+o,y:r},p={x:(l+h)/2+o,y:r},v={x:(l+d)/2+o,y:r+u},m={x:(l-d)/2+o,y:r+u},x=f.x+(m.x-f.x)*t,w=p.x+(v.x-p.x)*t;return{x:x+(w-x)*e,y:p.y+(v.y-p.y)*t}}else{var h=ri(this.topWidth,u),d=ri(this.bottomWidth,u),P={x:o,y:(u-h)/2+r},O={x:o,y:(u+h)/2+r},j={x:o+l,y:(u-d)/2+r},M={x:o+l,y:(u+d)/2+r},F=P.y+(j.y-P.y)*e,g=O.y+(M.y-O.y)*e;return{y:F+(g-F)*t,x:P.x+(j.x-P.x)*e}}},Object.defineProperty(i.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(e){this.setPercentProperty("bottomWidth",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(e){this.setPercentProperty("topWidth",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"expandDistance",{get:function(){return this.getPropertyValue("expandDistance")},set:function(e){this.setPropertyValue("expandDistance",e,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.slice&&this.slice.copyFrom(e.slice)},i}(Ee);V.registeredClasses.FunnelSlice=xd;var fv=function(n){W(i,n);function i(){var e=n.call(this)||this;
22return e._label=new Ni,e._slice=new Ni,e.className="FunnelTick",e.element=e.paper.add("path"),e._disposers.push(e._label),e._disposers.push(e._slice),e.setPropertyValue("locationX",0),e.setPropertyValue("locationY",0),e.applyTheme(),e}return i.prototype.draw=function(){n.prototype.draw.call(this);var e=this.slice,t=e.getPoint(this.locationX,this.locationY);if(t){var r=this.label,a=e.dataItem.component,s=void 0,o=void 0,l=void 0;if(a.orientation=="vertical"){var u=r.pixelX,h=r.pixelY;a.labelsOpposite||(u+=r.maxRight),s=Tr(t,e,this.parent),l=Tr({x:u,y:h},r.parent,this.parent),o={x:r.parent.pixelX-this.length,y:l.y},a.labelsOpposite||(o.x=r.parent.measuredWidth+this.length)}else{var u=r.pixelX,h=r.pixelY;a.labelsOpposite||(h+=r.maxBottom),s=Tr(t,e,this.parent),l=Tr({x:u,y:h},r.parent,this.parent),o={x:l.x,y:r.parent.pixelY-this.length},a.labelsOpposite||(o.y=r.parent.measuredHeight+this.length)}this.path=Oe(s)+ie(o)+ie(l)}},Object.defineProperty(i.prototype,"slice",{get:function(){return this._slice.get()},set:function(e){this._slice.set(e,new di([e.events.on("transformed",this.invalidate,this,!1),e.events.on("validated",this.invalidate,this,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){return this._label.get()},set:function(e){this._label.set(e,e.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(e){this.setPropertyValue("locationX",e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(e){this.setPropertyValue("locationY",e,!1,!0)},enumerable:!0,configurable:!0}),i}(Go);V.registeredClasses.FunnelTick=fv;var mc=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="FunnelSeriesDataItem",e.events.on("visibilitychanged",function(){e.component&&e.component.invalidateDataItems()},e,!1),e.applyTheme(),e}return Object.defineProperty(i.prototype,"sliceLink",{get:function(){var e=this;if(!this._sliceLink){var t=this.component.sliceLinks.create();this._sliceLink=t,this._disposers.push(t),t.parent=this.component.slicesContainer,this._disposers.push(new Lt(function(){e.component&&e.component.sliceLinks.removeValue(t)})),this.addSprite(t),t.visible=this.visible}return this._sliceLink},enumerable:!0,configurable:!0}),i}(Mu),pv=function(n){W(i,n);function i(){var e=n.call(this)||this;return e._nextY=0,e.className="FunnelSeries",e.orientation="vertical",e.width=pe(100),e.height=pe(100),e.slicesContainer.width=pe(100),e.slicesContainer.height=pe(100),e._disposers.push(e.slicesContainer.events.on("maxsizechanged",e.invalidateDataItems,e,!1)),e.labelsOpposite=!0,e.labelsContainer.layout="absolute",e.bottomRatio=0,e.applyTheme(),e}return i.prototype.createSlice=function(){return new xd},i.prototype.createTick=function(){return new fv},i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Funnel Series"))},i.prototype.createDataItem=function(){return new mc},i.prototype.initSlice=function(e){e.isMeasured=!1,e.defaultState.properties.scale=1,e.observe("scale",this.handleSliceScale,this),e.observe(["dx","dy","x","y"],this.handleSliceMove,this),e.tooltipText="{category}: {value.percent.formatNumber('#.#p')} ({value.value})";var t=e.states.create("hover");t.properties.expandDistance=.2},i.prototype.initLabel=function(e){n.prototype.initLabel.call(this,e),e.verticalCenter="middle",e.horizontalCenter="middle",e.isMeasured=!0,e.padding(5,5,5,5)},i.prototype.validate=function(){n.prototype.validate.call(this),this._nextY=0},i.prototype.validateDataElements=function(){var e=this,t=this.slice
22sContainer,r=this.labelsContainer,a=this.labels.template;this.alignLabels?(a.interactionsEnabled=!0,t.isMeasured=!0,r.isMeasured=!0):(a.interactionsEnabled=!1,t.isMeasured=!1,r.isMeasured=!1);var s=0,o=0;this.dataItems.each(function(l){T(l.value)&&(o++,l.value>0?s+=Math.abs(l.getWorkingValue("value")/l.value):e.ignoreZeroValues||!l.visible||l.__disabled||l.isHiding?o--:s+=1)}),this._total=1/o*s,this._count=o,n.prototype.validateDataElements.call(this),this.arrangeLabels()},i.prototype.getNextValue=function(e){var t=e.index,r=e.getWorkingValue("value");if(t<this.dataItems.length-1){var a=this.dataItems.getIndex(t+1);if(r=a.getWorkingValue("value"),!a.visible||a.isHiding||a.__disabled||a.value==0&&this.ignoreZeroValues)return this.getNextValue(a)}return r},i.prototype.formDataElement=function(){},i.prototype.validateDataElement=function(e){var t=this,r=e.slice;r.orientation=this.orientation;var a=e.sliceLink;a.orientation=this.orientation;var s=e.tick,o=e.label;s.slice=r,s.label=o,T(e.value)?(this.decorateSlice(e),De(e.sprites,function(l){e.value==0&&t.ignoreZeroValues?l.__disabled=!0:l.__disabled=!1})):De(e.sprites,function(l){l.__disabled=!0}),e.index==this.dataItems.length-1&&(a.disabled=!0),n.prototype.validateDataElement.call(this,e),a.fill=r.fill},i.prototype.decorateSlice=function(e){var t=e.slice,r=e.sliceLink,a=e.label,s=e.tick,o=this.slicesContainer.innerWidth,l=this.slicesContainer.innerHeight,u=this.getNextValue(e),h=Math.abs(e.getWorkingValue("value")),d=this.bottomRatio,f=1;if(e.value!=0?f=h/Math.abs(e.value):(e.__disabled||e.isHiding||!e.visible)&&(f=1e-6),this.ignoreZeroValues&&e.value==0){e.__disabled=!0;return}else e.__disabled=!1;if(this._nextY==1/0&&(this._nextY=0),this.orientation=="vertical"){var p=r.pixelHeight*f;l=l+p,t.topWidth=h/this.dataItem.values.value.high*o,t.bottomWidth=(h-(h-u)*d)/this.dataItem.values.value.high*o,r.topWidth=t.bottomWidth,r.bottomWidth=(h-(h-u))/this.dataItem.values.value.high*o,t.y=this._nextY,t.height=Math.min(1e5,st(0,l/this._count*f/this._total-p)),t.x=o/2,this.alignLabels?a.x=void 0:a.x=t.x,a.y=t.pixelY+t.pixelHeight*s.locationY,this._nextY+=t.pixelHeight+p,r.y=this._nextY-p,r.x=t.x}else{var v=r.pixelWidth*f;o=o+v,t.topWidth=h/this.dataItem.values.value.high*l,t.bottomWidth=(h-(h-u)*d)/this.dataItem.values.value.high*l,r.topWidth=t.bottomWidth,r.bottomWidth=(h-(h-u))/this.dataItem.values.value.high*l,t.x=this._nextY,t.width=Math.min(1e5,o/this._count*f*1/this._total-v),t.y=l/2,this.alignLabels?a.y=this.labelsContainer.measuredHeight:a.y=t.y,a.x=t.pixelX+t.pixelWidth*s.locationX,this._nextY+=t.pixelWidth+v,r.x=this._nextY-v,r.y=t.y}},i.prototype.getLastLabel=function(e){if(e>0){var t=this.labels.getIndex(e);return t.__disabled||!t.visible?this.getLastLabel(e-1):t}},i.prototype.arrangeLabels=function(){if(this.alignLabels){var e=this.labels.length;if(e>1){var t=this.getLastLabel(e-1);if(t){var r=t.pixelY,a=t.pixelX;if(e>1){for(var s=e-2;s>=0;s--){var o=this.labels.getIndex(s);o.visible&&!o.__disabled&&(o.invalid&&o.validate(),this.orientation=="vertical"?o.pixelY+o.measuredHeight>r&&(o.y=Math.min(1e6,r-o.measuredHeight)):o.pixelX+o.measuredWidth>a&&(o.x=Math.min(1e6,a-o.measuredWidth)),r=o.pixelY,a=o.pixelX)}r=0,a=0;for(var s=0;s<e;s++){var o=this.labels.getIndex(s);o.visible&&!o.__disabled&&(o.invalid&&o.validate(),this.orientation=="vertical"?o.pixelY<r&&(o.y=Math.min(1e6,r)):o.pixelX<a&&(o.x=Math.min(1e6,a)),r+=o.measuredHeight,a+=o.measuredWidth)}}}}}},i.prototype.positionBullet=function(e){n.prototype.positionBullet.call(this,e);var t=e.dataItem,r=t.slice,a=e.locationX;C(a)||(a=.5);var s=e.locationY;C(s)||(s=1),e.x=r.pixelX+r.measuredWidth*a,e.y=r.pixelY+r.measuredHeight*s},Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e)&&(this.labelsOpposite=this.labelsOpposite,this.invalidate(),e=="vertical"?(this.ticks.template.locationX=1,this.ticks.template.locationY=.5,this.labels.template.rotation=0,this.layout="horizontal"):(this.ticks.template.locationX=.5,this.ticks.template.locationY=1,this.labels.template.rotation=-90,this.layout="vertical"))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bottomRatio",{get:function(){return this.getPropertyValue("bottomRatio")},set:function(e){this.setPropertyValue("bottomRatio",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sliceLinks",{get:function(){if(!this._sliceLinks){var e=new xd;e.applyOnClones=!0,e.fillOpacity=.5,e.expandDistance=-.3,e.hiddenState.properties.opacity=0,this._disposers.push(e),this._sliceLinks=new fi(e),this._disposers.push(new zt(this._sliceLinks))}return this._sliceLinks},enumerable:!0,configurable:!0}),i.prototype.show=function(e){var t=this,r=this.startIndex,a=this.endIndex,s=this.defaultState.transitionDuration;C(e)&&(s=e);var o=0;ue(Za(this.dataItems.iterator()),function(u){var h=u[0],d=u[1];t.sequencedInterpolation&&(o=t.sequencedInterpolationDelay*h+s*(h-r)/(a-r)),d.show(s,o,["value"])});var l=n.prototype.show.call(this,e);return l},i.prototype.hide=function(e){var t=this,r=["value"],a=0,s=this.startIndex,o=this.endIndex,l=0,u=this.hiddenState.transitionDuration;C(e)&&(u=e),ue(Za(this.dataItems.iterator()),function(d){var f=d[
220],p=d[1];t.sequencedInterpolation&&(l=t.sequencedInterpolationDelay*f+u*(f-s)/(o-s)),p.hide(u,l,a,r)});var h=n.prototype.hide.call(this,e);return h&&!h.isFinished()&&h.delay(l),h},i.prototype.setAlignLabels=function(e){n.prototype.setAlignLabels.call(this,e),this.ticks.template.disabled=!e;var t=this.labelsContainer;t&&(e?(t.height=void 0,t.width=void 0,t.margin(10,10,10,10)):(t.width=pe(100),t.height=pe(100))),this.labelsOpposite=this.labelsOpposite},Object.defineProperty(i.prototype,"labelsOpposite",{get:function(){return this.getPropertyValue("labelsOpposite")},set:function(e){this.setPropertyValue("labelsOpposite",e);var t=this.labels.template,r="none",a="none";this.alignLabels?e?(this.labelsContainer.toFront(),this.orientation=="vertical"?(this.ticks.template.locationX=1,t.horizontalCenter="left",r="right"):(this.ticks.template.locationY=1,t.horizontalCenter="right",a="bottom")):(this.labelsContainer.toBack(),this.orientation=="vertical"?(this.ticks.template.locationX=0,r="left"):(a="top",this.ticks.template.locationY=0)):this.orientation=="vertical"?r="center":a="middle",t.align=r,t.valign=a,this.validateLayout(),this.ticks.each(function(s){s.invalidate()}),this.invalidateDataItems()},enumerable:!0,configurable:!0}),i}(Ko);V.registeredClasses.FunnelSeries=pv;V.registeredClasses.FunnelSeriesDataItem=mc;var bc=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PyramidSeriesDataItem",e.applyTheme(),e}return i}(mc),yv=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PyramidSeries",e.topWidth=pe(0),e.bottomWidth=pe(100),e.pyramidHeight=pe(100),e.valueIs="area",e.sliceLinks.template.width=0,e.sliceLinks.template.height=0,e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},i.prototype.createDataItem=function(){return new bc},i.prototype.validate=function(){n.prototype.validate.call(this),this._nextWidth=void 0},i.prototype.getNextValue=function(e){var t=e.index,r=e.getWorkingValue("value");if(t<this.dataItems.length-1){var a=this.dataItems.getIndex(t+1);r=a.getWorkingValue("value")}return r==0&&(r=1e-6),r},i.prototype.validateDataElements=function(){var e=this,t=this.slice
22sContainer.innerWidth,r=this.slicesContainer.innerHeight;if(this.dataItems.each(function(o){if(o.value>0){var l=o.getWorkingValue("value")/o.value,u=o.sliceLink;e.orientation=="vertical"?r-=u.pixelHeight*l:t-=u.pixelWidth*l}}),this._pyramidHeight=ri(this.pyramidHeight,r),this._pyramidWidth=ri(this.pyramidHeight,t),this.orientation=="vertical"){var a=(r-this._pyramidHeight)/2;this.slicesContainer.y=a,this.labelsContainer.y=a,this.ticksContainer.y=a}else{var s=(t-this._pyramidWidth)/2;this.slicesContainer.x=s,this.labelsContainer.x=s,this.ticksContainer.x=s}n.prototype.validateDataElements.call(this)},i.prototype.decorateSlice=function(e){var t=this.dataItem.values.value.absoluteSum;if(t!=0){var r=e.slice,a=e.sliceLink,s=e.label,o=e.tick;this.getNextValue(e);var l=Math.abs(e.getWorkingValue("value")),u=this._pyramidWidth,h=this._pyramidHeight,d=this.slicesContainer.innerWidth,f=this.slicesContainer.innerHeight,p=a.pixelWidth,v=a.pixelHeight;if((e.value==0||e.value==null)&&this.ignoreZeroValues?e.__disabled=!0:e.__disabled=!1,this.orientation=="vertical"){var m=ri(this.topWidth,d);C(this._nextWidth)||(this._nextWidth=m);var x=ri(this.bottomWidth,d),w=this._nextWidth,P=Math.atan2(h,m-x),O=Math.tan(Math.PI/2-P);O==0&&(O=1e-8);var j=void 0,M=void 0;if(this.valueIs=="area"){var F=(m+x)/2*h,g=F*l/t,L=Math.abs(w*w-2*g*O);j=(w-Math.sqrt(L))/O,j>0?M=(2*g-j*w)/j:M=w}else j=h*l/t,M=w-j*O;r.height=j,r.width=d,r.bottomWidth=M,r.topWidth=w,a.topWidth=r.bottomWidth,a.bottomWidth=r.bottomWidth,r.y=this._nextY,this.alignLabels?s.x=0:s.x=d/2,s.y=r.pixelY+r.pixelHeight*o.locationY+r.dy,this._nextY+=r.pixelHeight+v*l/Math.max(Math.abs(e.value),1e-8),a.y=this._nextY-v,a.x=d/2}else{var m=ri(this.topWidth,f);C(this._nextWidth)||(this._nextWidth=m);var x=ri(this.bottomWidth,f),w=this._nextWidth,P=Math.atan2(u,m-x),O=Math.tan(Math.PI/2-P);O==0&&(O=1e-8);var N=void 0,M=void 0;if(this.valueIs=="area"){var F=(m+x)/2*u,g=F*l/t;N=(w-Math.sqrt(w*w-2*g*O))/O,M=(2*g-N*w)/N}else N=u*l/t,M=w-N*O;r.width=N,r.height=f,r.bottomWidth=M,r.topWidth=w,a.topWidth=r.bottomWidth,a.bottomWidth=r.bottomWidth,r.x=this._nextY,this.alignLabels?s.y=this.labelsContainer.measuredHeight:s.y=f/2,s.x=r.pixelX+r.pixelWidth*o.locationX+r.dx,this._nextY+=r.pixelWidth+p*l/Math.max(Math.abs(e.value),1e-8),a.x=this._nextY-p,a.y=f/2}this._nextWidth=r.bottomWidth}},Object.defineProperty(i.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(e){this.setPercentProperty("topWidth",e,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pyramidHeight",{get:function(){return this.getPropertyValue("pyramidHeight")},set:function(e){this.setPercentProperty("pyramidHeight",e,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(e){this.setPercentProperty("bottomWidth",e,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueIs",{get:function(){return this.getPropertyValue("valueIs")},set:function(e){this.setPropertyValue("valueIs",e)&&this.invalidate()},enumerable:!0,configurable:!0}),i}(pv);V.registeredClasses.PyramidSeries=yv;V.registeredClasses.PyramidSeriesDataItem=bc;var vv=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PictorialStackedSeriesDataItem",e.applyTheme(),e}return i}(bc),Yx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="PictorialStackedSeries",e.topWidth=pe(100),e.bottomWidth=pe(100),e.valueIs="height",e.applyTheme(),e.startLocation=0,e.endLocation=1,e.align="center",e.valign="middle",e._maskSprite=e.slicesContainer.createChild(ot),e._maskSprite.visible=!1,e._maskSprite.zIndex=100,e._maskSprite.shouldClone=!1,e}return i.prototype.validateDataElements=function(){var e=this.slicesContainer.maxWidth,t=this.slice
22sContainer.maxHeight,r=this._maskSprite,a=r.measuredWidth/r.scale,s=r.measuredHeight/r.scale,o=xt(t/s,e/a);o==1/0&&(o=1),o=st(.001,o);var l=this.startLocation,u=this.endLocation,h=xt(e,a*o),d=xt(t,s*o);r.scale=o,this.orientation=="vertical"?(this.topWidth=h+4,this.bottomWidth=h+4,this.pyramidHeight=d*(u-l),r.x=e/2,r.y=d/2):(this.topWidth=d+4,this.bottomWidth=d+4,this.pyramidHeight=h*(u-l),r.valign="middle",r.x=h/2,r.y=t/2),r.verticalCenter="middle",r.horizontalCenter="middle",n.prototype.validateDataElements.call(this);var f,p;this.orientation=="vertical"?(this.valign=="bottom"&&(f=t-d),this.valign=="middle"&&(f=(t-d)/2),this.valign=="top"&&(f=0),this.align=="left"&&(p=-(e-h)/2),this.align=="center"&&(p=0),this.align=="right"&&(p=(e-h)/2),this.slices.template.dy=l*d,this.alignLabels&&(this.slicesContainer.dx=p)):(this.valign=="bottom"&&(f=(t-d)/2),this.valign=="middle"&&(f=0),this.valign=="top"&&(f=-(t-d)/2),this.align=="left"&&(p=0),this.align=="center"&&(p=(e-h)/2),this.align=="right"&&(p=e-h),this.slices.template.dx=l*h,this.alignLabels&&(this.slice
22sContainer.dy=f)),this.slicesContainer.x=p,this.labelsContainer.x=p,this.ticksContainer.x=p,this.slicesContainer.y=f,this.labelsContainer.y=f,this.ticksContainer.y=f,h>0&&d>0&&(this.slicesContainer.mask=r)},i.prototype.applyInternalDefaults=function(){n.prototype.applyInternalDefaults.call(this),T(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},i.prototype.createDataItem=function(){return new vv},Object.defineProperty(i.prototype,"maskSprite",{get:function(){return this._maskSprite},enumerable:!0,configurable:!0}),i.prototype.initSlice=function(e){n.prototype.initSlice.call(this,e);var t=e.states.getKey("hover");t&&(t.properties.expandDistance=0)},Object.defineProperty(i.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),i}(yv);V.registeredClasses.PictorialStackedSeries=Yx;V.registeredClasses.PictorialStackedSeriesDataItem=vv;var gv=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="ConeColumn",e}return i.prototype.createAssets=function(){this.coneColumn=this.createChild(ox),this.coneColumn.shouldClone=!1,this.column=this.coneColumn},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.coneColumn&&this.coneColumn.copyFrom(e.coneColumn)},i}(os);V.registeredClasses.ConeColumn=gv;var Wx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="ConeSeriesDataItem",e.applyTheme(),e}return i}(ka),Bx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="ConeSeries",e.applyTheme(),e}return i.prototype.createColumnTemplate=function(){return new gv},i.prototype.getMaskPath=function(){var e=0,t=0,r=this.columns.getIndex(0);if(r)return this.baseAxis==this.xAxis?t=r.coneColumn.innerWidth/2+1:e=r.coneColumn.innerHeight/2+1,ma({x:-e,y:0,width:this.xAxis.axisLength+e,height:this.yAxis.axisLength+t})},i.prototype.validateDataElementReal=function(e){n.prototype.validateDataElementReal.call(this,e);var t=e.column;if(t){var r=e.column.coneColumn;r.fill=e.column.fill,this.baseAxis==this.yAxis?r.orientation="horizontal":r.orientation="vertical"}},i}(Ma);V.registeredClasses.ConeSeries=Bx;V.registeredClasses.ConeSeriesDataItem=Wx;var mv=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="CurvedColumn",e}return i.prototype.createAssets=function(){this.curvedColumn=this.createChild(ot),this.curvedColumn.shouldClone=!1,this.setPropertyValue("tension",.7),this.width=pe(120),this.height=pe(120),this.column=this.curvedColumn},i.prototype.draw=function(){n.prototype.draw.call(this);var e=this.realWidth,t=this.realHeight,r=this.realX-this.pixelX,a=this.realY-this.pixelY,s;this.width;var o=1,l=1;this.orientation=="vertical"?(o=this.tension,s=[{x:0,y:t+a},{x:e/2,y:a},{x:e,y:t+a}]):(l=this.tension,t=Math.abs(t),s=[{x:r,y:t},{x:r+e,y:t/2},{x:r,y:0}]);var u=Oe(s[0])+new Oa(o,l).smooth(s);this.column.path=u},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.curvedColumn&&this.curvedColumn.copyFrom(e.curvedColumn)},Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0)},enumerable:!0,configurable:!0}),i}(os);V.registeredClasses.CurvedColumn=mv;var zx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="CurvedColumnSeriesDataItem",e.applyTheme(),e}return i}(ka),Ux=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="CurvedColumnSeries",e.applyTheme(),e}return i.prototype.createColumnTemplate=function(){return new mv},i.prototype.validateDataElementReal=function(e){n.prototype.validateDataElementReal.call(this,e);var t=e.column;if(t=e.column,t){var r=e.column.curvedColumn;r.fill=e.column.fill,this.baseAxis==this.yAxis?t.orientation="horizontal":t.orientation="vertical"}},i}(Ma);V.registeredClasses.CurvedColumnSeries=Ux;V.registeredClasses.CurvedColumnSeriesDataItem=zx;var Xx=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="CircleBullet";var t=e.createChild(as);
22return t.shouldClone=!1,t.radius=5,t.isMeasured=!1,e.circle=t,e.applyTheme(),e}return i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.circle.copyFrom(e.circle)},i}(Ln);V.registeredClasses.CircleBullet=Xx;var Gx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="ErrorBullet",e.errorLine=e.createChild(ot),e.errorLine.shouldClone=!1,e.width=20,e.height=20,e.strokeOpacity=1,e.isDynamic=!0,e}return i.prototype.validatePosition=function(){n.prototype.validatePosition.call(this);var e=this.pixelWidth/2,t=this.pixelHeight/2;this.errorLine.path=Oe({x:-e,y:-t})+ie({x:e,y:-t})+Oe({x:0,y:-t})+ie({x:0,y:t})+Oe({x:-e,y:t})+ie({x:e,y:t})},i.prototype.copyFrom=function(e){n.prototype.copyFrom.call(this,e),this.errorLine.copyFrom(e.errorLine)},i}(Ln);V.registeredClasses.ErrorBullet=Gx;var $x=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="NavigationBarDataItem",e.applyTheme(),e}return Object.defineProperty(i.prototype,"name",{get:function(){return this.properties.name},set:function(e){this.setProperty("name",e)},enumerable:!0,configurable:!0}),i}(es),Kx=function(n){W(i,n);function i(){var e=n.call(this)||this;e.className="NavigationBar";var t=new Ot,r=new pd;r.valign="middle",r.paddingTop=8,r.paddingBottom=8,e.paddingBottom=2,e.links=new fi(r),e._disposers.push(new zt(e.links)),e._disposers.push(r),e._linksIterator=new Ud(e.links,function(){return e.links.create()}),e._linksIterator.createNewItems=!0;var a=new tc;a.direction="right",a.width=8,a.height=12,a.fill=t.getFor("alternativeBackground"),a.fillOpacity=.5,a.valign="middle",a.marginLeft=10,a.marginRight=10,e.separators=new fi(a),e._disposers.push(new zt(e.separators)),e._disposers.push(a);var s=new pd;return e.activeLink=s,s.copyFrom(r),s.valign="middle",s.fontWeight="bold",e.width=pe(100),e.layout="grid",e.dataFields.name="name",e.applyTheme(),e}return i.prototype.validateDataElements=function(){this.removeChildren(),this._linksIterator.reset(),n.prototype.validateDataElements.call(this)},i.prototype.validateDataElement=function(e){n.prototype.validateDataElement.call(this,e);var t;if(e.index<this.dataItems.length-1){t=this._linksIterator.getLast(),t.parent=this;var r=this.separators.create();r.parent=this,r.valign="middle"}else t=this.activeLink,t.events.copyFrom(this.links.template.events),t.hide(0),t.show(),t.parent=this;t.dataItem=e,t.text=e.name,t.validate()},i}(Ns);V.registeredClasses.NavigationBar=Kx;V.registeredClasses.NavigationBarDataItem=$x;var bv=function(n){W(i,n);function i(){var e=n.call(this)||this;e.point={x:0,y:0},e._stick="none",e.className="Cursor",e.width=pe(100),e.height=pe(100),e.shouldClone=!1,e.hide(0),e.trackable=!0,e.clickable=!0,e.isMeasured=!1;var t=Je();return e._disposers.push(t.body.events.on("down",e.handleCursorDown,e)),e._disposers.push(t.body.events.on("up",e.handleCursorUp,e)),e._disposers.push(t.body.events.on("track",e.handleCursorMove,e)),e.applyTheme(),e}return i.prototype.handleCursorMove=function(e){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&e.touch)){if((this._generalBehavior!="zoom"&&this._generalBehavior!="pan"||!this.downPoint)&&!Je().isLocalElement(e.pointer,this.paper.svg,this.uid)){(!this.isHidden||!this.isHiding)&&this.hide();return}var t=Os(e.pointer.point,this);return this._stick=="hard"&&this._stickPoint&&(t=this._stickPoint),this._stick=="soft"&&this._stickPoint&&(this.fitsToBounds(t)||(t=this._stickPoint)),this._adapterO&&this._adapterO.apply("cursorPoint",t),this.triggerMove(t),t}},i.prototype.hideReal=function(e){if(!((this._stick=="hard"||this._stick=="soft")&&this._stickPoint))return n.prototype.hideReal.call(this,e)},i.prototype.triggerMove=function(e,t,r){e.x=de(e.x,1),e.y=de(e.y,1),t&&(this._stick=t),(t=="hard"||t=="soft")&&(this._stickPoint=e),this.triggerMoveReal(e,r)},i.prototype.triggerMoveReal=function(e,t){(this.point.x!=e.x||this.point.y!=e.y||t)&&(this.point=e,this.invalidatePosition(),this.fitsToBounds(e)?this.show(0):this.downPoint||this.hide(0),this.visible&&(this.getPositions(),this.dispatch("cursorpositionchanged")))},i.prototype.triggerDown=function(e){this.triggerDownReal(e)},i.prototype.triggerDownReal=function(e){switch(this._generalBehavior){case"zoom":this.dispatchImmediately("zoomstarted");break;case"select":this.dispatchImmediately("selectstarted");break;case"pan":this.dispatchImmediately("panstarted"),Je().setGlobalStyle(Ki.grabbing);break}},i.prototype.triggerUp=function(e){this.triggerUpReal(e)},i.prototype.triggerUpReal=function(e){yt.requestFrame(),this.updatePoint(this.upPoint);var t=Je();if(Mt(this._upPointOrig,this._downPointOrig)>t.getHitOption(this.interactions,"hitTolerance")){switch(this._generalBehavior){case"zoom":this.dispatch("zoomended");break;case"select":this.dispatch("selectended");break;case"pan":this.dispatch("panended"),t.setGlobalStyle(Ki.default);break}this.downPoint=void 0,this.updateSelection()}},i.prototype.updateSelection=function(){},i.prototype.getPositions=function(){this.xPosition=this.point.x/this.innerWidth,this.yPosition=1-this.point.y/this.innerHeight},i.prototype.handleCursorDown=function(e){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&e.touch||!Je().isLocalElement(e.pointer,this.paper.svg,this.uid))){Dl();var t=Os(e.pointer.point,this);this._stick=="hard"&&this._stickPoint&&(t=this._stickPoint),this._adapterO&&this._adapterO.apply("cursorPoint",t),this.fitsToBounds(t)&&(this._downPointOrig={x:t.x,y:t.y},e.event.cancelable&&this.shouldPreventGestures(e.touch)&&this.fitsToBounds(t)&&e.event.preventDefault(),this.triggerMove(t),this.triggerDown(t))}},i.prototype.shouldPreventGestures=function(e){return!0},i.prototype.updatePoint=function(e){},i.prototype.handleCursorUp=function(e){if(this.interactionsEnabled&&!(!this.downPoint&&!Je().isLocalElement(e.pointer,this.paper.svg,this.uid))){var t=Os(e.pointer.point,this);
22this._adapterO&&this._adapterO.apply("cursorPoint",t),!(!this.downPoint||!this.fitsToBounds(this.downPoint))&&(this._stick=="hard"&&this._stickPoint&&(t=this._stickPoint),this._upPointOrig={x:t.x,y:t.y},this.triggerMove(t),this.triggerUp(t))}},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e,T(this._chart.plotContainer)&&Je().lockElement(this._chart.plotContainer.interactions)},enumerable:!0,configurable:!0}),i}(Ee);V.registeredClasses.Cursor=bv;var xc=function(n){W(i,n);function i(){var e=n.call(this)||this;e._lineX=new Ni,e._lineY=new Ni,e._xAxis=new Ni,e._yAxis=new Ni,e._snapToDisposers=[],e.className="XYCursor",e.behavior="zoomX",e.maxPanOut=.1;var t=new Ot;e.snapOnPan=!0;var r=e.createChild(ot);r.shouldClone=!1,r.fillOpacity=.2,r.fill=t.getFor("alternativeBackground"),r.isMeasured=!1,r.visible=!1,r.interactionsEnabled=!1,e.selection=r,e._disposers.push(e.selection);var a=e.createChild(ot);a.shouldClone=!1,a.stroke=t.getFor("grid"),a.fill=qe(),a.strokeDasharray="3,3",a.isMeasured=!1,a.strokeOpacity=.4,a.interactionsEnabled=!1,a.y=0,e.lineX=a,e._disposers.push(e.lineX);var s=e.createChild(ot);return s.shouldClone=!1,s.stroke=t.getFor("grid"),s.fill=qe(),s.strokeDasharray="3,3",s.isMeasured=!1,s.strokeOpacity=.4,s.interactionsEnabled=!1,s.x=0,e.lineY=s,e._disposers.push(e.lineY),e.events.on("sizechanged",e.updateSize,e,!1),e._disposers.push(e._lineX),e._disposers.push(e._lineY),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.mask=e,e.hideSeriesTooltipsOnSelection=!0,e.applyTheme(),e}return i.prototype.updateSize=function(){this.lineX&&(this.lineX.path=Oe({x:0,y:0})+ie({x:0,y:this.innerHeight})),this.lineY&&(this.lineY.path=Oe({x:0,y:0})+ie({x:this.innerWidth,y:0}))},i.prototype.updateSelection=function(){if(this._usesSelection){var e=this.downPoint,t=this.behavior;if(e){var r=this.point;this.lineX&&(r.x=this.lineX.pixelX),this.lineY&&(r.y=this.lineY.pixelY);var a=this.selection,s=Math.min(r.x,e.x),o=Math.min(r.y,e.y),l=de(Math.abs(e.x-r.x),this._positionPrecision),u=de(Math.abs(e.y-r.y),this._positionPrecision);switch(t){case"zoomX":o=0,u=this.pixelHeight;break;case"zoomY":s=0,l=this.pixelWidth;break;case"selectX":o=0,u=this.pixelHeight;break;case"selectY":s=0,l=this.pixelWidth;break}a.x=s,a.y=o,a.path=Oh(l,u),a.validatePosition()}else this._generalBehavior!="select"&&this.selection.hide()}},i.prototype.fixPoint=function(e){return e.x=Math.max(0,e.x),e.y=Math.max(0,e.y),e.x=Math.min(this.pixelWidth,e.x),e.y=Math.min(this.pixelHeight,e.y),e},i.prototype.triggerMoveReal=function(e,t){n.prototype.triggerMoveReal.call(this,e,t);var r=this.snapToSeries;if(r&&!this.downPoint)if(r instanceof is)r.isHidden&&this.updateLinePositions(e);else{var a=!0;De(r,function(s){s.isHidden||(a=!1)}),a&&this.updateLinePositions(e)}else this.updateLinePositions(e);this.downPoint&&Mt(this.downPoint,e)>3&&this._generalBehavior=="pan"&&(this.getPanningRanges(),this.dispatch("panning"))},i.prototype.updateLinePositions=function(e){e=this.fixPoint(this.point),this.lineX&&this.lineX.visible&&!this.xAxis&&(this.lineX.x=e.x),this.lineY&&this.lineY.visible&&!this.yAxis&&(this.lineY.y=e.y),this.updateSelection()},i.prototype.triggerDownReal=function(e){if(this.visible&&!this.isHiding)if(this._generalBehavior=="select"&&(this.selection.parent=this.parent),this.fitsToBounds(e)){this.downPoint={x:e.x,y:e.y},this.updatePoint(e),this.point.x=this.downPoint.x,this.point.y=this.downPoint.y;var t=this.selection,r=this.downPoint.x,a=this.downPoint.y;this._usesSelection&&(t.x=r,t.y=a,t.path="",t.show()),n.prototype.triggerDownReal.call(this,e)}else this.downPoint=void 0;else this.downPoint=void 0},i.prototype.updatePoint=function(e){this.lineX&&(e.x=this.lineX.pixelX),this.lineY&&(e.y=this.lineY.pixelY)},i.prototype.triggerUpReal=function(e){if(this.hasMoved())this.downPoint&&(this.upPoint=e,this.updatePoint(this.upPoint),this._generalBehavior!="pan"&&this.getRanges(),this._generalBehavior!="select"&&this.selection.hide(),n.prototype.triggerUpReal.call(this,e));else{if(this._generalBehavior!="select"?this.selection.hide(0):(this.xRange=void 0,this.yRange=void 0,this.dispatchImmediately("selectended")),this._generalBehavior=="pan"){var t=Je();t.setGlobalStyle(Ki.default)}this.dispatchImmediately("behaviorcanceled")}this.downPoint=void 0,this.dispatch("cursorpositionchanged")},i.prototype.hasMoved=function(){var e;return this.behavior=="zoomX"||this.behavior=="panX"?e=Ym(this._upPointOrig,this._downPointOrig):this.behavior=="zoomY"||this.behavior=="panY"?e=Wm(this._upPointOrig,this._downPointOrig):e=Mt(this._upPointOrig,this._downPointOrig),e>Je().getHitOption(this.interactions,"hitTolerance")},i.prototype.getPanningRanges=function(){var e=de(this.downPoint.x/this.innerWidth,5),t=1-de(this.downPoint.y/this.innerHeight,5),r=de(this.point.x/this.innerWidth,5),a=1-de(this.point.y/this.innerHeight,5),s=e-r,o=t-a;this.xRange={start:s,end:1+s},this.yRange={start:o,end:1+o},this.behavior=="panX"&&(this.yRange.start=0,this.yRange.end=1),this.behavior=="panY"&&(this.xRange.start=0,this.xRange.end=1)},i.prototype.getRanges=function(){this.lineX&&(this.upPoint.x=this.lineX.pixelX),this.lineY&&(this.upPoint.y=this.lineY.pixelY),this.selection;var e=de(this.downPoint.x/this.innerWidth,5),t=de(this.upPoint.x/this.innerWidth,5),r=1-de(this.downPoint.y/this.innerHeight,5),a=1-de(this.upPoint.y/this.innerHeight,5);this.xRange={start:xt(e,t),end:st(e,t)},this.yRange={start:xt(r,a),end:st(r,a)}},Object.defineProperty(i.prototype,"behavior",{get:function(){return this.getPropertyValue("behavior")}
22,set:function(e){this.setPropertyValue("behavior",e,!0),this._usesSelection=!1,e.indexOf("zoom")!=-1&&(this._generalBehavior="zoom",this._usesSelection=!0),e.indexOf("select")!=-1&&(this._generalBehavior="select",this._usesSelection=!0),e.indexOf("pan")!=-1&&(this._generalBehavior="pan",this._usesSelection=!1)},enumerable:!0,configurable:!0}),i.prototype.shouldPreventGestures=function(e){return(!this.interactions.isTouchProtected||!e)&&this.behavior!="none"},Object.defineProperty(i.prototype,"fullWidthLineX",{get:function(){return this.getPropertyValue("fullWidthLineX")},set:function(e){this.setPropertyValue("fullWidthLineX",e),e||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fullWidthLineY",{get:function(){return this.getPropertyValue("fullWidthLineY")},set:function(e){this.setPropertyValue("fullWidthLineY",e),e||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideSeriesTooltipsOnSelection",{get:function(){return this.getPropertyValue("hideSeriesTooltipsOnSelection")},set:function(e){this.setPropertyValue("hideSeriesTooltipsOnSelection",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxTooltipDistance",{get:function(){return this.getPropertyValue("maxTooltipDistance")},set:function(e){this.setPropertyValue("maxTooltipDistance",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(e){this.setPropertyValue("maxPanOut",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xAxis",{get:function(){return this._xAxis.get()},set:function(e){var t=this;this._xAxis.get()!=e&&this._xAxis.set(e,new di([e.tooltip.events.on("positionchanged",this.handleXTooltipPosition,this,!1),e.events.on("rangechangestarted",function(r){t.hide(0),t.preventShow=!0},void 0,!1),e.events.on("rangechangeended",function(r){t.preventShow=!1,t.hide(0),t.dispatch("cursorpositionchanged")},void 0,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yAxis",{get:function(){return this._yAxis.get()},set:function(e){var t=this;this._yAxis.get()!=e&&this._yAxis.set(e,new di([e.tooltip.events.on("positionchanged",this.handleYTooltipPosition,this,!1),e.events.on("rangechangestarted",function(r){t.hide(0),t.__disabled=!0},void 0,!1),e.events.on("rangechangeended",function(r){t.__disabled=!1,t.hide(0),t.dispatch("cursorpositionchanged")},void 0,!1)]))},enumerable:!0,configurable:!0}),i.prototype.handleXTooltipPosition=function(e){var t=this.xAxis.tooltip,r=vn({x:t.pixelX,y:t.pixelY},this),a=r.x;if(r.y=1,this.lineX&&(this.lineX.x=a,this.fitsToBounds(r)||this.hide()),this.xAxis&&this.fullWidthLineX){var s=this.xAxis.currentItemStartPoint,o=this.xAxis.currentItemEndPoint;if(s&&o){this.lineX.x=a;var l=o.x-s.x;this.lineX.path=Oh(l,this.innerHeight,-l/2)}}},i.prototype.handleYTooltipPosition=function(e){var t=this.yAxis.tooltip,r=vn({x:t.pixelX,y:t.pixelY},this),a=r.y;if(r.x=1,this.lineY&&(this.lineY.y=a,this.fitsToBounds(r)||this.hide()),this.yAxis&&this.fullWidthLineY){var s=this.yAxis.currentItemStartPoint,o=this.yAxis.currentItemEndPoint;if(s&&o){this.lineY.y=a;var l=o.y-s.y;this.lineY.path=Oh(this.innerWidth,l,0,-l/2)}}},Object.defineProperty(i.prototype,"lineX",{get:function(){return this._lineX.get()},set:function(e){e?(e.setElement(this.paper.add("path")),this._lineX.set(e,e.events.on("positionchanged",this.updateSelection,this,!1)),e.interactionsEnabled=!1,e.parent=this):this._lineX.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"lineY",{get:function(){return this._lineY.get()},set:function(e){e?(e.setElement(this.paper.add("path")),this._lineY.set(e,e.events.on("positionchanged",this.updateSelection,this,!1)),e.parent=this,e.interactionsEnabled=!1):this._lineY.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selection",{get:function(){return this._selection},set:function(e){this._selection=e,e&&(e.element=this.paper.add("path"),e.parent=this)},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){var t=this;if(e&&(T(e.xAxis)&&bt(e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.xAxis+'" found for `xAxis`'),delete e.xAxis)),T(e.yAxis)&&bt(e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.yAxis+'" found for `yAxis`'),delete e.yAxis)),T(e.snapToSeries))){var r=Ui(e.snapToSeries)?e.snapToSeries:[e.snapToSeries],a=!1;De(r,function(s,o){bt(s)&&(t.map.hasKey(s)?r[o]=t.map.getKey(s):(t.processingErrors.push('[XYCursor] No series with id "'+s+'" found for `series`'),a=!0))}),a?delete e.snapToSeries:e.snapToSeries=r}n.prototype.processConfig.call(this,e)},Object.defineProperty(i.prototype,"snapToSeries",{get:function(){return this.getPropertyValue("snapToSeries")},set:function(e){var t=this;this.setPropertyValue("snapToSeries",e)&&(e instanceof is&&(e=[e]),this._snapToDisposers&&De(this._snapToDisposers,function(r){r.dispose()}),this._snapToDisposers=[],e&&De(e,function(r){t._snapToDisposers.push(r.events.on("tooltipshownat",function(){t.handleSnap(r)},void 0,!1))}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"snapOnPan",{get:function(){return this.getPropertyValue("snapOnPan")},set:function(e){this.setPropertyValue("snapOnPan",e)},enumerable:!0,configurable:!0}),i.prototype.handleSnap=function(e){if(!this.downPoint){var t=e.getTooltipX()+e.xAxis.pixelX,r=e.getTooltipY()+e.yAxis.pixelY,a=e.xAxis,s=e.yAxis;a&&a.renderer.opposite&&(r-=this.pixelHeight),this.point={x:t,y:r},this.getPositions();var o=t,l=r;t-=this.pixelWidth,s&&s.renderer.opposite&&(t+=this.pixelWidth);var u=e.tooltip,h=u.animationDuration,d=u.animationEasing;a instanceof dt&&!(a instanceof ii)&&s instanceof dt&&!(s instanceof ii)?(e.yAxis.showTooltipAtPosition(this.yPosition),e.xAxis.showTooltipAtPosition(this.xPosition)):(e.baseAxis==e.xAxis&&e.yAxis.showTooltipAtPosition(this.yPosition),e.baseAxis==e.yAxis&&e.xAxis.showTooltipAtPosition(this.xPosition)),this.lineY.x=t,this.lineX.y=r,this.xAxis||this.lineX.animate([{property:"x",to:o}],h,d),this.yAxis||this.lineY.animate([{property:"y",to:l}],h,d)}},i.prototype.dispose=function(){this.hide(0),n.prototype.dispose.call(this)},i}(bv);
22V.registeredClasses.XYCursor=xc;var qx=function(n){W(i,n);function i(){var e=n.call(this)||this;return e.className="RadarCursor",e.radius=pe(100),e.innerRadius=pe(0),e.applyTheme(),e.mask=void 0,e}return i.prototype.fitsToBounds=function(e){var t=Mt(e);return t<this.truePixelRadius+1&&t>this.pixelInnerRadius-1},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),i.prototype.triggerMoveReal=function(e,t){(!this.xAxis||this.xAxis&&(!this.xAxis.cursorTooltipEnabled||this.xAxis.tooltip.disabled))&&this.updateLineX(this.point),(!this.yAxis||this.yAxis&&(!this.yAxis.cursorTooltipEnabled||this.yAxis.tooltip.disabled))&&this.updateLineY(this.point),this.updateSelection(),n.prototype.triggerMoveReal.call(this,e,t)},i.prototype.updateLineX=function(e){var t=this.pixelRadius,r=this.startAngle,a=this.endAngle,s=this.pixelInnerRadius;if(t>0&&C(r)&&C(a)&&C(s)){var o=Tn(tr(e),r,a),l=void 0;if(this.lineX&&this.lineX.visible){if(this.lineX.moveTo({x:0,y:0}),this.xAxis&&this.fullWidthLineX){var u=this.xAxis.currentItemStartPoint,h=this.xAxis.currentItemEndPoint;if(u&&h){var d=Tn(tr(u),r,a),f=Tn(tr(h),r,a),p=f-d;r<a?p<0&&(p+=360):p>0&&(p-=360),o-=p/2,l=Oe({x:s*xe(o),y:s*be(o)})+ie({x:t*xe(o),y:t*be(o)})+Li(o,p,t)+ie({x:s*xe(o+p),y:s*be(o+p)})+Li(o+p,-p,s)}}l||(l=Oe({x:s*xe(o),y:s*be(o)})+ie({x:t*xe(o),y:t*be(o)})),this.lineX.path=l}}},i.prototype.updateLineY=function(e){if(this.lineY&&this.lineY.visible){var t=this.startAngle,r=this.endAngle,a=this.truePixelRadius,s=ke(Mt(e),0,this.truePixelRadius);if(C(s)&&C(t)){this.lineY.moveTo({x:0,y:0});var o=void 0,l=r-t;if(this.yAxis&&this.fullWidthLineY){var u=this.yAxis.currentItemStartPoint,h=this.yAxis.currentItemEndPoint;if(u&&h){var d=ke(Mt(u),0,a);s=ke(Mt(h),0,a),o=Oe({x:s*xe(t),y:s*be(t)})+Li(t,l,s),o+=Oe({x:d*xe(r),y:d*be(r)})+Li(r,-l,d)}}o||(o=Oe({x:s*xe(t),y:s*be(t)})+Li(t,r-t,s)),this.lineY.path=o}}},i.prototype.updateSelection=function(){if(this._usesSelection){var e=this.downPoint;if(e){var t=this.point,r=this.pixelRadius,a=this.truePixelRadius,s=this.pixelInnerRadius,o=Math.min(this.startAngle,this.endAngle),l=Math.max(this.startAngle,this.endAngle),u=Tn(tr(e),o,l),h=Tn(tr(t),o,l),d=Mt(e);if(d<a){var f=ke(Mt(t),0,a);this._prevAngle=h;var p=Oe({x:0,y:0}),v=be(u),m=xe(u),x=be(h),w=xe(h),P=this.behavior;P=="zoomX"||P=="selectX"?p+=ie({x:r*m,y:r*v})+Li(u,h-u,r)+ie({x:s*w,y:s*x})+Li(h,u-h,s):P=="zoomY"||P=="selectY"?p=Oe({x:f*xe(o),y:f*be(o)})+Li(o,l-o,f)+ie({x:d*xe(l),y:d*be(l)})+Li(l,o-l,d)+Ai():P=="zoomXY"&&(p=Oe({x:f*xe(u),y:f*be(u)})+Li(u,h-u,f)+ie({x:d*xe(h),y:d*be(h)})+Li(h,u-h,d)+Ai()),this.selection.path=p}this.selection.moveTo({x:0,y:0})}}},i.prototype.getPositions=function(){var e=this.chart;if(e){var t=this.pixelInnerRadius,r=this.truePixelRadius-t,a=this.startAngle,s=this.endAngle,o=Tn(tr(this.point),a,s),l=(o-a)/(s-a);this.xPosition=l,this.yPosition=ke((Mt(this.point)-t)/r,0,1)}},i.prototype.updatePoint=function(e){},i.prototype.handleXTooltipPosition=function(e){if(this.xAxis.cursorTooltipEnabled){var t=this.xAxis.tooltip;this.updateLineX(vn({x:t.pixelX,y:t.pixelY},this))}},i.prototype.handleYTooltipPosition=function(e){if(this.yAxis.cursorTooltipEnabled){var t=this.yAxis.tooltip;this.updateLineY(vn({x:t.pixelX,y:t.pixelY},this))}},i.prototype.updateLinePositions=function(e){},i.prototype.getRanges=function(){var e=this.downPoint;if(e){var t=this.upPoint,r=this.chart;if(r){var a=this.pixelRadius,s=this.startAngle,o=this.endAngle,l=Tn(tr(e),this.startAngle,this.endAngle),u=Tn(tr(t),this.startAngle,this.endAngle),h=ke(Mt(e),0,a),d=ke(Mt(t),0,a),f=0,p=1,v=0,m=1,x=this.behavior;if(x=="zoomX"||x=="selectX"||x=="zoomXY"||x=="selectXY"){var w=o-s;f=de((l-s)/w,5),p=de((u-s)/w,5)}(x=="zoomY"||x=="selectY"||x=="zoomXY"||x=="selectXY")&&(v=de(h/a,5),m=de(d/a,5)),this.xRange={start:Math.min(f,p),end:Math.max(f,p)},this.yRange={start:Math.min(v,m),end:Math.max(v,m)},this.behavior=="selectX"||this.behavior=="selectY"||this.behavior=="selectXY"||this.selection.hide()}}},i.prototype.updateSize=function(){},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")}
22,set:function(e){this.setPercentProperty("radius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return Bi(this.radius,this.truePixelRadius)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"truePixelRadius",{get:function(){return ri(pe(100),xt(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){var e=this.innerRadius;return e instanceof mt&&(e=pe(100*e.value*this.chart.innerRadiusModifyer)),Bi(e,this.truePixelRadius)||0},enumerable:!0,configurable:!0}),i.prototype.fixPoint=function(e){return e},i}(xc);V.registeredClasses.RadarCursor=qx;var Zx=function(n){pr(n,"SpriteState")&&(n.transitionDuration=400),pr(n,"Component")&&(n.rangeChangeDuration=500,n.interpolationDuration=500,n.sequencedInterpolation=!1,pr(n,"SankeyDiagram")&&(n.sequencedInterpolation=!0),pr(n,"FunnelSeries")&&(n.sequencedInterpolation=!0)),pr(n,"Chart")&&(n.defaultState.transitionDuration=2e3,n.hiddenState.transitionDuration=1e3),pr(n,"Tooltip")&&(n.animationDuration=400,n.defaultState.transitionDuration=400,n.hiddenState.transitionDuration=400),pr(n,"Scrollbar")&&(n.animationDuration=500),pr(n,"Series")&&(n.defaultState.transitionDuration=1e3,n.hiddenState.transitionDuration=700,n.hiddenState.properties.opacity=1,n.showOnInit=!0),pr(n,"MapSeries")&&(n.hiddenState.properties.opacity=0),pr(n,"PercentSeries")&&(n.hiddenState.properties.opacity=0),pr(n,"FunnelSlice")&&(n.defaultState.transitionDuration=800,n.hiddenState.transitionDuration=1e3,n.hiddenState.properties.opacity=1),pr(n,"Slice")&&(n.defaultState.transitionDuration=700,n.hiddenState.transitionDuration=1e3,n.hiddenState.properties.opacity=1),pr(n,"Preloader")&&(n.hiddenState.transitionDuration=2e3),pr(n,"Column")&&(n.defaultState.transitionDuration=700,n.hiddenState.transitionDuration=1e3,n.hiddenState.properties.opacity=1),pr(n,"Column3D")&&(n.hiddenState.properties.opacity=0)};mx(Zx);ir.autoSetClassName=!0;ir.commercialLicense=!0;const Qx={name:"Buy-Sell-Depth-chart",data(){return{chart:{}}},props:["chart_data"],methods:{generateDailyData(n){return n.map(i=>{let e=new Date(i.date);return e.setHours(0,0,0,0),i.date=e,i})},InitializeChart(){this.loading=!0;var n=gx(this.$refs.chartdiv,oa),i=n.xAxes.push(new ii);i.renderer.grid.template.location=0,i.renderer.minGridDistance=40;var e=n.yAxes.push(new dt),t=n.series.push(new Ma);t.dataFields.valueY="value",t.dataFields.dateX="date";var r=t.columns.template;r.width=20,r.fill=qe("#5a5"),r.strokeOpacity=0,n.seriesContainer.resizable=!1,t.data=this.generateDailyData(this.chart_data),t.xAxis=i,t.yAxis=e,t.tooltipText="{dateX}: [bold]{valueY}[/]",n.cursor=new xc,this.loading=!1,this.chart=n}},created(){let n=this;setTimeout(function(){n.InitializeChart()},1e3)}},Jx={id:"chartdiv",ref:"chartdiv",style:{height:"450px"}};function e1(n,i,e,t,r,a){return oe(),we("div",null,[ae("div",Jx,null,512)])}const t1=Ap(Qx,[["render",e1]]);//! moment.js
23//! version : 2.29.4
24//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
25//! license : MIT
26//! momentjs.com
27var xv;function Me(){return xv.apply(null,arguments)}function i1(n){xv=n}function mn(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function $a(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function Jt(n,i){return Object.prototype.hasOwnProperty.call(n,i)}function _c(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var i;for(i in n)if(Jt(n,i))return!1;return!0}function Fr(n){return n===void 0}function sa(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function qo(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function _v(n,i){var e=[],t,r=n.length;for(t=0;t<r;++t)e.push(i(n[t],t));return e}function ba(n,i){for(var e in i)Jt(i,e)&&(n[e]=i[e]);return Jt(i,"toString")&&(n.toString=i.toString),Jt(i,"valueOf")&&(n.valueOf=i.valueOf),n}function Yn(n,i,e,t){return Uv(n,i,e,t,!0).utc()}function r1(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invali
vendor: 19,174 bytes, lines 27-30
27dMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Dt(n){return n._pf==null&&(n._pf=r1()),n._pf}var _d;Array.prototype.some?_d=Array.prototype.some:_d=function(n){var i=Object(this),e=i.length>>>0,t;for(t=0;t<e;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};function wc(n){if(n._isValid==null){var i=Dt(n),e=_d.call(i.parsedDateParts,function(r){return r!=null}),t=!isNaN(n._d.getTime())&&i.overflow<0&&!i.empty&&!i.invalidEra&&!i.invalidMonth&&!i.invalidWeekday&&!i.weekdayMismatch&&!i.nullInput&&!i.invalidFormat&&!i.userInvalidated&&(!i.meridiem||i.meridiem&&e);if(n._strict&&(t=t&&i.charsLeftOver===0&&i.unusedTokens.length===0&&i.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(n))n._isValid=t;else return t}return n._isValid}function Vu(n){var i=Yn(NaN);return n!=null?ba(Dt(i),n):Dt(i).userInvalidated=!0,i}var tp=Me.momentProperties=[],Th=!1;function Pc(n,i){var e,t,r,a=tp.length;if(Fr(i._isAMomentObject)||(n._isAMomentObject=i._isAMomentObject),Fr(i._i)||(n._i=i._i),Fr(i._f)||(n._f=i._f),Fr(i._l)||(n._l=i._l),Fr(i._strict)||(n._strict=i._strict),Fr(i._tzm)||(n._tzm=i._tzm),Fr(i._isUTC)||(n._isUTC=i._isUTC),Fr(i._offset)||(n._offset=i._offset),Fr(i._pf)||(n._pf=Dt(i)),Fr(i._locale)||(n._locale=i._locale),a>0)for(e=0;e<a;e++)t=tp[e],r=i[t],Fr(r)||(n[t]=r);return n}function Zo(n){Pc(this,n),this._d=new Date(n._d!=null?n._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Th===!1&&(Th=!0,Me.updateOffset(this),Th=!1)}function bn(n){return n instanceof Zo||n!=null&&n._isAMomentObject!=null}function wv(n){Me.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+n)}function an(n,i){var e=!0;return ba(function(){if(Me.deprecationHandler!=null&&Me.deprecationHandler(null,n),e){var t=[],r,a,s,o=arguments.length;for(a=0;a<o;a++){if(r="",typeof arguments[a]=="object"){r+=`
28[`+a+"] ";for(s in arguments[0])Jt(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[a];t.push(r)}wv(n+`
29Arguments: `+Array.prototype.slice.call(t).join("")+`
30`+new Error().stack),e=!1}return i.apply(this,arguments)},i)}var ip={};function Pv(n,i){Me.deprecationHandler!=null&&Me.deprecationHandler(n,i),ip[n]||(wv(i),ip[n]=!0)}Me.suppressDeprecationWarnings=!1;Me.deprecationHandler=null;function Wn(n){return typeof Function<"u"&&n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function n1(n){var i,e;for(e in n)Jt(n,e)&&(i=n[e],Wn(i)?this[e]=i:this["_"+e]=i);this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function wd(n,i){var e=ba({},n),t;for(t in i)Jt(i,t)&&($a(n[t])&&$a(i[t])?(e[t]={},ba(e[t],n[t]),ba(e[t],i[t])):i[t]!=null?e[t]=i[t]:delete e[t]);for(t in n)Jt(n,t)&&!Jt(i,t)&&$a(n[t])&&(e[t]=ba({},e[t]));return e}function Cc(n){n!=null&&this.set(n)}var Pd;Object.keys?Pd=Object.keys:Pd=function(n){var i,e=[];for(i in n)Jt(n,i)&&e.push(i);return e};var a1={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function s1(n,i,e){var t=this._calendar[n]||this._calendar.sameElse;return Wn(t)?t.call(i,e):t}function Rn(n,i,e){var t=""+Math.abs(n),r=i-t.length,a=n>=0;return(a?e?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+t}var Dc=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,pl=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,kh={},Ts={};function nt(n,i,e,t){var r=t;typeof t=="string"&&(r=function(){return this[t]()}),n&&(Ts[n]=r),i&&(Ts[i[0]]=function(){return Rn(r.apply(this,arguments),i[1],i[2])}),e&&(Ts[e]=function(){return this.localeData().ordinal(r.apply(this,arguments),n)})}function o1(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function l1(n){var i=n.match(Dc),e,t;for(e=0,t=i.length;e<t;e++)Ts[i[e]]?i[e]=Ts[i[e]]:i[e]=o1(i[e]);return function(r){var a="",s;for(s=0;s<t;s++)a+=Wn(i[s])?i[s].call(r,n):i[s];return a}}function kl(n,i){return n.isValid()?(i=Cv(i,n.localeData()),kh[i]=kh[i]||l1(i),kh[i](n)):n.localeData().invalidDate()}function Cv(n,i){var e=5;function t(r){return i.longDateFormat(r)||r}for(pl.lastIndex=0;e>=0&&pl.test(n);)n=n.replace(pl,t),pl.lastIndex=0,e-=1;return n}var u1={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function h1(n){var i=this._longDateFormat[n],e=this._longDateFormat[n.toUpperCase()];return i||!e?i:(this._longDateFormat[n]=e.match(Dc).map(function(t){return t==="MMMM"||t==="MM"||t==="DD"||t==="dddd"?t.slice(1):t}).join(""),this._longDateFormat[n])}var d1="Invalid date";function c1(){return this._invalidDate}var f1="%d",p1=/\d{1,2}/;function y1(n){return this._ordinal.replace("%d",n)}var v1={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function g1(n,i,e,t){var r=this._relativeTime[e];return Wn(r)?r(n,i,e,t):r.replace(/%d/i,n)}function m1(n,i){var e=this._relativeTime[n>0?"future":"past"];return Wn(e)?e(i):e.replace(/%s/i,i)}var mo={};function xr(n,i){var e=n.toLowerCase();mo[e]=mo[e+"s"]=mo[i]=n}function sn(n){return typeof n=="string"?mo[n]||mo[n.toLowerCase()]:void 0}function Sc(n){var i={},e,t;for(t in n)Jt(n,t)&&(e=sn(t),e&&(i[e]=n[t]));return i}var Dv={};function _r(n,i){Dv[n]=i}function b1(n){var i=[],e;for(e in n)Jt(n,e)&&i.push({unit:e,priority:Dv[e]});return i.sort(function(t,r){return t.priority-r.priority}),i}function Fu(n){return n%4===0&&n%100!==0||n%400===0}function Zr(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function jt(n){var i=+n,e=0;return i!==0&&isFinite(i)&&(e=Zr(i)),e}function Ws(n,i){return function(e){return e!=null?(Sv(this,n,e),Me.updateOffset(this,i),this):eu(this,n)}}function eu(n,i){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+i]():NaN}function Sv(n,i,e){n.isValid()&&!isNaN(e)&&(i==="FullYear"&&Fu(n.year())&&n.month()===1&&n.date()===29?(e=jt(e),n._d["set"+(n._isUTC?"UTC":"")+i](e,n.month(),Hu(e,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+i](e))}function x1(n){return n=sn(n),Wn(this[n])?this[n]():this}function _1(n,i){if(typeof n=="object"){n=Sc(n);var e=b1(n),t,r=e.length;for(t=0;t<r;t++)this[e[t].unit](n[e[t].unit])}else if(n=sn(n),Wn(this[n]))return this[n](i);return this}var Ov=/\d/,Wr=/\d\d/,Tv=/\d{3}/,Oc=/\d{4}/,Iu=/[+-]?\d{6}/,Si=/\d\d?/,kv=/\d\d\d\d?/,Mv=/\d\d\d\d\d\d?/,Eu=/\d{1,3}/,Tc=/\d{1,4}/,Lu=/[+-]?\d{1,6}/,Bs=/\d+/,Ru=/[+-]?\d+/,w1=/Z|[+-]\d\d:?\d\d/gi,Nu=/Z|[+-]\d\d(?::?\d\d)?/gi,P1=/[+-]?\d+(\.\d{1,3})?/,Qo=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,tu;tu={};function He(n,i,e){tu[n]=Wn(i)?i:function(t,r){return t&&e?e:i}}function C1(n,i){return Jt(tu,n)?tu[n](i._strict,i._locale):new RegExp(D1(n))}function D1(n){return Nr(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(i,e,t,r,a){return e||t||r||a}))}function Nr(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Cd={};function pi(n,i){var e,t=i,r;for(typeof n=="string"&&(n=[n]),sa(i)&&(t=function(a,s){s[i]=jt(a)}),r=n.length,e=0;e<r;e++)Cd[n[e]]=t}function Jo(n,i){pi(n,function(e,t,r,a){r._w=r._w||{},i(e,r._w,r,a)})}function S1(n,i,e){i!=null&&Jt(Cd,n)&&Cd[n](i,e._a,e,n)}var mr=0,Jn=1,Mn=2,rr=3,fn=4,ea=5,Ua=6,O1=7,T1=8;function k1(n,i){return(n%i+i)%i}var Wi;Array.prototype.indexOf?Wi=Array.prototype.indexOf:Wi=function(n){var i;for(i=0;i<this.length;++i)if(this[i]===n)return i;return-1};function Hu(n,i){if(isNaN(n)||isNaN(i))return NaN;var e=k1(i,12);return n+=(i-e)/12,e===1?Fu(n)?29:28:31-e%7%2}nt("M",["MM",2],"Mo",function(){return this.month()+1});nt("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});nt("MMMM",0,0,function(n){return this.localeData().months(this,n)});xr("month","M");_r("month",8);He("M",Si);He("MM",Si,Wr);He("MMM",function(n,i){return i.monthsShortRegex(n)});He("MMMM",function(n,i){return i.monthsRegex(n)});pi(["M","MM"],function(n,i){i[Jn]=jt(n)-1});pi(["MMM","MMMM"],function(n,i,e,t){var r=e._locale.monthsParse(n,t,e._strict);r!=null?i[Jn]=r:Dt(e).invalidMonth=n});var M1="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Av="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),jv=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,A1=Qo,j1=Qo;function V1(n,i){return n?mn(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||jv).test(i)?"format":"standalone"][n.month()]:mn(this._months)?this._months:this._months.standalone}function F1(n,i){return n?mn(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[jv.test(i)?"format":"standalone"][n.month()]:mn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function I1(n,i,e){var t,r,a,s=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],t=0;t<12;++t)a=Yn([2e3,t]),this._shortMonthsParse[t]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[t]=this.months(a,"").toLocaleLowerCase();return e?i==="MMM"?(r=Wi.call(this._shortMonthsParse,s),r!==-1?r:null):(r=Wi.call(this._longMonthsParse,s),r!==-1?r:null):i==="MMM"?(r=Wi.call(this._shortMonthsParse,s),r!==-1?r:(r=Wi.call(this._longMonthsParse,s),r!==-1?r:null)):(r=Wi.call(this._longMonthsParse,s),r!==-1?r:(r=Wi.call(this._shortMonthsParse,s),r!==-1?r:null))}function E1(n,i,e){var t,r,a;if(this._monthsParseExact)return I1.call(this,n,i,e);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),t=0;t<12;t++){if(r=Yn([2e3,t]),e&&!this._longMonthsParse[t]&&(this._longMonthsParse[t]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[t]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!e&&!this._monthsParse[t]&&(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[t]=new RegExp(a.replace(".",""),"i")),e&&i==="MMMM"&&this._longMonthsParse[t].test(n))return t;if(e&&i==="MMM"&&this._shortMonthsParse[t].test(n))return t;if(!e&&this._monthsParse[t].test(n))return t}}function Vv(n,i){var e;if(!n.isValid())return n;if(typeof i=="string"){if(/^\d+$/.test(i))i=jt(i);else if(i=n.localeData().monthsParse(i),!sa(i))return n}return e=Math.min(n.date(),Hu(n.year(),i)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](i,e),n}function Fv(n){return n!=null?(Vv(this,n),Me.updateOffset(this,!0),this):eu(this,"Month")}function L1(){return Hu(this.year(),this.month())}function R1(n){return this._monthsParseExact?(Jt(this,"_monthsRegex")||Iv.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(Jt(this,"_monthsShortRegex")||(this._monthsShortRegex=A1),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function N1(n){return this._monthsParseExact?(Jt(this,"_monthsRegex")||Iv.call(this),n?this._monthsStrictRegex:this._monthsRegex):(Jt(this,"_monthsRegex")||(this._monthsRegex=j1),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function Iv(){function n(s,o){return o.length-s.length}var i=[],e=[],t=[],r,a;for(r=0;r<12;r++)a=Yn([2e3,r]),i.push(this.monthsShort(a,"")),e.push(this.months(a,"")),t.push(this.months(a,"")),t.push(this.monthsShort(a,""));for(i.sort(n),e.sort(n),t.sort(n),r=0;r<12;r++)i[r]=Nr(i[r]),e[r]=Nr(e[r]);for(r=0;r<24;r++)t[r]=Nr(t[r]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+e.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}nt("Y",0,0,function(){var n=this.year();return n<=9999?Rn(n,4):"+"+n});nt(0,["YY",2],0,function(){return this.year()%100});nt(0,["YYYY",4],0,"year");nt(0,["YYYYY",5],0,"year");nt(0,["YYYYYY",6,!0],0,"year");xr("year","y");_r("year",1);He("Y",Ru);He("YY",Si,Wr);He("YYYY",Tc,Oc);He("YYYYY",Lu,Iu);He("YYYYYY",Lu,Iu);pi(["YYYYY","YYYYYY"],mr);pi("YYYY",function(n,i){i[mr]=n.length===2?Me.parseTwoDigitYear(n):jt(n)});pi("YY",function(n,i){i[mr]=Me.parseTwoDigitYear(n)});pi("Y",function(n,i){i[mr]=parseInt(n,10)});function bo(n){return Fu(n)?366:365}Me.parseTwoDigitYear=function(n){return jt(n)+(jt(n)>68?1900:2e3)};var Ev=Ws("FullYear",!0);function H1(){return Fu(this.year())}function Y1(n,i,e,t,r,a,s){var o;return n<100&&n>=0?(o=new Date(n+400,i,e,t,r,a,s),isFinite(o.getFullYear())&&o.setFullYear(n)):o=new Date(n,i,e,t,r,a,s),o}function Io(n){var i,e;return n<100&&n>=0?(e=Array.prototype.slice.call(arguments),e[0]=n+400,i=new Date(Date.UTC.apply(null,e)),isFinite(i.getUTCFullYear())&&i.setUTCFullYear(n)):i=new Date(Date.UTC.apply(null,arguments)),i}function iu(n,i,e){var t=7+i-e,r=(7+Io(n,0,t).getUTCDay()-i)%7;return-r+t-1}function Lv(n,i,e,t,r){var a=(7+e-t)%7,s=iu(n,t,r),o=1+7*(i-1)+a+s,l,u;return o<=0?(l=n-1,u=bo(l)+o):o>bo(n)?(l=n+1,u=o-bo(n)):(l=n,u=o),{year:l,dayOfYear:u}}function Eo(n,i,e){var t=iu(n.year(),i,e),r=Math.floor((n.dayOfYear()-t-1)/7)+1,a,s;return r<1?(s=n.year()-1,a=r+ra(s,i,e)):r>ra(n.year(),i,e)?(a=r-ra(n.year(),i,e),s=n.year()+1):(s=n.year(),a=r),{week:a,year:s}}function ra(n,i,e){var t=iu(n,i,e),r=iu(n+1,i,e);return(bo(n)-t+r)/7}nt("w",["ww",2],"wo","week");nt("W",["WW",2],"Wo","isoWeek");xr("week","w");xr("isoWeek","W");_r("week",5);_r("isoWeek",5);He("w",Si);He("ww",Si,Wr);He("W",Si);He("WW",Si,Wr);Jo(["w","ww","W","WW"],function(n,i,e,t){i[t.substr(0,1)]=jt(n)});function W1(n){return Eo(n,this._week.dow,this._week.doy).week}var B1={dow:0,doy:6};function z1(){return this._week.dow}function U1(){return this._week.doy}function X1(n){var i=this.localeData().week(this);return n==null?i:this.add((n-i)*7,"d")}function G1(n){var i=Eo(this,1,4).week;return n==null?i:this.add((n-i)*7,"d")}nt("d",0,"do","day");nt("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});nt("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});nt("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});nt("e",0,0,"weekday");nt("E",0,0,"isoWeekday");xr("day","d");xr("weekday","e");xr("isoWeekday","E");_r("day",11);_r("weekday",11);_r("isoWeekday",11);He("d",Si);He("e",Si);He("E",Si);He("dd",function(n,i){return i.weekdaysMinRegex(n)});He("ddd",function(n,i){return i.weekdaysShortRegex(n)});He("dddd",function(n,i){return i.weekdaysRegex(n)});Jo(["dd","ddd","dddd"],function(n,i,e,t){var r=e._locale.weekdaysParse(n,t,e._strict);r!=null?i.d=r:Dt(e).invalidWeekday=n});Jo(["d","e","E"],function(n,i,e,t){i[t]=jt(n)});function $1(n,i){return typeof n!="string"?n:isNaN(n)?(n=i.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function K1(n,i){return typeof n=="string"?i.weekdaysParse(n)%7||7:isNaN(n)?null:n}function kc(n,i){return n.slice(i,7).concat(n.slice(0,i))}var q1="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rv="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Z1="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Q1=Qo,J1=Qo,e_=Qo;function t_(n,i){var e=mn(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(i)?"format":"standalone"];return n===!0?kc(e,this._week.dow):n?e[n.day()]:e}function i_(n){return n===!0?kc(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function r_(n){return n===!0?kc(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function n_(n,i,e){var t,r,a,s=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],t=0;t<7;++t)a=Yn([2e3,1]).day(t),this._minWeekdaysParse[t]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[t]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[t]=this.weekdays(a,"").toLocaleLowerCase();return e?i==="dddd"?(r=Wi.call(this._weekdaysParse,s),r!==-1?r:null):i==="ddd"?(r=Wi.call(this._shortWeekdaysParse,s),r!==-1?r:null):(r=Wi.call(this._minWeekdaysParse,s),r!==-1?r:null):i==="dddd"?(r=Wi.call(this._weekdaysParse,s),r!==-1||(r=Wi.call(this._shortWeekdaysParse,s),r!==-1)?r:(r=Wi.call(this._minWeekdaysParse,s),r!==-1?r:null)):i==="ddd"?(r=Wi.call(this._shortWeekdaysParse,s),r!==-1||(r=Wi.call(this._weekdaysParse,s),r!==-1)?r:(r=Wi.call(this._minWeekdaysParse,s),r!==-1?r:null)):(r=Wi.call(this._minWeekdaysParse,s),r!==-1||(r=Wi.call(this._weekdaysParse,s),r!==-1)?r:(r=Wi.call(this._shortWeekdaysParse,s),r!==-1?r:null))}function a_(n,i,e){var t,r,a;if(this._weekdaysParseExact)return n_.call(this,n,i,e);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),t=0;t<7;t++){if(r=Yn([2e3,1]).day(t),e&&!this._fullWeekdaysParse[t]&&(this._fullWeekdaysParse[t]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[t]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[t]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[t]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[t]=new RegExp(a.replace(".",""),"i")),e&&i==="dddd"&&this._fullWeekdaysParse[t].test(n))return t;if(e&&i==="ddd"&&this._shortWeekdaysParse[t].test(n))return t;if(e&&i==="dd"&&this._minWeekdaysParse[t].test(n))return t;if(!e&&this._weekdaysParse[t].test(n))return t}}function s_(n){if(!this.isValid())return n!=null?this:NaN;var i=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=$1(n,this.localeData()),this.add(n-i,"d")):i}function o_(n){if(!this.isValid())return n!=null?this:NaN;var i=(this.day()+7-this.localeData()._week.dow)%7;return n==null?i:this.add(n-i,"d")}function l_(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var i=K1(n,this.localeData());return this.day(this.day()%7?i:i-7)}else return this.day()||7}function u_(n){return this._weekdaysParseExact?(Jt(this,"_weekdaysRegex")||Mc.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Jt(this,"_weekdaysRegex")||(this._weekdaysRegex=Q1),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function h_(n){return this._weekdaysParseExact?(Jt(this,"_weekdaysRegex")||Mc.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Jt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=J1),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function d_(n){return this._weekdaysParseExact?(Jt(this,"_weekdaysRegex")||Mc.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Jt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=e_),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Mc(){function n(h,d){return d.length-h.length}var i=[],e=[],t=[],r=[],a,s,o,l,u;for(a=0;a<7;
vendor: 7,162 bytes, line 30
30a++)s=Yn([2e3,1]).day(a),o=Nr(this.weekdaysMin(s,"")),l=Nr(this.weekdaysShort(s,"")),u=Nr(this.weekdays(s,"")),i.push(o),e.push(l),t.push(u),r.push(o),r.push(l),r.push(u);i.sort(n),e.sort(n),t.sort(n),r.sort(n),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+e.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ac(){return this.hours()%12||12}function c_(){return this.hours()||24}nt("H",["HH",2],0,"hour");nt("h",["hh",2],0,Ac);nt("k",["kk",2],0,c_);nt("hmm",0,0,function(){return""+Ac.apply(this)+Rn(this.minutes(),2)});nt("hmmss",0,0,function(){return""+Ac.apply(this)+Rn(this.minutes(),2)+Rn(this.seconds(),2)});nt("Hmm",0,0,function(){return""+this.hours()+Rn(this.minutes(),2)});nt("Hmmss",0,0,function(){return""+this.hours()+Rn(this.minutes(),2)+Rn(this.seconds(),2)});function Nv(n,i){nt(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),i)})}Nv("a",!0);Nv("A",!1);xr("hour","h");_r("hour",13);function Hv(n,i){return i._meridiemParse}He("a",Hv);He("A",Hv);He("H",Si);He("h",Si);He("k",Si);He("HH",Si,Wr);He("hh",Si,Wr);He("kk",Si,Wr);He("hmm",kv);He("hmmss",Mv);He("Hmm",kv);He("Hmmss",Mv);pi(["H","HH"],rr);pi(["k","kk"],function(n,i,e){var t=jt(n);i[rr]=t===24?0:t});pi(["a","A"],function(n,i,e){e._isPm=e._locale.isPM(n),e._meridiem=n});pi(["h","hh"],function(n,i,e){i[rr]=jt(n),Dt(e).bigHour=!0});pi("hmm",function(n,i,e){var t=n.length-2;i[rr]=jt(n.substr(0,t)),i[fn]=jt(n.substr(t)),Dt(e).bigHour=!0});pi("hmmss",function(n,i,e){var t=n.length-4,r=n.length-2;i[rr]=jt(n.substr(0,t)),i[fn]=jt(n.substr(t,2)),i[ea]=jt(n.substr(r)),Dt(e).bigHour=!0});pi("Hmm",function(n,i,e){var t=n.length-2;i[rr]=jt(n.substr(0,t)),i[fn]=jt(n.substr(t))});pi("Hmmss",function(n,i,e){var t=n.length-4,r=n.length-2;i[rr]=jt(n.substr(0,t)),i[fn]=jt(n.substr(t,2)),i[ea]=jt(n.substr(r))});function f_(n){return(n+"").toLowerCase().charAt(0)==="p"}var p_=/[ap]\.?m?\.?/i,y_=Ws("Hours",!0);function v_(n,i,e){return n>11?e?"pm":"PM":e?"am":"AM"}var Yv={calendar:a1,longDateFormat:u1,invalidDate:d1,ordinal:f1,dayOfMonthOrdinalParse:p1,relativeTime:v1,months:M1,monthsShort:Av,week:B1,weekdays:q1,weekdaysMin:Z1,weekdaysShort:Rv,meridiemParse:p_},Mi={},ro={},Lo;function g_(n,i){var e,t=Math.min(n.length,i.length);for(e=0;e<t;e+=1)if(n[e]!==i[e])return e;return t}function rp(n){return n&&n.toLowerCase().replace("_","-")}function m_(n){for(var i=0,e,t,r,a;i<n.length;){for(a=rp(n[i]).split("-"),e=a.length,t=rp(n[i+1]),t=t?t.split("-"):null;e>0;){if(r=Yu(a.slice(0,e).join("-")),r)return r;if(t&&t.length>=e&&g_(a,t)>=e-1)break;e--}i++}return Lo}function b_(n){return n.match("^[^/\\\\]*$")!=null}function Yu(n){var i=null,e;if(Mi[n]===void 0&&typeof module<"u"&&module&&module.exports&&b_(n))try{i=Lo._abbr,e=require,e("./locale/"+n),_a(i)}catch{Mi[n]=null}return Mi[n]}function _a(n,i){var e;return n&&(Fr(i)?e=la(n):e=jc(n,i),e?Lo=e:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),Lo._abbr}function jc(n,i){if(i!==null){var e,t=Yv;if(i.abbr=n,Mi[n]!=null)Pv("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),t=Mi[n]._config;else if(i.parentLocale!=null)if(Mi[i.parentLocale]!=null)t=Mi[i.parentLocale]._config;else if(e=Yu(i.parentLocale),e!=null)t=e._config;else return ro[i.parentLocale]||(ro[i.parentLocale]=[]),ro[i.parentLocale].push({name:n,config:i}),null;return Mi[n]=new Cc(wd(t,i)),ro[n]&&ro[n].forEach(function(r){jc(r.name,r.config)}),_a(n),Mi[n]}else return delete Mi[n],null}function x_(n,i){if(i!=null){var e,t,r=Yv;Mi[n]!=null&&Mi[n].parentLocale!=null?Mi[n].set(wd(Mi[n]._config,i)):(t=Yu(n),t!=null&&(r=t._config),i=wd(r,i),t==null&&(i.abbr=n),e=new Cc(i),e.parentLocale=Mi[n],Mi[n]=e),_a(n)}else Mi[n]!=null&&(Mi[n].parentLocale!=null?(Mi[n]=Mi[n].parentLocale,n===_a()&&_a(n)):Mi[n]!=null&&delete Mi[n]);return Mi[n]}function la(n){var i;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return Lo;if(!mn(n)){if(i=Yu(n),i)return i;n=[n]}return m_(n)}function __(){return Pd(Mi)}function Vc(n){var i,e=n._a;return e&&Dt(n).overflow===-2&&(i=e[Jn]<0||e[Jn]>11?Jn:e[Mn]<1||e[Mn]>Hu(e[mr],e[Jn])?Mn:e[rr]<0||e[rr]>24||e[rr]===24&&(e[fn]!==0||e[ea]!==0||e[Ua]!==0)?rr:e[fn]<0||e[fn]>59?fn:e[ea]<0||e[ea]>59?ea:e[Ua]<0||e[Ua]>999?Ua:-1,Dt(n)._overflowDayOfYear&&(i<mr||i>Mn)&&(i=Mn),Dt(n)._overflowWeeks&&i===-1&&(i=O1),Dt(n)._overflowWeekday&&i===-1&&(i=T1),Dt(n).overflow=i),n}var w_=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,P_=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,C_=/Z|[+-]\d\d(?::?\d\d)?/,yl=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Mh=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],D_=/^\/?Date\((-?\d+)/i,S_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,O_={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Wv(n){var i,e,t=n._i,r=w_.exec(t)||P_.exec(t),a,s,o,l,u=yl.length,h=Mh.length;if(r){for(Dt(n).iso=!0,i=0,e=u;i<e;i++)if(yl[i][1].exec(r[1])){s=yl[i][0],a=yl[i][2]!==!1;break}if(s==null){n._isValid=!1;return}if(r[3]){for(i=0,e=h;i<e;i++)if(Mh[i][1].exec(r[3])){o=(r[2]||" ")+Mh[i][0];break}if(o==null){n._isValid=!1;return}}if(!a&&o!=null){n._isValid=!1;return}if(r[4])if(C_.exec(r[4]))l="Z";else{n._isValid=!1;return}n._f=s+(o||"")+(l||""),Ic(n)}else n._isValid=!1}function T_(n,i,e,t,r,a){var s=[k_(n),Av.indexOf(i),parseInt(e,10),parseInt(t,10),parseInt(r,10)];return a&&s.push(parseInt(a,10)),s}function k_(n){var i=parseInt(n,10);return i<=49?2e3+i:i<=999?1900+i:i}function M_(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function A_(n,i,e){if(n){var t=Rv.indexOf(n),r=new Date(i[0],i[1],i[2]).getDay();if(t!==r)return Dt(e).weekdayMismatch=!0,e._isValid=!1,!1}return!0}function j_(n,i,e){if(n)return O_[n];if(i)return 0;var t=parseInt(e,10),r=t%100,a=(t-r)/100;return a*60+r}
vendor: 19,302 bytes, line 30
30function Bv(n){var i=S_.exec(M_(n._i)),e;if(i){if(e=T_(i[4],i[3],i[2],i[5],i[6],i[7]),!A_(i[1],e,n))return;n._a=e,n._tzm=j_(i[8],i[9],i[10]),n._d=Io.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),Dt(n).rfc2822=!0}else n._isValid=!1}function V_(n){var i=D_.exec(n._i);if(i!==null){n._d=new Date(+i[1]);return}if(Wv(n),n._isValid===!1)delete n._isValid;else return;if(Bv(n),n._isValid===!1)delete n._isValid;else return;n._strict?n._isValid=!1:Me.createFromInputFallback(n)}Me.createFromInputFallback=an("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});function xs(n,i,e){return n??i??e}function F_(n){var i=new Date(Me.now());return n._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function Fc(n){var i,e,t=[],r,a,s;if(!n._d){for(r=F_(n),n._w&&n._a[Mn]==null&&n._a[Jn]==null&&I_(n),n._dayOfYear!=null&&(s=xs(n._a[mr],r[mr]),(n._dayOfYear>bo(s)||n._dayOfYear===0)&&(Dt(n)._overflowDayOfYear=!0),e=Io(s,0,n._dayOfYear),n._a[Jn]=e.getUTCMonth(),n._a[Mn]=e.getUTCDate()),i=0;i<3&&n._a[i]==null;++i)n._a[i]=t[i]=r[i];for(;i<7;i++)n._a[i]=t[i]=n._a[i]==null?i===2?1:0:n._a[i];n._a[rr]===24&&n._a[fn]===0&&n._a[ea]===0&&n._a[Ua]===0&&(n._nextDay=!0,n._a[rr]=0),n._d=(n._useUTC?Io:Y1).apply(null,t),a=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[rr]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==a&&(Dt(n).weekdayMismatch=!0)}}function I_(n){var i,e,t,r,a,s,o,l,u;i=n._w,i.GG!=null||i.W!=null||i.E!=null?(a=1,s=4,e=xs(i.GG,n._a[mr],Eo(Di(),1,4).year),t=xs(i.W,1),r=xs(i.E,1),(r<1||r>7)&&(l=!0)):(a=n._locale._week.dow,s=n._locale._week.doy,u=Eo(Di(),a,s),e=xs(i.gg,n._a[mr],u.year),t=xs(i.w,u.week),i.d!=null?(r=i.d,(r<0||r>6)&&(l=!0)):i.e!=null?(r=i.e+a,(i.e<0||i.e>6)&&(l=!0)):r=a),t<1||t>ra(e,a,s)?Dt(n)._overflowWeeks=!0:l!=null?Dt(n)._overflowWeekday=!0:(o=Lv(e,t,r,a,s),n._a[mr]=o.year,n._dayOfYear=o.dayOfYear)}Me.ISO_8601=function(){};Me.RFC_2822=function(){};function Ic(n){if(n._f===Me.ISO_8601){Wv(n);return}if(n._f===Me.RFC_2822){Bv(n);return}n._a=[],Dt(n).empty=!0;var i=""+n._i,e,t,r,a,s,o=i.length,l=0,u,h;for(r=Cv(n._f,n._locale).match(Dc)||[],h=r.length,e=0;e<h;e++)a=r[e],t=(i.match(C1(a,n))||[])[0],t&&(s=i.substr(0,i.indexOf(t)),s.length>0&&Dt(n).unusedInput.push(s),i=i.slice(i.indexOf(t)+t.length),l+=t.length),Ts[a]?(t?Dt(n).empty=!1:Dt(n).unusedTokens.push(a),S1(a,t,n)):n._strict&&!t&&Dt(n).unusedTokens.push(a);Dt(n).charsLeftOver=o-l,i.length>0&&Dt(n).unusedInput.push(i),n._a[rr]<=12&&Dt(n).bigHour===!0&&n._a[rr]>0&&(Dt(n).bigHour=void 0),Dt(n).parsedDateParts=n._a.slice(0),Dt(n).meridiem=n._meridiem,n._a[rr]=E_(n._locale,n._a[rr],n._meridiem),u=Dt(n).era,u!==null&&(n._a[mr]=n._locale.erasConvertYear(u,n._a[mr])),Fc(n),Vc(n)}function E_(n,i,e){var t;return e==null?i:n.meridiemHour!=null?n.meridiemHour(i,e):(n.isPM!=null&&(t=n.isPM(e),t&&i<12&&(i+=12),!t&&i===12&&(i=0)),i)}function L_(n){var i,e,t,r,a,s,o=!1,l=n._f.length;if(l===0){Dt(n).invalidFormat=!0,n._d=new Date(NaN);return}for(r=0;r<l;r++)a=0,s=!1,i=Pc({},n),n._useUTC!=null&&(i._useUTC=n._useUTC),i._f=n._f[r],Ic(i),wc(i)&&(s=!0),a+=Dt(i).charsLeftOver,a+=Dt(i).unusedTokens.length*10,Dt(i).score=a,o?a<t&&(t=a,e=i):(t==null||a<t||s)&&(t=a,e=i,s&&(o=!0));ba(n,e||i)}function R_(n){if(!n._d){var i=Sc(n._i),e=i.day===void 0?i.date:i.day;n._a=_v([i.year,i.month,e,i.hour,i.minute,i.second,i.millisecond],function(t){return t&&parseInt(t,10)}),Fc(n)}}function N_(n){var i=new Zo(Vc(zv(n)));return i._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function zv(n){var i=n._i,e=n._f;return n._locale=n._locale||la(n._l),i===null||e===void 0&&i===""?Vu({nullInput:!0}):(typeof i=="string"&&(n._i=i=n._locale.preparse(i)),bn(i)?new Zo(Vc(i)):(qo(i)?n._d=i:mn(e)?L_(n):e?Ic(n):H_(n),wc(n)||(n._d=null),n))}function H_(n){var i=n._i;Fr(i)?n._d=new Date(Me.now()):qo(i)?n._d=new Date(i.valueOf()):typeof i=="string"?V_(n):mn(i)?(n._a=_v(i.slice(0),function(e){return parseInt(e,10)}),Fc(n)):$a(i)?R_(n):sa(i)?n._d=new Date(i):Me.createFromInputFallback(n)}function Uv(n,i,e,t,r){var a={};return(i===!0||i===!1)&&(t=i,i=void 0),(e===!0||e===!1)&&(t=e,e=void 0),($a(n)&&_c(n)||mn(n)&&n.length===0)&&(n=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=e,a._i=n,a._f=i,a._strict=t,N_(a)}function Di(n,i,e,t){return Uv(n,i,e,t,!1)}var Y_=an("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=Di.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:Vu()}),W_=an("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=Di.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:Vu()});function Xv(n,i){var e,t;if(i.length===1&&mn(i[0])&&(i=i[0]),!i.length)return Di();for(e=i[0],t=1;t<i.length;++t)(!i[t].isValid()||i[t][n](e))&&(e=i[t]);return e}function B_(){var n=[].slice.call(arguments,0);return Xv("isBefore",n)}function z_(){var n=[].slice.call(arguments,0);return Xv("isAfter",n)}var U_=function(){return Date.now?Date.now():+new Date},no=["year","quarter","month","week","day","hour","minute","second","millisecond"];function X_(n){var i,e=!1,t,r=no.length;for(i in n)if(Jt(n,i)&&!(Wi.call(no,i)!==-1&&(n[i]==null||!isNaN(n[i]))))return!1;for(t=0;t<r;++t)if(n[no[t]]){if(e)return!1;parseFloat(n[no[t]])!==jt(n[no[t]])&&(e=!0)}return!0}function G_(){return this._isValid}function $_(){return _n(NaN)}function Wu(n){var i=Sc(n),e=i.year||0,t=i.quarter||0,r=i.month||0,a=i.week||i.isoWeek||0,s=i.day||0,o=i.hour||0,l=i.minute||0,u=i.second||0,h=i.millisecond||0;this._isValid=X_(i),this._milliseconds=+h+u*1e3+l*6e4+o*1e3*60*60,this._days=+s+a*7,this._months=+r+t*3+e*12,this._data={},this._locale=la(),this._bubble()}function Ml(n){return n instanceof Wu}function Dd(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function K_(n,i,e){var t=Math.min(n.length,i.length),r=Math.abs(n.length-i.length),a=0,s;for(s=0;s<t;s++)(e&&n[s]!==i[s]||!e&&jt(n[s])!==jt(i[s]))&&a++;return a+r}function Gv(n,i){nt(n,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+Rn(~~(e/60),2)+i+Rn(~~e%60,2)})}Gv("Z",":");Gv("ZZ","");He("Z",Nu);He("ZZ",Nu);pi(["Z","ZZ"],function(n,i,e){e._useUTC=!0,e._tzm=Ec(Nu,n)});var q_=/([\+\-]|\d\d)/gi;function Ec(n,i){var e=(i||"").match(n),t,r,a;return e===null?null:(t=e[e.length-1]||[],r=(t+"").match(q_)||["-",0,0],a=+(r[1]*60)+jt(r[2]),a===0?0:r[0]==="+"?a:-a)}function Lc(n,i){var e,t;return i._isUTC?(e=i.clone(),t=(bn(n)||qo(n)?n.valueOf():Di(n).valueOf())-e.valueOf(),e._d.setTime(e._d.valueOf()+t),Me.updateOffset(e,!1),e):Di(n).local()}function Sd(n){return-Math.round(n._d.getTimezoneOffset())}Me.updateOffset=function(){};function Z_(n,i,e){var t=this._offset||0,r;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=Ec(Nu,n),n===null)return this}else Math.abs(n)<16&&!e&&(n=n*60);return!this._isUTC&&i&&(r=Sd(this)),this._offset=n,this._isUTC=!0,r!=null&&this.add(r,"m"),t!==n&&(!i||this._changeInProgress?qv(this,_n(n-t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Me.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?t:Sd(this)}function Q_(n,i){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,i),this):-this.utcOffset()}function J_(n){return this.utcOffset(0,n)}function e2(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(Sd(this),"m")),this}function t2(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=Ec(w1,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function i2(n){return this.isValid()?(n=n?Di(n).utcOffset():0,(this.utcOffset()-n)%60===0):!1}function r2(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function n2(){if(!Fr(this._isDSTShifted))return this._isDSTShifted;var n={},i;return Pc(n,this),n=zv(n),n._a?(i=n._isUTC?Yn(n._a):Di(n._a),this._isDSTShifted=this.isValid()&&K_(n._a,i.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function a2(){return this.isValid()?!this._isUTC:!1}function s2(){return this.isValid()?this._isUTC:!1}function $v(){return this.isValid()?this._isUTC&&this._offset===0:!1}var o2=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,l2=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _n(n,i){var e=n,t=null,r,a,s;return Ml(n)?e={ms:n._milliseconds,d:n._days,M:n._months}:sa(n)||!isNaN(+n)?(e={},i?e[i]=+n:e.milliseconds=+n):(t=o2.exec(n))?(r=t[1]==="-"?-1:1,e={y:0,d:jt(t[Mn])*r,h:jt(t[rr])*r,m:jt(t[fn])*r,s:jt(t[ea])*r,ms:jt(Dd(t[Ua]*1e3))*r}):(t=l2.exec(n))?(r=t[1]==="-"?-1:1,e={y:Na(t[2],r),M:Na(t[3],r),w:Na(t[4],r),d:Na(t[5],r),h:Na(t[6],r),m:Na(t[7],r),s:Na(t[8],r)}):e==null?e={}:typeof e=="object"&&("from"in e||"to"in e)&&(s=u2(Di(e.from),Di(e.to)),e={},e.ms=s.milliseconds,e.M=s.months),a=new Wu(e),Ml(n)&&Jt(n,"_locale")&&(a._locale=n._locale),Ml(n)&&Jt(n,"_isValid")&&(a._isValid=n._isValid),a}_n.fn=Wu.prototype;_n.invalid=$_;function Na(n,i){var e=n&&parseFloat(n.replace(",","."));return(isNaN(e)?0:e)*i}function np(n,i){var e={};return e.months=i.month()-n.month()+(i.year()-n.year())*12,n.clone().add(e.months,"M").isAfter(i)&&--e.months,e.milliseconds=+i-+n.clone().add(e.months,"M"),e}function u2(n,i){var e;return n.isValid()&&i.isValid()?(i=Lc(i,n),n.isBefore(i)?e=np(n,i):(e=np(i,n),e.milliseconds=-e.milliseconds,e.months=-e.months),e):{milliseconds:0,months:0}}function Kv(n,i){return function(e,t){var r,a;return t!==null&&!isNaN(+t)&&(Pv(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=e,e=t,t=a),r=_n(e,t),qv(this,r,n),this}}function qv(n,i,e,t){var r=i._milliseconds,a=Dd(i._days),s=Dd(i._months);n.isValid()&&(t=t??!0,s&&Vv(n,eu(n,"Month")+s*e),a&&Sv(n,"Date",eu(n,"Date")+a*e),r&&n._d.setTime(n._d.valueOf()+r*e),t&&Me.updateOffset(n,a||s))}var h2=Kv(1,"add"),d2=Kv(-1,"subtract");function Zv(n){return typeof n=="string"||n instanceof String}function c2(n){return bn(n)||qo(n)||Zv(n)||sa(n)||p2(n)||f2(n)||n===null||n===void 0}function f2(n){var i=$a(n)&&!_c(n),e=!1,t=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,a,s=t.length;for(r=0;r<s;r+=1)a=t[r],e=e||Jt(n,a);return i&&e}function p2(n){var i=mn(n),e=!1;return i&&(e=n.filter(function(t){return!sa(t)&&Zv(n)}).length===0),i&&e}function y2(n){var i=$a(n)&&!_c(n),e=!1,t=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,a;for(r=0;r<t.length;r+=1)a=t[r],e=e||Jt(n,a);return i&&e}function v2(n,i){var e=n.diff(i,"days",!0);return e<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"}function g2(n,i){arguments.length===1&&(arguments[0]?c2(arguments[0])?(n=arguments[0],i=void 0):y2(arguments[0])&&(i=arguments[0],n=void 0):(n=void 0,i=void 0));var e=n||Di(),t=Lc(e,this).startOf("day"),r=Me.calendarFormat(this,t)||"sameElse",a=i&&(Wn(i[r])?i[r].call(this,e):i[r]);return this.format(a||this.localeData().calendar(r,this,Di(e)))}function m2(){return new Zo(this)}function b2(n,i){var e=bn(n)?n:Di(n);return this.isValid()&&e.isValid()?(i=sn(i)||"millisecond",i==="millisecond"?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(i).valueOf()):!1}function x2(n,i){var e=bn(n)?n:Di(n);return this.isValid()&&e.isValid()?(i=sn(i)||"millisecond",i==="millisecond"?this.valueOf()<e.valueOf():this.clone().endOf(i).valueOf()<e.valueOf()):!1}function _2(n,i,e,t){var r=bn(n)?n:Di(n),a=bn(i)?i:Di(i);return this.isValid()&&r.isValid()&&a.isValid()?(t=t||"()",(t[0]==="("?this.isAfter(r,e):!this.isBefore(r,e))&&(t[1]===")"?this.isBefore(a,e):!this.isAfter(a,e))):!1}function w2(n,i){var e=bn(n)?n:Di(n),t;return this.isValid()&&e.isValid()?(i=sn(i)||"millisecond",i==="millisecond"?this.valueOf()===e.valueOf():(t=e.valueOf(),this.clone().startOf(i).valueOf()<=t&&t<=this.clone().endOf(i).valueOf())):!1}function P2(n,i){return this.isSame(n,i)||this.isAfter(n,i)}function C2(n,i){return this.isSame(n,i)||this.isBefore(n,i)}function D2(n,i,e){var t,r,a;if(!this.isValid())return NaN;if(t=Lc(n,this),!t.isValid())return NaN;switch(r=(t.utcOffset()-this.utcOffset())*6e4,i=sn(i),i){case"year":a=Al(this,t)/12;break;case"month":a=Al(this,t);break;case"quarter":a=Al(this,t)/3;break;case"second":a=(this-t)/1e3;break;case"minute":a=(this-t)/6e4;break;case"hour":a=(this-t)/36e5;break;case"day":a=(this-t-r)/864e5;break;case"week":a=(this-t-r)/6048e5;break;default:a=this-t}return e?a:Zr(a)}function Al(n,i){if(n.date()<i.date())return-Al(i,n);var e=(i.year()-n.year())*12+(i.month()-n.month()),t=n.clone().add(e,"months"),r,a;return i-t<0?(r=n.clone().add(e-1,"months"),a=(i-t)/(t-r)):(r=n.clone().add(e+1,"months"),a=(i-t)/(r-t)),-(e+a)||0}Me.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Me.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function S2(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function O2(n){if(!this.isValid())return null;var i=n!==!0,e=i?this.clone().utc():this;return e.year()<0||e.year()>9999?kl(e,i?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Wn(Date.prototype.toISOString)?i?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",kl(e,"Z")):kl(e,i?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function T2(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",i="",e,t,r,a;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",i="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",a=i+'[")]',this.format(e+t+r+a)}function k2(n){n||(n=this.isUtc()?Me.defaultFormatUtc:Me.defaultFormat);var i=kl(this,n);return this.localeData().postformat(i)}function M2(n,i){return this.isValid()&&(bn(n)&&n.isValid()||Di(n).isValid())?_n({to:this,from:n}).locale(this.locale()).humanize(!i):this.localeData().invalidDate()}function A2(n){return this.from(Di(),n)}function j2(n,i){return this.isValid()&&(bn(n)&&n.isValid()||Di(n).isValid())?_n({from:this,to:n}).locale(this.locale()).humanize(!i):this.localeData().invalidDate()}function V2(n){return this.to(Di(),n)}function Qv(n){var i;return n===void 0?this._locale._abbr:(i=la(n),i!=null&&(this._locale=i),this)}var Jv=an("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function eg(){return this._locale}var ru=1e3,ks=60*ru,nu=60*ks,tg=(365*400+97)*24*nu;function Ms(n,i){return(n%i+i)%i}function ig(n,i,e){return n<100&&n>=0?new Date(n+400,i,e)-tg:new Date(n,i,e).valueOf()}function rg(n,i,e){return n<100&&n>=0?Date.UTC(n+400,i,e)-tg:Date.UTC(n,i,e)}function F2(n){var i,e;if(n=sn(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(e=this._isUTC?rg:ig,n){case"year":i=e(this.year(),0,1);break;case"quarter":i=e(this.year(),this.month()-this.month()%3,1);break;case"month":i=e(this.year(),this.month(),1);break;case"week":i=e(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=e(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf(),i-=Ms(i+(this._isUTC?0:this.utcOffset()*ks),nu);break;case"minute":i=this._d.valueOf(),i-=Ms(i,ks);break;case"second":i=this._d.valueOf(),i-=Ms(i,ru);break}return this._d.setTime(i),Me.updateOffset(this,!0),this}function I2(n){var i,e;if(n=sn(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(e=this._isUTC?rg:ig,n){case"year":i=e(this.year()+1,0,1)-1;break;case"quarter":i=e(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=e(this.year(),this.month()+1,1)-1;break;case"week":i=e(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=e(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf(),i+=nu-Ms(i+(this._isUTC?0:this.utcOffset()*ks),nu)-1;break;case"minute":i=this._d.valueOf(),i+=ks-Ms(i,ks)-1;break;case"second":i=this._d.valueOf(),i+=ru-Ms(i,ru)-1;break}return this._d.setTime(i),Me.updateOffset(this,!0),this}function E2(){return this._d.valueOf()-(this._offset||0)*6e4}function L2(){return Math.floor(this.valueOf()/1e3)}function R2(){return new Date(this.valueOf())}function N2(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function H2(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Y2(){return this.isValid()?this.toISOString():null}function W2(){return wc(this)}function B2(){return ba({},Dt(this))}function z2(){return Dt(this).overflow}function U2(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}nt("N",0,0,"eraAbbr");nt("NN",0,0,"eraAbbr");nt("NNN",0,0,"eraAbbr");nt("NNNN",0,0,"eraName");nt("NNNNN",0,0,"eraNarrow");nt("y",["y",1],"yo","eraYear");nt("y",["yy",2],0,"eraYear");nt("y",["yyy",3],0,"eraYear");nt("y",["yyyy",4],0,"eraYear");He("N",Rc);He("NN",Rc);He("NNN",Rc);He("NNNN",iw);He("NNNNN",rw);pi(["N","NN","NNN","NNNN","NNNNN"],function(n,i,e,t){var r=e._locale.erasParse(n,t,e._strict);r?Dt(e).era=r:Dt(e).invalidEra=n});He("y",Bs);He("yy",Bs);He("yyy",Bs);He("yyyy",Bs);He("yo",nw);pi(["y","yy","yyy","yyyy"],mr);pi(["yo"],function(n,i,e,t){var r;e._locale._eraYearOrdinalRegex&&(r=n.match(e._locale._eraYearOrdinalRegex)),e._locale.eraYearOrdinalParse?i[mr]=e._locale.eraYearOrdinalParse(n,r):i[mr]=parseInt(n,10)});function X2(n,i){var e,t,r,a=this._eras||la("en")._eras;for(e=0,t=a.length;e<t;++e){switch(typeof a[e].since){case"string":r=Me(a[e].since).startOf("day"),a[e].since=r.valueOf();break}switch(typeof a[e].until){case"undefined":a[e].until=1/0;break;case"string":r=Me(a[e].until).startOf("day").valueOf(),a[e].until=r.valueOf();break}}return a}function G2(n,i,e){var t,r,a=this.eras(),s,o,l;for(n=n.toUpperCase(),t=0,r=a.length;t<r;++t)if(s=a[t].name.toUpperCase(),o=a[t].abbr.toUpperCase(),l=a[t].narrow.toUpperCase(),e)switch(i){case"N":case"NN":case"NNN":if(o===n)return a[t];break;case"NNNN":if(s===n)return a[t];break;case"NNNNN":if(l===n)return a[t];break}else if([s,o,l].indexOf(n)>=0)return a[t]}function $2(n,i){var e=n.since<=n.until?1:-1;return i===void 0?Me(n.since).year():Me(n.since).year()+(i-n.offset)*e}function K2(){var n,i,e,t=this.localeData().eras();for(n=0,i=t.length;n<i;
30++n)if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until||t[n].until<=e&&e<=t[n].since)return t[n].name;return""}function q2(){var n,i,e,t=this.localeData().eras();for(n=0,i=t.length;n<i;++n)if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until||t[n].until<=e&&e<=t[n].since)return t[n].narrow;return""}function Z2(){var n,i,e,t=this.localeData().eras();for(n=0,i=t.length;n<i;++n)if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until||t[n].until<=e&&e<=t[n].since)return t[n].abbr;return""}function Q2(){var n,i,e,t,r=this.localeData().eras();for(n=0,i=r.length;n<i;++n)if(e=r[n].since<=r[n].until?1:-1,t=this.clone().startOf("day").valueOf(),r[n].since<=t&&t<=r[n].until||r[n].until<=t&&t<=r[n].since)return(this.year()-Me(r[n].since).year())*e+r[n].offset;return this.year()}function J2(n){return Jt(this,"_erasNameRegex")||Nc.call(this),n?this._erasNameRegex:this._erasRegex}function ew(n){return Jt(this,"_erasAbbrRegex")||Nc.call(this),n?this._erasAbbrRegex:this._erasRegex}function tw(n){return Jt(this,"_erasNarrowRegex")||Nc.call(this),n?this._erasNarrowRegex:this._erasRegex}function Rc(n,i){return i.erasAbbrRegex(n)}function iw(n,i){return i.erasNameRegex(n)}function rw(n,i){return i.erasNarrowRegex(n)}function nw(n,i){return i._eraYearOrdinalRegex||Bs}function Nc(){var n=[],i=[],e=[],t=[],r,a,s=this.eras();for(r=0,a=s.length;r<a;++r)i.push(Nr(s[r].name)),n.push(Nr(s[r].abbr)),e.push(Nr(s[r].narrow)),t.push(Nr(s[r].name)),t.push(Nr(s[r].abbr)),t.push(Nr(s[r].narrow));this._erasRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+e.join("|")+")","i")}nt(0,["gg",2],0,function(){return this.weekYear()%100});nt(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Bu(n,i){nt(0,[n,n.length],0,i)}Bu("gggg","weekYear");Bu("ggggg","weekYear");Bu("GGGG","isoWeekYear");Bu("GGGGG","isoWeekYear");xr("weekYear","gg");xr("isoWeekYear","GG");_r("weekYear",1);_r("isoWeekYear",1);He("G",Ru);He("g",Ru);He("GG",Si,Wr);He("gg",Si,Wr);He("GGGG",Tc,Oc);He("gggg",Tc,Oc);He("GGGGG",Lu,Iu);He("ggggg",Lu,Iu);Jo(["gggg","ggggg","GGGG","GGGGG"],function(n,i,e,t){i[t.substr(0,2)]=jt(n)});Jo(["gg","GG"],function(n,i,e,t){i[t]=Me.parseTwoDigitYear(n)});function aw(n){return ng.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function sw(n){return ng.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function ow(){return ra(this.year(),1,4)}function lw(){return ra(this.isoWeekYear(),1,4)}function uw(){var n=this.localeData()._week;return ra(this.year(),n.dow,n.doy)}function hw(){var n=this.localeData()._week;return ra(this.weekYear(),n.dow,n.doy)}function ng(n,i,e,t,r){var a;return n==null?Eo(this,t,r).year:(a=ra(n,t,r),i>a&&(i=a),dw.call(this,n,i,e,t,r))}function dw(n,i,e,t,r){var a=Lv(n,i,e,t,r),s=Io(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}nt("Q",0,"Qo","quarter");xr("quarter","Q");_r("quarter",7);He("Q",Ov);pi("Q",function(n,i){i[Jn]=(jt(n)-1)*3});function cw(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}nt("D",["DD",2],"Do","date");xr("date","D");_r("date",9);He("D",Si);He("DD",Si,Wr);He("Do",function(n,i){return n?i._dayOfMonthOrdinalParse||i._ordinalParse:i._dayOfMonthOrdinalParseLenient});pi(["D","DD"],Mn);pi("Do",function(n,i){i[Mn]=jt(n.match(Si)[0])});var ag=Ws("Date",!0);nt("DDD",["DDDD",3],"DDDo","dayOfYear");xr("dayOfYear","DDD");_r("dayOfYear",4);He("DDD",Eu);He("DDDD",Tv);pi(["DDD","DDDD"],function(n,i,e){e._dayOfYear=jt(n)});function fw(n){var i=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?i:this.add(n-i,"d")}nt("m",["mm",2],0,"minute");xr("minute","m");_r("minute",14);He("m",Si);He("mm",Si,Wr);pi(["m","mm"],fn);var pw=Ws("Minutes",!1);nt("s",["ss",2],0,"second");xr("second","s");_r("second",15);He("s",Si);He("ss",Si,Wr);pi(["s","ss"],ea);var yw=Ws("Seconds",!1);nt("S",0,0,function(){return~~(this.millisecond()/100)});nt(0,["SS",2],0,function(){return~~(this.millisecond()/10)});nt(0,["SSS",3],0,"millisecond");nt(0,["SSSS",4],0,function(){return this.millisecond()*10});nt(0,["SSSSS",5],0,function(){return this.millisecond()*100});nt(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});nt(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});nt(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});nt(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});xr("millisecond","ms");_r("millisecond",16);He("S",Eu,Ov);He("SS",Eu,Wr);He("SSS",Eu,Tv);var xa,sg;for(xa="SSSS";xa.length<=9;xa+="S")He(xa,Bs);function vw(n,i){i[Ua]=jt(("0."+n)*1e3)}for(xa="S";xa.length<=9;xa+="S")pi(xa,vw);sg=Ws("Milliseconds",!1);nt("z",0,0,"zoneAbbr");nt("zz",0,0,"zoneName");function gw(){return this._isUTC?"UTC":""}function mw(){return this._isUTC?"Coordinated Universal Time":""}var Te=Zo.prototype;Te.add=h2;Te.calendar=g2;Te.clone=m2;Te.diff=D2;Te.endOf=I2;Te.format=k2;Te.from=M2;Te.fromNow=A2;Te.to=j2;Te.toNow=V2;Te.get=x1;
vendor: 6,580 bytes, line 30
30Te.invalidAt=z2;Te.isAfter=b2;Te.isBefore=x2;Te.isBetween=_2;Te.isSame=w2;Te.isSameOrAfter=P2;Te.isSameOrBefore=C2;Te.isValid=W2;Te.lang=Jv;Te.locale=Qv;Te.localeData=eg;Te.max=W_;Te.min=Y_;Te.parsingFlags=B2;Te.set=_1;Te.startOf=F2;Te.subtract=d2;Te.toArray=N2;Te.toObject=H2;Te.toDate=R2;Te.toISOString=O2;Te.inspect=T2;typeof Symbol<"u"&&Symbol.for!=null&&(Te[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Te.toJSON=Y2;Te.toString=S2;Te.unix=L2;Te.valueOf=E2;Te.creationData=U2;Te.eraName=K2;Te.eraNarrow=q2;Te.eraAbbr=Z2;Te.eraYear=Q2;Te.year=Ev;Te.isLeapYear=H1;Te.weekYear=aw;Te.isoWeekYear=sw;Te.quarter=Te.quarters=cw;Te.month=Fv;Te.daysInMonth=L1;Te.week=Te.weeks=X1;Te.isoWeek=Te.isoWeeks=G1;Te.weeksInYear=uw;Te.weeksInWeekYear=hw;Te.isoWeeksInYear=ow;Te.isoWeeksInISOWeekYear=lw;Te.date=ag;Te.day=Te.days=s_;Te.weekday=o_;Te.isoWeekday=l_;Te.dayOfYear=fw;Te.hour=Te.hours=y_;Te.minute=Te.minutes=pw;Te.second=Te.seconds=yw;Te.millisecond=Te.milliseconds=sg;Te.utcOffset=Z_;Te.utc=J_;Te.local=e2;Te.parseZone=t2;Te.hasAlignedHourOffset=i2;Te.isDST=r2;Te.isLocal=a2;Te.isUtcOffset=s2;Te.isUtc=$v;Te.isUTC=$v;Te.zoneAbbr=gw;Te.zoneName=mw;Te.dates=an("dates accessor is deprecated. Use date instead.",ag);Te.months=an("months accessor is deprecated. Use month instead",Fv);Te.years=an("years accessor is deprecated. Use year instead",Ev);Te.zone=an("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Q_);Te.isDSTShifted=an("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",n2);function bw(n){return Di(n*1e3)}function xw(){return Di.apply(null,arguments).parseZone()}function og(n){return n}var ei=Cc.prototype;ei.calendar=s1;ei.longDateFormat=h1;ei.invalidDate=c1;ei.ordinal=y1;ei.preparse=og;ei.postformat=og;ei.relativeTime=g1;ei.pastFuture=m1;ei.set=n1;ei.eras=X2;ei.erasParse=G2;ei.erasConvertYear=$2;ei.erasAbbrRegex=ew;ei.erasNameRegex=J2;ei.erasNarrowRegex=tw;ei.months=V1;ei.monthsShort=F1;ei.monthsParse=E1;ei.monthsRegex=N1;ei.monthsShortRegex=R1;ei.week=W1;ei.firstDayOfYear=U1;ei.firstDayOfWeek=z1;ei.weekdays=t_;ei.weekdaysMin=r_;ei.weekdaysShort=i_;ei.weekdaysParse=a_;ei.weekdaysRegex=u_;ei.weekdaysShortRegex=h_;ei.weekdaysMinRegex=d_;ei.isPM=f_;ei.meridiem=v_;function au(n,i,e,t){var r=la(),a=Yn().set(t,i);return r[e](a,n)}function lg(n,i,e){if(sa(n)&&(i=n,n=void 0),n=n||"",i!=null)return au(n,i,e,"month");var t,r=[];for(t=0;t<12;t++)r[t]=au(n,t,e,"month");return r}function Hc(n,i,e,t){typeof n=="boolean"?(sa(i)&&(e=i,i=void 0),i=i||""):(i=n,e=i,n=!1,sa(i)&&(e=i,i=void 0),i=i||"");var r=la(),a=n?r._week.dow:0,s,o=[];if(e!=null)return au(i,(e+a)%7,t,"day");for(s=0;s<7;s++)o[s]=au(i,(s+a)%7,t,"day");return o}function _w(n,i){return lg(n,i,"months")}function ww(n,i){return lg(n,i,"monthsShort")}function Pw(n,i,e){return Hc(n,i,e,"weekdays")}function Cw(n,i,e){return Hc(n,i,e,"weekdaysShort")}function Dw(n,i,e){return Hc(n,i,e,"weekdaysMin")}_a("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var i=n%10,e=jt(n%100/10)===1?"th":i===1?"st":i===2?"nd":i===3?"rd":"th";return n+e}});Me.lang=an("moment.lang is deprecated. Use moment.locale instead.",_a);Me.langData=an("moment.langData is deprecated. Use moment.localeData instead.",la);var Xn=Math.abs;function Sw(){var n=this._data;return this._milliseconds=Xn(this._milliseconds),this._days=Xn(this._days),this._months=Xn(this._months),n.milliseconds=Xn(n.milliseconds),n.seconds=Xn(n.seconds),n.minutes=Xn(n.minutes),n.hours=Xn(n.hours),n.months=Xn(n.months),n.years=Xn(n.years),this}function ug(n,i,e,t){var r=_n(i,e);return n._milliseconds+=t*r._milliseconds,n._days+=t*r._days,n._months+=t*r._months,n._bubble()}function Ow(n,i){return ug(this,n,i,1)}function Tw(n,i){return ug(this,n,i,-1)}function ap(n){return n<0?Math.floor(n):Math.ceil(n)}function kw(){var n=this._milliseconds,i=this._days,e=this._months,t=this._data,r,a,s,o,l;return n>=0&&i>=0&&e>=0||n<=0&&i<=0&&e<=0||(n+=ap(Od(e)+i)*864e5,i=0,e=0),t.milliseconds=n%1e3,r=Zr(n/1e3),t.seconds=r%60,a=Zr(r/60),t.minutes=a%60,s=Zr(a/60),t.hours=s%24,i+=Zr(s/24),l=Zr(hg(i)),e+=l,i-=ap(Od(l)),o=Zr(e/12),e%=12,t.days=i,t.months=e,t.years=o,this}function hg(n){return n*4800/146097}function Od(n){return n*146097/4800}function Mw(n){if(!this.isValid())return NaN;var i,e,t=this._milliseconds;if(n=sn(n),n==="month"||n==="quarter"||n==="year")switch(i=this._days+t/864e5,e=this._months+hg(i),n){case"month":return e;case"quarter":return e/3;case"year":return e/12}else switch(i=this._days+Math.round(Od(this._months)),n){case"week":return i/7+t/6048e5;case"day":return i+t/864e5;case"hour":return i*24+t/36e5;case"minute":return i*1440+t/6e4;case"second":return i*86400+t/1e3;case"millisecond":return Math.floor(i*864e5)+t;default:throw new Error("Unknown unit "+n)}}function Aw(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+jt(this._months/12)*31536e6:NaN}function ua(n){return function(){return this.as(n)}}var jw=ua("ms"),Vw=ua("s"),Fw=ua("m"),Iw=ua("h"),Ew=ua("d"),Lw=ua("w"),Rw=ua("M"),Nw=ua("Q"),Hw=ua("y");function Yw(){return _n(this)}function Ww(n){return n=sn(n),this.isValid()?this[n+"s"]():NaN}function ls(n){return function(){return this.isValid()?this._data[n]:NaN}}var Bw=ls("milliseconds"),zw=ls("seconds"),Uw=ls("minutes"),Xw=ls("hours"),Gw=ls("days"),$w=ls("months"),Kw=ls("years");function qw(){return Zr(this.days()/7)}var $n=Math.round,Cs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Zw(n,i,e,t,r){return r.relativeTime(i||1,!!e,n,t)}function Qw(n,i,e,t){var r=_n(n).abs(),a=$n(r.as("s")),s=$n(r.as("m")),o=$n(r.as("h")),l=$n(r.as("d")),u=$n(r.as("M")),h=$n(r.as("w")),d=$n(r.as("y")),f=a<=e.ss&&["s",a]||a<e.s&&["ss",a]||s<=1&&["m"]||s<e.m&&["mm",s]||o<=1&&["h"]||o<e.h&&["hh",o]||l<=1&&["d"]||l<e.d&&["dd",l];return e.w!=null&&(f=f||h<=1&&["w"]||h<e.w&&["ww",h]),f=f||u<=1&&["M"]||u<e.M&&["MM",u]||d<=1&&["y"]||["yy",d],f[2]=i,f[3]=+n>0,f[4]=t,Zw.apply(null,f)}function Jw(n){return n===void 0?$n:typeof n=="function"?($n=n,!0):!1}function eP(n,i){return Cs[n]===void 0?!1:i===void 0?Cs[n]:(Cs[n]=i,n==="s"&&(Cs.ss=i-1),!0)}function tP(n,i){if(!this.isValid())return this.localeData().invalidDate();var e=!1,t=Cs,r,a;return typeof n=="object"&&(i=n,n=!1),typeof n=="boolean"&&(e=n),typeof i=="object"&&(t=Object.assign({}
30,Cs,i),i.s!=null&&i.ss==null&&(t.ss=i.s-1)),r=this.localeData(),a=Qw(this,!e,t,r),e&&(a=r.pastFuture(+this,a)),r.postformat(a)}var Ah=Math.abs;function gs(n){return(n>0)-(n<0)||+n}function zu(){if(!this.isValid())return this.localeData().invalidDate();var n=Ah(this._milliseconds)/1e3,i=Ah(this._days),e=Ah(this._months),t,r,a,s,o=this.asSeconds(),l,u,h,d;return o?(t=Zr(n/60),r=Zr(t/60),n%=60,t%=60,a=Zr(e/12),e%=12,s=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",u=gs(this._months)!==gs(o)?"-":"",h=gs(this._days)!==gs(o)?"-":"",d=gs(this._milliseconds)!==gs(o)?"-":"",l+"P"+(a?u+a+"Y":"")+(e?u+e+"M":"")+(i?h+i+"D":"")+(r||t||n?"T":"")+(r?d+r+"H":"")+(t?d+t+"M":"")+(n?d+s+"S":"")):"P0D"}var Ut=Wu.prototype;Ut.isValid=G_;Ut.abs=Sw;Ut.add=Ow;Ut.subtract=Tw;Ut.as=Mw;Ut.asMilliseconds=jw;Ut.asSeconds=Vw;Ut.asMinutes=Fw;Ut.asHours=Iw;Ut.asDays=Ew;Ut.asWeeks=Lw;Ut.asMonths=Rw;Ut.asQuarters=Nw;Ut.asYears=Hw;Ut.valueOf=Aw;Ut._bubble=kw;Ut.clone=Yw;Ut.get=Ww;Ut.milliseconds=Bw;Ut.seconds=zw;Ut.minutes=Uw;Ut.hours=Xw;Ut.days=Gw;Ut.weeks=qw;Ut.months=$w;Ut.years=Kw;Ut.humanize=tP;Ut.toISOString=zu;Ut.toString=zu;Ut.toJSON=zu;Ut.locale=Qv;Ut.localeData=eg;Ut.toIsoString=an("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",zu);Ut.lang=Jv;nt("X",0,0,"unix");nt("x",0,0,"valueOf");He("x",Ru);He("X",P1);pi("X",function(n,i,e){e._d=new Date(parseFloat(n)*1e3)});pi("x",function(n,i,e){e._d=new Date(jt(n))});//! moment.js
31Me.version="2.29.4";i1(Di);Me.fn=Te;Me.min=B_;Me.max=z_;Me.now=U_;Me.utc=Yn;Me.unix=bw;Me.months=_w;Me.isDate=qo;Me.locale=_a;Me.invalid=Vu;Me.duration=_n;Me.isMoment=bn;Me.weekdays=Pw;Me.parseZone=xw;Me.localeData=la;Me.isDuration=Ml;Me.monthsShort=ww;Me.weekdaysMin=Dw;Me.defineLocale=jc;Me.updateLocale=x_;Me.locales=__;Me.weekdaysShort=Cw;Me.normalizeUnits=sn;Me.relativeTimeRounding=Jw;Me.relativeTimeThreshold=eP;Me.calendarFormat=v2;Me.prototype=Te;Me.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var dg={exports:{}};/*!
32 * jQuery JavaScript Library v3.7.1
33 * https://jquery.com/
34 *
35 * Copyright OpenJS Foundation and other contributors
36 * Released under the MIT license
37 * https://jquery.org/license
38 *
39 * Date: 2023-08-28T13:37Z
40 */(function(n){(function(i,e){n.exports=i.document?e(i,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}})(typeof window<"u"?window:Vp,function(i,e){var t=[],r=Object.getPrototypeOf,a=t.slice,s=t.flat?function(c){return t.flat.call(c)}:function(c){return t.concat.apply([],c)},o=t.push,l=t.indexOf,u={},h=u.toString,d=u.hasOwnProperty,f=d.toString,p=f.call(Object),v={},m=function(y){return typeof y=="function"&&typeof y.nodeType!="number"&&typeof y.item!="function"},x=function(y){return y!=null&&y===y.window},w=i.document,P={type:!0,src:!0,nonce:!0,noModule:!0};function O(c,y,b){b=b||w;var _,D,S=b.createElement("script");if(S.text=c,y)for(_ in P)D=y[_]||y.getAttribute&&y.getAttribute(_),D&&S.setAttribute(_,D);b.head.appendChild(S).parentNode.removeChild(S)}function j(c){return c==null?c+"":typeof c=="object"||typeof c=="function"?u[h.call(c)]||"object":typeof c}var M="3.7.1",F=/HTML$/i,g=function(c,y){return new g.fn.init(c,y)};g.fn=g.prototype={jquery:M,constructor:g,length:0,toArray:function(){return a.call(this)},get:function(c){return c==null?a.call(this):c<0?this[c+this.length]:this[c]},pushStack:function(c){var y=g.merge(this.constructor(),c);return y.prevObject=this,y},each:function(c){return g.each(this,c)},map:function(c){return this.pushStack(g.map(this,function(y,b){return c.call(y,b,y)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(g.grep(this,function(c,y){return(y+1)%2}))},odd:function(){return this.pushStack(g.grep(this,function(c,y){return y%2}))},eq:function(c){var y=this.length,b=+c+(c<0?y:0);return this.pushStack(b>=0&&b<y?[this[b]]:[])},end:function(){return this.prevObject||this.constructor()},push:o,sort:t.sort,splice:t.splice},g.extend=g.fn.extend=function(){var c,y,b,_,D,S,k=arguments[0]||{},B=1,Y=arguments.length,G=!1;for(typeof k=="boolean"&&(G=k,k=arguments[B]||{},B++),typeof k!="object"&&!m(k)&&(k={}),B===Y&&(k=this,B--);B<Y;
40B++)if((c=arguments[B])!=null)for(y in c)_=c[y],!(y==="__proto__"||k===_)&&(G&&_&&(g.isPlainObject(_)||(D=Array.isArray(_)))?(b=k[y],D&&!Array.isArray(b)?S=[]:!D&&!g.isPlainObject(b)?S={}:S=b,D=!1,k[y]=g.extend(G,S,_)):_!==void 0&&(k[y]=_));return k},g.extend({expando:"jQuery"+(M+Math.random()).replace(/\D/g,""),isReady:!0,error:function(c){throw new Error(c)},noop:function(){},isPlainObject:function(c){var y,b;return!c||h.call(c)!=="[object Object]"?!1:(y=r(c),y?(b=d.call(y,"constructor")&&y.constructor,typeof b=="function"&&f.call(b)===p):!0)},isEmptyObject:function(c){var y;for(y in c)return!1;return!0},globalEval:function(c,y,b){O(c,{nonce:y&&y.nonce},b)},each:function(c,y){var b,_=0;if(L(c))for(b=c.length;_<b&&y.call(c[_],_,c[_])!==!1;_++);else for(_ in c)if(y.call(c[_],_,c[_])===!1)break;return c},text:function(c){var y,b="",_=0,D=c.nodeType;if(!D)for(;y=c[_++];)b+=g.text(y);return D===1||D===11?c.textContent:D===9?c.documentElement.textContent:D===3||D===4?c.nodeValue:b},makeArray:function(c,y){var b=y||[];return c!=null&&(L(Object(c))?g.merge(b,typeof c=="string"?[c]:c):o.call(b,c)),b},inArray:function(c,y,b){return y==null?-1:l.call(y,c,b)},isXMLDoc:function(c){var y=c&&c.namespaceURI,b=c&&(c.ownerDocument||c).documentElement;return!F.test(y||b&&b.nodeName||"HTML")},merge:function(c,y){for(var b=+y.length,_=0,D=c.length;_<b;_++)c[D++]=y[_];return c.length=D,c},grep:function(c,y,b){for(var _,D=[],S=0,k=c.length,B=!b;S<k;S++)_=!y(c[S],S),_!==B&&D.push(c[S]);return D},map:function(c,y,b){var _,D,S=0,k=[];if(L(c))for(_=c.length;S<_;S++)D=y(c[S],S,b),D!=null&&k.push(D);else for(S in c)D=y(c[S],S,b),D!=null&&k.push(D);return s(k)},guid:1,support:v}),typeof Symbol=="function"&&(g.fn[Symbol.iterator]=t[Symbol.iterator]),g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(c,y){u["[object "+y+"]"]=y.toLowerCase()});function L(c){var y=!!c&&"length"in c&&c.length,b=j(c);return m(c)||x(c)?!1:b==="array"||y===0||typeof y=="number"&&y>0&&y-1 in c}function N(c,y){return c.nodeName&&c.nodeName.toLowerCase()===y.toLowerCase()}var ye=t.pop,H=t.sort,z=t.splice,Z="[\\x20\\t\\r\\n\\f]",_e=new RegExp("^"+Z+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Z+"+$","g");g.contains=function(c,y){var b=y&&y.parentNode;return c===b||!!(b&&b.nodeType===1&&(c.contains?c.contains(b):c.compareDocumentPosition&&c.compareDocumentPosition(b)&16))};var ve=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function $(c,y){return y?c==="\0"?"�":c.slice(0,-1)+"\\"+c.charCodeAt(c.length-1).toString(16)+" ":"\\"+c}g.escapeSelector=function(c){return(c+"").replace(ve,$)};var I=w,te=o;(function(){var c,y,b,_,D,S=te,k,B,Y,G,se,fe=g.expando,ee=0,Se=0,gt=nl(),Wt=nl(),St=nl(),ur=nl(),Ji=function(R,U){return R===U&&(D=!0),0},wn="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Pn="(?:\\\\[\\da-fA-F]{1,6}"+Z+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",It="\\["+Z+"*("+Pn+")(?:"+Z+"*([*^$|!~]?=)"+Z+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Pn+"))|)"+Z+"*\\]",La=":("+Pn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+It+")*)|.*)\\)|)",Xt=new RegExp(Z+"+","g"),Ei=new RegExp("^"+Z+"*,"+Z+"*"),qs=new RegExp("^"+Z+"*([>+~]|"+Z+")"+Z+"*"),sh=new RegExp(Z+"|>"),Cn=new RegExp(La),Zs=new RegExp("^"+Pn+"$"),Dn={ID:new RegExp("^#("+Pn+")"),CLASS:new RegExp("^\\.("+Pn+")"),TAG:new RegExp("^("+Pn+"|[*])"),ATTR:new RegExp("^"+It),PSEUDO:new RegExp("^"+La),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Z+"*(even|odd|(([+-]|)(\\d*)n|)"+Z+"*(?:([+-]|)"+Z+"*(\\d+)|))"+Z+"*\\)|)","i"),bool:new RegExp("^(?:"+wn+")$","i"),needsContext:new RegExp("^"+Z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Z+"*((?:-\\d)?\\d*)"+Z+"*\\)|)(?=[^-]|$)","i")},da=/^(?:input|select|textarea|button)$/i,ca=/^h\d$/i,Xr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,oh=/[+~]/,zn=new RegExp("\\\\[\\da-fA-F]{1,6}"+Z+"?|\\\\([^\\r\\n\\f])","g"),Un=function(R,U){var J="0x"+R.slice(1)-65536;return U||(J<0?String.fromCharCode(J+65536):String.fromCharCode(J>>10|55296,J&1023|56320))},wm=function(){fa()},Pm=sl(function(R){return R.disabled===!0&&N(R,"fieldset")},{dir:"parentNode",next:"legend"});function Cm(){try{return k.activeElement}catch{}}try{S.apply(t=a.call(I.childNodes),I.childNodes),t[I.childNodes.length].nodeType}catch{S={apply:function(U,J){te.apply(U,a.call(J))}
40,call:function(U){te.apply(U,a.call(arguments,1))}}}function ui(R,U,J,re){var ce,Ae,Fe,Ze,Ie,Vt,pt,_t=U&&U.ownerDocument,Ft=U?U.nodeType:9;if(J=J||[],typeof R!="string"||!R||Ft!==1&&Ft!==9&&Ft!==11)return J;if(!re&&(fa(U),U=U||k,Y)){if(Ft!==11&&(Ie=Xr.exec(R)))if(ce=Ie[1]){if(Ft===9)if(Fe=U.getElementById(ce)){if(Fe.id===ce)return S.call(J,Fe),J}else return J;else if(_t&&(Fe=_t.getElementById(ce))&&ui.contains(U,Fe)&&Fe.id===ce)return S.call(J,Fe),J}else{if(Ie[2])return S.apply(J,U.getElementsByTagName(R)),J;if((ce=Ie[3])&&U.getElementsByClassName)return S.apply(J,U.getElementsByClassName(ce)),J}if(!ur[R+" "]&&(!G||!G.test(R))){if(pt=R,_t=U,Ft===1&&(sh.test(R)||qs.test(R))){for(_t=oh.test(R)&&lh(U.parentNode)||U,(_t!=U||!v.scope)&&((Ze=U.getAttribute("id"))?Ze=g.escapeSelector(Ze):U.setAttribute("id",Ze=fe)),Vt=Qs(R),Ae=Vt.length;Ae--;)Vt[Ae]=(Ze?"#"+Ze:":scope")+" "+al(Vt[Ae]);pt=Vt.join(",")}try{return S.apply(J,_t.querySelectorAll(pt)),J}catch{ur(R,!0)}finally{Ze===fe&&U.removeAttribute("id")}}}return Df(R.replace(_e,"$1"),U,J,re)}function nl(){var R=[];function U(J,re){return R.push(J+" ")>y.cacheLength&&delete U[R.shift()],U[J+" "]=re}return U}function hn(R){return R[fe]=!0,R}function fs(R){var U=k.createElement("fieldset");try{return!!R(U)}catch{return!1}finally{U.parentNode&&U.parentNode.removeChild(U),U=null}}function Dm(R){return function(U){return N(U,"input")&&U.type===R}}function Sm(R){return function(U){return(N(U,"input")||N(U,"button"))&&U.type===R}}function Pf(R){return function(U){return"form"in U?U.parentNode&&U.disabled===!1?"label"in U?"label"in U.parentNode?U.parentNode.disabled===R:U.disabled===R:U.isDisabled===R||U.isDisabled!==!R&&Pm(U)===R:U.disabled===R:"label"in U?U.disabled===R:!1}}function Ra(R){return hn(function(U){return U=+U,hn(function(J,re){for(var ce,Ae=R([],J.length,U),Fe=Ae.length;Fe--;)J[ce=Ae[Fe]]&&(J[ce]=!(re[ce]=J[ce]))})})}function lh(R){return R&&typeof R.getElementsByTagName<"u"&&R}function fa(R){var U,J=R?R.ownerDocument||R:I;return J==k||J.nodeType!==9||!J.documentElement||(k=J,B=k.documentElement,Y=!g.isXMLDoc(k),se=B.matches||B.webkitMatchesSelector||B.msMatchesSelector,B.msMatchesSelector&&I!=k&&(U=k.defaultView)&&U.top!==U&&U.addEventListener("unload",wm),v.getById=fs(function(re){return B.appendChild(re).id=g.expando,!k.getElementsByName||!k.getElementsByName(g.expando).length}),v.disconnectedMatch=fs(function(re){return se.call(re,"*")}),v.scope=fs(function(){return k.querySelectorAll(":scope")}),v.cssHas=fs(function(){try{return k.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),v.getById?(y.filter.ID=function(re){var ce=re.replace(zn,Un);return function(Ae){return Ae.getAttribute("id")===ce}},y.find.ID=function(re,ce){if(typeof ce.getElementById<"u"&&Y){var Ae=ce.getElementById(re);return Ae?[Ae]:[]}}):(y.filter.ID=function(re){var ce=re.replace(zn,Un);return function(Ae){var Fe=typeof Ae.getAttributeNode<"u"&&Ae.getAttributeNode("id");return Fe&&Fe.value===ce}},y.find.ID=function(re,ce){if(typeof ce.getElementById<"u"&&Y){var Ae,Fe,Ze,Ie=ce.getElementById(re);if(Ie){if(Ae=Ie.getAttributeNode("id"),Ae&&Ae.value===re)return[Ie];for(Ze=ce.getElementsByName(re),Fe=0;Ie=Ze[Fe++];)if(Ae=Ie.getAttributeNode("id"),Ae&&Ae.value===re)return[Ie]}return[]}}),y.find.TAG=function(re,ce){return typeof ce.getElementsByTagName<"u"?ce.getElementsByTagName(re):ce.querySelectorAll(re)},y.find.CLASS=function(re,ce){if(typeof ce.getElementsByClassName<"u"&&Y)return ce.getElementsByClassName(re)},G=[],fs(function(re){var ce;B.appendChild(re).innerHTML="<a id='"+fe+"' href='' disabled='disabled'></a><select id='"+fe+"-\r\\' disabled='disabled'><option selected=''></option></select>",re.querySelectorAll("[selected]").length||G.push("\\["+Z+"*(?:value|"+wn+")"),re.querySelectorAll("[id~="+fe+"-]").length||G.push("~="),re.querySelectorAll("a#"+fe+"+*").length||G.push(".#.+[+~]"),re.querySelectorAll(":checked").length||G.push(":checked"),ce=k.createElement("input"),ce.setAttribute("type","hidden"),re.appendChild(ce).setAttribute("name","D"),B.appendChild(re).disabled=!0,re.querySelectorAll(":disabled").length!==2&&G.push(":enabled",":disabled"),ce=k.createElement("input"),ce.setAttribute("name",""),re.appendChild(ce),re.querySelectorAll("[name='']").length||G.push("\\["+Z+"*name"+Z+"*="+Z+`*(?:''|"")`)}),v.cssHas||G.push(":has"),G=G.length&&new RegExp(G.join("|")),Ji=function(re,ce){if(re===ce)return D=!0,0;var Ae=!re.compareDocumentPosition-!ce.compareDocumentPosition;return Ae||(Ae=(re.ownerDocument||re)==(ce.ownerDocument||ce)?re.compareDocumentPosition(ce):1,Ae&1||!v.sortDetached&&ce.compareDocumentPosition(re)===Ae?re===k||re.ownerDocument==I&&ui.contains(I,re)?-1:ce===k||
vendor: 15,022 bytes, line 40
40ce.ownerDocument==I&&ui.contains(I,ce)?1:_?l.call(_,re)-l.call(_,ce):0:Ae&4?-1:1)}),k}ui.matches=function(R,U){return ui(R,null,null,U)},ui.matchesSelector=function(R,U){if(fa(R),Y&&!ur[U+" "]&&(!G||!G.test(U)))try{var J=se.call(R,U);if(J||v.disconnectedMatch||R.document&&R.document.nodeType!==11)return J}catch{ur(U,!0)}return ui(U,k,null,[R]).length>0},ui.contains=function(R,U){return(R.ownerDocument||R)!=k&&fa(R),g.contains(R,U)},ui.attr=function(R,U){(R.ownerDocument||R)!=k&&fa(R);var J=y.attrHandle[U.toLowerCase()],re=J&&d.call(y.attrHandle,U.toLowerCase())?J(R,U,!Y):void 0;return re!==void 0?re:R.getAttribute(U)},ui.error=function(R){throw new Error("Syntax error, unrecognized expression: "+R)},g.uniqueSort=function(R){var U,J=[],re=0,ce=0;if(D=!v.sortStable,_=!v.sortStable&&a.call(R,0),H.call(R,Ji),D){for(;U=R[ce++];)U===R[ce]&&(re=J.push(ce));for(;re--;)z.call(R,J[re],1)}return _=null,R},g.fn.uniqueSort=function(){return this.pushStack(g.uniqueSort(a.apply(this)))},y=g.expr={cacheLength:50,createPseudo:hn,match:Dn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(R){return R[1]=R[1].replace(zn,Un),R[3]=(R[3]||R[4]||R[5]||"").replace(zn,Un),R[2]==="~="&&(R[3]=" "+R[3]+" "),R.slice(0,4)},CHILD:function(R){return R[1]=R[1].toLowerCase(),R[1].slice(0,3)==="nth"?(R[3]||ui.error(R[0]),R[4]=+(R[4]?R[5]+(R[6]||1):2*(R[3]==="even"||R[3]==="odd")),R[5]=+(R[7]+R[8]||R[3]==="odd")):R[3]&&ui.error(R[0]),R},PSEUDO:function(R){var U,J=!R[6]&&R[2];return Dn.CHILD.test(R[0])?null:(R[3]?R[2]=R[4]||R[5]||"":J&&Cn.test(J)&&(U=Qs(J,!0))&&(U=J.indexOf(")",J.length-U)-J.length)&&(R[0]=R[0].slice(0,U),R[2]=J.slice(0,U)),R.slice(0,3))}},filter:{TAG:function(R){var U=R.replace(zn,Un).toLowerCase();return R==="*"?function(){return!0}:function(J){return N(J,U)}},CLASS:function(R){var U=gt[R+" "];return U||(U=new RegExp("(^|"+Z+")"+R+"("+Z+"|$)"))&&gt(R,function(J){return U.test(typeof J.className=="string"&&J.className||typeof J.getAttribute<"u"&&J.getAttribute("class")||"")})},ATTR:function(R,U,J){return function(re){var ce=ui.attr(re,R);return ce==null?U==="!=":U?(ce+="",U==="="?ce===J:U==="!="?ce!==J:U==="^="?J&&ce.indexOf(J)===0:U==="*="?J&&ce.indexOf(J)>-1:U==="$="?J&&ce.slice(-J.length)===J:U==="~="?(" "+ce.replace(Xt," ")+" ").indexOf(J)>-1:U==="|="?ce===J||ce.slice(0,J.length+1)===J+"-":!1):!0}},CHILD:function(R,U,J,re,ce){var Ae=R.slice(0,3)!=="nth",Fe=R.slice(-4)!=="last",Ze=U==="of-type";return re===1&&ce===0?function(Ie){return!!Ie.parentNode}:function(Ie,Vt,pt){var _t,Ft,lt,mi,Vr,fr=Ae!==Fe?"nextSibling":"previousSibling",Gr=Ie.parentNode,Sn=Ze&&Ie.nodeName.toLowerCase(),ps=!pt&&!Ze,Cr=!1;if(Gr){if(Ae){for(;fr;){for(lt=Ie;lt=lt[fr];)if(Ze?N(lt,Sn):lt.nodeType===1)return!1;Vr=fr=R==="only"&&!Vr&&"nextSibling"}return!0}if(Vr=[Fe?Gr.firstChild:Gr.lastChild],Fe&&ps){for(Ft=Gr[fe]||(Gr[fe]={}),_t=Ft[R]||[],mi=_t[0]===ee&&_t[1],Cr=mi&&_t[2],lt=mi&&Gr.childNodes[mi];lt=++mi&&lt&&lt[fr]||(Cr=mi=0)||Vr.pop();)if(lt.nodeType===1&&++Cr&&lt===Ie){Ft[R]=[ee,mi,Cr];break}}else if(ps&&(Ft=Ie[fe]||(Ie[fe]={}),_t=Ft[R]||[],mi=_t[0]===ee&&_t[1],Cr=mi),Cr===!1)for(;(lt=++mi&&lt&&lt[fr]||(Cr=mi=0)||Vr.pop())&&!((Ze?N(lt,Sn):lt.nodeType===1)&&++Cr&&(ps&&(Ft=lt[fe]||(lt[fe]={}),Ft[R]=[ee,Cr]),lt===Ie)););return Cr-=ce,Cr===re||Cr%re===0&&Cr/re>=0}}},PSEUDO:function(R,U){var J,re=y.pseudos[R]||y.setFilters[R.toLowerCase()]||ui.error("unsupported pseudo: "+R);return re[fe]?re(U):re.length>1?(J=[R,R,"",U],y.setFilters.hasOwnProperty(R.toLowerCase())?hn(function(ce,Ae){for(var Fe,Ze=re(ce,U),Ie=Ze.length;Ie--;)Fe=l.call(ce,Ze[Ie]),ce[Fe]=!(Ae[Fe]=Ze[Ie])}):function(ce){return re(ce,0,J)}):re}},pseudos:{not:hn(function(R){var U=[],J=[],re=ch(R.replace(_e,"$1"));return re[fe]?hn(function(ce,Ae,Fe,Ze){for(var Ie,Vt=re(ce,null,Ze,[]),pt=ce.length;pt--;)(Ie=Vt[pt])&&(ce[pt]=!(Ae[pt]=Ie))}):function(ce,Ae,Fe){return U[0]=ce,re(U,null,Fe,J),U[0]=null,!J.pop()}}),has:hn(function(R){return function(U){return ui(R,U).length>0}}),contains:hn(function(R){return R=R.replace(zn,Un),function(U){return(U.textContent||g.text(U)).indexOf(R)>-1}}),lang:hn(function(R){return Zs.test(R||"")||ui.error("unsupported lang: "+R),R=R.replace(zn,Un).toLowerCase(),function(U){var J;do if(J=Y?U.lang:U.getAttribute("xml:lang")||U.getAttribute("lang"))return J=J.toLowerCase(),J===R||J.indexOf(R+"-")===0;while((U=U.parentNode)&&U.nodeType===1);return!1}}),target:function(R){var U=i.location&&i.location.hash;return U&&U.slice(1)===R.id},root:function(R){return R===B},focus:function(R){return R===Cm()&&k.hasFocus()&&!!(R.type||R.href||~R.tabIndex)},enabled:Pf(!1),disabled:Pf(!0),checked:function(R){return N(R,"input")&&!!R.checked||N(R,"option")&&!!R.selected},selected:function(R){return R.parentNode&&R.parentNode.selectedIndex,R.selected===!0},empty:function(R){for(R=R.firstChild;R;R=R.nextSibling)if(R.nodeType<6)return!1;return!0},parent:function(R){return!y.pseudos.empty(R)},header:function(R){return ca.test(R.nodeName)},input:function(R){return da.test(R.nodeName)},button:function(R){return N(R,"input")&&R.type==="button"||N(R,"button")},text:function(R){var U;return N(R,"input")&&R.type==="text"&&((U=R.getAttribute("type"))==null||U.toLowerCase()==="text")},first:Ra(function(){return[0]}),last:Ra(function(R,U){return[U-1]}),eq:Ra(function(R,U,J){return[J<0?J+U:J]}),even:Ra(function(R,U){for(var J=0;J<U;J+=2)R.push(J);return R}),odd:Ra(function(R,U){for(var J=1;J<U;J+=2)R.push(J);return R}),lt:Ra(function(R,U,J){var re;for(J<0?re=J+U:J>U?re=U:re=J;--re>=0;)R.push(re);return R}),gt:Ra(function(R,U,J){for(var re=J<0?J+U:J;++re<U;)R.push(re);return R})}},y.pseudos.nth=y.pseudos.eq;for(c in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})y.pseudos[c]=Dm(c);for(c in{submit:!0,reset:!0})y.pseudos[c]=Sm(c);function Cf(){}Cf.prototype=y.filters=y.pseudos,y.setFilters=new Cf;function Qs(R,U){var J,re,ce,Ae,Fe,Ze,Ie,Vt=Wt[R+" "];if(Vt)return U?0:Vt.slice(0);for(Fe=R,Ze=[],Ie=y.preFilter;Fe;){(!J||(re=Ei.exec(Fe)))&&(re&&(Fe=Fe.slice(re[0].length)||Fe),Ze.push(ce=[])),J=!1,(re=qs.exec(Fe))&&(J=re.shift(),ce.push({value:J,type:re[0].replace(_e," ")}),Fe=Fe.slice(J.length));for(Ae in y.filter)(re=Dn[Ae].exec(Fe))&&(!Ie[Ae]||(re=Ie[Ae](re)))&&(J=re.shift(),ce.push({value:J,type:Ae,matches:re}),Fe=Fe.slice(J.length));if(!J)break}return U?Fe.length:Fe?ui.error(R):Wt(R,Ze).slice(0)}function al(R){for(var U=0,J=R.length,re="";U<J;U++)re+=R[U].value;return re}function sl(R,U,J){var re=U.dir,ce=U.next,Ae=ce||re,Fe=J&&Ae==="parentNode",Ze=Se++;return U.first?function(Ie,Vt,pt){for(;Ie=Ie[re];)if(Ie.nodeType===1||Fe)return R(Ie,Vt,pt);return!1}:function(Ie,Vt,pt){var _t,Ft,lt=[ee,Ze];if(pt){for(;Ie=Ie[re];)if((Ie.nodeType===1||Fe)&&R(Ie,Vt,pt))return!0}else for(;Ie=Ie[re];)if(Ie.nodeType===1||Fe)if(Ft=Ie[fe]||(Ie[fe]={}),ce&&N(Ie,ce))Ie=Ie[re]||Ie;else{if((_t=Ft[Ae])&&_t[0]===ee&&_t[1]===Ze)return lt[2]=_t[2];if(Ft[Ae]=lt,lt[2]=R(Ie,Vt,pt))return!0}return!1}}function uh(R){return R.length>1?function(U,J,re){for(var ce=R.length;ce--;)if(!R[ce](U,J,re))return!1;return!0}:R[0]}function Om(R,U,J){for(var re=0,ce=U.length;re<ce;re++)ui(R,U[re],J);return J}function ol(R,U,J,re,ce){for(var Ae,Fe=[],Ze=0,Ie=R.length,Vt=U!=null;Ze<Ie;Ze++)(Ae=R[Ze])&&(!J||J(Ae,re,ce))&&(Fe.push(Ae),Vt&&U.push(Ze));return Fe}function hh(R,U,J,re,ce,Ae){return re&&!re[fe]&&(re=hh(re)),ce&&!ce[fe]&&(ce=hh(ce,Ae)),hn(function(Fe,Ze,Ie,Vt){var pt,_t,Ft,lt,mi=[],Vr=[],fr=Ze.length,Gr=Fe||Om(U||"*",Ie.nodeType?[Ie]:Ie,[]),Sn=R&&(Fe||!U)?ol(Gr,mi,R,Ie,Vt):Gr;if(J?(lt=ce||(Fe?R:fr||re)?[]:Ze,J(Sn,lt,Ie,Vt)):lt=Sn,re)for(pt=ol(lt,Vr),re(pt,[],Ie,Vt),_t=pt.length;_t--;)(Ft=pt[_t])&&(lt[Vr[_t]]=!(Sn[Vr[_t]]=Ft));if(Fe){if(ce||R){if(ce){for(pt=[],_t=lt.length;_t--;)(Ft=lt[_t])&&pt.push(Sn[_t]=Ft);ce(null,lt=[],pt,Vt)}for(_t=lt.length;_t--;)(Ft=lt[_t])&&(pt=ce?l.call(Fe,Ft):mi[_t])>-1&&(Fe[pt]=!(Ze[pt]=Ft))}}else lt=ol(lt===Ze?lt.splice(fr,lt.length):lt),ce?ce(null,Ze,lt,Vt):S.apply(Ze,lt)})}function dh(R){for(var U,J,re,ce=R.length,Ae=y.relative[R[0].type],Fe=Ae||y.relative[" "],Ze=Ae?1:0,Ie=sl(function(_t){return _t===U},Fe,!0),Vt=sl(function(_t){return l.call(U,_t)>-1},Fe,!0),pt=[function(_t,Ft,lt){var mi=!Ae&&(lt||Ft!=b)||((U=Ft).nodeType?Ie(_t,Ft,lt):Vt(_t,Ft,lt));return U=null,mi}];Ze<ce;Ze++)if(J=y.relative[R[Ze].type])pt=[sl(uh(pt),J)];else{if(J=y.filter[R[Ze].type].apply(null,R[Ze].matches),J[fe]){for(re=++Ze;re<ce&&!y.relative[R[re].type];re++);return hh(Ze>1&&uh(pt),Ze>1&&al(R.slice(0,Ze-1).concat({value:R[Ze-2].type===" "?"*":""})).replace(_e,"$1"),J,Ze<re&&dh(R.slice(Ze,re)),re<ce&&dh(R=R.slice(re)),re<ce&&al(R))}pt.push(J)}return uh(pt)}function Tm(R,U){var J=U.length>0,re=R.length>0,ce=function(Ae,Fe,Ze,Ie,Vt){var pt,_t,Ft,lt=0,mi="0",Vr=Ae&&[],fr=[],Gr=b,Sn=Ae||re&&y.find.TAG("*",Vt),ps=ee+=Gr==null?1:Math.random()||.1,Cr=Sn.length;for(Vt&&(b=Fe==k||Fe||Vt);mi!==Cr&&(pt=Sn[mi])!=null;mi++){if(re&&pt){for(_t=0,!Fe&&pt.ownerDocument!=k&&(fa(pt),Ze=!Y);Ft=R[_t++];)if(Ft(pt,Fe||k,Ze)){S.call(Ie,pt);break}Vt&&(ee=ps)}J&&((pt=!Ft&&pt)&&lt--,Ae&&Vr.push(pt))}if(lt+=mi,J&&mi!==lt){for(_t=0;Ft=U[_t++];)Ft(Vr,fr,Fe,Ze);if(Ae){if(lt>0)for(;mi--;)Vr[mi]||fr[mi]||(fr[mi]=ye.call(Ie));fr=ol(fr)}S.apply(Ie,fr),Vt&&!Ae&&fr.length>0&&lt+U.length>1&&g.uniqueSort(Ie)}return Vt&&(ee=ps,b=Gr),Vr};return J?hn(ce):ce}function ch(R,U){var J,re=[],ce=[],Ae=St[R+" "];if(!Ae){for(U||(U=Qs(R)),J=U.length;J--;)Ae=dh(U[J]),Ae[fe]?re.push(Ae):ce.push(Ae);Ae=St(R,Tm(ce,re)),Ae.selector=R}return Ae}function Df(R,U,J,re){var ce,Ae,Fe,Ze,Ie,Vt=typeof R=="function"&&R,pt=!re&&Qs(R=Vt.selector||R);if(J=J||[],pt.length===1){if(Ae=pt[0]=pt[0].slice(0),Ae.length>2&&(Fe=Ae[0]).type==="ID"&&U.nodeType===9&&Y&&y.relative[Ae[1].type]){if(U=(y.find.ID(Fe.matches[0].replace(zn,Un),U)||[])[0],U)Vt&&(U=U.parentNode);else return J;R=R.slice(Ae.shift().value.length)}for(ce=Dn.needsContext.test(R)?0:Ae.length;ce--&&(Fe=Ae[ce],!y.relative[Ze=Fe.type]);)if((Ie=y.find[Ze])&&(re=Ie(Fe.matches[0].replace(zn,Un),oh.test(Ae[0].type)&&lh(U.parentNode)||U))){if(Ae.splice(ce,1),R=re.length&&al(Ae),!R)return S.apply(J,re),J;break}}return(Vt||ch(R,pt))(re,U,!Y,J,!U||oh.test(R)&&lh(U.parentNode)||U),J}v.sortStable=fe.split("").sort(Ji).join("")===fe,fa(),v.sortDetached=fs(function(R){return R.compareDocumentPosition(k.createElement("fieldset"))&1}),g.find=ui,g.expr[":"]=g.expr.pseudos,g.unique=g.uniqueSort,ui.compile=ch,ui.select=Df,ui.setDocument=fa,ui.tokenize=Qs,ui.escape=g.escapeSelector,ui.getText=g.text,ui.isXML=g.isXMLDoc,ui.selectors=g.expr,ui.support=g.support,ui.uniqueSort=g.uniqueSort})();var A=function(c,y,b){for(var _=[],D=b!==void 0;(c=c[y])&&c.nodeType!==9;)if(c.nodeType===1){if(D&&g(c).is(b))break;_.push(c)}return _},Q=function(c,y){for(var b=[];c;c=c.nextSibling)c.nodeType===1&&c!==y&&b.push(c);return b},he=g.expr.match.needsContext,K=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function le(c,y,b){return m(y)?g.grep(c,function(_,D){return!!y.call(_,D,_)!==b}):y.nodeType?g.grep(c,function(_){return _===y!==b}):typeof y!="string"?g.grep(c,function(_){return l.call(y,_)>-1!==b}):g.filter(y,c,b)}g.filter=function(c,y,b){var _=y[0];return b&&(c=":not("+c+")"),y.length===1&&_.nodeType===1?g.find.matchesSelector(_,c)?[_]:[]:g.find.matches(c,g.grep(y,function(D){return D.nodeType===1}))},g.fn.extend({find:function(c){var y,b,_=this.length,D=this;if(typeof c!="string")return this.pushStack(g(c).filter(function(){for(y=0;y<_;y++)if(g.contains(D[y],this))return!0}));for(b=this.pushStack([]),y=0;y<_;y++)g.find(c,D[y],b);return _>1?g.uniqueSort(b):b},filter:function(c){return this.pushStack(le(this,c||[],!1))},not:function(c){return this.pushStack(le(this,c||[],!0))},is:function(c){return!!le(this,typeof c=="string"&&he.test(c)?g(c):c||[],!1).length}});var E,ne=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ue=g.fn.init=function(c,y,b){var _,D;if(!c)return this;if(b=b||E,typeof c=="string")if(c[0]==="<"&&c[c.length-1]===">"&&c.length>=3?_=[null,c,null]:_=ne.exec(c),_&&(_[1]||!y))if(_[1]){if(y=y instanceof g?y[0]:y,g.merge(this,g.parseHTML(_[1],y&&y.nodeType?y.ownerDocument||y:w,!0)),K.test(_[1])&&g.isPlainObject(y))for(_ in y)m(this[_])?this[_](y[_]):this.attr(_,y[_]);return this}else return D=w.getElementById(_[2]),D&&(this[0]=D,this.length=1),this;else return!y||y.jquery?(y||b).find(c):this.constructor(y).find(c);else{if(c.nodeType)return this[0]=c,this.length=1,this;if(m(c))return b.ready!==void 0?b.ready(c):c(g)}return g.makeArray(c,this)};Ue.prototype=g.fn,E=g(w);var Ve=/^(?:parents|prev(?:Until|All))/,Ye={children:!0,contents:!0,next:!0,prev:!0};g.fn.extend({has:function(c){var y=g(c,this),b=y.length;return this.filter(function(){for(var _=0;_<b;_++)if(g.contains(this,y[_]))return!0})},closest:function(c,y){var b,_=0,D=this.length,S=[],k=typeof c!="string"&&g(c);if(!he.test(c)){for(;_<D;_++)for(b=this[_];b&&b!==y;b=b.parentNode)if(b.nodeType<11&&(k?k.index(b)>-1:b.nodeType===1&&g.find.matchesSelector(b,c))){S.push(b);break}}return this.pushStack(S.length>1?g.uniqueSort(S):S)},index:function(c){return c?typeof c=="string"?l.call(g(c),this[0]):l.call(this,c.jquery?c[0]:c):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(c,y){return this.pushStack(g.uniqueSort(g.merge(this.get(),g(c,y))))},addBack:function(c){return this.add(c==null?this.prevObject:this.prevObject.filter(c))}});function Xe(c,y){for(;(c=c[y])&&c.nodeType!==1;);return c}g.each({parent:function(c){var y=c.parentNode;return y&&y.nodeType!==11?y:null},parents:function(c){return A(c,"parentNode")},parentsUntil:function(c,y,b){return A(c,"parentNode",b)},next:function(c){return Xe(c,"nextSibling")},prev:function(c){return Xe(c,"previousSibling")},nextAll:function(c){return A(c,"nextSibling")},prevAll:function(c){return A(c,"previousSibling")},nextUntil:function(c,y,b){return A(c,"nextSibling",b)},prevUntil:function(c,y,b){return A(c,"previousSibling",b)},siblings:function(c){return Q((c.parentNode||{}).firstChild,c)},children:function(c){return Q(c.firstChild)},contents:function(c){return c.contentDocument!=null&&r(c.contentDocument)?c.contentDocument:(N(c,"template")&&(c=c.content||c),g.merge([],c.childNodes))}},function(c,y){g.fn[c]=function(b,_){var D=g.map(this,y,b);return c.slice(-5)!=="Until"&&(_=b),_&&typeof _=="string"&&(D=g.filter(_,D)),this.length>1&&(Ye[c]||g.uniqueSort(D),Ve.test(c)&&D.reverse()),this.pushStack(D)}});var ft=/[^\x20\t\r\n\f]+/g;function Ke(c){var y={};return g.each(c.match(ft)||[],function(b,_){y[_]=!0}),y}g.Callbacks=function(c){c=typeof c=="string"?Ke(c):g.extend({},c);var y,b,_,D,S=[],k=[],B=-1,Y=function(){for(D=D||c.once,_=y=!0;k.length;B=-1)for(b=k.shift();++B<S.length;)S[B].apply(b[0],b[1])===!1&&c.stopOnFalse&&(B=S.length,b=!1);c.memory||(b=!1),y=!1,D&&(b?S=[]:S="")},G={add:function(){return S&&(b&&!y&&(B=S.length-1,k.push(b)),function se(fe){g.each(fe,function(ee,Se){m(Se)?(!c.unique||!G.has(Se))&&S.push(Se):Se&&Se.length&&j(Se)!=="str
40ing"&&se(Se)})}(arguments),b&&!y&&Y()),this},remove:function(){return g.each(arguments,function(se,fe){for(var ee;(ee=g.inArray(fe,S,ee))>-1;)S.splice(ee,1),ee<=B&&B--}),this},has:function(se){return se?g.inArray(se,S)>-1:S.length>0},empty:function(){return S&&(S=[]),this},disable:function(){return D=k=[],S=b="",this},disabled:function(){return!S},lock:function(){return D=k=[],!b&&!y&&(S=b=""),this},locked:function(){return!!D},fireWith:function(se,fe){return D||(fe=fe||[],fe=[se,fe.slice?fe.slice():fe],k.push(fe),y||Y()),this},fire:function(){return G.fireWith(this,arguments),this},fired:function(){return!!_}};return G};function oi(c){return c}function Oi(c){throw c}function gi(c,y,b,_){var D;try{c&&m(D=c.promise)?D.call(c).done(y).fail(b):c&&m(D=c.then)?D.call(c,y,b):y.apply(void 0,[c].slice(_))}catch(S){b.apply(void 0,[S])}}g.extend({Deferred:function(c){var y=[["notify","progress",g.Callbacks("memory"),g.Callbacks("memory"),2],["resolve","done",g.Callbacks("once memory"),g.Callbacks("once memory"),0,"resolved"],["reject","fail",g.Callbacks("once memory"),g.Callbacks("once memory"),1,"rejected"]],b="pending",_={state:function(){return b},always:function(){return D.done(arguments).fail(arguments),this},catch:function(S){return _.then(null,S)},pipe:function(){var S=arguments;return g.Deferred(function(k){g.each(y,function(B,Y){var G=m(S[Y[4]])&&S[Y[4]];D[Y[1]](function(){var se=G&&G.apply(this,arguments);se&&m(se.promise)?se.promise().progress(k.notify).done(k.resolve).fail(k.reject):k[Y[0]+"With"](this,G?[se]:arguments)})}),S=null}).promise()},then:function(S,k,B){var Y=0;function G(se,fe,ee,Se){return function(){var gt=this,Wt=arguments,St=function(){var Ji,wn;if(!(se<Y)){if(Ji=ee.apply(gt,Wt),Ji===fe.promise())throw new TypeError("Thenable self-resolution");wn=Ji&&(typeof Ji=="object"||typeof Ji=="function")&&Ji.then,m(wn)?Se?wn.call(Ji,G(Y,fe,oi,Se),G(Y,fe,Oi,Se)):(Y++,wn.call(Ji,G(Y,fe,oi,Se),G(Y,fe,Oi,Se),G(Y,fe,oi,fe.notifyWith))):(ee!==oi&&(gt=void 0,Wt=[Ji]),(Se||fe.resolveWith)(gt,Wt))}},ur=Se?St:function(){try{St()}catch(Ji){g.Deferred.exceptionHook&&g.Deferred.exceptionHook(Ji,ur.error),se+1>=Y&&(ee!==Oi&&(gt=void 0,Wt=[Ji]),fe.rejectWith(gt,Wt))}};se?ur():(g.Deferred.getErrorHook?ur.error=g.Deferred.getErrorHook():g.Deferred.getStackHook&&(ur.error=g.Deferred.getStackHook()),i.setTimeout(ur))}}return g.Deferred(function(se){y[0][3].add(G(0,se,m(B)?B:oi,se.notifyWith)),y[1][3].add(G(0,se,m(S)?S:oi)),y[2][3].add(G(0,se,m(k)?k:Oi))}).promise()},promise:function(S){return S!=null?g.extend(S,_):_}},D={};return g.each(y,function(S,k){var B=k[2],Y=k[5];_[k[1]]=B.add,Y&&B.add(function(){b=Y},y[3-S][2].disable,y[3-S][3].disable,y[0][2].lock,y[0][3].lock),B.add(k[3].fire),D[k[0]]=function(){return D[k[0]+"With"](this===D?void 0:this,arguments),this},D[k[0]+"With"]=B.fireWith}),_.promise(D),c&&c.call(D,D),D},when:function(c){var y=arguments.length,b=y,_=Array(b),D=a.call(arguments),S=g.Deferred(),k=function(B){return function(Y){_[B]=this,D[B]=arguments.length>1?a.call(arguments):Y,--y||S.resolveWith(_,D)}};if(y<=1&&(gi(c,S.done(k(b)).resolve,S.reject,!y),S.state()==="pending"||m(D[b]&&D[b].then)))return S.then();for(;b--;)gi(D[b],k(b),S.reject);return S.promise()}});var Zi=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;g.Deferred.exceptionHook=function(c,y){i.console&&i.console.warn&&c&&Zi.test(c.name)&&i.console.warn("jQuery.Deferred exception: "+c.message,c.stack,y)},g.readyException=function(c){i.setTimeout(function(){throw c})};var Mr=g.Deferred();g.fn.ready=function(c){return Mr.then(c).catch(function(y){g.readyException(y)}),this},g.extend({isReady:!1,readyWait:1,ready:function(c){(c===!0?--g.readyWait:g.isReady)||(g.isReady=!0,!(c!==!0&&--g.readyWait>0)&&Mr.resolveWith(w,[g]))}}),g.ready.then=Mr.then;function wr(){w.removeEventListener("DOMContentLoaded",wr),i.removeEventListener("load",wr),g.ready()}w.readyState==="complete"||w.readyState!=="loading"&&!w.documentElement.doScroll?i.setTimeout(g.ready):(w.addEventListener("DOMContentLoaded",wr),i.addEventListener("load",wr));var We=function(c,y,b,_,D,S,k){var B=0,Y=c.length,G=b==null;if(j(b)==="object"){D=!0;
vendor: 4,677 bytes, line 40
40for(B in b)We(c,y,B,b[B],!0,S,k)}else if(_!==void 0&&(D=!0,m(_)||(k=!0),G&&(k?(y.call(c,_),y=null):(G=y,y=function(se,fe,ee){return G.call(g(se),ee)})),y))for(;B<Y;B++)y(c[B],b,k?_:_.call(c[B],B,y(c[B],b)));return D?c:G?y.call(c):Y?y(c[0],b):S},Ct=/^-ms-/,vt=/-([a-z])/g;function Ar(c,y){return y.toUpperCase()}function Vi(c){return c.replace(Ct,"ms-").replace(vt,Ar)}var on=function(c){return c.nodeType===1||c.nodeType===9||!+c.nodeType};function ln(){this.expando=g.expando+ln.uid++}ln.uid=1,ln.prototype={cache:function(c){var y=c[this.expando];return y||(y={},on(c)&&(c.nodeType?c[this.expando]=y:Object.defineProperty(c,this.expando,{value:y,configurable:!0}))),y},set:function(c,y,b){var _,D=this.cache(c);if(typeof y=="string")D[Vi(y)]=b;else for(_ in y)D[Vi(_)]=y[_];return D},get:function(c,y){return y===void 0?this.cache(c):c[this.expando]&&c[this.expando][Vi(y)]},access:function(c,y,b){return y===void 0||y&&typeof y=="string"&&b===void 0?this.get(c,y):(this.set(c,y,b),b!==void 0?b:y)},remove:function(c,y){var b,_=c[this.expando];if(_!==void 0){if(y!==void 0)for(Array.isArray(y)?y=y.map(Vi):(y=Vi(y),y=y in _?[y]:y.match(ft)||[]),b=y.length;b--;)delete _[y[b]];(y===void 0||g.isEmptyObject(_))&&(c.nodeType?c[this.expando]=void 0:delete c[this.expando])}},hasData:function(c){var y=c[this.expando];return y!==void 0&&!g.isEmptyObject(y)}};var Be=new ln,Fi=new ln,ha=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,li=/[A-Z]/g;function zr(c){return c==="true"?!0:c==="false"?!1:c==="null"?null:c===+c+""?+c:ha.test(c)?JSON.parse(c):c}function Ii(c,y,b){var _;if(b===void 0&&c.nodeType===1)if(_="data-"+y.replace(li,"-$&").toLowerCase(),b=c.getAttribute(_),typeof b=="string"){try{b=zr(b)}catch{}Fi.set(c,y,b)}else b=void 0;return b}g.extend({hasData:function(c){return Fi.hasData(c)||Be.hasData(c)},data:function(c,y,b){return Fi.access(c,y,b)},removeData:function(c,y){Fi.remove(c,y)},_data:function(c,y,b){return Be.access(c,y,b)},_removeData:function(c,y){Be.remove(c,y)}}),g.fn.extend({data:function(c,y){var b,_,D,S=this[0],k=S&&S.attributes;if(c===void 0){if(this.length&&(D=Fi.get(S),S.nodeType===1&&!Be.get(S,"hasDataAttrs"))){for(b=k.length;b--;)k[b]&&(_=k[b].name,_.indexOf("data-")===0&&(_=Vi(_.slice(5)),Ii(S,_,D[_])));Be.set(S,"hasDataAttrs",!0)}return D}return typeof c=="object"?this.each(function(){Fi.set(this,c)}):We(this,function(B){var Y;if(S&&B===void 0)return Y=Fi.get(S,c),Y!==void 0||(Y=Ii(S,c),Y!==void 0)?Y:void 0;this.each(function(){Fi.set(this,c,B)})},null,y,arguments.length>1,null,!0)},removeData:function(c){return this.each(function(){Fi.remove(this,c)})}}),g.extend({queue:function(c,y,b){var _;if(c)return y=(y||"fx")+"queue",_=Be.get(c,y),b&&(!_||Array.isArray(b)?_=Be.access(c,y,g.makeArray(b)):_.push(b)),_||[]},dequeue:function(c,y){y=y||"fx";var b=g.queue(c,y),_=b.length,D=b.shift(),S=g._queueHooks(c,y),k=function(){g.dequeue(c,y)};D==="inprogress"&&(D=b.shift(),_--),D&&(y==="fx"&&b.unshift("inprogress"),delete S.stop,D.call(c,k,S)),!_&&S&&S.empty.fire()},_queueHooks:function(c,y){var b=y+"queueHooks";return Be.get(c,b)||Be.access(c,b,{empty:g.Callbacks("once memory").add(function(){Be.remove(c,[y+"queue",b])})})}}),g.fn.extend({queue:function(c,y){var b=2;return typeof c!="string"&&(y=c,c="fx",b--),arguments.length<b?g.queue(this[0],c):y===void 0?this:this.each(function(){var _=g.queue(this,c,y);g._queueHooks(this,c),c==="fx"&&_[0]!=="inprogress"&&g.dequeue(this,c)})},dequeue:function(c){return this.each(function(){g.dequeue(this,c)})},clearQueue:function(c){return this.queue(c||"fx",[])},promise:function(c,y){var b,_=1,D=g.Deferred(),S=this,k=this.length,B=function(){--_||D.resolveWith(S,[S])};for(typeof c!="string"&&(y=c,c=void 0),c=c||"fx";k--;)b=Be.get(S[k],c+"queueHooks"),b&&b.empty&&(_++,b.empty.add(B));return B(),D.promise(y)}});var X=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ge=new RegExp("^(?:([+-])=|)("+X+")([a-z%]*)$","i"),ze=["Top","Right","Bottom","Left"],rt=w.documentElement,qt=function(c){return g.contains(c.ownerDocument,c)},Ur={composed:!0};rt.getRootNode&&(qt=function(c){return g.contains(c.ownerDocument,c)||c.getRootNode(Ur)===c.ownerDocument});var Pr=function(c,y){return c=y||c,c.style.display==="none"||c.style.display===""&&qt(c)&&g.css(c,"display")==="none"};function Va(c,y,b,_){var D,S,k=20,B=_?function(){return _.cur()}:function(){return g.css(c,y,"")},Y=B(),G=b&&b[3]||(g.cssNumber[y]?"":"px"),se=c.nodeType&&(g.cssNumber[y]||G!=="px"&&+Y)&&ge.exec(g.css(c,y));if(se&&se[3]!==G){for(Y=Y/2,G=G||se[3],se=+Y||1;k--;)g.style(c,y,se+G),(1-S)*(1-(S=B()/Y||.5))<=0&&(k=0),se=se/S;se=se*2,g.style(c,y,se+G),b=b||[]}return b&&(se=+se||+Y||0,D=b[1]?se+(b[1]+1)*b[2]:+b[2],_&&(_.unit=G,_.
vendor: 4,616 bytes, line 40
40start=se,_.end=D)),D}var me={};function et(c){var y,b=c.ownerDocument,_=c.nodeName,D=me[_];return D||(y=b.body.appendChild(b.createElement(_)),D=g.css(y,"display"),y.parentNode.removeChild(y),D==="none"&&(D="block"),me[_]=D,D)}function Ti(c,y){for(var b,_,D=[],S=0,k=c.length;S<k;S++)_=c[S],_.style&&(b=_.style.display,y?(b==="none"&&(D[S]=Be.get(_,"display")||null,D[S]||(_.style.display="")),_.style.display===""&&Pr(_)&&(D[S]=et(_))):b!=="none"&&(D[S]="none",Be.set(_,"display",b)));for(S=0;S<k;S++)D[S]!=null&&(c[S].style.display=D[S]);return c}g.fn.extend({show:function(){return Ti(this,!0)},hide:function(){return Ti(this)},toggle:function(c){return typeof c=="boolean"?c?this.show():this.hide():this.each(function(){Pr(this)?g(this).show():g(this).hide()})}});var $i=/^(?:checkbox|radio)$/i,Fa=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,at=/^$|^module$|\/(?:java|ecma)script/i;(function(){var c=w.createDocumentFragment(),y=c.appendChild(w.createElement("div")),b=w.createElement("input");b.setAttribute("type","radio"),b.setAttribute("checked","checked"),b.setAttribute("name","t"),y.appendChild(b),v.checkClone=y.cloneNode(!0).cloneNode(!0).lastChild.checked,y.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!y.cloneNode(!0).lastChild.defaultValue,y.innerHTML="<option></option>",v.option=!!y.lastChild})();var Qi={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Qi.tbody=Qi.tfoot=Qi.colgroup=Qi.caption=Qi.thead,Qi.th=Qi.td,v.option||(Qi.optgroup=Qi.option=[1,"<select multiple='multiple'>","</select>"]);function ht(c,y){var b;return typeof c.getElementsByTagName<"u"?b=c.getElementsByTagName(y||"*"):typeof c.querySelectorAll<"u"?b=c.querySelectorAll(y||"*"):b=[],y===void 0||y&&N(c,y)?g.merge([c],b):b}function zs(c,y){for(var b=0,_=c.length;b<_;b++)Be.set(c[b],"globalEval",!y||Be.get(y[b],"globalEval"))}var Us=/<|&#?\w+;/;function Zc(c,y,b,_,D){for(var S,k,B,Y,G,se,fe=y.createDocumentFragment(),ee=[],Se=0,gt=c.length;Se<gt;Se++)if(S=c[Se],S||S===0)if(j(S)==="object")g.merge(ee,S.nodeType?[S]:S);else if(!Us.test(S))ee.push(y.createTextNode(S));else{for(k=k||fe.appendChild(y.createElement("div")),B=(Fa.exec(S)||["",""])[1].toLowerCase(),Y=Qi[B]||Qi._default,k.innerHTML=Y[1]+g.htmlPrefilter(S)+Y[2],se=Y[0];se--;)k=k.lastChild;g.merge(ee,k.childNodes),k=fe.firstChild,k.textContent=""}for(fe.textContent="",Se=0;S=ee[Se++];){if(_&&g.inArray(S,_)>-1){D&&D.push(S);continue}if(G=qt(S),k=ht(fe.appendChild(S),"script"),G&&zs(k),b)for(se=0;S=k[se++];)at.test(S.type||"")&&b.push(S)}return fe}var Qc=/^([^.]*)(?:\.(.+)|)/;function us(){return!0}function hs(){return!1}function Gu(c,y,b,_,D,S){var k,B;if(typeof y=="object"){typeof b!="string"&&(_=_||b,b=void 0);for(B in y)Gu(c,B,b,_,y[B],S);return c}if(_==null&&D==null?(D=b,_=b=void 0):D==null&&(typeof b=="string"?(D=_,_=void 0):(D=_,_=b,b=void 0)),D===!1)D=hs;else if(!D)return c;return S===1&&(k=D,D=function(Y){return g().off(Y),k.apply(this,arguments)},D.guid=k.guid||(k.guid=g.guid++)),c.each(function(){g.event.add(this,y,D,_,b)})}g.event={global:{},add:function(c,y,b,_,D){var S,k,B,Y,G,se,fe,ee,Se,gt,Wt,St=Be.get(c);if(on(c))for(b.handler&&(S=b,b=S.handler,D=S.selector),D&&g.find.matchesSelector(rt,D),b.guid||(b.guid=g.guid++),(Y=St.events)||(Y=St.events=Object.create(null)),(k=St.handle)||(k=St.handle=function(ur){return typeof g<"u"&&g.event.triggered!==ur.type?g.event.dispatch.apply(c,arguments):void 0}),y=(y||"").match(ft)||[""],G=y.length;G--;)B=Qc.exec(y[G])||[],Se=Wt=B[1],gt=(B[2]||"").split(".").sort(),Se&&(fe=g.event.special[Se]||{},Se=(D?fe.delegateType:fe.bindType)||Se,fe=g.event.special[Se]||{},se=g.extend({type:Se,origType:Wt,data:_,handler:b,guid:b.guid,selector:D,needsContext:D&&g.expr.match.needsContext.test(D),namespace:gt.join(".")},S),(ee=Y[Se])||(ee=Y[Se]=[],ee.delegateCount=0,(!fe.setup||fe.setup.call(c,_,gt,k)===!1)&&c.addEventListener&&c.addEventListener(Se,k)),fe.add&&(fe.add.call(c,se),se.handler.guid||(se.handler.guid=b.guid)),D?ee.splice(ee.delegateCount++,0,se):ee.push(se),g.event.global[Se]=!0)},remove:function(c,y,b,_,D){var S,k,B,Y,G,se,fe,ee,Se,gt,Wt,St=Be.hasData(c)&&Be.get(c);if(!(!St||!(Y=St.events))){for(y=(y||"").match(ft)||[""],G=y.length;G--;){if(B=Qc.exec(y[G])||[],Se=Wt=B[1],gt=(B[2]||"").split(".").sort(),!Se){for(Se in Y)g.event.remove(c,Se+y[G],b,_,!0);continue}for(fe=g.event.special[Se]||{},Se=(_?fe.delegateType:fe.bindType)||Se,ee=Y[Se]||[],B=B[2]&&new RegExp("(^|\\.)"+gt.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=S=ee.length;S--;
40)se=ee[S],(D||Wt===se.origType)&&(!b||b.guid===se.guid)&&(!B||B.test(se.namespace))&&(!_||_===se.selector||_==="**"&&se.selector)&&(ee.splice(S,1),se.selector&&ee.delegateCount--,fe.remove&&fe.remove.call(c,se));k&&!ee.length&&((!fe.teardown||fe.teardown.call(c,gt,St.handle)===!1)&&g.removeEvent(c,Se,St.handle),delete Y[Se])}g.isEmptyObject(Y)&&Be.remove(c,"handle events")}},dispatch:function(c){var y,b,_,D,S,k,B=new Array(arguments.length),Y=g.event.fix(c),G=(Be.get(this,"events")||Object.create(null))[Y.type]||[],se=g.event.special[Y.type]||{};for(B[0]=Y,y=1;y<arguments.length;y++)B[y]=arguments[y];if(Y.delegateTarget=this,!(se.preDispatch&&se.preDispatch.call(this,Y)===!1)){for(k=g.event.handlers.call(this,Y,G),y=0;(D=k[y++])&&!Y.isPropagationStopped();)for(Y.currentTarget=D.elem,b=0;(S=D.handlers[b++])&&!Y.isImmediatePropagationStopped();)(!Y.rnamespace||S.namespace===!1||Y.rnamespace.test(S.namespace))&&(Y.handleObj=S,Y.data=S.data,_=((g.event.special[S.origType]||{}).handle||S.handler).apply(D.elem,B),_!==void 0&&(Y.result=_)===!1&&(Y.preventDefault(),Y.stopPropagation()));return se.postDispatch&&se.postDispatch.call(this,Y),Y.result}},handlers:function(c,y){var b,_,D,S,k,B=[],Y=y.delegateCount,G=c.target;if(Y&&G.nodeType&&!(c.type==="click"&&c.button>=1)){for(;G!==this;G=G.parentNode||this)if(G.nodeType===1&&!(c.type==="click"&&G.disabled===!0)){for(S=[],k={},b=0;b<Y;b++)_=y[b],D=_.selector+" ",k[D]===void 0&&(k[D]=_.needsContext?g(D,this).index(G)>-1:g.find(D,this,null,[G]).length),k[D]&&S.push(_);S.length&&B.push({elem:G,handlers:S})}}return G=this,Y<y.length&&B.push({elem:G,handlers:y.slice(Y)}),B},addProp:function(c,y){Object.defineProperty(g.Event.prototype,c,{enumerable:!0,configurable:!0,get:m(y)?function(){if(this.originalEvent)return y(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[c]},set:function(b){Object.defineProperty(this,c,{enumerable:!0,configurable:!0,writable:!0,value:b})}})},fix:function(c){return c[g.expando]?c:new g.Event(c)},special:{load:{noBubble:!0},click:{setup:function(c){var y=this||c;return $i.test(y.type)&&y.click&&N(y,"input")&&el(y,"click",!0),!1},trigger:function(c){var y=this||c;return $i.test(y.type)&&y.click&&N(y,"input")&&el(y,"click"),!0},_default:function(c){var y=c.target;return $i.test(y.type)&&y.click&&N(y,"input")&&Be.get(y,"click")||N(y,"a")}},beforeunload:{postDispatch:function(c){c.result!==void 0&&c.originalEvent&&(c.originalEvent.returnValue=c.result)}}}};function el(c,y,b){if(!b){Be.get(c,y)===void 0&&g.event.add(c,y,us);return}Be.set(c,y,!1),g.event.add(c,y,{namespace:!1,handler:function(_){var D,S=Be.get(this,y);if(_.isTrigger&1&&this[y]){if(S)(g.event.special[y]||{}).delegateType&&_.stopPropagation();else if(S=a.call(arguments),Be.set(this,y,S),this[y](),D=Be.get(this,y),Be.set(this,y,!1),S!==D)return _.stopImmediatePropagation(),_.preventDefault(),D}else S&&(Be.set(this,y,g.event.trigger(S[0],S.slice(1),this)),_.stopPropagation(),_.isImmediatePropagationStopped=us)}})}g.removeEvent=function(c,y,b){c.removeEventListener&&c.removeEventListener(y,b)},g.Event=function(c,y){if(!(this instanceof g.Event))return new g.Event(c,y);c&&c.type?(this.originalEvent=c,this.type=c.type,this.isDefaultPrevented=c.defaultPrevented||c.defaultPrevented===void 0&&c.returnValue===!1?us:hs,this.target=c.target&&c.target.nodeType===3?c.target.parentNode:c.target,this.currentTarget=c.currentTarget,this.relatedTarget=c.relatedTarget):this.type=c,y&&g.extend(this,y),this.timeStamp=c&&c.timeStamp||Date.now(),this[g.expando]=!0},g.Event.prototype={constructor:g.Event,isDefaultPrevented:hs,isPropagationStopped:hs,isImmediatePropagationStopped:hs,isSimulated:!1,preventDefault:function(){var c=this.originalEvent;this.isDefaultPrevented=us,c&&!this.isSimulated&&c.preventDefault()},stopPropagation:function(){var c=this.originalEvent;this.isPropagationStopped=us,c&&!this.isSimulated&&c.stopPropagation()},stopImmediatePropagation:function(){var c=this.originalEvent;this.isImmediatePropagationStopped=us,c&&!this.isSimulated&&c.stopImmediatePropagation(),this.stopPropagation()}},g.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},g.event.addProp),g.each({focus:"focusin",blur:"focusout"},function(c,y){function b(_){if(w.documentMode){var D=Be.get(this,"handle"),S=g.event.fix(_);S.type=_.type==="focusin"?"focus":"blur",S.isSimulated=!0,D(_),S.target===S.currentTarget&&D(S)}else g.event.simulate(y,_.target,g.event.fix(_))}g.event.special[c]={setup:function(){var _;if(el(this,c,!0),w.documentMode)_=Be.get(this,y),_||this.addEventListener(y,b),Be.set(this,y,(_||0)+1);else return!1},trigger:function(){return el(this,c),!0},teardown:function(){var _;if(w.documentMode)_=Be.get(this,y)-1,_?Be.set(this,y,_):(this.removeEventListener(y,b),Be.remove(this,y));else return!1},_default:function(_){return Be.get(_.target,c)},delegateType:y},g.event.special[y]={setup:function(){var _=this.ownerDocument||this.document||this,D=w.documentMode?this:_,S=Be.get(D,y);S||(w.documentMode?this.addEventListener(y,b):_.addEventListener(c,b,!0)),Be.set(D,y,(S||0)+1)},teardown:function(){var _=this.ownerDocument||this.document||this,D=w.documentMode?this:_,S=Be.get(D,y)-1;S?Be.set(D,y,S):(w.documentMode?this.removeEventListener(y,b):_.removeEventListener(c,b,!0),Be.remove(D,y))}}}
vendor: 5,542 bytes, line 40
40),g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(c,y){g.event.special[c]={delegateType:y,bindType:y,handle:function(b){var _,D=this,S=b.relatedTarget,k=b.handleObj;return(!S||S!==D&&!g.contains(D,S))&&(b.type=k.origType,_=k.handler.apply(this,arguments),b.type=y),_}}}),g.fn.extend({on:function(c,y,b,_){return Gu(this,c,y,b,_)},one:function(c,y,b,_){return Gu(this,c,y,b,_,1)},off:function(c,y,b){var _,D;if(c&&c.preventDefault&&c.handleObj)return _=c.handleObj,g(c.delegateTarget).off(_.namespace?_.origType+"."+_.namespace:_.origType,_.selector,_.handler),this;if(typeof c=="object"){for(D in c)this.off(D,y,c[D]);return this}return(y===!1||typeof y=="function")&&(b=y,y=void 0),b===!1&&(b=hs),this.each(function(){g.event.remove(this,c,b,y)})}});var Bg=/<script|<style|<link/i,zg=/checked\s*(?:[^=]|=\s*.checked.)/i,Ug=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Jc(c,y){return N(c,"table")&&N(y.nodeType!==11?y:y.firstChild,"tr")&&g(c).children("tbody")[0]||c}function Xg(c){return c.type=(c.getAttribute("type")!==null)+"/"+c.type,c}function Gg(c){return(c.type||"").slice(0,5)==="true/"?c.type=c.type.slice(5):c.removeAttribute("type"),c}function ef(c,y){var b,_,D,S,k,B,Y;if(y.nodeType===1){if(Be.hasData(c)&&(S=Be.get(c),Y=S.events,Y)){Be.remove(y,"handle events");for(D in Y)for(b=0,_=Y[D].length;b<_;b++)g.event.add(y,D,Y[D][b])}Fi.hasData(c)&&(k=Fi.access(c),B=g.extend({},k),Fi.set(y,B))}}function $g(c,y){var b=y.nodeName.toLowerCase();b==="input"&&$i.test(c.type)?y.checked=c.checked:(b==="input"||b==="textarea")&&(y.defaultValue=c.defaultValue)}function ds(c,y,b,_){y=s(y);var D,S,k,B,Y,G,se=0,fe=c.length,ee=fe-1,Se=y[0],gt=m(Se);if(gt||fe>1&&typeof Se=="string"&&!v.checkClone&&zg.test(Se))return c.each(function(Wt){var St=c.eq(Wt);gt&&(y[0]=Se.call(this,Wt,St.html())),ds(St,y,b,_)});if(fe&&(D=Zc(y,c[0].ownerDocument,!1,c,_),S=D.firstChild,D.childNodes.length===1&&(D=S),S||_)){for(k=g.map(ht(D,"script"),Xg),B=k.length;se<fe;se++)Y=D,se!==ee&&(Y=g.clone(Y,!0,!0),B&&g.merge(k,ht(Y,"script"))),b.call(c[se],Y,se);if(B)for(G=k[k.length-1].ownerDocument,g.map(k,Gg),se=0;se<B;se++)Y=k[se],at.test(Y.type||"")&&!Be.access(Y,"globalEval")&&g.contains(G,Y)&&(Y.src&&(Y.type||"").toLowerCase()!=="module"?g._evalUrl&&!Y.noModule&&g._evalUrl(Y.src,{nonce:Y.nonce||Y.getAttribute("nonce")},G):O(Y.textContent.replace(Ug,""),Y,G))}return c}function tf(c,y,b){for(var _,D=y?g.filter(y,c):c,S=0;(_=D[S])!=null;S++)!b&&_.nodeType===1&&g.cleanData(ht(_)),_.parentNode&&(b&&qt(_)&&zs(ht(_,"script")),_.parentNode.removeChild(_));return c}g.extend({htmlPrefilter:function(c){return c},clone:function(c,y,b){var _,D,S,k,B=c.cloneNode(!0),Y=qt(c);if(!v.noCloneChecked&&(c.nodeType===1||c.nodeType===11)&&!g.isXMLDoc(c))for(k=ht(B),S=ht(c),_=0,D=S.length;_<D;_++)$g(S[_],k[_]);if(y)if(b)for(S=S||ht(c),k=k||ht(B),_=0,D=S.length;_<D;_++)ef(S[_],k[_]);else ef(c,B);return k=ht(B,"script"),k.length>0&&zs(k,!Y&&ht(c,"script")),B},cleanData:function(c){for(var y,b,_,D=g.event.special,S=0;(b=c[S])!==void 0;S++)if(on(b)){if(y=b[Be.expando]){if(y.events)for(_ in y.events)D[_]?g.event.remove(b,_):g.removeEvent(b,_,y.handle);b[Be.expando]=void 0}b[Fi.expando]&&(b[Fi.expando]=void 0)}}}),g.fn.extend({detach:function(c){return tf(this,c,!0)},remove:function(c){return tf(this,c)},text:function(c){return We(this,function(y){return y===void 0?g.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=y)})},null,c,arguments.length)},append:function(){return ds(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var y=Jc(this,c);y.appendChild(c)}})},prepend:function(){return ds(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var y=Jc(this,c);y.insertBefore(c,y.firstChild)}})},before:function(){return ds(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this)})},after:function(){return ds(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this.nextSibling)})},empty:function(){for(var c,y=0;(c=this[y])!=null;y++)c.nodeType===1&&(g.cleanData(ht(c,!1)),c.textContent="");return this},clone:function(c,y){return c=c??!1,y=y??c,this.map(function(){return g.clone(this,c,y)})},html:function(c){return We(this,function(y){var b=this[0]||{},_=0,D=this.length;if(y===void 0&&b.nodeType===1)return b.innerHTML;if(typeof y=="string"&&!Bg.test(y)&&!Qi[(Fa.exec(y)||["",""])[1].toLowerCase()]){y=g.htmlPrefilter(y);try{for(;_<D;_++)b=this[_]||{},b.nodeType===1&&(g.cleanData(ht(b,!1)),b.innerHTML=y);b=0}catch{}}b&&this.empty().append(y)},null,c,arguments.length)},replaceWith:function(){var c=[];return ds(this,arguments,function(y){var b=this.parentNode;g.inArray(this,c)<0&&(g.cleanData(ht(this)),b&&b.replaceChild(y,this))},c)}}),g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,y){g.fn[c]=function(b){for(var _,D=[],S=g(b),k=S.length-1,B=0;B<=k;B++)_=B===k?this:this.clone(!0),g(S[B])[y](_),o.apply(D,_.get());return this.pushStack(D)}});var $u=new RegExp("^("+X+")(?!px)[a-z%]+$","i"),Ku=/^--/,tl=function(c){var y=c.ownerDocument.defaultView;return(!y||!y.opener)&&(y=i),y.getComputedStyle(c)},rf=function(c,y,b){var _,D,S={};for(D in y)S[D]=c.style[D],c.style[D]=y[D];_=b.call(c);for(D in y)c.style[D]=S[D];return _},Kg=new RegExp(ze.join("|"),"i");(function(){function c(){if(G){Y.style.cssText="position:absolute;
40left:-11111px;width:60px;margin-top:1px;padding:0;border:0",G.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",rt.appendChild(Y).appendChild(G);var se=i.getComputedStyle(G);b=se.top!=="1%",B=y(se.marginLeft)===12,G.style.right="60%",S=y(se.right)===36,_=y(se.width)===36,G.style.position="absolute",D=y(G.offsetWidth/3)===12,rt.removeChild(Y),G=null}}function y(se){return Math.round(parseFloat(se))}var b,_,D,S,k,B,Y=w.createElement("div"),G=w.createElement("div");G.style&&(G.style.backgroundClip="content-box",G.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle=G.style.backgroundClip==="content-box",g.extend(v,{boxSizingReliable:function(){return c(),_},pixelBoxStyles:function(){return c(),S},pixelPosition:function(){return c(),b},reliableMarginLeft:function(){return c(),B},scrollboxSize:function(){return c(),D},reliableTrDimensions:function(){var se,fe,ee,Se;return k==null&&(se=w.createElement("table"),fe=w.createElement("tr"),ee=w.createElement("div"),se.style.cssText="position:absolute;left:-11111px;border-collapse:separate",fe.style.cssText="box-sizing:content-box;border:1px solid",fe.style.height="1px",ee.style.height="9px",ee.style.display="block",rt.appendChild(se).appendChild(fe).appendChild(ee),Se=i.getComputedStyle(fe),k=parseInt(Se.height,10)+parseInt(Se.borderTopWidth,10)+parseInt(Se.borderBottomWidth,10)===fe.offsetHeight,rt.removeChild(se)),k}}))})();function Xs(c,y,b){var _,D,S,k,B=Ku.test(y),Y=c.style;return b=b||tl(c),b&&(k=b.getPropertyValue(y)||b[y],B&&k&&(k=k.replace(_e,"$1")||void 0),k===""&&!qt(c)&&(k=g.style(c,y)),!v.pixelBoxStyles()&&$u.test(k)&&Kg.test(y)&&(_=Y.width,D=Y.minWidth,S=Y.maxWidth,Y.minWidth=Y.maxWidth=Y.width=k,k=b.width,Y.width=_,Y.minWidth=D,Y.maxWidth=S)),k!==void 0?k+"":k}function nf(c,y){return{get:function(){if(c()){delete this.get;return}return(this.get=y).apply(this,arguments)}}}var af=["Webkit","Moz","ms"],sf=w.createElement("div").style,of={};function qg(c){for(var y=c[0].toUpperCase()+c.slice(1),b=af.length;b--;)if(c=af[b]+y,c in sf)return c}function qu(c){var y=g.cssProps[c]||of[c];return y||(c in sf?c:of[c]=qg(c)||c)}var Zg=/^(none|table(?!-c[ea]).+)/,Qg={position:"absolute",visibility:"hidden",display:"block"},lf={letterSpacing:"0",fontWeight:"400"};function uf(c,y,b){var _=ge.exec(y);return _?Math.max(0,_[2]-(b||0))+(_[3]||"px"):y}function Zu(c,y,b,_,D,S){var k=y==="width"?1:0,B=0,Y=0,G=0;if(b===(_?"border":"content"))return 0;for(;k<4;k+=2)b==="margin"&&(G+=g.css(c,b+ze[k],!0,D)),_?(b==="content"&&(Y-=g.css(c,"padding"+ze[k],!0,D)),b!=="margin"&&(Y-=g.css(c,"border"+ze[k]+"Width",!0,D))):(Y+=g.css(c,"padding"+ze[k],!0,D),b!=="padding"?Y+=g.css(c,"border"+ze[k]+"Width",!0,D):B+=g.css(c,"border"+ze[k]+"Width",!0,D));return!_&&S>=0&&(Y+=Math.max(0,Math.ceil(c["offset"+y[0].toUpperCase()+y.slice(1)]-S-Y-B-.5))||0),Y+G}function hf(c,y,b){var _=tl(c),D=!v.boxSizingReliable()||b,S=D&&g.css(c,"boxSizing",!1,_)==="border-box",k=S,B=Xs(c,y,_),Y="offset"+y[0].toUpperCase()+y.slice(1);if($u.test(B)){if(!b)return B;B="auto"}return(!v.boxSizingReliable()&&S||!v.reliableTrDimensions()&&N(c,"tr")||B==="auto"||!parseFloat(B)&&g.css(c,"display",!1,_)==="inline")&&c.getClientRects().length&&(S=g.css(c,"boxSizing",!1,_)==="border-box",k=Y in c,k&&(B=c[Y])),B=parseFloat(B)||0,B+Zu(c,y,b||(S?"border":"content"),k,_,B)+"px"}g.extend({cssHooks:{opacity:{get:function(c,y){if(y){var b=Xs(c,"opacity");return b===""?"1":b}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(c,y,b,_){if(!(!c||c.nodeType===3||c.nodeType===8||!c.style)){var D,S,k,B=Vi(y),Y=Ku.test(y),G=c.style;if(Y||(y=qu(B)),k=g.cssHooks[y]||g.cssHooks[B],b!==void 0){if(S=typeof b,S==="str
40ing"&&(D=ge.exec(b))&&D[1]&&(b=Va(c,y,D),S="number"),b==null||b!==b)return;S==="number"&&!Y&&(b+=D&&D[3]||(g.cssNumber[B]?"":"px")),!v.clearCloneStyle&&b===""&&y.indexOf("background")===0&&(G[y]="inherit"),(!k||!("set"in k)||(b=k.set(c,b,_))!==void 0)&&(Y?G.setProperty(y,b):G[y]=b)}else return k&&"get"in k&&(D=k.get(c,!1,_))!==void 0?D:G[y]}},css:function(c,y,b,_){var D,S,k,B=Vi(y),Y=Ku.test(y);return Y||(y=qu(B)),k=g.cssHooks[y]||g.cssHooks[B],k&&"get"in k&&(D=k.get(c,!0,b)),D===void 0&&(D=Xs(c,y,_)),D==="normal"&&y in lf&&(D=lf[y]),b===""||b?(S=parseFloat(D),b===!0||isFinite(S)?S||0:D):D}}),g.each(["height","width"],function(c,y){g.cssHooks[y]={get:function(b,_,D){if(_)return Zg.test(g.css(b,"display"))&&(!b.getClientRects().length||!b.getBoundingClientRect().width)?rf(b,Qg,function(){return hf(b,y,D)}):hf(b,y,D)},set:function(b,_,D){var S,k=tl(b),B=!v.scrollboxSize()&&k.position==="absolute",Y=B||D,G=Y&&g.css(b,"boxSizing",!1,k)==="border-box",se=D?Zu(b,y,D,G,k):0;return G&&B&&(se-=Math.ceil(b["offset"+y[0].toUpperCase()+y.slice(1)]-parseFloat(k[y])-Zu(b,y,"border",!1,k)-.5)),se&&(S=ge.exec(_))&&(S[3]||"px")!=="px"&&(b.style[y]=_,_=g.css(b,y)),uf(b,_,se)}}}),g.cssHooks.marginLeft=nf(v.reliableMarginLeft,function(c,y){if(y)return(parseFloat(Xs(c,"marginLeft"))||c.getBoundingClientRect().left-rf(c,{marginLeft:0},function(){return c.getBoundingClientRect().left}))+"px"}),g.each({margin:"",padding:"",border:"Width"},function(c,y){g.cssHooks[c+y]={expand:function(b){for(var _=0,D={},S=typeof b=="string"?b.split(" "):[b];_<4;_++)D[c+ze[_]+y]=S[_]||S[_-2]||S[0];return D}}
vendor: 9,377 bytes, line 40
40,c!=="margin"&&(g.cssHooks[c+y].set=uf)}),g.fn.extend({css:function(c,y){return We(this,function(b,_,D){var S,k,B={},Y=0;if(Array.isArray(_)){for(S=tl(b),k=_.length;Y<k;Y++)B[_[Y]]=g.css(b,_[Y],!1,S);return B}return D!==void 0?g.style(b,_,D):g.css(b,_)},c,y,arguments.length>1)}});function jr(c,y,b,_,D){return new jr.prototype.init(c,y,b,_,D)}g.Tween=jr,jr.prototype={constructor:jr,init:function(c,y,b,_,D,S){this.elem=c,this.prop=b,this.easing=D||g.easing._default,this.options=y,this.start=this.now=this.cur(),this.end=_,this.unit=S||(g.cssNumber[b]?"":"px")},cur:function(){var c=jr.propHooks[this.prop];return c&&c.get?c.get(this):jr.propHooks._default.get(this)},run:function(c){var y,b=jr.propHooks[this.prop];return this.options.duration?this.pos=y=g.easing[this.easing](c,this.options.duration*c,0,1,this.options.duration):this.pos=y=c,this.now=(this.end-this.start)*y+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),b&&b.set?b.set(this):jr.propHooks._default.set(this),this}},jr.prototype.init.prototype=jr.prototype,jr.propHooks={_default:{get:function(c){var y;return c.elem.nodeType!==1||c.elem[c.prop]!=null&&c.elem.style[c.prop]==null?c.elem[c.prop]:(y=g.css(c.elem,c.prop,""),!y||y==="auto"?0:y)},set:function(c){g.fx.step[c.prop]?g.fx.step[c.prop](c):c.elem.nodeType===1&&(g.cssHooks[c.prop]||c.elem.style[qu(c.prop)]!=null)?g.style(c.elem,c.prop,c.now+c.unit):c.elem[c.prop]=c.now}}},jr.propHooks.scrollTop=jr.propHooks.scrollLeft={set:function(c){c.elem.nodeType&&c.elem.parentNode&&(c.elem[c.prop]=c.now)}},g.easing={linear:function(c){return c},swing:function(c){return .5-Math.cos(c*Math.PI)/2},_default:"swing"},g.fx=jr.prototype.init,g.fx.step={};var cs,il,Jg=/^(?:toggle|show|hide)$/,em=/queueHooks$/;function Qu(){il&&(w.hidden===!1&&i.requestAnimationFrame?i.requestAnimationFrame(Qu):i.setTimeout(Qu,g.fx.interval),g.fx.tick())}function df(){return i.setTimeout(function(){cs=void 0}),cs=Date.now()}function rl(c,y){var b,_=0,D={height:c};for(y=y?1:0;_<4;_+=2-y)b=ze[_],D["margin"+b]=D["padding"+b]=c;return y&&(D.opacity=D.width=c),D}function cf(c,y,b){for(var _,D=(un.tweeners[y]||[]).concat(un.tweeners["*"]),S=0,k=D.length;S<k;S++)if(_=D[S].call(b,y,c))return _}function tm(c,y,b){var _,D,S,k,B,Y,G,se,fe="width"in y||"height"in y,ee=this,Se={},gt=c.style,Wt=c.nodeType&&Pr(c),St=Be.get(c,"fxshow");b.queue||(k=g._queueHooks(c,"fx"),k.unqueued==null&&(k.unqueued=0,B=k.empty.fire,k.empty.fire=function(){k.unqueued||B()}),k.unqueued++,ee.always(function(){ee.always(function(){k.unqueued--,g.queue(c,"fx").length||k.empty.fire()})}));for(_ in y)if(D=y[_],Jg.test(D)){if(delete y[_],S=S||D==="toggle",D===(Wt?"hide":"show"))if(D==="show"&&St&&St[_]!==void 0)Wt=!0;else continue;Se[_]=St&&St[_]||g.style(c,_)}if(Y=!g.isEmptyObject(y),!(!Y&&g.isEmptyObject(Se))){fe&&c.nodeType===1&&(b.overflow=[gt.overflow,gt.overflowX,gt.overflowY],G=St&&St.display,G==null&&(G=Be.get(c,"display")),se=g.css(c,"display"),se==="none"&&(G?se=G:(Ti([c],!0),G=c.style.display||G,se=g.css(c,"display"),Ti([c]))),(se==="inline"||se==="inline-block"&&G!=null)&&g.css(c,"float")==="none"&&(Y||(ee.done(function(){gt.display=G}),G==null&&(se=gt.display,G=se==="none"?"":se)),gt.display="inline-block")),b.overflow&&(gt.overflow="hidden",ee.always(function(){gt.overflow=b.overflow[0],gt.overflowX=b.overflow[1],gt.overflowY=b.overflow[2]})),Y=!1;for(_ in Se)Y||(St?"hidden"in St&&(Wt=St.hidden):St=Be.access(c,"fxshow",{display:G}),S&&(St.hidden=!Wt),Wt&&Ti([c],!0),ee.done(function(){Wt||Ti([c]),Be.remove(c,"fxshow");for(_ in Se)g.style(c,_,Se[_])})),Y=cf(Wt?St[_]:0,_,ee),_ in St||(St[_]=Y.start,Wt&&(Y.end=Y.start,Y.start=0))}}function im(c,y){var b,_,D,S,k;for(b in c)if(_=Vi(b),D=y[_],S=c[b],Array.isArray(S)&&(D=S[1],S=c[b]=S[0]),b!==_&&(c[_]=S,delete c[b]),k=g.cssHooks[_],k&&"expand"in k){S=k.expand(S),delete c[_];for(b in S)b in c||(c[b]=S[b],y[b]=D)}else y[_]=D}function un(c,y,b){var _,D,S=0,k=un.prefilters.length,B=g.Deferred().always(function(){delete Y.elem}),Y=function(){if(D)return!1;for(var fe=cs||df(),ee=Math.max(0,G.startTime+G.duration-fe),Se=ee/G.duration||0,gt=1-Se,Wt=0,St=G.tweens.length;Wt<St;Wt++)G.tweens[Wt].run(gt);return B.notifyWith(c,[G,gt,ee]),gt<1&&St?ee:(St||B.notifyWith(c,[G,1,0]),B.resolveWith(c,[G]),!1)},G=B.promise({elem:c,props:g.extend({},y),opts:g.extend(!0,{specialEasing:{},easing:g.easing._default},b),originalProperties:y,originalOptions:b,startTime:cs||df(),duration:b.duration,tweens:[],createTween:function(fe,ee){var Se=g.Tween(c,G.opts,fe,ee,G.opts.specialEasing[fe]||G.opts.easing);return G.tweens.push(Se),Se},stop:function(fe){var ee=0,Se=fe?G.tweens.length:0;if(D)return this;for(D=!0;ee<Se;ee++)G.tweens[ee].run(1);return fe?(B.notifyWith(c,[G,1,0]),B.resolveWith(c,[G,fe])):B.rejectWith(c,[G,fe]),this}}),se=G.props;for(im(se,G.opts.specialEasing);S<k;S++)if(_=un.prefilters[S].call(G,c,se,G.opts),_)return m(_.stop)&&(g._queueHooks(G.elem,G.opts.queue).stop=_.stop.bind(_)),_;return g.map(se,cf,G),m(G.opts.start)&&G.opts.start.call(c,G),G.progress(G.opts.progress).done(G.opts.done,G.opts.complete).fail(G.opts.fail).always(G.opts.always),g.fx.timer(g.extend(Y,{elem:c,anim:G,queue:G.opts.queue})),G}g.Animation=g.extend(un,{tweeners:{"*":[function(c,y){var b=this.createTween(c,y);return Va(b.elem,c,ge.exec(y),b),b}]},tweener:function(c,y){m(c)?(y=c,c=["*"]):c=c.match(ft);for(var b,_=0,D=c.length;_<D;_++)b=c[_],un.tweeners[b]=un.tweeners[b]||[],un.tweeners[b].unshift(y)},prefilters:[tm],prefilter:function(c,y){y?un.prefilters.unshift(c):un.prefilters.push(c)}}),g.speed=function(c,y,b){var _=c&&typeof c=="object"?g.extend({},c):{complete:b||!b&&y||m(c)&&c,duration:c,easing:b&&y||y&&!m(y)&&y};return g.fx.off?_.duration=0:typeof _.duration!="number"&&(_.duration in g.fx.speeds?_.duration=g.fx.speeds[_.duration]:_.duration=g.fx.speeds._default),(_.queue==null||_.queue===!0)&&(_.queue="fx"),_.old=_.complete,_.complete=function(){m(_.old)&&_.old.call(this),_.queue&&g.dequeue(this,_.queue)},_},g.fn.extend({fadeTo:function(c,y,b,_){return this.filter(Pr).css("opacity",0).show().end().animate({opacity:y},c,b,_)},animate:function(c,y,b,_){var D=g.isEmptyObject(c),S=g.speed(y,b,_),k=function(){var B=un(this,g.extend({},c),S);(D||Be.get(this,"finish"))&&B.stop(!0)};return k.finish=k,D||S.queue===!1?this.each(k):this.queue(S.queue,k)},stop:function(c,y,b){var _=function(D){var S=D.stop;delete D.stop,S(b)};return typeof c!="string"&&(b=y,y=c,c=void 0),y&&this.queue(c||"fx",[]),this.each(function(){var D=!0,S=c!=null&&c+"queueHooks",k=g.timers,B=Be.get(this);if(S)B[S]&&B[S].stop&&_(B[S]);else for(S in B)B[S]&&B[S].stop&&em.test(S)&&_(B[S]);for(S=k.length;S--;)k[S].elem===this&&(c==null||k[S].queue===c)&&(k[S].anim.stop(b),D=!1,k.splice(S,1));(D||!b)&&g.dequeue(this,c)})},finish:function(c){return c!==!1&&(c=c||"fx"),this.each(function(){var y,b=Be.get(this),_=b[c+"queue"],D=b[c+"queueHooks"],S=g.timers,k=_?_.length:0;for(b.finish=!0,g.queue(this,c,[]),D&&D.stop&&D.stop.call(this,!0),y=S.length;y--;)S[y].elem===this&&S[y].queue===c&&(S[y].anim.stop(!0),S.splice(y,1));for(y=0;y<k;y++)_[y]&&_[y].finish&&_[y].finish.call(this);delete b.finish})}}),g.each(["toggle","show","hide"],function(c,y){var b=g.fn[y];g.fn[y]=function(_,D,S){return _==null||typeof _=="boolean"?b.apply(this,arguments):this.animate(rl(y,!0),_,D,S)}}),g.each({slideDown:rl("show"),slideUp:rl("hide"),slideToggle:rl("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,y){g.fn[c]=function(b,_,D){return this.animate(y,b,_,D)}}),g.timers=[],g.fx.tick=function(){var c,y=0,b=g.timers;for(cs=Date.now();y<b.length;y++)c=b[y],!c()&&b[y]===c&&b.splice(y--,1);b.length||g.fx.stop(),cs=void 0},g.fx.timer=function(c){g.timers.push(c),g.fx.start()},g.fx.interval=13,g.fx.start=function(){il||(il=!0,Qu())},g.fx.stop=function(){il=null},g.fx.speeds={slow:600,fast:200,_default:400},g.fn.delay=function(c,y){return c=g.fx&&g.fx.speeds[c]||c,y=y||"fx",this.queue(y,function(b,_){var D=i.setTimeout(b,c);_.stop=function(){i.clearTimeout(D)}})},function(){var c=w.createElement("input"),y=w.createElement("select"),b=y.appendChild(w.createElement("option"));c.type="checkbox",v.checkOn=c.value!=="",v.optSelected=b.selected,c=w.createElement("input"),c.value="t",c.type="radio",v.radioValue=c.value==="t"}();var ff,Gs=g.expr.attrHandle;g.fn.extend({attr:function(c,y){return We(this,g.attr,c,y,arguments.length>1)},removeAttr:function(c){return this.each(function(){g.removeAttr(this,c)})}}),g.extend({attr:function(c,y,b){var _,D,S=c.nodeType;if(!(S===3||S===8||S===2)){if(typeof c.getAttribute>"u")return g.prop(c,y,b);if((S!==1||!g.isXMLDoc(c))&&(D=g.attrHooks[y.toLowerCase()]||(g.expr.match.bool.test(y)?ff:void 0)),b!==void 0){if(b===null){g.removeAttr(c,y);return}return D&&"set"in D&&(_=D.set(c,b,y))!==void 0?_:(c.setAttribute(y,b+""),b)}return D&&"get"in D&&(_=D.get(c,y))!==null?_:(_=g.find.attr(c,y),_??void 0)}},attrHooks:{type:{set:function(c,y){if(!v.radioValue&&y==="radio"&&N(c,"input")){var b=c.value;return c.setAttribute("type",y),b&&(c.value=b),y}}}},removeAttr:function(c,y){var b,_=0,D=y&&y.match(ft);if(D&&c.nodeType===1)for(;b=D[_++];)c.removeAttribute(b)}}),ff={set:function(c,y,b){return y===!1?g.removeAttr(c,b):c.setAttribute(b,b),b}},g.each(g.expr.match.bool.source.match(/\w+/g),function(c,y){var b=Gs[y]||g.find.attr;
vendor: 4,688 bytes, lines 40-41
40Gs[y]=function(_,D,S){var k,B,Y=D.toLowerCase();return S||(B=Gs[Y],Gs[Y]=k,k=b(_,D,S)!=null?Y:null,Gs[Y]=B),k}});var rm=/^(?:input|select|textarea|button)$/i,nm=/^(?:a|area)$/i;g.fn.extend({prop:function(c,y){return We(this,g.prop,c,y,arguments.length>1)},removeProp:function(c){return this.each(function(){delete this[g.propFix[c]||c]})}}),g.extend({prop:function(c,y,b){var _,D,S=c.nodeType;if(!(S===3||S===8||S===2))return(S!==1||!g.isXMLDoc(c))&&(y=g.propFix[y]||y,D=g.propHooks[y]),b!==void 0?D&&"set"in D&&(_=D.set(c,b,y))!==void 0?_:c[y]=b:D&&"get"in D&&(_=D.get(c,y))!==null?_:c[y]},propHooks:{tabIndex:{get:function(c){var y=g.find.attr(c,"tabindex");return y?parseInt(y,10):rm.test(c.nodeName)||nm.test(c.nodeName)&&c.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(g.propHooks.selected={get:function(c){var y=c.parentNode;return y&&y.parentNode&&y.parentNode.selectedIndex,null},set:function(c){var y=c.parentNode;y&&(y.selectedIndex,y.parentNode&&y.parentNode.selectedIndex)}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){g.propFix[this.toLowerCase()]=this});function Ia(c){var y=c.match(ft)||[];return y.join(" ")}function Ea(c){return c.getAttribute&&c.getAttribute("class")||""}function Ju(c){return Array.isArray(c)?c:typeof c=="string"?c.match(ft)||[]:[]}g.fn.extend({addClass:function(c){var y,b,_,D,S,k;return m(c)?this.each(function(B){g(this).addClass(c.call(this,B,Ea(this)))}):(y=Ju(c),y.length?this.each(function(){if(_=Ea(this),b=this.nodeType===1&&" "+Ia(_)+" ",b){for(S=0;S<y.length;S++)D=y[S],b.indexOf(" "+D+" ")<0&&(b+=D+" ");k=Ia(b),_!==k&&this.setAttribute("class",k)}}):this)},removeClass:function(c){var y,b,_,D,S,k;return m(c)?this.each(function(B){g(this).removeClass(c.call(this,B,Ea(this)))}):arguments.length?(y=Ju(c),y.length?this.each(function(){if(_=Ea(this),b=this.nodeType===1&&" "+Ia(_)+" ",b){for(S=0;S<y.length;S++)for(D=y[S];b.indexOf(" "+D+" ")>-1;)b=b.replace(" "+D+" "," ");k=Ia(b),_!==k&&this.setAttribute("class",k)}}):this):this.attr("class","")},toggleClass:function(c,y){var b,_,D,S,k=typeof c,B=k==="string"||Array.isArray(c);return m(c)?this.each(function(Y){g(this).toggleClass(c.call(this,Y,Ea(this),y),y)}):typeof y=="boolean"&&B?y?this.addClass(c):this.removeClass(c):(b=Ju(c),this.each(function(){if(B)for(S=g(this),D=0;D<b.length;D++)_=b[D],S.hasClass(_)?S.removeClass(_):S.addClass(_);else(c===void 0||k==="boolean")&&(_=Ea(this),_&&Be.set(this,"__className__",_),this.setAttribute&&this.setAttribute("class",_||c===!1?"":Be.get(this,"__className__")||""))}))},hasClass:function(c){var y,b,_=0;for(y=" "+c+" ";b=this[_++];)if(b.nodeType===1&&(" "+Ia(Ea(b))+" ").indexOf(y)>-1)return!0;return!1}});var am=/\r/g;g.fn.extend({val:function(c){var y,b,_,D=this[0];return arguments.length?(_=m(c),this.each(function(S){var k;this.nodeType===1&&(_?k=c.call(this,S,g(this).val()):k=c,k==null?k="":typeof k=="number"?k+="":Array.isArray(k)&&(k=g.map(k,function(B){return B==null?"":B+""})),y=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()],(!y||!("set"in y)||y.set(this,k,"value")===void 0)&&(this.value=k))})):D?(y=g.valHooks[D.type]||g.valHooks[D.nodeName.toLowerCase()],y&&"get"in y&&(b=y.get(D,"value"))!==void 0?b:(b=D.value,typeof b=="string"?b.replace(am,""):b??"")):void 0}}),g.extend({valHooks:{option:{get:function(c){var y=g.find.attr(c,"value");return y??Ia(g.text(c))}},select:{get:function(c){var y,b,_,D=c.options,S=c.selectedIndex,k=c.type==="select-one",B=k?null:[],Y=k?S+1:D.length;for(S<0?_=Y:_=k?S:0;_<Y;_++)if(b=D[_],(b.selected||_===S)&&!b.disabled&&(!b.parentNode.disabled||!N(b.parentNode,"optgroup"))){if(y=g(b).val(),k)return y;B.push(y)}return B},set:function(c,y){for(var b,_,D=c.options,S=g.makeArray(y),k=D.length;k--;)_=D[k],(_.selected=g.inArray(g.valHooks.option.get(_),S)>-1)&&(b=!0);return b||(c.selectedIndex=-1),S}}}}),g.each(["radio","checkbox"],function(){g.valHooks[this]={set:function(c,y){if(Array.isArray(y))return c.checked=g.inArray(g(c).val(),y)>-1}},v.checkOn||(g.valHooks[this].get=function(c){return c.getAttribute("value")===null?"on":c.value})});var $s=i.location,pf={guid:Date.now()},eh=/\?/;g.parseXML=function(c){var y,b;if(!c||typeof c!="string")return null;try{y=new i.DOMParser().parseFromString(c,"text/xml")}catch{}return b=y&&y.getElementsByTagName("parsererror")[0],(!y||b)&&g.error("Invalid XML: "+(b?g.map(b.childNodes,function(_){return _.textContent}).join(`
41`):c)),y};var yf=/^(?:focusinfocus|focusoutblur)$/,vf=function(c){c.stopPropagation()};g.extend(g.event,{trigger:function(c,y,b,_){var D,S,k,B,Y,G,se,fe,ee=[b||w],Se=d.c
vendor: 12,744 bytes, lines 41-43
41all(c,"type")?c.type:c,gt=d.call(c,"namespace")?c.namespace.split("."):[];if(S=fe=k=b=b||w,!(b.nodeType===3||b.nodeType===8)&&!yf.test(Se+g.event.triggered)&&(Se.indexOf(".")>-1&&(gt=Se.split("."),Se=gt.shift(),gt.sort()),Y=Se.indexOf(":")<0&&"on"+Se,c=c[g.expando]?c:new g.Event(Se,typeof c=="object"&&c),c.isTrigger=_?2:3,c.namespace=gt.join("."),c.rnamespace=c.namespace?new RegExp("(^|\\.)"+gt.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c.result=void 0,c.target||(c.target=b),y=y==null?[c]:g.makeArray(y,[c]),se=g.event.special[Se]||{},!(!_&&se.trigger&&se.trigger.apply(b,y)===!1))){if(!_&&!se.noBubble&&!x(b)){for(B=se.delegateType||Se,yf.test(B+Se)||(S=S.parentNode);S;S=S.parentNode)ee.push(S),k=S;k===(b.ownerDocument||w)&&ee.push(k.defaultView||k.parentWindow||i)}for(D=0;(S=ee[D++])&&!c.isPropagationStopped();)fe=S,c.type=D>1?B:se.bindType||Se,G=(Be.get(S,"events")||Object.create(null))[c.type]&&Be.get(S,"handle"),G&&G.apply(S,y),G=Y&&S[Y],G&&G.apply&&on(S)&&(c.result=G.apply(S,y),c.result===!1&&c.preventDefault());return c.type=Se,!_&&!c.isDefaultPrevented()&&(!se._default||se._default.apply(ee.pop(),y)===!1)&&on(b)&&Y&&m(b[Se])&&!x(b)&&(k=b[Y],k&&(b[Y]=null),g.event.triggered=Se,c.isPropagationStopped()&&fe.addEventListener(Se,vf),b[Se](),c.isPropagationStopped()&&fe.removeEventListener(Se,vf),g.event.triggered=void 0,k&&(b[Y]=k)),c.result}},simulate:function(c,y,b){var _=g.extend(new g.Event,b,{type:c,isSimulated:!0});g.event.trigger(_,null,y)}}),g.fn.extend({trigger:function(c,y){return this.each(function(){g.event.trigger(c,y,this)})},triggerHandler:function(c,y){var b=this[0];if(b)return g.event.trigger(c,y,b,!0)}});var sm=/\[\]$/,gf=/\r?\n/g,om=/^(?:submit|button|image|reset|file)$/i,lm=/^(?:input|select|textarea|keygen)/i;function th(c,y,b,_){var D;if(Array.isArray(y))g.each(y,function(S,k){b||sm.test(c)?_(c,k):th(c+"["+(typeof k=="object"&&k!=null?S:"")+"]",k,b,_)});else if(!b&&j(y)==="object")for(D in y)th(c+"["+D+"]",y[D],b,_);else _(c,y)}g.param=function(c,y){var b,_=[],D=function(S,k){var B=m(k)?k():k;_[_.length]=encodeURIComponent(S)+"="+encodeURIComponent(B??"")};if(c==null)return"";if(Array.isArray(c)||c.jquery&&!g.isPlainObject(c))g.each(c,function(){D(this.name,this.value)});else for(b in c)th(b,c[b],y,D);return _.join("&")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var c=g.prop(this,"elements");return c?g.makeArray(c):this}).filter(function(){var c=this.type;return this.name&&!g(this).is(":disabled")&&lm.test(this.nodeName)&&!om.test(c)&&(this.checked||!$i.test(c))}).map(function(c,y){var b=g(this).val();return b==null?null:Array.isArray(b)?g.map(b,function(_){return{name:y.name,value:_.replace(gf,`\r
42`)}}):{name:y.name,value:b.replace(gf,`\r
43`)}}).get()}});var um=/%20/g,hm=/#.*$/,dm=/([?&])_=[^&]*/,cm=/^(.*?):[ \t]*([^\r\n]*)$/mg,fm=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,pm=/^(?:GET|HEAD)$/,ym=/^\/\//,mf={},ih={},bf="*/".concat("*"),rh=w.createElement("a");rh.href=$s.href;function xf(c){return function(y,b){typeof y!="string"&&(b=y,y="*");var _,D=0,S=y.toLowerCase().match(ft)||[];if(m(b))for(;_=S[D++];)_[0]==="+"?(_=_.slice(1)||"*",(c[_]=c[_]||[]).unshift(b)):(c[_]=c[_]||[]).push(b)}}function _f(c,y,b,_){var D={},S=c===ih;function k(B){var Y;return D[B]=!0,g.each(c[B]||[],function(G,se){var fe=se(y,b,_);if(typeof fe=="string"&&!S&&!D[fe])return y.dataTypes.unshift(fe),k(fe),!1;if(S)return!(Y=fe)}),Y}return k(y.dataTypes[0])||!D["*"]&&k("*")}function nh(c,y){var b,_,D=g.ajaxSettings.flatOptions||{};for(b in y)y[b]!==void 0&&((D[b]?c:_||(_={}))[b]=y[b]);return _&&g.extend(!0,c,_),c}function vm(c,y,b){for(var _,D,S,k,B=c.contents,Y=c.dataTypes;Y[0]==="*";)Y.shift(),_===void 0&&(_=c.mimeType||y.getResponseHeader("Content-Type"));if(_){for(D in B)if(B[D]&&B[D].test(_)){Y.unshift(D);break}}if(Y[0]in b)S=Y[0];else{for(D in b){if(!Y[0]||c.converters[D+" "+Y[0]]){S=D;break}k||(k=D)}S=S||k}if(S)return S!==Y[0]&&Y.unshift(S),b[S]}function gm(c,y,b,_){var D,S,k,B,Y,G={},se=c.dataTypes.slice();if(se[1])for(k in c.converters)G[k.toLowerCase()]=c.converters[k];for(S=se.shift();S;)if(c.responseFields[S]&&(b[c.responseFields[S]]=y),!Y&&_&&c.dataFilter&&(y=c.dataFilter(y,c.dataType)),Y=S,S=se.shift(),S){if(S==="*")S=Y;else if(Y!=="*"&&Y!==S){if(k=G[Y+" "+S]||G["* "+S],!k){for(D in G)if(B=D.split(" "),B[1]===S&&(k=G[Y+" "+B[0]]||G["* "+B[0]],k)){k===!0?k=G[D]:G[D]!==!0&&(S=B[0],se.unshift(B[1]));break}}if(k!==!0)if(k&&c.throws)y=k(y);else try{y=k(y)}catch(fe){return{state:"parsererror",error:k?fe:"No conversion from "+Y+" to "+S}}}}return{state:"success",data:y}}g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:$s.href,type:"GET",isLocal:fm.test($s.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":bf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(c,y){return y?nh(nh(c,g.ajaxSettings),y):nh(g.ajaxSettings,c)},ajaxPrefilter:xf(mf),ajaxTransport:xf(ih),ajax:function(c,y){typeof c=="object"&&(y=c,c=void 0),y=y||{};var b,_,D,S,k,B,Y,G,se,fe,ee=g.ajaxSetup({},y),Se=ee.context||ee,gt=ee.context&&(Se.nodeType||Se.jquery)?g(Se):g.event,Wt=g.Deferred(),St=g.Callbacks("once memory"),ur=ee.statusCode||{},Ji={},wn={},Pn="canceled",It={readyState:0,getResponseHeader:function(Xt){var Ei;if(Y){if(!S)for(S={};Ei=cm.exec(D);)S[Ei[1].toLowerCase()+" "]=(S[Ei[1].toLowerCase()+" "]||[]).concat(Ei[2]);Ei=S[Xt.toLowerCase()+" "]}return Ei==null?null:Ei.join(", ")},getAllResponseHeaders:function(){return Y?D:null},setRequestHeader:function(Xt,Ei){return Y==null&&(Xt=wn[Xt.toLowerCase()]=wn[Xt.toLowerCase()]||Xt,Ji[Xt]=Ei),this},overrideMimeType:function(Xt){return Y==null&&(ee.mimeType=Xt),this},statusCode:function(Xt){var Ei;if(Xt)if(Y)It.always(Xt[It.status]);else for(Ei in Xt)ur[Ei]=[ur[Ei],Xt[Ei]];return this},abort:function(Xt){var Ei=Xt||Pn;return b&&b.abort(Ei),La(0,Ei),this}};if(Wt.promise(It),ee.url=((c||ee.url||$s.href)+"").replace(ym,$s.protocol+"//"),ee.type=y.method||y.type||ee.method||ee.type,ee.dataTypes=(ee.dataType||"*").toLowerCase().match(ft)||[""],ee.crossDomain==null){B=w.createElement("a");try{B.href=ee.url,B.href=B.href,ee.crossDomain=rh.protocol+"//"+rh.host!=B.protocol+"//"+B.host}catch{ee.crossDomain=!0}}if(ee.data&&ee.processData&&typeof ee.data!="string"&&(ee.data=g.param(ee.data,ee.traditional)),_f(mf,ee,y,It),Y)return It;G=g.event&&ee.global,G&&g.active++===0&&g.event.trigger("ajaxStart"),ee.type=ee.type.toUpperCase(),ee.hasContent=!pm.test(ee.type),_=ee.url.replace(hm,""),ee.hasContent?ee.data&&ee.processData&&(ee.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(ee.data=ee.data.replace(um,"+")):(fe=ee.url.slice(_.length),ee.data&&(ee.processData||typeof ee.data=="string")&&(_+=(eh.test(_)?"&":"?")+ee.data,delete ee.data),ee.cache===!1&&(_=_.replace(dm,"$1"),fe=(eh.test(_)?"&":"?")+"_="+pf.guid+++fe),ee.url=_+fe),ee.ifModified&&(g.lastModified[_]&&It.setRequestHeader("If-Modified-Since",g.lastModified[_]),g.etag[_]&&It.setRequestHeader("If-None-Match",g.etag[_])),(ee.data&&ee.hasContent&&ee.contentType!==!1||y.contentType)&&It.setRequestHeader("Content-Type",ee.contentType),It.setRequestHeader("Accept",ee.dataTypes[0]&&ee.accepts[ee.dataTypes[0]]?ee.accepts[ee.dataTypes[0]]+(ee.dataTypes[0]!=="*"?", "+bf+"; q=0.01":""):ee.accepts["*"]);for(se in ee.headers)It.setRequestHeader(se,ee.headers[se]);if(ee.beforeSend&&(ee.beforeSend.call(Se,It,ee)===!1||Y))return It.abort();if(Pn="abort",St.add(ee.complete),It.done(ee.success),It.fail(ee.error),b=_f(ih,ee,y,It),!b)La(-1,"No Transport");else{if(It.readyState=1,G&&gt.trigger("ajaxSend",[It,ee]),Y)return It;ee.async&&ee.timeout>0&&(k=i.setTimeout(function(){It.abort("timeout")},ee.timeout));try{Y=!1,b.send(Ji,La)}catch(Xt){if(Y)throw Xt;La(-1,Xt)}}function La(Xt,Ei,qs,sh){var Cn,Zs,Dn,da,ca,Xr=Ei;Y||(Y=!0,k&&i.clearTimeout(k),b=void 0,D=sh||"",It.readyState=Xt>0?4:0,Cn=Xt>=200&&Xt<300||Xt===304,qs&&(da=vm(ee,It,qs)),!Cn&&g.inArray("script",ee.dataTypes)>-1&&g.inArray("json",ee.dataTypes)<0&&(ee.converters["text script"]=function(){}),da=gm(ee,da,It,Cn),Cn?(ee.ifModified&&(ca=It.getResponseHeader("Last-Modified"),ca&&(g.lastModified[_]=ca),ca=It.getResponseHeader("etag"),ca&&(g.etag[_]=ca)),Xt===204||ee.type==="HEAD"?Xr="nocontent":Xt===304?Xr="notmodified":(Xr=da.state,Zs=da.data,Dn=da.error,Cn=!Dn)):(Dn=Xr,(Xt||!Xr)&&(Xr="error",Xt<0&&(Xt=0))),It.status=Xt,It.statusText=(Ei||Xr)+"",Cn?Wt.resolveWith(Se,[Zs,Xr,It]):Wt.rejectWith(Se,[It,Xr,Dn]),It.statusCode(ur),ur=void 0,G&&gt.trigger(Cn?"ajaxSuccess":"ajaxError",[It,ee,Cn?Zs:Dn]),St.fireWith(Se,[It,Xr]),G&&(gt.trigger("ajaxComplete",[It,ee]),--g.active||g.event.trigger("ajaxStop")))}return It},getJSON:function(c,y,b){return g.get(c,y,b,"json")},getScript:function(c,y){return g.get(c,void 0,y,"script")}}),g.each(["get","post"],function(c,y){g[y]=function(b,_,D,S){return m(_)&&(S=S||D,D=_,_=void 0),g.ajax(g.extend({url:b,type:y,dataType:S,data:_,success:D},g.isPlainObject(b)&&b))}}),g.ajaxPrefilter(function(c){var y;for(y in c.headers)y.toLowerCase()==="content-type"&&(c.contentType=c.headers[y]||"")}),g._evalUrl=function(c,y,b){return g.ajax({url:c,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(_){g.globalEval(_,y,b)}})},g.fn.extend({wrapAll:function(c){var y;return this[0]&&(m(c)&&(c=c.call(this[0])),y=g(c,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&y.insertBefore(this[0]),y.map(function(){for(var b=this;b.firstElementChild;)b=b.firstElementChild;return b}).append(this)),this},wrapInner:function(c){return m(c)?this.each(function(y){g(this).wrapInner(c.call(this,y))}):this.each(function(){var y=g(this),b=y.contents();b.length?b.wrapAll(c):y.append(c)})},wrap:function(c){var y=m(c);return this.each(function(b){g(this).wrapAll(y?c.call(this,b):c)})},unwrap:function(c){return this.parent(c).not("body").each(function(){g(this).replaceWith(this.childNodes)}),this}}),g.expr.pseudos.hidden=function(c){return!g.expr.pseudos.visible(c)},g.expr.pseudos.visible=function(c){return!!(c.offsetWidth||c.offsetHeight||c.getClientRects().length)},g.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch{}};var mm={0:200,1223:204},Ks=g.ajaxSettings.xhr();v.cors=!!Ks&&"withCredentials"in Ks,v.ajax=Ks=!!Ks,g.ajaxTransport(function(c){var y,b;if(v.cors||Ks&&!c.crossDomain)return{send:function(_,D){var S,k=c.xhr();if(k.open(c.type,c.url,c.async,c.username,c.password),c.xhrFields)for(S in c.xhrFields)k[S]=c.xhrFields[S];c.mimeType&&k.overrideMimeType&&k.overrideMimeType(c.mimeType),!c.crossDomain&&!_["X-Requested-With"]&&(_["X-Requested-With"]="XMLHttpRequest");for(S in _)k.setRequestHeader(S,_[S]);y=function(B){return function(){y&&(y=b=k.onload=k.onerror=k.onabort=k.ontimeout=k.onreadystatechange=null,B==="abort"?k.abort():B==="error"?typeof k.status!="number"?D(0,"error"):D(k.status,k.statusText):D(mm[k.status]||k.status,k.statusText,(k.responseType||"text")!=="text"||typeof k.responseText!="string"?{binary:k.response}:{text:k.responseText},k.getAllResponseHeaders()))}},k.onload=y(),b=k.onerror=k.ontimeout=y("error"),k.onabort!==void 0?k.onabort=b:k.onreadystatechange=function(){k.readyState===4&&i.setTimeout(function(){y&&b()})},y=y("abort");try{k.send(c.hasContent&&c.data||null)}catch(B){if(y)throw B}},abort:function(){y&&y()}}}),g.ajaxPrefilter(function(c){c.crossDomain&&(c.contents.script=!1)}),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(c){return g.globalEval(c),c}}}),g.ajaxPrefilter("script",function(c){c.cache===void 0&&(c.cache=!1),c.crossDomain&&(c.type="GET")}),g.ajaxTransport("script",function(c){if(c.crossDomain||c.scriptAttrs){var y,b;return{send:function(_,D){y=g("<script>").attr(c.scriptAttrs||{}).prop({charset:c.scriptCharset,src:c.url}).on("load error",b=function(S){y.remove(),b=null,S&&D(S.type==="error"?404:200,S.type)}),w.head.appendChild(y[0])},abort:function(){b&&b()}}}});var wf=[],ah=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var c=wf.pop()||g.expando+"_"+pf.guid++;return this[c]=!0,c}}),g.ajaxPrefilter("json jsonp",function(c,y,b){var _,D,S,k=c.jsonp!==!1&&(ah.test(c.url)?"url":typeof c.data=="str
43ing"&&(c.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ah.test(c.data)&&"data");if(k||c.dataTypes[0]==="jsonp")return _=c.jsonpCallback=m(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,k?c[k]=c[k].replace(ah,"$1"+_):c.jsonp!==!1&&(c.url+=(eh.test(c.url)?"&":"?")+c.jsonp+"="+_),c.converters["script json"]=function(){return S||g.error(_+" was not called"),S[0]},c.dataTypes[0]="json",D=i[_],i[_]=function(){S=arguments},b.always(function(){D===void 0?g(i).removeProp(_):i[_]=D,c[_]&&(c.jsonpCallback=y.jsonpCallback,wf.push(_)),S&&m(D)&&D(S[0]),S=D=void 0}),"script"}),v.createHTMLDocument=function(){var c=w.implementation.createHTMLDocument("").body;return c.innerHTML="<form></form><form></form>",c.childNodes.length===2}(),g.parseHTML=function(c,y,b){if(typeof c!="string")return[];typeof y=="boolean"&&(b=y,y=!1);var _,D,S;return y||(v.createHTMLDocument?(y=w.implementation.createHTMLDocument(""),_=y.createElement("base"),_.href=w.location.href,y.head.appendChild(_)):y=w),D=K.exec(c),S=!b&&[],D?[y.createElement(D[1])]:(D=Zc([c],y,S),S&&S.length&&g(S).remove(),g.merge([],D.childNodes))},g.fn.load=function(c,y,b){var _,D,S,k=this,B=c.indexOf(" ");return B>-1&&(_=Ia(c.slice(B)),c=c.slice(0,B)),m(y)?(b=y,y=void 0):y&&typeof y=="object"&&(D="POST"),k.length>0&&g.ajax({url:c,type:D||"GET",dataType:"html",data:y}).done(function(Y){S=arguments,k.html(_?g("<div>").append(g.parseHTML(Y)).find(_):Y)}).always(b&&function(Y,G){k.each(function(){b.apply(this,S||[Y.responseText,G,Y])})}),this},g.expr.pseudos.animated=function(c){return g.grep(g.timers,function(y){return c===y.elem}).length},g.offset={setOffset:function(c,y,b){var _,D,S,k,B,Y,G,se=g.css(c,"position"),fe=g(c),ee={};se==="static"&&(c.style.position="relative"),B=fe.offset(),S=g.css(c,"top"),Y=g.css(c,"left"),G=(se==="absolute"||se==="fixed")&&(S+Y).indexOf("auto")>-1,G?(_=fe.position(),k=_.top,D=_.left):(k=parseFloat(S)||0,D=parseFloat(Y)||0),m(y)&&(y=y.call(c,b,g.extend({},B))),y.top!=null&&(ee.top=y.top-B.top+k),y.left!=null&&(ee.left=y.left-B.left+D),"using"in y?y.using.call(c,ee):fe.css(ee)}},g.fn.extend({offset:function(c){if(arguments.length)return c===void 0?this:this.each(function(D){g.offset.setOffset(this,c,D)});var y,b,_=this[0];if(_)return _.getClientRects().length?(y=_.getBoundingClientRect(),b=_.ownerDocument.defaultView,{top:y.top+b.pageYOffset,left:y.left+b.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var c,y,b,_=this[0],D={top:0,left:0};if(g.css(_,"position")==="fixed")y=_.getBoundingClientRect();else{for(y=this.offset(),b=_.ownerDocument,c=_.offsetParent||b.documentElement;c&&(c===b.body||c===b.documentElement)&&g.css(c,"position")==="static";)c=c.parentNode;c&&c!==_&&c.nodeType===1&&(D=g(c).offset(),D.top+=g.css(c,"borderTopWidth",!0),D.left+=g.css(c,"borderLeftWidth",!0))}return{top:y.top-D.top-g.css(_,"marginTop",!0),left:y.left-D.left-g.css(_,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent;c&&g.css(c,"position")==="static";)c=c.offsetParent;return c||rt})}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(c,y){var b=y==="pageYOffset";g.fn[c]=function(_){return We(this,function(D,S,k){var B;if(x(D)?B=D:D.nodeType===9&&(B=D.defaultView),k===void 0)return B?B[y]:D[S];B?B.scrollTo(b?B.pageXOffset:k,b?k:B.pageYOffset):D[S]=k},c,_,arguments.length)}}),g.each(["top","left"],function(c,y){g.cssHooks[y]=nf(v.pixelPosition,function(b,_){if(_)return _=Xs(b,y),$u.test(_)?g(b).position()[y]+"px":_})}),g.each({Height:"height",Width:"width"},function(c,y){g.each({padding:"inner"+c,content:y,"":"outer"+c},function(b,_){g.fn[_]=function(D,S){var k=arguments.length&&(b||typeof D!="boolean"),B=b||(D===!0||S===!0?"margin":"border");return We(this,function(Y,G,se){var fe;return x(Y)?_.indexOf("outer")===0?Y["inner"+c]:Y.document.documentElement["client"+c]:Y.nodeType===9?(fe=Y.documentElement,Math.max(Y.body["scroll"+c],fe["scroll"+c],Y.body["offset"+c],fe["offset"+c],fe["client"+c])):se===void 0?g.css(Y,G,B):g.style(Y,G,se,B)},y,k?D:void 0,k)}})}),g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(c,y){g.fn[y]=function(b){return this.on(y,b)}}),g.fn.extend({bind:function(c,y,b){return this.on(c,null,y,b)},unbind:function(c,y){return this.off(c,null,y)},delegate:function(c,y,b,_){return this.on(y,c,b,_)},undelegate:function(c,y,b){return arguments.length===1?this.off(c,"**"):this.off(y,c||"**",b)},hover:function(c,y){return this.on("mouseenter",c).on("mouseleave",y||c)}}),g.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(c,y){g.fn[y]=function(b,_){return arguments.length>0?this.on(y,null,b,_):this.trigger(y)}});var bm=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;g.proxy=function(c,y){var b,_,D;if(typeof y=="string"&&(b=c[y],y=c,c=b),!!m(c))return _=a.call(arguments,2),D=function(){return c.apply(y||this,_.concat(a.call(arguments)))},D.guid=c.guid=c.guid||g.guid++,D},g.holdReady=function(c){c?g.readyWait++:g.ready(!0)},g.isArray=Array.isArray,g.parseJSON=JSON.parse,g.nodeName=N,g.isFunction=m,g.isWindow=x,g.camelCase=Vi,g.type=j,g.now=Date.now,g.isNumeric=function(c){var y=g.type(c);
43return(y==="number"||y==="string")&&!isNaN(c-parseFloat(c))},g.trim=function(c){return c==null?"":(c+"").replace(bm,"$1")};var xm=i.jQuery,_m=i.$;return g.noConflict=function(c){return i.$===g&&(i.$=_m),c&&i.jQuery===g&&(i.jQuery=xm),g},typeof e>"u"&&(i.jQuery=i.$=g),g})})(dg);var iP=dg.exports;const jh=Fp(iP);var cg={exports:{}};(function(n,i){(function(t,r){n.exports=r()})(typeof self<"u"?self:Vp,function(){return function(e){var t={};function r(a){if(t[a])return t[a].exports;var s=t[a]={i:a,l:!1,exports:{}};return e[a].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=e,r.c=t,r.d=function(a,s,o){r.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:o})},r.r=function(a){Object.defineProperty(a,"__esModule",{value:!0})},r.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return r.d(s,"a",s),s},r.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},r.p="",r(r.s=0)}({
43"./dist/icons.json":function(e){e
vendor: 49,341 bytes, line 43
43.exports={activity:'<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>',airplay:'<path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon>',"alert-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-triangle":'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',"align-center":'<line x1="18" y1="10" x2="6" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="18" y1="18" x2="6" y2="18"></line>',"align-justify":'<line x1="21" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="3" y2="18"></line>',"align-left":'<line x1="17" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="17" y1="18" x2="3" y2="18"></line>',"align-right":'<line x1="21" y1="10" x2="7" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="7" y2="18"></line>',anchor:'<circle cx="12" cy="5" r="3"></circle><line x1="12" y1="22" x2="12" y2="8"></line><path d="M5 12H2a10 10 0 0 0 20 0h-3"></path>',aperture:'<circle cx="12" cy="12" r="10"></circle><line x1="14.31" y1="8" x2="20.05" y2="17.94"></line><line x1="9.69" y1="8" x2="21.17" y2="8"></line><line x1="7.38" y1="12" x2="13.12" y2="2.06"></line><line x1="9.69" y1="16" x2="3.95" y2="6.06"></line><line x1="14.31" y1="16" x2="2.83" y2="16"></line><line x1="16.62" y1="12" x2="10.88" y2="21.94"></line>',archive:'<polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line>',"arrow-down-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line>',"arrow-down-left":'<line x1="17" y1="7" x2="7" y2="17"></line><polyline points="17 17 7 17 7 7"></polyline>',"arrow-down-right":'<line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline>',"arrow-down":'<line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline>',"arrow-left-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 8 8 12 12 16"></polyline><line x1="16" y1="12" x2="8" y2="12"></line>',"arrow-left":'<line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline>',"arrow-right-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line>',"arrow-right":'<line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline>',"arrow-up-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="16 12 12 8 8 12"></polyline><line x1="12" y1="16" x2="12" y2="8"></line>',"arrow-up-left":'<line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline>',"arrow-up-right":'<line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline>',"arrow-up":'<line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline>',"at-sign":'<circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path>',award:'<circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline>',"bar-chart-2":'<line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line>',"bar-chart":'<line x1="12" y1="20" x2="12" y2="10"></line><line x1="18" y1="20" x2="18" y2="4"></line><line x1="6" y1="20" x2="6" y2="16"></line>',"battery-charging":'<path d="M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19"></path><line x1="23" y1="13" x2="23" y2="11"></line><polyline points="11 6 7 12 13 12 9 18"></polyline>',battery:'<rect x="1" y="6" width="18" height="12" rx="2" ry="2"></rect><line x1="23" y1="13" x2="23" y2="11"></line>',"bell-off":'<path d="M13.73 21a2 2 0 0 1-3.46 0"></path><path d="M18.63 13A17.89 17.89 0 0 1 18 8"></path><path d="M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"></path><path d="M18 8a6 6 0 0 0-9.33-5"></path><line x1="1" y1="1" x2="23" y2="23"></line>',bell:'<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path>',bluetooth:'<polyline points="6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5"></polyline>',bold:'<path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path><path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>',"book-open":'<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>',book:'<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>',bookmark:'<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>',box:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',briefcase:'<rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>',calendar:'<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line>',"camera-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"></path>',camera:'<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle>',cast:'<path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"></path><line x1="2" y1="20" x2="2.01" y2="20"></line>',"check-circle":'<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline>',"check-square":'<polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>',check:'<polyline points="20 6 9 17 4 12"></polyline>',"chevron-down":'<polyline points="6 9 12 15 18 9"></polyline>',"chevron-left":'<polyline points="15 18 9 12 15 6"></polyline>',"chevron-right":'<polyline points="9 18 15 12 9 6"></polyline>',"chevron-up":'<polyline points="18 15 12 9 6 15"></polyline>',"chevrons-down":'<polyline points="7 13 12 18 17 13"></polyline><polyline points="7 6 12 11 17 6"></polyline>',"chevrons-left":'<polyline points="11 17 6 12 11 7"></polyline><polyline points="18 17 13 12 18 7"></polyline>',"chevrons-right":'<polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline>',"chevrons-up":'<polyline points="17 11 12 6 7 11"></polyline><polyline points="17 18 12 13 7 18"></polyline>',chrome:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="21.17" y1="8" x2="12" y2="8"></line><line x1="3.95" y1="6.06" x2="8.54" y2="14"></line><line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>',circle:'<circle cx="12" cy="12" r="10"></circle>',clipboard:'<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect>',clock:'<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>',"cloud-drizzle":'<line x1="8" y1="19" x2="8" y2="21"></line><line x1="8" y1="13" x2="8" y2="15"></line><line x1="16" y1="19" x2="16" y2="21"></line><line x1="16" y1="13" x2="16" y2="15"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="12" y1="15" x2="12" y2="17"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-lightning":'<path d="M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"></path><polyline points="13 11 9 17 15 17 11 23"></polyline>',"cloud-off":'<path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path><line x1="1" y1="1" x2="23" y2="23"></line>',"cloud-rain":'<line x1="16" y1="13" x2="16" y2="21"></line><line x1="8" y1="13" x2="8" y2="21"></line><line x1="12" y1="15" x2="12" y2="23"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-snow":'<path d="M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"></path><line x1="8" y1="16" x2="8.01" y2="16"></line><line x1="8" y1="20" x2="8.01" y2="20"></line><line x1="12" y1="18" x2="12.01" y2="18"></line><line x1="12" y1="22" x2="12.01" y2="22"></line><line x1="16" y1="16" x2="16.01" y2="16"></line><line x1="16" y1="20" x2="16.01" y2="20"></line>',cloud:'<path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path>',code:'<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>',codepen:'<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line>',codesandbox:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',coffee:'<path d="M18 8h1a4 4 0 0 1 0 8h-1"></path><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path><line x1="6" y1="1" x2="6" y2="4"></line><line x1="10" y1="1" x2="10" y2="4"></line><line x1="14" y1="1" x2="14" y2="4"></line>',columns:'<path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path>',command:'<path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path>',compass:'<circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon>',copy:'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>',"corner-down-left":'<polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path>',"corner-down-right":'<polyline points="15 10 20 15 15 20"></polyline><path d="M4 4v7a4 4 0 0 0 4 4h12"></path>',"corner-left-down":'<polyline points="14 15 9 20 4 15"></polyline><path d="M20 4h-7a4 4 0 0 0-4 4v12"></path>',"corner-left-up":'<polyline points="14 9 9 4 4 9"></polyline><path d="M20 20h-7a4 4 0 0 1-4-4V4"></path>',"corner-right-down":'<polyline points="10 15 15 20 20 15"></polyline><path d="M4 4h7a4 4 0 0 1 4 4v12"></path>',"corner-right-up":'<polyline points="10 9 15 4 20 9"></polyline><path d="M4 20h7a4 4 0 0 0 4-4V4"></path>',"corner-up-left":'<polyline points="9 14 4 9 9 4"></polyline><path d="M20 20v-7a4 4 0 0 0-4-4H4"></path>',"corner-up-right":'<polyline points="15 14 20 9 15 4"></polyline><path d="M4 20v-7a4 4 0 0 1 4-4h12"></path>',cpu:'<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line>',"credit-card":'<rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line>',crop:'<path d="M6.13 1L6 16a2 2 0 0 0 2 2h15"></path><path d="M1 6.13L16 6a2 2 0 0 1 2 2v15"></path>',crosshair:'<circle cx="12" cy="12" r="10"></circle><line x1="22" y1="12" x2="18" y2="12"></line><line x1="6" y1="12" x2="2" y2="12"></line><line x1="12" y1="6" x2="12" y2="2"></line><line x1="12" y1="22" x2="12" y2="18"></line>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path>',delete:'<path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path><line x1="18" y1="9" x2="12" y2="15"></line><line x1="12" y1="9" x2="18" y2="15"></line>',disc:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="3"></circle>',"divide-circle":'<line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line><circle cx="12" cy="12" r="10"></circle>',"divide-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line>',divide:'<circle cx="12" cy="6" r="2"></circle><line x1="5" y1="12" x2="19" y2="12"></line><circle cx="12" cy="18" r="2"></circle>',"dollar-sign":'<line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>',"download-cloud":'<polyline points="8 17 12 21 16 17"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line>',dribbble:'<circle cx="12" cy="12" r="10"></circle><path d="M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32"></path>',droplet:'<path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"></path>',"edit-2":'<path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path>',"edit-3":'<path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>',edit:'<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>',"external-link":'<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line>',"eye-off":'<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line>',eye:'<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>',facebook:'<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path>',"fast-forward":'<polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon>',feather:'<path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path><line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line>',figma:'<path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path><path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path><path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path><path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path><path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path>',"file-minus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="9" y1="15" x2="15" y2="15"></line>',"file-plus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line>',"file-text":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline>',file:'<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline>',film:'<rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line>',filter:'<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon>',flag:'<path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"></path><line x1="4" y1="22" x2="4" y2="15"></line>',"folder-minus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line>',"folder-plus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line>',folder:'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>',framer:'<path d="M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7"></path>',frown:'<circle cx="12" cy="12" r="10"></circle><path d="M16 16s-1.5-2-4-2-4 2-4 2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',gift:'<polyline points="20 12 20 22 4 22 4 12"></polyline><rect x="2" y="7" width="20" height="5"></rect><line x1="12" y1="22" x2="12" y2="7"></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path>',"git-branch":'<line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path>',"git-commit":'<circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line>',"git-merge":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M6 21V9a9 9 0 0 0 9 9"></path>',"git-pull-request":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line>',github:'<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>',gitlab:'<path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path>',globe:'<circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>',grid:'<rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect>',"hard-drive":'<line x1="22" y1="12" x2="2" y2="12"></line><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path><line x1="6" y1="16" x2="6.01" y2="16"></line><line x1="10" y1="16" x2="10.01" y2="16"></line>',hash:'<line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line>',headphones:'<path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"></path>',heart:'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>',"help-circle":'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>',hexagon:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path>',home:'<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline>',image:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline>',inbox:'<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>',info:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line>',instagram:'<rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line>',italic:'<line x1="19" y1="4" x2="10" y2="4"></line><line x1="14" y1="20" x2="5" y2="20"></line><line x1="15" y1="4" x2="9" y2="20"></line>',key:'<path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"></path>',layers:'<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline>',layout:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line>',"life-buoy":'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="4.93" y1="4.93" x2="9.17" y2="9.17"></line><line x1="14.83" y1="14.83" x2="19.07" y2="19.07"></line><line x1="14.83" y1="9.17" x2="19.07" y2="4.93"></line><line x1="14.83" y1="9.17" x2="18.36" y2="5.64"></line><line x1="4.93" y1="19.07" x2="9.17" y2="14.83"></line>',"link-2":'<path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>',linkedin:'<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle>',list:'<line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>',loader:'<line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line>',lock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>',"log-in":'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line>',"log-out":'<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line>',mail:'<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline>',"map-pin":'<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle>',map:'<polygon points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"></polygon><line x1="8" y1="2" x2="8" y2="18"></line><line x1="16" y1="6" x2="16" y2="22"></line>',"maximize-2":'<polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line>',maximize:'<path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>',meh:'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',menu:'<line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line>',"message-circle":'<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>',"message-square":'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>',"mic-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',mic:'<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',"minimize-2":'<polyline points="4 14 10 14 10 20"></polyline><polyline points="20 10 14 10 14 4"></polyline><line x1="14" y1="10" x2="21" y2="3"></line><line x1="3" y1="21" x2="10" y2="14"></line>',minimize:'<path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"></path>',"minus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="12" x2="16" y2="12"></line>',"minus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line>',minus:'<line x1="5" y1="12" x2="19" y2="12"></line>',monitor:'<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line>',moon:'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>',"more-horizontal":'<circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle>',"more-vertical":'<circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle>',"mouse-pointer":'<path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"></path><path d="M13 13l6 6"></path>',move:'<polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line>',music:'<path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle>',"navigation-2":'<polygon points="12 2 19 21 12 17 5 21 12 2"></polygon>',navigation:'<polygon points="3 11 22 2 13 21 11 13 3 11"></polygon>',octagon:'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon>',package:'<line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',paperclip:'<path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path>',"pause-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="10" y1="15" x2="10" y2="9"></line><line x1="14" y1="15" x2="14" y2="9"></line>',pause:'<rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect>',"pen-tool":'<path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle>',percent:'<line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle>',"phone-call":'<path d="M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-forwarded":'<polyline points="19 1 23 5 19 9"></polyline><line x1="15" y1="5" x2="23" y2="5"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-incoming":'<polyline points="16 2 16 8 22 8"></polyline><line x1="23" y1="1" x2="16" y2="8"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-missed":'<line x1="23" y1="1" x2="17" y2="7"></line><line x1="17" y1="1" x2="23" y2="7"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-off":'<path d="M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"></path><line x1="23" y1="1" x2="1" y2="23"></line>',"phone-outgoing":'<polyline points="23 7 23 1 17 1"></polyline><line x1="16" y1="8" x2="23" y2="1"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',phone:'<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"pie-chart":'<path d="M21.21 15.89A10 10 0 1 1 8 2.83"></path><path d="M22 12A10 10 0 0 0 12 2v10z"></path>',"play-circle":'<circle cx="12" cy="12" r="10"></circle><polygon points="10 8 16 12 10 16 10 8"></polygon>',play:'<polygon points="5 3 19 12 5 21 5 3"></polygon>',"plus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',"plus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',plus:'<line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line>',pocket:'<path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z"></path><polyline points="8 10 12 14 16 10"></polyline>',power:'<path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line>',printer:'<polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect>',radio:'<circle cx="12" cy="12" r="2"></circle><path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"></path>',"refresh-ccw":'<polyline points="1 4 1 10 7 10"></polyline><polyline points="23 20 23 14 17 14"></polyline><path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path>',"refresh-cw":'<polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path>',repeat:'<polyline points="17 1 21 5 17 9"></polyline><path d="M3 11V9a4 4 0 0 1 4-4h14"></path><polyline points="7 23 3 19 7 15"></polyline><path d="M21 13v2a4 4 0 0 1-4 4H3"></path>',rewind:'<polygon points="11 19 2 12 11 5 11 19"></polygon><polygon points="22 19 13 12 22 5 22 19"></polygon>',"rotate-ccw":'<polyline points="1 4 1 10 7 10"></polyline><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path>',"rotate-cw":'<polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path>',rss:'<path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle>',save:'<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline>',scissors:'<circle cx="6" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><line x1="20" y1="4" x2="8.12" y2="15.88"></line><line x1="14.47" y1="14.48" x2="20" y2="20"></line><line x1="8.12" y1="8.12" x2="12" y2="12"></line>',search:'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line>',send:'<line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>',server:'<rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line>',settings:'<circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>',"share-2":'<circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>',share:'<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line>',"shield-off":'<path d="M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18"></path><path d="M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38"></path><line x1="1" y1="1" x2="23" y2="23"></line>',shield:'<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>',"shopping-bag":'<path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path>',"shopping-cart":'<circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>',shuffle:'<polyline points="16 3 21 3 21 8"></polyline><line x1="4" y1="20" x2="21" y2="3"></line><polyline points="21 16 21 21 16 21"></polyline><line x1="15" y1="15" x2="21" y2="21"></line><line x1="4" y1="4" x2="9" y2="9"></line>',sidebar:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line>',"skip-back":'<polygon points="19 20 9 12 19 4 19 20"></polygon><line x1="5" y1="19" x2="5" y2="5"></line>',"skip-forward":'<polygon points="5 4 15 12 5 20 5 4"></polygon><line x1="19" y1="5" x2="19" y2="19"></line>',slack:'<path d="M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"></path><path d="M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path><path d="M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"></path><path d="M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"></path><path d="M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"></path><path d="M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path><path d="M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"></path><path d="M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"></path>',slash:'<circle cx="12" cy="12" r="10"></circle><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"></line>',sliders:'<line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line>',smartphone:'<rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',smile:'<circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',speaker:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><circle cx="12" cy="14" r="4"></circle><line x1="12" y1="6" x2="12.01" y2="6"></line>',square:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>',star:'<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>',"stop-circle":'<circle cx="12" cy="12" r="10"></circle><rect x="9" y="9" width="6" height="6"></rect>',sun:'<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>',sunrise:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="2" x2="12" y2="9"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="8 6 12 2 16 6"></polyline>',sunset:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="9" x2="12" y2="2"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="16 5 12 9 8 5"></polyline>',table:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"></path>',tablet:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',tag:'<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line>',target:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle>',terminal:'<polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line>',thermometer:'<path d="M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"></path>',"thumbs-down":'<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>',"thumbs-up":'<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>',"toggle-left":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="8" cy="12" r="3"></circle>',"toggle-right":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="16" cy="12" r="3"></circle>',tool:'<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>',"trash-2":'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line>',trash:'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>',trello:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect>',"trending-down":'<polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline>',"trending-up":'<polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline>',triangle:'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>',truck:'<rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle>',tv:'<rect x="2" y="7" width="20" height="15" rx="2" ry="2"></rect><polyline points="17 2 12 7 7 2"></polyline>',twitch:'<path d="M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7"></path>',twitter:'<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>',type:'<polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line>',umbrella:'<path d="M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"></path>',underline:'<path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path><line x1="4" y1="21" x2="20" y2="21"></line>',unlock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 9.9-1"></path>',"upload-cloud":'<polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line>',"user-check":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><polyline points="17 11 19 13 23 9"></polyline>',"user-minus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="23" y1="11" x2="17" y2="11"></line>',"user-plus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line>',"user-x":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="18" y1="8" x2="23" y2="13"></line><line x1="23" y1="8" x2="18" y2="13"></line>',user:'<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>',users:'<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path>',"video-off":'<path d="M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"></path><line x1="1" y1="1" x2="23" y2="23"></line>',video:'<polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>',voicemail:'<circle cx="5.5" cy="11.5" r="4.5"></circle><circle cx="18.5" cy="11.5" r="4.5"></circle><line x1="5.5" y1="16" x2="18.5" y2="16"></line>',"volume-1":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-2":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-x":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line>',volume:'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>',watch:'<circle cx="12" cy="12" r="7"></circle><polyline points="12 9 12 12 13.5 13.5"></polyline><path d="M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"></path>',"wifi-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wifi:'<path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wind:'<path d="M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2"></path>',"x-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line>',x:'<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>',youtube:'<path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"></path><polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon>',"zap-off":'<polyline points="12.41 6.75 13 2 10.57 4.92"></polyline><polyline points="18.57 12.91 21 10 15.66 10"></polyline><polyline points="8 8 3 14 12 14 11 22 16 16"></polyline><line x1="1" y1="1" x2="23" y2="23"></line>',zap:'<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>',"zoom-in":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line>',"zoom-out":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line>'}},
vendor: 908 bytes, lines 43-47
43"./node_modules/classnames/dedupe.js":function(e,t,r){var a,s;/*!
44  Copyright (c) 2016 Jed Watson.
45  Licensed under the MIT License (MIT), see
46  http://jedwatson.github.io/classnames
47*/(function(){var o=function(){function l(){}l.prototype=Object.create(null);function u(w,P){for(var O=P.length,j=0;j<O;++j)m(w,P[j])}var h={}.hasOwnProperty;function d(w,P){w[P]=!0}function f(w,P){for(var O in P)h.call(P,O)&&(w[O]=!!P[O])}var p=/\s+/;function v(w,P){for(var O=P.split(p),j=O.length,M=0;M<j;++M)w[O[M]]=!0}function m(w,P){if(P){var O=typeof P;O==="string"?v(w,P):Array.isArray(P)?u(w,P):O==="object"?f(w,P):O==="number"&&d(w,P)}}function x(){for(var w=arguments.length,P=Array(w),O=0;O<w;O++)P[O]=arguments[O];var j=new l;u(j,P);var M=[];for(var F in j)j[F]&&M.push(F);return M.join(" ")}return x}();typeof e<"u"&&e.exports?e.exports=o:(a=[],s=function(){return o}.apply(t,a),s!==void 0&&(e.exports=s))})()},
vendor: 245 bytes, line 47
47"./node_modules/core-js/es/array/from.js":function(e,t,r){r("./node_modules/core-js/modules/es.string.iterator.js"),r("./node_modules/core-js/modules/es.array.from.js");var a=r("./node_modules/core-js/internals/path.js");e.exports=a.Array.from},
vendor: 168 bytes, line 47
47"./node_modules/core-js/internals/a-function.js":function(e,t){e.exports=function(r){if(typeof r!="function")throw TypeError(String(r)+" is not a function");return r}},
vendor: 210 bytes, line 47
47"./node_modules/core-js/internals/an-object.js":function(e,t,r){var a=r("./node_modules/core-js/internals/is-object.js");e.exports=function(s){if(!a(s))throw TypeError(String(s)+" is not an object");return s}},
vendor: 886 bytes, line 47
47"./node_modules/core-js/internals/array-from.js":function(e,t,r){var a=r("./node_modules/core-js/internals/bind-context.js"),s=r("./node_modules/core-js/internals/to-object.js"),o=r("./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),l=r("./node_modules/core-js/internals/is-array-iterator-method.js"),u=r("./node_modules/core-js/internals/to-length.js"),h=r("./node_modules/core-js/internals/create-property.js"),d=r("./node_modules/core-js/internals/get-iterator-method.js");e.exports=function(p){var v=s(p),m=typeof this=="function"?this:Array,x=arguments.length,w=x>1?arguments[1]:void 0,P=w!==void 0,O=0,j=d(v),M,F,g,L;if(P&&(w=a(w,x>2?arguments[2]:void 0,2)),j!=null&&!(m==Array&&l(j)))for(L=j.call(v),F=new m;!(g=L.next()).done;O++)h(F,O,P?o(L,w,[g.value,O],!0):g.value);else for(M=u(v.length),F=new m(M);M>O;O++)h(F,O,P?w(v[O],O):v[O]);return F.length=O,F}},
vendor: 451 bytes, line 47
47"./node_modules/core-js/internals/array-includes.js":function(e,t,r){var a=r("./node_modules/core-js/internals/to-indexed-object.js"),s=r("./node_modules/core-js/internals/to-length.js"),o=r("./node_modules/core-js/internals/to-absolute-index.js");e.exports=function(l){return function(u,h,d){var f=a(u),p=s(f.length),v=o(d,p),m;if(l&&h!=h){for(;p>v;)if(m=f[v++],m!=m)return!0}else for(;p>v;v++)if((l||v in f)&&f[v]===h)return l||v||0;return!l&&-1}}},
vendor: 431 bytes, line 47
47"./node_modules/core-js/internals/bind-context.js":function(e,t,r){var a=r("./node_modules/core-js/internals/a-function.js");e.exports=function(s,o,l){if(a(s),o===void 0)return s;switch(l){case 0:return function(){return s.call(o)};case 1:return function(u){return s.call(o,u)};case 2:return function(u,h){return s.call(o,u,h)};case 3:return function(u,h,d){return s.call(o,u,h,d)}}return function(){return s.apply(o,arguments)}}},
vendor: 266 bytes, line 47
47"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(e,t,r){var a=r("./node_modules/core-js/internals/an-object.js");e.exports=function(s,o,l,u){try{return u?o(a(l)[0],l[1]):o(l)}catch(d){var h=s.return;throw h!==void 0&&a(h.call(s)),d}}},
vendor: 465 bytes, line 47
47"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(e,t,r){var a=r("./node_modules/core-js/internals/well-known-symbol.js"),s=a("iterator"),o=!1;try{var l=0,u={next:function(){return{done:!!l++}},return:function(){o=!0}};u[s]=function(){return this},Array.from(u,function(){throw 2})}catch{}e.exports=function(h,d){if(!d&&!o)return!1;var f=!1;try{var p={};p[s]=function(){return{next:function(){return{done:f=!0}}}},h(p)}catch{}return f}},
vendor: 135 bytes, line 47
47"./node_modules/core-js/internals/classof-raw.js":function(e,t){var r={}.toString;e.exports=function(a){return r.call(a).slice(8,-1)}},
vendor: 479 bytes, line 47
47"./node_modules/core-js/internals/classof.js":function(e,t,r){var a=r("./node_modules/core-js/internals/classof-raw.js"),s=r("./node_modules/core-js/internals/well-known-symbol.js"),o=s("toStringTag"),l=a(function(){return arguments}())=="Arguments",u=function(h,d){try{return h[d]}catch{}};e.exports=function(h){var d,f,p;return h===void 0?"Undefined":h===null?"Null":typeof(f=u(d=Object(h),o))=="string"?f:l?a(d):(p=a(d))=="Object"&&typeof d.callee=="function"?"Arguments":p}},
vendor: 436 bytes, line 47
47"./node_modules/core-js/internals/copy-constructor-properties.js":function(e,t,r){var a=r("./node_modules/core-js/internals/has.js"),s=r("./node_modules/core-js/internals/own-keys.js"),o=r("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),l=r("./node_modules/core-js/internals/object-define-property.js");e.exports=function(u,h){for(var d=s(h),f=l.f,p=o.f,v=0;v<d.length;v++){var m=d[v];a(u,m)||f(u,m,p(h,m))}}},
vendor: 252 bytes, line 47
47"./node_modules/core-js/internals/correct-prototype-getter.js":function(e,t,r){var a=r("./node_modules/core-js/internals/fails.js");e.exports=!a(function(){function s(){}return s.prototype.constructor=null,Object.getPrototypeOf(new s)!==s.prototype})},
vendor: 537 bytes, line 47
47"./node_modules/core-js/internals/create-iterator-constructor.js":function(e,t,r){var a=r("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,s=r("./node_modules/core-js/internals/object-create.js"),o=r("./node_modules/core-js/internals/create-property-descriptor.js"),l=r("./node_modules/core-js/internals/set-to-string-tag.js"),u=r("./node_modules/core-js/internals/iterators.js"),h=function(){return this};e.exports=function(d,f,p){var v=f+" Iterator";return d.prototype=s(a,{next:o(1,p)}),l(d,v,!1,!0),u[v]=h,d}},
vendor: 175 bytes, line 47
47"./node_modules/core-js/internals/create-property-descriptor.js":function(e,t){e.exports=function(r,a){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:a}}},
vendor: 335 bytes, line 47
47"./node_modules/core-js/internals/create-property.js":function(e,t,r){var a=r("./node_modules/core-js/internals/to-primitive.js"),s=r("./node_modules/core-js/internals/object-define-property.js"),o=r("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=function(l,u,h){var d=a(u);d in l?s.f(l,d,o(0,h)):l[d]=h}},
vendor: 1,663 bytes, line 47
47"./node_modules/core-js/internals/define-iterator.js":function(e,t,r){var a=r("./node_modules/core-js/internals/export.js"),s=r("./node_modules/core-js/internals/create-iterator-constructor.js"),o=r("./node_modules/core-js/internals/object-get-prototype-of.js"),l=r("./node_modules/core-js/internals/object-set-prototype-of.js"),u=r("./node_modules/core-js/internals/set-to-string-tag.js"),h=r("./node_modules/core-js/internals/hide.js"),d=r("./node_modules/core-js/internals/redefine.js"),f=r("./node_modules/core-js/internals/well-known-symbol.js"),p=r("./node_modules/core-js/internals/is-pure.js"),v=r("./node_modules/core-js/internals/iterators.js"),m=r("./node_modules/core-js/internals/iterators-core.js"),x=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,P=f("iterator"),O="keys",j="values",M="entries",F=function(){return this};e.exports=function(g,L,N,ye,H,z,Z){s(N,L,ye);var _e=function(E){if(E===H&&A)return A;if(!w&&E in I)return I[E];switch(E){case O:return function(){return new N(this,E)};case j:return function(){return new N(this,E)};case M:return function(){return new N(this,E)}}return function(){return new N(this)}},ve=L+" Iterator",$=!1,I=g.prototype,te=I[P]||I["@@iterator"]||H&&I[H],A=!w&&te||_e(H),Q=L=="Array"&&I.entries||te,he,K,le;if(Q&&(he=o(Q.call(new g)),x!==Object.prototype&&he.next&&(!p&&o(he)!==x&&(l?l(he,x):typeof he[P]!="function"&&h(he,P,F)),u(he,ve,!0,!0),p&&(v[ve]=F))),H==j&&te&&te.name!==j&&($=!0,A=function(){return te.call(this)}),(!p||Z)&&I[P]!==A&&h(I,P,A),v[L]=A,H)if(K={values:_e(j),keys:z?A:_e(O),entries:_e(M)},Z)for(le in K)(w||$||!(le in I))&&d(I,le,K[le]);else a({target:L,proto:!0,forced:w||$},K);return K}},
vendor: 215 bytes, line 47
47"./node_modules/core-js/internals/descriptors.js":function(e,t,r){var a=r("./node_modules/core-js/internals/fails.js");e.exports=!a(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},
vendor: 280 bytes, line 47
47"./node_modules/core-js/internals/document-create-element.js":function(e,t,r){var a=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/is-object.js"),o=a.document,l=s(o)&&s(o.createElement);e.exports=function(u){return l?o.createElement(u):{}}},
vendor: 187 bytes, line 47
47"./node_modules/core-js/internals/enum-bug-keys.js":function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},
vendor: 801 bytes, line 47
47"./node_modules/core-js/internals/export.js":function(e,t,r){var a=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,o=r("./node_modules/core-js/internals/hide.js"),l=r("./node_modules/core-js/internals/redefine.js"),u=r("./node_modules/core-js/internals/set-global.js"),h=r("./node_modules/core-js/internals/copy-constructor-properties.js"),d=r("./node_modules/core-js/internals/is-forced.js");e.exports=function(f,p){var v=f.target,m=f.global,x=f.stat,w,P,O,j,M,F;if(m?P=a:x?P=a[v]||u(v,{}):P=(a[v]||{}).prototype,P)for(O in p){if(M=p[O],f.noTargetGet?(F=s(P,O),j=F&&F.value):j=P[O],w=d(m?O:v+(x?".":"#")+O,f.forced),!w&&j!==void 0){if(typeof M==typeof j)continue;h(M,j)}(f.sham||j&&j.sham)&&o(M,"sham",!0),l(P,O,M,f)}}},
vendor: 114 bytes, line 47
47"./node_modules/core-js/internals/fails.js":function(e,t){e.exports=function(r){try{return!!r()}catch{return!0}}},
vendor: 187 bytes, line 47
47"./node_modules/core-js/internals/function-to-string.js":function(e,t,r){var a=r("./node_modules/core-js/internals/shared.js");e.exports=a("native-function-to-string",Function.toString)},
vendor: 332 bytes, line 47
47"./node_modules/core-js/internals/get-iterator-method.js":function(e,t,r){var a=r("./node_modules/core-js/internals/classof.js"),s=r("./node_modules/core-js/internals/iterators.js"),o=r("./node_modules/core-js/internals/well-known-symbol.js"),l=o("iterator");e.exports=function(u){if(u!=null)return u[l]||u["@@iterator"]||s[a(u)]}},
vendor: 336 bytes, line 47
47"./node_modules/core-js/internals/global.js":function(e,t,r){(function(a){var s="object",o=function(l){return l&&l.Math==Math&&l};e.exports=o(typeof globalThis==s&&globalThis)||o(typeof window==s&&window)||o(typeof self==s&&self)||o(typeof a==s&&a)||Function("return this")()}).call(this,r("./node_modules/webpack/buildin/global.js"))},
vendor: 125 bytes, line 47
47"./node_modules/core-js/internals/has.js":function(e,t){var r={}.hasOwnProperty;e.exports=function(a,s){return r.call(a,s)}},
vendor: 78 bytes, line 47
47"./node_modules/core-js/internals/hidden-keys.js":function(e,t){e.exports={}},
vendor: 340 bytes, line 47
47"./node_modules/core-js/internals/hide.js":function(e,t,r){var a=r("./node_modules/core-js/internals/descriptors.js"),s=r("./node_modules/core-js/internals/object-define-property.js"),o=r("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=a?function(l,u,h){return s.f(l,u,o(1,h))}:function(l,u,h){return l[u]=h,l}},
vendor: 158 bytes, line 47
47"./node_modules/core-js/internals/html.js":function(e,t,r){var a=r("./node_modules/core-js/internals/global.js"),s=a.document;e.exports=s&&s.documentElement},
vendor: 350 bytes, line 47
47"./node_modules/core-js/internals/ie8-dom-define.js":function(e,t,r){var a=r("./node_modules/core-js/internals/descriptors.js"),s=r("./node_modules/core-js/internals/fails.js"),o=r("./node_modules/core-js/internals/document-create-element.js");e.exports=!a&&!s(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!=7})},
vendor: 322 bytes, line 47
47"./node_modules/core-js/internals/indexed-object.js":function(e,t,r){var a=r("./node_modules/core-js/internals/fails.js"),s=r("./node_modules/core-js/internals/classof-raw.js"),o="".split;e.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(l){return s(l)=="String"?o.call(l,""):Object(l)}:Object},
vendor: 970 bytes, line 47
47"./node_modules/core-js/internals/internal-state.js":function(e,t,r){var a=r("./node_modules/core-js/internals/native-weak-map.js"),s=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/is-object.js"),l=r("./node_modules/core-js/internals/hide.js"),u=r("./node_modules/core-js/internals/has.js"),h=r("./node_modules/core-js/internals/shared-key.js"),d=r("./node_modules/core-js/internals/hidden-keys.js"),f=s.WeakMap,p,v,m,x=function(g){return m(g)?v(g):p(g,{})},w=function(g){return function(L){var N;if(!o(L)||(N=v(L)).type!==g)throw TypeError("Incompatible receiver, "+g+" required");return N}};if(a){var P=new f,O=P.get,j=P.has,M=P.set;p=function(g,L){return M.call(P,g,L),L},v=function(g){return O.call(P,g)||{}},m=function(g){return j.call(P,g)}}else{var F=h("state");d[F]=!0,p=function(g,L){return l(g,F,L),L},v=function(g){return u(g,F)?g[F]:{}},m=function(g){return u(g,F)}}e.exports={set:p,get:v,has:m,enforce:x,getterFor:w}},
vendor: 298 bytes, line 47
47"./node_modules/core-js/internals/is-array-iterator-method.js":function(e,t,r){var a=r("./node_modules/core-js/internals/well-known-symbol.js"),s=r("./node_modules/core-js/internals/iterators.js"),o=a("iterator"),l=Array.prototype;e.exports=function(u){return u!==void 0&&(s.Array===u||l[o]===u)}},
vendor: 351 bytes, line 47
47"./node_modules/core-js/internals/is-forced.js":function(e,t,r){var a=r("./node_modules/core-js/internals/fails.js"),s=/#|\.prototype\./,o=function(f,p){var v=u[l(f)];return v==d?!0:v==h?!1:typeof p=="function"?a(p):!!p},l=o.normalize=function(f){return String(f).replace(s,".").toLowerCase()},u=o.data={},h=o.NATIVE="N",d=o.POLYFILL="P";e.exports=o},
vendor: 142 bytes, line 47
47"./node_modules/core-js/internals/is-object.js":function(e,t){e.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},
vendor: 74 bytes, line 47
47"./node_modules/core-js/internals/is-pure.js":function(e,t){e.exports=!1},
vendor: 575 bytes, line 47
47"./node_modules/core-js/internals/iterators-core.js":function(e,t,r){var a=r("./node_modules/core-js/internals/object-get-prototype-of.js"),s=r("./node_modules/core-js/internals/hide.js"),o=r("./node_modules/core-js/internals/has.js"),l=r("./node_modules/core-js/internals/well-known-symbol.js"),u=r("./node_modules/core-js/internals/is-pure.js"),h=l("iterator"),d=!1,f=function(){return this},p,v,m;[].keys&&(m=[].keys(),"next"in m?(v=a(a(m)),v!==Object.prototype&&(p=v)):d=!0),p==null&&(p={}),!u&&!o(p,h)&&s(p,h,f),e.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:d}},
vendor: 76 bytes, line 47
47"./node_modules/core-js/internals/iterators.js":function(e,t){e.exports={}},
vendor: 204 bytes, line 47
47"./node_modules/core-js/internals/native-symbol.js":function(e,t,r){var a=r("./node_modules/core-js/internals/fails.js");e.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},
vendor: 261 bytes, line 47
47"./node_modules/core-js/internals/native-weak-map.js":function(e,t,r){var a=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/function-to-string.js"),o=a.WeakMap;e.exports=typeof o=="function"&&/native code/.test(s.call(o))},
vendor: 927 bytes, line 47
47"./node_modules/core-js/internals/object-create.js":function(e,t,r){var a=r("./node_modules/core-js/internals/an-object.js"),s=r("./node_modules/core-js/internals/object-define-properties.js"),o=r("./node_modules/core-js/internals/enum-bug-keys.js"),l=r("./node_modules/core-js/internals/hidden-keys.js"),u=r("./node_modules/core-js/internals/html.js"),h=r("./node_modules/core-js/internals/document-create-element.js"),d=r("./node_modules/core-js/internals/shared-key.js"),f=d("IE_PROTO"),p="prototype",v=function(){},m=function(){var x=h("iframe"),w=o.length,P="<",O="script",j=">",M="java"+O+":",F;for(x.style.display="none",u.appendChild(x),x.src=String(M),F=x.contentWindow.document,F.open(),F.write(P+O+j+"document.F=Object"+P+"/"+O+j),F.close(),m=F.F;w--;)delete m[p][o[w]];return m()};e.exports=Object.create||function(w,P){var O;return w!==null?(v[p]=a(w),O=new v,v[p]=null,O[f]=w):O=m(),P===void 0?O:s(O,P)},l[f]=!0},
vendor: 436 bytes, line 47
47"./node_modules/core-js/internals/object-define-properties.js":function(e,t,r){var a=r("./node_modules/core-js/internals/descriptors.js"),s=r("./node_modules/core-js/internals/object-define-property.js"),o=r("./node_modules/core-js/internals/an-object.js"),l=r("./node_modules/core-js/internals/object-keys.js");e.exports=a?Object.defineProperties:function(h,d){o(h);for(var f=l(d),p=f.length,v=0,m;p>v;)s.f(h,m=f[v++],d[m]);return h}},
vendor: 508 bytes, line 47
47"./node_modules/core-js/internals/object-define-property.js":function(e,t,r){var a=r("./node_modules/core-js/internals/descriptors.js"),s=r("./node_modules/core-js/internals/ie8-dom-define.js"),o=r("./node_modules/core-js/internals/an-object.js"),l=r("./node_modules/core-js/internals/to-primitive.js"),u=Object.defineProperty;t.f=a?u:function(d,f,p){if(o(d),f=l(f,!0),o(p),s)try{return u(d,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(d[f]=p.value),d}},
vendor: 658 bytes, line 47
47"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,t,r){var a=r("./node_modules/core-js/internals/descriptors.js"),s=r("./node_modules/core-js/internals/object-property-is-enumerable.js"),o=r("./node_modules/core-js/internals/create-property-descriptor.js"),l=r("./node_modules/core-js/internals/to-indexed-object.js"),u=r("./node_modules/core-js/internals/to-primitive.js"),h=r("./node_modules/core-js/internals/has.js"),d=r("./node_modules/core-js/internals/ie8-dom-define.js"),f=Object.getOwnPropertyDescriptor;t.f=a?f:function(v,m){if(v=l(v),m=u(m,!0),d)try{return f(v,m)}catch{}if(h(v,m))return o(!s.f.call(v,m),v[m])}},
vendor: 302 bytes, line 47
47"./node_modules/core-js/internals/object-get-own-property-names.js":function(e,t,r){var a=r("./node_modules/core-js/internals/object-keys-internal.js"),s=r("./node_modules/core-js/internals/enum-bug-keys.js"),o=s.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(u){return a(u,o)}},
vendor: 118 bytes, line 47
47"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,t){t.f=Object.getOwnPropertySymbols},
vendor: 525 bytes, line 47
47"./node_modules/core-js/internals/object-get-prototype-of.js":function(e,t,r){var a=r("./node_modules/core-js/internals/has.js"),s=r("./node_modules/core-js/internals/to-object.js"),o=r("./node_modules/core-js/internals/shared-key.js"),l=r("./node_modules/core-js/internals/correct-prototype-getter.js"),u=o("IE_PROTO"),h=Object.prototype;e.exports=l?Object.getPrototypeOf:function(d){return d=s(d),a(d,u)?d[u]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?h:null}},
vendor: 456 bytes, line 47
47"./node_modules/core-js/internals/object-keys-internal.js":function(e,t,r){var a=r("./node_modules/core-js/internals/has.js"),s=r("./node_modules/core-js/internals/to-indexed-object.js"),o=r("./node_modules/core-js/internals/array-includes.js"),l=r("./node_modules/core-js/internals/hidden-keys.js"),u=o(!1);e.exports=function(h,d){var f=s(h),p=0,v=[],m;for(m in f)!a(l,m)&&a(f,m)&&v.push(m);for(;d.length>p;)a(f,m=d[p++])&&(~u(v,m)||v.push(m));return v}},
vendor: 242 bytes, line 47
47"./node_modules/core-js/internals/object-keys.js":function(e,t,r){var a=r("./node_modules/core-js/internals/object-keys-internal.js"),s=r("./node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(l){return a(l,s)}},
vendor: 232 bytes, line 47
47"./node_modules/core-js/internals/object-property-is-enumerable.js":function(e,t,r){var a={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,o=s&&!a.call({1:2},1);t.f=o?function(u){var h=s(this,u);return!!h&&h.enumerable}:a},
vendor: 429 bytes, line 47
47"./node_modules/core-js/internals/object-set-prototype-of.js":function(e,t,r){var a=r("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s=!1,o={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(o,[]),s=o instanceof Array}catch{}return function(h,d){return a(h,d),s?l.call(h,d):h.__proto__=d,h}}():void 0)},
vendor: 416 bytes, line 47
47"./node_modules/core-js/internals/own-keys.js":function(e,t,r){var a=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/object-get-own-property-names.js"),o=r("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=r("./node_modules/core-js/internals/an-object.js"),u=a.Reflect;e.exports=u&&u.ownKeys||function(d){var f=s.f(l(d)),p=o.f;return p?f.concat(p(d)):f}},
vendor: 118 bytes, line 47
47"./node_modules/core-js/internals/path.js":function(e,t,r){e.exports=r("./node_modules/core-js/internals/global.js")},
vendor: 941 bytes, line 47
47"./node_modules/core-js/internals/redefine.js":function(e,t,r){var a=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/shared.js"),o=r("./node_modules/core-js/internals/hide.js"),l=r("./node_modules/core-js/internals/has.js"),u=r("./node_modules/core-js/internals/set-global.js"),h=r("./node_modules/core-js/internals/function-to-string.js"),d=r("./node_modules/core-js/internals/internal-state.js"),f=d.get,p=d.enforce,v=String(h).split("toString");s("inspectSource",function(m){return h.call(m)}),(e.exports=function(m,x,w,P){var O=P?!!P.unsafe:!1,j=P?!!P.enumerable:!1,M=P?!!P.noTargetGet:!1;if(typeof w=="function"&&(typeof x=="string"&&!l(w,"name")&&o(w,"name",x),p(w).source=v.join(typeof x=="string"?x:"")),m===a){j?m[x]=w:u(x,w);return}else O?!M&&m[x]&&(j=!0):delete m[x];j?m[x]=w:o(m,x,w)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||h.call(this)})},
vendor: 164 bytes, line 47
47"./node_modules/core-js/internals/require-object-coercible.js":function(e,t){e.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}},
vendor: 228 bytes, line 47
47"./node_modules/core-js/internals/set-global.js":function(e,t,r){var a=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/hide.js");e.exports=function(o,l){try{s(a,o,l)}catch{a[o]=l}return l}},
vendor: 360 bytes, line 47
47"./node_modules/core-js/internals/set-to-string-tag.js":function(e,t,r){var a=r("./node_modules/core-js/internals/object-define-property.js").f,s=r("./node_modules/core-js/internals/has.js"),o=r("./node_modules/core-js/internals/well-known-symbol.js"),l=o("toStringTag");e.exports=function(u,h,d){u&&!s(u=d?u:u.prototype,l)&&a(u,l,{configurable:!0,value:h})}},
vendor: 227 bytes, line 47
47"./node_modules/core-js/internals/shared-key.js":function(e,t,r){var a=r("./node_modules/core-js/internals/shared.js"),s=r("./node_modules/core-js/internals/uid.js"),o=a("keys");e.exports=function(l){return o[l]||(o[l]=s(l))}},
vendor: 435 bytes, line 47
47"./node_modules/core-js/internals/shared.js":function(e,t,r){var a=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/set-global.js"),o=r("./node_modules/core-js/internals/is-pure.js"),l="__core-js_shared__",u=a[l]||s(l,{});(e.exports=function(h,d){return u[h]||(u[h]=d!==void 0?d:{})})("versions",[]).push({version:"3.1.3",mode:o?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},
vendor: 435 bytes, line 47
47"./node_modules/core-js/internals/string-at.js":function(e,t,r){var a=r("./node_modules/core-js/internals/to-integer.js"),s=r("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(o,l,u){var h=String(s(o)),d=a(l),f=h.length,p,v;return d<0||d>=f?u?"":void 0:(p=h.charCodeAt(d),p<55296||p>56319||d+1===f||(v=h.charCodeAt(d+1))<56320||v>57343?u?h.charAt(d):p:u?h.slice(d,d+2):(p-55296<<10)+(v-56320)+65536)}},
vendor: 216 bytes, line 47
47"./node_modules/core-js/internals/to-absolute-index.js":function(e,t,r){var a=r("./node_modules/core-js/internals/to-integer.js"),s=Math.max,o=Math.min;e.exports=function(l,u){var h=a(l);return h<0?s(h+u,0):o(h,u)}},
vendor: 241 bytes, line 47
47"./node_modules/core-js/internals/to-indexed-object.js":function(e,t,r){var a=r("./node_modules/core-js/internals/indexed-object.js"),s=r("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(o){return a(s(o))}},
vendor: 150 bytes, line 47
47"./node_modules/core-js/internals/to-integer.js":function(e,t){var r=Math.ceil,a=Math.floor;e.exports=function(s){return isNaN(s=+s)?0:(s>0?a:r)(s)}},
vendor: 195 bytes, line 47
47"./node_modules/core-js/internals/to-length.js":function(e,t,r){var a=r("./node_modules/core-js/internals/to-integer.js"),s=Math.min;e.exports=function(o){return o>0?s(a(o),9007199254740991):0}},
vendor: 180 bytes, line 47
47"./node_modules/core-js/internals/to-object.js":function(e,t,r){var a=r("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(s){return Object(a(s))}},
vendor: 405 bytes, line 47
47"./node_modules/core-js/internals/to-primitive.js":function(e,t,r){var a=r("./node_modules/core-js/internals/is-object.js");e.exports=function(s,o){if(!a(s))return s;var l,u;if(o&&typeof(l=s.toString)=="function"&&!a(u=l.call(s))||typeof(l=s.valueOf)=="function"&&!a(u=l.call(s))||!o&&typeof(l=s.toString)=="function"&&!a(u=l.call(s)))return u;throw TypeError("Can't convert object to primitive value")}},
vendor: 170 bytes, line 47
47"./node_modules/core-js/internals/uid.js":function(e,t){var r=0,a=Math.random();e.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++r+a).toString(36))}},
vendor: 308 bytes, line 47
47"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(e,t,r){var a=r("./node_modules/core-js/internals/is-object.js"),s=r("./node_modules/core-js/internals/an-object.js");e.exports=function(o,l){if(s(o),!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype")}},
vendor: 376 bytes, line 47
47"./node_modules/core-js/internals/well-known-symbol.js":function(e,t,r){var a=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/shared.js"),o=r("./node_modules/core-js/internals/uid.js"),l=r("./node_modules/core-js/internals/native-symbol.js"),u=a.Symbol,h=s("wks");e.exports=function(d){return h[d]||(h[d]=l&&u[d]||(l?u:o)("Symbol."+d))}},
vendor: 328 bytes, line 47
47"./node_modules/core-js/modules/es.array.from.js":function(e,t,r){var a=r("./node_modules/core-js/internals/export.js"),s=r("./node_modules/core-js/internals/array-from.js"),o=r("./node_modules/core-js/internals/check-correctness-of-iteration.js"),l=!o(function(u){Array.from(u)});a({target:"Array",stat:!0,forced:l},{from:s})},
vendor: 506 bytes, line 47
47"./node_modules/core-js/modules/es.string.iterator.js":function(e,t,r){var a=r("./node_modules/core-js/internals/string-at.js"),s=r("./node_modules/core-js/internals/internal-state.js"),o=r("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",u=s.set,h=s.getterFor(l);o(String,"String",function(d){u(this,{type:l,string:String(d),index:0})},function(){var f=h(this),p=f.string,v=f.index,m;return v>=p.length?{value:void 0,done:!0}:(m=a(p,v,!0),f.index+=m.length,{value:m,done:!1})})},
vendor: 199 bytes, line 47
47"./node_modules/webpack/buildin/global.js":function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(r=window)}e.exports=r},
47"./src/default-attrs.json":function(e){e.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},
vendor: 1,317 bytes, line 47
47"./src/icon.js":function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(m){for(var x=1;x<arguments.length;x++){var w=arguments[x];for(var P in w)Object.prototype.hasOwnProperty.call(w,P)&&(m[P]=w[P])}return m},s=function(){function m(x,w){for(var P=0;P<w.length;P++){var O=w[P];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(x,O.key,O)}}return function(x,w,P){return w&&m(x.prototype,w),P&&m(x,P),x}}(),o=r("./node_modules/classnames/dedupe.js"),l=d(o),u=r("./src/default-attrs.json"),h=d(u);function d(m){return m&&m.__esModule?m:{default:m}}function f(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")}var p=function(){function m(x,w){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];f(this,m),this.name=x,this.contents=w,this.tags=P,this.attrs=a({},h.default,{class:"feather feather-"+x})}return s(m,[{key:"toSvg",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=a({},this.attrs,w,{class:(0,l.default)(this.attrs.class,w.class)});return"<svg "+v(P)+">"+this.contents+"</svg>"}},{key:"toString",value:function(){return this.contents}}]),m}();function v(m){return Object.keys(m).map(function(x){return x+'="'+m[x]+'"'}).join(" ")}t.default=p},
47"./src/icons.js":function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var a=r("./src/icon.js"),s=d(a),o=r("./dist/icons.json"),l=d(o),u=r("./src/tags.json"),h=d(u);function d(f){return f&&f.__esModule?f:{default:f}}t.default=Object.keys(l.default).map(function(f){return new s.default(f,l.default[f],h.default[f])}).reduce(function(f,p){return f[p.name]=p,f},{})},
47"./src/index.js":function(e,t,r){var a=r("./src/icons.js"),s=d(a),o=r("./src/to-svg.js"),l=d(o),u=r("./src/replace.js"),h=d(u);function d(f){return f&&f.__esModule?f:{default:f}}e.exports={icons:s.default,toSvg:l.default,replace:h.default}},
vendor: 1,084 bytes, line 47
47"./src/replace.js":function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(v){for(var m=1;m<arguments.length;m++){var x=arguments[m];for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(v[w]=x[w])}return v},s=r("./node_modules/classnames/dedupe.js"),o=h(s),l=r("./src/icons.js"),u=h(l);function h(v){return v&&v.__esModule?v:{default:v}}function d(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var m=document.querySelectorAll("[data-feather]");Array.from(m).forEach(function(x){return f(x,v)})}function f(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=p(v),w=x["data-feather"];delete x["data-feather"];var P=u.default[w].toSvg(a({},m,x,{class:(0,o.default)(m.class,x.class)})),O=new DOMParser().parseFromString(P,"image/svg+xml"),j=O.querySelector("svg");v.parentNode.replaceChild(j,v)}function p(v){return Array.from(v.attributes).reduce(function(m,x){return m[x.name]=x.value,m},{})}t.default=d},
47"./src/tags.json":function(e){e
vendor: 7,761 bytes, line 47
47.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-bouy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(
47e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var a=r("./src/icons.js"),s=o(a);function o(u){return u&&u.__esModule?u:{default:u}}function l(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!u)throw new Error("The required `key` (icon name) parameter is missing.");if(!s.default[u])throw new Error("No icon matching '"+u+"'. See the complete list of icons at https://feathericons.com");return s.default[u].toSvg(h)}t.default=l}
47,0:function(e,t,r){r("./node_modules/core-js/es/array/from.js"),e.exports=r("./src/index.js")}})})})(cg);var su=cg.exports;const rP=Fp(su),nP=Em({__proto__:null,default:rP},[su]);/*! vue-feather v2.0.0 | (c) 2018-present Chen Fengyuan | MIT */var sp=rn({name:"VueFeather",props:{animation:{type:String,default:void 0},animationSpeed:{type:String,default:void 0},fill:{type:String,default:"none"},size:{type:[Number,String],default:24},stroke:{type:String,default:"currentColor"},strokeLinecap:{type:String,default:"round"},strokeLinejoin:{type:String,default:"round"},strokeWidth:{type:[Number,String],default:2},tag:{type:String,default:"i"},type:{type:String,default:"feather",validator(n){if(!nP)throw new Error("The Feather icons is required.");if(!su.icons[n])throw new Error(`"${n}" is not an available icon type.`);return!0}}},computed:{isRemSize(){return typeof this.size=="string"&&this.size.endsWith("rem")}},render(){const{animation:n,animationSpeed:i,isRemSize:e,size:t,type:r}=this,a=su.icons[r];return Sf(this.tag,{...this.$attrs,"data-name":r,"data-tags":a.tags,"data-type":r,class:{"vue-feather":!0,[`vue-feather--${r}`]:r,[`vue-feather--${n}`]:n,[`vue-feather--${i}`]:i},style:e?{height:t,width:t}:void 0},[Sf("svg",{...a.attrs,fill:this.fill,height:e?void 0:t,stroke:this.stroke,"stroke-linecap":this.strokeLinecap,"stroke-linejoin":this.strokeLinejoin,"stroke-width":this.strokeWidth,width:e?void 0:t,class:[a.attrs.class,"vue-feather__content"],innerHTML:a.contents})])}});function aP(n,i){i===void 0&&(i={});var e=i.insertAt;if(!(!n||typeof document>"u")){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n))}}var sP="@keyframes vue-feather--spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.vue-feather{display:inline-block;overflow:hidden}.vue-feather--spin{animation:vue-feather--spin 2s linear infinite}.vue-feather--pulse{animation:vue-feather--spin 2s steps(8) infinite}.vue-feather--slow{animation-duration:3s}.vue-feather--fast{animation-duration:1s}.vue-feather__content{display:block;height:inherit;width:inherit}";aP(sP);function tn(n){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},tn(n)}function ut(n){if(n===null||n===!0||n===!1)return NaN;var i=Number(n);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function tt(n,i){if(i.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+i.length+" present")}function ct(n){tt(1,arguments);var i=Object.prototype.toString.call(n);return n instanceof Date||tn(n)==="object"&&i==="[object Date]"?new Date(n.getTime()):typeof n=="number"||i==="[object Number]"?new Date(n):((typeof n=="string"||i==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ta(n,i){tt(2,arguments);var e=ct(n),t=ut(i);return isNaN(t)?new Date(NaN):(t&&e.setDate(e.getDate()+t),e)}function Fn(n,i){tt(2,arguments);var e=ct(n),t=ut(i);if(isNaN(t))return new Date(NaN);if(!t)return e;var r=e.getDate(),a=new Date(e.getTime());a.setMonth(e.getMonth()+t+1,0);var s=a.getDate();return r>=s?a:(e.setFullYear(a.getFullYear(),a.getMonth(),r),e)}function fg(n,i){if(tt(2,arguments),!i||tn(i)!=="object")return new Date(NaN);var e=i.years?ut(i.years):0,t=i.months?ut(i.months):0,r=i.weeks?ut(i.weeks):0,a=i.days?ut(i.days):0,s=i.hours?ut(i.hours):0,o=i.minutes?ut(i.minutes):0,l=i.seconds?ut(i.seconds):0,u=ct(n),h=t||e?Fn(u,t+e*12):u,d=a||r?ta(h,a+r*7):h,f=o+s*60,p=l+f*60,v=p*1e3,m=new Date(d.getTime()+v);return m}function oP(n,i){tt(2,arguments);var e=ct(n).getTime(),t=ut(i);return new Date(e+t)}var lP={};function Bn(){return lP}function rs(n,i){var e,t,r,a,s,o,l,u;tt(1,arguments);var h=Bn(),d=ut((e=(t=(r=(a=i?.weekStartsOn)!==null&&a!==void 0?a:i==null||(s=i.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&r!==void 0?r:h.weekStartsOn)!==null&&t!==void 0?t:(l=h.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&e!==void 0?e:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=ct(n),p=f.getDay(),v=(p<d?7:0)+p-d;return f.setDate(f.getDate()-v),f.setHours(0,0,0,0),f}function ou(n){return tt(1,arguments),rs(n,{weekStartsOn:1}
vendor: 14,345 bytes, line 47
47)}function uP(n){tt(1,arguments);var i=ct(n),e=i.getFullYear(),t=new Date(0);t.setFullYear(e+1,0,4),t.setHours(0,0,0,0);var r=ou(t),a=new Date(0);a.setFullYear(e,0,4),a.setHours(0,0,0,0);var s=ou(a);return i.getTime()>=r.getTime()?e+1:i.getTime()>=s.getTime()?e:e-1}function hP(n){tt(1,arguments);var i=uP(n),e=new Date(0);e.setFullYear(i,0,4),e.setHours(0,0,0,0);var t=ou(e);return t}function lu(n){var i=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return i.setUTCFullYear(n.getFullYear()),n.getTime()-i.getTime()}function op(n){tt(1,arguments);var i=ct(n);return i.setHours(0,0,0,0),i}var dP=864e5;function cP(n,i){tt(2,arguments);var e=op(n),t=op(i),r=e.getTime()-lu(e),a=t.getTime()-lu(t);return Math.round((r-a)/dP)}function pg(n,i){tt(2,arguments);var e=ut(i);return Fn(n,e*12)}var Yc=6e4,Wc=36e5,fP=1e3;function yg(n){return tt(1,arguments),n instanceof Date||tn(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function xo(n){if(tt(1,arguments),!yg(n)&&typeof n!="number")return!1;var i=ct(n);return!isNaN(Number(i))}function lp(n,i){var e;tt(1,arguments);var t=n||{},r=ct(t.start),a=ct(t.end),s=a.getTime();if(!(r.getTime()<=s))throw new RangeError("Invalid interval");var o=[],l=r;l.setHours(0,0,0,0);var u=Number((e=i?.step)!==null&&e!==void 0?e:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=s;)o.push(ct(l)),l.setDate(l.getDate()+u),l.setHours(0,0,0,0);return o}function pP(n,i){var e,t,r,a,s,o,l,u;tt(1,arguments);var h=Bn(),d=ut((e=(t=(r=(a=i?.weekStartsOn)!==null&&a!==void 0?a:i==null||(s=i.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&r!==void 0?r:h.weekStartsOn)!==null&&t!==void 0?t:(l=h.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&e!==void 0?e:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=ct(n),p=f.getDay(),v=(p<d?-7:0)+6-(p-d);return f.setDate(f.getDate()+v),f.setHours(23,59,59,999),f}function vg(n,i){tt(2,arguments);var e=ut(i);return oP(n,-e)}var yP=864e5;function vP(n){tt(1,arguments);var i=ct(n),e=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var t=i.getTime(),r=e-t;return Math.floor(r/yP)+1}function Is(n){tt(1,arguments);var i=1,e=ct(n),t=e.getUTCDay(),r=(t<i?7:0)+t-i;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e}function gg(n){tt(1,arguments);var i=ct(n),e=i.getUTCFullYear(),t=new Date(0);t.setUTCFullYear(e+1,0,4),t.setUTCHours(0,0,0,0);var r=Is(t),a=new Date(0);a.setUTCFullYear(e,0,4),a.setUTCHours(0,0,0,0);var s=Is(a);return i.getTime()>=r.getTime()?e+1:i.getTime()>=s.getTime()?e:e-1}function gP(n){tt(1,arguments);var i=gg(n),e=new Date(0);e.setUTCFullYear(i,0,4),e.setUTCHours(0,0,0,0);var t=Is(e);return t}var mP=6048e5;function mg(n){tt(1,arguments);var i=ct(n),e=Is(i).getTime()-gP(i).getTime();return Math.round(e/mP)+1}function ns(n,i){var e,t,r,a,s,o,l,u;tt(1,arguments);var h=Bn(),d=ut((e=(t=(r=(a=i?.weekStartsOn)!==null&&a!==void 0?a:i==null||(s=i.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&r!==void 0?r:h.weekStartsOn)!==null&&t!==void 0?t:(l=h.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&e!==void 0?e:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=ct(n),p=f.getUTCDay(),v=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-v),f.setUTCHours(0,0,0,0),f}function Bc(n,i){var e,t,r,a,s,o,l,u;tt(1,arguments);var h=ct(n),d=h.getUTCFullYear(),f=Bn(),p=ut((e=(t=(r=(a=i?.firstWeekContainsDate)!==null&&a!==void 0?a:i==null||(s=i.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&r!==void 0?r:f.firstWeekContainsDate)!==null&&t!==void 0?t:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&e!==void 0?e:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(d+1,0,p),v.setUTCHours(0,0,0,0);var m=ns(v,i),x=new Date(0);x.setUTCFullYear(d,0,p),x.setUTCHours(0,0,0,0);var w=ns(x,i);return h.getTime()>=m.getTime()?d+1:h.getTime()>=w.getTime()?d:d-1}function bP(n,i){var e,t,r,a,s,o,l,u;tt(1,arguments);var h=Bn(),d=ut((e=(t=(r=(a=i?.firstWeekContainsDate)!==null&&a!==void 0?a:i==null||(s=i.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&r!==void 0?r:h.firstWeekContainsDate)!==null&&t!==void 0?t:(l=h.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&e!==void 0?e:1),f=Bc(n,i),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var v=ns(p,i);return v}var xP=6048e5;function bg(n,i){tt(1,arguments);var e=ct(n),t=ns(e,i).getTime()-bP(e,i).getTime();return Math.round(t/xP)+1}function hi(n,i){for(var e=n<0?"-":"",t=Math.abs(n).toString();t.length<i;)t="0"+t;return e+t}var _P={y:function(i,e){var t=i.getUTCFullYear(),r=t>0?t:1-t;return hi(e==="yy"?r%100:r,e.length)},M:function(i,e){var t=i.getUTCMonth();return e==="M"?String(t+1):hi(t+1,2)},d:function(i,e){return hi(i.getUTCDate(),e.length)},a:function(i,e){var t=i.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h:function(i,e){return hi(i.getUTCHours()%12||12,e.length)},H:function(i,e){return hi(i.getUTCHours(),e.length)},m:function(i,e){return hi(i.getUTCMinutes(),e.length)},s:function(i,e){return hi(i.getUTCSeconds(),e.length)},S:function(i,e){var t=e.length,r=i.getUTCMilliseconds(),a=Math.floor(r*Math.pow(10,t-3));return hi(a,e.length)}};const pa=_P;var ms={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wP={G:function(i,e,t){var r=i.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(i,e,t){if(e==="yo"){var r=i.getUTCFullYear(),a=r>0?r:1-r;return t.ordinalNumber(a,{unit:"year"})}return pa.y(i,e)},Y:function(i,e,t,r){var a=Bc(i,r),s=a>0?a:1-a;if(e==="YY"){var o=s%100;return hi(o,2)}return e==="Yo"?t.ordinalNumber(s,{unit:"year"}):hi(s,e.length)},R:function(i,e){var t=gg(i);return hi(t,e.length)},u:function(i,e){var t=i.getUTCFullYear();return hi(t,e.length)},Q:function(i,e,t){var r=Math.ceil((i.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return hi(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(i,e,t){var r=Math.ceil((i.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return hi(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(i,e,t){var r=i.getUTCMonth();switch(e){case"M":case"MM":return pa.M(i,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(i,e,t){var r=i.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return hi(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(i,e,t,r){var a=bg(i,r);return e==="wo"?t.ordinalNumber(a,{unit:"week"}):hi(a,e.length)},I:function(i,e,t){var r=mg(i);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):hi(r,e.length)},d:function(i,e,t){return e==="do"?t.ordinalNumber(i.getUTCDate(),{unit:"date"}):pa.d(i,e)},D:function(i,e,t){var r=vP(i);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):hi(r,e.length)},E:function(i,e,t){var r=i.getUTCDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(i,e,t,r){var a=i.getUTCDay(),s=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return hi(s,2);case"eo":return t.ordinalNumber(s,{unit:"day"});case"eee":return t.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(a,{width:"short",context:"formatting"});case"eeee":default:return t.day(a,{width:"wide",context:"formatting"})}},c:function(i,e,t,r){var a=i.getUTCDay(),s=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return hi(s,e.length);case"co":return t.ordinalNumber(s,{unit:"day"});case"ccc":return t.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(a,{width:"narrow",context:"standalone"});case"cccccc":return t.day(a,{width:"short",context:"standalone"});case"cccc":default:return t.day(a,{width:"wide",context:"standalone"})}},i:function(i,e,t){var r=i.getUTCDay(),a=r===0?7:r;switch(e){case"i":return String(a);case"ii":return hi(a,e.length);case"io":return t.ordinalNumber(a,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(i,e,t){var r=i.getUTCHours(),a=r/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(i,e,t){var r=i.getUTCHours(),a;switch(r===12?a=ms.noon:r===0?a=ms.midnight:a=r/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(i,e,t){var r=i.getUTCHours(),a;switch(r>=17?a=ms.evening:r>=12?a=ms.afternoon:r>=4?a=ms.morning:a=ms.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(i,e,t){if(e==="ho"){var r=i.getUTCHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return pa.h(i,e)},H:function(i,e,t){return e==="Ho"?t.ordinalNumber(i.getUTCHours(),{unit:"hour"}):pa.H(i,e)},K:function(i,e,t){var r=i.getUTCHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):hi(r,e.length)},k:function(i,e,t){var r=i.getUTCHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):hi(r,e.length)},m:function(i,e,t){return e==="mo"?t.ordinalNumber(i.getUTCMinutes(),{unit:"minute"}):pa.m(i,e)},s:function(i,e,t){return e==="so"?t.ordinalNumber(i.getUTCSeconds(),{unit:"second"}):pa.s(i,e)},S:function(i,e){return pa.S(i,e)},X:function(i,e,t,r){var a=r._originalDate||i,s=a.getTimezoneOffset();if(s===0)return"Z";switch(e){case"X":return hp(s);case"XXXX":case"XX":return Wa(s);case"XXXXX":case"XXX":default:return Wa(s,":")}},x:function(i,e,t,r){var a=r._originalDate||i,s=a.getTimezoneOffset();switch(e){case"x":return hp(s);case"xxxx":case"xx":return Wa(s);case"xxxxx":case"xxx":default:return Wa(s,":")}},O:function(i,e,t,r){var a=r._originalDate||i,s=a.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+up(s,":");case"OOOO":default:return"GMT"+Wa(s,":")}},z:function(i,e,t,r){var a=r._originalDate||i,s=a.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+up(s,":");case"zzzz":default:return"GMT"+Wa(s,":")}},t:function(i,e,t,r){var a=r._originalDate||i,s=Math.floor(a.getTime()/1e3);return hi(s,e.length)},T:function(i,e,t,r){var a=r._originalDate||i,s=a.getTime();return hi(s,e.length)}};function up(n,i){var e=n>0?"-":"+",t=Math.abs(n),r=Math.floor(t/60),a=t%60;if(a===0)return e+String(r);var s=i||"";return e+String(r)+s+hi(a,2)}function hp(n,i){if(n%60===0){var e=n>0?"-":"+";return e+hi(Math.abs(n)/60,2)}return Wa(n,i)}function Wa(n,i){var e=i||"",t=n>0?"-":"+",r=Math.abs(n),a=hi(Math.floor(r/60),2),s=hi(r%60,2);return t+a+e+s}const PP=wP;var dp=function(i,e){switch(i){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},xg=function(i,e){switch(i){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},CP=function(i,e){var t=i.match(/(P+)(p+)?/)||[],r=t[1],a=t[2];if(!a)return dp(i,e);var s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",dp(r,e)).replace("{{time}}",xg(a,e))},DP={p:xg,P:CP};const Td=DP;var SP=["D","DD"],OP=["YY","YYYY"];function _g(n){return SP.indexOf(n)!==-1}function wg(n){return OP.indexOf(n)!==-1}function uu(n,i,e){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i,"`) for formatting years to the input `").
vendor: 7,575 bytes, line 47
47concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(i,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(i,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(i,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var TP={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},kP=function(i,e,t){var r,a=TP[i];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};const MP=kP;function Vh(n){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=i.width?String(i.width):n.defaultWidth,t=n.formats[e]||n.formats[n.defaultWidth];return t}}var AP={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},VP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},FP={date:Vh({formats:AP,defaultWidth:"full"}),time:Vh({formats:jP,defaultWidth:"full"}),dateTime:Vh({formats:VP,defaultWidth:"full"})};const IP=FP;var EP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},LP=function(i,e,t,r){return EP[i]};const RP=LP;function ao(n){return function(i,e){var t=e!=null&&e.context?String(e.context):"standalone",r;if(t==="formatting"&&n.formattingValues){var a=n.defaultFormattingWidth||n.defaultWidth,s=e!=null&&e.width?String(e.width):a;r=n.formattingValues[s]||n.formattingValues[a]}else{var o=n.defaultWidth,l=e!=null&&e.width?String(e.width):n.defaultWidth;r=n.values[l]||n.values[o]}var u=n.argumentCallback?n.argumentCallback(i):i;return r[u]}}var NP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},HP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},YP={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},WP={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},BP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},zP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},UP=function(i,e){var t=Number(i),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},XP={ordinalNumber:UP,era:ao({values:NP,defaultWidth:"wide"}),quarter:ao({values:HP,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:ao({values:YP,defaultWidth:"wide"}),day:ao({values:WP,defaultWidth:"wide"}),dayPeriod:ao({values:BP,defaultWidth:"wide",formattingValues:zP,defaultFormattingWidth:"wide"})};const GP=XP;function so(n){return function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.width,r=t&&n.matchPatterns[t]||n.matchPatterns[n.defaultMatchWidth],a=i.match(r);if(!a)return null;var s=a[0],o=t&&n.parsePatterns[t]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(o)?KP(o,function(d){return d.test(s)}):$P(o,function(d){return d.test(s)}),u;u=n.valueCallback?n.valueCallback(l):l,u=e.valueCallback?e.valueCallback(u):u;var h=i.slice(s.length);return{value:u,rest:h}}}function $P(n,i){for(var e in n)if(n.hasOwnProperty(e)&&i(n[e]))return e}function KP(n,i){for(var e=0;e<n.length;e++)if(i(n[e]))return e}function qP(n){return function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=i.match(n.matchPattern);if(!t)return null;var r=t[0],a=i.match(n.parsePattern);if(!a)return null;var s=n.valueCallback?n.valueCallback(a[0]):a[0];s=e.valueCallback?e.valueCallback(s):s;var o=i.slice(r.length);return{value:s,rest:o}}}var ZP=/^(\d+)(th|st|nd|rd)?/i,QP=/\d+/i,JP={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},eC={any:[/^b/i,/^(a|c)/i]},tC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},iC={any:[/1/i,/2/i,/3/i,/4/i]},rC={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},nC={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},aC={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},sC={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},oC={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},lC={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},uC={ordinalNumber:qP({matchPattern:ZP,parsePattern:QP,valueCallback:function(i){return parseInt(i,10)}}),era:so({matchPatterns:JP,defaultMatchWidth:"wide",parsePatterns:eC,defaultParseWidth:"any"}
vendor: 2,700 bytes, line 47
47),quarter:so({matchPatterns:tC,defaultMatchWidth:"wide",parsePatterns:iC,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:so({matchPatterns:rC,defaultMatchWidth:"wide",parsePatterns:nC,defaultParseWidth:"any"}),day:so({matchPatterns:aC,defaultMatchWidth:"wide",parsePatterns:sC,defaultParseWidth:"any"}),dayPeriod:so({matchPatterns:oC,defaultMatchWidth:"any",parsePatterns:lC,defaultParseWidth:"any"})};const hC=uC;var dC={code:"en-US",formatDistance:MP,formatLong:IP,formatRelative:RP,localize:GP,match:hC,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Pg=dC;var cC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pC=/^'([^]*?)'?$/,yC=/''/g,vC=/[a-zA-Z]/;function _o(n,i,e){var t,r,a,s,o,l,u,h,d,f,p,v,m,x,w,P,O,j;tt(2,arguments);var M=String(i),F=Bn(),g=(t=(r=e?.locale)!==null&&r!==void 0?r:F.locale)!==null&&t!==void 0?t:Pg,L=ut((a=(s=(o=(l=e?.firstWeekContainsDate)!==null&&l!==void 0?l:e==null||(u=e.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:F.firstWeekContainsDate)!==null&&s!==void 0?s:(d=F.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=ut((p=(v=(m=(x=e?.weekStartsOn)!==null&&x!==void 0?x:e==null||(w=e.locale)===null||w===void 0||(P=w.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&m!==void 0?m:F.weekStartsOn)!==null&&v!==void 0?v:(O=F.locale)===null||O===void 0||(j=O.options)===null||j===void 0?void 0:j.weekStartsOn)!==null&&p!==void 0?p:0);if(!(N>=0&&N<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!g.localize)throw new RangeError("locale must contain localize property");if(!g.formatLong)throw new RangeError("locale must contain formatLong property");var ye=ct(n);if(!xo(ye))throw new RangeError("Invalid time value");var H=lu(ye),z=vg(ye,H),Z={firstWeekContainsDate:L,weekStartsOn:N,locale:g,_originalDate:ye},_e=M.match(fC).map(function(ve){var $=ve[0];if($==="p"||$==="P"){var I=Td[$];return I(ve,g.formatLong)}return ve}).join("").match(cC).map(function(ve){if(ve==="''")return"'";var $=ve[0];if($==="'")return gC(ve);var I=PP[$];if(I)return!(e!=null&&e.useAdditionalWeekYearTokens)&&wg(ve)&&uu(ve,i,String(n)),!(e!=null&&e.useAdditionalDayOfYearTokens)&&_g(ve)&&uu(ve,i,String(n)),I(z,ve,g.localize,Z);if($.match(vC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return ve}).join("");return _e}function gC(n){var i=n.match(pC);return i?i[1].replace(yC,"'"):n}
vendor: 35,453 bytes, lines 47-48
47function mC(n,i){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(n[e]=i[e]);return n}function bC(n){tt(1,arguments);var i=ct(n),e=i.getDay();return e}function xC(n){tt(1,arguments);var i=ct(n),e=i.getFullYear(),t=i.getMonth(),r=new Date(0);return r.setFullYear(e,t+1,0),r.setHours(0,0,0,0),r.getDate()}function qn(n){tt(1,arguments);var i=ct(n),e=i.getHours();return e}var _C=6048e5;function wC(n){tt(1,arguments);var i=ct(n),e=ou(i).getTime()-hP(i).getTime();return Math.round(e/_C)+1}function Zn(n){tt(1,arguments);var i=ct(n),e=i.getMinutes();return e}function xi(n){tt(1,arguments);var i=ct(n),e=i.getMonth();return e}function Es(n){tt(1,arguments);var i=ct(n),e=i.getSeconds();return e}function PC(n,i){var e,t,r,a,s,o,l,u;tt(1,arguments);var h=ct(n),d=h.getFullYear(),f=Bn(),p=ut((e=(t=(r=(a=i?.firstWeekContainsDate)!==null&&a!==void 0?a:i==null||(s=i.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&r!==void 0?r:f.firstWeekContainsDate)!==null&&t!==void 0?t:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&e!==void 0?e:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setFullYear(d+1,0,p),v.setHours(0,0,0,0);var m=rs(v,i),x=new Date(0);x.setFullYear(d,0,p),x.setHours(0,0,0,0);var w=rs(x,i);return h.getTime()>=m.getTime()?d+1:h.getTime()>=w.getTime()?d:d-1}function CC(n,i){var e,t,r,a,s,o,l,u;tt(1,arguments);var h=Bn(),d=ut((e=(t=(r=(a=i?.firstWeekContainsDate)!==null&&a!==void 0?a:i==null||(s=i.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&r!==void 0?r:h.firstWeekContainsDate)!==null&&t!==void 0?t:(l=h.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&e!==void 0?e:1),f=PC(n,i),p=new Date(0);p.setFullYear(f,0,d),p.setHours(0,0,0,0);var v=rs(p,i);return v}var DC=6048e5;function SC(n,i){tt(1,arguments);var e=ct(n),t=rs(e,i).getTime()-CC(e,i).getTime();return Math.round(t/DC)+1}function Pi(n){return tt(1,arguments),ct(n).getFullYear()}function Ro(n,i){tt(2,arguments);var e=ct(n),t=ct(i);return e.getTime()>t.getTime()}function No(n,i){tt(2,arguments);var e=ct(n),t=ct(i);return e.getTime()<t.getTime()}function Ds(n,i){tt(2,arguments);var e=ct(n),t=ct(i);return e.getTime()===t.getTime()}function cp(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function OC(n,i){if(n){if(typeof n=="string")return cp(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return cp(n,i)}}function fp(n,i){var e=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!e){if(Array.isArray(n)||(e=OC(n))||i&&n&&typeof n.length=="number"){e&&(n=e);var t=0,r=function(){};return{s:r,n:function(){return t>=n.length?{done:!0}:{done:!1,value:n[t++]}},e:function(u){throw u},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
48In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,s=!1,o;return{s:function(){e=e.call(n)},n:function(){var u=e.next();return a=u.done,u},e:function(u){s=!0,o=u},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(s)throw o}}}}function Ne(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function kd(n,i){return kd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},kd(n,i)}function $t(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&kd(n,i)}function hu(n){return hu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hu(n)}function TC(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kC(n,i){if(i&&(tn(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ne(n)}function Kt(n){var i=TC();return function(){var t=hu(n),r;if(i){var a=hu(this).constructor;r=Reflect.construct(t,arguments,a)}else r=t.apply(this,arguments);return kC(this,r)}}function Ht(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function MC(n,i){if(tn(n)!=="object"||n===null)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,i||"default");if(tn(t)!=="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(n)}function Cg(n){var i=MC(n,"string");return tn(i)==="symbol"?i:String(i)}function pp(n,i){for(var e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,Cg(t.key),t)}}function Yt(n,i,e){return i&&pp(n.prototype,i),e&&pp(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function Le(n,i,e){return i=Cg(i),i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var AC=10,Dg=function(){function n(){Ht(this,n),Le(this,"priority",void 0),Le(this,"subPriority",0)}return Yt(n,[{key:"validate",value:function(e,t){return!0}}]),n}(),jC=function(n){$t(e,n);var i=Kt(e);function e(t,r,a,s,o){var l;return Ht(this,e),l=i.call(this),l.value=t,l.validateValue=r,l.setValue=a,l.priority=s,o&&(l.subPriority=o),l}return Yt(e,[{key:"validate",value:function(r,a){return this.validateValue(r,this.value,a)}},{key:"set",value:function(r,a,s){return this.setValue(r,a,this.value,s)}}]),e}(Dg),VC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",AC),Le(Ne(t),"subPriority",-1),t}return Yt(e,[{key:"set",value:function(r,a){if(a.timestampIsSet)return r;var s=new Date(0);return s.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),s.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),s}}]),e}(Dg),si=function(){function n(){Ht(this,n),Le(this,"incompatibleTokens",void 0),Le(this,"priority",void 0),Le(this,"subPriority",void 0)}return Yt(n,[{key:"run",value:function(e,t,r,a){var s=this.parse(e,t,r,a);return s?{setter:new jC(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(e,t,r){return!0}}]),n}(),FC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",140),Le(Ne(t),"incompatibleTokens",["R","u","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"G":case"GG":case"GGG":return s.era(r,{width:"abbreviated"})||s.era(r,{width:"narrow"});case"GGGGG":return s.era(r,{width:"narrow"});case"GGGG":default:return s.era(r,{width:"wide"})||s.era(r,{width:"abbreviated"})||s.era(r,{width:"narrow"})}}},{key:"set",value:function(r,a,s){return a.era=s,r.setUTCFullYear(s,0,1),r.setUTCHours(0,0,0,0),r}}]),e}(si),Xi={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},An={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Gi(n,i){return n&&{value:i(n.value),rest:n.rest}}function ji(n,i){var e=i.match(n);return e?{value:parseInt(e[0],10),rest:i.slice(e[0].length)}:null}function jn(n,i){var e=i.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:i.slice(1)};var t=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,a=e[3]?parseInt(e[3],10):0,s=e[5]?parseInt(e[5],10):0;return{value:t*(r*Wc+a*Yc+s*fP),rest:i.slice(e[0].length)}}function Sg(n){return ji(Xi.anyDigitsSigned,n)}function Hi(n,i){switch(n){case 1:return ji(Xi.singleDigit,i);case 2:return ji(Xi.twoDigits,i);case 3:return ji(Xi.threeDigits,i);case 4:return ji(Xi.fourDigits,i);default:return ji(new RegExp("^\\d{1,"+n+"}"),i)}}function du(n,i){switch(n){case 1:return ji(Xi.singleDigitSigned,i);case 2:return ji(Xi.twoDigitsSigned,i);case 3:return ji(Xi.threeDigitsSigned,i);case 4:return ji(Xi.fourDigitsSigned,i);default:return ji(new RegExp("^-?\\d{1,"+n+"}"),i)}}function zc(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Og(n,i){var e=i>0,t=e?i:1-i,r;if(t<=50)r=n||100;else{var a=t+50,s=Math.floor(a/100)*100,o=n>=a%100;r=n+s-(o?100:0)}return e?r:1-r}function Tg(n){return n%400===0||n%4===0&&n%100!==0}var IC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",130),Le(Ne(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){var o=function(u){return{year:u,isTwoDigitYear:a==="yy"}};switch(a){case"y":return Gi(Hi(4,r),o);case"yo":return Gi(s.ordinalNumber(r,{unit:"year"}),o);default:return Gi(Hi(a.length,r),o)}}},{key:"validate",value:function(r,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(r,a,s){var o=r.getUTCFullYear();if(s.isTwoDigitYear){var l=Og(s.year,o);return r.setUTCFullYear(l,0,1),r.setUTCHours(0,0,0,0),r}var u=!("era"in a)||a.era===1?s.year:1-s.year;return r.setUTCFullYear(u,0,1),r.setUTCHours(0,0,0,0),r}}]),e}(si),EC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",130),Le(Ne(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){var o=function(u){return{year:u,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return Gi(Hi(4,r),o);case"Yo":return Gi(s.ordinalNumber(r,{unit:"year"}),o);default:return Gi(Hi(a.length,r),o)}}},{key:"validate",value:function(r,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(r,a,s,o){var l=Bc(r,o);if(s.isTwoDigitYear){var u=Og(s.year,l);return r.setUTCFullYear(u,0,o.firstWeekContainsDate),r.setUTCHours(0,0,0,0),ns(r,o)}var h=!("era"in a)||a.era===1?s.year:1-s.year;return r.setUTCFullYear(h,0,o.firstWeekContainsDate),r.setUTCHours(0,0,0,0),ns(r,o)}}]),e}(si),LC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",130),Le(Ne(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a){return du(a==="R"?4:a.length,r)}},{key:"set",value:function(r,a,s){var o=new Date(0);return o.setUTCFullYear(s,0,4),o.setUTCHours(0,0,0,0),Is(o)}}]),e}(si),RC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",130),Le(Ne(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a){return du(a==="u"?4:a.length,r)}},{key:"set",value:function(r,a,s){return r.setUTCFullYear(s,0,1),r.setUTCHours(0,0,0,0),r}}]),e}(si),NC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",120),Le(Ne(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"Q":case"QQ":return Hi(a.length,r);case"Qo":return s.ordinalNumber(r,{unit:"quarter"});case"QQQ":return s.quarter(r,{width:"abbreviated",context:"formatting"})||s.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(r,{width:"wide",context:"formatting"})||s.quarter(r,{width:"abbreviated",context:"formatting"})||s.quarter(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,a){return a>=1&&a<=4}},{key:"set",value:function(r,a,s){return r.setUTCMonth((s-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),e}(si),HC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",120),Le(Ne(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"q":case"qq":return Hi(a.length,r);case"qo":return s.ordinalNumber(r,{unit:"quarter"});case"qqq":return s.quarter(r,{width:"abbreviated",context:"standalone"})||s.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(r,{width:"wide",context:"standalone"})||s.quarter(r,{width:"abbreviated",context:"standalone"})||s.quarter(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,a){return a>=1&&a<=4}},{key:"set",value:function(r,a,s){return r.setUTCMonth((s-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),e}(si),YC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Le(Ne(t),"priority",110),t}return Yt(e,[{key:"parse",value:function(r,a,s){var o=function(u){return u-1};switch(a){case"M":return Gi(ji(Xi.month,r),o);case"MM":return Gi(Hi(2,r),o);case"Mo":return Gi(s.ordinalNumber(r,{unit:"month"}),o);case"MMM":return s.month(r,{width:"abbreviated",context:"formatting"})||s.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(r,{width:"wide",context:"formatting"})||s.month(r,{width:"abbreviated",context:"formatting"})||s.month(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,a){return a>=0&&a<=11}},{key:"set",value:function(r,a,s){return r.setUTCMonth(s,1),r.setUTCHours(0,0,0,0),r}}]),e}(si),WC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",110),Le(Ne(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){var o=function(u){return u-1};switch(a){case"L":return Gi(ji(Xi.month,r),o);case"LL":return Gi(Hi(2,r),o);case"Lo":return Gi(s.ordinalNumber(r,{unit:"month"}),o);case"LLL":return s.month(r,{width:"abbreviated",context:"standalone"})||s.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(r,{width:"wide",context:"standalone"})||s.month(r,{width:"abbreviated",context:"standalone"})||s.month(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,a){return a>=0&&a<=11}},{key:"set",value:function(r,a,s){return r.setUTCMonth(s,1),r.setUTCHours(0,0,0,0),r}}]),e}(si);function BC(n,i,e){tt(2,arguments);var t=ct(n),r=ut(i),a=bg(t,e)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var zC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",100),Le(Ne(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"w":return ji(Xi.week,r);case"wo":return s.ordinalNumber(r,{unit:"week"});default:return Hi(a.length,r)}}},{key:"validate",value:function(r,a){return a>=1&&a<=53}},{key:"set",value:function(r,a,s,o){return ns(BC(r,s,o),o)}}]),e}(si);function UC(n,i){tt(2,arguments);var e=ct(n),t=ut(i),r=mg(e)-t;return e.setUTCDate(e.getUTCDate()-r*7),e}var XC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",100),Le(Ne(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"I":return ji(Xi.week,r);case"Io":return s.ordinalNumber(r,{unit:"week"});default:return Hi(a.length,r)}}},{key:"validate",value:function(r,a){return a>=1&&a<=53}},{key:"set",value:function(r,a,s){return Is(UC(r,s))}}]),e}(si),GC=[31,28,31,30,31,30,31,31,30,31,30,31],$C=[31,29,31,30,31,30,31,31,30,31,30,31],KC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",90),Le(Ne(t),"subPriority",1),Le(Ne(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"d":return ji(Xi.date,r);case"do":return s.ordinalNumber(r,{unit:"date"});default:return Hi(a.length,r)}}},{key:"validate",value:function(r,a){var s=r.getUTCFullYear(),o=Tg(s),l=r.getUTCMonth();return o?a>=1&&a<=$C[l]:a>=1&&a<=GC[l]}},{key:"set",value:function(r,a,s){return r.setUTCDate(s),r.setUTCHours(0,0,0,0),r}}]),e}(si),qC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",90),Le(Ne(t),"subpriority",1),Le(Ne(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"D":case"DD":return ji(Xi.dayOfYear,r);case"Do":return s.ordinalNumber(r,{unit:"date"});default:return Hi(a.length,r)}}},{key:"validate",value:function(r,a){var s=r.getUTCFullYear(),o=Tg(s);return o?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(r,a,s){return r.setUTCMonth(0,s),r.setUTCHours(0,0,0,0),r}}]),e}(si);function Uc(n,i,e){var t,r,a,s,o,l,u,h;tt(2,arguments);var d=Bn(),f=ut((t=(r=(a=(s=e?.weekStartsOn)!==null&&s!==void 0?s:e==null||(o=e.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:d.weekStartsOn)!==null&&r!==void 0?r:(u=d.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&t!==void 0?t:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=ct(n),v=ut(i),m=p.getUTCDay(),x=v%7,w=(x+7)%7,P=(w<f?7:0)+v-m;return p.setUTCDate(p.getUTCDate()+P),p}var ZC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",90),Le(Ne(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"E":case"EE":case"EEE":return s.day(r,{width:"abbreviated",context:"formatting"})||s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(r,{width:"wide",context:"formatting"})||s.day(r,{width:"abbreviated",context:"formatting"})||s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,a){return a>=0&&a<=6}},{key:"set",value:function(r,a,s,o){return r=Uc(r,s,o),r.setUTCHours(0,0,0,0),r}}]),e}(si),QC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",90),Le(Ne(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s,o){var l=function(h){var d=Math.floor((h-1)/7)*7;return(h+o.weekStartsOn+6)%7+d};switch(a){case"e":case"ee":return Gi(Hi(a.length,r),l);case"eo":return Gi(s.ordinalNumber(r,{unit:"day"}),l);case"eee":return s.day(r,{width:"abbreviated",context:"formatting"})||s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"});case"eeeee":return s.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(r,{width:"wide",context:"formatting"})||s.day(r,{width:"abbreviated",context:"formatting"})||s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,a){return a>=0&&a<=6}},{key:"set",value:function(r,a,s,o){return r=Uc(r,s,o),r.setUTCHours(0,0,0,0),r}}]),e}(si),JC=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",90),Le(Ne(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s,o){var l=function(h){var d=Math.floor((h-1)/7)*7;return(h+o.weekStartsOn+6)%7+d};switch(a){case"c":case"cc":return Gi(Hi(a.length,r),l);case"co":return Gi(s.ordinalNumber(r,{unit:"day"}),l);case"ccc":return s.day(r,{width:"abbreviated",context:"standalone"})||s.day(r,{width:"short",context:"standalone"})||s.day(r,{width:"narrow",context:"standalone"});case"ccccc":return s.day(r,{width:"narrow",context:"standalone"});case"cccccc":return s.day(r,{width:"short",context:"standalone"})||s.day(r,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(r,{width:"wide",context:"standalone"})||s.day(r,{width:"abbreviated",context:"standalone"})||s.day(r,{width:"short",context:"standalone"})||s.day(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,a){return a>=0&&a<=6}},{key:"set",value:function(r,a,s,o){return r=Uc(r,s,o),r.setUTCHours(0,0,0,0),r}}]),e}(si);function eD(n,i){tt(2,arguments);var e=ut(i);e%7===0&&(e=e-7);var t=1,r=ct(n),a=r.getUTCDay(),s=e%7,o=(s+7)%7,l=(o<t?7:0)+e-a;return r.setUTCDate(r.getUTCDate()+l),r}var tD=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",90),Le(Ne(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){var o=function(u){return u===0?7:u};switch(a){case"i":case"ii":return Hi(a.length,r);case"io":return s.ordinalNumber(r,{unit:"day"});case"iii":return Gi(s.day(r,{width:"abbreviated",context:"formatting"})||s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"}),o);case"iiiii":return Gi(s.day(r,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Gi(s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"}),o);case"iiii":default:return Gi(s.day(r,{width:"wide",context:"formatting"})||s.day(r,{width:"abbreviated",context:"formatting"})||s.day(r,{width:"short",context:"formatting"})||s.day(r,{width:"narrow",context:"formatting"}),o)}}},{key:"validate",value:function(r,a){return a>=1&&a<=7}},{key:"set",value:function(r,a,s){return r=eD(r,s),r.setUTCHours(0,0,0,0),r}}]),e}(si),iD=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",80),Le(Ne(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"a":case"aa":case"aaa":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"})||s.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})||s.dayPeriod(r,{width:"abbreviated",context:"formatting"})||s.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,a,s){return r.setUTCHours(zc(s),0,0,0),r}}]),e}(si),rD=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",80),Le(Ne(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"b":case"bb":case"bbb":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"})||s.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})||s.dayPeriod(r,{width:"abbreviated",context:"formatting"})||s.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,a,s){return r.setUTCHours(zc(s),0,0,0),r}}]),e}(si),nD=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",80),Le(Ne(t),"incompatibleTokens",["a","b","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"B":case"BB":case"BBB":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"})||s.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})||s.dayPeriod(r,{width:"abbreviated",context:"formatting"})||s.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,a,s){return r.setUTCHours(zc(s),0,0,0),r}}]),e}(si),aD=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",70),Le(Ne(t),"incompatibleTokens",["H","K","k","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"h":return ji(Xi.hour12h,r);case"ho":return s.ordinalNumber(r,{unit:"hour"});default:return Hi(a.length,r)}}},{key:"validate",value:function(r,a){return a>=1&&a<=12}},{key:"set",value:function(r,a,s){var o=r.getUTCHours()>=12;return o&&s<12?r.setUTCHours(s+12,0,0,0):!o&&s===12?r.setUTCHours(0,0,0,0):r.setUTCHours(s,0,0,0),r}}]),e}(si),sD=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",70),Le(Ne(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"H":return ji(Xi.hour23h,r);case"Ho":return s.ordinalNumber(r,{unit:"hour"});default:return Hi(a.length,r)}}},{key:"validate",value:function(r,a){return a>=0&&a<=23}},{key:"set",value:function(r,a,s){return r.setUTCHours(s,0,0,0),r}}]),e}(si),oD=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",70),Le(Ne(t),"incompatibleTokens",["h","H","k","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"K":return ji(Xi.hour11h,r);case"Ko":return s.ordinalNumber(r,{unit:"hour"});default:return Hi(a.length,r)}}},{key:"validate",value:function(r,a){return a>=0&&a<=11}},{key:"set",value:function(r,a,s){var o=r.getUTCHours()>=12;return o&&s<12?r.setUTCHours(s+12,0,0,0):r.setUTCHours(s,0,0,0),r}}]),e}(si),lD=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",70),Le(Ne(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"k":return ji(Xi.hour24h,r);case"ko":return s.ordinalNumber(r,{unit:"hour"});default:return Hi(a.length,r)}}},{key:"validate",value:function(r,a){return a>=1&&a<=24}},{key:"set",value:function(r,a,s){var o=s<=24?s%24:s;return r.setUTCHours(o,0,0,0),r}}]),e}(si),uD=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",60),Le(Ne(t),"incompatibleTokens",["t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"m":return ji(Xi.minute,r);case"mo":return s.ordinalNumber(r,{unit:"minute"});default:return Hi(a.length,r)}}},{key:"validate",value:function(r,a){return a>=0&&a<=59}},{key:"set",value:function(r,a,s){return r.setUTCMinutes(s,0,0),r}}]),e}(si),hD=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",50),Le(Ne(t),"incompatibleTokens",["t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a,s){switch(a){case"s":return ji(Xi.second,r);case"so":return s.ordinalNumber(r,{unit:"second"});default:return Hi(a.length,r)}}},{key:"validate",value:function(r,a){return a>=0&&a<=59}},{key:"set",value:function(r,a,s){return r.setUTCSeconds(s,0),r}}]),e}(si),dD=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",30),Le(Ne(t),"incompatibleTokens",["t","T"]),t}return Yt(e,[{key:"parse",value:function(r,a){var s=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return Gi(Hi(a.length,r),s)}},{key:"set",value:function(r,a,s){return r.setUTCMilliseconds(s),r}}]),e}(si),cD=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",10),Le(Ne(t),"incompatibleTokens",["t","T","x"]),t}return Yt(e,[{key:"parse",value:function(r,a){switch(a){case"X":return jn(An.basicOptionalMinutes,r);case"XX":return jn(An.basic,r);case"XXXX":return jn(An.basicOptionalSeconds,r);case"XXXXX":return jn(An.extendedOptionalSeconds,r);case"XXX":default:return jn(An.extended,r)}}},{key:"set",value:function(r,a,s){return a.timestampIsSet?r:new Date(r.getTime()-s)}}]),e}(si),fD=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",10),Le(Ne(t),"incompatibleTokens",["t","T","X"]),t}return Yt(e,[{key:"parse",value:function(r,a){switch(a){case"x":return jn(An.basicOptionalMinutes,r);case"xx":return jn(An.basic,r);case"xxxx":return jn(An.basicOptionalSeconds,r);case"xxxxx":return jn(An.extendedOptionalSeconds,r);case"xxx":default:return jn(An.extended,r)}}},{key:"set",value:function(r,a,s){return a.timestampIsSet?r:new Date(r.getTime()-s)}}]),e}(si),pD=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",40),Le(Ne(t),"incompatibleTokens","*"),t}return Yt(e,[{key:"parse",value:function(r){return Sg(r)}},{key:"set",value:function(r,a,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),e}(si),yD=function(n){$t(e,n);var i=Kt(e);function e(){var t;Ht(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a)),Le(Ne(t),"priority",20),Le(Ne(t),"incompatibleTokens","*"),t}return Yt(e,[{key:"parse",value:function(r){return Sg(r)}},{key:"set",value:function(r,a,s){return[new Date(s),{timestampIsSet:!0}]}}]),e}(si),vD={G:new FC,y:new IC,Y:new EC,R:new LC,u:new RC,Q:new NC,q:new HC,M:new YC,L:new WC,w:new zC,I:new XC,d:new KC,D:new qC,E:new ZC,e:new QC,c:new JC,i:new tD,a:new iD,b:new rD,B:new nD,h:new aD,H:new sD,K:new oD,k:new lD,m:new uD,s:new hD,S:new dD,X:new cD,x:new fD,t:new pD,T:new yD},gD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bD=/^'([^]*?)'?$/,xD=/''/g,_D=/\S/,wD=/[a-zA-Z]/;function Md(n,i,e,t){var r,a,s,o,l,u,h,d,f,p,v,m,x,w,P,O,j,M;tt(3,arguments);var F=String(n),g=String(i),L=Bn(),N=(r=(a=t?.locale)!==null&&a!==void 0?a:L.locale)!==null&&r!==void 0?r:Pg;if(!N.match)throw new RangeError("locale must contain match property");var ye=ut((s=(o=(l=(u=t?.firstWeekContainsDate)!==null&&u!==void 0?u:t==null||(h=t.locale)===null||h===void 0||(d=h.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:L.firstWeekContainsDate)!==null&&o!==void 0?o:(f=L.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(ye>=1&&ye<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var H=ut((v=(m=(x=(w=t?.weekStartsOn)!==null&&w!==void 0?w:t==null||(P=t.locale)===null||P===void 0||(O=P.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&x!==void 0?x:L.weekStartsOn)!==null&&m!==void 0?m:(j=L.locale)===null||j===void 0||(M=j.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&v!==void 0?v:0);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(g==="")return F===""?ct(e):new Date(NaN);var z={firstWeekContainsDate:ye,weekStartsOn:H,locale:N},Z=[new VC],_e=g.match(mD).map(function(Ye){var Xe=Ye[0];if(Xe in Td){var ft=Td[Xe];return ft(Ye,N.formatLong)}return Ye}).join("").match(gD),ve=[],$=fp(_e),I;try{var te=function(){var Xe=I.value;!(t!=null&&t.useAdditionalWeekYearTokens)&&wg(Xe)&&uu(Xe,g,n),!(t!=null&&t.useAdditionalDayOfYearTokens)&&_g(Xe)&&uu(Xe,g,n);var ft=Xe[0],Ke=vD[ft];if(Ke){var oi=Ke.incompatibleTokens;if(Array.isArray(oi)){var Oi=ve.find(function(Zi){return oi.includes(Zi.token)||Zi.token===ft});
48if(Oi)throw new RangeError("The format string mustn't contain `".concat(Oi.fullToken,"` and `").concat(Xe,"` at the same time"))}else if(Ke.incompatibleTokens==="*"&&ve.length>0)throw new RangeError("The format string mustn't contain `".concat(Xe,"` and any other token at the same time"));ve.push({token:ft,fullToken:Xe});var gi=Ke.run(F,Xe,N.match,z);if(!gi)return{v:new Date(NaN)};Z.push(gi.setter),F=gi.rest}else{if(ft.match(wD))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ft+"`");if(Xe==="''"?Xe="'":ft==="'"&&(Xe=PD(Xe)),F.indexOf(Xe)===0)F=F.slice(Xe.length);else return{v:new Date(NaN)}}};for($.s();!(I=$.n()).done;){var A=te();if(tn(A)==="object")return A.v}}catch(Ye){$.e(Ye)}finally{$.f()}if(F.length>0&&_D.test(F))return new Date(NaN);var Q=Z.map(function(Ye){return Ye.priority}).sort(function(Ye,Xe){return Xe-Ye}).filter(function(Ye,Xe,ft){return ft.indexOf(Ye)===Xe}).map(function(Ye){return Z.filter(function(Xe){return Xe.priority===Ye}).sort(function(Xe,ft){return ft.subPriority-Xe.subPriority})}).map(function(Ye){return Ye[0]}),he=ct(e);if(isNaN(he.getTime()))return new Date(NaN);var K=vg(he,lu(he)),le={},E=fp(Q),ne;try{for(E.s();!(ne=E.n()).done;){var Ue=ne.value;if(!Ue.validate(K,z))return new Date(NaN);var Ve=Ue.set(K,le,z);Array.isArray(Ve)?(K=Ve[0],mC(le,Ve[1])):K=Ve}}catch(Ye){E.e(Ye)}finally{E.f()}return K}function PD(n){return n.match(bD)[1].replace(xD,"'")}function CD(n,i){tt(2,arguments);var e=ut(i);return ta(n,-e)}function DD(n,i){var e;tt(1,arguments);var t=ut((e=i?.additionalDigits)!==null&&e!==void 0?e:2);if(t!==2&&t!==1&&t!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var r=kD(n),a;if(r.date){var s=MD(r.date,t);a=AD(s.restDateString,s.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var o=a.getTime(),l=0,u;if(r.time&&(l=jD(r.time),isNaN(l)))return new Date(NaN);if(r.timezone){if(u=VD(r.timezone),isNaN(u))return new Date(NaN)}else{var h=new Date(o+l),d=new Date(0);return d.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),d.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),d}return new Date(o+l+u)}var vl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},SD=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,OD=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,TD=/^([+-])(\d{2})(?::?(\d{2}))?$/;function kD(n){var i={},e=n.split(vl.dateTimeDelimiter),t;if(e.length>2)return i;if(/:/.test(e[0])?t=e[0]:(i.date=e[0],t=e[1],vl.timeZoneDelimiter.test(i.date)&&(i.date=n.split(vl.timeZoneDelimiter)[0],t=n.substr(i.date.length,n.length))),t){var r=vl.timezone.exec(t);r?(i.time=t.replace(r[1],""),i.timezone=r[1]):i.time=t}return i}function MD(n,i){var e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+i)+"})|(\\d{2}|[+-]\\d{"+(2+i)+"})$)"),t=n.match(e);if(!t)return{year:NaN,restDateString:""};var r=t[1]?parseInt(t[1]):null,a=t[2]?parseInt(t[2]):null;return{year:a===null?r:a*100,restDateString:n.slice((t[1]||t[2]).length)}}function AD(n,i){if(i===null)return new Date(NaN);var e=n.match(SD);if(!e)return new Date(NaN);var t=!!e[4],r=oo(e[1]),a=oo(e[2])-1,s=oo(e[3]),o=oo(e[4]),l=oo(e[5])-1;if(t)return RD(i,o,l)?FD(i,o,l):new Date(NaN);var u=new Date(0);return!ED(i,a,s)||!LD(i,r)?new Date(NaN):(u.setUTCFullYear(i,a,Math.max(r,s)),u)}function oo(n){return n?parseInt(n):1}function jD(n){var i=n.match(OD);if(!i)return NaN;var e=Fh(i[1]),t=Fh(i[2]),r=Fh(i[3]);return ND(e,t,r)?e*Wc+t*Yc+r*1e3:NaN}function Fh(n){return n&&parseFloat(n.replace(",","."))||0}function VD(n){if(n==="Z")return 0;var i=n.match(TD);if(!i)return 0;var e=i[1]==="+"?-1:1,t=parseInt(i[2]),r=i[3]&&parseInt(i[3])||0;return HD(t,r)?e*(t*Wc+r*Yc):NaN}function FD(n,i,e){var t=new Date(0);t.setUTCFullYear(n,0,4);var r=t.getUTCDay()||7,a=(i-1)*7+e+1-r;return t.setUTCDate(t.getUTCDate()+a),t}var ID=[31,null,31,30,31,30,31,31,30,31,30,31];function kg(n){return n%400===0||n%4===0&&n%100!==0}function ED(n,i,e){return i>=0&&i<=11&&e>=1&&e<=(ID[i]||(kg(n)?29:28))}function LD(n,i){return i>=1&&i<=(kg(n)?366:365)}function RD(n,i,e){return i>=1&&i<=53&&e>=0&&e<=6}function ND(n,i,e){return n===24?i===0&&e===0:e>=0&&e<60&&i>=0&&i<60&&n>=0&&n<25}function HD(n,i){return i>=0&&i<=59}function wo(n,i){tt(2,arguments);var e=ct(n),t=ut(i),r=e.getFullYear(),a=e.getDate(),s=new Date(0);s.setFullYear(r,t,15),s.setHours(0,0,0,0);var o=xC(s);return e.setMonth(t,Math.min(a,o)),e}function or(n,i){if(tt(2,arguments),tn(i)!=="object"||i===null)throw new RangeError("values parameter must be an object");var e=ct(n);return isNaN(e.getTime())?new Date(NaN):(i.year!=null&&e.setFullYear(i.year),i.month!=null&&(e=wo(e,i.month)),i.date!=null&&e.setDate(ut(i.date)),i.hours!=null&&e.setHours(ut(i.hours)),i.minutes!=null&&e.setMinutes(ut(i.minutes)),i.seconds!=null&&e.setSeconds(ut(i.seconds)),i.milliseconds!=null&&e.setMilliseconds(ut(i.milliseconds)),e)}function Mg(n,i){tt(2,arguments);var e=ct(n),t=ut(i);return e.setHours(t),e}function Xc(n,i){tt(2,arguments);var e=ct(n),t=ut(i);return e.setMilliseconds(t),e}function Ag(n,i){tt(2,arguments);var e=ct(n),t=ut(i);return e.setMinutes(t),e}function jg(n,i){tt(2,arguments);var e=ct(n),t=ut(i);return e.setSeconds(t),e}function wa(n,i){tt(2,arguments);var e=ct(n),t=ut(i);return isNaN(e.getTime())?new Date(NaN):(e.setFullYear(t),e)}function As(n,i){tt(2,arguments);var e=ut(i);return Fn(n,-e)}
48function YD(n,i){if(tt(2,arguments),!i||tn(i)!=="object")return new Date(NaN);var e=i.years?ut(i.years):0,t=i.months?ut(i.months):0,r=i.weeks?ut(i.weeks):0,a=i.days?ut(i.days):0,s=i.hours?ut(i.hours):0,o=i.minutes?ut(i.minutes):0,l=i.seconds?ut(i.seconds):0,u=As(n,t+e*12),h=CD(u,a+r*7),d=o+s*60,f=l+d*60,p=f*1e3,v=new Date(h.getTime()-p);return v}function WD(n,i){tt(2,arguments);var e=ut(i);return pg(n,-e)}function Uu(){return oe(),we("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[ae("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),ae("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),ae("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),ae("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}function BD(){return oe(),we("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[ae("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),ae("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function yp(){return oe(),we("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[ae("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function vp(){return oe(),we("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[ae("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}function Vg(){return oe(),we("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[ae("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),ae("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}function Fg(){return oe(),we("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[ae("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function Ig(){return oe(),we("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[ae("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}const gp=(n,i,e,t,r)=>{const a=Md(n,i.slice(0,n.length),new Date);return xo(a)&&yg(a)?t||r?a:or(a,{hours:+e.hours,minutes:+e?.minutes,seconds:+e?.seconds,milliseconds:0}):null},zD=(n,i,e,t,r)=>{const a=Array.isArray(e)?e[0]:e;if(typeof i=="string")return gp(n,i,a,t,r);if(Array.isArray(i)){let s=null;for(const o of i)if(s=gp(n,o,a,t,r),s)break;return s}return typeof i=="function"?i(n):null},Ce=n=>n?new Date(n):new Date,UD=(n,i)=>{if(i){const t=(n.getMonth()+1).toString().padStart(2,"0"),r=n.getDate().toString().padStart(2,"0"),a=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0");return`${n.getFullYear()}-${t}-${r}T${a}:${s}:00.000Z`}const e=Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds());return new Date(e).toISOString()},xn=n=>{let i=Ce(JSON.parse(JSON.stringify(n)));return i=Mg(i,0),i=Ag(i,0),i=jg(i,0),i=Xc(i,0),i},Kr=(n,i,e,t)=>{let r=n?Ce(n):Ce();
48return(i||i===0)&&(r=Mg(r,+i)),(e||e===0)&&(r=Ag(r,+e)),(t||t===0)&&(r=jg(r,+t)),Xc(r,0)},gr=(n,i)=>!n||!i?!1:No(xn(n),xn(i)),ci=(n,i)=>!n||!i?!1:Ds(xn(n),xn(i)),kr=(n,i)=>!n||!i?!1:Ro(xn(n),xn(i)),Eg=(n,i,e)=>n&&n[0]&&n[1]?kr(e,n[0])&&gr(e,n[1]):n&&n[0]&&i?kr(e,n[0])&&gr(e,i)||gr(e,n[0])&&kr(e,i):!1,lo=n=>{const i=or(new Date(n),{date:1});return xn(i)},Ih=(n,i,e)=>i&&(e||e===0)?Object.fromEntries(["hours","minutes","seconds"].map(t=>t===i?[t,e]:[t,isNaN(+n[t])?void 0:+n[t]])):{hours:isNaN(+n.hours)?void 0:+n.hours,minutes:isNaN(+n.minutes)?void 0:+n.minutes,seconds:isNaN(+n.seconds)?void 0:+n.seconds},uo=Ho({menuFocused:!1,shiftKeyInMenu:!1}),Lg=()=>{const n=e=>{uo.menuFocused=e},i=e=>{uo.shiftKeyInMenu!==e&&(uo.shiftKeyInMenu=e)};return{control:je(()=>({shiftKeyInMenu:uo.shiftKeyInMenu,menuFocused:uo.menuFocused})),setMenuFocused:n,setShiftKey:i}};function Gc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Rg={exports:{}};(function(n){function i(e){return e&&e.__esModule?e:{default:e}}n.exports=i,n.exports.__esModule=!0,n.exports.default=n.exports})(Rg);var XD=Rg.exports,Ad={exports:{}};(function(n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=e;function e(t){if(t===null||t===!0||t===!1)return NaN;var r=Number(t);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}n.exports=i.default})(Ad,Ad.exports);var GD=Ad.exports;const $D=Gc(GD);var jd={exports:{}};(function(n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=e;function e(t){var r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),t.getTime()-r.getTime()}n.exports=i.default})(jd,jd.exports);var KD=jd.exports;const mp=Gc(KD);function qD(n,i){var e=eS(i);return e.formatToParts?QD(e,n):JD(e,n)}var ZD={year:0,month:1,day:2,hour:3,minute:4,second:5};function QD(n,i){try{for(var e=n.formatToParts(i),t=[],r=0;r<e.length;r++){var a=ZD[e[r].type];a>=0&&(t[a]=parseInt(e[r].value,10))}return t}catch(s){if(s instanceof RangeError)return[NaN];throw s}}function JD(n,i){var e=n.format(i).replace(/\u200E/g,""),t=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);return[t[3],t[1],t[2],t[4],t[5],t[6]]}var Eh={};function eS(n){if(!Eh[n]){var i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),e=i==="06/25/2014, 00:00:00"||i==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";Eh[n]=e?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Eh[n]}function $c(n,i,e,t,r,a,s){var o=new Date(0);return o.setUTCFullYear(n,i,e),o.setUTCHours(t,r,a,s),o}var bp=36e5,tS=6e4,Lh={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function Kc(n,i,e){var t,r;if(!n||(t=Lh.timezoneZ.exec(n),t))return 0;var a;if(t=Lh.timezoneHH.exec(n),t)return a=parseInt(t[1],10),xp(a)?-(a*bp):NaN;if(t=Lh.timezoneHHMM.exec(n),t){a=parseInt(t[1],10);var s=parseInt(t[2],10);return xp(a,s)?(r=Math.abs(a)*bp+s*tS,a>0?-r:r):NaN}if(nS(n)){i=new Date(i||Date.now());var o=e?i:iS(i),l=Vd(o,n),u=e?l:rS(i,l,n);return-u}return NaN}function iS(n){return $c(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function Vd(n,i){var e=qD(n,i),t=$c(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime(),r=n.getTime(),a=r%1e3;return r-=a>=0?a:1e3+a,t-r}function rS(n,i,e){var t=n.getTime(),r=t-i,a=Vd(new Date(r),e);if(i===a)return i;r-=a-i;var s=Vd(new Date(r),e);return a===s?a:Math.max(a,s)}function xp(n,i){return-23<=n&&n<=23&&(i==null||0<=i&&i<=59)}var _p={};function nS(n){if(_p[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),_p[n]=!0,!0}catch{return!1}}var aS=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const Ng=aS;var Rh=36e5,wp=6e4,sS=2,Or={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Ng};
48function Fd(n,i){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);var e=i||{},t=e.additionalDigits==null?sS:$D(e.additionalDigits);if(t!==2&&t!==1&&t!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var r=oS(n),a=lS(r.date,t),s=a.year,o=a.restDateString,l=uS(o,s);if(isNaN(l))return new Date(NaN);if(l){var u=l.getTime(),h=0,d;if(r.time&&(h=hS(r.time),isNaN(h)))return new Date(NaN);if(r.timeZone||e.timeZone){if(d=Kc(r.timeZone||e.timeZone,new Date(u+h)),isNaN(d))return new Date(NaN)}else d=mp(new Date(u+h)),d=mp(new Date(u+h+d));return new Date(u+h+d)}else return new Date(NaN)}function oS(n){var i={},e=Or.dateTimePattern.exec(n),t;if(e?(i.date=e[1],t=e[3]):(e=Or.datePattern.exec(n),e?(i.date=e[1],t=e[2]):(i.date=null,t=n)),t){var r=Or.timeZone.exec(t);r?(i.time=t.replace(r[1],""),i.timeZone=r[1].trim()):i.time=t}return i}function lS(n,i){var e=Or.YYY[i],t=Or.YYYYY[i],r;if(r=Or.YYYY.exec(n)||t.exec(n),r){var a=r[1];return{year:parseInt(a,10),restDateString:n.slice(a.length)}}if(r=Or.YY.exec(n)||e.exec(n),r){var s=r[1];return{year:parseInt(s,10)*100,restDateString:n.slice(s.length)}}return{year:null}}function uS(n,i){if(i===null)return null;var e,t,r,a;if(n.length===0)return t=new Date(0),t.setUTCFullYear(i),t;if(e=Or.MM.exec(n),e)return t=new Date(0),r=parseInt(e[1],10)-1,Cp(i,r)?(t.setUTCFullYear(i,r),t):new Date(NaN);if(e=Or.DDD.exec(n),e){t=new Date(0);var s=parseInt(e[1],10);return fS(i,s)?(t.setUTCFullYear(i,0,s),t):new Date(NaN)}if(e=Or.MMDD.exec(n),e){t=new Date(0),r=parseInt(e[1],10)-1;var o=parseInt(e[2],10);return Cp(i,r,o)?(t.setUTCFullYear(i,r,o),t):new Date(NaN)}if(e=Or.Www.exec(n),e)return a=parseInt(e[1],10)-1,Dp(i,a)?Pp(i,a):new Date(NaN);if(e=Or.WwwD.exec(n),e){a=parseInt(e[1],10)-1;var l=parseInt(e[2],10)-1;return Dp(i,a,l)?Pp(i,a,l):new Date(NaN)}return null}function hS(n){var i,e,t;if(i=Or.HH.exec(n),i)return e=parseFloat(i[1].replace(",",".")),Nh(e)?e%24*Rh:NaN;if(i=Or.HHMM.exec(n),i)return e=parseInt(i[1],10),t=parseFloat(i[2].replace(",",".")),Nh(e,t)?e%24*Rh+t*wp:NaN;if(i=Or.HHMMSS.exec(n),i){e=parseInt(i[1],10),t=parseInt(i[2],10);var r=parseFloat(i[3].replace(",","."));return Nh(e,t,r)?e%24*Rh+t*wp+r*1e3:NaN}return null}function Pp(n,i,e){i=i||0,e=e||0;var t=new Date(0);t.setUTCFullYear(n,0,4);var r=t.getUTCDay()||7,a=i*7+e+1-r;return t.setUTCDate(t.getUTCDate()+a),t}var dS=[31,28,31,30,31,30,31,31,30,31,30,31],cS=[31,29,31,30,31,30,31,31,30,31,30,31];function Hg(n){return n%400===0||n%4===0&&n%100!==0}function Cp(n,i,e){if(i<0||i>11)return!1;if(e!=null){if(e<1)return!1;var t=Hg(n);if(t&&e>cS[i]||!t&&e>dS[i])return!1}return!0}
48function fS(n,i){if(i<1)return!1;var e=Hg(n);return!(e&&i>366||!e&&i>365)}function Dp(n,i,e){return!(i<0||i>52||e!=null&&(e<0||e>6))}function Nh(n,i,e){return!(n!=null&&(n<0||n>=25)||i!=null&&(i<0||i>=60)||e!=null&&(e<0||e>=60))}var Id={exports:{}},Ed={exports:{}};(function(n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=e;function e(t,r){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t}n.exports=i.default})(Ed,Ed.exports);var pS=Ed.exports;(function(n,i){var e=XD.default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=r;var t=e(pS);function r(a){return(0,t.default)({},a)}n.exports=i.default})(Id,Id.exports);var yS=Id.exports;const vS=Gc(yS);function gS(n,i,e){var t=Fd(n,e),r=Kc(i,t,!0),a=new Date(t.getTime()-r),s=new Date(0);return s.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),s.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),s}function mS(n,i,e){if(typeof n=="string"&&!n.match(Ng)){var t=vS(e);return t.timeZone=i,Fd(n,t)}var r=Fd(n,e),a=$c(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()).getTime(),s=Kc(i,new Date(a));return new Date(a+s)}const bS=(n,i=3)=>{const e=[];for(let t=0;t<n.length;t+=i)e.push([n[t],n[t+1],n[t+2]]);return e},xS=(n,i)=>{const e=[1,2,3,4,5,6,7].map(a=>new Intl.DateTimeFormat(n,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${a}T00:00:00+00:00`)).slice(0,2)),t=e.slice(0,i),r=e.slice(i+1,e.length);return[e[i]].concat(...r).concat(...t)},_S=(n,i)=>{const e=[];for(let t=+n[0];t<=+n[1];t++)e.push({value:+t,text:`${t}`});return i?e.reverse():e},wS=(n,i)=>{const e=new Intl.DateTimeFormat(n,{month:i,timeZone:"UTC"});return[1,2,3,4,5,6,7,8,9,10,11,12].map(t=>{const r=t<10?`0${t}`:t;return new Date(`2017-${r}-01T00:00:00+00:00`)}).map((t,r)=>{let a=e.format(t);return{text:a.charAt(0).toUpperCase()+a.substring(1),value:r}})},PS=n=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][n],Ri=n=>{const i=q(n);return i!=null&&i.$el?i?.$el:i},CS=n=>Object.assign({type:"dot"},n),Yg=n=>Array.isArray(n)?!!n[0]&&!!n[1]:!1,cu={prop:n=>`"${n}" prop must be enabled!`,dateArr:n=>`You need to use array as "model-value" binding in order to support "${n}"`},yr=n=>n,Sp=n=>n===0?n:!n||isNaN(+n)?null:+n,Op=n=>Object.assign({menuAppear:"",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down"},n),DS=n=>Object.assign({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:i=>`Increment ${i}`,decrementValue:i=>`Decrement ${i}`,openTpOverlay:i=>`Open ${i} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",day:()=>""},n),SS=n=>n===null?0:typeof n=="boolean"?n?2:0:+n>=2?+n:2,OS=(n,i,e)=>n||(typeof e=="string"?e:i),TS=n=>typeof n=="boolean"?n?Op({}):!1:Op(n),kS=()=>({enterSubmit:!0,tabSubmit:!0,openMenu:!0,rangeSeparator:" - "}),MS=n=>Object.assign({months:[],years:[],times:{hours:[],minutes:[],seconds:[]}},n),AS=n=>Object.assign({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0},n),Br=n=>{const i=()=>{if(n.partialRange)return null;throw new Error(cu.prop("partial-range"))},e=je(()=>({ariaLabels:DS(n.ariaLabels),textInputOptions:Object.assign(kS(),n.textInputOptions),multiCalendars:SS(n.multiCalendars),previewFormat:OS(n.previewFormat,n.format,a()),filters:MS(n.filters),transitions:TS(n.transitions),startTime:f(),actionRow:AS(n.actionRow)})),t=I=>{if(n.range)return I();throw new Error(cu.prop("range"))},r=()=>{const I=n.enableSeconds?":ss":"";return n.is24?`HH:mm${I}`:`hh:mm${I} aa`},a=()=>n.format?n.format:n.monthPicker?"MM/yyyy":n.timePicker?r():n.weekPicker?"MM/dd/yyyy":n.yearPicker?"yyyy":n.enableTimePicker?`MM/dd/yyyy, ${r()}`:"MM/dd/yyyy",s=(I,te)=>{if(typeof n.format=="function")return n.format(I);const A=te||a(),Q=n.formatLocale?{locale:n.formatLocale}:void 0;return Array.isArray(I)?`${_o(I[0],A,Q)} ${n.modelAuto&&!I[1]?"":e.value.textInputOptions.rangeSeparator||"-"} ${I[1]?_o(I[1],A,Q):""}`:_o(I,A,Q)},o=I=>n.timezone?gS(I,n.timezone):I,l=I=>n.timezone?mS(I,n.timezone):I,u=je(()=>I=>{var te;return(te=n.hideNavigation)==null?void 0:te.includes(I)}),h=I=>{const te=n.maxDate?kr(o(I),o(Ce(n.maxDate))):!1,A=n.minDate?gr(o(I),o(Ce(n.minDate))):!1,Q=w(I,n.disabledDates),he=e.value.filters.months.map(Ue=>+Ue).includes(xi(I)),K=n.disabledWeekDays.length?n.disabledWeekDays.some(Ue=>+Ue===bC(I)):!1,le=n.allowedDates.length?!n.allowedDates.some(Ue=>ci(o(Ce(Ue)),o(I))):!1,E=Pi(I),ne=E<+n.yearRange[0]||E>+n.yearRange[1];return!(te||A||Q||he||ne||K||le)},d=I=>{const te={hours:qn(Ce()),minutes:Zn(Ce()),seconds:n.enableSeconds?Es(Ce()):0};return Object.assign(te,I)},f=()=>n.range?n.startTime&&Array.isArray(n.startTime)?[d(n.startTime[0]),d(n.startTime[1])]:null:n.startTime&&!Array.isArray(n.startTime)?d(n.startTime):null,p=I=>!h(I),v=I=>Array.isArray(I)?xo(I[0])&&(I[1]?xo(I[1]):!0):I?xo(I):!1,m=I=>I instanceof Date?I:DD(I),x=I=>{const te=rs(o(I),{weekStartsOn:+n.weekStart}),A=pP(o(I),{weekStartsOn:+n.weekStart});return[te,A]},w=(I,te)=>Array.isArray(te)?te.some(A=>ci(o(Ce(A)),o(I))):te(Ce(JSON.parse(JSON.stringify(I)))),P=(I,te,A)=>{let Q=I?Ce(I):Ce();return(te||te===0)&&(Q=wo(Q,te)),A&&(Q=wa(Q,A)),Q},O=I=>or(Ce(),{hours:qn(I),minutes:Zn(I),seconds:Es(I)}),j=I=>
48or(Ce(),{hours:+I.hours||0,minutes:+I.minutes||0,seconds:+I.seconds||0}),M=(I,te,A,Q)=>{if(!I)return!0;if(Q){const he=A==="max"?No(I,te):Ro(I,te),K={seconds:0,milliseconds:0};return he||Ds(or(I,K),or(te,K))}return A==="max"?I.getTime()<=te.getTime():I.getTime()>=te.getTime()},F=()=>!n.enableTimePicker||n.monthPicker||n.yearPicker||n.ignoreTimeValidation,g=I=>Array.isArray(I)?[I[0]?O(I[0]):null,I[1]?O(I[1]):null]:O(I),L=I=>{const te=n.maxTime?j(n.maxTime):Ce(n.maxDate);return Array.isArray(I)?M(I[0],te,"max",!!n.maxDate)&&M(I[1],te,"max",!!n.maxDate):M(I,te,"max",!!n.maxDate)},N=(I,te)=>{const A=n.minTime?j(n.minTime):Ce(n.minDate);return Array.isArray(I)?M(I[0],A,"min",!!n.minDate)&&M(I[1],A,"min",!!n.minDate)&&te:M(I,A,"min",!!n.minDate)&&te},ye=I=>{let te=!0;if(!I||F())return!0;const A=!n.minDate&&!n.maxDate?g(I):I;return(n.maxTime||n.maxDate)&&(te=L(yr(A))),(n.minTime||n.minDate)&&(te=N(yr(A),te)),te},H=(I,te)=>{const A=Ce(JSON.parse(JSON.stringify(I))),Q=[];for(let he=0;he<7;he++){const K=ta(A,he),le=xi(K)!==te;Q.push({text:n.hideOffsetDates&&le?"":K.getDate(),value:K,current:!le,classData:{}})}return Q},z=(I,te)=>{const A=[],Q=Ce(o(new Date(te,I))),he=Ce(o(new Date(te,I+1,0))),K=n.weekStart,le=rs(Q,{weekStartsOn:K}),E=ne=>{const Ue=H(ne,I);if(A.push({days:Ue}),!A[A.length-1].days.some(Ve=>ci(xn(Ve.value),xn(he)))){const Ve=ta(ne,7);E(Ve)}};if(E(le),n.sixWeeks&&A.length<6){const ne=6-A.length,Ue=(Q.getDay()+7-K)%7,Ve=6-(he.getDay()+7-K)%7,[Ye,Xe]=(()=>{switch(n.sixWeeks===!0?"append":n.sixWeeks){case"prepend":return[!0,!1];case"center":return[Ue==0,!0];case"fair":return[Ue==0||Ve>Ue,!0];default:case"append":return[!1,!1]}})();for(let ft=1;ft<=ne;ft++)if(Xe?!!(ft%2)==Ye:Ye){const Ke=A[0].days[0],oi=H(ta(Ke.value,-7),xi(Q));A.unshift({days:oi})}else{const Ke=A[A.length-1],oi=Ke.days[Ke.days.length-1],Oi=H(ta(oi.value,1),xi(Q));A.push({days:Oi})}}return A},Z=(I,te,A)=>[or(Ce(I),{date:1}),or(Ce(),{month:te,year:A,date:1})],_e=(I,te)=>gr(...Z(n.minDate,I,te))||ci(...Z(n.minDate,I,te)),ve=(I,te)=>kr(...Z(n.maxDate,I,te))||ci(...Z(n.maxDate,I,te)),$=(I,te,A)=>{let Q=!1;return n.maxDate&&A&&ve(I,te)&&(Q=!0),n.minDate&&!A&&_e(I,te)&&(Q=!0),Q};return{checkPartialRangeValue:i,checkRangeEnabled:t,getZonedDate:o,getZonedToUtc:l,formatDate:s,getDefaultPattern:a,validateDate:h,getDefaultStartTime:f,isDisabled:p,isValidDate:v,sanitizeDate:m,getWeekFromDate:x,matchDate:w,setDateMonthOrYear:P,isValidTime:ye,getCalendarDays:z,validateMonthYearInRange:(I,te,A,Q)=>{let he=!1;return Q?n.minDate&&n.maxDate?he=$(I,te,A):(n.minDate&&_e(I,te)||n.maxDate&&ve(I,te))&&(he=!0):he=!0,he},validateMaxDate:ve,validateMinDate:_e,assignDefaultTime:d,defaults:e,hideNavigationButtons:u}},wi=Ho({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),Hh=Re(null),gl=Re(!1),Yh=Re(!1),Wh=Re(!1),Bh=Re(!1),Dr=Re(0),hr=Re(0),Aa=()=>{const n=je(()=>gl.value?[...wi.selectionGrid,wi.actionRow].filter(d=>d.length):Yh.value?[...wi.timePicker[0],...wi.timePicker[1],Bh.value?[]:[Hh.value],wi.actionRow].filter(d=>d.length):Wh.value?[...wi.monthPicker,wi.actionRow]:[wi.monthYear,...wi.calendar,wi.time,wi.actionRow].filter(d=>d.length)),i=d=>{Dr.value=d?Dr.value+1:Dr.value-1;let f=null;n.value[hr.value]&&(f=n.value[hr.value][Dr.value]),f||(Dr.value=d?Dr.value-1:Dr.value+1)},e=d=>{hr.value===0&&!d||hr.value===n.value.length&&d||(hr.value=d?hr.value+1:hr.value-1,n.value[hr.value]?n.value[hr.value]&&!n.value[hr.value][Dr.value]&&Dr.value!==0&&(Dr.value=n.value[hr.value].length-1):hr.value=d?hr.value-1:hr.value+1)},t=d=>{let f=null;n.value[hr.value]&&(f=n.value[hr.value][Dr.value]),f?f.focus({preventScroll:!gl.value}):Dr.value=d?Dr.value-1:Dr.value+1},r=()=>{i(!0),t(!0)},a=()=>{i(!1),t(!1)},s=()=>{e(!1),t(!0)},o=()=>{e(!0),t(!0)},l=(d,f)=>{wi[f]=d},u=(d,f)=>{wi[f]=d},h=()=>{Dr.value=0,hr.value=0};return{buildMatrix:l,buildMultiLevelMatrix:u,setTimePickerBackRef:d=>{Hh.value=d},setSelectionGrid:d=>{gl.value=d,h(),d||(wi.selectionGrid=[])},setTimePicker:(d,f=!1)=>{Yh.value=d,Bh.value=f,h(),d||(wi.timePicker[0]=[],wi.timePicker[1]=[])},setTimePickerElements:(d,f=0)=>{wi.timePicker[f]=d},arrowRight:r,arrowLeft:a,arrowUp:s,arrowDown:o,clearArrowNav:()=>{wi.monthYear=[],wi.calendar=[],wi.time=[],wi.actionRow=[],wi.selectionGrid=[],wi.timePicker[0]=[],wi.timePicker[1]=[],gl.value=!1,Yh.value=!1,Bh.value=!1,Wh.value=!1,h(),Hh.value=null},setMonthPicker:d=>{Wh.value=d,h()},refSets:wi}},Tp=n=>Array.isArray(n),Ha=n=>Array.isArray(n),kp=n=>Array.isArray(n)&&n.length===2,jS=(n,i,e,t,r)=>{const{getDefaultStartTime:a,isDisabled:s,sanitizeDate:o,getWeekFromDate:l,setDateMonthOrYear:u,validateMonthYearInRange:h,defaults:d}=Br(n),f=je({get:()=>n.internalModelValue,set:X=>{!n.readonly&&!n.disabled&&i("update:internal-model-value",X)}}),p=Re([]);Pa(f,()=>{F()});const v=Co(n,"multiCalendars");Pa(v,()=>{Ct(0)});const m=Re([{month:xi(Ce()),year:Pi(Ce())}]),x=Ho({hours:n.range?[qn(Ce()),qn(Ce())]:qn(Ce()),minutes:n.range?[Zn(Ce()),Zn(Ce())]:Zn(Ce()),seconds:n.range?[0,0]:0}),w=je(()=>X=>m.value[X]?m.value[X].month:0),P=je(()=>X=>m.value[X]?m.value[X].year:0),O=je(()=>n.flow&&n.flow.length&&!n.partialFlow?r.value===n.flow.length:!0),j=(X,ge,ze)=>{var rt,qt;m.value[X]||(m.value[X]={month:0,year:0}),m.value[X].month=ge===null?(rt=m.value[X])==null?void 0:rt.month:ge,m.value[X].year=ze===null?(qt=m.value[X])==null?void 0:qt.year:ze},M=(X,ge)=>{x[X]=ge};nn(()=>{f.value||(n.startDate&&(j(0,xi(Ce(n.startDate)),Pi(Ce(n.startDate))),d.value.multiCalendars&&Ct(0)),d.value.startTime&&$()),F(!0)});const F=(X=!1)=>
48{if(f.value)return Array.isArray(f.value)?(p.value=f.value,H(X)):L(f.value);if(n.timePicker)return z();if(n.monthPicker&&!n.range)return Z();if(n.yearPicker&&!n.range)return _e();if(d.value.multiCalendars&&X&&!n.startDate)return g(Ce(),X)},g=(X,ge=!1)=>{if((!d.value.multiCalendars||!n.multiStatic||ge)&&j(0,xi(X),Pi(X)),d.value.multiCalendars)for(let ze=1;ze<d.value.multiCalendars;ze++){const rt=or(Ce(),{month:w.value(ze-1),year:P.value(ze-1)}),qt=fg(rt,{months:1});m.value[ze]={month:xi(qt),year:Pi(qt)}}},L=X=>{g(X),M("hours",qn(X)),M("minutes",Zn(X)),M("seconds",Es(X))},N=(X,ge)=>{g(X[0],ge);const ze=(rt,qt)=>[rt(X[0]),X[1]?rt(X[1]):x[qt][1]];M("hours",ze(qn,"hours")),M("minutes",ze(Zn,"minutes")),M("seconds",ze(Es,"seconds"))},ye=(X,ge)=>{if((n.range||n.weekPicker)&&!n.multiDates)return N(X,ge);if(n.multiDates){const ze=X[X.length-1];return L(ze)}},H=X=>{const ge=f.value;ye(ge,X),d.value.multiCalendars&&n.multiCalendarsSolo&&te()},z=()=>{if($(),!n.range)f.value=Kr(Ce(),x.hours,x.minutes,ve());else{const X=x.hours,ge=x.minutes;f.value=[Kr(Ce(),X[0],ge[0],ve()),Kr(Ce(),X[1],ge[1],ve(!1))]}},Z=()=>{n.multiDates?f.value=[u(Ce(),w.value(0),P.value(0))]:f.value=u(Ce(),w.value(0),P.value(0))},_e=()=>{f.value=Ce()},ve=(X=!0)=>n.enableSeconds?Array.isArray(x.seconds)?X?x.seconds[0]:x.seconds[1]:x.seconds:0,$=()=>{const X=a();if(X){const ge=Array.isArray(X),ze=ge?[+X[0].hours,+X[1].hours]:+X.hours,rt=ge?[+X[0].minutes,+X[1].minutes]:+X.minutes,qt=ge?[+X[0].seconds,+X[1].seconds]:+X.seconds;M("hours",ze),M("minutes",rt),n.enableSeconds&&M("seconds",qt)}},I=()=>Array.isArray(f.value)&&f.value.length?f.value[f.value.length-1]:null,te=()=>{if(Array.isArray(f.value)&&f.value.length===2){const X=Ce(Ce(f.value[1]?f.value[1]:Fn(f.value[0],1))),[ge,ze]=[xi(f.value[0]),Pi(f.value[0])],[rt,qt]=[xi(f.value[1]),Pi(f.value[1])];(ge!==rt||ge===rt&&ze!==qt)&&n.multiCalendarsSolo&&j(1,xi(X),Pi(X))}},A=X=>{const ge=Fn(X,1);return{month:xi(ge),year:Pi(ge)}},Q=X=>{const ge=xi(Ce(X)),ze=Pi(Ce(X));if(j(0,ge,ze),d.value.multiCalendars>0)for(let rt=1;rt<d.value.multiCalendars;rt++){const qt=A(or(Ce(X),{year:w.value(rt-1),month:P.value(rt-1)}));j(rt,qt.month,qt.year)}},he=X=>{if(f.value&&Array.isArray(f.value))if(f.value.some(ge=>ci(X,ge))){const ge=f.value.filter(ze=>!ci(ze,X));f.value=ge.length?ge:null}else(n.multiDatesLimit&&+n.multiDatesLimit>f.value.length||!n.multiDatesLimit)&&f.value.push(X);else f.value=[X]},K=(X,ge)=>{const ze=kr(X,ge)?ge:X,rt=kr(ge,X)?ge:X;return lp({start:ze,end:rt})},le=(X,ge=0)=>{if(Array.isArray(f.value)&&f.value[ge]){const ze=cP(X,f.value[ge]),rt=K(f.value[ge],X),qt=rt.length===1?0:rt.filter(Pr=>s(Pr)).length,Ur=Math.abs(ze)-qt;if(n.minRange&&n.maxRange)return Ur>=+n.minRange&&Ur<=+n.maxRange;if(n.minRange)return Ur>=+n.minRange;if(n.maxRange)return Ur<=+n.maxRange}return!0},E=X=>Array.isArray(f.value)&&f.value.length===2?n.fixedStart&&(kr(X,f.value[0])||ci(X,f.value[0]))?[f.value[0],X]:n.fixedEnd&&(gr(X,f.value[1])||ci(X,f.value[1]))?[X,f.value[1]]:(i("invalid-fixed-range",X),f.value):[],ne=()=>{n.autoApply&&O.value&&i("auto-apply",n.partialFlow)},Ue=()=>{n.autoApply&&i("select-date")},Ve=X=>!lp({start:X[0],end:X[1]}).some(ge=>s(ge)),Ye=X=>(f.value=l(Ce(X.value)),ne()),Xe=X=>{const ge=Kr(Ce(X.value),x.hours,x.minutes,ve());n.multiDates?he(ge):f.value=ge,e(),ne()},ft=()=>{p.value=f.value?f.value.slice():[],p.value.length===2&&!(n.fixedStart||n.fixedEnd)&&(p.value=[])},Ke=(X,ge)=>{const ze=[Ce(X.value),ta(Ce(X.value),+n.autoRange)];Ve(ze)&&(ge&&Q(X.value),p.value=ze)},oi=X=>{Oi(X.value)||!le(X.value,n.fixedStart?0:1)||(p.value=E(Ce(X.value)))},Oi=X=>n.noDisabledRange?K(p.value[0],X).some(ge=>s(ge)):!1,gi=(X,ge)=>{if(ft(),n.autoRange)return Ke(X,ge);if(n.fixedStart||n.fixedEnd)return oi(X);p.value[0]?le(Ce(X.value))&&!Oi(X.value)&&(gr(Ce(X.value),Ce(p.value[0]))?p.value.unshift(Ce(X.value)):p.value[1]=Ce(X.value)):p.value[0]=Ce(X.value)},Zi=X=>{p.value[X]=Kr(p.value[X],x.hours[X],x.minutes[X],ve(X!==1))},Mr=()=>{p.value.length&&(p.value[0]&&!p.value[1]?Zi(0):(Zi(0),Zi(1),e()),f.value=p.value.slice(),p.value[0]&&p.value[1]&&n.autoApply&&i("auto-apply"),p.value[0]&&!p.value[1]&&n.modelAuto&&n.autoApply&&i("auto-apply"))},wr=(X,ge=!1)=>
48{if(!(s(X.value)||!X.current&&n.hideOffsetDates)){if(n.weekPicker)return Ye(X);if(!n.range)return Xe(X);Ha(x.hours)&&Ha(x.minutes)&&!n.multiDates&&(gi(X,ge),Mr())}},We=X=>{const ge=X[0];return n.weekNumbers==="local"?SC(ge.value,{weekStartsOn:+n.weekStart}):n.weekNumbers==="iso"?wC(ge.value):typeof n.weekNumbers=="function"?n.weekNumbers(ge.value):""},Ct=X=>{for(let ge=X-1;ge>=0;ge--){const ze=As(or(Ce(),{month:w.value(ge+1),year:P.value(ge+1)}),1);j(ge,xi(ze),Pi(ze))}for(let ge=X+1;ge<=d.value.multiCalendars-1;ge++){const ze=Fn(or(Ce(),{month:w.value(ge-1),year:P.value(ge-1)}),1);j(ge,xi(ze),Pi(ze))}},vt=X=>u(Ce(),w.value(X),P.value(X)),Ar=X=>Kr(X,x.hours,x.minutes,ve()),Vi=X=>{he(vt(X))},on=(X,ge)=>{const ze=n.monthPicker?w.value(X)!==ge.month||!ge.fromNav:P.value(X)!==ge.year||!ge.fromNav;if(j(X,ge.month,ge.year),d.value.multiCalendars&&!n.multiCalendarsSolo&&Ct(X),n.monthPicker||n.yearPicker)if(n.multiDates)ze&&Vi(X);else if(n.range){if(ze&&le(vt(X))){let rt=f.value?f.value.slice():[];rt.length===2&&rt[1]!==null&&(rt=[]),rt.length?gr(vt(X),rt[0])?rt.unshift(vt(X)):rt[1]=vt(X):rt=[vt(X)],f.value=rt}}else f.value=vt(X);i("update-month-year",{instance:X,month:ge.month,year:ge.year}),t(n.multiCalendarsSolo?X:void 0)},ln=async(X=!1)=>{if(n.autoApply&&(n.monthPicker||n.yearPicker)){await ia();const ge=n.monthPicker?X:!1;n.range?i("auto-apply",ge||!f.value||f.value.length===1):i("auto-apply",ge)}e()},Be=(X,ge)=>{const ze=or(Ce(),{month:w.value(ge),year:P.value(ge)}),rt=X<0?Fn(ze,1):As(ze,1);h(xi(rt),Pi(rt),X<0,n.preventMinMaxNavigation)&&(j(ge,xi(rt),Pi(rt)),d.value.multiCalendars&&!n.multiCalendarsSolo&&Ct(ge),i("update-month-year",{instance:ge,month:xi(rt),year:Pi(rt)}),t())},Fi=X=>{Tp(X)&&Tp(f.value)&&Ha(x.hours)&&Ha(x.minutes)?(X[0]&&f.value[0]&&(f.value[0]=Kr(X[0],x.hours[0],x.minutes[0],ve())),X[1]&&f.value[1]&&(f.value[1]=Kr(X[1],x.hours[1],x.minutes[1],ve(!1)))):n.multiDates&&Array.isArray(f.value)?f.value[f.value.length-1]=Ar(X):!n.range&&!kp(X)&&(f.value=Ar(X)),i("time-update")},ha=(X,ge=!0,ze=!1)=>{const rt=ge?X:x.hours,qt=!ge&&!ze?X:x.minutes,Ur=ze?X:x.seconds;if(n.range&&kp(f.value)&&Ha(rt)&&Ha(qt)&&Ha(Ur)&&!n.disableTimeRangeValidation){const Pr=me=>Kr(f.value[me],rt[me],qt[me],Ur[me]),Va=me=>Xc(f.value[me],0);if(ci(f.value[0],f.value[1])&&(Ro(Pr(0),Va(1))||No(Pr(1),Va(0))))return}if(M("hours",rt),M("minutes",qt),M("seconds",Ur),f.value)if(n.multiDates){const Pr=I();Pr&&Fi(Pr)}else Fi(f.value);else n.timePicker&&Fi(n.range?[Ce(),Ce()]:Ce());e()},li=(X,ge)=>{n.monthChangeOnScroll&&Be(n.monthChangeOnScroll!=="inverse"?-X.deltaY:X.deltaY,ge)},zr=(X,ge,ze=!1)=>{n.monthChangeOnArrows&&n.vertical===ze&&Ii(X,ge)},Ii=(X,ge)=>{Be(X==="right"?-1:1,ge)};return{time:x,month:w,year:P,modelValue:f,calendars:m,monthYearSelect:ln,isDisabled:s,updateTime:ha,getWeekNum:We,selectDate:wr,updateMonthYear:on,handleScroll:li,getMarker:X=>n.markers.find(ge=>ci(o(X.value),o(ge.date))),handleArrow:zr,handleSwipe:Ii,selectCurrentDate:()=>{n.range?f.value&&Array.isArray(f.value)&&f.value[0]?f.value=gr(Ce(),f.value[0])?[Ce(),f.value[0]]:[f.value[0],Ce()]:f.value=[Ce()]:f.value=Ce(),Ue()},presetDateRange:(X,ge)=>{ge||X.length&&X.length<=2&&n.range&&(f.value=X.map(ze=>Ce(ze)),Ue(),n.multiCalendars&&ia().then(()=>F(!0)))}}},VS=(n,i,e)=>{const t=Re(),{getZonedToUtc:r,getZonedDate:a,formatDate:s,getDefaultPattern:o,checkRangeEnabled:l,checkPartialRangeValue:u,isValidDate:h,setDateMonthOrYear:d,defaults:f}=Br(i),p=Re(""),v=Co(i,"format");Pa(t,()=>{n("internal-model-change",t.value)}),Pa(v,()=>{te()});const m=E=>{const ne=E||Ce();return i.modelType?Q(ne):{hours:qn(ne),minutes:Zn(ne),seconds:i.enableSeconds?Es(ne):0}},x=E=>i.modelType?Q(E):{month:xi(E),year:Pi(E)},w=E=>Array.isArray(E)?l(()=>[wa(Ce(),E[0]),E[1]?wa(Ce(),E[1]):u()]):wa(Ce(),+E),P=(E,ne)=>(typeof E=="string"||typeof E=="number")&&i.modelType?A(E):ne,O=E=>Array.isArray(E)?[P(E[0],Kr(null,+E[0].hours,+E[0].minutes,E[0].seconds)),P(E[1],Kr(null,+E[1].hours,+E[1].minutes,E[1].seconds))]:P(E,Kr(null,E.hours,E.minutes,E.seconds)),j=E=>Array.isArray(E)?i.multiDates?E.map(ne=>P(ne,d(null,+ne.month,+ne.year))):l(()=>[P(E[0],d(null,+E[0].month,+E[0].year)),P(E[1],E[1]?d(null,+E[1].month,+E[1].year):u())]):P(E,d(null,+E.month,+E.year)),M=E=>{if(Array.isArray(E))return E.map(ne=>A(ne));throw new Error(cu.dateArr("multi-dates"))},F=E=>{if(Array.isArray(E))return[Ce(E[0]),Ce(E[1])];throw new Error(cu.dateArr("week-picker"))},g=E=>i.modelAuto?Array.isArray(E)?[A(E[0]),A(E[1])]:i.autoApply?[A(E)]:[A(E),null]:Array.isArray(E)?l(()=>[A(E[0]),E[1]?A(E[1]):u()]):A(E),L=()=>{Array.isArray(t.value)&&i.range&&t.value.length===1&&t.value.push(u())},N=()=>{const E=t.value;return[Q(E[0]),E[1]?Q(E[1]):u()]},ye=()=>t.value[1]?N():Q(yr(t.value[0])),H=()=>(t.value||[]).map(E=>Q(E)),z=()=>(L(),i.modelAuto?ye():i.multiDates?H():Array.isArray(t.value)?l(()=>N()):Q(yr(t.value))),Z=E=>E?i.timePicker?O(yr(E)):i.monthPicker?j(yr(E)):i.yearPicker?w(yr(E)):i.multiDates?M(yr(E)):i.weekPicker?F(yr(E)):g(yr(E)):null,_e=E=>{const ne=Z(E);h(yr(ne))?(t.value=yr(ne),te()):(t.value=null,p.value="")},ve=()=>{var E;const ne=Ue=>{var Ve;return _o(Ue,(Ve=f.value.textInputOptions)==null?void 0:Ve.format)};return`${ne(t.value[0])} ${(E=f.value.textInputOptions)==null?void 0:E.rangeSeparator} ${t.value[1]?ne(t.value[1]):""}`},$=()=>{var E;return e.value&&t.value?Array.isArray(t.value)?ve():_o(t.value,(E=f.value.textInputOptions)==null?void 0:E.format):s(t.value)},I=()=>{var E;return t.value?i.multiDates?t.value.map(ne=>s(ne)).join("; "):i.textInput&&typeof((E=f.value.textInputOptions)==null?void 0:E.format)=="str
48ing"?$():s(t.value):""},te=()=>{!i.format||typeof i.format=="string"?p.value=I():p.value=i.format(t.value)},A=E=>{if(i.utc){const ne=new Date(E);return i.utc==="preserve"?new Date(ne.getTime()+ne.getTimezoneOffset()*6e4):ne}return i.modelType?i.modelType==="date"||i.modelType==="timestamp"?a(new Date(E)):i.modelType==="format"&&(typeof i.format=="string"||!i.format)?Md(E,o(),new Date):a(Md(E,i.modelType,new Date)):a(new Date(E))},Q=E=>E?i.utc?UD(E,i.utc==="preserve"):i.modelType?i.modelType==="timestamp"?+r(E):i.modelType==="format"&&(typeof i.format=="string"||!i.format)?s(r(E)):s(r(E),i.modelType):r(E):"",he=E=>{n("update:model-value",E)},K=E=>Array.isArray(t.value)?i.multiDates?t.value.map(ne=>E(ne)):[E(t.value[0]),t.value[1]?E(t.value[1]):u()]:E(yr(t.value)),le=E=>he(yr(K(E)));return{inputValue:p,internalModelValue:t,checkBeforeEmit:()=>t.value?i.range?i.partialRange?t.value.length>=1:t.value.length===2:!!t.value:!1,parseExternalModelValue:_e,formatInputValue:te,emitModelValue:()=>(te(),i.monthPicker?le(x):i.timePicker?le(m):i.yearPicker?le(Pi):i.weekPicker?he(t.value):he(z()))}},FS=(n,i)=>{const{validateMonthYearInRange:e,validateMaxDate:t,validateMinDate:r,defaults:a}=Br(n),s=(d,f)=>{let p=d;return a.value.filters.months.includes(xi(p))?(p=f?Fn(d,1):As(d,1),s(p,f)):p},o=(d,f)=>{let p=d;return a.value.filters.years.includes(Pi(p))?(p=f?pg(d,1):WD(d,1),o(p,f)):p},l=d=>{const f=or(new Date,{month:n.month,year:n.year});let p=d?Fn(f,1):As(f,1);n.disableYearSelect&&(p=wa(p,n.year));let v=xi(p),m=Pi(p);a.value.filters.months.includes(v)&&(p=s(p,d),v=xi(p),m=Pi(p)),a.value.filters.years.includes(m)&&(p=o(p,d),m=Pi(p)),e(v,m,d,n.preventMinMaxNavigation)&&u(v,m)},u=(d,f)=>{i("update-month-year",{month:d,year:f})},h=je(()=>d=>{if(!n.preventMinMaxNavigation||d&&!n.maxDate||!d&&!n.minDate)return!1;const f=or(new Date,{month:n.month,year:n.year}),p=d?Fn(f,1):As(f,1),v=[xi(p),Pi(p)];return d?!t(...v):!r(...v)});return{handleMonthYearChange:l,isDisabled:h,updateMonthYear:u}};var jl=(n=>(n.center="center",n.left="left",n.right="right",n))(jl||{});const IS=(n,i,e,t)=>{const r=Re({top:"0",left:"0",transform:"none",opacity:"0"}),a=Re(!1),s=Co(t,"teleportCenter"),o=je(()=>a.value?"-100%":"0"),l=()=>{u(),r.value.opacity="0"};Pa(s,()=>{P()}),nn(()=>{u()});const u=()=>{const z=Ri(i);if(z){const{top:Z,left:_e,width:ve,height:$}=v(z);r.value.top=`${Z+$/2}px`,p(_e,ve,50)}},h=z=>{if(t.teleport){const Z=z.getBoundingClientRect();return{left:Z.left+window.scrollX,top:Z.top+window.scrollY}}return{top:0,left:0}},d=(z,Z)=>{r.value.left=`${z+Z}px`,r.value.transform=`translate(-100%, ${o.value})`},f=z=>{r.value.left=`${z}px`,r.value.transform=`translate(0, ${o.value})`},p=(z,Z,_e)=>{t.position===jl.left&&f(z),t.position===jl.right&&d(z,Z),t.position===jl.center&&(r.value.left=`${z+Z/2}px`,r.value.transform=_e?`translate(-50%, -${_e}%)`:`translate(-50%, ${o.value})`)},v=z=>{const{width:Z,height:_e}=z.getBoundingClientRect(),{top:ve,left:$}=t.altPosition?t.altPosition(z):h(z);return{top:+ve,left:+$,width:Z,height:_e}},m=()=>{const z=Ri(i);if(z){const{top:Z,left:_e,width:ve,height:$}=v(z),I=g();r.value.top=`${Z+$/2}px`,p(_e,ve,I==="top"?100:0)}},x=()=>{r.value.left="50%",r.value.top="50%",r.value.transform="translate(-50%, -50%)",r.value.position="fixed",delete r.value.opacity},w=()=>{const z=Ri(i),{top:Z,left:_e,transform:ve}=t.altPosition(z);r.value={top:`${Z}px`,left:`${_e}px`,transform:ve||""}},P=(z=!0)=>{if(!t.inline)return s.value?x():t.altPosition!==null?w():(z&&e("recalculate-position"),N())},O=({inputEl:z,menuEl:Z,left:_e,width:ve})=>{window.screen.width>768&&p(_e,ve),F(z,Z)},j=(z,Z)=>{const{top:_e,left:ve,height:$,width:I}=v(z);r.value.top=`${$+_e+ +t.offset}px`,a.value=!1,O({inputEl:z,menuEl:Z,left:ve,width:I})},M=(z,Z)=>{const{top:_e,left:ve,width:$}=v(z);r.value.top=`${_e-+t.offset}px`,a.value=!0,O({inputEl:z,menuEl:Z,left:ve,width:$})},F=(z,Z)=>{if(t.autoPosition){const{left:_e,width:ve}=v(z),{left:$,right:I}=Z.getBoundingClientRect();return $<=0||$<=_e?f(_e):I>=document.documentElement.clientWidth?d(_e,ve):p(_e,ve)}},g=()=>{const z=Ri(n),Z=Ri(i);if(z&&Z){const{height:_e}=z.getBoundingClientRect(),{top:ve,height:$}=Z.getBoundingClientRect(),I=window.innerHeight-ve-$,te=ve;return _e<=I?"bottom":_e>I&&_e<=te?"top":I>=te?"bottom":"top"}return"bottom"},L=(z,Z)=>g()==="bottom"?j(z,Z):M(z,Z),N=()=>{const z=Ri(i),Z=Ri(n);if(z&&Z)return t.autoPosition?L(z,Z):j(z,Z)},ye=function(z){if(z){const Z=z.scrollHeight>z.clientHeight,_e=window.getComputedStyle(z).overflowY.indexOf("hidden")!==-1;return Z&&!_e}return!0},H=function(z){return!z||z===document.body||z.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:ye(z)?z:H(z.parentNode)};return{openOnTop:a,menuStyle:r,resetPosition:l,setMenuPosition:P,setInitialPosition:m,getScrollableParent:H}},bs=[{name:"clock-icon",use:["time","calendar"]},{name:"arrow-left",use:["month-year","calendar"]},{name:"arrow-right",use:["month-year","calendar"]},{name:"arrow-up",use:["time","calendar"]},{name:"arrow-down",use:["time","calendar"]},{name:"calendar-icon",use:["month-year","time","calendar"]},{name:"day",use:["calendar"]},{name:"month-overlay-value",use:["calendar","month-year"]},{name:"year-overlay-value",use:["calendar","month-year"]},{name:"year-overlay",use:["month-year"]},{name:"month-overlay",use:["month-year"]},{name:"month-overlay-header",use:["month-year"]},{name:"year-overlay-header",use:["month-year"]},{name:"hours-overlay-value",use:["calendar","time"]},{name:"minutes-overlay-value",use:["calendar","time"]},{name:"seconds-overlay-value",use:["calendar","time"]},{name:"hours",use:["calendar","time"]},{name:"minutes",use:["calendar","time"]},{name:"month",use:["calendar","month-year"]},{name:"year",use:["calendar","month-year"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar"]},{name:"marker-tooltip",use:["calendar"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time"]},{name:"am-pm-button",use:["calendar","time"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year"]},{name:"time-picker",use:["menu"]},{name:"action-row",use:["action"]}],ES=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],LS={all:()=>bs,monthYear:()=>bs.filter(n=>n.use.includes("month-year")),input:()=>ES,timePicker:()=>bs.filter(n=>n.use.includes("time")),action:()=>bs.filter(n=>
48n.use.includes("action")),calendar:()=>bs.filter(n=>n.use.includes("calendar")),menu:()=>bs.filter(n=>n.use.includes("menu"))},Xa=(n,i,e)=>{const t=[];return LS[i]().forEach(r=>{n[r.name]&&t.push(r.name)}),e&&e.length&&e.forEach(r=>{r.slot&&t.push(r.slot)}),t},Xu=n=>({transitionName:je(()=>i=>n&&typeof n!="boolean"?i?n.open:n.close:""),showTransition:!!n}),ja={multiCalendars:{type:[Boolean,Number,String],default:null},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},closeOnScroll:{type:Boolean,default:!1},autoPosition:{type:Boolean,default:!0},closeOnAutoApply:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},multiCalendarsSolo:{type:Boolean,default:!1},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:()=>[]},showNowButton:{type:Boolean,default:!1},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},modeHeight:{type:[Number,String],default:255},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetRanges:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},keepActionRow:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},multiStatic:{type:Boolean,default:!0},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Array,Function],default:null},highlightWeekDays:{type:Array,default:null},highlightDisabledDays:{type:Boolean,default:!1},teleport:{type:[String,Boolean],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function],default:null},calendarClassName:{type:String,default:null},noSwipe:{type:Boolean,default:!1},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:Boolean,default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},inlineWithInput:{type:Boolean,default:!1},textInputOptions:{type:Object,default:()=>null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:Boolean,default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},onClickOutside:{type:Function,default:null},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},allowPreventDefault:{type:Boolean,default:!1}},RS={key:1,class:"dp__input_wrap"},NS=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","onKeydown"],HS={key:2,class:"dp__input_icon"},YS={key:4,class:"dp__clear_icon"},WS=rn({__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...ja},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur"],setup(n,{expose:i,emit:e}){const t=n,{getDefaultPattern:r,isValidDate:a,defaults:s,getDefaultStartTime:o,assignDefaultTime:l}=Br(t),u=Re(),h=Re(null),d=Re(!1),f=Re(!1),p=je(()=>({dp__pointer:!t.disabled&&!t.readonly&&!t.textInput,dp__disabled:t.disabled,dp__input_readonly:!t.textInput,dp__input:!0,dp__input_icon_pad:!t.hideInputIcon,dp__input_valid:t.state,dp__input_invalid:t.state===!1,dp__input_focus:d.value||t.isMenuOpen,dp__input_reg:!t.textInput,[t.inputClassName]:!!t.inputClassName})),v=()=>{e("set-input-date",null),t.autoApply&&(e("set-empty-date"),u.value=null)},m=H=>{var z;const Z=o();return zD(H,((z=s.value.textInputOptions)==null?void 0:z.format)||r(),Z||l({}),t.inputValue,f.value)}
48,x=H=>{const{rangeSeparator:z}=s.value.textInputOptions,[Z,_e]=H.split(`${z}`);if(Z){const ve=m(Z.trim()),$=_e?m(_e.trim()):null,I=ve&&$?[ve,$]:[ve];u.value=ve?I:null}},w=()=>{f.value=!0},P=H=>{if(t.range)x(H);else if(t.multiDates){const z=H.split(";");u.value=z.map(Z=>m(Z.trim())).filter(Z=>Z)}else u.value=m(H)},O=H=>{var z;const{value:Z}=H.target;Z!==""?((z=s.value.textInputOptions)!=null&&z.openMenu&&!t.isMenuOpen&&e("open"),P(Z),e("set-input-date",u.value)):v(),f.value=!1,e("update:input-value",Z)},j=()=>{var H,z;(H=s.value.textInputOptions)!=null&&H.enterSubmit&&a(u.value)&&t.inputValue!==""?(e("set-input-date",u.value,!0),u.value=null):(z=s.value.textInputOptions)!=null&&z.enterSubmit&&t.inputValue===""&&(u.value=null,e("clear"))},M=()=>{var H,z;(H=s.value.textInputOptions)!=null&&H.tabSubmit&&a(u.value)&&t.inputValue!==""?(e("set-input-date",u.value,!0),u.value=null):(z=s.value.textInputOptions)!=null&&z.tabSubmit&&t.inputValue===""&&(u.value=null,e("clear"))},F=()=>{d.value=!0,e("focus")},g=H=>{var z;H.preventDefault(),H.stopImmediatePropagation(),H.stopPropagation(),t.textInput&&(z=s.value.textInputOptions)!=null&&z.openMenu&&!t.inlineWithInput?t.isMenuOpen?s.value.textInputOptions.enterSubmit&&e("select-date"):e("open"):t.textInput||e("toggle")},L=()=>{d.value=!1,t.isMenuOpen||e("blur"),t.autoApply&&t.textInput&&u.value&&!t.isMenuOpen&&(e("set-input-date",u.value),e("select-date"),u.value=null)},N=()=>{e("clear")},ye=H=>{if(!t.textInput){if(H.code==="Tab")return;H.preventDefault()}};return i({focusInput:()=>{h.value&&h.value.focus({preventScroll:!0})},setParsedDate:H=>{u.value=H}}),(H,z)=>{var Z;return oe(),we("div",{onClick:g},[H.$slots.trigger&&!H.$slots["dp-input"]&&!H.inline?Ge(H.$slots,"trigger",{key:0}):Pe("",!0),!H.$slots.trigger&&(!H.inline||H.inlineWithInput)?(oe(),we("div",RS,[H.$slots["dp-input"]&&!H.$slots.trigger&&!H.inline?Ge(H.$slots,"dp-input",{key:0,value:n.inputValue,isMenuOpen:n.isMenuOpen,onInput:O,onEnter:j,onTab:M,onClear:N,onBlur:L,onKeypress:ye,onPaste:w}):Pe("",!0),H.$slots["dp-input"]?Pe("",!0):(oe(),we("input",{key:1,ref_key:"inputRef",ref:h,id:H.uid?`dp-input-${H.uid}`:void 0,name:H.name,class:ni(q(p)),inputmode:H.textInput?"text":"none",placeholder:H.placeholder,disabled:H.disabled,readonly:H.readonly,required:H.required,value:n.inputValue,autocomplete:H.autocomplete,"aria-label":(Z=q(s).ariaLabels)==null?void 0:Z.input,onInput:O,onKeydown:[At(g,["enter"]),At(M,["tab"]),ye],onBlur:L,onFocus:F,onKeypress:ye,onPaste:w},null,42,NS)),H.$slots["input-icon"]&&!H.hideInputIcon?(oe(),we("span",HS,[Ge(H.$slots,"input-icon")])):Pe("",!0),!H.$slots["input-icon"]&&!H.hideInputIcon&&!H.$slots["dp-input"]?(oe(),Qt(q(Uu),{key:3,class:"dp__input_icon dp__input_icons"})):Pe("",!0),H.$slots["clear-icon"]&&n.inputValue&&H.clearable&&!H.disabled&&!H.readonly?(oe(),we("span",YS,[Ge(H.$slots,"clear-icon",{clear:N})])):Pe("",!0),H.clearable&&!H.$slots["clear-icon"]&&n.inputValue&&!H.disabled&&!H.readonly?(oe(),Qt(q(BD),{key:5,class:"dp__clear_icon dp__input_icons",onClick:Sr(N,["stop","prevent"])},null,8,["onClick"])):Pe("",!0)])):Pe("",!0)])}}}),BS=["title"],zS={class:"dp__action_buttons"},US=["onKeydown","disabled"],XS=rn({__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},calendarWidth:{type:Number,default:0},...ja},emits:["close-picker","select-date","select-now","invalid-select"],setup(n,{emit:i}){const e=n,{formatDate:t,isValidTime:r,defaults:a}=Br(e),{buildMatrix:s}=Aa(),o=Re(null),l=Re(null);nn(()=>{e.arrowNavigation&&s([Ri(o),Ri(l)],"actionRow")});const u=je(()=>e.range&&!e.partialRange&&e.internalModelValue?e.internalModelValue.length===2:!0),h=je(()=>!d.value||!f.value||!u.value),d=je(()=>!e.enableTimePicker||e.ignoreTimeValidation?!0:r(e.internalModelValue)),f=je(()=>e.monthPicker?e.range&&Array.isArray(e.internalModelValue)?!e.internalModelValue.filter(O=>!w(O)).length:w(e.internalModelValue):!0),p=()=>{const O=a.value.previewFormat;return e.timePicker||e.monthPicker,O(yr(e.internalModelValue))},v=()=>{const O=e.internalModelValue;return a.value.multiCalendars>0?`${t(O[0])} - ${t(O[1])}`:[t(O[0]),t(O[1])]},m=je(()=>!e.internalModelValue||!e.menuMount?"":typeof a.value.previewFormat=="string"?Array.isArray(e.internalModelValue)?e.internalModelValue.length===2&&e.internalModelValue[1]?v():e.multiDates?e.internalModelValue.map(O=>`${t(O)}`):e.modelAuto?`${t(e.internalModelValue[0])}`:`${t(e.internalModelValue[0])} -`:t(e.internalModelValue):p()),x=je(()=>Array.isArray(m.value)?m.value.join(e.multiDates?"; ":" - "):m.value),w=O=>
48{if(!e.monthPicker)return!0;let j=!0;const M=Ce(lo(O));if(e.minDate&&e.maxDate){const F=Ce(lo(e.minDate)),g=Ce(lo(e.maxDate));return kr(M,F)&&gr(M,g)||ci(M,F)||ci(M,g)}if(e.minDate){const F=Ce(lo(e.minDate));j=kr(M,F)||ci(M,F)}if(e.maxDate){const F=Ce(lo(e.maxDate));j=gr(M,F)||ci(M,F)}return j},P=()=>{d.value&&f.value&&u.value?i("select-date"):i("invalid-select")};return(O,j)=>(oe(),we("div",{class:"dp__action_row",style:Kn(n.calendarWidth?{width:`${n.calendarWidth}px`}:{})},[O.$slots["action-row"]?Ge(O.$slots,"action-row",vr(sr({key:0},{internalModelValue:n.internalModelValue,disabled:q(h),selectDate:()=>O.$emit("select-date"),closePicker:()=>O.$emit("close-picker")}))):(oe(),we(Et,{key:1},[q(a).actionRow.showPreview?(oe(),we("div",{key:0,class:"dp__selection_preview",title:q(x)},[O.$slots["action-preview"]?Ge(O.$slots,"action-preview",{key:0,value:n.internalModelValue}):Pe("",!0),O.$slots["action-preview"]?Pe("",!0):(oe(),we(Et,{key:1},[bi(it(q(x)),1)],64))],8,BS)):Pe("",!0),ae("div",zS,[O.$slots["action-buttons"]?Ge(O.$slots,"action-buttons",{key:0,value:n.internalModelValue}):Pe("",!0),O.$slots["action-buttons"]?Pe("",!0):(oe(),we(Et,{key:1},[!O.inline&&q(a).actionRow.showCancel?(oe(),we("button",{key:0,type:"button",ref_key:"cancelButtonRef",ref:o,class:"dp__action_button dp__action_cancel",onClick:j[0]||(j[0]=M=>O.$emit("close-picker")),onKeydown:[j[1]||(j[1]=At(M=>O.$emit("close-picker"),["enter"])),j[2]||(j[2]=At(M=>O.$emit("close-picker"),["space"]))]},it(O.cancelText),545)):Pe("",!0),O.showNowButton||q(a).actionRow.showNow?(oe(),we("button",{key:1,type:"button",ref_key:"cancelButtonRef",ref:o,class:"dp__action_button dp__action_cancel",onClick:j[3]||(j[3]=M=>O.$emit("select-now")),onKeydown:[j[4]||(j[4]=At(M=>O.$emit("select-now"),["enter"])),j[5]||(j[5]=At(M=>O.$emit("select-now"),["space"]))]},it(O.nowButtonLabel),545)):Pe("",!0),q(a).actionRow.showSelect?(oe(),we("button",{key:2,type:"button",class:"dp__action_button dp__action_select",onKeydown:[At(P,["enter"]),At(P,["space"])],onClick:P,disabled:q(h),ref_key:"selectButtonRef",ref:l},it(O.selectText),41,US)):Pe("",!0)],64))])],64))],4))}}),GS=["aria-label"],$S={class:"dp__calendar_header",role:"row"},KS={key:0,class:"dp__calendar_header_item",role:"gridcell"},qS=ae("div",{class:"dp__calendar_header_separator"},null,-1),ZS=["aria-label"],QS={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},JS={class:"dp__cell_inner"},eO=["aria-selected","aria-disabled","aria-label","onClick","onKeydown","onMouseenter","onMouseleave"],tO=rn({__name:"Calendar",props:{mappedDates:{type:Array,default:()=>[]},getWeekNum:{type:Function,default:()=>""},specificMode:{type:Boolean,default:!1},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...ja},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(n,{expose:i,emit:e}){const t=n,{buildMultiLevelMatrix:r}=Aa(),{setDateMonthOrYear:a,defaults:s}=Br(t),o=Re(null),l=Re({bottom:"",left:"",transform:""}),u=Re([]),h=Re(null),d=Re(!0),f=Re(""),p=Re({startX:0,endX:0,startY:0,endY:0}),v=Re([]),m=Re({left:"50%"}),x=je(()=>t.dayNames?Array.isArray(t.dayNames)?t.dayNames:t.dayNames(t.locale,+t.weekStart):xS(t.locale,+t.weekStart));nn(()=>{e("mount",{cmp:"calendar",refs:u}),t.noSwipe||h.value&&(h.value.addEventListener("touchstart",H,{passive:!1}),h.value.addEventListener("touchend",z,{passive:!1}),h.value.addEventListener("touchmove",Z,{passive:!1})),t.monthChangeOnScroll&&h.value&&h.value.addEventListener("wheel",$,{passive:!1})});const w=I=>I?t.vertical?"vNext":"next":t.vertical?"vPrevious":"previous",P=(I,te)=>{if(t.transitions){const A=xn(a(Ce(),t.month,t.year));f.value=kr(xn(a(Ce(),I,te)),A)?s.value.transitions[w(!0)]:s.value.transitions[w(!1)],d.value=!1,ia(()=>{d.value=!0})}},O=je(()=>({[t.calendarClassName]:!!t.calendarClassName})),j=je(()=>I=>{const te=CS(I);return{dp__marker_dot:te.type==="dot",dp__marker_line:te.type==="line"}}),M=je(()=>I=>ci(I,o.value)),F=je(()=>({dp__calendar:!0,dp__calendar_next:s.value.multiCalendars>0&&t.instance!==0})),g=je(()=>I=>t.hideOffsetDates?I.current:!0),L=je(()=>t.specificMode?{height:`${t.modeHeight}px`}:void 0),N=async(I,te,A)=>{var Q,he;if(e("set-hover-date",I),(he=(Q=I.marker)==null?void 0:Q.tooltip)!=null&&he.length){const K=Ri(u.value[te][A]);if(K){const{width:le,height:E}=K.getBoundingClientRect();o.value=I.value;let ne={left:`${le/2}px`},Ue=-50;if(await ia(),v.value[0]){const{left:Ve,width:Ye}=v.value[0].getBoundingClientRect();Ve<0&&(ne={left:"0"},Ue=0,m.value.left=`${le/2}px`),window.innerWidth<Ve+Ye&&(ne={right:"0"},Ue=0,m.value.left=`${Ye-le/2}px`)}l.value={bottom:`${E}px`,...ne,transform:`translateX(${Ue}%)`},e("tooltip-open",I.marker)}}},ye=I=>{o.value&&(o.value=null,l.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),e("tooltip-close",I.marker))},H=I=>{p.value.startX=I.changedTouches[0].screenX,p.value.startY=I.changedTouches[0].screenY},z=I=>{p.value.endX=I.changedTouches[0].screenX,p.value.endY=I.changedTouches[0].screenY,_e()},Z=I=>{t.vertical&&!t.inline&&I.preventDefault()},_e=()=>{const I=t.vertical?"Y":"X";Math.abs(p.value[`start${I}`]-p.value[`end${I}`])>10&&e("handle-swipe",p.value[`start${I}`]>p.value[`end${I}`]?"right":"left")},ve=(I,te,A)=>{I&&(Array.isArray(u.value[te])?u.value[te][A]=I:u.value[te]=[I]),t.arrowNavigation&&r(u.value,"calendar")},$=I=>
48{t.monthChangeOnScroll&&(I.preventDefault(),e("handle-scroll",I))};return i({triggerTransition:P}),(I,te)=>{var A;return oe(),we("div",{class:ni(q(F))},[ae("div",{style:Kn(q(L)),ref_key:"calendarWrapRef",ref:h,role:"grid",class:ni(q(O)),"aria-label":(A=q(s).ariaLabels)==null?void 0:A.calendarWrap},[n.specificMode?Pe("",!0):(oe(),we(Et,{key:0},[ae("div",$S,[I.weekNumbers?(oe(),we("div",KS,it(I.weekNumName),1)):Pe("",!0),(oe(!0),we(Et,null,zi(q(x),(Q,he)=>(oe(),we("div",{class:"dp__calendar_header_item",role:"gridcell",key:he},[I.$slots["calendar-header"]?Ge(I.$slots,"calendar-header",{key:0,day:Q,index:he}):Pe("",!0),I.$slots["calendar-header"]?Pe("",!0):(oe(),we(Et,{key:1},[bi(it(Q),1)],64))]))),128))]),qS,Ir(Ls,{name:f.value,css:!!I.transitions},{default:kt(()=>{var Q;return[d.value?(oe(),we("div",{key:0,class:"dp__calendar",role:"grid","aria-label":(Q=q(s).ariaLabels)==null?void 0:Q.calendarDays},[(oe(!0),we(Et,null,zi(n.mappedDates,(he,K)=>(oe(),we("div",{class:"dp__calendar_row",role:"row",key:K},[I.weekNumbers?(oe(),we("div",QS,[ae("div",JS,it(n.getWeekNum(he.days)),1)])):Pe("",!0),(oe(!0),we(Et,null,zi(he.days,(le,E)=>{var ne,Ue,Ve;return oe(),we("div",{role:"gridcell",class:"dp__calendar_item",ref_for:!0,ref:Ye=>ve(Ye,K,E),key:E+K,"aria-selected":le.classData.dp__active_date||le.classData.dp__range_start||le.classData.dp__range_start,"aria-disabled":le.classData.dp__cell_disabled,"aria-label":(Ue=(ne=q(s).ariaLabels)==null?void 0:ne.day)==null?void 0:Ue.call(ne,le),tabindex:"0",onClick:Sr(Ye=>I.$emit("select-date",le),["stop","prevent"]),onKeydown:[At(Ye=>I.$emit("select-date",le),["enter"]),At(Ye=>I.$emit("handle-space",le),["space"])],onMouseenter:Ye=>N(le,K,E),onMouseleave:Ye=>ye(le)},[ae("div",{class:ni(["dp__cell_inner",le.classData])},[I.$slots.day&&q(g)(le)?Ge(I.$slots,"day",{key:0,day:+le.text,date:le.value}):Pe("",!0),I.$slots.day?Pe("",!0):(oe(),we(Et,{key:1},[bi(it(le.text),1)],64)),le.marker&&q(g)(le)?(oe(),we("div",{key:2,class:ni(q(j)(le.marker)),style:Kn(le.marker.color?{backgroundColor:le.marker.color}:{})},null,6)):Pe("",!0),q(M)(le.value)?(oe(),we("div",{key:3,class:"dp__marker_tooltip",ref_for:!0,ref_key:"activeTooltip",ref:v,style:Kn(l.value)},[(Ve=le.marker)!=null&&Ve.tooltip?(oe(),we("div",{key:0,class:"dp__tooltip_content",onClick:te[0]||(te[0]=Sr(()=>{},["stop"]))},[(oe(!0),we(Et,null,zi(le.marker.tooltip,(Ye,Xe)=>(oe(),we("div",{key:Xe,class:"dp__tooltip_text"},[I.$slots["marker-tooltip"]?Ge(I.$slots,"marker-tooltip",{key:0,tooltip:Ye,day:le.value}):Pe("",!0),I.$slots["marker-tooltip"]?Pe("",!0):(oe(),we(Et,{key:1},[ae("div",{class:"dp__tooltip_mark",style:Kn(Ye.color?{backgroundColor:Ye.color}:{})},null,4),ae("div",null,it(Ye.text),1)],64))]))),128)),ae("div",{class:"dp__arrow_bottom_tp",style:Kn(m.value)},null,4)])):Pe("",!0)],4)):Pe("",!0)],2)],40,eO)}),128))]))),128))],8,ZS)):Pe("",!0)]}),_:3},8,["name","css"])],64))],14,GS)],2)}}}),iO=["aria-label","aria-disabled"],zh=rn({__name:"ActionIcon",props:{ariaLabel:null,disabled:{type:Boolean}},emits:["activate","set-ref"],setup(n,{emit:i}){const e=Re(null);return nn(()=>i("set-ref",e)),(t,r)=>(oe(),we("button",{type:"button",class:"dp__btn dp__month_year_col_nav",onClick:r[0]||(r[0]=a=>t.$emit("activate")),onKeydown:[r[1]||(r[1]=At(a=>t.$emit("activate"),["enter"])),r[2]||(r[2]=At(a=>t.$emit("activate"),["space"]))],tabindex:"0","aria-label":n.ariaLabel,"aria-disabled":n.disabled,ref_key:"elRef",ref:e},[ae("span",{class:ni(["dp__inner_nav",{dp__inner_nav_disabled:n.disabled}])},[Ge(t.$slots,"default")],2)],40,iO))}}),rO=["onKeydown"],nO={class:"dp__selection_grid_header"},aO=["aria-selected","aria-disabled","onClick","onKeydown","onMouseover"],sO=["aria-label","onKeydown"],Po=rn({__name:"SelectionGrid",props:{items:{type:Array,default:()=>[]},modelValue:{type:[String,Number],default:null},multiModelValue:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:[Number,String],default:null},maxValue:{type:[Number,String],default:null},year:{type:Number,default:0},skipActive:{type:Boolean,default:!1},headerRefs:{type:Array,default:()=>[]},skipButtonRef:{type:Boolean,default:!1},monthPicker:{type:Boolean,default:!1},yearPicker:{type:Boolean,default:!1},escClose:{type:Boolean,default:!0},type:{type:String,default:null},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]}},emits:["update:model-value","selected","toggle","reset-flow"],setup(n,{expose:i,emit:e}){const t=n,{setSelectionGrid:r,buildMultiLevelMatrix:a,setMonthPicker:s}=Aa(),{hideNavigationButtons:o}=Br(t),l=Re(!1),u=Re(null),h=Re(null),d=Re([]),f=Re(),p=Re(null),v=Re(0),m=Re(null);Am(()=>{u.value=null}),nn(()=>{ia().then(()=>N()),w(),x(!0)}),Rd(()=>x(!1));const x=$=>{var I;t.arrowNavigation&&((I=t.headerRefs)!=null&&I.length?s($):r($))},w=()=>{const $=Ri(h);$&&(t.textInput||$.focus({preventScroll:!0}),l.value=$.clientHeight<$.scrollHeight)},P=je(()=>({dp__overlay:!0})),O=je(()=>({dp__overlay_col:!0})),j=$=>t.skipActive?!1:$.value===t.modelValue,M=je(()=>t.items.map($=>$.filter(I=>I).map(I=>{var te,A,Q;const he=t.disabledValues.some(le=>le===I.value)||L(I.value),K=(te=t.multiModelValue)!=null&&te.length?(A=t.multiModelValue)==null?void 0:A.some(le=>ci(le,wa(t.monthPicker?wo(new Date,I.value):new Date,t.monthPicker?t.year:I.value))):j(I);return{...I,className:{dp__overlay_cell_active:K,dp__overlay_cell:!K,dp__overlay_cell_disabled:he,dp__overlay_cell_active_disabled:he&&K,dp__overlay_cell_pad:!0,dp__cell_in_between:(Q=t.multiModelValue)!=null&&Q.length&&t.skipActive?H(I.value):!1}}}))),F=je(()=>({dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:l.value,dp__button_bottom:t.autoApply})),g=je(()=>{var $,I;return{dp__overlay_container:!0,dp__container_flex:(($=t.items)==null?void 0:$.length)<=6,dp__container_block:((I=t.items)==null?void 0:I.length)>6}}),L=$=>{const I=t.maxValue||t.maxValue===0,te=t.minValue||t.minValue===0;return!I&&!te?!1:I&&te?+$>+t.maxValue||+$<+t.minValue:I?+$>+t.maxValue:te?+$<+t.minValue:!1},N=()=>
48{const $=Ri(u),I=Ri(h),te=Ri(p),A=Ri(m),Q=te?te.getBoundingClientRect().height:0;I&&(v.value=I.getBoundingClientRect().height-Q),$&&A&&(A.scrollTop=$.offsetTop-A.offsetTop-(v.value/2-$.getBoundingClientRect().height)-Q)},ye=$=>{!t.disabledValues.some(I=>I===$)&&!L($)&&(e("update:model-value",$),e("selected"))},H=$=>{const I=t.monthPicker?t.year:$;return Eg(t.multiModelValue,wa(t.monthPicker?wo(new Date,f.value||0):new Date,t.monthPicker?I:f.value||I),wa(t.monthPicker?wo(new Date,$):new Date,I))},z=()=>{e("toggle"),e("reset-flow")},Z=()=>{t.escClose&&z()},_e=($,I,te,A)=>{$&&(I.value===+t.modelValue&&!t.disabledValues.includes(I.value)&&(u.value=$),t.arrowNavigation&&(Array.isArray(d.value[te])?d.value[te][A]=$:d.value[te]=[$],ve()))},ve=()=>{var $,I;const te=($=t.headerRefs)!=null&&$.length?[t.headerRefs].concat(d.value):d.value.concat([t.skipButtonRef?[]:[p.value]]);a(yr(te),(I=t.headerRefs)!=null&&I.length?"monthPicker":"selectionGrid")};return i({focusGrid:w}),($,I)=>{var te;return oe(),we("div",{ref_key:"gridWrapRef",ref:h,class:ni(q(P)),role:"dialog",tabindex:"0",onKeydown:At(Z,["esc"])},[ae("div",{class:ni(q(g)),ref_key:"containerRef",ref:m,role:"grid",style:Kn({height:`${v.value}px`})},[ae("div",nO,[Ge($.$slots,"header")]),$.$slots.overlay?Ge($.$slots,"overlay",{key:0}):(oe(!0),we(Et,{key:1},zi(q(M),(A,Q)=>(oe(),we("div",{class:ni(["dp__overlay_row",{dp__flex_row:q(M).length>=3}]),key:Q,role:"row"},[(oe(!0),we(Et,null,zi(A,(he,K)=>(oe(),we("div",{role:"gridcell",class:ni(q(O)),key:he.value,"aria-selected":he.value===n.modelValue&&!n.disabledValues.includes(he.value),"aria-disabled":he.className.dp__overlay_cell_disabled,ref_for:!0,ref:le=>_e(le,he,Q,K),tabindex:"0",onClick:le=>ye(he.value),onKeydown:[At(le=>ye(he.value),["enter"]),At(le=>ye(he.value),["space"])],onMouseover:le=>f.value=he.value},[ae("div",{class:ni(he.className)},[$.$slots.item?Ge($.$slots,"item",{key:0,item:he}):Pe("",!0),$.$slots.item?Pe("",!0):(oe(),we(Et,{key:1},[bi(it(he.text),1)],64))],2)],42,aO))),128))],2))),128))],6),$.$slots["button-icon"]?va((oe(),we("div",{key:0,role:"button","aria-label":(te=n.ariaLabels)==null?void 0:te.toggleOverlay,class:ni(q(F)),tabindex:"0",ref_key:"toggleButton",ref:p,onClick:z,onKeydown:At(z,["enter"])},[Ge($.$slots,"button-icon")],42,sO)),[[ml,!q(o)(n.type)]]):Pe("",!0)],42,rO)}}}),oO=["aria-label"],Mp=rn({__name:"RegularPicker",props:{ariaLabel:{type:String,default:""},showSelectionGrid:{type:Boolean,default:!1},modelValue:{type:Number,default:null},items:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:Number,default:null},maxValue:{type:Number,default:null},slotName:{type:String,default:""},overlaySlot:{type:String,default:""},headerRefs:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},type:{type:String,default:null},transitions:{type:[Object,Boolean],default:!1},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]}},emits:["update:model-value","toggle","set-ref"],setup(n,{emit:i}){const e=n,{transitionName:t,showTransition:r}=Xu(e.transitions),a=Re(null);return nn(()=>i("set-ref",a)),(s,o)=>(oe(),we(Et,null,[ae("button",{type:"button",class:"dp__btn dp__month_year_select",onClick:o[0]||(o[0]=l=>s.$emit("toggle")),onKeydown:[o[1]||(o[1]=At(l=>s.$emit("toggle"),["enter"])),o[2]||(o[2]=At(l=>s.$emit("toggle"),["space"]))],"aria-label":n.ariaLabel,tabindex:"0",ref_key:"elRef",ref:a},[Ge(s.$slots,"default")],40,oO),Ir(Ls,{name:q(t)(n.showSelectionGrid),css:q(r)},{default:kt(()=>[n.showSelectionGrid?(oe(),Qt(Po,sr({key:0},{modelValue:n.modelValue,items:n.items,disabledValues:n.disabledValues,minValue:n.minValue,maxValue:n.maxValue,escClose:n.escClose,type:n.type,arrowNavigation:n.arrowNavigation,textInput:n.textInput,autoApply:n.autoApply,ariaLabels:n.ariaLabels,hideNavigation:n.hideNavigation},{"header-refs":[],"onUpdate:modelValue":o[3]||(o[3]=l=>s.$emit("update:model-value",l)),onToggle:o[4]||(o[4]=l=>s.$emit("toggle"))}),Er({"button-icon":kt(()=>[s.$slots["calendar-icon"]?Ge(s.$slots,"calendar-icon",{key:0}):Pe("",!0),s.$slots["calendar-icon"]?Pe("",!0):(oe(),Qt(q(Uu),{key:1}))]),_:2},[s.$slots[n.slotName]?{name:"item",fn:kt(({item:l})=>[Ge(s.$slots,n.slotName,{item:l})]),key:"0"}:void 0,s.$slots[n.overlaySlot]?{name:"overlay",fn:kt(()=>[Ge(s.$slots,n.overlaySlot)]),key:"1"}:void 0,s.$slots[`${n.overlaySlot}-header`]?{name:"header",fn:kt(()=>[Ge(s.$slots,`${n.overlaySlot}-header`)]),key:"2"}:void 0]),1040)):Pe("",!0)]),_:3},8,["name","css"])],64))}}),lO={class:"dp__month_year_row"},uO={class:"dp__month_picker_header"},hO=["aria-label"],dO=["aria-label"],cO=["aria-label"],fO=rn({__name:"MonthYearPicker",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},internalModelValue:{type:[Date,Array],default:null},...ja},emits:["update-month-year","month-year-select","mount","reset-flow","overlay-closed"],setup(n,{expose:i,emit:e}){const t=n,{defaults:r}=Br(t),{transitionName:a,showTransition:s}=Xu(r.value.transitions),{buildMatrix:o}=Aa(),{handleMonthYearChange:l,isDisabled:u,updateMonthYear:h}=FS(t,e),d=Re(!1),f=Re(!1),p=Re([null,null,null,null]),v=Re(null),m=Re(null),x=Re(null);nn(()=>{e("mount")});const w=E=>({get:()=>t[E],set:ne=>{const Ue=E==="month"?"year":"month";e("update-month-year",{[E]:ne,[Ue]:t[Ue]}),e("month-year-select",E==="year"),E==="month"?A(!0):Q(!0)}}),P=je(w("month")),O=je(w("year")),j=E=>{const ne=Pi(Ce(E));return t.year===ne},M=je(()=>t.monthPicker?Array.isArray(t.disabledDates)?t.disabledDates.map(E=>Ce(E)).filter(E=>j(E)).map(E=>xi(E)):[]:[]),F=je(()=>E=>{const ne=E==="month";return{showSelectionGrid:(ne?d:f).value,items:(ne?ve:$).value,disabledValues:r.value.filters[ne?"months":"years"].concat(M.value),minValue:(ne?ye:L).value,maxValue:(ne?H:N).value,headerRefs:ne&&t.monthPicker?[v.value,m.value,x.value]:[],escClose:t.escClose,transitions:r.value.transitions,ariaLabels:r.value.ariaLabels,textInput:t.textInput,autoApply:t.autoApply,arrowNavigation:t.arrowNavigation,hideNavigation:t.hideNavigation}}),g=je(()=>E=>({month:t.month,year:t.year,items:E==="month"?t.months:t.years,instance:t.instance,updateMonthYear:h,toggle:E==="month"?A:Q})),L=je(()=>t.minDate?Pi(Ce(t.minDate)):null),N=je(()=>t.maxDate?Pi(Ce(t.maxDate)):null),ye=je(()=>{if(t.minDate&&L.value){if(L.value>t.year)return 12;if(L.value===t.year)return xi(Ce(t.minDate))}return null}),H=je(()=>t.maxDate&&N.value?N.value<t.year?-1:N.value===t.year?xi(Ce(t.maxDate)):null:null),z=je(()=>(t.range||t.multiDates)&&t.internalModelValue&&(t.monthPicker||t.yearPicker)?t.internalModelValue:[]),Z=E=>{const ne=[],Ue=Ve=>Ve;for(let Ve=0;Ve<E.length;Ve+=3){const Ye=[E[Ve],E[Ve+1],E[Ve+2]];ne.push(Ue(Ye))}return ne},_e=je(()=>t.months.find(ne=>ne.value===t.month)||{text:"",value:0}),ve=je(()=>Z(t.months)),$=je(()=>Z(t.years)),I=je(()=>r.value.multiCalendars?t.multiCalendarsSolo?!0:t.instance===0:!0),te=je(()=>r.value.multiCalendars?t.multiCalendarsSolo?!0:t.instance===r.value.multiCalendars-1:!0),A=(E=!1)=>{he(E),d.value=!d.value,d.value||e("overlay-closed")},Q=(E=!1)=>{he(E),f.value=!f.value,f.value||e("overlay-closed")},he=E=>{E||e("reset-flow")},K=(E=!1)=>{u.value(E)||e("update-month-year",{year:E?t.year+1:t.year-1,month:t.month,fromNav:!0})},le=(E,ne)=>{t.arrowNavigation&&(p.value[ne]=Ri(E),o(p.value,"monthYear"))};return i({toggleMonthPicker:A,toggleYearPicker:Q,handleMonthYearChange:l}),(E,ne)=>{var Ue,Ve,Ye,Xe,ft;return oe(),we("div",lO,[E.$slots["month-year"]?Ge(E.$slots,"month-year",vr(sr({key:0},{month:n.month,year:n.year,months:n.months,years:n.years,updateMonthYear:q(h),handleMonthYearChange:q(l),instance:n.instance}))):(oe(),we(Et,{key:1},[!E.monthPicker&&!E.yearPicker?(oe(),we(Et,{key:0},[q(I)&&!E.vertical?(oe(),Qt(zh,{key:0,"aria-label":(Ue=q(r).ariaLabels)==null?void 0:Ue.prevMonth,disabled:q(u)(!1),onActivate:ne[0]||(ne[0]=Ke=>q(l)(!1)),onSetRef:ne[1]||(ne[1]=Ke=>le(Ke,0))},{default:kt(()=>[E.$slots["arrow-left"]?Ge(E.$slots,"arrow-left",{key:0}):Pe("",!0),E.$slots["arrow-left"]?Pe("",!0):(oe(),Qt(q(yp),{key:1}))]),_:3},8,["aria-label","disabled"])):Pe("",!0),ae("div",{class:ni(["dp__month_year_wrap",{dp__year_disable_select:t.disableYearSelect}])},[Ir(Mp,sr({type:"month","slot-name":"month-overlay-val","overlay-slot":"overlay-month","aria-label":(Ve=q(r).ariaLabels)==null?void 0:Ve.openMonthsOverlay,modelValue:q(P),"onUpdate:modelValue":ne[2]||(ne[2]=Ke=>Ba(P)?P.value=Ke:null)},q(F)("month"),{onToggle:A,onSetRef:ne[3]||(ne[3]=Ke=>le(Ke,1))}),Er({default:kt(()=>[E.$slots.month?Ge(E.$slots,"month",vr(sr({key:0},q(_e)))):Pe("",!0),E.$slots.month?Pe("",!0):(oe(),we(Et,{key:1},[bi(it(q(_e).text),1)],64))]),_:2},[E.$slots["calendar-icon"]?{name:"calendar-icon",fn:kt(()=>[Ge(E.$slots,"calendar-icon")]),key:"0"}:void 0,E.$slots["month-overlay-value"]?{name:"month-overlay-val",fn:kt(({item:Ke})=>[Ge(E.$slots,"month-overlay-value",{text:Ke.text,value:Ke.value})]),key:"1"}:void 0,E.$slots["month-overlay"]?{name:"overlay-month",fn:kt(()=>[Ge(E.$slots,"month-overlay",vr(dn(q(g)("month"))))]),key:"2"}:void 0,E.$slots["month-overlay-header"]?{name:"overlay-month-header",fn:kt(()=>[Ge(E.$slots,"month-overlay-header",{toggle:A})]),key:"3"}:void 0]),1040,["aria-label","modelValue"]),t.disableYearSelect?Pe("",!0):(oe(),Qt(Mp,sr({key:0,type:"year","slot-name":"year-overlay-val","overlay-slot":"overlay-year","aria-label":(Ye=q(r).ariaLabels)==null?void 0:Ye.openYearsOverlay,modelValue:q(O),"onUpdate:modelValue":ne[4]||(ne[4]=Ke=>Ba(O)?O.value=Ke:null)},q(F)("year"),{onToggle:Q,onSetRef:ne[5]||(ne[5]=Ke=>le(Ke,2))}),Er({default:kt(()=>[E.$slots.year?Ge(E.$slots,"year",{key:0,year:n.year}):Pe("",!0),E.$slots.year?Pe("",!0):(oe(),we(Et,{key:1},[bi(it(n.year),1)],64))]),_:2},[E.$slots["calendar-icon"]?{name:"calendar-icon",fn:kt(()=>[Ge(E.$slots,"calendar-icon")]),key:"0"}:void 0,E.$slots["year-overlay-value"]?{name:"year-overlay-val",fn:kt(({item:Ke})=>[Ge(E.$slots,"year-overlay-value",{text:Ke.text,value:Ke.value})]),key:"1"}:void 0,E.$slots["year-overlay"]?{name:"overlay-year",fn:kt(()=>[Ge(E.$slots,"year-overlay",vr(dn(q(g)("year"))))]),key:"2"}:void 0,E.$slots["year-overlay-header"]?{name:"overlay-year-header",fn:kt(()=>[Ge(E.$slots,"year-overlay-header",{toggle:Q})]),key:"3"}:void 0]),1040,["aria-label","modelValue"]))],2),q(I)&&E.vertical?(oe(),Qt(zh,{key:1,"aria-label":(Xe=q(r).ariaLabels)==null?void 0:Xe.prevMonth,disabled:q(u)(!1),onActivate:ne[6]||(ne[6]=Ke=>q(l)(!1))},{default:kt(()=>[E.$slots["arrow-up"]?Ge(E.$slots,"arrow-up",{key:0}):Pe("",!0),E.$slots["arrow-up"]?Pe("",!0):(oe(),Qt(q(Fg),{key:1}))]),_:3},8,["aria-label","disabled"])):Pe("",!0),q(te)?(oe(),Qt(zh,{key:2,ref:"rightIcon",disabled:q(u)(!0),"aria-label":(ft=q(r).ariaLabels)==null?void 0:ft.nextMonth,onActivate:ne[7]||(ne[7]=Ke=>q(l)(!0)),onSetRef:ne[8]||(ne[8]=Ke=>le(Ke,3))},{default:kt(()=>[E.$slots[E.vertical?"arrow-down":"arrow-right"]?Ge(E.$slots,E.vertical?"arrow-down":"arrow-right",{key:0}):Pe("",!0),E.$slots[E.vertical?"arrow-down":"arrow-right"]?Pe("",!0):(oe(),Qt(jp(E.vertical?q(Ig):q(vp)),{key:1}))]),_:3},8,["disabled","aria-label"])):Pe("",!0)],64)):Pe("",!0),E.monthPicker?(oe(),Qt(Po,sr({key:1},q(F)("month"),{"skip-active":E.range,year:n.year,"multi-model-value":q(z),"month-picker":"",modelValue:q(P),"onUpdate:modelValue":ne[17]||(ne[17]=Ke=>Ba(P)?P.value=Ke:null),onToggle:A,onSelected:ne[18]||(ne[18]=Ke=>E.$emit("overlay-closed"))}),Er({header:kt(()=>{var Ke,oi,Oi;return[ae("div",uO,[ae("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpPrevIconRef",ref:v,onClick:ne[9]||(ne[9]=gi=>K(!1)),onKeydown:ne[10]||(ne[10]=At(gi=>K(!1),["enter"]))},[ae("div",{class:ni(["dp__inner_nav",{dp__inner_nav_disabled:q(u)(!1)}]),role:"button","aria-label":(Ke=q(r).ariaLabels)==null?void 0:Ke.prevMonth},[E.$slots["arrow-left"]?Ge(E.$slots,"arrow-left",{key:0}):Pe("",!0),E.$slots["arrow-left"]?Pe("",!0):(oe(),Qt(q(yp),{key:1}))],10,hO)],544),ae("div",{class:"dp__pointer",role:"button",ref_key:"mpYearButtonRef",ref:m,"aria-label":(oi=q(r).ariaLabels)==null?void 0:oi.openYearsOverlay,tabindex:"0",onClick:ne[11]||(ne[11]=()=>Q(!1)),onKeydown:ne[12]||(ne[12]=At(()=>Q(!1),["enter"]))},[E.$slots.year?Ge(E.$slots,"year",{key:0,year:n.year}):Pe("",!0),E.$slots.year?Pe("",!0):(oe(),we(Et,{key:1},[bi(it(n.year),1)],64))],40,dO),ae("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpNextIconRef",ref:x,onClick:ne[13]||(ne[13]=gi=>K(!0)),onKeydown:ne[14]||(ne[14]=At(gi=>K(!0),["enter"]))},[ae("div",{class:ni(["dp__inner_nav",{dp__inner_nav_disabled:q(u)(!0)}]),role:"button","aria-label":(Oi=q(r).ariaLabels)==null?void 0:Oi.nextMonth},[E.$slots["arrow-right"]?Ge(E.$slots,"arrow-right",{key:0}):Pe("",!0),E.$slots["arrow-right"]?Pe("",!0):(oe(),Qt(q(vp),{key:1}))],10,cO)],544)]),Ir(Ls,{name:q(a)(f.value),css:q(s)},{default:kt(()=>[f.value?(oe(),Qt(Po,sr({key:0},q(F)("year"),{modelValue:q(O),"onUpdate:modelValue":ne[15]||(ne[15]=gi=>Ba(O)?O.value=gi:null),onToggle:Q,onSelected:ne[16]||(ne[16]=gi=>E.$emit("overlay-closed"))}),Er({"button-icon":kt(()=>[E.$slots["calendar-icon"]?Ge(E.$slots,"calendar-icon",{key:0}):Pe("",!0),E.$slots["calendar-icon"]?Pe("",!0):(oe(),Qt(q(Uu),{key:1}))]),_:2},[E.$slots["year-overlay-value"]?{name:"item",fn:kt(({item:gi})=>[Ge(E.$slots,"year-overlay-value",{text:gi.text,value:gi.value})]),key:"0"}:void 0]),1040,["modelValue"])):Pe("",!0)]),_:3},8,["name","css"])]}),_:2},[E.$slots["month-overlay-value"]?{name:"item",fn:kt(({item:Ke})=>[Ge(E.$slots,"month-overlay-value",{text:Ke.text,value:Ke.value})]),key:"0"}:void 0]),1040,["skip-active","year","multi-model-value","modelValue"])):Pe("",!0),E.yearPicker?(oe(),Qt(Po,sr({key:2},q(F)("year"),{modelValue:q(O),"onUpdate:modelValue":ne[19]||(ne[19]=Ke=>Ba(O)?O.value=Ke:null),"multi-model-value":q(z),"skip-active":E.range,"skip-button-ref":"","year-picker":"",onToggle:Q,onSelected:ne[20]||(ne[20]=Ke=>E.$emit("overlay-closed"))}),Er({_:2},[E.$slots["year-overlay-value"]?{name:"item",fn:kt(({item:Ke})=>[Ge(E.$slots,"year-overlay-value",{text:Ke.text,value:Ke.value})]),key:"0"}:void 0]),1040,["modelValue","multi-model-value","skip-active"])):Pe("",!0)],64))])}}}),pO={key:0,class:"dp__time_input"},yO=["aria-label","onKeydown","onClick"],vO=["aria-label","onKeydown","onClick"],gO=["aria-label","onKeydown","onClick"],mO={key:0},bO=["aria-label","onKeydown"],xO=rn({__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},...ja},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","am-pm-change"],setup(n,{expose:i,emit:e}){const t=n,{setTimePickerElements:r,setTimePickerBackRef:a}=Aa(),{defaults:s}=Br(t),{transitionName:o,showTransition:l}=Xu(s.value.transitions),u=Ho({hours:!1,minutes:!1,seconds:!1}),h=Re("AM"),d=Re(null),f=Re([]);nn(()=>{e("mounted")});const p=A=>or(new Date,{hours:A.hours,minutes:A.minutes,seconds:t.enableSeconds?A.seconds:0,milliseconds:0}),v=je(()=>({hours:t.hours,minutes:t.minutes,seconds:t.seconds})),m=je(()=>A=>!L(+t[A]+ +t[`${A}Increment`],A)),x=je(()=>A=>!L(+t[A]-+t[`${A}Increment`],A)),w=(A,Q)=>fg(or(Ce(),A),Q),P=(A,Q)=>YD(or(Ce(),A),Q),O=je(()=>({dp__time_col:!0,dp__time_col_reg:!t.enableSeconds&&t.is24,dp__time_col_reg_with_button:!t.enableSeconds&&!t.is24,dp__time_col_sec:t.enableSeconds&&t.is24,dp__time_col_sec_with_button:t.enableSeconds&&!t.is24})),j=je(()=>{const A=[{type:"hours"},{type:"",separator:!0},{type:"minutes"}];return t.enableSeconds?A.concat([{type:"",separator:!0},{type:"seconds"}]):A}),M=je(()=>j.value.filter(A=>!A.separator)),F=je(()=>A=>
48{if(A==="hours"){const Q=_e(+t.hours);return{text:Q<10?`0${Q}`:`${Q}`,value:Q}}return{text:t[A]<10?`0${t[A]}`:`${t[A]}`,value:t[A]}}),g=A=>{const Q=t.is24?24:12,he=A==="hours"?Q:60,K=+t[`${A}GridIncrement`],le=A==="hours"&&!t.is24?K:0,E=[];for(let ne=le;ne<he;ne+=K)E.push({value:ne,text:ne<10?`0${ne}`:`${ne}`});return A==="hours"&&!t.is24&&E.push({value:0,text:"12"}),bS(E)},L=(A,Q)=>{const he=t.minTime?p(Ih(t.minTime)):null,K=t.maxTime?p(Ih(t.maxTime)):null,le=p(Ih(v.value,Q,A));return he&&K?(No(le,K)||Ds(le,K))&&(Ro(le,he)||Ds(le,he)):he?Ro(le,he)||Ds(le,he):K?No(le,K)||Ds(le,K):!0},N=je(()=>A=>g(A).flat().filter(Q=>Q||Q.value===0).map(Q=>Q.value).filter(Q=>!L(Q,A))),ye=A=>t[`no${A[0].toUpperCase()+A.slice(1)}Overlay`],H=A=>{ye(A)||(u[A]=!u[A],u[A]||e("overlay-closed"))},z=A=>A==="hours"?qn:A==="minutes"?Zn:Es,Z=(A,Q=!0)=>{const he=Q?w:P,K=Q?+t[`${A}Increment`]:-+t[`${A}Increment`];L(+t[A]+K,A)&&e(`update:${A}`,z(A)(he({[A]:+t[A]},{[A]:+t[`${A}Increment`]})))},_e=A=>t.is24?A:(A>=12?h.value="PM":h.value="AM",PS(A)),ve=()=>{h.value==="PM"?(h.value="AM",e("update:hours",t.hours-12)):(h.value="PM",e("update:hours",t.hours+12)),e("am-pm-change",h.value)},$=A=>{u[A]=!0},I=(A,Q,he)=>{if(A&&t.arrowNavigation){Array.isArray(f.value[Q])?f.value[Q][he]=A:f.value[Q]=[A];const K=f.value.reduce((le,E)=>E.map((ne,Ue)=>[...le[Ue]||[],E[Ue]]),[]);a(t.closeTimePickerBtn),d.value&&(K[1]=K[1].concat(d.value)),r(K,t.order)}},te=(A,Q)=>A==="hours"&&!t.is24?e(`update:${A}`,h.value==="PM"?Q+12:Q):e(`update:${A}`,Q);return i({openChildCmp:$}),(A,Q)=>{var he;return A.disabled?Pe("",!0):(oe(),we("div",pO,[(oe(!0),we(Et,null,zi(q(j),(K,le)=>{var E,ne,Ue;return oe(),we("div",{key:le,class:ni(q(O))},[K.separator?(oe(),we(Et,{key:0},[bi(" : ")],64)):(oe(),we(Et,{key:1},[ae("button",{type:"button",class:ni({dp__btn:!0,dp__inc_dec_button:!0,dp__inc_dec_button_disabled:q(m)(K.type)}),"aria-label":(E=q(s).ariaLabels)==null?void 0:E.incrementValue(K.type),tabindex:"0",onKeydown:[At(Ve=>Z(K.type),["enter"]),At(Ve=>Z(K.type),["space"])],onClick:Ve=>Z(K.type),ref_for:!0,ref:Ve=>I(Ve,le,0)},[A.$slots["arrow-up"]?Ge(A.$slots,"arrow-up",{key:0}):Pe("",!0),A.$slots["arrow-up"]?Pe("",!0):(oe(),Qt(q(Fg),{key:1}))],42,yO),ae("button",{type:"button","aria-label":(ne=q(s).ariaLabels)==null?void 0:ne.openTpOverlay(K.type),class:ni(["dp__btn",ye(K.type)?"":"dp__time_display"]),tabindex:"0",onKeydown:[At(Ve=>H(K.type),["enter"]),At(Ve=>H(K.type),["space"])],onClick:Ve=>H(K.type),ref_for:!0,ref:Ve=>I(Ve,le,1)},[A.$slots[K.type]?Ge(A.$slots,K.type,{key:0,text:q(F)(K.type).text,value:q(F)(K.type).value}):Pe("",!0),A.$slots[K.type]?Pe("",!0):(oe(),we(Et,{key:1},[bi(it(q(F)(K.type).text),1)],64))],42,vO),ae("button",{type:"button",class:ni({dp__btn:!0,dp__inc_dec_button:!0,dp__inc_dec_button_disabled:q(x)(K.type)}),"aria-label":(Ue=q(s).ariaLabels)==null?void 0:Ue.decrementValue(K.type),tabindex:"0",onKeydown:[At(Ve=>Z(K.type,!1),["enter"]),At(Ve=>Z(K.type,!1),["space"])],onClick:Ve=>Z(K.type,!1),ref_for:!0,ref:Ve=>I(Ve,le,2)},[A.$slots["arrow-down"]?Ge(A.$slots,"arrow-down",{key:0}):Pe("",!0),A.$slots["arrow-down"]?Pe("",!0):(oe(),Qt(q(Ig),{key:1}))],42,gO)],64))],2)}),128)),A.is24?Pe("",!0):(oe(),we("div",mO,[A.$slots["am-pm-button"]?Ge(A.$slots,"am-pm-button",{key:0,toggle:ve,value:h.value}):Pe("",!0),A.$slots["am-pm-button"]?Pe("",!0):(oe(),we("button",{key:1,ref_key:"amPmButton",ref:d,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(he=q(s).ariaLabels)==null?void 0:he.amPmButton,tabindex:"0",onClick:ve,onKeydown:[At(Sr(ve,["prevent"]),["enter"]),At(Sr(ve,["prevent"]),["space"])]},it(h.value),41,bO))])),(oe(!0),we(Et,null,zi(q(M),(K,le)=>(oe(),Qt(Ls,{key:le,name:q(o)(u[K.type]),css:q(l)},{default:kt(()=>[u[K.type]?(oe(),Qt(Po,{key:0,items:g(K.type),"disabled-values":q(s).filters.times[K.type].concat(q(N)(K.type)),"esc-close":A.escClose,"aria-labels":q(s).ariaLabels,"hide-navigation":A.hideNavigation,"onUpdate:modelValue":E=>te(K.type,E),onSelected:E=>H(K.type),onToggle:E=>H(K.type),onResetFlow:Q[0]||(Q[0]=E=>A.$emit("reset-flow")),type:K.type},Er({"button-icon":kt(()=>[A.$slots["clock-icon"]?Ge(A.$slots,"clock-icon",{key:0}):Pe("",!0),A.$slots["clock-icon"]?Pe("",!0):(oe(),Qt(q(Vg),{key:1}))]),_:2},[A.$slots[`${K.type}-overlay-value`]?{name:"item",fn:kt(({item:E})=>[Ge(A.$slots,`${K.type}-overlay-value`,{text:E.text,value:E.value})]),key:"0"}:void 0]),1032,["items","disabled-values","esc-close","aria-labels","hide-navigation","onUpdate:modelValue","onSelected","onToggle","type"])):Pe("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),_O=["aria-label"],wO={class:"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"},PO={key:1,class:"dp__overlay_row dp__flex_row"},CO=["aria-label"],DO=rn({__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},internalModelValue:{type:[Date,Array],default:null},...ja},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(n,{expose:i,emit:e}){const t=n,{buildMatrix:r,setTimePicker:a}=Aa(),s=Ld(),{hideNavigationButtons:o,defaults:l}=Br(t),{transitionName:u,showTransition:h}=Xu(l.value.transitions),d=Re(null),f=Re(null),p=Re([]),v=Re(null);nn(()=>{e("mount"),!t.timePicker&&t.arrowNavigation?r([Ri(d.value)],"time"):a(!0,t.timePicker)});const m=je(()=>t.range&&t.modelAuto?Yg(t.internalModelValue):!0),x=Re(!1),w=H=>({hours:Array.isArray(t.hours)?t.hours[H]:t.hours,minutes:Array.isArray(t.minutes)?t.minutes[H]:t.minutes,seconds:Array.isArray(t.seconds)?t.seconds[H]:t.seconds}),P=je(()=>{const H=[];if(t.range)for(let z=0;z<2;z++)H.push(w(z));else H.push(w(0));return H}),O=(H,z=!1,Z="")=>{z||e("reset-flow"),x.value=H,e(H?"overlay-opened":"overlay-closed"),t.arrowNavigation&&a(H),ia(()=>{Z!==""&&p.value[0]&&p.value[0].openChildCmp(Z)})},j=je(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:t.autoApply&&!t.keepActionRow})),M=Xa(s,"timePicker"),F=(H,z,Z)=>t.range?z===0?[H,P.value[1][Z]]:[P.value[0][Z],H]:H,g=H=>{e("update:hours",H)},L=H=>{e("update:minutes",H)},N=H=>{e("update:seconds",H)},ye=()=>{v.value&&t.arrowNavigation&&v.value.focus({preventScroll:!0})};return i({toggleTimePicker:O}),(H,z)=>{var Z;return oe(),we("div",null,[H.timePicker?Pe("",!0):va((oe(),we("button",{key:0,t
48ype:"button",class:ni(q(j)),"aria-label":(Z=q(l).ariaLabels)==null?void 0:Z.openTimePicker,tabindex:"0",ref_key:"openTimePickerBtn",ref:d,onKeydown:[z[0]||(z[0]=At(_e=>O(!0),["enter"])),z[1]||(z[1]=At(_e=>O(!0),["space"]))],onClick:z[2]||(z[2]=_e=>O(!0))},[H.$slots["clock-icon"]?Ge(H.$slots,"clock-icon",{key:0}):Pe("",!0),H.$slots["clock-icon"]?Pe("",!0):(oe(),Qt(q(Vg),{key:1}))],42,_O)),[[ml,!q(o)("time")]]),Ir(Ls,{name:q(u)(x.value),css:q(h)},{default:kt(()=>{var _e;return[x.value||H.timePicker?(oe(),we("div",{key:0,class:"dp__overlay",ref_key:"overlayRef",ref:v,tabindex:"0"},[ae("div",wO,[H.$slots["time-picker-overlay"]?Ge(H.$slots,"time-picker-overlay",{key:0,hours:n.hours,minutes:n.minutes,seconds:n.seconds,setHours:g,setMinutes:L,setSeconds:N}):Pe("",!0),H.$slots["time-picker-overlay"]?Pe("",!0):(oe(),we("div",PO,[(oe(!0),we(Et,null,zi(q(P),(ve,$)=>va((oe(),Qt(xO,sr({key:$},{...H.$props,order:$,hours:ve.hours,minutes:ve.minutes,seconds:ve.seconds,closeTimePickerBtn:f.value,disabled:$===0?H.fixedStart:H.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:p,"onUpdate:hours":I=>g(F(I,$,"hours")),"onUpdate:minutes":I=>L(F(I,$,"minutes")),"onUpdate:seconds":I=>N(F(I,$,"seconds")),onMounted:ye,onOverlayClosed:ye,onAmPmChange:z[3]||(z[3]=I=>H.$emit("am-pm-change",I))}),Er({_:2},[zi(q(M),(I,te)=>({name:I,fn:kt(A=>[Ge(H.$slots,I,vr(dn(A)))])}))]),1040,["onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[ml,$===0?!0:q(m)]])),128))])),H.timePicker?Pe("",!0):va((oe(),we("button",{key:2,type:"button",ref_key:"closeTimePickerBtn",ref:f,class:ni(q(j)),"aria-label":(_e=q(l).ariaLabels)==null?void 0:_e.closeTimePicker,tabindex:"0",onKeydown:[z[4]||(z[4]=At(ve=>O(!1),["enter"])),z[5]||(z[5]=At(ve=>O(!1),["space"]))],onClick:z[6]||(z[6]=ve=>O(!1))},[H.$slots["calendar-icon"]?Ge(H.$slots,"calendar-icon",{key:0}):Pe("",!0),H.$slots["calendar-icon"]?Pe("",!0):(oe(),Qt(q(Uu),{key:1}))],42,CO)),[[ml,!q(o)("time")]])])],512)):Pe("",!0)]}),_:3},8,["name","css"])])}}}),SO=(n,i)=>{const{isDisabled:e,matchDate:t,getWeekFromDate:r,defaults:a}=Br(i),s=Re(null),o=Re(Ce()),l=A=>{!A.current&&i.hideOffsetDates||(s.value=A.value)},u=()=>{s.value=null},h=A=>Array.isArray(n.value)&&i.range&&n.value[0]&&s.value?A?kr(s.value,
48n.value[0]):gr(s.value,n.value[0]):!0,d=(A,Q)=>{const he=()=>n.value?Q?n.value[0]||null:n.value[1]:null,K=n.value&&Array.isArray(n.value)?he():null;return ci(Ce(A.value),K)},f=A=>{const Q=Array.isArray(n.value)?n.value[0]:null;return A?!gr(s.value||null,Q):!0},p=(A,Q=!0)=>(i.range||i.weekPicker)&&Array.isArray(n.value)&&n.value.length===2?i.hideOffsetDates&&!A.current?!1:ci(Ce(A.value),n.value[Q?0:1]):i.range?d(A,Q)&&f(Q)||ci(A.value,Array.isArray(n.value)?n.value[0]:null)&&h(Q):!1,v=(A,Q,he)=>Array.isArray(n.value)&&n.value[0]&&n.value.length===1?A?!1:he?kr(n.value[0],Q.value):gr(n.value[0],Q.value):!1,m=A=>!n.value||i.hideOffsetDates&&!A.current?!1:i.range?i.modelAuto&&Array.isArray(n.value)?ci(A.value,n.value[0]?n.value[0]:o.value):!1:i.multiDates&&Array.isArray(n.value)?n.value.some(Q=>ci(Q,A.value)):ci(A.value,n.value?n.value:o.value),x=A=>{if(i.autoRange||i.weekPicker){if(s.value){if(i.hideOffsetDates&&!A.current)return!1;const Q=ta(s.value,+i.autoRange),he=r(Ce(s.value));return i.weekPicker?ci(he[1],Ce(A.value)):ci(Q,Ce(A.value))}return!1}return!1},w=A=>{if(i.autoRange||i.weekPicker){if(s.value){const Q=ta(s.value,+i.autoRange);if(i.hideOffsetDates&&!A.current)return!1;const he=r(Ce(s.value));return i.weekPicker?kr(A.value,he[0])&&gr(A.value,he[1]):kr(A.value,s.value)&&gr(A.value,Q)}return!1}return!1},P=A=>{if(i.autoRange||i.weekPicker){if(s.value){if(i.hideOffsetDates&&!A.current)return!1;const Q=r(Ce(s.value));return i.weekPicker?ci(Q[0],A.value):ci(s.value,A.value)}return!1}return!1},O=A=>Eg(n.value,s.value,A.value),j=()=>i.modelAuto&&Array.isArray(i.internalModelValue)?!!i.internalModelValue[0]:!1,M=()=>i.modelAuto?Yg(i.internalModelValue):!0,F=A=>{if(Array.isArray(n.value)&&n.value.length||i.weekPicker)return!1;const Q=i.range?!p(A)&&!p(A,!1):!0;return!e(A.value)&&!m(A)&&!(!A.current&&i.hideOffsetDates)&&Q},g=A=>i.range?i.modelAuto?j()&&m(A):!1:m(A),L=A=>i.highlight?t(A.value,i.highlight):!1,N=A=>e(A.value)&&i.highlightDisabledDays===!1,ye=A=>i.highlightWeekDays&&i.highlightWeekDays.includes(A.value.getDay()),H=A=>(i.range||i.weekPicker)&&(!(a.value.multiCalendars>0)||A.current)&&M()&&!(!A.current&&i.hideOffsetDates)&&!m(A)?O(A):!1,z=A=>{const{isRangeStart:Q,isRangeEnd:he}=ve(A),K=i.range?Q||he:!1;return{dp__cell_offset:!A.current,dp__pointer:!i.disabled&&!(!A.current&&i.hideOffsetDates)&&!e(A.value),dp__cell_disabled:e(A.value),dp__cell_highlight:!N(A)&&(L(A)||ye(A))&&!g(A)&&!K,dp__cell_highlight_active:!N(A)&&(L(A)||ye(A))&&g(A),dp__today:!i.noToday&&ci(A.value,o.value)&&A.current}},Z=A=>({dp__active_date:g(A),dp__date_hover:F(A)}),_e=A=>({...$(A),...I(A),dp__range_between_week:H(A)&&i.weekPicker}),ve=A=>{const Q=a.value.multiCalendars>0?A.current&&p(A)&&M():p(A)&&M(),he=a.value.multiCalendars>0?A.current&&p(A,!1)&&M():p(A,!1)&&M();return{isRangeStart:Q,isRangeEnd:he}},$=A=>{const{isRangeStart:Q,isRangeEnd:he}=ve(A);return{dp__range_start:Q,dp__range_end:he,dp__range_between:H(A)&&!i.weekPicker,dp__date_hover_start:v(F(A),A,!0),dp__date_hover_end:v(F(A),A,!1)}},I=A=>({...$(A),dp__cell_auto_range:w(A),dp__cell_auto_range_start:P(A),dp__cell_auto_range_end:x(A)}),te=A=>i.range?i.autoRange?I(A):i.modelAuto?{...Z(A),...$(A)}:$(A):i.weekPicker?_e(A):Z(A);return{setHoverDate:l,clearHoverDate:u,getDayClassData:A=>({...z(A),...te(A),[i.dayClass?i.dayClass(A.value):""]:!0,[i.calendarCellClassName]:!!i.calendarCellClassName})}},OO=["id","onKeydown"],TO={key:0,class:"dp__sidebar_left"},kO={key:1,class:"dp__preset_ranges"},MO=["onClick"],AO={key:2,class:"dp__sidebar_right"},jO={key:3,class:"dp__action_extra"},VO=rn({__name:"DatepickerMenu",props:{openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},...ja},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change"],setup(n,{expose:i,emit:e}){const t=n,r=je(()=>{const{openOnTop:me,internalModelValue:et,...Ti}=t;return Ti}),{setMenuFocused:a,setShiftKey:s,control:o}=Lg(),{getCalendarDays:l,defaults:u}=Br(t),h=Ld(),d=Re(null),f=Ho({timePicker:!!(!t.enableTimePicker||t.timePicker||t.monthPicker),monthYearInput:!!t.timePicker,calendar:!1}),p=Re([]),v=Re([]),m=Re(null),x=Re(null),w=Re(0),P=Re(!1),O=Re(0);nn(()=>{var me;P.value=!0,!((me=t.presetRanges)!=null&&me.length)&&!h["left-sidebar"]&&!h["right-sidebar"]&&(We(),window.addEventListener("resize",We));const et=Ri(x);if(et&&!t.textInput&&!t.inline&&(a(!0),N()),et){const Ti=$i=>{t.allowPreventDefault&&$i.preventDefault(),$i.stopImmediatePropagation(),$i.stopPropagation()};et.addEventListener("pointerdown",Ti),et.addEventListener("mousedown",Ti)}}),Rd(()=>{window.removeEventListener("resize",We)});const{arrowRight:j,arrowLeft:M,arrowDown:F,arrowUp:g}=Aa(),L=me=>{me||me===0?v.value[me].triggerTransition(_e.value(me),ve.value(me)):v.value.forEach((et,Ti)=>et.triggerTransition(_e.value(Ti),ve.value(Ti)))},N=()=>{const me=Ri(x);me&&me.focus({preventScroll:!0})},ye=()=>{var me;(me=t.flow)!=null&&me.length&&O.value!==-1&&(O.value+=1,e("flow-step",O.value),rt())},H=()=>{O.value=-1},{calendars:z,modelValue:Z,month:_e,year:ve,time:$,updateTime:I,updateMonthYear:te,selectDate:A,getWeekNum:Q,monthYearSelect:he,handleScroll:K,handleArrow:le,handleSwipe:E,getMarker:ne,selectCurrentDate:Ue,presetDateRange:Ve}=jS(t,e,ye,L,O),{setHoverDate:Ye,clearHoverDate:Xe,getDayClassData:ft}=SO(Z,t);Pa(z,()=>{t.openOnTop&&setTimeout(()=>{e("recalculate-position")},0)},{deep:!0});const Ke=Xa(h,"calendar"),oi=Xa(h,"action"),Oi=Xa(h,"timePicker"),gi=Xa(h,"monthYear"),Zi=je(()=>t.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),Mr=je(()=>_S(t.yearRange,t.reverseYears)),wr=je(()=>wS(t.locale,t.monthNameFormat)),We=()=>{const me=Ri(d);me&&(w.value=me.getBoundingClientRect().width)},Ct=je(()=>me=>l(_e.value(me),ve.value(me))),vt=je(()=>u.value.multiCalendars>0&&t.range?[...Array(u.value.multiCalendars).keys()]:[0]),Ar=je(()=>me=>me===1),Vi=je(()=>t.monthPicker||t.timePicker||t.yearPicker),on=je(()=>({dp__menu_inner:!0,dp__flex_display:u.value.multiCalendars>0})),ln=je(()=>({dp__instance_calendar:u.value.multiCalendars>0})),Be=je(()=>({dp__menu_disabled:t.disabled,dp__menu_readonly:t.readonly})),Fi=je(()=>me=>li(Ct,me)),ha=je(()=>({dp__menu:!0,dp__menu_index:!t.inline,dp__relative:t.inline,[t.menuClassName]:!!t.menuClassName})),li=(me,et)=>me.value(et).map(Ti=>({...Ti,days:Ti.days.map($i=>($i.marker=ne($i),$i.classData=ft($i),$i))})),zr=me=>{me.stopPropagation(),me.stopImmediatePropagation()},Ii=()=>{t.escClose&&e("close-picker")},X=(me,et=!1)=>{A(me,et),t.spaceConfirm&&e("select-date")},ge=me=>{var et;(et=t.flow)!=null&&et.length&&(f[me]=!0,Object.keys(f).filter(Ti=>!f[Ti]).length||rt())},ze=(me,et,Ti,$i,...Fa)=>{if(t.flow[O.value]===me){const at=$i?et.value[0]:et.value;at&&at[Ti](...Fa)}},rt=()=>{ze("month",p,"toggleMonthPicker",!0,!0),ze("year",p,"toggleYearPicker",!0,!0),ze("calendar",m,"toggleTimePicker",!1,!1,!0),ze("time",m,"toggleTimePicker",!1,!0,!0);const me=t.flow[O.value];(me==="hours"||me==="minutes"||me==="seconds")&&ze(me,m,"toggleTimePicker",!1,!0,!0,me)},qt=me=>
48{if(t.arrowNavigation){if(me==="up")return g();if(me==="down")return F();if(me==="left")return M();if(me==="right")return j()}else me==="left"||me==="up"?le("left",0,me==="up"):le("right",0,me==="down")},Ur=me=>{s(me.shiftKey),!t.disableMonthYearSelect&&me.code==="Tab"&&me.target.classList.contains("dp__menu")&&o.value.shiftKeyInMenu&&(me.preventDefault(),me.stopImmediatePropagation(),e("close-picker"))},Pr=me=>{p.value[0]&&p.value[0].handleMonthYearChange(me)},Va=()=>{N(),e("time-picker-close")};return i({updateMonthYear:te}),(me,et)=>{var Ti;return oe(),Qt(Ls,{appear:"",name:(Ti=q(u).transitions)==null?void 0:Ti.menuAppear,css:!!me.transitions},{default:kt(()=>{var $i,Fa;return[ae("div",{id:me.uid?`dp-menu-${me.uid}`:void 0,tabindex:"0",ref_key:"dpMenuRef",ref:x,role:"dialog",class:ni(q(ha)),onMouseleave:et[14]||(et[14]=(...at)=>q(Xe)&&q(Xe)(...at)),onClick:zr,onKeydown:[At(Ii,["esc"]),et[15]||(et[15]=At(Sr(at=>qt("left"),["prevent"]),["left"])),et[16]||(et[16]=At(Sr(at=>qt("up"),["prevent"]),["up"])),et[17]||(et[17]=At(Sr(at=>qt("down"),["prevent"]),["down"])),et[18]||(et[18]=At(Sr(at=>qt("right"),["prevent"]),["right"])),Ur]},[(me.disabled||me.readonly)&&me.inline?(oe(),we("div",{key:0,class:ni(q(Be))},null,2)):Pe("",!0),!me.inline&&!me.teleportCenter?(oe(),we("div",{key:1,class:ni(q(Zi))},null,2)):Pe("",!0),ae("div",{class:ni({dp__menu_content_wrapper:(($i=me.presetRanges)==null?void 0:$i.length)||!!me.$slots["left-sidebar"]||!!me.$slots["right-sidebar"]})},[me.$slots["left-sidebar"]?(oe(),we("div",TO,[Ge(me.$slots,"left-sidebar",vr(dn({handleMonthYearChange:Pr})))])):Pe("",!0),(Fa=me.presetRanges)!=null&&Fa.length?(oe(),we("div",kO,[(oe(!0),we(Et,null,zi(me.presetRanges,(at,Qi)=>(oe(),we("div",{key:Qi,style:Kn(at.style||{}),class:"dp__preset_range",onClick:ht=>q(Ve)(at.range,!!at.slot)},[at.slot?Ge(me.$slots,at.slot,{key:0,presetDateRange:q(Ve),label:at.label,range:at.range}):(oe(),we(Et,{key:1},[bi(it(at.label),1)],64))],12,MO))),128))])):Pe("",!0),ae("div",{class:"dp__instance_calendar",ref_key:"calendarWrapperRef",ref:d,role:"document"},[ae("div",{class:ni(q(on))},[(oe(!0),we(Et,null,zi(q(vt),(at,Qi)=>(oe(),we("div",{key:at,class:ni(q(ln))},[!me.disableMonthYearSelect&&!me.timePicker?(oe(),Qt(fO,sr({key:0,ref_for:!0,ref:ht=>{ht&&(p.value[Qi]=ht)},months:q(wr),years:q(Mr),month:q(_e)(at),year:q(ve)(at),instance:at,"internal-model-value":n.internalModelValue},q(r),{onMount:et[0]||(et[0]=ht=>ge("monthYearInput")),onResetFlow:H,onUpdateMonthYear:ht=>q(te)(at,ht),onMonthYearSelect:q(he),onOverlayClosed:N}),Er({_:2},[zi(q(gi),(ht,zs)=>({name:ht,fn:kt(Us=>[Ge(me.$slots,ht,vr(dn(Us)))])}))]),1040,["months","years","month","year","instance","internal-model-value","onUpdateMonthYear","onMonthYearSelect"])):Pe("",!0),Ir(tO,sr({ref_for:!0,ref:ht=>{ht&&(v.value[Qi]=ht)},"specific-mode":q(Vi),"get-week-num":q(Q),instance:at,"mapped-dates":q(Fi)(at),month:q(_e)(at),year:q(ve)(at)},q(r),{onSelectDate:ht=>q(A)(ht,!q(Ar)(at)),onHandleSpace:ht=>X(ht,!q(Ar)(at)),onSetHoverDate:et[1]||(et[1]=ht=>q(Ye)(ht)),onHandleScroll:ht=>q(K)(ht,at),onHandleSwipe:ht=>q(E)(ht,at),onMount:et[2]||(et[2]=ht=>ge("calendar")),onResetFlow:H,onTooltipOpen:et[3]||(et[3]=ht=>me.$emit("tooltip-open",ht)),onTooltipClose:et[4]||(et[4]=ht=>me.$emit("tooltip-close",ht))}),Er({_:2},[zi(q(Ke),(ht,zs)=>({name:ht,fn:kt(Us=>[Ge(me.$slots,ht,vr(dn({...Us})))])}))]),1040,["specific-mode","get-week-num","instance","mapped-dates","month","year","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])],2))),128))],2),ae("div",null,[me.$slots["time-picker"]?Ge(me.$slots,"time-picker",vr(sr({key:0},{time:q($),updateTime:q(I)}))):(oe(),we(Et,{key:1},[me.enableTimePicker&&!me.monthPicker&&!me.weekPicker?(oe(),Qt(DO,sr({key:0,ref_key:"timePickerRef",ref:m,hours:q($).hours,minutes:q($).minutes,seconds:q($).seconds,"internal-model-value":n.internalModelValue},q(r),{onMount:et[5]||(et[5]=at=>ge("timePicker")),"onUpdate:hours":et[6]||(et[6]=at=>q(I)(at)),"onUpdate:minutes":et[7]||(et[7]=at=>q(I)(at,!1)),"onUpdate:seconds":et[8]||(et[8]=at=>q(I)(at,!1,!0)),onResetFlow:H,onOverlayClosed:Va,onOverlayOpened:et[9]||(et[9]=at=>me.$emit("time-picker-open",at)),onAmPmChange:et[10]||(et[10]=at=>me.$emit("am-pm-change",at))}),Er({_:2},[zi(q(Oi),(at,Qi)=>({name:at,fn:kt(ht=>[Ge(me.$slots,at,vr(dn(ht)))])}))]),1040,["hours","minutes","seconds","internal-model-value"])):Pe("",!0)],64))])],512),me.$slots["right-sidebar"]?(oe(),we("div",AO,[Ge(me.$slots,"right-sidebar",vr(dn({handleMonthYearChange:Pr})))])):Pe("",!0),me.$slots["action-extra"]?(oe(),we("div",jO,[me.$slots["action-extra"]?Ge(me.$slots,"action-extra",{key:0,selectCurrentDate:q(Ue)}):Pe("",!0)])):Pe("",!0)],2),!me.autoApply||me.keepActionRow?(oe(),Qt(XS,sr({key:2,"menu-mount":P.value,"calendar-width":w.value,"internal-model-value":n.internalModelValue},q(r),{onClosePicker:et[11]||(et[11]=at=>me.$emit("close-picker")),onSelectDate:et[12]||(et[12]=at=>me.$emit("select-date")),onInvalidSelect:et[13]||(et[13]=at=>me.$emit("invalid-select")),onSelectNow:q(Ue)}),Er({_:2},[zi(q(oi),(at,Qi)=>({name:at,fn:kt(ht=>[Ge(me.$slots,at,vr(dn({...ht})))])}))]),1040,["menu-mount","calendar-width","internal-model-value","onSelectNow"])):Pe("",!0)],42,OO)]}),_:3},8,["name","css"])}}}),FO=typeof window<"u"?window:void 0,Uh=()=>{},IO=n=>jm()?(Vm(n),!0):!1,EO=(n,i,e,t)=>{if(!n)return Uh;let r=Uh;const a=Pa(()=>q(n),o=>{r(),o&&(o.addEventListener(i,e,t),r=()=>{o.removeEventListener(i,e,t),r=Uh})},{immediate:!0,flush:"post"}),s=()=>{a(),r()};return IO(s),s},LO=(n,i,e,t={})=>{const{window:r=FO,event:a="pointerdown"}=t;return r?EO(r,a,s=>{const o=Ri(n),l=Ri(i);!o||!l||o===s.target||s.composedPath().includes(o)||s.composedPath().includes(l)||e(s)},{passive:!0}):void 0},RO=rn({__name:"VueDatePicker",props:{...ja},emits:["update:model-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invali
48d-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change"],setup(n,{expose:i,emit:e}){const t=n,r=Ld(),a=Re(!1),s=Co(t,"modelValue"),o=Co(t,"timezone"),l=Re(null),u=Re(null),h=Re(!1),d=Re(null),{setMenuFocused:f,setShiftKey:p}=Lg(),{clearArrowNav:v}=Aa(),{validateDate:m,isValidTime:x,defaults:w}=Br(t);nn(()=>{z(t.modelValue),t.inline||(N(d.value).addEventListener("scroll",A),window.addEventListener("resize",Q)),t.inline&&(a.value=!0)}),Rd(()=>{if(!t.inline){const We=N(d.value);We&&We.removeEventListener("scroll",A),window.removeEventListener("resize",Q)}});const P=Xa(r,"all",t.presetRanges),O=Xa(r,"input");Pa([s,o],()=>{z(s.value)},{deep:!0});const{openOnTop:j,menuStyle:M,resetPosition:F,setMenuPosition:g,setInitialPosition:L,getScrollableParent:N}=IS(l,u,e,t),{inputValue:ye,internalModelValue:H,parseExternalModelValue:z,emitModelValue:Z,formatInputValue:_e,checkBeforeEmit:ve}=VS(e,t,h),$=je(()=>({dp__main:!0,dp__theme_dark:t.dark,dp__theme_light:!t.dark,dp__flex_display:t.inline,dp__flex_display_with_input:t.inlineWithInput})),I=je(()=>t.dark?"dp__theme_dark":"dp__theme_light"),te=je(()=>t.teleport?{to:typeof t.teleport=="boolean"?"body":t.teleport,disabled:t.inline}:{class:"dp__outer_menu_wrap"}),A=()=>{a.value&&(t.closeOnScroll?Xe():g())},Q=()=>{a.value&&g()},he=async()=>{var We,Ct,vt;!t.disabled&&!t.readonly&&(F(),await ia(),a.value=!0,await ia(),L(),await ia(),g(),delete M.value.opacity,(We=w.value.transitions)!=null&&We.menuAppear||(vt=(Ct=l.value)==null?void 0:Ct.$el)==null||vt.classList.add("dp__menu_transitioned"),a.value&&e("open"),a.value||Ye(),z(t.modelValue))},K=()=>{ye.value="",Ye(),e("update:model-value",null),e("cleared"),Xe()},le=()=>{const We=H.value;return!We||!Array.isArray(We)&&m(We)?!0:Array.isArray(We)?We.length===2&&m(We[0])&&m(We[1])?!0:m(We[0]):!1},E=()=>{ve()&&le()?(Z(),Xe()):e("invalid-select",H.value)},ne=We=>{Ue(),Z(),t.closeOnAutoApply&&!We&&Xe()},Ue=()=>{u.value&&t.textInput&&u.value.setParsedDate(H.value)},Ve=(We=!1)=>{t.autoApply&&x(H.value)&&le()&&(t.range&&Array.isArray(H.value)?(t.partialRange||H.value.length===2)&&ne(We):ne(We))},Ye=()=>{t.textInput||(H.value=null)},Xe=()=>{t.inline||(a.value&&(a.value=!1,f(!1),p(!1),v(),e("closed"),L(),ye.value&&z(s.value)),Ye())},ft=(We,Ct)=>{if(!We){H.value=null;return}H.value=We,Ct&&(E(),e("text-submit"))},Ke=()=>{t.autoApply&&x(H.value)&&Z(),Ue()},oi=()=>a.value?Xe():he(),Oi=We=>{H.value=We},gi=()=>{t.textInput&&(h.value=!0,_e()),e("focus")},Zi=()=>{t.textInput&&(h.value=!1,z(t.modelValue)),e("blur")},Mr=We=>{l.value&&l.value.updateMonthYear(0,{month:Sp(We.month),year:Sp(We.year)})},wr=We=>{z(We||t.modelValue)};return LO(l,u,t.onClickOutside?()=>t.onClickOutside(le):Xe),i({closeMenu:Xe,selectDate:E,clearValue:K,openMenu:he,onScroll:A,formatInputValue:_e,updateInternalModelValue:Oi,setMonthYear:Mr,parseModel:wr}),(We,Ct)=>(oe(),we("div",{class:ni(q($)),ref_key:"pickerWrapperRef",ref:d},[Ir(WS,sr({ref_key:"inputRef",ref:u,"is-menu-open":a.value,"input-value":q(ye),"onUpdate:inputValue":Ct[0]||(Ct[0]=vt=>Ba(ye)?ye.value=vt:null)},We.$props,{onClear:K,onOpen:he,onSetInputDate:ft,onSetEmptyDate:q(Z),onSelectDate:E,onToggle:oi,onClose:Xe,onFocus:gi,onBlur:Zi}),Er({_:2},[zi(q(O),(vt,Ar)=>({name:vt,fn:kt(Vi=>[Ge(We.$slots,vt,vr(dn(Vi)))])}))]),1040,["is-menu-open","input-value","onSetEmptyDate"]),a.value?(oe(),Qt(jp(We.teleport?Mm:"div"),vr(sr({key:0},q(te))),{default:kt(()=>[a.value?(oe(),Qt(VO,sr({key:0,ref_key:"dpMenuRef",ref:l,class:q(I),style:We.inline?void 0:q(M),"open-on-top":q(j)},We.$props,{"internal-model-value":q(H),"onUpdate:internalModelValue":Ct[1]||(Ct[1]=vt=>Ba(H)?H.value=vt:null),onClosePicker:Xe,onSelectDate:E,onAutoApply:Ve,onTimeUpdate:Ke,onFlowStep:Ct[2]||(Ct[2]=vt=>We.$emit("flow-step",vt)),onUpdateMonthYear:Ct[3]||(Ct[3]=vt=>We.$emit("update-month-year",vt)),onInvalidSelect:Ct[4]||(Ct[4]=vt=>We.$emit("invalid-select",q(H))),onInvalidFixedRange:Ct[5]||(Ct[5]=vt=>We.$emit("invalid-fixed-range",vt)),onRecalculatePosition:q(g),onTooltipOpen:Ct[6]||(Ct[6]=vt=>We.$emit("tooltip-open",vt)),onTooltipClose:Ct[7]||(Ct[7]=vt=>We.$emit("tooltip-close",vt)),onTimePickerOpen:Ct[8]||(Ct[8]=vt=>We.$emit("time-picker-open",vt)),onTimePickerClose:Ct[9]||(Ct[9]=vt=>We.$emit("time-picker-close",vt)),onAmPmChange:Ct[10]||(Ct[10]=vt=>We.$emit("am-pm-change",vt))}),Er({_:2},[zi(q(P),(vt,Ar)=>({name:vt,fn:kt(Vi=>[Ge(We.$slots,vt,vr(dn({...Vi})))])}))]),1040,["class","style","open-on-top","internal-model-value","onRecalculatePosition"])):Pe("",!0)]),_:3},16)):Pe("",!0)],2))}}),qc=(()=>{const n=RO;return n.install=i=>
48{i.component("Vue3DatePicker",n)},n})(),NO=Object.freeze(Object.defineProperty({__proto__:null,default:qc},Symbol.toStringTag,{value:"Module"}));Object.entries(NO).forEach(([n,i])=>{n!=="default"&&(qc[n]=i)});const HO="/assets/image/economic.svg",Wg="/assets/image/loaderimage.gif",YO={name:"economic-calendar",setup(){return{store:km()}},data(){return{showCalendar:!1,CurrentEventList:[],selectcountrymessage:"",responseData:[],countries:[],filterdata:[],upnextDate:!1,countriesList:[],eventlist:{},historyview:[],currentEvent:"",currentSymbol:"",priorityLabel:{1:"yellow",2:"orange",3:"red"},timeFilter:!1,currencyFilter:!1,pageLimit:"15",search:"",page:1,date:[Date.now(),new Date(Date.now()+15*24*3600*1e3)],priority:1,timezone:[{offset:720,text:"UTC -12",val:"-12"},{offset:660,text:"UTC -11",val:"-11"},{offset:600,text:"UTC -10",val:"-10"},{offset:540,text:"UTC -9",val:"-9"},{offset:480,text:"UTC -8",val:"-8"},{offset:420,text:"UTC -7",val:"-7"},{offset:360,text:"UTC -6",val:"-6"},{offset:300,text:"UTC -5",val:"-5"},{offset:240,text:"UTC -4",val:"-4"},{offset:180,text:"UTC -3",val:"-3"},{offset:120,text:"UTC -2",val:"-2"},{offset:60,text:"UTC -1",val:"-1"},{offset:0,text:"UTC",val:"0"},{offset:-60,text:"UTC +1",val:"+1"},{offset:-120,text:"UTC +2",val:"+2"},{offset:-180,text:"UTC +3",val:"+3"},{offset:-210,text:"UTC +3:30",val:"+3.5"},{offset:-240,text:"UTC +4",val:"+4"},{offset:-270,text:"UTC +4:30",val:"+4.5"},{offset:-300,text:"UTC +5",val:"+5"},{offset:-330,text:"UTC +5:30",val:"+5.5"},{offset:-345,text:"UTC +5:45",val:"+5.75"},{offset:-360,text:"UTC +6",val:"+6"},{offset:-420,text:"UTC +7",val:"+7"},{offset:-480,text:"UTC +8",val:"+8"},{offset:-540,text:"UTC +9",val:"+9"},{offset:-570,text:"UTC +9:30",val:"+9.5"},{offset:-600,text:"UTC +10",val:"+10"},{offset:-630,text:"UTC +10:30",val:"+10.5"},{offset:-660,text:"UTC +11",val:"+11"},{offset:-720,text:"UTC +12",val:"+12"},{offset:-780,text:"UTC +13",val:"+13"},{offset:-840,text:"UTC +14",val:"+14"}],datepickerOpen:!1,shortcuts:[{text:"Prev 15 Days",start:new Date(Date.now()-15*24*3600*1e3),end:new Date},{text:"Prev 30 Days",start:new Date(Date.now()-30*24*3600*1e3),end:new Date},{text:"Next 15 Days",start:new Date,end:new Date(Date.now()+15*24*3600*1e3)},{text:"Next 30 Days",start:new Date,end:new Date(Date.now()+30*24*3600*1e3)}],lang:{formatLocale:{firstDayOfWeek:1},monthBeforeYear:!1},timeFormat:"am-pm"}},mounted(){let n=this;jh(document).on("click",function(i){jh(i.target).closest(".timeFilter").length||(n.timeFilter=!1),jh(i.target).closest(".currencyFilter").length||(n.currencyFilter=!1)})},components:{barChart:t1,Discovermore:Im,[sp.name]:sp,VueDatePicker:qc},methods:{hidePopup(n){this.showCalendar=!1},dateformat(){return Me(this.date[0]).format("DD-MM-YYYY")+" To "+Me(this.date[1]).format("DD-MM-YYYY")},dateChange(){this.date[0],this.date[0]&&(this.showCalendar=!1,this.listing())},selectAll(){this.countries=this.countriesList.map(n=>n.name)},Countrywiselisting(n){if(n.length>0&&this.store.EventList.length>0){this.currencyFilter=!1;let i={};for(let e=0;e<=n.length-1;e++){for(let t=0;t<=this.store.EventList.length-1;t++)this.store.EventList[t].country.trim(" ").toLowerCase()==n[e].trim(" ").toLowerCase()&&this.filterdata.push(this.store.EventList[t]);if(e==n.length-1)if(this.filterdata.length>0){this.filter_no_record=!1;for(let t=0;t<=this.filterdata.length-1;t++){let r=new Date(this.filterdata[t].date);const a=Me(r).format("YYYY-MM-DD");this.upnextDate&&Date.parse(this.filterdata[t].date)<Date.now().toString()||(i[a]?i[a].push(this.filterdata[t]):(i[a]=[],i[a].push(this.filterdata[t])),t==this.filterdata.length-1&&(this.CurrentEventList=i,this.upnextDate&&(this.upnextDate=!1)))}}else this.filter_no_record=!0}}else n.length==0&&(this.selectcountrymessage="Please select the Country")},upNext(){this.upnextDate=!0,this.date=[Date.now(),new Date(Date.now()+15*24*3600*1e3)],this.eventIndex="",this.listing()},getEvent(n,i){if(n!=""&&i!=this.currentEvent){this.currentEvent=i,this.currentSymbol=n;let e={Symbol:n};this.historyview[this.currentSymbol]||this.store.eventhistory(e).then(t=>(this.historyview[this.currentSymbol]=t.data.data,this.eventlist)).catch(t=>{this.currentEvent="",this.currentSymbol=""})}else this.currentEvent="",this.currentSymbol=""},autoTimeChange(){if(this.autoTime===!0){let n=this.timezone.filter(i=>i.offset==new Date().getTimezoneOffset());this.offset=n.length?n[0].val:"",this.timeFormat="am-pm"}},eventdate(n){return Me(n).format("dddd, DD MMMM YYYY")},datetime(n){return Me(n).format("hh:mm a")},Getdate(n,i,e){let t="hh:mm a";if(e=="24hrs"&&(t="HH:mm"),e=="am-pm"&&(t="hh:mm a"),i=="")return Me(n).format(t);{let r=new Date(n),a=r.getTime()+r.getTimezoneOffset()*6e4,s=new Date(a+36e5*i);return Me(s).format(t)}},notAfterToday(n){const i=new Date;return i.setHours(0,0,0,0),n.getTime()<i.getTime()},DateChanged(n){let i=new Date,e=new Date;if(this.date[0]&&(i=new Date(this.date[0])),this.date[1]&&(e=new Date(this.date[1])),n=="1"){let t=new Date(i-1296e6),r=i;if(Me(i,"MM/DD/YYYY").isBefore(Me()))return;Me(t,"MM/DD/YYYY").isBefore(Me())?this.date=[Date.now(),new Date(Date.now()+15*24*3600*1e3)]:this.date=[t,r]}else if(n=="3"){let t=e,r=new Date(e.getTime()+15*24*60*60*1e3);this.date=[t,r]}},listing(){let n=Me(this.date[0]).format("YYYY-MM-DD"),i=Me(this.date[1]).format("YYYY-MM-DD"),e={filter:{from:n.toString(),to:i.toString(),priority:this.priority},sort:[],search:this.search,page:this.page,perPage:parseInt(this.pageLimit),offset:new Date().getTimezoneOffset()};this.store.EconomicCalendarList(e).then(t=>{this.CurrentEventList=t})}},created(){this.listing(),this.store.getCountryList()}},WO={class:"bg-black-img"},BO={class:"page-content"},zO={class:"container-fluid"},UO={class:"section"},XO={class:"row flex-lg-row-reverse align-items-center justify-content-between"},GO=ae("div",{class:"col-lg-6"}
48,[ae("img",{width:"594",height:"467",src:HO,alt:"economic",class:"img-fluid economic-img"})],-1),$O={class:"col-lg-6"},KO={class:"font-unbound text-white-primary mb-40"},qO=ae("br",null,null,-1),ZO={class:"text-white-secondary fw-400"},QO=ae("br",{class:"d-none d-lg-block"},null,-1),JO={class:"section pb-0"},eT={class:"container-fluid"},tT={class:"bonus-trade"},iT={class:"wrapper"},rT={class:"econ-holder wow fadeIn"},nT={class:"events-filter d-flex align-items-center justify-content-between flex-wrap mb-2 pb-3 position-relative"},aT={class:"d-flex align-items-center justify-content-between flex-wrap date-wrap"},sT={class:"filter_one selextDuDate d-flex align-items-center"},oT={class:"mx-2 mb-0"},lT={class:"search_five"},uT={class:"upNext d-flex align-items-center"},hT={class:"flagFilter"},dT={class:"filterTitle d-flex align-items-center justify-content-between mb-3"},cT={class:"d-flex align-items-center mb-0 fs-16"},fT={class:"filterTab"},pT={class:"fitSelect active",href:"#"},yT={class:"fitSelect ms-2",href:"#"},vT={key:0,class:"scrollbar inDropdown"},gT=["src"],mT={key:1},bT=["value"],xT=ae("span",{class:"checkmark"},null,-1),_T={class:"sndfil mt-2 pt-1"},wT={class:"d-flex align-items-center mb-0 fs-16"},PT={class:"custom-check-box"},CT=ae("span",{class:"checkmark"},null,-1),DT={class:"custom-check-box"},ST=ae("span",{class:"checkmark"},null,-1),OT={class:"custom-check-box"},TT=ae("span",{class:"checkmark"},null,-1),kT={class:"saveSetting d-flex align-items-center justify-content-between mt-3 pt-3 border-top"},MT={class:"custom-check-box w-50"},AT=ae("input",{type:"checkbox",checked:"checked"},null,-1),jT=ae("span",{class:"checkmark"},null,-1),VT={class:"table-responsive"},FT={id:"myTable",class:"common-table economicCalendar"},IT={scope:"col"},ET={scope:"col"},LT={scope:"col"},RT={scope:"col"},NT={scope:"col"},HT={scope:"col"},YT={scope:"col"},WT={key:0},BT=ae("td",{class:"bg-transparent",colspan:"7"},[ae("div",{class:"text-center loader-row"},[ae("img",{width:"50",height:"50",src:Wg,class:"data_currency_icon loader--icon"})])],-1),zT=[BT],UT={class:"text-center themecolor",colspan:"7"},XT={class:"mb-0"},GT=["onClick"],$T=["src"],KT={key:1},qT={key:0},ZT={colspan:"7",class:"inner-content"},QT={key:0,class:"text-center loader-row"},JT=ae("img",{width:"50",height:"50",src:Wg,class:"data_currency_icon loader--icon"},null,-1),ek=[JT],tk={key:1,class:"row bg-white-primary-95"},ik={class:"col-md-5"},rk={key:0,class:"mt-2"},nk={class:"mb-2 fs-16 text-wrap"},ak={class:"mb-2 text-wrap"},sk={class:"text-wrap"},ok={class:"mt-2 text-wrap"},lk={key:0,class:"col-md-7"};function uk(n,i,e,t,r,a){const s=ll("vue-feather"),o=ll("VueDatePicker"),l=ll("barChart"),u=ll("Discovermore");return oe(),we(Et,null,[ae("div",WO,[ae("div",BO,[ae("div",zO,[ae("div",UO,[ae("div",XO,[GO,ae("div",$O,[ae("h1",KO,[bi(it(n.$t("tools.economic"))+" ",1),qO,ae("span",null,it(n.$t("tools.calendar")),1)]),ae("h4",ZO,[bi(it(n.$t("tools.helping_you_alert"))+" ",1),QO,bi(" "+it(n.$t("tools.your_trading_journey")),1)])])])])])])]),ae("div",JO,[ae("div",eT,[ae("div",tT,[ae("div",iT,[ae("div",rT,[ae("div",nT,[ae("div",aT,[ae("div",sT,[ae("div",{class:"customFilter-btn border-radius d-flex align-items-center",onClick:i[3]||(i[3]=h=>r.showCalendar="true")},[ae("a",{class:"d-flex arrowbtn",href:"javascript:void(0)",onClick:i[0]||(i[0]=Sr(h=>a.DateChanged("1"),["prevent"]))},[Ir(s,{size:"16px",type:"chevron-left"})]),r.showCalendar?(oe(),Qt(o,{key:0,range:!0,modelValue:r.date,"onUpdate:modelValue":[i[1]||(i[1]=h=>r.date=h),a.dateChange],multiCalendars:!0,inline:"",format:"dd mmmm yyyy",autoApply:"",multiCalendarsSolo:!0,enableTimePicker:!1,ref:"datepicker","on-click-outside":a.hidePopup},null,8,["modelValue","onUpdate:modelValue","on-click-outside"])):Pe("",!0),ae("p",oT,it(a.dateformat()),1),ae("a",{class:"d-flex arrowbtn",href:"javascript:void(0)",onClick:i[2]||(i[2]=Sr(h=>a.DateChanged("3"),["prevent"]))},[Ir(s,{size:"16px",type:"chevron-right"})])])])]),ae("div",lT,[ae("div",uT,[ae("a",{class:"customFilter-btn me-2 px-3 py-2 border-radius d-flex align-items-center",href:"#",onClick:i[4]||(i[4]=Sr(h=>a.upNext(),["prevent"]))},[Ir(s,{class:"left triangle",size:"14px",type:"triangle"}
48),bi(" "+it(n.$t("tools.up_next")),1)]),ae("div",hT,[ae("a",{onClick:i[5]||(i[5]=Sr(h=>r.currencyFilter=!r.currencyFilter,["prevent"])),class:ni([r.currencyFilter?"active":"","customFilter-btn padAus border-radius d-flex currencyFilter"]),href:"#"},[Ir(s,{size:"16px",type:"filter"})],2),ae("div",{class:ni([r.currencyFilter?"active":"","animateDorp mt-2 currencyFilter"]),style:{"z-index":"2"}},[ae("div",dT,[ae("h3",cT,[bi(it(n.$t("tools.country"))+" ",1),ae("a",{class:"green seleClear",href:"#",onClick:i[6]||(i[6]=Sr(h=>a.selectAll(),["prevent"]))},it(n.$t("tools.select_all")),1),bi("/ "),ae("a",{class:"red seleClear",href:"#",onClick:i[7]||(i[7]=Sr(h=>r.countries=[],["prevent"]))},it(n.$t("tools.clear")),1)]),ae("div",fT,[ae("a",pT,it(n.$t("tools.my_filter")),1),ae("a",yT,it(n.$t("tools.default")),1)])]),t.store.countrylist&&t.store.countrylist&&(t.store.countrylist!=""||t.store.countrylist!=null)?(oe(),we("div",vT,[(oe(!0),we(Et,null,zi(t.store.countrylist,(h,d)=>(oe(),we("label",{class:"custom-check-box",key:d},[h.name!==void 0?(oe(),we("img",{key:0,width:"20",height:"20",src:"assets/image/country_images/"+h.name.toLowerCase()+".webp",alt:"Icon"},null,8,gT)):(oe(),we("p",mT,"-")),bi(" "+it(h.name)+" ",1),va(ae("input",{type:"checkbox",value:h.name,"onUpdate:modelValue":i[8]||(i[8]=f=>r.countries=f)},null,8,bT),[[Fm,r.countries]]),xT]))),128))])):Pe("",!0),ae("div",_T,[ae("h3",wT,it(n.$t("tools.impact")),1),ae("label",PT,[bi(it(n.$t("tools.all"))+" ",1),va(ae("input",{type:"radio",value:"1","onUpdate:modelValue":i[9]||(i[9]=h=>r.priority=h)},null,512),[[fh,r.priority]]),CT]),ae("label",DT,[bi(it(n.$t("tools.medium"))+" ",1),va(ae("input",{type:"radio",value:"2","onUpdate:modelValue":i[10]||(i[10]=h=>r.priority=h)},null,512),[[fh,r.priority]]),ST]),ae("label",OT,[bi(it(n.$t("tools.high"))+" ",1),va(ae("input",{type:"radio",value:"3","onUpdate:modelValue":i[11]||(i[11]=h=>r.priority=h)},null,512),[[fh,r.priority]]),TT])]),ae("div",kT,[ae("label",MT,[bi(it(n.$t("tools.save_setting_filter"))+" ",1),AT,jT]),r.priority=="1"?(oe(),we("a",{key:0,class:"cr-btn w-auto hvr-sweep-to-top common-btn fs-16 py-2 px-4 btn-primary",href:"#",onClick:i[12]||(i[12]=h=>a.Countrywiselisting(r.countries))},it(n.$t("tools.apply_filter")),1)):r.priority=="2"||r.priority=="3"?(oe(),we("a",{key:1,class:"cr-btn w-auto hvr-sweep-to-top common-btn fs-16 py-2 px-4 btn-primary",href:"#",onClick:i[13]||(i[13]=h=>a.listing())},it(n.$t("tools.apply_filter")),1)):Pe("",!0)])],2)])])])]),ae("div",VT,[ae("table",FT,[ae("thead",null,[ae("tr",null,[ae("th",IT,it(n.$t("tools.time")),1),ae("th",ET,it(n.$t("tools.country")),1),ae("th",LT,it(n.$t("tools.event")),1),ae("th",RT,it(n.$t("tools.impact")),1),ae("th",NT,it(n.$t("tools.actual")),1),ae("th",HT,it(n.$t("tools.forecast")),1),ae("th",YT,it(n.$t("tools.previous")),1)])]),ae("tbody",null,[t.store.loading?(oe(),we("tr",WT,zT)):(oe(!0),we(Et,{key:1},zi(r.CurrentEventList,(h,d,f)=>(oe(),we(Et,{key:d},[ae("tr",null,[ae("td",UT,[ae("h4",XT,it(a.eventdate(h[0].date)),1)])]),(oe(!0),we(Et,null,zi(h,(p,v)=>(oe(),we(Et,{key:v},[ae("tr",{class:"pointer",onClick:m=>a.getEvent(p.symbol,p._id)},[ae("td",null,it(a.datetime(p.date)),1),ae("td",null,[p.country!==void 0?(oe(),we("img",{key:0,width:"20",height:"20",src:"assets/image/country_images/"+p.country.toLowerCase()+".webp",class:"data_currency_icon"},null,8,$T)):(oe(),we("p",KT,"=")),bi(" "+it(p.country),1)]),ae("td",null,it(p.event),1),ae("td",null,[ae("span",{class:ni(r.priorityLabel[p.importance]),style:Kn("color:"+r.priorityLabel[p.importance])},[Ir(s,{type:"bar-chart"})],6)]),ae("td",null,it(p.actual||"-"),1),ae("td",null,it(p.forecast||"-"),1),ae("td",null,it(p.previous||"-"),1)],8,GT),r.currentEvent==p._id?(oe(),we("tr",qT,[ae("td",ZT,[r.historyview[r.currentSymbol]?(oe(),we("div",tk,[ae("div",ik,[r.historyview[r.currentSymbol].lastnews&&Array.isArray(r.historyview[r.currentSymbol].lastnews)&&r.historyview[r.currentSymbol].lastnews[0]?(oe(),we("div",rk,[ae("p",nk,[ae("strong",null,it(n.$t("tools.title")),1),bi(" "+it(r.historyview[r.currentSymbol].lastnews[0].title),1)]),ae("p",ak,[ae("strong",null,it(n.$t("tools.category")),1),bi(" "+it(r.historyview[r.currentSymbol].lastnews[0].category),1)]),ae("p",sk,[ae("strong",null,it(n.$t("tools.description")),1),bi(" "+it(r.historyview[r.currentSymbol].lastnews[0].description),1)])])):Pe("",!0),ae("p",ok,[ae("strong",null,it(n.$t("tools.definition")),1),bi(" "+it(r.historyview[r.currentSymbol].definition),1)])]),r.historyview[r.currentSymbol].chartdata&&r.historyview[r.currentSymbol].chartdata.length>0?(oe(),we("div",lk,[Ir(l,{chart_data:r.historyview[r.currentSymbol].chartdata},null,8,["chart_data"])])):Pe("",!0)])):(oe(),we("div",QT,ek))])])):Pe("",!0)],64))),128))],64))),128))])])])])])])])]),Ir(u)],64)}const hk=Ap(YO,[["render",uk]]),yk=Object.freeze(Object.defineProperty({__proto__:null,default:hk},Symbol.toStringTag,{value:"Module"}));
48export{OC as _,cp as a,hu as b,Yt as c,$t as d,Ht as e,Ne as f,kC as g,Le as h,yk as i};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.