Files
ToneAPI_webclient/dist/js/chunk-vendors.3f4f208d.js
T
2023-04-25 13:23:09 +02:00

42 lines
440 KiB
JavaScript

(self["webpackChunktoneapi_webclient"]=self["webpackChunktoneapi_webclient"]||[]).push([[998],{9662:function(t,e,n){var i=n(614),o=n(6330),r=TypeError;t.exports=function(t){if(i(t))return t;throw r(o(t)+" is not a function")}},6077:function(t,e,n){var i=n(614),o=String,r=TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw r("Can't set "+o(t)+" as a prototype")}},9670:function(t,e,n){var i=n(111),o=String,r=TypeError;t.exports=function(t){if(i(t))return t;throw r(o(t)+" is not an object")}},3013:function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:function(t,e,n){"use strict";var i,o,r,s=n(3013),a=n(9781),l=n(7854),c=n(614),u=n(111),h=n(2597),f=n(648),d=n(6330),p=n(8880),g=n(8052),y=n(7045),m=n(7976),b=n(9518),v=n(7674),x=n(5112),_=n(9711),w=n(9909),S=w.enforce,k=w.get,O=l.Int8Array,M=O&&O.prototype,P=l.Uint8ClampedArray,A=P&&P.prototype,E=O&&b(O),C=M&&b(M),T=Object.prototype,j=l.TypeError,D=x("toStringTag"),I=_("TYPED_ARRAY_TAG"),R="TypedArrayConstructor",L=s&&!!v&&"Opera"!==f(l.opera),F=!1,V={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N={BigInt64Array:8,BigUint64Array:8},$=function(t){if(!u(t))return!1;var e=f(t);return"DataView"===e||h(V,e)||h(N,e)},B=function(t){var e=b(t);if(u(e)){var n=k(e);return n&&h(n,R)?n[R]:B(e)}},z=function(t){if(!u(t))return!1;var e=f(t);return h(V,e)||h(N,e)},W=function(t){if(z(t))return t;throw j("Target is not a typed array")},H=function(t){if(c(t)&&(!v||m(E,t)))return t;throw j(d(t)+" is not a typed array constructor")},U=function(t,e,n,i){if(a){if(n)for(var o in V){var r=l[o];if(r&&h(r.prototype,t))try{delete r.prototype[t]}catch(s){try{r.prototype[t]=e}catch(c){}}}C[t]&&!n||g(C,t,n?e:L&&M[t]||e,i)}},q=function(t,e,n){var i,o;if(a){if(v){if(n)for(i in V)if(o=l[i],o&&h(o,t))try{delete o[t]}catch(r){}if(E[t]&&!n)return;try{return g(E,t,n?e:L&&E[t]||e)}catch(r){}}for(i in V)o=l[i],!o||o[t]&&!n||g(o,t,e)}};for(i in V)o=l[i],r=o&&o.prototype,r?S(r)[R]=o:L=!1;for(i in N)o=l[i],r=o&&o.prototype,r&&(S(r)[R]=o);if((!L||!c(E)||E===Function.prototype)&&(E=function(){throw j("Incorrect invocation")},L))for(i in V)l[i]&&v(l[i],E);if((!L||!C||C===T)&&(C=E.prototype,L))for(i in V)l[i]&&v(l[i].prototype,C);if(L&&b(A)!==C&&v(A,C),a&&!h(C,D))for(i in F=!0,y(C,D,{configurable:!0,get:function(){return u(this)?this[I]:void 0}}),V)l[i]&&p(l[i],I,i);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:F&&I,aTypedArray:W,aTypedArrayConstructor:H,exportTypedArrayMethod:U,exportTypedArrayStaticMethod:q,getTypedArrayConstructor:B,isView:$,isTypedArray:z,TypedArray:E,TypedArrayPrototype:C}},7745:function(t,e,n){var i=n(6244);t.exports=function(t,e){var n=0,o=i(e),r=new t(o);while(o>n)r[n]=e[n++];return r}},1318:function(t,e,n){var i=n(5656),o=n(1400),r=n(6244),s=function(t){return function(e,n,s){var a,l=i(e),c=r(l),u=o(s,c);if(t&&n!=n){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},3658:function(t,e,n){"use strict";var i=n(9781),o=n(3157),r=TypeError,s=Object.getOwnPropertyDescriptor,a=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(o(t)&&!s(t,"length").writable)throw r("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},1843:function(t,e,n){var i=n(6244);t.exports=function(t,e){for(var n=i(t),o=new e(n),r=0;r<n;r++)o[r]=t[n-r-1];return o}},1572:function(t,e,n){var i=n(6244),o=n(9303),r=RangeError;t.exports=function(t,e,n,s){var a=i(t),l=o(n),c=l<0?a+l:l;if(c>=a||c<0)throw r("Incorrect index");for(var u=new e(a),h=0;h<a;h++)u[h]=h===c?s:t[h];return u}},4326:function(t,e,n){var i=n(1702),o=i({}.toString),r=i("".slice);t.exports=function(t){return r(o(t),8,-1)}},648:function(t,e,n){var i=n(1694),o=n(614),r=n(4326),s=n(5112),a=s("toStringTag"),l=Object,c="Arguments"==r(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=i?r:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=l(t),a))?n:c?r(e):"Object"==(i=r(e))&&o(e.callee)?"Arguments":i}},9920:function(t,e,n){var i=n(2597),o=n(3887),r=n(1236),s=n(3070);t.exports=function(t,e,n){for(var a=o(e),l=s.f,c=r.f,u=0;u<a.length;u++){var h=a[u];i(t,h)||n&&i(n,h)||l(t,h,c(e,h))}}},8544:function(t,e,n){var i=n(7293);t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},8880:function(t,e,n){var i=n(9781),o=n(3070),r=n(9114);t.exports=i?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7045:function(t,e,n){var i=n(6339),o=n(3070);t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),o.f(t,e,n)}},8052:function(t,e,n){var i=n(614),o=n(3070),r=n(6339),s=n(3072);t.exports=function(t,e,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(i(n)&&r(n,c,a),a.global)l?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(u){}l?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},3072:function(t,e,n){var i=n(7854),o=Object.defineProperty;t.exports=function(t,e){try{o(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},5117:function(t,e,n){"use strict";var i=n(6330),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw o("Cannot delete property "+i(e)+" of "+i(t))}},9781:function(t,e,n){var i=n(7293);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(t){var e="object"==typeof document&&document.all,n="undefined"==typeof e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},317:function(t,e,n){var i=n(7854),o=n(111),r=i.document,s=o(r)&&o(r.createElement);t.exports=function(t){return s?r.createElement(t):{}}},7207:function(t){var e=TypeError,n=9007199254740991;t.exports=function(t){if(t>n)throw e("Maximum allowed index exceeded");return t}},8113:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(t,e,n){var i,o,r=n(7854),s=n(8113),a=r.process,l=r.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=u.split("."),o=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&s&&(i=s.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/),i&&(o=+i[1]))),t.exports=o},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var i=n(7854),o=n(1236).f,r=n(8880),s=n(8052),a=n(3072),l=n(9920),c=n(4705);t.exports=function(t,e){var n,u,h,f,d,p,g=t.target,y=t.global,m=t.stat;if(u=y?i:m?i[g]||a(g,{}):(i[g]||{}).prototype,u)for(h in e){if(d=e[h],t.dontCallGetSet?(p=o(u,h),f=p&&p.value):f=u[h],n=c(y?h:g+(m?".":"#")+h,t.forced),!n&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(t.sham||f&&f.sham)&&r(d,"sham",!0),s(u,h,d,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},4374:function(t,e,n){var i=n(7293);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){var i=n(4374),o=Function.prototype.call;t.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(t,e,n){var i=n(9781),o=n(2597),r=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,a=o(r,"name"),l=a&&"something"===function(){}.name,c=a&&(!i||i&&s(r,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},5668:function(t,e,n){var i=n(1702),o=n(9662);t.exports=function(t,e,n){try{return i(o(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(r){}}},1702:function(t,e,n){var i=n(4374),o=Function.prototype,r=o.call,s=i&&o.bind.bind(r,r);t.exports=i?s:function(t){return function(){return r.apply(t,arguments)}}},5005:function(t,e,n){var i=n(7854),o=n(614),r=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?r(i[t]):i[t]&&i[t][e]}},8173:function(t,e,n){var i=n(9662),o=n(8554);t.exports=function(t,e){var n=t[e];return o(n)?void 0:i(n)}},7854:function(t,e,n){var i=function(t){return t&&t.Math==Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var i=n(1702),o=n(7908),r=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return r(o(t),e)}},3501:function(t){t.exports={}},4664:function(t,e,n){var i=n(9781),o=n(7293),r=n(317);t.exports=!i&&!o((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var i=n(1702),o=n(7293),r=n(4326),s=Object,a=i("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?a(t,""):s(t)}:s},2788:function(t,e,n){var i=n(1702),o=n(614),r=n(5465),s=i(Function.toString);o(r.inspectSource)||(r.inspectSource=function(t){return s(t)}),t.exports=r.inspectSource},9909:function(t,e,n){var i,o,r,s=n(4811),a=n(7854),l=n(111),c=n(8880),u=n(2597),h=n(5465),f=n(6200),d=n(3501),p="Object already initialized",g=a.TypeError,y=a.WeakMap,m=function(t){return r(t)?o(t):i(t,{})},b=function(t){return function(e){var n;if(!l(e)||(n=o(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return n}};if(s||h.state){var v=h.state||(h.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,i=function(t,e){if(v.has(t))throw g(p);return e.facade=t,v.set(t,e),e},o=function(t){return v.get(t)||{}},r=function(t){return v.has(t)}}else{var x=f("state");d[x]=!0,i=function(t,e){if(u(t,x))throw g(p);return e.facade=t,c(t,x,e),e},o=function(t){return u(t,x)?t[x]:{}},r=function(t){return u(t,x)}}t.exports={set:i,get:o,has:r,enforce:m,getterFor:b}},3157:function(t,e,n){var i=n(4326);t.exports=Array.isArray||function(t){return"Array"==i(t)}},4067:function(t,e,n){var i=n(648);t.exports=function(t){var e=i(t);return"BigInt64Array"==e||"BigUint64Array"==e}},614:function(t,e,n){var i=n(4154),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},4705:function(t,e,n){var i=n(7293),o=n(614),r=/#|\.prototype\./,s=function(t,e){var n=l[a(t)];return n==u||n!=c&&(o(e)?i(e):!!e)},a=s.normalize=function(t){return String(t).replace(r,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},8554:function(t){t.exports=function(t){return null===t||void 0===t}},111:function(t,e,n){var i=n(614),o=n(4154),r=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:i(t)||t===r}:function(t){return"object"==typeof t?null!==t:i(t)}},1913:function(t){t.exports=!1},2190:function(t,e,n){var i=n(5005),o=n(614),r=n(7976),s=n(3307),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&r(e.prototype,a(t))}},6244:function(t,e,n){var i=n(7466);t.exports=function(t){return i(t.length)}},6339:function(t,e,n){var i=n(1702),o=n(7293),r=n(614),s=n(2597),a=n(9781),l=n(6530).CONFIGURABLE,c=n(2788),u=n(9909),h=u.enforce,f=u.get,d=String,p=Object.defineProperty,g=i("".slice),y=i("".replace),m=i([].join),b=a&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),v=String(String).split("String"),x=t.exports=function(t,e,n){"Symbol("===g(d(e),0,7)&&(e="["+y(d(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!s(t,"name")||l&&t.name!==e)&&(a?p(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&s(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var i=h(t);return s(i,"source")||(i.source=m(v,"string"==typeof e?e:"")),t};Function.prototype.toString=x((function(){return r(this)&&f(this).source||c(this)}),"toString")},4758:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?n:e)(i)}},3070:function(t,e,n){var i=n(9781),o=n(4664),r=n(3353),s=n(9670),a=n(4948),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",d="writable";e.f=i?r?function(t,e,n){if(s(t),e=a(e),s(n),"function"===typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var i=u(t,e);i&&i[d]&&(t[e]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:h in n?n[h]:i[h],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(s(t),e=a(e),s(n),o)try{return c(t,e,n)}catch(i){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var i=n(9781),o=n(6916),r=n(5296),s=n(9114),a=n(5656),l=n(4948),c=n(2597),u=n(4664),h=Object.getOwnPropertyDescriptor;e.f=i?h:function(t,e){if(t=a(t),e=l(e),u)try{return h(t,e)}catch(n){}if(c(t,e))return s(!o(r.f,t,e),t[e])}},8006:function(t,e,n){var i=n(6324),o=n(748),r=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,n){var i=n(2597),o=n(614),r=n(7908),s=n(6200),a=n(8544),l=s("IE_PROTO"),c=Object,u=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=r(t);if(i(e,l))return e[l];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof c?u:null}},7976:function(t,e,n){var i=n(1702);t.exports=i({}.isPrototypeOf)},6324:function(t,e,n){var i=n(1702),o=n(2597),r=n(5656),s=n(1318).indexOf,a=n(3501),l=i([].push);t.exports=function(t,e){var n,i=r(t),c=0,u=[];for(n in i)!o(a,n)&&o(i,n)&&l(u,n);while(e.length>c)o(i,n=e[c++])&&(~s(u,n)||l(u,n));return u}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var i=n(5668),o=n(9670),r=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=i(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(s){}return function(n,i){return o(n),r(i),e?t(n,i):n.__proto__=i,n}}():void 0)},2140:function(t,e,n){var i=n(6916),o=n(614),r=n(111),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&o(n=t.toString)&&!r(a=i(n,t)))return a;if(o(n=t.valueOf)&&!r(a=i(n,t)))return a;if("string"!==e&&o(n=t.toString)&&!r(a=i(n,t)))return a;throw s("Can't convert object to primitive value")}},3887:function(t,e,n){var i=n(5005),o=n(1702),r=n(8006),s=n(5181),a=n(9670),l=o([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=r.f(a(t)),n=s.f;return n?l(e,n(t)):e}},7066:function(t,e,n){"use strict";var i=n(9670);t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},4488:function(t,e,n){var i=n(8554),o=TypeError;t.exports=function(t){if(i(t))throw o("Can't call method on "+t);return t}},6200:function(t,e,n){var i=n(2309),o=n(9711),r=i("keys");t.exports=function(t){return r[t]||(r[t]=o(t))}},5465:function(t,e,n){var i=n(7854),o=n(3072),r="__core-js_shared__",s=i[r]||o(r,{});t.exports=s},2309:function(t,e,n){var i=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.1",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(t,e,n){var i=n(7392),o=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},1400:function(t,e,n){var i=n(9303),o=Math.max,r=Math.min;t.exports=function(t,e){var n=i(t);return n<0?o(n+e,0):r(n,e)}},4599:function(t,e,n){var i=n(7593),o=TypeError;t.exports=function(t){var e=i(t,"number");if("number"==typeof e)throw o("Can't convert number to bigint");return BigInt(e)}},5656:function(t,e,n){var i=n(8361),o=n(4488);t.exports=function(t){return i(o(t))}},9303:function(t,e,n){var i=n(4758);t.exports=function(t){var e=+t;return e!==e||0===e?0:i(e)}},7466:function(t,e,n){var i=n(9303),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},7908:function(t,e,n){var i=n(4488),o=Object;t.exports=function(t){return o(i(t))}},7593:function(t,e,n){var i=n(6916),o=n(111),r=n(2190),s=n(8173),a=n(2140),l=n(5112),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!o(t)||r(t))return t;var n,l=s(t,u);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!o(n)||r(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},4948:function(t,e,n){var i=n(7593),o=n(2190);t.exports=function(t){var e=i(t,"string");return o(e)?e:e+""}},1694:function(t,e,n){var i=n(5112),o=i("toStringTag"),r={};r[o]="z",t.exports="[object z]"===String(r)},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},9711:function(t,e,n){var i=n(1702),o=0,r=Math.random(),s=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+r,36)}},3307:function(t,e,n){var i=n(6293);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var i=n(9781),o=n(7293);t.exports=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(t,e,n){var i=n(7854),o=n(614),r=i.WeakMap;t.exports=o(r)&&/native code/.test(String(r))},5112:function(t,e,n){var i=n(7854),o=n(2309),r=n(2597),s=n(9711),a=n(6293),l=n(3307),c=i.Symbol,u=o("wks"),h=l?c["for"]||c:c&&c.withoutSetter||s;t.exports=function(t){return r(u,t)||(u[t]=a&&r(c,t)?c[t]:h("Symbol."+t)),u[t]}},7658:function(t,e,n){"use strict";var i=n(2109),o=n(7908),r=n(6244),s=n(3658),a=n(7207),l=n(7293),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},h=c||!u();i({target:"Array",proto:!0,arity:1,forced:h},{push:function(t){var e=o(this),n=r(e),i=arguments.length;a(n+i);for(var l=0;l<i;l++)e[n]=arguments[l],n++;return s(e,n),n}})},541:function(t,e,n){"use strict";var i=n(2109),o=n(7908),r=n(6244),s=n(3658),a=n(5117),l=n(7207),c=1!==[].unshift(0),u=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}},h=c||!u();i({target:"Array",proto:!0,arity:1,forced:h},{unshift:function(t){var e=o(this),n=r(e),i=arguments.length;if(i){l(n+i);var c=n;while(c--){var u=c+i;c in e?e[u]=e[c]:a(e,u)}for(var h=0;h<i;h++)e[h]=arguments[h]}return s(e,n+i)}})},2087:function(t,e,n){var i=n(7854),o=n(9781),r=n(7045),s=n(7066),a=n(7293),l=i.RegExp,c=l.prototype,u=o&&a((function(){var t=!0;try{l(".","d")}catch(u){t=!1}var e={},n="",i=t?"dgimsy":"gimsy",o=function(t,i){Object.defineProperty(e,t,{get:function(){return n+=i,!0}})},r={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(r.hasIndices="d"),r)o(s,r[s]);var a=Object.getOwnPropertyDescriptor(c,"flags").get.call(e);return a!==i||n!==i}));u&&r(c,"flags",{configurable:!0,get:s})},1439:function(t,e,n){"use strict";var i=n(1843),o=n(260),r=o.aTypedArray,s=o.exportTypedArrayMethod,a=o.getTypedArrayConstructor;s("toReversed",(function(){return i(r(this),a(this))}))},7585:function(t,e,n){"use strict";var i=n(260),o=n(1702),r=n(9662),s=n(7745),a=i.aTypedArray,l=i.getTypedArrayConstructor,c=i.exportTypedArrayMethod,u=o(i.TypedArrayPrototype.sort);c("toSorted",(function(t){void 0!==t&&r(t);var e=a(this),n=s(l(e),e);return u(n,t)}))},5315:function(t,e,n){"use strict";var i=n(1572),o=n(260),r=n(4067),s=n(9303),a=n(4599),l=o.aTypedArray,c=o.getTypedArrayConstructor,u=o.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();u("with",{with:function(t,e){var n=l(this),o=s(t),u=r(n)?a(e):+e;return i(n,c(n),o,u)}}["with"],!h)},3767:function(t,e,n){n(1439)},8585:function(t,e,n){n(7585)},8696:function(t,e,n){n(5315)},4870:function(t,e,n){"use strict";n.d(e,{B:function(){return s},BK:function(){return Yt},Bj:function(){return r},EB:function(){return c},Fl:function(){return Qt},IU:function(){return Dt},Jd:function(){return M},PG:function(){return Et},SU:function(){return Ht},Um:function(){return Mt},WL:function(){return qt},X$:function(){return C},X3:function(){return jt},XI:function(){return Bt},Xl:function(){return It},dq:function(){return Nt},iH:function(){return $t},j:function(){return A},lk:function(){return P},nZ:function(){return l},qj:function(){return Ot},qq:function(){return w},yT:function(){return Tt}});n(7658);var i=n(7139);let o;class r{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=o,!t&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=o;try{return o=this,t()}finally{o=e}}else 0}on(){o=this}off(){o=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0,this._active=!1}}}function s(t){return new r(t)}function a(t,e=o){e&&e.active&&e.effects.push(t)}function l(){return o}function c(t){o&&o.cleanups.push(t)}const u=t=>{const e=new Set(t);return e.w=0,e.n=0,e},h=t=>(t.w&m)>0,f=t=>(t.n&m)>0,d=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=m},p=t=>{const{deps:e}=t;if(e.length){let n=0;for(let i=0;i<e.length;i++){const o=e[i];h(o)&&!f(o)?o.delete(t):e[n++]=o,o.w&=~m,o.n&=~m}e.length=n}},g=new WeakMap;let y=0,m=1;const b=30;let v;const x=Symbol(""),_=Symbol("");class w{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,a(this,n)}run(){if(!this.active)return this.fn();let t=v,e=k;while(t){if(t===this)return;t=t.parent}try{return this.parent=v,v=this,k=!0,m=1<<++y,y<=b?d(this):S(this),this.fn()}finally{y<=b&&p(this),m=1<<--y,v=this.parent,k=e,this.parent=void 0,this.deferStop&&this.stop()}}stop(){v===this?this.deferStop=!0:this.active&&(S(this),this.onStop&&this.onStop(),this.active=!1)}}function S(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let k=!0;const O=[];function M(){O.push(k),k=!1}function P(){const t=O.pop();k=void 0===t||t}function A(t,e,n){if(k&&v){let e=g.get(t);e||g.set(t,e=new Map);let i=e.get(n);i||e.set(n,i=u());const o=void 0;E(i,o)}}function E(t,e){let n=!1;y<=b?f(t)||(t.n|=m,n=!h(t)):n=!t.has(v),n&&(t.add(v),v.deps.push(t))}function C(t,e,n,o,r,s){const a=g.get(t);if(!a)return;let l=[];if("clear"===e)l=[...a.values()];else if("length"===n&&(0,i.kJ)(t)){const t=Number(o);a.forEach(((e,n)=>{("length"===n||n>=t)&&l.push(e)}))}else switch(void 0!==n&&l.push(a.get(n)),e){case"add":(0,i.kJ)(t)?(0,i.S0)(n)&&l.push(a.get("length")):(l.push(a.get(x)),(0,i._N)(t)&&l.push(a.get(_)));break;case"delete":(0,i.kJ)(t)||(l.push(a.get(x)),(0,i._N)(t)&&l.push(a.get(_)));break;case"set":(0,i._N)(t)&&l.push(a.get(x));break}if(1===l.length)l[0]&&T(l[0]);else{const t=[];for(const e of l)e&&t.push(...e);T(u(t))}}function T(t,e){const n=(0,i.kJ)(t)?t:[...t];for(const i of n)i.computed&&j(i,e);for(const i of n)i.computed||j(i,e)}function j(t,e){(t!==v||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function D(t,e){var n;return null===(n=g.get(t))||void 0===n?void 0:n.get(e)}const I=(0,i.fY)("__proto__,__v_isRef,__isVue"),R=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(i.yk)),L=z(),F=z(!1,!0),V=z(!0),N=$();function $(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=Dt(this);for(let e=0,o=this.length;e<o;e++)A(n,"get",e+"");const i=n[e](...t);return-1===i||!1===i?n[e](...t.map(Dt)):i}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){M();const n=Dt(this)[e].apply(this,t);return P(),n}})),t}function B(t){const e=Dt(this);return A(e,"has",t),e.hasOwnProperty(t)}function z(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_isShallow"===o)return e;if("__v_raw"===o&&r===(t?e?wt:_t:e?xt:vt).get(n))return n;const s=(0,i.kJ)(n);if(!t){if(s&&(0,i.RI)(N,o))return Reflect.get(N,o,r);if("hasOwnProperty"===o)return B}const a=Reflect.get(n,o,r);return((0,i.yk)(o)?R.has(o):I(o))?a:(t||A(n,"get",o),e?a:Nt(a)?s&&(0,i.S0)(o)?a:a.value:(0,i.Kn)(a)?t?Pt(a):Ot(a):a)}}const W=U(),H=U(!0);function U(t=!1){return function(e,n,o,r){let s=e[n];if(Ct(s)&&Nt(s)&&!Nt(o))return!1;if(!t&&(Tt(o)||Ct(o)||(s=Dt(s),o=Dt(o)),!(0,i.kJ)(e)&&Nt(s)&&!Nt(o)))return s.value=o,!0;const a=(0,i.kJ)(e)&&(0,i.S0)(n)?Number(n)<e.length:(0,i.RI)(e,n),l=Reflect.set(e,n,o,r);return e===Dt(r)&&(a?(0,i.aU)(o,s)&&C(e,"set",n,o,s):C(e,"add",n,o)),l}}function q(t,e){const n=(0,i.RI)(t,e),o=t[e],r=Reflect.deleteProperty(t,e);return r&&n&&C(t,"delete",e,void 0,o),r}function Y(t,e){const n=Reflect.has(t,e);return(0,i.yk)(e)&&R.has(e)||A(t,"has",e),n}function X(t){return A(t,"iterate",(0,i.kJ)(t)?"length":x),Reflect.ownKeys(t)}const G={get:L,set:W,deleteProperty:q,has:Y,ownKeys:X},J={get:V,set(t,e){return!0},deleteProperty(t,e){return!0}},K=(0,i.l7)({},G,{get:F,set:H}),Q=t=>t,Z=t=>Reflect.getPrototypeOf(t);function tt(t,e,n=!1,i=!1){t=t["__v_raw"];const o=Dt(t),r=Dt(e);n||(e!==r&&A(o,"get",e),A(o,"get",r));const{has:s}=Z(o),a=i?Q:n?Lt:Rt;return s.call(o,e)?a(t.get(e)):s.call(o,r)?a(t.get(r)):void(t!==o&&t.get(e))}function et(t,e=!1){const n=this["__v_raw"],i=Dt(n),o=Dt(t);return e||(t!==o&&A(i,"has",t),A(i,"has",o)),t===o?n.has(t):n.has(t)||n.has(o)}function nt(t,e=!1){return t=t["__v_raw"],!e&&A(Dt(t),"iterate",x),Reflect.get(t,"size",t)}function it(t){t=Dt(t);const e=Dt(this),n=Z(e),i=n.has.call(e,t);return i||(e.add(t),C(e,"add",t,t)),this}function ot(t,e){e=Dt(e);const n=Dt(this),{has:o,get:r}=Z(n);let s=o.call(n,t);s||(t=Dt(t),s=o.call(n,t));const a=r.call(n,t);return n.set(t,e),s?(0,i.aU)(e,a)&&C(n,"set",t,e,a):C(n,"add",t,e),this}function rt(t){const e=Dt(this),{has:n,get:i}=Z(e);let o=n.call(e,t);o||(t=Dt(t),o=n.call(e,t));const r=i?i.call(e,t):void 0,s=e.delete(t);return o&&C(e,"delete",t,void 0,r),s}function st(){const t=Dt(this),e=0!==t.size,n=void 0,i=t.clear();return e&&C(t,"clear",void 0,void 0,n),i}function at(t,e){return function(n,i){const o=this,r=o["__v_raw"],s=Dt(r),a=e?Q:t?Lt:Rt;return!t&&A(s,"iterate",x),r.forEach(((t,e)=>n.call(i,a(t),a(e),o)))}}function lt(t,e,n){return function(...o){const r=this["__v_raw"],s=Dt(r),a=(0,i._N)(s),l="entries"===t||t===Symbol.iterator&&a,c="keys"===t&&a,u=r[t](...o),h=n?Q:e?Lt:Rt;return!e&&A(s,"iterate",c?_:x),{next(){const{value:t,done:e}=u.next();return e?{value:t,done:e}:{value:l?[h(t[0]),h(t[1])]:h(t),done:e}},[Symbol.iterator](){return this}}}}function ct(t){return function(...e){return"delete"!==t&&this}}function ut(){const t={get(t){return tt(this,t)},get size(){return nt(this)},has:et,add:it,set:ot,delete:rt,clear:st,forEach:at(!1,!1)},e={get(t){return tt(this,t,!1,!0)},get size(){return nt(this)},has:et,add:it,set:ot,delete:rt,clear:st,forEach:at(!1,!0)},n={get(t){return tt(this,t,!0)},get size(){return nt(this,!0)},has(t){return et.call(this,t,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:at(!0,!1)},i={get(t){return tt(this,t,!0,!0)},get size(){return nt(this,!0)},has(t){return et.call(this,t,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:at(!0,!0)},o=["keys","values","entries",Symbol.iterator];return o.forEach((o=>{t[o]=lt(o,!1,!1),n[o]=lt(o,!0,!1),e[o]=lt(o,!1,!0),i[o]=lt(o,!0,!0)})),[t,n,e,i]}const[ht,ft,dt,pt]=ut();function gt(t,e){const n=e?t?pt:dt:t?ft:ht;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get((0,i.RI)(n,o)&&o in e?n:e,o,r)}const yt={get:gt(!1,!1)},mt={get:gt(!1,!0)},bt={get:gt(!0,!1)};const vt=new WeakMap,xt=new WeakMap,_t=new WeakMap,wt=new WeakMap;function St(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function kt(t){return t["__v_skip"]||!Object.isExtensible(t)?0:St((0,i.W7)(t))}function Ot(t){return Ct(t)?t:At(t,!1,G,yt,vt)}function Mt(t){return At(t,!1,K,mt,xt)}function Pt(t){return At(t,!0,J,bt,_t)}function At(t,e,n,o,r){if(!(0,i.Kn)(t))return t;if(t["__v_raw"]&&(!e||!t["__v_isReactive"]))return t;const s=r.get(t);if(s)return s;const a=kt(t);if(0===a)return t;const l=new Proxy(t,2===a?o:n);return r.set(t,l),l}function Et(t){return Ct(t)?Et(t["__v_raw"]):!(!t||!t["__v_isReactive"])}function Ct(t){return!(!t||!t["__v_isReadonly"])}function Tt(t){return!(!t||!t["__v_isShallow"])}function jt(t){return Et(t)||Ct(t)}function Dt(t){const e=t&&t["__v_raw"];return e?Dt(e):t}function It(t){return(0,i.Nj)(t,"__v_skip",!0),t}const Rt=t=>(0,i.Kn)(t)?Ot(t):t,Lt=t=>(0,i.Kn)(t)?Pt(t):t;function Ft(t){k&&v&&(t=Dt(t),E(t.dep||(t.dep=u())))}function Vt(t,e){t=Dt(t);const n=t.dep;n&&T(n)}function Nt(t){return!(!t||!0!==t.__v_isRef)}function $t(t){return zt(t,!1)}function Bt(t){return zt(t,!0)}function zt(t,e){return Nt(t)?t:new Wt(t,e)}class Wt{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Dt(t),this._value=e?t:Rt(t)}get value(){return Ft(this),this._value}set value(t){const e=this.__v_isShallow||Tt(t)||Ct(t);t=e?t:Dt(t),(0,i.aU)(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:Rt(t),Vt(this,t))}}function Ht(t){return Nt(t)?t.value:t}const Ut={get:(t,e,n)=>Ht(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const o=t[e];return Nt(o)&&!Nt(n)?(o.value=n,!0):Reflect.set(t,e,n,i)}};function qt(t){return Et(t)?t:new Proxy(t,Ut)}function Yt(t){const e=(0,i.kJ)(t)?new Array(t.length):{};for(const n in t)e[n]=Gt(t,n);return e}class Xt{constructor(t,e,n){this._object=t,this._key=e,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return D(Dt(this._object),this._key)}}function Gt(t,e,n){const i=t[e];return Nt(i)?i:new Xt(t,e,n)}var Jt;class Kt{constructor(t,e,n,i){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this[Jt]=!1,this._dirty=!0,this.effect=new w(t,(()=>{this._dirty||(this._dirty=!0,Vt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!i,this["__v_isReadonly"]=n}get value(){const t=Dt(this);return Ft(t),!t._dirty&&t._cacheable||(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Qt(t,e,n=!1){let o,r;const s=(0,i.mf)(t);s?(o=t,r=i.dG):(o=t.get,r=t.set);const a=new Kt(o,r,s||!r,n);return a}Jt="__v_isReadonly"},3396:function(t,e,n){"use strict";n.d(e,{$d:function(){return s},Cn:function(){return L},FN:function(){return yn},Fl:function(){return jn},HY:function(){return Ie},JJ:function(){return q},Jd:function(){return Mt},Ko:function(){return Nt},P$:function(){return it},Q6:function(){return ct},U2:function(){return rt},Uk:function(){return on},Us:function(){return Ae},WI:function(){return $t},Wm:function(){return Ze},Y3:function(){return b},Y8:function(){return tt},YP:function(){return G},_:function(){return Qe},aZ:function(){return ut},bv:function(){return St},dD:function(){return R},f3:function(){return Y},h:function(){return Dn},i8:function(){return Ln},iD:function(){return Ue},ic:function(){return Ot},j4:function(){return qe},kq:function(){return sn},nK:function(){return lt},uE:function(){return rn},up:function(){return Rt},w5:function(){return F},wg:function(){return $e},wy:function(){return jt}});n(7658),n(541);var i=n(4870),o=n(7139);function r(t,e,n,i){let o;try{o=i?t(...i):t()}catch(r){a(r,e,n)}return o}function s(t,e,n,i){if((0,o.mf)(t)){const s=r(t,e,n,i);return s&&(0,o.tI)(s)&&s.catch((t=>{a(t,e,n)})),s}const l=[];for(let o=0;o<t.length;o++)l.push(s(t[o],e,n,i));return l}function a(t,e,n,i=!0){const o=e?e.vnode:null;if(e){let i=e.parent;const o=e.proxy,s=n;while(i){const e=i.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,o,s))return;i=i.parent}const a=e.appContext.config.errorHandler;if(a)return void r(a,null,10,[t,o,s])}l(t,n,o,i)}function l(t,e,n,i=!0){console.error(t)}let c=!1,u=!1;const h=[];let f=0;const d=[];let p=null,g=0;const y=Promise.resolve();let m=null;function b(t){const e=m||y;return t?e.then(this?t.bind(this):t):e}function v(t){let e=f+1,n=h.length;while(e<n){const i=e+n>>>1,o=M(h[i]);o<t?e=i+1:n=i}return e}function x(t){h.length&&h.includes(t,c&&t.allowRecurse?f+1:f)||(null==t.id?h.push(t):h.splice(v(t.id),0,t),_())}function _(){c||u||(u=!0,m=y.then(A))}function w(t){const e=h.indexOf(t);e>f&&h.splice(e,1)}function S(t){(0,o.kJ)(t)?d.push(...t):p&&p.includes(t,t.allowRecurse?g+1:g)||d.push(t),_()}function k(t,e=(c?f+1:0)){for(0;e<h.length;e++){const t=h[e];t&&t.pre&&(h.splice(e,1),e--,t())}}function O(t){if(d.length){const t=[...new Set(d)];if(d.length=0,p)return void p.push(...t);for(p=t,p.sort(((t,e)=>M(t)-M(e))),g=0;g<p.length;g++)p[g]();p=null,g=0}}const M=t=>null==t.id?1/0:t.id,P=(t,e)=>{const n=M(t)-M(e);if(0===n){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function A(t){u=!1,c=!0,h.sort(P);o.dG;try{for(f=0;f<h.length;f++){const t=h[f];t&&!1!==t.active&&r(t,null,14)}}finally{f=0,h.length=0,O(t),c=!1,m=null,(h.length||d.length)&&A(t)}}new Set;new Map;function E(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||o.kT;let r=n;const a=e.startsWith("update:"),l=a&&e.slice(7);if(l&&l in i){const t=`${"modelValue"===l?"model":l}Modifiers`,{number:e,trim:s}=i[t]||o.kT;s&&(r=n.map((t=>(0,o.HD)(t)?t.trim():t))),e&&(r=n.map(o.h5))}let c;let u=i[c=(0,o.hR)(e)]||i[c=(0,o.hR)((0,o._A)(e))];!u&&a&&(u=i[c=(0,o.hR)((0,o.rs)(e))]),u&&s(u,t,6,r);const h=i[c+"Once"];if(h){if(t.emitted){if(t.emitted[c])return}else t.emitted={};t.emitted[c]=!0,s(h,t,6,r)}}function C(t,e,n=!1){const i=e.emitsCache,r=i.get(t);if(void 0!==r)return r;const s=t.emits;let a={},l=!1;if(!(0,o.mf)(t)){const i=t=>{const n=C(t,e,!0);n&&(l=!0,(0,o.l7)(a,n))};!n&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}return s||l?((0,o.kJ)(s)?s.forEach((t=>a[t]=null)):(0,o.l7)(a,s),(0,o.Kn)(t)&&i.set(t,a),a):((0,o.Kn)(t)&&i.set(t,null),null)}function T(t,e){return!(!t||!(0,o.F7)(e))&&(e=e.slice(2).replace(/Once$/,""),(0,o.RI)(t,e[0].toLowerCase()+e.slice(1))||(0,o.RI)(t,(0,o.rs)(e))||(0,o.RI)(t,e))}let j=null,D=null;function I(t){const e=j;return j=t,D=t&&t.type.__scopeId||null,e}function R(t){D=t}function L(){D=null}function F(t,e=j,n){if(!e)return t;if(t._n)return t;const i=(...n)=>{i._d&&We(-1);const o=I(e);let r;try{r=t(...n)}finally{I(o),i._d&&We(1)}return r};return i._n=!0,i._c=!0,i._d=!0,i}function V(t){const{type:e,vnode:n,proxy:i,withProxy:r,props:s,propsOptions:[l],slots:c,attrs:u,emit:h,render:f,renderCache:d,data:p,setupState:g,ctx:y,inheritAttrs:m}=t;let b,v;const x=I(t);try{if(4&n.shapeFlag){const t=r||i;b=an(f.call(t,t,d,s,g,p,y)),v=u}else{const t=e;0,b=an(t.length>1?t(s,{attrs:u,slots:c,emit:h}):t(s,null)),v=e.props?u:N(u)}}catch(w){Ve.length=0,a(w,t,1),b=Ze(Le)}let _=b;if(v&&!1!==m){const t=Object.keys(v),{shapeFlag:e}=_;t.length&&7&e&&(l&&t.some(o.tR)&&(v=$(v,l)),_=nn(_,v))}return n.dirs&&(_=nn(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),b=_,I(x),b}const N=t=>{let e;for(const n in t)("class"===n||"style"===n||(0,o.F7)(n))&&((e||(e={}))[n]=t[n]);return e},$=(t,e)=>{const n={};for(const i in t)(0,o.tR)(i)&&i.slice(9)in e||(n[i]=t[i]);return n};function B(t,e,n){const{props:i,children:o,component:r}=t,{props:s,children:a,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;if(!(n&&l>=0))return!(!o&&!a||a&&a.$stable)||i!==s&&(i?!s||z(i,s,c):!!s);if(1024&l)return!0;if(16&l)return i?z(i,s,c):!!s;if(8&l){const t=e.dynamicProps;for(let e=0;e<t.length;e++){const n=t[e];if(s[n]!==i[n]&&!T(c,n))return!0}}return!1}function z(t,e,n){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let o=0;o<i.length;o++){const r=i[o];if(e[r]!==t[r]&&!T(n,r))return!0}return!1}function W({vnode:t,parent:e},n){while(e&&e.subTree===t)(t=e.vnode).el=n,e=e.parent}const H=t=>t.__isSuspense;function U(t,e){e&&e.pendingBranch?(0,o.kJ)(t)?e.effects.push(...t):e.effects.push(t):S(t)}function q(t,e){if(gn){let n=gn.provides;const i=gn.parent&&gn.parent.provides;i===n&&(n=gn.provides=Object.create(i)),n[t]=e}else 0}function Y(t,e,n=!1){const i=gn||j;if(i){const r=null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(r&&t in r)return r[t];if(arguments.length>1)return n&&(0,o.mf)(e)?e.call(i.proxy):e}else 0}const X={};function G(t,e,n){return J(t,e,n)}function J(t,e,{immediate:n,deep:a,flush:l,onTrack:c,onTrigger:u}=o.kT){const h=(0,i.nZ)()===(null===gn||void 0===gn?void 0:gn.scope)?gn:null;let f,d,p=!1,g=!1;if((0,i.dq)(t)?(f=()=>t.value,p=(0,i.yT)(t)):(0,i.PG)(t)?(f=()=>t,a=!0):(0,o.kJ)(t)?(g=!0,p=t.some((t=>(0,i.PG)(t)||(0,i.yT)(t))),f=()=>t.map((t=>(0,i.dq)(t)?t.value:(0,i.PG)(t)?Z(t):(0,o.mf)(t)?r(t,h,2):void 0))):f=(0,o.mf)(t)?e?()=>r(t,h,2):()=>{if(!h||!h.isUnmounted)return d&&d(),s(t,h,3,[m])}:o.dG,e&&a){const t=f;f=()=>Z(t())}let y,m=t=>{d=w.onStop=()=>{r(t,h,4)}};if(wn){if(m=o.dG,e?n&&s(e,h,3,[f(),g?[]:void 0,m]):f(),"sync"!==l)return o.dG;{const t=Rn();y=t.__watcherHandles||(t.__watcherHandles=[])}}let b=g?new Array(t.length).fill(X):X;const v=()=>{if(w.active)if(e){const t=w.run();(a||p||(g?t.some(((t,e)=>(0,o.aU)(t,b[e]))):(0,o.aU)(t,b)))&&(d&&d(),s(e,h,3,[t,b===X?void 0:g&&b[0]===X?[]:b,m]),b=t)}else w.run()};let _;v.allowRecurse=!!e,"sync"===l?_=v:"post"===l?_=()=>Pe(v,h&&h.suspense):(v.pre=!0,h&&(v.id=h.uid),_=()=>x(v));const w=new i.qq(f,_);e?n?v():b=w.run():"post"===l?Pe(w.run.bind(w),h&&h.suspense):w.run();const S=()=>{w.stop(),h&&h.scope&&(0,o.Od)(h.scope.effects,w)};return y&&y.push(S),S}function K(t,e,n){const i=this.proxy,r=(0,o.HD)(t)?t.includes(".")?Q(i,t):()=>i[t]:t.bind(i,i);let s;(0,o.mf)(e)?s=e:(s=e.handler,n=e);const a=gn;mn(this);const l=J(r,s.bind(i),n);return a?mn(a):bn(),l}function Q(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t<n.length&&e;t++)e=e[n[t]];return e}}function Z(t,e){if(!(0,o.Kn)(t)||t["__v_skip"])return t;if(e=e||new Set,e.has(t))return t;if(e.add(t),(0,i.dq)(t))Z(t.value,e);else if((0,o.kJ)(t))for(let n=0;n<t.length;n++)Z(t[n],e);else if((0,o.DM)(t)||(0,o._N)(t))t.forEach((t=>{Z(t,e)}));else if((0,o.PO)(t))for(const n in t)Z(t[n],e);return t}function tt(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return St((()=>{t.isMounted=!0})),Mt((()=>{t.isUnmounting=!0})),t}const et=[Function,Array],nt={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:et,onEnter:et,onAfterEnter:et,onEnterCancelled:et,onBeforeLeave:et,onLeave:et,onAfterLeave:et,onLeaveCancelled:et,onBeforeAppear:et,onAppear:et,onAfterAppear:et,onAppearCancelled:et},setup(t,{slots:e}){const n=yn(),o=tt();let r;return()=>{const s=e.default&&ct(e.default(),!0);if(!s||!s.length)return;let a=s[0];if(s.length>1){let t=!1;for(const e of s)if(e.type!==Le){0,a=e,t=!0;break}}const l=(0,i.IU)(t),{mode:c}=l;if(o.isLeaving)return st(a);const u=at(a);if(!u)return st(a);const h=rt(u,l,o,n);lt(u,h);const f=n.subTree,d=f&&at(f);let p=!1;const{getTransitionKey:g}=u.type;if(g){const t=g();void 0===r?r=t:t!==r&&(r=t,p=!0)}if(d&&d.type!==Le&&(!Xe(u,d)||p)){const t=rt(d,l,o,n);if(lt(d,t),"out-in"===c)return o.isLeaving=!0,t.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&n.update()},st(a);"in-out"===c&&u.type!==Le&&(t.delayLeave=(t,e,n)=>{const i=ot(o,d);i[String(d.key)]=d,t._leaveCb=()=>{e(),t._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=n})}return a}}},it=nt;function ot(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function rt(t,e,n,i){const{appear:r,mode:a,persisted:l=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:h,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:g,onLeaveCancelled:y,onBeforeAppear:m,onAppear:b,onAfterAppear:v,onAppearCancelled:x}=e,_=String(t.key),w=ot(n,t),S=(t,e)=>{t&&s(t,i,9,e)},k=(t,e)=>{const n=e[1];S(t,e),(0,o.kJ)(t)?t.every((t=>t.length<=1))&&n():t.length<=1&&n()},O={mode:a,persisted:l,beforeEnter(e){let i=c;if(!n.isMounted){if(!r)return;i=m||c}e._leaveCb&&e._leaveCb(!0);const o=w[_];o&&Xe(t,o)&&o.el._leaveCb&&o.el._leaveCb(),S(i,[e])},enter(t){let e=u,i=h,o=f;if(!n.isMounted){if(!r)return;e=b||u,i=v||h,o=x||f}let s=!1;const a=t._enterCb=e=>{s||(s=!0,S(e?o:i,[t]),O.delayedLeave&&O.delayedLeave(),t._enterCb=void 0)};e?k(e,[t,a]):a()},leave(e,i){const o=String(t.key);if(e._enterCb&&e._enterCb(!0),n.isUnmounting)return i();S(d,[e]);let r=!1;const s=e._leaveCb=n=>{r||(r=!0,i(),S(n?y:g,[e]),e._leaveCb=void 0,w[o]===t&&delete w[o])};w[o]=t,p?k(p,[e,s]):s()},clone(t){return rt(t,e,n,i)}};return O}function st(t){if(ft(t))return t=nn(t),t.children=null,t}function at(t){return ft(t)?t.children?t.children[0]:void 0:t}function lt(t,e){6&t.shapeFlag&&t.component?lt(t.component.subTree,e):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function ct(t,e=!1,n){let i=[],o=0;for(let r=0;r<t.length;r++){let s=t[r];const a=null==n?s.key:String(n)+String(null!=s.key?s.key:r);s.type===Ie?(128&s.patchFlag&&o++,i=i.concat(ct(s.children,e,a))):(e||s.type!==Le)&&i.push(null!=a?nn(s,{key:a}):s)}if(o>1)for(let r=0;r<i.length;r++)i[r].patchFlag=-2;return i}function ut(t){return(0,o.mf)(t)?{setup:t,name:t.name}:t}const ht=t=>!!t.type.__asyncLoader;const ft=t=>t.type.__isKeepAlive;RegExp,RegExp;function dt(t,e){return(0,o.kJ)(t)?t.some((t=>dt(t,e))):(0,o.HD)(t)?t.split(",").includes(e):!!(0,o.Kj)(t)&&t.test(e)}function pt(t,e){yt(t,"a",e)}function gt(t,e){yt(t,"da",e)}function yt(t,e,n=gn){const i=t.__wdc||(t.__wdc=()=>{let e=n;while(e){if(e.isDeactivated)return;e=e.parent}return t()});if(xt(e,i,n),n){let t=n.parent;while(t&&t.parent)ft(t.parent.vnode)&&mt(i,e,n,t),t=t.parent}}function mt(t,e,n,i){const r=xt(e,t,i,!0);Pt((()=>{(0,o.Od)(i[e],r)}),n)}function bt(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function vt(t){return 128&t.shapeFlag?t.ssContent:t}function xt(t,e,n=gn,o=!1){if(n){const r=n[t]||(n[t]=[]),a=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;(0,i.Jd)(),mn(n);const r=s(e,n,t,o);return bn(),(0,i.lk)(),r});return o?r.unshift(a):r.push(a),a}}const _t=t=>(e,n=gn)=>(!wn||"sp"===t)&&xt(t,((...t)=>e(...t)),n),wt=_t("bm"),St=_t("m"),kt=_t("bu"),Ot=_t("u"),Mt=_t("bum"),Pt=_t("um"),At=_t("sp"),Et=_t("rtg"),Ct=_t("rtc");function Tt(t,e=gn){xt("ec",t,e)}function jt(t,e){const n=j;if(null===n)return t;const i=En(n)||n.proxy,r=t.dirs||(t.dirs=[]);for(let s=0;s<e.length;s++){let[t,n,a,l=o.kT]=e[s];t&&((0,o.mf)(t)&&(t={mounted:t,updated:t}),t.deep&&Z(n),r.push({dir:t,instance:i,value:n,oldValue:void 0,arg:a,modifiers:l}))}return t}function Dt(t,e,n,o){const r=t.dirs,a=e&&e.dirs;for(let l=0;l<r.length;l++){const c=r[l];a&&(c.oldValue=a[l].value);let u=c.dir[o];u&&((0,i.Jd)(),s(u,n,8,[t.el,c,t,e]),(0,i.lk)())}}const It="components";function Rt(t,e){return Ft(It,t,!0,e)||t}const Lt=Symbol();function Ft(t,e,n=!0,i=!1){const r=j||gn;if(r){const n=r.type;if(t===It){const t=Cn(n,!1);if(t&&(t===e||t===(0,o._A)(e)||t===(0,o.kC)((0,o._A)(e))))return n}const s=Vt(r[t]||n[t],e)||Vt(r.appContext[t],e);return!s&&i?n:s}}function Vt(t,e){return t&&(t[e]||t[(0,o._A)(e)]||t[(0,o.kC)((0,o._A)(e))])}function Nt(t,e,n,i){let r;const s=n&&n[i];if((0,o.kJ)(t)||(0,o.HD)(t)){r=new Array(t.length);for(let n=0,i=t.length;n<i;n++)r[n]=e(t[n],n,void 0,s&&s[n])}else if("number"===typeof t){0,r=new Array(t);for(let n=0;n<t;n++)r[n]=e(n+1,n,void 0,s&&s[n])}else if((0,o.Kn)(t))if(t[Symbol.iterator])r=Array.from(t,((t,n)=>e(t,n,void 0,s&&s[n])));else{const n=Object.keys(t);r=new Array(n.length);for(let i=0,o=n.length;i<o;i++){const o=n[i];r[i]=e(t[o],o,i,s&&s[i])}}else r=[];return n&&(n[i]=r),r}function $t(t,e,n={},i,o){if(j.isCE||j.parent&&ht(j.parent)&&j.parent.isCE)return"default"!==e&&(n.name=e),Ze("slot",n,i&&i());let r=t[e];r&&r._c&&(r._d=!1),$e();const s=r&&Bt(r(n)),a=qe(Ie,{key:n.key||s&&s.key||`_${e}`},s||(i?i():[]),s&&1===t._?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function Bt(t){return t.some((t=>!Ye(t)||t.type!==Le&&!(t.type===Ie&&!Bt(t.children))))?t:null}const zt=t=>t?vn(t)?En(t)||t.proxy:zt(t.parent):null,Wt=(0,o.l7)(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>zt(t.parent),$root:t=>zt(t.root),$emit:t=>t.emit,$options:t=>Kt(t),$forceUpdate:t=>t.f||(t.f=()=>x(t.update)),$nextTick:t=>t.n||(t.n=b.bind(t.proxy)),$watch:t=>K.bind(t)}),Ht=(t,e)=>t!==o.kT&&!t.__isScriptSetup&&(0,o.RI)(t,e),Ut={get({_:t},e){const{ctx:n,setupState:r,data:s,props:a,accessCache:l,type:c,appContext:u}=t;let h;if("$"!==e[0]){const i=l[e];if(void 0!==i)switch(i){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return a[e]}else{if(Ht(r,e))return l[e]=1,r[e];if(s!==o.kT&&(0,o.RI)(s,e))return l[e]=2,s[e];if((h=t.propsOptions[0])&&(0,o.RI)(h,e))return l[e]=3,a[e];if(n!==o.kT&&(0,o.RI)(n,e))return l[e]=4,n[e];qt&&(l[e]=0)}}const f=Wt[e];let d,p;return f?("$attrs"===e&&(0,i.j)(t,"get",e),f(t)):(d=c.__cssModules)&&(d=d[e])?d:n!==o.kT&&(0,o.RI)(n,e)?(l[e]=4,n[e]):(p=u.config.globalProperties,(0,o.RI)(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:i,setupState:r,ctx:s}=t;return Ht(r,e)?(r[e]=n,!0):i!==o.kT&&(0,o.RI)(i,e)?(i[e]=n,!0):!(0,o.RI)(t.props,e)&&(("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0))},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:r,propsOptions:s}},a){let l;return!!n[a]||t!==o.kT&&(0,o.RI)(t,a)||Ht(e,a)||(l=s[0])&&(0,o.RI)(l,a)||(0,o.RI)(i,a)||(0,o.RI)(Wt,a)||(0,o.RI)(r.config.globalProperties,a)},defineProperty(t,e,n){return null!=n.get?t._.accessCache[e]=0:(0,o.RI)(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};let qt=!0;function Yt(t){const e=Kt(t),n=t.proxy,r=t.ctx;qt=!1,e.beforeCreate&&Gt(e.beforeCreate,t,"bc");const{data:s,computed:a,methods:l,watch:c,provide:u,inject:h,created:f,beforeMount:d,mounted:p,beforeUpdate:g,updated:y,activated:m,deactivated:b,beforeDestroy:v,beforeUnmount:x,destroyed:_,unmounted:w,render:S,renderTracked:k,renderTriggered:O,errorCaptured:M,serverPrefetch:P,expose:A,inheritAttrs:E,components:C,directives:T,filters:j}=e,D=null;if(h&&Xt(h,r,D,t.appContext.config.unwrapInjectedRef),l)for(const i in l){const t=l[i];(0,o.mf)(t)&&(r[i]=t.bind(n))}if(s){0;const e=s.call(n,n);0,(0,o.Kn)(e)&&(t.data=(0,i.qj)(e))}if(qt=!0,a)for(const i in a){const t=a[i],e=(0,o.mf)(t)?t.bind(n,n):(0,o.mf)(t.get)?t.get.bind(n,n):o.dG;0;const s=!(0,o.mf)(t)&&(0,o.mf)(t.set)?t.set.bind(n):o.dG,l=jn({get:e,set:s});Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get:()=>l.value,set:t=>l.value=t})}if(c)for(const i in c)Jt(c[i],r,n,i);if(u){const t=(0,o.mf)(u)?u.call(n):u;Reflect.ownKeys(t).forEach((e=>{q(e,t[e])}))}function I(t,e){(0,o.kJ)(e)?e.forEach((e=>t(e.bind(n)))):e&&t(e.bind(n))}if(f&&Gt(f,t,"c"),I(wt,d),I(St,p),I(kt,g),I(Ot,y),I(pt,m),I(gt,b),I(Tt,M),I(Ct,k),I(Et,O),I(Mt,x),I(Pt,w),I(At,P),(0,o.kJ)(A))if(A.length){const e=t.exposed||(t.exposed={});A.forEach((t=>{Object.defineProperty(e,t,{get:()=>n[t],set:e=>n[t]=e})}))}else t.exposed||(t.exposed={});S&&t.render===o.dG&&(t.render=S),null!=E&&(t.inheritAttrs=E),C&&(t.components=C),T&&(t.directives=T)}function Xt(t,e,n=o.dG,r=!1){(0,o.kJ)(t)&&(t=ne(t));for(const s in t){const n=t[s];let a;a=(0,o.Kn)(n)?"default"in n?Y(n.from||s,n.default,!0):Y(n.from||s):Y(n),(0,i.dq)(a)&&r?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>a.value,set:t=>a.value=t}):e[s]=a}}function Gt(t,e,n){s((0,o.kJ)(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,n)}function Jt(t,e,n,i){const r=i.includes(".")?Q(n,i):()=>n[i];if((0,o.HD)(t)){const n=e[t];(0,o.mf)(n)&&G(r,n)}else if((0,o.mf)(t))G(r,t.bind(n));else if((0,o.Kn)(t))if((0,o.kJ)(t))t.forEach((t=>Jt(t,e,n,i)));else{const i=(0,o.mf)(t.handler)?t.handler.bind(n):e[t.handler];(0,o.mf)(i)&&G(r,i,t)}else 0}function Kt(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:r,optionsCache:s,config:{optionMergeStrategies:a}}=t.appContext,l=s.get(e);let c;return l?c=l:r.length||n||i?(c={},r.length&&r.forEach((t=>Qt(c,t,a,!0))),Qt(c,e,a)):c=e,(0,o.Kn)(e)&&s.set(e,c),c}function Qt(t,e,n,i=!1){const{mixins:o,extends:r}=e;r&&Qt(t,r,n,!0),o&&o.forEach((e=>Qt(t,e,n,!0)));for(const s in e)if(i&&"expose"===s);else{const i=Zt[s]||n&&n[s];t[s]=i?i(t[s],e[s]):e[s]}return t}const Zt={data:te,props:oe,emits:oe,methods:oe,computed:oe,beforeCreate:ie,created:ie,beforeMount:ie,mounted:ie,beforeUpdate:ie,updated:ie,beforeDestroy:ie,beforeUnmount:ie,destroyed:ie,unmounted:ie,activated:ie,deactivated:ie,errorCaptured:ie,serverPrefetch:ie,components:oe,directives:oe,watch:re,provide:te,inject:ee};function te(t,e){return e?t?function(){return(0,o.l7)((0,o.mf)(t)?t.call(this,this):t,(0,o.mf)(e)?e.call(this,this):e)}:e:t}function ee(t,e){return oe(ne(t),ne(e))}function ne(t){if((0,o.kJ)(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function ie(t,e){return t?[...new Set([].concat(t,e))]:e}function oe(t,e){return t?(0,o.l7)((0,o.l7)(Object.create(null),t),e):e}function re(t,e){if(!t)return e;if(!e)return t;const n=(0,o.l7)(Object.create(null),t);for(const i in e)n[i]=ie(t[i],e[i]);return n}function se(t,e,n,r=!1){const s={},a={};(0,o.Nj)(a,Ge,1),t.propsDefaults=Object.create(null),le(t,e,s,a);for(const i in t.propsOptions[0])i in s||(s[i]=void 0);n?t.props=r?s:(0,i.Um)(s):t.type.props?t.props=s:t.props=a,t.attrs=a}function ae(t,e,n,r){const{props:s,attrs:a,vnode:{patchFlag:l}}=t,c=(0,i.IU)(s),[u]=t.propsOptions;let h=!1;if(!(r||l>0)||16&l){let i;le(t,e,s,a)&&(h=!0);for(const r in c)e&&((0,o.RI)(e,r)||(i=(0,o.rs)(r))!==r&&(0,o.RI)(e,i))||(u?!n||void 0===n[r]&&void 0===n[i]||(s[r]=ce(u,c,r,void 0,t,!0)):delete s[r]);if(a!==c)for(const t in a)e&&(0,o.RI)(e,t)||(delete a[t],h=!0)}else if(8&l){const n=t.vnode.dynamicProps;for(let i=0;i<n.length;i++){let r=n[i];if(T(t.emitsOptions,r))continue;const l=e[r];if(u)if((0,o.RI)(a,r))l!==a[r]&&(a[r]=l,h=!0);else{const e=(0,o._A)(r);s[e]=ce(u,c,e,l,t,!1)}else l!==a[r]&&(a[r]=l,h=!0)}}h&&(0,i.X$)(t,"set","$attrs")}function le(t,e,n,r){const[s,a]=t.propsOptions;let l,c=!1;if(e)for(let i in e){if((0,o.Gg)(i))continue;const u=e[i];let h;s&&(0,o.RI)(s,h=(0,o._A)(i))?a&&a.includes(h)?(l||(l={}))[h]=u:n[h]=u:T(t.emitsOptions,i)||i in r&&u===r[i]||(r[i]=u,c=!0)}if(a){const e=(0,i.IU)(n),r=l||o.kT;for(let i=0;i<a.length;i++){const l=a[i];n[l]=ce(s,e,l,r[l],t,!(0,o.RI)(r,l))}}return c}function ce(t,e,n,i,r,s){const a=t[n];if(null!=a){const t=(0,o.RI)(a,"default");if(t&&void 0===i){const t=a.default;if(a.type!==Function&&(0,o.mf)(t)){const{propsDefaults:o}=r;n in o?i=o[n]:(mn(r),i=o[n]=t.call(null,e),bn())}else i=t}a[0]&&(s&&!t?i=!1:!a[1]||""!==i&&i!==(0,o.rs)(n)||(i=!0))}return i}function ue(t,e,n=!1){const i=e.propsCache,r=i.get(t);if(r)return r;const s=t.props,a={},l=[];let c=!1;if(!(0,o.mf)(t)){const i=t=>{c=!0;const[n,i]=ue(t,e,!0);(0,o.l7)(a,n),i&&l.push(...i)};!n&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!s&&!c)return(0,o.Kn)(t)&&i.set(t,o.Z6),o.Z6;if((0,o.kJ)(s))for(let h=0;h<s.length;h++){0;const t=(0,o._A)(s[h]);he(t)&&(a[t]=o.kT)}else if(s){0;for(const t in s){const e=(0,o._A)(t);if(he(e)){const n=s[t],i=a[e]=(0,o.kJ)(n)||(0,o.mf)(n)?{type:n}:Object.assign({},n);if(i){const t=pe(Boolean,i.type),n=pe(String,i.type);i[0]=t>-1,i[1]=n<0||t<n,(t>-1||(0,o.RI)(i,"default"))&&l.push(e)}}}}const u=[a,l];return(0,o.Kn)(t)&&i.set(t,u),u}function he(t){return"$"!==t[0]}function fe(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:null===t?"null":""}function de(t,e){return fe(t)===fe(e)}function pe(t,e){return(0,o.kJ)(e)?e.findIndex((e=>de(e,t))):(0,o.mf)(e)&&de(e,t)?0:-1}const ge=t=>"_"===t[0]||"$stable"===t,ye=t=>(0,o.kJ)(t)?t.map(an):[an(t)],me=(t,e,n)=>{if(e._n)return e;const i=F(((...t)=>ye(e(...t))),n);return i._c=!1,i},be=(t,e,n)=>{const i=t._ctx;for(const r in t){if(ge(r))continue;const n=t[r];if((0,o.mf)(n))e[r]=me(r,n,i);else if(null!=n){0;const t=ye(n);e[r]=()=>t}}},ve=(t,e)=>{const n=ye(e);t.slots.default=()=>n},xe=(t,e)=>{if(32&t.vnode.shapeFlag){const n=e._;n?(t.slots=(0,i.IU)(e),(0,o.Nj)(e,"_",n)):be(e,t.slots={})}else t.slots={},e&&ve(t,e);(0,o.Nj)(t.slots,Ge,1)},_e=(t,e,n)=>{const{vnode:i,slots:r}=t;let s=!0,a=o.kT;if(32&i.shapeFlag){const t=e._;t?n&&1===t?s=!1:((0,o.l7)(r,e),n||1!==t||delete r._):(s=!e.$stable,be(e,r)),a=e}else e&&(ve(t,e),a={default:1});if(s)for(const o in r)ge(o)||o in a||delete r[o]};function we(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Se=0;function ke(t,e){return function(n,i=null){(0,o.mf)(n)||(n=Object.assign({},n)),null==i||(0,o.Kn)(i)||(i=null);const r=we(),s=new Set;let a=!1;const l=r.app={_uid:Se++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Ln,get config(){return r.config},set config(t){0},use(t,...e){return s.has(t)||(t&&(0,o.mf)(t.install)?(s.add(t),t.install(l,...e)):(0,o.mf)(t)&&(s.add(t),t(l,...e))),l},mixin(t){return r.mixins.includes(t)||r.mixins.push(t),l},component(t,e){return e?(r.components[t]=e,l):r.components[t]},directive(t,e){return e?(r.directives[t]=e,l):r.directives[t]},mount(o,s,c){if(!a){0;const u=Ze(n,i);return u.appContext=r,s&&e?e(u,o):t(u,o,c),a=!0,l._container=o,o.__vue_app__=l,En(u.component)||u.component.proxy}},unmount(){a&&(t(null,l._container),delete l._container.__vue_app__)},provide(t,e){return r.provides[t]=e,l}};return l}}function Oe(t,e,n,s,a=!1){if((0,o.kJ)(t))return void t.forEach(((t,i)=>Oe(t,e&&((0,o.kJ)(e)?e[i]:e),n,s,a)));if(ht(s)&&!a)return;const l=4&s.shapeFlag?En(s.component)||s.component.proxy:s.el,c=a?null:l,{i:u,r:h}=t;const f=e&&e.r,d=u.refs===o.kT?u.refs={}:u.refs,p=u.setupState;if(null!=f&&f!==h&&((0,o.HD)(f)?(d[f]=null,(0,o.RI)(p,f)&&(p[f]=null)):(0,i.dq)(f)&&(f.value=null)),(0,o.mf)(h))r(h,u,12,[c,d]);else{const e=(0,o.HD)(h),r=(0,i.dq)(h);if(e||r){const i=()=>{if(t.f){const n=e?(0,o.RI)(p,h)?p[h]:d[h]:h.value;a?(0,o.kJ)(n)&&(0,o.Od)(n,l):(0,o.kJ)(n)?n.includes(l)||n.push(l):e?(d[h]=[l],(0,o.RI)(p,h)&&(p[h]=d[h])):(h.value=[l],t.k&&(d[t.k]=h.value))}else e?(d[h]=c,(0,o.RI)(p,h)&&(p[h]=c)):r&&(h.value=c,t.k&&(d[t.k]=c))};c?(i.id=-1,Pe(i,n)):i()}else 0}}function Me(){}const Pe=U;function Ae(t){return Ee(t)}function Ee(t,e){Me();const n=(0,o.E9)();n.__VUE__=!0;const{insert:r,remove:s,patchProp:a,createElement:l,createText:c,createComment:u,setText:h,setElementText:f,parentNode:d,nextSibling:p,setScopeId:g=o.dG,insertStaticContent:y}=t,m=(t,e,n,i=null,o=null,r=null,s=!1,a=null,l=!!e.dynamicChildren)=>{if(t===e)return;t&&!Xe(t,e)&&(i=Q(t),Y(t,o,r,!0),t=null),-2===e.patchFlag&&(l=!1,e.dynamicChildren=null);const{type:c,ref:u,shapeFlag:h}=e;switch(c){case Re:b(t,e,n,i);break;case Le:v(t,e,n,i);break;case Fe:null==t&&_(e,n,i,s);break;case Ie:I(t,e,n,i,o,r,s,a,l);break;default:1&h?P(t,e,n,i,o,r,s,a,l):6&h?R(t,e,n,i,o,r,s,a,l):(64&h||128&h)&&c.process(t,e,n,i,o,r,s,a,l,tt)}null!=u&&o&&Oe(u,t&&t.ref,r,e||t,!e)},b=(t,e,n,i)=>{if(null==t)r(e.el=c(e.children),n,i);else{const n=e.el=t.el;e.children!==t.children&&h(n,e.children)}},v=(t,e,n,i)=>{null==t?r(e.el=u(e.children||""),n,i):e.el=t.el},_=(t,e,n,i)=>{[t.el,t.anchor]=y(t.children,e,n,i,t.el,t.anchor)},S=({el:t,anchor:e},n,i)=>{let o;while(t&&t!==e)o=p(t),r(t,n,i),t=o;r(e,n,i)},M=({el:t,anchor:e})=>{let n;while(t&&t!==e)n=p(t),s(t),t=n;s(e)},P=(t,e,n,i,o,r,s,a,l)=>{s=s||"svg"===e.type,null==t?A(e,n,i,o,r,s,a,l):T(t,e,o,r,s,a,l)},A=(t,e,n,i,s,c,u,h)=>{let d,p;const{type:g,props:y,shapeFlag:m,transition:b,dirs:v}=t;if(d=t.el=l(t.type,c,y&&y.is,y),8&m?f(d,t.children):16&m&&C(t.children,d,null,i,s,c&&"foreignObject"!==g,u,h),v&&Dt(t,null,i,"created"),E(d,t,t.scopeId,u,i),y){for(const e in y)"value"===e||(0,o.Gg)(e)||a(d,e,null,y[e],c,t.children,i,s,K);"value"in y&&a(d,"value",null,y.value),(p=y.onVnodeBeforeMount)&&hn(p,i,t)}v&&Dt(t,null,i,"beforeMount");const x=(!s||s&&!s.pendingBranch)&&b&&!b.persisted;x&&b.beforeEnter(d),r(d,e,n),((p=y&&y.onVnodeMounted)||x||v)&&Pe((()=>{p&&hn(p,i,t),x&&b.enter(d),v&&Dt(t,null,i,"mounted")}),s)},E=(t,e,n,i,o)=>{if(n&&g(t,n),i)for(let r=0;r<i.length;r++)g(t,i[r]);if(o){let n=o.subTree;if(e===n){const e=o.vnode;E(t,e,e.scopeId,e.slotScopeIds,o.parent)}}},C=(t,e,n,i,o,r,s,a,l=0)=>{for(let c=l;c<t.length;c++){const l=t[c]=a?ln(t[c]):an(t[c]);m(null,l,e,n,i,o,r,s,a)}},T=(t,e,n,i,r,s,l)=>{const c=e.el=t.el;let{patchFlag:u,dynamicChildren:h,dirs:d}=e;u|=16&t.patchFlag;const p=t.props||o.kT,g=e.props||o.kT;let y;n&&Ce(n,!1),(y=g.onVnodeBeforeUpdate)&&hn(y,n,e,t),d&&Dt(e,t,n,"beforeUpdate"),n&&Ce(n,!0);const m=r&&"foreignObject"!==e.type;if(h?j(t.dynamicChildren,h,c,n,i,m,s):l||z(t,e,c,null,n,i,m,s,!1),u>0){if(16&u)D(c,e,p,g,n,i,r);else if(2&u&&p.class!==g.class&&a(c,"class",null,g.class,r),4&u&&a(c,"style",p.style,g.style,r),8&u){const o=e.dynamicProps;for(let e=0;e<o.length;e++){const s=o[e],l=p[s],u=g[s];u===l&&"value"!==s||a(c,s,l,u,r,t.children,n,i,K)}}1&u&&t.children!==e.children&&f(c,e.children)}else l||null!=h||D(c,e,p,g,n,i,r);((y=g.onVnodeUpdated)||d)&&Pe((()=>{y&&hn(y,n,e,t),d&&Dt(e,t,n,"updated")}),i)},j=(t,e,n,i,o,r,s)=>{for(let a=0;a<e.length;a++){const l=t[a],c=e[a],u=l.el&&(l.type===Ie||!Xe(l,c)||70&l.shapeFlag)?d(l.el):n;m(l,c,u,null,i,o,r,s,!0)}},D=(t,e,n,i,r,s,l)=>{if(n!==i){if(n!==o.kT)for(const c in n)(0,o.Gg)(c)||c in i||a(t,c,n[c],null,l,e.children,r,s,K);for(const c in i){if((0,o.Gg)(c))continue;const u=i[c],h=n[c];u!==h&&"value"!==c&&a(t,c,h,u,l,e.children,r,s,K)}"value"in i&&a(t,"value",n.value,i.value)}},I=(t,e,n,i,o,s,a,l,u)=>{const h=e.el=t?t.el:c(""),f=e.anchor=t?t.anchor:c("");let{patchFlag:d,dynamicChildren:p,slotScopeIds:g}=e;g&&(l=l?l.concat(g):g),null==t?(r(h,n,i),r(f,n,i),C(e.children,n,f,o,s,a,l,u)):d>0&&64&d&&p&&t.dynamicChildren?(j(t.dynamicChildren,p,n,o,s,a,l),(null!=e.key||o&&e===o.subTree)&&Te(t,e,!0)):z(t,e,n,f,o,s,a,l,u)},R=(t,e,n,i,o,r,s,a,l)=>{e.slotScopeIds=a,null==t?512&e.shapeFlag?o.ctx.activate(e,n,i,s,l):L(e,n,i,o,r,s,l):F(t,e,l)},L=(t,e,n,i,o,r,s)=>{const a=t.component=pn(t,i,o);if(ft(t)&&(a.ctx.renderer=tt),Sn(a),a.asyncDep){if(o&&o.registerDep(a,N),!t.el){const t=a.subTree=Ze(Le);v(null,t,e,n)}}else N(a,t,e,n,o,r,s)},F=(t,e,n)=>{const i=e.component=t.component;if(B(t,e,n)){if(i.asyncDep&&!i.asyncResolved)return void $(i,e,n);i.next=e,w(i.update),i.update()}else e.el=t.el,i.vnode=e},N=(t,e,n,r,s,a,l)=>{const c=()=>{if(t.isMounted){let e,{next:n,bu:i,u:r,parent:c,vnode:u}=t,h=n;0,Ce(t,!1),n?(n.el=u.el,$(t,n,l)):n=u,i&&(0,o.ir)(i),(e=n.props&&n.props.onVnodeBeforeUpdate)&&hn(e,c,n,u),Ce(t,!0);const f=V(t);0;const p=t.subTree;t.subTree=f,m(p,f,d(p.el),Q(p),t,s,a),n.el=f.el,null===h&&W(t,f.el),r&&Pe(r,s),(e=n.props&&n.props.onVnodeUpdated)&&Pe((()=>hn(e,c,n,u)),s)}else{let i;const{el:l,props:c}=e,{bm:u,m:h,parent:f}=t,d=ht(e);if(Ce(t,!1),u&&(0,o.ir)(u),!d&&(i=c&&c.onVnodeBeforeMount)&&hn(i,f,e),Ce(t,!0),l&&nt){const n=()=>{t.subTree=V(t),nt(l,t.subTree,t,s,null)};d?e.type.__asyncLoader().then((()=>!t.isUnmounted&&n())):n()}else{0;const i=t.subTree=V(t);0,m(null,i,n,r,t,s,a),e.el=i.el}if(h&&Pe(h,s),!d&&(i=c&&c.onVnodeMounted)){const t=e;Pe((()=>hn(i,f,t)),s)}(256&e.shapeFlag||f&&ht(f.vnode)&&256&f.vnode.shapeFlag)&&t.a&&Pe(t.a,s),t.isMounted=!0,e=n=r=null}},u=t.effect=new i.qq(c,(()=>x(h)),t.scope),h=t.update=()=>u.run();h.id=t.uid,Ce(t,!0),h()},$=(t,e,n)=>{e.component=t;const o=t.vnode.props;t.vnode=e,t.next=null,ae(t,e.props,o,n),_e(t,e.children,n),(0,i.Jd)(),k(),(0,i.lk)()},z=(t,e,n,i,o,r,s,a,l=!1)=>{const c=t&&t.children,u=t?t.shapeFlag:0,h=e.children,{patchFlag:d,shapeFlag:p}=e;if(d>0){if(128&d)return void U(c,h,n,i,o,r,s,a,l);if(256&d)return void H(c,h,n,i,o,r,s,a,l)}8&p?(16&u&&K(c,o,r),h!==c&&f(n,h)):16&u?16&p?U(c,h,n,i,o,r,s,a,l):K(c,o,r,!0):(8&u&&f(n,""),16&p&&C(h,n,i,o,r,s,a,l))},H=(t,e,n,i,r,s,a,l,c)=>{t=t||o.Z6,e=e||o.Z6;const u=t.length,h=e.length,f=Math.min(u,h);let d;for(d=0;d<f;d++){const i=e[d]=c?ln(e[d]):an(e[d]);m(t[d],i,n,null,r,s,a,l,c)}u>h?K(t,r,s,!0,!1,f):C(e,n,i,r,s,a,l,c,f)},U=(t,e,n,i,r,s,a,l,c)=>{let u=0;const h=e.length;let f=t.length-1,d=h-1;while(u<=f&&u<=d){const i=t[u],o=e[u]=c?ln(e[u]):an(e[u]);if(!Xe(i,o))break;m(i,o,n,null,r,s,a,l,c),u++}while(u<=f&&u<=d){const i=t[f],o=e[d]=c?ln(e[d]):an(e[d]);if(!Xe(i,o))break;m(i,o,n,null,r,s,a,l,c),f--,d--}if(u>f){if(u<=d){const t=d+1,o=t<h?e[t].el:i;while(u<=d)m(null,e[u]=c?ln(e[u]):an(e[u]),n,o,r,s,a,l,c),u++}}else if(u>d)while(u<=f)Y(t[u],r,s,!0),u++;else{const p=u,g=u,y=new Map;for(u=g;u<=d;u++){const t=e[u]=c?ln(e[u]):an(e[u]);null!=t.key&&y.set(t.key,u)}let b,v=0;const x=d-g+1;let _=!1,w=0;const S=new Array(x);for(u=0;u<x;u++)S[u]=0;for(u=p;u<=f;u++){const i=t[u];if(v>=x){Y(i,r,s,!0);continue}let o;if(null!=i.key)o=y.get(i.key);else for(b=g;b<=d;b++)if(0===S[b-g]&&Xe(i,e[b])){o=b;break}void 0===o?Y(i,r,s,!0):(S[o-g]=u+1,o>=w?w=o:_=!0,m(i,e[o],n,null,r,s,a,l,c),v++)}const k=_?je(S):o.Z6;for(b=k.length-1,u=x-1;u>=0;u--){const t=g+u,o=e[t],f=t+1<h?e[t+1].el:i;0===S[u]?m(null,o,n,f,r,s,a,l,c):_&&(b<0||u!==k[b]?q(o,n,f,2):b--)}}},q=(t,e,n,i,o=null)=>{const{el:s,type:a,transition:l,children:c,shapeFlag:u}=t;if(6&u)return void q(t.component.subTree,e,n,i);if(128&u)return void t.suspense.move(e,n,i);if(64&u)return void a.move(t,e,n,tt);if(a===Ie){r(s,e,n);for(let t=0;t<c.length;t++)q(c[t],e,n,i);return void r(t.anchor,e,n)}if(a===Fe)return void S(t,e,n);const h=2!==i&&1&u&&l;if(h)if(0===i)l.beforeEnter(s),r(s,e,n),Pe((()=>l.enter(s)),o);else{const{leave:t,delayLeave:i,afterLeave:o}=l,a=()=>r(s,e,n),c=()=>{t(s,(()=>{a(),o&&o()}))};i?i(s,a,c):c()}else r(s,e,n)},Y=(t,e,n,i=!1,o=!1)=>{const{type:r,props:s,ref:a,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:h,dirs:f}=t;if(null!=a&&Oe(a,null,n,t,!0),256&u)return void e.ctx.deactivate(t);const d=1&u&&f,p=!ht(t);let g;if(p&&(g=s&&s.onVnodeBeforeUnmount)&&hn(g,e,t),6&u)J(t.component,n,i);else{if(128&u)return void t.suspense.unmount(n,i);d&&Dt(t,null,e,"beforeUnmount"),64&u?t.type.remove(t,e,n,o,tt,i):c&&(r!==Ie||h>0&&64&h)?K(c,e,n,!1,!0):(r===Ie&&384&h||!o&&16&u)&&K(l,e,n),i&&X(t)}(p&&(g=s&&s.onVnodeUnmounted)||d)&&Pe((()=>{g&&hn(g,e,t),d&&Dt(t,null,e,"unmounted")}),n)},X=t=>{const{type:e,el:n,anchor:i,transition:o}=t;if(e===Ie)return void G(n,i);if(e===Fe)return void M(t);const r=()=>{s(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&t.shapeFlag&&o&&!o.persisted){const{leave:e,delayLeave:i}=o,s=()=>e(n,r);i?i(t.el,r,s):s()}else r()},G=(t,e)=>{let n;while(t!==e)n=p(t),s(t),t=n;s(e)},J=(t,e,n)=>{const{bum:i,scope:r,update:s,subTree:a,um:l}=t;i&&(0,o.ir)(i),r.stop(),s&&(s.active=!1,Y(a,t,e,n)),l&&Pe(l,e),Pe((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},K=(t,e,n,i=!1,o=!1,r=0)=>{for(let s=r;s<t.length;s++)Y(t[s],e,n,i,o)},Q=t=>6&t.shapeFlag?Q(t.component.subTree):128&t.shapeFlag?t.suspense.next():p(t.anchor||t.el),Z=(t,e,n)=>{null==t?e._vnode&&Y(e._vnode,null,null,!0):m(e._vnode||null,t,e,null,null,null,n),k(),O(),e._vnode=t},tt={p:m,um:Y,m:q,r:X,mt:L,mc:C,pc:z,pbc:j,n:Q,o:t};let et,nt;return e&&([et,nt]=e(tt)),{render:Z,hydrate:et,createApp:ke(Z,et)}}function Ce({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Te(t,e,n=!1){const i=t.children,r=e.children;if((0,o.kJ)(i)&&(0,o.kJ)(r))for(let o=0;o<i.length;o++){const t=i[o];let e=r[o];1&e.shapeFlag&&!e.dynamicChildren&&((e.patchFlag<=0||32===e.patchFlag)&&(e=r[o]=ln(r[o]),e.el=t.el),n||Te(t,e)),e.type===Re&&(e.el=t.el)}}function je(t){const e=t.slice(),n=[0];let i,o,r,s,a;const l=t.length;for(i=0;i<l;i++){const l=t[i];if(0!==l){if(o=n[n.length-1],t[o]<l){e[i]=o,n.push(i);continue}r=0,s=n.length-1;while(r<s)a=r+s>>1,t[n[a]]<l?r=a+1:s=a;l<t[n[r]]&&(r>0&&(e[i]=n[r-1]),n[r]=i)}}r=n.length,s=n[r-1];while(r-- >0)n[r]=s,s=e[s];return n}const De=t=>t.__isTeleport;const Ie=Symbol(void 0),Re=Symbol(void 0),Le=Symbol(void 0),Fe=Symbol(void 0),Ve=[];let Ne=null;function $e(t=!1){Ve.push(Ne=t?null:[])}function Be(){Ve.pop(),Ne=Ve[Ve.length-1]||null}let ze=1;function We(t){ze+=t}function He(t){return t.dynamicChildren=ze>0?Ne||o.Z6:null,Be(),ze>0&&Ne&&Ne.push(t),t}function Ue(t,e,n,i,o,r){return He(Qe(t,e,n,i,o,r,!0))}function qe(t,e,n,i,o){return He(Ze(t,e,n,i,o,!0))}function Ye(t){return!!t&&!0===t.__v_isVNode}function Xe(t,e){return t.type===e.type&&t.key===e.key}const Ge="__vInternal",Je=({key:t})=>null!=t?t:null,Ke=({ref:t,ref_key:e,ref_for:n})=>null!=t?(0,o.HD)(t)||(0,i.dq)(t)||(0,o.mf)(t)?{i:j,r:t,k:e,f:!!n}:t:null;function Qe(t,e=null,n=null,i=0,r=null,s=(t===Ie?0:1),a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Je(e),ref:e&&Ke(e),scopeId:D,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:j};return l?(cn(c,n),128&s&&t.normalize(c)):n&&(c.shapeFlag|=(0,o.HD)(n)?8:16),ze>0&&!a&&Ne&&(c.patchFlag>0||6&s)&&32!==c.patchFlag&&Ne.push(c),c}const Ze=tn;function tn(t,e=null,n=null,r=0,s=null,a=!1){if(t&&t!==Lt||(t=Le),Ye(t)){const i=nn(t,e,!0);return n&&cn(i,n),ze>0&&!a&&Ne&&(6&i.shapeFlag?Ne[Ne.indexOf(t)]=i:Ne.push(i)),i.patchFlag|=-2,i}if(Tn(t)&&(t=t.__vccOpts),e){e=en(e);let{class:t,style:n}=e;t&&!(0,o.HD)(t)&&(e.class=(0,o.C_)(t)),(0,o.Kn)(n)&&((0,i.X3)(n)&&!(0,o.kJ)(n)&&(n=(0,o.l7)({},n)),e.style=(0,o.j5)(n))}const l=(0,o.HD)(t)?1:H(t)?128:De(t)?64:(0,o.Kn)(t)?4:(0,o.mf)(t)?2:0;return Qe(t,e,n,r,s,l,a,!0)}function en(t){return t?(0,i.X3)(t)||Ge in t?(0,o.l7)({},t):t:null}function nn(t,e,n=!1){const{props:i,ref:r,patchFlag:s,children:a}=t,l=e?un(i||{},e):i,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&Je(l),ref:e&&e.ref?n&&r?(0,o.kJ)(r)?r.concat(Ke(e)):[r,Ke(e)]:Ke(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ie?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&nn(t.ssContent),ssFallback:t.ssFallback&&nn(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return c}function on(t=" ",e=0){return Ze(Re,null,t,e)}function rn(t,e){const n=Ze(Fe,null,t);return n.staticCount=e,n}function sn(t="",e=!1){return e?($e(),qe(Le,null,t)):Ze(Le,null,t)}function an(t){return null==t||"boolean"===typeof t?Ze(Le):(0,o.kJ)(t)?Ze(Ie,null,t.slice()):"object"===typeof t?ln(t):Ze(Re,null,String(t))}function ln(t){return null===t.el&&-1!==t.patchFlag||t.memo?t:nn(t)}function cn(t,e){let n=0;const{shapeFlag:i}=t;if(null==e)e=null;else if((0,o.kJ)(e))n=16;else if("object"===typeof e){if(65&i){const n=e.default;return void(n&&(n._c&&(n._d=!1),cn(t,n()),n._c&&(n._d=!0)))}{n=32;const i=e._;i||Ge in e?3===i&&j&&(1===j.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=j}}else(0,o.mf)(e)?(e={default:e,_ctx:j},n=32):(e=String(e),64&i?(n=16,e=[on(e)]):n=8);t.children=e,t.shapeFlag|=n}function un(...t){const e={};for(let n=0;n<t.length;n++){const i=t[n];for(const t in i)if("class"===t)e.class!==i.class&&(e.class=(0,o.C_)([e.class,i.class]));else if("style"===t)e.style=(0,o.j5)([e.style,i.style]);else if((0,o.F7)(t)){const n=e[t],r=i[t];!r||n===r||(0,o.kJ)(n)&&n.includes(r)||(e[t]=n?[].concat(n,r):r)}else""!==t&&(e[t]=i[t])}return e}function hn(t,e,n,i=null){s(t,e,7,[n,i])}const fn=we();let dn=0;function pn(t,e,n){const r=t.type,s=(e?e.appContext:t.appContext)||fn,a={uid:dn++,vnode:t,type:r,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new i.Bj(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ue(r,s),emitsOptions:C(r,s),emit:null,emitted:null,propsDefaults:o.kT,inheritAttrs:r.inheritAttrs,ctx:o.kT,data:o.kT,props:o.kT,attrs:o.kT,slots:o.kT,refs:o.kT,setupState:o.kT,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=e?e.root:a,a.emit=E.bind(null,a),t.ce&&t.ce(a),a}let gn=null;const yn=()=>gn||j,mn=t=>{gn=t,t.scope.on()},bn=()=>{gn&&gn.scope.off(),gn=null};function vn(t){return 4&t.vnode.shapeFlag}let xn,_n,wn=!1;function Sn(t,e=!1){wn=e;const{props:n,children:i}=t.vnode,o=vn(t);se(t,n,o,e),xe(t,i);const r=o?kn(t,e):void 0;return wn=!1,r}function kn(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=(0,i.Xl)(new Proxy(t.ctx,Ut));const{setup:s}=n;if(s){const n=t.setupContext=s.length>1?An(t):null;mn(t),(0,i.Jd)();const l=r(s,t,0,[t.props,n]);if((0,i.lk)(),bn(),(0,o.tI)(l)){if(l.then(bn,bn),e)return l.then((n=>{On(t,n,e)})).catch((e=>{a(e,t,0)}));t.asyncDep=l}else On(t,l,e)}else Mn(t,e)}function On(t,e,n){(0,o.mf)(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:(0,o.Kn)(e)&&(t.setupState=(0,i.WL)(e)),Mn(t,n)}function Mn(t,e,n){const r=t.type;if(!t.render){if(!e&&xn&&!r.render){const e=r.template||Kt(t).template;if(e){0;const{isCustomElement:n,compilerOptions:i}=t.appContext.config,{delimiters:s,compilerOptions:a}=r,l=(0,o.l7)((0,o.l7)({isCustomElement:n,delimiters:s},i),a);r.render=xn(e,l)}}t.render=r.render||o.dG,_n&&_n(t)}mn(t),(0,i.Jd)(),Yt(t),(0,i.lk)(),bn()}function Pn(t){return new Proxy(t.attrs,{get(e,n){return(0,i.j)(t,"get","$attrs"),e[n]}})}function An(t){const e=e=>{t.exposed=e||{}};let n;return{get attrs(){return n||(n=Pn(t))},slots:t.slots,emit:t.emit,expose:e}}function En(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy((0,i.WL)((0,i.Xl)(t.exposed)),{get(e,n){return n in e?e[n]:n in Wt?Wt[n](t):void 0},has(t,e){return e in t||e in Wt}}))}function Cn(t,e=!0){return(0,o.mf)(t)?t.displayName||t.name:t.name||e&&t.__name}function Tn(t){return(0,o.mf)(t)&&"__vccOpts"in t}const jn=(t,e)=>(0,i.Fl)(t,e,wn);function Dn(t,e,n){const i=arguments.length;return 2===i?(0,o.Kn)(e)&&!(0,o.kJ)(e)?Ye(e)?Ze(t,null,[e]):Ze(t,e):Ze(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&Ye(n)&&(n=[n]),Ze(t,e,n))}const In=Symbol(""),Rn=()=>{{const t=Y(In);return t}};const Ln="3.2.47"},3862:function(t,e,n){"use strict";n.d(e,{D2:function(){return ct},F8:function(){return ut},iM:function(){return at},ri:function(){return gt},uT:function(){return R}});n(7658);var i=n(7139),o=n(3396),r=n(4870);const s="http://www.w3.org/2000/svg",a="undefined"!==typeof document?document:null,l=a&&a.createElement("template"),c={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const o=e?a.createElementNS(s,t):a.createElement(t,n?{is:n}:void 0);return"select"===t&&i&&null!=i.multiple&&o.setAttribute("multiple",i.multiple),o},createText:t=>a.createTextNode(t),createComment:t=>a.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>a.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,o,r){const s=n?n.previousSibling:e.lastChild;if(o&&(o===r||o.nextSibling)){while(1)if(e.insertBefore(o.cloneNode(!0),n),o===r||!(o=o.nextSibling))break}else{l.innerHTML=i?`<svg>${t}</svg>`:t;const o=l.content;if(i){const t=o.firstChild;while(t.firstChild)o.appendChild(t.firstChild);o.removeChild(t)}e.insertBefore(o,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function u(t,e,n){const i=t._vtc;i&&(e=(e?[e,...i]:[...i]).join(" ")),null==e?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function h(t,e,n){const o=t.style,r=(0,i.HD)(n);if(n&&!r){if(e&&!(0,i.HD)(e))for(const t in e)null==n[t]&&d(o,t,"");for(const t in n)d(o,t,n[t])}else{const i=o.display;r?e!==n&&(o.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(o.display=i)}}const f=/\s*!important$/;function d(t,e,n){if((0,i.kJ)(n))n.forEach((n=>d(t,e,n)));else if(null==n&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const o=y(t,e);f.test(n)?t.setProperty((0,i.rs)(o),n.replace(f,""),"important"):t[o]=n}}const p=["Webkit","Moz","ms"],g={};function y(t,e){const n=g[e];if(n)return n;let o=(0,i._A)(e);if("filter"!==o&&o in t)return g[e]=o;o=(0,i.kC)(o);for(let i=0;i<p.length;i++){const n=p[i]+o;if(n in t)return g[e]=n}return e}const m="http://www.w3.org/1999/xlink";function b(t,e,n,o,r){if(o&&e.startsWith("xlink:"))null==n?t.removeAttributeNS(m,e.slice(6,e.length)):t.setAttributeNS(m,e,n);else{const o=(0,i.Pq)(e);null==n||o&&!(0,i.yA)(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)}}function v(t,e,n,o,r,s,a){if("innerHTML"===e||"textContent"===e)return o&&a(o,r,s),void(t[e]=null==n?"":n);if("value"===e&&"PROGRESS"!==t.tagName&&!t.tagName.includes("-")){t._value=n;const i=null==n?"":n;return t.value===i&&"OPTION"!==t.tagName||(t.value=i),void(null==n&&t.removeAttribute(e))}let l=!1;if(""===n||null==n){const o=typeof t[e];"boolean"===o?n=(0,i.yA)(n):null==n&&"string"===o?(n="",l=!0):"number"===o&&(n=0,l=!0)}try{t[e]=n}catch(c){0}l&&t.removeAttribute(e)}function x(t,e,n,i){t.addEventListener(e,n,i)}function _(t,e,n,i){t.removeEventListener(e,n,i)}function w(t,e,n,i,o=null){const r=t._vei||(t._vei={}),s=r[e];if(i&&s)s.value=i;else{const[n,a]=k(e);if(i){const s=r[e]=A(i,o);x(t,n,s,a)}else s&&(_(t,n,s,a),r[e]=void 0)}}const S=/(?:Once|Passive|Capture)$/;function k(t){let e;if(S.test(t)){let n;e={};while(n=t.match(S))t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}const n=":"===t[2]?t.slice(3):(0,i.rs)(t.slice(2));return[n,e]}let O=0;const M=Promise.resolve(),P=()=>O||(M.then((()=>O=0)),O=Date.now());function A(t,e){const n=t=>{if(t._vts){if(t._vts<=n.attached)return}else t._vts=Date.now();(0,o.$d)(E(t,n.value),e,5,[t])};return n.value=t,n.attached=P(),n}function E(t,e){if((0,i.kJ)(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t&&t(e)))}return e}const C=/^on[a-z]/,T=(t,e,n,o,r=!1,s,a,l,c)=>{"class"===e?u(t,o,r):"style"===e?h(t,n,o):(0,i.F7)(e)?(0,i.tR)(e)||w(t,e,n,o,a):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):j(t,e,o,r))?v(t,e,o,s,a,l,c):("true-value"===e?t._trueValue=o:"false-value"===e&&(t._falseValue=o),b(t,e,o,r))};function j(t,e,n,o){return o?"innerHTML"===e||"textContent"===e||!!(e in t&&C.test(e)&&(0,i.mf)(n)):"spellcheck"!==e&&"draggable"!==e&&"translate"!==e&&("form"!==e&&(("list"!==e||"INPUT"!==t.tagName)&&(("type"!==e||"TEXTAREA"!==t.tagName)&&((!C.test(e)||!(0,i.HD)(n))&&e in t))))}"undefined"!==typeof HTMLElement&&HTMLElement;const D="transition",I="animation",R=(t,{slots:e})=>(0,o.h)(o.P$,$(t),e);R.displayName="Transition";const L={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},F=R.props=(0,i.l7)({},o.P$.props,L),V=(t,e=[])=>{(0,i.kJ)(t)?t.forEach((t=>t(...e))):t&&t(...e)},N=t=>!!t&&((0,i.kJ)(t)?t.some((t=>t.length>1)):t.length>1);function $(t){const e={};for(const i in t)i in L||(e[i]=t[i]);if(!1===t.css)return e;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:u=a,appearToClass:h=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=t,g=B(r),y=g&&g[0],m=g&&g[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:x,onLeave:_,onLeaveCancelled:w,onBeforeAppear:S=b,onAppear:k=v,onAppearCancelled:O=x}=e,M=(t,e,n)=>{H(t,e?h:l),H(t,e?u:a),n&&n()},P=(t,e)=>{t._isLeaving=!1,H(t,f),H(t,p),H(t,d),e&&e()},A=t=>(e,n)=>{const i=t?k:v,r=()=>M(e,t,n);V(i,[e,r]),U((()=>{H(e,t?c:s),W(e,t?h:l),N(i)||Y(e,o,y,r)}))};return(0,i.l7)(e,{onBeforeEnter(t){V(b,[t]),W(t,s),W(t,a)},onBeforeAppear(t){V(S,[t]),W(t,c),W(t,u)},onEnter:A(!1),onAppear:A(!0),onLeave(t,e){t._isLeaving=!0;const n=()=>P(t,e);W(t,f),K(),W(t,d),U((()=>{t._isLeaving&&(H(t,f),W(t,p),N(_)||Y(t,o,m,n))})),V(_,[t,n])},onEnterCancelled(t){M(t,!1),V(x,[t])},onAppearCancelled(t){M(t,!0),V(O,[t])},onLeaveCancelled(t){P(t),V(w,[t])}})}function B(t){if(null==t)return null;if((0,i.Kn)(t))return[z(t.enter),z(t.leave)];{const e=z(t);return[e,e]}}function z(t){const e=(0,i.He)(t);return e}function W(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.add(e))),(t._vtc||(t._vtc=new Set)).add(e)}function H(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.remove(e)));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function U(t){requestAnimationFrame((()=>{requestAnimationFrame(t)}))}let q=0;function Y(t,e,n,i){const o=t._endId=++q,r=()=>{o===t._endId&&i()};if(n)return setTimeout(r,n);const{type:s,timeout:a,propCount:l}=X(t,e);if(!s)return i();const c=s+"end";let u=0;const h=()=>{t.removeEventListener(c,f),r()},f=e=>{e.target===t&&++u>=l&&h()};setTimeout((()=>{u<l&&h()}),a+1),t.addEventListener(c,f)}function X(t,e){const n=window.getComputedStyle(t),i=t=>(n[t]||"").split(", "),o=i(`${D}Delay`),r=i(`${D}Duration`),s=G(o,r),a=i(`${I}Delay`),l=i(`${I}Duration`),c=G(a,l);let u=null,h=0,f=0;e===D?s>0&&(u=D,h=s,f=r.length):e===I?c>0&&(u=I,h=c,f=l.length):(h=Math.max(s,c),u=h>0?s>c?D:I:null,f=u?u===D?r.length:l.length:0);const d=u===D&&/\b(transform|all)(,|$)/.test(i(`${D}Property`).toString());return{type:u,timeout:h,propCount:f,hasTransform:d}}function G(t,e){while(t.length<e.length)t=t.concat(t);return Math.max(...e.map(((e,n)=>J(e)+J(t[n]))))}function J(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function K(){return document.body.offsetHeight}const Q=new WeakMap,Z=new WeakMap,tt={name:"TransitionGroup",props:(0,i.l7)({},F,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=(0,o.FN)(),i=(0,o.Y8)();let s,a;return(0,o.ic)((()=>{if(!s.length)return;const e=t.moveClass||`${t.name||"v"}-move`;if(!ot(s[0].el,n.vnode.el,e))return;s.forEach(et),s.forEach(nt);const i=s.filter(it);K(),i.forEach((t=>{const n=t.el,i=n.style;W(n,e),i.transform=i.webkitTransform=i.transitionDuration="";const o=n._moveCb=t=>{t&&t.target!==n||t&&!/transform$/.test(t.propertyName)||(n.removeEventListener("transitionend",o),n._moveCb=null,H(n,e))};n.addEventListener("transitionend",o)}))})),()=>{const l=(0,r.IU)(t),c=$(l);let u=l.tag||o.HY;s=a,a=e.default?(0,o.Q6)(e.default()):[];for(let t=0;t<a.length;t++){const e=a[t];null!=e.key&&(0,o.nK)(e,(0,o.U2)(e,c,i,n))}if(s)for(let t=0;t<s.length;t++){const e=s[t];(0,o.nK)(e,(0,o.U2)(e,c,i,n)),Q.set(e,e.el.getBoundingClientRect())}return(0,o.Wm)(u,null,a)}}};tt.props;function et(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function nt(t){Z.set(t,t.el.getBoundingClientRect())}function it(t){const e=Q.get(t),n=Z.get(t),i=e.left-n.left,o=e.top-n.top;if(i||o){const e=t.el.style;return e.transform=e.webkitTransform=`translate(${i}px,${o}px)`,e.transitionDuration="0s",t}}function ot(t,e,n){const i=t.cloneNode();t._vtc&&t._vtc.forEach((t=>{t.split(/\s+/).forEach((t=>t&&i.classList.remove(t)))})),n.split(/\s+/).forEach((t=>t&&i.classList.add(t))),i.style.display="none";const o=1===e.nodeType?e:e.parentNode;o.appendChild(i);const{hasTransform:r}=X(i);return o.removeChild(i),r}const rt=["ctrl","shift","alt","meta"],st={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&0!==t.button,middle:t=>"button"in t&&1!==t.button,right:t=>"button"in t&&2!==t.button,exact:(t,e)=>rt.some((n=>t[`${n}Key`]&&!e.includes(n)))},at=(t,e)=>(n,...i)=>{for(let t=0;t<e.length;t++){const i=st[e[t]];if(i&&i(n,e))return}return t(n,...i)},lt={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ct=(t,e)=>n=>{if(!("key"in n))return;const o=(0,i.rs)(n.key);return e.some((t=>t===o||lt[t]===o))?t(n):void 0},ut={beforeMount(t,{value:e},{transition:n}){t._vod="none"===t.style.display?"":t.style.display,n&&e?n.beforeEnter(t):ht(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:i}){!e!==!n&&(i?e?(i.beforeEnter(t),ht(t,!0),i.enter(t)):i.leave(t,(()=>{ht(t,!1)})):ht(t,e))},beforeUnmount(t,{value:e}){ht(t,e)}};function ht(t,e){t.style.display=e?t._vod:"none"}const ft=(0,i.l7)({patchProp:T},c);let dt;function pt(){return dt||(dt=(0,o.Us)(ft))}const gt=(...t)=>{const e=pt().createApp(...t);const{mount:n}=e;return e.mount=t=>{const o=yt(t);if(!o)return;const r=e._component;(0,i.mf)(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},e};function yt(t){if((0,i.HD)(t)){const e=document.querySelector(t);return e}return t}},7139:function(t,e,n){"use strict";n.d(e,{C_:function(){return h},DM:function(){return D},E9:function(){return st},F7:function(){return O},Gg:function(){return q},HD:function(){return F},He:function(){return ot},Kj:function(){return R},Kn:function(){return N},NO:function(){return S},Nj:function(){return nt},Od:function(){return A},PO:function(){return H},Pq:function(){return d},RI:function(){return C},S0:function(){return U},W7:function(){return W},WV:function(){return y},Z6:function(){return _},_A:function(){return G},_N:function(){return j},aU:function(){return tt},dG:function(){return w},e1:function(){return r},fY:function(){return i},h5:function(){return it},hR:function(){return Z},hq:function(){return m},ir:function(){return et},j5:function(){return s},kC:function(){return Q},kJ:function(){return T},kT:function(){return x},l7:function(){return P},mf:function(){return L},rs:function(){return K},tI:function(){return $},tR:function(){return M},yA:function(){return p},yk:function(){return V},zw:function(){return b}});n(7658);function i(t,e){const n=Object.create(null),i=t.split(",");for(let o=0;o<i.length;o++)n[i[o]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}const o="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",r=i(o);function s(t){if(T(t)){const e={};for(let n=0;n<t.length;n++){const i=t[n],o=F(i)?u(i):s(i);if(o)for(const t in o)e[t]=o[t]}return e}return F(t)||N(t)?t:void 0}const a=/;(?![^(]*\))/g,l=/:([^]+)/,c=/\/\*.*?\*\//gs;function u(t){const e={};return t.replace(c,"").split(a).forEach((t=>{if(t){const n=t.split(l);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function h(t){let e="";if(F(t))e=t;else if(T(t))for(let n=0;n<t.length;n++){const i=h(t[n]);i&&(e+=i+" ")}else if(N(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const f="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",d=i(f);function p(t){return!!t||""===t}function g(t,e){if(t.length!==e.length)return!1;let n=!0;for(let i=0;n&&i<t.length;i++)n=y(t[i],e[i]);return n}function y(t,e){if(t===e)return!0;let n=I(t),i=I(e);if(n||i)return!(!n||!i)&&t.getTime()===e.getTime();if(n=V(t),i=V(e),n||i)return t===e;if(n=T(t),i=T(e),n||i)return!(!n||!i)&&g(t,e);if(n=N(t),i=N(e),n||i){if(!n||!i)return!1;const o=Object.keys(t).length,r=Object.keys(e).length;if(o!==r)return!1;for(const n in t){const i=t.hasOwnProperty(n),o=e.hasOwnProperty(n);if(i&&!o||!i&&o||!y(t[n],e[n]))return!1}}return String(t)===String(e)}function m(t,e){return t.findIndex((t=>y(t,e)))}const b=t=>F(t)?t:null==t?"":T(t)||N(t)&&(t.toString===B||!L(t.toString))?JSON.stringify(t,v,2):String(t),v=(t,e)=>e&&e.__v_isRef?v(t,e.value):j(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,n])=>(t[`${e} =>`]=n,t)),{})}:D(e)?{[`Set(${e.size})`]:[...e.values()]}:!N(e)||T(e)||H(e)?e:String(e),x={},_=[],w=()=>{},S=()=>!1,k=/^on[^a-z]/,O=t=>k.test(t),M=t=>t.startsWith("onUpdate:"),P=Object.assign,A=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},E=Object.prototype.hasOwnProperty,C=(t,e)=>E.call(t,e),T=Array.isArray,j=t=>"[object Map]"===z(t),D=t=>"[object Set]"===z(t),I=t=>"[object Date]"===z(t),R=t=>"[object RegExp]"===z(t),L=t=>"function"===typeof t,F=t=>"string"===typeof t,V=t=>"symbol"===typeof t,N=t=>null!==t&&"object"===typeof t,$=t=>N(t)&&L(t.then)&&L(t.catch),B=Object.prototype.toString,z=t=>B.call(t),W=t=>z(t).slice(8,-1),H=t=>"[object Object]"===z(t),U=t=>F(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,q=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Y=t=>{const e=Object.create(null);return n=>{const i=e[n];return i||(e[n]=t(n))}},X=/-(\w)/g,G=Y((t=>t.replace(X,((t,e)=>e?e.toUpperCase():"")))),J=/\B([A-Z])/g,K=Y((t=>t.replace(J,"-$1").toLowerCase())),Q=Y((t=>t.charAt(0).toUpperCase()+t.slice(1))),Z=Y((t=>t?`on${Q(t)}`:"")),tt=(t,e)=>!Object.is(t,e),et=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},nt=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},it=t=>{const e=parseFloat(t);return isNaN(e)?t:e},ot=t=>{const e=F(t)?Number(t):NaN;return isNaN(e)?t:e};let rt;const st=()=>rt||(rt="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{})},5130:function(t,e,n){"use strict";function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n(7658);var r,s,a=n(3326),l=a.codes,c=l.ERR_AMBIGUOUS_ARGUMENT,u=l.ERR_INVALID_ARG_TYPE,h=l.ERR_INVALID_ARG_VALUE,f=l.ERR_INVALID_RETURN_VALUE,d=l.ERR_MISSING_ARGS,p=n(1891),g=n(9242),y=g.inspect,m=n(9242).types,b=m.isPromise,v=m.isRegExp,x=Object.assign?Object.assign:n(336).assign,_=Object.is?Object.is:n(7004);new Map;function w(){var t=n(3184);r=t.isDeepEqual,s=t.isDeepStrictEqual}var S=!1,k=t.exports=E,O={};function M(t){if(t.message instanceof Error)throw t.message;throw new p(t)}function P(t,e,n,i,o){var r,s=arguments.length;if(0===s)r="Failed";else if(1===s)n=t,t=void 0;else{if(!1===S){S=!0;var a=process.emitWarning?process.emitWarning:console.warn.bind(console);a("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===s&&(i="!=")}if(n instanceof Error)throw n;var l={actual:t,expected:e,operator:void 0===i?"fail":i,stackStartFn:o||P};void 0!==n&&(l.message=n);var c=new p(l);throw r&&(c.message=r,c.generatedMessage=!0),c}function A(t,e,n,i){if(!n){var o=!1;if(0===e)o=!0,i="No value argument passed to `assert.ok()`";else if(i instanceof Error)throw i;var r=new p({actual:n,expected:!0,message:i,operator:"==",stackStartFn:t});throw r.generatedMessage=o,r}}function E(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];A.apply(void 0,[E,e.length].concat(e))}function C(t,e,n){if(arguments.length<2)throw new d("actual","expected");void 0===r&&w(),s(t,e)&&M({actual:t,expected:e,message:n,operator:"notDeepStrictEqual",stackStartFn:C})}k.fail=P,k.AssertionError=p,k.ok=E,k.equal=function t(e,n,i){if(arguments.length<2)throw new d("actual","expected");e!=n&&M({actual:e,expected:n,message:i,operator:"==",stackStartFn:t})},k.notEqual=function t(e,n,i){if(arguments.length<2)throw new d("actual","expected");e==n&&M({actual:e,expected:n,message:i,operator:"!=",stackStartFn:t})},k.deepEqual=function t(e,n,i){if(arguments.length<2)throw new d("actual","expected");void 0===r&&w(),r(e,n)||M({actual:e,expected:n,message:i,operator:"deepEqual",stackStartFn:t})},k.notDeepEqual=function t(e,n,i){if(arguments.length<2)throw new d("actual","expected");void 0===r&&w(),r(e,n)&&M({actual:e,expected:n,message:i,operator:"notDeepEqual",stackStartFn:t})},k.deepStrictEqual=function t(e,n,i){if(arguments.length<2)throw new d("actual","expected");void 0===r&&w(),s(e,n)||M({actual:e,expected:n,message:i,operator:"deepStrictEqual",stackStartFn:t})},k.notDeepStrictEqual=C,k.strictEqual=function t(e,n,i){if(arguments.length<2)throw new d("actual","expected");_(e,n)||M({actual:e,expected:n,message:i,operator:"strictEqual",stackStartFn:t})},k.notStrictEqual=function t(e,n,i){if(arguments.length<2)throw new d("actual","expected");_(e,n)&&M({actual:e,expected:n,message:i,operator:"notStrictEqual",stackStartFn:t})};var T=function t(e,n,i){var r=this;o(this,t),n.forEach((function(t){t in e&&(void 0!==i&&"string"===typeof i[t]&&v(e[t])&&e[t].test(i[t])?r[t]=i[t]:r[t]=e[t])}))};function j(t,e,n,i,o,r){if(!(n in t)||!s(t[n],e[n])){if(!i){var a=new T(t,o),l=new T(e,o,t),c=new p({actual:a,expected:l,operator:"deepStrictEqual",stackStartFn:r});throw c.actual=t,c.expected=e,c.operator=r.name,c}M({actual:t,expected:e,message:i,operator:r.name,stackStartFn:r})}}function D(t,e,n,o){if("function"!==typeof e){if(v(e))return e.test(t);if(2===arguments.length)throw new u("expected",["Function","RegExp"],e);if("object"!==i(t)||null===t){var s=new p({actual:t,expected:e,message:n,operator:"deepStrictEqual",stackStartFn:o});throw s.operator=o.name,s}var a=Object.keys(e);if(e instanceof Error)a.push("name","message");else if(0===a.length)throw new h("error",e,"may not be an empty object");return void 0===r&&w(),a.forEach((function(i){"string"===typeof t[i]&&v(e[i])&&e[i].test(t[i])||j(t,e,i,n,a,o)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function I(t){if("function"!==typeof t)throw new u("fn","Function",t);try{t()}catch(e){return e}return O}function R(t){return b(t)||null!==t&&"object"===i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function L(t){return Promise.resolve().then((function(){var e;if("function"===typeof t){if(e=t(),!R(e))throw new f("instance of Promise","promiseFn",e)}else{if(!R(t))throw new u("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return O})).catch((function(t){return t}))}))}function F(t,e,n,o){if("string"===typeof n){if(4===arguments.length)throw new u("error",["Object","Error","Function","RegExp"],n);if("object"===i(e)&&null!==e){if(e.message===n)throw new c("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===n)throw new c("error/message",'The error "'.concat(e,'" is identical to the message.'));o=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!==typeof n)throw new u("error",["Object","Error","Function","RegExp"],n);if(e===O){var r="";n&&n.name&&(r+=" (".concat(n.name,")")),r+=o?": ".concat(o):".";var s="rejects"===t.name?"rejection":"exception";M({actual:void 0,expected:n,operator:t.name,message:"Missing expected ".concat(s).concat(r),stackStartFn:t})}if(n&&!D(e,n,o,t))throw e}function V(t,e,n,i){if(e!==O){if("string"===typeof n&&(i=n,n=void 0),!n||D(e,n)){var o=i?": ".concat(i):".",r="doesNotReject"===t.name?"rejection":"exception";M({actual:e,expected:n,operator:t.name,message:"Got unwanted ".concat(r).concat(o,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function N(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];A.apply(void 0,[N,e.length].concat(e))}k.throws=function t(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];F.apply(void 0,[t,I(e)].concat(i))},k.rejects=function t(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return L(e).then((function(e){return F.apply(void 0,[t,e].concat(i))}))},k.doesNotThrow=function t(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];V.apply(void 0,[t,I(e)].concat(i))},k.doesNotReject=function t(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return L(e).then((function(e){return V.apply(void 0,[t,e].concat(i))}))},k.ifError=function t(e){if(null!==e&&void 0!==e){var n="ifError got unwanted exception: ";"object"===i(e)&&"string"===typeof e.message?0===e.message.length&&e.constructor?n+=e.constructor.name:n+=e.message:n+=y(e);var o=new p({actual:e,expected:null,operator:"ifError",message:n,stackStartFn:t}),r=e.stack;if("string"===typeof r){var s=r.split("\n");s.shift();for(var a=o.stack.split("\n"),l=0;l<s.length;l++){var c=a.indexOf(s[l]);if(-1!==c){a=a.slice(0,c);break}}o.stack="".concat(a.join("\n"),"\n").concat(s.join("\n"))}throw o}},k.strict=x(N,k,{equal:k.strictEqual,deepEqual:k.deepStrictEqual,notEqual:k.notStrictEqual,notDeepEqual:k.notDeepStrictEqual}),k.strict.strict=k.strict},1891:function(t,e,n){"use strict";function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function a(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function l(t,e){return!e||"object"!==m(e)&&"function"!==typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}function h(t){var e="function"===typeof Map?new Map:void 0;return h=function(t){if(null===t||!p(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return d(t,arguments,y(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,t)},h(t)}function f(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function d(t,e,n){return d=f()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=Function.bind.apply(t,i),r=new o;return n&&g(r,n.prototype),r},d.apply(null,arguments)}function p(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function g(t,e){return g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},g(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function m(t){return m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}n(7658);var b=n(9242),v=b.inspect,x=n(3326),_=x.codes.ERR_INVALID_ARG_TYPE;function w(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function S(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var n=t.length*e;e=Math.floor(Math.log(e)/Math.log(2));while(e)t+=t,e--;return t+=t.substring(0,n-t.length),t}var k="",O="",M="",P="",A={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},E=10;function C(t){var e=Object.keys(t),n=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){n[e]=t[e]})),Object.defineProperty(n,"message",{value:t.message}),n}function T(t){return v(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function j(t,e,n){var i="",o="",r=0,s="",a=!1,l=T(t),c=l.split("\n"),u=T(e).split("\n"),h=0,f="";if("strictEqual"===n&&"object"===m(t)&&"object"===m(e)&&null!==t&&null!==e&&(n="strictEqualObject"),1===c.length&&1===u.length&&c[0]!==u[0]){var d=c[0].length+u[0].length;if(d<=E){if(("object"!==m(t)||null===t)&&("object"!==m(e)||null===e)&&(0!==t||0!==e))return"".concat(A[n],"\n\n")+"".concat(c[0]," !== ").concat(u[0],"\n")}else if("strictEqualObject"!==n){var p=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d<p){while(c[0][h]===u[0][h])h++;h>2&&(f="\n ".concat(S(" ",h),"^"),h=0)}}}var g=c[c.length-1],y=u[u.length-1];while(g===y){if(h++<2?s="\n ".concat(g).concat(s):i=g,c.pop(),u.pop(),0===c.length||0===u.length)break;g=c[c.length-1],y=u[u.length-1]}var b=Math.max(c.length,u.length);if(0===b){var v=l.split("\n");if(v.length>30){v[26]="".concat(k,"...").concat(P);while(v.length>27)v.pop()}return"".concat(A.notIdentical,"\n\n").concat(v.join("\n"),"\n")}h>3&&(s="\n".concat(k,"...").concat(P).concat(s),a=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var x=0,_=A[n]+"\n".concat(O,"+ actual").concat(P," ").concat(M,"- expected").concat(P),C=" ".concat(k,"...").concat(P," Lines skipped");for(h=0;h<b;h++){var j=h-r;if(c.length<h+1)j>1&&h>2&&(j>4?(o+="\n".concat(k,"...").concat(P),a=!0):j>3&&(o+="\n ".concat(u[h-2]),x++),o+="\n ".concat(u[h-1]),x++),r=h,i+="\n".concat(M,"-").concat(P," ").concat(u[h]),x++;else if(u.length<h+1)j>1&&h>2&&(j>4?(o+="\n".concat(k,"...").concat(P),a=!0):j>3&&(o+="\n ".concat(c[h-2]),x++),o+="\n ".concat(c[h-1]),x++),r=h,o+="\n".concat(O,"+").concat(P," ").concat(c[h]),x++;else{var D=u[h],I=c[h],R=I!==D&&(!w(I,",")||I.slice(0,-1)!==D);R&&w(D,",")&&D.slice(0,-1)===I&&(R=!1,I+=","),R?(j>1&&h>2&&(j>4?(o+="\n".concat(k,"...").concat(P),a=!0):j>3&&(o+="\n ".concat(c[h-2]),x++),o+="\n ".concat(c[h-1]),x++),r=h,o+="\n".concat(O,"+").concat(P," ").concat(I),i+="\n".concat(M,"-").concat(P," ").concat(D),x+=2):(o+=i,i="",1!==j&&0!==h||(o+="\n ".concat(I),x++))}if(x>20&&h<b-2)return"".concat(_).concat(C,"\n").concat(o,"\n").concat(k,"...").concat(P).concat(i,"\n")+"".concat(k,"...").concat(P)}return"".concat(_).concat(a?C:"","\n").concat(o).concat(i).concat(s).concat(f)}var D=function(t){function e(t){var n;if(r(this,e),"object"!==m(t)||null===t)throw new _("options","Object",t);var i=t.message,o=t.operator,s=t.stackStartFn,a=t.actual,u=t.expected,h=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=l(this,y(e).call(this,String(i)));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&1!==process.stderr.getColorDepth()?(k="",O="",P="",M=""):(k="",O="",P="",M="")),"object"===m(a)&&null!==a&&"object"===m(u)&&null!==u&&"stack"in a&&a instanceof Error&&"stack"in u&&u instanceof Error&&(a=C(a),u=C(u)),"deepStrictEqual"===o||"strictEqual"===o)n=l(this,y(e).call(this,j(a,u,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var f=A[o],d=T(a).split("\n");if("notStrictEqual"===o&&"object"===m(a)&&null!==a&&(f=A.notStrictEqualObject),d.length>30){d[26]="".concat(k,"...").concat(P);while(d.length>27)d.pop()}n=1===d.length?l(this,y(e).call(this,"".concat(f," ").concat(d[0]))):l(this,y(e).call(this,"".concat(f,"\n\n").concat(d.join("\n"),"\n")))}else{var p=T(a),g="",b=A[o];"notDeepEqual"===o||"notEqual"===o?(p="".concat(A[o],"\n\n").concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(g="".concat(T(u)),p.length>512&&(p="".concat(p.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===o||"equal"===o?p="".concat(b,"\n\n").concat(p,"\n\nshould equal\n\n"):g=" ".concat(o," ").concat(g)),n=l(this,y(e).call(this,"".concat(p).concat(g)))}return Error.stackTraceLimit=h,n.generatedMessage=!i,Object.defineProperty(c(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=a,n.expected=u,n.operator=o,Error.captureStackTrace&&Error.captureStackTrace(c(n),s),n.stack,n.name="AssertionError",l(n)}return u(e,t),a(e,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:v.custom,value:function(t,e){return v(this,i({},e,{customInspect:!1,depth:0}))}}]),e}(h(Error));t.exports=D},3326:function(t,e,n){"use strict";function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){return!e||"object"!==i(e)&&"function"!==typeof e?s(t):e}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}var u,h,f={};function d(t,e,n){function i(t,n,i){return"string"===typeof e?e:e(t,n,i)}n||(n=Error);var s=function(e){function n(e,s,l){var c;return o(this,n),c=r(this,a(n).call(this,i(e,s,l))),c.code=t,c}return l(n,e),n}(n);f[t]=s}function p(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function g(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function y(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function m(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}d("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),d("ERR_INVALID_ARG_TYPE",(function(t,e,o){var r,s;if(void 0===u&&(u=n(5130)),u("string"===typeof t,"'name' must be a string"),"string"===typeof e&&g(e,"not ")?(r="must not be",e=e.replace(/^not /,"")):r="must be",y(t," argument"))s="The ".concat(t," ").concat(r," ").concat(p(e,"type"));else{var a=m(t,".")?"property":"argument";s='The "'.concat(t,'" ').concat(a," ").concat(r," ").concat(p(e,"type"))}return s+=". Received type ".concat(i(o)),s}),TypeError),d("ERR_INVALID_ARG_VALUE",(function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===h&&(h=n(9242));var o=h.inspect(e);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(i,". Received ").concat(o)}),TypeError,RangeError),d("ERR_INVALID_RETURN_VALUE",(function(t,e,n){var o;return o=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(i(n)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(o,".")}),TypeError),d("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];void 0===u&&(u=n(5130)),u(e.length>0,"At least one arg needs to be specified");var o="The ",r=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),r){case 1:o+="".concat(e[0]," argument");break;case 2:o+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:o+=e.slice(0,r-1).join(", "),o+=", and ".concat(e[r-1]," arguments");break}return"".concat(o," must be specified")}),TypeError),t.exports.codes=f},3184:function(t,e,n){"use strict";function i(t,e){return s(t)||r(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function r(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),e&&n.length===e)break}catch(l){o=!0,r=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(o)throw r}}return n}function s(t){if(Array.isArray(t))return t}function a(t){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}n(7658),n(2087),n(3767),n(8585),n(8696);var l=void 0!==/a/g.flags,c=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},u=function(t){var e=[];return t.forEach((function(t,n){return e.push([n,t])})),e},h=Object.is?Object.is:n(7004),f=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},d=Number.isNaN?Number.isNaN:n(1185);function p(t){return t.call.bind(t)}var g=p(Object.prototype.hasOwnProperty),y=p(Object.prototype.propertyIsEnumerable),m=p(Object.prototype.toString),b=n(9242).types,v=b.isAnyArrayBuffer,x=b.isArrayBufferView,_=b.isDate,w=b.isMap,S=b.isRegExp,k=b.isSet,O=b.isNativeError,M=b.isBoxedPrimitive,P=b.isNumberObject,A=b.isStringObject,E=b.isBooleanObject,C=b.isBigIntObject,T=b.isSymbolObject,j=b.isFloat32Array,D=b.isFloat64Array;function I(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var n=t.charCodeAt(e);if(n<48||n>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function R(t){return Object.keys(t).filter(I).concat(f(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/function L(t,e){if(t===e)return 0;for(var n=t.length,i=e.length,o=0,r=Math.min(n,i);o<r;++o)if(t[o]!==e[o]){n=t[o],i=e[o];break}return n<i?-1:i<n?1:0}var F=void 0,V=!0,N=!1,$=0,B=1,z=2,W=3;function H(t,e){return l?t.source===e.source&&t.flags===e.flags:RegExp.prototype.toString.call(t)===RegExp.prototype.toString.call(e)}function U(t,e){if(t.byteLength!==e.byteLength)return!1;for(var n=0;n<t.byteLength;n++)if(t[n]!==e[n])return!1;return!0}function q(t,e){return t.byteLength===e.byteLength&&0===L(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function Y(t,e){return t.byteLength===e.byteLength&&0===L(new Uint8Array(t),new Uint8Array(e))}function X(t,e){return P(t)?P(e)&&h(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):A(t)?A(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):E(t)?E(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):C(t)?C(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):T(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}function G(t,e,n,i){if(t===e)return 0!==t||(!n||h(t,e));if(n){if("object"!==a(t))return"number"===typeof t&&d(t)&&d(e);if("object"!==a(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==a(t))return(null===e||"object"!==a(e))&&t==e;if(null===e||"object"!==a(e))return!1}var o=m(t),r=m(e);if(o!==r)return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var s=R(t,F),l=R(e,F);return s.length===l.length&&K(t,e,n,i,B,s)}if("[object Object]"===o&&(!w(t)&&w(e)||!k(t)&&k(e)))return!1;if(_(t)){if(!_(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(S(t)){if(!S(e)||!H(t,e))return!1}else if(O(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(x(t)){if(n||!j(t)&&!D(t)){if(!q(t,e))return!1}else if(!U(t,e))return!1;var c=R(t,F),u=R(e,F);return c.length===u.length&&K(t,e,n,i,$,c)}if(k(t))return!(!k(e)||t.size!==e.size)&&K(t,e,n,i,z);if(w(t))return!(!w(e)||t.size!==e.size)&&K(t,e,n,i,W);if(v(t)){if(!Y(t,e))return!1}else if(M(t)&&!X(t,e))return!1}return K(t,e,n,i,$)}function J(t,e){return e.filter((function(e){return y(t,e)}))}function K(t,e,n,i,o,r){if(5===arguments.length){r=Object.keys(t);var s=Object.keys(e);if(r.length!==s.length)return!1}for(var a=0;a<r.length;a++)if(!g(e,r[a]))return!1;if(n&&5===arguments.length){var l=f(t);if(0!==l.length){var c=0;for(a=0;a<l.length;a++){var u=l[a];if(y(t,u)){if(!y(e,u))return!1;r.push(u),c++}else if(y(e,u))return!1}var h=f(e);if(l.length!==h.length&&J(e,h).length!==c)return!1}else{var d=f(e);if(0!==d.length&&0!==J(e,d).length)return!1}}if(0===r.length&&(o===$||o===B&&0===t.length||0===t.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var p=i.val1.get(t);if(void 0!==p){var m=i.val2.get(e);if(void 0!==m)return p===m}i.position++}i.val1.set(t,i.position),i.val2.set(e,i.position);var b=rt(t,e,n,r,i,o);return i.val1.delete(t),i.val2.delete(e),b}function Q(t,e,n,i){for(var o=c(t),r=0;r<o.length;r++){var s=o[r];if(G(e,s,n,i))return t.delete(s),!0}return!1}function Z(t){switch(a(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(d(t))return!1}return!0}function tt(t,e,n){var i=Z(n);return null!=i?i:e.has(i)&&!t.has(i)}function et(t,e,n,i,o){var r=Z(n);if(null!=r)return r;var s=e.get(r);return!(void 0===s&&!e.has(r)||!G(i,s,!1,o))&&(!t.has(r)&&G(i,s,!1,o))}function nt(t,e,n,i){for(var o=null,r=c(t),s=0;s<r.length;s++){var l=r[s];if("object"===a(l)&&null!==l)null===o&&(o=new Set),o.add(l);else if(!e.has(l)){if(n)return!1;if(!tt(t,e,l))return!1;null===o&&(o=new Set),o.add(l)}}if(null!==o){for(var u=c(e),h=0;h<u.length;h++){var f=u[h];if("object"===a(f)&&null!==f){if(!Q(o,f,n,i))return!1}else if(!n&&!t.has(f)&&!Q(o,f,n,i))return!1}return 0===o.size}return!0}function it(t,e,n,i,o,r){for(var s=c(t),a=0;a<s.length;a++){var l=s[a];if(G(n,l,o,r)&&G(i,e.get(l),o,r))return t.delete(l),!0}return!1}function ot(t,e,n,o){for(var r=null,s=u(t),l=0;l<s.length;l++){var c=i(s[l],2),h=c[0],f=c[1];if("object"===a(h)&&null!==h)null===r&&(r=new Set),r.add(h);else{var d=e.get(h);if(void 0===d&&!e.has(h)||!G(f,d,n,o)){if(n)return!1;if(!et(t,e,h,f,o))return!1;null===r&&(r=new Set),r.add(h)}}}if(null!==r){for(var p=u(e),g=0;g<p.length;g++){var y=i(p[g],2),m=(h=y[0],y[1]);if("object"===a(h)&&null!==h){if(!it(r,t,h,m,n,o))return!1}else if(!n&&(!t.has(h)||!G(t.get(h),m,!1,o))&&!it(r,t,h,m,!1,o))return!1}return 0===r.size}return!0}function rt(t,e,n,i,o,r){var s=0;if(r===z){if(!nt(t,e,n,o))return!1}else if(r===W){if(!ot(t,e,n,o))return!1}else if(r===B)for(;s<t.length;s++){if(!g(t,s)){if(g(e,s))return!1;for(var a=Object.keys(t);s<a.length;s++){var l=a[s];if(!g(e,l)||!G(t[l],e[l],n,o))return!1}return a.length===Object.keys(e).length}if(!g(e,s)||!G(t[s],e[s],n,o))return!1}for(s=0;s<i.length;s++){var c=i[s];if(!G(t[c],e[c],n,o))return!1}return!0}function st(t,e){return G(t,e,N)}function at(t,e){return G(t,e,V)}t.exports={isDeepEqual:st,isDeepStrictEqual:at}},5477:function(t,e,n){"use strict";var i=n(8692),o=n(1542),r=o(i("String.prototype.indexOf"));t.exports=function(t,e){var n=i(t,!!e);return"function"===typeof n&&r(t,".prototype.")>-1?o(n):n}},1542:function(t,e,n){"use strict";var i=n(9148),o=n(8692),r=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),a=o("%Reflect.apply%",!0)||i.call(s,r),l=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(f){c=null}t.exports=function(t){var e=a(i,s,arguments);if(l&&c){var n=l(e,"length");n.configurable&&c(e,"length",{value:1+u(0,t.length-(arguments.length-1))})}return e};var h=function(){return a(i,r,arguments)};c?c(t.exports,"apply",{value:h}):t.exports.apply=h},9152:function(t,e,n){"use strict";n.d(e,{Z:function(){return qe}});n(7658);var i=n(3254),o=n(6494);
/*!
* chartjs-plugin-annotation v2.2.1
* https://www.chartjs.org/chartjs-plugin-annotation/index
* (c) 2023 chartjs-plugin-annotation Contributors
* Released under the MIT License
*/
const r={modes:{point(t,e){return c(t,e,{intersect:!0})},nearest(t,e,n){return u(t,e,n)},x(t,e,n){return c(t,e,{intersect:n.intersect,axis:"x"})},y(t,e,n){return c(t,e,{intersect:n.intersect,axis:"y"})}}};function s(t,e,n){const i=r.modes[n.mode]||r.modes.nearest;return i(t,e,n)}function a(t,e,n){return"x"!==n&&"y"!==n?t.inRange(e.x,e.y,"x",!0)||t.inRange(e.x,e.y,"y",!0):t.inRange(e.x,e.y,n,!0)}function l(t,e,n){return"x"===n?{x:t.x,y:e.y}:"y"===n?{x:e.x,y:t.y}:e}function c(t,e,n){return t.visibleElements.filter((t=>n.intersect?t.inRange(e.x,e.y):a(t,e,n.axis)))}function u(t,e,n){let i=Number.POSITIVE_INFINITY;return c(t,e,n).reduce(((t,r)=>{const s=r.getCenterPoint(),a=l(e,s,n.axis),c=(0,o.aE)(e,a);return c<i?(t=[r],i=c):c===i&&t.push(r),t}),[]).sort(((t,e)=>t._index-e._index)).slice(0,1)}const h=(t,e)=>e>t||t.length>e.length&&t.slice(0,e.length)===e,f=.001,d=(t,e,n)=>Math.min(n,Math.max(e,t));function p(t,e,n){for(const i of Object.keys(t))t[i]=d(t[i],e,n);return t}function g(t,e,n,i){if(!t||!e||n<=0)return!1;const o=i/2;return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(n+o,2)}function y(t,{x:e,y:n,x2:i,y2:o},r,s){const a=s/2,l=t.x>=e-a-f&&t.x<=i+a+f,c=t.y>=n-a-f&&t.y<=o+a+f;return"x"===r?l:("y"===r||l)&&c}function m(t,e){const{centerX:n,centerY:i}=t.getProps(["centerX","centerY"],e);return{x:n,y:i}}function b(t,e,n,i=!0){const o=n.split(".");let r=0;for(const s of e.split(".")){const a=o[r++];if(parseInt(s,10)<parseInt(a,10))break;if(h(a,s)){if(i)throw new Error(`${t} v${n} is not supported. v${e} or newer is required.`);return!1}}return!0}const v=t=>"string"===typeof t&&t.endsWith("%"),x=t=>parseFloat(t)/100,_=t=>d(x(t),0,1);function w(t,e){return"start"===e?0:"end"===e?t:v(e)?_(e)*t:t/2}function S(t,e,n=!0){return"number"===typeof e?e:v(e)?(n?_(e):x(e))*t:t}function k(t,e){const{x:n,width:i}=t,o=e.textAlign;return"center"===o?n+i/2:"end"===o||"right"===o?n+i:n}function O(t,e="center"){return(0,o.i)(t)?{x:(0,o.v)(t.x,e),y:(0,o.v)(t.y,e)}:(t=(0,o.v)(t,e),{x:t,y:t})}function M(t){return t&&((0,o.h)(t.xValue)||(0,o.h)(t.yValue))}function P(t,e,n,i=!1){const r=n.init;if(r)return!0===r?E(e,i):C(e,i,(0,o.Q)(r,[{chart:t,properties:e,options:n}]))}function A(t,e,n){let i=!1;return e.forEach((e=>{(0,o.a7)(t[e])?(i=!0,n[e]=t[e]):(0,o.h)(n[e])&&delete n[e]})),i}function E({centerX:t,centerY:e},n){return n?{centerX:t,centerY:e,radius:0,width:0,height:0}:{x:t,y:e,x2:t,y2:e,width:0,height:0}}function C(t,e,n){return!0===n?E(t,e):(0,o.i)(n)?n:void 0}const T=new Map,j=t=>isNaN(t)||t<=0,D=t=>t.reduce((function(t,e){return t+=e.string,t}),"");function I(t){if(t&&"object"===typeof t){const e=t.toString();return"[object HTMLImageElement]"===e||"[object HTMLCanvasElement]"===e}}function R(t,{x:e,y:n},i){i&&(t.translate(e,n),t.rotate((0,o.t)(i)),t.translate(-e,-n))}function L(t,e){if(e&&e.borderWidth)return t.lineCap=e.borderCapStyle,t.setLineDash(e.borderDash),t.lineDashOffset=e.borderDashOffset,t.lineJoin=e.borderJoinStyle,t.lineWidth=e.borderWidth,t.strokeStyle=e.borderColor,!0}function F(t,e){t.shadowColor=e.backgroundShadowColor,t.shadowBlur=e.shadowBlur,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY}function V(t,e){const n=e.content;if(I(n))return{width:S(n.width,e.width),height:S(n.height,e.height)};const i=e.font,r=(0,o.b)(i)?i.map((t=>(0,o.a0)(t))):[(0,o.a0)(i)],s=e.textStrokeWidth,a=(0,o.b)(n)?n:[n],l=a.join()+D(r)+s+(t._measureText?"-spriting":"");return T.has(l)||T.set(l,H(t,a,r,s)),T.get(l)}function N(t,e,n){const{x:i,y:r,width:s,height:a}=e;t.save(),F(t,n);const l=L(t,n);t.fillStyle=n.backgroundColor,t.beginPath(),(0,o.au)(t,{x:i,y:r,w:s,h:a,radius:p((0,o.aw)(n.borderRadius),0,Math.min(s,a)/2)}),t.closePath(),t.fill(),l&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore()}function $(t,e,n){const i=n.content;if(I(i))return t.save(),t.globalAlpha=Y(n.opacity,i.style.opacity),t.drawImage(i,e.x,e.y,e.width,e.height),void t.restore();const r=(0,o.b)(i)?i:[i],s=n.font,a=(0,o.b)(s)?s.map((t=>(0,o.a0)(t))):[(0,o.a0)(s)],l=n.color,c=(0,o.b)(l)?l:[l],u=k(e,n),h=e.y+n.textStrokeWidth/2;t.save(),t.textBaseline="middle",t.textAlign=n.textAlign,B(t,n)&&U(t,{x:u,y:h},r,a),q(t,{x:u,y:h},r,{fonts:a,colors:c}),t.restore()}function B(t,e){if(e.textStrokeWidth>0)return t.lineJoin="round",t.miterLimit=2,t.lineWidth=e.textStrokeWidth,t.strokeStyle=e.textStrokeColor,!0}function z(t,e,n,i){const{radius:r,options:s}=e,a=s.pointStyle,l=s.rotation;let c=(l||0)*o.b3;if(I(a))return t.save(),t.translate(n,i),t.rotate(c),t.drawImage(a,-a.width/2,-a.height/2,a.width,a.height),void t.restore();j(r)||W(t,{x:n,y:i,radius:r,rotation:l,style:a,rad:c})}function W(t,{x:e,y:n,radius:i,rotation:r,style:s,rad:a}){let l,c,u,h;switch(t.beginPath(),s){default:t.arc(e,n,i,0,o.T),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(a)*i,n-Math.cos(a)*i),a+=o.b5,t.lineTo(e+Math.sin(a)*i,n-Math.cos(a)*i),a+=o.b5,t.lineTo(e+Math.sin(a)*i,n-Math.cos(a)*i),t.closePath();break;case"rectRounded":h=.516*i,u=i-h,l=Math.cos(a+o.b4)*u,c=Math.sin(a+o.b4)*u,t.arc(e-l,n-c,h,a-o.P,a-o.H),t.arc(e+c,n-l,h,a-o.H,a),t.arc(e+l,n+c,h,a,a+o.H),t.arc(e-c,n+l,h,a+o.H,a+o.P),t.closePath();break;case"rect":if(!r){u=Math.SQRT1_2*i,t.rect(e-u,n-u,2*u,2*u);break}a+=o.b4;case"rectRot":l=Math.cos(a)*i,c=Math.sin(a)*i,t.moveTo(e-l,n-c),t.lineTo(e+c,n-l),t.lineTo(e+l,n+c),t.lineTo(e-c,n+l),t.closePath();break;case"crossRot":a+=o.b4;case"cross":l=Math.cos(a)*i,c=Math.sin(a)*i,t.moveTo(e-l,n-c),t.lineTo(e+l,n+c),t.moveTo(e+c,n-l),t.lineTo(e-c,n+l);break;case"star":l=Math.cos(a)*i,c=Math.sin(a)*i,t.moveTo(e-l,n-c),t.lineTo(e+l,n+c),t.moveTo(e+c,n-l),t.lineTo(e-c,n+l),a+=o.b4,l=Math.cos(a)*i,c=Math.sin(a)*i,t.moveTo(e-l,n-c),t.lineTo(e+l,n+c),t.moveTo(e+c,n-l),t.lineTo(e-c,n+l);break;case"line":l=Math.cos(a)*i,c=Math.sin(a)*i,t.moveTo(e-l,n-c),t.lineTo(e+l,n+c);break;case"dash":t.moveTo(e,n),t.lineTo(e+Math.cos(a)*i,n+Math.sin(a)*i);break}t.fill()}function H(t,e,n,i){t.save();const o=e.length;let r=0,s=i;for(let a=0;a<o;a++){const o=n[Math.min(a,n.length-1)];t.font=o.string;const l=e[a];r=Math.max(r,t.measureText(l).width+i),s+=o.lineHeight}return t.restore(),{width:r,height:s}}function U(t,{x:e,y:n},i,o){t.beginPath();let r=0;i.forEach((function(i,s){const a=o[Math.min(s,o.length-1)],l=a.lineHeight;t.font=a.string,t.strokeText(i,e,n+l/2+r),r+=l})),t.stroke()}function q(t,{x:e,y:n},i,{fonts:o,colors:r}){let s=0;i.forEach((function(i,a){const l=r[Math.min(a,r.length-1)],c=o[Math.min(a,o.length-1)],u=c.lineHeight;t.beginPath(),t.font=c.string,t.fillStyle=l,t.fillText(i,e,n+u/2+s),s+=u,t.fill()}))}function Y(t,e){const n=(0,o.x)(t)?t:e;return(0,o.x)(n)?d(n,0,1):1}const X={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function G(t,e,n){return e="number"===typeof e?e:t.parse(e),(0,o.g)(e)?t.getPixelForValue(e):n}function J(t,e,n){const i=e[n];if(i||"scaleID"===n)return i;const o=n.charAt(0),r=Object.values(t).filter((t=>t.axis&&t.axis===o));return r.length?r[0].id:o}function K(t,e){if(t){const n=t.options.reverse,i=G(t,e.min,n?e.end:e.start),o=G(t,e.max,n?e.start:e.end);return{start:i,end:o}}}function Q(t,e){const{chartArea:n,scales:i}=t,o=i[J(i,e,"xScaleID")],r=i[J(i,e,"yScaleID")];let s=n.width/2,a=n.height/2;return o&&(s=G(o,e.xValue,o.left+o.width/2)),r&&(a=G(r,e.yValue,r.top+r.height/2)),{x:s,y:a}}function Z(t,e){const n=t.scales,i=n[J(n,e,"xScaleID")],o=n[J(n,e,"yScaleID")];if(!i&&!o)return{};let{left:r,right:s}=i||t.chartArea,{top:a,bottom:l}=o||t.chartArea;const c=ot(i,{min:e.xMin,max:e.xMax,start:r,end:s});r=c.start,s=c.end;const u=ot(o,{min:e.yMin,max:e.yMax,start:l,end:a});return a=u.start,l=u.end,{x:r,y:a,x2:s,y2:l,width:s-r,height:l-a,centerX:r+(s-r)/2,centerY:a+(l-a)/2}}function tt(t,e){if(!M(e)){const n=Z(t,e);let i=e.radius;i&&!isNaN(i)||(i=Math.min(n.width,n.height)/2,e.radius=i);const o=2*i,r=n.centerX+e.xAdjust,s=n.centerY+e.yAdjust;return{x:r-i,y:s-i,x2:r+i,y2:s+i,centerX:r,centerY:s,width:o,height:o,radius:i}}return it(t,e)}function et(t,e){const{scales:n,chartArea:i}=t,o=n[e.scaleID],r={x:i.left,y:i.top,x2:i.right,y2:i.bottom};return o?rt(o,r,e):st(n,r,e),r}function nt(t,e,n){const i=Z(t,e);return i.initProperties=P(t,i,e,n),i.elements=[{type:"label",optionScope:"label",properties:ut(t,i,e),initProperties:i.initProperties}],i}function it(t,e){const n=Q(t,e),i=2*e.radius;return{x:n.x-e.radius+e.xAdjust,y:n.y-e.radius+e.yAdjust,x2:n.x+e.radius+e.xAdjust,y2:n.y+e.radius+e.yAdjust,centerX:n.x+e.xAdjust,centerY:n.y+e.yAdjust,radius:e.radius,width:i,height:i}}function ot(t,e){const n=K(t,e)||e;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function rt(t,e,n){const i=G(t,n.value,NaN),o=G(t,n.endValue,i);t.isHorizontal()?(e.x=i,e.x2=o):(e.y=i,e.y2=o)}function st(t,e,n){for(const i of Object.keys(X)){const o=t[J(t,n,i)];if(o){const{min:t,max:r,start:s,end:a,startProp:l,endProp:c}=X[i],u=K(o,{min:n[t],max:n[r],start:o[s],end:o[a]});e[l]=u.start,e[c]=u.end}}}function at({properties:t,options:e},n,i,o){const{x:r,x2:s,width:a}=t;return ct({start:r,end:s,size:a,borderWidth:e.borderWidth},{position:i.x,padding:{start:o.left,end:o.right},adjust:e.label.xAdjust,size:n.width})}function lt({properties:t,options:e},n,i,o){const{y:r,y2:s,height:a}=t;return ct({start:r,end:s,size:a,borderWidth:e.borderWidth},{position:i.y,padding:{start:o.top,end:o.bottom},adjust:e.label.yAdjust,size:n.height})}function ct(t,e){const{start:n,end:i,borderWidth:o}=t,{position:r,padding:{start:s,end:a},adjust:l}=e,c=i-o-n-s-a-e.size;return n+o/2+l+w(c,r)}function ut(t,e,n){const i=n.label;i.backgroundColor="transparent",i.callout.display=!1;const r=O(i.position),s=(0,o.E)(i.padding),a=V(t.ctx,i),l=at({properties:e,options:n},a,r,s),c=lt({properties:e,options:n},a,r,s),u=a.width+s.width,h=a.height+s.height;return{x:l,y:c,x2:l+u,y2:c+h,width:u,height:h,centerX:l+u/2,centerY:c+h/2,rotation:i.rotation}}function ht(t,e,n){const i=Math.cos(n),o=Math.sin(n),r=e.x,s=e.y;return{x:r+i*(t.x-r)-o*(t.y-s),y:s+o*(t.x-r)+i*(t.y-s)}}const ft=["enter","leave"],dt=ft.concat("click");function pt(t,e,n){e.listened=A(n,dt,e.listeners),e.moveListened=!1,e._getElements=s,ft.forEach((t=>{(0,o.a7)(n[t])&&(e.moveListened=!0)})),e.listened&&e.moveListened||e.annotations.forEach((t=>{!e.listened&&(0,o.a7)(t.click)&&(e.listened=!0),e.moveListened||ft.forEach((n=>{(0,o.a7)(t[n])&&(e.listened=!0,e.moveListened=!0)}))}))}function gt(t,e,n){if(t.listened)switch(e.type){case"mousemove":case"mouseout":return yt(t,e,n);case"click":return bt(t,e,n)}}function yt(t,e,n){if(!t.moveListened)return;let i;i="mousemove"===e.type?s(t,e,n.interaction):[];const o=t.hovered;t.hovered=i;const r={state:t,event:e};let a=mt(r,"leave",o,i);return mt(r,"enter",i,o)||a}function mt({state:t,event:e},n,i,o){let r;for(const s of i)o.indexOf(s)<0&&(r=vt(s.options[n]||t.listeners[n],s,e)||r);return r}function bt(t,e,n){const i=t.listeners,o=s(t,e,n.interaction);let r;for(const s of o)r=vt(s.options.click||i.click,s,e)||r;return r}function vt(t,e,n){return!0===(0,o.Q)(t,[e.$context,n])}const xt=["afterDraw","beforeDraw"];function _t(t,e,n){const i=e.visibleElements;e.hooked=A(n,xt,e.hooks),e.hooked||i.forEach((t=>{e.hooked||xt.forEach((n=>{(0,o.a7)(t.options[n])&&(e.hooked=!0)}))}))}function wt(t,e,n){if(t.hooked){const i=e.options[n]||t.hooks[n];return(0,o.Q)(i,[e.$context])}}function St(t,e,n){const i=Et(t.scales,e,n);let r=Ot(e,i,"min","suggestedMin");r=Ot(e,i,"max","suggestedMax")||r,r&&(0,o.a7)(e.handleTickRangeOptions)&&e.handleTickRangeOptions()}function kt(t,e){for(const n of t)Pt(n,e)}function Ot(t,e,n,i){if((0,o.g)(e[n])&&!Mt(t.options,n,i)){const i=t[n]!==e[n];return t[n]=e[n],i}}function Mt(t,e,n){return(0,o.h)(t[e])||(0,o.h)(t[n])}function Pt(t,e){for(const n of["scaleID","xScaleID","yScaleID"]){const i=J(e,t,n);i&&!e[i]&&At(t,n)&&console.warn(`No scale found with id '${i}' for annotation '${t.id}'`)}}function At(t,e){if("scaleID"===e)return!0;const n=e.charAt(0);for(const i of["Min","Max","Value"])if((0,o.h)(t[n+i]))return!0;return!1}function Et(t,e,n){const i=e.axis,r=e.id,s=i+"ScaleID",a={min:(0,o.v)(e.min,Number.NEGATIVE_INFINITY),max:(0,o.v)(e.max,Number.POSITIVE_INFINITY)};for(const o of n)o.scaleID===r?Ct(o,e,["value","endValue"],a):J(t,o,s)===r&&Ct(o,e,[i+"Min",i+"Max",i+"Value"],a);return a}function Ct(t,e,n,i){for(const r of n){const n=t[r];if((0,o.h)(n)){const t=e.parse(n);i.min=Math.min(i.min,t),i.max=Math.max(i.max,t)}}}class Tt extends i.W_{inRange(t,e,n,i){const{x:r,y:s}=ht({x:t,y:e},this.getCenterPoint(i),(0,o.t)(-this.options.rotation));return y({x:r,y:s},this.getProps(["x","y","x2","y2"],i),n,this.options.borderWidth)}getCenterPoint(t){return m(this,t)}draw(t){t.save(),R(t,this.getCenterPoint(),this.options.rotation),N(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return nt(t,e)}}Tt.id="boxAnnotation",Tt.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Tt.defaultRoutes={borderColor:"color",backgroundColor:"color"},Tt.descriptors={label:{_fallback:!0}};const jt=["left","bottom","top","right"];class Dt extends i.W_{inRange(t,e,n,i){const{x:r,y:s}=ht({x:t,y:e},this.getCenterPoint(i),(0,o.t)(-this.rotation));return y({x:r,y:s},this.getProps(["x","y","x2","y2"],i),n,this.options.borderWidth)}getCenterPoint(t){return m(this,t)}draw(t){const e=this.options,n=!(0,o.h)(this._visible)||this._visible;e.display&&e.content&&n&&(t.save(),R(t,this.getCenterPoint(),this.rotation),Lt(t,this),N(t,this,e),$(t,Wt(this),e),t.restore())}resolveElementProperties(t,e){let n;if(M(e))n=Q(t,e);else{const{centerX:i,centerY:o}=Z(t,e);n={x:i,y:o}}const i=(0,o.E)(e.padding),r=V(t.ctx,e),s=It(n,r,e,i);return{initProperties:P(t,s,e),pointX:n.x,pointY:n.y,...s,rotation:e.rotation}}}function It(t,e,n,i){const o=e.width+i.width+n.borderWidth,r=e.height+i.height+n.borderWidth,s=O(n.position,"center"),a=Rt(t.x,o,n.xAdjust,s.x),l=Rt(t.y,r,n.yAdjust,s.y);return{x:a,y:l,x2:a+o,y2:l+r,width:o,height:r,centerX:a+o/2,centerY:l+r/2}}function Rt(t,e,n=0,i){return t-w(e,i)+n}function Lt(t,e){const{pointX:n,pointY:i,options:r}=e,s=r.callout,a=s&&s.display&&Bt(e,s);if(!a||Ht(e,s,a))return;t.save(),t.beginPath();const l=L(t,s);if(!l)return t.restore();const{separatorStart:c,separatorEnd:u}=Ft(e,a),{sideStart:h,sideEnd:f}=Nt(e,a,c);(s.margin>0||0===r.borderWidth)&&(t.moveTo(c.x,c.y),t.lineTo(u.x,u.y)),t.moveTo(h.x,h.y),t.lineTo(f.x,f.y);const d=ht({x:n,y:i},e.getCenterPoint(),(0,o.t)(-e.rotation));t.lineTo(d.x,d.y),t.stroke(),t.restore()}function Ft(t,e){const{x:n,y:i,x2:o,y2:r}=t,s=Vt(t,e);let a,l;return"left"===e||"right"===e?(a={x:n+s,y:i},l={x:a.x,y:r}):(a={x:n,y:i+s},l={x:o,y:a.y}),{separatorStart:a,separatorEnd:l}}function Vt(t,e){const{width:n,height:i,options:o}=t,r=o.callout.margin+o.borderWidth/2;return"right"===e?n+r:"bottom"===e?i+r:-r}function Nt(t,e,n){const{y:i,width:o,height:r,options:s}=t,a=s.callout.start,l=$t(e,s.callout);let c,u;return"left"===e||"right"===e?(c={x:n.x,y:i+S(r,a)},u={x:c.x+l,y:c.y}):(c={x:n.x+S(o,a),y:n.y},u={x:c.x,y:c.y+l}),{sideStart:c,sideEnd:u}}function $t(t,e){const n=e.side;return"left"===t||"top"===t?-n:n}function Bt(t,e){const n=e.position;return jt.includes(n)?n:zt(t,e)}function zt(t,e){const{x:n,y:i,x2:r,y2:s,width:a,height:l,pointX:c,pointY:u,centerX:h,centerY:f,rotation:d}=t,p={x:h,y:f},g=e.start,y=S(a,g),m=S(l,g),b=[n,n+y,n+y,r],v=[i+m,s,i,s],x=[];for(let _=0;_<4;_++){const t=ht({x:b[_],y:v[_]},p,(0,o.t)(d));x.push({position:jt[_],distance:(0,o.aE)(t,{x:c,y:u})})}return x.sort(((t,e)=>t.distance-e.distance))[0].position}function Wt({x:t,y:e,width:n,height:i,options:r}){const s=r.borderWidth/2,a=(0,o.E)(r.padding);return{x:t+a.left+s,y:e+a.top+s,width:n-a.left-a.right-r.borderWidth,height:i-a.top-a.bottom-r.borderWidth}}function Ht(t,e,n){const{pointX:i,pointY:o}=t,r=e.margin;let s=i,a=o;return"left"===n?s+=r:"right"===n?s-=r:"top"===n?a+=r:"bottom"===n&&(a-=r),t.inRange(s,a)}Dt.id="labelAnnotation",Dt.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},Dt.defaultRoutes={borderColor:"color"};const Ut=(t,e,n)=>({x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}),qt=(t,e,n)=>Ut(e,n,Math.abs((t-e.y)/(n.y-e.y))).x,Yt=(t,e,n)=>Ut(e,n,Math.abs((t-e.x)/(n.x-e.x))).y,Xt=t=>t*t,Gt=(t,e,{x:n,y:i,x2:o,y2:r},s)=>"y"===s?{start:Math.min(i,r),end:Math.max(i,r),value:e}:{start:Math.min(n,o),end:Math.max(n,o),value:t},Jt=(t,e,n,i)=>(1-i)*(1-i)*t+2*(1-i)*i*e+i*i*n,Kt=(t,e,n,i)=>({x:Jt(t.x,e.x,n.x,i),y:Jt(t.y,e.y,n.y,i)}),Qt=(t,e,n,i)=>2*(1-i)*(e-t)+2*i*(n-e),Zt=(t,e,n,i)=>-Math.atan2(Qt(t.x,e.x,n.x,i),Qt(t.y,e.y,n.y,i))+.5*o.P;class te extends i.W_{inRange(t,e,n,i){const o=this.options.borderWidth/2;if("x"!==n&&"y"!==n){const n={mouseX:t,mouseY:e},{path:r,ctx:s}=this;if(r){L(s,this.options);const{chart:o}=this.$context,a=t*o.currentDevicePixelRatio,l=e*o.currentDevicePixelRatio,c=s.isPointInStroke(r,a,l)||ae(this,n,i);return s.restore(),c}const a=Xt(o);return se(this,n,a,i)||ae(this,n,i)}return ne(this,{mouseX:t,mouseY:e},n,{hBorderWidth:o,useFinalPosition:i})}getCenterPoint(t){return m(this,t)}draw(t){const{x:e,y:n,x2:i,y2:o,cp:r,options:s}=this;if(t.save(),!L(t,s))return t.restore();F(t,s);const a=Math.sqrt(Math.pow(i-e,2)+Math.pow(o-n,2));if(s.curve&&r)return _e(t,this,r,a),t.restore();const{startOpts:l,endOpts:c,startAdjust:u,endAdjust:h}=ye(this),f=Math.atan2(o-n,i-e);t.translate(e,n),t.rotate(f),t.beginPath(),t.moveTo(0+u,0),t.lineTo(a-h,0),t.shadowColor=s.borderShadowColor,t.stroke(),be(t,0,u,l),be(t,a,-h,c),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){const n=et(t,e),{x:i,y:r,x2:s,y2:a}=n,l=ie(n,t.chartArea),c=l?re({x:i,y:r},{x:s,y:a},t.chartArea):{x:i,y:r,x2:s,y2:a,width:Math.abs(s-i),height:Math.abs(a-r)};if(c.centerX=(s+i)/2,c.centerY=(a+r)/2,c.initProperties=P(t,c,e),e.curve){const t={x:c.x,y:c.y},n={x:c.x2,y:c.y2};c.cp=ve(c,e,(0,o.aE)(t,n))}const u=le(t,c,e.label);return u._visible=l,c.elements=[{type:"label",optionScope:"label",properties:u,initProperties:c.initProperties}],c}}te.id="lineAnnotation";const ee={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};function ne(t,{mouseX:e,mouseY:n},i,{hBorderWidth:o,useFinalPosition:r}){const s=Gt(e,n,t.getProps(["x","y","x2","y2"],r),i);return s.value>=s.start-o&&s.value<=s.end+o||ae(t,{mouseX:e,mouseY:n},r,i)}function ie({x:t,y:e,x2:n,y2:i},{top:o,right:r,bottom:s,left:a}){return!(t<a&&n<a||t>r&&n>r||e<o&&i<o||e>s&&i>s)}function oe({x:t,y:e},n,{top:i,right:o,bottom:r,left:s}){return t<s&&(e=Yt(s,{x:t,y:e},n),t=s),t>o&&(e=Yt(o,{x:t,y:e},n),t=o),e<i&&(t=qt(i,{x:t,y:e},n),e=i),e>r&&(t=qt(r,{x:t,y:e},n),e=r),{x:t,y:e}}function re(t,e,n){const{x:i,y:o}=oe(t,e,n),{x:r,y:s}=oe(e,t,n);return{x:i,y:o,x2:r,y2:s,width:Math.abs(r-i),height:Math.abs(s-o)}}function se(t,{mouseX:e,mouseY:n},i=f,o){const{x:r,y:s,x2:a,y2:l}=t.getProps(["x","y","x2","y2"],o),c=a-r,u=l-s,h=Xt(c)+Xt(u),d=0===h?-1:((e-r)*c+(n-s)*u)/h;let p,g;return d<0?(p=r,g=s):d>1?(p=a,g=l):(p=r+d*c,g=s+d*u),Xt(e-p)+Xt(n-g)<=i}function ae(t,{mouseX:e,mouseY:n},i,o){const r=t.label;return r.options.display&&r.inRange(e,n,o,i)}function le(t,e,n){const i=n.borderWidth,r=(0,o.E)(n.padding),s=V(t.ctx,n),a=s.width+r.width+i,l=s.height+r.height+i;return ue(e,n,{width:a,height:l,padding:r},t.chartArea)}function ce(t){const{x:e,y:n,x2:i,y2:r}=t,s=Math.atan2(r-n,i-e);return s>o.P/2?s-o.P:s<o.P/-2?s+o.P:s}function ue(t,e,n,i){const{width:r,height:s,padding:a}=n,{xAdjust:l,yAdjust:c}=e,u={x:t.x,y:t.y},h={x:t.x2,y:t.y2},f="auto"===e.rotation?ce(t):(0,o.t)(e.rotation),d=he(r,s,f),p=fe(t,e,{labelSize:d,padding:a},i),g=t.cp?Kt(u,t.cp,h,p):Ut(u,h,p),y={size:d.w,min:i.left,max:i.right,padding:a.left},m={size:d.h,min:i.top,max:i.bottom,padding:a.top},b=ge(g.x,y)+l,v=ge(g.y,m)+c;return{x:b-r/2,y:v-s/2,x2:b+r/2,y2:v+s/2,centerX:b,centerY:v,pointX:g.x,pointY:g.y,width:r,height:s,rotation:(0,o.U)(f)}}function he(t,e,n){const i=Math.cos(n),o=Math.sin(n);return{w:Math.abs(t*i)+Math.abs(e*o),h:Math.abs(t*o)+Math.abs(e*i)}}function fe(t,e,n,i){let o;const r=pe(t,i);return o="start"===e.position?de({w:t.x2-t.x,h:t.y2-t.y},n,e,r):"end"===e.position?1-de({w:t.x-t.x2,h:t.y-t.y2},n,e,r):w(1,e.position),o}function de(t,e,n,i){const{labelSize:o,padding:r}=e,s=t.w*i.dx,a=t.h*i.dy,l=s>0&&(o.w/2+r.left-i.x)/s,c=a>0&&(o.h/2+r.top-i.y)/a;return d(Math.max(l,c),0,.25)}function pe(t,e){const{x:n,x2:i,y:o,y2:r}=t,s=Math.min(o,r)-e.top,a=Math.min(n,i)-e.left,l=e.bottom-Math.max(o,r),c=e.right-Math.max(n,i);return{x:Math.min(a,c),y:Math.min(s,l),dx:a<=c?1:-1,dy:s<=l?1:-1}}function ge(t,e){const{size:n,min:i,max:o,padding:r}=e,s=n/2;return n>o-i?(o+i)/2:(i>=t-r-s&&(t=i+r+s),o<=t+r+s&&(t=o-r-s),t)}function ye(t){const e=t.options,n=e.arrowHeads&&e.arrowHeads.start,i=e.arrowHeads&&e.arrowHeads.end;return{startOpts:n,endOpts:i,startAdjust:me(t,n),endAdjust:me(t,i)}}function me(t,e){if(!e||!e.display)return 0;const{length:n,width:i}=e,o=t.options.borderWidth/2,r={x:n,y:i+o},s={x:0,y:o};return Math.abs(qt(0,r,s))}function be(t,e,n,i){if(!i||!i.display)return;const{length:o,width:r,fill:s,backgroundColor:a,borderColor:l}=i,c=Math.abs(e-o)+n;t.beginPath(),F(t,i),L(t,i),t.moveTo(c,-r),t.lineTo(e+n,0),t.lineTo(c,r),!0===s?(t.fillStyle=a||l,t.closePath(),t.fill(),t.shadowColor="transparent"):t.shadowColor=i.borderShadowColor,t.stroke()}function ve(t,e,n){const{x:i,y:o,x2:r,y2:s,centerX:a,centerY:l}=t,c=Math.atan2(s-o,r-i),u=O(e.controlPoint,0),h={x:a+S(n,u.x,!1),y:l+S(n,u.y,!1)};return ht(h,{x:a,y:l},c)}function xe(t,{x:e,y:n},{angle:i,adjust:o},r){r&&r.display&&(t.save(),t.translate(e,n),t.rotate(i),be(t,0,-o,r),t.restore())}function _e(t,e,n,i){const{x:r,y:s,x2:a,y2:l,options:c}=e,{startOpts:u,endOpts:h,startAdjust:f,endAdjust:d}=ye(e),p={x:r,y:s},g={x:a,y:l},y=Zt(p,n,g,0),m=Zt(p,n,g,1)-o.P,b=Kt(p,n,g,f/i),v=Kt(p,n,g,1-d/i),x=new Path2D;t.beginPath(),x.moveTo(b.x,b.y),x.quadraticCurveTo(n.x,n.y,v.x,v.y),t.shadowColor=c.borderShadowColor,t.stroke(x),e.path=x,e.ctx=t,xe(t,b,{angle:y,adjust:f},u),xe(t,v,{angle:m,adjust:d},h)}te.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},ee),fill:!1,length:12,start:Object.assign({},ee),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},Dt.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},te.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},te.defaultRoutes={borderColor:"color"};class we extends i.W_{inRange(t,e,n,i){const r=this.options.rotation,s=this.options.borderWidth;if("x"!==n&&"y"!==n)return Se({x:t,y:e},this.getProps(["width","height","centerX","centerY"],i),r,s);const{x:a,y:l,x2:c,y2:u}=this.getProps(["x","y","x2","y2"],i),h=s/2,d="y"===n?{start:l,end:u}:{start:a,end:c},p=ht({x:t,y:e},this.getCenterPoint(i),(0,o.t)(-r));return p[n]>=d.start-h-f&&p[n]<=d.end+h+f}getCenterPoint(t){return m(this,t)}draw(t){const{width:e,height:n,centerX:i,centerY:r,options:s}=this;t.save(),R(t,this.getCenterPoint(),s.rotation),F(t,this.options),t.beginPath(),t.fillStyle=s.backgroundColor;const a=L(t,s);t.ellipse(i,r,n/2,e/2,o.P/2,0,2*o.P),t.fill(),a&&(t.shadowColor=s.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return nt(t,e,!0)}}function Se(t,e,n,i){const{width:r,height:s,centerX:a,centerY:l}=e,c=r/2,u=s/2;if(c<=0||u<=0)return!1;const h=(0,o.t)(n||0),f=i/2||0,d=Math.cos(h),p=Math.sin(h),g=Math.pow(d*(t.x-a)+p*(t.y-l),2),y=Math.pow(p*(t.x-a)-d*(t.y-l),2);return g/Math.pow(c+f,2)+y/Math.pow(u+f,2)<=1.0001}we.id="ellipseAnnotation",we.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:Object.assign({},Tt.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},we.defaultRoutes={borderColor:"color",backgroundColor:"color"},we.descriptors={label:{_fallback:!0}};class ke extends i.W_{inRange(t,e,n,i){const{x:o,y:r,x2:s,y2:a,width:l}=this.getProps(["x","y","x2","y2","width"],i),c=this.options.borderWidth;if("x"!==n&&"y"!==n)return g({x:t,y:e},this.getCenterPoint(i),l/2,c);const u=c/2,h="y"===n?{start:r,end:a,value:e}:{start:o,end:s,value:t};return h.value>=h.start-u&&h.value<=h.end+u}getCenterPoint(t){return m(this,t)}draw(t){const e=this.options,n=e.borderWidth;if(e.radius<.1)return;t.save(),t.fillStyle=e.backgroundColor,F(t,e);const i=L(t,e);z(t,this,this.centerX,this.centerY),i&&!I(e.pointStyle)&&(t.shadowColor=e.borderShadowColor,t.stroke()),t.restore(),e.borderWidth=n}resolveElementProperties(t,e){const n=tt(t,e);return n.initProperties=P(t,n,e,!0),n}}ke.id="pointAnnotation",ke.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},ke.defaultRoutes={borderColor:"color",backgroundColor:"color"};class Oe extends i.W_{inRange(t,e,n,i){if("x"!==n&&"y"!==n)return this.options.radius>=.1&&this.elements.length>1&&Pe(this.elements,t,e,i);const r=ht({x:t,y:e},this.getCenterPoint(i),(0,o.t)(-this.options.rotation)),s=this.elements.map((t=>"y"===n?t.bY:t.bX)),a=Math.min(...s),l=Math.max(...s);return r[n]>=a&&r[n]<=l}getCenterPoint(t){return m(this,t)}draw(t){const{elements:e,options:n}=this;t.save(),t.beginPath(),t.fillStyle=n.backgroundColor,F(t,n);const i=L(t,n);let o=!0;for(const r of e)o?(t.moveTo(r.x,r.y),o=!1):t.lineTo(r.x,r.y);t.closePath(),t.fill(),i&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,e){const n=tt(t,e),{sides:i,rotation:r}=e,s=[],a=2*o.P/i;let l=r*o.b3;for(let o=0;o<i;o++,l+=a){const i=Me(n,e,l);i.initProperties=P(t,n,e),s.push(i)}return n.elements=s,n}}function Me({centerX:t,centerY:e},{radius:n,borderWidth:i},o){const r=i/2,s=Math.sin(o),a=Math.cos(o),l={x:t+s*n,y:e-a*n};return{type:"point",optionScope:"point",properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:t+s*(n+r),bY:e-a*(n+r)}}}function Pe(t,e,n,i){let o=!1,r=t[t.length-1].getProps(["bX","bY"],i);for(const s of t){const t=s.getProps(["bX","bY"],i);t.bY>n!==r.bY>n&&e<(r.bX-t.bX)*(n-t.bY)/(r.bY-t.bY)+t.bX&&(o=!o),r=t}return o}Oe.id="polygonAnnotation",Oe.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},Oe.defaultRoutes={borderColor:"color",backgroundColor:"color"};const Ae={box:Tt,ellipse:we,label:Dt,line:te,point:ke,polygon:Oe};Object.keys(Ae).forEach((t=>{o.d.describe(`elements.${Ae[t].id}`,{_fallback:"plugins.annotation.common"})}));const Ee={update:Object.assign},Ce=dt.concat(xt),Te=(t,e)=>(0,o.i)(e)?$e(t,e):t,je=t=>"color"===t||"font"===t;function De(t="line"){return Ae[t]?t:(console.warn(`Unknown annotation type: '${t}', defaulting to 'line'`),"line")}function Ie(t,e,n,i){const r=Le(t,n.animations,i),s=e.annotations,a=ze(e.elements,s);for(let l=0;l<s.length;l++){const e=s[l],n=Ve(a,l,e.type),i=e.setContext(Be(t,n,e)),c=n.resolveElementProperties(t,i);c.skip=Re(c),"elements"in c&&(Fe(n,c.elements,i,r),delete c.elements),(0,o.h)(n.x)||Object.assign(n,c),Object.assign(n,c.initProperties),c.options=Ne(i),r.update(n,c)}}function Re(t){return isNaN(t.x)||isNaN(t.y)}function Le(t,e,n){return"reset"===n||"none"===n||"resize"===n?Ee:new i.FK(t,e)}function Fe(t,e,n,i){const o=t.elements||(t.elements=[]);o.length=e.length;for(let r=0;r<e.length;r++){const t=e[r],s=t.properties,a=Ve(o,r,t.type,t.initProperties),l=n[t.optionScope].override(t);s.options=Ne(l),i.update(a,s)}}function Ve(t,e,n,i){const o=Ae[De(n)];let r=t[e];return r&&r instanceof o||(r=t[e]=new o,Object.assign(r,i)),r}function Ne(t){const e=Ae[De(t.type)],n={};n.id=t.id,n.type=t.type,n.drawTime=t.drawTime,Object.assign(n,$e(t,e.defaults),$e(t,e.defaultRoutes));for(const i of Ce)n[i]=t[i];return n}function $e(t,e){const n={};for(const i of Object.keys(e)){const r=e[i],s=t[i];je(i)&&(0,o.b)(s)?n[i]=s.map((t=>Te(t,r))):n[i]=Te(s,r)}return n}function Be(t,e,n){return e.$context||(e.$context=Object.assign(Object.create(t.getContext()),{element:e,id:n.id,type:"annotation"}))}function ze(t,e){const n=e.length,i=t.length;if(i<n){const e=n-i;t.splice(i,0,...new Array(e))}else i>n&&t.splice(n,i-n);return t}var We="2.2.1";const He=new Map,Ue=dt.concat(xt);var qe={id:"annotation",version:We,beforeRegister(){b("chart.js","3.7",i.kL.version)},afterRegister(){i.kL.register(Ae)},afterUnregister(){i.kL.unregister(Ae)},beforeInit(t){He.set(t,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(t,e,n){const i=He.get(t),r=i.annotations=[];let s=n.annotations;(0,o.i)(s)?Object.keys(s).forEach((t=>{const e=s[t];(0,o.i)(e)&&(e.id=t,r.push(e))})):(0,o.b)(s)&&r.push(...s),kt(r,t.scales)},afterDataLimits(t,e){const n=He.get(t);St(t,e.scale,n.annotations.filter((t=>t.display&&t.adjustScaleRange)))},afterUpdate(t,e,n){const i=He.get(t);pt(t,i,n),Ie(t,i,n,e.mode),i.visibleElements=i.elements.filter((t=>!t.skip&&t.options.display)),_t(t,i,n)},beforeDatasetsDraw(t,e,n){Ye(t,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(t,e,n){Ye(t,"afterDatasetsDraw",n.clip)},beforeDraw(t,e,n){Ye(t,"beforeDraw",n.clip)},afterDraw(t,e,n){Ye(t,"afterDraw",n.clip)},beforeEvent(t,e,n){const i=He.get(t);gt(i,e.event,n)&&(e.changed=!0)},afterDestroy(t){He.delete(t)},_getState(t){return He.get(t)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:t=>!Ue.includes(t)&&"init"!==t,annotations:{_allKeys:!1,_fallback:(t,e)=>`elements.${Ae[De(e.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:je,_fallback:!0},_indexable:je}},additionalOptionScopes:[""]};function Ye(t,e,n){const{ctx:i,chartArea:r}=t,s=He.get(t);n&&(0,o.Y)(i,r);const a=Xe(s.visibleElements,e).sort(((t,e)=>t.element.options.z-e.element.options.z));for(const o of a)Ge(i,r,s,o);n&&(0,o.$)(i)}function Xe(t,e){const n=[];for(const i of t)if(i.options.drawTime===e&&n.push({element:i,main:!0}),i.elements&&i.elements.length)for(const t of i.elements)t.options.display&&t.options.drawTime===e&&n.push({element:t});return n}function Ge(t,e,n,i){const o=i.element;i.main?(wt(n,o,"beforeDraw"),o.draw(t,e),wt(n,o,"afterDraw")):o.draw(t,e)}},1131:function(t,e,n){"use strict";n.d(e,{Z:function(){return Y}});n(541),n(7658);var i=n(6494),o=n(3254),r=function(){if("undefined"!==typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),s={toTextLines:function(t){var e,n=[];t=[].concat(t);while(t.length)e=t.pop(),"string"===typeof e?n.unshift.apply(n,e.split("\n")):Array.isArray(e)?t.push.apply(t,e):(0,i.k)(t)||n.unshift(""+e);return n},textSize:function(t,e,n){var i,o=[].concat(e),r=o.length,s=t.font,a=0;for(t.font=n.string,i=0;i<r;++i)a=Math.max(t.measureText(o[i]).width,a);return t.font=s,{height:r*n.lineHeight,width:a}},bound:function(t,e,n){return Math.max(t,Math.min(e,n))},arrayDiff:function(t,e){var n,i,o,r,s=t.slice(),a=[];for(n=0,o=e.length;n<o;++n)r=e[n],i=s.indexOf(r),-1===i?a.push([r,1]):s.splice(i,1);for(n=0,o=s.length;n<o;++n)a.push([s[n],-1]);return a},rasterize:function(t){return Math.round(t*r)/r}};function a(t,e){var n=e.x,i=e.y;if(null===n)return{x:0,y:-1};if(null===i)return{x:1,y:0};var o=t.x-n,r=t.y-i,s=Math.sqrt(o*o+r*r);return{x:s?o/s:0,y:s?r/s:-1}}function l(t,e,n,i,o){switch(o){case"center":n=i=0;break;case"bottom":n=0,i=1;break;case"right":n=1,i=0;break;case"left":n=-1,i=0;break;case"top":n=0,i=-1;break;case"start":n=-n,i=-i;break;case"end":break;default:o*=Math.PI/180,n=Math.cos(o),i=Math.sin(o);break}return{x:t,y:e,vx:n,vy:i}}var c=0,u=1,h=2,f=4,d=8;function p(t,e,n){var i=c;return t<n.left?i|=u:t>n.right&&(i|=h),e<n.top?i|=d:e>n.bottom&&(i|=f),i}function g(t,e){var n,i,o,r=t.x0,s=t.y0,a=t.x1,l=t.y1,c=p(r,s,e),g=p(a,l,e);while(1){if(!(c|g)||c&g)break;n=c||g,n&d?(i=r+(a-r)*(e.top-s)/(l-s),o=e.top):n&f?(i=r+(a-r)*(e.bottom-s)/(l-s),o=e.bottom):n&h?(o=s+(l-s)*(e.right-r)/(a-r),i=e.right):n&u&&(o=s+(l-s)*(e.left-r)/(a-r),i=e.left),n===c?(r=i,s=o,c=p(r,s,e)):(a=i,l=o,g=p(a,l,e))}return{x0:r,x1:a,y0:s,y1:l}}function y(t,e){var n,i,o=e.anchor,r=t;return e.clamp&&(r=g(r,e.area)),"start"===o?(n=r.x0,i=r.y0):"end"===o?(n=r.x1,i=r.y1):(n=(r.x0+r.x1)/2,i=(r.y0+r.y1)/2),l(n,i,t.vx,t.vy,e.align)}var m={arc:function(t,e){var n=(t.startAngle+t.endAngle)/2,i=Math.cos(n),o=Math.sin(n),r=t.innerRadius,s=t.outerRadius;return y({x0:t.x+i*r,y0:t.y+o*r,x1:t.x+i*s,y1:t.y+o*s,vx:i,vy:o},e)},point:function(t,e){var n=a(t,e.origin),i=n.x*t.options.radius,o=n.y*t.options.radius;return y({x0:t.x-i,y0:t.y-o,x1:t.x+i,y1:t.y+o,vx:n.x,vy:n.y},e)},bar:function(t,e){var n=a(t,e.origin),i=t.x,o=t.y,r=0,s=0;return t.horizontal?(i=Math.min(t.x,t.base),r=Math.abs(t.base-t.x)):(o=Math.min(t.y,t.base),s=Math.abs(t.base-t.y)),y({x0:i,y0:o+s,x1:i+r,y1:o,vx:n.x,vy:n.y},e)},fallback:function(t,e){var n=a(t,e.origin);return y({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:n.x,vy:n.y},e)}},b=s.rasterize;function v(t){var e=t.borderWidth||0,n=t.padding,i=t.size.height,o=t.size.width,r=-o/2,s=-i/2;return{frame:{x:r-n.left-e,y:s-n.top-e,w:o+n.width+2*e,h:i+n.height+2*e},text:{x:r,y:s,w:o,h:i}}}function x(t,e){var n=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!n)return null;if(void 0!==n.xCenter&&void 0!==n.yCenter)return{x:n.xCenter,y:n.yCenter};var i=n.getBasePixel();return t.horizontal?{x:i,y:null}:{x:null,y:i}}function _(t){return t instanceof o.qi?m.arc:t instanceof o.od?m.point:t instanceof o.ZL?m.bar:m.fallback}function w(t,e,n,i,o,r){var s=Math.PI/2;if(r){var a=Math.min(r,o/2,i/2),l=e+a,c=n+a,u=e+i-a,h=n+o-a;t.moveTo(e,c),l<u&&c<h?(t.arc(l,c,a,-Math.PI,-s),t.arc(u,c,a,-s,0),t.arc(u,h,a,0,s),t.arc(l,h,a,s,Math.PI)):l<u?(t.moveTo(l,n),t.arc(u,c,a,-s,s),t.arc(l,c,a,s,Math.PI+s)):c<h?(t.arc(l,c,a,-Math.PI,0),t.arc(l,h,a,0,Math.PI)):t.arc(l,c,a,-Math.PI,Math.PI),t.closePath(),t.moveTo(e,n)}else t.rect(e,n,i,o)}function S(t,e,n){var i=n.backgroundColor,o=n.borderColor,r=n.borderWidth;(i||o&&r)&&(t.beginPath(),w(t,b(e.x)+r/2,b(e.y)+r/2,b(e.w)-r,b(e.h)-r,n.borderRadius),t.closePath(),i&&(t.fillStyle=i,t.fill()),o&&r&&(t.strokeStyle=o,t.lineWidth=r,t.lineJoin="miter",t.stroke()))}function k(t,e,n){var i=n.lineHeight,o=t.w,r=t.x,s=t.y+i/2;return"center"===e?r+=o/2:"end"!==e&&"right"!==e||(r+=o),{h:i,w:o,x:r,y:s}}function O(t,e,n){var i=t.shadowBlur,o=n.stroked,r=b(n.x),s=b(n.y),a=b(n.w);o&&t.strokeText(e,r,s,a),n.filled&&(i&&o&&(t.shadowBlur=0),t.fillText(e,r,s,a),i&&o&&(t.shadowBlur=i))}function M(t,e,n,i){var o,r=i.textAlign,s=i.color,a=!!s,l=i.font,c=e.length,u=i.textStrokeColor,h=i.textStrokeWidth,f=u&&h;if(c&&(a||f))for(n=k(n,r,l),t.font=l.string,t.textAlign=r,t.textBaseline="middle",t.shadowBlur=i.textShadowBlur,t.shadowColor=i.textShadowColor,a&&(t.fillStyle=s),f&&(t.lineJoin="round",t.lineWidth=h,t.strokeStyle=u),o=0,c=e.length;o<c;++o)O(t,e[o],{stroked:f,filled:a,w:n.w,x:n.x,y:n.y+n.h*o})}var P=function(t,e,n,i){var o=this;o._config=t,o._index=i,o._model=null,o._rects=null,o._ctx=e,o._el=n};(0,i.a4)(P.prototype,{_modelize:function(t,e,n,o){var r=this,a=r._index,l=(0,i.a0)((0,i.a)([n.font,{}],o,a)),c=(0,i.a)([n.color,i.d.color],o,a);return{align:(0,i.a)([n.align,"center"],o,a),anchor:(0,i.a)([n.anchor,"center"],o,a),area:o.chart.chartArea,backgroundColor:(0,i.a)([n.backgroundColor,null],o,a),borderColor:(0,i.a)([n.borderColor,null],o,a),borderRadius:(0,i.a)([n.borderRadius,0],o,a),borderWidth:(0,i.a)([n.borderWidth,0],o,a),clamp:(0,i.a)([n.clamp,!1],o,a),clip:(0,i.a)([n.clip,!1],o,a),color:c,display:t,font:l,lines:e,offset:(0,i.a)([n.offset,4],o,a),opacity:(0,i.a)([n.opacity,1],o,a),origin:x(r._el,o),padding:(0,i.E)((0,i.a)([n.padding,4],o,a)),positioner:_(r._el),rotation:(0,i.a)([n.rotation,0],o,a)*(Math.PI/180),size:s.textSize(r._ctx,e,l),textAlign:(0,i.a)([n.textAlign,"start"],o,a),textShadowBlur:(0,i.a)([n.textShadowBlur,0],o,a),textShadowColor:(0,i.a)([n.textShadowColor,c],o,a),textStrokeColor:(0,i.a)([n.textStrokeColor,c],o,a),textStrokeWidth:(0,i.a)([n.textStrokeWidth,0],o,a)}},update:function(t){var e,n,o,r=this,a=null,l=null,c=r._index,u=r._config,h=(0,i.a)([u.display,!0],t,c);h&&(e=t.dataset.data[c],n=(0,i.v)((0,i.Q)(u.formatter,[e,t]),e),o=(0,i.k)(n)?[]:s.toTextLines(n),o.length&&(a=r._modelize(h,o,u,t),l=v(a))),r._model=a,r._rects=l},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(t,e){var n,i=this,o=t.ctx,r=i._model,a=i._rects;this.visible()&&(o.save(),r.clip&&(n=r.area,o.beginPath(),o.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),o.clip()),o.globalAlpha=s.bound(0,r.opacity,1),o.translate(b(e.x),b(e.y)),o.rotate(r.rotation),S(o,a.frame,r),M(o,r.lines,a.text,r),o.restore())}});var A=Number.MIN_SAFE_INTEGER||-9007199254740991,E=Number.MAX_SAFE_INTEGER||9007199254740991;function C(t,e,n){var i=Math.cos(n),o=Math.sin(n),r=e.x,s=e.y;return{x:r+i*(t.x-r)-o*(t.y-s),y:s+o*(t.x-r)+i*(t.y-s)}}function T(t,e){var n,i,o,r,s,a=E,l=A,c=e.origin;for(n=0;n<t.length;++n)i=t[n],o=i.x-c.x,r=i.y-c.y,s=e.vx*o+e.vy*r,a=Math.min(a,s),l=Math.max(l,s);return{min:a,max:l}}function j(t,e){var n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i);return{vx:(e.x-t.x)/o,vy:(e.y-t.y)/o,origin:t,ln:o}}var D=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function I(t,e,n){var i=e.positioner(t,e),o=i.vx,r=i.vy;if(!o&&!r)return{x:i.x,y:i.y};var s=n.w,a=n.h,l=e.rotation,c=Math.abs(s/2*Math.cos(l))+Math.abs(a/2*Math.sin(l)),u=Math.abs(s/2*Math.sin(l))+Math.abs(a/2*Math.cos(l)),h=1/Math.max(Math.abs(o),Math.abs(r));return c*=o*h,u*=r*h,c+=e.offset*o,u+=e.offset*r,{x:i.x+c,y:i.y+u}}function R(t,e){var n,i,o,r;for(n=t.length-1;n>=0;--n)for(o=t[n].$layout,i=n-1;i>=0&&o._visible;--i)r=t[i].$layout,r._visible&&o._box.intersects(r._box)&&e(o,r);return t}function L(t){var e,n,i,o,r,s,a;for(e=0,n=t.length;e<n;++e)i=t[e],o=i.$layout,o._visible&&(a=new Proxy(i._el,{get:(t,e)=>t.getProps([e],!0)[e]}),r=i.geometry(),s=I(a,i.model(),r),o._box.update(s,r,i.rotation()));return R(t,(function(t,e){var n=t._hidable,i=e._hidable;n&&i||i?e._visible=!1:n&&(t._visible=!1)}))}(0,i.a4)(D.prototype,{center:function(){var t=this._rect;return{x:t.x+t.w/2,y:t.y+t.h/2}},update:function(t,e,n){this._rotation=n,this._rect={x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},contains:function(t){var e=this,n=1,i=e._rect;return t=C(t,e.center(),-e._rotation),!(t.x<i.x-n||t.y<i.y-n||t.x>i.x+i.w+2*n||t.y>i.y+i.h+2*n)},intersects:function(t){var e,n,i,o=this._points(),r=t._points(),s=[j(o[0],o[1]),j(o[0],o[3])];for(this._rotation!==t._rotation&&s.push(j(r[0],r[1]),j(r[0],r[3])),e=0;e<s.length;++e)if(n=T(o,s[e]),i=T(r,s[e]),n.max<i.min||i.max<n.min)return!1;return!0},_points:function(){var t=this,e=t._rect,n=t._rotation,i=t.center();return[C({x:e.x,y:e.y},i,n),C({x:e.x+e.w,y:e.y},i,n),C({x:e.x+e.w,y:e.y+e.h},i,n),C({x:e.x,y:e.y+e.h},i,n)]}});var F={prepare:function(t){var e,n,i,o,r,s=[];for(e=0,i=t.length;e<i;++e)for(n=0,o=t[e].length;n<o;++n)r=t[e][n],s.push(r),r.$layout={_box:new D,_hidable:!1,_visible:!0,_set:e,_idx:r._index};return s.sort((function(t,e){var n=t.$layout,i=e.$layout;return n._idx===i._idx?i._set-n._set:i._idx-n._idx})),this.update(s),s},update:function(t){var e,n,i,o,r,s=!1;for(e=0,n=t.length;e<n;++e)i=t[e],o=i.model(),r=i.$layout,r._hidable=o&&"auto"===o.display,r._visible=i.visible(),s|=r._hidable;s&&L(t)},lookup:function(t,e){var n,i;for(n=t.length-1;n>=0;--n)if(i=t[n].$layout,i&&i._visible&&i._box.contains(e))return t[n];return null},draw:function(t,e){var n,i,o,r,s,a;for(n=0,i=e.length;n<i;++n)o=e[n],r=o.$layout,r._visible&&(s=o.geometry(),a=I(o._el,o.model(),s),r._box.update(a,s,o.rotation()),o.draw(t,a))}},V=function(t){if((0,i.k)(t))return null;var e,n,o,r=t;if((0,i.i)(t))if((0,i.k)(t.label))if((0,i.k)(t.r))for(r="",e=Object.keys(t),o=0,n=e.length;o<n;++o)r+=(0!==o?", ":"")+e[o]+": "+t[e[o]];else r=t.r;else r=t.label;return""+r},N={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:V,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},$="$datalabels",B="$default";function z(t,e){var n,o,r=t.datalabels,s={},a=[];return!1===r?null:(!0===r&&(r={}),e=(0,i.a4)({},[e,r]),n=e.labels||{},o=Object.keys(n),delete e.labels,o.length?o.forEach((function(t){n[t]&&a.push((0,i.a4)({},[e,n[t],{_key:t}]))})):a.push(e),s=a.reduce((function(t,e){return(0,i.F)(e.listeners||{},(function(n,i){t[i]=t[i]||{},t[i][e._key||B]=n})),delete e.listeners,t}),{}),{labels:a,listeners:s})}function W(t,e,n,o){if(e){var r,s=n.$context,a=n.$groups;e[a._set]&&(r=e[a._set][a._key],r&&!0===(0,i.Q)(r,[s,o])&&(t[$]._dirty=!0,n.update(s)))}}function H(t,e,n,i,o){var r,s;(n||i)&&(n?i?n!==i&&(s=r=!0):s=!0:r=!0,s&&W(t,e.leave,n,o),r&&W(t,e.enter,i,o))}function U(t,e){var n,i,o=t[$],r=o._listeners;if(r.enter||r.leave){if("mousemove"===e.type)i=F.lookup(o._labels,e);else if("mouseout"!==e.type)return;n=o._hovered,o._hovered=i,H(t,r,n,i,e)}}function q(t,e){var n=t[$],i=n._listeners.click,o=i&&F.lookup(n._labels,e);o&&W(t,i,o,e)}var Y={id:"datalabels",defaults:N,beforeInit:function(t){t[$]={_actives:[]}},beforeUpdate:function(t){var e=t[$];e._listened=!1,e._listeners={},e._datasets=[],e._labels=[]},afterDatasetUpdate:function(t,e,n){var o,r,s,a,l,c,u,h,f=e.index,d=t[$],p=d._datasets[f]=[],g=t.isDatasetVisible(f),y=t.data.datasets[f],m=z(y,n),b=e.meta.data||[],v=t.ctx;for(v.save(),o=0,s=b.length;o<s;++o)if(u=b[o],u[$]=[],g&&u&&t.getDataVisibility(o)&&!u.skip)for(r=0,a=m.labels.length;r<a;++r)l=m.labels[r],c=l._key,h=new P(l,v,u,o),h.$groups={_set:f,_key:c||B},h.$context={active:!1,chart:t,dataIndex:o,dataset:y,datasetIndex:f},h.update(h.$context),u[$].push(h),p.push(h);v.restore(),(0,i.a4)(d._listeners,m.listeners,{merger:function(t,n,i){n[t]=n[t]||{},n[t][e.index]=i[t],d._listened=!0}})},afterUpdate:function(t){t[$]._labels=F.prepare(t[$]._datasets)},afterDatasetsDraw:function(t){F.draw(t,t[$]._labels)},beforeEvent:function(t,e){if(t[$]._listened){var n=e.event;switch(n.type){case"mousemove":case"mouseout":U(t,n);break;case"click":q(t,n);break}}},afterEvent:function(t){var e,n,i,o,r,a,l,c=t[$],u=c._actives,h=c._actives=t.getActiveElements(),f=s.arrayDiff(u,h);for(e=0,n=f.length;e<n;++e)if(r=f[e],r[1])for(l=r[0].element[$]||[],i=0,o=l.length;i<o;++i)a=l[i],a.$context.active=1===r[1],a.update(a.$context);(c._dirty||f.length)&&(F.update(c._labels),t.render()),delete c._dirty}}},9980:function(t,e,n){"use strict";var i=n(2034),o="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),r=Object.prototype.toString,s=Array.prototype.concat,a=Object.defineProperty,l=function(t){return"function"===typeof t&&"[object Function]"===r.call(t)},c=n(6049)(),u=a&&c,h=function(t,e,n,i){if(e in t)if(!0===i){if(t[e]===n)return}else if(!l(i)||!i())return;u?a(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n},f=function(t,e){var n=arguments.length>2?arguments[2]:{},r=i(e);o&&(r=s.call(r,Object.getOwnPropertySymbols(e)));for(var a=0;a<r.length;a+=1)h(t,r[a],e[r[a]],n[r[a]])};f.supportsDescriptors=!!u,t.exports=f},336:function(t){"use strict";function e(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),i=1;i<arguments.length;i++){var o=arguments[i];if(void 0!==o&&null!==o)for(var r=Object.keys(Object(o)),s=0,a=r.length;s<a;s++){var l=r[s],c=Object.getOwnPropertyDescriptor(o,l);void 0!==c&&c.enumerable&&(n[l]=o[l])}}return n}function n(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}t.exports={assign:e,polyfill:n}},2979:function(t,e,n){"use strict";var i=n(5037),o=Object.prototype.toString,r=Object.prototype.hasOwnProperty,s=function(t,e,n){for(var i=0,o=t.length;i<o;i++)r.call(t,i)&&(null==n?e(t[i],i,t):e.call(n,t[i],i,t))},a=function(t,e,n){for(var i=0,o=t.length;i<o;i++)null==n?e(t.charAt(i),i,t):e.call(n,t.charAt(i),i,t)},l=function(t,e,n){for(var i in t)r.call(t,i)&&(null==n?e(t[i],i,t):e.call(n,t[i],i,t))},c=function(t,e,n){if(!i(e))throw new TypeError("iterator must be a function");var r;arguments.length>=3&&(r=n),"[object Array]"===o.call(t)?s(t,e,r):"string"===typeof t?a(t,e,r):l(t,e,r)};t.exports=c},5847:function(t,e,n){"use strict";n(7658);var i="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,r=Object.prototype.toString,s="[object Function]";t.exports=function(t){var e=this;if("function"!==typeof e||r.call(e)!==s)throw new TypeError(i+e);for(var n,a=o.call(arguments,1),l=function(){if(this instanceof n){var i=e.apply(this,a.concat(o.call(arguments)));return Object(i)===i?i:this}return e.apply(t,a.concat(o.call(arguments)))},c=Math.max(0,e.length-a.length),u=[],h=0;h<c;h++)u.push("$"+h);if(n=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(l),e.prototype){var f=function(){};f.prototype=e.prototype,n.prototype=new f,f.prototype=null}return n}},9148:function(t,e,n){"use strict";var i=n(5847);t.exports=Function.prototype.bind||i},8692:function(t,e,n){"use strict";var i;n(3767),n(8585),n(8696);var o=SyntaxError,r=Function,s=TypeError,a=function(t){try{return r('"use strict"; return ('+t+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(C){l=null}var c=function(){throw new s},u=l?function(){try{return c}catch(t){try{return l(arguments,"callee").get}catch(e){return c}}}():c,h=n(2763)(),f=Object.getPrototypeOf||function(t){return t.__proto__},d={},p="undefined"===typeof Uint8Array?i:f(Uint8Array),g={"%AggregateError%":"undefined"===typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":h?f([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"===typeof Atomics?i:Atomics,"%BigInt%":"undefined"===typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":r,"%GeneratorFunction%":d,"%Int8Array%":"undefined"===typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h?f(f([][Symbol.iterator]())):i,"%JSON%":"object"===typeof JSON?JSON:i,"%Map%":"undefined"===typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&h?f((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?i:Promise,"%Proxy%":"undefined"===typeof Proxy?i:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&h?f((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h?f(""[Symbol.iterator]()):i,"%Symbol%":h?Symbol:i,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":p,"%TypeError%":s,"%Uint8Array%":"undefined"===typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?i:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?i:WeakSet};try{null.error}catch(C){var y=f(f(C));g["%Error.prototype%"]=y}var m=function t(e){var n;if("%AsyncFunction%"===e)n=a("async function () {}");else if("%GeneratorFunction%"===e)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=a("async function* () {}");else if("%AsyncGenerator%"===e){var i=t("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(n=f(o.prototype))}return g[e]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n(9148),x=n(5769),_=v.call(Function.call,Array.prototype.concat),w=v.call(Function.apply,Array.prototype.splice),S=v.call(Function.call,String.prototype.replace),k=v.call(Function.call,String.prototype.slice),O=v.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,A=function(t){var e=k(t,0,1),n=k(t,-1);if("%"===e&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var i=[];return S(t,M,(function(t,e,n,o){i[i.length]=n?S(o,P,"$1"):e||t})),i},E=function(t,e){var n,i=t;if(x(b,i)&&(n=b[i],i="%"+n[0]+"%"),x(g,i)){var r=g[i];if(r===d&&(r=m(i)),"undefined"===typeof r&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:r}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new s('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=A(t),i=n.length>0?n[0]:"",r=E("%"+i+"%",e),a=r.name,c=r.value,u=!1,h=r.alias;h&&(i=h[0],w(n,_([0,1],h)));for(var f=1,d=!0;f<n.length;f+=1){var p=n[f],y=k(p,0,1),m=k(p,-1);if(('"'===y||"'"===y||"`"===y||'"'===m||"'"===m||"`"===m)&&y!==m)throw new o("property names with quotes must have matching quotes");if("constructor"!==p&&d||(u=!0),i+="."+p,a="%"+i+"%",x(g,a))c=g[a];else if(null!=c){if(!(p in c)){if(!e)throw new s("base intrinsic for "+t+" exists, but the property is not available.");return}if(l&&f+1>=n.length){var b=l(c,p);d=!!b,c=d&&"get"in b&&!("originalValue"in b.get)?b.get:c[p]}else d=x(c,p),c=c[p];d&&!u&&(g[a]=c)}}return c}},2810:function(t,e,n){"use strict";var i=n(8692),o=i("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch(r){o=null}t.exports=o},6049:function(t,e,n){"use strict";var i=n(8692),o=i("%Object.defineProperty%",!0),r=function(){if(o)try{return o({},"a",{value:1}),!0}catch(t){return!1}return!1};r.hasArrayLengthDefineBug=function(){if(!r())return null;try{return 1!==o([],"length",{value:1}).length}catch(t){return!0}},t.exports=r},2763:function(t,e,n){"use strict";var i="undefined"!==typeof Symbol&&Symbol,o=n(3994);t.exports=function(){return"function"===typeof i&&("function"===typeof Symbol&&("symbol"===typeof i("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},3994:function(t){"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var i=42;for(e in t[e]=i,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(t,e);if(r.value!==i||!0!==r.enumerable)return!1}return!0}},2582:function(t,e,n){"use strict";var i=n(3994);t.exports=function(){return i()&&!!Symbol.toStringTag}},5769:function(t,e,n){"use strict";var i=n(9148);t.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},1923:function(t){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},2773:function(t,e,n){"use strict";var i=n(2582)(),o=n(5477),r=o("Object.prototype.toString"),s=function(t){return!(i&&t&&"object"===typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===r(t)},a=function(t){return!!s(t)||null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Array]"!==r(t)&&"[object Function]"===r(t.callee)},l=function(){return s(arguments)}();s.isLegacyArguments=a,t.exports=l?s:a},5037:function(t){"use strict";var e,n,i=Function.prototype.toString,o="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof o&&"function"===typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,e)}catch(v){v!==n&&(o=null)}else o=null;var r=/^\s*class\b/,s=function(t){try{var e=i.call(t);return r.test(e)}catch(n){return!1}},a=function(t){try{return!s(t)&&(i.call(t),!0)}catch(e){return!1}},l=Object.prototype.toString,c="[object Object]",u="[object Function]",h="[object GeneratorFunction]",f="[object HTMLAllCollection]",d="[object HTML document.all class]",p="[object HTMLCollection]",g="function"===typeof Symbol&&!!Symbol.toStringTag,y=!(0 in[,]),m=function(){return!1};if("object"===typeof document){var b=document.all;l.call(b)===l.call(document.all)&&(m=function(t){if((y||!t)&&("undefined"===typeof t||"object"===typeof t))try{var e=l.call(t);return(e===f||e===d||e===p||e===c)&&null==t("")}catch(n){}return!1})}t.exports=o?function(t){if(m(t))return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;try{o(t,null,e)}catch(i){if(i!==n)return!1}return!s(t)&&a(t)}:function(t){if(m(t))return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;if(g)return a(t);if(s(t))return!1;var e=l.call(t);return!(e!==u&&e!==h&&!/^\[object HTML/.test(e))&&a(t)}},4784:function(t,e,n){"use strict";var i,o=Object.prototype.toString,r=Function.prototype.toString,s=/^\s*(?:function)?\*/,a=n(2582)(),l=Object.getPrototypeOf,c=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(t){}};t.exports=function(t){if("function"!==typeof t)return!1;if(s.test(r.call(t)))return!0;if(!a){var e=o.call(t);return"[object GeneratorFunction]"===e}if(!l)return!1;if("undefined"===typeof i){var n=c();i=!!n&&l(n)}return l(t)===i}},301:function(t){"use strict";t.exports=function(t){return t!==t}},1185:function(t,e,n){"use strict";var i=n(1542),o=n(9980),r=n(301),s=n(8040),a=n(6431),l=i(s(),Number);o(l,{getPolyfill:s,implementation:r,shim:a}),t.exports=l},8040:function(t,e,n){"use strict";var i=n(301);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:i}},6431:function(t,e,n){"use strict";var i=n(9980),o=n(8040);t.exports=function(){var t=o();return i(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},8300:function(t,e,n){"use strict";var i=n(2979),o=n(4647),r=n(5477),s=r("Object.prototype.toString"),a=n(2582)(),l=n(2810),c="undefined"===typeof globalThis?n.g:globalThis,u=o(),h=r("Array.prototype.indexOf",!0)||function(t,e){for(var n=0;n<t.length;n+=1)if(t[n]===e)return n;return-1},f=r("String.prototype.slice"),d={},p=Object.getPrototypeOf;a&&l&&p&&i(u,(function(t){var e=new c[t];if(Symbol.toStringTag in e){var n=p(e),i=l(n,Symbol.toStringTag);if(!i){var o=p(n);i=l(o,Symbol.toStringTag)}d[t]=i.get}}));var g=function(t){var e=!1;return i(d,(function(n,i){if(!e)try{e=n.call(t)===i}catch(o){}})),e};t.exports=function(t){if(!t||"object"!==typeof t)return!1;if(!a||!(Symbol.toStringTag in t)){var e=f(s(t),8,-1);return h(u,e)>-1}return!!l&&g(t)}},7489:function(t){"use strict";var e=function(t){return t!==t};t.exports=function(t,n){return 0===t&&0===n?1/t===1/n:t===n||!(!e(t)||!e(n))}},7004:function(t,e,n){"use strict";var i=n(9980),o=n(1542),r=n(7489),s=n(3344),a=n(5212),l=o(s(),Object);i(l,{getPolyfill:s,implementation:r,shim:a}),t.exports=l},3344:function(t,e,n){"use strict";var i=n(7489);t.exports=function(){return"function"===typeof Object.is?Object.is:i}},5212:function(t,e,n){"use strict";var i=n(3344),o=n(9980);t.exports=function(){var t=i();return o(Object,{is:t},{is:function(){return Object.is!==t}}),t}},5564:function(t,e,n){"use strict";var i;if(n(7658),!Object.keys){var o=Object.prototype.hasOwnProperty,r=Object.prototype.toString,s=n(9833),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),c=a.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"===typeof window)return!1;for(var t in window)try{if(!f["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"===typeof window[t])try{h(window[t])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(t){if("undefined"===typeof window||!d)return h(t);try{return h(t)}catch(e){return!1}};i=function(t){var e=null!==t&&"object"===typeof t,n="[object Function]"===r.call(t),i=s(t),a=e&&"[object String]"===r.call(t),h=[];if(!e&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var f=c&&n;if(a&&t.length>0&&!o.call(t,0))for(var d=0;d<t.length;++d)h.push(String(d));if(i&&t.length>0)for(var g=0;g<t.length;++g)h.push(String(g));else for(var y in t)f&&"prototype"===y||!o.call(t,y)||h.push(String(y));if(l)for(var m=p(t),b=0;b<u.length;++b)m&&"constructor"===u[b]||!o.call(t,u[b])||h.push(u[b]);return h}}t.exports=i},2034:function(t,e,n){"use strict";var i=Array.prototype.slice,o=n(9833),r=Object.keys,s=r?function(t){return r(t)}:n(5564),a=Object.keys;s.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return o(t)?a(i.call(t)):a(t)})}else Object.keys=s;return Object.keys||s},t.exports=s},9833:function(t){"use strict";var e=Object.prototype.toString;t.exports=function(t){var n=e.call(t),i="[object Arguments]"===n;return i||(i="[object Array]"!==n&&null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),i}},2051:function(t){t.exports=function(t){return t&&"object"===typeof t&&"function"===typeof t.copy&&"function"===typeof t.fill&&"function"===typeof t.readUInt8}},606:function(t,e,n){"use strict";n(3767),n(8585),n(8696);var i=n(2773),o=n(4784),r=n(2591),s=n(8300);function a(t){return t.call.bind(t)}var l="undefined"!==typeof BigInt,c="undefined"!==typeof Symbol,u=a(Object.prototype.toString),h=a(Number.prototype.valueOf),f=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(l)var p=a(BigInt.prototype.valueOf);if(c)var g=a(Symbol.prototype.valueOf);function y(t,e){if("object"!==typeof t)return!1;try{return e(t),!0}catch(n){return!1}}function m(t){return"undefined"!==typeof Promise&&t instanceof Promise||null!==t&&"object"===typeof t&&"function"===typeof t.then&&"function"===typeof t.catch}function b(t){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):s(t)||B(t)}function v(t){return"Uint8Array"===r(t)}function x(t){return"Uint8ClampedArray"===r(t)}function _(t){return"Uint16Array"===r(t)}function w(t){return"Uint32Array"===r(t)}function S(t){return"Int8Array"===r(t)}function k(t){return"Int16Array"===r(t)}function O(t){return"Int32Array"===r(t)}function M(t){return"Float32Array"===r(t)}function P(t){return"Float64Array"===r(t)}function A(t){return"BigInt64Array"===r(t)}function E(t){return"BigUint64Array"===r(t)}function C(t){return"[object Map]"===u(t)}function T(t){return"undefined"!==typeof Map&&(C.working?C(t):t instanceof Map)}function j(t){return"[object Set]"===u(t)}function D(t){return"undefined"!==typeof Set&&(j.working?j(t):t instanceof Set)}function I(t){return"[object WeakMap]"===u(t)}function R(t){return"undefined"!==typeof WeakMap&&(I.working?I(t):t instanceof WeakMap)}function L(t){return"[object WeakSet]"===u(t)}function F(t){return L(t)}function V(t){return"[object ArrayBuffer]"===u(t)}function N(t){return"undefined"!==typeof ArrayBuffer&&(V.working?V(t):t instanceof ArrayBuffer)}function $(t){return"[object DataView]"===u(t)}function B(t){return"undefined"!==typeof DataView&&($.working?$(t):t instanceof DataView)}e.isArgumentsObject=i,e.isGeneratorFunction=o,e.isTypedArray=s,e.isPromise=m,e.isArrayBufferView=b,e.isUint8Array=v,e.isUint8ClampedArray=x,e.isUint16Array=_,e.isUint32Array=w,e.isInt8Array=S,e.isInt16Array=k,e.isInt32Array=O,e.isFloat32Array=M,e.isFloat64Array=P,e.isBigInt64Array=A,e.isBigUint64Array=E,C.working="undefined"!==typeof Map&&C(new Map),e.isMap=T,j.working="undefined"!==typeof Set&&j(new Set),e.isSet=D,I.working="undefined"!==typeof WeakMap&&I(new WeakMap),e.isWeakMap=R,L.working="undefined"!==typeof WeakSet&&L(new WeakSet),e.isWeakSet=F,V.working="undefined"!==typeof ArrayBuffer&&V(new ArrayBuffer),e.isArrayBuffer=N,$.working="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView&&$(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=B;var z="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function W(t){return"[object SharedArrayBuffer]"===u(t)}function H(t){return"undefined"!==typeof z&&("undefined"===typeof W.working&&(W.working=W(new z)),W.working?W(t):t instanceof z)}function U(t){return"[object AsyncFunction]"===u(t)}function q(t){return"[object Map Iterator]"===u(t)}function Y(t){return"[object Set Iterator]"===u(t)}function X(t){return"[object Generator]"===u(t)}function G(t){return"[object WebAssembly.Module]"===u(t)}function J(t){return y(t,h)}function K(t){return y(t,f)}function Q(t){return y(t,d)}function Z(t){return l&&y(t,p)}function tt(t){return c&&y(t,g)}function et(t){return J(t)||K(t)||Q(t)||Z(t)||tt(t)}function nt(t){return"undefined"!==typeof Uint8Array&&(N(t)||H(t))}e.isSharedArrayBuffer=H,e.isAsyncFunction=U,e.isMapIterator=q,e.isSetIterator=Y,e.isGeneratorObject=X,e.isWebAssemblyCompiledModule=G,e.isNumberObject=J,e.isStringObject=K,e.isBooleanObject=Q,e.isBigIntObject=Z,e.isSymbolObject=tt,e.isBoxedPrimitive=et,e.isAnyArrayBuffer=nt,["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},9242:function(t,e,n){n(7658);var i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++)n[e[i]]=Object.getOwnPropertyDescriptor(t,e[i]);return n},o=/%[sdj%]/g;e.format=function(t){if(!S(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(l(arguments[n]));return e.join(" ")}n=1;for(var i=arguments,r=i.length,s=String(t).replace(o,(function(t){if("%%"===t)return"%";if(n>=r)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return t}})),a=i[n];n<r;a=i[++n])x(a)||!P(a)?s+=" "+a:s+=" "+l(a);return s},e.deprecate=function(t,n){if("undefined"!==typeof process&&!0===process.noDeprecation)return t;if("undefined"===typeof process)return function(){return e.deprecate(t,n).apply(this,arguments)};var i=!1;function o(){if(!i){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation?console.trace(n):console.error(n),i=!0}return t.apply(this,arguments)}return o};var r={},s=/^$/;if({NODE_ENV:"production",BASE_URL:"/ToneAPI_webclient/"}.NODE_DEBUG){var a={NODE_ENV:"production",BASE_URL:"/ToneAPI_webclient/"}.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}function l(t,n){var i={seen:[],stylize:u};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),v(n)?i.showHidden=n:n&&e._extend(i,n),O(i.showHidden)&&(i.showHidden=!1),O(i.depth)&&(i.depth=2),O(i.colors)&&(i.colors=!1),O(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=c),f(i,t,i.depth)}function c(t,e){var n=l.styles[e];return n?"["+l.colors[n][0]+"m"+t+"["+l.colors[n][1]+"m":t}function u(t,e){return t}function h(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}function f(t,n,i){if(t.customInspect&&n&&C(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(i,t);return S(o)||(o=f(t,o,i)),o}var r=d(t,n);if(r)return r;var s=Object.keys(n),a=h(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),E(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(n);if(0===s.length){if(C(n)){var l=n.name?": "+n.name:"";return t.stylize("[Function"+l+"]","special")}if(M(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(A(n))return t.stylize(Date.prototype.toString.call(n),"date");if(E(n))return p(n)}var c,u="",v=!1,x=["{","}"];if(b(n)&&(v=!0,x=["[","]"]),C(n)){var _=n.name?": "+n.name:"";u=" [Function"+_+"]"}return M(n)&&(u=" "+RegExp.prototype.toString.call(n)),A(n)&&(u=" "+Date.prototype.toUTCString.call(n)),E(n)&&(u=" "+p(n)),0!==s.length||v&&0!=n.length?i<0?M(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=v?g(t,n,i,a,s):s.map((function(e){return y(t,n,i,a,e,v)})),t.seen.pop(),m(c,u,x)):x[0]+u+x[1]}function d(t,e){if(O(e))return t.stylize("undefined","undefined");if(S(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return w(e)?t.stylize(""+e,"number"):v(e)?t.stylize(""+e,"boolean"):x(e)?t.stylize("null","null"):void 0}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function g(t,e,n,i,o){for(var r=[],s=0,a=e.length;s<a;++s)L(e,String(s))?r.push(y(t,e,n,i,String(s),!0)):r.push("");return o.forEach((function(o){o.match(/^\d+$/)||r.push(y(t,e,n,i,o,!0))})),r}function y(t,e,n,i,o,r){var s,a,l;if(l=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]},l.get?a=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(a=t.stylize("[Setter]","special")),L(i,o)||(s="["+o+"]"),a||(t.seen.indexOf(l.value)<0?(a=x(n)?f(t,l.value,null):f(t,l.value,n-1),a.indexOf("\n")>-1&&(a=r?a.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n"))):a=t.stylize("[Circular]","special")),O(s)){if(r&&o.match(/^\d+$/))return a;s=JSON.stringify(""+o),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function m(t,e,n){var i=t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return i>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function b(t){return Array.isArray(t)}function v(t){return"boolean"===typeof t}function x(t){return null===t}function _(t){return null==t}function w(t){return"number"===typeof t}function S(t){return"string"===typeof t}function k(t){return"symbol"===typeof t}function O(t){return void 0===t}function M(t){return P(t)&&"[object RegExp]"===j(t)}function P(t){return"object"===typeof t&&null!==t}function A(t){return P(t)&&"[object Date]"===j(t)}function E(t){return P(t)&&("[object Error]"===j(t)||t instanceof Error)}function C(t){return"function"===typeof t}function T(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function j(t){return Object.prototype.toString.call(t)}function D(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!r[t])if(s.test(t)){var n=process.pid;r[t]=function(){var i=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,i)}}else r[t]=function(){};return r[t]},e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=n(606),e.isArray=b,e.isBoolean=v,e.isNull=x,e.isNullOrUndefined=_,e.isNumber=w,e.isString=S,e.isSymbol=k,e.isUndefined=O,e.isRegExp=M,e.types.isRegExp=M,e.isObject=P,e.isDate=A,e.types.isDate=A,e.isError=E,e.types.isNativeError=E,e.isFunction=C,e.isPrimitive=T,e.isBuffer=n(2051);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var t=new Date,e=[D(t.getHours()),D(t.getMinutes()),D(t.getSeconds())].join(":");return[t.getDate(),I[t.getMonth()],e].join(" ")}function L(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",R(),e.format.apply(e,arguments))},e.inherits=n(1923),e._extend=function(t,e){if(!e||!P(e))return t;var n=Object.keys(e),i=n.length;while(i--)t[n[i]]=e[n[i]];return t};var F="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function V(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}function N(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n]);var i=e.pop();if("function"!==typeof i)throw new TypeError("The last argument must be of type Function");var o=this,r=function(){return i.apply(o,arguments)};t.apply(this,e).then((function(t){process.nextTick(r.bind(null,null,t))}),(function(t){process.nextTick(V.bind(null,t,r))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}e.promisify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');if(F&&t[F]){var e=t[F];if("function"!==typeof e)throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,F,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,i=new Promise((function(t,i){e=t,n=i})),o=[],r=0;r<arguments.length;r++)o.push(arguments[r]);o.push((function(t,i){t?n(t):e(i)}));try{t.apply(this,o)}catch(s){n(s)}return i}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),F&&Object.defineProperty(e,F,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=F,e.callbackify=N},89:function(t,e){"use strict";e.Z=(t,e)=>{const n=t.__vccOpts||t;for(const[i,o]of e)n[i]=o;return n}},6368:function(t,e,n){"use strict";n(7658),n(541);var i=n(3396),o=n(3862),r=n(7139);function s(t){return 0!==t&&(!(!Array.isArray(t)||0!==t.length)||!t)}function a(t){return(...e)=>!t(...e)}function l(t,e){void 0===t&&(t="undefined"),null===t&&(t="null"),!1===t&&(t="false");const n=t.toString().toLowerCase();return-1!==n.indexOf(e.trim())}function c(t,e,n,i){return e?t.filter((t=>l(i(t,n),e))).sort(((t,e)=>i(t,n).length-i(e,n).length)):t}function u(t){return t.filter((t=>!t.$isLabel))}function h(t,e){return n=>n.reduce(((n,i)=>i[t]&&i[t].length?(n.push({$groupLabel:i[e],$isLabel:!0}),n.concat(i[t])):n),[])}function f(t,e,n,i,o){return r=>r.map((r=>{if(!r[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const s=c(r[n],t,e,o);return s.length?{[i]:r[i],[n]:s}:[]}))}const d=(...t)=>e=>t.reduce(((t,e)=>e(t)),e);var p={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return s(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||0===this.modelValue?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let n=this.options.concat();return n=this.internalSearch?this.groupValues?this.filterAndFlat(n,e,this.label):c(n,e,this.label,this.customLabel):this.groupValues?h(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(a(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&("bottom"===this.tagPosition?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map((t=>t[this.trackBy])):this.internalValue},optionKeys(){const t=this.groupValues?this.flatAndStrip(this.options):this.options;return t.map((t=>this.customLabel(t,this.label).toString().toLowerCase()))},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:0===this.internalValue.length?null:this.internalValue[0]},filterAndFlat(t,e,n){return d(f(e,n,this.groupValues,this.groupLabel,this.customLabel),h(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return d(h(this.groupValues,this.groupLabel),u)(t)},updateSearch(t){this.search=t},isExistingOption(t){return!!this.options&&this.optionKeys.indexOf(t)>-1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(s(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return s(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect)this.selectGroup(t);else if(!(-1!==this.blockKeys.indexOf(e)||this.disabled||t.$isDisabled||t.$isLabel)&&(!this.max||!this.multiple||this.internalValue.length!==this.max)&&("Tab"!==e||this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{const n=this.isSelected(t);if(n)return void("Tab"!==e&&this.removeElement(t));this.multiple?this.$emit("update:modelValue",this.internalValue.concat([t])):this.$emit("update:modelValue",t),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find((e=>e[this.groupLabel]===t.$groupLabel));if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const t=this.internalValue.filter((t=>-1===e[this.groupValues].indexOf(t)));this.$emit("update:modelValue",t)}else{let t=e[this.groupValues].filter((t=>!(this.isOptionDisabled(t)||this.isSelected(t))));this.max&&t.splice(this.max-this.internalValue.length),this.$emit("select",t,this.id),this.$emit("update:modelValue",this.internalValue.concat(t))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every((t=>this.isSelected(t)||this.isOptionDisabled(t)))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled)return;if(t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1)return void this.deactivate();const n="object"===typeof t?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const t=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",t)}else this.$emit("update:modelValue",null);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){-1===this.blockKeys.indexOf("Delete")&&0===this.search.length&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&0===this.pointer&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick((()=>this.$refs.search&&this.$refs.search.focus()))):this.preventAutofocus||"undefined"!==typeof this.$el&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?"undefined"!==typeof this.$refs.search&&this.$refs.search.blur():"undefined"!==typeof this.$el&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if("undefined"===typeof window)return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom,n=e>this.maxHeight;n||e>t||"below"===this.openDirection||"bottom"===this.openDirection?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},g={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const n=this.options.find((t=>t[this.groupLabel]===e.$groupLabel));return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}},y={name:"vue-multiselect",mixins:[p,g],props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||0===this.singleValue)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return"above"===this.openDirection||"top"===this.openDirection||"below"!==this.openDirection&&"bottom"!==this.openDirection&&"above"===this.preferredOpenDirection},showSearchInput(){return this.searchable&&(!this.hasSingleSelectedSlot||!this.visibleSingleValue&&0!==this.visibleSingleValue||this.isOpen)}}};const m={ref:"tags",class:"multiselect__tags"},b={class:"multiselect__tags-wrap"},v={class:"multiselect__spinner"},x={key:0},_={class:"multiselect__option"},w={class:"multiselect__option"},S=(0,i.Uk)("No elements found. Consider changing the search query."),k={class:"multiselect__option"},O=(0,i.Uk)("List is empty.");function M(t,e,n,s,a,l){return(0,i.wg)(),(0,i.j4)("div",{tabindex:t.searchable?-1:n.tabindex,class:[{"multiselect--active":t.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":l.isAbove,"multiselect--has-options-group":l.hasOptionGroup},"multiselect"],onFocus:e[14]||(e[14]=e=>t.activate()),onBlur:e[15]||(e[15]=e=>!t.searchable&&t.deactivate()),onKeydown:[e[16]||(e[16]=(0,o.D2)((0,o.iM)((e=>t.pointerForward()),["self","prevent"]),["down"])),e[17]||(e[17]=(0,o.D2)((0,o.iM)((e=>t.pointerBackward()),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=(0,o.D2)((0,o.iM)((e=>t.addPointerElement(e)),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=(0,o.D2)((e=>t.deactivate()),["esc"])),role:"combobox","aria-owns":"listbox-"+t.id},[(0,i.WI)(t.$slots,"caret",{toggle:t.toggle},(()=>[(0,i.Wm)("div",{onMousedown:e[1]||(e[1]=(0,o.iM)((e=>t.toggle()),["prevent","stop"])),class:"multiselect__select"},null,32)])),(0,i.WI)(t.$slots,"clear",{search:t.search}),(0,i.Wm)("div",m,[(0,i.WI)(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:l.visibleValues,isOpen:t.isOpen},(()=>[(0,i.wy)((0,i.Wm)("div",b,[((0,i.wg)(!0),(0,i.j4)(i.HY,null,(0,i.Ko)(l.visibleValues,((e,n)=>(0,i.WI)(t.$slots,"tag",{option:e,search:t.search,remove:t.removeElement},(()=>[((0,i.wg)(),(0,i.j4)("span",{class:"multiselect__tag",key:n},[(0,i.Wm)("span",{textContent:(0,r.zw)(t.getOptionLabel(e))},null,8,["textContent"]),(0,i.Wm)("i",{tabindex:"1",onKeypress:(0,o.D2)((0,o.iM)((n=>t.removeElement(e)),["prevent"]),["enter"]),onMousedown:(0,o.iM)((n=>t.removeElement(e)),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])))),256))],512),[[o.F8,l.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>n.limit?(0,i.WI)(t.$slots,"limit",{key:0},(()=>[(0,i.Wm)("strong",{class:"multiselect__strong",textContent:(0,r.zw)(n.limitText(t.internalValue.length-n.limit))},null,8,["textContent"])])):(0,i.kq)("v-if",!0)])),(0,i.Wm)(o.uT,{name:"multiselect__loading"},{default:(0,i.w5)((()=>[(0,i.WI)(t.$slots,"loading",{},(()=>[(0,i.wy)((0,i.Wm)("div",v,null,512),[[o.F8,n.loading]])]))])),_:3}),t.searchable?((0,i.wg)(),(0,i.j4)("input",{key:0,ref:"search",name:n.name,id:t.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:t.placeholder,style:l.inputStyle,value:t.search,disabled:n.disabled,tabindex:n.tabindex,onInput:e[2]||(e[2]=e=>t.updateSearch(e.target.value)),onFocus:e[3]||(e[3]=(0,o.iM)((e=>t.activate()),["prevent"])),onBlur:e[4]||(e[4]=(0,o.iM)((e=>t.deactivate()),["prevent"])),onKeyup:e[5]||(e[5]=(0,o.D2)((e=>t.deactivate()),["esc"])),onKeydown:[e[6]||(e[6]=(0,o.D2)((0,o.iM)((e=>t.pointerForward()),["prevent"]),["down"])),e[7]||(e[7]=(0,o.D2)((0,o.iM)((e=>t.pointerBackward()),["prevent"]),["up"])),e[9]||(e[9]=(0,o.D2)((0,o.iM)((e=>t.removeLastElement()),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=(0,o.D2)((0,o.iM)((e=>t.addPointerElement(e)),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):(0,i.kq)("v-if",!0),l.isSingleLabelVisible?((0,i.wg)(),(0,i.j4)("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=(0,o.iM)(((...e)=>t.toggle&&t.toggle(...e)),["prevent"]))},[(0,i.WI)(t.$slots,"singleLabel",{option:l.singleValue},(()=>[(0,i.Uk)((0,r.zw)(t.currentOptionLabel),1)]))],32)):(0,i.kq)("v-if",!0),l.isPlaceholderVisible?((0,i.wg)(),(0,i.j4)("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=(0,o.iM)(((...e)=>t.toggle&&t.toggle(...e)),["prevent"]))},[(0,i.WI)(t.$slots,"placeholder",{},(()=>[(0,i.Uk)((0,r.zw)(t.placeholder),1)]))],32)):(0,i.kq)("v-if",!0)],512),(0,i.Wm)(o.uT,{name:"multiselect"},{default:(0,i.w5)((()=>[(0,i.wy)((0,i.Wm)("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...e)=>t.activate&&t.activate(...e)),tabindex:"-1",onMousedown:e[13]||(e[13]=(0,o.iM)((()=>{}),["prevent"])),style:{maxHeight:t.optimizedHeight+"px"},ref:"list"},[(0,i.Wm)("ul",{class:"multiselect__content",style:l.contentStyle,role:"listbox",id:"listbox-"+t.id},[(0,i.WI)(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?((0,i.wg)(),(0,i.j4)("li",x,[(0,i.Wm)("span",_,[(0,i.WI)(t.$slots,"maxElements",{},(()=>[(0,i.Uk)("Maximum of "+(0,r.zw)(t.max)+" options selected. First remove a selected option to select another.",1)]))])])):(0,i.kq)("v-if",!0),!t.max||t.internalValue.length<t.max?((0,i.wg)(!0),(0,i.j4)(i.HY,{key:1},(0,i.Ko)(t.filteredOptions,((e,n)=>((0,i.wg)(),(0,i.j4)("li",{class:"multiselect__element",key:n,id:t.id+"-"+n,role:e&&(e.$isLabel||e.$isDisabled)?null:"option"},[e&&(e.$isLabel||e.$isDisabled)?(0,i.kq)("v-if",!0):((0,i.wg)(),(0,i.j4)("span",{key:0,class:[t.optionHighlight(n,e),"multiselect__option"],onClick:(0,o.iM)((n=>t.select(e)),["stop"]),onMouseenter:(0,o.iM)((e=>t.pointerSet(n)),["self"]),"data-select":e&&e.isTag?t.tagPlaceholder:l.selectLabelText,"data-selected":l.selectedLabelText,"data-deselect":l.deselectLabelText},[(0,i.WI)(t.$slots,"option",{option:e,search:t.search,index:n},(()=>[(0,i.Wm)("span",null,(0,r.zw)(t.getOptionLabel(e)),1)]))],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),e&&(e.$isLabel||e.$isDisabled)?((0,i.wg)(),(0,i.j4)("span",{key:1,"data-select":t.groupSelect&&l.selectGroupLabelText,"data-deselect":t.groupSelect&&l.deselectGroupLabelText,class:[t.groupHighlight(n,e),"multiselect__option"],onMouseenter:(0,o.iM)((e=>t.groupSelect&&t.pointerSet(n)),["self"]),onMousedown:(0,o.iM)((n=>t.selectGroup(e)),["prevent"])},[(0,i.WI)(t.$slots,"option",{option:e,search:t.search,index:n},(()=>[(0,i.Wm)("span",null,(0,r.zw)(t.getOptionLabel(e)),1)]))],42,["data-select","data-deselect","onMouseenter","onMousedown"])):(0,i.kq)("v-if",!0)],8,["id","role"])))),128)):(0,i.kq)("v-if",!0),(0,i.wy)((0,i.Wm)("li",null,[(0,i.Wm)("span",w,[(0,i.WI)(t.$slots,"noResult",{search:t.search},(()=>[S]))])],512),[[o.F8,n.showNoResults&&0===t.filteredOptions.length&&t.search&&!n.loading]]),(0,i.wy)((0,i.Wm)("li",null,[(0,i.Wm)("span",k,[(0,i.WI)(t.$slots,"noOptions",{},(()=>[O]))])],512),[[o.F8,n.showNoOptions&&(0===t.options.length||!0===l.hasOptionGroup&&0===t.filteredOptions.length)&&!t.search&&!n.loading]]),(0,i.WI)(t.$slots,"afterList")],12,["id"])],36),[[o.F8,t.isOpen]])])),_:3})],42,["tabindex","aria-owns"])}y.render=M,e["ZP"]=y},2591:function(t,e,n){"use strict";var i=n(2979),o=n(4647),r=n(5477),s=n(2810),a=r("Object.prototype.toString"),l=n(2582)(),c="undefined"===typeof globalThis?n.g:globalThis,u=o(),h=r("String.prototype.slice"),f={},d=Object.getPrototypeOf;l&&s&&d&&i(u,(function(t){if("function"===typeof c[t]){var e=new c[t];if(Symbol.toStringTag in e){var n=d(e),i=s(n,Symbol.toStringTag);if(!i){var o=d(n);i=s(o,Symbol.toStringTag)}f[t]=i.get}}}));var p=function(t){var e=!1;return i(f,(function(n,i){if(!e)try{var o=n.call(t);o===i&&(e=o)}catch(r){}})),e},g=n(8300);t.exports=function(t){return!!g(t)&&(l&&Symbol.toStringTag in t?p(t):h(a(t),8,-1))}},4647:function(t,e,n){"use strict";var i=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"===typeof globalThis?n.g:globalThis;t.exports=function(){for(var t=[],e=0;e<i.length;e++)"function"===typeof o[i[e]]&&(t[t.length]=i[e]);return t}},3254:function(t,e,n){"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function r(t){var e=o(t,"string");return"symbol"===i(e)?e:String(e)}function s(t,e,n){return e=r(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{FK:function(){return d},qi:function(){return _n},ZL:function(){return qn},kL:function(){return fn},jI:function(){return tt},W_:function(){return oe},De:function(){return ei},jn:function(){return In},f$:function(){return Ci},od:function(){return Ln},ho:function(){return rt},u:function(){return _i}});n(7658),n(541);var a=n(6494);
/*!
* Chart.js v4.2.1
* https://www.chartjs.org
* (c) 2023 Chart.js Contributors
* Released under the MIT License
*/
class l{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const o=e.listeners[i],r=e.duration;o.forEach((i=>i({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(n-e.start,r)})))}_refresh(){this._request||(this._running=!0,this._request=a.r.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const o=n.items;let r,s=o.length-1,a=!1;for(;s>=0;--s)r=o[s],r._active?(r._total>n.duration&&(n.duration=r._total),r.tick(t),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),o.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var c=new l;const u="transparent",h={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=(0,a.c)(t||u),o=i.valid&&(0,a.c)(e||u);return o&&o.valid?o.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class f{constructor(t,e,n,i){const o=e[n];i=(0,a.a)([t.to,i,o,t.from]);const r=(0,a.a)([t.from,o,i]);this._active=!0,this._fn=t.fn||h[t.type||typeof r],this._easing=a.e[t.easing]||a.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,r=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=(0,a.a)([t.to,e,i,t.from]),this._from=(0,a.a)([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,o=this._from,r=this._loop,s=this._to;let a;if(this._active=o!==s&&(r||e<n),!this._active)return this._target[i]=s,void this._notify(!0);e<0?this._target[i]=o:(a=e/n%2,a=r&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(o,s,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let i=0;i<n.length;i++)n[i][e]()}}class d{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,a.i)(t))return;const e=Object.keys(a.d.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const o=t[i];if(!(0,a.i)(o))return;const r={};for(const t of e)r[t]=o[t];((0,a.b)(o.properties)&&o.properties||[i]).forEach((t=>{t!==i&&n.has(t)||n.set(t,r)}))}))}_animateOptions(t,e){const n=e.options,i=g(t,n);if(!i)return[];const o=this._createAnimations(i,n);return n.$shared&&p(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),o}_createAnimations(t,e){const n=this._properties,i=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),s=Date.now();let a;for(a=r.length-1;a>=0;--a){const l=r[a];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let u=o[l];const h=n.get(l);if(u){if(h&&u.active()){u.update(h,c,s);continue}u.cancel()}h&&h.duration?(o[l]=u=new f(h,t,l,c),i.push(u)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(c.add(this._chart,n),!0):void 0}}function p(t,e){const n=[],i=Object.keys(e);for(let o=0;o<i.length;o++){const e=t[i[o]];e&&e.active()&&n.push(e.wait())}return Promise.all(n)}function g(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}function y(t,e){const n=t&&t.options||{},i=n.reverse,o=void 0===n.min?e:0,r=void 0===n.max?e:0;return{start:i?r:o,end:i?o:r}}function m(t,e,n){if(!1===n)return!1;const i=y(t,n),o=y(e,n);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}function b(t){let e,n,i,o;return(0,a.i)(t)?(e=t.top,n=t.right,i=t.bottom,o=t.left):e=n=i=o=t,{top:e,right:n,bottom:i,left:o,disabled:!1===t}}function v(t,e){const n=[],i=t._getSortedDatasetMetas(e);let o,r;for(o=0,r=i.length;o<r;++o)n.push(i[o].index);return n}function x(t,e,n,i={}){const o=t.keys,r="single"===i.mode;let s,l,c,u;if(null!==e){for(s=0,l=o.length;s<l;++s){if(c=+o[s],c===n){if(i.all)continue;break}u=t.values[c],(0,a.g)(u)&&(r||0===e||(0,a.s)(e)===(0,a.s)(u))&&(e+=u)}return e}}function _(t){const e=Object.keys(t),n=new Array(e.length);let i,o,r;for(i=0,o=e.length;i<o;++i)r=e[i],n[i]={x:r,y:t[r]};return n}function w(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function S(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function k(t){const{min:e,max:n,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}function O(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function M(t,e,n,i){for(const o of e.getMatchingVisibleMetas(i).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function P(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:r,vScale:s,index:a}=i,l=r.axis,c=s.axis,u=S(r,s,i),h=e.length;let f;for(let d=0;d<h;++d){const t=e[d],{[l]:n,[c]:r}=t,h=t._stacks||(t._stacks={});f=h[c]=O(o,u,n),f[a]=r,f._top=M(f,s,!0,i.type),f._bottom=M(f,s,!1,i.type);const p=f._visualValues||(f._visualValues={});p[a]=r}}function A(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function E(t,e){return(0,a.j)(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function C(t,e,n){return(0,a.j)(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function T(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n],void 0!==e[i]._visualValues&&void 0!==e[i]._visualValues[n]&&delete e[i]._visualValues[n]}}}const j=t=>"reset"===t||"none"===t,D=(t,e)=>e?t:Object.assign({},t),I=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:v(n,!0),values:null};class R{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=w(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&T(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,o=e.xAxisID=(0,a.v)(n.xAxisID,A(t,"x")),r=e.yAxisID=(0,a.v)(n.yAxisID,A(t,"y")),s=e.rAxisID=(0,a.v)(n.rAxisID,A(t,"r")),l=e.indexAxis,c=e.iAxisID=i(l,o,r,s),u=e.vAxisID=i(l,r,o,s);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(s),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&(0,a.u)(this._data,this),t._stacked&&T(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if((0,a.i)(e))this._data=_(e);else if(n!==e){if(n){(0,a.u)(n,this);const t=this._cachedMeta;T(t),t._parsed=[]}e&&Object.isExtensible(e)&&(0,a.l)(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const o=e._stacked;e._stacked=w(e.vScale,e),e.stack!==n.stack&&(i=!0,T(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&P(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:o,_stacked:r}=n,s=o.axis;let l,c,u,h=0===t&&e===i.length||n._sorted,f=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,u=i;else{u=(0,a.b)(i[t])?this.parseArrayData(n,i,t,e):(0,a.i)(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const o=()=>null===c[s]||f&&c[s]<f[s];for(l=0;l<e;++l)n._parsed[l+t]=c=u[l],h&&(o()&&(h=!1),f=c);n._sorted=h}r&&P(this,u)}parsePrimitiveData(t,e,n,i){const{iScale:o,vScale:r}=t,s=o.axis,a=r.axis,l=o.getLabels(),c=o===r,u=new Array(i);let h,f,d;for(h=0,f=i;h<f;++h)d=h+n,u[h]={[s]:c||o.parse(l[d],d),[a]:r.parse(e[d],d)};return u}parseArrayData(t,e,n,i){const{xScale:o,yScale:r}=t,s=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=e[c],s[a]={x:o.parse(u[0],c),y:r.parse(u[1],c)};return s}parseObjectData(t,e,n,i){const{xScale:o,yScale:r}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let u,h,f,d;for(u=0,h=i;u<h;++u)f=u+n,d=e[f],c[u]={x:o.parse((0,a.f)(d,s),f),y:r.parse((0,a.f)(d,l),f)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,o=this._cachedMeta,r=e[t.axis],s={keys:v(i,!0),values:e._stacks[t.axis]._visualValues};return x(s,r,o.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const o=n[e.axis];let r=null===o?NaN:o;const s=i&&n._stacks[e.axis];i&&s&&(i.values=s,r=x(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,r=i.length,s=this._getOtherScale(t),l=I(e,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:h}=k(s);let f,d;function p(){d=i[f];const e=d[s.axis];return!(0,a.g)(d[t.axis])||u>e||h<e}for(f=0;f<r;++f)if(!p()&&(this.updateRangeFromParsed(c,t,d,l),o))break;if(o)for(f=r-1;f>=0;--f)if(!p()){this.updateRangeFromParsed(c,t,d,l);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,o,r;for(i=0,o=e.length;i<o;++i)r=e[i][t.axis],(0,a.g)(r)&&n.push(r);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=b((0,a.v)(this.options.clip,m(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],o=e.chartArea,r=[],s=this._drawStart||0,a=this._drawCount||i.length-s,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,o,s,a),c=s;c<s+a;++c){const e=i[c];e.hidden||(e.active&&l?r.push(e):e.draw(t,o))}for(c=0;c<r.length;++c)r[c].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=C(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=E(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,o=this._cachedDataOpts,r=t+"-"+e,s=o[r],l=this.enableOptionSharing&&(0,a.h)(n);if(s)return D(s,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),h=i?[`${t}Hover`,"hover",t,""]:[t,""],f=c.getOptionScopes(this.getDataset(),u),d=Object.keys(a.d.elements[t]),p=()=>this.getContext(n,i,e),g=c.resolveNamedOptions(f,d,p,h);return g.$shared&&(g.$shared=l,o[r]=Object.freeze(D(g,l))),g}_resolveAnimations(t,e,n){const i=this.chart,o=this._cachedDataOpts,r=`animation-${e}`,s=o[r];if(s)return s;let a;if(!1!==i.options.animation){const i=this.chart.config,o=i.datasetAnimationScopeKeys(this._type,e),r=i.getOptionScopes(this.getDataset(),o);a=i.createResolver(r,this.getContext(t,n,e))}const l=new d(i,a&&a.animations);return a&&a._cacheable&&(o[r]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||j(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,o=this.getSharedOptions(n),r=this.includeOptions(e,o)||o!==i;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:r}}updateElement(t,e,n,i){j(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!j(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const o=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[s,a,l]of this._syncList)this[s](a,l);this._syncList=[];const i=n.length,o=e.length,r=Math.min(o,i);r&&this.parse(0,r),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,e,n=!0){const i=this._cachedMeta,o=i.data,r=t+e;let s;const a=t=>{for(t.length+=e,s=t.length-1;s>=r;s--)t[s]=t[s-e]};for(a(o),s=t;s<r;++s)o[s]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&T(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function L(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,o=n.length;e<o;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=(0,a._)(i.sort(((t,e)=>t-e)))}return t._cache.$bar}function F(t){const e=t.iScale,n=L(e,t.type);let i,o,r,s,l=e._length;const c=()=>{32767!==r&&-32768!==r&&((0,a.h)(s)&&(l=Math.min(l,Math.abs(r-s)||l)),s=r)};for(i=0,o=n.length;i<o;++i)r=e.getPixelForValue(n[i]),c();for(s=void 0,i=0,o=e.ticks.length;i<o;++i)r=e.getPixelForTick(i),c();return l}function V(t,e,n,i){const o=n.barThickness;let r,s;return(0,a.k)(o)?(r=e.min*n.categoryPercentage,s=n.barPercentage):(r=o*i,s=1),{chunk:r/i,ratio:s,start:e.pixels[t]-r/2}}function N(t,e,n,i){const o=e.pixels,r=o[t];let s=t>0?o[t-1]:null,a=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===s&&(s=r-(null===a?e.end-e.start:a-r)),null===a&&(a=r+r-s);const c=r-(r-Math.min(s,a))/2*l,u=Math.abs(a-s)/2*l;return{chunk:u/i,ratio:n.barPercentage,start:c}}function $(t,e,n,i){const o=n.parse(t[0],i),r=n.parse(t[1],i),s=Math.min(o,r),a=Math.max(o,r);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:r,min:s,max:a}}function B(t,e,n,i){return(0,a.b)(t)?$(t,e,n,i):e[n.axis]=n.parse(t,i),e}function z(t,e,n,i){const o=t.iScale,r=t.vScale,s=o.getLabels(),a=o===r,l=[];let c,u,h,f;for(c=n,u=n+i;c<u;++c)f=e[c],h={},h[o.axis]=a||o.parse(s[c],c),l.push(B(f,h,r,c));return l}function W(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function H(t,e,n){return 0!==t?(0,a.s)(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function U(t){let e,n,i,o,r;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(o="end",r="start"):(o="start",r="end"),{start:n,end:i,reverse:e,top:o,bottom:r}}function q(t,e,n,i){let o=e.borderSkipped;const r={};if(!o)return void(t.borderSkipped=r);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:s,end:a,reverse:l,top:c,bottom:u}=U(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?o=c:(n._bottom||0)===i?o=u:(r[Y(u,s,a,l)]=!0,o=c)),r[Y(o,s,a,l)]=!0,t.borderSkipped=r}function Y(t,e,n,i){return i?(t=X(t,e,n),t=G(t,n,e)):t=G(t,e,n),t}function X(t,e,n){return t===e?n:t===n?e:t}function G(t,e,n){return"start"===t?e:"end"===t?n:t}function J(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}s(R,"defaults",{}),s(R,"datasetElementType",null),s(R,"dataElementType",null);class K extends R{parsePrimitiveData(t,e,n,i){return z(t,e,n,i)}parseArrayData(t,e,n,i){return z(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:o,vScale:r}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c="x"===o.axis?s:l,u="x"===r.axis?s:l,h=[];let f,d,p,g;for(f=n,d=n+i;f<d;++f)g=e[f],p={},p[o.axis]=o.parse((0,a.f)(g,c),f),h.push(B((0,a.f)(g,u),p,r,f));return h}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const o=n._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,o=this.getParsed(t),r=o._custom,s=W(r)?"["+r.start+", "+r.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const o="reset"===i,{index:r,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),c=s.isHorizontal(),u=this._getRuler(),{sharedOptions:h,includeOptions:f}=this._getSharedOptions(e,i);for(let d=e;d<e+n;d++){const e=this.getParsed(d),n=o||(0,a.k)(e[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(d),p=this._calculateBarIndexPixels(d,u),g=(e._stacks||{})[s.axis],y={horizontal:c,base:n.base,enableBorderRadius:!g||W(e._custom)||r===g._top||r===g._bottom,x:c?n.head:p.center,y:c?p.center:n.head,height:c?p.size:Math.abs(n.size),width:c?Math.abs(n.size):p.size};f&&(y.options=h||this.resolveDataElementOptions(d,t[d].active?"active":i));const m=y.options||t[d].options;q(y,m,g,r),J(y,m,u.ratio),this.updateElement(t[d],d,y,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=n.options.stacked,r=[],s=t=>{const n=t.controller.getParsed(e),i=n&&n[t.vScale.axis];if((0,a.k)(i)||isNaN(i))return!0};for(const a of i)if((void 0===e||!s(a))&&((!1===o||-1===r.indexOf(a.stack)||void 0===o&&void 0===a.stack)&&r.push(a.stack),a.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),o=void 0!==e?i.indexOf(e):-1;return-1===o?i.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let o,r;for(o=0,r=e.data.length;o<r;++o)i.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const s=t.barThickness,a=s||F(e);return{min:a,pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:i},options:{base:o,minBarLength:r}}=this,s=o||0,l=this.getParsed(t),c=l._custom,u=W(c);let h,f,d=l[e.axis],p=0,g=n?this.applyStack(e,l,n):d;g!==d&&(p=g-d,g=d),u&&(d=c.barStart,g=c.barEnd-c.barStart,0!==d&&(0,a.s)(d)!==(0,a.s)(c.barEnd)&&(p=0),p+=d);const y=(0,a.k)(o)||u?p:o;let m=e.getPixelForValue(y);if(h=this.chart.getDataVisibility(t)?e.getPixelForValue(p+g):m,f=h-m,Math.abs(f)<r){f=H(f,e,s)*r,d===s&&(m-=f/2);const t=e.getPixelForDecimal(0),o=e.getPixelForDecimal(1),a=Math.min(t,o),c=Math.max(t,o);m=Math.max(Math.min(m,c),a),h=m+f,n&&!u&&(l._stacks[e.axis]._visualValues[i]=e.getValueForPixel(h)-e.getValueForPixel(m))}if(m===e.getPixelForValue(s)){const t=(0,a.s)(f)*e.getLineWidthForValue(s)/2;m+=t,f-=t}return{size:f,base:m,head:h,center:h+f/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,o=i.skipNull,r=(0,a.v)(i.maxBarThickness,1/0);let s,l;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,a="flex"===i.barThickness?N(t,e,i,n):V(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);s=a.start+a.chunk*c+a.chunk/2,l=Math.min(r,a.chunk*a.ratio)}else s=n.getPixelForValue(this.getParsed(t)[n.axis],t),l=Math.min(r,e.min*e.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let o=0;for(;o<i;++o)null!==this.getParsed(o)[e.axis]&&n[o].draw(this._ctx)}}s(K,"id","bar"),s(K,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),s(K,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Q extends R{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const o=super.parsePrimitiveData(t,e,n,i);for(let r=0;r<o.length;r++)o[r]._custom=this.resolveDataElementOptions(r+n).radius;return o}parseArrayData(t,e,n,i){const o=super.parseArrayData(t,e,n,i);for(let r=0;r<o.length;r++){const t=e[n+r];o[r]._custom=(0,a.v)(t[2],this.resolveDataElementOptions(r+n).radius)}return o}parseObjectData(t,e,n,i){const o=super.parseObjectData(t,e,n,i);for(let r=0;r<o.length;r++){const t=e[n+r];o[r]._custom=(0,a.v)(t&&t.r&&+t.r,this.resolveDataElementOptions(r+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:o}=e,r=this.getParsed(t),s=i.getLabelForValue(r.x),a=o.getLabelForValue(r.y),l=r._custom;return{label:n[t]||"",value:"("+s+", "+a+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:s}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(e,i),c=r.axis,u=s.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!o&&this.getParsed(h),f={},d=f[c]=o?r.getPixelForDecimal(.5):r.getPixelForValue(n[c]),p=f[u]=o?s.getBasePixel():s.getPixelForValue(n[u]);f.skip=isNaN(d)||isNaN(p),l&&(f.options=a||this.resolveDataElementOptions(h,e.active?"active":i),o&&(f.options.radius=0)),this.updateElement(e,h,f,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return"active"!==e&&(i.radius=0),i.radius+=(0,a.v)(n&&n._custom,o),i}}function Z(t,e,n){let i=1,o=1,r=0,s=0;if(e<a.T){const l=t,c=l+e,u=Math.cos(l),h=Math.sin(l),f=Math.cos(c),d=Math.sin(c),p=(t,e,i)=>(0,a.p)(t,l,c,!0)?1:Math.max(e,e*n,i,i*n),g=(t,e,i)=>(0,a.p)(t,l,c,!0)?-1:Math.min(e,e*n,i,i*n),y=p(0,u,f),m=p(a.H,h,d),b=g(a.P,u,f),v=g(a.P+a.H,h,d);i=(y-b)/2,o=(m-v)/2,r=-(y+b)/2,s=-(m+v)/2}return{ratioX:i,ratioY:o,offsetX:r,offsetY:s}}s(Q,"id","bubble"),s(Q,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),s(Q,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});class tt extends R{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let o,r,s=t=>+n[t];if((0,a.i)(n[t])){const{key:t="value"}=this._parsing;s=e=>+(0,a.f)(n[e],t)}for(o=t,r=t+e;o<r;++o)i._parsed[o]=s(o)}}_getRotation(){return(0,a.t)(this.options.rotation-90)}_getCircumference(){return(0,a.t)(this.options.circumference)}_getRotationExtents(){let t=a.T,e=-a.T;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const i=this.chart.getDatasetMeta(n).controller,o=i._getRotation(),r=i._getCircumference();t=Math.min(t,o),e=Math.max(e,o+r)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,o=i.data,r=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,s=Math.max((Math.min(n.width,n.height)-r)/2,0),l=Math.min((0,a.m)(this.options.cutout,s),1),c=this._getRingWeight(this.index),{circumference:u,rotation:h}=this._getRotationExtents(),{ratioX:f,ratioY:d,offsetX:p,offsetY:g}=Z(h,u,l),y=(n.width-r)/f,m=(n.height-r)/d,b=Math.max(Math.min(y,m)/2,0),v=(0,a.n)(this.options.radius,b),x=Math.max(v*l,0),_=(v-x)/this._getVisibleDatasetWeightTotal();this.offsetX=p*v,this.offsetY=g*v,i.total=this.calculateTotal(),this.outerRadius=v-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/a.T)}updateElements(t,e,n,i){const o="reset"===i,r=this.chart,s=r.chartArea,a=r.options,l=a.animation,c=(s.left+s.right)/2,u=(s.top+s.bottom)/2,h=o&&l.animateScale,f=h?0:this.innerRadius,d=h?0:this.outerRadius,{sharedOptions:p,includeOptions:g}=this._getSharedOptions(e,i);let y,m=this._getRotation();for(y=0;y<e;++y)m+=this._circumference(y,o);for(y=e;y<e+n;++y){const e=this._circumference(y,o),n=t[y],r={x:c+this.offsetX,y:u+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:d,innerRadius:f};g&&(r.options=p||this.resolveDataElementOptions(y,n.active?"active":i)),m+=e,this.updateElement(n,y,r,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(o))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?a.T*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=(0,a.o)(e._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,o,r,s,a;if(!t)for(i=0,o=n.data.datasets.length;i<o;++i)if(n.isDatasetVisible(i)){r=n.getDatasetMeta(i),t=r.data,s=r.controller;break}if(!t)return 0;for(i=0,o=t.length;i<o;++i)a=s.resolveDataElementOptions(i),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max((0,a.v)(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}s(tt,"id","doughnut"),s(tt,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),s(tt,"descriptors",{_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t}),s(tt,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:i}}=t.legend.options;return e.labels.map(((e,o)=>{const r=t.getDatasetMeta(0),s=r.controller.getStyle(o);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:i,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(o),index:o}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}});class et extends R{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=e,r=this.chart._animationsDisabled;let{start:s,count:l}=(0,a.q)(e,i,r);this._drawStart=s,this._drawCount=l,(0,a.w)(e)&&(s=0,l=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!r,options:c},t),this.updateElements(i,s,l,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:h}=this._getSharedOptions(e,i),f=r.axis,d=s.axis,{spanGaps:p,segment:g}=this.options,y=(0,a.x)(p)?p:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||o||"none"===i,b=e+n,v=t.length;let x=e>0&&this.getParsed(e-1);for(let _=0;_<v;++_){const n=t[_],p=m?n:{};if(_<e||_>=b){p.skip=!0;continue}const v=this.getParsed(_),w=(0,a.k)(v[d]),S=p[f]=r.getPixelForValue(v[f],_),k=p[d]=o||w?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,v,l):v[d],_);p.skip=isNaN(S)||isNaN(k)||w,p.stop=_>0&&Math.abs(v[f]-x[f])>y,g&&(p.parsed=v,p.raw=c.data[_]),h&&(p.options=u||this.resolveDataElementOptions(_,n.active?"active":i)),m||this.updateElement(n,_,p,i),x=v}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const o=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}s(et,"id","line"),s(et,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),s(et,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class nt extends R{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=(0,a.o)(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,e,n,i){return a.y.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(i/2,0),r=Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0),s=(o-r)/t.getVisibleDatasetCount();this.outerRadius=o-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(t,e,n,i){const o="reset"===i,r=this.chart,s=r.options,l=s.animation,c=this._cachedMeta.rScale,u=c.xCenter,h=c.yCenter,f=c.getIndexAngle(0)-.5*a.P;let d,p=f;const g=360/this.countVisibleElements();for(d=0;d<e;++d)p+=this._computeAngle(d,i,g);for(d=e;d<e+n;d++){const e=t[d];let n=p,s=p+this._computeAngle(d,i,g),a=r.getDataVisibility(d)?c.getDistanceFromCenterForValue(this.getParsed(d).r):0;p=s,o&&(l.animateScale&&(a=0),l.animateRotate&&(n=s=f));const y={x:u,y:h,innerRadius:0,outerRadius:a,startAngle:n,endAngle:s,options:this.resolveDataElementOptions(d,e.active?"active":i)};this.updateElement(e,d,y,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++})),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?(0,a.t)(this.resolveDataElementOptions(t,e).angle||n):0}}s(nt,"id","polarArea"),s(nt,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),s(nt,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:i}}=t.legend.options;return e.labels.map(((e,o)=>{const r=t.getDatasetMeta(0),s=r.controller.getStyle(o);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:i,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(o),index:o}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class it extends tt{}s(it,"id","pie"),s(it,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class ot extends R{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return a.y.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],o=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const r={_loop:!0,_fullLoop:o.length===i.length,options:e};this.updateElement(n,void 0,r,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const o=this._cachedMeta.rScale,r="reset"===i;for(let s=e;s<e+n;s++){const e=t[s],n=this.resolveDataElementOptions(s,e.active?"active":i),a=o.getPointPositionForValue(s,this.getParsed(s).r),l=r?o.xCenter:a.x,c=r?o.yCenter:a.y,u={x:l,y:c,angle:a.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,s,u,i)}}}s(ot,"id","radar"),s(ot,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),s(ot,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class rt extends R{getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:o}=e,r=this.getParsed(t),s=i.getLabelForValue(r.x),a=o.getLabelForValue(r.y);return{label:n[t]||"",value:"("+s+", "+a+")"}}update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:o,count:r}=(0,a.q)(e,n,i);if(this._drawStart=o,this._drawCount=r,(0,a.w)(e)&&(o=0,r=n.length),this.options.showLine){const{dataset:o,_dataset:r}=e;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!r._decimated,o.points=n;const s=this.resolveDatasetElementOptions(t);s.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:s},t)}this.updateElements(n,o,r,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(e,i),h=this.getSharedOptions(u),f=this.includeOptions(i,h),d=r.axis,p=s.axis,{spanGaps:g,segment:y}=this.options,m=(0,a.x)(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===i;let v=e>0&&this.getParsed(e-1);for(let x=e;x<e+n;++x){const e=t[x],n=this.getParsed(x),u=b?e:{},g=(0,a.k)(n[p]),_=u[d]=r.getPixelForValue(n[d],x),w=u[p]=o||g?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,n,l):n[p],x);u.skip=isNaN(_)||isNaN(w)||g,u.stop=x>0&&Math.abs(n[d]-v[d])>m,y&&(u.parsed=n,u.raw=c.data[x]),f&&(u.options=h||this.resolveDataElementOptions(x,e.active?"active":i)),b||this.updateElement(e,x,u,i),v=n}this.updateSharedOptions(h,i,u)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const o=e[0].size(this.resolveDataElementOptions(0)),r=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,o,r)/2}}s(rt,"id","scatter"),s(rt,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),s(rt,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});function st(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class at{static override(t){Object.assign(at.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return st()}parse(){return st()}format(){return st()}add(){return st()}diff(){return st()}startOf(){return st()}endOf(){return st()}}var lt={_date:at};function ct(t,e,n,i){const{controller:o,data:r,_sorted:s}=t,l=o._cachedMeta.iScale;if(l&&e===l.axis&&"r"!==e&&s&&r.length){const t=l._reversePixels?a.A:a.B;if(!i)return t(r,e,n);if(o._sharedOptions){const i=r[0],o="function"===typeof i.getRange&&i.getRange(e);if(o){const i=t(r,e,n-o),s=t(r,e,n+o);return{lo:i.lo,hi:s.hi}}}}return{lo:0,hi:r.length-1}}function ut(t,e,n,i,o){const r=t.getSortedVisibleDatasetMetas(),s=n[e];for(let a=0,l=r.length;a<l;++a){const{index:t,data:n}=r[a],{lo:l,hi:c}=ct(r[a],e,s,o);for(let e=l;e<=c;++e){const o=n[e];o.skip||i(o,t,e)}}}function ht(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const o=e?Math.abs(t.x-i.x):0,r=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function ft(t,e,n,i,o){const r=[];if(!o&&!t.isPointInArea(e))return r;const s=function(n,s,l){(o||(0,a.C)(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&r.push({element:n,datasetIndex:s,index:l})};return ut(t,n,e,s,!0),r}function dt(t,e,n,i){let o=[];function r(t,n,r){const{startAngle:s,endAngle:l}=t.getProps(["startAngle","endAngle"],i),{angle:c}=(0,a.D)(t,{x:e.x,y:e.y});(0,a.p)(c,s,l)&&o.push({element:t,datasetIndex:n,index:r})}return ut(t,n,e,r),o}function pt(t,e,n,i,o,r){let s=[];const a=ht(n);let l=Number.POSITIVE_INFINITY;function c(n,c,u){const h=n.inRange(e.x,e.y,o);if(i&&!h)return;const f=n.getCenterPoint(o),d=!!r||t.isPointInArea(f);if(!d&&!h)return;const p=a(e,f);p<l?(s=[{element:n,datasetIndex:c,index:u}],l=p):p===l&&s.push({element:n,datasetIndex:c,index:u})}return ut(t,n,e,c),s}function gt(t,e,n,i,o,r){return r||t.isPointInArea(e)?"r"!==n||i?pt(t,e,n,i,o,r):dt(t,e,n,o):[]}function yt(t,e,n,i,o){const r=[],s="x"===n?"inXRange":"inYRange";let a=!1;return ut(t,n,e,((t,i,l)=>{t[s](e[n],o)&&(r.push({element:t,datasetIndex:i,index:l}),a=a||t.inRange(e.x,e.y,o))})),i&&!a?[]:r}var mt={evaluateInteractionItems:ut,modes:{index(t,e,n,i){const o=(0,a.z)(e,t),r=n.axis||"x",s=n.includeInvisible||!1,l=n.intersect?ft(t,o,r,i,s):gt(t,o,r,!1,i,s),c=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=l[0].index,n=t.data[e];n&&!n.skip&&c.push({element:n,datasetIndex:t.index,index:e})})),c):[]},dataset(t,e,n,i){const o=(0,a.z)(e,t),r=n.axis||"xy",s=n.includeInvisible||!1;let l=n.intersect?ft(t,o,r,i,s):gt(t,o,r,!1,i,s);if(l.length>0){const e=l[0].datasetIndex,n=t.getDatasetMeta(e).data;l=[];for(let t=0;t<n.length;++t)l.push({element:n[t],datasetIndex:e,index:t})}return l},point(t,e,n,i){const o=(0,a.z)(e,t),r=n.axis||"xy",s=n.includeInvisible||!1;return ft(t,o,r,i,s)},nearest(t,e,n,i){const o=(0,a.z)(e,t),r=n.axis||"xy",s=n.includeInvisible||!1;return gt(t,o,r,n.intersect,i,s)},x(t,e,n,i){const o=(0,a.z)(e,t);return yt(t,o,"x",n.intersect,i)},y(t,e,n,i){const o=(0,a.z)(e,t);return yt(t,o,"y",n.intersect,i)}}};const bt=["left","top","right","bottom"];function vt(t,e){return t.filter((t=>t.pos===e))}function xt(t,e){return t.filter((t=>-1===bt.indexOf(t.pos)&&t.box.axis===e))}function _t(t,e){return t.sort(((t,n)=>{const i=e?n:t,o=e?t:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight}))}function wt(t){const e=[];let n,i,o,r,s,a;for(n=0,i=(t||[]).length;n<i;++n)o=t[n],({position:r,options:{stack:s,stackWeight:a=1}}=o),e.push({index:n,box:o,pos:r,horizontal:o.isHorizontal(),weight:o.weight,stack:s&&r+s,stackWeight:a});return e}function St(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!bt.includes(i))continue;const r=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return e}function kt(t,e){const n=St(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=e;let r,s,a;for(r=0,s=t.length;r<s;++r){a=t[r];const{fullSize:s}=a.box,l=n[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*i:s&&e.availableWidth,a.height=o):(a.width=i,a.height=c?c*o:s&&e.availableHeight)}return n}function Ot(t){const e=wt(t),n=_t(e.filter((t=>t.box.fullSize)),!0),i=_t(vt(e,"left"),!0),o=_t(vt(e,"right")),r=_t(vt(e,"top"),!0),s=_t(vt(e,"bottom")),a=xt(e,"x"),l=xt(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:o.concat(l).concat(s).concat(a),chartArea:vt(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:r.concat(s).concat(a)}}function Mt(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function Pt(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function At(t,e,n,i){const{pos:o,box:r}=n,s=t.maxPadding;if(!(0,a.i)(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?r.height:r.width),n.size=e.size/e.count,t[o]+=n.size}r.getPadding&&Pt(s,r.getPadding());const l=Math.max(0,e.outerWidth-Mt(s,t,"left","right")),c=Math.max(0,e.outerHeight-Mt(s,t,"top","bottom")),u=l!==t.w,h=c!==t.h;return t.w=l,t.h=c,n.horizontal?{same:u,other:h}:{same:h,other:u}}function Et(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function Ct(t,e){const n=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}return i(t?["left","right"]:["top","bottom"])}function Tt(t,e,n,i){const o=[];let r,s,a,l,c,u;for(r=0,s=t.length,c=0;r<s;++r){a=t[r],l=a.box,l.update(a.width||e.w,a.height||e.h,Ct(a.horizontal,e));const{same:s,other:h}=At(e,n,a,i);c|=s&&o.length,u=u||h,l.fullSize||o.push(a)}return c&&Tt(o,e,n,i)||u}function jt(t,e,n,i,o){t.top=n,t.left=e,t.right=e+i,t.bottom=n+o,t.width=i,t.height=o}function Dt(t,e,n,i){const o=n.padding;let{x:r,y:s}=e;for(const l of t){const t=l.box,c=i[l.stack]||{count:1,placed:0,weight:1},u=l.stackWeight/c.weight||1;if(l.horizontal){const i=e.w*u,r=c.size||t.height;(0,a.h)(c.start)&&(s=c.start),t.fullSize?jt(t,o.left,s,n.outerWidth-o.right-o.left,r):jt(t,e.left+c.placed,s,i,r),c.start=s,c.placed+=i,s=t.bottom}else{const i=e.h*u,s=c.size||t.width;(0,a.h)(c.start)&&(r=c.start),t.fullSize?jt(t,r,o.top,s,n.outerHeight-o.bottom-o.top):jt(t,r,e.top+c.placed,s,i),c.start=r,c.placed+=i,r=t.right}}e.x=r,e.y=s}var It={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const o=(0,a.E)(t.options.layout.padding),r=Math.max(e-o.width,0),s=Math.max(n-o.height,0),l=Ot(t.boxes),c=l.vertical,u=l.horizontal;(0,a.F)(t.boxes,(t=>{"function"===typeof t.beforeLayout&&t.beforeLayout()}));const h=c.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,f=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:r,availableHeight:s,vBoxMaxWidth:r/2/h,hBoxMaxHeight:s/2}),d=Object.assign({},o);Pt(d,(0,a.E)(i));const p=Object.assign({maxPadding:d,w:r,h:s,x:o.left,y:o.top},o),g=kt(c.concat(u),f);Tt(l.fullSize,p,f,g),Tt(c,p,f,g),Tt(u,p,f,g)&&Tt(c,p,f,g),Et(p),Dt(l.leftAndTop,p,f,g),p.x+=p.w,p.y+=p.h,Dt(l.rightAndBottom,p,f,g),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},(0,a.F)(l.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class Rt{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class Lt extends Rt{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ft="$chartjs",Vt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Nt=t=>null===t||""===t;function $t(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[Ft]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Nt(o)){const e=(0,a.J)(t,"width");void 0!==e&&(t.width=e)}if(Nt(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=(0,a.J)(t,"height");void 0!==e&&(t.height=e)}return t}const Bt=!!a.K&&{passive:!0};function zt(t,e,n){t.addEventListener(e,n,Bt)}function Wt(t,e,n){t.canvas.removeEventListener(e,n,Bt)}function Ht(t,e){const n=Vt[t.type]||t.type,{x:i,y:o}=(0,a.z)(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==o?o:null}}function Ut(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function qt(t,e,n){const i=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Ut(n.addedNodes,i),e=e&&!Ut(n.removedNodes,i);e&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}function Yt(t,e,n){const i=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Ut(n.removedNodes,i),e=e&&!Ut(n.addedNodes,i);e&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}const Xt=new Map;let Gt=0;function Jt(){const t=window.devicePixelRatio;t!==Gt&&(Gt=t,Xt.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Kt(t,e){Xt.size||window.addEventListener("resize",Jt),Xt.set(t,e)}function Qt(t){Xt.delete(t),Xt.size||window.removeEventListener("resize",Jt)}function Zt(t,e,n){const i=t.canvas,o=i&&(0,a.I)(i);if(!o)return;const r=(0,a.L)(((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()}),window),s=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||r(n,i)}));return s.observe(o),Kt(t,r),s}function te(t,e,n){n&&n.disconnect(),"resize"===e&&Qt(t)}function ee(t,e,n){const i=t.canvas,o=(0,a.L)((e=>{null!==t.ctx&&n(Ht(e,t))}),t);return zt(i,e,o),o}class ne extends Rt{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?($t(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Ft])return!1;const n=e[Ft].initial;["height","width"].forEach((t=>{const i=n[t];(0,a.k)(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=n.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e[Ft],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:qt,detach:Yt,resize:Zt},r=o[e]||ee;i[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;const o={attach:te,detach:te,resize:te},r=o[e]||Wt;r(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return(0,a.G)(t,e,n,i)}isAttached(t){const e=(0,a.I)(t);return!(!e||!e.isConnected)}}function ie(t){return!(0,a.M)()||"undefined"!==typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Lt:ne}class oe{constructor(){s(this,"active",!1)}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return(0,a.x)(this.x)&&(0,a.x)(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}function re(t,e){const n=t.options.ticks,i=se(t),o=Math.min(n.maxTicksLimit||i,i),r=n.major.enabled?le(e):[],s=r.length,l=r[0],c=r[s-1],u=[];if(s>o)return ce(e,u,r,s/o),u;const h=ae(r,e,o);if(s>0){let t,n;const i=s>1?Math.round((c-l)/(s-1)):null;for(ue(e,u,h,(0,a.k)(i)?0:l-i,l),t=0,n=s-1;t<n;t++)ue(e,u,h,r[t],r[t+1]);return ue(e,u,h,c,(0,a.k)(i)?e.length:c+i),u}return ue(e,u,h),u}function se(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(i,o))}function ae(t,e,n){const i=he(t),o=e.length/n;if(!i)return Math.max(o,1);const r=(0,a.N)(i);for(let s=0,a=r.length-1;s<a;s++){const t=r[s];if(t>o)return t}return Math.max(o,1)}function le(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}function ce(t,e,n,i){let o,r=0,s=n[0];for(i=Math.ceil(i),o=0;o<t.length;o++)o===s&&(e.push(t[o]),r++,s=n[r*i])}function ue(t,e,n,i,o){const r=(0,a.v)(i,0),s=Math.min((0,a.v)(o,t.length),t.length);let l,c,u,h=0;n=Math.ceil(n),o&&(l=o-i,n=l/Math.floor(l/n)),u=r;while(u<0)h++,u=Math.round(r+h*n);for(c=Math.max(r,0);c<s;c++)c===u&&(e.push(t[c]),h++,u=Math.round(r+h*n))}function he(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}s(oe,"defaults",{}),s(oe,"defaultRoutes",void 0);const fe=t=>"left"===t?"right":"right"===t?"left":t,de=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,pe=(t,e)=>Math.min(e||t,t);function ge(t,e){const n=[],i=t.length/e,o=t.length;let r=0;for(;r<o;r+=i)n.push(t[Math.floor(r)]);return n}function ye(t,e,n){const i=t.ticks.length,o=Math.min(e,i-1),r=t._startPixel,s=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===i?Math.max(c-r,s-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<r-a||c>s+a)))return c}function me(t,e){(0,a.F)(t,(t=>{const n=t.gc,i=n.length/2;let o;if(i>e){for(o=0;o<i;++o)delete t.data[n[o]];n.splice(0,i)}}))}function be(t){return t.drawTicks?t.tickLength:0}function ve(t,e){if(!t.display)return 0;const n=(0,a.a0)(t.font,e),i=(0,a.E)(t.padding),o=(0,a.b)(t.text)?t.text.length:1;return o*n.lineHeight+i.height}function xe(t,e){return(0,a.j)(t,{scale:e,type:"scale"})}function _e(t,e,n){return(0,a.j)(t,{tick:n,index:e,type:"tick"})}function we(t,e,n){let i=(0,a.a1)(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=fe(i)),i}function Se(t,e,n,i){const{top:o,left:r,bottom:s,right:l,chart:c}=t,{chartArea:u,scales:h}=c;let f,d,p,g=0;const y=s-o,m=l-r;if(t.isHorizontal()){if(d=(0,a.a2)(i,r,l),(0,a.i)(n)){const t=Object.keys(n)[0],i=n[t];p=h[t].getPixelForValue(i)+y-e}else p="center"===n?(u.bottom+u.top)/2+y-e:de(t,n,e);f=l-r}else{if((0,a.i)(n)){const t=Object.keys(n)[0],i=n[t];d=h[t].getPixelForValue(i)-m+e}else d="center"===n?(u.left+u.right)/2-m+e:de(t,n,e);p=(0,a.a2)(i,s,o),g="left"===n?-a.H:a.H}return{titleX:d,titleY:p,maxWidth:f,rotation:g}}class ke extends oe{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=(0,a.O)(t,Number.POSITIVE_INFINITY),e=(0,a.O)(e,Number.NEGATIVE_INFINITY),n=(0,a.O)(n,Number.POSITIVE_INFINITY),i=(0,a.O)(i,Number.NEGATIVE_INFINITY),{min:(0,a.O)(t,n),max:(0,a.O)(e,i),minDefined:(0,a.g)(t),maxDefined:(0,a.g)(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:o,maxDefined:r}=this.getUserBounds();if(o&&r)return{min:n,max:i};const s=this.getMatchingVisibleMetas();for(let a=0,l=s.length;a<l;++a)e=s[a].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),r||(i=Math.max(i,e.max));return n=r&&n>i?i:n,i=o&&n>i?n:i,{min:(0,a.O)(n,(0,a.O)(i,n)),max:(0,a.O)(i,(0,a.O)(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){const e=this._labelItems||(this._labelItems=this._computeLabelItems(t));return e}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,a.Q)(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:o,ticks:r}=this.options,s=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,a.R)(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?ge(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=re(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){(0,a.Q)(this.options.afterUpdate,[this])}beforeSetDimensions(){(0,a.Q)(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){(0,a.Q)(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),(0,a.Q)(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){(0,a.Q)(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,o;for(n=0,i=t.length;n<i;n++)o=t[n],o.label=(0,a.Q)(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){(0,a.Q)(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){(0,a.Q)(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=pe(this.ticks.length,t.ticks.maxTicksLimit),i=e.minRotation||0,o=e.maxRotation;let r,s,l,c=i;if(!this._isVisible()||!e.display||i>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const u=this._getLabelSizes(),h=u.widest.width,f=u.highest.height,d=(0,a.S)(this.chart.width-h,0,this.maxWidth);r=t.offset?this.maxWidth/n:d/(n-1),h+6>r&&(r=d/(n-(t.offset?.5:1)),s=this.maxHeight-be(t.grid)-e.padding-ve(t.title,this.chart.options.font),l=Math.sqrt(h*h+f*f),c=(0,a.U)(Math.min(Math.asin((0,a.S)((u.highest.height+6)/r,-1,1)),Math.asin((0,a.S)(s/l,-1,1))-Math.asin((0,a.S)(f/l,-1,1)))),c=Math.max(i,Math.min(o,c))),this.labelRotation=c}afterCalculateLabelRotation(){(0,a.Q)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){(0,a.Q)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:o}}=this,r=this._isVisible(),s=this.isHorizontal();if(r){const r=ve(i,e.options.font);if(s?(t.width=this.maxWidth,t.height=be(o)+r):(t.height=this.maxHeight,t.width=be(o)+r),n.display&&this.ticks.length){const{first:e,last:i,widest:o,highest:r}=this._getLabelSizes(),l=2*n.padding,c=(0,a.t)(this.labelRotation),u=Math.cos(c),h=Math.sin(c);if(s){const e=n.mirror?0:h*o.width+u*r.height;t.height=Math.min(this.maxHeight,t.height+e+l)}else{const e=n.mirror?0:u*o.width+h*r.height;t.width=Math.min(this.maxWidth,t.width+e+l)}this._calculatePadding(e,i,h,u)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:o,padding:r},position:s}=this.options,a=0!==this.labelRotation,l="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,h=0;a?l?(u=i*t.width,h=n*e.height):(u=n*t.height,h=i*e.width):"start"===o?h=e.width:"end"===o?u=t.width:"inner"!==o&&(u=t.width/2,h=e.width/2),this.paddingLeft=Math.max((u-s+r)*this.width/(this.width-s),0),this.paddingRight=Math.max((h-c+r)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===o?(n=0,i=t.height):"end"===o&&(n=e.height,i=0),this.paddingTop=n+r,this.paddingBottom=i+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,a.Q)(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)(0,a.k)(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=ge(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:i,_longestTextCache:o}=this,r=[],s=[],l=Math.floor(e/pe(e,n));let c,u,h,f,d,p,g,y,m,b,v,x=0,_=0;for(c=0;c<e;c+=l){if(f=t[c].label,d=this._resolveTickFontOptions(c),i.font=p=d.string,g=o[p]=o[p]||{data:{},gc:[]},y=d.lineHeight,m=b=0,(0,a.k)(f)||(0,a.b)(f)){if((0,a.b)(f))for(u=0,h=f.length;u<h;++u)v=f[u],(0,a.k)(v)||(0,a.b)(v)||(m=(0,a.V)(i,g.data,g.gc,m,v),b+=y)}else m=(0,a.V)(i,g.data,g.gc,m,f),b=y;r.push(m),s.push(b),x=Math.max(m,x),_=Math.max(b,_)}me(o,e);const w=r.indexOf(x),S=s.indexOf(_),k=t=>({width:r[t]||0,height:s[t]||0});return{first:k(0),last:k(e-1),widest:k(w),highest:k(S),widths:r,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return(0,a.W)(this._alignToPixels?(0,a.X)(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=_e(this.getContext(),t,n))}return this.$context||(this.$context=xe(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=(0,a.t)(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,s=o?o.widest.width+r:0,l=o?o.highest.height+r:0;return this.isHorizontal()?l*n>s*i?s/n:l/i:l*i<s*n?l/n:s/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:o,position:r,border:s}=i,l=o.offset,c=this.isHorizontal(),u=this.ticks,h=u.length+(l?1:0),f=be(o),d=[],p=s.setContext(this.getContext()),g=p.display?p.width:0,y=g/2,m=function(t){return(0,a.X)(n,t,g)};let b,v,x,_,w,S,k,O,M,P,A,E;if("top"===r)b=m(this.bottom),S=this.bottom-f,O=b-y,P=m(t.top)+y,E=t.bottom;else if("bottom"===r)b=m(this.top),P=t.top,E=m(t.bottom)-y,S=b+y,O=this.top+f;else if("left"===r)b=m(this.right),w=this.right-f,k=b-y,M=m(t.left)+y,A=t.right;else if("right"===r)b=m(this.left),M=t.left,A=m(t.right)-y,w=b+y,k=this.left+f;else if("x"===e){if("center"===r)b=m((t.top+t.bottom)/2+.5);else if((0,a.i)(r)){const t=Object.keys(r)[0],e=r[t];b=m(this.chart.scales[t].getPixelForValue(e))}P=t.top,E=t.bottom,S=b+y,O=S+f}else if("y"===e){if("center"===r)b=m((t.left+t.right)/2);else if((0,a.i)(r)){const t=Object.keys(r)[0],e=r[t];b=m(this.chart.scales[t].getPixelForValue(e))}w=b-y,k=w-f,M=t.left,A=t.right}const C=(0,a.v)(i.ticks.maxTicksLimit,h),T=Math.max(1,Math.ceil(h/C));for(v=0;v<h;v+=T){const t=this.getContext(v),e=o.setContext(t),i=s.setContext(t),r=e.lineWidth,u=e.color,h=i.dash||[],f=i.dashOffset,p=e.tickWidth,g=e.tickColor,y=e.tickBorderDash||[],m=e.tickBorderDashOffset;x=ye(this,v,l),void 0!==x&&(_=(0,a.X)(n,x,r),c?w=k=M=A=_:S=O=P=E=_,d.push({tx1:w,ty1:S,tx2:k,ty2:O,x1:M,y1:P,x2:A,y2:E,width:r,color:u,borderDash:h,borderDashOffset:f,tickWidth:p,tickColor:g,tickBorderDash:y,tickBorderDashOffset:m}))}return this._ticksLength=h,this._borderValue=b,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:o}=n,r=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:c,padding:u,mirror:h}=o,f=be(n.grid),d=f+u,p=h?-u:d,g=-(0,a.t)(this.labelRotation),y=[];let m,b,v,x,_,w,S,k,O,M,P,A,E="middle";if("top"===i)w=this.bottom-p,S=this._getXAxisLabelAlignment();else if("bottom"===i)w=this.top+p,S=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(f);S=t.textAlign,_=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(f);S=t.textAlign,_=t.x}else if("x"===e){if("center"===i)w=(t.top+t.bottom)/2+d;else if((0,a.i)(i)){const t=Object.keys(i)[0],e=i[t];w=this.chart.scales[t].getPixelForValue(e)+d}S=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)_=(t.left+t.right)/2-d;else if((0,a.i)(i)){const t=Object.keys(i)[0],e=i[t];_=this.chart.scales[t].getPixelForValue(e)}S=this._getYAxisLabelAlignment(f).textAlign}"y"===e&&("start"===l?E="top":"end"===l&&(E="bottom"));const C=this._getLabelSizes();for(m=0,b=s.length;m<b;++m){v=s[m],x=v.label;const t=o.setContext(this.getContext(m));k=this.getPixelForTick(m)+o.labelOffset,O=this._resolveTickFontOptions(m),M=O.lineHeight,P=(0,a.b)(x)?x.length:1;const e=P/2,n=t.color,l=t.textStrokeColor,u=t.textStrokeWidth;let f,d=S;if(r?(_=k,"inner"===S&&(d=m===b-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),A="top"===i?"near"===c||0!==g?-P*M+M/2:"center"===c?-C.highest.height/2-e*M+M:-C.highest.height+M/2:"near"===c||0!==g?M/2:"center"===c?C.highest.height/2-e*M:C.highest.height-P*M,h&&(A*=-1),0===g||t.showLabelBackdrop||(_+=M/2*Math.sin(g))):(w=k,A=(1-P)*M/2),t.showLabelBackdrop){const e=(0,a.E)(t.backdropPadding),n=C.heights[m],i=C.widths[m];let o=A-e.top,r=0-e.left;switch(E){case"middle":o-=n/2;break;case"bottom":o-=n;break}switch(S){case"center":r-=i/2;break;case"right":r-=i;break}f={left:r,top:o,width:i+e.width,height:n+e.height,color:t.backdropColor}}y.push({label:x,font:O,textOffset:A,options:{rotation:g,color:n,strokeColor:l,strokeWidth:u,textAlign:d,textBaseline:E,translation:[_,w],backdrop:f}})}return y}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options,n=-(0,a.t)(this.labelRotation);if(n)return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:o}}=this.options,r=this._getLabelSizes(),s=t+o,a=r.widest.width;let l,c;return"left"===e?i?(c=this.right+o,"near"===n?l="left":"center"===n?(l="center",c+=a/2):(l="right",c+=a)):(c=this.right-s,"near"===n?l="right":"center"===n?(l="center",c-=a/2):(l="left",c=this.left)):"right"===e?i?(c=this.left+o,"near"===n?l="right":"center"===n?(l="center",c-=a/2):(l="left",c-=a)):(c=this.left+s,"near"===n?l="left":"center"===n?(l="center",c+=a/2):(l="right",c=this.right)):l="right",{textAlign:l,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:o,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,o,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks,i=n.findIndex((e=>e.value===t));if(i>=0){const t=e.setContext(this.getContext(i));return t.lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const s=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,r=i.length;o<r;++o){const t=i[o];e.drawOnChartArea&&s({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&s({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:i}}=this,o=n.setContext(this.getContext()),r=n.display?o.width:0;if(!r)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,h,f;this.isHorizontal()?(c=(0,a.X)(t,this.left,r)-r/2,u=(0,a.X)(t,this.right,s)+s/2,h=f=l):(h=(0,a.X)(t,this.top,r)-r/2,f=(0,a.X)(t,this.bottom,s)+s/2,c=u=l),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(c,h),e.lineTo(u,f),e.stroke(),e.restore()}drawLabels(t){const e=this.options.ticks;if(!e.display)return;const n=this.ctx,i=this._computeLabelArea();i&&(0,a.Y)(n,i);const o=this.getLabelItems(t);for(const r of o){const t=r.options,e=r.font,i=r.label,o=r.textOffset;(0,a.Z)(n,i,0,o,e,t)}i&&(0,a.$)(n)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=(0,a.a0)(n.font),r=(0,a.E)(n.padding),s=n.align;let l=o.lineHeight/2;"bottom"===e||"center"===e||(0,a.i)(e)?(l+=r.bottom,(0,a.b)(n.text)&&(l+=o.lineHeight*(n.text.length-1))):l+=r.top;const{titleX:c,titleY:u,maxWidth:h,rotation:f}=Se(this,l,e,s);(0,a.Z)(t,n.text,0,0,o,{color:n.color,maxWidth:h,rotation:f,textAlign:we(s,e,i),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=(0,a.v)(t.grid&&t.grid.z,-1),i=(0,a.v)(t.border&&t.border.z,0);return this._isVisible()&&this.draw===ke.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let o,r;for(o=0,r=e.length;o<r;++o){const r=e[o];r[n]!==this.id||t&&r.type!==t||i.push(r)}return i}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return(0,a.a0)(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Oe{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;Ae(e)&&(n=this.register(e));const i=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,Me(t,r,n),this.override&&a.d.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in a.d[i]&&(delete a.d[i][n],this.override&&delete a.a3[n])}}function Me(t,e,n){const i=(0,a.a4)(Object.create(null),[n?a.d.get(n):{},a.d.get(e),t.defaults]);a.d.set(e,i),t.defaultRoutes&&Pe(e,t.defaultRoutes),t.descriptors&&a.d.describe(e,t.descriptors)}function Pe(t,e){Object.keys(e).forEach((n=>{const i=n.split("."),o=i.pop(),r=[t].concat(i).join("."),s=e[n].split("."),l=s.pop(),c=s.join(".");a.d.route(r,o,c,l)}))}function Ae(t){return"id"in t&&"defaults"in t}class Ee{constructor(){this.controllers=new Oe(R,"datasets",!0),this.elements=new Oe(oe,"elements"),this.plugins=new Oe(Object,"plugins"),this.scales=new Oe(ke,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):(0,a.F)(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const i=(0,a.a5)(t);(0,a.Q)(n["before"+i],[],n),e[t](n),(0,a.Q)(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}}var Ce=new Ee;class Te{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),r=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,e,n,i){i=i||{};for(const o of t){const t=o.plugin,r=t[n],s=[e,i,o.options];if(!1===(0,a.Q)(r,s,t)&&i.cancelable)return!1}return!0}invalidate(){(0,a.k)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=(0,a.v)(n.options&&n.options.plugins,{}),o=je(n);return!1!==i||e?Ie(t,o,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function je(t){const e={},n=[],i=Object.keys(Ce.plugins.items);for(let r=0;r<i.length;r++)n.push(Ce.getPlugin(i[r]));const o=t.plugins||[];for(let r=0;r<o.length;r++){const t=o[r];-1===n.indexOf(t)&&(n.push(t),e[t.id]=!0)}return{plugins:n,localIds:e}}function De(t,e){return e||!1!==t?!0===t?{}:t:null}function Ie(t,{plugins:e,localIds:n},i,o){const r=[],s=t.getContext();for(const a of e){const e=a.id,l=De(i[e],o);null!==l&&r.push({plugin:a,options:Re(t.config,{plugin:a,local:n[e]},l,s)})}return r}function Re(t,{plugin:e,local:n},i,o){const r=t.pluginScopeKeys(e),s=t.getOptionScopes(i,r);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Le(t,e){const n=a.d.datasets[t]||{},i=(e.datasets||{})[t]||{};return i.indexAxis||e.indexAxis||n.indexAxis||"x"}function Fe(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}function Ve(t,e){return t===e?"_index_":"_value_"}function Ne(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function $e(t,e){if("x"===t||"y"===t||"r"===t)return t;if(t=e.axis||Ne(e.position)||t.length>1&&$e(t[0].toLowerCase(),e),t)return t;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function Be(t,e){const n=a.a3[t.type]||{scales:{}},i=e.scales||{},o=Le(t.type,e),r=Object.create(null);return Object.keys(i).forEach((t=>{const e=i[t];if(!(0,a.i)(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=$e(t,e),l=Ve(s,o),c=n.scales||{};r[t]=(0,a.ab)(Object.create(null),[{axis:s},e,c[s],c[l]])})),t.data.datasets.forEach((n=>{const o=n.type||t.type,s=n.indexAxis||Le(o,e),l=a.a3[o]||{},c=l.scales||{};Object.keys(c).forEach((t=>{const e=Fe(t,s),o=n[e+"AxisID"]||e;r[o]=r[o]||Object.create(null),(0,a.ab)(r[o],[{axis:e},i[o],c[t]])}))})),Object.keys(r).forEach((t=>{const e=r[t];(0,a.ab)(e,[a.d.scales[e.type],a.d.scale])})),r}function ze(t){const e=t.options||(t.options={});e.plugins=(0,a.v)(e.plugins,{}),e.scales=Be(t,e)}function We(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function He(t){return t=t||{},t.data=We(t.data),ze(t),t}const Ue=new Map,qe=new Set;function Ye(t,e){let n=Ue.get(t);return n||(n=e(),Ue.set(t,n),qe.add(n)),n}const Xe=(t,e,n)=>{const i=(0,a.f)(e,n);void 0!==i&&t.add(i)};class Ge{constructor(t){this._config=He(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=We(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),ze(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Ye(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Ye(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Ye(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id,n=this.type;return Ye(`${n}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:o}=this,r=this._cachedScopes(t,n),s=r.get(e);if(s)return s;const l=new Set;e.forEach((e=>{t&&(l.add(t),e.forEach((e=>Xe(l,t,e)))),e.forEach((t=>Xe(l,i,t))),e.forEach((t=>Xe(l,a.a3[o]||{},t))),e.forEach((t=>Xe(l,a.d,t))),e.forEach((t=>Xe(l,a.a6,t)))}));const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),qe.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,a.a3[e]||{},a.d.datasets[e]||{},{type:e},a.d,a.a6]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:r,subPrefixes:s}=Je(this._resolverCache,t,i);let l=r;if(Qe(r,e)){o.$shared=!1,n=(0,a.a7)(n)?n():n;const e=this.createResolver(t,n,s);l=(0,a.a8)(r,n,e)}for(const a of e)o[a]=l[a];return o}createResolver(t,e,n=[""],i){const{resolver:o}=Je(this._resolverCache,t,n);return(0,a.i)(e)?(0,a.a8)(o,e,void 0,i):o}}function Je(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let r=i.get(o);if(!r){const t=(0,a.a9)(e,n);r={resolver:t,subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},i.set(o,r)}return r}const Ke=t=>(0,a.i)(t)&&Object.getOwnPropertyNames(t).reduce(((e,n)=>e||(0,a.a7)(t[n])),!1);function Qe(t,e){const{isScriptable:n,isIndexable:i}=(0,a.aa)(t);for(const o of e){const e=n(o),r=i(o),s=(r||e)&&t[o];if(e&&((0,a.a7)(s)||Ke(s))||r&&(0,a.b)(s))return!0}return!1}var Ze="4.2.1";const tn=["top","bottom","left","right","chartArea"];function en(t,e){return"top"===t||"bottom"===t||-1===tn.indexOf(t)&&"x"===e}function nn(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function on(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),(0,a.Q)(n&&n.onComplete,[t],e)}function rn(t){const e=t.chart,n=e.options.animation;(0,a.Q)(n&&n.onProgress,[t],e)}function sn(t){return(0,a.M)()&&"string"===typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const an={},ln=t=>{const e=sn(t);return Object.values(an).filter((t=>t.canvas===e)).pop()};function cn(t,e,n){const i=Object.keys(t);for(const o of i){const i=+o;if(i>=e){const r=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=r)}}}function un(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}function hn(t){const{xScale:e,yScale:n}=t;if(e&&n)return{left:e.left,right:e.right,top:n.top,bottom:n.bottom}}class fn{static register(...t){Ce.add(...t),dn()}static unregister(...t){Ce.remove(...t),dn()}constructor(t,e){const n=this.config=new Ge(e),i=sn(t),o=ln(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||ie(i)),this.platform.updateConfig(n);const s=this.platform.acquireContext(i,r.aspectRatio),l=s&&s.canvas,u=l&&l.height,h=l&&l.width;this.id=(0,a.ac)(),this.ctx=s,this.canvas=l,this.width=h,this.height=u,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Te,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,a.ad)((t=>this.update(t)),r.resizeDelay||0),this._dataChanges=[],an[this.id]=this,s&&l?(c.listen(this,"complete",on),c.listen(this,"progress",rn),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:o}=this;return(0,a.k)(t)?e&&o?o:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Ce}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,a.ae)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,a.af)(this.canvas,this.ctx),this}stop(){return c.stop(this),this}resize(t,e){c.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(i,t,e,o),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,(0,a.ae)(this,s,!0)&&(this.notifyPlugins("resize",{size:r}),(0,a.Q)(n.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const t=this.options,e=t.scales||{};(0,a.F)(e,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const n=e[t],i=$e(t,n),o="r"===i,r="x"===i;return{options:n,dposition:o?"chartArea":r?"bottom":"left",dtype:o?"radialLinear":r?"category":"linear"}})))),(0,a.F)(o,(e=>{const o=e.options,r=o.id,s=$e(r,o),l=(0,a.v)(o.type,e.dtype);void 0!==o.position&&en(o.position,s)===en(e.dposition)||(o.position=e.dposition),i[r]=!0;let c=null;if(r in n&&n[r].type===l)c=n[r];else{const t=Ce.getScale(l);c=new t({id:r,type:l,ctx:this.ctx,chart:this}),n[c.id]=c}c.init(o,t)})),(0,a.F)(i,((t,e)=>{t||delete n[e]})),(0,a.F)(n,(t=>{It.configure(this,t,t.options),It.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(nn("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let o=this.getDatasetMeta(n);const r=i.type||this.config.type;if(o.type&&o.type!==r&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=r,o.indexAxis=i.indexAxis||Le(r,this.options),o.order=i.order||0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=Ce.getController(r),{datasetElementType:i,dataElementType:s}=a.d.datasets[r];Object.assign(e,{dataElementType:Ce.getElement(s),datasetElementType:i&&Ce.getElement(i)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){(0,a.F)(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let a=0,c=this.data.datasets.length;a<c;a++){const{controller:t}=this.getDatasetMeta(a),e=!i&&-1===o.indexOf(t);t.buildOrUpdateElements(e),r=Math.max(+t.getMaxOverflow(),r)}r=this._minPadding=n.layout.autoPadding?r:0,this._updateLayout(r),i||(0,a.F)(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(nn("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){(0,a.F)(this.scales,(t=>{It.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);(0,a.ag)(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:o}of e){const e="_removeElements"===n?-o:o;cn(t,i,e)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=n(0);for(let o=1;o<e;o++)if(!(0,a.ag)(i,n(o)))return;return Array.from(i).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;It.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],(0,a.F)(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,(0,a.a7)(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(c.has(this)?this.attached&&!c.running(this)&&c.start(this):(this.draw(),on({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];t&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,o=hn(t)||this.chartArea,r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(i&&(0,a.Y)(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),i&&(0,a.$)(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return(0,a.C)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const o=mt.modes[e];return"function"===typeof o?o(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=(0,a.j)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"===typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){const n=this.getDatasetMeta(t);n.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,i);(0,a.h)(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),r.update(o,{visible:n}),this.update((e=>e.datasetIndex===t?i:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),c.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),(0,a.af)(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete an[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};(0,a.F)(this.options.events,(t=>n(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let r;const s=()=>{i("attach",s),this.attached=!0,this.resize(),n("resize",o),n("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",s)},e.isAttached(this.canvas)?s():r()}unbindEvents(){(0,a.F)(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},(0,a.F)(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let o,r,s,a;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,a=t.length;s<a;++s){r=t[s];const e=r&&this.getDatasetMeta(r.datasetIndex).controller;e&&e[i+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),i=!(0,a.ah)(n,e);i&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const i=this.options.hover,o=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),r=o(e,t),s=n?t:o(t,e);r.length&&this.updateHoverStyle(r,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:o}=this,r=e,s=this._getActiveElements(t,i,n,r),l=(0,a.ai)(t),c=un(t,this._lastEvent,n,l);n&&(this._lastEvent=null,(0,a.Q)(o.onHover,[t,s,this],this),l&&(0,a.Q)(o.onClick,[t,s,this],this));const u=!(0,a.ah)(s,i);return(u||e)&&(this._active=s,this._updateHoverStyles(s,i,e)),this._lastEvent=c,u}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}function dn(){return(0,a.F)(fn.instances,(t=>t._plugins.invalidate()))}function pn(t,e,n){const{startAngle:i,pixelMargin:o,x:r,y:s,outerRadius:l,innerRadius:c}=e;let u=o/l;t.beginPath(),t.arc(r,s,l,i-u,n+u),c>o?(u=o/c,t.arc(r,s,c,n+u,i-u,!0)):t.arc(r,s,o,n+a.H,i-a.H),t.closePath(),t.clip()}function gn(t){return(0,a.ak)(t,["outerStart","outerEnd","innerStart","innerEnd"])}function yn(t,e,n,i){const o=gn(t.options.borderRadius),r=(n-e)/2,s=Math.min(r,i*e/2),l=t=>{const e=(n-Math.min(r,t))*i/2;return(0,a.S)(t,0,Math.min(r,e))};return{outerStart:l(o.outerStart),outerEnd:l(o.outerEnd),innerStart:(0,a.S)(o.innerStart,0,s),innerEnd:(0,a.S)(o.innerEnd,0,s)}}function mn(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function bn(t,e,n,i,o,r){const{x:s,y:l,startAngle:c,pixelMargin:u,innerRadius:h}=e,f=Math.max(e.outerRadius+i+n-u,0),d=h>0?h+i+n+u:0;let p=0;const g=o-c;if(i){const t=h>0?h-i:0,e=f>0?f-i:0,n=(t+e)/2,o=0!==n?g*n/(n+i):g;p=(g-o)/2}const y=Math.max(.001,g*f-n/a.P)/f,m=(g-y)/2,b=c+m+p,v=o-m-p,{outerStart:x,outerEnd:_,innerStart:w,innerEnd:S}=yn(e,d,f,v-b),k=f-x,O=f-_,M=b+x/k,P=v-_/O,A=d+w,E=d+S,C=b+w/A,T=v-S/E;if(t.beginPath(),r){const e=(M+P)/2;if(t.arc(s,l,f,M,e),t.arc(s,l,f,e,P),_>0){const e=mn(O,P,s,l);t.arc(e.x,e.y,_,P,v+a.H)}const n=mn(E,v,s,l);if(t.lineTo(n.x,n.y),S>0){const e=mn(E,T,s,l);t.arc(e.x,e.y,S,v+a.H,T+Math.PI)}const i=(v-S/d+(b+w/d))/2;if(t.arc(s,l,d,v-S/d,i,!0),t.arc(s,l,d,i,b+w/d,!0),w>0){const e=mn(A,C,s,l);t.arc(e.x,e.y,w,C+Math.PI,b-a.H)}const o=mn(k,b,s,l);if(t.lineTo(o.x,o.y),x>0){const e=mn(k,M,s,l);t.arc(e.x,e.y,x,b-a.H,M)}}else{t.moveTo(s,l);const e=Math.cos(M)*f+s,n=Math.sin(M)*f+l;t.lineTo(e,n);const i=Math.cos(P)*f+s,o=Math.sin(P)*f+l;t.lineTo(i,o)}t.closePath()}function vn(t,e,n,i,o){const{fullCircles:r,startAngle:s,circumference:l}=e;let c=e.endAngle;if(r){bn(t,e,n,i,c,o);for(let e=0;e<r;++e)t.fill();isNaN(l)||(c=s+(l%a.T||a.T))}return bn(t,e,n,i,c,o),t.fill(),c}function xn(t,e,n,i,o){const{fullCircles:r,startAngle:s,circumference:l,options:c}=e,{borderWidth:u,borderJoinStyle:h}=c,f="inner"===c.borderAlign;if(!u)return;f?(t.lineWidth=2*u,t.lineJoin=h||"round"):(t.lineWidth=u,t.lineJoin=h||"bevel");let d=e.endAngle;if(r){bn(t,e,n,i,d,o);for(let e=0;e<r;++e)t.stroke();isNaN(l)||(d=s+(l%a.T||a.T))}f&&pn(t,e,d),r||(bn(t,e,n,i,d,o),t.stroke())}s(fn,"defaults",a.d),s(fn,"instances",an),s(fn,"overrides",a.a3),s(fn,"registry",Ce),s(fn,"version",Ze),s(fn,"getChart",ln);class _n extends oe{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.getProps(["x","y"],n),{angle:o,distance:r}=(0,a.D)(i,{x:t,y:e}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:u,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),f=this.options.spacing/2,d=(0,a.v)(h,l-s),p=d>=a.T||(0,a.p)(o,s,l),g=(0,a.aj)(r,c+f,u+f);return p&&g}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:o,innerRadius:r,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:a,spacing:l}=this.options,c=(i+o)/2,u=(r+s+l+a)/2;return{x:e+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/4,o=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>a.T?Math.floor(n/a.T):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();const s=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(s)*i,Math.sin(s)*i);const l=1-Math.sin(Math.min(a.P,n||0)),c=i*l;t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,vn(t,this,c,o,r),xn(t,this,c,o,r),t.restore()}}function wn(t,e,n=e){t.lineCap=(0,a.v)(n.borderCapStyle,e.borderCapStyle),t.setLineDash((0,a.v)(n.borderDash,e.borderDash)),t.lineDashOffset=(0,a.v)(n.borderDashOffset,e.borderDashOffset),t.lineJoin=(0,a.v)(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=(0,a.v)(n.borderWidth,e.borderWidth),t.strokeStyle=(0,a.v)(n.borderColor,e.borderColor)}function Sn(t,e,n){t.lineTo(n.x,n.y)}function kn(t){return t.stepped?a.ar:t.tension||"monotone"===t.cubicInterpolationMode?a.as:Sn}function On(t,e,n={}){const i=t.length,{start:o=0,end:r=i-1}=n,{start:s,end:a}=e,l=Math.max(o,s),c=Math.min(r,a),u=o<s&&r<s||o>a&&r>a;return{count:i,start:l,loop:e.loop,ilen:c<l&&!u?i+c-l:c-l}}function Mn(t,e,n,i){const{points:o,options:r}=e,{count:s,start:a,loop:l,ilen:c}=On(o,n,i),u=kn(r);let h,f,d,{move:p=!0,reverse:g}=i||{};for(h=0;h<=c;++h)f=o[(a+(g?c-h:h))%s],f.skip||(p?(t.moveTo(f.x,f.y),p=!1):u(t,d,f,g,r.stepped),d=f);return l&&(f=o[(a+(g?c:0))%s],u(t,d,f,g,r.stepped)),!!l}function Pn(t,e,n,i){const o=e.points,{count:r,start:s,ilen:a}=On(o,n,i),{move:l=!0,reverse:c}=i||{};let u,h,f,d,p,g,y=0,m=0;const b=t=>(s+(c?a-t:t))%r,v=()=>{d!==p&&(t.lineTo(y,p),t.lineTo(y,d),t.lineTo(y,g))};for(l&&(h=o[b(0)],t.moveTo(h.x,h.y)),u=0;u<=a;++u){if(h=o[b(u)],h.skip)continue;const e=h.x,n=h.y,i=0|e;i===f?(n<d?d=n:n>p&&(p=n),y=(m*y+e)/++m):(v(),t.lineTo(e,n),f=i,m=0,d=p=n),g=n}v()}function An(t){const e=t.options,n=e.borderDash&&e.borderDash.length,i=!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!n;return i?Pn:Mn}function En(t){return t.stepped?a.ao:t.tension||"monotone"===t.cubicInterpolationMode?a.ap:a.aq}function Cn(t,e,n,i){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,i)&&o.closePath()),wn(t,e.options),t.stroke(o)}function Tn(t,e,n,i){const{segments:o,options:r}=e,s=An(e);for(const a of o)wn(t,r,a.style),t.beginPath(),s(t,e,a,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}s(_n,"id","arc"),s(_n,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),s(_n,"defaultRoutes",{backgroundColor:"backgroundColor"});const jn="function"===typeof Path2D;function Dn(t,e,n,i){jn&&!e.options.segment?Cn(t,e,n,i):Tn(t,e,n,i)}class In extends oe{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;(0,a.al)(this._points,n,t,i,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,a.am)(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],o=this.points,r=(0,a.an)(this,{property:e,start:i,end:i});if(!r.length)return;const s=[],l=En(n);let c,u;for(c=0,u=r.length;c<u;++c){const{start:a,end:u}=r[c],h=o[a],f=o[u];if(h===f){s.push(h);continue}const d=Math.abs((i-h[e])/(f[e]-h[e])),p=l(h,f,d,n.stepped);p[e]=t[e],s.push(p)}return 1===s.length?s[0]:s}pathSegment(t,e,n){const i=An(this);return i(t,this,e,n)}path(t,e,n){const i=this.segments,o=An(this);let r=this._loop;e=e||0,n=n||this.points.length-e;for(const s of i)r&=o(t,this,s,{start:e,end:e+n-1});return!!r}draw(t,e,n,i){const o=this.options||{},r=this.points||[];r.length&&o.borderWidth&&(t.save(),Dn(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Rn(t,e,n,i){const o=t.options,{[n]:r}=t.getProps([n],i);return Math.abs(e-r)<o.radius+o.hitRadius}s(In,"id","line"),s(In,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),s(In,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),s(In,"descriptors",{_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t});class Ln extends oe{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:o,y:r}=this.getProps(["x","y"],n);return Math.pow(t-o,2)+Math.pow(e-r,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Rn(this,t,"x",e)}inYRange(t,e){return Rn(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){t=t||this.options||{};let e=t.radius||0;e=Math.max(e,e&&t.hoverRadius||0);const n=e&&t.borderWidth||0;return 2*(e+n)}draw(t,e){const n=this.options;this.skip||n.radius<.1||!(0,a.C)(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,(0,a.at)(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Fn(t,e){const{x:n,y:i,base:o,width:r,height:s}=t.getProps(["x","y","base","width","height"],e);let a,l,c,u,h;return t.horizontal?(h=s/2,a=Math.min(n,o),l=Math.max(n,o),c=i-h,u=i+h):(h=r/2,a=n-h,l=n+h,c=Math.min(i,o),u=Math.max(i,o)),{left:a,top:c,right:l,bottom:u}}function Vn(t,e,n,i){return t?0:(0,a.S)(e,n,i)}function Nn(t,e,n){const i=t.options.borderWidth,o=t.borderSkipped,r=(0,a.av)(i);return{t:Vn(o.top,r.top,0,n),r:Vn(o.right,r.right,0,e),b:Vn(o.bottom,r.bottom,0,n),l:Vn(o.left,r.left,0,e)}}function $n(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,r=(0,a.aw)(o),s=Math.min(e,n),l=t.borderSkipped,c=i||(0,a.i)(o);return{topLeft:Vn(!c||l.top||l.left,r.topLeft,0,s),topRight:Vn(!c||l.top||l.right,r.topRight,0,s),bottomLeft:Vn(!c||l.bottom||l.left,r.bottomLeft,0,s),bottomRight:Vn(!c||l.bottom||l.right,r.bottomRight,0,s)}}function Bn(t){const e=Fn(t),n=e.right-e.left,i=e.bottom-e.top,o=Nn(t,n/2,i/2),r=$n(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:r},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,r.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(o.b,o.r))}}}}function zn(t,e,n,i){const o=null===e,r=null===n,s=o&&r,l=t&&!s&&Fn(t,i);return l&&(o||(0,a.aj)(e,l.left,l.right))&&(r||(0,a.aj)(n,l.top,l.bottom))}function Wn(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function Hn(t,e){t.rect(e.x,e.y,e.w,e.h)}function Un(t,e,n={}){const i=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,r=(t.x+t.w!==n.x+n.w?e:0)-i,s=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+i,y:t.y+o,w:t.w+r,h:t.h+s,radius:t.radius}}s(Ln,"id","point"),s(Ln,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),s(Ln,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});class qn extends oe{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:o,outer:r}=Bn(this),s=Wn(r.radius)?a.au:Hn;t.save(),r.w===o.w&&r.h===o.h||(t.beginPath(),s(t,Un(r,e,o)),t.clip(),s(t,Un(o,-e,r)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),s(t,Un(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return zn(this,t,e,n)}inXRange(t,e){return zn(this,t,null,e)}inYRange(t,e){return zn(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+i)/2:e,y:o?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}s(qn,"id","bar"),s(qn,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),s(qn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const Yn=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}},Xn=(t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Gn extends oe{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=(0,a.Q)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,i=(0,a.a0)(n.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=Yn(n,o);let c,u;e.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,o,s,l)+10):(u=this.maxHeight,c=this._fitCols(r,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:o,maxWidth:r,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+s;let u=t;o.textAlign="left",o.textBaseline="middle";let h=-1,f=-c;return this.legendItems.forEach(((t,d)=>{const p=n+e/2+o.measureText(t.text).width;(0===d||l[l.length-1]+p+2*s>r)&&(u+=c,l[l.length-(d>0?0:1)]=0,f+=c,h++),a[d]={left:0,top:f,row:h,width:p,height:i},l[l.length-1]+=p+s})),u}_fitCols(t,e,n,i){const{ctx:o,maxHeight:r,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=r-t;let u=s,h=0,f=0,d=0,p=0;return this.legendItems.forEach(((t,r)=>{const{itemWidth:g,itemHeight:y}=Jn(n,e,o,t,i);r>0&&f+y+2*s>c&&(u+=h+s,l.push({width:h,height:f}),d+=h+s,p++,h=f=0),a[r]={left:d,top:f,col:p,width:g,height:y},h=Math.max(h,g),f+=y+s})),u+=h,l.push({width:h,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:o}}=this,r=(0,a.az)(o,this.left,this.width);if(this.isHorizontal()){let o=0,s=(0,a.a2)(n,this.left+i,this.right-this.lineWidths[o]);for(const l of e)o!==l.row&&(o=l.row,s=(0,a.a2)(n,this.left+i,this.right-this.lineWidths[o])),l.top+=this.top+t+i,l.left=r.leftForLtr(r.x(s),l.width),s+=l.width+i}else{let o=0,s=(0,a.a2)(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const l of e)l.col!==o&&(o=l.col,s=(0,a.a2)(n,this.top+t+i,this.bottom-this.columnSizes[o].height)),l.top=s,l.left+=this.left+i,l.left=r.leftForLtr(r.x(l.left),l.width),s+=l.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;(0,a.Y)(t,this),this._draw(),(0,a.$)(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:r}=t,s=a.d.color,l=(0,a.az)(t.rtl,this.left,this.width),c=(0,a.a0)(r.font),{padding:u}=r,h=c.size,f=h/2;let d;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:y}=Yn(r,h),m=function(t,e,n){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;i.save();const o=(0,a.v)(n.lineWidth,1);if(i.fillStyle=(0,a.v)(n.fillStyle,s),i.lineCap=(0,a.v)(n.lineCap,"butt"),i.lineDashOffset=(0,a.v)(n.lineDashOffset,0),i.lineJoin=(0,a.v)(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=(0,a.v)(n.strokeStyle,s),i.setLineDash((0,a.v)(n.lineDash,[])),r.usePointStyle){const s={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},c=l.xPlus(t,p/2),u=e+f;(0,a.aD)(i,s,c,u,r.pointStyleWidth&&p)}else{const r=e+Math.max((h-g)/2,0),s=l.leftForLtr(t,p),c=(0,a.aw)(n.borderRadius);i.beginPath(),Object.values(c).some((t=>0!==t))?(0,a.au)(i,{x:s,y:r,w:p,h:g,radius:c}):i.rect(s,r,p,g),i.fill(),0!==o&&i.stroke()}i.restore()},b=function(t,e,n){(0,a.Z)(i,n.text,t,e+y/2,c,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})},v=this.isHorizontal(),x=this._computeTitleHeight();d=v?{x:(0,a.a2)(o,this.left+u,this.right-n[0]),y:this.top+u+x,line:0}:{x:this.left+u,y:(0,a.a2)(o,this.top+x+u,this.bottom-e[0].height),line:0},(0,a.aA)(this.ctx,t.textDirection);const _=y+u;this.legendItems.forEach(((s,h)=>{i.strokeStyle=s.fontColor,i.fillStyle=s.fontColor;const g=i.measureText(s.text).width,y=l.textAlign(s.textAlign||(s.textAlign=r.textAlign)),w=p+f+g;let S=d.x,k=d.y;l.setWidth(this.width),v?h>0&&S+w+u>this.right&&(k=d.y+=_,d.line++,S=d.x=(0,a.a2)(o,this.left+u,this.right-n[d.line])):h>0&&k+_>this.bottom&&(S=d.x=S+e[d.line].width+u,d.line++,k=d.y=(0,a.a2)(o,this.top+x+u,this.bottom-e[d.line].height));const O=l.x(S);if(m(O,k,s),S=(0,a.aB)(y,S+p+f,v?S+w:this.right,t.rtl),b(l.x(S),k,s),v)d.x+=w+u;else if("string"!==typeof s.text){const t=c.lineHeight;d.y+=Zn(s,t)}else d.y+=_})),(0,a.aC)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=(0,a.a0)(e.font),i=(0,a.E)(e.padding);if(!e.display)return;const o=(0,a.az)(t.rtl,this.left,this.width),r=this.ctx,s=e.position,l=n.size/2,c=i.top+l;let u,h=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,h=(0,a.a2)(t.align,h,this.right-f);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);u=c+(0,a.a2)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const d=(0,a.a2)(s,h,h+f);r.textAlign=o.textAlign((0,a.a1)(s)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,(0,a.Z)(r,e.text,d,u,n)}_computeTitleHeight(){const t=this.options.title,e=(0,a.a0)(t.font),n=(0,a.E)(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if((0,a.aj)(t,this.left,this.right)&&(0,a.aj)(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],(0,a.aj)(t,i.left,i.left+i.width)&&(0,a.aj)(e,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!ti(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const i=this._hoveredItem,o=Xn(i,n);i&&!o&&(0,a.Q)(e.onLeave,[t,i,this],this),this._hoveredItem=n,n&&!o&&(0,a.Q)(e.onHover,[t,n,this],this)}else n&&(0,a.Q)(e.onClick,[t,n,this],this)}}function Jn(t,e,n,i,o){const r=Kn(i,t,e,n),s=Qn(o,i,e.lineHeight);return{itemWidth:r,itemHeight:s}}function Kn(t,e,n,i){let o=t.text;return o&&"string"!==typeof o&&(o=o.reduce(((t,e)=>t.length>e.length?t:e))),e+n.size/2+i.measureText(o).width}function Qn(t,e,n){let i=t;return"string"!==typeof e.text&&(i=Zn(e,n)),i}function Zn(t,e){const n=t.text?t.text.length+.5:0;return e*n}function ti(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}var ei={id:"legend",_element:Gn,start(t,e,n){const i=t.legend=new Gn({ctx:t.ctx,options:n,chart:t});It.configure(t,i,n),It.addBox(t,i)},stop(t){It.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;It.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,o=n.chart;o.isDatasetVisible(i)?(o.hide(i),e.hidden=!0):(o.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:o,color:r,useBorderRadius:s,borderRadius:l}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const c=t.controller.getStyle(n?0:void 0),u=(0,a.E)(c.borderWidth);return{text:e[t.index].label,fillStyle:c.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:s&&(l||c.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};new WeakMap;const ni={average(t){if(!t.length)return!1;let e,n,i=0,o=0,r=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,o+=t.y,++r}}return{x:i/r,y:o/r}},nearest(t,e){if(!t.length)return!1;let n,i,o,r=e.x,s=e.y,l=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=i.getCenterPoint(),n=(0,a.aE)(e,t);n<l&&(l=n,o=i)}}if(o){const t=o.tooltipPosition();r=t.x,s=t.y}return{x:r,y:s}}};function ii(t,e){return e&&((0,a.b)(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function oi(t){return("string"===typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function ri(t,e){const{element:n,datasetIndex:i,index:o}=e,r=t.getDatasetMeta(i).controller,{label:s,value:a}=r.getLabelAndValue(o);return{chart:t,label:s,parsed:r.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:a,dataset:r.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function si(t,e){const n=t.chart.ctx,{body:i,footer:o,title:r}=t,{boxWidth:s,boxHeight:l}=e,c=(0,a.a0)(e.bodyFont),u=(0,a.a0)(e.titleFont),h=(0,a.a0)(e.footerFont),f=r.length,d=o.length,p=i.length,g=(0,a.E)(e.padding);let y=g.height,m=0,b=i.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(b+=t.beforeBody.length+t.afterBody.length,f&&(y+=f*u.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),b){const t=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;y+=p*t+(b-p)*c.lineHeight+(b-1)*e.bodySpacing}d&&(y+=e.footerMarginTop+d*h.lineHeight+(d-1)*e.footerSpacing);let v=0;const x=function(t){m=Math.max(m,n.measureText(t).width+v)};return n.save(),n.font=u.string,(0,a.F)(t.title,x),n.font=c.string,(0,a.F)(t.beforeBody.concat(t.afterBody),x),v=e.displayColors?s+2+e.boxPadding:0,(0,a.F)(i,(t=>{(0,a.F)(t.before,x),(0,a.F)(t.lines,x),(0,a.F)(t.after,x)})),v=0,n.font=h.string,(0,a.F)(t.footer,x),n.restore(),m+=g.width,{width:m,height:y}}function ai(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}function li(t,e,n,i){const{x:o,width:r}=i,s=n.caretSize+n.caretPadding;return"left"===t&&o+r+s>e.width||("right"===t&&o-r-s<0||void 0)}function ci(t,e,n,i){const{x:o,width:r}=n,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return"center"===i?c=o<=(a+l)/2?"left":"right":o<=r/2?c="left":o>=s-r/2&&(c="right"),li(c,t,e,n)&&(c="center"),c}function ui(t,e,n){const i=n.yAlign||e.yAlign||ai(t,n);return{xAlign:n.xAlign||e.xAlign||ci(t,e,n,i),yAlign:i}}function hi(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}function fi(t,e,n){let{y:i,height:o}=t;return"top"===e?i+=n:i-="bottom"===e?o+n:o/2,i}function di(t,e,n,i){const{caretSize:o,caretPadding:r,cornerRadius:s}=t,{xAlign:l,yAlign:c}=n,u=o+r,{topLeft:h,topRight:f,bottomLeft:d,bottomRight:p}=(0,a.aw)(s);let g=hi(e,l);const y=fi(e,c,u);return"center"===c?"left"===l?g+=u:"right"===l&&(g-=u):"left"===l?g-=Math.max(h,d)+o:"right"===l&&(g+=Math.max(f,p)+o),{x:(0,a.S)(g,0,i.width-e.width),y:(0,a.S)(y,0,i.height-e.height)}}function pi(t,e,n){const i=(0,a.E)(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function gi(t){return ii([],oi(t))}function yi(t,e,n){return(0,a.j)(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function mi(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const bi={beforeTitle:a.aF,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:a.aF,beforeBody:a.aF,beforeLabel:a.aF,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return(0,a.k)(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex),n=e.controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex),n=e.controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:a.aF,afterBody:a.aF,beforeFooter:a.aF,footer:a.aF,afterFooter:a.aF};function vi(t,e,n,i){const o=t[e].call(n,i);return"undefined"===typeof o?bi[e].call(n,i):o}class xi extends oe{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,o=new d(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=yi(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:n}=e,i=vi(n,"beforeTitle",this,t),o=vi(n,"title",this,t),r=vi(n,"afterTitle",this,t);let s=[];return s=ii(s,oi(i)),s=ii(s,oi(o)),s=ii(s,oi(r)),s}getBeforeBody(t,e){return gi(vi(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:n}=e,i=[];return(0,a.F)(t,(t=>{const e={before:[],lines:[],after:[]},o=mi(n,t);ii(e.before,oi(vi(o,"beforeLabel",this,t))),ii(e.lines,vi(o,"label",this,t)),ii(e.after,oi(vi(o,"afterLabel",this,t))),i.push(e)})),i}getAfterBody(t,e){return gi(vi(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,i=vi(n,"beforeFooter",this,t),o=vi(n,"footer",this,t),r=vi(n,"afterFooter",this,t);let s=[];return s=ii(s,oi(i)),s=ii(s,oi(o)),s=ii(s,oi(r)),s}_createItems(t){const e=this._active,n=this.chart.data,i=[],o=[],r=[];let s,l,c=[];for(s=0,l=e.length;s<l;++s)c.push(ri(this.chart,e[s]));return t.filter&&(c=c.filter(((e,i,o)=>t.filter(e,i,o,n)))),t.itemSort&&(c=c.sort(((e,i)=>t.itemSort(e,i,n)))),(0,a.F)(c,(e=>{const n=mi(t.callbacks,e);i.push(vi(n,"labelColor",this,e)),o.push(vi(n,"labelPointStyle",this,e)),r.push(vi(n,"labelTextColor",this,e))})),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=c,c}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let o,r=[];if(i.length){const t=ni[n.position].call(this,i,this._eventPosition);r=this._createItems(n),this.title=this.getTitle(r,n),this.beforeBody=this.getBeforeBody(r,n),this.body=this.getBody(r,n),this.afterBody=this.getAfterBody(r,n),this.footer=this.getFooter(r,n);const e=this._size=si(this,n),s=Object.assign({},t,e),a=ui(this.chart,n,s),l=di(n,s,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const o=this.getCaretPosition(t,n,i);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:o}=this,{caretSize:r,cornerRadius:s}=n,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:h}=(0,a.aw)(s),{x:f,y:d}=t,{width:p,height:g}=e;let y,m,b,v,x,_;return"center"===o?(x=d+g/2,"left"===i?(y=f,m=y-r,v=x+r,_=x-r):(y=f+p,m=y+r,v=x-r,_=x+r),b=y):(m="left"===i?f+Math.max(l,u)+r:"right"===i?f+p-Math.max(c,h)-r:this.caretX,"top"===o?(v=d,x=v-r,y=m-r,b=m+r):(v=d+g,x=v+r,y=m+r,b=m-r),_=v),{x1:y,x2:m,x3:b,y1:v,y2:x,y3:_}}drawTitle(t,e,n){const i=this.title,o=i.length;let r,s,l;if(o){const c=(0,a.az)(n.rtl,this.x,this.width);for(t.x=pi(this,n.titleAlign,n),e.textAlign=c.textAlign(n.titleAlign),e.textBaseline="middle",r=(0,a.a0)(n.titleFont),s=n.titleSpacing,e.fillStyle=n.titleColor,e.font=r.string,l=0;l<o;++l)e.fillText(i[l],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+s,l+1===o&&(t.y+=n.titleMarginBottom-s)}}_drawColorBox(t,e,n,i,o){const r=this.labelColors[n],s=this.labelPointStyles[n],{boxHeight:l,boxWidth:c,boxPadding:u}=o,h=(0,a.a0)(o.bodyFont),f=pi(this,"left",o),d=i.x(f),p=l<h.lineHeight?(h.lineHeight-l)/2:0,g=e.y+p;if(o.usePointStyle){const e={radius:Math.min(c,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},n=i.leftForLtr(d,c)+c/2,u=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,(0,a.at)(t,e,n,u),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,(0,a.at)(t,e,n,u)}else{t.lineWidth=(0,a.i)(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const e=i.leftForLtr(d,c-u),n=i.leftForLtr(i.xPlus(d,1),c-u-2),s=(0,a.aw)(r.borderRadius);Object.values(s).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,(0,a.au)(t,{x:e,y:g,w:c,h:l,radius:s}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),(0,a.au)(t,{x:n,y:g+1,w:c-2,h:l-2,radius:s}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,g,c,l),t.strokeRect(e,g,c,l),t.fillStyle=r.backgroundColor,t.fillRect(n,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:o,bodyAlign:r,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=n,h=(0,a.a0)(n.bodyFont);let f=h.lineHeight,d=0;const p=(0,a.az)(n.rtl,this.x,this.width),g=function(n){e.fillText(n,p.x(t.x+d),t.y+f/2),t.y+=f+o},y=p.textAlign(r);let m,b,v,x,_,w,S;for(e.textAlign=r,e.textBaseline="middle",e.font=h.string,t.x=pi(this,y,n),e.fillStyle=n.bodyColor,(0,a.F)(this.beforeBody,g),d=s&&"right"!==y?"center"===r?c/2+u:c+2+u:0,x=0,w=i.length;x<w;++x){for(m=i[x],b=this.labelTextColors[x],e.fillStyle=b,(0,a.F)(m.before,g),v=m.lines,s&&v.length&&(this._drawColorBox(e,t,x,p,n),f=Math.max(h.lineHeight,l)),_=0,S=v.length;_<S;++_)g(v[_]),f=h.lineHeight;(0,a.F)(m.after,g)}d=0,f=h.lineHeight,(0,a.F)(this.afterBody,g),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let r,s;if(o){const l=(0,a.az)(n.rtl,this.x,this.width);for(t.x=pi(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=l.textAlign(n.footerAlign),e.textBaseline="middle",r=(0,a.a0)(n.footerFont),e.fillStyle=n.footerColor,e.font=r.string,s=0;s<o;++s)e.fillText(i[s],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:o,yAlign:r}=this,{x:s,y:l}=t,{width:c,height:u}=n,{topLeft:h,topRight:f,bottomLeft:d,bottomRight:p}=(0,a.aw)(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(s+h,l),"top"===r&&this.drawCaret(t,e,n,i),e.lineTo(s+c-f,l),e.quadraticCurveTo(s+c,l,s+c,l+f),"center"===r&&"right"===o&&this.drawCaret(t,e,n,i),e.lineTo(s+c,l+u-p),e.quadraticCurveTo(s+c,l+u,s+c-p,l+u),"bottom"===r&&this.drawCaret(t,e,n,i),e.lineTo(s+d,l+u),e.quadraticCurveTo(s,l+u,s,l+u-d),"center"===r&&"left"===o&&this.drawCaret(t,e,n,i),e.lineTo(s,l+h),e.quadraticCurveTo(s,l,s+h,l),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,o=n&&n.y;if(i||o){const n=ni[t.position].call(this,this._active,this._eventPosition);if(!n)return;const r=this._size=si(this,t),s=Object.assign({},n,this._size),a=ui(e,t,s),l=di(t,s,a,e);i._to===l.x&&o._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=r.width,this.height=r.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const r=(0,a.E)(e.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&s&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,i,e),(0,a.aA)(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),(0,a.aC)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),o=!(0,a.ah)(n,i),r=this._positionChanged(i,e);(o||r)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,n),s=this._positionChanged(r,t),l=e||!(0,a.ah)(r,o)||s;return l&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,n,i){const o=this.options;if("mouseout"===t.type)return[];if(!i)return e;const r=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:n,caretY:i,options:o}=this,r=ni[o.position].call(this,t,e);return!1!==r&&(n!==r.x||i!==r.y)}}s(xi,"positioners",ni);var _i={id:"tooltip",_element:xi,positioners:ni,afterInit(t,e,n){n&&(t.tooltip=new xi({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:bi},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const wi=(t,e,n,i)=>("string"===typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function Si(t,e,n,i){const o=t.indexOf(e);if(-1===o)return wi(t,e,n,i);const r=t.lastIndexOf(e);return o!==r?n:o}const ki=(t,e)=>null===t?null:(0,a.S)(Math.round(t),0,e);function Oi(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Mi extends ke{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if((0,a.k)(t))return null;const n=this.getLabels();return e=isFinite(e)&&n[e]===t?e:Si(n,t,(0,a.v)(e,t),this._addedLabels),ki(e,n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let r=t;r<=e;r++)i.push({value:r});return i}getLabelForValue(t){return Oi.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!==typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Pi(t,e){const n=[],i=1e-14,{bounds:o,step:r,min:s,max:l,precision:c,count:u,maxTicks:h,maxDigits:f,includeBounds:d}=t,p=r||1,g=h-1,{min:y,max:m}=e,b=!(0,a.k)(s),v=!(0,a.k)(l),x=!(0,a.k)(u),_=(m-y)/(f+1);let w,S,k,O,M=(0,a.aH)((m-y)/g/p)*p;if(M<i&&!b&&!v)return[{value:y},{value:m}];O=Math.ceil(m/M)-Math.floor(y/M),O>g&&(M=(0,a.aH)(O*M/g/p)*p),(0,a.k)(c)||(w=Math.pow(10,c),M=Math.ceil(M*w)/w),"ticks"===o?(S=Math.floor(y/M)*M,k=Math.ceil(m/M)*M):(S=y,k=m),b&&v&&r&&(0,a.aI)((l-s)/r,M/1e3)?(O=Math.round(Math.min((l-s)/M,h)),M=(l-s)/O,S=s,k=l):x?(S=b?s:S,k=v?l:k,O=u-1,M=(k-S)/O):(O=(k-S)/M,O=(0,a.aJ)(O,Math.round(O),M/1e3)?Math.round(O):Math.ceil(O));const P=Math.max((0,a.aK)(M),(0,a.aK)(S));w=Math.pow(10,(0,a.k)(c)?P:c),S=Math.round(S*w)/w,k=Math.round(k*w)/w;let A=0;for(b&&(d&&S!==s?(n.push({value:s}),S<s&&A++,(0,a.aJ)(Math.round((S+A*M)*w)/w,s,Ai(s,_,t))&&A++):S<s&&A++);A<O;++A)n.push({value:Math.round((S+A*M)*w)/w});return v&&d&&k!==l?n.length&&(0,a.aJ)(n[n.length-1].value,l,Ai(l,_,t))?n[n.length-1].value=l:n.push({value:l}):v&&k!==l||n.push({value:k}),n}function Ai(t,e,{horizontal:n,minRotation:i}){const o=(0,a.t)(i),r=(n?Math.sin(o):Math.cos(o))||.001,s=.75*e*(""+t).length;return Math.min(e/r,s)}s(Mi,"id","category"),s(Mi,"defaults",{ticks:{callback:Oi}});class Ei extends ke{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return(0,a.k)(t)||("number"===typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const r=t=>i=e?i:t,s=t=>o=n?o:t;if(t){const t=(0,a.s)(i),e=(0,a.s)(o);t<0&&e<0?s(0):t>0&&e>0&&r(0)}if(i===o){let e=0===o?1:Math.abs(.05*o);s(o+e),t||r(i-e)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i={maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},o=this._range||this,r=Pi(i,o);return"ticks"===t.bounds&&(0,a.aG)(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return(0,a.o)(t,this.chart.options.locale,this.options.ticks.format)}}class Ci extends Ei{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,a.g)(t)?t:0,this.max=(0,a.g)(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=(0,a.t)(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}s(Ci,"id","linear"),s(Ci,"defaults",{ticks:{callback:a.aL.formatters.numeric}});const Ti=t=>Math.floor((0,a.aM)(t)),ji=(t,e)=>Math.pow(10,Ti(t)+e);function Di(t){const e=t/Math.pow(10,Ti(t));return 1===e}function Ii(t,e,n){const i=Math.pow(10,n),o=Math.floor(t/i),r=Math.ceil(e/i);return r-o}function Ri(t,e){const n=e-t;let i=Ti(n);while(Ii(t,e,i)>10)i++;while(Ii(t,e,i)<10)i--;return Math.min(i,Ti(t))}function Li(t,{min:e,max:n}){e=(0,a.O)(t.min,e);const i=[],o=Ti(e);let r=Ri(e,n),s=r<0?Math.pow(10,Math.abs(r)):1;const l=Math.pow(10,r),c=o>r?Math.pow(10,o):0,u=Math.round((e-c)*s)/s,h=Math.floor((e-c)/l/10)*l*10;let f=Math.floor((u-h)/Math.pow(10,r)),d=(0,a.O)(t.min,Math.round((c+h+f*Math.pow(10,r))*s)/s);while(d<n)i.push({value:d,major:Di(d),significand:f}),f>=10?f=f<15?15:20:f++,f>=20&&(r++,f=2,s=r>=0?1:s),d=Math.round((c+h+f*Math.pow(10,r))*s)/s;const p=(0,a.O)(t.max,d);return i.push({value:p,major:Di(p),significand:f}),i}class Fi extends ke{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Ei.prototype.parse.apply(this,[t,e]);if(0!==n)return(0,a.g)(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,a.g)(t)?Math.max(0,t):null,this.max=(0,a.g)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!(0,a.g)(this._userMin)&&(this.min=t===ji(this.min,0)?ji(this.min,-1):ji(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const o=e=>n=t?n:e,r=t=>i=e?i:t;n===i&&(n<=0?(o(1),r(10)):(o(ji(n,-1)),r(ji(i,1)))),n<=0&&o(ji(i,-1)),i<=0&&r(ji(n,1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e={min:this._userMin,max:this._userMax},n=Li(e,this);return"ticks"===t.bounds&&(0,a.aG)(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}getLabelForValue(t){return void 0===t?"0":(0,a.o)(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=(0,a.aM)(t),this._valueRange=(0,a.aM)(this.max)-(0,a.aM)(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:((0,a.aM)(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Vi(t){const e=t.ticks;if(e.display&&t.display){const t=(0,a.E)(e.backdropPadding);return(0,a.v)(e.font&&e.font.size,a.d.font.size)+t.height}return 0}function Ni(t,e,n){return n=(0,a.b)(n)?n:[n],{w:(0,a.aN)(t,e.string,n),h:n.length*e.lineHeight}}function $i(t,e,n,i,o){return t===i||t===o?{start:e-n/2,end:e+n/2}:t<i||t>o?{start:e-n,end:e}:{start:e,end:e+n}}function Bi(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],o=[],r=t._pointLabels.length,s=t.options.pointLabels,l=s.centerPointLabels?a.P/r:0;for(let c=0;c<r;c++){const r=s.setContext(t.getPointLabelContext(c));o[c]=r.padding;const u=t.getPointPosition(c,t.drawingArea+o[c],l),h=(0,a.a0)(r.font),f=Ni(t.ctx,h,t._pointLabels[c]);i[c]=f;const d=(0,a.ay)(t.getIndexAngle(c)+l),p=Math.round((0,a.U)(d)),g=$i(p,u.x,f.w,0,180),y=$i(p,u.y,f.h,90,270);zi(n,e,d,g,y)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=Wi(t,i,o)}function zi(t,e,n,i,o){const r=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let a=0,l=0;i.start<e.l?(a=(e.l-i.start)/r,t.l=Math.min(t.l,e.l-a)):i.end>e.r&&(a=(i.end-e.r)/r,t.r=Math.max(t.r,e.r+a)),o.start<e.t?(l=(e.t-o.start)/s,t.t=Math.min(t.t,e.t-l)):o.end>e.b&&(l=(o.end-e.b)/s,t.b=Math.max(t.b,e.b+l))}function Wi(t,e,n){const i=[],o=t._pointLabels.length,r=t.options,s=Vi(r)/2,l=t.drawingArea,c=r.pointLabels.centerPointLabels?a.P/o:0;for(let u=0;u<o;u++){const o=t.getPointPosition(u,l+s+n[u],c),r=Math.round((0,a.U)((0,a.ay)(o.angle+a.H))),h=e[u],f=qi(o.y,h.h,r),d=Hi(r),p=Ui(o.x,h.w,d);i.push({x:o.x,y:f,textAlign:d,left:p,top:f,right:p+h.w,bottom:f+h.h})}return i}function Hi(t){return 0===t||180===t?"center":t<180?"left":"right"}function Ui(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function qi(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Yi(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let o=e-1;o>=0;o--){const e=i.setContext(t.getPointLabelContext(o)),r=(0,a.a0)(e.font),{x:s,y:l,textAlign:c,left:u,top:h,right:f,bottom:d}=t._pointLabelItems[o],{backdropColor:p}=e;if(!(0,a.k)(p)){const t=(0,a.aw)(e.borderRadius),i=(0,a.E)(e.backdropPadding);n.fillStyle=p;const o=u-i.left,r=h-i.top,s=f-u+i.width,l=d-h+i.height;Object.values(t).some((t=>0!==t))?(n.beginPath(),(0,a.au)(n,{x:o,y:r,w:s,h:l,radius:t}),n.fill()):n.fillRect(o,r,s,l)}(0,a.Z)(n,t._pointLabels[o],s,l+r.lineHeight/2,r,{color:e.color,textAlign:c,textBaseline:"middle"})}}function Xi(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,a.T);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let r=1;r<i;r++)n=t.getPointPosition(r,e),o.lineTo(n.x,n.y)}}function Gi(t,e,n,i,o){const r=t.ctx,s=e.circular,{color:a,lineWidth:l}=e;!s&&!i||!a||!l||n<0||(r.save(),r.strokeStyle=a,r.lineWidth=l,r.setLineDash(o.dash),r.lineDashOffset=o.dashOffset,r.beginPath(),Xi(t,n,s,i),r.closePath(),r.stroke(),r.restore())}function Ji(t,e,n){return(0,a.j)(t,{label:n,index:e,type:"pointLabel"})}s(Fi,"id","logarithmic"),s(Fi,"defaults",{ticks:{callback:a.aL.formatters.logarithmic,major:{enabled:!0}}});class Ki extends Ei{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=(0,a.E)(Vi(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=(0,a.g)(t)&&!isNaN(t)?t:0,this.max=(0,a.g)(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Vi(this.options))}generateTickLabels(t){Ei.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=(0,a.Q)(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Bi(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){const e=a.T/(this._pointLabels.length||1),n=this.options.startAngle||0;return(0,a.ay)(t*e+(0,a.t)(n))}getDistanceFromCenterForValue(t){if((0,a.k)(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if((0,a.k)(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return Ji(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-a.H+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:i,bottom:o}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),Xi(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i,border:o}=e,r=this._pointLabels.length;let s,a,l;if(e.pointLabels.display&&Yi(this,r),i.display&&this.ticks.forEach(((t,e)=>{if(0!==e){a=this.getDistanceFromCenterForValue(t.value);const n=this.getContext(e),s=i.setContext(n),l=o.setContext(n);Gi(this,s,a,r,l)}})),n.display){for(t.save(),s=r-1;s>=0;s--){const i=n.setContext(this.getPointLabelContext(s)),{color:o,lineWidth:r}=i;r&&o&&(t.lineWidth=r,t.strokeStyle=o,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(s,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((i,s)=>{if(0===s&&!e.reverse)return;const l=n.setContext(this.getContext(s)),c=(0,a.a0)(l.font);if(o=this.getDistanceFromCenterForValue(this.ticks[s].value),l.showLabelBackdrop){t.font=c.string,r=t.measureText(i.label).width,t.fillStyle=l.backdropColor;const e=(0,a.E)(l.backdropPadding);t.fillRect(-r/2-e.left,-o-c.size/2-e.top,r+e.width,c.size+e.height)}(0,a.Z)(t,i.label,0,-o,c,{color:l.color})})),t.restore()}drawTitle(){}}s(Ki,"id","radialLinear"),s(Ki,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:a.aL.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),s(Ki,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),s(Ki,"descriptors",{angleLines:{_fallback:"grid"}});const Qi={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Zi=Object.keys(Qi);function to(t,e){return t-e}function eo(t,e){if((0,a.k)(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:r}=t._parseOpts;let s=e;return"function"===typeof i&&(s=i(s)),(0,a.g)(s)||(s="string"===typeof i?n.parse(s,i):n.parse(s)),null===s?null:(o&&(s="week"!==o||!(0,a.x)(r)&&!0!==r?n.startOf(s,o):n.startOf(s,"isoWeek",r)),+s)}function no(t,e,n,i){const o=Zi.length;for(let r=Zi.indexOf(t);r<o-1;++r){const t=Qi[Zi[r]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return Zi[r]}return Zi[o-1]}function io(t,e,n,i,o){for(let r=Zi.length-1;r>=Zi.indexOf(n);r--){const n=Zi[r];if(Qi[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return Zi[n?Zi.indexOf(n):0]}function oo(t){for(let e=Zi.indexOf(t)+1,n=Zi.length;e<n;++e)if(Qi[Zi[e]].common)return Zi[e]}function ro(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=(0,a.aP)(n,e),r=n[i]>=e?n[i]:n[o];t[r]=!0}}else t[e]=!0}function so(t,e,n,i){const o=t._adapter,r=+o.startOf(e[0].value,i),s=e[e.length-1].value;let a,l;for(a=r;a<=s;a=+o.add(a,1,i))l=n[a],l>=0&&(e[l].major=!0);return e}function ao(t,e,n){const i=[],o={},r=e.length;let s,a;for(s=0;s<r;++s)a=e[s],o[a]=s,i.push({value:a,major:!1});return 0!==r&&n?so(t,i,o,n):i}class lo extends ke{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const n=t.time||(t.time={}),i=this._adapter=new lt._date(t.adapters.date);i.init(e),(0,a.ab)(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:eo(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:o,minDefined:r,maxDefined:s}=this.getUserBounds();function l(t){r||isNaN(t.min)||(i=Math.min(i,t.min)),s||isNaN(t.max)||(o=Math.max(o,t.max))}r&&s||(l(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(this.getMinMax(!1))),i=(0,a.g)(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=(0,a.g)(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,r=this.max,s=(0,a.aO)(i,o,r);return this._unit=e.unit||(n.autoSkip?no(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):io(this,s.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?oo(this._unit):void 0,this.initOffsets(i),t.reverse&&s.reverse(),ao(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,n,i=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;i=(0,a.S)(i,0,r),o=(0,a.S)(o,0,r),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,o=i.time,r=o.unit||no(o.minUnit,e,n,this._getLabelCapacity(e)),s=(0,a.v)(i.ticks.stepSize,1),l="week"===r&&o.isoWeekday,c=(0,a.x)(l)||!0===l,u={};let h,f,d=e;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(n,e,r)>1e5*s)throw new Error(e+" and "+n+" are too far apart with stepSize of "+s+" "+r);const p="data"===i.ticks.source&&this.getDataTimestamps();for(h=d,f=0;h<n;h=+t.add(h,s,r),f++)ro(u,h,p);return h!==n&&"ticks"!==i.bounds&&1!==f||ro(u,h,p),Object.keys(u).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}format(t,e){const n=this.options,i=n.time.displayFormats,o=this._unit,r=e||i[o];return this._adapter.format(t,r)}_tickFormatFunction(t,e,n,i){const o=this.options,r=o.ticks.callback;if(r)return(0,a.Q)(r,[t,e,n],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],h=c&&s[c],f=n[e],d=c&&h&&f&&f.major;return this._adapter.format(t,i||(d?h:u))}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=(0,a.t)(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(i),r=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:n*o+s*r,h:n*r+s*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,ao(this,[t],this._majorUnit),i),r=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return s>0?s:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(eo(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return(0,a._)(t.sort(to))}}function co(t,e,n){let i,o,r,s,l=0,c=t.length-1;n?(e>=t[l].pos&&e<=t[c].pos&&({lo:l,hi:c}=(0,a.B)(t,"pos",e)),({pos:i,time:r}=t[l]),({pos:o,time:s}=t[c])):(e>=t[l].time&&e<=t[c].time&&({lo:l,hi:c}=(0,a.B)(t,"time",e)),({time:i,pos:r}=t[l]),({time:o,pos:s}=t[c]));const u=o-i;return u?r+(s-r)*(e-i)/u:r}s(lo,"id","time"),s(lo,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});class uo extends lo{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=co(e,this.min),this._tableRange=co(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],o=[];let r,s,a,l,c;for(r=0,s=t.length;r<s;++r)l=t[r],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(r=0,s=i.length;r<s;++r)c=i[r+1],a=i[r-1],l=i[r],Math.round((c+a)/2)!==l&&o.push({time:l,pos:r/(s-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(co(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return co(this._table,n*this._tableRange+this._minPos,!0)}}s(uo,"id","timeseries"),s(uo,"defaults",lo.defaults)},6494:function(t,e,n){"use strict";n.d(e,{$:function(){return He},A:function(){return Kt},B:function(){return Jt},C:function(){return ze},D:function(){return Bt},E:function(){return sn},F:function(){return rt},G:function(){return Zn},H:function(){return Pt},I:function(){return zn},J:function(){return ni},K:function(){return ei},L:function(){return oe},M:function(){return Bn},N:function(){return It},O:function(){return tt},P:function(){return wt},Q:function(){return ot},R:function(){return cn},S:function(){return qt},T:function(){return St},U:function(){return Nt},V:function(){return Le},W:function(){return Yt},X:function(){return Ve},Y:function(){return We},Z:function(){return Ye},_:function(){return ne},a:function(){return ln},a0:function(){return an},a1:function(){return se},a2:function(){return ae},a3:function(){return Ee},a4:function(){return ut},a5:function(){return mt},a6:function(){return Ce},a7:function(){return vt},a8:function(){return fn},a9:function(){return hn},aA:function(){return ci},aB:function(){return le},aC:function(){return ui},aD:function(){return Be},aE:function(){return zt},aF:function(){return X},aG:function(){return Ft},aH:function(){return Dt},aI:function(){return Lt},aJ:function(){return jt},aK:function(){return $t},aL:function(){return Pe},aM:function(){return Ct},aN:function(){return Fe},aO:function(){return Qt},aP:function(){return Gt},aa:function(){return dn},ab:function(){return ht},ac:function(){return G},ad:function(){return re},ae:function(){return ti},af:function(){return Ne},ag:function(){return xt},ah:function(){return st},ai:function(){return _t},aj:function(){return Xt},ak:function(){return nn},al:function(){return $n},am:function(){return bi},an:function(){return gi},ao:function(){return oi},ap:function(){return ri},aq:function(){return ii},ar:function(){return Ue},as:function(){return qe},at:function(){return $e},au:function(){return Ke},av:function(){return on},aw:function(){return rn},ax:function(){return pi},ay:function(){return Ht},az:function(){return li},b:function(){return K},b3:function(){return Mt},b4:function(){return At},b5:function(){return Et},c:function(){return ye},d:function(){return Ie},e:function(){return pe},f:function(){return yt},g:function(){return Z},h:function(){return bt},i:function(){return Q},j:function(){return un},k:function(){return J},l:function(){return te},m:function(){return nt},n:function(){return it},o:function(){return ke},p:function(){return Ut},q:function(){return ce},r:function(){return ie},s:function(){return Tt},t:function(){return Vt},u:function(){return ee},v:function(){return et},w:function(){return ue},x:function(){return Rt},y:function(){return Cn},z:function(){return Jn}});n(7658);
/*!
* @kurkle/color v0.3.2
* https://github.com/kurkle/color#readme
* (c) 2023 Jukka Kurkela
* Released under the MIT License
*/
function i(t){return t+.5|0}const o=(t,e,n)=>Math.max(Math.min(t,n),e);function r(t){return o(i(2.55*t),0,255)}function s(t){return o(i(255*t),0,255)}function a(t){return o(i(t/2.55)/100,0,1)}function l(t){return o(i(100*t),0,100)}const c={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},u=[..."0123456789ABCDEF"],h=t=>u[15&t],f=t=>u[(240&t)>>4]+u[15&t],d=t=>(240&t)>>4===(15&t),p=t=>d(t.r)&&d(t.g)&&d(t.b)&&d(t.a);function g(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*c[t[1]],g:255&17*c[t[2]],b:255&17*c[t[3]],a:5===n?17*c[t[4]]:255}:7!==n&&9!==n||(e={r:c[t[1]]<<4|c[t[2]],g:c[t[3]]<<4|c[t[4]],b:c[t[5]]<<4|c[t[6]],a:9===n?c[t[7]]<<4|c[t[8]]:255})),e}const y=(t,e)=>t<255?e(t):"";function m(t){var e=p(t)?h:f;return t?"#"+e(t.r)+e(t.g)+e(t.b)+y(t.a,e):void 0}const b=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function v(t,e,n){const i=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function x(t,e,n){const i=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function _(t,e,n){const i=v(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)i[o]*=1-e-n,i[o]+=e;return i}function w(t,e,n,i,o){return t===o?(e-n)/i+(e<n?6:0):e===o?(n-t)/i+2:(t-e)/i+4}function S(t){const e=255,n=t.r/e,i=t.g/e,o=t.b/e,r=Math.max(n,i,o),s=Math.min(n,i,o),a=(r+s)/2;let l,c,u;return r!==s&&(u=r-s,c=a>.5?u/(2-r-s):u/(r+s),l=w(n,i,o,u,r),l=60*l+.5),[0|l,c||0,a]}function k(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(s)}function O(t,e,n){return k(v,t,e,n)}function M(t,e,n){return k(_,t,e,n)}function P(t,e,n){return k(x,t,e,n)}function A(t){return(t%360+360)%360}function E(t){const e=b.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?r(+e[5]):s(+e[5]));const o=A(+e[2]),a=+e[3]/100,l=+e[4]/100;return n="hwb"===e[1]?M(o,a,l):"hsv"===e[1]?P(o,a,l):O(o,a,l),{r:n[0],g:n[1],b:n[2],a:i}}function C(t,e){var n=S(t);n[0]=A(n[0]+e),n=O(n),t.r=n[0],t.g=n[1],t.b=n[2]}function T(t){if(!t)return;const e=S(t),n=e[0],i=l(e[1]),o=l(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${a(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}const j={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},D={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function I(){const t={},e=Object.keys(D),n=Object.keys(j);let i,o,r,s,a;for(i=0;i<e.length;i++){for(s=a=e[i],o=0;o<n.length;o++)r=n[o],a=a.replace(r,j[r]);r=parseInt(D[s],16),t[a]=[r>>16&255,r>>8&255,255&r]}return t}let R;function L(t){R||(R=I(),R.transparent=[0,0,0,0]);const e=R[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const F=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function V(t){const e=F.exec(t);let n,i,s,a=255;if(e){if(e[7]!==n){const t=+e[7];a=e[8]?r(t):o(255*t,0,255)}return n=+e[1],i=+e[3],s=+e[5],n=255&(e[2]?r(n):o(n,0,255)),i=255&(e[4]?r(i):o(i,0,255)),s=255&(e[6]?r(s):o(s,0,255)),{r:n,g:i,b:s,a:a}}}function N(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${a(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const $=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,B=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function z(t,e,n){const i=B(a(t.r)),o=B(a(t.g)),r=B(a(t.b));return{r:s($(i+n*(B(a(e.r))-i))),g:s($(o+n*(B(a(e.g))-o))),b:s($(r+n*(B(a(e.b))-r))),a:t.a+n*(e.a-t.a)}}function W(t,e,n){if(t){let i=S(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=O(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function H(t,e){return t?Object.assign(e||{},t):t}function U(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=s(t[3]))):(e=H(t,{r:0,g:0,b:0,a:1}),e.a=s(e.a)),e}function q(t){return"r"===t.charAt(0)?V(t):E(t)}class Y{constructor(t){if(t instanceof Y)return t;const e=typeof t;let n;"object"===e?n=U(t):"string"===e&&(n=g(t)||L(t)||q(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=H(this._rgb);return t&&(t.a=a(t.a)),t}set rgb(t){this._rgb=U(t)}rgbString(){return this._valid?N(this._rgb):void 0}hexString(){return this._valid?m(this._rgb):void 0}hslString(){return this._valid?T(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let o;const r=e===o?.5:e,s=2*r-1,a=n.a-i.a,l=((s*a===-1?s:(s+a)/(1+s*a))+1)/2;o=1-l,n.r=255&l*n.r+o*i.r+.5,n.g=255&l*n.g+o*i.g+.5,n.b=255&l*n.b+o*i.b+.5,n.a=r*n.a+(1-r)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=z(this._rgb,t._rgb,e)),this}clone(){return new Y(this.rgb)}alpha(t){return this._rgb.a=s(t),this}clearer(t){const e=this._rgb;return e.a*=1-t,this}greyscale(){const t=this._rgb,e=i(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){const e=this._rgb;return e.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return W(this._rgb,2,t),this}darken(t){return W(this._rgb,2,-t),this}saturate(t){return W(this._rgb,1,t),this}desaturate(t){return W(this._rgb,1,-t),this}rotate(t){return C(this._rgb,t),this}}
/*!
* Chart.js v4.2.1
* https://www.chartjs.org
* (c) 2023 Chart.js Contributors
* Released under the MIT License
*/
function X(){}const G=(()=>{let t=0;return()=>t++})();function J(t){return null===t||"undefined"===typeof t}function K(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function Q(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Z(t){return("number"===typeof t||t instanceof Number)&&isFinite(+t)}function tt(t,e){return Z(t)?t:e}function et(t,e){return"undefined"===typeof t?e:t}const nt=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,it=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function ot(t,e,n){if(t&&"function"===typeof t.call)return t.apply(n,e)}function rt(t,e,n,i){let o,r,s;if(K(t))if(r=t.length,i)for(o=r-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;o<r;o++)e.call(n,t[o],o);else if(Q(t))for(s=Object.keys(t),r=s.length,o=0;o<r;o++)e.call(n,t[s[o]],s[o])}function st(t,e){let n,i,o,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(o=t[n],r=e[n],o.datasetIndex!==r.datasetIndex||o.index!==r.index)return!1;return!0}function at(t){if(K(t))return t.map(at);if(Q(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let o=0;for(;o<i;++o)e[n[o]]=at(t[n[o]]);return e}return t}function lt(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function ct(t,e,n,i){if(!lt(t))return;const o=e[t],r=n[t];Q(o)&&Q(r)?ut(o,r,i):e[t]=at(r)}function ut(t,e,n){const i=K(e)?e:[e],o=i.length;if(!Q(t))return t;n=n||{};const r=n.merger||ct;let s;for(let a=0;a<o;++a){if(s=i[a],!Q(s))continue;const e=Object.keys(s);for(let i=0,o=e.length;i<o;++i)r(e[i],t,s,n)}return t}function ht(t,e){return ut(t,e,{merger:ft})}function ft(t,e,n){if(!lt(t))return;const i=e[t],o=n[t];Q(i)&&Q(o)?ht(i,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=at(o))}const dt={"":t=>t,x:t=>t.x,y:t=>t.y};function pt(t){const e=t.split("."),n=[];let i="";for(const o of e)i+=o,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function gt(t){const e=pt(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}function yt(t,e){const n=dt[e]||(dt[e]=gt(e));return n(t)}function mt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const bt=t=>"undefined"!==typeof t,vt=t=>"function"===typeof t,xt=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function _t(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const wt=Math.PI,St=2*wt,kt=St+wt,Ot=Number.POSITIVE_INFINITY,Mt=wt/180,Pt=wt/2,At=wt/4,Et=2*wt/3,Ct=Math.log10,Tt=Math.sign;function jt(t,e,n){return Math.abs(t-e)<n}function Dt(t){const e=Math.round(t);t=jt(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Ct(t))),i=t/n,o=i<=1?1:i<=2?2:i<=5?5:10;return o*n}function It(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}function Rt(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Lt(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function Ft(t,e,n){let i,o,r;for(i=0,o=t.length;i<o;i++)r=t[i][n],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}function Vt(t){return t*(wt/180)}function Nt(t){return t*(180/wt)}function $t(t){if(!Z(t))return;let e=1,n=0;while(Math.round(t*e)/e!==t)e*=10,n++;return n}function Bt(t,e){const n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i);let r=Math.atan2(i,n);return r<-.5*wt&&(r+=St),{angle:r,distance:o}}function zt(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Wt(t,e){return(t-e+kt)%St-wt}function Ht(t){return(t%St+St)%St}function Ut(t,e,n,i){const o=Ht(t),r=Ht(e),s=Ht(n),a=Ht(r-o),l=Ht(s-o),c=Ht(o-r),u=Ht(o-s);return o===r||o===s||i&&r===s||a>l&&c<u}function qt(t,e,n){return Math.max(e,Math.min(n,t))}function Yt(t){return qt(t,-32768,32767)}function Xt(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Gt(t,e,n){n=n||(n=>t[n]<e);let i,o=t.length-1,r=0;while(o-r>1)i=r+o>>1,n(i)?r=i:o=i;return{lo:r,hi:o}}const Jt=(t,e,n,i)=>Gt(t,n,i?i=>{const o=t[i][e];return o<n||o===n&&t[i+1][e]===n}:i=>t[i][e]<n),Kt=(t,e,n)=>Gt(t,n,(i=>t[i][e]>=n));function Qt(t,e,n){let i=0,o=t.length;while(i<o&&t[i]<e)i++;while(o>i&&t[o-1]>n)o--;return i>0||o<t.length?t.slice(i,o):t}const Zt=["push","pop","shift","splice","unshift"];function te(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Zt.forEach((e=>{const n="_onData"+mt(e),i=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const o=i.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"===typeof t[n]&&t[n](...e)})),o}})})))}function ee(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,o=i.indexOf(e);-1!==o&&i.splice(o,1),i.length>0||(Zt.forEach((e=>{delete t[e]})),delete t._chartjs)}function ne(t){const e=new Set;let n,i;for(n=0,i=t.length;n<i;++n)e.add(t[n]);return e.size===i?t:Array.from(e)}const ie=function(){return"undefined"===typeof window?function(t){return t()}:window.requestAnimationFrame}();function oe(t,e){let n=[],i=!1;return function(...o){n=o,i||(i=!0,ie.call(window,(()=>{i=!1,t.apply(e,n)})))}}function re(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const se=t=>"start"===t?"left":"end"===t?"right":"center",ae=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,le=(t,e,n,i)=>{const o=i?"left":"right";return t===o?n:"center"===t?(e+n)/2:e};function ce(t,e,n){const i=e.length;let o=0,r=i;if(t._sorted){const{iScale:s,_parsed:a}=t,l=s.axis,{min:c,max:u,minDefined:h,maxDefined:f}=s.getUserBounds();h&&(o=qt(Math.min(Jt(a,s.axis,c).lo,n?i:Jt(e,l,s.getPixelForValue(c)).lo),0,i-1)),r=f?qt(Math.max(Jt(a,s.axis,u,!0).hi+1,n?0:Jt(e,l,s.getPixelForValue(u),!0).hi+1),o,i)-o:i-o}return{start:o,count:r}}function ue(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=o,!0;const r=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,o),r}const he=t=>0===t||1===t,fe=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*St/n),de=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*St/n)+1,pe={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Pt),easeOutSine:t=>Math.sin(t*Pt),easeInOutSine:t=>-.5*(Math.cos(wt*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>he(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>he(t)?t:fe(t,.075,.3),easeOutElastic:t=>he(t)?t:de(t,.075,.3),easeInOutElastic(t){const e=.1125,n=.45;return he(t)?t:t<.5?.5*fe(2*t,e,n):.5+.5*de(2*t-1,e,n)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-pe.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*pe.easeInBounce(2*t):.5*pe.easeOutBounce(2*t-1)+.5};function ge(t){if(t&&"object"===typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function ye(t){return ge(t)?t:new Y(t)}function me(t){return ge(t)?t:new Y(t).saturate(.5).darken(.1).hexString()}const be=["x","y","borderWidth","radius","tension"],ve=["color","borderColor","backgroundColor"];function xe(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:ve},numbers:{type:"number",properties:be}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})}function _e(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const we=new Map;function Se(t,e){e=e||{};const n=t+JSON.stringify(e);let i=we.get(n);return i||(i=new Intl.NumberFormat(t,e),we.set(n,i)),i}function ke(t,e,n){return Se(e,n).format(t)}const Oe={values(t){return K(t)?t:""+t},numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let o,r=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),r=Me(t,n)}const s=Ct(Math.abs(r)),a=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:o,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),ke(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(Ct(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?Oe.numeric.call(this,t,e,n):""}};function Me(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var Pe={formatters:Oe};function Ae(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Pe.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}const Ee=Object.create(null),Ce=Object.create(null);function Te(t,e){if(!e)return t;const n=e.split(".");for(let i=0,o=n.length;i<o;++i){const e=n[i];t=t[e]||(t[e]=Object.create(null))}return t}function je(t,e,n){return"string"===typeof e?ut(Te(t,e),n):ut(Te(t,""),e)}class De{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>me(e.backgroundColor),this.hoverBorderColor=(t,e)=>me(e.borderColor),this.hoverColor=(t,e)=>me(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return je(this,t,e)}get(t){return Te(this,t)}describe(t,e){return je(Ce,t,e)}override(t,e){return je(Ee,t,e)}route(t,e,n,i){const o=Te(this,t),r=Te(this,n),s="_"+e;Object.defineProperties(o,{[s]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[s],e=r[i];return Q(t)?Object.assign({},e,t):et(t,e)},set(t){this[s]=t}}})}apply(t){t.forEach((t=>t(this)))}}var Ie=new De({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[xe,_e,Ae]);function Re(t){return!t||J(t.size)||J(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Le(t,e,n,i,o){let r=e[o];return r||(r=e[o]=t.measureText(o).width,n.push(o)),r>i&&(i=r),i}function Fe(t,e,n,i){i=i||{};let o=i.data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(o=i.data={},r=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let s=0;const a=n.length;let l,c,u,h,f;for(l=0;l<a;l++)if(h=n[l],void 0!==h&&null!==h&&!0!==K(h))s=Le(t,o,r,s,h);else if(K(h))for(c=0,u=h.length;c<u;c++)f=h[c],void 0===f||null===f||K(f)||(s=Le(t,o,r,s,f));t.restore();const d=r.length/2;if(d>n.length){for(l=0;l<d;l++)delete o[r[l]];r.splice(0,d)}return s}function Ve(t,e,n){const i=t.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((e-o)*i)/i+o}function Ne(t,e){e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function $e(t,e,n,i){Be(t,e,n,i,null)}function Be(t,e,n,i,o){let r,s,a,l,c,u,h,f;const d=e.pointStyle,p=e.rotation,g=e.radius;let y=(p||0)*Mt;if(d&&"object"===typeof d&&(r=d.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return t.save(),t.translate(n,i),t.rotate(y),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(g)||g<=0)){switch(t.beginPath(),d){default:o?t.ellipse(n,i,o/2,g,0,0,St):t.arc(n,i,g,0,St),t.closePath();break;case"triangle":u=o?o/2:g,t.moveTo(n+Math.sin(y)*u,i-Math.cos(y)*g),y+=Et,t.lineTo(n+Math.sin(y)*u,i-Math.cos(y)*g),y+=Et,t.lineTo(n+Math.sin(y)*u,i-Math.cos(y)*g),t.closePath();break;case"rectRounded":c=.516*g,l=g-c,s=Math.cos(y+At)*l,h=Math.cos(y+At)*(o?o/2-c:l),a=Math.sin(y+At)*l,f=Math.sin(y+At)*(o?o/2-c:l),t.arc(n-h,i-a,c,y-wt,y-Pt),t.arc(n+f,i-s,c,y-Pt,y),t.arc(n+h,i+a,c,y,y+Pt),t.arc(n-f,i+s,c,y+Pt,y+wt),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,u=o?o/2:l,t.rect(n-u,i-l,2*u,2*l);break}y+=At;case"rectRot":h=Math.cos(y)*(o?o/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,f=Math.sin(y)*(o?o/2:g),t.moveTo(n-h,i-a),t.lineTo(n+f,i-s),t.lineTo(n+h,i+a),t.lineTo(n-f,i+s),t.closePath();break;case"crossRot":y+=At;case"cross":h=Math.cos(y)*(o?o/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,f=Math.sin(y)*(o?o/2:g),t.moveTo(n-h,i-a),t.lineTo(n+h,i+a),t.moveTo(n+f,i-s),t.lineTo(n-f,i+s);break;case"star":h=Math.cos(y)*(o?o/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,f=Math.sin(y)*(o?o/2:g),t.moveTo(n-h,i-a),t.lineTo(n+h,i+a),t.moveTo(n+f,i-s),t.lineTo(n-f,i+s),y+=At,h=Math.cos(y)*(o?o/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,f=Math.sin(y)*(o?o/2:g),t.moveTo(n-h,i-a),t.lineTo(n+h,i+a),t.moveTo(n+f,i-s),t.lineTo(n-f,i+s);break;case"line":s=o?o/2:Math.cos(y)*g,a=Math.sin(y)*g,t.moveTo(n-s,i-a),t.lineTo(n+s,i+a);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(y)*(o?o/2:g),i+Math.sin(y)*g);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function ze(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function We(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function He(t){t.restore()}function Ue(t,e,n,i,o){if(!e)return t.lineTo(n.x,n.y);if("middle"===o){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===o!==!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function qe(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function Ye(t,e,n,i,o,r={}){const s=K(e)?e:[e],a=r.strokeWidth>0&&""!==r.strokeColor;let l,c;for(t.save(),t.font=o.string,Xe(t,r),l=0;l<s.length;++l)c=s[l],r.backdrop&&Je(t,r.backdrop),a&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),J(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(c,n,i,r.maxWidth)),t.fillText(c,n,i,r.maxWidth),Ge(t,n,i,c,r),i+=o.lineHeight;t.restore()}function Xe(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),J(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function Ge(t,e,n,i,o){if(o.strikethrough||o.underline){const r=t.measureText(i),s=e-r.actualBoundingBoxLeft,a=e+r.actualBoundingBoxRight,l=n-r.actualBoundingBoxAscent,c=n+r.actualBoundingBoxDescent,u=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(s,u),t.lineTo(a,u),t.stroke()}}function Je(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function Ke(t,e){const{x:n,y:i,w:o,h:r,radius:s}=e;t.arc(n+s.topLeft,i+s.topLeft,s.topLeft,-Pt,wt,!0),t.lineTo(n,i+r-s.bottomLeft),t.arc(n+s.bottomLeft,i+r-s.bottomLeft,s.bottomLeft,wt,Pt,!0),t.lineTo(n+o-s.bottomRight,i+r),t.arc(n+o-s.bottomRight,i+r-s.bottomRight,s.bottomRight,Pt,0,!0),t.lineTo(n+o,i+s.topRight),t.arc(n+o-s.topRight,i+s.topRight,s.topRight,0,-Pt,!0),t.lineTo(n+s.topLeft,i)}const Qe=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Ze=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function tn(t,e){const n=(""+t).match(Qe);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const en=t=>+t||0;function nn(t,e){const n={},i=Q(e),o=i?Object.keys(e):e,r=Q(t)?i?n=>et(t[n],t[e[n]]):e=>t[e]:()=>t;for(const s of o)n[s]=en(r(s));return n}function on(t){return nn(t,{top:"y",right:"x",bottom:"y",left:"x"})}function rn(t){return nn(t,["topLeft","topRight","bottomLeft","bottomRight"])}function sn(t){const e=on(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function an(t,e){t=t||{},e=e||Ie.font;let n=et(t.size,e.size);"string"===typeof n&&(n=parseInt(n,10));let i=et(t.style,e.style);i&&!(""+i).match(Ze)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const o={family:et(t.family,e.family),lineHeight:tn(et(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:et(t.weight,e.weight),string:""};return o.string=Re(o),o}function ln(t,e,n,i){let o,r,s,a=!0;for(o=0,r=t.length;o<r;++o)if(s=t[o],void 0!==s&&(void 0!==e&&"function"===typeof s&&(s=s(e),a=!1),void 0!==n&&K(s)&&(s=s[n%s.length],a=!1),void 0!==s))return i&&!a&&(i.cacheable=!1),s}function cn(t,e,n){const{min:i,max:o}=t,r=it(e,(o-i)/2),s=(t,e)=>n&&0===t?0:t+e;return{min:s(i,-Math.abs(r)),max:s(o,r)}}function un(t,e){return Object.assign(Object.create(t),e)}function hn(t,e=[""],n=t,i,o=(()=>t[0])){bt(i)||(i=Pn("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:o,override:o=>hn([o,...t],e,n,i)};return new Proxy(r,{deleteProperty(e,n){return delete e[n],delete e._keys,delete t[0][n],!0},get(n,i){return yn(n,i,(()=>Mn(i,e,t,n)))},getOwnPropertyDescriptor(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(t,e){return An(t).includes(e)},ownKeys(t){return An(t)},set(t,e,n){const i=t._storage||(t._storage=o());return t[e]=i[e]=n,delete t._keys,!0}})}function fn(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:dn(t,i),setContext:e=>fn(t,e,n,i),override:o=>fn(t.override(o),e,n,i)};return new Proxy(o,{deleteProperty(e,n){return delete e[n],delete t[n],!0},get(t,e,n){return yn(t,e,(()=>mn(t,e,n)))},getOwnPropertyDescriptor(e,n){return e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(e,n){return Reflect.has(t,n)},ownKeys(){return Reflect.ownKeys(t)},set(e,n,i){return t[n]=i,delete e[n],!0}})}function dn(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:i,isScriptable:vt(n)?n:()=>n,isIndexable:vt(i)?i:()=>i}}const pn=(t,e)=>t?t+mt(e):e,gn=(t,e)=>Q(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function yn(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function mn(t,e,n){const{_proxy:i,_context:o,_subProxy:r,_descriptors:s}=t;let a=i[e];return vt(a)&&s.isScriptable(e)&&(a=bn(e,a,t,n)),K(a)&&a.length&&(a=vn(e,a,t,s.isIndexable)),gn(e,a)&&(a=fn(a,o,r&&r[e],s)),a}function bn(t,e,n,i){const{_proxy:o,_context:r,_subProxy:s,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);return a.add(t),e=e(r,s||i),a.delete(t),gn(t,e)&&(e=Sn(o._scopes,o,t,e)),e}function vn(t,e,n,i){const{_proxy:o,_context:r,_subProxy:s,_descriptors:a}=n;if(bt(r.index)&&i(t))e=e[r.index%e.length];else if(Q(e[0])){const n=e,i=o._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=Sn(i,o,t,l);e.push(fn(n,r,s&&s[t],a))}}return e}function xn(t,e,n){return vt(t)?t(e,n):t}const _n=(t,e)=>!0===t?e:"string"===typeof t?yt(e,t):void 0;function wn(t,e,n,i,o){for(const r of e){const e=_n(n,r);if(e){t.add(e);const r=xn(e._fallback,n,o);if(bt(r)&&r!==n&&r!==i)return r}else if(!1===e&&bt(i)&&n!==i)return null}return!1}function Sn(t,e,n,i){const o=e._rootScopes,r=xn(e._fallback,n,i),s=[...t,...o],a=new Set;a.add(i);let l=kn(a,s,n,r||n,i);return null!==l&&((!bt(r)||r===n||(l=kn(a,s,r,l,i),null!==l))&&hn(Array.from(a),[""],o,r,(()=>On(e,n,i))))}function kn(t,e,n,i,o){while(n)n=wn(t,e,n,i,o);return n}function On(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];return K(o)&&Q(n)?n:o||{}}function Mn(t,e,n,i){let o;for(const r of e)if(o=Pn(pn(r,t),n),bt(o))return gn(t,o)?Sn(n,i,t,o):o}function Pn(t,e){for(const n of e){if(!n)continue;const e=n[t];if(bt(e))return e}}function An(t){let e=t._keys;return e||(e=t._keys=En(t._scopes)),e}function En(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}function Cn(t,e,n,i){const{iScale:o}=t,{key:r="r"}=this._parsing,s=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=e[c],s[a]={r:o.parse(yt(u,r),c)};return s}const Tn=Number.EPSILON||1e-14,jn=(t,e)=>e<t.length&&!t[e].skip&&t[e],Dn=t=>"x"===t?"y":"x";function In(t,e,n,i){const o=t.skip?e:t,r=e,s=n.skip?e:n,a=zt(r,o),l=zt(s,r);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const h=i*c,f=i*u;return{previous:{x:r.x-h*(s.x-o.x),y:r.y-h*(s.y-o.y)},next:{x:r.x+f*(s.x-o.x),y:r.y+f*(s.y-o.y)}}}function Rn(t,e,n){const i=t.length;let o,r,s,a,l,c=jn(t,0);for(let u=0;u<i-1;++u)l=c,c=jn(t,u+1),l&&c&&(jt(e[u],0,Tn)?n[u]=n[u+1]=0:(o=n[u]/e[u],r=n[u+1]/e[u],a=Math.pow(o,2)+Math.pow(r,2),a<=9||(s=3/Math.sqrt(a),n[u]=o*s*e[u],n[u+1]=r*s*e[u])))}function Ln(t,e,n="x"){const i=Dn(n),o=t.length;let r,s,a,l=jn(t,0);for(let c=0;c<o;++c){if(s=a,a=l,l=jn(t,c+1),!a)continue;const o=a[n],u=a[i];s&&(r=(o-s[n])/3,a[`cp1${n}`]=o-r,a[`cp1${i}`]=u-r*e[c]),l&&(r=(l[n]-o)/3,a[`cp2${n}`]=o+r,a[`cp2${i}`]=u+r*e[c])}}function Fn(t,e="x"){const n=Dn(e),i=t.length,o=Array(i).fill(0),r=Array(i);let s,a,l,c=jn(t,0);for(s=0;s<i;++s)if(a=l,l=c,c=jn(t,s+1),l){if(c){const t=c[e]-l[e];o[s]=0!==t?(c[n]-l[n])/t:0}r[s]=a?c?Tt(o[s-1])!==Tt(o[s])?0:(o[s-1]+o[s])/2:o[s-1]:o[s]}Rn(t,o,r),Ln(t,r,e)}function Vn(t,e,n){return Math.max(Math.min(t,n),e)}function Nn(t,e){let n,i,o,r,s,a=ze(t[0],e);for(n=0,i=t.length;n<i;++n)s=r,r=a,a=n<i-1&&ze(t[n+1],e),r&&(o=t[n],s&&(o.cp1x=Vn(o.cp1x,e.left,e.right),o.cp1y=Vn(o.cp1y,e.top,e.bottom)),a&&(o.cp2x=Vn(o.cp2x,e.left,e.right),o.cp2y=Vn(o.cp2y,e.top,e.bottom)))}function $n(t,e,n,i,o){let r,s,a,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)Fn(t,o);else{let n=i?t[t.length-1]:t[0];for(r=0,s=t.length;r<s;++r)a=t[r],l=In(n,a,t[Math.min(r+1,s-(i?0:1))%s],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,n=a}e.capBezierPoints&&Nn(t,n)}function Bn(){return"undefined"!==typeof window&&"undefined"!==typeof document}function zn(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Wn(t,e,n){let i;return"string"===typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const Hn=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function Un(t,e){return Hn(t).getPropertyValue(e)}const qn=["top","right","bottom","left"];function Yn(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const r=qn[o];i[r]=parseFloat(t[e+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const Xn=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function Gn(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:o,offsetY:r}=i;let s,a,l=!1;if(Xn(o,r,t.target))s=o,a=r;else{const t=e.getBoundingClientRect();s=i.clientX-t.left,a=i.clientY-t.top,l=!0}return{x:s,y:a,box:l}}function Jn(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,o=Hn(n),r="border-box"===o.boxSizing,s=Yn(o,"padding"),a=Yn(o,"border","width"),{x:l,y:c,box:u}=Gn(t,n),h=s.left+(u&&a.left),f=s.top+(u&&a.top);let{width:d,height:p}=e;return r&&(d-=s.width+a.width,p-=s.height+a.height),{x:Math.round((l-h)/d*n.width/i),y:Math.round((c-f)/p*n.height/i)}}function Kn(t,e,n){let i,o;if(void 0===e||void 0===n){const r=zn(t);if(r){const t=r.getBoundingClientRect(),s=Hn(r),a=Yn(s,"border","width"),l=Yn(s,"padding");e=t.width-l.width-a.width,n=t.height-l.height-a.height,i=Wn(s.maxWidth,r,"clientWidth"),o=Wn(s.maxHeight,r,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||Ot,maxHeight:o||Ot}}const Qn=t=>Math.round(10*t)/10;function Zn(t,e,n,i){const o=Hn(t),r=Yn(o,"margin"),s=Wn(o.maxWidth,t,"clientWidth")||Ot,a=Wn(o.maxHeight,t,"clientHeight")||Ot,l=Kn(t,e,n);let{width:c,height:u}=l;if("content-box"===o.boxSizing){const t=Yn(o,"border","width"),e=Yn(o,"padding");c-=e.width+t.width,u-=e.height+t.height}c=Math.max(0,c-r.width),u=Math.max(0,i?c/i:u-r.height),c=Qn(Math.min(c,s,l.maxWidth)),u=Qn(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Qn(c/2));const h=void 0!==e||void 0!==n;return h&&i&&l.height&&u>l.height&&(u=l.height,c=Qn(Math.floor(u*i))),{width:c,height:u}}function ti(t,e,n){const i=e||1,o=Math.floor(t.height*i),r=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||s.height!==o||s.width!==r)&&(t.currentDevicePixelRatio=i,s.height=o,s.width=r,t.ctx.setTransform(i,0,0,i,0,0),!0)}const ei=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function ni(t,e){const n=Un(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function ii(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function oi(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function ri(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},s=ii(t,o,n),a=ii(o,r,n),l=ii(r,e,n),c=ii(s,a,n),u=ii(a,l,n);return ii(c,u,n)}const si=function(t,e){return{x(n){return t+t+e-n},setWidth(t){e=t},textAlign(t){return"center"===t?t:"right"===t?"left":"right"},xPlus(t,e){return t-e},leftForLtr(t,e){return t-e}}},ai=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function li(t,e,n){return t?si(e,n):ai()}function ci(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function ui(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function hi(t){return"angle"===t?{between:Ut,compare:Wt,normalize:Ht}:{between:Xt,compare:(t,e)=>t-e,normalize:t=>t}}function fi({start:t,end:e,count:n,loop:i,style:o}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n===0,style:o}}function di(t,e,n){const{property:i,start:o,end:r}=n,{between:s,normalize:a}=hi(i),l=e.length;let c,u,{start:h,end:f,loop:d}=t;if(d){for(h+=l,f+=l,c=0,u=l;c<u;++c){if(!s(a(e[h%l][i]),o,r))break;h--,f--}h%=l,f%=l}return f<h&&(f+=l),{start:h,end:f,loop:d,style:t.style}}function pi(t,e,n){if(!n)return[t];const{property:i,start:o,end:r}=n,s=e.length,{compare:a,between:l,normalize:c}=hi(i),{start:u,end:h,loop:f,style:d}=di(t,e,n),p=[];let g,y,m,b=!1,v=null;const x=()=>l(o,m,g)&&0!==a(o,m),_=()=>0===a(r,g)||l(r,m,g),w=()=>b||x(),S=()=>!b||_();for(let k=u,O=u;k<=h;++k)y=e[k%s],y.skip||(g=c(y[i]),g!==m&&(b=l(g,o,r),null===v&&w()&&(v=0===a(g,o)?k:O),null!==v&&S()&&(p.push(fi({start:v,end:k,loop:f,count:s,style:d})),v=null),O=k,m=g));return null!==v&&p.push(fi({start:v,end:h,loop:f,count:s,style:d})),p}function gi(t,e){const n=[],i=t.segments;for(let o=0;o<i.length;o++){const r=pi(i[o],t.points,e);r.length&&n.push(...r)}return n}function yi(t,e,n,i){let o=0,r=e-1;if(n&&!i)while(o<e&&!t[o].skip)o++;while(o<e&&t[o].skip)o++;o%=e,n&&(r+=o);while(r>o&&t[r%e].skip)r--;return r%=e,{start:o,end:r}}function mi(t,e,n,i){const o=t.length,r=[];let s,a=e,l=t[e];for(s=e+1;s<=n;++s){const n=t[s%o];n.skip||n.stop?l.skip||(i=!1,r.push({start:e%o,end:(s-1)%o,loop:i}),e=a=n.stop?s:null):(a=s,l.skip&&(e=s)),l=n}return null!==a&&r.push({start:e%o,end:a%o,loop:i}),r}function bi(t,e){const n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const r=!!t._loop,{start:s,end:a}=yi(n,o,r,i);if(!0===i)return vi(t,[{start:s,end:a,loop:r}],n,e);const l=a<s?a+o:a,c=!!t._fullLoop&&0===s&&a===o-1;return vi(t,mi(n,s,l,c),n,e)}function vi(t,e,n,i){return i&&i.setContext&&n?xi(t,e,n,i):e}function xi(t,e,n,i){const o=t._chart.getContext(),r=_i(t.options),{_datasetIndex:s,options:{spanGaps:a}}=t,l=n.length,c=[];let u=r,h=e[0].start,f=h;function d(t,e,i,o){const r=a?-1:1;if(t!==e){t+=l;while(n[t%l].skip)t-=r;while(n[e%l].skip)e+=r;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:i,style:o}),u=o,h=e%l)}}for(const p of e){h=a?h:p.start;let t,e=n[h%l];for(f=h+1;f<=p.end;f++){const r=n[f%l];t=_i(i.setContext(un(o,{type:"segment",p0:e,p1:r,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:s}))),wi(t,u)&&d(h,f-1,p.loop,u),e=r,u=t}h<f-1&&d(h,f-1,p.loop,u)}return c}function _i(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function wi(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}},1020:function(t,e,n){"use strict";n.d(e,{WB:function(){return ht},Q_:function(){return St}});n(7658),n(541);var i=n(4870),o=n(3396),r=!1;function s(t,e,n){return Array.isArray(t)?(t.length=Math.max(t.length,e),t.splice(e,1,n),n):(t[e]=n,n)}function a(){return l().__VUE_DEVTOOLS_GLOBAL_HOOK__}function l(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{}}const c="function"===typeof Proxy,u="devtools-plugin:setup",h="plugin:settings:set";let f,d,p;function g(){var t;return void 0!==f||("undefined"!==typeof window&&window.performance?(f=!0,d=window.performance):"undefined"!==typeof n.g&&(null===(t=n.g.perf_hooks)||void 0===t?void 0:t.performance)?(f=!0,d=n.g.perf_hooks.performance):f=!1),f}function y(){return g()?d.now():Date.now()}class m{constructor(t,e){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=e;const n={};if(t.settings)for(const s in t.settings){const e=t.settings[s];n[s]=e.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},n);try{const t=localStorage.getItem(i),e=JSON.parse(t);Object.assign(o,e)}catch(r){}this.fallbacks={getSettings(){return o},setSettings(t){try{localStorage.setItem(i,JSON.stringify(t))}catch(r){}o=t},now(){return y()}},e&&e.on(h,((t,e)=>{t===this.plugin.id&&this.fallbacks.setSettings(e)})),this.proxiedOn=new Proxy({},{get:(t,e)=>this.target?this.target.on[e]:(...t)=>{this.onQueue.push({method:e,args:t})}}),this.proxiedTarget=new Proxy({},{get:(t,e)=>this.target?this.target[e]:"on"===e?this.proxiedOn:Object.keys(this.fallbacks).includes(e)?(...t)=>(this.targetQueue.push({method:e,args:t,resolve:()=>{}}),this.fallbacks[e](...t)):(...t)=>new Promise((n=>{this.targetQueue.push({method:e,args:t,resolve:n})}))})}async setRealTarget(t){this.target=t;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function b(t,e){const n=t,i=l(),o=a(),r=c&&n.enableEarlyProxy;if(!o||!i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&r){const t=r?new m(n,o):null,s=i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[];s.push({pluginDescriptor:n,setupFn:e,proxy:t}),t&&e(t.proxiedTarget)}else o.emit(u,t,e)}const v=t=>p=t,x=Symbol();function _(t){return t&&"object"===typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!==typeof t.toJSON}var w;(function(t){t["direct"]="direct",t["patchObject"]="patch object",t["patchFunction"]="patch function"})(w||(w={}));const S="undefined"!==typeof window,k=!1,O=(()=>"object"===typeof window&&window.window===window?window:"object"===typeof self&&self.self===self?self:"object"===typeof global&&global.global===global?global:"object"===typeof globalThis?globalThis:{HTMLElement:null})();function M(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}function P(t,e,n){const i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){j(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function A(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(n){}return e.status>=200&&e.status<=299}function E(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const C="object"===typeof navigator?navigator:{userAgent:""},T=(()=>/Macintosh/.test(C.userAgent)&&/AppleWebKit/.test(C.userAgent)&&!/Safari/.test(C.userAgent))(),j=S?"undefined"!==typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!T?D:"msSaveOrOpenBlob"in C?I:R:()=>{};function D(t,e="download",n){const i=document.createElement("a");i.download=e,i.rel="noopener","string"===typeof t?(i.href=t,i.origin!==location.origin?A(i.href)?P(t,e,n):(i.target="_blank",E(i)):E(i)):(i.href=URL.createObjectURL(t),setTimeout((function(){URL.revokeObjectURL(i.href)}),4e4),setTimeout((function(){E(i)}),0))}function I(t,e="download",n){if("string"===typeof t)if(A(t))P(t,e,n);else{const e=document.createElement("a");e.href=t,e.target="_blank",setTimeout((function(){E(e)}))}else navigator.msSaveOrOpenBlob(M(t,n),e)}function R(t,e,n,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"===typeof t)return P(t,e,n);const o="application/octet-stream"===t.type,r=/constructor/i.test(String(O.HTMLElement))||"safari"in O,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||o&&r||T)&&"undefined"!==typeof FileReader){const e=new FileReader;e.onloadend=function(){let t=e.result;if("string"!==typeof t)throw i=null,new Error("Wrong reader.result type");t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location.assign(t),i=null},e.readAsDataURL(t)}else{const e=URL.createObjectURL(t);i?i.location.assign(e):location.href=e,i=null,setTimeout((function(){URL.revokeObjectURL(e)}),4e4)}}function L(t,e){const n="🍍 "+t;"function"===typeof __VUE_DEVTOOLS_TOAST__?__VUE_DEVTOOLS_TOAST__(n,e):"error"===e?console.error(n):"warn"===e?console.warn(n):console.log(n)}function F(t){return"_a"in t&&"install"in t}function V(){if(!("clipboard"in navigator))return L("Your browser doesn't support the Clipboard API","error"),!0}function N(t){return!!(t instanceof Error&&t.message.toLowerCase().includes("document is not focused"))&&(L('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}async function $(t){if(!V())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),L("Global state copied to clipboard.")}catch(e){if(N(e))return;L("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function B(t){if(!V())try{t.state.value=JSON.parse(await navigator.clipboard.readText()),L("Global state pasted from clipboard.")}catch(e){if(N(e))return;L("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function z(t){try{j(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){L("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let W;function H(){function t(){return new Promise(((t,e)=>{W.onchange=async()=>{const e=W.files;if(!e)return t(null);const n=e.item(0);return t(n?{text:await n.text(),file:n}:null)},W.oncancel=()=>t(null),W.onerror=e,W.click()}))}return W||(W=document.createElement("input"),W.type="file",W.accept=".json"),t}async function U(t){try{const e=await H(),n=await e();if(!n)return;const{text:i,file:o}=n;t.state.value=JSON.parse(i),L(`Global state imported from "${o.name}".`)}catch(e){L("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}function q(t){return{_custom:{display:t}}}const Y="🍍 Pinia (root)",X="_root";function G(t){return F(t)?{id:X,label:Y}:{id:t.$id,label:t.$id}}function J(t){if(F(t)){const e=Array.from(t._s.keys()),n=t._s,i={state:e.map((e=>({editable:!0,key:e,value:t.state.value[e]}))),getters:e.filter((t=>n.get(t)._getters)).map((t=>{const e=n.get(t);return{editable:!1,key:t,value:e._getters.reduce(((t,n)=>(t[n]=e[n],t)),{})}}))};return i}const e={state:Object.keys(t.$state).map((e=>({editable:!0,key:e,value:t.$state[e]})))};return t._getters&&t._getters.length&&(e.getters=t._getters.map((e=>({editable:!1,key:e,value:t[e]})))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map((e=>({editable:!0,key:e,value:t[e]})))),e}function K(t){return t?Array.isArray(t)?t.reduce(((t,e)=>(t.keys.push(e.key),t.operations.push(e.type),t.oldValue[e.key]=e.oldValue,t.newValue[e.key]=e.newValue,t)),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:q(t.type),key:q(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function Q(t){switch(t){case w.direct:return"mutation";case w.patchFunction:return"$patch";case w.patchObject:return"$patch";default:return"unknown"}}let Z=!0;const tt=[],et="pinia:mutations",nt="pinia",{assign:it}=Object,ot=t=>"🍍 "+t;function rt(t,e){b({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:tt,app:t},(n=>{"function"!==typeof n.now&&L("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:et,label:"Pinia 🍍",color:15064968}),n.addInspector({id:nt,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{$(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await B(e),n.sendInspectorTree(nt),n.sendInspectorState(nt)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{z(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await U(e),n.sendInspectorTree(nt),n.sendInspectorState(nt)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:"Reset the state (option store only)",action:t=>{const n=e._s.get(t);n?n._isOptionsAPI?(n.$reset(),L(`Store "${t}" reset.`)):L(`Cannot reset "${t}" store because it's a setup store.`,"warn"):L(`Cannot reset "${t}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(((t,e)=>{const n=t.componentInstance&&t.componentInstance.proxy;if(n&&n._pStores){const e=t.componentInstance.proxy._pStores;Object.values(e).forEach((e=>{t.instanceData.state.push({type:ot(e.$id),key:"state",editable:!0,value:e._isOptionsAPI?{_custom:{value:(0,i.IU)(e.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>e.$reset()}]}}:Object.keys(e.$state).reduce(((t,n)=>(t[n]=e.$state[n],t)),{})}),e._getters&&e._getters.length&&t.instanceData.state.push({type:ot(e.$id),key:"getters",editable:!1,value:e._getters.reduce(((t,n)=>{try{t[n]=e[n]}catch(i){t[n]=i}return t}),{})})}))}})),n.on.getInspectorTree((n=>{if(n.app===t&&n.inspectorId===nt){let t=[e];t=t.concat(Array.from(e._s.values())),n.rootNodes=(n.filter?t.filter((t=>"$id"in t?t.$id.toLowerCase().includes(n.filter.toLowerCase()):Y.toLowerCase().includes(n.filter.toLowerCase()))):t).map(G)}})),n.on.getInspectorState((n=>{if(n.app===t&&n.inspectorId===nt){const t=n.nodeId===X?e:e._s.get(n.nodeId);if(!t)return;t&&(n.state=J(t))}})),n.on.editInspectorState(((n,i)=>{if(n.app===t&&n.inspectorId===nt){const t=n.nodeId===X?e:e._s.get(n.nodeId);if(!t)return L(`store "${n.nodeId}" not found`,"error");const{path:i}=n;F(t)?i.unshift("state"):1===i.length&&t._customProperties.has(i[0])&&!(i[0]in t.$state)||i.unshift("$state"),Z=!1,n.set(t,i,n.state.value),Z=!0}})),n.on.editComponentState((t=>{if(t.type.startsWith("🍍")){const n=t.type.replace(/^🍍\s*/,""),i=e._s.get(n);if(!i)return L(`store "${n}" not found`,"error");const{path:o}=t;if("state"!==o[0])return L(`Invalid path for store "${n}":\n${o}\nOnly state can be modified.`);o[0]="$state",Z=!1,t.set(i,o,t.state.value),Z=!0}}))}))}function st(t,e){tt.includes(ot(e.$id))||tt.push(ot(e.$id)),b({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:tt,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},(t=>{const n="function"===typeof t.now?t.now.bind(t):Date.now;e.$onAction((({after:i,onError:o,name:r,args:s})=>{const a=lt++;t.addTimelineEvent({layerId:et,event:{time:n(),title:"🛫 "+r,subtitle:"start",data:{store:q(e.$id),action:q(r),args:s},groupId:a}}),i((i=>{at=void 0,t.addTimelineEvent({layerId:et,event:{time:n(),title:"🛬 "+r,subtitle:"end",data:{store:q(e.$id),action:q(r),args:s,result:i},groupId:a}})})),o((i=>{at=void 0,t.addTimelineEvent({layerId:et,event:{time:n(),logType:"error",title:"💥 "+r,subtitle:"end",data:{store:q(e.$id),action:q(r),args:s,error:i},groupId:a}})}))}),!0),e._customProperties.forEach((r=>{(0,o.YP)((()=>(0,i.SU)(e[r])),((e,i)=>{t.notifyComponentUpdate(),t.sendInspectorState(nt),Z&&t.addTimelineEvent({layerId:et,event:{time:n(),title:"Change",subtitle:r,data:{newValue:e,oldValue:i},groupId:at}})}),{deep:!0})})),e.$subscribe((({events:i,type:o},r)=>{if(t.notifyComponentUpdate(),t.sendInspectorState(nt),!Z)return;const s={time:n(),title:Q(o),data:it({store:q(e.$id)},K(i)),groupId:at};at=void 0,o===w.patchFunction?s.subtitle="⤵️":o===w.patchObject?s.subtitle="🧩":i&&!Array.isArray(i)&&(s.subtitle=i.type),i&&(s.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),t.addTimelineEvent({layerId:et,event:s})}),{detached:!0,flush:"sync"});const r=e._hotUpdate;e._hotUpdate=(0,i.Xl)((i=>{r(i),t.addTimelineEvent({layerId:et,event:{time:n(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:q(e.$id),info:q("HMR update")}}}),t.notifyComponentUpdate(),t.sendInspectorTree(nt),t.sendInspectorState(nt)}));const{$dispose:s}=e;e.$dispose=()=>{s(),t.notifyComponentUpdate(),t.sendInspectorTree(nt),t.sendInspectorState(nt),t.getSettings().logStoreChanges&&L(`Disposed "${e.$id}" store 🗑`)},t.notifyComponentUpdate(),t.sendInspectorTree(nt),t.sendInspectorState(nt),t.getSettings().logStoreChanges&&L(`"${e.$id}" store installed 🆕`)}))}let at,lt=0;function ct(t,e){const n=e.reduce(((e,n)=>(e[n]=(0,i.IU)(t)[n],e)),{});for(const i in n)t[i]=function(){const e=lt,o=new Proxy(t,{get(...t){return at=e,Reflect.get(...t)},set(...t){return at=e,Reflect.set(...t)}});return n[i].apply(o,arguments)}}function ut({app:t,store:e,options:n}){if(!e.$id.startsWith("__hot:")){if(n.state&&(e._isOptionsAPI=!0),"function"===typeof n.state){ct(e,Object.keys(n.actions));const t=e._hotUpdate;(0,i.IU)(e)._hotUpdate=function(n){t.apply(this,arguments),ct(e,Object.keys(n._hmrPayload.actions))}}st(t,e)}}function ht(){const t=(0,i.B)(!0),e=t.run((()=>(0,i.iH)({})));let n=[],o=[];const s=(0,i.Xl)({install(t){v(s),r||(s._a=t,t.provide(x,s),t.config.globalProperties.$pinia=s,k&&rt(t,s),o.forEach((t=>n.push(t))),o=[])},use(t){return this._a||r?n.push(t):o.push(t),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return k&&"undefined"!==typeof Proxy&&s.use(ut),s}const ft=()=>{};function dt(t,e,n,o=ft){t.push(e);const r=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),o())};return!n&&(0,i.nZ)()&&(0,i.EB)(r),r}function pt(t,...e){t.slice().forEach((t=>{t(...e)}))}function gt(t,e){t instanceof Map&&e instanceof Map&&e.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n],r=t[n];_(r)&&_(o)&&t.hasOwnProperty(n)&&!(0,i.dq)(o)&&!(0,i.PG)(o)?t[n]=gt(r,o):t[n]=o}return t}const yt=Symbol(),mt=new WeakMap;function bt(t){return r?!mt.has(t):!_(t)||!t.hasOwnProperty(yt)}const{assign:vt}=Object;function xt(t){return!(!(0,i.dq)(t)||!t.effect)}function _t(t,e,n,a){const{state:l,actions:c,getters:u}=e,h=n.state.value[t];let f;function d(){h||(r?s(n.state.value,t,l?l():{}):n.state.value[t]=l?l():{});const e=(0,i.BK)(n.state.value[t]);return vt(e,c,Object.keys(u||{}).reduce(((e,s)=>(e[s]=(0,i.Xl)((0,o.Fl)((()=>{v(n);const e=n._s.get(t);if(!r||e._r)return u[s].call(e,e)}))),e)),{}))}return f=wt(t,d,e,n,a,!0),f}function wt(t,e,n={},a,l,c){let u;const h=vt({actions:{}},n);const f={deep:!0};let d,p;let g,y=(0,i.Xl)([]),m=(0,i.Xl)([]);const b=a.state.value[t];c||b||(r?s(a.state.value,t,{}):a.state.value[t]={});const x=(0,i.iH)({});let _;function S(e){let n;d=p=!1,"function"===typeof e?(e(a.state.value[t]),n={type:w.patchFunction,storeId:t,events:g}):(gt(a.state.value[t],e),n={type:w.patchObject,payload:e,storeId:t,events:g});const i=_=Symbol();(0,o.Y3)().then((()=>{_===i&&(d=!0)})),p=!0,pt(y,n,a.state.value[t])}const O=c?function(){const{state:t}=n,e=t?t():{};this.$patch((t=>{vt(t,e)}))}:ft;function M(){u.stop(),y=[],m=[],a._s.delete(t)}function P(e,n){return function(){v(a);const i=Array.from(arguments),o=[],r=[];function s(t){o.push(t)}function l(t){r.push(t)}let c;pt(m,{args:i,name:e,store:C,after:s,onError:l});try{c=n.apply(this&&this.$id===t?this:C,i)}catch(u){throw pt(r,u),u}return c instanceof Promise?c.then((t=>(pt(o,t),t))).catch((t=>(pt(r,t),Promise.reject(t)))):(pt(o,c),c)}}const A=(0,i.Xl)({actions:{},getters:{},state:[],hotState:x}),E={_p:a,$id:t,$onAction:dt.bind(null,m),$patch:S,$reset:O,$subscribe(e,n={}){const i=dt(y,e,n.detached,(()=>r())),r=u.run((()=>(0,o.YP)((()=>a.state.value[t]),(i=>{("sync"===n.flush?p:d)&&e({storeId:t,type:w.direct,events:g},i)}),vt({},f,n))));return i},$dispose:M};r&&(E._r=!1);const C=(0,i.qj)(k?vt({_hmrPayload:A,_customProperties:(0,i.Xl)(new Set)},E):E);a._s.set(t,C);const T=a._e.run((()=>(u=(0,i.B)(),u.run((()=>e())))));for(const o in T){const e=T[o];if((0,i.dq)(e)&&!xt(e)||(0,i.PG)(e))c||(b&&bt(e)&&((0,i.dq)(e)?e.value=b[o]:gt(e,b[o])),r?s(a.state.value[t],o,e):a.state.value[t][o]=e);else if("function"===typeof e){const t=P(o,e);r?s(T,o,t):T[o]=t,h.actions[o]=e}else 0}if(r?Object.keys(T).forEach((t=>{s(C,t,T[t])})):(vt(C,T),vt((0,i.IU)(C),T)),Object.defineProperty(C,"$state",{get:()=>a.state.value[t],set:t=>{S((e=>{vt(e,t)}))}}),k){const t={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((e=>{Object.defineProperty(C,e,vt({value:C[e]},t))}))}return r&&(C._r=!0),a._p.forEach((t=>{if(k){const e=u.run((()=>t({store:C,app:a._a,pinia:a,options:h})));Object.keys(e||{}).forEach((t=>C._customProperties.add(t))),vt(C,e)}else vt(C,u.run((()=>t({store:C,app:a._a,pinia:a,options:h}))))})),b&&c&&n.hydrate&&n.hydrate(C.$state,b),d=!0,p=!0,C}function St(t,e,n){let i,r;const s="function"===typeof e;function a(t,n){const a=(0,o.FN)();t=t||a&&(0,o.f3)(x,null),t&&v(t),t=p,t._s.has(i)||(s?wt(i,e,r,t):_t(i,r,t));const l=t._s.get(i);return l}return"string"===typeof t?(i=t,r=s?n:e):(r=t,i=t.id),a.$id=i,a}},5866:function(t,e,n){"use strict";n.d(e,{$I:function(){return m},bp:function(){return b}});n(7658);var i=n(3396),o=n(4870),r=n(3254);const s={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},a={type:{type:String,required:!0},...s},l="2"===i.i8[0]?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function c(t){return(0,o.X3)(t)?(0,o.IU)(t):t}function u(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return(0,o.X3)(e)?new Proxy(t,{}):t}function h(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function f(t,e){t.labels=e}function d(t,e,n){const i=[];t.datasets=e.map((e=>{const o=t.datasets.find((t=>t[n]===e[n]));return o&&e.data&&!i.includes(o)?(i.push(o),Object.assign(o,e),o):{...e}}))}function p(t,e){const n={labels:[],datasets:[]};return f(n,t.labels),d(n,t.datasets,e),n}const g=(0,i.aZ)({props:a,setup(t,e){let{expose:n}=e;const s=(0,o.iH)(null),a=(0,o.XI)(null);n({chart:a});const l=()=>{if(!s.value)return;const{type:e,data:n,options:i,plugins:o,datasetIdKey:l}=t,c=p(n,l),h=u(c,n);a.value=new r.kL(s.value,{type:e,data:h,options:{...i},plugins:o})},g=()=>{const t=(0,o.IU)(a.value);t&&(t.destroy(),a.value=null)},y=e=>{e.update(t.updateMode)};return(0,i.bv)(l),(0,i.Jd)(g),(0,i.YP)([()=>t.options,()=>t.data],((e,n)=>{let[i,r]=e,[s,l]=n;const u=(0,o.IU)(a.value);if(!u)return;let p=!1;if(i){const t=c(i),e=c(s);t&&t!==e&&(h(u,t),p=!0)}if(r){const e=c(r.labels),n=c(l.labels),i=c(r.datasets),o=c(l.datasets);e!==n&&(f(u.config.data,e),p=!0),i&&i!==o&&(d(u.config.data,i,t.datasetIdKey),p=!0)}p&&y(u)}),{deep:!0}),()=>(0,i.h)("canvas",{ref:s})}});function y(t,e){return r.kL.register(e),(0,i.aZ)({props:s,setup(e,n){let{expose:r}=n;const s=(0,o.XI)(null),a=t=>{s.value=t?.chart};return r({chart:s}),()=>(0,i.h)(g,l({ref:a},{type:t,...e}))}})}const m=y("doughnut",r.jI),b=y("scatter",r.ho)},2483:function(t,e,n){"use strict";n.d(e,{PO:function(){return N},p7:function(){return ee}});n(7658),n(541);var i=n(3396),o=n(4870);
/*!
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/
const r="undefined"!==typeof window;function s(t){return t.__esModule||"Module"===t[Symbol.toStringTag]}const a=Object.assign;function l(t,e){const n={};for(const i in e){const o=e[i];n[i]=u(o)?o.map(t):t(o)}return n}const c=()=>{},u=Array.isArray;const h=/\/$/,f=t=>t.replace(h,"");function d(t,e,n="/"){let i,o={},r="",s="";const a=e.indexOf("#");let l=e.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(i=e.slice(0,l),r=e.slice(l+1,a>-1?a:e.length),o=t(r)),a>-1&&(i=i||e.slice(0,a),s=e.slice(a,e.length)),i=_(null!=i?i:e,n),{fullPath:i+(r&&"?")+r+s,path:i,query:o,hash:s}}function p(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function g(t,e){return e&&t.toLowerCase().startsWith(e.toLowerCase())?t.slice(e.length)||"/":t}function y(t,e,n){const i=e.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&m(e.matched[i],n.matched[o])&&b(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function m(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function b(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!v(t[n],e[n]))return!1;return!0}function v(t,e){return u(t)?x(t,e):u(e)?x(e,t):t===e}function x(t,e){return u(e)?t.length===e.length&&t.every(((t,n)=>t===e[n])):1===t.length&&t[0]===e}function _(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),i=t.split("/");let o,r,s=n.length-1;for(o=0;o<i.length;o++)if(r=i[o],"."!==r){if(".."!==r)break;s>1&&s--}return n.slice(0,s).join("/")+"/"+i.slice(o-(o===i.length?1:0)).join("/")}var w,S;(function(t){t["pop"]="pop",t["push"]="push"})(w||(w={})),function(t){t["back"]="back",t["forward"]="forward",t["unknown"]=""}(S||(S={}));function k(t){if(!t)if(r){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return"/"!==t[0]&&"#"!==t[0]&&(t="/"+t),f(t)}const O=/^[^#]+#/;function M(t,e){return t.replace(O,"#")+e}function P(t,e){const n=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{behavior:e.behavior,left:i.left-n.left-(e.left||0),top:i.top-n.top-(e.top||0)}}const A=()=>({left:window.pageXOffset,top:window.pageYOffset});function E(t){let e;if("el"in t){const n=t.el,i="string"===typeof n&&n.startsWith("#");0;const o="string"===typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;e=P(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(null!=e.left?e.left:window.pageXOffset,null!=e.top?e.top:window.pageYOffset)}function C(t,e){const n=history.state?history.state.position-e:-1;return n+t}const T=new Map;function j(t,e){T.set(t,e)}function D(t){const e=T.get(t);return T.delete(t),e}let I=()=>location.protocol+"//"+location.host;function R(t,e){const{pathname:n,search:i,hash:o}=e,r=t.indexOf("#");if(r>-1){let e=o.includes(t.slice(r))?t.slice(r).length:1,n=o.slice(e);return"/"!==n[0]&&(n="/"+n),g(n,"")}const s=g(n,t);return s+i+o}function L(t,e,n,i){let o=[],r=[],s=null;const l=({state:r})=>{const a=R(t,location),l=n.value,c=e.value;let u=0;if(r){if(n.value=a,e.value=r,s&&s===l)return void(s=null);u=c?r.position-c.position:0}else i(a);o.forEach((t=>{t(n.value,l,{delta:u,type:w.pop,direction:u?u>0?S.forward:S.back:S.unknown})}))};function c(){s=n.value}function u(t){o.push(t);const e=()=>{const e=o.indexOf(t);e>-1&&o.splice(e,1)};return r.push(e),e}function h(){const{history:t}=window;t.state&&t.replaceState(a({},t.state,{scroll:A()}),"")}function f(){for(const t of r)t();r=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",h),{pauseListeners:c,listen:u,destroy:f}}function F(t,e,n,i=!1,o=!1){return{back:t,current:e,forward:n,replaced:i,position:window.history.length,scroll:o?A():null}}function V(t){const{history:e,location:n}=window,i={value:R(t,n)},o={value:e.state};function r(i,r,s){const a=t.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?t:t.slice(a))+i:I()+t+i;try{e[s?"replaceState":"pushState"](r,"",l),o.value=r}catch(c){console.error(c),n[s?"replace":"assign"](l)}}function s(t,n){const s=a({},e.state,F(o.value.back,t,o.value.forward,!0),n,{position:o.value.position});r(t,s,!0),i.value=t}function l(t,n){const s=a({},o.value,e.state,{forward:t,scroll:A()});r(s.current,s,!0);const l=a({},F(i.value,t,null),{position:s.position+1},n);r(t,l,!1),i.value=t}return o.value||r(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0),{location:i,state:o,push:l,replace:s}}function N(t){t=k(t);const e=V(t),n=L(t,e.state,e.location,e.replace);function i(t,e=!0){e||n.pauseListeners(),history.go(t)}const o=a({location:"",base:t,go:i,createHref:M.bind(null,t)},e,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function $(t){return"string"===typeof t||t&&"object"===typeof t}function B(t){return"string"===typeof t||"symbol"===typeof t}const z={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},W=Symbol("");var H;(function(t){t[t["aborted"]=4]="aborted",t[t["cancelled"]=8]="cancelled",t[t["duplicated"]=16]="duplicated"})(H||(H={}));function U(t,e){return a(new Error,{type:t,[W]:!0},e)}function q(t,e){return t instanceof Error&&W in t&&(null==e||!!(t.type&e))}const Y="[^/]+?",X={sensitive:!1,strict:!1,start:!0,end:!0},G=/[.+*?^${}()[\]/\\]/g;function J(t,e){const n=a({},X,e),i=[];let o=n.start?"^":"";const r=[];for(const a of t){const t=a.length?[]:[90];n.strict&&!a.length&&(o+="/");for(let e=0;e<a.length;e++){const i=a[e];let s=40+(n.sensitive?.25:0);if(0===i.type)e||(o+="/"),o+=i.value.replace(G,"\\$&"),s+=40;else if(1===i.type){const{value:t,repeatable:n,optional:l,regexp:c}=i;r.push({name:t,repeatable:n,optional:l});const u=c||Y;if(u!==Y){s+=10;try{new RegExp(`(${u})`)}catch(h){throw new Error(`Invalid custom RegExp for param "${t}" (${u}): `+h.message)}}let f=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;e||(f=l&&a.length<2?`(?:/${f})`:"/"+f),l&&(f+="?"),o+=f,s+=20,l&&(s+=-8),n&&(s+=-20),".*"===u&&(s+=-50)}t.push(s)}i.push(t)}if(n.strict&&n.end){const t=i.length-1;i[t][i[t].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");function l(t){const e=t.match(s),n={};if(!e)return null;for(let i=1;i<e.length;i++){const t=e[i]||"",o=r[i-1];n[o.name]=t&&o.repeatable?t.split("/"):t}return n}function c(e){let n="",i=!1;for(const o of t){i&&n.endsWith("/")||(n+="/"),i=!1;for(const t of o)if(0===t.type)n+=t.value;else if(1===t.type){const{value:r,repeatable:s,optional:a}=t,l=r in e?e[r]:"";if(u(l)&&!s)throw new Error(`Provided param "${r}" is an array but it is not repeatable (* or + modifiers)`);const c=u(l)?l.join("/"):l;if(!c){if(!a)throw new Error(`Missing required param "${r}"`);o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):i=!0)}n+=c}}return n||"/"}return{re:s,score:i,keys:r,parse:l,stringify:c}}function K(t,e){let n=0;while(n<t.length&&n<e.length){const i=e[n]-t[n];if(i)return i;n++}return t.length<e.length?1===t.length&&80===t[0]?-1:1:t.length>e.length?1===e.length&&80===e[0]?1:-1:0}function Q(t,e){let n=0;const i=t.score,o=e.score;while(n<i.length&&n<o.length){const t=K(i[n],o[n]);if(t)return t;n++}if(1===Math.abs(o.length-i.length)){if(Z(i))return 1;if(Z(o))return-1}return o.length-i.length}function Z(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const tt={type:0,value:""},et=/[a-zA-Z0-9_]/;function nt(t){if(!t)return[[]];if("/"===t)return[[tt]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(t){throw new Error(`ERR (${n})/"${c}": ${t}`)}let n=0,i=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let a,l=0,c="",u="";function h(){c&&(0===n?r.push({type:0,value:c}):1===n||2===n||3===n?(r.length>1&&("*"===a||"+"===a)&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):e("Invalid state to consume buffer"),c="")}function f(){c+=a}while(l<t.length)if(a=t[l++],"\\"!==a||2===n)switch(n){case 0:"/"===a?(c&&h(),s()):":"===a?(h(),n=1):f();break;case 4:f(),n=i;break;case 1:"("===a?n=2:et.test(a)?f():(h(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&l--);break;case 2:")"===a?"\\"==u[u.length-1]?u=u.slice(0,-1)+a:n=3:u+=a;break;case 3:h(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&l--,u="";break;default:e("Unknown state");break}else i=n,n=4;return 2===n&&e(`Unfinished custom RegExp for param "${c}"`),h(),s(),o}function it(t,e,n){const i=J(nt(t.path),n);const o=a(i,{record:t,parent:e,children:[],alias:[]});return e&&!o.record.aliasOf===!e.record.aliasOf&&e.children.push(o),o}function ot(t,e){const n=[],i=new Map;function o(t){return i.get(t)}function r(t,n,i){const o=!i,l=st(t);l.aliasOf=i&&i.record;const h=ut(e,t),f=[l];if("alias"in t){const e="string"===typeof t.alias?[t.alias]:t.alias;for(const t of e)f.push(a({},l,{components:i?i.record.components:l.components,path:t,aliasOf:i?i.record:l}))}let d,p;for(const e of f){const{path:a}=e;if(n&&"/"!==a[0]){const t=n.record.path,i="/"===t[t.length-1]?"":"/";e.path=n.record.path+(a&&i+a)}if(d=it(e,n,h),i?i.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),o&&t.name&&!lt(d)&&s(t.name)),l.children){const t=l.children;for(let e=0;e<t.length;e++)r(t[e],d,i&&i.children[e])}i=i||d,(d.record.components&&Object.keys(d.record.components).length||d.record.name||d.record.redirect)&&u(d)}return p?()=>{s(p)}:c}function s(t){if(B(t)){const e=i.get(t);e&&(i.delete(t),n.splice(n.indexOf(e),1),e.children.forEach(s),e.alias.forEach(s))}else{const e=n.indexOf(t);e>-1&&(n.splice(e,1),t.record.name&&i.delete(t.record.name),t.children.forEach(s),t.alias.forEach(s))}}function l(){return n}function u(t){let e=0;while(e<n.length&&Q(t,n[e])>=0&&(t.record.path!==n[e].record.path||!ht(t,n[e])))e++;n.splice(e,0,t),t.record.name&&!lt(t)&&i.set(t.record.name,t)}function h(t,e){let o,r,s,l={};if("name"in t&&t.name){if(o=i.get(t.name),!o)throw U(1,{location:t});0,s=o.record.name,l=a(rt(e.params,o.keys.filter((t=>!t.optional)).map((t=>t.name))),t.params&&rt(t.params,o.keys.map((t=>t.name)))),r=o.stringify(l)}else if("path"in t)r=t.path,o=n.find((t=>t.re.test(r))),o&&(l=o.parse(r),s=o.record.name);else{if(o=e.name?i.get(e.name):n.find((t=>t.re.test(e.path))),!o)throw U(1,{location:t,currentLocation:e});s=o.record.name,l=a({},e.params,t.params),r=o.stringify(l)}const c=[];let u=o;while(u)c.unshift(u.record),u=u.parent;return{name:s,path:r,params:l,matched:c,meta:ct(c)}}return e=ut({strict:!1,end:!0,sensitive:!1},e),t.forEach((t=>r(t))),{addRoute:r,resolve:h,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function rt(t,e){const n={};for(const i of e)i in t&&(n[i]=t[i]);return n}function st(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:at(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function at(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const i in t.components)e[i]="boolean"===typeof n?n:n[i];return e}function lt(t){while(t){if(t.record.aliasOf)return!0;t=t.parent}return!1}function ct(t){return t.reduce(((t,e)=>a(t,e.meta)),{})}function ut(t,e){const n={};for(const i in t)n[i]=i in e?e[i]:t[i];return n}function ht(t,e){return e.children.some((e=>e===t||ht(t,e)))}const ft=/#/g,dt=/&/g,pt=/\//g,gt=/=/g,yt=/\?/g,mt=/\+/g,bt=/%5B/g,vt=/%5D/g,xt=/%5E/g,_t=/%60/g,wt=/%7B/g,St=/%7C/g,kt=/%7D/g,Ot=/%20/g;function Mt(t){return encodeURI(""+t).replace(St,"|").replace(bt,"[").replace(vt,"]")}function Pt(t){return Mt(t).replace(wt,"{").replace(kt,"}").replace(xt,"^")}function At(t){return Mt(t).replace(mt,"%2B").replace(Ot,"+").replace(ft,"%23").replace(dt,"%26").replace(_t,"`").replace(wt,"{").replace(kt,"}").replace(xt,"^")}function Et(t){return At(t).replace(gt,"%3D")}function Ct(t){return Mt(t).replace(ft,"%23").replace(yt,"%3F")}function Tt(t){return null==t?"":Ct(t).replace(pt,"%2F")}function jt(t){try{return decodeURIComponent(""+t)}catch(e){}return""+t}function Dt(t){const e={};if(""===t||"?"===t)return e;const n="?"===t[0],i=(n?t.slice(1):t).split("&");for(let o=0;o<i.length;++o){const t=i[o].replace(mt," "),n=t.indexOf("="),r=jt(n<0?t:t.slice(0,n)),s=n<0?null:jt(t.slice(n+1));if(r in e){let t=e[r];u(t)||(t=e[r]=[t]),t.push(s)}else e[r]=s}return e}function It(t){let e="";for(let n in t){const i=t[n];if(n=Et(n),null==i){void 0!==i&&(e+=(e.length?"&":"")+n);continue}const o=u(i)?i.map((t=>t&&At(t))):[i&&At(i)];o.forEach((t=>{void 0!==t&&(e+=(e.length?"&":"")+n,null!=t&&(e+="="+t))}))}return e}function Rt(t){const e={};for(const n in t){const i=t[n];void 0!==i&&(e[n]=u(i)?i.map((t=>null==t?null:""+t)):null==i?i:""+i)}return e}const Lt=Symbol(""),Ft=Symbol(""),Vt=Symbol(""),Nt=Symbol(""),$t=Symbol("");function Bt(){let t=[];function e(e){return t.push(e),()=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)}}function n(){t=[]}return{add:e,list:()=>t,reset:n}}function zt(t,e,n,i,o){const r=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise(((s,a)=>{const l=t=>{!1===t?a(U(4,{from:n,to:e})):t instanceof Error?a(t):$(t)?a(U(2,{from:e,to:t})):(r&&i.enterCallbacks[o]===r&&"function"===typeof t&&r.push(t),s())},c=t.call(i&&i.instances[o],e,n,l);let u=Promise.resolve(c);t.length<3&&(u=u.then(l)),u.catch((t=>a(t)))}))}function Wt(t,e,n,i){const o=[];for(const r of t){0;for(const t in r.components){let a=r.components[t];if("beforeRouteEnter"===e||r.instances[t])if(Ht(a)){const s=a.__vccOpts||a,l=s[e];l&&o.push(zt(l,n,i,r,t))}else{let l=a();0,o.push((()=>l.then((o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${t}" at "${r.path}"`));const a=s(o)?o.default:o;r.components[t]=a;const l=a.__vccOpts||a,c=l[e];return c&&zt(c,n,i,r,t)()}))))}}}return o}function Ht(t){return"object"===typeof t||"displayName"in t||"props"in t||"__vccOpts"in t}function Ut(t){const e=(0,i.f3)(Vt),n=(0,i.f3)(Nt),r=(0,i.Fl)((()=>e.resolve((0,o.SU)(t.to)))),s=(0,i.Fl)((()=>{const{matched:t}=r.value,{length:e}=t,i=t[e-1],o=n.matched;if(!i||!o.length)return-1;const s=o.findIndex(m.bind(null,i));if(s>-1)return s;const a=Jt(t[e-2]);return e>1&&Jt(i)===a&&o[o.length-1].path!==a?o.findIndex(m.bind(null,t[e-2])):s})),a=(0,i.Fl)((()=>s.value>-1&&Gt(n.params,r.value.params))),l=(0,i.Fl)((()=>s.value>-1&&s.value===n.matched.length-1&&b(n.params,r.value.params)));function u(n={}){return Xt(n)?e[(0,o.SU)(t.replace)?"replace":"push"]((0,o.SU)(t.to)).catch(c):Promise.resolve()}return{route:r,href:(0,i.Fl)((()=>r.value.href)),isActive:a,isExactActive:l,navigate:u}}const qt=(0,i.aZ)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ut,setup(t,{slots:e}){const n=(0,o.qj)(Ut(t)),{options:r}=(0,i.f3)(Vt),s=(0,i.Fl)((()=>({[Kt(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Kt(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=e.default&&e.default(n);return t.custom?o:(0,i.h)("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Yt=qt;function Xt(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Gt(t,e){for(const n in e){const i=e[n],o=t[n];if("string"===typeof i){if(i!==o)return!1}else if(!u(o)||o.length!==i.length||i.some(((t,e)=>t!==o[e])))return!1}return!0}function Jt(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Kt=(t,e,n)=>null!=t?t:null!=e?e:n,Qt=(0,i.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=(0,i.f3)($t),s=(0,i.Fl)((()=>t.route||r.value)),l=(0,i.f3)(Ft,0),c=(0,i.Fl)((()=>{let t=(0,o.SU)(l);const{matched:e}=s.value;let n;while((n=e[t])&&!n.components)t++;return t})),u=(0,i.Fl)((()=>s.value.matched[c.value]));(0,i.JJ)(Ft,(0,i.Fl)((()=>c.value+1))),(0,i.JJ)(Lt,u),(0,i.JJ)($t,s);const h=(0,o.iH)();return(0,i.YP)((()=>[h.value,u.value,t.name]),(([t,e,n],[i,o,r])=>{e&&(e.instances[n]=t,o&&o!==e&&t&&t===i&&(e.leaveGuards.size||(e.leaveGuards=o.leaveGuards),e.updateGuards.size||(e.updateGuards=o.updateGuards))),!t||!e||o&&m(e,o)&&i||(e.enterCallbacks[n]||[]).forEach((e=>e(t)))}),{flush:"post"}),()=>{const o=s.value,r=t.name,l=u.value,c=l&&l.components[r];if(!c)return Zt(n.default,{Component:c,route:o});const f=l.props[r],d=f?!0===f?o.params:"function"===typeof f?f(o):f:null,p=t=>{t.component.isUnmounted&&(l.instances[r]=null)},g=(0,i.h)(c,a({},d,e,{onVnodeUnmounted:p,ref:h}));return Zt(n.default,{Component:g,route:o})||g}}});function Zt(t,e){if(!t)return null;const n=t(e);return 1===n.length?n[0]:n}const te=Qt;function ee(t){const e=ot(t.routes,t),n=t.parseQuery||Dt,s=t.stringifyQuery||It,h=t.history;const f=Bt(),g=Bt(),m=Bt(),b=(0,o.XI)(z);let v=z;r&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const x=l.bind(null,(t=>""+t)),_=l.bind(null,Tt),S=l.bind(null,jt);function k(t,n){let i,o;return B(t)?(i=e.getRecordMatcher(t),o=n):o=t,e.addRoute(o,i)}function O(t){const n=e.getRecordMatcher(t);n&&e.removeRoute(n)}function M(){return e.getRoutes().map((t=>t.record))}function P(t){return!!e.getRecordMatcher(t)}function T(t,i){if(i=a({},i||b.value),"string"===typeof t){const o=d(n,t,i.path),r=e.resolve({path:o.path},i),s=h.createHref(o.fullPath);return a(o,r,{params:S(r.params),hash:jt(o.hash),redirectedFrom:void 0,href:s})}let o;if("path"in t)o=a({},t,{path:d(n,t.path,i.path).path});else{const e=a({},t.params);for(const t in e)null==e[t]&&delete e[t];o=a({},t,{params:_(t.params)}),i.params=_(i.params)}const r=e.resolve(o,i),l=t.hash||"";r.params=x(S(r.params));const c=p(s,a({},t,{hash:Pt(l),path:r.path})),u=h.createHref(c);return a({fullPath:c,hash:l,query:s===It?Rt(t.query):t.query||{}},r,{redirectedFrom:void 0,href:u})}function I(t){return"string"===typeof t?d(n,t,b.value.path):a({},t)}function R(t,e){if(v!==t)return U(8,{from:e,to:t})}function L(t){return N(t)}function F(t){return L(a(I(t),{replace:!0}))}function V(t){const e=t.matched[t.matched.length-1];if(e&&e.redirect){const{redirect:n}=e;let i="function"===typeof n?n(t):n;return"string"===typeof i&&(i=i.includes("?")||i.includes("#")?i=I(i):{path:i},i.params={}),a({query:t.query,hash:t.hash,params:"path"in i?{}:t.params},i)}}function N(t,e){const n=v=T(t),i=b.value,o=t.state,r=t.force,l=!0===t.replace,c=V(n);if(c)return N(a(I(c),{state:"object"===typeof c?a({},o,c.state):o,force:r,replace:l}),e||n);const u=n;let h;return u.redirectedFrom=e,!r&&y(s,i,n)&&(h=U(16,{to:u,from:i}),nt(i,i,!0,!1)),(h?Promise.resolve(h):W(u,i)).catch((t=>q(t)?q(t,2)?t:et(t):Z(t,u,i))).then((t=>{if(t){if(q(t,2))return N(a({replace:l},I(t.to),{state:"object"===typeof t.to?a({},o,t.to.state):o,force:r}),e||u)}else t=Y(u,i,!0,l,o);return H(u,i,t),t}))}function $(t,e){const n=R(t,e);return n?Promise.reject(n):Promise.resolve()}function W(t,e){let n;const[i,o,r]=ie(t,e);n=Wt(i.reverse(),"beforeRouteLeave",t,e);for(const a of i)a.leaveGuards.forEach((i=>{n.push(zt(i,t,e))}));const s=$.bind(null,t,e);return n.push(s),ne(n).then((()=>{n=[];for(const i of f.list())n.push(zt(i,t,e));return n.push(s),ne(n)})).then((()=>{n=Wt(o,"beforeRouteUpdate",t,e);for(const i of o)i.updateGuards.forEach((i=>{n.push(zt(i,t,e))}));return n.push(s),ne(n)})).then((()=>{n=[];for(const i of t.matched)if(i.beforeEnter&&!e.matched.includes(i))if(u(i.beforeEnter))for(const o of i.beforeEnter)n.push(zt(o,t,e));else n.push(zt(i.beforeEnter,t,e));return n.push(s),ne(n)})).then((()=>(t.matched.forEach((t=>t.enterCallbacks={})),n=Wt(r,"beforeRouteEnter",t,e),n.push(s),ne(n)))).then((()=>{n=[];for(const i of g.list())n.push(zt(i,t,e));return n.push(s),ne(n)})).catch((t=>q(t,8)?t:Promise.reject(t)))}function H(t,e,n){for(const i of m.list())i(t,e,n)}function Y(t,e,n,i,o){const s=R(t,e);if(s)return s;const l=e===z,c=r?history.state:{};n&&(i||l?h.replace(t.fullPath,a({scroll:l&&c&&c.scroll},o)):h.push(t.fullPath,o)),b.value=t,nt(t,e,n,l),et()}let X;function G(){X||(X=h.listen(((t,e,n)=>{if(!at.listening)return;const i=T(t),o=V(i);if(o)return void N(a(o,{replace:!0}),i).catch(c);v=i;const s=b.value;r&&j(C(s.fullPath,n.delta),A()),W(i,s).catch((t=>q(t,12)?t:q(t,2)?(N(t.to,i).then((t=>{q(t,20)&&!n.delta&&n.type===w.pop&&h.go(-1,!1)})).catch(c),Promise.reject()):(n.delta&&h.go(-n.delta,!1),Z(t,i,s)))).then((t=>{t=t||Y(i,s,!1),t&&(n.delta&&!q(t,8)?h.go(-n.delta,!1):n.type===w.pop&&q(t,20)&&h.go(-1,!1)),H(i,s,t)})).catch(c)})))}let J,K=Bt(),Q=Bt();function Z(t,e,n){et(t);const i=Q.list();return i.length?i.forEach((i=>i(t,e,n))):console.error(t),Promise.reject(t)}function tt(){return J&&b.value!==z?Promise.resolve():new Promise(((t,e)=>{K.add([t,e])}))}function et(t){return J||(J=!t,G(),K.list().forEach((([e,n])=>t?n(t):e())),K.reset()),t}function nt(e,n,o,s){const{scrollBehavior:a}=t;if(!r||!a)return Promise.resolve();const l=!o&&D(C(e.fullPath,0))||(s||!o)&&history.state&&history.state.scroll||null;return(0,i.Y3)().then((()=>a(e,n,l))).then((t=>t&&E(t))).catch((t=>Z(t,e,n)))}const it=t=>h.go(t);let rt;const st=new Set,at={currentRoute:b,listening:!0,addRoute:k,removeRoute:O,hasRoute:P,getRoutes:M,resolve:T,options:t,push:L,replace:F,go:it,back:()=>it(-1),forward:()=>it(1),beforeEach:f.add,beforeResolve:g.add,afterEach:m.add,onError:Q.add,isReady:tt,install(t){const e=this;t.component("RouterLink",Yt),t.component("RouterView",te),t.config.globalProperties.$router=e,Object.defineProperty(t.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,o.SU)(b)}),r&&!rt&&b.value===z&&(rt=!0,L(h.location).catch((t=>{0})));const n={};for(const o in z)n[o]=(0,i.Fl)((()=>b.value[o]));t.provide(Vt,e),t.provide(Nt,(0,o.qj)(n)),t.provide($t,b);const s=t.unmount;st.add(t),t.unmount=function(){st.delete(t),st.size<1&&(v=z,X&&X(),X=null,b.value=z,rt=!1,J=!1),s()}}};return at}function ne(t){return t.reduce(((t,e)=>t.then((()=>e()))),Promise.resolve())}function ie(t,e){const n=[],i=[],o=[],r=Math.max(e.matched.length,t.matched.length);for(let s=0;s<r;s++){const r=e.matched[s];r&&(t.matched.find((t=>m(t,r)))?i.push(r):n.push(r));const a=t.matched[s];a&&(e.matched.find((t=>m(t,a)))||o.push(a))}return[n,i,o]}}}]);
//# sourceMappingURL=chunk-vendors.3f4f208d.js.map