@quandis/qbo4.ui 4.0.1-CI-20241025-205549 → 4.0.1-CI-20241027-142453

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
- var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof o.g?o.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){}}(),r=n(t);function n(t,e){return function(o,r){Object.defineProperty(t,o,{configurable:!0,writable:!0,value:r}),e&&e(o,r)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var o=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,n=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,b={__proto__:[]}instanceof Array,l=!a&&!b,s={create:a?function(){return N(Object.create(null))}:b?function(){return N({__proto__:null})}:function(){return N({})},has:l?function(t,e){return o.call(t,e)}:function(t,e){return e in t},get:l?function(t,e){return o.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},d=Object.getPrototypeOf(Function),c="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],o=function(){function t(t,e,o){this._index=0,this._keys=t,this._values=e,this._selector=o}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 o=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:o,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}(),r=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 o=this._find(t,!0);return this._values[o]=e,this},e.prototype.delete=function(e){var o=this._find(e,!1);if(o>=0){for(var r=this._keys.length,n=o+1;n<r;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,T(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 o(this._keys,this._values,n)},e.prototype.values=function(){return new o(this._keys,this._values,a)},e.prototype.entries=function(){return new o(this._keys,this._values,b)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!T(this._cacheKey,t)){this._cacheIndex=-1;for(var o=0;o<this._keys.length;o++)if(T(this._keys[o],t)){this._cacheIndex=o;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();return r;function n(t,e){return t}function a(t,e){return e}function b(t,e){return[t,e]}}(),f="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new c}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}(),p="function"==typeof WeakMap?WeakMap:function(){var t=s.create(),e=r();return function(){function t(){this._key=r()}return t.prototype.has=function(t){var e=n(t,!1);return void 0!==e&&s.has(e,this._key)},t.prototype.get=function(t){var e=n(t,!1);return void 0!==e?s.get(e,this._key):void 0},t.prototype.set=function(t,e){return n(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=n(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=r()},t}();function r(){var e;do{e="@@WeakMap@@"+a()}while(s.has(t,e));return t[e]=!0,e}function n(t,r){if(!o.call(t,e)){if(!r)return;Object.defineProperty(t,e,{value:s.create()})}return t[e]}function i(t,e){for(var o=0;o<e;++o)t[o]=255*Math.random()|0;return t}function a(){var t=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,t),e}return i(new Array(t),t)}(16);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",o=0;o<16;++o){var r=t[o];4!==o&&6!==o&&8!==o||(e+="-"),r<16&&(e+="0"),e+=r.toString(16).toLowerCase()}return e}}(),m=r?Symbol.for("@reflect-metadata:registry"):void 0,g=function(){var t;return!z(m)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[m]),z(t)&&(t=function(){var t,o,r,n;z(m)||void 0===e.Reflect||m in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,o=t.hasOwnMetadata,r=t.getOwnMetadata,n=t.getOwnMetadataKeys,i=t.deleteMetadata,a=new p,b={isProviderFor:function(t,e){var o=a.get(t);return!(z(o)||!o.has(e))||!!n(t,e).length&&(z(o)&&(o=new f,a.set(t,o)),o.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:o,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i};return b}(e.Reflect));var i=new p,a={registerProvider:b,getProvider:s,setProvider:g};return a;function b(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case z(o):o=e;break;case o===e:break;case z(r):r=e;break;case r===e:break;default:void 0===n&&(n=new f),n.add(e)}}function l(e,i){if(!z(o)){if(o.isProviderFor(e,i))return o;if(!z(r)){if(r.isProviderFor(e,i))return o;if(!z(n))for(var a=L(n);;){var b=I(a);if(!b)return;var l=P(b);if(l.isProviderFor(e,i))return D(a),l}}}if(!z(t)&&t.isProviderFor(e,i))return t}function s(t,e){var o,r=i.get(t);return z(r)||(o=r.get(e)),z(o)?(z(o=l(t,e))||(z(r)&&(r=new c,i.set(t,r)),r.set(e,o)),o):o}function d(t){if(z(t))throw new TypeError;return o===t||r===t||!z(n)&&n.has(t)}function g(t,e,o){if(!d(o))throw new Error("Metadata provider not registered.");var r=s(t,e);if(r!==o){if(!z(r))return!1;var n=i.get(t);z(n)&&(n=new c,i.set(t,n)),n.set(e,o)}return!0}}()),!z(m)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,m,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),u=function(t){var e=new p,o={isProviderFor:function(t,o){var r=e.get(t);return!z(r)&&r.has(o)},OrdinaryDefineOwnMetadata:function(t,e,o,n){r(o,n,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,o){var n=r(e,o,!1);return!z(n)&&E(n.has(t))},OrdinaryGetOwnMetadata:function(t,e,o){var n=r(e,o,!1);if(!z(n))return n.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var o=[],n=r(t,e,!1);if(z(n))return o;for(var i=L(n.keys()),a=0;;){var b=I(i);if(!b)return o.length=a,o;var l=P(b);try{o[a]=l}catch(t){try{D(i)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,o,n){var i=r(o,n,!1);if(z(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var a=e.get(o);z(a)||(a.delete(n),0===a.size&&e.delete(a))}return!0}};return g.registerProvider(o),o;function r(r,n,i){var a=e.get(r),b=!1;if(z(a)){if(!i)return;a=new c,e.set(r,a),b=!0}var l=a.get(n);if(z(l)){if(!i)return;if(l=new c,a.set(n,l),!t.setProvider(r,n,o))throw a.delete(n),b&&e.delete(r),new Error("Wrong provider for target.")}return l}}(g);function v(t,e,o){if(h(t,e,o))return!0;var r=B(e);return!j(r)&&v(t,r,o)}function h(t,e,o){var r=H(e,o,!1);return!z(r)&&E(r.OrdinaryHasOwnMetadata(t,e,o))}function x(t,e,o){if(h(t,e,o))return w(t,e,o);var r=B(e);return j(r)?void 0:x(t,r,o)}function w(t,e,o){var r=H(e,o,!1);if(!z(r))return r.OrdinaryGetOwnMetadata(t,e,o)}function y(t,e,o,r){H(o,r,!0).OrdinaryDefineOwnMetadata(t,e,o,r)}function q(t,e){var o=k(t,e),r=B(t);if(null===r)return o;var n=q(r,e);if(n.length<=0)return o;if(o.length<=0)return n;for(var i=new f,a=[],b=0,l=o;b<l.length;b++){var s=l[b];i.has(s)||(i.add(s),a.push(s))}for(var d=0,c=n;d<c.length;d++)s=c[d],i.has(s)||(i.add(s),a.push(s));return a}function k(t,e){var o=H(t,e,!1);return o?o.OrdinaryOwnMetadataKeys(t,e):[]}function _(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 z(t){return void 0===t}function j(t){return null===t}function S(t){return"object"==typeof t?null!==t:"function"==typeof t}function A(t,e){switch(_(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var o=3===e?"string":5===e?"number":"default",r=M(t,n);if(void 0!==r){var i=r.call(t,o);if(S(i))throw new TypeError;return i}return function(t,e){if("string"===e){var o=t.toString;if($(o)&&!S(n=o.call(t)))return n;if($(r=t.valueOf)&&!S(n=r.call(t)))return n}else{var r;if($(r=t.valueOf)&&!S(n=r.call(t)))return n;var n,i=t.toString;if($(i)&&!S(n=i.call(t)))return n}throw new TypeError}(t,"default"===o?"number":o)}function E(t){return!!t}function O(t){var e=A(t,3);return function(t){return"symbol"==typeof t}(e)?e:function(t){return""+t}(e)}function C(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function $(t){return"function"==typeof t}function R(t){return"function"==typeof t}function T(t,e){return t===e||t!=t&&e!=e}function M(t,e){var o=t[e];if(null!=o){if(!$(o))throw new TypeError;return o}}function L(t){var e=M(t,i);if(!$(e))throw new TypeError;var o=e.call(t);if(!S(o))throw new TypeError;return o}function P(t){return t.value}function I(t){var e=t.next();return!e.done&&e}function D(t){var e=t.return;e&&e.call(t)}function B(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===d)return e;if(e!==d)return e;var o=t.prototype,r=o&&Object.getPrototypeOf(o);if(null==r||r===Object.prototype)return e;var n=r.constructor;return"function"!=typeof n||n===t?e:n}function H(t,e,o){var r=g.getProvider(t,e);if(!z(r))return r;if(o){if(g.setProvider(t,e,u))return u;throw new Error("Illegal state.")}}function N(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,o,r){if(z(o)){if(!C(t))throw new TypeError;if(!R(e))throw new TypeError;return function(t,e){for(var o=t.length-1;o>=0;--o){var r=(0,t[o])(e);if(!z(r)&&!j(r)){if(!R(r))throw new TypeError;e=r}}return e}(t,e)}if(!C(t))throw new TypeError;if(!S(e))throw new TypeError;if(!S(r)&&!z(r)&&!j(r))throw new TypeError;return j(r)&&(r=void 0),function(t,e,o,r){for(var n=t.length-1;n>=0;--n){var i=(0,t[n])(e,o,r);if(!z(i)&&!j(i)){if(!S(i))throw new TypeError;r=i}}return r}(t,e,o=O(o),r)})),t("metadata",(function(t,e){return function(o,r){if(!S(o))throw new TypeError;if(!z(r)&&!function(t){switch(_(t)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;y(t,e,o,r)}})),t("defineMetadata",(function(t,e,o,r){if(!S(o))throw new TypeError;return z(r)||(r=O(r)),y(t,e,o,r)})),t("hasMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=O(o)),v(t,e,o)})),t("hasOwnMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=O(o)),h(t,e,o)})),t("getMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=O(o)),x(t,e,o)})),t("getOwnMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=O(o)),w(t,e,o)})),t("getMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return z(e)||(e=O(e)),q(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return z(e)||(e=O(e)),k(t,e)})),t("deleteMetadata",(function(t,e,o){if(!S(e))throw new TypeError;if(z(o)||(o=O(o)),!S(e))throw new TypeError;z(o)||(o=O(o));var r=H(e,o,!1);return!z(r)&&r.OrdinaryDeleteMetadata(t,e,o)}))}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(r||(r={}))}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,o),i.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};o.d(r,{tz:()=>je,O2:()=>G,m$:()=>Y,Il:()=>F,P7:()=>U,Dg:()=>N,ho:()=>V,OU:()=>$,Kt:()=>Rl,$4:()=>we,ZF:()=>Re,dm:()=>Le,No:()=>Oe,SD:()=>Ee,RK:()=>Be,R$:()=>Ge,kq:()=>Xe,bA:()=>Je,U6:()=>eo,OK:()=>ul,hX:()=>ql,V9:()=>zl,FX:()=>El,j_:()=>$l,PK:()=>Ll,N6:()=>Dl,Cv:()=>Nl,vn:()=>Xl,zZ:()=>jl,k$:()=>P,xC:()=>O,G8:()=>R,bj:()=>H,Nw:()=>ye,Tt:()=>qe,Ng:()=>Z,Ty:()=>Kl,f_:()=>Ql,Qg:()=>Jl,BL:()=>K,BV:()=>J,bX:()=>Q,Yq:()=>Fl,c7:()=>D,_e:()=>T,Tj:()=>Gl,cK:()=>Yl,B_:()=>ke,I6:()=>I,aA:()=>L,$p:()=>C,$7:()=>Vl,V2:()=>M});var n,i={};o.r(i),o.d(i,{afterMain:()=>qo,afterRead:()=>xo,afterWrite:()=>zo,applyStyles:()=>$o,arrow:()=>Jo,auto:()=>ao,basePlacements:()=>bo,beforeMain:()=>wo,beforeRead:()=>vo,beforeWrite:()=>ko,bottom:()=>ro,clippingParents:()=>co,computeStyles:()=>or,createPopper:()=>Cr,createPopperBase:()=>Or,createPopperLite:()=>$r,detectOverflow:()=>vr,end:()=>so,eventListeners:()=>nr,flip:()=>hr,hide:()=>yr,left:()=>io,main:()=>yo,modifierPhases:()=>jo,offset:()=>qr,placements:()=>uo,popper:()=>po,popperGenerator:()=>Er,popperOffsets:()=>kr,preventOverflow:()=>_r,read:()=>ho,reference:()=>mo,right:()=>no,start:()=>lo,top:()=>oo,variationPlacements:()=>go,viewport:()=>fo,write:()=>_o}),o(630),function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(n||(n={}));const a=n;var b=function(t,e){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},b(t,e)};function l(t,e){function o(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}function s(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],r=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return a}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}function f(t){return!!t.useClass}function p(t){return!!t.useFactory}var m=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,o=this,r=!1;return new Proxy({},this.createHandler((function(){return r||(e=t(o.wrap()),r=!0),e})))},t.prototype.createHandler=function(t){var e={};return this.reflectMethods.forEach((function(o){e[o]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e[0]=t(),Reflect[o].apply(void 0,c(e))}})),e},t}();function g(t){return"string"==typeof t||"symbol"==typeof t}function u(t){return"object"==typeof t&&"token"in t&&"transform"in t}function v(t){return!!t.useToken}function h(t){return null!=t.useValue}const x=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}(),w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(x),y=function(){this.scopedResolutions=new Map};var q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(x),k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(x);const _=function(){this.preResolution=new q,this.postResolution=new k};var z=new Map,j=function(){function t(t){this.parent=t,this._registry=new w,this.interceptors=new _,this.disposed=!1,this.disposables=new Set}return t.prototype.register=function(t,e,o){var r;if(void 0===o&&(o={lifecycle:a.Transient}),this.ensureNotDisposed(),r=function(t){return f(t)||h(t)||v(t)||p(t)}(e)?e:{useClass:e},v(r))for(var n=[t],i=r;null!=i;){var b=i.useToken;if(n.includes(b))throw new Error("Token registration cycle detected! "+c(n,[b]).join(" -> "));n.push(b);var l=this._registry.get(b);i=l&&v(l.provider)?l.provider:null}if((o.lifecycle===a.Singleton||o.lifecycle==a.ContainerScoped||o.lifecycle==a.ResolutionScoped)&&(h(r)||p(r)))throw new Error('Cannot use lifecycle "'+a[o.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(t,{provider:r,options:o}),this},t.prototype.registerType=function(t,e){return this.ensureNotDisposed(),g(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(),g(t)){if(g(e))return this.register(t,{useToken:e},{lifecycle:a.Singleton});if(e)return this.register(t,{useClass:e},{lifecycle:a.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var o=t;return e&&!g(e)&&(o=e),this.register(t,{useClass:o},{lifecycle:a.Singleton})},t.prototype.resolve=function(t,e){void 0===e&&(e=new y),this.ensureNotDisposed();var o=this.getRegistration(t);if(!o&&g(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"Single"),o){var r=this.resolveRegistration(o,e);return this.executePostResolutionInterceptor(t,r,"Single"),r}if(function(t){return"function"==typeof t||t instanceof m}(t))return r=this.construct(t,e),this.executePostResolutionInterceptor(t,r,"Single"),r;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 o,r;if(this.interceptors.preResolution.has(t)){var n=[];try{for(var i=s(this.interceptors.preResolution.getAll(t)),a=i.next();!a.done;a=i.next()){var b=a.value;"Once"!=b.options.frequency&&n.push(b),b.callback(t,e)}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}this.interceptors.preResolution.setAll(t,n)}},t.prototype.executePostResolutionInterceptor=function(t,e,o){var r,n;if(this.interceptors.postResolution.has(t)){var i=[];try{for(var a=s(this.interceptors.postResolution.getAll(t)),b=a.next();!b.done;b=a.next()){var l=b.value;"Once"!=l.options.frequency&&i.push(l),l.callback(t,e,o)}}catch(t){r={error:t}}finally{try{b&&!b.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}this.interceptors.postResolution.setAll(t,i)}},t.prototype.resolveRegistration=function(t,e){if(this.ensureNotDisposed(),t.options.lifecycle===a.ResolutionScoped&&e.scopedResolutions.has(t))return e.scopedResolutions.get(t);var o,r=t.options.lifecycle===a.Singleton,n=t.options.lifecycle===a.ContainerScoped,i=r||n;return o=h(t.provider)?t.provider.useValue:v(t.provider)?i?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):f(t.provider)?i?t.instance||(t.instance=this.construct(t.provider.useClass,e)):this.construct(t.provider.useClass,e):p(t.provider)?t.provider.useFactory(this):this.construct(t.provider,e),t.options.lifecycle===a.ResolutionScoped&&e.scopedResolutions.set(t,o),o},t.prototype.resolveAll=function(t,e){var o=this;void 0===e&&(e=new y),this.ensureNotDisposed();var r=this.getAllRegistrations(t);if(!r&&g(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"All"),r){var n=r.map((function(t){return o.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 o=s(this._registry.entries()),r=o.next();!r.done;r=o.next()){var n=d(r.value,2),i=n[0],a=n[1];this._registry.setAll(i,a.filter((function(t){return!h(t.provider)})).map((function(t){return t.instance=void 0,t})))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},t.prototype.createChildContainer=function(){var e,o;this.ensureNotDisposed();var r=new t(this);try{for(var n=s(this._registry.entries()),i=n.next();!i.done;i=n.next()){var b=d(i.value,2),l=b[0],c=b[1];c.some((function(t){return t.options.lifecycle===a.ContainerScoped}))&&r._registry.setAll(l,c.map((function(t){return t.options.lifecycle===a.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(e)throw e.error}}return r},t.prototype.beforeResolution=function(t,e,o){void 0===o&&(o={frequency:"Always"}),this.interceptors.preResolution.set(t,{callback:e,options:o})},t.prototype.afterResolution=function(t,e,o){void 0===o&&(o={frequency:"Always"}),this.interceptors.postResolution.set(t,{callback:e,options:o})},t.prototype.dispose=function(){return function(t,e,o,r){return new(o||(o=Promise))((function(n,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function b(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(a,b)}l((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function(){var t;return function(t,e){var o,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:b(0),throw:b(1),return:b(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function b(i){return function(b){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{o=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,b])}}}(this,(function(e){switch(e.label){case 0:return this.disposed=!0,t=[],this.disposables.forEach((function(e){var o=e.dispose();o&&t.push(o)})),[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 o=this;if(t instanceof m)return t.createProxy((function(t){return o.resolve(t,e)}));var r,n=function(){var r=z.get(t);if(!r||0===r.length){if(0===t.length)return new t;throw new Error('TypeInfo not known for "'+t.name+'"')}var n=r.map(o.resolveParams(e,t));return new(t.bind.apply(t,c([void 0],n)))}();return"function"!=typeof(r=n).dispose||r.dispose.length>0||this.disposables.add(n),n},t.prototype.resolveParams=function(t,e){var o=this;return function(r,n){var i,a,b,l;try{return"object"==typeof(l=r)&&"token"in l&&"multiple"in l?u(r)?r.multiple?(i=o.resolve(r.transform)).transform.apply(i,c([o.resolveAll(r.token)],r.transformArgs)):(a=o.resolve(r.transform)).transform.apply(a,c([o.resolve(r.token,t)],r.transformArgs)):r.multiple?o.resolveAll(r.token):o.resolve(r.token,t):u(r)?(b=o.resolve(r.transform,t)).transform.apply(b,c([o.resolve(r.token,t)],r.transformArgs)):o.resolve(r,t)}catch(t){throw new Error(function(t,e,o){var r,n,i=d(t.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(t,e,o){return void 0===o&&(o=" "),c([t],e.message.split("\n").map((function(t){return o+t}))).join("\n")}("Cannot inject the dependency "+(n=e,(null===(r=void 0===i?null:i)?"at position #"+n:'"'+r.split(",")[n].trim()+'" at position #'+n)+' of "')+t.name+'" constructor. Reason:',o)}(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 j,A="injectionTokens";const E=function(){return function(t){z.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],o=Reflect.getOwnMetadata(A,t)||{};return Object.keys(o).forEach((function(t){e[+t]=o[t]})),e}(t))}};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.");class O{constructor(t,e){this.container=t,this.options=e}getService(t){return this.container.resolve(t)}}const C=window?.qbo4?.services||new O(S.createChildContainer(),{});"undefined"!=typeof window&&(window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new O(S.createChildContainer(),{}),window.qbo4.services);const $="ApiServiceToken",R="ValidateToken";function T(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 o in t){const r=t[o];if(Array.isArray(r))return r;if("object"==typeof r){const t=T(r,e);if(t)return t}}return null}function M(t,...e){const o=/\${(.*?)}/g;let r=t;for(let t=0;t<e.length;t++){const n=e[t];r=r.replace(o,((t,e)=>{const o=e.split(/\.|\[|\]/).filter((t=>""!==t));let r=n;for(let e of o){if(void 0===r[e])return t;r=r[e]}return r}))}return r=r.replace(o,(()=>"")),r}function L(t,e,o,r=!0){if(null!=t&&null!=e){for(;r&&t.firstChild;)t.removeChild(t.firstChild);o.map(((o,r)=>{const n=e.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${r}`),n.firstElementChild.innerHTML=M(n.firstElementChild?.innerHTML??"",o)),t.appendChild(n)}))}}class P{constructor(t,e={},o=null){this.relativePath="",this.apiEndpoint=t,this.headers=e,this.method=o}async fetch(t,e){this.apiEndpoint.indexOf("//")<0&&(this.apiEndpoint=new URL(this.apiEndpoint,document.location.origin).href);const o=M(new URL(t??this.relativePath,this.apiEndpoint).href,e),r=this.method??(e?"POST":"GET"),n=new Headers(this.headers||{});e&&!n.has("Content-Type")&&n.append("Content-Type","application/json");const i=await fetch(o,{method:r,headers:n,body:"POST"===r&&e?JSON.stringify(e):null}),a=n.get("Accept")??"";return i.ok?"application/json"===a?await i.json():await i.text():(console.error(`API request failed with status ${i.status}`),null)}clone(t){const e=new P(this.apiEndpoint,this.headers,this.method);return e.relativePath=t??"",e}}function I(t,e,o={"Content-Type":"application/json"},r){C.container.registerInstance(t,new P(e,o,r))}function D(t){"string"!=typeof t&&(t=t.href);const e=t.match(/api:\/\/([^/]+)/),o=e?e[1]:t,r=e?t.substring(`api://${o}`.length+1):"",n=C.container.isRegistered(o)?C.container.resolve(o):new P(t);return r?n.clone(r):n}C.container.registerInstance("default",new P(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var B=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};let H=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};H=B([E()],H),C.container.register(R,{useClass:H});let N=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};N=B([E()],N),C.container.register(R,{useClass:N});let V=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 o=t.getAttribute("data-exists-path");const r=C.container.isRegistered(e)?C.container.resolve(e):new P(e);if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement){const e=T(await r.fetch(o,{value:t.value}));return null!=e&&e.length>0}return!1}};V=B([E()],V),C.container.register(R,{useClass:V});class G{constructor(){this.operator="=",this.value=null}}class F{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const U="DependencyValidatorOptions",W=new Map([["!=",(t,e)=>!Yl(t.value,e)],[">=",(t,e)=>t.value>=e],["<=",(t,e)=>t.value<=e],["=",(t,e)=>Yl(t.value,e)],[">",(t,e)=>t.value>e],["<",(t,e)=>t.value<e]]),X=Array.from(W.keys());let Y=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 o;o="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=!o),t.classList.toggle(e.disabledClass,!o);const r=Q(t,"input,select,textarea");return o?e.disableChildren&&r.forEach((t=>t.removeAttribute("disabled"))):(e.disableChildren&&r.forEach((t=>t.setAttribute("disabled","disabled"))),e.resetOnDisable?r.forEach((t=>J(t))):e.emptyOnDisable&&r.forEach((t=>Z(t)))),Promise.resolve(o)}getOptions(t){let e=this.optionsCache.get(t);if(!e){try{e=Object.assign({},this.options,K(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=X.find((e=>t.includes(e)))??"!=",o=null,r="";if(e){const n=t.split(e);o=n[0],r=n[1]??""}else t.startsWith("!")?(e="=",o=t.substring(1)):o=t;const n=this.form.querySelector(`#${CSS.escape(o)}`)??this.form.querySelector(`[name="${CSS.escape(o)}"]`);return n instanceof HTMLInputElement?"checkbox"===n.type||"radio"===n.type?"!="===e?()=>n.checked:()=>!n.checked:()=>W.get(e)(n,r):n instanceof HTMLSelectElement?()=>W.get(e)(n,r):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)}"]`)}};function K(t,e,o="options"){const r={},n=`${e}${o}`,i=t.getAttributeNames();for(const a of i)if(a.startsWith(e)){const i=a.slice(e.length);if(null!=o&&a===n)try{const e=JSON.parse(t.getAttribute(a));Object.assign(r,e)}catch(e){console.error(`Error parsing JSON from element ${t.name} attribute ${n} (${t.getAttribute(a)}):`,t,e)}else r[i]=t.getAttribute(a)}return r}function Q(t,e){const o=Array.from(t.querySelectorAll(e));return t.matches(e)&&o.unshift(t),o}function J(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 Z(t){t instanceof HTMLInputElement?"checkbox"===t.type||"radio"===t.type?t.checked=!1:t.value="":t instanceof HTMLSelectElement&&(t.options.selectedIndex=0)}var tt,et,ot,rt;Y=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a}([E(),(tt=1,ot=U,rt=ot,et=function(t,e,o){var r=Reflect.getOwnMetadata(A,t)||{};r[o]=rt,Reflect.defineMetadata(A,r,t)},function(t,e){et(t,e,tt)}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[HTMLFormElement,F])],Y),C.container.register(U,{useValue:new F}),C.container.register(R,{useClass:Y});const nt=globalThis,it=nt.ShadowRoot&&(void 0===nt.ShadyCSS||nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,at=Symbol(),bt=new WeakMap;class lt{constructor(t,e,o){if(this._$cssResult$=!0,o!==at)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(it&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=bt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&bt.set(e,t))}return t}toString(){return this.cssText}}const st=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,r)=>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.")})(o)+t[r+1]),t[0]);return new lt(o,t,at)},dt=(t,e)=>{if(it)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=nt.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}},ct=it?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new lt("string"==typeof t?t:t+"",void 0,at))(e)})(t):t,{is:ft,defineProperty:pt,getOwnPropertyDescriptor:mt,getOwnPropertyNames:gt,getOwnPropertySymbols:ut,getPrototypeOf:vt}=Object,ht=globalThis,xt=ht.trustedTypes,wt=xt?xt.emptyScript:"",yt=ht.reactiveElementPolyfillSupport,qt=(t,e)=>t,kt={toAttribute(t,e){switch(e){case Boolean:t=t?wt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},_t=(t,e)=>!ft(t,e),zt={attribute:!0,type:String,converter:kt,reflect:!1,hasChanged:_t};Symbol.metadata??=Symbol("metadata"),ht.litPropertyMetadata??=new WeakMap;class jt 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=zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&pt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:n}=mt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const i=r?.call(this);n.call(this,e),this.requestUpdate(t,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(qt("elementProperties")))return;const t=vt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(qt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(qt("properties"))){const t=this.properties,e=[...gt(t),...ut(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(ct(t))}else void 0!==t&&e.push(ct(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"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 o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return dt(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,o){this._$AK(t,o)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const n=(void 0!==o.converter?.toAttribute?o.converter:kt).toAttribute(e,o.type);this._$Em=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:kt;this._$Em=r,this[r]=n.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??_t)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.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,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}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){}}jt.elementStyles=[],jt.shadowRootOptions={mode:"open"},jt[qt("elementProperties")]=new Map,jt[qt("finalized")]=new Map,yt?.({ReactiveElement:jt}),(ht.reactiveElementVersions??=[]).push("2.0.4");const St=globalThis,At=St.trustedTypes,Et=At?At.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ot="$lit$",Ct=`lit$${Math.random().toFixed(9).slice(2)}$`,$t="?"+Ct,Rt=`<${$t}>`,Tt=document,Mt=()=>Tt.createComment(""),Lt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Pt=Array.isArray,It="[ \t\n\f\r]",Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bt=/-->/g,Ht=/>/g,Nt=RegExp(`>|${It}(?:([^\\s"'>=/]+)(${It}*=${It}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Vt=/'/g,Gt=/"/g,Ft=/^(?:script|style|textarea|title)$/i,Ut=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Wt=Ut(1),Xt=Ut(2),Yt=(Ut(3),Symbol.for("lit-noChange")),Kt=Symbol.for("lit-nothing"),Qt=new WeakMap,Jt=Tt.createTreeWalker(Tt,129);function Zt(t,e){if(!Pt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Et?Et.createHTML(e):e}const te=(t,e)=>{const o=t.length-1,r=[];let n,i=2===e?"<svg>":3===e?"<math>":"",a=Dt;for(let e=0;e<o;e++){const o=t[e];let b,l,s=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===Dt?"!--"===l[1]?a=Bt:void 0!==l[1]?a=Ht:void 0!==l[2]?(Ft.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=Nt):void 0!==l[3]&&(a=Nt):a===Nt?">"===l[0]?(a=n??Dt,s=-1):void 0===l[1]?s=-2:(s=a.lastIndex-l[2].length,b=l[1],a=void 0===l[3]?Nt:'"'===l[3]?Gt:Vt):a===Gt||a===Vt?a=Nt:a===Bt||a===Ht?a=Dt:(a=Nt,n=void 0);const c=a===Nt&&t[e+1].startsWith("/>")?" ":"";i+=a===Dt?o+Rt:s>=0?(r.push(b),o.slice(0,s)+Ot+o.slice(s)+Ct+c):o+Ct+(-2===s?e:c)}return[Zt(t,i+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class ee{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let n=0,i=0;const a=t.length-1,b=this.parts,[l,s]=te(t,e);if(this.el=ee.createElement(l,o),Jt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=Jt.nextNode())&&b.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Ot)){const e=s[i++],o=r.getAttribute(t).split(Ct),a=/([.?@])?(.*)/.exec(e);b.push({type:1,index:n,name:a[2],strings:o,ctor:"."===a[1]?ae:"?"===a[1]?be:"@"===a[1]?le:ie}),r.removeAttribute(t)}else t.startsWith(Ct)&&(b.push({type:6,index:n}),r.removeAttribute(t));if(Ft.test(r.tagName)){const t=r.textContent.split(Ct),e=t.length-1;if(e>0){r.textContent=At?At.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Mt()),Jt.nextNode(),b.push({type:2,index:++n});r.append(t[e],Mt())}}}else if(8===r.nodeType)if(r.data===$t)b.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(Ct,t+1));)b.push({type:7,index:n}),t+=Ct.length-1}n++}}static createElement(t,e){const o=Tt.createElement("template");return o.innerHTML=t,o}}function oe(t,e,o=t,r){if(e===Yt)return e;let n=void 0!==r?o._$Co?.[r]:o._$Cl;const i=Lt(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,o,r)),void 0!==r?(o._$Co??=[])[r]=n:o._$Cl=n),void 0!==n&&(e=oe(t,n._$AS(t,e.values),n,r)),e}class re{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:o}=this._$AD,r=(t?.creationScope??Tt).importNode(e,!0);Jt.currentNode=r;let n=Jt.nextNode(),i=0,a=0,b=o[0];for(;void 0!==b;){if(i===b.index){let e;2===b.type?e=new ne(n,n.nextSibling,this,t):1===b.type?e=new b.ctor(n,b.name,b.strings,this,t):6===b.type&&(e=new se(n,this,t)),this._$AV.push(e),b=o[++a]}i!==b?.index&&(n=Jt.nextNode(),i++)}return Jt.currentNode=Tt,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class ne{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=Kt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.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=oe(this,t,e),Lt(t)?t===Kt||null==t||""===t?(this._$AH!==Kt&&this._$AR(),this._$AH=Kt):t!==this._$AH&&t!==Yt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Pt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Kt&&Lt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Tt.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ee.createElement(Zt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new re(r,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Qt.get(t.strings);return void 0===e&&Qt.set(t.strings,e=new ee(t)),e}k(t){Pt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,r=0;for(const n of t)r===e.length?e.push(o=new ne(this.O(Mt()),this.O(Mt()),this,this.options)):o=e[r],o._$AI(n),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$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 ie{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,n){this.type=1,this._$AH=Kt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Kt}_$AI(t,e=this,o,r){const n=this.strings;let i=!1;if(void 0===n)t=oe(this,t,e,0),i=!Lt(t)||t!==this._$AH&&t!==Yt,i&&(this._$AH=t);else{const r=t;let a,b;for(t=n[0],a=0;a<n.length-1;a++)b=oe(this,r[o+a],e,a),b===Yt&&(b=this._$AH[a]),i||=!Lt(b)||b!==this._$AH[a],b===Kt?t=Kt:t!==Kt&&(t+=(b??"")+n[a+1]),this._$AH[a]=b}i&&!r&&this.j(t)}j(t){t===Kt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ae extends ie{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Kt?void 0:t}}class be extends ie{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Kt)}}class le extends ie{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=oe(this,t,e,0)??Kt)===Yt)return;const o=this._$AH,r=t===Kt&&o!==Kt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==Kt&&(o===Kt||r);r&&this.element.removeEventListener(this.name,this,o),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 se{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){oe(this,t)}}const de=St.litHtmlPolyfillSupport;de?.(ee,ne),(St.litHtmlVersions??=[]).push("3.2.1");class ce extends jt{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,o)=>{const r=o?.renderBefore??e;let n=r._$litPart$;if(void 0===n){const t=o?.renderBefore??null;r._$litPart$=n=new ne(e.insertBefore(Mt(),t),t,void 0,o??{})}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 Yt}}ce._$litElement$=!0,ce.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ce});const fe=globalThis.litElementPolyfillSupport;fe?.({LitElement:ce}),(globalThis.litElementVersions??=[]).push("4.1.1");const pe=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},me={attribute:!0,type:String,converter:kt,reflect:!1,hasChanged:_t},ge=(t=me,e,o)=>{const{kind:r,metadata:n}=o;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(o.name,t),"accessor"===r){const{name:r}=o;return{set(o){const n=e.get.call(this);e.set.call(this,o),this.requestUpdate(r,n,t)},init(e){return void 0!==e&&this.P(r,void 0,t),e}}}if("setter"===r){const{name:r}=o;return function(o){const n=this[r];e.call(this,o),this.requestUpdate(r,n,t)}}throw Error("Unsupported decorator location: "+r)};function ue(t){return(e,o)=>"object"==typeof o?ge(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}function ve(t){return ue({...t,state:!0,attribute:!1})}var he=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},xe=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let we=class extends ce{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null}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 o=e.getAttribute("name"),r=e.textContent;o&&r&&(t[o]=r)})),t.ContentType&&(t["Content-Type"]=t.ContentType,delete t.ContentType),this.apiEndpoint?.startsWith("http")||(this.apiEndpoint=new URL(this.apiEndpoint??"",document.location.origin).href),I(this.name,this.apiEndpoint,t,this.method)}render(){return Wt``}};he([ue({type:String}),xe("design:type",Object)],we.prototype,"name",void 0),he([ue({type:String}),xe("design:type",Object)],we.prototype,"apiEndpoint",void 0),he([ue(),xe("design:type",Object)],we.prototype,"method",void 0),we=he([pe("qbo-api")],we);const ye=st`
2
+ var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof o.g?o.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){}}(),r=n(t);function n(t,e){return function(o,r){Object.defineProperty(t,o,{configurable:!0,writable:!0,value:r}),e&&e(o,r)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var o=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,n=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,b={__proto__:[]}instanceof Array,l=!a&&!b,s={create:a?function(){return N(Object.create(null))}:b?function(){return N({__proto__:null})}:function(){return N({})},has:l?function(t,e){return o.call(t,e)}:function(t,e){return e in t},get:l?function(t,e){return o.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},d=Object.getPrototypeOf(Function),c="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],o=function(){function t(t,e,o){this._index=0,this._keys=t,this._values=e,this._selector=o}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 o=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:o,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}(),r=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 o=this._find(t,!0);return this._values[o]=e,this},e.prototype.delete=function(e){var o=this._find(e,!1);if(o>=0){for(var r=this._keys.length,n=o+1;n<r;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,T(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 o(this._keys,this._values,n)},e.prototype.values=function(){return new o(this._keys,this._values,a)},e.prototype.entries=function(){return new o(this._keys,this._values,b)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!T(this._cacheKey,t)){this._cacheIndex=-1;for(var o=0;o<this._keys.length;o++)if(T(this._keys[o],t)){this._cacheIndex=o;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();return r;function n(t,e){return t}function a(t,e){return e}function b(t,e){return[t,e]}}(),f="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new c}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}(),p="function"==typeof WeakMap?WeakMap:function(){var t=s.create(),e=r();return function(){function t(){this._key=r()}return t.prototype.has=function(t){var e=n(t,!1);return void 0!==e&&s.has(e,this._key)},t.prototype.get=function(t){var e=n(t,!1);return void 0!==e?s.get(e,this._key):void 0},t.prototype.set=function(t,e){return n(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=n(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=r()},t}();function r(){var e;do{e="@@WeakMap@@"+a()}while(s.has(t,e));return t[e]=!0,e}function n(t,r){if(!o.call(t,e)){if(!r)return;Object.defineProperty(t,e,{value:s.create()})}return t[e]}function i(t,e){for(var o=0;o<e;++o)t[o]=255*Math.random()|0;return t}function a(){var t=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,t),e}return i(new Array(t),t)}(16);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",o=0;o<16;++o){var r=t[o];4!==o&&6!==o&&8!==o||(e+="-"),r<16&&(e+="0"),e+=r.toString(16).toLowerCase()}return e}}(),m=r?Symbol.for("@reflect-metadata:registry"):void 0,g=function(){var t;return!z(m)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[m]),z(t)&&(t=function(){var t,o,r,n;z(m)||void 0===e.Reflect||m in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,o=t.hasOwnMetadata,r=t.getOwnMetadata,n=t.getOwnMetadataKeys,i=t.deleteMetadata,a=new p,b={isProviderFor:function(t,e){var o=a.get(t);return!(z(o)||!o.has(e))||!!n(t,e).length&&(z(o)&&(o=new f,a.set(t,o)),o.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:o,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i};return b}(e.Reflect));var i=new p,a={registerProvider:b,getProvider:s,setProvider:g};return a;function b(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case z(o):o=e;break;case o===e:break;case z(r):r=e;break;case r===e:break;default:void 0===n&&(n=new f),n.add(e)}}function l(e,i){if(!z(o)){if(o.isProviderFor(e,i))return o;if(!z(r)){if(r.isProviderFor(e,i))return o;if(!z(n))for(var a=L(n);;){var b=I(a);if(!b)return;var l=P(b);if(l.isProviderFor(e,i))return D(a),l}}}if(!z(t)&&t.isProviderFor(e,i))return t}function s(t,e){var o,r=i.get(t);return z(r)||(o=r.get(e)),z(o)?(z(o=l(t,e))||(z(r)&&(r=new c,i.set(t,r)),r.set(e,o)),o):o}function d(t){if(z(t))throw new TypeError;return o===t||r===t||!z(n)&&n.has(t)}function g(t,e,o){if(!d(o))throw new Error("Metadata provider not registered.");var r=s(t,e);if(r!==o){if(!z(r))return!1;var n=i.get(t);z(n)&&(n=new c,i.set(t,n)),n.set(e,o)}return!0}}()),!z(m)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,m,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),u=function(t){var e=new p,o={isProviderFor:function(t,o){var r=e.get(t);return!z(r)&&r.has(o)},OrdinaryDefineOwnMetadata:function(t,e,o,n){r(o,n,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,o){var n=r(e,o,!1);return!z(n)&&E(n.has(t))},OrdinaryGetOwnMetadata:function(t,e,o){var n=r(e,o,!1);if(!z(n))return n.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var o=[],n=r(t,e,!1);if(z(n))return o;for(var i=L(n.keys()),a=0;;){var b=I(i);if(!b)return o.length=a,o;var l=P(b);try{o[a]=l}catch(t){try{D(i)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,o,n){var i=r(o,n,!1);if(z(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var a=e.get(o);z(a)||(a.delete(n),0===a.size&&e.delete(a))}return!0}};return g.registerProvider(o),o;function r(r,n,i){var a=e.get(r),b=!1;if(z(a)){if(!i)return;a=new c,e.set(r,a),b=!0}var l=a.get(n);if(z(l)){if(!i)return;if(l=new c,a.set(n,l),!t.setProvider(r,n,o))throw a.delete(n),b&&e.delete(r),new Error("Wrong provider for target.")}return l}}(g);function v(t,e,o){if(h(t,e,o))return!0;var r=B(e);return!j(r)&&v(t,r,o)}function h(t,e,o){var r=H(e,o,!1);return!z(r)&&E(r.OrdinaryHasOwnMetadata(t,e,o))}function x(t,e,o){if(h(t,e,o))return w(t,e,o);var r=B(e);return j(r)?void 0:x(t,r,o)}function w(t,e,o){var r=H(e,o,!1);if(!z(r))return r.OrdinaryGetOwnMetadata(t,e,o)}function y(t,e,o,r){H(o,r,!0).OrdinaryDefineOwnMetadata(t,e,o,r)}function q(t,e){var o=k(t,e),r=B(t);if(null===r)return o;var n=q(r,e);if(n.length<=0)return o;if(o.length<=0)return n;for(var i=new f,a=[],b=0,l=o;b<l.length;b++){var s=l[b];i.has(s)||(i.add(s),a.push(s))}for(var d=0,c=n;d<c.length;d++)s=c[d],i.has(s)||(i.add(s),a.push(s));return a}function k(t,e){var o=H(t,e,!1);return o?o.OrdinaryOwnMetadataKeys(t,e):[]}function _(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 z(t){return void 0===t}function j(t){return null===t}function S(t){return"object"==typeof t?null!==t:"function"==typeof t}function A(t,e){switch(_(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var o=3===e?"string":5===e?"number":"default",r=M(t,n);if(void 0!==r){var i=r.call(t,o);if(S(i))throw new TypeError;return i}return function(t,e){if("string"===e){var o=t.toString;if($(o)&&!S(n=o.call(t)))return n;if($(r=t.valueOf)&&!S(n=r.call(t)))return n}else{var r;if($(r=t.valueOf)&&!S(n=r.call(t)))return n;var n,i=t.toString;if($(i)&&!S(n=i.call(t)))return n}throw new TypeError}(t,"default"===o?"number":o)}function E(t){return!!t}function O(t){var e=A(t,3);return function(t){return"symbol"==typeof t}(e)?e:function(t){return""+t}(e)}function C(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function $(t){return"function"==typeof t}function R(t){return"function"==typeof t}function T(t,e){return t===e||t!=t&&e!=e}function M(t,e){var o=t[e];if(null!=o){if(!$(o))throw new TypeError;return o}}function L(t){var e=M(t,i);if(!$(e))throw new TypeError;var o=e.call(t);if(!S(o))throw new TypeError;return o}function P(t){return t.value}function I(t){var e=t.next();return!e.done&&e}function D(t){var e=t.return;e&&e.call(t)}function B(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===d)return e;if(e!==d)return e;var o=t.prototype,r=o&&Object.getPrototypeOf(o);if(null==r||r===Object.prototype)return e;var n=r.constructor;return"function"!=typeof n||n===t?e:n}function H(t,e,o){var r=g.getProvider(t,e);if(!z(r))return r;if(o){if(g.setProvider(t,e,u))return u;throw new Error("Illegal state.")}}function N(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,o,r){if(z(o)){if(!C(t))throw new TypeError;if(!R(e))throw new TypeError;return function(t,e){for(var o=t.length-1;o>=0;--o){var r=(0,t[o])(e);if(!z(r)&&!j(r)){if(!R(r))throw new TypeError;e=r}}return e}(t,e)}if(!C(t))throw new TypeError;if(!S(e))throw new TypeError;if(!S(r)&&!z(r)&&!j(r))throw new TypeError;return j(r)&&(r=void 0),function(t,e,o,r){for(var n=t.length-1;n>=0;--n){var i=(0,t[n])(e,o,r);if(!z(i)&&!j(i)){if(!S(i))throw new TypeError;r=i}}return r}(t,e,o=O(o),r)})),t("metadata",(function(t,e){return function(o,r){if(!S(o))throw new TypeError;if(!z(r)&&!function(t){switch(_(t)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;y(t,e,o,r)}})),t("defineMetadata",(function(t,e,o,r){if(!S(o))throw new TypeError;return z(r)||(r=O(r)),y(t,e,o,r)})),t("hasMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=O(o)),v(t,e,o)})),t("hasOwnMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=O(o)),h(t,e,o)})),t("getMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=O(o)),x(t,e,o)})),t("getOwnMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=O(o)),w(t,e,o)})),t("getMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return z(e)||(e=O(e)),q(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return z(e)||(e=O(e)),k(t,e)})),t("deleteMetadata",(function(t,e,o){if(!S(e))throw new TypeError;if(z(o)||(o=O(o)),!S(e))throw new TypeError;z(o)||(o=O(o));var r=H(e,o,!1);return!z(r)&&r.OrdinaryDeleteMetadata(t,e,o)}))}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(r||(r={}))}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,o),i.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};o.d(r,{tz:()=>je,O2:()=>G,m$:()=>Y,Il:()=>F,P7:()=>U,Dg:()=>N,ho:()=>V,OU:()=>$,Kt:()=>Rl,$4:()=>we,ZF:()=>Re,dm:()=>Le,No:()=>Oe,SD:()=>Ee,RK:()=>Be,R$:()=>Ge,kq:()=>Xe,bA:()=>Je,U6:()=>eo,OK:()=>ul,hX:()=>ql,V9:()=>zl,FX:()=>El,j_:()=>$l,PK:()=>Ll,N6:()=>Dl,Cv:()=>Nl,vn:()=>Yl,zZ:()=>jl,k$:()=>P,xC:()=>O,G8:()=>R,bj:()=>H,Nw:()=>ye,Tt:()=>qe,Ng:()=>Z,Ty:()=>Ql,f_:()=>Jl,Qg:()=>Zl,BL:()=>K,BV:()=>J,bX:()=>Q,Yq:()=>Ul,c7:()=>D,_e:()=>T,Tj:()=>Gl,fj:()=>Fl,cK:()=>Kl,B_:()=>ke,I6:()=>I,aA:()=>L,$p:()=>C,$7:()=>Vl,V2:()=>M});var n,i={};o.r(i),o.d(i,{afterMain:()=>qo,afterRead:()=>xo,afterWrite:()=>zo,applyStyles:()=>$o,arrow:()=>Jo,auto:()=>ao,basePlacements:()=>bo,beforeMain:()=>wo,beforeRead:()=>vo,beforeWrite:()=>ko,bottom:()=>ro,clippingParents:()=>co,computeStyles:()=>or,createPopper:()=>Cr,createPopperBase:()=>Or,createPopperLite:()=>$r,detectOverflow:()=>vr,end:()=>so,eventListeners:()=>nr,flip:()=>hr,hide:()=>yr,left:()=>io,main:()=>yo,modifierPhases:()=>jo,offset:()=>qr,placements:()=>uo,popper:()=>po,popperGenerator:()=>Er,popperOffsets:()=>kr,preventOverflow:()=>_r,read:()=>ho,reference:()=>mo,right:()=>no,start:()=>lo,top:()=>oo,variationPlacements:()=>go,viewport:()=>fo,write:()=>_o}),o(630),function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(n||(n={}));const a=n;var b=function(t,e){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},b(t,e)};function l(t,e){function o(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}function s(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],r=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return a}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}function f(t){return!!t.useClass}function p(t){return!!t.useFactory}var m=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,o=this,r=!1;return new Proxy({},this.createHandler((function(){return r||(e=t(o.wrap()),r=!0),e})))},t.prototype.createHandler=function(t){var e={};return this.reflectMethods.forEach((function(o){e[o]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e[0]=t(),Reflect[o].apply(void 0,c(e))}})),e},t}();function g(t){return"string"==typeof t||"symbol"==typeof t}function u(t){return"object"==typeof t&&"token"in t&&"transform"in t}function v(t){return!!t.useToken}function h(t){return null!=t.useValue}const x=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}(),w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(x),y=function(){this.scopedResolutions=new Map};var q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(x),k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(x);const _=function(){this.preResolution=new q,this.postResolution=new k};var z=new Map,j=function(){function t(t){this.parent=t,this._registry=new w,this.interceptors=new _,this.disposed=!1,this.disposables=new Set}return t.prototype.register=function(t,e,o){var r;if(void 0===o&&(o={lifecycle:a.Transient}),this.ensureNotDisposed(),r=function(t){return f(t)||h(t)||v(t)||p(t)}(e)?e:{useClass:e},v(r))for(var n=[t],i=r;null!=i;){var b=i.useToken;if(n.includes(b))throw new Error("Token registration cycle detected! "+c(n,[b]).join(" -> "));n.push(b);var l=this._registry.get(b);i=l&&v(l.provider)?l.provider:null}if((o.lifecycle===a.Singleton||o.lifecycle==a.ContainerScoped||o.lifecycle==a.ResolutionScoped)&&(h(r)||p(r)))throw new Error('Cannot use lifecycle "'+a[o.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(t,{provider:r,options:o}),this},t.prototype.registerType=function(t,e){return this.ensureNotDisposed(),g(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(),g(t)){if(g(e))return this.register(t,{useToken:e},{lifecycle:a.Singleton});if(e)return this.register(t,{useClass:e},{lifecycle:a.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var o=t;return e&&!g(e)&&(o=e),this.register(t,{useClass:o},{lifecycle:a.Singleton})},t.prototype.resolve=function(t,e){void 0===e&&(e=new y),this.ensureNotDisposed();var o=this.getRegistration(t);if(!o&&g(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"Single"),o){var r=this.resolveRegistration(o,e);return this.executePostResolutionInterceptor(t,r,"Single"),r}if(function(t){return"function"==typeof t||t instanceof m}(t))return r=this.construct(t,e),this.executePostResolutionInterceptor(t,r,"Single"),r;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 o,r;if(this.interceptors.preResolution.has(t)){var n=[];try{for(var i=s(this.interceptors.preResolution.getAll(t)),a=i.next();!a.done;a=i.next()){var b=a.value;"Once"!=b.options.frequency&&n.push(b),b.callback(t,e)}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}this.interceptors.preResolution.setAll(t,n)}},t.prototype.executePostResolutionInterceptor=function(t,e,o){var r,n;if(this.interceptors.postResolution.has(t)){var i=[];try{for(var a=s(this.interceptors.postResolution.getAll(t)),b=a.next();!b.done;b=a.next()){var l=b.value;"Once"!=l.options.frequency&&i.push(l),l.callback(t,e,o)}}catch(t){r={error:t}}finally{try{b&&!b.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}this.interceptors.postResolution.setAll(t,i)}},t.prototype.resolveRegistration=function(t,e){if(this.ensureNotDisposed(),t.options.lifecycle===a.ResolutionScoped&&e.scopedResolutions.has(t))return e.scopedResolutions.get(t);var o,r=t.options.lifecycle===a.Singleton,n=t.options.lifecycle===a.ContainerScoped,i=r||n;return o=h(t.provider)?t.provider.useValue:v(t.provider)?i?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):f(t.provider)?i?t.instance||(t.instance=this.construct(t.provider.useClass,e)):this.construct(t.provider.useClass,e):p(t.provider)?t.provider.useFactory(this):this.construct(t.provider,e),t.options.lifecycle===a.ResolutionScoped&&e.scopedResolutions.set(t,o),o},t.prototype.resolveAll=function(t,e){var o=this;void 0===e&&(e=new y),this.ensureNotDisposed();var r=this.getAllRegistrations(t);if(!r&&g(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"All"),r){var n=r.map((function(t){return o.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 o=s(this._registry.entries()),r=o.next();!r.done;r=o.next()){var n=d(r.value,2),i=n[0],a=n[1];this._registry.setAll(i,a.filter((function(t){return!h(t.provider)})).map((function(t){return t.instance=void 0,t})))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},t.prototype.createChildContainer=function(){var e,o;this.ensureNotDisposed();var r=new t(this);try{for(var n=s(this._registry.entries()),i=n.next();!i.done;i=n.next()){var b=d(i.value,2),l=b[0],c=b[1];c.some((function(t){return t.options.lifecycle===a.ContainerScoped}))&&r._registry.setAll(l,c.map((function(t){return t.options.lifecycle===a.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(e)throw e.error}}return r},t.prototype.beforeResolution=function(t,e,o){void 0===o&&(o={frequency:"Always"}),this.interceptors.preResolution.set(t,{callback:e,options:o})},t.prototype.afterResolution=function(t,e,o){void 0===o&&(o={frequency:"Always"}),this.interceptors.postResolution.set(t,{callback:e,options:o})},t.prototype.dispose=function(){return function(t,e,o,r){return new(o||(o=Promise))((function(n,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function b(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(a,b)}l((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function(){var t;return function(t,e){var o,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:b(0),throw:b(1),return:b(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function b(i){return function(b){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{o=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,b])}}}(this,(function(e){switch(e.label){case 0:return this.disposed=!0,t=[],this.disposables.forEach((function(e){var o=e.dispose();o&&t.push(o)})),[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 o=this;if(t instanceof m)return t.createProxy((function(t){return o.resolve(t,e)}));var r,n=function(){var r=z.get(t);if(!r||0===r.length){if(0===t.length)return new t;throw new Error('TypeInfo not known for "'+t.name+'"')}var n=r.map(o.resolveParams(e,t));return new(t.bind.apply(t,c([void 0],n)))}();return"function"!=typeof(r=n).dispose||r.dispose.length>0||this.disposables.add(n),n},t.prototype.resolveParams=function(t,e){var o=this;return function(r,n){var i,a,b,l;try{return"object"==typeof(l=r)&&"token"in l&&"multiple"in l?u(r)?r.multiple?(i=o.resolve(r.transform)).transform.apply(i,c([o.resolveAll(r.token)],r.transformArgs)):(a=o.resolve(r.transform)).transform.apply(a,c([o.resolve(r.token,t)],r.transformArgs)):r.multiple?o.resolveAll(r.token):o.resolve(r.token,t):u(r)?(b=o.resolve(r.transform,t)).transform.apply(b,c([o.resolve(r.token,t)],r.transformArgs)):o.resolve(r,t)}catch(t){throw new Error(function(t,e,o){var r,n,i=d(t.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(t,e,o){return void 0===o&&(o=" "),c([t],e.message.split("\n").map((function(t){return o+t}))).join("\n")}("Cannot inject the dependency "+(n=e,(null===(r=void 0===i?null:i)?"at position #"+n:'"'+r.split(",")[n].trim()+'" at position #'+n)+' of "')+t.name+'" constructor. Reason:',o)}(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 j,A="injectionTokens";const E=function(){return function(t){z.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],o=Reflect.getOwnMetadata(A,t)||{};return Object.keys(o).forEach((function(t){e[+t]=o[t]})),e}(t))}};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.");class O{constructor(t,e){this.container=t,this.options=e}getService(t){return this.container.resolve(t)}}const C=window?.qbo4?.services||new O(S.createChildContainer(),{});"undefined"!=typeof window&&(window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new O(S.createChildContainer(),{}),window.qbo4.services);const $="ApiServiceToken",R="ValidateToken";function T(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 o in t){const r=t[o];if(Array.isArray(r))return r;if("object"==typeof r){const t=T(r,e);if(t)return t}}return null}function M(t,...e){const o=/\${(.*?)}/g;let r=t;for(let t=0;t<e.length;t++){const n=e[t];r=r.replace(o,((t,e)=>{const o=e.split(/\.|\[|\]/).filter((t=>""!==t));let r=n;for(let e of o){if(void 0===r[e])return t;r=r[e]}return r}))}return r=r.replace(o,(()=>"")),r}function L(t,e,o,r=!0){if(null!=t&&null!=e){for(;r&&t.firstChild;)t.removeChild(t.firstChild);o.map(((o,r)=>{const n=e.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${r}`),n.firstElementChild.innerHTML=M(n.firstElementChild?.innerHTML??"",o)),t.appendChild(n)}))}}class P{constructor(t,e={},o=null){this.relativePath="",this.apiEndpoint=t,this.headers=e,this.method=o}async fetch(t,e){this.apiEndpoint.indexOf("//")<0&&(this.apiEndpoint=new URL(this.apiEndpoint,document.location.origin).href);const o=M(new URL(t??this.relativePath,this.apiEndpoint).href,e),r=this.method??(e?"POST":"GET"),n=new Headers(this.headers||{});e&&!n.has("Content-Type")&&n.append("Content-Type","application/json");const i=await fetch(o,{method:r,headers:n,body:"POST"===r&&e?JSON.stringify(e):null}),a=n.get("Accept")??"";return i.ok?"application/json"===a?await i.json():await i.text():(console.error(`API request failed with status ${i.status}`),null)}clone(t){const e=new P(this.apiEndpoint,this.headers,this.method);return e.relativePath=t??"",e}}function I(t,e,o={"Content-Type":"application/json"},r){C.container.registerInstance(t,new P(e,o,r))}function D(t){"string"!=typeof t&&(t=t.href);const e=t.match(/api:\/\/([^/]+)/),o=e?e[1]:t,r=e?t.substring(`api://${o}`.length+1):"",n=C.container.isRegistered(o)?C.container.resolve(o):new P(t);return r?n.clone(r):n}C.container.registerInstance("default",new P(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var B=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};let H=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};H=B([E()],H),C.container.register(R,{useClass:H});let N=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};N=B([E()],N),C.container.register(R,{useClass:N});let V=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 o=t.getAttribute("data-exists-path");const r=C.container.isRegistered(e)?C.container.resolve(e):new P(e);if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement){const e=T(await r.fetch(o,{value:t.value}));return null!=e&&e.length>0}return!1}};V=B([E()],V),C.container.register(R,{useClass:V});class G{constructor(){this.operator="=",this.value=null}}class F{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const U="DependencyValidatorOptions",W=new Map([["!=",(t,e)=>!Kl(t.value,e)],[">=",(t,e)=>t.value>=e],["<=",(t,e)=>t.value<=e],["=",(t,e)=>Kl(t.value,e)],[">",(t,e)=>t.value>e],["<",(t,e)=>t.value<e]]),X=Array.from(W.keys());let Y=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 o;o="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=!o),t.classList.toggle(e.disabledClass,!o);const r=Q(t,"input,select,textarea");return o?e.disableChildren&&r.forEach((t=>t.removeAttribute("disabled"))):(e.disableChildren&&r.forEach((t=>t.setAttribute("disabled","disabled"))),e.resetOnDisable?r.forEach((t=>J(t))):e.emptyOnDisable&&r.forEach((t=>Z(t)))),Promise.resolve(o)}getOptions(t){let e=this.optionsCache.get(t);if(!e){try{e=Object.assign({},this.options,K(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=X.find((e=>t.includes(e)))??"!=",o=null,r="";if(e){const n=t.split(e);o=n[0],r=n[1]??""}else t.startsWith("!")?(e="=",o=t.substring(1)):o=t;const n=this.form.querySelector(`#${CSS.escape(o)}`)??this.form.querySelector(`[name="${CSS.escape(o)}"]`);return n instanceof HTMLInputElement?"checkbox"===n.type||"radio"===n.type?"!="===e?()=>n.checked:()=>!n.checked:()=>W.get(e)(n,r):n instanceof HTMLSelectElement?()=>W.get(e)(n,r):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)}"]`)}};function K(t,e,o="options"){const r={},n=`${e}${o}`,i=t.getAttributeNames();for(const a of i)if(a.startsWith(e)){const i=a.slice(e.length);if(null!=o&&a===n)try{const e=JSON.parse(t.getAttribute(a));Object.assign(r,e)}catch(e){console.error(`Error parsing JSON from element ${t.name} attribute ${n} (${t.getAttribute(a)}):`,t,e)}else r[i]=t.getAttribute(a)}return r}function Q(t,e){const o=Array.from(t.querySelectorAll(e));return t.matches(e)&&o.unshift(t),o}function J(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 Z(t){t instanceof HTMLInputElement?"checkbox"===t.type||"radio"===t.type?t.checked=!1:t.value="":t instanceof HTMLSelectElement&&(t.options.selectedIndex=0)}var tt,et,ot,rt;Y=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a}([E(),(tt=1,ot=U,rt=ot,et=function(t,e,o){var r=Reflect.getOwnMetadata(A,t)||{};r[o]=rt,Reflect.defineMetadata(A,r,t)},function(t,e){et(t,e,tt)}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[HTMLFormElement,F])],Y),C.container.register(U,{useValue:new F}),C.container.register(R,{useClass:Y});const nt=globalThis,it=nt.ShadowRoot&&(void 0===nt.ShadyCSS||nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,at=Symbol(),bt=new WeakMap;class lt{constructor(t,e,o){if(this._$cssResult$=!0,o!==at)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(it&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=bt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&bt.set(e,t))}return t}toString(){return this.cssText}}const st=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,r)=>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.")})(o)+t[r+1]),t[0]);return new lt(o,t,at)},dt=(t,e)=>{if(it)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=nt.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}},ct=it?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new lt("string"==typeof t?t:t+"",void 0,at))(e)})(t):t,{is:ft,defineProperty:pt,getOwnPropertyDescriptor:mt,getOwnPropertyNames:gt,getOwnPropertySymbols:ut,getPrototypeOf:vt}=Object,ht=globalThis,xt=ht.trustedTypes,wt=xt?xt.emptyScript:"",yt=ht.reactiveElementPolyfillSupport,qt=(t,e)=>t,kt={toAttribute(t,e){switch(e){case Boolean:t=t?wt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},_t=(t,e)=>!ft(t,e),zt={attribute:!0,type:String,converter:kt,reflect:!1,hasChanged:_t};Symbol.metadata??=Symbol("metadata"),ht.litPropertyMetadata??=new WeakMap;class jt 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=zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&pt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:n}=mt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const i=r?.call(this);n.call(this,e),this.requestUpdate(t,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(qt("elementProperties")))return;const t=vt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(qt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(qt("properties"))){const t=this.properties,e=[...gt(t),...ut(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(ct(t))}else void 0!==t&&e.push(ct(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"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 o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return dt(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,o){this._$AK(t,o)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const n=(void 0!==o.converter?.toAttribute?o.converter:kt).toAttribute(e,o.type);this._$Em=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:kt;this._$Em=r,this[r]=n.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??_t)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.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,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}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){}}jt.elementStyles=[],jt.shadowRootOptions={mode:"open"},jt[qt("elementProperties")]=new Map,jt[qt("finalized")]=new Map,yt?.({ReactiveElement:jt}),(ht.reactiveElementVersions??=[]).push("2.0.4");const St=globalThis,At=St.trustedTypes,Et=At?At.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ot="$lit$",Ct=`lit$${Math.random().toFixed(9).slice(2)}$`,$t="?"+Ct,Rt=`<${$t}>`,Tt=document,Mt=()=>Tt.createComment(""),Lt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Pt=Array.isArray,It="[ \t\n\f\r]",Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bt=/-->/g,Ht=/>/g,Nt=RegExp(`>|${It}(?:([^\\s"'>=/]+)(${It}*=${It}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Vt=/'/g,Gt=/"/g,Ft=/^(?:script|style|textarea|title)$/i,Ut=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Wt=Ut(1),Xt=Ut(2),Yt=(Ut(3),Symbol.for("lit-noChange")),Kt=Symbol.for("lit-nothing"),Qt=new WeakMap,Jt=Tt.createTreeWalker(Tt,129);function Zt(t,e){if(!Pt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Et?Et.createHTML(e):e}const te=(t,e)=>{const o=t.length-1,r=[];let n,i=2===e?"<svg>":3===e?"<math>":"",a=Dt;for(let e=0;e<o;e++){const o=t[e];let b,l,s=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===Dt?"!--"===l[1]?a=Bt:void 0!==l[1]?a=Ht:void 0!==l[2]?(Ft.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=Nt):void 0!==l[3]&&(a=Nt):a===Nt?">"===l[0]?(a=n??Dt,s=-1):void 0===l[1]?s=-2:(s=a.lastIndex-l[2].length,b=l[1],a=void 0===l[3]?Nt:'"'===l[3]?Gt:Vt):a===Gt||a===Vt?a=Nt:a===Bt||a===Ht?a=Dt:(a=Nt,n=void 0);const c=a===Nt&&t[e+1].startsWith("/>")?" ":"";i+=a===Dt?o+Rt:s>=0?(r.push(b),o.slice(0,s)+Ot+o.slice(s)+Ct+c):o+Ct+(-2===s?e:c)}return[Zt(t,i+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class ee{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let n=0,i=0;const a=t.length-1,b=this.parts,[l,s]=te(t,e);if(this.el=ee.createElement(l,o),Jt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=Jt.nextNode())&&b.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Ot)){const e=s[i++],o=r.getAttribute(t).split(Ct),a=/([.?@])?(.*)/.exec(e);b.push({type:1,index:n,name:a[2],strings:o,ctor:"."===a[1]?ae:"?"===a[1]?be:"@"===a[1]?le:ie}),r.removeAttribute(t)}else t.startsWith(Ct)&&(b.push({type:6,index:n}),r.removeAttribute(t));if(Ft.test(r.tagName)){const t=r.textContent.split(Ct),e=t.length-1;if(e>0){r.textContent=At?At.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Mt()),Jt.nextNode(),b.push({type:2,index:++n});r.append(t[e],Mt())}}}else if(8===r.nodeType)if(r.data===$t)b.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(Ct,t+1));)b.push({type:7,index:n}),t+=Ct.length-1}n++}}static createElement(t,e){const o=Tt.createElement("template");return o.innerHTML=t,o}}function oe(t,e,o=t,r){if(e===Yt)return e;let n=void 0!==r?o._$Co?.[r]:o._$Cl;const i=Lt(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,o,r)),void 0!==r?(o._$Co??=[])[r]=n:o._$Cl=n),void 0!==n&&(e=oe(t,n._$AS(t,e.values),n,r)),e}class re{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:o}=this._$AD,r=(t?.creationScope??Tt).importNode(e,!0);Jt.currentNode=r;let n=Jt.nextNode(),i=0,a=0,b=o[0];for(;void 0!==b;){if(i===b.index){let e;2===b.type?e=new ne(n,n.nextSibling,this,t):1===b.type?e=new b.ctor(n,b.name,b.strings,this,t):6===b.type&&(e=new se(n,this,t)),this._$AV.push(e),b=o[++a]}i!==b?.index&&(n=Jt.nextNode(),i++)}return Jt.currentNode=Tt,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class ne{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=Kt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.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=oe(this,t,e),Lt(t)?t===Kt||null==t||""===t?(this._$AH!==Kt&&this._$AR(),this._$AH=Kt):t!==this._$AH&&t!==Yt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Pt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Kt&&Lt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Tt.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ee.createElement(Zt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new re(r,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Qt.get(t.strings);return void 0===e&&Qt.set(t.strings,e=new ee(t)),e}k(t){Pt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,r=0;for(const n of t)r===e.length?e.push(o=new ne(this.O(Mt()),this.O(Mt()),this,this.options)):o=e[r],o._$AI(n),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$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 ie{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,n){this.type=1,this._$AH=Kt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Kt}_$AI(t,e=this,o,r){const n=this.strings;let i=!1;if(void 0===n)t=oe(this,t,e,0),i=!Lt(t)||t!==this._$AH&&t!==Yt,i&&(this._$AH=t);else{const r=t;let a,b;for(t=n[0],a=0;a<n.length-1;a++)b=oe(this,r[o+a],e,a),b===Yt&&(b=this._$AH[a]),i||=!Lt(b)||b!==this._$AH[a],b===Kt?t=Kt:t!==Kt&&(t+=(b??"")+n[a+1]),this._$AH[a]=b}i&&!r&&this.j(t)}j(t){t===Kt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ae extends ie{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Kt?void 0:t}}class be extends ie{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Kt)}}class le extends ie{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=oe(this,t,e,0)??Kt)===Yt)return;const o=this._$AH,r=t===Kt&&o!==Kt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==Kt&&(o===Kt||r);r&&this.element.removeEventListener(this.name,this,o),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 se{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){oe(this,t)}}const de=St.litHtmlPolyfillSupport;de?.(ee,ne),(St.litHtmlVersions??=[]).push("3.2.1");class ce extends jt{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,o)=>{const r=o?.renderBefore??e;let n=r._$litPart$;if(void 0===n){const t=o?.renderBefore??null;r._$litPart$=n=new ne(e.insertBefore(Mt(),t),t,void 0,o??{})}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 Yt}}ce._$litElement$=!0,ce.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ce});const fe=globalThis.litElementPolyfillSupport;fe?.({LitElement:ce}),(globalThis.litElementVersions??=[]).push("4.1.1");const pe=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},me={attribute:!0,type:String,converter:kt,reflect:!1,hasChanged:_t},ge=(t=me,e,o)=>{const{kind:r,metadata:n}=o;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(o.name,t),"accessor"===r){const{name:r}=o;return{set(o){const n=e.get.call(this);e.set.call(this,o),this.requestUpdate(r,n,t)},init(e){return void 0!==e&&this.P(r,void 0,t),e}}}if("setter"===r){const{name:r}=o;return function(o){const n=this[r];e.call(this,o),this.requestUpdate(r,n,t)}}throw Error("Unsupported decorator location: "+r)};function ue(t){return(e,o)=>"object"==typeof o?ge(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}function ve(t){return ue({...t,state:!0,attribute:!1})}var he=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},xe=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let we=class extends ce{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null}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 o=e.getAttribute("name"),r=e.textContent;o&&r&&(t[o]=r)})),t.ContentType&&(t["Content-Type"]=t.ContentType,delete t.ContentType),this.apiEndpoint?.startsWith("http")||(this.apiEndpoint=new URL(this.apiEndpoint??"",document.location.origin).href),I(this.name,this.apiEndpoint,t,this.method)}render(){return Wt``}};he([ue({type:String}),xe("design:type",Object)],we.prototype,"name",void 0),he([ue({type:String}),xe("design:type",Object)],we.prototype,"apiEndpoint",void 0),he([ue(),xe("design:type",Object)],we.prototype,"method",void 0),we=he([pe("qbo-api")],we);const ye=st`
3
3
  @charset "UTF-8";/*!
4
4
  * Bootstrap v5.3.1 (https://getbootstrap.com/)
5
5
  * Copyright 2011-2023 The Bootstrap Authors
@@ -35,26 +35,26 @@ var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globa
35
35
  `]}async connectedCallback(){super.connectedCallback()}render(){return Wt`<iframe src='sample.pdf' width='100%' height='800px' frameborder='0'></iframe>`}};Te([ue({type:Boolean}),Me("design:type",Object)],Le.prototype,"open",void 0),Te([ue({type:Boolean}),Me("design:type",Object)],Le.prototype,"loading",void 0),Te([ue({type:Boolean}),Me("design:type",Object)],Le.prototype,"renderInHost",void 0),Le=Te([pe("qbo-docviewer")],Le);var Pe=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ie=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const De=new Map;De.set("defaultLayout",(t=>Wt`<div slot="content">
36
36
  <span>Created:</span>
37
37
  <br/>
38
- <span>${Jl(t.CreatedDate)}</span>
38
+ <span>${Zl(t.CreatedDate)}</span>
39
39
  <br/>
40
40
  <span>${t.CreatedPerson}</span>
41
41
  <br/>
42
42
  <br/>
43
43
  <span>Updated:</span>
44
44
  <br/>
45
- <span>${Jl(t.UpdatedDate)}</span>
45
+ <span>${Zl(t.UpdatedDate)}</span>
46
46
  <br/>
47
47
  <span>${t.UpdatedPerson}</span>
48
48
  </div>`)),De.set("createdLayout",(t=>Wt`<div slot="content">
49
49
  <span>Created:</span>
50
50
  <br/>
51
- <span>${Jl(t.CreatedDate)}</span>
51
+ <span>${Zl(t.CreatedDate)}</span>
52
52
  <br/>
53
53
  <span>${t.CreatedPerson}</span>
54
54
  </div>`)),De.set("updatedLayout",(t=>Wt`<div slot="content">
55
55
  <span>Updated:</span>
56
56
  <br/>
57
- <span>${Jl(t.UpdatedDate)}</span>
57
+ <span>${Zl(t.UpdatedDate)}</span>
58
58
  <br/>
59
59
  <span>${t.UpdatedPerson}</span>
60
60
  </div>`));let Be=class extends ce{constructor(){super(...arguments),this.aDropdownClass="dropdown-item qbo-pointer",this.buttonPrimaryClass="qbo-primary",this.buttonPrimaryDropdownClass="qbo-primary-dropdown",this.buttonType="button",this.data={},this.divButtonGroupClass="qbo-btn-group",this.divFormActionClass="qbo-form-actions",this.divSectionHeaderClass="qbo-header",this.dropdownToggle="dropdown",this.editLabel="Edit",this.helpIcon="qbo-icon-question",this.helpText="Help",this.historyIcon="qbo-icon-clock-history",this.historyText="History",this.infoButtonClass="qbo-btn-light",this.infoIconClass="qbo-icon-info",this.infoTitle="Last Updated",this.popoverClass="qbo-float-end",this.spanEditClass="qbo-icon-edit",this.ulDropdownClass="dropdown-menu",this.type="defaultLayout",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){null==this.type&&(this.type="defaultLayout");const t=De.has(this.type)?De.get(this.type)(this.data):null;return Wt`<slot>
@@ -108,7 +108,7 @@ var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globa
108
108
  </div>
109
109
  </div>`}renderIcon(t){return null==t.icon&&(console.warn("qbo-icon: icon attribute is required"),t.icon=t.unknown),Fe.has(t.icon)||(console.warn(`qbo-icon: icon attribute is not valid. Valid values are: ${Array.from(Fe.keys()).join(" ")}`),t.icon=t.unknown),Wt`<svg width="${t.width}" height="${t.width}" fill="${t.fill}" ?class=${t.getAttribute("class")} viewBox="${t.viewbox}">${t.backgroundColor?Xt`<rect width="${t.width}" height="${t.height}" fill="${t.backgroundColor}" />`:Xt``}${Fe.get(t.icon)}</svg>`}renderButton(t){return Wt`<button type="button" ?disabled=${t.disabled}>${t.renderIcon(t)}</button>`}render(){switch(this.type){case"icon":default:return this.renderIcon(this);case"button":return this.renderButton(this);case"all":return this.renderAll(this)}}};Ue([ue(),We("design:type",String)],Xe.prototype,"type",void 0),Ue([ue(),We("design:type",Object)],Xe.prototype,"icon",void 0),Ue([ue(),We("design:type",Number)],Xe.prototype,"height",void 0),Ue([ue(),We("design:type",Number)],Xe.prototype,"width",void 0),Ue([ue(),We("design:type",String)],Xe.prototype,"viewbox",void 0),Ue([ue(),We("design:type",String)],Xe.prototype,"fill",void 0),Ue([ue(),We("design:type",Object)],Xe.prototype,"backgroundColor",void 0),Ue([ue(),We("design:type",String)],Xe.prototype,"unknown",void 0),Ue([ue(),We("design:type",Boolean)],Xe.prototype,"disabled",void 0),Ue([ue({type:Boolean,reflect:!0}),We("design:type",Object)],Xe.prototype,"renderInHost",void 0),Xe=Ue([pe("qbo-icon")],Xe);var Ye,Ke=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Qe=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Je=class extends ce{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{Ye=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 o=this.target;if(o instanceof HTMLInputElement)"radio"===o.type?o.value===e&&(o.checked=!0):this.continuous?o.value+=e:o.value=e;else if(o instanceof HTMLTextAreaElement)this.continuous?o.value+=e:o.value=e;else if(o instanceof HTMLSelectElement)for(let t=0;t<o.options.length;t++)if(o.options[t].value===e||o.options[t].text===e){o.selectedIndex=t;break}}listen(t){this.listening?this.stop(t):this.start()}start(){this.listening=!0,Ye.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(t){this.listening=!1,Ye.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 Wt`<slot></slot>`}};Ke([ue({type:Boolean}),Qe("design:type",Object)],Je.prototype,"renderInHost",void 0),Ke([ue({type:Boolean}),Qe("design:type",Object)],Je.prototype,"continuous",void 0),Ke([ue({type:Boolean}),Qe("design:type",Object)],Je.prototype,"interimResults",void 0),Ke([ue({type:Number}),Qe("design:type",Object)],Je.prototype,"maxAlternatives",void 0),Ke([ue({type:String}),Qe("design:type",Object)],Je.prototype,"for",void 0),Ke([ue({type:String}),Qe("design:type",Object)],Je.prototype,"class",void 0),Ke([ue({type:String}),Qe("design:type",Object)],Je.prototype,"activeClass",void 0),Je=Ye=Ke([pe("qbo-microphone")],Je);var Ze=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},to=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let eo=class extends ce{constructor(){super(...arguments),this.display=25,this.start=0,this.count=0,this.pageLimit=10,this.currentPage=1,this.rollingView=!0,this.editSize=!0}get maxPage(){return Math.floor(this.count/this.display)+(this.count%this.display==0?0:1)}static{this.styles=[ke,st``]}goToPage(t){this.currentPage=t,this.dispatchEvent(new CustomEvent("change",{detail:{start:(t-1)*this.display,display:this.display,page:t},bubbles:!0,composed:!0}))}renderPage(t){return Wt`<li class="${this.currentPage===t?"active":""}">
110
110
  <a @click="${e=>this.goToPage(t)}">${t}</a>
111
- </li>`}renderSpacer(){return Wt`<li class="disabled"><a>...</a></li>`}renderPageNumbers(){const t=[];let e=this.maxPage>this.pageLimit?this.currentPage-Math.floor(this.pageLimit/2):1;e<0&&(e=0);let o=this.maxPage>this.pageLimit?e+this.pageLimit-1:this.maxPage;o<=1&&(o=1),e>1&&(t.push(this.renderPage(1)),t.push(this.renderSpacer()));for(let r=e;r<=o;r++)t.push(this.renderPage(r));return o<this.maxPage&&(t.push(this.renderSpacer()),t.push(this.renderPage(this.maxPage))),t}setDisplaySize(t){const e=t.target,o=parseInt(e.value);isNaN(o)||(this.display=o,this.start=0,this.goToPage(1))}renderPageSize(){return Wt`<li class="pageSize">
111
+ </li>`}renderSpacer(){return Wt`<li class="disabled"><a>...</a></li>`}renderPageNumbers(){const t=[];let e=this.maxPage>this.pageLimit?this.currentPage-Math.floor(this.pageLimit/2):1;e<1&&(e=1);let o=this.maxPage>this.pageLimit?e+this.pageLimit-1:this.maxPage;o<=1&&(o=1),e>1&&(t.push(this.renderPage(1)),t.push(this.renderSpacer()));for(let r=e;r<=o;r++)t.push(this.renderPage(r));return o<this.maxPage&&(t.push(this.renderSpacer()),t.push(this.renderPage(this.maxPage))),t}setDisplaySize(t){const e=t.target,o=parseInt(e.value);isNaN(o)||(this.display=o,this.start=0,this.goToPage(1))}renderPageSize(){return Wt`<li class="pageSize">
112
112
  <input type="number" min="5" value="${this.display}" title="Display Size" @change=${t=>this.setDisplaySize(t)}>
113
113
  <span>records per page</span>
114
114
  </li>`}render(){return Wt`
@@ -201,5 +201,5 @@ var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globa
201
201
  </div>
202
202
  </footer>
203
203
  </dialog>
204
- `:Wt``}`}};function Vl(t,e,o="qbo4.ui.preferences"){const r=localStorage.getItem(o);let n={};if(r)try{n=JSON.parse(r)}catch(t){console.error(`Error parsing ${o} from localStorage:`,t,r)}n[t]=e;try{localStorage.setItem(o,JSON.stringify(n))}catch(t){console.error(`Error saving ${o} to localStorage:`,t)}}function Gl(t,e="qbo4.ui.preferences"){const o=localStorage.getItem(e);if(o)try{return JSON.parse(o)[t]}catch(t){console.error(`Error parsing ${e} from localStorage:`,t,o)}}function Fl(t,e=null){const o=e??Gl("dateFormat")??"MM/dd/yyyy",r={};return o.includes("yyyy")&&(r.year="numeric"),o.includes("MM")&&(r.month=o.includes("MMM")?"short":"2-digit"),o.includes("dd")&&(r.day="2-digit"),o.includes("HH")&&(r.hour="2-digit"),o.includes("mm")&&(r.minute="2-digit"),o.includes("ss")&&(r.second="2-digit"),o.includes("tt")&&(r.hour12=!0),o.includes("dddd")&&(r.weekday="long"),o.includes("ddd")&&(r.weekday="short"),new Intl.DateTimeFormat(void 0,r).format(new Date(t))}Bl([ue({type:Object}),Hl("design:type",Object)],Nl.prototype,"preferences",void 0),Bl([ue(),Hl("design:type",String)],Nl.prototype,"key",void 0),Bl([ve(),Hl("design:type",Object)],Nl.prototype,"isEditing",void 0),Nl=Bl([pe("qbo-user-preferences"),Hl("design:paramtypes",[])],Nl);var Ul=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Wl=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Xl=class extends ce{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 o=await t.validate(e);this.workingClass.forEach((t=>e.classList.remove(t))),e.setCustomValidity(o?"":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=C.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(R),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 Wt``}};function Yl(t,e,o="*",r=!0){return e=(e=e.replace(/([.+^${}()|[\]\\])/g,"\\$1")).replace(new RegExp("\\"+o,"g"),".*"),new RegExp("^"+e+"$",r?"i":"").test(t)}function Kl(t){const e=t.dataset,o={};for(const t in e)e.hasOwnProperty(t)&&void 0!==e[t]&&(o[t]=e[t]);return o}function Ql(t){return t&&""!=t.trim()?new Date(t).toISOString().slice(0,10):""}function Jl(t){return t&&""!=t.trim()?new Date(t).toLocaleString().replace(",",""):""}Ul([ue({type:Boolean}),Wl("design:type",Object)],Xl.prototype,"renderInHost",void 0),Ul([ue({type:String}),Wl("design:type",Object)],Xl.prototype,"autoComplete",void 0),Ul([ue({type:String}),Wl("design:type",Object)],Xl.prototype,"validatedClass",void 0),Ul([ue({converter:{fromAttribute:(t,e)=>t?.split(" "),toAttribute:(t,e)=>t.join(" ")}}),Wl("design:type",Object)],Xl.prototype,"workingClass",void 0),Xl=Ul([pe("qbo-validate"),Wl("design:paramtypes",[])],Xl);var Zl=r.tz,ts=r.O2,es=r.m$,os=r.Il,rs=r.P7,ns=r.Dg,is=r.ho,as=r.OU,bs=r.Kt,ls=r.$4,ss=r.ZF,ds=r.dm,cs=r.No,fs=r.SD,ps=r.RK,ms=r.R$,gs=r.kq,us=r.bA,vs=r.U6,hs=r.OK,xs=r.hX,ws=r.V9,ys=r.FX,qs=r.j_,ks=r.PK,_s=r.N6,zs=r.Cv,js=r.vn,Ss=r.zZ,As=r.k$,Es=r.xC,Os=r.G8,Cs=r.bj,$s=r.Nw,Rs=r.Tt,Ts=r.Ng,Ms=r.Ty,Ls=r.f_,Ps=r.Qg,Is=r.BL,Ds=r.BV,Bs=r.bX,Hs=r.Yq,Ns=r.c7,Vs=r._e,Gs=r.Tj,Fs=r.cK,Us=r.B_,Ws=r.I6,Xs=r.aA,Ys=r.$p,Ks=r.$7,Qs=r.V2;export{Zl as ContextMenu,ts as Dependency,es as DependencyValidator,os as DependencyValidatorOptions,rs as DependencyValidatorOptionsToken,ns as EmailValidator,is as ExistsValidator,as as IApiServiceToken,bs as Mode,ls as QboApiElement,ss as QboDataList,ds as QboDocViewer,cs as QboFetch,fs as QboFetchMixin,ps as QboFormEdit,ms as QboFormElement,gs as QboIcon,us as QboMicrophone,vs as QboPaginate,hs as QboPopover,xs as QboPopup,ws as QboPopupListener,ys as QboResize,qs as QboSelect,ks as QboSelectable,_s as QboTable,zs as QboUserPreferences,js as QboValidate,Ss as ResizeType,As as RestApiService,Es as Services,Os as ValidateToken,Cs as ZipCodeValidator,$s as bootstrap,Rs as bootstrapicons,Ts as elementClearValue,Ms as elementData,Ls as elementDate,Ps as elementDateTime,Is as elementOptions,Ds as elementResetValue,Bs as elementSelectorAll,Hs as formatDate,Ns as getApiService,Vs as getArray,Gs as getUserPreference,Fs as matches,Us as qboui,Ws as registerRestApi,Xs as replicate,Ys as services,Ks as setUserPreference,Qs as substitute};
204
+ `:Wt``}`}};function Vl(t,e,o="qbo4.ui.preferences"){const r=localStorage.getItem(o);let n={};if(r)try{n=JSON.parse(r)}catch(t){console.error(`Error parsing ${o} from localStorage:`,t,r)}n[t]=e;try{localStorage.setItem(o,JSON.stringify(n))}catch(t){console.error(`Error saving ${o} to localStorage:`,t)}}function Gl(t,e="qbo4.ui.preferences"){const o=localStorage.getItem(e);if(o)try{return JSON.parse(o)[t]}catch(t){console.error(`Error parsing ${e} from localStorage:`,t,o)}}function Fl(t,e=" "){return t.filter(Boolean).join(e)}function Ul(t,e=null){if(null==t||isNaN(new Date(t).getTime()))return null;const o=e??Gl("dateFormat")??"MM/dd/yyyy",r={};return o.includes("yyyy")&&(r.year="numeric"),o.includes("MM")&&(r.month=o.includes("MMM")?"short":"2-digit"),o.includes("dd")&&(r.day="2-digit"),o.includes("HH")&&(r.hour="2-digit"),o.includes("mm")&&(r.minute="2-digit"),o.includes("ss")&&(r.second="2-digit"),o.includes("tt")&&(r.hour12=!0),o.includes("dddd")&&(r.weekday="long"),o.includes("ddd")&&(r.weekday="short"),new Intl.DateTimeFormat(void 0,r).format(new Date(t))}Bl([ue({type:Object}),Hl("design:type",Object)],Nl.prototype,"preferences",void 0),Bl([ue(),Hl("design:type",String)],Nl.prototype,"key",void 0),Bl([ve(),Hl("design:type",Object)],Nl.prototype,"isEditing",void 0),Nl=Bl([pe("qbo-user-preferences"),Hl("design:paramtypes",[])],Nl);var Wl=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Xl=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Yl=class extends ce{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 o=await t.validate(e);this.workingClass.forEach((t=>e.classList.remove(t))),e.setCustomValidity(o?"":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=C.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(R),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 Wt``}};function Kl(t,e,o="*",r=!0){return e=(e=e.replace(/([.+^${}()|[\]\\])/g,"\\$1")).replace(new RegExp("\\"+o,"g"),".*"),new RegExp("^"+e+"$",r?"i":"").test(t)}function Ql(t){const e=t.dataset,o={};for(const t in e)e.hasOwnProperty(t)&&void 0!==e[t]&&(o[t]=e[t]);return o}function Jl(t){return t&&""!=t.trim()?new Date(t).toISOString().slice(0,10):""}function Zl(t){return t&&""!=t.trim()?new Date(t).toLocaleString().replace(",",""):""}Wl([ue({type:Boolean}),Xl("design:type",Object)],Yl.prototype,"renderInHost",void 0),Wl([ue({type:String}),Xl("design:type",Object)],Yl.prototype,"autoComplete",void 0),Wl([ue({type:String}),Xl("design:type",Object)],Yl.prototype,"validatedClass",void 0),Wl([ue({converter:{fromAttribute:(t,e)=>t?.split(" "),toAttribute:(t,e)=>t.join(" ")}}),Xl("design:type",Object)],Yl.prototype,"workingClass",void 0),Yl=Wl([pe("qbo-validate"),Xl("design:paramtypes",[])],Yl);var ts=r.tz,es=r.O2,os=r.m$,rs=r.Il,ns=r.P7,is=r.Dg,as=r.ho,bs=r.OU,ls=r.Kt,ss=r.$4,ds=r.ZF,cs=r.dm,fs=r.No,ps=r.SD,ms=r.RK,gs=r.R$,us=r.kq,vs=r.bA,hs=r.U6,xs=r.OK,ws=r.hX,ys=r.V9,qs=r.FX,ks=r.j_,_s=r.PK,zs=r.N6,js=r.Cv,Ss=r.vn,As=r.zZ,Es=r.k$,Os=r.xC,Cs=r.G8,$s=r.bj,Rs=r.Nw,Ts=r.Tt,Ms=r.Ng,Ls=r.Ty,Ps=r.f_,Is=r.Qg,Ds=r.BL,Bs=r.BV,Hs=r.bX,Ns=r.Yq,Vs=r.c7,Gs=r._e,Fs=r.Tj,Us=r.fj,Ws=r.cK,Xs=r.B_,Ys=r.I6,Ks=r.aA,Qs=r.$p,Js=r.$7,Zs=r.V2;export{ts as ContextMenu,es as Dependency,os as DependencyValidator,rs as DependencyValidatorOptions,ns as DependencyValidatorOptionsToken,is as EmailValidator,as as ExistsValidator,bs as IApiServiceToken,ls as Mode,ss as QboApiElement,ds as QboDataList,cs as QboDocViewer,fs as QboFetch,ps as QboFetchMixin,ms as QboFormEdit,gs as QboFormElement,us as QboIcon,vs as QboMicrophone,hs as QboPaginate,xs as QboPopover,ws as QboPopup,ys as QboPopupListener,qs as QboResize,ks as QboSelect,_s as QboSelectable,zs as QboTable,js as QboUserPreferences,Ss as QboValidate,As as ResizeType,Es as RestApiService,Os as Services,Cs as ValidateToken,$s as ZipCodeValidator,Rs as bootstrap,Ts as bootstrapicons,Ms as elementClearValue,Ls as elementData,Ps as elementDate,Is as elementDateTime,Ds as elementOptions,Bs as elementResetValue,Hs as elementSelectorAll,Ns as formatDate,Vs as getApiService,Gs as getArray,Fs as getUserPreference,Us as join,Ws as matches,Xs as qboui,Ys as registerRestApi,Ks as replicate,Qs as services,Js as setUserPreference,Zs as substitute};
205
205
  //# sourceMappingURL=qbo4.ui.min.js.map