iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
20 lines • 105 kB
JavaScript
/*! For license information please see 75613.df46d101c36743fb.js.LICENSE.txt */
export const __rspack_esm_id=75613;export const __rspack_esm_ids=[75613];export const __webpack_modules__={35370(t,e,r){var a=r(26198);t.exports=function(t,e,r){for(var i=0,o=arguments.length>2?r:a(e),n=new t(o);o>i;)n[i]=e[i++];return n}},48646(t,e,r){var a=r(69565),i=r(28551),o=r(1767),n=r(50851);t.exports=function(t,e){e&&"string"==typeof t||i(t);var r=n(t);return o(i(void 0!==r?a(r,t):t))}},30531(t,e,r){var a=r(46518),i=r(69565),o=r(79306),n=r(28551),s=r(1767),l=r(48646),c=r(19462),d=r(9539),h=r(96395),u=r(30684),p=r(84549);var f=!h&&!u("flatMap",function(){}),m=!h&&!f&&p("flatMap",TypeError),v=h||f||m||function(){try{var t=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(t){return t});t.next(),t.return()}catch(t){return!0}}(),g=c(function(){for(var t,e,r=this.iterator,a=this.mapper;;){if(e=this.inner)try{if(!(t=n(i(e.next,e.iterator))).done)return t.value;this.inner=null}catch(t){d(r,"throw",t)}if(t=n(i(this.next,r)),this.done=!!t.done)return;try{this.inner=l(a(t.value,this.counter++),!1)}catch(t){d(r,"throw",t)}}});a({target:"Iterator",proto:!0,real:!0,forced:v},{flatMap:function(t){n(this);try{o(t)}catch(t){d(this,"throw",t)}return m?i(m,this,t):new g(s(this),{mapper:t,inner:null})}})},97577(t,e,r){r.d(e,{A:()=>b});var a=r(5124),i=r(22441),o=r(6412),n=r(63672),s=r(34514),l=r(40991),c=r(92070),d=r(49546),h=r(9395),u=r(62676),p=r(15477),f=r(31896),m=(r(38625),a.AH`:host{--checked-icon-color:var(--wa-color-brand-on-loud);--checked-icon-scale:0.8;display:inline-flex;color:var(--wa-form-control-value-color);font-family:inherit;font-weight:var(--wa-form-control-value-font-weight);line-height:var(--wa-form-control-value-line-height);user-select:none;-webkit-user-select:none}[part~=control]{display:inline-flex;flex:0 0 auto;position:relative;align-items:center;justify-content:center;width:var(--wa-form-control-toggle-size);height:var(--wa-form-control-toggle-size);border-color:var(--wa-form-control-border-color);border-radius:min(calc(var(--wa-form-control-toggle-size) * .375),var(--wa-border-radius-s));border-style:var(--wa-border-style);border-width:var(--wa-form-control-border-width);background-color:var(--wa-form-control-background-color);transition:background var(--wa-transition-normal),border-color var(--wa-transition-fast),box-shadow var(--wa-transition-fast),color var(--wa-transition-fast);transition-timing-function:var(--wa-transition-easing);margin-inline-end:.5em}[part~=base]{display:flex;align-items:flex-start;position:relative;color:currentColor;vertical-align:middle;cursor:pointer}[part~=label]{display:inline}[part~=control]:has(:checked,:indeterminate){color:var(--checked-icon-color);border-color:var(--wa-form-control-activated-color);background-color:var(--wa-form-control-activated-color)}[part~=control]:has(> input:focus-visible:not(:disabled)){outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}:host [part~=base]:has(input:disabled){opacity:.5;cursor:not-allowed}input{position:absolute;padding:0;margin:0;height:100%;width:100%;opacity:0;pointer-events:none}[part~=icon]{display:flex;scale:var(--checked-icon-scale)}[part~=icon]::part(svg){translate:0.0009765625em}input:not(:checked,:indeterminate)+[part~=icon]{visibility:hidden}:host([required]) [part~=label]::after{content:var(--wa-form-control-required-content);color:var(--wa-form-control-required-content-color);margin-inline-start:var(--wa-form-control-required-content-offset)}`),v=Object.defineProperty,g=Object.getOwnPropertyDescriptor,y=(t,e,r,a)=>{for(var i,o=a>1?void 0:a?g(e,r):e,n=t.length-1;n>=0;n--)(i=t[n])&&(o=(a?i(e,r,o):i(o))||o);return a&&o&&v(e,r,o),o};let b=class extends u.q{static get validators(){const t=a.S$?[]:[(0,d.Y)({validationProperty:"checked",validationElement:Object.assign(document.createElement("input"),{type:"checkbox",required:!0})})];return[...super.validators,...t]}get value(){return this._value??"on"}set value(t){this._value=t}handleSizeChange(){(0,l.b)(this.localName,this.size)}get checked(){return this.valueHasChanged?Boolean(this._checked):this._checked??this.defaultChecked}set checked(t){this._checked=Boolean(t),this.valueHasChanged=!0}handleClick(){this.hasInteracted=!0,this.checked=!this.checked,this.indeterminate=!1,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})}connectedCallback(){super.connectedCallback(),this.handleDefaultCheckedChange()}handleDefaultCheckedChange(){this.handleValueOrCheckedChange()}handleValueOrCheckedChange(){this.setValue(this.checked?this.value:null,this._value),this.updateValidity()}handleStateChange(){this.hasUpdated&&(this.input.checked=this.checked,this.input.indeterminate=this.indeterminate),this.customStates.set("checked",this.checked),this.customStates.set("indeterminate",this.indeterminate),this.updateValidity()}handleDisabledChange(){this.customStates.set("disabled",this.disabled)}willUpdate(t){super.willUpdate(t),(t.has("value")||t.has("checked")||t.has("defaultChecked"))&&this.handleValueOrCheckedChange()}formResetCallback(){this._checked=null,super.formResetCallback(),this.handleValueOrCheckedChange()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){const t=!!a.S$||this.hasSlotController.test("hint"),e=!!this.hint||!!t,r=!this.checked&&this.indeterminate,i=r?"indeterminate":"check",l=r?"indeterminate":"check";return a.qy` <label part="base"> <span part="control"> <input class="input" type="checkbox" title="${this.title}" name="${(0,n.J)(this.name)}" value="${(0,n.J)(this._value)}" .indeterminate="${(0,s.V)(this.indeterminate)}" .checked="${(0,s.V)(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked?"true":"false"}" aria-describedby="hint" @click="${this.handleClick}"> <wa-icon part="${l}-icon icon" library="system" name="${i}"></wa-icon> </span> <slot part="label"></slot> </label> <slot id="hint" part="hint" name="hint" aria-hidden="${e?"false":"true"}" class="${(0,o.H)({"has-slotted":e})}"> ${this.hint} </slot> `}constructor(){super(...arguments),this.hasSlotController=new c.X(this,"hint"),this.title="",this.name=null,this._value=this.getAttribute("value")??null,this.size="m",this.disabled=!1,this.indeterminate=!1,this._checked=null,this.defaultChecked=this.hasAttribute("checked"),this.required=!1,this.hint=""}};b.css=[p.A,f.A,m],b.shadowRootOptions={...u.q.shadowRootOptions,delegatesFocus:!0},y([(0,i.P)('input[type="checkbox"]')],b.prototype,"input",2),y([(0,i.MZ)()],b.prototype,"title",2),y([(0,i.MZ)({reflect:!0})],b.prototype,"name",2),y([(0,i.MZ)({reflect:!0})],b.prototype,"value",1),y([(0,i.MZ)({reflect:!0})],b.prototype,"size",2),y([(0,h.w)("size")],b.prototype,"handleSizeChange",1),y([(0,i.MZ)({type:Boolean})],b.prototype,"disabled",2),y([(0,i.MZ)({type:Boolean,reflect:!0})],b.prototype,"indeterminate",2),y([(0,i.MZ)({type:Boolean,attribute:!1})],b.prototype,"checked",1),y([(0,i.MZ)({type:Boolean,reflect:!0,attribute:"checked"})],b.prototype,"defaultChecked",2),y([(0,i.MZ)({type:Boolean,reflect:!0})],b.prototype,"required",2),y([(0,i.MZ)()],b.prototype,"hint",2),y([(0,h.w)(["checked","defaultChecked"])],b.prototype,"handleDefaultCheckedChange",1),y([(0,h.w)(["checked","indeterminate"])],b.prototype,"handleStateChange",1),y([(0,h.w)("disabled")],b.prototype,"handleDisabledChange",1),b=y([(0,i.EM)("wa-checkbox")],b),b.disableWarning?.("change-in-update")},93900(t,e,r){r.a(t,async function(t,e){try{var a=r(5124),i=r(22441),o=r(6412),n=r(63672),s=r(17051),l=r(42462),c=r(28438),d=r(98779),h=r(27259),u=r(25877),p=r(31247),f=r(4444),m=r(92070),v=r(9395),g=r(717),y=r(17060),b=r(88496),w=r(91470),C=t([b,y]);[b,y]=C.then?(await C)():C;var x=Object.defineProperty,$=Object.getOwnPropertyDescriptor,k=(t,e,r,a)=>{for(var i,o=a>1?void 0:a?$(e,r):e,n=t.length-1;n>=0;n--)(i=t[n])&&(o=(a?i(e,r,o):i(o))||o);return a&&o&&x(e,r,o),o};let A=class extends g.A{firstUpdated(){this.open&&(this.addOpenListeners(),this.dialog.showModal(),(0,f.JG)(this))}disconnectedCallback(){super.disconnectedCallback(),(0,f.I7)(this),this.removeOpenListeners()}async requestClose(t){const e=new c.L({source:t});if(this.dispatchEvent(e),e.defaultPrevented)return this.open=!0,void(0,h.Ud)(this.dialog,"pulse");this.removeOpenListeners(),await(0,h.Ud)(this.dialog,"hide"),this.open=!1,this.dialog.close(),(0,f.I7)(this);const r=this.originalTrigger;"function"==typeof r?.focus&&setTimeout(()=>r.focus()),this.dispatchEvent(new s.Z)}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),(0,u.AZ)(this)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,u.Fw)(this)}handleDialogCancel(t){t.preventDefault(),!this.dialog.classList.contains("hide")&&t.target===this.dialog&&(0,u.a0)(this)&&this.requestClose(this.dialog)}handleDialogClick(t){const e=t.target.closest('[data-dialog="close"]');e&&(t.stopPropagation(),this.requestClose(e))}async handleDialogPointerDown(t){t.target===this.dialog&&(this.lightDismiss?this.requestClose(this.dialog):await(0,h.Ud)(this.dialog,"pulse"))}handleOpenChange(){this.open&&!this.dialog.open?this.show():!this.open&&this.dialog.open&&(this.open=!0,this.requestClose(this.dialog))}async show(){const t=new d.k;this.dispatchEvent(t),t.defaultPrevented?this.open=!1:(this.addOpenListeners(),this.originalTrigger=document.activeElement,this.open=!0,this.dialog.showModal(),(0,f.JG)(this),requestAnimationFrame(()=>{const t=this.querySelector("[autofocus]");t&&"function"==typeof t.focus?t.focus():this.dialog.focus()}),await(0,h.Ud)(this.dialog,"show"),this.dispatchEvent(new l.q))}render(){const t=!this.withoutHeader,e=this.hasUpdated?this.hasSlotController.test("footer"):this.withFooter;return a.qy` <dialog aria-labelledby="${this.ariaLabelledby??"title"}" aria-describedby="${(0,n.J)(this.ariaDescribedby)}" part="dialog" class="${(0,o.H)({dialog:!0,open:this.open})}" @cancel="${this.handleDialogCancel}" @click="${this.handleDialogClick}" @pointerdown="${this.handleDialogPointerDown}"> ${t?a.qy` <header part="header" class="header"> <h2 part="title" class="title" id="title"> <slot name="label"> ${this.label.length>0?this.label:String.fromCharCode(8203)} </slot> </h2> <div part="header-actions" class="header-actions"> <slot name="header-actions"></slot> <wa-button part="close-button" exportparts="base:close-button__base" class="close" appearance="plain" @click="${t=>this.requestClose(t.target)}"> <wa-icon name="xmark" label="${this.localize.term("close")}" library="system" variant="solid"></wa-icon> </wa-button> </div> </header> `:""} <div part="body" class="body"><slot></slot></div> ${e?a.qy` <footer part="footer" class="footer"> <slot name="footer"></slot> </footer> `:""} </dialog> `}constructor(){super(...arguments),this.localize=new y.c(this),this.hasSlotController=new m.X(this,"footer","header-actions","label"),this.open=!1,this.label="",this.withoutHeader=!1,this.lightDismiss=!1,this.withFooter=!1,this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.open&&(0,u.a0)(this)&&(t.preventDefault(),t.stopPropagation(),this.requestClose(this.dialog))}}};A.css=w.A,k([(0,i.P)(".dialog")],A.prototype,"dialog",2),k([(0,i.MZ)({type:Boolean,reflect:!0})],A.prototype,"open",2),k([(0,i.MZ)({reflect:!0})],A.prototype,"label",2),k([(0,i.MZ)({attribute:"without-header",type:Boolean,reflect:!0})],A.prototype,"withoutHeader",2),k([(0,i.MZ)({attribute:"light-dismiss",type:Boolean})],A.prototype,"lightDismiss",2),k([(0,i.MZ)({attribute:"aria-labelledby"})],A.prototype,"ariaLabelledby",2),k([(0,i.MZ)({attribute:"aria-describedby"})],A.prototype,"ariaDescribedby",2),k([(0,i.MZ)({attribute:"with-footer",type:Boolean})],A.prototype,"withFooter",2),k([(0,v.w)("open",{waitUntilFirstUpdate:!0})],A.prototype,"handleOpenChange",1),A=k([(0,i.EM)("wa-dialog")],A),a.S$||(document.addEventListener("click",t=>{const e=t.target.closest("[data-dialog]");if(e instanceof Element){const[t,r]=(0,p.v)(e.getAttribute("data-dialog")||"");if("open"===t&&r?.length){const t=e.getRootNode().getElementById(r);"wa-dialog"===t?.localName?t.open=!0:console.warn(`A dialog with an ID of "${r}" could not be found in this document.`)}}}),document.addEventListener("pointerdown",()=>{})),e()}catch(t){e(t)}})},91470(t,e,r){r.d(e,{A:()=>a});var a=r(5124).AH`:host{--width:31rem;--spacing:var(--wa-space-l);--backdrop-filter:none;--show-duration:200ms;--hide-duration:200ms;display:none}:host([open]){display:block}.dialog{display:flex;flex-direction:column;top:0;right:0;bottom:0;left:0;width:var(--width);max-width:calc(100% - var(--wa-space-2xl));max-height:calc(100% - var(--wa-space-2xl));color:inherit;background-color:var(--wa-color-surface-raised);border-radius:var(--wa-panel-border-radius);border:none;box-shadow:var(--wa-shadow-l);padding:0;margin:auto}.dialog.show{animation:show-dialog var(--show-duration) ease}.dialog.show::backdrop{animation:show-backdrop var(--show-duration,200ms) ease}.dialog.hide{animation:show-dialog var(--hide-duration) ease reverse}.dialog.hide::backdrop{animation:show-backdrop var(--hide-duration,200ms) ease reverse}.dialog.pulse{animation:pulse 250ms ease}.dialog:focus{outline:0}@media screen and (max-width:420px){.dialog{max-height:80vh}}.open{display:flex;opacity:1}.header{flex:0 0 auto;display:flex;flex-wrap:nowrap;padding-inline-start:var(--spacing);padding-block-end:0;padding-inline-end:calc(var(--spacing) - var(--wa-form-control-padding-block));padding-block-start:calc(var(--spacing) - var(--wa-form-control-padding-block))}.title{align-self:center;flex:1 1 auto;font-family:inherit;font-size:var(--wa-font-size-l);font-weight:var(--wa-font-weight-heading);line-height:var(--wa-line-height-condensed);margin:0}.header-actions{align-self:start;display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:end;gap:var(--wa-space-2xs);padding-inline-start:var(--spacing)}.header-actions ::slotted(wa-button),.header-actions wa-button{flex:0 0 auto;display:flex;align-items:center}.body{flex:1 1 auto;display:block;padding:var(--spacing);overflow:auto;-webkit-overflow-scrolling:touch}.body:focus{outline:0}.body:focus-visible{outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}.footer{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:var(--wa-space-xs);justify-content:end;padding:var(--spacing);padding-block-start:0}.footer ::slotted(wa-button:not(:first-of-type)){margin-inline-start:var(--wa-spacing-xs)}.dialog::backdrop{background-color:var(--wa-color-overlay-modal,rgb(0 0 0 / .25));-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}@keyframes pulse{0%{scale:1}50%{scale:1.02}100%{scale:1}}@keyframes show-dialog{from{opacity:0;scale:0.8}to{opacity:1;scale:1}}@keyframes show-backdrop{from{opacity:0}to{opacity:1}}@media (forced-colors:active){.dialog{border:solid 1px #fff}}`},30006(t,e,r){r.a(t,async function(t,e){try{r(74423);var a=r(5124),i=r(22441),o=r(6412),n=r(63672),s=r(34514),l=r(37541),c=r(40991),d=r(92070),h=r(28225),u=r(41268),p=r(9395),f=r(62676),m=r(15477),v=r(31896),g=r(17060),y=(r(38625),r(96272)),b=t([g]);g=(b.then?(await b)():b)[0];var w=Object.defineProperty,C=Object.getOwnPropertyDescriptor,x=(t,e,r,a)=>{for(var i,o=a>1?void 0:a?C(e,r):e,n=t.length-1;n>=0;n--)(i=t[n])&&(o=(a?i(e,r,o):i(o))||o);return a&&o&&w(e,r,o),o};let $=class extends f.q{static get validators(){return[...super.validators,(0,u.i)()]}get value(){return this.valueHasChanged?this._value:this._value??this.defaultValue}set value(t){this._value!==t&&(this.valueHasChanged=!0,this._value=t)}handleSizeChange(){(0,c.b)(this.localName,this.size)}handleChange(t){this.value=this.input.value,this.relayNativeEvent(t,{bubbles:!0,composed:!0})}clear(){""!==this.value&&(this.value="",this.updateComplete.then(()=>{this.dispatchEvent(new l.I),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})),this.input.focus()}handleClearClick(t){t.preventDefault(),this.clear()}handleInput(){this.value=this.input.value}handleKeyDown(t){(0,h.U)(t,this)}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}updated(t){if(super.updated(t),t.has("value")||t.has("defaultValue")||t.has("type")){const t=["number","date","time","datetime-local"];this.input&&t.includes(this.type)&&this.value&&this.input.value!==this.value&&(this._value=this.input.value),this.customStates.set("blank",!this.value),this.updateValidity()}}handleStepChange(){this.input.step=String(this.step),this.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,r="none"){this.input.setSelectionRange(t,e,r)}setRangeText(t,e,r,a="preserve"){const i=e??this.input.selectionStart,o=r??this.input.selectionEnd;this.input.setRangeText(t,i,o,a),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}formResetCallback(){this.value=null,this.input&&(this.input.value=this.value),super.formResetCallback()}render(){const t=this.hasUpdated?this.hasSlotController.test("label"):this.withLabel,e=this.hasUpdated?this.hasSlotController.test("hint"):this.withHint,r=!!this.label||!!t,i=!!this.hint||!!e,l=this.withClear&&!this.disabled&&!this.readonly,c=(a.S$||this.hasUpdated)&&l&&("number"==typeof this.value||this.value&&this.value.length>0);return a.qy` <label part="form-control-label label" class="${(0,o.H)({label:!0,"has-label":r})}" for="input" aria-hidden="${r?"false":"true"}"> <slot name="label">${this.label}</slot> </label> <div part="base" class="text-field"> <slot name="start" part="start" class="start"></slot> <input part="input" id="input" class="control" type="${"password"===this.type&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${(0,n.J)(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${(0,n.J)(this.placeholder)}" minlength="${(0,n.J)(this.minlength)}" maxlength="${(0,n.J)(this.maxlength)}" min="${(0,n.J)(this.min)}" max="${(0,n.J)(this.max)}" step="${(0,n.J)(this.step)}" .value="${(0,s.V)(this.value??"")}" autocapitalize="${(0,n.J)(this.autocapitalize)}" autocomplete="${(0,n.J)(this.autocomplete)}" autocorrect="${this.autocorrect?"on":"off"}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${(0,n.J)(this.pattern)}" enterkeyhint="${(0,n.J)(this.enterkeyhint)}" inputmode="${(0,n.J)(this.inputmode)}" aria-describedby="hint" @change="${this.handleChange}" @input="${this.handleInput}" @keydown="${this.handleKeyDown}"> ${c?a.qy` <slot name="clear-button"> <button part="clear-button" class="clear" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"> <slot name="clear-icon"> <wa-icon name="circle-xmark" library="system" variant="regular"></wa-icon> </slot> </button> </slot> `:""} ${this.passwordToggle&&!this.disabled?a.qy` <slot name="password-toggle-button"> <button part="password-toggle-button" class="password-toggle" type="button" aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" @click="${this.handlePasswordToggle}" tabindex="-1"> ${this.passwordVisible?a.qy` <slot name="hide-password-icon"> <wa-icon name="eye-slash" library="system" variant="regular"></wa-icon> </slot> `:a.qy` <slot name="show-password-icon"> <wa-icon name="eye" library="system" variant="regular"></wa-icon> </slot> `} </button> </slot> `:""} <slot name="end" part="end" class="end"></slot> </div> <slot id="hint" part="hint" name="hint" class="${(0,o.H)({"has-slotted":i})}" aria-hidden="${i?"false":"true"}">${this.hint}</slot> `}constructor(){super(...arguments),this.assumeInteractionOn=["blur","input"],this.hasSlotController=new d.X(this,"hint","label"),this.localize=new g.c(this),this.title="",this.type="text",this._value=null,this.defaultValue=this.getAttribute("value")||null,this.size="m",this.appearance="outlined",this.pill=!1,this.label="",this.hint="",this.withClear=!1,this.placeholder="",this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.withoutSpinButtons=!1,this.required=!1,this.spellcheck=!0,this.withLabel=!1,this.withHint=!1}};$.css=[v.A,m.A,y.A],$.shadowRootOptions={...f.q.shadowRootOptions,delegatesFocus:!0},x([(0,i.P)("input")],$.prototype,"input",2),x([(0,i.MZ)()],$.prototype,"title",2),x([(0,i.MZ)({reflect:!0})],$.prototype,"type",2),x([(0,i.wk)()],$.prototype,"value",1),x([(0,i.MZ)({attribute:"value",reflect:!0})],$.prototype,"defaultValue",2),x([(0,i.MZ)({reflect:!0})],$.prototype,"size",2),x([(0,p.w)("size")],$.prototype,"handleSizeChange",1),x([(0,i.MZ)({reflect:!0})],$.prototype,"appearance",2),x([(0,i.MZ)({type:Boolean,reflect:!0})],$.prototype,"pill",2),x([(0,i.MZ)()],$.prototype,"label",2),x([(0,i.MZ)({attribute:"hint"})],$.prototype,"hint",2),x([(0,i.MZ)({attribute:"with-clear",type:Boolean})],$.prototype,"withClear",2),x([(0,i.MZ)()],$.prototype,"placeholder",2),x([(0,i.MZ)({type:Boolean,reflect:!0})],$.prototype,"readonly",2),x([(0,i.MZ)({attribute:"password-toggle",type:Boolean})],$.prototype,"passwordToggle",2),x([(0,i.MZ)({attribute:"password-visible",type:Boolean})],$.prototype,"passwordVisible",2),x([(0,i.MZ)({attribute:"without-spin-buttons",type:Boolean,reflect:!0})],$.prototype,"withoutSpinButtons",2),x([(0,i.MZ)({type:Boolean,reflect:!0})],$.prototype,"required",2),x([(0,i.MZ)()],$.prototype,"pattern",2),x([(0,i.MZ)({type:Number})],$.prototype,"minlength",2),x([(0,i.MZ)({type:Number})],$.prototype,"maxlength",2),x([(0,i.MZ)()],$.prototype,"min",2),x([(0,i.MZ)()],$.prototype,"max",2),x([(0,i.MZ)()],$.prototype,"step",2),x([(0,i.MZ)()],$.prototype,"autocapitalize",2),x([(0,i.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"off"===t),toAttribute:t=>t?"on":"off"}})],$.prototype,"autocorrect",2),x([(0,i.MZ)()],$.prototype,"autocomplete",2),x([(0,i.MZ)({type:Boolean})],$.prototype,"autofocus",2),x([(0,i.MZ)()],$.prototype,"enterkeyhint",2),x([(0,i.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],$.prototype,"spellcheck",2),x([(0,i.MZ)()],$.prototype,"inputmode",2),x([(0,i.MZ)({attribute:"with-label",type:Boolean})],$.prototype,"withLabel",2),x([(0,i.MZ)({attribute:"with-hint",type:Boolean})],$.prototype,"withHint",2),x([(0,p.w)("step",{waitUntilFirstUpdate:!0})],$.prototype,"handleStepChange",1),$=x([(0,i.EM)("wa-input")],$),$.disableWarning?.("change-in-update"),e()}catch(t){e(t)}})},96272(t,e,r){r.d(e,{A:()=>a});var a=r(5124).AH`:host{border-width:0}:host(:focus){outline:0}.text-field{display:flex;align-items:stretch;justify-content:start;position:relative;transition:inherit;height:var(--wa-form-control-height);border-color:var(--wa-form-control-border-color);border-radius:var(--wa-form-control-border-radius);border-style:var(--wa-form-control-border-style);border-width:var(--wa-form-control-border-width);cursor:text;color:var(--wa-form-control-value-color);font-size:var(--wa-form-control-value-font-size);font-family:inherit;font-weight:var(--wa-form-control-value-font-weight);line-height:var(--wa-form-control-value-line-height);vertical-align:middle;width:100%;transition:background-color var(--wa-transition-normal),border-color var(--wa-transition-normal),outline-color var(--wa-transition-fast);transition-timing-function:var(--wa-transition-easing);background-color:var(--wa-form-control-background-color);box-shadow:var(--box-shadow);padding:0 var(--wa-form-control-padding-inline);outline:var(--wa-focus-ring-style) var(--wa-focus-ring-width) transparent;outline-offset:var(--wa-focus-ring-offset)}.text-field:focus-within{outline-color:var(--wa-color-focus)}.text-field:has(:disabled){cursor:not-allowed;opacity:.5}:host([appearance=outlined]) .text-field{background-color:var(--wa-form-control-background-color);border-color:var(--wa-form-control-border-color)}:host([appearance=filled]) .text-field{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-color-neutral-fill-quiet)}:host([appearance=filled-outlined]) .text-field{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-form-control-border-color)}:host([pill]) .text-field{border-radius:var(--wa-border-radius-pill)!important}.text-field:has(:-webkit-autofill),.text-field:has(:autofill){background-color:var(--wa-color-brand-fill-quiet)!important}.text-field input,.text-field textarea{height:100%;padding:0;border:none;outline:0;box-shadow:none;margin:0;cursor:inherit;-webkit-appearance:none;font:inherit}:is(.text-field input,.text-field textarea):-webkit-autofill,:is(.text-field input,.text-field textarea):-webkit-autofill:active,:is(.text-field input,.text-field textarea):-webkit-autofill:focus,:is(.text-field input,.text-field textarea):-webkit-autofill:hover{-webkit-background-clip:text;background-color:transparent;-webkit-text-fill-color:inherit}input{flex:1 1 auto;min-width:0;height:100%;transition:inherit;background-color:rgb(118 118 118 / 0);height:calc(var(--wa-form-control-height) - var(--border-width) * 2);padding-block:0;color:inherit}input:autofill,input:autofill:active,input:autofill:focus,input:autofill:hover{box-shadow:none;caret-color:var(--wa-form-control-value-color)}input::placeholder{color:var(--wa-form-control-placeholder-color);user-select:none;-webkit-user-select:none}input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{-webkit-appearance:none}input:focus{outline:0}textarea:autofill,textarea:autofill:active,textarea:autofill:focus,textarea:autofill:hover{box-shadow:none;caret-color:var(--wa-form-control-value-color)}textarea::placeholder{color:var(--wa-form-control-placeholder-color);user-select:none;-webkit-user-select:none}.end,.start{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default}:is(.start,.end)::slotted(wa-icon){color:var(--wa-color-neutral-on-quiet)}.start::slotted(*){margin-inline-end:var(--wa-form-control-padding-inline)}.end::slotted(*){margin-inline-start:var(--wa-form-control-padding-inline)}.clear,.password-toggle{display:inline-flex;align-items:center;justify-content:center;font-size:inherit;color:var(--wa-color-neutral-on-quiet);border:none;background:0 0;padding:0;transition:var(--wa-transition-normal) color;cursor:pointer;margin-inline-start:var(--wa-form-control-padding-inline)}@media (hover:hover){:is(.clear,.password-toggle):hover{color:color-mix(in oklab,currentColor,var(--wa-color-mix-hover))}}:is(.clear,.password-toggle):active{color:color-mix(in oklab,currentColor,var(--wa-color-mix-active))}:is(.clear,.password-toggle):focus{outline:0}::-ms-reveal{display:none}:host([without-spin-buttons]) input[type=number]{-moz-appearance:textfield}:host([without-spin-buttons]) input[type=number]::-webkit-inner-spin-button,:host([without-spin-buttons]) input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;display:none}`},52630(t,e,r){r.a(t,async function(t,a){try{r.d(e,{A:()=>$});r(74423),r(44114),r(18111),r(22489);var i=r(5124),o=r(22441),n=r(6412),s=r(17051),l=r(42462),c=r(28438),d=r(98779),h=r(27259),u=r(25877),p=r(984),f=r(95010),m=r(9395),v=r(717),g=r(40158),y=r(51920),b=t([g]);g=(b.then?(await b)():b)[0];var w=Object.defineProperty,C=Object.getOwnPropertyDescriptor,x=(t,e,r,a)=>{for(var i,o=a>1?void 0:a?C(e,r):e,n=t.length-1;n>=0;n--)(i=t[n])&&(o=(a?i(e,r,o):i(o))||o);return a&&o&&w(e,r,o),o};let $=class extends v.A{connectedCallback(){super.connectedCallback(),this.eventController.signal.aborted&&(this.eventController=new AbortController),this.addEventListener("mouseout",this.handleMouseOut),this.open&&(this.open=!1,this.updateComplete.then(()=>{this.open=!0})),this.id||(this.id=(0,f.N)("wa-tooltip-")),this.for&&this.anchor?(this.anchor=null,this.handleForChange()):this.for&&this.handleForChange()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,u.Fw)(this),this.eventController.abort(),this.anchor&&this.removeFromAriaLabelledBy(this.anchor,this.id)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}addToAriaLabelledBy(t,e){const r=(t.getAttribute("aria-labelledby")||"").split(/\s+/).filter(Boolean);r.includes(e)||(r.push(e),t.setAttribute("aria-labelledby",r.join(" ")))}removeFromAriaLabelledBy(t,e){const r=(t.getAttribute("aria-labelledby")||"").split(/\s+/).filter(Boolean).filter(t=>t!==e);r.length>0?t.setAttribute("aria-labelledby",r.join(" ")):t.removeAttribute("aria-labelledby")}async handleOpenChange(){if(this.open){if(this.disabled)return;const t=new d.k;if(this.dispatchEvent(t),t.defaultPrevented)return void(this.open=!1);document.addEventListener("keydown",this.handleDocumentKeyDown,{signal:this.eventController.signal}),(0,u.AZ)(this),this.body.hidden=!1,this.popup.active=!0,await(0,h.Ud)(this.popup.popup,"show-with-scale"),this.popup.reposition(),this.dispatchEvent(new l.q)}else{const t=new c.L;if(this.dispatchEvent(t),t.defaultPrevented)return void(this.open=!1);document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,u.Fw)(this),await(0,h.Ud)(this.popup.popup,"hide-with-scale"),this.popup.active=!1,this.body.hidden=!0,this.dispatchEvent(new s.Z)}}handleForChange(){const t=this.getRootNode();if(!t)return;const e=this.for?t.getElementById(this.for):null,r=this.anchor;if(e===r)return;const{signal:a}=this.eventController;e&&(this.addToAriaLabelledBy(e,this.id),e.addEventListener("blur",this.handleBlur,{capture:!0,signal:a}),e.addEventListener("focus",this.handleFocus,{capture:!0,signal:a}),e.addEventListener("click",this.handleClick,{signal:a}),e.addEventListener("mouseover",this.handleMouseOver,{signal:a}),e.addEventListener("mouseout",this.handleMouseOut,{signal:a})),r&&(this.removeFromAriaLabelledBy(r,this.id),r.removeEventListener("blur",this.handleBlur,{capture:!0}),r.removeEventListener("focus",this.handleFocus,{capture:!0}),r.removeEventListener("click",this.handleClick),r.removeEventListener("mouseover",this.handleMouseOver),r.removeEventListener("mouseout",this.handleMouseOut)),this.anchor=e}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,(0,p.l)(this,"wa-after-show")}async hide(){if(this.open)return this.open=!1,(0,p.l)(this,"wa-after-hide")}render(){return i.qy` <wa-popup part="base" exportparts="
popup:base__popup,
arrow:base__arrow
" class="${(0,n.H)({tooltip:!0,"tooltip-open":this.open})}" placement="${this.placement}" distance="${this.distance}" skidding="${this.skidding}" flip shift ?arrow="${!this.withoutArrow}" hover-bridge .anchor="${this.anchor}"> <div part="body" class="body"> <slot></slot> </div> </wa-popup> `}constructor(){super(...arguments),this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.showDelay=150,this.hideDelay=0,this.trigger="hover focus",this.withoutArrow=!1,this.for=null,this.anchor=null,this.eventController=new AbortController,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.open&&(0,u.a0)(this)&&(t.preventDefault(),t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{this.hasTrigger("hover")&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),this.showDelay))},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){const t=Boolean(this.anchor?.matches(":hover")),e=this.matches(":hover");if(t||e)return;clearTimeout(this.hoverTimeout),t||e||(this.hoverTimeout=window.setTimeout(()=>{this.hide()},this.hideDelay))}}}};$.css=y.A,$.dependencies={"wa-popup":g.A},x([(0,o.P)("slot:not([name])")],$.prototype,"defaultSlot",2),x([(0,o.P)(".body")],$.prototype,"body",2),x([(0,o.P)("wa-popup")],$.prototype,"popup",2),x([(0,o.MZ)()],$.prototype,"placement",2),x([(0,o.MZ)({type:Boolean,reflect:!0})],$.prototype,"disabled",2),x([(0,o.MZ)({type:Number})],$.prototype,"distance",2),x([(0,o.MZ)({type:Boolean,reflect:!0})],$.prototype,"open",2),x([(0,o.MZ)({type:Number})],$.prototype,"skidding",2),x([(0,o.MZ)({attribute:"show-delay",type:Number})],$.prototype,"showDelay",2),x([(0,o.MZ)({attribute:"hide-delay",type:Number})],$.prototype,"hideDelay",2),x([(0,o.MZ)()],$.prototype,"trigger",2),x([(0,o.MZ)({attribute:"without-arrow",type:Boolean,reflect:!0})],$.prototype,"withoutArrow",2),x([(0,o.MZ)()],$.prototype,"for",2),x([(0,o.wk)()],$.prototype,"anchor",2),x([(0,m.w)("open",{waitUntilFirstUpdate:!0})],$.prototype,"handleOpenChange",1),x([(0,m.w)("for")],$.prototype,"handleForChange",1),x([(0,m.w)(["distance","placement","skidding"])],$.prototype,"handleOptionsChange",1),x([(0,m.w)("disabled")],$.prototype,"handleDisabledChange",1),$=x([(0,o.EM)("wa-tooltip")],$),a()}catch(t){a(t)}})},51920(t,e,r){r.d(e,{A:()=>a});var a=r(5124).AH`:host{--max-width:30ch;display:inline-block;position:absolute;color:var(--wa-tooltip-content-color);font-size:var(--wa-tooltip-font-size);line-height:var(--wa-tooltip-line-height);text-align:start;white-space:normal}.tooltip{--arrow-size:var(--wa-tooltip-arrow-size);--arrow-color:var(--wa-tooltip-background-color)}.tooltip::part(popup){z-index:1000}.tooltip[placement^=top]::part(popup){transform-origin:bottom}.tooltip[placement^=bottom]::part(popup){transform-origin:top}.tooltip[placement^=left]::part(popup){transform-origin:right}.tooltip[placement^=right]::part(popup){transform-origin:left}.body{display:block;width:max-content;max-width:var(--max-width);border-radius:var(--wa-tooltip-border-radius);background-color:var(--wa-tooltip-background-color);border:var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color);padding:.25em .5em;user-select:none;-webkit-user-select:none}.tooltip{--popup-border-width:var(--wa-tooltip-border-width)}.tooltip::part(arrow){border-bottom:var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color);border-right:var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color)}`},37541(t,e,r){r.d(e,{I:()=>a});class a extends Event{constructor(){super("wa-clear",{bubbles:!0,cancelable:!1,composed:!0})}}},984(t,e,r){function a(t,e){return new Promise(r=>{t.addEventListener(e,function a(i){i.target===t&&(t.removeEventListener(e,a),r())})})}r.d(e,{l:()=>a})},95010(t,e,r){r.d(e,{q:()=>a,N:()=>i});r(16573),r(78100),r(77936),r(37467),r(44732),r(79577),r(16632),r(34226),r(9486),r(20456);function a(t,e,r){const a=t=>Object.is(t,-0)?0:t;return a(t<e?e:t>r?r:t)}function i(t=""){return`${t}${((t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[t]];return e})()}`}},31247(t,e,r){r.d(e,{v:()=>a});r(18111),r(22489),r(61701);function a(t){return t.split(" ").map(t=>t.trim()).filter(t=>""!==t)}},4444(t,e,r){r.d(e,{JG:()=>i,Rt:()=>n,I7:()=>o});r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698);const a=new Set;function i(t){if(a.add(t),!document.documentElement.classList.contains("wa-scroll-lock")){const t=function(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}()+function(){const t=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(t)||!t?0:t}();let e=getComputedStyle(document.documentElement).scrollbarGutter;e&&"auto"!==e||(e="stable"),t<2&&(e=""),document.documentElement.style.setProperty("--wa-scroll-lock-gutter",e),document.documentElement.classList.add("wa-scroll-lock"),document.documentElement.style.setProperty("--wa-scroll-lock-size",`${t}px`)}}function o(t){a.delete(t),0===a.size&&(document.documentElement.classList.remove("wa-scroll-lock"),document.documentElement.style.removeProperty("--wa-scroll-lock-size"))}function n(t,e,r="vertical",a="smooth"){const i=function(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}(t,e),o=i.top+e.scrollTop,n=i.left+e.scrollLeft,s=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,c=e.scrollTop,d=e.scrollTop+e.offsetHeight;"horizontal"!==r&&"both"!==r||(n<s?e.scrollTo({left:n,behavior:a}):n+t.clientWidth>l&&e.scrollTo({left:n-e.offsetWidth+t.clientWidth,behavior:a})),"vertical"!==r&&"both"!==r||(o<c?e.scrollTo({top:o,behavior:a}):o+t.clientHeight>d&&e.scrollTo({top:o-e.offsetHeight+t.clientHeight,behavior:a}))}},28225(t,e,r){r.d(e,{U:()=>a});r(74423);function a(t,e){const r=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;"Enter"!==t.key||r||setTimeout(()=>{t.defaultPrevented||t.isComposing||function(t){let e=null;"form"in t&&(e=t.form);!e&&"getForm"in t&&(e=t.getForm());if(!e)return;const r=[...e.elements];if(1===r.length)return void e.requestSubmit(null);const a=r.find(t=>"submit"===t.type&&!t.matches(":disabled"));if(!a)return;["input","button"].includes(a.localName)?e.requestSubmit(a):a.click()}(e)})}},49546(t,e,r){r.d(e,{Y:()=>a});r(44114);const a=(t={})=>{let{validationElement:e,validationProperty:r}=t;e||(e=Object.assign(document.createElement("input"),{required:!0})),r||(r="value");const a={observedAttributes:["required"],message:e.validationMessage,checkValidity(t){const e={message:"",isValid:!0,invalidKeys:[]};if(!(t.required??t.hasAttribute("required")))return e;return!t[r]&&(e.message="function"==typeof a.message?a.message(t):a.message||"",e.isValid=!1,e.invalidKeys.push("valueMissing")),e}};return a}},15477(t,e,r){r.d(e,{A:()=>a});var a=r(5124).AH`:host{display:flex;flex-direction:column}[part~=form-control]{display:contents}:is([part~=form-control-label],[part~=label]).has-label,:is([part~=form-control-label],[part~=label]):has(:not(:empty)){display:inline-flex;color:var(--wa-form-control-label-color);font-weight:var(--wa-form-control-label-font-weight);line-height:var(--wa-form-control-label-line-height);margin-block-end:0.5em}:host([required]) :is([part~=form-control-label],[part~=label])::after{content:var(--wa-form-control-required-content);margin-inline-start:var(--wa-form-control-required-content-offset);color:var(--wa-form-control-required-content-color)}[part~=hint]{display:block;color:var(--wa-form-control-hint-color);font-weight:var(--wa-form-control-hint-font-weight);line-height:var(--wa-form-control-hint-line-height);margin-block-start:0.5em;font-size:var(--wa-font-size-smaller)}[part~=hint]:not(.has-slotted,.has-hint){display:none}`},88696(t,e,r){r.d(e,{P:()=>o});r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698);var a=r(37540),i=r(42017);class o{handleChanges(t){this.value=this.callback?.(t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}target(t){return n(this,t)}constructor(t,{target:e,config:r,callback:a,skipInitial:i}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(e??t),this.l=r,this.o=i??this.o,this.callback=a,window.ResizeObserver?(this.u=new ResizeObserver(t=>{this.handleChanges(t),this.h.requestUpdate()}),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}}const n=(0,i.u$)(class extends a.Kq{render(t,e){}update(t,[e,r]){this.controller=e,this.part=t,this.observe=r,!1===r?(e.unobserve(t.element),this.observing=!1):!1===this.observing&&(e.observe(t.element),this.observing=!0)}disconnected(){this.controller?.unobserve(this.part.element),this.observing=!1}reconnected(){!1!==this.observe&&!1===this.observing&&(this.controller?.observe(this.part.element),this.observing=!0)}constructor(){super(...arguments),this.observing=!1}})},75275(t,e,r){var a=r(62826),i=r(22441),o=r(5124),n=r(76482);const s=["focusin","focusout","pointerdown"];class l extends o.WF{get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(t){if(!t[c]){switch(t.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}t[c]=!0}}onControlChange(t,e){if(!o.S$)for(const r of s)t?.removeEventListener(r,this),e?.addEventListener(r,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new n.i(this,this.onControlChange.bind(this))}}(0,a.Cg)([(0,i.MZ)({type:Boolean,reflect:!0})],l.prototype,"visible",void 0),(0,a.Cg)([(0,i.MZ)({type:Boolean,reflect:!0})],l.prototype,"inward",void 0);const c=Symbol("handledByFocusRing"),d=o.AH`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2,0,0,1);box-sizing:border-box;color:var(--md-focus-ring-color,var(--md-sys-color-secondary,#625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));inset:calc(-1*var(--md-focus-ring-outward-offset,2px));outline:var(--md-focus-ring-width,3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border:var(--md-focus-ring-width,3px) solid currentColor;inset:var(--md-focus-ring-inward-offset,0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width,8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width,8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width,8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width,8px)}}@media(prefers-reduced-motion){:host{animation:none}}`;let h=class extends l{};h.styles=[d],h=(0,a.Cg)([(0,i.EM)("md-focus-ring")],h)},1024(t,e,r){r.d(e,{n:()=>c});r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698);var a=r(5124);r(74423);const i=["role","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"],o=i.map(s);function n(t){return o.includes(t)}function s(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const l=Symbol("privateIgnoreAttributeChangesFor");function c(t){var e;if(a.S$)return t;class r extends t{attributeChangedCallback(t,e,r){if(!n(t))return void super.attributeChangedCallback(t,e,r);if(this[l].has(t))return;this[l].add(t),this.removeAttribute(t),this[l].delete(t);const a=h(t);null===r?delete this.dataset[a]:this.dataset[a]=r,this.requestUpdate(h(t),e)}getAttribute(t){return n(t)?super.getAttribute(d(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),n(t)&&(super.removeAttribute(d(t)),this.requestUpdate())}constructor(){super(...arguments),this[e]=new Set}}return e=l,function(t){for(const e of i){const r=s(e),a=d(r),i=h(r);t.createProperty(e,{attribute:r,noAccessor:!0}),t.createProperty(Symbol(a),{attribute:a,noAccessor:!0}),Object.defineProperty(t.prototype,e,{configurable:!0,enumerable:!0,get(){return this.dataset[i]??null},set(t){const r=this.dataset[i]??null;t!==r&&(null===t?delete this.dataset[i]:this.dataset[i]=t,this.requestUpdate(e,r))}})}}(r),r}function d(t){return`data-${t}`}function h(t){return t.replace(/-\w/,t=>t[1].toUpperCase())}},25423(t,e,r){r.d(e,{U:()=>i,Z:()=>o});r(44114);var a=r(27525);const i={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class o{get items(){const t=this.getPossibleItems(),e=[];for(const r of t){if(this.isItem(r)){e.push(r);continue}const t=r.item;t&&this.isItem(t)&&e.push(t)}return e}activateNextItem(){const t=this.items,e=(0,a.A6)(t,this.isActivatable);return e&&(e.item.tabIndex=-1),(0,a.wm)(t,e,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const t=this.items,e=(0,a.A6)(t,this.isActivatable);return e&&(e.item.tabIndex=-1),(0,a.u9)(t,e,this.isActivatable,this.wrapNavigation())}constructor(t){this.handleKeydown=t=>{const e=t.key;if(t.defaultPrevented||!this.isNavigableKey(e))return;const r=this.items;if(!r.length)return;const o=(0,a.A6)(r,this.isActivatable);t.preventDefault();const n=this.isRtl(),s=n?i.ArrowRight:i.ArrowLeft,l=n?i.ArrowLeft:i.ArrowRight;let c=null;switch(e){case i.ArrowDown:case l:c=(0,a.wm)(r,o,this.isActivatable,this.wrapNavigation());break;case i.ArrowUp:case s:c=(0,a.u9)(r,o,this.isActivatable,this.wrapNavigation());break;case i.Home:c=(0,a.zT)(r,this.isActivatable);break;case i.End:c=(0,a.RZ)(r,this.isActivatable)}c&&o&&o.item!==c&&(o.item.tabIndex=-1)},this.onDeactivateItems=()=>{const t=this.items;for(const e of t)this.deactivateItem(e)},this.onRequestActivation=t=>{this.onDeactivateItems();const e=t.target;this.activateItem(e),e.focus()},this.onSlotchange=()=>{const t=this.items;let e=!1;for(const r of t){!(!r.disabled&&r.tabIndex>-1)||e?r.tabIndex=-1:(e=!0,r.tabIndex=0)}if(e)return;const r=(0,a.c7)(t,this.isActivatable);r&&(r.tabIndex=0)};const{isItem:e,getPossibleItems:r,isRtl:o,deactivateItem:n,activateItem:s,isNavigableKey:l,isActivatable:c,wrapNavigation:d}=t;this.isItem=e,this.getPossibleItems=r,this.isRtl=o,this.deactivateItem=n,this.activateItem=s,this.isNavigableKey=l,this.isActivatable=c,this.wrapNavigation=d??(()=>!0)}}},27525(t,e,r){function a(t,e=p){const r=s(t,e);return r&&(r.tabIndex=0,r.focus()),r}function i(t,e=p){const r=l(t,e);return r&&(r.tabIndex=0,r.focus()),r}function o(t,e=p){const r=n(t,e);return r&&(r.item.tabIndex=-1),r}function n(t,e=p){for(let r=0;r<t.length;r++){const a=t[r];if(0===a.tabIndex&&e(a))return{item:a,index:r}}return null}function s(t,e=p){for(const r of t)if(e(r))return r;return null}function l(t,e=p){for(let r=t.length-1;r>=0;r--){const a=t[r];if(e(a))return a}return null}function c(t,e,r=p,i=!0){if(e){const a=function(t,e,r=p,a=!0){for(let i=1;i<t.length;i++){const o=(i+e)%t.length;if(o<e&&!a)return null;const n=t[o];if(r(n))return n}return t[e]?t[e]:null}(t,e.index,r,i);return a&&(a.tabIndex=0,a.focus()),a}return a(t,r)}function d(t,e,r=p,a=!0){if(e){const i=function(t,e,r=p,a=!0){for(let i=1;i<t.length;i++){const o=(e-i+t.length)%t.length;if(o>e&&!a)return null;const n=t[o];if(r(n))return n}return t[e]?t[e]:null}(t,e.index,r,a);return i&&(i.tabIndex=0,i.focus()),i}return i(t,r)}function h(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function u(){return new Event("request-activation",{bubbles:!0,composed:!0})}function p(t){return!t.disabled}r.d(e,{A6:()=>n,Ex:()=>l,RN:()=>h,RZ:()=>i,c7:()=>s,cG:()=>u,u9:()=>d,ub:()=>o,wm:()=>c,zT:()=>a})},11245(t,e,r){r.d(e,{R:()=>a});const a=r(5124).AH`:host{background:var(--md-list-container-color,var(--md-sys-color-surface,#fef7ff));color:unset;display:flex;flex-direction:column;outline:0;padding:8px 0;position:relative}`},49838(t,e,r){r.d(e,{B:()=>l});r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698);var a=r(62826),i=r(5124),o=r(22441),n=r(25423);const s=new Set(Object.values(n.U));class l extends i.WF{get items(){return this.listController.items}render(){return i.qy` <slot @deactivate-items="${this.listController.onDeactivateItems}" @request-activation="${this.listController.onRequestActivation}" @slotchange="${this.listController.onSlotchange}"> </slot> `}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}constructor(){super(),this.listController=new n.Z({isItem:t=>t.hasAttribute("md-list-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>"rtl"===getComputedStyle(this).direction,deactivateItem:t=>{t.tabIndex=-1},activateItem:t=>{t.tabIndex=0},isNavigableKey:t=>s.has(t),isActivatable:t=>!t.disabled&&"text"!==t.type}),this.internals=this.attachInternals(),i.S$||(this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown))}}(0,a.Cg)([(0,o.KN)({flatten:!0})],l.prototype,"slotItems",void 0)},82553(t,e,r){r.d(e,{R:()=>a});const a=r(5124).AH`:host{display:flex;-webkit-tap-highlight-color:transparent;--md-ripple-hover-color:var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:0;-webkit-tap-highlight-color:transparent;width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, .3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-list-item-one-line-container-height,56px);padding-top:var(--md-list-item-top-space,12px);padding-bottom:var(--md-list-item-bottom-space,12px);padding-inline-start:var(--md-list-item-leading-space,16px);padding-inline-end:var(--md-list-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight,var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight,var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}@media(forced-colors:active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}`},58168(t,e,r){r.d(e,{n:()=>m});var a=r(62826),i=(r(75275),r(22441)),o=r(5124);class n extends o.WF{render(){return o.qy` <slot name="container"></slot> <slot class="non-text" name="start"></slot> <div class="text"> <slot name="overline" @slotchange="${this.handleTextSlotChange}"></slot> <slot class="default-slot" @slotchange="${this.handleTextSlotChange}"></slot> <slot name="headline" @slotchange="${this.handleTextSlotChange}"></slot> <slot name="supporting-text" @slotchange="${this.handleTextSlotChange}"></slot> </div> <slot class="non-text" name="trailing-supporting-text"></slot> <slot class="non-text" name="end"></slot> `}handleTextSlotChange(){let t=!1,e=0;for(const r of this.textSlots)if(s(r)&&(e+=1),e>1){t=!0;break}this.multiline=t}constructor(){super(...arguments),this.multiline=!1}}function s(t){for(const e of t.assignedNodes({flatten:!0})){const t=e.nodeType===Node.ELEMENT_NODE,r=e.nodeType===Node.TEXT_NODE&&e.textContent?.match(/\S/);if(t||r)return!0}return!1}(0,a.Cg)([(0,i.MZ)({type:Boolean,reflect:!0})],n.prototype,"multiline",void 0),(0,a.Cg)([(0,i.YG)(".text slot")],n.prototype,"textSlots",void 0);const l=o.AH`:host{color:var(--md-sys-color-on-surface,#1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, .875rem);font-weight:var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden}`;let c=class extends n{};c.styles=[l],c=(0,a.Cg)([(0,i.EM)("md-item")],c);r(71970);var d=r(6412),h=r(7872),u=r(1024),p=r(27525);const f=(0,u.n)(o.WF);class m extends f{get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(t){this.href&&(this.type="link"),super.willUpdate(t)}render(){return this.renderListItem(o.qy` <md-item> <div slot="container"> ${this.renderRipple()} ${this.renderFocusRing()} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${this.renderBody()} </md-item> `)}renderListItem(t){const e="link"===this.type;let r;switch(this.type){case"link":r=h.eu`a`;break;case"button":r=h.eu`button`;break;default:r=h.eu`li`}const a="text"!==this.type,i=e&&this.target?this.target:o.s6;return h.qy`
<${r}
id="item"
tabindex="${this.isDisabled||!a?-1:0}"
?disabled=${this.isDisabled}
role="listitem"
aria-selected=${this.ariaSelected||o.s6}
aria-checked=${this.ariaChecked||o.s6}
aria-expanded=${this.ariaExpanded||o.s6}
aria-haspopup=${this.ariaHasPopup||o.s6}
class="list-item ${(0,d.H)(this.getRenderClasses())}"
href=${this.href||o.s6}
target=${i}
@focus=${this.onFocus}
>${t}</${r}>
`}renderRipple(){return"text"===this.type?o.s6:o.qy` <md-ripple part="ripple" for="item" ?disabled="${this.isDisabled}"></md-ripple>`}renderFocusRing(){return"text"===this.type?o.s6:o.qy` <md-focus-ring @visibility-changed="${this.onFocusRingVisibilityChanged}" part="focus-ring" for="item" inward></md-focus-ring>`}onFocusRingVisibilityChanged(t){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return o.qy` <slot></slot> <slot name="overline" slot="overline"></slot> <slot name="headline" slot="headline"></slot> <slot name="supporting-text" slot="supporting-text"></slot> <slot name="trailing-supporting-text" slot="trailing-supporting-text"></slot> `}onFocus(){-1===this.tabIndex&&this.dispatchEvent((0,p.cG)())}focus(){this.listItemRoot?.focus()}click(){this.listItemRoot?this.listItemRoot.click():super.click()}constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}}m.shadowRootOptions={...o.WF.shadowRootOptions,delegatesFocus:!0},(0,a.Cg)([(0,i.MZ)({type:Boolean,reflect:!0})],m.prototype,"disabled",void 0),(0,a.Cg)([(0,i.MZ)({reflect:!0})],m.prototype,"type",void 0),(0,a.Cg)([(0,i.MZ)({type:Boolean,attribute:"md-list-item",reflect:!0})],m.prototype,"isListItem",void 0),(0,a.Cg)([(0,i.MZ)()],m.prototype,"href",void 0),(0,a.Cg)([(0,i.MZ)()],m.prototype,"target",void 0),(0,a.Cg)([(0,i.P)(".list-item")],m.prototype,"listItemRoot",void 0)},71970(t,e,r){var a=r(62826),i=r(22441),o=r(91382),n=r(96245);let s=class extends o.n{};s.styles=[n.R],s=(0,a.Cg)([(0,i.EM)("md-ripple")],s)},29865(t,e,r){r.d(e,{sm:()=>E});r(97324),r(74423),r(44114),r(16573),r(78100),r(77936),r(18111),r(76382),r(81148),r(22489),r(7588),r(61701),r(45367),r(92731),r(37467),r(44732),r(79577),r(16632),r(34226),r(9486),r(20456),r(88454),r(29452),r(64979),r(14603),r(47566),r(98721);var a=[["All","*","*"," ",0,"All"],["AllReadable","*","r"," ",0,"All Readable"],["AllCreatable","*","w"," ",0,"All Creatable"],["AllLinear","*","l"," ",0,"All Linear"],["AllMatrix","*","m"," ",0,"All Matrix"],["AllGS1","*","G"," ",0,"All GS1"],["AllRetail","*","R"," ",0,"All Retail"],["AllIndustrial","*","I"," ",0,"All Industrial"],["Codabar","F"," ","lrw ",18,"Codabar"],["Code39","A"," ","lrw I",8,"Code 39"],["Code39Std","A","s","lrw I",8,"Code 39 Standard"],["Code39Ext","A","e","lr I",9,"Code 39 Extended"],["Code32","A","2","lr I",129,"Code 32"],["PZN","A","p","lr I",52,"Pharmazentralnummer"],["Code93","G"," ","lrw I",25,"Code 93"],["Code128","C"," ","lrwGI",20,"Code 128"],["ITF","I"," ","lrw I",3,"ITF"],["ITF14","I","4","lr I",89,"ITF-14"],["DataBar","e"," ","lr GR",29,"DataBar"],["DataBarOmni","e","o","lr GR",29,"DataBar Omni"],["DataBarStk","e","s","lr GR",79,"DataBar Stacked"],["DataBarStkOmni","e","O","lr GR",80,"DataBar Stacked Omni"],["DataBarLtd","e","l","lr GR",30,"DataBar Limited"],["DataBarExp","e","e","lr GR",31,"DataBar Expanded"],["DataBarExpStk","e","E","lr GR",81,"DataBar Expanded Stacked"],["EANUPC","E"," ","lr R",15,"EAN/UPC"],["EAN13","E","1","lrw R",15,"EAN-13"],["EAN8","E","8","lrw R",10,"EAN-8"],["EAN5","E","5","l R",12,"EAN-5"],["EAN2","E","2","l R",11,"EAN-2"],["ISBN","E","i","lr R",69,"ISBN"],["UPCA","E","a","lrw R",34,"UPC-A"],["UPCE","E","e","lrw R",37,"UPC-E"],["OtherBarcode","X"," "," r ",0,"Other barcode"],["DXFilmEdge","X","x","lr ",147,"DX Film Edge"],["PDF417","L"," ","mrw ",55,"PDF417"],["CompactPDF417","L","c","mr ",56,"Compact PDF417"],["MicroPDF417","L","m","m ",84,"MicroPDF417"],["Aztec","z"," ","mr G ",92,"Aztec"],["AztecCode","z","c","mrwG ",92,"Aztec Code"],["AztecRune","z","r","mr ",128,"Aztec Rune"],["QRCode","Q"," ","mrwG ",58,"QR Code"],["QRCodeModel1","Q","1","mr ",0,"QR Code Model 1"],["QRCodeModel2","Q","2","mr ",58,"QR Code Model 2"],["MicroQRCode","Q","m","mr ",97,"Micro QR Code"],["RMQRCode","Q","r","mr G ",145,"rMQR Code"],["DataMatrix","d"," ","mrwG ",71,"Data Matrix"],["MaxiCode","U"," ","mr ",57,"MaxiCode"]],i={DataBarExpanded:"DataBarExp",DataBarLimited:"DataBarLtd","Linear-Codes":"AllLinear","Matrix-Codes":"AllMatrix",Any:"All",rMQRCode:"RMQRCode"};function o(t){var e;return null==(e=i[t])?t:e}function n(t){return t.map(o).join(",")}a.map(t=>t[5]),a.filter(t=>"*"===t[1]).map(t=>t[0]),a.filter(t=>"*"!==t[1]).map(t=>t[0]),a.filter(t=>" "===t[2]).map(t=>t[0]),a.filter(t=>"l"===t[3][0]).map(t=>t[0]),a.filter(t=>"m"===t[3][0]).map(t=>t[0]),a.filter(t=>"r"===t[3][1]).map(t=>t[0]),a.filter(t=>"w"===t[3][2]||0!==t[4]).map(t=>t[0]),a.filter(t=>"G"===t[3][3]).map(t=>t[0]),a.filter(t=>"R"===t[3][4]).map(t=>t[0]),a.filter(t=>"I"===t[3][4]).map(t=>t[0]);var s=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function l(t){return s.indexOf(t)}var c="Unknown.ASCII.ISO8859_1.ISO8859_2.ISO8859_3.ISO8859_4.ISO8859_5.ISO8859_6.ISO8859_7.ISO8859_8.ISO8859_9.ISO8859_10.ISO8859_11.ISO8859_13.ISO8859_14.ISO8859_15.ISO8859_16.Cp437.Cp1250.Cp1251.Cp1252.Cp1256.Shift_JIS.Big5.GB2312.GB18030.EUC_JP.EUC_KR.UTF16BE.UTF8.UTF16LE.UTF32BE.UTF32LE.BINARY".split(".");function d(t){return"UnicodeBig"===t?c.indexOf("UTF16BE"):c.indexOf(t)}var h=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function u(t){return h[t]}var p=["Ignore","Read","Require"];function f(t){return p.indexOf(t)}var m=["Plain","ECI","HRI","Escaped","Hex","HexECI"];function v(t){return m.indexOf(t)}var g={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,tryDenoise:!1,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,validateOptionalChecksum:!1,returnErrors:!1,eanAddOnSymbol:"Ignore",textMode:"HRI",characterSet:"Unknown",tryCode39ExtendedMode:!0};function y(t){var e;return{...t,formats:n(t.formats),binarizer:l(t.binarizer),eanAddOnSymbol:f(t.eanAddOnSymbol),textMode:v(t.textMode),characterSet:d(t.characterSet),tryCode39ExtendedMode:null==(e=t.tryCode39ExtendedMode)||e}}function b(t){return{...t,format:t.format,symbology:t.symbology,contentType:u(t.contentType)}}var w={locateFile:(t,e)=>{let r=t.match(/_(.+?)\.wasm$/);return r?`https://fastly.jsdelivr.net/npm/zxing-wasm@3.0.3/dist/${r[1]}/${t}`:e+t}},C=new WeakMap;function x(t,e){return Object.is(t,e)||Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>Object.hasOwn(e,r)&&t[r]===e[r])}function $(t,{overrides:e,equalityFn:r=x,fireImmediately:a=!1}={}){var i,o;let n,[s,l]=null==(i=C.get(t))?[w]:i,c=null==e?s:e;if(a){if(l&&(n=r(s,c)))return l;let e=t({...c});return C.set(t,[c,e]),e}(null==(o=n)?r(s,c):o)||C.set(t,[c])}async function k(t,e,r=g){let a,i,o={...g,...r},n=await $(t,{fireImmediately:!0});if("width"in e&&"height"in e&&"data"in e){let{data:t,width:r,height:s}=e,l=function(t){let e=t.byteLength>>2,r=new Uint8Array(e);for(let a=0;a<e;a++){let e=a<<2;r[a]=306*t[e]+601*t[e+1]+117*t[e+2]+512>>10}return r}(t),c=l.byteLength;if(i=n._malloc(c),!i)throw Error(`Failed to allocate ${c} bytes in WASM memory`);try{n.HEAPU8.set(l,i),a=n.readBarcodesFromPixmap(i,r,s,y(o))}finally{n._free(i)}}else{let t,r;if("buffer"in e)[t,r]=[e.byteLength,e];else if("byteLength"in e)[t,r]=[e.byteLength,new Uint8Array(e)];else{if(!("size"in e))throw TypeError("Invalid input type");[t,r]=[e.size,new Uint8Array(await e.arrayBuffer())]}if(i=n._malloc(t),!i)throw Error(`Failed to allocate ${t} bytes in WASM memory`);try{n.HEAPU8.set(r,i),a=n.readBarcodesFromImage(i,t,y(o))}finally{n._free(i)}}let s=[];for(let t=0;t<a.size();++t)s.push(b(a.get(t)));return s}async function A(t={}){var e,r,a,i=t,o=!!globalThis.window,n=typeof Bun<"u",s=!!globalThis.WorkerGlobalScope;null!=(r=globalThis.process)&&null!=(r=r.versions)&&r.node&&(null==(a=globalThis.process)||a.type);var l,c,d="./this.program",h="";if(o||s||n){try{h=new URL(".",void 0).href}catch{}s&&(c=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),l=async t=>{var e=await fetch(t,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)}}var u,p,f,m,v=console.log.bind(console),g=console.error.bind(console),y=!1,b=!1;function w(){var t=Se.buffer;T=new Int8Array(t),A=new Int16Array(t),i.HEAPU8=M=new Uint8Array(t),S=new Uint16Array(t),E=new Int32Array(t),I=new Uint32Array(t),_=new Float32Array(t),P=new Float64Array(t)}function C(t){var e,r;null==(e=i.onAbort)||e.call(i,t),g(t="Aborted("+t+")"),y=!0,t+=". Build with -sASSERTIONS for more info.";var a=new WebAssembly.RuntimeError(t);throw null==(r=f)||r(a),a}function x(){return function(t){return i.locateFile?i.locateFile(t,h):h+t}("zxing_reader.wasm")}async function $(t){if(!u)try{var e=await l(t);return new Uint8Array(e)}catch{}return function(t){if(t==m&&u)return new Uint8Array(u);if(c)return c(t);throw"both async and sync fetching of the wasm failed"}(t)}async function k(t,e,r){if(!t&&WebAssembly.instantiateStreaming)try{var a=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(a,r)}catch(t){g(`wasm streaming compile failed: ${t}`),g("falling back to ArrayBuffer instantiation")}return async function(t,e){try{var r=await $(t);return await WebAssembly.instantiate(r,e)}catch(t){g(`failed to asynchronously prepare wasm: ${t}`),C(t)}}(e,r)}var A,E,T,_,P,S,I,M,O=t=>{for(;t.length>0;)t.shift()(i)},R=[],D=t=>R.push(t),B=[],F=t=>B.push(t),L=t=>xe(t),z=()=>$e(),U=[],j=0,q=0;class N{set_type(t){I[this.ptr+4>>2]=t}get_type(){return I[this.ptr+4>>2]}set_destructor(t){I[this.ptr+8>>2]=t}get_destructor(){return I[this.ptr+8>>2]}set_caught(t){t=+!!t,T[this.ptr+12]=t}get_caught(){return 0!=T[this.ptr+12]}set_rethrown(t){t=+!!t,T[this.ptr+13]=t}get_rethrown(){return 0!=T[this.ptr+13]}init(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e)}set_adjusted_ptr(t){I[this.ptr+16>>2]=t}get_adjusted_ptr(){return I[this.ptr+16>>2]}constructor(t){this.excPtr=t,this.ptr=t-24}}var Z=t=>Ce(t),V=t=>{var e=q;if(!e)return Z(0),0;var r=new N(e);r.set_adjusted_ptr(e);var a=r.get_type();if(!a)return Z(0),e;for(var i of t){if(0===i||i===a)break;var o=r.ptr+16;if(Ee(i,a,o))return Z(i),e}return Z(a),e},H={},W=t=>{for(;t.length;){var e=t.pop();t.pop()(e)}};function G(t){return this.fromWireType(I[t>>2])}var K={},Q={},J={},X=class extends Error{constructor(t){super(t),this.name="InternalError"}},Y=t=>{throw new X(t)},tt=(t,e,r)=>{function a(e){var a=r(e);a.length!==t.length&&Y("Mismatched type converter count");for(var i=0;i<t.length;++i)it(t[i],a[i])}t.forEach(t=>J[t]=e);var i=Array(e.length),o=[],n=0;{let t=e;for(let e=0;e<t.length;++e){let r=t[e];Q.hasOwnProperty(r)?i[e]=Q[r]:(o.push(r),K.hasOwnProperty(r)||(K[r]=[]),K[r].push(()=>{i[e]=Q[r],++n===o.length&&a(i)}))}}0===o.length&&a(i)},et=t=>{for(var e="";;){var r=M[t++];if(!r)return e;e+=String.fromCharCode(r)}},rt=class extends Error{constructor(t){super(t),this.name="BindingError"}},at=t=>{throw new rt(t)};function it(t,e){return function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var a=e.name;if(t||at(`type "${a}" must have a positive integer typeid pointer`),Q.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;at(`Cannot register type '${a}' twice`)}if(Q[t]=e,delete J[t],K.hasOwnProperty(t)){var i=K[t];delete K[t],i.forEach(t=>t())}}(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}var ot=t=>({count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}),nt=t=>{at(function(t){return t.$$.ptrType.registeredClass.name}(t)+" instance already deleted")},st=!1,lt=t=>{},ct=t=>{--t.count.value,0===t.count.value&&(t=>{t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)})(t)},dt=t=>globalThis.FinalizationRegistry?(st=new FinalizationRegistry(t=>{ct(t.$$)}),dt=t=>{var e=t.$$;if(e.smartPtr){var r={$$:e};st.register(t,r,t)}return t},lt=t=>st.unregister(t),dt(t)):(dt=t=>t,t),ht=[];function ut(){}var pt=(t,e)=>Object.defineProperty(e,"name",{value:t}),ft={},mt=(t,e,r)=>{if(void 0===t[e].overloadTable){var a=t[e];t[e]=function(){var a=[...arguments];return t[e].overloadTable.hasOwnProperty(a.length)||at(`Function '${r}' called with an invalid number of arguments (${a.length}) - expects one of (${t[e].overloadTable})!`),t[e].overloadTable[a.length].apply(this,a)},t[e].overloadTable=[],t[e].overloadTable[a.argCount]=a}},vt=(t,e,r)=>{i.hasOwnProperty(t)?((void 0===r||void 0!==i[t].overloadTable&&void 0!==i[t].overloadTable[r])&&at(`Cannot register public name '${t}' twice`),mt(i,t,t),i[t].overloadTable.hasOwnProperty(r)&&at(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),i[t].overloadTable[r]=e):(i[t]=e,i[t].argCount=r)};function gt(t,e,r,a,i,o,n,s){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=a,this.baseClass=i,this.getActualType=o,this.upcast=n,this.downcast=s,this.pureVirtualFunctions=[]}var yt=(t,e,r)=>{for(;e!==r;)e.upcast||at(`Expected null or instance of ${r.name}, got an instance of ${e.name}`),t=e.upcast(t),e=e.baseClass;return t},bt=t=>{if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t};function wt(t,e){if(null===e)return this.isReference&&at(`null is not a valid ${this.name}`),0;e.$$||at(`Cannot pass "${bt(e)}" as a ${this.name}`),e.$$.ptr||at(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=e.$$.ptrType.registeredClass;return yt(e.$$.ptr,r,this.registeredClass)}function Ct(t,e){var r;if(null===e)return this.isReference&&at(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;(!e||!e.$$)&&at(`Cannot pass "${bt(e)}" as a ${this.name}`),e.$$.ptr||at(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&at(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var a=e.$$.ptrType.registeredClass;if(r=yt(e.$$.ptr,a,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&at("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:at(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var i=e.clone();r=this.rawShare(r,Zt.toHandle(()=>i.delete())),null!==t&&t.push(this.rawDestructor,r)}break;default:at("Unsupported sharing policy")}return r}function xt(t,e){if(null===e)return this.isReference&&at(`null is not a valid ${this.name}`),0;e.$$||at(`Cannot pass "${bt(e)}" as a ${this.name}`),e.$$.ptr||at(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&at(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var r=e.$$.ptrType.registeredClass;return yt(e.$$.ptr,r,this.registeredClass)}var $t=(t,e,r)=>{if(e===r)return t;if(void 0===r.baseClass)return null;var a=$t(t,e,r.baseClass);return null===a?null:r.downcast(a)},kt={},At=(t,e)=>(e=((t,e)=>{for(void 0===e&&at("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e})(t,e),kt[e]),Et=(t,e)=>((!e.ptrType||!e.ptr)&&Y("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&Y("Both smartPtrType and smartPtr must be specified"),e.count={value:1},dt(Object.create(t,{$$:{value:e,writable:!0}})));function Tt(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=At(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var a=r.clone();return this.destructor(t),a}function i(){return this.isSmartPointer?Et(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):Et(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var o=ft[this.registeredClass.getActualType(e)];if(!o)return i.call(this);var n=this.isConst?o.constPointerType:o.pointerType,s=$t(e,this.registeredClass,n.registeredClass);return null===s?i.call(this):this.isSmartPointer?Et(n.registeredClass.instancePrototype,{ptrType:n,ptr:s,smartPtrType:this,smartPtr:t}):Et(n.registeredClass.instancePrototype,{ptrType:n,ptr:s})}function _t(t,e,r,a,i,o,n,s,l,c,d){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=a,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=n,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=c,this.rawDestructor=d,i||void 0!==e.baseClass?this.toWireType=Ct:a?(this.toWireType=wt,this.destructorFunction=null):(this.toWireType=xt,this.destructorFunction=null)}var Pt=(t,e,r)=>{i.hasOwnProperty(t)||Y("Replacing nonexistent public symbol"),void 0!==i[t].overloadTable&&void 0!==r?i[t].overloadTable[r]=e:(i[t]=e,i[t].argCount=r)},St={},It=[],Mt=t=>{var e=It[t];return e||(It[t]=e=Ie.get(t)),e},Ot=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.includes("j"))return((t,e,r)=>(t=t.replace(/p/g,"i"),(0,St[t])(e,...r)))(t,e,r);return Mt(e)(...r)},Rt=function(t,e){var r=(t=et(t)).includes("j")?function(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){return Ot(t,e,[...arguments],r)}}(t,e):Mt(e);return"function"!=typeof r&&at(`unknown function pointer with signature ${t}: ${e}`),r};class Dt extends Error{}var Bt=t=>{var e=ve(t),r=et(e);return ge(e),r},Ft=(t,e)=>{var r=[],a={};throw e.forEach(function t(e){if(!a[e]&&!Q[e]){if(J[e])return void J[e].forEach(t);r.push(e),a[e]=!0}}),new Dt(`${t}: `+r.map(Bt).join([", "]))},Lt=(t,e)=>{for(var r=[],a=0;a<t;a++)r.push(I[e+4*a>>2]);return r};function zt(t,e,r,a,i,o){var n=e.length;n<2&&at("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=null!==e[1]&&null!==r,l=function(t){for(var e=1;e<t.length;++e)if(null!==t[e]&&void 0===t[e].destructorFunction)return!0;return!1}(e),c=!e[0].isVoid,d=n-2,h=Array(d),u=[],p=[];return pt(t,function(){var t;p.length=0,u.length=s?2:1,u[0]=i,s&&(t=e[1].toWireType(p,this),u[1]=t);for(var r=0;r<d;++r)h[r]=e[r+2].toWireType(p,r<0||arguments.length<=r?void 0:arguments[r]),u.push(h[r]);return function(r){if(l)W(p);else for(var a=s?1:2;a<e.length;a++){var i=1===a?t:h[a-2];null!==e[a].destructorFunction&&e[a].destructorFunction(i)}if(c)return e[0].fromWireType(r)}(a(...u))})}var Ut=t=>{let e=(t=t.trim()).indexOf("(");return-1===e?t:t.slice(0,e)},jt=[],qt=[0,1,,1,null,1,!0,1,!1,1],Nt=t=>{t>9&&0===--qt[t+1]&&(qt[t]=void 0,jt.push(t))},Zt={toValue:t=>(t||at(`Cannot use deleted val. handle = ${t}`),qt[t]),toHandle:t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let e=jt.pop()||qt.length;return qt[e]=t,qt[e+1]=1,e}}}},Vt={name:"emscripten::val",fromWireType:t=>{var e=Zt.toValue(t);return Nt(t),e},toWireType:(t,e)=>Zt.toHandle(e),readValueFromPointer:G,destructorFunction:null},Ht=(t,e)=>{switch(e){case 4:return function(t){return this.fromWireType(_[t>>2])};case 8:return function(t){return this.fromWireType(P[t>>3])};default:throw TypeError(`invalid float width (${e}): ${t}`)}},Wt=(t,e,r)=>{switch(e){case 1:return r?t=>T[t]:t=>M[t];case 2:return r?t=>A[t>>1]:t=>S[t>>1];case 4:return r?t=>E[t>>2]:t=>I[t>>2];default:throw TypeError(`invalid integer width (${e}): ${t}`)}},Gt=(t,e,r)=>{let a=(t,e)=>{let r=0;return{next(){if(r>=t)return{done:!0};let a=r;return r++,{value:e(a),done:!1}},[Symbol.iterator](){return this}}};t[Symbol.iterator]||(t[Symbol.iterator]=function(){return a(this[e](),t=>this[r](t))})},Kt=Object.assign({optional:!0},Vt),Qt=(t,e,r)=>((t,e,r,a)=>{if(!(a>0))return 0;for(var i=r,o=r+a-1,n=0;n<t.length;++n){var s=t.codePointAt(n);if(s<=127){if(r>=o)break;e[r++]=s}else if(s<=2047){if(r+1>=o)break;e[r++]=192|s>>6,e[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;e[r++]=224|s>>12,e[r++]=128|s>>6&63,e[r++]=128|63&s}else{if(r+3>=o)break;e[r++]=240|s>>18,e[r++]=128|s>>12&63,e[r++]=128|s>>6&63,e[r++]=128|63&s,n++}}return e[r]=0,r-i})(t,M,e,r),Jt=t=>{for(var e=0,r=0;r<t.length;++r){var a=t.charCodeAt(r);a<=127?e++:a<=2047?e+=2:a>=55296&&a<=57343?(e+=4,++r):e+=3}return e},Xt=globalThis.TextDecoder&&new TextDecoder,Yt=(t,e,r,a)=>{var i=e+r;if(a)return i;for(;t[e]&&!(e>=i);)++e;return e},te=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var r=Yt(t,e,arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0);if(r-e>16&&t.buffer&&Xt)return Xt.decode(t.subarray(e,r));for(var a="";e<r;){var i=t[e++];if(128&i){var o=63&t[e++];if(192!=(224&i)){var n=63&t[e++];if((i=224==(240&i)?(15&i)<<12|o<<6|n:(7&i)<<18|o<<12|n<<6|63&t[e++])<65536)a+=String.fromCharCode(i);else{var s=i-65536;a+=String.fromCharCode(55296|s>>10,56320|1023&s)}}else a+=String.fromCharCode((31&i)<<6|o)}else a+=String.fromCharCode(i)}return a},ee=globalThis.TextDecoder?new TextDecoder("utf-16le"):void 0,re=(t,e,r)=>{var a=t>>1,i=Yt(S,a,e/2,r);if(i-a>16&&ee)return ee.decode(S.subarray(a,i));for(var o="",n=a;n<i;++n){var s=S[n];o+=String.fromCharCode(s)}return o},ae=(t,e,r)=>{if(null!=r||(r=2147483647),r<2)return 0;for(var a=e,i=(r-=2)<2*t.length?r/2:t.length,o=0;o<i;++o){var n=t.charCodeAt(o);A[e>>1]=n,e+=2}return A[e>>1]=0,e-a},ie=t=>2*t.length,oe=(t,e,r)=>{for(var a="",i=t>>2,o=0;!(o>=e/4);o++){var n=I[i+o];if(!n&&!r)break;a+=String.fromCodePoint(n)}return a},ne=(t,e,r)=>{if(null!=r||(r=2147483647),r<4)return 0;for(var a=e,i=a+r-4,o=0;o<t.length;++o){var n=t.codePointAt(o);if(n>65535&&o++,E[e>>2]=n,(e+=4)+4>i)break}return E[e>>2]=0,e-a},se=t=>{for(var e=0,r=0;r<t.length;++r)t.codePointAt(r)>65535&&r++,e+=4;return e},le=[],ce=(t,e)=>{var r=Q[t];return void 0===r&&at(`${e} has unknown type ${Bt(t)}`),r},de={},he=t=>{var e=de[t];return void 0===e?et(t):e},ue=(t,e)=>Math.ceil(t/e)*e,pe=t=>{var e=(t-Se.buffer.byteLength+65535)/65536|0;try{return Se.grow(e),w(),1}catch{}},fe={},me=()=>{if(!me.strings){var t,e,r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(null==(t=null==(e=globalThis.navigator)?void 0:e.language)?"C":t).replace("-","_")+".UTF-8",_:d||"./this.program"};for(var a in fe)void 0===fe[a]?delete r[a]:r[a]=fe[a];var i=[];for(var a in r)i.push(`${a}=${r[a]}`);me.strings=i}return me.strings};var ve,ge,ye,be,we,Ce,xe,$e,ke,Ae,Ee,Te,_e,Pe,Se,Ie,Me=[null,[],[]],Oe=(t,e)=>{var r=Me[t];0===e||10===e?((1===t?v:g)(te(r)),r.length=0):r.push(e)};if((()=>{let t=ut.prototype;Object.assign(t,{isAliasOf(t){if(!(this instanceof ut&&t instanceof ut))return!1;var e=this.$$.ptrType.registeredClass,r=this.$$.ptr;t.$$=t.$$;for(var a=t.$$.ptrType.registeredClass,i=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;a.baseClass;)i=a.upcast(i),a=a.baseClass;return e===a&&r===i},clone(){if(this.$$.ptr||nt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=dt(Object.create(Object.getPrototypeOf(this),{$$:{value:ot(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||nt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&at("Object already scheduled for deletion"),lt(this),ct(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||nt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&at("Object already scheduled for deletion"),ht.push(this),ht.length,this.$$.deleteScheduled=!0,this}});let e=Symbol.dispose;e&&(t[e]=t.delete)})(),Object.assign(_t.prototype,{getPointee(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor(t){var e;null==(e=this.rawDestructor)||e.call(this,t)},readValueFromPointer:G,fromWireType:Tt}),i.noExitRuntime&&i.noExitRuntime,i.print&&(v=i.print),i.printErr&&(g=i.printErr),i.wasmBinary&&(u=i.wasmBinary),i.arguments&&i.arguments,i.thisProgram&&(d=i.thisProgram),i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.shift()();var Re={s:t=>{var e=new N(t);return e.get_caught()||(e.set_caught(!0),j--),e.set_rethrown(!1),U.push(e),be(t)},x:()=>{we(0,0);var t=U.pop();ke(t.excPtr),q=0},a:()=>V([]),i:t=>V([t]),m:(t,e)=>V([t,e]),R:()=>{var t=U.pop();t||C("no exception to throw");var e=t.excPtr;throw t.get_rethrown()||(U.push(t),t.set_rethrown(!0),t.set_caught(!1),j++),Ae(e),q=e},p:(t,e,r)=>{throw new N(t).init(e,r),Ae(t),j++,q=t},ga:()=>j,d:t=>{throw q||(q=t),q},ca:()=>C(""),xa:t=>{var e=H[t];delete H[t];var r=e.rawConstructor,a=e.rawDestructor,i=e.fields,o=i.map(t=>t.getterReturnType).concat(i.map(t=>t.setterArgumentType));tt([t],o,t=>{var o={};{let e=i;for(let r=0;r<e.length;++r){let a=e[r],n=t[r],s=a.getter,l=a.getterContext,c=t[r+i.length],d=a.setter,h=a.setterContext;o[a.fieldName]={read:t=>n.fromWireType(s(l,t)),write:(t,e)=>{var r=[];d(h,t,c.toWireType(r,e)),W(r)},optional:n.optional}}}return[{name:e.name,fromWireType:t=>{var e={};for(var r in o)e[r]=o[r].read(t);return a(t),e},toWireType:(t,e)=>{for(var i in o)if(!(i in e)&&!o[i].optional)throw TypeError(`Missing field: "${i}"`);var n=r();for(i in o)o[i].write(n,e[i]);return null!==t&&t.push(a,n),n},readValueFromPointer:G,destructorFunction:a}]})},ba:(t,e,r,a,i)=>{},ra:(t,e,r,a)=>{it(t,{name:e=et(e),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?r:a},readValueFromPointer:function(t){return this.fromWireType(M[t])},destructorFunction:null})},va:(t,e,r,a,i,o,n,s,l,c,d,h,u)=>{d=et(d),o=Rt(i,o),s&&(s=Rt(n,s)),c&&(c=Rt(l,c)),u=Rt(h,u);var p=(t=>{var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?`_${t}`:t})(d);vt(p,function(){Ft(`Cannot construct ${d} due to unbound types`,[a])}),tt([t,e,r],a?[a]:[],e=>{var r,i;e=e[0],a?i=(r=e.registeredClass).instancePrototype:i=ut.prototype;var n=pt(d,function(){if(Object.getPrototypeOf(this)!==l)throw new rt(`Use 'new' to construct ${d}`);if(void 0===f.constructor_body)throw new rt(`${d} has no accessible constructor`);var t=[...arguments],e=f.constructor_body[t.length];if(void 0===e)throw new rt(`Tried to invoke ctor of ${d} with invalid number of parameters (${t.length}) - expected (${Object.keys(f.constructor_body).toString()}) parameters instead!`);return e.apply(this,t)}),l=Object.create(i,{constructor:{value:n}});n.prototype=l;var h,f=new gt(d,n,l,u,r,o,s,c);f.baseClass&&(null!=(h=f.baseClass).__derivedClasses||(h.__derivedClasses=[]),f.baseClass.__derivedClasses.push(f));var m=new _t(d,f,!0,!1,!1),v=new _t(d+"*",f,!1,!1,!1),g=new _t(d+" const*",f,!1,!0,!1);return ft[t]={pointerType:v,constPointerType:g},Pt(p,n),[m,v,g]})},ua:(t,e,r,a,i,o)=>{var n=Lt(e,r);i=Rt(a,i),tt([],[t],t=>{var r=`constructor ${(t=t[0]).name}`;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new rt(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${t.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return t.registeredClass.constructor_body[e-1]=()=>{Ft(`Cannot construct ${t.name} due to unbound types`,n)},tt([],n,a=>(a.splice(1,0,null),t.registeredClass.constructor_body[e-1]=zt(r,a,null,i,o),[])),[]})},H:(t,e,r,a,i,o,n,s,l,c)=>{var d=Lt(r,a);e=et(e),e=Ut(e),o=Rt(i,o,l),tt([],[t],t=>{var a=`${(t=t[0]).name}.${e}`;function i(){Ft(`Cannot call ${a} due to unbound types`,d)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(e);var l=t.registeredClass.instancePrototype,c=l[e];return void 0===c||void 0===c.overloadTable&&c.className!==t.name&&c.argCount===r-2?(i.argCount=r-2,i.className=t.name,l[e]=i):(mt(l,e,a),l[e].overloadTable[r-2]=i),tt([],d,i=>{var s=zt(a,i,t,o,n);return void 0===l[e].overloadTable?(s.argCount=r-2,l[e]=s):l[e].overloadTable[r-2]=s,[]}),[]})},pa:t=>it(t,Vt),X:(t,e,r)=>{it(t,{name:e=et(e),fromWireType:t=>t,toWireType:(t,e)=>e,readValueFromPointer:Ht(e,r),destructorFunction:null})},Y:(t,e,r,a,i,o,n,s)=>{var l=Lt(e,r);t=et(t),t=Ut(t),i=Rt(a,i,n),vt(t,function(){Ft(`Cannot call ${t} due to unbound types`,l)},e-1),tt([],l,r=>{var a=[r[0],null].concat(r.slice(1));return Pt(t,zt(t,a,null,i,o),e-1),[]})},A:(t,e,r,a,i)=>{e=et(e);let o=t=>t;if(0===a){var n=32-8*r;o=t=>t<<n>>>n,i=o(i)}it(t,{name:e,fromWireType:o,toWireType:(t,e)=>e,readValueFromPointer:Wt(e,r,0!==a),destructorFunction:null})},ta:(t,e,r,a)=>{r=et(r),a=et(a),tt([],[t,e],t=>{let e=t[0];return Gt(e.registeredClass.instancePrototype,r,a),[]})},u:(t,e,r)=>{var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function i(t){var e=I[t>>2],r=I[t+4>>2];return new a(T.buffer,r,e)}it(t,{name:r=et(r),fromWireType:i,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},wa:(t,e)=>{it(t,Kt)},qa:(t,e)=>{e=et(e);it(t,{name:e,fromWireType(t){var e,r=I[t>>2],a=t+4;return e=((t,e,r)=>t?te(M,t,e,r):"")(a,r,!0),ge(t),e},toWireType(t,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var r,a="string"==typeof e;a||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT||at("Cannot pass non-string to std::string"),r=a?Jt(e):e.length;var i=ye(4+r+1),o=i+4;(I[i>>2]=r,a)?Qt(e,o,r+1):M.set(e,o);return null!==t&&t.push(ge,i),i},readValueFromPointer:G,destructorFunction(t){ge(t)}})},S:(t,e,r)=>{var a,i,o;r=et(r),2===e?(a=re,i=ae,o=ie):(a=oe,i=ne,o=se),it(t,{name:r,fromWireType:t=>{var r=I[t>>2],i=a(t+4,r*e,!0);return ge(t),i},toWireType:(t,a)=>{"string"!=typeof a&&at(`Cannot pass non-string to C++ string type ${r}`);var n=o(a),s=ye(4+n+e);return I[s>>2]=n/e,i(a,s+4,n+e),null!==t&&t.push(ge,s),s},readValueFromPointer:G,destructorFunction(t){ge(t)}})},I:(t,e,r,a,i,o)=>{H[t]={name:et(e),rawConstructor:Rt(r,a),rawDestructor:Rt(i,o),fields:[]}},ya:(t,e,r,a,i,o,n,s,l,c)=>{H[t].fields.push({fieldName:et(e),getterReturnType:r,getter:Rt(a,i),getterContext:o,setterArgumentType:n,setter:Rt(s,l),setterContext:c})},sa:(t,e)=>{it(t,{isVoid:!0,name:e=et(e),fromWireType:()=>{},toWireType:(t,e)=>{}})},O:(t,e,r)=>{var[a,...i]=((t,e)=>{for(var r=Array(t),a=0;a<t;++a)r[a]=ce(I[e+4*a>>2],`parameter ${a}`);return r})(t,e),o=a.toWireType.bind(a),n=i.map(t=>t.readValueFromPointer.bind(t));t--;var s=Array(t);return(t=>{var e=le.length;return le.push(t),e})(pt(`methodCaller<(${i.map(t=>t.name)}) => ${a.name}>`,(e,a,i,l)=>{for(var c=0,d=0;d<t;++d)s[d]=n[d](l+c),c+=8;var h;switch(r){case 0:h=Zt.toValue(e).apply(null,s);break;case 2:h=Reflect.construct(Zt.toValue(e),s);break;case 3:h=s[0];break;case 1:h=Zt.toValue(e)[he(a)](...s)}return((t,e,r)=>{var a=[],i=t(a,r);return a.length&&(I[e>>2]=Zt.toHandle(a)),i})(o,i,h)}))},za:Nt,E:t=>t?(t=he(t),Zt.toHandle(globalThis[t])):Zt.toHandle(globalThis),T:t=>{t>9&&(qt[t+1]+=1)},N:(t,e,r,a,i)=>le[t](e,r,a,i),la:t=>{W(Zt.toValue(t)),Nt(t)},da:(t,e,r,a)=>{var i=(new Date).getFullYear(),o=new Date(i,0,1),n=new Date(i,6,1),s=o.getTimezoneOffset(),l=n.getTimezoneOffset(),c=Math.max(s,l);I[t>>2]=60*c,E[e>>2]=Number(s!=l);var d=t=>{var e=t>=0?"-":"+",r=Math.abs(t);return`UTC${e}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`},h=d(s),u=d(l);l<s?(Qt(h,r,17),Qt(u,a,17)):(Qt(h,a,17),Qt(u,r,17))},ha:t=>{var e=M.length,r=2147483648;if((t>>>=0)>r)return!1;for(var a=1;a<=4;a*=2){var i=e*(1+.2/a);if(i=Math.min(i,t+100663296),pe(Math.min(r,ue(Math.max(t,i),65536))))return!0}return!1},ea:(t,e)=>{var r=0,a=0;for(var i of me()){var o=e+r;I[t+a>>2]=o,r+=Qt(i,o,1/0)+1,a+=4}return 0},fa:(t,e)=>{var r=me();I[t>>2]=r.length;var a=0;for(var i of r)a+=Jt(i)+1;return I[e>>2]=a,0},ia:t=>52,_:function(t,e,r,a,i){return(()=>{})(e,r),70},V:(t,e,r,a)=>{for(var i=0,o=0;o<r;o++){var n=I[e>>2],s=I[e+4>>2];e+=8;for(var l=0;l<s;l++)Oe(t,M[n+l]);i+=s}return I[a>>2]=i,0},na:function(t,e,r){var a=z();try{return Mt(t)(e,r)}catch(t){if(L(a),t!==t+0)throw t;we(1,0)}},M:function(t,e,r,a){var i=z();try{return Mt(t)(e,r,a)}catch(t){if(L(i),t!==t+0)throw t;we(1,0)}},C:function(t,e,r,a,i,o){var n=z();try{return Mt(t)(e,r,a,i,o)}catch(t){if(L(n),t!==t+0)throw t;we(1,0)}},P:function(t,e,r,a,i,o){var n=z();try{return Mt(t)(e,r,a,i,o)}catch(t){if(L(n),t!==t+0)throw t;we(1,0)}},U:function(t,e,r,a){var i=z();try{return Mt(t)(e,r,a)}catch(t){if(L(i),t!==t+0)throw t;we(1,0)}},q:function(t){var e=z();try{return Mt(t)()}catch(t){if(L(e),t!==t+0)throw t;we(1,0)}},b:function(t,e){var r=z();try{return Mt(t)(e)}catch(t){if(L(r),t!==t+0)throw t;we(1,0)}},F:function(t,e,r,a){var i=z();try{return Mt(t)(e,r,a)}catch(t){if(L(i),t!==t+0)throw t;we(1,0)}},ka:function(t,e,r){var a=z();try{return Mt(t)(e,r)}catch(t){if(L(a),t!==t+0)throw t;we(1,0)}},c:function(t,e,r){var a=z();try{return Mt(t)(e,r)}catch(t){if(L(a),t!==t+0)throw t;we(1,0)}},ja:function(t,e,r,a,i){var o=z();try{return Mt(t)(e,r,a,i)}catch(t){if(L(o),t!==t+0)throw t;we(1,0)}},g:function(t,e,r,a){var i=z();try{return Mt(t)(e,r,a)}catch(t){if(L(i),t!==t+0)throw t;we(1,0)}},j:function(t,e,r,a,i){var o=z();try{return Mt(t)(e,r,a,i)}catch(t){if(L(o),t!==t+0)throw t;we(1,0)}},r:function(t,e,r,a,i,o){var n=z();try{return Mt(t)(e,r,a,i,o)}catch(t){if(L(n),t!==t+0)throw t;we(1,0)}},Q:function(t,e,r,a,i,o,n){var s=z();try{return Mt(t)(e,r,a,i,o,n)}catch(t){if(L(s),t!==t+0)throw t;we(1,0)}},t:function(t,e,r,a,i,o,n){var s=z();try{return Mt(t)(e,r,a,i,o,n)}catch(t){if(L(s),t!==t+0)throw t;we(1,0)}},G:function(t,e,r,a,i,o,n,s){var l=z();try{return Mt(t)(e,r,a,i,o,n,s)}catch(t){if(L(l),t!==t+0)throw t;we(1,0)}},B:function(t,e,r,a,i,o,n,s,l){var c=z();try{return Mt(t)(e,r,a,i,o,n,s,l)}catch(t){if(L(c),t!==t+0)throw t;we(1,0)}},K:function(t,e,r,a,i,o,n,s,l,c,d,h){var u=z();try{return Mt(t)(e,r,a,i,o,n,s,l,c,d,h)}catch(t){if(L(u),t!==t+0)throw t;we(1,0)}},$:function(t,e,r,a,i,o,n){var s=z();try{return _e(t,e,r,a,i,o,n)}catch(t){if(L(s),t!==t+0)throw t;we(1,0)}},Z:function(t,e,r,a,i){var o=z();try{return Pe(t,e,r,a,i)}catch(t){if(L(o),t!==t+0)throw t;we(1,0)}},f:function(t){var e=z();try{Mt(t)()}catch(t){if(L(e),t!==t+0)throw t;we(1,0)}},l:function(t,e){var r=z();try{Mt(t)(e)}catch(t){if(L(r),t!==t+0)throw t;we(1,0)}},e:function(t,e,r){var a=z();try{Mt(t)(e,r)}catch(t){if(L(a),t!==t+0)throw t;we(1,0)}},W:function(t,e,r,a,i,o,n,s,l){var c=z();try{Mt(t)(e,r,a,i,o,n,s,l)}catch(t){if(L(c),t!==t+0)throw t;we(1,0)}},h:function(t,e,r,a){var i=z();try{Mt(t)(e,r,a)}catch(t){if(L(i),t!==t+0)throw t;we(1,0)}},L:function(t,e,r,a,i,o,n){var s=z();try{Mt(t)(e,r,a,i,o,n)}catch(t){if(L(s),t!==t+0)throw t;we(1,0)}},k:function(t,e,r,a,i){var o=z();try{Mt(t)(e,r,a,i)}catch(t){if(L(o),t!==t+0)throw t;we(1,0)}},ma:function(t,e,r,a,i,o,n,s){var l=z();try{Mt(t)(e,r,a,i,o,n,s)}catch(t){if(L(l),t!==t+0)throw t;we(1,0)}},o:function(t,e,r,a,i,o){var n=z();try{Mt(t)(e,r,a,i,o)}catch(t){if(L(n),t!==t+0)throw t;we(1,0)}},y:function(t,e,r,a,i,o,n){var s=z();try{Mt(t)(e,r,a,i,o,n)}catch(t){if(L(s),t!==t+0)throw t;we(1,0)}},v:function(t,e,r,a,i,o,n,s){var l=z();try{Mt(t)(e,r,a,i,o,n,s)}catch(t){if(L(l),t!==t+0)throw t;we(1,0)}},D:function(t,e,r,a,i,o,n,s,l){var c=z();try{Mt(t)(e,r,a,i,o,n,s,l)}catch(t){if(L(c),t!==t+0)throw t;we(1,0)}},w:function(t,e,r,a,i,o,n,s,l,c){var d=z();try{Mt(t)(e,r,a,i,o,n,s,l,c)}catch(t){if(L(d),t!==t+0)throw t;we(1,0)}},n:function(t,e,r,a,i,o,n,s,l,c,d){var h=z();try{Mt(t)(e,r,a,i,o,n,s,l,c,d)}catch(t){if(L(h),t!==t+0)throw t;we(1,0)}},J:function(t,e,r,a,i,o,n,s,l,c,d,h,u,p,f,m){var v=z();try{Mt(t)(e,r,a,i,o,n,s,l,c,d,h,u,p,f,m)}catch(t){if(L(v),t!==t+0)throw t;we(1,0)}},oa:function(t,e,r,a,i,o,n,s,l,c,d,h,u,p,f,m,v){var g=z();try{Mt(t)(e,r,a,i,o,n,s,l,c,d,h,u,p,f,m,v)}catch(t){if(L(g),t!==t+0)throw t;we(1,0)}},aa:function(t,e,r,a,i,o,n,s,l,c,d,h,u,p,f,m,v,g,y,b){var w=z();try{Te(t,e,r,a,i,o,n,s,l,c,d,h,u,p,f,m,v,g,y,b)}catch(t){if(L(w),t!==t+0)throw t;we(1,0)}},z:t=>t};var De=await async function(){function t(t,e){return function(t){ve=t.Ca,ge=i._free=t.Da,ye=i._malloc=t.Fa,be=t.Ga,we=t.Ha,Ce=t.Ia,xe=t.Ja,$e=t.Ka,ke=t.La,Ae=t.Ma,Ee=t.Na,St.viijii=t.Oa,Te=St.viijjijjjjjj=t.Pa,_e=St.iiijj=t.Qa,St.jiji=t.Ra,Pe=St.jiiii=t.Sa,St.iiiiij=t.Ta,St.iiiiijj=t.Ua,St.iiiiiijj=t.Va,Se=t.Aa,Ie=t.Ea}(De=t.exports),w(),De}var e={a:Re};return i.instantiateWasm?new Promise((r,a)=>{i.instantiateWasm(e,(e,a)=>{r(t(e))})}):(null!=m||(m=x()),function(e){return t(e.instance)}(await k(u,m,e)))}();return function(){function t(){var t,e;i.calledRun=!0,!y&&(b=!0,De.Ba(),null==(t=p)||t(i),null==(e=i.onRuntimeInitialized)||e.call(i),function(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)D(i.postRun.shift());O(R)}())}!function(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)F(i.preRun.shift());O(B)}(),i.setStatus?(i.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>i.setStatus(""),1),t()},1)):t()}(),e=b?i:new Promise((t,e)=>{p=t,f=e}),e}function E(t){return $(A,t)}var T=[["aztec","Aztec"],["aztec_code","AztecCode"],["aztec_rune","AztecRune"],["code_128","Code128"],["code_39","Code39"],["code_39_standard","Code39Std"],["code_39_extended","Code39Ext"],["code_32","Code32"],["pzn","PZN"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_omni","DataBarOmni"],["databar_stacked","DataBarStk"],["databar_stacked_omni","DataBarStkOmni"],["databar_expanded","DataBarExp"],["databar_expanded_stacked","DataBarExpStk"],["databar_limited","DataBarLtd"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN13"],["ean_upc","EANUPC"],["isbn","ISBN"],["ean_8","EAN8"],["itf","ITF"],["itf_14","ITF14"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["compact_pdf417","CompactPDF417"],["qr_code","QRCode"],["qr_code_model_1","QRCodeModel1"],["qr_code_model_2","QRCodeModel2"],["rm_qr_code","RMQRCode"],["upc_a","UPCA"],["upc_e","UPCE"],["other_barcode","OtherBarcode"],["linear_codes","AllLinear"],["matrix_codes","AllMatrix"],["gs1_codes","AllGS1"],["retail_codes","AllRetail"],["industrial_codes","AllIndustrial"],["any","All"]],_=[...T,["unknown"]].map(t=>t[0]),P=new Map(T);function S(t){for(let[e,r]of P)if(t===r)return e;return"unknown"}function I(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.HTMLImageElement)}catch{return!1}}function M(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.SVGImageElement)}catch{return!1}}function O(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.HTMLVideoElement)}catch{return!1}}function R(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.HTMLCanvasElement)}catch{return!1}}function D(t){try{return t instanceof ImageBitmap||"[object ImageBitmap]"===Object.prototype.toString.call(t)}catch{return!1}}function B(t){try{return t instanceof OffscreenCanvas||"[object OffscreenCanvas]"===Object.prototype.toString.call(t)}catch{return!1}}function F(t){try{return t instanceof VideoFrame||"[object VideoFrame]"===Object.prototype.toString.call(t)}catch{return!1}}async function L(t){if(I(t)&&!await async function(t){try{return await t.decode(),!0}catch{return!1}}(t))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(M(t)&&!await async function(t){try{var e;return await(null==(e=t.decode)?void 0:e.call(t)),!0}catch{return!1}}(t))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(F(t)&&function(t){return null===t.format}(t))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(O(t)&&(0===t.readyState||1===t.readyState))throw new DOMException("Invalid element or state.","InvalidStateError");if(D(t)&&function(t){return 0===t.width&&0===t.height}(t))throw new DOMException("The image source is detached.","InvalidStateError");let{width:e,height:r}=function(t){if(I(t))return{width:t.naturalWidth,height:t.naturalHeight};if(M(t))return{width:t.width.baseVal.value,height:t.height.baseVal.value};if(O(t))return{width:t.videoWidth,height:t.videoHeight};if(D(t))return{width:t.width,height:t.height};if(F(t))return{width:t.displayWidth,height:t.displayHeight};if(R(t)||B(t))return{width:t.width,height:t.height};throw TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}(t);if(0===e||0===r)return null;let a=function(t,e){try{let r=new OffscreenCanvas(t,e);if(r.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return r;throw void 0}catch{let r=document.createElement("canvas");return r.width=t,r.height=e,r}}(e,r).getContext("2d");a.drawImage(t,0,0);try{return a.getImageData(0,0,e,r)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function z(t){if(function(t){try{return t instanceof Blob||"[object Blob]"===Object.prototype.toString.call(t)}catch{return!1}}(t))return await async function(t){let e;try{e=await createImageBitmap(t)}catch{try{if(!globalThis.Image)return t;{e=new Image;let r="";try{r=URL.createObjectURL(t),e.src=r,await e.decode()}finally{URL.revokeObjectURL(r)}}}catch{throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}}return await L(e)}(t);if(function(t){try{return t instanceof ImageData||"[object ImageData]"===Object.prototype.toString.call(t)}catch{return!1}}(t)){if(function(t){return 0===t.data.buffer.byteLength}(t))throw new DOMException("The image data has been detached.","InvalidStateError");return t}return R(t)||B(t)?function(t){let{width:e,height:r}=t;if(0===e||0===r)return null;let a=t.getContext("2d");try{return a.getImageData(0,0,e,r)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}(t):await L(t)}function U(t,e){return function(t){return t instanceof DOMException||"[object DOMException]"===Object.prototype.toString.call(t)}(t)?new DOMException(`${e}: ${t.message}`,t.name):function(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}(t)?new t.constructor(`${e}: ${t.message}`):Error(`${e}: ${t}`)}function j(t,e,r){(function(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,r)}function q(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw TypeError("Private element is not present on this object")}function N(t,e){return t.get(q(t,e))}var Z,V=new WeakMap;null!=(Z=globalThis).BarcodeDetector||(Z.BarcodeDetector=class{static async getSupportedFormats(){return _.filter(t=>"unknown"!==t)}async detect(t){try{let e=await z(t);if(null===e)return[];let r,a={textMode:"Plain",formats:N(V,this).map(t=>P.get(t))};try{r=await async function(t,e){return k(A,t,e)}(e,a)}catch(t){throw console.error(t),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return r.map(t=>{let{topLeft:{x:e,y:r},topRight:{x:a,y:i},bottomLeft:{x:o,y:n},bottomRight:{x:s,y:l}}=t.position,c=Math.min(e,a,o,s),d=Math.min(r,i,n,l),h=Math.max(e,a,o,s),u=Math.max(r,i,n,l);return{boundingBox:new DOMRectReadOnly(c,d,h-c,u-d),rawValue:t.text,format:S(t.format),cornerPoints:[{x:e,y:r},{x:a,y:i},{x:s,y:l},{x:o,y:n}]}})}catch(t){throw U(t,"Failed to execute 'detect' on 'BarcodeDetector'")}}constructor(t={}){j(this,V,void 0);try{var e;let r=null==t||null==(e=t.formats)?void 0:e.filter(t=>"unknown"!==t);if(0===(null==r?void 0:r.length))throw TypeError("Hint option provided, but is empty.");for(let t of null==r?[]:r)if(!P.has(t))throw TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${t}' is not a valid enum value of type BarcodeFormat.`);(function(t,e,r){t.set(q(t,e),r)})(V,this,null==r?[]:r),E({fireImmediately:!0}).catch(()=>{})}catch(t){throw U(t,"Failed to construct 'BarcodeDetector'")}}})},37540(t,e,r){r.d(e,{Kq:()=>h});r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698);var a=r(63937),i=r(42017);const o=(t,e)=>{const r=t._$AN;if(void 0===r)return!1;for(const t of r)t._$AO?.(e,!1),o(t,e);return!0},n=t=>{let e,r;do{if(void 0===(e=t._$AM))break;r=e._$AN,r.delete(t),t=e}while(0===r?.size)},s=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(void 0===r)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),d(e)}};function l(t){void 0!==this._$AN?(n(this),this._$AM=t,s(this)):this._$AM=t}function c(t,e=!1,r=0){const a=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(e)if(Array.isArray(a))for(let t=r;t<a.length;t++)o(a[t],!1),n(a[t]);else null!=a&&(o(a,!1),n(a));else o(this,t)}const d=t=>{t.type==i.OA.CHILD&&(t._$AP??=c,t._$AQ??=l)};class h extends i.WL{_$AT(t,e,r){super._$AT(t,e,r),s(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(o(this,t),n(this))}setValue(t){if((0,a.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}constructor(){super(...arguments),this._$AN=void 0}}},34514(t,e,r){r.d(e,{V:()=>n});var a=r(5055),i=r(42017),o=r(63937);const n=(0,i.u$)(class extends i.WL{render(t){return t}update(t,[e]){if(e===a.c0||e===a.s6)return e;const r=t.element,n=t.name;if(t.type===i.OA.PROPERTY){if(e===r[n])return a.c0}else if(t.type===i.OA.BOOLEAN_ATTRIBUTE){if(!!e===r.hasAttribute(n))return a.c0}else if(t.type===i.OA.ATTRIBUTE&&r.getAttribute(n)===e+"")return a.c0;return(0,o.mY)(t),e}constructor(t){if(super(t),t.type!==i.OA.PROPERTY&&t.type!==i.OA.ATTRIBUTE&&t.type!==i.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,o.Rt)(t))throw Error("`live` bindings can only contain a single expression")}})}};