@quandis/qbo4.ui 4.0.1-CI-20240425-185108 → 4.0.1-CI-20240425-194927

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see qbo4.ui.min.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.qbo4=t():(e.qbo4=e.qbo4||{},e.qbo4.ui=t())}(self,(()=>(()=>{var e={630:(e,t,r)=>{var o;!function(e){!function(t){var o="object"==typeof globalThis?globalThis:"object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=i(e);function i(e,t){return function(r,o){Object.defineProperty(e,r,{configurable:!0,writable:!0,value:o}),t&&t(r,o)}}void 0!==o.Reflect&&(n=i(o.Reflect,n)),function(e,t){var r=Object.prototype.hasOwnProperty,o="function"==typeof Symbol,n=o&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=o&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,a={__proto__:[]}instanceof Array,l=!s&&!a,c={create:s?function(){return U(Object.create(null))}:a?function(){return U({__proto__:null})}:function(){return U({})},has:l?function(e,t){return r.call(e,t)}:function(e,t){return t in e},get:l?function(e,t){return r.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),d="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],r=function(){function e(e,t,r){this._index=0,this._keys=e,this._values=t,this._selector=r}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var r=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var r=this._find(e,!0);return this._values[r]=t,this},t.prototype.delete=function(t){var r=this._find(t,!1);if(r>=0){for(var o=this._keys.length,n=r+1;n<o;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,D(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new r(this._keys,this._values,o)},t.prototype.values=function(){return new r(this._keys,this._values,n)},t.prototype.entries=function(){return new r(this._keys,this._values,s)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){if(!D(this._cacheKey,e)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(D(this._keys[r],e)){this._cacheIndex=r;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function o(e,t){return e}function n(e,t){return t}function s(e,t){return[e,t]}}(),p="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=16,t=c.create(),o=n();return function(){function e(){this._key=n()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&c.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?c.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=n()},e}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(e,t){if(!r.call(e,o)){if(!t)return;Object.defineProperty(e,o,{value:c.create()})}return e[o]}function s(e,t){for(var r=0;r<t;++r)e[r]=255*Math.random()|0;return e}function a(){var t=function(e){if("function"==typeof Uint8Array){var t=new Uint8Array(e);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):s(t,e),t}return s(new Array(e),e)}(e);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var r="",o=0;o<e;++o){var n=t[o];4!==o&&6!==o&&8!==o||(r+="-"),n<16&&(r+="0"),r+=n.toString(16).toLowerCase()}return r}}(),b=o?Symbol.for("@reflect-metadata:registry"):void 0,h=function(){var e;return!S(b)&&T(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[b]),S(e)&&(e=function(){var e,r,o,n;S(b)||void 0===t.Reflect||b in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,r=e.hasOwnMetadata,o=e.getOwnMetadata,n=e.getOwnMetadataKeys,i=e.deleteMetadata,s=new f;return{isProviderFor:function(e,t){var r=s.get(e);return!(S(r)||!r.has(t))||!!n(e,t).length&&(S(r)&&(r=new p,s.set(e,r)),r.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:o,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i}}(t.Reflect));var i=new f,s={registerProvider:a,getProvider:c,setProvider:h};return s;function a(t){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case S(r):r=t;break;case r===t:break;case S(o):o=t;break;case o===t:break;default:void 0===n&&(n=new p),n.add(t)}}function l(t,i){if(!S(r)){if(r.isProviderFor(t,i))return r;if(!S(o)){if(o.isProviderFor(t,i))return r;if(!S(n))for(var s=P(n);;){var a=N(s);if(!a)return;var l=M(a);if(l.isProviderFor(t,i))return z(s),l}}}if(!S(e)&&e.isProviderFor(t,i))return e}function c(e,t){var r,o=i.get(e);return S(o)||(r=o.get(t)),S(r)?(S(r=l(e,t))||(S(o)&&(o=new d,i.set(e,o)),o.set(t,r)),r):r}function u(e){if(S(e))throw new TypeError;return r===e||o===e||!S(n)&&n.has(e)}function h(e,t,r){if(!u(r))throw new Error("Metadata provider not registered.");var o=c(e,t);if(o!==r){if(!S(o))return!1;var n=i.get(e);S(n)&&(n=new d,i.set(e,n)),n.set(t,r)}return!0}}()),!S(b)&&T(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),g=function(e){var t=new f,r={isProviderFor:function(e,r){var o=t.get(e);return!S(o)&&o.has(r)},OrdinaryDefineOwnMetadata:function(e,t,r,n){o(r,n,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,r){var n=o(t,r,!1);return!S(n)&&O(n.has(e))},OrdinaryGetOwnMetadata:function(e,t,r){var n=o(t,r,!1);if(!S(n))return n.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var r=[],n=o(e,t,!1);if(S(n))return r;for(var i=P(n.keys()),s=0;;){var a=N(i);if(!a)return r.length=s,r;var l=M(a);try{r[s]=l}catch(e){try{z(i)}finally{throw e}}s++}},OrdinaryDeleteMetadata:function(e,r,n){var i=o(r,n,!1);if(S(i))return!1;if(!i.delete(e))return!1;if(0===i.size){var s=t.get(r);S(s)||(s.delete(n),0===s.size&&t.delete(s))}return!0}};return h.registerProvider(r),r;function o(o,n,i){var s=t.get(o),a=!1;if(S(s)){if(!i)return;s=new d,t.set(o,s),a=!0}var l=s.get(n);if(S(l)){if(!i)return;if(l=new d,s.set(n,l),!e.setProvider(o,n,r))throw s.delete(n),a&&t.delete(o),new Error("Wrong provider for target.")}return l}}(h);function v(e,t,r){if(m(e,t,r))return!0;var o=q(t);return!E(o)&&v(e,o,r)}function m(e,t,r){var o=H(t,r,!1);return!S(o)&&O(o.OrdinaryHasOwnMetadata(e,t,r))}function y(e,t,r){if(m(e,t,r))return w(e,t,r);var o=q(t);return E(o)?void 0:y(e,o,r)}function w(e,t,r){var o=H(t,r,!1);if(!S(o))return o.OrdinaryGetOwnMetadata(e,t,r)}function _(e,t,r,o){H(r,o,!0).OrdinaryDefineOwnMetadata(e,t,r,o)}function x(e,t){var r=k(e,t),o=q(e);if(null===o)return r;var n=x(o,t);if(n.length<=0)return r;if(r.length<=0)return n;for(var i=new p,s=[],a=0,l=r;a<l.length;a++){var c=l[a];i.has(c)||(i.add(c),s.push(c))}for(var u=0,d=n;u<d.length;u++)c=d[u],i.has(c)||(i.add(c),s.push(c));return s}function k(e,t){var r=H(e,t,!1);return r?r.OrdinaryOwnMetadataKeys(e,t):[]}function C(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function S(e){return void 0===e}function E(e){return null===e}function T(e){return"object"==typeof e?null!==e:"function"==typeof e}function A(e,t){switch(C(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var r=3===t?"string":5===t?"number":"default",o=j(e,n);if(void 0!==o){var i=o.call(e,r);if(T(i))throw new TypeError;return i}return function(e,t){if("string"===t){var r=e.toString;if(L(r)&&!T(n=r.call(e)))return n;if(L(o=e.valueOf)&&!T(n=o.call(e)))return n}else{var o;if(L(o=e.valueOf)&&!T(n=o.call(e)))return n;var n,i=e.toString;if(L(i)&&!T(n=i.call(e)))return n}throw new TypeError}(e,"default"===r?"number":r)}function O(e){return!!e}function $(e){var t=A(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function I(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function L(e){return"function"==typeof e}function R(e){return"function"==typeof e}function D(e,t){return e===t||e!=e&&t!=t}function j(e,t){var r=e[t];if(null!=r){if(!L(r))throw new TypeError;return r}}function P(e){var t=j(e,i);if(!L(t))throw new TypeError;var r=t.call(e);if(!T(r))throw new TypeError;return r}function M(e){return e.value}function N(e){var t=e.next();return!t.done&&t}function z(e){var t=e.return;t&&t.call(e)}function q(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===u)return t;if(t!==u)return t;var r=e.prototype,o=r&&Object.getPrototypeOf(r);if(null==o||o===Object.prototype)return t;var n=o.constructor;return"function"!=typeof n||n===e?t:n}function H(e,t,r){var o=h.getProvider(e,t);if(!S(o))return o;if(r){if(h.setProvider(e,t,g))return g;throw new Error("Illegal state.")}}function U(e){return e.__=void 0,delete e.__,e}e("decorate",(function(e,t,r,o){if(S(r)){if(!I(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var r=e.length-1;r>=0;--r){var o=(0,e[r])(t);if(!S(o)&&!E(o)){if(!R(o))throw new TypeError;t=o}}return t}(e,t)}if(!I(e))throw new TypeError;if(!T(t))throw new TypeError;if(!T(o)&&!S(o)&&!E(o))throw new TypeError;return E(o)&&(o=void 0),function(e,t,r,o){for(var n=e.length-1;n>=0;--n){var i=(0,e[n])(t,r,o);if(!S(i)&&!E(i)){if(!T(i))throw new TypeError;o=i}}return o}(e,t,r=$(r),o)})),e("metadata",(function(e,t){return function(r,o){if(!T(r))throw new TypeError;if(!S(o)&&!function(e){switch(C(e)){case 3:case 4:return!0;default:return!1}}(o))throw new TypeError;_(e,t,r,o)}})),e("defineMetadata",(function(e,t,r,o){if(!T(r))throw new TypeError;return S(o)||(o=$(o)),_(e,t,r,o)})),e("hasMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return S(r)||(r=$(r)),v(e,t,r)})),e("hasOwnMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return S(r)||(r=$(r)),m(e,t,r)})),e("getMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return S(r)||(r=$(r)),y(e,t,r)})),e("getOwnMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return S(r)||(r=$(r)),w(e,t,r)})),e("getMetadataKeys",(function(e,t){if(!T(e))throw new TypeError;return S(t)||(t=$(t)),x(e,t)})),e("getOwnMetadataKeys",(function(e,t){if(!T(e))throw new TypeError;return S(t)||(t=$(t)),k(e,t)})),e("deleteMetadata",(function(e,t,r){if(!T(t))throw new TypeError;if(S(r)||(r=$(r)),!T(t))throw new TypeError;S(r)||(r=$(r));var o=H(t,r,!1);return!S(o)&&o.OrdinaryDeleteMetadata(e,t,r)}))}(n,o),void 0===o.Reflect&&(o.Reflect=e)}()}(o||(o={}))}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.r(o),r.d(o,{ApiServiceComponent:()=>kw,Dependency:()=>hw,DependencyValidator:()=>ww,DependencyValidatorOptions:()=>gw,DependencyValidatorOptionsToken:()=>vw,EmailValidator:()=>fw,ExistsValidator:()=>bw,IApiServiceToken:()=>ow,QboBadge:()=>Ow,QboContact:()=>Lw,QboDataList:()=>jw,QboDocViewer:()=>Nw,QboFormElement:()=>Uw,QboMainMenu:()=>tT,QboMarkdown:()=>nT,QboMicrophone:()=>lT,QboPopover:()=>dT,QboPopup:()=>mT,QboPopupListener:()=>_T,QboSelect:()=>CT,QboSideBar:()=>TT,QboTable:()=>$T,QboValidate:()=>RT,RestApiService:()=>cw,ValidateToken:()=>iw,ZipCodeValidator:()=>pw,elementClearValue:()=>MT,elementOptions:()=>DT,elementResetValue:()=>PT,elementSelectorAll:()=>jT,getApiService:()=>nw,getArray:()=>sw,matches:()=>NT,registerRestApi:()=>uw,replicate:()=>lw,services:()=>I,substitute:()=>aw});var e,t={};r.r(t),r.d(t,{afterMain:()=>l_,afterRead:()=>i_,afterWrite:()=>d_,applyStyles:()=>m_,arrow:()=>N_,auto:()=>Kw,basePlacements:()=>Xw,beforeMain:()=>s_,beforeRead:()=>o_,beforeWrite:()=>c_,bottom:()=>Fw,clippingParents:()=>Qw,computeStyles:()=>U_,createPopper:()=>vx,createPopperBase:()=>gx,createPopperLite:()=>mx,detectOverflow:()=>ox,end:()=>Jw,eventListeners:()=>F_,flip:()=>nx,hide:()=>ax,left:()=>Ww,main:()=>a_,modifierPhases:()=>p_,offset:()=>lx,placements:()=>r_,popper:()=>Zw,popperGenerator:()=>hx,popperOffsets:()=>cx,preventOverflow:()=>ux,read:()=>n_,reference:()=>e_,right:()=>Bw,start:()=>Gw,top:()=>Vw,variationPlacements:()=>t_,viewport:()=>Yw,write:()=>u_}),r(630),function(e){e[e.Transient=0]="Transient",e[e.Singleton=1]="Singleton",e[e.ResolutionScoped=2]="ResolutionScoped",e[e.ContainerScoped=3]="ContainerScoped"}(e||(e={}));const n=e;var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},i(e,t)};function s(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function a(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}function u(e){return!!e.useClass}function d(e){return!!e.useFactory}var p=function(){function e(e){this.wrap=e,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return e.prototype.createProxy=function(e){var t,r=this,o=!1;return new Proxy({},this.createHandler((function(){return o||(t=e(r.wrap()),o=!0),t})))},e.prototype.createHandler=function(e){var t={};return this.reflectMethods.forEach((function(r){t[r]=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t[0]=e(),Reflect[r].apply(void 0,c(t))}})),t},e}();function f(e){return"string"==typeof e||"symbol"==typeof e}function b(e){return"object"==typeof e&&"token"in e&&"transform"in e}function h(e){return!!e.useToken}function g(e){return null!=e.useValue}const v=function(){function e(){this._registryMap=new Map}return e.prototype.entries=function(){return this._registryMap.entries()},e.prototype.getAll=function(e){return this.ensure(e),this._registryMap.get(e)},e.prototype.get=function(e){this.ensure(e);var t=this._registryMap.get(e);return t[t.length-1]||null},e.prototype.set=function(e,t){this.ensure(e),this._registryMap.get(e).push(t)},e.prototype.setAll=function(e,t){this._registryMap.set(e,t)},e.prototype.has=function(e){return this.ensure(e),this._registryMap.get(e).length>0},e.prototype.clear=function(){this._registryMap.clear()},e.prototype.ensure=function(e){this._registryMap.has(e)||this._registryMap.set(e,[])},e}(),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(v),y=function(){this.scopedResolutions=new Map};var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(v),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(v);const x=function(){this.preResolution=new w,this.postResolution=new _};var k=new Map,C=function(){function e(e){this.parent=e,this._registry=new m,this.interceptors=new x,this.disposed=!1,this.disposables=new Set}return e.prototype.register=function(e,t,r){var o;if(void 0===r&&(r={lifecycle:n.Transient}),this.ensureNotDisposed(),o=function(e){return u(e)||g(e)||h(e)||d(e)}(t)?t:{useClass:t},h(o))for(var i=[e],s=o;null!=s;){var a=s.useToken;if(i.includes(a))throw new Error("Token registration cycle detected! "+c(i,[a]).join(" -> "));i.push(a);var l=this._registry.get(a);s=l&&h(l.provider)?l.provider:null}if((r.lifecycle===n.Singleton||r.lifecycle==n.ContainerScoped||r.lifecycle==n.ResolutionScoped)&&(g(o)||d(o)))throw new Error('Cannot use lifecycle "'+n[r.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(e,{provider:o,options:r}),this},e.prototype.registerType=function(e,t){return this.ensureNotDisposed(),f(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})},e.prototype.registerInstance=function(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})},e.prototype.registerSingleton=function(e,t){if(this.ensureNotDisposed(),f(e)){if(f(t))return this.register(e,{useToken:t},{lifecycle:n.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:n.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=e;return t&&!f(t)&&(r=t),this.register(e,{useClass:r},{lifecycle:n.Singleton})},e.prototype.resolve=function(e,t){void 0===t&&(t=new y),this.ensureNotDisposed();var r=this.getRegistration(e);if(!r&&f(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"Single"),r){var o=this.resolveRegistration(r,t);return this.executePostResolutionInterceptor(e,o,"Single"),o}if(function(e){return"function"==typeof e||e instanceof p}(e))return o=this.construct(e,t),this.executePostResolutionInterceptor(e,o,"Single"),o;throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},e.prototype.executePreResolutionInterceptor=function(e,t){var r,o;if(this.interceptors.preResolution.has(e)){var n=[];try{for(var i=a(this.interceptors.preResolution.getAll(e)),s=i.next();!s.done;s=i.next()){var l=s.value;"Once"!=l.options.frequency&&n.push(l),l.callback(e,t)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}this.interceptors.preResolution.setAll(e,n)}},e.prototype.executePostResolutionInterceptor=function(e,t,r){var o,n;if(this.interceptors.postResolution.has(e)){var i=[];try{for(var s=a(this.interceptors.postResolution.getAll(e)),l=s.next();!l.done;l=s.next()){var c=l.value;"Once"!=c.options.frequency&&i.push(c),c.callback(e,t,r)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}this.interceptors.postResolution.setAll(e,i)}},e.prototype.resolveRegistration=function(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===n.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);var r,o=e.options.lifecycle===n.Singleton,i=e.options.lifecycle===n.ContainerScoped,s=o||i;return r=g(e.provider)?e.provider.useValue:h(e.provider)?s?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):u(e.provider)?s?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):d(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===n.ResolutionScoped&&t.scopedResolutions.set(e,r),r},e.prototype.resolveAll=function(e,t){var r=this;void 0===t&&(t=new y),this.ensureNotDisposed();var o=this.getAllRegistrations(e);if(!o&&f(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"All"),o){var n=o.map((function(e){return r.resolveRegistration(e,t)}));return this.executePostResolutionInterceptor(e,n,"All"),n}var i=[this.construct(e,t)];return this.executePostResolutionInterceptor(e,i,"All"),i},e.prototype.isRegistered=function(e,t){return void 0===t&&(t=!1),this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)},e.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},e.prototype.clearInstances=function(){var e,t;this.ensureNotDisposed();try{for(var r=a(this._registry.entries()),o=r.next();!o.done;o=r.next()){var n=l(o.value,2),i=n[0],s=n[1];this._registry.setAll(i,s.filter((function(e){return!g(e.provider)})).map((function(e){return e.instance=void 0,e})))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.createChildContainer=function(){var t,r;this.ensureNotDisposed();var o=new e(this);try{for(var i=a(this._registry.entries()),s=i.next();!s.done;s=i.next()){var c=l(s.value,2),u=c[0],d=c[1];d.some((function(e){return e.options.lifecycle===n.ContainerScoped}))&&o._registry.setAll(u,d.map((function(e){return e.options.lifecycle===n.ContainerScoped?{provider:e.provider,options:e.options}:e})))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o},e.prototype.beforeResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.preResolution.set(e,{callback:t,options:r})},e.prototype.afterResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.postResolution.set(e,{callback:t,options:r})},e.prototype.dispose=function(){return function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{l(o.next(e))}catch(e){i(e)}}function a(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((o=o.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var e;return function(e,t){var r,o,n,i,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){s.label=i[1];break}if(6===i[0]&&s.label<n[1]){s.label=n[1],n=i;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(i);break}n[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(t){switch(t.label){case 0:return this.disposed=!0,e=[],this.disposables.forEach((function(t){var r=t.dispose();r&&e.push(r)})),[4,Promise.all(e)];case 1:return t.sent(),[2]}}))}))},e.prototype.getRegistration=function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null},e.prototype.getAllRegistrations=function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null},e.prototype.construct=function(e,t){var r=this;if(e instanceof p)return e.createProxy((function(e){return r.resolve(e,t)}));var o,n=function(){var o=k.get(e);if(!o||0===o.length){if(0===e.length)return new e;throw new Error('TypeInfo not known for "'+e.name+'"')}var n=o.map(r.resolveParams(t,e));return new(e.bind.apply(e,c([void 0],n)))}();return"function"!=typeof(o=n).dispose||o.dispose.length>0||this.disposables.add(n),n},e.prototype.resolveParams=function(e,t){var r=this;return function(o,n){var i,s,a,u;try{return"object"==typeof(u=o)&&"token"in u&&"multiple"in u?b(o)?o.multiple?(i=r.resolve(o.transform)).transform.apply(i,c([r.resolveAll(o.token)],o.transformArgs)):(s=r.resolve(o.transform)).transform.apply(s,c([r.resolve(o.token,e)],o.transformArgs)):o.multiple?r.resolveAll(o.token):r.resolve(o.token,e):b(o)?(a=r.resolve(o.transform,e)).transform.apply(a,c([r.resolve(o.token,e)],o.transformArgs)):r.resolve(o,e)}catch(e){throw new Error(function(e,t,r){var o,n,i=l(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(e,t,r){return void 0===r&&(r=" "),c([e],t.message.split("\n").map((function(e){return r+e}))).join("\n")}("Cannot inject the dependency "+(n=t,(null===(o=void 0===i?null:i)?"at position #"+n:'"'+o.split(",")[n].trim()+'" at position #'+n)+' of "')+e.name+'" constructor. Reason:',r)}(t,n,e))}}},e.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},e}(),S=new C,E="injectionTokens";function T(e,t){return function(r,o,n){var i=Reflect.getOwnMetadata(E,r)||{};i[n]=t?{token:e,transform:t.transformToken,transformArgs:t.args||[]}:e,Reflect.defineMetadata(E,i,r)}}const A=function(e){return T(e)},O=function(){return function(e){k.set(e,function(e){var t=Reflect.getMetadata("design:paramtypes",e)||[],r=Reflect.getOwnMetadata(E,e)||{};return Object.keys(r).forEach((function(e){t[+e]=r[e]})),t}(e))}},$=function(e){return T({token:e,multiple:!0})};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.");window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new class{constructor(e,t){this.container=e,this.options=t}getService(e){return this.container.resolve(e)}}(S.createChildContainer(),{});const I=window.qbo4.services,L="IConfigurationSourceToken",R="IConfigurationToken";function*D(e,t=""){for(const[r,o]of Object.entries(e)){const e=t?`${t}:${r}`:r;if(Array.isArray(o))for(let t=0;t<o.length;t++){const r=o[t];"object"==typeof r&&null!==r?yield*D(r,`${e}:${t}`):yield{key:`${e}:${t}`,value:r}}else"object"==typeof o&&null!==o?yield*D(o,e):yield{key:e,value:o}}}class j{constructor(e){this.jsonConfig=e}getData(){return this.jsonConfig}*getValues(){yield*D(this.jsonConfig)}}class P{constructor(e){this.data=e}getSection(e){const t=e.split(":");let r=this.data;for(const e of t){if(!(e in r))return new P({});r=r[e]}return new P(r)}get(e){const t=e.split(":");let r=this.data;for(const e of t){if(!r||!(e in r))return{};r=r[e]}return r}bind(e){const t=new e;for(const e in this.data)this.data.hasOwnProperty(e)&&(t[e]=this.data[e]);return t}*getValues(){yield*D(this.data)}}let M=class extends P{constructor(e){super({}),this.sources=e,this.mergeConfigurations(e)}mergeConfigurations(e){e.forEach((e=>{const t=e.getData();this.data={...this.data,...t}}))}};var N,z;M=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([O(),(N=0,z=$(L),function(e,t){z(e,t,N)}),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[Array])],M),I.container.register(R,{useClass:M},{lifecycle:n.Singleton}),I.container.register(L,{useClass:class{getData(){return{}}*getValues(){yield*D({})}}},{lifecycle:n.Singleton});const q=globalThis,H=q.ShadowRoot&&(void 0===q.ShadyCSS||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,U=Symbol(),V=new WeakMap;class F{constructor(e,t,r){if(this._$cssResult$=!0,r!==U)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(H&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=V.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&V.set(t,e))}return e}toString(){return this.cssText}}const B=(e,...t)=>{const r=1===e.length?e[0]:t.reduce(((t,r,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[o+1]),e[0]);return new F(r,e,U)},W=H?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return(e=>new F("string"==typeof e?e:e+"",void 0,U))(t)})(e):e,{is:K,defineProperty:X,getOwnPropertyDescriptor:G,getOwnPropertyNames:J,getOwnPropertySymbols:Q,getPrototypeOf:Y}=Object,Z=globalThis,ee=Z.trustedTypes,te=ee?ee.emptyScript:"",re=Z.reactiveElementPolyfillSupport,oe=(e,t)=>e,ne={toAttribute(e,t){switch(t){case Boolean:e=e?te:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},ie=(e,t)=>!K(e,t),se={attribute:!0,type:String,converter:ne,reflect:!1,hasChanged:ie};Symbol.metadata??=Symbol("metadata"),Z.litPropertyMetadata??=new WeakMap;class ae extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=se){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(e,r,t);void 0!==o&&X(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){const{get:o,set:n}=G(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return o?.call(this)},set(t){const i=o?.call(this);n.call(this,t),this.requestUpdate(e,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??se}static _$Ei(){if(this.hasOwnProperty(oe("elementProperties")))return;const e=Y(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(oe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(oe("properties"))){const e=this.properties,t=[...J(e),...Q(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(W(e))}else void 0!==e&&t.push(W(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(H)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const r of t){const t=document.createElement("style"),o=q.litNonce;void 0!==o&&t.setAttribute("nonce",o),t.textContent=r.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){const r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(void 0!==o&&!0===r.reflect){const n=(void 0!==r.converter?.toAttribute?r.converter:ne).toAttribute(t,r.type);this._$Em=e,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(e,t){const r=this.constructor,o=r._$Eh.get(e);if(void 0!==o&&this._$Em!==o){const e=r.getPropertyOptions(o),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:ne;this._$Em=o,this[o]=n.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(r??=this.constructor.getPropertyOptions(e),!(r.hasChanged??ie)(this[e],t))return;this.P(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}ae.elementStyles=[],ae.shadowRootOptions={mode:"open"},ae[oe("elementProperties")]=new Map,ae[oe("finalized")]=new Map,re?.({ReactiveElement:ae}),(Z.reactiveElementVersions??=[]).push("2.0.4");const le=globalThis,ce=le.trustedTypes,ue=ce?ce.createPolicy("lit-html",{createHTML:e=>e}):void 0,de="$lit$",pe=`lit$${Math.random().toFixed(9).slice(2)}$`,fe="?"+pe,be=`<${fe}>`,he=document,ge=()=>he.createComment(""),ve=e=>null===e||"object"!=typeof e&&"function"!=typeof e,me=Array.isArray,ye="[ \t\n\f\r]",we=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_e=/-->/g,xe=/>/g,ke=RegExp(`>|${ye}(?:([^\\s"'>=/]+)(${ye}*=${ye}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Ce=/'/g,Se=/"/g,Ee=/^(?:script|style|textarea|title)$/i,Te=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Ae=Te(1),Oe=(Te(2),Symbol.for("lit-noChange")),$e=Symbol.for("lit-nothing"),Ie=new WeakMap,Le=he.createTreeWalker(he,129);function Re(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ue?ue.createHTML(t):t}const De=(e,t)=>{const r=e.length-1,o=[];let n,i=2===t?"<svg>":"",s=we;for(let t=0;t<r;t++){const r=e[t];let a,l,c=-1,u=0;for(;u<r.length&&(s.lastIndex=u,l=s.exec(r),null!==l);)u=s.lastIndex,s===we?"!--"===l[1]?s=_e:void 0!==l[1]?s=xe:void 0!==l[2]?(Ee.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=ke):void 0!==l[3]&&(s=ke):s===ke?">"===l[0]?(s=n??we,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?ke:'"'===l[3]?Se:Ce):s===Se||s===Ce?s=ke:s===_e||s===xe?s=we:(s=ke,n=void 0);const d=s===ke&&e[t+1].startsWith("/>")?" ":"";i+=s===we?r+be:c>=0?(o.push(a),r.slice(0,c)+de+r.slice(c)+pe+d):r+pe+(-2===c?t:d)}return[Re(e,i+(e[r]||"<?>")+(2===t?"</svg>":"")),o]};class je{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let n=0,i=0;const s=e.length-1,a=this.parts,[l,c]=De(e,t);if(this.el=je.createElement(l,r),Le.currentNode=this.el.content,2===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=Le.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(de)){const t=c[i++],r=o.getAttribute(e).split(pe),s=/([.?@])?(.*)/.exec(t);a.push({type:1,index:n,name:s[2],strings:r,ctor:"."===s[1]?qe:"?"===s[1]?He:"@"===s[1]?Ue:ze}),o.removeAttribute(e)}else e.startsWith(pe)&&(a.push({type:6,index:n}),o.removeAttribute(e));if(Ee.test(o.tagName)){const e=o.textContent.split(pe),t=e.length-1;if(t>0){o.textContent=ce?ce.emptyScript:"";for(let r=0;r<t;r++)o.append(e[r],ge()),Le.nextNode(),a.push({type:2,index:++n});o.append(e[t],ge())}}}else if(8===o.nodeType)if(o.data===fe)a.push({type:2,index:n});else{let e=-1;for(;-1!==(e=o.data.indexOf(pe,e+1));)a.push({type:7,index:n}),e+=pe.length-1}n++}}static createElement(e,t){const r=he.createElement("template");return r.innerHTML=e,r}}function Pe(e,t,r=e,o){if(t===Oe)return t;let n=void 0!==o?r._$Co?.[o]:r._$Cl;const i=ve(t)?void 0:t._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(e),n._$AT(e,r,o)),void 0!==o?(r._$Co??=[])[o]=n:r._$Cl=n),void 0!==n&&(t=Pe(e,n._$AS(e,t.values),n,o)),t}class Me{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,o=(e?.creationScope??he).importNode(t,!0);Le.currentNode=o;let n=Le.nextNode(),i=0,s=0,a=r[0];for(;void 0!==a;){if(i===a.index){let t;2===a.type?t=new Ne(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new Ve(n,this,e)),this._$AV.push(t),a=r[++s]}i!==a?.index&&(n=Le.nextNode(),i++)}return Le.currentNode=he,o}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Ne{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,o){this.type=2,this._$AH=$e,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Pe(this,e,t),ve(e)?e===$e||null==e||""===e?(this._$AH!==$e&&this._$AR(),this._$AH=$e):e!==this._$AH&&e!==Oe&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>me(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==$e&&ve(this._$AH)?this._$AA.nextSibling.data=e:this.T(he.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=je.createElement(Re(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(t);else{const e=new Me(o,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=Ie.get(e.strings);return void 0===t&&Ie.set(e.strings,t=new je(e)),t}k(e){me(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const n of e)o===t.length?t.push(r=new Ne(this.S(ge()),this.S(ge()),this,this.options)):r=t[o],r._$AI(n),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class ze{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,n){this.type=1,this._$AH=$e,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=$e}_$AI(e,t=this,r,o){const n=this.strings;let i=!1;if(void 0===n)e=Pe(this,e,t,0),i=!ve(e)||e!==this._$AH&&e!==Oe,i&&(this._$AH=e);else{const o=e;let s,a;for(e=n[0],s=0;s<n.length-1;s++)a=Pe(this,o[r+s],t,s),a===Oe&&(a=this._$AH[s]),i||=!ve(a)||a!==this._$AH[s],a===$e?e=$e:e!==$e&&(e+=(a??"")+n[s+1]),this._$AH[s]=a}i&&!o&&this.j(e)}j(e){e===$e?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class qe extends ze{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===$e?void 0:e}}class He extends ze{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==$e)}}class Ue extends ze{constructor(e,t,r,o,n){super(e,t,r,o,n),this.type=5}_$AI(e,t=this){if((e=Pe(this,e,t,0)??$e)===Oe)return;const r=this._$AH,o=e===$e&&r!==$e||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==$e&&(r===$e||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Ve{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Pe(this,e)}}const Fe=le.litHtmlPolyfillSupport;Fe?.(je,Ne),(le.litHtmlVersions??=[]).push("3.1.3");class Be extends ae{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,r)=>{const o=r?.renderBefore??t;let n=o._$litPart$;if(void 0===n){const e=r?.renderBefore??null;o._$litPart$=n=new Ne(t.insertBefore(ge(),e),e,void 0,r??{})}return n._$AI(e),n})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Oe}}Be._$litElement$=!0,Be.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Be});const We=globalThis.litElementPolyfillSupport;We?.({LitElement:Be}),(globalThis.litElementVersions??=[]).push("4.0.5");const Ke=e=>(t,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)},Xe={attribute:!0,type:String,converter:ne,reflect:!1,hasChanged:ie},Ge=(e=Xe,t,r)=>{const{kind:o,metadata:n}=r;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(r.name,e),"accessor"===o){const{name:o}=r;return{set(r){const n=t.get.call(this);t.set.call(this,r),this.requestUpdate(o,n,e)},init(t){return void 0!==t&&this.P(o,void 0,e),t}}}if("setter"===o){const{name:o}=r;return function(r){const n=this[o];t.call(this,r),this.requestUpdate(o,n,e)}}throw Error("Unsupported decorator location: "+o)};function Je(e){return(t,r)=>"object"==typeof r?Ge(e,t,r):((e,t,r)=>{const o=t.hasOwnProperty(r);return t.constructor.createProperty(r,o?{...e,wrapped:!0}:e),o?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}class Qe extends Be{static get formAssociated(){return!0}static{this.styles=B`
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.qbo4=t():(e.qbo4=e.qbo4||{},e.qbo4.ui=t())}(self,(()=>(()=>{var e={630:(e,t,r)=>{var o;!function(e){!function(t){var o="object"==typeof globalThis?globalThis:"object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=i(e);function i(e,t){return function(r,o){Object.defineProperty(e,r,{configurable:!0,writable:!0,value:o}),t&&t(r,o)}}void 0!==o.Reflect&&(n=i(o.Reflect,n)),function(e,t){var r=Object.prototype.hasOwnProperty,o="function"==typeof Symbol,n=o&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=o&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,a={__proto__:[]}instanceof Array,l=!s&&!a,c={create:s?function(){return U(Object.create(null))}:a?function(){return U({__proto__:null})}:function(){return U({})},has:l?function(e,t){return r.call(e,t)}:function(e,t){return t in e},get:l?function(e,t){return r.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),d="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],r=function(){function e(e,t,r){this._index=0,this._keys=e,this._values=t,this._selector=r}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var r=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var r=this._find(e,!0);return this._values[r]=t,this},t.prototype.delete=function(t){var r=this._find(t,!1);if(r>=0){for(var o=this._keys.length,n=r+1;n<o;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,D(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new r(this._keys,this._values,o)},t.prototype.values=function(){return new r(this._keys,this._values,n)},t.prototype.entries=function(){return new r(this._keys,this._values,s)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){if(!D(this._cacheKey,e)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(D(this._keys[r],e)){this._cacheIndex=r;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function o(e,t){return e}function n(e,t){return t}function s(e,t){return[e,t]}}(),p="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}(),b="function"==typeof WeakMap?WeakMap:function(){var e=16,t=c.create(),o=n();return function(){function e(){this._key=n()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&c.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?c.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=n()},e}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(e,t){if(!r.call(e,o)){if(!t)return;Object.defineProperty(e,o,{value:c.create()})}return e[o]}function s(e,t){for(var r=0;r<t;++r)e[r]=255*Math.random()|0;return e}function a(){var t=function(e){if("function"==typeof Uint8Array){var t=new Uint8Array(e);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):s(t,e),t}return s(new Array(e),e)}(e);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var r="",o=0;o<e;++o){var n=t[o];4!==o&&6!==o&&8!==o||(r+="-"),n<16&&(r+="0"),r+=n.toString(16).toLowerCase()}return r}}(),f=o?Symbol.for("@reflect-metadata:registry"):void 0,h=function(){var e;return!S(f)&&T(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[f]),S(e)&&(e=function(){var e,r,o,n;S(f)||void 0===t.Reflect||f in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,r=e.hasOwnMetadata,o=e.getOwnMetadata,n=e.getOwnMetadataKeys,i=e.deleteMetadata,s=new b;return{isProviderFor:function(e,t){var r=s.get(e);return!(S(r)||!r.has(t))||!!n(e,t).length&&(S(r)&&(r=new p,s.set(e,r)),r.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:o,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i}}(t.Reflect));var i=new b,s={registerProvider:a,getProvider:c,setProvider:h};return s;function a(t){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case S(r):r=t;break;case r===t:break;case S(o):o=t;break;case o===t:break;default:void 0===n&&(n=new p),n.add(t)}}function l(t,i){if(!S(r)){if(r.isProviderFor(t,i))return r;if(!S(o)){if(o.isProviderFor(t,i))return r;if(!S(n))for(var s=P(n);;){var a=N(s);if(!a)return;var l=M(a);if(l.isProviderFor(t,i))return z(s),l}}}if(!S(e)&&e.isProviderFor(t,i))return e}function c(e,t){var r,o=i.get(e);return S(o)||(r=o.get(t)),S(r)?(S(r=l(e,t))||(S(o)&&(o=new d,i.set(e,o)),o.set(t,r)),r):r}function u(e){if(S(e))throw new TypeError;return r===e||o===e||!S(n)&&n.has(e)}function h(e,t,r){if(!u(r))throw new Error("Metadata provider not registered.");var o=c(e,t);if(o!==r){if(!S(o))return!1;var n=i.get(e);S(n)&&(n=new d,i.set(e,n)),n.set(t,r)}return!0}}()),!S(f)&&T(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,f,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),g=function(e){var t=new b,r={isProviderFor:function(e,r){var o=t.get(e);return!S(o)&&o.has(r)},OrdinaryDefineOwnMetadata:function(e,t,r,n){o(r,n,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,r){var n=o(t,r,!1);return!S(n)&&O(n.has(e))},OrdinaryGetOwnMetadata:function(e,t,r){var n=o(t,r,!1);if(!S(n))return n.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var r=[],n=o(e,t,!1);if(S(n))return r;for(var i=P(n.keys()),s=0;;){var a=N(i);if(!a)return r.length=s,r;var l=M(a);try{r[s]=l}catch(e){try{z(i)}finally{throw e}}s++}},OrdinaryDeleteMetadata:function(e,r,n){var i=o(r,n,!1);if(S(i))return!1;if(!i.delete(e))return!1;if(0===i.size){var s=t.get(r);S(s)||(s.delete(n),0===s.size&&t.delete(s))}return!0}};return h.registerProvider(r),r;function o(o,n,i){var s=t.get(o),a=!1;if(S(s)){if(!i)return;s=new d,t.set(o,s),a=!0}var l=s.get(n);if(S(l)){if(!i)return;if(l=new d,s.set(n,l),!e.setProvider(o,n,r))throw s.delete(n),a&&t.delete(o),new Error("Wrong provider for target.")}return l}}(h);function v(e,t,r){if(m(e,t,r))return!0;var o=q(t);return!E(o)&&v(e,o,r)}function m(e,t,r){var o=H(t,r,!1);return!S(o)&&O(o.OrdinaryHasOwnMetadata(e,t,r))}function y(e,t,r){if(m(e,t,r))return w(e,t,r);var o=q(t);return E(o)?void 0:y(e,o,r)}function w(e,t,r){var o=H(t,r,!1);if(!S(o))return o.OrdinaryGetOwnMetadata(e,t,r)}function _(e,t,r,o){H(r,o,!0).OrdinaryDefineOwnMetadata(e,t,r,o)}function x(e,t){var r=k(e,t),o=q(e);if(null===o)return r;var n=x(o,t);if(n.length<=0)return r;if(r.length<=0)return n;for(var i=new p,s=[],a=0,l=r;a<l.length;a++){var c=l[a];i.has(c)||(i.add(c),s.push(c))}for(var u=0,d=n;u<d.length;u++)c=d[u],i.has(c)||(i.add(c),s.push(c));return s}function k(e,t){var r=H(e,t,!1);return r?r.OrdinaryOwnMetadataKeys(e,t):[]}function C(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function S(e){return void 0===e}function E(e){return null===e}function T(e){return"object"==typeof e?null!==e:"function"==typeof e}function A(e,t){switch(C(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var r=3===t?"string":5===t?"number":"default",o=j(e,n);if(void 0!==o){var i=o.call(e,r);if(T(i))throw new TypeError;return i}return function(e,t){if("string"===t){var r=e.toString;if(L(r)&&!T(n=r.call(e)))return n;if(L(o=e.valueOf)&&!T(n=o.call(e)))return n}else{var o;if(L(o=e.valueOf)&&!T(n=o.call(e)))return n;var n,i=e.toString;if(L(i)&&!T(n=i.call(e)))return n}throw new TypeError}(e,"default"===r?"number":r)}function O(e){return!!e}function $(e){var t=A(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function I(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function L(e){return"function"==typeof e}function R(e){return"function"==typeof e}function D(e,t){return e===t||e!=e&&t!=t}function j(e,t){var r=e[t];if(null!=r){if(!L(r))throw new TypeError;return r}}function P(e){var t=j(e,i);if(!L(t))throw new TypeError;var r=t.call(e);if(!T(r))throw new TypeError;return r}function M(e){return e.value}function N(e){var t=e.next();return!t.done&&t}function z(e){var t=e.return;t&&t.call(e)}function q(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===u)return t;if(t!==u)return t;var r=e.prototype,o=r&&Object.getPrototypeOf(r);if(null==o||o===Object.prototype)return t;var n=o.constructor;return"function"!=typeof n||n===e?t:n}function H(e,t,r){var o=h.getProvider(e,t);if(!S(o))return o;if(r){if(h.setProvider(e,t,g))return g;throw new Error("Illegal state.")}}function U(e){return e.__=void 0,delete e.__,e}e("decorate",(function(e,t,r,o){if(S(r)){if(!I(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var r=e.length-1;r>=0;--r){var o=(0,e[r])(t);if(!S(o)&&!E(o)){if(!R(o))throw new TypeError;t=o}}return t}(e,t)}if(!I(e))throw new TypeError;if(!T(t))throw new TypeError;if(!T(o)&&!S(o)&&!E(o))throw new TypeError;return E(o)&&(o=void 0),function(e,t,r,o){for(var n=e.length-1;n>=0;--n){var i=(0,e[n])(t,r,o);if(!S(i)&&!E(i)){if(!T(i))throw new TypeError;o=i}}return o}(e,t,r=$(r),o)})),e("metadata",(function(e,t){return function(r,o){if(!T(r))throw new TypeError;if(!S(o)&&!function(e){switch(C(e)){case 3:case 4:return!0;default:return!1}}(o))throw new TypeError;_(e,t,r,o)}})),e("defineMetadata",(function(e,t,r,o){if(!T(r))throw new TypeError;return S(o)||(o=$(o)),_(e,t,r,o)})),e("hasMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return S(r)||(r=$(r)),v(e,t,r)})),e("hasOwnMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return S(r)||(r=$(r)),m(e,t,r)})),e("getMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return S(r)||(r=$(r)),y(e,t,r)})),e("getOwnMetadata",(function(e,t,r){if(!T(t))throw new TypeError;return S(r)||(r=$(r)),w(e,t,r)})),e("getMetadataKeys",(function(e,t){if(!T(e))throw new TypeError;return S(t)||(t=$(t)),x(e,t)})),e("getOwnMetadataKeys",(function(e,t){if(!T(e))throw new TypeError;return S(t)||(t=$(t)),k(e,t)})),e("deleteMetadata",(function(e,t,r){if(!T(t))throw new TypeError;if(S(r)||(r=$(r)),!T(t))throw new TypeError;S(r)||(r=$(r));var o=H(t,r,!1);return!S(o)&&o.OrdinaryDeleteMetadata(e,t,r)}))}(n,o),void 0===o.Reflect&&(o.Reflect=e)}()}(o||(o={}))}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.r(o),r.d(o,{ApiServiceComponent:()=>kw,Dependency:()=>hw,DependencyValidator:()=>ww,DependencyValidatorOptions:()=>gw,DependencyValidatorOptionsToken:()=>vw,EmailValidator:()=>bw,ExistsValidator:()=>fw,IApiServiceToken:()=>ow,QboBadge:()=>Ow,QboContact:()=>Lw,QboDataList:()=>jw,QboDocViewer:()=>Nw,QboFormElement:()=>Uw,QboMainMenu:()=>tT,QboMarkdown:()=>nT,QboMicrophone:()=>lT,QboPopover:()=>dT,QboPopup:()=>mT,QboPopupListener:()=>_T,QboSelect:()=>CT,QboSideBar:()=>TT,QboTable:()=>$T,QboValidate:()=>RT,RestApiService:()=>cw,ValidateToken:()=>iw,ZipCodeValidator:()=>pw,elementClearValue:()=>MT,elementOptions:()=>DT,elementResetValue:()=>PT,elementSelectorAll:()=>jT,getApiService:()=>nw,getArray:()=>sw,matches:()=>NT,registerRestApi:()=>uw,replicate:()=>lw,services:()=>I,substitute:()=>aw});var e,t={};r.r(t),r.d(t,{afterMain:()=>l_,afterRead:()=>i_,afterWrite:()=>d_,applyStyles:()=>m_,arrow:()=>N_,auto:()=>Kw,basePlacements:()=>Xw,beforeMain:()=>s_,beforeRead:()=>o_,beforeWrite:()=>c_,bottom:()=>Fw,clippingParents:()=>Qw,computeStyles:()=>U_,createPopper:()=>vx,createPopperBase:()=>gx,createPopperLite:()=>mx,detectOverflow:()=>ox,end:()=>Jw,eventListeners:()=>F_,flip:()=>nx,hide:()=>ax,left:()=>Ww,main:()=>a_,modifierPhases:()=>p_,offset:()=>lx,placements:()=>r_,popper:()=>Zw,popperGenerator:()=>hx,popperOffsets:()=>cx,preventOverflow:()=>ux,read:()=>n_,reference:()=>e_,right:()=>Bw,start:()=>Gw,top:()=>Vw,variationPlacements:()=>t_,viewport:()=>Yw,write:()=>u_}),r(630),function(e){e[e.Transient=0]="Transient",e[e.Singleton=1]="Singleton",e[e.ResolutionScoped=2]="ResolutionScoped",e[e.ContainerScoped=3]="ContainerScoped"}(e||(e={}));const n=e;var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},i(e,t)};function s(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function a(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}function u(e){return!!e.useClass}function d(e){return!!e.useFactory}var p=function(){function e(e){this.wrap=e,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return e.prototype.createProxy=function(e){var t,r=this,o=!1;return new Proxy({},this.createHandler((function(){return o||(t=e(r.wrap()),o=!0),t})))},e.prototype.createHandler=function(e){var t={};return this.reflectMethods.forEach((function(r){t[r]=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t[0]=e(),Reflect[r].apply(void 0,c(t))}})),t},e}();function b(e){return"string"==typeof e||"symbol"==typeof e}function f(e){return"object"==typeof e&&"token"in e&&"transform"in e}function h(e){return!!e.useToken}function g(e){return null!=e.useValue}const v=function(){function e(){this._registryMap=new Map}return e.prototype.entries=function(){return this._registryMap.entries()},e.prototype.getAll=function(e){return this.ensure(e),this._registryMap.get(e)},e.prototype.get=function(e){this.ensure(e);var t=this._registryMap.get(e);return t[t.length-1]||null},e.prototype.set=function(e,t){this.ensure(e),this._registryMap.get(e).push(t)},e.prototype.setAll=function(e,t){this._registryMap.set(e,t)},e.prototype.has=function(e){return this.ensure(e),this._registryMap.get(e).length>0},e.prototype.clear=function(){this._registryMap.clear()},e.prototype.ensure=function(e){this._registryMap.has(e)||this._registryMap.set(e,[])},e}(),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(v),y=function(){this.scopedResolutions=new Map};var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(v),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(v);const x=function(){this.preResolution=new w,this.postResolution=new _};var k=new Map,C=function(){function e(e){this.parent=e,this._registry=new m,this.interceptors=new x,this.disposed=!1,this.disposables=new Set}return e.prototype.register=function(e,t,r){var o;if(void 0===r&&(r={lifecycle:n.Transient}),this.ensureNotDisposed(),o=function(e){return u(e)||g(e)||h(e)||d(e)}(t)?t:{useClass:t},h(o))for(var i=[e],s=o;null!=s;){var a=s.useToken;if(i.includes(a))throw new Error("Token registration cycle detected! "+c(i,[a]).join(" -> "));i.push(a);var l=this._registry.get(a);s=l&&h(l.provider)?l.provider:null}if((r.lifecycle===n.Singleton||r.lifecycle==n.ContainerScoped||r.lifecycle==n.ResolutionScoped)&&(g(o)||d(o)))throw new Error('Cannot use lifecycle "'+n[r.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(e,{provider:o,options:r}),this},e.prototype.registerType=function(e,t){return this.ensureNotDisposed(),b(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})},e.prototype.registerInstance=function(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})},e.prototype.registerSingleton=function(e,t){if(this.ensureNotDisposed(),b(e)){if(b(t))return this.register(e,{useToken:t},{lifecycle:n.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:n.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=e;return t&&!b(t)&&(r=t),this.register(e,{useClass:r},{lifecycle:n.Singleton})},e.prototype.resolve=function(e,t){void 0===t&&(t=new y),this.ensureNotDisposed();var r=this.getRegistration(e);if(!r&&b(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"Single"),r){var o=this.resolveRegistration(r,t);return this.executePostResolutionInterceptor(e,o,"Single"),o}if(function(e){return"function"==typeof e||e instanceof p}(e))return o=this.construct(e,t),this.executePostResolutionInterceptor(e,o,"Single"),o;throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},e.prototype.executePreResolutionInterceptor=function(e,t){var r,o;if(this.interceptors.preResolution.has(e)){var n=[];try{for(var i=a(this.interceptors.preResolution.getAll(e)),s=i.next();!s.done;s=i.next()){var l=s.value;"Once"!=l.options.frequency&&n.push(l),l.callback(e,t)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}this.interceptors.preResolution.setAll(e,n)}},e.prototype.executePostResolutionInterceptor=function(e,t,r){var o,n;if(this.interceptors.postResolution.has(e)){var i=[];try{for(var s=a(this.interceptors.postResolution.getAll(e)),l=s.next();!l.done;l=s.next()){var c=l.value;"Once"!=c.options.frequency&&i.push(c),c.callback(e,t,r)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}this.interceptors.postResolution.setAll(e,i)}},e.prototype.resolveRegistration=function(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===n.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);var r,o=e.options.lifecycle===n.Singleton,i=e.options.lifecycle===n.ContainerScoped,s=o||i;return r=g(e.provider)?e.provider.useValue:h(e.provider)?s?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):u(e.provider)?s?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):d(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===n.ResolutionScoped&&t.scopedResolutions.set(e,r),r},e.prototype.resolveAll=function(e,t){var r=this;void 0===t&&(t=new y),this.ensureNotDisposed();var o=this.getAllRegistrations(e);if(!o&&b(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"All"),o){var n=o.map((function(e){return r.resolveRegistration(e,t)}));return this.executePostResolutionInterceptor(e,n,"All"),n}var i=[this.construct(e,t)];return this.executePostResolutionInterceptor(e,i,"All"),i},e.prototype.isRegistered=function(e,t){return void 0===t&&(t=!1),this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)},e.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},e.prototype.clearInstances=function(){var e,t;this.ensureNotDisposed();try{for(var r=a(this._registry.entries()),o=r.next();!o.done;o=r.next()){var n=l(o.value,2),i=n[0],s=n[1];this._registry.setAll(i,s.filter((function(e){return!g(e.provider)})).map((function(e){return e.instance=void 0,e})))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.createChildContainer=function(){var t,r;this.ensureNotDisposed();var o=new e(this);try{for(var i=a(this._registry.entries()),s=i.next();!s.done;s=i.next()){var c=l(s.value,2),u=c[0],d=c[1];d.some((function(e){return e.options.lifecycle===n.ContainerScoped}))&&o._registry.setAll(u,d.map((function(e){return e.options.lifecycle===n.ContainerScoped?{provider:e.provider,options:e.options}:e})))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o},e.prototype.beforeResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.preResolution.set(e,{callback:t,options:r})},e.prototype.afterResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.postResolution.set(e,{callback:t,options:r})},e.prototype.dispose=function(){return function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{l(o.next(e))}catch(e){i(e)}}function a(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((o=o.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var e;return function(e,t){var r,o,n,i,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){s.label=i[1];break}if(6===i[0]&&s.label<n[1]){s.label=n[1],n=i;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(i);break}n[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(t){switch(t.label){case 0:return this.disposed=!0,e=[],this.disposables.forEach((function(t){var r=t.dispose();r&&e.push(r)})),[4,Promise.all(e)];case 1:return t.sent(),[2]}}))}))},e.prototype.getRegistration=function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null},e.prototype.getAllRegistrations=function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null},e.prototype.construct=function(e,t){var r=this;if(e instanceof p)return e.createProxy((function(e){return r.resolve(e,t)}));var o,n=function(){var o=k.get(e);if(!o||0===o.length){if(0===e.length)return new e;throw new Error('TypeInfo not known for "'+e.name+'"')}var n=o.map(r.resolveParams(t,e));return new(e.bind.apply(e,c([void 0],n)))}();return"function"!=typeof(o=n).dispose||o.dispose.length>0||this.disposables.add(n),n},e.prototype.resolveParams=function(e,t){var r=this;return function(o,n){var i,s,a,u;try{return"object"==typeof(u=o)&&"token"in u&&"multiple"in u?f(o)?o.multiple?(i=r.resolve(o.transform)).transform.apply(i,c([r.resolveAll(o.token)],o.transformArgs)):(s=r.resolve(o.transform)).transform.apply(s,c([r.resolve(o.token,e)],o.transformArgs)):o.multiple?r.resolveAll(o.token):r.resolve(o.token,e):f(o)?(a=r.resolve(o.transform,e)).transform.apply(a,c([r.resolve(o.token,e)],o.transformArgs)):r.resolve(o,e)}catch(e){throw new Error(function(e,t,r){var o,n,i=l(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(e,t,r){return void 0===r&&(r=" "),c([e],t.message.split("\n").map((function(e){return r+e}))).join("\n")}("Cannot inject the dependency "+(n=t,(null===(o=void 0===i?null:i)?"at position #"+n:'"'+o.split(",")[n].trim()+'" at position #'+n)+' of "')+e.name+'" constructor. Reason:',r)}(t,n,e))}}},e.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},e}(),S=new C,E="injectionTokens";function T(e,t){return function(r,o,n){var i=Reflect.getOwnMetadata(E,r)||{};i[n]=t?{token:e,transform:t.transformToken,transformArgs:t.args||[]}:e,Reflect.defineMetadata(E,i,r)}}const A=function(e){return T(e)},O=function(){return function(e){k.set(e,function(e){var t=Reflect.getMetadata("design:paramtypes",e)||[],r=Reflect.getOwnMetadata(E,e)||{};return Object.keys(r).forEach((function(e){t[+e]=r[e]})),t}(e))}},$=function(e){return T({token:e,multiple:!0})};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.");window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new class{constructor(e,t){this.container=e,this.options=t}getService(e){return this.container.resolve(e)}}(S.createChildContainer(),{});const I=window.qbo4.services,L="IConfigurationSourceToken",R="IConfigurationToken";function*D(e,t=""){for(const[r,o]of Object.entries(e)){const e=t?`${t}:${r}`:r;if(Array.isArray(o))for(let t=0;t<o.length;t++){const r=o[t];"object"==typeof r&&null!==r?yield*D(r,`${e}:${t}`):yield{key:`${e}:${t}`,value:r}}else"object"==typeof o&&null!==o?yield*D(o,e):yield{key:e,value:o}}}class j{constructor(e){this.jsonConfig=e}getData(){return this.jsonConfig}*getValues(){yield*D(this.jsonConfig)}}class P{constructor(e){this.data=e}getSection(e){const t=e.split(":");let r=this.data;for(const e of t){if(!(e in r))return new P({});r=r[e]}return new P(r)}get(e){const t=e.split(":");let r=this.data;for(const e of t){if(!r||!(e in r))return{};r=r[e]}return r}bind(e){const t=new e;for(const e in this.data)this.data.hasOwnProperty(e)&&(t[e]=this.data[e]);return t}*getValues(){yield*D(this.data)}}let M=class extends P{constructor(e){super({}),this.sources=e,this.mergeConfigurations(e)}mergeConfigurations(e){e.forEach((e=>{const t=e.getData();this.data={...this.data,...t}}))}};var N,z;M=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([O(),(N=0,z=$(L),function(e,t){z(e,t,N)}),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[Array])],M),I.container.register(R,{useClass:M},{lifecycle:n.Singleton}),I.container.register(L,{useClass:class{getData(){return{}}*getValues(){yield*D({})}}},{lifecycle:n.Singleton});const q=globalThis,H=q.ShadowRoot&&(void 0===q.ShadyCSS||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,U=Symbol(),V=new WeakMap;class F{constructor(e,t,r){if(this._$cssResult$=!0,r!==U)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(H&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=V.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&V.set(t,e))}return e}toString(){return this.cssText}}const B=(e,...t)=>{const r=1===e.length?e[0]:t.reduce(((t,r,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[o+1]),e[0]);return new F(r,e,U)},W=H?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return(e=>new F("string"==typeof e?e:e+"",void 0,U))(t)})(e):e,{is:K,defineProperty:X,getOwnPropertyDescriptor:G,getOwnPropertyNames:J,getOwnPropertySymbols:Q,getPrototypeOf:Y}=Object,Z=globalThis,ee=Z.trustedTypes,te=ee?ee.emptyScript:"",re=Z.reactiveElementPolyfillSupport,oe=(e,t)=>e,ne={toAttribute(e,t){switch(t){case Boolean:e=e?te:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},ie=(e,t)=>!K(e,t),se={attribute:!0,type:String,converter:ne,reflect:!1,hasChanged:ie};Symbol.metadata??=Symbol("metadata"),Z.litPropertyMetadata??=new WeakMap;class ae extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=se){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(e,r,t);void 0!==o&&X(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){const{get:o,set:n}=G(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return o?.call(this)},set(t){const i=o?.call(this);n.call(this,t),this.requestUpdate(e,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??se}static _$Ei(){if(this.hasOwnProperty(oe("elementProperties")))return;const e=Y(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(oe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(oe("properties"))){const e=this.properties,t=[...J(e),...Q(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(W(e))}else void 0!==e&&t.push(W(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(H)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const r of t){const t=document.createElement("style"),o=q.litNonce;void 0!==o&&t.setAttribute("nonce",o),t.textContent=r.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){const r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(void 0!==o&&!0===r.reflect){const n=(void 0!==r.converter?.toAttribute?r.converter:ne).toAttribute(t,r.type);this._$Em=e,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(e,t){const r=this.constructor,o=r._$Eh.get(e);if(void 0!==o&&this._$Em!==o){const e=r.getPropertyOptions(o),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:ne;this._$Em=o,this[o]=n.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(r??=this.constructor.getPropertyOptions(e),!(r.hasChanged??ie)(this[e],t))return;this.P(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}ae.elementStyles=[],ae.shadowRootOptions={mode:"open"},ae[oe("elementProperties")]=new Map,ae[oe("finalized")]=new Map,re?.({ReactiveElement:ae}),(Z.reactiveElementVersions??=[]).push("2.0.4");const le=globalThis,ce=le.trustedTypes,ue=ce?ce.createPolicy("lit-html",{createHTML:e=>e}):void 0,de="$lit$",pe=`lit$${Math.random().toFixed(9).slice(2)}$`,be="?"+pe,fe=`<${be}>`,he=document,ge=()=>he.createComment(""),ve=e=>null===e||"object"!=typeof e&&"function"!=typeof e,me=Array.isArray,ye="[ \t\n\f\r]",we=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_e=/-->/g,xe=/>/g,ke=RegExp(`>|${ye}(?:([^\\s"'>=/]+)(${ye}*=${ye}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Ce=/'/g,Se=/"/g,Ee=/^(?:script|style|textarea|title)$/i,Te=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Ae=Te(1),Oe=(Te(2),Symbol.for("lit-noChange")),$e=Symbol.for("lit-nothing"),Ie=new WeakMap,Le=he.createTreeWalker(he,129);function Re(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ue?ue.createHTML(t):t}const De=(e,t)=>{const r=e.length-1,o=[];let n,i=2===t?"<svg>":"",s=we;for(let t=0;t<r;t++){const r=e[t];let a,l,c=-1,u=0;for(;u<r.length&&(s.lastIndex=u,l=s.exec(r),null!==l);)u=s.lastIndex,s===we?"!--"===l[1]?s=_e:void 0!==l[1]?s=xe:void 0!==l[2]?(Ee.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=ke):void 0!==l[3]&&(s=ke):s===ke?">"===l[0]?(s=n??we,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?ke:'"'===l[3]?Se:Ce):s===Se||s===Ce?s=ke:s===_e||s===xe?s=we:(s=ke,n=void 0);const d=s===ke&&e[t+1].startsWith("/>")?" ":"";i+=s===we?r+fe:c>=0?(o.push(a),r.slice(0,c)+de+r.slice(c)+pe+d):r+pe+(-2===c?t:d)}return[Re(e,i+(e[r]||"<?>")+(2===t?"</svg>":"")),o]};class je{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let n=0,i=0;const s=e.length-1,a=this.parts,[l,c]=De(e,t);if(this.el=je.createElement(l,r),Le.currentNode=this.el.content,2===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=Le.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(de)){const t=c[i++],r=o.getAttribute(e).split(pe),s=/([.?@])?(.*)/.exec(t);a.push({type:1,index:n,name:s[2],strings:r,ctor:"."===s[1]?qe:"?"===s[1]?He:"@"===s[1]?Ue:ze}),o.removeAttribute(e)}else e.startsWith(pe)&&(a.push({type:6,index:n}),o.removeAttribute(e));if(Ee.test(o.tagName)){const e=o.textContent.split(pe),t=e.length-1;if(t>0){o.textContent=ce?ce.emptyScript:"";for(let r=0;r<t;r++)o.append(e[r],ge()),Le.nextNode(),a.push({type:2,index:++n});o.append(e[t],ge())}}}else if(8===o.nodeType)if(o.data===be)a.push({type:2,index:n});else{let e=-1;for(;-1!==(e=o.data.indexOf(pe,e+1));)a.push({type:7,index:n}),e+=pe.length-1}n++}}static createElement(e,t){const r=he.createElement("template");return r.innerHTML=e,r}}function Pe(e,t,r=e,o){if(t===Oe)return t;let n=void 0!==o?r._$Co?.[o]:r._$Cl;const i=ve(t)?void 0:t._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(e),n._$AT(e,r,o)),void 0!==o?(r._$Co??=[])[o]=n:r._$Cl=n),void 0!==n&&(t=Pe(e,n._$AS(e,t.values),n,o)),t}class Me{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,o=(e?.creationScope??he).importNode(t,!0);Le.currentNode=o;let n=Le.nextNode(),i=0,s=0,a=r[0];for(;void 0!==a;){if(i===a.index){let t;2===a.type?t=new Ne(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new Ve(n,this,e)),this._$AV.push(t),a=r[++s]}i!==a?.index&&(n=Le.nextNode(),i++)}return Le.currentNode=he,o}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Ne{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,o){this.type=2,this._$AH=$e,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Pe(this,e,t),ve(e)?e===$e||null==e||""===e?(this._$AH!==$e&&this._$AR(),this._$AH=$e):e!==this._$AH&&e!==Oe&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>me(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==$e&&ve(this._$AH)?this._$AA.nextSibling.data=e:this.T(he.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=je.createElement(Re(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(t);else{const e=new Me(o,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=Ie.get(e.strings);return void 0===t&&Ie.set(e.strings,t=new je(e)),t}k(e){me(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const n of e)o===t.length?t.push(r=new Ne(this.S(ge()),this.S(ge()),this,this.options)):r=t[o],r._$AI(n),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class ze{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,n){this.type=1,this._$AH=$e,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=$e}_$AI(e,t=this,r,o){const n=this.strings;let i=!1;if(void 0===n)e=Pe(this,e,t,0),i=!ve(e)||e!==this._$AH&&e!==Oe,i&&(this._$AH=e);else{const o=e;let s,a;for(e=n[0],s=0;s<n.length-1;s++)a=Pe(this,o[r+s],t,s),a===Oe&&(a=this._$AH[s]),i||=!ve(a)||a!==this._$AH[s],a===$e?e=$e:e!==$e&&(e+=(a??"")+n[s+1]),this._$AH[s]=a}i&&!o&&this.j(e)}j(e){e===$e?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class qe extends ze{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===$e?void 0:e}}class He extends ze{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==$e)}}class Ue extends ze{constructor(e,t,r,o,n){super(e,t,r,o,n),this.type=5}_$AI(e,t=this){if((e=Pe(this,e,t,0)??$e)===Oe)return;const r=this._$AH,o=e===$e&&r!==$e||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==$e&&(r===$e||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Ve{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Pe(this,e)}}const Fe=le.litHtmlPolyfillSupport;Fe?.(je,Ne),(le.litHtmlVersions??=[]).push("3.1.3");class Be extends ae{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,r)=>{const o=r?.renderBefore??t;let n=o._$litPart$;if(void 0===n){const e=r?.renderBefore??null;o._$litPart$=n=new Ne(t.insertBefore(ge(),e),e,void 0,r??{})}return n._$AI(e),n})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Oe}}Be._$litElement$=!0,Be.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Be});const We=globalThis.litElementPolyfillSupport;We?.({LitElement:Be}),(globalThis.litElementVersions??=[]).push("4.0.5");const Ke=e=>(t,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)},Xe={attribute:!0,type:String,converter:ne,reflect:!1,hasChanged:ie},Ge=(e=Xe,t,r)=>{const{kind:o,metadata:n}=r;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(r.name,e),"accessor"===o){const{name:o}=r;return{set(r){const n=t.get.call(this);t.set.call(this,r),this.requestUpdate(o,n,e)},init(t){return void 0!==t&&this.P(o,void 0,e),t}}}if("setter"===o){const{name:o}=r;return function(r){const n=this[o];t.call(this,r),this.requestUpdate(o,n,e)}}throw Error("Unsupported decorator location: "+o)};function Je(e){return(t,r)=>"object"==typeof r?Ge(e,t,r):((e,t,r)=>{const o=t.hasOwnProperty(r);return t.constructor.createProperty(r,o?{...e,wrapped:!0}:e),o?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}class Qe extends Be{static get formAssociated(){return!0}static{this.styles=B`
3
3
  :host {
4
4
  display: block;
5
5
  padding: 16px;
@@ -21,7 +21,7 @@
21
21
  <button class="btn btn-secondary" @click="${this.cancelChanges}">Cancel</button>
22
22
  </div>
23
23
  </form>
24
- `}}(function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)})([Je({type:String}),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:type",Object)],Qe.prototype,"value",void 0),customElements.define("qbo-config-editor",Qe);const Ye="LoggerToken";var Ze,et;(et=Ze||(Ze={}))[et.Trace=0]="Trace",et[et.Debug=1]="Debug",et[et.Information=2]="Information",et[et.Warning=3]="Warning",et[et.Error=4]="Error",et[et.Critical=5]="Critical";const tt="LoggerServiceToken";I.container.register(Ye,{useClass:class{logTrace(e,...t){console.debug(e,...t)}logDebug(e,...t){console.debug(e,...t)}logInformation(e,...t){console.info(e,...t)}logWarning(e,...t){console.warn(e,...t)}logError(e,t,...r){console.error(e,...t?[t,...r]:r)}logCritical(e,t,...r){console.error(`CRITICAL: ${e}`,...t?[t,...r]:r)}log(e,t,r,...o){switch(e){case Ze.Trace:this.logTrace(t,...o);break;case Ze.Debug:this.logDebug(t,...o);break;case Ze.Information:this.logInformation(t,...o);break;case Ze.Warning:this.logWarning(t,...o);break;case Ze.Error:this.logError(t,r,...o);break;case Ze.Critical:this.logCritical(t,r,...o);break;default:console.log(t,...o)}}}},{lifecycle:n.Singleton});const rt="LogReaderToken";class ot{constructor(){this.logs=[]}logTrace(e,...t){this.logs.push({logLevel:Ze.Trace,message:e,args:t})}logDebug(e,...t){this.logs.push({logLevel:Ze.Debug,message:e,args:t})}logInformation(e,...t){this.logs.push({logLevel:Ze.Information,message:e,args:t})}logWarning(e,...t){this.logs.push({logLevel:Ze.Warning,message:e,args:t})}logError(e,t,...r){this.logs.push({logLevel:Ze.Error,message:e,error:t,args:r})}logCritical(e,t,...r){this.logs.push({logLevel:Ze.Critical,message:e,error:t,args:r})}log(e,t,r,...o){this.logs.push({logLevel:e,message:t,error:r,args:o})}getLogs(){return this.logs}clearLogs(){this.logs=[]}}function nt(e,t){return e||t}function it(e,t){return e[t]}I.container.registerSingleton(ot),I.container.register(Ye,{useToken:ot}),I.container.register(rt,{useToken:ot});var st,at=void 0,lt=null,ct="",ut="function",dt="object",pt="prototype",ft="__proto__",bt="undefined",ht="constructor",gt="Symbol",vt="_polyfill",mt="length",yt="name",wt="call",_t="toString",xt=nt(Object),kt=it(xt,pt),Ct=nt(String),St=it(Ct,pt),Et=nt(Math),Tt=nt(Array),At=it(Tt,pt),Ot=it(At,"slice");function $t(e,t){try{return{v:e.apply(this,t)}}catch(e){return{e}}}function It(e){return function(t){return typeof t===e}}function Lt(e){var t="[object "+e+"]";return function(e){return!(!e||Rt(e)!==t)}}function Rt(e){return kt[_t].call(e)}function Dt(e){return typeof e===bt||e===bt}function jt(e){return e===lt||Dt(e)}function Pt(e){return!!e||e!==at}var Mt=It("string"),Nt=It(ut);function zt(e){return!(!e&&jt(e)||!e||typeof e!==dt)}var qt=it(Tt,"isArray"),Ht=Lt("Date"),Ut=It("number"),Vt=It("boolean"),Ft=Lt("Error");function Bt(e){return!!(e&&e.then&&Nt(e.then))}function Wt(e){return!(!e||(t=function(){return!(e&&0+e)},r=!e,o=$t(t),o.e?r:o.v));var t,r,o}var Kt=it(xt,"getOwnPropertyDescriptor");function Xt(e,t){return!!e&&kt.hasOwnProperty[wt](e,t)}var Gt=nt(it(xt,"hasOwn"),Jt);function Jt(e,t){return Xt(e,t)||!!Kt(e,t)}function Qt(e,t,r){if(e&&zt(e))for(var o in e)if(Gt(e,o)&&-1===t[wt](r||e,o,e[o]))break}function Yt(e,t,r,o){var n={};return Qt(e,(function(e,o){n[e]=t?o:e,n[o]=r?o:e})),o(n)}var Zt=nt(Ct),er="[object Error]";function tr(e,t){var r=ct,o=kt[_t][wt](e);o===er&&(e={stack:Zt(e.stack),message:Zt(e.message),name:Zt(e.name)});try{r=(r=JSON.stringify(e,lt,t?"number"==typeof t?t:4:at))&&r.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||Zt(e)}catch(e){r=" - "+tr(e,t)}return o+": "+r}function rr(e){throw new Error(e)}function or(e){throw new TypeError(e)}var nr=it(xt,"freeze");function ir(e){return e}function sr(e){return e[ft]||lt}var ar=it(xt,"assign"),lr=it(xt,"keys");function cr(e){return nr&&Qt(e,(function(e,t){(qt(t)||zt(t))&&nr(t)})),ur(e)}var ur=nt(nr,ir),dr=nt(it(xt,"getPrototypeOf"),sr);function pr(e){return Yt(e,0,0,cr)}var fr,br=pr({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),hr="__tsUtils$gblCfg";function gr(){var e;return typeof globalThis!==bt&&(e=globalThis),e||typeof self===bt||(e=self),e||typeof window===bt||(e=window),e||typeof r.g===bt||(e=r.g),e}function vr(){if(!fr){var e=$t(gr).v||{};fr=e[hr]=e[hr]||{}}return fr}var mr=yr;function yr(e,t,r){var o=t&&t[e];return function(t){var n=t&&t[e]||o;if(n||r){var i=arguments;return(n||r).apply(t,n?Ot[wt](i,1):i)}or('"'+Zt(e)+'" not defined for '+tr(t))}}function wr(e){return function(t){return t[e]}}var _r=it(Et,"max"),xr=mr("slice",St),kr=mr("substring",St),Cr=yr("substr",St,Sr);function Sr(e,t,r){return jt(e)&&or("Invalid "+tr(e)),r<0?ct:((t=t||0)<0&&(t=_r(t+e[mt],0)),Dt(r)?xr(e,t):xr(e,t,t+r))}function Er(e,t){return kr(e,0,t)}var Tr,Ar,Or="_urid";function $r(e){var t={description:Zt(e),toString:function(){return gt+"("+e+")"}};return t[vt]=!0,t}function Ir(e){var t=function(){if(!Tr){var e=vr();Tr=e.gblSym=e.gblSym||{k:{},s:{}}}return Tr}();if(!Gt(t.k,e)){var r=$r(e),o=lr(t.s).length;r[Or]=function(){return o+"_"+r[_t]()},t.k[e]=r,t.s[r[Or]()]=Zt(e)}return t.k[e]}var Lr={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};var Rr,Dr=it(xt,"defineProperty"),jr=it(xt,"defineProperties");function Pr(e,t,r){return Dr(e,t,function(e){var t={};if(t[Lr.c]=!0,t[Lr.e]=!0,e.l){t.get=function(){return e.l.v};var r=Kt(e.l,"v");r&&r.set&&(t.set=function(t){e.l.v=t})}return Qt(e,(function(e,r){t[Lr[e]]=Dt(r)?t[Lr[e]]:r})),t}(r))}function Mr(){Rr=vr()}function Nr(e){return Dr({toJSON:function(){return e}},"v",{value:e})}var zr,qr="window";function Hr(e,t){var r;return function(){return!Rr&&Mr(),(!r||Rr.lzy)&&(r=Nr($t(e,t).v)),r.v}}function Ur(e){return!Rr&&Mr(),(!zr||!1===e||Rr.lzy)&&(zr=Nr($t(gr).v||lt)),zr.v}function Vr(e,t){var r=zr&&!1!==t?zr.v:Ur(t);return r&&r[e]?r[e]:e===qr?Jr():lt}function Fr(){return!!Br()}var Br=Hr(Vr,["document"]);function Wr(){return!!Jr()}var Kr,Xr,Gr,Jr=Hr(Vr,[qr]),Qr=Hr(Vr,["navigator"]),Yr=Hr(Vr,["history"]),Zr=Hr((function(){return!!$t((function(){return process&&(process.versions||{}).node})).v})),eo=Hr((function(){return!!$t((function(){return self&&self instanceof WorkerGlobalScope})).v}));function to(){return Kr=Nr($t(Vr,[gt]).v)}function ro(e){var t=(Rr.lzy?0:Kr)||to();return t.v?t.v[e]:at}function oo(){return!!no()}function no(){return!Rr&&Mr(),((Rr.lzy?0:Kr)||to()).v}function io(e,t){var r=br[e];!Rr&&Mr();var o=(Rr.lzy?0:Kr)||to();return o.v?o.v[r||e]:t?at:function(e){var t;!Ar&&(Ar={});var r=br[e];return r&&(t=Ar[r]=Ar[r]||$r(gt+"."+r)),t}(e)}function so(e,t){!Rr&&Mr();var r=(Rr.lzy?0:Kr)||to();return r.v?r.v(e):t?lt:$r(e)}function ao(e){return!Rr&&Mr(),((Xr=(Rr.lzy?0:Xr)||Nr($t(ro,["for"]).v)).v||Ir)(e)}function lo(e){return!!e&&Nt(e.next)}function co(e,t,r){if(e&&(lo(e)||(!Gr&&(Gr=Nr(io(3))),e=e[Gr.v]?e[Gr.v]():null),lo(e))){var o=at,n=at;try{for(var i=0;!(n=e.next()).done&&-1!==t[wt](r||e,n.value,i,e);)i++}catch(t){o={e:t},e.throw&&(n=lt,e.throw(o))}finally{try{n&&!n.done&&e.return&&e.return(n)}finally{if(o)throw o.e}}}}function uo(e,t,r){return e.apply(t,r)}function po(e,t){return!Dt(t)&&e&&(qt(t)?uo(e.push,e,t):lo(t)||!function(e){return e===lt||!Pt(e)}(r=t)&&Nt(r[io(3)])?co(t,(function(t){e.push(t)})):e.push(t)),e;var r}function fo(e,t,r){if(e)for(var o=e[mt]>>>0,n=0;n<o&&(!(n in e)||-1!==t[wt](r||e,e[n],n,e));n++);}var bo=mr("indexOf",At),ho=mr("map",At);function go(e,t,r){return(e&&e.slice||Ot).apply(e,Ot[wt](arguments,1))}var vo,mo,yo=mr("reduce",At),wo=nt(it(xt,"create"),_o);function _o(e){if(!e)return{};var t=typeof e;function r(){}return t!==dt&&t!==ut&&or("Prototype must be an Object or function: "+tr(e)),r[pt]=e,new r}function xo(e,t){var r=xt.setPrototypeOf||function(e,t){var r;!vo&&(vo=Nr(((r={})[ft]=[],r instanceof Array))),vo.v?e[ft]=t:Qt(t,(function(t,r){return e[t]=r}))};return r(e,t)}function ko(e,t){t&&(e[yt]=t)}function Co(e,t,r){var o=r||Error,n=o[pt][yt],i=Error.captureStackTrace;return function(e,t,r){function o(){this[ht]=t,$t(Pr,[this,yt,{v:e,c:!0,e:!1}])}return $t(Pr,[t,yt,{v:e,c:!0,e:!1}]),(t=xo(t,r))[pt]=r===lt?wo(r):(o[pt]=r[pt],new o),t}(e,(function(){var r=this,s=arguments;try{$t(ko,[o,e]);var a=uo(o,r,Ot[wt](s))||r;if(a!==r){var l=dr(r);l!==dr(a)&&xo(a,l)}return i&&i(a,r[ht]),t&&t(a,s),a}finally{$t(ko,[o,n])}}),o)}function So(){return(Date.now||Eo)()}function Eo(){return(new Date).getTime()}function To(e){return function(t){return jt(t)&&or("strTrim called ["+tr(t)+"]"),t&&t.replace&&(t=t.replace(e,ct)),t}}var Ao,Oo,$o,Io=yr("trim",St,To(/^\s+|(?=\s)\s+$/g));function Lo(e){if(!e||typeof e!==dt)return!1;$o||($o=!Wr()||Jr());var t=!1;if(e!==$o){Oo||(Ao=Function[pt][_t],Oo=Ao[wt](xt));try{var r=dr(e);(t=!r)||(Xt(r,ht)&&(r=r[ht]),t=r&&typeof r===ut&&Ao[wt](r)===Oo)}catch(e){}}return t}function Ro(e){return e.value&&Mo(e),!0}var Do=[function(e){var t=e.value;if(qt(t)){var r=e.result=[];return r.length=t.length,e.copyTo(r,t),!0}return!1},Mo,function(e){return e.type===ut},function(e){var t=e.value;return!!Ht(t)&&(e.result=new Date(t.getTime()),!0)}];function jo(e,t,r,o){var n=r.handler,i=r.path?o?r.path.concat(o):r.path:[],s={handler:r.handler,src:r.src,path:i},a=typeof t,l=!1,c=!1;t&&a===dt?l=Lo(t):c=t===lt||function(e){return!st&&(st=["string","number","boolean",bt,"symbol","bigint"]),e!==dt&&-1!==st.indexOf(e)}(a);var u={type:a,isPrim:c,isPlain:l,value:t,result:t,path:i,origin:r.src,copy:function(t,o){return jo(e,t,o?s:r,o)},copyTo:function(t,r){return Po(e,t,r,s)}};return u.isPrim?n&&n[wt](r,u)?u.result:t:function(e,t,o,i){var s;return fo(e,(function(e){if(e.k===t)return s=e,-1})),s||(s={k:t,v:t},e.push(s),function(e){Pr(u,"result",{g:function(){return e.v},s:function(t){e.v=t}});for(var t=0,o=n;!(o||(t<Do.length?Do[t++]:Ro))[wt](r,u);)o=lt}(s)),s.v}(e,t)}function Po(e,t,r,o){if(!jt(r))for(var n in r)t[n]=jo(e,r[n],o,n);return t}function Mo(e){var t=e.value;if(t&&e.isPlain){var r=e.result={};return e.copyTo(r,t),!0}return!1}function No(e,t){return fo(t,(function(t){!function(e,t,r){Po([],e,t,{handler:void 0,src:t,path:[]})}(e,t)})),e}function zo(e,t,r,o,n,i,s){return No(jo([],a=e,{handler:undefined,src:a})||{},Ot[wt](arguments));var a}var qo,Ho=wr(mt);function Uo(){return!Rr&&Mr(),(!qo||Rr.lzy)&&(qo=Nr($t(Vr,["performance"]).v)),qo.v}var Vo=mr("split",St);function Fo(e,t,r){if(e&&t){var o=Vo(t,"."),n=o.pop();fo(o,(function(t){jt(e[t])&&(e[t]={}),e=e[t]})),e[n]=r}}oo();var Bo=yr("endsWith",St,Wo);function Wo(e,t,r){Mt(e)||or("'"+tr(e)+"' is not a string");var o=Mt(t)?t:Zt(t),n=!Dt(r)&&r<e[mt]?r:e[mt];return kr(e,n-o[mt],n)===o}var Ko,Xo=mr("indexOf",St),Go="ref",Jo="unref",Qo="hasRef",Yo="enabled";function Zo(e,t,r){var o=qt(t),n=o?t.length:0,i=(n>0?t[0]:o?at:t)||setTimeout,s=(n>1?t[1]:at)||clearTimeout,a=r[0];r[0]=function(){l.dn(),uo(a,at,Ot[wt](arguments))};var l=function(e,t,r){var o,n=!0,i=e?t(lt):lt;function s(){return n=!1,i&&i[Jo]&&i[Jo](),o}function a(){i&&r(i),i=lt}function l(){return i=t(i),n||s(),o}return(o={cancel:a,refresh:l})[Qo]=function(){return i&&i[Qo]?i[Qo]():n},o[Go]=function(){return n=!0,i&&i[Go]&&i[Go](),o},o[Jo]=s,{h:o=Dr(o,Yo,{get:function(){return!!i},set:function(e){!e&&i&&a(),e&&!i&&l()}}),dn:function(){i=lt}}}(e,(function(e){if(e){if(e.refresh)return e.refresh(),e;uo(s,at,[e])}return uo(i,at,r)}),(function(e){uo(s,at,[e])}));return l.h}function en(e,t){return Zo(!0,at,Ot[wt](arguments))}var tn="constructor",rn="prototype",on="function",nn="_dynInstFuncs",sn="_isDynProxy",an="_dynClass",ln="_dynInstChk",cn=ln,un="_dfOpts",dn="_unknown_",pn="__proto__",fn="_dyn"+pn,bn="__dynProto$Gbl",hn="_dynInstProto",gn="useBaseInst",vn="setInstFuncs",mn=Object,yn=mn.getPrototypeOf,wn=mn.getOwnPropertyNames,_n=Ur(),xn=_n[bn]||(_n[bn]={o:(Ko={},Ko[vn]=!0,Ko[gn]=!0,Ko),n:1e3});function kn(e){return e&&(e===mn[rn]||e===Array[rn])}function Cn(e){return kn(e)||e===Function[rn]}function Sn(e){var t;if(e){if(yn)return yn(e);var r=e[pn]||e[rn]||(e[tn]?e[tn][rn]:null);t=e[fn]||r,Xt(e,fn)||(delete e[hn],t=e[fn]=e[hn]||e[fn],e[hn]=r)}return t}function En(e,t){var r=[];if(wn)r=wn(e);else for(var o in e)"string"==typeof o&&Xt(e,o)&&r.push(o);if(r&&r.length>0)for(var n=0;n<r.length;n++)t(r[n])}function Tn(e,t,r){return t!==tn&&typeof e[t]===on&&(r||Xt(e,t))&&t!==pn&&t!==rn}function An(e){or("DynamicProto: "+e)}function On(e,t){for(var r=e.length-1;r>=0;r--)if(e[r]===t)return!0;return!1}function $n(e,t,r,o,n){if(!kn(e)){var i=r[nn]=r[nn]||wo(null);if(!kn(i)){var s=i[t]=i[t]||wo(null);!1!==i[cn]&&(i[cn]=!!n),kn(s)||En(r,(function(t){Tn(r,t,!1)&&r[t]!==o[t]&&(s[t]=r[t],delete r[t],(!Xt(e,t)||e[t]&&!e[t][sn])&&(e[t]=function(e,t){var r=function(){var o=function(e,t,r,o){var n=null;if(e&&Xt(r,an)){var i=e[nn]||wo(null);if((n=(i[r[an]]||wo(null))[t])||An("Missing ["+t+"] "+on),!n[ln]&&!1!==i[cn]){for(var s=!Xt(e,t),a=Sn(e),l=[];s&&a&&!Cn(a)&&!On(l,a);){var c=a[t];if(c){s=c===o;break}l.push(a),a=Sn(a)}try{s&&(e[t]=n),n[ln]=1}catch(e){i[cn]=!1}}}return n}(this,t,e,r)||function(e,t,r){var o=t[e];return o===r&&(o=Sn(t)[e]),typeof o!==on&&An("["+e+"] is not a "+on),o}(t,e,r);return o.apply(this,arguments)};return r[sn]=1,r}(e,t)))}))}}}function In(e,t){return Xt(e,rn)?e.name||t||dn:((e||{})[tn]||{}).name||t||dn}function Ln(e,t,r,o){Xt(e,rn)||An("theClass is an invalid class definition.");var n=e[rn];(function(e,t){if(yn){for(var r=[],o=Sn(t);o&&!Cn(o)&&!On(r,o);){if(o===e)return!0;r.push(o),o=Sn(o)}return!1}return!0})(n,t)||An("["+In(e)+"] not in hierarchy of ["+In(t)+"]");var i=null;Xt(n,an)?i=n[an]:(i="_dynCls$"+In(e,"_")+"$"+xn.n,xn.n++,n[an]=i);var s=Ln[un],a=!!s[gn];a&&o&&void 0!==o[gn]&&(a=!!o[gn]);var l=function(e){var t=wo(null);return En(e,(function(r){!t[r]&&Tn(e,r,!1)&&(t[r]=e[r])})),t}(t),c=function(e,t,r,o){function n(e,t,r){var n=t[r];if(n[sn]&&o){var i=e[nn]||{};!1!==i[cn]&&(n=(i[t[an]]||{})[r]||n)}return function(){return n.apply(e,arguments)}}var i=wo(null);En(r,(function(e){i[e]=n(t,r,e)}));for(var s=Sn(e),a=[];s&&!Cn(s)&&!On(a,s);)En(s,(function(e){!i[e]&&Tn(s,e,!yn)&&(i[e]=n(t,s,e))})),a.push(s),s=Sn(s);return i}(n,t,l,a);r(t,c);var u=!!yn&&!!s[vn];u&&o&&(u=!!o[vn]),$n(n,i,t,l,!1!==u)}Ln[un]=xn.o;var Rn="function",Dn="object",jn="undefined",Pn="prototype",Mn=Object,Nn=Mn[Pn],zn=((Ur()||{}).Symbol,(Ur()||{}).Reflect,"hasOwnProperty"),qn=ar||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Nn[zn].call(t,n)&&(e[n]=t[n]);return e},Hn=function(e,t){return Hn=Mn.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t[zn](r)&&(e[r]=t[r])},Hn(e,t)};function Un(e,t){function r(){this.constructor=e}typeof t!==Rn&&null!==t&&or("Class extends value "+String(t)+" is not a constructor or null"),Hn(e,t),e[Pn]=null===t?wo(t):(r[Pn]=t[Pn],new r)}function Vn(e,t){for(var r=0,o=t.length,n=e.length;r<o;r++,n++)e[n]=t[r];return e}var Fn="toLowerCase",Bn="blkVal",Wn="length",Kn="rdOnly",Xn="notify",Gn="warnToConsole",Jn="throwInternal",Qn="setDf",Yn="watch",Zn="logger",ei="apply",ti="push",ri="splice",oi="hdlr",ni="cancel",ii="initialize",si="identifier",ai="removeNotificationListener",li="addNotificationListener",ci="isInitialized",ui="getNotifyMgr",di="getPlugin",pi="pollInternalLogs",fi="name",bi="time",hi="processNext",gi="getProcessTelContext",vi="enabled",mi="stopPollingInternalLogs",yi="unload",wi="onComplete",_i="version",xi="loggingLevelConsole",ki="createNew",Ci="teardown",Si="messageId",Ei="message",Ti="isAsync",Ai="diagLog",Oi="_doTeardown",$i="update",Ii="getNext",Li="setNextPlugin",Ri="protocol",Di="userAgent",ji="split",Pi="nodeType",Mi="replace",Ni="logInternalMessage",zi="type",qi="handler",Hi="status",Ui="getResponseHeader",Vi="getAllResponseHeaders",Fi="isChildEvt",Bi="data",Wi="getCtx",Ki="setCtx",Xi="complete",Gi="itemsReceived",Ji="urlString",Qi="sendPOST",Yi="headers",Zi="timeout",es="setRequestHeader",ts="traceId",rs="spanId",os="traceFlags",ns=void 0,is="",ss="channels",as="core",ls="createPerfMgr",cs="disabled",us="extensionConfig",ds="extensions",ps="processTelemetry",fs="priority",bs="eventsSent",hs="eventsDiscarded",gs="eventsSendRequest",vs="perfEvent",ms="offlineEventsStored",ys="offlineBatchSent",ws="offlineBatchDrop",_s="getPerfMgr",xs="domain",ks="path",Cs="Not dynamic - ",Ss=/-([a-z])/g,Es=/([^\w\d_$])/g,Ts=/^(\d+[\w\d_$])/,As=Object.getPrototypeOf;function Os(e){return!jt(e)}function $s(e){var t=e;return t&&Mt(t)&&(t=(t=(t=t[Mi](Ss,(function(e,t){return t.toUpperCase()})))[Mi](Es,"_"))[Mi](Ts,(function(e,t){return"_"+t}))),t}function Is(e,t){return!(!e||!t)&&-1!==Xo(e,t)}function Ls(e){return e&&e.toISOString()||""}function Rs(e){return Ft(e)?e[fi]:is}function Ds(e,t,r,o,n){var i=r;return e&&((i=e[t])===r||n&&!n(i)||o&&!o(r)||(i=r,e[t]=i)),i}function js(e,t,r){var o;return e?!(o=e[t])&&jt(o)&&(o=Dt(r)?{}:r,e[t]=o):o=Dt(r)?{}:r,o}function Ps(e,t){var r=null,o=null;return Nt(e)?r=e:o=e,function(){var e=arguments;if(r&&(o=r()),o)return o[t][ei](o,e)}}function Ms(e,t,r,o,n){e&&t&&r&&(!1!==n||Dt(e[t]))&&(e[t]=Ps(r,o))}function Ns(e,t,r,o){return e&&t&&zt(e)&&qt(r)&&fo(r,(function(r){Mt(r)&&Ms(e,r,t,r,o)})),e}function zs(e){return e&&ar&&(e=Mn(ar({},e))),e}function qs(e,t,r,o,n,i){var s=arguments,a=s[0]||{},l=s[Wn],c=!1,u=1;for(l>0&&Vt(a)&&(c=a,a=s[u]||{},u++),zt(a)||(a={});u<l;u++){var d=s[u],p=qt(d),f=zt(d);for(var b in d)if(p&&b in d||f&&Gt(d,b)){var h=d[b],g=void 0;if(c&&h&&((g=qt(h))||Lo(h))){var v=a[b];g?qt(v)||(v=[]):Lo(v)||(v={}),h=qs(c,v,h)}void 0!==h&&(a[b]=h)}}return a}function Hs(e,t){var r=!1,o=t&&t.featureOptIn&&t.featureOptIn[e];if(e&&o){var n=o.mode;r=3==n||1==n}return r}function Us(e){try{return e.responseText}catch(e){}return null}function Vs(e,t){return e?"XDomainRequest,Response:"+Us(e)||0:t}function Fs(e,t){return e?"XMLHttpRequest,Status:"+e[Hi]+",Response:"+Us(e)||0:t}function Bs(e,t){return t&&(Ut(t)?e=[t].concat(e):qt(t)&&(e=t.concat(e))),e}var Ws="withCredentials";function Ks(e,t,r){if(!e[r]&&t&&t[Ui]){var o=t[Ui](r);o&&(e[r]=Io(o))}return e}function Xs(e,t){var r,o,n={};return e[Vi]?(r=e[Vi](),o={},Mt(r)&&fo(Io(r)[ji](/[\r\n]+/),(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var r=Io(e.substring(0,t))[Fn](),n=Io(e.substring(t+1));o[r]=n}else o[Io(e)]=1}})),n=o):t&&(n=Ks(n,e,"time-delta-millis"),n=Ks(n,e,"kill-duration"),n=Ks(n,e,"kill-duration-seconds")),n}var Gs="location",Js="JSON",Qs="crypto",Ys="msCrypto",Zs="msie",ea="trident/",ta="XMLHttpRequest",ra=null,oa=null,na=!1,ia=null,sa=null;function aa(e,t){var r=!1;if(e){try{if(!(r=t in e)){var o=e[Pn];o&&(r=t in o)}}catch(e){}if(!r)try{r=!Dt((new e)[t])}catch(e){}}return r}function la(e){if(e&&na){var t=Vr("__mockLocation");if(t)return t}return typeof location===Dn&&location?location:Vr(Gs)}function ca(){return Boolean(typeof JSON===Dn&&JSON||null!==Vr(Js))}function ua(){return ca()?JSON||Vr(Js):null}function da(){var e=Qr();if(e&&(e[Di]!==oa||null===ra)){var t=((oa=e[Di])||is)[Fn]();ra=Is(t,Zs)||Is(t,ea)}return ra}function pa(e){if(void 0===e&&(e=null),!e){var t=Qr()||{};e=t?(t.userAgent||is)[Fn]():is}var r=(e||is)[Fn]();if(Is(r,Zs)){var o=Br()||{};return Math.max(parseInt(r[ji](Zs)[1]),o.documentMode||0)}if(Is(r,ea)){var n=parseInt(r[ji](ea)[1]);if(n)return n+4}return null}function fa(e){return null!==sa&&!1!==e||(sa=!!Qr()&&Boolean(Qr().sendBeacon)),sa}function ba(e){var t=!1;try{t=!!Vr("fetch");var r=Vr("Request");t&&e&&r&&(t=aa(r,"keepalive"))}catch(e){}return t}function ha(){var e=!1;try{e=!!Vr(ta)}catch(e){}return e}var ga=4294967296,va=4294967295,ma=123456789,ya=987654321,wa=!1,_a=ma,xa=ya;function ka(){try{var e=2147483647&So();(t=(Math.random()*ga^e)+e)<0&&(t>>>=0),_a=ma+t&va,xa=ya-t&va,wa=!0}catch(e){}var t}function Ca(e){var t=0,r=Vr(Qs)||Vr(Ys);return r&&r.getRandomValues&&(t=r.getRandomValues(new Uint32Array(1))[0]&va),0===t&&da()&&(wa||ka(),t=function(e){var t=((xa=36969*(65535&xa)+(xa>>16)&va)<<16)+(65535&(_a=18e3*(65535&_a)+(_a>>16)&va))>>>0&va;return t>>>=0}()&va),0===t&&(t=Math.floor(ga*Math.random()|0)),e||(t>>>=0),t}function Sa(e){void 0===e&&(e=22);for(var t=Ca()>>>0,r=0,o=is;o[Wn]<e;)r++,o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===r&&(t=(Ca()<<2&4294967295|3&t)>>>0,r=0);return o}var Ea="3.2.0",Ta="."+Sa(6),Aa=0;function Oa(e){return 1===e[Pi]||9===e[Pi]||!+e[Pi]}function $a(e,t){return void 0===t&&(t=!1),$s(e+Aa+++(t?"."+Ea:is)+Ta)}function Ia(e){var t={id:$a("_aiData-"+(e||is)+"."+Ea),accept:function(e){return Oa(e)},get:function(e,r,o,n){var i=e[t.id];return i?i[$s(r)]:(n&&(i=function(e,t){var r=t[e.id];if(!r){r={};try{Oa(t)&&Pr(t,e.id,{e:!1,v:r})}catch(e){}}return r}(t,e),i[$s(r)]=o),o)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}function La(e){return e&&zt(e)&&(e.isVal||e.fb||Gt(e,"v")||Gt(e,"mrg")||Gt(e,"ref")||e.set)}function Ra(e,t,r){var o,n=r.dfVal||Pt;if(t&&r.fb){var i=r.fb;qt(i)||(i=[i]);for(var s=0;s<i[Wn];s++){var a=i[s],l=t[a];if(n(l)?o=l:e&&(n(l=e.cfg[a])&&(o=l),e.set(e.cfg,Zt(a),l)),n(o))break}}return!n(o)&&n(r.v)&&(o=r.v),o}function Da(e,t,r){var o,n=r;return r&&La(r)&&(n=Ra(e,t,r)),n&&(La(n)&&(n=Da(e,t,n)),qt(n)?(o=[])[Wn]=n[Wn]:Lo(n)&&(o={}),o&&(Qt(n,(function(r,n){n&&La(n)&&(n=Da(e,t,n)),o[r]=n})),n=o)),n}function ja(e,t,r,o){var n,i,s,a,l,c,u,d,p=o;La(p)?(n=p.isVal,i=p.set,c=p[Kn],u=p[Bn],a=p.mrg,!(l=p.ref)&&Dt(l)&&(l=!!a),s=Ra(e,t,p)):s=o,u&&e[Bn](t,r);var f=!0,b=t[r];!b&&jt(b)||(d=b,f=!1,n&&d!==s&&!n(d)&&(d=s,f=!0),i&&(f=(d=i(d,s,t))===s)),f?d=s?Da(e,t,s):s:(Lo(d)||qt(s))&&a&&s&&(Lo(s)||qt(s))&&Qt(s,(function(t,r){ja(e,d,t,r)})),e.set(t,r,d),l&&e.ref(t,r),c&&e[Kn](t,r)}var Pa=ao("[[ai_dynCfg_1]]"),Ma=ao("[[ai_blkDynCfg_1]]"),Na=ao("[[ai_frcDynCfg_1]]");function za(e){var t;return e&&(qt(e)?(t=[])[Wn]=e[Wn]:Lo(e)&&(t={}),t)?(Qt(e,(function(e,r){t[e]=za(r)})),t):e}function qa(e,t,r){var o=!1;return r&&!e[t.blkVal]&&((o=r[Na])||r[Ma]||(o=Lo(r)||qt(r))),o}function Ha(e){or("InvalidAccess:"+e)}var Ua,Va=["push","pop","shift","unshift","splice"],Fa=function(e,t,r,o){e&&e[Jn](3,108,"".concat(r," [").concat(t,"] failed - ")+tr(o))};function Ba(e,t){var r=Kt(e,t);return r&&r.get}function Wa(e,t,r,o){if(t){var n=Ba(t,r);n&&n[e.prop]?t[r]=o:function(e,t,r,o){var n={n:r,h:[],trk:function(t){t&&t.fn&&(-1===bo(n.h,t)&&n.h[ti](t),e.trk(t,n))},clr:function(e){var t=bo(n.h,e);-1!==t&&n.h[ri](t,1)}},i=!0,s=!1;function a(){i&&(s=s||qa(a,e,o),o&&!o[Pa]&&s&&(o=Xa(e,o,r,"Converting")),i=!1);var t=e.act;return t&&n.trk(t),o}a[e.prop]={chng:function(){e.add(n)}},Pr(t,n.n,{g:a,s:function(l){if(o!==l){a[e.ro]&&!e.upd&&Ha("["+r+"] is read-only:"+tr(t)),i&&(s=s||qa(a,e,o),i=!1);var c=s&&a[e.rf];if(s)if(c){Qt(o,(function(e){o[e]=l?l[e]:ns}));try{Qt(l,(function(t,r){Wa(e,o,t,r)})),l=o}catch(t){Fa((e.hdlr||{})[Zn],r,"Assigning",t),s=!1}}else o&&o[Pa]&&Qt(o,(function(t){var r=Ba(o,t);if(r){var n=r[e.prop];n&&n.chng()}}));if(l!==o){var u=l&&qa(a,e,l);!c&&u&&(l=Xa(e,l,r,"Converting")),o=l,s=u}e.add(n)}}})}(e,t,r,o)}return t}function Ka(e,t,r,o){if(t){var n=Ba(t,r),i=n&&!!n[e.prop],s=o&&o[0],a=o&&o[1],l=o&&o[2];if(!i){if(l)try{!function(e){if(e&&(Lo(e)||qt(e)))try{e[Ma]=!0}catch(e){}}(t)}catch(t){Fa((e.hdlr||{})[Zn],r,"Blocking",t)}try{Wa(e,t,r,t[r]),n=Ba(t,r)}catch(t){Fa((e.hdlr||{})[Zn],r,"State",t)}}s&&(n[e.rf]=s),a&&(n[e.ro]=a),l&&(n[e.blkVal]=!0)}return t}function Xa(e,t,r,o){try{Qt(t,(function(r,o){Wa(e,t,r,o)})),t[Pa]||(Dr(t,Pa,{get:function(){return e[oi]}}),function(e,t,r){qt(t)&&fo(Va,(function(o){var n=t[o];t[o]=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=n[ei](this,o);return Xa(e,t,r,"Patching"),s}}))}(e,t,r))}catch(t){Fa((e.hdlr||{})[Zn],r,o,t)}return t}var Ga="[[ai_",Ja="]]";function Qa(e,t,r){var o,n=function(e){if(e){var t=e[Pa]||e;if(t.cfg&&(t.cfg===e||t.cfg[Pa]===t))return t}return null}(t);if(n)return n;var i,s=$a("dyncfg",!0),a=t&&!1!==r?t:za(t),l=((o={uid:null,cfg:a})[Zn]=e,o[Xn]=function(){i[Xn]()},o.set=function(t,r,o){try{t=Wa(i,t,r,o)}catch(t){Fa(e,r,"Setting value",t)}return t[r]},o[Qn]=function(e,t){return t&&Qt(t,(function(t,r){ja(l,e,t,r)})),e},o[Yn]=function(e){return function(e,t){var r={fn:t,rm:function(){r.fn=null,e=null,t=null}};return Pr(r,"toJSON",{v:function(){return"WatcherHandler"+(r.fn?"":"[X]")}}),e.use(r,t),r}(i,e)},o.ref=function(e,t){var r;return Ka(i,e,t,(r={},r[0]=!0,r))[t]},o[Kn]=function(e,t){var r;return Ka(i,e,t,(r={},r[1]=!0,r))[t]},o[Bn]=function(e,t){var r;return Ka(i,e,t,(r={},r[2]=!0,r))[t]},o._block=function(e,t){i.use(null,(function(r){var o=i.upd;try{Dt(t)||(i.upd=t),e(r)}finally{i.upd=o}}))},o);return Pr(l,"uid",{c:!1,e:!1,w:!1,v:s}),Xa(i=function(e){var t,r,o=so(Ga+"get"+e.uid+Ja),n=so(Ga+"ro"+e.uid+Ja),i=so(Ga+"rf"+e.uid+Ja),s=so(Ga+"blkVal"+e.uid+Ja),a=so(Ga+"dtl"+e.uid+Ja),l=null,c=null;function u(t,o){var n=r.act;try{r.act=t,t&&t[a]&&(fo(t[a],(function(e){e.clr(t)})),t[a]=[]),o({cfg:e.cfg,set:e.set.bind(e),setDf:e[Qn].bind(e),ref:e.ref.bind(e),rdOnly:e[Kn].bind(e)})}catch(t){var i=e[Zn];throw i&&i[Jn](1,107,tr(t)),t}finally{r.act=n||null}}function d(){if(l){var e=l;l=null,c&&c[ni](),c=null;var t=[];if(fo(e,(function(e){if(e&&(e[a]&&(fo(e[a],(function(t){t.clr(e)})),e[a]=null),e.fn))try{u(e,e.fn)}catch(e){t[ti](e)}})),l)try{d()}catch(e){t[ti](e)}t[Wn]>0&&function(e,t){Ua||(Ua=Co("AggregationError",(function(e,t){t[Wn]>1&&(e.errors=t[1])})));var r="Watcher error(s): ";throw fo(t,(function(e,t){r+="\n".concat(t," > ").concat(tr(e))})),new Ua(r,t||[])}(0,t)}}return(t={prop:o,ro:n,rf:i})[Bn]=s,t[oi]=e,t.add=function(e){if(e&&e.h[Wn]>0){l||(l=[]),c||(c=en((function(){c=null,d()}),0));for(var t=0;t<e.h[Wn];t++){var r=e.h[t];r&&-1===bo(l,r)&&l[ti](r)}}},t[Xn]=d,t.use=u,t.trk=function(e,t){if(e){var r=e[a]=e[a]||[];-1===bo(r,t)&&r[ti](t)}},r=t}(l),a,"config","Creating"),l}function Ya(e,t,r,o){var n=Qa(r,e||{},o);return t&&n[Qn](n.cfg,t),n}function Za(e,t,r){var o=e[Pa]||e;return!o.cfg||o.cfg!==e&&o.cfg[Pa]!==o?(function(e,t){e?(e[Gn](t),e[Jn](2,108,t)):Ha(t)}(r,Cs+tr(e)),Ya(e,null,r)[Yn](t)):o[Yn](t)}var el,tl,rl=[bs,hs,gs,vs],ol=null;function nl(e,t){return function(){var r=arguments,o=il(t);if(o){var n=o.listener;n&&n[e]&&n[e][ei](n,r)}}}function il(e){var t,r=ol;return r||!0===e.disableDbgExt||(r=ol||((t=Vr("Microsoft"))&&(ol=t.ApplicationInsights),ol)),r?r.ChromeDbgExt:null}var sl="warnToConsole",al={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},ll=((tl={})[0]=null,tl[1]="errorToConsole",tl[2]=sl,tl[3]="debugToConsole",tl);function cl(e){return e?'"'+e[Mi](/\"/g,is)+'"':is}function ul(e,t){var r=typeof console!==jn?console:Vr("console");if(r){var o="log";r[e]&&(o=e),Nt(r[o])&&r[o](t)}}var dl=function(){function e(e,t,r,o){void 0===r&&(r=!1);var n=this;n[Si]=e,n[Ei]=(r?"AI: ":"AI (Internal): ")+e;var i=is;ca()&&(i=ua().stringify(o));var s=(t?" message:"+cl(t):is)+(o?" props:"+cl(i):is);n[Ei]+=s}return e.dataType="MessageData",e}();function pl(e,t){return(e||{})[Zn]||new fl(t)}var fl=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var r,o,n,i,s,a=0,l={};Ln(e,this,(function(e){function c(t,r){if(!(a>=n)){var i=!0,s="AITR_"+r[Si];if(l[s]?i=!1:l[s]=!0,i&&(t<=o&&(e.queue[ti](r),a++,u(1===t?"error":"warn",r)),a===n)){var c="Internal events throttle limit per PageView reached for this app.",d=new dl(23,c,!1);e.queue[ti](d),1===t?e.errorToConsole(c):e[Gn](c)}}}function u(e,r){var o=il(t||{});o&&o[Ai]&&o[Ai](e,r)}s=function(t){return Za(Ya(t,al,e).cfg,(function(e){var t=e.cfg;r=t[xi],o=t.loggingLevelTelemetry,n=t.maxMessageLimit,i=t.enableDebug}))}(t||{}),e.consoleLoggingLevel=function(){return r},e[Jn]=function(t,o,n,s,a){void 0===a&&(a=!1);var d=new dl(o,n,a,s);if(i)throw tr(d);var p=ll[t]||sl;if(Dt(d[Ei]))u("throw"+(1===t?"Critical":"Warning"),d);else{if(a){var f=+d[Si];!l[f]&&r>=t&&(e[p](d[Ei]),l[f]=!0)}else r>=t&&e[p](d[Ei]);c(t,d)}},e.debugToConsole=function(e){ul("debug",e),u("warning",e)},e[Gn]=function(e){ul("warn",e),u("warning",e)},e.errorToConsole=function(e){ul("error",e),u("error",e)},e.resetInternalMessageCount=function(){a=0,l={}},e[Ni]=c,e[yi]=function(e){s&&s.rm(),s=null}}))}return e.__ieDyn=1,e}();function bl(e){return e||new fl}function hl(e,t,r,o,n,i){void 0===i&&(i=!1),bl(e)[Jn](t,r,o,n,i)}function gl(e,t){bl(e)[Gn](t)}var vl=function(e){return Yt(e,1,0,cr)},ml=vl({LocalStorage:0,SessionStorage:1}),yl=(vl({AI:0,AI_AND_W3C:1,W3C:2}),vl({Normal:1,Critical:2}),"split"),wl="length",_l="toLowerCase",xl="ingestionendpoint",kl="toString",Cl="push",Sl="removeItem",El="name",Tl="message",Al="count",Ol="preTriggerDate",$l="disabled",Il="interval",Ll="daysOfMonth",Rl="date",Dl="getUTCDate",jl="stringify",Pl="pathname",Ml="correlationHeaderExcludePatterns",Nl="exceptions",zl="parsedStack",ql="properties",Hl="measurements",Ul="sizeInBytes",Vl="typeName",Fl="severityLevel",Bl="problemGroup",Wl="isManual",Kl="CreateFromInterface",Xl="assembly",Gl="fileName",Jl="hasFullStack",Ql="level",Yl="method",Zl="line",ec="duration",tc="receivedResponse",rc=void 0,oc=void 0,nc="";function ic(){return cc()?sc(ml.LocalStorage):null}function sc(e){try{if(jt(Ur()))return null;var t=(new Date)[kl](),r=Vr(e===ml.LocalStorage?"localStorage":"sessionStorage"),o=nc+t;r.setItem(o,t);var n=r.getItem(o)!==t;if(r[Sl](o),!n)return r}catch(e){}return null}function ac(){return pc()?sc(ml.SessionStorage):null}function lc(e){nc=e||""}function cc(e){return(e||void 0===rc)&&(rc=!!sc(ml.LocalStorage)),rc}function uc(e,t){var r=ic();if(null!==r)try{return r.getItem(t)}catch(t){rc=!1,hl(e,2,1,"Browser failed read of local storage. "+Rs(t),{exception:tr(t)})}return null}function dc(e,t,r){var o=ic();if(null!==o)try{return o.setItem(t,r),!0}catch(t){rc=!1,hl(e,2,3,"Browser failed write to local storage. "+Rs(t),{exception:tr(t)})}return!1}function pc(e){return(e||void 0===oc)&&(oc=!!sc(ml.SessionStorage)),oc}function fc(e,t){var r=ac();if(null!==r)try{return r.getItem(t)}catch(t){oc=!1,hl(e,2,2,"Browser failed read of session storage. "+Rs(t),{exception:tr(t)})}return null}function bc(e,t,r){var o=ac();if(null!==o)try{return o.setItem(t,r),!0}catch(t){oc=!1,hl(e,2,4,"Browser failed write to session storage. "+Rs(t),{exception:tr(t)})}return!1}function hc(e,t){var r=ac();if(null!==r)try{return r[Sl](t),!0}catch(t){oc=!1,hl(e,2,6,"Browser failed removal of session storage item. "+Rs(t),{exception:tr(t)})}return!1}var gc="AppInsightsPropertiesPlugin",vc="AppInsightsChannelPlugin",mc="ApplicationInsightsAnalytics",yc="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",wc="sampleRate",_c="ProcessLegacy",xc="http.method",kc="https://dc.services.visualstudio.com",Cc="/v2/track",Sc="not_specified",Ec="iKey";function Tc(e,t,r){var o=t[wl],n=function(e,t){var r;return t&&(t=Io(Zt(t)))[wl]>150&&(r=kr(t,0,150),hl(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),r||t}(e,t);if(n[wl]!==o){for(var i=0,s=n;void 0!==r[s];)i++,s=kr(n,0,147)+Dc(i);n=s}return n}function Ac(e,t,r){var o;return void 0===r&&(r=1024),t&&(r=r||1024,(t=Io(Zt(t)))[wl]>r&&(o=kr(t,0,r),hl(e,2,61,"string value is too long. It has been truncated to "+r+" characters.",{value:t},!0))),o||t}function Oc(e,t){return Rc(e,t,2048,66)}function $c(e,t){var r;return t&&t[wl]>32768&&(r=kr(t,0,32768),hl(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),r||t}function Ic(e,t){if(t){var r={};Qt(t,(function(t,o){if(zt(o)&&ca())try{o=ua()[jl](o)}catch(t){hl(e,2,49,"custom property is not valid",{exception:t},!0)}o=Ac(e,o,8192),t=Tc(e,t,r),r[t]=o})),t=r}return t}function Lc(e,t){if(t){var r={};Qt(t,(function(t,o){t=Tc(e,t,r),r[t]=o})),t=r}return t}function Rc(e,t,r,o){var n;return t&&(t=Io(Zt(t)))[wl]>r&&(n=kr(t,0,r),hl(e,2,o,"input is too long, it has been truncated to "+r+" characters.",{data:t},!0)),n||t}function Dc(e){var t="00"+e;return Cr(t,t[wl]-3)}function jc(e,t,r,o,n,i){var s;r=Ac(o,r)||Sc,(jt(e)||jt(t)||jt(r))&&rr("Input doesn't contain all required fields");var a="";e[Ec]&&(a=e[Ec],delete e[Ec]);var l=((s={})[El]=r,s.time=Ls(new Date),s.iKey=a,s.ext=i||{},s.tags=[],s.data={},s.baseType=t,s.baseData=e,s);return jt(n)||Qt(n,(function(e,t){l.data[e]=t})),l}var Pc=function(){function e(e,t,r,o){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var n=this;n.ver=2,n[El]=Ac(e,t)||Sc,n[ql]=Ic(e,r),n[Hl]=Lc(e,o)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),Mc=function(){function e(e,t,r,o,n){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var i=this;i.ver=2,t=t||Sc,i[Tl]=$c(e,t),i[ql]=Ic(e,o),i[Hl]=Lc(e,n),r&&(i[Fl]=r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),Nc=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},zc=function(){function e(e,t,r,o,n,i,s,a,l){this.aiDataContract={ver:1,metrics:1,properties:0};var c=this;c.ver=2;var u=new Nc;u[Al]=o>0?o:void 0,u.max=isNaN(i)||null===i?void 0:i,u.min=isNaN(n)||null===n?void 0:n,u[El]=Ac(e,t)||Sc,u.value=r,u.stdDev=isNaN(s)||null===s?void 0:s,c.metrics=[u],c[ql]=Ic(e,a),c[Hl]=Lc(e,l)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),qc="";function Hc(e){(isNaN(e)||e<0)&&(e=0),e=Math.round(e);var t=qc+e%1e3,r=qc+Math.floor(e/1e3)%60,o=qc+Math.floor(e/6e4)%60,n=qc+Math.floor(e/36e5)%24,i=Math.floor(e/864e5);return t=1===t[wl]?"00"+t:2===t[wl]?"0"+t:t,r=r[wl]<2?"0"+r:r,o=o[wl]<2?"0"+o:o,n=n[wl]<2?"0"+n:n,(i>0?i+".":qc)+n+":"+o+":"+r+"."+t}var Uc=function(){function e(e,t,r,o,n,i,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var a=this;a.ver=2,a.id=function(e,t){return t?Rc(e,t,128,69)[kl]():t}(e,s),a.url=Oc(e,r),a[El]=Ac(e,t)||Sc,isNaN(o)||(a[ec]=Hc(o)),a[ql]=Ic(e,n),a[Hl]=Lc(e,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),Vc=function(){function e(e,t,r,o,n,i,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var a=this;a.ver=2,a.url=Oc(e,r),a[El]=Ac(e,t)||Sc,a[ql]=Ic(e,n),a[Hl]=Lc(e,i),s&&(a.domProcessing=s.domProcessing,a[ec]=s[ec],a.networkConnect=s.networkConnect,a.perfTotal=s.perfTotal,a[tc]=s[tc],a.sentRequest=s.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),Fc="error",Bc="stack",Wc="stackDetails",Kc="errorSrc",Xc="message",Gc="description";function Jc(e,t){var r=e;return r&&!Mt(r)&&(JSON&&JSON[jl]?(r=JSON[jl](e),!t||r&&"{}"!==r||(r=Nt(e[kl])?e[kl]():""+e)):r=e+" - (Missing JSON.stringify)"),r||""}function Qc(e,t){var r=e;return e&&(r&&!Mt(r)&&(r=e[Xc]||e[Gc]||r),r&&!Mt(r)&&(r=Jc(r,!0)),e.filename&&(r=r+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===Xo(r||"",t)&&(r=t+": "+r),r||""}function Yc(e){return e&&e.src&&Mt(e.src)&&e.obj&&qt(e.obj)}function Zc(e){var t=e||"";Mt(t)||(t=Mt(t[Bc])?t[Bc]:""+t);var r=t[yl]("\n");return{src:t,obj:r}}function eu(e){var t=null;if(e)try{if(e[Bc])t=Zc(e[Bc]);else if(e[Fc]&&e[Fc][Bc])t=Zc(e[Fc][Bc]);else if(e.exception&&e.exception[Bc])t=Zc(e.exception[Bc]);else if(Yc(e))t=e;else if(Yc(e[Wc]))t=e[Wc];else if(Jr()&&Jr().opera&&e[Xc])t=function(e){for(var t=[],r=e[yl]("\n"),o=0;o<r[wl];o++){var n=r[o];r[o+1]&&(n+="@"+r[o+1],o++),t[Cl](n)}return{src:e,obj:t}}(e[Tl]);else if(e.reason&&e.reason[Bc])t=Zc(e.reason[Bc]);else if(Mt(e))t=Zc(e);else{var r=e[Xc]||e[Gc]||"";Mt(e[Kc])&&(r&&(r+="\n"),r+=" from "+e[Kc]),r&&(t=Zc(r))}}catch(e){t=Zc(e)}return t||{src:"",obj:null}}function tu(e){var t="";if(e&&!(t=e.typeName||e[El]||""))try{var r=/function (.{1,200})\(/.exec(e.constructor[kl]());t=r&&r[wl]>1?r[1]:""}catch(e){}return t}function ru(e){if(e)try{if(!Mt(e)){var t=tu(e),r=Jc(e,!1);return r&&"{}"!==r||(e[Fc]&&(t=tu(e=e[Fc])),r=Jc(e,!0)),0!==Xo(r,t)&&"String"!==t?t+":"+r:r}}catch(e){}return""+(e||"")}var ou=function(){function e(e,t,r,o,n,i){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,function(e){try{if(zt(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(e){}return!1}(t)?(s[Nl]=t[Nl]||[],s[ql]=t[ql],s[Hl]=t[Hl],t[Fl]&&(s[Fl]=t[Fl]),t.id&&(s.id=t.id,t[ql].id=t.id),t[Bl]&&(s[Bl]=t[Bl]),jt(t[Wl])||(s[Wl]=t[Wl])):(r||(r={}),i&&(r.id=i),s[Nl]=[new nu(e,t,r)],s[ql]=Ic(e,r),s[Hl]=Lc(e,o),n&&(s[Fl]=n),i&&(s.id=i))}return e.CreateAutoException=function(e,t,r,o,n,i,s,a){var l,c=tu(n||i||e);return(l={})[Tl]=Qc(e,c),l.url=t,l.lineNumber=r,l.columnNumber=o,l.error=ru(n||i||e),l.evt=ru(i||e),l[Vl]=c,l.stackDetails=eu(s||n||i),l.errorSrc=a,l},e.CreateFromInterface=function(t,r,o,n){var i=r[Nl]&&ho(r[Nl],(function(e){return nu[Kl](t,e)}));return new e(t,qn(qn({},r),{exceptions:i}),o,n)},e.prototype.toInterface=function(){var e,t=this,r=t.exceptions,o=t.properties,n=t.measurements,i=t.severityLevel,s=t.problemGroup,a=t.id,l=t.isManual,c=r instanceof Array&&ho(r,(function(e){return e.toInterface()}))||void 0;return(e={ver:"4.0"})[Nl]=c,e.severityLevel=i,e.properties=o,e.measurements=n,e.problemGroup=s,e.id=a,e.isManual=l,e},e.CreateSimpleException=function(e,t,r,o,n,i){var s;return{exceptions:[(s={},s[Jl]=!0,s.message=e,s.stack=n,s.typeName=t,s)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=ru,e}(),nu=function(){function e(e,t,r){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var o=this;if(function(e){try{if(zt(e))return"hasFullStack"in e&&"typeName"in e}catch(e){}return!1}(t))o[Vl]=t[Vl],o[Tl]=t[Tl],o[Bc]=t[Bc],o[zl]=t[zl]||[],o[Jl]=t[Jl];else{var n=t,i=n&&n.evt;Ft(n)||(n=n[Fc]||i||n),o[Vl]=Ac(e,tu(n))||Sc,o[Tl]=$c(e,Qc(t||n,o[Vl]))||Sc;var s=t[Wc]||eu(t);o[zl]=function(e){var t,r=e.obj;if(r&&r[wl]>0){t=[];var o=0,n=0;if(fo(r,(function(e){var r=e[kl]();if(iu.regex.test(r)){var i=new iu(r,o++);n+=i[Ul],t[Cl](i)}})),n>32768)for(var i=0,s=t[wl]-1,a=0,l=i,c=s;i<s;){if((a+=t[i][Ul]+t[s][Ul])>32768){var u=c-l+1;t.splice(l,u);break}l=i,c=s,i++,s--}}return t}(s),qt(o[zl])&&ho(o[zl],(function(t){t[Xl]=Ac(e,t[Xl]),t[Gl]=Ac(e,t[Gl])})),o[Bc]=function(e,t){var r;if(t){var o=""+t;o[wl]>32768&&(r=kr(o,0,32768),hl(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return r||t}(e,function(e){var t="";return e&&(e.obj?fo(e.obj,(function(e){t+=e+"\n"})):t=e.src||""),t}(s)),o.hasFullStack=qt(o.parsedStack)&&o.parsedStack[wl]>0,r&&(r[Vl]=r[Vl]||o[Vl])}}return e.prototype.toInterface=function(){var e,t=this,r=t[zl]instanceof Array&&ho(t[zl],(function(e){return e.toInterface()}));return(e={id:t.id,outerId:t.outerId,typeName:t[Vl],message:t[Tl],hasFullStack:t[Jl],stack:t[Bc]})[zl]=r||void 0,e},e.CreateFromInterface=function(t,r){var o=r[zl]instanceof Array&&ho(r[zl],(function(e){return iu[Kl](e)}))||r[zl];return new e(t,qn(qn({},r),{parsedStack:o}))},e}(),iu=function(){function e(t,r){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var o=this;if(o[Ul]=0,"string"==typeof t){var n=t;o[Ql]=r,o[Yl]="<no_method>",o[Xl]=Io(n),o[Gl]="",o[Zl]=0;var i=n.match(e.regex);i&&i[wl]>=5&&(o[Yl]=Io(i[2])||o[Yl],o[Gl]=Io(i[4]),o[Zl]=parseInt(i[5])||0)}else o[Ql]=t[Ql],o[Yl]=t[Yl],o[Xl]=t[Xl],o[Gl]=t[Gl],o[Zl]=t[Zl],o[Ul]=0;o.sizeInBytes+=o.method[wl],o.sizeInBytes+=o.fileName[wl],o.sizeInBytes+=o.assembly[wl],o[Ul]+=e.baseSize,o.sizeInBytes+=o.level.toString()[wl],o.sizeInBytes+=o.line.toString()[wl]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return{level:e[Ql],method:e[Yl],assembly:e[Xl],fileName:e[Gl],line:e[Zl]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}();function su(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r=is,o=0;o<4;o++)r+=t[15&(e=Ca())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var n=t[8+(3&Ca())|0];return Cr(r,0,8)+Cr(r,9,4)+"4"+Cr(r,13,3)+n+Cr(r,16,3)+Cr(r,19,12)}var au="00",lu="00000000000000000000000000000000",cu="0000000000000000";function uu(e,t,r){return!(!e||e[Wn]!==t||e===r||!e.match(/^[\da-f]*$/i))}function du(e,t,r){return uu(e,t)?e:r}function pu(e,t,r,o){var n;return(n={})[_i]=uu(o,2,"ff")?o:au,n[ts]=fu(e)?e:su(),n[rs]=bu(t)?t:Er(su(),16),n.traceFlags=r>=0&&r<=255?r:1,n}function fu(e){return uu(e,32,lu)}function bu(e){return uu(e,16,cu)}function hu(e){if(e){var t=function(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[Wn]<2;)t="0"+t;return t}(e[os]);uu(t,2)||(t="01");var r=e[_i]||au;return"00"!==r&&"ff"!==r&&(r=au),"".concat(r.toLowerCase(),"-").concat(du(e.traceId,32,lu).toLowerCase(),"-").concat(du(e.spanId,16,cu).toLowerCase(),"-").concat(t.toLowerCase())}return""}var gu=function(e){var t={};return Qt(e,(function(e,r){t[e]=r[1],t[r[0]]=r[1]})),cr(t)}({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),vu=Br()||{},mu=0,yu=[null,null,null,null,null];function wu(e){var t=mu,r=yu,o=r[t];return vu.createElement?r[t]||(o=r[t]=vu.createElement("a")):o={host:_u(e,!0)},o.href=e,++t>=r[wl]&&(t=0),mu=t,o}function _u(e,t){var r=xu(e,t)||"";if(r){var o=r.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=o&&o[wl]>3&&Mt(o[2])&&o[2][wl]>0)return o[2]+(o[3]||"")}return r}function xu(e,t){var r=null;if(e){var o=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=o&&o[wl]>2&&Mt(o[2])&&o[2][wl]>0&&(r=o[2]||"",t&&o[wl]>2)){var n=(o[1]||"")[_l](),i=o[3]||"";("http"===n&&":80"===i||"https"===n&&":443"===i)&&(i=""),r+=i}}return r}var ku=[kc+Cc,"https://breeze.aimon.applicationinsights.io"+Cc,"https://dc-int.services.visualstudio.com"+Cc];function Cu(e){return-1!==bo(ku,e[_l]())}function Su(e,t,r){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[Ml])for(var o=0;o<e.correlationHeaderExcludePatterns[wl];o++)if(e[Ml][o].test(t))return!1;var n=wu(t).host[_l]();if(!n||-1===Xo(n,":443")&&-1===Xo(n,":80")||(n=(xu(t,!0)||"")[_l]()),(!e||!e.enableCorsCorrelation)&&n&&n!==r)return!1;var i,s=e&&e.correlationHeaderDomains;if(s&&(fo(s,(function(e){var t=new RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));i=i||t.test(n)})),!i))return!1;var a=e&&e.correlationHeaderExcludedDomains;if(!a||0===a[wl])return!0;for(o=0;o<a[wl];o++)if(new RegExp(a[o].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(n))return!1;return n&&n[wl]>0}function Eu(e){if(e){var t=function(e,t){if(e)for(var r=e[yl](","),o=0;o<r[wl];++o){var n=r[o][yl]("=");if(2===n[wl]&&n[0]===t)return n[1]}}(e,gu[1]);if(t&&"cid-v1:"!==t)return t}}function Tu(){var e=Uo();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return So()}function Au(e,t){var r=null;return 0===e||0===t||jt(e)||jt(t)||(r=t-e),r}function Ou(e,t){var r=e||{};return{getName:function(){return r[El]},setName:function(e){t&&t.setName(e),r[El]=e},getTraceId:function(){return r.traceID},setTraceId:function(e){t&&t.setTraceId(e),fu(e)&&(r.traceID=e)},getSpanId:function(){return r.parentID},setSpanId:function(e){t&&t.setSpanId(e),bu(e)&&(r.parentID=e)},getTraceFlags:function(){return r.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),r.traceFlags=e}}}var $u,Iu,Lu=function(){function e(e,t,r,o,n,i,s,a,l,c,u,d){void 0===l&&(l="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var p=this;p.ver=2,p.id=t,p[ec]=Hc(n),p.success=i,p.resultCode=s+"",p.type=Ac(e,l);var f=function(e,t,r,o){var n,i=o,s=o;if(t&&t[wl]>0){var a=wu(t);if(n=a.host,!i)if(null!=a[Pl]){var l=0===a.pathname[wl]?"/":a[Pl];"/"!==l.charAt(0)&&(l="/"+l),s=a[Pl],i=Ac(e,r?r+" "+l:l)}else i=Ac(e,t)}else n=o,i=o;return{target:n,name:i,data:s}}(e,r,a,o);p.data=Oc(e,o)||f.data,p.target=Ac(e,f.target),c&&(p.target="".concat(p.target," | ").concat(c)),p[El]=Ac(e,f[El]),p[ql]=Ic(e,u),p[Hl]=Lc(e,d)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}();function Ru(e){var t=null;if(Nt(Event))t=new Event(e);else{var r=Br();r&&r.createEvent&&(t=r.createEvent("Event")).initEvent(e,!0,!0)}return t}function Du(e,t,r){return!e&&jt(e)?t:Vt(e)?e:"true"===Zt(e)[Fn]()}function ju(e){return{mrg:!0,v:e}}function Pu(e,t){return{set:e,v:t}}function Mu(e,t,r){return{fb:r,isVal:e,v:t}}function Nu(e,t){return{fb:t,set:Du,v:!!e}}var zu,qu="toGMTString",Hu="toUTCString",Uu="cookie",Vu="expires",Fu="isCookieUseDisabled",Bu="disableCookiesUsage",Wu="_ckMgr",Ku=null,Xu=null,Gu=null,Ju={},Qu={},Yu=(($u={cookieCfg:ju((Iu={},Iu[xs]={fb:"cookieDomain",dfVal:Os},Iu.path={fb:"cookiePath",dfVal:Os},Iu.enabled=ns,Iu.ignoreCookies=ns,Iu.blockedCookies=ns,Iu)),cookieDomain:ns,cookiePath:ns})[Bu]=ns,$u);function Zu(){var e,t;!zu&&(e=function(){return Br()},t={},!Rr&&Mr(),t.b=Rr.lzy,Dr(t,"v",{configurable:!0,get:function(){var r=e();return Rr.lzy||Dr(t,"v",{value:r}),t.b=Rr.lzy,r}}),zu=t)}function ed(e){return!e||e.isEnabled()}function td(e,t){return!!(t&&e&&qt(e.ignoreCookies))&&-1!==bo(e.ignoreCookies,t)}function rd(e,t){var r=t[vi];if(jt(r)){var o=void 0;Dt(e[Fu])||(o=!e[Fu]),Dt(e[Bu])||(o=!e[Bu]),r=o}return r}function od(e,t){var r;if(e)r=e.getCookieMgr();else if(t){var o=t.cookieCfg;r=o&&o[Wu]?o[Wu]:nd(t)}return r||(r=function(e,t){var r=nd[Wu]||Qu[Wu];return r||(r=nd[Wu]=nd(e,t),Qu[Wu]=r),r}(t,(e||{})[Zn])),r}function nd(e,t){var r,o,n,i,s,a,l,c,u;e=Ya(e||Qu,null,t).cfg,s=Za(e,(function(t){t[Qn](t.cfg,Yu),o=t.ref(t.cfg,"cookieCfg"),n=o[ks]||"/",i=o[xs],a=!1!==rd(e,o),l=o.getCookie||cd,c=o.setCookie||ud,u=o.delCookie||ud}),t);var d=((r={isEnabled:function(){var r=!1!==rd(e,o)&&a&&id(t),n=Qu[Wu];return r&&n&&d!==n&&(r=ed(n)),r},setEnabled:function(e){a=!1!==e,o[vi]=e},set:function(e,t,r,s,a){var l,u=!1;if(ed(d)&&!function(e,t){return!!(t&&e&&qt(e.blockedCookies)&&-1!==bo(e.blockedCookies,t))||td(e,t)}(o,e)){var p={},f=Io(t||is),b=Xo(f,";");if(-1!==b&&(f=Io(Er(t,b)),p=sd(kr(t,b+1))),Ds(p,xs,s||i,Wt,Dt),!jt(r)){var h=da();if(Dt(p[Vu])){var g=So()+1e3*r;if(g>0){var v=new Date;v.setTime(g),Ds(p,Vu,ad(v,h?qu:Hu)||ad(v,h?qu:Hu)||is,Wt)}}h||Ds(p,"max-age",is+r,null,Dt)}var m=la();m&&"https:"===m[Ri]&&(Ds(p,"secure",null,null,Dt),null===Xu&&(l=(Qr()||{})[Di],Xu=!(Mt(l)&&(Is(l,"CPU iPhone OS 12")||Is(l,"iPad; CPU OS 12")||Is(l,"Macintosh; Intel Mac OS X 10_14")&&Is(l,"Version/")&&Is(l,"Safari")||Is(l,"Macintosh; Intel Mac OS X 10_14")&&Bo(l,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Is(l,"Chrome/5")||Is(l,"Chrome/6")||Is(l,"UnrealEngine")&&!Is(l,"Chrome")||Is(l,"UCBrowser/12")||Is(l,"UCBrowser/11")))),Xu&&Ds(p,"SameSite","None",null,Dt)),Ds(p,ks,a||n,null,Dt),c(e,ld(f,p)),u=!0}return u},get:function(e){var t=is;return ed(d)&&!td(o,e)&&(t=l(e)),t},del:function(e,t){var r=!1;return ed(d)&&(r=d.purge(e,t)),r},purge:function(e,r){var o,n=!1;if(id(t)){var i=((o={})[ks]=r||"/",o[Vu]="Thu, 01 Jan 1970 00:00:01 GMT",o);da()||(i["max-age"]="0"),u(e,ld(is,i)),n=!0}return n}})[yi]=function(e){s&&s.rm(),s=null},r);return d[Wu]=d,d}function id(e){if(null===Ku){Ku=!1,!zu&&Zu();try{var t=zu.v||{};Ku=void 0!==t[Uu]}catch(t){hl(e,2,68,"Cannot access document.cookie - "+Rs(t),{exception:tr(t)})}}return Ku}function sd(e){var t={};return e&&e[Wn]&&fo(Io(e)[ji](";"),(function(e){if(e=Io(e||is)){var r=Xo(e,"=");-1===r?t[e]=null:t[Io(Er(e,r))]=Io(kr(e,r+1))}})),t}function ad(e,t){return Nt(e[t])?e[t]():null}function ld(e,t){var r=e||is;return Qt(t,(function(e,t){r+="; "+e+(jt(t)?is:"="+t)})),r}function cd(e){var t=is;if(!zu&&Zu(),zu.v){var r=zu.v[Uu]||is;Gu!==r&&(Ju=sd(r),Gu=r),t=Io(Ju[e]||is)}return t}function ud(e,t){!zu&&Zu(),zu.v&&(zu.v[Uu]=e+"="+t)}var dd="on",pd="attachEvent",fd="addEventListener",bd="detachEvent",hd="removeEventListener",gd="events",vd="visibilitychange",md="pagehide",yd="unload",wd="beforeunload",_d=$a("aiEvtPageHide"),xd=($a("aiEvtPageShow"),/\.[\.]+/g),kd=/[\.]+$/,Cd=1,Sd=Ia("events"),Ed=/^([^.]*)(?:\.(.+)|)/;function Td(e){return e&&e[Mi]?e[Mi](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,is):e}function Ad(e,t){var r;if(t){var o=is;qt(t)?(o=is,fo(t,(function(e){(e=Td(e))&&("."!==e[0]&&(e="."+e),o+=e)}))):o=Td(t),o&&("."!==o[0]&&(o="."+o),e=(e||is)+o)}var n=Ed.exec(e||is)||[];return(r={})[zi]=n[1],r.ns=(n[2]||is).replace(xd,".").replace(kd,is)[ji](".").sort().join("."),r}function Od(e,t,r){void 0===r&&(r=!0);var o=Sd.get(e,gd,{},r),n=o[t];return n||(n=o[t]=[]),n}function $d(e,t,r,o){e&&t&&t[zi]&&(e[hd]?e[hd](t[zi],r,o):e[bd]&&e[bd](dd+t[zi],r))}function Id(e,t,r,o){for(var n=t[Wn];n--;){var i=t[n];i&&(r.ns&&r.ns!==i.evtName.ns||o&&!o(i)||($d(e,i.evtName,i[qi],i.capture),t[ri](n,1)))}}function Ld(e,t){return t?Ad("xx",qt(t)?[e].concat(t):[e,t]).ns[ji]("."):e}function Rd(e,t,r,o,n){var i;void 0===n&&(n=!1);var s=!1;if(e)try{var a=Ad(t,o);if(s=function(e,t,r,o){var n=!1;return e&&t&&t[zi]&&r&&(e[fd]?(e[fd](t[zi],r,o),n=!0):e[pd]&&(e[pd](dd+t[zi],r),n=!0)),n}(e,a,r,n),s&&Sd.accept(e)){var l=((i={guid:Cd++,evtName:a})[qi]=r,i.capture=n,i);Od(e,a.type)[ti](l)}}catch(e){}return s}function Dd(e,t,r,o,n){if(void 0===n&&(n=!1),e)try{var i=Ad(t,o),s=!1;!function(e,t,r){if(t[zi])Id(e,Od(e,t[zi]),t,r);else{var o=Sd.get(e,gd,{});Qt(o,(function(o,n){Id(e,n,t,r)})),0===lr(o)[Wn]&&Sd.kill(e,gd)}}(e,i,(function(e){return!((!i.ns||r)&&e[qi]!==r||(s=!0,0))})),s||$d(e,i,r,n)}catch(e){}}function jd(e,t,r,o){var n=!1;return t&&e&&e[Wn]>0&&fo(e,(function(e){e&&(r&&-1!==bo(r,e)||(n=function(e,t,r){var o=!1,n=Jr();n&&(o=Rd(n,e,t,r),o=Rd(n.body,e,t,r)||o);var i=Br();return i&&(o=Rd(i,e,t,r)||o),o}(e,t,o)||n))})),n}function Pd(e,t,r){e&&qt(e)&&fo(e,(function(e){e&&function(e,t,r){var o=Jr();o&&(Dd(o,e,t,r),Dd(o.body,e,t,r));var n=Br();n&&Dd(n,e,t,r)}(e,t,r)}))}function Md(e,t,r){var o=Ld(_d,r),n=jd([md],e,t,o);return t&&-1!==bo(t,vd)||(n=jd([vd],(function(t){var r=Br();e&&r&&"hidden"===r.visibilityState&&e(t)}),t,o)||n),!n&&t&&(n=Md(e,null,r)),n}var Nd="ctx",zd="ParentContextKey",qd="ChildrenContextKey",Hd=function(){function e(t,r,o){var n,i=this;i.start=So(),i[fi]=t,i[Ti]=o,i[Fi]=function(){return!1},Nt(r)&&Pr(i,"payload",{g:function(){return!n&&Nt(r)&&(n=r(),r=null),n}}),i[Wi]=function(t){return t?t===e[zd]||t===e[qd]?i[t]:(i[Nd]||{})[t]:null},i[Ki]=function(t,r){t&&(t===e[zd]?(i[t]||(i[Fi]=function(){return!0}),i[t]=r):t===e[qd]?i[t]=r:(i[Nd]=i[Nd]||{})[t]=r)},i[Xi]=function(){var t=0,r=i[Wi](e[qd]);if(qt(r))for(var o=0;o<r[Wn];o++){var n=r[o];n&&(t+=n[bi])}i[bi]=So()-i.start,i.exTime=i[bi]-t,i[Xi]=function(){}}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),Ud=function(){function e(t){this.ctx={},Ln(e,this,(function(e){e.create=function(e,t,r){return new Hd(e,t,r)},e.fire=function(e){e&&(e[Xi](),t&&Nt(t[vs])&&t[vs](e))},e[Ki]=function(t,r){t&&((e[Nd]=e[Nd]||{})[t]=r)},e[Wi]=function(t){return(e[Nd]||{})[t]}}))}return e.__ieDyn=1,e}(),Vd="CoreUtils.doPerf";function Fd(e,t,r,o,n){if(e){var i=e;if(i[_s]&&(i=i[_s]()),i){var s=void 0,a=i[Wi](Vd);try{if(s=i.create(t(),o,n)){if(a&&s[Ki]&&(s[Ki](Hd[zd],a),a[Wi]&&a[Ki])){var l=a[Wi](Hd[qd]);l||(l=[],a[Ki](Hd[qd],l)),l[ti](s)}return i[Ki](Vd,s),r(s)}}catch(e){s&&s[Ki]&&s[Ki]("exception",e)}finally{s&&i.fire(s),i[Ki](Vd,a)}}}return r()}var Bd=Ia("plugin");function Wd(e){return Bd.get(e,"state",{},!0)}function Kd(e,t){for(var r,o=[],n=null,i=e[Ii]();i;){var s=i[di]();if(s){n&&n[Li]&&s[ps]&&n[Li](s);var a=!!(r=Wd(s))[ci];s[ci]&&(a=s[ci]()),a||o[ti](s),n=s,i=i[Ii]()}}fo(o,(function(o){var n=e[as]();o[ii](e.getCfg(),n,t,e[Ii]()),r=Wd(o),o[as]||r[as]||(r[as]=n),r[ci]=!0,delete r[Ci]}))}function Xd(e){return e.sort((function(e,t){var r=0;if(t){var o=t[ps];e[ps]?r=o?e[fs]-t[fs]:1:o&&(r=-1)}else r=e?1:-1;return r}))}var Gd="TelemetryPluginChain",Jd="_hasRun",Qd="_getTelCtx",Yd=0;function Zd(e,t,r,o){var n=null,i=[];t||(t=Ya({},null,r[Zn])),null!==o&&(n=o?function(e,t,r){for(;e;){if(e[di]()===r)return e;e=e[Ii]()}return op([r],t.config||{},t)}(e,r,o):e);var s={_next:function(){var e=n;if(n=e?e[Ii]():null,!e){var t=i;t&&t[Wn]>0&&(fo(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){hl(r[Zn],2,73,"Unexpected Exception during onComplete - "+tr(e))}})),i=[])}return e},ctx:{core:function(){return r},diagLog:function(){return pl(r,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:function(e,r){var o=a(e,!0);return r&&Qt(r,(function(e,r){if(jt(o[e])){var n=t.cfg[e];!n&&jt(n)||(o[e]=n)}ja(t,o,e,r)})),t[Qn](o,r)},getConfig:function(e,r,o){void 0===o&&(o=!1);var n,i=a(e,!1),s=t.cfg;return!i||!i[r]&&jt(i[r])?!s[r]&&jt(s[r])||(n=s[r]):n=i[r],n||!jt(n)?n:o},hasNext:function(){return!!n},getNext:function(){return n},setNext:function(e){n=e},iterate:function(e){for(var t;t=s._next();){var r=t[di]();r&&e(r)}},onComplete:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];e&&i[ti]({func:e,self:Dt(t)?s.ctx:t,args:r})}}};function a(e,r){var o=null,n=t.cfg;if(n&&e){var i=n[us];!i&&r&&(i={}),n[us]=i,(i=t.ref(n,us))&&(!(o=i[e])&&r&&(o={}),i[e]=o,o=t.ref(i,e))}return o}return s}function ep(e,t,r,o){var n=Ya(t),i=Zd(e,n,r,o),s=i.ctx;return s[hi]=function(e){var t=i._next();return t&&t[ps](e,s),!t},s[ki]=function(e,t){return void 0===e&&(e=null),qt(e)&&(e=op(e,n.cfg,r,t)),ep(e||s[Ii](),n.cfg,r,t)},s}function tp(e,t,r){var o=Ya(t.config),n=Zd(e,o,t,r),i=n.ctx;return i[hi]=function(e){var t=n._next();return t&&t[yi](i,e),!t},i[ki]=function(e,r){return void 0===e&&(e=null),qt(e)&&(e=op(e,o.cfg,t,r)),tp(e||i[Ii](),t,r)},i}function rp(e,t,r){var o=Ya(t.config),n=Zd(e,o,t,r).ctx;return n[hi]=function(e){return n.iterate((function(t){Nt(t[$i])&&t[$i](n,e)}))},n[ki]=function(e,r){return void 0===e&&(e=null),qt(e)&&(e=op(e,o.cfg,t,r)),rp(e||n[Ii](),t,r)},n}function op(e,t,r,o){var n=null,i=!o;if(qt(e)&&e[Wn]>0){var s=null;fo(e,(function(e){if(i||o!==e||(i=!0),i&&e&&Nt(e[ps])){var a=function(e,t,r){var o,n=null,i=Nt(e[ps]),s=Nt(e[Li]),a={getPlugin:function(){return e},getNext:function(){return n},processTelemetry:function(o,c){l(c=c||function(){var o;return e&&Nt(e[Qd])&&(o=e[Qd]()),o||(o=ep(a,t,r)),o}(),(function(t){if(!e||!i)return!1;var r=Wd(e);return!r[Ci]&&!r[cs]&&(s&&e[Li](n),e[ps](o,t),!0)}),"processTelemetry",(function(){return{item:o}}),!o.sync)||c[hi](o)},unload:function(t,r){l(t,(function(){var o=!1;if(e){var n=Wd(e),i=e[as]||n[as];!e||i&&i!==t.core()||n[Ci]||(n[as]=null,n[Ci]=!0,n[ci]=!1,e[Ci]&&!0===e[Ci](t,r)&&(o=!0))}return o}),"unload",(function(){}),r[Ti])||t[hi](r)},update:function(t,r){l(t,(function(){var o=!1;if(e){var n=Wd(e),i=e[as]||n[as];!e||i&&i!==t.core()||n[Ci]||e[$i]&&!0===e[$i](t,r)&&(o=!0)}return o}),"update",(function(){}),!1)||t[hi](r)},_id:o=e?e[si]+"-"+e[fs]+"-"+Yd++:"Unknown-0-"+Yd++,_setNext:function(e){n=e}};function l(t,r,i,s,a){var l=!1,c=e?e[si]:Gd,u=t[Jd];return u||(u=t[Jd]={}),t.setNext(n),e&&Fd(t[as](),(function(){return c+":"+i}),(function(){u[o]=!0;try{var e=n?n._id:is;e&&(u[e]=!1),l=r(t)}catch(e){var s=!n||u[n._id];s&&(l=!0),n&&s||hl(t[Ai](),1,73,"Plugin ["+c+"] failed during "+i+" - "+tr(e)+", run flags: "+tr(u))}}),s,a),l}return ur(a)}(e,t,r);n||(n=a),s&&s._setNext(a),s=a}}))}return o&&!n?op([o],t,r):n}var np,ip="_aiHooks",sp=["req","rsp","hkErr","fnErr"];function ap(e,t){if(e)for(var r=0;r<e[Wn]&&!t(e[r],r);r++);}function lp(e,t,r,o,n){n>=0&&n<=2&&ap(e,(function(e,i){var s=e.cbks,a=s[sp[n]];if(a){t.ctx=function(){return o[i]=o[i]||{}};try{a[ei](t.inst,r)}catch(e){var l=t.err;try{var c=s[sp[2]];c&&(t.err=e,c[ei](t.inst,r))}catch(e){}finally{t.err=l}}}}))}function cp(e,t,r,o){var n=null;return e&&(Xt(e,t)?n=e:r&&(n=cp(As(e),t,o,!1))),n}function up(e,t,r,o){var n=r&&r[ip];if(!n){var i=function(e){return function(){var t,r=arguments,o=e.h,n=((t={})[fi]=e.n,t.inst=this,t.ctx=null,t.set=function(e,t){(r=a([],r))[e]=t,s=a([n],r)},t),i=[],s=a([n],r);function a(e,t){return ap(t,(function(t){e[ti](t)})),e}n.evt=Vr("event"),lp(o,n,s,i,0);var l=e.f;if(l)try{n.rslt=l[ei](this,r)}catch(e){throw n.err=e,lp(o,n,s,i,3),e}return lp(o,n,s,i,1),n.rslt}}(n={i:0,n:t,f:r,h:[]});i[ip]=n,e[t]=i}var s={id:n.i,cbks:o,rm:function(){var e=this.id;ap(n.h,(function(t,r){if(t.id===e)return n.h[ri](r,1),1}))}};return n.i++,n.h[ti](s),s}function dp(e,t,r,o,n){if(void 0===o&&(o=!0),e&&t&&r){var i=cp(e,t,o,n);if(i){var s=i[t];if(typeof s===Rn)return up(i,t,s,r)}}return null}function pp(e,t,r,o,n){if(e&&t&&r){var i=cp(e,t,o,n)||e;if(i)return up(i,t,i[t],r)}return null}function fp(){var e=[];return{add:function(t){t&&e[ti](t)},run:function(t,r){fo(e,(function(e){try{e(t,r)}catch(e){hl(t[Ai](),2,73,"Unexpected error calling unload handler - "+tr(e))}})),e=[]}}}function bp(){var e=[];return{run:function(t){var r=e;e=[],fo(r,(function(e){try{(e.rm||e.remove).call(e)}catch(e){hl(t,2,73,"Unloading:"+tr(e))}}))},add:function(t){t&&po(e,t)}}}var hp="getPlugin",gp=((np={})[us]={isVal:Os,v:{}},np),vp=function(){function e(){var t,r,o,n,i,s=this;function a(e){void 0===e&&(e=null);var t=e;if(!t){var n=r||ep(null,{},s[as]);t=o&&o[hp]?n[ki](null,o[hp]):n[ki](null,o)}return t}function l(e,t,n){Ya(e,gp,pl(t)),!n&&t&&(n=t[gi]()[Ii]());var i=o;o&&o[hp]&&(i=o[hp]()),s[as]=t,r=ep(n,e,t,i)}function c(){t=!1,s[as]=null,r=null,o=null,i=bp(),n=fp()}c(),Ln(e,s,(function(e){e[ii]=function(e,r,o,n){l(e,r,n),t=!0},e[Ci]=function(t,r){var s,a=e[as];if(a&&(!t||a===t[as]())){var l,u=!1,d=t||tp(null,a,o&&o[hp]?o[hp]():o),p=r||((s={reason:0})[Ti]=!1,s);return e[Oi]&&!0===e[Oi](d,p,f)?l=!0:f(),l}function f(){u||(u=!0,n.run(d,r),i.run(d[Ai]()),!0===l&&d[hi](p),c())}},e[$i]=function(t,r){var n=e[as];if(n&&(!t||n===t[as]())){var i,s=!1,a=t||rp(null,n,o&&o[hp]?o[hp]():o),c=r||{reason:0};return e._doUpdate&&!0===e._doUpdate(a,c,u)?i=!0:u(),i}function u(){s||(s=!0,l(a.getCfg(),a.core(),a[Ii]()))}},Ms(e,"_addUnloadCb",(function(){return n}),"add"),Ms(e,"_addHook",(function(){return i}),"add"),Pr(e,"_unloadHooks",{g:function(){return i}})})),s[Ai]=function(e){return a(e)[Ai]()},s[ci]=function(){return t},s.setInitialized=function(e){t=e},s[Li]=function(e){o=e},s[hi]=function(e,t){t?t[hi](e):o&&Nt(o[ps])&&o[ps](e,null)},s._getTelCtx=a}return e.__ieDyn=1,e}(),mp="toString",yp="isStorageUseDisabled",wp="_addHook",_p="core",xp="dataType",kp="envelopeType",Cp="diagLog",Sp="track",Ep="trackPageView",Tp="trackPreviousPageVisit",Ap="sendPageViewInternal",Op="startTime",$p="properties",Ip="duration",Lp="sendPageViewPerformanceInternal",Rp="populatePageViewPerformanceEvent",Dp="href",jp="sendExceptionInternal",Pp="exception",Mp="error",Np="_onerror",zp="errorSrc",qp="lineNumber",Hp="columnNumber",Up="message",Vp="CreateAutoException",Fp="addTelemetryInitializer",Bp="autoTrackPageVisitTime",Wp="isBrowserLinkTrackingEnabled",Kp="length",Xp="enableAutoRouteTracking",Gp="enableUnhandledPromiseRejectionTracking",Jp="autoUnhandledPromiseInstrumented",Qp="getEntriesByType",Yp="isPerformanceTimingSupported",Zp="getPerformanceTiming",ef="navigationStart",tf="shouldCollectDuration",rf="isPerformanceTimingDataReady",of="responseStart",nf="loadEventEnd",sf="responseEnd",af="connectEnd",lf="pageVisitStartTime",cf=function(){function e(t,r,o,n){Ln(e,this,(function(e){var i,s=null,a=[],l=!1,c=!1;function u(e){o&&o.flush(e,(function(){}))}function d(){s||(s=en((function(){s=null;var e=a.slice(0),t=!1;a=[],fo(e,(function(e){e()?t=!0:a.push(e)})),a[Kp]>0&&d(),t&&u(!0)}),100))}function p(e){a.push(e),d()}o&&(i=o.logger),e[Ep]=function(e,o){var s=e.name;if(jt(s)||"string"!=typeof s){var a=Br();s=e.name=a&&a.title||""}var d=e.uri;if(jt(d)||"string"!=typeof d){var f=la();d=e.uri=f&&f[Dp]||""}if(!c){var b=Uo(),h=b&&b[Qp]&&b[Qp]("navigation");if(h&&h[0]&&!Dt(b.timeOrigin)){var g=h[0].loadEventStart;e[Op]=new Date(b.timeOrigin+g)}else{var v=(o||e[$p]||{})[Ip]||0;e[Op]=new Date((new Date).getTime()-v)}c=!0}if(!n[Yp]())return t[Ap](e,o),u(!0),void(eo()||hl(i,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info."));var m,y,w=!1,_=n[Zp]()[ef];_>0&&(m=Au(_,+new Date),n[tf](m)||(m=void 0)),jt(o)||jt(o[Ip])||(y=o[Ip]),!r&&isNaN(y)||(isNaN(y)&&(o||(o={}),o[Ip]=m),t[Ap](e,o),u(!0),w=!0),o||(o={}),p((function(){var r=!1;try{if(n[rf]()){r=!0;var a={name:s,uri:d};n[Rp](a),a.isValid||w?(w||(o[Ip]=a.durationMs,t[Ap](e,o)),l||(t[Lp](a,o),l=!0)):(o[Ip]=m,t[Ap](e,o))}else _>0&&Au(_,+new Date)>6e4&&(r=!0,w||(o[Ip]=6e4,t[Ap](e,o)))}catch(e){hl(i,1,38,"trackPageView failed on page load calculation: "+Rs(e),{exception:tr(e)})}return r}))},e.teardown=function(e,t){if(s){s.cancel(),s=null;var r=a.slice(0);a=[],fo(r,(function(e){e()}))}}}))}return e.__ieDyn=1,e}(),uf=["googlebot","adsbot-google","apis-google","mediapartners-google"];function df(){var e=Uo();return e&&!!e.timing}function pf(){var e=Uo(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[ef]>0&&t[of]>0&&t.requestStart>0&&t[nf]>0&&t[sf]>0&&t[af]>0&&t.domLoading>0}function ff(){return df()?Uo().timing:null}function bf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(Qr()||{}).userAgent,o=!1;if(r)for(var n=0;n<uf[Kp];n++)o=o||-1!==Xo(r.toLowerCase(),uf[n]);if(o)return!1;for(n=0;n<e[Kp];n++)if(e[n]<0||e[n]>=36e5)return!1;return!0}var hf,gf=function(){function e(t){var r=pl(t);Ln(e,this,(function(e){e[Rp]=function(t){t.isValid=!1;var o,n=(o=Uo())&&o.getEntriesByType&&o.getEntriesByType("navigation")[Kp]>0?Uo()[Qp]("navigation")[0]:null,i=ff(),s=0,a=0,l=0,c=0,u=0;(n||i)&&(n?(s=n[Ip],a=0===n[Op]?n[af]:Au(n[Op],n[af]),l=Au(n.requestStart,n[of]),c=Au(n[of],n[sf]),u=Au(n.responseEnd,n[nf])):(s=Au(i[ef],i[nf]),a=Au(i[ef],i[af]),l=Au(i.requestStart,i[of]),c=Au(i[of],i[sf]),u=Au(i.responseEnd,i[nf])),0===s?hl(r,2,10,"error calculating page view performance.",{total:s,network:a,request:l,response:c,dom:u}):e[tf](s,a,l,c,u)?s<Math.floor(a)+Math.floor(l)+Math.floor(c)+Math.floor(u)?hl(r,2,8,"client performance math error.",{total:s,network:a,request:l,response:c,dom:u}):(t.durationMs=s,t.perfTotal=t[Ip]=Hc(s),t.networkConnect=Hc(a),t.sentRequest=Hc(l),t.receivedResponse=Hc(c),t.domProcessing=Hc(u),t.isValid=!0):hl(r,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:s,network:a,request:l,response:c,dom:u}))},e[Zp]=ff,e[Yp]=df,e[rf]=pf,e[tf]=bf}))}return e.__ieDyn=1,e}(),vf=function(){function e(t,r){var o="prevPageVisitData";Ln(e,this,(function(e){e[Tp]=function(e,n){try{var i=function(e,r){var n=null;try{if(n=function(){var e=null;try{if(pc()){var r=So(),n=fc(t,o);n&&ca()&&((e=ua().parse(n)).pageVisitTime=r-e[lf],hc(t,o))}}catch(r){gl(t,"Stop page visit timer failed: "+tr(r)),e=null}return e}(),pc()){null!=fc(t,o)&&rr("Cannot call startPageVisit consecutively without first calling stopPageVisit");var i=ua().stringify(new mf(e,r));bc(t,o,i)}}catch(e){gl(t,"Call to restart failed: "+tr(e)),n=null}return n}(e,n);i&&r(i.pageName,i.pageUrl,i.pageVisitTime)}catch(e){gl(t,"Auto track page visit time failed, metric will not be collected: "+tr(e))}},Pr(e,"_logger",{g:function(){return t}}),Pr(e,"pageVisitTimeTrackingHandler",{g:function(){return r}})}))}return e.__ieDyn=1,e}(),mf=function(e,t){this[lf]=So(),this.pageName=e,this.pageUrl=t},yf=function(e,t){var r=this,o={};r.start=function(t){void 0!==o[t]&&hl(e,2,62,"start was called more than once for this event without calling stop.",{name:t,key:t},!0),o[t]=+new Date},r.stop=function(t,n,i,s){var a=o[t];if(isNaN(a))hl(e,2,63,"stop was called without a corresponding start.",{name:t,key:t},!0);else{var l=Au(a,+new Date);r.action(t,n,l,i,s)}delete o[t],o[t]=void 0}};function wf(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var _f=cr(((hf={sessionRenewalMs:Pu(xf,18e5),sessionExpirationMs:Pu(xf,864e5),disableExceptionTracking:Nu()})[Bp]=Nu(),hf.overridePageViewDuration=Nu(),hf[Gp]=Nu(),hf[Jp]=!1,hf.samplingPercentage=Mu((function(e){return!isNaN(e)&&e>0&&e<=100}),100),hf[yp]=Nu(),hf[Wp]=Nu(),hf[Xp]=Nu(),hf.namePrefix={isVal:Mt,v:Zt(is)},hf.enableDebug=Nu(),hf.disableFlushOnBeforeUnload=Nu(),hf.disableFlushOnUnload=Nu(!1,"disableFlushOnBeforeUnload"),hf));function xf(e,t){return(e=e||t)<6e4&&(e=6e4),+e}var kf,Cf,Sf,Ef=function(e){function t(){var r,o,n,i,s,a,l,c,u,d,p,f,b,h,g,v,m,y,w,_=e.call(this)||this;return _.identifier=mc,_.priority=180,_.autoRoutePVDelay=500,Ln(t,_,(function(e,t){var _=t[wp];function x(t,r,o,n,i){e[Cp]().throwInternal(t,r,o,n,i)}function k(){r=null,o=null,n=null,i=null,s=null,a=null,l=!1,c=!1,u=!1,d=!1,p=!1,f=!1,b=!1,h=!1,v=!1;var t=la(!0);m=t&&t[Dp]||"",y=null,w=null,g=null,Pr(e,"config",{g:function(){return g}})}k(),e.getCookieMgr=function(){return od(e[_p])},e.processTelemetry=function(t,r){e.processNext(t,r)},e.trackEvent=function(t,r){try{var o=jc(t,Pc[xp],Pc[kp],e[Cp](),r);e[_p][Sp](o)}catch(e){x(2,39,"trackTrace failed, trace will not be collected: "+Rs(e),{exception:tr(e)})}},e.startTrackEvent=function(e){try{r.start(e)}catch(e){x(1,29,"startTrackEvent failed, event will not be collected: "+Rs(e),{exception:tr(e)})}},e.stopTrackEvent=function(e,t,o){try{r.stop(e,void 0,t,o)}catch(e){x(1,30,"stopTrackEvent failed, event will not be collected: "+Rs(e),{exception:tr(e)})}},e.trackTrace=function(t,r){try{var o=jc(t,Mc[xp],Mc[kp],e[Cp](),r);e[_p][Sp](o)}catch(e){x(2,39,"trackTrace failed, trace will not be collected: "+Rs(e),{exception:tr(e)})}},e.trackMetric=function(t,r){try{var o=jc(t,zc[xp],zc[kp],e[Cp](),r);e[_p][Sp](o)}catch(e){x(1,36,"trackMetric failed, metric will not be collected: "+Rs(e),{exception:tr(e)})}},e[Ep]=function(e,t){try{var r=e||{};n[Ep](r,qn(qn(qn({},r.properties),r.measurements),t)),v&&s[Tp](r.name,r.uri)}catch(e){x(1,37,"trackPageView failed, page view will not be collected: "+Rs(e),{exception:tr(e)})}},e[Ap]=function(t,r,o){var n=Br();if(n&&(t.refUri=void 0===t.refUri?n.referrer:t.refUri),jt(t[Op])){var i=(r||t[$p]||{})[Ip]||0;t[Op]=new Date((new Date).getTime()-i)}var s=jc(t,Uc[xp],Uc[kp],e[Cp](),r,o);e[_p][Sp](s)},e[Lp]=function(t,r,o){var n=jc(t,Vc[xp],Vc[kp],e[Cp](),r,o);e[_p][Sp](n)},e.trackPageViewPerformance=function(t,r){var o=t||{};try{i[Rp](o),e[Lp](o,r)}catch(e){x(1,37,"trackPageViewPerformance failed, page view will not be collected: "+Rs(e),{exception:tr(e)})}},e.startTrackPage=function(e){try{if("string"!=typeof e){var t=Br();e=t&&t.title||""}o.start(e)}catch(e){x(1,31,"startTrackPage failed, page view may not be collected: "+Rs(e),{exception:tr(e)})}},e.stopTrackPage=function(e,t,r,n){try{if("string"!=typeof e){var i=Br();e=i&&i.title||""}if("string"!=typeof t){var a=la();t=a&&a[Dp]||""}o.stop(e,t,r,n),v&&s[Tp](e,t)}catch(e){x(1,32,"stopTrackPage failed, page view will not be collected: "+Rs(e),{exception:tr(e)})}},e[jp]=function(t,r,o){var n=t&&(t[Pp]||t[Mp])||Ft(t)&&t||{name:t&&typeof t,message:t||Sc};t=t||{};var i=jc(new ou(e[Cp](),n,t[$p]||r,t.measurements,t.severityLevel,t.id).toInterface(),ou[xp],ou[kp],e[Cp](),r,o);e[_p][Sp](i)},e.trackException=function(t,r){t&&!t[Pp]&&t[Mp]&&(t[Pp]=t[Mp]);try{e[jp](t,r)}catch(e){x(1,35,"trackException failed, exception will not be collected: "+Rs(e),{exception:tr(e)})}},e[Np]=function(t){var r=t&&t[Mp],o=t&&t.evt;try{if(!o){var n=Jr();n&&(o=n.event)}var i=t&&t.url||(Br()||{}).URL,s=t[zp]||"window.onerror@"+i+":"+(t[qp]||0)+":"+(t[Hp]||0),a={errorSrc:s,url:i,lineNumber:t[qp]||0,columnNumber:t[Hp]||0,message:t[Up]};!function(e,t,r,o,n){return!n&&Mt(e)&&("Script error."===e||"Script error"===e)}(t.message,t.url,t.lineNumber,t.columnNumber,t[Mp])?(t[zp]||(t[zp]=s),e.trackException({exception:t,severityLevel:3},a)):function(t,r){var o=jc(t,ou[xp],ou[kp],e[Cp](),r);e[_p][Sp](o)}(ou[Vp]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",i,t[qp]||0,t[Hp]||0,r,o,null,s),a)}catch(e){var l=r?r.name+", "+r[Up]:"null";x(1,11,"_onError threw exception while logging error, error will not be collected: "+Rs(e),{exception:tr(e),errorString:l})}},e[Fp]=function(t){if(e[_p])return e[_p][Fp](t);a||(a=[]),a.push(t)},e.initialize=function(x,k,C,S){if(!e.isInitialized()){jt(k)&&rr("Error initializing"),t.initialize(x,k,C,S);try{w=Ld($a(e.identifier),k.evtNamespace&&k.evtNamespace()),a&&(fo(a,(function(e){k[Fp](e)})),a=null),function(t){var r=e.identifier,o=e[_p];e[wp](Za(t,(function(){var n,i=ep(null,t,o);g=i.getExtCfg(r,_f),v=g[Bp],t.storagePrefix&&lc(t.storagePrefix),Dt((n=g)[yp])||(n[yp]?(rc=!1,oc=!1):(rc=cc(!0),oc=pc(!0))),l=g[Wp],function(){if(!c&&l){var t=["/browserLinkSignalR/","/__browserLink/"];e[wp](e[Fp]((function(e){if(l&&e.baseType===Lu[xp]){var r=e.baseData;if(r)for(var o=0;o<t[Kp];o++)if(r.target&&Xo(r.target,t[o])>=0)return!1}return!0}))),c=!0}}()})))}(x),i=new gf(e[_p]),n=new cf(e,g.overridePageViewDuration,e[_p],i),s=new vf(e[Cp](),(function(t,r,o){return function(t,r,o){var n={PageName:t,PageUrl:r};e.trackMetric({name:"PageVisitTime",average:o,max:o,min:o,sampleCount:1},n)}(t,r,o)})),(r=new yf(e[Cp](),"trackEvent")).action=function(t,r,o,n,i){n||(n={}),i||(i={}),n.duration=o[mp](),e.trackEvent({name:t,properties:n,measurements:i})},(o=new yf(e[Cp](),"trackPageView")).action=function(t,r,o,n,i){jt(n)&&(n={}),n.duration=o[mp]();var s={name:t,uri:r,properties:n,measurements:i};e[Ap](s,n)},Wr()&&(E=Jr(),T=la(!0),e[wp](Za(g,(function(){(p=g.disableExceptionTracking)||f||g.autoExceptionInstrumented||(_(pp(E,"onerror",{ns:w,rsp:function(t,r,o,n,i,s){p||!0===t.rslt||e[Np](ou[Vp](r,o,n,i,s,t.evt))}},!1)),f=!0)}))),function(t,r){e[wp](Za(g,(function(){b=!0===g[Gp],f=f||g[Jp],b&&!h&&(_(pp(t,"onunhandledrejection",{ns:w,rsp:function(t,o){b&&!0!==t.rslt&&e[Np](ou[Vp](function(e){if(e&&e.reason){var t=e.reason;return!Mt(t)&&Nt(t[mp])?t[mp]():tr(t)}return e||""}(o),r?r[Dp]:"",0,0,o,t.evt))}},!1)),g[Jp]=h=!0)})))}(E,T),function(){var t=Jr(),r=la(!0);e[wp](Za(g,(function(){if(u=!0===g[Xp],t&&u&&!d&&Yr()){var o=Yr();Nt(o.pushState)&&Nt(o.replaceState)&&typeof Event!==jn&&function(t,r,o){if(!d){var n=g.namePrefix||"";_(pp(r,"pushState",{ns:w,rsp:function(){u&&(wf(t,Ru(n+"pushState")),wf(t,Ru(n+"locationchange")))}},!0)),_(pp(r,"replaceState",{ns:w,rsp:function(){u&&(wf(t,Ru(n+"replaceState")),wf(t,Ru(n+"locationchange")))}},!0)),Rd(t,n+"popstate",(function(){u&&wf(t,Ru(n+"locationchange"))}),w),Rd(t,n+"locationchange",(function(){if(y?(m=y,y=o&&o[Dp]||""):y=o&&o[Dp]||"",u){var t=function(){var t=null;if(e[_p]&&e[_p].getTraceCtx&&(t=e[_p].getTraceCtx(!1)),!t){var r=e[_p].getPlugin(gc);if(r){var o=r.plugin.context;o&&(t=Ou(o.telemetryTrace))}}return t}();if(t){t.setTraceId(su());var r="_unknown_";o&&o.pathname&&(r=o.pathname+(o.hash||"")),t.setName(Ac(e[Cp](),r))}en(function(t){e[Ep]({refUri:t,properties:{duration:0}})}.bind(e,m),e.autoRoutePVDelay)}}),w),d=!0}}(t,o,r)}})))}())}catch(t){throw e.setInitialized(!1),t}var E,T}},e._doTeardown=function(e,t){n&&n.teardown(e,t),Dd(window,null,null,w),k()},Pr(e,"_pageViewManager",{g:function(){return n}}),Pr(e,"_pageViewPerformanceManager",{g:function(){return i}}),Pr(e,"_pageVisitTimeManager",{g:function(){return s}}),Pr(e,"_evtNamespace",{g:function(){return"."+w}})})),_}return Un(t,e),t.Version="3.2.0",t}(vp),Tf="Promise",Af="rejected";function Of(e,t){return $f(e,(function(e){return t?t({status:"fulfilled",rejected:!1,value:e}):e}),(function(e){return t?t({status:Af,rejected:!0,reason:e}):e}))}function $f(e,t,r,o){var n=e;try{if(Bt(e))(t||r)&&(n=e.then(t,r));else try{t&&(n=t(e))}catch(e){if(!r)throw e;n=r(e)}}finally{o&&function(e,t){var r=e;t&&(Bt(e)?r=e.finally?e.finally(t):e.then((function(e){return t(),e}),(function(e){throw t(),e})):t())}(n,o)}return n}var If,Lf=!1,Rf=["pending","resolving","resolved",Af],Df="dispatchEvent";function jf(e){var t;return e&&e.createEvent&&(t=e.createEvent("Event")),!!t&&t.initEvent}var Pf,Mf,Nf,zf="unhandledRejection",qf=zf.toLowerCase(),Hf=[],Uf=0,Vf=10;function Ff(e){return Nt(e)?e.toString():tr(e)}function Bf(e,t,r){var o,n,i=go(arguments,3),s=0,a=!1,l=[],c=Uf++,u=Hf.length>0?Hf[Hf.length-1]:void 0,d=!1,p=null;function f(t,r){try{Hf.push(c),d=!0,p&&p.cancel(),p=null;var n=e((function(e,n){l.push((function(){try{var i=2===s?t:r,a=Dt(i)?o:Nt(i)?i(o):i;Bt(a)?a.then(e,n):i?e(a):3===s?n(a):e(a)}catch(e){n(e)}})),a&&h()}),i);return n}finally{Hf.pop()}}function b(){return Rf[s]}function h(){if(l.length>0){var e=l.slice();l=[],d=!0,p&&p.cancel(),p=null,t(e)}}function g(e,t){return function(r){if(s===t){if(2===e&&Bt(r))return s=1,void r.then(g(2,1),g(3,1));s=e,a=!0,o=r,h(),d||3!==e||p||(p=en(v,Vf))}}}function v(){if(!d)if(d=!0,Zr())process.emit(zf,o,n);else{var e=Jr()||Ur();!Pf&&(Pf=Nr($t(Vr,[Tf+"RejectionEvent"]).v)),function(e,t,r,o){var n=Br();!If&&(If=Nr(!!$t(jf,[n]).v));var i=If.v?n.createEvent("Event"):o?new Event(t):{};if(r&&r(i),If.v&&i.initEvent(t,!1,!0),i&&e[Df])e[Df](i);else{var s=e["on"+t];if(s)s(i);else{var a=Vr("console");a&&(a.error||a.log)(t,tr(i))}}}(e,qf,(function(e){return Pr(e,"promise",{g:function(){return n}}),e.reason=o,e}),!!Pf.v)}}return Dr(n={then:f,catch:function(e){return f(void 0,e)},finally:function(e){var t=e,r=e;return Nt(e)&&(t=function(t){return e&&e(),t},r=function(t){throw e&&e(),t}),f(t,r)}},"state",{get:b}),Lf&&function(e,t,r,n){Cf=Cf||{toString:function(){return"[[PromiseResult]]"}},Sf=Sf||{toString:function(){return"[[PromiseIsHandled]]"}};var i={};i[kf=kf||{toString:function(){return"[[PromiseState]]"}}]={get:t},i[Cf]={get:function(){return Rt(o)}},i[Sf]={get:function(){return d}},jr(e,i)}(n,b),oo()&&(n[io(11)]="IPromise"),n.toString=function(){return"IPromise"+(Lf?"["+c+(Dt(u)?"":":"+u)+"]":"")+" "+b()+(a?" - "+Ff(o):"")},function(){Nt(r)||or(Tf+": executor is not a function - "+Ff(r));var e=g(3,0);try{r.call(n,g(2,0),e)}catch(t){e(t)}}(),n}function Wf(e){return function(t){var r=go(arguments,1);return e((function(e,r){try{var o=[],n=1;co(t,(function(t,i){t&&(n++,$f(t,(function(t){o[i]=t,0==--n&&e(o)}),r))})),0==--n&&e(o)}catch(e){r(e)}}),r)}}function Kf(e,t){return Bf(Kf,function(e){var t=Ut(e)?e:0;return function(e){en((function(){!function(e){fo(e,(function(e){try{e()}catch(e){}}))}(e)}),t)}}(t),e,t)}function Xf(e,t){!Mf&&(Mf=Nr($t(Vr,[Tf]).v||null));var r=Mf.v;if(!r)return Kf(e);Nt(e)||or(Tf+": executor is not a function - "+tr(e));var o=0,n=new r((function(t,r){e((function(e){o=2,t(e)}),(function(e){o=3,r(e)}))}));return Dr(n,"state",{get:function(){return Rf[o]}}),n}function Gf(e,t){return!Nf&&(Nf=Nr(Xf)),Nf.v.call(this,e,t)}var Jf=Wf(Gf);io(11);var Qf="featureOptIn",Yf="onCfgChangeReceive",Zf="nonOverrideConfigs",eb="scheduleFetchTimeout";function tb(e,t,r,o){try{var n=r>o;n&&(e=null);var i=0==r?function(e,t,r,o,n,i,s){return No(e||{},Ot[wt](arguments))}({},e):e;return i&&t&&!n&&Qt(i,(function(e){var n=t[e];n&&(zt(i[e])&&zt(n)?i[e]=tb(i[e],n,++r,o):delete i[e])})),i}catch(e){}return e}var rb,ob="featureOptIn.",nb=".mode",ib=".onCfg",sb=".offCfg";var ab=void 0,lb=cr(((rb={syncMode:1,blkCdnCfg:ab,customEvtName:ab,cfgUrl:ab,overrideSyncFn:ab,overrideFetchFn:ab})[Yf]=ab,rb[eb]=18e5,rb[Zf]={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},rb)),cb=function(e){function t(){var r,o,n,i,s,a,l,c,u,d,p,f,b,h,g,v,m=e.call(this)||this;m.priority=198,m.identifier="AppInsightsCfgSyncPlugin";var y=!1;return Ln(t,m,(function(e,t){function m(){o=null,n=null,i=null,s=null,l=null,c=null,b=null,a=null,d=null,p=null,u=null,g=null,v=null,f=null}function w(t,r){if(t){if(o=t,r&&!y)return x();if(l&&!y)return e.core.updateCfg(t),!0}return!1}function _(){try{var e=Ur();e&&Dd(e,null,null,i)}catch(e){}}function x(e){try{return v&&Nt(v)?v(o,e):function(e,t,r){var o,n,i=Ur();if(i&&i.CustomEvent)try{return o=i,n=function(e,t){var r=null,o={detail:t||null};if(Nt(CustomEvent))r=new CustomEvent(e,o);else{var n=Br();n&&n.createEvent&&(r=n.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,o)}return r}(e,{cfg:t||null,customDetails:r||null}),!!(o&&o.dispatchEvent&&n)&&(o.dispatchEvent(n),!0)}catch(e){}return!1}(n,o,e)}catch(e){}return!1}function k(e){try{return _(),e&&(n=e,function(){if(l){var e=Ur();if(e)try{Rd(e,n,(function(e){var t=e&&e.detail;if(f&&t)f(t);else{var r=t&&t.cfg,o=r&&Lo(r)&&A(r);o&&w(o)}}),i,!0)}catch(e){}}}()),!0}catch(e){}return!1}function C(e,t,r){var o=Ur(),n=o&&o.fetch||null;if(e&&n&&Nt(n))try{var i=new Request(e,{method:"GET"});Of(fetch(i),(function(e){var o=e.value;e.rejected?T(t,400):o.ok?Of(o.text(),(function(e){T(t,o.status,e.value,r)})):T(t,o.status,null,r)}))}catch(e){}}function S(e,t,r){try{var o=new XMLHttpRequest;o.open("GET",e),o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&T(t,o.status,o.responseText,r)},o.onerror=function(){T(t,400)},o.ontimeout=function(){T(t,400)},o.send()}catch(e){}}function E(t,r,o){try{if(t>=200&&t<400&&r){p=0;var n=ua();if(n){var i=function(e,t){try{if(!e||!e.enabled)return null;if(!e[Qf])return e.config;var r=e[Qf],o=e.config||{};return Qt(r,(function(r){var n,i,s,a,l,c,u,d=function(e,t,r){var o;if(!t||!t.enabled)return null;var n=(t[Qf]||{})[e]||{mode:1},i=n.mode,s=n.onCfg,a=n.offCfg,l=(r||{})[e]||{mode:2},c=l.mode,u=l.onCfg,d=l.offCfg,p=!!l.blockCdnCfg,f=ob+e+ib,b=ob+e+sb,h=c,g=u,v=d;return p||(4===i||5===i?(h=4==i?3:2,g=s||u,v=a||d):2===i||2===c?(h=2,g=u||s,v=d||a):3===i?(h=3,g=u||s,v=d||a):1===i&&1===c&&(h=1)),(o={})[ob+e+nb]=h,o[f]=g,o[b]=v,o}(r,e,t.config[Qf]);jt(d)||(Qt(d,(function(e,t){Fo(o,e,t)})),s=o,a=(i=d)[ob+(n=r)+nb],l=i[ob+n+ib],c=i[ob+n+sb],u=null,3===a&&(u=l),2===a&&(u=c),u&&Qt(u,(function(e,t){Fo(s,e,t)})))})),o}catch(e){}return null}(n.parse(r),e.core),s=i&&Lo(i)&&A(i);s&&w(s,o)}}else p++;p<3&&O()}catch(e){}}function T(e,t,r,o){try{e(t,r,o)}catch(e){}}function A(e,t){var r=null;try{e&&(r=tb(e,b,0,5))}catch(e){}return r}function O(){!a&&d&&(a=en((function(){a=null,h(s,E,c)}),d)).unref()}function $(){a&&a.cancel(),a=null,p=0}m(),e.initialize=function(a,m,y,w){t.initialize(a,m,y,w),i=Ld($a(e.identifier),m.evtNamespace&&m.evtNamespace()),function(t){var i=e.identifier,a=e.core;e._addHook(Za(t,(function(){var e=ep(null,t,a);r=e.getExtCfg(i,lb);var d=u;u=!!r.blkCdnCfg,jt(d)||d===u||(!u&&s?h&&h(s,E,c):$()),jt(l)&&(l=2===r.syncMode),jt(c)&&(c=1===r.syncMode);var p=r.customEvtName||"ai_cfgsync";n!==p&&(l?k(p):(_(),n=p)),jt(s)&&(s=r.cfgUrl),s||(o=t,c&&x())}))),v=r.overrideSyncFn,g=r.overrideFetchFn,f=r[Yf],b=r[Zf],d=r[eb],h=function(){var e=g;return jt(e)&&(ba()?e=C:ha()&&(e=S)),e}(),p=0,s&&!u&&h&&h(s,E,c)}(a)},e.getCfg=function(){return o},e.pause=function(){y=!0,$()},e.resume=function(){y=!1,O()},e.setCfg=function(e){return w(e)},e.sync=function(e){return x(e)},e.updateEventListenerName=function(e){return k(e)},e._doTeardown=function(e,t){_(),$(),m()},e._getDbgPlgTargets=function(){return[c,l,n,u,b]},e.processTelemetry=function(t,r){e.processNext(t,r)}})),m}return Un(t,e),t.__ieDyn=1,t}(vp);function ub(e,t){Dd(e,null,null,t)}var db="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",pb="",fb="&NoResponseBody=true",bb="POST",hb=function(){function e(){var t,r,o,n,i,s,a,l,c,u,d,p,f,b=0;Ln(e,this,(function(e,h){var g=!0;function v(e,t){hl(o,2,26,"Failed to send telemetry.",{message:e}),y(t,400,{})}function m(e){v("No endpoint url is provided for the batch",e)}function y(e,t,r,o){try{e&&e(t,r,o)}catch(e){}}function w(e,t){var r=Qr(),o=e[Ji];if(!o)return m(t),!0;o=e[Ji]+(p?fb:pb);var i=e[Bi],s=n?i:new Blob([i],{type:"text/plain;charset=UTF-8"});return r.sendBeacon(o,s)}function _(e,t,r){var s=e[Bi];try{if(s)if(w(e,t))y(t,200,{},pb);else{var l=i&&i.beaconOnRetry;l&&Nt(l)?l(e,t,w):(a&&a[Qi](e,t,!0),hl(o,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(e){n&&gl(o,"Failed to send telemetry using sendBeacon API. Ex:"+tr(e)),y(t,n?0:400,{},pb)}}function x(e,r,o){var s,a,l,c=e[Yi]||{};!o&&t&&(s=Gf((function(e,t){a=e,l=t}))),n&&o&&e.disableXhrSync&&(o=!1);var u=e[Ji];if(!u)return m(r),void(a&&a(!1));var d=function(e,t,r,o,n,i){function s(e,t,r){try{e[t]=r}catch(e){}}void 0===o&&(o=!1),void 0===n&&(n=!1);var a=new XMLHttpRequest;return o&&s(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",o),r&&s(a,Ws,r),a.open(e,t,!n),r&&s(a,Ws,r),!n&&i&&s(a,"timeout",i),a}(bb,u,g,!0,o,e[Zi]);function p(t){var o=i&&i.xhrOnComplete;if(o&&Nt(o))o(t,r,e);else{var s=Us(t);y(r,t[Hi],Xs(t,n),s)}}return n||d[es]("Content-type","application/json"),fo(lr(c),(function(e){d[es](e,c[e])})),d.onreadystatechange=function(){n||(p(d),4===d.readyState&&a&&a(!0))},d.onload=function(){n&&p(d)},d.onerror=function(e){y(r,n?d[Hi]:400,Xs(d,n),n?pb:Fs(d)),l&&l(e)},d.ontimeout=function(){y(r,n?d[Hi]:500,Xs(d,n),n?pb:Fs(d)),a&&a(!1)},d.send(e[Bi]),s}function k(e,r,o){var s,a,l,c,u=e[Ji],d=e[Bi],h=n?d:new Blob([d],{type:"application/json"}),v=new Headers,w=d[Wn],_=!1,x=!1,k=e[Yi]||{},C=((s={method:bb,body:h})[db]=!0,s);e.headers&&lr(e.headers)[Wn]>0&&(fo(lr(k),(function(e){v.append(e,k[e])})),C[Yi]=v),g&&n&&(C.credentials="include"),o&&(C.keepalive=!0,b+=w,n?2===e._sendReason&&(_=!0,p&&(u+=fb)):_=!0);var S=new Request(u,C);try{S[db]=!0}catch(e){}if(!o&&t&&(a=Gf((function(e,t){l=e,c=t}))),!u)return m(r),void(l&&l(!1));function E(e){y(r,n?0:400,{},n?pb:e)}function T(e,t,o){var n=e[Hi],s=i.fetchOnComplete;s&&Nt(s)?s(e,r,o||pb,t):y(r,n,{},o||pb)}try{Of(fetch(n?u:S,n?C:null),(function(t){if(o&&(b-=w,w=0),!x)if(x=!0,t.rejected)E(t.reason&&t.reason[Ei]),c&&c(t.reason);else{var r=t.value;try{n||r.ok?n&&!r.body?(T(r,null,pb),l&&l(!0)):Of(r.text(),(function(t){T(r,e,t.value),l&&l(!0)})):(E(r.statusText),l&&l(!1))}catch(e){E(tr(e)),c&&c(e)}}}))}catch(e){x||(E(tr(e)),c&&c(e))}return _&&!x&&(x=!0,y(r,200,{}),l&&l(!0)),n&&!x&&e[Zi]>0&&f&&f.set((function(){x||(x=!0,y(r,500,{}),l&&l(!0))}),e[Zi]),a}function C(e,t,r){var s=Jr(),a=new XDomainRequest,l=e[Bi];a.onload=function(){var r=Us(a),o=i&&i.xdrOnComplete;o&&Nt(o)?o(a,t,e):y(t,200,{},r)},a.onerror=function(){y(t,400,{},n?pb:Vs(a))},a.ontimeout=function(){y(t,500,{})},a.onprogress=function(){};var c=s&&s.location&&s.location[Ri]||"",u=e[Ji];if(u){if(!n&&0!==u.lastIndexOf(c,0)){var d="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";return hl(o,2,40,". "+d),void v(d,t)}var p=n?u:u[Mi](/^(https?:)/,"");a.open(bb,p),e[Zi]&&(a[Zi]=e[Zi]),a.send(l),n&&r?f&&f.set((function(){a.send(l)}),0):a.send(l)}else m(t)}function S(){b=0,r=!1,t=!1,o=null,n=null,i=null,s=null,a=null,l=!1,c=!1,u=!1,d=!1,p=!1,f=null}S(),e[ii]=function(t,n){o=n,r&&hl(o,1,28,"Sender is already initialized"),e.SetConfig(t),r=!0},e._getDbgPlgTargets=function(){return[r,n,s,t]},e.SetConfig=function(e){try{if(i=e.senderOnCompleteCallBack||{},s=!!e.disableCredentials,n=!!e.isOneDs,t=!!e.enableSendPromise,l=!!e.disableXhr,c=!!e.disableBeacon,u=!!e.disableBeaconSync,f=e.timeWrapper,p=!!e.addNoResponse,d=!!e.disableFetchKeepAlive,a={sendPOST:x},n||(g=!1),s){var r=la();r&&r.protocol&&"file:"===r.protocol[Fn]()&&(g=!1)}return!0}catch(e){}return!1},e.getSyncFetchPayload=function(){return b},e.getSenderInst=function(e,t){return e&&e[Wn]?function(e,t){for(var r,o=0,n=null,i=0;null==n&&i<e[Wn];)o=e[i],l||1!==o?2!==o||!ba(t)||t&&d?3!==o||!fa()||(t?u:c)||(n=_):n=k:(null===ia&&(ia=typeof XDomainRequest!==jn)&&ha()&&(ia=ia&&!aa(Vr(ta),"withCredentials")),ia?n=C:ha()&&(n=x)),i++;return n?((r={_transport:o,_isSync:t})[Qi]=n,r):null}(e,t):null},e.getFallbackInst=function(){return a},e[Oi]=function(e,t){S()}}))}return e.__ieDyn=1,e}();function gb(e,t){if(e&&e[yi])return e[yi](t)}function vb(e,t,r){var o;return r||(o=Gf((function(e){r=e}))),e&&Ho(e)>0?Of(gb(e[0],t),(function(){vb(go(e,1),t,r)})):r(),o}function mb(e,t){try{if(e&&""!==e){var r=ua().parse(e);if(r&&r[Gi]&&r[Gi]>=r.itemsAccepted&&r.itemsReceived-r.itemsAccepted===r.errors[Wn])return r}}catch(r){hl(t,1,43,"Cannot parse the response. "+(r[fi]||tr(r)),{response:e})}return null}function yb(e){var t="ai."+e+".";return function(e){return t+e}}var wb,_b=yb("application"),xb=yb("device"),kb=yb("location"),Cb=yb("operation"),Sb=yb("session"),Eb=yb("user"),Tb=yb("cloud"),Ab=yb("internal"),Ob=function(e){function t(){return e.call(this)||this}return Un(t,e),t}((wb={applicationVersion:_b("ver"),applicationBuild:_b("build"),applicationTypeId:_b("typeId"),applicationId:_b("applicationId"),applicationLayer:_b("layer"),deviceId:xb("id"),deviceIp:xb("ip"),deviceLanguage:xb("language"),deviceLocale:xb("locale"),deviceModel:xb("model"),deviceFriendlyName:xb("friendlyName"),deviceNetwork:xb("network"),deviceNetworkName:xb("networkName"),deviceOEMName:xb("oemName"),deviceOS:xb("os"),deviceOSVersion:xb("osVersion"),deviceRoleInstance:xb("roleInstance"),deviceRoleName:xb("roleName"),deviceScreenResolution:xb("screenResolution"),deviceType:xb("type"),deviceMachineName:xb("machineName"),deviceVMName:xb("vmName"),deviceBrowser:xb("browser"),deviceBrowserVersion:xb("browserVersion"),locationIp:kb("ip"),locationCountry:kb("country"),locationProvince:kb("province"),locationCity:kb("city"),operationId:Cb("id"),operationName:Cb("name"),operationParentId:Cb("parentId"),operationRootId:Cb("rootId"),operationSyntheticSource:Cb("syntheticSource"),operationCorrelationVector:Cb("correlationVector"),sessionId:Sb("id"),sessionIsFirst:Sb("isFirst"),sessionIsNew:Sb("isNew"),userAccountAcquisitionDate:Eb("accountAcquisitionDate"),userAccountId:Eb("accountId"),userAgent:Eb("userAgent"),userId:Eb("id"),userStoreRegion:Eb("storeRegion"),userAuthUserId:Eb("authUserId"),userAnonymousUserAcquisitionDate:Eb("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Eb("authUserAcquisitionDate"),cloudName:Tb("name"),cloudRole:Tb("role"),cloudRoleVer:Tb("roleVer"),cloudRoleInstance:Tb("roleInstance"),cloudEnvironment:Tb("environment"),cloudLocation:Tb("location"),cloudDeploymentUnit:Tb("deploymentUnit"),internalNodeName:Ab("nodeName"),internalSdkVersion:Ab("sdkVersion"),internalAgentVersion:Ab("agentVersion"),internalSnippet:Ab("snippet"),internalSdkSrc:Ab("sdkSrc")},function(){var e=this;wb&&Qt(wb,(function(t,r){e[t]=r}))})),$b="user",Ib="device",Lb="trace",Rb=new Ob,Db=function(e,t,r){var o=this,n=this;n.ver=1,n.sampleRate=100,n.tags={},n[El]=Ac(e,r)||Sc,n.data=t,n.time=Ls(new Date),n.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===o.sampleRate?4:1},tags:1,data:1}},jb=function(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t},Pb="duration",Mb="tags",Nb="deviceType",zb="data",qb="name",Hb="traceID",Ub="length",Vb="stringify",Fb="measurements",Bb="dataType",Wb="envelopeType",Kb="toString",Xb="_get",Gb="enqueue",Jb="count",Qb="eventsLimitInMem",Yb="push",Zb="item",eh="emitLineDelimitedJson",th="clear",rh="createNew",oh="markAsSent",nh="clearSent",ih="bufferOverride",sh="BUFFER_KEY",ah="SENT_BUFFER_KEY",lh="concat",ch="MAX_BUFFER_SIZE",uh="triggerSend",dh="diagLog",ph="initialize",fh="_sender",bh="customHeaders",hh="maxBatchSizeInBytes",gh="onunloadDisableBeacon",vh="isBeaconApiDisabled",mh="alwaysUseXhrOverride",yh="disableXhr",wh="enableSessionStorageBuffer",_h="_buffer",xh="onunloadDisableFetch",kh="disableSendBeaconSplit",Ch="instrumentationKey",Sh="enableSendPromise",Eh="getSenderInst",Th="unloadTransports",Ah="convertUndefined",Oh="maxBatchInterval",$h="serialize",Ih="_onError",Lh="_onPartialSuccess",Rh="_onSuccess",Dh="itemsReceived",jh="itemsAccepted",Ph="oriPayload",Mh="baseType",Nh="sampleRate",zh="eventsSendRequest",qh="getSamplingScore",Hh="baseType",Uh="baseData",Vh="properties",Fh="true";function Bh(e,t,r){return Ds(e,t,r,Wt)}function Wh(e,t,r){jt(e)||Qt(e,(function(e,o){Ut(o)?r[e]=o:Mt(o)?t[e]=o:ca()&&(t[e]=ua()[Vb](o))}))}function Kh(e,t){jt(e)||Qt(e,(function(r,o){e[r]=o||t}))}function Xh(e,t,r,o){var n=new Db(e,o,t);Bh(n,"sampleRate",r[wc]),(r[Uh]||{}).startTime&&(n.time=Ls(r[Uh].startTime)),n.iKey=r.iKey;var i=r.iKey.replace(/-/g,"");return n[qb]=n[qb].replace("{0}",i),function(e,t,r){var o=r[Mb]=r[Mb]||{},n=t.ext=t.ext||{},i=t[Mb]=t[Mb]||[],s=n.user;s&&(Bh(o,Rb.userAuthUserId,s.authId),Bh(o,Rb.userId,s.id||s.localId));var a=n.app;a&&Bh(o,Rb.sessionId,a.sesId);var l=n.device;l&&(Bh(o,Rb.deviceId,l.id||l.localId),Bh(o,Rb[Nb],l.deviceClass),Bh(o,Rb.deviceIp,l.ip),Bh(o,Rb.deviceModel,l.model),Bh(o,Rb[Nb],l[Nb]));var c=t.ext.web;if(c){Bh(o,Rb.deviceLanguage,c.browserLang),Bh(o,Rb.deviceBrowserVersion,c.browserVer),Bh(o,Rb.deviceBrowser,c.browser);var u=r[zb]=r[zb]||{},d=u[Uh]=u[Uh]||{},p=d[Vh]=d[Vh]||{};Bh(p,"domain",c.domain),Bh(p,"isManual",c.isManual?Fh:null),Bh(p,"screenRes",c.screenRes),Bh(p,"userConsent",c.userConsent?Fh:null)}var f=n.os;f&&(Bh(o,Rb.deviceOS,f[qb]),Bh(o,Rb.deviceOSVersion,f.osVer));var b=n.trace;b&&(Bh(o,Rb.operationParentId,b.parentID),Bh(o,Rb.operationName,Ac(e,b[qb])),Bh(o,Rb.operationId,b[Hb]));for(var h={},g=i[Ub]-1;g>=0;g--)Qt(i[g],(function(e,t){h[e]=t})),i.splice(g,1);Qt(i,(function(e,t){h[e]=t}));var v=qn(qn({},o),h);v[Rb.internalSdkVersion]||(v[Rb.internalSdkVersion]=Ac(e,"javascript:".concat(Jh.Version),64)),r[Mb]=zs(v)}(e,r,n),r[Mb]=r[Mb]||[],zs(n)}function Gh(e,t){jt(t[Uh])&&hl(e,1,46,"telemetryItem.baseData cannot be null.")}var Jh={Version:"3.2.0"};function Qh(e,t,r){Gh(e,t);var o={},n={};t[Hh]!==Pc[Bb]&&(o.baseTypeSource=t[Hh]),t[Hh]===Pc[Bb]?(o=t[Uh][Vh]||{},n=t[Uh][Fb]||{}):t[Uh]&&Wh(t[Uh],o,n),Wh(t[zb],o,n),jt(r)||Kh(o,r);var i=t[Uh][qb],s=new Pc(e,i,o,n),a=new jb(Pc[Bb],s);return Xh(e,Pc[Wb],t,a)}var Yh,Zh,eg=function(){function e(t,r){var o=[],n=!1,i=r.maxRetryCnt;this[Xb]=function(){return o},this._set=function(e){return o=e},Ln(e,this,(function(e){e[Gb]=function(s){e[Jb]()>=r[Qb]?n||(hl(t,2,105,"Maximum in-memory buffer size reached: "+e[Jb](),!0),n=!0):(s.cnt=s.cnt||0,!jt(i)&&s.cnt>i||o[Yb](s))},e[Jb]=function(){return o[Ub]},e.size=function(){for(var e=o[Ub],t=0;t<o[Ub];t++)e+=o[t].item[Ub];return r[eh]||(e+=2),e},e[th]=function(){o=[],n=!1},e.getItems=function(){return o.slice(0)},e.batchPayloads=function(e){if(e&&e[Ub]>0){var t=[];return fo(e,(function(e){t[Yb](e[Zb])})),r[eh]?t.join("\n"):"["+t.join(",")+"]"}return null},e[rh]=function(e,r,n){var i=o.slice(0);e=e||t,r=r||{};var s=n?new og(e,r):new tg(e,r);return fo(i,(function(e){s[Gb](e)})),s}}))}return e.__ieDyn=1,e}(),tg=function(e){function t(r,o){var n=e.call(this,r,o)||this;return Ln(t,n,(function(e,t){e[oh]=function(e){t[th]()},e[nh]=function(e){}})),n}return Un(t,e),t.__ieDyn=1,t}(eg),rg=["AI_buffer","AI_sentBuffer"],og=function(e){function t(r,o){var n=e.call(this,r,o)||this,i=!1,s=null==o?void 0:o.namePrefix,a=o[ih]||{getItem:fc,setItem:bc},l=a.getItem,c=a.setItem,u=o.maxRetryCnt;return Ln(t,n,(function(e,o){var n=h(t[sh]),a=h(t[ah]),d=function(){var e=[];try{return fo(rg,(function(t){var r=m(t);if(e=e[lh](r),s){var o=m(s+"_"+t);e=e[lh](o)}})),e}catch(e){hl(r,2,41,"Transfer events from previous buffers: "+Rs(e)+". previous Buffer items can not be removed",{exception:tr(e)})}return[]}(),p=a[lh](d),f=e._set(n[lh](p));function b(e,t){var r=[],o=[];return fo(e,(function(e){o[Yb](e[Zb])})),fo(t,(function(e){Nt(e)||-1!==bo(o,e[Zb])||r[Yb](e)})),r}function h(e){return g(s?s+"_"+e:e)}function g(e){try{var t=l(r,e);if(t){var o=ua().parse(t);if(Mt(o)&&(o=ua().parse(o)),o&&qt(o))return o}}catch(t){hl(r,1,42," storage key: "+e+", "+Rs(t),{exception:tr(t)})}return[]}function v(e,t){var o=e;try{o=s?s+"_"+o:o;var n=JSON[Vb](t);c(r,o,n)}catch(e){c(r,o,JSON[Vb]([])),hl(r,2,41," storage key: "+o+", "+Rs(e)+". Buffer cleared",{exception:tr(e)})}}function m(e){try{var t=g(e),o=[];return fo(t,(function(e){var t={item:e,cnt:0};o[Yb](t)})),hc(r,e),o}catch(e){}return[]}f[Ub]>t[ch]&&(f[Ub]=t[ch]),v(t[ah],[]),v(t[sh],f),e[Gb]=function(n){e[Jb]()>=t[ch]?i||(hl(r,2,67,"Maximum buffer size reached: "+e[Jb](),!0),i=!0):(n.cnt=n.cnt||0,!jt(u)&&n.cnt>u||(o[Gb](n),v(t.BUFFER_KEY,e[Xb]())))},e[th]=function(){o[th](),v(t.BUFFER_KEY,e[Xb]()),v(t[ah],[]),i=!1},e[oh]=function(o){v(t[sh],e._set(b(o,e[Xb]())));var n=h(t[ah]);n instanceof Array&&o instanceof Array&&((n=n[lh](o))[Ub]>t[ch]&&(hl(r,1,67,"Sent buffer reached its maximum size: "+n[Ub],!0),n[Ub]=t[ch]),v(t[ah],n))},e[nh]=function(e){var r=h(t[ah]);r=b(e,r),v(t[ah],r)},e[rh]=function(o,n,i){i=!!i;var s=e[Xb]().slice(0),a=h(t[ah]).slice(0);o=o||r,n=n||{},e[th]();var l=i?new t(o,n):new tg(o,n);return fo(s,(function(e){l[Gb](e)})),i&&l[oh](a),l}})),n}var r;return Un(t,e),r=t,t.VERSION="_1",t.BUFFER_KEY="AI_buffer"+r.VERSION,t.SENT_BUFFER_KEY="AI_sentBuffer"+r.VERSION,t.MAX_BUFFER_SIZE=2e3,t}(eg),ng=function(){function e(t){Ln(e,this,(function(e){function r(e,i){var s="__aiCircularRefCheck",a={};if(!e)return hl(t,1,48,"cannot serialize object because it is null or undefined",{name:i},!0),a;if(e[s])return hl(t,2,50,"Circular reference detected while serializing object",{name:i},!0),a;if(!e.aiDataContract){if("measurements"===i)a=n(e,"number",i);else if("properties"===i)a=n(e,"string",i);else if("tags"===i)a=n(e,"string",i);else if(qt(e))a=o(e,i);else{hl(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:i},!0);try{ua()[Vb](e),a=e}catch(e){hl(t,1,48,e&&Nt(e[Kb])?e[Kb]():"Error serializing object",null,!0)}}return a}return e[s]=!0,Qt(e.aiDataContract,(function(n,s){var l=Nt(s)?1&s():1&s,c=Nt(s)?4&s():4&s,u=2&s,d=void 0!==e[n],p=zt(e[n])&&null!==e[n];if(!l||d||u){if(!c){var f;void 0!==(f=p?u?o(e[n],n):r(e[n],n):e[n])&&(a[n]=f)}}else hl(t,1,24,"Missing required field specification. The field is required but not present on source",{field:n,name:i})})),delete e[s],a}function o(e,o){var n;if(e)if(qt(e)){n=[];for(var i=0;i<e[Ub];i++){var s=r(e[i],o+"["+i+"]");n[Yb](s)}}else hl(t,1,54,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:o},!0);return n}function n(e,r,o){var n;return e&&(n={},Qt(e,(function(e,i){if("string"===r)void 0===i?n[e]="undefined":null===i?n[e]="null":i[Kb]?n[e]=i[Kb]():n[e]="invalid field: toString() is not defined.";else if("number"===r)if(void 0===i)n[e]="undefined";else if(null===i)n[e]="null";else{var s=parseFloat(i);n[e]=s}else n[e]="invalid field: "+o+" is of unknown type.",hl(t,1,n[e],null,!0)}))),n}e[$h]=function(e){var o=r(e,"root");try{return ua()[Vb](o)}catch(e){hl(t,1,48,e&&Nt(e[Kb])?e[Kb]():"Error serializing object",null,!0)}}}))}return e.__ieDyn=1,e}(),ig=function(){function e(){}return e.prototype.getHashCodeScore=function(t){return this.getHashCode(t)/e.INT_MAX_VALUE*100},e.prototype.getHashCode=function(e){if(""===e)return 0;for(;e[Ub]<8;)e=e[lh](e);for(var t=5381,r=0;r<e[Ub];++r)t=(t<<5)+t+e.charCodeAt(r),t|=0;return Math.abs(t)},e.INT_MAX_VALUE=2147483647,e}(),sg=function(){var e=new ig,t=new Ob;this[qh]=function(r){return r[Mb]&&r[Mb][t.userId]?e.getHashCodeScore(r[Mb][t.userId]):r.ext&&r.ext.user&&r.ext.user.id?e.getHashCodeScore(r.ext.user.id):r[Mb]&&r[Mb][t.operationId]?e.getHashCodeScore(r[Mb][t.operationId]):r.ext&&r.ext.telemetryTrace&&r.ext.telemetryTrace[Hb]?e.getHashCodeScore(r.ext.telemetryTrace[Hb]):100*Math.random()}},ag=function(){function e(e,t){this.INT_MAX_VALUE=2147483647;var r=t||pl(null);(e>100||e<0)&&(r.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this[Nh]=e,this.samplingScoreGenerator=new sg}return e.prototype.isSampledIn=function(e){var t=this[Nh];return null==t||t>=100||e.baseType===zc[Bb]||this.samplingScoreGenerator[qh](e)<t},e}(),lg=void 0;function cg(e){try{return e.responseText}catch(e){}return null}var ug=cr(((Yh={endpointUrl:Mu(Wt,kc+Cc)})[eh]=Nu(),Yh[Oh]=15e3,Yh[hh]=102400,Yh.disableTelemetry=Nu(),Yh[wh]=Nu(!0),Yh.isRetryDisabled=Nu(),Yh[vh]=Nu(!0),Yh[kh]=Nu(!0),Yh[yh]=Nu(),Yh[xh]=Nu(),Yh[gh]=Nu(),Yh[Ch]=lg,Yh.namePrefix=lg,Yh.samplingPercentage=Mu((function(e){return!isNaN(e)&&e>0&&e<=100}),100),Yh[bh]=lg,Yh[Ah]=lg,Yh[Qb]=1e4,Yh[ih]=!1,Yh.httpXHROverride={isVal:function(e){return e&&e.sendPOST},v:lg},Yh[mh]=Nu(),Yh.transports=lg,Yh.retryCodes=lg,Yh.maxRetryCnt={isVal:Ut,v:10},Yh)),dg=((Zh={})[Pc.dataType]=Qh,Zh[Mc.dataType]=function(e,t,r){Gh(e,t);var o=t[Uh].message,n=t[Uh].severityLevel,i=t[Uh][Vh]||{},s=t[Uh][Fb]||{};Wh(t[zb],i,s),jt(r)||Kh(i,r);var a=new Mc(e,o,n,i,s),l=new jb(Mc[Bb],a);return Xh(e,Mc[Wb],t,l)},Zh[Uc.dataType]=function(e,t,r){var o;Gh(e,t);var n=t[Uh];jt(n)||jt(n[Vh])||jt(n[Vh][Pb])?jt(t[zb])||jt(t[zb][Pb])||(o=t[zb][Pb],delete t[zb][Pb]):(o=n[Vh][Pb],delete n[Vh][Pb]);var i,s=t[Uh];((t.ext||{}).trace||{})[Hb]&&(i=t.ext.trace[Hb]);var a=s.id||i,l=s[qb],c=s.uri,u=s[Vh]||{},d=s[Fb]||{};jt(s.refUri)||(u.refUri=s.refUri),jt(s.pageType)||(u.pageType=s.pageType),jt(s.isLoggedIn)||(u.isLoggedIn=s.isLoggedIn[Kb]()),jt(s[Vh])||Qt(s[Vh],(function(e,t){u[e]=t})),Wh(t[zb],u,d),jt(r)||Kh(u,r);var p=new Uc(e,l,c,o,u,d,a),f=new jb(Uc[Bb],p);return Xh(e,Uc[Wb],t,f)},Zh[Vc.dataType]=function(e,t,r){Gh(e,t);var o=t[Uh],n=o[qb],i=o.uri||o.url,s=o[Vh]||{},a=o[Fb]||{};Wh(t[zb],s,a),jt(r)||Kh(s,r);var l=new Vc(e,n,i,void 0,s,a,o),c=new jb(Vc[Bb],l);return Xh(e,Vc[Wb],t,c)},Zh[ou.dataType]=function(e,t,r){Gh(e,t);var o=t[Uh][Fb]||{},n=t[Uh][Vh]||{};Wh(t[zb],n,o),jt(r)||Kh(n,r);var i=t[Uh],s=ou.CreateFromInterface(e,i,n,o),a=new jb(ou[Bb],s);return Xh(e,ou[Wb],t,a)},Zh[zc.dataType]=function(e,t,r){Gh(e,t);var o=t[Uh],n=o[Vh]||{},i=o[Fb]||{};Wh(t[zb],n,i),jt(r)||Kh(n,r);var s=new zc(e,o[qb],o.average,o.sampleCount,o.min,o.max,o.stdDev,n,i),a=new jb(zc[Bb],s);return Xh(e,zc[Wb],t,a)},Zh[Lu.dataType]=function(e,t,r){Gh(e,t);var o=t[Uh][Fb]||{},n=t[Uh][Vh]||{};Wh(t[zb],n,o),jt(r)||Kh(n,r);var i=t[Uh];if(jt(i))return gl(e,"Invalid input for dependency data"),null;var s=i[Vh]&&i[Vh][xc]?i[Vh][xc]:"GET",a=new Lu(e,i.id,i.target,i[qb],i[Pb],i.success,i.responseCode,s,i.type,i.correlationContext,n,o),l=new jb(Lu[Bb],a);return Xh(e,Lu[Wb],t,l)},Zh),pg=function(e){function t(){var r,o,n,i,s,a,l,c=e.call(this)||this;c.priority=1001,c.identifier=vc;var u,d,p,f,b,h,g,v,m,y,w,_,x,k,C,S,E,T,A,O,$,I,L,R,D,j,P,M=0;return Ln(t,c,(function(e,N){function z(t,o){var n=cg(t);if(!t||n+""!="200"&&""!==n){var i=mb(n);i&&i[Dh]&&i[Dh]>i[jh]&&!k?e[Lh](o,i):e[Ih](o,Vs(t))}else r=0,e[Rh](o,0)}function q(e,t,r){4===e.readyState&&Q(e.status,t,e.responseURL,r,Fs(e),cg(e)||e.response)}function H(e){try{if(e){var t=e[Ph];return t&&t[Ub]?t:null}}catch(e){}return null}function U(t,r){return!(w||(t?t.baseData&&!t[Mh]?(r&&hl(r,1,70,"Cannot send telemetry without baseData and baseType"),1):(t[Mh]||(t[Mh]="EventData"),e[fh]?(o=t,e._sample.isSampledIn(o)?(t[wc]=e._sample[Nh],0):(r&&hl(r,2,33,"Telemetry item was sampled out and not sent",{SampleRate:e._sample[Nh]}),1)):(r&&hl(r,1,28,"Sender was not initialized"),1)):(r&&hl(r,1,7,"Cannot send empty telemetry"),1)));var o}function V(e,r){var o=e.iKey||_,n=t.constructEnvelope(e,o,r,x);if(n){var i=!1;if(e[Mb]&&e[Mb][_c]&&(fo(e[Mb][_c],(function(e){try{e&&!1===e(n)&&(i=!0,gl(r,"Telemetry processor check returns false"))}catch(e){hl(r,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Rs(e),{exception:tr(e)},!0)}})),delete e[Mb][_c]),!i)return n}else hl(r,1,47,"Unable to create an AppInsights envelope")}function F(t){var r="",o=e[dh]();try{var n=U(t,o),i=null;n&&(i=V(t,o)),i&&(r=s[$h](i))}catch(e){}return r}function B(e){var t="";return e&&e[Ub]&&(t="["+e.join(",")+"]"),t}function W(e){var t,r=G();return(t={urlString:f})[zb]=e,t.headers=r,t}function K(t,r,o,n){void 0===n&&(n=!0);var i=X(r),s=t&&t.sendPOST;return s&&i?(n&&e._buffer[oh](r),s(i,(function(t,o,n){return function(t,r,o,n){200===r&&t?e._onSuccess(t,t[Ub]):n&&e[Ih](t,n)}(r,t,0,n)}),!o)):null}function X(t){var r;if(qt(t)&&t[Ub]>0){var o=e[_h].batchPayloads(t),n=G();return(r={})[zb]=o,r.urlString=f,r.headers=n,r.disableXhrSync=$,r.disableFetchKeepAlive=!I,r[Ph]=t,r}return null}function G(){try{var e=l||{};return Cu(f)&&(e[gu[6]]=gu[7]),e}catch(e){}return null}function J(t){var r=t?t[Ub]:0;return e[_h].size()+r>h&&(d&&!d.isOnline()||e[uh](!0,null,10),!0)}function Q(t,o,n,i,s,a){var l=null;if(e._appId||(l=mb(a))&&l.appId&&(e._appId=l.appId),(t<200||t>=300)&&0!==t){if((301===t||307===t||308===t)&&!Y(n))return void e[Ih](o,s);!k&&ie(t)?(re(o),hl(e[dh](),2,40,". Response code "+t+". Will retry to send "+o[Ub]+" items.")):e[Ih](o,s)}else d&&!d.isOnline()?k||(re(o,10),hl(e[dh](),2,40,". Offline - Response Code: ".concat(t,". Offline status: ").concat(!d.isOnline(),". Will retry to send ").concat(o.length," items."))):(Y(n),206===t?(l||(l=mb(a)),l&&!k?e[Lh](o,l):e[Ih](o,s)):(r=0,e[Rh](o,i)))}function Y(e){return!(a>=10||jt(e)||""===e||e===f||(f=e,++a,0))}function Z(e,t){if(!u)return K(j&&j[Eh]([3],!0),e,t);u(e,!1)}function ee(e){try{if(e&&e[Ub])return Mt(e[0])}catch(e){}return null}function te(t,r){var o=null;if(qt(t)){for(var n=t[Ub],i=0;i<t[Ub];i++)n+=t[i].item[Ub];return j.getSyncFetchPayload()+n<=65e3?o=2:fa()?o=3:(o=1,hl(e[dh](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender.")),K(j&&j[Eh]([o],!0),t,r)}return null}function re(t,n){if(void 0===n&&(n=1),t&&0!==t[Ub]){var i=e[_h];i[nh](t),r++;for(var s=0,a=t;s<a.length;s++){var l=a[s];l.cnt=l.cnt||0,l.cnt++,i[Gb](l)}!function(e){var t;if(r<=1)t=10;else{var n=(Math.pow(2,r)-1)/2,i=Math.floor(Math.random()*n*10)+1;i*=e,t=Math.max(Math.min(i,3600),10)}var s=So()+1e3*t;o=s}(n),oe()}}function oe(){if(!i&&!n){var t=o?Math.max(0,o-So()):0,r=Math.max(C,t);i=en((function(){i=null,e[uh](!0,null,1)}),r)}}function ne(){i&&i.cancel(),i=null,o=null}function ie(e){return jt(P)?401===e||408===e||429===e||500===e||502===e||503===e||504===e:P[Ub]&&P.indexOf(e)>-1}function se(){e[fh]=null,e[_h]=null,e._appId=null,e._sample=null,l={},d=null,r=0,o=null,n=!1,i=null,s=null,a=0,M=0,u=null,p=null,f=null,b=null,h=0,g=!1,y=null,w=!1,_=null,x=lg,k=!1,S=null,T=lg,$=!1,I=!1,D=!1,L=null,R=null,j=null,Pr(e,"_senderConfig",{g:function(){return qs({},ug)}})}se(),e.pause=function(){ne(),n=!0},e.resume=function(){n&&(n=!1,o=null,J(),oe())},e.flush=function(t,r,o){if(void 0===t&&(t=!0),!n){ne();try{return e[uh](t,null,o||1)}catch(t){hl(e[dh](),1,22,"flush failed, telemetry will not be collected: "+Rs(t),{exception:tr(t)})}}},e.onunloadFlush=function(){if(!n)if(g||O)try{return e[uh](!0,Z,2)}catch(t){hl(e[dh](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+Rs(t),{exception:tr(t)})}else e.flush(!1)},e.addHeader=function(e,t){l[e]=t},e[ph]=function(t,n,i,M){e.isInitialized()&&hl(e[dh](),1,28,"Sender is already initialized"),N[ph](t,n,i,M);var U=e.identifier;s=new ng(n.logger),r=0,o=null,e[fh]=null,a=0;var V=e[dh]();p=Ld($a("Sender"),n.evtNamespace&&n.evtNamespace()),d=function(e){var t=Br(),r=Qr(),o=!1,n=[],i=1;!r||jt(r.onLine)||r.onLine||(i=2);var s=0,a=d(),l=Ld($a("OfflineListener"),e);try{if(u(Jr())&&(o=!0),t){var c=t.body||t;c.ononline&&u(c)&&(o=!0)}}catch(e){o=!1}function u(e){var t=!1;return e&&(t=Rd(e,"online",f,l))&&Rd(e,"offline",b,l),t}function d(){return 2!==s&&2!==i}function p(){var e=d();a!==e&&(a=e,fo(n,(function(e){var t={isOnline:a,rState:i,uState:s};try{e(t)}catch(e){}})))}function f(){i=1,p()}function b(){i=2,p()}return{isOnline:function(){return a},isListening:function(){return o},unload:function(){var e=Jr();if(e&&o){if(ub(e,l),t){var r=t.body||t;Dt(r.ononline)||ub(r,l)}o=!1}},addListener:function(e){return n[Cl](e),{rm:function(){var t=n.indexOf(e);return t>-1?n.splice(t,1):void 0}}},setOnlineState:function(e){s=e,p()}}}(p),e._addHook(Za(t,(function(t){var r=t.cfg;r.storagePrefix&&lc(r.storagePrefix);var o=ep(null,r,n).getExtCfg(U,ug);Pr(e,"_senderConfig",{g:function(){return o}}),b!==o.endpointUrl&&(f=b=o.endpointUrl),y&&y!==o[bh]&&fo(y,(function(e){delete l[e.header]})),h=o[hh],g=(!1===o[gh]||!1===o[vh])&&fa(),v=!1===o[gh]&&fa(),m=!1===o[vh]&&fa(),O=o[mh],$=!!o[yh],P=o.retryCodes;var i=o[ih],s=!!o[wh]&&(!!i||pc()),a=o.namePrefix,d=s!==S||s&&T!==a||s&&E!==i;if(e[_h]){if(d)try{e._buffer=e._buffer[rh](V,o,s)}catch(t){hl(e[dh](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+Rs(t),{exception:tr(t)})}J()}else e[_h]=s?new og(V,o):new tg(V,o);T=a,S=s,E=i,I=!o[xh]&&ba(!0),D=!!o[kh],e._sample=new ag(o.samplingPercentage,V),function(e,t){var r=t.disableInstrumentationKeyValidation;return!(jt(r)||!r)||new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(e)}(_=o[Ch],r)||hl(V,1,100,"Invalid Instrumentation key "+_),y=o[bh],!Cu(f)&&y&&y[Ub]>0?fo(y,(function(e){c.addHeader(e.header,e.value)})):y=null,A=o[Sh];var p=function(){var t;try{var r={xdrOnComplete:function(e,t,r){var o=H(r);if(o)return z(e,o)},fetchOnComplete:function(e,t,r,o){var n=H(o);if(n)return Q(e.status,n,e.url,n[Ub],e.statusText,r||"")},xhrOnComplete:function(e,t,r){var o=H(r);if(o)return q(e,o,o[Ub])},beaconOnRetry:function(t,r,o){return function(t,r,o){var n=t&&t[Ph];if(D)R&&R(n,!0),hl(e[dh](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var i=[],s=0;s<n[Ub];s++){var a=n[s],l=[a];o(X(l),r)?e._onSuccess(l,l[Ub]):i[Yb](a)}i[Ub]>0&&(R&&R(i,!0),hl(e[dh](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}(t,r,o)}};return(t={})[Sh]=A,t.isOneDs=!1,t.disableCredentials=!1,t[yh]=$,t.disableBeacon=!m,t.disableBeaconSync=!v,t.senderOnCompleteCallBack=r,t}catch(e){}return null}();j?j.SetConfig(p):(j=new hb)[ph](p,V);var M=o.httpXHROverride,N=null,F=null,B=Bs([3,1,2],o.transports);N=j&&j[Eh](B,!1);var W=j&&j.getFallbackInst();L=function(e,t){return K(W,e,t)},R=function(e,t){return K(W,e,t,!1)},N=O?M:N||M||W,e[fh]=function(e,t){return K(N,e,t)},I&&(u=te);var G=Bs([3,1],o[Th]);I||(G=G.filter((function(e){return 2!==e}))),F=j&&j[Eh](G,!0),F=O?M:F||M,(O||o[Th]||!u)&&F&&(u=function(e,t){return K(F,e,t)}),u||(u=L),w=o.disableTelemetry,x=o[Ah]||lg,k=o.isRetryDisabled,C=o[Oh]})))},e.processTelemetry=function(t,r){var o,n=(r=e._getTelCtx(r))[dh]();try{if(!U(t,n))return;var i=V(t,n);if(!i)return;var a=s[$h](i),l=e[_h];J(a);var c=((o={})[Zb]=a,o.cnt=0,o);l[Gb](c),oe()}catch(e){hl(n,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+Rs(e),{exception:tr(e)})}e.processNext(t,r)},e.isCompletelyIdle=function(){return!n&&0===M&&0===e._buffer[Jb]()},e._xhrReadyStateChange=function(e,t,r){if(!ee(t))return q(e,t,r)},e[uh]=function(t,r,o){var i;if(void 0===t&&(t=!0),!n)try{var s=e[_h];if(w)s[th]();else{if(s[Jb]()>0){var a=s.getItems();!function(t,r){var o,n=(o="getNotifyMgr",e.core[o]?e.core[o]():e.core._notificationManager);if(n&&n[zh])try{n[zh](t,r)}catch(t){hl(e[dh](),1,74,"send request notification failed: "+Rs(t),{exception:tr(t)})}}(o||0,t),i=r?r.call(e,a,t):e[fh](a,t)}new Date}ne()}catch(t){var l=pa();(!l||l>9)&&hl(e[dh](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+Rs(t),{exception:tr(t)})}return i},e.getOfflineSupport=function(){var e;return(e={getUrl:function(){return f},createPayload:W})[$h]=F,e.batch=B,e.shouldProcess=function(e){return!!U(e)},e},e._doTeardown=function(t,r){e.onunloadFlush(),gb(d,!1),se()},e[Ih]=function(t,r,o){if(!ee(t))return function(t,r,o){hl(e[dh](),2,26,"Failed to send telemetry.",{message:r}),e._buffer&&e._buffer[nh](t)}(t,r)},e[Lh]=function(t,r){if(!ee(t))return function(t,r){for(var o=[],n=[],i=0,s=r.errors.reverse();i<s.length;i++){var a=s[i],l=t.splice(a.index,1)[0];ie(a.statusCode)?n[Yb](l):o[Yb](l)}t[Ub]>0&&e[Rh](t,r[jh]),o[Ub]>0&&e[Ih](o,Fs(null,["partial success",r[jh],"of",r.itemsReceived].join(" "))),n[Ub]>0&&(re(n),hl(e[dh](),2,40,"Partial success. Delivered: "+t[Ub]+", Failed: "+o[Ub]+". Will retry to send "+n[Ub]+" our of "+r[Dh]+" items"))}(t,r)},e[Rh]=function(t,r){if(!ee(t))return function(t,r){e._buffer&&e._buffer[nh](t)}(t)},e._xdrOnLoad=function(e,t){if(!ee(t))return z(e,t)}})),c}return Un(t,e),t.constructEnvelope=function(e,t,r,o){var n;return n=t===e.iKey||jt(t)?e:qn(qn({},e),{iKey:t}),(dg[n.baseType]||Qh)(r,n,o)},t}(vp);var fg=function(e,t){var r,o,n,i,s,a,l,c=this,u=!1,d=!1;function p(e,t,n,i){if(u){var a=function(e){try{var t=f(e);return(1e6>0?Math.floor(Ca()/va*1000001)>>>0:0)<=t.limit.samplingRate}catch(e){}return!1}(e);if(!a)return;var l=f(e),c=_(e),d=h(l,r,c),p=!1,b=0,v=x(e);try{d&&!v?(b=Math.min(l.limit.maxSendNumber,c[Al]+1),c[Al]=0,p=!0,s[e]=!0,c[Ol]=new Date):(s[e]=d,c[Al]+=1);var y=g(e);m(o,y,c);for(var C=0;C<b;C++)w(e,o,t,n)}catch(e){}return{isThrottled:p,throttleNum:b}}return i&&k(e)[Cl]({msgID:e,message:t,severity:n}),null}function f(e){return n[e]||n[109]}function b(e,t){var r,o,i,s,a;try{var l=t||{},c={};c[$l]=!!l[$l];var u=l[Il]||{};d=(null==u?void 0:u.daysOfMonth)&&(null==u?void 0:u.daysOfMonth[wl])>0,c[Il]=(s=null===(i=(i=u)||{})||void 0===i?void 0:i.monthInterval,a=null==i?void 0:i.dayInterval,jt(s)&&jt(a)&&(i.monthInterval=3,d||(i[Ll]=[28],d=!0)),i={monthInterval:null==i?void 0:i.monthInterval,dayInterval:null==i?void 0:i.dayInterval,daysOfMonth:null==i?void 0:i.daysOfMonth});var p={samplingRate:(null===(r=l.limit)||void 0===r?void 0:r.samplingRate)||100,maxSendNumber:(null===(o=l.limit)||void 0===o?void 0:o.maxSendNumber)||1};c.limit=p,n[e]=c}catch(e){}}function h(e,t,r){if(e&&!e[$l]&&t&&Os(r)){var o=v(),n=r[Rl],i=e[Il],s=1;if(null==i?void 0:i.monthInterval){var a=12*(o.getUTCFullYear()-n.getUTCFullYear())+o.getUTCMonth()-n.getUTCMonth();s=y(i.monthInterval,0,a)}var l=1;if(d)l=bo(i[Ll],o[Dl]());else if(null==i?void 0:i.dayInterval){var c=Math.floor((o.getTime()-n.getTime())/864e5);l=y(i.dayInterval,0,c)}return s>=0&&l>=0}return!1}function g(e,t){var r=Os(t)?t:"";return e?"appInsightsThrottle"+r+"-"+e:null}function v(e){try{if(!e)return new Date;var t=new Date(e);if(!isNaN(t.getDate()))return t}catch(e){}return null}function m(e,t,r){try{return dc(e,t,Io(JSON[jl](r)))}catch(e){}return!1}function y(e,t,r){return e<=0?1:r>=t&&(r-t)%e==0?Math.floor((r-t)/e)+1:-1}function w(e,t,r,o){hl(t,o||1,e,r)}function _(e){try{var t=i[e];if(!t){var r=g(e,a);t=function(e,t,r){try{var o={date:v(),count:0};if(e){var n=JSON.parse(e);return{date:v(n[Rl])||o[Rl],count:n[Al]||o[Al],preTriggerDate:n.preTriggerDate?v(n[Ol]):void 0}}return m(t,r,o),o}catch(e){}return null}(uc(o,r),o,r),i[e]=t}return i[e]}catch(e){}return null}function x(e){var t=s[e];if(jt(t)){t=!1;var r=_(e);r&&(t=function(e){try{if(e){var t=new Date;return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e[Dl]()===t[Dl]()}}catch(e){}return!1}(r[Ol])),s[e]=t}return s[e]}function k(e){return jt((l=l||{})[e])&&(l[e]=[]),l[e]}o=pl(e),s={},i={},l={},n={},b(109),a=Os(t)?t:"",e.addUnloadHook(Za(e.config,(function(e){var t=e.cfg;r=cc(),Qt(t.throttleMgrCfg||{},(function(e,t){b(parseInt(e),t)}))}))),c._getDbgPlgTargets=function(){return[l]},c.getConfig=function(){return n},c.canThrottle=function(e){var t=_(e);return h(f(e),r,t)},c.isTriggered=function(e){return x(e)},c.isReady=function(){return u},c.flush=function(e){try{var t=k(e);if(t&&t[wl]>0){var r=t.slice(0);return l[e]=[],fo(r,(function(e){p(e.msgID,e[Tl],e.severity,!1)})),!0}}catch(e){}return!1},c.flushAll=function(){try{if(l){var e=!0;return Qt(l,(function(t){var r=c.flush(parseInt(t));e=e&&r})),e}}catch(e){}return!1},c.onReadyState=function(e,t){return void 0===t&&(t=!0),(u=!!jt(e)||e)&&t?c.flushAll():null},c.sendMessage=function(e,t,r){return p(e,t,r,!0)}},bg={perfEvtsSendAll:!1};function hg(e){e.h=null;var t=e.cb;e.cb=[],fo(t,(function(e){$t(e.fn,[e.arg])}))}function gg(e,t,r,o){fo(e,(function(e){e&&e[t]&&(r?(r.cb[ti]({fn:o,arg:e}),r.h=r.h||en(hg,0,r)):$t(o,[e]))}))}var vg,mg=function(){function e(t){var r,o;this.listeners=[];var n=[],i={h:null,cb:[]},s=Ya(t,bg);o=s[Yn]((function(e){r=!!e.cfg.perfEvtsSendAll})),Ln(e,this,(function(e){Pr(e,"listeners",{g:function(){return n}}),e[li]=function(e){n[ti](e)},e[ai]=function(e){for(var t=bo(n,e);t>-1;)n[ri](t,1),t=bo(n,e)},e[bs]=function(e){gg(n,bs,i,(function(t){t[bs](e)}))},e[hs]=function(e,t){gg(n,hs,i,(function(r){r[hs](e,t)}))},e[gs]=function(e,t){gg(n,gs,t?i:null,(function(r){r[gs](e,t)}))},e[vs]=function(e){e&&(!r&&e[Fi]()||gg(n,vs,null,(function(t){e[Ti]?en((function(){return t[vs](e)}),0):t[vs](e)})))},e[ms]=function(e){e&&e[Wn]&&gg(n,ms,i,(function(t){t[ms](e)}))},e[ys]=function(e){e&&e[Bi]&&gg(n,ys,i,(function(t){t[ys](e)}))},e[ws]=function(e,t){if(e>0){var r=t||0;gg(n,ws,i,(function(t){t[ws](e,r)}))}},e[yi]=function(e){var t,r=function(){o&&o.rm(),o=null,n=[],i.h&&i.h[ni](),i.h=null,i.cb=[]};if(gg(n,"unload",null,(function(r){var o=r[yi](e);o&&(t||(t=[]),t[ti](o))})),t)return Gf((function(e){return Of(Jf(t),(function(){r(),e()}))}));r()}}))}return e.__ieDyn=1,e}(),yg=function(e){function t(){var r,o,n=e.call(this)||this;function i(){r=0,o=[]}return n.identifier="TelemetryInitializerPlugin",n.priority=199,i(),Ln(t,n,(function(e,t){e.addTelemetryInitializer=function(e){return function(e,t,r){var o={id:t,fn:r};return po(e,o),{remove:function(){fo(e,(function(t,r){if(t.id===o.id)return e[ri](r,1),-1}))}}}(o,r++,e)},e[ps]=function(t,r){(function(e,t,r){for(var o=!1,n=e[Wn],i=0;i<n;++i){var s=e[i];if(s)try{if(!1===s.fn[ei](null,[t])){o=!0;break}}catch(e){hl(r,2,64,"Telemetry initializer failed: "+Rs(e),{exception:tr(e)},!0)}}return!o})(o,t,r?r[Ai]():e[Ai]())&&e[hi](t,r)},e[Oi]=function(){i()}})),n}return Un(t,e),t.__ieDyn=1,t}(vp),wg="Plugins must provide initialize method",_g="SDK is still unloading...",xg=cr(((vg={cookieCfg:{}})[ds]={rdOnly:!0,ref:!0,v:[]},vg[ss]={rdOnly:!0,ref:!0,v:[]},vg[us]={ref:!0,v:{}},vg[ls]=ns,vg.loggingLevelConsole=0,vg.diagnosticLogInterval=ns,vg));function kg(e,t){return new Ud(t)}function Cg(e,t){var r=!1;return fo(t,(function(t){if(t===e)return r=!0,-1})),r}function Sg(e,t,r,o){r&&Qt(r,(function(r,n){o&&Lo(n)&&Lo(t[r])&&Sg(e,t[r],n,o),o&&Lo(n)&&Lo(t[r])?Sg(e,t[r],n,o):e.set(t,r,n)}))}function Eg(e,t){var r=null,o=-1;return fo(e,(function(e,n){if(e.w===t)return r=e,o=n,-1})),{i:o,l:r}}function Tg(e,t,r,o){return t.add(e[Yn]((function(e){var t=e.cfg.disableDbgExt;!0===t&&o&&(r[ai](o),o=null),r&&!o&&!0!==t&&(o=function(e){if(!el){el={};for(var t=0;t<rl[Wn];t++)el[rl[t]]=nl(rl[t],e)}return el}(e.cfg),r[li](o))}))),o}var Ag=function(){function e(){var t,r,o,n,i,s,a,l,c,u,d,p,f,b,h,g,v,m,y,w,_,x,k,C,S,E,T,A;Ln(e,this,(function(e){function O(e){return E&&E[vi]||A||(e||o&&o.queue[Wn]>0)&&(T||(T=!0,U(t[Yn]((function(e){var t=e.cfg.diagnosticLogInterval;t&&t>0||(t=1e4);var r=!1;E&&(r=E[vi],E[ni]()),E=function(e,t){return Zo(!1,at,Ot[wt](arguments))}(M,t),E.unref(),E[vi]=r})))),E[vi]=!0),E}function $(){var e={};C=[];var t=function(t){t&&fo(t,(function(t){if(t[si]&&t[_i]&&!e[t.identifier]){var r=t[si]+"="+t[_i];C[ti](r),e[t.identifier]=t}}))};t(p),d&&fo(d,(function(e){t(e)})),t(u)}function I(){r=!1,(t=Ya({},xg,e[Zn])).cfg[xi]=1,Pr(e,"config",{g:function(){return t.cfg},s:function(t){e.updateCfg(t,!1)}}),Pr(e,"pluginVersionStringArr",{g:function(){return C||$(),C}}),Pr(e,"pluginVersionString",{g:function(){return S||(C||$(),S=C.join(";")),S||is}}),Pr(e,"logger",{g:function(){return o||(o=new fl(t.cfg),t[Zn]=o),o},s:function(e){t[Zn]=e,o!==e&&(gb(o,!1),o=e)}}),e[Zn]=new fl(t.cfg),k=[];var y=e.config[ds]||[];y.splice(0,y[Wn]),po(y,k),b=new yg,n=[],gb(i,!1),i=null,s=null,a=null,gb(l,!1),l=null,c=null,u=[],d=null,p=null,f=!1,h=null,g=$a("AIBaseCore",!0),v=fp(),w=null,_=null,m=bp(),x=[],S=null,C=null,A=!1,E=null,T=!1}function L(){var r=ep(j(),t.cfg,e);return r[wi](O),r}function R(t){var r=function(e,t,r){var o,n=[],i=[],s={};return fo(r,(function(t){(jt(t)||jt(t[ii]))&&rr(wg);var r=t[fs],o=t[si];t&&r&&(jt(s[r])?s[r]=o:gl(e,"Two extensions have same priority #"+r+" - "+s[r]+", "+o)),!r||r<500?n[ti](t):i[ti](t)})),(o={})[as]=n,o[ss]=i,o}(e[Zn],0,u);c=null,S=null,C=null,p=Xd(po(p=(d||[])[0]||[],r[ss]));var o=po(Xd(r[as]),p);k=ur(o);var n=e.config[ds]||[];n.splice(0,n[Wn]),po(n,k);var i=L();p&&p[Wn]>0&&Kd(i[ki](p),o),Kd(i,o),t&&z(t)}function D(e){var t=null,r=null,o=[];return fo(k,(function(t){if(t[si]===e&&t!==b)return r=t,-1;t.getChannel&&o[ti](t)})),!r&&o[Wn]>0&&fo(o,(function(t){if(!(r=t.getChannel(e)))return-1})),r&&(t={plugin:r,setEnabled:function(e){Wd(r)[cs]=!e},isEnabled:function(){var e=Wd(r);return!e[Ci]&&!e[cs]},remove:function(e,t){var o;void 0===e&&(e=!0);var n=[r],i=((o={reason:1})[Ti]=e,o);P(n,i,(function(e){e&&R({reason:32,removed:n}),t&&t(e)}))}}),t}function j(){if(!c){var r=(k||[]).slice();-1===bo(r,b)&&r[ti](b),c=op(Xd(r),t.cfg,e)}return c}function P(r,o,n){if(r&&r[Wn]>0){var i=tp(op(r,t.cfg,e),e);i[wi]((function(){var e=!1,t=[];fo(u,(function(o,n){Cg(o,r)?e=!0:t[ti](o)})),u=t,S=null,C=null;var o=[];d&&(fo(d,(function(t,n){var i=[];fo(t,(function(t){Cg(t,r)?e=!0:i[ti](t)})),o[ti](i)})),d=o),n&&n(e),O()})),i[hi](o)}else n(!1)}function M(){if(o&&o.queue){var t=o.queue.slice(0);o.queue[Wn]=0,fo(t,(function(t){var r,o=((r={})[fi]=h||"InternalMessageId: "+t[Si],r.iKey=_,r[bi]=Ls(new Date),r.baseType=dl.dataType,r.baseData={message:t[Ei]},r);e.track(o)}))}}function N(e,t,r,o){var n=1,i=!1,s=null;function a(){n--,i&&0===n&&(s&&s[ni](),s=null,t&&t(i),t=null)}return o=o||5e3,p&&p[Wn]>0&&L()[ki](p).iterate((function(t){if(t.flush){n++;var i=!1;t.flush(e,(function(){i=!0,a()}),r)||i||(e&&null==s?s=en((function(){s=null,a()}),o):a())}})),i=!0,a(),!0}function z(t){var r=rp(j(),e);r[wi](O),e._updateHook&&!0===e._updateHook(r,t)||r[hi](t)}function q(t){var r=e[Zn];r?(hl(r,2,73,t),O()):rr(t)}function H(t){var r=e[ui]();r&&r[hs]([t],2)}function U(e){m.add(e)}I(),e._getDbgPlgTargets=function(){return[k]},e[ci]=function(){return r},e[ii]=function(n,l,c,b){var h;f&&rr(_g),e[ci]()&&rr("Core cannot be initialized more than once"),n=(t=Ya(n,xg,c||e[Zn],!1)).cfg,U(t[Yn]((function(e){_=e.cfg.instrumentationKey;var t=e.ref(e.cfg,us);Qt(t,(function(r){e.ref(t,r)})),jt(_)&&rr("Please provide instrumentation key")}))),y=Tg(t,m,(i=b)&&e[ui](),y),U(t[Yn]((function(t){if(t.cfg.enablePerfMgr){var r=t.cfg[ls];h!==r&&(r||(r=kg),js(t.cfg,ls,r),h=r,a=null),s||a||!Nt(r)||(a=r(e,e[ui]()))}else a=null,h=null}))),e[Zn]=c;var g=n[ds];if((u=[])[ti].apply(u,Vn(Vn([],l),g)),d=n[ss],R(null),p&&0!==p[Wn]||rr("No "+ss+" available"),d&&d[Wn]>1){var v=e[di]("TeeChannelController");v&&v.plugin||hl(o,1,28,"TeeChannel required")}!function(e,t,r){fo(t,(function(t){var o=Za(e,t.w,r);delete t.w,t.rm=function(){o.rm()}}))}(n,x,o),x=null,r=!0,e.releaseQueue(),e[pi]()},e.getChannels=function(){var e=[];return p&&fo(p,(function(t){e[ti](t)})),ur(e)},e.track=function(t){Fd(e[_s](),(function(){return"AppInsightsCore:track"}),(function(){null===t&&(H(t),rr("Invalid telemetry item")),!t[fi]&&jt(t[fi])&&(H(t),rr("telemetry name required")),t.iKey=t.iKey||_,t[bi]=t[bi]||Ls(new Date),t.ver=t.ver||"4.0",!f&&e[ci]()?L()[hi](t):n[ti](t)}),(function(){return{item:t}}),!t.sync)},e[gi]=L,e[ui]=function(){return i||(i=new mg(t.cfg),e._notificationManager=i),i},e[li]=function(t){e.getNotifyMgr()[li](t)},e[ai]=function(e){i&&i[ai](e)},e.getCookieMgr=function(){return l||(l=nd(t.cfg,e[Zn])),l},e.setCookieMgr=function(e){l!==e&&(gb(l,!1),l=e)},e[_s]=function(){return s||a||null},e.setPerfMgr=function(e){s=e},e.eventCnt=function(){return n[Wn]},e.releaseQueue=function(){if(r&&n[Wn]>0){var e=n;n=[],fo(e,(function(e){L()[hi](e)}))}},e[pi]=function(e){return h=e||null,A=!1,E&&E[ni](),O(!0)},e[mi]=function(){A=!0,E&&E[ni](),M()},Ns(e,(function(){return b}),["addTelemetryInitializer"]),e[yi]=function(t,n,s){var a;void 0===t&&(t=!0),r||rr("SDK is not initialized"),f&&rr(_g);var c,u=((a={reason:50})[Ti]=t,a.flushComplete=!1,a);t&&!n&&(c=Gf((function(e){n=e})));var d=tp(j(),e);function p(t){u.flushComplete=t,f=!0,v.run(d,u),e[mi](),d[hi](u)}return d[wi]((function(){m.run(e[Zn]),vb([l,i,o],t,(function(){I(),n&&n(u)}))}),e),M(),N(t,p,6,s)||p(!1),c},e[di]=D,e.addPlugin=function(e,t,r,o){if(!e)return o&&o(!1),void q(wg);var n=D(e[si]);if(n&&!t)return o&&o(!1),void q("Plugin ["+e[si]+"] is already loaded!");var i={reason:16};function s(t){u[ti](e),i.added=[e],R(i),o&&o(!0)}if(n){var a=[n.plugin];P(a,{reason:2,isAsync:!!r},(function(e){e?(i.removed=a,i.reason|=32,s()):o&&o(!1)}))}else s()},e.updateCfg=function(r,o){var n;if(void 0===o&&(o=!0),e[ci]()){n={reason:1,cfg:t.cfg,oldCfg:zo({},t.cfg),newConfig:zo({},r),merge:o},r=n.newConfig;var i=t.cfg;r[ds]=i[ds],r[ss]=i[ss]}t._block((function(e){var t=e.cfg;Sg(e,t,r,o),o||Qt(t,(function(o){Gt(r,o)||e.set(t,o,ns)})),e[Qn](t,xg)}),!0),t[Xn](),n&&z(n)},e.evtNamespace=function(){return g},e.flush=N,e.getTraceCtx=function(e){return w||(t={},w={getName:function(){return t[fi]},setName:function(e){t[fi]=e},getTraceId:function(){return t[ts]},setTraceId:function(e){fu(e)&&(t[ts]=e)},getSpanId:function(){return t[rs]},setSpanId:function(e){bu(e)&&(t[rs]=e)},getTraceFlags:function(){return t[os]},setTraceFlags:function(e){t[os]=e}}),w;var t},e.setTraceCtx=function(e){w=e||null},e.addUnloadHook=U,Ms(e,"addUnloadCb",(function(){return v}),"add"),e.onCfgChange=function(o){var n,i,s,a;return r?n=Za(t.cfg,o,e[Zn]):((a=Eg(i=x,s=o).l)||(a={w:s,rm:function(){var e=Eg(i,s);-1!==e.i&&i[ri](e.i,1)}},i[ti](a)),n=a),function(e){return Pr({rm:function(){e.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(e)+">"}})}(n)},e.getWParam=function(){return Fr()||t.cfg.enableWParam?0:-1}}))}return e.__ieDyn=1,e}(),Og="duration",$g="properties",Ig="requestUrl",Lg="inst",Rg="length",Dg="traceID",jg="spanID",Pg="traceFlags",Mg="context",Ng="aborted",zg="traceId",qg="spanId",Hg="_addHook",Ug="core",Vg="includeCorrelationHeaders",Fg="getAbsoluteUrl",Bg="headers",Wg="requestHeaders",Kg="setRequestHeader",Xg="trackDependencyDataInternal",Gg="startTime",Jg="toLowerCase",Qg="enableRequestHeaderTracking",Yg="enableAjaxErrorStatusText",Zg="enableAjaxPerfTracking",ev="maxAjaxCallsPerView",tv="excludeRequestFromAutoTrackingPatterns",rv="addRequestContext",ov="disableAjaxTracking",nv="ajaxPerfLookupDelay",iv="disableFetchTracking",sv="enableResponseHeaderTracking",av="status",lv="statusText",cv="headerMap",uv="openDone",dv="sendDone",pv="requestSentTime",fv="abortDone",bv="getTraceId",hv="getTraceFlags",gv="method",vv="errorStatusText",mv="stateChangeAttached",yv="responseText",wv="responseFinishedTime",_v="CreateTrackItem",xv="response",kv="getAllResponseHeaders",Cv="getPartAProps",Sv="perfMark",Ev="name",Tv="perfTiming",Av="exception",Ov="ajaxDiagnosticsMessage",$v="correlationContext",Iv="ajaxTotalDuration",Lv="eventTraceCtx";function Rv(e,t,r){var o=0,n=e[t],i=e[r];return n&&i&&(o=Au(n,i)),o}function Dv(e,t,r,o,n){var i=0,s=Rv(r,o,n);return s&&(i=jv(e,t,Hc(s))),i}function jv(e,t,r){var o="ajaxPerf",n=0;return e&&t&&r&&((e[o]=e[o]||{})[t]=r,n=1),n}var Pv,Mv=function(){var e=this;e[uv]=!1,e.setRequestHeaderDone=!1,e[dv]=!1,e[fv]=!1,e[mv]=!1},Nv=function(){function e(t,r,o,n){var i,s=this,a=o;s[Sv]=null,s.completed=!1,s.requestHeadersSize=null,s[Wg]=null,s.responseReceivingDuration=null,s.callbackDuration=null,s[Iv]=null,s[Ng]=0,s.pageUrl=null,s[Ig]=null,s.requestSize=0,s[gv]=null,s[av]=null,s[pv]=null,s.responseStartedTime=null,s[wv]=null,s.callbackFinishedTime=null,s.endTime=null,s.xhrMonitoringState=new Mv,s.clientFailure=0,s[Dg]=t,s[jg]=r,s[Pg]=null==n?void 0:n.getTraceFlags(),s[Lv]=n?((i={})[zg]=n[bv](),i[qg]=n.getSpanId(),i[Pg]=n[hv](),i):null,Ln(e,s,(function(e){e.getAbsoluteUrl=function(){return e[Ig]?function(e){var t,r=wu(e);return r&&(t=r.href),t}(e[Ig]):null},e.getPathName=function(){return e[Ig]?Oc(a,(t=e[gv],r=e[Ig],t?t.toUpperCase()+" "+r:r)):null;var t,r},e[_v]=function(t,r,o){var n;if(e.ajaxTotalDuration=Math.round(1e3*Au(e.requestSentTime,e.responseFinishedTime))/1e3,e[Iv]<0)return null;var i=((n={id:"|"+e[Dg]+"."+e[jg],target:e[Fg]()})[Ev]=e.getPathName(),n.type=t,n[Gg]=null,n.duration=e[Iv],n.success=+e[av]>=200&&+e[av]<400,n.responseCode=+e[av],n[$g]={HttpMethod:e[gv]},n),s=i[$g];if(e[Ng]&&(s[Ng]=!0),e[pv]&&(i[Gg]=new Date,i[Gg].setTime(e[pv])),function(e,t){var r=e[Tv],o=t[$g]||{},n=0,i="name",s="Start",a="End",l="domainLookup",c="connect",u="redirect",d="request",p="response",f="startTime",b=l+s,h=l+a,g=c+s,v=c+a,m=d+s,y=d+a,w=p+s,_=p+a,x=u+s,k=u=a,C="transferSize",S="encodedBodySize",E="decodedBodySize",T="serverTiming";if(r){n|=Dv(o,u,r,x,k),n|=Dv(o,l,r,b,h),n|=Dv(o,c,r,g,v),n|=Dv(o,d,r,m,y),n|=Dv(o,p,r,w,_),n|=Dv(o,"networkConnect",r,f,v),n|=Dv(o,"sentRequest",r,m,_);var A=r[Og];A||(A=Rv(r,f,_)||0),n|=jv(o,Og,A),n|=jv(o,"perfTotal",A);var O=r[T];if(O){var $={};fo(O,(function(e,t){var r=$s(e[i]||""+t),o=$[r]||{};Qt(e,(function(e,t){(e!==i&&Mt(t)||Ut(t))&&(o[e]&&(t=o[e]+";"+t),!t&&Mt(t)||(o[e]=t))})),$[r]=o})),n|=jv(o,T,$)}n|=jv(o,C,r[C]),n|=jv(o,S,r[S]),n|=jv(o,E,r[E])}else e[Sv]&&(n|=jv(o,"missing",e.perfAttempts));n&&(t[$g]=o)}(e,i),r&&lr(e.requestHeaders)[Rg]>0&&(s[Wg]=e[Wg]),o){var a=o();if(a){var l=a[$v];if(l&&(i.correlationContext=l),a[cv]&&lr(a.headerMap)[Rg]>0&&(s.responseHeaders=a[cv]),e[vv])if(e[av]>=400){var c=a.type;""!==c&&"text"!==c||(s.responseText=a.responseText?a[lv]+" - "+a.responseText:a[lv]),"json"===c&&(s.responseText=a.response?a[lv]+" - "+JSON.stringify(a[xv]):a[lv])}else 0===e[av]&&(s.responseText=a[lv]||"")}}return i},e[Cv]=function(){var t,r=null,o=e[Lv];if(o&&(o[zg]||o[qg])){var n=(r={})[Lb]=((t={})[Dg]=o[zg],t.parentID=o[qg],t);jt(o[Pg])||(n[Pg]=o[Pg])}return r}}))}return e.__ieDyn=1,e}(),zv="ai.ajxmn.",qv="diagLog",Hv="_ajaxData",Uv="fetch",Vv="Failed to monitor XMLHttpRequest",Fv=", monitoring data for this ajax call ",Bv=Fv+"may be incorrect.",Wv=Fv+"won't be sent.",Kv="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",Xv="Failed to add custom defined request context as configured call back may missing a null check.",Gv="Failed to calculate the duration of the ",Jv=0,Qv=function(e,t){return e&&t&&e[Hv]?(e[Hv].i||{})[t]:null},Yv=function(e,t){var r=!1;if(e){var o=(e[Hv]||{}).xh;o&&fo(o,(function(e){if(e.n===t)return r=!0,-1}))}return r};function Zv(e,t){var r="";try{var o=Qv(e,t);o&&o[Ig]&&(r+="(url: '"+o[Ig]+"')")}catch(e){}return r}function em(e,t,r,o,n){hl(e[qv](),1,t,r,o,n)}function tm(e,t,r,o,n){hl(e[qv](),2,t,r,o,n)}function rm(e,t,r){return function(o){var n;em(e,t,r,((n={ajaxDiagnosticsMessage:Zv(o[Lg],e._ajaxDataId)})[Av]=tr(o.err),n))}}function om(e,t){return e&&t?Xo(e,t):-1}function nm(e,t,r){var o={id:t,fn:r};return e.push(o),{remove:function(){fo(e,(function(t,r){if(t.id===o.id)return e.splice(r,1),-1}))}}}function im(e,t,r,o){var n=!0;return fo(t,(function(t,i){try{!1===t.fn.call(null,r)&&(n=!1)}catch(t){hl(e&&e.logger,1,64,"Dependency "+o+" [#"+i+"] failed: "+Rs(t),{exception:tr(t)},!0)}})),n}var sm="*.blob.core.",am=ur([sm+"windows.net",sm+"chinacloudapi.cn",sm+"cloudapi.de",sm+"usgovcloudapi.net"]),lm=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],cm=ur(((Pv={})[ev]=500,Pv[ov]=!1,Pv[iv]=!1,Pv[tv]=void 0,Pv.disableCorrelationHeaders=!1,Pv.distributedTracingMode=1,Pv.correlationHeaderExcludedDomains=am,Pv.correlationHeaderDomains=void 0,Pv.correlationHeaderExcludePatterns=void 0,Pv.appId=void 0,Pv.enableCorsCorrelation=!1,Pv[Qg]=!1,Pv[sv]=!1,Pv[Yg]=!1,Pv[Zg]=!1,Pv.maxAjaxPerfLookupAttempts=3,Pv[nv]=25,Pv.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],Pv[rv]=void 0,Pv.addIntEndpoints=!0,Pv)),um=function(e){function t(){var r,o,n,i,s,a,l,c,u,d,p,f,b,h,g,v,m,y,w,_,x,k,C,S,E,T,A,O,$,I,L=e.call(this)||this;return L.identifier=t.identifier,L.priority=120,Ln(t,L,(function(e,L){var R=L[Hg];function D(){var t=la();r=!1,o=!1,I=!1,n=t&&t.host&&t.host[Jg](),i=null,s=!1,a=!1,l=0,c=null,u=!1,d=!1,p=null,f=!1,b=0,h=!1,g={},v=!1,m=!1,y=null,w=null,_=null,k=0,C=[],S=[],x=$a("ajaxData"),e._ajaxDataId=x,E=null,T=1,A=1,O=1,$=null}function j(e){var t=!0;return(e||E)&&fo(E,(function(r){if(r[Jg]()===e[Jg]())return t=!1,-1})),t}function P(e,t,r){R(function(e,t,r){return e?dp(e[Pn],t,r,!1):null}(e,t,r))}function M(e,t,r){var o=!1,n=((Mt(t)?t:(t||{}).url||"")||"")[Jg]();if(fo(y,(function(e){var t=e;Mt(e)&&(t=new RegExp(e)),o||(o=t.test(n))})),o)return o;var i=om(n,"?"),s=om(n,"#");return(-1===i||-1!==s&&s<i)&&(i=s),-1!==i&&(n=n.substring(0,i)),jt(e)?jt(t)||(o="object"==typeof t&&!0===t[yc]||!!r&&!0===r[yc]):o=!0===e[yc]||!0===n[yc],!o&&n&&Cu(n)&&(o=!0),o?g[n]||(g[n]=1):g[n]&&(o=!0),o}function N(e,t,r){var n=!0,i=o;return jt(e)||(n=!0===r||!jt(t)),i&&n}function z(){var t=null;return e[Ug]&&e[Ug].getTraceCtx&&(t=e[Ug].getTraceCtx(!1)),!t&&c&&c.telemetryTrace&&(t=Ou(c.telemetryTrace)),t}function q(e,t){if(t[Ig]&&p&&f){var r=Uo();if(r&&Nt(r.mark)){Jv++;var o=p+e+"#"+Jv;r.mark(o);var n=r.getEntriesByName(o);n&&1===n[Rg]&&(t[Sv]=n[0])}}}function H(e,t,r,o){var n=t[Sv],i=Uo(),s=T,a=A,l=t[Ig],c=0;!function u(){try{if(i&&n){c++;for(var d=null,p=i.getEntries(),f=p[Rg]-1;f>=0;f--){var b=p[f];if(b){if("resource"===b.entryType)b.initiatorType!==e||-1===om(b[Ev],l)&&-1===om(l,b[Ev])||(d=b);else if("mark"===b.entryType&&b[Ev]===n[Ev]){t[Tv]=d;break}if(b[Gg]<n[Gg]-1e3)break}}}!n||t[Tv]||c>=s||!1===t.async?(n&&Nt(i.clearMarks)&&i.clearMarks(n[Ev]),t.perfAttempts=c,r()):en(u,a)}catch(e){o(e)}}()}function U(t){var r="";try{jt(t)||(r+="(url: '".concat("string"==typeof t?t:t.url,"')"))}catch(t){em(e,15,"Failed to grab failed fetch diagnostics message",{exception:tr(t)})}return r}function V(t,r,o,n,i,a,l){function c(t,r,n){var i=n||{};i.fetchDiagnosticsMessage=U(o),r&&(i.exception=tr(r)),tm(e,t,Gv+"fetch call"+Wv,i)}i&&(i[wv]=Tu(),i[av]=r,H(Uv,i,(function(){var t,l=i[_v]("Fetch",s,a);try{w&&(t=w({status:r,request:o,response:n}))}catch(t){tm(e,104,Xv)}if(l){void 0!==t&&(l[$g]=qn(qn({},l.properties),t));var u=i[Cv]();F(S,e[Ug],i,l,null,u)}else c(14,null,{requestSentTime:i[pv],responseFinishedTime:i[wv]})}),(function(e){c(18,e,null)})))}function F(t,r,o,n,i,s){var a,l=!0;t[Rg]>0&&(l=im(r,t,((a={item:n})[$g]=i,a.sysProperties=s,a.context=o?o[Mg]:null,a.aborted=!!o&&!!o[Ng],a),"initializer")),l&&e[Xg](n,i,s)}D(),e.initialize=function(n,l,g,k){var C;e.isInitialized()||(L.initialize(n,l,g,k),_=Ld($a("ajax"),l&&l.evtNamespace&&l.evtNamespace()),function(r){e[Hg](Za(r,(function(r){var o=r.cfg,n=ep(null,o,e[Ug]);if(i=n.getExtCfg(t.identifier,cm),O=i.distributedTracingMode,s=i[Qg],a=i[Yg],f=i[Zg],b=i[ev],y=[].concat(i[tv]||[],!1!==i.addIntEndpoints?lm:[]),w=i[rv],d=0===O||1===O,u=1===O||2===O,f){var l=o.instrumentationKey||"unkwn";p=l[Rg]>5?zv+kr(l,l[Rg]-5)+".":zv+l+"."}v=!!i[ov],T=i.maxAjaxPerfLookupAttempts,A=i[nv],E=i.ignoreHeaders,$=i.appId})))}(n),function(e,t){var r,o,n=!1;if(ha()){var i=XMLHttpRequest[Pn];n=!(jt(i)||jt(i.open)||jt(i.send)||jt(i.abort))}var s=pa();if(s&&s<9&&(n=!1),n)try{var a=new XMLHttpRequest,l={xh:[],i:(r={},r[t]={},r)};a[Hv]=l;var c=XMLHttpRequest[Pn].open;XMLHttpRequest[Pn].open=c}catch(t){n=!1,em(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",((o={})[Av]=tr(t),o))}return n}(e,x)&&e[Hg](Za(i,(function(){v=!!i[ov],s=i[Qg],v||o||(P(XMLHttpRequest,"open",{ns:_,req:function(t,r,o,n){if(!v){var i=t[Lg],l=Qv(i,x);!M(i,o)&&N(i,l,!0)&&(l&&l.xhrMonitoringState[uv]||(l=function(t,r,o,n){var i,s=z(),l=s&&s[bv]()||su(),c=Cr(su(),0,16),u=t[Hv]=t[Hv]||{xh:[],i:{}},d=u.i=u.i||{},p=d[x]=d[x]||new Nv(l,c,e[qv](),null===(i=e.core)||void 0===i?void 0:i.getTraceCtx());return p[Pg]=s&&s[hv](),p[gv]=r,p[Ig]=o,p.xhrMonitoringState[uv]=!0,p[Wg]={},p.async=n,p[vv]=a,p}(i,r,o,n)),function(t,r){r.xhrMonitoringState[mv]=Rd(t,"readystatechange",(function(){var o;try{t&&4===t.readyState&&N(t,r)&&function(t){var r=Qv(t,x);function o(r,o){var n=o||{};n.ajaxDiagnosticsMessage=Zv(t,x),r&&(n.exception=tr(r)),tm(e,14,Gv+"ajax call"+Wv,n)}r[wv]=Tu(),r[av]=t[av],H("xmlhttprequest",r,(function(){try{var n=r[_v]("Ajax",s,(function(){var r,o=((r={statusText:t[lv]})[cv]=null,r[$v]=function(t){var r;try{var o=t[kv]();if(null!==o&&-1!==om(o[Jg](),gu[8]))return Eu(t.getResponseHeader(gu[0]))}catch(o){tm(e,18,Kv,((r={})[Ov]=Zv(t,x),r[Av]=tr(o),r))}}(t),r.type=t.responseType,r[yv]=function(e){try{var t=e.responseType;if(""===t||"text"===t)return e[yv]}catch(e){}return null}(t),r.response=t[xv],r);if(h){var n=t[kv]();if(n){var i=Io(n).split(/[\r\n]+/),s={};fo(i,(function(e){var t=e.split(": "),r=t.shift(),o=t.join(": ");j(r)&&(s[r]=o)})),o[cv]=s}}return o})),i=void 0;try{w&&(i=w({status:t[av],xhr:t}))}catch(t){tm(e,104,Xv)}if(n){void 0!==i&&(n[$g]=qn(qn({},n.properties),i));var a=r[Cv]();F(S,e[Ug],r,n,null,a)}else o(null,{requestSentTime:r[pv],responseFinishedTime:r[wv]})}finally{try{var l=(t[Hv]||{i:{}}).i||{};l[x]&&(l[x]=null)}catch(e){}}}),(function(e){o(e,null)}))}(t)}catch(r){var n=tr(r);n&&-1!==om(n[Jg](),"c00c023f")||em(e,16,Vv+" 'readystatechange' event handler"+Bv,((o={})[Ov]=Zv(t,x),o[Av]=n,o))}}),_)}(i,l))}},hkErr:rm(e,15,Vv+".open"+Bv)}),P(XMLHttpRequest,"send",{ns:_,req:function(t,r){if(!v){var o=t[Lg],n=Qv(o,x);N(o,n)&&!n.xhrMonitoringState[dv]&&(q("xhr",n),n[pv]=Tu(),e[Vg](n,void 0,void 0,o),n.xhrMonitoringState[dv]=!0)}},hkErr:rm(e,17,Vv+Bv)}),P(XMLHttpRequest,"abort",{ns:_,req:function(e){if(!v){var t=e[Lg],r=Qv(t,x);N(t,r)&&!r.xhrMonitoringState[fv]&&(r[Ng]=1,r.xhrMonitoringState[fv]=!0)}},hkErr:rm(e,13,Vv+".abort"+Bv)}),P(XMLHttpRequest,"setRequestHeader",{ns:_,req:function(e,t,r){if(!v){var o=e[Lg],n=Qv(o,x);n&&N(o,n)&&(function(e,t,r){if(e){var o=(e[Hv]||{}).xh;o&&o.push({n:t,v:r})}}(o,t,r),s&&j(t)&&n&&(n[Wg][t]=r))}},hkErr:rm(e,71,Vv+".setRequestHeader"+Bv)}),o=!0)}))),function(){var t,n=!(t=Ur())||jt(t.Request)||jt(t.Request[Pn])||jt(t[Uv])?null:t[Uv];if(n){var l=Ur(),c=n.polyfill;e[Hg](Za(i,(function(){m=!!i[iv],h=i[sv],m||r?c&&!I&&(R(dp(l,Uv,{ns:_,req:function(e,t,r){M(null,t,r)}})),I=!0):(R(dp(l,Uv,{ns:_,req:function(t,n,i){var l;if(!m&&r&&!M(null,n,i)&&(!c||!o)){var u=t.ctx();l=function(t,r){var o,n,i=z(),l=i&&i[bv]()||su(),c=Cr(su(),0,16),u=new Nv(l,c,e[qv](),null===(o=e.core)||void 0===o?void 0:o.getTraceCtx());if(u[Pg]=i&&i[hv](),u[pv]=Tu(),u[vv]=a,""===(n=t instanceof Request?(t||{}).url||"":t)){var d=la();d&&d.href&&(n=Vo(d.href,"#")[0])}u[Ig]=n;var p="GET";r&&r[gv]?p=r[gv]:t&&t instanceof Request&&(p=t[gv]),u[gv]=p;var f={};return s&&new Headers((r?r[Bg]:0)||t instanceof Request&&t[Bg]||{}).forEach((function(e,t){j(t)&&(f[t]=e)})),u[Wg]=f,q(Uv,u),u}(n,i);var d=e[Vg](l,n,i);d!==i&&t.set(1,d),u.data=l}},rsp:function(t,r){if(!m){var o=t.ctx().data;o&&(t.rslt=t.rslt.then((function(t){return V(0,(t||{})[av],r,t,o,(function(){var r,o=((r={statusText:(t||{})[lv]})[cv]=null,r[$v]=function(t){var r;if(t&&t[Bg])try{return Eu(t[Bg].get(gu[0]))}catch(o){tm(e,18,Kv,((r={fetchDiagnosticsMessage:U(t)})[Av]=tr(o),r))}}(t),r);if(h&&t){var n={};t.headers.forEach((function(e,t){j(t)&&(n[t]=e)})),o[cv]=n}return o})),t})).catch((function(e){throw V(0,0,r,null,o,null,e.message||tr(e)),e})))}},hkErr:rm(e,15,"Failed to monitor Window.fetch"+Bv)},!0,eo())),r=!0)}))),c&&(l[Uv].polyfill=c)}}(),(C=e[Ug].getPlugin(gc))&&(c=C.plugin[Mg]))},e._doTeardown=function(){D()},e.trackDependencyData=function(t,r){F(S,e[Ug],null,t,r)},e[Vg]=function(t,r,o,a){var l=e._currentWindowHost||n;if(function(e,t,r,o,n,i){var s;if(e[Rg]>0){var a=((s={})[Ug]=t,s.xhr=o,s.input=n,s.init=i,s.traceId=r[Dg],s.spanId=r[jg],s.traceFlags=r[Pg],s.context=r[Mg]||{},s.aborted=!!r[Ng],s);im(t,e,a,"listener"),r[Dg]=a[zg],r[jg]=a[qg],r[Pg]=a[Pg],r[Mg]=a[Mg]}}(C,e[Ug],t,a,r,o),r||""===r){if(Su(i,t[Fg](),l)){o||(o={});var p=new Headers(o[Bg]||r instanceof Request&&r[Bg]||{});if(d){var f="|"+t[Dg]+"."+t[jg];p.set(gu[3],f),s&&(t[Wg][gu[3]]=f)}if((h=$||c&&c.appId())&&(p.set(gu[0],gu[2]+h),s&&(t[Wg][gu[0]]=gu[2]+h)),u){jt(g=t[Pg])&&(g=1);var b=hu(pu(t[Dg],t[jg],g));p.set(gu[4],b),s&&(t[Wg][gu[4]]=b)}o[Bg]=p}return o}if(a){var h,g;if(Su(i,t[Fg](),l))d&&(Yv(a,gu[3])?tm(e,71,"Unable to set ["+gu[3]+"] as it has already been set by another instance"):(f="|"+t[Dg]+"."+t[jg],a[Kg](gu[3],f),s&&(t[Wg][gu[3]]=f))),(h=$||c&&c.appId())&&(Yv(a,gu[0])?tm(e,71,"Unable to set ["+gu[0]+"] as it has already been set by another instance"):(a[Kg](gu[0],gu[2]+h),s&&(t[Wg][gu[0]]=gu[2]+h))),u&&(jt(g=t[Pg])&&(g=1),Yv(a,gu[4])?tm(e,71,"Unable to set ["+gu[4]+"] as it has already been set by another instance"):(b=hu(pu(t[Dg],t[jg],g)),a[Kg](gu[4],b),s&&(t[Wg][gu[4]]=b)));return a}},e[Xg]=function(t,r,o){if(-1===b||l<b){2!==O&&1!==O||"string"!=typeof t.id||"."===t.id[t.id[Rg]-1]||(t.id+="."),jt(t[Gg])&&(t[Gg]=new Date);var n=jc(t,Lu.dataType,Lu.envelopeType,e[qv](),r,o);e[Ug].track(n)}else l===b&&em(e,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++l},e.addDependencyListener=function(e){return nm(C,k++,e)},e.addDependencyInitializer=function(e){return nm(S,k++,e)}})),L}return Un(t,e),t.prototype.processTelemetry=function(e,t){this.processNext(e,t)},t.prototype.addDependencyInitializer=function(e){return null},t.identifier="AjaxDependencyPlugin",t}(vp),dm=function(){},pm=function(){this.id="browser",this.deviceClass="Browser"},fm=function(e,t){var r=this,o=Za(e,(function(){var t=e.sdkExtension;r.sdkVersion=(t?t+"_":"")+"javascript:3.2.0"}));t&&t.add(o)},bm=function(){},hm="sessionManager",gm="update",vm="isUserCookieSet",mm="isNewUser",ym="getTraceCtx",wm="telemetryTrace",_m="applySessionContext",xm="applyApplicationContext",km="applyDeviceContext",Cm="applyOperationContext",Sm="applyUserContext",Em="applyOperatingSystemContxt",Tm="applyLocationContext",Am="applyInternalContext",Om="accountId",$m="getSessionId",Im="namePrefix",Lm="userCookiePostfix",Rm="idLength",Dm="getNewId",jm="length",Pm="automaticSession",Mm="authenticatedId",Nm="acquisitionDate",zm="renewalDate",qm="join",Hm="cookieSeparator",Um="authUserCookieName",Vm=function(){},Fm=function(){function e(t,r,o){var n,i,s,a,l=pl(r),c=od(r);Ln(e,this,(function(e){t||(t={});var r=Za(t,(function(e){s=t.sessionExpirationMs||864e5,a=t.sessionRenewalMs||18e5;var r=t.sessionCookiePostfix||t[Im]||"";n="ai_session"+r}));function u(e,t){var r=!1,o=", session will be reset",n=t.split("|");if(n[jm]>=2)try{var i=+n[1]||0,s=+n[2]||0;isNaN(i)||i<=0?hl(l,2,27,"AI session acquisition date is 0"+o):isNaN(s)||s<=0?hl(l,2,27,"AI session renewal date is 0"+o):n[0]&&(e.id=n[0],e[Nm]=i,e[zm]=s,r=!0)}catch(e){hl(l,1,9,"Error parsing ai_session value ["+(t||"")+"]"+o+" - "+Rs(e),{exception:tr(e)})}return r}function d(e,r){var o=e[Nm];e[zm]=r;var l,u=a,d=o+s-r,p=[e.id,o,r];l=d<u?d/1e3:u/1e3;var f=t.cookieDomain||null;c.set(n,p[qm]("|"),s>0?l:null,f),i=r}o&&o.add(r),e[Pm]=new Vm,e[gm]=function(){var r=So(),o=!1,p=e[Pm];if(p.id||(o=!function(e,t){var r=!1,o=c.get(n);if(o&&Nt(o.split))r=u(e,o);else{var i=uc(l,n);i&&(r=u(e,i))}return r||!!e.id}(p)),!o&&s>0){var f=r-p[Nm],b=r-p[zm];o=(o=(o=f<0||b<0)||f>s)||b>a}o?function(r){var o=t[Dm]||Sa;e.automaticSession.id=o(t[Rm]||22),e[Pm][Nm]=r,d(e[Pm],r),cc()||hl(l,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}(r):(!i||r-i>6e4)&&d(p,r)},e.backup=function(){var t,r,o,i=e[Pm];t=i.id,r=i[Nm],o=i[zm],dc(l,n,[t,r,o][qm]("|"))}}))}return e.__ieDyn=1,e}(),Bm=function(e,t,r,o){var n=this;n.traceID=e||su(),n.parentID=t;var i=la();!r&&i&&i.pathname&&(r=i.pathname),n.name=Ac(o,r)};function Wm(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))}var Km=function(){function e(t,r,o){this.isNewUser=!1,this.isUserCookieSet=!1;var n,i=pl(r),s=od(r);Ln(e,this,(function(r){Pr(r,"config",{g:function(){return t}});var a=Za(t,(function(){var o=t[Lm]||"";n=e.userCookieName+o;var a=s.get(n);if(a){r[mm]=!1;var d=a.split(e[Hm]);d[jm]>0&&(r.id=d[0],r[vm]=!!r.id)}if(!r.id){r.id=l(),u(c(r.id)[qm](e[Hm]));var p=(t[Im]||"")+"ai_session";!function(e,t){var r=ic();if(null!==r)try{return r[Sl](t),!0}catch(t){rc=!1,hl(e,2,5,"Browser failed removal of local storage item. "+Rs(t),{exception:tr(t)})}}(i,p)}r[Om]=t[Om]||void 0;var f=s.get(e[Um]);if(f){var b=(f=decodeURI(f)).split(e[Hm]);b[0]&&(r[Mm]=b[0]),b[jm]>1&&b[1]&&(r[Om]=b[1])}}));function l(){var e=t||{};return(e[Dm]||Sa)(e[Rm]?t[Rm]:22)}function c(e){var t=Ls(new Date);return r.accountAcquisitionDate=t,r[mm]=!0,[e,t]}function u(e){r[vm]=s.set(n,e,31536e3)}o&&o.add(a),r.setAuthenticatedUserContext=function(t,o,n){if(void 0===n&&(n=!1),!Wm(t)||o&&!Wm(o))hl(i,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{r[Mm]=t;var a=r[Mm];o&&(r[Om]=o,a=[r[Mm],r.accountId][qm](e[Hm])),n&&s.set(e[Um],encodeURI(a))}},r.clearAuthenticatedUserContext=function(){r[Mm]=null,r[Om]=null,s.del(e[Um])},r[gm]=function(t){r.id===t&&r[vm]||u(c(t||l())[qm](e[Hm]))}}))}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),Xm="ext",Gm="tags";function Jm(e,t){e&&e[t]&&0===lr(e[t])[jm]&&delete e[t]}function Qm(){return null}var Ym,Zm,ey=function(){function e(t,r,o,n){var i=this,s=t.logger;Ln(e,this,(function(e){if(e.appId=Qm,e[$m]=Qm,e.application=new dm,e.internal=new fm(r,n),Wr()){e[hm]=new Fm(r,t,n),e.device=new pm,e.location=new bm,e.user=new Km(r,t,n);var a,l=void 0,c=void 0;o&&(l=o.getTraceId(),c=o.getSpanId(),a=o.getName()),e[wm]=new Bm(l,c,a,s),e.session=new Vm}e[$m]=function(){var t=e.session,r=null;if(t&&Mt(t.id))r=t.id;else{var o=(e[hm]||{})[Pm];r=o&&Mt(o.id)?o.id:null}return r},e[_m]=function(t,r){Ds(js(t.ext,"app"),"sesId",e[$m](),Mt)},e[Em]=function(t,r){Ds(t.ext,"os",e.os)},e[xm]=function(t,r){var o=e.application;if(o){var n=js(t,Gm);Ds(n,Rb.applicationVersion,o.ver,Mt),Ds(n,Rb.applicationBuild,o.build,Mt)}},e[km]=function(t,r){var o=e.device;if(o){var n=js(js(t,Xm),Ib);Ds(n,"localId",o.id,Mt),Ds(n,"ip",o.ip,Mt),Ds(n,"model",o.model,Mt),Ds(n,"deviceClass",o.deviceClass,Mt)}},e[Am]=function(t,r){var o=e.internal;if(o){var n=js(t,Gm);Ds(n,Rb.internalAgentVersion,o.agentVersion,Mt),Ds(n,Rb.internalSdkVersion,Ac(s,o.sdkVersion,64),Mt),t.baseType!==dl.dataType&&t.baseType!==Uc.dataType||(Ds(n,Rb.internalSnippet,o.snippetVer,Mt),Ds(n,Rb.internalSdkSrc,o.sdkSrc,Mt))}},e[Tm]=function(e,t){var r=i.location;r&&Ds(js(e,Gm,[]),Rb.locationIp,r.ip,Mt)},e[Cm]=function(t,r){var o=e[wm];if(o){var n=js(js(t,Xm),Lb,{traceID:void 0,parentID:void 0});Ds(n,"traceID",o.traceID,Mt,jt),Ds(n,"name",o.name,Mt,jt),Ds(n,"parentID",o.parentID,Mt,jt)}},e.applyWebContext=function(e,t){var r=i.web;r&&Ds(js(e,Xm),"web",r)},e[Sm]=function(t,r){var o=e.user;if(o){Ds(js(t,Gm,[]),Rb.userAccountId,o[Om],Mt);var n=js(js(t,Xm),$b);Ds(n,"id",o.id,Mt),Ds(n,"authId",o[Mm],Mt)}},e.cleanUp=function(e,t){var r=e.ext;r&&(Jm(r,Ib),Jm(r,$b),Jm(r,"web"),Jm(r,"os"),Jm(r,"app"),Jm(r,Lb))}}))}return e.__ieDyn=1,e}(),ty=null,ry=cr(((Ym={})[Om]=ty,Ym.sessionRenewalMs=18e5,Ym.samplingPercentage=100,Ym.sessionExpirationMs=864e5,Ym.cookieDomain=ty,Ym.sdkExtension=ty,Ym.isBrowserLinkTrackingEnabled=!1,Ym.appId=ty,Ym[$m]=ty,Ym[Im]=Zm,Ym.sessionCookiePostfix=Zm,Ym[Lm]=Zm,Ym[Rm]=22,Ym[Dm]=ty,Ym));const oy=function(e){function t(){var r,o,n,i,s,a=e.call(this)||this;return a.priority=110,a.identifier=gc,Ln(t,a,(function(e,t){function a(){r=null,o=null,n=null,i=null,s=!0}a(),Pr(e,"context",{g:function(){return i}}),e.initialize=function(a,l,c,u){t.initialize(a,l,c,u),function(t){var a=e.identifier,l=e.core;e._addHook(Za(t,(function(){var o=ep(null,t,l);t.storagePrefix&&lc(t.storagePrefix),s=!1!==t.disableUserInitMessage,r=o.getExtCfg(a,ry),e._extConfig=r}))),n=l[ym](!1),i=new ey(l,r,n,e._unloadHooks),o=Ou(e.context[wm],n),l.setTraceCtx(o),e.context.appId=function(){var e=l.getPlugin(vc);return e?e.plugin._appId:null}}(a)},e.processTelemetry=function(t,r){if(!jt(t)){r=e._getTelCtx(r),t.name===Uc.envelopeType&&r.diagLog().resetInternalMessageCount();var o=i||{};o.session&&"string"!=typeof i.session.id&&o[hm]&&o[hm][gm]();var n=o.user;if(n&&!n[vm]&&n[gm](o.user.id),function(t,r){js(t,"tags",[]),js(t,"ext",{});var o=e.context;o[_m](t,r),o[xm](t,r),o[km](t,r),o[Cm](t,r),o[Sm](t,r),o[Em](t,r),o.applyWebContext(t,r),o[Tm](t,r),o[Am](t,r),o.cleanUp(t,r)}(t,r),n&&n[mm]&&(n[mm]=!1,!s)){var a=new dl(72,(Qr()||{}).userAgent||"");!function(e,t,r){bl(e)[Ni](1,r)}(r.diagLog(),0,a)}e.processNext(t,r)}},e._doTeardown=function(e,t){var r=(e||{}).core();r&&r[ym]&&r[ym](!1)===o&&r.setTraceCtx(n),a()}})),a}return Un(t,e),t.__ieDyn=1,t}(vp);var ny,iy,sy,ay,ly,cy="AuthenticatedUserContext",uy="track",dy="snippet",py="flush",fy="pollInternalLogs",by="getPlugin",hy="evtNamespace",gy=uy+"Event",vy=uy+"Trace",my=uy+"Metric",yy=uy+"PageView",wy=uy+"Exception",_y=uy+"DependencyData",xy="set"+cy,ky="clear"+cy,Cy="version",Sy="queue",Ey="connectionString",Ty="endpointUrl",Ay="userOverrideEndpointUrl",Oy="instrumentationKey",$y="onunloadFlush",Iy="context",Ly="addHousekeepingBeforeUnload",Ry="sendMessage",Dy=[dy,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],jy="iKeyUsage",Py="CdnUsage",My="SdkLoaderVer",Ny=void 0,zy={disabled:!0,limit:ju({samplingRate:100,maxSendNumber:1}),interval:ju({monthInterval:3,daysOfMonth:[28]})},qy=((ny={})[Ey]=Ny,ny[Ty]=Ny,ny[Oy]=Ny,ny[Ay]=Ny,ny.diagnosticLogInterval=Mu((function(e){return e&&e>0}),1e4),ny.featureOptIn=((iy={})[jy]={mode:3},iy[Py]={mode:2},iy[My]={mode:2},iy),ny.throttleMgrCfg=ju(((sy={})[109]=ju(zy),sy[106]=ju(zy),sy[111]=ju(zy),sy[110]=ju(zy),sy)),ny.extensionConfig=ju(((ay={}).AppInsightsCfgSyncPlugin=ju({cfgUrl:"https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",syncMode:2}),ay)),ny),Hy=function(){function e(t){var r,o,n,i,s,a,l,c,u,d,p,f,b,h,g=this;Ln(e,this,(function(e){m(),Pr(e,"config",{g:function(){return c}}),fo(["pluginVersionStringArr","pluginVersionString"],(function(t){Pr(e,t,{g:function(){return l?l[t]:null}})})),i=""+(t.sv||t[Cy]||""),t[Sy]=t[Sy]||[],t[Cy]=t[Cy]||2;var v=Ya(t.config||{},qy);function m(){s=$a("AISKU"),a=null,r=null,o=null,n=null,i=null,p=null,f=!1,b=!1,h=!1,d=new cb}function y(){var e;a&&(Pd([wd,yd,md],null,a),e=Ld(_d,a),Pd([md],null,e),Pd([vd],null,e))}function w(e){l.addUnloadHook(e)}c=v.cfg,u=new Ef,Pr(e,"appInsights",{g:function(){return u}}),o=new oy,r=new um,n=new pg,l=new Ag,Pr(e,"core",{g:function(){return l}}),w(Za(v,(function(){if(c[Ey]){var e=function(e){if(!e)return{};var t=e[yl](";"),r=yo(t,(function(e,t){var r=t[yl]("=");if(2===r[wl]){var o=r[0][_l](),n=r[1];e[o]=n}return e}),{});if(lr(r)[wl]>0){if(r.endpointsuffix){var o=r.location?r.location+".":"";r[xl]=r[xl]||"https://"+o+"dc."+r.endpointsuffix}r[xl]=r[xl]||kc,Bo(r[xl],"/")&&(r[xl]=r[xl].slice(0,-1))}return r}(c[Ey]),t=e.ingestionendpoint;c[Ty]=c[Ay]?c[Ay]:t+Cc,c[Oy]=e.instrumentationkey||c[Oy]}c[Ty]=c[Ay]?c[Ay]:c[Ty]}))),e[dy]=t,e[py]=function(e,t){var r;return void 0===e&&(e=!0),Fd(l,(function(){return"AISKU.flush"}),(function(){e&&!t&&(r=Gf((function(e){t=e})));var o=1,n=function(){0==--o&&t()};fo(l.getChannels(),(function(t){t&&(o++,t[py](e,n))})),n()}),null,e),r},e[$y]=function(e){void 0===e&&(e=!0),fo(l.getChannels(),(function(t){t[$y]?t[$y]():t[py](e)}))},e.loadAppInsights=function(t,s,a){return void 0===t&&(t=!1),t&&function(e){throw mo||(mo=Co("UnsupportedError")),new mo("Legacy Mode is no longer supported")}(),Fd(e.core,(function(){return"AISKU.loadAppInsights"}),(function(){l.initialize(c,[n,o,r,u,d],s,a),Pr(e,"context",{g:function(){return o[Iy]}}),p||(p=new fg(l));var t=function(){if(ly)return ly;var e=null;try{var t=(document||{}).currentScript;t&&(e=t.src)}catch(e){}if(e){try{var r=e.toLowerCase();if(r){var o="";fo(["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"],(function(e,t){if(-1!==Xo(r,e))return o="cdn"+(t+1),-1===Xo(r,"/scripts/")&&(-1!==Xo(r,"/next/")?o+="-next":-1!==Xo(r,"/beta/")&&(o+="-beta")),ly=o+"",-1}))}}catch(e){}ly=e}return ly}();t&&e[Iy]&&(e[Iy].internal.sdkSrc=t),function(t){if(t){var r="";jt(i)||(r+=i),e[Iy]&&e[Iy].internal&&(e[Iy].internal.snippetVer=r||"-"),Qt(e,(function(e,r){Mt(e)&&!Nt(r)&&e&&"_"!==e[0]&&-1===bo(Dy,e)&&t[e]!==r&&(t[e]=r)}))}}(e[dy]),e.emptyQueue(),e[fy](),e[Ly](e),w(Za(v,(function(){var t=!1;c.throttleMgrCfg[109]&&(t=!c.throttleMgrCfg[109].disabled),!p.isReady()&&c.extensionConfig&&c.extensionConfig[d.identifier]&&t&&p.onReadyState(!0),f||c[Ey]||!Hs(jy,c)||(p[Ry](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),f=!0),!b&&e[Iy].internal.sdkSrc&&-1!=e[Iy].internal.sdkSrc.indexOf("az416426")&&Hs(Py,c)&&(p[Ry](110,"See Cdn support notice at aka.ms/JsActiveCdn"),b=!0),!h&&parseInt(i)<6&&Hs(My,c)&&(p[Ry](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),h=!0)})))})),e},e.updateSnippetDefinitions=function(t){!function(e,t,r){if(e&&t&&zt(e)&&zt(t)){var o=function(o){if(Mt(o)){var n=t[o];Nt(n)?r&&!r(o)||(e[o]=Ps(t,o)):r&&!r(o)||(Gt(e,o)&&delete e[o],Pr(e,o,{g:function(){return t[o]},s:function(e){t[o]=e}}))}};for(var n in t)o(n)}}(t,e,(function(e){return e&&-1===bo(Dy,e)}))},e.emptyQueue=function(){try{if(qt(e.snippet[Sy])){for(var t=e.snippet[Sy].length,r=0;r<t;r++)(0,e.snippet[Sy][r])();e.snippet[Sy]=void 0,delete e.snippet[Sy]}}catch(e){e&&Nt(e.toString)&&e.toString()}},e[Ly]=function(t){if(Wr()||Fr()){var r=function(){if(t[$y](!1),Nt(e.core[by])){var r=g.core[by](gc);if(r){var o=r.plugin;o&&o[Iy]&&o[Iy]._sessionManager&&o[Iy]._sessionManager.backup()}}},o=!1;a||(a=Ld(s,l[hy]&&l[hy]())),w(Za(c,(function(e){var n=e.cfg,i=t.appInsights,s=ep(null,n,i.core).getExtCfg(i.identifier||mc);y();var c,u=n.disablePageUnloadEvents;s.disableFlushOnBeforeUnload||(function(e,t,r,o){var n=!1;return t&&e&&qt(e)&&!(n=jd(e,t,r,o))&&r&&r[Wn]>0&&(n=jd(e,t,null,o)),n}([wd,yd,md],r,u,a)&&(o=!0),Md(r,u,a)&&(o=!0),o||(c=Qr())&&c.product&&"ReactNative"===c.product||hl(l.logger,1,19,"Could not add handler for beforeunload and pagehide")),o||s.disableFlushOnUnload||Md(r,u,a)})))}},e.getSender=function(){return n},e.unload=function(t,r,o){var n,i=!1;return t&&!r&&(n=Gf((function(e){r=e}))),e[$y](t),y(),l.unload&&l.unload(t,(function(e){i||(i=!0,m(),r&&r(e))}),o),n},Ns(e,u,["getCookieMgr",gy,yy,"trackPageViewPerformance",wy,"_onerror",vy,my,"startTrackPage","stopTrackPage","startTrackEvent","stopTrackEvent"]),Ns(e,(function(){return r}),[_y,"addDependencyListener","addDependencyInitializer"]),Ns(e,l,["addTelemetryInitializer",fy,"stopPollingInternalLogs",by,"addPlugin",hy,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),Ns(e,(function(){var e=o[Iy];return e?e.user:null}),[xy,ky])}))}return e.prototype.addDependencyInitializer=function(e){return null},e}();class Uy{constructor(){this.config={},this.trackPageView=!1}}const Vy="AppInsightsConfigurationToken";let Fy=class{constructor(e){this.config=e,e.config?.connectionString||e.config?.instrumentationKey?(this.instance=new Hy(e),this.instance.loadAppInsights(),e.trackPageView&&this.instance.trackPageView()):console.warn("AppInsightsLogger configuraiton has no connectionString or instrumentaitonKey."),this.config=e}logTrace(e,...t){this.instance?.trackTrace({message:this.formatMessage(e,t),severityLevel:0})}logDebug(e,...t){this.instance?.trackTrace({message:this.formatMessage(e,t),severityLevel:1})}logInformation(e,...t){this.instance?.trackTrace({message:this.formatMessage(e,t),severityLevel:2})}logWarning(e,...t){this.instance?.trackTrace({message:this.formatMessage(e,t),severityLevel:3})}logError(e,t,...r){this.instance?.trackException({exception:t??new Error(this.formatMessage(e,r))})}logCritical(e,t,...r){this.instance?.trackException({exception:t??new Error(this.formatMessage(e,r)),properties:{severity:"critical"}})}log(e,t,r,...o){r?this.instance?.trackException({exception:r,properties:{message:this.formatMessage(t,o)}}):this.instance?.trackTrace({message:this.formatMessage(t,o),severityLevel:e})}formatMessage(e,t){return t.length>0?`${e}, ${t.join(", ")}`:e}};Fy=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([O(),function(e,t){return function(r,o){t(r,o,e)}}(0,A(Vy)),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[Uy])],Fy),I.container.registerSingleton(Fy),I.container.register(Ye,{useToken:Fy}),I.container.register(Vy,{useFactory:function(){return I.container.resolve(R).getSection("ApplicationInsights").bind(Uy)}});var By=function(e,t){return function(r,o){t(r,o,e)}};let Wy=class{constructor(e,t){this.loggers=e,this.readers=t,this.logTrace(`LoggingService.constructor loaded with ${e.length} loggers and ${t.length} readers.`)}logTrace(e,...t){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Ze.Trace,message:e,...t},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logTrace(e,...t)}logDebug(e,...t){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Ze.Debug,message:e,...t},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logDebug(e,...t)}logInformation(e,...t){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Ze.Information,message:e,...t},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logInformation(e,...t)}logWarning(e,...t){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Ze.Warning,message:e,...t},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logWarning(e,...t)}logError(e,t,...r){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Ze.Error,message:e,error:t,...r},bubbles:!0,cancelable:!0,composed:!0}));for(const o of this.loggers)o.logError(e,t,...r)}logCritical(e,t,...r){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Ze.Critical,message:e,error:t,...r},bubbles:!0,cancelable:!0,composed:!0}));for(const o of this.loggers)o.logCritical(e,t,...r)}log(e,t,r,...o){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:e,message:t,error:r,...o},bubbles:!0,cancelable:!0,composed:!0}));for(const n of this.loggers)n.log(e,t,r,...o)}getLogs(){return this.readers.reduce(((e,t)=>{const r=t.getLogs();return e.concat(r)}),[])}clearLogs(){this.readers.forEach((e=>e.clearLogs()))}};Wy=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([O(),By(0,$(Ye)),By(1,$(rt)),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[Array,Array])],Wy),I.container.register(tt,{useClass:Wy},{lifecycle:n.Singleton});const Ky=B`
24
+ `}}(function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);i>3&&s&&Object.defineProperty(t,r,s)})([Je({type:String}),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:type",Object)],Qe.prototype,"value",void 0),customElements.define("qbo-config-editor",Qe);const Ye="LoggerToken";var Ze,et;(et=Ze||(Ze={}))[et.Trace=0]="Trace",et[et.Debug=1]="Debug",et[et.Information=2]="Information",et[et.Warning=3]="Warning",et[et.Error=4]="Error",et[et.Critical=5]="Critical";const tt="LoggerServiceToken";I.container.register(Ye,{useClass:class{logTrace(e,...t){console.debug(e,...t)}logDebug(e,...t){console.debug(e,...t)}logInformation(e,...t){console.info(e,...t)}logWarning(e,...t){console.warn(e,...t)}logError(e,t,...r){console.error(e,...t?[t,...r]:r)}logCritical(e,t,...r){console.error(`CRITICAL: ${e}`,...t?[t,...r]:r)}log(e,t,r,...o){switch(e){case Ze.Trace:this.logTrace(t,...o);break;case Ze.Debug:this.logDebug(t,...o);break;case Ze.Information:this.logInformation(t,...o);break;case Ze.Warning:this.logWarning(t,...o);break;case Ze.Error:this.logError(t,r,...o);break;case Ze.Critical:this.logCritical(t,r,...o);break;default:console.log(t,...o)}}}},{lifecycle:n.Singleton});const rt="LogReaderToken";class ot{constructor(){this.logs=[]}logTrace(e,...t){this.logs.push({logLevel:Ze.Trace,message:e,args:t})}logDebug(e,...t){this.logs.push({logLevel:Ze.Debug,message:e,args:t})}logInformation(e,...t){this.logs.push({logLevel:Ze.Information,message:e,args:t})}logWarning(e,...t){this.logs.push({logLevel:Ze.Warning,message:e,args:t})}logError(e,t,...r){this.logs.push({logLevel:Ze.Error,message:e,error:t,args:r})}logCritical(e,t,...r){this.logs.push({logLevel:Ze.Critical,message:e,error:t,args:r})}log(e,t,r,...o){this.logs.push({logLevel:e,message:t,error:r,args:o})}getLogs(){return this.logs}clearLogs(){this.logs=[]}}function nt(e,t){return e||t}function it(e,t){return e[t]}I.container.registerSingleton(ot),I.container.register(Ye,{useToken:ot}),I.container.register(rt,{useToken:ot});var st,at=void 0,lt=null,ct="",ut="function",dt="object",pt="prototype",bt="__proto__",ft="undefined",ht="constructor",gt="Symbol",vt="_polyfill",mt="length",yt="name",wt="call",_t="toString",xt=nt(Object),kt=it(xt,pt),Ct=nt(String),St=it(Ct,pt),Et=nt(Math),Tt=nt(Array),At=it(Tt,pt),Ot=it(At,"slice");function $t(e,t){try{return{v:e.apply(this,t)}}catch(e){return{e}}}function It(e){return function(t){return typeof t===e}}function Lt(e){var t="[object "+e+"]";return function(e){return!(!e||Rt(e)!==t)}}function Rt(e){return kt[_t].call(e)}function Dt(e){return typeof e===ft||e===ft}function jt(e){return e===lt||Dt(e)}function Pt(e){return!!e||e!==at}var Mt=It("string"),Nt=It(ut);function zt(e){return!(!e&&jt(e)||!e||typeof e!==dt)}var qt=it(Tt,"isArray"),Ht=Lt("Date"),Ut=It("number"),Vt=It("boolean"),Ft=Lt("Error");function Bt(e){return!!(e&&e.then&&Nt(e.then))}function Wt(e){return!(!e||(t=function(){return!(e&&0+e)},r=!e,o=$t(t),o.e?r:o.v));var t,r,o}var Kt=it(xt,"getOwnPropertyDescriptor");function Xt(e,t){return!!e&&kt.hasOwnProperty[wt](e,t)}var Gt=nt(it(xt,"hasOwn"),Jt);function Jt(e,t){return Xt(e,t)||!!Kt(e,t)}function Qt(e,t,r){if(e&&zt(e))for(var o in e)if(Gt(e,o)&&-1===t[wt](r||e,o,e[o]))break}function Yt(e,t,r,o){var n={};return Qt(e,(function(e,o){n[e]=t?o:e,n[o]=r?o:e})),o(n)}var Zt=nt(Ct),er="[object Error]";function tr(e,t){var r=ct,o=kt[_t][wt](e);o===er&&(e={stack:Zt(e.stack),message:Zt(e.message),name:Zt(e.name)});try{r=(r=JSON.stringify(e,lt,t?"number"==typeof t?t:4:at))&&r.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||Zt(e)}catch(e){r=" - "+tr(e,t)}return o+": "+r}function rr(e){throw new Error(e)}function or(e){throw new TypeError(e)}var nr=it(xt,"freeze");function ir(e){return e}function sr(e){return e[bt]||lt}var ar=it(xt,"assign"),lr=it(xt,"keys");function cr(e){return nr&&Qt(e,(function(e,t){(qt(t)||zt(t))&&nr(t)})),ur(e)}var ur=nt(nr,ir),dr=nt(it(xt,"getPrototypeOf"),sr);function pr(e){return Yt(e,0,0,cr)}var br,fr=pr({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),hr="__tsUtils$gblCfg";function gr(){var e;return typeof globalThis!==ft&&(e=globalThis),e||typeof self===ft||(e=self),e||typeof window===ft||(e=window),e||typeof r.g===ft||(e=r.g),e}function vr(){if(!br){var e=$t(gr).v||{};br=e[hr]=e[hr]||{}}return br}var mr=yr;function yr(e,t,r){var o=t&&t[e];return function(t){var n=t&&t[e]||o;if(n||r){var i=arguments;return(n||r).apply(t,n?Ot[wt](i,1):i)}or('"'+Zt(e)+'" not defined for '+tr(t))}}function wr(e){return function(t){return t[e]}}var _r=it(Et,"max"),xr=mr("slice",St),kr=mr("substring",St),Cr=yr("substr",St,Sr);function Sr(e,t,r){return jt(e)&&or("Invalid "+tr(e)),r<0?ct:((t=t||0)<0&&(t=_r(t+e[mt],0)),Dt(r)?xr(e,t):xr(e,t,t+r))}function Er(e,t){return kr(e,0,t)}var Tr,Ar,Or="_urid";function $r(e){var t={description:Zt(e),toString:function(){return gt+"("+e+")"}};return t[vt]=!0,t}function Ir(e){var t=function(){if(!Tr){var e=vr();Tr=e.gblSym=e.gblSym||{k:{},s:{}}}return Tr}();if(!Gt(t.k,e)){var r=$r(e),o=lr(t.s).length;r[Or]=function(){return o+"_"+r[_t]()},t.k[e]=r,t.s[r[Or]()]=Zt(e)}return t.k[e]}var Lr={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};var Rr,Dr=it(xt,"defineProperty"),jr=it(xt,"defineProperties");function Pr(e,t,r){return Dr(e,t,function(e){var t={};if(t[Lr.c]=!0,t[Lr.e]=!0,e.l){t.get=function(){return e.l.v};var r=Kt(e.l,"v");r&&r.set&&(t.set=function(t){e.l.v=t})}return Qt(e,(function(e,r){t[Lr[e]]=Dt(r)?t[Lr[e]]:r})),t}(r))}function Mr(){Rr=vr()}function Nr(e){return Dr({toJSON:function(){return e}},"v",{value:e})}var zr,qr="window";function Hr(e,t){var r;return function(){return!Rr&&Mr(),(!r||Rr.lzy)&&(r=Nr($t(e,t).v)),r.v}}function Ur(e){return!Rr&&Mr(),(!zr||!1===e||Rr.lzy)&&(zr=Nr($t(gr).v||lt)),zr.v}function Vr(e,t){var r=zr&&!1!==t?zr.v:Ur(t);return r&&r[e]?r[e]:e===qr?Jr():lt}function Fr(){return!!Br()}var Br=Hr(Vr,["document"]);function Wr(){return!!Jr()}var Kr,Xr,Gr,Jr=Hr(Vr,[qr]),Qr=Hr(Vr,["navigator"]),Yr=Hr(Vr,["history"]),Zr=Hr((function(){return!!$t((function(){return process&&(process.versions||{}).node})).v})),eo=Hr((function(){return!!$t((function(){return self&&self instanceof WorkerGlobalScope})).v}));function to(){return Kr=Nr($t(Vr,[gt]).v)}function ro(e){var t=(Rr.lzy?0:Kr)||to();return t.v?t.v[e]:at}function oo(){return!!no()}function no(){return!Rr&&Mr(),((Rr.lzy?0:Kr)||to()).v}function io(e,t){var r=fr[e];!Rr&&Mr();var o=(Rr.lzy?0:Kr)||to();return o.v?o.v[r||e]:t?at:function(e){var t;!Ar&&(Ar={});var r=fr[e];return r&&(t=Ar[r]=Ar[r]||$r(gt+"."+r)),t}(e)}function so(e,t){!Rr&&Mr();var r=(Rr.lzy?0:Kr)||to();return r.v?r.v(e):t?lt:$r(e)}function ao(e){return!Rr&&Mr(),((Xr=(Rr.lzy?0:Xr)||Nr($t(ro,["for"]).v)).v||Ir)(e)}function lo(e){return!!e&&Nt(e.next)}function co(e,t,r){if(e&&(lo(e)||(!Gr&&(Gr=Nr(io(3))),e=e[Gr.v]?e[Gr.v]():null),lo(e))){var o=at,n=at;try{for(var i=0;!(n=e.next()).done&&-1!==t[wt](r||e,n.value,i,e);)i++}catch(t){o={e:t},e.throw&&(n=lt,e.throw(o))}finally{try{n&&!n.done&&e.return&&e.return(n)}finally{if(o)throw o.e}}}}function uo(e,t,r){return e.apply(t,r)}function po(e,t){return!Dt(t)&&e&&(qt(t)?uo(e.push,e,t):lo(t)||!function(e){return e===lt||!Pt(e)}(r=t)&&Nt(r[io(3)])?co(t,(function(t){e.push(t)})):e.push(t)),e;var r}function bo(e,t,r){if(e)for(var o=e[mt]>>>0,n=0;n<o&&(!(n in e)||-1!==t[wt](r||e,e[n],n,e));n++);}var fo=mr("indexOf",At),ho=mr("map",At);function go(e,t,r){return(e&&e.slice||Ot).apply(e,Ot[wt](arguments,1))}var vo,mo,yo=mr("reduce",At),wo=nt(it(xt,"create"),_o);function _o(e){if(!e)return{};var t=typeof e;function r(){}return t!==dt&&t!==ut&&or("Prototype must be an Object or function: "+tr(e)),r[pt]=e,new r}function xo(e,t){var r=xt.setPrototypeOf||function(e,t){var r;!vo&&(vo=Nr(((r={})[bt]=[],r instanceof Array))),vo.v?e[bt]=t:Qt(t,(function(t,r){return e[t]=r}))};return r(e,t)}function ko(e,t){t&&(e[yt]=t)}function Co(e,t,r){var o=r||Error,n=o[pt][yt],i=Error.captureStackTrace;return function(e,t,r){function o(){this[ht]=t,$t(Pr,[this,yt,{v:e,c:!0,e:!1}])}return $t(Pr,[t,yt,{v:e,c:!0,e:!1}]),(t=xo(t,r))[pt]=r===lt?wo(r):(o[pt]=r[pt],new o),t}(e,(function(){var r=this,s=arguments;try{$t(ko,[o,e]);var a=uo(o,r,Ot[wt](s))||r;if(a!==r){var l=dr(r);l!==dr(a)&&xo(a,l)}return i&&i(a,r[ht]),t&&t(a,s),a}finally{$t(ko,[o,n])}}),o)}function So(){return(Date.now||Eo)()}function Eo(){return(new Date).getTime()}function To(e){return function(t){return jt(t)&&or("strTrim called ["+tr(t)+"]"),t&&t.replace&&(t=t.replace(e,ct)),t}}var Ao,Oo,$o,Io=yr("trim",St,To(/^\s+|(?=\s)\s+$/g));function Lo(e){if(!e||typeof e!==dt)return!1;$o||($o=!Wr()||Jr());var t=!1;if(e!==$o){Oo||(Ao=Function[pt][_t],Oo=Ao[wt](xt));try{var r=dr(e);(t=!r)||(Xt(r,ht)&&(r=r[ht]),t=r&&typeof r===ut&&Ao[wt](r)===Oo)}catch(e){}}return t}function Ro(e){return e.value&&Mo(e),!0}var Do=[function(e){var t=e.value;if(qt(t)){var r=e.result=[];return r.length=t.length,e.copyTo(r,t),!0}return!1},Mo,function(e){return e.type===ut},function(e){var t=e.value;return!!Ht(t)&&(e.result=new Date(t.getTime()),!0)}];function jo(e,t,r,o){var n=r.handler,i=r.path?o?r.path.concat(o):r.path:[],s={handler:r.handler,src:r.src,path:i},a=typeof t,l=!1,c=!1;t&&a===dt?l=Lo(t):c=t===lt||function(e){return!st&&(st=["string","number","boolean",ft,"symbol","bigint"]),e!==dt&&-1!==st.indexOf(e)}(a);var u={type:a,isPrim:c,isPlain:l,value:t,result:t,path:i,origin:r.src,copy:function(t,o){return jo(e,t,o?s:r,o)},copyTo:function(t,r){return Po(e,t,r,s)}};return u.isPrim?n&&n[wt](r,u)?u.result:t:function(e,t,o,i){var s;return bo(e,(function(e){if(e.k===t)return s=e,-1})),s||(s={k:t,v:t},e.push(s),function(e){Pr(u,"result",{g:function(){return e.v},s:function(t){e.v=t}});for(var t=0,o=n;!(o||(t<Do.length?Do[t++]:Ro))[wt](r,u);)o=lt}(s)),s.v}(e,t)}function Po(e,t,r,o){if(!jt(r))for(var n in r)t[n]=jo(e,r[n],o,n);return t}function Mo(e){var t=e.value;if(t&&e.isPlain){var r=e.result={};return e.copyTo(r,t),!0}return!1}function No(e,t){return bo(t,(function(t){!function(e,t,r){Po([],e,t,{handler:void 0,src:t,path:[]})}(e,t)})),e}function zo(e,t,r,o,n,i,s){return No(jo([],a=e,{handler:undefined,src:a})||{},Ot[wt](arguments));var a}var qo,Ho=wr(mt);function Uo(){return!Rr&&Mr(),(!qo||Rr.lzy)&&(qo=Nr($t(Vr,["performance"]).v)),qo.v}var Vo=mr("split",St);function Fo(e,t,r){if(e&&t){var o=Vo(t,"."),n=o.pop();bo(o,(function(t){jt(e[t])&&(e[t]={}),e=e[t]})),e[n]=r}}oo();var Bo=yr("endsWith",St,Wo);function Wo(e,t,r){Mt(e)||or("'"+tr(e)+"' is not a string");var o=Mt(t)?t:Zt(t),n=!Dt(r)&&r<e[mt]?r:e[mt];return kr(e,n-o[mt],n)===o}var Ko,Xo=mr("indexOf",St),Go="ref",Jo="unref",Qo="hasRef",Yo="enabled";function Zo(e,t,r){var o=qt(t),n=o?t.length:0,i=(n>0?t[0]:o?at:t)||setTimeout,s=(n>1?t[1]:at)||clearTimeout,a=r[0];r[0]=function(){l.dn(),uo(a,at,Ot[wt](arguments))};var l=function(e,t,r){var o,n=!0,i=e?t(lt):lt;function s(){return n=!1,i&&i[Jo]&&i[Jo](),o}function a(){i&&r(i),i=lt}function l(){return i=t(i),n||s(),o}return(o={cancel:a,refresh:l})[Qo]=function(){return i&&i[Qo]?i[Qo]():n},o[Go]=function(){return n=!0,i&&i[Go]&&i[Go](),o},o[Jo]=s,{h:o=Dr(o,Yo,{get:function(){return!!i},set:function(e){!e&&i&&a(),e&&!i&&l()}}),dn:function(){i=lt}}}(e,(function(e){if(e){if(e.refresh)return e.refresh(),e;uo(s,at,[e])}return uo(i,at,r)}),(function(e){uo(s,at,[e])}));return l.h}function en(e,t){return Zo(!0,at,Ot[wt](arguments))}var tn="constructor",rn="prototype",on="function",nn="_dynInstFuncs",sn="_isDynProxy",an="_dynClass",ln="_dynInstChk",cn=ln,un="_dfOpts",dn="_unknown_",pn="__proto__",bn="_dyn"+pn,fn="__dynProto$Gbl",hn="_dynInstProto",gn="useBaseInst",vn="setInstFuncs",mn=Object,yn=mn.getPrototypeOf,wn=mn.getOwnPropertyNames,_n=Ur(),xn=_n[fn]||(_n[fn]={o:(Ko={},Ko[vn]=!0,Ko[gn]=!0,Ko),n:1e3});function kn(e){return e&&(e===mn[rn]||e===Array[rn])}function Cn(e){return kn(e)||e===Function[rn]}function Sn(e){var t;if(e){if(yn)return yn(e);var r=e[pn]||e[rn]||(e[tn]?e[tn][rn]:null);t=e[bn]||r,Xt(e,bn)||(delete e[hn],t=e[bn]=e[hn]||e[bn],e[hn]=r)}return t}function En(e,t){var r=[];if(wn)r=wn(e);else for(var o in e)"string"==typeof o&&Xt(e,o)&&r.push(o);if(r&&r.length>0)for(var n=0;n<r.length;n++)t(r[n])}function Tn(e,t,r){return t!==tn&&typeof e[t]===on&&(r||Xt(e,t))&&t!==pn&&t!==rn}function An(e){or("DynamicProto: "+e)}function On(e,t){for(var r=e.length-1;r>=0;r--)if(e[r]===t)return!0;return!1}function $n(e,t,r,o,n){if(!kn(e)){var i=r[nn]=r[nn]||wo(null);if(!kn(i)){var s=i[t]=i[t]||wo(null);!1!==i[cn]&&(i[cn]=!!n),kn(s)||En(r,(function(t){Tn(r,t,!1)&&r[t]!==o[t]&&(s[t]=r[t],delete r[t],(!Xt(e,t)||e[t]&&!e[t][sn])&&(e[t]=function(e,t){var r=function(){var o=function(e,t,r,o){var n=null;if(e&&Xt(r,an)){var i=e[nn]||wo(null);if((n=(i[r[an]]||wo(null))[t])||An("Missing ["+t+"] "+on),!n[ln]&&!1!==i[cn]){for(var s=!Xt(e,t),a=Sn(e),l=[];s&&a&&!Cn(a)&&!On(l,a);){var c=a[t];if(c){s=c===o;break}l.push(a),a=Sn(a)}try{s&&(e[t]=n),n[ln]=1}catch(e){i[cn]=!1}}}return n}(this,t,e,r)||function(e,t,r){var o=t[e];return o===r&&(o=Sn(t)[e]),typeof o!==on&&An("["+e+"] is not a "+on),o}(t,e,r);return o.apply(this,arguments)};return r[sn]=1,r}(e,t)))}))}}}function In(e,t){return Xt(e,rn)?e.name||t||dn:((e||{})[tn]||{}).name||t||dn}function Ln(e,t,r,o){Xt(e,rn)||An("theClass is an invalid class definition.");var n=e[rn];(function(e,t){if(yn){for(var r=[],o=Sn(t);o&&!Cn(o)&&!On(r,o);){if(o===e)return!0;r.push(o),o=Sn(o)}return!1}return!0})(n,t)||An("["+In(e)+"] not in hierarchy of ["+In(t)+"]");var i=null;Xt(n,an)?i=n[an]:(i="_dynCls$"+In(e,"_")+"$"+xn.n,xn.n++,n[an]=i);var s=Ln[un],a=!!s[gn];a&&o&&void 0!==o[gn]&&(a=!!o[gn]);var l=function(e){var t=wo(null);return En(e,(function(r){!t[r]&&Tn(e,r,!1)&&(t[r]=e[r])})),t}(t),c=function(e,t,r,o){function n(e,t,r){var n=t[r];if(n[sn]&&o){var i=e[nn]||{};!1!==i[cn]&&(n=(i[t[an]]||{})[r]||n)}return function(){return n.apply(e,arguments)}}var i=wo(null);En(r,(function(e){i[e]=n(t,r,e)}));for(var s=Sn(e),a=[];s&&!Cn(s)&&!On(a,s);)En(s,(function(e){!i[e]&&Tn(s,e,!yn)&&(i[e]=n(t,s,e))})),a.push(s),s=Sn(s);return i}(n,t,l,a);r(t,c);var u=!!yn&&!!s[vn];u&&o&&(u=!!o[vn]),$n(n,i,t,l,!1!==u)}Ln[un]=xn.o;var Rn="function",Dn="object",jn="undefined",Pn="prototype",Mn=Object,Nn=Mn[Pn],zn=((Ur()||{}).Symbol,(Ur()||{}).Reflect,"hasOwnProperty"),qn=ar||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Nn[zn].call(t,n)&&(e[n]=t[n]);return e},Hn=function(e,t){return Hn=Mn.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t[zn](r)&&(e[r]=t[r])},Hn(e,t)};function Un(e,t){function r(){this.constructor=e}typeof t!==Rn&&null!==t&&or("Class extends value "+String(t)+" is not a constructor or null"),Hn(e,t),e[Pn]=null===t?wo(t):(r[Pn]=t[Pn],new r)}function Vn(e,t){for(var r=0,o=t.length,n=e.length;r<o;r++,n++)e[n]=t[r];return e}var Fn="toLowerCase",Bn="blkVal",Wn="length",Kn="rdOnly",Xn="notify",Gn="warnToConsole",Jn="throwInternal",Qn="setDf",Yn="watch",Zn="logger",ei="apply",ti="push",ri="splice",oi="hdlr",ni="cancel",ii="initialize",si="identifier",ai="removeNotificationListener",li="addNotificationListener",ci="isInitialized",ui="getNotifyMgr",di="getPlugin",pi="pollInternalLogs",bi="name",fi="time",hi="processNext",gi="getProcessTelContext",vi="enabled",mi="stopPollingInternalLogs",yi="unload",wi="onComplete",_i="version",xi="loggingLevelConsole",ki="createNew",Ci="teardown",Si="messageId",Ei="message",Ti="isAsync",Ai="diagLog",Oi="_doTeardown",$i="update",Ii="getNext",Li="setNextPlugin",Ri="protocol",Di="userAgent",ji="split",Pi="nodeType",Mi="replace",Ni="logInternalMessage",zi="type",qi="handler",Hi="status",Ui="getResponseHeader",Vi="getAllResponseHeaders",Fi="isChildEvt",Bi="data",Wi="getCtx",Ki="setCtx",Xi="complete",Gi="itemsReceived",Ji="urlString",Qi="sendPOST",Yi="headers",Zi="timeout",es="setRequestHeader",ts="traceId",rs="spanId",os="traceFlags",ns=void 0,is="",ss="channels",as="core",ls="createPerfMgr",cs="disabled",us="extensionConfig",ds="extensions",ps="processTelemetry",bs="priority",fs="eventsSent",hs="eventsDiscarded",gs="eventsSendRequest",vs="perfEvent",ms="offlineEventsStored",ys="offlineBatchSent",ws="offlineBatchDrop",_s="getPerfMgr",xs="domain",ks="path",Cs="Not dynamic - ",Ss=/-([a-z])/g,Es=/([^\w\d_$])/g,Ts=/^(\d+[\w\d_$])/,As=Object.getPrototypeOf;function Os(e){return!jt(e)}function $s(e){var t=e;return t&&Mt(t)&&(t=(t=(t=t[Mi](Ss,(function(e,t){return t.toUpperCase()})))[Mi](Es,"_"))[Mi](Ts,(function(e,t){return"_"+t}))),t}function Is(e,t){return!(!e||!t)&&-1!==Xo(e,t)}function Ls(e){return e&&e.toISOString()||""}function Rs(e){return Ft(e)?e[bi]:is}function Ds(e,t,r,o,n){var i=r;return e&&((i=e[t])===r||n&&!n(i)||o&&!o(r)||(i=r,e[t]=i)),i}function js(e,t,r){var o;return e?!(o=e[t])&&jt(o)&&(o=Dt(r)?{}:r,e[t]=o):o=Dt(r)?{}:r,o}function Ps(e,t){var r=null,o=null;return Nt(e)?r=e:o=e,function(){var e=arguments;if(r&&(o=r()),o)return o[t][ei](o,e)}}function Ms(e,t,r,o,n){e&&t&&r&&(!1!==n||Dt(e[t]))&&(e[t]=Ps(r,o))}function Ns(e,t,r,o){return e&&t&&zt(e)&&qt(r)&&bo(r,(function(r){Mt(r)&&Ms(e,r,t,r,o)})),e}function zs(e){return e&&ar&&(e=Mn(ar({},e))),e}function qs(e,t,r,o,n,i){var s=arguments,a=s[0]||{},l=s[Wn],c=!1,u=1;for(l>0&&Vt(a)&&(c=a,a=s[u]||{},u++),zt(a)||(a={});u<l;u++){var d=s[u],p=qt(d),b=zt(d);for(var f in d)if(p&&f in d||b&&Gt(d,f)){var h=d[f],g=void 0;if(c&&h&&((g=qt(h))||Lo(h))){var v=a[f];g?qt(v)||(v=[]):Lo(v)||(v={}),h=qs(c,v,h)}void 0!==h&&(a[f]=h)}}return a}function Hs(e,t){var r=!1,o=t&&t.featureOptIn&&t.featureOptIn[e];if(e&&o){var n=o.mode;r=3==n||1==n}return r}function Us(e){try{return e.responseText}catch(e){}return null}function Vs(e,t){return e?"XDomainRequest,Response:"+Us(e)||0:t}function Fs(e,t){return e?"XMLHttpRequest,Status:"+e[Hi]+",Response:"+Us(e)||0:t}function Bs(e,t){return t&&(Ut(t)?e=[t].concat(e):qt(t)&&(e=t.concat(e))),e}var Ws="withCredentials";function Ks(e,t,r){if(!e[r]&&t&&t[Ui]){var o=t[Ui](r);o&&(e[r]=Io(o))}return e}function Xs(e,t){var r,o,n={};return e[Vi]?(r=e[Vi](),o={},Mt(r)&&bo(Io(r)[ji](/[\r\n]+/),(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var r=Io(e.substring(0,t))[Fn](),n=Io(e.substring(t+1));o[r]=n}else o[Io(e)]=1}})),n=o):t&&(n=Ks(n,e,"time-delta-millis"),n=Ks(n,e,"kill-duration"),n=Ks(n,e,"kill-duration-seconds")),n}var Gs="location",Js="JSON",Qs="crypto",Ys="msCrypto",Zs="msie",ea="trident/",ta="XMLHttpRequest",ra=null,oa=null,na=!1,ia=null,sa=null;function aa(e,t){var r=!1;if(e){try{if(!(r=t in e)){var o=e[Pn];o&&(r=t in o)}}catch(e){}if(!r)try{r=!Dt((new e)[t])}catch(e){}}return r}function la(e){if(e&&na){var t=Vr("__mockLocation");if(t)return t}return typeof location===Dn&&location?location:Vr(Gs)}function ca(){return Boolean(typeof JSON===Dn&&JSON||null!==Vr(Js))}function ua(){return ca()?JSON||Vr(Js):null}function da(){var e=Qr();if(e&&(e[Di]!==oa||null===ra)){var t=((oa=e[Di])||is)[Fn]();ra=Is(t,Zs)||Is(t,ea)}return ra}function pa(e){if(void 0===e&&(e=null),!e){var t=Qr()||{};e=t?(t.userAgent||is)[Fn]():is}var r=(e||is)[Fn]();if(Is(r,Zs)){var o=Br()||{};return Math.max(parseInt(r[ji](Zs)[1]),o.documentMode||0)}if(Is(r,ea)){var n=parseInt(r[ji](ea)[1]);if(n)return n+4}return null}function ba(e){return null!==sa&&!1!==e||(sa=!!Qr()&&Boolean(Qr().sendBeacon)),sa}function fa(e){var t=!1;try{t=!!Vr("fetch");var r=Vr("Request");t&&e&&r&&(t=aa(r,"keepalive"))}catch(e){}return t}function ha(){var e=!1;try{e=!!Vr(ta)}catch(e){}return e}var ga=4294967296,va=4294967295,ma=123456789,ya=987654321,wa=!1,_a=ma,xa=ya;function ka(){try{var e=2147483647&So();(t=(Math.random()*ga^e)+e)<0&&(t>>>=0),_a=ma+t&va,xa=ya-t&va,wa=!0}catch(e){}var t}function Ca(e){var t=0,r=Vr(Qs)||Vr(Ys);return r&&r.getRandomValues&&(t=r.getRandomValues(new Uint32Array(1))[0]&va),0===t&&da()&&(wa||ka(),t=function(e){var t=((xa=36969*(65535&xa)+(xa>>16)&va)<<16)+(65535&(_a=18e3*(65535&_a)+(_a>>16)&va))>>>0&va;return t>>>=0}()&va),0===t&&(t=Math.floor(ga*Math.random()|0)),e||(t>>>=0),t}function Sa(e){void 0===e&&(e=22);for(var t=Ca()>>>0,r=0,o=is;o[Wn]<e;)r++,o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===r&&(t=(Ca()<<2&4294967295|3&t)>>>0,r=0);return o}var Ea="3.2.0",Ta="."+Sa(6),Aa=0;function Oa(e){return 1===e[Pi]||9===e[Pi]||!+e[Pi]}function $a(e,t){return void 0===t&&(t=!1),$s(e+Aa+++(t?"."+Ea:is)+Ta)}function Ia(e){var t={id:$a("_aiData-"+(e||is)+"."+Ea),accept:function(e){return Oa(e)},get:function(e,r,o,n){var i=e[t.id];return i?i[$s(r)]:(n&&(i=function(e,t){var r=t[e.id];if(!r){r={};try{Oa(t)&&Pr(t,e.id,{e:!1,v:r})}catch(e){}}return r}(t,e),i[$s(r)]=o),o)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}function La(e){return e&&zt(e)&&(e.isVal||e.fb||Gt(e,"v")||Gt(e,"mrg")||Gt(e,"ref")||e.set)}function Ra(e,t,r){var o,n=r.dfVal||Pt;if(t&&r.fb){var i=r.fb;qt(i)||(i=[i]);for(var s=0;s<i[Wn];s++){var a=i[s],l=t[a];if(n(l)?o=l:e&&(n(l=e.cfg[a])&&(o=l),e.set(e.cfg,Zt(a),l)),n(o))break}}return!n(o)&&n(r.v)&&(o=r.v),o}function Da(e,t,r){var o,n=r;return r&&La(r)&&(n=Ra(e,t,r)),n&&(La(n)&&(n=Da(e,t,n)),qt(n)?(o=[])[Wn]=n[Wn]:Lo(n)&&(o={}),o&&(Qt(n,(function(r,n){n&&La(n)&&(n=Da(e,t,n)),o[r]=n})),n=o)),n}function ja(e,t,r,o){var n,i,s,a,l,c,u,d,p=o;La(p)?(n=p.isVal,i=p.set,c=p[Kn],u=p[Bn],a=p.mrg,!(l=p.ref)&&Dt(l)&&(l=!!a),s=Ra(e,t,p)):s=o,u&&e[Bn](t,r);var b=!0,f=t[r];!f&&jt(f)||(d=f,b=!1,n&&d!==s&&!n(d)&&(d=s,b=!0),i&&(b=(d=i(d,s,t))===s)),b?d=s?Da(e,t,s):s:(Lo(d)||qt(s))&&a&&s&&(Lo(s)||qt(s))&&Qt(s,(function(t,r){ja(e,d,t,r)})),e.set(t,r,d),l&&e.ref(t,r),c&&e[Kn](t,r)}var Pa=ao("[[ai_dynCfg_1]]"),Ma=ao("[[ai_blkDynCfg_1]]"),Na=ao("[[ai_frcDynCfg_1]]");function za(e){var t;return e&&(qt(e)?(t=[])[Wn]=e[Wn]:Lo(e)&&(t={}),t)?(Qt(e,(function(e,r){t[e]=za(r)})),t):e}function qa(e,t,r){var o=!1;return r&&!e[t.blkVal]&&((o=r[Na])||r[Ma]||(o=Lo(r)||qt(r))),o}function Ha(e){or("InvalidAccess:"+e)}var Ua,Va=["push","pop","shift","unshift","splice"],Fa=function(e,t,r,o){e&&e[Jn](3,108,"".concat(r," [").concat(t,"] failed - ")+tr(o))};function Ba(e,t){var r=Kt(e,t);return r&&r.get}function Wa(e,t,r,o){if(t){var n=Ba(t,r);n&&n[e.prop]?t[r]=o:function(e,t,r,o){var n={n:r,h:[],trk:function(t){t&&t.fn&&(-1===fo(n.h,t)&&n.h[ti](t),e.trk(t,n))},clr:function(e){var t=fo(n.h,e);-1!==t&&n.h[ri](t,1)}},i=!0,s=!1;function a(){i&&(s=s||qa(a,e,o),o&&!o[Pa]&&s&&(o=Xa(e,o,r,"Converting")),i=!1);var t=e.act;return t&&n.trk(t),o}a[e.prop]={chng:function(){e.add(n)}},Pr(t,n.n,{g:a,s:function(l){if(o!==l){a[e.ro]&&!e.upd&&Ha("["+r+"] is read-only:"+tr(t)),i&&(s=s||qa(a,e,o),i=!1);var c=s&&a[e.rf];if(s)if(c){Qt(o,(function(e){o[e]=l?l[e]:ns}));try{Qt(l,(function(t,r){Wa(e,o,t,r)})),l=o}catch(t){Fa((e.hdlr||{})[Zn],r,"Assigning",t),s=!1}}else o&&o[Pa]&&Qt(o,(function(t){var r=Ba(o,t);if(r){var n=r[e.prop];n&&n.chng()}}));if(l!==o){var u=l&&qa(a,e,l);!c&&u&&(l=Xa(e,l,r,"Converting")),o=l,s=u}e.add(n)}}})}(e,t,r,o)}return t}function Ka(e,t,r,o){if(t){var n=Ba(t,r),i=n&&!!n[e.prop],s=o&&o[0],a=o&&o[1],l=o&&o[2];if(!i){if(l)try{!function(e){if(e&&(Lo(e)||qt(e)))try{e[Ma]=!0}catch(e){}}(t)}catch(t){Fa((e.hdlr||{})[Zn],r,"Blocking",t)}try{Wa(e,t,r,t[r]),n=Ba(t,r)}catch(t){Fa((e.hdlr||{})[Zn],r,"State",t)}}s&&(n[e.rf]=s),a&&(n[e.ro]=a),l&&(n[e.blkVal]=!0)}return t}function Xa(e,t,r,o){try{Qt(t,(function(r,o){Wa(e,t,r,o)})),t[Pa]||(Dr(t,Pa,{get:function(){return e[oi]}}),function(e,t,r){qt(t)&&bo(Va,(function(o){var n=t[o];t[o]=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=n[ei](this,o);return Xa(e,t,r,"Patching"),s}}))}(e,t,r))}catch(t){Fa((e.hdlr||{})[Zn],r,o,t)}return t}var Ga="[[ai_",Ja="]]";function Qa(e,t,r){var o,n=function(e){if(e){var t=e[Pa]||e;if(t.cfg&&(t.cfg===e||t.cfg[Pa]===t))return t}return null}(t);if(n)return n;var i,s=$a("dyncfg",!0),a=t&&!1!==r?t:za(t),l=((o={uid:null,cfg:a})[Zn]=e,o[Xn]=function(){i[Xn]()},o.set=function(t,r,o){try{t=Wa(i,t,r,o)}catch(t){Fa(e,r,"Setting value",t)}return t[r]},o[Qn]=function(e,t){return t&&Qt(t,(function(t,r){ja(l,e,t,r)})),e},o[Yn]=function(e){return function(e,t){var r={fn:t,rm:function(){r.fn=null,e=null,t=null}};return Pr(r,"toJSON",{v:function(){return"WatcherHandler"+(r.fn?"":"[X]")}}),e.use(r,t),r}(i,e)},o.ref=function(e,t){var r;return Ka(i,e,t,(r={},r[0]=!0,r))[t]},o[Kn]=function(e,t){var r;return Ka(i,e,t,(r={},r[1]=!0,r))[t]},o[Bn]=function(e,t){var r;return Ka(i,e,t,(r={},r[2]=!0,r))[t]},o._block=function(e,t){i.use(null,(function(r){var o=i.upd;try{Dt(t)||(i.upd=t),e(r)}finally{i.upd=o}}))},o);return Pr(l,"uid",{c:!1,e:!1,w:!1,v:s}),Xa(i=function(e){var t,r,o=so(Ga+"get"+e.uid+Ja),n=so(Ga+"ro"+e.uid+Ja),i=so(Ga+"rf"+e.uid+Ja),s=so(Ga+"blkVal"+e.uid+Ja),a=so(Ga+"dtl"+e.uid+Ja),l=null,c=null;function u(t,o){var n=r.act;try{r.act=t,t&&t[a]&&(bo(t[a],(function(e){e.clr(t)})),t[a]=[]),o({cfg:e.cfg,set:e.set.bind(e),setDf:e[Qn].bind(e),ref:e.ref.bind(e),rdOnly:e[Kn].bind(e)})}catch(t){var i=e[Zn];throw i&&i[Jn](1,107,tr(t)),t}finally{r.act=n||null}}function d(){if(l){var e=l;l=null,c&&c[ni](),c=null;var t=[];if(bo(e,(function(e){if(e&&(e[a]&&(bo(e[a],(function(t){t.clr(e)})),e[a]=null),e.fn))try{u(e,e.fn)}catch(e){t[ti](e)}})),l)try{d()}catch(e){t[ti](e)}t[Wn]>0&&function(e,t){Ua||(Ua=Co("AggregationError",(function(e,t){t[Wn]>1&&(e.errors=t[1])})));var r="Watcher error(s): ";throw bo(t,(function(e,t){r+="\n".concat(t," > ").concat(tr(e))})),new Ua(r,t||[])}(0,t)}}return(t={prop:o,ro:n,rf:i})[Bn]=s,t[oi]=e,t.add=function(e){if(e&&e.h[Wn]>0){l||(l=[]),c||(c=en((function(){c=null,d()}),0));for(var t=0;t<e.h[Wn];t++){var r=e.h[t];r&&-1===fo(l,r)&&l[ti](r)}}},t[Xn]=d,t.use=u,t.trk=function(e,t){if(e){var r=e[a]=e[a]||[];-1===fo(r,t)&&r[ti](t)}},r=t}(l),a,"config","Creating"),l}function Ya(e,t,r,o){var n=Qa(r,e||{},o);return t&&n[Qn](n.cfg,t),n}function Za(e,t,r){var o=e[Pa]||e;return!o.cfg||o.cfg!==e&&o.cfg[Pa]!==o?(function(e,t){e?(e[Gn](t),e[Jn](2,108,t)):Ha(t)}(r,Cs+tr(e)),Ya(e,null,r)[Yn](t)):o[Yn](t)}var el,tl,rl=[fs,hs,gs,vs],ol=null;function nl(e,t){return function(){var r=arguments,o=il(t);if(o){var n=o.listener;n&&n[e]&&n[e][ei](n,r)}}}function il(e){var t,r=ol;return r||!0===e.disableDbgExt||(r=ol||((t=Vr("Microsoft"))&&(ol=t.ApplicationInsights),ol)),r?r.ChromeDbgExt:null}var sl="warnToConsole",al={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},ll=((tl={})[0]=null,tl[1]="errorToConsole",tl[2]=sl,tl[3]="debugToConsole",tl);function cl(e){return e?'"'+e[Mi](/\"/g,is)+'"':is}function ul(e,t){var r=typeof console!==jn?console:Vr("console");if(r){var o="log";r[e]&&(o=e),Nt(r[o])&&r[o](t)}}var dl=function(){function e(e,t,r,o){void 0===r&&(r=!1);var n=this;n[Si]=e,n[Ei]=(r?"AI: ":"AI (Internal): ")+e;var i=is;ca()&&(i=ua().stringify(o));var s=(t?" message:"+cl(t):is)+(o?" props:"+cl(i):is);n[Ei]+=s}return e.dataType="MessageData",e}();function pl(e,t){return(e||{})[Zn]||new bl(t)}var bl=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var r,o,n,i,s,a=0,l={};Ln(e,this,(function(e){function c(t,r){if(!(a>=n)){var i=!0,s="AITR_"+r[Si];if(l[s]?i=!1:l[s]=!0,i&&(t<=o&&(e.queue[ti](r),a++,u(1===t?"error":"warn",r)),a===n)){var c="Internal events throttle limit per PageView reached for this app.",d=new dl(23,c,!1);e.queue[ti](d),1===t?e.errorToConsole(c):e[Gn](c)}}}function u(e,r){var o=il(t||{});o&&o[Ai]&&o[Ai](e,r)}s=function(t){return Za(Ya(t,al,e).cfg,(function(e){var t=e.cfg;r=t[xi],o=t.loggingLevelTelemetry,n=t.maxMessageLimit,i=t.enableDebug}))}(t||{}),e.consoleLoggingLevel=function(){return r},e[Jn]=function(t,o,n,s,a){void 0===a&&(a=!1);var d=new dl(o,n,a,s);if(i)throw tr(d);var p=ll[t]||sl;if(Dt(d[Ei]))u("throw"+(1===t?"Critical":"Warning"),d);else{if(a){var b=+d[Si];!l[b]&&r>=t&&(e[p](d[Ei]),l[b]=!0)}else r>=t&&e[p](d[Ei]);c(t,d)}},e.debugToConsole=function(e){ul("debug",e),u("warning",e)},e[Gn]=function(e){ul("warn",e),u("warning",e)},e.errorToConsole=function(e){ul("error",e),u("error",e)},e.resetInternalMessageCount=function(){a=0,l={}},e[Ni]=c,e[yi]=function(e){s&&s.rm(),s=null}}))}return e.__ieDyn=1,e}();function fl(e){return e||new bl}function hl(e,t,r,o,n,i){void 0===i&&(i=!1),fl(e)[Jn](t,r,o,n,i)}function gl(e,t){fl(e)[Gn](t)}var vl=function(e){return Yt(e,1,0,cr)},ml=vl({LocalStorage:0,SessionStorage:1}),yl=(vl({AI:0,AI_AND_W3C:1,W3C:2}),vl({Normal:1,Critical:2}),"split"),wl="length",_l="toLowerCase",xl="ingestionendpoint",kl="toString",Cl="push",Sl="removeItem",El="name",Tl="message",Al="count",Ol="preTriggerDate",$l="disabled",Il="interval",Ll="daysOfMonth",Rl="date",Dl="getUTCDate",jl="stringify",Pl="pathname",Ml="correlationHeaderExcludePatterns",Nl="exceptions",zl="parsedStack",ql="properties",Hl="measurements",Ul="sizeInBytes",Vl="typeName",Fl="severityLevel",Bl="problemGroup",Wl="isManual",Kl="CreateFromInterface",Xl="assembly",Gl="fileName",Jl="hasFullStack",Ql="level",Yl="method",Zl="line",ec="duration",tc="receivedResponse",rc=void 0,oc=void 0,nc="";function ic(){return cc()?sc(ml.LocalStorage):null}function sc(e){try{if(jt(Ur()))return null;var t=(new Date)[kl](),r=Vr(e===ml.LocalStorage?"localStorage":"sessionStorage"),o=nc+t;r.setItem(o,t);var n=r.getItem(o)!==t;if(r[Sl](o),!n)return r}catch(e){}return null}function ac(){return pc()?sc(ml.SessionStorage):null}function lc(e){nc=e||""}function cc(e){return(e||void 0===rc)&&(rc=!!sc(ml.LocalStorage)),rc}function uc(e,t){var r=ic();if(null!==r)try{return r.getItem(t)}catch(t){rc=!1,hl(e,2,1,"Browser failed read of local storage. "+Rs(t),{exception:tr(t)})}return null}function dc(e,t,r){var o=ic();if(null!==o)try{return o.setItem(t,r),!0}catch(t){rc=!1,hl(e,2,3,"Browser failed write to local storage. "+Rs(t),{exception:tr(t)})}return!1}function pc(e){return(e||void 0===oc)&&(oc=!!sc(ml.SessionStorage)),oc}function bc(e,t){var r=ac();if(null!==r)try{return r.getItem(t)}catch(t){oc=!1,hl(e,2,2,"Browser failed read of session storage. "+Rs(t),{exception:tr(t)})}return null}function fc(e,t,r){var o=ac();if(null!==o)try{return o.setItem(t,r),!0}catch(t){oc=!1,hl(e,2,4,"Browser failed write to session storage. "+Rs(t),{exception:tr(t)})}return!1}function hc(e,t){var r=ac();if(null!==r)try{return r[Sl](t),!0}catch(t){oc=!1,hl(e,2,6,"Browser failed removal of session storage item. "+Rs(t),{exception:tr(t)})}return!1}var gc="AppInsightsPropertiesPlugin",vc="AppInsightsChannelPlugin",mc="ApplicationInsightsAnalytics",yc="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",wc="sampleRate",_c="ProcessLegacy",xc="http.method",kc="https://dc.services.visualstudio.com",Cc="/v2/track",Sc="not_specified",Ec="iKey";function Tc(e,t,r){var o=t[wl],n=function(e,t){var r;return t&&(t=Io(Zt(t)))[wl]>150&&(r=kr(t,0,150),hl(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),r||t}(e,t);if(n[wl]!==o){for(var i=0,s=n;void 0!==r[s];)i++,s=kr(n,0,147)+Dc(i);n=s}return n}function Ac(e,t,r){var o;return void 0===r&&(r=1024),t&&(r=r||1024,(t=Io(Zt(t)))[wl]>r&&(o=kr(t,0,r),hl(e,2,61,"string value is too long. It has been truncated to "+r+" characters.",{value:t},!0))),o||t}function Oc(e,t){return Rc(e,t,2048,66)}function $c(e,t){var r;return t&&t[wl]>32768&&(r=kr(t,0,32768),hl(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),r||t}function Ic(e,t){if(t){var r={};Qt(t,(function(t,o){if(zt(o)&&ca())try{o=ua()[jl](o)}catch(t){hl(e,2,49,"custom property is not valid",{exception:t},!0)}o=Ac(e,o,8192),t=Tc(e,t,r),r[t]=o})),t=r}return t}function Lc(e,t){if(t){var r={};Qt(t,(function(t,o){t=Tc(e,t,r),r[t]=o})),t=r}return t}function Rc(e,t,r,o){var n;return t&&(t=Io(Zt(t)))[wl]>r&&(n=kr(t,0,r),hl(e,2,o,"input is too long, it has been truncated to "+r+" characters.",{data:t},!0)),n||t}function Dc(e){var t="00"+e;return Cr(t,t[wl]-3)}function jc(e,t,r,o,n,i){var s;r=Ac(o,r)||Sc,(jt(e)||jt(t)||jt(r))&&rr("Input doesn't contain all required fields");var a="";e[Ec]&&(a=e[Ec],delete e[Ec]);var l=((s={})[El]=r,s.time=Ls(new Date),s.iKey=a,s.ext=i||{},s.tags=[],s.data={},s.baseType=t,s.baseData=e,s);return jt(n)||Qt(n,(function(e,t){l.data[e]=t})),l}var Pc=function(){function e(e,t,r,o){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var n=this;n.ver=2,n[El]=Ac(e,t)||Sc,n[ql]=Ic(e,r),n[Hl]=Lc(e,o)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),Mc=function(){function e(e,t,r,o,n){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var i=this;i.ver=2,t=t||Sc,i[Tl]=$c(e,t),i[ql]=Ic(e,o),i[Hl]=Lc(e,n),r&&(i[Fl]=r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),Nc=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},zc=function(){function e(e,t,r,o,n,i,s,a,l){this.aiDataContract={ver:1,metrics:1,properties:0};var c=this;c.ver=2;var u=new Nc;u[Al]=o>0?o:void 0,u.max=isNaN(i)||null===i?void 0:i,u.min=isNaN(n)||null===n?void 0:n,u[El]=Ac(e,t)||Sc,u.value=r,u.stdDev=isNaN(s)||null===s?void 0:s,c.metrics=[u],c[ql]=Ic(e,a),c[Hl]=Lc(e,l)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),qc="";function Hc(e){(isNaN(e)||e<0)&&(e=0),e=Math.round(e);var t=qc+e%1e3,r=qc+Math.floor(e/1e3)%60,o=qc+Math.floor(e/6e4)%60,n=qc+Math.floor(e/36e5)%24,i=Math.floor(e/864e5);return t=1===t[wl]?"00"+t:2===t[wl]?"0"+t:t,r=r[wl]<2?"0"+r:r,o=o[wl]<2?"0"+o:o,n=n[wl]<2?"0"+n:n,(i>0?i+".":qc)+n+":"+o+":"+r+"."+t}var Uc=function(){function e(e,t,r,o,n,i,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var a=this;a.ver=2,a.id=function(e,t){return t?Rc(e,t,128,69)[kl]():t}(e,s),a.url=Oc(e,r),a[El]=Ac(e,t)||Sc,isNaN(o)||(a[ec]=Hc(o)),a[ql]=Ic(e,n),a[Hl]=Lc(e,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),Vc=function(){function e(e,t,r,o,n,i,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var a=this;a.ver=2,a.url=Oc(e,r),a[El]=Ac(e,t)||Sc,a[ql]=Ic(e,n),a[Hl]=Lc(e,i),s&&(a.domProcessing=s.domProcessing,a[ec]=s[ec],a.networkConnect=s.networkConnect,a.perfTotal=s.perfTotal,a[tc]=s[tc],a.sentRequest=s.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),Fc="error",Bc="stack",Wc="stackDetails",Kc="errorSrc",Xc="message",Gc="description";function Jc(e,t){var r=e;return r&&!Mt(r)&&(JSON&&JSON[jl]?(r=JSON[jl](e),!t||r&&"{}"!==r||(r=Nt(e[kl])?e[kl]():""+e)):r=e+" - (Missing JSON.stringify)"),r||""}function Qc(e,t){var r=e;return e&&(r&&!Mt(r)&&(r=e[Xc]||e[Gc]||r),r&&!Mt(r)&&(r=Jc(r,!0)),e.filename&&(r=r+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===Xo(r||"",t)&&(r=t+": "+r),r||""}function Yc(e){return e&&e.src&&Mt(e.src)&&e.obj&&qt(e.obj)}function Zc(e){var t=e||"";Mt(t)||(t=Mt(t[Bc])?t[Bc]:""+t);var r=t[yl]("\n");return{src:t,obj:r}}function eu(e){var t=null;if(e)try{if(e[Bc])t=Zc(e[Bc]);else if(e[Fc]&&e[Fc][Bc])t=Zc(e[Fc][Bc]);else if(e.exception&&e.exception[Bc])t=Zc(e.exception[Bc]);else if(Yc(e))t=e;else if(Yc(e[Wc]))t=e[Wc];else if(Jr()&&Jr().opera&&e[Xc])t=function(e){for(var t=[],r=e[yl]("\n"),o=0;o<r[wl];o++){var n=r[o];r[o+1]&&(n+="@"+r[o+1],o++),t[Cl](n)}return{src:e,obj:t}}(e[Tl]);else if(e.reason&&e.reason[Bc])t=Zc(e.reason[Bc]);else if(Mt(e))t=Zc(e);else{var r=e[Xc]||e[Gc]||"";Mt(e[Kc])&&(r&&(r+="\n"),r+=" from "+e[Kc]),r&&(t=Zc(r))}}catch(e){t=Zc(e)}return t||{src:"",obj:null}}function tu(e){var t="";if(e&&!(t=e.typeName||e[El]||""))try{var r=/function (.{1,200})\(/.exec(e.constructor[kl]());t=r&&r[wl]>1?r[1]:""}catch(e){}return t}function ru(e){if(e)try{if(!Mt(e)){var t=tu(e),r=Jc(e,!1);return r&&"{}"!==r||(e[Fc]&&(t=tu(e=e[Fc])),r=Jc(e,!0)),0!==Xo(r,t)&&"String"!==t?t+":"+r:r}}catch(e){}return""+(e||"")}var ou=function(){function e(e,t,r,o,n,i){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,function(e){try{if(zt(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(e){}return!1}(t)?(s[Nl]=t[Nl]||[],s[ql]=t[ql],s[Hl]=t[Hl],t[Fl]&&(s[Fl]=t[Fl]),t.id&&(s.id=t.id,t[ql].id=t.id),t[Bl]&&(s[Bl]=t[Bl]),jt(t[Wl])||(s[Wl]=t[Wl])):(r||(r={}),i&&(r.id=i),s[Nl]=[new nu(e,t,r)],s[ql]=Ic(e,r),s[Hl]=Lc(e,o),n&&(s[Fl]=n),i&&(s.id=i))}return e.CreateAutoException=function(e,t,r,o,n,i,s,a){var l,c=tu(n||i||e);return(l={})[Tl]=Qc(e,c),l.url=t,l.lineNumber=r,l.columnNumber=o,l.error=ru(n||i||e),l.evt=ru(i||e),l[Vl]=c,l.stackDetails=eu(s||n||i),l.errorSrc=a,l},e.CreateFromInterface=function(t,r,o,n){var i=r[Nl]&&ho(r[Nl],(function(e){return nu[Kl](t,e)}));return new e(t,qn(qn({},r),{exceptions:i}),o,n)},e.prototype.toInterface=function(){var e,t=this,r=t.exceptions,o=t.properties,n=t.measurements,i=t.severityLevel,s=t.problemGroup,a=t.id,l=t.isManual,c=r instanceof Array&&ho(r,(function(e){return e.toInterface()}))||void 0;return(e={ver:"4.0"})[Nl]=c,e.severityLevel=i,e.properties=o,e.measurements=n,e.problemGroup=s,e.id=a,e.isManual=l,e},e.CreateSimpleException=function(e,t,r,o,n,i){var s;return{exceptions:[(s={},s[Jl]=!0,s.message=e,s.stack=n,s.typeName=t,s)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=ru,e}(),nu=function(){function e(e,t,r){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var o=this;if(function(e){try{if(zt(e))return"hasFullStack"in e&&"typeName"in e}catch(e){}return!1}(t))o[Vl]=t[Vl],o[Tl]=t[Tl],o[Bc]=t[Bc],o[zl]=t[zl]||[],o[Jl]=t[Jl];else{var n=t,i=n&&n.evt;Ft(n)||(n=n[Fc]||i||n),o[Vl]=Ac(e,tu(n))||Sc,o[Tl]=$c(e,Qc(t||n,o[Vl]))||Sc;var s=t[Wc]||eu(t);o[zl]=function(e){var t,r=e.obj;if(r&&r[wl]>0){t=[];var o=0,n=0;if(bo(r,(function(e){var r=e[kl]();if(iu.regex.test(r)){var i=new iu(r,o++);n+=i[Ul],t[Cl](i)}})),n>32768)for(var i=0,s=t[wl]-1,a=0,l=i,c=s;i<s;){if((a+=t[i][Ul]+t[s][Ul])>32768){var u=c-l+1;t.splice(l,u);break}l=i,c=s,i++,s--}}return t}(s),qt(o[zl])&&ho(o[zl],(function(t){t[Xl]=Ac(e,t[Xl]),t[Gl]=Ac(e,t[Gl])})),o[Bc]=function(e,t){var r;if(t){var o=""+t;o[wl]>32768&&(r=kr(o,0,32768),hl(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return r||t}(e,function(e){var t="";return e&&(e.obj?bo(e.obj,(function(e){t+=e+"\n"})):t=e.src||""),t}(s)),o.hasFullStack=qt(o.parsedStack)&&o.parsedStack[wl]>0,r&&(r[Vl]=r[Vl]||o[Vl])}}return e.prototype.toInterface=function(){var e,t=this,r=t[zl]instanceof Array&&ho(t[zl],(function(e){return e.toInterface()}));return(e={id:t.id,outerId:t.outerId,typeName:t[Vl],message:t[Tl],hasFullStack:t[Jl],stack:t[Bc]})[zl]=r||void 0,e},e.CreateFromInterface=function(t,r){var o=r[zl]instanceof Array&&ho(r[zl],(function(e){return iu[Kl](e)}))||r[zl];return new e(t,qn(qn({},r),{parsedStack:o}))},e}(),iu=function(){function e(t,r){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var o=this;if(o[Ul]=0,"string"==typeof t){var n=t;o[Ql]=r,o[Yl]="<no_method>",o[Xl]=Io(n),o[Gl]="",o[Zl]=0;var i=n.match(e.regex);i&&i[wl]>=5&&(o[Yl]=Io(i[2])||o[Yl],o[Gl]=Io(i[4]),o[Zl]=parseInt(i[5])||0)}else o[Ql]=t[Ql],o[Yl]=t[Yl],o[Xl]=t[Xl],o[Gl]=t[Gl],o[Zl]=t[Zl],o[Ul]=0;o.sizeInBytes+=o.method[wl],o.sizeInBytes+=o.fileName[wl],o.sizeInBytes+=o.assembly[wl],o[Ul]+=e.baseSize,o.sizeInBytes+=o.level.toString()[wl],o.sizeInBytes+=o.line.toString()[wl]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return{level:e[Ql],method:e[Yl],assembly:e[Xl],fileName:e[Gl],line:e[Zl]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}();function su(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r=is,o=0;o<4;o++)r+=t[15&(e=Ca())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var n=t[8+(3&Ca())|0];return Cr(r,0,8)+Cr(r,9,4)+"4"+Cr(r,13,3)+n+Cr(r,16,3)+Cr(r,19,12)}var au="00",lu="00000000000000000000000000000000",cu="0000000000000000";function uu(e,t,r){return!(!e||e[Wn]!==t||e===r||!e.match(/^[\da-f]*$/i))}function du(e,t,r){return uu(e,t)?e:r}function pu(e,t,r,o){var n;return(n={})[_i]=uu(o,2,"ff")?o:au,n[ts]=bu(e)?e:su(),n[rs]=fu(t)?t:Er(su(),16),n.traceFlags=r>=0&&r<=255?r:1,n}function bu(e){return uu(e,32,lu)}function fu(e){return uu(e,16,cu)}function hu(e){if(e){var t=function(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[Wn]<2;)t="0"+t;return t}(e[os]);uu(t,2)||(t="01");var r=e[_i]||au;return"00"!==r&&"ff"!==r&&(r=au),"".concat(r.toLowerCase(),"-").concat(du(e.traceId,32,lu).toLowerCase(),"-").concat(du(e.spanId,16,cu).toLowerCase(),"-").concat(t.toLowerCase())}return""}var gu=function(e){var t={};return Qt(e,(function(e,r){t[e]=r[1],t[r[0]]=r[1]})),cr(t)}({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),vu=Br()||{},mu=0,yu=[null,null,null,null,null];function wu(e){var t=mu,r=yu,o=r[t];return vu.createElement?r[t]||(o=r[t]=vu.createElement("a")):o={host:_u(e,!0)},o.href=e,++t>=r[wl]&&(t=0),mu=t,o}function _u(e,t){var r=xu(e,t)||"";if(r){var o=r.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=o&&o[wl]>3&&Mt(o[2])&&o[2][wl]>0)return o[2]+(o[3]||"")}return r}function xu(e,t){var r=null;if(e){var o=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=o&&o[wl]>2&&Mt(o[2])&&o[2][wl]>0&&(r=o[2]||"",t&&o[wl]>2)){var n=(o[1]||"")[_l](),i=o[3]||"";("http"===n&&":80"===i||"https"===n&&":443"===i)&&(i=""),r+=i}}return r}var ku=[kc+Cc,"https://breeze.aimon.applicationinsights.io"+Cc,"https://dc-int.services.visualstudio.com"+Cc];function Cu(e){return-1!==fo(ku,e[_l]())}function Su(e,t,r){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[Ml])for(var o=0;o<e.correlationHeaderExcludePatterns[wl];o++)if(e[Ml][o].test(t))return!1;var n=wu(t).host[_l]();if(!n||-1===Xo(n,":443")&&-1===Xo(n,":80")||(n=(xu(t,!0)||"")[_l]()),(!e||!e.enableCorsCorrelation)&&n&&n!==r)return!1;var i,s=e&&e.correlationHeaderDomains;if(s&&(bo(s,(function(e){var t=new RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));i=i||t.test(n)})),!i))return!1;var a=e&&e.correlationHeaderExcludedDomains;if(!a||0===a[wl])return!0;for(o=0;o<a[wl];o++)if(new RegExp(a[o].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(n))return!1;return n&&n[wl]>0}function Eu(e){if(e){var t=function(e,t){if(e)for(var r=e[yl](","),o=0;o<r[wl];++o){var n=r[o][yl]("=");if(2===n[wl]&&n[0]===t)return n[1]}}(e,gu[1]);if(t&&"cid-v1:"!==t)return t}}function Tu(){var e=Uo();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return So()}function Au(e,t){var r=null;return 0===e||0===t||jt(e)||jt(t)||(r=t-e),r}function Ou(e,t){var r=e||{};return{getName:function(){return r[El]},setName:function(e){t&&t.setName(e),r[El]=e},getTraceId:function(){return r.traceID},setTraceId:function(e){t&&t.setTraceId(e),bu(e)&&(r.traceID=e)},getSpanId:function(){return r.parentID},setSpanId:function(e){t&&t.setSpanId(e),fu(e)&&(r.parentID=e)},getTraceFlags:function(){return r.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),r.traceFlags=e}}}var $u,Iu,Lu=function(){function e(e,t,r,o,n,i,s,a,l,c,u,d){void 0===l&&(l="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var p=this;p.ver=2,p.id=t,p[ec]=Hc(n),p.success=i,p.resultCode=s+"",p.type=Ac(e,l);var b=function(e,t,r,o){var n,i=o,s=o;if(t&&t[wl]>0){var a=wu(t);if(n=a.host,!i)if(null!=a[Pl]){var l=0===a.pathname[wl]?"/":a[Pl];"/"!==l.charAt(0)&&(l="/"+l),s=a[Pl],i=Ac(e,r?r+" "+l:l)}else i=Ac(e,t)}else n=o,i=o;return{target:n,name:i,data:s}}(e,r,a,o);p.data=Oc(e,o)||b.data,p.target=Ac(e,b.target),c&&(p.target="".concat(p.target," | ").concat(c)),p[El]=Ac(e,b[El]),p[ql]=Ic(e,u),p[Hl]=Lc(e,d)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}();function Ru(e){var t=null;if(Nt(Event))t=new Event(e);else{var r=Br();r&&r.createEvent&&(t=r.createEvent("Event")).initEvent(e,!0,!0)}return t}function Du(e,t,r){return!e&&jt(e)?t:Vt(e)?e:"true"===Zt(e)[Fn]()}function ju(e){return{mrg:!0,v:e}}function Pu(e,t){return{set:e,v:t}}function Mu(e,t,r){return{fb:r,isVal:e,v:t}}function Nu(e,t){return{fb:t,set:Du,v:!!e}}var zu,qu="toGMTString",Hu="toUTCString",Uu="cookie",Vu="expires",Fu="isCookieUseDisabled",Bu="disableCookiesUsage",Wu="_ckMgr",Ku=null,Xu=null,Gu=null,Ju={},Qu={},Yu=(($u={cookieCfg:ju((Iu={},Iu[xs]={fb:"cookieDomain",dfVal:Os},Iu.path={fb:"cookiePath",dfVal:Os},Iu.enabled=ns,Iu.ignoreCookies=ns,Iu.blockedCookies=ns,Iu)),cookieDomain:ns,cookiePath:ns})[Bu]=ns,$u);function Zu(){var e,t;!zu&&(e=function(){return Br()},t={},!Rr&&Mr(),t.b=Rr.lzy,Dr(t,"v",{configurable:!0,get:function(){var r=e();return Rr.lzy||Dr(t,"v",{value:r}),t.b=Rr.lzy,r}}),zu=t)}function ed(e){return!e||e.isEnabled()}function td(e,t){return!!(t&&e&&qt(e.ignoreCookies))&&-1!==fo(e.ignoreCookies,t)}function rd(e,t){var r=t[vi];if(jt(r)){var o=void 0;Dt(e[Fu])||(o=!e[Fu]),Dt(e[Bu])||(o=!e[Bu]),r=o}return r}function od(e,t){var r;if(e)r=e.getCookieMgr();else if(t){var o=t.cookieCfg;r=o&&o[Wu]?o[Wu]:nd(t)}return r||(r=function(e,t){var r=nd[Wu]||Qu[Wu];return r||(r=nd[Wu]=nd(e,t),Qu[Wu]=r),r}(t,(e||{})[Zn])),r}function nd(e,t){var r,o,n,i,s,a,l,c,u;e=Ya(e||Qu,null,t).cfg,s=Za(e,(function(t){t[Qn](t.cfg,Yu),o=t.ref(t.cfg,"cookieCfg"),n=o[ks]||"/",i=o[xs],a=!1!==rd(e,o),l=o.getCookie||cd,c=o.setCookie||ud,u=o.delCookie||ud}),t);var d=((r={isEnabled:function(){var r=!1!==rd(e,o)&&a&&id(t),n=Qu[Wu];return r&&n&&d!==n&&(r=ed(n)),r},setEnabled:function(e){a=!1!==e,o[vi]=e},set:function(e,t,r,s,a){var l,u=!1;if(ed(d)&&!function(e,t){return!!(t&&e&&qt(e.blockedCookies)&&-1!==fo(e.blockedCookies,t))||td(e,t)}(o,e)){var p={},b=Io(t||is),f=Xo(b,";");if(-1!==f&&(b=Io(Er(t,f)),p=sd(kr(t,f+1))),Ds(p,xs,s||i,Wt,Dt),!jt(r)){var h=da();if(Dt(p[Vu])){var g=So()+1e3*r;if(g>0){var v=new Date;v.setTime(g),Ds(p,Vu,ad(v,h?qu:Hu)||ad(v,h?qu:Hu)||is,Wt)}}h||Ds(p,"max-age",is+r,null,Dt)}var m=la();m&&"https:"===m[Ri]&&(Ds(p,"secure",null,null,Dt),null===Xu&&(l=(Qr()||{})[Di],Xu=!(Mt(l)&&(Is(l,"CPU iPhone OS 12")||Is(l,"iPad; CPU OS 12")||Is(l,"Macintosh; Intel Mac OS X 10_14")&&Is(l,"Version/")&&Is(l,"Safari")||Is(l,"Macintosh; Intel Mac OS X 10_14")&&Bo(l,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Is(l,"Chrome/5")||Is(l,"Chrome/6")||Is(l,"UnrealEngine")&&!Is(l,"Chrome")||Is(l,"UCBrowser/12")||Is(l,"UCBrowser/11")))),Xu&&Ds(p,"SameSite","None",null,Dt)),Ds(p,ks,a||n,null,Dt),c(e,ld(b,p)),u=!0}return u},get:function(e){var t=is;return ed(d)&&!td(o,e)&&(t=l(e)),t},del:function(e,t){var r=!1;return ed(d)&&(r=d.purge(e,t)),r},purge:function(e,r){var o,n=!1;if(id(t)){var i=((o={})[ks]=r||"/",o[Vu]="Thu, 01 Jan 1970 00:00:01 GMT",o);da()||(i["max-age"]="0"),u(e,ld(is,i)),n=!0}return n}})[yi]=function(e){s&&s.rm(),s=null},r);return d[Wu]=d,d}function id(e){if(null===Ku){Ku=!1,!zu&&Zu();try{var t=zu.v||{};Ku=void 0!==t[Uu]}catch(t){hl(e,2,68,"Cannot access document.cookie - "+Rs(t),{exception:tr(t)})}}return Ku}function sd(e){var t={};return e&&e[Wn]&&bo(Io(e)[ji](";"),(function(e){if(e=Io(e||is)){var r=Xo(e,"=");-1===r?t[e]=null:t[Io(Er(e,r))]=Io(kr(e,r+1))}})),t}function ad(e,t){return Nt(e[t])?e[t]():null}function ld(e,t){var r=e||is;return Qt(t,(function(e,t){r+="; "+e+(jt(t)?is:"="+t)})),r}function cd(e){var t=is;if(!zu&&Zu(),zu.v){var r=zu.v[Uu]||is;Gu!==r&&(Ju=sd(r),Gu=r),t=Io(Ju[e]||is)}return t}function ud(e,t){!zu&&Zu(),zu.v&&(zu.v[Uu]=e+"="+t)}var dd="on",pd="attachEvent",bd="addEventListener",fd="detachEvent",hd="removeEventListener",gd="events",vd="visibilitychange",md="pagehide",yd="unload",wd="beforeunload",_d=$a("aiEvtPageHide"),xd=($a("aiEvtPageShow"),/\.[\.]+/g),kd=/[\.]+$/,Cd=1,Sd=Ia("events"),Ed=/^([^.]*)(?:\.(.+)|)/;function Td(e){return e&&e[Mi]?e[Mi](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,is):e}function Ad(e,t){var r;if(t){var o=is;qt(t)?(o=is,bo(t,(function(e){(e=Td(e))&&("."!==e[0]&&(e="."+e),o+=e)}))):o=Td(t),o&&("."!==o[0]&&(o="."+o),e=(e||is)+o)}var n=Ed.exec(e||is)||[];return(r={})[zi]=n[1],r.ns=(n[2]||is).replace(xd,".").replace(kd,is)[ji](".").sort().join("."),r}function Od(e,t,r){void 0===r&&(r=!0);var o=Sd.get(e,gd,{},r),n=o[t];return n||(n=o[t]=[]),n}function $d(e,t,r,o){e&&t&&t[zi]&&(e[hd]?e[hd](t[zi],r,o):e[fd]&&e[fd](dd+t[zi],r))}function Id(e,t,r,o){for(var n=t[Wn];n--;){var i=t[n];i&&(r.ns&&r.ns!==i.evtName.ns||o&&!o(i)||($d(e,i.evtName,i[qi],i.capture),t[ri](n,1)))}}function Ld(e,t){return t?Ad("xx",qt(t)?[e].concat(t):[e,t]).ns[ji]("."):e}function Rd(e,t,r,o,n){var i;void 0===n&&(n=!1);var s=!1;if(e)try{var a=Ad(t,o);if(s=function(e,t,r,o){var n=!1;return e&&t&&t[zi]&&r&&(e[bd]?(e[bd](t[zi],r,o),n=!0):e[pd]&&(e[pd](dd+t[zi],r),n=!0)),n}(e,a,r,n),s&&Sd.accept(e)){var l=((i={guid:Cd++,evtName:a})[qi]=r,i.capture=n,i);Od(e,a.type)[ti](l)}}catch(e){}return s}function Dd(e,t,r,o,n){if(void 0===n&&(n=!1),e)try{var i=Ad(t,o),s=!1;!function(e,t,r){if(t[zi])Id(e,Od(e,t[zi]),t,r);else{var o=Sd.get(e,gd,{});Qt(o,(function(o,n){Id(e,n,t,r)})),0===lr(o)[Wn]&&Sd.kill(e,gd)}}(e,i,(function(e){return!((!i.ns||r)&&e[qi]!==r||(s=!0,0))})),s||$d(e,i,r,n)}catch(e){}}function jd(e,t,r,o){var n=!1;return t&&e&&e[Wn]>0&&bo(e,(function(e){e&&(r&&-1!==fo(r,e)||(n=function(e,t,r){var o=!1,n=Jr();n&&(o=Rd(n,e,t,r),o=Rd(n.body,e,t,r)||o);var i=Br();return i&&(o=Rd(i,e,t,r)||o),o}(e,t,o)||n))})),n}function Pd(e,t,r){e&&qt(e)&&bo(e,(function(e){e&&function(e,t,r){var o=Jr();o&&(Dd(o,e,t,r),Dd(o.body,e,t,r));var n=Br();n&&Dd(n,e,t,r)}(e,t,r)}))}function Md(e,t,r){var o=Ld(_d,r),n=jd([md],e,t,o);return t&&-1!==fo(t,vd)||(n=jd([vd],(function(t){var r=Br();e&&r&&"hidden"===r.visibilityState&&e(t)}),t,o)||n),!n&&t&&(n=Md(e,null,r)),n}var Nd="ctx",zd="ParentContextKey",qd="ChildrenContextKey",Hd=function(){function e(t,r,o){var n,i=this;i.start=So(),i[bi]=t,i[Ti]=o,i[Fi]=function(){return!1},Nt(r)&&Pr(i,"payload",{g:function(){return!n&&Nt(r)&&(n=r(),r=null),n}}),i[Wi]=function(t){return t?t===e[zd]||t===e[qd]?i[t]:(i[Nd]||{})[t]:null},i[Ki]=function(t,r){t&&(t===e[zd]?(i[t]||(i[Fi]=function(){return!0}),i[t]=r):t===e[qd]?i[t]=r:(i[Nd]=i[Nd]||{})[t]=r)},i[Xi]=function(){var t=0,r=i[Wi](e[qd]);if(qt(r))for(var o=0;o<r[Wn];o++){var n=r[o];n&&(t+=n[fi])}i[fi]=So()-i.start,i.exTime=i[fi]-t,i[Xi]=function(){}}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),Ud=function(){function e(t){this.ctx={},Ln(e,this,(function(e){e.create=function(e,t,r){return new Hd(e,t,r)},e.fire=function(e){e&&(e[Xi](),t&&Nt(t[vs])&&t[vs](e))},e[Ki]=function(t,r){t&&((e[Nd]=e[Nd]||{})[t]=r)},e[Wi]=function(t){return(e[Nd]||{})[t]}}))}return e.__ieDyn=1,e}(),Vd="CoreUtils.doPerf";function Fd(e,t,r,o,n){if(e){var i=e;if(i[_s]&&(i=i[_s]()),i){var s=void 0,a=i[Wi](Vd);try{if(s=i.create(t(),o,n)){if(a&&s[Ki]&&(s[Ki](Hd[zd],a),a[Wi]&&a[Ki])){var l=a[Wi](Hd[qd]);l||(l=[],a[Ki](Hd[qd],l)),l[ti](s)}return i[Ki](Vd,s),r(s)}}catch(e){s&&s[Ki]&&s[Ki]("exception",e)}finally{s&&i.fire(s),i[Ki](Vd,a)}}}return r()}var Bd=Ia("plugin");function Wd(e){return Bd.get(e,"state",{},!0)}function Kd(e,t){for(var r,o=[],n=null,i=e[Ii]();i;){var s=i[di]();if(s){n&&n[Li]&&s[ps]&&n[Li](s);var a=!!(r=Wd(s))[ci];s[ci]&&(a=s[ci]()),a||o[ti](s),n=s,i=i[Ii]()}}bo(o,(function(o){var n=e[as]();o[ii](e.getCfg(),n,t,e[Ii]()),r=Wd(o),o[as]||r[as]||(r[as]=n),r[ci]=!0,delete r[Ci]}))}function Xd(e){return e.sort((function(e,t){var r=0;if(t){var o=t[ps];e[ps]?r=o?e[bs]-t[bs]:1:o&&(r=-1)}else r=e?1:-1;return r}))}var Gd="TelemetryPluginChain",Jd="_hasRun",Qd="_getTelCtx",Yd=0;function Zd(e,t,r,o){var n=null,i=[];t||(t=Ya({},null,r[Zn])),null!==o&&(n=o?function(e,t,r){for(;e;){if(e[di]()===r)return e;e=e[Ii]()}return op([r],t.config||{},t)}(e,r,o):e);var s={_next:function(){var e=n;if(n=e?e[Ii]():null,!e){var t=i;t&&t[Wn]>0&&(bo(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){hl(r[Zn],2,73,"Unexpected Exception during onComplete - "+tr(e))}})),i=[])}return e},ctx:{core:function(){return r},diagLog:function(){return pl(r,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:function(e,r){var o=a(e,!0);return r&&Qt(r,(function(e,r){if(jt(o[e])){var n=t.cfg[e];!n&&jt(n)||(o[e]=n)}ja(t,o,e,r)})),t[Qn](o,r)},getConfig:function(e,r,o){void 0===o&&(o=!1);var n,i=a(e,!1),s=t.cfg;return!i||!i[r]&&jt(i[r])?!s[r]&&jt(s[r])||(n=s[r]):n=i[r],n||!jt(n)?n:o},hasNext:function(){return!!n},getNext:function(){return n},setNext:function(e){n=e},iterate:function(e){for(var t;t=s._next();){var r=t[di]();r&&e(r)}},onComplete:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];e&&i[ti]({func:e,self:Dt(t)?s.ctx:t,args:r})}}};function a(e,r){var o=null,n=t.cfg;if(n&&e){var i=n[us];!i&&r&&(i={}),n[us]=i,(i=t.ref(n,us))&&(!(o=i[e])&&r&&(o={}),i[e]=o,o=t.ref(i,e))}return o}return s}function ep(e,t,r,o){var n=Ya(t),i=Zd(e,n,r,o),s=i.ctx;return s[hi]=function(e){var t=i._next();return t&&t[ps](e,s),!t},s[ki]=function(e,t){return void 0===e&&(e=null),qt(e)&&(e=op(e,n.cfg,r,t)),ep(e||s[Ii](),n.cfg,r,t)},s}function tp(e,t,r){var o=Ya(t.config),n=Zd(e,o,t,r),i=n.ctx;return i[hi]=function(e){var t=n._next();return t&&t[yi](i,e),!t},i[ki]=function(e,r){return void 0===e&&(e=null),qt(e)&&(e=op(e,o.cfg,t,r)),tp(e||i[Ii](),t,r)},i}function rp(e,t,r){var o=Ya(t.config),n=Zd(e,o,t,r).ctx;return n[hi]=function(e){return n.iterate((function(t){Nt(t[$i])&&t[$i](n,e)}))},n[ki]=function(e,r){return void 0===e&&(e=null),qt(e)&&(e=op(e,o.cfg,t,r)),rp(e||n[Ii](),t,r)},n}function op(e,t,r,o){var n=null,i=!o;if(qt(e)&&e[Wn]>0){var s=null;bo(e,(function(e){if(i||o!==e||(i=!0),i&&e&&Nt(e[ps])){var a=function(e,t,r){var o,n=null,i=Nt(e[ps]),s=Nt(e[Li]),a={getPlugin:function(){return e},getNext:function(){return n},processTelemetry:function(o,c){l(c=c||function(){var o;return e&&Nt(e[Qd])&&(o=e[Qd]()),o||(o=ep(a,t,r)),o}(),(function(t){if(!e||!i)return!1;var r=Wd(e);return!r[Ci]&&!r[cs]&&(s&&e[Li](n),e[ps](o,t),!0)}),"processTelemetry",(function(){return{item:o}}),!o.sync)||c[hi](o)},unload:function(t,r){l(t,(function(){var o=!1;if(e){var n=Wd(e),i=e[as]||n[as];!e||i&&i!==t.core()||n[Ci]||(n[as]=null,n[Ci]=!0,n[ci]=!1,e[Ci]&&!0===e[Ci](t,r)&&(o=!0))}return o}),"unload",(function(){}),r[Ti])||t[hi](r)},update:function(t,r){l(t,(function(){var o=!1;if(e){var n=Wd(e),i=e[as]||n[as];!e||i&&i!==t.core()||n[Ci]||e[$i]&&!0===e[$i](t,r)&&(o=!0)}return o}),"update",(function(){}),!1)||t[hi](r)},_id:o=e?e[si]+"-"+e[bs]+"-"+Yd++:"Unknown-0-"+Yd++,_setNext:function(e){n=e}};function l(t,r,i,s,a){var l=!1,c=e?e[si]:Gd,u=t[Jd];return u||(u=t[Jd]={}),t.setNext(n),e&&Fd(t[as](),(function(){return c+":"+i}),(function(){u[o]=!0;try{var e=n?n._id:is;e&&(u[e]=!1),l=r(t)}catch(e){var s=!n||u[n._id];s&&(l=!0),n&&s||hl(t[Ai](),1,73,"Plugin ["+c+"] failed during "+i+" - "+tr(e)+", run flags: "+tr(u))}}),s,a),l}return ur(a)}(e,t,r);n||(n=a),s&&s._setNext(a),s=a}}))}return o&&!n?op([o],t,r):n}var np,ip="_aiHooks",sp=["req","rsp","hkErr","fnErr"];function ap(e,t){if(e)for(var r=0;r<e[Wn]&&!t(e[r],r);r++);}function lp(e,t,r,o,n){n>=0&&n<=2&&ap(e,(function(e,i){var s=e.cbks,a=s[sp[n]];if(a){t.ctx=function(){return o[i]=o[i]||{}};try{a[ei](t.inst,r)}catch(e){var l=t.err;try{var c=s[sp[2]];c&&(t.err=e,c[ei](t.inst,r))}catch(e){}finally{t.err=l}}}}))}function cp(e,t,r,o){var n=null;return e&&(Xt(e,t)?n=e:r&&(n=cp(As(e),t,o,!1))),n}function up(e,t,r,o){var n=r&&r[ip];if(!n){var i=function(e){return function(){var t,r=arguments,o=e.h,n=((t={})[bi]=e.n,t.inst=this,t.ctx=null,t.set=function(e,t){(r=a([],r))[e]=t,s=a([n],r)},t),i=[],s=a([n],r);function a(e,t){return ap(t,(function(t){e[ti](t)})),e}n.evt=Vr("event"),lp(o,n,s,i,0);var l=e.f;if(l)try{n.rslt=l[ei](this,r)}catch(e){throw n.err=e,lp(o,n,s,i,3),e}return lp(o,n,s,i,1),n.rslt}}(n={i:0,n:t,f:r,h:[]});i[ip]=n,e[t]=i}var s={id:n.i,cbks:o,rm:function(){var e=this.id;ap(n.h,(function(t,r){if(t.id===e)return n.h[ri](r,1),1}))}};return n.i++,n.h[ti](s),s}function dp(e,t,r,o,n){if(void 0===o&&(o=!0),e&&t&&r){var i=cp(e,t,o,n);if(i){var s=i[t];if(typeof s===Rn)return up(i,t,s,r)}}return null}function pp(e,t,r,o,n){if(e&&t&&r){var i=cp(e,t,o,n)||e;if(i)return up(i,t,i[t],r)}return null}function bp(){var e=[];return{add:function(t){t&&e[ti](t)},run:function(t,r){bo(e,(function(e){try{e(t,r)}catch(e){hl(t[Ai](),2,73,"Unexpected error calling unload handler - "+tr(e))}})),e=[]}}}function fp(){var e=[];return{run:function(t){var r=e;e=[],bo(r,(function(e){try{(e.rm||e.remove).call(e)}catch(e){hl(t,2,73,"Unloading:"+tr(e))}}))},add:function(t){t&&po(e,t)}}}var hp="getPlugin",gp=((np={})[us]={isVal:Os,v:{}},np),vp=function(){function e(){var t,r,o,n,i,s=this;function a(e){void 0===e&&(e=null);var t=e;if(!t){var n=r||ep(null,{},s[as]);t=o&&o[hp]?n[ki](null,o[hp]):n[ki](null,o)}return t}function l(e,t,n){Ya(e,gp,pl(t)),!n&&t&&(n=t[gi]()[Ii]());var i=o;o&&o[hp]&&(i=o[hp]()),s[as]=t,r=ep(n,e,t,i)}function c(){t=!1,s[as]=null,r=null,o=null,i=fp(),n=bp()}c(),Ln(e,s,(function(e){e[ii]=function(e,r,o,n){l(e,r,n),t=!0},e[Ci]=function(t,r){var s,a=e[as];if(a&&(!t||a===t[as]())){var l,u=!1,d=t||tp(null,a,o&&o[hp]?o[hp]():o),p=r||((s={reason:0})[Ti]=!1,s);return e[Oi]&&!0===e[Oi](d,p,b)?l=!0:b(),l}function b(){u||(u=!0,n.run(d,r),i.run(d[Ai]()),!0===l&&d[hi](p),c())}},e[$i]=function(t,r){var n=e[as];if(n&&(!t||n===t[as]())){var i,s=!1,a=t||rp(null,n,o&&o[hp]?o[hp]():o),c=r||{reason:0};return e._doUpdate&&!0===e._doUpdate(a,c,u)?i=!0:u(),i}function u(){s||(s=!0,l(a.getCfg(),a.core(),a[Ii]()))}},Ms(e,"_addUnloadCb",(function(){return n}),"add"),Ms(e,"_addHook",(function(){return i}),"add"),Pr(e,"_unloadHooks",{g:function(){return i}})})),s[Ai]=function(e){return a(e)[Ai]()},s[ci]=function(){return t},s.setInitialized=function(e){t=e},s[Li]=function(e){o=e},s[hi]=function(e,t){t?t[hi](e):o&&Nt(o[ps])&&o[ps](e,null)},s._getTelCtx=a}return e.__ieDyn=1,e}(),mp="toString",yp="isStorageUseDisabled",wp="_addHook",_p="core",xp="dataType",kp="envelopeType",Cp="diagLog",Sp="track",Ep="trackPageView",Tp="trackPreviousPageVisit",Ap="sendPageViewInternal",Op="startTime",$p="properties",Ip="duration",Lp="sendPageViewPerformanceInternal",Rp="populatePageViewPerformanceEvent",Dp="href",jp="sendExceptionInternal",Pp="exception",Mp="error",Np="_onerror",zp="errorSrc",qp="lineNumber",Hp="columnNumber",Up="message",Vp="CreateAutoException",Fp="addTelemetryInitializer",Bp="autoTrackPageVisitTime",Wp="isBrowserLinkTrackingEnabled",Kp="length",Xp="enableAutoRouteTracking",Gp="enableUnhandledPromiseRejectionTracking",Jp="autoUnhandledPromiseInstrumented",Qp="getEntriesByType",Yp="isPerformanceTimingSupported",Zp="getPerformanceTiming",eb="navigationStart",tb="shouldCollectDuration",rb="isPerformanceTimingDataReady",ob="responseStart",nb="loadEventEnd",ib="responseEnd",sb="connectEnd",ab="pageVisitStartTime",lb=function(){function e(t,r,o,n){Ln(e,this,(function(e){var i,s=null,a=[],l=!1,c=!1;function u(e){o&&o.flush(e,(function(){}))}function d(){s||(s=en((function(){s=null;var e=a.slice(0),t=!1;a=[],bo(e,(function(e){e()?t=!0:a.push(e)})),a[Kp]>0&&d(),t&&u(!0)}),100))}function p(e){a.push(e),d()}o&&(i=o.logger),e[Ep]=function(e,o){var s=e.name;if(jt(s)||"string"!=typeof s){var a=Br();s=e.name=a&&a.title||""}var d=e.uri;if(jt(d)||"string"!=typeof d){var b=la();d=e.uri=b&&b[Dp]||""}if(!c){var f=Uo(),h=f&&f[Qp]&&f[Qp]("navigation");if(h&&h[0]&&!Dt(f.timeOrigin)){var g=h[0].loadEventStart;e[Op]=new Date(f.timeOrigin+g)}else{var v=(o||e[$p]||{})[Ip]||0;e[Op]=new Date((new Date).getTime()-v)}c=!0}if(!n[Yp]())return t[Ap](e,o),u(!0),void(eo()||hl(i,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info."));var m,y,w=!1,_=n[Zp]()[eb];_>0&&(m=Au(_,+new Date),n[tb](m)||(m=void 0)),jt(o)||jt(o[Ip])||(y=o[Ip]),!r&&isNaN(y)||(isNaN(y)&&(o||(o={}),o[Ip]=m),t[Ap](e,o),u(!0),w=!0),o||(o={}),p((function(){var r=!1;try{if(n[rb]()){r=!0;var a={name:s,uri:d};n[Rp](a),a.isValid||w?(w||(o[Ip]=a.durationMs,t[Ap](e,o)),l||(t[Lp](a,o),l=!0)):(o[Ip]=m,t[Ap](e,o))}else _>0&&Au(_,+new Date)>6e4&&(r=!0,w||(o[Ip]=6e4,t[Ap](e,o)))}catch(e){hl(i,1,38,"trackPageView failed on page load calculation: "+Rs(e),{exception:tr(e)})}return r}))},e.teardown=function(e,t){if(s){s.cancel(),s=null;var r=a.slice(0);a=[],bo(r,(function(e){e()}))}}}))}return e.__ieDyn=1,e}(),cb=["googlebot","adsbot-google","apis-google","mediapartners-google"];function ub(){var e=Uo();return e&&!!e.timing}function db(){var e=Uo(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[eb]>0&&t[ob]>0&&t.requestStart>0&&t[nb]>0&&t[ib]>0&&t[sb]>0&&t.domLoading>0}function pb(){return ub()?Uo().timing:null}function bb(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(Qr()||{}).userAgent,o=!1;if(r)for(var n=0;n<cb[Kp];n++)o=o||-1!==Xo(r.toLowerCase(),cb[n]);if(o)return!1;for(n=0;n<e[Kp];n++)if(e[n]<0||e[n]>=36e5)return!1;return!0}var fb,hb=function(){function e(t){var r=pl(t);Ln(e,this,(function(e){e[Rp]=function(t){t.isValid=!1;var o,n=(o=Uo())&&o.getEntriesByType&&o.getEntriesByType("navigation")[Kp]>0?Uo()[Qp]("navigation")[0]:null,i=pb(),s=0,a=0,l=0,c=0,u=0;(n||i)&&(n?(s=n[Ip],a=0===n[Op]?n[sb]:Au(n[Op],n[sb]),l=Au(n.requestStart,n[ob]),c=Au(n[ob],n[ib]),u=Au(n.responseEnd,n[nb])):(s=Au(i[eb],i[nb]),a=Au(i[eb],i[sb]),l=Au(i.requestStart,i[ob]),c=Au(i[ob],i[ib]),u=Au(i.responseEnd,i[nb])),0===s?hl(r,2,10,"error calculating page view performance.",{total:s,network:a,request:l,response:c,dom:u}):e[tb](s,a,l,c,u)?s<Math.floor(a)+Math.floor(l)+Math.floor(c)+Math.floor(u)?hl(r,2,8,"client performance math error.",{total:s,network:a,request:l,response:c,dom:u}):(t.durationMs=s,t.perfTotal=t[Ip]=Hc(s),t.networkConnect=Hc(a),t.sentRequest=Hc(l),t.receivedResponse=Hc(c),t.domProcessing=Hc(u),t.isValid=!0):hl(r,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:s,network:a,request:l,response:c,dom:u}))},e[Zp]=pb,e[Yp]=ub,e[rb]=db,e[tb]=bb}))}return e.__ieDyn=1,e}(),gb=function(){function e(t,r){var o="prevPageVisitData";Ln(e,this,(function(e){e[Tp]=function(e,n){try{var i=function(e,r){var n=null;try{if(n=function(){var e=null;try{if(pc()){var r=So(),n=bc(t,o);n&&ca()&&((e=ua().parse(n)).pageVisitTime=r-e[ab],hc(t,o))}}catch(r){gl(t,"Stop page visit timer failed: "+tr(r)),e=null}return e}(),pc()){null!=bc(t,o)&&rr("Cannot call startPageVisit consecutively without first calling stopPageVisit");var i=ua().stringify(new vb(e,r));fc(t,o,i)}}catch(e){gl(t,"Call to restart failed: "+tr(e)),n=null}return n}(e,n);i&&r(i.pageName,i.pageUrl,i.pageVisitTime)}catch(e){gl(t,"Auto track page visit time failed, metric will not be collected: "+tr(e))}},Pr(e,"_logger",{g:function(){return t}}),Pr(e,"pageVisitTimeTrackingHandler",{g:function(){return r}})}))}return e.__ieDyn=1,e}(),vb=function(e,t){this[ab]=So(),this.pageName=e,this.pageUrl=t},mb=function(e,t){var r=this,o={};r.start=function(t){void 0!==o[t]&&hl(e,2,62,"start was called more than once for this event without calling stop.",{name:t,key:t},!0),o[t]=+new Date},r.stop=function(t,n,i,s){var a=o[t];if(isNaN(a))hl(e,2,63,"stop was called without a corresponding start.",{name:t,key:t},!0);else{var l=Au(a,+new Date);r.action(t,n,l,i,s)}delete o[t],o[t]=void 0}};function yb(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var wb=cr(((fb={sessionRenewalMs:Pu(_b,18e5),sessionExpirationMs:Pu(_b,864e5),disableExceptionTracking:Nu()})[Bp]=Nu(),fb.overridePageViewDuration=Nu(),fb[Gp]=Nu(),fb[Jp]=!1,fb.samplingPercentage=Mu((function(e){return!isNaN(e)&&e>0&&e<=100}),100),fb[yp]=Nu(),fb[Wp]=Nu(),fb[Xp]=Nu(),fb.namePrefix={isVal:Mt,v:Zt(is)},fb.enableDebug=Nu(),fb.disableFlushOnBeforeUnload=Nu(),fb.disableFlushOnUnload=Nu(!1,"disableFlushOnBeforeUnload"),fb));function _b(e,t){return(e=e||t)<6e4&&(e=6e4),+e}var xb,kb,Cb,Sb=function(e){function t(){var r,o,n,i,s,a,l,c,u,d,p,b,f,h,g,v,m,y,w,_=e.call(this)||this;return _.identifier=mc,_.priority=180,_.autoRoutePVDelay=500,Ln(t,_,(function(e,t){var _=t[wp];function x(t,r,o,n,i){e[Cp]().throwInternal(t,r,o,n,i)}function k(){r=null,o=null,n=null,i=null,s=null,a=null,l=!1,c=!1,u=!1,d=!1,p=!1,b=!1,f=!1,h=!1,v=!1;var t=la(!0);m=t&&t[Dp]||"",y=null,w=null,g=null,Pr(e,"config",{g:function(){return g}})}k(),e.getCookieMgr=function(){return od(e[_p])},e.processTelemetry=function(t,r){e.processNext(t,r)},e.trackEvent=function(t,r){try{var o=jc(t,Pc[xp],Pc[kp],e[Cp](),r);e[_p][Sp](o)}catch(e){x(2,39,"trackTrace failed, trace will not be collected: "+Rs(e),{exception:tr(e)})}},e.startTrackEvent=function(e){try{r.start(e)}catch(e){x(1,29,"startTrackEvent failed, event will not be collected: "+Rs(e),{exception:tr(e)})}},e.stopTrackEvent=function(e,t,o){try{r.stop(e,void 0,t,o)}catch(e){x(1,30,"stopTrackEvent failed, event will not be collected: "+Rs(e),{exception:tr(e)})}},e.trackTrace=function(t,r){try{var o=jc(t,Mc[xp],Mc[kp],e[Cp](),r);e[_p][Sp](o)}catch(e){x(2,39,"trackTrace failed, trace will not be collected: "+Rs(e),{exception:tr(e)})}},e.trackMetric=function(t,r){try{var o=jc(t,zc[xp],zc[kp],e[Cp](),r);e[_p][Sp](o)}catch(e){x(1,36,"trackMetric failed, metric will not be collected: "+Rs(e),{exception:tr(e)})}},e[Ep]=function(e,t){try{var r=e||{};n[Ep](r,qn(qn(qn({},r.properties),r.measurements),t)),v&&s[Tp](r.name,r.uri)}catch(e){x(1,37,"trackPageView failed, page view will not be collected: "+Rs(e),{exception:tr(e)})}},e[Ap]=function(t,r,o){var n=Br();if(n&&(t.refUri=void 0===t.refUri?n.referrer:t.refUri),jt(t[Op])){var i=(r||t[$p]||{})[Ip]||0;t[Op]=new Date((new Date).getTime()-i)}var s=jc(t,Uc[xp],Uc[kp],e[Cp](),r,o);e[_p][Sp](s)},e[Lp]=function(t,r,o){var n=jc(t,Vc[xp],Vc[kp],e[Cp](),r,o);e[_p][Sp](n)},e.trackPageViewPerformance=function(t,r){var o=t||{};try{i[Rp](o),e[Lp](o,r)}catch(e){x(1,37,"trackPageViewPerformance failed, page view will not be collected: "+Rs(e),{exception:tr(e)})}},e.startTrackPage=function(e){try{if("string"!=typeof e){var t=Br();e=t&&t.title||""}o.start(e)}catch(e){x(1,31,"startTrackPage failed, page view may not be collected: "+Rs(e),{exception:tr(e)})}},e.stopTrackPage=function(e,t,r,n){try{if("string"!=typeof e){var i=Br();e=i&&i.title||""}if("string"!=typeof t){var a=la();t=a&&a[Dp]||""}o.stop(e,t,r,n),v&&s[Tp](e,t)}catch(e){x(1,32,"stopTrackPage failed, page view will not be collected: "+Rs(e),{exception:tr(e)})}},e[jp]=function(t,r,o){var n=t&&(t[Pp]||t[Mp])||Ft(t)&&t||{name:t&&typeof t,message:t||Sc};t=t||{};var i=jc(new ou(e[Cp](),n,t[$p]||r,t.measurements,t.severityLevel,t.id).toInterface(),ou[xp],ou[kp],e[Cp](),r,o);e[_p][Sp](i)},e.trackException=function(t,r){t&&!t[Pp]&&t[Mp]&&(t[Pp]=t[Mp]);try{e[jp](t,r)}catch(e){x(1,35,"trackException failed, exception will not be collected: "+Rs(e),{exception:tr(e)})}},e[Np]=function(t){var r=t&&t[Mp],o=t&&t.evt;try{if(!o){var n=Jr();n&&(o=n.event)}var i=t&&t.url||(Br()||{}).URL,s=t[zp]||"window.onerror@"+i+":"+(t[qp]||0)+":"+(t[Hp]||0),a={errorSrc:s,url:i,lineNumber:t[qp]||0,columnNumber:t[Hp]||0,message:t[Up]};!function(e,t,r,o,n){return!n&&Mt(e)&&("Script error."===e||"Script error"===e)}(t.message,t.url,t.lineNumber,t.columnNumber,t[Mp])?(t[zp]||(t[zp]=s),e.trackException({exception:t,severityLevel:3},a)):function(t,r){var o=jc(t,ou[xp],ou[kp],e[Cp](),r);e[_p][Sp](o)}(ou[Vp]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",i,t[qp]||0,t[Hp]||0,r,o,null,s),a)}catch(e){var l=r?r.name+", "+r[Up]:"null";x(1,11,"_onError threw exception while logging error, error will not be collected: "+Rs(e),{exception:tr(e),errorString:l})}},e[Fp]=function(t){if(e[_p])return e[_p][Fp](t);a||(a=[]),a.push(t)},e.initialize=function(x,k,C,S){if(!e.isInitialized()){jt(k)&&rr("Error initializing"),t.initialize(x,k,C,S);try{w=Ld($a(e.identifier),k.evtNamespace&&k.evtNamespace()),a&&(bo(a,(function(e){k[Fp](e)})),a=null),function(t){var r=e.identifier,o=e[_p];e[wp](Za(t,(function(){var n,i=ep(null,t,o);g=i.getExtCfg(r,wb),v=g[Bp],t.storagePrefix&&lc(t.storagePrefix),Dt((n=g)[yp])||(n[yp]?(rc=!1,oc=!1):(rc=cc(!0),oc=pc(!0))),l=g[Wp],function(){if(!c&&l){var t=["/browserLinkSignalR/","/__browserLink/"];e[wp](e[Fp]((function(e){if(l&&e.baseType===Lu[xp]){var r=e.baseData;if(r)for(var o=0;o<t[Kp];o++)if(r.target&&Xo(r.target,t[o])>=0)return!1}return!0}))),c=!0}}()})))}(x),i=new hb(e[_p]),n=new lb(e,g.overridePageViewDuration,e[_p],i),s=new gb(e[Cp](),(function(t,r,o){return function(t,r,o){var n={PageName:t,PageUrl:r};e.trackMetric({name:"PageVisitTime",average:o,max:o,min:o,sampleCount:1},n)}(t,r,o)})),(r=new mb(e[Cp](),"trackEvent")).action=function(t,r,o,n,i){n||(n={}),i||(i={}),n.duration=o[mp](),e.trackEvent({name:t,properties:n,measurements:i})},(o=new mb(e[Cp](),"trackPageView")).action=function(t,r,o,n,i){jt(n)&&(n={}),n.duration=o[mp]();var s={name:t,uri:r,properties:n,measurements:i};e[Ap](s,n)},Wr()&&(E=Jr(),T=la(!0),e[wp](Za(g,(function(){(p=g.disableExceptionTracking)||b||g.autoExceptionInstrumented||(_(pp(E,"onerror",{ns:w,rsp:function(t,r,o,n,i,s){p||!0===t.rslt||e[Np](ou[Vp](r,o,n,i,s,t.evt))}},!1)),b=!0)}))),function(t,r){e[wp](Za(g,(function(){f=!0===g[Gp],b=b||g[Jp],f&&!h&&(_(pp(t,"onunhandledrejection",{ns:w,rsp:function(t,o){f&&!0!==t.rslt&&e[Np](ou[Vp](function(e){if(e&&e.reason){var t=e.reason;return!Mt(t)&&Nt(t[mp])?t[mp]():tr(t)}return e||""}(o),r?r[Dp]:"",0,0,o,t.evt))}},!1)),g[Jp]=h=!0)})))}(E,T),function(){var t=Jr(),r=la(!0);e[wp](Za(g,(function(){if(u=!0===g[Xp],t&&u&&!d&&Yr()){var o=Yr();Nt(o.pushState)&&Nt(o.replaceState)&&typeof Event!==jn&&function(t,r,o){if(!d){var n=g.namePrefix||"";_(pp(r,"pushState",{ns:w,rsp:function(){u&&(yb(t,Ru(n+"pushState")),yb(t,Ru(n+"locationchange")))}},!0)),_(pp(r,"replaceState",{ns:w,rsp:function(){u&&(yb(t,Ru(n+"replaceState")),yb(t,Ru(n+"locationchange")))}},!0)),Rd(t,n+"popstate",(function(){u&&yb(t,Ru(n+"locationchange"))}),w),Rd(t,n+"locationchange",(function(){if(y?(m=y,y=o&&o[Dp]||""):y=o&&o[Dp]||"",u){var t=function(){var t=null;if(e[_p]&&e[_p].getTraceCtx&&(t=e[_p].getTraceCtx(!1)),!t){var r=e[_p].getPlugin(gc);if(r){var o=r.plugin.context;o&&(t=Ou(o.telemetryTrace))}}return t}();if(t){t.setTraceId(su());var r="_unknown_";o&&o.pathname&&(r=o.pathname+(o.hash||"")),t.setName(Ac(e[Cp](),r))}en(function(t){e[Ep]({refUri:t,properties:{duration:0}})}.bind(e,m),e.autoRoutePVDelay)}}),w),d=!0}}(t,o,r)}})))}())}catch(t){throw e.setInitialized(!1),t}var E,T}},e._doTeardown=function(e,t){n&&n.teardown(e,t),Dd(window,null,null,w),k()},Pr(e,"_pageViewManager",{g:function(){return n}}),Pr(e,"_pageViewPerformanceManager",{g:function(){return i}}),Pr(e,"_pageVisitTimeManager",{g:function(){return s}}),Pr(e,"_evtNamespace",{g:function(){return"."+w}})})),_}return Un(t,e),t.Version="3.2.0",t}(vp),Eb="Promise",Tb="rejected";function Ab(e,t){return Ob(e,(function(e){return t?t({status:"fulfilled",rejected:!1,value:e}):e}),(function(e){return t?t({status:Tb,rejected:!0,reason:e}):e}))}function Ob(e,t,r,o){var n=e;try{if(Bt(e))(t||r)&&(n=e.then(t,r));else try{t&&(n=t(e))}catch(e){if(!r)throw e;n=r(e)}}finally{o&&function(e,t){var r=e;t&&(Bt(e)?r=e.finally?e.finally(t):e.then((function(e){return t(),e}),(function(e){throw t(),e})):t())}(n,o)}return n}var $b,Ib=!1,Lb=["pending","resolving","resolved",Tb],Rb="dispatchEvent";function Db(e){var t;return e&&e.createEvent&&(t=e.createEvent("Event")),!!t&&t.initEvent}var jb,Pb,Mb,Nb="unhandledRejection",zb=Nb.toLowerCase(),qb=[],Hb=0,Ub=10;function Vb(e){return Nt(e)?e.toString():tr(e)}function Fb(e,t,r){var o,n,i=go(arguments,3),s=0,a=!1,l=[],c=Hb++,u=qb.length>0?qb[qb.length-1]:void 0,d=!1,p=null;function b(t,r){try{qb.push(c),d=!0,p&&p.cancel(),p=null;var n=e((function(e,n){l.push((function(){try{var i=2===s?t:r,a=Dt(i)?o:Nt(i)?i(o):i;Bt(a)?a.then(e,n):i?e(a):3===s?n(a):e(a)}catch(e){n(e)}})),a&&h()}),i);return n}finally{qb.pop()}}function f(){return Lb[s]}function h(){if(l.length>0){var e=l.slice();l=[],d=!0,p&&p.cancel(),p=null,t(e)}}function g(e,t){return function(r){if(s===t){if(2===e&&Bt(r))return s=1,void r.then(g(2,1),g(3,1));s=e,a=!0,o=r,h(),d||3!==e||p||(p=en(v,Ub))}}}function v(){if(!d)if(d=!0,Zr())process.emit(Nb,o,n);else{var e=Jr()||Ur();!jb&&(jb=Nr($t(Vr,[Eb+"RejectionEvent"]).v)),function(e,t,r,o){var n=Br();!$b&&($b=Nr(!!$t(Db,[n]).v));var i=$b.v?n.createEvent("Event"):o?new Event(t):{};if(r&&r(i),$b.v&&i.initEvent(t,!1,!0),i&&e[Rb])e[Rb](i);else{var s=e["on"+t];if(s)s(i);else{var a=Vr("console");a&&(a.error||a.log)(t,tr(i))}}}(e,zb,(function(e){return Pr(e,"promise",{g:function(){return n}}),e.reason=o,e}),!!jb.v)}}return Dr(n={then:b,catch:function(e){return b(void 0,e)},finally:function(e){var t=e,r=e;return Nt(e)&&(t=function(t){return e&&e(),t},r=function(t){throw e&&e(),t}),b(t,r)}},"state",{get:f}),Ib&&function(e,t,r,n){kb=kb||{toString:function(){return"[[PromiseResult]]"}},Cb=Cb||{toString:function(){return"[[PromiseIsHandled]]"}};var i={};i[xb=xb||{toString:function(){return"[[PromiseState]]"}}]={get:t},i[kb]={get:function(){return Rt(o)}},i[Cb]={get:function(){return d}},jr(e,i)}(n,f),oo()&&(n[io(11)]="IPromise"),n.toString=function(){return"IPromise"+(Ib?"["+c+(Dt(u)?"":":"+u)+"]":"")+" "+f()+(a?" - "+Vb(o):"")},function(){Nt(r)||or(Eb+": executor is not a function - "+Vb(r));var e=g(3,0);try{r.call(n,g(2,0),e)}catch(t){e(t)}}(),n}function Bb(e){return function(t){var r=go(arguments,1);return e((function(e,r){try{var o=[],n=1;co(t,(function(t,i){t&&(n++,Ob(t,(function(t){o[i]=t,0==--n&&e(o)}),r))})),0==--n&&e(o)}catch(e){r(e)}}),r)}}function Wb(e,t){return Fb(Wb,function(e){var t=Ut(e)?e:0;return function(e){en((function(){!function(e){bo(e,(function(e){try{e()}catch(e){}}))}(e)}),t)}}(t),e,t)}function Kb(e,t){!Pb&&(Pb=Nr($t(Vr,[Eb]).v||null));var r=Pb.v;if(!r)return Wb(e);Nt(e)||or(Eb+": executor is not a function - "+tr(e));var o=0,n=new r((function(t,r){e((function(e){o=2,t(e)}),(function(e){o=3,r(e)}))}));return Dr(n,"state",{get:function(){return Lb[o]}}),n}function Xb(e,t){return!Mb&&(Mb=Nr(Kb)),Mb.v.call(this,e,t)}var Gb=Bb(Xb);io(11);var Jb="featureOptIn",Qb="onCfgChangeReceive",Yb="nonOverrideConfigs",Zb="scheduleFetchTimeout";function ef(e,t,r,o){try{var n=r>o;n&&(e=null);var i=0==r?function(e,t,r,o,n,i,s){return No(e||{},Ot[wt](arguments))}({},e):e;return i&&t&&!n&&Qt(i,(function(e){var n=t[e];n&&(zt(i[e])&&zt(n)?i[e]=ef(i[e],n,++r,o):delete i[e])})),i}catch(e){}return e}var tf,rf="featureOptIn.",of=".mode",nf=".onCfg",sf=".offCfg";var af=void 0,lf=cr(((tf={syncMode:1,blkCdnCfg:af,customEvtName:af,cfgUrl:af,overrideSyncFn:af,overrideFetchFn:af})[Qb]=af,tf[Zb]=18e5,tf[Yb]={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},tf)),cf=function(e){function t(){var r,o,n,i,s,a,l,c,u,d,p,b,f,h,g,v,m=e.call(this)||this;m.priority=198,m.identifier="AppInsightsCfgSyncPlugin";var y=!1;return Ln(t,m,(function(e,t){function m(){o=null,n=null,i=null,s=null,l=null,c=null,f=null,a=null,d=null,p=null,u=null,g=null,v=null,b=null}function w(t,r){if(t){if(o=t,r&&!y)return x();if(l&&!y)return e.core.updateCfg(t),!0}return!1}function _(){try{var e=Ur();e&&Dd(e,null,null,i)}catch(e){}}function x(e){try{return v&&Nt(v)?v(o,e):function(e,t,r){var o,n,i=Ur();if(i&&i.CustomEvent)try{return o=i,n=function(e,t){var r=null,o={detail:t||null};if(Nt(CustomEvent))r=new CustomEvent(e,o);else{var n=Br();n&&n.createEvent&&(r=n.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,o)}return r}(e,{cfg:t||null,customDetails:r||null}),!!(o&&o.dispatchEvent&&n)&&(o.dispatchEvent(n),!0)}catch(e){}return!1}(n,o,e)}catch(e){}return!1}function k(e){try{return _(),e&&(n=e,function(){if(l){var e=Ur();if(e)try{Rd(e,n,(function(e){var t=e&&e.detail;if(b&&t)b(t);else{var r=t&&t.cfg,o=r&&Lo(r)&&A(r);o&&w(o)}}),i,!0)}catch(e){}}}()),!0}catch(e){}return!1}function C(e,t,r){var o=Ur(),n=o&&o.fetch||null;if(e&&n&&Nt(n))try{var i=new Request(e,{method:"GET"});Ab(fetch(i),(function(e){var o=e.value;e.rejected?T(t,400):o.ok?Ab(o.text(),(function(e){T(t,o.status,e.value,r)})):T(t,o.status,null,r)}))}catch(e){}}function S(e,t,r){try{var o=new XMLHttpRequest;o.open("GET",e),o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&T(t,o.status,o.responseText,r)},o.onerror=function(){T(t,400)},o.ontimeout=function(){T(t,400)},o.send()}catch(e){}}function E(t,r,o){try{if(t>=200&&t<400&&r){p=0;var n=ua();if(n){var i=function(e,t){try{if(!e||!e.enabled)return null;if(!e[Jb])return e.config;var r=e[Jb],o=e.config||{};return Qt(r,(function(r){var n,i,s,a,l,c,u,d=function(e,t,r){var o;if(!t||!t.enabled)return null;var n=(t[Jb]||{})[e]||{mode:1},i=n.mode,s=n.onCfg,a=n.offCfg,l=(r||{})[e]||{mode:2},c=l.mode,u=l.onCfg,d=l.offCfg,p=!!l.blockCdnCfg,b=rf+e+nf,f=rf+e+sf,h=c,g=u,v=d;return p||(4===i||5===i?(h=4==i?3:2,g=s||u,v=a||d):2===i||2===c?(h=2,g=u||s,v=d||a):3===i?(h=3,g=u||s,v=d||a):1===i&&1===c&&(h=1)),(o={})[rf+e+of]=h,o[b]=g,o[f]=v,o}(r,e,t.config[Jb]);jt(d)||(Qt(d,(function(e,t){Fo(o,e,t)})),s=o,a=(i=d)[rf+(n=r)+of],l=i[rf+n+nf],c=i[rf+n+sf],u=null,3===a&&(u=l),2===a&&(u=c),u&&Qt(u,(function(e,t){Fo(s,e,t)})))})),o}catch(e){}return null}(n.parse(r),e.core),s=i&&Lo(i)&&A(i);s&&w(s,o)}}else p++;p<3&&O()}catch(e){}}function T(e,t,r,o){try{e(t,r,o)}catch(e){}}function A(e,t){var r=null;try{e&&(r=ef(e,f,0,5))}catch(e){}return r}function O(){!a&&d&&(a=en((function(){a=null,h(s,E,c)}),d)).unref()}function $(){a&&a.cancel(),a=null,p=0}m(),e.initialize=function(a,m,y,w){t.initialize(a,m,y,w),i=Ld($a(e.identifier),m.evtNamespace&&m.evtNamespace()),function(t){var i=e.identifier,a=e.core;e._addHook(Za(t,(function(){var e=ep(null,t,a);r=e.getExtCfg(i,lf);var d=u;u=!!r.blkCdnCfg,jt(d)||d===u||(!u&&s?h&&h(s,E,c):$()),jt(l)&&(l=2===r.syncMode),jt(c)&&(c=1===r.syncMode);var p=r.customEvtName||"ai_cfgsync";n!==p&&(l?k(p):(_(),n=p)),jt(s)&&(s=r.cfgUrl),s||(o=t,c&&x())}))),v=r.overrideSyncFn,g=r.overrideFetchFn,b=r[Qb],f=r[Yb],d=r[Zb],h=function(){var e=g;return jt(e)&&(fa()?e=C:ha()&&(e=S)),e}(),p=0,s&&!u&&h&&h(s,E,c)}(a)},e.getCfg=function(){return o},e.pause=function(){y=!0,$()},e.resume=function(){y=!1,O()},e.setCfg=function(e){return w(e)},e.sync=function(e){return x(e)},e.updateEventListenerName=function(e){return k(e)},e._doTeardown=function(e,t){_(),$(),m()},e._getDbgPlgTargets=function(){return[c,l,n,u,f]},e.processTelemetry=function(t,r){e.processNext(t,r)}})),m}return Un(t,e),t.__ieDyn=1,t}(vp);function uf(e,t){Dd(e,null,null,t)}var df="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",pf="",bf="&NoResponseBody=true",ff="POST",hf=function(){function e(){var t,r,o,n,i,s,a,l,c,u,d,p,b,f=0;Ln(e,this,(function(e,h){var g=!0;function v(e,t){hl(o,2,26,"Failed to send telemetry.",{message:e}),y(t,400,{})}function m(e){v("No endpoint url is provided for the batch",e)}function y(e,t,r,o){try{e&&e(t,r,o)}catch(e){}}function w(e,t){var r=Qr(),o=e[Ji];if(!o)return m(t),!0;o=e[Ji]+(p?bf:pf);var i=e[Bi],s=n?i:new Blob([i],{type:"text/plain;charset=UTF-8"});return r.sendBeacon(o,s)}function _(e,t,r){var s=e[Bi];try{if(s)if(w(e,t))y(t,200,{},pf);else{var l=i&&i.beaconOnRetry;l&&Nt(l)?l(e,t,w):(a&&a[Qi](e,t,!0),hl(o,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(e){n&&gl(o,"Failed to send telemetry using sendBeacon API. Ex:"+tr(e)),y(t,n?0:400,{},pf)}}function x(e,r,o){var s,a,l,c=e[Yi]||{};!o&&t&&(s=Xb((function(e,t){a=e,l=t}))),n&&o&&e.disableXhrSync&&(o=!1);var u=e[Ji];if(!u)return m(r),void(a&&a(!1));var d=function(e,t,r,o,n,i){function s(e,t,r){try{e[t]=r}catch(e){}}void 0===o&&(o=!1),void 0===n&&(n=!1);var a=new XMLHttpRequest;return o&&s(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",o),r&&s(a,Ws,r),a.open(e,t,!n),r&&s(a,Ws,r),!n&&i&&s(a,"timeout",i),a}(ff,u,g,!0,o,e[Zi]);function p(t){var o=i&&i.xhrOnComplete;if(o&&Nt(o))o(t,r,e);else{var s=Us(t);y(r,t[Hi],Xs(t,n),s)}}return n||d[es]("Content-type","application/json"),bo(lr(c),(function(e){d[es](e,c[e])})),d.onreadystatechange=function(){n||(p(d),4===d.readyState&&a&&a(!0))},d.onload=function(){n&&p(d)},d.onerror=function(e){y(r,n?d[Hi]:400,Xs(d,n),n?pf:Fs(d)),l&&l(e)},d.ontimeout=function(){y(r,n?d[Hi]:500,Xs(d,n),n?pf:Fs(d)),a&&a(!1)},d.send(e[Bi]),s}function k(e,r,o){var s,a,l,c,u=e[Ji],d=e[Bi],h=n?d:new Blob([d],{type:"application/json"}),v=new Headers,w=d[Wn],_=!1,x=!1,k=e[Yi]||{},C=((s={method:ff,body:h})[df]=!0,s);e.headers&&lr(e.headers)[Wn]>0&&(bo(lr(k),(function(e){v.append(e,k[e])})),C[Yi]=v),g&&n&&(C.credentials="include"),o&&(C.keepalive=!0,f+=w,n?2===e._sendReason&&(_=!0,p&&(u+=bf)):_=!0);var S=new Request(u,C);try{S[df]=!0}catch(e){}if(!o&&t&&(a=Xb((function(e,t){l=e,c=t}))),!u)return m(r),void(l&&l(!1));function E(e){y(r,n?0:400,{},n?pf:e)}function T(e,t,o){var n=e[Hi],s=i.fetchOnComplete;s&&Nt(s)?s(e,r,o||pf,t):y(r,n,{},o||pf)}try{Ab(fetch(n?u:S,n?C:null),(function(t){if(o&&(f-=w,w=0),!x)if(x=!0,t.rejected)E(t.reason&&t.reason[Ei]),c&&c(t.reason);else{var r=t.value;try{n||r.ok?n&&!r.body?(T(r,null,pf),l&&l(!0)):Ab(r.text(),(function(t){T(r,e,t.value),l&&l(!0)})):(E(r.statusText),l&&l(!1))}catch(e){E(tr(e)),c&&c(e)}}}))}catch(e){x||(E(tr(e)),c&&c(e))}return _&&!x&&(x=!0,y(r,200,{}),l&&l(!0)),n&&!x&&e[Zi]>0&&b&&b.set((function(){x||(x=!0,y(r,500,{}),l&&l(!0))}),e[Zi]),a}function C(e,t,r){var s=Jr(),a=new XDomainRequest,l=e[Bi];a.onload=function(){var r=Us(a),o=i&&i.xdrOnComplete;o&&Nt(o)?o(a,t,e):y(t,200,{},r)},a.onerror=function(){y(t,400,{},n?pf:Vs(a))},a.ontimeout=function(){y(t,500,{})},a.onprogress=function(){};var c=s&&s.location&&s.location[Ri]||"",u=e[Ji];if(u){if(!n&&0!==u.lastIndexOf(c,0)){var d="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";return hl(o,2,40,". "+d),void v(d,t)}var p=n?u:u[Mi](/^(https?:)/,"");a.open(ff,p),e[Zi]&&(a[Zi]=e[Zi]),a.send(l),n&&r?b&&b.set((function(){a.send(l)}),0):a.send(l)}else m(t)}function S(){f=0,r=!1,t=!1,o=null,n=null,i=null,s=null,a=null,l=!1,c=!1,u=!1,d=!1,p=!1,b=null}S(),e[ii]=function(t,n){o=n,r&&hl(o,1,28,"Sender is already initialized"),e.SetConfig(t),r=!0},e._getDbgPlgTargets=function(){return[r,n,s,t]},e.SetConfig=function(e){try{if(i=e.senderOnCompleteCallBack||{},s=!!e.disableCredentials,n=!!e.isOneDs,t=!!e.enableSendPromise,l=!!e.disableXhr,c=!!e.disableBeacon,u=!!e.disableBeaconSync,b=e.timeWrapper,p=!!e.addNoResponse,d=!!e.disableFetchKeepAlive,a={sendPOST:x},n||(g=!1),s){var r=la();r&&r.protocol&&"file:"===r.protocol[Fn]()&&(g=!1)}return!0}catch(e){}return!1},e.getSyncFetchPayload=function(){return f},e.getSenderInst=function(e,t){return e&&e[Wn]?function(e,t){for(var r,o=0,n=null,i=0;null==n&&i<e[Wn];)o=e[i],l||1!==o?2!==o||!fa(t)||t&&d?3!==o||!ba()||(t?u:c)||(n=_):n=k:(null===ia&&(ia=typeof XDomainRequest!==jn)&&ha()&&(ia=ia&&!aa(Vr(ta),"withCredentials")),ia?n=C:ha()&&(n=x)),i++;return n?((r={_transport:o,_isSync:t})[Qi]=n,r):null}(e,t):null},e.getFallbackInst=function(){return a},e[Oi]=function(e,t){S()}}))}return e.__ieDyn=1,e}();function gf(e,t){if(e&&e[yi])return e[yi](t)}function vf(e,t,r){var o;return r||(o=Xb((function(e){r=e}))),e&&Ho(e)>0?Ab(gf(e[0],t),(function(){vf(go(e,1),t,r)})):r(),o}function mf(e,t){try{if(e&&""!==e){var r=ua().parse(e);if(r&&r[Gi]&&r[Gi]>=r.itemsAccepted&&r.itemsReceived-r.itemsAccepted===r.errors[Wn])return r}}catch(r){hl(t,1,43,"Cannot parse the response. "+(r[bi]||tr(r)),{response:e})}return null}function yf(e){var t="ai."+e+".";return function(e){return t+e}}var wf,_f=yf("application"),xf=yf("device"),kf=yf("location"),Cf=yf("operation"),Sf=yf("session"),Ef=yf("user"),Tf=yf("cloud"),Af=yf("internal"),Of=function(e){function t(){return e.call(this)||this}return Un(t,e),t}((wf={applicationVersion:_f("ver"),applicationBuild:_f("build"),applicationTypeId:_f("typeId"),applicationId:_f("applicationId"),applicationLayer:_f("layer"),deviceId:xf("id"),deviceIp:xf("ip"),deviceLanguage:xf("language"),deviceLocale:xf("locale"),deviceModel:xf("model"),deviceFriendlyName:xf("friendlyName"),deviceNetwork:xf("network"),deviceNetworkName:xf("networkName"),deviceOEMName:xf("oemName"),deviceOS:xf("os"),deviceOSVersion:xf("osVersion"),deviceRoleInstance:xf("roleInstance"),deviceRoleName:xf("roleName"),deviceScreenResolution:xf("screenResolution"),deviceType:xf("type"),deviceMachineName:xf("machineName"),deviceVMName:xf("vmName"),deviceBrowser:xf("browser"),deviceBrowserVersion:xf("browserVersion"),locationIp:kf("ip"),locationCountry:kf("country"),locationProvince:kf("province"),locationCity:kf("city"),operationId:Cf("id"),operationName:Cf("name"),operationParentId:Cf("parentId"),operationRootId:Cf("rootId"),operationSyntheticSource:Cf("syntheticSource"),operationCorrelationVector:Cf("correlationVector"),sessionId:Sf("id"),sessionIsFirst:Sf("isFirst"),sessionIsNew:Sf("isNew"),userAccountAcquisitionDate:Ef("accountAcquisitionDate"),userAccountId:Ef("accountId"),userAgent:Ef("userAgent"),userId:Ef("id"),userStoreRegion:Ef("storeRegion"),userAuthUserId:Ef("authUserId"),userAnonymousUserAcquisitionDate:Ef("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Ef("authUserAcquisitionDate"),cloudName:Tf("name"),cloudRole:Tf("role"),cloudRoleVer:Tf("roleVer"),cloudRoleInstance:Tf("roleInstance"),cloudEnvironment:Tf("environment"),cloudLocation:Tf("location"),cloudDeploymentUnit:Tf("deploymentUnit"),internalNodeName:Af("nodeName"),internalSdkVersion:Af("sdkVersion"),internalAgentVersion:Af("agentVersion"),internalSnippet:Af("snippet"),internalSdkSrc:Af("sdkSrc")},function(){var e=this;wf&&Qt(wf,(function(t,r){e[t]=r}))})),$f="user",If="device",Lf="trace",Rf=new Of,Df=function(e,t,r){var o=this,n=this;n.ver=1,n.sampleRate=100,n.tags={},n[El]=Ac(e,r)||Sc,n.data=t,n.time=Ls(new Date),n.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===o.sampleRate?4:1},tags:1,data:1}},jf=function(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t},Pf="duration",Mf="tags",Nf="deviceType",zf="data",qf="name",Hf="traceID",Uf="length",Vf="stringify",Ff="measurements",Bf="dataType",Wf="envelopeType",Kf="toString",Xf="_get",Gf="enqueue",Jf="count",Qf="eventsLimitInMem",Yf="push",Zf="item",eh="emitLineDelimitedJson",th="clear",rh="createNew",oh="markAsSent",nh="clearSent",ih="bufferOverride",sh="BUFFER_KEY",ah="SENT_BUFFER_KEY",lh="concat",ch="MAX_BUFFER_SIZE",uh="triggerSend",dh="diagLog",ph="initialize",bh="_sender",fh="customHeaders",hh="maxBatchSizeInBytes",gh="onunloadDisableBeacon",vh="isBeaconApiDisabled",mh="alwaysUseXhrOverride",yh="disableXhr",wh="enableSessionStorageBuffer",_h="_buffer",xh="onunloadDisableFetch",kh="disableSendBeaconSplit",Ch="instrumentationKey",Sh="enableSendPromise",Eh="getSenderInst",Th="unloadTransports",Ah="convertUndefined",Oh="maxBatchInterval",$h="serialize",Ih="_onError",Lh="_onPartialSuccess",Rh="_onSuccess",Dh="itemsReceived",jh="itemsAccepted",Ph="oriPayload",Mh="baseType",Nh="sampleRate",zh="eventsSendRequest",qh="getSamplingScore",Hh="baseType",Uh="baseData",Vh="properties",Fh="true";function Bh(e,t,r){return Ds(e,t,r,Wt)}function Wh(e,t,r){jt(e)||Qt(e,(function(e,o){Ut(o)?r[e]=o:Mt(o)?t[e]=o:ca()&&(t[e]=ua()[Vf](o))}))}function Kh(e,t){jt(e)||Qt(e,(function(r,o){e[r]=o||t}))}function Xh(e,t,r,o){var n=new Df(e,o,t);Bh(n,"sampleRate",r[wc]),(r[Uh]||{}).startTime&&(n.time=Ls(r[Uh].startTime)),n.iKey=r.iKey;var i=r.iKey.replace(/-/g,"");return n[qf]=n[qf].replace("{0}",i),function(e,t,r){var o=r[Mf]=r[Mf]||{},n=t.ext=t.ext||{},i=t[Mf]=t[Mf]||[],s=n.user;s&&(Bh(o,Rf.userAuthUserId,s.authId),Bh(o,Rf.userId,s.id||s.localId));var a=n.app;a&&Bh(o,Rf.sessionId,a.sesId);var l=n.device;l&&(Bh(o,Rf.deviceId,l.id||l.localId),Bh(o,Rf[Nf],l.deviceClass),Bh(o,Rf.deviceIp,l.ip),Bh(o,Rf.deviceModel,l.model),Bh(o,Rf[Nf],l[Nf]));var c=t.ext.web;if(c){Bh(o,Rf.deviceLanguage,c.browserLang),Bh(o,Rf.deviceBrowserVersion,c.browserVer),Bh(o,Rf.deviceBrowser,c.browser);var u=r[zf]=r[zf]||{},d=u[Uh]=u[Uh]||{},p=d[Vh]=d[Vh]||{};Bh(p,"domain",c.domain),Bh(p,"isManual",c.isManual?Fh:null),Bh(p,"screenRes",c.screenRes),Bh(p,"userConsent",c.userConsent?Fh:null)}var b=n.os;b&&(Bh(o,Rf.deviceOS,b[qf]),Bh(o,Rf.deviceOSVersion,b.osVer));var f=n.trace;f&&(Bh(o,Rf.operationParentId,f.parentID),Bh(o,Rf.operationName,Ac(e,f[qf])),Bh(o,Rf.operationId,f[Hf]));for(var h={},g=i[Uf]-1;g>=0;g--)Qt(i[g],(function(e,t){h[e]=t})),i.splice(g,1);Qt(i,(function(e,t){h[e]=t}));var v=qn(qn({},o),h);v[Rf.internalSdkVersion]||(v[Rf.internalSdkVersion]=Ac(e,"javascript:".concat(Jh.Version),64)),r[Mf]=zs(v)}(e,r,n),r[Mf]=r[Mf]||[],zs(n)}function Gh(e,t){jt(t[Uh])&&hl(e,1,46,"telemetryItem.baseData cannot be null.")}var Jh={Version:"3.2.0"};function Qh(e,t,r){Gh(e,t);var o={},n={};t[Hh]!==Pc[Bf]&&(o.baseTypeSource=t[Hh]),t[Hh]===Pc[Bf]?(o=t[Uh][Vh]||{},n=t[Uh][Ff]||{}):t[Uh]&&Wh(t[Uh],o,n),Wh(t[zf],o,n),jt(r)||Kh(o,r);var i=t[Uh][qf],s=new Pc(e,i,o,n),a=new jf(Pc[Bf],s);return Xh(e,Pc[Wf],t,a)}var Yh,Zh,eg=function(){function e(t,r){var o=[],n=!1,i=r.maxRetryCnt;this[Xf]=function(){return o},this._set=function(e){return o=e},Ln(e,this,(function(e){e[Gf]=function(s){e[Jf]()>=r[Qf]?n||(hl(t,2,105,"Maximum in-memory buffer size reached: "+e[Jf](),!0),n=!0):(s.cnt=s.cnt||0,!jt(i)&&s.cnt>i||o[Yf](s))},e[Jf]=function(){return o[Uf]},e.size=function(){for(var e=o[Uf],t=0;t<o[Uf];t++)e+=o[t].item[Uf];return r[eh]||(e+=2),e},e[th]=function(){o=[],n=!1},e.getItems=function(){return o.slice(0)},e.batchPayloads=function(e){if(e&&e[Uf]>0){var t=[];return bo(e,(function(e){t[Yf](e[Zf])})),r[eh]?t.join("\n"):"["+t.join(",")+"]"}return null},e[rh]=function(e,r,n){var i=o.slice(0);e=e||t,r=r||{};var s=n?new og(e,r):new tg(e,r);return bo(i,(function(e){s[Gf](e)})),s}}))}return e.__ieDyn=1,e}(),tg=function(e){function t(r,o){var n=e.call(this,r,o)||this;return Ln(t,n,(function(e,t){e[oh]=function(e){t[th]()},e[nh]=function(e){}})),n}return Un(t,e),t.__ieDyn=1,t}(eg),rg=["AI_buffer","AI_sentBuffer"],og=function(e){function t(r,o){var n=e.call(this,r,o)||this,i=!1,s=null==o?void 0:o.namePrefix,a=o[ih]||{getItem:bc,setItem:fc},l=a.getItem,c=a.setItem,u=o.maxRetryCnt;return Ln(t,n,(function(e,o){var n=h(t[sh]),a=h(t[ah]),d=function(){var e=[];try{return bo(rg,(function(t){var r=m(t);if(e=e[lh](r),s){var o=m(s+"_"+t);e=e[lh](o)}})),e}catch(e){hl(r,2,41,"Transfer events from previous buffers: "+Rs(e)+". previous Buffer items can not be removed",{exception:tr(e)})}return[]}(),p=a[lh](d),b=e._set(n[lh](p));function f(e,t){var r=[],o=[];return bo(e,(function(e){o[Yf](e[Zf])})),bo(t,(function(e){Nt(e)||-1!==fo(o,e[Zf])||r[Yf](e)})),r}function h(e){return g(s?s+"_"+e:e)}function g(e){try{var t=l(r,e);if(t){var o=ua().parse(t);if(Mt(o)&&(o=ua().parse(o)),o&&qt(o))return o}}catch(t){hl(r,1,42," storage key: "+e+", "+Rs(t),{exception:tr(t)})}return[]}function v(e,t){var o=e;try{o=s?s+"_"+o:o;var n=JSON[Vf](t);c(r,o,n)}catch(e){c(r,o,JSON[Vf]([])),hl(r,2,41," storage key: "+o+", "+Rs(e)+". Buffer cleared",{exception:tr(e)})}}function m(e){try{var t=g(e),o=[];return bo(t,(function(e){var t={item:e,cnt:0};o[Yf](t)})),hc(r,e),o}catch(e){}return[]}b[Uf]>t[ch]&&(b[Uf]=t[ch]),v(t[ah],[]),v(t[sh],b),e[Gf]=function(n){e[Jf]()>=t[ch]?i||(hl(r,2,67,"Maximum buffer size reached: "+e[Jf](),!0),i=!0):(n.cnt=n.cnt||0,!jt(u)&&n.cnt>u||(o[Gf](n),v(t.BUFFER_KEY,e[Xf]())))},e[th]=function(){o[th](),v(t.BUFFER_KEY,e[Xf]()),v(t[ah],[]),i=!1},e[oh]=function(o){v(t[sh],e._set(f(o,e[Xf]())));var n=h(t[ah]);n instanceof Array&&o instanceof Array&&((n=n[lh](o))[Uf]>t[ch]&&(hl(r,1,67,"Sent buffer reached its maximum size: "+n[Uf],!0),n[Uf]=t[ch]),v(t[ah],n))},e[nh]=function(e){var r=h(t[ah]);r=f(e,r),v(t[ah],r)},e[rh]=function(o,n,i){i=!!i;var s=e[Xf]().slice(0),a=h(t[ah]).slice(0);o=o||r,n=n||{},e[th]();var l=i?new t(o,n):new tg(o,n);return bo(s,(function(e){l[Gf](e)})),i&&l[oh](a),l}})),n}var r;return Un(t,e),r=t,t.VERSION="_1",t.BUFFER_KEY="AI_buffer"+r.VERSION,t.SENT_BUFFER_KEY="AI_sentBuffer"+r.VERSION,t.MAX_BUFFER_SIZE=2e3,t}(eg),ng=function(){function e(t){Ln(e,this,(function(e){function r(e,i){var s="__aiCircularRefCheck",a={};if(!e)return hl(t,1,48,"cannot serialize object because it is null or undefined",{name:i},!0),a;if(e[s])return hl(t,2,50,"Circular reference detected while serializing object",{name:i},!0),a;if(!e.aiDataContract){if("measurements"===i)a=n(e,"number",i);else if("properties"===i)a=n(e,"string",i);else if("tags"===i)a=n(e,"string",i);else if(qt(e))a=o(e,i);else{hl(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:i},!0);try{ua()[Vf](e),a=e}catch(e){hl(t,1,48,e&&Nt(e[Kf])?e[Kf]():"Error serializing object",null,!0)}}return a}return e[s]=!0,Qt(e.aiDataContract,(function(n,s){var l=Nt(s)?1&s():1&s,c=Nt(s)?4&s():4&s,u=2&s,d=void 0!==e[n],p=zt(e[n])&&null!==e[n];if(!l||d||u){if(!c){var b;void 0!==(b=p?u?o(e[n],n):r(e[n],n):e[n])&&(a[n]=b)}}else hl(t,1,24,"Missing required field specification. The field is required but not present on source",{field:n,name:i})})),delete e[s],a}function o(e,o){var n;if(e)if(qt(e)){n=[];for(var i=0;i<e[Uf];i++){var s=r(e[i],o+"["+i+"]");n[Yf](s)}}else hl(t,1,54,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:o},!0);return n}function n(e,r,o){var n;return e&&(n={},Qt(e,(function(e,i){if("string"===r)void 0===i?n[e]="undefined":null===i?n[e]="null":i[Kf]?n[e]=i[Kf]():n[e]="invalid field: toString() is not defined.";else if("number"===r)if(void 0===i)n[e]="undefined";else if(null===i)n[e]="null";else{var s=parseFloat(i);n[e]=s}else n[e]="invalid field: "+o+" is of unknown type.",hl(t,1,n[e],null,!0)}))),n}e[$h]=function(e){var o=r(e,"root");try{return ua()[Vf](o)}catch(e){hl(t,1,48,e&&Nt(e[Kf])?e[Kf]():"Error serializing object",null,!0)}}}))}return e.__ieDyn=1,e}(),ig=function(){function e(){}return e.prototype.getHashCodeScore=function(t){return this.getHashCode(t)/e.INT_MAX_VALUE*100},e.prototype.getHashCode=function(e){if(""===e)return 0;for(;e[Uf]<8;)e=e[lh](e);for(var t=5381,r=0;r<e[Uf];++r)t=(t<<5)+t+e.charCodeAt(r),t|=0;return Math.abs(t)},e.INT_MAX_VALUE=2147483647,e}(),sg=function(){var e=new ig,t=new Of;this[qh]=function(r){return r[Mf]&&r[Mf][t.userId]?e.getHashCodeScore(r[Mf][t.userId]):r.ext&&r.ext.user&&r.ext.user.id?e.getHashCodeScore(r.ext.user.id):r[Mf]&&r[Mf][t.operationId]?e.getHashCodeScore(r[Mf][t.operationId]):r.ext&&r.ext.telemetryTrace&&r.ext.telemetryTrace[Hf]?e.getHashCodeScore(r.ext.telemetryTrace[Hf]):100*Math.random()}},ag=function(){function e(e,t){this.INT_MAX_VALUE=2147483647;var r=t||pl(null);(e>100||e<0)&&(r.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this[Nh]=e,this.samplingScoreGenerator=new sg}return e.prototype.isSampledIn=function(e){var t=this[Nh];return null==t||t>=100||e.baseType===zc[Bf]||this.samplingScoreGenerator[qh](e)<t},e}(),lg=void 0;function cg(e){try{return e.responseText}catch(e){}return null}var ug=cr(((Yh={endpointUrl:Mu(Wt,kc+Cc)})[eh]=Nu(),Yh[Oh]=15e3,Yh[hh]=102400,Yh.disableTelemetry=Nu(),Yh[wh]=Nu(!0),Yh.isRetryDisabled=Nu(),Yh[vh]=Nu(!0),Yh[kh]=Nu(!0),Yh[yh]=Nu(),Yh[xh]=Nu(),Yh[gh]=Nu(),Yh[Ch]=lg,Yh.namePrefix=lg,Yh.samplingPercentage=Mu((function(e){return!isNaN(e)&&e>0&&e<=100}),100),Yh[fh]=lg,Yh[Ah]=lg,Yh[Qf]=1e4,Yh[ih]=!1,Yh.httpXHROverride={isVal:function(e){return e&&e.sendPOST},v:lg},Yh[mh]=Nu(),Yh.transports=lg,Yh.retryCodes=lg,Yh.maxRetryCnt={isVal:Ut,v:10},Yh)),dg=((Zh={})[Pc.dataType]=Qh,Zh[Mc.dataType]=function(e,t,r){Gh(e,t);var o=t[Uh].message,n=t[Uh].severityLevel,i=t[Uh][Vh]||{},s=t[Uh][Ff]||{};Wh(t[zf],i,s),jt(r)||Kh(i,r);var a=new Mc(e,o,n,i,s),l=new jf(Mc[Bf],a);return Xh(e,Mc[Wf],t,l)},Zh[Uc.dataType]=function(e,t,r){var o;Gh(e,t);var n=t[Uh];jt(n)||jt(n[Vh])||jt(n[Vh][Pf])?jt(t[zf])||jt(t[zf][Pf])||(o=t[zf][Pf],delete t[zf][Pf]):(o=n[Vh][Pf],delete n[Vh][Pf]);var i,s=t[Uh];((t.ext||{}).trace||{})[Hf]&&(i=t.ext.trace[Hf]);var a=s.id||i,l=s[qf],c=s.uri,u=s[Vh]||{},d=s[Ff]||{};jt(s.refUri)||(u.refUri=s.refUri),jt(s.pageType)||(u.pageType=s.pageType),jt(s.isLoggedIn)||(u.isLoggedIn=s.isLoggedIn[Kf]()),jt(s[Vh])||Qt(s[Vh],(function(e,t){u[e]=t})),Wh(t[zf],u,d),jt(r)||Kh(u,r);var p=new Uc(e,l,c,o,u,d,a),b=new jf(Uc[Bf],p);return Xh(e,Uc[Wf],t,b)},Zh[Vc.dataType]=function(e,t,r){Gh(e,t);var o=t[Uh],n=o[qf],i=o.uri||o.url,s=o[Vh]||{},a=o[Ff]||{};Wh(t[zf],s,a),jt(r)||Kh(s,r);var l=new Vc(e,n,i,void 0,s,a,o),c=new jf(Vc[Bf],l);return Xh(e,Vc[Wf],t,c)},Zh[ou.dataType]=function(e,t,r){Gh(e,t);var o=t[Uh][Ff]||{},n=t[Uh][Vh]||{};Wh(t[zf],n,o),jt(r)||Kh(n,r);var i=t[Uh],s=ou.CreateFromInterface(e,i,n,o),a=new jf(ou[Bf],s);return Xh(e,ou[Wf],t,a)},Zh[zc.dataType]=function(e,t,r){Gh(e,t);var o=t[Uh],n=o[Vh]||{},i=o[Ff]||{};Wh(t[zf],n,i),jt(r)||Kh(n,r);var s=new zc(e,o[qf],o.average,o.sampleCount,o.min,o.max,o.stdDev,n,i),a=new jf(zc[Bf],s);return Xh(e,zc[Wf],t,a)},Zh[Lu.dataType]=function(e,t,r){Gh(e,t);var o=t[Uh][Ff]||{},n=t[Uh][Vh]||{};Wh(t[zf],n,o),jt(r)||Kh(n,r);var i=t[Uh];if(jt(i))return gl(e,"Invalid input for dependency data"),null;var s=i[Vh]&&i[Vh][xc]?i[Vh][xc]:"GET",a=new Lu(e,i.id,i.target,i[qf],i[Pf],i.success,i.responseCode,s,i.type,i.correlationContext,n,o),l=new jf(Lu[Bf],a);return Xh(e,Lu[Wf],t,l)},Zh),pg=function(e){function t(){var r,o,n,i,s,a,l,c=e.call(this)||this;c.priority=1001,c.identifier=vc;var u,d,p,b,f,h,g,v,m,y,w,_,x,k,C,S,E,T,A,O,$,I,L,R,D,j,P,M=0;return Ln(t,c,(function(e,N){function z(t,o){var n=cg(t);if(!t||n+""!="200"&&""!==n){var i=mf(n);i&&i[Dh]&&i[Dh]>i[jh]&&!k?e[Lh](o,i):e[Ih](o,Vs(t))}else r=0,e[Rh](o,0)}function q(e,t,r){4===e.readyState&&Q(e.status,t,e.responseURL,r,Fs(e),cg(e)||e.response)}function H(e){try{if(e){var t=e[Ph];return t&&t[Uf]?t:null}}catch(e){}return null}function U(t,r){return!(w||(t?t.baseData&&!t[Mh]?(r&&hl(r,1,70,"Cannot send telemetry without baseData and baseType"),1):(t[Mh]||(t[Mh]="EventData"),e[bh]?(o=t,e._sample.isSampledIn(o)?(t[wc]=e._sample[Nh],0):(r&&hl(r,2,33,"Telemetry item was sampled out and not sent",{SampleRate:e._sample[Nh]}),1)):(r&&hl(r,1,28,"Sender was not initialized"),1)):(r&&hl(r,1,7,"Cannot send empty telemetry"),1)));var o}function V(e,r){var o=e.iKey||_,n=t.constructEnvelope(e,o,r,x);if(n){var i=!1;if(e[Mf]&&e[Mf][_c]&&(bo(e[Mf][_c],(function(e){try{e&&!1===e(n)&&(i=!0,gl(r,"Telemetry processor check returns false"))}catch(e){hl(r,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Rs(e),{exception:tr(e)},!0)}})),delete e[Mf][_c]),!i)return n}else hl(r,1,47,"Unable to create an AppInsights envelope")}function F(t){var r="",o=e[dh]();try{var n=U(t,o),i=null;n&&(i=V(t,o)),i&&(r=s[$h](i))}catch(e){}return r}function B(e){var t="";return e&&e[Uf]&&(t="["+e.join(",")+"]"),t}function W(e){var t,r=G();return(t={urlString:b})[zf]=e,t.headers=r,t}function K(t,r,o,n){void 0===n&&(n=!0);var i=X(r),s=t&&t.sendPOST;return s&&i?(n&&e._buffer[oh](r),s(i,(function(t,o,n){return function(t,r,o,n){200===r&&t?e._onSuccess(t,t[Uf]):n&&e[Ih](t,n)}(r,t,0,n)}),!o)):null}function X(t){var r;if(qt(t)&&t[Uf]>0){var o=e[_h].batchPayloads(t),n=G();return(r={})[zf]=o,r.urlString=b,r.headers=n,r.disableXhrSync=$,r.disableFetchKeepAlive=!I,r[Ph]=t,r}return null}function G(){try{var e=l||{};return Cu(b)&&(e[gu[6]]=gu[7]),e}catch(e){}return null}function J(t){var r=t?t[Uf]:0;return e[_h].size()+r>h&&(d&&!d.isOnline()||e[uh](!0,null,10),!0)}function Q(t,o,n,i,s,a){var l=null;if(e._appId||(l=mf(a))&&l.appId&&(e._appId=l.appId),(t<200||t>=300)&&0!==t){if((301===t||307===t||308===t)&&!Y(n))return void e[Ih](o,s);!k&&ie(t)?(re(o),hl(e[dh](),2,40,". Response code "+t+". Will retry to send "+o[Uf]+" items.")):e[Ih](o,s)}else d&&!d.isOnline()?k||(re(o,10),hl(e[dh](),2,40,". Offline - Response Code: ".concat(t,". Offline status: ").concat(!d.isOnline(),". Will retry to send ").concat(o.length," items."))):(Y(n),206===t?(l||(l=mf(a)),l&&!k?e[Lh](o,l):e[Ih](o,s)):(r=0,e[Rh](o,i)))}function Y(e){return!(a>=10||jt(e)||""===e||e===b||(b=e,++a,0))}function Z(e,t){if(!u)return K(j&&j[Eh]([3],!0),e,t);u(e,!1)}function ee(e){try{if(e&&e[Uf])return Mt(e[0])}catch(e){}return null}function te(t,r){var o=null;if(qt(t)){for(var n=t[Uf],i=0;i<t[Uf];i++)n+=t[i].item[Uf];return j.getSyncFetchPayload()+n<=65e3?o=2:ba()?o=3:(o=1,hl(e[dh](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender.")),K(j&&j[Eh]([o],!0),t,r)}return null}function re(t,n){if(void 0===n&&(n=1),t&&0!==t[Uf]){var i=e[_h];i[nh](t),r++;for(var s=0,a=t;s<a.length;s++){var l=a[s];l.cnt=l.cnt||0,l.cnt++,i[Gf](l)}!function(e){var t;if(r<=1)t=10;else{var n=(Math.pow(2,r)-1)/2,i=Math.floor(Math.random()*n*10)+1;i*=e,t=Math.max(Math.min(i,3600),10)}var s=So()+1e3*t;o=s}(n),oe()}}function oe(){if(!i&&!n){var t=o?Math.max(0,o-So()):0,r=Math.max(C,t);i=en((function(){i=null,e[uh](!0,null,1)}),r)}}function ne(){i&&i.cancel(),i=null,o=null}function ie(e){return jt(P)?401===e||408===e||429===e||500===e||502===e||503===e||504===e:P[Uf]&&P.indexOf(e)>-1}function se(){e[bh]=null,e[_h]=null,e._appId=null,e._sample=null,l={},d=null,r=0,o=null,n=!1,i=null,s=null,a=0,M=0,u=null,p=null,b=null,f=null,h=0,g=!1,y=null,w=!1,_=null,x=lg,k=!1,S=null,T=lg,$=!1,I=!1,D=!1,L=null,R=null,j=null,Pr(e,"_senderConfig",{g:function(){return qs({},ug)}})}se(),e.pause=function(){ne(),n=!0},e.resume=function(){n&&(n=!1,o=null,J(),oe())},e.flush=function(t,r,o){if(void 0===t&&(t=!0),!n){ne();try{return e[uh](t,null,o||1)}catch(t){hl(e[dh](),1,22,"flush failed, telemetry will not be collected: "+Rs(t),{exception:tr(t)})}}},e.onunloadFlush=function(){if(!n)if(g||O)try{return e[uh](!0,Z,2)}catch(t){hl(e[dh](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+Rs(t),{exception:tr(t)})}else e.flush(!1)},e.addHeader=function(e,t){l[e]=t},e[ph]=function(t,n,i,M){e.isInitialized()&&hl(e[dh](),1,28,"Sender is already initialized"),N[ph](t,n,i,M);var U=e.identifier;s=new ng(n.logger),r=0,o=null,e[bh]=null,a=0;var V=e[dh]();p=Ld($a("Sender"),n.evtNamespace&&n.evtNamespace()),d=function(e){var t=Br(),r=Qr(),o=!1,n=[],i=1;!r||jt(r.onLine)||r.onLine||(i=2);var s=0,a=d(),l=Ld($a("OfflineListener"),e);try{if(u(Jr())&&(o=!0),t){var c=t.body||t;c.ononline&&u(c)&&(o=!0)}}catch(e){o=!1}function u(e){var t=!1;return e&&(t=Rd(e,"online",b,l))&&Rd(e,"offline",f,l),t}function d(){return 2!==s&&2!==i}function p(){var e=d();a!==e&&(a=e,bo(n,(function(e){var t={isOnline:a,rState:i,uState:s};try{e(t)}catch(e){}})))}function b(){i=1,p()}function f(){i=2,p()}return{isOnline:function(){return a},isListening:function(){return o},unload:function(){var e=Jr();if(e&&o){if(uf(e,l),t){var r=t.body||t;Dt(r.ononline)||uf(r,l)}o=!1}},addListener:function(e){return n[Cl](e),{rm:function(){var t=n.indexOf(e);return t>-1?n.splice(t,1):void 0}}},setOnlineState:function(e){s=e,p()}}}(p),e._addHook(Za(t,(function(t){var r=t.cfg;r.storagePrefix&&lc(r.storagePrefix);var o=ep(null,r,n).getExtCfg(U,ug);Pr(e,"_senderConfig",{g:function(){return o}}),f!==o.endpointUrl&&(b=f=o.endpointUrl),y&&y!==o[fh]&&bo(y,(function(e){delete l[e.header]})),h=o[hh],g=(!1===o[gh]||!1===o[vh])&&ba(),v=!1===o[gh]&&ba(),m=!1===o[vh]&&ba(),O=o[mh],$=!!o[yh],P=o.retryCodes;var i=o[ih],s=!!o[wh]&&(!!i||pc()),a=o.namePrefix,d=s!==S||s&&T!==a||s&&E!==i;if(e[_h]){if(d)try{e._buffer=e._buffer[rh](V,o,s)}catch(t){hl(e[dh](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+Rs(t),{exception:tr(t)})}J()}else e[_h]=s?new og(V,o):new tg(V,o);T=a,S=s,E=i,I=!o[xh]&&fa(!0),D=!!o[kh],e._sample=new ag(o.samplingPercentage,V),function(e,t){var r=t.disableInstrumentationKeyValidation;return!(jt(r)||!r)||new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(e)}(_=o[Ch],r)||hl(V,1,100,"Invalid Instrumentation key "+_),y=o[fh],!Cu(b)&&y&&y[Uf]>0?bo(y,(function(e){c.addHeader(e.header,e.value)})):y=null,A=o[Sh];var p=function(){var t;try{var r={xdrOnComplete:function(e,t,r){var o=H(r);if(o)return z(e,o)},fetchOnComplete:function(e,t,r,o){var n=H(o);if(n)return Q(e.status,n,e.url,n[Uf],e.statusText,r||"")},xhrOnComplete:function(e,t,r){var o=H(r);if(o)return q(e,o,o[Uf])},beaconOnRetry:function(t,r,o){return function(t,r,o){var n=t&&t[Ph];if(D)R&&R(n,!0),hl(e[dh](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var i=[],s=0;s<n[Uf];s++){var a=n[s],l=[a];o(X(l),r)?e._onSuccess(l,l[Uf]):i[Yf](a)}i[Uf]>0&&(R&&R(i,!0),hl(e[dh](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}(t,r,o)}};return(t={})[Sh]=A,t.isOneDs=!1,t.disableCredentials=!1,t[yh]=$,t.disableBeacon=!m,t.disableBeaconSync=!v,t.senderOnCompleteCallBack=r,t}catch(e){}return null}();j?j.SetConfig(p):(j=new hf)[ph](p,V);var M=o.httpXHROverride,N=null,F=null,B=Bs([3,1,2],o.transports);N=j&&j[Eh](B,!1);var W=j&&j.getFallbackInst();L=function(e,t){return K(W,e,t)},R=function(e,t){return K(W,e,t,!1)},N=O?M:N||M||W,e[bh]=function(e,t){return K(N,e,t)},I&&(u=te);var G=Bs([3,1],o[Th]);I||(G=G.filter((function(e){return 2!==e}))),F=j&&j[Eh](G,!0),F=O?M:F||M,(O||o[Th]||!u)&&F&&(u=function(e,t){return K(F,e,t)}),u||(u=L),w=o.disableTelemetry,x=o[Ah]||lg,k=o.isRetryDisabled,C=o[Oh]})))},e.processTelemetry=function(t,r){var o,n=(r=e._getTelCtx(r))[dh]();try{if(!U(t,n))return;var i=V(t,n);if(!i)return;var a=s[$h](i),l=e[_h];J(a);var c=((o={})[Zf]=a,o.cnt=0,o);l[Gf](c),oe()}catch(e){hl(n,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+Rs(e),{exception:tr(e)})}e.processNext(t,r)},e.isCompletelyIdle=function(){return!n&&0===M&&0===e._buffer[Jf]()},e._xhrReadyStateChange=function(e,t,r){if(!ee(t))return q(e,t,r)},e[uh]=function(t,r,o){var i;if(void 0===t&&(t=!0),!n)try{var s=e[_h];if(w)s[th]();else{if(s[Jf]()>0){var a=s.getItems();!function(t,r){var o,n=(o="getNotifyMgr",e.core[o]?e.core[o]():e.core._notificationManager);if(n&&n[zh])try{n[zh](t,r)}catch(t){hl(e[dh](),1,74,"send request notification failed: "+Rs(t),{exception:tr(t)})}}(o||0,t),i=r?r.call(e,a,t):e[bh](a,t)}new Date}ne()}catch(t){var l=pa();(!l||l>9)&&hl(e[dh](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+Rs(t),{exception:tr(t)})}return i},e.getOfflineSupport=function(){var e;return(e={getUrl:function(){return b},createPayload:W})[$h]=F,e.batch=B,e.shouldProcess=function(e){return!!U(e)},e},e._doTeardown=function(t,r){e.onunloadFlush(),gf(d,!1),se()},e[Ih]=function(t,r,o){if(!ee(t))return function(t,r,o){hl(e[dh](),2,26,"Failed to send telemetry.",{message:r}),e._buffer&&e._buffer[nh](t)}(t,r)},e[Lh]=function(t,r){if(!ee(t))return function(t,r){for(var o=[],n=[],i=0,s=r.errors.reverse();i<s.length;i++){var a=s[i],l=t.splice(a.index,1)[0];ie(a.statusCode)?n[Yf](l):o[Yf](l)}t[Uf]>0&&e[Rh](t,r[jh]),o[Uf]>0&&e[Ih](o,Fs(null,["partial success",r[jh],"of",r.itemsReceived].join(" "))),n[Uf]>0&&(re(n),hl(e[dh](),2,40,"Partial success. Delivered: "+t[Uf]+", Failed: "+o[Uf]+". Will retry to send "+n[Uf]+" our of "+r[Dh]+" items"))}(t,r)},e[Rh]=function(t,r){if(!ee(t))return function(t,r){e._buffer&&e._buffer[nh](t)}(t)},e._xdrOnLoad=function(e,t){if(!ee(t))return z(e,t)}})),c}return Un(t,e),t.constructEnvelope=function(e,t,r,o){var n;return n=t===e.iKey||jt(t)?e:qn(qn({},e),{iKey:t}),(dg[n.baseType]||Qh)(r,n,o)},t}(vp);var bg=function(e,t){var r,o,n,i,s,a,l,c=this,u=!1,d=!1;function p(e,t,n,i){if(u){var a=function(e){try{var t=b(e);return(1e6>0?Math.floor(Ca()/va*1000001)>>>0:0)<=t.limit.samplingRate}catch(e){}return!1}(e);if(!a)return;var l=b(e),c=_(e),d=h(l,r,c),p=!1,f=0,v=x(e);try{d&&!v?(f=Math.min(l.limit.maxSendNumber,c[Al]+1),c[Al]=0,p=!0,s[e]=!0,c[Ol]=new Date):(s[e]=d,c[Al]+=1);var y=g(e);m(o,y,c);for(var C=0;C<f;C++)w(e,o,t,n)}catch(e){}return{isThrottled:p,throttleNum:f}}return i&&k(e)[Cl]({msgID:e,message:t,severity:n}),null}function b(e){return n[e]||n[109]}function f(e,t){var r,o,i,s,a;try{var l=t||{},c={};c[$l]=!!l[$l];var u=l[Il]||{};d=(null==u?void 0:u.daysOfMonth)&&(null==u?void 0:u.daysOfMonth[wl])>0,c[Il]=(s=null===(i=(i=u)||{})||void 0===i?void 0:i.monthInterval,a=null==i?void 0:i.dayInterval,jt(s)&&jt(a)&&(i.monthInterval=3,d||(i[Ll]=[28],d=!0)),i={monthInterval:null==i?void 0:i.monthInterval,dayInterval:null==i?void 0:i.dayInterval,daysOfMonth:null==i?void 0:i.daysOfMonth});var p={samplingRate:(null===(r=l.limit)||void 0===r?void 0:r.samplingRate)||100,maxSendNumber:(null===(o=l.limit)||void 0===o?void 0:o.maxSendNumber)||1};c.limit=p,n[e]=c}catch(e){}}function h(e,t,r){if(e&&!e[$l]&&t&&Os(r)){var o=v(),n=r[Rl],i=e[Il],s=1;if(null==i?void 0:i.monthInterval){var a=12*(o.getUTCFullYear()-n.getUTCFullYear())+o.getUTCMonth()-n.getUTCMonth();s=y(i.monthInterval,0,a)}var l=1;if(d)l=fo(i[Ll],o[Dl]());else if(null==i?void 0:i.dayInterval){var c=Math.floor((o.getTime()-n.getTime())/864e5);l=y(i.dayInterval,0,c)}return s>=0&&l>=0}return!1}function g(e,t){var r=Os(t)?t:"";return e?"appInsightsThrottle"+r+"-"+e:null}function v(e){try{if(!e)return new Date;var t=new Date(e);if(!isNaN(t.getDate()))return t}catch(e){}return null}function m(e,t,r){try{return dc(e,t,Io(JSON[jl](r)))}catch(e){}return!1}function y(e,t,r){return e<=0?1:r>=t&&(r-t)%e==0?Math.floor((r-t)/e)+1:-1}function w(e,t,r,o){hl(t,o||1,e,r)}function _(e){try{var t=i[e];if(!t){var r=g(e,a);t=function(e,t,r){try{var o={date:v(),count:0};if(e){var n=JSON.parse(e);return{date:v(n[Rl])||o[Rl],count:n[Al]||o[Al],preTriggerDate:n.preTriggerDate?v(n[Ol]):void 0}}return m(t,r,o),o}catch(e){}return null}(uc(o,r),o,r),i[e]=t}return i[e]}catch(e){}return null}function x(e){var t=s[e];if(jt(t)){t=!1;var r=_(e);r&&(t=function(e){try{if(e){var t=new Date;return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e[Dl]()===t[Dl]()}}catch(e){}return!1}(r[Ol])),s[e]=t}return s[e]}function k(e){return jt((l=l||{})[e])&&(l[e]=[]),l[e]}o=pl(e),s={},i={},l={},n={},f(109),a=Os(t)?t:"",e.addUnloadHook(Za(e.config,(function(e){var t=e.cfg;r=cc(),Qt(t.throttleMgrCfg||{},(function(e,t){f(parseInt(e),t)}))}))),c._getDbgPlgTargets=function(){return[l]},c.getConfig=function(){return n},c.canThrottle=function(e){var t=_(e);return h(b(e),r,t)},c.isTriggered=function(e){return x(e)},c.isReady=function(){return u},c.flush=function(e){try{var t=k(e);if(t&&t[wl]>0){var r=t.slice(0);return l[e]=[],bo(r,(function(e){p(e.msgID,e[Tl],e.severity,!1)})),!0}}catch(e){}return!1},c.flushAll=function(){try{if(l){var e=!0;return Qt(l,(function(t){var r=c.flush(parseInt(t));e=e&&r})),e}}catch(e){}return!1},c.onReadyState=function(e,t){return void 0===t&&(t=!0),(u=!!jt(e)||e)&&t?c.flushAll():null},c.sendMessage=function(e,t,r){return p(e,t,r,!0)}},fg={perfEvtsSendAll:!1};function hg(e){e.h=null;var t=e.cb;e.cb=[],bo(t,(function(e){$t(e.fn,[e.arg])}))}function gg(e,t,r,o){bo(e,(function(e){e&&e[t]&&(r?(r.cb[ti]({fn:o,arg:e}),r.h=r.h||en(hg,0,r)):$t(o,[e]))}))}var vg,mg=function(){function e(t){var r,o;this.listeners=[];var n=[],i={h:null,cb:[]},s=Ya(t,fg);o=s[Yn]((function(e){r=!!e.cfg.perfEvtsSendAll})),Ln(e,this,(function(e){Pr(e,"listeners",{g:function(){return n}}),e[li]=function(e){n[ti](e)},e[ai]=function(e){for(var t=fo(n,e);t>-1;)n[ri](t,1),t=fo(n,e)},e[fs]=function(e){gg(n,fs,i,(function(t){t[fs](e)}))},e[hs]=function(e,t){gg(n,hs,i,(function(r){r[hs](e,t)}))},e[gs]=function(e,t){gg(n,gs,t?i:null,(function(r){r[gs](e,t)}))},e[vs]=function(e){e&&(!r&&e[Fi]()||gg(n,vs,null,(function(t){e[Ti]?en((function(){return t[vs](e)}),0):t[vs](e)})))},e[ms]=function(e){e&&e[Wn]&&gg(n,ms,i,(function(t){t[ms](e)}))},e[ys]=function(e){e&&e[Bi]&&gg(n,ys,i,(function(t){t[ys](e)}))},e[ws]=function(e,t){if(e>0){var r=t||0;gg(n,ws,i,(function(t){t[ws](e,r)}))}},e[yi]=function(e){var t,r=function(){o&&o.rm(),o=null,n=[],i.h&&i.h[ni](),i.h=null,i.cb=[]};if(gg(n,"unload",null,(function(r){var o=r[yi](e);o&&(t||(t=[]),t[ti](o))})),t)return Xb((function(e){return Ab(Gb(t),(function(){r(),e()}))}));r()}}))}return e.__ieDyn=1,e}(),yg=function(e){function t(){var r,o,n=e.call(this)||this;function i(){r=0,o=[]}return n.identifier="TelemetryInitializerPlugin",n.priority=199,i(),Ln(t,n,(function(e,t){e.addTelemetryInitializer=function(e){return function(e,t,r){var o={id:t,fn:r};return po(e,o),{remove:function(){bo(e,(function(t,r){if(t.id===o.id)return e[ri](r,1),-1}))}}}(o,r++,e)},e[ps]=function(t,r){(function(e,t,r){for(var o=!1,n=e[Wn],i=0;i<n;++i){var s=e[i];if(s)try{if(!1===s.fn[ei](null,[t])){o=!0;break}}catch(e){hl(r,2,64,"Telemetry initializer failed: "+Rs(e),{exception:tr(e)},!0)}}return!o})(o,t,r?r[Ai]():e[Ai]())&&e[hi](t,r)},e[Oi]=function(){i()}})),n}return Un(t,e),t.__ieDyn=1,t}(vp),wg="Plugins must provide initialize method",_g="SDK is still unloading...",xg=cr(((vg={cookieCfg:{}})[ds]={rdOnly:!0,ref:!0,v:[]},vg[ss]={rdOnly:!0,ref:!0,v:[]},vg[us]={ref:!0,v:{}},vg[ls]=ns,vg.loggingLevelConsole=0,vg.diagnosticLogInterval=ns,vg));function kg(e,t){return new Ud(t)}function Cg(e,t){var r=!1;return bo(t,(function(t){if(t===e)return r=!0,-1})),r}function Sg(e,t,r,o){r&&Qt(r,(function(r,n){o&&Lo(n)&&Lo(t[r])&&Sg(e,t[r],n,o),o&&Lo(n)&&Lo(t[r])?Sg(e,t[r],n,o):e.set(t,r,n)}))}function Eg(e,t){var r=null,o=-1;return bo(e,(function(e,n){if(e.w===t)return r=e,o=n,-1})),{i:o,l:r}}function Tg(e,t,r,o){return t.add(e[Yn]((function(e){var t=e.cfg.disableDbgExt;!0===t&&o&&(r[ai](o),o=null),r&&!o&&!0!==t&&(o=function(e){if(!el){el={};for(var t=0;t<rl[Wn];t++)el[rl[t]]=nl(rl[t],e)}return el}(e.cfg),r[li](o))}))),o}var Ag=function(){function e(){var t,r,o,n,i,s,a,l,c,u,d,p,b,f,h,g,v,m,y,w,_,x,k,C,S,E,T,A;Ln(e,this,(function(e){function O(e){return E&&E[vi]||A||(e||o&&o.queue[Wn]>0)&&(T||(T=!0,U(t[Yn]((function(e){var t=e.cfg.diagnosticLogInterval;t&&t>0||(t=1e4);var r=!1;E&&(r=E[vi],E[ni]()),E=function(e,t){return Zo(!1,at,Ot[wt](arguments))}(M,t),E.unref(),E[vi]=r})))),E[vi]=!0),E}function $(){var e={};C=[];var t=function(t){t&&bo(t,(function(t){if(t[si]&&t[_i]&&!e[t.identifier]){var r=t[si]+"="+t[_i];C[ti](r),e[t.identifier]=t}}))};t(p),d&&bo(d,(function(e){t(e)})),t(u)}function I(){r=!1,(t=Ya({},xg,e[Zn])).cfg[xi]=1,Pr(e,"config",{g:function(){return t.cfg},s:function(t){e.updateCfg(t,!1)}}),Pr(e,"pluginVersionStringArr",{g:function(){return C||$(),C}}),Pr(e,"pluginVersionString",{g:function(){return S||(C||$(),S=C.join(";")),S||is}}),Pr(e,"logger",{g:function(){return o||(o=new bl(t.cfg),t[Zn]=o),o},s:function(e){t[Zn]=e,o!==e&&(gf(o,!1),o=e)}}),e[Zn]=new bl(t.cfg),k=[];var y=e.config[ds]||[];y.splice(0,y[Wn]),po(y,k),f=new yg,n=[],gf(i,!1),i=null,s=null,a=null,gf(l,!1),l=null,c=null,u=[],d=null,p=null,b=!1,h=null,g=$a("AIBaseCore",!0),v=bp(),w=null,_=null,m=fp(),x=[],S=null,C=null,A=!1,E=null,T=!1}function L(){var r=ep(j(),t.cfg,e);return r[wi](O),r}function R(t){var r=function(e,t,r){var o,n=[],i=[],s={};return bo(r,(function(t){(jt(t)||jt(t[ii]))&&rr(wg);var r=t[bs],o=t[si];t&&r&&(jt(s[r])?s[r]=o:gl(e,"Two extensions have same priority #"+r+" - "+s[r]+", "+o)),!r||r<500?n[ti](t):i[ti](t)})),(o={})[as]=n,o[ss]=i,o}(e[Zn],0,u);c=null,S=null,C=null,p=Xd(po(p=(d||[])[0]||[],r[ss]));var o=po(Xd(r[as]),p);k=ur(o);var n=e.config[ds]||[];n.splice(0,n[Wn]),po(n,k);var i=L();p&&p[Wn]>0&&Kd(i[ki](p),o),Kd(i,o),t&&z(t)}function D(e){var t=null,r=null,o=[];return bo(k,(function(t){if(t[si]===e&&t!==f)return r=t,-1;t.getChannel&&o[ti](t)})),!r&&o[Wn]>0&&bo(o,(function(t){if(!(r=t.getChannel(e)))return-1})),r&&(t={plugin:r,setEnabled:function(e){Wd(r)[cs]=!e},isEnabled:function(){var e=Wd(r);return!e[Ci]&&!e[cs]},remove:function(e,t){var o;void 0===e&&(e=!0);var n=[r],i=((o={reason:1})[Ti]=e,o);P(n,i,(function(e){e&&R({reason:32,removed:n}),t&&t(e)}))}}),t}function j(){if(!c){var r=(k||[]).slice();-1===fo(r,f)&&r[ti](f),c=op(Xd(r),t.cfg,e)}return c}function P(r,o,n){if(r&&r[Wn]>0){var i=tp(op(r,t.cfg,e),e);i[wi]((function(){var e=!1,t=[];bo(u,(function(o,n){Cg(o,r)?e=!0:t[ti](o)})),u=t,S=null,C=null;var o=[];d&&(bo(d,(function(t,n){var i=[];bo(t,(function(t){Cg(t,r)?e=!0:i[ti](t)})),o[ti](i)})),d=o),n&&n(e),O()})),i[hi](o)}else n(!1)}function M(){if(o&&o.queue){var t=o.queue.slice(0);o.queue[Wn]=0,bo(t,(function(t){var r,o=((r={})[bi]=h||"InternalMessageId: "+t[Si],r.iKey=_,r[fi]=Ls(new Date),r.baseType=dl.dataType,r.baseData={message:t[Ei]},r);e.track(o)}))}}function N(e,t,r,o){var n=1,i=!1,s=null;function a(){n--,i&&0===n&&(s&&s[ni](),s=null,t&&t(i),t=null)}return o=o||5e3,p&&p[Wn]>0&&L()[ki](p).iterate((function(t){if(t.flush){n++;var i=!1;t.flush(e,(function(){i=!0,a()}),r)||i||(e&&null==s?s=en((function(){s=null,a()}),o):a())}})),i=!0,a(),!0}function z(t){var r=rp(j(),e);r[wi](O),e._updateHook&&!0===e._updateHook(r,t)||r[hi](t)}function q(t){var r=e[Zn];r?(hl(r,2,73,t),O()):rr(t)}function H(t){var r=e[ui]();r&&r[hs]([t],2)}function U(e){m.add(e)}I(),e._getDbgPlgTargets=function(){return[k]},e[ci]=function(){return r},e[ii]=function(n,l,c,f){var h;b&&rr(_g),e[ci]()&&rr("Core cannot be initialized more than once"),n=(t=Ya(n,xg,c||e[Zn],!1)).cfg,U(t[Yn]((function(e){_=e.cfg.instrumentationKey;var t=e.ref(e.cfg,us);Qt(t,(function(r){e.ref(t,r)})),jt(_)&&rr("Please provide instrumentation key")}))),y=Tg(t,m,(i=f)&&e[ui](),y),U(t[Yn]((function(t){if(t.cfg.enablePerfMgr){var r=t.cfg[ls];h!==r&&(r||(r=kg),js(t.cfg,ls,r),h=r,a=null),s||a||!Nt(r)||(a=r(e,e[ui]()))}else a=null,h=null}))),e[Zn]=c;var g=n[ds];if((u=[])[ti].apply(u,Vn(Vn([],l),g)),d=n[ss],R(null),p&&0!==p[Wn]||rr("No "+ss+" available"),d&&d[Wn]>1){var v=e[di]("TeeChannelController");v&&v.plugin||hl(o,1,28,"TeeChannel required")}!function(e,t,r){bo(t,(function(t){var o=Za(e,t.w,r);delete t.w,t.rm=function(){o.rm()}}))}(n,x,o),x=null,r=!0,e.releaseQueue(),e[pi]()},e.getChannels=function(){var e=[];return p&&bo(p,(function(t){e[ti](t)})),ur(e)},e.track=function(t){Fd(e[_s](),(function(){return"AppInsightsCore:track"}),(function(){null===t&&(H(t),rr("Invalid telemetry item")),!t[bi]&&jt(t[bi])&&(H(t),rr("telemetry name required")),t.iKey=t.iKey||_,t[fi]=t[fi]||Ls(new Date),t.ver=t.ver||"4.0",!b&&e[ci]()?L()[hi](t):n[ti](t)}),(function(){return{item:t}}),!t.sync)},e[gi]=L,e[ui]=function(){return i||(i=new mg(t.cfg),e._notificationManager=i),i},e[li]=function(t){e.getNotifyMgr()[li](t)},e[ai]=function(e){i&&i[ai](e)},e.getCookieMgr=function(){return l||(l=nd(t.cfg,e[Zn])),l},e.setCookieMgr=function(e){l!==e&&(gf(l,!1),l=e)},e[_s]=function(){return s||a||null},e.setPerfMgr=function(e){s=e},e.eventCnt=function(){return n[Wn]},e.releaseQueue=function(){if(r&&n[Wn]>0){var e=n;n=[],bo(e,(function(e){L()[hi](e)}))}},e[pi]=function(e){return h=e||null,A=!1,E&&E[ni](),O(!0)},e[mi]=function(){A=!0,E&&E[ni](),M()},Ns(e,(function(){return f}),["addTelemetryInitializer"]),e[yi]=function(t,n,s){var a;void 0===t&&(t=!0),r||rr("SDK is not initialized"),b&&rr(_g);var c,u=((a={reason:50})[Ti]=t,a.flushComplete=!1,a);t&&!n&&(c=Xb((function(e){n=e})));var d=tp(j(),e);function p(t){u.flushComplete=t,b=!0,v.run(d,u),e[mi](),d[hi](u)}return d[wi]((function(){m.run(e[Zn]),vf([l,i,o],t,(function(){I(),n&&n(u)}))}),e),M(),N(t,p,6,s)||p(!1),c},e[di]=D,e.addPlugin=function(e,t,r,o){if(!e)return o&&o(!1),void q(wg);var n=D(e[si]);if(n&&!t)return o&&o(!1),void q("Plugin ["+e[si]+"] is already loaded!");var i={reason:16};function s(t){u[ti](e),i.added=[e],R(i),o&&o(!0)}if(n){var a=[n.plugin];P(a,{reason:2,isAsync:!!r},(function(e){e?(i.removed=a,i.reason|=32,s()):o&&o(!1)}))}else s()},e.updateCfg=function(r,o){var n;if(void 0===o&&(o=!0),e[ci]()){n={reason:1,cfg:t.cfg,oldCfg:zo({},t.cfg),newConfig:zo({},r),merge:o},r=n.newConfig;var i=t.cfg;r[ds]=i[ds],r[ss]=i[ss]}t._block((function(e){var t=e.cfg;Sg(e,t,r,o),o||Qt(t,(function(o){Gt(r,o)||e.set(t,o,ns)})),e[Qn](t,xg)}),!0),t[Xn](),n&&z(n)},e.evtNamespace=function(){return g},e.flush=N,e.getTraceCtx=function(e){return w||(t={},w={getName:function(){return t[bi]},setName:function(e){t[bi]=e},getTraceId:function(){return t[ts]},setTraceId:function(e){bu(e)&&(t[ts]=e)},getSpanId:function(){return t[rs]},setSpanId:function(e){fu(e)&&(t[rs]=e)},getTraceFlags:function(){return t[os]},setTraceFlags:function(e){t[os]=e}}),w;var t},e.setTraceCtx=function(e){w=e||null},e.addUnloadHook=U,Ms(e,"addUnloadCb",(function(){return v}),"add"),e.onCfgChange=function(o){var n,i,s,a;return r?n=Za(t.cfg,o,e[Zn]):((a=Eg(i=x,s=o).l)||(a={w:s,rm:function(){var e=Eg(i,s);-1!==e.i&&i[ri](e.i,1)}},i[ti](a)),n=a),function(e){return Pr({rm:function(){e.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(e)+">"}})}(n)},e.getWParam=function(){return Fr()||t.cfg.enableWParam?0:-1}}))}return e.__ieDyn=1,e}(),Og="duration",$g="properties",Ig="requestUrl",Lg="inst",Rg="length",Dg="traceID",jg="spanID",Pg="traceFlags",Mg="context",Ng="aborted",zg="traceId",qg="spanId",Hg="_addHook",Ug="core",Vg="includeCorrelationHeaders",Fg="getAbsoluteUrl",Bg="headers",Wg="requestHeaders",Kg="setRequestHeader",Xg="trackDependencyDataInternal",Gg="startTime",Jg="toLowerCase",Qg="enableRequestHeaderTracking",Yg="enableAjaxErrorStatusText",Zg="enableAjaxPerfTracking",ev="maxAjaxCallsPerView",tv="excludeRequestFromAutoTrackingPatterns",rv="addRequestContext",ov="disableAjaxTracking",nv="ajaxPerfLookupDelay",iv="disableFetchTracking",sv="enableResponseHeaderTracking",av="status",lv="statusText",cv="headerMap",uv="openDone",dv="sendDone",pv="requestSentTime",bv="abortDone",fv="getTraceId",hv="getTraceFlags",gv="method",vv="errorStatusText",mv="stateChangeAttached",yv="responseText",wv="responseFinishedTime",_v="CreateTrackItem",xv="response",kv="getAllResponseHeaders",Cv="getPartAProps",Sv="perfMark",Ev="name",Tv="perfTiming",Av="exception",Ov="ajaxDiagnosticsMessage",$v="correlationContext",Iv="ajaxTotalDuration",Lv="eventTraceCtx";function Rv(e,t,r){var o=0,n=e[t],i=e[r];return n&&i&&(o=Au(n,i)),o}function Dv(e,t,r,o,n){var i=0,s=Rv(r,o,n);return s&&(i=jv(e,t,Hc(s))),i}function jv(e,t,r){var o="ajaxPerf",n=0;return e&&t&&r&&((e[o]=e[o]||{})[t]=r,n=1),n}var Pv,Mv=function(){var e=this;e[uv]=!1,e.setRequestHeaderDone=!1,e[dv]=!1,e[bv]=!1,e[mv]=!1},Nv=function(){function e(t,r,o,n){var i,s=this,a=o;s[Sv]=null,s.completed=!1,s.requestHeadersSize=null,s[Wg]=null,s.responseReceivingDuration=null,s.callbackDuration=null,s[Iv]=null,s[Ng]=0,s.pageUrl=null,s[Ig]=null,s.requestSize=0,s[gv]=null,s[av]=null,s[pv]=null,s.responseStartedTime=null,s[wv]=null,s.callbackFinishedTime=null,s.endTime=null,s.xhrMonitoringState=new Mv,s.clientFailure=0,s[Dg]=t,s[jg]=r,s[Pg]=null==n?void 0:n.getTraceFlags(),s[Lv]=n?((i={})[zg]=n[fv](),i[qg]=n.getSpanId(),i[Pg]=n[hv](),i):null,Ln(e,s,(function(e){e.getAbsoluteUrl=function(){return e[Ig]?function(e){var t,r=wu(e);return r&&(t=r.href),t}(e[Ig]):null},e.getPathName=function(){return e[Ig]?Oc(a,(t=e[gv],r=e[Ig],t?t.toUpperCase()+" "+r:r)):null;var t,r},e[_v]=function(t,r,o){var n;if(e.ajaxTotalDuration=Math.round(1e3*Au(e.requestSentTime,e.responseFinishedTime))/1e3,e[Iv]<0)return null;var i=((n={id:"|"+e[Dg]+"."+e[jg],target:e[Fg]()})[Ev]=e.getPathName(),n.type=t,n[Gg]=null,n.duration=e[Iv],n.success=+e[av]>=200&&+e[av]<400,n.responseCode=+e[av],n[$g]={HttpMethod:e[gv]},n),s=i[$g];if(e[Ng]&&(s[Ng]=!0),e[pv]&&(i[Gg]=new Date,i[Gg].setTime(e[pv])),function(e,t){var r=e[Tv],o=t[$g]||{},n=0,i="name",s="Start",a="End",l="domainLookup",c="connect",u="redirect",d="request",p="response",b="startTime",f=l+s,h=l+a,g=c+s,v=c+a,m=d+s,y=d+a,w=p+s,_=p+a,x=u+s,k=u=a,C="transferSize",S="encodedBodySize",E="decodedBodySize",T="serverTiming";if(r){n|=Dv(o,u,r,x,k),n|=Dv(o,l,r,f,h),n|=Dv(o,c,r,g,v),n|=Dv(o,d,r,m,y),n|=Dv(o,p,r,w,_),n|=Dv(o,"networkConnect",r,b,v),n|=Dv(o,"sentRequest",r,m,_);var A=r[Og];A||(A=Rv(r,b,_)||0),n|=jv(o,Og,A),n|=jv(o,"perfTotal",A);var O=r[T];if(O){var $={};bo(O,(function(e,t){var r=$s(e[i]||""+t),o=$[r]||{};Qt(e,(function(e,t){(e!==i&&Mt(t)||Ut(t))&&(o[e]&&(t=o[e]+";"+t),!t&&Mt(t)||(o[e]=t))})),$[r]=o})),n|=jv(o,T,$)}n|=jv(o,C,r[C]),n|=jv(o,S,r[S]),n|=jv(o,E,r[E])}else e[Sv]&&(n|=jv(o,"missing",e.perfAttempts));n&&(t[$g]=o)}(e,i),r&&lr(e.requestHeaders)[Rg]>0&&(s[Wg]=e[Wg]),o){var a=o();if(a){var l=a[$v];if(l&&(i.correlationContext=l),a[cv]&&lr(a.headerMap)[Rg]>0&&(s.responseHeaders=a[cv]),e[vv])if(e[av]>=400){var c=a.type;""!==c&&"text"!==c||(s.responseText=a.responseText?a[lv]+" - "+a.responseText:a[lv]),"json"===c&&(s.responseText=a.response?a[lv]+" - "+JSON.stringify(a[xv]):a[lv])}else 0===e[av]&&(s.responseText=a[lv]||"")}}return i},e[Cv]=function(){var t,r=null,o=e[Lv];if(o&&(o[zg]||o[qg])){var n=(r={})[Lf]=((t={})[Dg]=o[zg],t.parentID=o[qg],t);jt(o[Pg])||(n[Pg]=o[Pg])}return r}}))}return e.__ieDyn=1,e}(),zv="ai.ajxmn.",qv="diagLog",Hv="_ajaxData",Uv="fetch",Vv="Failed to monitor XMLHttpRequest",Fv=", monitoring data for this ajax call ",Bv=Fv+"may be incorrect.",Wv=Fv+"won't be sent.",Kv="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",Xv="Failed to add custom defined request context as configured call back may missing a null check.",Gv="Failed to calculate the duration of the ",Jv=0,Qv=function(e,t){return e&&t&&e[Hv]?(e[Hv].i||{})[t]:null},Yv=function(e,t){var r=!1;if(e){var o=(e[Hv]||{}).xh;o&&bo(o,(function(e){if(e.n===t)return r=!0,-1}))}return r};function Zv(e,t){var r="";try{var o=Qv(e,t);o&&o[Ig]&&(r+="(url: '"+o[Ig]+"')")}catch(e){}return r}function em(e,t,r,o,n){hl(e[qv](),1,t,r,o,n)}function tm(e,t,r,o,n){hl(e[qv](),2,t,r,o,n)}function rm(e,t,r){return function(o){var n;em(e,t,r,((n={ajaxDiagnosticsMessage:Zv(o[Lg],e._ajaxDataId)})[Av]=tr(o.err),n))}}function om(e,t){return e&&t?Xo(e,t):-1}function nm(e,t,r){var o={id:t,fn:r};return e.push(o),{remove:function(){bo(e,(function(t,r){if(t.id===o.id)return e.splice(r,1),-1}))}}}function im(e,t,r,o){var n=!0;return bo(t,(function(t,i){try{!1===t.fn.call(null,r)&&(n=!1)}catch(t){hl(e&&e.logger,1,64,"Dependency "+o+" [#"+i+"] failed: "+Rs(t),{exception:tr(t)},!0)}})),n}var sm="*.blob.core.",am=ur([sm+"windows.net",sm+"chinacloudapi.cn",sm+"cloudapi.de",sm+"usgovcloudapi.net"]),lm=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],cm=ur(((Pv={})[ev]=500,Pv[ov]=!1,Pv[iv]=!1,Pv[tv]=void 0,Pv.disableCorrelationHeaders=!1,Pv.distributedTracingMode=1,Pv.correlationHeaderExcludedDomains=am,Pv.correlationHeaderDomains=void 0,Pv.correlationHeaderExcludePatterns=void 0,Pv.appId=void 0,Pv.enableCorsCorrelation=!1,Pv[Qg]=!1,Pv[sv]=!1,Pv[Yg]=!1,Pv[Zg]=!1,Pv.maxAjaxPerfLookupAttempts=3,Pv[nv]=25,Pv.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],Pv[rv]=void 0,Pv.addIntEndpoints=!0,Pv)),um=function(e){function t(){var r,o,n,i,s,a,l,c,u,d,p,b,f,h,g,v,m,y,w,_,x,k,C,S,E,T,A,O,$,I,L=e.call(this)||this;return L.identifier=t.identifier,L.priority=120,Ln(t,L,(function(e,L){var R=L[Hg];function D(){var t=la();r=!1,o=!1,I=!1,n=t&&t.host&&t.host[Jg](),i=null,s=!1,a=!1,l=0,c=null,u=!1,d=!1,p=null,b=!1,f=0,h=!1,g={},v=!1,m=!1,y=null,w=null,_=null,k=0,C=[],S=[],x=$a("ajaxData"),e._ajaxDataId=x,E=null,T=1,A=1,O=1,$=null}function j(e){var t=!0;return(e||E)&&bo(E,(function(r){if(r[Jg]()===e[Jg]())return t=!1,-1})),t}function P(e,t,r){R(function(e,t,r){return e?dp(e[Pn],t,r,!1):null}(e,t,r))}function M(e,t,r){var o=!1,n=((Mt(t)?t:(t||{}).url||"")||"")[Jg]();if(bo(y,(function(e){var t=e;Mt(e)&&(t=new RegExp(e)),o||(o=t.test(n))})),o)return o;var i=om(n,"?"),s=om(n,"#");return(-1===i||-1!==s&&s<i)&&(i=s),-1!==i&&(n=n.substring(0,i)),jt(e)?jt(t)||(o="object"==typeof t&&!0===t[yc]||!!r&&!0===r[yc]):o=!0===e[yc]||!0===n[yc],!o&&n&&Cu(n)&&(o=!0),o?g[n]||(g[n]=1):g[n]&&(o=!0),o}function N(e,t,r){var n=!0,i=o;return jt(e)||(n=!0===r||!jt(t)),i&&n}function z(){var t=null;return e[Ug]&&e[Ug].getTraceCtx&&(t=e[Ug].getTraceCtx(!1)),!t&&c&&c.telemetryTrace&&(t=Ou(c.telemetryTrace)),t}function q(e,t){if(t[Ig]&&p&&b){var r=Uo();if(r&&Nt(r.mark)){Jv++;var o=p+e+"#"+Jv;r.mark(o);var n=r.getEntriesByName(o);n&&1===n[Rg]&&(t[Sv]=n[0])}}}function H(e,t,r,o){var n=t[Sv],i=Uo(),s=T,a=A,l=t[Ig],c=0;!function u(){try{if(i&&n){c++;for(var d=null,p=i.getEntries(),b=p[Rg]-1;b>=0;b--){var f=p[b];if(f){if("resource"===f.entryType)f.initiatorType!==e||-1===om(f[Ev],l)&&-1===om(l,f[Ev])||(d=f);else if("mark"===f.entryType&&f[Ev]===n[Ev]){t[Tv]=d;break}if(f[Gg]<n[Gg]-1e3)break}}}!n||t[Tv]||c>=s||!1===t.async?(n&&Nt(i.clearMarks)&&i.clearMarks(n[Ev]),t.perfAttempts=c,r()):en(u,a)}catch(e){o(e)}}()}function U(t){var r="";try{jt(t)||(r+="(url: '".concat("string"==typeof t?t:t.url,"')"))}catch(t){em(e,15,"Failed to grab failed fetch diagnostics message",{exception:tr(t)})}return r}function V(t,r,o,n,i,a,l){function c(t,r,n){var i=n||{};i.fetchDiagnosticsMessage=U(o),r&&(i.exception=tr(r)),tm(e,t,Gv+"fetch call"+Wv,i)}i&&(i[wv]=Tu(),i[av]=r,H(Uv,i,(function(){var t,l=i[_v]("Fetch",s,a);try{w&&(t=w({status:r,request:o,response:n}))}catch(t){tm(e,104,Xv)}if(l){void 0!==t&&(l[$g]=qn(qn({},l.properties),t));var u=i[Cv]();F(S,e[Ug],i,l,null,u)}else c(14,null,{requestSentTime:i[pv],responseFinishedTime:i[wv]})}),(function(e){c(18,e,null)})))}function F(t,r,o,n,i,s){var a,l=!0;t[Rg]>0&&(l=im(r,t,((a={item:n})[$g]=i,a.sysProperties=s,a.context=o?o[Mg]:null,a.aborted=!!o&&!!o[Ng],a),"initializer")),l&&e[Xg](n,i,s)}D(),e.initialize=function(n,l,g,k){var C;e.isInitialized()||(L.initialize(n,l,g,k),_=Ld($a("ajax"),l&&l.evtNamespace&&l.evtNamespace()),function(r){e[Hg](Za(r,(function(r){var o=r.cfg,n=ep(null,o,e[Ug]);if(i=n.getExtCfg(t.identifier,cm),O=i.distributedTracingMode,s=i[Qg],a=i[Yg],b=i[Zg],f=i[ev],y=[].concat(i[tv]||[],!1!==i.addIntEndpoints?lm:[]),w=i[rv],d=0===O||1===O,u=1===O||2===O,b){var l=o.instrumentationKey||"unkwn";p=l[Rg]>5?zv+kr(l,l[Rg]-5)+".":zv+l+"."}v=!!i[ov],T=i.maxAjaxPerfLookupAttempts,A=i[nv],E=i.ignoreHeaders,$=i.appId})))}(n),function(e,t){var r,o,n=!1;if(ha()){var i=XMLHttpRequest[Pn];n=!(jt(i)||jt(i.open)||jt(i.send)||jt(i.abort))}var s=pa();if(s&&s<9&&(n=!1),n)try{var a=new XMLHttpRequest,l={xh:[],i:(r={},r[t]={},r)};a[Hv]=l;var c=XMLHttpRequest[Pn].open;XMLHttpRequest[Pn].open=c}catch(t){n=!1,em(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",((o={})[Av]=tr(t),o))}return n}(e,x)&&e[Hg](Za(i,(function(){v=!!i[ov],s=i[Qg],v||o||(P(XMLHttpRequest,"open",{ns:_,req:function(t,r,o,n){if(!v){var i=t[Lg],l=Qv(i,x);!M(i,o)&&N(i,l,!0)&&(l&&l.xhrMonitoringState[uv]||(l=function(t,r,o,n){var i,s=z(),l=s&&s[fv]()||su(),c=Cr(su(),0,16),u=t[Hv]=t[Hv]||{xh:[],i:{}},d=u.i=u.i||{},p=d[x]=d[x]||new Nv(l,c,e[qv](),null===(i=e.core)||void 0===i?void 0:i.getTraceCtx());return p[Pg]=s&&s[hv](),p[gv]=r,p[Ig]=o,p.xhrMonitoringState[uv]=!0,p[Wg]={},p.async=n,p[vv]=a,p}(i,r,o,n)),function(t,r){r.xhrMonitoringState[mv]=Rd(t,"readystatechange",(function(){var o;try{t&&4===t.readyState&&N(t,r)&&function(t){var r=Qv(t,x);function o(r,o){var n=o||{};n.ajaxDiagnosticsMessage=Zv(t,x),r&&(n.exception=tr(r)),tm(e,14,Gv+"ajax call"+Wv,n)}r[wv]=Tu(),r[av]=t[av],H("xmlhttprequest",r,(function(){try{var n=r[_v]("Ajax",s,(function(){var r,o=((r={statusText:t[lv]})[cv]=null,r[$v]=function(t){var r;try{var o=t[kv]();if(null!==o&&-1!==om(o[Jg](),gu[8]))return Eu(t.getResponseHeader(gu[0]))}catch(o){tm(e,18,Kv,((r={})[Ov]=Zv(t,x),r[Av]=tr(o),r))}}(t),r.type=t.responseType,r[yv]=function(e){try{var t=e.responseType;if(""===t||"text"===t)return e[yv]}catch(e){}return null}(t),r.response=t[xv],r);if(h){var n=t[kv]();if(n){var i=Io(n).split(/[\r\n]+/),s={};bo(i,(function(e){var t=e.split(": "),r=t.shift(),o=t.join(": ");j(r)&&(s[r]=o)})),o[cv]=s}}return o})),i=void 0;try{w&&(i=w({status:t[av],xhr:t}))}catch(t){tm(e,104,Xv)}if(n){void 0!==i&&(n[$g]=qn(qn({},n.properties),i));var a=r[Cv]();F(S,e[Ug],r,n,null,a)}else o(null,{requestSentTime:r[pv],responseFinishedTime:r[wv]})}finally{try{var l=(t[Hv]||{i:{}}).i||{};l[x]&&(l[x]=null)}catch(e){}}}),(function(e){o(e,null)}))}(t)}catch(r){var n=tr(r);n&&-1!==om(n[Jg](),"c00c023f")||em(e,16,Vv+" 'readystatechange' event handler"+Bv,((o={})[Ov]=Zv(t,x),o[Av]=n,o))}}),_)}(i,l))}},hkErr:rm(e,15,Vv+".open"+Bv)}),P(XMLHttpRequest,"send",{ns:_,req:function(t,r){if(!v){var o=t[Lg],n=Qv(o,x);N(o,n)&&!n.xhrMonitoringState[dv]&&(q("xhr",n),n[pv]=Tu(),e[Vg](n,void 0,void 0,o),n.xhrMonitoringState[dv]=!0)}},hkErr:rm(e,17,Vv+Bv)}),P(XMLHttpRequest,"abort",{ns:_,req:function(e){if(!v){var t=e[Lg],r=Qv(t,x);N(t,r)&&!r.xhrMonitoringState[bv]&&(r[Ng]=1,r.xhrMonitoringState[bv]=!0)}},hkErr:rm(e,13,Vv+".abort"+Bv)}),P(XMLHttpRequest,"setRequestHeader",{ns:_,req:function(e,t,r){if(!v){var o=e[Lg],n=Qv(o,x);n&&N(o,n)&&(function(e,t,r){if(e){var o=(e[Hv]||{}).xh;o&&o.push({n:t,v:r})}}(o,t,r),s&&j(t)&&n&&(n[Wg][t]=r))}},hkErr:rm(e,71,Vv+".setRequestHeader"+Bv)}),o=!0)}))),function(){var t,n=!(t=Ur())||jt(t.Request)||jt(t.Request[Pn])||jt(t[Uv])?null:t[Uv];if(n){var l=Ur(),c=n.polyfill;e[Hg](Za(i,(function(){m=!!i[iv],h=i[sv],m||r?c&&!I&&(R(dp(l,Uv,{ns:_,req:function(e,t,r){M(null,t,r)}})),I=!0):(R(dp(l,Uv,{ns:_,req:function(t,n,i){var l;if(!m&&r&&!M(null,n,i)&&(!c||!o)){var u=t.ctx();l=function(t,r){var o,n,i=z(),l=i&&i[fv]()||su(),c=Cr(su(),0,16),u=new Nv(l,c,e[qv](),null===(o=e.core)||void 0===o?void 0:o.getTraceCtx());if(u[Pg]=i&&i[hv](),u[pv]=Tu(),u[vv]=a,""===(n=t instanceof Request?(t||{}).url||"":t)){var d=la();d&&d.href&&(n=Vo(d.href,"#")[0])}u[Ig]=n;var p="GET";r&&r[gv]?p=r[gv]:t&&t instanceof Request&&(p=t[gv]),u[gv]=p;var b={};return s&&new Headers((r?r[Bg]:0)||t instanceof Request&&t[Bg]||{}).forEach((function(e,t){j(t)&&(b[t]=e)})),u[Wg]=b,q(Uv,u),u}(n,i);var d=e[Vg](l,n,i);d!==i&&t.set(1,d),u.data=l}},rsp:function(t,r){if(!m){var o=t.ctx().data;o&&(t.rslt=t.rslt.then((function(t){return V(0,(t||{})[av],r,t,o,(function(){var r,o=((r={statusText:(t||{})[lv]})[cv]=null,r[$v]=function(t){var r;if(t&&t[Bg])try{return Eu(t[Bg].get(gu[0]))}catch(o){tm(e,18,Kv,((r={fetchDiagnosticsMessage:U(t)})[Av]=tr(o),r))}}(t),r);if(h&&t){var n={};t.headers.forEach((function(e,t){j(t)&&(n[t]=e)})),o[cv]=n}return o})),t})).catch((function(e){throw V(0,0,r,null,o,null,e.message||tr(e)),e})))}},hkErr:rm(e,15,"Failed to monitor Window.fetch"+Bv)},!0,eo())),r=!0)}))),c&&(l[Uv].polyfill=c)}}(),(C=e[Ug].getPlugin(gc))&&(c=C.plugin[Mg]))},e._doTeardown=function(){D()},e.trackDependencyData=function(t,r){F(S,e[Ug],null,t,r)},e[Vg]=function(t,r,o,a){var l=e._currentWindowHost||n;if(function(e,t,r,o,n,i){var s;if(e[Rg]>0){var a=((s={})[Ug]=t,s.xhr=o,s.input=n,s.init=i,s.traceId=r[Dg],s.spanId=r[jg],s.traceFlags=r[Pg],s.context=r[Mg]||{},s.aborted=!!r[Ng],s);im(t,e,a,"listener"),r[Dg]=a[zg],r[jg]=a[qg],r[Pg]=a[Pg],r[Mg]=a[Mg]}}(C,e[Ug],t,a,r,o),r||""===r){if(Su(i,t[Fg](),l)){o||(o={});var p=new Headers(o[Bg]||r instanceof Request&&r[Bg]||{});if(d){var b="|"+t[Dg]+"."+t[jg];p.set(gu[3],b),s&&(t[Wg][gu[3]]=b)}if((h=$||c&&c.appId())&&(p.set(gu[0],gu[2]+h),s&&(t[Wg][gu[0]]=gu[2]+h)),u){jt(g=t[Pg])&&(g=1);var f=hu(pu(t[Dg],t[jg],g));p.set(gu[4],f),s&&(t[Wg][gu[4]]=f)}o[Bg]=p}return o}if(a){var h,g;if(Su(i,t[Fg](),l))d&&(Yv(a,gu[3])?tm(e,71,"Unable to set ["+gu[3]+"] as it has already been set by another instance"):(b="|"+t[Dg]+"."+t[jg],a[Kg](gu[3],b),s&&(t[Wg][gu[3]]=b))),(h=$||c&&c.appId())&&(Yv(a,gu[0])?tm(e,71,"Unable to set ["+gu[0]+"] as it has already been set by another instance"):(a[Kg](gu[0],gu[2]+h),s&&(t[Wg][gu[0]]=gu[2]+h))),u&&(jt(g=t[Pg])&&(g=1),Yv(a,gu[4])?tm(e,71,"Unable to set ["+gu[4]+"] as it has already been set by another instance"):(f=hu(pu(t[Dg],t[jg],g)),a[Kg](gu[4],f),s&&(t[Wg][gu[4]]=f)));return a}},e[Xg]=function(t,r,o){if(-1===f||l<f){2!==O&&1!==O||"string"!=typeof t.id||"."===t.id[t.id[Rg]-1]||(t.id+="."),jt(t[Gg])&&(t[Gg]=new Date);var n=jc(t,Lu.dataType,Lu.envelopeType,e[qv](),r,o);e[Ug].track(n)}else l===f&&em(e,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++l},e.addDependencyListener=function(e){return nm(C,k++,e)},e.addDependencyInitializer=function(e){return nm(S,k++,e)}})),L}return Un(t,e),t.prototype.processTelemetry=function(e,t){this.processNext(e,t)},t.prototype.addDependencyInitializer=function(e){return null},t.identifier="AjaxDependencyPlugin",t}(vp),dm=function(){},pm=function(){this.id="browser",this.deviceClass="Browser"},bm=function(e,t){var r=this,o=Za(e,(function(){var t=e.sdkExtension;r.sdkVersion=(t?t+"_":"")+"javascript:3.2.0"}));t&&t.add(o)},fm=function(){},hm="sessionManager",gm="update",vm="isUserCookieSet",mm="isNewUser",ym="getTraceCtx",wm="telemetryTrace",_m="applySessionContext",xm="applyApplicationContext",km="applyDeviceContext",Cm="applyOperationContext",Sm="applyUserContext",Em="applyOperatingSystemContxt",Tm="applyLocationContext",Am="applyInternalContext",Om="accountId",$m="getSessionId",Im="namePrefix",Lm="userCookiePostfix",Rm="idLength",Dm="getNewId",jm="length",Pm="automaticSession",Mm="authenticatedId",Nm="acquisitionDate",zm="renewalDate",qm="join",Hm="cookieSeparator",Um="authUserCookieName",Vm=function(){},Fm=function(){function e(t,r,o){var n,i,s,a,l=pl(r),c=od(r);Ln(e,this,(function(e){t||(t={});var r=Za(t,(function(e){s=t.sessionExpirationMs||864e5,a=t.sessionRenewalMs||18e5;var r=t.sessionCookiePostfix||t[Im]||"";n="ai_session"+r}));function u(e,t){var r=!1,o=", session will be reset",n=t.split("|");if(n[jm]>=2)try{var i=+n[1]||0,s=+n[2]||0;isNaN(i)||i<=0?hl(l,2,27,"AI session acquisition date is 0"+o):isNaN(s)||s<=0?hl(l,2,27,"AI session renewal date is 0"+o):n[0]&&(e.id=n[0],e[Nm]=i,e[zm]=s,r=!0)}catch(e){hl(l,1,9,"Error parsing ai_session value ["+(t||"")+"]"+o+" - "+Rs(e),{exception:tr(e)})}return r}function d(e,r){var o=e[Nm];e[zm]=r;var l,u=a,d=o+s-r,p=[e.id,o,r];l=d<u?d/1e3:u/1e3;var b=t.cookieDomain||null;c.set(n,p[qm]("|"),s>0?l:null,b),i=r}o&&o.add(r),e[Pm]=new Vm,e[gm]=function(){var r=So(),o=!1,p=e[Pm];if(p.id||(o=!function(e,t){var r=!1,o=c.get(n);if(o&&Nt(o.split))r=u(e,o);else{var i=uc(l,n);i&&(r=u(e,i))}return r||!!e.id}(p)),!o&&s>0){var b=r-p[Nm],f=r-p[zm];o=(o=(o=b<0||f<0)||b>s)||f>a}o?function(r){var o=t[Dm]||Sa;e.automaticSession.id=o(t[Rm]||22),e[Pm][Nm]=r,d(e[Pm],r),cc()||hl(l,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}(r):(!i||r-i>6e4)&&d(p,r)},e.backup=function(){var t,r,o,i=e[Pm];t=i.id,r=i[Nm],o=i[zm],dc(l,n,[t,r,o][qm]("|"))}}))}return e.__ieDyn=1,e}(),Bm=function(e,t,r,o){var n=this;n.traceID=e||su(),n.parentID=t;var i=la();!r&&i&&i.pathname&&(r=i.pathname),n.name=Ac(o,r)};function Wm(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))}var Km=function(){function e(t,r,o){this.isNewUser=!1,this.isUserCookieSet=!1;var n,i=pl(r),s=od(r);Ln(e,this,(function(r){Pr(r,"config",{g:function(){return t}});var a=Za(t,(function(){var o=t[Lm]||"";n=e.userCookieName+o;var a=s.get(n);if(a){r[mm]=!1;var d=a.split(e[Hm]);d[jm]>0&&(r.id=d[0],r[vm]=!!r.id)}if(!r.id){r.id=l(),u(c(r.id)[qm](e[Hm]));var p=(t[Im]||"")+"ai_session";!function(e,t){var r=ic();if(null!==r)try{return r[Sl](t),!0}catch(t){rc=!1,hl(e,2,5,"Browser failed removal of local storage item. "+Rs(t),{exception:tr(t)})}}(i,p)}r[Om]=t[Om]||void 0;var b=s.get(e[Um]);if(b){var f=(b=decodeURI(b)).split(e[Hm]);f[0]&&(r[Mm]=f[0]),f[jm]>1&&f[1]&&(r[Om]=f[1])}}));function l(){var e=t||{};return(e[Dm]||Sa)(e[Rm]?t[Rm]:22)}function c(e){var t=Ls(new Date);return r.accountAcquisitionDate=t,r[mm]=!0,[e,t]}function u(e){r[vm]=s.set(n,e,31536e3)}o&&o.add(a),r.setAuthenticatedUserContext=function(t,o,n){if(void 0===n&&(n=!1),!Wm(t)||o&&!Wm(o))hl(i,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{r[Mm]=t;var a=r[Mm];o&&(r[Om]=o,a=[r[Mm],r.accountId][qm](e[Hm])),n&&s.set(e[Um],encodeURI(a))}},r.clearAuthenticatedUserContext=function(){r[Mm]=null,r[Om]=null,s.del(e[Um])},r[gm]=function(t){r.id===t&&r[vm]||u(c(t||l())[qm](e[Hm]))}}))}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),Xm="ext",Gm="tags";function Jm(e,t){e&&e[t]&&0===lr(e[t])[jm]&&delete e[t]}function Qm(){return null}var Ym,Zm,ey=function(){function e(t,r,o,n){var i=this,s=t.logger;Ln(e,this,(function(e){if(e.appId=Qm,e[$m]=Qm,e.application=new dm,e.internal=new bm(r,n),Wr()){e[hm]=new Fm(r,t,n),e.device=new pm,e.location=new fm,e.user=new Km(r,t,n);var a,l=void 0,c=void 0;o&&(l=o.getTraceId(),c=o.getSpanId(),a=o.getName()),e[wm]=new Bm(l,c,a,s),e.session=new Vm}e[$m]=function(){var t=e.session,r=null;if(t&&Mt(t.id))r=t.id;else{var o=(e[hm]||{})[Pm];r=o&&Mt(o.id)?o.id:null}return r},e[_m]=function(t,r){Ds(js(t.ext,"app"),"sesId",e[$m](),Mt)},e[Em]=function(t,r){Ds(t.ext,"os",e.os)},e[xm]=function(t,r){var o=e.application;if(o){var n=js(t,Gm);Ds(n,Rf.applicationVersion,o.ver,Mt),Ds(n,Rf.applicationBuild,o.build,Mt)}},e[km]=function(t,r){var o=e.device;if(o){var n=js(js(t,Xm),If);Ds(n,"localId",o.id,Mt),Ds(n,"ip",o.ip,Mt),Ds(n,"model",o.model,Mt),Ds(n,"deviceClass",o.deviceClass,Mt)}},e[Am]=function(t,r){var o=e.internal;if(o){var n=js(t,Gm);Ds(n,Rf.internalAgentVersion,o.agentVersion,Mt),Ds(n,Rf.internalSdkVersion,Ac(s,o.sdkVersion,64),Mt),t.baseType!==dl.dataType&&t.baseType!==Uc.dataType||(Ds(n,Rf.internalSnippet,o.snippetVer,Mt),Ds(n,Rf.internalSdkSrc,o.sdkSrc,Mt))}},e[Tm]=function(e,t){var r=i.location;r&&Ds(js(e,Gm,[]),Rf.locationIp,r.ip,Mt)},e[Cm]=function(t,r){var o=e[wm];if(o){var n=js(js(t,Xm),Lf,{traceID:void 0,parentID:void 0});Ds(n,"traceID",o.traceID,Mt,jt),Ds(n,"name",o.name,Mt,jt),Ds(n,"parentID",o.parentID,Mt,jt)}},e.applyWebContext=function(e,t){var r=i.web;r&&Ds(js(e,Xm),"web",r)},e[Sm]=function(t,r){var o=e.user;if(o){Ds(js(t,Gm,[]),Rf.userAccountId,o[Om],Mt);var n=js(js(t,Xm),$f);Ds(n,"id",o.id,Mt),Ds(n,"authId",o[Mm],Mt)}},e.cleanUp=function(e,t){var r=e.ext;r&&(Jm(r,If),Jm(r,$f),Jm(r,"web"),Jm(r,"os"),Jm(r,"app"),Jm(r,Lf))}}))}return e.__ieDyn=1,e}(),ty=null,ry=cr(((Ym={})[Om]=ty,Ym.sessionRenewalMs=18e5,Ym.samplingPercentage=100,Ym.sessionExpirationMs=864e5,Ym.cookieDomain=ty,Ym.sdkExtension=ty,Ym.isBrowserLinkTrackingEnabled=!1,Ym.appId=ty,Ym[$m]=ty,Ym[Im]=Zm,Ym.sessionCookiePostfix=Zm,Ym[Lm]=Zm,Ym[Rm]=22,Ym[Dm]=ty,Ym));const oy=function(e){function t(){var r,o,n,i,s,a=e.call(this)||this;return a.priority=110,a.identifier=gc,Ln(t,a,(function(e,t){function a(){r=null,o=null,n=null,i=null,s=!0}a(),Pr(e,"context",{g:function(){return i}}),e.initialize=function(a,l,c,u){t.initialize(a,l,c,u),function(t){var a=e.identifier,l=e.core;e._addHook(Za(t,(function(){var o=ep(null,t,l);t.storagePrefix&&lc(t.storagePrefix),s=!1!==t.disableUserInitMessage,r=o.getExtCfg(a,ry),e._extConfig=r}))),n=l[ym](!1),i=new ey(l,r,n,e._unloadHooks),o=Ou(e.context[wm],n),l.setTraceCtx(o),e.context.appId=function(){var e=l.getPlugin(vc);return e?e.plugin._appId:null}}(a)},e.processTelemetry=function(t,r){if(!jt(t)){r=e._getTelCtx(r),t.name===Uc.envelopeType&&r.diagLog().resetInternalMessageCount();var o=i||{};o.session&&"string"!=typeof i.session.id&&o[hm]&&o[hm][gm]();var n=o.user;if(n&&!n[vm]&&n[gm](o.user.id),function(t,r){js(t,"tags",[]),js(t,"ext",{});var o=e.context;o[_m](t,r),o[xm](t,r),o[km](t,r),o[Cm](t,r),o[Sm](t,r),o[Em](t,r),o.applyWebContext(t,r),o[Tm](t,r),o[Am](t,r),o.cleanUp(t,r)}(t,r),n&&n[mm]&&(n[mm]=!1,!s)){var a=new dl(72,(Qr()||{}).userAgent||"");!function(e,t,r){fl(e)[Ni](1,r)}(r.diagLog(),0,a)}e.processNext(t,r)}},e._doTeardown=function(e,t){var r=(e||{}).core();r&&r[ym]&&r[ym](!1)===o&&r.setTraceCtx(n),a()}})),a}return Un(t,e),t.__ieDyn=1,t}(vp);var ny,iy,sy,ay,ly,cy="AuthenticatedUserContext",uy="track",dy="snippet",py="flush",by="pollInternalLogs",fy="getPlugin",hy="evtNamespace",gy=uy+"Event",vy=uy+"Trace",my=uy+"Metric",yy=uy+"PageView",wy=uy+"Exception",_y=uy+"DependencyData",xy="set"+cy,ky="clear"+cy,Cy="version",Sy="queue",Ey="connectionString",Ty="endpointUrl",Ay="userOverrideEndpointUrl",Oy="instrumentationKey",$y="onunloadFlush",Iy="context",Ly="addHousekeepingBeforeUnload",Ry="sendMessage",Dy=[dy,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],jy="iKeyUsage",Py="CdnUsage",My="SdkLoaderVer",Ny=void 0,zy={disabled:!0,limit:ju({samplingRate:100,maxSendNumber:1}),interval:ju({monthInterval:3,daysOfMonth:[28]})},qy=((ny={})[Ey]=Ny,ny[Ty]=Ny,ny[Oy]=Ny,ny[Ay]=Ny,ny.diagnosticLogInterval=Mu((function(e){return e&&e>0}),1e4),ny.featureOptIn=((iy={})[jy]={mode:3},iy[Py]={mode:2},iy[My]={mode:2},iy),ny.throttleMgrCfg=ju(((sy={})[109]=ju(zy),sy[106]=ju(zy),sy[111]=ju(zy),sy[110]=ju(zy),sy)),ny.extensionConfig=ju(((ay={}).AppInsightsCfgSyncPlugin=ju({cfgUrl:"https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",syncMode:2}),ay)),ny),Hy=function(){function e(t){var r,o,n,i,s,a,l,c,u,d,p,b,f,h,g=this;Ln(e,this,(function(e){m(),Pr(e,"config",{g:function(){return c}}),bo(["pluginVersionStringArr","pluginVersionString"],(function(t){Pr(e,t,{g:function(){return l?l[t]:null}})})),i=""+(t.sv||t[Cy]||""),t[Sy]=t[Sy]||[],t[Cy]=t[Cy]||2;var v=Ya(t.config||{},qy);function m(){s=$a("AISKU"),a=null,r=null,o=null,n=null,i=null,p=null,b=!1,f=!1,h=!1,d=new cf}function y(){var e;a&&(Pd([wd,yd,md],null,a),e=Ld(_d,a),Pd([md],null,e),Pd([vd],null,e))}function w(e){l.addUnloadHook(e)}c=v.cfg,u=new Sb,Pr(e,"appInsights",{g:function(){return u}}),o=new oy,r=new um,n=new pg,l=new Ag,Pr(e,"core",{g:function(){return l}}),w(Za(v,(function(){if(c[Ey]){var e=function(e){if(!e)return{};var t=e[yl](";"),r=yo(t,(function(e,t){var r=t[yl]("=");if(2===r[wl]){var o=r[0][_l](),n=r[1];e[o]=n}return e}),{});if(lr(r)[wl]>0){if(r.endpointsuffix){var o=r.location?r.location+".":"";r[xl]=r[xl]||"https://"+o+"dc."+r.endpointsuffix}r[xl]=r[xl]||kc,Bo(r[xl],"/")&&(r[xl]=r[xl].slice(0,-1))}return r}(c[Ey]),t=e.ingestionendpoint;c[Ty]=c[Ay]?c[Ay]:t+Cc,c[Oy]=e.instrumentationkey||c[Oy]}c[Ty]=c[Ay]?c[Ay]:c[Ty]}))),e[dy]=t,e[py]=function(e,t){var r;return void 0===e&&(e=!0),Fd(l,(function(){return"AISKU.flush"}),(function(){e&&!t&&(r=Xb((function(e){t=e})));var o=1,n=function(){0==--o&&t()};bo(l.getChannels(),(function(t){t&&(o++,t[py](e,n))})),n()}),null,e),r},e[$y]=function(e){void 0===e&&(e=!0),bo(l.getChannels(),(function(t){t[$y]?t[$y]():t[py](e)}))},e.loadAppInsights=function(t,s,a){return void 0===t&&(t=!1),t&&function(e){throw mo||(mo=Co("UnsupportedError")),new mo("Legacy Mode is no longer supported")}(),Fd(e.core,(function(){return"AISKU.loadAppInsights"}),(function(){l.initialize(c,[n,o,r,u,d],s,a),Pr(e,"context",{g:function(){return o[Iy]}}),p||(p=new bg(l));var t=function(){if(ly)return ly;var e=null;try{var t=(document||{}).currentScript;t&&(e=t.src)}catch(e){}if(e){try{var r=e.toLowerCase();if(r){var o="";bo(["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"],(function(e,t){if(-1!==Xo(r,e))return o="cdn"+(t+1),-1===Xo(r,"/scripts/")&&(-1!==Xo(r,"/next/")?o+="-next":-1!==Xo(r,"/beta/")&&(o+="-beta")),ly=o+"",-1}))}}catch(e){}ly=e}return ly}();t&&e[Iy]&&(e[Iy].internal.sdkSrc=t),function(t){if(t){var r="";jt(i)||(r+=i),e[Iy]&&e[Iy].internal&&(e[Iy].internal.snippetVer=r||"-"),Qt(e,(function(e,r){Mt(e)&&!Nt(r)&&e&&"_"!==e[0]&&-1===fo(Dy,e)&&t[e]!==r&&(t[e]=r)}))}}(e[dy]),e.emptyQueue(),e[by](),e[Ly](e),w(Za(v,(function(){var t=!1;c.throttleMgrCfg[109]&&(t=!c.throttleMgrCfg[109].disabled),!p.isReady()&&c.extensionConfig&&c.extensionConfig[d.identifier]&&t&&p.onReadyState(!0),b||c[Ey]||!Hs(jy,c)||(p[Ry](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),b=!0),!f&&e[Iy].internal.sdkSrc&&-1!=e[Iy].internal.sdkSrc.indexOf("az416426")&&Hs(Py,c)&&(p[Ry](110,"See Cdn support notice at aka.ms/JsActiveCdn"),f=!0),!h&&parseInt(i)<6&&Hs(My,c)&&(p[Ry](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),h=!0)})))})),e},e.updateSnippetDefinitions=function(t){!function(e,t,r){if(e&&t&&zt(e)&&zt(t)){var o=function(o){if(Mt(o)){var n=t[o];Nt(n)?r&&!r(o)||(e[o]=Ps(t,o)):r&&!r(o)||(Gt(e,o)&&delete e[o],Pr(e,o,{g:function(){return t[o]},s:function(e){t[o]=e}}))}};for(var n in t)o(n)}}(t,e,(function(e){return e&&-1===fo(Dy,e)}))},e.emptyQueue=function(){try{if(qt(e.snippet[Sy])){for(var t=e.snippet[Sy].length,r=0;r<t;r++)(0,e.snippet[Sy][r])();e.snippet[Sy]=void 0,delete e.snippet[Sy]}}catch(e){e&&Nt(e.toString)&&e.toString()}},e[Ly]=function(t){if(Wr()||Fr()){var r=function(){if(t[$y](!1),Nt(e.core[fy])){var r=g.core[fy](gc);if(r){var o=r.plugin;o&&o[Iy]&&o[Iy]._sessionManager&&o[Iy]._sessionManager.backup()}}},o=!1;a||(a=Ld(s,l[hy]&&l[hy]())),w(Za(c,(function(e){var n=e.cfg,i=t.appInsights,s=ep(null,n,i.core).getExtCfg(i.identifier||mc);y();var c,u=n.disablePageUnloadEvents;s.disableFlushOnBeforeUnload||(function(e,t,r,o){var n=!1;return t&&e&&qt(e)&&!(n=jd(e,t,r,o))&&r&&r[Wn]>0&&(n=jd(e,t,null,o)),n}([wd,yd,md],r,u,a)&&(o=!0),Md(r,u,a)&&(o=!0),o||(c=Qr())&&c.product&&"ReactNative"===c.product||hl(l.logger,1,19,"Could not add handler for beforeunload and pagehide")),o||s.disableFlushOnUnload||Md(r,u,a)})))}},e.getSender=function(){return n},e.unload=function(t,r,o){var n,i=!1;return t&&!r&&(n=Xb((function(e){r=e}))),e[$y](t),y(),l.unload&&l.unload(t,(function(e){i||(i=!0,m(),r&&r(e))}),o),n},Ns(e,u,["getCookieMgr",gy,yy,"trackPageViewPerformance",wy,"_onerror",vy,my,"startTrackPage","stopTrackPage","startTrackEvent","stopTrackEvent"]),Ns(e,(function(){return r}),[_y,"addDependencyListener","addDependencyInitializer"]),Ns(e,l,["addTelemetryInitializer",by,"stopPollingInternalLogs",fy,"addPlugin",hy,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),Ns(e,(function(){var e=o[Iy];return e?e.user:null}),[xy,ky])}))}return e.prototype.addDependencyInitializer=function(e){return null},e}();class Uy{constructor(){this.config={},this.trackPageView=!1}}const Vy="AppInsightsConfigurationToken";let Fy=class{constructor(e){this.config=e,e.config?.connectionString||e.config?.instrumentationKey?(this.instance=new Hy(e),this.instance.loadAppInsights(),e.trackPageView&&this.instance.trackPageView()):console.warn("AppInsightsLogger configuraiton has no connectionString or instrumentaitonKey."),this.config=e}logTrace(e,...t){this.instance?.trackTrace({message:this.formatMessage(e,t),severityLevel:0})}logDebug(e,...t){this.instance?.trackTrace({message:this.formatMessage(e,t),severityLevel:1})}logInformation(e,...t){this.instance?.trackTrace({message:this.formatMessage(e,t),severityLevel:2})}logWarning(e,...t){this.instance?.trackTrace({message:this.formatMessage(e,t),severityLevel:3})}logError(e,t,...r){this.instance?.trackException({exception:t??new Error(this.formatMessage(e,r))})}logCritical(e,t,...r){this.instance?.trackException({exception:t??new Error(this.formatMessage(e,r)),properties:{severity:"critical"}})}log(e,t,r,...o){r?this.instance?.trackException({exception:r,properties:{message:this.formatMessage(t,o)}}):this.instance?.trackTrace({message:this.formatMessage(t,o),severityLevel:e})}formatMessage(e,t){return t.length>0?`${e}, ${t.join(", ")}`:e}};Fy=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([O(),function(e,t){return function(r,o){t(r,o,e)}}(0,A(Vy)),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[Uy])],Fy),I.container.registerSingleton(Fy),I.container.register(Ye,{useToken:Fy}),I.container.register(Vy,{useFactory:function(){return I.container.resolve(R).getSection("ApplicationInsights").bind(Uy)}});var By=function(e,t){return function(r,o){t(r,o,e)}};let Wy=class{constructor(e,t){this.loggers=e,this.readers=t,this.logTrace(`LoggingService.constructor loaded with ${e.length} loggers and ${t.length} readers.`)}logTrace(e,...t){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Ze.Trace,message:e,...t},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logTrace(e,...t)}logDebug(e,...t){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Ze.Debug,message:e,...t},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logDebug(e,...t)}logInformation(e,...t){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Ze.Information,message:e,...t},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logInformation(e,...t)}logWarning(e,...t){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Ze.Warning,message:e,...t},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logWarning(e,...t)}logError(e,t,...r){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Ze.Error,message:e,error:t,...r},bubbles:!0,cancelable:!0,composed:!0}));for(const o of this.loggers)o.logError(e,t,...r)}logCritical(e,t,...r){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Ze.Critical,message:e,error:t,...r},bubbles:!0,cancelable:!0,composed:!0}));for(const o of this.loggers)o.logCritical(e,t,...r)}log(e,t,r,...o){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:e,message:t,error:r,...o},bubbles:!0,cancelable:!0,composed:!0}));for(const n of this.loggers)n.log(e,t,r,...o)}getLogs(){return this.readers.reduce(((e,t)=>{const r=t.getLogs();return e.concat(r)}),[])}clearLogs(){this.readers.forEach((e=>e.clearLogs()))}};Wy=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([O(),By(0,$(Ye)),By(1,$(rt)),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[Array,Array])],Wy),I.container.register(tt,{useClass:Wy},{lifecycle:n.Singleton});const Ky=B`
25
25
  :root{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg,hsla(0,0%,100%,.15),hsla(0,0%,100%,0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33,37,41,.75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33,37,41,.5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0,0,0,.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0,0,0,.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0,0,0,.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0,0,0,.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0,0,0,.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13,110,253,.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}*,:after,:before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}.h5,h5{color:var(--bs-heading-color);font-size:1.25rem;font-weight:500;line-height:1.2;margin-bottom:.5rem;margin-top:0}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}svg{vertical-align:middle}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button{font-family:inherit;font-size:inherit;line-height:inherit;margin:0;text-transform:none}[role=button]{cursor:pointer}[type=button],button{-webkit-appearance:button}[type=button]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{border-style:none;padding:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{-webkit-appearance:button;font:inherit}[hidden]{display:none!important}.container{--bs-gutter-x:1.5rem;--bs-gutter-y:0;margin-left:auto;margin-right:auto;padding-left:calc(var(--bs-gutter-x)*.5);padding-right:calc(var(--bs-gutter-x)*.5);width:100%}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}@media (min-width:1400px){.container{max-width:1320px}}:root{--bs-breakpoint-xs:0;--bs-breakpoint-sm:576px;--bs-breakpoint-md:768px;--bs-breakpoint-lg:992px;--bs-breakpoint-xl:1200px;--bs-breakpoint-xxl:1400px}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-left:calc(var(--bs-gutter-x)*-.5);margin-right:calc(var(--bs-gutter-x)*-.5);margin-top:calc(var(--bs-gutter-y)*-1)}.row>*{flex-shrink:0;margin-top:var(--bs-gutter-y);max-width:100%;padding-left:calc(var(--bs-gutter-x)*.5);padding-right:calc(var(--bs-gutter-x)*.5);width:100%}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check:disabled+.btn,.btn-check[disabled]+.btn{filter:none;opacity:.65;pointer-events:none}.btn{--bs-btn-padding-x:0.75rem;--bs-btn-padding-y:0.375rem;--bs-btn-font-family: ;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:var(--bs-body-color);--bs-btn-bg:transparent;--bs-btn-border-width:var(--bs-border-width);--bs-btn-border-color:transparent;--bs-btn-border-radius:var(--bs-border-radius);--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 hsla(0,0%,100%,.15),0 1px 1px rgba(0,0,0,.075);--bs-btn-disabled-opacity:0.65;--bs-btn-focus-box-shadow:0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb),.5);background-color:var(--bs-btn-bg);border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);color:var(--bs-btn-color);cursor:pointer;display:inline-block;font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);text-align:center;text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;user-select:none;vertical-align:middle}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);color:var(--bs-btn-hover-color)}.btn-check+.btn:hover{background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color);color:var(--bs-btn-color)}.btn:focus-visible{background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);box-shadow:var(--bs-btn-focus-box-shadow);color:var(--bs-btn-hover-color);outline:0}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);box-shadow:var(--bs-btn-focus-box-shadow);outline:0}.btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,:not(.btn-check)+.btn:active{background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color);color:var(--bs-btn-active-color)}.btn-check:checked+.btn:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible,.btn:first-child:active:focus-visible,:not(.btn-check)+.btn:active:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked:focus-visible+.btn{box-shadow:var(--bs-btn-focus-box-shadow)}.btn.disabled,.btn:disabled{background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);color:var(--bs-btn-disabled-color);opacity:var(--bs-btn-disabled-opacity);pointer-events:none}.btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130,138,145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0,0,0,.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.list-group,.log-list{--bs-list-group-color:var(--bs-body-color);--bs-list-group-bg:var(--bs-body-bg);--bs-list-group-border-color:var(--bs-border-color);--bs-list-group-border-width:var(--bs-border-width);--bs-list-group-border-radius:var(--bs-border-radius);--bs-list-group-item-padding-x:1rem;--bs-list-group-item-padding-y:0.5rem;--bs-list-group-action-color:var(--bs-secondary-color);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-tertiary-bg);--bs-list-group-action-active-color:var(--bs-body-color);--bs-list-group-action-active-bg:var(--bs-secondary-bg);--bs-list-group-disabled-color:var(--bs-secondary-color);--bs-list-group-disabled-bg:var(--bs-body-bg);--bs-list-group-active-color:#fff;--bs-list-group-active-bg:#0d6efd;--bs-list-group-active-border-color:#0d6efd;border-radius:var(--bs-list-group-border-radius);display:flex;flex-direction:column;margin-bottom:0;padding-left:0}.list-group-numbered{counter-reset:section;list-style-type:none}.list-group-numbered>.list-group-item:before,.list-group-numbered>.log-item:before{content:counters(section,".") ". ";counter-increment:section}.list-group-item-action{color:var(--bs-list-group-action-color);text-align:inherit;width:100%}.list-group-item-action:focus,.list-group-item-action:hover{background-color:var(--bs-list-group-action-hover-bg);color:var(--bs-list-group-action-hover-color);text-decoration:none;z-index:1}.list-group-item-action:active{background-color:var(--bs-list-group-action-active-bg);color:var(--bs-list-group-action-active-color)}.list-group-item,.log-item{background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color);color:var(--bs-list-group-color);display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);position:relative;text-decoration:none}.list-group-item:first-child,.log-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child,.log-item:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.disabled.log-item,.list-group-item.disabled,.list-group-item:disabled,.log-item:disabled{background-color:var(--bs-list-group-disabled-bg);color:var(--bs-list-group-disabled-color);pointer-events:none}.active.log-item,.list-group-item.active{background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color);color:var(--bs-list-group-active-color);z-index:2}.list-group-item+.list-group-item,.list-group-item+.log-item,.log-item+.list-group-item,.log-item+.log-item{border-top-width:0}.list-group-item+.active.log-item,.list-group-item+.list-group-item.active,.log-item+.active.log-item,.log-item+.list-group-item.active{border-top-width:var(--bs-list-group-border-width);margin-top:calc(var(--bs-list-group-border-width)*-1)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child),.list-group-horizontal>.log-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child),.list-group-horizontal>.log-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-right-radius:var(--bs-list-group-border-radius)}.list-group-horizontal>.active.log-item,.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item,.list-group-horizontal>.list-group-item+.log-item,.list-group-horizontal>.log-item+.list-group-item,.list-group-horizontal>.log-item+.log-item{border-left-width:0;border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal>.list-group-item+.active.log-item,.list-group-horizontal>.list-group-item+.list-group-item.active,.list-group-horizontal>.log-item+.active.log-item,.list-group-horizontal>.log-item+.list-group-item.active{border-left-width:var(--bs-list-group-border-width);margin-left:calc(var(--bs-list-group-border-width)*-1)}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child),.list-group-horizontal-sm>.log-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child),.list-group-horizontal-sm>.log-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-right-radius:var(--bs-list-group-border-radius)}.list-group-horizontal-sm>.active.log-item,.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item,.list-group-horizontal-sm>.list-group-item+.log-item,.list-group-horizontal-sm>.log-item+.list-group-item,.list-group-horizontal-sm>.log-item+.log-item{border-left-width:0;border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal-sm>.list-group-item+.active.log-item,.list-group-horizontal-sm>.list-group-item+.list-group-item.active,.list-group-horizontal-sm>.log-item+.active.log-item,.list-group-horizontal-sm>.log-item+.list-group-item.active{border-left-width:var(--bs-list-group-border-width);margin-left:calc(var(--bs-list-group-border-width)*-1)}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child),.list-group-horizontal-md>.log-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child),.list-group-horizontal-md>.log-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-right-radius:var(--bs-list-group-border-radius)}.list-group-horizontal-md>.active.log-item,.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item,.list-group-horizontal-md>.list-group-item+.log-item,.list-group-horizontal-md>.log-item+.list-group-item,.list-group-horizontal-md>.log-item+.log-item{border-left-width:0;border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal-md>.list-group-item+.active.log-item,.list-group-horizontal-md>.list-group-item+.list-group-item.active,.list-group-horizontal-md>.log-item+.active.log-item,.list-group-horizontal-md>.log-item+.list-group-item.active{border-left-width:var(--bs-list-group-border-width);margin-left:calc(var(--bs-list-group-border-width)*-1)}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child),.list-group-horizontal-lg>.log-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child),.list-group-horizontal-lg>.log-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-right-radius:var(--bs-list-group-border-radius)}.list-group-horizontal-lg>.active.log-item,.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item,.list-group-horizontal-lg>.list-group-item+.log-item,.list-group-horizontal-lg>.log-item+.list-group-item,.list-group-horizontal-lg>.log-item+.log-item{border-left-width:0;border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal-lg>.list-group-item+.active.log-item,.list-group-horizontal-lg>.list-group-item+.list-group-item.active,.list-group-horizontal-lg>.log-item+.active.log-item,.list-group-horizontal-lg>.log-item+.list-group-item.active{border-left-width:var(--bs-list-group-border-width);margin-left:calc(var(--bs-list-group-border-width)*-1)}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child),.list-group-horizontal-xl>.log-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child),.list-group-horizontal-xl>.log-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-right-radius:var(--bs-list-group-border-radius)}.list-group-horizontal-xl>.active.log-item,.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item,.list-group-horizontal-xl>.list-group-item+.log-item,.list-group-horizontal-xl>.log-item+.list-group-item,.list-group-horizontal-xl>.log-item+.log-item{border-left-width:0;border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal-xl>.list-group-item+.active.log-item,.list-group-horizontal-xl>.list-group-item+.list-group-item.active,.list-group-horizontal-xl>.log-item+.active.log-item,.list-group-horizontal-xl>.log-item+.list-group-item.active{border-left-width:var(--bs-list-group-border-width);margin-left:calc(var(--bs-list-group-border-width)*-1)}}@media (min-width:1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child),.list-group-horizontal-xxl>.log-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child),.list-group-horizontal-xxl>.log-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-right-radius:var(--bs-list-group-border-radius)}.list-group-horizontal-xxl>.active.log-item,.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item,.list-group-horizontal-xxl>.list-group-item+.log-item,.list-group-horizontal-xxl>.log-item+.list-group-item,.list-group-horizontal-xxl>.log-item+.log-item{border-left-width:0;border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal-xxl>.list-group-item+.active.log-item,.list-group-horizontal-xxl>.list-group-item+.list-group-item.active,.list-group-horizontal-xxl>.log-item+.active.log-item,.list-group-horizontal-xxl>.log-item+.list-group-item.active{border-left-width:var(--bs-list-group-border-width);margin-left:calc(var(--bs-list-group-border-width)*-1)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item,.list-group-flush>.log-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child,.list-group-flush>.log-item:last-child{border-bottom-width:0}.list-group-item-primary,.log-item.debug{--bs-list-group-color:var(--bs-primary-text-emphasis);--bs-list-group-bg:var(--bs-primary-bg-subtle);--bs-list-group-border-color:var(--bs-primary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-primary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-primary-border-subtle);--bs-list-group-active-color:var(--bs-primary-bg-subtle);--bs-list-group-active-bg:var(--bs-primary-text-emphasis);--bs-list-group-active-border-color:var(--bs-primary-text-emphasis)}.list-group-item-secondary,.log-item.trace{--bs-list-group-color:var(--bs-secondary-text-emphasis);--bs-list-group-bg:var(--bs-secondary-bg-subtle);--bs-list-group-border-color:var(--bs-secondary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-secondary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-secondary-border-subtle);--bs-list-group-active-color:var(--bs-secondary-bg-subtle);--bs-list-group-active-bg:var(--bs-secondary-text-emphasis);--bs-list-group-active-border-color:var(--bs-secondary-text-emphasis)}.list-group-item-success{--bs-list-group-color:var(--bs-success-text-emphasis);--bs-list-group-bg:var(--bs-success-bg-subtle);--bs-list-group-border-color:var(--bs-success-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-success-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-success-border-subtle);--bs-list-group-active-color:var(--bs-success-bg-subtle);--bs-list-group-active-bg:var(--bs-success-text-emphasis);--bs-list-group-active-border-color:var(--bs-success-text-emphasis)}.list-group-item-info{--bs-list-group-color:var(--bs-info-text-emphasis);--bs-list-group-bg:var(--bs-info-bg-subtle);--bs-list-group-border-color:var(--bs-info-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-info-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-info-border-subtle);--bs-list-group-active-color:var(--bs-info-bg-subtle);--bs-list-group-active-bg:var(--bs-info-text-emphasis);--bs-list-group-active-border-color:var(--bs-info-text-emphasis)}.list-group-item-warning,.log-item.warning{--bs-list-group-color:var(--bs-warning-text-emphasis);--bs-list-group-bg:var(--bs-warning-bg-subtle);--bs-list-group-border-color:var(--bs-warning-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-warning-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-warning-border-subtle);--bs-list-group-active-color:var(--bs-warning-bg-subtle);--bs-list-group-active-bg:var(--bs-warning-text-emphasis);--bs-list-group-active-border-color:var(--bs-warning-text-emphasis)}.list-group-item-danger,.log-item.critial,.log-item.error{--bs-list-group-color:var(--bs-danger-text-emphasis);--bs-list-group-bg:var(--bs-danger-bg-subtle);--bs-list-group-border-color:var(--bs-danger-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-danger-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-danger-border-subtle);--bs-list-group-active-color:var(--bs-danger-bg-subtle);--bs-list-group-active-bg:var(--bs-danger-text-emphasis);--bs-list-group-active-border-color:var(--bs-danger-text-emphasis)}.list-group-item-light,.log-item.info{--bs-list-group-color:var(--bs-light-text-emphasis);--bs-list-group-bg:var(--bs-light-bg-subtle);--bs-list-group-border-color:var(--bs-light-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-light-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-light-border-subtle);--bs-list-group-active-color:var(--bs-light-bg-subtle);--bs-list-group-active-bg:var(--bs-light-text-emphasis);--bs-list-group-active-border-color:var(--bs-light-text-emphasis)}.list-group-item-dark{--bs-list-group-color:var(--bs-dark-text-emphasis);--bs-list-group-bg:var(--bs-dark-bg-subtle);--bs-list-group-border-color:var(--bs-dark-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-dark-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-dark-border-subtle);--bs-list-group-active-color:var(--bs-dark-bg-subtle);--bs-list-group-active-bg:var(--bs-dark-text-emphasis);--bs-list-group-active-border-color:var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color:#000;--bs-btn-close-bg:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3E%3C/svg%3E");--bs-btn-close-opacity:0.5;--bs-btn-close-hover-opacity:0.75;--bs-btn-close-focus-shadow:0 0 0 0.25rem rgba(13,110,253,.25);--bs-btn-close-focus-opacity:1;--bs-btn-close-disabled-opacity:0.25;--bs-btn-close-white-filter:invert(1) grayscale(100%) brightness(200%);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;box-sizing:content-box;height:1em;opacity:var(--bs-btn-close-opacity);padding:.25em;width:1em}.btn-close,.btn-close:hover{color:var(--bs-btn-close-color)}.btn-close:hover{opacity:var(--bs-btn-close-hover-opacity);text-decoration:none}.btn-close:focus{box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity);outline:0}.btn-close.disabled,.btn-close:disabled{opacity:var(--bs-btn-close-disabled-opacity);pointer-events:none;user-select:none}.modal{--bs-modal-zindex:1055;--bs-modal-width:500px;--bs-modal-padding:1rem;--bs-modal-margin:0.5rem;--bs-modal-color: ;--bs-modal-bg:var(--bs-body-bg);--bs-modal-border-color:var(--bs-border-color-translucent);--bs-modal-border-width:var(--bs-border-width);--bs-modal-border-radius:var(--bs-border-radius-lg);--bs-modal-box-shadow:var(--bs-box-shadow-sm);--bs-modal-inner-border-radius:calc(var(--bs-border-radius-lg) - var(--bs-border-width));--bs-modal-header-padding-x:1rem;--bs-modal-header-padding-y:1rem;--bs-modal-header-padding:1rem 1rem;--bs-modal-header-border-color:var(--bs-border-color);--bs-modal-header-border-width:var(--bs-border-width);--bs-modal-title-line-height:1.5;--bs-modal-footer-gap:0.5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color:var(--bs-border-color);--bs-modal-footer-border-width:var(--bs-border-width);display:none;height:100%;left:0;outline:0;overflow-x:hidden;overflow-y:auto;position:fixed;top:0;width:100%;z-index:var(--bs-modal-zindex)}.modal-dialog{margin:var(--bs-modal-margin);pointer-events:none;position:relative;width:auto}.modal.show .modal-dialog{transform:none}.modal-content{background-clip:padding-box;background-color:var(--bs-modal-bg);border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);color:var(--bs-modal-color);display:flex;flex-direction:column;outline:0;pointer-events:auto;position:relative;width:100%}.modal-header{align-items:center;border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius);display:flex;flex-shrink:0;padding:var(--bs-modal-header-padding)}.modal-header .btn-close{margin:calc(var(--bs-modal-header-padding-y)*-.5) calc(var(--bs-modal-header-padding-x)*-.5) calc(var(--bs-modal-header-padding-y)*-.5) auto;padding:calc(var(--bs-modal-header-padding-y)*.5) calc(var(--bs-modal-header-padding-x)*.5)}.modal-title{line-height:var(--bs-modal-title-line-height);margin-bottom:0}.modal-body{flex:1 1 auto;padding:var(--bs-modal-padding);position:relative}.modal-footer{align-items:center;background-color:var(--bs-modal-footer-bg);border-bottom-left-radius:var(--bs-modal-inner-border-radius);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap)*.5)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap)*.5)}@media (min-width:576px){.modal{--bs-modal-margin:1.75rem;--bs-modal-box-shadow:var(--bs-box-shadow)}.modal-dialog{margin-left:auto;margin-right:auto;max-width:var(--bs-modal-width)}}@media (min-width:992px){.modal-xl{--bs-modal-width:800px}}@media (min-width:1200px){.modal-xl{--bs-modal-width:1140px}}.spinner-border,.spinner-grow{animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name);border-radius:50%;display:inline-block;height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);width:var(--bs-spinner-width)}@keyframes spinner-border{to{transform:rotate(1turn)}}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border-right-color:currentcolor;border:var(--bs-spinner-border-width) solid;border-right:var(--bs-spinner-border-width) solid transparent}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}@media (prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{animation:placeholder-wave 2s linear infinite;mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);mask-size:200% 100%}@keyframes placeholder-wave{to{mask-position:-200% 0}}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.flex-wrap{flex-wrap:wrap!important}.modal.show{display:block}
26
26
  /*# sourceMappingURL=qbo4.logging.min.css.map*/
27
27
  `,Xy=B`
@@ -52,20 +52,14 @@
52
52
  `}};Jy([Je({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"debug",void 0),Jy([Je({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"info",void 0),Jy([Je({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"warning",void 0),Jy([Je({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"error",void 0),Jy([Je({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"critial",void 0),Jy([Je({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"window",void 0),Jy([Je({type:Array}),Qy("design:type",Array)],Yy.prototype,"logs",void 0),Jy([Je({type:Object}),Qy("design:type",Object)],Yy.prototype,"logCounts",void 0),Jy([Je({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"showModal",void 0),Yy=Gy=Jy([Ke("qbo-logging"),Qy("design:paramtypes",[])],Yy);var Zy=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ew=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class tw extends Be{constructor(){super(...arguments),this.selector="",this.cssClass="",this.selectorRoot=""}static{this.styles=[Xy]}render(){return Ae`<slot>
53
53
  <input type="text" @input="${this.handleInput}" placeholder="Filter ...">
54
54
  </slot>
55
- `}connectedCallback(){super.connectedCallback(),this.root=this.getRoot()}getRoot(){if(this.selectorRoot){return this.closest(this.selectorRoot)||document}return document}handleInput(e){const t=e.target.value.toLowerCase(),r=this.root?.querySelectorAll(this.selector);null!=r&&r.forEach((e=>{(e.textContent?.toLowerCase()||"").includes(t)?this.cssClass?e.classList.remove(this.cssClass):e instanceof HTMLElement&&(e.style.display=""):this.cssClass?e.classList.add(this.cssClass):e instanceof HTMLElement&&(e.style.display="none")}))}}Zy([Je({type:String}),ew("design:type",Object)],tw.prototype,"selector",void 0),Zy([Je({type:String}),ew("design:type",Object)],tw.prototype,"cssClass",void 0),Zy([Je({type:String}),ew("design:type",Object)],tw.prototype,"selectorRoot",void 0),customElements.define("qbo-find",tw);const rw={WRITE_LOG:"qbo-log",WRITING_LOG:"qbo-log-write"},ow="ApiServiceToken";function nw(e){return I.container.resolve(e)}const iw="ValidateToken";function sw(e,t){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.error("Error parsing JSON string:",e),null}if(Array.isArray(e))return e;if("object"==typeof e&&null!==e)for(const r in e){const o=e[r];if(Array.isArray(o))return o;if("object"==typeof o){const e=sw(o,t);if(e)return e}}return null}function aw(e,...t){const r=/\${(.*?)}/g;let o=e;for(let e=0;e<t.length;e++){const n=t[e];o=o.replace(r,((e,t)=>{const r=t.split(/\.|\[|\]/).filter((e=>""!==e));let o=n;for(let t of r){if(void 0===o[t])return e;o=o[t]}return o}))}return o=o.replace(r,(()=>"")),o}function lw(e,t,r,o=!0){if(null!=e&&null!=t){for(;o&&e.firstChild;)e.removeChild(e.firstChild);r.map(((r,o)=>{const n=t.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${o}`),n.firstElementChild.innerHTML=aw(n.firstElementChild?.innerHTML??"",r)),e.appendChild(n)}))}}class cw{constructor(e,t={"Content-Type":"application/json"},r=null){this.apiEndpoint=e,this.headers=t,this.method=r}async fetch(e,t=null){const r=aw(new URL(e??"",this.apiEndpoint).href,t),o=this.method??(null!==t?"POST":"GET"),n=new Headers(this.headers||{});null===t||n.has("Content-Type")||n.append("Content-Type","application/json");const i=await fetch(r,{method:o,headers:n,body:"POST"===o&&t?JSON.stringify(t):null});if(!i.ok)throw new Error(`API request failed with status ${i.status}`);return i.json()}}function uw(e,t,r={"Content-Type":"application/json"},o){I.container.registerInstance(e,new cw(t,r,o))}I.container.registerInstance("default",new cw(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var dw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};let pw=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(e){return Promise.resolve(!0)}connect(e){}disconnect(){}};pw=dw([O()],pw),I.container.register(iw,{useClass:pw});let fw=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(e){return Promise.resolve(!0)}connect(e){}disconnect(){}};fw=dw([O()],fw),I.container.register(iw,{useClass:fw});let bw=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}connect(e){}disconnect(){}async validate(e){var t=e.getAttribute("data-exists");if(!t)return!1;var r=e.getAttribute("data-exists-path");const o=I.container.isRegistered(t)?I.container.resolve(t):new cw(t);if(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement){const t=sw(await o.fetch(r,{value:e.value}));return null!=t&&t.length>0}return!1}};bw=dw([O()],bw),I.container.register(iw,{useClass:bw});class hw{constructor(){this.operator="=",this.value=null}}class gw{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const vw="DependencyValidatorOptions",mw=new Map([["!=",(e,t)=>!NT(e.value,t)],[">=",(e,t)=>e.value>=t],["<=",(e,t)=>e.value<=t],["=",(e,t)=>NT(e.value,t)],[">",(e,t)=>e.value>t],["<",(e,t)=>e.value<t]]),yw=Array.from(mw.keys());let ww=class{constructor(e,t){this.message="Dependency condition not met",this.selector="[data-depend-options]",this.optionsCache=new Map,this.checkDependencies=async e=>{console.log("checking dependencies",this.optionsCache);for(const[e,t]of this.optionsCache)await this.validate(e)},this.form=e,this.options=t,this.currentOptions=t}connect(e){this.form.querySelectorAll(this.selector).forEach((e=>{e instanceof HTMLElement&&this.getOptions(e)})),this.optionsCache.forEach(((e,t)=>{this.validate(t)})),this.form.addEventListener("change",this.checkDependencies)}disconnect(){this.form.removeEventListener("change",this.checkDependencies)}async validate(e){const t=this.getOptions(e);if(null==t)return Promise.resolve(!0);let r;r="or"===t.condition?t.evaluators.some((e=>!0===e())):t.evaluators.every((e=>!0===e())),(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement)&&(e.disabled=!r),e.classList.toggle(t.disabledClass,!r);const o=jT(e,"input,select,textarea");return r?t.disableChildren&&o.forEach((e=>e.removeAttribute("disabled"))):(t.disableChildren&&o.forEach((e=>e.setAttribute("disabled","disabled"))),t.resetOnDisable?o.forEach((e=>PT(e))):t.emptyOnDisable&&o.forEach((e=>MT(e)))),Promise.resolve(r)}getOptions(e){let t=this.optionsCache.get(e);if(!t){try{t=Object.assign({},this.options,DT(e,"data-depend-"))}catch(e){console.error("Error parsing data-depend-options attribute:",e)}if(!t)return null;t.evaluators=t.depends.split(",").map((e=>{e=e.trim();let t=yw.find((t=>e.includes(t)))??"!=",r=null,o="";if(t){const n=e.split(t);r=n[0],o=n[1]??""}else e.startsWith("!")?(t="=",r=e.substring(1)):r=e;const n=this.form.querySelector(`#${CSS.escape(r)}`)??this.form.querySelector(`[name="${CSS.escape(r)}"]`);return n instanceof HTMLInputElement?"checkbox"===n.type||"radio"===n.type?"!="===t?()=>n.checked:()=>!n.checked:()=>mw.get(t)(n,o):n instanceof HTMLSelectElement?()=>mw.get(t)(n,o):n instanceof HTMLOptionElement?"!="===t?()=>n.selected:()=>!n.selected:void 0})).filter((e=>void 0!==e)),this.optionsCache.set(e,t)}return t}getElement(e){return this.form.querySelector(`#${CSS.escape(e)}`)??this.form.querySelector(`[name="${CSS.escape(e)}"]`)}};ww=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([O(),function(e,t){return function(r,o){t(r,o,e)}}(1,A(vw)),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[HTMLFormElement,gw])],ww),I.container.register(vw,{useValue:new gw}),I.container.register(iw,{useClass:ww});var _w=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},xw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let kw=class extends Be{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null,this.method="POST"}connectedCallback(){super.connectedCallback();const e={};null==this.name&&console.error("qbo-api name is required."),null==this.apiEndpoint&&console.error("qbo-api apiEndpoint is required."),this.querySelectorAll("header").forEach((t=>{const r=t.getAttribute("name"),o=t.textContent;r&&o&&(e[r]=o)})),e.ContentType&&(e["Content-Type"]=e.ContentType,delete e.ContentType),this.apiEndpoint?.startsWith("http")||(this.apiEndpoint=new URL(this.apiEndpoint??"",document.location.origin).href),uw(this.name,this.apiEndpoint,e,this.method)}render(){return Ae``}};_w([Je({type:String}),xw("design:type",Object)],kw.prototype,"name",void 0),_w([Je({type:String}),xw("design:type",Object)],kw.prototype,"apiEndpoint",void 0),_w([Je({type:String}),xw("design:type",String)],kw.prototype,"method",void 0),kw=_w([Ke("qbo-api")],kw);var Cw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Sw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const Ew=(e=>{class t extends e{constructor(...e){super(...e),this.apiEndpoint=null,this.method="GET",this.error=!1,this.jsonData={},this.accept="application/json",this.headerTag='script[name="headers"]',this.html=null,this.fetchOnLoad=!0}async connectedCallback(){if(super.connectedCallback(),this.fetchOnLoad){const e=this.getHeaders(),t=this.getPayload(e);await this.fetchData(e,t)}}getHeaders(){const e=this.querySelector(this.headerTag);let t={Accept:this.accept};if(e&&null!==e.textContent)try{t=JSON.parse(e.textContent)}catch(e){console.error("Error parsing header JSON:",e)}return t}getPayload(e){const t=this.querySelector('script[name="payload"]');let r=null;if(t&&null!==t.textContent)try{r=JSON.parse(t.textContent),r&&(e["Content-Type"]="application/json")}catch(e){console.error("Error parsing payload JSON:",e)}return r}async fetchData(e,t){if(null!==this.apiEndpoint){null!==t&&(this.method="POST");try{const r=await fetch(this.apiEndpoint,{method:this.method,headers:e,body:t?JSON.stringify(t):null});"application/json"===this.accept?(this.jsonData=await r.json(),this.html=null):(this.html=await r.text(),this.jsonData=null),this.dispatchEvent(new CustomEvent("qbo-updated",{bubbles:!0,composed:!0}))}catch(e){this.error=!0,dispatchEvent(new CustomEvent("qbo-error",{detail:e}))}}}}return Cw([Je({type:URL}),Sw("design:type",Object)],t.prototype,"apiEndpoint",void 0),Cw([Je({type:String}),Sw("design:type",Object)],t.prototype,"method",void 0),Cw([Je({type:Boolean}),Sw("design:type",Object)],t.prototype,"error",void 0),Cw([Je({type:Object}),Sw("design:type",Object)],t.prototype,"jsonData",void 0),Cw([Je({type:String}),Sw("design:type",Object)],t.prototype,"accept",void 0),Cw([Je({type:String}),Sw("design:type",Object)],t.prototype,"headerTag",void 0),Cw([Je({type:String}),Sw("design:type",Object)],t.prototype,"html",void 0),Cw([Je({type:Boolean}),Sw("design:type",Object)],t.prototype,"fetchOnLoad",void 0),t})(Be);var Tw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Aw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Ow=class extends Ew{constructor(){super(...arguments),this.loading=!1,this.target=null,this.values=[],this.targetElement=null,this.selector="*[data-badge]"}async connectedCallback(){if(this.targetElement=null!=this.target?this.closest(this.target):this,null==this.targetElement)throw new Error(`Could not find target element ${this.target}`);this.targetElement.addEventListener("qbo-updated",this.getIds.bind(this)),super.connectedCallback()}disconnectedCallback(){this.targetElement?.removeEventListener("qbo-updated",this.getIds)}getPayload(e){(super.getPayload(e)??{}).idList=this.values.join(",")}getIds(){if(console.log("reacting to target qbo-updated"),null==this.targetElement)return;const e=[];this.targetElement.querySelectorAll(this.selector).forEach((t=>{const r=t.getAttribute("data-badge");null!==r&&e.push(r)})),this.values=e}async fetchData(e,t){super.fetchData(e,t)}render(){this.targetElement.querySelectorAll(this.selector).forEach((e=>{e.innerHTML=e.getAttribute("data-badge")??""}))}};Tw([Je({type:Boolean}),Aw("design:type",Object)],Ow.prototype,"loading",void 0),Tw([Je(),Aw("design:type",Object)],Ow.prototype,"target",void 0),Tw([Je(),Aw("design:type",Array)],Ow.prototype,"values",void 0),Tw([Je(),Aw("design:type",Object)],Ow.prototype,"selector",void 0),Ow=Tw([Ke("qbo-badge")],Ow);var $w=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Iw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Lw=class extends Be{constructor(){super(...arguments),this.apiEndpoint="qbo",this.colFourClass="qbo-col-4",this.colSixClass="qbo-col-6",this.colThreeClass="qbo-col-3",this.colTwelveClass="qbo-col-12",this.contactId=null,this.contactLabel="Contact",this.contactName="Contact",this.divSectionHeaderClass="qbo-header",this.emptyOptionText="--",this.emptyOptionValue="",this.formControlSmallClass="qbo-sm",this.formLabelSmallClass="qbo-sm",this.formSelectSmallClass="qbo-sm",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async connectedCallback(){super.connectedCallback();const e=I.container.isRegistered(this.apiEndpoint)?I.container.resolve(this.apiEndpoint):new cw(this.apiEndpoint);this.jsonData=await e.fetch("contact/summary",{ID:`${this.contactId}`})}render(){return Ae`<slot>
55
+ `}connectedCallback(){super.connectedCallback(),this.root=this.getRoot()}getRoot(){if(this.selectorRoot){return this.closest(this.selectorRoot)||document}return document}handleInput(e){const t=e.target.value.toLowerCase(),r=this.root?.querySelectorAll(this.selector);null!=r&&r.forEach((e=>{(e.textContent?.toLowerCase()||"").includes(t)?this.cssClass?e.classList.remove(this.cssClass):e instanceof HTMLElement&&(e.style.display=""):this.cssClass?e.classList.add(this.cssClass):e instanceof HTMLElement&&(e.style.display="none")}))}}Zy([Je({type:String}),ew("design:type",Object)],tw.prototype,"selector",void 0),Zy([Je({type:String}),ew("design:type",Object)],tw.prototype,"cssClass",void 0),Zy([Je({type:String}),ew("design:type",Object)],tw.prototype,"selectorRoot",void 0),customElements.define("qbo-find",tw);const rw={WRITE_LOG:"qbo-log",WRITING_LOG:"qbo-log-write"},ow="ApiServiceToken";function nw(e){return I.container.resolve(e)}const iw="ValidateToken";function sw(e,t){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.error("Error parsing JSON string:",e),null}if(Array.isArray(e))return e;if("object"==typeof e&&null!==e)for(const r in e){const o=e[r];if(Array.isArray(o))return o;if("object"==typeof o){const e=sw(o,t);if(e)return e}}return null}function aw(e,...t){const r=/\${(.*?)}/g;let o=e;for(let e=0;e<t.length;e++){const n=t[e];o=o.replace(r,((e,t)=>{const r=t.split(/\.|\[|\]/).filter((e=>""!==e));let o=n;for(let t of r){if(void 0===o[t])return e;o=o[t]}return o}))}return o=o.replace(r,(()=>"")),o}function lw(e,t,r,o=!0){if(null!=e&&null!=t){for(;o&&e.firstChild;)e.removeChild(e.firstChild);r.map(((r,o)=>{const n=t.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${o}`),n.firstElementChild.innerHTML=aw(n.firstElementChild?.innerHTML??"",r)),e.appendChild(n)}))}}class cw{constructor(e,t={"Content-Type":"application/json"},r=null){this.apiEndpoint=e,this.headers=t,this.method=r}async fetch(e,t=null){const r=aw(new URL(e??"",this.apiEndpoint).href,t),o=this.method??(null!==t?"POST":"GET"),n=new Headers(this.headers||{});null===t||n.has("Content-Type")||n.append("Content-Type","application/json");const i=await fetch(r,{method:o,headers:n,body:"POST"===o&&t?JSON.stringify(t):null});if(!i.ok)throw new Error(`API request failed with status ${i.status}`);return i.json()}}function uw(e,t,r={"Content-Type":"application/json"},o){I.container.registerInstance(e,new cw(t,r,o))}I.container.registerInstance("default",new cw(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var dw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};let pw=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(e){return Promise.resolve(!0)}connect(e){}disconnect(){}};pw=dw([O()],pw),I.container.register(iw,{useClass:pw});let bw=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(e){return Promise.resolve(!0)}connect(e){}disconnect(){}};bw=dw([O()],bw),I.container.register(iw,{useClass:bw});let fw=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}connect(e){}disconnect(){}async validate(e){var t=e.getAttribute("data-exists");if(!t)return!1;var r=e.getAttribute("data-exists-path");const o=I.container.isRegistered(t)?I.container.resolve(t):new cw(t);if(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement){const t=sw(await o.fetch(r,{value:e.value}));return null!=t&&t.length>0}return!1}};fw=dw([O()],fw),I.container.register(iw,{useClass:fw});class hw{constructor(){this.operator="=",this.value=null}}class gw{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const vw="DependencyValidatorOptions",mw=new Map([["!=",(e,t)=>!NT(e.value,t)],[">=",(e,t)=>e.value>=t],["<=",(e,t)=>e.value<=t],["=",(e,t)=>NT(e.value,t)],[">",(e,t)=>e.value>t],["<",(e,t)=>e.value<t]]),yw=Array.from(mw.keys());let ww=class{constructor(e,t){this.message="Dependency condition not met",this.selector="[data-depend-options]",this.optionsCache=new Map,this.checkDependencies=async e=>{console.log("checking dependencies",this.optionsCache);for(const[e,t]of this.optionsCache)await this.validate(e)},this.form=e,this.options=t,this.currentOptions=t}connect(e){this.form.querySelectorAll(this.selector).forEach((e=>{e instanceof HTMLElement&&this.getOptions(e)})),this.optionsCache.forEach(((e,t)=>{this.validate(t)})),this.form.addEventListener("change",this.checkDependencies)}disconnect(){this.form.removeEventListener("change",this.checkDependencies)}async validate(e){const t=this.getOptions(e);if(null==t)return Promise.resolve(!0);let r;r="or"===t.condition?t.evaluators.some((e=>!0===e())):t.evaluators.every((e=>!0===e())),(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement)&&(e.disabled=!r),e.classList.toggle(t.disabledClass,!r);const o=jT(e,"input,select,textarea");return r?t.disableChildren&&o.forEach((e=>e.removeAttribute("disabled"))):(t.disableChildren&&o.forEach((e=>e.setAttribute("disabled","disabled"))),t.resetOnDisable?o.forEach((e=>PT(e))):t.emptyOnDisable&&o.forEach((e=>MT(e)))),Promise.resolve(r)}getOptions(e){let t=this.optionsCache.get(e);if(!t){try{t=Object.assign({},this.options,DT(e,"data-depend-"))}catch(e){console.error("Error parsing data-depend-options attribute:",e)}if(!t)return null;t.evaluators=t.depends.split(",").map((e=>{e=e.trim();let t=yw.find((t=>e.includes(t)))??"!=",r=null,o="";if(t){const n=e.split(t);r=n[0],o=n[1]??""}else e.startsWith("!")?(t="=",r=e.substring(1)):r=e;const n=this.form.querySelector(`#${CSS.escape(r)}`)??this.form.querySelector(`[name="${CSS.escape(r)}"]`);return n instanceof HTMLInputElement?"checkbox"===n.type||"radio"===n.type?"!="===t?()=>n.checked:()=>!n.checked:()=>mw.get(t)(n,o):n instanceof HTMLSelectElement?()=>mw.get(t)(n,o):n instanceof HTMLOptionElement?"!="===t?()=>n.selected:()=>!n.selected:void 0})).filter((e=>void 0!==e)),this.optionsCache.set(e,t)}return t}getElement(e){return this.form.querySelector(`#${CSS.escape(e)}`)??this.form.querySelector(`[name="${CSS.escape(e)}"]`)}};ww=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}([O(),function(e,t){return function(r,o){t(r,o,e)}}(1,A(vw)),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[HTMLFormElement,gw])],ww),I.container.register(vw,{useValue:new gw}),I.container.register(iw,{useClass:ww});var _w=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},xw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let kw=class extends Be{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null,this.method="POST"}connectedCallback(){super.connectedCallback();const e={};null==this.name&&console.error("qbo-api name is required."),null==this.apiEndpoint&&console.error("qbo-api apiEndpoint is required."),this.querySelectorAll("header").forEach((t=>{const r=t.getAttribute("name"),o=t.textContent;r&&o&&(e[r]=o)})),e.ContentType&&(e["Content-Type"]=e.ContentType,delete e.ContentType),this.apiEndpoint?.startsWith("http")||(this.apiEndpoint=new URL(this.apiEndpoint??"",document.location.origin).href),uw(this.name,this.apiEndpoint,e,this.method)}render(){return Ae``}};_w([Je({type:String}),xw("design:type",Object)],kw.prototype,"name",void 0),_w([Je({type:String}),xw("design:type",Object)],kw.prototype,"apiEndpoint",void 0),_w([Je({type:String}),xw("design:type",String)],kw.prototype,"method",void 0),kw=_w([Ke("qbo-api")],kw);var Cw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Sw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const Ew=(e=>{class t extends e{constructor(...e){super(...e),this.apiEndpoint=null,this.method="GET",this.error=!1,this.jsonData={},this.accept="application/json",this.headerTag='script[name="headers"]',this.html=null,this.fetchOnLoad=!0}async connectedCallback(){if(super.connectedCallback(),this.fetchOnLoad){const e=this.getHeaders(),t=this.getPayload(e);await this.fetchData(e,t)}}getHeaders(){const e=this.querySelector(this.headerTag);let t={Accept:this.accept};if(e&&null!==e.textContent)try{t=JSON.parse(e.textContent)}catch(e){console.error("Error parsing header JSON:",e)}return t}getPayload(e){const t=this.querySelector('script[name="payload"]');let r=null;if(t&&null!==t.textContent)try{r=JSON.parse(t.textContent),r&&(e["Content-Type"]="application/json")}catch(e){console.error("Error parsing payload JSON:",e)}return r}async fetchData(e,t){if(null!==this.apiEndpoint){null!==t&&(this.method="POST");try{const r=await fetch(this.apiEndpoint,{method:this.method,headers:e,body:t?JSON.stringify(t):null});"application/json"===this.accept?(this.jsonData=await r.json(),this.html=null):(this.html=await r.text(),this.jsonData=null),this.dispatchEvent(new CustomEvent("qbo-updated",{bubbles:!0,composed:!0}))}catch(e){this.error=!0,dispatchEvent(new CustomEvent("qbo-error",{detail:e}))}}}}return Cw([Je({type:URL}),Sw("design:type",Object)],t.prototype,"apiEndpoint",void 0),Cw([Je({type:String}),Sw("design:type",Object)],t.prototype,"method",void 0),Cw([Je({type:Boolean}),Sw("design:type",Object)],t.prototype,"error",void 0),Cw([Je({type:Object}),Sw("design:type",Object)],t.prototype,"jsonData",void 0),Cw([Je({type:String}),Sw("design:type",Object)],t.prototype,"accept",void 0),Cw([Je({type:String}),Sw("design:type",Object)],t.prototype,"headerTag",void 0),Cw([Je({type:String}),Sw("design:type",Object)],t.prototype,"html",void 0),Cw([Je({type:Boolean}),Sw("design:type",Object)],t.prototype,"fetchOnLoad",void 0),t})(Be);var Tw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Aw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Ow=class extends Ew{constructor(){super(...arguments),this.loading=!1,this.target=null,this.values=[],this.targetElement=null,this.selector="*[data-badge]"}async connectedCallback(){if(this.targetElement=null!=this.target?this.closest(this.target):this,null==this.targetElement)throw new Error(`Could not find target element ${this.target}`);this.targetElement.addEventListener("qbo-updated",this.getIds.bind(this)),super.connectedCallback()}disconnectedCallback(){this.targetElement?.removeEventListener("qbo-updated",this.getIds)}getPayload(e){(super.getPayload(e)??{}).idList=this.values.join(",")}getIds(){if(console.log("reacting to target qbo-updated"),null==this.targetElement)return;const e=[];this.targetElement.querySelectorAll(this.selector).forEach((t=>{const r=t.getAttribute("data-badge");null!==r&&e.push(r)})),this.values=e}async fetchData(e,t){super.fetchData(e,t)}render(){this.targetElement.querySelectorAll(this.selector).forEach((e=>{e.innerHTML=e.getAttribute("data-badge")??""}))}};Tw([Je({type:Boolean}),Aw("design:type",Object)],Ow.prototype,"loading",void 0),Tw([Je(),Aw("design:type",Object)],Ow.prototype,"target",void 0),Tw([Je(),Aw("design:type",Array)],Ow.prototype,"values",void 0),Tw([Je(),Aw("design:type",Object)],Ow.prototype,"selector",void 0),Ow=Tw([Ke("qbo-badge")],Ow);var $w=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Iw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Lw=class extends Be{constructor(){super(...arguments),this.apiEndpoint="qbo",this.colFourClass="qbo-col-4",this.colSixClass="qbo-col-6",this.colThreeClass="qbo-col-3",this.colTwelveClass="qbo-col-12",this.contactId=null,this.contactLabel="Contact",this.contactName="Contact",this.divSectionHeaderClass="qbo-header",this.emptyOptionText="--",this.emptyOptionValue="",this.formControlSmallClass="qbo-sm",this.formLabelSmallClass="qbo-sm",this.formSelectSmallClass="qbo-sm",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async connectedCallback(){super.connectedCallback();const e=I.container.isRegistered(this.apiEndpoint)?I.container.resolve(this.apiEndpoint):new cw(this.apiEndpoint);this.jsonData=await e.fetch("contact/summary",{ID:`${this.contactId}`})}render(){return Ae`<slot>
56
56
  <div class="${this.colSixClass}">
57
57
  <label for="${this.contactName}" class="${this.formLabelSmallClass}">${this.contactLabel}</label>
58
58
  <input type="text" disabled class="${this.formControlSmallClass}" name="${this.contactName}" value="${this.jsonData?.ContactItem?.Contact}"/>
59
59
  </div>
60
60
  <div class="${this.colSixClass}">
61
61
  <label for="ContactTemplateID" class="${this.formLabelSmallClass}">Template</label>
62
-
63
-
64
-
65
- <qbo-select disabled qbo-class="${this.formSelectSmallClass}" name="ContactTemplateID" apiEndpoint="/ui/contacttemplate/listwhere.json?appliesto=${this.jsonData?.ContactItem?.Object}" defaultValue="${this.jsonData?.ContactItem?.ContactTemplateID}"/>
66
-
67
-
68
-
62
+ <qbo-select qbo-disabled="true" qbo-class="${this.formSelectSmallClass}" name="ContactTemplateID" apiEndpoint="/ui/contacttemplate/listwhere.json?appliesto=${this.jsonData?.ContactItem?.Object}" defaultValue="${this.jsonData?.ContactItem?.ContactTemplateID}"></qbo-select>
69
63
  </div>
70
64
  <div class="${this.colSixClass}">
71
65
  <label for="Status" class="${this.formLabelSmallClass}">Status</label>
@@ -224,7 +218,7 @@
224
218
  </datalist>`):Ae``}};Rw([Je({type:String}),Dw("design:type",Object)],jw.prototype,"listId",void 0),Rw([Je({type:Number}),Dw("design:type",Object)],jw.prototype,"min",void 0),Rw([Je({type:Array}),Dw("design:type",Object)],jw.prototype,"options",void 0),Rw([Je({type:Boolean}),Dw("design:type",Object)],jw.prototype,"renderInHost",void 0),Rw([Je({type:String}),Dw("design:type",Object)],jw.prototype,"text",void 0),Rw([Je({type:String}),Dw("design:type",Object)],jw.prototype,"value",void 0),Rw([Je({type:Boolean}),Dw("design:type",Object)],jw.prototype,"fetchOnLoad",void 0),jw=Rw([Ke("qbo-datalist")],jw);var Pw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Mw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Nw=class extends Ew{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[B`
225
219
  /* Add any custom styles here */
226
220
  .foo { color: red; }
227
- `]}async connectedCallback(){super.connectedCallback()}render(){return Ae`<iframe src='sample.pdf' width='100%' height='800px' frameborder='0'></iframe>`}};Pw([Je({type:Boolean}),Mw("design:type",Object)],Nw.prototype,"open",void 0),Pw([Je({type:Boolean}),Mw("design:type",Object)],Nw.prototype,"loading",void 0),Pw([Je({type:Boolean}),Mw("design:type",Object)],Nw.prototype,"renderInHost",void 0),Nw=Pw([Ke("qbo-docviewer")],Nw);var zw,qw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Hw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Uw=class extends Be{static{zw=this}static{this.formAssociated=!0}constructor(){super(),this.value=new FormData,this.template="",this.name="",this.data=null,this.templateNode=null,this.handleFormChange=e=>{const t=e.target;t.matches("input, select, textarea")&&t.name&&!t.assignedSlot&&(this.value.set(`${this.name}${t.name}`,t.value),this.logger.logTrace(`${this.name}${t.name} was set to ${t.value}`)),this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.augment=e=>{if(e.stopPropagation(),console.log(e),e instanceof CustomEvent&&e.detail.formData instanceof FormData)for(let[t,r]of e.detail.formData.entries())this.value.set(t,r),console.log(`Added ${t}=${r} to ${this.name}`);this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.internals=this.attachInternals(),this.logger=I.container.resolve(tt)}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=aw(this.innerHTML,this.data)),this.shadowRoot?.addEventListener("change",this.handleFormChange),this.shadowRoot?.addEventListener("qbo-form-update",this.augment)}disconnectedCallback(){super.disconnectedCallback(),this.shadowRoot?.removeEventListener("change",this.handleFormChange),this.shadowRoot?.removeEventListener("qbo-form-update",this.augment)}updated(e){super.updated(e),this.establishFormData()}render(){return Ae`<slot></slot>`}establishFormData(){const e=this.shadowRoot?.querySelectorAll("input, select, textarea"),t=Array.from(e).filter((e=>!e.assignedSlot&&(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof zw)&&e.name));t.forEach((e=>{const t=e;if(t instanceof HTMLSelectElement)this.value.set(`${this.name}${t.name}`,t.value);else if(t instanceof HTMLTextAreaElement)this.value.set(`${this.name}${t.name}`,t.value);else if(t instanceof zw)for(let[e,r]of t.value.entries())this.value.set(`${this.name}${e}`,r);else t instanceof HTMLInputElement&&("checkbox"===t.type||"radio"===t.type?t.checked&&this.value.set(`${this.name}${t.name}`,t.value):this.value.set(`${this.name}${t.name}`,t.value))})),this.internals.setFormValue(this.value),this.logger.logTrace(`Set ${this.name} values to `,this.value)}};qw([Je({type:FormData}),Hw("design:type",FormData)],Uw.prototype,"value",void 0),qw([Je({type:String}),Hw("design:type",Object)],Uw.prototype,"template",void 0),qw([Je({type:String}),Hw("design:type",Object)],Uw.prototype,"name",void 0),qw([Je({type:Object}),Hw("design:type",Object)],Uw.prototype,"data",void 0),Uw=zw=qw([Ke("qbo-form-element"),Hw("design:paramtypes",[])],Uw);var Vw="top",Fw="bottom",Bw="right",Ww="left",Kw="auto",Xw=[Vw,Fw,Bw,Ww],Gw="start",Jw="end",Qw="clippingParents",Yw="viewport",Zw="popper",e_="reference",t_=Xw.reduce((function(e,t){return e.concat([t+"-"+Gw,t+"-"+Jw])}),[]),r_=[].concat(Xw,[Kw]).reduce((function(e,t){return e.concat([t,t+"-"+Gw,t+"-"+Jw])}),[]),o_="beforeRead",n_="read",i_="afterRead",s_="beforeMain",a_="main",l_="afterMain",c_="beforeWrite",u_="write",d_="afterWrite",p_=[o_,n_,i_,s_,a_,l_,c_,u_,d_];function f_(e){return e?(e.nodeName||"").toLowerCase():null}function b_(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function h_(e){return e instanceof b_(e).Element||e instanceof Element}function g_(e){return e instanceof b_(e).HTMLElement||e instanceof HTMLElement}function v_(e){return"undefined"!=typeof ShadowRoot&&(e instanceof b_(e).ShadowRoot||e instanceof ShadowRoot)}const m_={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},o=t.attributes[e]||{},n=t.elements[e];g_(n)&&f_(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(e){var t=o[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],n=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});g_(o)&&f_(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function y_(e){return e.split("-")[0]}var w_=Math.max,__=Math.min,x_=Math.round;function k_(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function C_(){return!/^((?!chrome|android).)*safari/i.test(k_())}function S_(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var o=e.getBoundingClientRect(),n=1,i=1;t&&g_(e)&&(n=e.offsetWidth>0&&x_(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&x_(o.height)/e.offsetHeight||1);var s=(h_(e)?b_(e):window).visualViewport,a=!C_()&&r,l=(o.left+(a&&s?s.offsetLeft:0))/n,c=(o.top+(a&&s?s.offsetTop:0))/i,u=o.width/n,d=o.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function E_(e){var t=S_(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function T_(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&v_(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function A_(e){return b_(e).getComputedStyle(e)}function O_(e){return["table","td","th"].indexOf(f_(e))>=0}function $_(e){return((h_(e)?e.ownerDocument:e.document)||window.document).documentElement}function I_(e){return"html"===f_(e)?e:e.assignedSlot||e.parentNode||(v_(e)?e.host:null)||$_(e)}function L_(e){return g_(e)&&"fixed"!==A_(e).position?e.offsetParent:null}function R_(e){for(var t=b_(e),r=L_(e);r&&O_(r)&&"static"===A_(r).position;)r=L_(r);return r&&("html"===f_(r)||"body"===f_(r)&&"static"===A_(r).position)?t:r||function(e){var t=/firefox/i.test(k_());if(/Trident/i.test(k_())&&g_(e)&&"fixed"===A_(e).position)return null;var r=I_(e);for(v_(r)&&(r=r.host);g_(r)&&["html","body"].indexOf(f_(r))<0;){var o=A_(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(e)||t}function D_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function j_(e,t,r){return w_(e,__(t,r))}function P_(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function M_(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}const N_={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,o=e.name,n=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=y_(r.placement),l=D_(a),c=[Ww,Bw].indexOf(a)>=0?"height":"width";if(i&&s){var u=function(e,t){return P_("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:M_(e,Xw))}(n.padding,r),d=E_(i),p="y"===l?Vw:Ww,f="y"===l?Fw:Bw,b=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],h=s[l]-r.rects.reference[l],g=R_(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,m=b/2-h/2,y=u[p],w=v-d[c]-u[f],_=v/2-d[c]/2+m,x=j_(y,_,w),k=l;r.modifiersData[o]=((t={})[k]=x,t.centerOffset=x-_,t)}},effect:function(e){var t=e.state,r=e.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&T_(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function z_(e){return e.split("-")[1]}var q_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function H_(e){var t,r=e.popper,o=e.popperRect,n=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,f=void 0===p?0:p,b=s.y,h=void 0===b?0:b,g="function"==typeof u?u({x:f,y:h}):{x:f,y:h};f=g.x,h=g.y;var v=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),y=Ww,w=Vw,_=window;if(c){var x=R_(r),k="clientHeight",C="clientWidth";x===b_(r)&&"static"!==A_(x=$_(r)).position&&"absolute"===a&&(k="scrollHeight",C="scrollWidth"),(n===Vw||(n===Ww||n===Bw)&&i===Jw)&&(w=Fw,h-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[k])-o.height,h*=l?1:-1),n!==Ww&&(n!==Vw&&n!==Fw||i!==Jw)||(y=Bw,f-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[C])-o.width,f*=l?1:-1)}var S,E=Object.assign({position:a},c&&q_),T=!0===u?function(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:x_(r*n)/n||0,y:x_(o*n)/n||0}}({x:f,y:h},b_(r)):{x:f,y:h};return f=T.x,h=T.y,l?Object.assign({},E,((S={})[w]=m?"0":"",S[y]=v?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",S)):Object.assign({},E,((t={})[w]=m?h+"px":"",t[y]=v?f+"px":"",t.transform="",t))}const U_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=void 0===o||o,i=r.adaptive,s=void 0===i||i,a=r.roundOffsets,l=void 0===a||a,c={placement:y_(t.placement),variation:z_(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,H_(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,H_(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var V_={passive:!0};const F_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,i=void 0===n||n,s=o.resize,a=void 0===s||s,l=b_(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",r.update,V_)})),a&&l.addEventListener("resize",r.update,V_),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",r.update,V_)})),a&&l.removeEventListener("resize",r.update,V_)}},data:{}};var B_={left:"right",right:"left",bottom:"top",top:"bottom"};function W_(e){return e.replace(/left|right|bottom|top/g,(function(e){return B_[e]}))}var K_={start:"end",end:"start"};function X_(e){return e.replace(/start|end/g,(function(e){return K_[e]}))}function G_(e){var t=b_(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function J_(e){return S_($_(e)).left+G_(e).scrollLeft}function Q_(e){var t=A_(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Y_(e){return["html","body","#document"].indexOf(f_(e))>=0?e.ownerDocument.body:g_(e)&&Q_(e)?e:Y_(I_(e))}function Z_(e,t){var r;void 0===t&&(t=[]);var o=Y_(e),n=o===(null==(r=e.ownerDocument)?void 0:r.body),i=b_(o),s=n?[i].concat(i.visualViewport||[],Q_(o)?o:[]):o,a=t.concat(s);return n?a:a.concat(Z_(I_(s)))}function ex(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tx(e,t,r){return t===Yw?ex(function(e,t){var r=b_(e),o=$_(e),n=r.visualViewport,i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(n){i=n.width,s=n.height;var c=C_();(c||!c&&"fixed"===t)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:i,height:s,x:a+J_(e),y:l}}(e,r)):h_(t)?function(e,t){var r=S_(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):ex(function(e){var t,r=$_(e),o=G_(e),n=null==(t=e.ownerDocument)?void 0:t.body,i=w_(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=w_(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+J_(e),l=-o.scrollTop;return"rtl"===A_(n||r).direction&&(a+=w_(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}($_(e)))}function rx(e){var t,r=e.reference,o=e.element,n=e.placement,i=n?y_(n):null,s=n?z_(n):null,a=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2;switch(i){case Vw:t={x:a,y:r.y-o.height};break;case Fw:t={x:a,y:r.y+r.height};break;case Bw:t={x:r.x+r.width,y:l};break;case Ww:t={x:r.x-o.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?D_(i):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Gw:t[c]=t[c]-(r[u]/2-o[u]/2);break;case Jw:t[c]=t[c]+(r[u]/2-o[u]/2)}}return t}function ox(e,t){void 0===t&&(t={});var r=t,o=r.placement,n=void 0===o?e.placement:o,i=r.strategy,s=void 0===i?e.strategy:i,a=r.boundary,l=void 0===a?Qw:a,c=r.rootBoundary,u=void 0===c?Yw:c,d=r.elementContext,p=void 0===d?Zw:d,f=r.altBoundary,b=void 0!==f&&f,h=r.padding,g=void 0===h?0:h,v=P_("number"!=typeof g?g:M_(g,Xw)),m=p===Zw?e_:Zw,y=e.rects.popper,w=e.elements[b?m:p],_=function(e,t,r,o){var n="clippingParents"===t?function(e){var t=Z_(I_(e)),r=["absolute","fixed"].indexOf(A_(e).position)>=0&&g_(e)?R_(e):e;return h_(r)?t.filter((function(e){return h_(e)&&T_(e,r)&&"body"!==f_(e)})):[]}(e):[].concat(t),i=[].concat(n,[r]),s=i[0],a=i.reduce((function(t,r){var n=tx(e,r,o);return t.top=w_(n.top,t.top),t.right=__(n.right,t.right),t.bottom=__(n.bottom,t.bottom),t.left=w_(n.left,t.left),t}),tx(e,s,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(h_(w)?w:w.contextElement||$_(e.elements.popper),l,u,s),x=S_(e.elements.reference),k=rx({reference:x,element:y,strategy:"absolute",placement:n}),C=ex(Object.assign({},y,k)),S=p===Zw?C:x,E={top:_.top-S.top+v.top,bottom:S.bottom-_.bottom+v.bottom,left:_.left-S.left+v.left,right:S.right-_.right+v.right},T=e.modifiersData.offset;if(p===Zw&&T){var A=T[n];Object.keys(E).forEach((function(e){var t=[Bw,Fw].indexOf(e)>=0?1:-1,r=[Vw,Fw].indexOf(e)>=0?"y":"x";E[e]+=A[r]*t}))}return E}const nx={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,i=void 0===n||n,s=r.altAxis,a=void 0===s||s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,b=void 0===f||f,h=r.allowedAutoPlacements,g=t.options.placement,v=y_(g),m=l||(v!==g&&b?function(e){if(y_(e)===Kw)return[];var t=W_(e);return[X_(e),t,X_(t)]}(g):[W_(g)]),y=[g].concat(m).reduce((function(e,r){return e.concat(y_(r)===Kw?function(e,t){void 0===t&&(t={});var r=t,o=r.placement,n=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?r_:l,u=z_(o),d=u?a?t_:t_.filter((function(e){return z_(e)===u})):Xw,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,r){return t[r]=ox(e,{placement:r,boundary:n,rootBoundary:i,padding:s})[y_(r)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:b,allowedAutoPlacements:h}):r)}),[]),w=t.rects.reference,_=t.rects.popper,x=new Map,k=!0,C=y[0],S=0;S<y.length;S++){var E=y[S],T=y_(E),A=z_(E)===Gw,O=[Vw,Fw].indexOf(T)>=0,$=O?"width":"height",I=ox(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),L=O?A?Bw:Ww:A?Fw:Vw;w[$]>_[$]&&(L=W_(L));var R=W_(L),D=[];if(i&&D.push(I[T]<=0),a&&D.push(I[L]<=0,I[R]<=0),D.every((function(e){return e}))){C=E,k=!1;break}x.set(E,D)}if(k)for(var j=function(e){var t=y.find((function(t){var r=x.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},P=b?3:1;P>0&&"break"!==j(P);P--);t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ix(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function sx(e){return[Vw,Bw,Fw,Ww].some((function(t){return e[t]>=0}))}const ax={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,i=t.modifiersData.preventOverflow,s=ox(t,{elementContext:"reference"}),a=ox(t,{altBoundary:!0}),l=ix(s,o),c=ix(a,n,i),u=sx(l),d=sx(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},lx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,o=e.name,n=r.offset,i=void 0===n?[0,0]:n,s=r_.reduce((function(e,r){return e[r]=function(e,t,r){var o=y_(e),n=[Ww,Vw].indexOf(o)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*n,[Ww,Bw].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}(r,t.rects,i),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=s}},cx={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=rx({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ux={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,i=void 0===n||n,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,p=r.tether,f=void 0===p||p,b=r.tetherOffset,h=void 0===b?0:b,g=ox(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=y_(t.placement),m=z_(t.placement),y=!m,w=D_(v),_="x"===w?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,E="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(x){if(i){var O,$="y"===w?Vw:Ww,I="y"===w?Fw:Bw,L="y"===w?"height":"width",R=x[w],D=R+g[$],j=R-g[I],P=f?-C[L]/2:0,M=m===Gw?k[L]:C[L],N=m===Gw?-C[L]:-k[L],z=t.elements.arrow,q=f&&z?E_(z):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=H[$],V=H[I],F=j_(0,k[L],q[L]),B=y?k[L]/2-P-F-U-E.mainAxis:M-F-U-E.mainAxis,W=y?-k[L]/2+P+F+V+E.mainAxis:N+F+V+E.mainAxis,K=t.elements.arrow&&R_(t.elements.arrow),X=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,G=null!=(O=null==T?void 0:T[w])?O:0,J=R+W-G,Q=j_(f?__(D,R+B-G-X):D,R,f?w_(j,J):j);x[w]=Q,A[w]=Q-R}if(a){var Y,Z="x"===w?Vw:Ww,ee="x"===w?Fw:Bw,te=x[_],re="y"===_?"height":"width",oe=te+g[Z],ne=te-g[ee],ie=-1!==[Vw,Ww].indexOf(v),se=null!=(Y=null==T?void 0:T[_])?Y:0,ae=ie?oe:te-k[re]-C[re]-se+E.altAxis,le=ie?te+k[re]+C[re]-se-E.altAxis:ne,ce=f&&ie?function(e,t,r){var o=j_(e,t,r);return o>r?r:o}(ae,te,le):j_(f?ae:oe,te,f?le:ne);x[_]=ce,A[_]=ce-te}t.modifiersData[o]=A}},requiresIfExists:["offset"]};function dx(e,t,r){void 0===r&&(r=!1);var o,n,i=g_(t),s=g_(t)&&function(e){var t=e.getBoundingClientRect(),r=x_(t.width)/e.offsetWidth||1,o=x_(t.height)/e.offsetHeight||1;return 1!==r||1!==o}(t),a=$_(t),l=S_(e,s,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==f_(t)||Q_(a))&&(c=(o=t)!==b_(o)&&g_(o)?{scrollLeft:(n=o).scrollLeft,scrollTop:n.scrollTop}:G_(o)),g_(t)?((u=S_(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=J_(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function px(e){var t=new Map,r=new Set,o=[];function n(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var o=t.get(e);o&&n(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||n(e)})),o}var fx={placement:"bottom",modifiers:[],strategy:"absolute"};function bx(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function hx(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,o=void 0===r?[]:r,n=t.defaultOptions,i=void 0===n?fx:n;return function(e,t,r){void 0===r&&(r=i);var n,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},fx,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(r){var n="function"==typeof r?r(a.options):r;d(),a.options=Object.assign({},i,a.options,n),a.scrollParents={reference:h_(e)?Z_(e):e.contextElement?Z_(e.contextElement):[],popper:Z_(t)};var s,c,p=function(e){var t=px(e);return p_.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((s=[].concat(o,a.options.modifiers),c=s.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=p.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,o=void 0===r?{}:r,n=e.effect;if("function"==typeof n){var i=n({state:a,name:t,instance:u,options:o});l.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,r=e.popper;if(bx(t,r)){a.rects={reference:dx(t,R_(r),"fixed"===a.options.strategy),popper:E_(r)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<a.orderedModifiers.length;o++)if(!0!==a.reset){var n=a.orderedModifiers[o],i=n.fn,s=n.options,l=void 0===s?{}:s,d=n.name;"function"==typeof i&&(a=i({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,o=-1}}},update:(n=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(n())}))}))),s}),destroy:function(){d(),c=!0}};if(!bx(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(r).then((function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var gx=hx(),vx=hx({defaultModifiers:[F_,cx,U_,m_,lx,nx,ux,N_,ax]}),mx=hx({defaultModifiers:[F_,cx,U_,m_]});const yx=new Map,wx={set(e,t,r){yx.has(e)||yx.set(e,new Map);const o=yx.get(e);o.has(t)||0===o.size?o.set(t,r):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`)},get:(e,t)=>yx.has(e)&&yx.get(e).get(t)||null,remove(e,t){if(!yx.has(e))return;const r=yx.get(e);r.delete(t),0===r.size&&yx.delete(e)}},_x="transitionend",xx=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),kx=e=>{e.dispatchEvent(new Event(_x))},Cx=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Sx=e=>Cx(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(xx(e)):null,Ex=e=>{if(!Cx(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),r=e.closest("details:not([open])");if(!r)return t;if(r!==e){const t=e.closest("summary");if(t&&t.parentNode!==r)return!1;if(null===t)return!1}return t},Tx=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),Ax=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Ax(e.parentNode):null},Ox=()=>{},$x=e=>{e.offsetHeight},Ix=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Lx=[],Rx=()=>"rtl"===document.documentElement.dir,Dx=e=>{var t;t=()=>{const t=Ix();if(t){const r=e.NAME,o=t.fn[r];t.fn[r]=e.jQueryInterface,t.fn[r].Constructor=e,t.fn[r].noConflict=()=>(t.fn[r]=o,e.jQueryInterface)}},"loading"===document.readyState?(Lx.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of Lx)e()})),Lx.push(t)):t()},jx=(e,t=[],r=e)=>"function"==typeof e?e(...t):r,Px=(e,t,r=!0)=>{if(!r)return void jx(e);const o=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:r}=window.getComputedStyle(e);const o=Number.parseFloat(t),n=Number.parseFloat(r);return o||n?(t=t.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(r))):0})(t)+5;let n=!1;const i=({target:r})=>{r===t&&(n=!0,t.removeEventListener(_x,i),jx(e))};t.addEventListener(_x,i),setTimeout((()=>{n||kx(t)}),o)},Mx=(e,t,r,o)=>{const n=e.length;let i=e.indexOf(t);return-1===i?!r&&o?e[n-1]:e[0]:(i+=r?1:-1,o&&(i=(i+n)%n),e[Math.max(0,Math.min(i,n-1))])},Nx=/[^.]*(?=\..*)\.|.*/,zx=/\..*/,qx=/::\d+$/,Hx={};let Ux=1;const Vx={mouseenter:"mouseover",mouseleave:"mouseout"},Fx=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Bx(e,t){return t&&`${t}::${Ux++}`||e.uidEvent||Ux++}function Wx(e){const t=Bx(e);return e.uidEvent=t,Hx[t]=Hx[t]||{},Hx[t]}function Kx(e,t,r=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===r))}function Xx(e,t,r){const o="string"==typeof t,n=o?r:t||r;let i=Yx(e);return Fx.has(i)||(i=e),[o,n,i]}function Gx(e,t,r,o,n){if("string"!=typeof t||!e)return;let[i,s,a]=Xx(t,r,o);if(t in Vx){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};s=e(s)}const l=Wx(e),c=l[a]||(l[a]={}),u=Kx(c,s,i?r:null);if(u)return void(u.oneOff=u.oneOff&&n);const d=Bx(s,t.replace(Nx,"")),p=i?function(e,t,r){return function o(n){const i=e.querySelectorAll(t);for(let{target:s}=n;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return ek(n,{delegateTarget:s}),o.oneOff&&Zx.off(e,n.type,t,r),r.apply(s,[n])}}(e,r,s):function(e,t){return function r(o){return ek(o,{delegateTarget:e}),r.oneOff&&Zx.off(e,o.type,t),t.apply(e,[o])}}(e,s);p.delegationSelector=i?r:null,p.callable=s,p.oneOff=n,p.uidEvent=d,c[d]=p,e.addEventListener(a,p,i)}function Jx(e,t,r,o,n){const i=Kx(t[r],o,n);i&&(e.removeEventListener(r,i,Boolean(n)),delete t[r][i.uidEvent])}function Qx(e,t,r,o){const n=t[r]||{};for(const[i,s]of Object.entries(n))i.includes(o)&&Jx(e,t,r,s.callable,s.delegationSelector)}function Yx(e){return e=e.replace(zx,""),Vx[e]||e}const Zx={on(e,t,r,o){Gx(e,t,r,o,!1)},one(e,t,r,o){Gx(e,t,r,o,!0)},off(e,t,r,o){if("string"!=typeof t||!e)return;const[n,i,s]=Xx(t,r,o),a=s!==t,l=Wx(e),c=l[s]||{},u=t.startsWith(".");if(void 0===i){if(u)for(const r of Object.keys(l))Qx(e,l,r,t.slice(1));for(const[r,o]of Object.entries(c)){const n=r.replace(qx,"");a&&!t.includes(n)||Jx(e,l,s,o.callable,o.delegationSelector)}}else{if(!Object.keys(c).length)return;Jx(e,l,s,i,n?r:null)}},trigger(e,t,r){if("string"!=typeof t||!e)return null;const o=Ix();let n=null,i=!0,s=!0,a=!1;t!==Yx(t)&&o&&(n=o.Event(t,r),o(e).trigger(n),i=!n.isPropagationStopped(),s=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=ek(new Event(t,{bubbles:i,cancelable:!0}),r);return a&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function ek(e,t={}){for(const[r,o]of Object.entries(t))try{e[r]=o}catch(t){Object.defineProperty(e,r,{configurable:!0,get:()=>o})}return e}function tk(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function rk(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const ok={setDataAttribute(e,t,r){e.setAttribute(`data-bs-${rk(t)}`,r)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${rk(t)}`)},getDataAttributes(e){if(!e)return{};const t={},r=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const o of r){let r=o.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=tk(e.dataset[o])}return t},getDataAttribute:(e,t)=>tk(e.getAttribute(`data-bs-${rk(t)}`))};class nk{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const r=Cx(t)?ok.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof r?r:{},...Cx(t)?ok.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[o,n]of Object.entries(t)){const t=e[o],i=Cx(t)?"element":null==(r=t)?`${r}`:Object.prototype.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${i}" but expected type "${n}".`)}var r}}class ik extends nk{constructor(e,t){super(),(e=Sx(e))&&(this._element=e,this._config=this._getConfig(t),wx.set(this._element,this.constructor.DATA_KEY,this))}dispose(){wx.remove(this._element,this.constructor.DATA_KEY),Zx.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){Px(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return wx.get(Sx(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const sk=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let r=e.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),t=r&&"#"!==r?r.trim():null}return t?t.split(",").map((e=>xx(e))).join(","):null},ak={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const r=[];let o=e.parentNode.closest(t);for(;o;)r.push(o),o=o.parentNode.closest(t);return r},prev(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return[r];r=r.previousElementSibling}return[]},next(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return[r];r=r.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!Tx(e)&&Ex(e)))},getSelectorFromElement(e){const t=sk(e);return t&&ak.findOne(t)?t:null},getElementFromSelector(e){const t=sk(e);return t?ak.findOne(t):null},getMultipleElementsFromSelector(e){const t=sk(e);return t?ak.find(t):[]}},lk=(e,t="hide")=>{const r=`click.dismiss${e.EVENT_KEY}`,o=e.NAME;Zx.on(document,r,`[data-bs-dismiss="${o}"]`,(function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),Tx(this))return;const n=ak.getElementFromSelector(this)||this.closest(`.${o}`);e.getOrCreateInstance(n)[t]()}))},ck=".bs.alert",uk=`close${ck}`,dk=`closed${ck}`;class pk extends ik{static get NAME(){return"alert"}close(){if(Zx.trigger(this._element,uk).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),Zx.trigger(this._element,dk),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=pk.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}lk(pk,"close"),Dx(pk);const fk='[data-bs-toggle="button"]';class bk extends ik{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=bk.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}Zx.on(document,"click.bs.button.data-api",fk,(e=>{e.preventDefault();const t=e.target.closest(fk);bk.getOrCreateInstance(t).toggle()})),Dx(bk);const hk=".bs.swipe",gk=`touchstart${hk}`,vk=`touchmove${hk}`,mk=`touchend${hk}`,yk=`pointerdown${hk}`,wk=`pointerup${hk}`,_k={endCallback:null,leftCallback:null,rightCallback:null},xk={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class kk extends nk{constructor(e,t){super(),this._element=e,e&&kk.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return _k}static get DefaultType(){return xk}static get NAME(){return"swipe"}dispose(){Zx.off(this._element,hk)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),jx(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&jx(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Zx.on(this._element,yk,(e=>this._start(e))),Zx.on(this._element,wk,(e=>this._end(e))),this._element.classList.add("pointer-event")):(Zx.on(this._element,gk,(e=>this._start(e))),Zx.on(this._element,vk,(e=>this._move(e))),Zx.on(this._element,mk,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Ck=".bs.carousel",Sk=".data-api",Ek="ArrowLeft",Tk="ArrowRight",Ak="next",Ok="prev",$k="left",Ik="right",Lk=`slide${Ck}`,Rk=`slid${Ck}`,Dk=`keydown${Ck}`,jk=`mouseenter${Ck}`,Pk=`mouseleave${Ck}`,Mk=`dragstart${Ck}`,Nk=`load${Ck}${Sk}`,zk=`click${Ck}${Sk}`,qk="carousel",Hk="active",Uk=".active",Vk=".carousel-item",Fk=Uk+Vk,Bk={[Ek]:Ik,[Tk]:$k},Wk={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Kk={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Xk extends ik{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ak.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===qk&&this.cycle()}static get Default(){return Wk}static get DefaultType(){return Kk}static get NAME(){return"carousel"}next(){this._slide(Ak)}nextWhenVisible(){!document.hidden&&Ex(this._element)&&this.next()}prev(){this._slide(Ok)}pause(){this._isSliding&&kx(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?Zx.one(this._element,Rk,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void Zx.one(this._element,Rk,(()=>this.to(e)));const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?Ak:Ok;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Zx.on(this._element,Dk,(e=>this._keydown(e))),"hover"===this._config.pause&&(Zx.on(this._element,jk,(()=>this.pause())),Zx.on(this._element,Pk,(()=>this._maybeEnableCycle()))),this._config.touch&&kk.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of ak.find(".carousel-item img",this._element))Zx.on(e,Mk,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder($k)),rightCallback:()=>this._slide(this._directionToOrder(Ik)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new kk(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Bk[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=ak.findOne(Uk,this._indicatorsElement);t.classList.remove(Hk),t.removeAttribute("aria-current");const r=ak.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Hk),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const r=this._getActive(),o=e===Ak,n=t||Mx(this._getItems(),r,o,this._config.wrap);if(n===r)return;const i=this._getItemIndex(n),s=t=>Zx.trigger(this._element,t,{relatedTarget:n,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:i});if(s(Lk).defaultPrevented)return;if(!r||!n)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=n;const l=o?"carousel-item-start":"carousel-item-end",c=o?"carousel-item-next":"carousel-item-prev";n.classList.add(c),$x(n),r.classList.add(l),n.classList.add(l),this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(Hk),r.classList.remove(Hk,c,l),this._isSliding=!1,s(Rk)}),r,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return ak.findOne(Fk,this._element)}_getItems(){return ak.find(Vk,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Rx()?e===$k?Ok:Ak:e===$k?Ak:Ok}_orderToDirection(e){return Rx()?e===Ok?$k:Ik:e===Ok?Ik:$k}static jQueryInterface(e){return this.each((function(){const t=Xk.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}Zx.on(document,zk,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=ak.getElementFromSelector(this);if(!t||!t.classList.contains(qk))return;e.preventDefault();const r=Xk.getOrCreateInstance(t),o=this.getAttribute("data-bs-slide-to");return o?(r.to(o),void r._maybeEnableCycle()):"next"===ok.getDataAttribute(this,"slide")?(r.next(),void r._maybeEnableCycle()):(r.prev(),void r._maybeEnableCycle())})),Zx.on(window,Nk,(()=>{const e=ak.find('[data-bs-ride="carousel"]');for(const t of e)Xk.getOrCreateInstance(t)})),Dx(Xk);const Gk=".bs.collapse",Jk=`show${Gk}`,Qk=`shown${Gk}`,Yk=`hide${Gk}`,Zk=`hidden${Gk}`,eC=`click${Gk}.data-api`,tC="show",rC="collapse",oC="collapsing",nC=`:scope .${rC} .${rC}`,iC='[data-bs-toggle="collapse"]',sC={parent:null,toggle:!0},aC={parent:"(null|element)",toggle:"boolean"};class lC extends ik{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=ak.find(iC);for(const e of r){const t=ak.getSelectorFromElement(e),r=ak.find(t).filter((e=>e===this._element));null!==t&&r.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return sC}static get DefaultType(){return aC}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>lC.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(Zx.trigger(this._element,Jk).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(rC),this._element.classList.add(oC),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(oC),this._element.classList.add(rC,tC),this._element.style[t]="",Zx.trigger(this._element,Qk)}),this._element,!0),this._element.style[t]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(Zx.trigger(this._element,Yk).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,$x(this._element),this._element.classList.add(oC),this._element.classList.remove(rC,tC);for(const e of this._triggerArray){const t=ak.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(oC),this._element.classList.add(rC),Zx.trigger(this._element,Zk)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(tC)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Sx(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(iC);for(const t of e){const e=ak.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=ak.find(nC,this._config.parent);return ak.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle("collapsed",!t),r.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const r=lC.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===r[e])throw new TypeError(`No method named "${e}"`);r[e]()}}))}}Zx.on(document,eC,iC,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of ak.getMultipleElementsFromSelector(this))lC.getOrCreateInstance(e,{toggle:!1}).toggle()})),Dx(lC);const cC="dropdown",uC=".bs.dropdown",dC=".data-api",pC="ArrowUp",fC="ArrowDown",bC=`hide${uC}`,hC=`hidden${uC}`,gC=`show${uC}`,vC=`shown${uC}`,mC=`click${uC}${dC}`,yC=`keydown${uC}${dC}`,wC=`keyup${uC}${dC}`,_C="show",xC='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',kC=`${xC}.${_C}`,CC=".dropdown-menu",SC=Rx()?"top-end":"top-start",EC=Rx()?"top-start":"top-end",TC=Rx()?"bottom-end":"bottom-start",AC=Rx()?"bottom-start":"bottom-end",OC=Rx()?"left-start":"right-start",$C=Rx()?"right-start":"left-start",IC={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},LC={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class RC extends ik{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=ak.next(this._element,CC)[0]||ak.prev(this._element,CC)[0]||ak.findOne(CC,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return IC}static get DefaultType(){return LC}static get NAME(){return cC}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Tx(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Zx.trigger(this._element,gC,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))Zx.on(e,"mouseover",Ox);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(_C),this._element.classList.add(_C),Zx.trigger(this._element,vC,e)}}hide(){if(Tx(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Zx.trigger(this._element,bC,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))Zx.off(e,"mouseover",Ox);this._popper&&this._popper.destroy(),this._menu.classList.remove(_C),this._element.classList.remove(_C),this._element.setAttribute("aria-expanded","false"),ok.removeDataAttribute(this._menu,"popper"),Zx.trigger(this._element,hC,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Cx(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${cC.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===t)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:Cx(this._config.reference)?e=Sx(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const r=this._getPopperConfig();this._popper=vx(e,this._menu,r)}_isShown(){return this._menu.classList.contains(_C)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return OC;if(e.classList.contains("dropstart"))return $C;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?EC:SC:t?AC:TC}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(ok.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...jx(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=ak.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>Ex(e)));r.length&&Mx(r,t,e===fC,!r.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=RC.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=ak.find(kC);for(const r of t){const t=RC.getInstance(r);if(!t||!1===t._config.autoClose)continue;const o=e.composedPath(),n=o.includes(t._menu);if(o.includes(t._element)||"inside"===t._config.autoClose&&!n||"outside"===t._config.autoClose&&n)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const i={relatedTarget:t._element};"click"===e.type&&(i.clickEvent=e),t._completeHide(i)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),r="Escape"===e.key,o=[pC,fC].includes(e.key);if(!o&&!r)return;if(t&&!r)return;e.preventDefault();const n=this.matches(xC)?this:ak.prev(this,xC)[0]||ak.next(this,xC)[0]||ak.findOne(xC,e.delegateTarget.parentNode),i=RC.getOrCreateInstance(n);if(o)return e.stopPropagation(),i.show(),void i._selectMenuItem(e);i._isShown()&&(e.stopPropagation(),i.hide(),n.focus())}}Zx.on(document,yC,xC,RC.dataApiKeydownHandler),Zx.on(document,yC,CC,RC.dataApiKeydownHandler),Zx.on(document,mC,RC.clearMenus),Zx.on(document,wC,RC.clearMenus),Zx.on(document,mC,xC,(function(e){e.preventDefault(),RC.getOrCreateInstance(this).toggle()})),Dx(RC);const DC="backdrop",jC="show",PC=`mousedown.bs.${DC}`,MC={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},NC={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class zC extends nk{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return MC}static get DefaultType(){return NC}static get NAME(){return DC}show(e){if(!this._config.isVisible)return void jx(e);this._append();const t=this._getElement();this._config.isAnimated&&$x(t),t.classList.add(jC),this._emulateAnimation((()=>{jx(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(jC),this._emulateAnimation((()=>{this.dispose(),jx(e)}))):jx(e)}dispose(){this._isAppended&&(Zx.off(this._element,PC),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Sx(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Zx.on(e,PC,(()=>{jx(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){Px(e,this._getElement(),this._config.isAnimated)}}const qC=".bs.focustrap",HC=`focusin${qC}`,UC=`keydown.tab${qC}`,VC="backward",FC={autofocus:!0,trapElement:null},BC={autofocus:"boolean",trapElement:"element"};class WC extends nk{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return FC}static get DefaultType(){return BC}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Zx.off(document,qC),Zx.on(document,HC,(e=>this._handleFocusin(e))),Zx.on(document,UC,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Zx.off(document,qC))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=ak.focusableChildren(t);0===r.length?t.focus():this._lastTabNavDirection===VC?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?VC:"forward")}}const KC=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",XC=".sticky-top",GC="padding-right",JC="margin-right";class QC{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,GC,(t=>t+e)),this._setElementAttributes(KC,GC,(t=>t+e)),this._setElementAttributes(XC,JC,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,GC),this._resetElementAttributes(KC,GC),this._resetElementAttributes(XC,JC)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+o)return;this._saveInitialAttribute(e,t);const n=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${r(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&ok.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const r=ok.getDataAttribute(e,t);null!==r?(ok.removeDataAttribute(e,t),e.style.setProperty(t,r)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(Cx(e))t(e);else for(const r of ak.find(e,this._element))t(r)}}const YC=".bs.modal",ZC=`hide${YC}`,eS=`hidePrevented${YC}`,tS=`hidden${YC}`,rS=`show${YC}`,oS=`shown${YC}`,nS=`resize${YC}`,iS=`click.dismiss${YC}`,sS=`mousedown.dismiss${YC}`,aS=`keydown.dismiss${YC}`,lS=`click${YC}.data-api`,cS="modal-open",uS="show",dS="modal-static",pS={backdrop:!0,focus:!0,keyboard:!0},fS={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class bS extends ik{constructor(e,t){super(e,t),this._dialog=ak.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new QC,this._addEventListeners()}static get Default(){return pS}static get DefaultType(){return fS}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Zx.trigger(this._element,rS,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(cS),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){this._isShown&&!this._isTransitioning&&(Zx.trigger(this._element,ZC).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(uS),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){Zx.off(window,YC),Zx.off(this._dialog,YC),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new zC({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new WC({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=ak.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),$x(this._element),this._element.classList.add(uS),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Zx.trigger(this._element,oS,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){Zx.on(this._element,aS,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),Zx.on(window,nS,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),Zx.on(this._element,sS,(e=>{Zx.one(this._element,iS,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(cS),this._resetAdjustments(),this._scrollBar.reset(),Zx.trigger(this._element,tS)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(Zx.trigger(this._element,eS).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(dS)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(dS),this._queueCallback((()=>{this._element.classList.remove(dS),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){const e=Rx()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!r&&e){const e=Rx()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const r=bS.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===r[e])throw new TypeError(`No method named "${e}"`);r[e](t)}}))}}Zx.on(document,lS,'[data-bs-toggle="modal"]',(function(e){const t=ak.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),Zx.one(t,rS,(e=>{e.defaultPrevented||Zx.one(t,tS,(()=>{Ex(this)&&this.focus()}))}));const r=ak.findOne(".modal.show");r&&bS.getInstance(r).hide(),bS.getOrCreateInstance(t).toggle(this)})),lk(bS),Dx(bS);const hS=".bs.offcanvas",gS=".data-api",vS=`load${hS}${gS}`,mS="show",yS="showing",wS="hiding",_S=".offcanvas.show",xS=`show${hS}`,kS=`shown${hS}`,CS=`hide${hS}`,SS=`hidePrevented${hS}`,ES=`hidden${hS}`,TS=`resize${hS}`,AS=`click${hS}${gS}`,OS=`keydown.dismiss${hS}`,$S={backdrop:!0,keyboard:!0,scroll:!1},IS={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class LS extends ik{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return $S}static get DefaultType(){return IS}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||Zx.trigger(this._element,xS,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new QC).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(yS),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(mS),this._element.classList.remove(yS),Zx.trigger(this._element,kS,{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(Zx.trigger(this._element,CS).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(wS),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(mS,wS),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new QC).reset(),Zx.trigger(this._element,ES)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new zC({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():Zx.trigger(this._element,SS)}:null})}_initializeFocusTrap(){return new WC({trapElement:this._element})}_addEventListeners(){Zx.on(this._element,OS,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():Zx.trigger(this._element,SS))}))}static jQueryInterface(e){return this.each((function(){const t=LS.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}Zx.on(document,AS,'[data-bs-toggle="offcanvas"]',(function(e){const t=ak.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Tx(this))return;Zx.one(t,ES,(()=>{Ex(this)&&this.focus()}));const r=ak.findOne(_S);r&&r!==t&&LS.getInstance(r).hide(),LS.getOrCreateInstance(t).toggle(this)})),Zx.on(window,vS,(()=>{for(const e of ak.find(_S))LS.getOrCreateInstance(e).show()})),Zx.on(window,TS,(()=>{for(const e of ak.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&LS.getOrCreateInstance(e).hide()})),lk(LS),Dx(LS);const RS={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},DS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),jS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,PS=(e,t)=>{const r=e.nodeName.toLowerCase();return t.includes(r)?!DS.has(r)||Boolean(jS.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(r)))},MS={allowList:RS,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},NS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},zS={entry:"(string|element|function|null)",selector:"(string|element)"};class qS extends nk{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return MS}static get DefaultType(){return NS}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,r]of Object.entries(this._config.content))this._setContent(e,r,t);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},zS)}_setContent(e,t,r){const o=ak.findOne(r,e);o&&((t=this._resolvePossibleFunction(t))?Cx(t)?this._putElementInTemplate(Sx(t),o):this._config.html?o.innerHTML=this._maybeSanitize(t):o.textContent=t:o.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,r){if(!e.length)return e;if(r&&"function"==typeof r)return r(e);const o=(new window.DOMParser).parseFromString(e,"text/html"),n=[].concat(...o.body.querySelectorAll("*"));for(const e of n){const r=e.nodeName.toLowerCase();if(!Object.keys(t).includes(r)){e.remove();continue}const o=[].concat(...e.attributes),n=[].concat(t["*"]||[],t[r]||[]);for(const t of o)PS(t,n)||e.removeAttribute(t.nodeName)}return o.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return jx(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const HS=new Set(["sanitize","allowList","sanitizeFn"]),US="fade",VS="show",FS=".tooltip-inner",BS=".modal",WS="hide.bs.modal",KS="hover",XS="focus",GS={AUTO:"auto",TOP:"top",RIGHT:Rx()?"left":"right",BOTTOM:"bottom",LEFT:Rx()?"right":"left"},JS={allowList:RS,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},QS={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class YS extends ik{constructor(e,r){if(void 0===t)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,r),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return JS}static get DefaultType(){return QS}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),Zx.off(this._element.closest(BS),WS,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=Zx.trigger(this._element,this.constructor.eventName("show")),t=(Ax(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(r),Zx.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(r),r.classList.add(VS),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))Zx.on(e,"mouseover",Ox);this._queueCallback((()=>{Zx.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!Zx.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(VS),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))Zx.off(e,"mouseover",Ox);this._activeTrigger.click=!1,this._activeTrigger[XS]=!1,this._activeTrigger[KS]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Zx.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(US,VS),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(US),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new qS({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[FS]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(US)}_isShown(){return this.tip&&this.tip.classList.contains(VS)}_createPopper(e){const t=jx(this._config.placement,[this,e,this._element]),r=GS[t.toUpperCase()];return vx(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return jx(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...jx(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)Zx.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===KS?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),r=t===KS?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");Zx.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?XS:KS]=!0,t._enter()})),Zx.on(this._element,r,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?XS:KS]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},Zx.on(this._element.closest(BS),WS,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=ok.getDataAttributes(this._element);for(const e of Object.keys(t))HS.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:Sx(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=YS.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Dx(YS);const ZS=".popover-header",eE=".popover-body",tE={...YS.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},rE={...YS.DefaultType,content:"(null|string|element|function)"};class oE extends YS{static get Default(){return tE}static get DefaultType(){return rE}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ZS]:this._getTitle(),[eE]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=oE.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Dx(oE);const nE=".bs.scrollspy",iE=`activate${nE}`,sE=`click${nE}`,aE=`load${nE}.data-api`,lE="active",cE="[href]",uE=".nav-link",dE=`${uE}, .nav-item > ${uE}, .list-group-item`,pE={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},fE={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class bE extends ik{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return pE}static get DefaultType(){return fE}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Sx(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Zx.off(this._config.target,sE),Zx.on(this._config.target,sE,cE,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo)return void r.scrollTo({top:o,behavior:"smooth"});r.scrollTop=o}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),r=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},o=(this._rootElement||document.documentElement).scrollTop,n=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const i of e){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(i));continue}const e=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&e){if(r(i),!o)return}else n||e||r(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=ak.find(cE,this._config.target);for(const t of e){if(!t.hash||Tx(t))continue;const e=ak.findOne(decodeURI(t.hash),this._element);Ex(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(lE),this._activateParents(e),Zx.trigger(this._element,iE,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))ak.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(lE);else for(const t of ak.parents(e,".nav, .list-group"))for(const e of ak.prev(t,dE))e.classList.add(lE)}_clearActiveClass(e){e.classList.remove(lE);const t=ak.find(`${cE}.${lE}`,e);for(const e of t)e.classList.remove(lE)}static jQueryInterface(e){return this.each((function(){const t=bE.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Zx.on(window,aE,(()=>{for(const e of ak.find('[data-bs-spy="scroll"]'))bE.getOrCreateInstance(e)})),Dx(bE);const hE=".bs.tab",gE=`hide${hE}`,vE=`hidden${hE}`,mE=`show${hE}`,yE=`shown${hE}`,wE=`click${hE}`,_E=`keydown${hE}`,xE=`load${hE}`,kE="ArrowLeft",CE="ArrowRight",SE="ArrowUp",EE="ArrowDown",TE="Home",AE="End",OE="active",$E="fade",IE="show",LE=".dropdown-toggle",RE=`:not(${LE})`,DE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',jE=`.nav-link${RE}, .list-group-item${RE}, [role="tab"]${RE}, ${DE}`,PE=`.${OE}[data-bs-toggle="tab"], .${OE}[data-bs-toggle="pill"], .${OE}[data-bs-toggle="list"]`;class ME extends ik{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Zx.on(this._element,_E,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?Zx.trigger(t,gE,{relatedTarget:e}):null;Zx.trigger(e,mE,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(OE),this._activate(ak.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Zx.trigger(e,yE,{relatedTarget:t})):e.classList.add(IE)}),e,e.classList.contains($E)))}_deactivate(e,t){e&&(e.classList.remove(OE),e.blur(),this._deactivate(ak.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Zx.trigger(e,vE,{relatedTarget:t})):e.classList.remove(IE)}),e,e.classList.contains($E)))}_keydown(e){if(![kE,CE,SE,EE,TE,AE].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!Tx(e)));let r;if([TE,AE].includes(e.key))r=t[e.key===TE?0:t.length-1];else{const o=[CE,EE].includes(e.key);r=Mx(t,e.target,o,!0)}r&&(r.focus({preventScroll:!0}),ME.getOrCreateInstance(r).show())}_getChildren(){return ak.find(jE,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",t),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=ak.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const r=this._getOuterElement(e);if(!r.classList.contains("dropdown"))return;const o=(e,o)=>{const n=ak.findOne(e,r);n&&n.classList.toggle(o,t)};o(LE,OE),o(".dropdown-menu",IE),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(OE)}_getInnerElement(e){return e.matches(jE)?e:ak.findOne(jE,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=ME.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Zx.on(document,wE,DE,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),Tx(this)||ME.getOrCreateInstance(this).show()})),Zx.on(window,xE,(()=>{for(const e of ak.find(PE))ME.getOrCreateInstance(e)})),Dx(ME);const NE=".bs.toast",zE=`mouseover${NE}`,qE=`mouseout${NE}`,HE=`focusin${NE}`,UE=`focusout${NE}`,VE=`hide${NE}`,FE=`hidden${NE}`,BE=`show${NE}`,WE=`shown${NE}`,KE="hide",XE="show",GE="showing",JE={animation:"boolean",autohide:"boolean",delay:"number"},QE={animation:!0,autohide:!0,delay:5e3};class YE extends ik{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return QE}static get DefaultType(){return JE}static get NAME(){return"toast"}show(){Zx.trigger(this._element,BE).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(KE),$x(this._element),this._element.classList.add(XE,GE),this._queueCallback((()=>{this._element.classList.remove(GE),Zx.trigger(this._element,WE),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(Zx.trigger(this._element,VE).defaultPrevented||(this._element.classList.add(GE),this._queueCallback((()=>{this._element.classList.add(KE),this._element.classList.remove(GE,XE),Zx.trigger(this._element,FE)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(XE),super.dispose()}isShown(){return this._element.classList.contains(XE)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){Zx.on(this._element,zE,(e=>this._onInteraction(e,!0))),Zx.on(this._element,qE,(e=>this._onInteraction(e,!1))),Zx.on(this._element,HE,(e=>this._onInteraction(e,!0))),Zx.on(this._element,UE,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=YE.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}lk(YE),Dx(YE);var ZE=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},eT=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let tT=class extends Ew{constructor(){super(...arguments),this.ariaExpanded="false",this.ariaLabel="Toggle menu",this.buttonType="button",this.collapseToggle="collapse",this.dblClickClass="qbo-doubleclick",this.dropdownId="qboMainMenu",this.dropdownToggle="dropdown",this.iconClass="qbo-icon",this.liLinkToggleClass="qbo-dropdown",this.liLinkClass="qbo-nav-item",this.liAMenuClass="qbo-dropdown-item",this.navClass="qbo-mainmenu",this.popoverContainer="body",this.popoverHtml="false",this.popoverPlacement="bottom",this.popoverToggle="popover",this.popoverTrigger="hover",this.spanMenuClass="qbo-submenuexpand",this.spanMenuValue=">",this.ulMainMenuToggleClass="qbo-dropdown-mainmenu",this.ulSubMenuClass="submenu",this.ulSubMenuToggleClass="dropdown-menu",this.apiEndpoint=new URL("config/mainmenu",this.baseURI),this.renderInHost=!0,this.targetElement=null,this.handleResize=()=>{window.innerWidth<992?this.renderRoot.querySelectorAll("button").forEach((function(e){null!=e&&e instanceof HTMLElement&&e.hasAttribute("aria-expanded")&&"true"==e.getAttribute("aria-expanded")&&e.click()})):this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} .${this.ulSubMenuClass}`).forEach((function(e){null!=e&&e instanceof HTMLElement&&e.hasAttribute("style")&&e.removeAttribute("style")}))}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize)}disconnectedCallback(){window.removeEventListener("resize",this.handleResize),super.disconnectedCallback()}updated(e){if(super.updated(e),null!=e.get("jsonData")){this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass}`).forEach((e=>{e.addEventListener("click",(function(e){e.stopPropagation()}))}));const e=this.ulSubMenuClass;this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} a`).forEach((function(t){t.addEventListener("click",(t=>{if(null!=t.currentTarget&&t.currentTarget instanceof HTMLElement&&window.innerWidth<992){const r=t.currentTarget.nextElementSibling;null!=r&&r instanceof HTMLElement&&r.classList.contains(e)&&(t.preventDefault(),r.style.display="block"==r.style.display?"none":"block")}}))})),this.renderRoot.querySelectorAll(`[data-bs-toggle="${this.popoverToggle}"]`).forEach((function(e){new oE(e)}))}}renderImage(e){return null!=e?Ae`<img src="${e}"/><span/>`:Ae``}renderMenu(e,t,r){let o=Ae``;const n=null!=e&&null!=e.Menu?e.Menu:e;return null!=n&&(n.forEach?n.forEach((e=>{o=null!=e.Menu?Ae`${o}${this.renderMenuDropdown(e,r)}`:"Divider"==e.Type?Ae`${o}${this.renderMenuDivider()}`:t?Ae`${o}${this.renderMenuDropdownLink(e.URL,e.Text,e.Icon)}`:Ae`${o}${this.renderMenuLink(e)}`})):o=null!=n.Menu?Ae`${o}${this.renderMenuDropdown(n,r)}`:"Divider"==n.Type?Ae`${o}${this.renderMenuDivider()}`:t?Ae`${o}${this.renderMenuDropdownLink(n.URL,n.Text,n.Icon)}`:Ae`${o}${this.renderMenuLink(n)}`),Ae`${o}`}renderMenuDivider(){return Ae`<li><hr/></li>`}renderMenuDropdown(e,t){const r=null!=e.Icon&&""!=e.Icon?Ae`<i class="${e.Icon} ${this.iconClass}" />`:"";return t?Ae`<li>
221
+ `]}async connectedCallback(){super.connectedCallback()}render(){return Ae`<iframe src='sample.pdf' width='100%' height='800px' frameborder='0'></iframe>`}};Pw([Je({type:Boolean}),Mw("design:type",Object)],Nw.prototype,"open",void 0),Pw([Je({type:Boolean}),Mw("design:type",Object)],Nw.prototype,"loading",void 0),Pw([Je({type:Boolean}),Mw("design:type",Object)],Nw.prototype,"renderInHost",void 0),Nw=Pw([Ke("qbo-docviewer")],Nw);var zw,qw=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Hw=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Uw=class extends Be{static{zw=this}static{this.formAssociated=!0}constructor(){super(),this.value=new FormData,this.template="",this.name="",this.data=null,this.templateNode=null,this.handleFormChange=e=>{const t=e.target;t.matches("input, select, textarea")&&t.name&&!t.assignedSlot&&(this.value.set(`${this.name}${t.name}`,t.value),this.logger.logTrace(`${this.name}${t.name} was set to ${t.value}`)),this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.augment=e=>{if(e.stopPropagation(),console.log(e),e instanceof CustomEvent&&e.detail.formData instanceof FormData)for(let[t,r]of e.detail.formData.entries())this.value.set(t,r),console.log(`Added ${t}=${r} to ${this.name}`);this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.internals=this.attachInternals(),this.logger=I.container.resolve(tt)}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=aw(this.innerHTML,this.data)),this.shadowRoot?.addEventListener("change",this.handleFormChange),this.shadowRoot?.addEventListener("qbo-form-update",this.augment)}disconnectedCallback(){super.disconnectedCallback(),this.shadowRoot?.removeEventListener("change",this.handleFormChange),this.shadowRoot?.removeEventListener("qbo-form-update",this.augment)}updated(e){super.updated(e),this.establishFormData()}render(){return Ae`<slot></slot>`}establishFormData(){const e=this.shadowRoot?.querySelectorAll("input, select, textarea"),t=Array.from(e).filter((e=>!e.assignedSlot&&(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof zw)&&e.name));t.forEach((e=>{const t=e;if(t instanceof HTMLSelectElement)this.value.set(`${this.name}${t.name}`,t.value);else if(t instanceof HTMLTextAreaElement)this.value.set(`${this.name}${t.name}`,t.value);else if(t instanceof zw)for(let[e,r]of t.value.entries())this.value.set(`${this.name}${e}`,r);else t instanceof HTMLInputElement&&("checkbox"===t.type||"radio"===t.type?t.checked&&this.value.set(`${this.name}${t.name}`,t.value):this.value.set(`${this.name}${t.name}`,t.value))})),this.internals.setFormValue(this.value),this.logger.logTrace(`Set ${this.name} values to `,this.value)}};qw([Je({type:FormData}),Hw("design:type",FormData)],Uw.prototype,"value",void 0),qw([Je({type:String}),Hw("design:type",Object)],Uw.prototype,"template",void 0),qw([Je({type:String}),Hw("design:type",Object)],Uw.prototype,"name",void 0),qw([Je({type:Object}),Hw("design:type",Object)],Uw.prototype,"data",void 0),Uw=zw=qw([Ke("qbo-form-element"),Hw("design:paramtypes",[])],Uw);var Vw="top",Fw="bottom",Bw="right",Ww="left",Kw="auto",Xw=[Vw,Fw,Bw,Ww],Gw="start",Jw="end",Qw="clippingParents",Yw="viewport",Zw="popper",e_="reference",t_=Xw.reduce((function(e,t){return e.concat([t+"-"+Gw,t+"-"+Jw])}),[]),r_=[].concat(Xw,[Kw]).reduce((function(e,t){return e.concat([t,t+"-"+Gw,t+"-"+Jw])}),[]),o_="beforeRead",n_="read",i_="afterRead",s_="beforeMain",a_="main",l_="afterMain",c_="beforeWrite",u_="write",d_="afterWrite",p_=[o_,n_,i_,s_,a_,l_,c_,u_,d_];function b_(e){return e?(e.nodeName||"").toLowerCase():null}function f_(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function h_(e){return e instanceof f_(e).Element||e instanceof Element}function g_(e){return e instanceof f_(e).HTMLElement||e instanceof HTMLElement}function v_(e){return"undefined"!=typeof ShadowRoot&&(e instanceof f_(e).ShadowRoot||e instanceof ShadowRoot)}const m_={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},o=t.attributes[e]||{},n=t.elements[e];g_(n)&&b_(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(e){var t=o[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],n=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});g_(o)&&b_(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function y_(e){return e.split("-")[0]}var w_=Math.max,__=Math.min,x_=Math.round;function k_(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function C_(){return!/^((?!chrome|android).)*safari/i.test(k_())}function S_(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var o=e.getBoundingClientRect(),n=1,i=1;t&&g_(e)&&(n=e.offsetWidth>0&&x_(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&x_(o.height)/e.offsetHeight||1);var s=(h_(e)?f_(e):window).visualViewport,a=!C_()&&r,l=(o.left+(a&&s?s.offsetLeft:0))/n,c=(o.top+(a&&s?s.offsetTop:0))/i,u=o.width/n,d=o.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function E_(e){var t=S_(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function T_(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&v_(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function A_(e){return f_(e).getComputedStyle(e)}function O_(e){return["table","td","th"].indexOf(b_(e))>=0}function $_(e){return((h_(e)?e.ownerDocument:e.document)||window.document).documentElement}function I_(e){return"html"===b_(e)?e:e.assignedSlot||e.parentNode||(v_(e)?e.host:null)||$_(e)}function L_(e){return g_(e)&&"fixed"!==A_(e).position?e.offsetParent:null}function R_(e){for(var t=f_(e),r=L_(e);r&&O_(r)&&"static"===A_(r).position;)r=L_(r);return r&&("html"===b_(r)||"body"===b_(r)&&"static"===A_(r).position)?t:r||function(e){var t=/firefox/i.test(k_());if(/Trident/i.test(k_())&&g_(e)&&"fixed"===A_(e).position)return null;var r=I_(e);for(v_(r)&&(r=r.host);g_(r)&&["html","body"].indexOf(b_(r))<0;){var o=A_(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(e)||t}function D_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function j_(e,t,r){return w_(e,__(t,r))}function P_(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function M_(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}const N_={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,o=e.name,n=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=y_(r.placement),l=D_(a),c=[Ww,Bw].indexOf(a)>=0?"height":"width";if(i&&s){var u=function(e,t){return P_("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:M_(e,Xw))}(n.padding,r),d=E_(i),p="y"===l?Vw:Ww,b="y"===l?Fw:Bw,f=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],h=s[l]-r.rects.reference[l],g=R_(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,m=f/2-h/2,y=u[p],w=v-d[c]-u[b],_=v/2-d[c]/2+m,x=j_(y,_,w),k=l;r.modifiersData[o]=((t={})[k]=x,t.centerOffset=x-_,t)}},effect:function(e){var t=e.state,r=e.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&T_(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function z_(e){return e.split("-")[1]}var q_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function H_(e){var t,r=e.popper,o=e.popperRect,n=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,b=void 0===p?0:p,f=s.y,h=void 0===f?0:f,g="function"==typeof u?u({x:b,y:h}):{x:b,y:h};b=g.x,h=g.y;var v=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),y=Ww,w=Vw,_=window;if(c){var x=R_(r),k="clientHeight",C="clientWidth";x===f_(r)&&"static"!==A_(x=$_(r)).position&&"absolute"===a&&(k="scrollHeight",C="scrollWidth"),(n===Vw||(n===Ww||n===Bw)&&i===Jw)&&(w=Fw,h-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[k])-o.height,h*=l?1:-1),n!==Ww&&(n!==Vw&&n!==Fw||i!==Jw)||(y=Bw,b-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[C])-o.width,b*=l?1:-1)}var S,E=Object.assign({position:a},c&&q_),T=!0===u?function(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:x_(r*n)/n||0,y:x_(o*n)/n||0}}({x:b,y:h},f_(r)):{x:b,y:h};return b=T.x,h=T.y,l?Object.assign({},E,((S={})[w]=m?"0":"",S[y]=v?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+b+"px, "+h+"px)":"translate3d("+b+"px, "+h+"px, 0)",S)):Object.assign({},E,((t={})[w]=m?h+"px":"",t[y]=v?b+"px":"",t.transform="",t))}const U_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=void 0===o||o,i=r.adaptive,s=void 0===i||i,a=r.roundOffsets,l=void 0===a||a,c={placement:y_(t.placement),variation:z_(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,H_(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,H_(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var V_={passive:!0};const F_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,i=void 0===n||n,s=o.resize,a=void 0===s||s,l=f_(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",r.update,V_)})),a&&l.addEventListener("resize",r.update,V_),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",r.update,V_)})),a&&l.removeEventListener("resize",r.update,V_)}},data:{}};var B_={left:"right",right:"left",bottom:"top",top:"bottom"};function W_(e){return e.replace(/left|right|bottom|top/g,(function(e){return B_[e]}))}var K_={start:"end",end:"start"};function X_(e){return e.replace(/start|end/g,(function(e){return K_[e]}))}function G_(e){var t=f_(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function J_(e){return S_($_(e)).left+G_(e).scrollLeft}function Q_(e){var t=A_(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Y_(e){return["html","body","#document"].indexOf(b_(e))>=0?e.ownerDocument.body:g_(e)&&Q_(e)?e:Y_(I_(e))}function Z_(e,t){var r;void 0===t&&(t=[]);var o=Y_(e),n=o===(null==(r=e.ownerDocument)?void 0:r.body),i=f_(o),s=n?[i].concat(i.visualViewport||[],Q_(o)?o:[]):o,a=t.concat(s);return n?a:a.concat(Z_(I_(s)))}function ex(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tx(e,t,r){return t===Yw?ex(function(e,t){var r=f_(e),o=$_(e),n=r.visualViewport,i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(n){i=n.width,s=n.height;var c=C_();(c||!c&&"fixed"===t)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:i,height:s,x:a+J_(e),y:l}}(e,r)):h_(t)?function(e,t){var r=S_(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):ex(function(e){var t,r=$_(e),o=G_(e),n=null==(t=e.ownerDocument)?void 0:t.body,i=w_(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=w_(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+J_(e),l=-o.scrollTop;return"rtl"===A_(n||r).direction&&(a+=w_(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}($_(e)))}function rx(e){var t,r=e.reference,o=e.element,n=e.placement,i=n?y_(n):null,s=n?z_(n):null,a=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2;switch(i){case Vw:t={x:a,y:r.y-o.height};break;case Fw:t={x:a,y:r.y+r.height};break;case Bw:t={x:r.x+r.width,y:l};break;case Ww:t={x:r.x-o.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?D_(i):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Gw:t[c]=t[c]-(r[u]/2-o[u]/2);break;case Jw:t[c]=t[c]+(r[u]/2-o[u]/2)}}return t}function ox(e,t){void 0===t&&(t={});var r=t,o=r.placement,n=void 0===o?e.placement:o,i=r.strategy,s=void 0===i?e.strategy:i,a=r.boundary,l=void 0===a?Qw:a,c=r.rootBoundary,u=void 0===c?Yw:c,d=r.elementContext,p=void 0===d?Zw:d,b=r.altBoundary,f=void 0!==b&&b,h=r.padding,g=void 0===h?0:h,v=P_("number"!=typeof g?g:M_(g,Xw)),m=p===Zw?e_:Zw,y=e.rects.popper,w=e.elements[f?m:p],_=function(e,t,r,o){var n="clippingParents"===t?function(e){var t=Z_(I_(e)),r=["absolute","fixed"].indexOf(A_(e).position)>=0&&g_(e)?R_(e):e;return h_(r)?t.filter((function(e){return h_(e)&&T_(e,r)&&"body"!==b_(e)})):[]}(e):[].concat(t),i=[].concat(n,[r]),s=i[0],a=i.reduce((function(t,r){var n=tx(e,r,o);return t.top=w_(n.top,t.top),t.right=__(n.right,t.right),t.bottom=__(n.bottom,t.bottom),t.left=w_(n.left,t.left),t}),tx(e,s,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(h_(w)?w:w.contextElement||$_(e.elements.popper),l,u,s),x=S_(e.elements.reference),k=rx({reference:x,element:y,strategy:"absolute",placement:n}),C=ex(Object.assign({},y,k)),S=p===Zw?C:x,E={top:_.top-S.top+v.top,bottom:S.bottom-_.bottom+v.bottom,left:_.left-S.left+v.left,right:S.right-_.right+v.right},T=e.modifiersData.offset;if(p===Zw&&T){var A=T[n];Object.keys(E).forEach((function(e){var t=[Bw,Fw].indexOf(e)>=0?1:-1,r=[Vw,Fw].indexOf(e)>=0?"y":"x";E[e]+=A[r]*t}))}return E}const nx={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,i=void 0===n||n,s=r.altAxis,a=void 0===s||s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,b=r.flipVariations,f=void 0===b||b,h=r.allowedAutoPlacements,g=t.options.placement,v=y_(g),m=l||(v!==g&&f?function(e){if(y_(e)===Kw)return[];var t=W_(e);return[X_(e),t,X_(t)]}(g):[W_(g)]),y=[g].concat(m).reduce((function(e,r){return e.concat(y_(r)===Kw?function(e,t){void 0===t&&(t={});var r=t,o=r.placement,n=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?r_:l,u=z_(o),d=u?a?t_:t_.filter((function(e){return z_(e)===u})):Xw,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var b=p.reduce((function(t,r){return t[r]=ox(e,{placement:r,boundary:n,rootBoundary:i,padding:s})[y_(r)],t}),{});return Object.keys(b).sort((function(e,t){return b[e]-b[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:h}):r)}),[]),w=t.rects.reference,_=t.rects.popper,x=new Map,k=!0,C=y[0],S=0;S<y.length;S++){var E=y[S],T=y_(E),A=z_(E)===Gw,O=[Vw,Fw].indexOf(T)>=0,$=O?"width":"height",I=ox(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),L=O?A?Bw:Ww:A?Fw:Vw;w[$]>_[$]&&(L=W_(L));var R=W_(L),D=[];if(i&&D.push(I[T]<=0),a&&D.push(I[L]<=0,I[R]<=0),D.every((function(e){return e}))){C=E,k=!1;break}x.set(E,D)}if(k)for(var j=function(e){var t=y.find((function(t){var r=x.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},P=f?3:1;P>0&&"break"!==j(P);P--);t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ix(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function sx(e){return[Vw,Bw,Fw,Ww].some((function(t){return e[t]>=0}))}const ax={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,i=t.modifiersData.preventOverflow,s=ox(t,{elementContext:"reference"}),a=ox(t,{altBoundary:!0}),l=ix(s,o),c=ix(a,n,i),u=sx(l),d=sx(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},lx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,o=e.name,n=r.offset,i=void 0===n?[0,0]:n,s=r_.reduce((function(e,r){return e[r]=function(e,t,r){var o=y_(e),n=[Ww,Vw].indexOf(o)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*n,[Ww,Bw].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}(r,t.rects,i),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=s}},cx={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=rx({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ux={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,i=void 0===n||n,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,p=r.tether,b=void 0===p||p,f=r.tetherOffset,h=void 0===f?0:f,g=ox(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=y_(t.placement),m=z_(t.placement),y=!m,w=D_(v),_="x"===w?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,E="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(x){if(i){var O,$="y"===w?Vw:Ww,I="y"===w?Fw:Bw,L="y"===w?"height":"width",R=x[w],D=R+g[$],j=R-g[I],P=b?-C[L]/2:0,M=m===Gw?k[L]:C[L],N=m===Gw?-C[L]:-k[L],z=t.elements.arrow,q=b&&z?E_(z):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=H[$],V=H[I],F=j_(0,k[L],q[L]),B=y?k[L]/2-P-F-U-E.mainAxis:M-F-U-E.mainAxis,W=y?-k[L]/2+P+F+V+E.mainAxis:N+F+V+E.mainAxis,K=t.elements.arrow&&R_(t.elements.arrow),X=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,G=null!=(O=null==T?void 0:T[w])?O:0,J=R+W-G,Q=j_(b?__(D,R+B-G-X):D,R,b?w_(j,J):j);x[w]=Q,A[w]=Q-R}if(a){var Y,Z="x"===w?Vw:Ww,ee="x"===w?Fw:Bw,te=x[_],re="y"===_?"height":"width",oe=te+g[Z],ne=te-g[ee],ie=-1!==[Vw,Ww].indexOf(v),se=null!=(Y=null==T?void 0:T[_])?Y:0,ae=ie?oe:te-k[re]-C[re]-se+E.altAxis,le=ie?te+k[re]+C[re]-se-E.altAxis:ne,ce=b&&ie?function(e,t,r){var o=j_(e,t,r);return o>r?r:o}(ae,te,le):j_(b?ae:oe,te,b?le:ne);x[_]=ce,A[_]=ce-te}t.modifiersData[o]=A}},requiresIfExists:["offset"]};function dx(e,t,r){void 0===r&&(r=!1);var o,n,i=g_(t),s=g_(t)&&function(e){var t=e.getBoundingClientRect(),r=x_(t.width)/e.offsetWidth||1,o=x_(t.height)/e.offsetHeight||1;return 1!==r||1!==o}(t),a=$_(t),l=S_(e,s,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==b_(t)||Q_(a))&&(c=(o=t)!==f_(o)&&g_(o)?{scrollLeft:(n=o).scrollLeft,scrollTop:n.scrollTop}:G_(o)),g_(t)?((u=S_(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=J_(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function px(e){var t=new Map,r=new Set,o=[];function n(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var o=t.get(e);o&&n(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||n(e)})),o}var bx={placement:"bottom",modifiers:[],strategy:"absolute"};function fx(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function hx(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,o=void 0===r?[]:r,n=t.defaultOptions,i=void 0===n?bx:n;return function(e,t,r){void 0===r&&(r=i);var n,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},bx,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(r){var n="function"==typeof r?r(a.options):r;d(),a.options=Object.assign({},i,a.options,n),a.scrollParents={reference:h_(e)?Z_(e):e.contextElement?Z_(e.contextElement):[],popper:Z_(t)};var s,c,p=function(e){var t=px(e);return p_.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((s=[].concat(o,a.options.modifiers),c=s.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=p.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,o=void 0===r?{}:r,n=e.effect;if("function"==typeof n){var i=n({state:a,name:t,instance:u,options:o});l.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,r=e.popper;if(fx(t,r)){a.rects={reference:dx(t,R_(r),"fixed"===a.options.strategy),popper:E_(r)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<a.orderedModifiers.length;o++)if(!0!==a.reset){var n=a.orderedModifiers[o],i=n.fn,s=n.options,l=void 0===s?{}:s,d=n.name;"function"==typeof i&&(a=i({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,o=-1}}},update:(n=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(n())}))}))),s}),destroy:function(){d(),c=!0}};if(!fx(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(r).then((function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var gx=hx(),vx=hx({defaultModifiers:[F_,cx,U_,m_,lx,nx,ux,N_,ax]}),mx=hx({defaultModifiers:[F_,cx,U_,m_]});const yx=new Map,wx={set(e,t,r){yx.has(e)||yx.set(e,new Map);const o=yx.get(e);o.has(t)||0===o.size?o.set(t,r):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`)},get:(e,t)=>yx.has(e)&&yx.get(e).get(t)||null,remove(e,t){if(!yx.has(e))return;const r=yx.get(e);r.delete(t),0===r.size&&yx.delete(e)}},_x="transitionend",xx=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),kx=e=>{e.dispatchEvent(new Event(_x))},Cx=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Sx=e=>Cx(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(xx(e)):null,Ex=e=>{if(!Cx(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),r=e.closest("details:not([open])");if(!r)return t;if(r!==e){const t=e.closest("summary");if(t&&t.parentNode!==r)return!1;if(null===t)return!1}return t},Tx=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),Ax=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Ax(e.parentNode):null},Ox=()=>{},$x=e=>{e.offsetHeight},Ix=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Lx=[],Rx=()=>"rtl"===document.documentElement.dir,Dx=e=>{var t;t=()=>{const t=Ix();if(t){const r=e.NAME,o=t.fn[r];t.fn[r]=e.jQueryInterface,t.fn[r].Constructor=e,t.fn[r].noConflict=()=>(t.fn[r]=o,e.jQueryInterface)}},"loading"===document.readyState?(Lx.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of Lx)e()})),Lx.push(t)):t()},jx=(e,t=[],r=e)=>"function"==typeof e?e(...t):r,Px=(e,t,r=!0)=>{if(!r)return void jx(e);const o=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:r}=window.getComputedStyle(e);const o=Number.parseFloat(t),n=Number.parseFloat(r);return o||n?(t=t.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(r))):0})(t)+5;let n=!1;const i=({target:r})=>{r===t&&(n=!0,t.removeEventListener(_x,i),jx(e))};t.addEventListener(_x,i),setTimeout((()=>{n||kx(t)}),o)},Mx=(e,t,r,o)=>{const n=e.length;let i=e.indexOf(t);return-1===i?!r&&o?e[n-1]:e[0]:(i+=r?1:-1,o&&(i=(i+n)%n),e[Math.max(0,Math.min(i,n-1))])},Nx=/[^.]*(?=\..*)\.|.*/,zx=/\..*/,qx=/::\d+$/,Hx={};let Ux=1;const Vx={mouseenter:"mouseover",mouseleave:"mouseout"},Fx=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Bx(e,t){return t&&`${t}::${Ux++}`||e.uidEvent||Ux++}function Wx(e){const t=Bx(e);return e.uidEvent=t,Hx[t]=Hx[t]||{},Hx[t]}function Kx(e,t,r=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===r))}function Xx(e,t,r){const o="string"==typeof t,n=o?r:t||r;let i=Yx(e);return Fx.has(i)||(i=e),[o,n,i]}function Gx(e,t,r,o,n){if("string"!=typeof t||!e)return;let[i,s,a]=Xx(t,r,o);if(t in Vx){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};s=e(s)}const l=Wx(e),c=l[a]||(l[a]={}),u=Kx(c,s,i?r:null);if(u)return void(u.oneOff=u.oneOff&&n);const d=Bx(s,t.replace(Nx,"")),p=i?function(e,t,r){return function o(n){const i=e.querySelectorAll(t);for(let{target:s}=n;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return ek(n,{delegateTarget:s}),o.oneOff&&Zx.off(e,n.type,t,r),r.apply(s,[n])}}(e,r,s):function(e,t){return function r(o){return ek(o,{delegateTarget:e}),r.oneOff&&Zx.off(e,o.type,t),t.apply(e,[o])}}(e,s);p.delegationSelector=i?r:null,p.callable=s,p.oneOff=n,p.uidEvent=d,c[d]=p,e.addEventListener(a,p,i)}function Jx(e,t,r,o,n){const i=Kx(t[r],o,n);i&&(e.removeEventListener(r,i,Boolean(n)),delete t[r][i.uidEvent])}function Qx(e,t,r,o){const n=t[r]||{};for(const[i,s]of Object.entries(n))i.includes(o)&&Jx(e,t,r,s.callable,s.delegationSelector)}function Yx(e){return e=e.replace(zx,""),Vx[e]||e}const Zx={on(e,t,r,o){Gx(e,t,r,o,!1)},one(e,t,r,o){Gx(e,t,r,o,!0)},off(e,t,r,o){if("string"!=typeof t||!e)return;const[n,i,s]=Xx(t,r,o),a=s!==t,l=Wx(e),c=l[s]||{},u=t.startsWith(".");if(void 0===i){if(u)for(const r of Object.keys(l))Qx(e,l,r,t.slice(1));for(const[r,o]of Object.entries(c)){const n=r.replace(qx,"");a&&!t.includes(n)||Jx(e,l,s,o.callable,o.delegationSelector)}}else{if(!Object.keys(c).length)return;Jx(e,l,s,i,n?r:null)}},trigger(e,t,r){if("string"!=typeof t||!e)return null;const o=Ix();let n=null,i=!0,s=!0,a=!1;t!==Yx(t)&&o&&(n=o.Event(t,r),o(e).trigger(n),i=!n.isPropagationStopped(),s=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=ek(new Event(t,{bubbles:i,cancelable:!0}),r);return a&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function ek(e,t={}){for(const[r,o]of Object.entries(t))try{e[r]=o}catch(t){Object.defineProperty(e,r,{configurable:!0,get:()=>o})}return e}function tk(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function rk(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const ok={setDataAttribute(e,t,r){e.setAttribute(`data-bs-${rk(t)}`,r)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${rk(t)}`)},getDataAttributes(e){if(!e)return{};const t={},r=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const o of r){let r=o.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=tk(e.dataset[o])}return t},getDataAttribute:(e,t)=>tk(e.getAttribute(`data-bs-${rk(t)}`))};class nk{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const r=Cx(t)?ok.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof r?r:{},...Cx(t)?ok.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[o,n]of Object.entries(t)){const t=e[o],i=Cx(t)?"element":null==(r=t)?`${r}`:Object.prototype.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${i}" but expected type "${n}".`)}var r}}class ik extends nk{constructor(e,t){super(),(e=Sx(e))&&(this._element=e,this._config=this._getConfig(t),wx.set(this._element,this.constructor.DATA_KEY,this))}dispose(){wx.remove(this._element,this.constructor.DATA_KEY),Zx.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){Px(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return wx.get(Sx(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const sk=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let r=e.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),t=r&&"#"!==r?r.trim():null}return t?t.split(",").map((e=>xx(e))).join(","):null},ak={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const r=[];let o=e.parentNode.closest(t);for(;o;)r.push(o),o=o.parentNode.closest(t);return r},prev(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return[r];r=r.previousElementSibling}return[]},next(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return[r];r=r.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!Tx(e)&&Ex(e)))},getSelectorFromElement(e){const t=sk(e);return t&&ak.findOne(t)?t:null},getElementFromSelector(e){const t=sk(e);return t?ak.findOne(t):null},getMultipleElementsFromSelector(e){const t=sk(e);return t?ak.find(t):[]}},lk=(e,t="hide")=>{const r=`click.dismiss${e.EVENT_KEY}`,o=e.NAME;Zx.on(document,r,`[data-bs-dismiss="${o}"]`,(function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),Tx(this))return;const n=ak.getElementFromSelector(this)||this.closest(`.${o}`);e.getOrCreateInstance(n)[t]()}))},ck=".bs.alert",uk=`close${ck}`,dk=`closed${ck}`;class pk extends ik{static get NAME(){return"alert"}close(){if(Zx.trigger(this._element,uk).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),Zx.trigger(this._element,dk),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=pk.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}lk(pk,"close"),Dx(pk);const bk='[data-bs-toggle="button"]';class fk extends ik{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=fk.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}Zx.on(document,"click.bs.button.data-api",bk,(e=>{e.preventDefault();const t=e.target.closest(bk);fk.getOrCreateInstance(t).toggle()})),Dx(fk);const hk=".bs.swipe",gk=`touchstart${hk}`,vk=`touchmove${hk}`,mk=`touchend${hk}`,yk=`pointerdown${hk}`,wk=`pointerup${hk}`,_k={endCallback:null,leftCallback:null,rightCallback:null},xk={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class kk extends nk{constructor(e,t){super(),this._element=e,e&&kk.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return _k}static get DefaultType(){return xk}static get NAME(){return"swipe"}dispose(){Zx.off(this._element,hk)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),jx(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&jx(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Zx.on(this._element,yk,(e=>this._start(e))),Zx.on(this._element,wk,(e=>this._end(e))),this._element.classList.add("pointer-event")):(Zx.on(this._element,gk,(e=>this._start(e))),Zx.on(this._element,vk,(e=>this._move(e))),Zx.on(this._element,mk,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Ck=".bs.carousel",Sk=".data-api",Ek="ArrowLeft",Tk="ArrowRight",Ak="next",Ok="prev",$k="left",Ik="right",Lk=`slide${Ck}`,Rk=`slid${Ck}`,Dk=`keydown${Ck}`,jk=`mouseenter${Ck}`,Pk=`mouseleave${Ck}`,Mk=`dragstart${Ck}`,Nk=`load${Ck}${Sk}`,zk=`click${Ck}${Sk}`,qk="carousel",Hk="active",Uk=".active",Vk=".carousel-item",Fk=Uk+Vk,Bk={[Ek]:Ik,[Tk]:$k},Wk={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Kk={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Xk extends ik{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ak.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===qk&&this.cycle()}static get Default(){return Wk}static get DefaultType(){return Kk}static get NAME(){return"carousel"}next(){this._slide(Ak)}nextWhenVisible(){!document.hidden&&Ex(this._element)&&this.next()}prev(){this._slide(Ok)}pause(){this._isSliding&&kx(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?Zx.one(this._element,Rk,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void Zx.one(this._element,Rk,(()=>this.to(e)));const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?Ak:Ok;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Zx.on(this._element,Dk,(e=>this._keydown(e))),"hover"===this._config.pause&&(Zx.on(this._element,jk,(()=>this.pause())),Zx.on(this._element,Pk,(()=>this._maybeEnableCycle()))),this._config.touch&&kk.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of ak.find(".carousel-item img",this._element))Zx.on(e,Mk,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder($k)),rightCallback:()=>this._slide(this._directionToOrder(Ik)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new kk(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Bk[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=ak.findOne(Uk,this._indicatorsElement);t.classList.remove(Hk),t.removeAttribute("aria-current");const r=ak.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Hk),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const r=this._getActive(),o=e===Ak,n=t||Mx(this._getItems(),r,o,this._config.wrap);if(n===r)return;const i=this._getItemIndex(n),s=t=>Zx.trigger(this._element,t,{relatedTarget:n,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:i});if(s(Lk).defaultPrevented)return;if(!r||!n)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=n;const l=o?"carousel-item-start":"carousel-item-end",c=o?"carousel-item-next":"carousel-item-prev";n.classList.add(c),$x(n),r.classList.add(l),n.classList.add(l),this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(Hk),r.classList.remove(Hk,c,l),this._isSliding=!1,s(Rk)}),r,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return ak.findOne(Fk,this._element)}_getItems(){return ak.find(Vk,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Rx()?e===$k?Ok:Ak:e===$k?Ak:Ok}_orderToDirection(e){return Rx()?e===Ok?$k:Ik:e===Ok?Ik:$k}static jQueryInterface(e){return this.each((function(){const t=Xk.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}Zx.on(document,zk,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=ak.getElementFromSelector(this);if(!t||!t.classList.contains(qk))return;e.preventDefault();const r=Xk.getOrCreateInstance(t),o=this.getAttribute("data-bs-slide-to");return o?(r.to(o),void r._maybeEnableCycle()):"next"===ok.getDataAttribute(this,"slide")?(r.next(),void r._maybeEnableCycle()):(r.prev(),void r._maybeEnableCycle())})),Zx.on(window,Nk,(()=>{const e=ak.find('[data-bs-ride="carousel"]');for(const t of e)Xk.getOrCreateInstance(t)})),Dx(Xk);const Gk=".bs.collapse",Jk=`show${Gk}`,Qk=`shown${Gk}`,Yk=`hide${Gk}`,Zk=`hidden${Gk}`,eC=`click${Gk}.data-api`,tC="show",rC="collapse",oC="collapsing",nC=`:scope .${rC} .${rC}`,iC='[data-bs-toggle="collapse"]',sC={parent:null,toggle:!0},aC={parent:"(null|element)",toggle:"boolean"};class lC extends ik{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=ak.find(iC);for(const e of r){const t=ak.getSelectorFromElement(e),r=ak.find(t).filter((e=>e===this._element));null!==t&&r.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return sC}static get DefaultType(){return aC}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>lC.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(Zx.trigger(this._element,Jk).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(rC),this._element.classList.add(oC),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(oC),this._element.classList.add(rC,tC),this._element.style[t]="",Zx.trigger(this._element,Qk)}),this._element,!0),this._element.style[t]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(Zx.trigger(this._element,Yk).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,$x(this._element),this._element.classList.add(oC),this._element.classList.remove(rC,tC);for(const e of this._triggerArray){const t=ak.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(oC),this._element.classList.add(rC),Zx.trigger(this._element,Zk)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(tC)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Sx(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(iC);for(const t of e){const e=ak.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=ak.find(nC,this._config.parent);return ak.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle("collapsed",!t),r.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const r=lC.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===r[e])throw new TypeError(`No method named "${e}"`);r[e]()}}))}}Zx.on(document,eC,iC,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of ak.getMultipleElementsFromSelector(this))lC.getOrCreateInstance(e,{toggle:!1}).toggle()})),Dx(lC);const cC="dropdown",uC=".bs.dropdown",dC=".data-api",pC="ArrowUp",bC="ArrowDown",fC=`hide${uC}`,hC=`hidden${uC}`,gC=`show${uC}`,vC=`shown${uC}`,mC=`click${uC}${dC}`,yC=`keydown${uC}${dC}`,wC=`keyup${uC}${dC}`,_C="show",xC='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',kC=`${xC}.${_C}`,CC=".dropdown-menu",SC=Rx()?"top-end":"top-start",EC=Rx()?"top-start":"top-end",TC=Rx()?"bottom-end":"bottom-start",AC=Rx()?"bottom-start":"bottom-end",OC=Rx()?"left-start":"right-start",$C=Rx()?"right-start":"left-start",IC={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},LC={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class RC extends ik{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=ak.next(this._element,CC)[0]||ak.prev(this._element,CC)[0]||ak.findOne(CC,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return IC}static get DefaultType(){return LC}static get NAME(){return cC}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Tx(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Zx.trigger(this._element,gC,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))Zx.on(e,"mouseover",Ox);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(_C),this._element.classList.add(_C),Zx.trigger(this._element,vC,e)}}hide(){if(Tx(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Zx.trigger(this._element,fC,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))Zx.off(e,"mouseover",Ox);this._popper&&this._popper.destroy(),this._menu.classList.remove(_C),this._element.classList.remove(_C),this._element.setAttribute("aria-expanded","false"),ok.removeDataAttribute(this._menu,"popper"),Zx.trigger(this._element,hC,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Cx(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${cC.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===t)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:Cx(this._config.reference)?e=Sx(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const r=this._getPopperConfig();this._popper=vx(e,this._menu,r)}_isShown(){return this._menu.classList.contains(_C)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return OC;if(e.classList.contains("dropstart"))return $C;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?EC:SC:t?AC:TC}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(ok.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...jx(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=ak.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>Ex(e)));r.length&&Mx(r,t,e===bC,!r.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=RC.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=ak.find(kC);for(const r of t){const t=RC.getInstance(r);if(!t||!1===t._config.autoClose)continue;const o=e.composedPath(),n=o.includes(t._menu);if(o.includes(t._element)||"inside"===t._config.autoClose&&!n||"outside"===t._config.autoClose&&n)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const i={relatedTarget:t._element};"click"===e.type&&(i.clickEvent=e),t._completeHide(i)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),r="Escape"===e.key,o=[pC,bC].includes(e.key);if(!o&&!r)return;if(t&&!r)return;e.preventDefault();const n=this.matches(xC)?this:ak.prev(this,xC)[0]||ak.next(this,xC)[0]||ak.findOne(xC,e.delegateTarget.parentNode),i=RC.getOrCreateInstance(n);if(o)return e.stopPropagation(),i.show(),void i._selectMenuItem(e);i._isShown()&&(e.stopPropagation(),i.hide(),n.focus())}}Zx.on(document,yC,xC,RC.dataApiKeydownHandler),Zx.on(document,yC,CC,RC.dataApiKeydownHandler),Zx.on(document,mC,RC.clearMenus),Zx.on(document,wC,RC.clearMenus),Zx.on(document,mC,xC,(function(e){e.preventDefault(),RC.getOrCreateInstance(this).toggle()})),Dx(RC);const DC="backdrop",jC="show",PC=`mousedown.bs.${DC}`,MC={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},NC={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class zC extends nk{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return MC}static get DefaultType(){return NC}static get NAME(){return DC}show(e){if(!this._config.isVisible)return void jx(e);this._append();const t=this._getElement();this._config.isAnimated&&$x(t),t.classList.add(jC),this._emulateAnimation((()=>{jx(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(jC),this._emulateAnimation((()=>{this.dispose(),jx(e)}))):jx(e)}dispose(){this._isAppended&&(Zx.off(this._element,PC),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Sx(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Zx.on(e,PC,(()=>{jx(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){Px(e,this._getElement(),this._config.isAnimated)}}const qC=".bs.focustrap",HC=`focusin${qC}`,UC=`keydown.tab${qC}`,VC="backward",FC={autofocus:!0,trapElement:null},BC={autofocus:"boolean",trapElement:"element"};class WC extends nk{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return FC}static get DefaultType(){return BC}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Zx.off(document,qC),Zx.on(document,HC,(e=>this._handleFocusin(e))),Zx.on(document,UC,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Zx.off(document,qC))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=ak.focusableChildren(t);0===r.length?t.focus():this._lastTabNavDirection===VC?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?VC:"forward")}}const KC=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",XC=".sticky-top",GC="padding-right",JC="margin-right";class QC{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,GC,(t=>t+e)),this._setElementAttributes(KC,GC,(t=>t+e)),this._setElementAttributes(XC,JC,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,GC),this._resetElementAttributes(KC,GC),this._resetElementAttributes(XC,JC)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+o)return;this._saveInitialAttribute(e,t);const n=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${r(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&ok.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const r=ok.getDataAttribute(e,t);null!==r?(ok.removeDataAttribute(e,t),e.style.setProperty(t,r)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(Cx(e))t(e);else for(const r of ak.find(e,this._element))t(r)}}const YC=".bs.modal",ZC=`hide${YC}`,eS=`hidePrevented${YC}`,tS=`hidden${YC}`,rS=`show${YC}`,oS=`shown${YC}`,nS=`resize${YC}`,iS=`click.dismiss${YC}`,sS=`mousedown.dismiss${YC}`,aS=`keydown.dismiss${YC}`,lS=`click${YC}.data-api`,cS="modal-open",uS="show",dS="modal-static",pS={backdrop:!0,focus:!0,keyboard:!0},bS={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class fS extends ik{constructor(e,t){super(e,t),this._dialog=ak.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new QC,this._addEventListeners()}static get Default(){return pS}static get DefaultType(){return bS}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Zx.trigger(this._element,rS,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(cS),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){this._isShown&&!this._isTransitioning&&(Zx.trigger(this._element,ZC).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(uS),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){Zx.off(window,YC),Zx.off(this._dialog,YC),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new zC({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new WC({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=ak.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),$x(this._element),this._element.classList.add(uS),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Zx.trigger(this._element,oS,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){Zx.on(this._element,aS,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),Zx.on(window,nS,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),Zx.on(this._element,sS,(e=>{Zx.one(this._element,iS,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(cS),this._resetAdjustments(),this._scrollBar.reset(),Zx.trigger(this._element,tS)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(Zx.trigger(this._element,eS).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(dS)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(dS),this._queueCallback((()=>{this._element.classList.remove(dS),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){const e=Rx()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!r&&e){const e=Rx()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const r=fS.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===r[e])throw new TypeError(`No method named "${e}"`);r[e](t)}}))}}Zx.on(document,lS,'[data-bs-toggle="modal"]',(function(e){const t=ak.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),Zx.one(t,rS,(e=>{e.defaultPrevented||Zx.one(t,tS,(()=>{Ex(this)&&this.focus()}))}));const r=ak.findOne(".modal.show");r&&fS.getInstance(r).hide(),fS.getOrCreateInstance(t).toggle(this)})),lk(fS),Dx(fS);const hS=".bs.offcanvas",gS=".data-api",vS=`load${hS}${gS}`,mS="show",yS="showing",wS="hiding",_S=".offcanvas.show",xS=`show${hS}`,kS=`shown${hS}`,CS=`hide${hS}`,SS=`hidePrevented${hS}`,ES=`hidden${hS}`,TS=`resize${hS}`,AS=`click${hS}${gS}`,OS=`keydown.dismiss${hS}`,$S={backdrop:!0,keyboard:!0,scroll:!1},IS={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class LS extends ik{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return $S}static get DefaultType(){return IS}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||Zx.trigger(this._element,xS,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new QC).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(yS),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(mS),this._element.classList.remove(yS),Zx.trigger(this._element,kS,{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(Zx.trigger(this._element,CS).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(wS),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(mS,wS),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new QC).reset(),Zx.trigger(this._element,ES)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new zC({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():Zx.trigger(this._element,SS)}:null})}_initializeFocusTrap(){return new WC({trapElement:this._element})}_addEventListeners(){Zx.on(this._element,OS,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():Zx.trigger(this._element,SS))}))}static jQueryInterface(e){return this.each((function(){const t=LS.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}Zx.on(document,AS,'[data-bs-toggle="offcanvas"]',(function(e){const t=ak.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Tx(this))return;Zx.one(t,ES,(()=>{Ex(this)&&this.focus()}));const r=ak.findOne(_S);r&&r!==t&&LS.getInstance(r).hide(),LS.getOrCreateInstance(t).toggle(this)})),Zx.on(window,vS,(()=>{for(const e of ak.find(_S))LS.getOrCreateInstance(e).show()})),Zx.on(window,TS,(()=>{for(const e of ak.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&LS.getOrCreateInstance(e).hide()})),lk(LS),Dx(LS);const RS={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},DS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),jS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,PS=(e,t)=>{const r=e.nodeName.toLowerCase();return t.includes(r)?!DS.has(r)||Boolean(jS.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(r)))},MS={allowList:RS,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},NS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},zS={entry:"(string|element|function|null)",selector:"(string|element)"};class qS extends nk{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return MS}static get DefaultType(){return NS}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,r]of Object.entries(this._config.content))this._setContent(e,r,t);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},zS)}_setContent(e,t,r){const o=ak.findOne(r,e);o&&((t=this._resolvePossibleFunction(t))?Cx(t)?this._putElementInTemplate(Sx(t),o):this._config.html?o.innerHTML=this._maybeSanitize(t):o.textContent=t:o.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,r){if(!e.length)return e;if(r&&"function"==typeof r)return r(e);const o=(new window.DOMParser).parseFromString(e,"text/html"),n=[].concat(...o.body.querySelectorAll("*"));for(const e of n){const r=e.nodeName.toLowerCase();if(!Object.keys(t).includes(r)){e.remove();continue}const o=[].concat(...e.attributes),n=[].concat(t["*"]||[],t[r]||[]);for(const t of o)PS(t,n)||e.removeAttribute(t.nodeName)}return o.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return jx(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const HS=new Set(["sanitize","allowList","sanitizeFn"]),US="fade",VS="show",FS=".tooltip-inner",BS=".modal",WS="hide.bs.modal",KS="hover",XS="focus",GS={AUTO:"auto",TOP:"top",RIGHT:Rx()?"left":"right",BOTTOM:"bottom",LEFT:Rx()?"right":"left"},JS={allowList:RS,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},QS={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class YS extends ik{constructor(e,r){if(void 0===t)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,r),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return JS}static get DefaultType(){return QS}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),Zx.off(this._element.closest(BS),WS,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=Zx.trigger(this._element,this.constructor.eventName("show")),t=(Ax(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(r),Zx.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(r),r.classList.add(VS),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))Zx.on(e,"mouseover",Ox);this._queueCallback((()=>{Zx.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!Zx.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(VS),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))Zx.off(e,"mouseover",Ox);this._activeTrigger.click=!1,this._activeTrigger[XS]=!1,this._activeTrigger[KS]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Zx.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(US,VS),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(US),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new qS({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[FS]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(US)}_isShown(){return this.tip&&this.tip.classList.contains(VS)}_createPopper(e){const t=jx(this._config.placement,[this,e,this._element]),r=GS[t.toUpperCase()];return vx(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return jx(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...jx(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)Zx.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===KS?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),r=t===KS?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");Zx.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?XS:KS]=!0,t._enter()})),Zx.on(this._element,r,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?XS:KS]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},Zx.on(this._element.closest(BS),WS,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=ok.getDataAttributes(this._element);for(const e of Object.keys(t))HS.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:Sx(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=YS.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Dx(YS);const ZS=".popover-header",eE=".popover-body",tE={...YS.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},rE={...YS.DefaultType,content:"(null|string|element|function)"};class oE extends YS{static get Default(){return tE}static get DefaultType(){return rE}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ZS]:this._getTitle(),[eE]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=oE.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Dx(oE);const nE=".bs.scrollspy",iE=`activate${nE}`,sE=`click${nE}`,aE=`load${nE}.data-api`,lE="active",cE="[href]",uE=".nav-link",dE=`${uE}, .nav-item > ${uE}, .list-group-item`,pE={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},bE={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class fE extends ik{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return pE}static get DefaultType(){return bE}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Sx(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Zx.off(this._config.target,sE),Zx.on(this._config.target,sE,cE,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo)return void r.scrollTo({top:o,behavior:"smooth"});r.scrollTop=o}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),r=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},o=(this._rootElement||document.documentElement).scrollTop,n=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const i of e){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(i));continue}const e=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&e){if(r(i),!o)return}else n||e||r(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=ak.find(cE,this._config.target);for(const t of e){if(!t.hash||Tx(t))continue;const e=ak.findOne(decodeURI(t.hash),this._element);Ex(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(lE),this._activateParents(e),Zx.trigger(this._element,iE,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))ak.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(lE);else for(const t of ak.parents(e,".nav, .list-group"))for(const e of ak.prev(t,dE))e.classList.add(lE)}_clearActiveClass(e){e.classList.remove(lE);const t=ak.find(`${cE}.${lE}`,e);for(const e of t)e.classList.remove(lE)}static jQueryInterface(e){return this.each((function(){const t=fE.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Zx.on(window,aE,(()=>{for(const e of ak.find('[data-bs-spy="scroll"]'))fE.getOrCreateInstance(e)})),Dx(fE);const hE=".bs.tab",gE=`hide${hE}`,vE=`hidden${hE}`,mE=`show${hE}`,yE=`shown${hE}`,wE=`click${hE}`,_E=`keydown${hE}`,xE=`load${hE}`,kE="ArrowLeft",CE="ArrowRight",SE="ArrowUp",EE="ArrowDown",TE="Home",AE="End",OE="active",$E="fade",IE="show",LE=".dropdown-toggle",RE=`:not(${LE})`,DE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',jE=`.nav-link${RE}, .list-group-item${RE}, [role="tab"]${RE}, ${DE}`,PE=`.${OE}[data-bs-toggle="tab"], .${OE}[data-bs-toggle="pill"], .${OE}[data-bs-toggle="list"]`;class ME extends ik{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Zx.on(this._element,_E,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?Zx.trigger(t,gE,{relatedTarget:e}):null;Zx.trigger(e,mE,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(OE),this._activate(ak.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Zx.trigger(e,yE,{relatedTarget:t})):e.classList.add(IE)}),e,e.classList.contains($E)))}_deactivate(e,t){e&&(e.classList.remove(OE),e.blur(),this._deactivate(ak.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Zx.trigger(e,vE,{relatedTarget:t})):e.classList.remove(IE)}),e,e.classList.contains($E)))}_keydown(e){if(![kE,CE,SE,EE,TE,AE].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!Tx(e)));let r;if([TE,AE].includes(e.key))r=t[e.key===TE?0:t.length-1];else{const o=[CE,EE].includes(e.key);r=Mx(t,e.target,o,!0)}r&&(r.focus({preventScroll:!0}),ME.getOrCreateInstance(r).show())}_getChildren(){return ak.find(jE,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",t),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=ak.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const r=this._getOuterElement(e);if(!r.classList.contains("dropdown"))return;const o=(e,o)=>{const n=ak.findOne(e,r);n&&n.classList.toggle(o,t)};o(LE,OE),o(".dropdown-menu",IE),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(OE)}_getInnerElement(e){return e.matches(jE)?e:ak.findOne(jE,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=ME.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Zx.on(document,wE,DE,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),Tx(this)||ME.getOrCreateInstance(this).show()})),Zx.on(window,xE,(()=>{for(const e of ak.find(PE))ME.getOrCreateInstance(e)})),Dx(ME);const NE=".bs.toast",zE=`mouseover${NE}`,qE=`mouseout${NE}`,HE=`focusin${NE}`,UE=`focusout${NE}`,VE=`hide${NE}`,FE=`hidden${NE}`,BE=`show${NE}`,WE=`shown${NE}`,KE="hide",XE="show",GE="showing",JE={animation:"boolean",autohide:"boolean",delay:"number"},QE={animation:!0,autohide:!0,delay:5e3};class YE extends ik{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return QE}static get DefaultType(){return JE}static get NAME(){return"toast"}show(){Zx.trigger(this._element,BE).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(KE),$x(this._element),this._element.classList.add(XE,GE),this._queueCallback((()=>{this._element.classList.remove(GE),Zx.trigger(this._element,WE),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(Zx.trigger(this._element,VE).defaultPrevented||(this._element.classList.add(GE),this._queueCallback((()=>{this._element.classList.add(KE),this._element.classList.remove(GE,XE),Zx.trigger(this._element,FE)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(XE),super.dispose()}isShown(){return this._element.classList.contains(XE)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){Zx.on(this._element,zE,(e=>this._onInteraction(e,!0))),Zx.on(this._element,qE,(e=>this._onInteraction(e,!1))),Zx.on(this._element,HE,(e=>this._onInteraction(e,!0))),Zx.on(this._element,UE,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=YE.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}lk(YE),Dx(YE);var ZE=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},eT=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let tT=class extends Ew{constructor(){super(...arguments),this.ariaExpanded="false",this.ariaLabel="Toggle menu",this.buttonType="button",this.collapseToggle="collapse",this.dblClickClass="qbo-doubleclick",this.dropdownId="qboMainMenu",this.dropdownToggle="dropdown",this.iconClass="qbo-icon",this.liLinkToggleClass="qbo-dropdown",this.liLinkClass="qbo-nav-item",this.liAMenuClass="qbo-dropdown-item",this.navClass="qbo-mainmenu",this.popoverContainer="body",this.popoverHtml="false",this.popoverPlacement="bottom",this.popoverToggle="popover",this.popoverTrigger="hover",this.spanMenuClass="qbo-submenuexpand",this.spanMenuValue=">",this.ulMainMenuToggleClass="qbo-dropdown-mainmenu",this.ulSubMenuClass="submenu",this.ulSubMenuToggleClass="dropdown-menu",this.apiEndpoint=new URL("config/mainmenu",this.baseURI),this.renderInHost=!0,this.targetElement=null,this.handleResize=()=>{window.innerWidth<992?this.renderRoot.querySelectorAll("button").forEach((function(e){null!=e&&e instanceof HTMLElement&&e.hasAttribute("aria-expanded")&&"true"==e.getAttribute("aria-expanded")&&e.click()})):this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} .${this.ulSubMenuClass}`).forEach((function(e){null!=e&&e instanceof HTMLElement&&e.hasAttribute("style")&&e.removeAttribute("style")}))}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize)}disconnectedCallback(){window.removeEventListener("resize",this.handleResize),super.disconnectedCallback()}updated(e){if(super.updated(e),null!=e.get("jsonData")){this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass}`).forEach((e=>{e.addEventListener("click",(function(e){e.stopPropagation()}))}));const e=this.ulSubMenuClass;this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} a`).forEach((function(t){t.addEventListener("click",(t=>{if(null!=t.currentTarget&&t.currentTarget instanceof HTMLElement&&window.innerWidth<992){const r=t.currentTarget.nextElementSibling;null!=r&&r instanceof HTMLElement&&r.classList.contains(e)&&(t.preventDefault(),r.style.display="block"==r.style.display?"none":"block")}}))})),this.renderRoot.querySelectorAll(`[data-bs-toggle="${this.popoverToggle}"]`).forEach((function(e){new oE(e)}))}}renderImage(e){return null!=e?Ae`<img src="${e}"/><span/>`:Ae``}renderMenu(e,t,r){let o=Ae``;const n=null!=e&&null!=e.Menu?e.Menu:e;return null!=n&&(n.forEach?n.forEach((e=>{o=null!=e.Menu?Ae`${o}${this.renderMenuDropdown(e,r)}`:"Divider"==e.Type?Ae`${o}${this.renderMenuDivider()}`:t?Ae`${o}${this.renderMenuDropdownLink(e.URL,e.Text,e.Icon)}`:Ae`${o}${this.renderMenuLink(e)}`})):o=null!=n.Menu?Ae`${o}${this.renderMenuDropdown(n,r)}`:"Divider"==n.Type?Ae`${o}${this.renderMenuDivider()}`:t?Ae`${o}${this.renderMenuDropdownLink(n.URL,n.Text,n.Icon)}`:Ae`${o}${this.renderMenuLink(n)}`),Ae`${o}`}renderMenuDivider(){return Ae`<li><hr/></li>`}renderMenuDropdown(e,t){const r=null!=e.Icon&&""!=e.Icon?Ae`<i class="${e.Icon} ${this.iconClass}" />`:"";return t?Ae`<li>
228
222
  <a class="${this.liAMenuClass}" href="${e.URL}">
229
223
  ${r}<span>${e.Text}</span>
230
224
  <span class="${this.spanMenuClass}">${this.spanMenuValue}</span>
@@ -263,14 +257,14 @@
263
257
  </ul>
264
258
  </div>
265
259
  </div>
266
- </nav>`:Ae``}};ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"ariaExpanded",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"ariaLabel",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"buttonType",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"collapseToggle",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"dblClickClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"dropdownId",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"dropdownToggle",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"iconClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"liLinkToggleClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"liLinkClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"liAMenuClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"navClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"popoverContainer",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"popoverHtml",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"popoverPlacement",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"popoverToggle",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"popoverTrigger",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"spanMenuClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"spanMenuValue",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"ulMainMenuToggleClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"ulSubMenuClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"ulSubMenuToggleClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"apiEndpoint",void 0),ZE([Je({type:Boolean}),eT("design:type",Object)],tT.prototype,"renderInHost",void 0),tT=ZE([Ke("qbo-mainmenu")],tT);class rT extends HTMLElement{get src(){return this.getAttribute("src")}set src(e){this.reflect("src",e)}get manualRender(){return this.hasAttribute("manual-render")}set manualRender(e){this.reflect("manual-render",e)}reflect(e,t){!1===t?this.removeAttribute(e):this.setAttribute(e,!0===t?"":t)}static get observedAttributes(){return["src"]}attributeChangedCallback(e,t,r){"src"===e&&this.connected&&!this.manualRender&&r!==t&&this.render()}constructor(e){super(),this.version="$VERSION",this.config={markedUrl:"https://cdn.jsdelivr.net/gh/markedjs/marked@4/marked.min.js",prismUrl:[["https://cdn.jsdelivr.net/gh/PrismJS/prism@1/prism.min.js","data-manual"],"https://cdn.jsdelivr.net/gh/PrismJS/prism@1/plugins/autoloader/prism-autoloader.min.js"],cssUrls:["https://cdn.jsdelivr.net/gh/sindresorhus/github-markdown-css@4/github-markdown.min.css","https://cdn.jsdelivr.net/gh/PrismJS/prism@1/themes/prism.min.css"],hostCss:":host{display:block;position:relative;contain:content;}:host([hidden]){display:none;}",...e,...window.ZeroMdConfig},this.root=this.hasAttribute("no-shadow")?this:this.attachShadow({mode:"open"}),this.root.prepend(...this.makeNodes('<div class="markdown-styles"></div><div class="markdown-body"></div>')),this.constructor.ready||(this.constructor.ready=Promise.all([!!window.marked||this.loadScript(this.config.markedUrl),!!window.Prism||this.loadScript(this.config.prismUrl)])),this.clicked=this.clicked.bind(this),this.manualRender||this.render().then((()=>setTimeout((()=>this.goto(location.hash)),250))),this.observer=new MutationObserver((()=>{this.observeChanges(),this.manualRender||this.render()})),this.observer.observe(this,{childList:!0}),this.observeChanges()}observeChanges(){this.querySelectorAll('template,script[type="text/markdown"]').forEach((e=>{this.observer.observe(e.content||e,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}))}connectedCallback(){this.connected=!0,this.fire("zero-md-connected",{},{bubbles:!1,composed:!1}),this.waitForReady().then((()=>{this.fire("zero-md-ready")})),this.shadowRoot&&this.shadowRoot.addEventListener("click",this.clicked)}disconnectedCallback(){this.connected=!1,this.shadowRoot&&this.shadowRoot.removeEventListener("click",this.clicked)}waitForReady(){const e=this.connected||new Promise((e=>{this.addEventListener("zero-md-connected",(function t(){this.removeEventListener("zero-md-connected",t),e()}))}));return Promise.all([this.constructor.ready,e])}fire(e,t={},r={bubbles:!0,composed:!0}){t.msg&&console.warn(t.msg),this.dispatchEvent(new CustomEvent(e,{detail:{node:this,...t},...r}))}tick(){return new Promise((e=>requestAnimationFrame(e)))}arrify(e){return e?Array.isArray(e)?e:[e]:[]}onload(e){return new Promise(((t,r)=>{e.onload=t,e.onerror=e=>r(e.path?e.path[0]:e.composedPath()[0])}))}loadScript(e){return Promise.all(this.arrify(e).map((e=>{const[t,...r]=this.arrify(e),o=document.createElement("script");return o.src=t,o.async=!1,r.forEach((e=>o.setAttribute(e,""))),this.onload(document.head.appendChild(o))})))}goto(e){let t;try{t=this.root.querySelector(e)}catch{}t&&t.scrollIntoView()}clicked(e){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||e.defaultPrevented)return;const t=e.target.closest("a");t&&t.hash&&t.host===location.host&&t.pathname===location.pathname&&this.goto(t.hash)}dedent(e){const t=(e=e.replace(/^\n/,"")).match(/^\s+/);return t?e.replace(new RegExp(`^${t[0]}`,"gm"),""):e}getBaseUrl(e){const t=document.createElement("a");return t.href=e,t.href.substring(0,t.href.lastIndexOf("/")+1)}highlight(e){return new Promise((t=>{e.querySelectorAll('pre>code:not([class*="language-"])').forEach((e=>{const t=e.innerText.match(/^\s*</)?"markup":e.innerText.match(/^\s*(\$|#)/)?"bash":"js";e.classList.add(`language-${t}`)}));try{window.Prism.highlightAllUnder(e,!0,t())}catch{window.Prism.highlightAllUnder(e),t()}}))}makeNodes(e){const t=document.createElement("template");return t.innerHTML=e,t.content.children}buildStyles(){const e=e=>{const t=this.querySelector(e);return t?t.innerHTML||" ":""},t=this.arrify(this.config.cssUrls),r=`<style>${this.config.hostCss}</style>${e('template[data-merge="prepend"]')}${e("template:not([data-merge])")||t.reduce(((e,t)=>`${e}<link rel="stylesheet" href="${t}">`),"")}${e('template[data-merge="append"]')}`;return r}async buildMd(e={}){return await(async()=>{if(!this.src)return"";const t=await fetch(this.src);if(t.ok){const r=await t.text();return window.marked.parse(r,{baseUrl:this.getBaseUrl(this.src),...e})}return this.fire("zero-md-error",{msg:`[zero-md] HTTP error ${t.status} while fetching src`,status:t.status,src:this.src}),""})()||(()=>{const t=this.querySelector('script[type="text/markdown"]');if(!t)return"";const r=t.hasAttribute("data-dedent")?this.dedent(t.text):t.text;return window.marked.parse(r,e)})()}getHash(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t^e.charCodeAt(r);return(t>>>0).toString(36)}async stampStyles(e){const t=this.getHash(e),r=this.root.querySelector(".markdown-styles");if(r.getAttribute("data-hash")!==t){r.setAttribute("data-hash",t);const o=this.makeNodes(e),n=[...o].filter((e=>"LINK"===e.tagName&&"stylesheet"===e.getAttribute("rel")));return r.innerHTML="",r.append(...o),await Promise.all(n.map((e=>this.onload(e)))).catch((e=>{this.fire("zero-md-error",{msg:"[zero-md] An external stylesheet failed to load",status:void 0,src:e.href})})),!0}}async stampBody(e,t){const r=this.arrify(t),o=this.getHash(e+JSON.stringify(r)),n=this.root.querySelector(".markdown-body");if(n.getAttribute("data-hash")!==o){n.setAttribute("data-hash",o),r.unshift("markdown-body"),n.setAttribute("class",r.join(" "));const t=this.makeNodes(e);return n.innerHTML="",n.append(...t),await this.highlight(n),!0}}async render(e={}){await this.waitForReady();const t=this.buildMd(e),r=await this.stampStyles(this.buildStyles());await this.tick();const o=await this.stampBody(await t,e.classes);this.fire("zero-md-rendered",{node:this,stamped:{styles:r,body:o}})}}customElements.define("zero-md",rT);var oT=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};let nT=class extends Be{async connectedCallback(){super.connectedCallback()}render(){return Ae`<zero-md src="${this.src}"><script type="text/markdown">${this.querySelector("script")?.innerHTML}<\/script></zero-md>`}};oT([Je(),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:type",Object)],nT.prototype,"src",void 0),nT=oT([Ke("qbo-markdown")],nT);var iT,sT=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},aT=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let lT=class extends Be{constructor(){super(...arguments),this.renderInHost=!0,this.continuous=!1,this.interimResults=!1,this.maxAlternatives=1,this.for="input",this.class="input-group-text bi bi-headset",this.activeClass="bg-primary-subtle",this._recognition=null,this.target=null,this.listening=!1}static{iT=this}static{this.activeInstance=null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.listen);const e=new(window.SpeechRecognition||window.webkitSpeechRecognition);e.continuous=this.continuous,e.interimResults=this.interimResults,e.maxAlternatives=this.maxAlternatives,e.onresult=e=>{this.onResult(e)},e.onspeechend=e=>{this.stop(e)},e.onerror=e=>{this.error(e)},this._recognition=e,this.target=document.getElementById(this.for)||this.querySelector(this.for)||this.parentElement?.querySelector(this.for),null==this.target&&console.log(`qbo-microphone: no target found for ${this.for}`)}disconnectedCallback(){this.removeEventListener("click",this.listen),super.disconnectedCallback()}onResult(e){const t=e.results[e.results.length-1][0].transcript;if(console.log("Result: "+t),null==this.target)return;const r=this.target;if(r instanceof HTMLInputElement)"radio"===r.type?r.value===t&&(r.checked=!0):this.continuous?r.value+=t:r.value=t;else if(r instanceof HTMLTextAreaElement)this.continuous?r.value+=t:r.value=t;else if(r instanceof HTMLSelectElement)for(let e=0;e<r.options.length;e++)if(r.options[e].value===t||r.options[e].text===t){r.selectedIndex=e;break}}listen(e){this.listening?this.stop(e):this.start()}start(){this.listening=!0,iT.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(e){this.listening=!1,iT.activeInstance=null,this.activeClass&&this.classList.remove(this.activeClass),console.log("stopped listening"),this._recognition.stop(),this._recognition.abort()}error(e){console.log("Error during speech recognition:",e)}render(){return Ae`<slot></slot>`}};sT([Je({type:Boolean}),aT("design:type",Object)],lT.prototype,"renderInHost",void 0),sT([Je({type:Boolean}),aT("design:type",Object)],lT.prototype,"continuous",void 0),sT([Je({type:Boolean}),aT("design:type",Object)],lT.prototype,"interimResults",void 0),sT([Je({type:Number}),aT("design:type",Object)],lT.prototype,"maxAlternatives",void 0),sT([Je({type:String}),aT("design:type",Object)],lT.prototype,"for",void 0),sT([Je({type:String}),aT("design:type",Object)],lT.prototype,"class",void 0),sT([Je({type:String}),aT("design:type",Object)],lT.prototype,"activeClass",void 0),lT=iT=sT([Ke("qbo-microphone")],lT);var cT=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},uT=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let dT=class extends Be{constructor(){super(...arguments),this.selector='[data-bs-toggle="popover"]',this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}updated(e){this.renderRoot.querySelectorAll(`${this.selector}`).forEach((function(e){new oE(e)}))}render(){return Ae`<slot></slot>`}};cT([Je({type:String}),uT("design:type",Object)],dT.prototype,"selector",void 0),cT([Je({type:Boolean}),uT("design:type",Object)],dT.prototype,"renderInHost",void 0),dT=cT([Ke("qbo-popover")],dT);class pT{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class fT extends pT{constructor(e){if(super(e),this.it=$e,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===$e||null==e)return this._t=void 0,this.it=e;if(e===Oe)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}fT.directiveName="unsafeHTML",fT.resultType=1;const bT=(hT=fT,(...e)=>({_$litDirective$:hT,values:e}));var hT,gT=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},vT=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let mT=class extends Ew{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[B`
260
+ </nav>`:Ae``}};ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"ariaExpanded",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"ariaLabel",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"buttonType",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"collapseToggle",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"dblClickClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"dropdownId",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"dropdownToggle",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"iconClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"liLinkToggleClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"liLinkClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"liAMenuClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"navClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"popoverContainer",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"popoverHtml",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"popoverPlacement",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"popoverToggle",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"popoverTrigger",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"spanMenuClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"spanMenuValue",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"ulMainMenuToggleClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"ulSubMenuClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"ulSubMenuToggleClass",void 0),ZE([Je({type:String}),eT("design:type",Object)],tT.prototype,"apiEndpoint",void 0),ZE([Je({type:Boolean}),eT("design:type",Object)],tT.prototype,"renderInHost",void 0),tT=ZE([Ke("qbo-mainmenu")],tT);class rT extends HTMLElement{get src(){return this.getAttribute("src")}set src(e){this.reflect("src",e)}get manualRender(){return this.hasAttribute("manual-render")}set manualRender(e){this.reflect("manual-render",e)}reflect(e,t){!1===t?this.removeAttribute(e):this.setAttribute(e,!0===t?"":t)}static get observedAttributes(){return["src"]}attributeChangedCallback(e,t,r){"src"===e&&this.connected&&!this.manualRender&&r!==t&&this.render()}constructor(e){super(),this.version="$VERSION",this.config={markedUrl:"https://cdn.jsdelivr.net/gh/markedjs/marked@4/marked.min.js",prismUrl:[["https://cdn.jsdelivr.net/gh/PrismJS/prism@1/prism.min.js","data-manual"],"https://cdn.jsdelivr.net/gh/PrismJS/prism@1/plugins/autoloader/prism-autoloader.min.js"],cssUrls:["https://cdn.jsdelivr.net/gh/sindresorhus/github-markdown-css@4/github-markdown.min.css","https://cdn.jsdelivr.net/gh/PrismJS/prism@1/themes/prism.min.css"],hostCss:":host{display:block;position:relative;contain:content;}:host([hidden]){display:none;}",...e,...window.ZeroMdConfig},this.root=this.hasAttribute("no-shadow")?this:this.attachShadow({mode:"open"}),this.root.prepend(...this.makeNodes('<div class="markdown-styles"></div><div class="markdown-body"></div>')),this.constructor.ready||(this.constructor.ready=Promise.all([!!window.marked||this.loadScript(this.config.markedUrl),!!window.Prism||this.loadScript(this.config.prismUrl)])),this.clicked=this.clicked.bind(this),this.manualRender||this.render().then((()=>setTimeout((()=>this.goto(location.hash)),250))),this.observer=new MutationObserver((()=>{this.observeChanges(),this.manualRender||this.render()})),this.observer.observe(this,{childList:!0}),this.observeChanges()}observeChanges(){this.querySelectorAll('template,script[type="text/markdown"]').forEach((e=>{this.observer.observe(e.content||e,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}))}connectedCallback(){this.connected=!0,this.fire("zero-md-connected",{},{bubbles:!1,composed:!1}),this.waitForReady().then((()=>{this.fire("zero-md-ready")})),this.shadowRoot&&this.shadowRoot.addEventListener("click",this.clicked)}disconnectedCallback(){this.connected=!1,this.shadowRoot&&this.shadowRoot.removeEventListener("click",this.clicked)}waitForReady(){const e=this.connected||new Promise((e=>{this.addEventListener("zero-md-connected",(function t(){this.removeEventListener("zero-md-connected",t),e()}))}));return Promise.all([this.constructor.ready,e])}fire(e,t={},r={bubbles:!0,composed:!0}){t.msg&&console.warn(t.msg),this.dispatchEvent(new CustomEvent(e,{detail:{node:this,...t},...r}))}tick(){return new Promise((e=>requestAnimationFrame(e)))}arrify(e){return e?Array.isArray(e)?e:[e]:[]}onload(e){return new Promise(((t,r)=>{e.onload=t,e.onerror=e=>r(e.path?e.path[0]:e.composedPath()[0])}))}loadScript(e){return Promise.all(this.arrify(e).map((e=>{const[t,...r]=this.arrify(e),o=document.createElement("script");return o.src=t,o.async=!1,r.forEach((e=>o.setAttribute(e,""))),this.onload(document.head.appendChild(o))})))}goto(e){let t;try{t=this.root.querySelector(e)}catch{}t&&t.scrollIntoView()}clicked(e){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||e.defaultPrevented)return;const t=e.target.closest("a");t&&t.hash&&t.host===location.host&&t.pathname===location.pathname&&this.goto(t.hash)}dedent(e){const t=(e=e.replace(/^\n/,"")).match(/^\s+/);return t?e.replace(new RegExp(`^${t[0]}`,"gm"),""):e}getBaseUrl(e){const t=document.createElement("a");return t.href=e,t.href.substring(0,t.href.lastIndexOf("/")+1)}highlight(e){return new Promise((t=>{e.querySelectorAll('pre>code:not([class*="language-"])').forEach((e=>{const t=e.innerText.match(/^\s*</)?"markup":e.innerText.match(/^\s*(\$|#)/)?"bash":"js";e.classList.add(`language-${t}`)}));try{window.Prism.highlightAllUnder(e,!0,t())}catch{window.Prism.highlightAllUnder(e),t()}}))}makeNodes(e){const t=document.createElement("template");return t.innerHTML=e,t.content.children}buildStyles(){const e=e=>{const t=this.querySelector(e);return t?t.innerHTML||" ":""},t=this.arrify(this.config.cssUrls),r=`<style>${this.config.hostCss}</style>${e('template[data-merge="prepend"]')}${e("template:not([data-merge])")||t.reduce(((e,t)=>`${e}<link rel="stylesheet" href="${t}">`),"")}${e('template[data-merge="append"]')}`;return r}async buildMd(e={}){return await(async()=>{if(!this.src)return"";const t=await fetch(this.src);if(t.ok){const r=await t.text();return window.marked.parse(r,{baseUrl:this.getBaseUrl(this.src),...e})}return this.fire("zero-md-error",{msg:`[zero-md] HTTP error ${t.status} while fetching src`,status:t.status,src:this.src}),""})()||(()=>{const t=this.querySelector('script[type="text/markdown"]');if(!t)return"";const r=t.hasAttribute("data-dedent")?this.dedent(t.text):t.text;return window.marked.parse(r,e)})()}getHash(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t^e.charCodeAt(r);return(t>>>0).toString(36)}async stampStyles(e){const t=this.getHash(e),r=this.root.querySelector(".markdown-styles");if(r.getAttribute("data-hash")!==t){r.setAttribute("data-hash",t);const o=this.makeNodes(e),n=[...o].filter((e=>"LINK"===e.tagName&&"stylesheet"===e.getAttribute("rel")));return r.innerHTML="",r.append(...o),await Promise.all(n.map((e=>this.onload(e)))).catch((e=>{this.fire("zero-md-error",{msg:"[zero-md] An external stylesheet failed to load",status:void 0,src:e.href})})),!0}}async stampBody(e,t){const r=this.arrify(t),o=this.getHash(e+JSON.stringify(r)),n=this.root.querySelector(".markdown-body");if(n.getAttribute("data-hash")!==o){n.setAttribute("data-hash",o),r.unshift("markdown-body"),n.setAttribute("class",r.join(" "));const t=this.makeNodes(e);return n.innerHTML="",n.append(...t),await this.highlight(n),!0}}async render(e={}){await this.waitForReady();const t=this.buildMd(e),r=await this.stampStyles(this.buildStyles());await this.tick();const o=await this.stampBody(await t,e.classes);this.fire("zero-md-rendered",{node:this,stamped:{styles:r,body:o}})}}customElements.define("zero-md",rT);var oT=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};let nT=class extends Be{async connectedCallback(){super.connectedCallback()}render(){return Ae`<zero-md src="${this.src}"><script type="text/markdown">${this.querySelector("script")?.innerHTML}<\/script></zero-md>`}};oT([Je(),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:type",Object)],nT.prototype,"src",void 0),nT=oT([Ke("qbo-markdown")],nT);var iT,sT=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},aT=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let lT=class extends Be{constructor(){super(...arguments),this.renderInHost=!0,this.continuous=!1,this.interimResults=!1,this.maxAlternatives=1,this.for="input",this.class="input-group-text bi bi-headset",this.activeClass="bg-primary-subtle",this._recognition=null,this.target=null,this.listening=!1}static{iT=this}static{this.activeInstance=null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.listen);const e=new(window.SpeechRecognition||window.webkitSpeechRecognition);e.continuous=this.continuous,e.interimResults=this.interimResults,e.maxAlternatives=this.maxAlternatives,e.onresult=e=>{this.onResult(e)},e.onspeechend=e=>{this.stop(e)},e.onerror=e=>{this.error(e)},this._recognition=e,this.target=document.getElementById(this.for)||this.querySelector(this.for)||this.parentElement?.querySelector(this.for),null==this.target&&console.log(`qbo-microphone: no target found for ${this.for}`)}disconnectedCallback(){this.removeEventListener("click",this.listen),super.disconnectedCallback()}onResult(e){const t=e.results[e.results.length-1][0].transcript;if(console.log("Result: "+t),null==this.target)return;const r=this.target;if(r instanceof HTMLInputElement)"radio"===r.type?r.value===t&&(r.checked=!0):this.continuous?r.value+=t:r.value=t;else if(r instanceof HTMLTextAreaElement)this.continuous?r.value+=t:r.value=t;else if(r instanceof HTMLSelectElement)for(let e=0;e<r.options.length;e++)if(r.options[e].value===t||r.options[e].text===t){r.selectedIndex=e;break}}listen(e){this.listening?this.stop(e):this.start()}start(){this.listening=!0,iT.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(e){this.listening=!1,iT.activeInstance=null,this.activeClass&&this.classList.remove(this.activeClass),console.log("stopped listening"),this._recognition.stop(),this._recognition.abort()}error(e){console.log("Error during speech recognition:",e)}render(){return Ae`<slot></slot>`}};sT([Je({type:Boolean}),aT("design:type",Object)],lT.prototype,"renderInHost",void 0),sT([Je({type:Boolean}),aT("design:type",Object)],lT.prototype,"continuous",void 0),sT([Je({type:Boolean}),aT("design:type",Object)],lT.prototype,"interimResults",void 0),sT([Je({type:Number}),aT("design:type",Object)],lT.prototype,"maxAlternatives",void 0),sT([Je({type:String}),aT("design:type",Object)],lT.prototype,"for",void 0),sT([Je({type:String}),aT("design:type",Object)],lT.prototype,"class",void 0),sT([Je({type:String}),aT("design:type",Object)],lT.prototype,"activeClass",void 0),lT=iT=sT([Ke("qbo-microphone")],lT);var cT=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},uT=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let dT=class extends Be{constructor(){super(...arguments),this.selector='[data-bs-toggle="popover"]',this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}updated(e){this.renderRoot.querySelectorAll(`${this.selector}`).forEach((function(e){new oE(e)}))}render(){return Ae`<slot></slot>`}};cT([Je({type:String}),uT("design:type",Object)],dT.prototype,"selector",void 0),cT([Je({type:Boolean}),uT("design:type",Object)],dT.prototype,"renderInHost",void 0),dT=cT([Ke("qbo-popover")],dT);class pT{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class bT extends pT{constructor(e){if(super(e),this.it=$e,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===$e||null==e)return this._t=void 0,this.it=e;if(e===Oe)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}bT.directiveName="unsafeHTML",bT.resultType=1;const fT=(hT=bT,(...e)=>({_$litDirective$:hT,values:e}));var hT,gT=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},vT=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let mT=class extends Ew{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[B`
267
261
  /* Add any custom styles here */
268
262
  .foo { color: red; }
269
263
  `]}async connectedCallback(){super.connectedCallback(),this.handleOutsideClick=this.handleOutsideClick.bind(this)}toggle(){this.open=!this.open,this.open?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)}show(){this.open=!0,document.addEventListener("click",this.handleOutsideClick)}hide(e){e.target.closest('[data-dismiss="modal"]')&&(this.open=!1,document.removeEventListener("click",this.handleOutsideClick))}handleOutsideClick(e){this.open&&!this.contains(e.target)&&(this.open=!1,document.removeEventListener("click",this.handleOutsideClick))}render(){return Ae`
270
264
  <slot name="button" @click="${this.toggle}">
271
265
  <button class="btn">Popup</button>
272
266
  </slot>
273
- <slot name="content" @click="${this.hide}" style="display:${this.open?"flex":"none"}">${bT(this.html)}</slot>
267
+ <slot name="content" @click="${this.hide}" style="display:${this.open?"flex":"none"}">${fT(this.html)}</slot>
274
268
  `}};gT([Je({type:Boolean}),vT("design:type",Object)],mT.prototype,"open",void 0),gT([Je({type:Boolean}),vT("design:type",Object)],mT.prototype,"loading",void 0),gT([Je({type:Boolean}),vT("design:type",Object)],mT.prototype,"renderInHost",void 0),mT=gT([Ke("qbo-popup")],mT);var yT=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},wT=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let _T=class extends Be{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1,this.title="Popup",this.eventName="qbo-popup",this.listen=!0}async connectedCallback(){super.connectedCallback(),this.handleOutsideClick=this.handleOutsideClick.bind(this)}toggle(){this.open=!this.open,this.open?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)}show(){this.open=!0,document.addEventListener("click",this.handleOutsideClick)}hide(e){if(e.target.closest('[data-dismiss="modal"]')){this.open=!1,this.src=null;const e=this.querySelector("iframe")??this.renderRoot.querySelector("iframe");null!=e&&e.removeAttribute("src"),document.removeEventListener("click",this.handleOutsideClick)}}handleOutsideClick(e){}firstUpdated(){const e=this;e.targetElement=document.querySelector(e.target)??document,e.targetContainer=e.querySelector("iframe")??e.renderRoot.querySelector("iframe"),e.targetElement.addEventListener(e.eventName,(t=>{e.showElement(t.target)})),e.listen&&e.targetElement.addEventListener("click",(e=>{const t=e.composedPath().find((e=>e instanceof HTMLAnchorElement));null!=t&&(t.dispatchEvent(new CustomEvent(this.eventName,{bubbles:!0,composed:!0})),e.preventDefault())}))}showElement(e){this.src=e.href.replace("youtube.com/watch","youtube.com/embed");const t=this.querySelector("iframe")??this.renderRoot.querySelector("iframe");null!=t&&(t.src=this.src,this.show())}render(){return Ae`
275
269
  <slot name="button" @click="${this.toggle}"></slot>
276
270
  <slot name="content" @click="${this.hide}" style="display:${this.open?"flex":"none"}">
@@ -288,13 +282,14 @@
288
282
  </div>
289
283
  </div>
290
284
  </slot>
291
- `}};yT([Je({type:Boolean}),wT("design:type",Object)],_T.prototype,"open",void 0),yT([Je({type:Boolean}),wT("design:type",Object)],_T.prototype,"loading",void 0),yT([Je({type:Boolean}),wT("design:type",Object)],_T.prototype,"renderInHost",void 0),yT([Je({type:String}),wT("design:type",Object)],_T.prototype,"src",void 0),yT([Je({type:String}),wT("design:type",Object)],_T.prototype,"title",void 0),yT([Je(),wT("design:type",Object)],_T.prototype,"clickSelector",void 0),yT([Je(),wT("design:type",Object)],_T.prototype,"eventName",void 0),yT([Je(),wT("design:type",Object)],_T.prototype,"target",void 0),yT([Je({type:Boolean}),wT("design:type",Object)],_T.prototype,"listen",void 0),_T=yT([Ke("qbo-popup-listener")],_T);var xT=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},kT=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let CT=class extends Ew{constructor(){super(...arguments),this.loading=!1,this.optionText=null,this.optionValue=null,this.defaultValue=null,this.qboClass=null,this.options=[],this.renderInHost=!0}static{this.styles=[B`
285
+ `}};yT([Je({type:Boolean}),wT("design:type",Object)],_T.prototype,"open",void 0),yT([Je({type:Boolean}),wT("design:type",Object)],_T.prototype,"loading",void 0),yT([Je({type:Boolean}),wT("design:type",Object)],_T.prototype,"renderInHost",void 0),yT([Je({type:String}),wT("design:type",Object)],_T.prototype,"src",void 0),yT([Je({type:String}),wT("design:type",Object)],_T.prototype,"title",void 0),yT([Je(),wT("design:type",Object)],_T.prototype,"clickSelector",void 0),yT([Je(),wT("design:type",Object)],_T.prototype,"eventName",void 0),yT([Je(),wT("design:type",Object)],_T.prototype,"target",void 0),yT([Je({type:Boolean}),wT("design:type",Object)],_T.prototype,"listen",void 0),_T=yT([Ke("qbo-popup-listener")],_T);var xT=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},kT=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let CT=class extends Ew{constructor(){super(...arguments),this.loading=!1,this.optionText=null,this.optionValue=null,this.defaultValue=null,this.emptyOptionText="--",this.emptyOptionValue="",this.qboClass=null,this.qboDisabled=!1,this.options=[],this.renderInHost=!0}static{this.styles=[B`
292
286
  /* Add any custom styles here */
293
287
  .foo { color: red; }
294
288
  `]}async connectedCallback(){this.optionText??=this.optionValue,super.connectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){return this.options=sw(this.jsonData),this.options?(this.optionValue??=Object.keys(this.options[0])[0],this.optionText??=Object.keys(this.options[0])[1]??this.optionValue,Ae`
295
- <select class=${this.qboClass}>
296
- ${this.options.map((e=>Ae`<option value="${e[this.optionValue]}" ?selected="${e[this.optionValue]===this.defaultValue}">${e[this.optionText]}</option>`))}
297
- </select>`):Ae`<p>Loading...</p>`}};xT([Je({type:Boolean}),kT("design:type",Object)],CT.prototype,"loading",void 0),xT([Je({type:String}),kT("design:type",Object)],CT.prototype,"optionText",void 0),xT([Je({type:String}),kT("design:type",Object)],CT.prototype,"optionValue",void 0),xT([Je({type:String}),kT("design:type",Object)],CT.prototype,"defaultValue",void 0),xT([Je({attribute:"qbo-class"}),kT("design:type",Object)],CT.prototype,"qboClass",void 0),xT([Je({type:Array}),kT("design:type",Object)],CT.prototype,"options",void 0),xT([Je({type:Boolean}),kT("design:type",Object)],CT.prototype,"renderInHost",void 0),CT=xT([Ke("qbo-select")],CT);var ST=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ET=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let TT=class extends Be{constructor(){super(...arguments),this.collapseAttribute="aria-expanded",this.collapseSelector='[data-qbo-toggle="collapse"]',this.menuCollapsed="false",this.menuExpanded="true",this.menuShow="qbo-show"}updated(e){const t=this;t.querySelectorAll(`${this.collapseSelector}`).forEach((function(e){e.addEventListener("click",(r=>{const o=e.nextElementSibling;e.getAttribute(t.collapseAttribute)==t.menuCollapsed?(o instanceof HTMLElement&&o.classList.add(t.menuShow),e.setAttribute(t.collapseAttribute,t.menuExpanded)):(o instanceof HTMLElement&&o.classList.remove(t.menuShow),e.setAttribute(t.collapseAttribute,t.menuCollapsed))}))}))}render(){return Ae`<slot></slot>`}};ST([Je({type:String}),ET("design:type",Object)],TT.prototype,"collapseAttribute",void 0),ST([Je({type:String}),ET("design:type",Object)],TT.prototype,"collapseSelector",void 0),ST([Je({type:String}),ET("design:type",Object)],TT.prototype,"menuCollapsed",void 0),ST([Je({type:String}),ET("design:type",Object)],TT.prototype,"menuExpanded",void 0),ST([Je({type:String}),ET("design:type",Object)],TT.prototype,"menuShow",void 0),TT=ST([Ke("qbo-sidebar")],TT);var AT=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},OT=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let $T=class extends Ew{constructor(){super(...arguments),this.loading=!1,this.renderInHost=!1,this.qboClass="table table-striped table-hover",this.dataSelector=null,this.options=null}async connectedCallback(){super.connectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){this.options=sw(this.jsonData)??this.loadData()??[{Loading:"..."}],this.querySelector("tbody"),this.querySelector("template"),lw(this.querySelector("tbody"),this.querySelector("template"),this.options);const e=Object.keys(this.options[0]);return Ae`<slot>
289
+ <select ?disabled=${this.qboDisabled} class=${this.qboClass}>
290
+ <option value="${this.emptyOptionValue}">${this.emptyOptionText}</option>
291
+ ${this.options.map((e=>Ae`<option value="${e[this.optionValue]}" ?selected="${e[this.optionValue]===this.defaultValue}">${e[this.optionText]}</option>`))}
292
+ </select>`):Ae`<p>Loading...</p>`}};xT([Je({type:Boolean}),kT("design:type",Object)],CT.prototype,"loading",void 0),xT([Je({type:String}),kT("design:type",Object)],CT.prototype,"optionText",void 0),xT([Je({type:String}),kT("design:type",Object)],CT.prototype,"optionValue",void 0),xT([Je({type:String}),kT("design:type",Object)],CT.prototype,"defaultValue",void 0),xT([Je({type:String}),kT("design:type",Object)],CT.prototype,"emptyOptionText",void 0),xT([Je({type:String}),kT("design:type",Object)],CT.prototype,"emptyOptionValue",void 0),xT([Je({type:String,attribute:"qbo-class"}),kT("design:type",Object)],CT.prototype,"qboClass",void 0),xT([Je({type:Boolean,attribute:"qbo-disabled"}),kT("design:type",Object)],CT.prototype,"qboDisabled",void 0),xT([Je({type:Array}),kT("design:type",Object)],CT.prototype,"options",void 0),xT([Je({type:Boolean}),kT("design:type",Object)],CT.prototype,"renderInHost",void 0),CT=xT([Ke("qbo-select")],CT);var ST=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ET=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let TT=class extends Be{constructor(){super(...arguments),this.collapseAttribute="aria-expanded",this.collapseSelector='[data-qbo-toggle="collapse"]',this.menuCollapsed="false",this.menuExpanded="true",this.menuShow="qbo-show"}updated(e){const t=this;t.querySelectorAll(`${this.collapseSelector}`).forEach((function(e){e.addEventListener("click",(r=>{const o=e.nextElementSibling;e.getAttribute(t.collapseAttribute)==t.menuCollapsed?(o instanceof HTMLElement&&o.classList.add(t.menuShow),e.setAttribute(t.collapseAttribute,t.menuExpanded)):(o instanceof HTMLElement&&o.classList.remove(t.menuShow),e.setAttribute(t.collapseAttribute,t.menuCollapsed))}))}))}render(){return Ae`<slot></slot>`}};ST([Je({type:String}),ET("design:type",Object)],TT.prototype,"collapseAttribute",void 0),ST([Je({type:String}),ET("design:type",Object)],TT.prototype,"collapseSelector",void 0),ST([Je({type:String}),ET("design:type",Object)],TT.prototype,"menuCollapsed",void 0),ST([Je({type:String}),ET("design:type",Object)],TT.prototype,"menuExpanded",void 0),ST([Je({type:String}),ET("design:type",Object)],TT.prototype,"menuShow",void 0),TT=ST([Ke("qbo-sidebar")],TT);var AT=function(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},OT=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let $T=class extends Ew{constructor(){super(...arguments),this.loading=!1,this.renderInHost=!1,this.qboClass="table table-striped table-hover",this.dataSelector=null,this.options=null}async connectedCallback(){super.connectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){this.options=sw(this.jsonData)??this.loadData()??[{Loading:"..."}],this.querySelector("tbody"),this.querySelector("template"),lw(this.querySelector("tbody"),this.querySelector("template"),this.options);const e=Object.keys(this.options[0]);return Ae`<slot>
298
293
  <table class=${this.qboClass}>
299
294
  <thead>
300
295
  ${null!=this.querySelector("*[slot=header]")?Ae`<tr><th colspan="${e.length}"><slot name="header"></slot></th></tr>`:null}