@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.
- package/package.json +1 -1
- package/wwwroot/js/esm/ui-bridge.js +4 -1
- package/wwwroot/js/esm/ui-bridge.min.js +1 -1
- package/wwwroot/js/esm/ui-bridge.min.js.map +1 -1
- package/wwwroot/js/qbo4.ui-bridge.js +4 -1
- package/wwwroot/js/qbo4.ui-bridge.min.js +1 -1
- package/wwwroot/js/qbo4.ui-bridge.min.js.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see qbo4.ui-bridge.min.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.qbo4=e():(t.qbo4=t.qbo4||{},t.qbo4["qbo4.ui-bridge"]=e())}(self,(()=>(()=>{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}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var 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,r)},e.prototype.values=function(){return new o(this._keys,this._values,i)},e.prototype.entries=function(){return new o(this._keys,this._values,a)},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}();function r(t,e){return t}function i(t,e){return e}function a(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;return{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}}(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"symbol"==typeof 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={};return(()=>{"use strict";o.r(r),o.d(r,{ContextMenu:()=>qe,Dependency:()=>N,DependencyValidator:()=>W,DependencyValidatorOptions:()=>V,DependencyValidatorOptionsToken:()=>F,EmailValidator:()=>H,ExistsValidator:()=>B,IApiServiceToken:()=>A,Mode:()=>$b,QboApiElement:()=>he,QboBadge:()=>Kb,QboContact:()=>ts,QboContactName:()=>is,QboDataList:()=>$e,QboDocViewer:()=>Ee,QboFetch:()=>je,QboFetchMixin:()=>ze,QboFormEdit:()=>Le,QboFormElement:()=>He,QboIcon:()=>Fe,QboMainMenu:()=>ls,QboMicrophone:()=>Xe,QboPaginate:()=>Ke,QboPopover:()=>fb,QboPopup:()=>hb,QboPopupListener:()=>yb,QboResize:()=>zb,QboSSN:()=>ms,QboSelect:()=>Cb,QboSelectable:()=>Eb,QboSideBar:()=>ds,QboTable:()=>Mb,QboUserPreferences:()=>Ib,QboValidate:()=>Fb,ResizeType:()=>qb,RestApiService:()=>M,Services:()=>C,ValidateToken:()=>O,ZipCodeValidator:()=>P,elementClearValue:()=>K,elementData:()=>Ub,elementDate:()=>Wb,elementDateTime:()=>Xb,elementOptions:()=>X,elementResetValue:()=>Q,elementSelectorAll:()=>Y,formatDate:()=>Bb,getApiService:()=>D,getArray:()=>E,getUserPreference:()=>Hb,matches:()=>Gb,registerRestApi:()=>L,replicate:()=>T,services:()=>$,setUserPreference:()=>Pb,substitute:()=>R});var t,e={};o.r(e),o.d(e,{afterMain:()=>ho,afterRead:()=>go,afterWrite:()=>yo,applyStyles:()=>Co,arrow:()=>Xo,auto:()=>oo,basePlacements:()=>ro,beforeMain:()=>uo,beforeRead:()=>po,beforeWrite:()=>xo,bottom:()=>Ze,clippingParents:()=>ao,computeStyles:()=>Jo,createPopper:()=>Sr,createPopperBase:()=>jr,createPopperLite:()=>Cr,detectOverflow:()=>pr,end:()=>no,eventListeners:()=>tr,flip:()=>mr,hide:()=>vr,left:()=>eo,main:()=>vo,modifierPhases:()=>qo,offset:()=>hr,placements:()=>fo,popper:()=>bo,popperGenerator:()=>zr,popperOffsets:()=>xr,preventOverflow:()=>wr,read:()=>mo,reference:()=>so,right:()=>to,start:()=>io,top:()=>Je,variationPlacements:()=>co,viewport:()=>lo,write:()=>wo}),o(630),function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(t||(t={}));const i=t;var n=function(t,e){return n=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])},n(t,e)};function a(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}function l(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 b(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 s(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function d(t){return!!t.useClass}function c(t){return!!t.useFactory}var f=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,s(e))}})),e},t}();function p(t){return"string"==typeof t||"symbol"==typeof t}function m(t){return"object"==typeof t&&"token"in t&&"transform"in t}function g(t){return!!t.useToken}function u(t){return null!=t.useValue}const v=function(){function t(){this._registryMap=new Map}return t.prototype.entries=function(){return this._registryMap.entries()},t.prototype.getAll=function(t){return this.ensure(t),this._registryMap.get(t)},t.prototype.get=function(t){this.ensure(t);var e=this._registryMap.get(t);return e[e.length-1]||null},t.prototype.set=function(t,e){this.ensure(t),this._registryMap.get(t).push(e)},t.prototype.setAll=function(t,e){this._registryMap.set(t,e)},t.prototype.has=function(t){return this.ensure(t),this._registryMap.get(t).length>0},t.prototype.clear=function(){this._registryMap.clear()},t.prototype.ensure=function(t){this._registryMap.has(t)||this._registryMap.set(t,[])},t}(),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(v),x=function(){this.scopedResolutions=new Map};var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(v),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(v);const q=function(){this.preResolution=new w,this.postResolution=new y};var k=new Map,_=function(){function t(t){this.parent=t,this._registry=new h,this.interceptors=new q,this.disposed=!1,this.disposables=new Set}return t.prototype.register=function(t,e,o){var r;if(void 0===o&&(o={lifecycle:i.Transient}),this.ensureNotDisposed(),r=function(t){return d(t)||u(t)||g(t)||c(t)}(e)?e:{useClass:e},g(r))for(var n=[t],a=r;null!=a;){var l=a.useToken;if(n.includes(l))throw new Error("Token registration cycle detected! "+s(n,[l]).join(" -> "));n.push(l);var b=this._registry.get(l);a=b&&g(b.provider)?b.provider:null}if((o.lifecycle===i.Singleton||o.lifecycle==i.ContainerScoped||o.lifecycle==i.ResolutionScoped)&&(u(r)||c(r)))throw new Error('Cannot use lifecycle "'+i[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(),p(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(),p(t)){if(p(e))return this.register(t,{useToken:e},{lifecycle:i.Singleton});if(e)return this.register(t,{useClass:e},{lifecycle:i.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var o=t;return e&&!p(e)&&(o=e),this.register(t,{useClass:o},{lifecycle:i.Singleton})},t.prototype.resolve=function(t,e){void 0===e&&(e=new x),this.ensureNotDisposed();var o=this.getRegistration(t);if(!o&&p(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 f}(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=l(this.interceptors.preResolution.getAll(t)),a=n.next();!a.done;a=n.next()){var b=a.value;"Once"!=b.options.frequency&&i.push(b),b.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=l(this.interceptors.postResolution.getAll(t)),b=a.next();!b.done;b=a.next()){var s=b.value;"Once"!=s.options.frequency&&n.push(s),s.callback(t,e,o)}}catch(t){r={error:t}}finally{try{b&&!b.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===i.ResolutionScoped&&e.scopedResolutions.has(t))return e.scopedResolutions.get(t);var o,r=t.options.lifecycle===i.Singleton,n=t.options.lifecycle===i.ContainerScoped,a=r||n;return o=u(t.provider)?t.provider.useValue:g(t.provider)?a?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):d(t.provider)?a?t.instance||(t.instance=this.construct(t.provider.useClass,e)):this.construct(t.provider.useClass,e):c(t.provider)?t.provider.useFactory(this):this.construct(t.provider,e),t.options.lifecycle===i.ResolutionScoped&&e.scopedResolutions.set(t,o),o},t.prototype.resolveAll=function(t,e){var o=this;void 0===e&&(e=new x),this.ensureNotDisposed();var r=this.getAllRegistrations(t);if(!r&&p(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=l(this._registry.entries()),r=o.next();!r.done;r=o.next()){var i=b(r.value,2),n=i[0],a=i[1];this._registry.setAll(n,a.filter((function(t){return!u(t.provider)})).map((function(t){return t.instance=void 0,t})))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},t.prototype.createChildContainer=function(){var e,o;this.ensureNotDisposed();var r=new t(this);try{for(var n=l(this._registry.entries()),a=n.next();!a.done;a=n.next()){var s=b(a.value,2),d=s[0],c=s[1];c.some((function(t){return t.options.lifecycle===i.ContainerScoped}))&&r._registry.setAll(d,c.map((function(t){return t.options.lifecycle===i.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(e)throw e.error}}return r},t.prototype.beforeResolution=function(t,e,o){void 0===o&&(o={frequency:"Always"}),this.interceptors.preResolution.set(t,{callback:e,options:o})},t.prototype.afterResolution=function(t,e,o){void 0===o&&(o={frequency:"Always"}),this.interceptors.postResolution.set(t,{callback:e,options:o})},t.prototype.dispose=function(){return function(t,e,o,r){return new(o||(o=Promise))((function(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 f)return t.createProxy((function(t){return o.resolve(t,e)}));var r,i=function(){var r=k.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,s([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,d;try{return"object"==typeof(d=r)&&"token"in d&&"multiple"in d?m(r)?r.multiple?(n=o.resolve(r.transform)).transform.apply(n,s([o.resolveAll(r.token)],r.transformArgs)):(a=o.resolve(r.transform)).transform.apply(a,s([o.resolve(r.token,t)],r.transformArgs)):r.multiple?o.resolveAll(r.token):o.resolve(r.token,t):m(r)?(l=o.resolve(r.transform,t)).transform.apply(l,s([o.resolve(r.token,t)],r.transformArgs)):o.resolve(r,t)}catch(t){throw new Error(function(t,e,o){var r,i,n=b(t.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(t,e,o){return void 0===o&&(o=" "),s([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}(),z=new _,j="injectionTokens";const S=function(){return function(t){k.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],o=Reflect.getOwnMetadata(j,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 C{constructor(t,e){this.container=t,this.options=e}getService(t){return this.container.resolve(t)}}const $=window?.qbo4?.services||new C(z.createChildContainer(),{});"undefined"!=typeof window&&(window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new C(z.createChildContainer(),{}),window.qbo4.services);const A="ApiServiceToken",O="ValidateToken";function E(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=E(r,e);if(t)return t}}return null}function R(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 T(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=R(i.firstElementChild?.innerHTML??"",o)),t.appendChild(i)}))}}class M{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=R(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 M(this.apiEndpoint,this.headers,this.method);return e.relativePath=t??"",e}}function L(t,e,o={"Content-Type":"application/json"},r){$.container.registerInstance(t,new M(e,o,r))}function D(t){const e=t.match(/api:\/\/([^/]+)/),o=e?e[1]:t,r=e?t.substring(`api://${o}`.length+1):"",i=$.container.isRegistered(o)?$.container.resolve(o):new M(t);return r?i.clone(r):i}$.container.registerInstance("default",new M(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var I=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 P=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};P=I([S()],P),$.container.register(O,{useClass:P});let H=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};H=I([S()],H),$.container.register(O,{useClass:H});let B=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=$.container.isRegistered(e)?$.container.resolve(e):new M(e);if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement){const e=E(await r.fetch(o,{value:t.value}));return null!=e&&e.length>0}return!1}};B=I([S()],B),$.container.register(O,{useClass:B});class N{constructor(){this.operator="=",this.value=null}}class V{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const F="DependencyValidatorOptions",G=new Map([["!=",(t,e)=>!Gb(t.value,e)],[">=",(t,e)=>t.value>=e],["<=",(t,e)=>t.value<=e],["=",(t,e)=>Gb(t.value,e)],[">",(t,e)=>t.value>e],["<",(t,e)=>t.value<e]]),U=Array.from(G.keys());let W=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=Y(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=>Q(t))):e.emptyOnDisable&&r.forEach((t=>K(t)))),Promise.resolve(o)}getOptions(t){let e=this.optionsCache.get(t);if(!e){try{e=Object.assign({},this.options,X(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=U.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:()=>G.get(e)(i,r):i instanceof HTMLSelectElement?()=>G.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 X(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 Y(t,e){const o=Array.from(t.querySelectorAll(e));return t.matches(e)&&o.unshift(t),o}function Q(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 K(t){t instanceof HTMLInputElement?"checkbox"===t.type||"radio"===t.type?t.checked=!1:t.value="":t instanceof HTMLSelectElement&&(t.options.selectedIndex=0)}var J,Z,tt,et;W=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}([S(),(J=1,tt=F,et=tt,Z=function(t,e,o){var r=Reflect.getOwnMetadata(j,t)||{};r[o]=et,Reflect.defineMetadata(j,r,t)},function(t,e){Z(t,e,J)}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[HTMLFormElement,V])],W),$.container.register(F,{useValue:new V}),$.container.register(O,{useClass:W});const ot=globalThis,rt=ot.ShadowRoot&&(void 0===ot.ShadyCSS||ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,it=Symbol(),nt=new WeakMap;class at{constructor(t,e,o){if(this._$cssResult$=!0,o!==it)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(rt&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=nt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&nt.set(e,t))}return t}toString(){return this.cssText}}const lt=(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 at(o,t,it)},bt=(t,e)=>{if(rt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=ot.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}},st=rt?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new at("string"==typeof t?t:t+"",void 0,it))(e)})(t):t,{is:dt,defineProperty:ct,getOwnPropertyDescriptor:ft,getOwnPropertyNames:pt,getOwnPropertySymbols:mt,getPrototypeOf:gt}=Object,ut=globalThis,vt=ut.trustedTypes,ht=vt?vt.emptyScript:"",xt=ut.reactiveElementPolyfillSupport,wt=(t,e)=>t,yt={toAttribute(t,e){switch(e){case Boolean:t=t?ht: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}},qt=(t,e)=>!dt(t,e),kt={attribute:!0,type:String,converter:yt,reflect:!1,hasChanged:qt};Symbol.metadata??=Symbol("metadata"),ut.litPropertyMetadata??=new WeakMap;class _t 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=kt){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&&ct(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=ft(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)??kt}static _$Ei(){if(this.hasOwnProperty(wt("elementProperties")))return;const t=gt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(wt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(wt("properties"))){const t=this.properties,e=[...pt(t),...mt(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(st(t))}else void 0!==t&&e.push(st(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 bt(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:yt).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:yt;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??qt)(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){}}_t.elementStyles=[],_t.shadowRootOptions={mode:"open"},_t[wt("elementProperties")]=new Map,_t[wt("finalized")]=new Map,xt?.({ReactiveElement:_t}),(ut.reactiveElementVersions??=[]).push("2.0.4");const zt=globalThis,jt=zt.trustedTypes,St=jt?jt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ct="$lit$",$t=`lit$${Math.random().toFixed(9).slice(2)}$`,At="?"+$t,Ot=`<${At}>`,Et=document,Rt=()=>Et.createComment(""),Tt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Mt=Array.isArray,Lt="[ \t\n\f\r]",Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,It=/-->/g,Pt=/>/g,Ht=RegExp(`>|${Lt}(?:([^\\s"'>=/]+)(${Lt}*=${Lt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Bt=/'/g,Nt=/"/g,Vt=/^(?:script|style|textarea|title)$/i,Ft=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Gt=Ft(1),Ut=Ft(2),Wt=(Ft(3),Symbol.for("lit-noChange")),Xt=Symbol.for("lit-nothing"),Yt=new WeakMap,Qt=Et.createTreeWalker(Et,129);function Kt(t,e){if(!Mt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==St?St.createHTML(e):e}const Jt=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":3===e?"<math>":"",a=Dt;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===Dt?"!--"===b[1]?a=It:void 0!==b[1]?a=Pt:void 0!==b[2]?(Vt.test(b[2])&&(i=RegExp("</"+b[2],"g")),a=Ht):void 0!==b[3]&&(a=Ht):a===Ht?">"===b[0]?(a=i??Dt,s=-1):void 0===b[1]?s=-2:(s=a.lastIndex-b[2].length,l=b[1],a=void 0===b[3]?Ht:'"'===b[3]?Nt:Bt):a===Nt||a===Bt?a=Ht:a===It||a===Pt?a=Dt:(a=Ht,i=void 0);const c=a===Ht&&t[e+1].startsWith("/>")?" ":"";n+=a===Dt?o+Ot:s>=0?(r.push(l),o.slice(0,s)+Ct+o.slice(s)+$t+c):o+$t+(-2===s?e:c)}return[Kt(t,n+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class Zt{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]=Jt(t,e);if(this.el=Zt.createElement(b,o),Qt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=Qt.nextNode())&&l.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Ct)){const e=s[n++],o=r.getAttribute(t).split($t),a=/([.?@])?(.*)/.exec(e);l.push({type:1,index:i,name:a[2],strings:o,ctor:"."===a[1]?ie:"?"===a[1]?ne:"@"===a[1]?ae:re}),r.removeAttribute(t)}else t.startsWith($t)&&(l.push({type:6,index:i}),r.removeAttribute(t));if(Vt.test(r.tagName)){const t=r.textContent.split($t),e=t.length-1;if(e>0){r.textContent=jt?jt.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Rt()),Qt.nextNode(),l.push({type:2,index:++i});r.append(t[e],Rt())}}}else if(8===r.nodeType)if(r.data===At)l.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf($t,t+1));)l.push({type:7,index:i}),t+=$t.length-1}i++}}static createElement(t,e){const o=Et.createElement("template");return o.innerHTML=t,o}}function te(t,e,o=t,r){if(e===Wt)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=Tt(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=te(t,i._$AS(t,e.values),i,r)),e}class ee{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??Et).importNode(e,!0);Qt.currentNode=r;let i=Qt.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new oe(i,i.nextSibling,this,t):1===l.type?e=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(e=new le(i,this,t)),this._$AV.push(e),l=o[++a]}n!==l?.index&&(i=Qt.nextNode(),n++)}return Qt.currentNode=Et,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 oe{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=Xt,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=te(this,t,e),Tt(t)?t===Xt||null==t||""===t?(this._$AH!==Xt&&this._$AR(),this._$AH=Xt):t!==this._$AH&&t!==Wt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Mt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}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!==Xt&&Tt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Et.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=Zt.createElement(Kt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new ee(r,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Yt.get(t.strings);return void 0===e&&Yt.set(t.strings,e=new Zt(t)),e}k(t){Mt(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 oe(this.O(Rt()),this.O(Rt()),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 re{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=Xt,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=Xt}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=te(this,t,e,0),n=!Tt(t)||t!==this._$AH&&t!==Wt,n&&(this._$AH=t);else{const r=t;let a,l;for(t=i[0],a=0;a<i.length-1;a++)l=te(this,r[o+a],e,a),l===Wt&&(l=this._$AH[a]),n||=!Tt(l)||l!==this._$AH[a],l===Xt?t=Xt:t!==Xt&&(t+=(l??"")+i[a+1]),this._$AH[a]=l}n&&!r&&this.j(t)}j(t){t===Xt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ie extends re{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Xt?void 0:t}}class ne extends re{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Xt)}}class ae extends re{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=te(this,t,e,0)??Xt)===Wt)return;const o=this._$AH,r=t===Xt&&o!==Xt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==Xt&&(o===Xt||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 le{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){te(this,t)}}const be=zt.litHtmlPolyfillSupport;be?.(Zt,oe),(zt.litHtmlVersions??=[]).push("3.2.1");class se extends _t{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 oe(e.insertBefore(Rt(),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 Wt}}se._$litElement$=!0,se.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:se});const de=globalThis.litElementPolyfillSupport;de?.({LitElement:se}),(globalThis.litElementVersions??=[]).push("4.1.1");const ce=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},fe={attribute:!0,type:String,converter:yt,reflect:!1,hasChanged:qt},pe=(t=fe,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 me(t){return(e,o)=>"object"==typeof o?pe(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 ge(t){return me({...t,state:!0,attribute:!1})}var ue=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},ve=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let he=class extends se{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),L(this.name,this.apiEndpoint,t,this.method)}render(){return Gt``}};ue([me({type:String}),ve("design:type",Object)],he.prototype,"name",void 0),ue([me({type:String}),ve("design:type",Object)],he.prototype,"apiEndpoint",void 0),ue([me(),ve("design:type",Object)],he.prototype,"method",void 0),he=ue([ce("qbo-api")],he),lt`
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.qbo4=e():(t.qbo4=t.qbo4||{},t.qbo4["qbo4.ui-bridge"]=e())}(self,(()=>(()=>{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}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var 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,r)},e.prototype.values=function(){return new o(this._keys,this._values,i)},e.prototype.entries=function(){return new o(this._keys,this._values,a)},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}();function r(t,e){return t}function i(t,e){return e}function a(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;return{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}}(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"symbol"==typeof 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={};return(()=>{"use strict";o.r(r),o.d(r,{ContextMenu:()=>qe,Dependency:()=>N,DependencyValidator:()=>W,DependencyValidatorOptions:()=>V,DependencyValidatorOptionsToken:()=>F,EmailValidator:()=>H,ExistsValidator:()=>B,IApiServiceToken:()=>A,Mode:()=>$b,QboApiElement:()=>he,QboBadge:()=>Kb,QboContact:()=>ts,QboContactName:()=>is,QboDataList:()=>$e,QboDocViewer:()=>Ee,QboFetch:()=>je,QboFetchMixin:()=>ze,QboFormEdit:()=>Le,QboFormElement:()=>He,QboIcon:()=>Fe,QboMainMenu:()=>ls,QboMicrophone:()=>Xe,QboPaginate:()=>Ke,QboPopover:()=>fb,QboPopup:()=>hb,QboPopupListener:()=>yb,QboResize:()=>zb,QboSSN:()=>ms,QboSelect:()=>Cb,QboSelectable:()=>Eb,QboSideBar:()=>ds,QboTable:()=>Mb,QboUserPreferences:()=>Ib,QboValidate:()=>Fb,ResizeType:()=>qb,RestApiService:()=>M,Services:()=>C,ValidateToken:()=>O,ZipCodeValidator:()=>P,elementClearValue:()=>K,elementData:()=>Ub,elementDate:()=>Wb,elementDateTime:()=>Xb,elementOptions:()=>X,elementResetValue:()=>Q,elementSelectorAll:()=>Y,formatDate:()=>Bb,getApiService:()=>D,getArray:()=>E,getUserPreference:()=>Hb,matches:()=>Gb,registerRestApi:()=>L,replicate:()=>T,services:()=>$,setUserPreference:()=>Pb,substitute:()=>R});var t,e={};o.r(e),o.d(e,{afterMain:()=>ho,afterRead:()=>go,afterWrite:()=>yo,applyStyles:()=>Co,arrow:()=>Xo,auto:()=>oo,basePlacements:()=>ro,beforeMain:()=>uo,beforeRead:()=>po,beforeWrite:()=>xo,bottom:()=>Ze,clippingParents:()=>ao,computeStyles:()=>Jo,createPopper:()=>Sr,createPopperBase:()=>jr,createPopperLite:()=>Cr,detectOverflow:()=>pr,end:()=>no,eventListeners:()=>tr,flip:()=>mr,hide:()=>vr,left:()=>eo,main:()=>vo,modifierPhases:()=>qo,offset:()=>hr,placements:()=>fo,popper:()=>bo,popperGenerator:()=>zr,popperOffsets:()=>xr,preventOverflow:()=>wr,read:()=>mo,reference:()=>so,right:()=>to,start:()=>io,top:()=>Je,variationPlacements:()=>co,viewport:()=>lo,write:()=>wo}),o(630),function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(t||(t={}));const i=t;var n=function(t,e){return n=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])},n(t,e)};function a(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}function l(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 b(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 s(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function d(t){return!!t.useClass}function c(t){return!!t.useFactory}var f=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,s(e))}})),e},t}();function p(t){return"string"==typeof t||"symbol"==typeof t}function m(t){return"object"==typeof t&&"token"in t&&"transform"in t}function g(t){return!!t.useToken}function u(t){return null!=t.useValue}const v=function(){function t(){this._registryMap=new Map}return t.prototype.entries=function(){return this._registryMap.entries()},t.prototype.getAll=function(t){return this.ensure(t),this._registryMap.get(t)},t.prototype.get=function(t){this.ensure(t);var e=this._registryMap.get(t);return e[e.length-1]||null},t.prototype.set=function(t,e){this.ensure(t),this._registryMap.get(t).push(e)},t.prototype.setAll=function(t,e){this._registryMap.set(t,e)},t.prototype.has=function(t){return this.ensure(t),this._registryMap.get(t).length>0},t.prototype.clear=function(){this._registryMap.clear()},t.prototype.ensure=function(t){this._registryMap.has(t)||this._registryMap.set(t,[])},t}(),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(v),x=function(){this.scopedResolutions=new Map};var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(v),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(v);const q=function(){this.preResolution=new w,this.postResolution=new y};var k=new Map,_=function(){function t(t){this.parent=t,this._registry=new h,this.interceptors=new q,this.disposed=!1,this.disposables=new Set}return t.prototype.register=function(t,e,o){var r;if(void 0===o&&(o={lifecycle:i.Transient}),this.ensureNotDisposed(),r=function(t){return d(t)||u(t)||g(t)||c(t)}(e)?e:{useClass:e},g(r))for(var n=[t],a=r;null!=a;){var l=a.useToken;if(n.includes(l))throw new Error("Token registration cycle detected! "+s(n,[l]).join(" -> "));n.push(l);var b=this._registry.get(l);a=b&&g(b.provider)?b.provider:null}if((o.lifecycle===i.Singleton||o.lifecycle==i.ContainerScoped||o.lifecycle==i.ResolutionScoped)&&(u(r)||c(r)))throw new Error('Cannot use lifecycle "'+i[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(),p(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(),p(t)){if(p(e))return this.register(t,{useToken:e},{lifecycle:i.Singleton});if(e)return this.register(t,{useClass:e},{lifecycle:i.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var o=t;return e&&!p(e)&&(o=e),this.register(t,{useClass:o},{lifecycle:i.Singleton})},t.prototype.resolve=function(t,e){void 0===e&&(e=new x),this.ensureNotDisposed();var o=this.getRegistration(t);if(!o&&p(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 f}(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=l(this.interceptors.preResolution.getAll(t)),a=n.next();!a.done;a=n.next()){var b=a.value;"Once"!=b.options.frequency&&i.push(b),b.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=l(this.interceptors.postResolution.getAll(t)),b=a.next();!b.done;b=a.next()){var s=b.value;"Once"!=s.options.frequency&&n.push(s),s.callback(t,e,o)}}catch(t){r={error:t}}finally{try{b&&!b.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===i.ResolutionScoped&&e.scopedResolutions.has(t))return e.scopedResolutions.get(t);var o,r=t.options.lifecycle===i.Singleton,n=t.options.lifecycle===i.ContainerScoped,a=r||n;return o=u(t.provider)?t.provider.useValue:g(t.provider)?a?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):d(t.provider)?a?t.instance||(t.instance=this.construct(t.provider.useClass,e)):this.construct(t.provider.useClass,e):c(t.provider)?t.provider.useFactory(this):this.construct(t.provider,e),t.options.lifecycle===i.ResolutionScoped&&e.scopedResolutions.set(t,o),o},t.prototype.resolveAll=function(t,e){var o=this;void 0===e&&(e=new x),this.ensureNotDisposed();var r=this.getAllRegistrations(t);if(!r&&p(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=l(this._registry.entries()),r=o.next();!r.done;r=o.next()){var i=b(r.value,2),n=i[0],a=i[1];this._registry.setAll(n,a.filter((function(t){return!u(t.provider)})).map((function(t){return t.instance=void 0,t})))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},t.prototype.createChildContainer=function(){var e,o;this.ensureNotDisposed();var r=new t(this);try{for(var n=l(this._registry.entries()),a=n.next();!a.done;a=n.next()){var s=b(a.value,2),d=s[0],c=s[1];c.some((function(t){return t.options.lifecycle===i.ContainerScoped}))&&r._registry.setAll(d,c.map((function(t){return t.options.lifecycle===i.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(e)throw e.error}}return r},t.prototype.beforeResolution=function(t,e,o){void 0===o&&(o={frequency:"Always"}),this.interceptors.preResolution.set(t,{callback:e,options:o})},t.prototype.afterResolution=function(t,e,o){void 0===o&&(o={frequency:"Always"}),this.interceptors.postResolution.set(t,{callback:e,options:o})},t.prototype.dispose=function(){return function(t,e,o,r){return new(o||(o=Promise))((function(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 f)return t.createProxy((function(t){return o.resolve(t,e)}));var r,i=function(){var r=k.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,s([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,d;try{return"object"==typeof(d=r)&&"token"in d&&"multiple"in d?m(r)?r.multiple?(n=o.resolve(r.transform)).transform.apply(n,s([o.resolveAll(r.token)],r.transformArgs)):(a=o.resolve(r.transform)).transform.apply(a,s([o.resolve(r.token,t)],r.transformArgs)):r.multiple?o.resolveAll(r.token):o.resolve(r.token,t):m(r)?(l=o.resolve(r.transform,t)).transform.apply(l,s([o.resolve(r.token,t)],r.transformArgs)):o.resolve(r,t)}catch(t){throw new Error(function(t,e,o){var r,i,n=b(t.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(t,e,o){return void 0===o&&(o=" "),s([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}(),z=new _,j="injectionTokens";const S=function(){return function(t){k.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],o=Reflect.getOwnMetadata(j,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 C{constructor(t,e){this.container=t,this.options=e}getService(t){return this.container.resolve(t)}}const $=window?.qbo4?.services||new C(z.createChildContainer(),{});"undefined"!=typeof window&&(window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new C(z.createChildContainer(),{}),window.qbo4.services);const A="ApiServiceToken",O="ValidateToken";function E(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=E(r,e);if(t)return t}}return null}function R(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 T(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=R(i.firstElementChild?.innerHTML??"",o)),t.appendChild(i)}))}}class M{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=R(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 M(this.apiEndpoint,this.headers,this.method);return e.relativePath=t??"",e}}function L(t,e,o={"Content-Type":"application/json"},r){$.container.registerInstance(t,new M(e,o,r))}function D(t){"string"!=typeof t&&(t=t.href);const e=t.match(/api:\/\/([^/]+)/),o=e?e[1]:t,r=e?t.substring(`api://${o}`.length+1):"",i=$.container.isRegistered(o)?$.container.resolve(o):new M(t);return r?i.clone(r):i}$.container.registerInstance("default",new M(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var I=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 P=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};P=I([S()],P),$.container.register(O,{useClass:P});let H=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};H=I([S()],H),$.container.register(O,{useClass:H});let B=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=$.container.isRegistered(e)?$.container.resolve(e):new M(e);if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement){const e=E(await r.fetch(o,{value:t.value}));return null!=e&&e.length>0}return!1}};B=I([S()],B),$.container.register(O,{useClass:B});class N{constructor(){this.operator="=",this.value=null}}class V{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const F="DependencyValidatorOptions",G=new Map([["!=",(t,e)=>!Gb(t.value,e)],[">=",(t,e)=>t.value>=e],["<=",(t,e)=>t.value<=e],["=",(t,e)=>Gb(t.value,e)],[">",(t,e)=>t.value>e],["<",(t,e)=>t.value<e]]),U=Array.from(G.keys());let W=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=Y(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=>Q(t))):e.emptyOnDisable&&r.forEach((t=>K(t)))),Promise.resolve(o)}getOptions(t){let e=this.optionsCache.get(t);if(!e){try{e=Object.assign({},this.options,X(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=U.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:()=>G.get(e)(i,r):i instanceof HTMLSelectElement?()=>G.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 X(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 Y(t,e){const o=Array.from(t.querySelectorAll(e));return t.matches(e)&&o.unshift(t),o}function Q(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 K(t){t instanceof HTMLInputElement?"checkbox"===t.type||"radio"===t.type?t.checked=!1:t.value="":t instanceof HTMLSelectElement&&(t.options.selectedIndex=0)}var J,Z,tt,et;W=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}([S(),(J=1,tt=F,et=tt,Z=function(t,e,o){var r=Reflect.getOwnMetadata(j,t)||{};r[o]=et,Reflect.defineMetadata(j,r,t)},function(t,e){Z(t,e,J)}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[HTMLFormElement,V])],W),$.container.register(F,{useValue:new V}),$.container.register(O,{useClass:W});const ot=globalThis,rt=ot.ShadowRoot&&(void 0===ot.ShadyCSS||ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,it=Symbol(),nt=new WeakMap;class at{constructor(t,e,o){if(this._$cssResult$=!0,o!==it)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(rt&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=nt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&nt.set(e,t))}return t}toString(){return this.cssText}}const lt=(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 at(o,t,it)},bt=(t,e)=>{if(rt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=ot.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}},st=rt?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new at("string"==typeof t?t:t+"",void 0,it))(e)})(t):t,{is:dt,defineProperty:ct,getOwnPropertyDescriptor:ft,getOwnPropertyNames:pt,getOwnPropertySymbols:mt,getPrototypeOf:gt}=Object,ut=globalThis,vt=ut.trustedTypes,ht=vt?vt.emptyScript:"",xt=ut.reactiveElementPolyfillSupport,wt=(t,e)=>t,yt={toAttribute(t,e){switch(e){case Boolean:t=t?ht: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}},qt=(t,e)=>!dt(t,e),kt={attribute:!0,type:String,converter:yt,reflect:!1,hasChanged:qt};Symbol.metadata??=Symbol("metadata"),ut.litPropertyMetadata??=new WeakMap;class _t 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=kt){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&&ct(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=ft(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)??kt}static _$Ei(){if(this.hasOwnProperty(wt("elementProperties")))return;const t=gt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(wt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(wt("properties"))){const t=this.properties,e=[...pt(t),...mt(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(st(t))}else void 0!==t&&e.push(st(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 bt(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:yt).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:yt;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??qt)(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){}}_t.elementStyles=[],_t.shadowRootOptions={mode:"open"},_t[wt("elementProperties")]=new Map,_t[wt("finalized")]=new Map,xt?.({ReactiveElement:_t}),(ut.reactiveElementVersions??=[]).push("2.0.4");const zt=globalThis,jt=zt.trustedTypes,St=jt?jt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ct="$lit$",$t=`lit$${Math.random().toFixed(9).slice(2)}$`,At="?"+$t,Ot=`<${At}>`,Et=document,Rt=()=>Et.createComment(""),Tt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Mt=Array.isArray,Lt="[ \t\n\f\r]",Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,It=/-->/g,Pt=/>/g,Ht=RegExp(`>|${Lt}(?:([^\\s"'>=/]+)(${Lt}*=${Lt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Bt=/'/g,Nt=/"/g,Vt=/^(?:script|style|textarea|title)$/i,Ft=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Gt=Ft(1),Ut=Ft(2),Wt=(Ft(3),Symbol.for("lit-noChange")),Xt=Symbol.for("lit-nothing"),Yt=new WeakMap,Qt=Et.createTreeWalker(Et,129);function Kt(t,e){if(!Mt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==St?St.createHTML(e):e}const Jt=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":3===e?"<math>":"",a=Dt;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===Dt?"!--"===b[1]?a=It:void 0!==b[1]?a=Pt:void 0!==b[2]?(Vt.test(b[2])&&(i=RegExp("</"+b[2],"g")),a=Ht):void 0!==b[3]&&(a=Ht):a===Ht?">"===b[0]?(a=i??Dt,s=-1):void 0===b[1]?s=-2:(s=a.lastIndex-b[2].length,l=b[1],a=void 0===b[3]?Ht:'"'===b[3]?Nt:Bt):a===Nt||a===Bt?a=Ht:a===It||a===Pt?a=Dt:(a=Ht,i=void 0);const c=a===Ht&&t[e+1].startsWith("/>")?" ":"";n+=a===Dt?o+Ot:s>=0?(r.push(l),o.slice(0,s)+Ct+o.slice(s)+$t+c):o+$t+(-2===s?e:c)}return[Kt(t,n+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class Zt{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]=Jt(t,e);if(this.el=Zt.createElement(b,o),Qt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=Qt.nextNode())&&l.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Ct)){const e=s[n++],o=r.getAttribute(t).split($t),a=/([.?@])?(.*)/.exec(e);l.push({type:1,index:i,name:a[2],strings:o,ctor:"."===a[1]?ie:"?"===a[1]?ne:"@"===a[1]?ae:re}),r.removeAttribute(t)}else t.startsWith($t)&&(l.push({type:6,index:i}),r.removeAttribute(t));if(Vt.test(r.tagName)){const t=r.textContent.split($t),e=t.length-1;if(e>0){r.textContent=jt?jt.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Rt()),Qt.nextNode(),l.push({type:2,index:++i});r.append(t[e],Rt())}}}else if(8===r.nodeType)if(r.data===At)l.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf($t,t+1));)l.push({type:7,index:i}),t+=$t.length-1}i++}}static createElement(t,e){const o=Et.createElement("template");return o.innerHTML=t,o}}function te(t,e,o=t,r){if(e===Wt)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=Tt(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=te(t,i._$AS(t,e.values),i,r)),e}class ee{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??Et).importNode(e,!0);Qt.currentNode=r;let i=Qt.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new oe(i,i.nextSibling,this,t):1===l.type?e=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(e=new le(i,this,t)),this._$AV.push(e),l=o[++a]}n!==l?.index&&(i=Qt.nextNode(),n++)}return Qt.currentNode=Et,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 oe{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=Xt,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=te(this,t,e),Tt(t)?t===Xt||null==t||""===t?(this._$AH!==Xt&&this._$AR(),this._$AH=Xt):t!==this._$AH&&t!==Wt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Mt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}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!==Xt&&Tt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Et.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=Zt.createElement(Kt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new ee(r,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Yt.get(t.strings);return void 0===e&&Yt.set(t.strings,e=new Zt(t)),e}k(t){Mt(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 oe(this.O(Rt()),this.O(Rt()),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 re{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=Xt,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=Xt}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=te(this,t,e,0),n=!Tt(t)||t!==this._$AH&&t!==Wt,n&&(this._$AH=t);else{const r=t;let a,l;for(t=i[0],a=0;a<i.length-1;a++)l=te(this,r[o+a],e,a),l===Wt&&(l=this._$AH[a]),n||=!Tt(l)||l!==this._$AH[a],l===Xt?t=Xt:t!==Xt&&(t+=(l??"")+i[a+1]),this._$AH[a]=l}n&&!r&&this.j(t)}j(t){t===Xt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ie extends re{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Xt?void 0:t}}class ne extends re{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Xt)}}class ae extends re{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=te(this,t,e,0)??Xt)===Wt)return;const o=this._$AH,r=t===Xt&&o!==Xt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==Xt&&(o===Xt||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 le{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){te(this,t)}}const be=zt.litHtmlPolyfillSupport;be?.(Zt,oe),(zt.litHtmlVersions??=[]).push("3.2.1");class se extends _t{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 oe(e.insertBefore(Rt(),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 Wt}}se._$litElement$=!0,se.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:se});const de=globalThis.litElementPolyfillSupport;de?.({LitElement:se}),(globalThis.litElementVersions??=[]).push("4.1.1");const ce=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},fe={attribute:!0,type:String,converter:yt,reflect:!1,hasChanged:qt},pe=(t=fe,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 me(t){return(e,o)=>"object"==typeof o?pe(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 ge(t){return me({...t,state:!0,attribute:!1})}var ue=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},ve=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let he=class extends se{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),L(this.name,this.apiEndpoint,t,this.method)}render(){return Gt``}};ue([me({type:String}),ve("design:type",Object)],he.prototype,"name",void 0),ue([me({type:String}),ve("design:type",Object)],he.prototype,"apiEndpoint",void 0),ue([me(),ve("design:type",Object)],he.prototype,"method",void 0),he=ue([ce("qbo-api")],he),lt`
|
|
3
3
|
@charset "UTF-8";/*!
|
|
4
4
|
* Bootstrap v5.3.1 (https://getbootstrap.com/)
|
|
5
5
|
* Copyright 2011-2023 The Bootstrap Authors
|