@quandis/qbo4.ui 4.0.1-CI-20240429-225952 → 4.0.1-CI-20240501-230003

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(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.qbo4=e():(t.qbo4=t.qbo4||{},t.qbo4.ui=e())}(self,(()=>(()=>{var t={630:(t,e,r)=>{var o;!function(t){!function(e){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(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),n=i(t);function i(t,e){return function(r,o){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:o}),e&&e(r,o)}}void 0!==o.Reflect&&(n=i(o.Reflect,n)),function(t,e){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 V(Object.create(null))}:a?function(){return V({__proto__:null})}:function(){return V({})},has:l?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:l?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},d=Object.getPrototypeOf(Function),u="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!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--,R(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,o)},e.prototype.values=function(){return new r(this._keys,this._values,n)},e.prototype.entries=function(){return new r(this._keys,this._values,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!R(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(R(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function o(t,e){return t}function n(t,e){return e}function s(t,e){return[t,e]}}(),p="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new u}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),b="function"==typeof WeakMap?WeakMap:function(){var t=16,e=c.create(),o=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var t;do{t="@@WeakMap@@"+a()}while(c.has(e,t));return e[t]=!0,t}function i(t,e){if(!r.call(t,o)){if(!e)return;Object.defineProperty(t,o,{value:c.create()})}return t[o]}function s(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var e=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):s(e,t),e}return s(new Array(t),t)}(t);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var r="",o=0;o<t;++o){var n=e[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 t;return!S(f)&&T(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[f]),S(t)&&(t=function(){var t,r,o,n;S(f)||void 0===e.Reflect||f in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,o=t.getOwnMetadata,n=t.getOwnMetadataKeys,i=t.deleteMetadata,s=new b;return{isProviderFor:function(t,e){var r=s.get(t);return!(S(r)||!r.has(e))||!!n(t,e).length&&(S(r)&&(r=new p,s.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:o,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new b,s={registerProvider:a,getProvider:c,setProvider:h};return s;function a(e){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(o):o=e;break;case o===e:break;default:void 0===n&&(n=new p),n.add(e)}}function l(e,i){if(!S(r)){if(r.isProviderFor(e,i))return r;if(!S(o)){if(o.isProviderFor(e,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(e,i))return z(s),l}}}if(!S(t)&&t.isProviderFor(e,i))return t}function c(t,e){var r,o=i.get(t);return S(o)||(r=o.get(e)),S(r)?(S(r=l(t,e))||(S(o)&&(o=new u,i.set(t,o)),o.set(e,r)),r):r}function d(t){if(S(t))throw new TypeError;return r===t||o===t||!S(n)&&n.has(t)}function h(t,e,r){if(!d(r))throw new Error("Metadata provider not registered.");var o=c(t,e);if(o!==r){if(!S(o))return!1;var n=i.get(t);S(n)&&(n=new u,i.set(t,n)),n.set(e,r)}return!0}}()),!S(f)&&T(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,f,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new b,r={isProviderFor:function(t,r){var o=e.get(t);return!S(o)&&o.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,n){o(r,n,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var n=o(e,r,!1);return!S(n)&&$(n.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var n=o(e,r,!1);if(!S(n))return n.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],n=o(t,e,!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(t){try{z(i)}finally{throw t}}s++}},OrdinaryDeleteMetadata:function(t,r,n){var i=o(r,n,!1);if(S(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var s=e.get(r);S(s)||(s.delete(n),0===s.size&&e.delete(s))}return!0}};return h.registerProvider(r),r;function o(o,n,i){var s=e.get(o),a=!1;if(S(s)){if(!i)return;s=new u,e.set(o,s),a=!0}var l=s.get(n);if(S(l)){if(!i)return;if(l=new u,s.set(n,l),!t.setProvider(o,n,r))throw s.delete(n),a&&e.delete(o),new Error("Wrong provider for target.")}return l}}(h);function v(t,e,r){if(m(t,e,r))return!0;var o=q(e);return!E(o)&&v(t,o,r)}function m(t,e,r){var o=H(e,r,!1);return!S(o)&&$(o.OrdinaryHasOwnMetadata(t,e,r))}function y(t,e,r){if(m(t,e,r))return w(t,e,r);var o=q(e);return E(o)?void 0:y(t,o,r)}function w(t,e,r){var o=H(e,r,!1);if(!S(o))return o.OrdinaryGetOwnMetadata(t,e,r)}function _(t,e,r,o){H(r,o,!0).OrdinaryDefineOwnMetadata(t,e,r,o)}function x(t,e){var r=C(t,e),o=q(t);if(null===o)return r;var n=x(o,e);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 d=0,u=n;d<u.length;d++)c=u[d],i.has(c)||(i.add(c),s.push(c));return s}function C(t,e){var r=H(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function k(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function E(t){return null===t}function T(t){return"object"==typeof t?null!==t:"function"==typeof t}function A(t,e){switch(k(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",o=L(t,n);if(void 0!==o){var i=o.call(t,r);if(T(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(D(r)&&!T(n=r.call(t)))return n;if(D(o=t.valueOf)&&!T(n=o.call(t)))return n}else{var o;if(D(o=t.valueOf)&&!T(n=o.call(t)))return n;var n,i=t.toString;if(D(i)&&!T(n=i.call(t)))return n}throw new TypeError}(t,"default"===r?"number":r)}function $(t){return!!t}function O(t){var e=A(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function I(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function D(t){return"function"==typeof t}function j(t){return"function"==typeof t}function R(t,e){return t===e||t!=t&&e!=e}function L(t,e){var r=t[e];if(null!=r){if(!D(r))throw new TypeError;return r}}function P(t){var e=L(t,i);if(!D(e))throw new TypeError;var r=e.call(t);if(!T(r))throw new TypeError;return r}function M(t){return t.value}function N(t){var e=t.next();return!e.done&&e}function z(t){var e=t.return;e&&e.call(t)}function q(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===d)return e;if(e!==d)return e;var r=t.prototype,o=r&&Object.getPrototypeOf(r);if(null==o||o===Object.prototype)return e;var n=o.constructor;return"function"!=typeof n||n===t?e:n}function H(t,e,r){var o=h.getProvider(t,e);if(!S(o))return o;if(r){if(h.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function V(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,o){if(S(r)){if(!I(t))throw new TypeError;if(!j(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var o=(0,t[r])(e);if(!S(o)&&!E(o)){if(!j(o))throw new TypeError;e=o}}return e}(t,e)}if(!I(t))throw new TypeError;if(!T(e))throw new TypeError;if(!T(o)&&!S(o)&&!E(o))throw new TypeError;return E(o)&&(o=void 0),function(t,e,r,o){for(var n=t.length-1;n>=0;--n){var i=(0,t[n])(e,r,o);if(!S(i)&&!E(i)){if(!T(i))throw new TypeError;o=i}}return o}(t,e,r=O(r),o)})),t("metadata",(function(t,e){return function(r,o){if(!T(r))throw new TypeError;if(!S(o)&&!function(t){switch(k(t)){case 3:case 4:return!0;default:return!1}}(o))throw new TypeError;_(t,e,r,o)}})),t("defineMetadata",(function(t,e,r,o){if(!T(r))throw new TypeError;return S(o)||(o=O(o)),_(t,e,r,o)})),t("hasMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=O(r)),v(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=O(r)),m(t,e,r)})),t("getMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=O(r)),y(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=O(r)),w(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!T(t))throw new TypeError;return S(e)||(e=O(e)),x(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!T(t))throw new TypeError;return S(e)||(e=O(e)),C(t,e)})),t("deleteMetadata",(function(t,e,r){if(!T(e))throw new TypeError;if(S(r)||(r=O(r)),!T(e))throw new TypeError;S(r)||(r=O(r));var o=H(e,r,!1);return!S(o)&&o.OrdinaryDeleteMetadata(t,e,r)}))}(n,o),void 0===o.Reflect&&(o.Reflect=t)}()}(o||(o={}))}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,r),i.exports}r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.r(o),r.d(o,{Dependency:()=>fw,DependencyValidator:()=>yw,DependencyValidatorOptions:()=>hw,DependencyValidatorOptionsToken:()=>gw,EmailValidator:()=>pw,ExistsValidator:()=>bw,IApiServiceToken:()=>lw,QboApiElement:()=>xw,QboBadge:()=>Aw,QboContact:()=>Iw,QboDataList:()=>Rw,QboDocViewer:()=>Mw,QboFormEdit:()=>qw,QboFormElement:()=>Fw,QboMainMenu:()=>oT,QboMarkdown:()=>sT,QboMicrophone:()=>dT,QboPopover:()=>bT,QboPopup:()=>wT,QboPopupListener:()=>CT,QboSelect:()=>ET,QboSideBar:()=>$T,QboTable:()=>DT,QboValidate:()=>LT,RestApiService:()=>sw,ValidateToken:()=>cw,ZipCodeValidator:()=>uw,elementClearValue:()=>zT,elementData:()=>HT,elementOptions:()=>PT,elementResetValue:()=>NT,elementSelectorAll:()=>MT,getApiService:()=>VT,getArray:()=>ow,matches:()=>qT,registerRestApi:()=>aw,replicate:()=>iw,services:()=>I,substitute:()=>nw});var t,e={};r.r(e),r.d(e,{afterMain:()=>d_,afterRead:()=>a_,afterWrite:()=>b_,applyStyles:()=>w_,arrow:()=>q_,auto:()=>Gw,basePlacements:()=>Jw,beforeMain:()=>l_,beforeRead:()=>i_,beforeWrite:()=>u_,bottom:()=>Ww,clippingParents:()=>Zw,computeStyles:()=>F_,createPopper:()=>yx,createPopperBase:()=>mx,createPopperLite:()=>wx,detectOverflow:()=>ix,end:()=>Yw,eventListeners:()=>W_,flip:()=>sx,hide:()=>cx,left:()=>Xw,main:()=>c_,modifierPhases:()=>f_,offset:()=>dx,placements:()=>n_,popper:()=>e_,popperGenerator:()=>vx,popperOffsets:()=>ux,preventOverflow:()=>px,read:()=>s_,reference:()=>r_,right:()=>Kw,start:()=>Qw,top:()=>Bw,variationPlacements:()=>o_,viewport:()=>t_,write:()=>p_}),r(630),function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(t||(t={}));const n=t;var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},i(t,e)};function s(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function a(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}function d(t){return!!t.useClass}function u(t){return!!t.useFactory}var p=function(){function t(t){this.wrap=t,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return t.prototype.createProxy=function(t){var e,r=this,o=!1;return new Proxy({},this.createHandler((function(){return o||(e=t(r.wrap()),o=!0),e})))},t.prototype.createHandler=function(t){var e={};return this.reflectMethods.forEach((function(r){e[r]=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e[0]=t(),Reflect[r].apply(void 0,c(e))}})),e},t}();function b(t){return"string"==typeof t||"symbol"==typeof t}function f(t){return"object"==typeof t&&"token"in t&&"transform"in t}function h(t){return!!t.useToken}function g(t){return null!=t.useValue}const v=function(){function t(){this._registryMap=new Map}return t.prototype.entries=function(){return this._registryMap.entries()},t.prototype.getAll=function(t){return this.ensure(t),this._registryMap.get(t)},t.prototype.get=function(t){this.ensure(t);var e=this._registryMap.get(t);return e[e.length-1]||null},t.prototype.set=function(t,e){this.ensure(t),this._registryMap.get(t).push(e)},t.prototype.setAll=function(t,e){this._registryMap.set(t,e)},t.prototype.has=function(t){return this.ensure(t),this._registryMap.get(t).length>0},t.prototype.clear=function(){this._registryMap.clear()},t.prototype.ensure=function(t){this._registryMap.has(t)||this._registryMap.set(t,[])},t}(),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(v),y=function(){this.scopedResolutions=new Map};var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(v),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(v);const x=function(){this.preResolution=new w,this.postResolution=new _};var C=new Map,k=function(){function t(t){this.parent=t,this._registry=new m,this.interceptors=new x,this.disposed=!1,this.disposables=new Set}return t.prototype.register=function(t,e,r){var o;if(void 0===r&&(r={lifecycle:n.Transient}),this.ensureNotDisposed(),o=function(t){return d(t)||g(t)||h(t)||u(t)}(e)?e:{useClass:e},h(o))for(var i=[t],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)||u(o)))throw new Error('Cannot use lifecycle "'+n[r.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(t,{provider:o,options:r}),this},t.prototype.registerType=function(t,e){return this.ensureNotDisposed(),b(e)?this.register(t,{useToken:e}):this.register(t,{useClass:e})},t.prototype.registerInstance=function(t,e){return this.ensureNotDisposed(),this.register(t,{useValue:e})},t.prototype.registerSingleton=function(t,e){if(this.ensureNotDisposed(),b(t)){if(b(e))return this.register(t,{useToken:e},{lifecycle:n.Singleton});if(e)return this.register(t,{useClass:e},{lifecycle:n.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=t;return e&&!b(e)&&(r=e),this.register(t,{useClass:r},{lifecycle:n.Singleton})},t.prototype.resolve=function(t,e){void 0===e&&(e=new y),this.ensureNotDisposed();var r=this.getRegistration(t);if(!r&&b(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"Single"),r){var o=this.resolveRegistration(r,e);return this.executePostResolutionInterceptor(t,o,"Single"),o}if(function(t){return"function"==typeof t||t instanceof p}(t))return o=this.construct(t,e),this.executePostResolutionInterceptor(t,o,"Single"),o;throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},t.prototype.executePreResolutionInterceptor=function(t,e){var r,o;if(this.interceptors.preResolution.has(t)){var n=[];try{for(var i=a(this.interceptors.preResolution.getAll(t)),s=i.next();!s.done;s=i.next()){var l=s.value;"Once"!=l.options.frequency&&n.push(l),l.callback(t,e)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}this.interceptors.preResolution.setAll(t,n)}},t.prototype.executePostResolutionInterceptor=function(t,e,r){var o,n;if(this.interceptors.postResolution.has(t)){var i=[];try{for(var s=a(this.interceptors.postResolution.getAll(t)),l=s.next();!l.done;l=s.next()){var c=l.value;"Once"!=c.options.frequency&&i.push(c),c.callback(t,e,r)}}catch(t){o={error:t}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}this.interceptors.postResolution.setAll(t,i)}},t.prototype.resolveRegistration=function(t,e){if(this.ensureNotDisposed(),t.options.lifecycle===n.ResolutionScoped&&e.scopedResolutions.has(t))return e.scopedResolutions.get(t);var r,o=t.options.lifecycle===n.Singleton,i=t.options.lifecycle===n.ContainerScoped,s=o||i;return r=g(t.provider)?t.provider.useValue:h(t.provider)?s?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):d(t.provider)?s?t.instance||(t.instance=this.construct(t.provider.useClass,e)):this.construct(t.provider.useClass,e):u(t.provider)?t.provider.useFactory(this):this.construct(t.provider,e),t.options.lifecycle===n.ResolutionScoped&&e.scopedResolutions.set(t,r),r},t.prototype.resolveAll=function(t,e){var r=this;void 0===e&&(e=new y),this.ensureNotDisposed();var o=this.getAllRegistrations(t);if(!o&&b(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"All"),o){var n=o.map((function(t){return r.resolveRegistration(t,e)}));return this.executePostResolutionInterceptor(t,n,"All"),n}var i=[this.construct(t,e)];return this.executePostResolutionInterceptor(t,i,"All"),i},t.prototype.isRegistered=function(t,e){return void 0===e&&(e=!1),this.ensureNotDisposed(),this._registry.has(t)||e&&(this.parent||!1)&&this.parent.isRegistered(t,!0)},t.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},t.prototype.clearInstances=function(){var t,e;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(t){return!g(t.provider)})).map((function(t){return t.instance=void 0,t})))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},t.prototype.createChildContainer=function(){var e,r;this.ensureNotDisposed();var o=new t(this);try{for(var i=a(this._registry.entries()),s=i.next();!s.done;s=i.next()){var c=l(s.value,2),d=c[0],u=c[1];u.some((function(t){return t.options.lifecycle===n.ContainerScoped}))&&o._registry.setAll(d,u.map((function(t){return t.options.lifecycle===n.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return o},t.prototype.beforeResolution=function(t,e,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.preResolution.set(t,{callback:e,options:r})},t.prototype.afterResolution=function(t,e,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.postResolution.set(t,{callback:e,options:r})},t.prototype.dispose=function(){return function(t,e,r,o){return new(r||(r=Promise))((function(n,i){function s(t){try{l(o.next(t))}catch(t){i(t)}}function a(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}l((o=o.apply(t,e||[])).next())}))}(this,void 0,void 0,(function(){var t;return function(t,e){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=e.call(t,s)}catch(t){i=[6,t],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(e){switch(e.label){case 0:return this.disposed=!0,t=[],this.disposables.forEach((function(e){var r=e.dispose();r&&t.push(r)})),[4,Promise.all(t)];case 1:return e.sent(),[2]}}))}))},t.prototype.getRegistration=function(t){return this.isRegistered(t)?this._registry.get(t):this.parent?this.parent.getRegistration(t):null},t.prototype.getAllRegistrations=function(t){return this.isRegistered(t)?this._registry.getAll(t):this.parent?this.parent.getAllRegistrations(t):null},t.prototype.construct=function(t,e){var r=this;if(t instanceof p)return t.createProxy((function(t){return r.resolve(t,e)}));var o,n=function(){var o=C.get(t);if(!o||0===o.length){if(0===t.length)return new t;throw new Error('TypeInfo not known for "'+t.name+'"')}var n=o.map(r.resolveParams(e,t));return new(t.bind.apply(t,c([void 0],n)))}();return"function"!=typeof(o=n).dispose||o.dispose.length>0||this.disposables.add(n),n},t.prototype.resolveParams=function(t,e){var r=this;return function(o,n){var i,s,a,d;try{return"object"==typeof(d=o)&&"token"in d&&"multiple"in d?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,t)],o.transformArgs)):o.multiple?r.resolveAll(o.token):r.resolve(o.token,t):f(o)?(a=r.resolve(o.transform,t)).transform.apply(a,c([r.resolve(o.token,t)],o.transformArgs)):r.resolve(o,t)}catch(t){throw new Error(function(t,e,r){var o,n,i=l(t.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(t,e,r){return void 0===r&&(r=" "),c([t],e.message.split("\n").map((function(t){return r+t}))).join("\n")}("Cannot inject the dependency "+(n=e,(null===(o=void 0===i?null:i)?"at position #"+n:'"'+o.split(",")[n].trim()+'" at position #'+n)+' of "')+t.name+'" constructor. Reason:',r)}(e,n,t))}}},t.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},t}(),S=new k,E="injectionTokens";function T(t,e){return function(r,o,n){var i=Reflect.getOwnMetadata(E,r)||{};i[n]=e?{token:t,transform:e.transformToken,transformArgs:e.args||[]}:t,Reflect.defineMetadata(E,i,r)}}const A=function(t){return T(t)},$=function(){return function(t){C.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],r=Reflect.getOwnMetadata(E,t)||{};return Object.keys(r).forEach((function(t){e[+t]=r[t]})),e}(t))}},O=function(t){return T({token:t,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(t,e){this.container=t,this.options=e}getService(t){return this.container.resolve(t)}}(S.createChildContainer(),{});const I=window.qbo4.services,D="IConfigurationSourceToken",j="IConfigurationToken";function*R(t,e=""){for(const[r,o]of Object.entries(t)){const t=e?`${e}:${r}`:r;if(Array.isArray(o))for(let e=0;e<o.length;e++){const r=o[e];"object"==typeof r&&null!==r?yield*R(r,`${t}:${e}`):yield{key:`${t}:${e}`,value:r}}else"object"==typeof o&&null!==o?yield*R(o,t):yield{key:t,value:o}}}class L{constructor(t){this.jsonConfig=t}getData(){return this.jsonConfig}*getValues(){yield*R(this.jsonConfig)}}class P{constructor(t){this.data=t}getSection(t){const e=t.split(":");let r=this.data;for(const t of e){if(!(t in r))return new P({});r=r[t]}return new P(r)}get(t){const e=t.split(":");let r=this.data;for(const t of e){if(!r||!(t in r))return{};r=r[t]}return r}bind(t){const e=new t;for(const t in this.data)this.data.hasOwnProperty(t)&&(e[t]=this.data[t]);return e}*getValues(){yield*R(this.data)}}let M=class extends P{constructor(t){super({}),this.sources=t,this.mergeConfigurations(t)}mergeConfigurations(t){t.forEach((t=>{const e=t.getData();this.data={...this.data,...e}}))}};var N,z;M=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}([$(),(N=0,z=O(D),function(t,e){z(t,e,N)}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[Array])],M),I.container.register(j,{useClass:M},{lifecycle:n.Singleton}),I.container.register(D,{useClass:class{getData(){return{}}*getValues(){yield*R({})}}},{lifecycle:n.Singleton});const q=globalThis,H=q.ShadowRoot&&(void 0===q.ShadyCSS||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,V=Symbol(),U=new WeakMap;class F{constructor(t,e,r){if(this._$cssResult$=!0,r!==V)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(H&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=U.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&U.set(e,t))}return t}toString(){return this.cssText}}const B=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[o+1]),t[0]);return new F(r,t,V)},W=H?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new F("string"==typeof t?t:t+"",void 0,V))(e)})(t):t,{is:K,defineProperty:X,getOwnPropertyDescriptor:G,getOwnPropertyNames:J,getOwnPropertySymbols:Q,getPrototypeOf:Y}=Object,Z=globalThis,tt=Z.trustedTypes,et=tt?tt.emptyScript:"",rt=Z.reactiveElementPolyfillSupport,ot=(t,e)=>t,nt={toAttribute(t,e){switch(e){case Boolean:t=t?et:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},it=(t,e)=>!K(t,e),st={attribute:!0,type:String,converter:nt,reflect:!1,hasChanged:it};Symbol.metadata??=Symbol("metadata"),Z.litPropertyMetadata??=new WeakMap;class at extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=st){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(t,r,e);void 0!==o&&X(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){const{get:o,set:n}=G(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const i=o?.call(this);n.call(this,e),this.requestUpdate(t,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??st}static _$Ei(){if(this.hasOwnProperty(ot("elementProperties")))return;const t=Y(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ot("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ot("properties"))){const t=this.properties,e=[...J(t),...Q(t)];for(const r of e)this.createProperty(r,t[r])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const r=this._$Eu(t,e);void 0!==r&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(W(t))}else void 0!==t&&e.push(W(t));return e}static _$Eu(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.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((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(H)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const r of e){const e=document.createElement("style"),o=q.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=r.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){const r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(void 0!==o&&!0===r.reflect){const n=(void 0!==r.converter?.toAttribute?r.converter:nt).toAttribute(e,r.type);this._$Em=t,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,e){const r=this.constructor,o=r._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=r.getPropertyOptions(o),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:nt;this._$Em=o,this[o]=n.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,r){if(void 0!==t){if(r??=this.constructor.getPropertyOptions(t),!(r.hasChanged??it)(this[t],e))return;this.P(t,e,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,r]of t)!0!==r.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}at.elementStyles=[],at.shadowRootOptions={mode:"open"},at[ot("elementProperties")]=new Map,at[ot("finalized")]=new Map,rt?.({ReactiveElement:at}),(Z.reactiveElementVersions??=[]).push("2.0.4");const lt=globalThis,ct=lt.trustedTypes,dt=ct?ct.createPolicy("lit-html",{createHTML:t=>t}):void 0,ut="$lit$",pt=`lit$${Math.random().toFixed(9).slice(2)}$`,bt="?"+pt,ft=`<${bt}>`,ht=document,gt=()=>ht.createComment(""),vt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,mt=Array.isArray,yt="[ \t\n\f\r]",wt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_t=/-->/g,xt=/>/g,Ct=RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),kt=/'/g,St=/"/g,Et=/^(?:script|style|textarea|title)$/i,Tt=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),At=Tt(1),$t=(Tt(2),Symbol.for("lit-noChange")),Ot=Symbol.for("lit-nothing"),It=new WeakMap,Dt=ht.createTreeWalker(ht,129);function jt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==dt?dt.createHTML(e):e}const Rt=(t,e)=>{const r=t.length-1,o=[];let n,i=2===e?"<svg>":"",s=wt;for(let e=0;e<r;e++){const r=t[e];let a,l,c=-1,d=0;for(;d<r.length&&(s.lastIndex=d,l=s.exec(r),null!==l);)d=s.lastIndex,s===wt?"!--"===l[1]?s=_t:void 0!==l[1]?s=xt:void 0!==l[2]?(Et.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=Ct):void 0!==l[3]&&(s=Ct):s===Ct?">"===l[0]?(s=n??wt,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Ct:'"'===l[3]?St:kt):s===St||s===kt?s=Ct:s===_t||s===xt?s=wt:(s=Ct,n=void 0);const u=s===Ct&&t[e+1].startsWith("/>")?" ":"";i+=s===wt?r+ft:c>=0?(o.push(a),r.slice(0,c)+ut+r.slice(c)+pt+u):r+pt+(-2===c?e:u)}return[jt(t,i+(t[r]||"<?>")+(2===e?"</svg>":"")),o]};class Lt{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let n=0,i=0;const s=t.length-1,a=this.parts,[l,c]=Rt(t,e);if(this.el=Lt.createElement(l,r),Dt.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=Dt.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(ut)){const e=c[i++],r=o.getAttribute(t).split(pt),s=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:s[2],strings:r,ctor:"."===s[1]?qt:"?"===s[1]?Ht:"@"===s[1]?Vt:zt}),o.removeAttribute(t)}else t.startsWith(pt)&&(a.push({type:6,index:n}),o.removeAttribute(t));if(Et.test(o.tagName)){const t=o.textContent.split(pt),e=t.length-1;if(e>0){o.textContent=ct?ct.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],gt()),Dt.nextNode(),a.push({type:2,index:++n});o.append(t[e],gt())}}}else if(8===o.nodeType)if(o.data===bt)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(pt,t+1));)a.push({type:7,index:n}),t+=pt.length-1}n++}}static createElement(t,e){const r=ht.createElement("template");return r.innerHTML=t,r}}function Pt(t,e,r=t,o){if(e===$t)return e;let n=void 0!==o?r._$Co?.[o]:r._$Cl;const i=vt(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(t),n._$AT(t,r,o)),void 0!==o?(r._$Co??=[])[o]=n:r._$Cl=n),void 0!==n&&(e=Pt(t,n._$AS(t,e.values),n,o)),e}class Mt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??ht).importNode(e,!0);Dt.currentNode=o;let n=Dt.nextNode(),i=0,s=0,a=r[0];for(;void 0!==a;){if(i===a.index){let e;2===a.type?e=new Nt(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new Ut(n,this,t)),this._$AV.push(e),a=r[++s]}i!==a?.index&&(n=Dt.nextNode(),i++)}return Dt.currentNode=ht,o}p(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class Nt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=Ot,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Pt(this,t,e),vt(t)?t===Ot||null==t||""===t?(this._$AH!==Ot&&this._$AR(),this._$AH=Ot):t!==this._$AH&&t!==$t&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>mt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==Ot&&vt(this._$AH)?this._$AA.nextSibling.data=t:this.T(ht.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=Lt.createElement(jt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new Mt(o,this),r=t.u(this.options);t.p(e),this.T(r),this._$AH=t}}_$AC(t){let e=It.get(t.strings);return void 0===e&&It.set(t.strings,e=new Lt(t)),e}k(t){mt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const n of t)o===e.length?e.push(r=new Nt(this.S(gt()),this.S(gt()),this,this.options)):r=e[o],r._$AI(n),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class zt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,n){this.type=1,this._$AH=Ot,this._$AN=void 0,this.element=t,this.name=e,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=Ot}_$AI(t,e=this,r,o){const n=this.strings;let i=!1;if(void 0===n)t=Pt(this,t,e,0),i=!vt(t)||t!==this._$AH&&t!==$t,i&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Pt(this,o[r+s],e,s),a===$t&&(a=this._$AH[s]),i||=!vt(a)||a!==this._$AH[s],a===Ot?t=Ot:t!==Ot&&(t+=(a??"")+n[s+1]),this._$AH[s]=a}i&&!o&&this.j(t)}j(t){t===Ot?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class qt extends zt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ot?void 0:t}}class Ht extends zt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ot)}}class Vt extends zt{constructor(t,e,r,o,n){super(t,e,r,o,n),this.type=5}_$AI(t,e=this){if((t=Pt(this,t,e,0)??Ot)===$t)return;const r=this._$AH,o=t===Ot&&r!==Ot||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==Ot&&(r===Ot||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Ut{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Pt(this,t)}}const Ft=lt.litHtmlPolyfillSupport;Ft?.(Lt,Nt),(lt.litHtmlVersions??=[]).push("3.1.3");class Bt extends at{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,r)=>{const o=r?.renderBefore??e;let n=o._$litPart$;if(void 0===n){const t=r?.renderBefore??null;o._$litPart$=n=new Nt(e.insertBefore(gt(),t),t,void 0,r??{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return $t}}Bt._$litElement$=!0,Bt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Bt});const Wt=globalThis.litElementPolyfillSupport;Wt?.({LitElement:Bt}),(globalThis.litElementVersions??=[]).push("4.0.5");const Kt=t=>(e,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},Xt={attribute:!0,type:String,converter:nt,reflect:!1,hasChanged:it},Gt=(t=Xt,e,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,t),"accessor"===o){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.P(o,void 0,t),e}}}if("setter"===o){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error("Unsupported decorator location: "+o)};function Jt(t){return(e,r)=>"object"==typeof r?Gt(t,e,r):((t,e,r)=>{const o=e.hasOwnProperty(r);return e.constructor.createProperty(r,o?{...t,wrapped:!0}:t),o?Object.getOwnPropertyDescriptor(e,r):void 0})(t,e,r)}class Qt extends Bt{static get formAssociated(){return!0}static{this.styles=B`
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.qbo4=e():(t.qbo4=t.qbo4||{},t.qbo4.ui=e())}(self,(()=>(()=>{var t={630:(t,e,r)=>{var o;!function(t){!function(e){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(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),n=i(t);function i(t,e){return function(r,o){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:o}),e&&e(r,o)}}void 0!==o.Reflect&&(n=i(o.Reflect,n)),function(t,e){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 V(Object.create(null))}:a?function(){return V({__proto__:null})}:function(){return V({})},has:l?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:l?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},d=Object.getPrototypeOf(Function),u="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!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--,j(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,o)},e.prototype.values=function(){return new r(this._keys,this._values,n)},e.prototype.entries=function(){return new r(this._keys,this._values,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!j(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(j(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function o(t,e){return t}function n(t,e){return e}function s(t,e){return[t,e]}}(),p="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new u}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),b="function"==typeof WeakMap?WeakMap:function(){var t=16,e=c.create(),o=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var t;do{t="@@WeakMap@@"+a()}while(c.has(e,t));return e[t]=!0,t}function i(t,e){if(!r.call(t,o)){if(!e)return;Object.defineProperty(t,o,{value:c.create()})}return t[o]}function s(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var e=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):s(e,t),e}return s(new Array(t),t)}(t);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var r="",o=0;o<t;++o){var n=e[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 t;return!S(f)&&T(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[f]),S(t)&&(t=function(){var t,r,o,n;S(f)||void 0===e.Reflect||f in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,o=t.getOwnMetadata,n=t.getOwnMetadataKeys,i=t.deleteMetadata,s=new b;return{isProviderFor:function(t,e){var r=s.get(t);return!(S(r)||!r.has(e))||!!n(t,e).length&&(S(r)&&(r=new p,s.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:o,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new b,s={registerProvider:a,getProvider:c,setProvider:h};return s;function a(e){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(o):o=e;break;case o===e:break;default:void 0===n&&(n=new p),n.add(e)}}function l(e,i){if(!S(r)){if(r.isProviderFor(e,i))return r;if(!S(o)){if(o.isProviderFor(e,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(e,i))return z(s),l}}}if(!S(t)&&t.isProviderFor(e,i))return t}function c(t,e){var r,o=i.get(t);return S(o)||(r=o.get(e)),S(r)?(S(r=l(t,e))||(S(o)&&(o=new u,i.set(t,o)),o.set(e,r)),r):r}function d(t){if(S(t))throw new TypeError;return r===t||o===t||!S(n)&&n.has(t)}function h(t,e,r){if(!d(r))throw new Error("Metadata provider not registered.");var o=c(t,e);if(o!==r){if(!S(o))return!1;var n=i.get(t);S(n)&&(n=new u,i.set(t,n)),n.set(e,r)}return!0}}()),!S(f)&&T(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,f,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new b,r={isProviderFor:function(t,r){var o=e.get(t);return!S(o)&&o.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,n){o(r,n,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var n=o(e,r,!1);return!S(n)&&O(n.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var n=o(e,r,!1);if(!S(n))return n.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],n=o(t,e,!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(t){try{z(i)}finally{throw t}}s++}},OrdinaryDeleteMetadata:function(t,r,n){var i=o(r,n,!1);if(S(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var s=e.get(r);S(s)||(s.delete(n),0===s.size&&e.delete(s))}return!0}};return h.registerProvider(r),r;function o(o,n,i){var s=e.get(o),a=!1;if(S(s)){if(!i)return;s=new u,e.set(o,s),a=!0}var l=s.get(n);if(S(l)){if(!i)return;if(l=new u,s.set(n,l),!t.setProvider(o,n,r))throw s.delete(n),a&&e.delete(o),new Error("Wrong provider for target.")}return l}}(h);function v(t,e,r){if(m(t,e,r))return!0;var o=q(e);return!E(o)&&v(t,o,r)}function m(t,e,r){var o=H(e,r,!1);return!S(o)&&O(o.OrdinaryHasOwnMetadata(t,e,r))}function y(t,e,r){if(m(t,e,r))return w(t,e,r);var o=q(e);return E(o)?void 0:y(t,o,r)}function w(t,e,r){var o=H(e,r,!1);if(!S(o))return o.OrdinaryGetOwnMetadata(t,e,r)}function _(t,e,r,o){H(r,o,!0).OrdinaryDefineOwnMetadata(t,e,r,o)}function x(t,e){var r=C(t,e),o=q(t);if(null===o)return r;var n=x(o,e);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 d=0,u=n;d<u.length;d++)c=u[d],i.has(c)||(i.add(c),s.push(c));return s}function C(t,e){var r=H(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function k(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function E(t){return null===t}function T(t){return"object"==typeof t?null!==t:"function"==typeof t}function A(t,e){switch(k(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",o=L(t,n);if(void 0!==o){var i=o.call(t,r);if(T(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(D(r)&&!T(n=r.call(t)))return n;if(D(o=t.valueOf)&&!T(n=o.call(t)))return n}else{var o;if(D(o=t.valueOf)&&!T(n=o.call(t)))return n;var n,i=t.toString;if(D(i)&&!T(n=i.call(t)))return n}throw new TypeError}(t,"default"===r?"number":r)}function O(t){return!!t}function $(t){var e=A(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function I(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function D(t){return"function"==typeof t}function R(t){return"function"==typeof t}function j(t,e){return t===e||t!=t&&e!=e}function L(t,e){var r=t[e];if(null!=r){if(!D(r))throw new TypeError;return r}}function P(t){var e=L(t,i);if(!D(e))throw new TypeError;var r=e.call(t);if(!T(r))throw new TypeError;return r}function M(t){return t.value}function N(t){var e=t.next();return!e.done&&e}function z(t){var e=t.return;e&&e.call(t)}function q(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===d)return e;if(e!==d)return e;var r=t.prototype,o=r&&Object.getPrototypeOf(r);if(null==o||o===Object.prototype)return e;var n=o.constructor;return"function"!=typeof n||n===t?e:n}function H(t,e,r){var o=h.getProvider(t,e);if(!S(o))return o;if(r){if(h.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function V(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,o){if(S(r)){if(!I(t))throw new TypeError;if(!R(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var o=(0,t[r])(e);if(!S(o)&&!E(o)){if(!R(o))throw new TypeError;e=o}}return e}(t,e)}if(!I(t))throw new TypeError;if(!T(e))throw new TypeError;if(!T(o)&&!S(o)&&!E(o))throw new TypeError;return E(o)&&(o=void 0),function(t,e,r,o){for(var n=t.length-1;n>=0;--n){var i=(0,t[n])(e,r,o);if(!S(i)&&!E(i)){if(!T(i))throw new TypeError;o=i}}return o}(t,e,r=$(r),o)})),t("metadata",(function(t,e){return function(r,o){if(!T(r))throw new TypeError;if(!S(o)&&!function(t){switch(k(t)){case 3:case 4:return!0;default:return!1}}(o))throw new TypeError;_(t,e,r,o)}})),t("defineMetadata",(function(t,e,r,o){if(!T(r))throw new TypeError;return S(o)||(o=$(o)),_(t,e,r,o)})),t("hasMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=$(r)),v(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=$(r)),m(t,e,r)})),t("getMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=$(r)),y(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=$(r)),w(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!T(t))throw new TypeError;return S(e)||(e=$(e)),x(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!T(t))throw new TypeError;return S(e)||(e=$(e)),C(t,e)})),t("deleteMetadata",(function(t,e,r){if(!T(e))throw new TypeError;if(S(r)||(r=$(r)),!T(e))throw new TypeError;S(r)||(r=$(r));var o=H(e,r,!1);return!S(o)&&o.OrdinaryDeleteMetadata(t,e,r)}))}(n,o),void 0===o.Reflect&&(o.Reflect=t)}()}(o||(o={}))}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,r),i.exports}r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.r(o),r.d(o,{Dependency:()=>fw,DependencyValidator:()=>yw,DependencyValidatorOptions:()=>hw,DependencyValidatorOptionsToken:()=>gw,EmailValidator:()=>pw,ExistsValidator:()=>bw,IApiServiceToken:()=>lw,QboApiElement:()=>xw,QboBadge:()=>Aw,QboContact:()=>Iw,QboDataList:()=>jw,QboDocViewer:()=>Mw,QboFormEdit:()=>qw,QboFormElement:()=>Fw,QboMainMenu:()=>oT,QboMarkdown:()=>sT,QboMicrophone:()=>dT,QboPopover:()=>bT,QboPopup:()=>wT,QboPopupListener:()=>CT,QboSelect:()=>ET,QboSideBar:()=>OT,QboTable:()=>DT,QboValidate:()=>LT,RestApiService:()=>sw,ValidateToken:()=>cw,ZipCodeValidator:()=>uw,elementClearValue:()=>zT,elementData:()=>HT,elementOptions:()=>PT,elementResetValue:()=>NT,elementSelectorAll:()=>MT,getApiService:()=>VT,getArray:()=>ow,matches:()=>qT,registerRestApi:()=>aw,replicate:()=>iw,services:()=>I,substitute:()=>nw});var t,e={};r.r(e),r.d(e,{afterMain:()=>d_,afterRead:()=>a_,afterWrite:()=>b_,applyStyles:()=>w_,arrow:()=>q_,auto:()=>Gw,basePlacements:()=>Jw,beforeMain:()=>l_,beforeRead:()=>i_,beforeWrite:()=>u_,bottom:()=>Ww,clippingParents:()=>Zw,computeStyles:()=>F_,createPopper:()=>yx,createPopperBase:()=>mx,createPopperLite:()=>wx,detectOverflow:()=>ix,end:()=>Yw,eventListeners:()=>W_,flip:()=>sx,hide:()=>cx,left:()=>Xw,main:()=>c_,modifierPhases:()=>f_,offset:()=>dx,placements:()=>n_,popper:()=>e_,popperGenerator:()=>vx,popperOffsets:()=>ux,preventOverflow:()=>px,read:()=>s_,reference:()=>r_,right:()=>Kw,start:()=>Qw,top:()=>Bw,variationPlacements:()=>o_,viewport:()=>t_,write:()=>p_}),r(630),function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(t||(t={}));const n=t;var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},i(t,e)};function s(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function a(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}function d(t){return!!t.useClass}function u(t){return!!t.useFactory}var p=function(){function t(t){this.wrap=t,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return t.prototype.createProxy=function(t){var e,r=this,o=!1;return new Proxy({},this.createHandler((function(){return o||(e=t(r.wrap()),o=!0),e})))},t.prototype.createHandler=function(t){var e={};return this.reflectMethods.forEach((function(r){e[r]=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e[0]=t(),Reflect[r].apply(void 0,c(e))}})),e},t}();function b(t){return"string"==typeof t||"symbol"==typeof t}function f(t){return"object"==typeof t&&"token"in t&&"transform"in t}function h(t){return!!t.useToken}function g(t){return null!=t.useValue}const v=function(){function t(){this._registryMap=new Map}return t.prototype.entries=function(){return this._registryMap.entries()},t.prototype.getAll=function(t){return this.ensure(t),this._registryMap.get(t)},t.prototype.get=function(t){this.ensure(t);var e=this._registryMap.get(t);return e[e.length-1]||null},t.prototype.set=function(t,e){this.ensure(t),this._registryMap.get(t).push(e)},t.prototype.setAll=function(t,e){this._registryMap.set(t,e)},t.prototype.has=function(t){return this.ensure(t),this._registryMap.get(t).length>0},t.prototype.clear=function(){this._registryMap.clear()},t.prototype.ensure=function(t){this._registryMap.has(t)||this._registryMap.set(t,[])},t}(),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(v),y=function(){this.scopedResolutions=new Map};var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(v),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(v);const x=function(){this.preResolution=new w,this.postResolution=new _};var C=new Map,k=function(){function t(t){this.parent=t,this._registry=new m,this.interceptors=new x,this.disposed=!1,this.disposables=new Set}return t.prototype.register=function(t,e,r){var o;if(void 0===r&&(r={lifecycle:n.Transient}),this.ensureNotDisposed(),o=function(t){return d(t)||g(t)||h(t)||u(t)}(e)?e:{useClass:e},h(o))for(var i=[t],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)||u(o)))throw new Error('Cannot use lifecycle "'+n[r.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(t,{provider:o,options:r}),this},t.prototype.registerType=function(t,e){return this.ensureNotDisposed(),b(e)?this.register(t,{useToken:e}):this.register(t,{useClass:e})},t.prototype.registerInstance=function(t,e){return this.ensureNotDisposed(),this.register(t,{useValue:e})},t.prototype.registerSingleton=function(t,e){if(this.ensureNotDisposed(),b(t)){if(b(e))return this.register(t,{useToken:e},{lifecycle:n.Singleton});if(e)return this.register(t,{useClass:e},{lifecycle:n.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=t;return e&&!b(e)&&(r=e),this.register(t,{useClass:r},{lifecycle:n.Singleton})},t.prototype.resolve=function(t,e){void 0===e&&(e=new y),this.ensureNotDisposed();var r=this.getRegistration(t);if(!r&&b(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"Single"),r){var o=this.resolveRegistration(r,e);return this.executePostResolutionInterceptor(t,o,"Single"),o}if(function(t){return"function"==typeof t||t instanceof p}(t))return o=this.construct(t,e),this.executePostResolutionInterceptor(t,o,"Single"),o;throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},t.prototype.executePreResolutionInterceptor=function(t,e){var r,o;if(this.interceptors.preResolution.has(t)){var n=[];try{for(var i=a(this.interceptors.preResolution.getAll(t)),s=i.next();!s.done;s=i.next()){var l=s.value;"Once"!=l.options.frequency&&n.push(l),l.callback(t,e)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}this.interceptors.preResolution.setAll(t,n)}},t.prototype.executePostResolutionInterceptor=function(t,e,r){var o,n;if(this.interceptors.postResolution.has(t)){var i=[];try{for(var s=a(this.interceptors.postResolution.getAll(t)),l=s.next();!l.done;l=s.next()){var c=l.value;"Once"!=c.options.frequency&&i.push(c),c.callback(t,e,r)}}catch(t){o={error:t}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}this.interceptors.postResolution.setAll(t,i)}},t.prototype.resolveRegistration=function(t,e){if(this.ensureNotDisposed(),t.options.lifecycle===n.ResolutionScoped&&e.scopedResolutions.has(t))return e.scopedResolutions.get(t);var r,o=t.options.lifecycle===n.Singleton,i=t.options.lifecycle===n.ContainerScoped,s=o||i;return r=g(t.provider)?t.provider.useValue:h(t.provider)?s?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):d(t.provider)?s?t.instance||(t.instance=this.construct(t.provider.useClass,e)):this.construct(t.provider.useClass,e):u(t.provider)?t.provider.useFactory(this):this.construct(t.provider,e),t.options.lifecycle===n.ResolutionScoped&&e.scopedResolutions.set(t,r),r},t.prototype.resolveAll=function(t,e){var r=this;void 0===e&&(e=new y),this.ensureNotDisposed();var o=this.getAllRegistrations(t);if(!o&&b(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"All"),o){var n=o.map((function(t){return r.resolveRegistration(t,e)}));return this.executePostResolutionInterceptor(t,n,"All"),n}var i=[this.construct(t,e)];return this.executePostResolutionInterceptor(t,i,"All"),i},t.prototype.isRegistered=function(t,e){return void 0===e&&(e=!1),this.ensureNotDisposed(),this._registry.has(t)||e&&(this.parent||!1)&&this.parent.isRegistered(t,!0)},t.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},t.prototype.clearInstances=function(){var t,e;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(t){return!g(t.provider)})).map((function(t){return t.instance=void 0,t})))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},t.prototype.createChildContainer=function(){var e,r;this.ensureNotDisposed();var o=new t(this);try{for(var i=a(this._registry.entries()),s=i.next();!s.done;s=i.next()){var c=l(s.value,2),d=c[0],u=c[1];u.some((function(t){return t.options.lifecycle===n.ContainerScoped}))&&o._registry.setAll(d,u.map((function(t){return t.options.lifecycle===n.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return o},t.prototype.beforeResolution=function(t,e,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.preResolution.set(t,{callback:e,options:r})},t.prototype.afterResolution=function(t,e,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.postResolution.set(t,{callback:e,options:r})},t.prototype.dispose=function(){return function(t,e,r,o){return new(r||(r=Promise))((function(n,i){function s(t){try{l(o.next(t))}catch(t){i(t)}}function a(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}l((o=o.apply(t,e||[])).next())}))}(this,void 0,void 0,(function(){var t;return function(t,e){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=e.call(t,s)}catch(t){i=[6,t],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(e){switch(e.label){case 0:return this.disposed=!0,t=[],this.disposables.forEach((function(e){var r=e.dispose();r&&t.push(r)})),[4,Promise.all(t)];case 1:return e.sent(),[2]}}))}))},t.prototype.getRegistration=function(t){return this.isRegistered(t)?this._registry.get(t):this.parent?this.parent.getRegistration(t):null},t.prototype.getAllRegistrations=function(t){return this.isRegistered(t)?this._registry.getAll(t):this.parent?this.parent.getAllRegistrations(t):null},t.prototype.construct=function(t,e){var r=this;if(t instanceof p)return t.createProxy((function(t){return r.resolve(t,e)}));var o,n=function(){var o=C.get(t);if(!o||0===o.length){if(0===t.length)return new t;throw new Error('TypeInfo not known for "'+t.name+'"')}var n=o.map(r.resolveParams(e,t));return new(t.bind.apply(t,c([void 0],n)))}();return"function"!=typeof(o=n).dispose||o.dispose.length>0||this.disposables.add(n),n},t.prototype.resolveParams=function(t,e){var r=this;return function(o,n){var i,s,a,d;try{return"object"==typeof(d=o)&&"token"in d&&"multiple"in d?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,t)],o.transformArgs)):o.multiple?r.resolveAll(o.token):r.resolve(o.token,t):f(o)?(a=r.resolve(o.transform,t)).transform.apply(a,c([r.resolve(o.token,t)],o.transformArgs)):r.resolve(o,t)}catch(t){throw new Error(function(t,e,r){var o,n,i=l(t.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(t,e,r){return void 0===r&&(r=" "),c([t],e.message.split("\n").map((function(t){return r+t}))).join("\n")}("Cannot inject the dependency "+(n=e,(null===(o=void 0===i?null:i)?"at position #"+n:'"'+o.split(",")[n].trim()+'" at position #'+n)+' of "')+t.name+'" constructor. Reason:',r)}(e,n,t))}}},t.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},t}(),S=new k,E="injectionTokens";function T(t,e){return function(r,o,n){var i=Reflect.getOwnMetadata(E,r)||{};i[n]=e?{token:t,transform:e.transformToken,transformArgs:e.args||[]}:t,Reflect.defineMetadata(E,i,r)}}const A=function(t){return T(t)},O=function(){return function(t){C.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],r=Reflect.getOwnMetadata(E,t)||{};return Object.keys(r).forEach((function(t){e[+t]=r[t]})),e}(t))}},$=function(t){return T({token:t,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(t,e){this.container=t,this.options=e}getService(t){return this.container.resolve(t)}}(S.createChildContainer(),{});const I=window.qbo4.services,D="IConfigurationSourceToken",R="IConfigurationToken";function*j(t,e=""){for(const[r,o]of Object.entries(t)){const t=e?`${e}:${r}`:r;if(Array.isArray(o))for(let e=0;e<o.length;e++){const r=o[e];"object"==typeof r&&null!==r?yield*j(r,`${t}:${e}`):yield{key:`${t}:${e}`,value:r}}else"object"==typeof o&&null!==o?yield*j(o,t):yield{key:t,value:o}}}class L{constructor(t){this.jsonConfig=t}getData(){return this.jsonConfig}*getValues(){yield*j(this.jsonConfig)}}class P{constructor(t){this.data=t}getSection(t){const e=t.split(":");let r=this.data;for(const t of e){if(!(t in r))return new P({});r=r[t]}return new P(r)}get(t){const e=t.split(":");let r=this.data;for(const t of e){if(!r||!(t in r))return{};r=r[t]}return r}bind(t){const e=new t;for(const t in this.data)this.data.hasOwnProperty(t)&&(e[t]=this.data[t]);return e}*getValues(){yield*j(this.data)}}let M=class extends P{constructor(t){super({}),this.sources=t,this.mergeConfigurations(t)}mergeConfigurations(t){t.forEach((t=>{const e=t.getData();this.data={...this.data,...e}}))}};var N,z;M=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}([O(),(N=0,z=$(D),function(t,e){z(t,e,N)}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[Array])],M),I.container.register(R,{useClass:M},{lifecycle:n.Singleton}),I.container.register(D,{useClass:class{getData(){return{}}*getValues(){yield*j({})}}},{lifecycle:n.Singleton});const q=globalThis,H=q.ShadowRoot&&(void 0===q.ShadyCSS||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,V=Symbol(),U=new WeakMap;class F{constructor(t,e,r){if(this._$cssResult$=!0,r!==V)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(H&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=U.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&U.set(e,t))}return t}toString(){return this.cssText}}const B=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[o+1]),t[0]);return new F(r,t,V)},W=H?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new F("string"==typeof t?t:t+"",void 0,V))(e)})(t):t,{is:K,defineProperty:X,getOwnPropertyDescriptor:G,getOwnPropertyNames:J,getOwnPropertySymbols:Q,getPrototypeOf:Y}=Object,Z=globalThis,tt=Z.trustedTypes,et=tt?tt.emptyScript:"",rt=Z.reactiveElementPolyfillSupport,ot=(t,e)=>t,nt={toAttribute(t,e){switch(e){case Boolean:t=t?et:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},it=(t,e)=>!K(t,e),st={attribute:!0,type:String,converter:nt,reflect:!1,hasChanged:it};Symbol.metadata??=Symbol("metadata"),Z.litPropertyMetadata??=new WeakMap;class at extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=st){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(t,r,e);void 0!==o&&X(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){const{get:o,set:n}=G(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const i=o?.call(this);n.call(this,e),this.requestUpdate(t,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??st}static _$Ei(){if(this.hasOwnProperty(ot("elementProperties")))return;const t=Y(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ot("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ot("properties"))){const t=this.properties,e=[...J(t),...Q(t)];for(const r of e)this.createProperty(r,t[r])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const r=this._$Eu(t,e);void 0!==r&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(W(t))}else void 0!==t&&e.push(W(t));return e}static _$Eu(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.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((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(H)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const r of e){const e=document.createElement("style"),o=q.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=r.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){const r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(void 0!==o&&!0===r.reflect){const n=(void 0!==r.converter?.toAttribute?r.converter:nt).toAttribute(e,r.type);this._$Em=t,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,e){const r=this.constructor,o=r._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=r.getPropertyOptions(o),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:nt;this._$Em=o,this[o]=n.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,r){if(void 0!==t){if(r??=this.constructor.getPropertyOptions(t),!(r.hasChanged??it)(this[t],e))return;this.P(t,e,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,r]of t)!0!==r.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}at.elementStyles=[],at.shadowRootOptions={mode:"open"},at[ot("elementProperties")]=new Map,at[ot("finalized")]=new Map,rt?.({ReactiveElement:at}),(Z.reactiveElementVersions??=[]).push("2.0.4");const lt=globalThis,ct=lt.trustedTypes,dt=ct?ct.createPolicy("lit-html",{createHTML:t=>t}):void 0,ut="$lit$",pt=`lit$${Math.random().toFixed(9).slice(2)}$`,bt="?"+pt,ft=`<${bt}>`,ht=document,gt=()=>ht.createComment(""),vt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,mt=Array.isArray,yt="[ \t\n\f\r]",wt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_t=/-->/g,xt=/>/g,Ct=RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),kt=/'/g,St=/"/g,Et=/^(?:script|style|textarea|title)$/i,Tt=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),At=Tt(1),Ot=(Tt(2),Symbol.for("lit-noChange")),$t=Symbol.for("lit-nothing"),It=new WeakMap,Dt=ht.createTreeWalker(ht,129);function Rt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==dt?dt.createHTML(e):e}const jt=(t,e)=>{const r=t.length-1,o=[];let n,i=2===e?"<svg>":"",s=wt;for(let e=0;e<r;e++){const r=t[e];let a,l,c=-1,d=0;for(;d<r.length&&(s.lastIndex=d,l=s.exec(r),null!==l);)d=s.lastIndex,s===wt?"!--"===l[1]?s=_t:void 0!==l[1]?s=xt:void 0!==l[2]?(Et.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=Ct):void 0!==l[3]&&(s=Ct):s===Ct?">"===l[0]?(s=n??wt,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Ct:'"'===l[3]?St:kt):s===St||s===kt?s=Ct:s===_t||s===xt?s=wt:(s=Ct,n=void 0);const u=s===Ct&&t[e+1].startsWith("/>")?" ":"";i+=s===wt?r+ft:c>=0?(o.push(a),r.slice(0,c)+ut+r.slice(c)+pt+u):r+pt+(-2===c?e:u)}return[Rt(t,i+(t[r]||"<?>")+(2===e?"</svg>":"")),o]};class Lt{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let n=0,i=0;const s=t.length-1,a=this.parts,[l,c]=jt(t,e);if(this.el=Lt.createElement(l,r),Dt.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=Dt.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(ut)){const e=c[i++],r=o.getAttribute(t).split(pt),s=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:s[2],strings:r,ctor:"."===s[1]?qt:"?"===s[1]?Ht:"@"===s[1]?Vt:zt}),o.removeAttribute(t)}else t.startsWith(pt)&&(a.push({type:6,index:n}),o.removeAttribute(t));if(Et.test(o.tagName)){const t=o.textContent.split(pt),e=t.length-1;if(e>0){o.textContent=ct?ct.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],gt()),Dt.nextNode(),a.push({type:2,index:++n});o.append(t[e],gt())}}}else if(8===o.nodeType)if(o.data===bt)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(pt,t+1));)a.push({type:7,index:n}),t+=pt.length-1}n++}}static createElement(t,e){const r=ht.createElement("template");return r.innerHTML=t,r}}function Pt(t,e,r=t,o){if(e===Ot)return e;let n=void 0!==o?r._$Co?.[o]:r._$Cl;const i=vt(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(t),n._$AT(t,r,o)),void 0!==o?(r._$Co??=[])[o]=n:r._$Cl=n),void 0!==n&&(e=Pt(t,n._$AS(t,e.values),n,o)),e}class Mt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??ht).importNode(e,!0);Dt.currentNode=o;let n=Dt.nextNode(),i=0,s=0,a=r[0];for(;void 0!==a;){if(i===a.index){let e;2===a.type?e=new Nt(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new Ut(n,this,t)),this._$AV.push(e),a=r[++s]}i!==a?.index&&(n=Dt.nextNode(),i++)}return Dt.currentNode=ht,o}p(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class Nt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=$t,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Pt(this,t,e),vt(t)?t===$t||null==t||""===t?(this._$AH!==$t&&this._$AR(),this._$AH=$t):t!==this._$AH&&t!==Ot&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>mt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==$t&&vt(this._$AH)?this._$AA.nextSibling.data=t:this.T(ht.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=Lt.createElement(Rt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new Mt(o,this),r=t.u(this.options);t.p(e),this.T(r),this._$AH=t}}_$AC(t){let e=It.get(t.strings);return void 0===e&&It.set(t.strings,e=new Lt(t)),e}k(t){mt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const n of t)o===e.length?e.push(r=new Nt(this.S(gt()),this.S(gt()),this,this.options)):r=e[o],r._$AI(n),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class zt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,n){this.type=1,this._$AH=$t,this._$AN=void 0,this.element=t,this.name=e,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=$t}_$AI(t,e=this,r,o){const n=this.strings;let i=!1;if(void 0===n)t=Pt(this,t,e,0),i=!vt(t)||t!==this._$AH&&t!==Ot,i&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Pt(this,o[r+s],e,s),a===Ot&&(a=this._$AH[s]),i||=!vt(a)||a!==this._$AH[s],a===$t?t=$t:t!==$t&&(t+=(a??"")+n[s+1]),this._$AH[s]=a}i&&!o&&this.j(t)}j(t){t===$t?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class qt extends zt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$t?void 0:t}}class Ht extends zt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==$t)}}class Vt extends zt{constructor(t,e,r,o,n){super(t,e,r,o,n),this.type=5}_$AI(t,e=this){if((t=Pt(this,t,e,0)??$t)===Ot)return;const r=this._$AH,o=t===$t&&r!==$t||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==$t&&(r===$t||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Ut{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Pt(this,t)}}const Ft=lt.litHtmlPolyfillSupport;Ft?.(Lt,Nt),(lt.litHtmlVersions??=[]).push("3.1.3");class Bt extends at{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,r)=>{const o=r?.renderBefore??e;let n=o._$litPart$;if(void 0===n){const t=r?.renderBefore??null;o._$litPart$=n=new Nt(e.insertBefore(gt(),t),t,void 0,r??{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ot}}Bt._$litElement$=!0,Bt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Bt});const Wt=globalThis.litElementPolyfillSupport;Wt?.({LitElement:Bt}),(globalThis.litElementVersions??=[]).push("4.0.5");const Kt=t=>(e,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},Xt={attribute:!0,type:String,converter:nt,reflect:!1,hasChanged:it},Gt=(t=Xt,e,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,t),"accessor"===o){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.P(o,void 0,t),e}}}if("setter"===o){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error("Unsupported decorator location: "+o)};function Jt(t){return(e,r)=>"object"==typeof r?Gt(t,e,r):((t,e,r)=>{const o=e.hasOwnProperty(r);return e.constructor.createProperty(r,o?{...t,wrapped:!0}:t),o?Object.getOwnPropertyDescriptor(e,r):void 0})(t,e,r)}class Qt extends Bt{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(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);i>3&&s&&Object.defineProperty(e,r,s)})([Jt({type:String}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:type",Object)],Qt.prototype,"value",void 0),customElements.define("qbo-config-editor",Qt);const Yt="LoggerToken";var Zt,te;(te=Zt||(Zt={}))[te.Trace=0]="Trace",te[te.Debug=1]="Debug",te[te.Information=2]="Information",te[te.Warning=3]="Warning",te[te.Error=4]="Error",te[te.Critical=5]="Critical";const ee="LoggerServiceToken";I.container.register(Yt,{useClass:class{logTrace(t,...e){console.debug(t,...e)}logDebug(t,...e){console.debug(t,...e)}logInformation(t,...e){console.info(t,...e)}logWarning(t,...e){console.warn(t,...e)}logError(t,e,...r){console.error(t,...e?[e,...r]:r)}logCritical(t,e,...r){console.error(`CRITICAL: ${t}`,...e?[e,...r]:r)}log(t,e,r,...o){switch(t){case Zt.Trace:this.logTrace(e,...o);break;case Zt.Debug:this.logDebug(e,...o);break;case Zt.Information:this.logInformation(e,...o);break;case Zt.Warning:this.logWarning(e,...o);break;case Zt.Error:this.logError(e,r,...o);break;case Zt.Critical:this.logCritical(e,r,...o);break;default:console.log(e,...o)}}}},{lifecycle:n.Singleton});const re="LogReaderToken";class oe{constructor(){this.logs=[]}logTrace(t,...e){this.logs.push({logLevel:Zt.Trace,message:t,args:e})}logDebug(t,...e){this.logs.push({logLevel:Zt.Debug,message:t,args:e})}logInformation(t,...e){this.logs.push({logLevel:Zt.Information,message:t,args:e})}logWarning(t,...e){this.logs.push({logLevel:Zt.Warning,message:t,args:e})}logError(t,e,...r){this.logs.push({logLevel:Zt.Error,message:t,error:e,args:r})}logCritical(t,e,...r){this.logs.push({logLevel:Zt.Critical,message:t,error:e,args:r})}log(t,e,r,...o){this.logs.push({logLevel:t,message:e,error:r,args:o})}getLogs(){return this.logs}clearLogs(){this.logs=[]}}function ne(t,e){return t||e}function ie(t,e){return t[e]}I.container.registerSingleton(oe),I.container.register(Yt,{useToken:oe}),I.container.register(re,{useToken:oe});var se,ae=void 0,le=null,ce="",de="function",ue="object",pe="prototype",be="__proto__",fe="undefined",he="constructor",ge="Symbol",ve="_polyfill",me="length",ye="name",we="call",_e="toString",xe=ne(Object),Ce=ie(xe,pe),ke=ne(String),Se=ie(ke,pe),Ee=ne(Math),Te=ne(Array),Ae=ie(Te,pe),$e=ie(Ae,"slice");function Oe(t,e){try{return{v:t.apply(this,e)}}catch(t){return{e:t}}}function Ie(t){return function(e){return typeof e===t}}function De(t){var e="[object "+t+"]";return function(t){return!(!t||je(t)!==e)}}function je(t){return Ce[_e].call(t)}function Re(t){return typeof t===fe||t===fe}function Le(t){return t===le||Re(t)}function Pe(t){return!!t||t!==ae}var Me=Ie("string"),Ne=Ie(de);function ze(t){return!(!t&&Le(t)||!t||typeof t!==ue)}var qe=ie(Te,"isArray"),He=De("Date"),Ve=Ie("number"),Ue=Ie("boolean"),Fe=De("Error");function Be(t){return!!(t&&t.then&&Ne(t.then))}function We(t){return!(!t||(e=function(){return!(t&&0+t)},r=!t,o=Oe(e),o.e?r:o.v));var e,r,o}var Ke=ie(xe,"getOwnPropertyDescriptor");function Xe(t,e){return!!t&&Ce.hasOwnProperty[we](t,e)}var Ge=ne(ie(xe,"hasOwn"),Je);function Je(t,e){return Xe(t,e)||!!Ke(t,e)}function Qe(t,e,r){if(t&&ze(t))for(var o in t)if(Ge(t,o)&&-1===e[we](r||t,o,t[o]))break}function Ye(t,e,r,o){var n={};return Qe(t,(function(t,o){n[t]=e?o:t,n[o]=r?o:t})),o(n)}var Ze=ne(ke),tr="[object Error]";function er(t,e){var r=ce,o=Ce[_e][we](t);o===tr&&(t={stack:Ze(t.stack),message:Ze(t.message),name:Ze(t.name)});try{r=(r=JSON.stringify(t,le,e?"number"==typeof e?e:4:ae))&&r.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||Ze(t)}catch(t){r=" - "+er(t,e)}return o+": "+r}function rr(t){throw new Error(t)}function or(t){throw new TypeError(t)}var nr=ie(xe,"freeze");function ir(t){return t}function sr(t){return t[be]||le}var ar=ie(xe,"assign"),lr=ie(xe,"keys");function cr(t){return nr&&Qe(t,(function(t,e){(qe(e)||ze(e))&&nr(e)})),dr(t)}var dr=ne(nr,ir),ur=ne(ie(xe,"getPrototypeOf"),sr);function pr(t){return Ye(t,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 t;return typeof globalThis!==fe&&(t=globalThis),t||typeof self===fe||(t=self),t||typeof window===fe||(t=window),t||typeof r.g===fe||(t=r.g),t}function vr(){if(!br){var t=Oe(gr).v||{};br=t[hr]=t[hr]||{}}return br}var mr=yr;function yr(t,e,r){var o=e&&e[t];return function(e){var n=e&&e[t]||o;if(n||r){var i=arguments;return(n||r).apply(e,n?$e[we](i,1):i)}or('"'+Ze(t)+'" not defined for '+er(e))}}function wr(t){return function(e){return e[t]}}var _r=ie(Ee,"max"),xr=mr("slice",Se),Cr=mr("substring",Se),kr=yr("substr",Se,Sr);function Sr(t,e,r){return Le(t)&&or("Invalid "+er(t)),r<0?ce:((e=e||0)<0&&(e=_r(e+t[me],0)),Re(r)?xr(t,e):xr(t,e,e+r))}function Er(t,e){return Cr(t,0,e)}var Tr,Ar,$r="_urid";function Or(t){var e={description:Ze(t),toString:function(){return ge+"("+t+")"}};return e[ve]=!0,e}function Ir(t){var e=function(){if(!Tr){var t=vr();Tr=t.gblSym=t.gblSym||{k:{},s:{}}}return Tr}();if(!Ge(e.k,t)){var r=Or(t),o=lr(e.s).length;r[$r]=function(){return o+"_"+r[_e]()},e.k[t]=r,e.s[r[$r]()]=Ze(t)}return e.k[t]}var Dr={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};var jr,Rr=ie(xe,"defineProperty"),Lr=ie(xe,"defineProperties");function Pr(t,e,r){return Rr(t,e,function(t){var e={};if(e[Dr.c]=!0,e[Dr.e]=!0,t.l){e.get=function(){return t.l.v};var r=Ke(t.l,"v");r&&r.set&&(e.set=function(e){t.l.v=e})}return Qe(t,(function(t,r){e[Dr[t]]=Re(r)?e[Dr[t]]:r})),e}(r))}function Mr(){jr=vr()}function Nr(t){return Rr({toJSON:function(){return t}},"v",{value:t})}var zr,qr="window";function Hr(t,e){var r;return function(){return!jr&&Mr(),(!r||jr.lzy)&&(r=Nr(Oe(t,e).v)),r.v}}function Vr(t){return!jr&&Mr(),(!zr||!1===t||jr.lzy)&&(zr=Nr(Oe(gr).v||le)),zr.v}function Ur(t,e){var r=zr&&!1!==e?zr.v:Vr(e);return r&&r[t]?r[t]:t===qr?Jr():le}function Fr(){return!!Br()}var Br=Hr(Ur,["document"]);function Wr(){return!!Jr()}var Kr,Xr,Gr,Jr=Hr(Ur,[qr]),Qr=Hr(Ur,["navigator"]),Yr=Hr(Ur,["history"]),Zr=Hr((function(){return!!Oe((function(){return process&&(process.versions||{}).node})).v})),to=Hr((function(){return!!Oe((function(){return self&&self instanceof WorkerGlobalScope})).v}));function eo(){return Kr=Nr(Oe(Ur,[ge]).v)}function ro(t){var e=(jr.lzy?0:Kr)||eo();return e.v?e.v[t]:ae}function oo(){return!!no()}function no(){return!jr&&Mr(),((jr.lzy?0:Kr)||eo()).v}function io(t,e){var r=fr[t];!jr&&Mr();var o=(jr.lzy?0:Kr)||eo();return o.v?o.v[r||t]:e?ae:function(t){var e;!Ar&&(Ar={});var r=fr[t];return r&&(e=Ar[r]=Ar[r]||Or(ge+"."+r)),e}(t)}function so(t,e){!jr&&Mr();var r=(jr.lzy?0:Kr)||eo();return r.v?r.v(t):e?le:Or(t)}function ao(t){return!jr&&Mr(),((Xr=(jr.lzy?0:Xr)||Nr(Oe(ro,["for"]).v)).v||Ir)(t)}function lo(t){return!!t&&Ne(t.next)}function co(t,e,r){if(t&&(lo(t)||(!Gr&&(Gr=Nr(io(3))),t=t[Gr.v]?t[Gr.v]():null),lo(t))){var o=ae,n=ae;try{for(var i=0;!(n=t.next()).done&&-1!==e[we](r||t,n.value,i,t);)i++}catch(e){o={e},t.throw&&(n=le,t.throw(o))}finally{try{n&&!n.done&&t.return&&t.return(n)}finally{if(o)throw o.e}}}}function uo(t,e,r){return t.apply(e,r)}function po(t,e){return!Re(e)&&t&&(qe(e)?uo(t.push,t,e):lo(e)||!function(t){return t===le||!Pe(t)}(r=e)&&Ne(r[io(3)])?co(e,(function(e){t.push(e)})):t.push(e)),t;var r}function bo(t,e,r){if(t)for(var o=t[me]>>>0,n=0;n<o&&(!(n in t)||-1!==e[we](r||t,t[n],n,t));n++);}var fo=mr("indexOf",Ae),ho=mr("map",Ae);function go(t,e,r){return(t&&t.slice||$e).apply(t,$e[we](arguments,1))}var vo,mo,yo=mr("reduce",Ae),wo=ne(ie(xe,"create"),_o);function _o(t){if(!t)return{};var e=typeof t;function r(){}return e!==ue&&e!==de&&or("Prototype must be an Object or function: "+er(t)),r[pe]=t,new r}function xo(t,e){var r=xe.setPrototypeOf||function(t,e){var r;!vo&&(vo=Nr(((r={})[be]=[],r instanceof Array))),vo.v?t[be]=e:Qe(e,(function(e,r){return t[e]=r}))};return r(t,e)}function Co(t,e){e&&(t[ye]=e)}function ko(t,e,r){var o=r||Error,n=o[pe][ye],i=Error.captureStackTrace;return function(t,e,r){function o(){this[he]=e,Oe(Pr,[this,ye,{v:t,c:!0,e:!1}])}return Oe(Pr,[e,ye,{v:t,c:!0,e:!1}]),(e=xo(e,r))[pe]=r===le?wo(r):(o[pe]=r[pe],new o),e}(t,(function(){var r=this,s=arguments;try{Oe(Co,[o,t]);var a=uo(o,r,$e[we](s))||r;if(a!==r){var l=ur(r);l!==ur(a)&&xo(a,l)}return i&&i(a,r[he]),e&&e(a,s),a}finally{Oe(Co,[o,n])}}),o)}function So(){return(Date.now||Eo)()}function Eo(){return(new Date).getTime()}function To(t){return function(e){return Le(e)&&or("strTrim called ["+er(e)+"]"),e&&e.replace&&(e=e.replace(t,ce)),e}}var Ao,$o,Oo,Io=yr("trim",Se,To(/^\s+|(?=\s)\s+$/g));function Do(t){if(!t||typeof t!==ue)return!1;Oo||(Oo=!Wr()||Jr());var e=!1;if(t!==Oo){$o||(Ao=Function[pe][_e],$o=Ao[we](xe));try{var r=ur(t);(e=!r)||(Xe(r,he)&&(r=r[he]),e=r&&typeof r===de&&Ao[we](r)===$o)}catch(t){}}return e}function jo(t){return t.value&&Mo(t),!0}var Ro=[function(t){var e=t.value;if(qe(e)){var r=t.result=[];return r.length=e.length,t.copyTo(r,e),!0}return!1},Mo,function(t){return t.type===de},function(t){var e=t.value;return!!He(e)&&(t.result=new Date(e.getTime()),!0)}];function Lo(t,e,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 e,l=!1,c=!1;e&&a===ue?l=Do(e):c=e===le||function(t){return!se&&(se=["string","number","boolean",fe,"symbol","bigint"]),t!==ue&&-1!==se.indexOf(t)}(a);var d={type:a,isPrim:c,isPlain:l,value:e,result:e,path:i,origin:r.src,copy:function(e,o){return Lo(t,e,o?s:r,o)},copyTo:function(e,r){return Po(t,e,r,s)}};return d.isPrim?n&&n[we](r,d)?d.result:e:function(t,e,o,i){var s;return bo(t,(function(t){if(t.k===e)return s=t,-1})),s||(s={k:e,v:e},t.push(s),function(t){Pr(d,"result",{g:function(){return t.v},s:function(e){t.v=e}});for(var e=0,o=n;!(o||(e<Ro.length?Ro[e++]:jo))[we](r,d);)o=le}(s)),s.v}(t,e)}function Po(t,e,r,o){if(!Le(r))for(var n in r)e[n]=Lo(t,r[n],o,n);return e}function Mo(t){var e=t.value;if(e&&t.isPlain){var r=t.result={};return t.copyTo(r,e),!0}return!1}function No(t,e){return bo(e,(function(e){!function(t,e,r){Po([],t,e,{handler:void 0,src:e,path:[]})}(t,e)})),t}function zo(t,e,r,o,n,i,s){return No(Lo([],a=t,{handler:undefined,src:a})||{},$e[we](arguments));var a}var qo,Ho=wr(me);function Vo(){return!jr&&Mr(),(!qo||jr.lzy)&&(qo=Nr(Oe(Ur,["performance"]).v)),qo.v}var Uo=mr("split",Se);function Fo(t,e,r){if(t&&e){var o=Uo(e,"."),n=o.pop();bo(o,(function(e){Le(t[e])&&(t[e]={}),t=t[e]})),t[n]=r}}oo();var Bo=yr("endsWith",Se,Wo);function Wo(t,e,r){Me(t)||or("'"+er(t)+"' is not a string");var o=Me(e)?e:Ze(e),n=!Re(r)&&r<t[me]?r:t[me];return Cr(t,n-o[me],n)===o}var Ko,Xo=mr("indexOf",Se),Go="ref",Jo="unref",Qo="hasRef",Yo="enabled";function Zo(t,e,r){var o=qe(e),n=o?e.length:0,i=(n>0?e[0]:o?ae:e)||setTimeout,s=(n>1?e[1]:ae)||clearTimeout,a=r[0];r[0]=function(){l.dn(),uo(a,ae,$e[we](arguments))};var l=function(t,e,r){var o,n=!0,i=t?e(le):le;function s(){return n=!1,i&&i[Jo]&&i[Jo](),o}function a(){i&&r(i),i=le}function l(){return i=e(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=Rr(o,Yo,{get:function(){return!!i},set:function(t){!t&&i&&a(),t&&!i&&l()}}),dn:function(){i=le}}}(t,(function(t){if(t){if(t.refresh)return t.refresh(),t;uo(s,ae,[t])}return uo(i,ae,r)}),(function(t){uo(s,ae,[t])}));return l.h}function tn(t,e){return Zo(!0,ae,$e[we](arguments))}var en="constructor",rn="prototype",on="function",nn="_dynInstFuncs",sn="_isDynProxy",an="_dynClass",ln="_dynInstChk",cn=ln,dn="_dfOpts",un="_unknown_",pn="__proto__",bn="_dyn"+pn,fn="__dynProto$Gbl",hn="_dynInstProto",gn="useBaseInst",vn="setInstFuncs",mn=Object,yn=mn.getPrototypeOf,wn=mn.getOwnPropertyNames,_n=Vr(),xn=_n[fn]||(_n[fn]={o:(Ko={},Ko[vn]=!0,Ko[gn]=!0,Ko),n:1e3});function Cn(t){return t&&(t===mn[rn]||t===Array[rn])}function kn(t){return Cn(t)||t===Function[rn]}function Sn(t){var e;if(t){if(yn)return yn(t);var r=t[pn]||t[rn]||(t[en]?t[en][rn]:null);e=t[bn]||r,Xe(t,bn)||(delete t[hn],e=t[bn]=t[hn]||t[bn],t[hn]=r)}return e}function En(t,e){var r=[];if(wn)r=wn(t);else for(var o in t)"string"==typeof o&&Xe(t,o)&&r.push(o);if(r&&r.length>0)for(var n=0;n<r.length;n++)e(r[n])}function Tn(t,e,r){return e!==en&&typeof t[e]===on&&(r||Xe(t,e))&&e!==pn&&e!==rn}function An(t){or("DynamicProto: "+t)}function $n(t,e){for(var r=t.length-1;r>=0;r--)if(t[r]===e)return!0;return!1}function On(t,e,r,o,n){if(!Cn(t)){var i=r[nn]=r[nn]||wo(null);if(!Cn(i)){var s=i[e]=i[e]||wo(null);!1!==i[cn]&&(i[cn]=!!n),Cn(s)||En(r,(function(e){Tn(r,e,!1)&&r[e]!==o[e]&&(s[e]=r[e],delete r[e],(!Xe(t,e)||t[e]&&!t[e][sn])&&(t[e]=function(t,e){var r=function(){var o=function(t,e,r,o){var n=null;if(t&&Xe(r,an)){var i=t[nn]||wo(null);if((n=(i[r[an]]||wo(null))[e])||An("Missing ["+e+"] "+on),!n[ln]&&!1!==i[cn]){for(var s=!Xe(t,e),a=Sn(t),l=[];s&&a&&!kn(a)&&!$n(l,a);){var c=a[e];if(c){s=c===o;break}l.push(a),a=Sn(a)}try{s&&(t[e]=n),n[ln]=1}catch(t){i[cn]=!1}}}return n}(this,e,t,r)||function(t,e,r){var o=e[t];return o===r&&(o=Sn(e)[t]),typeof o!==on&&An("["+t+"] is not a "+on),o}(e,t,r);return o.apply(this,arguments)};return r[sn]=1,r}(t,e)))}))}}}function In(t,e){return Xe(t,rn)?t.name||e||un:((t||{})[en]||{}).name||e||un}function Dn(t,e,r,o){Xe(t,rn)||An("theClass is an invalid class definition.");var n=t[rn];(function(t,e){if(yn){for(var r=[],o=Sn(e);o&&!kn(o)&&!$n(r,o);){if(o===t)return!0;r.push(o),o=Sn(o)}return!1}return!0})(n,e)||An("["+In(t)+"] not in hierarchy of ["+In(e)+"]");var i=null;Xe(n,an)?i=n[an]:(i="_dynCls$"+In(t,"_")+"$"+xn.n,xn.n++,n[an]=i);var s=Dn[dn],a=!!s[gn];a&&o&&void 0!==o[gn]&&(a=!!o[gn]);var l=function(t){var e=wo(null);return En(t,(function(r){!e[r]&&Tn(t,r,!1)&&(e[r]=t[r])})),e}(e),c=function(t,e,r,o){function n(t,e,r){var n=e[r];if(n[sn]&&o){var i=t[nn]||{};!1!==i[cn]&&(n=(i[e[an]]||{})[r]||n)}return function(){return n.apply(t,arguments)}}var i=wo(null);En(r,(function(t){i[t]=n(e,r,t)}));for(var s=Sn(t),a=[];s&&!kn(s)&&!$n(a,s);)En(s,(function(t){!i[t]&&Tn(s,t,!yn)&&(i[t]=n(e,s,t))})),a.push(s),s=Sn(s);return i}(n,e,l,a);r(e,c);var d=!!yn&&!!s[vn];d&&o&&(d=!!o[vn]),On(n,i,e,l,!1!==d)}Dn[dn]=xn.o;var jn="function",Rn="object",Ln="undefined",Pn="prototype",Mn=Object,Nn=Mn[Pn],zn=((Vr()||{}).Symbol,(Vr()||{}).Reflect,"hasOwnProperty"),qn=ar||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Nn[zn].call(e,n)&&(t[n]=e[n]);return t},Hn=function(t,e){return Hn=Mn.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e[zn](r)&&(t[r]=e[r])},Hn(t,e)};function Vn(t,e){function r(){this.constructor=t}typeof e!==jn&&null!==e&&or("Class extends value "+String(e)+" is not a constructor or null"),Hn(t,e),t[Pn]=null===e?wo(e):(r[Pn]=e[Pn],new r)}function Un(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t}var Fn="toLowerCase",Bn="blkVal",Wn="length",Kn="rdOnly",Xn="notify",Gn="warnToConsole",Jn="throwInternal",Qn="setDf",Yn="watch",Zn="logger",ti="apply",ei="push",ri="splice",oi="hdlr",ni="cancel",ii="initialize",si="identifier",ai="removeNotificationListener",li="addNotificationListener",ci="isInitialized",di="getNotifyMgr",ui="getPlugin",pi="pollInternalLogs",bi="name",fi="time",hi="processNext",gi="getProcessTelContext",vi="enabled",mi="stopPollingInternalLogs",yi="unload",wi="onComplete",_i="version",xi="loggingLevelConsole",Ci="createNew",ki="teardown",Si="messageId",Ei="message",Ti="isAsync",Ai="diagLog",$i="_doTeardown",Oi="update",Ii="getNext",Di="setNextPlugin",ji="protocol",Ri="userAgent",Li="split",Pi="nodeType",Mi="replace",Ni="logInternalMessage",zi="type",qi="handler",Hi="status",Vi="getResponseHeader",Ui="getAllResponseHeaders",Fi="isChildEvt",Bi="data",Wi="getCtx",Ki="setCtx",Xi="complete",Gi="itemsReceived",Ji="urlString",Qi="sendPOST",Yi="headers",Zi="timeout",ts="setRequestHeader",es="traceId",rs="spanId",os="traceFlags",ns=void 0,is="",ss="channels",as="core",ls="createPerfMgr",cs="disabled",ds="extensionConfig",us="extensions",ps="processTelemetry",bs="priority",fs="eventsSent",hs="eventsDiscarded",gs="eventsSendRequest",vs="perfEvent",ms="offlineEventsStored",ys="offlineBatchSent",ws="offlineBatchDrop",_s="getPerfMgr",xs="domain",Cs="path",ks="Not dynamic - ",Ss=/-([a-z])/g,Es=/([^\w\d_$])/g,Ts=/^(\d+[\w\d_$])/,As=Object.getPrototypeOf;function $s(t){return!Le(t)}function Os(t){var e=t;return e&&Me(e)&&(e=(e=(e=e[Mi](Ss,(function(t,e){return e.toUpperCase()})))[Mi](Es,"_"))[Mi](Ts,(function(t,e){return"_"+e}))),e}function Is(t,e){return!(!t||!e)&&-1!==Xo(t,e)}function Ds(t){return t&&t.toISOString()||""}function js(t){return Fe(t)?t[bi]:is}function Rs(t,e,r,o,n){var i=r;return t&&((i=t[e])===r||n&&!n(i)||o&&!o(r)||(i=r,t[e]=i)),i}function Ls(t,e,r){var o;return t?!(o=t[e])&&Le(o)&&(o=Re(r)?{}:r,t[e]=o):o=Re(r)?{}:r,o}function Ps(t,e){var r=null,o=null;return Ne(t)?r=t:o=t,function(){var t=arguments;if(r&&(o=r()),o)return o[e][ti](o,t)}}function Ms(t,e,r,o,n){t&&e&&r&&(!1!==n||Re(t[e]))&&(t[e]=Ps(r,o))}function Ns(t,e,r,o){return t&&e&&ze(t)&&qe(r)&&bo(r,(function(r){Me(r)&&Ms(t,r,e,r,o)})),t}function zs(t){return t&&ar&&(t=Mn(ar({},t))),t}function qs(t,e,r,o,n,i){var s=arguments,a=s[0]||{},l=s[Wn],c=!1,d=1;for(l>0&&Ue(a)&&(c=a,a=s[d]||{},d++),ze(a)||(a={});d<l;d++){var u=s[d],p=qe(u),b=ze(u);for(var f in u)if(p&&f in u||b&&Ge(u,f)){var h=u[f],g=void 0;if(c&&h&&((g=qe(h))||Do(h))){var v=a[f];g?qe(v)||(v=[]):Do(v)||(v={}),h=qs(c,v,h)}void 0!==h&&(a[f]=h)}}return a}function Hs(t,e){var r=!1,o=e&&e.featureOptIn&&e.featureOptIn[t];if(t&&o){var n=o.mode;r=3==n||1==n}return r}function Vs(t){try{return t.responseText}catch(t){}return null}function Us(t,e){return t?"XDomainRequest,Response:"+Vs(t)||0:e}function Fs(t,e){return t?"XMLHttpRequest,Status:"+t[Hi]+",Response:"+Vs(t)||0:e}function Bs(t,e){return e&&(Ve(e)?t=[e].concat(t):qe(e)&&(t=e.concat(t))),t}var Ws="withCredentials";function Ks(t,e,r){if(!t[r]&&e&&e[Vi]){var o=e[Vi](r);o&&(t[r]=Io(o))}return t}function Xs(t,e){var r,o,n={};return t[Ui]?(r=t[Ui](),o={},Me(r)&&bo(Io(r)[Li](/[\r\n]+/),(function(t){if(t){var e=t.indexOf(": ");if(-1!==e){var r=Io(t.substring(0,e))[Fn](),n=Io(t.substring(e+1));o[r]=n}else o[Io(t)]=1}})),n=o):e&&(n=Ks(n,t,"time-delta-millis"),n=Ks(n,t,"kill-duration"),n=Ks(n,t,"kill-duration-seconds")),n}var Gs="location",Js="JSON",Qs="crypto",Ys="msCrypto",Zs="msie",ta="trident/",ea="XMLHttpRequest",ra=null,oa=null,na=!1,ia=null,sa=null;function aa(t,e){var r=!1;if(t){try{if(!(r=e in t)){var o=t[Pn];o&&(r=e in o)}}catch(t){}if(!r)try{r=!Re((new t)[e])}catch(t){}}return r}function la(t){if(t&&na){var e=Ur("__mockLocation");if(e)return e}return typeof location===Rn&&location?location:Ur(Gs)}function ca(){return Boolean(typeof JSON===Rn&&JSON||null!==Ur(Js))}function da(){return ca()?JSON||Ur(Js):null}function ua(){var t=Qr();if(t&&(t[Ri]!==oa||null===ra)){var e=((oa=t[Ri])||is)[Fn]();ra=Is(e,Zs)||Is(e,ta)}return ra}function pa(t){if(void 0===t&&(t=null),!t){var e=Qr()||{};t=e?(e.userAgent||is)[Fn]():is}var r=(t||is)[Fn]();if(Is(r,Zs)){var o=Br()||{};return Math.max(parseInt(r[Li](Zs)[1]),o.documentMode||0)}if(Is(r,ta)){var n=parseInt(r[Li](ta)[1]);if(n)return n+4}return null}function ba(t){return null!==sa&&!1!==t||(sa=!!Qr()&&Boolean(Qr().sendBeacon)),sa}function fa(t){var e=!1;try{e=!!Ur("fetch");var r=Ur("Request");e&&t&&r&&(e=aa(r,"keepalive"))}catch(t){}return e}function ha(){var t=!1;try{t=!!Ur(ea)}catch(t){}return t}var ga=4294967296,va=4294967295,ma=123456789,ya=987654321,wa=!1,_a=ma,xa=ya;function Ca(){try{var t=2147483647&So();(e=(Math.random()*ga^t)+t)<0&&(e>>>=0),_a=ma+e&va,xa=ya-e&va,wa=!0}catch(t){}var e}function ka(t){var e=0,r=Ur(Qs)||Ur(Ys);return r&&r.getRandomValues&&(e=r.getRandomValues(new Uint32Array(1))[0]&va),0===e&&ua()&&(wa||Ca(),e=function(t){var e=((xa=36969*(65535&xa)+(xa>>16)&va)<<16)+(65535&(_a=18e3*(65535&_a)+(_a>>16)&va))>>>0&va;return e>>>=0}()&va),0===e&&(e=Math.floor(ga*Math.random()|0)),t||(e>>>=0),e}function Sa(t){void 0===t&&(t=22);for(var e=ka()>>>0,r=0,o=is;o[Wn]<t;)r++,o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&e),e>>>=6,5===r&&(e=(ka()<<2&4294967295|3&e)>>>0,r=0);return o}var Ea="3.2.0",Ta="."+Sa(6),Aa=0;function $a(t){return 1===t[Pi]||9===t[Pi]||!+t[Pi]}function Oa(t,e){return void 0===e&&(e=!1),Os(t+Aa+++(e?"."+Ea:is)+Ta)}function Ia(t){var e={id:Oa("_aiData-"+(t||is)+"."+Ea),accept:function(t){return $a(t)},get:function(t,r,o,n){var i=t[e.id];return i?i[Os(r)]:(n&&(i=function(t,e){var r=e[t.id];if(!r){r={};try{$a(e)&&Pr(e,t.id,{e:!1,v:r})}catch(t){}}return r}(e,t),i[Os(r)]=o),o)},kill:function(t,e){if(t&&t[e])try{delete t[e]}catch(t){}}};return e}function Da(t){return t&&ze(t)&&(t.isVal||t.fb||Ge(t,"v")||Ge(t,"mrg")||Ge(t,"ref")||t.set)}function ja(t,e,r){var o,n=r.dfVal||Pe;if(e&&r.fb){var i=r.fb;qe(i)||(i=[i]);for(var s=0;s<i[Wn];s++){var a=i[s],l=e[a];if(n(l)?o=l:t&&(n(l=t.cfg[a])&&(o=l),t.set(t.cfg,Ze(a),l)),n(o))break}}return!n(o)&&n(r.v)&&(o=r.v),o}function Ra(t,e,r){var o,n=r;return r&&Da(r)&&(n=ja(t,e,r)),n&&(Da(n)&&(n=Ra(t,e,n)),qe(n)?(o=[])[Wn]=n[Wn]:Do(n)&&(o={}),o&&(Qe(n,(function(r,n){n&&Da(n)&&(n=Ra(t,e,n)),o[r]=n})),n=o)),n}function La(t,e,r,o){var n,i,s,a,l,c,d,u,p=o;Da(p)?(n=p.isVal,i=p.set,c=p[Kn],d=p[Bn],a=p.mrg,!(l=p.ref)&&Re(l)&&(l=!!a),s=ja(t,e,p)):s=o,d&&t[Bn](e,r);var b=!0,f=e[r];!f&&Le(f)||(u=f,b=!1,n&&u!==s&&!n(u)&&(u=s,b=!0),i&&(b=(u=i(u,s,e))===s)),b?u=s?Ra(t,e,s):s:(Do(u)||qe(s))&&a&&s&&(Do(s)||qe(s))&&Qe(s,(function(e,r){La(t,u,e,r)})),t.set(e,r,u),l&&t.ref(e,r),c&&t[Kn](e,r)}var Pa=ao("[[ai_dynCfg_1]]"),Ma=ao("[[ai_blkDynCfg_1]]"),Na=ao("[[ai_frcDynCfg_1]]");function za(t){var e;return t&&(qe(t)?(e=[])[Wn]=t[Wn]:Do(t)&&(e={}),e)?(Qe(t,(function(t,r){e[t]=za(r)})),e):t}function qa(t,e,r){var o=!1;return r&&!t[e.blkVal]&&((o=r[Na])||r[Ma]||(o=Do(r)||qe(r))),o}function Ha(t){or("InvalidAccess:"+t)}var Va,Ua=["push","pop","shift","unshift","splice"],Fa=function(t,e,r,o){t&&t[Jn](3,108,"".concat(r," [").concat(e,"] failed - ")+er(o))};function Ba(t,e){var r=Ke(t,e);return r&&r.get}function Wa(t,e,r,o){if(e){var n=Ba(e,r);n&&n[t.prop]?e[r]=o:function(t,e,r,o){var n={n:r,h:[],trk:function(e){e&&e.fn&&(-1===fo(n.h,e)&&n.h[ei](e),t.trk(e,n))},clr:function(t){var e=fo(n.h,t);-1!==e&&n.h[ri](e,1)}},i=!0,s=!1;function a(){i&&(s=s||qa(a,t,o),o&&!o[Pa]&&s&&(o=Xa(t,o,r,"Converting")),i=!1);var e=t.act;return e&&n.trk(e),o}a[t.prop]={chng:function(){t.add(n)}},Pr(e,n.n,{g:a,s:function(l){if(o!==l){a[t.ro]&&!t.upd&&Ha("["+r+"] is read-only:"+er(e)),i&&(s=s||qa(a,t,o),i=!1);var c=s&&a[t.rf];if(s)if(c){Qe(o,(function(t){o[t]=l?l[t]:ns}));try{Qe(l,(function(e,r){Wa(t,o,e,r)})),l=o}catch(e){Fa((t.hdlr||{})[Zn],r,"Assigning",e),s=!1}}else o&&o[Pa]&&Qe(o,(function(e){var r=Ba(o,e);if(r){var n=r[t.prop];n&&n.chng()}}));if(l!==o){var d=l&&qa(a,t,l);!c&&d&&(l=Xa(t,l,r,"Converting")),o=l,s=d}t.add(n)}}})}(t,e,r,o)}return e}function Ka(t,e,r,o){if(e){var n=Ba(e,r),i=n&&!!n[t.prop],s=o&&o[0],a=o&&o[1],l=o&&o[2];if(!i){if(l)try{!function(t){if(t&&(Do(t)||qe(t)))try{t[Ma]=!0}catch(t){}}(e)}catch(e){Fa((t.hdlr||{})[Zn],r,"Blocking",e)}try{Wa(t,e,r,e[r]),n=Ba(e,r)}catch(e){Fa((t.hdlr||{})[Zn],r,"State",e)}}s&&(n[t.rf]=s),a&&(n[t.ro]=a),l&&(n[t.blkVal]=!0)}return e}function Xa(t,e,r,o){try{Qe(e,(function(r,o){Wa(t,e,r,o)})),e[Pa]||(Rr(e,Pa,{get:function(){return t[oi]}}),function(t,e,r){qe(e)&&bo(Ua,(function(o){var n=e[o];e[o]=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=n[ti](this,o);return Xa(t,e,r,"Patching"),s}}))}(t,e,r))}catch(e){Fa((t.hdlr||{})[Zn],r,o,e)}return e}var Ga="[[ai_",Ja="]]";function Qa(t,e,r){var o,n=function(t){if(t){var e=t[Pa]||t;if(e.cfg&&(e.cfg===t||e.cfg[Pa]===e))return e}return null}(e);if(n)return n;var i,s=Oa("dyncfg",!0),a=e&&!1!==r?e:za(e),l=((o={uid:null,cfg:a})[Zn]=t,o[Xn]=function(){i[Xn]()},o.set=function(e,r,o){try{e=Wa(i,e,r,o)}catch(e){Fa(t,r,"Setting value",e)}return e[r]},o[Qn]=function(t,e){return e&&Qe(e,(function(e,r){La(l,t,e,r)})),t},o[Yn]=function(t){return function(t,e){var r={fn:e,rm:function(){r.fn=null,t=null,e=null}};return Pr(r,"toJSON",{v:function(){return"WatcherHandler"+(r.fn?"":"[X]")}}),t.use(r,e),r}(i,t)},o.ref=function(t,e){var r;return Ka(i,t,e,(r={},r[0]=!0,r))[e]},o[Kn]=function(t,e){var r;return Ka(i,t,e,(r={},r[1]=!0,r))[e]},o[Bn]=function(t,e){var r;return Ka(i,t,e,(r={},r[2]=!0,r))[e]},o._block=function(t,e){i.use(null,(function(r){var o=i.upd;try{Re(e)||(i.upd=e),t(r)}finally{i.upd=o}}))},o);return Pr(l,"uid",{c:!1,e:!1,w:!1,v:s}),Xa(i=function(t){var e,r,o=so(Ga+"get"+t.uid+Ja),n=so(Ga+"ro"+t.uid+Ja),i=so(Ga+"rf"+t.uid+Ja),s=so(Ga+"blkVal"+t.uid+Ja),a=so(Ga+"dtl"+t.uid+Ja),l=null,c=null;function d(e,o){var n=r.act;try{r.act=e,e&&e[a]&&(bo(e[a],(function(t){t.clr(e)})),e[a]=[]),o({cfg:t.cfg,set:t.set.bind(t),setDf:t[Qn].bind(t),ref:t.ref.bind(t),rdOnly:t[Kn].bind(t)})}catch(e){var i=t[Zn];throw i&&i[Jn](1,107,er(e)),e}finally{r.act=n||null}}function u(){if(l){var t=l;l=null,c&&c[ni](),c=null;var e=[];if(bo(t,(function(t){if(t&&(t[a]&&(bo(t[a],(function(e){e.clr(t)})),t[a]=null),t.fn))try{d(t,t.fn)}catch(t){e[ei](t)}})),l)try{u()}catch(t){e[ei](t)}e[Wn]>0&&function(t,e){Va||(Va=ko("AggregationError",(function(t,e){e[Wn]>1&&(t.errors=e[1])})));var r="Watcher error(s): ";throw bo(e,(function(t,e){r+="\n".concat(e," > ").concat(er(t))})),new Va(r,e||[])}(0,e)}}return(e={prop:o,ro:n,rf:i})[Bn]=s,e[oi]=t,e.add=function(t){if(t&&t.h[Wn]>0){l||(l=[]),c||(c=tn((function(){c=null,u()}),0));for(var e=0;e<t.h[Wn];e++){var r=t.h[e];r&&-1===fo(l,r)&&l[ei](r)}}},e[Xn]=u,e.use=d,e.trk=function(t,e){if(t){var r=t[a]=t[a]||[];-1===fo(r,e)&&r[ei](e)}},r=e}(l),a,"config","Creating"),l}function Ya(t,e,r,o){var n=Qa(r,t||{},o);return e&&n[Qn](n.cfg,e),n}function Za(t,e,r){var o=t[Pa]||t;return!o.cfg||o.cfg!==t&&o.cfg[Pa]!==o?(function(t,e){t?(t[Gn](e),t[Jn](2,108,e)):Ha(e)}(r,ks+er(t)),Ya(t,null,r)[Yn](e)):o[Yn](e)}var tl,el,rl=[fs,hs,gs,vs],ol=null;function nl(t,e){return function(){var r=arguments,o=il(e);if(o){var n=o.listener;n&&n[t]&&n[t][ti](n,r)}}}function il(t){var e,r=ol;return r||!0===t.disableDbgExt||(r=ol||((e=Ur("Microsoft"))&&(ol=e.ApplicationInsights),ol)),r?r.ChromeDbgExt:null}var sl="warnToConsole",al={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},ll=((el={})[0]=null,el[1]="errorToConsole",el[2]=sl,el[3]="debugToConsole",el);function cl(t){return t?'"'+t[Mi](/\"/g,is)+'"':is}function dl(t,e){var r=typeof console!==Ln?console:Ur("console");if(r){var o="log";r[t]&&(o=t),Ne(r[o])&&r[o](e)}}var ul=function(){function t(t,e,r,o){void 0===r&&(r=!1);var n=this;n[Si]=t,n[Ei]=(r?"AI: ":"AI (Internal): ")+t;var i=is;ca()&&(i=da().stringify(o));var s=(e?" message:"+cl(e):is)+(o?" props:"+cl(i):is);n[Ei]+=s}return t.dataType="MessageData",t}();function pl(t,e){return(t||{})[Zn]||new bl(e)}var bl=function(){function t(e){this.identifier="DiagnosticLogger",this.queue=[];var r,o,n,i,s,a=0,l={};Dn(t,this,(function(t){function c(e,r){if(!(a>=n)){var i=!0,s="AITR_"+r[Si];if(l[s]?i=!1:l[s]=!0,i&&(e<=o&&(t.queue[ei](r),a++,d(1===e?"error":"warn",r)),a===n)){var c="Internal events throttle limit per PageView reached for this app.",u=new ul(23,c,!1);t.queue[ei](u),1===e?t.errorToConsole(c):t[Gn](c)}}}function d(t,r){var o=il(e||{});o&&o[Ai]&&o[Ai](t,r)}s=function(e){return Za(Ya(e,al,t).cfg,(function(t){var e=t.cfg;r=e[xi],o=e.loggingLevelTelemetry,n=e.maxMessageLimit,i=e.enableDebug}))}(e||{}),t.consoleLoggingLevel=function(){return r},t[Jn]=function(e,o,n,s,a){void 0===a&&(a=!1);var u=new ul(o,n,a,s);if(i)throw er(u);var p=ll[e]||sl;if(Re(u[Ei]))d("throw"+(1===e?"Critical":"Warning"),u);else{if(a){var b=+u[Si];!l[b]&&r>=e&&(t[p](u[Ei]),l[b]=!0)}else r>=e&&t[p](u[Ei]);c(e,u)}},t.debugToConsole=function(t){dl("debug",t),d("warning",t)},t[Gn]=function(t){dl("warn",t),d("warning",t)},t.errorToConsole=function(t){dl("error",t),d("error",t)},t.resetInternalMessageCount=function(){a=0,l={}},t[Ni]=c,t[yi]=function(t){s&&s.rm(),s=null}}))}return t.__ieDyn=1,t}();function fl(t){return t||new bl}function hl(t,e,r,o,n,i){void 0===i&&(i=!1),fl(t)[Jn](e,r,o,n,i)}function gl(t,e){fl(t)[Gn](e)}var vl=function(t){return Ye(t,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",Cl="toString",kl="push",Sl="removeItem",El="name",Tl="message",Al="count",$l="preTriggerDate",Ol="disabled",Il="interval",Dl="daysOfMonth",jl="date",Rl="getUTCDate",Ll="stringify",Pl="pathname",Ml="correlationHeaderExcludePatterns",Nl="exceptions",zl="parsedStack",ql="properties",Hl="measurements",Vl="sizeInBytes",Ul="typeName",Fl="severityLevel",Bl="problemGroup",Wl="isManual",Kl="CreateFromInterface",Xl="assembly",Gl="fileName",Jl="hasFullStack",Ql="level",Yl="method",Zl="line",tc="duration",ec="receivedResponse",rc=void 0,oc=void 0,nc="";function ic(){return cc()?sc(ml.LocalStorage):null}function sc(t){try{if(Le(Vr()))return null;var e=(new Date)[Cl](),r=Ur(t===ml.LocalStorage?"localStorage":"sessionStorage"),o=nc+e;r.setItem(o,e);var n=r.getItem(o)!==e;if(r[Sl](o),!n)return r}catch(t){}return null}function ac(){return pc()?sc(ml.SessionStorage):null}function lc(t){nc=t||""}function cc(t){return(t||void 0===rc)&&(rc=!!sc(ml.LocalStorage)),rc}function dc(t,e){var r=ic();if(null!==r)try{return r.getItem(e)}catch(e){rc=!1,hl(t,2,1,"Browser failed read of local storage. "+js(e),{exception:er(e)})}return null}function uc(t,e,r){var o=ic();if(null!==o)try{return o.setItem(e,r),!0}catch(e){rc=!1,hl(t,2,3,"Browser failed write to local storage. "+js(e),{exception:er(e)})}return!1}function pc(t){return(t||void 0===oc)&&(oc=!!sc(ml.SessionStorage)),oc}function bc(t,e){var r=ac();if(null!==r)try{return r.getItem(e)}catch(e){oc=!1,hl(t,2,2,"Browser failed read of session storage. "+js(e),{exception:er(e)})}return null}function fc(t,e,r){var o=ac();if(null!==o)try{return o.setItem(e,r),!0}catch(e){oc=!1,hl(t,2,4,"Browser failed write to session storage. "+js(e),{exception:er(e)})}return!1}function hc(t,e){var r=ac();if(null!==r)try{return r[Sl](e),!0}catch(e){oc=!1,hl(t,2,6,"Browser failed removal of session storage item. "+js(e),{exception:er(e)})}return!1}var gc="AppInsightsPropertiesPlugin",vc="AppInsightsChannelPlugin",mc="ApplicationInsightsAnalytics",yc="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",wc="sampleRate",_c="ProcessLegacy",xc="http.method",Cc="https://dc.services.visualstudio.com",kc="/v2/track",Sc="not_specified",Ec="iKey";function Tc(t,e,r){var o=e[wl],n=function(t,e){var r;return e&&(e=Io(Ze(e)))[wl]>150&&(r=Cr(e,0,150),hl(t,2,57,"name is too long. It has been truncated to 150 characters.",{name:e},!0)),r||e}(t,e);if(n[wl]!==o){for(var i=0,s=n;void 0!==r[s];)i++,s=Cr(n,0,147)+Rc(i);n=s}return n}function Ac(t,e,r){var o;return void 0===r&&(r=1024),e&&(r=r||1024,(e=Io(Ze(e)))[wl]>r&&(o=Cr(e,0,r),hl(t,2,61,"string value is too long. It has been truncated to "+r+" characters.",{value:e},!0))),o||e}function $c(t,e){return jc(t,e,2048,66)}function Oc(t,e){var r;return e&&e[wl]>32768&&(r=Cr(e,0,32768),hl(t,2,56,"message is too long, it has been truncated to 32768 characters.",{message:e},!0)),r||e}function Ic(t,e){if(e){var r={};Qe(e,(function(e,o){if(ze(o)&&ca())try{o=da()[Ll](o)}catch(e){hl(t,2,49,"custom property is not valid",{exception:e},!0)}o=Ac(t,o,8192),e=Tc(t,e,r),r[e]=o})),e=r}return e}function Dc(t,e){if(e){var r={};Qe(e,(function(e,o){e=Tc(t,e,r),r[e]=o})),e=r}return e}function jc(t,e,r,o){var n;return e&&(e=Io(Ze(e)))[wl]>r&&(n=Cr(e,0,r),hl(t,2,o,"input is too long, it has been truncated to "+r+" characters.",{data:e},!0)),n||e}function Rc(t){var e="00"+t;return kr(e,e[wl]-3)}function Lc(t,e,r,o,n,i){var s;r=Ac(o,r)||Sc,(Le(t)||Le(e)||Le(r))&&rr("Input doesn't contain all required fields");var a="";t[Ec]&&(a=t[Ec],delete t[Ec]);var l=((s={})[El]=r,s.time=Ds(new Date),s.iKey=a,s.ext=i||{},s.tags=[],s.data={},s.baseType=e,s.baseData=t,s);return Le(n)||Qe(n,(function(t,e){l.data[t]=e})),l}var Pc=function(){function t(t,e,r,o){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var n=this;n.ver=2,n[El]=Ac(t,e)||Sc,n[ql]=Ic(t,r),n[Hl]=Dc(t,o)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Event",t.dataType="EventData",t}(),Mc=function(){function t(t,e,r,o,n){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var i=this;i.ver=2,e=e||Sc,i[Tl]=Oc(t,e),i[ql]=Ic(t,o),i[Hl]=Dc(t,n),r&&(i[Fl]=r)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Message",t.dataType="MessageData",t}(),Nc=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},zc=function(){function t(t,e,r,o,n,i,s,a,l){this.aiDataContract={ver:1,metrics:1,properties:0};var c=this;c.ver=2;var d=new Nc;d[Al]=o>0?o:void 0,d.max=isNaN(i)||null===i?void 0:i,d.min=isNaN(n)||null===n?void 0:n,d[El]=Ac(t,e)||Sc,d.value=r,d.stdDev=isNaN(s)||null===s?void 0:s,c.metrics=[d],c[ql]=Ic(t,a),c[Hl]=Dc(t,l)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",t.dataType="MetricData",t}(),qc="";function Hc(t){(isNaN(t)||t<0)&&(t=0),t=Math.round(t);var e=qc+t%1e3,r=qc+Math.floor(t/1e3)%60,o=qc+Math.floor(t/6e4)%60,n=qc+Math.floor(t/36e5)%24,i=Math.floor(t/864e5);return e=1===e[wl]?"00"+e:2===e[wl]?"0"+e:e,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+"."+e}var Vc=function(){function t(t,e,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(t,e){return e?jc(t,e,128,69)[Cl]():e}(t,s),a.url=$c(t,r),a[El]=Ac(t,e)||Sc,isNaN(o)||(a[tc]=Hc(o)),a[ql]=Ic(t,n),a[Hl]=Dc(t,i)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",t.dataType="PageviewData",t}(),Uc=function(){function t(t,e,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=$c(t,r),a[El]=Ac(t,e)||Sc,a[ql]=Ic(t,n),a[Hl]=Dc(t,i),s&&(a.domProcessing=s.domProcessing,a[tc]=s[tc],a.networkConnect=s.networkConnect,a.perfTotal=s.perfTotal,a[ec]=s[ec],a.sentRequest=s.sentRequest)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",t.dataType="PageviewPerformanceData",t}(),Fc="error",Bc="stack",Wc="stackDetails",Kc="errorSrc",Xc="message",Gc="description";function Jc(t,e){var r=t;return r&&!Me(r)&&(JSON&&JSON[Ll]?(r=JSON[Ll](t),!e||r&&"{}"!==r||(r=Ne(t[Cl])?t[Cl]():""+t)):r=t+" - (Missing JSON.stringify)"),r||""}function Qc(t,e){var r=t;return t&&(r&&!Me(r)&&(r=t[Xc]||t[Gc]||r),r&&!Me(r)&&(r=Jc(r,!0)),t.filename&&(r=r+" @"+(t.filename||"")+":"+(t.lineno||"?")+":"+(t.colno||"?"))),e&&"String"!==e&&"Object"!==e&&"Error"!==e&&-1===Xo(r||"",e)&&(r=e+": "+r),r||""}function Yc(t){return t&&t.src&&Me(t.src)&&t.obj&&qe(t.obj)}function Zc(t){var e=t||"";Me(e)||(e=Me(e[Bc])?e[Bc]:""+e);var r=e[yl]("\n");return{src:e,obj:r}}function td(t){var e=null;if(t)try{if(t[Bc])e=Zc(t[Bc]);else if(t[Fc]&&t[Fc][Bc])e=Zc(t[Fc][Bc]);else if(t.exception&&t.exception[Bc])e=Zc(t.exception[Bc]);else if(Yc(t))e=t;else if(Yc(t[Wc]))e=t[Wc];else if(Jr()&&Jr().opera&&t[Xc])e=function(t){for(var e=[],r=t[yl]("\n"),o=0;o<r[wl];o++){var n=r[o];r[o+1]&&(n+="@"+r[o+1],o++),e[kl](n)}return{src:t,obj:e}}(t[Tl]);else if(t.reason&&t.reason[Bc])e=Zc(t.reason[Bc]);else if(Me(t))e=Zc(t);else{var r=t[Xc]||t[Gc]||"";Me(t[Kc])&&(r&&(r+="\n"),r+=" from "+t[Kc]),r&&(e=Zc(r))}}catch(t){e=Zc(t)}return e||{src:"",obj:null}}function ed(t){var e="";if(t&&!(e=t.typeName||t[El]||""))try{var r=/function (.{1,200})\(/.exec(t.constructor[Cl]());e=r&&r[wl]>1?r[1]:""}catch(t){}return e}function rd(t){if(t)try{if(!Me(t)){var e=ed(t),r=Jc(t,!1);return r&&"{}"!==r||(t[Fc]&&(e=ed(t=t[Fc])),r=Jc(t,!0)),0!==Xo(r,e)&&"String"!==e?e+":"+r:r}}catch(t){}return""+(t||"")}var od=function(){function t(t,e,r,o,n,i){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,function(t){try{if(ze(t))return"ver"in t&&"exceptions"in t&&"properties"in t}catch(t){}return!1}(e)?(s[Nl]=e[Nl]||[],s[ql]=e[ql],s[Hl]=e[Hl],e[Fl]&&(s[Fl]=e[Fl]),e.id&&(s.id=e.id,e[ql].id=e.id),e[Bl]&&(s[Bl]=e[Bl]),Le(e[Wl])||(s[Wl]=e[Wl])):(r||(r={}),i&&(r.id=i),s[Nl]=[new nd(t,e,r)],s[ql]=Ic(t,r),s[Hl]=Dc(t,o),n&&(s[Fl]=n),i&&(s.id=i))}return t.CreateAutoException=function(t,e,r,o,n,i,s,a){var l,c=ed(n||i||t);return(l={})[Tl]=Qc(t,c),l.url=e,l.lineNumber=r,l.columnNumber=o,l.error=rd(n||i||t),l.evt=rd(i||t),l[Ul]=c,l.stackDetails=td(s||n||i),l.errorSrc=a,l},t.CreateFromInterface=function(e,r,o,n){var i=r[Nl]&&ho(r[Nl],(function(t){return nd[Kl](e,t)}));return new t(e,qn(qn({},r),{exceptions:i}),o,n)},t.prototype.toInterface=function(){var t,e=this,r=e.exceptions,o=e.properties,n=e.measurements,i=e.severityLevel,s=e.problemGroup,a=e.id,l=e.isManual,c=r instanceof Array&&ho(r,(function(t){return t.toInterface()}))||void 0;return(t={ver:"4.0"})[Nl]=c,t.severityLevel=i,t.properties=o,t.measurements=n,t.problemGroup=s,t.id=a,t.isManual=l,t},t.CreateSimpleException=function(t,e,r,o,n,i){var s;return{exceptions:[(s={},s[Jl]=!0,s.message=t,s.stack=n,s.typeName=e,s)]}},t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",t.dataType="ExceptionData",t.formatError=rd,t}(),nd=function(){function t(t,e,r){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var o=this;if(function(t){try{if(ze(t))return"hasFullStack"in t&&"typeName"in t}catch(t){}return!1}(e))o[Ul]=e[Ul],o[Tl]=e[Tl],o[Bc]=e[Bc],o[zl]=e[zl]||[],o[Jl]=e[Jl];else{var n=e,i=n&&n.evt;Fe(n)||(n=n[Fc]||i||n),o[Ul]=Ac(t,ed(n))||Sc,o[Tl]=Oc(t,Qc(e||n,o[Ul]))||Sc;var s=e[Wc]||td(e);o[zl]=function(t){var e,r=t.obj;if(r&&r[wl]>0){e=[];var o=0,n=0;if(bo(r,(function(t){var r=t[Cl]();if(id.regex.test(r)){var i=new id(r,o++);n+=i[Vl],e[kl](i)}})),n>32768)for(var i=0,s=e[wl]-1,a=0,l=i,c=s;i<s;){if((a+=e[i][Vl]+e[s][Vl])>32768){var d=c-l+1;e.splice(l,d);break}l=i,c=s,i++,s--}}return e}(s),qe(o[zl])&&ho(o[zl],(function(e){e[Xl]=Ac(t,e[Xl]),e[Gl]=Ac(t,e[Gl])})),o[Bc]=function(t,e){var r;if(e){var o=""+e;o[wl]>32768&&(r=Cr(o,0,32768),hl(t,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0))}return r||e}(t,function(t){var e="";return t&&(t.obj?bo(t.obj,(function(t){e+=t+"\n"})):e=t.src||""),e}(s)),o.hasFullStack=qe(o.parsedStack)&&o.parsedStack[wl]>0,r&&(r[Ul]=r[Ul]||o[Ul])}}return t.prototype.toInterface=function(){var t,e=this,r=e[zl]instanceof Array&&ho(e[zl],(function(t){return t.toInterface()}));return(t={id:e.id,outerId:e.outerId,typeName:e[Ul],message:e[Tl],hasFullStack:e[Jl],stack:e[Bc]})[zl]=r||void 0,t},t.CreateFromInterface=function(e,r){var o=r[zl]instanceof Array&&ho(r[zl],(function(t){return id[Kl](t)}))||r[zl];return new t(e,qn(qn({},r),{parsedStack:o}))},t}(),id=function(){function t(e,r){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var o=this;if(o[Vl]=0,"string"==typeof e){var n=e;o[Ql]=r,o[Yl]="<no_method>",o[Xl]=Io(n),o[Gl]="",o[Zl]=0;var i=n.match(t.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]=e[Ql],o[Yl]=e[Yl],o[Xl]=e[Xl],o[Gl]=e[Gl],o[Zl]=e[Zl],o[Vl]=0;o.sizeInBytes+=o.method[wl],o.sizeInBytes+=o.fileName[wl],o.sizeInBytes+=o.assembly[wl],o[Vl]+=t.baseSize,o.sizeInBytes+=o.level.toString()[wl],o.sizeInBytes+=o.line.toString()[wl]}return t.CreateFromInterface=function(e){return new t(e,null)},t.prototype.toInterface=function(){var t=this;return{level:t[Ql],method:t[Yl],assembly:t[Xl],fileName:t[Gl],line:t[Zl]}},t.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,t.baseSize=58,t}();function sd(){for(var t,e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r=is,o=0;o<4;o++)r+=e[15&(t=ka())]+e[t>>4&15]+e[t>>8&15]+e[t>>12&15]+e[t>>16&15]+e[t>>20&15]+e[t>>24&15]+e[t>>28&15];var n=e[8+(3&ka())|0];return kr(r,0,8)+kr(r,9,4)+"4"+kr(r,13,3)+n+kr(r,16,3)+kr(r,19,12)}var ad="00",ld="00000000000000000000000000000000",cd="0000000000000000";function dd(t,e,r){return!(!t||t[Wn]!==e||t===r||!t.match(/^[\da-f]*$/i))}function ud(t,e,r){return dd(t,e)?t:r}function pd(t,e,r,o){var n;return(n={})[_i]=dd(o,2,"ff")?o:ad,n[es]=bd(t)?t:sd(),n[rs]=fd(e)?e:Er(sd(),16),n.traceFlags=r>=0&&r<=255?r:1,n}function bd(t){return dd(t,32,ld)}function fd(t){return dd(t,16,cd)}function hd(t){if(t){var e=function(t){(isNaN(t)||t<0||t>255)&&(t=1);for(var e=t.toString(16);e[Wn]<2;)e="0"+e;return e}(t[os]);dd(e,2)||(e="01");var r=t[_i]||ad;return"00"!==r&&"ff"!==r&&(r=ad),"".concat(r.toLowerCase(),"-").concat(ud(t.traceId,32,ld).toLowerCase(),"-").concat(ud(t.spanId,16,cd).toLowerCase(),"-").concat(e.toLowerCase())}return""}var gd=function(t){var e={};return Qe(t,(function(t,r){e[t]=r[1],e[r[0]]=r[1]})),cr(e)}({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"]}),vd=Br()||{},md=0,yd=[null,null,null,null,null];function wd(t){var e=md,r=yd,o=r[e];return vd.createElement?r[e]||(o=r[e]=vd.createElement("a")):o={host:_d(t,!0)},o.href=t,++e>=r[wl]&&(e=0),md=e,o}function _d(t,e){var r=xd(t,e)||"";if(r){var o=r.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=o&&o[wl]>3&&Me(o[2])&&o[2][wl]>0)return o[2]+(o[3]||"")}return r}function xd(t,e){var r=null;if(t){var o=t.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=o&&o[wl]>2&&Me(o[2])&&o[2][wl]>0&&(r=o[2]||"",e&&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 Cd=[Cc+kc,"https://breeze.aimon.applicationinsights.io"+kc,"https://dc-int.services.visualstudio.com"+kc];function kd(t){return-1!==fo(Cd,t[_l]())}function Sd(t,e,r){if(!e||t&&t.disableCorrelationHeaders)return!1;if(t&&t[Ml])for(var o=0;o<t.correlationHeaderExcludePatterns[wl];o++)if(t[Ml][o].test(e))return!1;var n=wd(e).host[_l]();if(!n||-1===Xo(n,":443")&&-1===Xo(n,":80")||(n=(xd(e,!0)||"")[_l]()),(!t||!t.enableCorsCorrelation)&&n&&n!==r)return!1;var i,s=t&&t.correlationHeaderDomains;if(s&&(bo(s,(function(t){var e=new RegExp(t.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));i=i||e.test(n)})),!i))return!1;var a=t&&t.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 Ed(t){if(t){var e=function(t,e){if(t)for(var r=t[yl](","),o=0;o<r[wl];++o){var n=r[o][yl]("=");if(2===n[wl]&&n[0]===e)return n[1]}}(t,gd[1]);if(e&&"cid-v1:"!==e)return e}}function Td(){var t=Vo();if(t&&t.now&&t.timing){var e=t.now()+t.timing.navigationStart;if(e>0)return e}return So()}function Ad(t,e){var r=null;return 0===t||0===e||Le(t)||Le(e)||(r=e-t),r}function $d(t,e){var r=t||{};return{getName:function(){return r[El]},setName:function(t){e&&e.setName(t),r[El]=t},getTraceId:function(){return r.traceID},setTraceId:function(t){e&&e.setTraceId(t),bd(t)&&(r.traceID=t)},getSpanId:function(){return r.parentID},setSpanId:function(t){e&&e.setSpanId(t),fd(t)&&(r.parentID=t)},getTraceFlags:function(){return r.traceFlags},setTraceFlags:function(t){e&&e.setTraceFlags(t),r.traceFlags=t}}}var Od,Id,Dd=function(){function t(t,e,r,o,n,i,s,a,l,c,d,u){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=e,p[tc]=Hc(n),p.success=i,p.resultCode=s+"",p.type=Ac(t,l);var b=function(t,e,r,o){var n,i=o,s=o;if(e&&e[wl]>0){var a=wd(e);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(t,r?r+" "+l:l)}else i=Ac(t,e)}else n=o,i=o;return{target:n,name:i,data:s}}(t,r,a,o);p.data=$c(t,o)||b.data,p.target=Ac(t,b.target),c&&(p.target="".concat(p.target," | ").concat(c)),p[El]=Ac(t,b[El]),p[ql]=Ic(t,d),p[Hl]=Dc(t,u)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",t.dataType="RemoteDependencyData",t}();function jd(t){var e=null;if(Ne(Event))e=new Event(t);else{var r=Br();r&&r.createEvent&&(e=r.createEvent("Event")).initEvent(t,!0,!0)}return e}function Rd(t,e,r){return!t&&Le(t)?e:Ue(t)?t:"true"===Ze(t)[Fn]()}function Ld(t){return{mrg:!0,v:t}}function Pd(t,e){return{set:t,v:e}}function Md(t,e,r){return{fb:r,isVal:t,v:e}}function Nd(t,e){return{fb:e,set:Rd,v:!!t}}var zd,qd="toGMTString",Hd="toUTCString",Vd="cookie",Ud="expires",Fd="isCookieUseDisabled",Bd="disableCookiesUsage",Wd="_ckMgr",Kd=null,Xd=null,Gd=null,Jd={},Qd={},Yd=((Od={cookieCfg:Ld((Id={},Id[xs]={fb:"cookieDomain",dfVal:$s},Id.path={fb:"cookiePath",dfVal:$s},Id.enabled=ns,Id.ignoreCookies=ns,Id.blockedCookies=ns,Id)),cookieDomain:ns,cookiePath:ns})[Bd]=ns,Od);function Zd(){var t,e;!zd&&(t=function(){return Br()},e={},!jr&&Mr(),e.b=jr.lzy,Rr(e,"v",{configurable:!0,get:function(){var r=t();return jr.lzy||Rr(e,"v",{value:r}),e.b=jr.lzy,r}}),zd=e)}function tu(t){return!t||t.isEnabled()}function eu(t,e){return!!(e&&t&&qe(t.ignoreCookies))&&-1!==fo(t.ignoreCookies,e)}function ru(t,e){var r=e[vi];if(Le(r)){var o=void 0;Re(t[Fd])||(o=!t[Fd]),Re(t[Bd])||(o=!t[Bd]),r=o}return r}function ou(t,e){var r;if(t)r=t.getCookieMgr();else if(e){var o=e.cookieCfg;r=o&&o[Wd]?o[Wd]:nu(e)}return r||(r=function(t,e){var r=nu[Wd]||Qd[Wd];return r||(r=nu[Wd]=nu(t,e),Qd[Wd]=r),r}(e,(t||{})[Zn])),r}function nu(t,e){var r,o,n,i,s,a,l,c,d;t=Ya(t||Qd,null,e).cfg,s=Za(t,(function(e){e[Qn](e.cfg,Yd),o=e.ref(e.cfg,"cookieCfg"),n=o[Cs]||"/",i=o[xs],a=!1!==ru(t,o),l=o.getCookie||cu,c=o.setCookie||du,d=o.delCookie||du}),e);var u=((r={isEnabled:function(){var r=!1!==ru(t,o)&&a&&iu(e),n=Qd[Wd];return r&&n&&u!==n&&(r=tu(n)),r},setEnabled:function(t){a=!1!==t,o[vi]=t},set:function(t,e,r,s,a){var l,d=!1;if(tu(u)&&!function(t,e){return!!(e&&t&&qe(t.blockedCookies)&&-1!==fo(t.blockedCookies,e))||eu(t,e)}(o,t)){var p={},b=Io(e||is),f=Xo(b,";");if(-1!==f&&(b=Io(Er(e,f)),p=su(Cr(e,f+1))),Rs(p,xs,s||i,We,Re),!Le(r)){var h=ua();if(Re(p[Ud])){var g=So()+1e3*r;if(g>0){var v=new Date;v.setTime(g),Rs(p,Ud,au(v,h?qd:Hd)||au(v,h?qd:Hd)||is,We)}}h||Rs(p,"max-age",is+r,null,Re)}var m=la();m&&"https:"===m[ji]&&(Rs(p,"secure",null,null,Re),null===Xd&&(l=(Qr()||{})[Ri],Xd=!(Me(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")))),Xd&&Rs(p,"SameSite","None",null,Re)),Rs(p,Cs,a||n,null,Re),c(t,lu(b,p)),d=!0}return d},get:function(t){var e=is;return tu(u)&&!eu(o,t)&&(e=l(t)),e},del:function(t,e){var r=!1;return tu(u)&&(r=u.purge(t,e)),r},purge:function(t,r){var o,n=!1;if(iu(e)){var i=((o={})[Cs]=r||"/",o[Ud]="Thu, 01 Jan 1970 00:00:01 GMT",o);ua()||(i["max-age"]="0"),d(t,lu(is,i)),n=!0}return n}})[yi]=function(t){s&&s.rm(),s=null},r);return u[Wd]=u,u}function iu(t){if(null===Kd){Kd=!1,!zd&&Zd();try{var e=zd.v||{};Kd=void 0!==e[Vd]}catch(e){hl(t,2,68,"Cannot access document.cookie - "+js(e),{exception:er(e)})}}return Kd}function su(t){var e={};return t&&t[Wn]&&bo(Io(t)[Li](";"),(function(t){if(t=Io(t||is)){var r=Xo(t,"=");-1===r?e[t]=null:e[Io(Er(t,r))]=Io(Cr(t,r+1))}})),e}function au(t,e){return Ne(t[e])?t[e]():null}function lu(t,e){var r=t||is;return Qe(e,(function(t,e){r+="; "+t+(Le(e)?is:"="+e)})),r}function cu(t){var e=is;if(!zd&&Zd(),zd.v){var r=zd.v[Vd]||is;Gd!==r&&(Jd=su(r),Gd=r),e=Io(Jd[t]||is)}return e}function du(t,e){!zd&&Zd(),zd.v&&(zd.v[Vd]=t+"="+e)}var uu="on",pu="attachEvent",bu="addEventListener",fu="detachEvent",hu="removeEventListener",gu="events",vu="visibilitychange",mu="pagehide",yu="unload",wu="beforeunload",_u=Oa("aiEvtPageHide"),xu=(Oa("aiEvtPageShow"),/\.[\.]+/g),Cu=/[\.]+$/,ku=1,Su=Ia("events"),Eu=/^([^.]*)(?:\.(.+)|)/;function Tu(t){return t&&t[Mi]?t[Mi](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,is):t}function Au(t,e){var r;if(e){var o=is;qe(e)?(o=is,bo(e,(function(t){(t=Tu(t))&&("."!==t[0]&&(t="."+t),o+=t)}))):o=Tu(e),o&&("."!==o[0]&&(o="."+o),t=(t||is)+o)}var n=Eu.exec(t||is)||[];return(r={})[zi]=n[1],r.ns=(n[2]||is).replace(xu,".").replace(Cu,is)[Li](".").sort().join("."),r}function $u(t,e,r){void 0===r&&(r=!0);var o=Su.get(t,gu,{},r),n=o[e];return n||(n=o[e]=[]),n}function Ou(t,e,r,o){t&&e&&e[zi]&&(t[hu]?t[hu](e[zi],r,o):t[fu]&&t[fu](uu+e[zi],r))}function Iu(t,e,r,o){for(var n=e[Wn];n--;){var i=e[n];i&&(r.ns&&r.ns!==i.evtName.ns||o&&!o(i)||(Ou(t,i.evtName,i[qi],i.capture),e[ri](n,1)))}}function Du(t,e){return e?Au("xx",qe(e)?[t].concat(e):[t,e]).ns[Li]("."):t}function ju(t,e,r,o,n){var i;void 0===n&&(n=!1);var s=!1;if(t)try{var a=Au(e,o);if(s=function(t,e,r,o){var n=!1;return t&&e&&e[zi]&&r&&(t[bu]?(t[bu](e[zi],r,o),n=!0):t[pu]&&(t[pu](uu+e[zi],r),n=!0)),n}(t,a,r,n),s&&Su.accept(t)){var l=((i={guid:ku++,evtName:a})[qi]=r,i.capture=n,i);$u(t,a.type)[ei](l)}}catch(t){}return s}function Ru(t,e,r,o,n){if(void 0===n&&(n=!1),t)try{var i=Au(e,o),s=!1;!function(t,e,r){if(e[zi])Iu(t,$u(t,e[zi]),e,r);else{var o=Su.get(t,gu,{});Qe(o,(function(o,n){Iu(t,n,e,r)})),0===lr(o)[Wn]&&Su.kill(t,gu)}}(t,i,(function(t){return!((!i.ns||r)&&t[qi]!==r||(s=!0,0))})),s||Ou(t,i,r,n)}catch(t){}}function Lu(t,e,r,o){var n=!1;return e&&t&&t[Wn]>0&&bo(t,(function(t){t&&(r&&-1!==fo(r,t)||(n=function(t,e,r){var o=!1,n=Jr();n&&(o=ju(n,t,e,r),o=ju(n.body,t,e,r)||o);var i=Br();return i&&(o=ju(i,t,e,r)||o),o}(t,e,o)||n))})),n}function Pu(t,e,r){t&&qe(t)&&bo(t,(function(t){t&&function(t,e,r){var o=Jr();o&&(Ru(o,t,e,r),Ru(o.body,t,e,r));var n=Br();n&&Ru(n,t,e,r)}(t,e,r)}))}function Mu(t,e,r){var o=Du(_u,r),n=Lu([mu],t,e,o);return e&&-1!==fo(e,vu)||(n=Lu([vu],(function(e){var r=Br();t&&r&&"hidden"===r.visibilityState&&t(e)}),e,o)||n),!n&&e&&(n=Mu(t,null,r)),n}var Nu="ctx",zu="ParentContextKey",qu="ChildrenContextKey",Hu=function(){function t(e,r,o){var n,i=this;i.start=So(),i[bi]=e,i[Ti]=o,i[Fi]=function(){return!1},Ne(r)&&Pr(i,"payload",{g:function(){return!n&&Ne(r)&&(n=r(),r=null),n}}),i[Wi]=function(e){return e?e===t[zu]||e===t[qu]?i[e]:(i[Nu]||{})[e]:null},i[Ki]=function(e,r){e&&(e===t[zu]?(i[e]||(i[Fi]=function(){return!0}),i[e]=r):e===t[qu]?i[e]=r:(i[Nu]=i[Nu]||{})[e]=r)},i[Xi]=function(){var e=0,r=i[Wi](t[qu]);if(qe(r))for(var o=0;o<r[Wn];o++){var n=r[o];n&&(e+=n[fi])}i[fi]=So()-i.start,i.exTime=i[fi]-e,i[Xi]=function(){}}}return t.ParentContextKey="parent",t.ChildrenContextKey="childEvts",t}(),Vu=function(){function t(e){this.ctx={},Dn(t,this,(function(t){t.create=function(t,e,r){return new Hu(t,e,r)},t.fire=function(t){t&&(t[Xi](),e&&Ne(e[vs])&&e[vs](t))},t[Ki]=function(e,r){e&&((t[Nu]=t[Nu]||{})[e]=r)},t[Wi]=function(e){return(t[Nu]||{})[e]}}))}return t.__ieDyn=1,t}(),Uu="CoreUtils.doPerf";function Fu(t,e,r,o,n){if(t){var i=t;if(i[_s]&&(i=i[_s]()),i){var s=void 0,a=i[Wi](Uu);try{if(s=i.create(e(),o,n)){if(a&&s[Ki]&&(s[Ki](Hu[zu],a),a[Wi]&&a[Ki])){var l=a[Wi](Hu[qu]);l||(l=[],a[Ki](Hu[qu],l)),l[ei](s)}return i[Ki](Uu,s),r(s)}}catch(t){s&&s[Ki]&&s[Ki]("exception",t)}finally{s&&i.fire(s),i[Ki](Uu,a)}}}return r()}var Bu=Ia("plugin");function Wu(t){return Bu.get(t,"state",{},!0)}function Ku(t,e){for(var r,o=[],n=null,i=t[Ii]();i;){var s=i[ui]();if(s){n&&n[Di]&&s[ps]&&n[Di](s);var a=!!(r=Wu(s))[ci];s[ci]&&(a=s[ci]()),a||o[ei](s),n=s,i=i[Ii]()}}bo(o,(function(o){var n=t[as]();o[ii](t.getCfg(),n,e,t[Ii]()),r=Wu(o),o[as]||r[as]||(r[as]=n),r[ci]=!0,delete r[ki]}))}function Xu(t){return t.sort((function(t,e){var r=0;if(e){var o=e[ps];t[ps]?r=o?t[bs]-e[bs]:1:o&&(r=-1)}else r=t?1:-1;return r}))}var Gu="TelemetryPluginChain",Ju="_hasRun",Qu="_getTelCtx",Yu=0;function Zu(t,e,r,o){var n=null,i=[];e||(e=Ya({},null,r[Zn])),null!==o&&(n=o?function(t,e,r){for(;t;){if(t[ui]()===r)return t;t=t[Ii]()}return op([r],e.config||{},e)}(t,r,o):t);var s={_next:function(){var t=n;if(n=t?t[Ii]():null,!t){var e=i;e&&e[Wn]>0&&(bo(e,(function(t){try{t.func.call(t.self,t.args)}catch(t){hl(r[Zn],2,73,"Unexpected Exception during onComplete - "+er(t))}})),i=[])}return t},ctx:{core:function(){return r},diagLog:function(){return pl(r,e.cfg)},getCfg:function(){return e.cfg},getExtCfg:function(t,r){var o=a(t,!0);return r&&Qe(r,(function(t,r){if(Le(o[t])){var n=e.cfg[t];!n&&Le(n)||(o[t]=n)}La(e,o,t,r)})),e[Qn](o,r)},getConfig:function(t,r,o){void 0===o&&(o=!1);var n,i=a(t,!1),s=e.cfg;return!i||!i[r]&&Le(i[r])?!s[r]&&Le(s[r])||(n=s[r]):n=i[r],n||!Le(n)?n:o},hasNext:function(){return!!n},getNext:function(){return n},setNext:function(t){n=t},iterate:function(t){for(var e;e=s._next();){var r=e[ui]();r&&t(r)}},onComplete:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];t&&i[ei]({func:t,self:Re(e)?s.ctx:e,args:r})}}};function a(t,r){var o=null,n=e.cfg;if(n&&t){var i=n[ds];!i&&r&&(i={}),n[ds]=i,(i=e.ref(n,ds))&&(!(o=i[t])&&r&&(o={}),i[t]=o,o=e.ref(i,t))}return o}return s}function tp(t,e,r,o){var n=Ya(e),i=Zu(t,n,r,o),s=i.ctx;return s[hi]=function(t){var e=i._next();return e&&e[ps](t,s),!e},s[Ci]=function(t,e){return void 0===t&&(t=null),qe(t)&&(t=op(t,n.cfg,r,e)),tp(t||s[Ii](),n.cfg,r,e)},s}function ep(t,e,r){var o=Ya(e.config),n=Zu(t,o,e,r),i=n.ctx;return i[hi]=function(t){var e=n._next();return e&&e[yi](i,t),!e},i[Ci]=function(t,r){return void 0===t&&(t=null),qe(t)&&(t=op(t,o.cfg,e,r)),ep(t||i[Ii](),e,r)},i}function rp(t,e,r){var o=Ya(e.config),n=Zu(t,o,e,r).ctx;return n[hi]=function(t){return n.iterate((function(e){Ne(e[Oi])&&e[Oi](n,t)}))},n[Ci]=function(t,r){return void 0===t&&(t=null),qe(t)&&(t=op(t,o.cfg,e,r)),rp(t||n[Ii](),e,r)},n}function op(t,e,r,o){var n=null,i=!o;if(qe(t)&&t[Wn]>0){var s=null;bo(t,(function(t){if(i||o!==t||(i=!0),i&&t&&Ne(t[ps])){var a=function(t,e,r){var o,n=null,i=Ne(t[ps]),s=Ne(t[Di]),a={getPlugin:function(){return t},getNext:function(){return n},processTelemetry:function(o,c){l(c=c||function(){var o;return t&&Ne(t[Qu])&&(o=t[Qu]()),o||(o=tp(a,e,r)),o}(),(function(e){if(!t||!i)return!1;var r=Wu(t);return!r[ki]&&!r[cs]&&(s&&t[Di](n),t[ps](o,e),!0)}),"processTelemetry",(function(){return{item:o}}),!o.sync)||c[hi](o)},unload:function(e,r){l(e,(function(){var o=!1;if(t){var n=Wu(t),i=t[as]||n[as];!t||i&&i!==e.core()||n[ki]||(n[as]=null,n[ki]=!0,n[ci]=!1,t[ki]&&!0===t[ki](e,r)&&(o=!0))}return o}),"unload",(function(){}),r[Ti])||e[hi](r)},update:function(e,r){l(e,(function(){var o=!1;if(t){var n=Wu(t),i=t[as]||n[as];!t||i&&i!==e.core()||n[ki]||t[Oi]&&!0===t[Oi](e,r)&&(o=!0)}return o}),"update",(function(){}),!1)||e[hi](r)},_id:o=t?t[si]+"-"+t[bs]+"-"+Yu++:"Unknown-0-"+Yu++,_setNext:function(t){n=t}};function l(e,r,i,s,a){var l=!1,c=t?t[si]:Gu,d=e[Ju];return d||(d=e[Ju]={}),e.setNext(n),t&&Fu(e[as](),(function(){return c+":"+i}),(function(){d[o]=!0;try{var t=n?n._id:is;t&&(d[t]=!1),l=r(e)}catch(t){var s=!n||d[n._id];s&&(l=!0),n&&s||hl(e[Ai](),1,73,"Plugin ["+c+"] failed during "+i+" - "+er(t)+", run flags: "+er(d))}}),s,a),l}return dr(a)}(t,e,r);n||(n=a),s&&s._setNext(a),s=a}}))}return o&&!n?op([o],e,r):n}var np,ip="_aiHooks",sp=["req","rsp","hkErr","fnErr"];function ap(t,e){if(t)for(var r=0;r<t[Wn]&&!e(t[r],r);r++);}function lp(t,e,r,o,n){n>=0&&n<=2&&ap(t,(function(t,i){var s=t.cbks,a=s[sp[n]];if(a){e.ctx=function(){return o[i]=o[i]||{}};try{a[ti](e.inst,r)}catch(t){var l=e.err;try{var c=s[sp[2]];c&&(e.err=t,c[ti](e.inst,r))}catch(t){}finally{e.err=l}}}}))}function cp(t,e,r,o){var n=null;return t&&(Xe(t,e)?n=t:r&&(n=cp(As(t),e,o,!1))),n}function dp(t,e,r,o){var n=r&&r[ip];if(!n){var i=function(t){return function(){var e,r=arguments,o=t.h,n=((e={})[bi]=t.n,e.inst=this,e.ctx=null,e.set=function(t,e){(r=a([],r))[t]=e,s=a([n],r)},e),i=[],s=a([n],r);function a(t,e){return ap(e,(function(e){t[ei](e)})),t}n.evt=Ur("event"),lp(o,n,s,i,0);var l=t.f;if(l)try{n.rslt=l[ti](this,r)}catch(t){throw n.err=t,lp(o,n,s,i,3),t}return lp(o,n,s,i,1),n.rslt}}(n={i:0,n:e,f:r,h:[]});i[ip]=n,t[e]=i}var s={id:n.i,cbks:o,rm:function(){var t=this.id;ap(n.h,(function(e,r){if(e.id===t)return n.h[ri](r,1),1}))}};return n.i++,n.h[ei](s),s}function up(t,e,r,o,n){if(void 0===o&&(o=!0),t&&e&&r){var i=cp(t,e,o,n);if(i){var s=i[e];if(typeof s===jn)return dp(i,e,s,r)}}return null}function pp(t,e,r,o,n){if(t&&e&&r){var i=cp(t,e,o,n)||t;if(i)return dp(i,e,i[e],r)}return null}function bp(){var t=[];return{add:function(e){e&&t[ei](e)},run:function(e,r){bo(t,(function(t){try{t(e,r)}catch(t){hl(e[Ai](),2,73,"Unexpected error calling unload handler - "+er(t))}})),t=[]}}}function fp(){var t=[];return{run:function(e){var r=t;t=[],bo(r,(function(t){try{(t.rm||t.remove).call(t)}catch(t){hl(e,2,73,"Unloading:"+er(t))}}))},add:function(e){e&&po(t,e)}}}var hp="getPlugin",gp=((np={})[ds]={isVal:$s,v:{}},np),vp=function(){function t(){var e,r,o,n,i,s=this;function a(t){void 0===t&&(t=null);var e=t;if(!e){var n=r||tp(null,{},s[as]);e=o&&o[hp]?n[Ci](null,o[hp]):n[Ci](null,o)}return e}function l(t,e,n){Ya(t,gp,pl(e)),!n&&e&&(n=e[gi]()[Ii]());var i=o;o&&o[hp]&&(i=o[hp]()),s[as]=e,r=tp(n,t,e,i)}function c(){e=!1,s[as]=null,r=null,o=null,i=fp(),n=bp()}c(),Dn(t,s,(function(t){t[ii]=function(t,r,o,n){l(t,r,n),e=!0},t[ki]=function(e,r){var s,a=t[as];if(a&&(!e||a===e[as]())){var l,d=!1,u=e||ep(null,a,o&&o[hp]?o[hp]():o),p=r||((s={reason:0})[Ti]=!1,s);return t[$i]&&!0===t[$i](u,p,b)?l=!0:b(),l}function b(){d||(d=!0,n.run(u,r),i.run(u[Ai]()),!0===l&&u[hi](p),c())}},t[Oi]=function(e,r){var n=t[as];if(n&&(!e||n===e[as]())){var i,s=!1,a=e||rp(null,n,o&&o[hp]?o[hp]():o),c=r||{reason:0};return t._doUpdate&&!0===t._doUpdate(a,c,d)?i=!0:d(),i}function d(){s||(s=!0,l(a.getCfg(),a.core(),a[Ii]()))}},Ms(t,"_addUnloadCb",(function(){return n}),"add"),Ms(t,"_addHook",(function(){return i}),"add"),Pr(t,"_unloadHooks",{g:function(){return i}})})),s[Ai]=function(t){return a(t)[Ai]()},s[ci]=function(){return e},s.setInitialized=function(t){e=t},s[Di]=function(t){o=t},s[hi]=function(t,e){e?e[hi](t):o&&Ne(o[ps])&&o[ps](t,null)},s._getTelCtx=a}return t.__ieDyn=1,t}(),mp="toString",yp="isStorageUseDisabled",wp="_addHook",_p="core",xp="dataType",Cp="envelopeType",kp="diagLog",Sp="track",Ep="trackPageView",Tp="trackPreviousPageVisit",Ap="sendPageViewInternal",$p="startTime",Op="properties",Ip="duration",Dp="sendPageViewPerformanceInternal",jp="populatePageViewPerformanceEvent",Rp="href",Lp="sendExceptionInternal",Pp="exception",Mp="error",Np="_onerror",zp="errorSrc",qp="lineNumber",Hp="columnNumber",Vp="message",Up="CreateAutoException",Fp="addTelemetryInitializer",Bp="autoTrackPageVisitTime",Wp="isBrowserLinkTrackingEnabled",Kp="length",Xp="enableAutoRouteTracking",Gp="enableUnhandledPromiseRejectionTracking",Jp="autoUnhandledPromiseInstrumented",Qp="getEntriesByType",Yp="isPerformanceTimingSupported",Zp="getPerformanceTiming",tb="navigationStart",eb="shouldCollectDuration",rb="isPerformanceTimingDataReady",ob="responseStart",nb="loadEventEnd",ib="responseEnd",sb="connectEnd",ab="pageVisitStartTime",lb=function(){function t(e,r,o,n){Dn(t,this,(function(t){var i,s=null,a=[],l=!1,c=!1;function d(t){o&&o.flush(t,(function(){}))}function u(){s||(s=tn((function(){s=null;var t=a.slice(0),e=!1;a=[],bo(t,(function(t){t()?e=!0:a.push(t)})),a[Kp]>0&&u(),e&&d(!0)}),100))}function p(t){a.push(t),u()}o&&(i=o.logger),t[Ep]=function(t,o){var s=t.name;if(Le(s)||"string"!=typeof s){var a=Br();s=t.name=a&&a.title||""}var u=t.uri;if(Le(u)||"string"!=typeof u){var b=la();u=t.uri=b&&b[Rp]||""}if(!c){var f=Vo(),h=f&&f[Qp]&&f[Qp]("navigation");if(h&&h[0]&&!Re(f.timeOrigin)){var g=h[0].loadEventStart;t[$p]=new Date(f.timeOrigin+g)}else{var v=(o||t[Op]||{})[Ip]||0;t[$p]=new Date((new Date).getTime()-v)}c=!0}if(!n[Yp]())return e[Ap](t,o),d(!0),void(to()||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]()[tb];_>0&&(m=Ad(_,+new Date),n[eb](m)||(m=void 0)),Le(o)||Le(o[Ip])||(y=o[Ip]),!r&&isNaN(y)||(isNaN(y)&&(o||(o={}),o[Ip]=m),e[Ap](t,o),d(!0),w=!0),o||(o={}),p((function(){var r=!1;try{if(n[rb]()){r=!0;var a={name:s,uri:u};n[jp](a),a.isValid||w?(w||(o[Ip]=a.durationMs,e[Ap](t,o)),l||(e[Dp](a,o),l=!0)):(o[Ip]=m,e[Ap](t,o))}else _>0&&Ad(_,+new Date)>6e4&&(r=!0,w||(o[Ip]=6e4,e[Ap](t,o)))}catch(t){hl(i,1,38,"trackPageView failed on page load calculation: "+js(t),{exception:er(t)})}return r}))},t.teardown=function(t,e){if(s){s.cancel(),s=null;var r=a.slice(0);a=[],bo(r,(function(t){t()}))}}}))}return t.__ieDyn=1,t}(),cb=["googlebot","adsbot-google","apis-google","mediapartners-google"];function db(){var t=Vo();return t&&!!t.timing}function ub(){var t=Vo(),e=t?t.timing:0;return e&&e.domainLookupStart>0&&e[tb]>0&&e[ob]>0&&e.requestStart>0&&e[nb]>0&&e[ib]>0&&e[sb]>0&&e.domLoading>0}function pb(){return db()?Vo().timing:null}function bb(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];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<t[Kp];n++)if(t[n]<0||t[n]>=36e5)return!1;return!0}var fb,hb=function(){function t(e){var r=pl(e);Dn(t,this,(function(t){t[jp]=function(e){e.isValid=!1;var o,n=(o=Vo())&&o.getEntriesByType&&o.getEntriesByType("navigation")[Kp]>0?Vo()[Qp]("navigation")[0]:null,i=pb(),s=0,a=0,l=0,c=0,d=0;(n||i)&&(n?(s=n[Ip],a=0===n[$p]?n[sb]:Ad(n[$p],n[sb]),l=Ad(n.requestStart,n[ob]),c=Ad(n[ob],n[ib]),d=Ad(n.responseEnd,n[nb])):(s=Ad(i[tb],i[nb]),a=Ad(i[tb],i[sb]),l=Ad(i.requestStart,i[ob]),c=Ad(i[ob],i[ib]),d=Ad(i.responseEnd,i[nb])),0===s?hl(r,2,10,"error calculating page view performance.",{total:s,network:a,request:l,response:c,dom:d}):t[eb](s,a,l,c,d)?s<Math.floor(a)+Math.floor(l)+Math.floor(c)+Math.floor(d)?hl(r,2,8,"client performance math error.",{total:s,network:a,request:l,response:c,dom:d}):(e.durationMs=s,e.perfTotal=e[Ip]=Hc(s),e.networkConnect=Hc(a),e.sentRequest=Hc(l),e.receivedResponse=Hc(c),e.domProcessing=Hc(d),e.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:d}))},t[Zp]=pb,t[Yp]=db,t[rb]=ub,t[eb]=bb}))}return t.__ieDyn=1,t}(),gb=function(){function t(e,r){var o="prevPageVisitData";Dn(t,this,(function(t){t[Tp]=function(t,n){try{var i=function(t,r){var n=null;try{if(n=function(){var t=null;try{if(pc()){var r=So(),n=bc(e,o);n&&ca()&&((t=da().parse(n)).pageVisitTime=r-t[ab],hc(e,o))}}catch(r){gl(e,"Stop page visit timer failed: "+er(r)),t=null}return t}(),pc()){null!=bc(e,o)&&rr("Cannot call startPageVisit consecutively without first calling stopPageVisit");var i=da().stringify(new vb(t,r));fc(e,o,i)}}catch(t){gl(e,"Call to restart failed: "+er(t)),n=null}return n}(t,n);i&&r(i.pageName,i.pageUrl,i.pageVisitTime)}catch(t){gl(e,"Auto track page visit time failed, metric will not be collected: "+er(t))}},Pr(t,"_logger",{g:function(){return e}}),Pr(t,"pageVisitTimeTrackingHandler",{g:function(){return r}})}))}return t.__ieDyn=1,t}(),vb=function(t,e){this[ab]=So(),this.pageName=t,this.pageUrl=e},mb=function(t,e){var r=this,o={};r.start=function(e){void 0!==o[e]&&hl(t,2,62,"start was called more than once for this event without calling stop.",{name:e,key:e},!0),o[e]=+new Date},r.stop=function(e,n,i,s){var a=o[e];if(isNaN(a))hl(t,2,63,"stop was called without a corresponding start.",{name:e,key:e},!0);else{var l=Ad(a,+new Date);r.action(e,n,l,i,s)}delete o[e],o[e]=void 0}};function yb(t,e){t&&t.dispatchEvent&&e&&t.dispatchEvent(e)}var wb=cr(((fb={sessionRenewalMs:Pd(_b,18e5),sessionExpirationMs:Pd(_b,864e5),disableExceptionTracking:Nd()})[Bp]=Nd(),fb.overridePageViewDuration=Nd(),fb[Gp]=Nd(),fb[Jp]=!1,fb.samplingPercentage=Md((function(t){return!isNaN(t)&&t>0&&t<=100}),100),fb[yp]=Nd(),fb[Wp]=Nd(),fb[Xp]=Nd(),fb.namePrefix={isVal:Me,v:Ze(is)},fb.enableDebug=Nd(),fb.disableFlushOnBeforeUnload=Nd(),fb.disableFlushOnUnload=Nd(!1,"disableFlushOnBeforeUnload"),fb));function _b(t,e){return(t=t||e)<6e4&&(t=6e4),+t}var xb,Cb,kb,Sb=function(t){function e(){var r,o,n,i,s,a,l,c,d,u,p,b,f,h,g,v,m,y,w,_=t.call(this)||this;return _.identifier=mc,_.priority=180,_.autoRoutePVDelay=500,Dn(e,_,(function(t,e){var _=e[wp];function x(e,r,o,n,i){t[kp]().throwInternal(e,r,o,n,i)}function C(){r=null,o=null,n=null,i=null,s=null,a=null,l=!1,c=!1,d=!1,u=!1,p=!1,b=!1,f=!1,h=!1,v=!1;var e=la(!0);m=e&&e[Rp]||"",y=null,w=null,g=null,Pr(t,"config",{g:function(){return g}})}C(),t.getCookieMgr=function(){return ou(t[_p])},t.processTelemetry=function(e,r){t.processNext(e,r)},t.trackEvent=function(e,r){try{var o=Lc(e,Pc[xp],Pc[Cp],t[kp](),r);t[_p][Sp](o)}catch(t){x(2,39,"trackTrace failed, trace will not be collected: "+js(t),{exception:er(t)})}},t.startTrackEvent=function(t){try{r.start(t)}catch(t){x(1,29,"startTrackEvent failed, event will not be collected: "+js(t),{exception:er(t)})}},t.stopTrackEvent=function(t,e,o){try{r.stop(t,void 0,e,o)}catch(t){x(1,30,"stopTrackEvent failed, event will not be collected: "+js(t),{exception:er(t)})}},t.trackTrace=function(e,r){try{var o=Lc(e,Mc[xp],Mc[Cp],t[kp](),r);t[_p][Sp](o)}catch(t){x(2,39,"trackTrace failed, trace will not be collected: "+js(t),{exception:er(t)})}},t.trackMetric=function(e,r){try{var o=Lc(e,zc[xp],zc[Cp],t[kp](),r);t[_p][Sp](o)}catch(t){x(1,36,"trackMetric failed, metric will not be collected: "+js(t),{exception:er(t)})}},t[Ep]=function(t,e){try{var r=t||{};n[Ep](r,qn(qn(qn({},r.properties),r.measurements),e)),v&&s[Tp](r.name,r.uri)}catch(t){x(1,37,"trackPageView failed, page view will not be collected: "+js(t),{exception:er(t)})}},t[Ap]=function(e,r,o){var n=Br();if(n&&(e.refUri=void 0===e.refUri?n.referrer:e.refUri),Le(e[$p])){var i=(r||e[Op]||{})[Ip]||0;e[$p]=new Date((new Date).getTime()-i)}var s=Lc(e,Vc[xp],Vc[Cp],t[kp](),r,o);t[_p][Sp](s)},t[Dp]=function(e,r,o){var n=Lc(e,Uc[xp],Uc[Cp],t[kp](),r,o);t[_p][Sp](n)},t.trackPageViewPerformance=function(e,r){var o=e||{};try{i[jp](o),t[Dp](o,r)}catch(t){x(1,37,"trackPageViewPerformance failed, page view will not be collected: "+js(t),{exception:er(t)})}},t.startTrackPage=function(t){try{if("string"!=typeof t){var e=Br();t=e&&e.title||""}o.start(t)}catch(t){x(1,31,"startTrackPage failed, page view may not be collected: "+js(t),{exception:er(t)})}},t.stopTrackPage=function(t,e,r,n){try{if("string"!=typeof t){var i=Br();t=i&&i.title||""}if("string"!=typeof e){var a=la();e=a&&a[Rp]||""}o.stop(t,e,r,n),v&&s[Tp](t,e)}catch(t){x(1,32,"stopTrackPage failed, page view will not be collected: "+js(t),{exception:er(t)})}},t[Lp]=function(e,r,o){var n=e&&(e[Pp]||e[Mp])||Fe(e)&&e||{name:e&&typeof e,message:e||Sc};e=e||{};var i=Lc(new od(t[kp](),n,e[Op]||r,e.measurements,e.severityLevel,e.id).toInterface(),od[xp],od[Cp],t[kp](),r,o);t[_p][Sp](i)},t.trackException=function(e,r){e&&!e[Pp]&&e[Mp]&&(e[Pp]=e[Mp]);try{t[Lp](e,r)}catch(t){x(1,35,"trackException failed, exception will not be collected: "+js(t),{exception:er(t)})}},t[Np]=function(e){var r=e&&e[Mp],o=e&&e.evt;try{if(!o){var n=Jr();n&&(o=n.event)}var i=e&&e.url||(Br()||{}).URL,s=e[zp]||"window.onerror@"+i+":"+(e[qp]||0)+":"+(e[Hp]||0),a={errorSrc:s,url:i,lineNumber:e[qp]||0,columnNumber:e[Hp]||0,message:e[Vp]};!function(t,e,r,o,n){return!n&&Me(t)&&("Script error."===t||"Script error"===t)}(e.message,e.url,e.lineNumber,e.columnNumber,e[Mp])?(e[zp]||(e[zp]=s),t.trackException({exception:e,severityLevel:3},a)):function(e,r){var o=Lc(e,od[xp],od[Cp],t[kp](),r);t[_p][Sp](o)}(od[Up]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",i,e[qp]||0,e[Hp]||0,r,o,null,s),a)}catch(t){var l=r?r.name+", "+r[Vp]:"null";x(1,11,"_onError threw exception while logging error, error will not be collected: "+js(t),{exception:er(t),errorString:l})}},t[Fp]=function(e){if(t[_p])return t[_p][Fp](e);a||(a=[]),a.push(e)},t.initialize=function(x,C,k,S){if(!t.isInitialized()){Le(C)&&rr("Error initializing"),e.initialize(x,C,k,S);try{w=Du(Oa(t.identifier),C.evtNamespace&&C.evtNamespace()),a&&(bo(a,(function(t){C[Fp](t)})),a=null),function(e){var r=t.identifier,o=t[_p];t[wp](Za(e,(function(){var n,i=tp(null,e,o);g=i.getExtCfg(r,wb),v=g[Bp],e.storagePrefix&&lc(e.storagePrefix),Re((n=g)[yp])||(n[yp]?(rc=!1,oc=!1):(rc=cc(!0),oc=pc(!0))),l=g[Wp],function(){if(!c&&l){var e=["/browserLinkSignalR/","/__browserLink/"];t[wp](t[Fp]((function(t){if(l&&t.baseType===Dd[xp]){var r=t.baseData;if(r)for(var o=0;o<e[Kp];o++)if(r.target&&Xo(r.target,e[o])>=0)return!1}return!0}))),c=!0}}()})))}(x),i=new hb(t[_p]),n=new lb(t,g.overridePageViewDuration,t[_p],i),s=new gb(t[kp](),(function(e,r,o){return function(e,r,o){var n={PageName:e,PageUrl:r};t.trackMetric({name:"PageVisitTime",average:o,max:o,min:o,sampleCount:1},n)}(e,r,o)})),(r=new mb(t[kp](),"trackEvent")).action=function(e,r,o,n,i){n||(n={}),i||(i={}),n.duration=o[mp](),t.trackEvent({name:e,properties:n,measurements:i})},(o=new mb(t[kp](),"trackPageView")).action=function(e,r,o,n,i){Le(n)&&(n={}),n.duration=o[mp]();var s={name:e,uri:r,properties:n,measurements:i};t[Ap](s,n)},Wr()&&(E=Jr(),T=la(!0),t[wp](Za(g,(function(){(p=g.disableExceptionTracking)||b||g.autoExceptionInstrumented||(_(pp(E,"onerror",{ns:w,rsp:function(e,r,o,n,i,s){p||!0===e.rslt||t[Np](od[Up](r,o,n,i,s,e.evt))}},!1)),b=!0)}))),function(e,r){t[wp](Za(g,(function(){f=!0===g[Gp],b=b||g[Jp],f&&!h&&(_(pp(e,"onunhandledrejection",{ns:w,rsp:function(e,o){f&&!0!==e.rslt&&t[Np](od[Up](function(t){if(t&&t.reason){var e=t.reason;return!Me(e)&&Ne(e[mp])?e[mp]():er(e)}return t||""}(o),r?r[Rp]:"",0,0,o,e.evt))}},!1)),g[Jp]=h=!0)})))}(E,T),function(){var e=Jr(),r=la(!0);t[wp](Za(g,(function(){if(d=!0===g[Xp],e&&d&&!u&&Yr()){var o=Yr();Ne(o.pushState)&&Ne(o.replaceState)&&typeof Event!==Ln&&function(e,r,o){if(!u){var n=g.namePrefix||"";_(pp(r,"pushState",{ns:w,rsp:function(){d&&(yb(e,jd(n+"pushState")),yb(e,jd(n+"locationchange")))}},!0)),_(pp(r,"replaceState",{ns:w,rsp:function(){d&&(yb(e,jd(n+"replaceState")),yb(e,jd(n+"locationchange")))}},!0)),ju(e,n+"popstate",(function(){d&&yb(e,jd(n+"locationchange"))}),w),ju(e,n+"locationchange",(function(){if(y?(m=y,y=o&&o[Rp]||""):y=o&&o[Rp]||"",d){var e=function(){var e=null;if(t[_p]&&t[_p].getTraceCtx&&(e=t[_p].getTraceCtx(!1)),!e){var r=t[_p].getPlugin(gc);if(r){var o=r.plugin.context;o&&(e=$d(o.telemetryTrace))}}return e}();if(e){e.setTraceId(sd());var r="_unknown_";o&&o.pathname&&(r=o.pathname+(o.hash||"")),e.setName(Ac(t[kp](),r))}tn(function(e){t[Ep]({refUri:e,properties:{duration:0}})}.bind(t,m),t.autoRoutePVDelay)}}),w),u=!0}}(e,o,r)}})))}())}catch(e){throw t.setInitialized(!1),e}var E,T}},t._doTeardown=function(t,e){n&&n.teardown(t,e),Ru(window,null,null,w),C()},Pr(t,"_pageViewManager",{g:function(){return n}}),Pr(t,"_pageViewPerformanceManager",{g:function(){return i}}),Pr(t,"_pageVisitTimeManager",{g:function(){return s}}),Pr(t,"_evtNamespace",{g:function(){return"."+w}})})),_}return Vn(e,t),e.Version="3.2.0",e}(vp),Eb="Promise",Tb="rejected";function Ab(t,e){return $b(t,(function(t){return e?e({status:"fulfilled",rejected:!1,value:t}):t}),(function(t){return e?e({status:Tb,rejected:!0,reason:t}):t}))}function $b(t,e,r,o){var n=t;try{if(Be(t))(e||r)&&(n=t.then(e,r));else try{e&&(n=e(t))}catch(t){if(!r)throw t;n=r(t)}}finally{o&&function(t,e){var r=t;e&&(Be(t)?r=t.finally?t.finally(e):t.then((function(t){return e(),t}),(function(t){throw e(),t})):e())}(n,o)}return n}var Ob,Ib=!1,Db=["pending","resolving","resolved",Tb],jb="dispatchEvent";function Rb(t){var e;return t&&t.createEvent&&(e=t.createEvent("Event")),!!e&&e.initEvent}var Lb,Pb,Mb,Nb="unhandledRejection",zb=Nb.toLowerCase(),qb=[],Hb=0,Vb=10;function Ub(t){return Ne(t)?t.toString():er(t)}function Fb(t,e,r){var o,n,i=go(arguments,3),s=0,a=!1,l=[],c=Hb++,d=qb.length>0?qb[qb.length-1]:void 0,u=!1,p=null;function b(e,r){try{qb.push(c),u=!0,p&&p.cancel(),p=null;var n=t((function(t,n){l.push((function(){try{var i=2===s?e:r,a=Re(i)?o:Ne(i)?i(o):i;Be(a)?a.then(t,n):i?t(a):3===s?n(a):t(a)}catch(t){n(t)}})),a&&h()}),i);return n}finally{qb.pop()}}function f(){return Db[s]}function h(){if(l.length>0){var t=l.slice();l=[],u=!0,p&&p.cancel(),p=null,e(t)}}function g(t,e){return function(r){if(s===e){if(2===t&&Be(r))return s=1,void r.then(g(2,1),g(3,1));s=t,a=!0,o=r,h(),u||3!==t||p||(p=tn(v,Vb))}}}function v(){if(!u)if(u=!0,Zr())process.emit(Nb,o,n);else{var t=Jr()||Vr();!Lb&&(Lb=Nr(Oe(Ur,[Eb+"RejectionEvent"]).v)),function(t,e,r,o){var n=Br();!Ob&&(Ob=Nr(!!Oe(Rb,[n]).v));var i=Ob.v?n.createEvent("Event"):o?new Event(e):{};if(r&&r(i),Ob.v&&i.initEvent(e,!1,!0),i&&t[jb])t[jb](i);else{var s=t["on"+e];if(s)s(i);else{var a=Ur("console");a&&(a.error||a.log)(e,er(i))}}}(t,zb,(function(t){return Pr(t,"promise",{g:function(){return n}}),t.reason=o,t}),!!Lb.v)}}return Rr(n={then:b,catch:function(t){return b(void 0,t)},finally:function(t){var e=t,r=t;return Ne(t)&&(e=function(e){return t&&t(),e},r=function(e){throw t&&t(),e}),b(e,r)}},"state",{get:f}),Ib&&function(t,e,r,n){Cb=Cb||{toString:function(){return"[[PromiseResult]]"}},kb=kb||{toString:function(){return"[[PromiseIsHandled]]"}};var i={};i[xb=xb||{toString:function(){return"[[PromiseState]]"}}]={get:e},i[Cb]={get:function(){return je(o)}},i[kb]={get:function(){return u}},Lr(t,i)}(n,f),oo()&&(n[io(11)]="IPromise"),n.toString=function(){return"IPromise"+(Ib?"["+c+(Re(d)?"":":"+d)+"]":"")+" "+f()+(a?" - "+Ub(o):"")},function(){Ne(r)||or(Eb+": executor is not a function - "+Ub(r));var t=g(3,0);try{r.call(n,g(2,0),t)}catch(e){t(e)}}(),n}function Bb(t){return function(e){var r=go(arguments,1);return t((function(t,r){try{var o=[],n=1;co(e,(function(e,i){e&&(n++,$b(e,(function(e){o[i]=e,0==--n&&t(o)}),r))})),0==--n&&t(o)}catch(t){r(t)}}),r)}}function Wb(t,e){return Fb(Wb,function(t){var e=Ve(t)?t:0;return function(t){tn((function(){!function(t){bo(t,(function(t){try{t()}catch(t){}}))}(t)}),e)}}(e),t,e)}function Kb(t,e){!Pb&&(Pb=Nr(Oe(Ur,[Eb]).v||null));var r=Pb.v;if(!r)return Wb(t);Ne(t)||or(Eb+": executor is not a function - "+er(t));var o=0,n=new r((function(e,r){t((function(t){o=2,e(t)}),(function(t){o=3,r(t)}))}));return Rr(n,"state",{get:function(){return Db[o]}}),n}function Xb(t,e){return!Mb&&(Mb=Nr(Kb)),Mb.v.call(this,t,e)}var Gb=Bb(Xb);io(11);var Jb="featureOptIn",Qb="onCfgChangeReceive",Yb="nonOverrideConfigs",Zb="scheduleFetchTimeout";function tf(t,e,r,o){try{var n=r>o;n&&(t=null);var i=0==r?function(t,e,r,o,n,i,s){return No(t||{},$e[we](arguments))}({},t):t;return i&&e&&!n&&Qe(i,(function(t){var n=e[t];n&&(ze(i[t])&&ze(n)?i[t]=tf(i[t],n,++r,o):delete i[t])})),i}catch(t){}return t}var ef,rf="featureOptIn.",of=".mode",nf=".onCfg",sf=".offCfg";var af=void 0,lf=cr(((ef={syncMode:1,blkCdnCfg:af,customEvtName:af,cfgUrl:af,overrideSyncFn:af,overrideFetchFn:af})[Qb]=af,ef[Zb]=18e5,ef[Yb]={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},ef)),cf=function(t){function e(){var r,o,n,i,s,a,l,c,d,u,p,b,f,h,g,v,m=t.call(this)||this;m.priority=198,m.identifier="AppInsightsCfgSyncPlugin";var y=!1;return Dn(e,m,(function(t,e){function m(){o=null,n=null,i=null,s=null,l=null,c=null,f=null,a=null,u=null,p=null,d=null,g=null,v=null,b=null}function w(e,r){if(e){if(o=e,r&&!y)return x();if(l&&!y)return t.core.updateCfg(e),!0}return!1}function _(){try{var t=Vr();t&&Ru(t,null,null,i)}catch(t){}}function x(t){try{return v&&Ne(v)?v(o,t):function(t,e,r){var o,n,i=Vr();if(i&&i.CustomEvent)try{return o=i,n=function(t,e){var r=null,o={detail:e||null};if(Ne(CustomEvent))r=new CustomEvent(t,o);else{var n=Br();n&&n.createEvent&&(r=n.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,o)}return r}(t,{cfg:e||null,customDetails:r||null}),!!(o&&o.dispatchEvent&&n)&&(o.dispatchEvent(n),!0)}catch(t){}return!1}(n,o,t)}catch(t){}return!1}function C(t){try{return _(),t&&(n=t,function(){if(l){var t=Vr();if(t)try{ju(t,n,(function(t){var e=t&&t.detail;if(b&&e)b(e);else{var r=e&&e.cfg,o=r&&Do(r)&&A(r);o&&w(o)}}),i,!0)}catch(t){}}}()),!0}catch(t){}return!1}function k(t,e,r){var o=Vr(),n=o&&o.fetch||null;if(t&&n&&Ne(n))try{var i=new Request(t,{method:"GET"});Ab(fetch(i),(function(t){var o=t.value;t.rejected?T(e,400):o.ok?Ab(o.text(),(function(t){T(e,o.status,t.value,r)})):T(e,o.status,null,r)}))}catch(t){}}function S(t,e,r){try{var o=new XMLHttpRequest;o.open("GET",t),o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&T(e,o.status,o.responseText,r)},o.onerror=function(){T(e,400)},o.ontimeout=function(){T(e,400)},o.send()}catch(t){}}function E(e,r,o){try{if(e>=200&&e<400&&r){p=0;var n=da();if(n){var i=function(t,e){try{if(!t||!t.enabled)return null;if(!t[Jb])return t.config;var r=t[Jb],o=t.config||{};return Qe(r,(function(r){var n,i,s,a,l,c,d,u=function(t,e,r){var o;if(!e||!e.enabled)return null;var n=(e[Jb]||{})[t]||{mode:1},i=n.mode,s=n.onCfg,a=n.offCfg,l=(r||{})[t]||{mode:2},c=l.mode,d=l.onCfg,u=l.offCfg,p=!!l.blockCdnCfg,b=rf+t+nf,f=rf+t+sf,h=c,g=d,v=u;return p||(4===i||5===i?(h=4==i?3:2,g=s||d,v=a||u):2===i||2===c?(h=2,g=d||s,v=u||a):3===i?(h=3,g=d||s,v=u||a):1===i&&1===c&&(h=1)),(o={})[rf+t+of]=h,o[b]=g,o[f]=v,o}(r,t,e.config[Jb]);Le(u)||(Qe(u,(function(t,e){Fo(o,t,e)})),s=o,a=(i=u)[rf+(n=r)+of],l=i[rf+n+nf],c=i[rf+n+sf],d=null,3===a&&(d=l),2===a&&(d=c),d&&Qe(d,(function(t,e){Fo(s,t,e)})))})),o}catch(t){}return null}(n.parse(r),t.core),s=i&&Do(i)&&A(i);s&&w(s,o)}}else p++;p<3&&$()}catch(t){}}function T(t,e,r,o){try{t(e,r,o)}catch(t){}}function A(t,e){var r=null;try{t&&(r=tf(t,f,0,5))}catch(t){}return r}function $(){!a&&u&&(a=tn((function(){a=null,h(s,E,c)}),u)).unref()}function O(){a&&a.cancel(),a=null,p=0}m(),t.initialize=function(a,m,y,w){e.initialize(a,m,y,w),i=Du(Oa(t.identifier),m.evtNamespace&&m.evtNamespace()),function(e){var i=t.identifier,a=t.core;t._addHook(Za(e,(function(){var t=tp(null,e,a);r=t.getExtCfg(i,lf);var u=d;d=!!r.blkCdnCfg,Le(u)||u===d||(!d&&s?h&&h(s,E,c):O()),Le(l)&&(l=2===r.syncMode),Le(c)&&(c=1===r.syncMode);var p=r.customEvtName||"ai_cfgsync";n!==p&&(l?C(p):(_(),n=p)),Le(s)&&(s=r.cfgUrl),s||(o=e,c&&x())}))),v=r.overrideSyncFn,g=r.overrideFetchFn,b=r[Qb],f=r[Yb],u=r[Zb],h=function(){var t=g;return Le(t)&&(fa()?t=k:ha()&&(t=S)),t}(),p=0,s&&!d&&h&&h(s,E,c)}(a)},t.getCfg=function(){return o},t.pause=function(){y=!0,O()},t.resume=function(){y=!1,$()},t.setCfg=function(t){return w(t)},t.sync=function(t){return x(t)},t.updateEventListenerName=function(t){return C(t)},t._doTeardown=function(t,e){_(),O(),m()},t._getDbgPlgTargets=function(){return[c,l,n,d,f]},t.processTelemetry=function(e,r){t.processNext(e,r)}})),m}return Vn(e,t),e.__ieDyn=1,e}(vp);function df(t,e){Ru(t,null,null,e)}var uf="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",pf="",bf="&NoResponseBody=true",ff="POST",hf=function(){function t(){var e,r,o,n,i,s,a,l,c,d,u,p,b,f=0;Dn(t,this,(function(t,h){var g=!0;function v(t,e){hl(o,2,26,"Failed to send telemetry.",{message:t}),y(e,400,{})}function m(t){v("No endpoint url is provided for the batch",t)}function y(t,e,r,o){try{t&&t(e,r,o)}catch(t){}}function w(t,e){var r=Qr(),o=t[Ji];if(!o)return m(e),!0;o=t[Ji]+(p?bf:pf);var i=t[Bi],s=n?i:new Blob([i],{type:"text/plain;charset=UTF-8"});return r.sendBeacon(o,s)}function _(t,e,r){var s=t[Bi];try{if(s)if(w(t,e))y(e,200,{},pf);else{var l=i&&i.beaconOnRetry;l&&Ne(l)?l(t,e,w):(a&&a[Qi](t,e,!0),hl(o,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(t){n&&gl(o,"Failed to send telemetry using sendBeacon API. Ex:"+er(t)),y(e,n?0:400,{},pf)}}function x(t,r,o){var s,a,l,c=t[Yi]||{};!o&&e&&(s=Xb((function(t,e){a=t,l=e}))),n&&o&&t.disableXhrSync&&(o=!1);var d=t[Ji];if(!d)return m(r),void(a&&a(!1));var u=function(t,e,r,o,n,i){function s(t,e,r){try{t[e]=r}catch(t){}}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(t,e,!n),r&&s(a,Ws,r),!n&&i&&s(a,"timeout",i),a}(ff,d,g,!0,o,t[Zi]);function p(e){var o=i&&i.xhrOnComplete;if(o&&Ne(o))o(e,r,t);else{var s=Vs(e);y(r,e[Hi],Xs(e,n),s)}}return n||u[ts]("Content-type","application/json"),bo(lr(c),(function(t){u[ts](t,c[t])})),u.onreadystatechange=function(){n||(p(u),4===u.readyState&&a&&a(!0))},u.onload=function(){n&&p(u)},u.onerror=function(t){y(r,n?u[Hi]:400,Xs(u,n),n?pf:Fs(u)),l&&l(t)},u.ontimeout=function(){y(r,n?u[Hi]:500,Xs(u,n),n?pf:Fs(u)),a&&a(!1)},u.send(t[Bi]),s}function C(t,r,o){var s,a,l,c,d=t[Ji],u=t[Bi],h=n?u:new Blob([u],{type:"application/json"}),v=new Headers,w=u[Wn],_=!1,x=!1,C=t[Yi]||{},k=((s={method:ff,body:h})[uf]=!0,s);t.headers&&lr(t.headers)[Wn]>0&&(bo(lr(C),(function(t){v.append(t,C[t])})),k[Yi]=v),g&&n&&(k.credentials="include"),o&&(k.keepalive=!0,f+=w,n?2===t._sendReason&&(_=!0,p&&(d+=bf)):_=!0);var S=new Request(d,k);try{S[uf]=!0}catch(t){}if(!o&&e&&(a=Xb((function(t,e){l=t,c=e}))),!d)return m(r),void(l&&l(!1));function E(t){y(r,n?0:400,{},n?pf:t)}function T(t,e,o){var n=t[Hi],s=i.fetchOnComplete;s&&Ne(s)?s(t,r,o||pf,e):y(r,n,{},o||pf)}try{Ab(fetch(n?d:S,n?k:null),(function(e){if(o&&(f-=w,w=0),!x)if(x=!0,e.rejected)E(e.reason&&e.reason[Ei]),c&&c(e.reason);else{var r=e.value;try{n||r.ok?n&&!r.body?(T(r,null,pf),l&&l(!0)):Ab(r.text(),(function(e){T(r,t,e.value),l&&l(!0)})):(E(r.statusText),l&&l(!1))}catch(t){E(er(t)),c&&c(t)}}}))}catch(t){x||(E(er(t)),c&&c(t))}return _&&!x&&(x=!0,y(r,200,{}),l&&l(!0)),n&&!x&&t[Zi]>0&&b&&b.set((function(){x||(x=!0,y(r,500,{}),l&&l(!0))}),t[Zi]),a}function k(t,e,r){var s=Jr(),a=new XDomainRequest,l=t[Bi];a.onload=function(){var r=Vs(a),o=i&&i.xdrOnComplete;o&&Ne(o)?o(a,e,t):y(e,200,{},r)},a.onerror=function(){y(e,400,{},n?pf:Us(a))},a.ontimeout=function(){y(e,500,{})},a.onprogress=function(){};var c=s&&s.location&&s.location[ji]||"",d=t[Ji];if(d){if(!n&&0!==d.lastIndexOf(c,0)){var u="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";return hl(o,2,40,". "+u),void v(u,e)}var p=n?d:d[Mi](/^(https?:)/,"");a.open(ff,p),t[Zi]&&(a[Zi]=t[Zi]),a.send(l),n&&r?b&&b.set((function(){a.send(l)}),0):a.send(l)}else m(e)}function S(){f=0,r=!1,e=!1,o=null,n=null,i=null,s=null,a=null,l=!1,c=!1,d=!1,u=!1,p=!1,b=null}S(),t[ii]=function(e,n){o=n,r&&hl(o,1,28,"Sender is already initialized"),t.SetConfig(e),r=!0},t._getDbgPlgTargets=function(){return[r,n,s,e]},t.SetConfig=function(t){try{if(i=t.senderOnCompleteCallBack||{},s=!!t.disableCredentials,n=!!t.isOneDs,e=!!t.enableSendPromise,l=!!t.disableXhr,c=!!t.disableBeacon,d=!!t.disableBeaconSync,b=t.timeWrapper,p=!!t.addNoResponse,u=!!t.disableFetchKeepAlive,a={sendPOST:x},n||(g=!1),s){var r=la();r&&r.protocol&&"file:"===r.protocol[Fn]()&&(g=!1)}return!0}catch(t){}return!1},t.getSyncFetchPayload=function(){return f},t.getSenderInst=function(t,e){return t&&t[Wn]?function(t,e){for(var r,o=0,n=null,i=0;null==n&&i<t[Wn];)o=t[i],l||1!==o?2!==o||!fa(e)||e&&u?3!==o||!ba()||(e?d:c)||(n=_):n=C:(null===ia&&(ia=typeof XDomainRequest!==Ln)&&ha()&&(ia=ia&&!aa(Ur(ea),"withCredentials")),ia?n=k:ha()&&(n=x)),i++;return n?((r={_transport:o,_isSync:e})[Qi]=n,r):null}(t,e):null},t.getFallbackInst=function(){return a},t[$i]=function(t,e){S()}}))}return t.__ieDyn=1,t}();function gf(t,e){if(t&&t[yi])return t[yi](e)}function vf(t,e,r){var o;return r||(o=Xb((function(t){r=t}))),t&&Ho(t)>0?Ab(gf(t[0],e),(function(){vf(go(t,1),e,r)})):r(),o}function mf(t,e){try{if(t&&""!==t){var r=da().parse(t);if(r&&r[Gi]&&r[Gi]>=r.itemsAccepted&&r.itemsReceived-r.itemsAccepted===r.errors[Wn])return r}}catch(r){hl(e,1,43,"Cannot parse the response. "+(r[bi]||er(r)),{response:t})}return null}function yf(t){var e="ai."+t+".";return function(t){return e+t}}var wf,_f=yf("application"),xf=yf("device"),Cf=yf("location"),kf=yf("operation"),Sf=yf("session"),Ef=yf("user"),Tf=yf("cloud"),Af=yf("internal"),$f=function(t){function e(){return t.call(this)||this}return Vn(e,t),e}((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:Cf("ip"),locationCountry:Cf("country"),locationProvince:Cf("province"),locationCity:Cf("city"),operationId:kf("id"),operationName:kf("name"),operationParentId:kf("parentId"),operationRootId:kf("rootId"),operationSyntheticSource:kf("syntheticSource"),operationCorrelationVector:kf("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 t=this;wf&&Qe(wf,(function(e,r){t[e]=r}))})),Of="user",If="device",Df="trace",jf=new $f,Rf=function(t,e,r){var o=this,n=this;n.ver=1,n.sampleRate=100,n.tags={},n[El]=Ac(t,r)||Sc,n.data=e,n.time=Ds(new Date),n.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===o.sampleRate?4:1},tags:1,data:1}},Lf=function(t,e){this.aiDataContract={baseType:1,baseData:1},this.baseType=t,this.baseData=e},Pf="duration",Mf="tags",Nf="deviceType",zf="data",qf="name",Hf="traceID",Vf="length",Uf="stringify",Ff="measurements",Bf="dataType",Wf="envelopeType",Kf="toString",Xf="_get",Gf="enqueue",Jf="count",Qf="eventsLimitInMem",Yf="push",Zf="item",th="emitLineDelimitedJson",eh="clear",rh="createNew",oh="markAsSent",nh="clearSent",ih="bufferOverride",sh="BUFFER_KEY",ah="SENT_BUFFER_KEY",lh="concat",ch="MAX_BUFFER_SIZE",dh="triggerSend",uh="diagLog",ph="initialize",bh="_sender",fh="customHeaders",hh="maxBatchSizeInBytes",gh="onunloadDisableBeacon",vh="isBeaconApiDisabled",mh="alwaysUseXhrOverride",yh="disableXhr",wh="enableSessionStorageBuffer",_h="_buffer",xh="onunloadDisableFetch",Ch="disableSendBeaconSplit",kh="instrumentationKey",Sh="enableSendPromise",Eh="getSenderInst",Th="unloadTransports",Ah="convertUndefined",$h="maxBatchInterval",Oh="serialize",Ih="_onError",Dh="_onPartialSuccess",jh="_onSuccess",Rh="itemsReceived",Lh="itemsAccepted",Ph="oriPayload",Mh="baseType",Nh="sampleRate",zh="eventsSendRequest",qh="getSamplingScore",Hh="baseType",Vh="baseData",Uh="properties",Fh="true";function Bh(t,e,r){return Rs(t,e,r,We)}function Wh(t,e,r){Le(t)||Qe(t,(function(t,o){Ve(o)?r[t]=o:Me(o)?e[t]=o:ca()&&(e[t]=da()[Uf](o))}))}function Kh(t,e){Le(t)||Qe(t,(function(r,o){t[r]=o||e}))}function Xh(t,e,r,o){var n=new Rf(t,o,e);Bh(n,"sampleRate",r[wc]),(r[Vh]||{}).startTime&&(n.time=Ds(r[Vh].startTime)),n.iKey=r.iKey;var i=r.iKey.replace(/-/g,"");return n[qf]=n[qf].replace("{0}",i),function(t,e,r){var o=r[Mf]=r[Mf]||{},n=e.ext=e.ext||{},i=e[Mf]=e[Mf]||[],s=n.user;s&&(Bh(o,jf.userAuthUserId,s.authId),Bh(o,jf.userId,s.id||s.localId));var a=n.app;a&&Bh(o,jf.sessionId,a.sesId);var l=n.device;l&&(Bh(o,jf.deviceId,l.id||l.localId),Bh(o,jf[Nf],l.deviceClass),Bh(o,jf.deviceIp,l.ip),Bh(o,jf.deviceModel,l.model),Bh(o,jf[Nf],l[Nf]));var c=e.ext.web;if(c){Bh(o,jf.deviceLanguage,c.browserLang),Bh(o,jf.deviceBrowserVersion,c.browserVer),Bh(o,jf.deviceBrowser,c.browser);var d=r[zf]=r[zf]||{},u=d[Vh]=d[Vh]||{},p=u[Uh]=u[Uh]||{};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,jf.deviceOS,b[qf]),Bh(o,jf.deviceOSVersion,b.osVer));var f=n.trace;f&&(Bh(o,jf.operationParentId,f.parentID),Bh(o,jf.operationName,Ac(t,f[qf])),Bh(o,jf.operationId,f[Hf]));for(var h={},g=i[Vf]-1;g>=0;g--)Qe(i[g],(function(t,e){h[t]=e})),i.splice(g,1);Qe(i,(function(t,e){h[t]=e}));var v=qn(qn({},o),h);v[jf.internalSdkVersion]||(v[jf.internalSdkVersion]=Ac(t,"javascript:".concat(Jh.Version),64)),r[Mf]=zs(v)}(t,r,n),r[Mf]=r[Mf]||[],zs(n)}function Gh(t,e){Le(e[Vh])&&hl(t,1,46,"telemetryItem.baseData cannot be null.")}var Jh={Version:"3.2.0"};function Qh(t,e,r){Gh(t,e);var o={},n={};e[Hh]!==Pc[Bf]&&(o.baseTypeSource=e[Hh]),e[Hh]===Pc[Bf]?(o=e[Vh][Uh]||{},n=e[Vh][Ff]||{}):e[Vh]&&Wh(e[Vh],o,n),Wh(e[zf],o,n),Le(r)||Kh(o,r);var i=e[Vh][qf],s=new Pc(t,i,o,n),a=new Lf(Pc[Bf],s);return Xh(t,Pc[Wf],e,a)}var Yh,Zh,tg=function(){function t(e,r){var o=[],n=!1,i=r.maxRetryCnt;this[Xf]=function(){return o},this._set=function(t){return o=t},Dn(t,this,(function(t){t[Gf]=function(s){t[Jf]()>=r[Qf]?n||(hl(e,2,105,"Maximum in-memory buffer size reached: "+t[Jf](),!0),n=!0):(s.cnt=s.cnt||0,!Le(i)&&s.cnt>i||o[Yf](s))},t[Jf]=function(){return o[Vf]},t.size=function(){for(var t=o[Vf],e=0;e<o[Vf];e++)t+=o[e].item[Vf];return r[th]||(t+=2),t},t[eh]=function(){o=[],n=!1},t.getItems=function(){return o.slice(0)},t.batchPayloads=function(t){if(t&&t[Vf]>0){var e=[];return bo(t,(function(t){e[Yf](t[Zf])})),r[th]?e.join("\n"):"["+e.join(",")+"]"}return null},t[rh]=function(t,r,n){var i=o.slice(0);t=t||e,r=r||{};var s=n?new og(t,r):new eg(t,r);return bo(i,(function(t){s[Gf](t)})),s}}))}return t.__ieDyn=1,t}(),eg=function(t){function e(r,o){var n=t.call(this,r,o)||this;return Dn(e,n,(function(t,e){t[oh]=function(t){e[eh]()},t[nh]=function(t){}})),n}return Vn(e,t),e.__ieDyn=1,e}(tg),rg=["AI_buffer","AI_sentBuffer"],og=function(t){function e(r,o){var n=t.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,d=o.maxRetryCnt;return Dn(e,n,(function(t,o){var n=h(e[sh]),a=h(e[ah]),u=function(){var t=[];try{return bo(rg,(function(e){var r=m(e);if(t=t[lh](r),s){var o=m(s+"_"+e);t=t[lh](o)}})),t}catch(t){hl(r,2,41,"Transfer events from previous buffers: "+js(t)+". previous Buffer items can not be removed",{exception:er(t)})}return[]}(),p=a[lh](u),b=t._set(n[lh](p));function f(t,e){var r=[],o=[];return bo(t,(function(t){o[Yf](t[Zf])})),bo(e,(function(t){Ne(t)||-1!==fo(o,t[Zf])||r[Yf](t)})),r}function h(t){return g(s?s+"_"+t:t)}function g(t){try{var e=l(r,t);if(e){var o=da().parse(e);if(Me(o)&&(o=da().parse(o)),o&&qe(o))return o}}catch(e){hl(r,1,42," storage key: "+t+", "+js(e),{exception:er(e)})}return[]}function v(t,e){var o=t;try{o=s?s+"_"+o:o;var n=JSON[Uf](e);c(r,o,n)}catch(t){c(r,o,JSON[Uf]([])),hl(r,2,41," storage key: "+o+", "+js(t)+". Buffer cleared",{exception:er(t)})}}function m(t){try{var e=g(t),o=[];return bo(e,(function(t){var e={item:t,cnt:0};o[Yf](e)})),hc(r,t),o}catch(t){}return[]}b[Vf]>e[ch]&&(b[Vf]=e[ch]),v(e[ah],[]),v(e[sh],b),t[Gf]=function(n){t[Jf]()>=e[ch]?i||(hl(r,2,67,"Maximum buffer size reached: "+t[Jf](),!0),i=!0):(n.cnt=n.cnt||0,!Le(d)&&n.cnt>d||(o[Gf](n),v(e.BUFFER_KEY,t[Xf]())))},t[eh]=function(){o[eh](),v(e.BUFFER_KEY,t[Xf]()),v(e[ah],[]),i=!1},t[oh]=function(o){v(e[sh],t._set(f(o,t[Xf]())));var n=h(e[ah]);n instanceof Array&&o instanceof Array&&((n=n[lh](o))[Vf]>e[ch]&&(hl(r,1,67,"Sent buffer reached its maximum size: "+n[Vf],!0),n[Vf]=e[ch]),v(e[ah],n))},t[nh]=function(t){var r=h(e[ah]);r=f(t,r),v(e[ah],r)},t[rh]=function(o,n,i){i=!!i;var s=t[Xf]().slice(0),a=h(e[ah]).slice(0);o=o||r,n=n||{},t[eh]();var l=i?new e(o,n):new eg(o,n);return bo(s,(function(t){l[Gf](t)})),i&&l[oh](a),l}})),n}var r;return Vn(e,t),r=e,e.VERSION="_1",e.BUFFER_KEY="AI_buffer"+r.VERSION,e.SENT_BUFFER_KEY="AI_sentBuffer"+r.VERSION,e.MAX_BUFFER_SIZE=2e3,e}(tg),ng=function(){function t(e){Dn(t,this,(function(t){function r(t,i){var s="__aiCircularRefCheck",a={};if(!t)return hl(e,1,48,"cannot serialize object because it is null or undefined",{name:i},!0),a;if(t[s])return hl(e,2,50,"Circular reference detected while serializing object",{name:i},!0),a;if(!t.aiDataContract){if("measurements"===i)a=n(t,"number",i);else if("properties"===i)a=n(t,"string",i);else if("tags"===i)a=n(t,"string",i);else if(qe(t))a=o(t,i);else{hl(e,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:i},!0);try{da()[Uf](t),a=t}catch(t){hl(e,1,48,t&&Ne(t[Kf])?t[Kf]():"Error serializing object",null,!0)}}return a}return t[s]=!0,Qe(t.aiDataContract,(function(n,s){var l=Ne(s)?1&s():1&s,c=Ne(s)?4&s():4&s,d=2&s,u=void 0!==t[n],p=ze(t[n])&&null!==t[n];if(!l||u||d){if(!c){var b;void 0!==(b=p?d?o(t[n],n):r(t[n],n):t[n])&&(a[n]=b)}}else hl(e,1,24,"Missing required field specification. The field is required but not present on source",{field:n,name:i})})),delete t[s],a}function o(t,o){var n;if(t)if(qe(t)){n=[];for(var i=0;i<t[Vf];i++){var s=r(t[i],o+"["+i+"]");n[Yf](s)}}else hl(e,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(t,r,o){var n;return t&&(n={},Qe(t,(function(t,i){if("string"===r)void 0===i?n[t]="undefined":null===i?n[t]="null":i[Kf]?n[t]=i[Kf]():n[t]="invalid field: toString() is not defined.";else if("number"===r)if(void 0===i)n[t]="undefined";else if(null===i)n[t]="null";else{var s=parseFloat(i);n[t]=s}else n[t]="invalid field: "+o+" is of unknown type.",hl(e,1,n[t],null,!0)}))),n}t[Oh]=function(t){var o=r(t,"root");try{return da()[Uf](o)}catch(t){hl(e,1,48,t&&Ne(t[Kf])?t[Kf]():"Error serializing object",null,!0)}}}))}return t.__ieDyn=1,t}(),ig=function(){function t(){}return t.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/t.INT_MAX_VALUE*100},t.prototype.getHashCode=function(t){if(""===t)return 0;for(;t[Vf]<8;)t=t[lh](t);for(var e=5381,r=0;r<t[Vf];++r)e=(e<<5)+e+t.charCodeAt(r),e|=0;return Math.abs(e)},t.INT_MAX_VALUE=2147483647,t}(),sg=function(){var t=new ig,e=new $f;this[qh]=function(r){return r[Mf]&&r[Mf][e.userId]?t.getHashCodeScore(r[Mf][e.userId]):r.ext&&r.ext.user&&r.ext.user.id?t.getHashCodeScore(r.ext.user.id):r[Mf]&&r[Mf][e.operationId]?t.getHashCodeScore(r[Mf][e.operationId]):r.ext&&r.ext.telemetryTrace&&r.ext.telemetryTrace[Hf]?t.getHashCodeScore(r.ext.telemetryTrace[Hf]):100*Math.random()}},ag=function(){function t(t,e){this.INT_MAX_VALUE=2147483647;var r=e||pl(null);(t>100||t<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:t},!0),t=100),this[Nh]=t,this.samplingScoreGenerator=new sg}return t.prototype.isSampledIn=function(t){var e=this[Nh];return null==e||e>=100||t.baseType===zc[Bf]||this.samplingScoreGenerator[qh](t)<e},t}(),lg=void 0;function cg(t){try{return t.responseText}catch(t){}return null}var dg=cr(((Yh={endpointUrl:Md(We,Cc+kc)})[th]=Nd(),Yh[$h]=15e3,Yh[hh]=102400,Yh.disableTelemetry=Nd(),Yh[wh]=Nd(!0),Yh.isRetryDisabled=Nd(),Yh[vh]=Nd(!0),Yh[Ch]=Nd(!0),Yh[yh]=Nd(),Yh[xh]=Nd(),Yh[gh]=Nd(),Yh[kh]=lg,Yh.namePrefix=lg,Yh.samplingPercentage=Md((function(t){return!isNaN(t)&&t>0&&t<=100}),100),Yh[fh]=lg,Yh[Ah]=lg,Yh[Qf]=1e4,Yh[ih]=!1,Yh.httpXHROverride={isVal:function(t){return t&&t.sendPOST},v:lg},Yh[mh]=Nd(),Yh.transports=lg,Yh.retryCodes=lg,Yh.maxRetryCnt={isVal:Ve,v:10},Yh)),ug=((Zh={})[Pc.dataType]=Qh,Zh[Mc.dataType]=function(t,e,r){Gh(t,e);var o=e[Vh].message,n=e[Vh].severityLevel,i=e[Vh][Uh]||{},s=e[Vh][Ff]||{};Wh(e[zf],i,s),Le(r)||Kh(i,r);var a=new Mc(t,o,n,i,s),l=new Lf(Mc[Bf],a);return Xh(t,Mc[Wf],e,l)},Zh[Vc.dataType]=function(t,e,r){var o;Gh(t,e);var n=e[Vh];Le(n)||Le(n[Uh])||Le(n[Uh][Pf])?Le(e[zf])||Le(e[zf][Pf])||(o=e[zf][Pf],delete e[zf][Pf]):(o=n[Uh][Pf],delete n[Uh][Pf]);var i,s=e[Vh];((e.ext||{}).trace||{})[Hf]&&(i=e.ext.trace[Hf]);var a=s.id||i,l=s[qf],c=s.uri,d=s[Uh]||{},u=s[Ff]||{};Le(s.refUri)||(d.refUri=s.refUri),Le(s.pageType)||(d.pageType=s.pageType),Le(s.isLoggedIn)||(d.isLoggedIn=s.isLoggedIn[Kf]()),Le(s[Uh])||Qe(s[Uh],(function(t,e){d[t]=e})),Wh(e[zf],d,u),Le(r)||Kh(d,r);var p=new Vc(t,l,c,o,d,u,a),b=new Lf(Vc[Bf],p);return Xh(t,Vc[Wf],e,b)},Zh[Uc.dataType]=function(t,e,r){Gh(t,e);var o=e[Vh],n=o[qf],i=o.uri||o.url,s=o[Uh]||{},a=o[Ff]||{};Wh(e[zf],s,a),Le(r)||Kh(s,r);var l=new Uc(t,n,i,void 0,s,a,o),c=new Lf(Uc[Bf],l);return Xh(t,Uc[Wf],e,c)},Zh[od.dataType]=function(t,e,r){Gh(t,e);var o=e[Vh][Ff]||{},n=e[Vh][Uh]||{};Wh(e[zf],n,o),Le(r)||Kh(n,r);var i=e[Vh],s=od.CreateFromInterface(t,i,n,o),a=new Lf(od[Bf],s);return Xh(t,od[Wf],e,a)},Zh[zc.dataType]=function(t,e,r){Gh(t,e);var o=e[Vh],n=o[Uh]||{},i=o[Ff]||{};Wh(e[zf],n,i),Le(r)||Kh(n,r);var s=new zc(t,o[qf],o.average,o.sampleCount,o.min,o.max,o.stdDev,n,i),a=new Lf(zc[Bf],s);return Xh(t,zc[Wf],e,a)},Zh[Dd.dataType]=function(t,e,r){Gh(t,e);var o=e[Vh][Ff]||{},n=e[Vh][Uh]||{};Wh(e[zf],n,o),Le(r)||Kh(n,r);var i=e[Vh];if(Le(i))return gl(t,"Invalid input for dependency data"),null;var s=i[Uh]&&i[Uh][xc]?i[Uh][xc]:"GET",a=new Dd(t,i.id,i.target,i[qf],i[Pf],i.success,i.responseCode,s,i.type,i.correlationContext,n,o),l=new Lf(Dd[Bf],a);return Xh(t,Dd[Wf],e,l)},Zh),pg=function(t){function e(){var r,o,n,i,s,a,l,c=t.call(this)||this;c.priority=1001,c.identifier=vc;var d,u,p,b,f,h,g,v,m,y,w,_,x,C,k,S,E,T,A,$,O,I,D,j,R,L,P,M=0;return Dn(e,c,(function(t,N){function z(e,o){var n=cg(e);if(!e||n+""!="200"&&""!==n){var i=mf(n);i&&i[Rh]&&i[Rh]>i[Lh]&&!C?t[Dh](o,i):t[Ih](o,Us(e))}else r=0,t[jh](o,0)}function q(t,e,r){4===t.readyState&&Q(t.status,e,t.responseURL,r,Fs(t),cg(t)||t.response)}function H(t){try{if(t){var e=t[Ph];return e&&e[Vf]?e:null}}catch(t){}return null}function V(e,r){return!(w||(e?e.baseData&&!e[Mh]?(r&&hl(r,1,70,"Cannot send telemetry without baseData and baseType"),1):(e[Mh]||(e[Mh]="EventData"),t[bh]?(o=e,t._sample.isSampledIn(o)?(e[wc]=t._sample[Nh],0):(r&&hl(r,2,33,"Telemetry item was sampled out and not sent",{SampleRate:t._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 U(t,r){var o=t.iKey||_,n=e.constructEnvelope(t,o,r,x);if(n){var i=!1;if(t[Mf]&&t[Mf][_c]&&(bo(t[Mf][_c],(function(t){try{t&&!1===t(n)&&(i=!0,gl(r,"Telemetry processor check returns false"))}catch(t){hl(r,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+js(t),{exception:er(t)},!0)}})),delete t[Mf][_c]),!i)return n}else hl(r,1,47,"Unable to create an AppInsights envelope")}function F(e){var r="",o=t[uh]();try{var n=V(e,o),i=null;n&&(i=U(e,o)),i&&(r=s[Oh](i))}catch(t){}return r}function B(t){var e="";return t&&t[Vf]&&(e="["+t.join(",")+"]"),e}function W(t){var e,r=G();return(e={urlString:b})[zf]=t,e.headers=r,e}function K(e,r,o,n){void 0===n&&(n=!0);var i=X(r),s=e&&e.sendPOST;return s&&i?(n&&t._buffer[oh](r),s(i,(function(e,o,n){return function(e,r,o,n){200===r&&e?t._onSuccess(e,e[Vf]):n&&t[Ih](e,n)}(r,e,0,n)}),!o)):null}function X(e){var r;if(qe(e)&&e[Vf]>0){var o=t[_h].batchPayloads(e),n=G();return(r={})[zf]=o,r.urlString=b,r.headers=n,r.disableXhrSync=O,r.disableFetchKeepAlive=!I,r[Ph]=e,r}return null}function G(){try{var t=l||{};return kd(b)&&(t[gd[6]]=gd[7]),t}catch(t){}return null}function J(e){var r=e?e[Vf]:0;return t[_h].size()+r>h&&(u&&!u.isOnline()||t[dh](!0,null,10),!0)}function Q(e,o,n,i,s,a){var l=null;if(t._appId||(l=mf(a))&&l.appId&&(t._appId=l.appId),(e<200||e>=300)&&0!==e){if((301===e||307===e||308===e)&&!Y(n))return void t[Ih](o,s);!C&&it(e)?(rt(o),hl(t[uh](),2,40,". Response code "+e+". Will retry to send "+o[Vf]+" items.")):t[Ih](o,s)}else u&&!u.isOnline()?C||(rt(o,10),hl(t[uh](),2,40,". Offline - Response Code: ".concat(e,". Offline status: ").concat(!u.isOnline(),". Will retry to send ").concat(o.length," items."))):(Y(n),206===e?(l||(l=mf(a)),l&&!C?t[Dh](o,l):t[Ih](o,s)):(r=0,t[jh](o,i)))}function Y(t){return!(a>=10||Le(t)||""===t||t===b||(b=t,++a,0))}function Z(t,e){if(!d)return K(L&&L[Eh]([3],!0),t,e);d(t,!1)}function tt(t){try{if(t&&t[Vf])return Me(t[0])}catch(t){}return null}function et(e,r){var o=null;if(qe(e)){for(var n=e[Vf],i=0;i<e[Vf];i++)n+=e[i].item[Vf];return L.getSyncFetchPayload()+n<=65e3?o=2:ba()?o=3:(o=1,hl(t[uh](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender.")),K(L&&L[Eh]([o],!0),e,r)}return null}function rt(e,n){if(void 0===n&&(n=1),e&&0!==e[Vf]){var i=t[_h];i[nh](e),r++;for(var s=0,a=e;s<a.length;s++){var l=a[s];l.cnt=l.cnt||0,l.cnt++,i[Gf](l)}!function(t){var e;if(r<=1)e=10;else{var n=(Math.pow(2,r)-1)/2,i=Math.floor(Math.random()*n*10)+1;i*=t,e=Math.max(Math.min(i,3600),10)}var s=So()+1e3*e;o=s}(n),ot()}}function ot(){if(!i&&!n){var e=o?Math.max(0,o-So()):0,r=Math.max(k,e);i=tn((function(){i=null,t[dh](!0,null,1)}),r)}}function nt(){i&&i.cancel(),i=null,o=null}function it(t){return Le(P)?401===t||408===t||429===t||500===t||502===t||503===t||504===t:P[Vf]&&P.indexOf(t)>-1}function st(){t[bh]=null,t[_h]=null,t._appId=null,t._sample=null,l={},u=null,r=0,o=null,n=!1,i=null,s=null,a=0,M=0,d=null,p=null,b=null,f=null,h=0,g=!1,y=null,w=!1,_=null,x=lg,C=!1,S=null,T=lg,O=!1,I=!1,R=!1,D=null,j=null,L=null,Pr(t,"_senderConfig",{g:function(){return qs({},dg)}})}st(),t.pause=function(){nt(),n=!0},t.resume=function(){n&&(n=!1,o=null,J(),ot())},t.flush=function(e,r,o){if(void 0===e&&(e=!0),!n){nt();try{return t[dh](e,null,o||1)}catch(e){hl(t[uh](),1,22,"flush failed, telemetry will not be collected: "+js(e),{exception:er(e)})}}},t.onunloadFlush=function(){if(!n)if(g||$)try{return t[dh](!0,Z,2)}catch(e){hl(t[uh](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+js(e),{exception:er(e)})}else t.flush(!1)},t.addHeader=function(t,e){l[t]=e},t[ph]=function(e,n,i,M){t.isInitialized()&&hl(t[uh](),1,28,"Sender is already initialized"),N[ph](e,n,i,M);var V=t.identifier;s=new ng(n.logger),r=0,o=null,t[bh]=null,a=0;var U=t[uh]();p=Du(Oa("Sender"),n.evtNamespace&&n.evtNamespace()),u=function(t){var e=Br(),r=Qr(),o=!1,n=[],i=1;!r||Le(r.onLine)||r.onLine||(i=2);var s=0,a=u(),l=Du(Oa("OfflineListener"),t);try{if(d(Jr())&&(o=!0),e){var c=e.body||e;c.ononline&&d(c)&&(o=!0)}}catch(t){o=!1}function d(t){var e=!1;return t&&(e=ju(t,"online",b,l))&&ju(t,"offline",f,l),e}function u(){return 2!==s&&2!==i}function p(){var t=u();a!==t&&(a=t,bo(n,(function(t){var e={isOnline:a,rState:i,uState:s};try{t(e)}catch(t){}})))}function b(){i=1,p()}function f(){i=2,p()}return{isOnline:function(){return a},isListening:function(){return o},unload:function(){var t=Jr();if(t&&o){if(df(t,l),e){var r=e.body||e;Re(r.ononline)||df(r,l)}o=!1}},addListener:function(t){return n[kl](t),{rm:function(){var e=n.indexOf(t);return e>-1?n.splice(e,1):void 0}}},setOnlineState:function(t){s=t,p()}}}(p),t._addHook(Za(e,(function(e){var r=e.cfg;r.storagePrefix&&lc(r.storagePrefix);var o=tp(null,r,n).getExtCfg(V,dg);Pr(t,"_senderConfig",{g:function(){return o}}),f!==o.endpointUrl&&(b=f=o.endpointUrl),y&&y!==o[fh]&&bo(y,(function(t){delete l[t.header]})),h=o[hh],g=(!1===o[gh]||!1===o[vh])&&ba(),v=!1===o[gh]&&ba(),m=!1===o[vh]&&ba(),$=o[mh],O=!!o[yh],P=o.retryCodes;var i=o[ih],s=!!o[wh]&&(!!i||pc()),a=o.namePrefix,u=s!==S||s&&T!==a||s&&E!==i;if(t[_h]){if(u)try{t._buffer=t._buffer[rh](U,o,s)}catch(e){hl(t[uh](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+js(e),{exception:er(e)})}J()}else t[_h]=s?new og(U,o):new eg(U,o);T=a,S=s,E=i,I=!o[xh]&&fa(!0),R=!!o[Ch],t._sample=new ag(o.samplingPercentage,U),function(t,e){var r=e.disableInstrumentationKeyValidation;return!(Le(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(t)}(_=o[kh],r)||hl(U,1,100,"Invalid Instrumentation key "+_),y=o[fh],!kd(b)&&y&&y[Vf]>0?bo(y,(function(t){c.addHeader(t.header,t.value)})):y=null,A=o[Sh];var p=function(){var e;try{var r={xdrOnComplete:function(t,e,r){var o=H(r);if(o)return z(t,o)},fetchOnComplete:function(t,e,r,o){var n=H(o);if(n)return Q(t.status,n,t.url,n[Vf],t.statusText,r||"")},xhrOnComplete:function(t,e,r){var o=H(r);if(o)return q(t,o,o[Vf])},beaconOnRetry:function(e,r,o){return function(e,r,o){var n=e&&e[Ph];if(R)j&&j(n,!0),hl(t[uh](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var i=[],s=0;s<n[Vf];s++){var a=n[s],l=[a];o(X(l),r)?t._onSuccess(l,l[Vf]):i[Yf](a)}i[Vf]>0&&(j&&j(i,!0),hl(t[uh](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}(e,r,o)}};return(e={})[Sh]=A,e.isOneDs=!1,e.disableCredentials=!1,e[yh]=O,e.disableBeacon=!m,e.disableBeaconSync=!v,e.senderOnCompleteCallBack=r,e}catch(t){}return null}();L?L.SetConfig(p):(L=new hf)[ph](p,U);var M=o.httpXHROverride,N=null,F=null,B=Bs([3,1,2],o.transports);N=L&&L[Eh](B,!1);var W=L&&L.getFallbackInst();D=function(t,e){return K(W,t,e)},j=function(t,e){return K(W,t,e,!1)},N=$?M:N||M||W,t[bh]=function(t,e){return K(N,t,e)},I&&(d=et);var G=Bs([3,1],o[Th]);I||(G=G.filter((function(t){return 2!==t}))),F=L&&L[Eh](G,!0),F=$?M:F||M,($||o[Th]||!d)&&F&&(d=function(t,e){return K(F,t,e)}),d||(d=D),w=o.disableTelemetry,x=o[Ah]||lg,C=o.isRetryDisabled,k=o[$h]})))},t.processTelemetry=function(e,r){var o,n=(r=t._getTelCtx(r))[uh]();try{if(!V(e,n))return;var i=U(e,n);if(!i)return;var a=s[Oh](i),l=t[_h];J(a);var c=((o={})[Zf]=a,o.cnt=0,o);l[Gf](c),ot()}catch(t){hl(n,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+js(t),{exception:er(t)})}t.processNext(e,r)},t.isCompletelyIdle=function(){return!n&&0===M&&0===t._buffer[Jf]()},t._xhrReadyStateChange=function(t,e,r){if(!tt(e))return q(t,e,r)},t[dh]=function(e,r,o){var i;if(void 0===e&&(e=!0),!n)try{var s=t[_h];if(w)s[eh]();else{if(s[Jf]()>0){var a=s.getItems();!function(e,r){var o,n=(o="getNotifyMgr",t.core[o]?t.core[o]():t.core._notificationManager);if(n&&n[zh])try{n[zh](e,r)}catch(e){hl(t[uh](),1,74,"send request notification failed: "+js(e),{exception:er(e)})}}(o||0,e),i=r?r.call(t,a,e):t[bh](a,e)}new Date}nt()}catch(e){var l=pa();(!l||l>9)&&hl(t[uh](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+js(e),{exception:er(e)})}return i},t.getOfflineSupport=function(){var t;return(t={getUrl:function(){return b},createPayload:W})[Oh]=F,t.batch=B,t.shouldProcess=function(t){return!!V(t)},t},t._doTeardown=function(e,r){t.onunloadFlush(),gf(u,!1),st()},t[Ih]=function(e,r,o){if(!tt(e))return function(e,r,o){hl(t[uh](),2,26,"Failed to send telemetry.",{message:r}),t._buffer&&t._buffer[nh](e)}(e,r)},t[Dh]=function(e,r){if(!tt(e))return function(e,r){for(var o=[],n=[],i=0,s=r.errors.reverse();i<s.length;i++){var a=s[i],l=e.splice(a.index,1)[0];it(a.statusCode)?n[Yf](l):o[Yf](l)}e[Vf]>0&&t[jh](e,r[Lh]),o[Vf]>0&&t[Ih](o,Fs(null,["partial success",r[Lh],"of",r.itemsReceived].join(" "))),n[Vf]>0&&(rt(n),hl(t[uh](),2,40,"Partial success. Delivered: "+e[Vf]+", Failed: "+o[Vf]+". Will retry to send "+n[Vf]+" our of "+r[Rh]+" items"))}(e,r)},t[jh]=function(e,r){if(!tt(e))return function(e,r){t._buffer&&t._buffer[nh](e)}(e)},t._xdrOnLoad=function(t,e){if(!tt(e))return z(t,e)}})),c}return Vn(e,t),e.constructEnvelope=function(t,e,r,o){var n;return n=e===t.iKey||Le(e)?t:qn(qn({},t),{iKey:e}),(ug[n.baseType]||Qh)(r,n,o)},e}(vp);var bg=function(t,e){var r,o,n,i,s,a,l,c=this,d=!1,u=!1;function p(t,e,n,i){if(d){var a=function(t){try{var e=b(t);return(1e6>0?Math.floor(ka()/va*1000001)>>>0:0)<=e.limit.samplingRate}catch(t){}return!1}(t);if(!a)return;var l=b(t),c=_(t),u=h(l,r,c),p=!1,f=0,v=x(t);try{u&&!v?(f=Math.min(l.limit.maxSendNumber,c[Al]+1),c[Al]=0,p=!0,s[t]=!0,c[$l]=new Date):(s[t]=u,c[Al]+=1);var y=g(t);m(o,y,c);for(var k=0;k<f;k++)w(t,o,e,n)}catch(t){}return{isThrottled:p,throttleNum:f}}return i&&C(t)[kl]({msgID:t,message:e,severity:n}),null}function b(t){return n[t]||n[109]}function f(t,e){var r,o,i,s,a;try{var l=e||{},c={};c[Ol]=!!l[Ol];var d=l[Il]||{};u=(null==d?void 0:d.daysOfMonth)&&(null==d?void 0:d.daysOfMonth[wl])>0,c[Il]=(s=null===(i=(i=d)||{})||void 0===i?void 0:i.monthInterval,a=null==i?void 0:i.dayInterval,Le(s)&&Le(a)&&(i.monthInterval=3,u||(i[Dl]=[28],u=!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[t]=c}catch(t){}}function h(t,e,r){if(t&&!t[Ol]&&e&&$s(r)){var o=v(),n=r[jl],i=t[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(u)l=fo(i[Dl],o[Rl]());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(t,e){var r=$s(e)?e:"";return t?"appInsightsThrottle"+r+"-"+t:null}function v(t){try{if(!t)return new Date;var e=new Date(t);if(!isNaN(e.getDate()))return e}catch(t){}return null}function m(t,e,r){try{return uc(t,e,Io(JSON[Ll](r)))}catch(t){}return!1}function y(t,e,r){return t<=0?1:r>=e&&(r-e)%t==0?Math.floor((r-e)/t)+1:-1}function w(t,e,r,o){hl(e,o||1,t,r)}function _(t){try{var e=i[t];if(!e){var r=g(t,a);e=function(t,e,r){try{var o={date:v(),count:0};if(t){var n=JSON.parse(t);return{date:v(n[jl])||o[jl],count:n[Al]||o[Al],preTriggerDate:n.preTriggerDate?v(n[$l]):void 0}}return m(e,r,o),o}catch(t){}return null}(dc(o,r),o,r),i[t]=e}return i[t]}catch(t){}return null}function x(t){var e=s[t];if(Le(e)){e=!1;var r=_(t);r&&(e=function(t){try{if(t){var e=new Date;return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t[Rl]()===e[Rl]()}}catch(t){}return!1}(r[$l])),s[t]=e}return s[t]}function C(t){return Le((l=l||{})[t])&&(l[t]=[]),l[t]}o=pl(t),s={},i={},l={},n={},f(109),a=$s(e)?e:"",t.addUnloadHook(Za(t.config,(function(t){var e=t.cfg;r=cc(),Qe(e.throttleMgrCfg||{},(function(t,e){f(parseInt(t),e)}))}))),c._getDbgPlgTargets=function(){return[l]},c.getConfig=function(){return n},c.canThrottle=function(t){var e=_(t);return h(b(t),r,e)},c.isTriggered=function(t){return x(t)},c.isReady=function(){return d},c.flush=function(t){try{var e=C(t);if(e&&e[wl]>0){var r=e.slice(0);return l[t]=[],bo(r,(function(t){p(t.msgID,t[Tl],t.severity,!1)})),!0}}catch(t){}return!1},c.flushAll=function(){try{if(l){var t=!0;return Qe(l,(function(e){var r=c.flush(parseInt(e));t=t&&r})),t}}catch(t){}return!1},c.onReadyState=function(t,e){return void 0===e&&(e=!0),(d=!!Le(t)||t)&&e?c.flushAll():null},c.sendMessage=function(t,e,r){return p(t,e,r,!0)}},fg={perfEvtsSendAll:!1};function hg(t){t.h=null;var e=t.cb;t.cb=[],bo(e,(function(t){Oe(t.fn,[t.arg])}))}function gg(t,e,r,o){bo(t,(function(t){t&&t[e]&&(r?(r.cb[ei]({fn:o,arg:t}),r.h=r.h||tn(hg,0,r)):Oe(o,[t]))}))}var vg,mg=function(){function t(e){var r,o;this.listeners=[];var n=[],i={h:null,cb:[]},s=Ya(e,fg);o=s[Yn]((function(t){r=!!t.cfg.perfEvtsSendAll})),Dn(t,this,(function(t){Pr(t,"listeners",{g:function(){return n}}),t[li]=function(t){n[ei](t)},t[ai]=function(t){for(var e=fo(n,t);e>-1;)n[ri](e,1),e=fo(n,t)},t[fs]=function(t){gg(n,fs,i,(function(e){e[fs](t)}))},t[hs]=function(t,e){gg(n,hs,i,(function(r){r[hs](t,e)}))},t[gs]=function(t,e){gg(n,gs,e?i:null,(function(r){r[gs](t,e)}))},t[vs]=function(t){t&&(!r&&t[Fi]()||gg(n,vs,null,(function(e){t[Ti]?tn((function(){return e[vs](t)}),0):e[vs](t)})))},t[ms]=function(t){t&&t[Wn]&&gg(n,ms,i,(function(e){e[ms](t)}))},t[ys]=function(t){t&&t[Bi]&&gg(n,ys,i,(function(e){e[ys](t)}))},t[ws]=function(t,e){if(t>0){var r=e||0;gg(n,ws,i,(function(e){e[ws](t,r)}))}},t[yi]=function(t){var e,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](t);o&&(e||(e=[]),e[ei](o))})),e)return Xb((function(t){return Ab(Gb(e),(function(){r(),t()}))}));r()}}))}return t.__ieDyn=1,t}(),yg=function(t){function e(){var r,o,n=t.call(this)||this;function i(){r=0,o=[]}return n.identifier="TelemetryInitializerPlugin",n.priority=199,i(),Dn(e,n,(function(t,e){t.addTelemetryInitializer=function(t){return function(t,e,r){var o={id:e,fn:r};return po(t,o),{remove:function(){bo(t,(function(e,r){if(e.id===o.id)return t[ri](r,1),-1}))}}}(o,r++,t)},t[ps]=function(e,r){(function(t,e,r){for(var o=!1,n=t[Wn],i=0;i<n;++i){var s=t[i];if(s)try{if(!1===s.fn[ti](null,[e])){o=!0;break}}catch(t){hl(r,2,64,"Telemetry initializer failed: "+js(t),{exception:er(t)},!0)}}return!o})(o,e,r?r[Ai]():t[Ai]())&&t[hi](e,r)},t[$i]=function(){i()}})),n}return Vn(e,t),e.__ieDyn=1,e}(vp),wg="Plugins must provide initialize method",_g="SDK is still unloading...",xg=cr(((vg={cookieCfg:{}})[us]={rdOnly:!0,ref:!0,v:[]},vg[ss]={rdOnly:!0,ref:!0,v:[]},vg[ds]={ref:!0,v:{}},vg[ls]=ns,vg.loggingLevelConsole=0,vg.diagnosticLogInterval=ns,vg));function Cg(t,e){return new Vu(e)}function kg(t,e){var r=!1;return bo(e,(function(e){if(e===t)return r=!0,-1})),r}function Sg(t,e,r,o){r&&Qe(r,(function(r,n){o&&Do(n)&&Do(e[r])&&Sg(t,e[r],n,o),o&&Do(n)&&Do(e[r])?Sg(t,e[r],n,o):t.set(e,r,n)}))}function Eg(t,e){var r=null,o=-1;return bo(t,(function(t,n){if(t.w===e)return r=t,o=n,-1})),{i:o,l:r}}function Tg(t,e,r,o){return e.add(t[Yn]((function(t){var e=t.cfg.disableDbgExt;!0===e&&o&&(r[ai](o),o=null),r&&!o&&!0!==e&&(o=function(t){if(!tl){tl={};for(var e=0;e<rl[Wn];e++)tl[rl[e]]=nl(rl[e],t)}return tl}(t.cfg),r[li](o))}))),o}var Ag=function(){function t(){var e,r,o,n,i,s,a,l,c,d,u,p,b,f,h,g,v,m,y,w,_,x,C,k,S,E,T,A;Dn(t,this,(function(t){function $(t){return E&&E[vi]||A||(t||o&&o.queue[Wn]>0)&&(T||(T=!0,V(e[Yn]((function(t){var e=t.cfg.diagnosticLogInterval;e&&e>0||(e=1e4);var r=!1;E&&(r=E[vi],E[ni]()),E=function(t,e){return Zo(!1,ae,$e[we](arguments))}(M,e),E.unref(),E[vi]=r})))),E[vi]=!0),E}function O(){var t={};k=[];var e=function(e){e&&bo(e,(function(e){if(e[si]&&e[_i]&&!t[e.identifier]){var r=e[si]+"="+e[_i];k[ei](r),t[e.identifier]=e}}))};e(p),u&&bo(u,(function(t){e(t)})),e(d)}function I(){r=!1,(e=Ya({},xg,t[Zn])).cfg[xi]=1,Pr(t,"config",{g:function(){return e.cfg},s:function(e){t.updateCfg(e,!1)}}),Pr(t,"pluginVersionStringArr",{g:function(){return k||O(),k}}),Pr(t,"pluginVersionString",{g:function(){return S||(k||O(),S=k.join(";")),S||is}}),Pr(t,"logger",{g:function(){return o||(o=new bl(e.cfg),e[Zn]=o),o},s:function(t){e[Zn]=t,o!==t&&(gf(o,!1),o=t)}}),t[Zn]=new bl(e.cfg),C=[];var y=t.config[us]||[];y.splice(0,y[Wn]),po(y,C),f=new yg,n=[],gf(i,!1),i=null,s=null,a=null,gf(l,!1),l=null,c=null,d=[],u=null,p=null,b=!1,h=null,g=Oa("AIBaseCore",!0),v=bp(),w=null,_=null,m=fp(),x=[],S=null,k=null,A=!1,E=null,T=!1}function D(){var r=tp(L(),e.cfg,t);return r[wi]($),r}function j(e){var r=function(t,e,r){var o,n=[],i=[],s={};return bo(r,(function(e){(Le(e)||Le(e[ii]))&&rr(wg);var r=e[bs],o=e[si];e&&r&&(Le(s[r])?s[r]=o:gl(t,"Two extensions have same priority #"+r+" - "+s[r]+", "+o)),!r||r<500?n[ei](e):i[ei](e)})),(o={})[as]=n,o[ss]=i,o}(t[Zn],0,d);c=null,S=null,k=null,p=Xu(po(p=(u||[])[0]||[],r[ss]));var o=po(Xu(r[as]),p);C=dr(o);var n=t.config[us]||[];n.splice(0,n[Wn]),po(n,C);var i=D();p&&p[Wn]>0&&Ku(i[Ci](p),o),Ku(i,o),e&&z(e)}function R(t){var e=null,r=null,o=[];return bo(C,(function(e){if(e[si]===t&&e!==f)return r=e,-1;e.getChannel&&o[ei](e)})),!r&&o[Wn]>0&&bo(o,(function(e){if(!(r=e.getChannel(t)))return-1})),r&&(e={plugin:r,setEnabled:function(t){Wu(r)[cs]=!t},isEnabled:function(){var t=Wu(r);return!t[ki]&&!t[cs]},remove:function(t,e){var o;void 0===t&&(t=!0);var n=[r],i=((o={reason:1})[Ti]=t,o);P(n,i,(function(t){t&&j({reason:32,removed:n}),e&&e(t)}))}}),e}function L(){if(!c){var r=(C||[]).slice();-1===fo(r,f)&&r[ei](f),c=op(Xu(r),e.cfg,t)}return c}function P(r,o,n){if(r&&r[Wn]>0){var i=ep(op(r,e.cfg,t),t);i[wi]((function(){var t=!1,e=[];bo(d,(function(o,n){kg(o,r)?t=!0:e[ei](o)})),d=e,S=null,k=null;var o=[];u&&(bo(u,(function(e,n){var i=[];bo(e,(function(e){kg(e,r)?t=!0:i[ei](e)})),o[ei](i)})),u=o),n&&n(t),$()})),i[hi](o)}else n(!1)}function M(){if(o&&o.queue){var e=o.queue.slice(0);o.queue[Wn]=0,bo(e,(function(e){var r,o=((r={})[bi]=h||"InternalMessageId: "+e[Si],r.iKey=_,r[fi]=Ds(new Date),r.baseType=ul.dataType,r.baseData={message:e[Ei]},r);t.track(o)}))}}function N(t,e,r,o){var n=1,i=!1,s=null;function a(){n--,i&&0===n&&(s&&s[ni](),s=null,e&&e(i),e=null)}return o=o||5e3,p&&p[Wn]>0&&D()[Ci](p).iterate((function(e){if(e.flush){n++;var i=!1;e.flush(t,(function(){i=!0,a()}),r)||i||(t&&null==s?s=tn((function(){s=null,a()}),o):a())}})),i=!0,a(),!0}function z(e){var r=rp(L(),t);r[wi]($),t._updateHook&&!0===t._updateHook(r,e)||r[hi](e)}function q(e){var r=t[Zn];r?(hl(r,2,73,e),$()):rr(e)}function H(e){var r=t[di]();r&&r[hs]([e],2)}function V(t){m.add(t)}I(),t._getDbgPlgTargets=function(){return[C]},t[ci]=function(){return r},t[ii]=function(n,l,c,f){var h;b&&rr(_g),t[ci]()&&rr("Core cannot be initialized more than once"),n=(e=Ya(n,xg,c||t[Zn],!1)).cfg,V(e[Yn]((function(t){_=t.cfg.instrumentationKey;var e=t.ref(t.cfg,ds);Qe(e,(function(r){t.ref(e,r)})),Le(_)&&rr("Please provide instrumentation key")}))),y=Tg(e,m,(i=f)&&t[di](),y),V(e[Yn]((function(e){if(e.cfg.enablePerfMgr){var r=e.cfg[ls];h!==r&&(r||(r=Cg),Ls(e.cfg,ls,r),h=r,a=null),s||a||!Ne(r)||(a=r(t,t[di]()))}else a=null,h=null}))),t[Zn]=c;var g=n[us];if((d=[])[ei].apply(d,Un(Un([],l),g)),u=n[ss],j(null),p&&0!==p[Wn]||rr("No "+ss+" available"),u&&u[Wn]>1){var v=t[ui]("TeeChannelController");v&&v.plugin||hl(o,1,28,"TeeChannel required")}!function(t,e,r){bo(e,(function(e){var o=Za(t,e.w,r);delete e.w,e.rm=function(){o.rm()}}))}(n,x,o),x=null,r=!0,t.releaseQueue(),t[pi]()},t.getChannels=function(){var t=[];return p&&bo(p,(function(e){t[ei](e)})),dr(t)},t.track=function(e){Fu(t[_s](),(function(){return"AppInsightsCore:track"}),(function(){null===e&&(H(e),rr("Invalid telemetry item")),!e[bi]&&Le(e[bi])&&(H(e),rr("telemetry name required")),e.iKey=e.iKey||_,e[fi]=e[fi]||Ds(new Date),e.ver=e.ver||"4.0",!b&&t[ci]()?D()[hi](e):n[ei](e)}),(function(){return{item:e}}),!e.sync)},t[gi]=D,t[di]=function(){return i||(i=new mg(e.cfg),t._notificationManager=i),i},t[li]=function(e){t.getNotifyMgr()[li](e)},t[ai]=function(t){i&&i[ai](t)},t.getCookieMgr=function(){return l||(l=nu(e.cfg,t[Zn])),l},t.setCookieMgr=function(t){l!==t&&(gf(l,!1),l=t)},t[_s]=function(){return s||a||null},t.setPerfMgr=function(t){s=t},t.eventCnt=function(){return n[Wn]},t.releaseQueue=function(){if(r&&n[Wn]>0){var t=n;n=[],bo(t,(function(t){D()[hi](t)}))}},t[pi]=function(t){return h=t||null,A=!1,E&&E[ni](),$(!0)},t[mi]=function(){A=!0,E&&E[ni](),M()},Ns(t,(function(){return f}),["addTelemetryInitializer"]),t[yi]=function(e,n,s){var a;void 0===e&&(e=!0),r||rr("SDK is not initialized"),b&&rr(_g);var c,d=((a={reason:50})[Ti]=e,a.flushComplete=!1,a);e&&!n&&(c=Xb((function(t){n=t})));var u=ep(L(),t);function p(e){d.flushComplete=e,b=!0,v.run(u,d),t[mi](),u[hi](d)}return u[wi]((function(){m.run(t[Zn]),vf([l,i,o],e,(function(){I(),n&&n(d)}))}),t),M(),N(e,p,6,s)||p(!1),c},t[ui]=R,t.addPlugin=function(t,e,r,o){if(!t)return o&&o(!1),void q(wg);var n=R(t[si]);if(n&&!e)return o&&o(!1),void q("Plugin ["+t[si]+"] is already loaded!");var i={reason:16};function s(e){d[ei](t),i.added=[t],j(i),o&&o(!0)}if(n){var a=[n.plugin];P(a,{reason:2,isAsync:!!r},(function(t){t?(i.removed=a,i.reason|=32,s()):o&&o(!1)}))}else s()},t.updateCfg=function(r,o){var n;if(void 0===o&&(o=!0),t[ci]()){n={reason:1,cfg:e.cfg,oldCfg:zo({},e.cfg),newConfig:zo({},r),merge:o},r=n.newConfig;var i=e.cfg;r[us]=i[us],r[ss]=i[ss]}e._block((function(t){var e=t.cfg;Sg(t,e,r,o),o||Qe(e,(function(o){Ge(r,o)||t.set(e,o,ns)})),t[Qn](e,xg)}),!0),e[Xn](),n&&z(n)},t.evtNamespace=function(){return g},t.flush=N,t.getTraceCtx=function(t){return w||(e={},w={getName:function(){return e[bi]},setName:function(t){e[bi]=t},getTraceId:function(){return e[es]},setTraceId:function(t){bd(t)&&(e[es]=t)},getSpanId:function(){return e[rs]},setSpanId:function(t){fd(t)&&(e[rs]=t)},getTraceFlags:function(){return e[os]},setTraceFlags:function(t){e[os]=t}}),w;var e},t.setTraceCtx=function(t){w=t||null},t.addUnloadHook=V,Ms(t,"addUnloadCb",(function(){return v}),"add"),t.onCfgChange=function(o){var n,i,s,a;return r?n=Za(e.cfg,o,t[Zn]):((a=Eg(i=x,s=o).l)||(a={w:s,rm:function(){var t=Eg(i,s);-1!==t.i&&i[ri](t.i,1)}},i[ei](a)),n=a),function(t){return Pr({rm:function(){t.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(t)+">"}})}(n)},t.getWParam=function(){return Fr()||e.cfg.enableWParam?0:-1}}))}return t.__ieDyn=1,t}(),$g="duration",Og="properties",Ig="requestUrl",Dg="inst",jg="length",Rg="traceID",Lg="spanID",Pg="traceFlags",Mg="context",Ng="aborted",zg="traceId",qg="spanId",Hg="_addHook",Vg="core",Ug="includeCorrelationHeaders",Fg="getAbsoluteUrl",Bg="headers",Wg="requestHeaders",Kg="setRequestHeader",Xg="trackDependencyDataInternal",Gg="startTime",Jg="toLowerCase",Qg="enableRequestHeaderTracking",Yg="enableAjaxErrorStatusText",Zg="enableAjaxPerfTracking",tv="maxAjaxCallsPerView",ev="excludeRequestFromAutoTrackingPatterns",rv="addRequestContext",ov="disableAjaxTracking",nv="ajaxPerfLookupDelay",iv="disableFetchTracking",sv="enableResponseHeaderTracking",av="status",lv="statusText",cv="headerMap",dv="openDone",uv="sendDone",pv="requestSentTime",bv="abortDone",fv="getTraceId",hv="getTraceFlags",gv="method",vv="errorStatusText",mv="stateChangeAttached",yv="responseText",wv="responseFinishedTime",_v="CreateTrackItem",xv="response",Cv="getAllResponseHeaders",kv="getPartAProps",Sv="perfMark",Ev="name",Tv="perfTiming",Av="exception",$v="ajaxDiagnosticsMessage",Ov="correlationContext",Iv="ajaxTotalDuration",Dv="eventTraceCtx";function jv(t,e,r){var o=0,n=t[e],i=t[r];return n&&i&&(o=Ad(n,i)),o}function Rv(t,e,r,o,n){var i=0,s=jv(r,o,n);return s&&(i=Lv(t,e,Hc(s))),i}function Lv(t,e,r){var o="ajaxPerf",n=0;return t&&e&&r&&((t[o]=t[o]||{})[e]=r,n=1),n}var Pv,Mv=function(){var t=this;t[dv]=!1,t.setRequestHeaderDone=!1,t[uv]=!1,t[bv]=!1,t[mv]=!1},Nv=function(){function t(e,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[Rg]=e,s[Lg]=r,s[Pg]=null==n?void 0:n.getTraceFlags(),s[Dv]=n?((i={})[zg]=n[fv](),i[qg]=n.getSpanId(),i[Pg]=n[hv](),i):null,Dn(t,s,(function(t){t.getAbsoluteUrl=function(){return t[Ig]?function(t){var e,r=wd(t);return r&&(e=r.href),e}(t[Ig]):null},t.getPathName=function(){return t[Ig]?$c(a,(e=t[gv],r=t[Ig],e?e.toUpperCase()+" "+r:r)):null;var e,r},t[_v]=function(e,r,o){var n;if(t.ajaxTotalDuration=Math.round(1e3*Ad(t.requestSentTime,t.responseFinishedTime))/1e3,t[Iv]<0)return null;var i=((n={id:"|"+t[Rg]+"."+t[Lg],target:t[Fg]()})[Ev]=t.getPathName(),n.type=e,n[Gg]=null,n.duration=t[Iv],n.success=+t[av]>=200&&+t[av]<400,n.responseCode=+t[av],n[Og]={HttpMethod:t[gv]},n),s=i[Og];if(t[Ng]&&(s[Ng]=!0),t[pv]&&(i[Gg]=new Date,i[Gg].setTime(t[pv])),function(t,e){var r=t[Tv],o=e[Og]||{},n=0,i="name",s="Start",a="End",l="domainLookup",c="connect",d="redirect",u="request",p="response",b="startTime",f=l+s,h=l+a,g=c+s,v=c+a,m=u+s,y=u+a,w=p+s,_=p+a,x=d+s,C=d=a,k="transferSize",S="encodedBodySize",E="decodedBodySize",T="serverTiming";if(r){n|=Rv(o,d,r,x,C),n|=Rv(o,l,r,f,h),n|=Rv(o,c,r,g,v),n|=Rv(o,u,r,m,y),n|=Rv(o,p,r,w,_),n|=Rv(o,"networkConnect",r,b,v),n|=Rv(o,"sentRequest",r,m,_);var A=r[$g];A||(A=jv(r,b,_)||0),n|=Lv(o,$g,A),n|=Lv(o,"perfTotal",A);var $=r[T];if($){var O={};bo($,(function(t,e){var r=Os(t[i]||""+e),o=O[r]||{};Qe(t,(function(t,e){(t!==i&&Me(e)||Ve(e))&&(o[t]&&(e=o[t]+";"+e),!e&&Me(e)||(o[t]=e))})),O[r]=o})),n|=Lv(o,T,O)}n|=Lv(o,k,r[k]),n|=Lv(o,S,r[S]),n|=Lv(o,E,r[E])}else t[Sv]&&(n|=Lv(o,"missing",t.perfAttempts));n&&(e[Og]=o)}(t,i),r&&lr(t.requestHeaders)[jg]>0&&(s[Wg]=t[Wg]),o){var a=o();if(a){var l=a[Ov];if(l&&(i.correlationContext=l),a[cv]&&lr(a.headerMap)[jg]>0&&(s.responseHeaders=a[cv]),t[vv])if(t[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===t[av]&&(s.responseText=a[lv]||"")}}return i},t[kv]=function(){var e,r=null,o=t[Dv];if(o&&(o[zg]||o[qg])){var n=(r={})[Df]=((e={})[Rg]=o[zg],e.parentID=o[qg],e);Le(o[Pg])||(n[Pg]=o[Pg])}return r}}))}return t.__ieDyn=1,t}(),zv="ai.ajxmn.",qv="diagLog",Hv="_ajaxData",Vv="fetch",Uv="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(t,e){return t&&e&&t[Hv]?(t[Hv].i||{})[e]:null},Yv=function(t,e){var r=!1;if(t){var o=(t[Hv]||{}).xh;o&&bo(o,(function(t){if(t.n===e)return r=!0,-1}))}return r};function Zv(t,e){var r="";try{var o=Qv(t,e);o&&o[Ig]&&(r+="(url: '"+o[Ig]+"')")}catch(t){}return r}function tm(t,e,r,o,n){hl(t[qv](),1,e,r,o,n)}function em(t,e,r,o,n){hl(t[qv](),2,e,r,o,n)}function rm(t,e,r){return function(o){var n;tm(t,e,r,((n={ajaxDiagnosticsMessage:Zv(o[Dg],t._ajaxDataId)})[Av]=er(o.err),n))}}function om(t,e){return t&&e?Xo(t,e):-1}function nm(t,e,r){var o={id:e,fn:r};return t.push(o),{remove:function(){bo(t,(function(e,r){if(e.id===o.id)return t.splice(r,1),-1}))}}}function im(t,e,r,o){var n=!0;return bo(e,(function(e,i){try{!1===e.fn.call(null,r)&&(n=!1)}catch(e){hl(t&&t.logger,1,64,"Dependency "+o+" [#"+i+"] failed: "+js(e),{exception:er(e)},!0)}})),n}var sm="*.blob.core.",am=dr([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=dr(((Pv={})[tv]=500,Pv[ov]=!1,Pv[iv]=!1,Pv[ev]=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)),dm=function(t){function e(){var r,o,n,i,s,a,l,c,d,u,p,b,f,h,g,v,m,y,w,_,x,C,k,S,E,T,A,$,O,I,D=t.call(this)||this;return D.identifier=e.identifier,D.priority=120,Dn(e,D,(function(t,D){var j=D[Hg];function R(){var e=la();r=!1,o=!1,I=!1,n=e&&e.host&&e.host[Jg](),i=null,s=!1,a=!1,l=0,c=null,d=!1,u=!1,p=null,b=!1,f=0,h=!1,g={},v=!1,m=!1,y=null,w=null,_=null,C=0,k=[],S=[],x=Oa("ajaxData"),t._ajaxDataId=x,E=null,T=1,A=1,$=1,O=null}function L(t){var e=!0;return(t||E)&&bo(E,(function(r){if(r[Jg]()===t[Jg]())return e=!1,-1})),e}function P(t,e,r){j(function(t,e,r){return t?up(t[Pn],e,r,!1):null}(t,e,r))}function M(t,e,r){var o=!1,n=((Me(e)?e:(e||{}).url||"")||"")[Jg]();if(bo(y,(function(t){var e=t;Me(t)&&(e=new RegExp(t)),o||(o=e.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)),Le(t)?Le(e)||(o="object"==typeof e&&!0===e[yc]||!!r&&!0===r[yc]):o=!0===t[yc]||!0===n[yc],!o&&n&&kd(n)&&(o=!0),o?g[n]||(g[n]=1):g[n]&&(o=!0),o}function N(t,e,r){var n=!0,i=o;return Le(t)||(n=!0===r||!Le(e)),i&&n}function z(){var e=null;return t[Vg]&&t[Vg].getTraceCtx&&(e=t[Vg].getTraceCtx(!1)),!e&&c&&c.telemetryTrace&&(e=$d(c.telemetryTrace)),e}function q(t,e){if(e[Ig]&&p&&b){var r=Vo();if(r&&Ne(r.mark)){Jv++;var o=p+t+"#"+Jv;r.mark(o);var n=r.getEntriesByName(o);n&&1===n[jg]&&(e[Sv]=n[0])}}}function H(t,e,r,o){var n=e[Sv],i=Vo(),s=T,a=A,l=e[Ig],c=0;!function d(){try{if(i&&n){c++;for(var u=null,p=i.getEntries(),b=p[jg]-1;b>=0;b--){var f=p[b];if(f){if("resource"===f.entryType)f.initiatorType!==t||-1===om(f[Ev],l)&&-1===om(l,f[Ev])||(u=f);else if("mark"===f.entryType&&f[Ev]===n[Ev]){e[Tv]=u;break}if(f[Gg]<n[Gg]-1e3)break}}}!n||e[Tv]||c>=s||!1===e.async?(n&&Ne(i.clearMarks)&&i.clearMarks(n[Ev]),e.perfAttempts=c,r()):tn(d,a)}catch(t){o(t)}}()}function V(e){var r="";try{Le(e)||(r+="(url: '".concat("string"==typeof e?e:e.url,"')"))}catch(e){tm(t,15,"Failed to grab failed fetch diagnostics message",{exception:er(e)})}return r}function U(e,r,o,n,i,a,l){function c(e,r,n){var i=n||{};i.fetchDiagnosticsMessage=V(o),r&&(i.exception=er(r)),em(t,e,Gv+"fetch call"+Wv,i)}i&&(i[wv]=Td(),i[av]=r,H(Vv,i,(function(){var e,l=i[_v]("Fetch",s,a);try{w&&(e=w({status:r,request:o,response:n}))}catch(e){em(t,104,Xv)}if(l){void 0!==e&&(l[Og]=qn(qn({},l.properties),e));var d=i[kv]();F(S,t[Vg],i,l,null,d)}else c(14,null,{requestSentTime:i[pv],responseFinishedTime:i[wv]})}),(function(t){c(18,t,null)})))}function F(e,r,o,n,i,s){var a,l=!0;e[jg]>0&&(l=im(r,e,((a={item:n})[Og]=i,a.sysProperties=s,a.context=o?o[Mg]:null,a.aborted=!!o&&!!o[Ng],a),"initializer")),l&&t[Xg](n,i,s)}R(),t.initialize=function(n,l,g,C){var k;t.isInitialized()||(D.initialize(n,l,g,C),_=Du(Oa("ajax"),l&&l.evtNamespace&&l.evtNamespace()),function(r){t[Hg](Za(r,(function(r){var o=r.cfg,n=tp(null,o,t[Vg]);if(i=n.getExtCfg(e.identifier,cm),$=i.distributedTracingMode,s=i[Qg],a=i[Yg],b=i[Zg],f=i[tv],y=[].concat(i[ev]||[],!1!==i.addIntEndpoints?lm:[]),w=i[rv],u=0===$||1===$,d=1===$||2===$,b){var l=o.instrumentationKey||"unkwn";p=l[jg]>5?zv+Cr(l,l[jg]-5)+".":zv+l+"."}v=!!i[ov],T=i.maxAjaxPerfLookupAttempts,A=i[nv],E=i.ignoreHeaders,O=i.appId})))}(n),function(t,e){var r,o,n=!1;if(ha()){var i=XMLHttpRequest[Pn];n=!(Le(i)||Le(i.open)||Le(i.send)||Le(i.abort))}var s=pa();if(s&&s<9&&(n=!1),n)try{var a=new XMLHttpRequest,l={xh:[],i:(r={},r[e]={},r)};a[Hv]=l;var c=XMLHttpRequest[Pn].open;XMLHttpRequest[Pn].open=c}catch(e){n=!1,tm(t,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",((o={})[Av]=er(e),o))}return n}(t,x)&&t[Hg](Za(i,(function(){v=!!i[ov],s=i[Qg],v||o||(P(XMLHttpRequest,"open",{ns:_,req:function(e,r,o,n){if(!v){var i=e[Dg],l=Qv(i,x);!M(i,o)&&N(i,l,!0)&&(l&&l.xhrMonitoringState[dv]||(l=function(e,r,o,n){var i,s=z(),l=s&&s[fv]()||sd(),c=kr(sd(),0,16),d=e[Hv]=e[Hv]||{xh:[],i:{}},u=d.i=d.i||{},p=u[x]=u[x]||new Nv(l,c,t[qv](),null===(i=t.core)||void 0===i?void 0:i.getTraceCtx());return p[Pg]=s&&s[hv](),p[gv]=r,p[Ig]=o,p.xhrMonitoringState[dv]=!0,p[Wg]={},p.async=n,p[vv]=a,p}(i,r,o,n)),function(e,r){r.xhrMonitoringState[mv]=ju(e,"readystatechange",(function(){var o;try{e&&4===e.readyState&&N(e,r)&&function(e){var r=Qv(e,x);function o(r,o){var n=o||{};n.ajaxDiagnosticsMessage=Zv(e,x),r&&(n.exception=er(r)),em(t,14,Gv+"ajax call"+Wv,n)}r[wv]=Td(),r[av]=e[av],H("xmlhttprequest",r,(function(){try{var n=r[_v]("Ajax",s,(function(){var r,o=((r={statusText:e[lv]})[cv]=null,r[Ov]=function(e){var r;try{var o=e[Cv]();if(null!==o&&-1!==om(o[Jg](),gd[8]))return Ed(e.getResponseHeader(gd[0]))}catch(o){em(t,18,Kv,((r={})[$v]=Zv(e,x),r[Av]=er(o),r))}}(e),r.type=e.responseType,r[yv]=function(t){try{var e=t.responseType;if(""===e||"text"===e)return t[yv]}catch(t){}return null}(e),r.response=e[xv],r);if(h){var n=e[Cv]();if(n){var i=Io(n).split(/[\r\n]+/),s={};bo(i,(function(t){var e=t.split(": "),r=e.shift(),o=e.join(": ");L(r)&&(s[r]=o)})),o[cv]=s}}return o})),i=void 0;try{w&&(i=w({status:e[av],xhr:e}))}catch(e){em(t,104,Xv)}if(n){void 0!==i&&(n[Og]=qn(qn({},n.properties),i));var a=r[kv]();F(S,t[Vg],r,n,null,a)}else o(null,{requestSentTime:r[pv],responseFinishedTime:r[wv]})}finally{try{var l=(e[Hv]||{i:{}}).i||{};l[x]&&(l[x]=null)}catch(t){}}}),(function(t){o(t,null)}))}(e)}catch(r){var n=er(r);n&&-1!==om(n[Jg](),"c00c023f")||tm(t,16,Uv+" 'readystatechange' event handler"+Bv,((o={})[$v]=Zv(e,x),o[Av]=n,o))}}),_)}(i,l))}},hkErr:rm(t,15,Uv+".open"+Bv)}),P(XMLHttpRequest,"send",{ns:_,req:function(e,r){if(!v){var o=e[Dg],n=Qv(o,x);N(o,n)&&!n.xhrMonitoringState[uv]&&(q("xhr",n),n[pv]=Td(),t[Ug](n,void 0,void 0,o),n.xhrMonitoringState[uv]=!0)}},hkErr:rm(t,17,Uv+Bv)}),P(XMLHttpRequest,"abort",{ns:_,req:function(t){if(!v){var e=t[Dg],r=Qv(e,x);N(e,r)&&!r.xhrMonitoringState[bv]&&(r[Ng]=1,r.xhrMonitoringState[bv]=!0)}},hkErr:rm(t,13,Uv+".abort"+Bv)}),P(XMLHttpRequest,"setRequestHeader",{ns:_,req:function(t,e,r){if(!v){var o=t[Dg],n=Qv(o,x);n&&N(o,n)&&(function(t,e,r){if(t){var o=(t[Hv]||{}).xh;o&&o.push({n:e,v:r})}}(o,e,r),s&&L(e)&&n&&(n[Wg][e]=r))}},hkErr:rm(t,71,Uv+".setRequestHeader"+Bv)}),o=!0)}))),function(){var e,n=!(e=Vr())||Le(e.Request)||Le(e.Request[Pn])||Le(e[Vv])?null:e[Vv];if(n){var l=Vr(),c=n.polyfill;t[Hg](Za(i,(function(){m=!!i[iv],h=i[sv],m||r?c&&!I&&(j(up(l,Vv,{ns:_,req:function(t,e,r){M(null,e,r)}})),I=!0):(j(up(l,Vv,{ns:_,req:function(e,n,i){var l;if(!m&&r&&!M(null,n,i)&&(!c||!o)){var d=e.ctx();l=function(e,r){var o,n,i=z(),l=i&&i[fv]()||sd(),c=kr(sd(),0,16),d=new Nv(l,c,t[qv](),null===(o=t.core)||void 0===o?void 0:o.getTraceCtx());if(d[Pg]=i&&i[hv](),d[pv]=Td(),d[vv]=a,""===(n=e instanceof Request?(e||{}).url||"":e)){var u=la();u&&u.href&&(n=Uo(u.href,"#")[0])}d[Ig]=n;var p="GET";r&&r[gv]?p=r[gv]:e&&e instanceof Request&&(p=e[gv]),d[gv]=p;var b={};return s&&new Headers((r?r[Bg]:0)||e instanceof Request&&e[Bg]||{}).forEach((function(t,e){L(e)&&(b[e]=t)})),d[Wg]=b,q(Vv,d),d}(n,i);var u=t[Ug](l,n,i);u!==i&&e.set(1,u),d.data=l}},rsp:function(e,r){if(!m){var o=e.ctx().data;o&&(e.rslt=e.rslt.then((function(e){return U(0,(e||{})[av],r,e,o,(function(){var r,o=((r={statusText:(e||{})[lv]})[cv]=null,r[Ov]=function(e){var r;if(e&&e[Bg])try{return Ed(e[Bg].get(gd[0]))}catch(o){em(t,18,Kv,((r={fetchDiagnosticsMessage:V(e)})[Av]=er(o),r))}}(e),r);if(h&&e){var n={};e.headers.forEach((function(t,e){L(e)&&(n[e]=t)})),o[cv]=n}return o})),e})).catch((function(t){throw U(0,0,r,null,o,null,t.message||er(t)),t})))}},hkErr:rm(t,15,"Failed to monitor Window.fetch"+Bv)},!0,to())),r=!0)}))),c&&(l[Vv].polyfill=c)}}(),(k=t[Vg].getPlugin(gc))&&(c=k.plugin[Mg]))},t._doTeardown=function(){R()},t.trackDependencyData=function(e,r){F(S,t[Vg],null,e,r)},t[Ug]=function(e,r,o,a){var l=t._currentWindowHost||n;if(function(t,e,r,o,n,i){var s;if(t[jg]>0){var a=((s={})[Vg]=e,s.xhr=o,s.input=n,s.init=i,s.traceId=r[Rg],s.spanId=r[Lg],s.traceFlags=r[Pg],s.context=r[Mg]||{},s.aborted=!!r[Ng],s);im(e,t,a,"listener"),r[Rg]=a[zg],r[Lg]=a[qg],r[Pg]=a[Pg],r[Mg]=a[Mg]}}(k,t[Vg],e,a,r,o),r||""===r){if(Sd(i,e[Fg](),l)){o||(o={});var p=new Headers(o[Bg]||r instanceof Request&&r[Bg]||{});if(u){var b="|"+e[Rg]+"."+e[Lg];p.set(gd[3],b),s&&(e[Wg][gd[3]]=b)}if((h=O||c&&c.appId())&&(p.set(gd[0],gd[2]+h),s&&(e[Wg][gd[0]]=gd[2]+h)),d){Le(g=e[Pg])&&(g=1);var f=hd(pd(e[Rg],e[Lg],g));p.set(gd[4],f),s&&(e[Wg][gd[4]]=f)}o[Bg]=p}return o}if(a){var h,g;if(Sd(i,e[Fg](),l))u&&(Yv(a,gd[3])?em(t,71,"Unable to set ["+gd[3]+"] as it has already been set by another instance"):(b="|"+e[Rg]+"."+e[Lg],a[Kg](gd[3],b),s&&(e[Wg][gd[3]]=b))),(h=O||c&&c.appId())&&(Yv(a,gd[0])?em(t,71,"Unable to set ["+gd[0]+"] as it has already been set by another instance"):(a[Kg](gd[0],gd[2]+h),s&&(e[Wg][gd[0]]=gd[2]+h))),d&&(Le(g=e[Pg])&&(g=1),Yv(a,gd[4])?em(t,71,"Unable to set ["+gd[4]+"] as it has already been set by another instance"):(f=hd(pd(e[Rg],e[Lg],g)),a[Kg](gd[4],f),s&&(e[Wg][gd[4]]=f)));return a}},t[Xg]=function(e,r,o){if(-1===f||l<f){2!==$&&1!==$||"string"!=typeof e.id||"."===e.id[e.id[jg]-1]||(e.id+="."),Le(e[Gg])&&(e[Gg]=new Date);var n=Lc(e,Dd.dataType,Dd.envelopeType,t[qv](),r,o);t[Vg].track(n)}else l===f&&tm(t,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},t.addDependencyListener=function(t){return nm(k,C++,t)},t.addDependencyInitializer=function(t){return nm(S,C++,t)}})),D}return Vn(e,t),e.prototype.processTelemetry=function(t,e){this.processNext(t,e)},e.prototype.addDependencyInitializer=function(t){return null},e.identifier="AjaxDependencyPlugin",e}(vp),um=function(){},pm=function(){this.id="browser",this.deviceClass="Browser"},bm=function(t,e){var r=this,o=Za(t,(function(){var e=t.sdkExtension;r.sdkVersion=(e?e+"_":"")+"javascript:3.2.0"}));e&&e.add(o)},fm=function(){},hm="sessionManager",gm="update",vm="isUserCookieSet",mm="isNewUser",ym="getTraceCtx",wm="telemetryTrace",_m="applySessionContext",xm="applyApplicationContext",Cm="applyDeviceContext",km="applyOperationContext",Sm="applyUserContext",Em="applyOperatingSystemContxt",Tm="applyLocationContext",Am="applyInternalContext",$m="accountId",Om="getSessionId",Im="namePrefix",Dm="userCookiePostfix",jm="idLength",Rm="getNewId",Lm="length",Pm="automaticSession",Mm="authenticatedId",Nm="acquisitionDate",zm="renewalDate",qm="join",Hm="cookieSeparator",Vm="authUserCookieName",Um=function(){},Fm=function(){function t(e,r,o){var n,i,s,a,l=pl(r),c=ou(r);Dn(t,this,(function(t){e||(e={});var r=Za(e,(function(t){s=e.sessionExpirationMs||864e5,a=e.sessionRenewalMs||18e5;var r=e.sessionCookiePostfix||e[Im]||"";n="ai_session"+r}));function d(t,e){var r=!1,o=", session will be reset",n=e.split("|");if(n[Lm]>=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]&&(t.id=n[0],t[Nm]=i,t[zm]=s,r=!0)}catch(t){hl(l,1,9,"Error parsing ai_session value ["+(e||"")+"]"+o+" - "+js(t),{exception:er(t)})}return r}function u(t,r){var o=t[Nm];t[zm]=r;var l,d=a,u=o+s-r,p=[t.id,o,r];l=u<d?u/1e3:d/1e3;var b=e.cookieDomain||null;c.set(n,p[qm]("|"),s>0?l:null,b),i=r}o&&o.add(r),t[Pm]=new Um,t[gm]=function(){var r=So(),o=!1,p=t[Pm];if(p.id||(o=!function(t,e){var r=!1,o=c.get(n);if(o&&Ne(o.split))r=d(t,o);else{var i=dc(l,n);i&&(r=d(t,i))}return r||!!t.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=e[Rm]||Sa;t.automaticSession.id=o(e[jm]||22),t[Pm][Nm]=r,u(t[Pm],r),cc()||hl(l,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}(r):(!i||r-i>6e4)&&u(p,r)},t.backup=function(){var e,r,o,i=t[Pm];e=i.id,r=i[Nm],o=i[zm],uc(l,n,[e,r,o][qm]("|"))}}))}return t.__ieDyn=1,t}(),Bm=function(t,e,r,o){var n=this;n.traceID=t||sd(),n.parentID=e;var i=la();!r&&i&&i.pathname&&(r=i.pathname),n.name=Ac(o,r)};function Wm(t){return!("string"!=typeof t||!t||t.match(/,|;|=| |\|/))}var Km=function(){function t(e,r,o){this.isNewUser=!1,this.isUserCookieSet=!1;var n,i=pl(r),s=ou(r);Dn(t,this,(function(r){Pr(r,"config",{g:function(){return e}});var a=Za(e,(function(){var o=e[Dm]||"";n=t.userCookieName+o;var a=s.get(n);if(a){r[mm]=!1;var u=a.split(t[Hm]);u[Lm]>0&&(r.id=u[0],r[vm]=!!r.id)}if(!r.id){r.id=l(),d(c(r.id)[qm](t[Hm]));var p=(e[Im]||"")+"ai_session";!function(t,e){var r=ic();if(null!==r)try{return r[Sl](e),!0}catch(e){rc=!1,hl(t,2,5,"Browser failed removal of local storage item. "+js(e),{exception:er(e)})}}(i,p)}r[$m]=e[$m]||void 0;var b=s.get(t[Vm]);if(b){var f=(b=decodeURI(b)).split(t[Hm]);f[0]&&(r[Mm]=f[0]),f[Lm]>1&&f[1]&&(r[$m]=f[1])}}));function l(){var t=e||{};return(t[Rm]||Sa)(t[jm]?e[jm]:22)}function c(t){var e=Ds(new Date);return r.accountAcquisitionDate=e,r[mm]=!0,[t,e]}function d(t){r[vm]=s.set(n,t,31536e3)}o&&o.add(a),r.setAuthenticatedUserContext=function(e,o,n){if(void 0===n&&(n=!1),!Wm(e)||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]=e;var a=r[Mm];o&&(r[$m]=o,a=[r[Mm],r.accountId][qm](t[Hm])),n&&s.set(t[Vm],encodeURI(a))}},r.clearAuthenticatedUserContext=function(){r[Mm]=null,r[$m]=null,s.del(t[Vm])},r[gm]=function(e){r.id===e&&r[vm]||d(c(e||l())[qm](t[Hm]))}}))}return t.cookieSeparator="|",t.userCookieName="ai_user",t.authUserCookieName="ai_authUser",t}(),Xm="ext",Gm="tags";function Jm(t,e){t&&t[e]&&0===lr(t[e])[Lm]&&delete t[e]}function Qm(){return null}var Ym,Zm,ty=function(){function t(e,r,o,n){var i=this,s=e.logger;Dn(t,this,(function(t){if(t.appId=Qm,t[Om]=Qm,t.application=new um,t.internal=new bm(r,n),Wr()){t[hm]=new Fm(r,e,n),t.device=new pm,t.location=new fm,t.user=new Km(r,e,n);var a,l=void 0,c=void 0;o&&(l=o.getTraceId(),c=o.getSpanId(),a=o.getName()),t[wm]=new Bm(l,c,a,s),t.session=new Um}t[Om]=function(){var e=t.session,r=null;if(e&&Me(e.id))r=e.id;else{var o=(t[hm]||{})[Pm];r=o&&Me(o.id)?o.id:null}return r},t[_m]=function(e,r){Rs(Ls(e.ext,"app"),"sesId",t[Om](),Me)},t[Em]=function(e,r){Rs(e.ext,"os",t.os)},t[xm]=function(e,r){var o=t.application;if(o){var n=Ls(e,Gm);Rs(n,jf.applicationVersion,o.ver,Me),Rs(n,jf.applicationBuild,o.build,Me)}},t[Cm]=function(e,r){var o=t.device;if(o){var n=Ls(Ls(e,Xm),If);Rs(n,"localId",o.id,Me),Rs(n,"ip",o.ip,Me),Rs(n,"model",o.model,Me),Rs(n,"deviceClass",o.deviceClass,Me)}},t[Am]=function(e,r){var o=t.internal;if(o){var n=Ls(e,Gm);Rs(n,jf.internalAgentVersion,o.agentVersion,Me),Rs(n,jf.internalSdkVersion,Ac(s,o.sdkVersion,64),Me),e.baseType!==ul.dataType&&e.baseType!==Vc.dataType||(Rs(n,jf.internalSnippet,o.snippetVer,Me),Rs(n,jf.internalSdkSrc,o.sdkSrc,Me))}},t[Tm]=function(t,e){var r=i.location;r&&Rs(Ls(t,Gm,[]),jf.locationIp,r.ip,Me)},t[km]=function(e,r){var o=t[wm];if(o){var n=Ls(Ls(e,Xm),Df,{traceID:void 0,parentID:void 0});Rs(n,"traceID",o.traceID,Me,Le),Rs(n,"name",o.name,Me,Le),Rs(n,"parentID",o.parentID,Me,Le)}},t.applyWebContext=function(t,e){var r=i.web;r&&Rs(Ls(t,Xm),"web",r)},t[Sm]=function(e,r){var o=t.user;if(o){Rs(Ls(e,Gm,[]),jf.userAccountId,o[$m],Me);var n=Ls(Ls(e,Xm),Of);Rs(n,"id",o.id,Me),Rs(n,"authId",o[Mm],Me)}},t.cleanUp=function(t,e){var r=t.ext;r&&(Jm(r,If),Jm(r,Of),Jm(r,"web"),Jm(r,"os"),Jm(r,"app"),Jm(r,Df))}}))}return t.__ieDyn=1,t}(),ey=null,ry=cr(((Ym={})[$m]=ey,Ym.sessionRenewalMs=18e5,Ym.samplingPercentage=100,Ym.sessionExpirationMs=864e5,Ym.cookieDomain=ey,Ym.sdkExtension=ey,Ym.isBrowserLinkTrackingEnabled=!1,Ym.appId=ey,Ym[Om]=ey,Ym[Im]=Zm,Ym.sessionCookiePostfix=Zm,Ym[Dm]=Zm,Ym[jm]=22,Ym[Rm]=ey,Ym));const oy=function(t){function e(){var r,o,n,i,s,a=t.call(this)||this;return a.priority=110,a.identifier=gc,Dn(e,a,(function(t,e){function a(){r=null,o=null,n=null,i=null,s=!0}a(),Pr(t,"context",{g:function(){return i}}),t.initialize=function(a,l,c,d){e.initialize(a,l,c,d),function(e){var a=t.identifier,l=t.core;t._addHook(Za(e,(function(){var o=tp(null,e,l);e.storagePrefix&&lc(e.storagePrefix),s=!1!==e.disableUserInitMessage,r=o.getExtCfg(a,ry),t._extConfig=r}))),n=l[ym](!1),i=new ty(l,r,n,t._unloadHooks),o=$d(t.context[wm],n),l.setTraceCtx(o),t.context.appId=function(){var t=l.getPlugin(vc);return t?t.plugin._appId:null}}(a)},t.processTelemetry=function(e,r){if(!Le(e)){r=t._getTelCtx(r),e.name===Vc.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(e,r){Ls(e,"tags",[]),Ls(e,"ext",{});var o=t.context;o[_m](e,r),o[xm](e,r),o[Cm](e,r),o[km](e,r),o[Sm](e,r),o[Em](e,r),o.applyWebContext(e,r),o[Tm](e,r),o[Am](e,r),o.cleanUp(e,r)}(e,r),n&&n[mm]&&(n[mm]=!1,!s)){var a=new ul(72,(Qr()||{}).userAgent||"");!function(t,e,r){fl(t)[Ni](1,r)}(r.diagLog(),0,a)}t.processNext(e,r)}},t._doTeardown=function(t,e){var r=(t||{}).core();r&&r[ym]&&r[ym](!1)===o&&r.setTraceCtx(n),a()}})),a}return Vn(e,t),e.__ieDyn=1,e}(vp);var ny,iy,sy,ay,ly,cy="AuthenticatedUserContext",dy="track",uy="snippet",py="flush",by="pollInternalLogs",fy="getPlugin",hy="evtNamespace",gy=dy+"Event",vy=dy+"Trace",my=dy+"Metric",yy=dy+"PageView",wy=dy+"Exception",_y=dy+"DependencyData",xy="set"+cy,Cy="clear"+cy,ky="version",Sy="queue",Ey="connectionString",Ty="endpointUrl",Ay="userOverrideEndpointUrl",$y="instrumentationKey",Oy="onunloadFlush",Iy="context",Dy="addHousekeepingBeforeUnload",jy="sendMessage",Ry=[uy,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],Ly="iKeyUsage",Py="CdnUsage",My="SdkLoaderVer",Ny=void 0,zy={disabled:!0,limit:Ld({samplingRate:100,maxSendNumber:1}),interval:Ld({monthInterval:3,daysOfMonth:[28]})},qy=((ny={})[Ey]=Ny,ny[Ty]=Ny,ny[$y]=Ny,ny[Ay]=Ny,ny.diagnosticLogInterval=Md((function(t){return t&&t>0}),1e4),ny.featureOptIn=((iy={})[Ly]={mode:3},iy[Py]={mode:2},iy[My]={mode:2},iy),ny.throttleMgrCfg=Ld(((sy={})[109]=Ld(zy),sy[106]=Ld(zy),sy[111]=Ld(zy),sy[110]=Ld(zy),sy)),ny.extensionConfig=Ld(((ay={}).AppInsightsCfgSyncPlugin=Ld({cfgUrl:"https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",syncMode:2}),ay)),ny),Hy=function(){function t(e){var r,o,n,i,s,a,l,c,d,u,p,b,f,h,g=this;Dn(t,this,(function(t){m(),Pr(t,"config",{g:function(){return c}}),bo(["pluginVersionStringArr","pluginVersionString"],(function(e){Pr(t,e,{g:function(){return l?l[e]:null}})})),i=""+(e.sv||e[ky]||""),e[Sy]=e[Sy]||[],e[ky]=e[ky]||2;var v=Ya(e.config||{},qy);function m(){s=Oa("AISKU"),a=null,r=null,o=null,n=null,i=null,p=null,b=!1,f=!1,h=!1,u=new cf}function y(){var t;a&&(Pu([wu,yu,mu],null,a),t=Du(_u,a),Pu([mu],null,t),Pu([vu],null,t))}function w(t){l.addUnloadHook(t)}c=v.cfg,d=new Sb,Pr(t,"appInsights",{g:function(){return d}}),o=new oy,r=new dm,n=new pg,l=new Ag,Pr(t,"core",{g:function(){return l}}),w(Za(v,(function(){if(c[Ey]){var t=function(t){if(!t)return{};var e=t[yl](";"),r=yo(e,(function(t,e){var r=e[yl]("=");if(2===r[wl]){var o=r[0][_l](),n=r[1];t[o]=n}return t}),{});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]||Cc,Bo(r[xl],"/")&&(r[xl]=r[xl].slice(0,-1))}return r}(c[Ey]),e=t.ingestionendpoint;c[Ty]=c[Ay]?c[Ay]:e+kc,c[$y]=t.instrumentationkey||c[$y]}c[Ty]=c[Ay]?c[Ay]:c[Ty]}))),t[uy]=e,t[py]=function(t,e){var r;return void 0===t&&(t=!0),Fu(l,(function(){return"AISKU.flush"}),(function(){t&&!e&&(r=Xb((function(t){e=t})));var o=1,n=function(){0==--o&&e()};bo(l.getChannels(),(function(e){e&&(o++,e[py](t,n))})),n()}),null,t),r},t[Oy]=function(t){void 0===t&&(t=!0),bo(l.getChannels(),(function(e){e[Oy]?e[Oy]():e[py](t)}))},t.loadAppInsights=function(e,s,a){return void 0===e&&(e=!1),e&&function(t){throw mo||(mo=ko("UnsupportedError")),new mo("Legacy Mode is no longer supported")}(),Fu(t.core,(function(){return"AISKU.loadAppInsights"}),(function(){l.initialize(c,[n,o,r,d,u],s,a),Pr(t,"context",{g:function(){return o[Iy]}}),p||(p=new bg(l));var e=function(){if(ly)return ly;var t=null;try{var e=(document||{}).currentScript;e&&(t=e.src)}catch(t){}if(t){try{var r=t.toLowerCase();if(r){var o="";bo(["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"],(function(t,e){if(-1!==Xo(r,t))return o="cdn"+(e+1),-1===Xo(r,"/scripts/")&&(-1!==Xo(r,"/next/")?o+="-next":-1!==Xo(r,"/beta/")&&(o+="-beta")),ly=o+"",-1}))}}catch(t){}ly=t}return ly}();e&&t[Iy]&&(t[Iy].internal.sdkSrc=e),function(e){if(e){var r="";Le(i)||(r+=i),t[Iy]&&t[Iy].internal&&(t[Iy].internal.snippetVer=r||"-"),Qe(t,(function(t,r){Me(t)&&!Ne(r)&&t&&"_"!==t[0]&&-1===fo(Ry,t)&&e[t]!==r&&(e[t]=r)}))}}(t[uy]),t.emptyQueue(),t[by](),t[Dy](t),w(Za(v,(function(){var e=!1;c.throttleMgrCfg[109]&&(e=!c.throttleMgrCfg[109].disabled),!p.isReady()&&c.extensionConfig&&c.extensionConfig[u.identifier]&&e&&p.onReadyState(!0),b||c[Ey]||!Hs(Ly,c)||(p[jy](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),b=!0),!f&&t[Iy].internal.sdkSrc&&-1!=t[Iy].internal.sdkSrc.indexOf("az416426")&&Hs(Py,c)&&(p[jy](110,"See Cdn support notice at aka.ms/JsActiveCdn"),f=!0),!h&&parseInt(i)<6&&Hs(My,c)&&(p[jy](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),h=!0)})))})),t},t.updateSnippetDefinitions=function(e){!function(t,e,r){if(t&&e&&ze(t)&&ze(e)){var o=function(o){if(Me(o)){var n=e[o];Ne(n)?r&&!r(o)||(t[o]=Ps(e,o)):r&&!r(o)||(Ge(t,o)&&delete t[o],Pr(t,o,{g:function(){return e[o]},s:function(t){e[o]=t}}))}};for(var n in e)o(n)}}(e,t,(function(t){return t&&-1===fo(Ry,t)}))},t.emptyQueue=function(){try{if(qe(t.snippet[Sy])){for(var e=t.snippet[Sy].length,r=0;r<e;r++)(0,t.snippet[Sy][r])();t.snippet[Sy]=void 0,delete t.snippet[Sy]}}catch(t){t&&Ne(t.toString)&&t.toString()}},t[Dy]=function(e){if(Wr()||Fr()){var r=function(){if(e[Oy](!1),Ne(t.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=Du(s,l[hy]&&l[hy]())),w(Za(c,(function(t){var n=t.cfg,i=e.appInsights,s=tp(null,n,i.core).getExtCfg(i.identifier||mc);y();var c,d=n.disablePageUnloadEvents;s.disableFlushOnBeforeUnload||(function(t,e,r,o){var n=!1;return e&&t&&qe(t)&&!(n=Lu(t,e,r,o))&&r&&r[Wn]>0&&(n=Lu(t,e,null,o)),n}([wu,yu,mu],r,d,a)&&(o=!0),Mu(r,d,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||Mu(r,d,a)})))}},t.getSender=function(){return n},t.unload=function(e,r,o){var n,i=!1;return e&&!r&&(n=Xb((function(t){r=t}))),t[Oy](e),y(),l.unload&&l.unload(e,(function(t){i||(i=!0,m(),r&&r(t))}),o),n},Ns(t,d,["getCookieMgr",gy,yy,"trackPageViewPerformance",wy,"_onerror",vy,my,"startTrackPage","stopTrackPage","startTrackEvent","stopTrackEvent"]),Ns(t,(function(){return r}),[_y,"addDependencyListener","addDependencyInitializer"]),Ns(t,l,["addTelemetryInitializer",by,"stopPollingInternalLogs",fy,"addPlugin",hy,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),Ns(t,(function(){var t=o[Iy];return t?t.user:null}),[xy,Cy])}))}return t.prototype.addDependencyInitializer=function(t){return null},t}();class Vy{constructor(){this.config={},this.trackPageView=!1}}const Uy="AppInsightsConfigurationToken";let Fy=class{constructor(t){this.config=t,t.config?.connectionString||t.config?.instrumentationKey?(this.instance=new Hy(t),this.instance.loadAppInsights(),t.trackPageView&&this.instance.trackPageView()):console.warn("AppInsightsLogger configuraiton has no connectionString or instrumentaitonKey."),this.config=t}logTrace(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:0})}logDebug(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:1})}logInformation(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:2})}logWarning(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:3})}logError(t,e,...r){this.instance?.trackException({exception:e??new Error(this.formatMessage(t,r))})}logCritical(t,e,...r){this.instance?.trackException({exception:e??new Error(this.formatMessage(t,r)),properties:{severity:"critical"}})}log(t,e,r,...o){r?this.instance?.trackException({exception:r,properties:{message:this.formatMessage(e,o)}}):this.instance?.trackTrace({message:this.formatMessage(e,o),severityLevel:t})}formatMessage(t,e){return e.length>0?`${t}, ${e.join(", ")}`:t}};Fy=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}([$(),function(t,e){return function(r,o){e(r,o,t)}}(0,A(Uy)),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[Vy])],Fy),I.container.registerSingleton(Fy),I.container.register(Yt,{useToken:Fy}),I.container.register(Uy,{useFactory:function(){return I.container.resolve(j).getSection("ApplicationInsights").bind(Vy)}});var By=function(t,e){return function(r,o){e(r,o,t)}};let Wy=class{constructor(t,e){this.loggers=t,this.readers=e,this.logTrace(`LoggingService.constructor loaded with ${t.length} loggers and ${e.length} readers.`)}logTrace(t,...e){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Zt.Trace,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logTrace(t,...e)}logDebug(t,...e){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Zt.Debug,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logDebug(t,...e)}logInformation(t,...e){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Zt.Information,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logInformation(t,...e)}logWarning(t,...e){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Zt.Warning,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logWarning(t,...e)}logError(t,e,...r){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Zt.Error,message:t,error:e,...r},bubbles:!0,cancelable:!0,composed:!0}));for(const o of this.loggers)o.logError(t,e,...r)}logCritical(t,e,...r){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Zt.Critical,message:t,error:e,...r},bubbles:!0,cancelable:!0,composed:!0}));for(const o of this.loggers)o.logCritical(t,e,...r)}log(t,e,r,...o){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:t,message:e,error:r,...o},bubbles:!0,cancelable:!0,composed:!0}));for(const n of this.loggers)n.log(t,e,r,...o)}getLogs(){return this.readers.reduce(((t,e)=>{const r=e.getLogs();return t.concat(r)}),[])}clearLogs(){this.readers.forEach((t=>t.clearLogs()))}};Wy=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}([$(),By(0,O(Yt)),By(1,O(re)),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[Array,Array])],Wy),I.container.register(ee,{useClass:Wy},{lifecycle:n.Singleton});const Ky=B`
24
+ `}}(function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);i>3&&s&&Object.defineProperty(e,r,s)})([Jt({type:String}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:type",Object)],Qt.prototype,"value",void 0),customElements.define("qbo-config-editor",Qt);const Yt="LoggerToken";var Zt,te;(te=Zt||(Zt={}))[te.Trace=0]="Trace",te[te.Debug=1]="Debug",te[te.Information=2]="Information",te[te.Warning=3]="Warning",te[te.Error=4]="Error",te[te.Critical=5]="Critical";const ee="LoggerServiceToken";I.container.register(Yt,{useClass:class{logTrace(t,...e){console.debug(t,...e)}logDebug(t,...e){console.debug(t,...e)}logInformation(t,...e){console.info(t,...e)}logWarning(t,...e){console.warn(t,...e)}logError(t,e,...r){console.error(t,...e?[e,...r]:r)}logCritical(t,e,...r){console.error(`CRITICAL: ${t}`,...e?[e,...r]:r)}log(t,e,r,...o){switch(t){case Zt.Trace:this.logTrace(e,...o);break;case Zt.Debug:this.logDebug(e,...o);break;case Zt.Information:this.logInformation(e,...o);break;case Zt.Warning:this.logWarning(e,...o);break;case Zt.Error:this.logError(e,r,...o);break;case Zt.Critical:this.logCritical(e,r,...o);break;default:console.log(e,...o)}}}},{lifecycle:n.Singleton});const re="LogReaderToken";class oe{constructor(){this.logs=[]}logTrace(t,...e){this.logs.push({logLevel:Zt.Trace,message:t,args:e})}logDebug(t,...e){this.logs.push({logLevel:Zt.Debug,message:t,args:e})}logInformation(t,...e){this.logs.push({logLevel:Zt.Information,message:t,args:e})}logWarning(t,...e){this.logs.push({logLevel:Zt.Warning,message:t,args:e})}logError(t,e,...r){this.logs.push({logLevel:Zt.Error,message:t,error:e,args:r})}logCritical(t,e,...r){this.logs.push({logLevel:Zt.Critical,message:t,error:e,args:r})}log(t,e,r,...o){this.logs.push({logLevel:t,message:e,error:r,args:o})}getLogs(){return this.logs}clearLogs(){this.logs=[]}}function ne(t,e){return t||e}function ie(t,e){return t[e]}I.container.registerSingleton(oe),I.container.register(Yt,{useToken:oe}),I.container.register(re,{useToken:oe});var se,ae=void 0,le=null,ce="",de="function",ue="object",pe="prototype",be="__proto__",fe="undefined",he="constructor",ge="Symbol",ve="_polyfill",me="length",ye="name",we="call",_e="toString",xe=ne(Object),Ce=ie(xe,pe),ke=ne(String),Se=ie(ke,pe),Ee=ne(Math),Te=ne(Array),Ae=ie(Te,pe),Oe=ie(Ae,"slice");function $e(t,e){try{return{v:t.apply(this,e)}}catch(t){return{e:t}}}function Ie(t){return function(e){return typeof e===t}}function De(t){var e="[object "+t+"]";return function(t){return!(!t||Re(t)!==e)}}function Re(t){return Ce[_e].call(t)}function je(t){return typeof t===fe||t===fe}function Le(t){return t===le||je(t)}function Pe(t){return!!t||t!==ae}var Me=Ie("string"),Ne=Ie(de);function ze(t){return!(!t&&Le(t)||!t||typeof t!==ue)}var qe=ie(Te,"isArray"),He=De("Date"),Ve=Ie("number"),Ue=Ie("boolean"),Fe=De("Error");function Be(t){return!!(t&&t.then&&Ne(t.then))}function We(t){return!(!t||(e=function(){return!(t&&0+t)},r=!t,o=$e(e),o.e?r:o.v));var e,r,o}var Ke=ie(xe,"getOwnPropertyDescriptor");function Xe(t,e){return!!t&&Ce.hasOwnProperty[we](t,e)}var Ge=ne(ie(xe,"hasOwn"),Je);function Je(t,e){return Xe(t,e)||!!Ke(t,e)}function Qe(t,e,r){if(t&&ze(t))for(var o in t)if(Ge(t,o)&&-1===e[we](r||t,o,t[o]))break}function Ye(t,e,r,o){var n={};return Qe(t,(function(t,o){n[t]=e?o:t,n[o]=r?o:t})),o(n)}var Ze=ne(ke),tr="[object Error]";function er(t,e){var r=ce,o=Ce[_e][we](t);o===tr&&(t={stack:Ze(t.stack),message:Ze(t.message),name:Ze(t.name)});try{r=(r=JSON.stringify(t,le,e?"number"==typeof e?e:4:ae))&&r.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||Ze(t)}catch(t){r=" - "+er(t,e)}return o+": "+r}function rr(t){throw new Error(t)}function or(t){throw new TypeError(t)}var nr=ie(xe,"freeze");function ir(t){return t}function sr(t){return t[be]||le}var ar=ie(xe,"assign"),lr=ie(xe,"keys");function cr(t){return nr&&Qe(t,(function(t,e){(qe(e)||ze(e))&&nr(e)})),dr(t)}var dr=ne(nr,ir),ur=ne(ie(xe,"getPrototypeOf"),sr);function pr(t){return Ye(t,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 t;return typeof globalThis!==fe&&(t=globalThis),t||typeof self===fe||(t=self),t||typeof window===fe||(t=window),t||typeof r.g===fe||(t=r.g),t}function vr(){if(!br){var t=$e(gr).v||{};br=t[hr]=t[hr]||{}}return br}var mr=yr;function yr(t,e,r){var o=e&&e[t];return function(e){var n=e&&e[t]||o;if(n||r){var i=arguments;return(n||r).apply(e,n?Oe[we](i,1):i)}or('"'+Ze(t)+'" not defined for '+er(e))}}function wr(t){return function(e){return e[t]}}var _r=ie(Ee,"max"),xr=mr("slice",Se),Cr=mr("substring",Se),kr=yr("substr",Se,Sr);function Sr(t,e,r){return Le(t)&&or("Invalid "+er(t)),r<0?ce:((e=e||0)<0&&(e=_r(e+t[me],0)),je(r)?xr(t,e):xr(t,e,e+r))}function Er(t,e){return Cr(t,0,e)}var Tr,Ar,Or="_urid";function $r(t){var e={description:Ze(t),toString:function(){return ge+"("+t+")"}};return e[ve]=!0,e}function Ir(t){var e=function(){if(!Tr){var t=vr();Tr=t.gblSym=t.gblSym||{k:{},s:{}}}return Tr}();if(!Ge(e.k,t)){var r=$r(t),o=lr(e.s).length;r[Or]=function(){return o+"_"+r[_e]()},e.k[t]=r,e.s[r[Or]()]=Ze(t)}return e.k[t]}var Dr={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};var Rr,jr=ie(xe,"defineProperty"),Lr=ie(xe,"defineProperties");function Pr(t,e,r){return jr(t,e,function(t){var e={};if(e[Dr.c]=!0,e[Dr.e]=!0,t.l){e.get=function(){return t.l.v};var r=Ke(t.l,"v");r&&r.set&&(e.set=function(e){t.l.v=e})}return Qe(t,(function(t,r){e[Dr[t]]=je(r)?e[Dr[t]]:r})),e}(r))}function Mr(){Rr=vr()}function Nr(t){return jr({toJSON:function(){return t}},"v",{value:t})}var zr,qr="window";function Hr(t,e){var r;return function(){return!Rr&&Mr(),(!r||Rr.lzy)&&(r=Nr($e(t,e).v)),r.v}}function Vr(t){return!Rr&&Mr(),(!zr||!1===t||Rr.lzy)&&(zr=Nr($e(gr).v||le)),zr.v}function Ur(t,e){var r=zr&&!1!==e?zr.v:Vr(e);return r&&r[t]?r[t]:t===qr?Jr():le}function Fr(){return!!Br()}var Br=Hr(Ur,["document"]);function Wr(){return!!Jr()}var Kr,Xr,Gr,Jr=Hr(Ur,[qr]),Qr=Hr(Ur,["navigator"]),Yr=Hr(Ur,["history"]),Zr=Hr((function(){return!!$e((function(){return process&&(process.versions||{}).node})).v})),to=Hr((function(){return!!$e((function(){return self&&self instanceof WorkerGlobalScope})).v}));function eo(){return Kr=Nr($e(Ur,[ge]).v)}function ro(t){var e=(Rr.lzy?0:Kr)||eo();return e.v?e.v[t]:ae}function oo(){return!!no()}function no(){return!Rr&&Mr(),((Rr.lzy?0:Kr)||eo()).v}function io(t,e){var r=fr[t];!Rr&&Mr();var o=(Rr.lzy?0:Kr)||eo();return o.v?o.v[r||t]:e?ae:function(t){var e;!Ar&&(Ar={});var r=fr[t];return r&&(e=Ar[r]=Ar[r]||$r(ge+"."+r)),e}(t)}function so(t,e){!Rr&&Mr();var r=(Rr.lzy?0:Kr)||eo();return r.v?r.v(t):e?le:$r(t)}function ao(t){return!Rr&&Mr(),((Xr=(Rr.lzy?0:Xr)||Nr($e(ro,["for"]).v)).v||Ir)(t)}function lo(t){return!!t&&Ne(t.next)}function co(t,e,r){if(t&&(lo(t)||(!Gr&&(Gr=Nr(io(3))),t=t[Gr.v]?t[Gr.v]():null),lo(t))){var o=ae,n=ae;try{for(var i=0;!(n=t.next()).done&&-1!==e[we](r||t,n.value,i,t);)i++}catch(e){o={e},t.throw&&(n=le,t.throw(o))}finally{try{n&&!n.done&&t.return&&t.return(n)}finally{if(o)throw o.e}}}}function uo(t,e,r){return t.apply(e,r)}function po(t,e){return!je(e)&&t&&(qe(e)?uo(t.push,t,e):lo(e)||!function(t){return t===le||!Pe(t)}(r=e)&&Ne(r[io(3)])?co(e,(function(e){t.push(e)})):t.push(e)),t;var r}function bo(t,e,r){if(t)for(var o=t[me]>>>0,n=0;n<o&&(!(n in t)||-1!==e[we](r||t,t[n],n,t));n++);}var fo=mr("indexOf",Ae),ho=mr("map",Ae);function go(t,e,r){return(t&&t.slice||Oe).apply(t,Oe[we](arguments,1))}var vo,mo,yo=mr("reduce",Ae),wo=ne(ie(xe,"create"),_o);function _o(t){if(!t)return{};var e=typeof t;function r(){}return e!==ue&&e!==de&&or("Prototype must be an Object or function: "+er(t)),r[pe]=t,new r}function xo(t,e){var r=xe.setPrototypeOf||function(t,e){var r;!vo&&(vo=Nr(((r={})[be]=[],r instanceof Array))),vo.v?t[be]=e:Qe(e,(function(e,r){return t[e]=r}))};return r(t,e)}function Co(t,e){e&&(t[ye]=e)}function ko(t,e,r){var o=r||Error,n=o[pe][ye],i=Error.captureStackTrace;return function(t,e,r){function o(){this[he]=e,$e(Pr,[this,ye,{v:t,c:!0,e:!1}])}return $e(Pr,[e,ye,{v:t,c:!0,e:!1}]),(e=xo(e,r))[pe]=r===le?wo(r):(o[pe]=r[pe],new o),e}(t,(function(){var r=this,s=arguments;try{$e(Co,[o,t]);var a=uo(o,r,Oe[we](s))||r;if(a!==r){var l=ur(r);l!==ur(a)&&xo(a,l)}return i&&i(a,r[he]),e&&e(a,s),a}finally{$e(Co,[o,n])}}),o)}function So(){return(Date.now||Eo)()}function Eo(){return(new Date).getTime()}function To(t){return function(e){return Le(e)&&or("strTrim called ["+er(e)+"]"),e&&e.replace&&(e=e.replace(t,ce)),e}}var Ao,Oo,$o,Io=yr("trim",Se,To(/^\s+|(?=\s)\s+$/g));function Do(t){if(!t||typeof t!==ue)return!1;$o||($o=!Wr()||Jr());var e=!1;if(t!==$o){Oo||(Ao=Function[pe][_e],Oo=Ao[we](xe));try{var r=ur(t);(e=!r)||(Xe(r,he)&&(r=r[he]),e=r&&typeof r===de&&Ao[we](r)===Oo)}catch(t){}}return e}function Ro(t){return t.value&&Mo(t),!0}var jo=[function(t){var e=t.value;if(qe(e)){var r=t.result=[];return r.length=e.length,t.copyTo(r,e),!0}return!1},Mo,function(t){return t.type===de},function(t){var e=t.value;return!!He(e)&&(t.result=new Date(e.getTime()),!0)}];function Lo(t,e,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 e,l=!1,c=!1;e&&a===ue?l=Do(e):c=e===le||function(t){return!se&&(se=["string","number","boolean",fe,"symbol","bigint"]),t!==ue&&-1!==se.indexOf(t)}(a);var d={type:a,isPrim:c,isPlain:l,value:e,result:e,path:i,origin:r.src,copy:function(e,o){return Lo(t,e,o?s:r,o)},copyTo:function(e,r){return Po(t,e,r,s)}};return d.isPrim?n&&n[we](r,d)?d.result:e:function(t,e,o,i){var s;return bo(t,(function(t){if(t.k===e)return s=t,-1})),s||(s={k:e,v:e},t.push(s),function(t){Pr(d,"result",{g:function(){return t.v},s:function(e){t.v=e}});for(var e=0,o=n;!(o||(e<jo.length?jo[e++]:Ro))[we](r,d);)o=le}(s)),s.v}(t,e)}function Po(t,e,r,o){if(!Le(r))for(var n in r)e[n]=Lo(t,r[n],o,n);return e}function Mo(t){var e=t.value;if(e&&t.isPlain){var r=t.result={};return t.copyTo(r,e),!0}return!1}function No(t,e){return bo(e,(function(e){!function(t,e,r){Po([],t,e,{handler:void 0,src:e,path:[]})}(t,e)})),t}function zo(t,e,r,o,n,i,s){return No(Lo([],a=t,{handler:undefined,src:a})||{},Oe[we](arguments));var a}var qo,Ho=wr(me);function Vo(){return!Rr&&Mr(),(!qo||Rr.lzy)&&(qo=Nr($e(Ur,["performance"]).v)),qo.v}var Uo=mr("split",Se);function Fo(t,e,r){if(t&&e){var o=Uo(e,"."),n=o.pop();bo(o,(function(e){Le(t[e])&&(t[e]={}),t=t[e]})),t[n]=r}}oo();var Bo=yr("endsWith",Se,Wo);function Wo(t,e,r){Me(t)||or("'"+er(t)+"' is not a string");var o=Me(e)?e:Ze(e),n=!je(r)&&r<t[me]?r:t[me];return Cr(t,n-o[me],n)===o}var Ko,Xo=mr("indexOf",Se),Go="ref",Jo="unref",Qo="hasRef",Yo="enabled";function Zo(t,e,r){var o=qe(e),n=o?e.length:0,i=(n>0?e[0]:o?ae:e)||setTimeout,s=(n>1?e[1]:ae)||clearTimeout,a=r[0];r[0]=function(){l.dn(),uo(a,ae,Oe[we](arguments))};var l=function(t,e,r){var o,n=!0,i=t?e(le):le;function s(){return n=!1,i&&i[Jo]&&i[Jo](),o}function a(){i&&r(i),i=le}function l(){return i=e(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=jr(o,Yo,{get:function(){return!!i},set:function(t){!t&&i&&a(),t&&!i&&l()}}),dn:function(){i=le}}}(t,(function(t){if(t){if(t.refresh)return t.refresh(),t;uo(s,ae,[t])}return uo(i,ae,r)}),(function(t){uo(s,ae,[t])}));return l.h}function tn(t,e){return Zo(!0,ae,Oe[we](arguments))}var en="constructor",rn="prototype",on="function",nn="_dynInstFuncs",sn="_isDynProxy",an="_dynClass",ln="_dynInstChk",cn=ln,dn="_dfOpts",un="_unknown_",pn="__proto__",bn="_dyn"+pn,fn="__dynProto$Gbl",hn="_dynInstProto",gn="useBaseInst",vn="setInstFuncs",mn=Object,yn=mn.getPrototypeOf,wn=mn.getOwnPropertyNames,_n=Vr(),xn=_n[fn]||(_n[fn]={o:(Ko={},Ko[vn]=!0,Ko[gn]=!0,Ko),n:1e3});function Cn(t){return t&&(t===mn[rn]||t===Array[rn])}function kn(t){return Cn(t)||t===Function[rn]}function Sn(t){var e;if(t){if(yn)return yn(t);var r=t[pn]||t[rn]||(t[en]?t[en][rn]:null);e=t[bn]||r,Xe(t,bn)||(delete t[hn],e=t[bn]=t[hn]||t[bn],t[hn]=r)}return e}function En(t,e){var r=[];if(wn)r=wn(t);else for(var o in t)"string"==typeof o&&Xe(t,o)&&r.push(o);if(r&&r.length>0)for(var n=0;n<r.length;n++)e(r[n])}function Tn(t,e,r){return e!==en&&typeof t[e]===on&&(r||Xe(t,e))&&e!==pn&&e!==rn}function An(t){or("DynamicProto: "+t)}function On(t,e){for(var r=t.length-1;r>=0;r--)if(t[r]===e)return!0;return!1}function $n(t,e,r,o,n){if(!Cn(t)){var i=r[nn]=r[nn]||wo(null);if(!Cn(i)){var s=i[e]=i[e]||wo(null);!1!==i[cn]&&(i[cn]=!!n),Cn(s)||En(r,(function(e){Tn(r,e,!1)&&r[e]!==o[e]&&(s[e]=r[e],delete r[e],(!Xe(t,e)||t[e]&&!t[e][sn])&&(t[e]=function(t,e){var r=function(){var o=function(t,e,r,o){var n=null;if(t&&Xe(r,an)){var i=t[nn]||wo(null);if((n=(i[r[an]]||wo(null))[e])||An("Missing ["+e+"] "+on),!n[ln]&&!1!==i[cn]){for(var s=!Xe(t,e),a=Sn(t),l=[];s&&a&&!kn(a)&&!On(l,a);){var c=a[e];if(c){s=c===o;break}l.push(a),a=Sn(a)}try{s&&(t[e]=n),n[ln]=1}catch(t){i[cn]=!1}}}return n}(this,e,t,r)||function(t,e,r){var o=e[t];return o===r&&(o=Sn(e)[t]),typeof o!==on&&An("["+t+"] is not a "+on),o}(e,t,r);return o.apply(this,arguments)};return r[sn]=1,r}(t,e)))}))}}}function In(t,e){return Xe(t,rn)?t.name||e||un:((t||{})[en]||{}).name||e||un}function Dn(t,e,r,o){Xe(t,rn)||An("theClass is an invalid class definition.");var n=t[rn];(function(t,e){if(yn){for(var r=[],o=Sn(e);o&&!kn(o)&&!On(r,o);){if(o===t)return!0;r.push(o),o=Sn(o)}return!1}return!0})(n,e)||An("["+In(t)+"] not in hierarchy of ["+In(e)+"]");var i=null;Xe(n,an)?i=n[an]:(i="_dynCls$"+In(t,"_")+"$"+xn.n,xn.n++,n[an]=i);var s=Dn[dn],a=!!s[gn];a&&o&&void 0!==o[gn]&&(a=!!o[gn]);var l=function(t){var e=wo(null);return En(t,(function(r){!e[r]&&Tn(t,r,!1)&&(e[r]=t[r])})),e}(e),c=function(t,e,r,o){function n(t,e,r){var n=e[r];if(n[sn]&&o){var i=t[nn]||{};!1!==i[cn]&&(n=(i[e[an]]||{})[r]||n)}return function(){return n.apply(t,arguments)}}var i=wo(null);En(r,(function(t){i[t]=n(e,r,t)}));for(var s=Sn(t),a=[];s&&!kn(s)&&!On(a,s);)En(s,(function(t){!i[t]&&Tn(s,t,!yn)&&(i[t]=n(e,s,t))})),a.push(s),s=Sn(s);return i}(n,e,l,a);r(e,c);var d=!!yn&&!!s[vn];d&&o&&(d=!!o[vn]),$n(n,i,e,l,!1!==d)}Dn[dn]=xn.o;var Rn="function",jn="object",Ln="undefined",Pn="prototype",Mn=Object,Nn=Mn[Pn],zn=((Vr()||{}).Symbol,(Vr()||{}).Reflect,"hasOwnProperty"),qn=ar||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Nn[zn].call(e,n)&&(t[n]=e[n]);return t},Hn=function(t,e){return Hn=Mn.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e[zn](r)&&(t[r]=e[r])},Hn(t,e)};function Vn(t,e){function r(){this.constructor=t}typeof e!==Rn&&null!==e&&or("Class extends value "+String(e)+" is not a constructor or null"),Hn(t,e),t[Pn]=null===e?wo(e):(r[Pn]=e[Pn],new r)}function Un(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t}var Fn="toLowerCase",Bn="blkVal",Wn="length",Kn="rdOnly",Xn="notify",Gn="warnToConsole",Jn="throwInternal",Qn="setDf",Yn="watch",Zn="logger",ti="apply",ei="push",ri="splice",oi="hdlr",ni="cancel",ii="initialize",si="identifier",ai="removeNotificationListener",li="addNotificationListener",ci="isInitialized",di="getNotifyMgr",ui="getPlugin",pi="pollInternalLogs",bi="name",fi="time",hi="processNext",gi="getProcessTelContext",vi="enabled",mi="stopPollingInternalLogs",yi="unload",wi="onComplete",_i="version",xi="loggingLevelConsole",Ci="createNew",ki="teardown",Si="messageId",Ei="message",Ti="isAsync",Ai="diagLog",Oi="_doTeardown",$i="update",Ii="getNext",Di="setNextPlugin",Ri="protocol",ji="userAgent",Li="split",Pi="nodeType",Mi="replace",Ni="logInternalMessage",zi="type",qi="handler",Hi="status",Vi="getResponseHeader",Ui="getAllResponseHeaders",Fi="isChildEvt",Bi="data",Wi="getCtx",Ki="setCtx",Xi="complete",Gi="itemsReceived",Ji="urlString",Qi="sendPOST",Yi="headers",Zi="timeout",ts="setRequestHeader",es="traceId",rs="spanId",os="traceFlags",ns=void 0,is="",ss="channels",as="core",ls="createPerfMgr",cs="disabled",ds="extensionConfig",us="extensions",ps="processTelemetry",bs="priority",fs="eventsSent",hs="eventsDiscarded",gs="eventsSendRequest",vs="perfEvent",ms="offlineEventsStored",ys="offlineBatchSent",ws="offlineBatchDrop",_s="getPerfMgr",xs="domain",Cs="path",ks="Not dynamic - ",Ss=/-([a-z])/g,Es=/([^\w\d_$])/g,Ts=/^(\d+[\w\d_$])/,As=Object.getPrototypeOf;function Os(t){return!Le(t)}function $s(t){var e=t;return e&&Me(e)&&(e=(e=(e=e[Mi](Ss,(function(t,e){return e.toUpperCase()})))[Mi](Es,"_"))[Mi](Ts,(function(t,e){return"_"+e}))),e}function Is(t,e){return!(!t||!e)&&-1!==Xo(t,e)}function Ds(t){return t&&t.toISOString()||""}function Rs(t){return Fe(t)?t[bi]:is}function js(t,e,r,o,n){var i=r;return t&&((i=t[e])===r||n&&!n(i)||o&&!o(r)||(i=r,t[e]=i)),i}function Ls(t,e,r){var o;return t?!(o=t[e])&&Le(o)&&(o=je(r)?{}:r,t[e]=o):o=je(r)?{}:r,o}function Ps(t,e){var r=null,o=null;return Ne(t)?r=t:o=t,function(){var t=arguments;if(r&&(o=r()),o)return o[e][ti](o,t)}}function Ms(t,e,r,o,n){t&&e&&r&&(!1!==n||je(t[e]))&&(t[e]=Ps(r,o))}function Ns(t,e,r,o){return t&&e&&ze(t)&&qe(r)&&bo(r,(function(r){Me(r)&&Ms(t,r,e,r,o)})),t}function zs(t){return t&&ar&&(t=Mn(ar({},t))),t}function qs(t,e,r,o,n,i){var s=arguments,a=s[0]||{},l=s[Wn],c=!1,d=1;for(l>0&&Ue(a)&&(c=a,a=s[d]||{},d++),ze(a)||(a={});d<l;d++){var u=s[d],p=qe(u),b=ze(u);for(var f in u)if(p&&f in u||b&&Ge(u,f)){var h=u[f],g=void 0;if(c&&h&&((g=qe(h))||Do(h))){var v=a[f];g?qe(v)||(v=[]):Do(v)||(v={}),h=qs(c,v,h)}void 0!==h&&(a[f]=h)}}return a}function Hs(t,e){var r=!1,o=e&&e.featureOptIn&&e.featureOptIn[t];if(t&&o){var n=o.mode;r=3==n||1==n}return r}function Vs(t){try{return t.responseText}catch(t){}return null}function Us(t,e){return t?"XDomainRequest,Response:"+Vs(t)||0:e}function Fs(t,e){return t?"XMLHttpRequest,Status:"+t[Hi]+",Response:"+Vs(t)||0:e}function Bs(t,e){return e&&(Ve(e)?t=[e].concat(t):qe(e)&&(t=e.concat(t))),t}var Ws="withCredentials";function Ks(t,e,r){if(!t[r]&&e&&e[Vi]){var o=e[Vi](r);o&&(t[r]=Io(o))}return t}function Xs(t,e){var r,o,n={};return t[Ui]?(r=t[Ui](),o={},Me(r)&&bo(Io(r)[Li](/[\r\n]+/),(function(t){if(t){var e=t.indexOf(": ");if(-1!==e){var r=Io(t.substring(0,e))[Fn](),n=Io(t.substring(e+1));o[r]=n}else o[Io(t)]=1}})),n=o):e&&(n=Ks(n,t,"time-delta-millis"),n=Ks(n,t,"kill-duration"),n=Ks(n,t,"kill-duration-seconds")),n}var Gs="location",Js="JSON",Qs="crypto",Ys="msCrypto",Zs="msie",ta="trident/",ea="XMLHttpRequest",ra=null,oa=null,na=!1,ia=null,sa=null;function aa(t,e){var r=!1;if(t){try{if(!(r=e in t)){var o=t[Pn];o&&(r=e in o)}}catch(t){}if(!r)try{r=!je((new t)[e])}catch(t){}}return r}function la(t){if(t&&na){var e=Ur("__mockLocation");if(e)return e}return typeof location===jn&&location?location:Ur(Gs)}function ca(){return Boolean(typeof JSON===jn&&JSON||null!==Ur(Js))}function da(){return ca()?JSON||Ur(Js):null}function ua(){var t=Qr();if(t&&(t[ji]!==oa||null===ra)){var e=((oa=t[ji])||is)[Fn]();ra=Is(e,Zs)||Is(e,ta)}return ra}function pa(t){if(void 0===t&&(t=null),!t){var e=Qr()||{};t=e?(e.userAgent||is)[Fn]():is}var r=(t||is)[Fn]();if(Is(r,Zs)){var o=Br()||{};return Math.max(parseInt(r[Li](Zs)[1]),o.documentMode||0)}if(Is(r,ta)){var n=parseInt(r[Li](ta)[1]);if(n)return n+4}return null}function ba(t){return null!==sa&&!1!==t||(sa=!!Qr()&&Boolean(Qr().sendBeacon)),sa}function fa(t){var e=!1;try{e=!!Ur("fetch");var r=Ur("Request");e&&t&&r&&(e=aa(r,"keepalive"))}catch(t){}return e}function ha(){var t=!1;try{t=!!Ur(ea)}catch(t){}return t}var ga=4294967296,va=4294967295,ma=123456789,ya=987654321,wa=!1,_a=ma,xa=ya;function Ca(){try{var t=2147483647&So();(e=(Math.random()*ga^t)+t)<0&&(e>>>=0),_a=ma+e&va,xa=ya-e&va,wa=!0}catch(t){}var e}function ka(t){var e=0,r=Ur(Qs)||Ur(Ys);return r&&r.getRandomValues&&(e=r.getRandomValues(new Uint32Array(1))[0]&va),0===e&&ua()&&(wa||Ca(),e=function(t){var e=((xa=36969*(65535&xa)+(xa>>16)&va)<<16)+(65535&(_a=18e3*(65535&_a)+(_a>>16)&va))>>>0&va;return e>>>=0}()&va),0===e&&(e=Math.floor(ga*Math.random()|0)),t||(e>>>=0),e}function Sa(t){void 0===t&&(t=22);for(var e=ka()>>>0,r=0,o=is;o[Wn]<t;)r++,o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&e),e>>>=6,5===r&&(e=(ka()<<2&4294967295|3&e)>>>0,r=0);return o}var Ea="3.2.0",Ta="."+Sa(6),Aa=0;function Oa(t){return 1===t[Pi]||9===t[Pi]||!+t[Pi]}function $a(t,e){return void 0===e&&(e=!1),$s(t+Aa+++(e?"."+Ea:is)+Ta)}function Ia(t){var e={id:$a("_aiData-"+(t||is)+"."+Ea),accept:function(t){return Oa(t)},get:function(t,r,o,n){var i=t[e.id];return i?i[$s(r)]:(n&&(i=function(t,e){var r=e[t.id];if(!r){r={};try{Oa(e)&&Pr(e,t.id,{e:!1,v:r})}catch(t){}}return r}(e,t),i[$s(r)]=o),o)},kill:function(t,e){if(t&&t[e])try{delete t[e]}catch(t){}}};return e}function Da(t){return t&&ze(t)&&(t.isVal||t.fb||Ge(t,"v")||Ge(t,"mrg")||Ge(t,"ref")||t.set)}function Ra(t,e,r){var o,n=r.dfVal||Pe;if(e&&r.fb){var i=r.fb;qe(i)||(i=[i]);for(var s=0;s<i[Wn];s++){var a=i[s],l=e[a];if(n(l)?o=l:t&&(n(l=t.cfg[a])&&(o=l),t.set(t.cfg,Ze(a),l)),n(o))break}}return!n(o)&&n(r.v)&&(o=r.v),o}function ja(t,e,r){var o,n=r;return r&&Da(r)&&(n=Ra(t,e,r)),n&&(Da(n)&&(n=ja(t,e,n)),qe(n)?(o=[])[Wn]=n[Wn]:Do(n)&&(o={}),o&&(Qe(n,(function(r,n){n&&Da(n)&&(n=ja(t,e,n)),o[r]=n})),n=o)),n}function La(t,e,r,o){var n,i,s,a,l,c,d,u,p=o;Da(p)?(n=p.isVal,i=p.set,c=p[Kn],d=p[Bn],a=p.mrg,!(l=p.ref)&&je(l)&&(l=!!a),s=Ra(t,e,p)):s=o,d&&t[Bn](e,r);var b=!0,f=e[r];!f&&Le(f)||(u=f,b=!1,n&&u!==s&&!n(u)&&(u=s,b=!0),i&&(b=(u=i(u,s,e))===s)),b?u=s?ja(t,e,s):s:(Do(u)||qe(s))&&a&&s&&(Do(s)||qe(s))&&Qe(s,(function(e,r){La(t,u,e,r)})),t.set(e,r,u),l&&t.ref(e,r),c&&t[Kn](e,r)}var Pa=ao("[[ai_dynCfg_1]]"),Ma=ao("[[ai_blkDynCfg_1]]"),Na=ao("[[ai_frcDynCfg_1]]");function za(t){var e;return t&&(qe(t)?(e=[])[Wn]=t[Wn]:Do(t)&&(e={}),e)?(Qe(t,(function(t,r){e[t]=za(r)})),e):t}function qa(t,e,r){var o=!1;return r&&!t[e.blkVal]&&((o=r[Na])||r[Ma]||(o=Do(r)||qe(r))),o}function Ha(t){or("InvalidAccess:"+t)}var Va,Ua=["push","pop","shift","unshift","splice"],Fa=function(t,e,r,o){t&&t[Jn](3,108,"".concat(r," [").concat(e,"] failed - ")+er(o))};function Ba(t,e){var r=Ke(t,e);return r&&r.get}function Wa(t,e,r,o){if(e){var n=Ba(e,r);n&&n[t.prop]?e[r]=o:function(t,e,r,o){var n={n:r,h:[],trk:function(e){e&&e.fn&&(-1===fo(n.h,e)&&n.h[ei](e),t.trk(e,n))},clr:function(t){var e=fo(n.h,t);-1!==e&&n.h[ri](e,1)}},i=!0,s=!1;function a(){i&&(s=s||qa(a,t,o),o&&!o[Pa]&&s&&(o=Xa(t,o,r,"Converting")),i=!1);var e=t.act;return e&&n.trk(e),o}a[t.prop]={chng:function(){t.add(n)}},Pr(e,n.n,{g:a,s:function(l){if(o!==l){a[t.ro]&&!t.upd&&Ha("["+r+"] is read-only:"+er(e)),i&&(s=s||qa(a,t,o),i=!1);var c=s&&a[t.rf];if(s)if(c){Qe(o,(function(t){o[t]=l?l[t]:ns}));try{Qe(l,(function(e,r){Wa(t,o,e,r)})),l=o}catch(e){Fa((t.hdlr||{})[Zn],r,"Assigning",e),s=!1}}else o&&o[Pa]&&Qe(o,(function(e){var r=Ba(o,e);if(r){var n=r[t.prop];n&&n.chng()}}));if(l!==o){var d=l&&qa(a,t,l);!c&&d&&(l=Xa(t,l,r,"Converting")),o=l,s=d}t.add(n)}}})}(t,e,r,o)}return e}function Ka(t,e,r,o){if(e){var n=Ba(e,r),i=n&&!!n[t.prop],s=o&&o[0],a=o&&o[1],l=o&&o[2];if(!i){if(l)try{!function(t){if(t&&(Do(t)||qe(t)))try{t[Ma]=!0}catch(t){}}(e)}catch(e){Fa((t.hdlr||{})[Zn],r,"Blocking",e)}try{Wa(t,e,r,e[r]),n=Ba(e,r)}catch(e){Fa((t.hdlr||{})[Zn],r,"State",e)}}s&&(n[t.rf]=s),a&&(n[t.ro]=a),l&&(n[t.blkVal]=!0)}return e}function Xa(t,e,r,o){try{Qe(e,(function(r,o){Wa(t,e,r,o)})),e[Pa]||(jr(e,Pa,{get:function(){return t[oi]}}),function(t,e,r){qe(e)&&bo(Ua,(function(o){var n=e[o];e[o]=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=n[ti](this,o);return Xa(t,e,r,"Patching"),s}}))}(t,e,r))}catch(e){Fa((t.hdlr||{})[Zn],r,o,e)}return e}var Ga="[[ai_",Ja="]]";function Qa(t,e,r){var o,n=function(t){if(t){var e=t[Pa]||t;if(e.cfg&&(e.cfg===t||e.cfg[Pa]===e))return e}return null}(e);if(n)return n;var i,s=$a("dyncfg",!0),a=e&&!1!==r?e:za(e),l=((o={uid:null,cfg:a})[Zn]=t,o[Xn]=function(){i[Xn]()},o.set=function(e,r,o){try{e=Wa(i,e,r,o)}catch(e){Fa(t,r,"Setting value",e)}return e[r]},o[Qn]=function(t,e){return e&&Qe(e,(function(e,r){La(l,t,e,r)})),t},o[Yn]=function(t){return function(t,e){var r={fn:e,rm:function(){r.fn=null,t=null,e=null}};return Pr(r,"toJSON",{v:function(){return"WatcherHandler"+(r.fn?"":"[X]")}}),t.use(r,e),r}(i,t)},o.ref=function(t,e){var r;return Ka(i,t,e,(r={},r[0]=!0,r))[e]},o[Kn]=function(t,e){var r;return Ka(i,t,e,(r={},r[1]=!0,r))[e]},o[Bn]=function(t,e){var r;return Ka(i,t,e,(r={},r[2]=!0,r))[e]},o._block=function(t,e){i.use(null,(function(r){var o=i.upd;try{je(e)||(i.upd=e),t(r)}finally{i.upd=o}}))},o);return Pr(l,"uid",{c:!1,e:!1,w:!1,v:s}),Xa(i=function(t){var e,r,o=so(Ga+"get"+t.uid+Ja),n=so(Ga+"ro"+t.uid+Ja),i=so(Ga+"rf"+t.uid+Ja),s=so(Ga+"blkVal"+t.uid+Ja),a=so(Ga+"dtl"+t.uid+Ja),l=null,c=null;function d(e,o){var n=r.act;try{r.act=e,e&&e[a]&&(bo(e[a],(function(t){t.clr(e)})),e[a]=[]),o({cfg:t.cfg,set:t.set.bind(t),setDf:t[Qn].bind(t),ref:t.ref.bind(t),rdOnly:t[Kn].bind(t)})}catch(e){var i=t[Zn];throw i&&i[Jn](1,107,er(e)),e}finally{r.act=n||null}}function u(){if(l){var t=l;l=null,c&&c[ni](),c=null;var e=[];if(bo(t,(function(t){if(t&&(t[a]&&(bo(t[a],(function(e){e.clr(t)})),t[a]=null),t.fn))try{d(t,t.fn)}catch(t){e[ei](t)}})),l)try{u()}catch(t){e[ei](t)}e[Wn]>0&&function(t,e){Va||(Va=ko("AggregationError",(function(t,e){e[Wn]>1&&(t.errors=e[1])})));var r="Watcher error(s): ";throw bo(e,(function(t,e){r+="\n".concat(e," > ").concat(er(t))})),new Va(r,e||[])}(0,e)}}return(e={prop:o,ro:n,rf:i})[Bn]=s,e[oi]=t,e.add=function(t){if(t&&t.h[Wn]>0){l||(l=[]),c||(c=tn((function(){c=null,u()}),0));for(var e=0;e<t.h[Wn];e++){var r=t.h[e];r&&-1===fo(l,r)&&l[ei](r)}}},e[Xn]=u,e.use=d,e.trk=function(t,e){if(t){var r=t[a]=t[a]||[];-1===fo(r,e)&&r[ei](e)}},r=e}(l),a,"config","Creating"),l}function Ya(t,e,r,o){var n=Qa(r,t||{},o);return e&&n[Qn](n.cfg,e),n}function Za(t,e,r){var o=t[Pa]||t;return!o.cfg||o.cfg!==t&&o.cfg[Pa]!==o?(function(t,e){t?(t[Gn](e),t[Jn](2,108,e)):Ha(e)}(r,ks+er(t)),Ya(t,null,r)[Yn](e)):o[Yn](e)}var tl,el,rl=[fs,hs,gs,vs],ol=null;function nl(t,e){return function(){var r=arguments,o=il(e);if(o){var n=o.listener;n&&n[t]&&n[t][ti](n,r)}}}function il(t){var e,r=ol;return r||!0===t.disableDbgExt||(r=ol||((e=Ur("Microsoft"))&&(ol=e.ApplicationInsights),ol)),r?r.ChromeDbgExt:null}var sl="warnToConsole",al={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},ll=((el={})[0]=null,el[1]="errorToConsole",el[2]=sl,el[3]="debugToConsole",el);function cl(t){return t?'"'+t[Mi](/\"/g,is)+'"':is}function dl(t,e){var r=typeof console!==Ln?console:Ur("console");if(r){var o="log";r[t]&&(o=t),Ne(r[o])&&r[o](e)}}var ul=function(){function t(t,e,r,o){void 0===r&&(r=!1);var n=this;n[Si]=t,n[Ei]=(r?"AI: ":"AI (Internal): ")+t;var i=is;ca()&&(i=da().stringify(o));var s=(e?" message:"+cl(e):is)+(o?" props:"+cl(i):is);n[Ei]+=s}return t.dataType="MessageData",t}();function pl(t,e){return(t||{})[Zn]||new bl(e)}var bl=function(){function t(e){this.identifier="DiagnosticLogger",this.queue=[];var r,o,n,i,s,a=0,l={};Dn(t,this,(function(t){function c(e,r){if(!(a>=n)){var i=!0,s="AITR_"+r[Si];if(l[s]?i=!1:l[s]=!0,i&&(e<=o&&(t.queue[ei](r),a++,d(1===e?"error":"warn",r)),a===n)){var c="Internal events throttle limit per PageView reached for this app.",u=new ul(23,c,!1);t.queue[ei](u),1===e?t.errorToConsole(c):t[Gn](c)}}}function d(t,r){var o=il(e||{});o&&o[Ai]&&o[Ai](t,r)}s=function(e){return Za(Ya(e,al,t).cfg,(function(t){var e=t.cfg;r=e[xi],o=e.loggingLevelTelemetry,n=e.maxMessageLimit,i=e.enableDebug}))}(e||{}),t.consoleLoggingLevel=function(){return r},t[Jn]=function(e,o,n,s,a){void 0===a&&(a=!1);var u=new ul(o,n,a,s);if(i)throw er(u);var p=ll[e]||sl;if(je(u[Ei]))d("throw"+(1===e?"Critical":"Warning"),u);else{if(a){var b=+u[Si];!l[b]&&r>=e&&(t[p](u[Ei]),l[b]=!0)}else r>=e&&t[p](u[Ei]);c(e,u)}},t.debugToConsole=function(t){dl("debug",t),d("warning",t)},t[Gn]=function(t){dl("warn",t),d("warning",t)},t.errorToConsole=function(t){dl("error",t),d("error",t)},t.resetInternalMessageCount=function(){a=0,l={}},t[Ni]=c,t[yi]=function(t){s&&s.rm(),s=null}}))}return t.__ieDyn=1,t}();function fl(t){return t||new bl}function hl(t,e,r,o,n,i){void 0===i&&(i=!1),fl(t)[Jn](e,r,o,n,i)}function gl(t,e){fl(t)[Gn](e)}var vl=function(t){return Ye(t,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",Cl="toString",kl="push",Sl="removeItem",El="name",Tl="message",Al="count",Ol="preTriggerDate",$l="disabled",Il="interval",Dl="daysOfMonth",Rl="date",jl="getUTCDate",Ll="stringify",Pl="pathname",Ml="correlationHeaderExcludePatterns",Nl="exceptions",zl="parsedStack",ql="properties",Hl="measurements",Vl="sizeInBytes",Ul="typeName",Fl="severityLevel",Bl="problemGroup",Wl="isManual",Kl="CreateFromInterface",Xl="assembly",Gl="fileName",Jl="hasFullStack",Ql="level",Yl="method",Zl="line",tc="duration",ec="receivedResponse",rc=void 0,oc=void 0,nc="";function ic(){return cc()?sc(ml.LocalStorage):null}function sc(t){try{if(Le(Vr()))return null;var e=(new Date)[Cl](),r=Ur(t===ml.LocalStorage?"localStorage":"sessionStorage"),o=nc+e;r.setItem(o,e);var n=r.getItem(o)!==e;if(r[Sl](o),!n)return r}catch(t){}return null}function ac(){return pc()?sc(ml.SessionStorage):null}function lc(t){nc=t||""}function cc(t){return(t||void 0===rc)&&(rc=!!sc(ml.LocalStorage)),rc}function dc(t,e){var r=ic();if(null!==r)try{return r.getItem(e)}catch(e){rc=!1,hl(t,2,1,"Browser failed read of local storage. "+Rs(e),{exception:er(e)})}return null}function uc(t,e,r){var o=ic();if(null!==o)try{return o.setItem(e,r),!0}catch(e){rc=!1,hl(t,2,3,"Browser failed write to local storage. "+Rs(e),{exception:er(e)})}return!1}function pc(t){return(t||void 0===oc)&&(oc=!!sc(ml.SessionStorage)),oc}function bc(t,e){var r=ac();if(null!==r)try{return r.getItem(e)}catch(e){oc=!1,hl(t,2,2,"Browser failed read of session storage. "+Rs(e),{exception:er(e)})}return null}function fc(t,e,r){var o=ac();if(null!==o)try{return o.setItem(e,r),!0}catch(e){oc=!1,hl(t,2,4,"Browser failed write to session storage. "+Rs(e),{exception:er(e)})}return!1}function hc(t,e){var r=ac();if(null!==r)try{return r[Sl](e),!0}catch(e){oc=!1,hl(t,2,6,"Browser failed removal of session storage item. "+Rs(e),{exception:er(e)})}return!1}var gc="AppInsightsPropertiesPlugin",vc="AppInsightsChannelPlugin",mc="ApplicationInsightsAnalytics",yc="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",wc="sampleRate",_c="ProcessLegacy",xc="http.method",Cc="https://dc.services.visualstudio.com",kc="/v2/track",Sc="not_specified",Ec="iKey";function Tc(t,e,r){var o=e[wl],n=function(t,e){var r;return e&&(e=Io(Ze(e)))[wl]>150&&(r=Cr(e,0,150),hl(t,2,57,"name is too long. It has been truncated to 150 characters.",{name:e},!0)),r||e}(t,e);if(n[wl]!==o){for(var i=0,s=n;void 0!==r[s];)i++,s=Cr(n,0,147)+jc(i);n=s}return n}function Ac(t,e,r){var o;return void 0===r&&(r=1024),e&&(r=r||1024,(e=Io(Ze(e)))[wl]>r&&(o=Cr(e,0,r),hl(t,2,61,"string value is too long. It has been truncated to "+r+" characters.",{value:e},!0))),o||e}function Oc(t,e){return Rc(t,e,2048,66)}function $c(t,e){var r;return e&&e[wl]>32768&&(r=Cr(e,0,32768),hl(t,2,56,"message is too long, it has been truncated to 32768 characters.",{message:e},!0)),r||e}function Ic(t,e){if(e){var r={};Qe(e,(function(e,o){if(ze(o)&&ca())try{o=da()[Ll](o)}catch(e){hl(t,2,49,"custom property is not valid",{exception:e},!0)}o=Ac(t,o,8192),e=Tc(t,e,r),r[e]=o})),e=r}return e}function Dc(t,e){if(e){var r={};Qe(e,(function(e,o){e=Tc(t,e,r),r[e]=o})),e=r}return e}function Rc(t,e,r,o){var n;return e&&(e=Io(Ze(e)))[wl]>r&&(n=Cr(e,0,r),hl(t,2,o,"input is too long, it has been truncated to "+r+" characters.",{data:e},!0)),n||e}function jc(t){var e="00"+t;return kr(e,e[wl]-3)}function Lc(t,e,r,o,n,i){var s;r=Ac(o,r)||Sc,(Le(t)||Le(e)||Le(r))&&rr("Input doesn't contain all required fields");var a="";t[Ec]&&(a=t[Ec],delete t[Ec]);var l=((s={})[El]=r,s.time=Ds(new Date),s.iKey=a,s.ext=i||{},s.tags=[],s.data={},s.baseType=e,s.baseData=t,s);return Le(n)||Qe(n,(function(t,e){l.data[t]=e})),l}var Pc=function(){function t(t,e,r,o){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var n=this;n.ver=2,n[El]=Ac(t,e)||Sc,n[ql]=Ic(t,r),n[Hl]=Dc(t,o)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Event",t.dataType="EventData",t}(),Mc=function(){function t(t,e,r,o,n){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var i=this;i.ver=2,e=e||Sc,i[Tl]=$c(t,e),i[ql]=Ic(t,o),i[Hl]=Dc(t,n),r&&(i[Fl]=r)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Message",t.dataType="MessageData",t}(),Nc=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},zc=function(){function t(t,e,r,o,n,i,s,a,l){this.aiDataContract={ver:1,metrics:1,properties:0};var c=this;c.ver=2;var d=new Nc;d[Al]=o>0?o:void 0,d.max=isNaN(i)||null===i?void 0:i,d.min=isNaN(n)||null===n?void 0:n,d[El]=Ac(t,e)||Sc,d.value=r,d.stdDev=isNaN(s)||null===s?void 0:s,c.metrics=[d],c[ql]=Ic(t,a),c[Hl]=Dc(t,l)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",t.dataType="MetricData",t}(),qc="";function Hc(t){(isNaN(t)||t<0)&&(t=0),t=Math.round(t);var e=qc+t%1e3,r=qc+Math.floor(t/1e3)%60,o=qc+Math.floor(t/6e4)%60,n=qc+Math.floor(t/36e5)%24,i=Math.floor(t/864e5);return e=1===e[wl]?"00"+e:2===e[wl]?"0"+e:e,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+"."+e}var Vc=function(){function t(t,e,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(t,e){return e?Rc(t,e,128,69)[Cl]():e}(t,s),a.url=Oc(t,r),a[El]=Ac(t,e)||Sc,isNaN(o)||(a[tc]=Hc(o)),a[ql]=Ic(t,n),a[Hl]=Dc(t,i)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",t.dataType="PageviewData",t}(),Uc=function(){function t(t,e,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(t,r),a[El]=Ac(t,e)||Sc,a[ql]=Ic(t,n),a[Hl]=Dc(t,i),s&&(a.domProcessing=s.domProcessing,a[tc]=s[tc],a.networkConnect=s.networkConnect,a.perfTotal=s.perfTotal,a[ec]=s[ec],a.sentRequest=s.sentRequest)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",t.dataType="PageviewPerformanceData",t}(),Fc="error",Bc="stack",Wc="stackDetails",Kc="errorSrc",Xc="message",Gc="description";function Jc(t,e){var r=t;return r&&!Me(r)&&(JSON&&JSON[Ll]?(r=JSON[Ll](t),!e||r&&"{}"!==r||(r=Ne(t[Cl])?t[Cl]():""+t)):r=t+" - (Missing JSON.stringify)"),r||""}function Qc(t,e){var r=t;return t&&(r&&!Me(r)&&(r=t[Xc]||t[Gc]||r),r&&!Me(r)&&(r=Jc(r,!0)),t.filename&&(r=r+" @"+(t.filename||"")+":"+(t.lineno||"?")+":"+(t.colno||"?"))),e&&"String"!==e&&"Object"!==e&&"Error"!==e&&-1===Xo(r||"",e)&&(r=e+": "+r),r||""}function Yc(t){return t&&t.src&&Me(t.src)&&t.obj&&qe(t.obj)}function Zc(t){var e=t||"";Me(e)||(e=Me(e[Bc])?e[Bc]:""+e);var r=e[yl]("\n");return{src:e,obj:r}}function td(t){var e=null;if(t)try{if(t[Bc])e=Zc(t[Bc]);else if(t[Fc]&&t[Fc][Bc])e=Zc(t[Fc][Bc]);else if(t.exception&&t.exception[Bc])e=Zc(t.exception[Bc]);else if(Yc(t))e=t;else if(Yc(t[Wc]))e=t[Wc];else if(Jr()&&Jr().opera&&t[Xc])e=function(t){for(var e=[],r=t[yl]("\n"),o=0;o<r[wl];o++){var n=r[o];r[o+1]&&(n+="@"+r[o+1],o++),e[kl](n)}return{src:t,obj:e}}(t[Tl]);else if(t.reason&&t.reason[Bc])e=Zc(t.reason[Bc]);else if(Me(t))e=Zc(t);else{var r=t[Xc]||t[Gc]||"";Me(t[Kc])&&(r&&(r+="\n"),r+=" from "+t[Kc]),r&&(e=Zc(r))}}catch(t){e=Zc(t)}return e||{src:"",obj:null}}function ed(t){var e="";if(t&&!(e=t.typeName||t[El]||""))try{var r=/function (.{1,200})\(/.exec(t.constructor[Cl]());e=r&&r[wl]>1?r[1]:""}catch(t){}return e}function rd(t){if(t)try{if(!Me(t)){var e=ed(t),r=Jc(t,!1);return r&&"{}"!==r||(t[Fc]&&(e=ed(t=t[Fc])),r=Jc(t,!0)),0!==Xo(r,e)&&"String"!==e?e+":"+r:r}}catch(t){}return""+(t||"")}var od=function(){function t(t,e,r,o,n,i){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,function(t){try{if(ze(t))return"ver"in t&&"exceptions"in t&&"properties"in t}catch(t){}return!1}(e)?(s[Nl]=e[Nl]||[],s[ql]=e[ql],s[Hl]=e[Hl],e[Fl]&&(s[Fl]=e[Fl]),e.id&&(s.id=e.id,e[ql].id=e.id),e[Bl]&&(s[Bl]=e[Bl]),Le(e[Wl])||(s[Wl]=e[Wl])):(r||(r={}),i&&(r.id=i),s[Nl]=[new nd(t,e,r)],s[ql]=Ic(t,r),s[Hl]=Dc(t,o),n&&(s[Fl]=n),i&&(s.id=i))}return t.CreateAutoException=function(t,e,r,o,n,i,s,a){var l,c=ed(n||i||t);return(l={})[Tl]=Qc(t,c),l.url=e,l.lineNumber=r,l.columnNumber=o,l.error=rd(n||i||t),l.evt=rd(i||t),l[Ul]=c,l.stackDetails=td(s||n||i),l.errorSrc=a,l},t.CreateFromInterface=function(e,r,o,n){var i=r[Nl]&&ho(r[Nl],(function(t){return nd[Kl](e,t)}));return new t(e,qn(qn({},r),{exceptions:i}),o,n)},t.prototype.toInterface=function(){var t,e=this,r=e.exceptions,o=e.properties,n=e.measurements,i=e.severityLevel,s=e.problemGroup,a=e.id,l=e.isManual,c=r instanceof Array&&ho(r,(function(t){return t.toInterface()}))||void 0;return(t={ver:"4.0"})[Nl]=c,t.severityLevel=i,t.properties=o,t.measurements=n,t.problemGroup=s,t.id=a,t.isManual=l,t},t.CreateSimpleException=function(t,e,r,o,n,i){var s;return{exceptions:[(s={},s[Jl]=!0,s.message=t,s.stack=n,s.typeName=e,s)]}},t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",t.dataType="ExceptionData",t.formatError=rd,t}(),nd=function(){function t(t,e,r){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var o=this;if(function(t){try{if(ze(t))return"hasFullStack"in t&&"typeName"in t}catch(t){}return!1}(e))o[Ul]=e[Ul],o[Tl]=e[Tl],o[Bc]=e[Bc],o[zl]=e[zl]||[],o[Jl]=e[Jl];else{var n=e,i=n&&n.evt;Fe(n)||(n=n[Fc]||i||n),o[Ul]=Ac(t,ed(n))||Sc,o[Tl]=$c(t,Qc(e||n,o[Ul]))||Sc;var s=e[Wc]||td(e);o[zl]=function(t){var e,r=t.obj;if(r&&r[wl]>0){e=[];var o=0,n=0;if(bo(r,(function(t){var r=t[Cl]();if(id.regex.test(r)){var i=new id(r,o++);n+=i[Vl],e[kl](i)}})),n>32768)for(var i=0,s=e[wl]-1,a=0,l=i,c=s;i<s;){if((a+=e[i][Vl]+e[s][Vl])>32768){var d=c-l+1;e.splice(l,d);break}l=i,c=s,i++,s--}}return e}(s),qe(o[zl])&&ho(o[zl],(function(e){e[Xl]=Ac(t,e[Xl]),e[Gl]=Ac(t,e[Gl])})),o[Bc]=function(t,e){var r;if(e){var o=""+e;o[wl]>32768&&(r=Cr(o,0,32768),hl(t,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0))}return r||e}(t,function(t){var e="";return t&&(t.obj?bo(t.obj,(function(t){e+=t+"\n"})):e=t.src||""),e}(s)),o.hasFullStack=qe(o.parsedStack)&&o.parsedStack[wl]>0,r&&(r[Ul]=r[Ul]||o[Ul])}}return t.prototype.toInterface=function(){var t,e=this,r=e[zl]instanceof Array&&ho(e[zl],(function(t){return t.toInterface()}));return(t={id:e.id,outerId:e.outerId,typeName:e[Ul],message:e[Tl],hasFullStack:e[Jl],stack:e[Bc]})[zl]=r||void 0,t},t.CreateFromInterface=function(e,r){var o=r[zl]instanceof Array&&ho(r[zl],(function(t){return id[Kl](t)}))||r[zl];return new t(e,qn(qn({},r),{parsedStack:o}))},t}(),id=function(){function t(e,r){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var o=this;if(o[Vl]=0,"string"==typeof e){var n=e;o[Ql]=r,o[Yl]="<no_method>",o[Xl]=Io(n),o[Gl]="",o[Zl]=0;var i=n.match(t.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]=e[Ql],o[Yl]=e[Yl],o[Xl]=e[Xl],o[Gl]=e[Gl],o[Zl]=e[Zl],o[Vl]=0;o.sizeInBytes+=o.method[wl],o.sizeInBytes+=o.fileName[wl],o.sizeInBytes+=o.assembly[wl],o[Vl]+=t.baseSize,o.sizeInBytes+=o.level.toString()[wl],o.sizeInBytes+=o.line.toString()[wl]}return t.CreateFromInterface=function(e){return new t(e,null)},t.prototype.toInterface=function(){var t=this;return{level:t[Ql],method:t[Yl],assembly:t[Xl],fileName:t[Gl],line:t[Zl]}},t.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,t.baseSize=58,t}();function sd(){for(var t,e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r=is,o=0;o<4;o++)r+=e[15&(t=ka())]+e[t>>4&15]+e[t>>8&15]+e[t>>12&15]+e[t>>16&15]+e[t>>20&15]+e[t>>24&15]+e[t>>28&15];var n=e[8+(3&ka())|0];return kr(r,0,8)+kr(r,9,4)+"4"+kr(r,13,3)+n+kr(r,16,3)+kr(r,19,12)}var ad="00",ld="00000000000000000000000000000000",cd="0000000000000000";function dd(t,e,r){return!(!t||t[Wn]!==e||t===r||!t.match(/^[\da-f]*$/i))}function ud(t,e,r){return dd(t,e)?t:r}function pd(t,e,r,o){var n;return(n={})[_i]=dd(o,2,"ff")?o:ad,n[es]=bd(t)?t:sd(),n[rs]=fd(e)?e:Er(sd(),16),n.traceFlags=r>=0&&r<=255?r:1,n}function bd(t){return dd(t,32,ld)}function fd(t){return dd(t,16,cd)}function hd(t){if(t){var e=function(t){(isNaN(t)||t<0||t>255)&&(t=1);for(var e=t.toString(16);e[Wn]<2;)e="0"+e;return e}(t[os]);dd(e,2)||(e="01");var r=t[_i]||ad;return"00"!==r&&"ff"!==r&&(r=ad),"".concat(r.toLowerCase(),"-").concat(ud(t.traceId,32,ld).toLowerCase(),"-").concat(ud(t.spanId,16,cd).toLowerCase(),"-").concat(e.toLowerCase())}return""}var gd=function(t){var e={};return Qe(t,(function(t,r){e[t]=r[1],e[r[0]]=r[1]})),cr(e)}({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"]}),vd=Br()||{},md=0,yd=[null,null,null,null,null];function wd(t){var e=md,r=yd,o=r[e];return vd.createElement?r[e]||(o=r[e]=vd.createElement("a")):o={host:_d(t,!0)},o.href=t,++e>=r[wl]&&(e=0),md=e,o}function _d(t,e){var r=xd(t,e)||"";if(r){var o=r.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=o&&o[wl]>3&&Me(o[2])&&o[2][wl]>0)return o[2]+(o[3]||"")}return r}function xd(t,e){var r=null;if(t){var o=t.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=o&&o[wl]>2&&Me(o[2])&&o[2][wl]>0&&(r=o[2]||"",e&&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 Cd=[Cc+kc,"https://breeze.aimon.applicationinsights.io"+kc,"https://dc-int.services.visualstudio.com"+kc];function kd(t){return-1!==fo(Cd,t[_l]())}function Sd(t,e,r){if(!e||t&&t.disableCorrelationHeaders)return!1;if(t&&t[Ml])for(var o=0;o<t.correlationHeaderExcludePatterns[wl];o++)if(t[Ml][o].test(e))return!1;var n=wd(e).host[_l]();if(!n||-1===Xo(n,":443")&&-1===Xo(n,":80")||(n=(xd(e,!0)||"")[_l]()),(!t||!t.enableCorsCorrelation)&&n&&n!==r)return!1;var i,s=t&&t.correlationHeaderDomains;if(s&&(bo(s,(function(t){var e=new RegExp(t.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));i=i||e.test(n)})),!i))return!1;var a=t&&t.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 Ed(t){if(t){var e=function(t,e){if(t)for(var r=t[yl](","),o=0;o<r[wl];++o){var n=r[o][yl]("=");if(2===n[wl]&&n[0]===e)return n[1]}}(t,gd[1]);if(e&&"cid-v1:"!==e)return e}}function Td(){var t=Vo();if(t&&t.now&&t.timing){var e=t.now()+t.timing.navigationStart;if(e>0)return e}return So()}function Ad(t,e){var r=null;return 0===t||0===e||Le(t)||Le(e)||(r=e-t),r}function Od(t,e){var r=t||{};return{getName:function(){return r[El]},setName:function(t){e&&e.setName(t),r[El]=t},getTraceId:function(){return r.traceID},setTraceId:function(t){e&&e.setTraceId(t),bd(t)&&(r.traceID=t)},getSpanId:function(){return r.parentID},setSpanId:function(t){e&&e.setSpanId(t),fd(t)&&(r.parentID=t)},getTraceFlags:function(){return r.traceFlags},setTraceFlags:function(t){e&&e.setTraceFlags(t),r.traceFlags=t}}}var $d,Id,Dd=function(){function t(t,e,r,o,n,i,s,a,l,c,d,u){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=e,p[tc]=Hc(n),p.success=i,p.resultCode=s+"",p.type=Ac(t,l);var b=function(t,e,r,o){var n,i=o,s=o;if(e&&e[wl]>0){var a=wd(e);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(t,r?r+" "+l:l)}else i=Ac(t,e)}else n=o,i=o;return{target:n,name:i,data:s}}(t,r,a,o);p.data=Oc(t,o)||b.data,p.target=Ac(t,b.target),c&&(p.target="".concat(p.target," | ").concat(c)),p[El]=Ac(t,b[El]),p[ql]=Ic(t,d),p[Hl]=Dc(t,u)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",t.dataType="RemoteDependencyData",t}();function Rd(t){var e=null;if(Ne(Event))e=new Event(t);else{var r=Br();r&&r.createEvent&&(e=r.createEvent("Event")).initEvent(t,!0,!0)}return e}function jd(t,e,r){return!t&&Le(t)?e:Ue(t)?t:"true"===Ze(t)[Fn]()}function Ld(t){return{mrg:!0,v:t}}function Pd(t,e){return{set:t,v:e}}function Md(t,e,r){return{fb:r,isVal:t,v:e}}function Nd(t,e){return{fb:e,set:jd,v:!!t}}var zd,qd="toGMTString",Hd="toUTCString",Vd="cookie",Ud="expires",Fd="isCookieUseDisabled",Bd="disableCookiesUsage",Wd="_ckMgr",Kd=null,Xd=null,Gd=null,Jd={},Qd={},Yd=(($d={cookieCfg:Ld((Id={},Id[xs]={fb:"cookieDomain",dfVal:Os},Id.path={fb:"cookiePath",dfVal:Os},Id.enabled=ns,Id.ignoreCookies=ns,Id.blockedCookies=ns,Id)),cookieDomain:ns,cookiePath:ns})[Bd]=ns,$d);function Zd(){var t,e;!zd&&(t=function(){return Br()},e={},!Rr&&Mr(),e.b=Rr.lzy,jr(e,"v",{configurable:!0,get:function(){var r=t();return Rr.lzy||jr(e,"v",{value:r}),e.b=Rr.lzy,r}}),zd=e)}function tu(t){return!t||t.isEnabled()}function eu(t,e){return!!(e&&t&&qe(t.ignoreCookies))&&-1!==fo(t.ignoreCookies,e)}function ru(t,e){var r=e[vi];if(Le(r)){var o=void 0;je(t[Fd])||(o=!t[Fd]),je(t[Bd])||(o=!t[Bd]),r=o}return r}function ou(t,e){var r;if(t)r=t.getCookieMgr();else if(e){var o=e.cookieCfg;r=o&&o[Wd]?o[Wd]:nu(e)}return r||(r=function(t,e){var r=nu[Wd]||Qd[Wd];return r||(r=nu[Wd]=nu(t,e),Qd[Wd]=r),r}(e,(t||{})[Zn])),r}function nu(t,e){var r,o,n,i,s,a,l,c,d;t=Ya(t||Qd,null,e).cfg,s=Za(t,(function(e){e[Qn](e.cfg,Yd),o=e.ref(e.cfg,"cookieCfg"),n=o[Cs]||"/",i=o[xs],a=!1!==ru(t,o),l=o.getCookie||cu,c=o.setCookie||du,d=o.delCookie||du}),e);var u=((r={isEnabled:function(){var r=!1!==ru(t,o)&&a&&iu(e),n=Qd[Wd];return r&&n&&u!==n&&(r=tu(n)),r},setEnabled:function(t){a=!1!==t,o[vi]=t},set:function(t,e,r,s,a){var l,d=!1;if(tu(u)&&!function(t,e){return!!(e&&t&&qe(t.blockedCookies)&&-1!==fo(t.blockedCookies,e))||eu(t,e)}(o,t)){var p={},b=Io(e||is),f=Xo(b,";");if(-1!==f&&(b=Io(Er(e,f)),p=su(Cr(e,f+1))),js(p,xs,s||i,We,je),!Le(r)){var h=ua();if(je(p[Ud])){var g=So()+1e3*r;if(g>0){var v=new Date;v.setTime(g),js(p,Ud,au(v,h?qd:Hd)||au(v,h?qd:Hd)||is,We)}}h||js(p,"max-age",is+r,null,je)}var m=la();m&&"https:"===m[Ri]&&(js(p,"secure",null,null,je),null===Xd&&(l=(Qr()||{})[ji],Xd=!(Me(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")))),Xd&&js(p,"SameSite","None",null,je)),js(p,Cs,a||n,null,je),c(t,lu(b,p)),d=!0}return d},get:function(t){var e=is;return tu(u)&&!eu(o,t)&&(e=l(t)),e},del:function(t,e){var r=!1;return tu(u)&&(r=u.purge(t,e)),r},purge:function(t,r){var o,n=!1;if(iu(e)){var i=((o={})[Cs]=r||"/",o[Ud]="Thu, 01 Jan 1970 00:00:01 GMT",o);ua()||(i["max-age"]="0"),d(t,lu(is,i)),n=!0}return n}})[yi]=function(t){s&&s.rm(),s=null},r);return u[Wd]=u,u}function iu(t){if(null===Kd){Kd=!1,!zd&&Zd();try{var e=zd.v||{};Kd=void 0!==e[Vd]}catch(e){hl(t,2,68,"Cannot access document.cookie - "+Rs(e),{exception:er(e)})}}return Kd}function su(t){var e={};return t&&t[Wn]&&bo(Io(t)[Li](";"),(function(t){if(t=Io(t||is)){var r=Xo(t,"=");-1===r?e[t]=null:e[Io(Er(t,r))]=Io(Cr(t,r+1))}})),e}function au(t,e){return Ne(t[e])?t[e]():null}function lu(t,e){var r=t||is;return Qe(e,(function(t,e){r+="; "+t+(Le(e)?is:"="+e)})),r}function cu(t){var e=is;if(!zd&&Zd(),zd.v){var r=zd.v[Vd]||is;Gd!==r&&(Jd=su(r),Gd=r),e=Io(Jd[t]||is)}return e}function du(t,e){!zd&&Zd(),zd.v&&(zd.v[Vd]=t+"="+e)}var uu="on",pu="attachEvent",bu="addEventListener",fu="detachEvent",hu="removeEventListener",gu="events",vu="visibilitychange",mu="pagehide",yu="unload",wu="beforeunload",_u=$a("aiEvtPageHide"),xu=($a("aiEvtPageShow"),/\.[\.]+/g),Cu=/[\.]+$/,ku=1,Su=Ia("events"),Eu=/^([^.]*)(?:\.(.+)|)/;function Tu(t){return t&&t[Mi]?t[Mi](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,is):t}function Au(t,e){var r;if(e){var o=is;qe(e)?(o=is,bo(e,(function(t){(t=Tu(t))&&("."!==t[0]&&(t="."+t),o+=t)}))):o=Tu(e),o&&("."!==o[0]&&(o="."+o),t=(t||is)+o)}var n=Eu.exec(t||is)||[];return(r={})[zi]=n[1],r.ns=(n[2]||is).replace(xu,".").replace(Cu,is)[Li](".").sort().join("."),r}function Ou(t,e,r){void 0===r&&(r=!0);var o=Su.get(t,gu,{},r),n=o[e];return n||(n=o[e]=[]),n}function $u(t,e,r,o){t&&e&&e[zi]&&(t[hu]?t[hu](e[zi],r,o):t[fu]&&t[fu](uu+e[zi],r))}function Iu(t,e,r,o){for(var n=e[Wn];n--;){var i=e[n];i&&(r.ns&&r.ns!==i.evtName.ns||o&&!o(i)||($u(t,i.evtName,i[qi],i.capture),e[ri](n,1)))}}function Du(t,e){return e?Au("xx",qe(e)?[t].concat(e):[t,e]).ns[Li]("."):t}function Ru(t,e,r,o,n){var i;void 0===n&&(n=!1);var s=!1;if(t)try{var a=Au(e,o);if(s=function(t,e,r,o){var n=!1;return t&&e&&e[zi]&&r&&(t[bu]?(t[bu](e[zi],r,o),n=!0):t[pu]&&(t[pu](uu+e[zi],r),n=!0)),n}(t,a,r,n),s&&Su.accept(t)){var l=((i={guid:ku++,evtName:a})[qi]=r,i.capture=n,i);Ou(t,a.type)[ei](l)}}catch(t){}return s}function ju(t,e,r,o,n){if(void 0===n&&(n=!1),t)try{var i=Au(e,o),s=!1;!function(t,e,r){if(e[zi])Iu(t,Ou(t,e[zi]),e,r);else{var o=Su.get(t,gu,{});Qe(o,(function(o,n){Iu(t,n,e,r)})),0===lr(o)[Wn]&&Su.kill(t,gu)}}(t,i,(function(t){return!((!i.ns||r)&&t[qi]!==r||(s=!0,0))})),s||$u(t,i,r,n)}catch(t){}}function Lu(t,e,r,o){var n=!1;return e&&t&&t[Wn]>0&&bo(t,(function(t){t&&(r&&-1!==fo(r,t)||(n=function(t,e,r){var o=!1,n=Jr();n&&(o=Ru(n,t,e,r),o=Ru(n.body,t,e,r)||o);var i=Br();return i&&(o=Ru(i,t,e,r)||o),o}(t,e,o)||n))})),n}function Pu(t,e,r){t&&qe(t)&&bo(t,(function(t){t&&function(t,e,r){var o=Jr();o&&(ju(o,t,e,r),ju(o.body,t,e,r));var n=Br();n&&ju(n,t,e,r)}(t,e,r)}))}function Mu(t,e,r){var o=Du(_u,r),n=Lu([mu],t,e,o);return e&&-1!==fo(e,vu)||(n=Lu([vu],(function(e){var r=Br();t&&r&&"hidden"===r.visibilityState&&t(e)}),e,o)||n),!n&&e&&(n=Mu(t,null,r)),n}var Nu="ctx",zu="ParentContextKey",qu="ChildrenContextKey",Hu=function(){function t(e,r,o){var n,i=this;i.start=So(),i[bi]=e,i[Ti]=o,i[Fi]=function(){return!1},Ne(r)&&Pr(i,"payload",{g:function(){return!n&&Ne(r)&&(n=r(),r=null),n}}),i[Wi]=function(e){return e?e===t[zu]||e===t[qu]?i[e]:(i[Nu]||{})[e]:null},i[Ki]=function(e,r){e&&(e===t[zu]?(i[e]||(i[Fi]=function(){return!0}),i[e]=r):e===t[qu]?i[e]=r:(i[Nu]=i[Nu]||{})[e]=r)},i[Xi]=function(){var e=0,r=i[Wi](t[qu]);if(qe(r))for(var o=0;o<r[Wn];o++){var n=r[o];n&&(e+=n[fi])}i[fi]=So()-i.start,i.exTime=i[fi]-e,i[Xi]=function(){}}}return t.ParentContextKey="parent",t.ChildrenContextKey="childEvts",t}(),Vu=function(){function t(e){this.ctx={},Dn(t,this,(function(t){t.create=function(t,e,r){return new Hu(t,e,r)},t.fire=function(t){t&&(t[Xi](),e&&Ne(e[vs])&&e[vs](t))},t[Ki]=function(e,r){e&&((t[Nu]=t[Nu]||{})[e]=r)},t[Wi]=function(e){return(t[Nu]||{})[e]}}))}return t.__ieDyn=1,t}(),Uu="CoreUtils.doPerf";function Fu(t,e,r,o,n){if(t){var i=t;if(i[_s]&&(i=i[_s]()),i){var s=void 0,a=i[Wi](Uu);try{if(s=i.create(e(),o,n)){if(a&&s[Ki]&&(s[Ki](Hu[zu],a),a[Wi]&&a[Ki])){var l=a[Wi](Hu[qu]);l||(l=[],a[Ki](Hu[qu],l)),l[ei](s)}return i[Ki](Uu,s),r(s)}}catch(t){s&&s[Ki]&&s[Ki]("exception",t)}finally{s&&i.fire(s),i[Ki](Uu,a)}}}return r()}var Bu=Ia("plugin");function Wu(t){return Bu.get(t,"state",{},!0)}function Ku(t,e){for(var r,o=[],n=null,i=t[Ii]();i;){var s=i[ui]();if(s){n&&n[Di]&&s[ps]&&n[Di](s);var a=!!(r=Wu(s))[ci];s[ci]&&(a=s[ci]()),a||o[ei](s),n=s,i=i[Ii]()}}bo(o,(function(o){var n=t[as]();o[ii](t.getCfg(),n,e,t[Ii]()),r=Wu(o),o[as]||r[as]||(r[as]=n),r[ci]=!0,delete r[ki]}))}function Xu(t){return t.sort((function(t,e){var r=0;if(e){var o=e[ps];t[ps]?r=o?t[bs]-e[bs]:1:o&&(r=-1)}else r=t?1:-1;return r}))}var Gu="TelemetryPluginChain",Ju="_hasRun",Qu="_getTelCtx",Yu=0;function Zu(t,e,r,o){var n=null,i=[];e||(e=Ya({},null,r[Zn])),null!==o&&(n=o?function(t,e,r){for(;t;){if(t[ui]()===r)return t;t=t[Ii]()}return op([r],e.config||{},e)}(t,r,o):t);var s={_next:function(){var t=n;if(n=t?t[Ii]():null,!t){var e=i;e&&e[Wn]>0&&(bo(e,(function(t){try{t.func.call(t.self,t.args)}catch(t){hl(r[Zn],2,73,"Unexpected Exception during onComplete - "+er(t))}})),i=[])}return t},ctx:{core:function(){return r},diagLog:function(){return pl(r,e.cfg)},getCfg:function(){return e.cfg},getExtCfg:function(t,r){var o=a(t,!0);return r&&Qe(r,(function(t,r){if(Le(o[t])){var n=e.cfg[t];!n&&Le(n)||(o[t]=n)}La(e,o,t,r)})),e[Qn](o,r)},getConfig:function(t,r,o){void 0===o&&(o=!1);var n,i=a(t,!1),s=e.cfg;return!i||!i[r]&&Le(i[r])?!s[r]&&Le(s[r])||(n=s[r]):n=i[r],n||!Le(n)?n:o},hasNext:function(){return!!n},getNext:function(){return n},setNext:function(t){n=t},iterate:function(t){for(var e;e=s._next();){var r=e[ui]();r&&t(r)}},onComplete:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];t&&i[ei]({func:t,self:je(e)?s.ctx:e,args:r})}}};function a(t,r){var o=null,n=e.cfg;if(n&&t){var i=n[ds];!i&&r&&(i={}),n[ds]=i,(i=e.ref(n,ds))&&(!(o=i[t])&&r&&(o={}),i[t]=o,o=e.ref(i,t))}return o}return s}function tp(t,e,r,o){var n=Ya(e),i=Zu(t,n,r,o),s=i.ctx;return s[hi]=function(t){var e=i._next();return e&&e[ps](t,s),!e},s[Ci]=function(t,e){return void 0===t&&(t=null),qe(t)&&(t=op(t,n.cfg,r,e)),tp(t||s[Ii](),n.cfg,r,e)},s}function ep(t,e,r){var o=Ya(e.config),n=Zu(t,o,e,r),i=n.ctx;return i[hi]=function(t){var e=n._next();return e&&e[yi](i,t),!e},i[Ci]=function(t,r){return void 0===t&&(t=null),qe(t)&&(t=op(t,o.cfg,e,r)),ep(t||i[Ii](),e,r)},i}function rp(t,e,r){var o=Ya(e.config),n=Zu(t,o,e,r).ctx;return n[hi]=function(t){return n.iterate((function(e){Ne(e[$i])&&e[$i](n,t)}))},n[Ci]=function(t,r){return void 0===t&&(t=null),qe(t)&&(t=op(t,o.cfg,e,r)),rp(t||n[Ii](),e,r)},n}function op(t,e,r,o){var n=null,i=!o;if(qe(t)&&t[Wn]>0){var s=null;bo(t,(function(t){if(i||o!==t||(i=!0),i&&t&&Ne(t[ps])){var a=function(t,e,r){var o,n=null,i=Ne(t[ps]),s=Ne(t[Di]),a={getPlugin:function(){return t},getNext:function(){return n},processTelemetry:function(o,c){l(c=c||function(){var o;return t&&Ne(t[Qu])&&(o=t[Qu]()),o||(o=tp(a,e,r)),o}(),(function(e){if(!t||!i)return!1;var r=Wu(t);return!r[ki]&&!r[cs]&&(s&&t[Di](n),t[ps](o,e),!0)}),"processTelemetry",(function(){return{item:o}}),!o.sync)||c[hi](o)},unload:function(e,r){l(e,(function(){var o=!1;if(t){var n=Wu(t),i=t[as]||n[as];!t||i&&i!==e.core()||n[ki]||(n[as]=null,n[ki]=!0,n[ci]=!1,t[ki]&&!0===t[ki](e,r)&&(o=!0))}return o}),"unload",(function(){}),r[Ti])||e[hi](r)},update:function(e,r){l(e,(function(){var o=!1;if(t){var n=Wu(t),i=t[as]||n[as];!t||i&&i!==e.core()||n[ki]||t[$i]&&!0===t[$i](e,r)&&(o=!0)}return o}),"update",(function(){}),!1)||e[hi](r)},_id:o=t?t[si]+"-"+t[bs]+"-"+Yu++:"Unknown-0-"+Yu++,_setNext:function(t){n=t}};function l(e,r,i,s,a){var l=!1,c=t?t[si]:Gu,d=e[Ju];return d||(d=e[Ju]={}),e.setNext(n),t&&Fu(e[as](),(function(){return c+":"+i}),(function(){d[o]=!0;try{var t=n?n._id:is;t&&(d[t]=!1),l=r(e)}catch(t){var s=!n||d[n._id];s&&(l=!0),n&&s||hl(e[Ai](),1,73,"Plugin ["+c+"] failed during "+i+" - "+er(t)+", run flags: "+er(d))}}),s,a),l}return dr(a)}(t,e,r);n||(n=a),s&&s._setNext(a),s=a}}))}return o&&!n?op([o],e,r):n}var np,ip="_aiHooks",sp=["req","rsp","hkErr","fnErr"];function ap(t,e){if(t)for(var r=0;r<t[Wn]&&!e(t[r],r);r++);}function lp(t,e,r,o,n){n>=0&&n<=2&&ap(t,(function(t,i){var s=t.cbks,a=s[sp[n]];if(a){e.ctx=function(){return o[i]=o[i]||{}};try{a[ti](e.inst,r)}catch(t){var l=e.err;try{var c=s[sp[2]];c&&(e.err=t,c[ti](e.inst,r))}catch(t){}finally{e.err=l}}}}))}function cp(t,e,r,o){var n=null;return t&&(Xe(t,e)?n=t:r&&(n=cp(As(t),e,o,!1))),n}function dp(t,e,r,o){var n=r&&r[ip];if(!n){var i=function(t){return function(){var e,r=arguments,o=t.h,n=((e={})[bi]=t.n,e.inst=this,e.ctx=null,e.set=function(t,e){(r=a([],r))[t]=e,s=a([n],r)},e),i=[],s=a([n],r);function a(t,e){return ap(e,(function(e){t[ei](e)})),t}n.evt=Ur("event"),lp(o,n,s,i,0);var l=t.f;if(l)try{n.rslt=l[ti](this,r)}catch(t){throw n.err=t,lp(o,n,s,i,3),t}return lp(o,n,s,i,1),n.rslt}}(n={i:0,n:e,f:r,h:[]});i[ip]=n,t[e]=i}var s={id:n.i,cbks:o,rm:function(){var t=this.id;ap(n.h,(function(e,r){if(e.id===t)return n.h[ri](r,1),1}))}};return n.i++,n.h[ei](s),s}function up(t,e,r,o,n){if(void 0===o&&(o=!0),t&&e&&r){var i=cp(t,e,o,n);if(i){var s=i[e];if(typeof s===Rn)return dp(i,e,s,r)}}return null}function pp(t,e,r,o,n){if(t&&e&&r){var i=cp(t,e,o,n)||t;if(i)return dp(i,e,i[e],r)}return null}function bp(){var t=[];return{add:function(e){e&&t[ei](e)},run:function(e,r){bo(t,(function(t){try{t(e,r)}catch(t){hl(e[Ai](),2,73,"Unexpected error calling unload handler - "+er(t))}})),t=[]}}}function fp(){var t=[];return{run:function(e){var r=t;t=[],bo(r,(function(t){try{(t.rm||t.remove).call(t)}catch(t){hl(e,2,73,"Unloading:"+er(t))}}))},add:function(e){e&&po(t,e)}}}var hp="getPlugin",gp=((np={})[ds]={isVal:Os,v:{}},np),vp=function(){function t(){var e,r,o,n,i,s=this;function a(t){void 0===t&&(t=null);var e=t;if(!e){var n=r||tp(null,{},s[as]);e=o&&o[hp]?n[Ci](null,o[hp]):n[Ci](null,o)}return e}function l(t,e,n){Ya(t,gp,pl(e)),!n&&e&&(n=e[gi]()[Ii]());var i=o;o&&o[hp]&&(i=o[hp]()),s[as]=e,r=tp(n,t,e,i)}function c(){e=!1,s[as]=null,r=null,o=null,i=fp(),n=bp()}c(),Dn(t,s,(function(t){t[ii]=function(t,r,o,n){l(t,r,n),e=!0},t[ki]=function(e,r){var s,a=t[as];if(a&&(!e||a===e[as]())){var l,d=!1,u=e||ep(null,a,o&&o[hp]?o[hp]():o),p=r||((s={reason:0})[Ti]=!1,s);return t[Oi]&&!0===t[Oi](u,p,b)?l=!0:b(),l}function b(){d||(d=!0,n.run(u,r),i.run(u[Ai]()),!0===l&&u[hi](p),c())}},t[$i]=function(e,r){var n=t[as];if(n&&(!e||n===e[as]())){var i,s=!1,a=e||rp(null,n,o&&o[hp]?o[hp]():o),c=r||{reason:0};return t._doUpdate&&!0===t._doUpdate(a,c,d)?i=!0:d(),i}function d(){s||(s=!0,l(a.getCfg(),a.core(),a[Ii]()))}},Ms(t,"_addUnloadCb",(function(){return n}),"add"),Ms(t,"_addHook",(function(){return i}),"add"),Pr(t,"_unloadHooks",{g:function(){return i}})})),s[Ai]=function(t){return a(t)[Ai]()},s[ci]=function(){return e},s.setInitialized=function(t){e=t},s[Di]=function(t){o=t},s[hi]=function(t,e){e?e[hi](t):o&&Ne(o[ps])&&o[ps](t,null)},s._getTelCtx=a}return t.__ieDyn=1,t}(),mp="toString",yp="isStorageUseDisabled",wp="_addHook",_p="core",xp="dataType",Cp="envelopeType",kp="diagLog",Sp="track",Ep="trackPageView",Tp="trackPreviousPageVisit",Ap="sendPageViewInternal",Op="startTime",$p="properties",Ip="duration",Dp="sendPageViewPerformanceInternal",Rp="populatePageViewPerformanceEvent",jp="href",Lp="sendExceptionInternal",Pp="exception",Mp="error",Np="_onerror",zp="errorSrc",qp="lineNumber",Hp="columnNumber",Vp="message",Up="CreateAutoException",Fp="addTelemetryInitializer",Bp="autoTrackPageVisitTime",Wp="isBrowserLinkTrackingEnabled",Kp="length",Xp="enableAutoRouteTracking",Gp="enableUnhandledPromiseRejectionTracking",Jp="autoUnhandledPromiseInstrumented",Qp="getEntriesByType",Yp="isPerformanceTimingSupported",Zp="getPerformanceTiming",tb="navigationStart",eb="shouldCollectDuration",rb="isPerformanceTimingDataReady",ob="responseStart",nb="loadEventEnd",ib="responseEnd",sb="connectEnd",ab="pageVisitStartTime",lb=function(){function t(e,r,o,n){Dn(t,this,(function(t){var i,s=null,a=[],l=!1,c=!1;function d(t){o&&o.flush(t,(function(){}))}function u(){s||(s=tn((function(){s=null;var t=a.slice(0),e=!1;a=[],bo(t,(function(t){t()?e=!0:a.push(t)})),a[Kp]>0&&u(),e&&d(!0)}),100))}function p(t){a.push(t),u()}o&&(i=o.logger),t[Ep]=function(t,o){var s=t.name;if(Le(s)||"string"!=typeof s){var a=Br();s=t.name=a&&a.title||""}var u=t.uri;if(Le(u)||"string"!=typeof u){var b=la();u=t.uri=b&&b[jp]||""}if(!c){var f=Vo(),h=f&&f[Qp]&&f[Qp]("navigation");if(h&&h[0]&&!je(f.timeOrigin)){var g=h[0].loadEventStart;t[Op]=new Date(f.timeOrigin+g)}else{var v=(o||t[$p]||{})[Ip]||0;t[Op]=new Date((new Date).getTime()-v)}c=!0}if(!n[Yp]())return e[Ap](t,o),d(!0),void(to()||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]()[tb];_>0&&(m=Ad(_,+new Date),n[eb](m)||(m=void 0)),Le(o)||Le(o[Ip])||(y=o[Ip]),!r&&isNaN(y)||(isNaN(y)&&(o||(o={}),o[Ip]=m),e[Ap](t,o),d(!0),w=!0),o||(o={}),p((function(){var r=!1;try{if(n[rb]()){r=!0;var a={name:s,uri:u};n[Rp](a),a.isValid||w?(w||(o[Ip]=a.durationMs,e[Ap](t,o)),l||(e[Dp](a,o),l=!0)):(o[Ip]=m,e[Ap](t,o))}else _>0&&Ad(_,+new Date)>6e4&&(r=!0,w||(o[Ip]=6e4,e[Ap](t,o)))}catch(t){hl(i,1,38,"trackPageView failed on page load calculation: "+Rs(t),{exception:er(t)})}return r}))},t.teardown=function(t,e){if(s){s.cancel(),s=null;var r=a.slice(0);a=[],bo(r,(function(t){t()}))}}}))}return t.__ieDyn=1,t}(),cb=["googlebot","adsbot-google","apis-google","mediapartners-google"];function db(){var t=Vo();return t&&!!t.timing}function ub(){var t=Vo(),e=t?t.timing:0;return e&&e.domainLookupStart>0&&e[tb]>0&&e[ob]>0&&e.requestStart>0&&e[nb]>0&&e[ib]>0&&e[sb]>0&&e.domLoading>0}function pb(){return db()?Vo().timing:null}function bb(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];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<t[Kp];n++)if(t[n]<0||t[n]>=36e5)return!1;return!0}var fb,hb=function(){function t(e){var r=pl(e);Dn(t,this,(function(t){t[Rp]=function(e){e.isValid=!1;var o,n=(o=Vo())&&o.getEntriesByType&&o.getEntriesByType("navigation")[Kp]>0?Vo()[Qp]("navigation")[0]:null,i=pb(),s=0,a=0,l=0,c=0,d=0;(n||i)&&(n?(s=n[Ip],a=0===n[Op]?n[sb]:Ad(n[Op],n[sb]),l=Ad(n.requestStart,n[ob]),c=Ad(n[ob],n[ib]),d=Ad(n.responseEnd,n[nb])):(s=Ad(i[tb],i[nb]),a=Ad(i[tb],i[sb]),l=Ad(i.requestStart,i[ob]),c=Ad(i[ob],i[ib]),d=Ad(i.responseEnd,i[nb])),0===s?hl(r,2,10,"error calculating page view performance.",{total:s,network:a,request:l,response:c,dom:d}):t[eb](s,a,l,c,d)?s<Math.floor(a)+Math.floor(l)+Math.floor(c)+Math.floor(d)?hl(r,2,8,"client performance math error.",{total:s,network:a,request:l,response:c,dom:d}):(e.durationMs=s,e.perfTotal=e[Ip]=Hc(s),e.networkConnect=Hc(a),e.sentRequest=Hc(l),e.receivedResponse=Hc(c),e.domProcessing=Hc(d),e.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:d}))},t[Zp]=pb,t[Yp]=db,t[rb]=ub,t[eb]=bb}))}return t.__ieDyn=1,t}(),gb=function(){function t(e,r){var o="prevPageVisitData";Dn(t,this,(function(t){t[Tp]=function(t,n){try{var i=function(t,r){var n=null;try{if(n=function(){var t=null;try{if(pc()){var r=So(),n=bc(e,o);n&&ca()&&((t=da().parse(n)).pageVisitTime=r-t[ab],hc(e,o))}}catch(r){gl(e,"Stop page visit timer failed: "+er(r)),t=null}return t}(),pc()){null!=bc(e,o)&&rr("Cannot call startPageVisit consecutively without first calling stopPageVisit");var i=da().stringify(new vb(t,r));fc(e,o,i)}}catch(t){gl(e,"Call to restart failed: "+er(t)),n=null}return n}(t,n);i&&r(i.pageName,i.pageUrl,i.pageVisitTime)}catch(t){gl(e,"Auto track page visit time failed, metric will not be collected: "+er(t))}},Pr(t,"_logger",{g:function(){return e}}),Pr(t,"pageVisitTimeTrackingHandler",{g:function(){return r}})}))}return t.__ieDyn=1,t}(),vb=function(t,e){this[ab]=So(),this.pageName=t,this.pageUrl=e},mb=function(t,e){var r=this,o={};r.start=function(e){void 0!==o[e]&&hl(t,2,62,"start was called more than once for this event without calling stop.",{name:e,key:e},!0),o[e]=+new Date},r.stop=function(e,n,i,s){var a=o[e];if(isNaN(a))hl(t,2,63,"stop was called without a corresponding start.",{name:e,key:e},!0);else{var l=Ad(a,+new Date);r.action(e,n,l,i,s)}delete o[e],o[e]=void 0}};function yb(t,e){t&&t.dispatchEvent&&e&&t.dispatchEvent(e)}var wb=cr(((fb={sessionRenewalMs:Pd(_b,18e5),sessionExpirationMs:Pd(_b,864e5),disableExceptionTracking:Nd()})[Bp]=Nd(),fb.overridePageViewDuration=Nd(),fb[Gp]=Nd(),fb[Jp]=!1,fb.samplingPercentage=Md((function(t){return!isNaN(t)&&t>0&&t<=100}),100),fb[yp]=Nd(),fb[Wp]=Nd(),fb[Xp]=Nd(),fb.namePrefix={isVal:Me,v:Ze(is)},fb.enableDebug=Nd(),fb.disableFlushOnBeforeUnload=Nd(),fb.disableFlushOnUnload=Nd(!1,"disableFlushOnBeforeUnload"),fb));function _b(t,e){return(t=t||e)<6e4&&(t=6e4),+t}var xb,Cb,kb,Sb=function(t){function e(){var r,o,n,i,s,a,l,c,d,u,p,b,f,h,g,v,m,y,w,_=t.call(this)||this;return _.identifier=mc,_.priority=180,_.autoRoutePVDelay=500,Dn(e,_,(function(t,e){var _=e[wp];function x(e,r,o,n,i){t[kp]().throwInternal(e,r,o,n,i)}function C(){r=null,o=null,n=null,i=null,s=null,a=null,l=!1,c=!1,d=!1,u=!1,p=!1,b=!1,f=!1,h=!1,v=!1;var e=la(!0);m=e&&e[jp]||"",y=null,w=null,g=null,Pr(t,"config",{g:function(){return g}})}C(),t.getCookieMgr=function(){return ou(t[_p])},t.processTelemetry=function(e,r){t.processNext(e,r)},t.trackEvent=function(e,r){try{var o=Lc(e,Pc[xp],Pc[Cp],t[kp](),r);t[_p][Sp](o)}catch(t){x(2,39,"trackTrace failed, trace will not be collected: "+Rs(t),{exception:er(t)})}},t.startTrackEvent=function(t){try{r.start(t)}catch(t){x(1,29,"startTrackEvent failed, event will not be collected: "+Rs(t),{exception:er(t)})}},t.stopTrackEvent=function(t,e,o){try{r.stop(t,void 0,e,o)}catch(t){x(1,30,"stopTrackEvent failed, event will not be collected: "+Rs(t),{exception:er(t)})}},t.trackTrace=function(e,r){try{var o=Lc(e,Mc[xp],Mc[Cp],t[kp](),r);t[_p][Sp](o)}catch(t){x(2,39,"trackTrace failed, trace will not be collected: "+Rs(t),{exception:er(t)})}},t.trackMetric=function(e,r){try{var o=Lc(e,zc[xp],zc[Cp],t[kp](),r);t[_p][Sp](o)}catch(t){x(1,36,"trackMetric failed, metric will not be collected: "+Rs(t),{exception:er(t)})}},t[Ep]=function(t,e){try{var r=t||{};n[Ep](r,qn(qn(qn({},r.properties),r.measurements),e)),v&&s[Tp](r.name,r.uri)}catch(t){x(1,37,"trackPageView failed, page view will not be collected: "+Rs(t),{exception:er(t)})}},t[Ap]=function(e,r,o){var n=Br();if(n&&(e.refUri=void 0===e.refUri?n.referrer:e.refUri),Le(e[Op])){var i=(r||e[$p]||{})[Ip]||0;e[Op]=new Date((new Date).getTime()-i)}var s=Lc(e,Vc[xp],Vc[Cp],t[kp](),r,o);t[_p][Sp](s)},t[Dp]=function(e,r,o){var n=Lc(e,Uc[xp],Uc[Cp],t[kp](),r,o);t[_p][Sp](n)},t.trackPageViewPerformance=function(e,r){var o=e||{};try{i[Rp](o),t[Dp](o,r)}catch(t){x(1,37,"trackPageViewPerformance failed, page view will not be collected: "+Rs(t),{exception:er(t)})}},t.startTrackPage=function(t){try{if("string"!=typeof t){var e=Br();t=e&&e.title||""}o.start(t)}catch(t){x(1,31,"startTrackPage failed, page view may not be collected: "+Rs(t),{exception:er(t)})}},t.stopTrackPage=function(t,e,r,n){try{if("string"!=typeof t){var i=Br();t=i&&i.title||""}if("string"!=typeof e){var a=la();e=a&&a[jp]||""}o.stop(t,e,r,n),v&&s[Tp](t,e)}catch(t){x(1,32,"stopTrackPage failed, page view will not be collected: "+Rs(t),{exception:er(t)})}},t[Lp]=function(e,r,o){var n=e&&(e[Pp]||e[Mp])||Fe(e)&&e||{name:e&&typeof e,message:e||Sc};e=e||{};var i=Lc(new od(t[kp](),n,e[$p]||r,e.measurements,e.severityLevel,e.id).toInterface(),od[xp],od[Cp],t[kp](),r,o);t[_p][Sp](i)},t.trackException=function(e,r){e&&!e[Pp]&&e[Mp]&&(e[Pp]=e[Mp]);try{t[Lp](e,r)}catch(t){x(1,35,"trackException failed, exception will not be collected: "+Rs(t),{exception:er(t)})}},t[Np]=function(e){var r=e&&e[Mp],o=e&&e.evt;try{if(!o){var n=Jr();n&&(o=n.event)}var i=e&&e.url||(Br()||{}).URL,s=e[zp]||"window.onerror@"+i+":"+(e[qp]||0)+":"+(e[Hp]||0),a={errorSrc:s,url:i,lineNumber:e[qp]||0,columnNumber:e[Hp]||0,message:e[Vp]};!function(t,e,r,o,n){return!n&&Me(t)&&("Script error."===t||"Script error"===t)}(e.message,e.url,e.lineNumber,e.columnNumber,e[Mp])?(e[zp]||(e[zp]=s),t.trackException({exception:e,severityLevel:3},a)):function(e,r){var o=Lc(e,od[xp],od[Cp],t[kp](),r);t[_p][Sp](o)}(od[Up]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",i,e[qp]||0,e[Hp]||0,r,o,null,s),a)}catch(t){var l=r?r.name+", "+r[Vp]:"null";x(1,11,"_onError threw exception while logging error, error will not be collected: "+Rs(t),{exception:er(t),errorString:l})}},t[Fp]=function(e){if(t[_p])return t[_p][Fp](e);a||(a=[]),a.push(e)},t.initialize=function(x,C,k,S){if(!t.isInitialized()){Le(C)&&rr("Error initializing"),e.initialize(x,C,k,S);try{w=Du($a(t.identifier),C.evtNamespace&&C.evtNamespace()),a&&(bo(a,(function(t){C[Fp](t)})),a=null),function(e){var r=t.identifier,o=t[_p];t[wp](Za(e,(function(){var n,i=tp(null,e,o);g=i.getExtCfg(r,wb),v=g[Bp],e.storagePrefix&&lc(e.storagePrefix),je((n=g)[yp])||(n[yp]?(rc=!1,oc=!1):(rc=cc(!0),oc=pc(!0))),l=g[Wp],function(){if(!c&&l){var e=["/browserLinkSignalR/","/__browserLink/"];t[wp](t[Fp]((function(t){if(l&&t.baseType===Dd[xp]){var r=t.baseData;if(r)for(var o=0;o<e[Kp];o++)if(r.target&&Xo(r.target,e[o])>=0)return!1}return!0}))),c=!0}}()})))}(x),i=new hb(t[_p]),n=new lb(t,g.overridePageViewDuration,t[_p],i),s=new gb(t[kp](),(function(e,r,o){return function(e,r,o){var n={PageName:e,PageUrl:r};t.trackMetric({name:"PageVisitTime",average:o,max:o,min:o,sampleCount:1},n)}(e,r,o)})),(r=new mb(t[kp](),"trackEvent")).action=function(e,r,o,n,i){n||(n={}),i||(i={}),n.duration=o[mp](),t.trackEvent({name:e,properties:n,measurements:i})},(o=new mb(t[kp](),"trackPageView")).action=function(e,r,o,n,i){Le(n)&&(n={}),n.duration=o[mp]();var s={name:e,uri:r,properties:n,measurements:i};t[Ap](s,n)},Wr()&&(E=Jr(),T=la(!0),t[wp](Za(g,(function(){(p=g.disableExceptionTracking)||b||g.autoExceptionInstrumented||(_(pp(E,"onerror",{ns:w,rsp:function(e,r,o,n,i,s){p||!0===e.rslt||t[Np](od[Up](r,o,n,i,s,e.evt))}},!1)),b=!0)}))),function(e,r){t[wp](Za(g,(function(){f=!0===g[Gp],b=b||g[Jp],f&&!h&&(_(pp(e,"onunhandledrejection",{ns:w,rsp:function(e,o){f&&!0!==e.rslt&&t[Np](od[Up](function(t){if(t&&t.reason){var e=t.reason;return!Me(e)&&Ne(e[mp])?e[mp]():er(e)}return t||""}(o),r?r[jp]:"",0,0,o,e.evt))}},!1)),g[Jp]=h=!0)})))}(E,T),function(){var e=Jr(),r=la(!0);t[wp](Za(g,(function(){if(d=!0===g[Xp],e&&d&&!u&&Yr()){var o=Yr();Ne(o.pushState)&&Ne(o.replaceState)&&typeof Event!==Ln&&function(e,r,o){if(!u){var n=g.namePrefix||"";_(pp(r,"pushState",{ns:w,rsp:function(){d&&(yb(e,Rd(n+"pushState")),yb(e,Rd(n+"locationchange")))}},!0)),_(pp(r,"replaceState",{ns:w,rsp:function(){d&&(yb(e,Rd(n+"replaceState")),yb(e,Rd(n+"locationchange")))}},!0)),Ru(e,n+"popstate",(function(){d&&yb(e,Rd(n+"locationchange"))}),w),Ru(e,n+"locationchange",(function(){if(y?(m=y,y=o&&o[jp]||""):y=o&&o[jp]||"",d){var e=function(){var e=null;if(t[_p]&&t[_p].getTraceCtx&&(e=t[_p].getTraceCtx(!1)),!e){var r=t[_p].getPlugin(gc);if(r){var o=r.plugin.context;o&&(e=Od(o.telemetryTrace))}}return e}();if(e){e.setTraceId(sd());var r="_unknown_";o&&o.pathname&&(r=o.pathname+(o.hash||"")),e.setName(Ac(t[kp](),r))}tn(function(e){t[Ep]({refUri:e,properties:{duration:0}})}.bind(t,m),t.autoRoutePVDelay)}}),w),u=!0}}(e,o,r)}})))}())}catch(e){throw t.setInitialized(!1),e}var E,T}},t._doTeardown=function(t,e){n&&n.teardown(t,e),ju(window,null,null,w),C()},Pr(t,"_pageViewManager",{g:function(){return n}}),Pr(t,"_pageViewPerformanceManager",{g:function(){return i}}),Pr(t,"_pageVisitTimeManager",{g:function(){return s}}),Pr(t,"_evtNamespace",{g:function(){return"."+w}})})),_}return Vn(e,t),e.Version="3.2.0",e}(vp),Eb="Promise",Tb="rejected";function Ab(t,e){return Ob(t,(function(t){return e?e({status:"fulfilled",rejected:!1,value:t}):t}),(function(t){return e?e({status:Tb,rejected:!0,reason:t}):t}))}function Ob(t,e,r,o){var n=t;try{if(Be(t))(e||r)&&(n=t.then(e,r));else try{e&&(n=e(t))}catch(t){if(!r)throw t;n=r(t)}}finally{o&&function(t,e){var r=t;e&&(Be(t)?r=t.finally?t.finally(e):t.then((function(t){return e(),t}),(function(t){throw e(),t})):e())}(n,o)}return n}var $b,Ib=!1,Db=["pending","resolving","resolved",Tb],Rb="dispatchEvent";function jb(t){var e;return t&&t.createEvent&&(e=t.createEvent("Event")),!!e&&e.initEvent}var Lb,Pb,Mb,Nb="unhandledRejection",zb=Nb.toLowerCase(),qb=[],Hb=0,Vb=10;function Ub(t){return Ne(t)?t.toString():er(t)}function Fb(t,e,r){var o,n,i=go(arguments,3),s=0,a=!1,l=[],c=Hb++,d=qb.length>0?qb[qb.length-1]:void 0,u=!1,p=null;function b(e,r){try{qb.push(c),u=!0,p&&p.cancel(),p=null;var n=t((function(t,n){l.push((function(){try{var i=2===s?e:r,a=je(i)?o:Ne(i)?i(o):i;Be(a)?a.then(t,n):i?t(a):3===s?n(a):t(a)}catch(t){n(t)}})),a&&h()}),i);return n}finally{qb.pop()}}function f(){return Db[s]}function h(){if(l.length>0){var t=l.slice();l=[],u=!0,p&&p.cancel(),p=null,e(t)}}function g(t,e){return function(r){if(s===e){if(2===t&&Be(r))return s=1,void r.then(g(2,1),g(3,1));s=t,a=!0,o=r,h(),u||3!==t||p||(p=tn(v,Vb))}}}function v(){if(!u)if(u=!0,Zr())process.emit(Nb,o,n);else{var t=Jr()||Vr();!Lb&&(Lb=Nr($e(Ur,[Eb+"RejectionEvent"]).v)),function(t,e,r,o){var n=Br();!$b&&($b=Nr(!!$e(jb,[n]).v));var i=$b.v?n.createEvent("Event"):o?new Event(e):{};if(r&&r(i),$b.v&&i.initEvent(e,!1,!0),i&&t[Rb])t[Rb](i);else{var s=t["on"+e];if(s)s(i);else{var a=Ur("console");a&&(a.error||a.log)(e,er(i))}}}(t,zb,(function(t){return Pr(t,"promise",{g:function(){return n}}),t.reason=o,t}),!!Lb.v)}}return jr(n={then:b,catch:function(t){return b(void 0,t)},finally:function(t){var e=t,r=t;return Ne(t)&&(e=function(e){return t&&t(),e},r=function(e){throw t&&t(),e}),b(e,r)}},"state",{get:f}),Ib&&function(t,e,r,n){Cb=Cb||{toString:function(){return"[[PromiseResult]]"}},kb=kb||{toString:function(){return"[[PromiseIsHandled]]"}};var i={};i[xb=xb||{toString:function(){return"[[PromiseState]]"}}]={get:e},i[Cb]={get:function(){return Re(o)}},i[kb]={get:function(){return u}},Lr(t,i)}(n,f),oo()&&(n[io(11)]="IPromise"),n.toString=function(){return"IPromise"+(Ib?"["+c+(je(d)?"":":"+d)+"]":"")+" "+f()+(a?" - "+Ub(o):"")},function(){Ne(r)||or(Eb+": executor is not a function - "+Ub(r));var t=g(3,0);try{r.call(n,g(2,0),t)}catch(e){t(e)}}(),n}function Bb(t){return function(e){var r=go(arguments,1);return t((function(t,r){try{var o=[],n=1;co(e,(function(e,i){e&&(n++,Ob(e,(function(e){o[i]=e,0==--n&&t(o)}),r))})),0==--n&&t(o)}catch(t){r(t)}}),r)}}function Wb(t,e){return Fb(Wb,function(t){var e=Ve(t)?t:0;return function(t){tn((function(){!function(t){bo(t,(function(t){try{t()}catch(t){}}))}(t)}),e)}}(e),t,e)}function Kb(t,e){!Pb&&(Pb=Nr($e(Ur,[Eb]).v||null));var r=Pb.v;if(!r)return Wb(t);Ne(t)||or(Eb+": executor is not a function - "+er(t));var o=0,n=new r((function(e,r){t((function(t){o=2,e(t)}),(function(t){o=3,r(t)}))}));return jr(n,"state",{get:function(){return Db[o]}}),n}function Xb(t,e){return!Mb&&(Mb=Nr(Kb)),Mb.v.call(this,t,e)}var Gb=Bb(Xb);io(11);var Jb="featureOptIn",Qb="onCfgChangeReceive",Yb="nonOverrideConfigs",Zb="scheduleFetchTimeout";function tf(t,e,r,o){try{var n=r>o;n&&(t=null);var i=0==r?function(t,e,r,o,n,i,s){return No(t||{},Oe[we](arguments))}({},t):t;return i&&e&&!n&&Qe(i,(function(t){var n=e[t];n&&(ze(i[t])&&ze(n)?i[t]=tf(i[t],n,++r,o):delete i[t])})),i}catch(t){}return t}var ef,rf="featureOptIn.",of=".mode",nf=".onCfg",sf=".offCfg";var af=void 0,lf=cr(((ef={syncMode:1,blkCdnCfg:af,customEvtName:af,cfgUrl:af,overrideSyncFn:af,overrideFetchFn:af})[Qb]=af,ef[Zb]=18e5,ef[Yb]={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},ef)),cf=function(t){function e(){var r,o,n,i,s,a,l,c,d,u,p,b,f,h,g,v,m=t.call(this)||this;m.priority=198,m.identifier="AppInsightsCfgSyncPlugin";var y=!1;return Dn(e,m,(function(t,e){function m(){o=null,n=null,i=null,s=null,l=null,c=null,f=null,a=null,u=null,p=null,d=null,g=null,v=null,b=null}function w(e,r){if(e){if(o=e,r&&!y)return x();if(l&&!y)return t.core.updateCfg(e),!0}return!1}function _(){try{var t=Vr();t&&ju(t,null,null,i)}catch(t){}}function x(t){try{return v&&Ne(v)?v(o,t):function(t,e,r){var o,n,i=Vr();if(i&&i.CustomEvent)try{return o=i,n=function(t,e){var r=null,o={detail:e||null};if(Ne(CustomEvent))r=new CustomEvent(t,o);else{var n=Br();n&&n.createEvent&&(r=n.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,o)}return r}(t,{cfg:e||null,customDetails:r||null}),!!(o&&o.dispatchEvent&&n)&&(o.dispatchEvent(n),!0)}catch(t){}return!1}(n,o,t)}catch(t){}return!1}function C(t){try{return _(),t&&(n=t,function(){if(l){var t=Vr();if(t)try{Ru(t,n,(function(t){var e=t&&t.detail;if(b&&e)b(e);else{var r=e&&e.cfg,o=r&&Do(r)&&A(r);o&&w(o)}}),i,!0)}catch(t){}}}()),!0}catch(t){}return!1}function k(t,e,r){var o=Vr(),n=o&&o.fetch||null;if(t&&n&&Ne(n))try{var i=new Request(t,{method:"GET"});Ab(fetch(i),(function(t){var o=t.value;t.rejected?T(e,400):o.ok?Ab(o.text(),(function(t){T(e,o.status,t.value,r)})):T(e,o.status,null,r)}))}catch(t){}}function S(t,e,r){try{var o=new XMLHttpRequest;o.open("GET",t),o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&T(e,o.status,o.responseText,r)},o.onerror=function(){T(e,400)},o.ontimeout=function(){T(e,400)},o.send()}catch(t){}}function E(e,r,o){try{if(e>=200&&e<400&&r){p=0;var n=da();if(n){var i=function(t,e){try{if(!t||!t.enabled)return null;if(!t[Jb])return t.config;var r=t[Jb],o=t.config||{};return Qe(r,(function(r){var n,i,s,a,l,c,d,u=function(t,e,r){var o;if(!e||!e.enabled)return null;var n=(e[Jb]||{})[t]||{mode:1},i=n.mode,s=n.onCfg,a=n.offCfg,l=(r||{})[t]||{mode:2},c=l.mode,d=l.onCfg,u=l.offCfg,p=!!l.blockCdnCfg,b=rf+t+nf,f=rf+t+sf,h=c,g=d,v=u;return p||(4===i||5===i?(h=4==i?3:2,g=s||d,v=a||u):2===i||2===c?(h=2,g=d||s,v=u||a):3===i?(h=3,g=d||s,v=u||a):1===i&&1===c&&(h=1)),(o={})[rf+t+of]=h,o[b]=g,o[f]=v,o}(r,t,e.config[Jb]);Le(u)||(Qe(u,(function(t,e){Fo(o,t,e)})),s=o,a=(i=u)[rf+(n=r)+of],l=i[rf+n+nf],c=i[rf+n+sf],d=null,3===a&&(d=l),2===a&&(d=c),d&&Qe(d,(function(t,e){Fo(s,t,e)})))})),o}catch(t){}return null}(n.parse(r),t.core),s=i&&Do(i)&&A(i);s&&w(s,o)}}else p++;p<3&&O()}catch(t){}}function T(t,e,r,o){try{t(e,r,o)}catch(t){}}function A(t,e){var r=null;try{t&&(r=tf(t,f,0,5))}catch(t){}return r}function O(){!a&&u&&(a=tn((function(){a=null,h(s,E,c)}),u)).unref()}function $(){a&&a.cancel(),a=null,p=0}m(),t.initialize=function(a,m,y,w){e.initialize(a,m,y,w),i=Du($a(t.identifier),m.evtNamespace&&m.evtNamespace()),function(e){var i=t.identifier,a=t.core;t._addHook(Za(e,(function(){var t=tp(null,e,a);r=t.getExtCfg(i,lf);var u=d;d=!!r.blkCdnCfg,Le(u)||u===d||(!d&&s?h&&h(s,E,c):$()),Le(l)&&(l=2===r.syncMode),Le(c)&&(c=1===r.syncMode);var p=r.customEvtName||"ai_cfgsync";n!==p&&(l?C(p):(_(),n=p)),Le(s)&&(s=r.cfgUrl),s||(o=e,c&&x())}))),v=r.overrideSyncFn,g=r.overrideFetchFn,b=r[Qb],f=r[Yb],u=r[Zb],h=function(){var t=g;return Le(t)&&(fa()?t=k:ha()&&(t=S)),t}(),p=0,s&&!d&&h&&h(s,E,c)}(a)},t.getCfg=function(){return o},t.pause=function(){y=!0,$()},t.resume=function(){y=!1,O()},t.setCfg=function(t){return w(t)},t.sync=function(t){return x(t)},t.updateEventListenerName=function(t){return C(t)},t._doTeardown=function(t,e){_(),$(),m()},t._getDbgPlgTargets=function(){return[c,l,n,d,f]},t.processTelemetry=function(e,r){t.processNext(e,r)}})),m}return Vn(e,t),e.__ieDyn=1,e}(vp);function df(t,e){ju(t,null,null,e)}var uf="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",pf="",bf="&NoResponseBody=true",ff="POST",hf=function(){function t(){var e,r,o,n,i,s,a,l,c,d,u,p,b,f=0;Dn(t,this,(function(t,h){var g=!0;function v(t,e){hl(o,2,26,"Failed to send telemetry.",{message:t}),y(e,400,{})}function m(t){v("No endpoint url is provided for the batch",t)}function y(t,e,r,o){try{t&&t(e,r,o)}catch(t){}}function w(t,e){var r=Qr(),o=t[Ji];if(!o)return m(e),!0;o=t[Ji]+(p?bf:pf);var i=t[Bi],s=n?i:new Blob([i],{type:"text/plain;charset=UTF-8"});return r.sendBeacon(o,s)}function _(t,e,r){var s=t[Bi];try{if(s)if(w(t,e))y(e,200,{},pf);else{var l=i&&i.beaconOnRetry;l&&Ne(l)?l(t,e,w):(a&&a[Qi](t,e,!0),hl(o,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(t){n&&gl(o,"Failed to send telemetry using sendBeacon API. Ex:"+er(t)),y(e,n?0:400,{},pf)}}function x(t,r,o){var s,a,l,c=t[Yi]||{};!o&&e&&(s=Xb((function(t,e){a=t,l=e}))),n&&o&&t.disableXhrSync&&(o=!1);var d=t[Ji];if(!d)return m(r),void(a&&a(!1));var u=function(t,e,r,o,n,i){function s(t,e,r){try{t[e]=r}catch(t){}}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(t,e,!n),r&&s(a,Ws,r),!n&&i&&s(a,"timeout",i),a}(ff,d,g,!0,o,t[Zi]);function p(e){var o=i&&i.xhrOnComplete;if(o&&Ne(o))o(e,r,t);else{var s=Vs(e);y(r,e[Hi],Xs(e,n),s)}}return n||u[ts]("Content-type","application/json"),bo(lr(c),(function(t){u[ts](t,c[t])})),u.onreadystatechange=function(){n||(p(u),4===u.readyState&&a&&a(!0))},u.onload=function(){n&&p(u)},u.onerror=function(t){y(r,n?u[Hi]:400,Xs(u,n),n?pf:Fs(u)),l&&l(t)},u.ontimeout=function(){y(r,n?u[Hi]:500,Xs(u,n),n?pf:Fs(u)),a&&a(!1)},u.send(t[Bi]),s}function C(t,r,o){var s,a,l,c,d=t[Ji],u=t[Bi],h=n?u:new Blob([u],{type:"application/json"}),v=new Headers,w=u[Wn],_=!1,x=!1,C=t[Yi]||{},k=((s={method:ff,body:h})[uf]=!0,s);t.headers&&lr(t.headers)[Wn]>0&&(bo(lr(C),(function(t){v.append(t,C[t])})),k[Yi]=v),g&&n&&(k.credentials="include"),o&&(k.keepalive=!0,f+=w,n?2===t._sendReason&&(_=!0,p&&(d+=bf)):_=!0);var S=new Request(d,k);try{S[uf]=!0}catch(t){}if(!o&&e&&(a=Xb((function(t,e){l=t,c=e}))),!d)return m(r),void(l&&l(!1));function E(t){y(r,n?0:400,{},n?pf:t)}function T(t,e,o){var n=t[Hi],s=i.fetchOnComplete;s&&Ne(s)?s(t,r,o||pf,e):y(r,n,{},o||pf)}try{Ab(fetch(n?d:S,n?k:null),(function(e){if(o&&(f-=w,w=0),!x)if(x=!0,e.rejected)E(e.reason&&e.reason[Ei]),c&&c(e.reason);else{var r=e.value;try{n||r.ok?n&&!r.body?(T(r,null,pf),l&&l(!0)):Ab(r.text(),(function(e){T(r,t,e.value),l&&l(!0)})):(E(r.statusText),l&&l(!1))}catch(t){E(er(t)),c&&c(t)}}}))}catch(t){x||(E(er(t)),c&&c(t))}return _&&!x&&(x=!0,y(r,200,{}),l&&l(!0)),n&&!x&&t[Zi]>0&&b&&b.set((function(){x||(x=!0,y(r,500,{}),l&&l(!0))}),t[Zi]),a}function k(t,e,r){var s=Jr(),a=new XDomainRequest,l=t[Bi];a.onload=function(){var r=Vs(a),o=i&&i.xdrOnComplete;o&&Ne(o)?o(a,e,t):y(e,200,{},r)},a.onerror=function(){y(e,400,{},n?pf:Us(a))},a.ontimeout=function(){y(e,500,{})},a.onprogress=function(){};var c=s&&s.location&&s.location[Ri]||"",d=t[Ji];if(d){if(!n&&0!==d.lastIndexOf(c,0)){var u="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";return hl(o,2,40,". "+u),void v(u,e)}var p=n?d:d[Mi](/^(https?:)/,"");a.open(ff,p),t[Zi]&&(a[Zi]=t[Zi]),a.send(l),n&&r?b&&b.set((function(){a.send(l)}),0):a.send(l)}else m(e)}function S(){f=0,r=!1,e=!1,o=null,n=null,i=null,s=null,a=null,l=!1,c=!1,d=!1,u=!1,p=!1,b=null}S(),t[ii]=function(e,n){o=n,r&&hl(o,1,28,"Sender is already initialized"),t.SetConfig(e),r=!0},t._getDbgPlgTargets=function(){return[r,n,s,e]},t.SetConfig=function(t){try{if(i=t.senderOnCompleteCallBack||{},s=!!t.disableCredentials,n=!!t.isOneDs,e=!!t.enableSendPromise,l=!!t.disableXhr,c=!!t.disableBeacon,d=!!t.disableBeaconSync,b=t.timeWrapper,p=!!t.addNoResponse,u=!!t.disableFetchKeepAlive,a={sendPOST:x},n||(g=!1),s){var r=la();r&&r.protocol&&"file:"===r.protocol[Fn]()&&(g=!1)}return!0}catch(t){}return!1},t.getSyncFetchPayload=function(){return f},t.getSenderInst=function(t,e){return t&&t[Wn]?function(t,e){for(var r,o=0,n=null,i=0;null==n&&i<t[Wn];)o=t[i],l||1!==o?2!==o||!fa(e)||e&&u?3!==o||!ba()||(e?d:c)||(n=_):n=C:(null===ia&&(ia=typeof XDomainRequest!==Ln)&&ha()&&(ia=ia&&!aa(Ur(ea),"withCredentials")),ia?n=k:ha()&&(n=x)),i++;return n?((r={_transport:o,_isSync:e})[Qi]=n,r):null}(t,e):null},t.getFallbackInst=function(){return a},t[Oi]=function(t,e){S()}}))}return t.__ieDyn=1,t}();function gf(t,e){if(t&&t[yi])return t[yi](e)}function vf(t,e,r){var o;return r||(o=Xb((function(t){r=t}))),t&&Ho(t)>0?Ab(gf(t[0],e),(function(){vf(go(t,1),e,r)})):r(),o}function mf(t,e){try{if(t&&""!==t){var r=da().parse(t);if(r&&r[Gi]&&r[Gi]>=r.itemsAccepted&&r.itemsReceived-r.itemsAccepted===r.errors[Wn])return r}}catch(r){hl(e,1,43,"Cannot parse the response. "+(r[bi]||er(r)),{response:t})}return null}function yf(t){var e="ai."+t+".";return function(t){return e+t}}var wf,_f=yf("application"),xf=yf("device"),Cf=yf("location"),kf=yf("operation"),Sf=yf("session"),Ef=yf("user"),Tf=yf("cloud"),Af=yf("internal"),Of=function(t){function e(){return t.call(this)||this}return Vn(e,t),e}((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:Cf("ip"),locationCountry:Cf("country"),locationProvince:Cf("province"),locationCity:Cf("city"),operationId:kf("id"),operationName:kf("name"),operationParentId:kf("parentId"),operationRootId:kf("rootId"),operationSyntheticSource:kf("syntheticSource"),operationCorrelationVector:kf("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 t=this;wf&&Qe(wf,(function(e,r){t[e]=r}))})),$f="user",If="device",Df="trace",Rf=new Of,jf=function(t,e,r){var o=this,n=this;n.ver=1,n.sampleRate=100,n.tags={},n[El]=Ac(t,r)||Sc,n.data=e,n.time=Ds(new Date),n.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===o.sampleRate?4:1},tags:1,data:1}},Lf=function(t,e){this.aiDataContract={baseType:1,baseData:1},this.baseType=t,this.baseData=e},Pf="duration",Mf="tags",Nf="deviceType",zf="data",qf="name",Hf="traceID",Vf="length",Uf="stringify",Ff="measurements",Bf="dataType",Wf="envelopeType",Kf="toString",Xf="_get",Gf="enqueue",Jf="count",Qf="eventsLimitInMem",Yf="push",Zf="item",th="emitLineDelimitedJson",eh="clear",rh="createNew",oh="markAsSent",nh="clearSent",ih="bufferOverride",sh="BUFFER_KEY",ah="SENT_BUFFER_KEY",lh="concat",ch="MAX_BUFFER_SIZE",dh="triggerSend",uh="diagLog",ph="initialize",bh="_sender",fh="customHeaders",hh="maxBatchSizeInBytes",gh="onunloadDisableBeacon",vh="isBeaconApiDisabled",mh="alwaysUseXhrOverride",yh="disableXhr",wh="enableSessionStorageBuffer",_h="_buffer",xh="onunloadDisableFetch",Ch="disableSendBeaconSplit",kh="instrumentationKey",Sh="enableSendPromise",Eh="getSenderInst",Th="unloadTransports",Ah="convertUndefined",Oh="maxBatchInterval",$h="serialize",Ih="_onError",Dh="_onPartialSuccess",Rh="_onSuccess",jh="itemsReceived",Lh="itemsAccepted",Ph="oriPayload",Mh="baseType",Nh="sampleRate",zh="eventsSendRequest",qh="getSamplingScore",Hh="baseType",Vh="baseData",Uh="properties",Fh="true";function Bh(t,e,r){return js(t,e,r,We)}function Wh(t,e,r){Le(t)||Qe(t,(function(t,o){Ve(o)?r[t]=o:Me(o)?e[t]=o:ca()&&(e[t]=da()[Uf](o))}))}function Kh(t,e){Le(t)||Qe(t,(function(r,o){t[r]=o||e}))}function Xh(t,e,r,o){var n=new jf(t,o,e);Bh(n,"sampleRate",r[wc]),(r[Vh]||{}).startTime&&(n.time=Ds(r[Vh].startTime)),n.iKey=r.iKey;var i=r.iKey.replace(/-/g,"");return n[qf]=n[qf].replace("{0}",i),function(t,e,r){var o=r[Mf]=r[Mf]||{},n=e.ext=e.ext||{},i=e[Mf]=e[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=e.ext.web;if(c){Bh(o,Rf.deviceLanguage,c.browserLang),Bh(o,Rf.deviceBrowserVersion,c.browserVer),Bh(o,Rf.deviceBrowser,c.browser);var d=r[zf]=r[zf]||{},u=d[Vh]=d[Vh]||{},p=u[Uh]=u[Uh]||{};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(t,f[qf])),Bh(o,Rf.operationId,f[Hf]));for(var h={},g=i[Vf]-1;g>=0;g--)Qe(i[g],(function(t,e){h[t]=e})),i.splice(g,1);Qe(i,(function(t,e){h[t]=e}));var v=qn(qn({},o),h);v[Rf.internalSdkVersion]||(v[Rf.internalSdkVersion]=Ac(t,"javascript:".concat(Jh.Version),64)),r[Mf]=zs(v)}(t,r,n),r[Mf]=r[Mf]||[],zs(n)}function Gh(t,e){Le(e[Vh])&&hl(t,1,46,"telemetryItem.baseData cannot be null.")}var Jh={Version:"3.2.0"};function Qh(t,e,r){Gh(t,e);var o={},n={};e[Hh]!==Pc[Bf]&&(o.baseTypeSource=e[Hh]),e[Hh]===Pc[Bf]?(o=e[Vh][Uh]||{},n=e[Vh][Ff]||{}):e[Vh]&&Wh(e[Vh],o,n),Wh(e[zf],o,n),Le(r)||Kh(o,r);var i=e[Vh][qf],s=new Pc(t,i,o,n),a=new Lf(Pc[Bf],s);return Xh(t,Pc[Wf],e,a)}var Yh,Zh,tg=function(){function t(e,r){var o=[],n=!1,i=r.maxRetryCnt;this[Xf]=function(){return o},this._set=function(t){return o=t},Dn(t,this,(function(t){t[Gf]=function(s){t[Jf]()>=r[Qf]?n||(hl(e,2,105,"Maximum in-memory buffer size reached: "+t[Jf](),!0),n=!0):(s.cnt=s.cnt||0,!Le(i)&&s.cnt>i||o[Yf](s))},t[Jf]=function(){return o[Vf]},t.size=function(){for(var t=o[Vf],e=0;e<o[Vf];e++)t+=o[e].item[Vf];return r[th]||(t+=2),t},t[eh]=function(){o=[],n=!1},t.getItems=function(){return o.slice(0)},t.batchPayloads=function(t){if(t&&t[Vf]>0){var e=[];return bo(t,(function(t){e[Yf](t[Zf])})),r[th]?e.join("\n"):"["+e.join(",")+"]"}return null},t[rh]=function(t,r,n){var i=o.slice(0);t=t||e,r=r||{};var s=n?new og(t,r):new eg(t,r);return bo(i,(function(t){s[Gf](t)})),s}}))}return t.__ieDyn=1,t}(),eg=function(t){function e(r,o){var n=t.call(this,r,o)||this;return Dn(e,n,(function(t,e){t[oh]=function(t){e[eh]()},t[nh]=function(t){}})),n}return Vn(e,t),e.__ieDyn=1,e}(tg),rg=["AI_buffer","AI_sentBuffer"],og=function(t){function e(r,o){var n=t.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,d=o.maxRetryCnt;return Dn(e,n,(function(t,o){var n=h(e[sh]),a=h(e[ah]),u=function(){var t=[];try{return bo(rg,(function(e){var r=m(e);if(t=t[lh](r),s){var o=m(s+"_"+e);t=t[lh](o)}})),t}catch(t){hl(r,2,41,"Transfer events from previous buffers: "+Rs(t)+". previous Buffer items can not be removed",{exception:er(t)})}return[]}(),p=a[lh](u),b=t._set(n[lh](p));function f(t,e){var r=[],o=[];return bo(t,(function(t){o[Yf](t[Zf])})),bo(e,(function(t){Ne(t)||-1!==fo(o,t[Zf])||r[Yf](t)})),r}function h(t){return g(s?s+"_"+t:t)}function g(t){try{var e=l(r,t);if(e){var o=da().parse(e);if(Me(o)&&(o=da().parse(o)),o&&qe(o))return o}}catch(e){hl(r,1,42," storage key: "+t+", "+Rs(e),{exception:er(e)})}return[]}function v(t,e){var o=t;try{o=s?s+"_"+o:o;var n=JSON[Uf](e);c(r,o,n)}catch(t){c(r,o,JSON[Uf]([])),hl(r,2,41," storage key: "+o+", "+Rs(t)+". Buffer cleared",{exception:er(t)})}}function m(t){try{var e=g(t),o=[];return bo(e,(function(t){var e={item:t,cnt:0};o[Yf](e)})),hc(r,t),o}catch(t){}return[]}b[Vf]>e[ch]&&(b[Vf]=e[ch]),v(e[ah],[]),v(e[sh],b),t[Gf]=function(n){t[Jf]()>=e[ch]?i||(hl(r,2,67,"Maximum buffer size reached: "+t[Jf](),!0),i=!0):(n.cnt=n.cnt||0,!Le(d)&&n.cnt>d||(o[Gf](n),v(e.BUFFER_KEY,t[Xf]())))},t[eh]=function(){o[eh](),v(e.BUFFER_KEY,t[Xf]()),v(e[ah],[]),i=!1},t[oh]=function(o){v(e[sh],t._set(f(o,t[Xf]())));var n=h(e[ah]);n instanceof Array&&o instanceof Array&&((n=n[lh](o))[Vf]>e[ch]&&(hl(r,1,67,"Sent buffer reached its maximum size: "+n[Vf],!0),n[Vf]=e[ch]),v(e[ah],n))},t[nh]=function(t){var r=h(e[ah]);r=f(t,r),v(e[ah],r)},t[rh]=function(o,n,i){i=!!i;var s=t[Xf]().slice(0),a=h(e[ah]).slice(0);o=o||r,n=n||{},t[eh]();var l=i?new e(o,n):new eg(o,n);return bo(s,(function(t){l[Gf](t)})),i&&l[oh](a),l}})),n}var r;return Vn(e,t),r=e,e.VERSION="_1",e.BUFFER_KEY="AI_buffer"+r.VERSION,e.SENT_BUFFER_KEY="AI_sentBuffer"+r.VERSION,e.MAX_BUFFER_SIZE=2e3,e}(tg),ng=function(){function t(e){Dn(t,this,(function(t){function r(t,i){var s="__aiCircularRefCheck",a={};if(!t)return hl(e,1,48,"cannot serialize object because it is null or undefined",{name:i},!0),a;if(t[s])return hl(e,2,50,"Circular reference detected while serializing object",{name:i},!0),a;if(!t.aiDataContract){if("measurements"===i)a=n(t,"number",i);else if("properties"===i)a=n(t,"string",i);else if("tags"===i)a=n(t,"string",i);else if(qe(t))a=o(t,i);else{hl(e,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:i},!0);try{da()[Uf](t),a=t}catch(t){hl(e,1,48,t&&Ne(t[Kf])?t[Kf]():"Error serializing object",null,!0)}}return a}return t[s]=!0,Qe(t.aiDataContract,(function(n,s){var l=Ne(s)?1&s():1&s,c=Ne(s)?4&s():4&s,d=2&s,u=void 0!==t[n],p=ze(t[n])&&null!==t[n];if(!l||u||d){if(!c){var b;void 0!==(b=p?d?o(t[n],n):r(t[n],n):t[n])&&(a[n]=b)}}else hl(e,1,24,"Missing required field specification. The field is required but not present on source",{field:n,name:i})})),delete t[s],a}function o(t,o){var n;if(t)if(qe(t)){n=[];for(var i=0;i<t[Vf];i++){var s=r(t[i],o+"["+i+"]");n[Yf](s)}}else hl(e,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(t,r,o){var n;return t&&(n={},Qe(t,(function(t,i){if("string"===r)void 0===i?n[t]="undefined":null===i?n[t]="null":i[Kf]?n[t]=i[Kf]():n[t]="invalid field: toString() is not defined.";else if("number"===r)if(void 0===i)n[t]="undefined";else if(null===i)n[t]="null";else{var s=parseFloat(i);n[t]=s}else n[t]="invalid field: "+o+" is of unknown type.",hl(e,1,n[t],null,!0)}))),n}t[$h]=function(t){var o=r(t,"root");try{return da()[Uf](o)}catch(t){hl(e,1,48,t&&Ne(t[Kf])?t[Kf]():"Error serializing object",null,!0)}}}))}return t.__ieDyn=1,t}(),ig=function(){function t(){}return t.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/t.INT_MAX_VALUE*100},t.prototype.getHashCode=function(t){if(""===t)return 0;for(;t[Vf]<8;)t=t[lh](t);for(var e=5381,r=0;r<t[Vf];++r)e=(e<<5)+e+t.charCodeAt(r),e|=0;return Math.abs(e)},t.INT_MAX_VALUE=2147483647,t}(),sg=function(){var t=new ig,e=new Of;this[qh]=function(r){return r[Mf]&&r[Mf][e.userId]?t.getHashCodeScore(r[Mf][e.userId]):r.ext&&r.ext.user&&r.ext.user.id?t.getHashCodeScore(r.ext.user.id):r[Mf]&&r[Mf][e.operationId]?t.getHashCodeScore(r[Mf][e.operationId]):r.ext&&r.ext.telemetryTrace&&r.ext.telemetryTrace[Hf]?t.getHashCodeScore(r.ext.telemetryTrace[Hf]):100*Math.random()}},ag=function(){function t(t,e){this.INT_MAX_VALUE=2147483647;var r=e||pl(null);(t>100||t<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:t},!0),t=100),this[Nh]=t,this.samplingScoreGenerator=new sg}return t.prototype.isSampledIn=function(t){var e=this[Nh];return null==e||e>=100||t.baseType===zc[Bf]||this.samplingScoreGenerator[qh](t)<e},t}(),lg=void 0;function cg(t){try{return t.responseText}catch(t){}return null}var dg=cr(((Yh={endpointUrl:Md(We,Cc+kc)})[th]=Nd(),Yh[Oh]=15e3,Yh[hh]=102400,Yh.disableTelemetry=Nd(),Yh[wh]=Nd(!0),Yh.isRetryDisabled=Nd(),Yh[vh]=Nd(!0),Yh[Ch]=Nd(!0),Yh[yh]=Nd(),Yh[xh]=Nd(),Yh[gh]=Nd(),Yh[kh]=lg,Yh.namePrefix=lg,Yh.samplingPercentage=Md((function(t){return!isNaN(t)&&t>0&&t<=100}),100),Yh[fh]=lg,Yh[Ah]=lg,Yh[Qf]=1e4,Yh[ih]=!1,Yh.httpXHROverride={isVal:function(t){return t&&t.sendPOST},v:lg},Yh[mh]=Nd(),Yh.transports=lg,Yh.retryCodes=lg,Yh.maxRetryCnt={isVal:Ve,v:10},Yh)),ug=((Zh={})[Pc.dataType]=Qh,Zh[Mc.dataType]=function(t,e,r){Gh(t,e);var o=e[Vh].message,n=e[Vh].severityLevel,i=e[Vh][Uh]||{},s=e[Vh][Ff]||{};Wh(e[zf],i,s),Le(r)||Kh(i,r);var a=new Mc(t,o,n,i,s),l=new Lf(Mc[Bf],a);return Xh(t,Mc[Wf],e,l)},Zh[Vc.dataType]=function(t,e,r){var o;Gh(t,e);var n=e[Vh];Le(n)||Le(n[Uh])||Le(n[Uh][Pf])?Le(e[zf])||Le(e[zf][Pf])||(o=e[zf][Pf],delete e[zf][Pf]):(o=n[Uh][Pf],delete n[Uh][Pf]);var i,s=e[Vh];((e.ext||{}).trace||{})[Hf]&&(i=e.ext.trace[Hf]);var a=s.id||i,l=s[qf],c=s.uri,d=s[Uh]||{},u=s[Ff]||{};Le(s.refUri)||(d.refUri=s.refUri),Le(s.pageType)||(d.pageType=s.pageType),Le(s.isLoggedIn)||(d.isLoggedIn=s.isLoggedIn[Kf]()),Le(s[Uh])||Qe(s[Uh],(function(t,e){d[t]=e})),Wh(e[zf],d,u),Le(r)||Kh(d,r);var p=new Vc(t,l,c,o,d,u,a),b=new Lf(Vc[Bf],p);return Xh(t,Vc[Wf],e,b)},Zh[Uc.dataType]=function(t,e,r){Gh(t,e);var o=e[Vh],n=o[qf],i=o.uri||o.url,s=o[Uh]||{},a=o[Ff]||{};Wh(e[zf],s,a),Le(r)||Kh(s,r);var l=new Uc(t,n,i,void 0,s,a,o),c=new Lf(Uc[Bf],l);return Xh(t,Uc[Wf],e,c)},Zh[od.dataType]=function(t,e,r){Gh(t,e);var o=e[Vh][Ff]||{},n=e[Vh][Uh]||{};Wh(e[zf],n,o),Le(r)||Kh(n,r);var i=e[Vh],s=od.CreateFromInterface(t,i,n,o),a=new Lf(od[Bf],s);return Xh(t,od[Wf],e,a)},Zh[zc.dataType]=function(t,e,r){Gh(t,e);var o=e[Vh],n=o[Uh]||{},i=o[Ff]||{};Wh(e[zf],n,i),Le(r)||Kh(n,r);var s=new zc(t,o[qf],o.average,o.sampleCount,o.min,o.max,o.stdDev,n,i),a=new Lf(zc[Bf],s);return Xh(t,zc[Wf],e,a)},Zh[Dd.dataType]=function(t,e,r){Gh(t,e);var o=e[Vh][Ff]||{},n=e[Vh][Uh]||{};Wh(e[zf],n,o),Le(r)||Kh(n,r);var i=e[Vh];if(Le(i))return gl(t,"Invalid input for dependency data"),null;var s=i[Uh]&&i[Uh][xc]?i[Uh][xc]:"GET",a=new Dd(t,i.id,i.target,i[qf],i[Pf],i.success,i.responseCode,s,i.type,i.correlationContext,n,o),l=new Lf(Dd[Bf],a);return Xh(t,Dd[Wf],e,l)},Zh),pg=function(t){function e(){var r,o,n,i,s,a,l,c=t.call(this)||this;c.priority=1001,c.identifier=vc;var d,u,p,b,f,h,g,v,m,y,w,_,x,C,k,S,E,T,A,O,$,I,D,R,j,L,P,M=0;return Dn(e,c,(function(t,N){function z(e,o){var n=cg(e);if(!e||n+""!="200"&&""!==n){var i=mf(n);i&&i[jh]&&i[jh]>i[Lh]&&!C?t[Dh](o,i):t[Ih](o,Us(e))}else r=0,t[Rh](o,0)}function q(t,e,r){4===t.readyState&&Q(t.status,e,t.responseURL,r,Fs(t),cg(t)||t.response)}function H(t){try{if(t){var e=t[Ph];return e&&e[Vf]?e:null}}catch(t){}return null}function V(e,r){return!(w||(e?e.baseData&&!e[Mh]?(r&&hl(r,1,70,"Cannot send telemetry without baseData and baseType"),1):(e[Mh]||(e[Mh]="EventData"),t[bh]?(o=e,t._sample.isSampledIn(o)?(e[wc]=t._sample[Nh],0):(r&&hl(r,2,33,"Telemetry item was sampled out and not sent",{SampleRate:t._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 U(t,r){var o=t.iKey||_,n=e.constructEnvelope(t,o,r,x);if(n){var i=!1;if(t[Mf]&&t[Mf][_c]&&(bo(t[Mf][_c],(function(t){try{t&&!1===t(n)&&(i=!0,gl(r,"Telemetry processor check returns false"))}catch(t){hl(r,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Rs(t),{exception:er(t)},!0)}})),delete t[Mf][_c]),!i)return n}else hl(r,1,47,"Unable to create an AppInsights envelope")}function F(e){var r="",o=t[uh]();try{var n=V(e,o),i=null;n&&(i=U(e,o)),i&&(r=s[$h](i))}catch(t){}return r}function B(t){var e="";return t&&t[Vf]&&(e="["+t.join(",")+"]"),e}function W(t){var e,r=G();return(e={urlString:b})[zf]=t,e.headers=r,e}function K(e,r,o,n){void 0===n&&(n=!0);var i=X(r),s=e&&e.sendPOST;return s&&i?(n&&t._buffer[oh](r),s(i,(function(e,o,n){return function(e,r,o,n){200===r&&e?t._onSuccess(e,e[Vf]):n&&t[Ih](e,n)}(r,e,0,n)}),!o)):null}function X(e){var r;if(qe(e)&&e[Vf]>0){var o=t[_h].batchPayloads(e),n=G();return(r={})[zf]=o,r.urlString=b,r.headers=n,r.disableXhrSync=$,r.disableFetchKeepAlive=!I,r[Ph]=e,r}return null}function G(){try{var t=l||{};return kd(b)&&(t[gd[6]]=gd[7]),t}catch(t){}return null}function J(e){var r=e?e[Vf]:0;return t[_h].size()+r>h&&(u&&!u.isOnline()||t[dh](!0,null,10),!0)}function Q(e,o,n,i,s,a){var l=null;if(t._appId||(l=mf(a))&&l.appId&&(t._appId=l.appId),(e<200||e>=300)&&0!==e){if((301===e||307===e||308===e)&&!Y(n))return void t[Ih](o,s);!C&&it(e)?(rt(o),hl(t[uh](),2,40,". Response code "+e+". Will retry to send "+o[Vf]+" items.")):t[Ih](o,s)}else u&&!u.isOnline()?C||(rt(o,10),hl(t[uh](),2,40,". Offline - Response Code: ".concat(e,". Offline status: ").concat(!u.isOnline(),". Will retry to send ").concat(o.length," items."))):(Y(n),206===e?(l||(l=mf(a)),l&&!C?t[Dh](o,l):t[Ih](o,s)):(r=0,t[Rh](o,i)))}function Y(t){return!(a>=10||Le(t)||""===t||t===b||(b=t,++a,0))}function Z(t,e){if(!d)return K(L&&L[Eh]([3],!0),t,e);d(t,!1)}function tt(t){try{if(t&&t[Vf])return Me(t[0])}catch(t){}return null}function et(e,r){var o=null;if(qe(e)){for(var n=e[Vf],i=0;i<e[Vf];i++)n+=e[i].item[Vf];return L.getSyncFetchPayload()+n<=65e3?o=2:ba()?o=3:(o=1,hl(t[uh](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender.")),K(L&&L[Eh]([o],!0),e,r)}return null}function rt(e,n){if(void 0===n&&(n=1),e&&0!==e[Vf]){var i=t[_h];i[nh](e),r++;for(var s=0,a=e;s<a.length;s++){var l=a[s];l.cnt=l.cnt||0,l.cnt++,i[Gf](l)}!function(t){var e;if(r<=1)e=10;else{var n=(Math.pow(2,r)-1)/2,i=Math.floor(Math.random()*n*10)+1;i*=t,e=Math.max(Math.min(i,3600),10)}var s=So()+1e3*e;o=s}(n),ot()}}function ot(){if(!i&&!n){var e=o?Math.max(0,o-So()):0,r=Math.max(k,e);i=tn((function(){i=null,t[dh](!0,null,1)}),r)}}function nt(){i&&i.cancel(),i=null,o=null}function it(t){return Le(P)?401===t||408===t||429===t||500===t||502===t||503===t||504===t:P[Vf]&&P.indexOf(t)>-1}function st(){t[bh]=null,t[_h]=null,t._appId=null,t._sample=null,l={},u=null,r=0,o=null,n=!1,i=null,s=null,a=0,M=0,d=null,p=null,b=null,f=null,h=0,g=!1,y=null,w=!1,_=null,x=lg,C=!1,S=null,T=lg,$=!1,I=!1,j=!1,D=null,R=null,L=null,Pr(t,"_senderConfig",{g:function(){return qs({},dg)}})}st(),t.pause=function(){nt(),n=!0},t.resume=function(){n&&(n=!1,o=null,J(),ot())},t.flush=function(e,r,o){if(void 0===e&&(e=!0),!n){nt();try{return t[dh](e,null,o||1)}catch(e){hl(t[uh](),1,22,"flush failed, telemetry will not be collected: "+Rs(e),{exception:er(e)})}}},t.onunloadFlush=function(){if(!n)if(g||O)try{return t[dh](!0,Z,2)}catch(e){hl(t[uh](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+Rs(e),{exception:er(e)})}else t.flush(!1)},t.addHeader=function(t,e){l[t]=e},t[ph]=function(e,n,i,M){t.isInitialized()&&hl(t[uh](),1,28,"Sender is already initialized"),N[ph](e,n,i,M);var V=t.identifier;s=new ng(n.logger),r=0,o=null,t[bh]=null,a=0;var U=t[uh]();p=Du($a("Sender"),n.evtNamespace&&n.evtNamespace()),u=function(t){var e=Br(),r=Qr(),o=!1,n=[],i=1;!r||Le(r.onLine)||r.onLine||(i=2);var s=0,a=u(),l=Du($a("OfflineListener"),t);try{if(d(Jr())&&(o=!0),e){var c=e.body||e;c.ononline&&d(c)&&(o=!0)}}catch(t){o=!1}function d(t){var e=!1;return t&&(e=Ru(t,"online",b,l))&&Ru(t,"offline",f,l),e}function u(){return 2!==s&&2!==i}function p(){var t=u();a!==t&&(a=t,bo(n,(function(t){var e={isOnline:a,rState:i,uState:s};try{t(e)}catch(t){}})))}function b(){i=1,p()}function f(){i=2,p()}return{isOnline:function(){return a},isListening:function(){return o},unload:function(){var t=Jr();if(t&&o){if(df(t,l),e){var r=e.body||e;je(r.ononline)||df(r,l)}o=!1}},addListener:function(t){return n[kl](t),{rm:function(){var e=n.indexOf(t);return e>-1?n.splice(e,1):void 0}}},setOnlineState:function(t){s=t,p()}}}(p),t._addHook(Za(e,(function(e){var r=e.cfg;r.storagePrefix&&lc(r.storagePrefix);var o=tp(null,r,n).getExtCfg(V,dg);Pr(t,"_senderConfig",{g:function(){return o}}),f!==o.endpointUrl&&(b=f=o.endpointUrl),y&&y!==o[fh]&&bo(y,(function(t){delete l[t.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,u=s!==S||s&&T!==a||s&&E!==i;if(t[_h]){if(u)try{t._buffer=t._buffer[rh](U,o,s)}catch(e){hl(t[uh](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+Rs(e),{exception:er(e)})}J()}else t[_h]=s?new og(U,o):new eg(U,o);T=a,S=s,E=i,I=!o[xh]&&fa(!0),j=!!o[Ch],t._sample=new ag(o.samplingPercentage,U),function(t,e){var r=e.disableInstrumentationKeyValidation;return!(Le(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(t)}(_=o[kh],r)||hl(U,1,100,"Invalid Instrumentation key "+_),y=o[fh],!kd(b)&&y&&y[Vf]>0?bo(y,(function(t){c.addHeader(t.header,t.value)})):y=null,A=o[Sh];var p=function(){var e;try{var r={xdrOnComplete:function(t,e,r){var o=H(r);if(o)return z(t,o)},fetchOnComplete:function(t,e,r,o){var n=H(o);if(n)return Q(t.status,n,t.url,n[Vf],t.statusText,r||"")},xhrOnComplete:function(t,e,r){var o=H(r);if(o)return q(t,o,o[Vf])},beaconOnRetry:function(e,r,o){return function(e,r,o){var n=e&&e[Ph];if(j)R&&R(n,!0),hl(t[uh](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var i=[],s=0;s<n[Vf];s++){var a=n[s],l=[a];o(X(l),r)?t._onSuccess(l,l[Vf]):i[Yf](a)}i[Vf]>0&&(R&&R(i,!0),hl(t[uh](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}(e,r,o)}};return(e={})[Sh]=A,e.isOneDs=!1,e.disableCredentials=!1,e[yh]=$,e.disableBeacon=!m,e.disableBeaconSync=!v,e.senderOnCompleteCallBack=r,e}catch(t){}return null}();L?L.SetConfig(p):(L=new hf)[ph](p,U);var M=o.httpXHROverride,N=null,F=null,B=Bs([3,1,2],o.transports);N=L&&L[Eh](B,!1);var W=L&&L.getFallbackInst();D=function(t,e){return K(W,t,e)},R=function(t,e){return K(W,t,e,!1)},N=O?M:N||M||W,t[bh]=function(t,e){return K(N,t,e)},I&&(d=et);var G=Bs([3,1],o[Th]);I||(G=G.filter((function(t){return 2!==t}))),F=L&&L[Eh](G,!0),F=O?M:F||M,(O||o[Th]||!d)&&F&&(d=function(t,e){return K(F,t,e)}),d||(d=D),w=o.disableTelemetry,x=o[Ah]||lg,C=o.isRetryDisabled,k=o[Oh]})))},t.processTelemetry=function(e,r){var o,n=(r=t._getTelCtx(r))[uh]();try{if(!V(e,n))return;var i=U(e,n);if(!i)return;var a=s[$h](i),l=t[_h];J(a);var c=((o={})[Zf]=a,o.cnt=0,o);l[Gf](c),ot()}catch(t){hl(n,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+Rs(t),{exception:er(t)})}t.processNext(e,r)},t.isCompletelyIdle=function(){return!n&&0===M&&0===t._buffer[Jf]()},t._xhrReadyStateChange=function(t,e,r){if(!tt(e))return q(t,e,r)},t[dh]=function(e,r,o){var i;if(void 0===e&&(e=!0),!n)try{var s=t[_h];if(w)s[eh]();else{if(s[Jf]()>0){var a=s.getItems();!function(e,r){var o,n=(o="getNotifyMgr",t.core[o]?t.core[o]():t.core._notificationManager);if(n&&n[zh])try{n[zh](e,r)}catch(e){hl(t[uh](),1,74,"send request notification failed: "+Rs(e),{exception:er(e)})}}(o||0,e),i=r?r.call(t,a,e):t[bh](a,e)}new Date}nt()}catch(e){var l=pa();(!l||l>9)&&hl(t[uh](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+Rs(e),{exception:er(e)})}return i},t.getOfflineSupport=function(){var t;return(t={getUrl:function(){return b},createPayload:W})[$h]=F,t.batch=B,t.shouldProcess=function(t){return!!V(t)},t},t._doTeardown=function(e,r){t.onunloadFlush(),gf(u,!1),st()},t[Ih]=function(e,r,o){if(!tt(e))return function(e,r,o){hl(t[uh](),2,26,"Failed to send telemetry.",{message:r}),t._buffer&&t._buffer[nh](e)}(e,r)},t[Dh]=function(e,r){if(!tt(e))return function(e,r){for(var o=[],n=[],i=0,s=r.errors.reverse();i<s.length;i++){var a=s[i],l=e.splice(a.index,1)[0];it(a.statusCode)?n[Yf](l):o[Yf](l)}e[Vf]>0&&t[Rh](e,r[Lh]),o[Vf]>0&&t[Ih](o,Fs(null,["partial success",r[Lh],"of",r.itemsReceived].join(" "))),n[Vf]>0&&(rt(n),hl(t[uh](),2,40,"Partial success. Delivered: "+e[Vf]+", Failed: "+o[Vf]+". Will retry to send "+n[Vf]+" our of "+r[jh]+" items"))}(e,r)},t[Rh]=function(e,r){if(!tt(e))return function(e,r){t._buffer&&t._buffer[nh](e)}(e)},t._xdrOnLoad=function(t,e){if(!tt(e))return z(t,e)}})),c}return Vn(e,t),e.constructEnvelope=function(t,e,r,o){var n;return n=e===t.iKey||Le(e)?t:qn(qn({},t),{iKey:e}),(ug[n.baseType]||Qh)(r,n,o)},e}(vp);var bg=function(t,e){var r,o,n,i,s,a,l,c=this,d=!1,u=!1;function p(t,e,n,i){if(d){var a=function(t){try{var e=b(t);return(1e6>0?Math.floor(ka()/va*1000001)>>>0:0)<=e.limit.samplingRate}catch(t){}return!1}(t);if(!a)return;var l=b(t),c=_(t),u=h(l,r,c),p=!1,f=0,v=x(t);try{u&&!v?(f=Math.min(l.limit.maxSendNumber,c[Al]+1),c[Al]=0,p=!0,s[t]=!0,c[Ol]=new Date):(s[t]=u,c[Al]+=1);var y=g(t);m(o,y,c);for(var k=0;k<f;k++)w(t,o,e,n)}catch(t){}return{isThrottled:p,throttleNum:f}}return i&&C(t)[kl]({msgID:t,message:e,severity:n}),null}function b(t){return n[t]||n[109]}function f(t,e){var r,o,i,s,a;try{var l=e||{},c={};c[$l]=!!l[$l];var d=l[Il]||{};u=(null==d?void 0:d.daysOfMonth)&&(null==d?void 0:d.daysOfMonth[wl])>0,c[Il]=(s=null===(i=(i=d)||{})||void 0===i?void 0:i.monthInterval,a=null==i?void 0:i.dayInterval,Le(s)&&Le(a)&&(i.monthInterval=3,u||(i[Dl]=[28],u=!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[t]=c}catch(t){}}function h(t,e,r){if(t&&!t[$l]&&e&&Os(r)){var o=v(),n=r[Rl],i=t[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(u)l=fo(i[Dl],o[jl]());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(t,e){var r=Os(e)?e:"";return t?"appInsightsThrottle"+r+"-"+t:null}function v(t){try{if(!t)return new Date;var e=new Date(t);if(!isNaN(e.getDate()))return e}catch(t){}return null}function m(t,e,r){try{return uc(t,e,Io(JSON[Ll](r)))}catch(t){}return!1}function y(t,e,r){return t<=0?1:r>=e&&(r-e)%t==0?Math.floor((r-e)/t)+1:-1}function w(t,e,r,o){hl(e,o||1,t,r)}function _(t){try{var e=i[t];if(!e){var r=g(t,a);e=function(t,e,r){try{var o={date:v(),count:0};if(t){var n=JSON.parse(t);return{date:v(n[Rl])||o[Rl],count:n[Al]||o[Al],preTriggerDate:n.preTriggerDate?v(n[Ol]):void 0}}return m(e,r,o),o}catch(t){}return null}(dc(o,r),o,r),i[t]=e}return i[t]}catch(t){}return null}function x(t){var e=s[t];if(Le(e)){e=!1;var r=_(t);r&&(e=function(t){try{if(t){var e=new Date;return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t[jl]()===e[jl]()}}catch(t){}return!1}(r[Ol])),s[t]=e}return s[t]}function C(t){return Le((l=l||{})[t])&&(l[t]=[]),l[t]}o=pl(t),s={},i={},l={},n={},f(109),a=Os(e)?e:"",t.addUnloadHook(Za(t.config,(function(t){var e=t.cfg;r=cc(),Qe(e.throttleMgrCfg||{},(function(t,e){f(parseInt(t),e)}))}))),c._getDbgPlgTargets=function(){return[l]},c.getConfig=function(){return n},c.canThrottle=function(t){var e=_(t);return h(b(t),r,e)},c.isTriggered=function(t){return x(t)},c.isReady=function(){return d},c.flush=function(t){try{var e=C(t);if(e&&e[wl]>0){var r=e.slice(0);return l[t]=[],bo(r,(function(t){p(t.msgID,t[Tl],t.severity,!1)})),!0}}catch(t){}return!1},c.flushAll=function(){try{if(l){var t=!0;return Qe(l,(function(e){var r=c.flush(parseInt(e));t=t&&r})),t}}catch(t){}return!1},c.onReadyState=function(t,e){return void 0===e&&(e=!0),(d=!!Le(t)||t)&&e?c.flushAll():null},c.sendMessage=function(t,e,r){return p(t,e,r,!0)}},fg={perfEvtsSendAll:!1};function hg(t){t.h=null;var e=t.cb;t.cb=[],bo(e,(function(t){$e(t.fn,[t.arg])}))}function gg(t,e,r,o){bo(t,(function(t){t&&t[e]&&(r?(r.cb[ei]({fn:o,arg:t}),r.h=r.h||tn(hg,0,r)):$e(o,[t]))}))}var vg,mg=function(){function t(e){var r,o;this.listeners=[];var n=[],i={h:null,cb:[]},s=Ya(e,fg);o=s[Yn]((function(t){r=!!t.cfg.perfEvtsSendAll})),Dn(t,this,(function(t){Pr(t,"listeners",{g:function(){return n}}),t[li]=function(t){n[ei](t)},t[ai]=function(t){for(var e=fo(n,t);e>-1;)n[ri](e,1),e=fo(n,t)},t[fs]=function(t){gg(n,fs,i,(function(e){e[fs](t)}))},t[hs]=function(t,e){gg(n,hs,i,(function(r){r[hs](t,e)}))},t[gs]=function(t,e){gg(n,gs,e?i:null,(function(r){r[gs](t,e)}))},t[vs]=function(t){t&&(!r&&t[Fi]()||gg(n,vs,null,(function(e){t[Ti]?tn((function(){return e[vs](t)}),0):e[vs](t)})))},t[ms]=function(t){t&&t[Wn]&&gg(n,ms,i,(function(e){e[ms](t)}))},t[ys]=function(t){t&&t[Bi]&&gg(n,ys,i,(function(e){e[ys](t)}))},t[ws]=function(t,e){if(t>0){var r=e||0;gg(n,ws,i,(function(e){e[ws](t,r)}))}},t[yi]=function(t){var e,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](t);o&&(e||(e=[]),e[ei](o))})),e)return Xb((function(t){return Ab(Gb(e),(function(){r(),t()}))}));r()}}))}return t.__ieDyn=1,t}(),yg=function(t){function e(){var r,o,n=t.call(this)||this;function i(){r=0,o=[]}return n.identifier="TelemetryInitializerPlugin",n.priority=199,i(),Dn(e,n,(function(t,e){t.addTelemetryInitializer=function(t){return function(t,e,r){var o={id:e,fn:r};return po(t,o),{remove:function(){bo(t,(function(e,r){if(e.id===o.id)return t[ri](r,1),-1}))}}}(o,r++,t)},t[ps]=function(e,r){(function(t,e,r){for(var o=!1,n=t[Wn],i=0;i<n;++i){var s=t[i];if(s)try{if(!1===s.fn[ti](null,[e])){o=!0;break}}catch(t){hl(r,2,64,"Telemetry initializer failed: "+Rs(t),{exception:er(t)},!0)}}return!o})(o,e,r?r[Ai]():t[Ai]())&&t[hi](e,r)},t[Oi]=function(){i()}})),n}return Vn(e,t),e.__ieDyn=1,e}(vp),wg="Plugins must provide initialize method",_g="SDK is still unloading...",xg=cr(((vg={cookieCfg:{}})[us]={rdOnly:!0,ref:!0,v:[]},vg[ss]={rdOnly:!0,ref:!0,v:[]},vg[ds]={ref:!0,v:{}},vg[ls]=ns,vg.loggingLevelConsole=0,vg.diagnosticLogInterval=ns,vg));function Cg(t,e){return new Vu(e)}function kg(t,e){var r=!1;return bo(e,(function(e){if(e===t)return r=!0,-1})),r}function Sg(t,e,r,o){r&&Qe(r,(function(r,n){o&&Do(n)&&Do(e[r])&&Sg(t,e[r],n,o),o&&Do(n)&&Do(e[r])?Sg(t,e[r],n,o):t.set(e,r,n)}))}function Eg(t,e){var r=null,o=-1;return bo(t,(function(t,n){if(t.w===e)return r=t,o=n,-1})),{i:o,l:r}}function Tg(t,e,r,o){return e.add(t[Yn]((function(t){var e=t.cfg.disableDbgExt;!0===e&&o&&(r[ai](o),o=null),r&&!o&&!0!==e&&(o=function(t){if(!tl){tl={};for(var e=0;e<rl[Wn];e++)tl[rl[e]]=nl(rl[e],t)}return tl}(t.cfg),r[li](o))}))),o}var Ag=function(){function t(){var e,r,o,n,i,s,a,l,c,d,u,p,b,f,h,g,v,m,y,w,_,x,C,k,S,E,T,A;Dn(t,this,(function(t){function O(t){return E&&E[vi]||A||(t||o&&o.queue[Wn]>0)&&(T||(T=!0,V(e[Yn]((function(t){var e=t.cfg.diagnosticLogInterval;e&&e>0||(e=1e4);var r=!1;E&&(r=E[vi],E[ni]()),E=function(t,e){return Zo(!1,ae,Oe[we](arguments))}(M,e),E.unref(),E[vi]=r})))),E[vi]=!0),E}function $(){var t={};k=[];var e=function(e){e&&bo(e,(function(e){if(e[si]&&e[_i]&&!t[e.identifier]){var r=e[si]+"="+e[_i];k[ei](r),t[e.identifier]=e}}))};e(p),u&&bo(u,(function(t){e(t)})),e(d)}function I(){r=!1,(e=Ya({},xg,t[Zn])).cfg[xi]=1,Pr(t,"config",{g:function(){return e.cfg},s:function(e){t.updateCfg(e,!1)}}),Pr(t,"pluginVersionStringArr",{g:function(){return k||$(),k}}),Pr(t,"pluginVersionString",{g:function(){return S||(k||$(),S=k.join(";")),S||is}}),Pr(t,"logger",{g:function(){return o||(o=new bl(e.cfg),e[Zn]=o),o},s:function(t){e[Zn]=t,o!==t&&(gf(o,!1),o=t)}}),t[Zn]=new bl(e.cfg),C=[];var y=t.config[us]||[];y.splice(0,y[Wn]),po(y,C),f=new yg,n=[],gf(i,!1),i=null,s=null,a=null,gf(l,!1),l=null,c=null,d=[],u=null,p=null,b=!1,h=null,g=$a("AIBaseCore",!0),v=bp(),w=null,_=null,m=fp(),x=[],S=null,k=null,A=!1,E=null,T=!1}function D(){var r=tp(L(),e.cfg,t);return r[wi](O),r}function R(e){var r=function(t,e,r){var o,n=[],i=[],s={};return bo(r,(function(e){(Le(e)||Le(e[ii]))&&rr(wg);var r=e[bs],o=e[si];e&&r&&(Le(s[r])?s[r]=o:gl(t,"Two extensions have same priority #"+r+" - "+s[r]+", "+o)),!r||r<500?n[ei](e):i[ei](e)})),(o={})[as]=n,o[ss]=i,o}(t[Zn],0,d);c=null,S=null,k=null,p=Xu(po(p=(u||[])[0]||[],r[ss]));var o=po(Xu(r[as]),p);C=dr(o);var n=t.config[us]||[];n.splice(0,n[Wn]),po(n,C);var i=D();p&&p[Wn]>0&&Ku(i[Ci](p),o),Ku(i,o),e&&z(e)}function j(t){var e=null,r=null,o=[];return bo(C,(function(e){if(e[si]===t&&e!==f)return r=e,-1;e.getChannel&&o[ei](e)})),!r&&o[Wn]>0&&bo(o,(function(e){if(!(r=e.getChannel(t)))return-1})),r&&(e={plugin:r,setEnabled:function(t){Wu(r)[cs]=!t},isEnabled:function(){var t=Wu(r);return!t[ki]&&!t[cs]},remove:function(t,e){var o;void 0===t&&(t=!0);var n=[r],i=((o={reason:1})[Ti]=t,o);P(n,i,(function(t){t&&R({reason:32,removed:n}),e&&e(t)}))}}),e}function L(){if(!c){var r=(C||[]).slice();-1===fo(r,f)&&r[ei](f),c=op(Xu(r),e.cfg,t)}return c}function P(r,o,n){if(r&&r[Wn]>0){var i=ep(op(r,e.cfg,t),t);i[wi]((function(){var t=!1,e=[];bo(d,(function(o,n){kg(o,r)?t=!0:e[ei](o)})),d=e,S=null,k=null;var o=[];u&&(bo(u,(function(e,n){var i=[];bo(e,(function(e){kg(e,r)?t=!0:i[ei](e)})),o[ei](i)})),u=o),n&&n(t),O()})),i[hi](o)}else n(!1)}function M(){if(o&&o.queue){var e=o.queue.slice(0);o.queue[Wn]=0,bo(e,(function(e){var r,o=((r={})[bi]=h||"InternalMessageId: "+e[Si],r.iKey=_,r[fi]=Ds(new Date),r.baseType=ul.dataType,r.baseData={message:e[Ei]},r);t.track(o)}))}}function N(t,e,r,o){var n=1,i=!1,s=null;function a(){n--,i&&0===n&&(s&&s[ni](),s=null,e&&e(i),e=null)}return o=o||5e3,p&&p[Wn]>0&&D()[Ci](p).iterate((function(e){if(e.flush){n++;var i=!1;e.flush(t,(function(){i=!0,a()}),r)||i||(t&&null==s?s=tn((function(){s=null,a()}),o):a())}})),i=!0,a(),!0}function z(e){var r=rp(L(),t);r[wi](O),t._updateHook&&!0===t._updateHook(r,e)||r[hi](e)}function q(e){var r=t[Zn];r?(hl(r,2,73,e),O()):rr(e)}function H(e){var r=t[di]();r&&r[hs]([e],2)}function V(t){m.add(t)}I(),t._getDbgPlgTargets=function(){return[C]},t[ci]=function(){return r},t[ii]=function(n,l,c,f){var h;b&&rr(_g),t[ci]()&&rr("Core cannot be initialized more than once"),n=(e=Ya(n,xg,c||t[Zn],!1)).cfg,V(e[Yn]((function(t){_=t.cfg.instrumentationKey;var e=t.ref(t.cfg,ds);Qe(e,(function(r){t.ref(e,r)})),Le(_)&&rr("Please provide instrumentation key")}))),y=Tg(e,m,(i=f)&&t[di](),y),V(e[Yn]((function(e){if(e.cfg.enablePerfMgr){var r=e.cfg[ls];h!==r&&(r||(r=Cg),Ls(e.cfg,ls,r),h=r,a=null),s||a||!Ne(r)||(a=r(t,t[di]()))}else a=null,h=null}))),t[Zn]=c;var g=n[us];if((d=[])[ei].apply(d,Un(Un([],l),g)),u=n[ss],R(null),p&&0!==p[Wn]||rr("No "+ss+" available"),u&&u[Wn]>1){var v=t[ui]("TeeChannelController");v&&v.plugin||hl(o,1,28,"TeeChannel required")}!function(t,e,r){bo(e,(function(e){var o=Za(t,e.w,r);delete e.w,e.rm=function(){o.rm()}}))}(n,x,o),x=null,r=!0,t.releaseQueue(),t[pi]()},t.getChannels=function(){var t=[];return p&&bo(p,(function(e){t[ei](e)})),dr(t)},t.track=function(e){Fu(t[_s](),(function(){return"AppInsightsCore:track"}),(function(){null===e&&(H(e),rr("Invalid telemetry item")),!e[bi]&&Le(e[bi])&&(H(e),rr("telemetry name required")),e.iKey=e.iKey||_,e[fi]=e[fi]||Ds(new Date),e.ver=e.ver||"4.0",!b&&t[ci]()?D()[hi](e):n[ei](e)}),(function(){return{item:e}}),!e.sync)},t[gi]=D,t[di]=function(){return i||(i=new mg(e.cfg),t._notificationManager=i),i},t[li]=function(e){t.getNotifyMgr()[li](e)},t[ai]=function(t){i&&i[ai](t)},t.getCookieMgr=function(){return l||(l=nu(e.cfg,t[Zn])),l},t.setCookieMgr=function(t){l!==t&&(gf(l,!1),l=t)},t[_s]=function(){return s||a||null},t.setPerfMgr=function(t){s=t},t.eventCnt=function(){return n[Wn]},t.releaseQueue=function(){if(r&&n[Wn]>0){var t=n;n=[],bo(t,(function(t){D()[hi](t)}))}},t[pi]=function(t){return h=t||null,A=!1,E&&E[ni](),O(!0)},t[mi]=function(){A=!0,E&&E[ni](),M()},Ns(t,(function(){return f}),["addTelemetryInitializer"]),t[yi]=function(e,n,s){var a;void 0===e&&(e=!0),r||rr("SDK is not initialized"),b&&rr(_g);var c,d=((a={reason:50})[Ti]=e,a.flushComplete=!1,a);e&&!n&&(c=Xb((function(t){n=t})));var u=ep(L(),t);function p(e){d.flushComplete=e,b=!0,v.run(u,d),t[mi](),u[hi](d)}return u[wi]((function(){m.run(t[Zn]),vf([l,i,o],e,(function(){I(),n&&n(d)}))}),t),M(),N(e,p,6,s)||p(!1),c},t[ui]=j,t.addPlugin=function(t,e,r,o){if(!t)return o&&o(!1),void q(wg);var n=j(t[si]);if(n&&!e)return o&&o(!1),void q("Plugin ["+t[si]+"] is already loaded!");var i={reason:16};function s(e){d[ei](t),i.added=[t],R(i),o&&o(!0)}if(n){var a=[n.plugin];P(a,{reason:2,isAsync:!!r},(function(t){t?(i.removed=a,i.reason|=32,s()):o&&o(!1)}))}else s()},t.updateCfg=function(r,o){var n;if(void 0===o&&(o=!0),t[ci]()){n={reason:1,cfg:e.cfg,oldCfg:zo({},e.cfg),newConfig:zo({},r),merge:o},r=n.newConfig;var i=e.cfg;r[us]=i[us],r[ss]=i[ss]}e._block((function(t){var e=t.cfg;Sg(t,e,r,o),o||Qe(e,(function(o){Ge(r,o)||t.set(e,o,ns)})),t[Qn](e,xg)}),!0),e[Xn](),n&&z(n)},t.evtNamespace=function(){return g},t.flush=N,t.getTraceCtx=function(t){return w||(e={},w={getName:function(){return e[bi]},setName:function(t){e[bi]=t},getTraceId:function(){return e[es]},setTraceId:function(t){bd(t)&&(e[es]=t)},getSpanId:function(){return e[rs]},setSpanId:function(t){fd(t)&&(e[rs]=t)},getTraceFlags:function(){return e[os]},setTraceFlags:function(t){e[os]=t}}),w;var e},t.setTraceCtx=function(t){w=t||null},t.addUnloadHook=V,Ms(t,"addUnloadCb",(function(){return v}),"add"),t.onCfgChange=function(o){var n,i,s,a;return r?n=Za(e.cfg,o,t[Zn]):((a=Eg(i=x,s=o).l)||(a={w:s,rm:function(){var t=Eg(i,s);-1!==t.i&&i[ri](t.i,1)}},i[ei](a)),n=a),function(t){return Pr({rm:function(){t.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(t)+">"}})}(n)},t.getWParam=function(){return Fr()||e.cfg.enableWParam?0:-1}}))}return t.__ieDyn=1,t}(),Og="duration",$g="properties",Ig="requestUrl",Dg="inst",Rg="length",jg="traceID",Lg="spanID",Pg="traceFlags",Mg="context",Ng="aborted",zg="traceId",qg="spanId",Hg="_addHook",Vg="core",Ug="includeCorrelationHeaders",Fg="getAbsoluteUrl",Bg="headers",Wg="requestHeaders",Kg="setRequestHeader",Xg="trackDependencyDataInternal",Gg="startTime",Jg="toLowerCase",Qg="enableRequestHeaderTracking",Yg="enableAjaxErrorStatusText",Zg="enableAjaxPerfTracking",tv="maxAjaxCallsPerView",ev="excludeRequestFromAutoTrackingPatterns",rv="addRequestContext",ov="disableAjaxTracking",nv="ajaxPerfLookupDelay",iv="disableFetchTracking",sv="enableResponseHeaderTracking",av="status",lv="statusText",cv="headerMap",dv="openDone",uv="sendDone",pv="requestSentTime",bv="abortDone",fv="getTraceId",hv="getTraceFlags",gv="method",vv="errorStatusText",mv="stateChangeAttached",yv="responseText",wv="responseFinishedTime",_v="CreateTrackItem",xv="response",Cv="getAllResponseHeaders",kv="getPartAProps",Sv="perfMark",Ev="name",Tv="perfTiming",Av="exception",Ov="ajaxDiagnosticsMessage",$v="correlationContext",Iv="ajaxTotalDuration",Dv="eventTraceCtx";function Rv(t,e,r){var o=0,n=t[e],i=t[r];return n&&i&&(o=Ad(n,i)),o}function jv(t,e,r,o,n){var i=0,s=Rv(r,o,n);return s&&(i=Lv(t,e,Hc(s))),i}function Lv(t,e,r){var o="ajaxPerf",n=0;return t&&e&&r&&((t[o]=t[o]||{})[e]=r,n=1),n}var Pv,Mv=function(){var t=this;t[dv]=!1,t.setRequestHeaderDone=!1,t[uv]=!1,t[bv]=!1,t[mv]=!1},Nv=function(){function t(e,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[jg]=e,s[Lg]=r,s[Pg]=null==n?void 0:n.getTraceFlags(),s[Dv]=n?((i={})[zg]=n[fv](),i[qg]=n.getSpanId(),i[Pg]=n[hv](),i):null,Dn(t,s,(function(t){t.getAbsoluteUrl=function(){return t[Ig]?function(t){var e,r=wd(t);return r&&(e=r.href),e}(t[Ig]):null},t.getPathName=function(){return t[Ig]?Oc(a,(e=t[gv],r=t[Ig],e?e.toUpperCase()+" "+r:r)):null;var e,r},t[_v]=function(e,r,o){var n;if(t.ajaxTotalDuration=Math.round(1e3*Ad(t.requestSentTime,t.responseFinishedTime))/1e3,t[Iv]<0)return null;var i=((n={id:"|"+t[jg]+"."+t[Lg],target:t[Fg]()})[Ev]=t.getPathName(),n.type=e,n[Gg]=null,n.duration=t[Iv],n.success=+t[av]>=200&&+t[av]<400,n.responseCode=+t[av],n[$g]={HttpMethod:t[gv]},n),s=i[$g];if(t[Ng]&&(s[Ng]=!0),t[pv]&&(i[Gg]=new Date,i[Gg].setTime(t[pv])),function(t,e){var r=t[Tv],o=e[$g]||{},n=0,i="name",s="Start",a="End",l="domainLookup",c="connect",d="redirect",u="request",p="response",b="startTime",f=l+s,h=l+a,g=c+s,v=c+a,m=u+s,y=u+a,w=p+s,_=p+a,x=d+s,C=d=a,k="transferSize",S="encodedBodySize",E="decodedBodySize",T="serverTiming";if(r){n|=jv(o,d,r,x,C),n|=jv(o,l,r,f,h),n|=jv(o,c,r,g,v),n|=jv(o,u,r,m,y),n|=jv(o,p,r,w,_),n|=jv(o,"networkConnect",r,b,v),n|=jv(o,"sentRequest",r,m,_);var A=r[Og];A||(A=Rv(r,b,_)||0),n|=Lv(o,Og,A),n|=Lv(o,"perfTotal",A);var O=r[T];if(O){var $={};bo(O,(function(t,e){var r=$s(t[i]||""+e),o=$[r]||{};Qe(t,(function(t,e){(t!==i&&Me(e)||Ve(e))&&(o[t]&&(e=o[t]+";"+e),!e&&Me(e)||(o[t]=e))})),$[r]=o})),n|=Lv(o,T,$)}n|=Lv(o,k,r[k]),n|=Lv(o,S,r[S]),n|=Lv(o,E,r[E])}else t[Sv]&&(n|=Lv(o,"missing",t.perfAttempts));n&&(e[$g]=o)}(t,i),r&&lr(t.requestHeaders)[Rg]>0&&(s[Wg]=t[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]),t[vv])if(t[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===t[av]&&(s.responseText=a[lv]||"")}}return i},t[kv]=function(){var e,r=null,o=t[Dv];if(o&&(o[zg]||o[qg])){var n=(r={})[Df]=((e={})[jg]=o[zg],e.parentID=o[qg],e);Le(o[Pg])||(n[Pg]=o[Pg])}return r}}))}return t.__ieDyn=1,t}(),zv="ai.ajxmn.",qv="diagLog",Hv="_ajaxData",Vv="fetch",Uv="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(t,e){return t&&e&&t[Hv]?(t[Hv].i||{})[e]:null},Yv=function(t,e){var r=!1;if(t){var o=(t[Hv]||{}).xh;o&&bo(o,(function(t){if(t.n===e)return r=!0,-1}))}return r};function Zv(t,e){var r="";try{var o=Qv(t,e);o&&o[Ig]&&(r+="(url: '"+o[Ig]+"')")}catch(t){}return r}function tm(t,e,r,o,n){hl(t[qv](),1,e,r,o,n)}function em(t,e,r,o,n){hl(t[qv](),2,e,r,o,n)}function rm(t,e,r){return function(o){var n;tm(t,e,r,((n={ajaxDiagnosticsMessage:Zv(o[Dg],t._ajaxDataId)})[Av]=er(o.err),n))}}function om(t,e){return t&&e?Xo(t,e):-1}function nm(t,e,r){var o={id:e,fn:r};return t.push(o),{remove:function(){bo(t,(function(e,r){if(e.id===o.id)return t.splice(r,1),-1}))}}}function im(t,e,r,o){var n=!0;return bo(e,(function(e,i){try{!1===e.fn.call(null,r)&&(n=!1)}catch(e){hl(t&&t.logger,1,64,"Dependency "+o+" [#"+i+"] failed: "+Rs(e),{exception:er(e)},!0)}})),n}var sm="*.blob.core.",am=dr([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=dr(((Pv={})[tv]=500,Pv[ov]=!1,Pv[iv]=!1,Pv[ev]=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)),dm=function(t){function e(){var r,o,n,i,s,a,l,c,d,u,p,b,f,h,g,v,m,y,w,_,x,C,k,S,E,T,A,O,$,I,D=t.call(this)||this;return D.identifier=e.identifier,D.priority=120,Dn(e,D,(function(t,D){var R=D[Hg];function j(){var e=la();r=!1,o=!1,I=!1,n=e&&e.host&&e.host[Jg](),i=null,s=!1,a=!1,l=0,c=null,d=!1,u=!1,p=null,b=!1,f=0,h=!1,g={},v=!1,m=!1,y=null,w=null,_=null,C=0,k=[],S=[],x=$a("ajaxData"),t._ajaxDataId=x,E=null,T=1,A=1,O=1,$=null}function L(t){var e=!0;return(t||E)&&bo(E,(function(r){if(r[Jg]()===t[Jg]())return e=!1,-1})),e}function P(t,e,r){R(function(t,e,r){return t?up(t[Pn],e,r,!1):null}(t,e,r))}function M(t,e,r){var o=!1,n=((Me(e)?e:(e||{}).url||"")||"")[Jg]();if(bo(y,(function(t){var e=t;Me(t)&&(e=new RegExp(t)),o||(o=e.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)),Le(t)?Le(e)||(o="object"==typeof e&&!0===e[yc]||!!r&&!0===r[yc]):o=!0===t[yc]||!0===n[yc],!o&&n&&kd(n)&&(o=!0),o?g[n]||(g[n]=1):g[n]&&(o=!0),o}function N(t,e,r){var n=!0,i=o;return Le(t)||(n=!0===r||!Le(e)),i&&n}function z(){var e=null;return t[Vg]&&t[Vg].getTraceCtx&&(e=t[Vg].getTraceCtx(!1)),!e&&c&&c.telemetryTrace&&(e=Od(c.telemetryTrace)),e}function q(t,e){if(e[Ig]&&p&&b){var r=Vo();if(r&&Ne(r.mark)){Jv++;var o=p+t+"#"+Jv;r.mark(o);var n=r.getEntriesByName(o);n&&1===n[Rg]&&(e[Sv]=n[0])}}}function H(t,e,r,o){var n=e[Sv],i=Vo(),s=T,a=A,l=e[Ig],c=0;!function d(){try{if(i&&n){c++;for(var u=null,p=i.getEntries(),b=p[Rg]-1;b>=0;b--){var f=p[b];if(f){if("resource"===f.entryType)f.initiatorType!==t||-1===om(f[Ev],l)&&-1===om(l,f[Ev])||(u=f);else if("mark"===f.entryType&&f[Ev]===n[Ev]){e[Tv]=u;break}if(f[Gg]<n[Gg]-1e3)break}}}!n||e[Tv]||c>=s||!1===e.async?(n&&Ne(i.clearMarks)&&i.clearMarks(n[Ev]),e.perfAttempts=c,r()):tn(d,a)}catch(t){o(t)}}()}function V(e){var r="";try{Le(e)||(r+="(url: '".concat("string"==typeof e?e:e.url,"')"))}catch(e){tm(t,15,"Failed to grab failed fetch diagnostics message",{exception:er(e)})}return r}function U(e,r,o,n,i,a,l){function c(e,r,n){var i=n||{};i.fetchDiagnosticsMessage=V(o),r&&(i.exception=er(r)),em(t,e,Gv+"fetch call"+Wv,i)}i&&(i[wv]=Td(),i[av]=r,H(Vv,i,(function(){var e,l=i[_v]("Fetch",s,a);try{w&&(e=w({status:r,request:o,response:n}))}catch(e){em(t,104,Xv)}if(l){void 0!==e&&(l[$g]=qn(qn({},l.properties),e));var d=i[kv]();F(S,t[Vg],i,l,null,d)}else c(14,null,{requestSentTime:i[pv],responseFinishedTime:i[wv]})}),(function(t){c(18,t,null)})))}function F(e,r,o,n,i,s){var a,l=!0;e[Rg]>0&&(l=im(r,e,((a={item:n})[$g]=i,a.sysProperties=s,a.context=o?o[Mg]:null,a.aborted=!!o&&!!o[Ng],a),"initializer")),l&&t[Xg](n,i,s)}j(),t.initialize=function(n,l,g,C){var k;t.isInitialized()||(D.initialize(n,l,g,C),_=Du($a("ajax"),l&&l.evtNamespace&&l.evtNamespace()),function(r){t[Hg](Za(r,(function(r){var o=r.cfg,n=tp(null,o,t[Vg]);if(i=n.getExtCfg(e.identifier,cm),O=i.distributedTracingMode,s=i[Qg],a=i[Yg],b=i[Zg],f=i[tv],y=[].concat(i[ev]||[],!1!==i.addIntEndpoints?lm:[]),w=i[rv],u=0===O||1===O,d=1===O||2===O,b){var l=o.instrumentationKey||"unkwn";p=l[Rg]>5?zv+Cr(l,l[Rg]-5)+".":zv+l+"."}v=!!i[ov],T=i.maxAjaxPerfLookupAttempts,A=i[nv],E=i.ignoreHeaders,$=i.appId})))}(n),function(t,e){var r,o,n=!1;if(ha()){var i=XMLHttpRequest[Pn];n=!(Le(i)||Le(i.open)||Le(i.send)||Le(i.abort))}var s=pa();if(s&&s<9&&(n=!1),n)try{var a=new XMLHttpRequest,l={xh:[],i:(r={},r[e]={},r)};a[Hv]=l;var c=XMLHttpRequest[Pn].open;XMLHttpRequest[Pn].open=c}catch(e){n=!1,tm(t,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",((o={})[Av]=er(e),o))}return n}(t,x)&&t[Hg](Za(i,(function(){v=!!i[ov],s=i[Qg],v||o||(P(XMLHttpRequest,"open",{ns:_,req:function(e,r,o,n){if(!v){var i=e[Dg],l=Qv(i,x);!M(i,o)&&N(i,l,!0)&&(l&&l.xhrMonitoringState[dv]||(l=function(e,r,o,n){var i,s=z(),l=s&&s[fv]()||sd(),c=kr(sd(),0,16),d=e[Hv]=e[Hv]||{xh:[],i:{}},u=d.i=d.i||{},p=u[x]=u[x]||new Nv(l,c,t[qv](),null===(i=t.core)||void 0===i?void 0:i.getTraceCtx());return p[Pg]=s&&s[hv](),p[gv]=r,p[Ig]=o,p.xhrMonitoringState[dv]=!0,p[Wg]={},p.async=n,p[vv]=a,p}(i,r,o,n)),function(e,r){r.xhrMonitoringState[mv]=Ru(e,"readystatechange",(function(){var o;try{e&&4===e.readyState&&N(e,r)&&function(e){var r=Qv(e,x);function o(r,o){var n=o||{};n.ajaxDiagnosticsMessage=Zv(e,x),r&&(n.exception=er(r)),em(t,14,Gv+"ajax call"+Wv,n)}r[wv]=Td(),r[av]=e[av],H("xmlhttprequest",r,(function(){try{var n=r[_v]("Ajax",s,(function(){var r,o=((r={statusText:e[lv]})[cv]=null,r[$v]=function(e){var r;try{var o=e[Cv]();if(null!==o&&-1!==om(o[Jg](),gd[8]))return Ed(e.getResponseHeader(gd[0]))}catch(o){em(t,18,Kv,((r={})[Ov]=Zv(e,x),r[Av]=er(o),r))}}(e),r.type=e.responseType,r[yv]=function(t){try{var e=t.responseType;if(""===e||"text"===e)return t[yv]}catch(t){}return null}(e),r.response=e[xv],r);if(h){var n=e[Cv]();if(n){var i=Io(n).split(/[\r\n]+/),s={};bo(i,(function(t){var e=t.split(": "),r=e.shift(),o=e.join(": ");L(r)&&(s[r]=o)})),o[cv]=s}}return o})),i=void 0;try{w&&(i=w({status:e[av],xhr:e}))}catch(e){em(t,104,Xv)}if(n){void 0!==i&&(n[$g]=qn(qn({},n.properties),i));var a=r[kv]();F(S,t[Vg],r,n,null,a)}else o(null,{requestSentTime:r[pv],responseFinishedTime:r[wv]})}finally{try{var l=(e[Hv]||{i:{}}).i||{};l[x]&&(l[x]=null)}catch(t){}}}),(function(t){o(t,null)}))}(e)}catch(r){var n=er(r);n&&-1!==om(n[Jg](),"c00c023f")||tm(t,16,Uv+" 'readystatechange' event handler"+Bv,((o={})[Ov]=Zv(e,x),o[Av]=n,o))}}),_)}(i,l))}},hkErr:rm(t,15,Uv+".open"+Bv)}),P(XMLHttpRequest,"send",{ns:_,req:function(e,r){if(!v){var o=e[Dg],n=Qv(o,x);N(o,n)&&!n.xhrMonitoringState[uv]&&(q("xhr",n),n[pv]=Td(),t[Ug](n,void 0,void 0,o),n.xhrMonitoringState[uv]=!0)}},hkErr:rm(t,17,Uv+Bv)}),P(XMLHttpRequest,"abort",{ns:_,req:function(t){if(!v){var e=t[Dg],r=Qv(e,x);N(e,r)&&!r.xhrMonitoringState[bv]&&(r[Ng]=1,r.xhrMonitoringState[bv]=!0)}},hkErr:rm(t,13,Uv+".abort"+Bv)}),P(XMLHttpRequest,"setRequestHeader",{ns:_,req:function(t,e,r){if(!v){var o=t[Dg],n=Qv(o,x);n&&N(o,n)&&(function(t,e,r){if(t){var o=(t[Hv]||{}).xh;o&&o.push({n:e,v:r})}}(o,e,r),s&&L(e)&&n&&(n[Wg][e]=r))}},hkErr:rm(t,71,Uv+".setRequestHeader"+Bv)}),o=!0)}))),function(){var e,n=!(e=Vr())||Le(e.Request)||Le(e.Request[Pn])||Le(e[Vv])?null:e[Vv];if(n){var l=Vr(),c=n.polyfill;t[Hg](Za(i,(function(){m=!!i[iv],h=i[sv],m||r?c&&!I&&(R(up(l,Vv,{ns:_,req:function(t,e,r){M(null,e,r)}})),I=!0):(R(up(l,Vv,{ns:_,req:function(e,n,i){var l;if(!m&&r&&!M(null,n,i)&&(!c||!o)){var d=e.ctx();l=function(e,r){var o,n,i=z(),l=i&&i[fv]()||sd(),c=kr(sd(),0,16),d=new Nv(l,c,t[qv](),null===(o=t.core)||void 0===o?void 0:o.getTraceCtx());if(d[Pg]=i&&i[hv](),d[pv]=Td(),d[vv]=a,""===(n=e instanceof Request?(e||{}).url||"":e)){var u=la();u&&u.href&&(n=Uo(u.href,"#")[0])}d[Ig]=n;var p="GET";r&&r[gv]?p=r[gv]:e&&e instanceof Request&&(p=e[gv]),d[gv]=p;var b={};return s&&new Headers((r?r[Bg]:0)||e instanceof Request&&e[Bg]||{}).forEach((function(t,e){L(e)&&(b[e]=t)})),d[Wg]=b,q(Vv,d),d}(n,i);var u=t[Ug](l,n,i);u!==i&&e.set(1,u),d.data=l}},rsp:function(e,r){if(!m){var o=e.ctx().data;o&&(e.rslt=e.rslt.then((function(e){return U(0,(e||{})[av],r,e,o,(function(){var r,o=((r={statusText:(e||{})[lv]})[cv]=null,r[$v]=function(e){var r;if(e&&e[Bg])try{return Ed(e[Bg].get(gd[0]))}catch(o){em(t,18,Kv,((r={fetchDiagnosticsMessage:V(e)})[Av]=er(o),r))}}(e),r);if(h&&e){var n={};e.headers.forEach((function(t,e){L(e)&&(n[e]=t)})),o[cv]=n}return o})),e})).catch((function(t){throw U(0,0,r,null,o,null,t.message||er(t)),t})))}},hkErr:rm(t,15,"Failed to monitor Window.fetch"+Bv)},!0,to())),r=!0)}))),c&&(l[Vv].polyfill=c)}}(),(k=t[Vg].getPlugin(gc))&&(c=k.plugin[Mg]))},t._doTeardown=function(){j()},t.trackDependencyData=function(e,r){F(S,t[Vg],null,e,r)},t[Ug]=function(e,r,o,a){var l=t._currentWindowHost||n;if(function(t,e,r,o,n,i){var s;if(t[Rg]>0){var a=((s={})[Vg]=e,s.xhr=o,s.input=n,s.init=i,s.traceId=r[jg],s.spanId=r[Lg],s.traceFlags=r[Pg],s.context=r[Mg]||{},s.aborted=!!r[Ng],s);im(e,t,a,"listener"),r[jg]=a[zg],r[Lg]=a[qg],r[Pg]=a[Pg],r[Mg]=a[Mg]}}(k,t[Vg],e,a,r,o),r||""===r){if(Sd(i,e[Fg](),l)){o||(o={});var p=new Headers(o[Bg]||r instanceof Request&&r[Bg]||{});if(u){var b="|"+e[jg]+"."+e[Lg];p.set(gd[3],b),s&&(e[Wg][gd[3]]=b)}if((h=$||c&&c.appId())&&(p.set(gd[0],gd[2]+h),s&&(e[Wg][gd[0]]=gd[2]+h)),d){Le(g=e[Pg])&&(g=1);var f=hd(pd(e[jg],e[Lg],g));p.set(gd[4],f),s&&(e[Wg][gd[4]]=f)}o[Bg]=p}return o}if(a){var h,g;if(Sd(i,e[Fg](),l))u&&(Yv(a,gd[3])?em(t,71,"Unable to set ["+gd[3]+"] as it has already been set by another instance"):(b="|"+e[jg]+"."+e[Lg],a[Kg](gd[3],b),s&&(e[Wg][gd[3]]=b))),(h=$||c&&c.appId())&&(Yv(a,gd[0])?em(t,71,"Unable to set ["+gd[0]+"] as it has already been set by another instance"):(a[Kg](gd[0],gd[2]+h),s&&(e[Wg][gd[0]]=gd[2]+h))),d&&(Le(g=e[Pg])&&(g=1),Yv(a,gd[4])?em(t,71,"Unable to set ["+gd[4]+"] as it has already been set by another instance"):(f=hd(pd(e[jg],e[Lg],g)),a[Kg](gd[4],f),s&&(e[Wg][gd[4]]=f)));return a}},t[Xg]=function(e,r,o){if(-1===f||l<f){2!==O&&1!==O||"string"!=typeof e.id||"."===e.id[e.id[Rg]-1]||(e.id+="."),Le(e[Gg])&&(e[Gg]=new Date);var n=Lc(e,Dd.dataType,Dd.envelopeType,t[qv](),r,o);t[Vg].track(n)}else l===f&&tm(t,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},t.addDependencyListener=function(t){return nm(k,C++,t)},t.addDependencyInitializer=function(t){return nm(S,C++,t)}})),D}return Vn(e,t),e.prototype.processTelemetry=function(t,e){this.processNext(t,e)},e.prototype.addDependencyInitializer=function(t){return null},e.identifier="AjaxDependencyPlugin",e}(vp),um=function(){},pm=function(){this.id="browser",this.deviceClass="Browser"},bm=function(t,e){var r=this,o=Za(t,(function(){var e=t.sdkExtension;r.sdkVersion=(e?e+"_":"")+"javascript:3.2.0"}));e&&e.add(o)},fm=function(){},hm="sessionManager",gm="update",vm="isUserCookieSet",mm="isNewUser",ym="getTraceCtx",wm="telemetryTrace",_m="applySessionContext",xm="applyApplicationContext",Cm="applyDeviceContext",km="applyOperationContext",Sm="applyUserContext",Em="applyOperatingSystemContxt",Tm="applyLocationContext",Am="applyInternalContext",Om="accountId",$m="getSessionId",Im="namePrefix",Dm="userCookiePostfix",Rm="idLength",jm="getNewId",Lm="length",Pm="automaticSession",Mm="authenticatedId",Nm="acquisitionDate",zm="renewalDate",qm="join",Hm="cookieSeparator",Vm="authUserCookieName",Um=function(){},Fm=function(){function t(e,r,o){var n,i,s,a,l=pl(r),c=ou(r);Dn(t,this,(function(t){e||(e={});var r=Za(e,(function(t){s=e.sessionExpirationMs||864e5,a=e.sessionRenewalMs||18e5;var r=e.sessionCookiePostfix||e[Im]||"";n="ai_session"+r}));function d(t,e){var r=!1,o=", session will be reset",n=e.split("|");if(n[Lm]>=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]&&(t.id=n[0],t[Nm]=i,t[zm]=s,r=!0)}catch(t){hl(l,1,9,"Error parsing ai_session value ["+(e||"")+"]"+o+" - "+Rs(t),{exception:er(t)})}return r}function u(t,r){var o=t[Nm];t[zm]=r;var l,d=a,u=o+s-r,p=[t.id,o,r];l=u<d?u/1e3:d/1e3;var b=e.cookieDomain||null;c.set(n,p[qm]("|"),s>0?l:null,b),i=r}o&&o.add(r),t[Pm]=new Um,t[gm]=function(){var r=So(),o=!1,p=t[Pm];if(p.id||(o=!function(t,e){var r=!1,o=c.get(n);if(o&&Ne(o.split))r=d(t,o);else{var i=dc(l,n);i&&(r=d(t,i))}return r||!!t.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=e[jm]||Sa;t.automaticSession.id=o(e[Rm]||22),t[Pm][Nm]=r,u(t[Pm],r),cc()||hl(l,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}(r):(!i||r-i>6e4)&&u(p,r)},t.backup=function(){var e,r,o,i=t[Pm];e=i.id,r=i[Nm],o=i[zm],uc(l,n,[e,r,o][qm]("|"))}}))}return t.__ieDyn=1,t}(),Bm=function(t,e,r,o){var n=this;n.traceID=t||sd(),n.parentID=e;var i=la();!r&&i&&i.pathname&&(r=i.pathname),n.name=Ac(o,r)};function Wm(t){return!("string"!=typeof t||!t||t.match(/,|;|=| |\|/))}var Km=function(){function t(e,r,o){this.isNewUser=!1,this.isUserCookieSet=!1;var n,i=pl(r),s=ou(r);Dn(t,this,(function(r){Pr(r,"config",{g:function(){return e}});var a=Za(e,(function(){var o=e[Dm]||"";n=t.userCookieName+o;var a=s.get(n);if(a){r[mm]=!1;var u=a.split(t[Hm]);u[Lm]>0&&(r.id=u[0],r[vm]=!!r.id)}if(!r.id){r.id=l(),d(c(r.id)[qm](t[Hm]));var p=(e[Im]||"")+"ai_session";!function(t,e){var r=ic();if(null!==r)try{return r[Sl](e),!0}catch(e){rc=!1,hl(t,2,5,"Browser failed removal of local storage item. "+Rs(e),{exception:er(e)})}}(i,p)}r[Om]=e[Om]||void 0;var b=s.get(t[Vm]);if(b){var f=(b=decodeURI(b)).split(t[Hm]);f[0]&&(r[Mm]=f[0]),f[Lm]>1&&f[1]&&(r[Om]=f[1])}}));function l(){var t=e||{};return(t[jm]||Sa)(t[Rm]?e[Rm]:22)}function c(t){var e=Ds(new Date);return r.accountAcquisitionDate=e,r[mm]=!0,[t,e]}function d(t){r[vm]=s.set(n,t,31536e3)}o&&o.add(a),r.setAuthenticatedUserContext=function(e,o,n){if(void 0===n&&(n=!1),!Wm(e)||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]=e;var a=r[Mm];o&&(r[Om]=o,a=[r[Mm],r.accountId][qm](t[Hm])),n&&s.set(t[Vm],encodeURI(a))}},r.clearAuthenticatedUserContext=function(){r[Mm]=null,r[Om]=null,s.del(t[Vm])},r[gm]=function(e){r.id===e&&r[vm]||d(c(e||l())[qm](t[Hm]))}}))}return t.cookieSeparator="|",t.userCookieName="ai_user",t.authUserCookieName="ai_authUser",t}(),Xm="ext",Gm="tags";function Jm(t,e){t&&t[e]&&0===lr(t[e])[Lm]&&delete t[e]}function Qm(){return null}var Ym,Zm,ty=function(){function t(e,r,o,n){var i=this,s=e.logger;Dn(t,this,(function(t){if(t.appId=Qm,t[$m]=Qm,t.application=new um,t.internal=new bm(r,n),Wr()){t[hm]=new Fm(r,e,n),t.device=new pm,t.location=new fm,t.user=new Km(r,e,n);var a,l=void 0,c=void 0;o&&(l=o.getTraceId(),c=o.getSpanId(),a=o.getName()),t[wm]=new Bm(l,c,a,s),t.session=new Um}t[$m]=function(){var e=t.session,r=null;if(e&&Me(e.id))r=e.id;else{var o=(t[hm]||{})[Pm];r=o&&Me(o.id)?o.id:null}return r},t[_m]=function(e,r){js(Ls(e.ext,"app"),"sesId",t[$m](),Me)},t[Em]=function(e,r){js(e.ext,"os",t.os)},t[xm]=function(e,r){var o=t.application;if(o){var n=Ls(e,Gm);js(n,Rf.applicationVersion,o.ver,Me),js(n,Rf.applicationBuild,o.build,Me)}},t[Cm]=function(e,r){var o=t.device;if(o){var n=Ls(Ls(e,Xm),If);js(n,"localId",o.id,Me),js(n,"ip",o.ip,Me),js(n,"model",o.model,Me),js(n,"deviceClass",o.deviceClass,Me)}},t[Am]=function(e,r){var o=t.internal;if(o){var n=Ls(e,Gm);js(n,Rf.internalAgentVersion,o.agentVersion,Me),js(n,Rf.internalSdkVersion,Ac(s,o.sdkVersion,64),Me),e.baseType!==ul.dataType&&e.baseType!==Vc.dataType||(js(n,Rf.internalSnippet,o.snippetVer,Me),js(n,Rf.internalSdkSrc,o.sdkSrc,Me))}},t[Tm]=function(t,e){var r=i.location;r&&js(Ls(t,Gm,[]),Rf.locationIp,r.ip,Me)},t[km]=function(e,r){var o=t[wm];if(o){var n=Ls(Ls(e,Xm),Df,{traceID:void 0,parentID:void 0});js(n,"traceID",o.traceID,Me,Le),js(n,"name",o.name,Me,Le),js(n,"parentID",o.parentID,Me,Le)}},t.applyWebContext=function(t,e){var r=i.web;r&&js(Ls(t,Xm),"web",r)},t[Sm]=function(e,r){var o=t.user;if(o){js(Ls(e,Gm,[]),Rf.userAccountId,o[Om],Me);var n=Ls(Ls(e,Xm),$f);js(n,"id",o.id,Me),js(n,"authId",o[Mm],Me)}},t.cleanUp=function(t,e){var r=t.ext;r&&(Jm(r,If),Jm(r,$f),Jm(r,"web"),Jm(r,"os"),Jm(r,"app"),Jm(r,Df))}}))}return t.__ieDyn=1,t}(),ey=null,ry=cr(((Ym={})[Om]=ey,Ym.sessionRenewalMs=18e5,Ym.samplingPercentage=100,Ym.sessionExpirationMs=864e5,Ym.cookieDomain=ey,Ym.sdkExtension=ey,Ym.isBrowserLinkTrackingEnabled=!1,Ym.appId=ey,Ym[$m]=ey,Ym[Im]=Zm,Ym.sessionCookiePostfix=Zm,Ym[Dm]=Zm,Ym[Rm]=22,Ym[jm]=ey,Ym));const oy=function(t){function e(){var r,o,n,i,s,a=t.call(this)||this;return a.priority=110,a.identifier=gc,Dn(e,a,(function(t,e){function a(){r=null,o=null,n=null,i=null,s=!0}a(),Pr(t,"context",{g:function(){return i}}),t.initialize=function(a,l,c,d){e.initialize(a,l,c,d),function(e){var a=t.identifier,l=t.core;t._addHook(Za(e,(function(){var o=tp(null,e,l);e.storagePrefix&&lc(e.storagePrefix),s=!1!==e.disableUserInitMessage,r=o.getExtCfg(a,ry),t._extConfig=r}))),n=l[ym](!1),i=new ty(l,r,n,t._unloadHooks),o=Od(t.context[wm],n),l.setTraceCtx(o),t.context.appId=function(){var t=l.getPlugin(vc);return t?t.plugin._appId:null}}(a)},t.processTelemetry=function(e,r){if(!Le(e)){r=t._getTelCtx(r),e.name===Vc.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(e,r){Ls(e,"tags",[]),Ls(e,"ext",{});var o=t.context;o[_m](e,r),o[xm](e,r),o[Cm](e,r),o[km](e,r),o[Sm](e,r),o[Em](e,r),o.applyWebContext(e,r),o[Tm](e,r),o[Am](e,r),o.cleanUp(e,r)}(e,r),n&&n[mm]&&(n[mm]=!1,!s)){var a=new ul(72,(Qr()||{}).userAgent||"");!function(t,e,r){fl(t)[Ni](1,r)}(r.diagLog(),0,a)}t.processNext(e,r)}},t._doTeardown=function(t,e){var r=(t||{}).core();r&&r[ym]&&r[ym](!1)===o&&r.setTraceCtx(n),a()}})),a}return Vn(e,t),e.__ieDyn=1,e}(vp);var ny,iy,sy,ay,ly,cy="AuthenticatedUserContext",dy="track",uy="snippet",py="flush",by="pollInternalLogs",fy="getPlugin",hy="evtNamespace",gy=dy+"Event",vy=dy+"Trace",my=dy+"Metric",yy=dy+"PageView",wy=dy+"Exception",_y=dy+"DependencyData",xy="set"+cy,Cy="clear"+cy,ky="version",Sy="queue",Ey="connectionString",Ty="endpointUrl",Ay="userOverrideEndpointUrl",Oy="instrumentationKey",$y="onunloadFlush",Iy="context",Dy="addHousekeepingBeforeUnload",Ry="sendMessage",jy=[uy,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],Ly="iKeyUsage",Py="CdnUsage",My="SdkLoaderVer",Ny=void 0,zy={disabled:!0,limit:Ld({samplingRate:100,maxSendNumber:1}),interval:Ld({monthInterval:3,daysOfMonth:[28]})},qy=((ny={})[Ey]=Ny,ny[Ty]=Ny,ny[Oy]=Ny,ny[Ay]=Ny,ny.diagnosticLogInterval=Md((function(t){return t&&t>0}),1e4),ny.featureOptIn=((iy={})[Ly]={mode:3},iy[Py]={mode:2},iy[My]={mode:2},iy),ny.throttleMgrCfg=Ld(((sy={})[109]=Ld(zy),sy[106]=Ld(zy),sy[111]=Ld(zy),sy[110]=Ld(zy),sy)),ny.extensionConfig=Ld(((ay={}).AppInsightsCfgSyncPlugin=Ld({cfgUrl:"https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",syncMode:2}),ay)),ny),Hy=function(){function t(e){var r,o,n,i,s,a,l,c,d,u,p,b,f,h,g=this;Dn(t,this,(function(t){m(),Pr(t,"config",{g:function(){return c}}),bo(["pluginVersionStringArr","pluginVersionString"],(function(e){Pr(t,e,{g:function(){return l?l[e]:null}})})),i=""+(e.sv||e[ky]||""),e[Sy]=e[Sy]||[],e[ky]=e[ky]||2;var v=Ya(e.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,u=new cf}function y(){var t;a&&(Pu([wu,yu,mu],null,a),t=Du(_u,a),Pu([mu],null,t),Pu([vu],null,t))}function w(t){l.addUnloadHook(t)}c=v.cfg,d=new Sb,Pr(t,"appInsights",{g:function(){return d}}),o=new oy,r=new dm,n=new pg,l=new Ag,Pr(t,"core",{g:function(){return l}}),w(Za(v,(function(){if(c[Ey]){var t=function(t){if(!t)return{};var e=t[yl](";"),r=yo(e,(function(t,e){var r=e[yl]("=");if(2===r[wl]){var o=r[0][_l](),n=r[1];t[o]=n}return t}),{});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]||Cc,Bo(r[xl],"/")&&(r[xl]=r[xl].slice(0,-1))}return r}(c[Ey]),e=t.ingestionendpoint;c[Ty]=c[Ay]?c[Ay]:e+kc,c[Oy]=t.instrumentationkey||c[Oy]}c[Ty]=c[Ay]?c[Ay]:c[Ty]}))),t[uy]=e,t[py]=function(t,e){var r;return void 0===t&&(t=!0),Fu(l,(function(){return"AISKU.flush"}),(function(){t&&!e&&(r=Xb((function(t){e=t})));var o=1,n=function(){0==--o&&e()};bo(l.getChannels(),(function(e){e&&(o++,e[py](t,n))})),n()}),null,t),r},t[$y]=function(t){void 0===t&&(t=!0),bo(l.getChannels(),(function(e){e[$y]?e[$y]():e[py](t)}))},t.loadAppInsights=function(e,s,a){return void 0===e&&(e=!1),e&&function(t){throw mo||(mo=ko("UnsupportedError")),new mo("Legacy Mode is no longer supported")}(),Fu(t.core,(function(){return"AISKU.loadAppInsights"}),(function(){l.initialize(c,[n,o,r,d,u],s,a),Pr(t,"context",{g:function(){return o[Iy]}}),p||(p=new bg(l));var e=function(){if(ly)return ly;var t=null;try{var e=(document||{}).currentScript;e&&(t=e.src)}catch(t){}if(t){try{var r=t.toLowerCase();if(r){var o="";bo(["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"],(function(t,e){if(-1!==Xo(r,t))return o="cdn"+(e+1),-1===Xo(r,"/scripts/")&&(-1!==Xo(r,"/next/")?o+="-next":-1!==Xo(r,"/beta/")&&(o+="-beta")),ly=o+"",-1}))}}catch(t){}ly=t}return ly}();e&&t[Iy]&&(t[Iy].internal.sdkSrc=e),function(e){if(e){var r="";Le(i)||(r+=i),t[Iy]&&t[Iy].internal&&(t[Iy].internal.snippetVer=r||"-"),Qe(t,(function(t,r){Me(t)&&!Ne(r)&&t&&"_"!==t[0]&&-1===fo(jy,t)&&e[t]!==r&&(e[t]=r)}))}}(t[uy]),t.emptyQueue(),t[by](),t[Dy](t),w(Za(v,(function(){var e=!1;c.throttleMgrCfg[109]&&(e=!c.throttleMgrCfg[109].disabled),!p.isReady()&&c.extensionConfig&&c.extensionConfig[u.identifier]&&e&&p.onReadyState(!0),b||c[Ey]||!Hs(Ly,c)||(p[Ry](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),b=!0),!f&&t[Iy].internal.sdkSrc&&-1!=t[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)})))})),t},t.updateSnippetDefinitions=function(e){!function(t,e,r){if(t&&e&&ze(t)&&ze(e)){var o=function(o){if(Me(o)){var n=e[o];Ne(n)?r&&!r(o)||(t[o]=Ps(e,o)):r&&!r(o)||(Ge(t,o)&&delete t[o],Pr(t,o,{g:function(){return e[o]},s:function(t){e[o]=t}}))}};for(var n in e)o(n)}}(e,t,(function(t){return t&&-1===fo(jy,t)}))},t.emptyQueue=function(){try{if(qe(t.snippet[Sy])){for(var e=t.snippet[Sy].length,r=0;r<e;r++)(0,t.snippet[Sy][r])();t.snippet[Sy]=void 0,delete t.snippet[Sy]}}catch(t){t&&Ne(t.toString)&&t.toString()}},t[Dy]=function(e){if(Wr()||Fr()){var r=function(){if(e[$y](!1),Ne(t.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=Du(s,l[hy]&&l[hy]())),w(Za(c,(function(t){var n=t.cfg,i=e.appInsights,s=tp(null,n,i.core).getExtCfg(i.identifier||mc);y();var c,d=n.disablePageUnloadEvents;s.disableFlushOnBeforeUnload||(function(t,e,r,o){var n=!1;return e&&t&&qe(t)&&!(n=Lu(t,e,r,o))&&r&&r[Wn]>0&&(n=Lu(t,e,null,o)),n}([wu,yu,mu],r,d,a)&&(o=!0),Mu(r,d,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||Mu(r,d,a)})))}},t.getSender=function(){return n},t.unload=function(e,r,o){var n,i=!1;return e&&!r&&(n=Xb((function(t){r=t}))),t[$y](e),y(),l.unload&&l.unload(e,(function(t){i||(i=!0,m(),r&&r(t))}),o),n},Ns(t,d,["getCookieMgr",gy,yy,"trackPageViewPerformance",wy,"_onerror",vy,my,"startTrackPage","stopTrackPage","startTrackEvent","stopTrackEvent"]),Ns(t,(function(){return r}),[_y,"addDependencyListener","addDependencyInitializer"]),Ns(t,l,["addTelemetryInitializer",by,"stopPollingInternalLogs",fy,"addPlugin",hy,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),Ns(t,(function(){var t=o[Iy];return t?t.user:null}),[xy,Cy])}))}return t.prototype.addDependencyInitializer=function(t){return null},t}();class Vy{constructor(){this.config={},this.trackPageView=!1}}const Uy="AppInsightsConfigurationToken";let Fy=class{constructor(t){this.config=t,t.config?.connectionString||t.config?.instrumentationKey?(this.instance=new Hy(t),this.instance.loadAppInsights(),t.trackPageView&&this.instance.trackPageView()):console.warn("AppInsightsLogger configuraiton has no connectionString or instrumentaitonKey."),this.config=t}logTrace(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:0})}logDebug(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:1})}logInformation(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:2})}logWarning(t,...e){this.instance?.trackTrace({message:this.formatMessage(t,e),severityLevel:3})}logError(t,e,...r){this.instance?.trackException({exception:e??new Error(this.formatMessage(t,r))})}logCritical(t,e,...r){this.instance?.trackException({exception:e??new Error(this.formatMessage(t,r)),properties:{severity:"critical"}})}log(t,e,r,...o){r?this.instance?.trackException({exception:r,properties:{message:this.formatMessage(e,o)}}):this.instance?.trackTrace({message:this.formatMessage(e,o),severityLevel:t})}formatMessage(t,e){return e.length>0?`${t}, ${e.join(", ")}`:t}};Fy=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}([O(),function(t,e){return function(r,o){e(r,o,t)}}(0,A(Uy)),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[Vy])],Fy),I.container.registerSingleton(Fy),I.container.register(Yt,{useToken:Fy}),I.container.register(Uy,{useFactory:function(){return I.container.resolve(R).getSection("ApplicationInsights").bind(Vy)}});var By=function(t,e){return function(r,o){e(r,o,t)}};let Wy=class{constructor(t,e){this.loggers=t,this.readers=e,this.logTrace(`LoggingService.constructor loaded with ${t.length} loggers and ${e.length} readers.`)}logTrace(t,...e){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Zt.Trace,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logTrace(t,...e)}logDebug(t,...e){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Zt.Debug,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logDebug(t,...e)}logInformation(t,...e){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Zt.Information,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logInformation(t,...e)}logWarning(t,...e){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Zt.Warning,message:t,...e},bubbles:!0,cancelable:!0,composed:!0}));for(const r of this.loggers)r.logWarning(t,...e)}logError(t,e,...r){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Zt.Error,message:t,error:e,...r},bubbles:!0,cancelable:!0,composed:!0}));for(const o of this.loggers)o.logError(t,e,...r)}logCritical(t,e,...r){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:Zt.Critical,message:t,error:e,...r},bubbles:!0,cancelable:!0,composed:!0}));for(const o of this.loggers)o.logCritical(t,e,...r)}log(t,e,r,...o){window.dispatchEvent(new CustomEvent(rw.WRITING_LOG,{detail:{logLevel:t,message:e,error:r,...o},bubbles:!0,cancelable:!0,composed:!0}));for(const n of this.loggers)n.log(t,e,r,...o)}getLogs(){return this.readers.reduce(((t,e)=>{const r=e.getLogs();return t.concat(r)}),[])}clearLogs(){this.readers.forEach((t=>t.clearLogs()))}};Wy=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}([O(),By(0,$(Yt)),By(1,$(re)),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[Array,Array])],Wy),I.container.register(ee,{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,167 +52,159 @@
52
52
  `}};Jy([Jt({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"debug",void 0),Jy([Jt({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"info",void 0),Jy([Jt({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"warning",void 0),Jy([Jt({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"error",void 0),Jy([Jt({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"critial",void 0),Jy([Jt({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"window",void 0),Jy([Jt({type:Array}),Qy("design:type",Array)],Yy.prototype,"logs",void 0),Jy([Jt({type:Object}),Qy("design:type",Object)],Yy.prototype,"logCounts",void 0),Jy([Jt({type:Boolean}),Qy("design:type",Object)],Yy.prototype,"showModal",void 0),Yy=Gy=Jy([Kt("qbo-logging"),Qy("design:paramtypes",[])],Yy);var Zy=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},tw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class ew extends Bt{constructor(){super(...arguments),this.selector="",this.cssClass="",this.selectorRoot=""}static{this.styles=[Xy]}render(){return At`<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(t){const e=t.target.value.toLowerCase(),r=this.root?.querySelectorAll(this.selector);null!=r&&r.forEach((t=>{(t.textContent?.toLowerCase()||"").includes(e)?this.cssClass?t.classList.remove(this.cssClass):t instanceof HTMLElement&&(t.style.display=""):this.cssClass?t.classList.add(this.cssClass):t instanceof HTMLElement&&(t.style.display="none")}))}}Zy([Jt({type:String}),tw("design:type",Object)],ew.prototype,"selector",void 0),Zy([Jt({type:String}),tw("design:type",Object)],ew.prototype,"cssClass",void 0),Zy([Jt({type:String}),tw("design:type",Object)],ew.prototype,"selectorRoot",void 0),customElements.define("qbo-find",ew);const rw={WRITE_LOG:"qbo-log",WRITING_LOG:"qbo-log-write"};function ow(t,e){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return console.error("Error parsing JSON string:",t),null}if(Array.isArray(t))return t;if("object"==typeof t&&null!==t)for(const r in t){const o=t[r];if(Array.isArray(o))return o;if("object"==typeof o){const t=ow(o,e);if(t)return t}}return null}function nw(t,...e){const r=/\${(.*?)}/g;let o=t;for(let t=0;t<e.length;t++){const n=e[t];o=o.replace(r,((t,e)=>{const r=e.split(/\.|\[|\]/).filter((t=>""!==t));let o=n;for(let e of r){if(void 0===o[e])return t;o=o[e]}return o}))}return o=o.replace(r,(()=>"")),o}function iw(t,e,r,o=!0){if(null!=t&&null!=e){for(;o&&t.firstChild;)t.removeChild(t.firstChild);r.map(((r,o)=>{const n=e.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${o}`),n.firstElementChild.innerHTML=nw(n.firstElementChild?.innerHTML??"",r)),t.appendChild(n)}))}}class sw{constructor(t,e={"Content-Type":"application/json"},r=null){this.relativePath="",this.apiEndpoint=t,this.headers=e,this.method=r}async fetch(t,e=null){const r=nw(new URL(t??this.relativePath,this.apiEndpoint).href,e),o=this.method??(null!==e?"POST":"GET"),n=new Headers(this.headers||{});null===e||n.has("Content-Type")||n.append("Content-Type","application/json");const i=await fetch(r,{method:o,headers:n,body:"POST"===o&&e?JSON.stringify(e):null});if(!i.ok)throw new Error(`API request failed with status ${i.status}`);return i.json()}clone(t){const e=new sw(this.apiEndpoint,this.headers,this.method);return e.relativePath=t??"",e}}function aw(t,e,r={"Content-Type":"application/json"},o){I.container.registerInstance(t,new sw(e,r,o))}I.container.registerInstance("default",new sw(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));const lw="ApiServiceToken",cw="ValidateToken";var dw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};let uw=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};uw=dw([$()],uw),I.container.register(cw,{useClass:uw});let pw=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};pw=dw([$()],pw),I.container.register(cw,{useClass:pw});let bw=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}connect(t){}disconnect(){}async validate(t){var e=t.getAttribute("data-exists");if(!e)return!1;var r=t.getAttribute("data-exists-path");const o=I.container.isRegistered(e)?I.container.resolve(e):new sw(e);if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement){const e=ow(await o.fetch(r,{value:t.value}));return null!=e&&e.length>0}return!1}};bw=dw([$()],bw),I.container.register(cw,{useClass:bw});class fw{constructor(){this.operator="=",this.value=null}}class hw{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const gw="DependencyValidatorOptions",vw=new Map([["!=",(t,e)=>!qT(t.value,e)],[">=",(t,e)=>t.value>=e],["<=",(t,e)=>t.value<=e],["=",(t,e)=>qT(t.value,e)],[">",(t,e)=>t.value>e],["<",(t,e)=>t.value<e]]),mw=Array.from(vw.keys());let yw=class{constructor(t,e){this.message="Dependency condition not met",this.selector="[data-depend-options]",this.optionsCache=new Map,this.checkDependencies=async t=>{console.log("checking dependencies",this.optionsCache);for(const[t,e]of this.optionsCache)await this.validate(t)},this.form=t,this.options=e,this.currentOptions=e}connect(t){this.form.querySelectorAll(this.selector).forEach((t=>{t instanceof HTMLElement&&this.getOptions(t)})),this.optionsCache.forEach(((t,e)=>{this.validate(e)})),this.form.addEventListener("change",this.checkDependencies)}disconnect(){this.form.removeEventListener("change",this.checkDependencies)}async validate(t){const e=this.getOptions(t);if(null==e)return Promise.resolve(!0);let r;r="or"===e.condition?e.evaluators.some((t=>!0===t())):e.evaluators.every((t=>!0===t())),(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement)&&(t.disabled=!r),t.classList.toggle(e.disabledClass,!r);const o=MT(t,"input,select,textarea");return r?e.disableChildren&&o.forEach((t=>t.removeAttribute("disabled"))):(e.disableChildren&&o.forEach((t=>t.setAttribute("disabled","disabled"))),e.resetOnDisable?o.forEach((t=>NT(t))):e.emptyOnDisable&&o.forEach((t=>zT(t)))),Promise.resolve(r)}getOptions(t){let e=this.optionsCache.get(t);if(!e){try{e=Object.assign({},this.options,PT(t,"data-depend-"))}catch(t){console.error("Error parsing data-depend-options attribute:",t)}if(!e)return null;e.evaluators=e.depends.split(",").map((t=>{t=t.trim();let e=mw.find((e=>t.includes(e)))??"!=",r=null,o="";if(e){const n=t.split(e);r=n[0],o=n[1]??""}else t.startsWith("!")?(e="=",r=t.substring(1)):r=t;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?"!="===e?()=>n.checked:()=>!n.checked:()=>vw.get(e)(n,o):n instanceof HTMLSelectElement?()=>vw.get(e)(n,o):n instanceof HTMLOptionElement?"!="===e?()=>n.selected:()=>!n.selected:void 0})).filter((t=>void 0!==t)),this.optionsCache.set(t,e)}return e}getElement(t){return this.form.querySelector(`#${CSS.escape(t)}`)??this.form.querySelector(`[name="${CSS.escape(t)}"]`)}};yw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}([$(),function(t,e){return function(r,o){e(r,o,t)}}(1,A(gw)),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[HTMLFormElement,hw])],yw),I.container.register(gw,{useValue:new hw}),I.container.register(cw,{useClass:yw});var ww=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},_w=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let xw=class extends Bt{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null,this.method="POST"}connectedCallback(){super.connectedCallback();const t={};null==this.name&&console.error("qbo-api name is required."),null==this.apiEndpoint&&console.error("qbo-api apiEndpoint is required."),this.querySelectorAll("header").forEach((e=>{const r=e.getAttribute("name"),o=e.textContent;r&&o&&(t[r]=o)})),t.ContentType&&(t["Content-Type"]=t.ContentType,delete t.ContentType),this.apiEndpoint?.startsWith("http")||(this.apiEndpoint=new URL(this.apiEndpoint??"",document.location.origin).href),aw(this.name,this.apiEndpoint,t,this.method)}render(){return At``}};ww([Jt({type:String}),_w("design:type",Object)],xw.prototype,"name",void 0),ww([Jt({type:String}),_w("design:type",Object)],xw.prototype,"apiEndpoint",void 0),ww([Jt({type:String}),_w("design:type",String)],xw.prototype,"method",void 0),xw=ww([Kt("qbo-api")],xw);var Cw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},kw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const Sw=(t=>{class e extends t{constructor(...t){super(...t),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 t=this.getHeaders(),e=this.getPayload(t);await this.fetchData(t,e)}}getHeaders(){const t=this.querySelector(this.headerTag);let e={Accept:this.accept};if(t&&null!==t.textContent)try{e=JSON.parse(t.textContent)}catch(t){console.error("Error parsing header JSON:",t)}return e}getPayload(t){const e=this.querySelector('script[name="payload"]');let r=null;if(e&&null!==e.textContent)try{r=JSON.parse(e.textContent),r&&(t["Content-Type"]="application/json")}catch(t){console.error("Error parsing payload JSON:",t)}return r}async fetchData(t,e){if(null!==this.apiEndpoint){null!==e&&(this.method="POST");try{const r=await fetch(this.apiEndpoint,{method:this.method,headers:t,body:e?JSON.stringify(e):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(t){this.error=!0,dispatchEvent(new CustomEvent("qbo-error",{detail:t}))}}}}return Cw([Jt({type:URL}),kw("design:type",Object)],e.prototype,"apiEndpoint",void 0),Cw([Jt({type:String}),kw("design:type",Object)],e.prototype,"method",void 0),Cw([Jt({type:Boolean}),kw("design:type",Object)],e.prototype,"error",void 0),Cw([Jt({type:Object}),kw("design:type",Object)],e.prototype,"jsonData",void 0),Cw([Jt({type:String}),kw("design:type",Object)],e.prototype,"accept",void 0),Cw([Jt({type:String}),kw("design:type",Object)],e.prototype,"headerTag",void 0),Cw([Jt({type:String}),kw("design:type",Object)],e.prototype,"html",void 0),Cw([Jt({type:Boolean}),kw("design:type",Object)],e.prototype,"fetchOnLoad",void 0),e})(Bt);var Ew=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Tw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Aw=class extends Sw{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(t){(super.getPayload(t)??{}).idList=this.values.join(",")}getIds(){if(console.log("reacting to target qbo-updated"),null==this.targetElement)return;const t=[];this.targetElement.querySelectorAll(this.selector).forEach((e=>{const r=e.getAttribute("data-badge");null!==r&&t.push(r)})),this.values=t}async fetchData(t,e){super.fetchData(t,e)}render(){this.targetElement.querySelectorAll(this.selector).forEach((t=>{t.innerHTML=t.getAttribute("data-badge")??""}))}};Ew([Jt({type:Boolean}),Tw("design:type",Object)],Aw.prototype,"loading",void 0),Ew([Jt(),Tw("design:type",Object)],Aw.prototype,"target",void 0),Ew([Jt(),Tw("design:type",Array)],Aw.prototype,"values",void 0),Ew([Jt(),Tw("design:type",Object)],Aw.prototype,"selector",void 0),Aw=Ew([Kt("qbo-badge")],Aw);var $w=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Ow=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Iw=class extends Bt{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.disabled=!0,this.divSectionHeaderClass="qbo-header",this.formControlSmallClass="qbo-sm",this.formLabelSmallClass="qbo-sm",this.formSelectSmallClass="qbo-sm",this.renderInHost=!0,this.jsonData={}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async connectedCallback(){super.connectedCallback();const t=I.container.isRegistered(this.apiEndpoint)?I.container.resolve(this.apiEndpoint):new sw(this.apiEndpoint);this.jsonData=await t.fetch("contact/summary.json",{ID:`${this.contactId}`})}render(){return null==this.jsonData||null==this.jsonData.ContactItem&&null!=this.contactId?At`<p>Loading...</p>`:At`<slot>
55
+ `}connectedCallback(){super.connectedCallback(),this.root=this.getRoot()}getRoot(){if(this.selectorRoot){return this.closest(this.selectorRoot)||document}return document}handleInput(t){const e=t.target.value.toLowerCase(),r=this.root?.querySelectorAll(this.selector);null!=r&&r.forEach((t=>{(t.textContent?.toLowerCase()||"").includes(e)?this.cssClass?t.classList.remove(this.cssClass):t instanceof HTMLElement&&(t.style.display=""):this.cssClass?t.classList.add(this.cssClass):t instanceof HTMLElement&&(t.style.display="none")}))}}Zy([Jt({type:String}),tw("design:type",Object)],ew.prototype,"selector",void 0),Zy([Jt({type:String}),tw("design:type",Object)],ew.prototype,"cssClass",void 0),Zy([Jt({type:String}),tw("design:type",Object)],ew.prototype,"selectorRoot",void 0),customElements.define("qbo-find",ew);const rw={WRITE_LOG:"qbo-log",WRITING_LOG:"qbo-log-write"};function ow(t,e){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return console.error("Error parsing JSON string:",t),null}if(Array.isArray(t))return t;if("object"==typeof t&&null!==t)for(const r in t){const o=t[r];if(Array.isArray(o))return o;if("object"==typeof o){const t=ow(o,e);if(t)return t}}return null}function nw(t,...e){const r=/\${(.*?)}/g;let o=t;for(let t=0;t<e.length;t++){const n=e[t];o=o.replace(r,((t,e)=>{const r=e.split(/\.|\[|\]/).filter((t=>""!==t));let o=n;for(let e of r){if(void 0===o[e])return t;o=o[e]}return o}))}return o=o.replace(r,(()=>"")),o}function iw(t,e,r,o=!0){if(null!=t&&null!=e){for(;o&&t.firstChild;)t.removeChild(t.firstChild);r.map(((r,o)=>{const n=e.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${o}`),n.firstElementChild.innerHTML=nw(n.firstElementChild?.innerHTML??"",r)),t.appendChild(n)}))}}class sw{constructor(t,e={"Content-Type":"application/json"},r=null){this.relativePath="",this.apiEndpoint=t,this.headers=e,this.method=r}async fetch(t,e=null){const r=nw(new URL(t??this.relativePath,this.apiEndpoint).href,e),o=this.method??(null!==e?"POST":"GET"),n=new Headers(this.headers||{});null===e||n.has("Content-Type")||n.append("Content-Type","application/json");const i=await fetch(r,{method:o,headers:n,body:"POST"===o&&e?JSON.stringify(e):null});if(!i.ok)throw new Error(`API request failed with status ${i.status}`);return i.json()}clone(t){const e=new sw(this.apiEndpoint,this.headers,this.method);return e.relativePath=t??"",e}}function aw(t,e,r={"Content-Type":"application/json"},o){I.container.registerInstance(t,new sw(e,r,o))}I.container.registerInstance("default",new sw(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));const lw="ApiServiceToken",cw="ValidateToken";var dw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};let uw=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};uw=dw([O()],uw),I.container.register(cw,{useClass:uw});let pw=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};pw=dw([O()],pw),I.container.register(cw,{useClass:pw});let bw=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}connect(t){}disconnect(){}async validate(t){var e=t.getAttribute("data-exists");if(!e)return!1;var r=t.getAttribute("data-exists-path");const o=I.container.isRegistered(e)?I.container.resolve(e):new sw(e);if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement){const e=ow(await o.fetch(r,{value:t.value}));return null!=e&&e.length>0}return!1}};bw=dw([O()],bw),I.container.register(cw,{useClass:bw});class fw{constructor(){this.operator="=",this.value=null}}class hw{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const gw="DependencyValidatorOptions",vw=new Map([["!=",(t,e)=>!qT(t.value,e)],[">=",(t,e)=>t.value>=e],["<=",(t,e)=>t.value<=e],["=",(t,e)=>qT(t.value,e)],[">",(t,e)=>t.value>e],["<",(t,e)=>t.value<e]]),mw=Array.from(vw.keys());let yw=class{constructor(t,e){this.message="Dependency condition not met",this.selector="[data-depend-options]",this.optionsCache=new Map,this.checkDependencies=async t=>{console.log("checking dependencies",this.optionsCache);for(const[t,e]of this.optionsCache)await this.validate(t)},this.form=t,this.options=e,this.currentOptions=e}connect(t){this.form.querySelectorAll(this.selector).forEach((t=>{t instanceof HTMLElement&&this.getOptions(t)})),this.optionsCache.forEach(((t,e)=>{this.validate(e)})),this.form.addEventListener("change",this.checkDependencies)}disconnect(){this.form.removeEventListener("change",this.checkDependencies)}async validate(t){const e=this.getOptions(t);if(null==e)return Promise.resolve(!0);let r;r="or"===e.condition?e.evaluators.some((t=>!0===t())):e.evaluators.every((t=>!0===t())),(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement)&&(t.disabled=!r),t.classList.toggle(e.disabledClass,!r);const o=MT(t,"input,select,textarea");return r?e.disableChildren&&o.forEach((t=>t.removeAttribute("disabled"))):(e.disableChildren&&o.forEach((t=>t.setAttribute("disabled","disabled"))),e.resetOnDisable?o.forEach((t=>NT(t))):e.emptyOnDisable&&o.forEach((t=>zT(t)))),Promise.resolve(r)}getOptions(t){let e=this.optionsCache.get(t);if(!e){try{e=Object.assign({},this.options,PT(t,"data-depend-"))}catch(t){console.error("Error parsing data-depend-options attribute:",t)}if(!e)return null;e.evaluators=e.depends.split(",").map((t=>{t=t.trim();let e=mw.find((e=>t.includes(e)))??"!=",r=null,o="";if(e){const n=t.split(e);r=n[0],o=n[1]??""}else t.startsWith("!")?(e="=",r=t.substring(1)):r=t;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?"!="===e?()=>n.checked:()=>!n.checked:()=>vw.get(e)(n,o):n instanceof HTMLSelectElement?()=>vw.get(e)(n,o):n instanceof HTMLOptionElement?"!="===e?()=>n.selected:()=>!n.selected:void 0})).filter((t=>void 0!==t)),this.optionsCache.set(t,e)}return e}getElement(t){return this.form.querySelector(`#${CSS.escape(t)}`)??this.form.querySelector(`[name="${CSS.escape(t)}"]`)}};yw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}([O(),function(t,e){return function(r,o){e(r,o,t)}}(1,A(gw)),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[HTMLFormElement,hw])],yw),I.container.register(gw,{useValue:new hw}),I.container.register(cw,{useClass:yw});var ww=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},_w=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let xw=class extends Bt{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null,this.method="POST"}connectedCallback(){super.connectedCallback();const t={};null==this.name&&console.error("qbo-api name is required."),null==this.apiEndpoint&&console.error("qbo-api apiEndpoint is required."),this.querySelectorAll("header").forEach((e=>{const r=e.getAttribute("name"),o=e.textContent;r&&o&&(t[r]=o)})),t.ContentType&&(t["Content-Type"]=t.ContentType,delete t.ContentType),this.apiEndpoint?.startsWith("http")||(this.apiEndpoint=new URL(this.apiEndpoint??"",document.location.origin).href),aw(this.name,this.apiEndpoint,t,this.method)}render(){return At``}};ww([Jt({type:String}),_w("design:type",Object)],xw.prototype,"name",void 0),ww([Jt({type:String}),_w("design:type",Object)],xw.prototype,"apiEndpoint",void 0),ww([Jt({type:String}),_w("design:type",String)],xw.prototype,"method",void 0),xw=ww([Kt("qbo-api")],xw);var Cw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},kw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const Sw=(t=>{class e extends t{constructor(...t){super(...t),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 t=this.getHeaders(),e=this.getPayload(t);await this.fetchData(t,e)}}getHeaders(){const t=this.querySelector(this.headerTag);let e={Accept:this.accept};if(t&&null!==t.textContent)try{e=JSON.parse(t.textContent)}catch(t){console.error("Error parsing header JSON:",t)}return e}getPayload(t){const e=this.querySelector('script[name="payload"]');let r=null;if(e&&null!==e.textContent)try{r=JSON.parse(e.textContent),r&&(t["Content-Type"]="application/json")}catch(t){console.error("Error parsing payload JSON:",t)}return r}async fetchData(t,e){if(null!==this.apiEndpoint){null!==e&&(this.method="POST");try{const r=await fetch(this.apiEndpoint,{method:this.method,headers:t,body:e?JSON.stringify(e):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(t){this.error=!0,dispatchEvent(new CustomEvent("qbo-error",{detail:t}))}}}}return Cw([Jt({type:URL}),kw("design:type",Object)],e.prototype,"apiEndpoint",void 0),Cw([Jt({type:String}),kw("design:type",Object)],e.prototype,"method",void 0),Cw([Jt({type:Boolean}),kw("design:type",Object)],e.prototype,"error",void 0),Cw([Jt({type:Object}),kw("design:type",Object)],e.prototype,"jsonData",void 0),Cw([Jt({type:String}),kw("design:type",Object)],e.prototype,"accept",void 0),Cw([Jt({type:String}),kw("design:type",Object)],e.prototype,"headerTag",void 0),Cw([Jt({type:String}),kw("design:type",Object)],e.prototype,"html",void 0),Cw([Jt({type:Boolean}),kw("design:type",Object)],e.prototype,"fetchOnLoad",void 0),e})(Bt);var Ew=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Tw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Aw=class extends Sw{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(t){(super.getPayload(t)??{}).idList=this.values.join(",")}getIds(){if(console.log("reacting to target qbo-updated"),null==this.targetElement)return;const t=[];this.targetElement.querySelectorAll(this.selector).forEach((e=>{const r=e.getAttribute("data-badge");null!==r&&t.push(r)})),this.values=t}async fetchData(t,e){super.fetchData(t,e)}render(){this.targetElement.querySelectorAll(this.selector).forEach((t=>{t.innerHTML=t.getAttribute("data-badge")??""}))}};Ew([Jt({type:Boolean}),Tw("design:type",Object)],Aw.prototype,"loading",void 0),Ew([Jt(),Tw("design:type",Object)],Aw.prototype,"target",void 0),Ew([Jt(),Tw("design:type",Array)],Aw.prototype,"values",void 0),Ew([Jt(),Tw("design:type",Object)],Aw.prototype,"selector",void 0),Aw=Ew([Kt("qbo-badge")],Aw);var Ow=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},$w=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Iw=class extends Bt{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.disabled=!0,this.divSectionHeaderClass="qbo-header",this.formControlSmallClass="qbo-sm",this.formLabelSmallClass="qbo-sm",this.formSelectSmallClass="qbo-sm",this.renderInHost=!0,this.jsonData={}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async connectedCallback(){super.connectedCallback();const t=I.container.isRegistered(this.apiEndpoint)?I.container.resolve(this.apiEndpoint):new sw(this.apiEndpoint);this.jsonData=await t.fetch("contact/summary",{ID:`${this.contactId}`})}render(){return null==this.jsonData||null==this.jsonData.Root||null==this.jsonData.Root.ContactItem&&null!=this.contactId?At`<p>Loading...</p>`:At`<slot>
56
56
  <div class="${this.colSixClass}">
57
57
  <label for="${this.contactName}" class="${this.formLabelSmallClass}">${this.contactLabel}</label>
58
- <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="${this.contactName}" value="${this.jsonData?.ContactItem?.Contact}"/>
58
+ <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="${this.contactName}" value="${this.jsonData?.Root?.ContactItem?.Contact}"/>
59
59
  </div>
60
60
  <div class="${this.colSixClass}">
61
61
  <label for="ContactTemplateID" class="${this.formLabelSmallClass}">Template</label>
62
- <qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="ContactTemplateID" apiEndpoint="/ui/contacttemplate/listwhere.json?appliesto=${this.jsonData?.ContactItem?.Object}" defaultValue="${this.jsonData?.ContactItem?.ContactTemplateID}"></qbo-select>
62
+ <qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="ContactTemplateID" apiEndpoint="api://qbo/contacttemplate/listwhere?appliesto=${this.jsonData?.Root?.ContactItem?.Object}" defaultValue="${this.jsonData?.Root?.ContactItem?.ContactTemplateID}"></qbo-select>
63
63
  </div>
64
64
  <div class="${this.colSixClass}">
65
65
  <label for="Status" class="${this.formLabelSmallClass}">Status</label>
66
- <qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="Status" apiEndpoint="/ui/objectstatus/customlist.json?object=Contact&objectid=${this.jsonData?.ContactItem?.ContactTemplateID}" optionValue="ObjectStatus" defaultValue="${this.jsonData?.ContactItem?.Status}"></qbo-select>
66
+ <qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="Status" apiEndpoint="api://qbo/objectstatus/customlist?object=Contact&objectid=${this.jsonData?.Root?.ContactItem?.ContactTemplateID}" optionValue="ObjectStatus" defaultValue="${this.jsonData?.Root?.ContactItem?.Status}"></qbo-select>
67
67
  </div>
68
68
  <div class="${this.colSixClass}">
69
69
  <label for="ContactType" class="${this.formLabelSmallClass}">Type</label>
70
- <qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="ContactType" apiEndpoint="/ui/objecttype/customlist.json?object=Contact&objectid=${this.jsonData?.ContactItem?.ContactTemplateID}" optionValue="ObjectType" defaultValue="${this.jsonData?.ContactItem?.ContactType}"></qbo-select>
71
- </div>
72
- <div class="${this.colFourClass}">
73
- <label for="Phone" class="${this.formLabelSmallClass}">Phone</label>
74
- <input type="tel" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Phone" value="${this.jsonData?.ContactItem?.Phone}"/>
75
- </div>
76
- <div class="${this.colFourClass}">
77
- <label for="Email" class="${this.formLabelSmallClass}">Email</label>
78
- <input type="email" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Email" value="${this.jsonData?.ContactItem?.Email}"/>
79
- </div>
80
- <div class="${this.colFourClass}">
81
- <label for="Title" class="${this.formLabelSmallClass}">Title</label>
82
- <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Title" value="${this.jsonData?.ContactItem?.Title}"/>
70
+ <qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="ContactType" apiEndpoint="api://qbo/objecttype/customlist?object=Contact&objectid=${this.jsonData?.Root?.ContactItem?.ContactTemplateID}" optionValue="ObjectType" defaultValue="${this.jsonData?.Root?.ContactItem?.ContactType}"></qbo-select>
83
71
  </div>
84
72
  <div class="${this.divSectionHeaderClass}">
85
73
  <h5>Location</h5>
86
74
  </div>
87
- <div class="${this.colTwelveClass}">
75
+ <div class="${this.colSixClass}">
88
76
  <label for="Company" class="${this.formLabelSmallClass}">Company</label>
89
- <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Company" value="${this.jsonData?.ContactItem?.Company}"/>
77
+ <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Company" value="${this.jsonData?.Root?.ContactItem?.Company}"/>
78
+ </div>
79
+ <div class="${this.colSixClass}">
80
+ <label for="Title" class="${this.formLabelSmallClass}">Title</label>
81
+ <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Title" value="${this.jsonData?.Root?.ContactItem?.Title}"/>
90
82
  </div>
91
83
  <div class="${this.colTwelveClass}">
92
84
  <label for="Address" class="${this.formLabelSmallClass}">Address</label>
93
- <textarea ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Address">${this.jsonData?.ContactItem?.Address}</textarea>
85
+ <textarea ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Address">${this.jsonData?.Root?.ContactItem?.Address}</textarea>
94
86
  </div>
95
87
  <div class="${this.colSixClass}">
96
88
  <label for="City" class="${this.formLabelSmallClass}">City</label>
97
- <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="City" value="${this.jsonData?.ContactItem?.City}"/>
89
+ <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="City" value="${this.jsonData?.Root?.ContactItem?.City}"/>
98
90
  </div>
99
91
  <div class="${this.colThreeClass}">
100
92
  <label for="State" class="${this.formLabelSmallClass}">State</label>
101
- <qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="State" apiEndpoint="/ui/state/list" optionValue="State" defaultValue="${this.jsonData?.ContactItem?.State}"></qbo-select>
93
+ <qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="State" apiEndpoint="api://qbo/state/list" optionValue="State" defaultValue="${this.jsonData?.Root?.ContactItem?.State}"></qbo-select>
102
94
  </div>
103
95
  <div class="${this.colThreeClass}">
104
96
  <label for="PostalCode" class="${this.formLabelSmallClass}">Postal Code</label>
105
- <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="PostalCode" pattern="\d{5}-?(\d{4})?" value="${this.jsonData?.ContactItem?.PostalCode}"/>
97
+ <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="PostalCode" pattern="\d{5}-?(\d{4})?" value="${this.jsonData?.Root?.ContactItem?.PostalCode}"/>
106
98
  </div>
107
99
  <div class="${this.colSixClass}">
108
100
  <label for="Country" class="${this.formLabelSmallClass}">Country</label>
109
- <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Country" value="${this.jsonData?.ContactItem?.Country}"/>
101
+ <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Country" value="${this.jsonData?.Root?.ContactItem?.Country}"/>
110
102
  </div>
111
103
  <div class="${this.colThreeClass}">
112
104
  <label for="Latitude" class="${this.formLabelSmallClass}">Latitude</label>
113
- <input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Latitude" value="${this.jsonData?.ContactItem?.Latitude}"/>
105
+ <input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Latitude" value="${this.jsonData?.Root?.ContactItem?.Latitude}"/>
114
106
  </div>
115
107
  <div class="${this.colThreeClass}">
116
108
  <label for="Longitude" class="${this.formLabelSmallClass}">Longitude</label>
117
- <input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Longitude" value="${this.jsonData?.ContactItem?.Longitude}"/>
109
+ <input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Longitude" value="${this.jsonData?.Root?.ContactItem?.Longitude}"/>
118
110
  </div>
119
111
  <div class="${this.divSectionHeaderClass}">
120
112
  <h5>Identity</h5>
121
113
  </div>
122
114
  <div class="${this.colThreeClass}">
123
115
  <label for="USSSN" class="${this.formLabelSmallClass}">SSN</label>
124
- <input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="USSSN" value="${this.jsonData?.ContactItem?.USSSN}"/>
116
+ <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="USSSN" value="${this.jsonData?.Root?.ContactItem?.USSSN}"/>
125
117
  </div>
126
118
  <div class="${this.colThreeClass}">
127
119
  <label for="TIN" class="${this.formLabelSmallClass}">TIN</label>
128
- <input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="TIN" value="${this.jsonData?.ContactItem?.TIN}"/>
120
+ <input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="TIN" value="${this.jsonData?.Root?.ContactItem?.TIN}"/>
129
121
  </div>
130
122
  <div class="${this.colThreeClass}">
131
123
  <label for="Nationality" class="${this.formLabelSmallClass}">Nationality</label>
132
- <qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="Nationality" apiEndpoint="/ui/objecttype/list.json?object=Contact.Nationality" optionValue="ObjectType" defaultValue="${this.jsonData?.ContactItem?.Nationality}"></qbo-select>
124
+ <qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="Nationality" apiEndpoint="api://qbo/objecttype/list?object=Contact.Nationality" optionValue="ObjectType" defaultValue="${this.jsonData?.Root?.ContactItem?.Nationality}"></qbo-select>
133
125
  </div>
134
126
  <div class="${this.colThreeClass}">
135
127
  <label for="SpokenLanguage" class="${this.formLabelSmallClass}">Spoken Language</label>
136
- <qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="SpokenLanguage" apiEndpoint="/ui/objecttype/list.json?object=Contact.SpokenLanguage" optionValue="ObjectType" defaultValue="${this.jsonData?.ContactItem?.SpokenLanguage}"></qbo-select>
128
+ <qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="SpokenLanguage" apiEndpoint="api://qbo/objecttype/list?object=Contact.SpokenLanguage" optionValue="ObjectType" defaultValue="${this.jsonData?.Root?.ContactItem?.SpokenLanguage}"></qbo-select>
137
129
  </div>
138
130
  <div class="${this.colThreeClass}">
139
131
  <label for="BirthDate" class="${this.formLabelSmallClass}">Birth Date</label>
140
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="BirthDate" value="${this.jsonData?.ContactItem?.BirthDate}"/>
132
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="BirthDate" value="${this.jsonData.Root.ContactItem.BirthDate?new Date(this.jsonData.Root.ContactItem.BirthDate).toISOString().slice(0,10):""}"/>
141
133
  </div>
142
134
  <div class="${this.colThreeClass}">
143
135
  <label for="DeathDate" class="${this.formLabelSmallClass}">Death Date</label>
144
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="DeathDate" value="${this.jsonData?.ContactItem?.DeathDate}"/>
136
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="DeathDate" value="${this.jsonData.Root.ContactItem.DeathDate?new Date(this.jsonData.Root.ContactItem.DeathDate).toISOString().slice(0,10):""}"/>
145
137
  </div>
146
138
  <div class="${this.colThreeClass}">
147
139
  <label for="ValidStart" class="${this.formLabelSmallClass}">Valid Start</label>
148
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="ValidStart" value="${this.jsonData?.ContactItem?.ValidStart}"/>
140
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="ValidStart" value="${this.jsonData.Root.ContactItem.ValidStart?new Date(this.jsonData.Root.ContactItem.ValidStart).toISOString().slice(0,10):""}"/>
149
141
  </div>
150
142
  <div class="${this.colThreeClass}">
151
143
  <label for="ValidEnd" class="${this.formLabelSmallClass}">Valid End</label>
152
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="ValidEnd" value="${this.jsonData?.ContactItem?.ValidEnd}"/>
144
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="ValidEnd" value="${this.jsonData.Root.ContactItem.ValidEnd?new Date(this.jsonData.Root.ContactItem.ValidEnd).toISOString().slice(0,10):""}"/>
153
145
  </div>
154
146
  <div class="${this.colSixClass}">
155
147
  <label for="VerifiedSource" class="${this.formLabelSmallClass}">Verified Source</label>
156
- <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="VerifiedSource" value="${this.jsonData?.ContactItem?.VerifiedSource}"/>
148
+ <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="VerifiedSource" value="${this.jsonData?.Root?.ContactItem?.VerifiedSource}"/>
157
149
  </div>
158
150
  <div class="${this.colThreeClass}">
159
151
  <label for="VerifiedDate" class="${this.formLabelSmallClass}">Verified Date</label>
160
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="VerifiedDate" value="${this.jsonData?.ContactItem?.VerifiedDate}"/>
152
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="VerifiedDate" value="${this.jsonData.Root.ContactItem.VerifiedDate?new Date(this.jsonData.Root.ContactItem.VerifiedDate).toISOString().slice(0,10):""}"/>
161
153
  </div>
162
154
  <div class="${this.colThreeClass}">
163
155
  <label for="VerifiedConfidence" class="${this.formLabelSmallClass}">Verified Confidence</label>
164
- <input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="VerifiedConfidence" value="${this.jsonData?.ContactItem?.VerifiedConfidence}"/>
156
+ <input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="VerifiedConfidence" value="${this.jsonData?.Root?.ContactItem?.VerifiedConfidence}"/>
165
157
  </div>
166
158
  <div class="${this.divSectionHeaderClass}">
167
159
  <h5>SCRA</h5>
168
160
  </div>
169
161
  <div class="${this.colThreeClass}">
170
162
  <label for="SCRAStatus" class="${this.formLabelSmallClass}">SCRA Status</label>
171
- <qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="SCRAStatus" apiEndpoint="/ui/objecttype/list.json?object=Contact.SCRAStatus" optionValue="ObjectType" defaultValue="${this.jsonData?.ContactItem?.SCRAStatus}"></qbo-select>
163
+ <qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="SCRAStatus" apiEndpoint="api://qbo/objecttype/list?object=Contact.SCRAStatus" optionValue="ObjectType" defaultValue="${this.jsonData?.Root?.ContactItem?.SCRAStatus}"></qbo-select>
172
164
  </div>
173
165
  <div class="${this.colThreeClass}">
174
166
  <label for="SCRAStatusAsOf" class="${this.formLabelSmallClass}">SCRA Status As Of</label>
175
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAStatusAsOf" value="${this.jsonData?.ContactItem?.SCRAStatusAsOf}"/>
167
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAStatusAsOf" value="${this.jsonData.Root.ContactItem.SCRAStatusAsOf?new Date(this.jsonData.Root.ContactItem.SCRAStatusAsOf).toISOString().slice(0,10):""}"/>
176
168
  </div>
177
169
  <div class="${this.colThreeClass}">
178
170
  <label for="SCRAStartDate" class="${this.formLabelSmallClass}">SCRA Start Date</label>
179
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAStartDate" value="${this.jsonData?.ContactItem?.SCRAStartDate}"/>
171
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAStartDate" value="${this.jsonData.Root.ContactItem.SCRAStartDate?new Date(this.jsonData.Root.ContactItem.SCRAStartDate).toISOString().slice(0,10):""}"/>
180
172
  </div>
181
173
  <div class="${this.colThreeClass}">
182
174
  <label for="SCRADischargeDate" class="${this.formLabelSmallClass}">SCRA Discharge Date</label>
183
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRADischargeDate" value="${this.jsonData?.ContactItem?.SCRADischargeDate}"/>
175
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRADischargeDate" value="${this.jsonData.Root.ContactItem.SCRADischargeDate?new Date(this.jsonData.Root.ContactItem.SCRADischargeDate).toISOString().slice(0,10):""}"/>
184
176
  </div>
185
177
  <div class="${this.colThreeClass}">
186
178
  <label for="SCRAVerified" class="${this.formLabelSmallClass}">SCRA Verified</label>
187
- <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAVerified" value="${this.jsonData?.ContactItem?.SCRAVerified}"/>
179
+ <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAVerified" value="${this.jsonData?.Root?.ContactItem?.SCRAVerified}"/>
188
180
  </div>
189
181
  <div class="${this.colThreeClass}">
190
182
  <label for="SCRAVerifiedDate" class="${this.formLabelSmallClass}">SCRA Verified Date</label>
191
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAVerifiedDate" value="${this.jsonData?.ContactItem?.SCRAVerifiedDate}"/>
183
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAVerifiedDate" value="${this.jsonData.Root.ContactItem.SCRAVerifiedDate?new Date(this.jsonData.Root.ContactItem.SCRAVerifiedDate).toISOString().slice(0,10):""}"/>
192
184
  </div>
193
185
  <div class="${this.colThreeClass}">
194
186
  <label for="SCRASource" class="${this.formLabelSmallClass}">SCRA Source</label>
195
- <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRASource" value="${this.jsonData?.ContactItem?.SCRASource}"/>
187
+ <input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRASource" value="${this.jsonData?.Root?.ContactItem?.SCRASource}"/>
196
188
  </div>
197
189
  <div class="${this.colThreeClass}">
198
190
  <label for="SCRAID" class="${this.formLabelSmallClass}">SCRA ID</label>
199
- <input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAID" value="${this.jsonData?.ContactItem?.SCRAID}"/>
191
+ <input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAID" value="${this.jsonData?.Root?.ContactItem?.SCRAID}"/>
200
192
  </div>
201
- <qbo-form-edit createdDate="${this.jsonData?.ContactItem?.CreatedDate}" createdPerson="${this.jsonData?.ContactItem?.CreatedPerson}" updatedDate="${this.jsonData?.ContactItem?.UpdatedDate}" updatedPerson="${this.jsonData?.ContactItem?.UpdatedPerson}"></qbo-select>
202
- </slot>`}};$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"apiEndpoint",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"colFourClass",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"colSixClass",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"colThreeClass",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"colTwelveClass",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"contactId",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"contactLabel",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"contactName",void 0),$w([Jt({type:Boolean}),Ow("design:type",Object)],Iw.prototype,"disabled",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"divSectionHeaderClass",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"formControlSmallClass",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"formLabelSmallClass",void 0),$w([Jt({type:String}),Ow("design:type",Object)],Iw.prototype,"formSelectSmallClass",void 0),$w([Jt({type:Boolean}),Ow("design:type",Object)],Iw.prototype,"renderInHost",void 0),$w([Jt({type:Object}),Ow("design:type",Object)],Iw.prototype,"jsonData",void 0),Iw=$w([Kt("qbo-contact")],Iw);var Dw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},jw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Rw=class extends Sw{constructor(){super(...arguments),this.listId=null,this.min=3,this.options=[],this.renderInHost=!0,this.text=null,this.value=null,this.fetchOnLoad=!1,this.endpoint=null,this.headers=null,this.payload={},this.targets=null}connectedCallback(){super.connectedCallback(),this.targets=document.querySelectorAll(`input[list=${this.listId}]`);const t=this;this.targets.forEach((function(e){e.addEventListener("keyup",t.buildDataList.bind(t)),e.hasAttribute("data-for")&&e.addEventListener("change",t.setOutputValue.bind(t))})),this.endpoint=this.apiEndpoint.toString(),this.headers=this.getHeaders(),this.payload=this.getPayload(this.headers)}disconnectedCallback(){const t=this;this.targets?.forEach((function(e){e.removeEventListener("keyup",t.buildDataList.bind(t)),e.hasAttribute("data-for")&&e.removeEventListener("change",t.setOutputValue.bind(t))})),super.disconnectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async buildDataList(t){const e=t.target;e instanceof HTMLInputElement&&e.value.length>=this.min&&(null!=this.endpoint&&(this.apiEndpoint=new URL(this.endpoint.replace("{value}",`${e.value}`),this.baseURI)),await this.fetchData(this.headers,this.payload))}setOutputValue(t){const e=t.target;let r=null;if(e.hasAttribute("data-for")){const t=e.getAttribute("data-for");r=document.getElementById(t)||e.querySelector(t)||e.parentElement?.querySelector(t)||document.getElementsByName(t)[0]}if(e instanceof HTMLInputElement&&r instanceof HTMLInputElement){const t=this.text,o=this.options?.filter((function(r){return r[t]==e.value}));e.value=1==o?.length?o[0][`${this.text}`]:"",r.value=1==o?.length?o[0][`${this.value}`]:""}}render(){return this.options=ow(this.jsonData),this.options&&0!==this.options.length?(null!=this.options&&(this.value??=Object.keys(this.options[0])[0],this.text??=Object.keys(this.options[0])[1]??this.value),At`
193
+ <qbo-form-edit createdDate="${this.jsonData.Root.ContactItem.CreatedDate?new Date(this.jsonData.Root.ContactItem.CreatedDate).toLocaleString():""}" createdPerson="${this.jsonData?.Root?.ContactItem?.CreatedPerson}" updatedDate="${this.jsonData.Root.ContactItem.UpdatedDate?new Date(this.jsonData.Root.ContactItem.UpdatedDate).toLocaleString():""}" updatedPerson="${this.jsonData?.Root?.ContactItem?.UpdatedPerson}"></qbo-select>
194
+ </slot>`}};Ow([Jt({type:String}),$w("design:type",Object)],Iw.prototype,"apiEndpoint",void 0),Ow([Jt({type:String}),$w("design:type",Object)],Iw.prototype,"colFourClass",void 0),Ow([Jt({type:String}),$w("design:type",Object)],Iw.prototype,"colSixClass",void 0),Ow([Jt({type:String}),$w("design:type",Object)],Iw.prototype,"colThreeClass",void 0),Ow([Jt({type:String}),$w("design:type",Object)],Iw.prototype,"colTwelveClass",void 0),Ow([Jt({type:String}),$w("design:type",Object)],Iw.prototype,"contactId",void 0),Ow([Jt({type:String}),$w("design:type",Object)],Iw.prototype,"contactLabel",void 0),Ow([Jt({type:String}),$w("design:type",Object)],Iw.prototype,"contactName",void 0),Ow([Jt({type:Boolean}),$w("design:type",Object)],Iw.prototype,"disabled",void 0),Ow([Jt({type:String}),$w("design:type",Object)],Iw.prototype,"divSectionHeaderClass",void 0),Ow([Jt({type:String}),$w("design:type",Object)],Iw.prototype,"formControlSmallClass",void 0),Ow([Jt({type:String}),$w("design:type",Object)],Iw.prototype,"formLabelSmallClass",void 0),Ow([Jt({type:String}),$w("design:type",Object)],Iw.prototype,"formSelectSmallClass",void 0),Ow([Jt({type:Boolean}),$w("design:type",Object)],Iw.prototype,"renderInHost",void 0),Ow([Jt({type:Object}),$w("design:type",Object)],Iw.prototype,"jsonData",void 0),Iw=Ow([Kt("qbo-contact")],Iw);var Dw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Rw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let jw=class extends Sw{constructor(){super(...arguments),this.listId=null,this.min=3,this.options=[],this.renderInHost=!0,this.text=null,this.value=null,this.fetchOnLoad=!1,this.endpoint=null,this.headers=null,this.payload={},this.targets=null}connectedCallback(){super.connectedCallback(),this.targets=document.querySelectorAll(`input[list=${this.listId}]`);const t=this;this.targets.forEach((function(e){e.addEventListener("keyup",t.buildDataList.bind(t)),e.hasAttribute("data-for")&&e.addEventListener("change",t.setOutputValue.bind(t))})),this.endpoint=this.apiEndpoint.toString(),this.headers=this.getHeaders(),this.payload=this.getPayload(this.headers)}disconnectedCallback(){const t=this;this.targets?.forEach((function(e){e.removeEventListener("keyup",t.buildDataList.bind(t)),e.hasAttribute("data-for")&&e.removeEventListener("change",t.setOutputValue.bind(t))})),super.disconnectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async buildDataList(t){const e=t.target;e instanceof HTMLInputElement&&e.value.length>=this.min&&(null!=this.endpoint&&(this.apiEndpoint=new URL(this.endpoint.replace("{value}",`${e.value}`),this.baseURI)),await this.fetchData(this.headers,this.payload))}setOutputValue(t){const e=t.target;let r=null;if(e.hasAttribute("data-for")){const t=e.getAttribute("data-for");r=document.getElementById(t)||e.querySelector(t)||e.parentElement?.querySelector(t)||document.getElementsByName(t)[0]}if(e instanceof HTMLInputElement&&r instanceof HTMLInputElement){const t=this.text,o=this.options?.filter((function(r){return r[t]==e.value}));e.value=1==o?.length?o[0][`${this.text}`]:"",r.value=1==o?.length?o[0][`${this.value}`]:""}}render(){return this.options=ow(this.jsonData),this.options&&0!==this.options.length?(null!=this.options&&(this.value??=Object.keys(this.options[0])[0],this.text??=Object.keys(this.options[0])[1]??this.value),At`
203
195
  <datalist id=${this.listId}>
204
196
  ${this.options.map((t=>At`<option value="${t[this.text]}" data-value="${t[this.value]}"/>`))}
205
- </datalist>`):At``}};Dw([Jt({type:String}),jw("design:type",Object)],Rw.prototype,"listId",void 0),Dw([Jt({type:Number}),jw("design:type",Object)],Rw.prototype,"min",void 0),Dw([Jt({type:Array}),jw("design:type",Object)],Rw.prototype,"options",void 0),Dw([Jt({type:Boolean}),jw("design:type",Object)],Rw.prototype,"renderInHost",void 0),Dw([Jt({type:String}),jw("design:type",Object)],Rw.prototype,"text",void 0),Dw([Jt({type:String}),jw("design:type",Object)],Rw.prototype,"value",void 0),Dw([Jt({type:Boolean}),jw("design:type",Object)],Rw.prototype,"fetchOnLoad",void 0),Rw=Dw([Kt("qbo-datalist")],Rw);var Lw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Pw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Mw=class extends Sw{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[B`
197
+ </datalist>`):At``}};Dw([Jt({type:String}),Rw("design:type",Object)],jw.prototype,"listId",void 0),Dw([Jt({type:Number}),Rw("design:type",Object)],jw.prototype,"min",void 0),Dw([Jt({type:Array}),Rw("design:type",Object)],jw.prototype,"options",void 0),Dw([Jt({type:Boolean}),Rw("design:type",Object)],jw.prototype,"renderInHost",void 0),Dw([Jt({type:String}),Rw("design:type",Object)],jw.prototype,"text",void 0),Dw([Jt({type:String}),Rw("design:type",Object)],jw.prototype,"value",void 0),Dw([Jt({type:Boolean}),Rw("design:type",Object)],jw.prototype,"fetchOnLoad",void 0),jw=Dw([Kt("qbo-datalist")],jw);var Lw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Pw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Mw=class extends Sw{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[B`
206
198
  /* Add any custom styles here */
207
199
  .foo { color: red; }
208
- `]}async connectedCallback(){super.connectedCallback()}render(){return At`<iframe src='sample.pdf' width='100%' height='800px' frameborder='0'></iframe>`}};Lw([Jt({type:Boolean}),Pw("design:type",Object)],Mw.prototype,"open",void 0),Lw([Jt({type:Boolean}),Pw("design:type",Object)],Mw.prototype,"loading",void 0),Lw([Jt({type:Boolean}),Pw("design:type",Object)],Mw.prototype,"renderInHost",void 0),Mw=Lw([Kt("qbo-docviewer")],Mw);var Nw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},zw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let qw=class extends Bt{constructor(){super(...arguments),this.createdDate=null,this.createdPerson=null,this.updatedDate=null,this.updatedPerson=null,this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){return At`<slot>
209
- <div class="col-md-12 mt-3">
200
+ `]}async connectedCallback(){super.connectedCallback()}render(){return At`<iframe src='sample.pdf' width='100%' height='800px' frameborder='0'></iframe>`}};Lw([Jt({type:Boolean}),Pw("design:type",Object)],Mw.prototype,"open",void 0),Lw([Jt({type:Boolean}),Pw("design:type",Object)],Mw.prototype,"loading",void 0),Lw([Jt({type:Boolean}),Pw("design:type",Object)],Mw.prototype,"renderInHost",void 0),Mw=Lw([Kt("qbo-docviewer")],Mw);var Nw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},zw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let qw=class extends Bt{constructor(){super(...arguments),this.buttonPrimaryClass="qbo-primary",this.createdDate=null,this.createdPerson=null,this.divButtonGroupClass="qbo-btn-group",this.divFormActionClass="qbo-form-actions",this.divSectionHeaderClass="qbo-header",this.editLabel="Edit",this.spanEditClass="qbo-icon-edit",this.updatedDate=null,this.updatedPerson=null,this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){return At`<slot>
201
+ <div class="${this.divSectionHeaderClass}">
210
202
  <hr />
211
203
  </div>
212
- <div class="col-md-12 mt-2">
213
- <div class="btn-group">
214
- <button type="button" class="btn btn-primary">
215
- <span class="bi-pencil-square"> Edit</span>
204
+ <div class="${this.divFormActionClass}">
205
+ <div class="${this.divButtonGroupClass}">
206
+ <button type="button" class="${this.buttonPrimaryClass}">
207
+ <span class="${this.spanEditClass}"> ${this.editLabel}</span>
216
208
  </button>
217
209
  <button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown"></button>
218
210
  <ul class="dropdown-menu">
@@ -236,7 +228,7 @@
236
228
  </button>
237
229
  </qbo-popover>
238
230
  </div>
239
- </slot>`}};Nw([Jt({type:Date}),zw("design:type",Object)],qw.prototype,"createdDate",void 0),Nw([Jt({type:String}),zw("design:type",Object)],qw.prototype,"createdPerson",void 0),Nw([Jt({type:Date}),zw("design:type",Object)],qw.prototype,"updatedDate",void 0),Nw([Jt({type:String}),zw("design:type",Object)],qw.prototype,"updatedPerson",void 0),Nw([Jt({type:Boolean}),zw("design:type",Object)],qw.prototype,"renderInHost",void 0),qw=Nw([Kt("qbo-form-edit")],qw);var Hw,Vw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Uw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Fw=class extends Bt{static{Hw=this}static{this.formAssociated=!0}constructor(){super(),this.value=new FormData,this.template="",this.name="",this.data=null,this.templateNode=null,this.handleFormChange=t=>{const e=t.target;e.matches("input, select, textarea")&&e.name&&!e.assignedSlot&&(this.value.set(`${this.name}${e.name}`,e.value),this.logger.logTrace(`${this.name}${e.name} was set to ${e.value}`)),this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.augment=t=>{if(t.stopPropagation(),console.log(t),t instanceof CustomEvent&&t.detail.formData instanceof FormData)for(let[e,r]of t.detail.formData.entries())this.value.set(e,r),console.log(`Added ${e}=${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(ee)}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=nw(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(t){super.updated(t),this.establishFormData()}render(){return At`<slot></slot>`}establishFormData(){const t=this.shadowRoot?.querySelectorAll("input, select, textarea"),e=Array.from(t).filter((t=>!t.assignedSlot&&(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof Hw)&&t.name));e.forEach((t=>{const e=t;if(e instanceof HTMLSelectElement)this.value.set(`${this.name}${e.name}`,e.value);else if(e instanceof HTMLTextAreaElement)this.value.set(`${this.name}${e.name}`,e.value);else if(e instanceof Hw)for(let[t,r]of e.value.entries())this.value.set(`${this.name}${t}`,r);else e instanceof HTMLInputElement&&("checkbox"===e.type||"radio"===e.type?e.checked&&this.value.set(`${this.name}${e.name}`,e.value):this.value.set(`${this.name}${e.name}`,e.value))})),this.internals.setFormValue(this.value),this.logger.logTrace(`Set ${this.name} values to `,this.value)}};Vw([Jt({type:FormData}),Uw("design:type",FormData)],Fw.prototype,"value",void 0),Vw([Jt({type:String}),Uw("design:type",Object)],Fw.prototype,"template",void 0),Vw([Jt({type:String}),Uw("design:type",Object)],Fw.prototype,"name",void 0),Vw([Jt({type:Object}),Uw("design:type",Object)],Fw.prototype,"data",void 0),Fw=Hw=Vw([Kt("qbo-form-element"),Uw("design:paramtypes",[])],Fw);var Bw="top",Ww="bottom",Kw="right",Xw="left",Gw="auto",Jw=[Bw,Ww,Kw,Xw],Qw="start",Yw="end",Zw="clippingParents",t_="viewport",e_="popper",r_="reference",o_=Jw.reduce((function(t,e){return t.concat([e+"-"+Qw,e+"-"+Yw])}),[]),n_=[].concat(Jw,[Gw]).reduce((function(t,e){return t.concat([e,e+"-"+Qw,e+"-"+Yw])}),[]),i_="beforeRead",s_="read",a_="afterRead",l_="beforeMain",c_="main",d_="afterMain",u_="beforeWrite",p_="write",b_="afterWrite",f_=[i_,s_,a_,l_,c_,d_,u_,p_,b_];function h_(t){return t?(t.nodeName||"").toLowerCase():null}function g_(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function v_(t){return t instanceof g_(t).Element||t instanceof Element}function m_(t){return t instanceof g_(t).HTMLElement||t instanceof HTMLElement}function y_(t){return"undefined"!=typeof ShadowRoot&&(t instanceof g_(t).ShadowRoot||t instanceof ShadowRoot)}const w_={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},n=e.elements[t];m_(n)&&h_(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(t){var e=o[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],n=e.attributes[t]||{},i=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:r[t]).reduce((function(t,e){return t[e]="",t}),{});m_(o)&&h_(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]};function __(t){return t.split("-")[0]}var x_=Math.max,C_=Math.min,k_=Math.round;function S_(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function E_(){return!/^((?!chrome|android).)*safari/i.test(S_())}function T_(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var o=t.getBoundingClientRect(),n=1,i=1;e&&m_(t)&&(n=t.offsetWidth>0&&k_(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&k_(o.height)/t.offsetHeight||1);var s=(v_(t)?g_(t):window).visualViewport,a=!E_()&&r,l=(o.left+(a&&s?s.offsetLeft:0))/n,c=(o.top+(a&&s?s.offsetTop:0))/i,d=o.width/n,u=o.height/i;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function A_(t){var e=T_(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}function $_(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&y_(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function O_(t){return g_(t).getComputedStyle(t)}function I_(t){return["table","td","th"].indexOf(h_(t))>=0}function D_(t){return((v_(t)?t.ownerDocument:t.document)||window.document).documentElement}function j_(t){return"html"===h_(t)?t:t.assignedSlot||t.parentNode||(y_(t)?t.host:null)||D_(t)}function R_(t){return m_(t)&&"fixed"!==O_(t).position?t.offsetParent:null}function L_(t){for(var e=g_(t),r=R_(t);r&&I_(r)&&"static"===O_(r).position;)r=R_(r);return r&&("html"===h_(r)||"body"===h_(r)&&"static"===O_(r).position)?e:r||function(t){var e=/firefox/i.test(S_());if(/Trident/i.test(S_())&&m_(t)&&"fixed"===O_(t).position)return null;var r=j_(t);for(y_(r)&&(r=r.host);m_(r)&&["html","body"].indexOf(h_(r))<0;){var o=O_(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(t)||e}function P_(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function M_(t,e,r){return x_(t,C_(e,r))}function N_(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function z_(t,e){return e.reduce((function(e,r){return e[r]=t,e}),{})}const q_={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,r=t.state,o=t.name,n=t.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=__(r.placement),l=P_(a),c=[Xw,Kw].indexOf(a)>=0?"height":"width";if(i&&s){var d=function(t,e){return N_("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:z_(t,Jw))}(n.padding,r),u=A_(i),p="y"===l?Bw:Xw,b="y"===l?Ww:Kw,f=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],h=s[l]-r.rects.reference[l],g=L_(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,m=f/2-h/2,y=d[p],w=v-u[c]-d[b],_=v/2-u[c]/2+m,x=M_(y,_,w),C=l;r.modifiersData[o]=((e={})[C]=x,e.centerOffset=x-_,e)}},effect:function(t){var e=t.state,r=t.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&$_(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function H_(t){return t.split("-")[1]}var V_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function U_(t){var e,r=t.popper,o=t.popperRect,n=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,p=s.x,b=void 0===p?0:p,f=s.y,h=void 0===f?0:f,g="function"==typeof d?d({x:b,y:h}):{x:b,y:h};b=g.x,h=g.y;var v=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),y=Xw,w=Bw,_=window;if(c){var x=L_(r),C="clientHeight",k="clientWidth";x===g_(r)&&"static"!==O_(x=D_(r)).position&&"absolute"===a&&(C="scrollHeight",k="scrollWidth"),(n===Bw||(n===Xw||n===Kw)&&i===Yw)&&(w=Ww,h-=(u&&x===_&&_.visualViewport?_.visualViewport.height:x[C])-o.height,h*=l?1:-1),n!==Xw&&(n!==Bw&&n!==Ww||i!==Yw)||(y=Kw,b-=(u&&x===_&&_.visualViewport?_.visualViewport.width:x[k])-o.width,b*=l?1:-1)}var S,E=Object.assign({position:a},c&&V_),T=!0===d?function(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:k_(r*n)/n||0,y:k_(o*n)/n||0}}({x:b,y:h},g_(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,((e={})[w]=m?h+"px":"",e[y]=v?b+"px":"",e.transform="",e))}const F_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,r=t.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:__(e.placement),variation:H_(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,U_(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,U_(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var B_={passive:!0};const W_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,r=t.instance,o=t.options,n=o.scroll,i=void 0===n||n,s=o.resize,a=void 0===s||s,l=g_(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach((function(t){t.addEventListener("scroll",r.update,B_)})),a&&l.addEventListener("resize",r.update,B_),function(){i&&c.forEach((function(t){t.removeEventListener("scroll",r.update,B_)})),a&&l.removeEventListener("resize",r.update,B_)}},data:{}};var K_={left:"right",right:"left",bottom:"top",top:"bottom"};function X_(t){return t.replace(/left|right|bottom|top/g,(function(t){return K_[t]}))}var G_={start:"end",end:"start"};function J_(t){return t.replace(/start|end/g,(function(t){return G_[t]}))}function Q_(t){var e=g_(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Y_(t){return T_(D_(t)).left+Q_(t).scrollLeft}function Z_(t){var e=O_(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function tx(t){return["html","body","#document"].indexOf(h_(t))>=0?t.ownerDocument.body:m_(t)&&Z_(t)?t:tx(j_(t))}function ex(t,e){var r;void 0===e&&(e=[]);var o=tx(t),n=o===(null==(r=t.ownerDocument)?void 0:r.body),i=g_(o),s=n?[i].concat(i.visualViewport||[],Z_(o)?o:[]):o,a=e.concat(s);return n?a:a.concat(ex(j_(s)))}function rx(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ox(t,e,r){return e===t_?rx(function(t,e){var r=g_(t),o=D_(t),n=r.visualViewport,i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(n){i=n.width,s=n.height;var c=E_();(c||!c&&"fixed"===e)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:i,height:s,x:a+Y_(t),y:l}}(t,r)):v_(e)?function(t,e){var r=T_(t,!1,"fixed"===e);return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}(e,r):rx(function(t){var e,r=D_(t),o=Q_(t),n=null==(e=t.ownerDocument)?void 0:e.body,i=x_(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=x_(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+Y_(t),l=-o.scrollTop;return"rtl"===O_(n||r).direction&&(a+=x_(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(D_(t)))}function nx(t){var e,r=t.reference,o=t.element,n=t.placement,i=n?__(n):null,s=n?H_(n):null,a=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2;switch(i){case Bw:e={x:a,y:r.y-o.height};break;case Ww:e={x:a,y:r.y+r.height};break;case Kw:e={x:r.x+r.width,y:l};break;case Xw:e={x:r.x-o.width,y:l};break;default:e={x:r.x,y:r.y}}var c=i?P_(i):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case Qw:e[c]=e[c]-(r[d]/2-o[d]/2);break;case Yw:e[c]=e[c]+(r[d]/2-o[d]/2)}}return e}function ix(t,e){void 0===e&&(e={});var r=e,o=r.placement,n=void 0===o?t.placement:o,i=r.strategy,s=void 0===i?t.strategy:i,a=r.boundary,l=void 0===a?Zw:a,c=r.rootBoundary,d=void 0===c?t_:c,u=r.elementContext,p=void 0===u?e_:u,b=r.altBoundary,f=void 0!==b&&b,h=r.padding,g=void 0===h?0:h,v=N_("number"!=typeof g?g:z_(g,Jw)),m=p===e_?r_:e_,y=t.rects.popper,w=t.elements[f?m:p],_=function(t,e,r,o){var n="clippingParents"===e?function(t){var e=ex(j_(t)),r=["absolute","fixed"].indexOf(O_(t).position)>=0&&m_(t)?L_(t):t;return v_(r)?e.filter((function(t){return v_(t)&&$_(t,r)&&"body"!==h_(t)})):[]}(t):[].concat(e),i=[].concat(n,[r]),s=i[0],a=i.reduce((function(e,r){var n=ox(t,r,o);return e.top=x_(n.top,e.top),e.right=C_(n.right,e.right),e.bottom=C_(n.bottom,e.bottom),e.left=x_(n.left,e.left),e}),ox(t,s,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(v_(w)?w:w.contextElement||D_(t.elements.popper),l,d,s),x=T_(t.elements.reference),C=nx({reference:x,element:y,strategy:"absolute",placement:n}),k=rx(Object.assign({},y,C)),S=p===e_?k: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=t.modifiersData.offset;if(p===e_&&T){var A=T[n];Object.keys(E).forEach((function(t){var e=[Kw,Ww].indexOf(t)>=0?1:-1,r=[Bw,Ww].indexOf(t)>=0?"y":"x";E[t]+=A[r]*e}))}return E}const sx={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,o=t.name;if(!e.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,d=r.boundary,u=r.rootBoundary,p=r.altBoundary,b=r.flipVariations,f=void 0===b||b,h=r.allowedAutoPlacements,g=e.options.placement,v=__(g),m=l||(v!==g&&f?function(t){if(__(t)===Gw)return[];var e=X_(t);return[J_(t),e,J_(e)]}(g):[X_(g)]),y=[g].concat(m).reduce((function(t,r){return t.concat(__(r)===Gw?function(t,e){void 0===e&&(e={});var r=e,o=r.placement,n=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?n_:l,d=H_(o),u=d?a?o_:o_.filter((function(t){return H_(t)===d})):Jw,p=u.filter((function(t){return c.indexOf(t)>=0}));0===p.length&&(p=u);var b=p.reduce((function(e,r){return e[r]=ix(t,{placement:r,boundary:n,rootBoundary:i,padding:s})[__(r)],e}),{});return Object.keys(b).sort((function(t,e){return b[t]-b[e]}))}(e,{placement:r,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:h}):r)}),[]),w=e.rects.reference,_=e.rects.popper,x=new Map,C=!0,k=y[0],S=0;S<y.length;S++){var E=y[S],T=__(E),A=H_(E)===Qw,$=[Bw,Ww].indexOf(T)>=0,O=$?"width":"height",I=ix(e,{placement:E,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),D=$?A?Kw:Xw:A?Ww:Bw;w[O]>_[O]&&(D=X_(D));var j=X_(D),R=[];if(i&&R.push(I[T]<=0),a&&R.push(I[D]<=0,I[j]<=0),R.every((function(t){return t}))){k=E,C=!1;break}x.set(E,R)}if(C)for(var L=function(t){var e=y.find((function(e){var r=x.get(e);if(r)return r.slice(0,t).every((function(t){return t}))}));if(e)return k=e,"break"},P=f?3:1;P>0&&"break"!==L(P);P--);e.placement!==k&&(e.modifiersData[o]._skip=!0,e.placement=k,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ax(t,e,r){return void 0===r&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function lx(t){return[Bw,Kw,Ww,Xw].some((function(e){return t[e]>=0}))}const cx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,r=t.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,s=ix(e,{elementContext:"reference"}),a=ix(e,{altBoundary:!0}),l=ax(s,o),c=ax(a,n,i),d=lx(l),u=lx(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},dx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,r=t.options,o=t.name,n=r.offset,i=void 0===n?[0,0]:n,s=n_.reduce((function(t,r){return t[r]=function(t,e,r){var o=__(t),n=[Xw,Bw].indexOf(o)>=0?-1:1,i="function"==typeof r?r(Object.assign({},e,{placement:t})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*n,[Xw,Kw].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}(r,e.rects,i),t}),{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=s}},ux={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,r=t.name;e.modifiersData[r]=nx({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},px={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,o=t.name,n=r.mainAxis,i=void 0===n||n,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.padding,p=r.tether,b=void 0===p||p,f=r.tetherOffset,h=void 0===f?0:f,g=ix(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=__(e.placement),m=H_(e.placement),y=!m,w=P_(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,C=e.rects.reference,k=e.rects.popper,S="function"==typeof h?h(Object.assign({},e.rects,{placement:e.placement})):h,E="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(x){if(i){var $,O="y"===w?Bw:Xw,I="y"===w?Ww:Kw,D="y"===w?"height":"width",j=x[w],R=j+g[O],L=j-g[I],P=b?-k[D]/2:0,M=m===Qw?C[D]:k[D],N=m===Qw?-k[D]:-C[D],z=e.elements.arrow,q=b&&z?A_(z):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=H[O],U=H[I],F=M_(0,C[D],q[D]),B=y?C[D]/2-P-F-V-E.mainAxis:M-F-V-E.mainAxis,W=y?-C[D]/2+P+F+U+E.mainAxis:N+F+U+E.mainAxis,K=e.elements.arrow&&L_(e.elements.arrow),X=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,G=null!=($=null==T?void 0:T[w])?$:0,J=j+W-G,Q=M_(b?C_(R,j+B-G-X):R,j,b?x_(L,J):L);x[w]=Q,A[w]=Q-j}if(a){var Y,Z="x"===w?Bw:Xw,tt="x"===w?Ww:Kw,et=x[_],rt="y"===_?"height":"width",ot=et+g[Z],nt=et-g[tt],it=-1!==[Bw,Xw].indexOf(v),st=null!=(Y=null==T?void 0:T[_])?Y:0,at=it?ot:et-C[rt]-k[rt]-st+E.altAxis,lt=it?et+C[rt]+k[rt]-st-E.altAxis:nt,ct=b&&it?function(t,e,r){var o=M_(t,e,r);return o>r?r:o}(at,et,lt):M_(b?at:ot,et,b?lt:nt);x[_]=ct,A[_]=ct-et}e.modifiersData[o]=A}},requiresIfExists:["offset"]};function bx(t,e,r){void 0===r&&(r=!1);var o,n,i=m_(e),s=m_(e)&&function(t){var e=t.getBoundingClientRect(),r=k_(e.width)/t.offsetWidth||1,o=k_(e.height)/t.offsetHeight||1;return 1!==r||1!==o}(e),a=D_(e),l=T_(t,s,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&(("body"!==h_(e)||Z_(a))&&(c=(o=e)!==g_(o)&&m_(o)?{scrollLeft:(n=o).scrollLeft,scrollTop:n.scrollTop}:Q_(o)),m_(e)?((d=T_(e,!0)).x+=e.clientLeft,d.y+=e.clientTop):a&&(d.x=Y_(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function fx(t){var e=new Map,r=new Set,o=[];function n(t){r.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!r.has(t)){var o=e.get(t);o&&n(o)}})),o.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){r.has(t.name)||n(t)})),o}var hx={placement:"bottom",modifiers:[],strategy:"absolute"};function gx(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function vx(t){void 0===t&&(t={});var e=t,r=e.defaultModifiers,o=void 0===r?[]:r,n=e.defaultOptions,i=void 0===n?hx:n;return function(t,e,r){void 0===r&&(r=i);var n,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},hx,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(r){var n="function"==typeof r?r(a.options):r;u(),a.options=Object.assign({},i,a.options,n),a.scrollParents={reference:v_(t)?ex(t):t.contextElement?ex(t.contextElement):[],popper:ex(e)};var s,c,p=function(t){var e=fx(t);return f_.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}((s=[].concat(o,a.options.modifiers),c=s.reduce((function(t,e){var r=t[e.name];return t[e.name]=r?Object.assign({},r,e,{options:Object.assign({},r.options,e.options),data:Object.assign({},r.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=p.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,r=t.options,o=void 0===r?{}:r,n=t.effect;if("function"==typeof n){var i=n({state:a,name:e,instance:d,options:o});l.push(i||function(){})}})),d.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,r=t.popper;if(gx(e,r)){a.rects={reference:bx(e,L_(r),"fixed"===a.options.strategy),popper:A_(r)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.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,u=n.name;"function"==typeof i&&(a=i({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,o=-1}}},update:(n=function(){return new Promise((function(t){d.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(n())}))}))),s}),destroy:function(){u(),c=!0}};if(!gx(t,e))return d;function u(){l.forEach((function(t){return t()})),l=[]}return d.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),d}}var mx=vx(),yx=vx({defaultModifiers:[W_,ux,F_,w_,dx,sx,px,q_,cx]}),wx=vx({defaultModifiers:[W_,ux,F_,w_]});const _x=new Map,xx={set(t,e,r){_x.has(t)||_x.set(t,new Map);const o=_x.get(t);o.has(e)||0===o.size?o.set(e,r):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`)},get:(t,e)=>_x.has(t)&&_x.get(t).get(e)||null,remove(t,e){if(!_x.has(t))return;const r=_x.get(t);r.delete(e),0===r.size&&_x.delete(t)}},Cx="transitionend",kx=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),Sx=t=>{t.dispatchEvent(new Event(Cx))},Ex=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),Tx=t=>Ex(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(kx(t)):null,Ax=t=>{if(!Ex(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),r=t.closest("details:not([open])");if(!r)return e;if(r!==t){const e=t.closest("summary");if(e&&e.parentNode!==r)return!1;if(null===e)return!1}return e},$x=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),Ox=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Ox(t.parentNode):null},Ix=()=>{},Dx=t=>{t.offsetHeight},jx=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Rx=[],Lx=()=>"rtl"===document.documentElement.dir,Px=t=>{var e;e=()=>{const e=jx();if(e){const r=t.NAME,o=e.fn[r];e.fn[r]=t.jQueryInterface,e.fn[r].Constructor=t,e.fn[r].noConflict=()=>(e.fn[r]=o,t.jQueryInterface)}},"loading"===document.readyState?(Rx.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of Rx)t()})),Rx.push(e)):e()},Mx=(t,e=[],r=t)=>"function"==typeof t?t(...e):r,Nx=(t,e,r=!0)=>{if(!r)return void Mx(t);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:r}=window.getComputedStyle(t);const o=Number.parseFloat(e),n=Number.parseFloat(r);return o||n?(e=e.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(r))):0})(e)+5;let n=!1;const i=({target:r})=>{r===e&&(n=!0,e.removeEventListener(Cx,i),Mx(t))};e.addEventListener(Cx,i),setTimeout((()=>{n||Sx(e)}),o)},zx=(t,e,r,o)=>{const n=t.length;let i=t.indexOf(e);return-1===i?!r&&o?t[n-1]:t[0]:(i+=r?1:-1,o&&(i=(i+n)%n),t[Math.max(0,Math.min(i,n-1))])},qx=/[^.]*(?=\..*)\.|.*/,Hx=/\..*/,Vx=/::\d+$/,Ux={};let Fx=1;const Bx={mouseenter:"mouseover",mouseleave:"mouseout"},Wx=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 Kx(t,e){return e&&`${e}::${Fx++}`||t.uidEvent||Fx++}function Xx(t){const e=Kx(t);return t.uidEvent=e,Ux[e]=Ux[e]||{},Ux[e]}function Gx(t,e,r=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===r))}function Jx(t,e,r){const o="string"==typeof e,n=o?r:e||r;let i=tC(t);return Wx.has(i)||(i=t),[o,n,i]}function Qx(t,e,r,o,n){if("string"!=typeof e||!t)return;let[i,s,a]=Jx(e,r,o);if(e in Bx){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};s=t(s)}const l=Xx(t),c=l[a]||(l[a]={}),d=Gx(c,s,i?r:null);if(d)return void(d.oneOff=d.oneOff&&n);const u=Kx(s,e.replace(qx,"")),p=i?function(t,e,r){return function o(n){const i=t.querySelectorAll(e);for(let{target:s}=n;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return rC(n,{delegateTarget:s}),o.oneOff&&eC.off(t,n.type,e,r),r.apply(s,[n])}}(t,r,s):function(t,e){return function r(o){return rC(o,{delegateTarget:t}),r.oneOff&&eC.off(t,o.type,e),e.apply(t,[o])}}(t,s);p.delegationSelector=i?r:null,p.callable=s,p.oneOff=n,p.uidEvent=u,c[u]=p,t.addEventListener(a,p,i)}function Yx(t,e,r,o,n){const i=Gx(e[r],o,n);i&&(t.removeEventListener(r,i,Boolean(n)),delete e[r][i.uidEvent])}function Zx(t,e,r,o){const n=e[r]||{};for(const[i,s]of Object.entries(n))i.includes(o)&&Yx(t,e,r,s.callable,s.delegationSelector)}function tC(t){return t=t.replace(Hx,""),Bx[t]||t}const eC={on(t,e,r,o){Qx(t,e,r,o,!1)},one(t,e,r,o){Qx(t,e,r,o,!0)},off(t,e,r,o){if("string"!=typeof e||!t)return;const[n,i,s]=Jx(e,r,o),a=s!==e,l=Xx(t),c=l[s]||{},d=e.startsWith(".");if(void 0===i){if(d)for(const r of Object.keys(l))Zx(t,l,r,e.slice(1));for(const[r,o]of Object.entries(c)){const n=r.replace(Vx,"");a&&!e.includes(n)||Yx(t,l,s,o.callable,o.delegationSelector)}}else{if(!Object.keys(c).length)return;Yx(t,l,s,i,n?r:null)}},trigger(t,e,r){if("string"!=typeof e||!t)return null;const o=jx();let n=null,i=!0,s=!0,a=!1;e!==tC(e)&&o&&(n=o.Event(e,r),o(t).trigger(n),i=!n.isPropagationStopped(),s=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=rC(new Event(e,{bubbles:i,cancelable:!0}),r);return a&&l.preventDefault(),s&&t.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function rC(t,e={}){for(const[r,o]of Object.entries(e))try{t[r]=o}catch(e){Object.defineProperty(t,r,{configurable:!0,get:()=>o})}return t}function oC(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function nC(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const iC={setDataAttribute(t,e,r){t.setAttribute(`data-bs-${nC(e)}`,r)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${nC(e)}`)},getDataAttributes(t){if(!t)return{};const e={},r=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const o of r){let r=o.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),e[r]=oC(t.dataset[o])}return e},getDataAttribute:(t,e)=>oC(t.getAttribute(`data-bs-${nC(e)}`))};class sC{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(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const r=Ex(e)?iC.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof r?r:{},...Ex(e)?iC.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[o,n]of Object.entries(e)){const e=t[o],i=Ex(e)?"element":null==(r=e)?`${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 aC extends sC{constructor(t,e){super(),(t=Tx(t))&&(this._element=t,this._config=this._getConfig(e),xx.set(this._element,this.constructor.DATA_KEY,this))}dispose(){xx.remove(this._element,this.constructor.DATA_KEY),eC.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,r=!0){Nx(t,e,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return xx.get(Tx(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e: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(t){return`${t}${this.EVENT_KEY}`}}const lC=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let r=t.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),e=r&&"#"!==r?r.trim():null}return e?e.split(",").map((t=>kx(t))).join(","):null},cC={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const r=[];let o=t.parentNode.closest(e);for(;o;)r.push(o),o=o.parentNode.closest(e);return r},prev(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return[r];r=r.previousElementSibling}return[]},next(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return[r];r=r.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!$x(t)&&Ax(t)))},getSelectorFromElement(t){const e=lC(t);return e&&cC.findOne(e)?e:null},getElementFromSelector(t){const e=lC(t);return e?cC.findOne(e):null},getMultipleElementsFromSelector(t){const e=lC(t);return e?cC.find(e):[]}},dC=(t,e="hide")=>{const r=`click.dismiss${t.EVENT_KEY}`,o=t.NAME;eC.on(document,r,`[data-bs-dismiss="${o}"]`,(function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),$x(this))return;const n=cC.getElementFromSelector(this)||this.closest(`.${o}`);t.getOrCreateInstance(n)[e]()}))},uC=".bs.alert",pC=`close${uC}`,bC=`closed${uC}`;class fC extends aC{static get NAME(){return"alert"}close(){if(eC.trigger(this._element,pC).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),eC.trigger(this._element,bC),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=fC.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}dC(fC,"close"),Px(fC);const hC='[data-bs-toggle="button"]';class gC extends aC{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=gC.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}eC.on(document,"click.bs.button.data-api",hC,(t=>{t.preventDefault();const e=t.target.closest(hC);gC.getOrCreateInstance(e).toggle()})),Px(gC);const vC=".bs.swipe",mC=`touchstart${vC}`,yC=`touchmove${vC}`,wC=`touchend${vC}`,_C=`pointerdown${vC}`,xC=`pointerup${vC}`,CC={endCallback:null,leftCallback:null,rightCallback:null},kC={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class SC extends sC{constructor(t,e){super(),this._element=t,t&&SC.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return CC}static get DefaultType(){return kC}static get NAME(){return"swipe"}dispose(){eC.off(this._element,vC)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Mx(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&Mx(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(eC.on(this._element,_C,(t=>this._start(t))),eC.on(this._element,xC,(t=>this._end(t))),this._element.classList.add("pointer-event")):(eC.on(this._element,mC,(t=>this._start(t))),eC.on(this._element,yC,(t=>this._move(t))),eC.on(this._element,wC,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const EC=".bs.carousel",TC=".data-api",AC="ArrowLeft",$C="ArrowRight",OC="next",IC="prev",DC="left",jC="right",RC=`slide${EC}`,LC=`slid${EC}`,PC=`keydown${EC}`,MC=`mouseenter${EC}`,NC=`mouseleave${EC}`,zC=`dragstart${EC}`,qC=`load${EC}${TC}`,HC=`click${EC}${TC}`,VC="carousel",UC="active",FC=".active",BC=".carousel-item",WC=FC+BC,KC={[AC]:jC,[$C]:DC},XC={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},GC={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class JC extends aC{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=cC.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===VC&&this.cycle()}static get Default(){return XC}static get DefaultType(){return GC}static get NAME(){return"carousel"}next(){this._slide(OC)}nextWhenVisible(){!document.hidden&&Ax(this._element)&&this.next()}prev(){this._slide(IC)}pause(){this._isSliding&&Sx(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?eC.one(this._element,LC,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void eC.one(this._element,LC,(()=>this.to(t)));const r=this._getItemIndex(this._getActive());if(r===t)return;const o=t>r?OC:IC;this._slide(o,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&eC.on(this._element,PC,(t=>this._keydown(t))),"hover"===this._config.pause&&(eC.on(this._element,MC,(()=>this.pause())),eC.on(this._element,NC,(()=>this._maybeEnableCycle()))),this._config.touch&&SC.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of cC.find(".carousel-item img",this._element))eC.on(t,zC,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(DC)),rightCallback:()=>this._slide(this._directionToOrder(jC)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new SC(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=KC[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=cC.findOne(FC,this._indicatorsElement);e.classList.remove(UC),e.removeAttribute("aria-current");const r=cC.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(UC),r.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const r=this._getActive(),o=t===OC,n=e||zx(this._getItems(),r,o,this._config.wrap);if(n===r)return;const i=this._getItemIndex(n),s=e=>eC.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:i});if(s(RC).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),Dx(n),r.classList.add(l),n.classList.add(l),this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(UC),r.classList.remove(UC,c,l),this._isSliding=!1,s(LC)}),r,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return cC.findOne(WC,this._element)}_getItems(){return cC.find(BC,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Lx()?t===DC?IC:OC:t===DC?OC:IC}_orderToDirection(t){return Lx()?t===IC?DC:jC:t===IC?jC:DC}static jQueryInterface(t){return this.each((function(){const e=JC.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}eC.on(document,HC,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=cC.getElementFromSelector(this);if(!e||!e.classList.contains(VC))return;t.preventDefault();const r=JC.getOrCreateInstance(e),o=this.getAttribute("data-bs-slide-to");return o?(r.to(o),void r._maybeEnableCycle()):"next"===iC.getDataAttribute(this,"slide")?(r.next(),void r._maybeEnableCycle()):(r.prev(),void r._maybeEnableCycle())})),eC.on(window,qC,(()=>{const t=cC.find('[data-bs-ride="carousel"]');for(const e of t)JC.getOrCreateInstance(e)})),Px(JC);const QC=".bs.collapse",YC=`show${QC}`,ZC=`shown${QC}`,tk=`hide${QC}`,ek=`hidden${QC}`,rk=`click${QC}.data-api`,ok="show",nk="collapse",ik="collapsing",sk=`:scope .${nk} .${nk}`,ak='[data-bs-toggle="collapse"]',lk={parent:null,toggle:!0},ck={parent:"(null|element)",toggle:"boolean"};class dk extends aC{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const r=cC.find(ak);for(const t of r){const e=cC.getSelectorFromElement(t),r=cC.find(e).filter((t=>t===this._element));null!==e&&r.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return lk}static get DefaultType(){return ck}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>dk.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(eC.trigger(this._element,YC).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(nk),this._element.classList.add(ik),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ik),this._element.classList.add(nk,ok),this._element.style[e]="",eC.trigger(this._element,ZC)}),this._element,!0),this._element.style[e]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(eC.trigger(this._element,tk).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Dx(this._element),this._element.classList.add(ik),this._element.classList.remove(nk,ok);for(const t of this._triggerArray){const e=cC.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ik),this._element.classList.add(nk),eC.trigger(this._element,ek)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(ok)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=Tx(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(ak);for(const e of t){const t=cC.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=cC.find(sk,this._config.parent);return cC.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const r of t)r.classList.toggle("collapsed",!e),r.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const r=dk.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t]()}}))}}eC.on(document,rk,ak,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of cC.getMultipleElementsFromSelector(this))dk.getOrCreateInstance(t,{toggle:!1}).toggle()})),Px(dk);const uk="dropdown",pk=".bs.dropdown",bk=".data-api",fk="ArrowUp",hk="ArrowDown",gk=`hide${pk}`,vk=`hidden${pk}`,mk=`show${pk}`,yk=`shown${pk}`,wk=`click${pk}${bk}`,_k=`keydown${pk}${bk}`,xk=`keyup${pk}${bk}`,Ck="show",kk='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Sk=`${kk}.${Ck}`,Ek=".dropdown-menu",Tk=Lx()?"top-end":"top-start",Ak=Lx()?"top-start":"top-end",$k=Lx()?"bottom-end":"bottom-start",Ok=Lx()?"bottom-start":"bottom-end",Ik=Lx()?"left-start":"right-start",Dk=Lx()?"right-start":"left-start",jk={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Rk={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Lk extends aC{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=cC.next(this._element,Ek)[0]||cC.prev(this._element,Ek)[0]||cC.findOne(Ek,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return jk}static get DefaultType(){return Rk}static get NAME(){return uk}toggle(){return this._isShown()?this.hide():this.show()}show(){if($x(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!eC.trigger(this._element,mk,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))eC.on(t,"mouseover",Ix);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ck),this._element.classList.add(Ck),eC.trigger(this._element,yk,t)}}hide(){if($x(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!eC.trigger(this._element,gk,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))eC.off(t,"mouseover",Ix);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ck),this._element.classList.remove(Ck),this._element.setAttribute("aria-expanded","false"),iC.removeDataAttribute(this._menu,"popper"),eC.trigger(this._element,vk,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Ex(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${uk.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:Ex(this._config.reference)?t=Tx(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const r=this._getPopperConfig();this._popper=yx(t,this._menu,r)}_isShown(){return this._menu.classList.contains(Ck)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Ik;if(t.classList.contains("dropstart"))return Dk;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Ak:Tk:e?Ok:$k}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(iC.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Mx(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const r=cC.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>Ax(t)));r.length&&zx(r,e,t===hk,!r.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Lk.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=cC.find(Sk);for(const r of e){const e=Lk.getInstance(r);if(!e||!1===e._config.autoClose)continue;const o=t.composedPath(),n=o.includes(e._menu);if(o.includes(e._element)||"inside"===e._config.autoClose&&!n||"outside"===e._config.autoClose&&n)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const i={relatedTarget:e._element};"click"===t.type&&(i.clickEvent=t),e._completeHide(i)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),r="Escape"===t.key,o=[fk,hk].includes(t.key);if(!o&&!r)return;if(e&&!r)return;t.preventDefault();const n=this.matches(kk)?this:cC.prev(this,kk)[0]||cC.next(this,kk)[0]||cC.findOne(kk,t.delegateTarget.parentNode),i=Lk.getOrCreateInstance(n);if(o)return t.stopPropagation(),i.show(),void i._selectMenuItem(t);i._isShown()&&(t.stopPropagation(),i.hide(),n.focus())}}eC.on(document,_k,kk,Lk.dataApiKeydownHandler),eC.on(document,_k,Ek,Lk.dataApiKeydownHandler),eC.on(document,wk,Lk.clearMenus),eC.on(document,xk,Lk.clearMenus),eC.on(document,wk,kk,(function(t){t.preventDefault(),Lk.getOrCreateInstance(this).toggle()})),Px(Lk);const Pk="backdrop",Mk="show",Nk=`mousedown.bs.${Pk}`,zk={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},qk={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Hk extends sC{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return zk}static get DefaultType(){return qk}static get NAME(){return Pk}show(t){if(!this._config.isVisible)return void Mx(t);this._append();const e=this._getElement();this._config.isAnimated&&Dx(e),e.classList.add(Mk),this._emulateAnimation((()=>{Mx(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Mk),this._emulateAnimation((()=>{this.dispose(),Mx(t)}))):Mx(t)}dispose(){this._isAppended&&(eC.off(this._element,Nk),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Tx(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),eC.on(t,Nk,(()=>{Mx(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){Nx(t,this._getElement(),this._config.isAnimated)}}const Vk=".bs.focustrap",Uk=`focusin${Vk}`,Fk=`keydown.tab${Vk}`,Bk="backward",Wk={autofocus:!0,trapElement:null},Kk={autofocus:"boolean",trapElement:"element"};class Xk extends sC{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Wk}static get DefaultType(){return Kk}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),eC.off(document,Vk),eC.on(document,Uk,(t=>this._handleFocusin(t))),eC.on(document,Fk,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,eC.off(document,Vk))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const r=cC.focusableChildren(e);0===r.length?e.focus():this._lastTabNavDirection===Bk?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Bk:"forward")}}const Gk=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Jk=".sticky-top",Qk="padding-right",Yk="margin-right";class Zk{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Qk,(e=>e+t)),this._setElementAttributes(Gk,Qk,(e=>e+t)),this._setElementAttributes(Jk,Yk,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Qk),this._resetElementAttributes(Gk,Qk),this._resetElementAttributes(Jk,Yk)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,r){const o=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+o)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${r(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(t,e){const r=t.style.getPropertyValue(e);r&&iC.setDataAttribute(t,e,r)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const r=iC.getDataAttribute(t,e);null!==r?(iC.removeDataAttribute(t,e),t.style.setProperty(e,r)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(Ex(t))e(t);else for(const r of cC.find(t,this._element))e(r)}}const tS=".bs.modal",eS=`hide${tS}`,rS=`hidePrevented${tS}`,oS=`hidden${tS}`,nS=`show${tS}`,iS=`shown${tS}`,sS=`resize${tS}`,aS=`click.dismiss${tS}`,lS=`mousedown.dismiss${tS}`,cS=`keydown.dismiss${tS}`,dS=`click${tS}.data-api`,uS="modal-open",pS="show",bS="modal-static",fS={backdrop:!0,focus:!0,keyboard:!0},hS={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class gS extends aC{constructor(t,e){super(t,e),this._dialog=cC.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Zk,this._addEventListeners()}static get Default(){return fS}static get DefaultType(){return hS}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||eC.trigger(this._element,nS,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(uS),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(eC.trigger(this._element,eS).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(pS),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){eC.off(window,tS),eC.off(this._dialog,tS),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Hk({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Xk({trapElement:this._element})}_showElement(t){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 e=cC.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),Dx(this._element),this._element.classList.add(pS),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,eC.trigger(this._element,iS,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){eC.on(this._element,cS,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),eC.on(window,sS,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),eC.on(this._element,lS,(t=>{eC.one(this._element,aS,(e=>{this._element===t.target&&this._element===e.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(uS),this._resetAdjustments(),this._scrollBar.reset(),eC.trigger(this._element,oS)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(eC.trigger(this._element,rS).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(bS)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(bS),this._queueCallback((()=>{this._element.classList.remove(bS),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),r=e>0;if(r&&!t){const t=Lx()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!r&&t){const t=Lx()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const r=gS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t](e)}}))}}eC.on(document,dS,'[data-bs-toggle="modal"]',(function(t){const e=cC.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),eC.one(e,nS,(t=>{t.defaultPrevented||eC.one(e,oS,(()=>{Ax(this)&&this.focus()}))}));const r=cC.findOne(".modal.show");r&&gS.getInstance(r).hide(),gS.getOrCreateInstance(e).toggle(this)})),dC(gS),Px(gS);const vS=".bs.offcanvas",mS=".data-api",yS=`load${vS}${mS}`,wS="show",_S="showing",xS="hiding",CS=".offcanvas.show",kS=`show${vS}`,SS=`shown${vS}`,ES=`hide${vS}`,TS=`hidePrevented${vS}`,AS=`hidden${vS}`,$S=`resize${vS}`,OS=`click${vS}${mS}`,IS=`keydown.dismiss${vS}`,DS={backdrop:!0,keyboard:!0,scroll:!1},jS={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class RS extends aC{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return DS}static get DefaultType(){return jS}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||eC.trigger(this._element,kS,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Zk).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(_S),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(wS),this._element.classList.remove(_S),eC.trigger(this._element,SS,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(eC.trigger(this._element,ES).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(xS),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(wS,xS),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Zk).reset(),eC.trigger(this._element,AS)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Hk({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():eC.trigger(this._element,TS)}:null})}_initializeFocusTrap(){return new Xk({trapElement:this._element})}_addEventListeners(){eC.on(this._element,IS,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():eC.trigger(this._element,TS))}))}static jQueryInterface(t){return this.each((function(){const e=RS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}eC.on(document,OS,'[data-bs-toggle="offcanvas"]',(function(t){const e=cC.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),$x(this))return;eC.one(e,AS,(()=>{Ax(this)&&this.focus()}));const r=cC.findOne(CS);r&&r!==e&&RS.getInstance(r).hide(),RS.getOrCreateInstance(e).toggle(this)})),eC.on(window,yS,(()=>{for(const t of cC.find(CS))RS.getOrCreateInstance(t).show()})),eC.on(window,$S,(()=>{for(const t of cC.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&RS.getOrCreateInstance(t).hide()})),dC(RS),Px(RS);const LS={"*":["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:[]},PS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),MS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,NS=(t,e)=>{const r=t.nodeName.toLowerCase();return e.includes(r)?!PS.has(r)||Boolean(MS.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(r)))},zS={allowList:LS,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},qS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},HS={entry:"(string|element|function|null)",selector:"(string|element)"};class VS extends sC{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return zS}static get DefaultType(){return qS}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,r]of Object.entries(this._config.content))this._setContent(t,r,e);const e=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&e.classList.add(...r.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,r]of Object.entries(t))super._typeCheckConfig({selector:e,entry:r},HS)}_setContent(t,e,r){const o=cC.findOne(r,t);o&&((e=this._resolvePossibleFunction(e))?Ex(e)?this._putElementInTemplate(Tx(e),o):this._config.html?o.innerHTML=this._maybeSanitize(e):o.textContent=e:o.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,r){if(!t.length)return t;if(r&&"function"==typeof r)return r(t);const o=(new window.DOMParser).parseFromString(t,"text/html"),n=[].concat(...o.body.querySelectorAll("*"));for(const t of n){const r=t.nodeName.toLowerCase();if(!Object.keys(e).includes(r)){t.remove();continue}const o=[].concat(...t.attributes),n=[].concat(e["*"]||[],e[r]||[]);for(const e of o)NS(e,n)||t.removeAttribute(e.nodeName)}return o.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Mx(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const US=new Set(["sanitize","allowList","sanitizeFn"]),FS="fade",BS="show",WS=".tooltip-inner",KS=".modal",XS="hide.bs.modal",GS="hover",JS="focus",QS={AUTO:"auto",TOP:"top",RIGHT:Lx()?"left":"right",BOTTOM:"bottom",LEFT:Lx()?"right":"left"},YS={allowList:LS,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"},ZS={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 tE extends aC{constructor(t,r){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,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 YS}static get DefaultType(){return ZS}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),eC.off(this._element.closest(KS),XS,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 t=eC.trigger(this._element,this.constructor.eventName("show")),e=(Ox(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)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),eC.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(r),r.classList.add(BS),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))eC.on(t,"mouseover",Ix);this._queueCallback((()=>{eC.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!eC.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(BS),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))eC.off(t,"mouseover",Ix);this._activeTrigger.click=!1,this._activeTrigger[JS]=!1,this._activeTrigger[GS]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),eC.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(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(FS,BS),e.classList.add(`bs-${this.constructor.NAME}-auto`);const r=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",r),this._isAnimated()&&e.classList.add(FS),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new VS({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[WS]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(FS)}_isShown(){return this.tip&&this.tip.classList.contains(BS)}_createPopper(t){const e=Mx(this._config.placement,[this,t,this._element]),r=QS[e.toUpperCase()];return yx(this._element,t,this._getPopperConfig(r))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Mx(t,[this._element])}_getPopperConfig(t){const e={placement:t,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:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...Mx(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)eC.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===GS?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),r=e===GS?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");eC.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?JS:GS]=!0,e._enter()})),eC.on(this._element,r,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?JS:GS]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},eC.on(this._element.closest(KS),XS,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),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(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=iC.getDataAttributes(this._element);for(const t of Object.keys(e))US.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:Tx(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,r]of Object.entries(this._config))this.constructor.Default[e]!==r&&(t[e]=r);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=tE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Px(tE);const eE=".popover-header",rE=".popover-body",oE={...tE.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"},nE={...tE.DefaultType,content:"(null|string|element|function)"};class iE extends tE{static get Default(){return oE}static get DefaultType(){return nE}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[eE]:this._getTitle(),[rE]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=iE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Px(iE);const sE=".bs.scrollspy",aE=`activate${sE}`,lE=`click${sE}`,cE=`load${sE}.data-api`,dE="active",uE="[href]",pE=".nav-link",bE=`${pE}, .nav-item > ${pE}, .list-group-item`,fE={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},hE={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class gE extends aC{constructor(t,e){super(t,e),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 fE}static get DefaultType(){return hE}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Tx(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(eC.off(this._config.target,lE),eC.on(this._config.target,lE,uE,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const r=this._rootElement||window,o=e.offsetTop-this._element.offsetTop;if(r.scrollTo)return void r.scrollTo({top:o,behavior:"smooth"});r.scrollTop=o}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),r=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},o=(this._rootElement||document.documentElement).scrollTop,n=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const i of t){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(i));continue}const t=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&t){if(r(i),!o)return}else n||t||r(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=cC.find(uE,this._config.target);for(const e of t){if(!e.hash||$x(e))continue;const t=cC.findOne(decodeURI(e.hash),this._element);Ax(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(dE),this._activateParents(t),eC.trigger(this._element,aE,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))cC.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(dE);else for(const e of cC.parents(t,".nav, .list-group"))for(const t of cC.prev(e,bE))t.classList.add(dE)}_clearActiveClass(t){t.classList.remove(dE);const e=cC.find(`${uE}.${dE}`,t);for(const t of e)t.classList.remove(dE)}static jQueryInterface(t){return this.each((function(){const e=gE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}eC.on(window,cE,(()=>{for(const t of cC.find('[data-bs-spy="scroll"]'))gE.getOrCreateInstance(t)})),Px(gE);const vE=".bs.tab",mE=`hide${vE}`,yE=`hidden${vE}`,wE=`show${vE}`,_E=`shown${vE}`,xE=`click${vE}`,CE=`keydown${vE}`,kE=`load${vE}`,SE="ArrowLeft",EE="ArrowRight",TE="ArrowUp",AE="ArrowDown",$E="Home",OE="End",IE="active",DE="fade",jE="show",RE=".dropdown-toggle",LE=`:not(${RE})`,PE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ME=`.nav-link${LE}, .list-group-item${LE}, [role="tab"]${LE}, ${PE}`,NE=`.${IE}[data-bs-toggle="tab"], .${IE}[data-bs-toggle="pill"], .${IE}[data-bs-toggle="list"]`;class zE extends aC{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),eC.on(this._element,CE,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),r=e?eC.trigger(e,mE,{relatedTarget:t}):null;eC.trigger(t,wE,{relatedTarget:e}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(IE),this._activate(cC.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),eC.trigger(t,_E,{relatedTarget:e})):t.classList.add(jE)}),t,t.classList.contains(DE)))}_deactivate(t,e){t&&(t.classList.remove(IE),t.blur(),this._deactivate(cC.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),eC.trigger(t,yE,{relatedTarget:e})):t.classList.remove(jE)}),t,t.classList.contains(DE)))}_keydown(t){if(![SE,EE,TE,AE,$E,OE].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!$x(t)));let r;if([$E,OE].includes(t.key))r=e[t.key===$E?0:e.length-1];else{const o=[EE,AE].includes(t.key);r=zx(e,t.target,o,!0)}r&&(r.focus({preventScroll:!0}),zE.getOrCreateInstance(r).show())}_getChildren(){return cC.find(ME,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",e),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=cC.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const r=this._getOuterElement(t);if(!r.classList.contains("dropdown"))return;const o=(t,o)=>{const n=cC.findOne(t,r);n&&n.classList.toggle(o,e)};o(RE,IE),o(".dropdown-menu",jE),r.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,r){t.hasAttribute(e)||t.setAttribute(e,r)}_elemIsActive(t){return t.classList.contains(IE)}_getInnerElement(t){return t.matches(ME)?t:cC.findOne(ME,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=zE.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}eC.on(document,xE,PE,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),$x(this)||zE.getOrCreateInstance(this).show()})),eC.on(window,kE,(()=>{for(const t of cC.find(NE))zE.getOrCreateInstance(t)})),Px(zE);const qE=".bs.toast",HE=`mouseover${qE}`,VE=`mouseout${qE}`,UE=`focusin${qE}`,FE=`focusout${qE}`,BE=`hide${qE}`,WE=`hidden${qE}`,KE=`show${qE}`,XE=`shown${qE}`,GE="hide",JE="show",QE="showing",YE={animation:"boolean",autohide:"boolean",delay:"number"},ZE={animation:!0,autohide:!0,delay:5e3};class tT extends aC{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ZE}static get DefaultType(){return YE}static get NAME(){return"toast"}show(){eC.trigger(this._element,KE).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(GE),Dx(this._element),this._element.classList.add(JE,QE),this._queueCallback((()=>{this._element.classList.remove(QE),eC.trigger(this._element,XE),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(eC.trigger(this._element,BE).defaultPrevented||(this._element.classList.add(QE),this._queueCallback((()=>{this._element.classList.add(GE),this._element.classList.remove(QE,JE),eC.trigger(this._element,WE)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(JE),super.dispose()}isShown(){return this._element.classList.contains(JE)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){eC.on(this._element,HE,(t=>this._onInteraction(t,!0))),eC.on(this._element,VE,(t=>this._onInteraction(t,!1))),eC.on(this._element,UE,(t=>this._onInteraction(t,!0))),eC.on(this._element,FE,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=tT.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}dC(tT),Px(tT);var eT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},rT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let oT=class extends Sw{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(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("aria-expanded")&&"true"==t.getAttribute("aria-expanded")&&t.click()})):this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} .${this.ulSubMenuClass}`).forEach((function(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("style")&&t.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(t){if(super.updated(t),null!=t.get("jsonData")){this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass}`).forEach((t=>{t.addEventListener("click",(function(t){t.stopPropagation()}))}));const t=this.ulSubMenuClass;this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} a`).forEach((function(e){e.addEventListener("click",(e=>{if(null!=e.currentTarget&&e.currentTarget instanceof HTMLElement&&window.innerWidth<992){const r=e.currentTarget.nextElementSibling;null!=r&&r instanceof HTMLElement&&r.classList.contains(t)&&(e.preventDefault(),r.style.display="block"==r.style.display?"none":"block")}}))})),this.renderRoot.querySelectorAll(`[data-bs-toggle="${this.popoverToggle}"]`).forEach((function(t){new iE(t)}))}}renderImage(t){return null!=t?At`<img src="${t}"/><span/>`:At``}renderMenu(t,e,r){let o=At``;const n=null!=t&&null!=t.Menu?t.Menu:t;return null!=n&&(n.forEach?n.forEach((t=>{o=null!=t.Menu?At`${o}${this.renderMenuDropdown(t,r)}`:"Divider"==t.Type?At`${o}${this.renderMenuDivider()}`:e?At`${o}${this.renderMenuDropdownLink(t.URL,t.Text,t.Icon)}`:At`${o}${this.renderMenuLink(t)}`})):o=null!=n.Menu?At`${o}${this.renderMenuDropdown(n,r)}`:"Divider"==n.Type?At`${o}${this.renderMenuDivider()}`:e?At`${o}${this.renderMenuDropdownLink(n.URL,n.Text,n.Icon)}`:At`${o}${this.renderMenuLink(n)}`),At`${o}`}renderMenuDivider(){return At`<li><hr/></li>`}renderMenuDropdown(t,e){const r=null!=t.Icon&&""!=t.Icon?At`<i class="${t.Icon} ${this.iconClass}" />`:"";return e?At`<li>
231
+ </slot>`}};Nw([Jt({type:String}),zw("design:type",Object)],qw.prototype,"buttonPrimaryClass",void 0),Nw([Jt({type:Date}),zw("design:type",Object)],qw.prototype,"createdDate",void 0),Nw([Jt({type:String}),zw("design:type",Object)],qw.prototype,"createdPerson",void 0),Nw([Jt({type:String}),zw("design:type",Object)],qw.prototype,"divButtonGroupClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],qw.prototype,"divFormActionClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],qw.prototype,"divSectionHeaderClass",void 0),Nw([Jt({type:String}),zw("design:type",Object)],qw.prototype,"editLabel",void 0),Nw([Jt({type:String}),zw("design:type",Object)],qw.prototype,"spanEditClass",void 0),Nw([Jt({type:Date}),zw("design:type",Object)],qw.prototype,"updatedDate",void 0),Nw([Jt({type:String}),zw("design:type",Object)],qw.prototype,"updatedPerson",void 0),Nw([Jt({type:Boolean}),zw("design:type",Object)],qw.prototype,"renderInHost",void 0),qw=Nw([Kt("qbo-form-edit")],qw);var Hw,Vw=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Uw=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Fw=class extends Bt{static{Hw=this}static{this.formAssociated=!0}constructor(){super(),this.value=new FormData,this.template="",this.name="",this.data=null,this.templateNode=null,this.handleFormChange=t=>{const e=t.target;e.matches("input, select, textarea")&&e.name&&!e.assignedSlot&&(this.value.set(`${this.name}${e.name}`,e.value),this.logger.logTrace(`${this.name}${e.name} was set to ${e.value}`)),this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.augment=t=>{if(t.stopPropagation(),console.log(t),t instanceof CustomEvent&&t.detail.formData instanceof FormData)for(let[e,r]of t.detail.formData.entries())this.value.set(e,r),console.log(`Added ${e}=${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(ee)}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=nw(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(t){super.updated(t),this.establishFormData()}render(){return At`<slot></slot>`}establishFormData(){const t=this.shadowRoot?.querySelectorAll("input, select, textarea");if(!t||0===t?.length)return;const e=Array.from(t).filter((t=>!t.assignedSlot&&(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof Hw)&&t.name));e.forEach((t=>{const e=t;if(e instanceof HTMLSelectElement)this.value.set(`${this.name}${e.name}`,e.value);else if(e instanceof HTMLTextAreaElement)this.value.set(`${this.name}${e.name}`,e.value);else if(e instanceof Hw)for(let[t,r]of e.value.entries())this.value.set(`${this.name}${t}`,r);else e instanceof HTMLInputElement&&("checkbox"===e.type||"radio"===e.type?e.checked&&this.value.set(`${this.name}${e.name}`,e.value):this.value.set(`${this.name}${e.name}`,e.value))})),this.internals.setFormValue(this.value),this.logger.logTrace(`Set ${this.name} values to `,this.value)}};Vw([Jt({type:FormData}),Uw("design:type",FormData)],Fw.prototype,"value",void 0),Vw([Jt({type:String}),Uw("design:type",Object)],Fw.prototype,"template",void 0),Vw([Jt({type:String}),Uw("design:type",Object)],Fw.prototype,"name",void 0),Vw([Jt({type:Object}),Uw("design:type",Object)],Fw.prototype,"data",void 0),Fw=Hw=Vw([Kt("qbo-form-element"),Uw("design:paramtypes",[])],Fw);var Bw="top",Ww="bottom",Kw="right",Xw="left",Gw="auto",Jw=[Bw,Ww,Kw,Xw],Qw="start",Yw="end",Zw="clippingParents",t_="viewport",e_="popper",r_="reference",o_=Jw.reduce((function(t,e){return t.concat([e+"-"+Qw,e+"-"+Yw])}),[]),n_=[].concat(Jw,[Gw]).reduce((function(t,e){return t.concat([e,e+"-"+Qw,e+"-"+Yw])}),[]),i_="beforeRead",s_="read",a_="afterRead",l_="beforeMain",c_="main",d_="afterMain",u_="beforeWrite",p_="write",b_="afterWrite",f_=[i_,s_,a_,l_,c_,d_,u_,p_,b_];function h_(t){return t?(t.nodeName||"").toLowerCase():null}function g_(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function v_(t){return t instanceof g_(t).Element||t instanceof Element}function m_(t){return t instanceof g_(t).HTMLElement||t instanceof HTMLElement}function y_(t){return"undefined"!=typeof ShadowRoot&&(t instanceof g_(t).ShadowRoot||t instanceof ShadowRoot)}const w_={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},n=e.elements[t];m_(n)&&h_(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(t){var e=o[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],n=e.attributes[t]||{},i=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:r[t]).reduce((function(t,e){return t[e]="",t}),{});m_(o)&&h_(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]};function __(t){return t.split("-")[0]}var x_=Math.max,C_=Math.min,k_=Math.round;function S_(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function E_(){return!/^((?!chrome|android).)*safari/i.test(S_())}function T_(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var o=t.getBoundingClientRect(),n=1,i=1;e&&m_(t)&&(n=t.offsetWidth>0&&k_(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&k_(o.height)/t.offsetHeight||1);var s=(v_(t)?g_(t):window).visualViewport,a=!E_()&&r,l=(o.left+(a&&s?s.offsetLeft:0))/n,c=(o.top+(a&&s?s.offsetTop:0))/i,d=o.width/n,u=o.height/i;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function A_(t){var e=T_(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}function O_(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&y_(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function $_(t){return g_(t).getComputedStyle(t)}function I_(t){return["table","td","th"].indexOf(h_(t))>=0}function D_(t){return((v_(t)?t.ownerDocument:t.document)||window.document).documentElement}function R_(t){return"html"===h_(t)?t:t.assignedSlot||t.parentNode||(y_(t)?t.host:null)||D_(t)}function j_(t){return m_(t)&&"fixed"!==$_(t).position?t.offsetParent:null}function L_(t){for(var e=g_(t),r=j_(t);r&&I_(r)&&"static"===$_(r).position;)r=j_(r);return r&&("html"===h_(r)||"body"===h_(r)&&"static"===$_(r).position)?e:r||function(t){var e=/firefox/i.test(S_());if(/Trident/i.test(S_())&&m_(t)&&"fixed"===$_(t).position)return null;var r=R_(t);for(y_(r)&&(r=r.host);m_(r)&&["html","body"].indexOf(h_(r))<0;){var o=$_(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(t)||e}function P_(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function M_(t,e,r){return x_(t,C_(e,r))}function N_(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function z_(t,e){return e.reduce((function(e,r){return e[r]=t,e}),{})}const q_={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,r=t.state,o=t.name,n=t.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=__(r.placement),l=P_(a),c=[Xw,Kw].indexOf(a)>=0?"height":"width";if(i&&s){var d=function(t,e){return N_("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:z_(t,Jw))}(n.padding,r),u=A_(i),p="y"===l?Bw:Xw,b="y"===l?Ww:Kw,f=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],h=s[l]-r.rects.reference[l],g=L_(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,m=f/2-h/2,y=d[p],w=v-u[c]-d[b],_=v/2-u[c]/2+m,x=M_(y,_,w),C=l;r.modifiersData[o]=((e={})[C]=x,e.centerOffset=x-_,e)}},effect:function(t){var e=t.state,r=t.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&O_(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function H_(t){return t.split("-")[1]}var V_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function U_(t){var e,r=t.popper,o=t.popperRect,n=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,p=s.x,b=void 0===p?0:p,f=s.y,h=void 0===f?0:f,g="function"==typeof d?d({x:b,y:h}):{x:b,y:h};b=g.x,h=g.y;var v=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),y=Xw,w=Bw,_=window;if(c){var x=L_(r),C="clientHeight",k="clientWidth";x===g_(r)&&"static"!==$_(x=D_(r)).position&&"absolute"===a&&(C="scrollHeight",k="scrollWidth"),(n===Bw||(n===Xw||n===Kw)&&i===Yw)&&(w=Ww,h-=(u&&x===_&&_.visualViewport?_.visualViewport.height:x[C])-o.height,h*=l?1:-1),n!==Xw&&(n!==Bw&&n!==Ww||i!==Yw)||(y=Kw,b-=(u&&x===_&&_.visualViewport?_.visualViewport.width:x[k])-o.width,b*=l?1:-1)}var S,E=Object.assign({position:a},c&&V_),T=!0===d?function(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:k_(r*n)/n||0,y:k_(o*n)/n||0}}({x:b,y:h},g_(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,((e={})[w]=m?h+"px":"",e[y]=v?b+"px":"",e.transform="",e))}const F_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,r=t.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:__(e.placement),variation:H_(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,U_(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,U_(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var B_={passive:!0};const W_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,r=t.instance,o=t.options,n=o.scroll,i=void 0===n||n,s=o.resize,a=void 0===s||s,l=g_(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach((function(t){t.addEventListener("scroll",r.update,B_)})),a&&l.addEventListener("resize",r.update,B_),function(){i&&c.forEach((function(t){t.removeEventListener("scroll",r.update,B_)})),a&&l.removeEventListener("resize",r.update,B_)}},data:{}};var K_={left:"right",right:"left",bottom:"top",top:"bottom"};function X_(t){return t.replace(/left|right|bottom|top/g,(function(t){return K_[t]}))}var G_={start:"end",end:"start"};function J_(t){return t.replace(/start|end/g,(function(t){return G_[t]}))}function Q_(t){var e=g_(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Y_(t){return T_(D_(t)).left+Q_(t).scrollLeft}function Z_(t){var e=$_(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function tx(t){return["html","body","#document"].indexOf(h_(t))>=0?t.ownerDocument.body:m_(t)&&Z_(t)?t:tx(R_(t))}function ex(t,e){var r;void 0===e&&(e=[]);var o=tx(t),n=o===(null==(r=t.ownerDocument)?void 0:r.body),i=g_(o),s=n?[i].concat(i.visualViewport||[],Z_(o)?o:[]):o,a=e.concat(s);return n?a:a.concat(ex(R_(s)))}function rx(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ox(t,e,r){return e===t_?rx(function(t,e){var r=g_(t),o=D_(t),n=r.visualViewport,i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(n){i=n.width,s=n.height;var c=E_();(c||!c&&"fixed"===e)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:i,height:s,x:a+Y_(t),y:l}}(t,r)):v_(e)?function(t,e){var r=T_(t,!1,"fixed"===e);return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}(e,r):rx(function(t){var e,r=D_(t),o=Q_(t),n=null==(e=t.ownerDocument)?void 0:e.body,i=x_(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=x_(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+Y_(t),l=-o.scrollTop;return"rtl"===$_(n||r).direction&&(a+=x_(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(D_(t)))}function nx(t){var e,r=t.reference,o=t.element,n=t.placement,i=n?__(n):null,s=n?H_(n):null,a=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2;switch(i){case Bw:e={x:a,y:r.y-o.height};break;case Ww:e={x:a,y:r.y+r.height};break;case Kw:e={x:r.x+r.width,y:l};break;case Xw:e={x:r.x-o.width,y:l};break;default:e={x:r.x,y:r.y}}var c=i?P_(i):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case Qw:e[c]=e[c]-(r[d]/2-o[d]/2);break;case Yw:e[c]=e[c]+(r[d]/2-o[d]/2)}}return e}function ix(t,e){void 0===e&&(e={});var r=e,o=r.placement,n=void 0===o?t.placement:o,i=r.strategy,s=void 0===i?t.strategy:i,a=r.boundary,l=void 0===a?Zw:a,c=r.rootBoundary,d=void 0===c?t_:c,u=r.elementContext,p=void 0===u?e_:u,b=r.altBoundary,f=void 0!==b&&b,h=r.padding,g=void 0===h?0:h,v=N_("number"!=typeof g?g:z_(g,Jw)),m=p===e_?r_:e_,y=t.rects.popper,w=t.elements[f?m:p],_=function(t,e,r,o){var n="clippingParents"===e?function(t){var e=ex(R_(t)),r=["absolute","fixed"].indexOf($_(t).position)>=0&&m_(t)?L_(t):t;return v_(r)?e.filter((function(t){return v_(t)&&O_(t,r)&&"body"!==h_(t)})):[]}(t):[].concat(e),i=[].concat(n,[r]),s=i[0],a=i.reduce((function(e,r){var n=ox(t,r,o);return e.top=x_(n.top,e.top),e.right=C_(n.right,e.right),e.bottom=C_(n.bottom,e.bottom),e.left=x_(n.left,e.left),e}),ox(t,s,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(v_(w)?w:w.contextElement||D_(t.elements.popper),l,d,s),x=T_(t.elements.reference),C=nx({reference:x,element:y,strategy:"absolute",placement:n}),k=rx(Object.assign({},y,C)),S=p===e_?k: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=t.modifiersData.offset;if(p===e_&&T){var A=T[n];Object.keys(E).forEach((function(t){var e=[Kw,Ww].indexOf(t)>=0?1:-1,r=[Bw,Ww].indexOf(t)>=0?"y":"x";E[t]+=A[r]*e}))}return E}const sx={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,o=t.name;if(!e.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,d=r.boundary,u=r.rootBoundary,p=r.altBoundary,b=r.flipVariations,f=void 0===b||b,h=r.allowedAutoPlacements,g=e.options.placement,v=__(g),m=l||(v!==g&&f?function(t){if(__(t)===Gw)return[];var e=X_(t);return[J_(t),e,J_(e)]}(g):[X_(g)]),y=[g].concat(m).reduce((function(t,r){return t.concat(__(r)===Gw?function(t,e){void 0===e&&(e={});var r=e,o=r.placement,n=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?n_:l,d=H_(o),u=d?a?o_:o_.filter((function(t){return H_(t)===d})):Jw,p=u.filter((function(t){return c.indexOf(t)>=0}));0===p.length&&(p=u);var b=p.reduce((function(e,r){return e[r]=ix(t,{placement:r,boundary:n,rootBoundary:i,padding:s})[__(r)],e}),{});return Object.keys(b).sort((function(t,e){return b[t]-b[e]}))}(e,{placement:r,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:h}):r)}),[]),w=e.rects.reference,_=e.rects.popper,x=new Map,C=!0,k=y[0],S=0;S<y.length;S++){var E=y[S],T=__(E),A=H_(E)===Qw,O=[Bw,Ww].indexOf(T)>=0,$=O?"width":"height",I=ix(e,{placement:E,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),D=O?A?Kw:Xw:A?Ww:Bw;w[$]>_[$]&&(D=X_(D));var R=X_(D),j=[];if(i&&j.push(I[T]<=0),a&&j.push(I[D]<=0,I[R]<=0),j.every((function(t){return t}))){k=E,C=!1;break}x.set(E,j)}if(C)for(var L=function(t){var e=y.find((function(e){var r=x.get(e);if(r)return r.slice(0,t).every((function(t){return t}))}));if(e)return k=e,"break"},P=f?3:1;P>0&&"break"!==L(P);P--);e.placement!==k&&(e.modifiersData[o]._skip=!0,e.placement=k,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ax(t,e,r){return void 0===r&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function lx(t){return[Bw,Kw,Ww,Xw].some((function(e){return t[e]>=0}))}const cx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,r=t.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,s=ix(e,{elementContext:"reference"}),a=ix(e,{altBoundary:!0}),l=ax(s,o),c=ax(a,n,i),d=lx(l),u=lx(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},dx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,r=t.options,o=t.name,n=r.offset,i=void 0===n?[0,0]:n,s=n_.reduce((function(t,r){return t[r]=function(t,e,r){var o=__(t),n=[Xw,Bw].indexOf(o)>=0?-1:1,i="function"==typeof r?r(Object.assign({},e,{placement:t})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*n,[Xw,Kw].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}(r,e.rects,i),t}),{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=s}},ux={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,r=t.name;e.modifiersData[r]=nx({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},px={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,o=t.name,n=r.mainAxis,i=void 0===n||n,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.padding,p=r.tether,b=void 0===p||p,f=r.tetherOffset,h=void 0===f?0:f,g=ix(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=__(e.placement),m=H_(e.placement),y=!m,w=P_(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,C=e.rects.reference,k=e.rects.popper,S="function"==typeof h?h(Object.assign({},e.rects,{placement:e.placement})):h,E="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(x){if(i){var O,$="y"===w?Bw:Xw,I="y"===w?Ww:Kw,D="y"===w?"height":"width",R=x[w],j=R+g[$],L=R-g[I],P=b?-k[D]/2:0,M=m===Qw?C[D]:k[D],N=m===Qw?-k[D]:-C[D],z=e.elements.arrow,q=b&&z?A_(z):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=H[$],U=H[I],F=M_(0,C[D],q[D]),B=y?C[D]/2-P-F-V-E.mainAxis:M-F-V-E.mainAxis,W=y?-C[D]/2+P+F+U+E.mainAxis:N+F+U+E.mainAxis,K=e.elements.arrow&&L_(e.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=M_(b?C_(j,R+B-G-X):j,R,b?x_(L,J):L);x[w]=Q,A[w]=Q-R}if(a){var Y,Z="x"===w?Bw:Xw,tt="x"===w?Ww:Kw,et=x[_],rt="y"===_?"height":"width",ot=et+g[Z],nt=et-g[tt],it=-1!==[Bw,Xw].indexOf(v),st=null!=(Y=null==T?void 0:T[_])?Y:0,at=it?ot:et-C[rt]-k[rt]-st+E.altAxis,lt=it?et+C[rt]+k[rt]-st-E.altAxis:nt,ct=b&&it?function(t,e,r){var o=M_(t,e,r);return o>r?r:o}(at,et,lt):M_(b?at:ot,et,b?lt:nt);x[_]=ct,A[_]=ct-et}e.modifiersData[o]=A}},requiresIfExists:["offset"]};function bx(t,e,r){void 0===r&&(r=!1);var o,n,i=m_(e),s=m_(e)&&function(t){var e=t.getBoundingClientRect(),r=k_(e.width)/t.offsetWidth||1,o=k_(e.height)/t.offsetHeight||1;return 1!==r||1!==o}(e),a=D_(e),l=T_(t,s,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&(("body"!==h_(e)||Z_(a))&&(c=(o=e)!==g_(o)&&m_(o)?{scrollLeft:(n=o).scrollLeft,scrollTop:n.scrollTop}:Q_(o)),m_(e)?((d=T_(e,!0)).x+=e.clientLeft,d.y+=e.clientTop):a&&(d.x=Y_(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function fx(t){var e=new Map,r=new Set,o=[];function n(t){r.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!r.has(t)){var o=e.get(t);o&&n(o)}})),o.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){r.has(t.name)||n(t)})),o}var hx={placement:"bottom",modifiers:[],strategy:"absolute"};function gx(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function vx(t){void 0===t&&(t={});var e=t,r=e.defaultModifiers,o=void 0===r?[]:r,n=e.defaultOptions,i=void 0===n?hx:n;return function(t,e,r){void 0===r&&(r=i);var n,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},hx,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(r){var n="function"==typeof r?r(a.options):r;u(),a.options=Object.assign({},i,a.options,n),a.scrollParents={reference:v_(t)?ex(t):t.contextElement?ex(t.contextElement):[],popper:ex(e)};var s,c,p=function(t){var e=fx(t);return f_.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}((s=[].concat(o,a.options.modifiers),c=s.reduce((function(t,e){var r=t[e.name];return t[e.name]=r?Object.assign({},r,e,{options:Object.assign({},r.options,e.options),data:Object.assign({},r.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=p.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,r=t.options,o=void 0===r?{}:r,n=t.effect;if("function"==typeof n){var i=n({state:a,name:e,instance:d,options:o});l.push(i||function(){})}})),d.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,r=t.popper;if(gx(e,r)){a.rects={reference:bx(e,L_(r),"fixed"===a.options.strategy),popper:A_(r)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.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,u=n.name;"function"==typeof i&&(a=i({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,o=-1}}},update:(n=function(){return new Promise((function(t){d.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(n())}))}))),s}),destroy:function(){u(),c=!0}};if(!gx(t,e))return d;function u(){l.forEach((function(t){return t()})),l=[]}return d.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),d}}var mx=vx(),yx=vx({defaultModifiers:[W_,ux,F_,w_,dx,sx,px,q_,cx]}),wx=vx({defaultModifiers:[W_,ux,F_,w_]});const _x=new Map,xx={set(t,e,r){_x.has(t)||_x.set(t,new Map);const o=_x.get(t);o.has(e)||0===o.size?o.set(e,r):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`)},get:(t,e)=>_x.has(t)&&_x.get(t).get(e)||null,remove(t,e){if(!_x.has(t))return;const r=_x.get(t);r.delete(e),0===r.size&&_x.delete(t)}},Cx="transitionend",kx=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),Sx=t=>{t.dispatchEvent(new Event(Cx))},Ex=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),Tx=t=>Ex(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(kx(t)):null,Ax=t=>{if(!Ex(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),r=t.closest("details:not([open])");if(!r)return e;if(r!==t){const e=t.closest("summary");if(e&&e.parentNode!==r)return!1;if(null===e)return!1}return e},Ox=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),$x=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?$x(t.parentNode):null},Ix=()=>{},Dx=t=>{t.offsetHeight},Rx=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,jx=[],Lx=()=>"rtl"===document.documentElement.dir,Px=t=>{var e;e=()=>{const e=Rx();if(e){const r=t.NAME,o=e.fn[r];e.fn[r]=t.jQueryInterface,e.fn[r].Constructor=t,e.fn[r].noConflict=()=>(e.fn[r]=o,t.jQueryInterface)}},"loading"===document.readyState?(jx.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of jx)t()})),jx.push(e)):e()},Mx=(t,e=[],r=t)=>"function"==typeof t?t(...e):r,Nx=(t,e,r=!0)=>{if(!r)return void Mx(t);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:r}=window.getComputedStyle(t);const o=Number.parseFloat(e),n=Number.parseFloat(r);return o||n?(e=e.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(r))):0})(e)+5;let n=!1;const i=({target:r})=>{r===e&&(n=!0,e.removeEventListener(Cx,i),Mx(t))};e.addEventListener(Cx,i),setTimeout((()=>{n||Sx(e)}),o)},zx=(t,e,r,o)=>{const n=t.length;let i=t.indexOf(e);return-1===i?!r&&o?t[n-1]:t[0]:(i+=r?1:-1,o&&(i=(i+n)%n),t[Math.max(0,Math.min(i,n-1))])},qx=/[^.]*(?=\..*)\.|.*/,Hx=/\..*/,Vx=/::\d+$/,Ux={};let Fx=1;const Bx={mouseenter:"mouseover",mouseleave:"mouseout"},Wx=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 Kx(t,e){return e&&`${e}::${Fx++}`||t.uidEvent||Fx++}function Xx(t){const e=Kx(t);return t.uidEvent=e,Ux[e]=Ux[e]||{},Ux[e]}function Gx(t,e,r=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===r))}function Jx(t,e,r){const o="string"==typeof e,n=o?r:e||r;let i=tC(t);return Wx.has(i)||(i=t),[o,n,i]}function Qx(t,e,r,o,n){if("string"!=typeof e||!t)return;let[i,s,a]=Jx(e,r,o);if(e in Bx){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};s=t(s)}const l=Xx(t),c=l[a]||(l[a]={}),d=Gx(c,s,i?r:null);if(d)return void(d.oneOff=d.oneOff&&n);const u=Kx(s,e.replace(qx,"")),p=i?function(t,e,r){return function o(n){const i=t.querySelectorAll(e);for(let{target:s}=n;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return rC(n,{delegateTarget:s}),o.oneOff&&eC.off(t,n.type,e,r),r.apply(s,[n])}}(t,r,s):function(t,e){return function r(o){return rC(o,{delegateTarget:t}),r.oneOff&&eC.off(t,o.type,e),e.apply(t,[o])}}(t,s);p.delegationSelector=i?r:null,p.callable=s,p.oneOff=n,p.uidEvent=u,c[u]=p,t.addEventListener(a,p,i)}function Yx(t,e,r,o,n){const i=Gx(e[r],o,n);i&&(t.removeEventListener(r,i,Boolean(n)),delete e[r][i.uidEvent])}function Zx(t,e,r,o){const n=e[r]||{};for(const[i,s]of Object.entries(n))i.includes(o)&&Yx(t,e,r,s.callable,s.delegationSelector)}function tC(t){return t=t.replace(Hx,""),Bx[t]||t}const eC={on(t,e,r,o){Qx(t,e,r,o,!1)},one(t,e,r,o){Qx(t,e,r,o,!0)},off(t,e,r,o){if("string"!=typeof e||!t)return;const[n,i,s]=Jx(e,r,o),a=s!==e,l=Xx(t),c=l[s]||{},d=e.startsWith(".");if(void 0===i){if(d)for(const r of Object.keys(l))Zx(t,l,r,e.slice(1));for(const[r,o]of Object.entries(c)){const n=r.replace(Vx,"");a&&!e.includes(n)||Yx(t,l,s,o.callable,o.delegationSelector)}}else{if(!Object.keys(c).length)return;Yx(t,l,s,i,n?r:null)}},trigger(t,e,r){if("string"!=typeof e||!t)return null;const o=Rx();let n=null,i=!0,s=!0,a=!1;e!==tC(e)&&o&&(n=o.Event(e,r),o(t).trigger(n),i=!n.isPropagationStopped(),s=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=rC(new Event(e,{bubbles:i,cancelable:!0}),r);return a&&l.preventDefault(),s&&t.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function rC(t,e={}){for(const[r,o]of Object.entries(e))try{t[r]=o}catch(e){Object.defineProperty(t,r,{configurable:!0,get:()=>o})}return t}function oC(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function nC(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const iC={setDataAttribute(t,e,r){t.setAttribute(`data-bs-${nC(e)}`,r)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${nC(e)}`)},getDataAttributes(t){if(!t)return{};const e={},r=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const o of r){let r=o.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),e[r]=oC(t.dataset[o])}return e},getDataAttribute:(t,e)=>oC(t.getAttribute(`data-bs-${nC(e)}`))};class sC{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(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const r=Ex(e)?iC.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof r?r:{},...Ex(e)?iC.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[o,n]of Object.entries(e)){const e=t[o],i=Ex(e)?"element":null==(r=e)?`${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 aC extends sC{constructor(t,e){super(),(t=Tx(t))&&(this._element=t,this._config=this._getConfig(e),xx.set(this._element,this.constructor.DATA_KEY,this))}dispose(){xx.remove(this._element,this.constructor.DATA_KEY),eC.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,r=!0){Nx(t,e,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return xx.get(Tx(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e: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(t){return`${t}${this.EVENT_KEY}`}}const lC=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let r=t.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),e=r&&"#"!==r?r.trim():null}return e?e.split(",").map((t=>kx(t))).join(","):null},cC={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const r=[];let o=t.parentNode.closest(e);for(;o;)r.push(o),o=o.parentNode.closest(e);return r},prev(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return[r];r=r.previousElementSibling}return[]},next(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return[r];r=r.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!Ox(t)&&Ax(t)))},getSelectorFromElement(t){const e=lC(t);return e&&cC.findOne(e)?e:null},getElementFromSelector(t){const e=lC(t);return e?cC.findOne(e):null},getMultipleElementsFromSelector(t){const e=lC(t);return e?cC.find(e):[]}},dC=(t,e="hide")=>{const r=`click.dismiss${t.EVENT_KEY}`,o=t.NAME;eC.on(document,r,`[data-bs-dismiss="${o}"]`,(function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),Ox(this))return;const n=cC.getElementFromSelector(this)||this.closest(`.${o}`);t.getOrCreateInstance(n)[e]()}))},uC=".bs.alert",pC=`close${uC}`,bC=`closed${uC}`;class fC extends aC{static get NAME(){return"alert"}close(){if(eC.trigger(this._element,pC).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),eC.trigger(this._element,bC),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=fC.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}dC(fC,"close"),Px(fC);const hC='[data-bs-toggle="button"]';class gC extends aC{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=gC.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}eC.on(document,"click.bs.button.data-api",hC,(t=>{t.preventDefault();const e=t.target.closest(hC);gC.getOrCreateInstance(e).toggle()})),Px(gC);const vC=".bs.swipe",mC=`touchstart${vC}`,yC=`touchmove${vC}`,wC=`touchend${vC}`,_C=`pointerdown${vC}`,xC=`pointerup${vC}`,CC={endCallback:null,leftCallback:null,rightCallback:null},kC={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class SC extends sC{constructor(t,e){super(),this._element=t,t&&SC.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return CC}static get DefaultType(){return kC}static get NAME(){return"swipe"}dispose(){eC.off(this._element,vC)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Mx(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&Mx(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(eC.on(this._element,_C,(t=>this._start(t))),eC.on(this._element,xC,(t=>this._end(t))),this._element.classList.add("pointer-event")):(eC.on(this._element,mC,(t=>this._start(t))),eC.on(this._element,yC,(t=>this._move(t))),eC.on(this._element,wC,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const EC=".bs.carousel",TC=".data-api",AC="ArrowLeft",OC="ArrowRight",$C="next",IC="prev",DC="left",RC="right",jC=`slide${EC}`,LC=`slid${EC}`,PC=`keydown${EC}`,MC=`mouseenter${EC}`,NC=`mouseleave${EC}`,zC=`dragstart${EC}`,qC=`load${EC}${TC}`,HC=`click${EC}${TC}`,VC="carousel",UC="active",FC=".active",BC=".carousel-item",WC=FC+BC,KC={[AC]:RC,[OC]:DC},XC={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},GC={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class JC extends aC{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=cC.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===VC&&this.cycle()}static get Default(){return XC}static get DefaultType(){return GC}static get NAME(){return"carousel"}next(){this._slide($C)}nextWhenVisible(){!document.hidden&&Ax(this._element)&&this.next()}prev(){this._slide(IC)}pause(){this._isSliding&&Sx(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?eC.one(this._element,LC,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void eC.one(this._element,LC,(()=>this.to(t)));const r=this._getItemIndex(this._getActive());if(r===t)return;const o=t>r?$C:IC;this._slide(o,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&eC.on(this._element,PC,(t=>this._keydown(t))),"hover"===this._config.pause&&(eC.on(this._element,MC,(()=>this.pause())),eC.on(this._element,NC,(()=>this._maybeEnableCycle()))),this._config.touch&&SC.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of cC.find(".carousel-item img",this._element))eC.on(t,zC,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(DC)),rightCallback:()=>this._slide(this._directionToOrder(RC)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new SC(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=KC[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=cC.findOne(FC,this._indicatorsElement);e.classList.remove(UC),e.removeAttribute("aria-current");const r=cC.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(UC),r.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const r=this._getActive(),o=t===$C,n=e||zx(this._getItems(),r,o,this._config.wrap);if(n===r)return;const i=this._getItemIndex(n),s=e=>eC.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:i});if(s(jC).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),Dx(n),r.classList.add(l),n.classList.add(l),this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(UC),r.classList.remove(UC,c,l),this._isSliding=!1,s(LC)}),r,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return cC.findOne(WC,this._element)}_getItems(){return cC.find(BC,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Lx()?t===DC?IC:$C:t===DC?$C:IC}_orderToDirection(t){return Lx()?t===IC?DC:RC:t===IC?RC:DC}static jQueryInterface(t){return this.each((function(){const e=JC.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}eC.on(document,HC,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=cC.getElementFromSelector(this);if(!e||!e.classList.contains(VC))return;t.preventDefault();const r=JC.getOrCreateInstance(e),o=this.getAttribute("data-bs-slide-to");return o?(r.to(o),void r._maybeEnableCycle()):"next"===iC.getDataAttribute(this,"slide")?(r.next(),void r._maybeEnableCycle()):(r.prev(),void r._maybeEnableCycle())})),eC.on(window,qC,(()=>{const t=cC.find('[data-bs-ride="carousel"]');for(const e of t)JC.getOrCreateInstance(e)})),Px(JC);const QC=".bs.collapse",YC=`show${QC}`,ZC=`shown${QC}`,tk=`hide${QC}`,ek=`hidden${QC}`,rk=`click${QC}.data-api`,ok="show",nk="collapse",ik="collapsing",sk=`:scope .${nk} .${nk}`,ak='[data-bs-toggle="collapse"]',lk={parent:null,toggle:!0},ck={parent:"(null|element)",toggle:"boolean"};class dk extends aC{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const r=cC.find(ak);for(const t of r){const e=cC.getSelectorFromElement(t),r=cC.find(e).filter((t=>t===this._element));null!==e&&r.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return lk}static get DefaultType(){return ck}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>dk.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(eC.trigger(this._element,YC).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(nk),this._element.classList.add(ik),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ik),this._element.classList.add(nk,ok),this._element.style[e]="",eC.trigger(this._element,ZC)}),this._element,!0),this._element.style[e]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(eC.trigger(this._element,tk).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Dx(this._element),this._element.classList.add(ik),this._element.classList.remove(nk,ok);for(const t of this._triggerArray){const e=cC.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ik),this._element.classList.add(nk),eC.trigger(this._element,ek)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(ok)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=Tx(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(ak);for(const e of t){const t=cC.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=cC.find(sk,this._config.parent);return cC.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const r of t)r.classList.toggle("collapsed",!e),r.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const r=dk.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t]()}}))}}eC.on(document,rk,ak,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of cC.getMultipleElementsFromSelector(this))dk.getOrCreateInstance(t,{toggle:!1}).toggle()})),Px(dk);const uk="dropdown",pk=".bs.dropdown",bk=".data-api",fk="ArrowUp",hk="ArrowDown",gk=`hide${pk}`,vk=`hidden${pk}`,mk=`show${pk}`,yk=`shown${pk}`,wk=`click${pk}${bk}`,_k=`keydown${pk}${bk}`,xk=`keyup${pk}${bk}`,Ck="show",kk='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Sk=`${kk}.${Ck}`,Ek=".dropdown-menu",Tk=Lx()?"top-end":"top-start",Ak=Lx()?"top-start":"top-end",Ok=Lx()?"bottom-end":"bottom-start",$k=Lx()?"bottom-start":"bottom-end",Ik=Lx()?"left-start":"right-start",Dk=Lx()?"right-start":"left-start",Rk={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},jk={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Lk extends aC{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=cC.next(this._element,Ek)[0]||cC.prev(this._element,Ek)[0]||cC.findOne(Ek,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Rk}static get DefaultType(){return jk}static get NAME(){return uk}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ox(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!eC.trigger(this._element,mk,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))eC.on(t,"mouseover",Ix);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ck),this._element.classList.add(Ck),eC.trigger(this._element,yk,t)}}hide(){if(Ox(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!eC.trigger(this._element,gk,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))eC.off(t,"mouseover",Ix);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ck),this._element.classList.remove(Ck),this._element.setAttribute("aria-expanded","false"),iC.removeDataAttribute(this._menu,"popper"),eC.trigger(this._element,vk,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Ex(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${uk.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:Ex(this._config.reference)?t=Tx(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const r=this._getPopperConfig();this._popper=yx(t,this._menu,r)}_isShown(){return this._menu.classList.contains(Ck)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Ik;if(t.classList.contains("dropstart"))return Dk;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Ak:Tk:e?$k:Ok}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(iC.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Mx(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const r=cC.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>Ax(t)));r.length&&zx(r,e,t===hk,!r.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Lk.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=cC.find(Sk);for(const r of e){const e=Lk.getInstance(r);if(!e||!1===e._config.autoClose)continue;const o=t.composedPath(),n=o.includes(e._menu);if(o.includes(e._element)||"inside"===e._config.autoClose&&!n||"outside"===e._config.autoClose&&n)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const i={relatedTarget:e._element};"click"===t.type&&(i.clickEvent=t),e._completeHide(i)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),r="Escape"===t.key,o=[fk,hk].includes(t.key);if(!o&&!r)return;if(e&&!r)return;t.preventDefault();const n=this.matches(kk)?this:cC.prev(this,kk)[0]||cC.next(this,kk)[0]||cC.findOne(kk,t.delegateTarget.parentNode),i=Lk.getOrCreateInstance(n);if(o)return t.stopPropagation(),i.show(),void i._selectMenuItem(t);i._isShown()&&(t.stopPropagation(),i.hide(),n.focus())}}eC.on(document,_k,kk,Lk.dataApiKeydownHandler),eC.on(document,_k,Ek,Lk.dataApiKeydownHandler),eC.on(document,wk,Lk.clearMenus),eC.on(document,xk,Lk.clearMenus),eC.on(document,wk,kk,(function(t){t.preventDefault(),Lk.getOrCreateInstance(this).toggle()})),Px(Lk);const Pk="backdrop",Mk="show",Nk=`mousedown.bs.${Pk}`,zk={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},qk={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Hk extends sC{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return zk}static get DefaultType(){return qk}static get NAME(){return Pk}show(t){if(!this._config.isVisible)return void Mx(t);this._append();const e=this._getElement();this._config.isAnimated&&Dx(e),e.classList.add(Mk),this._emulateAnimation((()=>{Mx(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Mk),this._emulateAnimation((()=>{this.dispose(),Mx(t)}))):Mx(t)}dispose(){this._isAppended&&(eC.off(this._element,Nk),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Tx(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),eC.on(t,Nk,(()=>{Mx(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){Nx(t,this._getElement(),this._config.isAnimated)}}const Vk=".bs.focustrap",Uk=`focusin${Vk}`,Fk=`keydown.tab${Vk}`,Bk="backward",Wk={autofocus:!0,trapElement:null},Kk={autofocus:"boolean",trapElement:"element"};class Xk extends sC{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Wk}static get DefaultType(){return Kk}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),eC.off(document,Vk),eC.on(document,Uk,(t=>this._handleFocusin(t))),eC.on(document,Fk,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,eC.off(document,Vk))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const r=cC.focusableChildren(e);0===r.length?e.focus():this._lastTabNavDirection===Bk?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Bk:"forward")}}const Gk=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Jk=".sticky-top",Qk="padding-right",Yk="margin-right";class Zk{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Qk,(e=>e+t)),this._setElementAttributes(Gk,Qk,(e=>e+t)),this._setElementAttributes(Jk,Yk,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Qk),this._resetElementAttributes(Gk,Qk),this._resetElementAttributes(Jk,Yk)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,r){const o=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+o)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${r(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(t,e){const r=t.style.getPropertyValue(e);r&&iC.setDataAttribute(t,e,r)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const r=iC.getDataAttribute(t,e);null!==r?(iC.removeDataAttribute(t,e),t.style.setProperty(e,r)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(Ex(t))e(t);else for(const r of cC.find(t,this._element))e(r)}}const tS=".bs.modal",eS=`hide${tS}`,rS=`hidePrevented${tS}`,oS=`hidden${tS}`,nS=`show${tS}`,iS=`shown${tS}`,sS=`resize${tS}`,aS=`click.dismiss${tS}`,lS=`mousedown.dismiss${tS}`,cS=`keydown.dismiss${tS}`,dS=`click${tS}.data-api`,uS="modal-open",pS="show",bS="modal-static",fS={backdrop:!0,focus:!0,keyboard:!0},hS={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class gS extends aC{constructor(t,e){super(t,e),this._dialog=cC.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Zk,this._addEventListeners()}static get Default(){return fS}static get DefaultType(){return hS}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||eC.trigger(this._element,nS,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(uS),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(eC.trigger(this._element,eS).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(pS),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){eC.off(window,tS),eC.off(this._dialog,tS),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Hk({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Xk({trapElement:this._element})}_showElement(t){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 e=cC.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),Dx(this._element),this._element.classList.add(pS),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,eC.trigger(this._element,iS,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){eC.on(this._element,cS,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),eC.on(window,sS,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),eC.on(this._element,lS,(t=>{eC.one(this._element,aS,(e=>{this._element===t.target&&this._element===e.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(uS),this._resetAdjustments(),this._scrollBar.reset(),eC.trigger(this._element,oS)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(eC.trigger(this._element,rS).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(bS)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(bS),this._queueCallback((()=>{this._element.classList.remove(bS),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),r=e>0;if(r&&!t){const t=Lx()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!r&&t){const t=Lx()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const r=gS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===r[t])throw new TypeError(`No method named "${t}"`);r[t](e)}}))}}eC.on(document,dS,'[data-bs-toggle="modal"]',(function(t){const e=cC.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),eC.one(e,nS,(t=>{t.defaultPrevented||eC.one(e,oS,(()=>{Ax(this)&&this.focus()}))}));const r=cC.findOne(".modal.show");r&&gS.getInstance(r).hide(),gS.getOrCreateInstance(e).toggle(this)})),dC(gS),Px(gS);const vS=".bs.offcanvas",mS=".data-api",yS=`load${vS}${mS}`,wS="show",_S="showing",xS="hiding",CS=".offcanvas.show",kS=`show${vS}`,SS=`shown${vS}`,ES=`hide${vS}`,TS=`hidePrevented${vS}`,AS=`hidden${vS}`,OS=`resize${vS}`,$S=`click${vS}${mS}`,IS=`keydown.dismiss${vS}`,DS={backdrop:!0,keyboard:!0,scroll:!1},RS={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class jS extends aC{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return DS}static get DefaultType(){return RS}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||eC.trigger(this._element,kS,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Zk).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(_S),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(wS),this._element.classList.remove(_S),eC.trigger(this._element,SS,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(eC.trigger(this._element,ES).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(xS),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(wS,xS),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Zk).reset(),eC.trigger(this._element,AS)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Hk({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():eC.trigger(this._element,TS)}:null})}_initializeFocusTrap(){return new Xk({trapElement:this._element})}_addEventListeners(){eC.on(this._element,IS,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():eC.trigger(this._element,TS))}))}static jQueryInterface(t){return this.each((function(){const e=jS.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}eC.on(document,$S,'[data-bs-toggle="offcanvas"]',(function(t){const e=cC.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ox(this))return;eC.one(e,AS,(()=>{Ax(this)&&this.focus()}));const r=cC.findOne(CS);r&&r!==e&&jS.getInstance(r).hide(),jS.getOrCreateInstance(e).toggle(this)})),eC.on(window,yS,(()=>{for(const t of cC.find(CS))jS.getOrCreateInstance(t).show()})),eC.on(window,OS,(()=>{for(const t of cC.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&jS.getOrCreateInstance(t).hide()})),dC(jS),Px(jS);const LS={"*":["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:[]},PS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),MS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,NS=(t,e)=>{const r=t.nodeName.toLowerCase();return e.includes(r)?!PS.has(r)||Boolean(MS.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(r)))},zS={allowList:LS,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},qS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},HS={entry:"(string|element|function|null)",selector:"(string|element)"};class VS extends sC{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return zS}static get DefaultType(){return qS}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,r]of Object.entries(this._config.content))this._setContent(t,r,e);const e=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&e.classList.add(...r.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,r]of Object.entries(t))super._typeCheckConfig({selector:e,entry:r},HS)}_setContent(t,e,r){const o=cC.findOne(r,t);o&&((e=this._resolvePossibleFunction(e))?Ex(e)?this._putElementInTemplate(Tx(e),o):this._config.html?o.innerHTML=this._maybeSanitize(e):o.textContent=e:o.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,r){if(!t.length)return t;if(r&&"function"==typeof r)return r(t);const o=(new window.DOMParser).parseFromString(t,"text/html"),n=[].concat(...o.body.querySelectorAll("*"));for(const t of n){const r=t.nodeName.toLowerCase();if(!Object.keys(e).includes(r)){t.remove();continue}const o=[].concat(...t.attributes),n=[].concat(e["*"]||[],e[r]||[]);for(const e of o)NS(e,n)||t.removeAttribute(e.nodeName)}return o.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Mx(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const US=new Set(["sanitize","allowList","sanitizeFn"]),FS="fade",BS="show",WS=".tooltip-inner",KS=".modal",XS="hide.bs.modal",GS="hover",JS="focus",QS={AUTO:"auto",TOP:"top",RIGHT:Lx()?"left":"right",BOTTOM:"bottom",LEFT:Lx()?"right":"left"},YS={allowList:LS,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"},ZS={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 tE extends aC{constructor(t,r){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,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 YS}static get DefaultType(){return ZS}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),eC.off(this._element.closest(KS),XS,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 t=eC.trigger(this._element,this.constructor.eventName("show")),e=($x(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)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),eC.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(r),r.classList.add(BS),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))eC.on(t,"mouseover",Ix);this._queueCallback((()=>{eC.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!eC.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(BS),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))eC.off(t,"mouseover",Ix);this._activeTrigger.click=!1,this._activeTrigger[JS]=!1,this._activeTrigger[GS]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),eC.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(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(FS,BS),e.classList.add(`bs-${this.constructor.NAME}-auto`);const r=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",r),this._isAnimated()&&e.classList.add(FS),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new VS({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[WS]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(FS)}_isShown(){return this.tip&&this.tip.classList.contains(BS)}_createPopper(t){const e=Mx(this._config.placement,[this,t,this._element]),r=QS[e.toUpperCase()];return yx(this._element,t,this._getPopperConfig(r))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Mx(t,[this._element])}_getPopperConfig(t){const e={placement:t,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:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...Mx(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)eC.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===GS?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),r=e===GS?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");eC.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?JS:GS]=!0,e._enter()})),eC.on(this._element,r,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?JS:GS]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},eC.on(this._element.closest(KS),XS,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),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(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=iC.getDataAttributes(this._element);for(const t of Object.keys(e))US.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:Tx(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,r]of Object.entries(this._config))this.constructor.Default[e]!==r&&(t[e]=r);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=tE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Px(tE);const eE=".popover-header",rE=".popover-body",oE={...tE.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"},nE={...tE.DefaultType,content:"(null|string|element|function)"};class iE extends tE{static get Default(){return oE}static get DefaultType(){return nE}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[eE]:this._getTitle(),[rE]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=iE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Px(iE);const sE=".bs.scrollspy",aE=`activate${sE}`,lE=`click${sE}`,cE=`load${sE}.data-api`,dE="active",uE="[href]",pE=".nav-link",bE=`${pE}, .nav-item > ${pE}, .list-group-item`,fE={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},hE={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class gE extends aC{constructor(t,e){super(t,e),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 fE}static get DefaultType(){return hE}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Tx(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(eC.off(this._config.target,lE),eC.on(this._config.target,lE,uE,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const r=this._rootElement||window,o=e.offsetTop-this._element.offsetTop;if(r.scrollTo)return void r.scrollTo({top:o,behavior:"smooth"});r.scrollTop=o}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),r=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},o=(this._rootElement||document.documentElement).scrollTop,n=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const i of t){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(i));continue}const t=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&t){if(r(i),!o)return}else n||t||r(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=cC.find(uE,this._config.target);for(const e of t){if(!e.hash||Ox(e))continue;const t=cC.findOne(decodeURI(e.hash),this._element);Ax(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(dE),this._activateParents(t),eC.trigger(this._element,aE,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))cC.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(dE);else for(const e of cC.parents(t,".nav, .list-group"))for(const t of cC.prev(e,bE))t.classList.add(dE)}_clearActiveClass(t){t.classList.remove(dE);const e=cC.find(`${uE}.${dE}`,t);for(const t of e)t.classList.remove(dE)}static jQueryInterface(t){return this.each((function(){const e=gE.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}eC.on(window,cE,(()=>{for(const t of cC.find('[data-bs-spy="scroll"]'))gE.getOrCreateInstance(t)})),Px(gE);const vE=".bs.tab",mE=`hide${vE}`,yE=`hidden${vE}`,wE=`show${vE}`,_E=`shown${vE}`,xE=`click${vE}`,CE=`keydown${vE}`,kE=`load${vE}`,SE="ArrowLeft",EE="ArrowRight",TE="ArrowUp",AE="ArrowDown",OE="Home",$E="End",IE="active",DE="fade",RE="show",jE=".dropdown-toggle",LE=`:not(${jE})`,PE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ME=`.nav-link${LE}, .list-group-item${LE}, [role="tab"]${LE}, ${PE}`,NE=`.${IE}[data-bs-toggle="tab"], .${IE}[data-bs-toggle="pill"], .${IE}[data-bs-toggle="list"]`;class zE extends aC{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),eC.on(this._element,CE,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),r=e?eC.trigger(e,mE,{relatedTarget:t}):null;eC.trigger(t,wE,{relatedTarget:e}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(IE),this._activate(cC.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),eC.trigger(t,_E,{relatedTarget:e})):t.classList.add(RE)}),t,t.classList.contains(DE)))}_deactivate(t,e){t&&(t.classList.remove(IE),t.blur(),this._deactivate(cC.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),eC.trigger(t,yE,{relatedTarget:e})):t.classList.remove(RE)}),t,t.classList.contains(DE)))}_keydown(t){if(![SE,EE,TE,AE,OE,$E].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!Ox(t)));let r;if([OE,$E].includes(t.key))r=e[t.key===OE?0:e.length-1];else{const o=[EE,AE].includes(t.key);r=zx(e,t.target,o,!0)}r&&(r.focus({preventScroll:!0}),zE.getOrCreateInstance(r).show())}_getChildren(){return cC.find(ME,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",e),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=cC.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const r=this._getOuterElement(t);if(!r.classList.contains("dropdown"))return;const o=(t,o)=>{const n=cC.findOne(t,r);n&&n.classList.toggle(o,e)};o(jE,IE),o(".dropdown-menu",RE),r.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,r){t.hasAttribute(e)||t.setAttribute(e,r)}_elemIsActive(t){return t.classList.contains(IE)}_getInnerElement(t){return t.matches(ME)?t:cC.findOne(ME,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=zE.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}eC.on(document,xE,PE,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ox(this)||zE.getOrCreateInstance(this).show()})),eC.on(window,kE,(()=>{for(const t of cC.find(NE))zE.getOrCreateInstance(t)})),Px(zE);const qE=".bs.toast",HE=`mouseover${qE}`,VE=`mouseout${qE}`,UE=`focusin${qE}`,FE=`focusout${qE}`,BE=`hide${qE}`,WE=`hidden${qE}`,KE=`show${qE}`,XE=`shown${qE}`,GE="hide",JE="show",QE="showing",YE={animation:"boolean",autohide:"boolean",delay:"number"},ZE={animation:!0,autohide:!0,delay:5e3};class tT extends aC{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ZE}static get DefaultType(){return YE}static get NAME(){return"toast"}show(){eC.trigger(this._element,KE).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(GE),Dx(this._element),this._element.classList.add(JE,QE),this._queueCallback((()=>{this._element.classList.remove(QE),eC.trigger(this._element,XE),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(eC.trigger(this._element,BE).defaultPrevented||(this._element.classList.add(QE),this._queueCallback((()=>{this._element.classList.add(GE),this._element.classList.remove(QE,JE),eC.trigger(this._element,WE)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(JE),super.dispose()}isShown(){return this._element.classList.contains(JE)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){eC.on(this._element,HE,(t=>this._onInteraction(t,!0))),eC.on(this._element,VE,(t=>this._onInteraction(t,!1))),eC.on(this._element,UE,(t=>this._onInteraction(t,!0))),eC.on(this._element,FE,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=tT.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}dC(tT),Px(tT);var eT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},rT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let oT=class extends Sw{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(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("aria-expanded")&&"true"==t.getAttribute("aria-expanded")&&t.click()})):this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} .${this.ulSubMenuClass}`).forEach((function(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("style")&&t.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(t){if(super.updated(t),null!=t.get("jsonData")){this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass}`).forEach((t=>{t.addEventListener("click",(function(t){t.stopPropagation()}))}));const t=this.ulSubMenuClass;this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} a`).forEach((function(e){e.addEventListener("click",(e=>{if(null!=e.currentTarget&&e.currentTarget instanceof HTMLElement&&window.innerWidth<992){const r=e.currentTarget.nextElementSibling;null!=r&&r instanceof HTMLElement&&r.classList.contains(t)&&(e.preventDefault(),r.style.display="block"==r.style.display?"none":"block")}}))})),this.renderRoot.querySelectorAll(`[data-bs-toggle="${this.popoverToggle}"]`).forEach((function(t){new iE(t)}))}}renderImage(t){return null!=t?At`<img src="${t}"/><span/>`:At``}renderMenu(t,e,r){let o=At``;const n=null!=t&&null!=t.Menu?t.Menu:t;return null!=n&&(n.forEach?n.forEach((t=>{o=null!=t.Menu?At`${o}${this.renderMenuDropdown(t,r)}`:"Divider"==t.Type?At`${o}${this.renderMenuDivider()}`:e?At`${o}${this.renderMenuDropdownLink(t.URL,t.Text,t.Icon)}`:At`${o}${this.renderMenuLink(t)}`})):o=null!=n.Menu?At`${o}${this.renderMenuDropdown(n,r)}`:"Divider"==n.Type?At`${o}${this.renderMenuDivider()}`:e?At`${o}${this.renderMenuDropdownLink(n.URL,n.Text,n.Icon)}`:At`${o}${this.renderMenuLink(n)}`),At`${o}`}renderMenuDivider(){return At`<li><hr/></li>`}renderMenuDropdown(t,e){const r=null!=t.Icon&&""!=t.Icon?At`<i class="${t.Icon} ${this.iconClass}" />`:"";return e?At`<li>
240
232
  <a class="${this.liAMenuClass}" href="${t.URL}">
241
233
  ${r}<span>${t.Text}</span>
242
234
  <span class="${this.spanMenuClass}">${this.spanMenuValue}</span>
@@ -259,23 +251,23 @@
259
251
  <a title="${r}" data-bs-trigger="${a}" data-bs-placement="${s}" data-bs-container="${i}" data-bs-content="${o}" data-bs-toggle="${n}" data-bs-html="${l}" href="${t.URL}">
260
252
  ${e}${t.Text}
261
253
  </a>
262
- </li>`}render(){return this.jsonData.MainMenu?At`
254
+ </li>`}render(){return this.jsonData&&this.jsonData.Root&&this.jsonData.Root.MainMenu?At`
263
255
  <nav class="${this.navClass}">
264
256
  <div>
265
257
  <a href="#">
266
- ${this.renderImage(this.jsonData.MainMenu.Image)}
267
- ${this.jsonData.MainMenu.Label}
258
+ ${this.renderImage(this.jsonData.Root.MainMenu.Image)}
259
+ ${this.jsonData.Root.MainMenu.Label}
268
260
  </a>
269
261
  <button type="${this.buttonType}" data-bs-toggle="${this.collapseToggle}" data-bs-target="#${this.dropdownId}" aria-expanded="${this.ariaExpanded}" aria-label="${this.ariaLabel}">
270
262
  <span/>
271
263
  </button>
272
264
  <div id="${this.dropdownId}">
273
265
  <ul>
274
- ${this.renderMenu(this.jsonData.MainMenu,!1,!1)}
266
+ ${this.renderMenu(this.jsonData.Root.MainMenu,!1,!1)}
275
267
  </ul>
276
268
  </div>
277
269
  </div>
278
- </nav>`:At``}};eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"ariaExpanded",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"ariaLabel",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"buttonType",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"collapseToggle",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"dblClickClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"dropdownId",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"dropdownToggle",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"iconClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"liLinkToggleClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"liLinkClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"liAMenuClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"navClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"popoverContainer",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"popoverHtml",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"popoverPlacement",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"popoverToggle",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"popoverTrigger",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"spanMenuClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"spanMenuValue",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"ulMainMenuToggleClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"ulSubMenuClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"ulSubMenuToggleClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"apiEndpoint",void 0),eT([Jt({type:Boolean}),rT("design:type",Object)],oT.prototype,"renderInHost",void 0),oT=eT([Kt("qbo-mainmenu")],oT);class nT extends HTMLElement{get src(){return this.getAttribute("src")}set src(t){this.reflect("src",t)}get manualRender(){return this.hasAttribute("manual-render")}set manualRender(t){this.reflect("manual-render",t)}reflect(t,e){!1===e?this.removeAttribute(t):this.setAttribute(t,!0===e?"":e)}static get observedAttributes(){return["src"]}attributeChangedCallback(t,e,r){"src"===t&&this.connected&&!this.manualRender&&r!==e&&this.render()}constructor(t){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;}",...t,...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((t=>{this.observer.observe(t.content||t,{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 t=this.connected||new Promise((t=>{this.addEventListener("zero-md-connected",(function e(){this.removeEventListener("zero-md-connected",e),t()}))}));return Promise.all([this.constructor.ready,t])}fire(t,e={},r={bubbles:!0,composed:!0}){e.msg&&console.warn(e.msg),this.dispatchEvent(new CustomEvent(t,{detail:{node:this,...e},...r}))}tick(){return new Promise((t=>requestAnimationFrame(t)))}arrify(t){return t?Array.isArray(t)?t:[t]:[]}onload(t){return new Promise(((e,r)=>{t.onload=e,t.onerror=t=>r(t.path?t.path[0]:t.composedPath()[0])}))}loadScript(t){return Promise.all(this.arrify(t).map((t=>{const[e,...r]=this.arrify(t),o=document.createElement("script");return o.src=e,o.async=!1,r.forEach((t=>o.setAttribute(t,""))),this.onload(document.head.appendChild(o))})))}goto(t){let e;try{e=this.root.querySelector(t)}catch{}e&&e.scrollIntoView()}clicked(t){if(t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented)return;const e=t.target.closest("a");e&&e.hash&&e.host===location.host&&e.pathname===location.pathname&&this.goto(e.hash)}dedent(t){const e=(t=t.replace(/^\n/,"")).match(/^\s+/);return e?t.replace(new RegExp(`^${e[0]}`,"gm"),""):t}getBaseUrl(t){const e=document.createElement("a");return e.href=t,e.href.substring(0,e.href.lastIndexOf("/")+1)}highlight(t){return new Promise((e=>{t.querySelectorAll('pre>code:not([class*="language-"])').forEach((t=>{const e=t.innerText.match(/^\s*</)?"markup":t.innerText.match(/^\s*(\$|#)/)?"bash":"js";t.classList.add(`language-${e}`)}));try{window.Prism.highlightAllUnder(t,!0,e())}catch{window.Prism.highlightAllUnder(t),e()}}))}makeNodes(t){const e=document.createElement("template");return e.innerHTML=t,e.content.children}buildStyles(){const t=t=>{const e=this.querySelector(t);return e?e.innerHTML||" ":""},e=this.arrify(this.config.cssUrls),r=`<style>${this.config.hostCss}</style>${t('template[data-merge="prepend"]')}${t("template:not([data-merge])")||e.reduce(((t,e)=>`${t}<link rel="stylesheet" href="${e}">`),"")}${t('template[data-merge="append"]')}`;return r}async buildMd(t={}){return await(async()=>{if(!this.src)return"";const e=await fetch(this.src);if(e.ok){const r=await e.text();return window.marked.parse(r,{baseUrl:this.getBaseUrl(this.src),...t})}return this.fire("zero-md-error",{msg:`[zero-md] HTTP error ${e.status} while fetching src`,status:e.status,src:this.src}),""})()||(()=>{const e=this.querySelector('script[type="text/markdown"]');if(!e)return"";const r=e.hasAttribute("data-dedent")?this.dedent(e.text):e.text;return window.marked.parse(r,t)})()}getHash(t){let e=5381;for(let r=0;r<t.length;r++)e=(e<<5)+e^t.charCodeAt(r);return(e>>>0).toString(36)}async stampStyles(t){const e=this.getHash(t),r=this.root.querySelector(".markdown-styles");if(r.getAttribute("data-hash")!==e){r.setAttribute("data-hash",e);const o=this.makeNodes(t),n=[...o].filter((t=>"LINK"===t.tagName&&"stylesheet"===t.getAttribute("rel")));return r.innerHTML="",r.append(...o),await Promise.all(n.map((t=>this.onload(t)))).catch((t=>{this.fire("zero-md-error",{msg:"[zero-md] An external stylesheet failed to load",status:void 0,src:t.href})})),!0}}async stampBody(t,e){const r=this.arrify(e),o=this.getHash(t+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 e=this.makeNodes(t);return n.innerHTML="",n.append(...e),await this.highlight(n),!0}}async render(t={}){await this.waitForReady();const e=this.buildMd(t),r=await this.stampStyles(this.buildStyles());await this.tick();const o=await this.stampBody(await e,t.classes);this.fire("zero-md-rendered",{node:this,stamped:{styles:r,body:o}})}}customElements.define("zero-md",nT);var iT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};let sT=class extends Bt{async connectedCallback(){super.connectedCallback()}render(){return At`<zero-md src="${this.src}"><script type="text/markdown">${this.querySelector("script")?.innerHTML}<\/script></zero-md>`}};iT([Jt(),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:type",Object)],sT.prototype,"src",void 0),sT=iT([Kt("qbo-markdown")],sT);var aT,lT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},cT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let dT=class extends Bt{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{aT=this}static{this.activeInstance=null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.listen);const t=new(window.SpeechRecognition||window.webkitSpeechRecognition);t.continuous=this.continuous,t.interimResults=this.interimResults,t.maxAlternatives=this.maxAlternatives,t.onresult=t=>{this.onResult(t)},t.onspeechend=t=>{this.stop(t)},t.onerror=t=>{this.error(t)},this._recognition=t,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(t){const e=t.results[t.results.length-1][0].transcript;if(console.log("Result: "+e),null==this.target)return;const r=this.target;if(r instanceof HTMLInputElement)"radio"===r.type?r.value===e&&(r.checked=!0):this.continuous?r.value+=e:r.value=e;else if(r instanceof HTMLTextAreaElement)this.continuous?r.value+=e:r.value=e;else if(r instanceof HTMLSelectElement)for(let t=0;t<r.options.length;t++)if(r.options[t].value===e||r.options[t].text===e){r.selectedIndex=t;break}}listen(t){this.listening?this.stop(t):this.start()}start(){this.listening=!0,aT.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(t){this.listening=!1,aT.activeInstance=null,this.activeClass&&this.classList.remove(this.activeClass),console.log("stopped listening"),this._recognition.stop(),this._recognition.abort()}error(t){console.log("Error during speech recognition:",t)}render(){return At`<slot></slot>`}};lT([Jt({type:Boolean}),cT("design:type",Object)],dT.prototype,"renderInHost",void 0),lT([Jt({type:Boolean}),cT("design:type",Object)],dT.prototype,"continuous",void 0),lT([Jt({type:Boolean}),cT("design:type",Object)],dT.prototype,"interimResults",void 0),lT([Jt({type:Number}),cT("design:type",Object)],dT.prototype,"maxAlternatives",void 0),lT([Jt({type:String}),cT("design:type",Object)],dT.prototype,"for",void 0),lT([Jt({type:String}),cT("design:type",Object)],dT.prototype,"class",void 0),lT([Jt({type:String}),cT("design:type",Object)],dT.prototype,"activeClass",void 0),dT=aT=lT([Kt("qbo-microphone")],dT);var uT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},pT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let bT=class extends Bt{constructor(){super(...arguments),this.selector='[data-bs-toggle="popover"]',this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}updated(t){this.renderRoot.querySelectorAll(`${this.selector}`).forEach((function(t){new iE(t)}))}render(){return At`<slot></slot>`}};uT([Jt({type:String}),pT("design:type",Object)],bT.prototype,"selector",void 0),uT([Jt({type:Boolean}),pT("design:type",Object)],bT.prototype,"renderInHost",void 0),bT=uT([Kt("qbo-popover")],bT);class fT{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}class hT extends fT{constructor(t){if(super(t),this.it=Ot,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Ot||null==t)return this._t=void 0,this.it=t;if(t===$t)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}hT.directiveName="unsafeHTML",hT.resultType=1;const gT=(vT=hT,(...t)=>({_$litDirective$:vT,values:t}));var vT,mT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},yT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let wT=class extends Sw{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[B`
270
+ </nav>`:At``}};eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"ariaExpanded",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"ariaLabel",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"buttonType",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"collapseToggle",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"dblClickClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"dropdownId",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"dropdownToggle",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"iconClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"liLinkToggleClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"liLinkClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"liAMenuClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"navClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"popoverContainer",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"popoverHtml",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"popoverPlacement",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"popoverToggle",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"popoverTrigger",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"spanMenuClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"spanMenuValue",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"ulMainMenuToggleClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"ulSubMenuClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"ulSubMenuToggleClass",void 0),eT([Jt({type:String}),rT("design:type",Object)],oT.prototype,"apiEndpoint",void 0),eT([Jt({type:Boolean}),rT("design:type",Object)],oT.prototype,"renderInHost",void 0),oT=eT([Kt("qbo-mainmenu")],oT);class nT extends HTMLElement{get src(){return this.getAttribute("src")}set src(t){this.reflect("src",t)}get manualRender(){return this.hasAttribute("manual-render")}set manualRender(t){this.reflect("manual-render",t)}reflect(t,e){!1===e?this.removeAttribute(t):this.setAttribute(t,!0===e?"":e)}static get observedAttributes(){return["src"]}attributeChangedCallback(t,e,r){"src"===t&&this.connected&&!this.manualRender&&r!==e&&this.render()}constructor(t){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;}",...t,...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((t=>{this.observer.observe(t.content||t,{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 t=this.connected||new Promise((t=>{this.addEventListener("zero-md-connected",(function e(){this.removeEventListener("zero-md-connected",e),t()}))}));return Promise.all([this.constructor.ready,t])}fire(t,e={},r={bubbles:!0,composed:!0}){e.msg&&console.warn(e.msg),this.dispatchEvent(new CustomEvent(t,{detail:{node:this,...e},...r}))}tick(){return new Promise((t=>requestAnimationFrame(t)))}arrify(t){return t?Array.isArray(t)?t:[t]:[]}onload(t){return new Promise(((e,r)=>{t.onload=e,t.onerror=t=>r(t.path?t.path[0]:t.composedPath()[0])}))}loadScript(t){return Promise.all(this.arrify(t).map((t=>{const[e,...r]=this.arrify(t),o=document.createElement("script");return o.src=e,o.async=!1,r.forEach((t=>o.setAttribute(t,""))),this.onload(document.head.appendChild(o))})))}goto(t){let e;try{e=this.root.querySelector(t)}catch{}e&&e.scrollIntoView()}clicked(t){if(t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented)return;const e=t.target.closest("a");e&&e.hash&&e.host===location.host&&e.pathname===location.pathname&&this.goto(e.hash)}dedent(t){const e=(t=t.replace(/^\n/,"")).match(/^\s+/);return e?t.replace(new RegExp(`^${e[0]}`,"gm"),""):t}getBaseUrl(t){const e=document.createElement("a");return e.href=t,e.href.substring(0,e.href.lastIndexOf("/")+1)}highlight(t){return new Promise((e=>{t.querySelectorAll('pre>code:not([class*="language-"])').forEach((t=>{const e=t.innerText.match(/^\s*</)?"markup":t.innerText.match(/^\s*(\$|#)/)?"bash":"js";t.classList.add(`language-${e}`)}));try{window.Prism.highlightAllUnder(t,!0,e())}catch{window.Prism.highlightAllUnder(t),e()}}))}makeNodes(t){const e=document.createElement("template");return e.innerHTML=t,e.content.children}buildStyles(){const t=t=>{const e=this.querySelector(t);return e?e.innerHTML||" ":""},e=this.arrify(this.config.cssUrls),r=`<style>${this.config.hostCss}</style>${t('template[data-merge="prepend"]')}${t("template:not([data-merge])")||e.reduce(((t,e)=>`${t}<link rel="stylesheet" href="${e}">`),"")}${t('template[data-merge="append"]')}`;return r}async buildMd(t={}){return await(async()=>{if(!this.src)return"";const e=await fetch(this.src);if(e.ok){const r=await e.text();return window.marked.parse(r,{baseUrl:this.getBaseUrl(this.src),...t})}return this.fire("zero-md-error",{msg:`[zero-md] HTTP error ${e.status} while fetching src`,status:e.status,src:this.src}),""})()||(()=>{const e=this.querySelector('script[type="text/markdown"]');if(!e)return"";const r=e.hasAttribute("data-dedent")?this.dedent(e.text):e.text;return window.marked.parse(r,t)})()}getHash(t){let e=5381;for(let r=0;r<t.length;r++)e=(e<<5)+e^t.charCodeAt(r);return(e>>>0).toString(36)}async stampStyles(t){const e=this.getHash(t),r=this.root.querySelector(".markdown-styles");if(r.getAttribute("data-hash")!==e){r.setAttribute("data-hash",e);const o=this.makeNodes(t),n=[...o].filter((t=>"LINK"===t.tagName&&"stylesheet"===t.getAttribute("rel")));return r.innerHTML="",r.append(...o),await Promise.all(n.map((t=>this.onload(t)))).catch((t=>{this.fire("zero-md-error",{msg:"[zero-md] An external stylesheet failed to load",status:void 0,src:t.href})})),!0}}async stampBody(t,e){const r=this.arrify(e),o=this.getHash(t+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 e=this.makeNodes(t);return n.innerHTML="",n.append(...e),await this.highlight(n),!0}}async render(t={}){await this.waitForReady();const e=this.buildMd(t),r=await this.stampStyles(this.buildStyles());await this.tick();const o=await this.stampBody(await e,t.classes);this.fire("zero-md-rendered",{node:this,stamped:{styles:r,body:o}})}}customElements.define("zero-md",nT);var iT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};let sT=class extends Bt{async connectedCallback(){super.connectedCallback()}render(){return At`<zero-md src="${this.src}"><script type="text/markdown">${this.querySelector("script")?.innerHTML}<\/script></zero-md>`}};iT([Jt(),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:type",Object)],sT.prototype,"src",void 0),sT=iT([Kt("qbo-markdown")],sT);var aT,lT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},cT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let dT=class extends Bt{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{aT=this}static{this.activeInstance=null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.listen);const t=new(window.SpeechRecognition||window.webkitSpeechRecognition);t.continuous=this.continuous,t.interimResults=this.interimResults,t.maxAlternatives=this.maxAlternatives,t.onresult=t=>{this.onResult(t)},t.onspeechend=t=>{this.stop(t)},t.onerror=t=>{this.error(t)},this._recognition=t,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(t){const e=t.results[t.results.length-1][0].transcript;if(console.log("Result: "+e),null==this.target)return;const r=this.target;if(r instanceof HTMLInputElement)"radio"===r.type?r.value===e&&(r.checked=!0):this.continuous?r.value+=e:r.value=e;else if(r instanceof HTMLTextAreaElement)this.continuous?r.value+=e:r.value=e;else if(r instanceof HTMLSelectElement)for(let t=0;t<r.options.length;t++)if(r.options[t].value===e||r.options[t].text===e){r.selectedIndex=t;break}}listen(t){this.listening?this.stop(t):this.start()}start(){this.listening=!0,aT.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(t){this.listening=!1,aT.activeInstance=null,this.activeClass&&this.classList.remove(this.activeClass),console.log("stopped listening"),this._recognition.stop(),this._recognition.abort()}error(t){console.log("Error during speech recognition:",t)}render(){return At`<slot></slot>`}};lT([Jt({type:Boolean}),cT("design:type",Object)],dT.prototype,"renderInHost",void 0),lT([Jt({type:Boolean}),cT("design:type",Object)],dT.prototype,"continuous",void 0),lT([Jt({type:Boolean}),cT("design:type",Object)],dT.prototype,"interimResults",void 0),lT([Jt({type:Number}),cT("design:type",Object)],dT.prototype,"maxAlternatives",void 0),lT([Jt({type:String}),cT("design:type",Object)],dT.prototype,"for",void 0),lT([Jt({type:String}),cT("design:type",Object)],dT.prototype,"class",void 0),lT([Jt({type:String}),cT("design:type",Object)],dT.prototype,"activeClass",void 0),dT=aT=lT([Kt("qbo-microphone")],dT);var uT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},pT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let bT=class extends Bt{constructor(){super(...arguments),this.selector='[data-bs-toggle="popover"]',this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}updated(t){this.renderRoot.querySelectorAll(`${this.selector}`).forEach((function(t){new iE(t)}))}render(){return At`<slot></slot>`}};uT([Jt({type:String}),pT("design:type",Object)],bT.prototype,"selector",void 0),uT([Jt({type:Boolean}),pT("design:type",Object)],bT.prototype,"renderInHost",void 0),bT=uT([Kt("qbo-popover")],bT);class fT{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}class hT extends fT{constructor(t){if(super(t),this.it=$t,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===$t||null==t)return this._t=void 0,this.it=t;if(t===Ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}hT.directiveName="unsafeHTML",hT.resultType=1;const gT=(vT=hT,(...t)=>({_$litDirective$:vT,values:t}));var vT,mT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},yT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let wT=class extends Sw{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[B`
279
271
  /* Add any custom styles here */
280
272
  .foo { color: red; }
281
273
  `]}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(t){t.target.closest('[data-dismiss="modal"]')&&(this.open=!1,document.removeEventListener("click",this.handleOutsideClick))}handleOutsideClick(t){this.open&&!this.contains(t.target)&&(this.open=!1,document.removeEventListener("click",this.handleOutsideClick))}render(){return At`
@@ -300,13 +292,13 @@
300
292
  </div>
301
293
  </div>
302
294
  </slot>
303
- `}};_T([Jt({type:Boolean}),xT("design:type",Object)],CT.prototype,"open",void 0),_T([Jt({type:Boolean}),xT("design:type",Object)],CT.prototype,"loading",void 0),_T([Jt({type:Boolean}),xT("design:type",Object)],CT.prototype,"renderInHost",void 0),_T([Jt({type:String}),xT("design:type",Object)],CT.prototype,"src",void 0),_T([Jt({type:String}),xT("design:type",Object)],CT.prototype,"title",void 0),_T([Jt(),xT("design:type",Object)],CT.prototype,"clickSelector",void 0),_T([Jt(),xT("design:type",Object)],CT.prototype,"eventName",void 0),_T([Jt(),xT("design:type",Object)],CT.prototype,"target",void 0),_T([Jt({type:Boolean}),xT("design:type",Object)],CT.prototype,"listen",void 0),CT=_T([Kt("qbo-popup-listener")],CT);var kT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},ST=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let ET=class extends Sw{constructor(){super(...arguments),this.loading=!1,this.optionText=null,this.optionValue=null,this.defaultValue=null,this.emptyOptionText="--",this.emptyOptionValue="",this.options=[],this.renderInHost=!0}static{this.styles=[B`
295
+ `}};_T([Jt({type:Boolean}),xT("design:type",Object)],CT.prototype,"open",void 0),_T([Jt({type:Boolean}),xT("design:type",Object)],CT.prototype,"loading",void 0),_T([Jt({type:Boolean}),xT("design:type",Object)],CT.prototype,"renderInHost",void 0),_T([Jt({type:String}),xT("design:type",Object)],CT.prototype,"src",void 0),_T([Jt({type:String}),xT("design:type",Object)],CT.prototype,"title",void 0),_T([Jt(),xT("design:type",Object)],CT.prototype,"clickSelector",void 0),_T([Jt(),xT("design:type",Object)],CT.prototype,"eventName",void 0),_T([Jt(),xT("design:type",Object)],CT.prototype,"target",void 0),_T([Jt({type:Boolean}),xT("design:type",Object)],CT.prototype,"listen",void 0),CT=_T([Kt("qbo-popup-listener")],CT);var kT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},ST=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let ET=class extends Fw{constructor(){super(...arguments),this.apiEndpoint="qbo",this.loading=!1,this.optionText=null,this.optionValue=null,this.defaultValue=null,this.emptyOptionText="--",this.emptyOptionValue="",this.options=[],this.jsonData={},this.renderInHost=!0}static{this.styles=[B`
304
296
  /* Add any custom styles here */
305
297
  .foo { color: red; }
306
- `]}async connectedCallback(){this.optionText??=this.optionValue,super.connectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){return this.options=ow(this.jsonData),this.options?(this.optionValue??=Object.keys(this.options[0])[0],this.optionText??=Object.keys(this.options[0])[1]??this.optionValue,At`<select ?disabled=${this.hasAttribute("disabled")} class=${this.getAttribute("class")}>
298
+ `]}async connectedCallback(){this.optionText??=this.optionValue,super.connectedCallback();const t=VT(this.apiEndpoint);this.jsonData=await t.fetch(null,{})}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){return this.options=ow(this.jsonData),this.options?(this.optionValue??=Object.keys(this.options[0])[0],this.optionText??=Object.keys(this.options[0])[1]??this.optionValue,At`<select ?disabled=${this.hasAttribute("disabled")} class=${this.getAttribute("class")}>
307
299
  <option value="${this.emptyOptionValue}">${this.emptyOptionText}</option>
308
300
  ${this.options.map((t=>At`<option value="${t[this.optionValue]}" ?selected="${t[this.optionValue]==this.defaultValue}">${t[this.optionText]}</option>`))}
309
- </select>`):At`<p>Loading...</p>`}};kT([Jt({type:Boolean}),ST("design:type",Object)],ET.prototype,"loading",void 0),kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"optionText",void 0),kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"optionValue",void 0),kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"defaultValue",void 0),kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"emptyOptionText",void 0),kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"emptyOptionValue",void 0),kT([Jt({type:Array}),ST("design:type",Object)],ET.prototype,"options",void 0),kT([Jt({type:Boolean}),ST("design:type",Object)],ET.prototype,"renderInHost",void 0),ET=kT([Kt("qbo-select")],ET);var TT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},AT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let $T=class extends Bt{constructor(){super(...arguments),this.collapseAttribute="aria-expanded",this.collapseSelector='[data-qbo-toggle="collapse"]',this.menuCollapsed="false",this.menuExpanded="true",this.menuShow="qbo-show"}updated(t){const e=this;e.querySelectorAll(`${this.collapseSelector}`).forEach((function(t){t.addEventListener("click",(r=>{const o=t.nextElementSibling;t.getAttribute(e.collapseAttribute)==e.menuCollapsed?(o instanceof HTMLElement&&o.classList.add(e.menuShow),t.setAttribute(e.collapseAttribute,e.menuExpanded)):(o instanceof HTMLElement&&o.classList.remove(e.menuShow),t.setAttribute(e.collapseAttribute,e.menuCollapsed))}))}))}render(){return At`<slot></slot>`}};TT([Jt({type:String}),AT("design:type",Object)],$T.prototype,"collapseAttribute",void 0),TT([Jt({type:String}),AT("design:type",Object)],$T.prototype,"collapseSelector",void 0),TT([Jt({type:String}),AT("design:type",Object)],$T.prototype,"menuCollapsed",void 0),TT([Jt({type:String}),AT("design:type",Object)],$T.prototype,"menuExpanded",void 0),TT([Jt({type:String}),AT("design:type",Object)],$T.prototype,"menuShow",void 0),$T=TT([Kt("qbo-sidebar")],$T);var OT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},IT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let DT=class extends Sw{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=ow(this.jsonData)??this.loadData()??[{Loading:"..."}],this.querySelector("tbody"),this.querySelector("template"),iw(this.querySelector("tbody"),this.querySelector("template"),this.options);const t=Object.keys(this.options[0]);return At`<slot>
301
+ </select>`):At`<p>Loading...</p>`}};kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"apiEndpoint",void 0),kT([Jt({type:Boolean}),ST("design:type",Object)],ET.prototype,"loading",void 0),kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"optionText",void 0),kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"optionValue",void 0),kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"defaultValue",void 0),kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"emptyOptionText",void 0),kT([Jt({type:String}),ST("design:type",Object)],ET.prototype,"emptyOptionValue",void 0),kT([Jt({type:Array}),ST("design:type",Object)],ET.prototype,"options",void 0),kT([Jt({type:Object}),ST("design:type",Object)],ET.prototype,"jsonData",void 0),kT([Jt({type:Boolean}),ST("design:type",Object)],ET.prototype,"renderInHost",void 0),ET=kT([Kt("qbo-select")],ET);var TT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},AT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let OT=class extends Bt{constructor(){super(...arguments),this.collapseAttribute="aria-expanded",this.collapseSelector='[data-qbo-toggle="collapse"]',this.menuCollapsed="false",this.menuExpanded="true",this.menuShow="qbo-show"}updated(t){const e=this;e.querySelectorAll(`${this.collapseSelector}`).forEach((function(t){t.addEventListener("click",(r=>{const o=t.nextElementSibling;t.getAttribute(e.collapseAttribute)==e.menuCollapsed?(o instanceof HTMLElement&&o.classList.add(e.menuShow),t.setAttribute(e.collapseAttribute,e.menuExpanded)):(o instanceof HTMLElement&&o.classList.remove(e.menuShow),t.setAttribute(e.collapseAttribute,e.menuCollapsed))}))}))}render(){return At`<slot></slot>`}};TT([Jt({type:String}),AT("design:type",Object)],OT.prototype,"collapseAttribute",void 0),TT([Jt({type:String}),AT("design:type",Object)],OT.prototype,"collapseSelector",void 0),TT([Jt({type:String}),AT("design:type",Object)],OT.prototype,"menuCollapsed",void 0),TT([Jt({type:String}),AT("design:type",Object)],OT.prototype,"menuExpanded",void 0),TT([Jt({type:String}),AT("design:type",Object)],OT.prototype,"menuShow",void 0),OT=TT([Kt("qbo-sidebar")],OT);var $T=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},IT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let DT=class extends Sw{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=ow(this.jsonData)??this.loadData()??[{Loading:"..."}],this.querySelector("tbody"),this.querySelector("template"),iw(this.querySelector("tbody"),this.querySelector("template"),this.options);const t=Object.keys(this.options[0]);return At`<slot>
310
302
  <table class=${this.qboClass}>
311
303
  <thead>
312
304
  ${null!=this.querySelector("*[slot=header]")?At`<tr><th colspan="${t.length}"><slot name="header"></slot></th></tr>`:null}
@@ -315,5 +307,5 @@
315
307
  <tbody>${this.options.map(((e,r)=>At`<tr data-index="${r}">${t.map((t=>At`<td>${e[t]}</td>`))}</tr>`))}</tbody>
316
308
  <tfoot><tr><td colspan="${t.length}"><slot name="footer">${t.length} rows rendered.</slot></td></tr></tfoot>
317
309
  </table>
318
- </slot>`}loadData(){if(null!=this.dataSelector){const t=document.querySelector(this.dataSelector);if(null!=t)return ow(t.text)}return null}};OT([Jt({type:Boolean}),IT("design:type",Object)],DT.prototype,"loading",void 0),OT([Jt({type:Boolean}),IT("design:type",Object)],DT.prototype,"renderInHost",void 0),OT([Jt({attribute:"qbo-class"}),IT("design:type",Object)],DT.prototype,"qboClass",void 0),OT([Jt(),IT("design:type",Object)],DT.prototype,"dataSelector",void 0),OT([Jt(),IT("design:type",Object)],DT.prototype,"options",void 0),DT=OT([Kt("qbo-table")],DT);var jT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},RT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let LT=class extends Bt{constructor(){super(),this.renderInHost=!1,this.autoComplete="off",this.validatedClass="was-validated",this.workingClass=["bg-light","text-secondary"],this.form=null,this.validators=[],this.validate=async t=>{console.trace("validating form"),t.preventDefault();const e=Array.from(this.form?.querySelectorAll("*"));for(const t of e)t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement?(console.trace("validating element ",t),await this.validateElement(t)):console.trace("ignoring element ",t);this.form?.checkValidity()?console.trace("form is valid, js submit"):(console.trace("form is invalid"),t.preventDefault(),t.stopPropagation()),this.form?.classList.add(this.validatedClass),this.dispatchEvent(new Event("qbo-form-validated",{bubbles:!0}))},this.validateElement=async t=>{const e=t instanceof Event?t.target:t;if(console.trace("validateElement start ",e),e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement){if(e.setCustomValidity(""),!e.checkValidity())return;for(const t of this.validators)if(e.matches(t.selector)){if(console.trace("element matches selector ",t.selector," for ",e.matches(t.selector)?"true":"false"),!e.checkValidity())break;this.workingClass.forEach((t=>e.classList.add(t)));const r=await t.validate(e);this.workingClass.forEach((t=>e.classList.remove(t))),e.setCustomValidity(r?"":t.message),console.trace("input validity is ",e.checkValidity()," message is ",e.validationMessage)}else console.trace("element does not match selector ",t.selector," for ",e.matches(t.selector)?"true":"false")}console.trace("validateElement end ",e),e?.dispatchEvent(new Event("qbo-input-validated",{bubbles:!0}))},this.childContainer=I.container.createChildContainer()}async connectedCallback(){super.connectedCallback(),this.form=this.closest("form"),null!=this.form&&(this.form?.addEventListener("submit",this.validate),this.form?.addEventListener("change",this.validateElement),this.childContainer.registerInstance(HTMLFormElement,this.form),this.validators=this.childContainer.resolveAll(cw),this.validators.forEach((t=>t.connect(this.form))))}async disconnectedCallback(){super.disconnectedCallback(),this.validators.forEach((t=>t.disconnect())),this.form?.removeEventListener("change",this.validateElement),this.form?.removeEventListener("submit",this.validate)}render(){return At``}};function PT(t,e,r="options"){const o={},n=`${e}${r}`,i=t.getAttributeNames();for(const s of i)if(s.startsWith(e)){const i=s.slice(e.length);if(null!=r&&s===n)try{const e=JSON.parse(t.getAttribute(s));Object.assign(o,e)}catch(e){console.error(`Error parsing JSON from element ${t.name} attribute ${n} (${t.getAttribute(s)}):`,t,e)}else o[i]=t.getAttribute(s)}return o}function MT(t,e){const r=Array.from(t.querySelectorAll(e));return t.matches(e)&&r.unshift(t),r}function NT(t){if(t instanceof HTMLInputElement)"checkbox"===t.type||"radio"===t.type?t.checked=t.defaultChecked:t.value=t.defaultValue;else if(t instanceof HTMLSelectElement){var e=t.querySelectorAll("option[selected]");0==e.length?t.selectedIndex=0:e.forEach((t=>{t instanceof HTMLOptionElement&&(t.selected=!0)}))}}function zT(t){t instanceof HTMLInputElement?"checkbox"===t.type||"radio"===t.type?t.checked=!1:t.value="":t instanceof HTMLSelectElement&&(t.options.selectedIndex=0)}function qT(t,e,r="*",o=!0){return e=(e=e.replace(/([.+^${}()|[\]\\])/g,"\\$1")).replace(new RegExp("\\"+r,"g"),".*"),new RegExp("^"+e+"$",o?"i":"").test(t)}function HT(t){const e=t.dataset,r={};for(const t in e)e.hasOwnProperty(t)&&void 0!==e[t]&&(r[t]=e[t]);return r}function VT(t){const e=t.match(/api:\/\/([^/]+)/),r=e?e[1]:t,o=e?t.substring(`api://${r}`.length):"",n=I.container.isRegistered(r)?I.container.resolve(r):new sw(t);return o?n.clone(o):n}jT([Jt({type:Boolean}),RT("design:type",Object)],LT.prototype,"renderInHost",void 0),jT([Jt({type:String}),RT("design:type",Object)],LT.prototype,"autoComplete",void 0),jT([Jt({type:String}),RT("design:type",Object)],LT.prototype,"validatedClass",void 0),jT([Jt({converter:{fromAttribute:(t,e)=>t?.split(" "),toAttribute:(t,e)=>t.join(" ")}}),RT("design:type",Object)],LT.prototype,"workingClass",void 0),LT=jT([Kt("qbo-validate"),RT("design:paramtypes",[])],LT)})(),o})()));
310
+ </slot>`}loadData(){if(null!=this.dataSelector){const t=document.querySelector(this.dataSelector);if(null!=t)return ow(t.text)}return null}};$T([Jt({type:Boolean}),IT("design:type",Object)],DT.prototype,"loading",void 0),$T([Jt({type:Boolean}),IT("design:type",Object)],DT.prototype,"renderInHost",void 0),$T([Jt({attribute:"qbo-class"}),IT("design:type",Object)],DT.prototype,"qboClass",void 0),$T([Jt(),IT("design:type",Object)],DT.prototype,"dataSelector",void 0),$T([Jt(),IT("design:type",Object)],DT.prototype,"options",void 0),DT=$T([Kt("qbo-table")],DT);var RT=function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},jT=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let LT=class extends Bt{constructor(){super(),this.renderInHost=!1,this.autoComplete="off",this.validatedClass="was-validated",this.workingClass=["bg-light","text-secondary"],this.form=null,this.validators=[],this.validate=async t=>{console.trace("validating form"),t.preventDefault();const e=Array.from(this.form?.querySelectorAll("*"));for(const t of e)t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement?(console.trace("validating element ",t),await this.validateElement(t)):console.trace("ignoring element ",t);this.form?.checkValidity()?console.trace("form is valid, js submit"):(console.trace("form is invalid"),t.preventDefault(),t.stopPropagation()),this.form?.classList.add(this.validatedClass),this.dispatchEvent(new Event("qbo-form-validated",{bubbles:!0}))},this.validateElement=async t=>{const e=t instanceof Event?t.target:t;if(console.trace("validateElement start ",e),e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement){if(e.setCustomValidity(""),!e.checkValidity())return;for(const t of this.validators)if(e.matches(t.selector)){if(console.trace("element matches selector ",t.selector," for ",e.matches(t.selector)?"true":"false"),!e.checkValidity())break;this.workingClass.forEach((t=>e.classList.add(t)));const r=await t.validate(e);this.workingClass.forEach((t=>e.classList.remove(t))),e.setCustomValidity(r?"":t.message),console.trace("input validity is ",e.checkValidity()," message is ",e.validationMessage)}else console.trace("element does not match selector ",t.selector," for ",e.matches(t.selector)?"true":"false")}console.trace("validateElement end ",e),e?.dispatchEvent(new Event("qbo-input-validated",{bubbles:!0}))},this.childContainer=I.container.createChildContainer()}async connectedCallback(){super.connectedCallback(),this.form=this.closest("form"),null!=this.form&&(this.form?.addEventListener("submit",this.validate),this.form?.addEventListener("change",this.validateElement),this.childContainer.registerInstance(HTMLFormElement,this.form),this.validators=this.childContainer.resolveAll(cw),this.validators.forEach((t=>t.connect(this.form))))}async disconnectedCallback(){super.disconnectedCallback(),this.validators.forEach((t=>t.disconnect())),this.form?.removeEventListener("change",this.validateElement),this.form?.removeEventListener("submit",this.validate)}render(){return At``}};function PT(t,e,r="options"){const o={},n=`${e}${r}`,i=t.getAttributeNames();for(const s of i)if(s.startsWith(e)){const i=s.slice(e.length);if(null!=r&&s===n)try{const e=JSON.parse(t.getAttribute(s));Object.assign(o,e)}catch(e){console.error(`Error parsing JSON from element ${t.name} attribute ${n} (${t.getAttribute(s)}):`,t,e)}else o[i]=t.getAttribute(s)}return o}function MT(t,e){const r=Array.from(t.querySelectorAll(e));return t.matches(e)&&r.unshift(t),r}function NT(t){if(t instanceof HTMLInputElement)"checkbox"===t.type||"radio"===t.type?t.checked=t.defaultChecked:t.value=t.defaultValue;else if(t instanceof HTMLSelectElement){var e=t.querySelectorAll("option[selected]");0==e.length?t.selectedIndex=0:e.forEach((t=>{t instanceof HTMLOptionElement&&(t.selected=!0)}))}}function zT(t){t instanceof HTMLInputElement?"checkbox"===t.type||"radio"===t.type?t.checked=!1:t.value="":t instanceof HTMLSelectElement&&(t.options.selectedIndex=0)}function qT(t,e,r="*",o=!0){return e=(e=e.replace(/([.+^${}()|[\]\\])/g,"\\$1")).replace(new RegExp("\\"+r,"g"),".*"),new RegExp("^"+e+"$",o?"i":"").test(t)}function HT(t){const e=t.dataset,r={};for(const t in e)e.hasOwnProperty(t)&&void 0!==e[t]&&(r[t]=e[t]);return r}function VT(t){const e=t.match(/api:\/\/([^/]+)/),r=e?e[1]:t,o=e?t.substring(`api://${r}`.length+1):"",n=I.container.isRegistered(r)?I.container.resolve(r):new sw(t);return o?n.clone(o):n}RT([Jt({type:Boolean}),jT("design:type",Object)],LT.prototype,"renderInHost",void 0),RT([Jt({type:String}),jT("design:type",Object)],LT.prototype,"autoComplete",void 0),RT([Jt({type:String}),jT("design:type",Object)],LT.prototype,"validatedClass",void 0),RT([Jt({converter:{fromAttribute:(t,e)=>t?.split(" "),toAttribute:(t,e)=>t.join(" ")}}),jT("design:type",Object)],LT.prototype,"workingClass",void 0),LT=RT([Kt("qbo-validate"),jT("design:paramtypes",[])],LT)})(),o})()));
319
311
  //# sourceMappingURL=qbo4.ui.min.js.map