PageSourceSearch

https://www.amerihealthcaritaspa.com/etc.clientlibs/amerihealth-ca…-ff26e9ce199bd24aaa88bf6f26e52ae7-lc.min.js

js amerihealthcaritaspa.com collected 2026-10-04 10:21:21 UTC 702,297 bytes, 3 lines download raw bytes

1/*! For license information please see site.bundle.js.LICENSE.txt */
2var amerihealth_caritas;!function(){var e={196:function(e,t,n){"use strict";function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(i=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,s=e}finally{try{i||null==a.return||a.return()}finally{if(r)throw s}}return n}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=s(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r,o=!0,a=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}function s(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function e(t,n,i){function r(o,a){if(!n[o]){if(!t[o]){if(s)return s(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){return r(t[o][1][e]||e)}),c,c.exports,e,t,n,i)}return n[o].exports}for(var s=void 0,o=0;o<i.length;o++)r(i[o]);return r}({1:[function(e,t,i){(function(e){(function(){function n(e,t){for(var n=-1,i=null==e?0:e.length,r=0,s=[];++n<i;){var o=e[n];t(o,n,e)&&(s[r++]=o)}return s}function r(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function s(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function o(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function l(e,t,n){var i=e.length;for(n+=-1;++n<i;)if(t(e[n],n,e))return n;return-1}function c(e){return e!=e}function u(e){return function(t){return e(t)}}function d(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function h(e){var t=Object;return function(n){return e(t(n))}}function f(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function p(){}function m(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function g(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function v(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function y(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new v;++t<n;)this.add(e[t])}function b(e){this.size=(this.__data__=new g(e)).size}function _(e,t){var n,i=yn(e),r=!i&&vn(e),s=!i&&!r&&bn(e),o=!i&&!r&&!s&&wn(e);if(i=i||r||s||o){r=e.length;for(var a=String,l=-1,c=Array(r);++l<r;)c[l]=a(l);r=c}else r=[];for(n in a=r.length,e)!t&&!yt.call(e,n)||i&&("length"==n||s&&("offset"==n||"parent"==n)||o&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||te(n,a))||r.push(n);return r}function E(e,t,n){(n===Be||fe(e[t],n))&&(n!==Be||t in e)||T(e,t,n)}function w(e,t,n){var i=e[t];yt.call(e,t)&&fe(i,n)&&(n!==Be||t in e)||T(e,t,n)}function x(e,t){for(var n=e.length;n--;)if(fe(e[n][0],t))return n;return-1}function T(e,t,n){"__proto__"==t&&Pt?Pt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function S(e,t,n,i,r,s){var o,a=1&t,l=2&t,c=4&t;if(n&&(o=r?n(e,i,r,s):n(e)),o!==Be)return o;if(!ye(e))return e;if(i=yn(e)){if(o=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&yt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!a)return V(e,o)}else{var u=on(e),d="[object Function]"==u||"[object GeneratorFunction]"==u;if(bn(e))return B(e,a);if("[object Object]"==u||"[object Arguments]"==u||d&&!r){if(o=l||d?{}:Z(e),!a)return l?function(e,t){return G(e,sn(e),t)}(e,function(e,t){return e&&G(t,Me(t),e)}(o,e)):function(e,t){return G(e,rn(e),t)}(e,function(e,t){return e&&G(t,Ae(t),e)}(o,e))}else{if(!et[u])return r?e:{};o=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return j(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return t=n?j(e.buffer):e.buffer,new e.constructor(t,e.byteOffset,e.byteLength);
2case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return q(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(t=new e.constructor(e.source,We.exec(e))).lastIndex=e.lastIndex,t;case"[object Symbol]":return Qt?Object(Qt.call(e)):{}}}(e,u,a)}}if(r=(s=s||new b).get(e))return r;if(s.set(e,o),En(e))return e.forEach((function(i){o.add(S(i,t,n,i,e,s))})),o;if(_n(e))return e.forEach((function(i,r){o.set(r,S(i,t,n,r,e,s))})),o;l=c?l?Y:W:l?Me:Ae;var h=i?Be:l(e);return function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n););}(h||e,(function(i,r){h&&(i=e[r=i]),w(o,r,S(i,t,n,r,e,s))})),o}function L(e,t){for(var n=0,i=(t=F(t,e)).length;null!=e&&n<i;)e=e[oe(t[n++])];return n&&n==i?e:Be}function I(e,t,n){return t=t(e),yn(e)?t:s(t,n(e))}function C(e){if(null==e)e=e===Be?"[object Undefined]":"[object Null]";else if(kt&&kt in Object(e)){var t=yt.call(e,kt),n=e[kt];try{e[kt]=Be;var i=!0}catch(e){}var r=_t.call(e);i&&(t?e[kt]=n:delete e[kt]),e=r}else e=_t.call(e);return e}function O(e,t){return null!=e&&yt.call(e,t)}function A(e,t){return null!=e&&t in Object(e)}function M(e){return be(e)&&"[object Arguments]"==C(e)}function k(e,t,n,i,r){if(e===t)t=!0;else if(null==e||null==t||!be(e)&&!be(t))t=e!=e&&t!=t;else e:{var s,o,a=yn(e),l=yn(t),c="[object Object]"==(s="[object Arguments]"==(s=a?"[object Array]":on(e))?"[object Object]":s);if(l="[object Object]"==(o="[object Arguments]"==(o=l?"[object Array]":on(t))?"[object Object]":o),(o=s==o)&&bn(e)){if(!bn(t)){t=!1;break e}c=!(a=!0)}if(o&&!c)r=r||new b,t=a||wn(e)?H(e,t,n,i,k,r):function(e,t,n,i,r,s,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!s(new St(e),new St(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return fe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=d;case"[object Set]":if(a=a||f,e.size!=t.size&&!(1&i))break;return(n=o.get(e))?n==t:(i|=2,o.set(e,t),t=H(a(e),a(t),i,r,s,o),o.delete(e),t);case"[object Symbol]":if(Qt)return Qt.call(e)==Qt.call(t)}return!1}(e,t,s,n,i,k,r);else{if(!(1&n)&&(a=c&&yt.call(e,"__wrapped__"),s=l&&yt.call(t,"__wrapped__"),a||s)){t=k(e=a?e.value():e,t=s?t.value():t,n,i,r=r||new b);break e}if(o)t:if(r=r||new b,a=1&n,s=W(e),l=s.length,o=W(t).length,l==o||a){for(c=l;c--;){var u=s[c];if(!(a?u in t:yt.call(t,u))){t=!1;break t}}if((o=r.get(e))&&r.get(t))t=o==t;else{o=!0,r.set(e,t),r.set(t,e);for(var h=a;++c<l;){var p=e[u=s[c]],m=t[u];if(i)var g=a?i(m,p,u,t,e,r):i(p,m,u,e,t,r);if(g===Be?p!==m&&!k(p,m,n,i,r):!g){o=!1;break}h=h||"constructor"==u}o&&!h&&(n=e.constructor)!=(i=t.constructor)&&"constructor"in e&&"constructor"in t&&!("function"==typeof n&&n instanceof n&&"function"==typeof i&&i instanceof i)&&(o=!1),r.delete(e),r.delete(t),t=o}}else t=!1;else t=!1}}return t}function P(e){return"function"==typeof e?e:null==e?Re:"object"==a(e)?yn(e)?function(e,t){return ne(e)&&t==t&&!ye(t)?re(oe(e),t):function(n){var i=Ce(n,e);return i===Be&&i===t?Oe(n,e):k(t,i,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=Ae(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,r==r&&!ye(r)]}return t}(e);return 1==t.length&&t[0][2]?re(t[0][0],t[0][1]):function(n){return n===e||function(e,t){var n=t.length,i=n;if(null==e)return!i;for(e=Object(e);n--;)if((r=t[n])[2]?r[1]!==e[r[0]]:!(r[0]in e))return!1;for(;++n<i;){var r,s=(r=t[n])[0],o=e[s],a=r[1];if(r[2]){if(o===Be&&!(s in e))return!1}else if(r=new b,void 0!==Be||!k(a,o,3,void 0,r))return!1}return!0}(n,t)}}(e):Ne(e)}function R(e){if(!ie(e))return Nt(e);var t,n=[];for(t in Object(e))yt.call(e,t)&&"constructor"!=t&&n.push(t);return n}function D(e,t,n,i,r){e!==t&&tn(t,(function(s,o){if(ye(s)){var a=r=r||new b,l="__proto__"==o?Be:e[o],c="__proto__"==o?Be:t[o];if(p=a.get(c))E(e,o,p);else{var u=(p=i?i(l,c,o+"",e,t,a):Be)===Be;if(u){var d=yn(c),h=!d&&bn(c),f=!d&&!h&&wn(c),p=c;d||h||f?p=yn(l)?l:me(l)?V(l):h?B(c,!(u=!1)):f?q(c,!(u=!1)):[]:_e(c)||vn(c)?vn(p=l)?p=Le(l):(!ye(l)||n&&ge(l))&&(p=Z(c)):u=!1}u&&(a.set(c,p),D(p,c,n,i,a),a.delete(c)),E(e,o,p)}}else(a=i?i("__proto__"==o?Be:e[o],s,o+"",e,t,r):Be)===Be&&(a=s),E(e,o,a)}),Me)}function N(e){if("string"==typeof e)return e;if(yn(e))return r(e,N)+"";if(we(e))return Jt?Jt.call(e):"";var t=e+"";return"0"==t&&1/e==-je?"-0":t}function $(e,t){var n;if((t=F(t,e)).length<2)n=e;else{var i=0,r=-1,s=-1,o=(n=t).length;for(i<0&&(i=o<-i?0:o+i),(r=o<r?o:r)<0&&(r+=o),o=r<i?0:r-i>>>0,i>>>=0,r=Array(o);++s<o;)r[s]=n[s+i];n=L(e,r)}null==(e=n)||delete e[oe(ue(t))]}function F(e,t){return yn(e)?e:ne(e,t)?[e]:pn(Ie(e))}function B(e,t){if(t)return e.slice();var n=e.length;return n=Lt?Lt(n):new e.constructor(n),e.copy(n),n}function j(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function q(e,t){return new e.constructor(t?j(e.buffer):e.buffer,e.byteOffset,e.length)}function V(e,t){var n=-1,i=e.length;for(t=t||Array(i);++n<i;)t[n]=e[n];return t}function G(e,t,n){var i=!n;n=n||{};for(var r=-1,s=t.length;++r<s;){var o=t[r],a=Be;a===Be&&(a=e[o]),i?T(n,o,a):w(n,o,a)}return n}function z(e){return function(e){return fn(se(e,void 0,Re),e+"")}((function(t,n){var i,r=-1,s=n.length,o=1<s?n[s-1]:Be,l=2<s?n[2]:Be;if(o=3<e.length&&"function"==typeof o?(s--,o):Be,i=l){i=n[0];var c=n[1];if(ye(l)){var u=a(c);i=!!("number"==u?pe(l)&&te(c,l.length):"string"==u&&c in l)&&fe(l[c],i)}else i=!1}for(i&&(o=s<3?Be:o,s=1),t=Object(t);++r<s;)(l=n[r])&&e(t,l,r,o);return t}))}function U(e){return _e(e)?Be:e}
2function H(e,t,n,i,r,s){var a=1&n,l=e.length;if(l!=(c=t.length)&&!(a&&l<c))return!1;if((c=s.get(e))&&s.get(t))return c==t;var c=-1,u=!0,d=2&n?new y:Be;for(s.set(e,t),s.set(t,e);++c<l;){var h=e[c],f=t[c];if(i)var p=a?i(f,h,c,t,e,s):i(h,f,c,e,t,s);if(p!==Be){if(p)continue;u=!1;break}if(d){if(!o(t,(function(e,t){if(!d.has(t)&&(h===e||r(h,e,n,i,s)))return d.push(t)}))){u=!1;break}}else if(h!==f&&!r(h,f,n,i,s)){u=!1;break}}return s.delete(e),s.delete(t),u}function W(e){return I(e,Ae,rn)}function Y(e){return I(e,Me,sn)}function X(e,t){var n=(n=p.iteratee||De)===De?P:n;return arguments.length?n(e,t):n}function K(e,t){var n=e.__data__,i=a(t);return("string"==i||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function Q(e,t){var n=null==e?Be:e[t];return!ye(n)||bt&&bt in n||!(ge(n)?wt:Ke).test(ae(n))?Be:n}function J(e,t,n){for(var i=-1,r=(t=F(t,e)).length,s=!1;++i<r;){var o=oe(t[i]);if(!(s=null!=e&&n(e,o)))break;e=e[o]}return s||++i!=r?s:!!(r=null==e?0:e.length)&&ve(r)&&te(o,r)&&(yn(e)||vn(e))}function Z(e){return"function"!=typeof e.constructor||ie(e)?{}:Zt(It(e))}function ee(e){return yn(e)||vn(e)||!!(Mt&&e&&e[Mt])}function te(e,t){var n=a(e);return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Je.test(e))&&-1<e&&0==e%1&&e<t}function ne(e,t){if(yn(e))return!1;var n=a(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!we(e))||Ge.test(e)||!Ve.test(e)||null!=t&&e in Object(t)}function ie(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||mt)}function re(e,t){return function(n){return null!=n&&n[e]===t&&(t!==Be||e in Object(n))}}function se(e,t,n){return t=$t(t===Be?e.length-1:t,0),function(){for(var i=arguments,r=-1,s=$t(i.length-t,0),o=Array(s);++r<s;)o[r]=i[t+r];for(r=-1,s=Array(t+1);++r<t;)s[r]=i[r];return s[t]=n(o),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}function oe(e){if("string"==typeof e||we(e))return e;var t=e+"";return"0"==t&&1/e==-je?"-0":t}function ae(e){if(null==e)return"";try{return vt.call(e)}catch(e){}return e+""}function le(e,t,n){var i=null==e?0:e.length;return i?((n=null==n?0:Te(n))<0&&(n=$t(i+n,0)),l(e,X(t,3),n)):-1}function ce(e){return null!=e&&e.length?function e(t,n,i,r,o){var a=-1,l=t.length;for(i=i||ee,o=o||[];++a<l;){var c=t[a];0<n&&i(c)?1<n?e(c,n-1,i,r,o):s(o,c):r||(o[o.length]=c)}return o}(e,1):[]}function ue(e){var t=null==e?0:e.length;return t?e[t-1]:Be}function de(e,t){function n(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;return s.has(r)?s.get(r):(i=e.apply(this,i),n.cache=s.set(r,i)||s,i)}if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");return n.cache=new(de.Cache||v),n}function he(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function fe(e,t){return e===t||e!=e&&t!=t}function pe(e){return null!=e&&ve(e.length)&&!ge(e)}function me(e){return be(e)&&pe(e)}function ge(e){return!!ye(e)&&("[object Function]"==(e=C(e))||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e)}function ve(e){return"number"==typeof e&&-1<e&&0==e%1&&e<=9007199254740991}function ye(e){var t=a(e);return null!=e&&("object"==t||"function"==t)}function be(e){return null!=e&&"object"==a(e)}function _e(e){return!(!be(e)||"[object Object]"!=C(e))&&(null===(e=It(e))||"function"==typeof(e=yt.call(e,"constructor")&&e.constructor)&&e instanceof e&&vt.call(e)==Et)}function Ee(e){return"string"==typeof e||!yn(e)&&be(e)&&"[object String]"==C(e)}function we(e){return"symbol"==a(e)||be(e)&&"[object Symbol]"==C(e)}function xe(e){return e?(e=Se(e))===je||e===-je?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Te(e){var t=(e=xe(e))%1;return e==e?t?e-t:e:0}function Se(e){if("number"==typeof e)return e;if(we(e))return qe;if(ye(e)&&(e=ye(e="function"==typeof e.valueOf?e.valueOf():e)?e+"":e),"string"!=typeof e)return 0===e?e:+e;e=e.replace(Ue,"");var t=Xe.test(e);return t||Qe.test(e)?nt(e.slice(2),t?2:8):Ye.test(e)?qe:+e}function Le(e){return G(e,Me(e))}function Ie(e){return null==e?"":N(e)}function Ce(e,t,n){return(e=null==e?Be:L(e,t))===Be?n:e}function Oe(e,t){return null!=e&&J(e,t,A)}function Ae(e){return pe(e)?_(e):R(e)}function Me(e){if(pe(e))e=_(e,!0);else if(ye(e)){var t,n=ie(e),i=[];
2for(t in e)("constructor"!=t||!n&&yt.call(e,t))&&i.push(t);e=i}else{if(t=[],null!=e)for(n in Object(e))t.push(n);e=t}return e}function ke(e){return null==e?[]:function(e,t){return r(t,(function(t){return e[t]}))}(e,Ae(e))}function Pe(e){return function(){return e}}function Re(e){return e}function De(e){return P("function"==typeof e?e:S(e,1))}function Ne(e){return ne(e)?function(e){return function(t){return null==t?Be:t[e]}}(oe(e)):function(e){return function(t){return L(t,e)}}(e)}function $e(){return[]}function Fe(){return!1}var Be,je=1/0,qe=NaN,Ve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ge=/^\w*$/,ze=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ue=/^\s+|\s+$/g,He=/\\(\\)?/g,We=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Ke=/^\[object .+?Constructor\]$/,Qe=/^0o[0-7]+$/i,Je=/^(?:0|[1-9]\d*)$/,Ze={};Ze["[object Float32Array]"]=Ze["[object Float64Array]"]=Ze["[object Int8Array]"]=Ze["[object Int16Array]"]=Ze["[object Int32Array]"]=Ze["[object Uint8Array]"]=Ze["[object Uint8ClampedArray]"]=Ze["[object Uint16Array]"]=Ze["[object Uint32Array]"]=!0,Ze["[object Arguments]"]=Ze["[object Array]"]=Ze["[object ArrayBuffer]"]=Ze["[object Boolean]"]=Ze["[object DataView]"]=Ze["[object Date]"]=Ze["[object Error]"]=Ze["[object Function]"]=Ze["[object Map]"]=Ze["[object Number]"]=Ze["[object Object]"]=Ze["[object RegExp]"]=Ze["[object Set]"]=Ze["[object String]"]=Ze["[object WeakMap]"]=!1;var et={};et["[object Arguments]"]=et["[object Array]"]=et["[object ArrayBuffer]"]=et["[object DataView]"]=et["[object Boolean]"]=et["[object Date]"]=et["[object Float32Array]"]=et["[object Float64Array]"]=et["[object Int8Array]"]=et["[object Int16Array]"]=et["[object Int32Array]"]=et["[object Map]"]=et["[object Number]"]=et["[object Object]"]=et["[object RegExp]"]=et["[object Set]"]=et["[object String]"]=et["[object Symbol]"]=et["[object Uint8Array]"]=et["[object Uint8ClampedArray]"]=et["[object Uint16Array]"]=et["[object Uint32Array]"]=!0,et["[object Error]"]=et["[object Function]"]=et["[object WeakMap]"]=!1;var tt,nt=parseInt,it="object"==a(e)&&e&&e.Object===Object&&e,rt="object"==("undefined"==typeof self?"undefined":a(self))&&self&&self.Object===Object&&self,st=it||rt||Function("return this")(),ot="object"==a(i)&&i&&!i.nodeType&&i,at=ot&&"object"==a(t)&&t&&!t.nodeType&&t,lt=at&&at.exports===ot,ct=lt&&it.process;e:{try{tt=ct&&ct.binding&&ct.binding("util");break e}catch(u){}tt=void 0}var ut,dt=tt&&tt.isMap,ht=tt&&tt.isSet,ft=tt&&tt.isTypedArray,pt=Array.prototype,mt=Object.prototype,gt=st["__core-js_shared__"],vt=Function.prototype.toString,yt=mt.hasOwnProperty,bt=(ut=/[^.]+$/.exec(gt&&gt.keys&&gt.keys.IE_PROTO||""))?"Symbol(src)_1."+ut:"",_t=mt.toString,Et=vt.call(Object),wt=RegExp("^"+vt.call(yt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=lt?st.Buffer:Be,Tt=st.Symbol,St=st.Uint8Array,Lt=xt?xt.a:Be,It=h(Object.getPrototypeOf),Ct=Object.create,Ot=mt.propertyIsEnumerable,At=pt.splice,Mt=Tt?Tt.isConcatSpreadable:Be,kt=Tt?Tt.toStringTag:Be,Pt=function(){try{var e=Q(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Rt=Object.getOwnPropertySymbols,Dt=xt?xt.isBuffer:Be,Nt=h(Object.keys),$t=Math.max,Ft=Date.now,Bt=Q(st,"DataView"),jt=Q(st,"Map"),qt=Q(st,"Promise"),Vt=Q(st,"Set"),Gt=Q(st,"WeakMap"),zt=Q(Object,"create"),Ut=ae(Bt),Ht=ae(jt),Wt=ae(qt),Yt=ae(Vt),Xt=ae(Gt),Kt=Tt?Tt.prototype:Be,Qt=Kt?Kt.valueOf:Be,Jt=Kt?Kt.toString:Be,Zt=function(e){return ye(e)?Ct?Ct(e):(en.prototype=e,e=new en,en.prototype=Be,e):{}};function en(){}m.prototype.clear=function(){this.__data__=zt?zt(null):{},this.size=0},m.prototype.delete=function(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e},m.prototype.get=function(e){var t=this.__data__;return zt?"__lodash_hash_undefined__"===(e=t[e])?Be:e:yt.call(t,e)?t[e]:Be},m.prototype.has=function(e){var t=this.__data__;return zt?t[e]!==Be:yt.call(t,e)},m.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=zt&&t===Be?"__lodash_hash_undefined__":t,this},g.prototype.clear=function(){this.__data__=[],this.size=0},g.prototype.delete=function(e){var t=this.__data__;return!((e=x(t,e))<0||(e==t.length-1?t.pop():At.call(t,e,1),--this.size,0))},g.prototype.get=function(e){var t=this.__data__;return(e=x(t,e))<0?Be:t[e][1]},g.prototype.has=function(e){return-1<x(this.__data__,e)},g.prototype.set=function(e,t){var n=this.__data__,i=x(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},v.prototype.clear=function(){this.size=0,this.__data__={hash:new m,map:new(jt||g),string:new m}},v.prototype.delete=function(e){return e=K(this,e).delete(e),this.size-=e?1:0,e},v.prototype.get=function(e){return K(this,e).get(e)},v.prototype.has=function(e){return K(this,e).has(e)},v.prototype.set=function(e,t){var n=K(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},y.prototype.add=y.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},y.prototype.has=function(e){return this.__data__.has(e)},b.prototype.clear=function(){this.__data__=new g,this.size=0},b.prototype.delete=function(e){var t=this.__data__;return e=t.delete(e),this.size=t.size,e},b.prototype.get=function(e){return this.__data__.get(e)},b.prototype.has=function(e){return this.__data__.has(e)},b.prototype.set=function(e,t){var n=this.__data__;if(n instanceof g){var i=n.__data__;if(!jt||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new v(i)}return n.set(e,t),this.size=n.size,this};var tn=function(e,t,n){for(var i=-1,r=Object(e),s=(n=n(e)).length;s--;){var o=n[++i];if(!1===t(r[o],o,r))break}return e},nn=Pt?function(e,t){return Pt(e,"toString",{configurable:!0,enumerable:!1,value:Pe(t),writable:!0})}:Re,rn=Rt?function(e){return null==e?[]:(e=Object(e),n(Rt(e),(function(t){return Ot.call(e,t)})))}:$e,sn=Rt?function(e){for(var t=[];e;)s(t,rn(e)),e=It(e);return t}:$e,on=C;(Bt&&"[object DataView]"!=on(new Bt(new ArrayBuffer(1)))||jt&&"[object Map]"!=on(new jt)||qt&&"[object Promise]"!=on(qt.resolve())||Vt&&"[object Set]"!=on(new Vt)||Gt&&"[object WeakMap]"!=on(new Gt))&&(on=function(e){var t=C(e);if(e=(e="[object Object]"==t?e.constructor:Be)?ae(e):"")switch(e){case Ut:return"[object DataView]";case Ht:return"[object Map]";case Wt:return"[object Promise]";case Yt:return"[object Set]";case Xt:return"[object WeakMap]"}return t});var an,ln,cn,un,dn,hn,fn=(un=nn,hn=dn=0,function(){var e=Ft(),t=16-(e-hn);if(hn=e,0<t){if(800<=++dn)return arguments[0]}else dn=0;return un.apply(Be,arguments)}),pn=(cn=(ln=de(ln=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ze,(function(e,n,i,r){t.push(i?r.replace(He,"$1"):n||e)})),t},(function(e){return 500===cn.size&&cn.clear(),e}))).cache,ln),mn=(an=le,function(e,t,n){var i=Object(e);
2if(!pe(e)){var r=X(t,3);e=Ae(e),t=function(e){return r(i[e],e,i)}}return-1<(t=an(e,t,n))?i[r?e[t]:t]:Be});de.Cache=v;var gn,vn=M(function(){return arguments}())?M:function(e){return be(e)&&yt.call(e,"callee")&&!Ot.call(e,"callee")},yn=Array.isArray,bn=Dt||Fe,_n=dt?u(dt):function(e){return be(e)&&"[object Map]"==on(e)},En=ht?u(ht):function(e){return be(e)&&"[object Set]"==on(e)},wn=ft?u(ft):function(e){return be(e)&&ve(e.length)&&!!Ze[C(e)]},xn=z((function(e,t,n){D(e,t,n)})),Tn=z((function(e,t,n,i){D(e,t,n,i)})),Sn=fn(se(gn=function(e,t){var n={};if(null==e)return n;var i=!1;t=r(t,(function(t){return t=F(t,e),i=i||1<t.length,t})),G(e,Y(e),n),i&&(n=S(n,7,U));for(var s=t.length;s--;)$(n,t[s]);return n},Be,ce),gn+"");p.constant=Pe,p.flatten=ce,p.iteratee=De,p.keys=Ae,p.keysIn=Me,p.memoize=de,p.merge=xn,p.mergeWith=Tn,p.negate=he,p.omit=Sn,p.property=Ne,p.reject=function(e,t){return(yn(e)?n:function(e,t){var n=[];return function(e,t){if(null==e)return e;if(!pe(e))return function(e,t){return e&&tn(e,t,Ae)}(e,t);for(var n=e.length,i=-1,r=Object(e);++i<n&&!1!==t(r[i],i,r););}(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n})(e,he(X(t,3)))},p.toPlainObject=Le,p.values=ke,p.cloneDeep=function(e){return S(e,5)},p.cloneDeepWith=function(e,t){return S(e,5,t="function"==typeof t?t:Be)},p.eq=fe,p.find=mn,p.findIndex=le,p.get=Ce,p.has=function(e,t){return null!=e&&J(e,t,O)},p.hasIn=Oe,p.identity=Re,p.includes=function(e,t,n,i){if(e=pe(e)?e:ke(e),n=n&&!i?Te(n):0,i=e.length,n<0&&(n=$t(i+n,0)),Ee(e))e=n<=i&&-1<e.indexOf(t,n);else{if(i=!!i){if(t==t)e:{for(n-=1,i=e.length;++n<i;)if(e[n]===t){e=n;break e}e=-1}else e=l(e,c,n);i=-1<e}e=i}return e},p.isArguments=vn,p.isArray=yn,p.isArrayLike=pe,p.isArrayLikeObject=me,p.isBuffer=bn,p.isEmpty=function(e){if(null==e)return!0;if(pe(e)&&(yn(e)||"string"==typeof e||"function"==typeof e.splice||bn(e)||wn(e)||vn(e)))return!e.length;var t=on(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(ie(e))return!R(e).length;for(var n in e)if(yt.call(e,n))return!1;return!0},p.isEqual=function(e,t){return k(e,t)},p.isFunction=ge,p.isLength=ve,p.isMap=_n,p.isNull=function(e){return null===e},p.isObject=ye,p.isObjectLike=be,p.isPlainObject=_e,p.isSet=En,p.isString=Ee,p.isSymbol=we,p.isTypedArray=wn,p.last=ue,p.stubArray=$e,p.stubFalse=Fe,p.toFinite=xe,p.toInteger=Te,p.toNumber=Se,p.toString=Ie,p.VERSION="4.17.5",at&&((at.exports=p)._=p,ot._=p)}).call(this)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){t.exports={itemType:{DATA:"data",FCTN:"fctn",EVENT:"event",LISTENER_ON:"listenerOn",LISTENER_OFF:"listenerOff"},dataLayerEvent:{CHANGE:"adobeDataLayer:change",EVENT:"adobeDataLayer:event"},listenerScope:{PAST:"past",FUTURE:"future",ALL:"all"}}},{}],3:[function(e,t,n){var i=e("../custom-lodash"),s=e("../version.json").version,o=i.cloneDeep,a=i.get,l=e("./item"),c=e("./listener"),u=e("./listenerManager"),d=e("./constants"),h=e("./utils/customMerge");t.exports=function(e){var t,n=e||{},i=[],f=[],p={},m={getState:function(){return p},getDataLayer:function(){return i}};function g(e){p=h(p,e.data)}function v(e){function n(e){return 0===i.length||e.index>i.length-1?[]:i.slice(0,e.index).map((function(e){return l(e)}))}e.valid?{data:function(e){g(e),t.triggerListeners(e)},fctn:function(e){e.config.call(i,i)},event:function(e){e.data&&g(e),t.triggerListeners(e)},listenerOn:function(e){var i=c(e);switch(i.scope){case d.listenerScope.PAST:var s,o=r(n(e));try{for(o.s();!(s=o.n()).done;){var a=s.value;t.triggerListener(i,a)}}catch(e){o.e(e)}finally{o.f()}break;case d.listenerScope.FUTURE:t.register(i);break;case d.listenerScope.ALL:if(t.register(i)){var l,u=r(n(e));try{for(u.s();!(l=u.n()).done;){var h=l.value;t.triggerListener(i,h)}}catch(e){u.e(e)}finally{u.f()}}}},listenerOff:function(e){t.unregister(c(e))}}[e.type](e):y(e)}function y(e){var t="The following item cannot be handled by the data layer because it does not have a valid format: "+JSON.stringify(e.config);console.error(t)}return Array.isArray(n.dataLayer)||(n.dataLayer=[]),f=n.dataLayer.splice(0,n.dataLayer.length),(i=n.dataLayer).version=s,p={},t=u(m),i.push=function(e){var t=arguments,n=arguments;if(Object.keys(t).forEach((function(e){var i=l(t[e]);switch(i.valid||(y(i),delete n[e]),i.type){case d.itemType.DATA:case d.itemType.EVENT:v(i);break;case d.itemType.FCTN:delete n[e],v(i);break;case d.itemType.LISTENER_ON:case d.itemType.LISTENER_OFF:delete n[e]}})),n[0])return Array.prototype.push.apply(this,n)},i.getState=function(e){return e?a(o(p),e):o(p)},i.addEventListener=function(e,t,n){v(l({on:e,handler:t,scope:n&&n.scope,path:n&&n.path}))},i.removeEventListener=function(e,t){v(l({off:e,handler:t}))},function(){for(var e=0;e<f.length;e++)i.push(f[e])}(),m}},{"../custom-lodash":1,"../version.json":14,"./constants":2,"./item":5,"./listener":7,"./listenerManager":8,"./utils/customMerge":10}],4:[function(e,t,n){var i={Manager:e("./dataLayerManager")};window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.version?console.warn("Adobe Client Data Layer v".concat(window.adobeDataLayer.version," has already been imported/initialized on this page. You may be erroneously loading it a second time.")):i.Manager({dataLayer:window.adobeDataLayer}),t.exports=i},{"./dataLayerManager":3}],5:[function(e,t,n){var i=e("../custom-lodash"),r=i.isPlainObject,s=i.isEmpty,o=i.omit,a=i.find,l=e("./utils/dataMatchesContraints"),c=e("./itemConstraints"),u=e("./constants");t.exports=function(e,t){var n=e,i=t,d=a(Object.keys(c),(function(e){return l(n,c[e])}))||"function"==typeof n&&u.itemType.FCTN||r(n)&&u.itemType.DATA,h=function(){var e=o(n,Object.keys(c.event));if(!s(e))return e}();return{config:n,type:d,data:h,valid:!!d,index:i}}},{"../custom-lodash":1,"./constants":2,"./itemConstraints":6,"./utils/dataMatchesContraints":11}],6:[function(e,t,n){t.exports={event:{event:{type:"string"},eventInfo:{optional:!0}},listenerOn:{on:{type:"string"},handler:{type:"function"},scope:{type:"string",values:["past","future","all"],optional:!0},path:{type:"string",optional:!0}},listenerOff:{off:{type:"string"},handler:{type:"function",optional:!0},scope:{type:"string",values:["past","future","all"],optional:!0},path:{type:"string",optional:!0}}}},{}],7:[function(e,t,n){var i=e("./constants");t.exports=function(e){return{event:e.config.on||e.config.off,handler:e.config.handler||null,scope:e.config.scope||e.config.on&&i.listenerScope.ALL||null,path:e.config.path||null}}},{"./constants":2}],8:[function(e,t,n){var i=e("../custom-lodash").cloneDeep,s=e("./constants"),o=e("./utils/listenerMatch"),a=e("./utils/indexOfListener");t.exports=function(e){var t={},n=e,l=a.bind(null,t);function c(e,t){if(o(e,t)){var r=[i(t.config)];e.handler.apply(n.getDataLayer(),r)}}return{register:function(e){var n=e.event;return Object.prototype.hasOwnProperty.call(t,n)?-1===l(e)&&(t[e.event].push(e),!0):(t[e.event]=[e],!0)},unregister:function(e){var n=e.event;if(Object.prototype.hasOwnProperty.call(t,n))if(e.handler||e.scope||e.path){var i=l(e);-1<i&&t[n].splice(i,1)}else t[n]=[]},triggerListeners:function(e){(function(e){var t=[];switch(e.type){case s.itemType.DATA:t.push(s.dataLayerEvent.CHANGE);break;case s.itemType.EVENT:t.push(s.dataLayerEvent.EVENT),e.data&&t.push(s.dataLayerEvent.CHANGE),e.config.event!==s.dataLayerEvent.CHANGE&&t.push(e.config.event)}return t})(e).forEach((function(n){if(Object.prototype.hasOwnProperty.call(t,n)){var i,s=r(t[n]);try{for(s.s();!(i=s.n()).done;)c(i.value,e)}catch(n){s.e(n)}finally{s.f()}}}))},triggerListener:function(e,t){c(e,t)}}}},{"../custom-lodash":1,"./constants":2,"./utils/indexOfListener":12,"./utils/listenerMatch":13}],9:[function(e,t,n){var i=e("../../custom-lodash"),r=i.has,s=i.get;
2t.exports=function(e,t){for(var n=t.substring(0,t.lastIndexOf("."));n;){if(r(e,n))if(null==s(e,n))return!0;n=n.substring(0,n.lastIndexOf("."))}return!1}},{"../../custom-lodash":1}],10:[function(e,t,n){var i=e("../../custom-lodash"),r=i.cloneDeepWith,s=i.isObject,o=i.isArray,a=i.reject,l=i.mergeWith,c=i.isNull;t.exports=function(e,t){return l(e,t,(function(e,t,n,i){if(null==t)return null})),function(e,t){return r(e,(n=1<arguments.length&&void 0!==t?t:function(e){return!e},function e(t,i,l,c){if(s(t)){if(o(t))return a(t,n).map((function(t){return r(t,e)}));for(var u={},d=0,h=Object.keys(t);d<h.length;d++){var f=h[d];n(t[f])||(u[f]=r(t[f],e))}return u}}));var n}(e,c)}},{"../../custom-lodash":1}],11:[function(e,t,n){var i=e("../../custom-lodash"),r=i.find,s=i.includes;t.exports=function(e,t){return void 0===r(Object.keys(t),(function(n){var i=t[n].type,r=n&&t[n].values,o=!t[n].optional,l=e[n],c=a(l),u=i&&c!==i,d=r&&!s(r,l);return o?!l||u||d:l&&(u||d)}))}},{"../../custom-lodash":1}],12:[function(e,t,n){var s=e("../../custom-lodash").isEqual;t.exports=function(e,t){var n=t.event;if(Object.prototype.hasOwnProperty.call(e,n)){var o,a=r(e[n].entries());try{for(a.s();!(o=a.n()).done;){var l=i(o.value,2),c=l[0],u=l[1];if(s(u.handler,t.handler))return c}}catch(e){a.e(e)}finally{a.f()}}return-1}},{"../../custom-lodash":1}],13:[function(e,t,n){var i=e("../../custom-lodash").has,r=e("../constants"),s=e("./ancestorRemoved");function o(e,t){return!t.data||!e.path||i(t.data,e.path)||s(t.data,e.path)}t.exports=function(e,t){var n=e.event,i=t.config,s=!1;return t.type===r.itemType.DATA?n===r.dataLayerEvent.CHANGE&&(s=o(e,t)):t.type===r.itemType.EVENT&&(n!==r.dataLayerEvent.EVENT&&n!==i.event||(s=o(e,t)),t.data&&n===r.dataLayerEvent.CHANGE&&(s=o(e,t))),s}},{"../../custom-lodash":1,"../constants":2,"./ancestorRemoved":9}],14:[function(e,t,n){t.exports={version:"2.0.2"}},{}]},{},[4])},321:function(e){var t;window,t=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},i.apply(this,arguments)}var r,s,o,a=n(14),l=n(13),c=function(e){return"svg"!==e.tagName.toLowerCase()};function u(e,t){return!1===t?h(e,"aria-hidden","false"):h(e,"hidden",!1)}function d(e,t){return!1===t?h(e,"aria-hidden","true"):h(e,"hidden",!0)}function h(e,t,n){var i="boolean"==typeof n;return{el:e,attributeName:t,cleanValue:i?e[t]:e.getAttribute(t),dirtyValue:n,isProperty:i}}function f(){s&&(o.forEach((function(e){var t;(t=e).cleanValue?!0===t.isProperty?t.el[t.attributeName]=t.cleanValue:t.el.setAttribute(t.attributeName,t.cleanValue):t.el.removeAttribute(t.attributeName)})),o=[],r&&r.setAttribute("role","main"),s.dispatchEvent(new a("screenreaderUntrap",{bubbles:!0})),s=null)}var p={useHiddenProperty:!1};e.exports={trap:function(e,t){f();var n=i({},p,t);s=e,(r=document.querySelector('main, [role="main"]'))&&r.setAttribute("role","presentation");var h=l.getAncestors(s),m=l.getSiblings(s),g=l.getSiblingsOfAncestors(s);!0===n.useHiddenProperty&&(m=m.filter(c),g=g.filter(c)),(o=[u(s,n.useHiddenProperty)].concat(h.map((function(e){return u(e,n.useHiddenProperty)}))).concat(m.map((function(e){return d(e,n.useHiddenProperty)}))).concat(g.map((function(e){return d(e,n.useHiddenProperty)}
2)))).forEach((function(e){var t;!0===(t=e).isProperty?t.el[t.attributeName]=t.dirtyValue:t.el.setAttribute(t.attributeName,t.dirtyValue)})),s.dispatchEvent(new a("screenreaderTrap",{bubbles:!0}))},untrap:f}},function(e,t,n){var i,r,s;!function(o,a){"use strict";r=[n(7)],void 0===(s="function"==typeof(i=function(e){var t=/(^|@)\S+\:\d+/,n=/^\s*at .*(\S+\:\d+|\(native\))/m,i=/^(eval@)?(\[native code\])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(e.replace(/[\(\)]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter((function(e){return!!e.match(n)}),this).map((function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),i=this.extractLocation(n.pop()),r=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new e({functionName:r,fileName:s,lineNumber:i[1],columnNumber:i[2],source:t})}),this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter((function(e){return!e.match(i)}),this).map((function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,i=t.match(n),r=i&&i[1]?i[1]:void 0,s=this.extractLocation(t.replace(n,""));return new e({functionName:r,fileName:s[0],lineNumber:s[1],columnNumber:s[2],source:t})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,i=t.message.split("\n"),r=[],s=2,o=i.length;s<o;s+=2){var a=n.exec(i[s]);a&&r.push(new e({fileName:a[2],lineNumber:a[1],source:i[s]}))}return r},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,i=t.stacktrace.split("\n"),r=[],s=0,o=i.length;s<o;s+=2){var a=n.exec(i[s]);a&&r.push(new e({functionName:a[3]||void 0,fileName:a[2],lineNumber:a[1],source:i[s]}))}return r},parseOpera11:function(n){return n.stack.split("\n").filter((function(e){return!!e.match(t)&&!e.match(/^Error created at/)}),this).map((function(t){var n,i=t.split("@"),r=this.extractLocation(i.pop()),s=i.shift()||"",o=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||void 0;s.match(/\(([^\)]*)\)/)&&(n=s.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var a=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:o,args:a,fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:t})}),this)}}})?i.apply(t,r):i)||(e.exports=s)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){var t=void 0===e?{emit:!1,logger:console.log}:e,n=t.emit,i=t.logger;this.emit=n,this.externalLogger=i,this.buffer=[],this.customLevel={},this.error=this.setLevel(1),this.warn=this.setLevel(2),this.info=this.setLevel(3),this.log=this.setLevel(4)}return e.prototype.getLogs=function(e){return"function"==typeof e?this.buffer.filter((function(t){return t.level===e.level})):e?this.buffer.filter((function(t){return t.level===e})):this.buffer},e.prototype.setLevel=function(e){var t=this,n=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r={level:e,time:Date.now(),msg:n.join(" ")};t.buffer.push(r),t.emit&&t.externalLogger(r)};return n.level=e,this.customLevel[e]=n,n},e}();t.default=i},function(e,t,n){"use strict";t.a=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}},function(e,t,n){"use strict";(function(e){var i=n(4),r=setTimeout;function s(){}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],h(e,this)}function a(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(e){return void c(t.promise,e)}l(t.promise,i)}else(1===e._state?l:c)(t.promise,e._value)}))):e._deferreds.push(t)}function l(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void u(e);
2if("function"==typeof n)return void h((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){c(e,t)}var i,r}function c(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function d(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function h(e,t){var n=!1;try{e((function(e){n||(n=!0,l(t,e))}),(function(e){n||(n=!0,c(t,e))}))}catch(e){if(n)return;n=!0,c(t,e)}}o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(s);return a(this,new d(e,t,n)),n},o.prototype.finally=i.a,o.all=function(e){return new o((function(t,n){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);var r=i.length;function s(e,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var a=o.then;if("function"==typeof a)return void a.call(o,(function(t){s(e,t)}),n)}i[e]=o,0==--r&&t(i)}catch(e){n(e)}}for(var o=0;o<i.length;o++)s(o,i[o])}))},o.resolve=function(e){return e&&"object"==typeof e&&e.constructor===o?e:new o((function(t){t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.race=function(e){return new o((function(t,n){for(var i=0,r=e.length;i<r;i++)e[i].then(t,n)}))},o._immediateFn="function"==typeof e&&function(t){e(t)}||function(e){r(e,0)},o._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},t.a=o}).call(this,n(18).setImmediate)},function(e,t,n){"use strict";n.r(t);var i,r=n(5),s=function(e){return"function"==typeof e},o=function(e){var t=(void 0===e?window:e).Promise;return t&&t.all&&t.race&&t.resolve&&t.reject&&s(t)&&s(t.all)&&s(t.race)&&s(t.resolve)&&s(t.reject)}()?window.Promise:r.a,a=function(e,t,n,i){return void 0===i&&(i=window),window.addEventListener?i.addEventListener(e,n,!1):window.attachEvent&&i.attachEvent(t,n),{eventName:e,handler:n,element:i}},l=function(e,t,n){void 0===n&&(n=window),n.removeEventListener?n.removeEventListener(e,t,!1):n.detachEvent?n.detachEvent("on"+e,t):n["on"+e]=null},c=function(e,t){if(t.indexOf)return t.indexOf(e);for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1},u=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},d=function(e,t,n){if(void 0===t&&(t="*"),void 0===n&&(n=document),"function"==typeof document.getElementsByClassName)return n.getElementsByClassName(e);for(var i=[],r=new RegExp("(^| )"+e+"( |$)"),s=0,o=_(n.getElementsByTagName(t));s<o.length;s++){var a=o[s];r.test(a.className)&&i.push(a)}return i},h=function(e,t){void 0===t&&(t=0);var n=b(e);return 0!==n.height||0!==n.width?(n.height/(n.width+t)*100).toFixed(2):56.25.toFixed(2)},f=function(e,t){void 0===t&&(t="log"),window.console&&"function"==typeof window.console[t]&&console[t](e)},p=function(e,t){for(var n=0,i=e;n<i.length;n++){var r=i[n];if(!0===t(r))return r}},m=function(e){var t=!1;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t||(e&&e.apply(void 0,n),t=!0)}},g=function(e){return function(t){32!==t.keyCode&&13!==t.keyCode||e(t)}},v=function(e){return function(t){27===t.keyCode&&e(t)}},y=function(){return document.currentScript?document.currentScript:p(_(document.getElementsByTagName("script")),(function(e){return e.src&&(null!==e.src.match("vidyard-embed-code.js")||null!==e.src.match(/v4(\.umd)?\.js/))}))},b=function(e){if(e.naturalWidth)return{width:e.naturalWidth,height:e.naturalHeight};var t=new Image;return t.src=e.src,{width:t.width,height:t.height}},_=function(e){return Array.prototype.slice.call(e)},E=function(e){return new o((function(t,n){try{t(JSON.parse(e))}catch(e){n(e)}}))},w=function(e){var t=e.endpoint,n=e.payload,i=void 0===n?{}:n,r=e.method,s=void 0===r?"GET":r;return new o((function(e,n){var r=void 0===(new XMLHttpRequest).withCredentials&&XDomainRequest?new XDomainRequest:new XMLHttpRequest;r.open(s,t),r instanceof XMLHttpRequest&&r.setRequestHeader("Content-Type","text/plain"),r.onerror=function(e){return n(e)},r.onload=function(){r instanceof XMLHttpRequest?2===Math.floor(r.status/100)?e(r.responseText):n():e(r.responseText)},r.send(JSON.stringify(i))}))},x=function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(window.location.search);if(null!==t)return t[1]},T=function(e){return Object.keys(e).reduce((function(t,n){if("vydata"===n){var i=function(e,t){try{var n=JSON.parse(decodeURIComponent(e));return Object.keys(n).reduce((function(e,i){return e[t+"["+i+"]"]=n[i],e}),{})}catch(e){return f("Invalid "+t+" payload","warn"),{}}}(e[n],"vydata");
2Object.keys(i).forEach((function(e){t[e]=i[e]}))}else t[n]=e[n];return t}),{})},S=function(e,t,n){var i=function(e,t){return-1!==e.className.indexOf(t)},r=function(e,t){i(e,t)||(e.className=e.className.trim()+" "+t)},s=function(e,t){i(e,t)&&(e.className=e.className.replace(t," ").trim())};!0===n?r(e,t):!1===n||i(e,t)?s(e,t):r(e,t)},L="4.3.14",I=/vidyard\.com\/embed\/v4/,C=.5,O={setPlaybackURL:function(e){return i=e},getPlaybackURL:function(){var e=y(),t=e?e.getAttribute("data-playbackurl"):null;return i||window.VIDYARD_PLAYBACK_URL||t||"play.vidyard.com"}},A=O.setPlaybackURL,M=O.getPlaybackURL,k=function(){return"https://"+M()+"/v4/"},P=function(e,t,n){if(t&&n)if(window.postMessage&&n.contentWindow)n.contentWindow.postMessage(JSON.stringify(e),t);else{if("associateVisitor"!==e.event)return;var i=e.event+","+e.data.type+","+e.data.value+"|",r=n.src;-1===r.indexOf("#")&&(r+="#"),r+=i,n.src=r}},R=function(e){return function(t){var n=function(e){if("string"==typeof e.data&&""!==e.data)try{var t=JSON.parse(e.data),n=d("vidyard-iframe-"+t.uuid,"iframe")[0],i=(n?n.contentWindow:null)===e.source,r="string"==typeof t.event;if(!i||!r)return;return t}catch(e){return void f("Invalid postMessage received","warn")}}(t);n&&e(n)}},D=["pardot","hubspotutk","_mkto_trk","vy_dreamforce","eloqua"],N=["pardot","hubspot","marketo","dreamforce","eloqua"],$=function(){document.dispatchEvent(function(e,t){if("function"==typeof window.CustomEvent)return new window.CustomEvent(e,{detail:t});if("function"==typeof document.createEvent){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}}("onVidyardAPI",window.VidyardV4))},F=m((function(){window.onVidyardAPI&&"function"==typeof window.onVidyardAPI&&window.onVidyardAPI(window.VidyardV4),$()})),B=n(3),j=new(n.n(B).a)({emit:!!window.location.search.match("vydebug=1"),logger:function(e){return f(e,"info")}}),q=y();q&&(j.info("vidyardEmbed V"+L+" loaded from "+q.src),j.info("data-playbackurl="+q.getAttribute("data-playbackurl"))),j.info("userAgent "+window.navigator.userAgent),j.info("cookies "+navigator.cookieEnabled),window.performance&&window.performance.timing&&window.performance.timing.navigationStart&&j.info("Script load time "+(Date.now()-window.performance.timing.navigationStart));var V,G={logger:j,getPlaybackURL:M,setPlaybackURL:A,version:L},z=function(e,t){var n;return'<div class="vidyard-div-'+e.uuid+'" role="region" aria-label="Vidyard media player" style="position: absolute; padding-bottom: '+t.ratio+'%; height: 0; overflow: hidden; max-width: 100%; ">'+(n='<iframe allow="'+["autoplay","fullscreen","picture-in-picture","camera","microphone","display-capture","clipboard-write"].join("; ")+'"allowfullscreen allowtransparency="true" referrerpolicy="no-referrer-when-downgrade" class="vidyard-iframe-'+e.uuid+'" frameborder=0 height="100%" width="100%" scrolling=no src="https://'+M()+"/"+e.uuid+e.toQueryString()+'" title="Vidyard video player" style="opacity: 0; background-color: transparent; position: absolute; top: 0; left: 0;"></iframe>',("inline"===e.type?'<div class="vidyard-inner-container-'+e.uuid+'" style="position: absolute;height: 100%; width: 100%; '+(t.maxWidth?"max-width: "+t.maxWidth+"px; ":"")+(t.maxHeight?"max-height: "+t.maxHeight+"px; ":"")+'"> '+n+"</div> ":n)+"</div>")},U=function(e){return new o((function(t,n){return W({error:n,success:t,url:""+k()+e+"/style.js",uuid:"style_"+e})}))},H={},W=function(e){var t=e.url,n=e.uuid,i=e.success,r=e.error,s=n.replace(/-/g,""),o=function(e){var t=e.error,n=e.url,i=e.requestUuid,r=document.createElement("script");return r.type="application/javascript",r.onerror=t,r.src=n+"?callback=window.VidyardV4.jsonp."+i+".done",r.setAttribute("data-playbackurl",M()),document.body.appendChild(r),r}({error:r,url:t,requestUuid:s}),a=m((function(e){i(e),o.parentNode.removeChild(o)}));H[s]=H[s]||[],H[s].push(a),window.VidyardV4.jsonp[s]={done:function(e){H[s].forEach((function(t){return t(e)}))}}},Y={placeholder:"Cannot render the player, check the placeholder Image"},X=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n},K=function(e){if(!e)return o.reject(new Error(Y.placeholder));var t=b(e),n=t.width,i=t.height,r=e.getAttribute("data-uuid");return""!==e.src&&r&&(!e.complete||0!==n&&0!==i)?e.complete?o.resolve(e):new o((function(t,n){e.onload=function(){return t(e)},e.onerror=function(){return n(e)}})):o.reject(new Error(Y.placeholder))},Q=function(e){var t=e.dataParams,n=e.player,i=j.setLevel(t.uuid);i("injecting inline embed");var r=function(){return n.placeholder.src!=="//"+M()+"/"+n.uuid+".jpg"?(e=n.uuid,t=document.createElement("img"),t.setAttribute("data-uuid",e),t.src="//"+M()+"/"+e+".jpg",K(t)).then(h).catch((function(){return!1})):o.resolve(!1);var e,t},s={maxHeight:t.height?parseInt(t.height,10).toString():null,maxWidth:t.width?parseInt(t.width,10).toString():null,ratio:h(n.placeholder)};n.container.innerHTML=z(t,s);var l=n.container.getElementsByTagName("iframe")[0];n.iframe=l;var c=new o((function(e){a("load","onload",e,l)})),u=new o((function(e){n.on("ready",e)}));function d(){var e=n.container.clientWidth>=638;S(n.container,"playlist-open",e)}n.on("sidePlaylistOpen",(function(){d()})),o.race([c,u]).then((function(){i("player or iFrame is ready"),r().then((function(e){e&&(l.parentElement.parentElement.style.paddingBottom=e+"%")}));var e=n.container.getElementsByClassName("vidyard-inner-container-"+n.uuid)[0];n.placeholder.parentElement.removeChild(n.placeholder),S(n.placeholder,"inserted",!0),e.appendChild(n.placeholder),l.parentElement.parentElement.style.position="relative",l.style.opacity="1"})),c.then((function(){n.placeholder.style.display="none",l.parentElement.parentElement.style.backgroundColor="transparent"})),n.on("metadata",(function e(t){var i=t[0];l.title=i.name,n.off("metadata",e)})),i("getStyle sent"),U(n.uuid).then((function(e){i("getStyle received: "+JSON.stringify(e)),1===e.pl&&"0"!==t.playlist_always_open||"1"===t.playlist_always_open?(n.iframe.parentElement.setAttribute("data-pl","true"),a("resize","onresize",d),d()):n.iframe.parentElement.setAttribute("data-pl","false")})).catch((function(e){i("getStyle failed, likely a network error")}))},J=function(e){void 0===e&&(e=document.body);for(var t=0,n=Array.from(e.children);t<n.length;t++){var i=n[t];i.hasAttribute("aria-hidden")&&i.setAttribute("data-vy-keep-hidden",i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true")}},Z=function(e){void 0===e&&(e=document.body);for(var t=0,n=Array.from(e.children);t<n.length;t++){var i=n[t];i.getAttribute("data-vy-keep-hidden")?i.setAttribute("aria-hidden",i.getAttribute("data-vy-keep-hidden")):i.removeAttribute("aria-hidden"),i.removeAttribute("data-vy-keep-hidden")}},ee={ios:function(){return/ipad|iphone|ipod/i.test(navigator.userAgent)}},te=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},ne=function(e){return Array.isArray(e)?e:[e]},ie="data-focus-lock",re=function(){return document&&te(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe=function e(t){for(var n=t.length,i=0;i<n;i+=1)for(var r=function(n){if(i!==n&&t[i].contains(t[n]))return{v:e(t.filter((function(e){return e!==t[n]})))}},s=0;s<n;s+=1){var o=r(s);if("object"===(void 0===o?"undefined":se(o)))return o.v}return t},ae=function e(t){return t.parentNode?e(t.parentNode):t}
vendor: 4,240 bytes, line 2
2,le=function(e){return ne(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(ie);return e.push.apply(e,n?oe(te(ae(t).querySelectorAll("["+ie+'="'+n+'"]:not([data-focus-lock-disabled="disabled"])'))):[t]),e}),[])},ce=function(e){return e===document.activeElement},ue=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&le(e).reduce((function(e,n){return e||n.contains(t)||function(e){return t=te(e.querySelectorAll("iframe")),n=ce,!!t.filter((function(e){return e===n}))[0];var t,n}(n)}),!1)},de=function(e,t){var n=e.tabIndex-t.tabIndex,i=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||i},he=function(e,t,n){return te(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(de)},fe=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"],pe=fe.join(","),me=pe+", [data-focus-guard]",ge=function(e,t){return e.reduce((function(e,n){return e.concat(te(n.querySelectorAll(t?me:pe)),n.parentNode?te(n.parentNode.querySelectorAll(fe.join(","))).filter((function(e){return e===n})):[])}),[])},ve=function e(t){return!t||t===document||t.nodeType===Node.DOCUMENT_NODE||!((n=window.getComputedStyle(t,null))&&n.getPropertyValue&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility")))&&e(t.parentNode);var n},ye=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n.push(t),t.parentNode&&e(t.parentNode,n),n},be=function(e,t){for(var n=ye(e),i=ye(t),r=0;r<n.length;r+=1){var s=n[r];if(i.indexOf(s)>=0)return s}return!1},_e=function(e){return te(e).filter((function(e){return ve(e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},Ee=function(e,t){return he(_e(ge(e,t)),!0,t)},we=function(e){return _e((t=e.querySelectorAll("[data-autofocus-inside]"),te(t).map((function(e){return ge([e])})).reduce((function(e,t){return e.concat(t)}),[])));var t},xe=function(e){return"INPUT"===e.tagName&&"radio"===e.type},Te=function(e,t){return t.filter(xe).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e},Se=function(e,t){return e.length>1&&xe(e[t])&&e[t].name?e.indexOf(Te(e[t],e)):t},Le=function(e){return e[0]&&e.length>1&&xe(e[0])&&e[0].name?Te(e[0],e):e[0]},Ie=function(e){return e&&e.dataset&&e.dataset.focusGuard},Ce=function(e){return!Ie(e)},Oe=function(e,t,n){var i=ne(e),r=ne(t),s=i[0],o=null;return r.filter(Boolean).forEach((function(e){o=be(o||e,e)||o,n.filter(Boolean).forEach((function(e){var t=be(s,e);t&&(o=!o||t.contains(o)?t:be(t,o))}))})),o},Ae=function(e,t){var n=document&&document.activeElement,i=le(e).filter(Ce),r=Oe(n||e,e,i),s=Ee(i).filter((function(e){var t=e.node;return Ce(t)}));if(s[0]||(s=(o=i,he(_e(ge(o)),!1)).filter((function(e){var t=e.node;return Ce(t)})))[0]){var o,a,l,c,u,d=Ee([r]).map((function(e){return e.node})),h=(a=d,l=s,c=new Map,l.forEach((function(e){return c.set(e.node,e)})),a.map((function(e){return c.get(e)})).filter(Boolean)),f=h.map((function(e){return e.node})),p=function(e,t,n,i,r){var s=e.length,o=e[0],a=e[s-1],l=Ie(n);if(!(e.indexOf(n)>=0)){var c=t.indexOf(n),u=t.indexOf(i||c),d=e.indexOf(i),h=c-u,f=t.indexOf(o),p=t.indexOf(a),m=Se(e,0),g=Se(e,s-1);return-1===c||-1===d?e.indexOf(r&&r.length?Le(r):Le(e)):!h&&d>=0?d:c<=f&&l&&Math.abs(h)>1?g:c>=f&&l&&Math.abs(h)>1?m:h&&Math.abs(h)>1?d:c<=f?g:c>p?m:h?Math.abs(h)>1?d:(s+d+h)%s:void 0}}(f,d,n,t,f.filter((u=function(e){return e.reduce((function(e,t){return e.concat(we(t))}),[])}(i),function(e){return!!e.autofocus||e.dataset&&!!e.dataset.autofocus||u.indexOf(e)>=0})));return void 0===p?p:h[p]}},Me=0,ke=!1,Pe=function(e,t){var n,i=Ae(e,t);if(!ke&&i){if(Me>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ke=!0,void setTimeout((function(){ke=!1}),1);
2Me++,(n=i.node).focus(),n.contentWindow&&n.contentWindow.focus(),Me--}},Re=0,De=null,Ne=function(){return document&&document.activeElement===document.body||re()},$e=function(e){Re=e,e&&function(){if(Re){var e=Re;Ne()||(e&&!ue(e)&&Pe(e,De),De=document.activeElement)}}()},Fe=[],Be=function(e){return!!$e((t=Fe,t.filter((function(e){return e})).slice(-1)[0]))&&(e&&e.preventDefault(),!0);var t},je={on:function(e){0===Fe.length&&document.addEventListener("focusin",Be),Fe.indexOf(e)<0&&(Fe.push(e),Be())},off:function(e){Fe=Fe.filter((function(t){return t!==e})),Be(),0===Fe.length&&document.removeEventListener("focusin",Be)}},qe=n(1),Ve=n.n(qe);function Ge(e,t,n){var i=function(e){var t=document.createElement("div");t.className="vidyard-lightbox-content-backer";var n=document.createElement("div");n.innerHTML=e;var i=n.getElementsByTagName("div")[0];i.style.position="absolute",i.style.height="100%",i.style.width="100%",i.style.zIndex="2";var r=n.getElementsByTagName("iframe")[0],s=r.parentNode;return s.style.position="static",s.style.paddingBottom="0",r.style.opacity="1",setTimeout((function(){t.style.opacity="1",t.style.filter="alpha(opacity=100)"}),0),{backerElement:t,containerElement:n,containingDiv:i,iframe:r}}(e),r=function(e){var t=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div"),r=document.createElement("div"),s=function(){var e=document.createElement("div"),t=document.createElement("div");return e.className="vidyard-close-container",e.setAttribute("aria-label","Close Player"),e.setAttribute("role","button"),e.setAttribute("tabindex","0"),t.className="vidyard-close-x",document.documentMode<9&&(t.className+=" simple-close",t.innerHTML="&times;"),e.appendChild(t),{closeButton:t,closeContainer:e}}().closeContainer;return t.id="vidyard-overlay",t.setAttribute("aria-hidden","true"),t.style.display="block",n.id="vidyard-content-fixed",n.setAttribute("aria-label","media player lightbox"),n.setAttribute("role","dialog"),n.style.display="block",i.id="vidyard-popbox",r.id="vidyard-overlay-wrapper",r.style.display="block",n.appendChild(i),r.appendChild(t),r.appendChild(s),r.appendChild(n),e&&(t.style.zIndex=""+e,n.style.zIndex=""+(e+2),s.style.zIndex=""+(e+1)),{closeContainer:s,contentFixed:n,overlay:t,overlayWrapper:r,popbox:i}}(n),s=function(e){var t=d("vidyard-lightbox-image","img",e)[0].cloneNode();return t.className="",t.id="vidyard-popbox-constraint",t.alt="",t.setAttribute("aria-hidden","true"),t}(t),o=document.createElement("div");return o.id="vidyard-focusable-element",o.tabIndex=0,r.popbox.appendChild(i.backerElement),r.popbox.appendChild(i.containingDiv),r.popbox.appendChild(s),ee.ios()&&J(),document.body.appendChild(r.overlayWrapper),document.body.appendChild(o),r.closeContainer.focus(),je.on(r.overlayWrapper),Ve.a.trap(r.overlayWrapper),setTimeout((function(){r.overlayWrapper.style.opacity="1",r.overlayWrapper.style.filter="alpha(opacity=100)"}),0),{container:i,lightbox:r}}var ze={};function Ue(e){var t=d("vidyard-lightbox-centering","div",e.container)[0];e.player.showLightbox=function(){j.setLevel(e.player.uuid)("show lightbox"),function(e){if(e.iframe&&!document.getElementById("vidyard-overlay")){V=document.activeElement;var t=Ge(e.iframe,e.container,e.overlayZindex);e.player.iframe=t.container.iframe,e.player.on("metadata",(function t(n){var i=n[0];e.player.iframe.title=i.name,e.player.off("metadata",t)}));var n=e.player.uuid,i=t.container.iframe,r=function(e,t,n){return m((function(){!function(e){e.style.opacity="1"}(e),He(),ze.parentEsc=a("keydown","onkeydown",v((function(){return We(n)})),document)}))}(i,0,e.player),s=function(e,t){return m((function(){P({uuid:t,event:"listenForKeyPress",keyCode:"27"},"https://"+M(),e)}))}(i,n);ze.iframeLoaded=a("load","onload",r,t.container.iframe),ze.messageHandler=a("message","onmessage",R((function(t){var n,i;r(),s(),n=t,i=e.player,"keyPressed"===n.event&&27===n.params&&We(i)})),window),ze.overlayClick=a("click","onclick",(function(){return We(e.player)}),t.lightbox.overlayWrapper),ze.fixedClick=a("click","onclick",(function(){return We(e.player)}
2),t.lightbox.contentFixed),ze.closeKeyPress=a("keydown","onkeydown",g((function(){return We(e.player)})),t.lightbox.closeContainer),ze.responsivePlayerSize=a("resize","onresize",He,window)}}({container:e.container,iframe:e.iframe,overlayZindex:e.overlayZindex,player:e.player})},e.player.hideLightbox=function(){return We(e.player)},a("click","onclick",e.player.showLightbox,t),a("keydown","onkeydown",g((function(t){t.preventDefault(),e.player.showLightbox(t)})),t)}function He(){var e=document.getElementById("vidyard-popbox-constraint"),t=parseFloat((window.innerHeight/window.innerWidth*100).toFixed(2))<parseFloat(h(e))?"landscape":"portrait";e.className!==t&&(e.className=t)}function We(e){var t,n,i,r,s,o;n=document.getElementById("vidyard-content-fixed"),i=document.getElementById("vidyard-focusable-element"),r=document.getElementById("vidyard-overlay"),s=document.getElementById("vidyard-overlay-wrapper"),o=document.getElementById("vidyard-popbox"),n&&r&&s&&o&&(t&&Object.keys(t).forEach((function(e){(0,t[e])()})),i&&i.parentNode.removeChild(i),je.off(s),Ve.a.untrap(s),s.style.opacity="0",s.style.filter="alpha(opacity=0)",ee.ios()&&Z(),setTimeout((function(){s.parentNode.removeChild(s)}),1e3*C)),V&&V.focus(),Object.keys(ze).forEach((function(e){var t=ze[e],n=t.eventName,i=t.handler,r=t.element;l(n,i,r)})),e&&e.trigger("lightboxClose")}var Ye=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};function Xe(e){if(!e||"string"!=typeof e||e.length<20)throw new Error("Invalid UUID given");var t=j.setLevel(e),n="https://"+M()+"/player/"+e+".json?pomo=0&pomo_reason=fetchMetaData";return t("fetching metadata"),w({endpoint:n}).then(JSON.parse).then((function(n){return t("metadata successfully fetched"),Ye({uuid:e},n.payload.vyContext.metadata)})).catch((function(e){throw t("failed to fetch metadata, "+e),new Error("Error parsing player metadata, make sure the UUID is correct")}))}var Ke=function(e){var t=e.dataParams,n=e.player,i=j.setLevel(t.uuid);i("injecting lighbox embed"),n.placeholder.style.display="none";var r,s,o,a,l={ratio:h(n.placeholder)},c=z(t,l),u={maxHeight:t.height?parseInt(t.height,10):null,maxWidth:t.width?parseInt(t.width,10):null,ratio:h(n.placeholder)};r=n.container,s=t,o=u,a=function(e,t,n){return'<div class="vidyard-lightbox-thumbnail vidyard-lightbox-'+t.uuid+'"'+(n.maxWidth?' style="max-width: '+n.maxWidth+'px;"':"")+'><div class="vidyard-lightbox-centering" style="padding-bottom: '+n.ratio+'%;"><img class="vidyard-lightbox-image" src="'+e+'" alt="video thumbnail" /><div type="button" role="button" class="play-button" title="Play video" data-version="1" tabindex="0"><div class="play-button-size"></div><div class="arrow-size"><div class="arrow-size-ratio"></div><div class="arrow"></div></div></div></div></div>'}("https://"+M()+"/"+s.uuid+".jpg",s,o),r.insertAdjacentHTML("afterbegin",a),Xe(s.uuid).then((function(e){var t=d("play-button","button",r);1===t.length&&t[0].setAttribute("aria-label","Play video "+e.name+". Opens in a modal")}),(function(){})),Ue({container:n.container,iframe:c,overlayZindex:t.overlayZindex,player:n}),i("getStyle sent"),U(n.uuid).then((function(e){i("getStyle received: "+JSON.stringify(e)),function(e,t){if(1===e.pb){var n=d("play-button","button",t);1===n.length&&(n[0].style.display="block",n[0].style.backgroundColor="#"+e.pbc)}}(e,n.container)})).catch((function(e){i("getStyle failed, likely a network error")}))},Qe=/(vidyard|vystaging|hubspot)\.com$/,Je=function(e,t,n){if(void 0===n&&(n=!1),n||t&&t.hasBacklink&&!Qe.test(document.location.host)){var i=document.createElement("a"),r=document.createElement("span"),s=document.createElement("img");s.src="https://cdn.vidyard.com/client-logos/vidyard.png",s.id="backlink-icon",s.alt="Vidyard Logo",r.id="backlink-text",r.textContent="Powered by Vidyard",i.id="backlink",i.appendChild(s),i.appendChild(r),i.href=t.backlinkURL,i.rel="nofollow",i.target="_blank",i.setAttribute("aria-label","Link to Vidyard"),i.dataset.testid="backlink",a("click","onclick",(function(){var t={data:{event:"Acquisition - Clicked the Backlink"},event:"sendMetricsEvent",uuid:e.uuid};P(t,"https://"+M(),e.iframe)}),i),e.container.appendChild(i)}};function Ze(e){var t,n=window.VidyardV4.integrations,i=j.setLevel(e.uuid),r=n.getCookie("marketo");r&&(i("getMarketoLead sent"),function(e,t){return new o((function(n,i){var r=encodeURIComponent(t),s=""+k()+e+"/contact/"+r+"/marketoContact.js";W({error:i,success:n,url:s,uuid:"marketoContact_"+e})}))}(e.uuid,r).then(E).then((function(t){i("getMarketoLead received: "+t),e.on("ready",(function(){n.addKnownVisitor("marketo",t,e.org)}))}
2)).catch((function(){j.warn("Invalid Marketo cookie")}))),i("getIntegrations"),(t=e.uuid,new o((function(e,n){return W({error:n,success:e,url:""+k()+t+"/integrations.js",uuid:"integrations_"+t})}))).then((function(t){i("getIntegrations received: "+JSON.stringify(t)),e.on("ready",(function(){e._tmpOrg=t,n.updatePlayer(e)}))})).catch((function(e){i("getIntegrations failed, likely a network error")}))}function et(e){var t=j.setLevel(e);return t("getSEO sent"),function(e){return new o((function(t,n){return W({error:n,success:t,url:""+k()+e+"/details.js",uuid:"details_"+e})}))}(e).then((function(e){if(t("getSEO: "+JSON.stringify(e)),!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return JSON.stringify(e)===JSON.stringify({})}(e)){var n=function(e){var t=document.createElement("script");return t.type="application/ld+json",t.text=JSON.stringify(e),t}(e);document.getElementsByTagName("head")[0].appendChild(n)}return e})).catch((function(e){t("getSEO failed, likely a network error")}))}var tt=function(e,t){var n=document.createElement("div");n.className="vidyard-player-container",n.setAttribute("uuid",e);var i=n.style;return i.margin="auto",i.width="100%",i.height="auto",i.overflow="hidden",i.display="block","inline"===t.type&&(i.maxWidth=t.width?t.width+"px":"",i.maxHeight=t.height?t.height+"px":""),n},nt=function(){function e(e){var t=this;this.disable_popouts=1;var n=T(function(e){for(var t={},n=function(e){return e.name.replace("data-","")},i=0;i<e.attributes.length;i+=1){var r=e.attributes[i];r.name.indexOf("data-")<0||(t[n(r)]=r.value)}return t}(e));Object.keys(n).forEach((function(e){t[e]=n[e]})),"inline"!==this.type&&"lightbox"!==this.type&&(f("Invalid Vidyard player embed type, defaulting to inline.","warn"),this.type="inline"),this.v=L,this.disable_popouts=1,this.custom_id=this.custom_id||x("vycustom_id"),this.vyemail=this.vyemail||x("vyemail"),this.vysfid=this.vysfid||x("vysfid"),this.vyetoken=this.vyetoken||x("vyetoken");var i=x("vyac"),r=x("vyplayer");i&&r&&r===this.uuid?this.access_code=i:i&&r&&f("Invalid Vidyard player access code.","warn")}return e.prototype.toQueryString=function(){var e,t="?";for(e in this)this.hasOwnProperty(e)&&"height"!==e&&"uuid"!==e&&"width"!==e&&void 0!==this[e]&&(t+="?"!==t?"&":"",t+=encodeURIComponent(e)+"="+encodeURIComponent(this[e]));return"?"===t?"":t},e}();function it(e,t){var n=document.createElement("link");return n.rel="prefetch",n.crossOrigin="anonymous",n.href=t,document.body.appendChild(n),t}var rt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},st=function(){function e(e,t,n){var i=this;this._ready=!1,this._previousTime=null,this._onMessageEventHandler=function(e){if(e.origin==="https://"+M()){var t;try{t=JSON.parse(e.data)}catch(e){return}if(!(i.iframe&&e.source&&i.iframe.contentWindow!==e.source||i.uuid&&t.uuid!==i.uuid||"string"!=typeof t.event)){i._updateStatus(t),"ready"===t.event&&(i._ready=!0,window.VidyardV4.integrations.updatePlayer(i));var n=i._callbackStore[t.event];if(n)for(var r=0,s=n;r<s.length;r++)s[r].call(i,t.params,i)}}},this._callbackStore=n||{beforeSeek:[],chapterComplete:[],createCta:[],fullScreenChange:[],lightboxClose:[],metadata:[],pause:[],play:[],playerComplete:[],ready:[],seek:[],sidePlaylistOpen:[],status:[],timeupdate:[],videoComplete:[],volumeChange:[]},this.element=e,this.uuid=t,this.status=null,this.metadata=null,this.progressEventsUnsubscribe=[],a("message","onmessage",this._onMessageEventHandler)}return e.prototype.on=function(e,t){var n=this;if("ready"!==e||!this.ready())return void 0===this._callbackStore[e]?(this._callbackStore[e]=[t],void f("The event name: "+e+" is not supported, your handler was setup regardless","warn")):void this._callbackStore[e].push(t);setTimeout((function(){return t.call(n,void 0,n)}),0)},e.prototype.trigger=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var r=function(i){"ready"===e&&s.ready()?setTimeout((function(){return i.call(t,n,t)}),0):i.call(s,n,s)},s=this,o=0,a=this._callbackStore[e];o<a.length;o++)r(a[o])},e.prototype.off=function(e,t){if(void 0!==e){if(this._callbackStore[e])if(t){var n=c(t,this._callbackStore[e]);n>-1&&this._callbackStore[e].splice(n,1)}else this._callbackStore[e]=[]}else for(var i in this._callbackStore)this._callbackStore.hasOwnProperty(i)&&(this._callbackStore[i]=[])},e.prototype.ready=function(){return this._ready},e.prototype.play=function(){this._message({event:"play"})},e.prototype.pause=function(){this._message({event:"pause"})},e.prototype.resume=function(){this._message({event:"resume"})},e.prototype.seek=function(e){this._message({event:"seek",position:e})},e.prototype.setVolume=function(e){this._message({event:"setVolume",newVolume:e})},e.prototype.setPlaybackSpeed=function(e){this._message({event:"setPlaybackSpeed",speed:e})}
2,e.prototype.playChapter=function(e){f("playChapter() is deprecated. We recommend to use playVideoAtIndex() instead."),this.playVideoAtIndex(e)},e.prototype.playVideoAtIndex=function(e){this._message({chapter_index:e,event:"playChapter"})},e.prototype.setAudioTrack=function(e){this._message({audioTrackId:e,event:"setAudioTrack"})},e.prototype.enableCaption=function(e,t){this._message({event:"enableCaption",label:e,language:t})},e.prototype.disableCaption=function(e,t){this._message({event:"disableCaption",label:e,language:t})},e.prototype.consentToGDPR=function(e){this._message({consent:e,event:"consentToGDPR"})},e.prototype.createCta=function(e){this._message({attributes:u({display_once:!1,duration:10,fullscreen:!1,html:"",opacity:1,start:0,width:300},e),event:"createCta"})},e.prototype.updateCta=function(e,t){this._message({attributes:t,event:"updateCta",id:e})},e.prototype.createVideoSection=function(e,t){this._message({event:"createVideoSection",title:e,milliseconds:t})},e.prototype.updateVideoSection=function(e,t,n){this._message({event:"updateVideoSection",index:e,title:t,milliseconds:n})},e.prototype.deleteVideoSection=function(e){this._message({event:"deleteVideoSection",index:e})},e.prototype.addEvent=function(e){var t=e.start,n=void 0===t?0:t,i=e.duration,r=void 0===i?1:i,s=e.videoIndex,o=e.chapterIndex,a=e.eventId;if(a){o>=0&&f("Parameter chapterIndex is deprecated. We recommend to use videoIndex instead.");var l=0;l=o||l,l=s||l,this._message({chapterIndex:l,duration:r,event:"addEvent",id:a,start:n})}else f("Missing arguments. Need eventId")},e.prototype.getCurrentChapter=function(){return f("getCurrentChapter() is deprecated. We recommend to use getCurrentVideoIndex() instead."),this.getCurrentVideoIndex()},e.prototype.getCurrentVideoIndex=function(){return null===this.status?null:this.status.chapterIndex},e.prototype.currentTime=function(){return null===this.status?null:this.status.currentTime},e.prototype.scrubbing=function(){return null===this.status?null:this.status.scrubbing},e.prototype.toggleFullscreen=function(){var e=this,t=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenchange"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitfullscreenchange"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozfullscreenchange"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","MSFullscreenChange"]],t=[],n={},i=0,r=e;i<r.length;i++){var s=r[i];if(s[1]in document){t=s;break}}if(t&&t.length){for(var o=0;o<t.length;o++)n[e[0][o]]=t[o];return n}return null}();if(t){var n=this.iframe[t.requestFullscreen]();n?n.then((function(){e._message({event:"toggleFullscreen"})})):this._message({event:"toggleFullscreen"}),a(t.fullscreenchange,"MSFullscreenChange",(function(){document[t.fullscreenElement]||e._message({event:"exitFullscreen"})})),a("message","onmessage",R((function(e){"fullScreenChange"===e.event&&!1===e.params&&document[t.fullscreenElement]&&document[t.exitFullscreen]()})))}else this._message({event:"toggleFullscreen"})},e.prototype.resetPlayer=function(){this._message({event:"resetPlayer"})},e.prototype._message=function(e){!0===this.ready()?P(rt({},e,{uuid:this.uuid}),"https://"+M(),this.iframe):f("Player is not ready yet! No messages can be recieved.","error")},e.prototype._updateStatus=function(e){if("object"==typeof e.status&&(this.status=e.status),"object"==typeof e.metadata&&(this.metadata=e.metadata,this.trigger("metadata",e.metadata)),this.status){if(this.status.currentTime!==this._previousTime&&this._callbackStore.timeupdate)for(var t=0,n=this._callbackStore.timeupdate;t<n.length;t++)n[t].call(this,this.status.currentTime,this);this._previousTime=this.status.currentTime}},e}(),ot=st,at=function(e){var t=window.VidyardV4,n=(t.integrations,t.api,t.players),i=(t.playerReadyListeners,new nt(e)),r=i.uuid,s=j.setLevel(r);if(s("rendering"),void 0!==r){if("true"===i.rendered)return s("Already rendered"),p(n,(function(t){return t.placeholder===e}));var o=tt(r,i),a=new ot(o,r);return e.setAttribute("data-rendered","true"),e.parentNode.insertBefore(o,e),a.placeholder=e,a.container=o,n.push(a),function(e){var t=window.VidyardV4.playerReadyListeners,n=e.uuid,i=j.setLevel(e.uuid);t[n]=t[n]||[];var r=t[n].concat(t[void 0]);Object.keys(r).forEach((function(t){var n=r[t];e.on("ready",n),i("attaching ready callbacks")}))}
2(a),"inline"===i.type?Q({dataParams:i,player:a}):"lightbox"===i.type&&Ke({dataParams:i,player:a}),Ze(a),et(a.uuid).then((function(e){"inline"===i.type&&Je(a,e,i.backlink&&1===i.backlink)})),window.Vidyard._players[a.uuid]=a,a}f('Embed without a UUID detected, it is impossible to insert a player without a UUID. Add "data-uuid=some_uuid" to the offending element.'+e)},lt=function(e){e.sort((function(e,t){return e<t?-1:e>t?1:0}));for(var t=0;t<e.length;)e[t]===e[t+1]?e.splice(t+1,1):t+=1;return e},ct={},ut={};function dt(e,t){!function(e,t,n,i){ut[e.uuid][t]={callback:n,lastTimeUpdate:e.currentTime(),partOfVideoWatched:{},player:e,thresholds:i,timeWatched:0}}(e,t,ct[e.uuid].callback,ct[e.uuid].thresholds.slice())}function ht(e,t){var n=e.getCurrentVideoIndex(),i=function(e,t){if("object"==typeof ct[e.uuid])return"object"!=typeof ut[e.uuid][t]&&dt(e,t),ut[e.uuid][t]}(e,n);if(void 0!==i&&"object"==typeof i.player.metadata&&0!==i.thresholds.length){var r=t-i.lastTimeUpdate;if(i.lastTimeUpdate=t,!(r<=0||r>1)){t>=1&&(i.partOfVideoWatched[Math.floor(t)]=1),i.timeWatched=Object.keys(i.partOfVideoWatched).length;for(var s=i.player.metadata.chapters_attributes[n].video_attributes.length_in_seconds,o=i.timeWatched/s*100;o>=i.thresholds[i.thresholds.length-1];)i.callback({chapter:n,event:i.thresholds.pop(),player:e,videoIndex:n})}}}function ft(e,t,n){!function(e,t,n){"object"!=typeof ut[e.uuid]&&(ut[e.uuid]={}),ct[e.uuid]={callback:t,thresholds:n.slice().sort((function(e,t){return t-e}))}}(e,t,n);var i=function(t){return ht(e,t)};return e.on("timeupdate",i),{player:e,removeEventListeners:function(){e.off("timeupdate",i),function(e){ct[e.uuid]=void 0,ut[e.uuid]=void 0}(e)}}}function pt(e,t,n){var i;void 0===t&&(t=[1,25,50,75,90]);var r=[],s=n?((i={})[n.uuid]=n,i):function(){try{return window.Vidyard.players()}catch(e){return f((function(){return console.error("The Vidyard Player API must be loaded before this script can execute")})),{}}}(),o=lt(t),a=function(t){if(s.hasOwnProperty(t)&&t.length>0&&""!==s[t]){var n=ft(s[t],e,o);r.push(n)}else f((function(){return console.error("Could not attach Progress Events to player "+t+", make sure to load the Vidyard Player API")}))};for(var l in s)a(l);return 0===r.length&&f((function(){return console.warn("No Vidyard Players found. (include this script below player embed codes)")})),r}var mt=function(e){j.setLevel("placeholder")("rendering player from placeholder image");var t=at(e);return new o((function(e){t.showLightbox?e(t):t.on("ready",(function(){return e(t)}))}))},gt={_debug:G,api:{GDPR:{consent:function(e){if(void 0!==e)for(var t=function(t){t.on("ready",(function(){t.consentToGDPR(e)}))},n=0,i=window.VidyardV4.players;n<i.length;n++)t(i[n])},hasConsentOnReady:function(e){var t=0,n=window.VidyardV4.api.GDPR,i=window.VidyardV4.players;if(0===i.length)return e(!1);if(void 0!==n._readyConsent)return e(n._readyConsent);for(var r=0,s=i;r<s.length;r++)s[r].on("ready",(function(){if(t!==i.length&&(t+=1),t===i.length)return n._readyConsent=i.reduce((function(e,t){return t.status.consent&&e}),!0),e(n._readyConsent)}))}},addReadyListener:function(e,t){var n=window.VidyardV4.playerReadyListeners;n[t]=n[t]||[],n[t].push(e);for(var i=0,r=window.VidyardV4.players;i<r.length;i++){var s=r[i];void 0!==t&&s.uuid!==t||s.on("ready",e)}},destroyPlayer:function(e){var t,n=window.VidyardV4.players;t=e,p(n,(function(e){return e===t}))?(function(e){e.progressEventsUnsubscribe.forEach((function(e){return e()})),e.progressEventsUnsubscribe=[]}(e),e.off(),e.container.parentNode.removeChild(e.container),e.placeholder.parentNode.removeChild(e.placeholder),n.splice(c(e,n))):f("Cannot destroy an unknown player","warn")},getPlayerMetadata:Xe,getPlayersByUUID:function(e){return window.VidyardV4.players.filter((function(t){return t.uuid===e}))},progressEvents:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=pt.apply(void 0,e);Object.keys(n).forEach((function(e){var t=n[e],i=t.player,r=t.removeEventListeners;i.progressEventsUnsubscribe&&i.progressEventsUnsubscribe.push(r)}))},renderDOMPlayers:function(e){void 0===e&&(e=document);var t=d("vidyard-player-embed","img",e);!function(e){void 0===e&&(e=d("vidyard-player-embed","img"));for(var t=0,n=e;t<n.length;t++){var i=n[t],r=new nt(i),s=r.uuid,o="https://"+M()+"/"+s+r.toQueryString();s&&-1===c(o,window.VidyardV4.preloadLinks)&&(it(0,o),window.VidyardV4.preloadLinks.push(o))}}(t),_(t).forEach(at),F()},renderPlayer:function(e){var t=e instanceof HTMLImageElement?e:function(e){void 0===e&&(e={});var t=e.uuid,n=e.container,i=e.type,r=void 0===i?"inline":i,s=(e.aspect,X(e,["uuid","container","type","aspect"]));if(t&&n){j.setLevel("placeholder")("creating placeholder image");var o=document.createElement("img"),a=s.width?s.width+"px":"100%",l="\n    display: block;\n    margin: 0 auto;\n    max-height: "+(s.height?s.height+"px":"100%")+";\n    max-width: "+a+";\n    opacity: 0;\n  ";return o.src="https://"+M()+"/"+t+".jpg",o.className="vidyard-player-embed",o.setAttribute("style",l),o.setAttribute("data-uuid",t),o.setAttribute("data-type",r),Object.keys(s).forEac
2h((function(e){return o.setAttribute("data-"+e,s[e])})),n.appendChild(o)}}(e);return K(t).then(mt).catch((function(e){return f(Y.placeholder,"warn")}))}},integrations:new function(){var e=this,t=!1,n={};this.updatePlayer=function(e){if(e._tmpOrg&&e.iframe){var t=e._tmpOrg.orgId;n[t]||(n[t]={foundIntegrations:{},id:t,integrations:e._tmpOrg,players:[]}),e.org=n[t];for(var i=0,r=n[t].players;i<r.length;i++)if(r[i].iframe===e.iframe)return;n[t].players.push(e);var s=e.org.integrations,o=s.eloqua,a=s.eloquaFirstPartyDomain;o&&(null!==e.status&&e.status.consent?v(o,a):e.on("status",(function t(){e.status.consent&&(v(o,a),e.off("status",t))}))),p()}},this.safelyCommunicateIntegration=function(e,t,n){void 0!==e.org&&null!=n&&!i(e,t)&&l(e,t,n)&&(e.org=s(e.org,t,e.uuid))},this.addKnownVisitor=function(e,t,n){if(n)for(var i=0,r=n.players;i<r.length;i++){var s=r[i];h(s,e,t)}},this.getCookie=function(e,t){var n=document.cookie.split(";");if("eloqua"===e&&"function"==typeof window.GetElqCustomerGUID)return window.GetElqCustomerGUID();for(var i=m(D[N.indexOf(e)],t),r=0,s=n;r<s.length;r++){var o=s[r],a=o.indexOf("="),l=o.substr(0,a).replace(/^\s+|\s+$/g,""),c=o.substr(a+1);if(l===i)return decodeURIComponent(c)}};var i=function(e,t){return e.org&&e.org.foundIntegrations&&e.org.foundIntegrations[t]&&e.org.foundIntegrations[t].sentPlayers&&-1!==c(e.uuid,e.org.foundIntegrations[t].sentPlayers)},r=function(e,t){return e.foundIntegrations[t]||(e.foundIntegrations[t]={externalIdentifier:null,sentPlayers:[]}),e},s=function(e,t,n){return(e=r(e,t)).foundIntegrations[t].sentPlayers.push(n),e},o=function(e,t,n){return(e=r(e,t)).foundIntegrations[t].externalIdentifier=n,e},l=function(e,t,n){if(!e.ready())return!1;var i={data:{type:t,value:n},event:"associateVisitor",uuid:e.uuid};return f("IntegrationsWatcher.communicateIntegration "+i,"debug"),P(i,"https://"+M(),e.iframe),!0},u=function(t,n,i){if(void 0!==t&&null!=i)for(var r=0,s=t;r<s.length;r++){var o=s[r];e.safelyCommunicateIntegration(o,n,i)}},d=function(e,t,n){var i={data:{type:t,value:n},event:"identifyVisitor",uuid:e.uuid};P(i,"https://"+M(),e.iframe)},h=function(e,t,n){e.ready()?d(e,t,n):e.on("ready",(function(){d(e,t,n)}))},p=function(){for(var t=0,i=N;t<i.length;t++){var r=i[t];for(var s in n)if(n.hasOwnProperty(s)){var a=n[s];if(!a.integrations[r])continue;var l=e.getCookie(r,a);if(!l)continue;if(!(l=g(r,l,a)))continue;a=o(a,r,l),u(a.players,r,l)}}},m=function(e,t){return"pardot"===e&&t&&t.integrations.pardot?"visitor_id"+t.integrations.pardot:e},g=function(e,t,n){if("marketo"===e){if(!n.integrations.marketo||-1===t.toLowerCase().indexOf(n.integrations.marketo.toLowerCase()))return null;t=encodeURIComponent(t)}return t},v=function(e,n){if(!t){t=!0;var i=function(){if(!document.getElementById("vidyard-eloqua-include")){window._elqQ=window._elqQ||[],window._elqQ.push(["elqSetSiteId",e]),n&&window._elqQ.push(["elqUseFirstPartyCookie",n]),window._elqQ.push(["elqTrackPageView"]),window._elqQ.push(["elqGetCustomerGUID"]);var t=document.createElement("script");t.id="vidyard-eloqua-include",t.type="text/javascript",t.async=!0,t.src="https://img.en25.com/i/elqCfg.min.js";var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(t,i)}};"complete"===document.readyState?i():a("DOMContentLoaded","onload",i)}};setInterval((function(){p()}),1e3)},jsonp:{},playerReadyListeners:{undefined:[]},players:[],preloadLinks:[]},vt=gt,yt={_players:{},players:function(){return window.VidyardV4.players.reduce((function(e,t){return e[t.uuid]=t,e}),{})}},bt=(n(12),n(2)),_t=function(e){return void 0===e&&(e=""),e.match(I)},Et=function(e){var t=e.error,n=e.filename,i=e.message,r=e.timeStamp,s=e.type;if(_t(n)){var o=function(e){var t=e.error,n=e.location,i=e.message,r=e.navigator,s=e.timeStamp,o=e.type,a=e.vyGlobal;return{data:{body:{trace:{exception:{class:t.name,message:i},frames:bt.parse(t).map((function(e){return{code:e.source,colno:e.columnNumber,filename:e.fileName,lineno:e.lineNumber,method:e.functionName}}))}},client:{cpu:r.platform,javascript:{browser:r.userAgent,guess_uncaught_frames:!0,source_map_enabled:!0}}
2,code_version:L,custom:{jsonpRequests:Object.keys(a.jsonp),playbackUrlOverride:window.VIDYARD_PLAYBACK_URL,players:a.players.map((function(e){return{iframe:e.iframe?{src:e.iframe.src}:{},metadata:e.metadata,org:e.org?{id:e.org.id,foundIntegrations:e.org.foundIntegrations}:{},uuid:e.uuid}})),preloadLinks:a.preloadLinks},environment:M(),fingerprint:t.name,language:"javascript",level:o,platform:"browser",request:{query_string:n.search,url:n.href},timestamp:s}}}({error:t,location:window.location,message:i,navigator:window.navigator,timeStamp:r,type:s,vyGlobal:window.VidyardV4});w({endpoint:"https://"+M()+"/v4/error",method:"POST",payload:o}).then((function(e){return f("Error logged "+e)}),(function(e){return f("Error log failed "+e)}))}};n.d(t,"_debug",(function(){return wt})),n.d(t,"api",(function(){return xt})),n.d(t,"players",(function(){return Tt})),a("error","onerror",Et,window),a("unhandledrejection","",(function(e){var t=e.reason,n=e.timeStamp,i=e.type;e.reason instanceof Error&&_t(t.stack)&&(e.preventDefault(),Et({error:t,filename:t.stack,message:t.message,timeStamp:n,type:i}))})),window.VidyardV4=window.VidyardV4||vt,window.Vidyard=window.Vidyard||yt,F();var wt=vt._debug,xt=vt.api,Tt=vt.players;t.default=vt},function(e,t,n){var i,r,s;!function(n,o){"use strict";r=[],void 0===(s="function"==typeof(i=function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var i=["isConstructor","isEval","isNative","isToplevel"],r=["columnNumber","lineNumber"],s=["fileName","functionName","source"],o=["args"],a=i.concat(r,s,o);function l(e){if(e instanceof Object)for(var n=0;n<a.length;n++)e.hasOwnProperty(a[n])&&void 0!==e[a[n]]&&this["set"+t(a[n])](e[a[n]])}l.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof l)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new l(e)}},toString:function(){return(this.getFunctionName()||"{anonymous}")+"("+(this.getArgs()||[]).join(",")+")"+(this.getFileName()?"@"+this.getFileName():"")+(e(this.getLineNumber())?":"+this.getLineNumber():"")+(e(this.getColumnNumber())?":"+this.getColumnNumber():"")}};for(var c=0;c<i.length;c++)l.prototype["get"+t(i[c])]=n(i[c]),l.prototype["set"+t(i[c])]=function(e){return function(t){this[e]=Boolean(t)}}(i[c]);for(var u=0;u<r.length;u++)l.prototype["get"+t(r[u])]=n(r[u]),l.prototype["set"+t(r[u])]=function(t){return function(n){if(!e(n))throw new TypeError(t+" must be a Number");this[t]=Number(n)}}(r[u]);for(var d=0;d<s.length;d++)l.prototype["get"+t(s[d])]=n(s[d]),l.prototype["set"+t(s[d])]=function(e){return function(t){this[e]=String(t)}}(s[d]);return l})?i.apply(t,r):i)||(e.exports=s)}()},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var r,s=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(s)?e:(r=0===s.indexOf("//")?s:0===s.indexOf("/")?n+s:i+s.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")}))}},function(e,t,n){var i,r,s={},o=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=i.apply(this,arguments)),r}),a=function(e){return document.querySelector(e)},l=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=a.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),c=null,u=0,d=[],h=n(8);function f(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=s[i.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](i.parts[o]);for(;o<i.parts.length;o++)r.parts.push(b(i.parts[o],t))}else{var a=[];for(o=0;o<i.parts.length;o++)a.push(b(i.parts[o],t));s[i.id]={id:i.id,refs:1,parts:a}}}}function p(e,t){for(var n=[],i={},r=0;r<e.length;
vendor: 4,147 bytes, line 2
2r++){var s=e[r],o=t.base?s[0]+t.base:s[0],a={css:s[1],media:s[2],sourceMap:s[3]};i[o]?i[o].parts.push(a):n.push(i[o]={id:o,parts:[a]})}return n}function m(e,t){var n=l(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=d[d.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),d.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=l(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,r)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=d.indexOf(e);t>=0&&d.splice(t,1)}function v(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),y(t,e.attrs),m(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function b(e,t){var n,i,r,s;if(t.transform&&e.css){if(!(s=t.transform(e.css)))return function(){};e.css=s}if(t.singleton){var o=u++;n=c||(c=v(t)),i=w.bind(null,n,o,!1),r=w.bind(null,n,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),m(e,t),t}(t),i=T.bind(null,n,t),r=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),i=x.bind(null,n),r=function(){g(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return f(n,t),function(e){for(var i=[],r=0;r<n.length;r++){var o=n[r];(a=s[o.id]).refs--,i.push(a)}for(e&&f(p(e,t),t),r=0;r<i.length;r++){var a;if(0===(a=i[r]).refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete s[a.id]}}}};var _,E=(_=[],function(e,t){return _[e]=t,_.filter(Boolean).join("\n")});function w(e,t,n,i){var r=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=E(t,r);else{var s=document.createTextNode(r),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(s,o[t]):e.appendChild(s)}}function x(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function T(e,t,n){var i=n.css,r=n.sourceMap,s=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||s)&&(i=h(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([i],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,i=e[1]||"",r=e[3];if(!r)return i;if(t&&"function"==typeof btoa){var s=(n=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),o=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[i].concat(o).concat([s]).join("\n")}return[i].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var s=this[r][0];"number"==typeof s&&(i[s]=!0)}for(r=0;r<e.length;r++){var o=e[r];"number"==typeof o[0]&&i[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}}
2,function(e,t,n){(e.exports=n(10)(!1)).push([e.i,'.vidyard-player-container .play-button{position:absolute;width:16%;height:auto;border-radius:50%;border:none;cursor:pointer;opacity:.65;filter:alpha(opacity = 65);transition:opacity .2s linear;overflow:hidden;font-size:0;padding:0;min-width:20px;top:50%;left:50%;transform:translate(-50%,-50%);-webkit-appearance:initial!important;-moz-appearance:initial!important;appearance:initial!important}.vidyard-player-container .play-button .play-button-size{padding-top:100%;width:100%}.vidyard-player-container .play-button .arrow-size{position:absolute;top:50%;left:50%;width:35%;height:auto;margin:-25% 0 0 -12%;overflow:hidden}.vidyard-player-container .play-button .arrow-size-ratio{padding-top:150%;width:100%}.vidyard-player-container .play-button .arrow{position:absolute;top:50%;left:auto;right:0;bottom:auto;width:0;height:0;margin:-200px 0 -200px -300px;border:200px solid transparent;border-left:300px solid #fff;border-right:none}.vidyard-lightbox-thumbnail:hover .play-button{opacity:1;filter:alpha(opacity = 100);zoom:1}.vidyard-player-container{position:relative;height:100%;text-align:center}.vidyard-player-container img{height:100%}.vidyard-player-container .play-button{display:none}.vidyard-close-container{position:fixed;right:20px;top:20px;height:34px;width:34px;cursor:pointer;z-index:1000}.vidyard-close-container:focus{outline:1px dotted grey}.vidyard-close-x{position:absolute;height:100%;width:100%;color:#fff;font-size:2em;text-align:center;line-height:34px}.vidyard-close-x:hover{color:#ddd}.vidyard-close-x:hover:after,.vidyard-close-x:hover:before{background:#ddd}.vidyard-close-x:after,.vidyard-close-x:before{content:"";position:absolute;background:#fff;display:block;left:50%;top:50%;height:65%;width:2px;transition:all .2s;-ms-high-contrast-adjust:none}.vidyard-close-x:before{transform:translate(-50%,-50%) rotate(45deg);-ms-transform:translate(-50%,-50%) rotate(45deg)}.vidyard-close-x:after{transform:translate(-50%,-50%) rotate(-45deg);-ms-transform:translate(-50%,-50%) rotate(-45deg)}.vidyard-close-x.simple-close:after,.vidyard-close-x.simple-close:before{display:none}.vidyard-lightbox-thumbnail{width:100%;height:100%;margin:auto}.vidyard-lightbox-image{height:100%;left:0;position:absolute;top:0;width:100%}.vidyard-lightbox-centering{cursor:pointer;height:0;max-width:100%;overflow:hidden;padding-bottom:56.25%;position:relative}.vidyard-lightbox-content-backer{-webkit-transform:opacity 1s,filter 1s;-ms-transform:opacity 1s,filter 1s;transition:opacity 1s,filter 1s;background-color:#000;height:100%;width:100%;position:absolute}#vidyard-overlay-wrapper,.vidyard-lightbox-content-backer{filter:alpha(opacity = 0);opacity:0;top:0;right:0;bottom:0;left:0}#vidyard-overlay-wrapper{position:relative;box-sizing:border-box;display:none;transition:opacity .5s,filter .5s}#vidyard-overlay{top:0;right:0;bottom:0;left:0;opacity:.9;filter:alpha(opacity = 90);width:100%;height:100%;background-color:#000;z-index:800}#vidyard-content-fixed,#vidyard-overlay{position:fixed;box-sizing:border-box;display:none}#vidyard-content-fixed{opacity:1;z-index:900;text-align:center;top:5%;right:5%;bottom:5%;left:5%;width:90%}#vidyard-popbox{display:inline-block;position:absolute;left:50%;top:50%;-webit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#vidyard-popbox-constraint{opacity:0;filter:alpha(opacity = 0);display:block;visibility:hidden}#vidyard-popbox-constraint.landscape{height:90vh}#vidyard-popbox-constraint.portrait{width:90vw}.vidyard-player-container div[class^=vidyard-iframe-]{z-index:1}.vidyard-player-container div[class^=vidyard-div-]{background-repeat:no-repeat;background-position:0 50%;background-size:100%}img.vidyard-player-embed{width:100%}img.vidyard-player-embed.inserted{position:absolute;top:0;left:0;z-index:0;max-width:100%!important}.vidyard-player-container.playlist-open{padding-right:319px;width:auto!important}.vidyard-player-container.playlist-open div[class^=vidyard-div-]{width:calc(100% + 319px);max-width:calc(100% + 319px)!important;background-size:calc(100% - 319px);background-color:#f5f9ff}.vidyard-player-container.playlist-open div[class^=vidyard-div-] img.vidyard-player-embed{width:calc(100% - 319px)!important}#backlink-icon{height:15px;width:15px;margin-right:6px;transition:.3s}#backlink{align-items:center;border-radius:4px;border:3px solid #ebeeff;display:inline-block;float:left;line-height:18px;margin:8px 0 0;outline:none;padding:1px 8px 1px 5px;position:relative;*zoom:1;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;font-style:normal;font-weight:400;font-size:12px;text-decoration:none}#backlink:after,#backlink:before{content:" ";display:table}#backlink:after{clear:both}#backlink:link,#backlink:visited{background:#ebeeff;border-color:#ebeeff;color:#414dd4}#backlink:hover{background:#bfc2ff;color:#1b1a82;cursor:pointer}#backlink:focus,#backlink:hover{border-color:#bfc2ff}#backlink:active{background:#8f97ff;border-color:#8f97ff;color:#0c084d}#backlink-icon{float:left;height:18px;margin-right:5px;position:relative;width:18px}#backlink-text{float:left}',""])},function(e,t,n){var i=n(11);"string"==typeof i&&(i=[[e.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(9)(i,r),i.locals&&(e.exports=i.locals)},function(e,t,n){"use strict";var i=function(e){return 1===e.nodeType&&"body"!==e.tagName.toLowerCase()&&"html"!==e.tagName.toLowerCase()},r=function(e){return 1===e.nodeType&&"script"!==e.tagName.toLowerCase()},s=function(e,t){return e.concat(t)};function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.previousSibling;return n?(t.push(n),o(n,t)):t}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.nextSibling;return n?(t.push(n),a(n,t)):t}function l(e){return o(e).concat(a(e)).filter(r)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.parentNode;return n?(t.push(n),c(n,t)):t}function u(e){return c(e).filter(i)}e.exports={getSiblings:l,getAncestors:u,getSiblingsOfAncestors:function(e){return u(e).map((function(e){return l(e)})).reduce(s,[])}}},function(e,t,n){(function(t){var n=t.CustomEvent;e.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?n:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this,n(0))},,function(e,t){var n,i,r=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}
2catch(e){n=s}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var e=a(h);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var i,r,s,o,a,l=1,c={},u=!1,d=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick((function(){p(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),i=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((s=new MessageChannel).port1.onmessage=function(e){p(e.data)},i=function(e){s.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(e){var t=d.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):i=function(e){setTimeout(p,0,e)},h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return c[l]=r,i(l),l++},h.clearImmediate=f}function f(e){delete c[e]}function p(e){if(u)setTimeout(p,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,i=e.args;switch(i.length){case 0:t();break;case 1:t(i[0]);break;case 2:t(i[0],i[1]);break;case 3:t(i[0],i[1],i[2]);break;default:t.apply(n,i)}}(t)}finally{f(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(0),n(16))},function(e,t,n){(function(e){var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function s(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new s(r.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(r.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(17),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(0))}])},e.exports=t()},155:function(){!function(){let e,t;function n(e){const t=function(e){const t=e.dataset.cmpDataLayer;if(t)return JSON.parse(t);return}(e),n=Object.keys(t)[0];if(t&&t[n]&&!t[n].parentId){const i=e.parentNode.closest("[data-cmp-data-layer], body");i&&(t[n].parentId=i.id)}return t}function i(e){const n=function(e){if(e.dataset.cmpDataLayer)return Object.keys(JSON.parse(e.dataset.cmpDataLayer))[0];const t=e.closest("[data-cmp-data-layer]");return Object.keys(JSON.parse(t.dataset.cmpDataLayer))[0]}(e.currentTarget);t.push({event:"cmp:click",eventInfo:{path:`component.${n}`}})}function r(){if(e=document.body.hasAttribute("data-cmp-data-layer-enabled"),t=e?window.adobeDataLayer=window.adobeDataLayer||[]:void 0,e){const e=document.querySelectorAll("[data-cmp-data-layer]"),r=document.querySelectorAll("[data-cmp-clickable]");e.forEach((e=>{!function(e){t.push({component:n(e)})}(e)})),r.forEach((e=>{!function(e){e.addEventListener("click",i)}(e)})),t.push({event:"cmp:loaded"})}}"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)}()},47:function(){(()=>{const e="cmp",t="https://documentcloud.adobe.com/view-sdk/main.js",n="adobe_dc_view_sdk.ready",i="-content",r={self:`[data-${e}-is="pdfviewer"]`,sdkScript:`script[src="${t}"]`};function s(i){i.removeAttribute(`data-${e}-is`),function(){const e=document.querySelectorAll(r.sdkScript).length>0;if(!window.adobe_dc_view_sdk&&!e){const e=document.createElement("script");e.type="text/javascript",e.src=t,document.body.appendChild(e)}}(),i.dataset&&i.id&&(window.AdobeDC&&window.AdobeDC.View?o(i):document.addEventListener(n,(()=>{o(i)})))}function o(e){new window.AdobeDC.View({clientId:e.dataset.cmpClientId,divId:`${e.id}${i}`,reportSuiteId:e.dataset.cmpReportSuiteId}).previewFile({content:{location:{url:e.dataset.cmpDocumentPath}}
2,metaData:{fileName:e.dataset.cmpDocumentFileName}},JSON.parse(e.dataset.cmpViewerConfigJson))}function a(){const e=document.querySelectorAll(r.self);for(let t=0;t<e.length;t+=1)s(e[t]);const t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,n=document.querySelector("body");new t((e=>{e.forEach((e=>{const t=[].slice.call(e.addedNodes);t.length>0&&t.forEach((e=>{if(e.querySelectorAll){[].slice.call(e.querySelectorAll(r.self)).forEach((e=>{s(e)}))}}))}))})).observe(n,{subtree:!0,childList:!0,characterData:!0})}"loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)})()},965:function(){document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".cmp-state-picker__form").forEach((e=>{const t=e.querySelector("select"),n=e.querySelector("button");t&&(e.addEventListener("change",(()=>{"disabled"===t.value?n.setAttribute("disabled","true"):n.removeAttribute("disabled")})),e.addEventListener("submit",(e=>{e.preventDefault();const i=t.value;n.hasAttribute("disabled")&&t.focus(),window.open(i,"_self","noopener")})))}))}))},425:function(){document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".cmp-text table").forEach((e=>{const t=document.createElement("div");t.className="cmp-table",e.parentNode.insertBefore(t,e),t.appendChild(e)}))}))},685:function(){(()=>{const e=".s7dm-dynamic-media",t="s7responsiveViewer";let n,i;function r(e){let r;const s=e.getAttribute("data-smartcrop");void 0!==r&&null!=r&&e.classList.remove(t);const o=e.getAttribute("data-viewer-type");if(o){const a=function(e){const t=e.getAttribute("data-asset-path"),n=e.getAttribute("data-asset-type"),i=e.getAttribute("data-viewer-type"),r=e.getAttribute("data-videoserver"),s=e.getAttribute("data-posterimage"),o="true"===e.getAttribute("data-autoplay")?"1":"0",a=e.getAttribute("data-contenturl"),l=e.getAttribute("data-config"),c=e.getAttribute("data-wcmdisabled"),u=e.getAttribute("data-dms7"),d="true"===e.getAttribute("data-loop")?"1":"0",h=e.getAttribute("data-caption"),f={asset:t,contenturl:a},p=!c&&""!==c;p&&(f.asset+="?cache=off");0!==t.indexOf("/")&&(f.aemmode="0");(i.indexOf("Video")>=0||i.indexOf("Mixed")>=0)&&(f.videoserverurl=r,f.posterimage=s,f.autoplay=o,f.mutevolume=o,f.loop=d,f.caption=h,("video"===n||void 0!==u&&p)&&(f.playback="native",f.progressivebitrate="20000"));if(void 0!==l&&l.length>0){const e=l.split("|"),[t]=e;f.config=t}return f}(e),l={containerId:e.getAttribute("id"),params:a};e.classList.add(t),"enable"===s?i.onload=()=>{r=new s7viewers.SmartCropVideoViewer(l),r.init()}:n.onload=()=>{r=new s7viewers[o](l),r.init()}}}function s(e){const t=document.createElement("script");t.setAttribute("src",e),t.setAttribute("type","text/javascript");return document.getElementsByTagName("body")[0].appendChild(t),t}document.addEventListener("DOMContentLoaded",(function(){n=s("https://s7d6.scene7.com/s7viewers/html5/js/VideoViewer.js"),i=s("https://s7d6.scene7.com/s7viewers/html5/js/SmartCropVideoViewer.js"),function(){if(document.querySelectorAll(e).length>0){document.querySelectorAll(e).forEach(r)}}()}))})(Granite)},558:function(){!function(){function e(e){window.digitalData.push(e),console.log("[AmeriHealth Data Layer]",e.event,e)}function t(e){return"true"===sessionStorage.getItem(e)}function n(e){sessionStorage.setItem(e,"true")}window.digitalData=window.digitalData||[],document.addEventListener("click",(t=>{const n=t.target.closest("a");if(!n)return;const i=n.href||"",o=(n.textContent||n.innerText||"").trim();/\.(pdf|doc|docx|xls|xlsx|ppt|pptx|zip)$/i.test(i)&&e({event:"download",file:{fileName:i.split("/").pop()}}),e({event:"linkClick",component:{linkText:o,linkURL:i||"N/A",linkLocation:r(n),linkType:s(n)}});try{const t=new URL(i);t.hostname&&t.hostname!==window.location.hostname&&e({event:"exit",exit:{exitLink:i}})}catch(e){}"true"===n.dataset.searchResult&&e({event:"searchResultSelected",searchResult:{searchKeyword:n.dataset.searchKeyword||"",searchResultSelected:o}})}));const i=[];function r(e){return e.dataset.linkLocation?e.dataset.linkLocation:e.closest("footer")?"footer":e.closest("header")?"header":e.closest("nav")?"nav title":"body"}function s(e){if(e.dataset.linkType)return e.dataset.linkType;const t=e.href||"";if(0===t.indexOf("mailto:"))return"email";if(0===t.indexOf("tel:"))return"click to call";
2if(/\.(pdf|doc|docx|xls|xlsx|ppt|pptx|zip)$/i.test(t))return"download";try{const e=new URL(t);if(e.hostname&&e.hostname!==window.location.hostname)return"exit"}catch(e){}return"other"}document.querySelectorAll("form").forEach((r=>{const s=r.dataset.formName||r.getAttribute("name")||r.id||"",o=r.dataset.formId||r.id||"";o&&-1===i.indexOf(o)&&(i.push(o),e({event:"formView",form:{formName:s,formId:o}})),r.addEventListener("focusin",(()=>{const i=`ah-form-start-${o}`;t(i)||(n(i),e({event:"formStart",form:{formName:s,formId:o}}))}))})),window.AHTrackFormSubmit=function(i,r){const s=`ah-form-submit-${r}`;t(s)||(n(s),e({event:"formSubmit",form:{formName:i||"",formId:r||""}}))},window.AHTrackFormError=function(i,r){const s=`ah-form-error-${r}`;t(s)||(n(s),e({event:"formError",form:{formName:i||"",formId:r||""}}))},window.AHTrackSearch=function(t,n){const i=Number(n)||0;e(0!==i?{event:"Searches",search:{searchKeyword:t||"",searchResultsCount:i}}:{event:"nullSearch",search:{searchKeyword:t||""}})},window.AHTrackSearchResult=function(t,n){e({event:"searchResultSelected",searchResult:{searchKeyword:t||"",searchResultSelected:n||""}})}}()},296:function(){(e=>{if(!("serviceWorker"in navigator))return;let t=null;const n=e.getElementsByClassName("cmp-page__toastmessagehide")[0],i=e.getElementsByName("cq:sw_path")[0];if(!i)return;const r=i.getAttribute("content");let s=!1;function o(){s||(window.location.reload(),s=!0)}window.addEventListener("load",(function(){navigator.serviceWorker.register(r).then((e=>{e.addEventListener("updatefound",(()=>{t=e.installing,t.addEventListener("statechange",(()=>{"installed"===t.state&&navigator.serviceWorker.controller&&n&&(n.addEventListener("click",(()=>{t.postMessage({action:"skipWaiting"})})),n.innerText="A new version of this app is available. Click this message to reload.",window.CQ&&window.CQ.I18n&&(n.innerText=window.CQ.I18n.getMessage("A new version of this app is available. Click this message to reload.")),n.className="cmp-page__toastmessageshow")}))}))})),navigator.serviceWorker.addEventListener("controllerchange",o)}))})(document)},807:function(){},348:function(e,t){var n,i,r;i=[t,e],n=function(e,t){"use strict";var n={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function i(){return"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random())}function r(e){try{delete window[e]}catch(t){window[e]=void 0}}function s(e){var t=document.getElementById(e);t&&document.getElementsByTagName("head")[0].removeChild(t)}function o(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=e,a=t.timeout||n.timeout,l=t.jsonpCallback||n.jsonpCallback,c=void 0;return new Promise((function(n,u){var d=t.jsonpCallbackFunction||i(),h=l+"_"+d;window[d]=function(e){n({ok:!0,json:function(){return Promise.resolve(e)}}),c&&clearTimeout(c),s(h),r(d)},o+=-1===o.indexOf("?")?"?":"&";var f=document.createElement("script");f.setAttribute("src",""+o+l+"="+d),t.charset&&f.setAttribute("charset",t.charset),t.nonce&&f.setAttribute("nonce",t.nonce),t.referrerPolicy&&f.setAttribute("referrerPolicy",t.referrerPolicy),t.crossorigin&&f.setAttribute("crossorigin","true"),f.id=h,document.getElementsByTagName("head")[0].appendChild(f),c=setTimeout((function(){u(new Error("JSONP request to "+e+" timed out")),r(d),s(h),window[d]=function(){r(d)}}),a),f.onerror=function(){u(new Error("JSONP request to "+e+" failed")),r(d),s(h),c&&clearTimeout(c)}}))}t.exports=o},void 0===(r="function"==typeof n?n.apply(t,i):n)||(e.exports=r)},442:function(e){e.exports=function(){"use strict";var e=function(){self.onmessage=function(t){e(t.data.message,(function(e){self.postMessage({id:t.data.id,message:e})}))};var e=function(e,t){var n=e.file,i=new FileReader;i.onloadend=function(){t(i.result.replace("data:","").replace(/^.+,/,""))},i.readAsDataURL(n)}},t=function(t){var n=t.addFilter,i=t.utils,r=i.Type,s=i.createWorker,o=i.createRoute,a=i.isFile,l=function(t){var n=t.name,i=t.file;return new Promise((function(t){var r=s(e);r.post({file:i},(function(e){t({name:n,data:e}),r.terminate()}))}))},c=[];return n("DID_CREATE_ITEM",(function(e,t){(0,t.query)("GET_ALLOW_FILE_ENCODE")&&(e.extend("getFileEncodeBase64String",(function(){return c[e.id]&&c[e.id].data})),e.extend("getFileEncodeDataURL",(function(){return c[e.id]&&"data:".concat(e.fileType,";base64,").concat(c[e.id].data)})))})),n("SHOULD_PREPARE_OUTPUT",(function(e,t){var n=t.query;return new Promise((function(e){e(n("GET_ALLOW_FILE_ENCODE"))}))})),n("COMPLETE_PREPARE_OUTPUT",(function(e,t){var n=t.item,i=t.query;return new Promise((function(t){if(!i("GET_ALLOW_FILE_ENCODE")||!a(e)&&!Array.isArray(e))return t(e);c[n.id]={metadata:n.getMetadata(),data:null},Promise.all((e instanceof Blob?[{name:null,file:e}]:e).map(l)).then((function(i){c[n.id].data=e instanceof Blob?i[0].data:i,t(e)}))}))})),n("CREATE_VIEW",(function(e){var t=e.is,n=e.view,i=e.query;t("file-wrapper")&&i("GET_ALLOW_FILE_ENCODE")&&n.registerWriter(o({DID_PREPARE_OUTPUT:function(e){var t=e.root,n=e.action;if(!i("IS_ASYNC")){var r=i("GET_ITEM",n.id);if(r){var s=c[r.id],o=s.metadata,a=s.data,l=JSON.stringify({id:r.id,name:r.file.name,type:r.file.type,size:r.file.size,metadata:o,data:a});t.ref.data?t.ref.data.value=l:t.dispatch("DID_DEFINE_VALUE",{id:r.id,value:l})}}},DID_REMOVE_ITEM:function(e){var t=e.action,n=i("GET_ITEM",t.id);n&&delete c[n.id]}}))})),{options:{allowFileEncode:[!0,r.BOOLEAN]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:t})),t}()},460:function(e){e.exports=function(){"use strict";var e=function(e){var t=e.addFilter,n=e.utils,i=n.Type,r=n.replaceInString,s=n.toNaturalFileSize;
2return t("ALLOW_HOPPER_ITEM",(function(e,t){var n=t.query;if(!n("GET_ALLOW_FILE_SIZE_VALIDATION"))return!0;var i=n("GET_MAX_FILE_SIZE");if(null!==i&&e.size>i)return!1;var r=n("GET_MIN_FILE_SIZE");return!(null!==r&&e.size<r)})),t("LOAD_FILE",(function(e,t){var n=t.query;return new Promise((function(t,i){if(!n("GET_ALLOW_FILE_SIZE_VALIDATION"))return t(e);var o=n("GET_FILE_VALIDATE_SIZE_FILTER");if(o&&!o(e))return t(e);var a=n("GET_MAX_FILE_SIZE");if(null!==a&&e.size>a)i({status:{main:n("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:r(n("GET_LABEL_MAX_FILE_SIZE"),{filesize:s(a,".",n("GET_FILE_SIZE_BASE"),n("GET_FILE_SIZE_LABELS",n))})}});else{var l=n("GET_MIN_FILE_SIZE");if(null!==l&&e.size<l)i({status:{main:n("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:r(n("GET_LABEL_MIN_FILE_SIZE"),{filesize:s(l,".",n("GET_FILE_SIZE_BASE"),n("GET_FILE_SIZE_LABELS",n))})}});else{var c=n("GET_MAX_TOTAL_FILE_SIZE");if(null!==c&&n("GET_ACTIVE_ITEMS").reduce((function(e,t){return e+t.fileSize}),0)>c)return void i({status:{main:n("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:r(n("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:s(c,".",n("GET_FILE_SIZE_BASE"),n("GET_FILE_SIZE_LABELS",n))})}});t(e)}}}))})),{options:{allowFileSizeValidation:[!0,i.BOOLEAN],maxFileSize:[null,i.INT],minFileSize:[null,i.INT],maxTotalFileSize:[null,i.INT],fileValidateSizeFilter:[null,i.FUNCTION],labelMinFileSizeExceeded:["File is too small",i.STRING],labelMinFileSize:["Minimum file size is {filesize}",i.STRING],labelMaxFileSizeExceeded:["File is too large",i.STRING],labelMaxFileSize:["Maximum file size is {filesize}",i.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",i.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",i.STRING]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e}()},424:function(e){e.exports=function(){"use strict";var e=function(e){var t=e.addFilter,n=e.utils,i=n.Type,r=n.isString,s=n.replaceInString,o=n.guesstimateMimeType,a=n.getExtensionFromFilename,l=n.getFilenameFromURL,c=function(e,t){return(/^[^/]+/.exec(e)||[]).pop()===t.slice(0,-2)},u=function(e,t){return e.some((function(e){return/\*$/.test(e)?c(t,e):e===t}))},d=function(e){var t="";if(r(e)){var n=l(e),i=a(n);i&&(t=o(i))}else t=e.type;return t},h=function(e,t,n){if(0===t.length)return!0;var i=d(e);return n?new Promise((function(r,s){n(e,i).then((function(e){u(t,e)?r():s()})).catch(s)})):u(t,i)},f=function(e){return function(t){return null!==e[t]&&(e[t]||t)}};return t("SET_ATTRIBUTE_TO_OPTION_MAP",(function(e){return Object.assign(e,{accept:"acceptedFileTypes"})})),t("ALLOW_HOPPER_ITEM",(function(e,t){var n=t.query;return!n("GET_ALLOW_FILE_TYPE_VALIDATION")||h(e,n("GET_ACCEPTED_FILE_TYPES"))})),t("LOAD_FILE",(function(e,t){var n=t.query;return new Promise((function(t,i){if(n("GET_ALLOW_FILE_TYPE_VALIDATION")){var r=n("GET_ACCEPTED_FILE_TYPES"),o=n("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),a=h(e,r,o),l=function(){var e=r.map(f(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"))).filter((function(e){return!1!==e})),t=e.filter((function(t,n){return e.indexOf(t)===n}));i({status:{main:n("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:s(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:t.join(", "),allButLastType:t.slice(0,-1).join(", "),lastType:t[t.length-1]})}})};if("boolean"==typeof a)return a?t(e):l();a.then((function(){t(e)})).catch(l)}else t(e)}))})),{options:{allowFileTypeValidation:[!0,i.BOOLEAN],acceptedFileTypes:[[],i.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",i.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",i.STRING],fileValidateTypeLabelExpectedTypesMap:[{},i.OBJECT],fileValidateTypeDetectType:[null,i.FUNCTION]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e}()},630:function(e,t,n){var i,r;i=function(){"use strict";var e,t,n,i,r;Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var i=arguments[1],r=0;r<n;){var s=t[r];
2if(e.call(i,s,r,t))return s;r++}}}),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var i=arguments[1],r=0;r<n;){var s=t[r];if(e.call(i,s,r,t))return r;r++}return-1}}),Array.from||(Array.from=(e=Object.prototype.toString,t=function(t){return"function"==typeof t||"[object Function]"===e.call(t)},n=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t},i=Math.pow(2,53)-1,r=function(e){var t=n(e);return Math.min(Math.max(t,0),i)},function(e){var n=this,i=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var s,o=arguments.length>1?arguments[1]:void 0;if(void 0!==o){if(!t(o))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(s=arguments[2])}for(var a,l=r(i.length),c=t(n)?Object(new n(l)):new Array(l),u=0;u<l;)a=i[u],c[u]=o?void 0===s?o(a,u):o.call(s,a,u):a,u+=1;return c.length=l,c})),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),i=n.length>>>0;if(0===i)return!1;var r=0|t,s=Math.max(r>=0?r:i-Math.abs(r),0);function o(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}for(;s<i;){if(o(n[s],e))return!0;s++}return!1}}),Array.prototype.some||(Array.prototype.some=function(e){if(null==this)throw new TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof e)throw new TypeError;for(var t=Object(this),n=t.length>>>0,i=arguments.length>=2?arguments[1]:void 0,r=0;r<n;r++)if(r in t&&e.call(i,t[r],r,t))return!0;return!1}),Array.prototype.every||(Array.prototype.every=function(e,t){var n,i;if(null==this)throw new TypeError("this is null or not defined");var r=Object(this),s=r.length>>>0;if("function"!=typeof e)throw new TypeError;for(arguments.length>1&&(n=t),i=0;i<s;){var o;if(i in r&&(o=r[i],!e.call(n,o,i,r)))return!1;i++}return!0}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&
vendor: 9,722 bytes, line 2
2(n[s]=r[s])}return n},writable:!0,configurable:!0}),function(){if("undefined"==typeof window||"function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}()},void 0===(r="function"==typeof i?i.call(t,n,t,e):i)||(e.exports=r)},992:function(e,t){!function(e){"use strict";var t=function(e){return e instanceof HTMLElement},n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=Object.assign({},e),r=[],s=[],o=function(){var e=[].concat(s);s.length=0,e.forEach((function(e){var t=e.type,n=e.data;a(t,n)}))},a=function(e,t,n){!n||document.hidden?(d[e]&&d[e](t),r.push({type:e,data:t})):s.push({type:e,data:t})},l=function(e){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return u[e]?(t=u)[e].apply(t,i):null},c={getState:function(){return Object.assign({},i)},processActionQueue:function(){var e=[].concat(r);return r.length=0,e},processDispatchQueue:o,dispatch:a,query:l},u={};t.forEach((function(e){u=Object.assign({},e(i),{},u)}));var d={};return n.forEach((function(e){d=Object.assign({},e(a,l,i),{},d)})),c},i=function(e,t,n){"function"!=typeof n?Object.defineProperty(e,t,Object.assign({},n)):e[t]=n},r=function(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])},s=function(e){var t={};return r(e,(function(n){i(t,n,e[n])})),t},o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null===n)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},a="http://www.w3.org/2000/svg",l=["svg","path"],c=function(e){return l.includes(e)},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof t&&(n=t,t=null);var i=c(e)?document.createElementNS(a,e):document.createElement(e);return t&&(c(e)?o(i,"class",t):i.className=t),r(n,(function(e,t){o(i,e,t)})),i},d=function(e){return function(t,n){void 0!==n&&e.children[n]?e.insertBefore(t,e.children[n]):e.appendChild(t)}},h=function(e,t){return function(e,n){return void 0!==n?t.splice(n,0,e):t.push(e),e}},f=function(e,t){return function(n){return t.splice(t.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n}},p="undefined"!=typeof window&&void 0!==window.document,m=function(){return p},g="children"in(m()?u("svg"):{})?function(e){return e.children.length}:function(e){return e.childNodes.length},v=function(e,t,n,i){var r=n[0]||e.left,s=n[1]||e.top,o=r+e.width,a=s+e.height*(i[1]||1),l={element:Object.assign({},e),inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:r,top:s,right:o,bottom:a}};return t.filter((function(e){return!e.isRectIgnored()})).map((function(e){return e.rect})).forEach((function(e){y(l.inner,Object.assign({},e.inner)),y(l.outer,Object.assign({},e.outer))})),b(l.inner),l.outer.bottom+=l.element.marginBottom,l.outer.right+=l.element.marginRight,b(l.outer),l},y=function(e,t){t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},b=function(e){e.width=e.right-e.left,e.height=e.bottom-e.top},_=function(e){return"number"==typeof e},E=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(e-t)<i&&Math.abs(n)<i},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiffness,n=void 0===t?.5:t,i=e.damping,r=void 0===i?.75:i,o=e.mass,a=void 0===o?10:o,l=null,c=null,u=0,d=!1,h=s({interpolate:function(e,t){if(!d){if(!_(l)||!_(c))return d=!0,void(u=0);E(c+=u+=-(c-l)*n/a,l,u*=r)||t?(c=l,u=0,d=!0,h.onupdate(c),h.oncomplete(c)):h.onupdate(c)}},target:{set:function(e){if(_(e)&&!_(c)&&(c=e),null===l&&(l=e,c=e),c===(l=e)||void 0===l)return d=!0,u=0,h.onupdate(c),void h.oncomplete(c);d=!1},get:function(){return l}},resting:{get:function(){return d}},onupdate:function(e){},oncomplete:function(e){}});return h},x=function(e){return e<.5?2*e*e:(4-2*e)*e-1},T=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.duration,r=void 0===i?500:i,o=n.easing,a=void 0===o?x:o,l=n.delay,c=void 0===l?0:l,u=null,d=!0,h=!1,f=null,p=s({interpolate:function(n,i){d||null===f||(null===u&&(u=n),n-u<c||((e=n-u-c)>=r||i?(e=1,t=h?0:1,p.onupdate(t*f),p.oncomplete(t*f),d=!0):(t=e/r,p.onupdate((e>=0?a(h?1-t:t):0)*f))))},target:{get:function(){return h?0:f},set:function(e){if(null===f)return f=e,p.onupdate(e),void p.oncomplete(e);e<f?(f=1,h=!0):(h=!1,f=e),d=!1,u=null}},resting:{get:function(){return d}},onupdate:function(e){},oncomplete:function(e){}});return p},S={spring:w,tween:T},L=function(e,t,n){var i=e[t]&&"object"==typeof e[t][n]?e[t][n]:e[t]||e,r="string"==typeof i?i:i.type,s="object"==typeof i?Object.assign({},i):{};return S[r]?S[r](s):null},I=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(t=Array.isArray(t)?t:[t]).forEach((function(t){e.forEach((function(e){var r=e,s=function(){return n[e]},o=function(t){return n[e]=t};"object"==typeof e&&(r=e.key,s=e.getter||s,o=e.setter||o),t[r]&&!i||(t[r]={get:s,set:o})}))}))},C=function(e){return function(t,n){e.addEventListener(t,n)}},O=function(e){return function(t,n){e.removeEventListener(t,n)}},A=function(e){return null!=e},M={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},k=function(e){var t=e.mixinConfig,n=e.viewProps,i=e.viewInternalAPI,r=e.viewExternalAPI,s=e.view,o=Object.assign({},n),a={};I(t,[i,r],n);var l=function(){return[n.translateX||0,n.translateY||0]},c=function(){return[n.scaleX||0,n.scaleY||0]},u=function(){return s.rect?v(s.rect,s.childViews,l(),c()):null};return i.rect={get:u},r.rect={get:u},t.forEach((function(e){n[e]=void 0===o[e]?M[e]:o[e]})),{write:function(){if(P(a,n))return R(s.element,n),Object.assign(a,Object.assign({},n)),!0},destroy:function(){}}},P=function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(var n in t)if(t[n]!==e[n])return!0;return!1},R=function(e,t){var n=t.opacity,i=t.perspective,r=t.translateX,s=t.translateY,o=t.scaleX,a=t.scaleY,l=t.rotateX,c=t.rotateY,u=t.rotateZ,d=t.originX,h=t.originY,f=t.width,p=t.height,m="",g="";(A(d)||A(h))&&(g+="transform-origin: "+(d||0)+"px "+(h||0)+"px;"),A(i)&&(m+="perspective("+i+"px) "),(A(r)||A(s))&&(m+="translate3d("+(r||0)+"px, "+(s||0)+"px, 0) "),(A(o)||A(a))&&(m+="scale3d("+(A(o)?o:1)+", "+(A(a)?a:1)+", 1) "),A(u)&&(m+="rotateZ("+u+"rad) "),A(l)&&(m+="rotateX("+l+"rad) "),A(c)&&(m+="rotateY("+c+"rad) "),m.length&&(g+="transform:"+m+";"),A(n)&&(g+="opacity:"+n+";",0===n&&(g+="visibility:hidden;"),n<1&&(g+="pointer-events:none;")),A(p)&&(g+="height:"+p+"px;"),A(f)&&(g+="width:"+f+"px;");var v=e.elementCurrentStyle||"";g.length===v.length&&g===v||(e.style.cssText=g,e.elementCurrentStyle=g)},D={styles:k,listeners:function(e){e.mixinConfig,e.viewProps,e.viewInternalAPI;var t=e.viewExternalAPI,n=(e.viewState,e.view),i=[],r=C(n.element),s=O(n.element);return t.on=function(e,t){i.push({type:e,fn:t}),r(e,t)},t.off=function(e,t){i.splice(i.findIndex((function(n){return n.type===e&&n.fn===t})),1),s(e,t)},{write:function(){return!0},destroy:function(){i.forEach((function(e){s(e.type,e.fn)}))}}},animations:function(e){var t=e.mixinConfig,n=e.viewProps,i=e.viewInternalAPI,s=e.viewExternalAPI,o=Object.assign({},n),a=[];return r(t,(function(e,t){var r=L(t);r&&(r.onupdate=function(t){n[e]=t},r.target=o[e],I([{key:e,setter:function(e){r.target!==e&&(r.target=e)},getter:function(){return n[e]}}],[i,s],n,!0),a.push(r))})),{write:function(e){var t=document.hidden,n=!0;return a.forEach((function(i){i.resting||(n=!1),i.interpolate(e,t)})),n},destroy:function(){}}},apis:function(e){var t=e.mixinConfig,n=e.viewProps,i=e.viewExternalAPI;I(t,i,n)}},N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,t.layoutCalculated=!0),e.left=t.offsetLeft||0,e.top=t.offsetTop||0,e.width=t.offsetWidth||0,e.height=t.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=t.scrollTop,e.hidden=null===t.offsetParent,e},$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tag,n=void 0===t?"div":t,i=e.name,r=void 0===i?null:i,o=e.attributes,a=void 0===o?{}:o,l=e.read,c=void 0===l?function(){}:l,p=e.write,m=void 0===p?function(){}:p,y=e.create,b=void 0===y?function(){}:y,_=e.destroy,E=void 0===_?function(){}:_,w=e.filterFrameActionsForChild,x=void 0===w?function(e,t){return t}:w,T=e.didCreateView,S=void 0===T?function(){}:T,L=e.didWriteView,I=void 0===L?function(){}:L,C=e.ignoreRect,O=void 0!==C&&C,A=e.ignoreRectUpdate,M=void 0!==A&&A,k=e.mixins,P=void 0===k?[]:k;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=u(n,"filepond--"+r,a),o=window.getComputedStyle(i,null),l=N(),p=null,y=!1,_=[],w=[],T={},L={},C=[m],A=[c],k=[E],R=function(){return i},$=function(){return _.concat()},F=function(){return T},B=function(e){return function(t,n){return t(e,n)}},j=function(){return p||(p=v(l,_,[0,0],[1,1]))},q=function(){p=null,_.forEach((function(e){return e._read()})),!(M&&l.width&&l.height)&&N(l,i,o);var e={root:Y,props:t,rect:l};A.forEach((function(t){return t(e)}))},V=function(e,n,i){var r=0===n.length;
2return C.forEach((function(s){!1===s({props:t,root:Y,actions:n,timestamp:e,shouldOptimize:i})&&(r=!1)})),w.forEach((function(t){!1===t.write(e)&&(r=!1)})),_.filter((function(e){return!!e.element.parentNode})).forEach((function(t){t._write(e,x(t,n),i)||(r=!1)})),_.forEach((function(t,s){t.element.parentNode||(Y.appendChild(t.element,s),t._read(),t._write(e,x(t,n),i),r=!1)})),y=r,I({props:t,root:Y,actions:n,timestamp:e}),r},G=function(){w.forEach((function(e){return e.destroy()})),k.forEach((function(e){e({root:Y,props:t})})),_.forEach((function(e){return e._destroy()}))},z={element:{get:R},style:{get:function(){return o}},childViews:{get:$}},U=Object.assign({},z,{rect:{get:j},ref:{get:F},is:function(e){return r===e},appendChild:d(i),createChildView:B(e),linkView:function(e){return _.push(e),e},unlinkView:function(e){_.splice(_.indexOf(e),1)},appendChildView:h(i,_),removeChildView:f(i,_),registerWriter:function(e){return C.push(e)},registerReader:function(e){return A.push(e)},registerDestroyer:function(e){return k.push(e)},invalidateLayout:function(){return i.layoutCalculated=!1},dispatch:e.dispatch,query:e.query}),H={element:{get:R},childViews:{get:$},rect:{get:j},resting:{get:function(){return y}},isRectIgnored:function(){return O},_read:q,_write:V,_destroy:G},W=Object.assign({},z,{rect:{get:function(){return l}}});Object.keys(P).sort((function(e,t){return"styles"===e?1:"styles"===t?-1:0})).forEach((function(e){var n=D[e]({mixinConfig:P[e],viewProps:t,viewState:L,viewInternalAPI:U,viewExternalAPI:H,view:s(W)});n&&w.push(n)}));var Y=s(U);b({root:Y,props:t});var X=g(i);return _.forEach((function(e,t){Y.appendChild(e.element,X+t)})),S(Y),s(H)}},F=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,i="__framePainter";if(window[i])return window[i].readers.push(e),void window[i].writers.push(t);window[i]={readers:[e],writers:[t]};var r=window[i],s=1e3/n,o=null,a=null,l=null,c=null,u=function(){document.hidden?(l=function(){return window.setTimeout((function(){return d(performance.now())}),s)},c=function(){return window.clearTimeout(a)}):(l=function(){return window.requestAnimationFrame(d)},c=function(){return window.cancelAnimationFrame(a)})};document.addEventListener("visibilitychange",(function(){c&&c(),u(),d(performance.now())}));var d=function e(t){a=l(e),o||(o=t);var n=t-o;n<=s||(o=t-n%s,r.readers.forEach((function(e){return e()})),r.writers.forEach((function(e){return e(t)})))};return u(),d(performance.now()),{pause:function(){c(a)}}},B=function(e,t){return function(n){var i=n.root,r=n.props,s=n.actions,o=void 0===s?[]:s,a=n.timestamp,l=n.shouldOptimize;o.filter((function(t){return e[t.type]})).forEach((function(t){return e[t.type]({root:i,props:r,action:t.data,timestamp:a,shouldOptimize:l})})),t&&t({root:i,props:r,actions:o,timestamp:a,shouldOptimize:l})}},j=function(e,t){return t.parentNode.insertBefore(e,t)},q=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},V=function(e){return Array.isArray(e)},G=function(e){return null==e},z=function(e){return e.trim()},U=function(e){return""+e},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return G(e)?[]:V(e)?e:U(e).split(t).map(z).filter((function(e){return e.length}))},W=function(e){return"boolean"==typeof e},Y=function(e){return W(e)?e:"true"===e},X=function(e){return"string"==typeof e},K=function(e){return _(e)?e:X(e)?U(e).replace(/[a-z]+/gi,""):0},Q=function(e){return parseInt(K(e),10)},J=function(e){return parseFloat(K(e))},Z=function(e){return _(e)&&isFinite(e)&&Math.floor(e)===e},ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(Z(e))return e;var n=U(e).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,"").trim(),Q(n)*t*t):/KB/i.test(n)?(n=n.replace(/KB$i/,"").trim(),Q(n)*t):Q(n)},te=function(e){return"function"==typeof e},ne=function(e){for(var t=self,n=e.split("."),i=null;i=n.shift();)if(!(t=t[i]))return null;return t},ie={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},re=function(e){var t={};return t.url=X(e)?e:e.url||"",t.timeout=e.timeout?parseInt(e.timeout,10):0,t.headers=e.headers?e.headers:{},r(ie,(function(n){t[n]=se(n,e[n],ie[n],t.timeout,t.headers)})),t.process=e.process||X(e)||e.url?t.process:null,t.remove=e.remove||null,delete t.headers,t},se=function(e,t,n,i,r){if(null===t)return null;if("function"==typeof t)return t;var s={url:"GET"===n||"PATCH"===n?"?"+e+"=":"",method:n,headers:r,withCredentials:!1,timeout:i,onload:null,ondata:null,onerror:null};if(X(t))return s.url=t,s;if(Object.assign(s,t),X(s.headers)){var o=s.headers.split(/:(.+)/);s.headers={header:o[0],value:o[1]}}return s.withCredentials=Y(s.withCredentials),s},oe=function(e){return null===e},ae=function(e){return"object"==typeof e&&null!==e},le=function(e){return ae(e)&&X(e.url)&&ae(e.process)&&ae(e.revert)&&ae(e.restore)&&ae(e.fetch)},ce=function(e){return V(e)?"array":oe(e)?"null":Z(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":le(e)?"api":typeof e},ue=function(e){return e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",')},de={array:H,boolean:Y,int:function(e){return"bytes"===ce(e)?ee(e):Q(e)},number:J,float:J,bytes:ee,string:function(e){return te(e)?e:U(e)},function:function(e){return ne(e)},serverapi:function(e){return re(e)},object:function(e){try{return JSON.parse(ue(e))}catch(e){return null}}},he=function(e,t){return de[t](e)},fe=function(e,t,n){if(e===t)return e;var i=ce(e);if(i!==n){var r=he(e,n);if(i=ce(r),null===r)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+n+'"';e=r}return e},pe=function(e,t){var n=e;return{enumerable:!0,get:function(){return n},set:function(i){n=fe(i,e,t)}}},me=function(e){var t={};return r(e,(function(n){var i=e[n];t[n]=pe(i[0],i[1])})),s(t)},ge=function(e){return{items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:me(e)}},ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.split(/(?=[A-Z])/).map((function(e){return e.toLowerCase()})).join(t)},ye=function(e,t){var n={};return r(t,(function(t){n[t]={get:function(){return e.getState().options[t]},set:function(n){e.dispatch("SET_"+ve(t,"_").toUpperCase(),{value:n})}}})),n},be=function(e){return function(t,n,i){var s={};return r(e,(function(e){var n=ve(e,"_").toUpperCase();s["SET_"+n]=function(r){try{i.options[e]=r.value}catch(e){}t("DID_SET_"+n,{value:i.options[e]})}})),s}},_e=function(e){return function(t){var n={};return r(e,(function(e){n["GET_"+ve(e,"_").toUpperCase()]=function(n){return t.options[e]}})),n}},Ee={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},we=function(){return Math.random().toString(36).substring(2,11)};function xe(e){this.wrapped=e}function Te(e){var t,n;function i(e,i){return new Promise((function(s,o){var a={key:e,arg:i,resolve:s,reject:o,next:null};n?n=n.next=a:(t=n=a,r(e,i))}))}function r(t,n){try{var i=e[t](n),o=i.value,a=o instanceof xe;Promise.resolve(a?o.wrapped:o).then((function(e){a?r("next",e):s(i.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(e){s("throw",e)}}function s(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}
2this._invoke=i,"function"!=typeof e.return&&(this.return=void 0)}function Se(e,t){if(null==e)return{};var n,i,r={},s=Object.keys(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}function Le(e,t){if(null==e)return{};var n,i,r=Se(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ie(e){return Ce(e)||Oe(e)||Ae()}function Ce(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function Oe(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function Ae(){throw new TypeError("Invalid attempt to spread non-iterable instance")}"function"==typeof Symbol&&Symbol.asyncIterator&&(Te.prototype[Symbol.asyncIterator]=function(){return this}),Te.prototype.next=function(e){return this._invoke("next",e)},Te.prototype.throw=function(e){return this._invoke("throw",e)},Te.prototype.return=function(e){return this._invoke("return",e)};var Me=function(e,t){return e.splice(t,1)},ke=function(e,t){t?e():document.hidden?Promise.resolve(1).then(e):setTimeout(e,0)},Pe=function(){var e=[],t=function(t,n){Me(e,e.findIndex((function(e){return e.event===t&&(e.cb===n||!n)})))},n=function(t,n,i){e.filter((function(e){return e.event===t})).map((function(e){return e.cb})).forEach((function(e){return ke((function(){return e.apply(void 0,Ie(n))}),i)}))};return{fireSync:function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];n(e,i,!0)},fire:function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];n(e,i,!1)},on:function(t,n){e.push({event:t,cb:n})},onOnce:function(n,i){e.push({event:n,cb:function(){t(n,i),i.apply(void 0,arguments)}})},off:t}},Re=function(e,t,n){Object.getOwnPropertyNames(e).filter((function(e){return!n.includes(e)})).forEach((function(n){return Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))},De=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],Ne=function(e){var t={};return Re(e,t,De),t},$e=function(e){e.forEach((function(t,n){t.released&&Me(e,n)}))},Fe={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},Be={INPUT:1,LIMBO:2,LOCAL:3},je=function(e){return/[^0-9]+/.exec(e)},qe=function(){return je(1.1.toLocaleString())[0]},Ve=function(){var e=qe(),t=1e3.toLocaleString();return t!==1e3.toString()?je(t)[0]:"."===e?",":"."},Ge={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},ze=[],Ue=function(e,t,n){return new Promise((function(i,r){var s=ze.filter((function(t){return t.key===e})).map((function(e){return e.cb}));if(0!==s.length){var o=s.shift();s.reduce((function(e,t){return e.then((function(e){return t(e,n)}))}),o(t,n)).then((function(e){return i(e)})).catch((function(e){return r(e)}))}else i(t)}))},He=function(e,t,n){return ze.filter((function(t){return t.key===e})).map((function(e){return e.cb(t,n)}))},We=function(e,t){return ze.push({key:e,cb:t})},Ye=function(e){return Object.assign(Qe,e)},Xe=function(){return Object.assign({},Qe)},Ke=function(e){r(e,(function(e,t){Qe[e]&&(Qe[e][0]=fe(t,Qe[e][0],Qe[e][1]))}))},Qe={id:[null,Ge.STRING],name:["filepond",Ge.STRING],disabled:[!1,Ge.BOOLEAN],className:[null,Ge.STRING],required:[!1,Ge.BOOLEAN],captureMethod:[null,Ge.STRING],allowSyncAcceptAttribute:[!0,Ge.BOOLEAN],allowDrop:[!0,Ge.BOOLEAN],allowBrowse:[!0,Ge.BOOLEAN],allowPaste:[!0,Ge.BOOLEAN],allowMultiple:[!1,Ge.BOOLEAN],allowReplace:[!0,Ge.BOOLEAN],allowRevert:[!0,Ge.BOOLEAN],allowRemove:[!0,Ge.BOOLEAN],allowProcess:[!0,Ge.BOOLEAN],allowReorder:[!1,Ge.BOOLEAN],allowDirectoriesOnly:[!1,Ge.BOOLEAN],storeAsFile:[!1,Ge.BOOLEAN],forceRevert:[!1,Ge.BOOLEAN],maxFiles:[null,Ge.INT],checkValidity:[!1,Ge.BOOLEAN],itemInsertLocationFreedom:[!0,Ge.BOOLEAN],itemInsertLocation:["before",Ge.STRING],itemInsertInterval:[75,Ge.INT],dropOnPage:[!1,Ge.BOOLEAN],dropOnElement:[!0,Ge.BOOLEAN],dropValidation:[!1,Ge.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],Ge.ARRAY],instantUpload:[!0,Ge.BOOLEAN],maxParallelUploads:[2,Ge.INT],allowMinimumUploadDuration:[!0,Ge.BOOLEAN],chunkUploads:[!1,Ge.BOOLEAN],chunkForce:[!1,Ge.BOOLEAN],chunkSize:[5e6,Ge.INT],chunkRetryDelays:[[500,1e3,3e3],Ge.ARRAY],server:[null,Ge.SERVER_API],fileSizeBase:[1e3,Ge.INT],labelFileSizeBytes:["bytes",Ge.STRING],labelFileSizeKilobytes:["KB",Ge.STRING],labelFileSizeMegabytes:["MB",Ge.STRING],labelFileSizeGigabytes:["GB",Ge.STRING],labelDecimalSeparator:[qe(),Ge.STRING],labelThousandsSeparator:[Ve(),Ge.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>
2',Ge.STRING],labelInvalidField:["Field contains invalid files",Ge.STRING],labelFileWaitingForSize:["Waiting for size",Ge.STRING],labelFileSizeNotAvailable:["Size not available",Ge.STRING],labelFileCountSingular:["file in list",Ge.STRING],labelFileCountPlural:["files in list",Ge.STRING],labelFileLoading:["Loading",Ge.STRING],labelFileAdded:["Added",Ge.STRING],labelFileLoadError:["Error during load",Ge.STRING],labelFileRemoved:["Removed",Ge.STRING],labelFileRemoveError:["Error during remove",Ge.STRING],labelFileProcessing:["Uploading",Ge.STRING],labelFileProcessingComplete:["Upload complete",Ge.STRING],labelFileProcessingAborted:["Upload cancelled",Ge.STRING],labelFileProcessingError:["Error during upload",Ge.STRING],labelFileProcessingRevertError:["Error during revert",Ge.STRING],labelTapToCancel:["tap to cancel",Ge.STRING],labelTapToRetry:["tap to retry",Ge.STRING],labelTapToUndo:["tap to undo",Ge.STRING],labelButtonRemoveItem:["Remove",Ge.STRING],labelButtonAbortItemLoad:["Abort",Ge.STRING],labelButtonRetryItemLoad:["Retry",Ge.STRING],labelButtonAbortItemProcessing:["Cancel",Ge.STRING],labelButtonUndoItemProcessing:["
2Undo",Ge.STRING],labelButtonRetryItemProcessing:["Retry",Ge.STRING],labelButtonProcessItem:["Upload",Ge.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',Ge.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',Ge.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',Ge.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',Ge.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',Ge.STRING],oninit:[null,Ge.FUNCTION],onwarning:[null,Ge.FUNCTION],onerror:[null,Ge.FUNCTION],onactivatefile:[null,Ge.FUNCTION],oninitfile:[null,Ge.FUNCTION],onaddfilestart:[null,Ge.FUNCTION],onaddfileprogress:[null,Ge.FUNCTION],onaddfile:[null,Ge.FUNCTION],onprocessfilestart:[null,Ge.FUNCTION],onprocessfileprogress:[null,Ge.FUNCTION],onprocessfileabort:[null,Ge.FUNCTION],onprocessfilerevert:[null,Ge.FUNCTION],onprocessfile:[null,Ge.FUNCTION],onprocessfiles:[null,Ge.FUNCTION],onremovefile:[null,Ge.FUNCTION],onpreparefile:[null,Ge.FUNCTION],onupdatefiles:[null,Ge.FUNCTION],onreorderfiles:[null,Ge.FUNCTION],beforeDropFile:[null,Ge.FUNCTION],beforeAddFile:[null,Ge.FUNCTION],beforeRemoveFile:[null,Ge.FUNCTION],beforePrepareFile:[null,Ge.FUNCTION],stylePanelLayout:[null,Ge.STRING],stylePanelAspectRatio:[null,Ge.STRING],styleItemPanelAspectRatio:[null,Ge.STRING],styleButtonRemoveItemPosition:["left",Ge.STRING],styleButtonProcessItemPosition:["right",Ge.STRING],styleLoadIndicatorPosition:["right",Ge.STRING],styleProgressIndicatorPosition:["right",Ge.STRING],styleButtonRemoveItemAlign:[!1,Ge.BOOLEAN],files:[[],Ge.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],Ge.ARRAY]},Je=function(e,t){return G(t)?e[0]||null:Z(t)?e[t]||null:("object"==typeof t&&(t=t.id),e.find((function(e){return e.id===t}))||null)},Ze=function(e){if(G(e))return e;if(/:/.test(e)){var t=e.split(":");return t[1]/t[0]}return parseFloat(e)},et=function(e){return e.filter((function(e){return!e.archived}))},tt={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},nt=null,it=function(){if(null===nt)try{var e=new DataTransfer;e.items.add(new File(["hello world"],"This_Works.txt"));var t=document.createElement("input");t.setAttribute("type","file"),t.files=e.files,nt=1===t.files.length}catch(e){nt=!1}return nt},rt=[Fe.LOAD_ERROR,Fe.PROCESSING_ERROR,Fe.PROCESSING_REVERT_ERROR],st=[Fe.LOADING,Fe.PROCESSING,Fe.PROCESSING_QUEUED,Fe.INIT],ot=[Fe.PROCESSING_COMPLETE],at=function(e){return rt.includes(e.status)},lt=function(e){return st.includes(e.status)},ct=function(e){return ot.includes(e.status)},ut=function(e){return ae(e.options.server)&&(ae(e.options.server.process)||te(e.options.server.process))}
vendor: 13,430 bytes, line 2
2,dt=function(e){return{GET_STATUS:function(){var t=et(e.items),n=tt.EMPTY,i=tt.ERROR,r=tt.BUSY,s=tt.IDLE,o=tt.READY;return 0===t.length?n:t.some(at)?i:t.some(lt)?r:t.some(ct)?o:s},GET_ITEM:function(t){return Je(e.items,t)},GET_ACTIVE_ITEM:function(t){return Je(et(e.items),t)},GET_ACTIVE_ITEMS:function(){return et(e.items)},GET_ITEMS:function(){return e.items},GET_ITEM_NAME:function(t){var n=Je(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:function(t){var n=Je(e.items,t);return n?n.fileSize:null},GET_STYLES:function(){return Object.keys(e.options).filter((function(e){return/^style/.test(e)})).map((function(t){return{name:t,value:e.options[t]}}))},GET_PANEL_ASPECT_RATIO:function(){return/circle/.test(e.options.stylePanelLayout)?1:Ze(e.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return e.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return et(e.items).filter((function(e){return e.status===t}))},GET_TOTAL_ITEMS:function(){return et(e.items).length},SHOULD_UPDATE_FILE_INPUT:function(){return e.options.storeAsFile&&it()&&!ut(e)},IS_ASYNC:function(){return ut(e)},GET_FILE_SIZE_LABELS:function(e){return{labelBytes:e("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:e("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:e("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:e("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0}}}},ht=function(e){var t=et(e.items).length;if(!e.options.allowMultiple)return 0===t;var n=e.options.maxFiles;return null===n||t<n},ft=function(e,t,n){return Math.max(Math.min(n,e),t)},pt=function(e,t,n){return e.splice(t,0,n)},mt=function(e,t,n){return G(t)?null:void 0===n?(e.push(t),t):(n=ft(n,0,e.length),pt(e,n,t),t)},gt=function(e){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e)},vt=function(e){return(""+e).split("/").pop().split("?").shift()},yt=function(e){return e.split(".").pop()},bt=function(e){if("string"!=typeof e)return"";var t=e.split("/").pop();return/svg/.test(t)?"svg":/zip|compressed/.test(t)?"zip":/plain/.test(t)?"txt":/msword/.test(t)?"doc":/[a-z]+/.test(t)?"jpeg"===t?"jpg":t:""},_t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(t+e).slice(-t.length)},Et=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return e.getFullYear()+"-"+_t(e.getMonth()+1,"00")+"-"+_t(e.getDate(),"00")+"_"+_t(e.getHours(),"00")+"-"+_t(e.getMinutes(),"00")+"-"+_t(e.getSeconds(),"00")},wt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r="string"==typeof n?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return r.lastModifiedDate=new Date,e._relativePath&&(r._relativePath=e._relativePath),X(t)||(t=Et()),t&&null===i&&yt(t)?r.name=t:(i=i||bt(r.type),r.name=t+(i?"."+i:"")),r},xt=function(){return window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder},Tt=function(e,t){var n=xt();if(n){var i=new n;return i.append(e),i.getBlob(t)}return new Blob([e],{type:t})},St=function(e,t){for(var n=new ArrayBuffer(e.length),i=new Uint8Array(n),r=0;r<e.length;r++)i[r]=e.charCodeAt(r);return Tt(n,t)},Lt=function(e){return(/^data:(.+);/.exec(e)||[])[1]||null},It=function(e){return e.split(",")[1].replace(/\s/g,"")},Ct=function(e){return atob(It(e))},Ot=function(e){var t=Lt(e),n=Ct(e);return St(n,t)},At=function(e,t,n){return wt(Ot(e),t,null,n)},Mt=function(e){if(!/^content-disposition:/i.test(e))return null;var t=e.split(/filename=|filename\*=.+''/).splice(1).map((function(e){return e.trim().replace(/^["']|[;"']{0,2}$/g,"")})).filter((function(e){return e.length}));return t.length?decodeURI(t[t.length-1]):null},kt=function(e){if(/content-length:/i.test(e)){var t=e.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},Pt=function(e){return/x-content-transfer-id:/i.test(e)&&(e.split(":")[1]||"").trim()||null},Rt=function(e){var t={source:null,name:null,size:null},n=e.split("\n"),i=!0,r=!1,s=void 0;try{for(var o,a=n[Symbol.iterator]();!(i=(o=a.next()).done);i=!0){var l=o.value,c=Mt(l);if(c)t.name=c;else{var u=kt(l);if(u)t.size=u;else{var d=Pt(l);d&&(t.source=d)}}}}catch(e){r=!0,s=e}finally{try{i||null==a.return||a.return()}finally{if(r)throw s}}return t},Dt=function(e){var t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},n=function(){return t.progress},i=function(){t.request&&t.request.abort&&t.request.abort()},r=function(){var e=t.source;o.fire("init",e),e instanceof File?o.fire("load",e):e instanceof Blob?o.fire("load",wt(e,e.name)):gt(e)?o.fire("load",At(e)):s(e)},s=function(n){e?(t.timestamp=Date.now(),t.request=e(n,(function(e){t.duration=Date.now()-t.timestamp,t.complete=!0,e instanceof Blob&&(e=wt(e,e.name||vt(n))),o.fire("load",e instanceof Blob?e:e?e.body:null)}),(function(e){o.fire("error","string"==typeof e?{type:"error",code:0,body:e}:e)}),(function(e,n,i){i&&(t.size=i),t.duration=Date.now()-t.timestamp,e?(t.progress=n/i,o.fire("progress",t.progress)):t.progress=null}),(function(){o.fire("abort")}),(function(e){var n=Rt("string"==typeof e?e:e.headers);o.fire("meta",{size:t.size||n.size,filename:n.name,source:n.source})}))):o.fire("error",{type:"error",body:"Can't load URL",code:400})},o=Object.assign({},Pe(),{setSource:function(e){return t.source=e},getProgress:n,abort:i,load:r});return o},Nt=function(e){return/GET|HEAD/.test(e)},$t=function(e,t,n){var i={onheaders:function(){},onprogress:function(){},onload:function(){},ontimeout:function(){},onerror:function(){},onabort:function(){},abort:function(){r=!0,o.abort()}},r=!1,s=!1;n=Object.assign({method:"POST",headers:{},withCredentials:!1},n),t=encodeURI(t),Nt(n.method)&&e&&(t=""+t+encodeURIComponent("string"==typeof e?e:JSON.stringify(e)));var o=new XMLHttpRequest;return(Nt(n.method)?o:o.upload).onprogress=function(e){r||i.onprogress(e.lengthComputable,e.loaded,e.total)},o.onreadystatechange=function(){o.readyState<2||4===o.readyState&&0===o.status||s||(s=!0,i.onheaders(o))},o.onload=function(){o.status>=200&&o.status<300?i.onload(o):i.onerror(o)},o.onerror=function(){return i.onerror(o)},o.onabort=function(){r=!0,i.onabort()},o.ontimeout=function(){return i.ontimeout(o)},o.open(n.method,t,!0),Z(n.timeout)&&(o.timeout=n.timeout),Object.keys(n.headers).forEach((function(e){var t=unescape(encodeURIComponent(n.headers[e]));o.setRequestHeader(e,t)})),n.responseType&&(o.responseType=n.responseType),n.withCredentials&&(o.withCredentials=!0),o.send(e),i},Ft=function(e,t,n,i){return{type:e,code:t,body:n,headers:i}},Bt=function(e){return function(t){e(Ft("error",0,"Timeout",t.getAllResponseHeaders()))}},jt=function(e){return/\?/.test(e)},qt=function(){for(var e="",t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){e+=jt(e)&&jt(t)?t.replace(/\?/,"&"):t})),e},Vt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!X(t.url))return null;var n=t.onload||function(e){return e},i=t.onerror||function(e){return null};return function(r,s,o,a,l,c){var u=$t(r,qt(e,t.url),Object.assign({},t,{responseType:"blob"}));return u.onload=function(e){var i=e.getAllResponseHeaders(),o=Rt(i).name||vt(r);s(Ft("load",e.status,"HEAD"===t.method?null:wt(n(e.response),o),i))},u.onerror=function(e){o(Ft("error",e.status,i(e.response)||e.statusText,e.getAllResponseHeaders()))},u.onheaders=function(e){c(Ft("headers",e.status,null,e.getAllResponseHeaders()))},u.ontimeout=Bt(o),u.onprogress=a,u.onabort=l,u}},Gt={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},zt=function(e,t,n,i,r,s,o,a,l,c,u){for(var d=[],h=u.chunkTransferId,f=u.chunkServer,p=u.chunkSize,m=u.chunkRetryDelays,g={serverId:h,aborted:!1},v=t.ondata||function(e){return e},y=t.onload||function(e,t){return"HEAD"===t?e.getResponseHeader("Upload-Offset"):e.response},b=t.onerror||function(e){return null},_=function(s){var a=new FormData;ae(r)&&a.append(n,JSON.stringify(r));var l="function"==typeof t.headers?t.headers(i,r):Object.assign({},t.headers,{"Upload-Length":i.size}),c=Object.assign({},t,{headers:l}),u=$t(v(a),qt(e,t.url),c);u.onload=function(e){return s(y(e,c.method))},u.onerror=function(e){return o(Ft("error",e.status,b(e.response)||e.statusText,e.getAllResponseHeaders()))},u.ontimeout=Bt(o)},E=function(n){var i=qt(e,f.url,g.serverId),r={headers:"function"==typeof t.headers?t.headers(g.serverId):Object.assign({},t.headers),method:"HEAD"},s=$t(null,i,r);s.onload=function(e){return n(y(e,r.method))},s.onerror=function(e){return o(Ft("error",e.status,b(e.response)||e.statusText,e.getAllResponseHeaders()))},s.ontimeout=Bt(o)},w=Math.floor(i.size/p),x=0;x<=w;x++){var T=x*p,S=i.slice(T,T+p,"application/offset+octet-stream");d[x]={index:x,size:S.size,offset:T,data:S,file:i,progress:0,retries:Ie(m),status:Gt.QUEUED,error:null,request:null,timeout:null}}var L=function(){return s(g.serverId)},I=function(e){return e.status===Gt.QUEUED||e.status===Gt.ERROR},C=function(t){if(!g.aborted)if(t=t||d.find(I)){t.status=Gt.PROCESSING,t.progress=null;var n=f.ondata||function(e){return e},r=f.onerror||function(e){return null},s=qt(e,f.url,g.serverId),a="function"==typeof f.headers?f.headers(t):Object.assign({},f.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":t.offset,"Upload-Length":i.size,"Upload-Name":i.name}),c=t.request=$t(n(t.data),s,Object.assign({},f,{headers:a}));c.onload=function(){t.status=Gt.COMPLETE,t.request=null,M()},c.onprogress=function(e,n,i){t.progress=e?n:null,A()},c.onerror=function(e){t.status=Gt.ERROR,t.request=null,t.error=r(e.response)||e.statusText,O(t)||o(Ft("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},c.ontimeout=function(e){t.status=Gt.ERROR,t.request=null,O(t)||Bt(o)(e)},c.onabort=function(){t.status=Gt.QUEUED,t.request=null,l()}}else d.every((function(e){return e.status===Gt.COMPLETE}))&&L()},O=function(e){return 0!==e.retries.length&&(e.status=Gt.WAITING,clearTimeout(e.timeout),e.timeout=setTimeout((function(){C(e)}),e.retries.shift()),!0)},A=function(){var e=d.reduce((function(e,t){return null===e||null===t.progress?null:e+t.progress}),0);if(null===e)return a(!1,0,0);var t=d.reduce((function(e,t){return e+t.size}),0);a(!0,e,t)},M=function(){d.filter((function(e){return e.status===Gt.PROCESSING})).length>=1||C()},k=function(){d.forEach((function(e){clearTimeout(e.timeout),e.request&&e.request.abort()}))};return g.serverId?E((function(e){g.aborted||(d.filter((function(t){return t.offset<e})).forEach((function(e){e.status=Gt.COMPLETE,e.progress=e.size})),M())})):_((function(e){g.aborted||(c(e),g.serverId=e,M())})),{abort:function(){g.aborted=!0,k()}}},Ut=function(e,t,n,i){return function(r,s,o,a,l,c,u){if(r){var d=i.chunkUploads,h=d&&r.size>i.chunkSize,f=d&&(h||i.chunkForce);if(r instanceof Blob&&f)return zt(e,t,n,r,s,o,a,l,c,u,i);var p=t.ondata||function(e){return e},m=t.onload||function(e){return e},g=t.onerror||function(e){return null},v="function"==typeof t.headers?t.headers(r,s)||{}:Object.assign({},t.headers),y=Object.assign({},t,{headers:v}),b=new FormData;ae(s)&&b.append(n,JSON.stringify(s)),(r instanceof Blob?[{name:null,file:r}]:r).forEach((function(e){b.append(n,e.file,null===e.name?e.file.name:""+e.name+e.file.name)}));var _=$t(p(b),qt(e,t.url),y);return _.onload=function(e){o(Ft("load",e.status,m(e.response),e.getAllResponseHeaders()))},_.onerror=function(e){a(Ft("error",e.status,g(e.response)||e.statusText,e.getAllResponseHeaders()))},_.ontimeout=Bt(a),_.onprogress=l,_.onabort=c,_}}},Ht=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return"function"==typeof t?function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return t.apply(void 0,[n].concat(r,[i]))}:t&&X(t.url)?Ut(e,t,n,i):null},Wt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!X(t.url))return function(e,t){return t()};var n=t.onload||function(e){return e},i=t.onerror||function(e){return null};return function(r,s,o){var a=$t(r,e+t.url,t);return a.onload=function(e){s(Ft("load",e.status,n(e.response),e.getAllResponseHeaders()))},a.onerror=function(e){o(Ft("error",e.status,i(e.response)||e.statusText,e.getAllResponseHeaders()))},a.ontimeout=Bt(o),a}},Yt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e+Math.random()*(t-e)},Xt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,r=null,s=Date.now();return t>0&&function o(){var a=Date.now()-s,l=Yt(n,i);a+l>t&&(l=a+l-t);var c=a/t;c>=1||document.hidden?e(1):(e(c),r=setTimeout(o,l))}(),{clear:function(){clearTimeout(r)}}},Kt=function(e,t){var n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},i=t.allowMinimumUploadDuration,r=function(t,r){var s=function(){0!==n.duration&&null!==n.progress&&
2c.fire("progress",c.getProgress())},o=function(){n.complete=!0,c.fire("load-perceived",n.response.body)};c.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=Xt((function(e){n.perceivedProgress=e,n.perceivedDuration=Date.now()-n.timestamp,s(),n.response&&1===n.perceivedProgress&&!n.complete&&o()}),i?Yt(750,1500):0),n.request=e(t,r,(function(e){n.response=ae(e)?e:{type:"load",code:200,body:""+e,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,c.fire("load",n.response.body),(!i||i&&1===n.perceivedProgress)&&o()}),(function(e){n.perceivedPerformanceUpdater.clear(),c.fire("error",ae(e)?e:{type:"error",code:0,body:""+e})}),(function(e,t,i){n.duration=Date.now()-n.timestamp,n.progress=e?t/i:null,s()}),(function(){n.perceivedPerformanceUpdater.clear(),c.fire("abort",n.response?n.response.body:null)}),(function(e){c.fire("transfer",e)}))},s=function(){n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},o=function(){s(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null},a=i?function(){return n.progress?Math.min(n.progress,n.perceivedProgress):null}:function(){return n.progress||null},l=i?function(){return Math.min(n.duration,n.perceivedDuration)}:function(){return n.duration},c=Object.assign({},Pe(),{process:r,abort:s,getProgress:a,getDuration:l,reset:o});return c},Qt=function(e){return e.substring(0,e.lastIndexOf("."))||e},Jt=function(e){var t=[e.name,e.size,e.type];return e instanceof Blob||gt(e)?t[0]=e.name||Et():gt(e)?(t[1]=e.length,t[2]=Lt(e)):X(e)&&(t[0]=vt(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}},Zt=function(e){return!!(e instanceof File||e instanceof Blob&&e.name)},en=function e(t){if(!ae(t))return t;var n=V(t)?[]:{};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];n[i]=r&&ae(r)?e(r):r}return n},tn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=we(),r={archived:!1,frozen:!1,released:!1,source:null,file:n,serverFileReference:t,transferId:null,processingAborted:!1,status:t?Fe.PROCESSING_COMPLETE:Fe.INIT,activeLoader:null,activeProcessor:null},o=null,a={},l=function(e){return r.status=e},c=function(e){if(!r.released&&!r.frozen){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];x.fire.apply(x,[e].concat(n))}},u=function(){return yt(r.file.name)},d=function(){return r.file.type},h=function(){return r.file.size},f=function(){return r.file},p=function(t,n,i){r.source=t,x.fireSync("init"),r.file?x.fireSync("load-skip"):(r.file=Jt(t),n.on("init",(function(){c("load-init")})),n.on("meta",(function(t){r.file.size=t.size,r.file.filename=t.filename,t.source&&(e=Be.LIMBO,r.serverFileReference=t.source,r.status=Fe.PROCESSING_COMPLETE),c("load-meta")})),n.on("progress",(function(e){l(Fe.LOADING),c("load-progress",e)})),n.on("error",(function(e){l(Fe.LOAD_ERROR),c("load-request-error",e)})),n.on("abort",(function(){l(Fe.INIT),c("load-abort")})),n.on("load",(function(t){r.activeLoader=null;var n=function(t){r.file=Zt(t)?t:r.file,e===Be.LIMBO&&r.serverFileReference?l(Fe.PROCESSING_COMPLETE):l(Fe.IDLE),c("load")},s=function(e){r.file=t,c("load-meta"),l(Fe.LOAD_ERROR),c("load-file-error",e)};r.serverFileReference?n(t):i(t,n,s)})),n.setSource(t),r.activeLoader=n,n.load())},m=function(){r.activeLoader&&r.activeLoader.load()},g=function(){r.activeLoader?r.activeLoader.abort():(l(Fe.INIT),c("load-abort"))},v=function e(t,n){if(r.processingAborted)r.processingAborted=!1;else if(l(Fe.PROCESSING),o=null,r.file instanceof Blob){t.on("load",(function(e){r.transferId=null,r.serverFileReference=e})),t.on("transfer",(function(e){r.transferId=e})),t.on("load-perceived",(function(e){r.activeProcessor=null,r.transferId=null,r.serverFileReference=e,l(Fe.PROCESSING_COMPLETE),c("process-complete",e)})),t.on("start",(function(){c("process-start")})),t.on("error",(function(e){r.activeProcessor=null,l(Fe.PROCESSING_ERROR),c("process-error",e)})),t.on("abort",(function(e){r.activeProcessor=null,r.serverFileReference=e,l(Fe.IDLE),c("process-abort"),o&&o()})),t.on("progress",(function(e){c("process-progress",e)}));var i=function(e){r.archived||t.process(e,Object.assign({},a))},s=console.error;n(r.file,i,s),r.activeProcessor=t}else x.on("load",(function(){e(t,n)}))},y=function(){r.processingAborted=!1,l(Fe.PROCESSING_QUEUED)},b=function(){return new Promise((function(e){if(!r.activeProcessor)return r.processingAborted=!0,l(Fe.IDLE),c("process-abort"),void e();o=function(){e()},r.activeProcessor.abort()}))},_=function(e,t){return new Promise((function(n,i){var s=null!==r.serverFileReference?r.serverFileReference:r.transferId;null!==s?(e(s,(function(){r.serverFileReference=null,r.transferId=null,n()}),(function(e){t?(l(Fe.PROCESSING_REVERT_ERROR),c("process-revert-error"),i(e)):n()})),l(Fe.IDLE),c("process-revert")):n()}))},E=function(e,t,n){var i=e.split("."),r=i[0],s=i.pop(),o=a;
2i.forEach((function(e){return o=o[e]})),JSON.stringify(o[s])!==JSON.stringify(t)&&(o[s]=t,c("metadata-update",{key:r,value:a[r],silent:n}))},w=function(e){return en(e?a[e]:a)},x=Object.assign({id:{get:function(){return i}},origin:{get:function(){return e},set:function(t){return e=t}},serverId:{get:function(){return r.serverFileReference}},transferId:{get:function(){return r.transferId}},status:{get:function(){return r.status}},filename:{get:function(){return r.file.name}},filenameWithoutExtension:{get:function(){return Qt(r.file.name)}},fileExtension:{get:u},fileType:{get:d},fileSize:{get:h},file:{get:f},relativePath:{get:function(){return r.file._relativePath}},source:{get:function(){return r.source}},getMetadata:w,setMetadata:function(e,t,n){if(ae(e)){var i=e;return Object.keys(i).forEach((function(e){E(e,i[e],t)})),e}return E(e,t,n),t},extend:function(e,t){return T[e]=t},abortLoad:g,retryLoad:m,requestProcessing:y,abortProcessing:b,load:p,process:v,revert:_},Pe(),{freeze:function(){return r.frozen=!0},release:function(){return r.released=!0},released:{get:function(){return r.released}},archive:function(){return r.archived=!0},archived:{get:function(){return r.archived}}}),T=s(x);return T},nn=function(e,t){return G(t)?0:X(t)?e.findIndex((function(e){return e.id===t})):-1},rn=function(e,t){var n=nn(e,t);if(!(n<0))return e[n]||null},sn=function(e,t,n,i,r,s){var o=$t(null,e,{method:"GET",responseType:"blob"});return o.onload=function(n){var i=n.getAllResponseHeaders(),r=Rt(i).name||vt(e);t(Ft("load",n.status,wt(n.response,r),i))},o.onerror=function(e){n(Ft("error",e.status,e.statusText,e.getAllResponseHeaders()))},o.onheaders=function(e){s(Ft("headers",e.status,null,e.getAllResponseHeaders()))},o.ontimeout=Bt(n),o.onprogress=i,o.onabort=r,o},on=function(e){return 0===e.indexOf("//")&&(e=location.protocol+e),e.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]},an=function(e){return(e.indexOf(":")>-1||e.indexOf("//")>-1)&&on(location.href)!==on(e)},ln=function(e){return function(){return te(e)?e.apply(void 0,arguments):e}},cn=function(e){return!Zt(e.file)},un=function(e,t){clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout((function(){e("DID_UPDATE_ITEMS",{items:et(t.items)})}),0)},dn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new Promise((function(t){if(!e)return t(!0);var i=e.apply(void 0,n);return null==i?t(!0):"boolean"==typeof i?t(i):void("function"==typeof i.then&&i.then(t))}))},hn=function(e,t){e.items.sort((function(e,n){return t(Ne(e),Ne(n))}))},fn=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.query,r=n.success,s=void 0===r?function(){}:r,o=n.failure,a=void 0===o?function(){}:o,l=Le(n,["query","success","failure"]),c=Je(e.items,i);c?t(c,s,a,l||{}):a({error:Ft("error",0,"Item not found"),file:null})}},pn=function(e,t,n){return{ABORT_ALL:function(){et(n.items).forEach((function(e){e.freeze(),e.abortLoad(),e.abortProcessing()}))},DID_SET_FILES:function(t){var i=t.value,r=(void 0===i?[]:i).map((function(e){return{source:e.source?e.source:e,options:e.options}})),s=et(n.items);s.forEach((function(t){r.find((function(e){return e.source===t.source||e.source===t.file}))||e("REMOVE_ITEM",{query:t,remove:!1})})),s=et(n.items),r.forEach((function(t,n){s.find((function(e){return e.source===t.source||e.file===t.source}))||e("ADD_ITEM",Object.assign({},t,{interactionMethod:Ee.NONE,index:n}))}))},DID_UPDATE_ITEM_METADATA:function(i){var r=i.id,s=i.action,o=i.change;o.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout((function(){var i=rn(n.items,r);if(t("IS_ASYNC")){i.origin===Be.LOCAL&&e("DID_LOAD_ITEM",{id:i.id,error:null,serverFileReference:i.source});var a=function(){setTimeout((function(){e("REQUEST_ITEM_PROCESSING",{query:r})}),32)},l=function(e){i.revert(Wt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(e?a:function(){}).catch((function(){}))},c=function(e){i.abortProcessing().then(e?a:function(){})};return i.status===Fe.PROCESSING_COMPLETE?l(n.options.instantUpload):i.status===Fe.PROCESSING?c(n.options.instantUpload):void(n.options.instantUpload&&a())}Ue("SHOULD_PREPARE_OUTPUT",!1,{item:i,query:t,action:s,change:o}).then((function(n){var s=t("GET_BEFORE_PREPARE_FILE");s&&(n=s(i,n)),n&&e("REQUEST_PREPARE_OUTPUT",{query:r,item:i,success:function(t){e("DID_PREPARE_OUTPUT",{id:r,file:t})}},!0)}))}),0))},MOVE_ITEM:function(e){var t=e.query,i=e.index,r=Je(n.items,t);
vendor: 1,099 bytes, line 2
2if(r){var s=n.items.indexOf(r);s!==(i=ft(i,0,n.items.length-1))&&n.items.splice(i,0,n.items.splice(s,1)[0])}},SORT:function(i){var r=i.compare;hn(n,r),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(n){var i=n.items,r=n.index,s=n.interactionMethod,o=n.success,a=void 0===o?function(){}:o,l=n.failure,c=void 0===l?function(){}:l,u=r;if(-1===r||void 0===r){var d=t("GET_ITEM_INSERT_LOCATION"),h=t("GET_TOTAL_ITEMS");u="before"===d?0:h}var f=t("GET_IGNORED_FILES"),p=function(e){return Zt(e)?!f.includes(e.name.toLowerCase()):!G(e)},m=i.filter(p).map((function(t){return new Promise((function(n,i){e("ADD_ITEM",{interactionMethod:s,source:t.source||t,success:n,failure:i,index:u++,options:t.options||{}})}))}));Promise.all(m).then(a).catch(c)},ADD_ITEM:function(i){var r=i.source,s=i.index,o=void 0===s?-1:s,a=i.interactionMethod,l=i.success,c=void 0===l?function(){}:l,u=i.failure,d=void 0===u?function(){}:u,h=i.options,f=void 0===h?{}:h;if(G(r))d({error:Ft("error",0,"No source"),file:null});else if(!Zt(r)||!n.options.ignoredFiles.includes(r.name.toLowerCase())){if(!ht(n)){if
2(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){var p=Ft("warning",0,"Max files");return e("DID_THROW_MAX_FILES",{source:r,error:p}),void d({error:p,file:null})}var m=et(n.items)[0];if(m.status===Fe.PROCESSING_COMPLETE||m.status===Fe.PROCESSING_REVERT_ERROR){var g=t("GET_FORCE_REVERT");if(m.revert(Wt(n.options.server.url,n.options.server.revert),g).then((function(){g&&e("ADD_ITEM",{source:r,index:o,interactionMethod:a,success:c,failure:d,options:f})})).catch((function(){})),g)return}e("REMOVE_ITEM",{query:m.id})}var v="local"===f.type?Be.LOCAL:"limbo"===f.type?Be.LIMBO:Be.INPUT,y=tn(v,v===Be.INPUT?null:r,f.file);Object.keys(f.metadata||{}).forEach((function(e){y.setMetadata(e,f.metadata[e])})),He("DID_CREATE_ITEM",y,{query:t,dispatch:e});var b=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(o="before"===b?-1:n.items.length),mt(n.items,y,o),te(b)&&r&&hn(n,b);var _=y.id;y.on("init",(function(){e("DID_INIT_ITEM",{id:_})})),y.on("load-init",(function(){e("DID_START_ITEM_LOAD",{id:_})})),y.on("load-meta",(function(){e("DID_UPDATE_ITEM_META",{id:_})})),y.on("load-progress",(function(t){e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:_,progress:t})})),y.on("load-request-error",(function(t){var i=ln(n.options.labelFileLoadError)(t);if(t.code>=400&&t.code<500)return e("DID_THROW_ITEM_INVALID",{id:_,error:t,status:{main:i,sub:t.code+" ("+t.body+")"}}),void d({error:t,file:Ne(y)});e("DID_THROW_ITEM_LOAD_ERROR",{id:_,error:t,status:{main:i,sub:n.options.labelTapToRetry}})})),y.on("load-file-error",(function(t){e("DID_THROW_ITEM_INVALID",{id:_,error:t.status,status:t.status}),d({error:t.status,file:Ne(y)})})),y.on("load-abort",(function(){e("REMOVE_ITEM",{query:_})})),y.on("load-skip",(function(){e("COMPLETE_LOAD_ITEM",{query:_,item:y,data:{source:r,success:c}})})),y.on("load",(function(){var i=function(i){i?(y.on("metadata-update",(function(t){e("DID_UPDATE_ITEM_METADATA",{id:_,change:t})})),Ue("SHOULD_PREPARE_OUTPUT",!1,{item:y,query:t}).then((function(i){var s=t("GET_BEFORE_PREPARE_FILE");s&&(i=s(y,i));var o=function(){e("COMPLETE_LOAD_ITEM",{query:_,item:y,data:{source:r,success:c}}),un(e,n)};i?e("REQUEST_PREPARE_OUTPUT",{query:_,item:y,success:function(t){e("DID_PREPARE_OUTPUT",{id:_,file:t}),o()}},!0):o()}))):e("REMOVE_ITEM",{query:_})};Ue("DID_LOAD_ITEM",y,{query:t,dispatch:e}).then((function(){dn(t("GET_BEFORE_ADD_FILE"),Ne(y)).then(i)})).catch((function(t){if(!t||!t.error||!t.status)return i(!1);e("DID_THROW_ITEM_INVALID",{id:_,error:t.error,status:t.status})}))})),y.on("process-start",(function(){e("DID_START_ITEM_PROCESSING",{id:_})})),y.on("process-progress",(function(t){e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:_,progress:t})})),y.on("process-error",(function(t){e("DID_THROW_ITEM_PROCESSING_ERROR",{id:_,error:t,status:{main:ln(n.options.labelFileProcessingError)(t),sub:n.options.labelTapToRetry}})})),y.on("process-revert-error",(function(t){e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:_,error:t,status:{main:ln(n.options.labelFileProcessingRevertError)(t),sub:n.options.labelTapToRetry}})})),y.on("process-complete",(function(t){e("DID_COMPLETE_ITEM_PROCESSING",{id:_,error:null,serverFileReference:t}),e("DID_DEFINE_VALUE",{id:_,value:t})})),y.on("process-abort",(function(){e("DID_ABORT_ITEM_PROCESSING",{id:_})})),y.on("process-revert",(function(){e("DID_REVERT_ITEM_PROCESSING",{id:_}),e("DID_DEFINE_VALUE",{id:_,value:null})})),e("DID_ADD_ITEM",{id:_,index:o,interactionMethod:a}),un(e,n);var E=n.options.server||{},w=E.url,x=E.load,T=E.restore,S=E.fetch;y.load(r,Dt(v===Be.INPUT?X(r)&&an(r)&&S?Vt(w,S):sn:v===Be.LIMBO?Vt(w,T):Vt(w,x)),(function(e,n,i){Ue("LOAD_FILE",e,{query:t}).then(n).catch(i)}))}},REQUEST_PREPARE_OUTPUT:function(e){var n=e.item,i=e.success,r=e.failure,s=void 0===r?function(){}:r,o={error:Ft("error",0,"Item not found"),file:null};if(n.archived)return s(o);Ue("PREPARE_OUTPUT",n.file,{query:t,item:n}).then((function(e){Ue("COMPLETE_PREPARE_OUTPUT",e,{query:t,item:n}).then((function(e){if(n.archived)return s(o);i(e)}))}))},COMPLETE_LOAD_ITEM:function(i){var r=i.item,s=i.data,o=s.success,a=s.source,l=t("GET_ITEM_INSERT_LOCATION");if(te(l)&&a&&hn(n,l),e("DID_LOAD_ITEM",{id:r.id,error:null,serverFileReference:r.origin===Be.INPUT?null:a}),o(Ne(r)),r.origin!==Be.LOCAL)return r.origin===Be.LIMBO?(e("DID_COMPLETE_ITEM_PROCESSING",{id:r.id,error:null,serverFileReference:a}),void e("DID_DEFINE_VALUE",{id:r.id,value:r.serverId||a})):void(t("IS_ASYNC")&&n.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:r.id}));e("DID_LOAD_LOCAL_ITEM",{id:r.id})},RETRY_ITEM_LOAD:fn(n,(function(e){e.retryLoad()})),REQUEST_ITEM_PREPARE:fn(n,(function(t,n,i){e("REQUEST_PREPARE_OUTPUT",{query:t.id,item:t,success:function(i){e("DID_PREPARE_OUTPUT",{id:t.id,file:i}),n({file:t,output:i})},failure:i},!0)})),REQUEST_ITEM_PROCESSING:fn(n,(function(i,r,s){if(i.status===Fe.IDLE||i.status===Fe.PROCESSING_ERROR)i.status!==Fe.PROCESSING_QUEUED&&(i.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:i.id}),e("PROCESS_ITEM",{query:i,success:r,failure:s},!0));else{var o=function(){return e("REQUEST_ITEM_PROCESSING",{query:i,success:r,failure:s})},a=function(){return document.hidden?o():setTimeout(o,32)};i.status===Fe.PROCESSING_COMPLETE||i.status===Fe.PROCESSING_REVERT_ERROR?i.revert(Wt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(a).catch((function(){})):i.status===Fe.PROCESSING&&i.abortProcessing().then(a)}})),PROCESS_ITEM:fn(n,(function(i,r,s){var o=t("GET_MAX_PARALLEL_UPLOADS");if(t("GET_ITEMS_BY_STATUS",Fe.PROCESSING).length!==o){if(i.status!==Fe.PROCESSING){var a=function t(){var i=n.processingQueue.shift();if(i){var r=i.id,s=i.success,o=i.failure,a=Je(n.items,r);a&&!a.archived?e("PROCESS_ITEM",{query:r,success:s,failure:o},!0):t()}};i.onOnce("process-complete",(function(){r(Ne(i)),a();var s=n.options.server;if(n.options.instantUpload&&i.origin===Be.LOCAL&&te(s.remove)){var o=function(){};i.origin=Be.LIMBO,n.options.server.remove(i.source,o,o)}t("GET_ITEMS_BY_STATUS",Fe.PROCESSING_COMPLETE).length===n.items.length&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")})),i.onOnce("process-error",(function(e){s({error:e,file:Ne(i)}),a()}));var l=n.options;i.process(Kt(Ht(l.server.url,l.server.process,l.name,{chunkTransferId:i.transferId,chunkServer:l.server.patch,chunkUploads:l.chunkUploads,chunkForce:l.chunkForce,chunkSize:l.chunkSize,chunkRetryDelays:l.chunkRetryDelays}),{allowMinimumUploadDuration:t("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),(function(n,r,s){Ue("PREPARE_OUTPUT",n,{query:t,item:i}).then((function(t){e("DID_PREPARE_OUTPUT",{id:i.id,file:t}),r(t)}
vendor: 13,368 bytes, line 2
2)).catch(s)}))}}else n.processingQueue.push({id:i.id,success:r,failure:s})})),RETRY_ITEM_PROCESSING:fn(n,(function(t){e("REQUEST_ITEM_PROCESSING",{query:t})})),REQUEST_REMOVE_ITEM:fn(n,(function(n){dn(t("GET_BEFORE_REMOVE_FILE"),Ne(n)).then((function(t){t&&e("REMOVE_ITEM",{query:n})}))})),RELEASE_ITEM:fn(n,(function(e){e.release()})),REMOVE_ITEM:fn(n,(function(i,r,s,o){var a=function(){var t=i.id;rn(n.items,t).archive(),e("DID_REMOVE_ITEM",{error:null,id:t,item:i}),un(e,n),r(Ne(i))},l=n.options.server;i.origin===Be.LOCAL&&l&&te(l.remove)&&!1!==o.remove?(e("DID_START_ITEM_REMOVE",{id:i.id}),l.remove(i.source,(function(){return a()}),(function(t){e("DID_THROW_ITEM_REMOVE_ERROR",{id:i.id,error:Ft("error",0,t,null),status:{main:ln(n.options.labelFileRemoveError)(t),sub:n.options.labelTapToRetry}})}))):((o.revert&&i.origin!==Be.LOCAL&&null!==i.serverId||n.options.chunkUploads&&i.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&i.revert(Wt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),a())})),ABORT_ITEM_LOAD:fn(n,(function(e){e.abortLoad()})),ABORT_ITEM_PROCESSING:fn(n,(function(t){t.serverId?e("REVERT_ITEM_PROCESSING",{id:t.id}):t.abortProcessing().then((function(){n.options.instantUpload&&e("REMOVE_ITEM",{query:t.id})}))})),REQUEST_REVERT_ITEM_PROCESSING:fn(n,(function(i){if(n.options.instantUpload){var r=function(t){t&&e("REVERT_ITEM_PROCESSING",{query:i})},s=t("GET_BEFORE_REMOVE_FILE");if(!s)return r(!0);var o=s(Ne(i));return null==o?r(!0):"boolean"==typeof o?r(o):void("function"==typeof o.then&&o.then(r))}e("REVERT_ITEM_PROCESSING",{query:i})})),REVERT_ITEM_PROCESSING:fn(n,(function(i){i.revert(Wt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then((function(){(n.options.instantUpload||cn(i))&&e("REMOVE_ITEM",{query:i.id})})).catch((function(){}))})),SET_OPTIONS:function(t){var n=t.options,i=Object.keys(n),r=mn.filter((function(e){return i.includes(e)}));[].concat(Ie(r),Ie(Object.keys(n).filter((function(e){return!r.includes(e)})))).forEach((function(t){e("SET_"+ve(t,"_").toUpperCase(),{value:n[t]})}))}}},mn=["server"],gn=function(e){return e},vn=function(e){return document.createElement(e)},yn=function(e,t){var n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},bn=function(e,t,n,i){var r=(i%360-90)*Math.PI/180;return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}},_n=function(e,t,n,i,r,s){var o=bn(e,t,n,r),a=bn(e,t,n,i);return["M",o.x,o.y,"A",n,n,0,s,0,a.x,a.y].join(" ")},En=function(e,t,n,i,r){var s=1;return r>i&&r-i<=.5&&(s=0),i>r&&i-r>=.5&&(s=0),_n(e,t,n,360*Math.min(.9999,i),360*Math.min(.9999,r),s)},wn=$({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:function(e){var t=e.root,n=e.props;n.spin=!1,n.progress=0,n.opacity=0;var i=u("svg");t.ref.path=u("path",{"stroke-width":2,"stroke-linecap":"round"}),i.appendChild(t.ref.path),t.ref.svg=i,t.appendChild(i)},write:function(e){var t=e.root,n=e.props;if(0!==n.opacity){n.align&&(t.element.dataset.align=n.align);var i=parseInt(o(t.ref.path,"stroke-width"),10),r=.5*t.rect.element.width,s=0,a=0;n.spin?(s=0,a=.5):(s=0,a=n.progress);var l=En(r,r,r-i,s,a);o(t.ref.path,"d",l),o(t.ref.path,"stroke-opacity",n.spin||n.progress>0?1:0)}},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),xn=$({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:function(e){var t=e.root,n=e.props;t.element.innerHTML=(n.icon||"")+"<span>"+n.label+"</span>",n.isDisabled=!1},write:function(e){var t=e.root,n=e.props,i=n.isDisabled,r=t.query("GET_DISABLED")||0===n.opacity;r&&!i?(n.isDisabled=!0,o(t.element,"disabled","disabled")):!r&&i&&(n.isDisabled=!1,t.element.removeAttribute("disabled"))}}),Tn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.labelBytes,s=void 0===r?"bytes":r,o=i.labelKilobytes,a=void 0===o?"KB":o,l=i.labelMegabytes,c=void 0===l?"MB":l,u=i.labelGigabytes,d=void 0===u?"GB":u,h=n,f=n*n,p=n*n*n;return(e=Math.round(Math.abs(e)))<h?e+" "+s:e<f?Math.floor(e/h)+" "+a:e<p?Sn(e/f,1,t)+" "+c:Sn(e/p,2,t)+" "+d},Sn=function(e,t,n){return e.toFixed(t).split(".").filter((function(e){return"0"!==e})).join(n)},Ln=function(e){var t=e.root,n=e.props,i=vn("span");i.className="filepond--file-info-main",o(i,"aria-hidden","true"),t.appendChild(i),t.ref.fileName=i;var r=vn("span");r.className="filepond--file-info-sub",t.appendChild(r),t.ref.fileSize=r,yn(r,t.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),yn(i,gn(t.query("GET_ITEM_NAME",n.id)))},In=function(e){var t=e.root,n=e.props;yn(t.ref.fileSize,Tn(t.query("GET_ITEM_SIZE",n.id),".",t.query("GET_FILE_SIZE_BASE"),t.query("GET_FILE_SIZE_LABELS",t.query))),yn(t.ref.fileName,gn(t.query("GET_ITEM_NAME",n.id)))},Cn=function(e){var t=e.root,n=e.props;Z(t.query("GET_ITEM_SIZE",n.id))?In({root:t,props:n}):yn(t.ref.fileSize,t.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},On=$({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:B({DID_LOAD_ITEM:In,DID_UPDATE_ITEM_META:In,DID_THROW_ITEM_LOAD_ERROR:Cn,DID_THROW_ITEM_INVALID:Cn}),didCreateView:function(e){He("CREATE_VIEW",Object.assign({},e,{view:e}))},create:Ln,mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),An=function(e){return Math.round(100*e)},Mn=function(e){var t=e.root,n=vn("span");n.className="filepond--file-status-main",t.appendChild(n),t.ref.main=n;var i=vn("span");i.className="filepond--file-status-sub",t.appendChild(i),t.ref.sub=i,kn({root:t,action:{progress:null}})},kn=function(e){var t=e.root,n=e.action,i=null===n.progress?t.query("GET_LABEL_FILE_LOADING"):t.query("GET_LABEL_FILE_LOADING")+" "+An(n.progress)+"%";yn(t.ref.main,i),yn(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},Pn=function(e){var t=e.root;yn(t.ref.main,""),yn(t.ref.sub,"")},Rn=function(e){var t=e.root,n=e.action;yn(t.ref.main,n.status.main),yn(t.ref.sub,n.status.sub)},Dn=$({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:B({DID_LOAD_ITEM:Pn,DID_REVERT_ITEM_PROCESSING:Pn,DID_REQUEST_ITEM_PROCESSING:function(e){var t=e.root;yn(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING")),yn(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},DID_ABORT_ITEM_PROCESSING:function(e){var t=e.root;yn(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_ABORTED")),yn(t.ref.sub,t.query("GET_LABEL_TAP_TO_RETRY"))},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root;yn(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),yn(t.ref.sub,t.query("GET_LABEL_TAP_TO_UNDO"))},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(e){var t=e.root,n=e.action,i=null===n.progress?t.query("GET_LABEL_FILE_PROCESSING"):t.query("GET_LABEL_FILE_PROCESSING")+" "+An(n.progress)+"%";yn(t.ref.main,i),yn(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},DID_UPDATE_ITEM_LOAD_PROGRESS:kn,DID_THROW_ITEM_LOAD_ERROR:Rn,DID_THROW_ITEM_INVALID:Rn,DID_THROW_ITEM_PROCESSING_ERROR:Rn,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:Rn,DID_THROW_ITEM_REMOVE_ERROR:Rn}),didCreateView:function(e){He("CREATE_VIEW",Object.assign({},e,{view:e}))},create:Mn,mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),Nn={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},$n=[];r(Nn,(function(e){$n.push(e)}));var Fn,Bn=function(e){if("right"===Gn(e))return 0;var t=e.ref.buttonRemoveItem.rect.element;return t.hidden?null:t.width+t.left},jn=function(e){return e.ref.buttonAbortItemLoad.rect.element.width},qn=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.height/4)},Vn=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.left/2)},Gn=function(e){return e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION")},zn={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:function(e){return e.query("GET_STYLE_LOAD_INDICATOR_POSITION")}},processProgressIndicator:{opacity:0,align:function(e){return e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},Un={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Bn},status:{translateX:Bn}},Hn={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},Wn={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:Bn},status:{translateX:Bn,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:Bn},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:Gn},info:{translateX:Bn},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:Gn},buttonRemoveItem:{opacity:1},info:{translateX:Bn},status:{opacity:1,translateX:Bn}},DID_LOAD_ITEM:Un,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:Bn},status:{translateX:Bn}},DID_START_ITEM_PROCESSING:Hn,DID_REQUEST_ITEM_PROCESSING:Hn,DID_UPDATE_ITEM_PROCESS_PROGRESS:Hn,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:Bn}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Bn},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:Un},Yn=$({create:function(e){var t=e.root;t.element.innerHTML=t.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),Xn=function(e){var t,n=e.root,i=e.props,s=Object.keys(Nn).reduce((function(e,t){return e[t]=Object.assign({},Nn[t]),e}),{}),o=i.id,a=n.query("GET_ALLOW_REVERT"),l=n.query("GET_ALLOW_REMOVE"),c=n.query("GET_ALLOW_PROCESS"),u=n.query("GET_INSTANT_UPLOAD"),d=n.query("IS_ASYNC"),h=n.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");d?c&&!a?t=function(e){return!/RevertItemProcessing/.test(e)}:!c&&a?t=function(e){return!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(e)}:c||a||(t=function(e){return!/Process/.test(e)}):t=function(e){return!/Process/.test(e)};var f=t?$n.filter(t):$n.concat();if(u&&a&&(s.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",s.RevertItemProcessing.icon="GET_ICON_REMOVE"),d&&!a){var p=Wn.DID_COMPLETE_ITEM_PROCESSING;p.info.translateX=Vn,p.info.translateY=qn,p.status.translateY=qn,p.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(d&&!c&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach((function(e){Wn[e].status.translateY=qn})),Wn.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=jn),h&&a){s.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";var m=Wn.DID_COMPLETE_ITEM_PROCESSING;m.info.translateX=Bn,m.status.translateY=qn,m.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}l||(s.RemoveItem.disabled=!0),r(s,(function(e,t){var i=n.createChildView(xn,{label:n.query(t.label),icon:n.query(t.icon),opacity:0}
2);f.includes(e)&&n.appendChildView(i),t.disabled&&(i.element.setAttribute("disabled","disabled"),i.element.setAttribute("hidden","hidden")),i.element.dataset.align=n.query("GET_STYLE_"+t.align),i.element.classList.add(t.className),i.on("click",(function(e){e.stopPropagation(),t.disabled||n.dispatch(t.action,{query:o})})),n.ref["button"+e]=i})),n.ref.processingCompleteIndicator=n.appendChildView(n.createChildView(Yn)),n.ref.processingCompleteIndicator.element.dataset.align=n.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),n.ref.info=n.appendChildView(n.createChildView(On,{id:o})),n.ref.status=n.appendChildView(n.createChildView(Dn,{id:o}));var g=n.appendChildView(n.createChildView(wn,{opacity:0,align:n.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));g.element.classList.add("filepond--load-indicator"),n.ref.loadProgressIndicator=g;var v=n.appendChildView(n.createChildView(wn,{opacity:0,align:n.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));v.element.classList.add("filepond--process-indicator"),n.ref.processProgressIndicator=v,n.ref.activeStyles=[]},Kn=function(e){var t=e.root,n=e.actions,i=e.props;Qn({root:t,actions:n,props:i});var s=n.concat().filter((function(e){return/^DID_/.test(e.type)})).reverse().find((function(e){return Wn[e.type]}));if(s){t.ref.activeStyles=[];var o=Wn[s.type];r(zn,(function(e,n){var i=t.ref[e];r(n,(function(n,r){var s=o[e]&&void 0!==o[e][n]?o[e][n]:r;t.ref.activeStyles.push({control:i,key:n,value:s})}))}))}t.ref.activeStyles.forEach((function(e){var n=e.control,i=e.key,r=e.value;n[i]="function"==typeof r?r(t):r}))},Qn=B({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemProcessing.label=n.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemLoad.label=n.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemRemoval.label=n.value},DID_REQUEST_ITEM_PROCESSING:function(e){var t=e.root;t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:function(e){var t=e.root;t.ref.loadProgressIndicator.spin=!0,t.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:function(e){var t=e.root;t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:function(e){var t=e.root,n=e.action;t.ref.loadProgressIndicator.spin=!1,t.ref.loadProgressIndicator.progress=n.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(e){var t=e.root,n=e.action;t.ref.processProgressIndicator.spin=!1,t.ref.processProgressIndicator.progress=n.progress}}),Jn=$({create:Xn,write:Kn,didCreateView:function(e){He("CREATE_VIEW",Object.assign({},e,{view:e}))},name:"file"}),Zn=$({create:function(e){var t=e.root,n=e.props;t.ref.fileName=vn("legend"),t.appendChild(t.ref.fileName),t.ref.file=t.appendChildView(t.createChildView(Jn,{id:n.id})),t.ref.data=!1},ignoreRect:!0,write:B({DID_LOAD_ITEM:function(e){var t=e.root,n=e.props;yn(t.ref.fileName,gn(t.query("GET_ITEM_NAME",n.id)))}}),didCreateView:function(e){He("CREATE_VIEW",Object.assign({},e,{view:e}))},tag:"fieldset",name:"file-wrapper"}),ei={type:"spring",damping:.6,mass:7},ti=function(e){var t=e.root,n=e.props;[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:ei},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:ei},styles:["translateY"]}}].forEach((function(e){ni(t,e,n.name)})),t.element.classList.add("filepond--"+n.name),t.ref.scalable=null},ni=function(e,t,n){var i=$({name:"panel-"+t.name+" filepond--"+n,mixins:t.mixins,ignoreRectUpdate:!0}),r=e.createChildView(i,t.props);e.ref[t.name]=e.appendChildView(r)},ii=$({name:"panel",read:function(e){var t=e.root;return e.props.heightCurrent=t.ref.bottom.translateY},write:function(e){var t=e.root,n=e.props;if(null!==t.ref.scalable&&n.scalable===t.ref.scalable||(t.ref.scalable=!W(n.scalable)||n.scalable,t.element.dataset.scalable=t.ref.scalable),n.height){var i=t.ref.top.rect.element,r=t.ref.bottom.rect.element,s=Math.max(i.height+r.height,n.height);t.ref.center.translateY=i.height,t.ref.center.scaleY=(s-i.height-r.height)/100,t.ref.bottom.translateY=s-r.height}},create:ti,ignoreRect:!0,mixins:{apis:["height","heightCurrent","scalable"]}}),ri=function(e){var t=e.map((function(e){return e.id})),n=void 0;return{setIndex:function(e){n=e},getIndex:function(){return n},getItemIndex:function(e){return t.indexOf(e.id)}}},si={type:"spring",stiffness:.75,damping:.45,mass:10}
vendor: 15,532 bytes, line 2
2,oi="spring",ai={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},li=function(e){var t=e.root,n=e.props;if(t.ref.handleClick=function(e){return t.dispatch("DID_ACTIVATE_ITEM",{id:n.id})},t.element.id="filepond--item-"+n.id,t.element.addEventListener("click",t.ref.handleClick),t.ref.container=t.appendChildView(t.createChildView(Zn,{id:n.id})),t.ref.panel=t.appendChildView(t.createChildView(ii,{name:"item-panel"})),t.ref.panel.height=null,n.markedForRemoval=!1,t.query("GET_ALLOW_REORDER")){t.element.dataset.dragState="idle";var i=function(e){if(e.isPrimary){var i=!1,r={x:e.pageX,y:e.pageY};n.dragOrigin={x:t.translateX,y:t.translateY},n.dragCenter={x:e.offsetX,y:e.offsetY};var s=ri(t.query("GET_ACTIVE_ITEMS"));t.dispatch("DID_GRAB_ITEM",{id:n.id,dragState:s});var o=function(e){e.isPrimary&&(e.stopPropagation(),e.preventDefault(),n.dragOffset={x:e.pageX-r.x,y:e.pageY-r.y},n.dragOffset.x*n.dragOffset.x+n.dragOffset.y*n.dragOffset.y>16&&!i&&(i=!0,t.element.removeEventListener("click",t.ref.handleClick)),t.dispatch("DID_DRAG_ITEM",{id:n.id,dragState:s}))},a=function e(a){a.isPrimary&&(document.removeEventListener("pointermove",o),document.removeEventListener("pointerup",e),n.dragOffset={x:a.pageX-r.x,y:a.pageY-r.y},t.dispatch("DID_DROP_ITEM",{id:n.id,dragState:s}),i&&setTimeout((function(){return t.element.addEventListener("click",t.ref.handleClick)}),0))};document.addEventListener("pointermove",o),document.addEventListener("pointerup",a)}};t.element.addEventListener("pointerdown",i)}},ci=B({DID_UPDATE_PANEL_HEIGHT:function(e){var t=e.root,n=e.action;t.height=n.height}}),ui=B({DID_GRAB_ITEM:function(e){var t=e.root;e.props.dragOrigin={x:t.translateX,y:t.translateY}},DID_DRAG_ITEM:function(e){e.root.element.dataset.dragState="drag"},DID_DROP_ITEM:function(e){var t=e.root,n=e.props;n.dragOffset=null,n.dragOrigin=null,t.element.dataset.dragState="drop"}},(function(e){var t=e.root,n=e.actions,i=e.props,r=e.shouldOptimize;"drop"===t.element.dataset.dragState&&t.scaleX<=1&&(t.element.dataset.dragState="idle");var s=n.concat().filter((function(e){return/^DID_/.test(e.type)})).reverse().find((function(e){return ai[e.type]}));s&&s.type!==i.currentState&&(i.currentState=s.type,t.element.dataset.filepondItemState=ai[i.currentState]||"");var o=t.query("GET_ITEM_PANEL_ASPECT_RATIO")||t.query("GET_PANEL_ASPECT_RATIO");o?r||(t.height=t.rect.element.width*o):(ci({root:t,actions:n,props:i}),!t.height&&t.ref.container.rect.element.height>0&&(t.height=t.ref.container.rect.element.height)),r&&(t.ref.panel.height=null),t.ref.panel.height=t.height})),di=$({create:li,write:ui,destroy:function(e){var t=e.root,n=e.props;t.element.removeEventListener("click",t.ref.handleClick),t.dispatch("RELEASE_ITEM",{query:n.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:oi,scaleY:oi,translateX:si,translateY:si,opacity:{type:"tween",duration:150}}}}),hi=function(e,t){return Math.max(1,Math.floor((e+1)/t))},fi=function(e,t,n){if(n){var i=e.rect.element.width,r=t.length,s=null;if(0===r||n.top<t[0].rect.element.top)return-1;var o=t[0].rect.element,a=o.marginLeft+o.marginRight,l=o.width+a,c=hi(i,l);if(1===c){for(var u=0;u<r;u++){var d=t[u],h=d.rect.outer.top+.5*d.rect.element.height;if(n.top<h)return u}return r}for(var f=o.marginTop+o.marginBottom,p=o.height+f,m=0;m<r;m++){var g=m%c*l,v=Math.floor(m/c)*p,y=v-o.marginTop,b=g+l,_=v+p+o.marginBottom;if(n.top<_&&n.top>y){if(n.left<b)return m;s=m!==r-1?m:null}}return null!==s?s:r}},pi={height:0,width:0,get getHeight(){return this.height},set setHeight(e){0!==this.height&&0!==e||(this.height=e)},get getWidth(){return this.width},set setWidth(e){0!==this.width&&0!==e||(this.width=e)},setDimensions:function(e,t){0!==this.height&&0!==e||(this.height=e),0!==this.width&&0!==t||(this.width=t)}},mi=function(e){var t=e.root;o(t.element,"role","list"),t.ref.lastItemSpanwDate=Date.now()},gi=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=n,Date.now()>e.spawnDate&&(0===e.opacity&&vi(e,t,n,i,r),e.scaleX=1,e.scaleY=1,e.opacity=1))},vi=function(e,t,n,i,r){e.interactionMethod===Ee.NONE?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===Ee.DROP?(e.translateX=null,e.translateX=t-20*i,e.translateY=null,e.translateY=n-10*r,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===Ee.BROWSE?(e.translateY=null,e.translateY=n-30):e.interactionMethod===Ee.API&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},yi=function(e){return e.rect.element.height+.5*e.rect.element.marginBottom+.5*e.rect.element.marginTop},bi=function(e){return e.rect.element.width+.5*e.rect.element.marginLeft+.5*e.rect.element.marginRight},_i=B({DID_ADD_ITEM:function(e){var t=e.root,n=e.action,i=n.id,r=n.index,s=n.interactionMethod;t.ref.addIndex=r;var o=Date.now(),a=o,l=1;if(s!==Ee.NONE){l=0;var c=t.query("GET_ITEM_INSERT_INTERVAL"),u=o-t.ref.lastItemSpanwDate;a=u<c?o+(c-u):o}t.ref.lastItemSpanwDate=a,t.appendChildView(t.createChildView(di,{spawnDate:a,id:i,opacity:l,interactionMethod:s}),r)},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action.id,i=t.childViews.find((function(e){return e.id===n}));i&&(i.scaleX=.9,i.scaleY=.9,i.opacity=0,i.markedForRemoval=!0)},DID_DRAG_ITEM:function(e){var t=e.root,n=e.action,i=n.id,r=n.dragState,s=t.query("GET_ITEM",{id:i}),o=t.childViews.find((function(e){return e.id===i})),a=t.childViews.length,l=r.getItemIndex(s);if(o){var c={x:o.dragOrigin.x+o.dragOffset.x+o.dragCenter.x,y:o.dragOrigin.y+o.dragOffset.y+o.dragCenter.y},u=yi(o),d=bi(o),h=Math.floor(t.rect.outer.width/d);h>a&&(h=a);var f=Math.floor(a/h+1);pi.setHeight=u*f,pi.setWidth=d*h;var p={y:Math.floor(c.y/u),x:Math.floor(c.x/d),getGridIndex:function(){return c.y>pi.getHeight||c.y<0||c.x>pi.getWidth||c.x<0?l:this.y*h+this.x},getColIndex:function(){for(var e=t.query("GET_ACTIVE_ITEMS"),n=t.childViews.filter((function(e){return e.rect.element.height})),i=e.map((function(e){return n.find((function(t){return t.id===e.id}))})),r=i.findIndex((function(e){return e===o})),s=yi(o),a=i.length,l=a,u=0,d=0,h=0;h<a;h++)if(u=(d=u)+yi(i[h]),c.y<u){if(r>h){if(c.y<d+s){l=h;break}continue}l=h;break}return l}},m=h>1?p.getGridIndex():p.getColIndex();t.dispatch("MOVE_ITEM",{query:o,index:m});var g=r.getIndex();if(void 0===g||g!==m){if(r.setIndex(m),void 0===g)return;t.dispatch("DID_REORDER_ITEMS",{items:t.query("GET_ACTIVE_ITEMS"),origin:l,target:m})}}}}),Ei=$({create:mi,write:function(e){var t=e.root,n=e.props,i=e.actions,r=e.shouldOptimize;_i({root:t,props:n,actions:i});var s=n.dragCoordinates,o=t.rect.element.width,a=t.childViews.filter((function(e){return e.rect.element.height})),l=t.query("GET_ACTIVE_ITEMS").map((function(e){return a.find((function(t){return t.id===e.id}))})).filter((function(e){return e})),c=s?fi(t,l,s):null,u=t.ref.addIndex||null;t.ref.addIndex=null;var d=0,h=0,f=0;if(0!==l.length){var p=l[0].rect.element,m=p.marginTop+p.marginBottom,g=p.marginLeft+p.marginRight,v=p.width+g,y=p.height+m,b=hi(o,v);if(1===b){var _=0,E=0;l.forEach((function(e,t){if(c){var n=t-c;E=-2===n?.25*-m:-1===n?.75*-m:0===n?.75*m:1===n?.25*m:0}r&&(e.translateX=null,e.translateY=null),e.markedForRemoval||gi(e,0,_+E);var i=(e.rect.element.height+m)*(e.markedForRemoval?e.opacity:1);_+=i}))}else{var w=0,x=0;l.forEach((function(e,t){t===c&&(d=1),t===u&&(f+=1),e.markedForRemoval&&e.opacity<.5&&(h-=1);var n=t+f+d+h,i=n%b,s=Math.floor(n/b),o=i*v,a=s*y,l=Math.sign(o-w),p=Math.sign(a-x);w=o,x=a,e.markedForRemoval||(r&&(e.translateX=null,e.translateY=null),gi(e,o,a,l,p))}))}}},tag:"ul",name:"list",didWriteView:function(e){var t=e.root;t.childViews.filter((function(e){return e.markedForRemoval&&0===e.opacity&&e.resting})).forEach((function(e){e._destroy(),t.removeChildView(e)}))},filterFrameActionsForChild:function(e,t){return t.filter((function(t){return!t.data||!t.data.id||e.id===t.data.id}))},mixins:{apis:["dragCoordinates"]}}),wi=function(e){var t=e.root,n=e.props;t.ref.list=t.appendChildView(t.createChildView(Ei)),n.dragCoordinates=null,n.overflowing=!1},xi=B({DID_DRAG:function(e){var t=e.root,n=e.props,i=e.action;t.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(n.dragCoordinates={left:i.position.scopeLeft-t.ref.list.rect.element.left,top:i.position.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},DID_END_DRAG:function(e){e.props.dragCoordinates=null}}),Ti=$({create:wi,write:function(e){var t=e.root,n=e.props,i=e.actions;if(xi({root:t,props:n,actions:i}),t.ref.list.dragCoordinates=n.dragCoordinates,n.overflowing&&!n.overflow&&(n.overflowing=!1,t.element.dataset.state="",t.height=null),n.overflow){var r=Math.round(n.overflow);r!==t.height&&(n.overflowing=!0,t.element.dataset.state="overflow",t.height=r)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),Si=function(e,t,n){n?o(e,t,arguments.length>3&&void 0!==arguments[3]?arguments[3]:""):e.removeAttribute(t)},Li=function(e){if(e&&""!==e.value){try{e.value=""}catch(e){}if(e.value){var t=vn("form"),n=e.parentNode,i=e.nextSibling;t.appendChild(e),t.reset(),i?n.insertBefore(e,i):n.appendChild(e)}}},Ii=function(e){var t=e.root,n=e.props;t.element.id="filepond--browser-"+n.id,o(t.element,"name",t.query("GET_NAME")),o(t.element,"aria-controls","filepond--assistant-"+n.id),o(t.element,"aria-labelledby","filepond--drop-label-"+n.id),Ci({root:t,action:{value:t.query("GET_ACCEPTED_FILE_TYPES")}}),Oi({root:t,action:{value:t.query("GET_ALLOW_MULTIPLE")}}),Ai({root:t,action:{value:t.query("GET_ALLOW_DIRECTORIES_ONLY")}}),Mi({root:t}),ki({root:t,action:{value:t.query("GET_REQUIRED")}}),Pi({root:t,action:{value:t.query("GET_CAPTURE_METHOD")}}),t.ref.handleChange=function(e){if(t.element.value){var i=Array.from(t.element.files).map((function(e){return e._relativePath=e.webkitRelativePath,e}));setTimeout((function(){n.onload(i),Li(t.element)}),250)}},t.element.addEventListener("change",t.ref.handleChange)},Ci=function(e){var t=e.root,n=e.action;t.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&Si(t.element,"accept",!!n.value,n.value?n.value.join(","):"")},Oi=function(e){var t=e.root,n=e.action;Si(t.element,"multiple",n.value)},Ai=function(e){var t=e.root,n=e.action;Si(t.element,"webkitdirectory",n.value)},Mi=function(e){var t=e.root,n=t.query("GET_DISABLED"),i=t.query("GET_ALLOW_BROWSE"),r=n||!i;Si(t.element,"disabled",r)},ki=function(e){var t=e.root;e.action.value?0===t.query("GET_TOTAL_ITEMS")&&Si(t.element,"required",!0):Si(t.element,"required",!1)},Pi=function(e){var t=e.root,n=e.action;Si(t.element,"capture",!!n.value,!0===n.value?"":n.value)},Ri=function(e){var t=e.root,n=t.element;t.query("GET_TOTAL_ITEMS")>0?(Si(n,"required",!1),Si(n,"name",!1)):(Si(n,"name",!0,t.query("GET_NAME")),t.query("GET_CHECK_VALIDITY")&&n.setCustomValidity(""),t.query("GET_REQUIRED")&&Si(n,"required",!0))},Di=$({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:Ii,destroy:function(e){var t=e.root;t.element.removeEventListener("change",t.ref.handleChange)},write:B({DID_LOAD_ITEM:Ri,DID_REMOVE_ITEM:Ri,DID_THROW_ITEM_INVALID:function(e){var t=e.root;t.query("GET_CHECK_VALIDITY")&&t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:Mi,DID_SET_ALLOW_BROWSE:Mi,DID_SET_ALLOW_DIRECTORIES_ONLY:Ai,DID_SET_ALLOW_MULTIPLE:Oi,DID_SET_ACCEPTED_FILE_TYPES:Ci,DID_SET_CAPTURE_METHOD:Pi,DID_SET_REQUIRED:ki})}),Ni={ENTER:13,SPACE:32},$i=function(e){var t=e.root,n=e.props,i=vn("label");o(i,"for","filepond--browser-"+n.id),o(i,"id","filepond--drop-label-"+n.id),o(i,"aria-hidden","true"),t.ref.handleKeyDown=function(e){(e.keyCode===Ni.ENTER||e.keyCode===Ni.SPACE)&&(e.preventDefault(),t.ref.label.click())},t.ref.handleClick=function(e){e.target===i||i.contains(e.target)||t.ref.label.click()},i.addEventListener("keydown",t.ref.handleKeyDown),t.element.addEventListener("click",t.ref.handleClick),Fi(i,n.caption),t.appendChild(i),t.ref.label=i},Fi=function(e,t){e.innerHTML=t;var n=e.querySelector(".filepond--label-action");return n&&o(n,"tabindex","0"),t},Bi=$({name:"drop-label",ignoreRect:!0,create:$i,destroy:function(e){var t=e.root;t.ref.label.addEventListener("keydown",t.ref.handleKeyDown),t.element.removeEventListener("click",t.ref.handleClick)},write:B({DID_SET_LABEL_IDLE:function(e){var t=e.root,n=e.action;Fi(t.ref.label,n.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),ji=$({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),qi=function(e){var t=e.root,n=.5*t.rect.element.width,i=.5*t.rect.element.height;t.ref.blob=t.appendChildView(t.createChildView(ji,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:n,translateY:i}))},Vi=function(e){var t=e.root,n=e.props,i=e.actions;Gi({root:t,props:n,actions:i});var r=t.ref.blob;0===i.length&&r&&0===r.opacity&&(t.removeChildView(r),t.ref.blob=null)},Gi=B({DID_DRAG:function(e){var t=e.root,n=e.action;t.ref.blob?(t.ref.blob.translateX=n.position.scopeLeft,t.ref.blob.translateY=n.position.scopeTop,t.ref.blob.scaleX=1,t.ref.blob.scaleY=1,t.ref.blob.opacity=1):qi({root:t})},DID_DROP:function(e){var t=e.root;t.ref.blob&&(t.ref.blob.scaleX=2.5,t.ref.blob.scaleY=2.5,t.ref.blob.opacity=0)},DID_END_DRAG:function(e){var t=e.root;t.ref.blob&&(t.ref.blob.opacity=0)}}),zi=$({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:Vi}),Ui=function(e,t){try{var n=new DataTransfer;t.forEach((function(e){e instanceof File?n.items.add(e):n.items.add(new File([e],e.name,{type:e.type}))})),e.files=n.files}catch(e){return!1}return!0},Hi=function(e){return e.root.ref.fields={}},Wi=function(e,t){return e.ref.fields[t]},Yi=function(e){e.query("GET_ACTIVE_ITEMS").forEach((function(t){e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])}))},Xi=function(e){var t=e.root;return Yi(t)},Ki=B({DID_SET_DISABLED:function(e){var t=e.root;t.element.disabled=t.query("GET_DISABLED")},DID_ADD_ITEM:function(e){var t=e.root,n=e.action,i=!(t.query("GET_ITEM",n.id).origin===Be.LOCAL)&&t.query("SHOULD_UPDATE_FILE_INPUT"),r=vn("input");r.type=i?"file":"hidden",r.name=t.query("GET_NAME"),r.disabled=t.query("GET_DISABLED"),t.ref.fields[n.id]=r,Yi(t)},DID_LOAD_ITEM:function(e){var t=e.root,n=e.action,i=Wi(t,n.id);if(i&&(null!==n.serverFileReference&&(i.value=n.serverFileReference),t.query("SHOULD_UPDATE_FILE_INPUT"))){var r=t.query("GET_ITEM",n.id);
2Ui(i,[r.file])}},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action,i=Wi(t,n.id);i&&(i.parentNode&&i.parentNode.removeChild(i),delete t.ref.fields[n.id])},DID_DEFINE_VALUE:function(e){var t=e.root,n=e.action,i=Wi(t,n.id);i&&(null===n.value?i.removeAttribute("value"):"file"!=i.type&&(i.value=n.value),Yi(t))},DID_PREPARE_OUTPUT:function(e){var t=e.root,n=e.action;t.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout((function(){var e=Wi(t,n.id);e&&Ui(e,[n.file])}),0)},DID_REORDER_ITEMS:Xi,DID_SORT_ITEMS:Xi}),Qi=$({tag:"fieldset",name:"data",create:Hi,write:Ki,ignoreRect:!0}),Ji=function(e){return"getRootNode"in e?e.getRootNode():document},Zi=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],er=["css","csv","html","txt"],tr={zip:"zip|compressed",epub:"application/epub+zip"},nr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=e.toLowerCase(),Zi.includes(e)?"image/"+("jpg"===e?"jpeg":"svg"===e?"svg+xml":e):er.includes(e)?"text/"+e:tr[e]||""},ir=function(e){return new Promise((function(t,n){var i=fr(e);if(i.length&&!rr(e))return t(i);sr(e).then(t)}))},rr=function(e){return!!e.files&&e.files.length>0},sr=function(e){return new Promise((function(t,n){var i=(e.items?Array.from(e.items):[]).filter((function(e){return or(e)})).map((function(e){return ar(e)}));i.length?Promise.all(i).then((function(e){var n=[];e.forEach((function(e){n.push.apply(n,e)})),t(n.filter((function(e){return e})).map((function(e){return e._relativePath||(e._relativePath=e.webkitRelativePath),e})))})).catch(console.error):t(e.files?Array.from(e.files):[])}))},or=function(e){if(dr(e)){var t=hr(e);if(t)return t.isFile||t.isDirectory}return"file"===e.kind},ar=function(e){return new Promise((function(t,n){ur(e)?lr(hr(e)).then(t).catch(n):t([e.getAsFile()])}))},lr=function(e){return new Promise((function(t,n){var i=[],r=0,s=0,o=function(){0===s&&0===r&&t(i)},a=function e(t){r++;var a=t.createReader(),l=function t(){a.readEntries((function(n){if(0===n.length)return r--,void o();n.forEach((function(t){t.isDirectory?e(t):(s++,t.file((function(e){var n=cr(e);t.fullPath&&(n._relativePath=t.fullPath),i.push(n),s--,o()})))})),t()}),n)};l()};a(e)}))},cr=function(e){if(e.type.length)return e;var t=e.lastModifiedDate,n=e.name,i=nr(yt(e.name));return i.length?((e=e.slice(0,e.size,i)).name=n,e.lastModifiedDate=t,e):e},ur=function(e){return dr(e)&&(hr(e)||{}).isDirectory},dr=function(e){return"webkitGetAsEntry"in e},hr=function(e){return e.webkitGetAsEntry()},fr=function(e){var t=[];try{if((t=mr(e)).length)return t;t=pr(e)}catch(e){}return t},pr=function(e){var t=e.getData("url");return"string"==typeof t&&t.length?[t]:[]},mr=function(e){var t=e.getData("text/html");if("string"==typeof t&&t.length){var n=t.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},gr=[],vr=function(e){return{pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}},yr=function(e,t,n){var i=br(t),r={element:e,filterElement:n,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return r.destroy=i.addListener(r),r},br=function(e){var t=gr.find((function(t){return t.element===e}));if(t)return t;var n=_r(e);return gr.push(n),n},_r=function(e){var t=[],n={dragenter:Sr,dragover:Lr,dragleave:Cr,drop:Ir},i={};r(n,(function(n,r){i[n]=r(e,t),e.addEventListener(n,i[n],!1)}));var s={element:e,addListener:function(o){return t.push(o),function(){t.splice(t.indexOf(o),1),0===t.length&&(gr.splice(gr.indexOf(s),1),r(n,(function(t){e.removeEventListener(t,i[t],!1)})))}}};return s},Er=function(e,t){return"elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)},wr=function(e,t){var n=Ji(t),i=Er(n,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return i===t||t.contains(i)},xr=null,Tr=function(e,t){try{e.dropEffect=t}catch(e){}},Sr=function(e,t){return function(e){e.preventDefault(),xr=e.target,t.forEach((function(t){var n=t.element,i=t.onenter;wr(e,n)&&(t.state="enter",i(vr(e)))}))}},Lr=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;ir(n).then((function(i){var r=!1;t.some((function(t){var s=t.filterElement,o=t.element,a=t.onenter,l=t.onexit,c=t.ondrag,u=t.allowdrop;Tr(n,"copy");var d=u(i);if(d)if(wr(e,o)){if(r=!0,null===t.state)return t.state="enter",void a(vr(e));if(t.state="over",s&&!d)return void Tr(n,"none");c(vr(e))}
vendor: 8,379 bytes, line 2
2else s&&!r&&Tr(n,"none"),t.state&&(t.state=null,l(vr(e)));else Tr(n,"none")}))}))}},Ir=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;ir(n).then((function(n){t.forEach((function(t){var i=t.filterElement,r=t.element,s=t.ondrop,o=t.onexit,a=t.allowdrop;if(t.state=null,!i||wr(e,r))return a(n)?void s(vr(e),n):o(vr(e))}))}))}},Cr=function(e,t){return function(e){xr===e.target&&t.forEach((function(t){var n=t.onexit;t.state=null,n(vr(e))}))}},Or=function(e,t,n){e.classList.add("filepond--hopper");var i=n.catchesDropsOnPage,r=n.requiresDropOnElement,s=n.filterItems,o=void 0===s?function(e){return e}:s,a=yr(e,i?document.documentElement:e,r),l="",c="";a.allowdrop=function(e){return t(o(e))},a.ondrop=function(e,n){var i=o(n);t(i)?(c="drag-drop",u.onload(i,e)):u.ondragend(e)},a.ondrag=function(e){u.ondrag(e)},a.onenter=function(e){c="drag-over",u.ondragstart(e)},a.onexit=function(e){c="drag-exit",u.ondragend(e)};var u={updateHopperState:function(){l!==c&&(e.dataset.hopperState=c,l=c)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){a.destroy()}};return u},Ar=!1,Mr=[],kr=function(e){var t=document.activeElement;if(t&&/textarea|input/i.test(t.nodeName)){for(var n=!1,i=t;i!==document.body;){if(i.classList.contains("filepond--root")){n=!0;break}i=i.parentNode}if(!n)return}ir(e.clipboardData).then((function(e){e.length&&Mr.forEach((function(t){return t(e)}))}))},Pr=function(e){Mr.includes(e)||(Mr.push(e),Ar||(Ar=!0,document.addEventListener("paste",kr)))},Rr=function(e){Me(Mr,Mr.indexOf(e)),0===Mr.length&&(document.removeEventListener("paste",kr),Ar=!1)},Dr=function(){var e=function(e){t.onload(e)},t={destroy:function(){Rr(e)},onload:function(){}};return Pr(e),t},Nr=null,$r=null,Fr=[],Br=function(e,t){e.element.textContent=t},jr=function(e){e.element.textContent=""},qr=function(e,t,n){var i=e.query("GET_TOTAL_ITEMS");Br(e,n+" "+t+", "+i+" "+(1===i?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout($r),$r=setTimeout((function(){jr(e)}),1500)},Vr=function(e){return e.element.parentNode.contains(document.activeElement)},Gr=function(e){var t=e.root,n=e.action,i=t.query("GET_ITEM",n.id).filename,r=t.query("GET_LABEL_FILE_PROCESSING_ABORTED");Br(t,i+" "+r)},zr=function(e){var t=e.root,n=e.action,i=t.query("GET_ITEM",n.id).filename;Br(t,n.status.main+" "+i+" "+n.status.sub)},Ur=$({create:function(e){var t=e.root,n=e.props;t.element.id="filepond--assistant-"+n.id,o(t.element,"role","status"),o(t.element,"aria-live","polite"),o(t.element,"aria-relevant","additions")},ignoreRect:!0,ignoreRectUpdate:!0,write:B({DID_LOAD_ITEM:function(e){var t=e.root,n=e.action;if(Vr(t)){t.element.textContent="";var i=t.query("GET_ITEM",n.id);Fr.push(i.filename),clearTimeout(Nr),Nr=setTimeout((function(){qr(t,Fr.join(", "),t.query("GET_LABEL_FILE_ADDED")),Fr.length=0}),750)}},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action;if(Vr(t)){var i=n.item;qr(t,i.filename,t.query("GET_LABEL_FILE_REMOVED"))}},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root,n=e.action,i=t.query("GET_ITEM",n.id).filename,r=t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");Br(t,i+" "+r)},DID_ABORT_ITEM_PROCESSING:Gr,DID_REVERT_ITEM_PROCESSING:Gr,DID_THROW_ITEM_REMOVE_ERROR:zr,DID_THROW_ITEM_LOAD_ERROR:zr,DID_THROW_ITEM_INVALID:zr,DID_THROW_ITEM_PROCESSING_ERROR:zr}),tag:"span",name:"assistant"}),Hr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.replace(new RegExp(t+".","g"),(function(e){return e.charAt(1).toUpperCase()}))},Wr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Date.now(),r=null;return function(){for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];clearTimeout(r);var l=Date.now()-i,c=function(){i=Date.now(),e.apply(void 0,o)};l<t?n||(r=setTimeout(c,t-l)):c()}},Yr=1e6,Xr=function(e){return e.preventDefault()},Kr=function(e){var t=e.root,n=e.props,i=t.query("GET_ID");i&&(t.element.id=i);var r=t.query("GET_CLASS_NAME");r&&r.split(" ").filter((function(e){return e.length})).forEach((function(e){t.element.classList.add(e)})),t.ref.label=t.appendChildView(t.createChildView(Bi,Object.assign({},n,{translateY:null,caption:t.query("GET_LABEL_IDLE")}))),t.ref.list=t.appendChildView(t.createChildView(Ti,{translateY:null})),t.ref.panel=t.appendChildView(t.createChildView(ii,{name:"panel-root"})),t.ref.assistant=t.appendChildView(t.createChildView(Ur,Object.assign({},n))),t.ref.data=t.appendChildView(t.createChildView(Qi,Object.assign({},n))),t.ref.measure=vn("div"),t.ref.measure.style.height="100%",t.element.appendChild(t.ref.measure),t.ref.bounds=null,t.query("GET_STYLES").filter((function(e){return!G(e.value)})).map((function(e){var n=e.name,i=e.value;t.element.dataset[n]=i})),t.ref.widthPrevious=null,t.ref.widthUpdated=Wr((function(){t.ref.updateHistory=[],t.dispatch("DID_RESIZE_ROOT")}),250),t.ref.previousAspectRatio=null,t.ref.updateHistory=[];var s=window.matchMedia("(pointer: fine) and (hover: hover)").matches,o="PointerEvent"in window;t.query("GET_ALLOW_REORDER")&&o&&!s&&(t.element.addEventListener("touchmove",Xr,{passive:!1}),t.element.addEventListener("gesturestart",Xr));var a=t.query("GET_CREDITS");if(2===a.length){var l=document.createElement("a");l.className="filepond--credits",l.setAttribute("aria-hidden","true"),l.href=a[0],l.tabindex=-1,l.target="_blank",l.rel="noopener noreferrer",l.textContent=a[1],t.element.appendChild(l),t.ref.credits=l}},Qr=function(e){var t=e.root,n=e.props,i=e.actions;if(os({root:t,props:n,actions:i}),i.filter((function(e){return/^DID_SET_STYLE_/.test(e.type)})).filter((function(e){return!G(e.data.value)})).map((function(e){var n=e.type,i=e.data,r=Hr(n.substring(8).toLowerCase(),"_");t.element.dataset[r]=i.value,t.invalidateLayout()})),!t.rect.element.hidden){t.rect.element.width!==t.ref.widthPrevious&&(t.ref.widthPrevious=t.rect.element.width,t.ref.widthUpdated());var r=t.ref.bounds;r||(r=t.ref.bounds=es(t),t.element.removeChild(t.ref.measure),t.ref.measure=null);var s=t.ref,o=s.hopper,a=s.label,l=s.list,c=s.panel;o&&o.updateHopperState();var u=t.query("GET_PANEL_ASPECT_RATIO"),d=t.query("GET_ALLOW_MULTIPLE"),h=t.query("GET_TOTAL_ITEMS"),f=h===(d?t.query("GET_MAX_FILES")||Yr:1),p=i.find((function(e){return"DID_ADD_ITEM"===e.type}));if(f&&p){var m=p.data.interactionMethod;a.opacity=0,d?a.translateY=-40:m===Ee.API?a.translateX=40:m===Ee.BROWSE?a.translateY=40:a.translateY=30}else f||(a.opacity=1,a.translateX=0,a.translateY=0);var g=Jr(t),v=Zr(t),y=a.rect.element.height,b=!d||f?0:y,_=f?l.rect.element.marginTop:0,E=0===h?0:l.rect.element.marginBottom,w=b+_+v.visual+E,x=b+_+v.bounds+E;if(l.translateY=Math.max(0,b-l.rect.element.marginTop)-g.top,u){var T=t.rect.element.width,S=T*u;u!==t.ref.previousAspectRatio&&(t.ref.previousAspectRatio=u,t.ref.updateHistory=[]);var L=t.ref.updateHistory;L.push(T);var I=2;if(L.length>2*I)for(var C=L.length,O=C-10,A=0,M=C;M>=O;M--)if(L[M]===L[M-2]&&A++,A>=I)return;c.scalable=!1,c.height=S;var k=S-b-(E-g.bottom)-(f?_:0);v.visual>k?l.overflow=k:l.overflow=null,t.height=S}else if(r.fixedHeight){c.scalable=!1;var P=r.fixedHeight-b-(E-g.bottom)-(f?_:0);v.visual>P?l.overflow=P:l.overflow=null}else if(r.cappedHeight){var R=w>=r.cappedHeight,D=Math.min(r.cappedHeight,w);c.scalable=!0,c.height=R?D:D-g.top-g.bottom;var N=D-b-(E-g.bottom)-(f?_:0);w>r.cappedHeight&&v.visual>N?l.overflow=N:l.overflow=null,t.height=Math.min(r.cappedHeight,x-g.top-g.bottom)}else{var $=h>0?g.top+g.bottom:0;c.scalable=!0,c.height=Math.max(y,w-$),t.height=Math.max(y,x-$)}t.ref.credits&&c.heightCurrent&&(t.ref.credits.style.transform="translateY("+c.heightCurrent+"px)")}},Jr=function(e){var t=e.ref.list.childViews[0].childViews[0];return t?{top:t.rect.element.marginTop,bottom:t.rect.element.marginBottom}:{top:0,bottom:0}},Zr=function(e){var t=0,n=0,i=e.ref.list,r=i.childViews[0],s=r.childViews.filter((function(e){return e.rect.element.height})),o=e.query("GET_ACTIVE_ITEMS").map((function(e){return s.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));if(0===o.length)return{visual:t,bounds:n};var a=r.rect.element.width,l=fi(r,o,i.dragCoordinates),c=o[0].rect.element,u=c.marginTop+c.marginBottom,d=c.marginLeft+c.marginRight,h=c.width+d,f=c.height+u,p=void 0!==l&&l>
2=0?1:0,m=o.find((function(e){return e.markedForRemoval&&e.opacity<.45}))?-1:0,g=o.length+p+m,v=hi(a,h);return 1===v?o.forEach((function(e){var i=e.rect.element.height+u;n+=i,t+=i*e.opacity})):(n=Math.ceil(g/v)*f,t=n),{visual:t,bounds:n}},es=function(e){var t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:0===t?null:t}},ts=function(e,t){var n=e.query("GET_ALLOW_REPLACE"),i=e.query("GET_ALLOW_MULTIPLE"),r=e.query("GET_TOTAL_ITEMS"),s=e.query("GET_MAX_FILES"),o=t.length;return!i&&o>1?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:Ft("warning",0,"Max files")}),!0):!(!i&&n||!(Z(s=i?s:1)&&r+o>s)||(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:Ft("warning",0,"Max files")}),0))},ns=function(e,t,n){var i=e.childViews[0];return fi(i,t,{left:n.scopeLeft-i.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},is=function(e){var t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),i=t&&!n;if(i&&!e.ref.hopper){var r=Or(e.element,(function(t){var n=e.query("GET_BEFORE_DROP_FILE")||function(){return!0};return!e.query("GET_DROP_VALIDATION")||t.every((function(t){return He("ALLOW_HOPPER_ITEM",t,{query:e.query}).every((function(e){return!0===e}))&&n(t)}))}),{filterItems:function(t){var n=e.query("GET_IGNORED_FILES");return t.filter((function(e){return!Zt(e)||!n.includes(e.name.toLowerCase())}))},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});r.onload=function(t,n){var i=e.ref.list.childViews[0].childViews.filter((function(e){return e.rect.element.height})),r=e.query("GET_ACTIVE_ITEMS").map((function(e){return i.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));Ue("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(ts(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:ns(e.ref.list,r,n),interactionMethod:Ee.DROP})})),e.dispatch("DID_DROP",{position:n}),e.dispatch("DID_END_DRAG",{position:n})},r.ondragstart=function(t){e.dispatch("DID_START_DRAG",{position:t})},r.ondrag=Wr((function(t){e.dispatch("DID_DRAG",{position:t})})),r.ondragend=function(t){e.dispatch("DID_END_DRAG",{position:t})},e.ref.hopper=r,e.ref.drip=e.appendChildView(e.createChildView(zi))}else!i&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},rs=function(e,t){var n=e.query("GET_ALLOW_BROWSE"),i=e.query("GET_DISABLED"),r=n&&!i;r&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(Di,Object.assign({},t,{onload:function(t){Ue("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(ts(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:Ee.BROWSE})}))}})),0):!r&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},ss=function(e){var t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),i=t&&!n;i&&!e.ref.paster?(e.ref.paster=Dr(),e.ref.paster.onload=function(t){Ue("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(ts(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:Ee.PASTE})}))}):!i&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},os=B({DID_SET_ALLOW_BROWSE:function(e){var t=e.root,n=e.props;rs(t,n)},DID_SET_ALLOW_DROP:function(e){var t=e.root;is(t)},DID_SET_ALLOW_PASTE:function(e){var t=e.root;ss(t)},DID_SET_DISABLED:function(e){var t=e.root,n=e.props;is(t),ss(t),rs(t,n),t.query("GET_DISABLED")?t.element.dataset.disabled="disabled":t.element.removeAttribute("data-disabled")}}),as=$({name:"root",read:function(e){var t=e.root;t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:Kr,write:Qr,destroy:function(e){var t=e.root;t.ref.paster&&t.ref.paster.destroy(),t.ref.hopper&&t.ref.hopper.destroy(),t.element.removeEventListener("touchmove",Xr),t.element.removeEventListener("gesturestart",Xr)},mixins:{styles:["height"]}}),ls=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null,i=Xe(),r=n(ge(i),[dt,_e(i)],[pn,be(i)]);r.dispatch("SET_OPTIONS",{options:e});var o=function(){document.hidden||r.dispatch("KICK")};document.addEventListener("visibilitychange",o);var a=null,l=!1,c=!1,u=null,d=null,h=function(){l||(l=!0),clearTimeout(a),a=setTimeout((function(){l=!1,u=null,d=null,c&&(c=!1,r.dispatch("DID_STOP_RESIZE"))}),500)};window.addEventListener("resize",h);var f=as(r,{id:we()}),p=!1,m=!1,g={_read:function(){l&&(d=window.innerWidth,u||(u=d),c||d===u||(r.dispatch("DID_START_RESIZE"),c=!0)),m&&p&&(p=null===f.element.offsetParent),p||(f._read(),m=f.rect.element.hidden)},_write:function(e){var t=r.processActionQueue().filter((function(e){return!/^SET_/.test(e.type)}));p&&!t.length||(E(t),p=f._write(e,t,c),$e(r.query("GET_ITEMS")),p&&r.processDispatchQueue())}},v=function(e){return function(t){var n={type:e};if(!t)return n;if(t.hasOwnProperty("error")&&(n.error=t.error?Object.assign({},t.error):null),t.status&&(n.status=Object.assign({}
2,t.status)),t.file&&(n.output=t.file),t.source)n.file=t.source;else if(t.item||t.id){var i=t.item?t.item:r.query("GET_ITEM",t.id);n.file=i?Ne(i):null}return t.items&&(n.items=t.items.map(Ne)),/progress/.test(e)&&(n.progress=t.progress),t.hasOwnProperty("origin")&&t.hasOwnProperty("target")&&(n.origin=t.origin,n.target=t.target),n}},y={DID_DESTROY:v("destroy"),DID_INIT:v("init"),DID_THROW_MAX_FILES:v("warning"),DID_INIT_ITEM:v("initfile"),DID_START_ITEM_LOAD:v("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:v("addfileprogress"),DID_LOAD_ITEM:v("addfile"),DID_THROW_ITEM_INVALID:[v("error"),v("addfile")],DID_THROW_ITEM_LOAD_ERROR:[v("error"),v("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[v("error"),v("removefile")],DID_PREPARE_OUTPUT:v("preparefile"),DID_START_ITEM_PROCESSING:v("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:v("processfileprogress"),DID_ABORT_ITEM_PROCESSING:v("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:v("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:v("processfiles"),DID_REVERT_ITEM_PROCESSING:v("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[v("error"),v("processfile")],DID_REMOVE_ITEM:v("removefile"),DID_UPDATE_ITEMS:v("updatefiles"),DID_ACTIVATE_ITEM:v("activatefile"),DID_REORDER_ITEMS:v("reorderfiles")},b=function(e){var t=Object.assign({pond:R},e);delete t.type,f.element.dispatchEvent(new CustomEvent("FilePond:"+e.type,{detail:t,bubbles:!0,cancelable:!0,composed:!0}));var n=[];e.hasOwnProperty("error")&&n.push(e.error),e.hasOwnProperty("file")&&n.push(e.file);var i=["type","error","file"];Object.keys(e).filter((function(e){return!i.includes(e)})).forEach((function(t){return n.push(e[t])})),R.fire.apply(R,[e.type].concat(n));var s=r.query("GET_ON"+e.type.toUpperCase());s&&s.apply(void 0,n)},E=function(e){e.length&&e.filter((function(e){return y[e.type]})).forEach((function(e){var t=y[e.type];(Array.isArray(t)?t:[t]).forEach((function(t){"DID_INIT_ITEM"===e.type?b(t(e.data)):setTimeout((function(){b(t(e.data))}),0)}))}))},w=function(e){return r.dispatch("SET_OPTIONS",{options:e})},x=function(e){return r.query("GET_ACTIVE_ITEM",e)},T=function(e){return new Promise((function(t,n){r.dispatch("REQUEST_ITEM_PREPARE",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})}))},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){C([{source:e,options:t}],{index:t.index}).then((function(e){return n(e&&e[0])})).catch(i)}))},L=function(e){return e.file&&e.id},I=function(e,t){return"object"!=typeof e||L(e)||t||(t=e,e=void 0),r.dispatch("REMOVE_ITEM",Object.assign({},t,{query:e})),null===r.query("GET_ACTIVE_ITEM",e)},C=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise((function(e,n){var i=[],s={};if(V(t[0]))i.push.apply(i,t[0]),Object.assign(s,t[1]||{});else{var o=t[t.length-1];"object"!=typeof o||o instanceof Blob||Object.assign(s,t.pop()),i.push.apply(i,t)}r.dispatch("ADD_ITEMS",{items:i,index:s.index,interactionMethod:Ee.API,success:e,failure:n})}))},O=function(){return r.query("GET_ACTIVE_ITEMS")},A=function(e){return new Promise((function(t,n){r.dispatch("REQUEST_ITEM_PROCESSING",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})}))},M=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=Array.isArray(t[0])?t[0]:t,r=i.length?i:O();return Promise.all(r.map(T))},k=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=Array.isArray(t[0])?t[0]:t;if(!i.length){var r=O().filter((function(e){return!(e.status===Fe.IDLE&&e.origin===Be.LOCAL)&&e.status!==Fe.PROCESSING&&e.status!==Fe.PROCESSING_COMPLETE&&e.status!==Fe.PROCESSING_REVERT_ERROR}));return Promise.all(r.map(A))}return Promise.all(i.map(A))},P=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i,r=Array.isArray(t[0])?t[0]:t;"object"==typeof r[r.length-1]?i=r.pop():Array.isArray(t[0])&&(i=t[1]);var s=O();return r.length?r.map((function(e){return _(e)?s[e]?s[e].id:null:e})).filter((function(e){return e})).map((function(e){return I(e,i)})):Promise.all(s.map((function(e){return I(e,i)})))},R=Object.assign({},Pe(),{},g,{},ye(r,i),{setOptions:w,addFile:S,addFiles:C,getFile:x,processFile:A,prepareFile:T,removeFile:I,moveFile:function(e,t){return r.dispatch("MOVE_ITEM",{query:e,index:t})}
2,getFiles:O,processFiles:k,removeFiles:P,prepareFiles:M,sort:function(e){return r.dispatch("SORT",{compare:e})},browse:function(){var e=f.element.querySelector("input[type=file]");e&&e.click()},destroy:function(){R.fire("destroy",f.element),r.dispatch("ABORT_ALL"),f._destroy(),window.removeEventListener("resize",h),document.removeEventListener("visibilitychange",o),r.dispatch("DID_DESTROY")},insertBefore:function(e){return j(f.element,e)},insertAfter:function(e){return q(f.element,e)},appendTo:function(e){return e.appendChild(f.element)},replaceElement:function(e){j(f.element,e),e.parentNode.removeChild(e),t=e},restoreElement:function(){t&&(q(t,f.element),f.element.parentNode.removeChild(f.element),t=null)},isAttachedTo:function(e){return f.element===e||t===e},element:{get:function(){return f.element}},status:{get:function(){return r.query("GET_STATUS")}}});return r.dispatch("DID_INIT"),s(R)},cs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return r(Xe(),(function(e,n){t[e]=n[0]})),ls(Object.assign({},t,{},e))},us=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},ds=function(e){return Hr(e.replace(/^data-/,""))},hs=function e(t,n){r(n,(function(n,i){r(t,(function(e,r){var s=new RegExp(n);if(s.test(e)&&(delete t[e],!1!==i))if(X(i))t[i]=r;else{var o=i.group;ae(i)&&!t[o]&&(t[o]={}),t[o][us(e.replace(s,""))]=r}})),i.mapping&&e(t[i.group],i.mapping)}))},fs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];r(e.attributes,(function(t){n.push(e.attributes[t])}));var i=n.filter((function(e){return e.name})).reduce((function(t,n){var i=o(e,n.name);return t[ds(n.name)]=i===n.name||i,t}),{});return hs(i,t),i},ps=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};He("SET_ATTRIBUTE_TO_OPTION_MAP",n);var i=Object.assign({},t),r=fs("FIELDSET"===e.nodeName?e.querySelector("input[type=file]"):e,n);Object.keys(r).forEach((function(e){ae(r[e])?(ae(i[e])||(i[e]={}),Object.assign(i[e],r[e])):i[e]=r[e]})),i.files=(t.files||[]).concat(Array.from(e.querySelectorAll("input:not([type=file])")).map((function(e){return{source:e.value,options:{type:e.dataset.type}}})));var s=cs(i);return e.files&&Array.from(e.files).forEach((function(e){s.addFile(e)})),s.replaceElement(e),s},ms=function(){return t(arguments.length<=0?void 0:arguments[0])?ps.apply(void 0,arguments):cs.apply(void 0,arguments)},gs=["fire","_read","_write"],vs=function(e){var t={};return Re(e,t,gs),t},ys=function(e,t){return e.replace(/(?:{([a-zA-Z]+)})/g,(function(e,n){return t[n]}))},bs=function(e){var t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),i=new Worker(n);return{transfer:function(e,t){},post:function(e,t,n){var r=we();i.onmessage=function(e){e.data.id===r&&t(e.data.message)},i.postMessage({id:r,message:e},n)},terminate:function(){i.terminate(),URL.revokeObjectURL(n)}}},_s=function(e){return new Promise((function(t,n){var i=new Image;i.onload=function(){t(i)},i.onerror=function(e){n(e)},i.src=e}))},Es=function(e,t){var n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},ws=function(e){return Es(e,e.name)},xs=[],Ts=function(e){if(!xs.includes(e)){xs.push(e);var t=e({addFilter:We,utils:{Type:Ge,forin:r,isString:X,isFile:Zt,toNaturalFileSize:Tn,replaceInString:ys,getExtensionFromFilename:yt,getFilenameWithoutExtension:Qt,guesstimateMimeType:nr,getFileFromBlob:wt,getFilenameFromURL:vt,createRoute:B,createWorker:bs,createView:$,createItemAPI:Ne,loadImage:_s,copyFile:ws,renameFile:Es,createBlob:Tt,applyFilterChain:Ue,text:yn,getNumericAspectRatioFromString:Ze},views:{fileActionButton:xn}});Ye(t.options)}},Ss=function(){return"[object OperaMini]"===Object.prototype.toString.call(window.operamini)},Ls=function(){return"Promise"in window},Is=function(){return"slice"in Blob.prototype},Cs=function(){return"URL"in window&&"createObjectURL"in window.URL},Os=function(){return"visibilityState"in document},As=function(){return"performance"in window},Ms=function(){return"supports"in(window.CSS||{})},ks=function(){return/MSIE|Trident/.test(window.navigator.userAgent)}
2,Ps=(Fn=m()&&!Ss()&&Os()&&Ls()&&Is()&&Cs()&&As()&&(Ms()||ks()),function(){return Fn}),Rs={apps:[]},Ds="filepond",Ns=function(){};if(e.Status={},e.FileStatus={},e.FileOrigin={},e.OptionTypes={},e.create=Ns,e.destroy=Ns,e.parse=Ns,e.find=Ns,e.registerPlugin=Ns,e.getOptions=Ns,e.setOptions=Ns,Ps()){F((function(){Rs.apps.forEach((function(e){return e._read()}))}),(function(e){Rs.apps.forEach((function(t){return t._write(e)}))}));var $s=function t(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:Ps,create:e.create,destroy:e.destroy,parse:e.parse,find:e.find,registerPlugin:e.registerPlugin,setOptions:e.setOptions}})),document.removeEventListener("DOMContentLoaded",t)};"loading"!==document.readyState?setTimeout((function(){return $s()}),0):document.addEventListener("DOMContentLoaded",$s);var Fs=function(){return r(Xe(),(function(t,n){e.OptionTypes[t]=n[1]}))};e.Status=Object.assign({},tt),e.FileOrigin=Object.assign({},Be),e.FileStatus=Object.assign({},Fe),e.OptionTypes={},Fs(),e.create=function(){var t=ms.apply(void 0,arguments);return t.on("destroy",e.destroy),Rs.apps.push(t),vs(t)},e.destroy=function(e){var t=Rs.apps.findIndex((function(t){return t.isAttachedTo(e)}));return t>=0&&(Rs.apps.splice(t,1)[0].restoreElement(),!0)},e.parse=function(t){return Array.from(t.querySelectorAll("."+Ds)).filter((function(e){return!Rs.apps.find((function(t){return t.isAttachedTo(e)}))})).map((function(t){return e.create(t)}))},e.find=function(e){var t=Rs.apps.find((function(t){return t.isAttachedTo(e)}));return t?vs(t):null},e.registerPlugin=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(Ts),Fs()},e.getOptions=function(){var e={};return r(Xe(),(function(t,n){e[t]=n[0]})),e},e.setOptions=function(t){return ae(t)&&(Rs.apps.forEach((function(e){e.setOptions(t)})),Ke(t)),e.getOptions()}}e.supported=Ps,Object.defineProperty(e,"__esModule",{value:!0})}(t)}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,n),s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};!function(){"use strict";n.r(i);class e{constructor(e){this.element=e}init(){console.warn("Component class init() method expected to be overridden - maybe we don't need to inherit from Component class?",this.element)}}const t=document.querySelector("body"),r=[];function s(e,t){document.querySelectorAll(e).forEach((e=>new t(e).init())),r.push({selector:e,ComponentClass:t})}new MutationObserver((function(e){e.forEach((e=>{"childList"===e.type&&e.addedNodes.forEach((e=>{void 0!==e.querySelector&&function(e){r.forEach((t=>{const n=e.matches(t.selector)?e:e.querySelector(t.selector);n&&new t.ComponentClass(n).init()}))}(e)}))}))})).observe(t,{childList:!0,subtree:!0});const o=767,a=1024,l=1279,c=40,u=38,d=13,h=27,f=9;let p=0;"a b c d e f g h i j k l m n o p q r s t u v w x y z".split(" "),"0 1 2 3 4 5 6 7 8 9".split(" ");const m={regexAbsoluteHttpUrl:/^(https?:)?\/\//i,regexBlank:/[^\s]+/,regexBlankHtml:/[^(\s|\&(nbsp|emsp);|\<br\ *\/?\>|\u2003)]+/i,regexHttpProtocol:/^(https?:)/i,regexLtrim:/^\s\s*/,regexRtrim:/\s\s*$/,regexNumber:/^[-]?(([0-9]+[\.]?[0-9]*)|([0-9]*[\.]?[0-9]+))$/,regexPlus:/\+/g,regexQueryStrKeyValue:/([^&=]+)(=?)([^&]*)/g,regexRegexp:/[-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,regexThousand:/(\d+)(\d{3})/,regexUrlParse:/^(?:((?:([^:\/?#\.]+):)?(?:\/\/(?:(?:(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?(?:\/?([^?#]*)))((?:\?([^#]*)))?((?:#(.*)))?)/,safeHtmlRegex:/([<>"'])/g};function g(e){if(w(e)||null===e)return"";const t=[];return Object.keys(e).forEach((n=>{const i=e[n];if(null===i||"object"!=typeof i&&"function"!=typeof i){let e=encodeURIComponent(n);null!==i&&(e+=`=${encodeURIComponent(i)}
2`),t.push(e)}})),t.join("&")}function v(e,t=300){if("function"!=typeof e)return!1;let n;return function(...i){clearTimeout(n),n=setTimeout((()=>{e.apply(this,i)}),t)}}const y=async({headers:e,method:t,payload:n,url:i})=>{let r,s=i;const o={method:t,headers:e};"GET"===t?(s=new URL(i),s.search=new URLSearchParams(n)):o.body=JSON.stringify(n);try{const e=await fetch(s,o);if(!e.ok){const t=`An error has occured: ${e.status} - ${e.statusText}`;throw new Error(t)}const t=e.headers.get("content-type");if(t&&t.includes("application/json"))r=await e.json();else{if(!t||!t.includes("text/html"))throw new Error("Oops, we haven't got anything!");r=e.text()}}catch(e){console.log(e)}return r};function b(e){const t=document.head.querySelector(`meta[name="${e}"]`);return t?.content||""}function _(){const e=document.getElementsByTagName("body")[0];return!!e&&e.classList.contains("edit")}function E(e){return null===e||""===e||void 0===e}function w(e){return void 0===e||"object"!=typeof e||null===e||0===Object.keys(e).length}function x(){const e=`(max-width: ${o}px)`;return window.matchMedia(e).matches}function T(){const{hash:e}=window.location;return null!==e&&e.length>0?S(e.replace("#","")):{}}function S(e){if(void 0===e||"string"!=typeof e||null===e)return{};let t;const n={};if(void 0!==(i=e)&&"string"==typeof i&&null!==i&&!E(i)&&m.regexBlank.test(i))for(m.regexQueryStrKeyValue.lastIndex=0;t=m.regexQueryStrKeyValue.exec(e);){const e=decodeURIComponent(t[1].replace(m.regexPlus," "));""!==t[2]?n[e]=decodeURIComponent(t[3].replace(m.regexPlus," ")):n[e]=null}var i;return n}function L(e){if("string"!=typeof e||null===e)return e;m.regexUrlParse.lastIndex=0;const t=m.regexUrlParse.exec(e),n=["","path","scheme","","","host","port","relPath","queryStringFull","queryString","hashFull","hash"],i={};for(let e=1;e<12;e+=1)E(t[e])||""===n[e]||(i[n[e]]=t[e]);return null===i.path&&(i.path=""),null!==i.hash||E(i.hashFull)||(i.hash=""),null!==i.queryString||E(i.queryStringFull)||(i.queryString=""),i.queryParams=S(t[9]),delete i.queryStringFull,delete i.hashFull,i}function I(e){return null===e||"string"!=typeof e?"":e.toString().replace(m.safeHtmlRegex,((e,t)=>{switch(t){case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case"'":return"&apos;";default:return""}}))}function C(e,t,n){void 0===e||"string"!=typeof t&&"number"!=typeof t||"string"!=typeof n&&"number"!=typeof n||null===e||null===n||null===t||e.setAttribute(t,n)}function O(e,t=300){if("function"!=typeof e)return!1;let n=!1;return function(){n||(e.call(),n=!0,setTimeout((()=>{n=!1}),t))}}const A=e=>{if(e&&e.getAttribute){"true"===e.getAttribute("aria-expanded")?e.setAttribute("aria-expanded","false"):e.setAttribute("aria-expanded","true")}},M=e=>{e&&e.getAttribute&&e.setAttribute("aria-hidden",!e.getAttribute("aria-hidden"))};function k(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,k)}function P(e){return Object.keys(JSON.parse(e))[0]}function R(e,t){if(window.location.hash){const n=window.location.hash.substring(1);if(document.getElementById(n)&&n&&e)for(let i=0;i<e.elements[t].length;i+=1){if(e.elements[t][i].id===n)return i}}return-1}function D(e){try{return"dataLayer"in e&&{dataLayer:{...JSON.parse(e.dataLayer)}}}catch(e){return{}}}const N=(e,t,n={})=>{if("function"==typeof e&&t instanceof HTMLElement)if("IntersectionObserver"in window){const i=(t,n)=>{t.forEach((t=>{const{isIntersecting:i}=t;i&&(e({entry:t,enabled:!0}),n.disconnect())}))};new IntersectionObserver(i,{...{root:null,threshold:0},...n}).observe(t)}else e({entry:void 0,enabled:!1})};var $=n(348),F=n.n($);class B{constructor(e){this.element=e}onIntersection(e){const{enabled:t}=e;t||(this.options.lazyLoaded=!1,this.options.backgroundImage||this.removeLazyLoadingStyles()),this.loadImage()}addEventListners(){const e=this.update.bind(this);if(window.addEventListener("resize",e),window.addEventListener("update",e),this.options.lazyLoaded&&(this.useExternalObserver||N(this.onIntersection.bind(this),this.element),!this.options.backgroundImage)){const e=this.removeLazyLoadingStyles.bind(this),t=this.addLazyLoadingStyles.bind(this);this.imageEvents().then((()=>e())).catch((e=>t(e)))}}imageEvents(e){return new Promise(((t,n)=>{e.addEventListener("load",t),e.addEventListener("error",n)}))}update(){if(!this.options.lazyLoaded||_())return void this.loadImage();const e=this.elements.link?this.elements.link:this.element;e&&(e=>{if(null===e.offsetParent)return!1;const t=window.pageYOffset,n=t+document.documentElement.clientHeight,i=e.getBoundingClientRect().top+t;return i+e.clientHeight>=t-0&&i<=n+0})(e)&&this.loadImage()}removeLazyLoadingStyles(){const{image:e}=this.elements;e&&e.classList.remove("cmp-image__image--lazy-loading")}addLazyLoadingStyles(){const{image:e}=this.elements;e&&e.classList.add("cmp-image__image--lazy-loading")}loadImage(){const e=this.getImageSrc();if(!this.options.backgroundImage){const{image:t}=this.elements;return void(t.getAttribute("src")!==e&&t.setAttribute("src",e))}const t=this.element.style.backgroundImage.match(/url\(["']?([^"']*)["']?\)/);(t&&t!==e||!t)&&(this.element.style.backgroundImage=`url(${e})`)}getImageSrc(){const e="{.width}";if(!this.hasWidths())return this.options.src.replace(e,"");let t;if(this.options.dynamicMediaImage&&Object.prototype.hasOwnProperty.call(this.options,"smartCrops")){const e=this.getOptimalWidth(this.options.widths,!1);t=`${this.options.smartCrops[e]}`}else{const e=this.getOptimalWidth(this.options.widths);t=`${this.options.dynamicMediaImage?"":"."}${e}`}return this.options.src.replace(e,t)}hasWidths(){return this.options.widths&&this.options.widths.length>0}getOptimalWidth(e,t=!0){const n=window.devicePixelRatio||1;let i=this.element,r=i.clientWidth;for(;0===r&&i.parentNode;)i=i.parentNode,r=i.clientWidth;const s=t?r*n:r,o=this.options.widths.length;let a=0;for(;a<o-1&&this.options.widths[a]<s;)a+=1;return e[a].toString()}async setupOptions(){const e=(t=this.element,Object.entries(t.dataset||{}).reduce(((e,[t,n])=>({...e,[t]:"true"===n||"false"===n?"true"===n.toLowerCase():n})),{}));var t,n;if(this.options={...e,..."src"in e&&{src:decodeURIComponent(e.src)},..."widths"in e&&{widths:(n=e.widths,"string"!=typeof n?[]:n.split(",").reduce(((e,t)=>{const n=e,i=parseFloat(t);return Number.isNaN(i)||n.push(i),n}),[]))},...D(e)},this.options.src&&Object.prototype.hasOwnProperty.call(this.options,"dynamicMediaImage")&&"SmartCrop:Auto"===this.options.smartCropRendition){const e=await(async e=>{const t=[];try{const n="{.width}",i=`${e.split(n)[0]}?req=set,json`,r=await F()(i,{jsonpCallbackFunction:"s7jsonResponse"}),s=await r.json();if(s&&s?.set?.relation&&s?.set?.relation?.length>0)for(let e=0;e<s.set.relation.length;e+=1)s.set.relation[e]?.userdata?.SmartCropWidth&&s.set.relation[e]?.userdata?.SmartCropDef&&(t[parseInt(s.set.relation[e].userdata.SmartCropWidth,10)]=`:${s.set.relation[e].userdata.SmartCropDef}`)}catch(e){console.log(e)}return t})(this.options.src);if(e.length<=1)return this.options.widths=[],void this.update();this.options.smartCrops=e,this.options.widths=Object.keys(this.options.smartCrops).reduce(((e,t)=>[...e,...parseInt(t,10)&&[parseInt(t,10)]]),[])}this.addEventListners(),this.options.lazyLoaded||this.update()}init({externalObserver:e=!1}={}){return this.elements={image:this.element.querySelector(".cmp-image__image"),link:this.element.querySelector(".cmp-image__link")},this.useExternalObserver=e,this.setupOptions(),this}}s(".cmp-article-header",class extends e{init(){this.elements={leadImage:this.element.querySelector(".leadImage div")},this.elements.leadImage&&new B(this.elements.leadImage).init()}});const j="article-list",q="article-teaser";s(`.${j}`,class extends e{getNextPageUrl(){let e="",t="";return""!==this.tagId&&(t+=`.tag.${window.btoa(this.tagId)}`),""!==this.categoryTagId&&(t+=`.category.${window.btoa(this.categoryTagId)}`),e=""!==t?this.dataBaseUrl.replace(".html",`.p${this.nextPage}${t}.html`):this.dataBaseUrl.replace(".html",`.p${this.nextPage}.html`),e}updateLoadMoreButton(){this.elements.loadMoreButton.style.display=this.canLoadMore?"block":"none"}initialLoadCheck(){null!==this.element.querySelector("[data-next]")&&(this.canLoadMore=!0,this.updateLoadMoreButton())}loadPosts(e=!1){const t=this,n=`${window.location.origin}${this.getNextPageUrl()}`;y({method:"GET",url:n}).then((n=>{!function(n){const i=document.createElement("div");i.style.display="none",i.innerHTML=n,t.elements.postsContainer.appendChild(i),t.canLoadMore=null!==i.querySelector("[data-next]"),[...i.getElementsByClassName("teaser")].map((e=>{const n=e,i=e.querySelector(`.${q}`);return n.style.display="none",i.classList.add("loading"),t.elements.postsContainer.appendChild(e)})),t.elements.postsContainer.removeChild(i),t.nextPage+=1,t.updateLoadMoreButton(),t.videoButton();const r=t.elements.postsContainer.getElementsByClassName("teaser");r.length>0?(t.elements.noResults.classList.add("hide"),t.elements.noResults.classList.remove("show"),[...r].map((e=>{const t=e,n=e.querySelector(`.${q}`);return t.style.display="block",setTimeout((()=>n.classList.remove("loading")),80)})),t.replaceImages(),t.updateDescriptions(),e&&r[t.numberArticleShowing].querySelector("a").focus()):(t.elements.noResults.classList.add("show"),t.elements.noResults.classList.remove("hide"))}(n)}))}replaceImages(){[...this.elements.teaserCards()].map((e=>{if(!e.querySelector("img"))return!1;const t=e.querySelector(`.${q}__image`),n=`url("${t.querySelector("div[data-asset]").dataset.asset}")`;return t.style.backgroundImage!==n&&(t.style.backgroundImage=n),!0}))}updateDescriptions(){const e=this;[...this.elements.teaserCards()].map((t=>{const n=t.querySelector(`.${q}__description`),i=n.innerText;return!(!n||!i)&&(i.length>=e.maxDescriptionLength&&(n.innerText=`${i.substr(0,e.maxDescriptionLength-3)}...`),!0)}))}updateVideoAspectRatio(e){const t=e.dataset.videoAspectRatio;e.querySelector(".cmp-video-external__inner").style.paddingBottom=`calc(${t} - 100px)`}openVideoModal(e){const t=e.querySelector(".cmp-video-external"),n=e.querySelector(`.${q}__video-modal`);this.updateVideoAspectRatio(t),n.classList.toggle("open"),document.body.classList.add("no-scroll"),document.documentElement.classList.add("no-scroll")}closeVideoModal(e){e.querySelector(`.${q}__video-modal`).classList.toggle("open"),document.body.classList.remove("no-scroll"),document.documentElement.classList.remove("no-scroll");const t=e.querySelector("iframe"),n=t.src;t.src=n}
2videoButton(){Array.from(this.elements.teaserCards()).forEach((e=>{const t=e.querySelector(`.${q}__video-button`),n=e.querySelector(".fa-xmark");if(t&&"false"===t.dataset.videoInitialized){let i=e.querySelector(`.${q}__video-modal`).dataset;t.addEventListener("click",(()=>{this.openVideoModal(e),i="true"})),n.addEventListener("click",(()=>{this.closeVideoModal(e),i="false"})),document.addEventListener("keydown",(t=>{"Escape"!==t.key&&27!==t.keyCode||"true"!==i||(this.closeVideoModal(e),i="false")})),t.dataset.videoInitialized="true"}}))}assignCardVariantClass(){this.elements.asideWrapper.querySelector(".article-list").classList.add("cmp-article-list--card-variant")}addEventListeners(){const e=this;this.elements.loadMoreButton.addEventListener("click",(function(t){t.preventDefault(),e.numberArticleShowing=e.elements.teaserCards().length,e.loadPosts(!0)})),window.addEventListener("hashchange",(function(){e.elements.postsContainer.innerHTML="",e.nextPage=1;const t=T();e.tagId=t.tagId||"",e.categoryTagId=t.categoryTagId||"",e.loadPosts()}))}init(){if(this.elements={asideWrapper:document.querySelector(".aside-wrapper"),container:this.element.querySelector(`.cmp-${j}__container`),postsContainer:this.element.querySelector(`.cmp-${j}__posts`),loadMoreButton:this.element.querySelector(`.cmp-${j}__load-more`),noResults:this.element.querySelector(`.cmp-${j}__no-results`),teaserCards:()=>this.element.getElementsByClassName(q)},this.elements.asideWrapper&&this.assignCardVariantClass(),this.elements.container){this.nextPage=1,this.dataBaseUrl=this.elements.container.dataset.path,this.canLoadMore=!1,this.maxDescriptionLength=108;const e=T();this.tagId=e.tagId||"",this.categoryTagId=e.categoryTagId||"",this.addEventListeners(),this.loadPosts(),this.initialLoadCheck()}}});const V="cmp-category-navigation";s(`.${V}`,class extends e{setCategoryToActive(e){const t=e.classList.contains("active");this.elements.categories.forEach((e=>{e.classList.remove("active")})),t?this.hideChildCategories(e):(e.parentElement.parentElement.classList.contains(`${V}__list--child`)||this.hideAllChildCategories(),e.classList.add("active"),this.showChildCategories(e),this.elements.filterName.textContent=e.textContent)}setActiveBasedOffTagId(){let e=this.element.querySelector("a.show-all");""!==this.categoryTagId&&this.elements.categories.forEach((t=>{const n=t.getAttribute("href");void 0!==n&&n.includes(encodeURIComponent(this.categoryTagId))&&(e=t)})),this.setCategoryToActive(e)}showChildCategories(e){e.parentElement.querySelectorAll(`.${V}__list--child`).length&&e.parentElement.querySelectorAll(`.${V}__list--child`).forEach((e=>e.classList.remove("hide")))}hideAllChildCategories(){window.innerWidth>1024?document.querySelectorAll(`.${V}__list--child`).forEach((e=>e.classList.add("hide"))):document.querySelectorAll(`.${V}__icon`).forEach((e=>e.classList.add("hide"))),window.onresize=()=>{window.innerWidth>1024?(document.querySelectorAll(`.${V}__list--child`).forEach((e=>e.classList.add("hide"))),document.querySelectorAll(`.${V}__icon`).forEach((e=>e.classList.remove("hide"))),document.querySelectorAll(`.${V}__icon`).forEach((e=>e.classList.add("show")))):window.innerWidth<1024&&(document.querySelectorAll(`.${V}__list--child`).forEach((e=>e.classList.remove("hide"))),document.querySelectorAll(`.${V}__icon`).forEach((e=>e.classList.remove("show"))),document.querySelectorAll(`.${V}__icon`).forEach((e=>e.classList.add("hide"))))}}hideChildCategories(e){if(e.parentElement.parentElement.classList.contains(`${V}__list--child`))return;e.parentElement.children.forEach((e=>{e.classList.contains(`${V}__list--child`)&&e.classList.add("hide")}));const t=e.nextElementSibling?e.nextElementSibling:null;null!==t&&t.classList.add("hide")}checkFilterPosition(){const{filter:e}=this.elements,t=e.offsetTop;window.innerWidth<1024&&(window.onscroll=()=>{const n=document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop;e.className=n>=t?`${V}__filter sticky--active`:`${V}__filter`})}checkWindowResize(){window.innerWidth<1024&&(window.onresize=()=>{this.checkFilterPosition()})}addEventListeners(){const e=this;function t(t){this.classList.contains("show-all")&&(t.preventDefault(),window.location.hash="nt"),"true"===t.target.dataset.isPrimaryNoLoad&&t.preventDefault(),e.setCategoryToActive(this),n()}function n(){document.querySelector(`.${V}__list`).className=`${V}__list`}
2this.elements.categories.forEach((e=>e.addEventListener("click",t))),this.elements.filterIcon.addEventListener("click",(function(){document.querySelector(`.${V}__list`).className=`${V}__list active`})),this.elements.filterClose.addEventListener("click",n)}init(){this.elements={categories:this.element.querySelectorAll(`.${V}__list-item-link`),filter:this.element.querySelector(`.${V}__filter`),filterClose:this.element.querySelector(`.${V}__list-header-icon`),filterIcon:this.element.querySelector(`.${V}__filter-icon`),filterName:this.element.querySelector(`.${V}__filter-name`)},this.categoryTagId=T().categoryTagId||"",this.checkFilterPosition(),this.checkWindowResize(),this.hideAllChildCategories(),this.setActiveBasedOffTagId(),this.addEventListeners()}});s("#disqus_thread",class extends e{disqusConfigurationFactory(e,t){return function(){this.page.url=e,this.page.identifier=t}}loadDisqus(e){const t=document,n=t.createElement("script");n.src=e,n.setAttribute("data-timestamp",+new Date),(t.head||t.body).appendChild(n)}init(){const{dataset:e}=this.element;"true"===e.enableComments&&e.disqusEmbedUrl&&(this.disqusConfigurationFactory(e.pageUrl,e.pageIdentifier),this.loadDisqus(this.element.dataset.disqusEmbedUrl))}});const G="article-teaser";s(".related-articles",class extends e{replaceImages(){[...this.elements.teaserCards()].map((e=>{if(!e.querySelector("img"))return!1;const t=e.querySelector(`.${G}__image`),n=`url("${t.querySelector("div[data-asset]").dataset.asset}")`;return t.style.backgroundImage!==n&&(t.style.backgroundImage=n),!0}))}updateDescriptions(){const e=this;[...this.elements.teaserCards()].map((t=>{const n=t.querySelector(`.${G}__description`);if(!n)return!1;const i=n.innerText;return i.length>=e.maxDescriptionLength&&(n.innerText=`${i.substr(0,e.maxDescriptionLength-3)}...`),!0}))}init(){this.elements={container:this.element.querySelector(".cmp-related-articles__posts"),teaserCards:()=>this.element.getElementsByClassName(G)},this.maxDescriptionLength=88,this.updateDescriptions(),this.replaceImages()}});const z="cmp-accordion__item",U=`${z}-content`,H=`${z}-button`;s(".cmp-accordion",class extends e{setIds(){[...this.elements.accordionItems].map((e=>{const t=e.getElementsByClassName(H)[0],n=e.getElementsByClassName(U)[0],i=k().replace(/-/g,""),r=k().replace(/-/g,"");return C(t,"aria-controls",i),C(n,"aria-labelledby",r),n.id=i,t.id=r,null}))}getAccordionHeights(){const e=[];[...this.elements.accordionItems].map((t=>{const n=t.getElementsByClassName(U)[0];return e.push(n.scrollHeight),null})),this.maxHeightStr=`${Math.max(...e)+500}px`}collapseAllItems(){this.getAccordionHeights(),[...this.elements.accordionItems].map((e=>{const t=e;return this.toggle(e,!1),t.style.opacity=1,null}))}getExpandedItems(){const e=[];return[...this.elements.accordionItems].forEach((t=>{"true"===t.querySelector("button").getAttribute("aria-expanded")&&e.push(t)})),e}toggle(e,t){const n=e.getElementsByClassName(H)[0],i=e.getElementsByClassName(U)[0];if(t?(C(n,"aria-expanded","true"),C(i,"aria-hidden","false"),i.removeAttribute("hidden"),this.getAccordionHeights(),i.style.maxHeight=this.maxHeightStr,this.isDataLayerEnabled&&this.dataLayer.push({event:"cmp:show",eventInfo:{path:`component.${P(e.dataset.cmpDataLayer)}`}})):(C(n,"aria-expanded","false"),C(i,"aria-hidden","true"),C(i,"hidden","true"),i.style.maxHeight=0,this.isDataLayerEnabled&&this.dataLayer.push({event:"cmp:hide",eventInfo:{path:`component.${P(e.dataset.cmpDataLayer)}`}})),this.isDataLayerEnabled){const e=this.element.id,t=this.getExpandedItems().map((e=>Object.keys(JSON.parse(e.dataset.cmpDataLayer))[0])),n={component:{}};n.component[e]={shownItems:t};const i={component:{}};i.component[e]={shownItems:void 0},this.dataLayer.push(i),this.dataLayer.push(n)}}expandAccordionItems(){if(this.element.dataset.expandedItems){[...this.element.dataset.expandedItems.split(",")].map((e=>([...this.elements.accordionItems].map((t=>(t.hasAttribute("name")&&t.getAttribute("name")===e&&this.toggle(t,!0),null))),null)))}}addEventListeners(){const e=Array.prototype.slice.call(this.elements.accordionButtons);[...this.elements.accordionItems].map((e=>{const t=e.querySelector(`.${H}`);return t&&t.addEventListener("click",(()=>{"true"===t.getAttribute("aria-expanded")?this.toggle(e,!1):(this.closeOpenAccordionsViaSingleExpansion(),this.toggle(e,!0))})),null})),this.elements.accordion.addEventListener("keydown",(t=>{const n=t.target,i=t.keyCode;if(38!==i&&40!==i)return;if(!n.classList.contains(H))return;const r=e.indexOf(n),s=40===i?1:-1,o=e.length;e[(r+o+s)%o].focus(),t.preventDefault()})),window.addEventListener("resize",(e=>{e.preventDefault(),this.getAccordionHeights(),[...this.elements.accordionItems].forEac
2h((e=>{const t=e.getElementsByClassName(U)[0];"false"===t.getAttribute("aria-hidden")&&(t.style.maxHeight=this.maxHeightStr)}))}))}closeOpenAccordionsViaSingleExpansion(){"true"===this.element.dataset.singleExpansion&&[...this.elements.accordionItems].map((e=>{const t=e.querySelector(`.${H}`);return t&&"true"===t.getAttribute("aria-expanded")&&this.toggle(e,!1),null}))}init(){this.elements={accordionItems:this.element.getElementsByClassName(z),accordion:this.element,accordionButtons:this.element.querySelectorAll(`.${H}`)},this.maxHeightStr="0",this.isDataLayerEnabled=document.body.hasAttribute("data-cmp-data-layer-enabled"),this.dataLayer=this.isDataLayerEnabled?window.adobeDataLayer=window.adobeDataLayer||[]:void 0,_()||(this.setIds(),this.collapseAllItems(),this.expandAccordionItems(),this.addEventListeners());const e=function(e,t){const n=R(e,t);return e&&e.elements&&e.elements[t]?e.elements[t][n]:-1}(this,"accordionItems");e&&this.toggle(e,!0)}});const W="cmp-bio";function Y(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function X(e={},t={}){Object.keys(t).forEach((n=>{void 0===e[n]?e[n]=t[n]:Y(t[n])&&Y(e[n])&&Object.keys(t[n]).length>0&&X(e[n],t[n])}))}s(`.${W}`,class extends e{expandBio(){this.elements.bioToggle.textContent=this.toggleCollapseLabel,this.elements.bioContainer.classList.remove(`${W}__bio-container--line-clamped`),this.elements.bioContainer.setAttribute("aria-expanded","true"),window.requestAnimationFrame((()=>{this.bioElRect=this.elements.bioEl.getBoundingClientRect(),this.elements.bioContainer.style.setProperty("--truncate-height-expanded",`${this.bioElRect.height}px`),this.elements.bioContainer.classList.add(`${W}__bio-container--expanded`)}))}collapseBio(){this.elements.bioToggle.textContent=this.toggleExpandLabel,this.elements.bioContainer.classList.remove(`${W}__bio-container--expanded`),this.elements.bioContainer.setAttribute("aria-expanded","false"),setTimeout((()=>{this.elements.bioContainer.classList.add(`${W}__bio-container--line-clamped`)}),300)}addEventListeners(){const e=this;e.elements.bioToggle.addEventListener("click",(()=>{e.elements.bioContainer.classList.contains(`${W}__bio-container--expanded`)?e.collapseBio():e.expandBio()}))}init(){this.elements={bioContainer:this.element.querySelector(`.${W}__bio-container`),bioEl:this.element.querySelector(`.${W}__bio`),bioToggle:this.element.querySelector(`.${W}__toggle-btn`),bioName:this.element.querySelector(`.${W}__name`)},this.bioContainerRect=this.elements.bioContainer.getBoundingClientRect(),this.bioElRect=this.elements.bioEl.getBoundingClientRect(),this.toggleExpandLabel=this.elements.bioToggle.dataset.showMoreLabel,this.toggleCollapseLabel=this.elements.bioToggle.dataset.showLessLabel,this.elements.bioContainer.style.setProperty("--truncate-height",`${this.bioContainerRect.height}px`),this.addEventListeners()}});const K={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Q(){const e="undefined"!=typeof document?document:{};return X(e,K),e}const J={document:K,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Z(){const e="undefined"!=typeof window?window:{};return X(e,J),e}class ee extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get(){return t},set(e){t.__proto__=e}})}(this))}}function te(e=[]){const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...te(e)):t.push(e)})),t}function ne(e,t){return Array.prototype.filter.call(e,t)}function ie(e,t){const n=Z(),i=Q();let r=[];if(!t&&e instanceof ee)return e;if(!e)return new ee(r);if("string"==typeof e){const n=e.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){let e="div";0===n.indexOf("<li")&&(e="ul"),0===n.indexOf("<tr")&&(e="tbody"),0!==n.indexOf("<td")&&0!==n.indexOf("<th")||(e="tr"),0===n.indexOf("<tbody")&&(e="table"),0===n.indexOf("<option")&&(e="select");const t=i.createElement(e);t.innerHTML=n;for(let e=0;e<t.childNodes.length;e+=1)r.push(t.childNodes[e])}else r=function(e,t){if("string"!=typeof e)return[e];const n=[],i=t.querySelectorAll(e);for(let e=0;e<i.length;e+=1)n.push(i[e]);return n}(e.trim(),t||i)}else if(e.nodeType||e===n||e===i)r.push(e);else if(Array.isArray(e)){if(e instanceof ee)return e;r=e}return new ee(function(e){const t=[];for(let n=0;n<e.length;
vendor: 5,455 bytes, line 2
2n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(r))}ie.fn=ee.prototype;const re="resize scroll".split(" ");function se(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)re.indexOf(e)<0&&(e in this[t]?this[t][e]():ie(this[t]).trigger(e));return this}return this.on(e,...t)}}se("click"),se("blur"),se("focus"),se("focusin"),se("focusout"),se("keyup"),se("keydown"),se("keypress"),se("submit"),se("change"),se("mousedown"),se("mousemove"),se("mouseup"),se("mouseenter"),se("mouseleave"),se("mouseout"),se("mouseover"),se("touchstart"),se("touchend"),se("touchmove"),se("resize"),se("scroll");const oe={addClass:function(...e){const t=te(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.add(...t)})),this},removeClass:function(...e){const t=te(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.remove(...t)})),this},hasClass:function(...e){const t=te(e.map((e=>e.split(" "))));return ne(this,(e=>t.filter((t=>e.classList.contains(t))).length>0)).length>0},toggleClass:function(...e){const t=te(e.map((e=>e.split(" "))));this.forEach((e=>{t.forEach((t=>{e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(const t in e)this[n][t]=e[t],this[n].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?`${e}ms`:e;return this},on:function(...e){let[t,n,i,r]=e;function s(e){const t=e.target;if(!t)return;const r=e.target.dom7EventData||[];if(r.indexOf(e)<0&&r.unshift(e),ie(t).is(n))i.apply(t,r);else{const e=ie(t).parents();for(let t=0;t<e.length;t+=1)ie(e[t]).is(n)&&i.apply(e[t],r)}}function o(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof e[1]&&([t,i,r]=e,n=void 0),r||(r=!1);const a=t.split(" ");let l;for(let e=0;e<this.length;e+=1){const t=this[e];if(n)for(l=0;l<a.length;l+=1){const e=a[l];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:i,proxyListener:s}),t.addEventListener(e,s,r)}else for(l=0;l<a.length;l+=1){const e=a[l];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:i,proxyListener:o}),t.addEventListener(e,o,r)}}return this},off:function(...e){let[t,n,i,r]=e;"function"==typeof e[1]&&([t,i,r]=e,n=void 0),r||(r=!1);const s=t.split(" ");for(let e=0;e<s.length;e+=1){const t=s[e];for(let e=0;e<this.length;e+=1){const s=this[e];let o;if(!n&&s.dom7Listeners?o=s.dom7Listeners[t]:n&&s.dom7LiveListeners&&(o=s.dom7LiveListeners[t]),o&&o.length)for(let e=o.length-1;e>=0;e-=1){const n=o[e];i&&n.listener===i||i&&n.listener&&n.listener.dom7proxy&&n.listener.dom7proxy===i?(s.removeEventListener(t,n.proxyListener,r),o.splice(e,1)):i||(s.removeEventListener(t,n.proxyListener,r),o.splice(e,1))}}}return this},trigger:function(...e){const t=Z(),n=e[0].split(" "),i=e[1];for(let r=0;r<n.length;r+=1){const s=n[r];for(let n=0;n<this.length;n+=1){const r=this[n];if(t.CustomEvent){const n=new t.CustomEvent(s,{detail:i,bubbles:!0,cancelable:!0});r.dom7EventData=e.filter(((e,t)=>t>0)),r.dispatchEvent(n),r.dom7EventData=[],delete r.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function n(i){i.target===this&&(e.call(this,i),t.off("transitionend",n))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=Z();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=Z(),t=Q(),n=this[0],i=n.getBoundingClientRect(),r=t.body,s=n.clientTop||r.clientTop||0,o=n.clientLeft||r.clientLeft||0,a=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:i.top+a-s,left:i.left+l-o}}return null},css:function(e,t){const n=Z();let i;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(const t in e)this[i].style[t]=e[t];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(i=0;i<this.length;i+=1)this[i].style[e]=t;return this}return this},each:function(e){return e?(this.forEach(((t,n)=>{e.apply(t,[t,n])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){const t=Z(),n=Q(),i=this[0];let r,s;if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);
vendor: 6,385 bytes, line 2
2if(i.msMatchesSelector)return i.msMatchesSelector(e);for(r=ie(e),s=0;s<r.length;s+=1)if(r[s]===i)return!0;return!1}if(e===n)return i===n;if(e===t)return i===t;if(e.nodeType||e instanceof ee){for(r=e.nodeType?[e]:e,s=0;s<r.length;s+=1)if(r[s]===i)return!0;return!1}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;const t=this.length;if(e>t-1)return ie([]);if(e<0){const n=t+e;return ie(n<0?[]:[this[n]])}return ie([this[e]])},append:function(...e){let t;const n=Q();for(let i=0;i<e.length;i+=1){t=e[i];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const i=n.createElement("div");for(i.innerHTML=t;i.firstChild;)this[e].appendChild(i.firstChild)}else if(t instanceof ee)for(let n=0;n<t.length;n+=1)this[e].appendChild(t[n]);else this[e].appendChild(t)}return this},prepend:function(e){const t=Q();let n,i;for(n=0;n<this.length;n+=1)if("string"==typeof e){const r=t.createElement("div");for(r.innerHTML=e,i=r.childNodes.length-1;i>=0;i-=1)this[n].insertBefore(r.childNodes[i],this[n].childNodes[0])}else if(e instanceof ee)for(i=0;i<e.length;i+=1)this[n].insertBefore(e[i],this[n].childNodes[0]);else this[n].insertBefore(e,this[n].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&ie(this[0].nextElementSibling).is(e)?ie([this[0].nextElementSibling]):ie([]):this[0].nextElementSibling?ie([this[0].nextElementSibling]):ie([]):ie([])},nextAll:function(e){const t=[];let n=this[0];if(!n)return ie([]);for(;n.nextElementSibling;){const i=n.nextElementSibling;e?ie(i).is(e)&&t.push(i):t.push(i),n=i}return ie(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&ie(t.previousElementSibling).is(e)?ie([t.previousElementSibling]):ie([]):t.previousElementSibling?ie([t.previousElementSibling]):ie([])}return ie([])},prevAll:function(e){const t=[];let n=this[0];if(!n)return ie([]);for(;n.previousElementSibling;){const i=n.previousElementSibling;e?ie(i).is(e)&&t.push(i):t.push(i),n=i}return ie(t)},parent:function(e){const t=[];for(let n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?ie(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return ie(t)},parents:function(e){const t=[];for(let n=0;n<this.length;n+=1){let i=this[n].parentNode;for(;i;)e?ie(i).is(e)&&t.push(i):t.push(i),i=i.parentNode}return ie(t)},closest:function(e){let t=this;return void 0===e?ie([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let n=0;n<this.length;n+=1){const i=this[n].querySelectorAll(e);for(let e=0;e<i.length;e+=1)t.push(i[e])}return ie(t)},children:function(e){const t=[];for(let n=0;n<this.length;n+=1){const i=this[n].children;for(let n=0;n<i.length;n+=1)e&&!ie(i[n]).is(e)||t.push(i[n])}return ie(t)},filter:function(e){return ie(ne(this,e))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};Object.keys(oe).forEach((e=>{Object.defineProperty(ie.fn,e,{value:oe[e],writable:!0})}));var ae=ie;function le(e,t=0){return setTimeout(e,t)}function ce(){return Date.now()}function ue(e,t="x"){const n=Z();let i,r,s;const o=function(e){const t=Z();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(r=o.transform||o.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map((e=>e.replace(",","."))).join(", ")),s=new n.WebKitCSSMatrix("none"===r?"":r)):(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=s.toString().split(",")),"x"===t&&(r=n.WebKitCSSMatrix?s.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(r=n.WebKitCSSMatrix?s.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0}function de(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function he(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const s=e[r];if(null!=s&&(i=s,!("undefined"!=typeof window&&void 0!==window.HTMLElement?i instanceof HTMLElement:i&&(1===i.nodeType||11===i.nodeType)))){const e=Object.keys(Object(s)).filter((e=>n.indexOf(e)<0));for(let n=0,i=e.length;n<i;n+=1){const i=e[n],r=Object.getOwnPropertyDescriptor(s,i);void 0!==r&&r.enumerable&&(de(t[i])&&de(s[i])?s[i].__swiper__?t[i]=s[i]:he(t[i],s[i]):!de(t[i])&&de(s[i])?(t[i]={},s[i].__swiper__?t[i]=s[i]:he(t[i],s[i])):t[i]=s[i])}}}var i;return t}function fe(e,t,n){e.style.setProperty(t,n)}function pe({swiper:e,targetPosition:t,side:n}){const i=Z(),r=-e.translate;let s,o=null;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(e.cssModeFrameID);const l=t>r?"next":"prev",c=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,u=()=>{s=(new Date).getTime(),null===o&&(o=s);const l=Math.max(Math.min((s-o)/a,1),0),d=.5-Math.cos(l*Math.PI)/2;let h=r+d*(t-r);if(c(h,t)&&(h=t),e.wrapperEl.scrollTo({[n]:h}),c(h,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout((()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:h})})),void i.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=i.requestAnimationFrame(u)};u()}let me,ge,ve;function ye(){return me||(me=function(){const e=Z(),t=Q();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const n=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),me}function be(e={}){return ge||(ge=function({userAgent:e}={}){const t=ye(),n=Z(),i=n.navigator.platform,r=e||n.navigator.userAgent,s={ios:!1,android:!1},o=n.screen.width,a=n.screen.height,l=r.match(/(Android);?[\s\/]+([\d.]+)?/);let c=r.match(/(iPad).*OS\s([\d_]+)/);const u=r.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===i;let f="MacIntel"===i;return!c&&f&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${a}`)>
vendor: 10,212 bytes, line 2
2=0&&(c=r.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),f=!1),l&&!h&&(s.os="android",s.android=!0),(c||d||u)&&(s.os="ios",s.ios=!0),s}(e)),ge}function _e(){return ve||(ve=function(){const e=Z();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),ve}var Ee={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const r=n?"unshift":"push";return e.split(" ").forEach((e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][r](t)})),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;function r(...n){i.off(e,r),r.__emitterProxy&&delete r.__emitterProxy,t.apply(i,n)}return r.__emitterProxy=t,i.on(e,r,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((i,r)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(r,1)}))})),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n,i,r;"string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],i=e.slice(1,e.length),r=t):(n=e[0].events,i=e[0].data,r=e[0].context||t),i.unshift(r);return(Array.isArray(n)?n:n.split(" ")).forEach((e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach((t=>{t.apply(r,[e,...i])})),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach((e=>{e.apply(r,i)}))})),t}};var we={updateSize:function(){const e=this;let t,n;const i=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:i[0].clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i[0].clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(i.css("padding-left")||0,10)-parseInt(i.css("padding-right")||0,10),n=n-parseInt(i.css("padding-top")||0,10)-parseInt(i.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function n(e,n){return parseFloat(e.getPropertyValue(t(n))||0)}const i=e.params,{$wrapperEl:r,size:s,rtlTranslate:o,wrongRTL:a}=e,l=e.virtual&&i.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,u=r.children(`.${e.params.slideClass}`),d=l?e.virtual.slides.length:u.length;let h=[];const f=[],p=[];let m=i.slidesOffsetBefore;"function"==typeof m&&(m=i.slidesOffsetBefore.call(e));let g=i.slidesOffsetAfter;"function"==typeof g&&(g=i.slidesOffsetAfter.call(e));const v=e.snapGrid.length,y=e.slidesGrid.length;let b=i.spaceBetween,_=-m,E=0,w=0;if(void 0===s)return;"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*s),e.virtualSize=-b,o?u.css({marginLeft:"",marginBottom:"",marginTop:""}):u.css({marginRight:"",marginBottom:"",marginTop:""}),i.centeredSlides&&i.cssMode&&(fe(e.wrapperEl,"--swiper-centered-offset-before",""),fe(e.wrapperEl,"--swiper-centered-offset-after",""));const x=i.grid&&i.grid.rows>1&&e.grid;let T;x&&e.grid.initSlides(d);const S="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter((e=>void 0!==i.breakpoints[e].slidesPerView)).length>0;for(let r=0;r<d;r+=1){T=0;const o=u.eq(r);if(x&&e.grid.updateSlide(r,o,d,t),"none"!==o.css("display")){if("auto"===i.slidesPerView){S&&(u[r].style[t("width")]="");const s=getComputedStyle(o[0]),a=o[0].style.transform,l=o[0].style.webkitTransform;if(a&&(o[0].style.transform="none"),l&&(o[0].style.webkitTransform="none"),i.roundLengths)T=e.isHorizontal()?o.outerWidth(!0):o.outerHeight(!0);else{const e=n(s,"width"),t=n(s,"padding-left"),i=n(s,"padding-right"),r=n(s,"margin-left"),a=n(s,"margin-right"),l=s.getPropertyValue("box-sizing");if(l&&"border-box"===l)T=e+r+a;else{const{clientWidth:n,offsetWidth:s}=o[0];T=e+t+i+r+a+(s-n)}}a&&(o[0].style.transform=a),l&&(o[0].style.webkitTransform=l),i.roundLengths&&(T=Math.floor(T))}else T=(s-(i.slidesPerView-1)*b)/i.slidesPerView,i.roundLengths&&(T=Math.floor(T)),u[r]&&(u[r].style[t("width")]=`${T}px`);u[r]&&(u[r].swiperSlideSize=T),p.push(T),i.centeredSlides?(_=_+T/2+E/2+b,0===E&&0!==r&&(_=_-s/2-b),0===r&&(_=_-s/2-b),Math.abs(_)<.001&&(_=0),i.roundLengths&&(_=Math.floor(_)),w%i.slidesPerGroup==0&&h.push(_),f.push(_)):(i.roundLengths&&(_=Math.floor(_)),(w-Math.min(e.params.slidesPerGroupSkip,w))%e.params.slidesPerGroup==0&&h.push(_),f.push(_),_=_+T+b),e.virtualSize+=T+b,E=T,w+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+g,o&&a&&("slide"===i.effect||"coverflow"===i.effect)&&r.css({width:`${e.virtualSize+i.spaceBetween}px`}),i.setWrapperSize&&r.css({[t("width")]:`${e.virtualSize+i.spaceBetween}px`}),x&&e.grid.updateWrapperSize(T,h,t),!i.centeredSlides){const t=[];for(let n=0;n<h.length;n+=1){let r=h[n];i.roundLengths&&(r=Math.floor(r)),h[n]<=e.virtualSize-s&&t.push(r)}h=t,Math.floor(e.virtualSize-s)-Math.floor(h[h.length-1])>1&&h.push(e.virtualSize-s)}if(0===h.length&&(h=[0]),0!==i.spaceBetween){const n=e.isHorizontal()&&o?"marginLeft":t("marginRight");u.filter(((e,t)=>!i.cssMode||t!==u.length-1)).css({[n]:`${b}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;p.forEach((t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)})),e-=i.spaceBetween;const t=e-s;h=h.map((e=>e<0?-m:e>t?t+g:e))}if(i.centerInsufficientSlides){let e=0;if(p.forEach((t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)})),e-=i.spaceBetween,e<s){const t=(s-e)/2;h.forEach(((e,n)=>{h[n]=e-t})),f.forEach(((e,n)=>{f[n]=e+t}))}}if(Object.assign(e,{slides:u,snapGrid:h,slidesGrid:f,slidesSizesGrid:p}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){fe(e.wrapperEl,"--swiper-centered-offset-before",-h[0]+"px"),fe(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-p[p.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(d!==c&&e.emit("slidesLengthChange"),h.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==y&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const t=`${i.containerModifierClass}backface-hidden`,n=e.$el.hasClass(t);d<=i.maxBackfaceHiddenSlides?n||e.$el.addClass(t):n&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual.enabled;let r,s=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const o=e=>i?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||ae([])).each((e=>{n.push(e)}));else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const e=t.activeIndex+r;if(e>t.slides.length&&!i)break;n.push(o(e))}else n.push(o(t.activeIndex));for(r=0;r<n.length;r+=1)if(void 0!==n[r]){const e=n[r].offsetHeight;s=e>s?e:s}(s||0===s)&&t.$wrapperEl.css("height",`${s}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,n=t.params,{slides:i,rtlTranslate:r,snapGrid:s}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let o=-e;r&&(o=e),i.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let e=0;e<i.length;e+=1){const a=i[e];let l=a.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(l-=i[0].swiperSlideOffset);const c=(o+(n.centeredSlides?t.minTranslate():0)-l)/(a.swiperSlideSize+n.spaceBetween),u=(o-s[0]+(n.centeredSlides?t.minTranslate():0)-l)/(a.swiperSlideSize+n.spaceBetween),d=-(o-l),h=d+t.slidesSizesGrid[e];(d>=0&&d<t.size-1||h>1&&h<=t.size||d<=0&&h>=t.size)&&(t.visibleSlides.push(a),t.visibleSlidesIndexes.push(e),i.eq(e).addClass(n.slideVisibleClass)),a.progress=r?-c:c,a.originalProgress=r?-u:u}t.visibleSlides=ae(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:s,isEnd:o}=t;const a=s,l=o;0===i?(r=0,s=!0,o=!0):(r=(e-t.minTranslate())/i,s=r<=0,o=r>=1),Object.assign(t,{progress:r,isBeginning:s,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!a&&t.emit("reachBeginning toEdge"),o&&!l&&t.emit("reachEnd toEdge"),(a&&!s||l&&!o)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,$wrapperEl:i,activeIndex:r,realIndex:s}=e,o=e.virtual&&n.virtual.enabled;let a;t.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`),a=o?e.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${r}"]`):t.eq(r),a.addClass(n.slideActiveClass),n.loop&&(a.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${s}"]`).addClass(n.slideDuplicateActiveClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${s}"]`).addClass(n.slideDuplicateActiveClass));let l=a.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);
vendor: 15,197 bytes, line 2
2n.loop&&0===l.length&&(l=t.eq(0),l.addClass(n.slideNextClass));let c=a.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&0===c.length&&(c=t.eq(-1),c.addClass(n.slidePrevClass)),n.loop&&(l.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),c.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:i,snapGrid:r,params:s,activeIndex:o,realIndex:a,snapIndex:l}=t;let c,u=e;if(void 0===u){for(let e=0;e<i.length;e+=1)void 0!==i[e+1]?n>=i[e]&&n<i[e+1]-(i[e+1]-i[e])/2?u=e:n>=i[e]&&n<i[e+1]&&(u=e+1):n>=i[e]&&(u=e);s.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if(r.indexOf(n)>=0)c=r.indexOf(n);else{const e=Math.min(s.slidesPerGroupSkip,u);c=e+Math.floor((u-e)/s.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),u===o)return void(c!==l&&(t.snapIndex=c,t.emit("snapIndexChange")));const d=parseInt(t.slides.eq(u).attr("data-swiper-slide-index")||u,10);Object.assign(t,{snapIndex:c,realIndex:d,previousIndex:o,activeIndex:u}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),a!==d&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,n=t.params,i=ae(e).closest(`.${n.slideClass}`)[0];let r,s=!1;if(i)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===i){s=!0,r=e;break}if(!i||!s)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=i,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(ae(i).attr("data-swiper-slide-index"),10):t.clickedIndex=r,n.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var xe={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:i,$wrapperEl:r}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let s=ue(r[0],e);return n&&(s=-s),s||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:r,$wrapperEl:s,wrapperEl:o,progress:a}=n;let l,c=0,u=0;n.isHorizontal()?c=i?-e:e:u=e,r.roundLengths&&(c=Math.floor(c),u=Math.floor(u)),r.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-c:-u:r.virtualTranslate||s.transform(`translate3d(${c}px, ${u}px, 0px)`),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?c:u;const d=n.maxTranslate()-n.minTranslate();l=0===d?0:(e-n.minTranslate())/d,l!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,i=!0,r){const s=this,{params:o,wrapperEl:a}=s;if(s.animating&&o.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let u;if(u=i&&e>l?l:i&&e<c?c:e,s.updateProgress(u),o.cssMode){const e=s.isHorizontal();if(0===t)a[e?"scrollLeft":"scrollTop"]=-u;else{if(!s.support.smoothScroll)return pe({swiper:s,targetPosition:-u,side:e?"left":"top"}),!0;a.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===t?(s.setTransition(0),s.setTranslate(u),n&&(s.emit("beforeTransitionStart",t,r),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(u),n&&(s.emit("beforeTransitionStart",t,r),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,n&&s.emit("transitionEnd"))}),s.$wrapperEl[0].addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd))),!0}};function Te({swiper:e,runCallbacks:t,direction:n,step:i}){const{activeIndex:r,previousIndex:s}=e;let o=n;if(o||(o=r>s?"next":r<s?"prev":"reset"),e.emit(`transition${i}`),t&&r!==s){if("reset"===o)return void e.emit(`slideResetTransition${i}`);e.emit(`slideChangeTransition${i}`),"next"===o?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`)}}var Se={slideTo:function(e=0,t=this.params.speed,n=!0,i,r){if("number"!=typeof e&&"string"!=typeof e)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const s=this;let o=e;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:h,wrapperEl:f,enabled:p}=s;if(s.animating&&a.preventInteractionOnTransition||!p&&!i&&!r)return!1;const m=Math.min(s.params.slidesPerGroupSkip,o);let g=m+Math.floor((o-m)/s.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(a.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),n=Math.floor(100*c[e]),i=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<i-(i-n)/2?o=e:t>=n&&t<i&&(o=e+1):t>=n&&(o=e)}if(s.initialized&&o!==d){if(!s.allowSlideNext&&v<s.translate&&v<s.minTranslate())return!1;if(!s.allowSlidePrev&&v>s.translate&&v>s.maxTranslate()&&(d||0)!==o)return!1}let y;if(o!==(u||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(v),y=o>d?"next":o<d?"prev":"reset",h&&-v===s.translate||!h&&v===s.translate)return s.updateActiveIndex(o),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==a.effect&&s.setTranslate(v),"reset"!==y&&(s.transitionStart(n,y),s.transitionEnd(n,y)),!1;if(a.cssMode){const e=s.isHorizontal(),n=h?v:-v;if(0===t){const t=s.virtual&&s.params.virtual.enabled;t&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),f[e?"scrollLeft":"scrollTop"]=n,t&&requestAnimationFrame((()=>{s.wrapperEl.style.scrollSnapType="",s._swiperImmediateVirtual=!1}))}else{if(!s.support.smoothScroll)return pe({swiper:s,targetPosition:n,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(v),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,i),s.transitionStart(n,y),0===t?s.transitionEnd(n,y):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,y))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,n=!0,i){if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const r=this;let s=e;return r.params.loop&&(s+=r.loopedSlides),r.slideTo(s,t,n,i)},slideNext:function(e=this.params.speed,t=!0,n){const i=this,{animating:r,enabled:s,params:o}=i;if(!s)return i;let a=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<o.slidesPerGroupSkip?1:a;if(o.loop){if(r&&o.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}return o.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e=this.params.speed,t=!0,n){const i=this,{params:r,animating:s,snapGrid:o,slidesGrid:a,rtlTranslate:l,enabled:c}=i;if(!c)return i;if(r.loop){if(s&&r.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const d=u(l?i.translate:-i.translate),h=o.map((e=>u(e)));let f=o[h.indexOf(d)-1];if(void 0===f&&r.cssMode){let e;o.forEach(((t,n)=>{d>=t&&(e=n)})),void 0!==e&&(f=o[e>0?e-1:e])}let p=0;if(void 0!==f&&(p=a.indexOf(f),p<0&&(p=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(p=p-i.slidesPerViewDynamic("previous",!0)+1,p=Math.max(p,0))),r.rewind&&i.isBeginning){const r=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(r,e,t,n)}return i.slideTo(p,e,t,n)},slideReset:function(e=this.params.speed,t=!0,n){return this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e=this.params.speed,t=!0,n,i=.5){const r=this;let s=r.activeIndex;const o=Math.min(r.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[a]){const e=r.snapGrid[a];l-e>(r.snapGrid[a+1]-e)*i&&(s+=r.params.slidesPerGroup)}else{const e=r.snapGrid[a-1];l-e<=(r.snapGrid[a]-e)*i&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,e,t,n)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:n}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let r,s=e.clickedIndex;if(t.loop){if(e.animating)return;r=parseInt(ae(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?s<e.loopedSlides-i/2||s>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),s=n.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),le((()=>{e.slideTo(s)}))):e.slideTo(s):s>e.slides.length-i?(e.loopFix(),s=n.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),le((()=>{e.slideTo(s)}))):e.slideTo(s)}else e.slideTo(s)}};var Le={loopCreate:function(){const e=this,t=Q(),{params:n,$wrapperEl:i}=e,r=i.children().length>0?ae(i.children()[0].parentNode):i;r.children(`.${n.slideClass}.${n.slideDuplicateClass}`).remove();let s=r.children(`.${n.slideClass}`);if(n.loopFillGroupWithBlank){const e=n.slidesPerGroup-s.length%n.slidesPerGroup;if(e!==n.slidesPerGroup){for(let i=0;i<e;i+=1){const e=ae(t.createElement("div")).addClass(`${n.slideClass} ${n.slideBlankClass}`);r.append(e)}s=r.children(`.${n.slideClass}`)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=s.length),e.loopedSlides=Math.ceil(parseFloat(n.loopedSlides||n.slidesPerView,10)),e.loopedSlides+=n.loopAdditionalSlides,e.loopedSlides>s.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=s.length);const o=[],a=[];s.each(((e,t)=>{ae(e).attr("data-swiper-slide-index",t)}));for(let t=0;t<e.loopedSlides;t+=1){const e=t-Math.floor(t/s.length)*s.length;a.push(s.eq(e)[0]),o.unshift(s.eq(s.length-e-1)[0])}for(let e=0;e<a.length;e+=1)r.append(ae(a[e].cloneNode(!0)).addClass(n.slideDuplicateClass));for(let e=o.length-1;e>=0;e-=1)r.prepend(ae(o[e].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:n,loopedSlides:i,allowSlidePrev:r,allowSlideNext:s,snapGrid:o,rtlTranslate:a}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;const c=-o[t]-e.getTranslate();if(t<i){l=n.length-3*i+t,l+=i;e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((a?-e.translate:e.translate)-c)}else if(t>=n.length-i){l=-n.length+t+i,l+=i;e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((a?-e.translate:e.translate)-c)}e.allowSlidePrev=r,e.allowSlideNext=s,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:n}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),n.removeAttr("data-swiper-slide-index")}};function Ie(e){const t=this,n=Q(),i=Z(),r=t.touchEventsData,{params:s,touches:o,enabled:a}=t;if(!a)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let c=ae(l.target);if("wrapper"===s.touchEventsTarget&&!c.closest(t.wrapperEl).length)return;if(r.isTouchEvent="touchstart"===l.type,!r.isTouchEvent&&"which"in l&&3===l.which)return;if(!r.isTouchEvent&&"button"in l&&l.button>0)return;if(r.isTouched&&r.isMoved)return;const u=!!s.noSwipingClass&&""!==s.noSwipingClass,d=e.composedPath?e.composedPath():e.path;u&&l.target&&l.target.shadowRoot&&d&&(c=ae(d[0]));const h=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,f=!(!l.target||!l.target.shadowRoot);if(s.noSwiping&&(f?function(e,t=this){return function t(n){if(!n||n===Q()||n===Z())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(h,c[0]):c.closest(h)[0]))return void(t.allowClick=!0);if(s.swipeHandler&&!c.closest(s.swipeHandler)[0])return;o.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,o.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;const p=o.currentX,m=o.currentY,g=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,v=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(g&&(p<=v||p>=i.innerWidth-v)){if("prevent"!==g)return;e.preventDefault()}if(Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=m,r.touchStartTime=ce(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==l.type){let e=!0;c.is(r.focusableElements)&&(e=!1,"SELECT"===c[0].nodeName&&(r.isTouched=!1)),n.activeElement&&ae(n.activeElement).is(r.focusableElements)&&n.activeElement!==c[0]&&n.activeElement.blur();const i=e&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!i||c[0].isContentEditable||l.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function Ce(e){const t=Q(),n=this,i=n.touchEventsData,{params:r,touches:s,rtlTranslate:o,enabled:a}=n;if(!a)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",l));if(i.isTouchEvent&&"touchmove"!==l.type)return;const c="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),u="touchmove"===l.type?c.pageX:l.pageX,d="touchmove"===l.type?c.pageY:l.pageY;if(l.preventedByNestedSwiper)return s.startX=u,void(s.startY=d);if(!n.allowTouchMove)return ae(l.target).is(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(s,{startX:u,startY:d,currentX:u,currentY:d}
vendor: 2,583 bytes, line 2
2),i.touchStartTime=ce()));if(i.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(n.isVertical()){if(d<s.startY&&n.translate<=n.maxTranslate()||d>s.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(u<s.startX&&n.translate<=n.maxTranslate()||u>s.startX&&n.translate>=n.minTranslate())return;if(i.isTouchEvent&&t.activeElement&&l.target===t.activeElement&&ae(l.target).is(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);if(i.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;s.currentX=u,s.currentY=d;const h=s.currentX-s.startX,f=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(h**2+f**2)<n.params.threshold)return;if(void 0===i.isScrolling){let e;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?i.isScrolling=!1:h*h+f*f>=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(h))/Math.PI,i.isScrolling=n.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",l),void 0===i.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(i.startMoving=!0)),i.isScrolling)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation(),i.isMoved||(r.loop&&!r.cssMode&&n.loopFix(),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!r.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",l)),n.emit("sliderMove",l),i.isMoved=!0;let p=n.isHorizontal()?h:f;s.diff=p,p*=r.touchRatio,o&&(p=-p),n.swipeDirection=p>0?"prev":"next",i.currentTranslate=p+i.startTranslate;let m=!0,g=r.resistanceRatio;if(r.touchReleaseOnEdges&&(g=0),p>0&&i.currentTranslate>n.minTranslate()?(m=!1,r.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+p)**g)):p<0&&i.currentTranslate<n.maxTranslate()&&(m=!1,r.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-p)**g)),m&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(p)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);
vendor: 5,096 bytes, line 2
2if(!i.allowThresholdMove)return i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,void(s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&n.freeMode||r.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function Oe(e){const t=this,n=t.touchEventsData,{params:i,touches:r,rtlTranslate:s,slidesGrid:o,enabled:a}=t;if(!a)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",l),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);i.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=ce(),u=c-n.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target),t.emit("tap click",l),u<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(n.lastClickTime=ce(),le((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===r.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let d;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,d=i.followFinger?s?t.translate:-t.translate:-n.currentTranslate,i.cssMode)return;if(t.params.freeMode&&i.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:d});let h=0,f=t.slidesSizesGrid[0];for(let e=0;e<o.length;e+=e<i.slidesPerGroupSkip?1:i.slidesPerGroup){const t=e<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;void 0!==o[e+t]?d>=o[e]&&d<o[e+t]&&(h=e,f=o[e+t]-o[e]):d>=o[e]&&(h=e,f=o[o.length-1]-o[o.length-2])}let p=null,m=null;i.rewind&&(t.isBeginning?m=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(p=0));const g=(d-o[h])/f,v=h<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(u>i.longSwipesMs){if(!i.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(g>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?p:h+v):t.slideTo(h)),"prev"===t.swipeDirection&&(g>1-i.longSwipesRatio?t.slideTo(h+v):null!==m&&g<0&&Math.abs(g)>i.longSwipesRatio?t.slideTo(m):t.slideTo(h))}else{if(!i.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(h+v):t.slideTo(h):("next"===t.swipeDirection&&t.slideTo(null!==p?p:h+v),"prev"===t.swipeDirection&&t.slideTo(null!==m?m:h))}}function Ae(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:s}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=r,e.allowSlideNext=i,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function Me(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function ke(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let r;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const s=e.maxTranslate()-e.minTranslate();r=0===s?0:(e.translate-e.minTranslate())/s,r!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let Pe=!1;function Re(){}const De=(e,t)=>{const n=Q(),{params:i,touchEvents:r,el:s,wrapperEl:o,device:a,support:l}=e,c=!!i.nested,u="on"===t?"addEventListener":"removeEventListener",d=t;if(l.touch){const t=!("touchstart"!==r.start||!l.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};s[u](r.start,e.onTouchStart,t),s[u](r.move,e.onTouchMove,l.passiveListener?{passive:!1,capture:c}:c),s[u](r.end,e.onTouchEnd,t),r.cancel&&s[u](r.cancel,e.onTouchEnd,t)}else s[u](r.start,e.onTouchStart,!1),n[u](r.move,e.onTouchMove,c),n[u](r.end,e.onTouchEnd,!1);(i.preventClicks||i.preventClicksPropagation)&&s[u]("click",e.onClick,!0),i.cssMode&&o[u]("scroll",e.onScroll),i.updateOnWindowResize?e[d](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ae,!0):e[d]("observerUpdate",Ae,!0)};var Ne={attachEvents:function(){const e=this,t=Q(),{params:n,support:i}=e;e.onTouchStart=Ie.bind(e),e.onTouchMove=Ce.bind(e),e.onTouchEnd=Oe.bind(e),n.cssMode&&(e.onScroll=ke.bind(e)),e.onClick=Me.bind(e),i.touch&&!Pe&&(t.addEventListener("touchstart",Re),Pe=!0),De(e,"on")},detachEvents:function(){De(this,"off")}};const $e=(e,t)=>
vendor: 5,574 bytes, line 2
2e.grid&&t.grid&&t.grid.rows>1;var Fe={setBreakpoint:function(){const e=this,{activeIndex:t,initialized:n,loopedSlides:i=0,params:r,$el:s}=e,o=r.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const l=(a in o?o[a]:void 0)||e.originalParams,c=$e(e,r),u=$e(e,l),d=r.enabled;c&&!u?(s.removeClass(`${r.containerModifierClass}grid ${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&u&&(s.addClass(`${r.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===r.grid.fill)&&s.addClass(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{const n=r[t]&&r[t].enabled,i=l[t]&&l[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()}));const h=l.direction&&l.direction!==r.direction,f=r.loop&&(l.slidesPerView!==r.slidesPerView||h);h&&n&&e.changeDirection(),he(e.params,l);const p=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!p?e.disable():!d&&p&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",l),f&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-i+e.loopedSlides,0,!1)),e.emit("breakpoint",l)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let i=!1;const r=Z(),s="window"===t?r.innerHeight:n.clientHeight,o=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}}));o.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<o.length;e+=1){const{point:s,value:a}=o[e];"window"===t?r.matchMedia(`(min-width: ${a}px)`).matches&&(i=s):a<=n.clientWidth&&(i=s)}return i||"max"}};var Be={addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,$el:r,device:s,support:o}=e,a=function(e,t){const n=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((i=>{e[i]&&n.push(t+i)})):"string"==typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"pointer-events":!o.touch},{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),r.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}};var je={loadImage:function(e,t,n,i,r,s){const o=Z();let a;function l(){s&&s()}ae(e).parent("picture")[0]||e.complete&&r?l():t?(a=new o.Image,a.onload=l,a.onerror=l,i&&(a.sizes=i),n&&(a.srcset=n),t&&(a.src=t)):l()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let n=0;n<e.imagesToLoad.length;n+=1){const i=e.imagesToLoad[n];e.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,t)}}};var qe={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function Ve(e,t){return function(n={}){const i=Object.keys(n)[0],r=n[i];"object"==typeof r&&null!==r?(["navigation","pagination","scrollbar"].indexOf(i)>
vendor: 2,446 bytes, line 2
2=0&&!0===e[i]&&(e[i]={auto:!0}),i in e&&"enabled"in r?(!0===e[i]&&(e[i]={enabled:!0}),"object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),he(t,n)):he(t,n)):he(t,n)}}const Ge={eventsEmitter:Ee,update:we,translate:xe,transition:{setTransition:function(e,t){const n=this;n.params.cssMode||n.$wrapperEl.transition(e),n.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),Te({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const n=this,{params:i}=n;n.animating=!1,i.cssMode||(n.setTransition(0),Te({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:Se,loop:Le,grabCursor:{setGrabCursor:function(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;n.style.cursor="move",n.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:Ne,breakpoints:Fe,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:Be,images:je},ze={};class Ue{constructor(...e){let t,n;if(1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=he({},n),t&&!n.el&&(n.el=t),n.el&&ae(n.el).length>1){const e=[];return ae(n.el).each((t=>{const i=he({},n,{el:t});e.push(new Ue(i))})),e}const i=this;i.__swiper__=!0,i.support=ye(),i.device=be({userAgent:n.userAgent}),i.browser=_e(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],n.modules&&Array.isArray(n.modules)&&i.modules.push(...n.modules);const r={};i.modules.forEach((e=>{e({swiper:i,extendParams:Ve(n,r),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})}));const s=he({},qe,r);return i.params=he({},s,ze,n),i.originalParams=he({},i.params),i.passedParams=he({}
vendor: 4,380 bytes, line 2
2,n),i.params&&i.params.on&&Object.keys(i.params.on).forEach((e=>{i.on(e,i.params.on[e])})),i.params&&i.params.onAny&&i.onAny(i.params.onAny),i.$=ae,Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:ae(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===i.params.direction},isVertical(){return"vertical"===i.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return i.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},i.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},i.support.touch||!i.params.simulateTouch?i.touchEventsTouch:i.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:ce(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),r=(n.maxTranslate()-i)*e+i;n.translateTo(r,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((n=>{const i=e.getSlideClasses(n);t.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:i,slidesGrid:r,slidesSizesGrid:s,size:o,activeIndex:a}=this;let l=1;if(n.centeredSlides){let e,t=i[a].swiperSlideSize;for(let n=a+1;n<i.length;n+=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>o&&(e=!0));for(let n=a-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>o&&(e=!0))}else if("current"===e)for(let e=a+1;e<i.length;e+=1){(t?r[e]+s[e]-r[a]<o:r[e]-r[a]<o)&&(l+=1)}else for(let e=a-1;e>=0;e-=1){r[a]-r[e]<o&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let r;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(i(),e.params.autoHeight&&e.updateAutoHeight()):(r=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),r||i()),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass(`${n.params.containerModifierClass}${i}`).addClass(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}
2rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const n=ae(e||t.params.el);if(!(e=n[0]))return!1;e.swiper=t;const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=ae(e.shadowRoot.querySelector(i()));return t.children=e=>n.children(e),t}return n.children?n.children(i()):ae(n).children(i())})();if(0===r.length&&t.params.createElements){const e=Q().createElement("div");r=ae(e),e.className=t.params.wrapperClass,n.append(e),n.children(`.${t.params.slideClass}`).each((e=>{r.append(e)}))}return Object.assign(t,{$el:n,el:e,$wrapperEl:r,wrapperEl:r[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction")),wrongRTL:"-webkit-box"===r.css("display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){const n=this,{params:i,$el:r,$wrapperEl:s,slides:o}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),r.removeAttr("style"),s.removeAttr("style"),o&&o.length&&o.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(n)),n.destroyed=!0),null}static extendDefaults(e){he(ze,e)}static get extendedDefaults(){return ze}static get defaults(){return qe}static installModule(e){Ue.prototype.__modules__||(Ue.prototype.__modules__=[]);const t=Ue.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>Ue.installModule(e))),Ue):(Ue.installModule(e),Ue)}}Object.keys(Ge).forEach((e=>{Object.keys(Ge[e]).forEach((t=>{Ue.prototype[t]=Ge[e][t]}))})),Ue.use([function({swiper:e,on:t,emit:n}){const i=Z();let r=null,s=null;const o=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},a=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",(()=>{e.params.resizeObserver&&void 0!==i.ResizeObserver?e&&!e.destroyed&&e.initialized&&(r=new ResizeObserver((t=>{s=i.requestAnimationFrame((()=>{const{width:n,height:i}=e;let r=n,s=i;t.forEach((({contentBoxSize:t,contentRect:n,target:i})=>{i&&i!==e.el||(r=n?n.width:(t[0]||t).inlineSize,s=n?n.height:(t[0]||t).blockSize)})),r===n&&s===i||o()}))})),r.observe(e.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",a))})),t("destroy",(()=>{s&&i.cancelAnimationFrame(s),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",a)}))},function({swiper:e,extendParams:t,on:n,emit:i}){const r=[],s=Z(),o=(e,t={})=>{const n=new(s.MutationObserver||s.WebkitMutationObserver)((e=>{if(1===e.length)return void i("observerUpdate",e[0]);const t=function(){i("observerUpdate",e[0])};s.requestAnimationFrame?s.requestAnimationFrame(t):s.setTimeout(t,0)}));n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),r.push(n)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",(()=>{if(e.params.observer){if(e.params.observeParents){const t=e.$el.parents();for(let e=0;e<t.length;e+=1)o(t[e])}o(e.$el[0],{childList:e.params.observeSlideChildren}),o(e.$wrapperEl[0],{attributes:!1})}})),n("destroy",(()=>{r.forEach((e=>{e.disconnect()})),r.splice(0,r.length)}))}]);var He=Ue;function We(e,t,n,i){const r=Q();
vendor: 11,952 bytes, line 2
2return e.params.createElements&&Object.keys(i).forEach((s=>{if(!n[s]&&!0===n.auto){let o=e.$el.children(`.${i[s]}`)[0];o||(o=r.createElement("div"),o.className=i[s],e.$el.append(o)),n[s]=o,t[s]=o}})),n}function Ye({swiper:e,extendParams:t,on:n,emit:i}){function r(t){let n;return t&&(n=ae(t),e.params.uniqueNavElements&&"string"==typeof t&&n.length>1&&1===e.$el.find(t).length&&(n=e.$el.find(t))),n}function s(t,n){const i=e.params.navigation;t&&t.length>0&&(t[n?"addClass":"removeClass"](i.disabledClass),t[0]&&"BUTTON"===t[0].tagName&&(t[0].disabled=n),e.params.watchOverflow&&e.enabled&&t[e.isLocked?"addClass":"removeClass"](i.lockClass))}function o(){if(e.params.loop)return;const{$nextEl:t,$prevEl:n}=e.navigation;s(n,e.isBeginning&&!e.params.rewind),s(t,e.isEnd&&!e.params.rewind)}function a(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function l(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function c(){const t=e.params.navigation;if(e.params.navigation=We(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;const n=r(t.nextEl),i=r(t.prevEl);n&&n.length>0&&n.on("click",l),i&&i.length>0&&i.on("click",a),Object.assign(e.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:i,prevEl:i&&i[0]}),e.enabled||(n&&n.addClass(t.lockClass),i&&i.addClass(t.lockClass))}function u(){const{$nextEl:t,$prevEl:n}=e.navigation;t&&t.length&&(t.off("click",l),t.removeClass(e.params.navigation.disabledClass)),n&&n.length&&(n.off("click",a),n.removeClass(e.params.navigation.disabledClass))}t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},n("init",(()=>{!1===e.params.navigation.enabled?d():(c(),o())})),n("toEdge fromEdge lock unlock",(()=>{o()})),n("destroy",(()=>{u()})),n("enable disable",(()=>{const{$nextEl:t,$prevEl:n}=e.navigation;t&&t[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),n&&n[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)})),n("click",((t,n)=>{const{$nextEl:r,$prevEl:s}=e.navigation,o=n.target;if(e.params.navigation.hideOnClick&&!ae(o).is(s)&&!ae(o).is(r)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;let t;r?t=r.hasClass(e.params.navigation.hiddenClass):s&&(t=s.hasClass(e.params.navigation.hiddenClass)),i(!0===t?"navigationShow":"navigationHide"),r&&r.toggleClass(e.params.navigation.hiddenClass),s&&s.toggleClass(e.params.navigation.hiddenClass)}}));const d=()=>{e.$el.addClass(e.params.navigation.navigationDisabledClass),u()};Object.assign(e.navigation,{enable:()=>{e.$el.removeClass(e.params.navigation.navigationDisabledClass),c(),o()},disable:d,update:o,init:c,destroy:u})}function Xe(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function Ke({swiper:e,extendParams:t,on:n,emit:i}){const r="swiper-pagination";let s;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),e.pagination={el:null,$el:null,bullets:[]};let o=0;function a(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length}function l(t,n){const{bulletActiveClass:i}=e.params.pagination;t[n]().addClass(`${i}-${n}`)[n]().addClass(`${i}-${n}-${n}`)}function c(){const t=e.rtl,n=e.params.pagination;if(a())return;const r=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,c=e.pagination.$el;let u;const d=e.params.loop?Math.ceil((r-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(u=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),u>r-1-2*e.loopedSlides&&(u-=r-2*e.loopedSlides),u>d-1&&(u-=d),u<0&&"bullets"!==e.params.paginationType&&(u=d+u)):u=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const i=e.pagination.bullets;let r,a,d;if(n.dynamicBullets&&(s=i.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),c.css(e.isHorizontal()?"width":"height",s*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==e.previousIndex&&(o+=u-(e.previousIndex-e.loopedSlides||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),r=Math.max(u-o,0),a=r+(Math.min(i.length,n.dynamicMainBullets)-1),d=(a+r)/2),i.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${n.bulletActiveClass}${e}`)).join(" ")),c.length>1)i.each((e=>{const t=ae(e),i=t.index();i===u&&t.addClass(n.bulletActiveClass),n.dynamicBullets&&(i>=r&&i<=a&&t.addClass(`${n.bulletActiveClass}-main`),i===r&&l(t,"prev"),i===a&&l(t,"next"))}));else{const t=i.eq(u),s=t.index();if(t.addClass(n.bulletActiveClass),n.dynamicBullets){const t=i.eq(r),o=i.eq(a);for(let e=r;e<=a;e+=1)i.eq(e).addClass(`${n.bulletActiveClass}-main`);if(e.params.loop)if(s>=i.length){for(let e=n.dynamicMainBullets;e>=0;e-=1)i.eq(i.length-e).addClass(`${n.bulletActiveClass}-main`);i.eq(i.length-n.dynamicMainBullets-1).addClass(`${n.bulletActiveClass}-prev`)}else l(t,"prev"),l(o,"next");else l(t,"prev"),l(o,"next")}}if(n.dynamicBullets){const r=Math.min(i.length,n.dynamicMainBullets+4),o=(s*r-s)/2-d*s,a=t?"right":"left";i.css(e.isHorizontal()?a:"top",`${o}px`)}}if("fraction"===n.type&&(c.find(Xe(n.currentClass)).text(n.formatFractionCurrent(u+1)),c.find(Xe(n.totalClass)).text(n.formatFractionTotal(d))),"progressbar"===n.type){let t;t=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const i=(u+1)/d;let r=1,s=1;"horizontal"===t?r=i:s=i,c.find(Xe(n.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${r}) scaleY(${s})`).transition(e.params.speed)}"custom"===n.type&&n.renderCustom?(c.html(n.renderCustom(e,u+1,d)),i("paginationRender",c[0])):i("paginationUpdate",c[0]),e.params.watchOverflow&&e.enabled&&c[e.isLocked?"addClass":"removeClass"](n.lockClass)}function u(){const t=e.params.pagination;if(a())return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,r=e.pagination.$el;let s="";if("bullets"===t.type){let i=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&i>n&&(i=n);for(let n=0;n<i;n+=1)t.renderBullet?s+=t.renderBullet.call(e,n,t.bulletClass):s+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;r.html(s),e.pagination.bullets=r.find(Xe(t.bulletClass))}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,r.html(s)),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`,r.html(s)),"custom"!==t.type&&i("paginationRender",e.pagination.$el[0])}function d(){e.params.pagination=We(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let n=ae(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&(n=e.$el.find(t.el),n.length>1&&(n=n.filter((t=>ae(t).parents(".swiper")[0]===e.el)))),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),n.addClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.addClass(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click",Xe(t.bulletClass),(function(t){t.preventDefault();let n=ae(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)})),Object.assign(e.pagination,{$el:n,el:n[0]}),e.enabled||n.addClass(t.lockClass))}function h(){const t=e.params.pagination;if(a())return;const n=e.pagination.$el;n.removeClass(t.hiddenClass),n.removeClass(t.modifierClass+t.type),n.removeClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&n.off("click",Xe(t.bulletClass))}n("init",(()=>{!1===e.params.pagination.enabled?f():(d(),u(),c())})),n("activeIndexChange",(()=>{(e.params.loop||void 0===e.snapIndex)&&c()})),n("snapIndexChange",(()=>{e.params.loop||c()})),n("slidesLengthChange",(()=>{e.params.loop&&(u(),c())})),n("snapGridLengthChange",(()=>{e.params.loop||(u(),c())})),n("destroy",(()=>{h()})),n("enable disable",(()=>{const{$el:t}=e.pagination;t&&t[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)})),n("lock unlock",(()=>{c()})),n("click",((t,n)=>{const r=n.target,{$el:s}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&s&&s.length>0&&!ae(r).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&r===e.navigation.nextEl||e.navigation.prevEl&&r===e.navigation.prevEl))return;const t=s.hasClass(e.params.pagination.hiddenClass);i(!0===t?"paginationShow":"paginationHide"),s.toggleClass(e.params.pagination.hiddenClass)}}));const f=()=>{e.$el.addClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.addClass(e.params.pagination.paginationDisabledClass),h()};Object.assign(e.pagination,{enable:()=>{e.$el.removeClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.removeClass(e.params.pagination.paginationDisabledClass),d(),u(),c()},disable:f,render:u,update:c,init:d,destroy:h})}function Qe({swiper:e,extendParams:t,on:n}){t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let i=null;function r(e){const t=i;0!==t.length&&(t.html(""),t.html(e))}function s(e){e.attr("tabIndex","0")}function o(e){e.attr("tabIndex","-1")}function a(e,t){e.attr("role",t)}function l(e,t){e.attr("aria-roledescription",t)}function c(e,t){e.attr("aria-label",t)}function u(e){e.attr("aria-disabled",!0)}function d(e){e.attr("aria-disabled",!1)}function h(t){if(13!==t.keyCode&&32!==t.keyCode)return;const n=e.params.a11y,i=ae(t.target);e.navigation&&e.navigation.$nextEl&&i.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(n.lastSlideMessage):r(n.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&i.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(n.firstSlideMessage):r(n.prevSlideMessage)),e.pagination&&i.is(Xe(e.params.pagination.bulletClass))&&i[0].click()}function f(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function p(){return f()&&e.params.pagination.clickable}
2const m=(e,t,n)=>{s(e),"BUTTON"!==e[0].tagName&&(a(e,"button"),e.on("keydown",h)),c(e,n),function(e,t){e.attr("aria-controls",t)}(e,t)},g=()=>{e.a11y.clicked=!0},v=()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{e.destroyed||(e.a11y.clicked=!1)}))}))},y=t=>{if(e.a11y.clicked)return;const n=t.target.closest(`.${e.params.slideClass}`);if(!n||!e.slides.includes(n))return;const i=e.slides.indexOf(n)===e.activeIndex,r=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(n);i||r||t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(n),0))},b=()=>{const t=e.params.a11y;t.itemRoleDescriptionMessage&&l(ae(e.slides),t.itemRoleDescriptionMessage),t.slideRole&&a(ae(e.slides),t.slideRole);const n=e.params.loop?e.slides.filter((t=>!t.classList.contains(e.params.slideDuplicateClass))).length:e.slides.length;t.slideLabelMessage&&e.slides.each(((i,r)=>{const s=ae(i),o=e.params.loop?parseInt(s.attr("data-swiper-slide-index"),10):r;c(s,t.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,n))}))},_=()=>{const t=e.params.a11y;e.$el.append(i);const n=e.$el;t.containerRoleDescriptionMessage&&l(n,t.containerRoleDescriptionMessage),t.containerMessage&&c(n,t.containerMessage);const r=e.$wrapperEl,s=t.id||r.attr("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}(16)}`,o=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";var a;let u,d;a=s,r.attr("id",a),function(e,t){e.attr("aria-live",t)}(r,o),b(),e.navigation&&e.navigation.$nextEl&&(u=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(d=e.navigation.$prevEl),u&&u.length&&m(u,s,t.nextSlideMessage),d&&d.length&&m(d,s,t.prevSlideMessage),p()&&e.pagination.$el.on("keydown",Xe(e.params.pagination.bulletClass),h),e.$el.on("focus",y,!0),e.$el.on("pointerdown",g,!0),e.$el.on("pointerup",v,!0)};n("beforeInit",(()=>{i=ae(`<span class="${e.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)})),n("afterInit",(()=>{e.params.a11y.enabled&&_()})),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{e.params.a11y.enabled&&b()})),n("fromEdge toEdge afterInit lock unlock",(()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{$nextEl:t,$prevEl:n}=e.navigation;n&&n.length>0&&(e.isBeginning?(u(n),o(n)):(d(n),s(n))),t&&t.length>0&&(e.isEnd?(u(t),o(t)):(d(t),s(t)))}()})),n("paginationUpdate",(()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;f()&&e.pagination.bullets.each((n=>{const i=ae(n);e.params.pagination.clickable&&(s(i),e.params.pagination.renderBullet||(a(i,"button"),c(i,t.paginationBulletMessage.replace(/\{\{index\}\}/,i.index()+1)))),i.is(`.${e.params.pagination.bulletActiveClass}`)?i.attr("aria-current","true"):i.removeAttr("aria-current")}))}()})),n("destroy",(()=>{e.params.a11y.enabled&&function(){let t,n;i&&i.length>0&&i.remove(),e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(n=e.navigation.$prevEl),t&&t.off("keydown",h),n&&n.off("keydown",h),p()&&e.pagination.$el.off("keydown",Xe(e.params.pagination.bulletClass),h),e.$el.off("focus",y,!0),e.$el.off("pointerdown",g,!0),e.$el.off("pointerup",v,!0)}()}))}function Je({swiper:e,extendParams:t,on:n,emit:i}){let r;function s(){if(!e.size)return e.autoplay.running=!1,void(e.autoplay.paused=!1);const t=e.slides.eq(e.activeIndex);let n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(r),r=le((()=>{let t;e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),t=e.slidePrev(e.params.speed,!0,!0),i("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?a():(t=e.slideTo(e.slides.length-1,e.params.speed,!0,!0),i("autoplay")):(t=e.slidePrev(e.params.speed,!0,!0),i("autoplay")):e.params.loop?(e.loopFix(),t=e.slideNext(e.params.speed,!0,!0),i("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?a():(t=e.slideTo(0,e.params.speed,!0,
2!0),i("autoplay")):(t=e.slideNext(e.params.speed,!0,!0),i("autoplay")),(e.params.cssMode&&e.autoplay.running||!1===t)&&s()}),n)}function o(){return void 0===r&&(!e.autoplay.running&&(e.autoplay.running=!0,i("autoplayStart"),s(),!0))}function a(){return!!e.autoplay.running&&(void 0!==r&&(r&&(clearTimeout(r),r=void 0),e.autoplay.running=!1,i("autoplayStop"),!0))}function l(t){e.autoplay.running&&(e.autoplay.paused||(r&&clearTimeout(r),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].addEventListener(t,u)})):(e.autoplay.paused=!1,s())))}function c(){const t=Q();"hidden"===t.visibilityState&&e.autoplay.running&&l(),"visible"===t.visibilityState&&e.autoplay.paused&&(s(),e.autoplay.paused=!1)}function u(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===e.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].removeEventListener(t,u)})),e.autoplay.paused=!1,e.autoplay.running?s():a())}function d(){e.params.autoplay.disableOnInteraction?a():(i("autoplayPause"),l()),["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].removeEventListener(t,u)}))}function h(){e.params.autoplay.disableOnInteraction||(e.autoplay.paused=!1,i("autoplayResume"),s())}e.autoplay={running:!1,paused:!1},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),n("init",(()=>{if(e.params.autoplay.enabled){o();Q().addEventListener("visibilitychange",c),e.params.autoplay.pauseOnMouseEnter&&(e.$el.on("mouseenter",d),e.$el.on("mouseleave",h))}})),n("beforeTransitionStart",((t,n,i)=>{e.autoplay.running&&(i||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(n):a())})),n("sliderFirstMove",(()=>{e.autoplay.running&&(e.params.autoplay.disableOnInteraction?a():l())})),n("touchEnd",(()=>{e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&s()})),n("destroy",(()=>{e.$el.off("mouseenter",d),e.$el.off("mouseleave",h),e.autoplay.running&&a();Q().removeEventListener("visibilitychange",c)})),Object.assign(e.autoplay,{pause:l,run:s,start:o,stop:a})}const Ze="cmp-carousel",et=`${Ze}__indicator--active`;s(`.${Ze}`,class extends e{isAutoplay(){return this.element.classList.contains(`${Ze}--autoplay`)}isAutoPause(){return!this.element.hasAttribute("data-cmp-autopause-disabled")}initSwiper(){const e=this,t=e.element.getAttribute("data-cmp-delay"),n=e.elements.prevButton.getAttribute("aria-label"),i=e.elements.nextButton.getAttribute("aria-label"),r=e.element.getAttribute("data-cmp-a11y-label-slide")||"";e.swiper.destroy&&e.swiper.destroy(!1,!0),He.use([Qe,Je,Ye,Ke]),e.swiper=new He(e.elements.slider,{autoplay:!!e.isAutoplay()&&{delay:t||5e3,disableOnInteraction:!1},allowTouchMove:!0,a11y:{prevSlideMessage:n,nextSlideMessage:i,paginationBulletMessage:`${r.replace("{0}","{{index}}")}`},breakpoints:{0:{slidesPerView:1,slidesPerGroup:1},768:{slidesPerView:e.numberOfSlidesToShow>2?2:e.numberOfSlidesToShow,slidesPerGroup:e.numberOfSlidesPerGroup},1024:{slidesPerView:e.numberOfSlidesToShow}},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletActiveClass:`${et} swiper-pagination-bullet-active`,bulletClass:`${Ze}__indicator swiper-pagination-bullet`,bulletElement:"li",clickable:!0,el:`.${Ze}__indicators.swiper-pagination`,type:"bullets"},slideClass:`${Ze}__item`,slideActiveClass:`${Ze}__item--active`,slideVisibleClass:"swiper-slide-visible",slidesPerGroup:x()?1:e.numberOfSlidesPerGroup,slidesPerView:x()?1:e.numberOfSlidesToShow,spaceBetween:!x()&&e.numberOfSlidesToShow>1?20:0,updateOnWindowResize:!0,wrapperClass:`${Ze}__slides`});const s=Array.from(e.swiper.slides);e.isMoreThanOneSlideShowing&&s.forEach(((t,n)=>{e.swiper.activeIndex===n||e.swiper.activeIndex<n&&e.swiper.activeIndex+e.numberOfSlidesToShow>n?(t.setAttribute("aria-hidden",!1),t.setAttribute("tabindex","0")):(t.setAttribute("aria-hidden",!0),t.setAttribute("tabindex","-1"))})),e.addEventListeners()}updateSwiper(){const e=this;setTimeout((()=>
2{e.swiper.update()}),300)}refreshActive(){const e=this;let t="";const n=Array.from(e.swiper.slides);if(e.isMoreThanOneSlideShowing?n.forEach(((n,i)=>{e.swiper.activeIndex===i||e.swiper.activeIndex<i&&e.swiper.activeIndex+e.numberOfSlidesToShow>i?(n.setAttribute("aria-hidden",!1),n.setAttribute("tabindex","0"),e.swiper.activeIndex===i&&(t=n)):(n.setAttribute("aria-hidden",!0),n.setAttribute("tabindex","-1"))})):n.forEach(((n,i)=>{if(i!==e.swiper.activeIndex)return n.setAttribute("aria-hidden",!0),void n.setAttribute("tabindex","-1");n.setAttribute("aria-hidden",!1),n.setAttribute("tabindex","0"),t=n})),(!e.isAutoplay()||e.isAutoplay()&&!e.swiper.autoplay.running)&&function(e){const t=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset;e.focus(),window.scrollTo(t,n)}(e.swiper.slides[e.swiper.activeIndex]),e.isDataLayerEnabled){const n=e.element.id,i=P(t.dataset.cmpDataLayer),r={component:{}};r.component[n]={shownItems:[i]};const s={component:{}};s.component[n]={shownItems:void 0},e.dataLayer.push({event:"cmp:show",eventInfo:{path:`component.${i}`}}),e.dataLayer.push(s),e.dataLayer.push(r)}}startAutoPlay(){const e=this;e.isAutoplay()&&!e.swiper.autoplay.running&&(e.swiper.autoplay.start(),e.elements.slidesWrapper.setAttribute("aria-live","off"))}stopAutoPlay(){const e=this;e.isAutoplay()&&e.swiper.autoplay.running&&(e.swiper.autoplay.stop(),e.elements.slidesWrapper.setAttribute("aria-live","polite"))}addEventListeners(){const e=this;this.swiperPauseList[e.element.id]=!1,e.swiper&&(e.swiper.on("slideChangeTransitionEnd",(()=>{e.refreshActive()})),e.isAutoplay()&&(e.elements.sliderPause.addEventListener("click",(()=>{this.swiperPauseList[e.element.id]=!0,e.element.classList.add("pause-enabled"),e.element.classList.remove("play-enabled"),e.stopAutoPlay()})),e.elements.sliderPlay.addEventListener("click",(()=>{this.swiperPauseList[e.element.id]=!1,e.element.classList.add("play-enabled"),e.element.classList.remove("pause-enabled"),e.startAutoPlay()})),e.elements.slider.addEventListener("focusin",(()=>{e.stopAutoPlay()})),e.elements.slider.addEventListener("focusout",(t=>{t.relatedTarget&&!t.currentTarget.contains(t.relatedTarget)&&e.startAutoPlay()})),e.elements.slider.addEventListener("mouseleave",(t=>{t.preventDefault(),this.swiperPauseList[e.element.id]||e.startAutoPlay()}))),e.isAutoplay()&&e.isAutoPause()&&e.elements.slider.addEventListener("mouseenter",(t=>{t.preventDefault(),e.stopAutoPlay()})),e.element.addEventListener("keydown",(t=>{const n=e.elements.carouselItems.length-1;switch(t.keyCode){case e.keyCodes.HOME:t.preventDefault(),e.stopAutoPlay(),e.swiper.slideTo(0);break;case e.keyCodes.END:t.preventDefault(),e.stopAutoPlay(),e.swiper.slideTo(n)}})),window.addEventListener("resize",(t=>{t.preventDefault(),e.swiper.allowTouchMove=window.innerWidth<o})),window.addEventListener("resize",v((()=>{e.isMoreThanOneSlideShowing&&e.initSwiper()}),250)),e.updateSwiper())}init(){this.elements={slider:this.element.querySelector(`.${Ze}__content`),slidesWrapper:this.element.querySelector(`.${Ze}__slides`),carouselItems:this.element.querySelectorAll(`.${Ze}__item`),indicators:this.element.querySelectorAll(`.${Ze}__indicator`),sliderPause:this.element.querySelector(`.${Ze}__action--pause`),sliderPlay:this.element.querySelector(`.${Ze}__action--play`),prevButton:this.element.querySelector(`.${Ze}__action--prev`),nextButton:this.element.querySelector(`.${Ze}__action--next`)},this.isDataLayerEnabled=document.body.hasAttribute("data-cmp-data-layer-enabled"),this.dataLayer=this.isDataLayerEnabled?window.adobeDataLayer=window.adobeDataLayer||[]:void 0,this.isMoreThanOneSlideShowing=Number(this.element.getAttribute("data-cmp-number-of-slides"))>1,this.numberOfSlidesToShow=Number(this.element.getAttribute("data-cmp-number-of-slides"))||1,this.numberOfSlidesPerGroup=Number(this.element.getAttribute("data-cmp-slides-per-group"))||1,this.isMoreThanOneSlideShowing&&this.element.classList.add("multiple-slides"),this.keyCodes={END:35,HOME:36},this.swiper={},this.swiperPauseList={},_()||(this.initSwiper(),window.innerWidth>o&&(this.swiper.allowTouchMove=!1))}});s(".cmp-cookie-consent",class extends e{consentBanner(){window.cookieconsent.initialise({container:this.elements.container,content:{message:this.bannerText,dismiss:this.dismissLabel,allow:this.acceptLabel,deny:this.denyLabel,link:this.policyLabel,href:this.policyUrl,close:"&#x274c;",policy:"Cookie Policy",target:"_blank"}
2,cookie:{domain:this.cookieDomain,name:this.cookieName},position:this.bannerPosition,type:this.consentType})}init(){this.elements={container:this.element},this.consentType=this.element.dataset.type,this.cookieName=this.element.dataset.cookieName||"cookieconsent_status",this.cookieDomain=this.element.dataset.cookieDomain||"",this.bannerPosition=this.element.dataset.placement,this.bannerText=this.element.dataset.text,this.acceptLabel=this.element.dataset.acceptLabel,this.dismissLabel=this.element.dataset.dismissLabel,this.denyLabel=this.element.dataset.denyLabel,this.policyLabel=this.element.dataset.policyLabel,this.policyUrl=this.element.dataset.policyLink,this.consentBanner()}});const tt="cmp-floating-alert";s(`.${tt}`,class extends e{closeFloatingAlert(){sessionStorage.setItem(this.element.id,JSON.stringify(new Date)),this.element.classList.add("hidden")}showFloatingAlert(){null===sessionStorage.getItem(this.element.id)&&this.element.classList.remove("hidden")}addEventListeners(){this.elements.button&&this.elements.button.addEventListener("click",this.closeFloatingAlert.bind(this))}init(){this.elements={button:this.element.querySelector(`.${tt}__close`)},this.showFloatingAlert(),this.addEventListeners()}});const nt="cmp-global-site-searchbox";s(`.${nt}`,class extends e{addEventListener=()=>{const e=(e,t)=>{Object.keys(t).forEach((n=>{e.setAttribute(n,t[n])}))},t=t=>{if(!t)return;const n="selectedOption";e(t,{"aria-selected":"true",id:n}),this.elements.inputText.setAttribute("aria-activedescendant",n)},n=t=>{e(this.elements.inputText,{"aria-activedescendant":""}),t&&e(t,{"aria-selected":"false",id:""})},i=e=>{const i=this.elements.suggestionsList.querySelector('[aria-selected="true"]');let r;w(this.searchResults)||(e===c&&(r=null!==i?i.nextElementSibling:this.elements.suggestionsList.children[0]),e===u&&(r=null!==i?i.previousElementSibling:this.elements.suggestionsList.lastChild),n(i),t(r))},r=()=>{let e=this.elements.suggestionsList.querySelector('[aria-selected="true"]')?this.elements.suggestionsList.querySelector('[aria-selected="true"]').innerText:"";""!==e&&e!==this.cmpConfig.noResultLabel||(e=this.searchTerm),this.elements.inputText.value=e};this.isHeaderVariant&&this.elements.toggleSearch&&(this.elements.toggleSearch.addEventListener("click",(()=>{this.toggleSearchOverlay()})),this.elements.closeSearch.addEventListener("click",(()=>{this.toggleSearchOverlay()}))),this.elements.clearSearchText.addEventListener("click",(()=>{this.clearSearchResults();const e=window.location.toString();if(e.indexOf("#")>0){const t=e.substring(0,e.indexOf("#"));window.history.replaceState({},document.title,t)}})),this.elements.inputText.addEventListener("focus",v((e=>{this.searchTerm=e.target.value,this.searchTerm.length<1?this.showingDefaultSuggestionsList():this.hidingDefaultSuggestionsList()}),350)),this.elements.inputText.addEventListener("keyup",v((e=>{const{keyCode:t}=e,{characterLimit:n}=this.cmpConfig;this.searchTerm=e.target.value,this.searchTerm.length<1?this.showingDefaultSuggestionsList():this.hidingDefaultSuggestionsList(),t!==u&&t!==c&&t!==f&&t!==h&&(this.searchTerm.length?(this.elements.clearSearchText.style.visibility="visible",this.searchTerm.length>=n&&this.getSearchSuggestions()):this.clearSearchResults(),e.keyCode===d&&this.triggerSearch())}),350)),this.elements.inputText.addEventListener("keydown",(e=>{const{keyCode:t}=e;t!==f&&t!==d&&t!==h?t!==u&&t!==c||(i(t),r()):this.hidingSuggestionsList()})),this.elements.inputText.addEventListener("focus",(e=>{e.preventDefault(),"focus"===e.type&&this.showingSuggestionsList()})),document.addEventListener("click",(e=>{this.element.contains(e.target)||(this.hidingSuggestionsList(),this.hidingDefaultSuggestionsList())})),this.elements.suggestionsList.addEventListener("click",(e=>{const{innerText:t}=e.target;t!==this.cmpConfig.noResultLabel&&(this.searchTerm=t,this.elements.inputText.value=t,this.triggerSearch())})),this.elements.suggestionsList.addEventListener("blur",(()=>{this.elements.clearSearchText.focus()})),this.elements.submitSearch.addEventListener("click",(()=>{this.triggerSearch()}))};toggleSearchOverlay=()=>{this.element.classList.contains(`${nt}--open`)?(this.element.classList.remove(`${nt}--open`),document.body.classList.remove("no-scroll"),this.element.style.top=0,this.clearSearchResults()):(x()?document.body.classList.add("no-scroll"):this.setComponentPosition(),this.element.classList.add(`${nt}--open`))};updateSearchSuggestions=()=>{let e="";e=w(this.searchResults)?`<li class='${nt}__suggestions-list-item'>${this.cmpConfig.noResultLabel}</li>`:this.searchResults.map((e=>{const t=new RegExp(this.searchTerm,"g"),n=e.expression.replace(t,`<strong>${this.searchTerm}</strong>`);return`<li class='${nt}__suggestions-list-item' role="option" aria-selected="false" tabindex="-1">${n}</li>`})).join(""),this.elements.suggestionsList.innerHTML=e,e&&this.showingSuggestionsList()};clearSearchResults=()=>{this.hidingSuggestionsList(),this.elements.suggestionsList.innerHTML="",this.elements.inputText.value="",this.elements.clearSearchText.style.visibility="hidden"};setComponentPosition=()=>
2{if(!_()||function(){const e=document.getElementsByTagName("body")[0];return!!e&&e.classList.contains("preview")}()){const e=this.elements.header;if(e.matches("header")){const t=e.offsetTop+e.offsetHeight;this.element.style.top=`${t}px`}}};hidingSuggestionsList=()=>{C(this.elements.inputText,"aria-expanded","false"),this.elements.suggestions.classList.remove(`${nt}__suggestions-active`)};showingSuggestionsList=()=>{this.searchTerm&&(C(this.elements.inputText,"aria-expanded","true"),this.elements.suggestions.classList.add(`${nt}__suggestions-active`))};hidingDefaultSuggestionsList=()=>{C(this.elements.inputText,"aria-expanded","false"),this.elements.defaultSuggestions&&this.elements.defaultSuggestions.classList.remove(`${nt}__default-suggestions-active`)};showingDefaultSuggestionsList=()=>{this.searchTerm||(C(this.elements.inputText,"aria-expanded","true"),this.elements.defaultSuggestions&&this.elements.defaultSuggestions.classList.add(`${nt}__default-suggestions-active`))};getSearchSuggestions=()=>{const e="None"===this.cmpConfig.searchHub?"Community":this.cmpConfig.searchHub,{apiEndpoint:t,apiToken:n,resultsCount:i}=this.cmpConfig,r=t?`${t}/rest/search/v2/querySuggest`:"";if(""===n||""===r)return void console.log("Please check the API configurations");const s={"Content-Type":"application/json",Authorization:`Bearer ${n}`},o={q:this.searchTerm,count:i,searchHub:e};y({headers:s,method:"GET",payload:o,url:r}).then((e=>{this.searchResults=e.completions,this.updateSearchSuggestions()}))};triggerSearch=()=>{if(""===this.searchTerm)return;this.hidingSuggestionsList(),this.isHeaderVariant&&this.toggleSearchOverlay();const e=function(e){if("string"!=typeof e&&"number"!=typeof e||null===e)return"";const{queryString:t}=L(window.location.href);return S(t)[e]}("wcmmode")?window.location.search:"",t=`#${g({q:this.searchTerm})}`,n=`${this.cmpConfig.searchResultsPagePath}${e}${t}`;window.location.href=n};renderSearchToggleButton=()=>{if(this.isHeaderVariant){const e=`<button aria-label="${this.cmpConfig.searchButtonLabel}" type="button" class="fas fa-search cmp-global-site-searchbox__toggle"></button>`;this.elements.header.querySelector(".cmp-header").insertAdjacentHTML("beforeend",e),this.elements.toggleSearch=this.elements.closestParent.querySelector(`.${nt}__toggle`)}};init(){this.elements={configuration:this.element.querySelector(".configuration"),closestParent:this.element.closest("div.aem-Grid"),submitSearch:this.element.querySelector(`.${nt}__submit`),inputText:this.element.querySelector(`.${nt}__input`),clearSearchText:this.element.querySelector(`.${nt}__clear-search-text`),closeSearch:this.element.querySelector(`.${nt}__close`),suggestions:this.element.querySelector(`.${nt}__suggestions`),defaultSuggestions:this.element.querySelector(`.${nt}__default-suggestions`),suggestionsList:this.element.querySelector(`.${nt}__suggestions-list`)},this.cmpConfig=this.elements.configuration.dataset||{},this.cmpConfig.apiEndpoint=b("coveo_api_url"),this.cmpConfig.apiToken=b("coveo_api_token"),this.elements.header=this.elements.closestParent.querySelector("header"),this.isHeaderVariant=this.element.parentNode.classList.contains(`${nt}--header`),this.searchTerm="",this.searchResults={},this.renderSearchToggleButton(),this.addEventListener()}});const it="cmp-google-maps";class rt extends e{createMap(){if(!window.google)return;const e=JSON.parse(this.element.dataset.markersList),t=new window.google.maps.Map(this.elements.map,{center:{lat:parseFloat(e[0].latitude),lng:parseFloat(e[0].longitude)}});this.currentMap.bounds=new window.google.maps.LatLngBounds,this.searchBounds=null,this.currentMap.data=e,this.currentMap.map=t,this.currentMap.markers=[],this.mapMarker(),this.infoWindow(),this.addEventListeners()}mapMarker(){const{bounds:e,data:t,map:n,mapPadding:i,markers:r}=this.currentMap;Object.values(t).forEach((t=>{const{latitude:s,longitude:o,title:a,locationName:l,fullAddress:c,address:u,emailAddress:d,phoneNumber:h}=t,f=new window.google.maps.LatLng(s,o);e.extend(f);const p=new window.google.maps.Marker({position:f,map:n,title:a,locationName:l,fullAddress:c,address:u,emailAddress:d,phoneNumber:h});r.push(p),n.fitBounds(e,i)}))}infoWindow(){const{map:e,markers:t}=this.currentMap;this.currentInfoWindow=new window.google.maps.InfoWindow({content:"",minWidth:320}),t.forEach((t=>{t.addListener("click",(()=>{const n=t.address?t.address:`${t.position.lat()},${t.position.lng()}`,i=`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(n)}`,r=`<div class="${it}__info">\n                                            <h4 class="${it}__info-title">${t.locationName||""}</h4>\n                                            <div class="${it}__info-contact">\n                                                <div class="${it}__info-address">${t.fullAddress||t.address||""}</div>\n                                                <div class="${it}__info-email">${t.emailAddress||""}</div>\n                                                <div class="${it}__info-phone">${t.phoneNumber||""}</div>\n                                            </div>\n                                            ${t.distance?`<div class="${it}__info-distance"><i class="fa-solid fa-location-dot"></i>${t.distance} ${this.distanceUnit}</div>`:""}\n                                            <a href="${i}" class="${it}__info-directions" target="__blank">Get Directions</a>\n                                       </div>`;this.currentInfoWindow.setContent(r),this.currentInfoWindow.open({anchor:t,map:e,shouldFocus:!0})}))}))}fitMapBoundsToDistance(e){const{markers:t,map:n,mapPadding:i}=this.currentMap;let r;const s=new window.google.maps.LatLngBounds;t.forEach((e=>{s.extend(e.position),r=s.getCenter()})),Object.values({north:0,northeast:45,east:90,southeast:135,south:180,southwest:225,west:270,northwest:315}
2).forEach((t=>{const n=this.getOffsetLatLng(r,e,t);n&&s.extend(n)})),this.currentMap.bounds=s,n.fitBounds(s,i)}async calcDistance(e,t,n,i,r){const s=new window.google.maps.DistanceMatrixService,o=new window.google.maps.LatLng(e,t),a=new window.google.maps.LatLng(n,i);return await s.getDistanceMatrix({origins:[o],destinations:[a],travelMode:"DRIVING",unitSystem:window.google.maps.UnitSystem.IMPERIAL},r)}appendResultList(){const e=this.currentMap.markers.some((e=>e.map)),t=this.currentMap.markers.reduce(((e,t)=>e+(t.map?1:0)),0);if(this.elements.resultList.innerHTML="",this.currentMap.markers&&e){this.elements.noResultNotice&&this.elements.noResultNotice.classList.remove(this.classes.visible),this.elements.resultTitle&&this.elements.resultTitle.classList.add(this.classes.visible),this.elements.resultCount&&(this.elements.resultCount.innerText=t);const{markers:e}=this.currentMap;e.forEach((e=>{if(null!==e.map){const t=e.address?e.address:`${e.position.lat()},${e.position.lng()}`,n=`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(t)}`,i=document.createElement("div");i.classList.add(`${it}__location-container`),i.innerHTML=`\n                        <div class="${it}__location">\n                            <h4 class="${it}__location-name ${e.locationName?"":this.classes.hidden}">${e.locationName}</h4>\n                            <ul class="${it}__location-detail-container">\n                                <li class="${it}__location-detail ${e.fullAddress||e.address?"":this.classes.hidden}">${e.fullAddress||e.address}</li>\n                                <li class="${it}__location-detail ${e.emailAddress?"":this.classes.hidden}">${e.emailAddress}</li>\n                                <li class="${it}__location-detail ${e.phoneNumber?"":this.classes.hidden}">${e.phoneNumber}</li>\n                            </ul>\n                        </div>\n                        <div class="${it}__distance-container">\n                            <p class="${it}__distance">\n                                <i aria-hidden="true" class="fa-solid fa-location-dot"></i>\n                                ${e.distance} ${this.distanceUnit}\n                            </p>\n                            <a href="${n}" class="cmp-button ${it}__location-cta ${this.directionCta?"":`${it}__location-cta--hidden`}" target="__blank">\n                                <span class="cmp-button__text">${this.directionCta}</span>\n                            </a>\n                        </div>\n                    `,this.elements.resultList.appendChild(i)}}))}else this.elements.resultCount&&(this.elements.resultCount.innerText=""),this.elements.resultTitle&&this.elements.resultTitle.classList.remove(this.classes.visible),this.elements.noResultNotice&&this.elements.noResultNotice.classList.add(this.classes.visible)}addEventListeners(){const e=this;function t(t){e.elements.distanceFilter.disabled=!1,e.searchBounds||(e.searchBounds=e.elements.distanceFilter.querySelector("#distance-1").value,e.elements.distanceFilter.querySelector("#distance-1").checked=!0),e.currentPosition=t,e.addSearchBounds(t),e.displayMarkersByDistance(t)}window.addEventListener("resize",v((()=>{e.currentMap.fitBoundsToElmSize.call(e)}),350)),this.currentMap.fitBoundsToElmSize(),this.currentMap.currentDistanceSwitch=this.currentMap.minDistanceSwitch(),this.elements.currentLocationBtn&&this.elements.currentLocationBtn.addEventListener("click",(function(){e.elements.currentLocationBtn.disabled=!0,e.elements.input.value="",e.currentInfoWindow&&e.currentInfoWindow.close(),navigator.geolocation.getCurrentPosition((n=>{t({lat:n.coords.latitude,lng:n.coords.longitude}),e.elements.currentLocationBtn.disabled=!1}))})),this.elements.submitBtn&&this.elements.submitBtn.addEventListener("click",(function(n){n.preventDefault(),e.elements.submitBtn.disabled=!0,e.currentInfoWindow&&e.currentInfoWindow.close();const i=e.elements.input.value;(new window.google.maps.Geocoder).geocode({address:i}).then((n=>{t({lat:n.results[0].geometry.location.lat(),lng:n.results[0].geometry.location.lng()}),e.elements.submitBtn.disabled=!1}
2)).catch((()=>{const{markers:t}=e.currentMap;t.forEach((e=>e.setMap(null))),e.searchBounds=null,e.elements.distanceFilterOptions.forEach((e=>e.checked=!1)),e.elements.distanceFilter.disabled=!0,e.elements.submitBtn.disabled=!1,e.elements.resultList.innerHTML="",e.elements.resultCount&&(e.elements.resultCount.innerText=""),e.elements.resultTitle&&e.elements.resultTitle.classList.remove(e.classes.visible),e.elements.noResultNotice&&e.elements.noResultNotice.classList.add(e.classes.visible)}))})),this.elements.input&&this.elements.input.addEventListener("focus",(e=>e.target.value="")),this.elements.distanceFilter&&this.elements.distanceFilter.addEventListener("change",(function(t){const n=parseInt(t.target.value,10);e.searchBounds=n,e.currentPosition&&(e.addSearchBounds(e.currentPosition),e.displayMarkersByDistance(e.currentPosition))}))}addSearchBounds(e){const t=this,n=t.searchBounds||t.elements.distanceFilter.querySelector("#distance-1").value,{map:i,mapPadding:r}=t.currentMap,s=new window.google.maps.Circle({center:e,radius:t.getMeters(n),map:i,clickable:!1,strokeColor:"transparent",fillColor:"transparent"});i.fitBounds(s.getBounds(),r)}displayMarkersByDistance(e){const t=this,{map:n,markers:i}=t.currentMap;i.forEach((i=>{const{lat:r,lng:s}=i.position;t.calcDistance(e.lat,e.lng,r(),s(),(e=>(i,r)=>{if("OK"===r){const r=t.getMiles(i.rows[0].elements[0].distance.value);e.distance=r,r>t.searchBounds?e.setMap(null):e.setMap(n),t.appendResultList()}})(i))}))}getOffsetLatLng(e,t,n){return window.google.maps.geometry.spherical.computeOffset(e,t,n)}getMeters(e){return 1609.344*e}getMiles(e){const t=e/1609.344;return Math.round(10*t)/10}addTitle(){if(this.currentMap){const{map:e}=this.currentMap,{mapTitle:t}=this.element.dataset;e&&t&&window.google.maps.event.addListenerOnce(e,"idle",(()=>{const n=e.getDiv();n&&(n.getElementsByTagName("iframe")[0].title=t)}))}}init(){const{minMapDistance:e,minMapDistanceMobile:t}=this.element.dataset;if(this.currentMap={bounds:null,currentDistanceSwitch:null,data:null,map:null,markers:[],mapPadding:{bottom:0,left:0,right:0,top:0},minMapDistance:this.getMeters(e||1),minMapDistanceMobile:this.getMeters(t||.25),minDistanceSwitch:()=>this.element.offsetWidth>o,fitBoundsToElmSize:()=>{const e=this.currentMap.minDistanceSwitch();this.currentMap.currentDistanceSwitch!==e&&(this.fitMapBoundsToDistance(this.currentMap.minDistanceSwitch()?this.currentMap.minMapDistance:this.currentMap.minMapDistanceMobile),this.currentMap.currentDistanceSwitch=e)}},this.directionCta=this.element.dataset.directionCta,this.distanceUnit=this.element.dataset.distanceUnit,this.elements={currentLocationBtn:this.element.querySelector(`.${it}__current-location-button`),distanceFilter:this.element.querySelector("#distance-filter"),distanceFilterOptions:this.element.querySelectorAll('input[type="radio"]'),input:this.element.querySelector("#location-search"),map:this.element.querySelector(`.${it}__map`),noResultNotice:this.element.querySelector(`.${it}__no-result-notice`),resultCount:this.element.querySelector(`.${it}__search-results--count`),resultList:this.element.querySelector(`.${it}__results-list`),resultTitle:this.element.querySelector(`.${it}__search-results--header`),submitBtn:this.element.querySelector(`.${it}__submit-button`)},this.classes={hidden:`${it}--hidden`,visible:`${it}--visible`},this.createMap(),this.addTitle(),_()){const e=document.location.origin;window.addEventListener("message",(t=>{t.origin===e&&"map edited"===t.data&&setTimeout((()=>{this.createMap()}),500)}))}}}function st(e){return e+.5|0}!0===window.googleMapsLoaded?s(`.${it}`,rt):"function"==typeof window.googleMapsLoaded&&(window.googleMapsLoaded=function(){s(`.${it}`,rt)});const ot=(e,t,n)=>Math.max(Math.min(e,n),t);function at(e){return ot(st(2.55*e),0,255)}function lt(e){return ot(st(255*e),0,255)}function ct(e){return ot(st(e/2.55)/100,0,1)}function ut(e){return ot(st(100*e),0,100)}const dt={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},ht=[..."0123456789ABCDEF"],ft=e=>ht[15&e],pt=e=>ht[(240&e)>>4]+ht[15&e],mt=e=>(240&e)>>4==(15&e);function gt(e){var t=(e=>mt(e.r)&&mt(e.g)&&mt(e.b)&&mt(e.a))(e)?ft:pt;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const vt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function yt(e,t,n){const i=t*Math.min(n,1-n),r=(t,r=(t+e/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function bt(e,t,n){const i=(i,r=(i+e/60)%6)=>n-n*t*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function _t(e,t,n){const i=yt(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function Et(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),s=Math.min(t,n,i),o=(r+s)/2;let a,l,c;return r!==s&&(c=r-s,l=o>.5?c/(2-r-s):c/(r+s),a=function(e,t,n,i,r){return e===r?(t-n)/i+(t<n?6:0):t===r?(n-e)/i+2:(e-t)/i+4}(t,n,i,c,r),a=60*a+.5),[0|a,l||0,o]}function wt(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(lt)}function xt(e,t,n){return wt(yt,e,t,n)}function Tt(e){return(e%360+360)%360}function St(e){const t=vt.exec(e);let n,i=255;if(!t)return;t[5]!==n&&(i=t[6]?at(+t[5]):lt(+t[5]));const r=Tt(+t[2]),s=+t[3]/100,o=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return wt(_t,e,t,n)}(r,s,o):"hsv"===t[1]?function(e,t,n){return wt(bt,e,t,n)}
vendor: 3,460 bytes, line 2
2(r,s,o):xt(r,s,o),{r:n[0],g:n[1],b:n[2],a:i}}const Lt={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"},It={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"};let Ct;function Ot(e){Ct||(Ct=function(){const e={},t=Object.keys(It),n=Object.keys(Lt);let i,r,s,o,a;for(i=0;i<t.length;i++){for(o=a=t[i],r=0;r<n.length;r++)s=n[r],a=a.replace(s,Lt[s]);s=parseInt(It[o],16),e[a]=[s>>16&255,s>>8&255,255&s]}return e}(),Ct.transparent=[0,0,0,0]);const t=Ct[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const At=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Mt=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,kt=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Pt(e,t,n){if(e){let i=Et(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,0===t?360:1)),i=xt(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function Rt(e,t){return e?Object.assign(t||{},e):e}function Dt(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>
vendor: 6,142 bytes, line 2
23&&(t.a=lt(e[3]))):(t=Rt(e,{r:0,g:0,b:0,a:1})).a=lt(t.a),t}function Nt(e){return"r"===e.charAt(0)?function(e){const t=At.exec(e);let n,i,r,s=255;if(t){if(t[7]!==n){const e=+t[7];s=t[8]?at(e):ot(255*e,0,255)}return n=+t[1],i=+t[3],r=+t[5],n=255&(t[2]?at(n):ot(n,0,255)),i=255&(t[4]?at(i):ot(i,0,255)),r=255&(t[6]?at(r):ot(r,0,255)),{r:n,g:i,b:r,a:s}}}(e):St(e)}class $t{constructor(e){if(e instanceof $t)return e;const t=typeof e;let n;var i,r,s;"object"===t?n=Dt(e):"string"===t&&(s=(i=e).length,"#"===i[0]&&(4===s||5===s?r={r:255&17*dt[i[1]],g:255&17*dt[i[2]],b:255&17*dt[i[3]],a:5===s?17*dt[i[4]]:255}:7!==s&&9!==s||(r={r:dt[i[1]]<<4|dt[i[2]],g:dt[i[3]]<<4|dt[i[4]],b:dt[i[5]]<<4|dt[i[6]],a:9===s?dt[i[7]]<<4|dt[i[8]]:255})),n=r||Ot(e)||Nt(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=Rt(this._rgb);return e&&(e.a=ct(e.a)),e}set rgb(e){this._rgb=Dt(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ct(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?gt(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=Et(e),n=t[0],i=ut(t[1]),r=ut(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${r}%, ${ct(e.a)})`:`hsl(${n}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,i=e.rgb;let r;const s=t===r?.5:t,o=2*s-1,a=n.a-i.a,l=((o*a==-1?o:(o+a)/(1+o*a))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=s*n.a+(1-s)*i.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const i=kt(ct(e.r)),r=kt(ct(e.g)),s=kt(ct(e.b));return{r:lt(Mt(i+n*(kt(ct(t.r))-i))),g:lt(Mt(r+n*(kt(ct(t.g))-r))),b:lt(Mt(s+n*(kt(ct(t.b))-s))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new $t(this.rgb)}alpha(e){return this._rgb.a=lt(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=st(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Pt(this._rgb,2,e),this}darken(e){return Pt(this._rgb,2,-e),this}saturate(e){return Pt(this._rgb,1,e),this}desaturate(e){return Pt(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=Et(e);n[0]=Tt(n[0]+t),n=xt(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function Ft(){}const Bt=(()=>{let e=0;return()=>e++})();function jt(e){return null==e}function qt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function Vt(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function Gt(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function zt(e,t){return Gt(e)?e:t}function Ut(e,t){return void 0===e?t:e}const Ht=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Wt(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function Yt(e,t,n,i){let r,s,o;if(qt(e))if(s=e.length,i)for(r=s-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<s;r++)t.call(n,e[r],r);else if(Vt(e))for(o=Object.keys(e),s=o.length,r=0;r<s;r++)t.call(n,e[o[r]],o[r])}function Xt(e,t){let n,i,r,s;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],s=t[n],r.datasetIndex!==s.datasetIndex||r.index!==s.index)return!1;return!0}function Kt(e){if(qt(e))return e.map(Kt);if(Vt(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let r=0;for(;r<i;++r)t[n[r]]=Kt(e[n[r]]);return t}return e}function Qt(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Jt(e,t,n,i){if(!Qt(e))return;const r=t[e],s=n[e];Vt(r)&&Vt(s)?Zt(r,s,i):t[e]=Kt(s)}function Zt(e,t,n){const i=qt(t)?t:[t],r=i.length;if(!Vt(e))return e;const s=(n=n||{}).merger||Jt;let o;for(let t=0;t<r;++t){if(o=i[t],!Vt(o))continue;const r=Object.keys(o);for(let t=0,i=r.length;t<i;++t)s(r[t],e,o,n)}return e}function en(e,t){return Zt(e,t,{merger:tn})}function tn(e,t,n){if(!Qt(e))return;const i=t[e],r=n[e];Vt(i)&&Vt(r)?en(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Kt(r))}const nn={"":e=>e,x:e=>e.x,y:e=>e.y};function rn(e,t){const n=nn[t]||(nn[t]=function(e){const t=function(e){const t=e.split("."),n=[];let i="";for(const e of t)i+=e,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function sn(e){return e.charAt(0).toUpperCase()+e.slice(1)}const on=e=>void 0!==e,an=e=>"function"==typeof e,ln=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const cn=Math.PI,un=2*cn,dn=un+cn,hn=Number.POSITIVE_INFINITY,fn=cn/180,pn=cn/2,mn=cn/4,gn=2*cn/3,vn=Math.log10,yn=Math.sign;function bn(e,t,n){return Math.abs(e-t)<n}function _n(e){const t=Math.round(e);e=bn(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(vn(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function En(e){return!isNaN(parseFloat(e))&&isFinite(e)}function wn(e,t,n){let i,r,s;for(i=0,r=e.length;i<r;i++)s=e[i][n],isNaN(s)||(t.min=Math.min(t.min,s),t.max=Math.max(t.max,s))}function xn(e){return e*(cn/180)}function Tn(e){return e*(180/cn)}function Sn(e){if(!Gt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Ln(e,t){const n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i);let s=Math.atan2(i,n);return s<-.5*cn&&(s+=un),{angle:s,distance:r}}function In(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Cn(e,t){return(e-t+dn)%un-cn}function On(e){return(e%un+un)%un}function An(e,t,n,i){const r=On(e),s=On(t),o=On(n),a=On(s-r),l=On(o-r),c=On(r-s),u=On(r-o);return r===s||r===o||i&&s===o||a>l&&c<u}function Mn(e,t,n){return Math.max(t,Math.min(n,e))}function kn(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function Pn(e,t,n){n=n||(n=>e[n]<t);let i,r=e.length-1,s=0;for(;r-s>1;)i=s+r>>1,n(i)?s=i:r=i;return{lo:s,hi:r}}const Rn=(e,t,n,i)=>Pn(e,n,i?i=>{const r=e[i][t];return r<n||r===n&&e[i+1][t]===n}:i=>e[i][t]<n),Dn=(e,t,n)=>Pn(e,n,(i=>e[i][t]>=n));const Nn=["push","pop","shift","splice","unshift"];function $n(e,t){const n=e._chartjs;if(!n)return;
vendor: 4,797 bytes, line 2
2const i=n.listeners,r=i.indexOf(t);-1!==r&&i.splice(r,1),i.length>0||(Nn.forEach((t=>{delete e[t]})),delete e._chartjs)}function Fn(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Bn="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function jn(e,t){let n=[],i=!1;return function(...r){n=r,i||(i=!0,Bn.call(window,(()=>{i=!1,e.apply(t,n)})))}}const qn=e=>"start"===e?"left":"end"===e?"right":"center",Vn=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;function Gn(e,t,n){const i=t.length;let r=0,s=i;if(e._sorted){const{iScale:o,_parsed:a}=e,l=o.axis,{min:c,max:u,minDefined:d,maxDefined:h}=o.getUserBounds();d&&(r=Mn(Math.min(Rn(a,l,c).lo,n?i:Rn(t,l,o.getPixelForValue(c)).lo),0,i-1)),s=h?Mn(Math.max(Rn(a,o.axis,u,!0).hi+1,n?0:Rn(t,l,o.getPixelForValue(u),!0).hi+1),r,i)-r:i-r}return{start:r,count:s}}function zn(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=r,!0;const s=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),s}const Un=e=>0===e||1===e,Hn=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*un/n),Wn=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*un/n)+1,Yn={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*pn),easeOutSine:e=>Math.sin(e*pn),easeInOutSine:e=>-.5*(Math.cos(cn*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>Un(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Un(e)?e:Hn(e,.075,.3),easeOutElastic:e=>Un(e)?e:Wn(e,.075,.3),easeInOutElastic(e){const t=.1125;return Un(e)?e:e<.5?.5*Hn(2*e,t,.45):.5+.5*Wn(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-Yn.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*Yn.easeInBounce(2*e):.5*Yn.easeOutBounce(2*e-1)+.5};function Xn(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function Kn(e){return Xn(e)?e:new $t(e)}function Qn(e){return Xn(e)?e:new $t(e).saturate(.5).darken(.1).hexString()}const Jn=["x","y","borderWidth","radius","tension"],Zn=["color","borderColor","backgroundColor"];const ei=new Map;function ti(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let i=ei.get(n);return i||(i=new Intl.NumberFormat(e,t),ei.set(n,i)),i}(t,n).format(e)}const ni={values(e){return qt(e)?e:""+e},numeric(e,t,n){if(0===e)return"0";const i=this.chart.options.locale;let r,s=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(r="scientific"),s=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}const o=vn(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),ti(e,i,l)},logarithmic(e,t,n){if(0===e)return"0";const i=n[t].significand||e/Math.pow(10,Math.floor(vn(e)));return[1,2,3,5,10,15].includes(i)||t>.8*n.length?ni.numeric.call(this,e,t,n):""}};var ii={formatters:ni};const ri=Object.create(null),si=Object.create(null);function oi(e,t){if(!t)return e;const n=t.split(".");for(let t=0,i=n.length;t<i;++t){const i=n[t];e=e[i]||(e[i]=Object.create(null))}return e}function ai(e,t,n){return"string"==typeof t?Zt(oi(e,t),n):Zt(oi(e,""),t)}class li{constructor(e,t){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=e=>e.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={}
vendor: 4,371 bytes, line 2
2,this.hoverBackgroundColor=(e,t)=>Qn(t.backgroundColor),this.hoverBorderColor=(e,t)=>Qn(t.borderColor),this.hoverColor=(e,t)=>Qn(t.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(e),this.apply(t)}set(e,t){return ai(this,e,t)}get(e){return oi(this,e)}describe(e,t){return ai(si,e,t)}override(e,t){return ai(ri,e,t)}route(e,t,n,i){const r=oi(this,e),s=oi(this,n),o="_"+t;Object.defineProperties(r,{[o]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[o],t=s[i];return Vt(e)?Object.assign({},t,e):Ut(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach((e=>e(this)))}}var ci=new li({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:Zn},numbers:{type:"number",properties:Jn}}),e.describe("animations",{_fallback:"animation"}),e.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:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.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:ii.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function ui(e,t,n,i,r){let s=t[r];return s||(s=t[r]=e.measureText(r).width,n.push(r)),s>i&&(i=s),i}function di(e,t,n,i){let r=(i=i||{}).data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},s=i.garbageCollect=[],i.font=t),e.save(),e.font=t;let o=0;const a=n.length;let l,c,u,d,h;for(l=0;l<a;l++)if(d=n[l],null==d||qt(d)){if(qt(d))for(c=0,u=d.length;c<u;c++)h=d[c],null==h||qt(h)||(o=ui(e,r,s,o,h))}else o=ui(e,r,s,o,d);e.restore();const f=s.length/2;if(f>n.length){for(l=0;l<f;l++)delete r[s[l]];s.splice(0,f)}return o}function hi(e,t,n){const i=e.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((t-r)*i)/i+r}function fi(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function pi(e,t,n,i){mi(e,t,n,i,null)}function mi(e,t,n,i,r){let s,o,a,l,c,u,d,h;const f=t.pointStyle,p=t.rotation,m=t.radius;let g=(p||0)*fn;if(f&&"object"==typeof f&&(s=f.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return e.save(),e.translate(n,i),e.rotate(g),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void e.restore();if(!(isNaN(m)||m<=0)){switch(e.beginPath(),f){default:r?e.ellipse(n,i,r/2,m,0,0,un):e.arc(n,i,m,0,un),e.closePath();break;case"triangle":u=r?r/2:m,e.moveTo(n+Math.sin(g)*u,i-Math.cos(g)*m),g+=gn,e.lineTo(n+Math.sin(g)*u,i-Math.cos(g)*m),g+=gn,e.lineTo(n+Math.sin(g)*u,i-Math.cos(g)*m),e.closePath();break;
vendor: 6,265 bytes, line 2
2case"rectRounded":c=.516*m,l=m-c,o=Math.cos(g+mn)*l,d=Math.cos(g+mn)*(r?r/2-c:l),a=Math.sin(g+mn)*l,h=Math.sin(g+mn)*(r?r/2-c:l),e.arc(n-d,i-a,c,g-cn,g-pn),e.arc(n+h,i-o,c,g-pn,g),e.arc(n+d,i+a,c,g,g+pn),e.arc(n-h,i+o,c,g+pn,g+cn),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,u=r?r/2:l,e.rect(n-u,i-l,2*u,2*l);break}g+=mn;case"rectRot":d=Math.cos(g)*(r?r/2:m),o=Math.cos(g)*m,a=Math.sin(g)*m,h=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,i-a),e.lineTo(n+h,i-o),e.lineTo(n+d,i+a),e.lineTo(n-h,i+o),e.closePath();break;case"crossRot":g+=mn;case"cross":d=Math.cos(g)*(r?r/2:m),o=Math.cos(g)*m,a=Math.sin(g)*m,h=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,i-a),e.lineTo(n+d,i+a),e.moveTo(n+h,i-o),e.lineTo(n-h,i+o);break;case"star":d=Math.cos(g)*(r?r/2:m),o=Math.cos(g)*m,a=Math.sin(g)*m,h=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,i-a),e.lineTo(n+d,i+a),e.moveTo(n+h,i-o),e.lineTo(n-h,i+o),g+=mn,d=Math.cos(g)*(r?r/2:m),o=Math.cos(g)*m,a=Math.sin(g)*m,h=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,i-a),e.lineTo(n+d,i+a),e.moveTo(n+h,i-o),e.lineTo(n-h,i+o);break;case"line":o=r?r/2:Math.cos(g)*m,a=Math.sin(g)*m,e.moveTo(n-o,i-a),e.lineTo(n+o,i+a);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(g)*(r?r/2:m),i+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function gi(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function vi(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function yi(e){e.restore()}function bi(e,t,n,i,r){if(!t)return e.lineTo(n.x,n.y);if("middle"===r){const i=(t.x+n.x)/2;e.lineTo(i,t.y),e.lineTo(i,n.y)}else"after"===r!=!!i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function _i(e,t,n,i){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function Ei(e,t,n,i,r){if(r.strikethrough||r.underline){const s=e.measureText(i),o=t-s.actualBoundingBoxLeft,a=t+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,c=n+s.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(o,u),e.lineTo(a,u),e.stroke()}}function wi(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function xi(e,t,n,i,r,s={}){const o=qt(t)?t:[t],a=s.strokeWidth>0&&""!==s.strokeColor;let l,c;for(e.save(),e.font=r.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),jt(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,s),l=0;l<o.length;++l)c=o[l],s.backdrop&&wi(e,s.backdrop),a&&(s.strokeColor&&(e.strokeStyle=s.strokeColor),jt(s.strokeWidth)||(e.lineWidth=s.strokeWidth),e.strokeText(c,n,i,s.maxWidth)),e.fillText(c,n,i,s.maxWidth),Ei(e,n,i,c,s),i+=Number(r.lineHeight);e.restore()}function Ti(e,t){const{x:n,y:i,w:r,h:s,radius:o}=t;e.arc(n+o.topLeft,i+o.topLeft,o.topLeft,1.5*cn,cn,!0),e.lineTo(n,i+s-o.bottomLeft),e.arc(n+o.bottomLeft,i+s-o.bottomLeft,o.bottomLeft,cn,pn,!0),e.lineTo(n+r-o.bottomRight,i+s),e.arc(n+r-o.bottomRight,i+s-o.bottomRight,o.bottomRight,pn,0,!0),e.lineTo(n+r,i+o.topRight),e.arc(n+r-o.topRight,i+o.topRight,o.topRight,0,-pn,!0),e.lineTo(n+o.topLeft,i)}const Si=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Li=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Ii(e,t){const n=(""+e).match(Si);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const Ci=e=>+e||0;function Oi(e,t){const n={},i=Vt(t),r=i?Object.keys(t):t,s=Vt(e)?i?n=>Ut(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of r)n[e]=Ci(s(e));return n}function Ai(e){return Oi(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Mi(e){return Oi(e,["topLeft","topRight","bottomLeft","bottomRight"])}function ki(e){const t=Ai(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Pi(e,t){e=e||{},t=t||ci.font;let n=Ut(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let i=Ut(e.style,t.style);i&&!(""+i).match(Li)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:Ut(e.family,t.family),lineHeight:Ii(Ut(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:Ut(e.weight,t.weight),string:""};return r.string=function(e){return!e||jt(e.size)||jt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r}function Ri(e,t,n,i){let r,s,o,a=!0;for(r=0,s=e.length;r<s;++r)if(o=e[r],void 0!==o&&(void 0!==t&&"function"==typeof o&&(o=o(t),a=!1),void 0!==n&&qt(o)&&(o=o[n%o.length],a=!1),void 0!==o))return i&&!a&&(i.cacheable=!1),o}function Di(e,t){return Object.assign(Object.create(e),t)}function Ni(e,t=[""],n,i,r=(()=>e[0])){const s=n||e;void 0===i&&(i=Wi("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:i,_getTarget:r,override:n=>Ni([n,...e],t,s,i)};return new Proxy(o,{deleteProperty(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get(n,i){return qi(n,i,(()=>function(e,t,n,i){let r;for(const s of t)if(r=Wi(Bi(s,e),n),void 0!==r)return ji(e,r)?Ui(n,i,e,r):r}(i,t,e,n)))},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(e,t){return Yi(e).includes(t)},ownKeys(e){return Yi(e)},set(e,t,n){const i=e._storage||(e._storage=r());return e[t]=i[t]=n,delete e._keys,!0}})}function $i(e,t,n,i){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Fi(e,i),setContext:t=>$i(e,t,n,i),override:r=>$i(e.override(r),t,n,i)};return new Proxy(r,{deleteProperty(t,n){return delete t[n],delete e[n],!0},get(e,t,n){return qi(e,t,(()=>function(e,t,n){const{_proxy:i,_context:r,_subProxy:s,_descriptors:o}=e;let a=i[t];an(a)&&o.isScriptable(t)&&(a=function(e,t,n,i){const{_proxy:r,_context:s,_subProxy:o,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(s,o||i);a.delete(e),ji(e,l)&&(l=Ui(r._scopes,r,e,l));return l}(t,a,e,n));qt(a)&&a.length&&(a=function(e,t,n,i){const{_proxy:r,_context:s,_subProxy:o,_descriptors:a}=n;if(void 0!==s.index&&i(e))return t[s.index%t.length];
vendor: 4,338 bytes, line 2
2if(Vt(t[0])){const n=t,i=r._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=Ui(i,r,e,l);t.push($i(n,s,o&&o[e],a))}}return t}(t,a,e,o.isIndexable));ji(t,a)&&(a=$i(a,r,s&&s[t],o));return a}(e,t,n)))},getOwnPropertyDescriptor(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(t,n){return Reflect.has(e,n)},ownKeys(){return Reflect.ownKeys(e)},set(t,n,i){return e[n]=i,delete t[n],!0}})}function Fi(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:i,isScriptable:an(n)?n:()=>n,isIndexable:an(i)?i:()=>i}}const Bi=(e,t)=>e?e+sn(t):t,ji=(e,t)=>Vt(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function qi(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const i=n();return e[t]=i,i}function Vi(e,t,n){return an(e)?e(t,n):e}const Gi=(e,t)=>!0===e?t:"string"==typeof e?rn(t,e):void 0;function zi(e,t,n,i,r){for(const s of t){const t=Gi(n,s);if(t){e.add(t);const s=Vi(t._fallback,n,r);if(void 0!==s&&s!==n&&s!==i)return s}else if(!1===t&&void 0!==i&&n!==i)return null}return!1}function Ui(e,t,n,i){const r=t._rootScopes,s=Vi(t._fallback,n,i),o=[...e,...r],a=new Set;a.add(i);let l=Hi(a,o,n,s||n,i);return null!==l&&((void 0===s||s===n||(l=Hi(a,o,s,l,i),null!==l))&&Ni(Array.from(a),[""],r,s,(()=>function(e,t,n){const i=e._getTarget();t in i||(i[t]={});const r=i[t];if(qt(r)&&Vt(n))return n;return r||{}}(t,n,i))))}function Hi(e,t,n,i,r){for(;n;)n=zi(e,t,n,i,r);return n}function Wi(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function Yi(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}function Xi(e,t,n,i){const{iScale:r}=e,{key:s="r"}=this._parsing,o=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=t[c],o[a]={r:r.parse(rn(u,s),c)};return o}const Ki=Number.EPSILON||1e-14,Qi=(e,t)=>t<e.length&&!e[t].skip&&e[t],Ji=e=>"x"===e?"y":"x";function Zi(e,t,n,i){const r=e.skip?t:e,s=t,o=n.skip?t:n,a=In(s,r),l=In(o,s);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=i*c,h=i*u;return{previous:{x:s.x-d*(o.x-r.x),y:s.y-d*(o.y-r.y)},next:{x:s.x+h*(o.x-r.x),y:s.y+h*(o.y-r.y)}}}function er(e,t="x"){const n=Ji(t),i=e.length,r=Array(i).fill(0),s=Array(i);let o,a,l,c=Qi(e,0);for(o=0;o<i;++o)if(a=l,l=c,c=Qi(e,o+1),l){if(c){const e=c[t]-l[t];r[o]=0!==e?(c[n]-l[n])/e:0}s[o]=a?c?yn(r[o-1])!==yn(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}!function(e,t,n){const i=e.length;let r,s,o,a,l,c=Qi(e,0);for(let u=0;u<i-1;++u)l=c,c=Qi(e,u+1),l&&c&&(bn(t[u],0,Ki)?n[u]=n[u+1]=0:(r=n[u]/t[u],s=n[u+1]/t[u],a=Math.pow(r,2)+Math.pow(s,2),a<=9||(o=3/Math.sqrt(a),n[u]=r*o*t[u],n[u+1]=s*o*t[u])))}(e,r,s),function(e,t,n="x"){const i=Ji(n),r=e.length;let s,o,a,l=Qi(e,0);for(let c=0;c<r;++c){if(o=a,a=l,l=Qi(e,c+1),!a)continue;const r=a[n],u=a[i];o&&(s=(r-o[n])/3,a[`cp1${n}`]=r-s,a[`cp1${i}`]=u-s*t[c]),l&&(s=(l[n]-r)/3,a[`cp2${n}`]=r+s,a[`cp2${i}`]=u+s*t[c])}}(e,s,t)}function tr(e,t,n){return Math.max(Math.min(e,n),t)}function nr(e,t,n,i,r){let s,o,a,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)er(e,r);else{let n=i?e[e.length-1]:e[0];for(s=0,o=e.length;s<o;++s)a=e[s],l=Zi(n,a,e[Math.min(s+1,o-(i?0:1))%o],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,n=a}t.capBezierPoints&&function(e,t){let n,i,r,s,o,a=gi(e[0],t);for(n=0,i=e.length;n<i;++n)o=s,s=a,a=n<i-1&&gi(e[n+1],t),s&&(r=e[n],o&&(r.cp1x=tr(r.cp1x,t.left,t.right),r.cp1y=tr(r.cp1y,t.top,t.bottom)),a&&(r.cp2x=tr(r.cp2x,t.left,t.right),r.cp2y=tr(r.cp2y,t.top,t.bottom)))}(e,n)}function ir(){return"undefined"!=typeof window&&"undefined"!=typeof document}function rr(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function sr(e,t,n){let i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*t.parentNode[n])):i=e,i}const or=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const ar=["top","right","bottom","left"];function lr(e,t,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const s=ar[r];
vendor: 5,916 bytes, line 2
2i[s]=parseFloat(e[t+"-"+s+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const cr=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function ur(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,r=or(n),s="border-box"===r.boxSizing,o=lr(r,"padding"),a=lr(r,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:r,offsetY:s}=i;let o,a,l=!1;if(cr(r,s,e.target))o=r,a=s;else{const e=t.getBoundingClientRect();o=i.clientX-e.left,a=i.clientY-e.top,l=!0}return{x:o,y:a,box:l}}(e,n),d=o.left+(u&&a.left),h=o.top+(u&&a.top);let{width:f,height:p}=t;return s&&(f-=o.width+a.width,p-=o.height+a.height),{x:Math.round((l-d)/f*n.width/i),y:Math.round((c-h)/p*n.height/i)}}const dr=e=>Math.round(10*e)/10;function hr(e,t,n,i){const r=or(e),s=lr(r,"margin"),o=sr(r.maxWidth,e,"clientWidth")||hn,a=sr(r.maxHeight,e,"clientHeight")||hn,l=function(e,t,n){let i,r;if(void 0===t||void 0===n){const s=rr(e);if(s){const e=s.getBoundingClientRect(),o=or(s),a=lr(o,"border","width"),l=lr(o,"padding");t=e.width-l.width-a.width,n=e.height-l.height-a.height,i=sr(o.maxWidth,s,"clientWidth"),r=sr(o.maxHeight,s,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:i||hn,maxHeight:r||hn}}(e,t,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const e=lr(r,"border","width"),t=lr(r,"padding");c-=t.width+e.width,u-=t.height+e.height}c=Math.max(0,c-s.width),u=Math.max(0,i?c/i:u-s.height),c=dr(Math.min(c,o,l.maxWidth)),u=dr(Math.min(u,a,l.maxHeight)),c&&!u&&(u=dr(c/2));return(void 0!==t||void 0!==n)&&i&&l.height&&u>l.height&&(u=l.height,c=dr(Math.floor(u*i))),{width:c,height:u}}function fr(e,t,n){const i=t||1,r=Math.floor(e.height*i),s=Math.floor(e.width*i);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==i||o.height!==r||o.width!==s)&&(e.currentDevicePixelRatio=i,o.height=r,o.width=s,e.ctx.setTransform(i,0,0,i,0,0),!0)}const pr=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};ir()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function mr(e,t){const n=function(e,t){return or(e).getPropertyValue(t)}(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function gr(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function vr(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:"middle"===i?n<.5?e.y:t.y:"after"===i?n<1?e.y:t.y:n>0?t.y:e.y}}function yr(e,t,n,i){const r={x:e.cp2x,y:e.cp2y},s={x:t.cp1x,y:t.cp1y},o=gr(e,r,n),a=gr(r,s,n),l=gr(s,t,n),c=gr(o,a,n),u=gr(a,l,n);return gr(c,u,n)}function br(e,t,n){return e?function(e,t){return{x(n){return e+e+t-n},setWidth(e){t=e},textAlign(e){return"center"===e?e:"right"===e?"left":"right"},xPlus(e,t){return e-t},leftForLtr(e,t){return e-t}}}(t,n):{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}}function _r(e,t){let n,i;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function Er(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function wr(e){return"angle"===e?{between:An,compare:Cn,normalize:On}:{between:kn,compare:(e,t)=>e-t,normalize:e=>e}}function xr({start:e,end:t,count:n,loop:i,style:r}){return{start:e%n,end:t%n,loop:i&&(t-e+1)%n==0,style:r}}function Tr(e,t,n){if(!n)return[e];const{property:i,start:r,end:s}=n,o=t.length,{compare:a,between:l,normalize:c}=wr(i),{start:u,end:d,loop:h,style:f}=function(e,t,n){const{property:i,start:r,end:s}=n,{between:o,normalize:a}=wr(i),l=t.length;let c,u,{start:d,end:h,loop:f}=e;if(f){for(d+=l,h+=l,c=0,u=l;c<u&&o(a(t[d%l][i]),r,s);++c)d--,h--;d%=l,h%=l}return h<d&&(h+=l),{start:d,end:h,loop:f,style:e.style}}(e,t,n),p=[];let m,g,v,y=!1,b=null;const _=()=>y||l(r,v,m)&&0!==a(r,v),E=()=>!y||0===a(s,m)||l(s,v,m);for(let e=u,n=u;e<=d;++e)g=t[e%o],g.skip||(m=c(g[i]),m!==v&&(y=l(m,r,s),null===b&&_()&&(b=0===a(m,r)?e:n),null!==b&&E()&&(p.push(xr({start:b,end:e,loop:h,count:o,style:f})),b=null),n=e,v=m));return null!==b&&p.push(xr({start:b,end:d,loop:h,count:o,style:f})),p}function Sr(e,t){const n=[],i=e.segments;for(let r=0;r<i.length;r++){const s=Tr(i[r],e.points,t);s.length&&n.push(...s)}return n}function Lr(e,t,n,i){return i&&i.setContext&&n?function(e,t,n,i){const r=e._chart.getContext(),s=Ir(e.options),{_datasetIndex:o,options:{spanGaps:a}}=e,l=n.length,c=[];let u=s,d=t[0].start,h=d;function f(e,t,i,r){const s=a?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=s;for(;n[t%l].skip;)t+=s;e%l!=t%l&&(c.push({start:e%l,end:t%l,loop:i,style:r}),u=r,d=t%l)}}for(const e of t){d=a?d:e.start;let t,s=n[d%l];for(h=d+1;h<=e.end;h++){const a=n[h%l];t=Ir(i.setContext(Di(r,{type:"segment",p0:s,p1:a,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:o}))),Cr(t,u)&&f(d,h-1,e.loop,u),s=a,u=t}d<h-1&&f(d,h-1,e.loop,u)}return c}(e,t,n,i):t}function Ir(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Cr(e,t){if(!t)return!1;const n=[],i=function(e,t){return Xn(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,i)!==JSON.stringify(t,i)}class Or{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,i){const r=t.listeners[i],s=t.duration;r.forEach((i=>i({chart:e,initial:t.initial,numSteps:s,currentStep:Math.min(n-t.start,s)})))}_refresh(){this._request||(this._running=!0,this._request=Bn.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;
vendor: 10,009 bytes, line 2
2this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let s,o=r.length-1,a=!1;for(;o>=0;--o)s=r[o],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(e),a=!0):(r[o]=r[r.length-1],r.pop());a&&(i.draw(),this._notify(i,n,e,"progress")),r.length||(n.running=!1,this._notify(i,n,e,"complete"),n.initial=!1),t+=r.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Ar=new Or;const Mr="transparent",kr={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=Kn(e||Mr),r=i.valid&&Kn(t||Mr);return r&&r.valid?r.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Pr{constructor(e,t,n,i){const r=t[n];i=Ri([e.to,i,r,e.from]);const s=Ri([e.from,r,i]);this._active=!0,this._fn=e.fn||kr[e.type||typeof s],this._easing=Yn[e.easing]||Yn.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const i=this._target[this._prop],r=n-this._start,s=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=Ri([e.to,t,i,e.from]),this._from=Ri([e.from,i,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,i=this._prop,r=this._from,s=this._loop,o=this._to;let a;if(this._active=r!==o&&(s||t<n),!this._active)return this._target[i]=o,void this._notify(!0);t<0?this._target[i]=r:(a=t/n%2,a=s&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(r,o,a))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}class Rr{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!Vt(e))return;const t=Object.keys(ci.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((i=>{const r=e[i];if(!Vt(r))return;const s={};for(const e of t)s[e]=r[e];(qt(r.properties)&&r.properties||[i]).forEach((e=>{e!==i&&n.has(e)||n.set(e,s)}))}))}_animateOptions(e,t){const n=t.options,i=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(e,t){const n=[],i=Object.keys(t);for(let t=0;t<i.length;t++){const r=e[i[t]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),r}_createAnimations(e,t){const n=this._properties,i=[],r=e.$animations||(e.$animations={}),s=Object.keys(t),o=Date.now();let a;for(a=s.length-1;a>=0;--a){const l=s[a];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(e,t));continue}const c=t[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,o);continue}u.cancel()}d&&d.duration?(r[l]=u=new Pr(d,e,l,c),i.push(u)):e[l]=c}return i}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(Ar.add(this._chart,n),!0):void 0}}function Dr(e,t){const n=e&&e.options||{},i=n.reverse,r=void 0===n.min?t:0,s=void 0===n.max?t:0;return{start:i?s:r,end:i?r:s}}function Nr(e,t){const n=[],i=e._getSortedDatasetMetas(t);let r,s;for(r=0,s=i.length;r<s;++r)n.push(i[r].index);return n}function $r(e,t,n,i={}){const r=e.keys,s="single"===i.mode;let o,a,l,c;if(null!==t){for(o=0,a=r.length;o<a;++o){if(l=+r[o],l===n){if(i.all)continue;break}c=e.values[l],Gt(c)&&(s||0===t||yn(t)===yn(c))&&(t+=c)}return t}}function Fr(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function Br(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function jr(e,t,n,i){for(const r of t.getMatchingVisibleMetas(i).reverse()){const t=e[r.index];if(n&&t>0||!n&&t<0)return r.index}return null}function qr(e,t){const{chart:n,_cachedMeta:i}=e,r=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:a}=i,l=s.axis,c=o.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(s,o,i),d=t.length;let h;for(let e=0;e<d;++e){const n=t[e],{[l]:s,[c]:d}=n;h=(n._stacks||(n._stacks={}))[c]=Br(r,u,s),h[a]=d,h._top=jr(h,o,!0,i.type),h._bottom=jr(h,o,!1,i.type);(h._visualValues||(h._visualValues={}))[a]=d}}function Vr(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function Gr(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[i]||void 0===t[i][n])return;delete t[i][n],void 0!==t[i]._visualValues&&void 0!==t[i]._visualValues[n]&&delete t[i]._visualValues[n]}}}const zr=e=>"reset"===e||"none"===e,Ur=(e,t)=>t?e:Object.assign({},e);class Hr{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,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 e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Fr(e.vScale,e),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(e){this.index!==e&&Gr(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),i=(e,t,n,i)=>"x"===e?t:"r"===e?i:n,r=t.xAxisID=Ut(n.xAxisID,Vr(e,"x")),s=t.yAxisID=Ut(n.yAxisID,Vr(e,"y")),o=t.rAxisID=Ut(n.rAxisID,Vr(e,"r")),a=t.indexAxis,l=t.iAxisID=i(a,r,s,o),c=t.vAxisID=i(a,s,r,o);t.xScale=this.getScaleForId(r),t.yScale=this.getScaleForId(s),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&$n(this._data,this),e._stacked&&Gr(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(Vt(t))this._data=function(e){const t=Object.keys(e),n=new Array(t.length);let i,r,s;for(i=0,r=t.length;i<r;++i)s=t[i],n[i]={x:s,y:e[s]};return n}(t);else if(n!==t){if(n){$n(n,this);const e=this._cachedMeta;Gr(e),e._parsed=[]}t&&Object.isExtensible(t)&&(r=this,(i=t)._chartjs?i._chartjs.listeners.push(r):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[r]}}),Nn.forEach((e=>{const t="_onData"+sn(e),n=i[e];Object.defineProperty(i,e,{configurable:!0,enumerable:!1,value(...e){const r=n.apply(this,e);return i._chartjs.listeners.forEach((n=>{"function"==typeof n[t]&&n[t](...e)})),r}})})))),this._syncList=[],this._data=t}var i,r}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=t._stacked;t._stacked=Fr(t.vScale,t),t.stack!==n.stack&&(i=!0,Gr(t),t.stack=n.stack),this._resyncElements(e),(i||r!==t._stacked)&&qr(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:i}=this,{iScale:r,_stacked:s}=n,o=r.axis;let a,l,c,u=0===e&&t===i.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=qt(i[e])?this.parseArrayData(n,i,e,t):Vt(i[e])?this.parseObjectData(n,i,e,t):this.parsePrimitiveData(n,i,e,t);const r=()=>null===l[o]||d&&l[o]<d[o];for(a=0;a<t;++a)n._parsed[a+e]=l=c[a],u&&(r()&&(u=!1),d=l);n._sorted=u}s&&qr(this,c)}parsePrimitiveData(e,t,n,i){const{iScale:r,vScale:s}=e,o=r.axis,a=s.axis,l=r.getLabels(),c=r===s,u=new Array(i);let d,h,f;for(d=0,h=i;d<h;++d)f=d+n,u[d]={[o]:c||r.parse(l[f],f),[a]:s.parse(t[f],f)};return u}parseArrayData(e,t,n,i){const{xScale:r,yScale:s}=e,o=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=t[c],o[a]={x:r.parse(u[0],c),y:s.parse(u[1],c)};return o}parseObjectData(e,t,n,i){const{xScale:r,yScale:s}=e,{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing,l=new Array(i);let c,u,d,h;for(c=0,u=i;c<u;++c)d=c+n,h=t[d],l[c]={x:r.parse(rn(h,o),d),y:s.parse(rn(h,a),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const i=this.chart,r=this._cachedMeta,s=t[e.axis
vendor: 4,462 bytes, line 2
2];return $r({keys:Nr(i,!0),values:t._stacks[e.axis]._visualValues},s,r.index,{mode:n})}updateRangeFromParsed(e,t,n,i){const r=n[t.axis];let s=null===r?NaN:r;const o=i&&n._stacks[t.axis];i&&o&&(i.values=o,s=$r(i,r,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,t){const n=this._cachedMeta,i=n._parsed,r=n._sorted&&e===n.iScale,s=i.length,o=this._getOtherScale(e),a=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Nr(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:i,maxDefined:r}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(o);let d,h;function f(){h=i[d];const t=h[o.axis];return!Gt(h[e.axis])||c>t||u<t}for(d=0;d<s&&(f()||(this.updateRangeFromParsed(l,e,h,a),!r));++d);if(r)for(d=s-1;d>=0;--d)if(!f()){this.updateRangeFromParsed(l,e,h,a);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let i,r,s;for(i=0,r=t.length;i<r;++i)s=t[i][e.axis],Gt(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,i=t.vScale,r=this.getParsed(e);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,i,r;return Vt(e)?(t=e.top,n=e.right,i=e.bottom,r=e.left):t=n=i=r=e,{top:t,right:n,bottom:i,left:r,disabled:!1===e}}(Ut(this.options.clip,function(e,t,n){if(!1===n)return!1;const i=Dr(e,n),r=Dr(t,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,i=n.data||[],r=t.chartArea,s=[],o=this._drawStart||0,a=this._drawCount||i.length-o,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,r,o,a),c=o;c<o+a;++c){const t=i[c];t.hidden||(t.active&&l?s.push(t):t.draw(e,r))}for(c=0;c<s.length;++c)s[c].draw(e,r)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const i=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];r=t.$context||(t.$context=function(e,t,n){return Di(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),r.parsed=this.getParsed(e),r.raw=i.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return Di(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const i="active"===t,r=this._cachedDataOpts,s=e+"-"+t,o=r[s],a=this.enableOptionSharing&&on(n);if(o)return Ur(o,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=i?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(ci.elements[e]),f=l.resolveNamedOptions(d,h,(()=>this.getContext(n,i,t)),u);return f.$shared&&(f.$shared=a,r[s]=Object.freeze(Ur(f,a))),f}_resolveAnimations(e,t,n){const i=this.chart,r=this._cachedDataOpts,s=`animation-${t}`,o=r[s];if(o)return o;let a;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,t),s=i.getOptionScopes(this.getDataset(),r);a=i.createResolver(s,this.getContext(e,n,t))}const l=new Rr(i,a&&a.animations);return a&&a._cacheable&&(r[s]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||zr(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),i=this._sharedOptions,r=this.getSharedOptions(n),s=this.includeOptions(t,r)||r!==i;return this.updateSharedOptions(r,t,n),{sharedOptions:r,includeOptions:s}}updateElement(e,t,n,i){zr(i)?Object.assign(e,n):this._resolveAnimations(t,i).update(e,n)}updateSharedOptions(e,t,n){e&&!zr(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,i){e.active=i;const r=this.getStyle(t,i);
vendor: 4,477 bytes, line 2
2this._resolveAnimations(t,n,i).update(e,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const i=n.length,r=t.length,s=Math.min(r,i);s&&this.parse(0,s),r>i?this._insertElements(i,r-i,e):r<i&&this._removeElements(r,i-r)}_insertElements(e,t,n=!0){const i=this._cachedMeta,r=i.data,s=e+t;let o;const a=e=>{for(e.length+=t,o=e.length-1;o>=s;o--)e[o]=e[o-t]};for(a(r),o=e;o<s;++o)r[o]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(e,t),n&&this.updateElements(r,e,t,"reset")}updateElements(e,t,n,i){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(e,t);n._stacked&&Gr(n,i)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,i]=e;this[t](n,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Wr(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let i=[];for(let t=0,r=n.length;t<r;t++)i=i.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=Fn(i.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let i,r,s,o,a=t._length;const l=()=>{32767!==s&&-32768!==s&&(on(o)&&(a=Math.min(a,Math.abs(s-o)||a)),o=s)};for(i=0,r=n.length;i<r;++i)s=t.getPixelForValue(n[i]),l();for(o=void 0,i=0,r=t.ticks.length;i<r;++i)s=t.getPixelForTick(i),l();return a}function Yr(e,t,n,i){return qt(e)?function(e,t,n,i){const r=n.parse(e[0],i),s=n.parse(e[1],i),o=Math.min(r,s),a=Math.max(r,s);let l=o,c=a;Math.abs(o)>Math.abs(a)&&(l=a,c=o),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:r,end:s,min:o,max:a}}(e,t,n,i):t[n.axis]=n.parse(e,i),t}function Xr(e,t,n,i){const r=e.iScale,s=e.vScale,o=r.getLabels(),a=r===s,l=[];let c,u,d,h;for(c=n,u=n+i;c<u;++c)h=t[c],d={},d[r.axis]=a||r.parse(o[c],c),l.push(Yr(h,d,s,c));return l}function Kr(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function Qr(e,t,n,i){let r=t.borderSkipped;const s={};if(!r)return void(e.borderSkipped=s);if(!0===r)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:a,reverse:l,top:c,bottom:u}=function(e){let t,n,i,r,s;return e.horizontal?(t=e.base>e.x,n="left",i="right"):(t=e.base<e.y,n="bottom",i="top"),t?(r="end",s="start"):(r="start",s="end"),{start:n,end:i,reverse:t,top:r,bottom:s}}(e);"middle"===r&&n&&(e.enableBorderRadius=!0,(n._top||0)===i?r=c:(n._bottom||0)===i?r=u:(s[Jr(u,o,a,l)]=!0,r=c)),s[Jr(r,o,a,l)]=!0,e.borderSkipped=s}function Jr(e,t,n,i){var r,s,o;return i?(o=n,e=Zr(e=(r=e)===(s=t)?o:r===o?s:r,n,t)):e=Zr(e,t,n),e}function Zr(e,t,n){return"start"===e?t:"end"===e?n:e}function es(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class ts extends Hr{static id="doughnut";static 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"};static descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:i}}=e.legend.options;return t.labels.map(((t,r)=>{const s=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:i,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update(
vendor: 9,023 bytes, line 2
2)}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let r,s,o=e=>+n[e];if(Vt(n[e])){const{key:e="value"}=this._parsing;o=t=>+rn(n[t],e)}for(r=e,s=e+t;r<s;++r)i._parsed[r]=o(r)}}_getRotation(){return xn(this.options.rotation-90)}_getCircumference(){return xn(this.options.circumference)}_getRotationExtents(){let e=un,t=-un;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,r=i._getRotation(),s=i._getCircumference();e=Math.min(e,r),t=Math.max(t,r+s)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,i=this._cachedMeta,r=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,o=Math.max((Math.min(n.width,n.height)-s)/2,0),a=Math.min(((e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t)(this.options.cutout,o),1),l=this._getRingWeight(this.index),{circumference:c,rotation:u}=this._getRotationExtents(),{ratioX:d,ratioY:h,offsetX:f,offsetY:p}=function(e,t,n){let i=1,r=1,s=0,o=0;if(t<un){const a=e,l=a+t,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),h=Math.sin(l),f=(e,t,i)=>An(e,a,l,!0)?1:Math.max(t,t*n,i,i*n),p=(e,t,i)=>An(e,a,l,!0)?-1:Math.min(t,t*n,i,i*n),m=f(0,c,d),g=f(pn,u,h),v=p(cn,c,d),y=p(cn+pn,u,h);i=(m-v)/2,r=(g-y)/2,s=-(m+v)/2,o=-(g+y)/2}return{ratioX:i,ratioY:r,offsetX:s,offsetY:o}}(u,c,a),m=(n.width-s)/d,g=(n.height-s)/h,v=Math.max(Math.min(m,g)/2,0),y=Ht(this.options.radius,v),b=(y-Math.max(y*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*y,this.offsetY=p*y,i.total=this.calculateTotal(),this.outerRadius=y-b*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-b*l,0),this.updateElements(r,0,r.length,e)}_circumference(e,t){const n=this.options,i=this._cachedMeta,r=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===i._parsed[e]||i.data[e].hidden?0:this.calculateCircumference(i._parsed[e]*r/un)}updateElements(e,t,n,i){const r="reset"===i,s=this.chart,o=s.chartArea,a=s.options.animation,l=(o.left+o.right)/2,c=(o.top+o.bottom)/2,u=r&&a.animateScale,d=u?0:this.innerRadius,h=u?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(t,i);let m,g=this._getRotation();for(m=0;m<t;++m)g+=this._circumference(m,r);for(m=t;m<t+n;++m){const t=this._circumference(m,r),n=e[m],s={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+t,circumference:t,outerRadius:h,innerRadius:d};p&&(s.options=f||this.resolveDataElementOptions(m,n.active?"active":i)),g+=t,this.updateElement(n,m,s,i)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,i=0;for(n=0;n<t.length;n++){const r=e._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||t[n].hidden||(i+=Math.abs(r))}return i}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?un*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=ti(t._parsed[e],n.options.locale);return{label:i[e]||"",value:r}}getMaxBorderWidth(e){let t=0;const n=this.chart;let i,r,s,o,a;if(!e)for(i=0,r=n.data.datasets.length;i<r;++i)if(n.isDatasetVisible(i)){s=n.getDatasetMeta(i),e=s.data,o=s.controller;break}if(!e)return 0;for(i=0,r=e.length;i<r;++i)a=o.resolveDataElementOptions(i),"inner"!==a.borderAlign&&(t=Math.max(t,a.borderWidth||0,a.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,i=e.length;n<i;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(Ut(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class ns extends Hr{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:i}}=e.legend.options;return t.labels.map(((t,r)=>{const s=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:i,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=ti(t._parsed[e].r,n.options.locale);return{label:i[e]||"",value:r}}parseObjectData(e,t,n,i){return Xi.bind(this)(e,t,n,i)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach(((e,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<t.min&&(t.min=i),i>t.max&&(t.max=i))})),t}_updateRadius(){const e=this.chart,t=e.chartArea,n=e.options,i=Math.min(t.right-t.left,t.bottom-t.top),r=Math.max(i/2,0),s=(r-Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=r-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(e,t,n,i){const r="reset"===i,s=this.chart,o=s.options.animation,a=this._cachedMeta.rScale,l=a.xCenter,c=a.yCenter,u=a.getIndexAngle(0)-.5*cn;let d,h=u;const f=360/this.countVisibleElements();for(d=0;d<t;++d)h+=this._computeAngle(d,i,f);for(d=t;d<t+n;d++){const t=e[d];let n=h,p=h+this._computeAngle(d,i,f),m=s.getDataVisibility(d)?a.getDistanceFromCenterForValue(this.getParsed(d).r):0;h=p,r&&(o.animateScale&&(m=0),o.animateRotate&&(n=p=u));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:p,options:this.resolveDataElementOptions(d,t.active?"active":i)};this.updateElement(t,d,g,i)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach(((e,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++})),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?xn(this.resolveDataElementOptions(e,t).angle||n):0}}var is=Object.freeze({__proto__:null,BarController:class extends Hr{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,n,i){return Xr(e,t,n,i)}parseArrayData(e,t,n,i){return Xr(e,t,n,i)}parseObjectData(e,t,n,i){const{iScale:r,vScale:s}=e,{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing,l="x"===r.axis?o:a,c="x"===s.axis?o:a,u=[];let d,h,f,p;for(d=n,h=n+i;d<h;++d)p=t[d],f={},f[r.axis]=r.parse(rn(p,l),d),u.push(Yr(rn(p,c),f,s,d));return u}updateRangeFromParsed(e,t,n,i){super.updateRangeFromParsed(e,t,n,i);const r=n._custom;r&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:i}=t,r=this.getParsed(e),s=r._custom,o=Kr(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,i){const r="reset"===i,{index:s,_cachedMeta:{vScale:o}}=this,a=o.getBasePixel(),l=o.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,i);for(let h=t;h<t+n;h++){const t=this.getParsed(h),n=r||jt(t[o.axis])?{base:a,head:a}:this._calculateBarValuePixels(h),f=this._calculateBarIndexPixels(h,c),p=(t._stacks||{})[o.axis],m={horizontal:l,base:n.base,enableBorderRadius:!p||Kr(t._custom)||s===p._top||s===p._bottom,x:l?n.head:f.center,y:l?f.center:n.head,height:l?f.size:Math.abs(n.size),width:l?Math.abs(n.size):f.size};d&&(m.options=u||this.resolveDataElementOptions(h,e[h].active?"active":i));const g=m.options||e[h].options;Qr(m,g,p,s),es(m,g,c.ratio),this.updateElement(e[h],h,m,i)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),r=n.options.stacked,s=[],o=e=>
vendor: 11,317 bytes, line 2
2{const n=e.controller.getParsed(t),i=n&&n[e.vScale.axis];if(jt(i)||isNaN(i))return!0};for(const n of i)if((void 0===t||!o(n))&&((!1===r||-1===s.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&s.push(n.stack),n.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const i=this._getStacks(e,n),r=void 0!==t?i.indexOf(t):-1;return-1===r?i.length-1:r}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,i=[];let r,s;for(r=0,s=t.data.length;r<s;++r)i.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const o=e.barThickness;return{min:o||Wr(t),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:o?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:i},options:{base:r,minBarLength:s}}=this,o=r||0,a=this.getParsed(e),l=a._custom,c=Kr(l);let u,d,h=a[t.axis],f=0,p=n?this.applyStack(t,a,n):h;p!==h&&(f=p-h,p=h),c&&(h=l.barStart,p=l.barEnd-l.barStart,0!==h&&yn(h)!==yn(l.barEnd)&&(f=0),f+=h);const m=jt(r)||c?f:r;let g=t.getPixelForValue(m);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(f+p):g,d=u-g,Math.abs(d)<s){d=function(e,t,n){return 0!==e?yn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,o)*s,h===o&&(g-=d/2);const e=t.getPixelForDecimal(0),r=t.getPixelForDecimal(1),l=Math.min(e,r),f=Math.max(e,r);g=Math.max(Math.min(g,f),l),u=g+d,n&&!c&&(a._stacks[t.axis]._visualValues[i]=t.getValueForPixel(u)-t.getValueForPixel(g))}if(g===t.getPixelForValue(o)){const e=yn(d)*t.getLineWidthForValue(o)/2;g+=e,d-=e}return{size:d,base:g,head:u,center:u+d/2}}_calculateBarIndexPixels(e,t){const n=t.scale,i=this.options,r=i.skipNull,s=Ut(i.maxBarThickness,1/0);let o,a;if(t.grouped){const n=r?this._getStackCount(e):t.stackCount,l="flex"===i.barThickness?function(e,t,n,i){const r=t.pixels,s=r[e];let o=e>0?r[e-1]:null,a=e<r.length-1?r[e+1]:null;const l=n.categoryPercentage;null===o&&(o=s-(null===a?t.end-t.start:a-s)),null===a&&(a=s+s-o);const c=s-(s-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/i,ratio:n.barPercentage,start:c}}(e,t,i,n):function(e,t,n,i){const r=n.barThickness;let s,o;return jt(r)?(s=t.min*n.categoryPercentage,o=n.barPercentage):(s=r*i,o=1),{chunk:s/i,ratio:o,start:t.pixels[e]-s/2}}(e,t,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0);o=l.start+l.chunk*c+l.chunk/2,a=Math.min(s,l.chunk*l.ratio)}else o=n.getPixelForValue(this.getParsed(e)[n.axis],e),a=Math.min(s,t.min*t.ratio);return{base:o-a/2,head:o+a/2,center:o,size:a}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,i=n.length;let r=0;for(;r<i;++r)null!==this.getParsed(r)[t.axis]&&n[r].draw(this._ctx)}},BubbleController:class extends Hr{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,n,i){const r=super.parsePrimitiveData(e,t,n,i);for(let e=0;e<r.length;e++)r[e]._custom=this.resolveDataElementOptions(e+n).radius;return r}parseArrayData(e,t,n,i){const r=super.parseArrayData(e,t,n,i);for(let e=0;e<r.length;e++){const i=t[n+e];r[e]._custom=Ut(i[2],this.resolveDataElementOptions(e+n).radius)}return r}parseObjectData(e,t,n,i){const r=super.parseObjectData(e,t,n,i);for(let e=0;e<r.length;e++){const i=t[n+e];r[e]._custom=Ut(i&&i.r&&+i.r,this.resolveDataElementOptions(e+n).radius)}return r}getMaxOverflow(){const e=this._cachedMeta.data;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}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:r}=t,s=this.getParsed(e),o=i.getLabelForValue(s.x),a=r.getLabelForValue(s.y),l=s._custom;return{label:n[e]||"",value:"("+o+", "+a+(l?", "+l:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,i){const r="reset"===i,{iScale:s,vScale:o}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(t,i),c=s.axis,u=o.axis;for(let d=t;d<t+n;d++){const t=e[d],n=!r&&this.getParsed(d),h={},f=h[c]=r?s.getPixelForDecimal(.5):s.getPixelForValue(n[c]),p=h[u]=r?o.getBasePixel():o.getPixelForValue(n[u]);h.skip=isNaN(f)||isNaN(p),l&&(h.options=a||this.resolveDataElementOptions(d,t.active?"active":i),r&&(h.options.radius=0)),this.updateElement(t,d,h,i)}}resolveDataElementOptions(e,t){const n=this.getParsed(e);let i=super.resolveDataElementOptions(e,t);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const r=i.radius;return"active"!==t&&(i.radius=0),i.radius+=Ut(n&&n._custom,r),i}},DoughnutController:ts,LineController:class extends Hr{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:i=[],_dataset:r}=t,s=this.chart._animationsDisabled;let{start:o,count:a}=Gn(t,i,s);this._drawStart=o,this._drawCount=a,zn(t)&&(o=0,a=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=i;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:l},e),this.updateElements(i,o,a,e)}updateElements(e,t,n,i){const r="reset"===i,{iScale:s,vScale:o,_stacked:a,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(t,i),d=s.axis,h=o.axis,{spanGaps:f,segment:p}=this.options,m=En(f)?f:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||r||"none"===i,v=t+n,y=e.length;let b=t>0&&this.getParsed(t-1);for(let n=0;n<y;++n){const f=e[n],y=g?f:{};if(n<t||n>=v){y.skip=!0;continue}const _=this.getParsed(n),E=jt(_[h]),w=y[d]=s.getPixelForValue(_[d],n),x=y[h]=r||E?o.getBasePixel():o.getPixelForValue(a?this.applyStack(o,_,a):_[h],n);y.skip=isNaN(w)||isNaN(x)||E,y.stop=n>0&&Math.abs(_[d]-b[d])>m,p&&(y.parsed=_,y.raw=l.data[n]),u&&(y.options=c||this.resolveDataElementOptions(n,f.active?"active":i)),g||this.updateElement(f,n,y,i),b=_}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,i=e.data||[];if(!i.length)return n;const r=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,r,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}},PieController:class extends ts{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:ns,RadarController:class extends Hr{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,i){return Xi.bind(this)(e,t,n,i)}update(e){const t=this._cachedMeta,n=t.dataset,i=t.data||[],r=t.iScale.getLabels();if(n.points=i,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const s={_loop:!0,_fullLoop:r.length===i.length,options:t};this.updateElement(n,void 0,s,e)}this.updateElements(i,0,i.length,e)}updateElements(e,t,n,i){const r=this._cachedMeta.rScale,s="reset"===i;for(let o=t;o<t+n;o++){const t=e[o],n=this.resolveDataElementOptions(o,t.active?"active":i),a=r.getPointPositionForValue(o,this.getParsed(o).r),l=s?r.xCenter:a.x,c=s?r.yCenter:a.y,u={x:l,y:c,angle:a.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(t,o,u,i)}}},ScatterController:class extends Hr{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:r}=t,s=this.getParsed(e),o=i.getLabelForValue(s.x),a=r.getLabelForValue(s.y);return{label:n[e]||"",value:"("+o+", "+a+")"}}update(e){const t=this._cachedMeta,{data:n=[]}=t,i=this.chart._animationsDisabled;let{start:r,count:s}=Gn(t,n,i);if(this._drawStart=r,this._drawCount=s,zn(t)&&(r=0,s=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:r,_dataset:s}=t;r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=n;const o=this.resolveDatasetElementOptions(e);o.segment=this.options.segment,this.updateElement(r,void 0,{animated:!i,options:o},e)}else this.datasetElementType&&(delete t.dataset,this.datasetElementType=!1);this.updateElements(n,r,s,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,t,n,i){const r="reset"===i,{iScale:s,vScale:o,_stacked:a,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(t,i),u=this.getSharedOptions(c),d=this.includeOptions(i,u),h=s.axis,f=o.axis,{spanGaps:p,segment:m}=this.options,g=En(p)?p:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||r||"none"===i;let y=t>0&&this.getParsed(t-1);for(let c=t;c<t+n;++c){const t=e[c],n=this.getParsed(c),p=v?t:{},b=jt(n[f]),_=p[h]=s.getPixelForValue(n[h],c),E=p[f]=r||b?o.getBasePixel():o.getPixelForValue(a?this.applyStack(o,n,a):n[f],c);p.skip=isNaN(_)||isNaN(E)||b,p.stop=c>0&&Math.abs(n[h]-y[h])>g,m&&(p.parsed=n,p.raw=l.data[c]),d&&(p.options=u||this.resolveDataElementOptions(c,t.active?"active":i)),v||this.updateElement(t,c,p,i),y=n}this.updateSharedOptions(u,i,c)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){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}const n=e.dataset,i=n.options&&n.options.borderWidth||0;if(!t.length)return i;const r=t[0].size(this.resolveDataElementOptions(0)),s=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(i,r,s)/2}}});function rs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ss{static override(e){Object.assign(ss.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return rs()}parse(){return rs()}format(){return rs()}add(){return rs()}diff(){return rs()}startOf(){return rs()}endOf(){return rs()}}var os=ss;function as(e,t,n,i){const{controller:r,data:s,_sorted:o}=e,a=r._cachedMeta.iScale;if(a&&t===a.axis&&"r"!==t&&o&&s.length){const e=a._reversePixels?Dn:Rn;if(!i)return e(s,t,n);if(r._sharedOptions){const i=s[0],r="function"==typeof i.getRange&&i.getRange(t);if(r){const i=e(s,t,n-r),o=e(s,t,n+r);return{lo:i.lo,hi:o.hi}}}}return{lo:0,hi:s.length-1}}function ls(e,t,n,i,r){const s=e.getSortedVisibleDatasetMetas(),o=n[t];for(let e=0,n=s.length;e<n;++e){const{index:n,data:a}=s[e],{lo:l,hi:c}=as(s[e],t,o,r);for(let e=l;e<=c;++e){const t=a[e];
vendor: 4,283 bytes, line 2
2t.skip||i(t,n,e)}}}function cs(e,t,n,i,r){const s=[];if(!r&&!e.isPointInArea(t))return s;return ls(e,n,t,(function(n,o,a){(r||gi(n,e.chartArea,0))&&n.inRange(t.x,t.y,i)&&s.push({element:n,datasetIndex:o,index:a})}),!0),s}function us(e,t,n,i,r,s){let o=[];const a=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,i){const r=t?Math.abs(e.x-i.x):0,s=n?Math.abs(e.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(s,2))}}(n);let l=Number.POSITIVE_INFINITY;return ls(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,r);if(i&&!d)return;const h=n.getCenterPoint(r);if(!(!!s||e.isPointInArea(h))&&!d)return;const f=a(t,h);f<l?(o=[{element:n,datasetIndex:c,index:u}],l=f):f===l&&o.push({element:n,datasetIndex:c,index:u})})),o}function ds(e,t,n,i,r,s){return s||e.isPointInArea(t)?"r"!==n||i?us(e,t,n,i,r,s):function(e,t,n,i){let r=[];return ls(e,n,t,(function(e,n,s){const{startAngle:o,endAngle:a}=e.getProps(["startAngle","endAngle"],i),{angle:l}=Ln(e,{x:t.x,y:t.y});An(l,o,a)&&r.push({element:e,datasetIndex:n,index:s})})),r}(e,t,n,r):[]}function hs(e,t,n,i,r){const s=[],o="x"===n?"inXRange":"inYRange";let a=!1;return ls(e,n,t,((e,i,l)=>{e[o](t[n],r)&&(s.push({element:e,datasetIndex:i,index:l}),a=a||e.inRange(t.x,t.y,r))})),i&&!a?[]:s}var fs={evaluateInteractionItems:ls,modes:{index(e,t,n,i){const r=ur(t,e),s=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?cs(e,r,s,i,o):ds(e,r,s,!1,i,o),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=a[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,i){const r=ur(t,e),s=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?cs(e,r,s,i,o):ds(e,r,s,!1,i,o);if(a.length>0){const t=a[0].datasetIndex,n=e.getDatasetMeta(t).data;a=[];for(let e=0;e<n.length;++e)a.push({element:n[e],datasetIndex:t,index:e})}return a},point(e,t,n,i){return cs(e,ur(t,e),n.axis||"xy",i,n.includeInvisible||!1)},nearest(e,t,n,i){const r=ur(t,e),s=n.axis||"xy",o=n.includeInvisible||!1;return ds(e,r,s,n.intersect,i,o)},x(e,t,n,i){return hs(e,ur(t,e),"x",n.intersect,i)},y(e,t,n,i){return hs(e,ur(t,e),"y",n.intersect,i)}}};const ps=["left","top","right","bottom"];function ms(e,t){return e.filter((e=>e.pos===t))}function gs(e,t){return e.filter((e=>-1===ps.indexOf(e.pos)&&e.box.axis===t))}function vs(e,t){return e.sort(((e,n)=>{const i=t?n:e,r=t?e:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function ys(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:i,stackWeight:r}=n;if(!e||!ps.includes(i))continue;const s=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=r}return t}(e),{vBoxMaxWidth:i,hBoxMaxHeight:r}=t;let s,o,a;for(s=0,o=e.length;s<o;++s){a=e[s];const{fullSize:o}=a.box,l=n[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*i:o&&t.availableWidth,a.height=r):(a.width=i,a.height=c?c*r:o&&t.availableHeight)}return n}function bs(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function _s(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Es(e,t,n,i){const{pos:r,box:s}=n,o=e.maxPadding;if(!Vt(r)){n.size&&(e[r]-=n.size);const t=i[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?s.height:s.width),n.size=t.size/t.count,e[r]+=n.size}s.getPadding&&_s(o,s.getPadding());const a=Math.max(0,t.outerWidth-bs(o,e,"left","right")),l=Math.max(0,t.outerHeight-bs(o,e,"top","bottom")),c=a!==e.w,u=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function ws(e,t){const n=t.maxPadding;function i(e){const i={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{i[e]=Math.max(t[e],n[e])})),i}return i(e?["left","right"]:["top","bottom"])}function xs(e,t,n,i){const r=[];let s,o,a,l,c,u;for(s=0,o=e.length,c=0;s<o;++s){a=e[s],l=a.box,l.update(a.width||t.w,a.height||t.h,ws(a.horizontal,t));const{same:o,other:d}=Es(t,n,a,i);c|=o&&r.length,u=u||d,l.fullSize||r.push(a)}return c&&xs(r,t,n,i)||u}function Ts(e,t,n,i,r){e.top=n,e.left=t,e.right=t+i,e.bottom=n+r,e.width=i,e.height=r}function Ss(e,t,n,i){const r=n.padding;let{x:s,y:o}=t;for(const a of e){const e=a.box,l=i[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/l.weight||1;
vendor: 6,892 bytes, line 2
2if(a.horizontal){const i=t.w*c,s=l.size||e.height;on(l.start)&&(o=l.start),e.fullSize?Ts(e,r.left,o,n.outerWidth-r.right-r.left,s):Ts(e,t.left+l.placed,o,i,s),l.start=o,l.placed+=i,o=e.bottom}else{const i=t.h*c,o=l.size||e.width;on(l.start)&&(s=l.start),e.fullSize?Ts(e,s,r.top,o,n.outerHeight-r.bottom-r.top):Ts(e,s,t.top+l.placed,o,i),l.start=s,l.placed+=i,s=e.right}}t.x=s,t.y=o}var Ls={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const r=ki(e.options.layout.padding),s=Math.max(t-r.width,0),o=Math.max(n-r.height,0),a=function(e){const t=function(e){const t=[];let n,i,r,s,o,a;for(n=0,i=(e||[]).length;n<i;++n)r=e[n],({position:s,options:{stack:o,stackWeight:a=1}}=r),t.push({index:n,box:r,pos:s,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&s+o,stackWeight:a});return t}(e),n=vs(t.filter((e=>e.box.fullSize)),!0),i=vs(ms(t,"left"),!0),r=vs(ms(t,"right")),s=vs(ms(t,"top"),!0),o=vs(ms(t,"bottom")),a=gs(t,"x"),l=gs(t,"y");return{fullSize:n,leftAndTop:i.concat(s),rightAndBottom:r.concat(l).concat(o).concat(a),chartArea:ms(t,"chartArea"),vertical:i.concat(r).concat(l),horizontal:s.concat(o).concat(a)}}(e.boxes),l=a.vertical,c=a.horizontal;Yt(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/u,hBoxMaxHeight:o/2}),h=Object.assign({},r);_s(h,ki(i));const f=Object.assign({maxPadding:h,w:s,h:o,x:r.left,y:r.top},r),p=ys(l.concat(c),d);xs(a.fullSize,f,d,p),xs(l,f,d,p),xs(c,f,d,p)&&xs(l,f,d,p),function(e){const t=e.maxPadding;function n(n){const i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(f),Ss(a.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,Ss(a.rightAndBottom,f,d,p),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Yt(a.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class Is{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,i){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,i?Math.floor(t/i):n)}}isAttached(e){return!0}updateConfig(e){}}class Cs extends Is{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Os="$chartjs",As={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ms=e=>null===e||""===e;const ks=!!pr&&{passive:!0};function Ps(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,ks)}function Rs(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Ds(e,t,n){const i=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||Rs(n.addedNodes,i),t=t&&!Rs(n.removedNodes,i);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function Ns(e,t,n){const i=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||Rs(n.removedNodes,i),t=t&&!Rs(n.addedNodes,i);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const $s=new Map;let Fs=0;function Bs(){const e=window.devicePixelRatio;e!==Fs&&(Fs=e,$s.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function js(e,t,n){const i=e.canvas,r=i&&rr(i);if(!r)return;const s=jn(((e,t)=>{const i=r.clientWidth;n(e,t),i<r.clientWidth&&n()}),window),o=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,i=t.contentRect.height;0===n&&0===i||s(n,i)}));return o.observe(r),function(e,t){$s.size||window.addEventListener("resize",Bs),$s.set(e,t)}(e,s),o}function qs(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){$s.delete(e),$s.size||window.removeEventListener("resize",Bs)}(e)}function Vs(e,t,n){const i=e.canvas,r=jn((t=>{null!==e.ctx&&n(function(e,t){const n=As[e.type]||e.type,{x:i,y:r}=ur(e,t);return{type:n,chart:t,native:e,x:void 0!==i?i:null,y:void 0!==r?r:null}}(t,e))}),e);return function(e,t,n){e&&e.addEventListener(t,n,ks)}(i,t,r),r}class Gs extends Is{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[Os]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Ms(r)){const t=mr(e,"width");void 0!==t&&(e.width=t)}if(Ms(i))if(""===e.style.height)e.height=e.width/(t||2);else{const t=mr(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[Os])return!1;const n=t[Os].initial;["height","width"].forEach((e=>{const i=n[e];jt(i)?t.removeAttribute(e):t.setAttribute(e,i)}));const i=n.style||{};return Object.keys(i).forEach((e=>{t.style[e]=i[e]})),t.width=t.width,delete t[Os],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const i=e.$proxies||(e.$proxies={}),r={attach:Ds,detach:Ns,resize:js}[t]||Vs;i[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),i=n[t];if(!i)return;({attach:qs,detach:qs,resize:qs}[t]||Ps)(e,t,i),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,i){return hr(e,t,n,i)}isAttached(e){const t=rr(e);return!(!t||!t.isConnected)}}class zs{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return En(this.x)&&En(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const i={};return e.forEach((e=>{i[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),i}}function Us(e,t){const n=e.options.ticks,i=function(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(i,r))}(e),r=Math.min(n.maxTicksLimit||i,i),s=n.major.enabled?function(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}(t):[],o=s.length,a=s[0],l=s[o-1],c=[];if(o>r)return function(e,t,n,i){let r,s=0,o=n[0];for(i=Math.ceil(i),r=0;r<e.length;r++)r===o&&(t.push(e[r]),s++,o=n[s*i])}(t,c,s,o/r),c;const u=function(e,t,n){const i=function(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}(e),r=t.length/n;if(!i)return Math.max(r,1);const s=function(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i==0&&(t.push(i),t.push(e/i));
vendor: 8,455 bytes, line 2
2return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(i);for(let e=0,t=s.length-1;e<t;e++){const t=s[e];if(t>r)return t}return Math.max(r,1)}(s,t,r);if(o>0){let e,n;const i=o>1?Math.round((l-a)/(o-1)):null;for(Hs(t,c,u,jt(i)?0:a-i,a),e=0,n=o-1;e<n;e++)Hs(t,c,u,s[e],s[e+1]);return Hs(t,c,u,l,jt(i)?t.length:l+i),c}return Hs(t,c,u),c}function Hs(e,t,n,i,r){const s=Ut(i,0),o=Math.min(Ut(r,e.length),e.length);let a,l,c,u=0;for(n=Math.ceil(n),r&&(a=r-i,n=a/Math.floor(a/n)),c=s;c<0;)u++,c=Math.round(s+u*n);for(l=Math.max(s,0);l<o;l++)l===c&&(t.push(e[l]),u++,c=Math.round(s+u*n))}const Ws=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,Ys=(e,t)=>Math.min(t||e,e);function Xs(e,t){const n=[],i=e.length/t,r=e.length;let s=0;for(;s<r;s+=i)n.push(e[Math.floor(s)]);return n}function Ks(e,t,n){const i=e.ticks.length,r=Math.min(t,i-1),s=e._startPixel,o=e._endPixel,a=1e-6;let l,c=e.getPixelForTick(r);if(!(n&&(l=1===i?Math.max(c-s,o-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(r-1))/2,c+=r<t?l:-l,c<s-a||c>o+a)))return c}function Qs(e){return e.drawTicks?e.tickLength:0}function Js(e,t){if(!e.display)return 0;const n=Pi(e.font,t),i=ki(e.padding);return(qt(e.text)?e.text.length:1)*n.lineHeight+i.height}function Zs(e,t,n){let i=qn(e);return(n&&"right"!==t||!n&&"right"===t)&&(i=(e=>"left"===e?"right":"right"===e?"left":e)(i)),i}class eo extends zs{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.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(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:i}=this;return e=zt(e,Number.POSITIVE_INFINITY),t=zt(t,Number.NEGATIVE_INFINITY),n=zt(n,Number.POSITIVE_INFINITY),i=zt(i,Number.NEGATIVE_INFINITY),{min:zt(e,n),max:zt(t,i),minDefined:Gt(e),maxDefined:Gt(t)}}getMinMax(e){let t,{min:n,max:i,minDefined:r,maxDefined:s}=this.getUserBounds();if(r&&s)return{min:n,max:i};const o=this.getMatchingVisibleMetas();for(let a=0,l=o.length;a<l;++a)t=o[a].controller.getMinMax(this,e),r||(n=Math.min(n,t.min)),s||(i=Math.max(i,t.max));return n=s&&n>i?i:n,i=r&&n>i?n:i,{min:zt(n,zt(i,n)),max:zt(i,zt(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 e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Wt(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:i,grace:r,ticks:s}=this.options,o=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,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=function(e,t,n){const{min:i,max:r}=e,s=Ht(t,(r-i)/2),o=(e,t)=>n&&0===e?0:e+t;return{min:o(i,-Math.abs(s)),max:o(r,s)}}(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=o<this.ticks.length;this._convertTicksToLabels(a?Xs(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=Us(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Wt(this.options.afterUpdate,[this])}beforeSetDimensions(){Wt(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(){Wt(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Wt(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Wt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,i,r;for(n=0,i=e.length;n<i;n++)r=e[n],r.label=Wt(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){Wt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Wt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=Ys(this.ticks.length,e.ticks.maxTicksLimit),i=t.minRotation||0,r=t.maxRotation;let s,o,a,l=i;if(!this._isVisible()||!t.display||i>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=Mn(this.chart.width-u,0,this.maxWidth);s=e.offset?this.maxWidth/n:h/(n-1),u+6>s&&(s=h/(n-(e.offset?.5:1)),o=this.maxHeight-Qs(e.grid)-t.padding-Js(e.title,this.chart.options.font),a=Math.sqrt(u*u+d*d),l=Tn(Math.min(Math.asin(Mn((c.highest.height+6)/s,-1,1)),Math.asin(Mn(o/a,-1,1))-Math.asin(Mn(d/a,-1,1)))),l=Math.max(i,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){Wt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Wt(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:i,grid:r}}=this,s=this._isVisible(),o=this.isHorizontal();if(s){const s=Js(i,t.options.font);if(o?(e.width=this.maxWidth,e.height=Qs(r)+s):(e.height=this.maxHeight,e.width=Qs(r)+s),n.display&&this.ticks.length){const{first:t,last:i,widest:r,highest:s}=this._getLabelSizes(),a=2*n.padding,l=xn(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(o){const t=n.mirror?0:u*r.width+c*s.height;e.height=Math.min(this.maxHeight,e.height+t+a)}else{const t=n.mirror?0:c*r.width+u*s.height;e.width=Math.min(this.maxWidth,e.width+t+a)}this._calculatePadding(t,i,u,c)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,i){const{ticks:{align:r,padding:s},position:o}=this.options,a=0!==this.labelRotation,l="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;a?l?(u=i*e.width,d=n*t.height):(u=n*e.height,d=i*t.width):"start"===r?d=t.width:"end"===r?u=e.width:"inner"!==r&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-o+s)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-c+s)*this.width/(this.width-c),0)}else{let n=t.height/2,i=e.height/2;
vendor: 12,972 bytes, line 2
2"start"===r?(n=0,i=e.height):"end"===r&&(n=t.height,i=0),this.paddingTop=n+s,this.paddingBottom=i+s}}_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(){Wt(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)jt(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=Xs(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:i,_longestTextCache:r}=this,s=[],o=[],a=Math.floor(t/Ys(t,n));let l,c,u,d,h,f,p,m,g,v,y,b=0,_=0;for(l=0;l<t;l+=a){if(d=e[l].label,h=this._resolveTickFontOptions(l),i.font=f=h.string,p=r[f]=r[f]||{data:{},gc:[]},m=h.lineHeight,g=v=0,jt(d)||qt(d)){if(qt(d))for(c=0,u=d.length;c<u;++c)y=d[c],jt(y)||qt(y)||(g=ui(i,p.data,p.gc,g,y),v+=m)}else g=ui(i,p.data,p.gc,g,d),v=m;s.push(g),o.push(v),b=Math.max(g,b),_=Math.max(v,_)}!function(e,t){Yt(e,(e=>{const n=e.gc,i=n.length/2;let r;if(i>t){for(r=0;r<i;++r)delete e.data[n[r]];n.splice(0,i)}}))}(r,t);const E=s.indexOf(b),w=o.indexOf(_),x=e=>({width:s[e]||0,height:o[e]||0});return{first:x(0),last:x(t-1),widest:x(E),highest:x(w),widths:s,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return function(e){return Mn(e,-32768,32767)}(this._alignToPixels?hi(this.chart,t,0):t)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return Di(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=Di(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=xn(this.labelRotation),n=Math.abs(Math.cos(t)),i=Math.abs(Math.sin(t)),r=this._getLabelSizes(),s=e.autoSkipPadding||0,o=r?r.widest.width+s:0,a=r?r.highest.height+s:0;return this.isHorizontal()?a*n>o*i?o/n:a/i:a*i<o*n?a/n:o/i}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,i=this.options,{grid:r,position:s,border:o}=i,a=r.offset,l=this.isHorizontal(),c=this.ticks.length+(a?1:0),u=Qs(r),d=[],h=o.setContext(this.getContext()),f=h.display?h.width:0,p=f/2,m=function(e){return hi(n,e,f)};let g,v,y,b,_,E,w,x,T,S,L,I;if("top"===s)g=m(this.bottom),E=this.bottom-u,x=g-p,S=m(e.top)+p,I=e.bottom;else if("bottom"===s)g=m(this.top),S=e.top,I=m(e.bottom)-p,E=g+p,x=this.top+u;else if("left"===s)g=m(this.right),_=this.right-u,w=g-p,T=m(e.left)+p,L=e.right;else if("right"===s)g=m(this.left),T=e.left,L=m(e.right)-p,_=g+p,w=this.left+u;else if("x"===t){if("center"===s)g=m((e.top+e.bottom)/2+.5);else if(Vt(s)){const e=Object.keys(s)[0],t=s[e];g=m(this.chart.scales[e].getPixelForValue(t))}S=e.top,I=e.bottom,E=g+p,x=E+u}else if("y"===t){if("center"===s)g=m((e.left+e.right)/2);else if(Vt(s)){const e=Object.keys(s)[0],t=s[e];g=m(this.chart.scales[e].getPixelForValue(t))}_=g-p,w=_-u,T=e.left,L=e.right}const C=Ut(i.ticks.maxTicksLimit,c),O=Math.max(1,Math.ceil(c/C));for(v=0;v<c;v+=O){const e=this.getContext(v),t=r.setContext(e),i=o.setContext(e),s=t.lineWidth,c=t.color,u=i.dash||[],h=i.dashOffset,f=t.tickWidth,p=t.tickColor,m=t.tickBorderDash||[],g=t.tickBorderDashOffset;y=Ks(this,v,a),void 0!==y&&(b=hi(n,y,s),l?_=w=T=L=b:E=x=S=I=b,d.push({tx1:_,ty1:E,tx2:w,ty2:x,x1:T,y1:S,x2:L,y2:I,width:s,color:c,borderDash:u,borderDashOffset:h,tickWidth:f,tickColor:p,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=g,d}_computeLabelItems(e){const t=this.axis,n=this.options,{position:i,ticks:r}=n,s=this.isHorizontal(),o=this.ticks,{align:a,crossAlign:l,padding:c,mirror:u}=r,d=Qs(n.grid),h=d+c,f=u?-c:h,p=-xn(this.labelRotation),m=[];let g,v,y,b,_,E,w,x,T,S,L,I,C="middle";if("top"===i)E=this.bottom-f,w=this._getXAxisLabelAlignment();else if("bottom"===i)E=this.top+f,w=this._getXAxisLabelAlignment();else if("left"===i){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,_=e.x}else if("right"===i){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,_=e.x}else if("x"===t){if("center"===i)E=(e.top+e.bottom)/2+h;else if(Vt(i)){const e=Object.keys(i)[0],t=i[e];E=this.chart.scales[e].getPixelForValue(t)+h}w=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===i)_=(e.left+e.right)/2-h;else if(Vt(i)){const e=Object.keys(i)[0],t=i[e];_=this.chart.scales[e].getPixelForValue(t)}w=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===a?C="top":"end"===a&&(C="bottom"));const O=this._getLabelSizes();for(g=0,v=o.length;g<v;++g){y=o[g],b=y.label;const e=r.setContext(this.getContext(g));x=this.getPixelForTick(g)+r.labelOffset,T=this._resolveTickFontOptions(g),S=T.lineHeight,L=qt(b)?b.length:1;const t=L/2,n=e.color,a=e.textStrokeColor,c=e.textStrokeWidth;let d,h=w;if(s?(_=x,"inner"===w&&(h=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),I="top"===i?"near"===l||0!==p?-L*S+S/2:"center"===l?-O.highest.height/2-t*S+S:-O.highest.height+S/2:"near"===l||0!==p?S/2:"center"===l?O.highest.height/2-t*S:O.highest.height-L*S,u&&(I*=-1),0===p||e.showLabelBackdrop||(_+=S/2*Math.sin(p))):(E=x,I=(1-L)*S/2),e.showLabelBackdrop){const t=ki(e.backdropPadding),n=O.heights[g],i=O.widths[g];let r=I-t.top,s=0-t.left;switch(C){case"middle":r-=n/2;break;case"bottom":r-=n}switch(w){case"center":s-=i/2;break;case"right":s-=i;break;case"inner":g===v-1?s-=i:g>0&&(s-=i/2)}d={left:s,top:r,width:i+t.width,height:n+t.height,color:e.backdropColor}}m.push({label:b,font:T,textOffset:I,options:{rotation:p,color:n,strokeColor:a,strokeWidth:c,textAlign:h,textBaseline:C,translation:[_,E],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-xn(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:i,padding:r}}=this.options,s=e+r,o=this._getLabelSizes().widest.width;let a,l;return"left"===t?i?(l=this.right+r,"near"===n?a="left":"center"===n?(a="center",l+=o/2):(a="right",l+=o)):(l=this.right-s,"near"===n?a="right":"center"===n?(a="center",l-=o/2):(a="left",l=this.left)):"right"===t?i?(l=this.left+r,"near"===n?a="right":"center"===n?(a="center",l-=o/2):(a="left",l-=o)):(l=this.left+s,"near"===n?a="left":"center"===n?(a="center",l+=o/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:i,width:r,height:s}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,i,r,s),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,s;const o=(e,t,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(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(r=0,s=i.length;r<s;++r){const e=i[r];t.drawOnChartArea&&o({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&o({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:i}}=this,r=n.setContext(this.getContext()),s=n.display?r.width:0;if(!s)return;const o=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=hi(e,this.left,s)-s/2,c=hi(e,this.right,o)+o/2,u=d=a):(u=hi(e,this.top,s)-s/2,d=hi(e,this.bottom,o)+o/2,l=c=a),t.save(),t.lineWidth=r.width,t.strokeStyle=r.color,t.beginPath(),t.moveTo(l,u),t.lineTo(c,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&vi(t,n);const i=this.getLabelItems(e);for(const e of i){const n=e.options,i=e.font;xi(t,e.label,0,e.textOffset,i,n)}n&&yi(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:i}}=this;if(!n.display)return;const r=Pi(n.font),s=ki(n.padding),o=n.align;let a=r.lineHeight/2;"bottom"===t||"center"===t||Vt(t)?(a+=s.bottom,qt(n.text)&&(a+=r.lineHeight*(n.text.length-1))):a+=s.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(e,t,n,i){const{top:r,left:s,bottom:o,right:a,chart:l}=e,{chartArea:c,scales:u}=l;let d,h,f,p=0;const m=o-r,g=a-s;if(e.isHorizontal()){if(h=Vn(i,s,a),Vt(n)){const e=Object.keys(n)[0],i=n[e];f=u[e].getPixelForValue(i)+m-t}else f="center"===n?(c.bottom+c.top)/2+m-t:Ws(e,n,t);d=a-s}else{if(Vt(n)){const e=Object.keys(n)[0],i=n[e];h=u[e].getPixelForValue(i)-g+t}else h="center"===n?(c.left+c.right)/2-g+t:Ws(e,n,t);f=Vn(i,o,r),p="left"===n?-pn:pn}return{titleX:h,titleY:f,maxWidth:d,rotation:p}}(this,a,t,o);xi(e,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:Zs(o,t,i),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=Ut(e.grid&&e.grid.z,-1),i=Ut(e.border&&e.border.z,0);return this._isVisible()&&this.draw===eo.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,s;for(r=0,s=t.length;r<s;++r){const s=t[r];s[n]!==this.id||e&&s.type!==e||i.push(s)}return i}_resolveTickFontOptions(e){return Pi(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class to{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const i=this.items,r=e.id,s=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in i||(i[r]=e,function(e,t,n){const i=Zt(Object.create(null),[n?ci.get(n):{},ci.get(t),e.defaults]);ci.set(t,i),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const i=n.split("."),r=i.pop(),s=[e].concat(i).join("."),o=t[n].split("."),a=o.pop(),l=o.join(".");ci.route(s,r,l,a)}))}(t,e.defaultRoutes);e.descriptors&&ci.describe(t,e.descriptors)}(e,s,n),this.override&&ci.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,i=this.scope;n in t&&delete t[n],i&&n in ci[i]&&(delete ci[i][n],this.override&&delete ri[n])}}class no{constructor(){this.controllers=new to(Hr,"datasets",!0),this.elements=new to(zs,"elements"),this.plugins=new to(Object,"plugins"),this.scales=new to(eo,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}
vendor: 3,110 bytes, line 2
2removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const i=n||this._getRegistryForType(t);n||i.isForType(t)||i===this.plugins&&t.id?this._exec(e,i,t):Yt(t,(t=>{const i=n||this._getRegistryForType(t);this._exec(e,i,t)}))}))}_exec(e,t,n){const i=sn(e);Wt(n["before"+i],[],n),t[e](n),Wt(n["after"+i],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const i=t.get(e);if(void 0===i)throw new Error('"'+e+'" is not a registered '+n+".");return i}}var io=new no;class ro{constructor(){this._init=[]}notify(e,t,n,i){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=i?this._descriptors(e).filter(i):this._descriptors(e),s=this._notify(r,e,t,n);return"afterDestroy"===t&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),s}_notify(e,t,n,i){i=i||{};for(const r of e){const e=r.plugin;if(!1===Wt(e[n],[t,i,r.options],e)&&i.cancelable)return!1}return!0}invalidate(){jt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,i=Ut(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],i=Object.keys(io.plugins.items);for(let e=0;e<i.length;e++)n.push(io.getPlugin(i[e]));const r=e.plugins||[];for(let e=0;e<r.length;e++){const i=r[e];-1===n.indexOf(i)&&(n.push(i),t[i.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==i||t?function(e,{plugins:t,localIds:n},i,r){const s=[],o=e.getContext();for(const a of t){const t=a.id,l=so(i[t],r);null!==l&&s.push({plugin:a,options:oo(e.config,{plugin:a,local:n[t]},l,o)})}return s}(e,r,i,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,i=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(i(t,n),e,"stop"),this._notify(i(n,t),e,"start")}}function so(e,t){return t||!1!==e?!0===e?{}:e:null}function oo(e,{plugin:t,local:n},i,r){const s=e.pluginScopeKeys(t),o=e.getOptionScopes(i,s);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ao(e,t){const n=ci.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function lo(e){if("x"===e||"y"===e||"r"===e)return e}function co(e,...t){if(lo(e))return e;for(const i of t){const t=i.axis||("top"===(n=i.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.length>1&&lo(e[0].toLowerCase());if(t)return t}var n;throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function uo(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function ho(e,t){const n=ri[e.type]||{scales:{}},i=t.scales||{},r=ao(e.type,t),s=Object.create(null);
vendor: 4,398 bytes, line 2
2return Object.keys(i).forEach((t=>{const o=i[t];if(!Vt(o))return console.error(`Invalid scale configuration for scale: ${t}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const a=co(t,o,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return uo(e,"x",n[0])||uo(e,"y",n[0])}return{}}(t,e),ci.scales[o.type]),l=function(e,t){return e===t?"_index_":"_value_"}(a,r),c=n.scales||{};s[t]=en(Object.create(null),[{axis:a},o,c[a],c[l]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,o=n.indexAxis||ao(r,t),a=(ri[r]||{}).scales||{};Object.keys(a).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,o),r=n[t+"AxisID"]||t;s[r]=s[r]||Object.create(null),en(s[r],[{axis:t},i[r],a[e]])}))})),Object.keys(s).forEach((e=>{const t=s[e];en(t,[ci.scales[t.type],ci.scale])})),s}function fo(e){const t=e.options||(e.options={});t.plugins=Ut(t.plugins,{}),t.scales=ho(e,t)}function po(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const mo=new Map,go=new Set;function vo(e,t){let n=mo.get(e);return n||(n=t(),mo.set(e,n),go.add(n)),n}const yo=(e,t,n)=>{const i=rn(t,n);void 0!==i&&e.add(i)};class bo{constructor(e){this._config=function(e){return(e=e||{}).data=po(e.data),fo(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=po(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),fo(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return vo(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return vo(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return vo(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return vo(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let i=n.get(e);return i&&!t||(i=new Map,n.set(e,i)),i}getOptionScopes(e,t,n){const{options:i,type:r}=this,s=this._cachedScopes(e,n),o=s.get(t);if(o)return o;const a=new Set;t.forEach((t=>{e&&(a.add(e),t.forEach((t=>yo(a,e,t)))),t.forEach((e=>yo(a,i,e))),t.forEach((e=>yo(a,ri[r]||{},e))),t.forEach((e=>yo(a,ci,e))),t.forEach((e=>yo(a,si,e)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),go.has(t)&&s.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,ri[t]||{},ci.datasets[t]||{},{type:t},ci,si]}resolveNamedOptions(e,t,n,i=[""]){const r={$shared:!0},{resolver:s,subPrefixes:o}=_o(this._resolverCache,e,i);let a=s;if(function(e,t){const{isScriptable:n,isIndexable:i}=Fi(e);for(const r of t){const t=n(r),s=i(r),o=(s||t)&&e[r];if(t&&(an(o)||Eo(o))||s&&qt(o))return!0}return!1}(s,t)){r.$shared=!1;a=$i(s,n=an(n)?n():n,this.createResolver(e,n,o))}for(const e of t)r[e]=a[e];return r}createResolver(e,t,n=[""],i){const{resolver:r}=_o(this._resolverCache,e,n);return Vt(t)?$i(r,t,void 0,i):r}}function _o(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const r=n.join();let s=i.get(r);if(!s){s={resolver:Ni(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},i.set(r,s)}return s}const Eo=e=>Vt(e)&&Object.getOwnPropertyNames(e).some((t=>an(e[t])));const wo=["top","bottom","left","right","chartArea"];function xo(e,t){return"top"===e||"bottom"===e||-1===wo.indexOf(e)&&"x"===t}function To(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function So(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Wt(n&&n.onComplete,[e],t)}function Lo(e){const t=e.chart,n=t.options.animation;Wt(n&&n.onProgress,[e],t)}function Io(e){return ir()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Co={},Oo=e=>{const t=Io(e);return Object.values(Co).filter((e=>e.canvas===t)).pop()};function Ao(e,t,n){const i=Object.keys(e);for(const r of i){const i=+r;if(i>=t){const s=e[r];delete e[r],(n>0||i>t)&&(e[i+n]=s)}}}
vendor: 9,463 bytes, line 2
2function Mo(e,t,n){return e.options.clip?e[n]:t[n]}class ko{static defaults=ci;static instances=Co;static overrides=ri;static registry=io;static version="4.4.2";static getChart=Oo;static register(...e){io.add(...e),Po()}static unregister(...e){io.remove(...e),Po()}constructor(e,t){const n=this.config=new bo(t),i=Io(e),r=Oo(i);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!ir()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?Cs:Gs}(i)),this.platform.updateConfig(n);const o=this.platform.acquireContext(i,s.aspectRatio),a=o&&o.canvas,l=a&&a.height,c=a&&a.width;this.id=Bt(),this.ctx=o,this.canvas=a,this.width=c,this.height=l,this._options=s,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 ro,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}((e=>this.update(e)),s.resizeDelay||0),this._dataChanges=[],Co[this.id]=this,o&&a?(Ar.listen(this,"complete",So),Ar.listen(this,"progress",Lo),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:e,maintainAspectRatio:t},width:n,height:i,_aspectRatio:r}=this;return jt(e)?t&&r?r:i?n/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return io}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():fr(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return fi(this.canvas,this.ctx),this}stop(){return Ar.stop(this),this}resize(e,t){Ar.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,i=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,e,t,r),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,fr(this,o,!0)&&(this.notifyPlugins("resize",{size:s}),Wt(n.onResize,[this,s],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){Yt(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,i=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let r=[];t&&(r=r.concat(Object.keys(t).map((e=>{const n=t[e],i=co(e,n),r="r"===i,s="x"===i;return{options:n,dposition:r?"chartArea":s?"bottom":"left",dtype:r?"radialLinear":s?"category":"linear"}})))),Yt(r,(t=>{const r=t.options,s=r.id,o=co(s,r),a=Ut(r.type,t.dtype);void 0!==r.position&&xo(r.position,o)===xo(t.dposition)||(r.position=t.dposition),i[s]=!0;let l=null;if(s in n&&n[s].type===a)l=n[s];else{l=new(io.getScale(a))({id:s,type:a,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(r,e)})),Yt(i,((e,t)=>{e||delete n[t]})),Yt(n,(e=>{Ls.configure(this,e,e.options),Ls.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(To("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=t.length;n<i;n++){const i=t[n];let r=this.getDatasetMeta(n);const s=i.type||this.config.type;if(r.type&&r.type!==s&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=s,r.indexAxis=i.indexAxis||ao(s,this.options),r.order=i.order||0,r.index=n,r.label=""+i.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const t=io.getController(s),{datasetElementType:i,dataElementType:o}=ci.datasets[s];Object.assign(t,{dataElementType:io.getElement(o),datasetElementType:i&&io.getElement(i)}),r.controller=new t(this,n),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){Yt(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!i&&-1===r.indexOf(t);t.buildOrUpdateElements(n),s=Math.max(+t.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),i||Yt(r,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(To("z","_idx"));const{_active:o,_lastEvent:a}=this;a?this._eventHandler(a,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Yt(this.scales,(e=>{Ls.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);ln(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of t){Ao(e,i,"_removeElements"===n?-r:r)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),i=n(0);for(let e=1;e<t;e++)if(!ln(i,n(e)))return;return Array.from(i).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Ls.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],Yt(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,an(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),i={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(t),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Ar.has(this)?this.attached&&!Ar.running(this)&&Ar.start(this):(this.draw(),So({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resize(e,t),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let i,r;for(i=0,r=t.length;i<r;++i){const r=t[i];e&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,i=!n.disabled,r=function(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:Mo(n,t,"left"),right:Mo(n,t,"right"),top:Mo(i,t,"top"),bottom:Mo(i,t,"bottom")}:t}(e,this.chartArea),s={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",s)&&(i&&vi(t,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),e.controller.draw(),i&&yi(t),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return gi(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,i){const r=fs.modes[t];return"function"==typeof r?r(this,e,n,i):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let i=n.filter((e=>e&&e._dataset===t)).pop();
vendor: 6,451 bytes, line 2
2return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=Di(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const i=n?"show":"hide",r=this.getDatasetMeta(e),s=r.controller._resolveAnimations(void 0,i);on(t)?(r.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),s.update(r,{visible:n}),this.update((t=>t.datasetIndex===e?i:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),Ar.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),fi(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete Co[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,i)=>{t.addEventListener(this,n,i),e[n]=i},i=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};Yt(this.options.events,(e=>n(e,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,i)=>{t.addEventListener(this,n,i),e[n]=i},i=(n,i)=>{e[n]&&(t.removeEventListener(this,n,i),delete e[n])},r=(e,t)=>{this.canvas&&this.resize(e,t)};let s;const o=()=>{i("attach",o),this.attached=!0,this.resize(),n("resize",r),n("detach",s)};s=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",o)},t.isAttached(this.canvas)?o():s()}unbindEvents(){Yt(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},Yt(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const i=n?"set":"remove";let r,s,o,a;for("dataset"===t&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),o=0,a=e.length;o<a;++o){s=e[o];const t=s&&this.getDatasetMeta(s.datasetIndex).controller;t&&t[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}));!Xt(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const i=this.options.hover,r=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),s=r(t,e),o=n?e:r(e,t);s.length&&this.updateHoverStyle(s,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},i=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:i=[],options:r}=this,s=t,o=this._getActiveElements(e,i,n,s),a=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,i){return n&&"mouseout"!==e.type?i?t:e:null}(e,this._lastEvent,n,a);n&&(this._lastEvent=null,Wt(r.onHover,[e,o,this],this),a&&Wt(r.onClick,[e,o,this],this));const c=!Xt(o,i);return(c||t)&&(this._active=o,this._updateHoverStyles(o,i,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,i){if("mouseout"===e.type)return[];if(!n)return t;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,i)}}function Po(){return Yt(ko.instances,(e=>e._plugins.invalidate()))}function Ro(e,t,n,i){const r=function(e){return Oi(e,["outerStart","outerEnd","innerStart","innerEnd"])}(e.options.borderRadius),s=(n-t)/2,o=Math.min(s,i*t/2),a=e=>{const t=(n-Math.min(s,e))*i/2;return Mn(e,0,Math.min(s,t))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:Mn(r.innerStart,0,o),innerEnd:Mn(r.innerEnd,0,o)}}function Do(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function No(e,t,n,i,r,s){const{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+i+n-c,0),h=u>0?u+i+n+c:0;let f=0;const p=r-l;if(i){const e=((u>0?u-i:0)+(d>0?d-i:0))/2;f=(p-(0!==e?p*e/(e+i):p))/2}const m=(p-Math.max(.001,p*d-n/cn)/d)/2,g=l+m+f,v=r-m-f,{outerStart:y,outerEnd:b,innerStart:_,innerEnd:E}=Ro(t,h,d,v-g),w=d-y,x=d-b,T=g+y/w,S=v-b/x,L=h+_,I=h+E,C=g+_/L,O=v-E/I;if(e.beginPath(),s){const t=(T+S)/2;if(e.arc(o,a,d,T,t),e.arc(o,a,d,t,S),b>0){const t=Do(x,S,o,a);e.arc(t.x,t.y,b,S,v+pn)}const n=Do(I,v,o,a);if(e.lineTo(n.x,n.y),E>0){const t=Do(I,O,o,a);e.arc(t.x,t.y,E,v+pn,O+Math.PI)}const i=(v-E/h+(g+_/h))/2;if(e.arc(o,a,h,v-E/h,i,!0),e.arc(o,a,h,i,g+_/h,!0),_>0){const t=Do(L,C,o,a);e.arc(t.x,t.y,_,C+Math.PI,g-pn)}const r=Do(w,g,o,a);if(e.lineTo(r.x,r.y),y>0){const t=Do(w,T,o,a);e.arc(t.x,t.y,y,g-pn,T)}}else{e.moveTo(o,a);const t=Math.cos(T)*d+o,n=Math.sin(T)*d+a;e.lineTo(t,n);const i=Math.cos(S)*d+o,r=Math.sin(S)*d+a;e.lineTo(i,r)}e.closePath()}function $o(e,t,n,i,r){const{fullCircles:s,startAngle:o,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:h}=l,f="inner"===l.borderAlign;if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=h,f?(e.lineWidth=2*c,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let p=t.endAngle;if(s){No(e,t,n,i,p,r);for(let t=0;t<s;++t)e.stroke();
vendor: 8,994 bytes, line 2
2isNaN(a)||(p=o+(a%un||un))}f&&function(e,t,n){const{startAngle:i,pixelMargin:r,x:s,y:o,outerRadius:a,innerRadius:l}=t;let c=r/a;e.beginPath(),e.arc(s,o,a,i-c,n+c),l>r?(c=r/l,e.arc(s,o,l,n+c,i-c,!0)):e.arc(s,o,r,n+pn,i-pn),e.closePath(),e.clip()}(e,t,p),s||(No(e,t,n,i,p,r),e.stroke())}function Fo(e,t,n=t){e.lineCap=Ut(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ut(n.borderDash,t.borderDash)),e.lineDashOffset=Ut(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ut(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ut(n.borderWidth,t.borderWidth),e.strokeStyle=Ut(n.borderColor,t.borderColor)}function Bo(e,t,n){e.lineTo(n.x,n.y)}function jo(e,t,n={}){const i=e.length,{start:r=0,end:s=i-1}=n,{start:o,end:a}=t,l=Math.max(r,o),c=Math.min(s,a),u=r<o&&s<o||r>a&&s>a;return{count:i,start:l,loop:t.loop,ilen:c<l&&!u?i+c-l:c-l}}function qo(e,t,n,i){const{points:r,options:s}=t,{count:o,start:a,loop:l,ilen:c}=jo(r,n,i),u=function(e){return e.stepped?bi:e.tension||"monotone"===e.cubicInterpolationMode?_i:Bo}(s);let d,h,f,{move:p=!0,reverse:m}=i||{};for(d=0;d<=c;++d)h=r[(a+(m?c-d:d))%o],h.skip||(p?(e.moveTo(h.x,h.y),p=!1):u(e,f,h,m,s.stepped),f=h);return l&&(h=r[(a+(m?c:0))%o],u(e,f,h,m,s.stepped)),!!l}function Vo(e,t,n,i){const r=t.points,{count:s,start:o,ilen:a}=jo(r,n,i),{move:l=!0,reverse:c}=i||{};let u,d,h,f,p,m,g=0,v=0;const y=e=>(o+(c?a-e:e))%s,b=()=>{f!==p&&(e.lineTo(g,p),e.lineTo(g,f),e.lineTo(g,m))};for(l&&(d=r[y(0)],e.moveTo(d.x,d.y)),u=0;u<=a;++u){if(d=r[y(u)],d.skip)continue;const t=d.x,n=d.y,i=0|t;i===h?(n<f?f=n:n>p&&(p=n),g=(v*g+t)/++v):(b(),e.lineTo(t,n),h=i,v=0,f=p=n),m=n}b()}function Go(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n)?Vo:qo}const zo="function"==typeof Path2D;function Uo(e,t,n,i){zo&&!t.options.segment?function(e,t,n,i){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,i)&&r.closePath()),Fo(e,t.options),e.stroke(r)}(e,t,n,i):function(e,t,n,i){const{segments:r,options:s}=t,o=Go(t);for(const a of r)Fo(e,s,a.style),e.beginPath(),o(e,t,a,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}(e,t,n,i)}class Ho extends zs{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};constructor(e){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,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;nr(this._points,n,e,i,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,i=e.options.spanGaps,r=n.length;if(!r)return[];const s=!!e._loop,{start:o,end:a}=function(e,t,n,i){let r=0,s=t-1;if(n&&!i)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(s+=r);s>r&&e[s%t].skip;)s--;return s%=t,{start:r,end:s}}(n,r,s,i);return Lr(e,!0===i?[{start:o,end:a,loop:s}]:function(e,t,n,i){const r=e.length,s=[];let o,a=t,l=e[t];for(o=t+1;o<=n;++o){const n=e[o%r];n.skip||n.stop?l.skip||(i=!1,s.push({start:t%r,end:(o-1)%r,loop:i}),t=a=n.stop?o:null):(a=o,l.skip&&(t=o)),l=n}return null!==a&&s.push({start:t%r,end:a%r,loop:i}),s}(n,o,a<o?a+r:a,!!e._fullLoop&&0===o&&a===r-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,i=e[t],r=this.points,s=Sr(this,{property:t,start:i,end:i});if(!s.length)return;const o=[],a=function(e){return e.stepped?vr:e.tension||"monotone"===e.cubicInterpolationMode?yr:gr}(n);let l,c;for(l=0,c=s.length;l<c;++l){const{start:c,end:u}=s[l],d=r[c],h=r[u];if(d===h){o.push(d);continue}const f=a(d,h,Math.abs((i-d[t])/(h[t]-d[t])),n.stepped);f[t]=e[t],o.push(f)}return 1===o.length?o[0]:o}pathSegment(e,t,n){return Go(this)(e,this,t,n)}path(e,t,n){const i=this.segments,r=Go(this);let s=this._loop;t=t||0,n=n||this.points.length-t;for(const o of i)s&=r(e,this,o,{start:t,end:t+n-1});return!!s}draw(e,t,n,i){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),Uo(e,this,n,i),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Wo(e,t,n,i){const r=e.options,{[n]:s}=e.getProps([n],i);return Math.abs(t-s)<r.radius+r.hitRadius}function Yo(e,t){const{x:n,y:i,base:r,width:s,height:o}=e.getProps(["x","y","base","width","height"],t);let a,l,c,u,d;return e.horizontal?(d=o/2,a=Math.min(n,r),l=Math.max(n,r),c=i-d,u=i+d):(d=s/2,a=n-d,l=n+d,c=Math.min(i,r),u=Math.max(i,r)),{left:a,top:c,right:l,bottom:u}}function Xo(e,t,n,i){return e?0:Mn(t,n,i)}function Ko(e){const t=Yo(e),n=t.right-t.left,i=t.bottom-t.top,r=function(e,t,n){const i=e.options.borderWidth,r=e.borderSkipped,s=Ai(i);return{t:Xo(r.top,s.top,0,n),r:Xo(r.right,s.right,0,t),b:Xo(r.bottom,s.bottom,0,n),l:Xo(r.left,s.left,0,t)}}(e,n/2,i/2),s=function(e,t,n){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,s=Mi(r),o=Math.min(t,n),a=e.borderSkipped,l=i||Vt(r);return{topLeft:Xo(!l||a.top||a.left,s.topLeft,0,o),topRight:Xo(!l||a.top||a.right,s.topRight,0,o),bottomLeft:Xo(!l||a.bottom||a.left,s.bottomLeft,0,o),bottomRight:Xo(!l||a.bottom||a.right,s.bottomRight,0,o)}}(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:s},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,s.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(r.b,r.r))}}}}function Qo(e,t,n,i){const r=null===t,s=null===n,o=e&&!(r&&s)&&Yo(e,i);return o&&(r||kn(t,o.left,o.right))&&(s||kn(n,o.top,o.bottom))}function Jo(e,t){e.rect(t.x,t.y,t.w,t.h)}function Zo(e,t,n={}){const i=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,s=(e.x+e.w!==n.x+n.w?t:0)-i,o=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+i,y:e.y+r,w:e.w+s,h:e.h+o,radius:e.radius}}var ea=Object.freeze({__proto__:null,ArcElement:class extends zs{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){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,e&&Object.assign(this,e)}inRange(e,t,n){const i=this.getProps(["x","y"],n),{angle:r,distance:s}=Ln(i,{x:e,y:t}),{startAngle:o,endAngle:a,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,h=Ut(u,a-o)>=un||An(r,o,a),f=kn(s,l+d,c+d);return h&&f}getCenterPoint(e){const{x:t,y:n,startAngle:i,endAngle:r,innerRadius:s,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:a,spacing:l}=this.options,c=(i+r)/2,u=(s+o+l+a)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,i=(t.offset||0)/4,r=(t.spacing||0)/2,s=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>un?Math.floor(n/un):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*i,Math.sin(o)*i);const a=i*(1-Math.sin(Math.min(cn,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,i,r){const{fullCircles:s,startAngle:o,circumference:a}=t;let l=t.endAngle;if(s){No(e,t,n,i,l,r);for(let t=0;t<s;++t)e.fill();isNaN(a)||(l=o+(a%un||un))}No(e,t,n,i,l,r),e.fill()}(e,this,a,r,s),$o(e,this,a,r,s),e.restore()}},BarElement:class extends zs{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmou
vendor: 4,229 bytes, line 2
2nt=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:i}}=this,{inner:r,outer:s}=Ko(this),o=(a=s.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?Ti:Jo;var a;e.save(),s.w===r.w&&s.h===r.h||(e.beginPath(),o(e,Zo(s,t,r)),e.clip(),o(e,Zo(r,-t,s)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),o(e,Zo(r,t)),e.fillStyle=i,e.fill(),e.restore()}inRange(e,t,n){return Qo(this,e,t,n)}inXRange(e,t){return Qo(this,e,null,t)}inYRange(e,t){return Qo(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],e);return{x:r?(t+i)/2:t,y:r?n:(n+i)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}},LineElement:Ho,PointElement:class extends zs{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const i=this.options,{x:r,y:s}=this.getProps(["x","y"],n);return Math.pow(e-r,2)+Math.pow(t-s,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(e,t){return Wo(this,e,"x",t)}inYRange(e,t){return Wo(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!gi(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,pi(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}});const ta=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],na=ta.map((e=>e.replace("rgb(","rgba(").replace(")",", 0.5)")));function ia(e){return ta[e%ta.length]}function ra(e){return na[e%na.length]}function sa(e){let t=0;return(n,i)=>{const r=e.getDatasetMeta(i).controller;r instanceof ts?t=function(e,t){return e.backgroundColor=e.data.map((()=>ia(t++))),t}(n,t):r instanceof ns?t=function(e,t){return e.backgroundColor=e.data.map((()=>ra(t++))),t}(n,t):r&&(t=function(e,t){return e.borderColor=ia(t),e.backgroundColor=ra(t),++t}(n,t))}}function oa(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var aa={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:i},options:r}=e.config,{elements:s}=r;if(!n.forceOverride&&(oa(i)||(o=r)&&(o.borderColor||o.backgroundColor)||s&&oa(s)))return;var o;const a=sa(e);i.forEach(a)}};function la(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function ca(e){e.data.datasets.forEach((e=>{la(e)}))}var ua={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled)return void ca(e);const i=e.width;e.data.datasets.forEach(((t,r)=>{const{_data:s,indexAxis:o}=t,a=e.getDatasetMeta(r),l=s||t.data;if("y"===Ri([o,e.options.indexAxis]))return;if(!a.controller.supportsDecimation)return;const c=e.scales[a.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(e.options.parsing)return;let{start:u,count:d}=function(e,t){const n=t.length;let i,r=0;const{iScale:s}=e,{min:o,max:a,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(r=Mn(Rn(t,s.axis,o).lo,0,n-1)),i=c?Mn(Rn(t,s.axis,a).hi+1,r,n)-r:n-r,{start:r,count:i}}(a,l);if(d<=(n.threshold||4*i))return void la(t);let h;switch(jt(s)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":h=function(e,t,n,i,r){const s=r.samples||i;if(s>=n)return e.slice(t,t+n);const o=[],a=(n-2)/(s-2);let l=0;const c=t+n-1;let u,d,h,f,p,m=t;for(o[l++]=e[m],u=0;u<s-2;u++){let i,r=0,s=0;const c=Math.floor((u+1)*a)+1+t,g=Math.min(Math.floor((u+2)*a)+1,n)+t,v=g-c;for(i=c;i<g;i++)r+=e[i].x,s+=e[i].y;r/=v,s/=v;
vendor: 4,382 bytes, line 2
2const y=Math.floor(u*a)+1+t,b=Math.min(Math.floor((u+1)*a)+1,n)+t,{x:_,y:E}=e[m];for(h=f=-1,i=y;i<b;i++)f=.5*Math.abs((_-r)*(e[i].y-E)-(_-e[i].x)*(s-E)),f>h&&(h=f,d=e[i],p=i);o[l++]=d,m=p}return o[l++]=e[c],o}(l,u,d,i,n);break;case"min-max":h=function(e,t,n,i){let r,s,o,a,l,c,u,d,h,f,p=0,m=0;const g=[],v=t+n-1,y=e[t].x,b=e[v].x-y;for(r=t;r<t+n;++r){s=e[r],o=(s.x-y)/b*i,a=s.y;const t=0|o;if(t===l)a<h?(h=a,c=r):a>f&&(f=a,u=r),p=(m*p+s.x)/++m;else{const n=r-1;if(!jt(c)&&!jt(u)){const t=Math.min(c,u),i=Math.max(c,u);t!==d&&t!==n&&g.push({...e[t],x:p}),i!==d&&i!==n&&g.push({...e[i],x:p})}r>0&&n!==d&&g.push(e[n]),g.push(s),l=t,m=0,h=f=a,c=u=d=r}}return g}(l,u,d,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=h}))},destroy(e){ca(e)}};function da(e,t,n,i){if(i)return;let r=t[e],s=n[e];return"angle"===e&&(r=On(r),s=On(s)),{property:e,start:r,end:s}}function ha(e,t,n){for(;t>e;t--){const e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function fa(e,t,n,i){return e&&t?i(e[n],t[n]):e?e[n]:t?t[n]:0}function pa(e,t){let n=[],i=!1;return qt(e)?(i=!0,n=e):n=function(e,t){const{x:n=null,y:i=null}=e||{},r=t.points,s=[];return t.segments.forEach((({start:e,end:t})=>{t=ha(e,t,r);const o=r[e],a=r[t];null!==i?(s.push({x:o.x,y:i}),s.push({x:a.x,y:i})):null!==n&&(s.push({x:n,y:o.y}),s.push({x:n,y:a.y}))})),s}(e,t),n.length?new Ho({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function ma(e){return e&&!1!==e.fill}function ga(e,t,n){let i=e[t].fill;const r=[t];let s;if(!n)return i;for(;!1!==i&&-1===r.indexOf(i);){if(!Gt(i))return i;if(s=e[i],!s)return!1;if(s.visible)return i;r.push(i),i=s.fill}return!1}function va(e,t,n){const i=function(e){const t=e.options,n=t.fill;let i=Ut(n&&n.target,n);void 0===i&&(i=!!t.backgroundColor);if(!1===i||null===i)return!1;if(!0===i)return"origin";return i}(e);if(Vt(i))return!isNaN(i.value)&&i;let r=parseFloat(i);return Gt(r)&&Math.floor(r)===r?function(e,t,n,i){"-"!==e&&"+"!==e||(n=t+n);if(n===t||n<0||n>=i)return!1;return n}(i[0],t,r,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function ya(e,t,n){const i=[];for(let r=0;r<n.length;r++){const s=n[r],{first:o,last:a,point:l}=ba(s,t,"x");if(!(!l||o&&a))if(o)i.unshift(l);else if(e.push(l),!a)break}e.push(...i)}function ba(e,t,n){const i=e.interpolate(t,n);if(!i)return{};const r=i[n],s=e.segments,o=e.points;let a=!1,l=!1;for(let e=0;e<s.length;e++){const t=s[e],i=o[t.start][n],c=o[t.end][n];if(kn(r,i,c)){a=r===i,l=r===c;break}}return{first:a,last:l,point:i}}class _a{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,n){const{x:i,y:r,radius:s}=this;return t=t||{start:0,end:un},e.arc(i,r,s,t.end,t.start,!0),!n.bounds}interpolate(e){const{x:t,y:n,radius:i}=this,r=e.angle;return{x:t+Math.cos(r)*i,y:n+Math.sin(r)*i,angle:r}}}function Ea(e){const{chart:t,fill:n,line:i}=e;if(Gt(n))return function(e,t){const n=e.getDatasetMeta(t),i=n&&e.isDatasetVisible(t);return i?n.dataset:null}(t,n);if("stack"===n)return function(e){const{scale:t,index:n,line:i}=e,r=[],s=i.segments,o=i.points,a=function(e,t){const n=[],i=e.getMatchingVisibleMetas("line");for(let e=0;e<i.length;e++){const r=i[e];if(r.index===t)break;r.hidden||n.unshift(r.dataset)}return n}(t,n);a.push(pa({x:null,y:t.bottom},i));for(let e=0;e<s.length;e++){const t=s[e];for(let e=t.start;e<=t.end;e++)ya(r,o[e],a)}return new Ho({points:r,options:{}})}(e);if("shape"===n)return!0;const r=function(e){const t=e.scale||{};if(t.getPointPositionForValue)return function(e){const{scale:t,fill:n}=e,i=t.options,r=t.getLabels().length,s=i.reverse?t.max:t.min,o=function(e,t,n){let i;return i="start"===e?n:"end"===e?t.options.reverse?t.min:t.max:Vt(e)?e.value:t.getBaseValue(),i}(n,t,s),a=[];if(i.grid.circular){const e=t.getPointPositionForValue(0,s);return new _a({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(o)})}for(let e=0;e<r;++e)a.push(t.getPointPositionForValue(e,o));return a}(e);return function(e){const{scale:t={},fill:n}=e,i=function(e,t){let n=null;return"start"===e?n=t.bottom:"end"===e?n=t.top:Vt(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}(n,t);if(Gt(i)){const e=t.isHorizontal();return{x:e?i:null,y:e?null:i}}return null}(e)}(e);return r instanceof _a?r:pa(r,i)}function wa(e,t,n){const i=Ea(t),{line:r,scale:s,axis:o}=t,a=r.options,l=a.fill,c=a.backgroundColor,{above:u=c,below:d=c}
vendor: 4,624 bytes, line 2
2=l||{};i&&r.points.length&&(vi(e,n),function(e,t){const{line:n,target:i,above:r,below:s,area:o,scale:a}=t,l=n._loop?"angle":t.axis;e.save(),"x"===l&&s!==r&&(xa(e,i,o.top),Ta(e,{line:n,target:i,color:r,scale:a,property:l}),e.restore(),e.save(),xa(e,i,o.bottom));Ta(e,{line:n,target:i,color:s,scale:a,property:l}),e.restore()}(e,{line:r,target:i,above:u,below:d,area:n,scale:s,axis:o}),yi(e))}function xa(e,t,n){const{segments:i,points:r}=t;let s=!0,o=!1;e.beginPath();for(const a of i){const{start:i,end:l}=a,c=r[i],u=r[ha(i,l,r)];s?(e.moveTo(c.x,c.y),s=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),o=!!t.pathSegment(e,a,{move:o}),o?e.closePath():e.lineTo(u.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function Ta(e,t){const{line:n,target:i,property:r,color:s,scale:o}=t,a=function(e,t,n){const i=e.segments,r=e.points,s=t.points,o=[];for(const e of i){let{start:i,end:a}=e;a=ha(i,a,r);const l=da(n,r[i],r[a],e.loop);if(!t.segments){o.push({source:e,target:l,start:r[i],end:r[a]});continue}const c=Sr(t,l);for(const t of c){const i=da(n,s[t.start],s[t.end],t.loop),a=Tr(e,r,i);for(const e of a)o.push({source:e,target:t,start:{[n]:fa(l,i,"start",Math.max)},end:{[n]:fa(l,i,"end",Math.min)}})}}return o}(n,i,r);for(const{source:t,target:l,start:c,end:u}of a){const{style:{backgroundColor:a=s}={}}=t,d=!0!==i;e.save(),e.fillStyle=a,Sa(e,o,d&&da(r,c,u)),e.beginPath();const h=!!n.pathSegment(e,t);let f;if(d){h?e.closePath():La(e,i,u,r);const t=!!i.pathSegment(e,l,{move:h,reverse:!0});f=h&&t,f||La(e,i,c,r)}e.closePath(),e.fill(f?"evenodd":"nonzero"),e.restore()}}function Sa(e,t,n){const{top:i,bottom:r}=t.chart.chartArea,{property:s,start:o,end:a}=n||{};"x"===s&&(e.beginPath(),e.rect(o,i,a-o,r-i),e.clip())}function La(e,t,n,i){const r=t.interpolate(n,i);r&&e.lineTo(r.x,r.y)}var Ia={id:"filler",afterDatasetsUpdate(e,t,n){const i=(e.data.datasets||[]).length,r=[];let s,o,a,l;for(o=0;o<i;++o)s=e.getDatasetMeta(o),a=s.dataset,l=null,a&&a.options&&a instanceof Ho&&(l={visible:e.isDatasetVisible(o),index:o,fill:va(a,o,i),chart:e,axis:s.controller.options.indexAxis,scale:s.vScale,line:a}),s.$filler=l,r.push(l);for(o=0;o<i;++o)l=r[o],l&&!1!==l.fill&&(l.fill=ga(r,o,n.propagate))},beforeDraw(e,t,n){const i="beforeDraw"===n.drawTime,r=e.getSortedVisibleDatasetMetas(),s=e.chartArea;for(let t=r.length-1;t>=0;--t){const n=r[t].$filler;n&&(n.line.updateControlPoints(s,n.axis),i&&n.fill&&wa(e.ctx,n,s))}},beforeDatasetsDraw(e,t,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=e.getSortedVisibleDatasetMetas();for(let t=i.length-1;t>=0;--t){const n=i[t].$filler;ma(n)&&wa(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){const i=t.meta.$filler;ma(i)&&"beforeDatasetDraw"===n.drawTime&&wa(e.ctx,i,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Ca=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}};class Oa extends zs{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.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(e,t,n){this.maxWidth=e,this.maxHeight=t,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 e=this.options.labels||{};let t=Wt(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,i=Pi(n.font),r=i.size,s=this._computeTitleHeight(),{boxWidth:o,itemHeight:a}=Ca(n,r);let l,c;t.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(s,r,o,a)+10):(c=this.maxHeight,l=this._fitCols(s,i,o,a)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,i){const{ctx:r,maxWidth:s,options:{labels:{padding:o}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+o;let u=e;r.textAlign="left",r.textBaseline="middle";let d=-1,h=-c;
vendor: 43,459 bytes, line 2
2return this.legendItems.forEach(((e,f)=>{const p=n+t/2+r.measureText(e.text).width;(0===f||l[l.length-1]+p+2*o>s)&&(u+=c,l[l.length-(f>0?0:1)]=0,h+=c,d++),a[f]={left:0,top:h,row:d,width:p,height:i},l[l.length-1]+=p+o})),u}_fitCols(e,t,n,i){const{ctx:r,maxHeight:s,options:{labels:{padding:o}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=s-e;let u=o,d=0,h=0,f=0,p=0;return this.legendItems.forEach(((e,s)=>{const{itemWidth:m,itemHeight:g}=function(e,t,n,i,r){const s=function(e,t,n,i){let r=e.text;r&&"string"!=typeof r&&(r=r.reduce(((e,t)=>e.length>t.length?e:t)));return t+n.size/2+i.measureText(r).width}(i,e,t,n),o=function(e,t,n){let i=e;"string"!=typeof t.text&&(i=Aa(t,n));return i}(r,i,t.lineHeight);return{itemWidth:s,itemHeight:o}}(n,t,r,e,i);s>0&&h+g+2*o>c&&(u+=d+o,l.push({width:d,height:h}),f+=d+o,p++,d=h=0),a[s]={left:f,top:h,col:p,width:m,height:g},d=Math.max(d,m),h+=g+o})),u+=d,l.push({width:d,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:i},rtl:r}}=this,s=br(r,this.left,this.width);if(this.isHorizontal()){let r=0,o=Vn(n,this.left+i,this.right-this.lineWidths[r]);for(const a of t)r!==a.row&&(r=a.row,o=Vn(n,this.left+i,this.right-this.lineWidths[r])),a.top+=this.top+e+i,a.left=s.leftForLtr(s.x(o),a.width),o+=a.width+i}else{let r=0,o=Vn(n,this.top+e+i,this.bottom-this.columnSizes[r].height);for(const a of t)a.col!==r&&(r=a.col,o=Vn(n,this.top+e+i,this.bottom-this.columnSizes[r].height)),a.top=o,a.left+=this.left+i,a.left=s.leftForLtr(s.x(a.left),a.width),o+=a.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;vi(e,this),this._draw(),yi(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:i}=this,{align:r,labels:s}=e,o=ci.color,a=br(e.rtl,this.left,this.width),l=Pi(s.font),{padding:c}=s,u=l.size,d=u/2;let h;this.drawTitle(),i.textAlign=a.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:f,boxHeight:p,itemHeight:m}=Ca(s,u),g=this.isHorizontal(),v=this._computeTitleHeight();h=g?{x:Vn(r,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:Vn(r,this.top+v+c,this.bottom-t[0].height),line:0},_r(this.ctx,e.textDirection);const y=m+c;this.legendItems.forEach(((b,_)=>{i.strokeStyle=b.fontColor,i.fillStyle=b.fontColor;const E=i.measureText(b.text).width,w=a.textAlign(b.textAlign||(b.textAlign=s.textAlign)),x=f+d+E;let T=h.x,S=h.y;a.setWidth(this.width),g?_>0&&T+x+c>this.right&&(S=h.y+=y,h.line++,T=h.x=Vn(r,this.left+c,this.right-n[h.line])):_>0&&S+y>this.bottom&&(T=h.x=T+t[h.line].width+c,h.line++,S=h.y=Vn(r,this.top+v+c,this.bottom-t[h.line].height));if(function(e,t,n){if(isNaN(f)||f<=0||isNaN(p)||p<0)return;i.save();const r=Ut(n.lineWidth,1);if(i.fillStyle=Ut(n.fillStyle,o),i.lineCap=Ut(n.lineCap,"butt"),i.lineDashOffset=Ut(n.lineDashOffset,0),i.lineJoin=Ut(n.lineJoin,"miter"),i.lineWidth=r,i.strokeStyle=Ut(n.strokeStyle,o),i.setLineDash(Ut(n.lineDash,[])),s.usePointStyle){const o={radius:p*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},l=a.xPlus(e,f/2);mi(i,o,l,t+d,s.pointStyleWidth&&f)}else{const s=t+Math.max((u-p)/2,0),o=a.leftForLtr(e,f),l=Mi(n.borderRadius);i.beginPath(),Object.values(l).some((e=>0!==e))?Ti(i,{x:o,y:s,w:f,h:p,radius:l}):i.rect(o,s,f,p),i.fill(),0!==r&&i.stroke()}i.restore()}(a.x(T),S,b),T=((e,t,n,i)=>e===(i?"left":"right")?n:"center"===e?(t+n)/2:t)(w,T+f+d,g?T+x:this.right,e.rtl),function(e,t,n){xi(i,n.text,e,t+m/2,l,{strikethrough:n.hidden,textAlign:a.textAlign(n.textAlign)})}(a.x(T),S,b),g)h.x+=x+c;else if("string"!=typeof b.text){const e=l.lineHeight;h.y+=Aa(b,e)+c}else h.y+=y})),Er(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=Pi(t.font),i=ki(t.padding);if(!t.display)return;const r=br(e.rtl,this.left,this.width),s=this.ctx,o=t.position,a=n.size/2,l=i.top+a;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=Vn(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+Vn(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const h=Vn(o,u,u+d);s.textAlign=r.textAlign(qn(o)),s.textBaseline="middle",s.strokeStyle=t.color,s.fillStyle=t.color,s.font=n.string,xi(s,t.text,h,c,n)}_computeTitleHeight(){const e=this.options.title,t=Pi(e.font),n=ki(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,i,r;if(kn(e,this.left,this.right)&&kn(t,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(i=r[n],kn(e,i.left,i.left+i.width)&&kn(t,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const s=this._hoveredItem,o=(r=n,null!==(i=s)&&null!==r&&i.datasetIndex===r.datasetIndex&&i.index===r.index);s&&!o&&Wt(t.onLeave,[e,s,this],this),this._hoveredItem=n,n&&!o&&Wt(t.onHover,[e,n,this],this)}else n&&Wt(t.onClick,[e,n,this],this);var i,r}}function Aa(e,t){return t*(e.text?e.text.length:0)}var Ma={id:"legend",_element:Oa,start(e,t,n){const i=e.legend=new Oa({ctx:e.ctx,options:n,chart:e});Ls.configure(e,i,n),Ls.addBox(e,i)},stop(e){Ls.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;Ls.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),t.hidden=!0):(r.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:s,useBorderRadius:o,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const l=e.controller.getStyle(n?0:void 0),c=ki(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:s,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:i||l.pointStyle,rotation:l.rotation,textAlign:r||l.textAlign,borderRadius:o&&(a||l.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class ka extends zs{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,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.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const i=qt(n.text)?n.text.length:1;this._padding=ki(n.padding);const r=i*Pi(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:i,right:r,options:s}=this,o=s.align;let a,l,c,u=0;return this.isHorizontal()?(l=Vn(o,n,r),c=t+e,a=r-n):("left"===s.position?(l=n+e,c=Vn(o,i,t),u=-.5*cn):(l=r-e,c=Vn(o,t,i),u=.5*cn),a=i-t),{titleX:l,titleY:c,maxWidth:a,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=Pi(t.font),i=n.lineHeight/2+this._padding.top,{titleX:r,titleY:s,maxWidth:o,rotation:a}=this._drawArgs(i);xi(e,t.text,0,0,n,{color:t.color,maxWidth:o,rotation:a,textAlign:qn(t.align),textBaseline:"middle",translation:[r,s]})}}var Pa={id:"title",_element:ka,start(e,t,n){!function(e,t){const n=new ka({ctx:e.ctx,options:t,chart:e});Ls.configure(e,n,t),Ls.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;Ls.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const i=e.titleBlock;Ls.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ra=new WeakMap;var Da={id:"subtitle",start(e,t,n){const i=new ka({ctx:e.ctx,options:n,chart:e});Ls.configure(e,i,n),Ls.addBox(e,i),Ra.set(e,i)},stop(e){Ls.removeBox(e,Ra.get(e)),Ra.delete(e)},beforeUpdate(e,t,n){const i=Ra.get(e);Ls.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Na={average(e){if(!e.length)return!1;let t,n,i=new Set,r=0,s=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();i.add(e.x),r+=e.y,++s}}return{x:[...i].reduce(((e,t)=>e+t))/i.size,y:r/s}},nearest(e,t){if(!e.length)return!1;let n,i,r,s=t.x,o=t.y,a=Number.POSITIVE_INFINITY;for(n=0,i=e.length;n<i;++n){const i=e[n].element;if(i&&i.hasValue()){const e=In(t,i.getCenterPoint());e<a&&(a=e,r=i)}}if(r){const e=r.tooltipPosition();s=e.x,o=e.y}return{x:s,y:o}}};function $a(e,t){return t&&(qt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Fa(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Ba(e,t){const{element:n,datasetIndex:i,index:r}=t,s=e.getDatasetMeta(i).controller,{label:o,value:a}=s.getLabelAndValue(r);return{chart:e,label:o,parsed:s.getParsed(r),raw:e.data.datasets[i].data[r],formattedValue:a,dataset:s.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function ja(e,t){const n=e.chart.ctx,{body:i,footer:r,title:s}=e,{boxWidth:o,boxHeight:a}=t,l=Pi(t.bodyFont),c=Pi(t.titleFont),u=Pi(t.footerFont),d=s.length,h=r.length,f=i.length,p=ki(t.padding);let m=p.height,g=0,v=i.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){m+=f*(t.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(v-f)*l.lineHeight+(v-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let y=0;const b=function(e){g=Math.max(g,n.measureText(e).width+y)};return n.save(),n.font=c.string,Yt(e.title,b),n.font=l.string,Yt(e.beforeBody.concat(e.afterBody),b),y=t.displayColors?o+2+t.boxPadding:0,Yt(i,(e=>{Yt(e.before,b),Yt(e.lines,b),Yt(e.after,b)})),y=0,n.font=u.string,Yt(e.footer,b),n.restore(),g+=p.width,{width:g,height:m}}function qa(e,t,n,i){const{x:r,width:s}=n,{width:o,chartArea:{left:a,right:l}}=e;let c="center";return"center"===i?c=r<=(a+l)/2?"left":"right":r<=s/2?c="left":r>=o-s/2&&(c="right"),function(e,t,n,i){const{x:r,width:s}=i,o=n.caretSize+n.caretPadding;return"left"===e&&r+s+o>t.width||"right"===e&&r-s-o<0||void 0}(c,e,t,n)&&(c="center"),c}function Va(e,t,n){const i=n.yAlign||t.yAlign||function(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||qa(e,t,n,i),yAlign:i}}function Ga(e,t,n,i){const{caretSize:r,caretPadding:s,cornerRadius:o}=e,{xAlign:a,yAlign:l}=n,c=r+s,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=Mi(o);let p=function(e,t){let{x:n,width:i}=e;return"right"===t?n-=i:"center"===t&&(n-=i/2),n}(t,a);const m=function(e,t,n){let{y:i,height:r}=e;return"top"===t?i+=n:i-="bottom"===t?r+n:r/2,i}(t,l,c);return"center"===l?"left"===a?p+=c:"right"===a&&(p-=c):"left"===a?p-=Math.max(u,h)+r:"right"===a&&(p+=Math.max(d,f)+r),{x:Mn(p,0,i.width-t.width),y:Mn(m,0,i.height-t.height)}}function za(e,t,n){const i=ki(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-i.right:e.x+i.left}function Ua(e){return $a([],Fa(e))}function Ha(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Wa={beforeTitle:Ft,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:Ft,beforeBody:Ft,beforeLabel:Ft,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return jt(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Ft,afterBody:Ft,beforeFooter:Ft,footer:Ft,afterFooter:Ft};function Ya(e,t,n,i){const r=e[t].call(n,i);return void 0===r?Wa[t].call(n,i):r}class Xa extends zs{static positioners=Na;constructor(e){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=e.chart,this.options=e.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(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&t.options.animation&&n.animations,r=new Rr(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,Di(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,i=Ya(n,"beforeTitle",this,e),r=Ya(n,"title",this,e),s=Ya(n,"afterTitle",this,e);let o=[];return o=$a(o,Fa(i)),o=$a(o,Fa(r)),o=$a(o,Fa(s)),o}getBeforeBody(e,t){return Ua(Ya(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,i=[];return Yt(e,(e=>{const t={before:[],lines:[],after:[]},r=Ha(n,e);$a(t.before,Fa(Ya(r,"beforeLabel",this,e))),$a(t.lines,Ya(r,"label",this,e)),$a(t.after,Fa(Ya(r,"afterLabel",this,e))),i.push(t)})),i}getAfterBody(e,t){return Ua(Ya(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,i=Ya(n,"beforeFooter",this,e),r=Ya(n,"footer",this,e),s=Ya(n,"afterFooter",this,e);let o=[];return o=$a(o,Fa(i)),o=$a(o,Fa(r)),o=$a(o,Fa(s)),o}_createItems(e){const t=this._active,n=this.chart.data,i=[],r=[],s=[];let o,a,l=[];for(o=0,a=t.length;o<a;++o)l.push(Ba(this.chart,t[o]));return e.filter&&(l=l.filter(((t,i,r)=>e.filter(t,i,r,n)))),e.itemSort&&(l=l.sort(((t,i)=>e.itemSort(t,i,n)))),Yt(l,(t=>{const n=Ha(e.callbacks,t);i.push(Ya(n,"labelColor",this,t)),r.push(Ya(n,"labelPointStyle",this,t)),s.push(Ya(n,"labelTextColor",this,t))})),this.labelColors=i,this.labelPointStyles=r,this.labelTextColors=s,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),i=this._active;let r,s=[];if(i.length){const e=Na[n.position].call(this,i,this._eventPosition);s=this._createItems(n),this.title=this.getTitle(s,n),this.beforeBody=this.getBeforeBody(s,n),this.body=this.getBody(s,n),this.afterBody=this.getAfterBody(s,n),this.footer=this.getFooter(s,n);const t=this._size=ja(this,n),o=Object.assign({},e,t),a=Va(this.chart,n,o),l=Ga(n,o,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,r={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=s,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,i){const r=this.getCaretPosition(e,n,i);t.lineTo(r.x1,r.y1),t.lineTo(r.x2,r.y2),t.lineTo(r.x3,r.y3)}getCaretPosition(e,t,n){const{xAlign:i,yAlign:r}=this,{caretSize:s,cornerRadius:o}=n,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:u}=Mi(o),{x:d,y:h}=e,{width:f,height:p}=t;let m,g,v,y,b,_;return"center"===r?(b=h+p/2,"left"===i?(m=d,g=m-s,y=b+s,_=b-s):(m=d+f,g=m+s,y=b-s,_=b+s),v=m):(g="left"===i?d+Math.max(a,c)+s:"right"===i?d+f-Math.max(l,u)-s:this.caretX,"top"===r?(y=h,b=y-s,m=g-s,v=g+s):(y=h+p,b=y+s,m=g+s,v=g-s),_=y),{x1:m,x2:g,x3:v,y1:y,y2:b,y3:_}}drawTitle(e,t,n){const i=this.title,r=i.length;let s,o,a;if(r){const l=br(n.rtl,this.x,this.width);for(e.x=za(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",s=Pi(n.titleFont),o=n.titleSpacing,t.fillStyle=n.titleColor,t.font=s.string,a=0;a<r;++a)t.fillText(i[a],l.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+o,a+1===r&&(e.y+=n.titleMarginBottom-o)}}_drawColorBox(e,t,n,i,r){const s=this.labelColors[n],o=this.labelPointStyles[n],{boxHeight:a,boxWidth:l}=r,c=Pi(r.bodyFont),u=za(this,"left",r),d=i.x(u),h=a<c.lineHeight?(c.lineHeight-a)/2:0,f=t.y+h;if(r.usePointStyle){const t={radius:Math.min(l,a)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},n=i.leftForLtr(d,l)+l/2,c=f+a/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,pi(e,t,n,c),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,pi(e,t,n,c)}else{e.lineWidth=Vt(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const t=i.leftForLtr(d,l),n=i.leftForLtr(i.xPlus(d,1),l-2),o=Mi(s.borderRadius);Object.values(o).some((e=>0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Ti(e,{x:t,y:f,w:l,h:a,radius:o}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Ti(e,{x:n,y:f+1,w:l-2,h:a-2,radius:o}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(t,f,l,a),e.strokeRect(t,f,l,a),e.fillStyle=s.backgroundColor,e.fillRect(n,f+1,l-2,a-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:i}=this,{bodySpacing:r,bodyAlign:s,displayColors:o,boxHeight:a,boxWidth:l,boxPadding:c}=n,u=Pi(n.bodyFont);let d=u.lineHeight,h=0;const f=br(n.rtl,this.x,this.width),p=function(n){t.fillText(n,f.x(e.x+h),e.y+d/2),e.y+=d+r},m=f.textAlign(s);let g,v,y,b,_,E,w;for(t.textAlign=s,t.textBaseline="middle",t.font=u.string,e.x=za(this,m,n),t.fillStyle=n.bodyColor,Yt(this.beforeBody,p),h=o&&"right"!==m?"center"===s?l/2+c:l+2+c:0,b=0,E=i.length;b<E;++b){for(g=i[b],v=this.labelTextColors[b],t.fillStyle=v,Yt(g.before,p),y=g.lines,o&&y.length&&(this._drawColorBox(t,e,b,f,n),d=Math.max(u.lineHeight,a)),_=0,w=y.length;_<w;++_)p(y[_]),d=u.lineHeight;Yt(g.after,p)}h=0,d=u.lineHeight,Yt(this.afterBody,p),e.y-=r}drawFooter(e,t,n){const i=this.footer,r=i.length;let s,o;if(r){const a=br(n.rtl,this.x,this.width);for(e.x=za(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=a.textAlign(n.footerAlign),t.textBaseline="middle",s=Pi(n.footerFont),t.fillStyle=n.footerColor,t.font=s.string,o=0;o<r;++o)t.fillText(i[o],a.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+n.footerSpacing}}drawBackground(e,t,n,i){const{xAlign:r,yAlign:s}=this,{x:o,y:a}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=Mi(i.cornerRadius);t.fillStyle=i.backgroundColor,t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.beginPath(),t.moveTo(o+u,a),"top"===s&&this.drawCaret(e,t,n,i),t.lineTo(o+l-d,a),t.quadraticCurveTo(o+l,a,o+l,a+d),"center"===s&&"right"===r&&this.drawCaret(e,t,n,i),t.lineTo(o+l,a+c-f),t.quadraticCurveTo(o+l,a+c,o+l-f,a+c),"bottom"===s&&this.drawCaret(e,t,n,i),t.lineTo(o+h,a+c),t.quadraticCurveTo(o,a+c,o,a+c-h),"center"===s&&"left"===r&&this.drawCaret(e,t,n,i),t.lineTo(o,a+u),t.quadraticCurveTo(o,a,o+u,a),t.closePath(),t.fill(),i.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,i=n&&n.x,r=n&&n.y;if(i||r){const n=Na[e.position].call(this,this._active,this._eventPosition);if(!n)return;const s=this._size=ja(this,e),o=Object.assign({},n,this._size),a=Va(t,e,o),l=Ga(e,o,a,t);i._to===l.x&&r._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=s.width,this.height=s.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const i={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const s=ki(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(r,e,i,t),_r(e,t.textDirection),r.y+=s.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),Er(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,i=e.map((({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),r=!Xt(n,i),s=this._positionChanged(i,t);(r||s)&&(this._active=i,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,r=this._active||[],s=this._getActiveElements(e,r,t,n),o=this._positionChanged(s,e),a=t||!Xt(s,r)||o;return a&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),a}_getActiveElements(e,t,n,i){const r=this.options;if("mouseout"===e.type)return[];if(!i)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const s=this.chart.getElementsAtEventForMode(e,r.mode,r,n);return r.reverse&&s.reverse(),s}_positionChanged(e,t){const{caretX:n,caretY:i,options:r}=this,s=Na[r.position].call(this,e,t);return!1!==s&&(n!==s.x||i!==s.y)}}var Ka={id:"tooltip",_element:Xa,positioners:Na,afterInit(e,t,n){n&&(e.tooltip=new Xa({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.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:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.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:Wa},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Qa=Object.freeze({__proto__:null,Colors:aa,Decimation:ua,Filler:Ia,Legend:Ma,SubTitle:Da,Title:Pa,Tooltip:Ka});function Ja(e,t,n,i){const r=e.indexOf(t);if(-1===r)return((e,t,n,i)=>("string"==typeof t?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,i);return r!==e.lastIndexOf(t)?n:r}function Za(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}function el(e,t){const n=[],{bounds:i,step:r,min:s,max:o,precision:a,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,h=r||1,f=c-1,{min:p,max:m}=t,g=!jt(s),v=!jt(o),y=!jt(l),b=(m-p)/(u+1);let _,E,w,x,T=_n((m-p)/f/h)*h;if(T<1e-14&&!g&&!v)return[{value:p},{value:m}];x=Math.ceil(m/T)-Math.floor(p/T),x>f&&(T=_n(x*T/f/h)*h),jt(a)||(_=Math.pow(10,a),T=Math.ceil(T*_)/_),"ticks"===i?(E=Math.floor(p/T)*T,w=Math.ceil(m/T)*T):(E=p,w=m),g&&v&&r&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((o-s)/r,T/1e3)?(x=Math.round(Math.min((o-s)/T,c)),T=(o-s)/x,E=s,w=o):y?(E=g?s:E,w=v?o:w,x=l-1,T=(w-E)/x):(x=(w-E)/T,x=bn(x,Math.round(x),T/1e3)?Math.round(x):Math.ceil(x));const S=Math.max(Sn(T),Sn(E));_=Math.pow(10,jt(a)?S:a),E=Math.round(E*_)/_,w=Math.round(w*_)/_;let L=0;for(g&&(d&&E!==s?(n.push({value:s}),E<s&&L++,bn(Math.round((E+L*T)*_)/_,s,tl(s,b,e))&&L++):E<s&&L++);L<x;++L){const e=Math.round((E+L*T)*_)/_;if(v&&e>o)break;n.push({value:e})}return v&&d&&w!==o?n.length&&bn(n[n.length-1].value,o,tl(o,b,e))?n[n.length-1].value=o:n.push({value:o}):v&&w!==o||n.push({value:w}),n}function tl(e,t,{horizontal:n,minRotation:i}){const r=xn(i),s=(n?Math.sin(r):Math.cos(r))||.001,o=.75*t*(""+e).length;return Math.min(t/s,o)}class nl extends eo{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return jt(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this;const s=e=>i=t?i:e,o=e=>r=n?r:e;if(e){const e=yn(i),t=yn(r);e<0&&t<0?o(0):e>0&&t>0&&s(0)}if(i===r){let t=0===r?1:Math.abs(.05*r);o(r+t),e||s(i-t)}this.min=i,this.max=r}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:i}=e;return i?(t=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=el({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&wn(i,this,"value"),e.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const i=(n-t)/Math.max(e.length-1,1)/2;t-=i,n+=i}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return ti(e,this.chart.options.locale,this.options.ticks.format)}}class il extends nl{static id="linear";static defaults={ticks:{callback:ii.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=Gt(e)?e:0,this.max=Gt(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=xn(this.options.ticks.minRotation),i=(e?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,r.lineHeight/i))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}const rl=e=>Math.floor(vn(e)),sl=(e,t)=>Math.pow(10,rl(e)+t);function ol(e){return 1===e/Math.pow(10,rl(e))}function al(e,t,n){const i=Math.pow(10,n),r=Math.floor(e/i);return Math.ceil(t/i)-r}function ll(e,{min:t,max:n}){t=zt(e.min,t);const i=[],r=rl(t);let s=function(e,t){let n=rl(t-e);for(;al(e,t,n)>10;)n++;for(;al(e,t,n)<10;)n--;return Math.min(n,rl(e))}(t,n),o=s<0?Math.pow(10,Math.abs(s)):1;const a=Math.pow(10,s),l=r>s?Math.pow(10,r):0,c=Math.round((t-l)*o)/o,u=Math.floor((t-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,s)),h=zt(e.min,Math.round((l+u+d*Math.pow(10,s))*o)/o);for(;h<n;)i.push({value:h,major:ol(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(s++,d=2,o=s>=0?1:o),h=Math.round((l+u+d*Math.pow(10,s))*o)/o;const f=zt(e.max,h);return i.push({value:f,major:ol(f),significand:d}),i}class cl extends eo{static id="logarithmic";static defaults={ticks:{callback:ii.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const n=nl.prototype.parse.apply(this,[e,t]);if(0!==n)return Gt(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=Gt(e)?Math.max(0,e):null,this.max=Gt(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Gt(this._userMin)&&(this.min=e===sl(this.min,0)?sl(this.min,-1):sl(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let n=this.min,i=this.max;const r=t=>n=e?n:t,s=e=>i=t?i:e;n===i&&(n<=0?(r(1),s(10)):(r(sl(n,-1)),s(sl(i,1)))),n<=0&&r(sl(i,-1)),i<=0&&s(sl(n,1)),this.min=n,this.max=i}buildTicks(){const e=this.options,t=ll({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&wn(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":ti(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=vn(e),this._valueRange=vn(this.max)-vn(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(vn(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function ul(e){const t=e.ticks;if(t.display&&e.display){const e=ki(t.backdropPadding);return Ut(t.font&&t.font.size,ci.font.size)+e.height}return 0}function dl(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function hl(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),i=[],r=[],s=e._pointLabels.length,o=e.options.pointLabels,a=o.centerPointLabels?cn/s:0;for(let d=0;d<s;d++){const s=o.setContext(e.getPointLabelContext(d));r[d]=s.padding;const h=e.getPointPosition(d,e.drawingArea+r[d],a),f=Pi(s.font),p=(l=e.ctx,c=f,u=qt(u=e._pointLabels[d])?u:[u],{w:di(l,c.string,u),h:u.length*c.lineHeight});i[d]=p;const m=On(e.getIndexAngle(d)+a),g=Math.round(Tn(m));fl(n,t,m,dl(g,h.x,p.w,0,180),dl(g,h.y,p.h,90,270))}var l,c,u;e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=function(e,t,n){const i=[],r=e._pointLabels.length,s=e.options,{centerPointLabels:o,display:a}=s.pointLabels,l={extra:ul(s)/2,additionalAngle:o?cn/r:0};let c;for(let s=0;s<r;s++){l.padding=n[s],l.size=t[s];const r=pl(e,s,l);i.push(r),"auto"===a&&(r.visible=ml(r,c),r.visible&&(c=r))}return i}(e,i,r)}function fl(e,t,n,i,r){const s=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let a=0,l=0;i.start<t.l?(a=(t.l-i.start)/s,e.l=Math.min(e.l,t.l-a)):i.end>t.r&&(a=(i.end-t.r)/s,e.r=Math.max(e.r,t.r+a)),r.start<t.t?(l=(t.t-r.start)/o,e.t=Math.min(e.t,t.t-l)):r.end>t.b&&(l=(r.end-t.b)/o,e.b=Math.max(e.b,t.b+l))}function pl(e,t,n){const i=e.drawingArea,{extra:r,additionalAngle:s,padding:o,size:a}=n,l=e.getPointPosition(t,i+r+o,s),c=Math.round(Tn(On(l.angle+pn))),u=function(e,t,n){90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t);return e}(l.y,a.h,c),d=function(e){if(0===e||180===e)return"center";if(e<180)return"left";return"right"}(c),h=function(e,t,n){"right"===n?e-=t:"center"===n&&(e-=t/2);return e}(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+a.w,bottom:u+a.h}}function ml(e,t){if(!t)return!0;const{left:n,top:i,right:r,bottom:s}=e;return!(gi({x:n,y:i},t)||gi({x:n,y:s},t)||gi({x:r,y:i},t)||gi({x:r,y:s},t))}function gl(e,t,n){const{left:i,top:r,right:s,bottom:o}=n,{backdropColor:a}=t;if(!jt(a)){const n=Mi(t.borderRadius),l=ki(t.backdropPadding);e.fillStyle=a;const c=i-l.left,u=r-l.top,d=s-i+l.width,h=o-r+l.height;Object.values(n).some((e=>0!==e))?(e.beginPath(),Ti(e,{x:c,y:u,w:d,h:h,radius:n}),e.fill()):e.fillRect(c,u,d,h)}}function vl(e,t,n,i){const{ctx:r}=e;if(n)r.arc(e.xCenter,e.yCenter,t,0,un);else{let n=e.getPointPosition(0,t);r.moveTo(n.x,n.y);for(let s=1;s<i;s++)n=e.getPointPosition(s,t),r.lineTo(n.x,n.y)}}class yl extends nl{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ii.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=ki(ul(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=Gt(e)&&!isNaN(e)?e:0,this.max=Gt(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/ul(this.options))}generateTickLabels(e){nl.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map(((e,t)=>{const n=Wt(this.options.pointLabels.callback,[e,t],this);return n||0===n?n:""})).filter(((e,t)=>this.chart.getDataVisibility(t)))}fit(){const e=this.options;e.display&&e.pointLabels.display?hl(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,i){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,i))}getIndexAngle(e){return On(e*(un/(this._pointLabels.length||1))+xn(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(jt(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(jt(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const n=t[e];return function(e,t,n){return Di(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}getPointPosition(e,t,n=0){const i=this.getIndexAngle(e)-pn+n;return{x:Math.cos(i)*t+this.xCenter,y:Math.sin(i)*t+this.yCenter,angle:i}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:n,right:i,bottom:r}=this._pointLabelItems[e];return{left:t,top:n,right:i,bottom:r}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const n=this.ctx;n.save(),n.beginPath(),vl(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:n,grid:i,border:r}=t,s=this._pointLabels.length;let o,a,l;if(t.pointLabels.display&&function(e,t){const{ctx:n,options:{pointLabels:i}}=e;for(let r=t-1;r>=0;r--){const t=e._pointLabelItems[r];if(!t.visible)continue;const s=i.setContext(e.getPointLabelContext(r));gl(n,s,t);const o=Pi(s.font),{x:a,y:l,textAlign:c}=t;xi(n,e._pointLabels[r],a,l+o.lineHeight/2,o,{color:s.color,textAlign:c,textBaseline:"middle"})}}(this,s),i.display&&this.ticks.forEach(((e,t)=>{if(0!==t||0===t&&this.min<0){a=this.getDistanceFromCenterForValue(e.value);const n=this.getContext(t),o=i.setContext(n),l=r.setContext(n);!function(e,t,n,i,r){const s=e.ctx,o=t.circular,{color:a,lineWidth:l}=t;!o&&!i||!a||!l||n<0||(s.save(),s.strokeStyle=a,s.lineWidth=l,s.setLineDash(r.dash),s.lineDashOffset=r.dashOffset,s.beginPath(),vl(e,n,o,i),s.closePath(),s.stroke(),s.restore())}(this,o,a,s,l)}})),n.display){for(e.save(),o=s-1;o>=0;o--){const i=n.setContext(this.getPointLabelContext(o)),{color:r,lineWidth:s}=i;s&&r&&(e.lineWidth=s,e.strokeStyle=r,e.setLineDash(i.borderDash),e.lineDashOffset=i.borderDashOffset,a=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),l=this.getPointPosition(o,a),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(l.x,l.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let r,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach(((i,o)=>{if(0===o&&this.min>=0&&!t.reverse)return;const a=n.setContext(this.getContext(o)),l=Pi(a.font);if(r=this.getDistanceFromCenterForValue(this.ticks[o].value),a.showLabelBackdrop){e.font=l.string,s=e.measureText(i.label).width,e.fillStyle=a.backdropColor;const t=ki(a.backdropPadding);e.fillRect(-s/2-t.left,-r-l.size/2-t.top,s+t.width,l.size+t.height)}xi(e,i.label,0,-r,l,{color:a.color,strokeColor:a.textStrokeColor,strokeWidth:a.textStrokeWidth})})),e.restore()}drawTitle(){}}const bl={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}},_l=Object.keys(bl);function El(e,t){return e-t}function wl(e,t){if(jt(t))return null;const n=e._adapter,{parser:i,round:r,isoWeekday:s}=e._parseOpts;let o=t;return"function"==typeof i&&(o=i(o)),Gt(o)||(o="string"==typeof i?n.parse(o,i):n.parse(o)),null===o?null:(r&&(o="week"!==r||!En(s)&&!0!==s?n.startOf(o,r):n.startOf(o,"isoWeek",s)),+o)}function xl(e,t,n,i){const r=_l.length;for(let s=_l.indexOf(e);s<r-1;++s){const e=bl[_l[s]],r=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((n-t)/(r*e.size))<=i)return _l[s]}return _l[r-1]}function Tl(e,t,n){if(n){if(n.length){const{lo:i,hi:r}=Pn(n,t);e[n[i]>=t?n[i]:n[r]]=!0}}else e[t]=!0}function Sl(e,t,n){const i=[],r={},s=t.length;let o,a;for(o=0;o<s;++o)a=t[o],r[a]=o,i.push({value:a,major:!1});return 0!==s&&n?function(e,t,n,i){const r=e._adapter,s=+r.startOf(t[0].value,i),o=t[t.length-1].value;let a,l;for(a=s;a<=o;a=+r.add(a,1,i))l=n[a],l>=0&&(t[l].major=!0);return t}(e,i,r,n):i}class Ll extends eo{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){const n=e.time||(e.time={}),i=this._adapter=new os(e.adapters.date);i.init(t),en(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:wl(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:i,max:r,minDefined:s,maxDefined:o}=this.getUserBounds();function a(e){s||isNaN(e.min)||(i=Math.min(i,e.min)),o||isNaN(e.max)||(r=Math.max(r,e.max))}s&&o||(a(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||a(this.getMinMax(!1))),i=Gt(i)&&!isNaN(i)?i:+t.startOf(Date.now(),n),r=Gt(r)&&!isNaN(r)?r:+t.endOf(Date.now(),n)+1,this.min=Math.min(i,r-1),this.max=Math.max(i+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const r=this.min,s=function(e,t,n){let i=0,r=e.length;for(;i<r&&e[i]<t;)i++;for(;r>i&&e[r-1]>n;)r--;return i>0||r<e.length?e.slice(i,r):e}(i,r,this.max);return this._unit=t.unit||(n.autoSkip?xl(t.minUnit,this.min,this.max,this._getLabelCapacity(r)):function(e,t,n,i,r){for(let s=_l.length-1;s>=_l.indexOf(n);s--){const n=_l[s];if(bl[n].common&&e._adapter.diff(r,i,n)>=t-1)return n}return _l[n?_l.indexOf(n):0]}(this,s.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(let t=_l.indexOf(e)+1,n=_l.length;t<n;++t)if(bl[_l[t]].common)return _l[t]}(this._unit):void 0,this.initOffsets(i),e.reverse&&s.reverse(),Sl(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((e=>+e.value)))}initOffsets(e=[]){let t,n,i=0,r=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),i=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,n=this.getDecimalForValue(e[e.length-1]),r=1===e.length?n:(n-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;i=Mn(i,0,s),r=Mn(r,0,s),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){const e=this._adapter,t=this.min,n=this.max,i=this.options,r=i.time,s=r.unit||xl(r.minUnit,t,n,this._getLabelCapacity(t)),o=Ut(i.ticks.stepSize,1),a="week"===s&&r.isoWeekday,l=En(a)||!0===a,c={};let u,d,h=t;if(l&&(h=+e.startOf(h,"isoWeek",a)),h=+e.startOf(h,l?"day":s),e.diff(n,t,s)>1e5*o)throw new Error(t+" and "+n+" are too far apart with stepSize of "+o+" "+s);const f="data"===i.ticks.source&&this.getDataTimestamps();for(u=h,d=0;u<n;u=+e.add(u,o,s),d++)Tl(c,u,f);return u!==n&&"ticks"!==i.bounds&&1!==d||Tl(c,u,f),Object.keys(c).sort(El).map((e=>+e))}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){const n=this.options.time.displayFormats,i=this._unit,r=t||n[i];return this._adapter.format(e,r)}_tickFormatFunction(e,t,n,i){const r=this.options,s=r.ticks.callback;if(s)return Wt(s,[e,t,n],this);const o=r.time.displayFormats,a=this._unit,l=this._majorUnit,c=a&&o[a],u=l&&o[l],d=n[t],h=l&&u&&d&&d.major;return this._adapter.format(e,i||(h?u:c))}generateTickLabels(e){let t,n,i;for(t=0,n=e.length;t<n;
vendor: 4,815 bytes, line 2
2++t)i=e[t],i.label=this._tickFormatFunction(i.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,n=this.ctx.measureText(e).width,i=xn(this.isHorizontal()?t.maxRotation:t.minRotation),r=Math.cos(i),s=Math.sin(i),o=this._resolveTickFontOptions(0).size;return{w:n*r+o*s,h:n*s+o*r}}_getLabelCapacity(e){const t=this.options.time,n=t.displayFormats,i=n[t.unit]||n.millisecond,r=this._tickFormatFunction(e,0,Sl(this,[e],this._majorUnit),i),s=this._getLabelSize(r),o=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return o>0?o:1}getDataTimestamps(){let e,t,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(e=0,t=i.length;e<t;++e)n=n.concat(i[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const e=this._cache.labels||[];let t,n;if(e.length)return e;const i=this.getLabels();for(t=0,n=i.length;t<n;++t)e.push(wl(this,i[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Fn(e.sort(El))}}function Il(e,t,n){let i,r,s,o,a=0,l=e.length-1;n?(t>=e[a].pos&&t<=e[l].pos&&({lo:a,hi:l}=Rn(e,"pos",t)),({pos:i,time:s}=e[a]),({pos:r,time:o}=e[l])):(t>=e[a].time&&t<=e[l].time&&({lo:a,hi:l}=Rn(e,"time",t)),({time:i,pos:s}=e[a]),({time:r,pos:o}=e[l]));const c=r-i;return c?s+(o-s)*(t-i)/c:s}var Cl=Object.freeze({__proto__:null,CategoryScale:class extends eo{static id="category";static defaults={ticks:{callback:Za}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:i}of t)e[n]===i&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(jt(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:Mn(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:Ja(n,e,Ut(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===e&&t===r.length-1?r:r.slice(e,t+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)i.push({value:n});return i}getLabelForValue(e){return Za.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:il,LogarithmicScale:cl,RadialLinearScale:yl,TimeScale:Ll,TimeSeriesScale:class extends Ll{static id="timeseries";static defaults=Ll.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=Il(t,this.min),this._tableRange=Il(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:n}=this,i=[],r=[];let s,o,a,l,c;for(s=0,o=e.length;s<o;++s)l=e[s],l>=t&&l<=n&&i.push(l);if(i.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(s=0,o=i.length;s<o;++s)c=i[s+1],a=i[s-1],l=i[s],Math.round((c+a)/2)!==l&&r.push({time:l,pos:s/(o-1)});return r}_generate(){const e=this.min,t=this.max;let n=super.getDataTimestamps();return n.includes(e)&&n.length||n.splice(0,0,e),n.includes(t)&&1!==n.length||n.push(t),n.sort(((e,t)=>e-t))}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(Il(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return Il(this._table,n*this._tableRange+this._minPos,!0)}}});const Ol=[is,ea,Qa,Cl];ko.register(...Ol);const Al="cmp-graph";s(`.${Al}`,class extends e{populateTable(){let e='<th scope="col">Value</th>',t=`<th scope="row">${this.graphUnitHeader}</th>`;
2this.graphData.labels.forEach((t=>{e+=`<th scope='col'>${t}</th>`})),this.graphData.datasets[0].data.forEach((e=>{t+=`<td>${e}</td>`})),this.elements.tableHeaderRow.innerHTML=e,this.elements.tableDataRow.innerHTML=t}isBarGraph(){return/bar|horizontalBar/.test(this.graphType)}setUpGraph(){const e={...this.isBarGraph()&&{indexAxis:"bar"===this.graphType?"x":"y"},plugins:{legend:{display:!this.isBarGraph()},title:{display:!0,text:this.graphData?.datasets?.[0]?.label},tooltip:{enabled:!0}},scales:{y:{display:this.isBarGraph(),beginAtZero:!0}}};this.chart=new ko(this.elements.graph,{type:"horizontalBar"===this.graphType?"bar":this.graphType,data:this.graphData,options:e})}init(){this.elements={graph:this.element.querySelector(`.${Al}__container`),tableHeaderRow:this.element.querySelector(`.${Al}__table-header-row`),tableDataRow:this.element.querySelector(`.${Al}__table-data-row`)},this.graphType=this.element.dataset.graphType?this.element.dataset.graphType:"bar",this.graphData=this.element.dataset.graphJson?JSON.parse(this.element.dataset.graphJson):null,this.graphUnitHeader=this.element.dataset.graphUnitHeader,this.chart=void 0,this.graphData&&0!==this.graphData.length&&(this.setUpGraph(),this.populateTable())}});const Ml="cmp-hero-banner";s(`.${Ml}`,class extends e{toggleButtons(){this.elements.pauseButton.classList.toggle("hide"),this.elements.playButton.classList.toggle("hide")}pauseHandler(e){e.toggleButtons(),e.elements.videoBackground.pause(),e.elements.playButton.focus()}playHandler(e){e.toggleButtons(),e.elements.videoBackground.play(),e.elements.pauseButton.focus()}addEventListeners(){const e=this;e.elements.pauseButton?.addEventListener("click",(()=>e.pauseHandler(e))),e.elements.playButton?.addEventListener("click",(()=>e.playHandler(e)))}init(){if(this.elements={container:this.element.querySelector(`.${Ml}__container.cmp-hero-banner__bg-img`),pauseButton:this.element.querySelector(`.${Ml}__video-control.pause`),playButton:this.element.querySelector(`.${Ml}__video-control.play`),videoBackground:this.element.querySelector(`.${Ml}__background-video`)},this.elements.container){const{backgroundImage:e}=this.elements.container.dataset;"true"===e&&new B(this.elements.container).init()}this.addEventListeners()}});const kl="cmp-iframe";s(`.${kl}`,class extends e{getInitialData(){if(!this.elements.container.dataset)return;const{mobileWidth:e,mobileHeight:t,tabletWidth:n,tabletHeight:i,desktopWidth:r,desktopHeight:s}=this.elements.container.dataset;this.mobileWidth=e||null,this.mobileHeight=t||null,this.tabletWidth=n||null,this.tabletHeight=i||null,this.desktopWidth=r||null,this.desktopHeight=s||null}updateIframe(){const e=this.windowWidth();e<=o?(this.maxWidth=this.mobileWidth,this.height=this.mobileHeight):e<=a?(this.maxWidth=this.tabletWidth,this.height=this.tabletHeight):(this.maxWidth=this.desktopWidth,this.height=this.desktopHeight),null!==this.height&&""!==this.height?(this.elements.container.classList.remove("noheight"),this.element.style.height=`${this.height}px`):this.elements.container.classList.add("noheight"),this.element.style.maxWidth=this.maxWidth.indexOf("%")>-1?`${this.maxWidth}`:`${this.maxWidth}px`,this.updateIframeEditMode()}updateIframeEditMode(){if(!_())return;this.elements.container.style.display="block",this.elements.editMessage.style.display="none";const e=this.element.getBoundingClientRect().height,t=this.element.getBoundingClientRect().width;this.elements.editWidth.innerHTML=t,this.elements.editHeight.innerHTML=e,(e<25||t<25)&&(this.elements.editMessage.style.display="block",this.elements.container.style.display="none",this.element.style.height="0px",this.element.style.maxWidth="100%")}addEventListeners(){window.addEventListener("resize",O((()=>{this.updateIframe()})))}init(){this.windowWidth=()=>Math.max(document.documentElement.clientWidth,window.innerWidth||0),this.maxWidth=null,this.height=null,this.mobileWidth=null,this.mobileHeight=null,this.tabletWidth=null,this.tabletHeight=null,this.desktopWidth=null,this.desktopHeight=null,this.elements={container:this.element.querySelector(`.${kl}__container`),editMessage:this.element.querySelector(`.${kl}__small-edit`),editWidth:this.element.querySelector(`.${kl}__small-width`),editHeight:this.element.querySelector(`.${kl}__small-height`)},this.getInitialData(),this.addEventListeners(),this.updateIframe()}});s(".cmp-image",class extends e{init(){this.element.classList.contains("cq-placeholder")||new B(this.element).init()}});const Pl="cmp-languagenavigation",Rl=`${Pl}__nav--active`;s(`.${Pl}`,class extends e{setupLanguageNav(){const e=this.elements.languageNavItems.length||1;this.languages=e;const t=this.elements.languageNavActiveItem();if(t){const e=t.textContent;this.elements.dropdownTitleText.textContent=e}else this.elements.dropdownTitleText.textContent=this.defaultTitle}isLanguageNavOpen(){return this.elements.languageNav.classList.contains(Rl)}toggleNav(){this.elements.languageNav.classList.toggle(Rl),this.elements.dropdownIcon.classList.toggle("fa-angle-up"),this.elements.dropdownIcon.classList.toggle("fa-angle-down");let e=-1;this.isLanguageNavOpen()?(this.elements.dropdownTitle.setAttribute("aria-expanded","true"),e=0):this.elements.dropdownTitle.removeAttribute("aria-expanded"),[...this.elements.languageNavItems].map((t=>t.querySelector("a").setAttribute("tabindex",e)))}addEventListeners(){const e=this,t=Array.prototype.slice.call(this.elements.languageNavItems);e.languages>1&&(this.elements.dropdownTitle.addEventListener("click",(function(t){e.toggleNav(),e.isLanguageNavOpen()&&(t.preventDefault(),document.querySelector(`.${Pl}__item--active a`).focus())})),document.addEventListener("click",(function(t){!e.element.parentElement.contains(t.target)&&e.isLanguageNavOpen()&&e.toggleNav()})),this.elements.languageNav.addEventListener("keydown",(function(n){const i=n.key.toLowerCase();if(!1===/tab|escape|arrowdown|arrowup/.test(i))return;if(/escape/.test(i))return e.toggleNav(),void e.elements.dropdownTitle.focus();const r=n.target.parentElement,s=t.indexOf(r),o=/arrowdown|tab/.test(i)?1:-1,a=t.length,l=(s+a+o)%a;/tab/.test(i)&&s===a-1?e.toggleNav():(t[l].querySelector("a").focus(),n.preventDefault())})))}init(){this.elements={languageNav:this.element.querySelector(`.${Pl}__nav`),languageNavItems:this.element.getElementsByClassName(`${Pl}__item`),languageNavActiveItem:()=>this.element.querySelector(`.${Pl}__item--active`),dropdownIcon:this.element.parentElement.querySelector(`.${Pl}__dropdown-title i`),dropdownTitle:this.element.parentElement.querySelector(`.${Pl}__dropdown-title`),dropdownTitleText:this.element.parentElement.querySelector(`.${Pl}__dropdown-title-text`)},this.defaultTitle="English",this.languages=1,this.setupLanguageNav(),this.addEventListeners()}});s(".cmp-media-contact",class extends e{addEventListeners(){const e=this;e.elements.toggleHeader&&!_()&&this.elements.isSticky()&&e.elements.toggleHeader.addEventListener("click",(()=>{this.elements.buttonIcon.classList.toggle("fa-minus"),this.elements.buttonIcon.classList.toggle("fa-plus"),e.element.classList.toggle("cmp-media-contact--open"),e.element.classList.contains("cmp-media-contact--open")?(this.elements.cardContainer.style.display="block",this.elements.cardContainer.setAttribute("aria-hidden","false"),this.elements.buttonIcon.setAttribute("aria-expanded","true"),this.elements.buttonIcon.setAttribute("aria-label","Collapse media contact")):(this.elements.cardContainer.style.display="none",this.elements.cardContainer.setAttribute("aria-hidden","true"),this.elements.buttonIcon.setAttribute("aria-expanded","fal
2se"),this.elements.buttonIcon.setAttribute("aria-label","Expand media contact"))}))}init(){this.elements={cardContainer:this.element.querySelector(".cmp-media-contact__content"),contentHeight:this.element.querySelector(".cmp-media-contact__content").scrollHeight,buttonIcon:this.element.querySelector(".cmp-media-contact__toggle"),toggleHeader:this.element.querySelector(".cmp-media-contact__header"),isSticky:()=>this.element.classList.contains("cmp-media-contact__sticky")},this.addEventListeners()}});const Dl="cmp-megamenu";s(`.${Dl}`,class extends e{addClasses(){[...this.elements.firstLevelLinks].map((e=>{const t=e.getElementsByClassName(`${Dl}__group`);return t.length>0&&[...t].map((()=>e.classList.add(`${Dl}__item--dropdown`)))})),this.elements.megamenuColumns.forEach((e=>{if(null===e.querySelector("ul")){const t=e.parentElement,n=[...t.children].filter((e=>null!==e.querySelector("ul"))).length;t.classList.add(`${Dl}--${n}-col`),e.classList.add(`${Dl}--hidden`)}return!1}))}positionMenuOnResize(){if(!0===window.parent.location.href.includes("editor.html"))return;const e=document.querySelector(".cmp-experiencefragment--header .notification"),t=document.querySelector(".cmp-header"),n=this.element.querySelectorAll(`.${Dl}__panel:not(:has(.${Dl}--1-col))`),i=document.querySelector("html");if(e){const r=setInterval((()=>{if(0!==e.getBoundingClientRect().height){const s=e.getBoundingClientRect().height+t.getBoundingClientRect().height;i.style.scrollPaddingTop=`${s+10}px`,window.matchMedia(`(min-width: ${o}px)`).matches&&(n.forEach((e=>{e.style.top=`${s}px`})),clearInterval(r))}}),100);window.addEventListener("resize",(()=>{n.forEach((n=>{this.menuTopBreakpointResize(e,t,n)}))}))}const{length:r}=this.elements.firstLevelLinksActive,s=this.elements.firstLevelLinksActive[r-1],a=this.elements.firstLevelLinksActive[r-2];if(s?.querySelector(`.${Dl}--1-col`)){const e=s.querySelector(`.${Dl}__panel`);window.matchMedia(`(min-width: ${o}px)`).matches&&(e.style.left=`-${400-s.offsetWidth}px`),window.addEventListener("resize",(()=>{this.menuColumnBreakpointResize(s,e)}))}if(a?.querySelector(`.${Dl}--1-col`)){const e=a.querySelector(`.${Dl}__panel`);window.matchMedia(`(min-width: ${o}px)`).matches&&(e.style.left=`-${400-a.offsetWidth}px`),window.addEventListener("resize",(()=>{this.menuColumnBreakpointResize(a,e)}))}}menuTopBreakpointResize(e,t,n){const i=e.getBoundingClientRect().height+t.getBoundingClientRect().height,r=n,s=document.querySelector("html");window.matchMedia(`(min-width: ${o}px)`).matches||window.matchMedia(`(min-width: ${a}px)`).matches||window.matchMedia(`(min-width: ${l}px)`).matches?(r.style.top=`${i}px`,s.style.scrollPaddingTop=`${i+10}px`):(r.removeAttribute("style"),s.style.scrollPaddingTop=`${i+10}px`)}menuColumnBreakpointResize(e,t){const n=400-e.offsetWidth,i=t;window.matchMedia(`(min-width: ${o}px)`).matches||window.matchMedia(`(min-width: ${a}px)`).matches||window.matchMedia(`(min-width: ${l}px)`).matches?i.style.left=`-${n}px`:i.removeAttribute("style")}formatAttributes(){[...this.elements.menuToggles].forEach((e=>{const t=e,n=e.textContent.trim().toLowerCase().replaceAll(" ","-");t.id=`megamenu-${n}`;e.parentElement.nextElementSibling.setAttribute("aria-labelledby",`megamenu-${n}`)}))}toggleDropdown(e,t){const n=e.querySelector(`.${Dl}__panel`),i=e.querySelector(`.${Dl}__toggle-btn`);n&&(n.classList.toggle("open"),t?n.querySelector("a").focus():n.querySelector("a").blur()),i&&("true"===i.getAttribute("aria-expanded")?(e.classList.remove(`${Dl}__item--active`),i.setAttribute("aria-expanded","false"),i.classList.remove("open")):"false"===i.getAttribute("aria-expanded")&&(e.classList.add(`${Dl}__item--active`),i.setAttribute("aria-expanded","true"),i.classList.add("open")))}addEventListeners(){const e=this;function t(){[...e.elements.firstLevelLinks].forEach((e=>{e.classList.remove(`${Dl}__item--active`);const t=e.querySelector(`.${Dl}__panel`),n=e.querySelector(`.${Dl}__toggle-btn`);t&&t.classList.remove("open"),n&&(n.classList.remove("open"),n.setAttribute("aria-expanded","false"))}))}this.elements.isHeader()&&(document.addEventListener("keydown",(e=>{"Escape"===e.key&&t()}
2)),[...this.elements.firstLevelLinks].forEach((e=>{const n=e.querySelector(`.${Dl}__toggle-btn`);n&&n.addEventListener("click",(()=>{if(e.classList.contains(`${Dl}__item--active`))t();else{[...this.elements.firstLevelLinks].some((e=>e.classList.contains(`${Dl}__item--active`)))?(t(),this.toggleDropdown(e,!1)):this.toggleDropdown(e,!1)}}))})),this.elements.mainEl&&this.elements.mainEl.addEventListener("click",(()=>{t()})),document.addEventListener("click",(e=>{x()&&!0===e.target.classList.contains("cmp-header")&&this.elements.hamburgerToggle.click()})))}init(){this.elements={navBar:document.querySelector(".cmp-header__navbar"),hamburgerToggle:document.querySelector(".hamburger-wrapper"),firstLevelLinks:this.element.getElementsByClassName(`${Dl}__item--level-0`),firstLevelLinksActive:this.element.getElementsByClassName(`${Dl}__item--level-0 ${Dl}__item--dropdown`),menuToggles:this.element.querySelectorAll(`.${Dl}__toggle-btn`),header:document.querySelector(".cmp-header")||document.querySelector(".cmp-commerce-header"),headerLogo:document.querySelector(".cmp-header__logo")||document.querySelector(".cmp-commerce-header__logo"),isHeader:()=>this.element===document.querySelector(`.cmp-header .${Dl}`)||this.element===document.querySelector(`.cmp-commerce-header .${Dl}`),mainEl:document.querySelector("main"),megamenuColumns:this.element.querySelectorAll(`.${Dl}-item__links-buttons .${Dl}-item__links > div`)},this.addClasses(),this.positionMenuOnResize(),this.formatAttributes(),this.addEventListeners()}});const Nl=(()=>{const e=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'];class t{constructor({targetModal:e,triggers:t=[],onShow:n=(()=>{}),onClose:i=(()=>{}),openTrigger:r="data-micromodal-trigger",closeTrigger:s="data-micromodal-close",openClass:o="is-open",disableScroll:a=!1,disableFocus:l=!1,awaitCloseAnimation:c=!1,awaitOpenAnimation:u=!1,debugMode:d=!1}){this.modal=document.getElementById(e),this.config={debugMode:d,disableScroll:a,openTrigger:r,closeTrigger:s,openClass:o,onShow:n,onClose:i,awaitCloseAnimation:c,awaitOpenAnimation:u,disableFocus:l},t.length>0&&this.registerTriggers(t),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}registerTriggers(e){e.filter(Boolean).forEach((e=>{e.addEventListener("click",(e=>this.showModal(e)))}))}showModal(e=null){if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),!(document.querySelectorAll(".cmp-modal__modal-container.is-open").length>0)){if(this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){const e=()=>{this.modal.removeEventListener("animationend",e,!1),this.setFocusToFirstNode()};this.modal.addEventListener("animationend",e,!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,e)}}closeModal(e=null){const t=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation){const e=this.config.openClass;this.modal.addEventListener("animationend",(function n(){t.classList.remove(e),t.removeEventListener("animationend",n,!1)}),!1)}else t.classList.remove(this.config.openClass)}closeModalById(e){this.modal=document.getElementById(e),this.modal&&this.closeModal()}scrollBehaviour(e){if(!this.config.disableScroll)return;const t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}addEventListeners(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}removeEventListeners(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}onClick(e){(e.target.hasAttribute(this.config.closeTrigger)||e.target.parentNode.hasAttribute(this.config.closeTrigger))&&(e.preventDefault(),e.stopPropagation(),this.closeModal(e))}
2onKeydown(e){27===e.keyCode&&this.closeModal(e),9===e.keyCode&&this.retainFocus(e)}getFocusableNodes(){const t=this.modal.querySelectorAll(e);return Array.prototype.slice.call(t)}setFocusToFirstNode(){if(this.config.disableFocus)return;const e=this.getFocusableNodes();if(0===e.length)return;const t=e.filter((e=>!e.hasAttribute(this.config.closeTrigger)));t.length>0&&t[0].focus(),0===t.length&&e[0].focus()}retainFocus(e){let t=this.getFocusableNodes();if(0!==t.length)if(t=t.filter((e=>null!==e.offsetParent)),this.modal.contains(document.activeElement)){const n=t.indexOf(document.activeElement);e.shiftKey&&0===n&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&n===t.length-1&&(t[0].focus(),e.preventDefault())}else t[0].focus()}}let n=null;const i=e=>{if(!document.getElementById(e))return console.warn(`MicroModal: ❗Seems like you have missed %c'${e}'`,"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",`<div class="modal" id="${e}"></div>`),!1},r=(e,t)=>{if((e=>{if(e.length<=0)console.warn("MicroModal: ❗Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<a href="#" data-micromodal-trigger="my-modal"></a>')})(e),!t)return!0;for(const e in t)i(e);return!0};return{init:e=>{const i=Object.assign({},{openTrigger:"data-micromodal-trigger"},e),s=Array.prototype.slice.call(document.querySelectorAll(`[${i.openTrigger}]`)),o=((e,t)=>{const n={};return e.forEach((e=>{const i=e.attributes[t].value;void 0===n[i]&&(n[i]=[]),n[i].push(e)})),n})(s,i.openTrigger);if(!0!==i.debugMode||!1!==r(s,o))for(const e in o){const r=o[e];i.targetModal=e,i.triggers=r,n=new t(i)}},show:(e,r)=>{const s=r||{};s.targetModal=e,!0===s.debugMode&&!1===i(e)||(n=new t(s),n.showModal())},close:e=>{e?n.closeModalById(e):n.closeModal()}}})();var $l=Nl;"undefined"!=typeof window&&(window.MicroModal=Nl);const Fl="cmp-modal";s(`.${Fl}`,class extends e{showModal(e){this.modalParentNode=e.parentNode;const t=this.modalParentNode.removeChild(e);document.body.appendChild(t),this.scrollY=window.scrollY,document.body.style.top=`-${this.scrollY}px`,document.body.style.scrollBehavior="auto",document.documentElement.style.scrollBehavior="auto",document.body.classList.add("no-scroll"),document.documentElement.classList.add("no-scroll")}closeModal(e){const t=this;document.body.style.top="",document.body.classList.remove("no-scroll"),document.documentElement.classList.remove("no-scroll"),window.scroll(0,parseInt(t.scrollY||"0",10)),document.body.removeAttribute("style"),document.documentElement.removeAttribute("style"),"author"!==t.type&&(t.elements.contentContainer.innerHTML="");const n=document.body.removeChild(e);t.modalParentNode.appendChild(n),window.location.hash=""}fetchData(){const e=this,t=this.elements.modalContainer.id,n=this.elements.contentContainer,i=new XMLHttpRequest;"author"===e.type?$l.show(t,{onShow:t=>e.showModal(t),onClose:t=>e.closeModal(t),closeTrigger:"data-modal-close",disableScroll:!1,disableFocus:!1}):(i.onreadystatechange=function(){4===this.readyState&&200===this.status&&(n.innerHTML=this.responseText,$l.show(t,{onShow:t=>e.showModal(t),onClose:t=>e.closeModal(t),closeTrigger:"data-modal-close",disableScroll:!1,disableFocus:!1}))},i.open("GET",this.contentUrl,!0),i.send())}addEventListeners(){const e=this;const t=document.querySelectorAll(`a[href*="#${e.modalId}"]`);for(let n=0;n<t.length;n+=1){t[n].addEventListener("click",(t=>{t.preventDefault(),e.externalAcknowledgment&&(e.elements.acceptButton.href=t.target.closest("a").href.replace(`${e.modalId}`,"")),("author"===e.type||e.contentUrl)&&e.fetchData(e.contentUrl)}))}window.addEventListener("hashchange",(function(t){t.preventDefault(),""!==window.location.hash&&"#"!==window.location.hash&&window.location.hash===`#${e.modalId}`&&e.contentUrl&&e.fetchData(e.contentUrl)})),document.addEventListener("DOMContentLoaded",(function(t){t.preventDefault(),e.isModalOn&&e.contentUrl&&e.fetchData(e.contentUrl)}))}init(){const e=window.location.hash.substr(1).split("?")[0],t=document.querySelectorAll("div[data-modal-show='true']");this.elements={modalContainer:this.element.querySelector(`.${Fl}__modal-container`),contentContainer:this.element.querySelector(`.${Fl}__content-container`),closeButton:this.element.querySelector(`.${Fl}__close-button`),acceptButton:this.element.querySelector(`.${Fl}__accept-button`)},this.modalId=this.elements.modalContainer.id,this.isModalOn=this.modalId===e&&this.modalId===t[0]?.id,this.type=this.elements.modalContainer.dataset.type,this.contentUrl=this.elements.modalContainer.dataset.contentUrl,this.externalAcknowledgment=this.elements.modalContainer.hasAttribute("data-external-acknowledgment"),this.addEventListeners()}});const Bl="cmp-navigation";s(`.${Bl}`,class extends e{addClasses(){[...this.elements.firstLevelLinks,...this.elements.secondLevelLinks].map((e=>{const t=e.getElementsByClassName(`${Bl}__group`);return t.length>0&&[...t].map((()=>e.classList.add(`${Bl}__item--dropdown`)))}))}addToggleButtons(){this.elements.isHeader()&&[...this.elements.firstLevelLinks].map((e=>{if(!e.classList.contains(`${Bl}__item--dropdown`))return!1;const t=this,n=e.querySelector(`.${Bl}__item-link`).innerText,i=document.createElement("button");i.classList.add(`${Bl}
2__toggle-btn`),i.setAttribute("aria-expanded","false"),i.setAttribute("title",`${n} menu`);const r=e.querySelector(`.${Bl}__group`);return e.insertBefore(i,r),i.addEventListener("click",(n=>{n.preventDefault(),t.toggleDropdown(e,!0)})),!0}))}toggleDropdown(e,t){const n=e.querySelector(`.${Bl}__group`),i=e.querySelector(`.${Bl}__toggle-btn`);n.classList.toggle("open"),i.classList.toggle("open"),"true"===i.getAttribute("aria-expanded")?(i.setAttribute("aria-expanded","false"),i.element.classList.remove("open")):"false"===i.getAttribute("aria-expanded")&&(i.setAttribute("aria-expanded","true"),i.element.classList.add("open")),t?n.querySelector("a").focus():n.querySelector("a").blur()}addCloseIcon(){this.elements.isHeader()&&[...this.elements.firstLevelLinksActive].map((e=>{const t=document.createElement("i");return t.classList.add(`${Bl}__group__icon--close`,"fa","fa-times"),e.querySelector(`.${Bl}__group`).appendChild(t),!0}))}checkCollapse(){this.elements.header?.classList.contains("collapsed")&&[...this.elements.firstLevelLinksActive].forEach((e=>{e.querySelector(`.${Bl}__group`).style.marginLeft=""}))}assignActiveLeftNav(){const e=window.location.href.split("?wcmmode=disabled")[0],t=[...this.elements.leftNavLinks].filter((t=>t.href===e));0!==t.length&&t[0].classList.add("active-left-nav")}addEventListeners(){const e=this,t=`(min-width: ${o}px)`;function n(){!e.elements.header.classList.contains("collapsed")&&window.matchMedia(t).matches&&e.toggleDropdown(this,!1)}function i(){if(!e.elements.header.classList.contains("collapsed")&&window.matchMedia(t).matches){this.querySelector(`.${Bl}__group`).classList.contains("open")&&e.toggleDropdown(this,!1)}}function r(t){const n=t.target.closest(`.${Bl}__item--level-0`);if(n){const i=n.querySelector(`.${Bl}__group`).querySelectorAll(`.${Bl}__item-link`);i&&Array.from(i).indexOf(t.target)+1===Array.from(i).length&&e.toggleDropdown(n,!1)}}function s(t){const n=t.target.closest(`.${Bl}__item--level-0`);e.toggleDropdown(n,!1)}this.elements.isHeader()&&([...this.elements.firstLevelLinksActive].map((e=>{const t=e.querySelector(`.${Bl}__group`).querySelectorAll(`.${Bl}__item-link`);return e.addEventListener("mouseenter",n),e.addEventListener("mouseleave",i),t.forEach((e=>e.addEventListener("blur",r))),!0})),[...this.elements.megaMenuCloseIcon].forEach((e=>e.addEventListener("click",s))))}init(){this.elements={firstLevelLinks:this.element.getElementsByClassName(`${Bl}__item--level-0`),firstLevelLinksActive:this.element.getElementsByClassName(`${Bl}__item--level-0 ${Bl}__item--dropdown`),header:document.querySelector(".cmp-header")||document.querySelector(".cmp-commerce-header"),headerLogo:document.querySelector(".cmp-header__logo")||document.querySelector(".cmp-commerce-header__logo"),megaMenuCloseIcon:this.element.getElementsByClassName(`${Bl}__group__icon--close`),secondLevelLinks:this.element.getElementsByClassName(`${Bl}__item--level-1`),isHeader:()=>this.element===document.querySelector(".cmp-header .cmp-navigation")||this.element===document.querySelector(".cmp-commerce-header .cmp-navigation"),leftNavigation:document.querySelector(`.${Bl}--left-nav`),leftNavLinks:this.element.querySelectorAll(`.${Bl}--left-nav a`)},this.addClasses(),this.addCloseIcon(),this.addToggleButtons(),this.checkCollapse(),this.addEventListeners()}});const jl="cmp-notification";s(`.${jl}`,class extends e{closeNotification(){const e=this.elements.notificationContent.parentNode.id;sessionStorage.setItem(e,JSON.stringify(new Date)),this.elements.notificationContent.parentNode.classList.add("hidden"),this.fireNotificationDismissalEvent()}showNotification(){null===sessionStorage.getItem(this.element.id)&&this.element.classList.remove("hidden")}fireNotificationDismissalEvent(){this.isDataLayerEnabled&&this.isDataLayerEnabled&&this.dataLayer.push({event:"dismissNotification",eventInfo:{id:this.notificationId}})}languageChange(){this.elements.languageChangeButton.classList.toggle("toggle-active"),"none"===this.elements.expandableArea.style.display?(this.elements.expandableArea.style.display="block",this.elements.languageChangeButton.innerText="English",this.elements.languageChangeButton.setAttribute("aria-expanded","true"),this.elements.languageChangeButton.setAttribute("lang","en")):(this.elements.expandableArea.style.display="none",this.elements.languageChangeButton.innerText="Español",this.elements.languageChangeButton.setAttribute("aria-expanded","fal
2se"),this.elements.languageChangeButton.setAttribute("lang","es"))}addEventListeners(){this.elements.button&&this.elements.button.addEventListener("click",this.closeNotification.bind(this)),this.elements.languageChangeButton&&this.elements.languageChangeButton.addEventListener("click",this.languageChange.bind(this))}init(){this.elements={button:this.element.querySelector(`.${jl}__closeBtn`),text:this.element.querySelector(`.${jl}__text`),notificationContent:this.element.querySelector(`.${jl}__content`),expandableArea:this.element.querySelector(`.${jl}__text-es`),languageChangeButton:this.element.querySelector(`.${jl}__language-toggle-button`)},this.isDataLayerEnabled=document.body.hasAttribute("data-cmp-data-layer-enabled"),this.dataLayer=window.adobeDataLayer||[],this.notificationId=this.elements.notificationContent.parentNode.id,this.showNotification(),this.addEventListeners()}});n(47);const ql="cmp-search-results",Vl=`${ql}--display-none`;let Gl="";s(`.${ql}`,class extends e{addEventListener=()=>{this.elements.activePageVal.addEventListener("click",(e=>{this.activePage=e.target&&e.target.matches(`a.${ql}__active-page`)?parseInt(e.target.getAttribute(`${ql}-data-page`),10):this.activePage,this.activePage=e.target&&(e.target.parentElement.matches(`a.${ql}__jump-first`)||e.target.matches(`a.${ql}__jump-first`))?1:this.activePage,this.activePage=e.target&&(e.target.parentElement.matches(`a.${ql}__jump-last`)||e.target.matches(`a.${ql}__jump-last`))?Gl:this.activePage,this.activePage=e.target&&e.target.parentElement.matches(`.${ql}__left-icon`)?this.activePage-=1:this.activePage,this.activePage=e.target&&e.target.parentElement.matches(`.${ql}__right-icon`)?this.activePage+=1:this.activePage,this.selectedPage()})),this.elements.layoutView.addEventListener("click",(e=>{e.target&&(e.target.matches(`.${ql}__list-layout`)||e.target.parentElement.matches(`.${ql}__list-layout`))&&this.renderLayout("list"),e.target&&(e.target.matches(`.${ql}__card-layout`)||e.target.parentElement.matches(`.${ql}__card-layout`))&&this.renderLayout("card")})),this.elements.sortSelect.addEventListener("change",(e=>{this.sortCriteria=e.target.value,this.updateUrl("sort",this.sortCriteria,!0)})),this.elements.facetView.addEventListener("click",(e=>{if(e.target&&e.target.matches(`.${ql}__dynamic-facet-checkbox`)){const e=[],t=this.elements.facetView.querySelectorAll(`.${ql}__dynamic-facet-list`);[].filter.call(t,(t=>{t.querySelector(`.${ql}__dynamic-facet-checkbox`).checked&&e.push({value:t.querySelector(`.${ql}__facet-span-label`).innerHTML,state:"selected",data:t.querySelector(`.${ql}__dynamic-facet-checkbox`).dataset.facetFieldGroup})}));const n=new Map,i=new Map;e.forEach((e=>{const t=e.data,r=n.has(t),s=r?n.get(t):[e.value];r&&s.push(e.value),n.set(t,s);const o=i.has(t),a=o?i.get(t):[e];o&&a.push(e),i.set(t,a)}));const r=this.facets.map((e=>{const t=e.field;return{...e,selectedValues:n.get(t),currentValues:i.get(t)}}));r.forEach((e=>{const t=e.selectedValues;t?this.updateUrl(e.field,t,!1):this.updateUrl(e.field,"",!1)})),this.facets=r,this.firstResult=0,this.activePage=1,this.updateUrl("page",1,!0),this.searchResult(this.searchStringValue)}if(e.target&&e.target.parentElement.matches(`.${ql}__facet-header`)&&!e.target.matches(`.${ql}__facet-clear-btn`)&&A(e.target.parentElement),e.target&&(e.target.classList.contains("cmp-search-results__facet-cancel-btn")||e.target.classList.contains("cmp-search-results__facet-appl
2y-btn")||e.target.parentElement.matches(`.${ql}__facet-modal-close-button`))&&this.hideMobileFacets(),e.target&&e.target.matches(`.${ql}__facet-clear-btn-all`)&&(this.facets.forEach((e=>{const t=e;t.currentValues=[],this.updateUrl(t.field,"",!1)})),this.searchResult(this.searchStringValue)),e.target&&e.target.matches(`.${ql}__facet-clear-btn`)){const t=e.target.getAttribute(`${ql}-data-facet`);this.facets.forEach((e=>{const n=e;n.field.toLowerCase()===t.toLowerCase()&&(n.currentValues=[],this.updateUrl(n.field,"",!1))})),this.searchResult(this.searchStringValue)}})),this.elements.facetView.addEventListener("keyup",(e=>{const t=e.target.value.toLowerCase();if(e.target&&e.target.parentElement.matches(`.${ql}__facet-header-search`)){e.target.parentElement.nextElementSibling.querySelectorAll(`.${ql}__dynamic-facet-list`).forEach((e=>{const n=e,i=n.querySelector(`.${ql}__facet-span-label`).innerHTML.toLowerCase();n.style.display=i.indexOf(t)>-1?"":"none"}))}})),this.elements.facetMobileFilter.addEventListener("click",(()=>{this.elements.facetView.style.display="block",document.body.classList.add("no-scroll")}))};initiateOnChangeEvent=()=>{window.addEventListener("hashchange",(()=>{"false"!==this.cmpConfig.enableFacets&&this.facets.forEach((e=>{e.currentValues=[]})),this.activePage=1,this.firstResult=this.cmpConfig.numPerPage*(this.activePage-1),this.initiateSearch()}))};renderSelectedFacet=()=>{const e=new Map;Object.keys(this.urlSetString).forEach((t=>{const n=t,i=[],r=this.urlSetString[t].split(",");r.length>0&&r.forEach((e=>{i.push({value:e,state:"selected",data:t.toLowerCase()})})),e.set(n,i)}));const t=this.facets.map((t=>{const n=t.field;return{...t,currentValues:e.get(n)}}));this.facets=t,this.searchResult(this.searchStringValue)};renderSortValue=()=>{const e=this.cmpConfig.sortList,t=JSON.parse(e).map((e=>e.sortKey===this.sortCriteria?`<option value="${e.sortKey}" selected >${e.sortValue}</option>`:`<option value="${e.sortKey}">${e.sortValue}</option>`)).join("");this.elements.sortSelect.innerHTML=`${t}`};renderLayout=e=>{this.updateLayoutData(e),this.updateUrl("layout",e,!1)};renderActiveLayout=e=>{"card"===e?.toLowerCase()?this.updateLayoutData("card"):this.updateLayoutData("list")};updateLayoutData=e=>{this.elements.layoutContainer.setAttribute("data-list",`${e}-layout`),this.elements.layoutView.setAttribute("data-list",`${e}-layout`)};updateFacet=()=>{[...this.facets].map((e=>{const t=e;return t.facetId=t.facetKey,t.field=t.facetValue,delete t.facetKey,delete t.facetValue,t}))};selectedPage=()=>{this.firstResult=this.cmpConfig.numPerPage*(this.activePage-1),this.updateUrl("page",this.activePage,!0),this.elements.searchTextHeading.scrollIntoView()};updateUrl=(e,t,n)=>{this.currenturl=window.location.href;const i=this.addAndUpdateQueryParam(this.currenturl,`${e}`,`${t}`);window.history.pushState("","",i),n&&this.searchResult(this.searchStringValue)};searchResult=e=>{const{apiUrl:t,apiToken:n,numPerPage:i,paginationNumCount:r,searchHeading:s}=this.cmpConfig;this.elements.searchTextHeading.innerHTML=`${s} "${e}"`,this.searchStringValue=e;const o=t?`${t}/rest/search/v2`:"";if(""===n||""===o)return void console.log("Please check the API configurations");const a={"Content-Type":"application/json",Authorization:`Bearer ${n}`},l={q:e,facets:this.facets,format:"json",enableWordCompletion:!0,firstResult:this.firstResult,numberOfResults:parseInt(i,10),sortCriteria:this.sortCriteria,cq:this.source};"true"===this.cmpConfig.enableLoader&&this.addActivityLoader(),y({headers:a,method:"POST",payload:l,url:o}).then((e=>{if("true"===this.cmpConfig.enableLoader&&this.removeActivityLoader(),e?.results){this.renderSearchDom(e.results),this.updateFacetsAsRequired(e.facets);const t=this.paginate(e.totalCount,this.activePage,parseInt(i,10),parseInt(r,10));this.renderPageCount(t),this.elements.activePageVal.innerHTML=t.listOfPage}else this.renderPageCount(0)}))};renderSearchDom=e=>{const t=e.map((e=>{const t=e.raw.filetype,n=e.raw.image?e.raw.image:this.cmpConfig.defaultImage,i="true"===this.cmpConfig.enableIcon?`<div class="${ql}__list-icon"><span class="fa ${ql}--fa-file-default ${ql}--fa-file-${t}"></span></div>`:"",r="true"===this.cmpConfig.enableImage?`<div class="${ql}__img"><img src="${n}" alt="image" /></div>`:"";return`<div class="${ql}__list">\n                ${i}\n                <div class="${ql}__list-content">\n                    <div class="${ql}__text">\n                    <h2 class="${ql}__heading"><a href="${e.ClickUri}" aria-label="${e.Title}" role="heading">${e.Title}</a></h2>\n                    <div class="${ql}__description">${e.excerpt}</div>\n                    <div class="${ql}__readmore-section">
2\n                        <span class="${ql}__read-more">\n                            <a href="${e.ClickUri}" class="cmp-link" aria-label="${this.cmpConfig.readMore}">${this.cmpConfig.readMore} <i class="fa-regular fa-arrow-right-long"></i></a>\n                        </span>\n                    </div>\n                    </div>\n                    ${r}\n                </div>\n            </div>`})).join("");this.elements.layoutContainer.innerHTML=t};updateFacetsAsRequired=e=>{const t=this.facets,n=new Map;t.forEach((e=>{const t=e.facetId;n.set(t,e.facetLabel)}));let i=e;i=i.map((e=>{const t=e.facetId;return{...e,facetLabel:n.get(t)||""}})),n.clear(),this.renderFacets(i)};renderFacets=e=>{const t="withoutcount"!==this.cmpConfig.facetsCount?"withoutcount"!==this.cmpConfig.facetsCount:"false",n=`<div class="${ql}__facet-section">`,i=`<div class="${ql}__facet-clear-section">\n        <button type="button" class="${ql}__facet-clear-btn-all" aria-label="${this.cmpConfig.clearAll}">${this.cmpConfig.clearAll}</button>\n        <button type="button" class="${ql}__facet-modal-close-button" aria-label="Close"><i class="fa-light fa-xmark"></i></button>\n        </div>`,r=`<div class="${ql}__facet-footerbtn-section">\n        <button type="button" class="${ql}__facet-cancel-btn" aria-label="${this.cmpConfig.facetsCancel}">${this.cmpConfig.facetsCancel}</button>\n        <button type="button" class="${ql}
2__facet-apply-btn" aria-label="${this.cmpConfig.facetsApply}">${this.cmpConfig.facetsApply}</button>\n        </div>`,s=e.map((i=>{const r=i.values;let s=0;const o=i.values.length>0?`<div class="${ql}__dynamic-facet-values"><ul>`:"",a=i.values.length>0?"</ul></div></div>":"",l=i.values.length>0&&"true"===i.facetsSearch?`<div class="${ql}__facet-header-search"><span class="${ql}__facet-header-search-icon" aria-label="Search for values in ${i.field}"><i class="fa fa-search"></i></span>\n                <input type="text" placeholder="Search" class="cmp-form-text__text" aria-label="Search for ${i.facetLabel}" /></div>`:"",c=r.map((e=>{const n="selected"===e.state?"checked":"";return n&&(s+=1),`<li class="${ql}__dynamic-facet-list"><label>\n                            <input type="checkbox" class="${ql}__dynamic-facet-checkbox" name="facetsCheckbox[]" data-facet-field-group="${i.field}" value="${e.value}" aria-label="${e.value} ${e.numberOfResults} Results" ${n} />\n                            <span class="${ql}__facet-span-label">${e.value}</span>\n                            <span class="${ql}__facet-span-suffix" data-count="${t}">(${e.numberOfResults})</span></label>\n                            </li>`})).join(""),u=s>0?`<a href="javascript:void(0)" class="${ql}__facet-clear-btn" aria-label="${this.cmpConfig.clear} ${i.field}" ${ql}-data-facet="${i.field}">${this.cmpConfig.clear}</a>`:"",d=i.values.length>0&&e.length>1?`<button type="button" class="${ql}__facet-header" aria-expanded="true"><h4 class="${ql}__facet-header-title-section" aria-label="${i.facetLabel} facet">${i.facetLabel}</h4>\n                    ${u}<i class="fa-solid ${ql}__chevron-down fa-circle-plus"></i></button>`:"";return`${n} ${d} ${`<div class="${ql}__facet-container"> ${l}`} ${o} ${c} ${a} </div>`})).join("");this.elements.facetView.innerHTML=e.length>0?i+s+r:s,e.length>0?this.elements.facetMobileFilter.classList.remove(Vl):this.elements.facetMobileFilter.classList.add(Vl)};renderPageCount=e=>{let t="",n="";e.endIndex>0?(this.showSearchResult(this.elements.noResultCol,this.elements.resultHeader,this.elements.resultContainer,this.elements.resultFooter),n=`${e.startIndex+1} - ${e.endIndex+1}`):1===e.totalPages?(this.showSearchResult(this.elements.noResultCol,this.elements.resultHeader,this.elements.resultContainer,this.elements.resultFooter),n=`${e.startIndex+1}`):this.hideSearchResult(this.elements.noResultCol,this.elements.resultHeader,this.elements.resultContainer,this.elements.resultFooter),t=`${this.cmpConfig.results} ${e.totalItems}`,this.elements.searchResultCount.innerHTML=t,((e,t,n)=>{if(!e||!t||"string"!=typeof n)return;const i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(;i.nextNode();)i.currentNode.nodeValue=i.currentNode.nodeValue.replaceAll(t,n)})(this.elements.searchResultCount,"%token%",n)};showSearchResult=(e,t,n,i)=>{e.classList.add(Vl),t.classList.remove(Vl),n.classList.remove(Vl),i.classList.remove(Vl)};hideSearchResult=(e,t,n,i)=>{e.classList.remove(Vl),t.classList.add(Vl),n.classList.add(Vl),i.classList.add(Vl)};paginate=(e,t,n,i)=>{let r,s,o="",a="",l=t;if(Gl=Math.ceil(e/n),l<1?l=1:l>Gl&&(l=Gl),Gl<=i)r=1,s=Gl;else{const e=Math.floor(i/2),t=Math.ceil(i/2)-1;l<=e?(r=1,s=i):l+t>=Gl?(r=Gl-i+1,s=Gl):(r=l-e,s=l+t)}const c=(l-1)*n,u=Math.min(c+n-1,e-1),d=Array.from(Array(s+1-r).keys()).map((e=>r+e)),h=d.map((e=>this.activePage===e?`<li class="${ql}__pager-list-item active"><a href="javascript:void(0)" class="${ql}__active-page" ${ql}-data-page="${e}" aria-label="Page ${e}">${e}</a></li>`:`<li class="${ql}__pager-list-item"><a href="javascript:void(0)" class="${ql}__active-page" ${ql}-data-page="${e}">${e}</a></li>`)).join("");o=1!==this.activePage?`<li class="${ql}__pager-list-item"><a href="javascript:void(0)" class="${ql}__jump-first" aria-label="Page 1"><i class="fa-solid fa-chevrons-left"></i></a></li>\n            <li class="${ql}__pager-list-item"><a href="javascript:void(0)" class="${ql}__left-icon" aria-label="Previous Page"><i class="fa-solid fa-chevron-left"></i></a></li>`:`<li class="${ql}__pager-list-item disabled"><a href="javascript:void(0)" class="${ql}__jump-first" aria-label="Page 1"><i class="fa-solid fa-chevrons-left"></i></a></li>\n            <li class="${ql}__pager-list-item disabled"><a href="javascript:void(0)" class="${ql}__left-icon" aria-label="Previous Page"><i class="fa-solid fa-chevron-left"></i></a></li>`,a=this.activePage===Gl?`<li class="${ql}__pager-list-item disabled"><a href="javascript:void(0)" class="${ql}__right-icon" aria-label="Next Page"><i class="fa-solid fa-chevron-right"></i></a></li>\n        <li class="${ql}__pager-list-item disabled"><a href="javascript:void(0)" class="${ql}__jump-last" aria-label="Page End"><i class="fa-solid fa-chevrons-right"></i></a></li>`:`<li class="${ql}__pager-list-item"><a href="javascript:void(0)" class="${ql}__right-icon" aria-label="Next Page"><i class="fa-solid fa-chevron-right"></i></a></li>\n        <li class="${ql}__pager-list-item"><a href="javascript:void(0)" class="${ql}__jump-last" aria-label="Page End"><i class="fa-solid fa-chevrons-right"></i></a></li>`;return{totalItems:e,currentPage:l,pageSize:n,totalPages:Gl,startPage:r,endPage:s,startIndex:c,endIndex:u,pages:d,listOfPage:`${o} ${h} ${a}`}};addAndUpdateQueryParam=(e,t,n)=>{if("string"!=typeof e||"string"!=typeof t&&"number"!=typeof t||"string"!=typeof n&&"number"!=typeof n)return e;if(null!==e&&null!==t&&null!==n){const i=L(e),r=T();r[t],r[t]=n;const s=this.updateQueryString(r);let o=`${i.path}?${this.updateQueryString(i.queryParams)}`;return null!==i.hash&&(o+=`#${s}`),o}return e};updateQueryString(e){if(w(e)||null===e)return"";const t=[];return Object.keys(e).forEach((n=>{const i=e[n];if((null===i||"object"!=typeof i&&"function"!=typeof i)&&""!==i){let e=encodeURIComponent(n);""!==i&&(e+=`=${encodeURIComponent(i)}
2`),t.push(e)}})),t.join("&")}addActivityLoader=()=>{let e="";if(this.elements.parentSelector.classList.contains(`${ql}--loader-placeholder`)){let t="",n="";const i=4,r="true"===this.cmpConfig.enableIcon?'<div class="cmp-search-results__placeholder-icon"></div>':"",s="true"===this.cmpConfig.enableImage?'<div class="cmp-search-results__placeholder-image"></div>':"";for(let e=0;e<i;e+=1)n+='<div class="cmp-search-results__placeholder-line">\n                    <div class="cmp-search-results__placeholder-checkbox"></div>\n                    <div class="cmp-search-results__placeholder-text"></div>\n                </div>';for(let i=0;i<this.cmpConfig.numPerPage;i+=1)e+=`<div class="cmp-search-results__list">\n                    ${r}\n                    <div class="cmp-search-results__list-content">\n                        ${s}\n                        <div class="cmp-search-results__text">\n                            <div class="cmp-search-results__placeholder-title" style="width: 50%"></div>\n                            <div class="cmp-search-results__placeholder-text" style="width: 70%"></div>\n                            <div class="cmp-search-results__placeholder-text" style="width: 90%"></div>\n                            <div class="cmp-search-results__placeholder-text" style="width: 60%"></div>\n                        </div>\n                    </div>\n                </div>`,i<this.facets.length&&(t+=`<div class="cmp-search-results__facet-placeholder">\n                        <div class="cmp-search-results__placeholder-title"></div>\n                        ${n}\n                    </div>`);this.elements.layoutContainer.innerHTML=e,this.elements.facetView.innerHTML=t}else e='<div class="cmp-search-results__loader-wrapper"><span class="cmp-search-results__loader"></span></div>',this.elements.layoutContainer.innerHTML=e};removeActivityLoader=()=>{this.elements.layoutContainer.innerHTML="",this.elements.facetView.innerHTML=""};hideMobileFacets=()=>{this.elements.facetView.style.display="none",window.onresize=()=>{window.innerWidth>o?this.elements.facetView.style.display="block":this.elements.facetView.style.display="none"},document.body.classList.remove("no-scroll")};initiateSearch=()=>{this.urlSetString=T(),this.sortCriteria=this.urlSetString.sort?this.urlSetString.sort:this.sortCriteria,this.activePage=parseInt(this.urlSetString.page,10)?parseInt(this.urlSetString.page,10):this.activePage,this.selectedLayout=this.urlSetString.layout,this.searchStringValue=void 0!==this.urlSetString.q?this.urlSetString.q:"",this.renderSortValue(),"false"===this.cmpConfig.enableFacets?(this.facets=[],this.searchResult(this.searchStringValue)):this.renderSelectedFacet(),this.renderActiveLayout(this.selectedLayout)};init(){this.elements={searchResultCount:this.element.querySelector(`.${ql}__summary-section`),activePageVal:this.element.querySelector(`.${ql}__pager-list`),layoutView:this.element.querySelector(`.${ql}__layout-section`),layoutContainer:this.element.querySelector(`.${ql}__list-container`),sortView:this.element.querySelector(`.${ql}__sort-section`),sortSelect:this.element.querySelector(`.${ql}__sort-select`),facetView:this.element.querySelector(`.${ql}__facet-column`),searchTextHeading:this.element.querySelector(`.${ql}__header-txt`),resultHeader:this.element.querySelector(`.${ql}__list-header`),resultContainer:this.element.querySelector(`.${ql}__list-container`),resultFooter:this.element.querySelector(`.${ql}__footer`),noResultCol:this.element.querySelector(`.${ql}--display-none`),facetMobileFilter:this.element.querySelector(`.${ql}__filter-btn`),parentSelector:this.element.parentElement},this.cmpConfig=this.element.dataset||{},this.cmpConfig.apiUrl=b("coveo_api_url"),this.cmpConfig.apiToken=b("coveo_api_token"),this.facets="null"!==this.cmpConfig.facetsList?JSON.parse(this.cmpConfig.facetsList):[],this.source="None"!==this.cmpConfig.source?`@source==${this.cmpConfig.source}`:"",this.sortCriteria="",this.searchStringValue="",this.selectedLayout="",this.currenturl="",this.urlSetString="",this.activePage=1,this.firstResult=0,"false"!==this.cmpConfig.enableFacets&&this.updateFacet(),this.addEventListener(),this.initiateSearch(),this.initiateOnChangeEvent()}});const zl="cmp-search-box";s(`.${zl}`,class extends e{toggleSearch(e,t){if(!t||!e)return;const n=t.querySelector(`.${zl}__input`);if("false"===e.getAttribute("aria-expanded")){e.setAttribute("aria-expanded","true"),t.classList.add("open"),t.setAttribute("aria-hidden","false");const i=setInterval((()=>{"visible"===window.getComputedStyle(t).visibility&&(n.focus(),clearInterval(i))}),100)}else this.elements.searchboxCloseBtn.blur(),t.blur(),n.blur(),e.setAttribute("aria-expanded","fal
2se"),t.classList.remove("open"),t.setAttribute("aria-hidden","true")}addEventListeners(){const e=this;function t(){e.elements.searchbox?.classList.contains("open")&&e.toggleSearch(e.elements.searchToggle,e.elements.searchbox)}this.elements.input.addEventListener("keyup",(function(){const{value:t}=e.elements.input;e.term=t})),this.elements.form.addEventListener("submit",(function(t){t.preventDefault();const n=`#${g({q:e.term,page:"1"})}`,i=`${e.formAction}${n}`;window.location=i})),this.elements.mainEl?.addEventListener("click",t),document.addEventListener("keydown",(e=>{"Escape"===e.key&&t()})),this.elements.searchToggle?.addEventListener("click",(()=>{this.toggleSearch(this.elements.searchToggle,this.elements.searchbox)})),this.elements.searchboxCloseBtn?.addEventListener("click",(()=>{this.toggleSearch(this.elements.searchToggle,this.elements.searchbox)}))}init(){this.elements={mainEl:document.querySelector("main"),form:this.element.querySelector(`.${zl}__form`),input:this.element.querySelector(`.${zl}__input`),searchToggle:this.element.querySelector(`.cmp-header__search--desktop .${zl}__toggle`),searchbox:this.element.querySelector(`.cmp-header__search--desktop .${zl}__wrapper`),searchboxCloseBtn:this.element.querySelector(`.cmp-header__search--desktop .${zl}__close-btn`)},this.elements.searchbox?.setAttribute("aria-hidden","true"),this.term="",this.formAction=this.elements.form.getAttribute("action"),this.addEventListeners()}});const Ul="cmp-section";s(`.${Ul}`,class extends e{init(){this.elements={container:this.element.querySelector(`.${Ul}__container`)};const{backgroundImage:e}=this.elements.container.dataset;"true"===e&&new B(this.elements.container).init()}});const Hl="cmp-site-search",Wl="autocomplete";s(`.${Hl}`,class extends e{buildHashParam(e,t){return`#${g({q:e,page:t})}`}updateResultLabel(e){let t;t=e.includes("{count}")?e.replaceAll("{count}",this.resultItemCount):e,this.elements.resultLabel.innerHTML=I(t),this.elements.resultLabel.removeAttribute("style")}updateHashFromInput(){const e=this.elements.input.value.trim();window.location.hash=this.buildHashParam(e,1)}updateStateFromHash(){this.term=T().q||"",this.page=T().page||"1"}updateStateFromFilter(){this.filter=this.elements.filter.selectedOptions[0].getAttribute("value")}fetchResults(e=!1){const t={q:this.term,page:this.page},n=`${window.location.origin}${this.searchUrl}`;y({payload:t,method:"GET",url:n}).then((t=>{if(e&&this.isAutoSuggest===Wl){if(this.elements.autocomplete.style.display="block",this.elements.autocomplete.innerHTML="<li>No results</li>",!t.results||t.results.length<1)return;const e=e=>`\n                        <li>\n                            <a class="cmp-site-search__result-item" href="${I(e.link)}">${I(e.title)}</a>\n                        </li>\n                    `;this.elements.autocomplete.innerHTML=t.results.map(e).join("")}(!e||""!==this.isAutoResult&&null!==this.isAutoResult)&&(e||(this.elements.autocomplete.style.display="none"),this.results=null,this.pagination=null,t?t.success&&t.results&&(this.resultItemCount=t.pagination.totalMatches,this.updateResultLabel(t.label),this.results=t.results,this.updateResults(),this.pagination=t.pagination,this.updatePagination(),e||this.pushSearchData()):this.updateResultLabel(this.resultLabelText))}))}updateResults(){if(!this.results)return;this.elements.resultList.innerHTML=this.results.map((e=>{const t=I(e.link),n=I(e.title),i=e.description,r=this.results.indexOf(e)+1,s=e.type;return`\n                <li data-search-result-position="${r}">\n                    <a data-cmp-clickable="${!1==!n}" class="cmp-site-search__result-item" href="${t}" target="${"pdf"===s?"_blank":"_self"}">${n}${"pdf"===s?'<span class="cmp-site-search--pdf"></span>':""}</a>\n                    <p><a data-cmp-clickable="${!1==!t}" class="cmp-site-search__result-item--url" href="${t}" target="${"pdf"===s?"_blank":"_self"}">${t}</a></p>\n                    <p class="cmp-site-search__result-item--description">${i}</p>\n                </li>\n            `})).join(""),this.elements.resultList.removeAttribute("style")}addPaginationListeners(){const e=this.elements.pages();e&&e.forEach((e=>{const t=e.getAttribute("data-page");e.addEventListener("click",(()=>!e.classList.contains("active")&&(window.location.hash=this.buildHashParam(this.term,t),null)))}))}setActivePage(e){[...this.elements.pages()].map((t=>{const n=t.getAttribute("data-page");return t.classList.remove("active"),n===e&&t.classList.add("active"),null}))}updatePagination(){if(!this.pagination)return;const{totalPages:e,currentPage:t}=this.pagination,n=`<li><a class="cmp-site-search__page" href="javascript:;" data-page="${e}">${e}</a></li>`;let i="",r="";if(e>1){const s=[t-2,t-1,t,t+1,t+2].filter((t=>t>1&&t<e)),o=t===e-4,a=t>5,l=t<e-4;5===t&&s.unshift(2),o&&s.push(e-1),a&&s.unshift("..."),l&&s.push("..."),s.forEac
2h((e=>{r+="..."===e?`<li><span class="cmp-site-search__pagination-ellipses">${e}</span></li>`:`<li><a class="cmp-site-search__page" href="javascript:;" data-page="${e}">${e}</a></li>`})),i='<li><a class="cmp-site-search__page" href="javascript:;" data-page="1">1</a></li>'+r+n,this.elements.pagesContainer.innerHTML=i,this.elements.paginationContainer.removeAttribute("style")}else this.elements.paginationContainer.setAttribute("style","display:none");this.addPaginationListeners(),this.setActivePage(this.page)}executeSearch(){""===this.term?this.updateResultLabel(this.resultLabelText):(this.elements.input.value=this.term,this.fetchResults())}pushSearchData(){const e=this.term||"",t=Number(this.pagination?.totalMatches)||0;if(console.log("[AmeriHealth Site Search] Tracking check",{searchKeyword:e,searchResultsCount:t,currentPage:this.pagination?.currentPage,AHTrackSearch:typeof window.AHTrackSearch}),"function"==typeof window.AHTrackSearch)try{window.AHTrackSearch(e,t),console.log("[AmeriHealth Site Search] Search tracked",{searchKeyword:e,searchResultsCount:t})}catch(e){console.error("[AmeriHealth Site Search] Search tracking failed",e)}else console.warn("[AmeriHealth Site Search] window.AHTrackSearch is unavailable")}addEventListeners(){const e=this;this.elements.form.addEventListener("submit",(function(t){t.preventDefault(),e.updateHashFromInput()})),this.elements.nextButton.addEventListener("click",(function(){const t=parseInt(e.page,10)+1;return!(t>e.pagination.totalPages)&&(window.location.hash=e.buildHashParam(e.term,t),null)})),this.elements.prevButton.addEventListener("click",(function(){const t=parseInt(e.page,10)-1;return!(t<1)&&(window.location.hash=e.buildHashParam(e.term,t),null)})),this.elements.input.addEventListener("blur",this.inputBlur),this.elements.input.addEventListener("keyup",(e=>{e.preventDefault(),13!==e.keyCode&&this.sendInput(e.target.value)})),this.elements.input.addEventListener("focus",(()=>{this.isAutoSuggest===Wl&&(this.elements.autocomplete.style.display="block")})),window.addEventListener("hashchange",(function(){e.updateStateFromHash(),e.executeSearch()})),this.elements.filter&&this.elements.filter.addEventListener("change",(function(t){if(""!==t.target.value){const n=e.term?`${t.target.value}#q=${e.term}`:t.target.value;window.location=n}}))}inputBlur=()=>{setTimeout((()=>{this.elements.autocomplete.style.display="none"}),300)};sendInput=e=>{"autoresult"!==this.isAutoResult&&this.isAutoSuggest!==Wl||(""!==e?(this.term=e,this.page=1,this.fetchResults(!0)):this.isAutoSuggest===Wl&&""===e&&(this.elements.autocomplete.innerHTML="<li>No results</li>"),"autoresult"===this.isAutoResult&&""===e&&(this.elements.resultList.innerHTML="",this.elements.resultLabel.innerHTML="No results found",this.elements.paginationContainer.setAttribute("style","display:none")))};init(){this.elements={form:this.element.querySelector(`.${Hl}__form`),input:this.element.querySelector(`.${Hl} input`),button:this.element.querySelector(`.${Hl}__button`),filter:this.element.querySelector(`.${Hl}__filter-dropdown > select`),resultList:this.element.querySelector(`.${Hl}__results-list`),resultLabel:this.element.querySelector(`.${Hl}__results-label`),paginationContainer:this.element.querySelector(`.${Hl}__pagination-container`),pagesContainer:this.element.querySelector(`.${Hl}__pagination-pages`),pages:()=>this.element.querySelectorAll(`.${Hl} [data-page]`),nextButton:this.element.querySelector(`.${Hl}__pagination-container .next`),prevButton:this.element.querySelector(`.${Hl}__pagination-container .previous`),autocomplete:this.element.querySelector(`.${Hl}__autocomplete`)},this.isDataLayerEnabled=document.body.hasAttribute("data-cmp-data-layer-enabled"),this.dataLayer=window.adobeDataLayer||[],this.term="",this.page="1",this.results=null,this.pagination=null,this.searchUrl=this.element.getAttribute("data-searchurl"),this.isAutoSuggest=this.element.getAttribute("data-searchtype-autocomplete"),this.isAutoResult=this.element.getAttribute("data-searchtype-autoresult"),this.resultLabelText=this.elements.resultLabel.textContent,this.resultItemCount="",this.updateStateFromHash(),this.addEventListeners(),""!==this.term&&this.executeSearch()}});s(".cmp-social-media-sharing",class extends e{addListenersForAdd2Any(e){let t=e.service,n="social";"Email"===e.service?(n="email",t=""):"Print"===e.service&&(n="print",t=""),this.dataLayer.push({event:"share",eventInfo:{platform:t,type:n}})}addListenersForShareThis(){const e=this.elements.shareThis.querySelectorAll(".st-btn");Array.from(e).forEach((e=>{let t=e.getAttribute("data-network"),n="social";"email"===t?(n="email",t=""):"print"===t&&(n="print",t=""),e.addEventListener("click",(()=>{this.dataLayer.push({event:"share",eventInfo:{platform:t,type:n}})}))}))}addEventListeners(){this.elements.add2Any&&(window.a2a_config=window.a2a_config||{},window.a2a_config.callbacks=window.a2a_config.callbacks||[],window.a2a_config.callbacks.push({share:this.addListenersForAdd2Any})),this.elements.shareThis&&setTimeout((()=>{this.addListenersForShareThis()}),500)}init(){this.elements={socialMedia:this.element,add2Any:this.element.querySelector(".cmp-social-media-sharing__add2any"),shareThis:this.element.querySelector(".cmp-social-media-sharing__share-this")},this.isDataLayerEnabled=document.body.hasAttribute("data-cmp-data-layer-enabled"),this.dataLayer=window.adobeDataLayer||[],this.isDataLayerEnabled&&(_()||this.addEventListeners())}});n(965);n(807),(()=>{const e="cmp",t="tabs",n={END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,ENTER:13,SPACEBAR:32},i={self:`[data-${e}-is="${t}"]`,active:{tab:"cmp-tabs__tab--active",tabpanel:"cmp-tabs__tabpanel--active"}},r=document.body.hasAttribute("data-cmp-data-layer-enabled"),s=r?window.adobeDataLayer=window.adobeDataLayer||[]:void 0;function a(a){const l=this;function c(){if(window.innerWidth<o){const{tabpanel:e}=l.elements;e&&(e[0].setAttribute("aria-expanded",!0),e.forEach((e=>{e.addEventListener("click",(e=>{A(e.target),M(e.target)}))})))}else d()}function u(e){const t=l.active,i=l.elements.tab.length-1;switch(e.keyCode){case n.ARROW_LEFT:case n.ARROW_UP:e.preventDefault(),t>0&&f(t-1);break;case n.ARROW_RIGHT:case n.ARROW_DOWN:e.preventDefault(),t<i&&f(t+1);break;case n.HOME:e.preventDefault(),f(0);break;case n.END:e.preventDefault(),f(i)}}function d(){const e=l.elements.tabpanel,t=l.elements.tab;if(e)if(Array.isArray(e))for(let n=0;n<e.length;n+=1)n===parseInt(l.active,10)?(e[n].classList.add(i.active.tabpanel),e[n].removeAttribute("aria-hidden"),t[n].classList.add(i.active.tab),t[n].setAttribute("aria-selected",!0),t[n].setAttribute("tabindex","0")):(e[n].classList.remove(i.active.tabpanel),e[n].setAttribute("aria-hidden",!0),t[n].classList.remove(i.active.tab),t[n].setAttribute("aria-selected",!1),t[n].setAttribute("tabindex","-1"));else e.classList.add(i.active.tabpanel),t.classList.add(i.active.tab)}function h(e){l.active=e,d()}function f(e){const t=l.active;if(h(e),function(e){const t=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset;e.focus(),window.scrollTo(t,n)}(l.elements.tab[e]),r){const n=P(l.elements.tabpanel[e].dataset.cmpDataLayer),i=P(l.elements.tabpanel[t].dataset.cmpDataLayer);s.push({event:"cmp:show",eventInfo:{path:`component.${n}`}}),s.push({event:"cmp:hide",eventInfo:{path:`component.${i}`}});const r=l.elements.self.id,o={component:{}};o.component[r]={shownItems:[n]};const a={component:{}};a.component[r]={shownItems:void 0},s.push(a),s.push(o)}}function p(e){const t=e.target.parentElement.parentElement,n=t.getBoundingClientRect();n.top>=0&&n.top<=window.innerHeight||t&&t.scrollIntoView({behavior:"smooth",block:"start"})}a&&a.element&&function(){a.element.removeAttribute(`data-${e}-is`),function(n){l.elements={},l.elements.self=n;const i=l.elements.self.querySelectorAll(`[data-${e}-hook-${t}]`);for(let n=0;n<i.length;n+=1){const r=i[n];if(r.closest(`.${e}-${t}`)===l.elements.self){let n=t;n=n.charAt(0).toUpperCase()+n.slice(1);const i=r.dataset[`${e}Hook${n}`];if(l.elements[i]){if(!Array.isArray(l.elements[i])){const e=l.elements[i];l.elements[i]=[e]}l.elements[i].push(r)}else l.elements[i]=r}}}(a.element),l.active=function(e){if(e)for(let t=0;t<e.length;t+=1)if(e[t].classList.contains(i.active.tab))return t;return 0}(l.elements.tab),l.elements.tabpanel&&(document.querySelector(".mobileview--accordion")&&(window.onresize=()=>{c()},c()),d(),function(){const e=l.elements.tab,{tabpanel:t}=l.elements;if(e)for(let t=0;t<e.length;t+=1)e[t].addEventListener("click",(e=>{f(t),p(e)})),e[t].addEventListener("keydown",(e=>{u(e)}));t&&window.innerWidth<o&&t.forEach((e=>{e.addEventListener("keydown",(e=>{e.keyCode!==n.ENTER&&e.keyCode!==n.SPACEBAR||(e.preventDefault(),A(e.target),M(e.target.querySelector(".parbase")))}))}))}());window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&new window.Granite.author.MessageChannel("cqauthor",window).subscribeRequestMessage("cmp.panelcontainer",(e=>{e.data&&"cmp-tabs"===e.data.type&&e.data.id===l.elements.self.dataset.cmpPanelcontainerId&&"navigate"===e.data.operation&&h(e.data.index)}));const r=R(l,"tab");-1!==r&&h(r)}()}function l(n){const i=n.dataset,r=[];let s=t;s=s.charAt(0).toUpperCase()+s.slice(1);const o=["is",`hook${s}`];
2return Object.keys(i).forEach((t=>{const n=i[t];if(0===t.indexOf(e)){let i=t.slice(e.length);i=i.charAt(0).toLowerCase()+i.substring(1),-1===o.indexOf(i)&&(r[i]=n)}})),r}function c(){const e=document.querySelectorAll(i.self);for(let t=0;t<e.length;t+=1)new a({element:e[t],options:l(e[t])});const t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,n=document.querySelector("body");new t((e=>{e.forEach((e=>{const t=[].slice.call(e.addedNodes);t.length>0&&t.forEach((e=>{if(e.querySelectorAll){[].slice.call(e.querySelectorAll(i.self)).forEach((e=>{new a({element:e,options:l(e)})}))}}))}))})).observe(n,{subtree:!0,childList:!0,characterData:!0})}"loading"!==document.readyState?c():document.addEventListener("DOMContentLoaded",c)})();const Yl="cmp-tag-search";s(`.${Yl}`,class extends e{assignPdfFlagOnLoad(){this.elements.documentItems.forEach((e=>{if(e.href.includes("pdf")){e.querySelector("span").classList.remove("hidden")}}))}showResults(){this.elements.pdfIndex.classList.add("hidden"),this.elements.resultsContainer.classList.remove("hidden")}clearResults(){this.elements.pdfIndex.classList.remove("hidden"),this.elements.resultsContainer.classList.add("hidden"),this.elements.input.value="",this.elements.resultList.innerHTML=""}updateSearchTerm(){this.elements.searchTerm.textContent=this.term}fetchResults(){const e={q:this.term},t=`${window.location.origin}${this.searchUrl}`;y({payload:e,method:"GET",url:t}).then((e=>{this.results=null,e?e.success&&e.results&&(this.updateSearchTerm(),this.results=e.results,this.updateResults()):this.updateSearchTerm()}))}updateResults(){if(!this.results)return;this.elements.resultList.innerHTML=this.results.map((e=>{const t=I(e.link),n=I(e.title);return`\n                <li>\n                    <a data-cmp-clickable="${!1==!n}" class="cmp-tag-search__result-item" href="${t}" target="_blank">${n}${"pdf"===e.type?'<span class="cmp-tag-search--pdf"></span>':""}</a>\n                </li>\n            `})).join(""),this.showResults()}executeSearch(){this.term=this.elements.input.value.trim(),this.fetchResults()}addEventListeners(){const e=this;this.elements.input.addEventListener("input",(function(){""!==e.elements.input.value?e.elements.clearBtn.classList.remove("hidden"):e.elements.clearBtn.classList.add("hidden")})),this.elements.clearBtn.addEventListener("click",(function(){e.elements.input.value="",e.elements.input.focus(),e.elements.clearBtn.classList.add("hidden")})),this.elements.form.addEventListener("submit",(function(t){t.preventDefault(),e.executeSearch()})),this.elements.clearResults.addEventListener("click",(function(t){t.preventDefault(),e.elements.clearBtn.classList.add("hidden"),e.clearResults()}))}init(){this.elements={form:this.element.querySelector(`.${Yl}__form`),input:this.element.querySelector(`.${Yl} input`),clearBtn:this.element.querySelector(`.${Yl}__close-btn`),pdfIndex:this.element.querySelector(`.${Yl}__pdf-index`),documentItems:this.element.querySelectorAll(`.${Yl}__letter-list-item a`),resultsContainer:this.element.querySelector(`.${Yl}__results`),resultList:this.element.querySelector(`.${Yl}__results-list`),searchTerm:this.element.querySelector(`.${Yl}__search-term`),clearResults:this.element.querySelector(`.${Yl}__clear-results`)},this.term="",this.results=null,this.searchUrl=this.element.getAttribute("data-searchurl"),this.assignPdfFlagOnLoad(),this.addEventListeners(),""!==this.term&&this.executeSearch()}});const Xl="cmp-teaser";s(`.${Xl}`,class extends e{createClickableCard(){if(!this.elements.isClickableCard)return;const e=document.createElement("a");e.classList.add(`${Xl}__link-wrapper`),this.cardAriaLabel&&e.setAttribute("aria-label",this.cardAriaLabel),this.elements.teaserTitleUrl&&(e.href=this.elements.teaserTitleUrl.getAttribute("href")),this.element.insertAdjacentElement("afterbegin",e),this.elements.teaserImage&&e.append(this.elements.teaserImage),e.append(this.elements.teaserContent)}init(){this.elements={isClickableCard:this.element.classList.contains(`${Xl}--clickable`),teaserImage:this.element.querySelector(`.${Xl}__image`),teaserContent:this.element.querySelector(`.${Xl}__content`),teaserTitleUrl:this.element.querySelector(`.${Xl}__title-link`)},this.cardAriaLabel=this.element.dataset.ariaLabel,this.createClickableCard()}});n(425);const Kl="cmp-utility-navigation";s(`.${Kl}`,class extends e{toggleUtilityNav(e){const t=e.nextElementSibling;"false"===e.getAttribute("aria-expanded")?(this.windowWidth()>=o&&this.resetAllUtilityNavs(),e.setAttribute("aria-expanded","true"),e.classList.add(`${Kl}__dropdown-toggle--active`),t.setAttribute("aria-hidden","false"),t.classList.add(`${Kl}
2__level-1-group--open`)):(e.setAttribute("aria-expanded","false"),e.classList.remove(`${Kl}__dropdown-toggle--active`),t.setAttribute("aria-hidden","true"),t.classList.remove(`${Kl}__level-1-group--open`))}resetAllUtilityNavs(){[...this.elements.firstLevelButtons].forEach((e=>{const t=e.nextElementSibling;e.setAttribute("aria-expanded","false"),e.classList.remove(`${Kl}__dropdown-toggle--active`),t.setAttribute("aria-hidden","true"),t.classList.remove(`${Kl}__level-1-group--open`),t.blur()}))}addEventListeners(){const e=this;function t(t){const n=t.target.closest("button");e.toggleUtilityNav(n)}[...this.elements.firstLevelButtons].forEach((e=>{e.addEventListener("click",t)})),document.addEventListener("keydown",(e=>{if("Escape"===e.key){[...this.elements.firstLevelButtons].some((e=>e.classList.contains(`${Kl}__dropdown-toggle--active`)))&&this.resetAllUtilityNavs()}})),document.addEventListener("click",(e=>{!1===e.target.classList.contains(`${Kl}__level-0-item`)&&!1===e.target.classList.contains(`${Kl}__level-1-group`)&&!1===e.target.classList.contains(`${Kl}__dropdown-toggle`)&&!1===e.target.parentElement?.classList.contains(`${Kl}__dropdown-toggle`)&&this.resetAllUtilityNavs()}))}init(){this.elements={mobileNav:document.querySelector(".cmp-header__navbar"),firstLevelGroup:this.element.getElementsByClassName(`${Kl}__level-0-group`),firstLevelButtons:this.element.querySelectorAll(`.${Kl}__dropdown-toggle`),secondLevelGroup:this.element.getElementsByClassName(`${Kl}__level-1-group`)},this.windowWidth=()=>window.innerWidth,this.addEventListeners()}});n(685);var Ql=n(321),Jl=n.n(Ql);function Zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zl(Object(n),!0).forEach((function(t){ac(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tc(){tc=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},s=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var s=t&&t.prototype instanceof h?t:h,o=Object.create(s.prototype),a=new S(r||[]);return i(o,"_invoke",{value:E(e,n,a)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function h(){}function f(){}function p(){}var m={};l(m,s,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(L([])));v&&v!==t&&n.call(v,s)&&(m=v);var y=p.prototype=h.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(i,s,o,a){var l=u(e[i],e,s);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,a)}),(function(e){r("throw",e,o,a)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,a)}))}a(l.arg)}var s;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return s=s?s.then(i,i):i()}})}function E(e,t,n){var i="suspendedStart";return function(r,s){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw s;return I()}for(n.method=r,n.arg=s;;){var o=n.delegate;if(o){var a=w(o,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=u(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function w(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 1,587 bytes, line 2
2(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var s=r.arg;return s?s.done?(t[e.resultName]=s.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):s:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:I}}function I(){return{value:void 0,done:!0}}return f.prototype=p,i(y,"constructor",{value:p,configurable:!0}),i(p,"constructor",{value:f,configurable:!0}),f.displayName=l(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}}
vendor: 6,682 bytes, line 2
2,b(_.prototype),l(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,i,r,s){void 0===s&&(s=Promise);var o=new _(c(t,n,i,r),s);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},b(y),l(y,a,"Generator"),l(y,s,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return o.type="throw",o.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r],o=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var a=n.call(s,"catchLoc"),l=n.call(s,"finallyLoc");if(a&&l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(a){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var s=r;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var o=s?s.completion:{};return o.type=e,o.arg=t,s?(this.method="next",this.next=s.finallyLoc,d):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function nc(e,t,n,i,r,s,o){try{var a=e[s](o),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function ic(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var s=e.apply(t,n);function o(e){nc(s,i,r,o,a,"next",e)}function a(e){nc(s,i,r,o,a,"throw",e)}o(void 0)}))}}function rc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sc(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,mc(i.key),i)}}function oc(e,t,n){return t&&sc(e.prototype,t),n&&sc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ac(e,t,n){return(t=mc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lc(e){return lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lc(e)}function cc(e,t){return cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cc(e,t)}function uc(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function dc(e,t,n){return dc=uc()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&cc(r,n.prototype),r},dc.apply(null,arguments)}function hc(e){var t="function"==typeof Map?new Map:void 0;return hc=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return dc(e,arguments,lc(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),cc(i,e)},hc(e)}function fc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pc(e){var t=uc();return function(){var n,i=lc(e);if(t){var r=lc(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fc(e)}(this,n)}}function mc(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var gc=void 0!==n.g&&"[object global]"==={}.toString.call(n.g);function vc(e,t){return 0===e.indexOf(t.toLowerCase())?e:"".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function yc(e){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(e)}function bc(e){return/^https:\/\/player\.vimeo\.com\/video\/\d+/.test(e)}function _c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.url,i=t||n;if(!i)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(function(e){return!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e}(i))return"https://vimeo.com/".concat(i);if(yc(i))return i.replace("http:","https:");if(t)throw new TypeError("“".concat(t,"” is not a valid video id."));throw new TypeError("“".concat(i,"” is not a vimeo.com url."))}var Ec=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",s="string"==typeof t?[t]:t;
vendor: 4,768 bytes, line 2
2return s.forEach((function(t){e[i](t,n)})),{cancel:function(){return s.forEach((function(t){return e[r](t,n)}))}}},wc=void 0!==Array.prototype.indexOf,xc="undefined"!=typeof window&&void 0!==window.postMessage;if(!(gc||wc&&xc))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var Tc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};!function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),i=function(e,t,i){n?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:i}):e[t]=i};e.WeakMap=function(){function e(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(i(this,"_id","_WeakMap"+"_"+s()+"."+s()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function n(e,n){if(!r(e)||!t.call(e,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof e)}function s(){return Math.random().toString().substring(2)}return i(e.prototype,"delete",(function(e){if(n(this,"delete"),!r(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),i(e.prototype,"get",(function(e){if(n(this,"get"),r(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),i(e.prototype,"has",(function(e){if(n(this,"has"),!r(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),i(e.prototype,"set",(function(e,t){if(n(this,"set"),!r(e))throw new TypeError("Invalid value used as weak map key");var s=e[this._id];return s&&s[0]===e?(s[1]=t,this):(i(e,this._id,[e,t]),this)})),i(e,"_polyfill",!0),e}()}function r(e){return Object(e)===e}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Tc);var Sc,Lc,Ic=(Sc=function(e){var t,n,i;i=function(){var e,t,n,i=Object.prototype.toString,r="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,i){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==i})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function s(e,i){n.add(e,i),t||(t=r(n.drain))}function o(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function a(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e,t,n){var i,r;try{!1===t?n.reject(e.msg):(i=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(r=o(i))?r.call(i,n.resolve,n.reject):n.resolve(i)}catch(e){n.reject(e)}}function c(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=o(e))?s((function(){var i=new h(n);try{t.call(e,(function(){c.apply(i,arguments)}),(function(){u.apply(i,arguments)}))}catch(e){u.call(i,e)}})):(n.msg=e,n.state=1,n.chain.length>0&&s(a,n))}catch(e){u.call(new h(n),e)}}}function u(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&s(a,t))}function d(e,t,n,i){for(var r=0;r<t.length;r++)!function(r){e.resolve(t[r]).then((function(e){n(r,e)}),i)}(r)}function h(e){this.def=e,this.triggered=!1}function f(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new f(this);this.then=function(e,n){var i={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return i.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");i.resolve=e,i.reject=t})),t.chain.push(i),0!==t.state&&s(a,t),i.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){c.call(t,e)}),(function(e){u.call(t,e)}))}catch(e){u.call(t,e)}}n=function(){var e,n,i;function r(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,s){i=new r(t,s),n?n.next=i:e=i,n=i,i=void 0},drain:function(){var i=e;for(e=n=t=void 0;i;)i.fn.call(i.self),i=i.next}}}();var m=e({},"constructor",p,!1);return p.prototype=m,e(m,"__NPO__",0,!1),e(p,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)}))})),e(p,"reject",(function(e){return new this((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)}))})),e(p,"all",(function(e){var t=this;return"[object Array]"!=i.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(n,i){if
2("function"!=typeof n||"function"!=typeof i)throw TypeError("Not a function");var r=e.length,s=Array(r),o=0;d(t,e,(function(e,t){s[e]=t,++o===r&&n(s)}),i)}))})),e(p,"race",(function(e){var t=this;return"[object Array]"!=i.call(e)?t.reject(TypeError("Not an array")):new t((function(n,i){if("function"!=typeof n||"function"!=typeof i)throw TypeError("Not a function");d(t,e,(function(e,t){n(t)}),i)}))})),p},(n=Tc)[t="Promise"]=n[t]||i(),e.exports&&(e.exports=n[t])},Sc(Lc={exports:{}},Lc.exports),Lc.exports),Cc=new WeakMap;function Oc(e,t,n){var i=Cc.get(e.element)||{};t in i||(i[t]=[]),i[t].push(n),Cc.set(e.element,i)}function Ac(e,t){return(Cc.get(e.element)||{})[t]||[]}function Mc(e,t,n){var i=Cc.get(e.element)||{};if(!i[t])return!0;if(!n)return i[t]=[],Cc.set(e.element,i),!0;var r=i[t].indexOf(n);return-1!==r&&i[t].splice(r,1),Cc.set(e.element,i),i[t]&&0===i[t].length}function kc(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function Pc(e,t,n){if(e.element.contentWindow&&e.element.contentWindow.postMessage){var i={method:t};void 0!==n&&(i.value=n);var r=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));r>=8&&r<10&&(i=JSON.stringify(i)),e.element.contentWindow.postMessage(i,e.origin)}}function Rc(e,t){var n,i=[];if((t=kc(t)).event){if("error"===t.event)Ac(e,t.data.method).forEach((function(n){var i=new Error(t.data.message);i.name=t.data.name,n.reject(i),Mc(e,t.data.method,n)}));i=Ac(e,"event:".concat(t.event)),n=t.data}else if(t.method){var r=function(e,t){var n=Ac(e,t);if(n.length<1)return!1;var i=n.shift();return Mc(e,t,i),i}(e,t.method);r&&(i.push(r),n=t.value)}i.forEach((function(t){try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}}))}var Dc=["airplay","audio_tracks","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","play_button_position","playsinline","portrait","progress_bar","quality_selector","responsive","speed","start_time","texttrack","title","transcript","transparent","url","vimeo_logo","volume","watch_full_video","width"];function Nc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Dc.reduce((function(t,n){var i=e.getAttribute("data-vimeo-".concat(n));return(i||""===i)&&(t[n]=""===i?1:i),t}),t)}function $c(e,t){var n=e.html;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var i=document.createElement("div");return i.innerHTML=n,t.appendChild(i.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function Fc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((function(i,r){if(!yc(e))throw new TypeError("“".concat(e,"” is not a vimeo.com url."));var s="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(e));for(var o in t)t.hasOwnProperty(o)&&(s+="&".concat(o,"=").concat(encodeURIComponent(t[o])));var a="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;a.open("GET",s,!0),a.onload=function(){if(404!==a.status)if(403!==a.status)try{var t=JSON.parse(a.responseText);if(403===t.domain_status_code)return $c(t,n),void r(new Error("“".concat(e,"” is not embeddable.")));i(t)}catch(e){r(e)}else r(new Error("“".concat(e,"” is not embeddable.")));else r(new Error("“".concat(e,"” was not found.")))},a.onerror=function(){var e=a.status?" (".concat(a.status,")"):"";r(new Error("There was an error fetching the embed code from Vimeo".concat(e,".")))},a.send()}))}var Bc={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},jc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cc(e,t)}(s,e);var t,n,i,r=pc(s);function s(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;return rc(this,s),ac(fc(n=r.call(this)),"logger",void 0),ac(fc(n),"speedAdjustment",0),ac(fc(n),"adjustSpeed",function(){var e=ic(tc().mark((function e(t,i){var r;return tc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.speedAdjustment!==i){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.getPlaybackRate();case 4:return e.t0=e.sent,e.t1=n.speedAdjustment,e.t2=e.t0-e.t1,e.t3=i,r=e.t2+e.t3,n.log("New playbackRate:  ".concat(r)),e.next=12,t.setPlaybackRate(r);case 12:n.speedAdjustment=i;case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),n.logger=o,n.init(t,e,ec(ec({},Bc),i)),n}return oc(s,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(i=ic(tc().mark((function e(t,n,i){var r,s,o,a=this;return tc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForTOReadyState(t,"open");case 2:if("viewer"!==i.role){e.next=10;break}return e.next=5,this.updatePlayer(t,n,i);case 5:r=Ec(t,"change",(function(){return a.updatePlayer(t,n,i)})),s=this.maintainPlaybackPosition(t,n,i),this.addEventListener("disconnect",(function(){s.c
2ancel(),r.cancel()})),e.next=14;break;case 10:return e.next=12,this.updateTimingObject(t,n);case 12:o=Ec(n,["seeked","play","pause","ratechange"],(function(){return a.updateTimingObject(t,n)}),"on","off"),this.addEventListener("disconnect",(function(){return o.cancel()}));case 14:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"updateTimingObject",value:(n=ic(tc().mark((function e(t,n){return tc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,n.getCurrentTime();case 3:return e.t1=e.sent,e.next=6,n.getPaused();case 6:if(!e.sent){e.next=10;break}e.t2=0,e.next=13;break;case 10:return e.next=12,n.getPlaybackRate();case 12:e.t2=e.sent;case 13:e.t3=e.t2,e.t4={position:e.t1,velocity:e.t3},e.t0.update.call(e.t0,e.t4);case 16:case"end":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})},{key:"updatePlayer",value:(t=ic(tc().mark((function e(t,n,i){var r,s,o;return tc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.query(),s=r.position,o=r.velocity,"number"==typeof s&&n.setCurrentTime(s),"number"!=typeof o){e.next=25;break}if(0!==o){e.next=11;break}return e.next=6,n.getPaused();case 6:if(e.t0=e.sent,!1!==e.t0){e.next=9;break}n.pause();case 9:e.next=25;break;case 11:if(!(o>0)){e.next=25;break}return e.next=14,n.getPaused();case 14:if(e.t1=e.sent,!0!==e.t1){e.next=19;break}return e.next=18,n.play().catch(function(){var e=ic(tc().mark((function e(t){return tc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("NotAllowedError"!==t.name||!i.autoPlayMuted){e.next=5;break}return e.next=3,n.setMuted(!0);case 3:return e.next=5,n.play().catch((function(e){return console.error("Couldn't play the video from TimingSrcConnector. Error:",e)}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 18:this.updatePlayer(t,n,i);case 19:return e.next=21,n.getPlaybackRate();case 21:if(e.t2=e.sent,e.t3=o,e.t2===e.t3){e.next=25;break}n.setPlaybackRate(o);case 25:case"end":return e.stop()}}),e,this)}))),function(e,n,i){return t.apply(this,arguments)})},{key:"maintainPlaybackPosition",value:function(e,t,n){var i=this,r=n.allowedDrift,s=n.maxAllowedDrift,o=n.minCheckInterval,a=n.maxRateAdjustment,l=n.maxTimeToCatchUp,c=1e3*Math.min(l,Math.max(o,s)),u=function(){var n=ic(tc().mark((function n(){var o,c,u,d,h;return tc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=0===e.query().velocity,n.t0){n.next=6;break}return n.next=4,t.getPaused();case 4:n.t1=n.sent,n.t0=!0===n.t1;case 6:if(!n.t0){n.next=8;break}return n.abrupt("return");case 8:return n.t2=e.query().position,n.next=11,t.getCurrentTime();case 11:if(n.t3=n.sent,o=n.t2-n.t3,c=Math.abs(o),i.log("Drift: ".concat(o)),!(c>s)){n.next=22;break}return n.next=18,i.adjustSpeed(t,0);case 18:t.setCurrentTime(e.query().position),i.log("Resync by currentTime"),n.next=29;break;case 22:if(!(c>r)){n.next=29;break}return h=(u=c/l)<(d=a)?(d-u)/2:d,n.next=28,i.adjustSpeed(t,h*Math.sign(o));case 28:i.log("Resync by playbackRate");case 29:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),d=setInterval((function(){return u()}),c);return{cancel:function(){return clearInterval(d)}}}},{key:"log",value:function(e){var t;null===(t=this.logger)||void 0===t||t.call(this,"TimingSrcConnector: ".concat(e))}},{key:"waitForTOReadyState",value:function(e,t){return new Promise((function(n){!function i(){e.readyState===t?n():e.addEventListener("readystatechange",i,{once:!0})}()}))}}]),s}(hc(EventTarget)),qc=new WeakMap,Vc=new WeakMap,Gc={},zc=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(rc(this,e),window.jQuery&&t instanceof jQuery&&(t.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),t=t[0]),"undefined"!=typeof document&&"string"==typeof t&&(t=document.getElementById(t)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(t))throw new TypeError("You must pass either a valid element or a valid id.");
vendor: 1,780 bytes, line 2
2if("IFRAME"!==t.nodeName){var r=t.querySelector("iframe");r&&(t=r)}if("IFRAME"===t.nodeName&&!yc(t.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(qc.has(t))return qc.get(t);this._window=t.ownerDocument.defaultView,this.element=t,this.origin="*";var s=new Ic((function(e,r){if(n._onMessage=function(t){if(yc(t.origin)&&n.element.contentWindow===t.source){"*"===n.origin&&(n.origin=t.origin);var i=kc(t.data);if(i&&"error"===i.event&&i.data&&"ready"===i.data.method){var s=new Error(i.data.message);return s.name=i.data.name,void r(s)}var o=i&&"ready"===i.event,a=i&&"ping"===i.method;if(o||a)return n.element.setAttribute("data-ready","true"),void e();Rc(n,i)}},n._window.addEventListener("message",n._onMessage),"IFRAME"!==n.element.nodeName){var s=Nc(t,i);Fc(_c(s),s,t).then((function(e){var i,r,s,o=$c(e,t);return n.element=o,n._originalElement=t,i=t,r=o,s=Cc.get(i),Cc.set(r,s),Cc.delete(i),qc.set(n.element,n),e})).catch(r)}}));if(Vc.set(this,s),qc.set(this.element,this),"IFRAME"===this.element.nodeName&&Pc(this,"ping"),Gc.isEnabled){var o=function(){return Gc.exit()};this.fullscreenchangeHandler=function(){Gc.isFullscreen?Oc(n,"event:exitFullscreen",o):Mc(n,"event:exitFullscreen",o),n.ready().then((function(){Pc(n,"fullscreenchange",Gc.isFullscreen)}))},Gc.on("fullscreenchange",this.fullscreenchangeHandler)}return this}var t;return oc(e,[{key:"callMethod",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Ic((function(i,r){return t.ready().then((function(){Oc(t,e,{resolve:i,reject:r}),Pc(t,e,n)})).catch(r)}))}},{key:"get",value:function(e){var t=this;return new Ic((function(n,i){return e=vc(e,"get"),t.ready().then((function(){Oc(t,e,{resolve:n,reject:i}),Pc(t,e)}
2)).catch(i)}))}},{key:"set",value:function(e,t){var n=this;return new Ic((function(i,r){if(e=vc(e,"set"),null==t)throw new TypeError("There must be a value to set.");return n.ready().then((function(){Oc(n,e,{resolve:i,reject:r}),Pc(n,e,t)})).catch(r)}))}},{key:"on",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===Ac(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch((function(){})),Oc(this,"event:".concat(e),t)}},{key:"off",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");Mc(this,"event:".concat(e),t)&&this.callMethod("removeEventListener",e).catch((function(e){}))}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=Vc.get(this)||new Ic((function(e,t){t(new Error("Unknown player. Probably unloaded."))}));return Ic.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return Gc.isEnabled?Gc.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return Gc.isEnabled?Gc.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return Gc.isEnabled?Ic.resolve(Gc.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var e=this;return new Ic((function(t){if(Vc.delete(e),qc.delete(e.element),e._originalElement&&(qc.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&"IFRAME"===e.element.nodeName&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&"DIV"===e.element.nodeName&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var n=e.element.querySelector("iframe");n&&n.parentNode&&(n.parentNode.parentNode&&e._originalElement&&e._originalElement!==n.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n))}e._window.removeEventListener("message",e._onMessage),Gc.isEnabled&&Gc.off("fullscreenchange",e.fullscreenchangeHandler),t()}))}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(e){return this.set("cameraProps",e)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return Ic.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"setColors",value:function(e){if(!Array.isArray(e))return new Ic((function(e,t){return t(new TypeError("Argument must be an array."))}));var t=new Ic((function(e){return e(null)})),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return Ic.all(n)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}
2},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"setMuted",value:function(e){return this.set("muted",e)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(e){return this.set("quality",e)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}},{key:"setTimingSrc",value:(t=ic(tc().mark((function e(t,n){var i,r=this;return tc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return e.next=4,this.ready();case 4:return i=new jc(this,t,n),Pc(this,"notifyTimingObjectConnect"),i.addEventListener("disconnect",(function(){return Pc(r,"notifyTimingObjectDisconnect")})),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})}]),e}();gc||(Gc=function(){var e=function(){for(var e,t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,i=t.length,r={};n<i;n++)if((e=t[n])&&e[1]in document){for(n=0;n<e.length;n++)r[t[0][n]]=e[n];return r}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:function(t){return new Promise((function(i,r){var s=function e(){n.off("fullscreenchange",e),i()};n.on("fullscreenchange",s);var o=(t=t||document.documentElement)[e.requestFullscreen]();o instanceof Promise&&o.then(s).catch(r)}))},exit:function(){return new Promise((function(t,i){if(n.isFullscreen){var r=function e(){n.off("fullscreenchange",e),t()};n.on("fullscreenchange",r);var s=document[e.exitFullscreen]();s instanceof Promise&&s.then(r).catch(i)}else t()}))},on:function(e,n){var i=t[e];i&&document.addEventListener(i,n)},off:function(e,n){var i=t[e];i&&document.removeEventListener(i,n)}};return Object.defineProperties(n,{isFullscreen:{get:function(){return Boolean(document[e.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[e.fullscreenEnabled])}}}),n}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(e){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(e))};t.forEach((function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var t=Nc(e);Fc(_c(t),t,e).then((function(t){return $c(t,e)}
2)).catch(n)}catch(e){n(e)}}))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",(function(t){if(yc(t.origin)&&t.data&&"spacechange"===t.data.event)for(var n=e.querySelectorAll("iframe"),i=0;i<n.length;i++)if(n[i].contentWindow===t.source){n[i].parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}})))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",(function(t){if(yc(t.origin)){var n=kc(t.data);if(n&&"ready"===n.event)for(var i=e.querySelectorAll("iframe"),r=0;r<i.length;r++){var s=i[r],o=s.contentWindow===t.source;bc(s.src)&&o&&new zc(s).callMethod("appendVideoMetadata",window.location.href)}}})))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam
2=!0;var t=function(e){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(e))};window.addEventListener("message",(function(n){if(yc(n.origin)){var i=kc(n.data);if(i&&"ready"===i.event)for(var r=e.querySelectorAll("iframe"),s=function(){var e=r[o],i=e.contentWindow===n.source;if(bc(e.src)&&i){var s=new zc(e);s.getVideoId().then((function(e){var t=new RegExp("[?&]vimeo_t_".concat(e,"=([^&#]*)")).exec(window.location.href);if(t&&t[1]){var n=decodeURI(t[1]);s.setCurrentTime(n)}})).catch(t)}},o=0;o<r.length;o++)s()}}))}}());var Uc=zc;const Hc="cmp-video-external",Wc="vimeo",Yc="vidyard",Xc="brightcove";s(`.${Hc}`,class extends e{brightcoveAnalytics(){const e=this.elements.inner.querySelector("video");let t=0,n=0;e&&(e.addEventListener("canplay",(()=>{t=e.duration})),e.addEventListener("play",(()=>{this.videoEvent("videoStart",this.code,"Brightcove")})),e.addEventListener("pause",(()=>{n=e.currentTime,this.videoEvent("videoPause",this.code,"Brightcove"),this.calculatePercentage(n,t,"Brightcove")})),e.addEventListener("timeupdate",(()=>{n=e.currentTime,this.calculatePercentage(n,t,"Brightcove")})))}vidyardAnalytics(){let e=0,t=0;Jl().api.addReadyListener((()=>{const n=Jl().api.getPlayersByUUID(this.code)[0];e=n.duration,n.on("play",(()=>{this.videoEvent("videoStart",this.code,"Vidyard")})),n.on("pause",(()=>{t=n.currentTime,this.videoEvent("videoPause",this.code,"Vidyard"),this.calculatePercentage(t,e,"Vidyard")})),n.on("timeupdate",(t=>{this.calculatePercentage(t,e,"Vidyard")})),n.on("playerComplete",(()=>{this.dataLayer.push({event:"videoMilestone",eventInfo:{videoPercent:100,videoType:"Vidyard",videoId:this.code}})}))}))}vimeoAnalytics(){const e=this.elements.inner.querySelector("iframe"),t=new Uc(e);let n=0,i=0;t.on("play",(e=>{n=e.duration,this.videoEvent("videoStart",this.code,"Vimeo")})),t.on("pause",(e=>{i=e.seconds,this.videoEvent("videoPause",this.code,"Vimeo"),this.calculatePercentage(i,n,"Vimeo")})),t.on("timeupdate",(e=>{i=e.seconds,this.calculatePercentage(i,n,"Vimeo")})),t.on("ended",(()=>{this.dataLayer.push({event:"videoMilestone",eventInfo:{videoPercent:100,videoType:"Vimeo",videoId:this.code}})}))}videoEvent(e,t,n){this.dataLayer.push({event:e,eventInfo:{videoType:n,videoId:t}})}calculatePercentage(e,t,n){const i=Math.floor(e/t*100);i!==this.lastProgressEventPercentage&&(this.lastProgressEventPercentage=i,25!==i&&50!==i&&75!==i||this.dataLayer.push({event:"videoMilestone",eventInfo:{videoPercent:i,videoType:n,videoId:this.code}}))}initLazyLoad(){const e=this;N((t=>{const{entry:n}=t,i=n?n?.target:e.element;if(i){const n=i.dataset.videoSource,r=i.querySelector(`.${Hc}__video`);if(n!==Yc&&n!==Xc){const t=function(e,t){const n=document.createElement(t),i=e.getAttributeNames();if(i.length){const t=i.reduce(((t,n)=>({...t,[n]:e.getAttribute(n)})),{});Object.keys(t).forEach((e=>{n.setAttribute(e,t[e])}))}const r=e.children;if(r.length)for(let e=0;e<r.length;e++)n.appendChild(r.item(e));return e.parentNode.replaceChild(n,e),n}(r,"iframe");e.elements.iframe=t}e.isDataLayerEnabled&&e.setupAnalytics(),this.elements.overlay&&this?.overlayComponent&&"function"==typeof this?.overlayComponent?.onIntersection&&this.overlayComponent?.onIntersection(t)}}),this.element)}setupElements(){null===this.elements.overlay?this.elements.inner.setAttribute("style","display:block"):this.addEventListeners(),this.elements.inner.style.paddingBottom=this.element.dataset.videoAspectRatio}setupAnalytics(){this.source===Xc?this.brightcoveAnalytics():this.source===Yc?this.vidyardAnalytics():this.source===Wc&&this.vimeoAnalytics()}addEventListeners(){const e=this;if(e.source===Yc&&Jl().api.renderDOMPlayers(),this.elements.playButton.addEventListener("click",(function(t){if(t.preventDefault(),e.elements.overlay.setAttribute("style","display:none"),e.elements.inner.setAttribute("style","display:block"),e.elements.inner.style.paddingBottom=e.element.dataset.videoAspectRatio,e.elements.iframe&&(e.elements.iframe.setAttribute("tabindex","0"),e.elements.iframe.focus()),"youtube"===e.source)e.elements.iframe.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else if(e.source===Yc){const t=Jl().api.getPlayersByUUID(e.code);for(let n=0;n<t.length;n+=1)if(null!=t[n].element.closest(`#${e.elements.videoId}`)){t[n].play();break}}else if(e.source===Wc||"wistia"===e.source)e.elements.iframe.contentWindow.postMessage('{"method": "play"}',"*");else if(e.source===Xc){e.elements.inner.querySelector("video").play()}})),this.elements.overlay){const{backgroundImage:e}=this.elements.overlay.dataset;"true"===e&&(this.overlayComponent=new B(this.elements.overlay).init({externalObserver:!0}))}}applyVideoContainerStyle(){const e=this.element.dataset.videoLayout;e&&(this.element.style.height="fixed"===e?this.element.dataset.videoHeight:"100%",this.elements.videoContainer.style.height="fixed"===e?this.element.dataset.videoHeight:"100%",this.element.style.width="fixed"===e?this.element.dataset.videoWidth:"100%",this.elements.videoContainer.style.width="fixed"===e&&this.element.dataset.videoWidth<=window.innerWidth?this.element.dataset.videoWidth:"100%")}init(){this.elements={videoId:this.element.getAttribute("id"),overlay:this.element.querySelector(`.${Hc}__overlay`),playButton:this.element.querySelector(`.${Hc}__play-button`),inner:this.element.querySelector(`.${Hc}__inner`),videoContainer:this.element.querySelector(`.${Hc}__video`)}
2,this.source=this.element.dataset.videoSource,this.code=this.element.dataset.videoCode,this.isDataLayerEnabled=document.body.hasAttribute("data-cmp-data-layer-enabled"),this.dataLayer=this.isDataLayerEnabled?window.adobeDataLayer=window.adobeDataLayer||[]:void 0,this.lastProgressEventPercentage=0,this.applyVideoContainerStyle(),this.setupElements(),this.initLazyLoad()}});function Kc(e){const{formConditions:t}=e.dataset;if(t){const n=["radio","checkbox","select-one","select-multiple"],i=JSON.parse(t);i.forEach((t=>{[...e.closest("form").querySelectorAll(`[name='${t.triggerField}']`)].forEach((i=>{const r=n.includes(i.type)?"change":"blur";i.addEventListener(r,Qc.bind(null,e,t)),Qc(e,t,i)}))})),window.addEventListener("pageshow",(t=>{(t.persisted||window.performance&&2===window.performance.navigation.type)&&i.forEach((t=>{[...e.closest("form").querySelectorAll(`[name='${t.triggerField}']`)].forEach((n=>{Qc(e,t,n)}))}))}))}}function Qc(e,t,n){const i=function(e,t){let{value:n}=t;if("checkbox"===t.type){n=[];t.closest("form").querySelectorAll(`[name='${t.name}']`).forEach((e=>{"checkbox"===e.type&&e.checked&&n.push(e.value)}))}if("select-multiple"===t.type){n=[];const{options:e}=t;e.forEach((e=>{e.selected&&n.push(e.value)}))}"radio"!==t.type||t.checked||(n="");const i=e.targetValue||"";let r=n===i;Array.isArray(n)&&(r=n.includes(i)||0===n.length&&0===i.length);return"not-equal"===e.condition?!r:r}(t,n.target||n);t.actionVisible&&("show"===t.actionVisible?Jc(e,!i,!1):Jc(e,i,!1)),t.actionEnable&&("enable"===t.actionEnable?Zc(e,!i):Zc(e,i))}function Jc(e,t,n){if(e.classList.contains("cmp-form-fieldset")){t?e.classList.add("hidden"):e.classList.remove("hidden");const n=function(e){return e.querySelectorAll(".cmp-form-options, .cmp-form-text")}(e);return void[...n].forEach((e=>Jc(e,t,!0)))}[...eu(e)].forEach((i=>{const r=i,s=r.required||"true"===r.getAttribute("was-required");if(n?r.setAttribute("data-hidden-by-parent",t):r.setAttribute("data-hidden-by-self",t),t&&!e.classList.contains("hidden"))e.classList.add("hidden"),r.setAttribute("was-required",s),r.setAttribute("data-prev-value",r.value),r.value="",r.required=!1;else if(!t){if(!("true"!==r.getAttribute("data-hidden-by-parent")&&"true"!==r.getAttribute("data-hidden-by-self")))return;e.classList.remove("hidden"),s&&(r.required=!0);const t=r.getAttribute("data-prev-value");t&&(r.value=t)}}))}function Zc(e,t){const n=e.classList.contains("cmp-form-fieldset");[...eu(e)].forEach((e=>{const i=e;if(n?i.setAttribute("data-disabled-by-parent",t):i.setAttribute("data-disabled-by-self",t),t&&!i.disabled)i.disabled=!0,i.readOnly=!0;else if(!t){if(!("true"!==i.getAttribute("data-disabled-by-parent")&&"true"!==i.getAttribute("data-disabled-by-self")))return;i.disabled=!1,i.readOnly=!1}}))}function eu(e){return e.querySelectorAll("select, textarea, input")}s(".cmp-form",class extends e{initializeIntersectionObserver(){const e={root:null,rootMargin:"0px",threshold:1},t=new IntersectionObserver((n=>{n[0].intersectionRatio<e.threshold||(t.disconnect(),this.fireFormInViewEvent())}),e);t.observe(this.elements.form)}fireFormInViewEvent(){this.isDataLayerEnabled&&this.dataLayer.push({event:"formView",eventInfo:{formName:this.formName,formType:this.actionType}})}fireFormStartEvent(){this.isDataLayerEnabled&&this.dataLayer.push({event:"formStart",eventInfo:{formName:this.formName,formType:this.actionType}})}fireFormSubmitEvent(){this.isDataLayerEnabled&&this.dataLayer.push({event:"formSubmit",eventInfo:{formName:this.formName,formType:this.actionType}})}addEventListeners(){this.elements.form.addEventListener("input",(()=>{!1===this.formStarted&&(this.fireFormStartEvent(),this.formStarted=!0)})),this.elements.dropdown&&this.elements.dropdown.addEventListener("click",(()=>{!1===this.formStarted&&(this.fireFormStartEvent(),this.formStarted=!0)})),this.elements.form.addEventListener("submit",(()=>{this.fireFormSubmitEvent()}))}init(){this.isDataLayerEnabled=document.body.hasAttribute("data-cmp-data-layer-enabled"),this.dataLayer=window.adobeDataLayer||[],this.actionType=this.element.dataset.actionType,this.formName=this.element.getAttribute("name"),this.formStarted=!1,this.elements={form:this.element,dropdown:this.element.querySelector(".cmp-form-options__field--drop-down")},_()||(this.initializeIntersectionObserver(),this.addEventListeners())}});s(".cmp-form-fieldset",class extends e{init(){Kc(this.element)}});n(630);var tu=n(992),nu=n(442),iu=n.n(nu),ru=n(424),su=n.n(ru),ou=n(460),au=n.n(ou);s(".cmp-file-upload",class extends e{setupFilePond(){const e=this,t=this.element.querySelector(".cmp-file-upload__container"),n=t.dataset.acceptedfiletypes.split(",");tu.registerPlugin(au(),iu(),su()),this.filepond=tu.create({...t.dataset,acceptedFileTypes:n,disabled:`${_()}`,onupdatefiles:t=>{if(t.length>0&&e.isRequired){t.every((e=>e.status===tu.FileStatus.PROCESSING_COMPLETE||e.status===tu.FileStatus.IDLE))||e.requireInput()}}}),this.filepond.onOnce("init",(()=>{const t=e.element.querySelector(".cmp-file-upload__input input");t&&e.isRequired&&t.addEventListener("invalid",e.onInvalid.bind(e))})),this.filepond.appendTo(t)}requireInput(){const e=this.element.querySelector(".cmp-file-upload__input input");e&&(e.required=!0)}onInvalid(e){e.preventDefault();const t=this.element.querySelector(".cmp-file-upload__required-message");e.target.validity.valueMissing&&t&&t.classList.add("show");const n=e.target.closest("form.cmp-form");e.target===n.querySelector(":invalid")&&e.target.scrollIntoView()}init(){this.elements={container:this.element.querySelector(".cmp-file-upload__container")},this.isRequired=this.elements.container.dataset.required,this.setupFilePond(),Kc(this.element)}});s(".cmp-form-options",class extends e{isChecked(){for(let e=0;e<this.checkboxLength;e+=1)if(this.elements.checkboxes[e].checked)return!0;return!1}checkValidity(e){!0!==e&&(this.checkboxOrFormSubmitInteraction=!0),this.isChecked()?(this.elements.requiredMessage.classList.remove("cmp-form-options__required-message--show"),this.firstCheckbox.removeAttribute("required")):(this.checkboxOrFormSubmitInteraction&&this.elements.requiredMessage.classList.add("cmp-form-options__required-message--show"),this.firstCheckbox.setAttribute("required",""))}init(){this.elements={checkboxes:this.element.querySelectorAll("input"),requiredMessage:this.element.querySelector(".cmp-form-options__required-message")},this.isRequired=this.element.hasAttribute("data-cmp-required"),this.checkboxLength=this.elements.checkboxes.length,this.firstCheckbox=this.checkboxLength>0?this.elements.checkboxes[0]:null,this.checkboxOrFormSubmitInteraction=!1,this.firstCheckbox&&this.isRequired&&(this.elements.checkboxes.forEac
2h((e=>{e.addEventListener("change",this.checkValidity.bind(this))})),this.elements.checkboxes[0].addEventListener("invalid",this.checkValidity.bind(this)),this.checkValidity(!0)),Kc(this.element)}}),n(807);const lu=[];window.recaptchaLoaded=()=>{[...lu].forEach((e=>{e.renderWidget()}))};class cu extends e{addEventListeners(){this.form.onsubmit=e=>{let t=!1;return[...this.element.getElementsByClassName("g-recaptcha-response")].forEach((e=>{null!=e.value&&e.value.length>0&&(t=!0)})),!!t||(window.grecaptcha.execute(this.recaptchaWidgetId),e.preventDefault(),!1)},window[this.recaptchaCallbackFunctionName]=()=>{this.form.submit()}}init(){this.recaptchaCallbackFunctionName=`recaptchaCallback${p+=1,p}`,this.element.setAttribute("data-callback",this.recaptchaCallbackFunctionName),this.form=this.element.closest("form"),this.addEventListeners(),lu.push(this)}renderWidget(){this.recaptchaWidgetId=window.grecaptcha.render(this.element,{},!0)}}_()||s(".cmp-recaptcha",cu),(()=>{const e="cmp",t="formText",n={self:`[data-${e}-is="${t}"]`},i={constraintMessage:{},requiredMessage:{}};function r(n){const i=n.dataset,r=[];let s=t;s=s.charAt(0).toUpperCase()+s.slice(1);const o=["is",`hook${s}`];
2return Object.keys(i).forEach((t=>{const n=i[t];if(0===t.indexOf(e)){let i=t.slice(e.length);i=i.charAt(0).toLowerCase()+i.substring(1),-1===o.indexOf(i)&&(r[i]=n)}})),r}function s(t){t.element&&t.element.removeAttribute(`data-${e}-is`),this.cacheElements(t.element),this.setupProperties(t.options),this.elements.input.addEventListener("invalid",this.onInvalid.bind(this)),this.elements.input.addEventListener("input",this.onInput.bind(this)),Kc(t.element)}function o(){document.querySelectorAll(n.self).forEach((e=>{new s({element:e,options:r(e)})}));const e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,t=document.querySelector("body");new e((e=>{e.forEach((e=>{const t=[].slice.call(e.addedNodes);t.length>0&&t.forEach((e=>{if(e.querySelectorAll){[].slice.call(e.querySelectorAll(n.self)).forEach((e=>{new s({element:e,options:r(e)})}))}}))}))})).observe(t,{subtree:!0,childList:!0,characterData:!0})}s.prototype.onInvalid=function(e){e.target.setCustomValidity(""),e.target.validity.typeMismatch?this.properties.constraintMessage&&e.target.setCustomValidity(this.properties.constraintMessage):e.target.validity.valueMissing&&this.properties.requiredMessage&&e.target.setCustomValidity(this.properties.requiredMessage)},s.prototype.onInput=function(e){e.target.setCustomValidity("")},s.prototype.cacheElements=function(n){this.elements={},this.elements.self=n;this.elements.self.querySelectorAll(`[data-${e}-hook-form-text]`).forEach((n=>{let i=t;i=i.charAt(0).toUpperCase()+i.slice(1);const r=n.dataset[`${e}Hook${i}`];this.elements[r]=n}))},s.prototype.setupProperties=function(e){this.properties={}
2,Object.keys(i).forEach((t=>{const n=i[t];e&&null!=e[t]?n&&"function"==typeof n.transform?this.properties[t]=n.transform(e[t]):this.properties[t]=e[t]:this.properties[t]=i[t].default}))},"loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o)})();const uu="cmp-footer";s(`.${uu}`,class extends e{initCoreImage(){const{backgroundImage:e}=this.elements.container.dataset;"true"===e&&new B(this.elements.container).init()}init(){this.elements={container:this.element.querySelector(`.${uu}__container`)},this.initCoreImage();const e=document.querySelector('meta[name="publish-date"]'),t=document.querySelector("#spnPageLastUpdated");e&&t&&(t.textContent=e.content)}});const du=document.getElementById("copyright-footer-text");du&&du.innerText&&(du.innerText=du.innerText.replace("#[currentYear]#",(new Date).getFullYear()));const hu="cmp-header";s(`.${hu}`,class extends e{isNavOpen(){return this.elements.hamburger.classList.contains("open")&&this.elements.nav.classList.contains("open")&&this.element.classList.contains("open")}toggleMobileNav(){this.elements.body.classList.toggle("mobile-nav-open"),this.elements.hamburger.classList.toggle("open"),this.elements.nav.classList.toggle("open"),this.element.classList.toggle("open")}removeOpenClasses(){[...this.element.getElementsByClassName("open")].map((e=>e.classList.remove("open")))}checkNavCollapse(){if(!this.enableCollapse)return;if(this.windowWidth()>=o)return void this.element.classList.remove("collapsed");let e;if(null===this.navCollapseWidth){const t=this.elements.nav?this.elements.nav.offsetWidth:0,n=this.elements.navSearch?this.elements.navSearch.offsetWidth:0,i=window.getComputedStyle(this.element);let r=parseInt(i.getPropertyValue("padding-left").replace("px",""),10)+parseInt(i.getPropertyValue("padding-right").replace("px",""),10);r=r+r/2+1,e=t+n+r,this.windowWidth()<=e&&(this.navCollapseWidth=e)}this.windowWidth()<=this.navCollapseWidth&&null!==this.navCollapseWidth?this.element.classList.add("collapsed"):this.element.classList.remove("collapsed")}verifyNavDisplay(){const e=this.elements.navSearch.querySelector(`.${hu}__nav`).childElementCount>0,t=this.elements.navSearch.querySelector(`.${hu}__search`).childElementCount>0;!this.elements.hamburgerWrapper||e||t||(this.elements.hamburgerWrapper.style.display="none",this.displayMobileNav=!1)}addEventListeners(){const e=this;function t(t){t.preventDefault();const n=e.elements.hamburgerWrapper;"true"===n.getAttribute("aria-expanded")?n.setAttribute("aria-expanded","false"):n.setAttribute("aria-expanded","true"),e.toggleMobileNav()}this.elements.hamburgerWrapper.addEventListener("click",t),window.addEventListener("resize",O((()=>(e.checkNavCollapse(),void(e.windowWidth()>o&&e.isNavOpen()&&(e.toggleMobileNav(),e.removeOpenClasses())))),100)),document.addEventListener("keydown",(e=>{"Escape"===e.key&&this.elements.nav.classList.contains("open")&&t(e)})),this.elements.skipNavBtn.addEventListener("click",(e=>{this.elements.nav.classList.contains("open")&&t(e),"/"===window.location.pathname?this.elements.mainContent.querySelector("a").focus():this.elements.mainContent.querySelectorAll(".section-wrapper")[1].querySelector("a").focus()})),this.elements.skipNavBtn.addEventListener("keydown",(e=>{"Enter"===e.key&&(this.elements.nav.classList.contains("open")&&t(e),"/"===window.location.pathname?this.elements.mainContent.querySelector("a").focus():this.elements.mainContent.querySelectorAll(".section-wrapper")[1].querySelector("a").focus())}))}init(){this.elements={body:document.querySelector("body"),skipNavBtn:document.getElementById("skip-nav"),mainContent:document.getElementById("main-content"),hamburgerWrapper:this.element.querySelector(".hamburger-wrapper"),hamburger:this.element.querySelector(".mobile-nav-icon"),nav:this.element.querySelector(`.${hu}__navbar`),navSearch:this.element.querySelector(`.${hu}__nav-search`),searchIcon:this.element.querySelector(".btn-search"),searchInput:this.element.querySelector(".cmp-search-box__input")},this.windowWidth=()=>window.innerWidth,this.displayMobileNav=!0,this.enableCollapse=!0,this.navCollapseWidth=null,this.verifyNavDisplay(),(()=>{const e=document.getElementsByTagName("body")[0],t=n=>{"Tab"===n.code&&(document.body.classList.remove("no-focus-outline"),e.removeEventListener("keyup",t))};e.addEventListener("keyup",t),e.classList.add("no-focus-outline")})(),this.displayMobileNav&&(this.addEventListeners(),this.checkNavCollapse())}});n(296),n(558);const fu="cmp-color";s(`.${fu}`,class extends e{addEventListeners(){this.elements.clickCopyLinks.forEach((e=>{e.addEventListener("click",(async()=>{const t=e.innerText;if(t)try{await navigator.clipboard.writeText(t),e.classList.add(`${fu}__click-copy--confirmed`),setTimeout((()=>{e.classList.remove(`${fu}__click-copy--confirmed`)}),1e3)}catch(e){console.error(e.message)}}))}))}init(){this.elements={clickCopyLinks:this.element.querySelectorAll(`.${fu}__click-copy`)},this.addEventListeners()}});n(196),n(155)}(),amerihealth_caritas=i}();
3//# sourceMappingURL=site.bundle.js.map

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