@quandis/qbo4.ui-bridge 4.0.1-CI-20241022-165452 → 4.0.1-CI-20241022-200946

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 ui-bridge.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=i(t);function i(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=i(e.Reflect,r)),function(t,e){var o=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",n=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,l={__proto__:[]}instanceof Array,b=!a&&!l,s={create:a?function(){return N(Object.create(null))}:l?function(){return N({__proto__:null})}:function(){return N({})},has:b?function(t,e){return o.call(t,e)}:function(t,e){return e in t},get:b?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[n]=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,i=o+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];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,i)},e.prototype.values=function(){return new o(this._keys,this._values,a)},e.prototype.entries=function(){return new o(this._keys,this._values,l)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[n]=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 i(t,e){return t}function a(t,e){return e}function l(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[n]=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=i(t,!1);return void 0!==e&&s.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?s.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=r()},t}();function r(){var e;do{e="@@WeakMap@@"+a()}while(s.has(t,e));return t[e]=!0,e}function i(t,r){if(!o.call(t,e)){if(!r)return;Object.defineProperty(t,e,{value:s.create()})}return t[e]}function n(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):n(e,t),e}return n(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,i;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,i=t.getOwnMetadataKeys,n=t.deleteMetadata,a=new p,l={isProviderFor:function(t,e){var o=a.get(t);return!(z(o)||!o.has(e))||!!i(t,e).length&&(z(o)&&(o=new f,a.set(t,o)),o.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:o,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:n};return l}(e.Reflect));var n=new p,a={registerProvider:l,getProvider:s,setProvider:g};return a;function l(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===i&&(i=new f),i.add(e)}}function b(e,n){if(!z(o)){if(o.isProviderFor(e,n))return o;if(!z(r)){if(r.isProviderFor(e,n))return o;if(!z(i))for(var a=L(i);;){var l=I(a);if(!l)return;var b=D(l);if(b.isProviderFor(e,n))return P(a),b}}}if(!z(t)&&t.isProviderFor(e,n))return t}function s(t,e){var o,r=n.get(t);return z(r)||(o=r.get(e)),z(o)?(z(o=b(t,e))||(z(r)&&(r=new c,n.set(t,r)),r.set(e,o)),o):o}function d(t){if(z(t))throw new TypeError;return o===t||r===t||!z(i)&&i.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 i=n.get(t);z(i)&&(i=new c,n.set(t,i)),i.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,i){r(o,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,o){var i=r(e,o,!1);return!z(i)&&$(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,o){var i=r(e,o,!1);if(!z(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var o=[],i=r(t,e,!1);if(z(i))return o;for(var n=L(i.keys()),a=0;;){var l=I(n);if(!l)return o.length=a,o;var b=D(l);try{o[a]=b}catch(t){try{P(n)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,o,i){var n=r(o,i,!1);if(z(n))return!1;if(!n.delete(t))return!1;if(0===n.size){var a=e.get(o);z(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return g.registerProvider(o),o;function r(r,i,n){var a=e.get(r),l=!1;if(z(a)){if(!n)return;a=new c,e.set(r,a),l=!0}var b=a.get(i);if(z(b)){if(!n)return;if(b=new c,a.set(i,b),!t.setProvider(r,i,o))throw a.delete(i),l&&e.delete(r),new Error("Wrong provider for target.")}return b}}(g);function v(t,e,o){if(h(t,e,o))return!0;var r=H(e);return!j(r)&&v(t,r,o)}function h(t,e,o){var r=B(e,o,!1);return!z(r)&&$(r.OrdinaryHasOwnMetadata(t,e,o))}function x(t,e,o){if(h(t,e,o))return w(t,e,o);var r=H(e);return j(r)?void 0:x(t,r,o)}function w(t,e,o){var r=B(e,o,!1);if(!z(r))return r.OrdinaryGetOwnMetadata(t,e,o)}function y(t,e,o,r){B(o,r,!0).OrdinaryDefineOwnMetadata(t,e,o,r)}function q(t,e){var o=k(t,e),r=H(t);if(null===r)return o;var i=q(r,e);if(i.length<=0)return o;if(o.length<=0)return i;for(var n=new f,a=[],l=0,b=o;l<b.length;l++){var s=b[l];n.has(s)||(n.add(s),a.push(s))}for(var d=0,c=i;d<c.length;d++)s=c[d],n.has(s)||(n.add(s),a.push(s));return a}function k(t,e){var o=B(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 C(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,i);if(void 0!==r){var n=r.call(t,o);if(S(n))throw new TypeError;return n}return function(t,e){if("string"===e){var o=t.toString;if(E(o)&&!S(i=o.call(t)))return i;if(E(r=t.valueOf)&&!S(i=r.call(t)))return i}else{var r;if(E(r=t.valueOf)&&!S(i=r.call(t)))return i;var i,n=t.toString;if(E(n)&&!S(i=n.call(t)))return i}throw new TypeError}(t,"default"===o?"number":o)}function $(t){return!!t}function A(t){var e=C(t,3);return function(t){return"symbol"==typeof t}(e)?e:function(t){return""+t}(e)}function O(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(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(!E(o))throw new TypeError;return o}}function L(t){var e=M(t,n);if(!E(e))throw new TypeError;var o=e.call(t);if(!S(o))throw new TypeError;return o}function D(t){return t.value}function I(t){var e=t.next();return!e.done&&e}function P(t){var e=t.return;e&&e.call(t)}function H(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 i=r.constructor;return"function"!=typeof i||i===t?e:i}function B(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(!O(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(!O(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 i=t.length-1;i>=0;--i){var n=(0,t[i])(e,o,r);if(!z(n)&&!j(n)){if(!S(n))throw new TypeError;r=n}}return r}(t,e,o=A(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=A(r)),y(t,e,o,r)})),t("hasMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),v(t,e,o)})),t("hasOwnMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),h(t,e,o)})),t("getMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),x(t,e,o)})),t("getOwnMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),w(t,e,o)})),t("getMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return z(e)||(e=A(e)),q(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return z(e)||(e=A(e)),k(t,e)})),t("deleteMetadata",(function(t,e,o){if(!S(e))throw new TypeError;if(z(o)||(o=A(o)),!S(e))throw new TypeError;z(o)||(o=A(o));var r=B(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 i=e[r];if(void 0!==i)return i.exports;var n=e[r]={exports:{}};return t[r](n,n.exports,o),n.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:()=>_e,O2:()=>F,m$:()=>Y,Il:()=>G,P7:()=>U,Dg:()=>N,ho:()=>V,OU:()=>E,Kt:()=>Ob,$4:()=>we,kq:()=>Zb,hg:()=>os,EC:()=>as,ZF:()=>Oe,dm:()=>Te,No:()=>Ce,SD:()=>Se,RK:()=>Ie,R$:()=>Ne,T4:()=>Ue,$T:()=>ss,bA:()=>Ke,U6:()=>Ze,OK:()=>mb,hX:()=>wb,V9:()=>kb,FX:()=>Sb,bB:()=>us,j_:()=>Ab,PK:()=>Tb,lS:()=>fs,N6:()=>Db,Cv:()=>Hb,vn:()=>Ub,zZ:()=>_b,k$:()=>D,xC:()=>A,G8:()=>R,bj:()=>B,Ng:()=>Z,Ty:()=>Xb,f_:()=>Yb,Qg:()=>Kb,BL:()=>K,BV:()=>J,bX:()=>Q,Yq:()=>Vb,c7:()=>P,_e:()=>T,Tj:()=>Nb,cK:()=>Wb,I6:()=>I,aA:()=>L,$p:()=>O,$7:()=>Bb,V2:()=>M});var i,n={};o.r(n),o.d(n,{afterMain:()=>wo,afterRead:()=>vo,afterWrite:()=>ko,applyStyles:()=>Ao,arrow:()=>Ko,auto:()=>io,basePlacements:()=>no,beforeMain:()=>ho,beforeRead:()=>go,beforeWrite:()=>yo,bottom:()=>eo,clippingParents:()=>bo,computeStyles:()=>tr,createPopper:()=>$r,createPopperBase:()=>Cr,createPopperLite:()=>Ar,detectOverflow:()=>gr,end:()=>lo,eventListeners:()=>or,flip:()=>ur,hide:()=>xr,left:()=>ro,main:()=>xo,modifierPhases:()=>_o,offset:()=>wr,placements:()=>mo,popper:()=>co,popperGenerator:()=>Sr,popperOffsets:()=>yr,preventOverflow:()=>qr,read:()=>uo,reference:()=>fo,right:()=>oo,start:()=>ao,top:()=>to,variationPlacements:()=>po,viewport:()=>so,write:()=>qo}),o(630),function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(i||(i={}));const a=i;var l=function(t,e){return l=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])},l(t,e)};function b(t,e){function o(){this.constructor=t}l(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,i,n=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=n.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.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 b(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 b(e,t),e}(x),k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(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 i=[t],n=r;null!=n;){var l=n.useToken;if(i.includes(l))throw new Error("Token registration cycle detected! "+c(i,[l]).join(" -> "));i.push(l);var b=this._registry.get(l);n=b&&v(b.provider)?b.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 i=[];try{for(var n=s(this.interceptors.preResolution.getAll(t)),a=n.next();!a.done;a=n.next()){var l=a.value;"Once"!=l.options.frequency&&i.push(l),l.callback(t,e)}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}this.interceptors.preResolution.setAll(t,i)}},t.prototype.executePostResolutionInterceptor=function(t,e,o){var r,i;if(this.interceptors.postResolution.has(t)){var n=[];try{for(var a=s(this.interceptors.postResolution.getAll(t)),l=a.next();!l.done;l=a.next()){var b=l.value;"Once"!=b.options.frequency&&n.push(b),b.callback(t,e,o)}}catch(t){r={error:t}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}this.interceptors.postResolution.setAll(t,n)}},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,i=t.options.lifecycle===a.ContainerScoped,n=r||i;return o=h(t.provider)?t.provider.useValue:v(t.provider)?n?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):f(t.provider)?n?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 i=r.map((function(t){return o.resolveRegistration(t,e)}));return this.executePostResolutionInterceptor(t,i,"All"),i}var n=[this.construct(t,e)];return this.executePostResolutionInterceptor(t,n,"All"),n},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 i=d(r.value,2),n=i[0],a=i[1];this._registry.setAll(n,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 i=s(this._registry.entries()),n=i.next();!n.done;n=i.next()){var l=d(n.value,2),b=l[0],c=l[1];c.some((function(t){return t.options.lifecycle===a.ContainerScoped}))&&r._registry.setAll(b,c.map((function(t){return t.options.lifecycle===a.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}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(i,n){function a(t){try{b(r.next(t))}catch(t){n(t)}}function l(t){try{b(r.throw(t))}catch(t){n(t)}}function b(t){var e;t.done?i(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(a,l)}b((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function(){var t;return function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function l(n){return function(l){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,l])}}}(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,i=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 i=r.map(o.resolveParams(e,t));return new(t.bind.apply(t,c([void 0],i)))}();return"function"!=typeof(r=i).dispose||r.dispose.length>0||this.disposables.add(i),i},t.prototype.resolveParams=function(t,e){var o=this;return function(r,i){var n,a,l,b;try{return"object"==typeof(b=r)&&"token"in b&&"multiple"in b?u(r)?r.multiple?(n=o.resolve(r.transform)).transform.apply(n,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)?(l=o.resolve(r.transform,t)).transform.apply(l,c([o.resolve(r.token,t)],r.transformArgs)):o.resolve(r,t)}catch(t){throw new Error(function(t,e,o){var r,i,n=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 "+(i=e,(null===(r=void 0===n?null:n)?"at position #"+i:'"'+r.split(",")[i].trim()+'" at position #'+i)+' of "')+t.name+'" constructor. Reason:',o)}(e,i,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,C="injectionTokens";const $=function(){return function(t){z.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],o=Reflect.getOwnMetadata(C,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 A{constructor(t,e){this.container=t,this.options=e}getService(t){return this.container.resolve(t)}}const O=window?.qbo4?.services||new A(S.createChildContainer(),{});"undefined"!=typeof window&&(window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new A(S.createChildContainer(),{}),window.qbo4.services);const E="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 i=e[t];r=r.replace(o,((t,e)=>{const o=e.split(/\.|\[|\]/).filter((t=>""!==t));let r=i;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 i=e.content.cloneNode(!0);null!=i.firstElementChild&&(i.firstElementChild.setAttribute("data-index",`${r}`),i.firstElementChild.innerHTML=M(i.firstElementChild?.innerHTML??"",o)),t.appendChild(i)}))}}class D{constructor(t,e={"Content-Type":"application/json"},o=null){this.relativePath="",this.apiEndpoint=t,this.headers=e,this.method=o}async fetch(t,e){const o=M(new URL(t??this.relativePath,this.apiEndpoint).href,e),r=this.method??(e?"POST":"GET"),i=new Headers(this.headers||{});e&&!i.has("Content-Type")&&i.append("Content-Type","application/json");const n=await fetch(o,{method:r,headers:i,body:"POST"===r&&e?JSON.stringify(e):null}),a=i.get("Accept")??"";return n.ok?"application/json"===a?await n.json():await n.text():(console.error(`API request failed with status ${n.status}`),null)}clone(t){const e=new D(this.apiEndpoint,this.headers,this.method);return e.relativePath=t??"",e}}function I(t,e,o={"Content-Type":"application/json"},r){O.container.registerInstance(t,new D(e,o,r))}function P(t){const e=t.match(/api:\/\/([^/]+)/),o=e?e[1]:t,r=e?t.substring(`api://${o}`.length+1):"",i=O.container.isRegistered(o)?O.container.resolve(o):new D(t);return r?i.clone(r):i}O.container.registerInstance("default",new D(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var H=function(t,e,o,r){var i,n=arguments.length,a=n<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 l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};let B=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};B=H([$()],B),O.container.register(R,{useClass:B});let N=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};N=H([$()],N),O.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=O.container.isRegistered(e)?O.container.resolve(e):new D(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=H([$()],V),O.container.register(R,{useClass:V});class F{constructor(){this.operator="=",this.value=null}}class G{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)=>!Wb(t.value,e)],[">=",(t,e)=>t.value>=e],["<=",(t,e)=>t.value<=e],["=",(t,e)=>Wb(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 i=t.split(e);o=i[0],r=i[1]??""}else t.startsWith("!")?(e="=",o=t.substring(1)):o=t;const i=this.form.querySelector(`#${CSS.escape(o)}`)??this.form.querySelector(`[name="${CSS.escape(o)}"]`);return i instanceof HTMLInputElement?"checkbox"===i.type||"radio"===i.type?"!="===e?()=>i.checked:()=>!i.checked:()=>W.get(e)(i,r):i instanceof HTMLSelectElement?()=>W.get(e)(i,r):i instanceof HTMLOptionElement?"!="===e?()=>i.selected:()=>!i.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={},i=`${e}${o}`,n=t.getAttributeNames();for(const a of n)if(a.startsWith(e)){const n=a.slice(e.length);if(null!=o&&a===i)try{const e=JSON.parse(t.getAttribute(a));Object.assign(r,e)}catch(e){console.error(`Error parsing JSON from element ${t.name} attribute ${i} (${t.getAttribute(a)}):`,t,e)}else r[n]=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 i,n=arguments.length,a=n<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 l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a}([$(),(tt=1,ot=U,rt=ot,et=function(t,e,o){var r=Reflect.getOwnMetadata(C,t)||{};r[o]=rt,Reflect.defineMetadata(C,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,G])],Y),O.container.register(U,{useValue:new G}),O.container.register(R,{useClass:Y});const it=globalThis,nt=it.ShadowRoot&&(void 0===it.ShadyCSS||it.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,at=Symbol(),lt=new WeakMap;class bt{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(nt&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=lt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&lt.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 bt(o,t,at)},dt=(t,e)=>{if(nt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=it.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}},ct=nt?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new bt("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:i}=mt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,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 i=(void 0!==o.converter?.toAttribute?o.converter:kt).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),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),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:kt;this._$Em=r,this[r]=i.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,Ct=St.trustedTypes,$t=Ct?Ct.createPolicy("lit-html",{createHTML:t=>t}):void 0,At="$lit$",Ot=`lit$${Math.random().toFixed(9).slice(2)}$`,Et="?"+Ot,Rt=`<${Et}>`,Tt=document,Mt=()=>Tt.createComment(""),Lt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Dt=Array.isArray,It="[ \t\n\f\r]",Pt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ht=/-->/g,Bt=/>/g,Nt=RegExp(`>|${It}(?:([^\\s"'>=/]+)(${It}*=${It}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Vt=/'/g,Ft=/"/g,Gt=/^(?: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(!Dt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==$t?$t.createHTML(e):e}const te=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":3===e?"<math>":"",a=Pt;for(let e=0;e<o;e++){const o=t[e];let l,b,s=-1,d=0;for(;d<o.length&&(a.lastIndex=d,b=a.exec(o),null!==b);)d=a.lastIndex,a===Pt?"!--"===b[1]?a=Ht:void 0!==b[1]?a=Bt:void 0!==b[2]?(Gt.test(b[2])&&(i=RegExp("</"+b[2],"g")),a=Nt):void 0!==b[3]&&(a=Nt):a===Nt?">"===b[0]?(a=i??Pt,s=-1):void 0===b[1]?s=-2:(s=a.lastIndex-b[2].length,l=b[1],a=void 0===b[3]?Nt:'"'===b[3]?Ft:Vt):a===Ft||a===Vt?a=Nt:a===Ht||a===Bt?a=Pt:(a=Nt,i=void 0);const c=a===Nt&&t[e+1].startsWith("/>")?" ":"";n+=a===Pt?o+Rt:s>=0?(r.push(l),o.slice(0,s)+At+o.slice(s)+Ot+c):o+Ot+(-2===s?e:c)}return[Zt(t,n+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class ee{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0;const a=t.length-1,l=this.parts,[b,s]=te(t,e);if(this.el=ee.createElement(b,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())&&l.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(At)){const e=s[n++],o=r.getAttribute(t).split(Ot),a=/([.?@])?(.*)/.exec(e);l.push({type:1,index:i,name:a[2],strings:o,ctor:"."===a[1]?ae:"?"===a[1]?le:"@"===a[1]?be:ne}),r.removeAttribute(t)}else t.startsWith(Ot)&&(l.push({type:6,index:i}),r.removeAttribute(t));if(Gt.test(r.tagName)){const t=r.textContent.split(Ot),e=t.length-1;if(e>0){r.textContent=Ct?Ct.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Mt()),Jt.nextNode(),l.push({type:2,index:++i});r.append(t[e],Mt())}}}else if(8===r.nodeType)if(r.data===Et)l.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(Ot,t+1));)l.push({type:7,index:i}),t+=Ot.length-1}i++}}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 i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=Lt(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=oe(t,i._$AS(t,e.values),i,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 i=Jt.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new ie(i,i.nextSibling,this,t):1===l.type?e=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(e=new se(i,this,t)),this._$AV.push(e),l=o[++a]}n!==l?.index&&(i=Jt.nextNode(),n++)}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 ie{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=>Dt(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){Dt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,r=0;for(const i of t)r===e.length?e.push(o=new ie(this.O(Mt()),this.O(Mt()),this,this.options)):o=e[r],o._$AI(i),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 ne{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=Kt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,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 i=this.strings;let n=!1;if(void 0===i)t=oe(this,t,e,0),n=!Lt(t)||t!==this._$AH&&t!==Yt,n&&(this._$AH=t);else{const r=t;let a,l;for(t=i[0],a=0;a<i.length-1;a++)l=oe(this,r[o+a],e,a),l===Yt&&(l=this._$AH[a]),n||=!Lt(l)||l!==this._$AH[a],l===Kt?t=Kt:t!==Kt&&(t+=(l??"")+i[a+1]),this._$AH[a]=l}n&&!r&&this.j(t)}j(t){t===Kt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ae extends ne{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Kt?void 0:t}}class le extends ne{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Kt)}}class be extends ne{constructor(t,e,o,r,i){super(t,e,o,r,i),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,i=t!==Kt&&(o===Kt||r);r&&this.element.removeEventListener(this.name,this,o),i&&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,ie),(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 i=r._$litPart$;if(void 0===i){const t=o?.renderBefore??null;r._$litPart$=i=new ie(e.insertBefore(Mt(),t),t,void 0,o??{})}return i._$AI(t),i})(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:i}=o;let n=globalThis.litPropertyMetadata.get(i);if(void 0===n&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(o.name,t),"accessor"===r){const{name:r}=o;return{set(o){const i=e.get.call(this);e.set.call(this,o),this.requestUpdate(r,i,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 i=this[r];e.call(this,o),this.requestUpdate(r,i,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 i,n=arguments.length,a=n<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 l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>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),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=i(t);function i(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=i(e.Reflect,r)),function(t,e){var o=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",n=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,l={__proto__:[]}instanceof Array,b=!a&&!l,s={create:a?function(){return N(Object.create(null))}:l?function(){return N({__proto__:null})}:function(){return N({})},has:b?function(t,e){return o.call(t,e)}:function(t,e){return e in t},get:b?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[n]=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,i=o+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];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,i)},e.prototype.values=function(){return new o(this._keys,this._values,a)},e.prototype.entries=function(){return new o(this._keys,this._values,l)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[n]=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 i(t,e){return t}function a(t,e){return e}function l(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[n]=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=i(t,!1);return void 0!==e&&s.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?s.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=r()},t}();function r(){var e;do{e="@@WeakMap@@"+a()}while(s.has(t,e));return t[e]=!0,e}function i(t,r){if(!o.call(t,e)){if(!r)return;Object.defineProperty(t,e,{value:s.create()})}return t[e]}function n(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):n(e,t),e}return n(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,i;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,i=t.getOwnMetadataKeys,n=t.deleteMetadata,a=new p,l={isProviderFor:function(t,e){var o=a.get(t);return!(z(o)||!o.has(e))||!!i(t,e).length&&(z(o)&&(o=new f,a.set(t,o)),o.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:o,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:n};return l}(e.Reflect));var n=new p,a={registerProvider:l,getProvider:s,setProvider:g};return a;function l(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===i&&(i=new f),i.add(e)}}function b(e,n){if(!z(o)){if(o.isProviderFor(e,n))return o;if(!z(r)){if(r.isProviderFor(e,n))return o;if(!z(i))for(var a=L(i);;){var l=I(a);if(!l)return;var b=D(l);if(b.isProviderFor(e,n))return P(a),b}}}if(!z(t)&&t.isProviderFor(e,n))return t}function s(t,e){var o,r=n.get(t);return z(r)||(o=r.get(e)),z(o)?(z(o=b(t,e))||(z(r)&&(r=new c,n.set(t,r)),r.set(e,o)),o):o}function d(t){if(z(t))throw new TypeError;return o===t||r===t||!z(i)&&i.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 i=n.get(t);z(i)&&(i=new c,n.set(t,i)),i.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,i){r(o,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,o){var i=r(e,o,!1);return!z(i)&&$(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,o){var i=r(e,o,!1);if(!z(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var o=[],i=r(t,e,!1);if(z(i))return o;for(var n=L(i.keys()),a=0;;){var l=I(n);if(!l)return o.length=a,o;var b=D(l);try{o[a]=b}catch(t){try{P(n)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,o,i){var n=r(o,i,!1);if(z(n))return!1;if(!n.delete(t))return!1;if(0===n.size){var a=e.get(o);z(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return g.registerProvider(o),o;function r(r,i,n){var a=e.get(r),l=!1;if(z(a)){if(!n)return;a=new c,e.set(r,a),l=!0}var b=a.get(i);if(z(b)){if(!n)return;if(b=new c,a.set(i,b),!t.setProvider(r,i,o))throw a.delete(i),l&&e.delete(r),new Error("Wrong provider for target.")}return b}}(g);function v(t,e,o){if(h(t,e,o))return!0;var r=H(e);return!j(r)&&v(t,r,o)}function h(t,e,o){var r=B(e,o,!1);return!z(r)&&$(r.OrdinaryHasOwnMetadata(t,e,o))}function x(t,e,o){if(h(t,e,o))return w(t,e,o);var r=H(e);return j(r)?void 0:x(t,r,o)}function w(t,e,o){var r=B(e,o,!1);if(!z(r))return r.OrdinaryGetOwnMetadata(t,e,o)}function y(t,e,o,r){B(o,r,!0).OrdinaryDefineOwnMetadata(t,e,o,r)}function q(t,e){var o=k(t,e),r=H(t);if(null===r)return o;var i=q(r,e);if(i.length<=0)return o;if(o.length<=0)return i;for(var n=new f,a=[],l=0,b=o;l<b.length;l++){var s=b[l];n.has(s)||(n.add(s),a.push(s))}for(var d=0,c=i;d<c.length;d++)s=c[d],n.has(s)||(n.add(s),a.push(s));return a}function k(t,e){var o=B(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 C(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,i);if(void 0!==r){var n=r.call(t,o);if(S(n))throw new TypeError;return n}return function(t,e){if("string"===e){var o=t.toString;if(E(o)&&!S(i=o.call(t)))return i;if(E(r=t.valueOf)&&!S(i=r.call(t)))return i}else{var r;if(E(r=t.valueOf)&&!S(i=r.call(t)))return i;var i,n=t.toString;if(E(n)&&!S(i=n.call(t)))return i}throw new TypeError}(t,"default"===o?"number":o)}function $(t){return!!t}function A(t){var e=C(t,3);return function(t){return"symbol"==typeof t}(e)?e:function(t){return""+t}(e)}function O(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(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(!E(o))throw new TypeError;return o}}function L(t){var e=M(t,n);if(!E(e))throw new TypeError;var o=e.call(t);if(!S(o))throw new TypeError;return o}function D(t){return t.value}function I(t){var e=t.next();return!e.done&&e}function P(t){var e=t.return;e&&e.call(t)}function H(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 i=r.constructor;return"function"!=typeof i||i===t?e:i}function B(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(!O(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(!O(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 i=t.length-1;i>=0;--i){var n=(0,t[i])(e,o,r);if(!z(n)&&!j(n)){if(!S(n))throw new TypeError;r=n}}return r}(t,e,o=A(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=A(r)),y(t,e,o,r)})),t("hasMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),v(t,e,o)})),t("hasOwnMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),h(t,e,o)})),t("getMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),x(t,e,o)})),t("getOwnMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),w(t,e,o)})),t("getMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return z(e)||(e=A(e)),q(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return z(e)||(e=A(e)),k(t,e)})),t("deleteMetadata",(function(t,e,o){if(!S(e))throw new TypeError;if(z(o)||(o=A(o)),!S(e))throw new TypeError;z(o)||(o=A(o));var r=B(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 i=e[r];if(void 0!==i)return i.exports;var n=e[r]={exports:{}};return t[r](n,n.exports,o),n.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:()=>_e,O2:()=>F,m$:()=>Y,Il:()=>G,P7:()=>U,Dg:()=>N,ho:()=>V,OU:()=>E,Kt:()=>Ob,$4:()=>we,kq:()=>Zb,hg:()=>os,EC:()=>as,ZF:()=>Oe,dm:()=>Te,No:()=>Ce,SD:()=>Se,RK:()=>Ie,R$:()=>Ne,T4:()=>Ue,$T:()=>ss,bA:()=>Ke,U6:()=>Ze,OK:()=>mb,hX:()=>wb,V9:()=>kb,FX:()=>Sb,bB:()=>us,j_:()=>Ab,PK:()=>Tb,lS:()=>fs,N6:()=>Db,Cv:()=>Hb,vn:()=>Ub,zZ:()=>_b,k$:()=>D,xC:()=>A,G8:()=>R,bj:()=>B,Ng:()=>Z,Ty:()=>Xb,f_:()=>Yb,Qg:()=>Kb,BL:()=>K,BV:()=>J,bX:()=>Q,Yq:()=>Vb,c7:()=>P,_e:()=>T,Tj:()=>Nb,cK:()=>Wb,I6:()=>I,aA:()=>L,$p:()=>O,$7:()=>Bb,V2:()=>M});var i,n={};o.r(n),o.d(n,{afterMain:()=>wo,afterRead:()=>vo,afterWrite:()=>ko,applyStyles:()=>Ao,arrow:()=>Ko,auto:()=>io,basePlacements:()=>no,beforeMain:()=>ho,beforeRead:()=>go,beforeWrite:()=>yo,bottom:()=>eo,clippingParents:()=>bo,computeStyles:()=>tr,createPopper:()=>$r,createPopperBase:()=>Cr,createPopperLite:()=>Ar,detectOverflow:()=>gr,end:()=>lo,eventListeners:()=>or,flip:()=>ur,hide:()=>xr,left:()=>ro,main:()=>xo,modifierPhases:()=>_o,offset:()=>wr,placements:()=>mo,popper:()=>co,popperGenerator:()=>Sr,popperOffsets:()=>yr,preventOverflow:()=>qr,read:()=>uo,reference:()=>fo,right:()=>oo,start:()=>ao,top:()=>to,variationPlacements:()=>po,viewport:()=>so,write:()=>qo}),o(630),function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(i||(i={}));const a=i;var l=function(t,e){return l=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])},l(t,e)};function b(t,e){function o(){this.constructor=t}l(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,i,n=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=n.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.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 b(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 b(e,t),e}(x),k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(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 i=[t],n=r;null!=n;){var l=n.useToken;if(i.includes(l))throw new Error("Token registration cycle detected! "+c(i,[l]).join(" -> "));i.push(l);var b=this._registry.get(l);n=b&&v(b.provider)?b.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 i=[];try{for(var n=s(this.interceptors.preResolution.getAll(t)),a=n.next();!a.done;a=n.next()){var l=a.value;"Once"!=l.options.frequency&&i.push(l),l.callback(t,e)}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}this.interceptors.preResolution.setAll(t,i)}},t.prototype.executePostResolutionInterceptor=function(t,e,o){var r,i;if(this.interceptors.postResolution.has(t)){var n=[];try{for(var a=s(this.interceptors.postResolution.getAll(t)),l=a.next();!l.done;l=a.next()){var b=l.value;"Once"!=b.options.frequency&&n.push(b),b.callback(t,e,o)}}catch(t){r={error:t}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}this.interceptors.postResolution.setAll(t,n)}},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,i=t.options.lifecycle===a.ContainerScoped,n=r||i;return o=h(t.provider)?t.provider.useValue:v(t.provider)?n?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):f(t.provider)?n?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 i=r.map((function(t){return o.resolveRegistration(t,e)}));return this.executePostResolutionInterceptor(t,i,"All"),i}var n=[this.construct(t,e)];return this.executePostResolutionInterceptor(t,n,"All"),n},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 i=d(r.value,2),n=i[0],a=i[1];this._registry.setAll(n,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 i=s(this._registry.entries()),n=i.next();!n.done;n=i.next()){var l=d(n.value,2),b=l[0],c=l[1];c.some((function(t){return t.options.lifecycle===a.ContainerScoped}))&&r._registry.setAll(b,c.map((function(t){return t.options.lifecycle===a.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}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(i,n){function a(t){try{b(r.next(t))}catch(t){n(t)}}function l(t){try{b(r.throw(t))}catch(t){n(t)}}function b(t){var e;t.done?i(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(a,l)}b((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function(){var t;return function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function l(n){return function(l){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,l])}}}(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,i=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 i=r.map(o.resolveParams(e,t));return new(t.bind.apply(t,c([void 0],i)))}();return"function"!=typeof(r=i).dispose||r.dispose.length>0||this.disposables.add(i),i},t.prototype.resolveParams=function(t,e){var o=this;return function(r,i){var n,a,l,b;try{return"object"==typeof(b=r)&&"token"in b&&"multiple"in b?u(r)?r.multiple?(n=o.resolve(r.transform)).transform.apply(n,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)?(l=o.resolve(r.transform,t)).transform.apply(l,c([o.resolve(r.token,t)],r.transformArgs)):o.resolve(r,t)}catch(t){throw new Error(function(t,e,o){var r,i,n=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 "+(i=e,(null===(r=void 0===n?null:n)?"at position #"+i:'"'+r.split(",")[i].trim()+'" at position #'+i)+' of "')+t.name+'" constructor. Reason:',o)}(e,i,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,C="injectionTokens";const $=function(){return function(t){z.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],o=Reflect.getOwnMetadata(C,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 A{constructor(t,e){this.container=t,this.options=e}getService(t){return this.container.resolve(t)}}const O=window?.qbo4?.services||new A(S.createChildContainer(),{});"undefined"!=typeof window&&(window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new A(S.createChildContainer(),{}),window.qbo4.services);const E="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 i=e[t];r=r.replace(o,((t,e)=>{const o=e.split(/\.|\[|\]/).filter((t=>""!==t));let r=i;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 i=e.content.cloneNode(!0);null!=i.firstElementChild&&(i.firstElementChild.setAttribute("data-index",`${r}`),i.firstElementChild.innerHTML=M(i.firstElementChild?.innerHTML??"",o)),t.appendChild(i)}))}}class D{constructor(t,e={"Content-Type":"application/json"},o=null){this.relativePath="",this.apiEndpoint=t,this.headers=e,this.method=o}async fetch(t,e){const o=M(new URL(t??this.relativePath,this.apiEndpoint).href,e),r=this.method??(e?"POST":"GET"),i=new Headers(this.headers||{});e&&!i.has("Content-Type")&&i.append("Content-Type","application/json");const n=await fetch(o,{method:r,headers:i,body:"POST"===r&&e?JSON.stringify(e):null}),a=i.get("Accept")??"";return n.ok?"application/json"===a?await n.json():await n.text():(console.error(`API request failed with status ${n.status}`),null)}clone(t){const e=new D(this.apiEndpoint,this.headers,this.method);return e.relativePath=t??"",e}}function I(t,e,o={"Content-Type":"application/json"},r){O.container.registerInstance(t,new D(e,o,r))}function P(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):"",i=O.container.isRegistered(o)?O.container.resolve(o):new D(t);return r?i.clone(r):i}O.container.registerInstance("default",new D(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var H=function(t,e,o,r){var i,n=arguments.length,a=n<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 l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};let B=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};B=H([$()],B),O.container.register(R,{useClass:B});let N=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};N=H([$()],N),O.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=O.container.isRegistered(e)?O.container.resolve(e):new D(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=H([$()],V),O.container.register(R,{useClass:V});class F{constructor(){this.operator="=",this.value=null}}class G{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)=>!Wb(t.value,e)],[">=",(t,e)=>t.value>=e],["<=",(t,e)=>t.value<=e],["=",(t,e)=>Wb(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 i=t.split(e);o=i[0],r=i[1]??""}else t.startsWith("!")?(e="=",o=t.substring(1)):o=t;const i=this.form.querySelector(`#${CSS.escape(o)}`)??this.form.querySelector(`[name="${CSS.escape(o)}"]`);return i instanceof HTMLInputElement?"checkbox"===i.type||"radio"===i.type?"!="===e?()=>i.checked:()=>!i.checked:()=>W.get(e)(i,r):i instanceof HTMLSelectElement?()=>W.get(e)(i,r):i instanceof HTMLOptionElement?"!="===e?()=>i.selected:()=>!i.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={},i=`${e}${o}`,n=t.getAttributeNames();for(const a of n)if(a.startsWith(e)){const n=a.slice(e.length);if(null!=o&&a===i)try{const e=JSON.parse(t.getAttribute(a));Object.assign(r,e)}catch(e){console.error(`Error parsing JSON from element ${t.name} attribute ${i} (${t.getAttribute(a)}):`,t,e)}else r[n]=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 i,n=arguments.length,a=n<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 l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a}([$(),(tt=1,ot=U,rt=ot,et=function(t,e,o){var r=Reflect.getOwnMetadata(C,t)||{};r[o]=rt,Reflect.defineMetadata(C,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,G])],Y),O.container.register(U,{useValue:new G}),O.container.register(R,{useClass:Y});const it=globalThis,nt=it.ShadowRoot&&(void 0===it.ShadyCSS||it.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,at=Symbol(),lt=new WeakMap;class bt{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(nt&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=lt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&lt.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 bt(o,t,at)},dt=(t,e)=>{if(nt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=it.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}},ct=nt?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new bt("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:i}=mt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,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 i=(void 0!==o.converter?.toAttribute?o.converter:kt).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),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),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:kt;this._$Em=r,this[r]=i.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,Ct=St.trustedTypes,$t=Ct?Ct.createPolicy("lit-html",{createHTML:t=>t}):void 0,At="$lit$",Ot=`lit$${Math.random().toFixed(9).slice(2)}$`,Et="?"+Ot,Rt=`<${Et}>`,Tt=document,Mt=()=>Tt.createComment(""),Lt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Dt=Array.isArray,It="[ \t\n\f\r]",Pt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ht=/-->/g,Bt=/>/g,Nt=RegExp(`>|${It}(?:([^\\s"'>=/]+)(${It}*=${It}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Vt=/'/g,Ft=/"/g,Gt=/^(?: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(!Dt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==$t?$t.createHTML(e):e}const te=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":3===e?"<math>":"",a=Pt;for(let e=0;e<o;e++){const o=t[e];let l,b,s=-1,d=0;for(;d<o.length&&(a.lastIndex=d,b=a.exec(o),null!==b);)d=a.lastIndex,a===Pt?"!--"===b[1]?a=Ht:void 0!==b[1]?a=Bt:void 0!==b[2]?(Gt.test(b[2])&&(i=RegExp("</"+b[2],"g")),a=Nt):void 0!==b[3]&&(a=Nt):a===Nt?">"===b[0]?(a=i??Pt,s=-1):void 0===b[1]?s=-2:(s=a.lastIndex-b[2].length,l=b[1],a=void 0===b[3]?Nt:'"'===b[3]?Ft:Vt):a===Ft||a===Vt?a=Nt:a===Ht||a===Bt?a=Pt:(a=Nt,i=void 0);const c=a===Nt&&t[e+1].startsWith("/>")?" ":"";n+=a===Pt?o+Rt:s>=0?(r.push(l),o.slice(0,s)+At+o.slice(s)+Ot+c):o+Ot+(-2===s?e:c)}return[Zt(t,n+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class ee{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0;const a=t.length-1,l=this.parts,[b,s]=te(t,e);if(this.el=ee.createElement(b,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())&&l.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(At)){const e=s[n++],o=r.getAttribute(t).split(Ot),a=/([.?@])?(.*)/.exec(e);l.push({type:1,index:i,name:a[2],strings:o,ctor:"."===a[1]?ae:"?"===a[1]?le:"@"===a[1]?be:ne}),r.removeAttribute(t)}else t.startsWith(Ot)&&(l.push({type:6,index:i}),r.removeAttribute(t));if(Gt.test(r.tagName)){const t=r.textContent.split(Ot),e=t.length-1;if(e>0){r.textContent=Ct?Ct.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Mt()),Jt.nextNode(),l.push({type:2,index:++i});r.append(t[e],Mt())}}}else if(8===r.nodeType)if(r.data===Et)l.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(Ot,t+1));)l.push({type:7,index:i}),t+=Ot.length-1}i++}}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 i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=Lt(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=oe(t,i._$AS(t,e.values),i,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 i=Jt.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new ie(i,i.nextSibling,this,t):1===l.type?e=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(e=new se(i,this,t)),this._$AV.push(e),l=o[++a]}n!==l?.index&&(i=Jt.nextNode(),n++)}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 ie{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=>Dt(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){Dt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,r=0;for(const i of t)r===e.length?e.push(o=new ie(this.O(Mt()),this.O(Mt()),this,this.options)):o=e[r],o._$AI(i),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 ne{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=Kt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,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 i=this.strings;let n=!1;if(void 0===i)t=oe(this,t,e,0),n=!Lt(t)||t!==this._$AH&&t!==Yt,n&&(this._$AH=t);else{const r=t;let a,l;for(t=i[0],a=0;a<i.length-1;a++)l=oe(this,r[o+a],e,a),l===Yt&&(l=this._$AH[a]),n||=!Lt(l)||l!==this._$AH[a],l===Kt?t=Kt:t!==Kt&&(t+=(l??"")+i[a+1]),this._$AH[a]=l}n&&!r&&this.j(t)}j(t){t===Kt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ae extends ne{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Kt?void 0:t}}class le extends ne{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Kt)}}class be extends ne{constructor(t,e,o,r,i){super(t,e,o,r,i),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,i=t!==Kt&&(o===Kt||r);r&&this.element.removeEventListener(this.name,this,o),i&&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,ie),(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 i=r._$litPart$;if(void 0===i){const t=o?.renderBefore??null;r._$litPart$=i=new ie(e.insertBefore(Mt(),t),t,void 0,o??{})}return i._$AI(t),i})(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:i}=o;let n=globalThis.litPropertyMetadata.get(i);if(void 0===n&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(o.name,t),"accessor"===r){const{name:r}=o;return{set(o){const i=e.get.call(this);e.set.call(this,o),this.requestUpdate(r,i,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 i=this[r];e.call(this,o),this.requestUpdate(r,i,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 i,n=arguments.length,a=n<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 l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>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),st`
3
3
  @charset "UTF-8";/*!
4
4
  * Bootstrap v5.3.1 (https://getbootstrap.com/)
5
5
  * Copyright 2011-2023 The Bootstrap Authors