@regulaforensics/idv-capture-web 3.2.243-nightly → 3.2.244-nightly

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/main.iife.js +19 -19
  2. package/dist/main.js +2281 -2051
  3. package/package.json +1 -1
package/dist/main.iife.js CHANGED
@@ -1,31 +1,31 @@
1
- var r1=Object.defineProperty,n1=Object.defineProperties;var i1=Object.getOwnPropertyDescriptors;var di=Object.getOwnPropertySymbols;var ul=Object.prototype.hasOwnProperty,fl=Object.prototype.propertyIsEnumerable;var dl=(fe,Re,Oe)=>Re in fe?r1(fe,Re,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):fe[Re]=Oe,O=(fe,Re)=>{for(var Oe in Re||(Re={}))ul.call(Re,Oe)&&dl(fe,Oe,Re[Oe]);if(di)for(var Oe of di(Re))fl.call(Re,Oe)&&dl(fe,Oe,Re[Oe]);return fe},G=(fe,Re)=>n1(fe,i1(Re));var hr=(fe,Re)=>{var Oe={};for(var Ze in fe)ul.call(fe,Ze)&&Re.indexOf(Ze)<0&&(Oe[Ze]=fe[Ze]);if(fe!=null&&di)for(var Ze of di(fe))Re.indexOf(Ze)<0&&fl.call(fe,Ze)&&(Oe[Ze]=fe[Ze]);return Oe};var $=(fe,Re,Oe)=>new Promise((Ze,Ur)=>{var fn=It=>{try{Lr(Oe.next(It))}catch(pr){Ur(pr)}},ui=It=>{try{Lr(Oe.throw(It))}catch(pr){Ur(pr)}},Lr=It=>It.done?Ze(It.value):Promise.resolve(It.value).then(fn,ui);Lr((Oe=Oe.apply(fe,Re)).next())});var RegulaIdv=(function(fe){"use strict";/**
1
+ var RegulaIdv=(function(fe){"use strict";var m1=Object.defineProperty,_1=Object.defineProperties;var g1=Object.getOwnPropertyDescriptors;var di=Object.getOwnPropertySymbols;var pl=Object.prototype.hasOwnProperty,ml=Object.prototype.propertyIsEnumerable;var hl=(fe,Re,Oe)=>Re in fe?m1(fe,Re,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):fe[Re]=Oe,O=(fe,Re)=>{for(var Oe in Re||(Re={}))pl.call(Re,Oe)&&hl(fe,Oe,Re[Oe]);if(di)for(var Oe of di(Re))ml.call(Re,Oe)&&hl(fe,Oe,Re[Oe]);return fe},G=(fe,Re)=>_1(fe,g1(Re));var pr=(fe,Re)=>{var Oe={};for(var Ze in fe)pl.call(fe,Ze)&&Re.indexOf(Ze)<0&&(Oe[Ze]=fe[Ze]);if(fe!=null&&di)for(var Ze of di(fe))Re.indexOf(Ze)<0&&ml.call(fe,Ze)&&(Oe[Ze]=fe[Ze]);return Oe};var L=(fe,Re,Oe)=>new Promise((Ze,Ur)=>{var hn=It=>{try{Lr(Oe.next(It))}catch(mr){Ur(mr)}},fi=It=>{try{Lr(Oe.throw(It))}catch(mr){Ur(mr)}},Lr=It=>It.done?Ze(It.value):Promise.resolve(It.value).then(hn,fi);Lr((Oe=Oe.apply(fe,Re)).next())});/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */var Qa,el,tl,rl,nl,il;const Re=globalThis,Oe=Re.ShadowRoot&&(Re.ShadyCSS===void 0||Re.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ze=Symbol(),Ur=new WeakMap;let fn=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Ze)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(Oe&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=Ur.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Ur.set(r,e))}return e}toString(){return this.cssText}};const ui=t=>new fn(typeof t=="string"?t:t+"",void 0,Ze),Lr=(t,...e)=>{const r=t.length===1?t[0]:e.reduce(((n,i,s)=>n+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1]),t[0]);return new fn(r,t,Ze)},It=(t,e)=>{if(Oe)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(const r of e){const n=document.createElement("style"),i=Re.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},pr=Oe?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return ui(r)})(t):t;/**
5
+ */var rl,nl,il,sl,ol,al;const Re=globalThis,Oe=Re.ShadowRoot&&(Re.ShadyCSS===void 0||Re.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ze=Symbol(),Ur=new WeakMap;let hn=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Ze)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(Oe&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=Ur.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Ur.set(r,e))}return e}toString(){return this.cssText}};const fi=t=>new hn(typeof t=="string"?t:t+"",void 0,Ze),Lr=(t,...e)=>{const r=t.length===1?t[0]:e.reduce(((n,i,s)=>n+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1]),t[0]);return new hn(r,t,Ze)},It=(t,e)=>{if(Oe)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(const r of e){const n=document.createElement("style"),i=Re.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},mr=Oe?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return fi(r)})(t):t;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:ml,defineProperty:_l,getOwnPropertyDescriptor:gl,getOwnPropertyNames:vl,getOwnPropertySymbols:wl,getPrototypeOf:yl}=Object,Gt=globalThis,Ls=Gt.trustedTypes,bl=Ls?Ls.emptyScript:"",fi=Gt.reactiveElementPolyfillSupport,Fr=(t,e)=>t,hn={toAttribute(t,e){switch(e){case Boolean:t=t?bl:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(n){r=null}}return r}},hi=(t,e)=>!ml(t,e),Fs={attribute:!0,type:String,converter:hn,reflect:!1,useDefault:!1,hasChanged:hi};(Qa=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(el=Gt.litPropertyMetadata)!=null||(Gt.litPropertyMetadata=new WeakMap);let mr=class extends HTMLElement{static addInitializer(e){var r;this._$Ei(),((r=this.l)!=null?r:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=Fs){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&_l(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){var o;const{get:i,set:s}=(o=gl(this.prototype,e))!=null?o:{get(){return this[r]},set(a){this[r]=a}};return{get:i,set(a){const c=i==null?void 0:i.call(this);s==null||s.call(this,a),this.requestUpdate(e,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var r;return(r=this.elementProperties.get(e))!=null?r:Fs}static _$Ei(){if(this.hasOwnProperty(Fr("elementProperties")))return;const e=yl(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Fr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fr("properties"))){const r=this.properties,n=[...vl(r),...wl(r)];for(const i of n)this.createProperty(i,r[i])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)r.unshift(pr(i))}else e!==void 0&&r.push(pr(e));return r}static _$Eu(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise((r=>this.enableUpdating=r)),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach((r=>r(this)))}addController(e){var r,n;((r=this._$EO)!=null?r:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)==null||n.call(e))}removeController(e){var r;(r=this._$EO)==null||r.delete(e)}_$E_(){const e=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var r;const e=(r=this.shadowRoot)!=null?r:this.attachShadow(this.constructor.shadowRootOptions);return It(e,this.constructor.elementStyles),e}connectedCallback(){var e,r;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.forEach((n=>{var i;return(i=n.hostConnected)==null?void 0:i.call(n)}))}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach((r=>{var n;return(n=r.hostDisconnected)==null?void 0:n.call(r)}))}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$ET(e,r){var s;const n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){const o=(((s=n.converter)==null?void 0:s.toAttribute)!==void 0?n.converter:hn).toAttribute(r,n.type);this._$Em=e,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(e,r){var s,o,a;const n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const c=n.getPropertyOptions(i),h=typeof c.converter=="function"?{fromAttribute:c.converter}:((s=c.converter)==null?void 0:s.fromAttribute)!==void 0?c.converter:hn;this._$Em=i;const _=h.fromAttribute(r,c.type);this[i]=(a=_!=null?_:(o=this._$Ej)==null?void 0:o.get(i))!=null?a:_,this._$Em=null}}requestUpdate(e,r,n){var i,s;if(e!==void 0){const o=this.constructor,a=this[e];if(n!=null||(n=o.getPropertyOptions(e)),!(((i=n.hasChanged)!=null?i:hi)(a,r)||n.useDefault&&n.reflect&&a===((s=this._$Ej)==null?void 0:s.get(e))&&!this.hasAttribute(o._$Eu(e,n))))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:n,reflect:i,wrapped:s},o){var a,c,h;n&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(c=o!=null?o:r)!=null?c:this[e]),s!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(r=void 0),this._$AL.set(e,r)),i===!0&&this._$Em!==e&&((h=this._$Eq)!=null?h:this._$Eq=new Set).add(e))}_$EP(){return $(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((n=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[o,a]of s){const{wrapped:c}=a,h=this[o];c!==!0||this._$AL.has(o)||h===void 0||this.C(o,void 0,a,h)}}let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(i=this._$EO)==null||i.forEach((s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)})),this.update(r)):this._$EM()}catch(s){throw e=!1,this._$EM(),s}e&&this._$AE(r)}willUpdate(e){}_$AE(e){var r;(r=this._$EO)==null||r.forEach((n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach((r=>this._$ET(r,this[r])))),this._$EM()}updated(e){}firstUpdated(e){}};mr.elementStyles=[],mr.shadowRootOptions={mode:"open"},mr[Fr("elementProperties")]=new Map,mr[Fr("finalized")]=new Map,fi==null||fi({ReactiveElement:mr}),((tl=Gt.reactiveElementVersions)!=null?tl:Gt.reactiveElementVersions=[]).push("2.1.1");/**
9
+ */const{is:vl,defineProperty:wl,getOwnPropertyDescriptor:yl,getOwnPropertyNames:bl,getOwnPropertySymbols:Cl,getPrototypeOf:Sl}=Object,Gt=globalThis,$s=Gt.trustedTypes,El=$s?$s.emptyScript:"",hi=Gt.reactiveElementPolyfillSupport,Fr=(t,e)=>t,pn={toAttribute(t,e){switch(e){case Boolean:t=t?El:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(n){r=null}}return r}},pi=(t,e)=>!vl(t,e),Bs={attribute:!0,type:String,converter:pn,reflect:!1,useDefault:!1,hasChanged:pi};(rl=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(nl=Gt.litPropertyMetadata)!=null||(Gt.litPropertyMetadata=new WeakMap);let _r=class extends HTMLElement{static addInitializer(e){var r;this._$Ei(),((r=this.l)!=null?r:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=Bs){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&wl(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){var o;const{get:i,set:s}=(o=yl(this.prototype,e))!=null?o:{get(){return this[r]},set(a){this[r]=a}};return{get:i,set(a){const u=i==null?void 0:i.call(this);s==null||s.call(this,a),this.requestUpdate(e,u,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var r;return(r=this.elementProperties.get(e))!=null?r:Bs}static _$Ei(){if(this.hasOwnProperty(Fr("elementProperties")))return;const e=Sl(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Fr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fr("properties"))){const r=this.properties,n=[...bl(r),...Cl(r)];for(const i of n)this.createProperty(i,r[i])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)r.unshift(mr(i))}else e!==void 0&&r.push(mr(e));return r}static _$Eu(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise((r=>this.enableUpdating=r)),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach((r=>r(this)))}addController(e){var r,n;((r=this._$EO)!=null?r:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)==null||n.call(e))}removeController(e){var r;(r=this._$EO)==null||r.delete(e)}_$E_(){const e=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var r;const e=(r=this.shadowRoot)!=null?r:this.attachShadow(this.constructor.shadowRootOptions);return It(e,this.constructor.elementStyles),e}connectedCallback(){var e,r;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.forEach((n=>{var i;return(i=n.hostConnected)==null?void 0:i.call(n)}))}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach((r=>{var n;return(n=r.hostDisconnected)==null?void 0:n.call(r)}))}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$ET(e,r){var s;const n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){const o=(((s=n.converter)==null?void 0:s.toAttribute)!==void 0?n.converter:pn).toAttribute(r,n.type);this._$Em=e,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(e,r){var s,o,a;const n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const u=n.getPropertyOptions(i),h=typeof u.converter=="function"?{fromAttribute:u.converter}:((s=u.converter)==null?void 0:s.fromAttribute)!==void 0?u.converter:pn;this._$Em=i;const _=h.fromAttribute(r,u.type);this[i]=(a=_!=null?_:(o=this._$Ej)==null?void 0:o.get(i))!=null?a:_,this._$Em=null}}requestUpdate(e,r,n){var i,s;if(e!==void 0){const o=this.constructor,a=this[e];if(n!=null||(n=o.getPropertyOptions(e)),!(((i=n.hasChanged)!=null?i:pi)(a,r)||n.useDefault&&n.reflect&&a===((s=this._$Ej)==null?void 0:s.get(e))&&!this.hasAttribute(o._$Eu(e,n))))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:n,reflect:i,wrapped:s},o){var a,u,h;n&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(u=o!=null?o:r)!=null?u:this[e]),s!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(r=void 0),this._$AL.set(e,r)),i===!0&&this._$Em!==e&&((h=this._$Eq)!=null?h:this._$Eq=new Set).add(e))}_$EP(){return L(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((n=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[o,a]of s){const{wrapped:u}=a,h=this[o];u!==!0||this._$AL.has(o)||h===void 0||this.C(o,void 0,a,h)}}let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(i=this._$EO)==null||i.forEach((s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)})),this.update(r)):this._$EM()}catch(s){throw e=!1,this._$EM(),s}e&&this._$AE(r)}willUpdate(e){}_$AE(e){var r;(r=this._$EO)==null||r.forEach((n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach((r=>this._$ET(r,this[r])))),this._$EM()}updated(e){}firstUpdated(e){}};_r.elementStyles=[],_r.shadowRootOptions={mode:"open"},_r[Fr("elementProperties")]=new Map,_r[Fr("finalized")]=new Map,hi==null||hi({ReactiveElement:_r}),((il=Gt.reactiveElementVersions)!=null?il:Gt.reactiveElementVersions=[]).push("2.1.1");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const Vr=globalThis,pn=Vr.trustedTypes,Vs=pn?pn.createPolicy("lit-html",{createHTML:t=>t}):void 0,$s="$lit$",Kt=`lit$${Math.random().toFixed(9).slice(2)}$`,Bs="?"+Kt,Cl=`<${Bs}>`,er=document,$r=()=>er.createComment(""),Br=t=>t===null||typeof t!="object"&&typeof t!="function",pi=Array.isArray,Sl=t=>pi(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",mi=`[
14
- \f\r]`,Wr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ws=/-->/g,Hs=/>/g,tr=RegExp(`>|${mi}(?:([^\\s"'>=/]+)(${mi}*=${mi}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),js=/'/g,zs=/"/g,Gs=/^(?:script|style|textarea|title)$/i,El=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_i=El(1),_r=Symbol.for("lit-noChange"),Ue=Symbol.for("lit-nothing"),Ks=new WeakMap,rr=er.createTreeWalker(er,129);function qs(t,e){if(!pi(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vs!==void 0?Vs.createHTML(e):e}const Il=(t,e)=>{const r=t.length-1,n=[];let i,s=e===2?"<svg>":e===3?"<math>":"",o=Wr;for(let a=0;a<r;a++){const c=t[a];let h,_,f=-1,l=0;for(;l<c.length&&(o.lastIndex=l,_=o.exec(c),_!==null);)l=o.lastIndex,o===Wr?_[1]==="!--"?o=Ws:_[1]!==void 0?o=Hs:_[2]!==void 0?(Gs.test(_[2])&&(i=RegExp("</"+_[2],"g")),o=tr):_[3]!==void 0&&(o=tr):o===tr?_[0]===">"?(o=i!=null?i:Wr,f=-1):_[1]===void 0?f=-2:(f=o.lastIndex-_[2].length,h=_[1],o=_[3]===void 0?tr:_[3]==='"'?zs:js):o===zs||o===js?o=tr:o===Ws||o===Hs?o=Wr:(o=tr,i=void 0);const y=o===tr&&t[a+1].startsWith("/>")?" ":"";s+=o===Wr?c+Cl:f>=0?(n.push(h),c.slice(0,f)+$s+c.slice(f)+Kt+y):c+Kt+(f===-2?a:y)}return[qs(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]};let gi=class hl{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let s=0,o=0;const a=e.length-1,c=this.parts,[h,_]=Il(e,r);if(this.el=hl.createElement(h,n),rr.currentNode=this.el.content,r===2||r===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=rr.nextNode())!==null&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const f of i.getAttributeNames())if(f.endsWith($s)){const l=_[o++],y=i.getAttribute(f).split(Kt),w=/([.?@])?(.*)/.exec(l);c.push({type:1,index:s,name:w[2],strings:y,ctor:w[1]==="."?Tl:w[1]==="?"?Rl:w[1]==="@"?Al:mn}),i.removeAttribute(f)}else f.startsWith(Kt)&&(c.push({type:6,index:s}),i.removeAttribute(f));if(Gs.test(i.tagName)){const f=i.textContent.split(Kt),l=f.length-1;if(l>0){i.textContent=pn?pn.emptyScript:"";for(let y=0;y<l;y++)i.append(f[y],$r()),rr.nextNode(),c.push({type:2,index:++s});i.append(f[l],$r())}}}else if(i.nodeType===8)if(i.data===Bs)c.push({type:2,index:s});else{let f=-1;for(;(f=i.data.indexOf(Kt,f+1))!==-1;)c.push({type:7,index:s}),f+=Kt.length-1}s++}}static createElement(e,r){const n=er.createElement("template");return n.innerHTML=e,n}};function gr(t,e,r=t,n){var o,a,c;if(e===_r)return e;let i=n!==void 0?(o=r._$Co)==null?void 0:o[n]:r._$Cl;const s=Br(e)?void 0:e._$litDirective$;return(i==null?void 0:i.constructor)!==s&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),s===void 0?i=void 0:(i=new s(t),i._$AT(t,r,n)),n!==void 0?((c=r._$Co)!=null?c:r._$Co=[])[n]=i:r._$Cl=i),i!==void 0&&(e=gr(t,i._$AS(t,e.values),i,n)),e}let Ol=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var h;const{el:{content:r},parts:n}=this._$AD,i=((h=e==null?void 0:e.creationScope)!=null?h:er).importNode(r,!0);rr.currentNode=i;let s=rr.nextNode(),o=0,a=0,c=n[0];for(;c!==void 0;){if(o===c.index){let _;c.type===2?_=new vi(s,s.nextSibling,this,e):c.type===1?_=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(_=new xl(s,this,e)),this._$AV.push(_),c=n[++a]}o!==(c==null?void 0:c.index)&&(s=rr.nextNode(),o++)}return rr.currentNode=er,i}p(e){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},vi=class pl{get _$AU(){var e,r;return(r=(e=this._$AM)==null?void 0:e._$AU)!=null?r:this._$Cv}constructor(e,r,n,i){var s;this.type=2,this._$AH=Ue,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=(s=i==null?void 0:i.isConnected)!=null?s:!0}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=gr(this,e,r),Br(e)?e===Ue||e==null||e===""?(this._$AH!==Ue&&this._$AR(),this._$AH=Ue):e!==this._$AH&&e!==_r&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Sl(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Ue&&Br(this._$AH)?this._$AA.nextSibling.data=e:this.T(er.createTextNode(e)),this._$AH=e}$(e){var s;const{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=gi.createElement(qs(n.h,n.h[0]),this.options)),n);if(((s=this._$AH)==null?void 0:s._$AD)===i)this._$AH.p(r);else{const o=new Ol(i,this),a=o.u(this.options);o.p(r),this.T(a),this._$AH=o}}_$AC(e){let r=Ks.get(e.strings);return r===void 0&&Ks.set(e.strings,r=new gi(e)),r}k(e){pi(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,i=0;for(const s of e)i===r.length?r.push(n=new pl(this.O($r()),this.O($r()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,r);e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var r;this._$AM===void 0&&(this._$Cv=e,(r=this._$AP)==null||r.call(this,e))}},mn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,s){this.type=1,this._$AH=Ue,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Ue}_$AI(e,r=this,n,i){const s=this.strings;let o=!1;if(s===void 0)e=gr(this,e,r,0),o=!Br(e)||e!==this._$AH&&e!==_r,o&&(this._$AH=e);else{const a=e;let c,h;for(e=s[0],c=0;c<s.length-1;c++)h=gr(this,a[n+c],r,c),h===_r&&(h=this._$AH[c]),o||(o=!Br(h)||h!==this._$AH[c]),h===Ue?e=Ue:e!==Ue&&(e+=(h!=null?h:"")+s[c+1]),this._$AH[c]=h}o&&!i&&this.j(e)}j(e){e===Ue?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},Tl=class extends mn{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ue?void 0:e}},Rl=class extends mn{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ue)}},Al=class extends mn{constructor(e,r,n,i,s){super(e,r,n,i,s),this.type=5}_$AI(e,r=this){var o;if((e=(o=gr(this,e,r,0))!=null?o:Ue)===_r)return;const n=this._$AH,i=e===Ue&&n!==Ue||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==Ue&&(n===Ue||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,n;typeof this._$AH=="function"?this._$AH.call((n=(r=this.options)==null?void 0:r.host)!=null?n:this.element,e):this._$AH.handleEvent(e)}},xl=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){gr(this,e)}};const wi=Vr.litHtmlPolyfillSupport;wi==null||wi(gi,vi),((rl=Vr.litHtmlVersions)!=null?rl:Vr.litHtmlVersions=[]).push("3.3.1");const Nl=(t,e,r)=>{var s,o;const n=(s=r==null?void 0:r.renderBefore)!=null?s:e;let i=n._$litPart$;if(i===void 0){const a=(o=r==null?void 0:r.renderBefore)!=null?o:null;n._$litPart$=i=new vi(e.insertBefore($r(),a),a,void 0,r!=null?r:{})}return i._$AI(t),i};/**
13
+ */const Vr=globalThis,mn=Vr.trustedTypes,Ws=mn?mn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Hs="$lit$",Kt=`lit$${Math.random().toFixed(9).slice(2)}$`,js="?"+Kt,Il=`<${js}>`,rr=document,$r=()=>rr.createComment(""),Br=t=>t===null||typeof t!="object"&&typeof t!="function",mi=Array.isArray,Ol=t=>mi(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",_i=`[
14
+ \f\r]`,Wr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zs=/-->/g,Gs=/>/g,nr=RegExp(`>|${_i}(?:([^\\s"'>=/]+)(${_i}*=${_i}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ks=/'/g,qs=/"/g,Zs=/^(?:script|style|textarea|title)$/i,Tl=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),gi=Tl(1),gr=Symbol.for("lit-noChange"),Ue=Symbol.for("lit-nothing"),Ys=new WeakMap,ir=rr.createTreeWalker(rr,129);function Xs(t,e){if(!mi(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ws!==void 0?Ws.createHTML(e):e}const Rl=(t,e)=>{const r=t.length-1,n=[];let i,s=e===2?"<svg>":e===3?"<math>":"",o=Wr;for(let a=0;a<r;a++){const u=t[a];let h,_,f=-1,l=0;for(;l<u.length&&(o.lastIndex=l,_=o.exec(u),_!==null);)l=o.lastIndex,o===Wr?_[1]==="!--"?o=zs:_[1]!==void 0?o=Gs:_[2]!==void 0?(Zs.test(_[2])&&(i=RegExp("</"+_[2],"g")),o=nr):_[3]!==void 0&&(o=nr):o===nr?_[0]===">"?(o=i!=null?i:Wr,f=-1):_[1]===void 0?f=-2:(f=o.lastIndex-_[2].length,h=_[1],o=_[3]===void 0?nr:_[3]==='"'?qs:Ks):o===qs||o===Ks?o=nr:o===zs||o===Gs?o=Wr:(o=nr,i=void 0);const y=o===nr&&t[a+1].startsWith("/>")?" ":"";s+=o===Wr?u+Il:f>=0?(n.push(h),u.slice(0,f)+Hs+u.slice(f)+Kt+y):u+Kt+(f===-2?a:y)}return[Xs(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]};let vi=class _l{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let s=0,o=0;const a=e.length-1,u=this.parts,[h,_]=Rl(e,r);if(this.el=_l.createElement(h,n),ir.currentNode=this.el.content,r===2||r===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=ir.nextNode())!==null&&u.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const f of i.getAttributeNames())if(f.endsWith(Hs)){const l=_[o++],y=i.getAttribute(f).split(Kt),v=/([.?@])?(.*)/.exec(l);u.push({type:1,index:s,name:v[2],strings:y,ctor:v[1]==="."?xl:v[1]==="?"?Nl:v[1]==="@"?kl:_n}),i.removeAttribute(f)}else f.startsWith(Kt)&&(u.push({type:6,index:s}),i.removeAttribute(f));if(Zs.test(i.tagName)){const f=i.textContent.split(Kt),l=f.length-1;if(l>0){i.textContent=mn?mn.emptyScript:"";for(let y=0;y<l;y++)i.append(f[y],$r()),ir.nextNode(),u.push({type:2,index:++s});i.append(f[l],$r())}}}else if(i.nodeType===8)if(i.data===js)u.push({type:2,index:s});else{let f=-1;for(;(f=i.data.indexOf(Kt,f+1))!==-1;)u.push({type:7,index:s}),f+=Kt.length-1}s++}}static createElement(e,r){const n=rr.createElement("template");return n.innerHTML=e,n}};function vr(t,e,r=t,n){var o,a,u;if(e===gr)return e;let i=n!==void 0?(o=r._$Co)==null?void 0:o[n]:r._$Cl;const s=Br(e)?void 0:e._$litDirective$;return(i==null?void 0:i.constructor)!==s&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),s===void 0?i=void 0:(i=new s(t),i._$AT(t,r,n)),n!==void 0?((u=r._$Co)!=null?u:r._$Co=[])[n]=i:r._$Cl=i),i!==void 0&&(e=vr(t,i._$AS(t,e.values),i,n)),e}let Al=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var h;const{el:{content:r},parts:n}=this._$AD,i=((h=e==null?void 0:e.creationScope)!=null?h:rr).importNode(r,!0);ir.currentNode=i;let s=ir.nextNode(),o=0,a=0,u=n[0];for(;u!==void 0;){if(o===u.index){let _;u.type===2?_=new wi(s,s.nextSibling,this,e):u.type===1?_=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(_=new Dl(s,this,e)),this._$AV.push(_),u=n[++a]}o!==(u==null?void 0:u.index)&&(s=ir.nextNode(),o++)}return ir.currentNode=rr,i}p(e){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},wi=class gl{get _$AU(){var e,r;return(r=(e=this._$AM)==null?void 0:e._$AU)!=null?r:this._$Cv}constructor(e,r,n,i){var s;this.type=2,this._$AH=Ue,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=(s=i==null?void 0:i.isConnected)!=null?s:!0}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=vr(this,e,r),Br(e)?e===Ue||e==null||e===""?(this._$AH!==Ue&&this._$AR(),this._$AH=Ue):e!==this._$AH&&e!==gr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ol(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Ue&&Br(this._$AH)?this._$AA.nextSibling.data=e:this.T(rr.createTextNode(e)),this._$AH=e}$(e){var s;const{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=vi.createElement(Xs(n.h,n.h[0]),this.options)),n);if(((s=this._$AH)==null?void 0:s._$AD)===i)this._$AH.p(r);else{const o=new Al(i,this),a=o.u(this.options);o.p(r),this.T(a),this._$AH=o}}_$AC(e){let r=Ys.get(e.strings);return r===void 0&&Ys.set(e.strings,r=new vi(e)),r}k(e){mi(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,i=0;for(const s of e)i===r.length?r.push(n=new gl(this.O($r()),this.O($r()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,r);e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var r;this._$AM===void 0&&(this._$Cv=e,(r=this._$AP)==null||r.call(this,e))}},_n=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,s){this.type=1,this._$AH=Ue,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Ue}_$AI(e,r=this,n,i){const s=this.strings;let o=!1;if(s===void 0)e=vr(this,e,r,0),o=!Br(e)||e!==this._$AH&&e!==gr,o&&(this._$AH=e);else{const a=e;let u,h;for(e=s[0],u=0;u<s.length-1;u++)h=vr(this,a[n+u],r,u),h===gr&&(h=this._$AH[u]),o||(o=!Br(h)||h!==this._$AH[u]),h===Ue?e=Ue:e!==Ue&&(e+=(h!=null?h:"")+s[u+1]),this._$AH[u]=h}o&&!i&&this.j(e)}j(e){e===Ue?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},xl=class extends _n{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ue?void 0:e}},Nl=class extends _n{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ue)}},kl=class extends _n{constructor(e,r,n,i,s){super(e,r,n,i,s),this.type=5}_$AI(e,r=this){var o;if((e=(o=vr(this,e,r,0))!=null?o:Ue)===gr)return;const n=this._$AH,i=e===Ue&&n!==Ue||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==Ue&&(n===Ue||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,n;typeof this._$AH=="function"?this._$AH.call((n=(r=this.options)==null?void 0:r.host)!=null?n:this.element,e):this._$AH.handleEvent(e)}},Dl=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){vr(this,e)}};const yi=Vr.litHtmlPolyfillSupport;yi==null||yi(vi,wi),((sl=Vr.litHtmlVersions)!=null?sl:Vr.litHtmlVersions=[]).push("3.3.1");const Ml=(t,e,r)=>{var s,o;const n=(s=r==null?void 0:r.renderBefore)!=null?s:e;let i=n._$litPart$;if(i===void 0){const a=(o=r==null?void 0:r.renderBefore)!=null?o:null;n._$litPart$=i=new wi(e.insertBefore($r(),a),a,void 0,r!=null?r:{})}return i._$AI(t),i};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */const nr=globalThis;let Hr=class extends mr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r,n;const e=super.createRenderRoot();return(n=(r=this.renderOptions).renderBefore)!=null||(r.renderBefore=e.firstChild),e}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Nl(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return _r}};Hr._$litElement$=!0,Hr.finalized=!0,(nl=nr.litElementHydrateSupport)==null||nl.call(nr,{LitElement:Hr});const yi=nr.litElementPolyfillSupport;yi==null||yi({LitElement:Hr}),((il=nr.litElementVersions)!=null?il:nr.litElementVersions=[]).push("4.2.1");/**
19
+ */const sr=globalThis;let Hr=class extends _r{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r,n;const e=super.createRenderRoot();return(n=(r=this.renderOptions).renderBefore)!=null||(r.renderBefore=e.firstChild),e}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ml(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return gr}};Hr._$litElement$=!0,Hr.finalized=!0,(ol=sr.litElementHydrateSupport)==null||ol.call(sr,{LitElement:Hr});const bi=sr.litElementPolyfillSupport;bi==null||bi({LitElement:Hr}),((al=sr.litElementVersions)!=null?al:sr.litElementVersions=[]).push("4.2.1");/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */const kl={attribute:!0,type:String,converter:hn,reflect:!1,hasChanged:hi},Dl=(t=kl,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(s===void 0&&globalThis.litPropertyMetadata.set(i,s=new Map),n==="setter"&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),n==="accessor"){const{name:o}=r;return{set(a){const c=e.get.call(this);e.set.call(this,a),this.requestUpdate(o,c,t)},init(a){return a!==void 0&&this.C(o,void 0,t,a),a}}}if(n==="setter"){const{name:o}=r;return function(a){const c=this[o];e.call(this,a),this.requestUpdate(o,c,t)}}throw Error("Unsupported decorator location: "+n)};function Ml(t){return(e,r)=>typeof r=="object"?Dl(t,e,r):((n,i,s)=>{const o=i.hasOwnProperty(s);return i.constructor.createProperty(s,n),o?Object.getOwnPropertyDescriptor(i,s):void 0})(t,e,r)}/**
23
+ */const Pl={attribute:!0,type:String,converter:pn,reflect:!1,hasChanged:pi},Ul=(t=Pl,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(s===void 0&&globalThis.litPropertyMetadata.set(i,s=new Map),n==="setter"&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),n==="accessor"){const{name:o}=r;return{set(a){const u=e.get.call(this);e.set.call(this,a),this.requestUpdate(o,u,t)},init(a){return a!==void 0&&this.C(o,void 0,t,a),a}}}if(n==="setter"){const{name:o}=r;return function(a){const u=this[o];e.call(this,a),this.requestUpdate(o,u,t)}}throw Error("Unsupported decorator location: "+n)};function Ll(t){return(e,r)=>typeof r=="object"?Ul(t,e,r):((n,i,s)=>{const o=i.hasOwnProperty(s);return i.constructor.createProperty(s,n),o?Object.getOwnPropertyDescriptor(i,s):void 0})(t,e,r)}/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */function vr(t){return Ml(G(O({},t),{state:!0,attribute:!1}))}class Pl{constructor(){this._domains=[],this._transports=[],this._logs=[],this._prevTime=0;try{if(!window.localStorage)return;const e=window.localStorage.getItem("logger");if(!e)return;const[r,n]=e.split(">");this._domains=r.split(","),n&&(this._transports=n.split(","))}catch(e){return}}create(e,r){return n=>{const i=Date.now(),s=new Date(i).toISOString();let o=0;if(this._prevTime&&(o=i-this._prevTime),this._prevTime=i,this._domains.includes(e)&&this._transports.includes("console")){const a=(r==null?void 0:r.color)||"blue";console.log("%c%s: %c%s %c+%dms",`color: ${a};`,`${s} ${e}`,"",n,`color: ${a};`,o)}this._logs.push(`${s} ${e}: ${n} +${o}ms`)}}getLogs(){return this._logs}clearLogs(){this._logs=[]}saveLogsToFile(){if(!this._transports.includes("file")||!this._logs.length)return;const e=this._logs.join(`
28
- `),r=new Blob([e],{type:"text/plain"}),n=window.URL.createObjectURL(r),i=document.createElement("a");i.download="log.txt",i.href=n,i.click(),window.URL.revokeObjectURL(n),this.clearLogs()}}const wr=new Pl,Ul=Lr`
27
+ */function wr(t){return Ll(G(O({},t),{state:!0,attribute:!1}))}class Fl{constructor(){this._domains=[],this._transports=[],this._logs=[],this._prevTime=0;try{if(!window.localStorage)return;const e=window.localStorage.getItem("logger");if(!e)return;const[r,n]=e.split(">");this._domains=r.split(","),n&&(this._transports=n.split(","))}catch(e){return}}create(e,r){return n=>{const i=Date.now(),s=new Date(i).toISOString();let o=0;if(this._prevTime&&(o=i-this._prevTime),this._prevTime=i,this._domains.includes(e)&&this._transports.includes("console")){const a=(r==null?void 0:r.color)||"blue";console.log("%c%s: %c%s %c+%dms",`color: ${a};`,`${s} ${e}`,"",n,`color: ${a};`,o)}this._logs.push(`${s} ${e}: ${n} +${o}ms`)}}getLogs(){return this._logs}clearLogs(){this._logs=[]}saveLogsToFile(){if(!this._transports.includes("file")||!this._logs.length)return;const e=this._logs.join(`
28
+ `),r=new Blob([e],{type:"text/plain"}),n=window.URL.createObjectURL(r),i=document.createElement("a");i.download="log.txt",i.href=n,i.click(),window.URL.revokeObjectURL(n),this.clearLogs()}}const yr=new Fl,Vl=Lr`
29
29
  *,
30
30
  ::after,
31
31
  ::before {
@@ -86,9 +86,9 @@ var r1=Object.defineProperty,n1=Object.defineProperties;var i1=Object.getOwnProp
86
86
  background: white;
87
87
  z-index: 1000;
88
88
  }
89
- `,jr={MESSAGE:"MESSAGE",ERROR:"ERROR"},Ll=Object.values({DATA:"DATA",QUESTIONARY:"QUESTIONARY"});var Zs=(t=>(t.Rtl="rtl",t.Ltr="ltr",t))(Zs||{}),yr=(t=>(t.DID_START_SESSION="DID_START_SESSION",t.DID_END_SESSION="DID_END_SESSION",t.DID_START_RESTORE_SESSION="DID_START_RESTORE_SESSION",t.DID_CONTINUE_REMOTE_SESSION="DID_CONTINUE_REMOTE_SESSION",t))(yr||{}),mt=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.CONNECTION_ISSUE=1]="CONNECTION_ISSUE",t[t.WORKFLOW_ISSUE=2]="WORKFLOW_ISSUE",t[t.INTERNAL_ISSUE=3]="INTERNAL_ISSUE",t[t.SCENARIO_IN_PROGRESS=4]="SCENARIO_IN_PROGRESS",t))(mt||{}),Le=(t=>(t[t.CONNECTION_ISSUE=0]="CONNECTION_ISSUE",t[t.CONFIG_MISSED_OR_INVALID=1]="CONFIG_MISSED_OR_INVALID",t[t.INITIALIZATION_REQUIRED=2]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(Le||{}),Fe=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.PREPARED_REQUIRED=1]="PREPARED_REQUIRED",t[t.START_SESSION_FAILED=2]="START_SESSION_FAILED",t[t.UNKNOWN_STEP=3]="UNKNOWN_STEP",t[t.MODULES_ISSUE=4]="MODULES_ISSUE",t[t.ALREADY_STARTED=5]="ALREADY_STARTED",t[t.INTERNAL_ISSUE=6]="INTERNAL_ISSUE",t))(Fe||{}),zr=(t=>(t[t.CONFIG_MISSED_OR_INVALID=0]="CONFIG_MISSED_OR_INVALID",t[t.MODULES_INSTANTIATION_FAILURE=1]="MODULES_INSTANTIATION_FAILURE",t[t.INITIALIZATION_IN_PROGRESS=2]="INITIALIZATION_IN_PROGRESS",t))(zr||{}),_n=(t=>(t[t.CONNECTION_ISSUE=0]="CONNECTION_ISSUE",t[t.WORKFLOW_ISSUE=1]="WORKFLOW_ISSUE",t))(_n||{}),at=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t))(at||{}),qt=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t[t.TOKEN_ERROR=3]="TOKEN_ERROR",t[t.CONNECTION_ISSUE=4]="CONNECTION_ISSUE",t))(qt||{}),it=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t[t.SAME_STEP=3]="SAME_STEP",t[t.IS_PROCESSING=4]="IS_PROCESSING",t[t.NOT_DATA_TYPE=5]="NOT_DATA_TYPE",t))(it||{}),Gr=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(Gr||{}),Ot=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t))(Ot||{});const Fl=120,Vl=200,bi="PROGRESS",_t="IDV",ir="idv-session-data",Kr="idv-session-auth-token",$l="rgl-uid",Bl="en",Ys=t=>{let e;const r=new Set,n=(h,_)=>{const f=typeof h=="function"?h(e):h;if(!Object.is(f,e)){const l=e;e=(_!=null?_:typeof f!="object"||f===null)?f:Object.assign({},e,f),r.forEach(y=>y(e,l))}},i=()=>e,a={setState:n,getState:i,getInitialState:()=>c,subscribe:h=>(r.add(h),()=>r.delete(h))},c=e=t(n,i,a);return a},Wl=t=>t?Ys(t):Ys;var qr,oe,Xs,sr,Js,Qs,eo,to,Ci,Si,Ei,ro,Zr={},no=[],Hl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Yr=Array.isArray;function gt(t,e){for(var r in e)t[r]=e[r];return t}function Ii(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function vt(t,e,r){var n,i,s,o={};for(s in e)s=="key"?n=e[s]:s=="ref"?i=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?qr.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)o[s]===void 0&&(o[s]=t.defaultProps[s]);return Xr(t,o,n,i,null)}function Xr(t,e,r,n,i){var s={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++Xs:i,__i:-1,__u:0};return i==null&&oe.vnode!=null&&oe.vnode(s),s}function io(){return{current:null}}function He(t){return t.children}function lt(t,e){this.props=t,this.context=e}function br(t,e){if(e==null)return t.__?br(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?br(t):null}function so(t){var e,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return so(t)}}function Oi(t){(!t.__d&&(t.__d=!0)&&sr.push(t)&&!gn.__r++||Js!=oe.debounceRendering)&&((Js=oe.debounceRendering)||Qs)(gn)}function gn(){for(var t,e,r,n,i,s,o,a=1;sr.length;)sr.length>a&&sr.sort(eo),t=sr.shift(),a=sr.length,t.__d&&(r=void 0,n=void 0,i=(n=(e=t).__v).__e,s=[],o=[],e.__P&&((r=gt({},n)).__v=n.__v+1,oe.vnode&&oe.vnode(r),Ti(e.__P,r,n,e.__n,e.__P.namespaceURI,32&n.__u?[i]:null,s,i==null?br(n):i,!!(32&n.__u),o),r.__v=n.__v,r.__.__k[r.__i]=r,uo(s,r,o),n.__e=n.__=null,r.__e!=i&&so(r)));gn.__r=0}function oo(t,e,r,n,i,s,o,a,c,h,_){var f,l,y,w,d,m,S,b=n&&n.__k||no,C=e.length;for(c=jl(r,e,b,c,C),f=0;f<C;f++)(y=r.__k[f])!=null&&(l=y.__i==-1?Zr:b[y.__i]||Zr,y.__i=f,m=Ti(t,y,l,i,s,o,a,c,h,_),w=y.__e,y.ref&&l.ref!=y.ref&&(l.ref&&Ai(l.ref,null,y),_.push(y.ref,y.__c||w,y)),d==null&&w!=null&&(d=w),(S=!!(4&y.__u))||l.__k===y.__k?c=ao(y,c,t,S):typeof y.type=="function"&&m!==void 0?c=m:w&&(c=w.nextSibling),y.__u&=-7);return r.__e=d,c}function jl(t,e,r,n,i){var s,o,a,c,h,_=r.length,f=_,l=0;for(t.__k=new Array(i),s=0;s<i;s++)(o=e[s])!=null&&typeof o!="boolean"&&typeof o!="function"?(c=s+l,(o=t.__k[s]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Xr(null,o,null,null,null):Yr(o)?Xr(He,{children:o},null,null,null):o.constructor==null&&o.__b>0?Xr(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=t,o.__b=t.__b+1,a=null,(h=o.__i=zl(o,r,c,f))!=-1&&(f--,(a=r[h])&&(a.__u|=2)),a==null||a.__v==null?(h==-1&&(i>_?l--:i<_&&l++),typeof o.type!="function"&&(o.__u|=4)):h!=c&&(h==c-1?l--:h==c+1?l++:(h>c?l--:l++,o.__u|=4))):t.__k[s]=null;if(f)for(s=0;s<_;s++)(a=r[s])!=null&&(2&a.__u)==0&&(a.__e==n&&(n=br(a)),ho(a,a));return n}function ao(t,e,r,n){var i,s;if(typeof t.type=="function"){for(i=t.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=t,e=ao(i[s],e,r,n));return e}t.__e!=e&&(n&&(e&&t.type&&!e.parentNode&&(e=br(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function Tt(t,e){return e=e||[],t==null||typeof t=="boolean"||(Yr(t)?t.some(function(r){Tt(r,e)}):e.push(t)),e}function zl(t,e,r,n){var i,s,o,a=t.key,c=t.type,h=e[r],_=h!=null&&(2&h.__u)==0;if(h===null&&t.key==null||_&&a==h.key&&c==h.type)return r;if(n>(_?1:0)){for(i=r-1,s=r+1;i>=0||s<e.length;)if((h=e[o=i>=0?i--:s++])!=null&&(2&h.__u)==0&&a==h.key&&c==h.type)return o}return-1}function lo(t,e,r){e[0]=="-"?t.setProperty(e,r==null?"":r):t[e]=r==null?"":typeof r!="number"||Hl.test(e)?r:r+"px"}function vn(t,e,r,n,i){var s,o;e:if(e=="style")if(typeof r=="string")t.style.cssText=r;else{if(typeof n=="string"&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||lo(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||lo(t.style,e,r[e])}else if(e[0]=="o"&&e[1]=="n")s=e!=(e=e.replace(to,"$1")),o=e.toLowerCase(),e=o in t||e=="onFocusOut"||e=="onFocusIn"?o.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=r,r?n?r.u=n.u:(r.u=Ci,t.addEventListener(e,s?Ei:Si,s)):t.removeEventListener(e,s?Ei:Si,s);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&r==1?"":r))}}function co(t){return function(e){if(this.l){var r=this.l[e.type+t];if(e.t==null)e.t=Ci++;else if(e.t<r.u)return;return r(oe.event?oe.event(e):e)}}}function Ti(t,e,r,n,i,s,o,a,c,h){var _,f,l,y,w,d,m,S,b,C,A,M,x,P,me,_e,ee,Q=e.type;if(e.constructor!=null)return null;128&r.__u&&(c=!!(32&r.__u),s=[a=e.__e=r.__e]),(_=oe.__b)&&_(e);e:if(typeof Q=="function")try{if(S=e.props,b="prototype"in Q&&Q.prototype.render,C=(_=Q.contextType)&&n[_.__c],A=_?C?C.props.value:_.__:n,r.__c?m=(f=e.__c=r.__c).__=f.__E:(b?e.__c=f=new Q(S,A):(e.__c=f=new lt(S,A),f.constructor=Q,f.render=Kl),C&&C.sub(f),f.props=S,f.state||(f.state={}),f.context=A,f.__n=n,l=f.__d=!0,f.__h=[],f._sb=[]),b&&f.__s==null&&(f.__s=f.state),b&&Q.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=gt({},f.__s)),gt(f.__s,Q.getDerivedStateFromProps(S,f.__s))),y=f.props,w=f.state,f.__v=e,l)b&&Q.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),b&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(b&&Q.getDerivedStateFromProps==null&&S!==y&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(S,A),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(S,f.__s,A)===!1||e.__v==r.__v){for(e.__v!=r.__v&&(f.props=S,f.state=f.__s,f.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some(function(W){W&&(W.__=e)}),M=0;M<f._sb.length;M++)f.__h.push(f._sb[M]);f._sb=[],f.__h.length&&o.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(S,f.__s,A),b&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(y,w,d)})}if(f.context=A,f.props=S,f.__P=t,f.__e=!1,x=oe.__r,P=0,b){for(f.state=f.__s,f.__d=!1,x&&x(e),_=f.render(f.props,f.state,f.context),me=0;me<f._sb.length;me++)f.__h.push(f._sb[me]);f._sb=[]}else do f.__d=!1,x&&x(e),_=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++P<25);f.state=f.__s,f.getChildContext!=null&&(n=gt(gt({},n),f.getChildContext())),b&&!l&&f.getSnapshotBeforeUpdate!=null&&(d=f.getSnapshotBeforeUpdate(y,w)),_e=_,_!=null&&_.type===He&&_.key==null&&(_e=fo(_.props.children)),a=oo(t,Yr(_e)?_e:[_e],e,r,n,i,s,o,a,c,h),f.base=e.__e,e.__u&=-161,f.__h.length&&o.push(f),m&&(f.__E=f.__=null)}catch(W){if(e.__v=null,c||s!=null)if(W.then){for(e.__u|=c?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,e.__e=a}else{for(ee=s.length;ee--;)Ii(s[ee]);Ri(e)}else e.__e=r.__e,e.__k=r.__k,W.then||Ri(e);oe.__e(W,e,r)}else s==null&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):a=e.__e=Gl(r.__e,e,r,n,i,s,o,c,h);return(_=oe.diffed)&&_(e),128&e.__u?void 0:a}function Ri(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(Ri)}function uo(t,e,r){for(var n=0;n<r.length;n++)Ai(r[n],r[++n],r[++n]);oe.__c&&oe.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(s){s.call(i)})}catch(s){oe.__e(s,i.__v)}})}function fo(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:Yr(t)?t.map(fo):gt({},t)}function Gl(t,e,r,n,i,s,o,a,c){var h,_,f,l,y,w,d,m=r.props,S=e.props,b=e.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),s!=null){for(h=0;h<s.length;h++)if((y=s[h])&&"setAttribute"in y==!!b&&(b?y.localName==b:y.nodeType==3)){t=y,s[h]=null;break}}if(t==null){if(b==null)return document.createTextNode(S);t=document.createElementNS(i,b,S.is&&S),a&&(oe.__m&&oe.__m(e,s),a=!1),s=null}if(b==null)m===S||a&&t.data==S||(t.data=S);else{if(s=s&&qr.call(t.childNodes),m=r.props||Zr,!a&&s!=null)for(m={},h=0;h<t.attributes.length;h++)m[(y=t.attributes[h]).name]=y.value;for(h in m)if(y=m[h],h!="children"){if(h=="dangerouslySetInnerHTML")f=y;else if(!(h in S)){if(h=="value"&&"defaultValue"in S||h=="checked"&&"defaultChecked"in S)continue;vn(t,h,null,y,i)}}for(h in S)y=S[h],h=="children"?l=y:h=="dangerouslySetInnerHTML"?_=y:h=="value"?w=y:h=="checked"?d=y:a&&typeof y!="function"||m[h]===y||vn(t,h,y,m[h],i);if(_)a||f&&(_.__html==f.__html||_.__html==t.innerHTML)||(t.innerHTML=_.__html),e.__k=[];else if(f&&(t.innerHTML=""),oo(e.type=="template"?t.content:t,Yr(l)?l:[l],e,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,s,o,s?s[0]:r.__k&&br(r,0),a,c),s!=null)for(h=s.length;h--;)Ii(s[h]);a||(h="value",b=="progress"&&w==null?t.removeAttribute("value"):w!=null&&(w!==t[h]||b=="progress"&&!w||b=="option"&&w!=m[h])&&vn(t,h,w,m[h],i),h="checked",d!=null&&d!=t[h]&&vn(t,h,d,m[h],i))}return t}function Ai(t,e,r){try{if(typeof t=="function"){var n=typeof t.__u=="function";n&&t.__u(),n&&e==null||(t.__u=t(e))}else t.current=e}catch(i){oe.__e(i,r)}}function ho(t,e,r){var n,i;if(oe.unmount&&oe.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||Ai(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(s){oe.__e(s,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&ho(n[i],e,r||typeof t.type!="function");r||Ii(t.__e),t.__c=t.__=t.__e=void 0}function Kl(t,e,r){return this.constructor(t,r)}function Cr(t,e,r){var n,i,s,o;e==document&&(e=document.documentElement),oe.__&&oe.__(t,e),i=(n=typeof r=="function")?null:r&&r.__k||e.__k,s=[],o=[],Ti(e,t=(!n&&r||e).__k=vt(He,null,[t]),i||Zr,Zr,e.namespaceURI,!n&&r?[r]:i?null:e.firstChild?qr.call(e.childNodes):null,s,!n&&r?r:i?i.__e:e.firstChild,n,o),uo(s,t,o)}function po(t,e){Cr(t,e,po)}function ql(t,e,r){var n,i,s,o,a=gt({},t.props);for(s in t.type&&t.type.defaultProps&&(o=t.type.defaultProps),e)s=="key"?n=e[s]:s=="ref"?i=e[s]:a[s]=e[s]===void 0&&o!=null?o[s]:e[s];return arguments.length>2&&(a.children=arguments.length>3?qr.call(arguments,2):r),Xr(t.type,a,n||t.key,i||t.ref,null)}function xi(t){function e(r){var n,i;return this.getChildContext||(n=new Set,(i={})[e.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&n.forEach(function(o){o.__e=!0,Oi(o)})},this.sub=function(s){n.add(s);var o=s.componentWillUnmount;s.componentWillUnmount=function(){n&&n.delete(s),o&&o.call(s)}}),r.children}return e.__c="__cC"+ro++,e.__=t,e.Provider=e.__l=(e.Consumer=function(r,n){return r.children(n)}).contextType=e,e}qr=no.slice,oe={__e:function(t,e,r,n){for(var i,s,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,n||{}),o=i.__d),o)return i.__E=i}catch(a){t=a}throw t}},Xs=0,lt.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=gt({},this.state),typeof t=="function"&&(t=t(gt({},r),this.props)),t&&gt(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Oi(this))},lt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Oi(this))},lt.prototype.render=He,sr=[],Qs=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,eo=function(t,e){return t.__v.__b-e.__v.__b},gn.__r=0,to=/(PointerCapture)$|Capture$/i,Ci=0,Si=co(!1),Ei=co(!0),ro=0;var Rt,Ce,Ni,mo,Sr=0,_o=[],Te=oe,go=Te.__b,vo=Te.__r,wo=Te.diffed,yo=Te.__c,bo=Te.unmount,Co=Te.__;function or(t,e){Te.__h&&Te.__h(Ce,t,Sr||e),Sr=0;var r=Ce.__H||(Ce.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Ve(t){return Sr=1,wn(Eo,t)}function wn(t,e,r){var n=or(Rt++,2);if(n.t=t,!n.__c&&(n.__=[r?r(e):Eo(void 0,e),function(a){var c=n.__N?n.__N[0]:n.__[0],h=n.t(c,a);c!==h&&(n.__N=[h,n.__[1]],n.__c.setState({}))}],n.__c=Ce,!Ce.__f)){var i=function(a,c,h){if(!n.__c.__H)return!0;var _=n.__c.__H.__.filter(function(l){return!!l.__c});if(_.every(function(l){return!l.__N}))return!s||s.call(this,a,c,h);var f=n.__c.props!==a;return _.forEach(function(l){if(l.__N){var y=l.__[0];l.__=l.__N,l.__N=void 0,y!==l.__[0]&&(f=!0)}}),s&&s.call(this,a,c,h)||f};Ce.__f=!0;var s=Ce.shouldComponentUpdate,o=Ce.componentWillUpdate;Ce.componentWillUpdate=function(a,c,h){if(this.__e){var _=s;s=void 0,i(a,c,h),s=_}o&&o.call(this,a,c,h)},Ce.shouldComponentUpdate=i}return n.__N||n.__}function wt(t,e){var r=or(Rt++,3);!Te.__s&&Li(r.__H,e)&&(r.__=t,r.u=e,Ce.__H.__h.push(r))}function ar(t,e){var r=or(Rt++,4);!Te.__s&&Li(r.__H,e)&&(r.__=t,r.u=e,Ce.__h.push(r))}function ct(t){return Sr=5,Jr(function(){return{current:t}},[])}function ki(t,e,r){Sr=6,ar(function(){if(typeof t=="function"){var n=t(e());return function(){t(null),n&&typeof n=="function"&&n()}}if(t)return t.current=e(),function(){return t.current=null}},r==null?r:r.concat(t))}function Jr(t,e){var r=or(Rt++,7);return Li(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function Di(t,e){return Sr=8,Jr(function(){return t},e)}function yn(t){var e=Ce.context[t.__c],r=or(Rt++,9);return r.c=t,e?(r.__==null&&(r.__=!0,e.sub(Ce)),e.props.value):t.__}function Mi(t,e){Te.useDebugValue&&Te.useDebugValue(e?e(t):t)}function Zl(t){var e=or(Rt++,10),r=Ve();return e.__=t,Ce.componentDidCatch||(Ce.componentDidCatch=function(n,i){e.__&&e.__(n,i),r[1](n)}),[r[0],function(){r[1](void 0)}]}function Pi(){var t=or(Rt++,11);if(!t.__){for(var e=Ce.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var r=e.__m||(e.__m=[0,0]);t.__="P"+r[0]+"-"+r[1]++}return t.__}function Yl(){for(var t;t=_o.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(bn),t.__H.__h.forEach(Ui),t.__H.__h=[]}catch(e){t.__H.__h=[],Te.__e(e,t.__v)}}Te.__b=function(t){Ce=null,go&&go(t)},Te.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Co&&Co(t,e)},Te.__r=function(t){vo&&vo(t),Rt=0;var e=(Ce=t.__c).__H;e&&(Ni===Ce?(e.__h=[],Ce.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(e.__h.forEach(bn),e.__h.forEach(Ui),e.__h=[],Rt=0)),Ni=Ce},Te.diffed=function(t){wo&&wo(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(_o.push(e)!==1&&mo===Te.requestAnimationFrame||((mo=Te.requestAnimationFrame)||Xl)(Yl)),e.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ni=Ce=null},Te.__c=function(t,e){e.some(function(r){try{r.__h.forEach(bn),r.__h=r.__h.filter(function(n){return!n.__||Ui(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Te.__e(n,r.__v)}}),yo&&yo(t,e)},Te.unmount=function(t){bo&&bo(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{bn(n)}catch(i){e=i}}),r.__H=void 0,e&&Te.__e(e,r.__v))};var So=typeof requestAnimationFrame=="function";function Xl(t){var e,r=function(){clearTimeout(n),So&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,35);So&&(e=requestAnimationFrame(r))}function bn(t){var e=Ce,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),Ce=e}function Ui(t){var e=Ce;t.__c=t.__(),Ce=e}function Li(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function Eo(t,e){return typeof e=="function"?e(t):e}function Io(t,e){for(var r in e)t[r]=e[r];return t}function Fi(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var n in e)if(n!=="__source"&&t[n]!==e[n])return!0;return!1}function Vi(t,e){var r=e(),n=Ve({t:{__:r,u:e}}),i=n[0].t,s=n[1];return ar(function(){i.__=r,i.u=e,$i(i)&&s({t:i})},[t,r,e]),wt(function(){return $i(i)&&s({t:i}),t(function(){$i(i)&&s({t:i})})},[t]),r}function $i(t){var e,r,n=t.u,i=t.__;try{var s=n();return!((e=i)===(r=s)&&(e!==0||1/e==1/r)||e!=e&&r!=r)}catch(o){return!0}}function Bi(t){t()}function Wi(t){return t}function Hi(){return[!1,Bi]}var ji=ar;function Cn(t,e){this.props=t,this.context=e}function Oo(t,e){function r(i){var s=this.props.ref,o=s==i.ref;return!o&&s&&(s.call?s(null):s.current=null),e?!e(this.props,i)||!o:Fi(this.props,i)}function n(i){return this.shouldComponentUpdate=r,vt(t,i)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n.type=t,n}(Cn.prototype=new lt).isPureReactComponent=!0,Cn.prototype.shouldComponentUpdate=function(t,e){return Fi(this.props,t)||Fi(this.state,e)};var To=oe.__b;oe.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),To&&To(t)};var Jl=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ro(t){function e(r){var n=Io({},r);return delete n.ref,t(n,r.ref||null)}return e.$$typeof=Jl,e.render=t,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Ao=function(t,e){return t==null?null:Tt(Tt(t).map(e))},xo={map:Ao,forEach:Ao,count:function(t){return t?Tt(t).length:0},only:function(t){var e=Tt(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:Tt},Ql=oe.__e;oe.__e=function(t,e,r,n){if(t.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),i.__c(t,e)}Ql(t,e,r,n)};var No=oe.unmount;function ko(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=Io({},t)).__c!=null&&(t.__c.__P===r&&(t.__c.__P=e),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return ko(n,e,r)})),t}function Do(t,e,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Do(n,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}function Qr(){this.__u=0,this.o=null,this.__b=null}function Mo(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Po(t){var e,r,n;function i(s){if(e||(e=t()).then(function(o){r=o.default||o},function(o){n=o}),n)throw n;if(!r)throw e;return vt(r,s)}return i.displayName="Lazy",i.__f=!0,i}function Er(){this.i=null,this.l=null}oe.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),No&&No(t)},(Qr.prototype=new lt).__c=function(t,e){var r=e.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Mo(n.__v),s=!1,o=function(){s||(s=!0,r.__R=null,i?i(a):a())};r.__R=o;var a=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Do(c,c.__c.__P,c.__c.__O)}var h;for(n.setState({__a:n.__b=null});h=n.o.pop();)h.forceUpdate()}};n.__u++||32&e.__u||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(o,o)},Qr.prototype.componentWillUnmount=function(){this.o=[]},Qr.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=ko(this.__b,r,n.__O=n.__P)}this.__b=null}var i=e.__a&&vt(He,null,t.fallback);return i&&(i.__u&=-33),[vt(He,null,e.__a?null:t.children),i]};var Uo=function(t,e,r){if(++r[1]===r[0]&&t.l.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.l.size))for(r=t.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.i=r=r[2]}};function ec(t){return this.getChildContext=function(){return t.context},t.children}function tc(t){var e=this,r=t.h;if(e.componentWillUnmount=function(){Cr(null,e.v),e.v=null,e.h=null},e.h&&e.h!==r&&e.componentWillUnmount(),!e.v){for(var n=e.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;e.h=r,e.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(i,s){this.childNodes.push(i),e.h.insertBefore(i,s)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),e.h.removeChild(i)}}}Cr(vt(ec,{context:e.context},t.__v),e.v)}function Lo(t,e){var r=vt(tc,{__v:t,h:e});return r.containerInfo=e,r}(Er.prototype=new lt).__a=function(t){var e=this,r=Mo(e.__v),n=e.l.get(t);return n[0]++,function(i){var s=function(){e.props.revealOrder?(n.push(i),Uo(e,t,n)):i()};r?r(s):s()}},Er.prototype.render=function(t){this.i=null,this.l=new Map;var e=Tt(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var r=e.length;r--;)this.l.set(e[r],this.i=[1,0,this.i]);return t.children},Er.prototype.componentDidUpdate=Er.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,r){Uo(t,r,e)})};var Fo=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,rc=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,nc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ic=/[A-Z0-9]/g,sc=typeof document!="undefined",oc=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Vo(t,e,r){return e.__k==null&&(e.textContent=""),Cr(t,e),typeof r=="function"&&r(),t?t.__c:null}function $o(t,e,r){return po(t,e),typeof r=="function"&&r(),t?t.__c:null}lt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(lt.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Bo=oe.event;function ac(){}function lc(){return this.cancelBubble}function cc(){return this.defaultPrevented}oe.event=function(t){return Bo&&(t=Bo(t)),t.persist=ac,t.isPropagationStopped=lc,t.isDefaultPrevented=cc,t.nativeEvent=t};var zi,dc={enumerable:!1,configurable:!0,get:function(){return this.class}},Wo=oe.vnode;oe.vnode=function(t){typeof t.type=="string"&&(function(e){var r=e.props,n=e.type,i={},s=n.indexOf("-")===-1;for(var o in r){var a=r[o];if(!(o==="value"&&"defaultValue"in r&&a==null||sc&&o==="children"&&n==="noscript"||o==="class"||o==="className")){var c=o.toLowerCase();o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&a===!0?a="":c==="translate"&&a==="no"?a=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?o="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||oc(r.type)?c==="onfocus"?o="onfocusin":c==="onblur"?o="onfocusout":nc.test(o)&&(o=c):c=o="oninput":s&&rc.test(o)?o=o.replace(ic,"-$&").toLowerCase():a===null&&(a=void 0),c==="oninput"&&i[o=c]&&(o="oninputCapture"),i[o]=a}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Tt(r.children).forEach(function(h){h.props.selected=i.value.indexOf(h.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Tt(r.children).forEach(function(h){h.props.selected=i.multiple?i.defaultValue.indexOf(h.props.value)!=-1:i.defaultValue==h.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",dc)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),e.props=i})(t),t.$$typeof=Fo,Wo&&Wo(t)};var Ho=oe.__r;oe.__r=function(t){Ho&&Ho(t),zi=t.__c};var jo=oe.diffed;oe.diffed=function(t){jo&&jo(t);var e=t.props,r=t.__e;r!=null&&t.type==="textarea"&&"value"in e&&e.value!==r.value&&(r.value=e.value==null?"":e.value),zi=null};var zo={ReactCurrentDispatcher:{current:{readContext:function(t){return zi.__n[t.__c].props.value},useCallback:Di,useContext:yn,useDebugValue:Mi,useDeferredValue:Wi,useEffect:wt,useId:Pi,useImperativeHandle:ki,useInsertionEffect:ji,useLayoutEffect:ar,useMemo:Jr,useReducer:wn,useRef:ct,useState:Ve,useSyncExternalStore:Vi,useTransition:Hi}}},uc="18.3.1";function Go(t){return vt.bind(null,t)}function en(t){return!!t&&t.$$typeof===Fo}function Ko(t){return en(t)&&t.type===He}function qo(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Zo(t){return en(t)?ql.apply(null,arguments):t}function Yo(t){return!!t.__k&&(Cr(null,t),!0)}function Xo(t){return t&&(t.base||t.nodeType===1&&t)||null}var Jo=function(t,e){return t(e)},Qo=function(t,e){return t(e)},ea=He,ta=en,ce={useState:Ve,useId:Pi,useReducer:wn,useEffect:wt,useLayoutEffect:ar,useInsertionEffect:ji,useTransition:Hi,useDeferredValue:Wi,useSyncExternalStore:Vi,startTransition:Bi,useRef:ct,useImperativeHandle:ki,useMemo:Jr,useCallback:Di,useContext:yn,useDebugValue:Mi,version:"18.3.1",Children:xo,render:Vo,hydrate:$o,unmountComponentAtNode:Yo,createPortal:Lo,createElement:vt,createContext:xi,createFactory:Go,cloneElement:Zo,createRef:io,Fragment:He,isValidElement:en,isElement:ta,isFragment:Ko,isMemo:qo,findDOMNode:Xo,Component:lt,PureComponent:Cn,memo:Oo,forwardRef:Ro,flushSync:Qo,unstable_batchedUpdates:Jo,StrictMode:ea,Suspense:Qr,SuspenseList:Er,lazy:Po,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zo};const fc=Object.freeze(Object.defineProperty({__proto__:null,Children:xo,Component:lt,Fragment:He,PureComponent:Cn,StrictMode:ea,Suspense:Qr,SuspenseList:Er,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zo,cloneElement:Zo,createContext:xi,createElement:vt,createFactory:Go,createPortal:Lo,createRef:io,default:ce,findDOMNode:Xo,flushSync:Qo,forwardRef:Ro,hydrate:$o,isElement:ta,isFragment:Ko,isMemo:qo,isValidElement:en,lazy:Po,memo:Oo,render:Vo,startTransition:Bi,unmountComponentAtNode:Yo,unstable_batchedUpdates:Jo,useCallback:Di,useContext:yn,useDebugValue:Mi,useDeferredValue:Wi,useEffect:wt,useErrorBoundary:Zl,useId:Pi,useImperativeHandle:ki,useInsertionEffect:ji,useLayoutEffect:ar,useMemo:Jr,useReducer:wn,useRef:ct,useState:Ve,useSyncExternalStore:Vi,useTransition:Hi,version:uc},Symbol.toStringTag,{value:"Module"})),hc=t=>t;function pc(t,e=hc){const r=ce.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return ce.useDebugValue(r),r}const ra=t=>{const e=Wl(t),r=n=>pc(e,n);return Object.assign(r,e),r},mc=t=>t?ra(t):ra;function _c(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch(s){}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var B={};const gc=_c(fc);var tn={exports:{}},vc=tn.exports,na;function wc(){return na||(na=1,(function(t,e){(function(r,n){var i="1.0.41",s="",o="?",a="function",c="undefined",h="object",_="string",f="major",l="model",y="name",w="type",d="vendor",m="version",S="architecture",b="console",C="mobile",A="tablet",M="smarttv",x="wearable",P="embedded",me=500,_e="Amazon",ee="Apple",Q="ASUS",W="BlackBerry",X="Browser",de="Chrome",ue="Edge",we="Firefox",ye="Google",te="Honor",z="Huawei",U="Lenovo",Z="LG",re="Microsoft",Ie="Motorola",ne="Nvidia",V="OnePlus",J="Opera",Ke="OPPO",Xe="Samsung",ft="Sharp",nt="Sony",Ht="Xiaomi",ht="Zebra",Yt="Facebook",jt="Chromium OS",Ct="Mac OS",zt=" Browser",Xt=function(Y,ae){var j={};for(var ge in Y)ae[ge]&&ae[ge].length%2===0?j[ge]=ae[ge].concat(Y[ge]):j[ge]=Y[ge];return j},St=function(Y){for(var ae={},j=0;j<Y.length;j++)ae[Y[j].toUpperCase()]=Y[j];return ae},st=function(Y,ae){return typeof Y===_?v(ae).indexOf(v(Y))!==-1:!1},v=function(Y){return Y.toLowerCase()},I=function(Y){return typeof Y===_?Y.replace(/[^\d\.]/g,s).split(".")[0]:n},R=function(Y,ae){if(typeof Y===_)return Y=Y.replace(/^\s\s*/,s),typeof ae===c?Y:Y.substring(0,me)},F=function(Y,ae){for(var j=0,ge,qe,ke,he,q,Je;j<ae.length&&!q;){var Jt=ae[j],fr=ae[j+1];for(ge=qe=0;ge<Jt.length&&!q&&Jt[ge];)if(q=Jt[ge++].exec(Y),q)for(ke=0;ke<fr.length;ke++)Je=q[++qe],he=fr[ke],typeof he===h&&he.length>0?he.length===2?typeof he[1]==a?this[he[0]]=he[1].call(this,Je):this[he[0]]=he[1]:he.length===3?typeof he[1]===a&&!(he[1].exec&&he[1].test)?this[he[0]]=Je?he[1].call(this,Je,he[2]):n:this[he[0]]=Je?Je.replace(he[1],he[2]):n:he.length===4&&(this[he[0]]=Je?he[3].call(this,Je.replace(he[1],he[2])):n):this[he]=Je||n;j+=2}},k=function(Y,ae){for(var j in ae)if(typeof ae[j]===h&&ae[j].length>0){for(var ge=0;ge<ae[j].length;ge++)if(st(ae[j][ge],Y))return j===o?n:j}else if(st(ae[j],Y))return j===o?n:j;return ae.hasOwnProperty("*")?ae["*"]:Y},D={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},H={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ie={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[y,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[y,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[y,m],[/opios[\/ ]+([\w\.]+)/i],[m,[y,J+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[y,J+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[y,J]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[y,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[y,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[y,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[y,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[y,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[y,"UC"+X]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[y,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[y,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[y,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[y,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[y,"Smart Lenovo "+X]],[/(avast|avg)\/([\w\.]+)/i],[[y,/(.+)/,"$1 Secure "+X],m],[/\bfocus\/([\w\.]+)/i],[m,[y,we+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[y,J+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[y,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[y,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[y,J+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[y,"MIUI"+zt]],[/fxios\/([\w\.-]+)/i],[m,[y,we]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[y,"360"]],[/\b(qq)\/([\w\.]+)/i],[[y,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[y,/(.+)/,"$1"+zt],m],[/samsungbrowser\/([\w\.]+)/i],[m,[y,Xe+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[y,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[y,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[y,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[y],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,y],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[y,Yt],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[y,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[y,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[y,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[y,de+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[y,de+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[y,"Android "+X]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[y,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[y,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,y],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[y,[m,k,D]],[/(webkit|khtml)\/([\w\.]+)/i],[y,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[y,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[y,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[y,we+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[y,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[y,[m,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[S,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[S,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[S,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[S,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[S,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[S,/ower/,s,v]],[/ sun4\w[;\)]/i],[[S,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[S,v]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[d,Xe],[w,A]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,Xe],[w,C]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[d,ee],[w,C]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,ee],[w,A]],[/(macintosh);/i],[l,[d,ee]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,ft],[w,C]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[l,[d,te],[w,A]],[/honor([-\w ]+)[;\)]/i],[l,[d,te],[w,C]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[l,[d,z],[w,A]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[d,z],[w,C]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[l,/_/g," "],[d,Ht],[w,A]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[l,/_/g," "],[d,Ht],[w,C]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,Ke],[w,C]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[l,[d,k,{OnePlus:["304","403","203"],"*":Ke}],[w,A]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[w,C]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[w,C]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[d,Ie],[w,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,Ie],[w,A]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,Z],[w,A]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,Z],[w,C]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[l,[d,U],[w,A]],[/(nokia) (t[12][01])/i],[d,l,[w,A]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[l,/_/g," "],[w,C],[d,"Nokia"]],[/(pixel (c|tablet))\b/i],[l,[d,ye],[w,A]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[d,ye],[w,C]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[d,nt],[w,C]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,nt],[w,A]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,V],[w,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,_e],[w,A]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,_e],[w,C]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[w,A]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,W],[w,C]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,Q],[w,A]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,Q],[w,C]],[/(nexus 9)/i],[l,[d,"HTC"],[w,A]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[w,C]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[l,[d,"TCL"],[w,A]],[/(itel) ((\w+))/i],[[d,v],l,[w,k,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[w,A]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[w,C]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[w,C]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[d,"Energizer"],[w,C]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[d,"Cat"],[w,C]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[d,"Smartfren"],[w,C]],[/droid.+; (a(?:015|06[35]|142p?))/i],[l,[d,"Nothing"],[w,C]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[l,[d,"Archos"],[w,A]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[l,[d,"Archos"],[w,C]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[d,l,[w,A]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[d,l,[w,C]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,l,[w,A]],[/(surface duo)/i],[l,[d,re],[w,A]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[w,C]],[/(u304aa)/i],[l,[d,"AT&T"],[w,C]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[w,C]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[w,A]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[w,A]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[w,A]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[w,A]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[w,A]],[/\b(k88) b/i],[l,[d,"ZTE"],[w,A]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[w,C]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[w,C]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[w,A]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[w,A]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[w,A]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[w,A]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[w,A]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[w,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[w,C]],[/\b(ph-1) /i],[l,[d,"Essential"],[w,C]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[w,A]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[w,A]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[w,A]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[l,[d,ne],[w,A]],[/(sprint) (\w+)/i],[d,l,[w,C]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,re],[w,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,ht],[w,A]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,ht],[w,C]],[/smart-tv.+(samsung)/i],[d,[w,M]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,Xe],[w,M]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,Z],[w,M]],[/(apple) ?tv/i],[d,[l,ee+" TV"],[w,M]],[/crkey/i],[[l,de+"cast"],[d,ye],[w,M]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,_e],[w,M]],[/(shield \w+ tv)/i],[l,[d,ne],[w,M]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,ft],[w,M]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,nt],[w,M]],[/(mi(tv|box)-?\w+) bui/i],[l,[d,Ht],[w,M]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[w,M]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,R],[l,R],[w,M]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[l,[w,M]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[w,M]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[w,b]],[/droid.+; (shield)( bui|\))/i],[l,[d,ne],[w,b]],[/(playstation \w+)/i],[l,[d,nt],[w,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,re],[w,b]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[l,[d,Xe],[w,x]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[d,l,[w,x]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[l,[d,Ke],[w,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,ee],[w,x]],[/(opwwe\d{3})/i],[l,[d,V],[w,x]],[/(moto 360)/i],[l,[d,Ie],[w,x]],[/(smartwatch 3)/i],[l,[d,nt],[w,x]],[/(g watch r)/i],[l,[d,Z],[w,x]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,ht],[w,x]],[/droid.+; (glass) \d/i],[l,[d,ye],[w,x]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,l,[w,x]],[/; (quest( \d| pro)?)/i],[l,[d,Yt],[w,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[w,P]],[/(aeobc)\b/i],[l,[d,_e],[w,P]],[/(homepod).+mac os/i],[l,[d,ee],[w,P]],[/windows iot/i],[[w,P]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[w,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[w,A]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[w,A]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[w,C]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[y,ue+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[y,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[y,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[y,m],[/ladybird\//i],[[y,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,y]],os:[[/microsoft (windows) (vista|xp)/i],[y,m],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[y,[m,k,H]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,k,H],[y,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[y,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[y,Ct],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,y],[/(ubuntu) ([\w\.]+) like android/i],[[y,/(.+)/,"$1 Touch"],m],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[y,m],[/\(bb(10);/i],[m,[y,W]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[y,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[y,we+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[y,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[y,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[y,de+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[y,jt],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[y,m],[/(sunos) ?([\w\.\d]*)/i],[[y,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[y,m]]},K=function(Y,ae){if(typeof Y===h&&(ae=Y,Y=n),!(this instanceof K))return new K(Y,ae).getResult();var j=typeof r!==c&&r.navigator?r.navigator:n,ge=Y||(j&&j.userAgent?j.userAgent:s),qe=j&&j.userAgentData?j.userAgentData:n,ke=ae?Xt(ie,ae):ie,he=j&&j.userAgent==ge;return this.getBrowser=function(){var q={};return q[y]=n,q[m]=n,F.call(q,ge,ke.browser),q[f]=I(q[m]),he&&j&&j.brave&&typeof j.brave.isBrave==a&&(q[y]="Brave"),q},this.getCPU=function(){var q={};return q[S]=n,F.call(q,ge,ke.cpu),q},this.getDevice=function(){var q={};return q[d]=n,q[l]=n,q[w]=n,F.call(q,ge,ke.device),he&&!q[w]&&qe&&qe.mobile&&(q[w]=C),he&&q[l]=="Macintosh"&&j&&typeof j.standalone!==c&&j.maxTouchPoints&&j.maxTouchPoints>2&&(q[l]="iPad",q[w]=A),q},this.getEngine=function(){var q={};return q[y]=n,q[m]=n,F.call(q,ge,ke.engine),q},this.getOS=function(){var q={};return q[y]=n,q[m]=n,F.call(q,ge,ke.os),he&&!q[y]&&qe&&qe.platform&&qe.platform!="Unknown"&&(q[y]=qe.platform.replace(/chrome os/i,jt).replace(/macos/i,Ct)),q},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ge},this.setUA=function(q){return ge=typeof q===_&&q.length>me?R(q,me):q,this},this.setUA(ge),this};K.VERSION=i,K.BROWSER=St([y,m,f]),K.CPU=St([S]),K.DEVICE=St([l,d,w,b,C,M,A,x,P]),K.ENGINE=K.OS=St([y,m]),t.exports&&(e=t.exports=K),e.UAParser=K;var ve=typeof r!==c&&(r.jQuery||r.Zepto);if(ve&&!ve.ua){var We=new K;ve.ua=We.getResult(),ve.ua.get=function(){return We.getUA()},ve.ua.set=function(Y){We.setUA(Y);var ae=We.getResult();for(var j in ae)ve.ua[j]=ae[j]}}})(typeof window=="object"?window:vc)})(tn,tn.exports)),tn.exports}var ia;function yc(){if(ia)return B;ia=1,Object.defineProperty(B,"__esModule",{value:!0});function t(E){return E&&typeof E=="object"&&"default"in E?E.default:E}var e=gc,r=t(e),n=wc(),i=new n,s=i.getBrowser(),o=i.getCPU(),a=i.getDevice(),c=i.getEngine(),h=i.getOS(),_=i.getUA(),f=function(p){return i.setUA(p)},l=function(p){if(!p){console.error("No userAgent string was provided");return}var g=new n(p);return{UA:g,browser:g.getBrowser(),cpu:g.getCPU(),device:g.getDevice(),engine:g.getEngine(),os:g.getOS(),ua:g.getUA(),setUserAgent:function(N){return g.setUA(N)}}},y=Object.freeze({ClientUAInstance:i,browser:s,cpu:o,device:a,engine:c,os:h,ua:_,setUa:f,parseUserAgent:l});function w(E,p){var g=Object.keys(E);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(E);p&&(T=T.filter(function(N){return Object.getOwnPropertyDescriptor(E,N).enumerable})),g.push.apply(g,T)}return g}function d(E){for(var p=1;p<arguments.length;p++){var g=arguments[p]!=null?arguments[p]:{};p%2?w(Object(g),!0).forEach(function(T){A(E,T,g[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(g)):w(Object(g)).forEach(function(T){Object.defineProperty(E,T,Object.getOwnPropertyDescriptor(g,T))})}return E}function m(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(p){return typeof p}:m=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},m(E)}function S(E,p){if(!(E instanceof p))throw new TypeError("Cannot call a class as a function")}function b(E,p){for(var g=0;g<p.length;g++){var T=p[g];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(E,T.key,T)}}function C(E,p,g){return p&&b(E.prototype,p),E}function A(E,p,g){return p in E?Object.defineProperty(E,p,{value:g,enumerable:!0,configurable:!0,writable:!0}):E[p]=g,E}function M(){return M=Object.assign||function(E){for(var p=1;p<arguments.length;p++){var g=arguments[p];for(var T in g)Object.prototype.hasOwnProperty.call(g,T)&&(E[T]=g[T])}return E},M.apply(this,arguments)}function x(E,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(p&&p.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),p&&me(E,p)}function P(E){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},P(E)}function me(E,p){return me=Object.setPrototypeOf||function(T,N){return T.__proto__=N,T},me(E,p)}function _e(E,p){if(E==null)return{};var g={},T=Object.keys(E),N,pe;for(pe=0;pe<T.length;pe++)N=T[pe],!(p.indexOf(N)>=0)&&(g[N]=E[N]);return g}function ee(E,p){if(E==null)return{};var g=_e(E,p),T,N;if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(E);for(N=0;N<pe.length;N++)T=pe[N],!(p.indexOf(T)>=0)&&Object.prototype.propertyIsEnumerable.call(E,T)&&(g[T]=E[T])}return g}function Q(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function W(E,p){if(p&&(typeof p=="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q(E)}function X(E,p){return de(E)||ue(E,p)||we(E,p)||te()}function de(E){if(Array.isArray(E))return E}function ue(E,p){var g=E==null?null:typeof Symbol!="undefined"&&E[Symbol.iterator]||E["@@iterator"];if(g!=null){var T=[],N=!0,pe=!1,De,et;try{for(g=g.call(E);!(N=(De=g.next()).done)&&(T.push(De.value),!(p&&T.length===p));N=!0);}catch(ci){pe=!0,et=ci}finally{try{!N&&g.return!=null&&g.return()}finally{if(pe)throw et}}return T}}function we(E,p){if(E){if(typeof E=="string")return ye(E,p);var g=Object.prototype.toString.call(E).slice(8,-1);if(g==="Object"&&E.constructor&&(g=E.constructor.name),g==="Map"||g==="Set")return Array.from(E);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return ye(E,p)}}function ye(E,p){(p==null||p>E.length)&&(p=E.length);for(var g=0,T=new Array(p);g<p;g++)T[g]=E[g];return T}function te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
90
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},U={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},Z={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},re={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Ie=function(p){switch(p){case z.Mobile:return{isMobile:!0};case z.Tablet:return{isTablet:!0};case z.SmartTv:return{isSmartTV:!0};case z.Console:return{isConsole:!0};case z.Wearable:return{isWearable:!0};case z.Browser:return{isBrowser:!0};case z.Embedded:return{isEmbedded:!0};default:return re}},ne=function(p){return f(p)},V=function(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return p||g},J=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},Ke=function(p){var g=J();return g&&g.platform&&(g.platform.indexOf(p)!==-1||g.platform==="MacIntel"&&g.maxTouchPoints>1&&!window.MSStream)},Xe=function(p,g,T,N,pe){return{isBrowser:p,browserMajorVersion:V(g.major),browserFullVersion:V(g.version),browserName:V(g.name),engineName:V(T.name),engineVersion:V(T.version),osName:V(N.name),osVersion:V(N.version),userAgent:V(pe)}},ft=function(p,g,T,N){return d({},p,{vendor:V(g.vendor),model:V(g.model),os:V(T.name),osVersion:V(T.version),ua:V(N)})},nt=function(p,g,T,N){return{isSmartTV:p,engineName:V(g.name),engineVersion:V(g.version),osName:V(T.name),osVersion:V(T.version),userAgent:V(N)}},Ht=function(p,g,T,N){return{isConsole:p,engineName:V(g.name),engineVersion:V(g.version),osName:V(T.name),osVersion:V(T.version),userAgent:V(N)}},ht=function(p,g,T,N){return{isWearable:p,engineName:V(g.name),engineVersion:V(g.version),osName:V(T.name),osVersion:V(T.version),userAgent:V(N)}},Yt=function(p,g,T,N,pe){return{isEmbedded:p,vendor:V(g.vendor),model:V(g.model),engineName:V(T.name),engineVersion:V(T.version),osName:V(N.name),osVersion:V(N.version),userAgent:V(pe)}};function jt(E){var p=E?l(E):y,g=p.device,T=p.browser,N=p.engine,pe=p.os,De=p.ua,et=Ie(g.type),ci=et.isBrowser,e1=et.isMobile,t1=et.isTablet,ol=et.isSmartTV,al=et.isConsole,ll=et.isWearable,cl=et.isEmbedded;if(ci)return Xe(ci,T,N,pe,De);if(ol)return nt(ol,N,pe,De);if(al)return Ht(al,N,pe,De);if(e1||t1)return ft(et,g,pe,De);if(ll)return ht(ll,N,pe,De);if(cl)return Yt(cl,g,N,pe,De)}var Ct=function(p){var g=p.type;return g===z.Mobile},zt=function(p){var g=p.type;return g===z.Tablet},Xt=function(p){var g=p.type;return g===z.Mobile||g===z.Tablet},St=function(p){var g=p.type;return g===z.SmartTv},st=function(p){var g=p.type;return g===z.Browser},v=function(p){var g=p.type;return g===z.Wearable},I=function(p){var g=p.type;return g===z.Console},R=function(p){var g=p.type;return g===z.Embedded},F=function(p){var g=p.vendor;return V(g)},k=function(p){var g=p.model;return V(g)},D=function(p){var g=p.type;return V(g,"browser")},H=function(p){var g=p.name;return g===Z.Android},ie=function(p){var g=p.name;return g===Z.Windows},K=function(p){var g=p.name;return g===Z.MAC_OS},ve=function(p){var g=p.name;return g===Z.WindowsPhone},We=function(p){var g=p.name;return g===Z.IOS},Y=function(p){var g=p.version;return V(g)},ae=function(p){var g=p.name;return V(g)},j=function(p){var g=p.name;return g===U.Chrome},ge=function(p){var g=p.name;return g===U.Firefox},qe=function(p){var g=p.name;return g===U.Chromium},ke=function(p){var g=p.name;return g===U.Edge},he=function(p){var g=p.name;return g===U.Yandex},q=function(p){var g=p.name;return g===U.Safari||g===U.MobileSafari},Je=function(p){var g=p.name;return g===U.MobileSafari},Jt=function(p){var g=p.name;return g===U.Opera},fr=function(p){var g=p.name;return g===U.InternetExplorer||g===U.Ie},Ln=function(p){var g=p.name;return g===U.MIUI},Fn=function(p){var g=p.name;return g===U.SamsungBrowser},Vn=function(p){var g=p.version;return V(g)},$n=function(p){var g=p.major;return V(g)},Bn=function(p){var g=p.name;return V(g)},Wn=function(p){var g=p.name;return V(g)},Hn=function(p){var g=p.version;return V(g)},jn=function(){var p=J(),g=p&&p.userAgent&&p.userAgent.toLowerCase();return typeof g=="string"?/electron/.test(g):!1},Qt=function(p){return typeof p=="string"&&p.indexOf("Edg/")!==-1},zn=function(){var p=J();return p&&(/iPad|iPhone|iPod/.test(p.platform)||p.platform==="MacIntel"&&p.maxTouchPoints>1)&&!window.MSStream},ot=function(){return Ke("iPad")},Gn=function(){return Ke("iPhone")},Kn=function(){return Ke("iPod")},qn=function(p){return V(p)};function Zn(E){var p=E||y,g=p.device,T=p.browser,N=p.os,pe=p.engine,De=p.ua;return{isSmartTV:St(g),isConsole:I(g),isWearable:v(g),isEmbedded:R(g),isMobileSafari:Je(T)||ot(),isChromium:qe(T),isMobile:Xt(g)||ot(),isMobileOnly:Ct(g),isTablet:zt(g)||ot(),isBrowser:st(g),isDesktop:st(g),isAndroid:H(N),isWinPhone:ve(N),isIOS:We(N)||ot(),isChrome:j(T),isFirefox:ge(T),isSafari:q(T),isOpera:Jt(T),isIE:fr(T),osVersion:Y(N),osName:ae(N),fullBrowserVersion:Vn(T),browserVersion:$n(T),browserName:Bn(T),mobileVendor:F(g),mobileModel:k(g),engineName:Wn(pe),engineVersion:Hn(pe),getUA:qn(De),isEdge:ke(T)||Qt(De),isYandex:he(T),deviceType:D(g),isIOS13:zn(),isIPad13:ot(),isIPhone13:Gn(),isIPod13:Kn(),isElectron:jn(),isEdgeChromium:Qt(De),isLegacyEdge:ke(T)&&!Qt(De),isWindows:ie(N),isMacOs:K(N),isMIUI:Ln(T),isSamsungBrowser:Fn(T)}}var Yn=St(a),Xn=I(a),Jn=v(a),vs=R(a),ws=Je(s)||ot(),ys=qe(s),Mr=Xt(a)||ot(),Qn=Ct(a),ei=zt(a)||ot(),ti=st(a),bs=st(a),ri=H(h),ni=ve(h),ii=We(h)||ot(),Cs=j(s),Ss=ge(s),Es=q(s),Is=Jt(s),si=fr(s),Os=Y(h),Ts=ae(h),Rs=Vn(s),As=$n(s),xs=Bn(s),Ns=F(a),ks=k(a),Ds=Wn(c),Ms=Hn(c),Ps=qn(_),Et=ke(s)||Qt(_),Us=he(s),se=D(a),pt=zn(),Pr=ot(),oi=Gn(),ai=Kn(),li=jn(),ku=Qt(_),Du=ke(s)&&!Qt(_),Mu=ie(h),Pu=K(h),Uu=Ln(s),Lu=Fn(s),Fu=function(p){if(!p||typeof p!="string"){console.error("No valid user agent string was provided");return}var g=l(p),T=g.device,N=g.browser,pe=g.os,De=g.engine,et=g.ua;return Zn({device:T,browser:N,os:pe,engine:De,ua:et})},Vu=function(p){var g=p.renderWithFragment,T=p.children,N=ee(p,["renderWithFragment","children"]);return ri?g?r.createElement(e.Fragment,null,T):r.createElement("div",N,T):null},$u=function(p){var g=p.renderWithFragment,T=p.children,N=ee(p,["renderWithFragment","children"]);return ti?g?r.createElement(e.Fragment,null,T):r.createElement("div",N,T):null},Bu=function(p){var g=p.renderWithFragment,T=p.children,N=ee(p,["renderWithFragment","children"]);return si?g?r.createElement(e.Fragment,null,T):r.createElement("div",N,T):null},Wu=function(p){var g=p.renderWithFragment,T=p.children,N=ee(p,["renderWithFragment","children"]);return ii?g?r.createElement(e.Fragment,null,T):r.createElement("div",N,T):null},Hu=function(p){var g=p.renderWithFragment,T=p.children,N=ee(p,["renderWithFragment","children"]);return Mr?g?r.createElement(e.Fragment,null,T):r.createElement("div",N,T):null},ju=function(p){var g=p.renderWithFragment,T=p.children,N=ee(p,["renderWithFragment","children"]);return ei?g?r.createElement(e.Fragment,null,T):r.createElement("div",N,T):null},zu=function(p){var g=p.renderWithFragment,T=p.children,N=ee(p,["renderWithFragment","children"]);return ni?g?r.createElement(e.Fragment,null,T):r.createElement("div",N,T):null},Gu=function(p){var g=p.renderWithFragment,T=p.children;p.viewClassName,p.style;var N=ee(p,["renderWithFragment","children","viewClassName","style"]);return Qn?g?r.createElement(e.Fragment,null,T):r.createElement("div",N,T):null},Ku=function(p){var g=p.renderWithFragment,T=p.children,N=ee(p,["renderWithFragment","children"]);return Yn?g?r.createElement(e.Fragment,null,T):r.createElement("div",N,T):null},qu=function(p){var g=p.renderWithFragment,T=p.children,N=ee(p,["renderWithFragment","children"]);return Xn?g?r.createElement(e.Fragment,null,T):r.createElement("div",N,T):null},Zu=function(p){var g=p.renderWithFragment,T=p.children,N=ee(p,["renderWithFragment","children"]);return Jn?g?r.createElement(e.Fragment,null,T):r.createElement("div",N,T):null},Yu=function(p){var g=p.renderWithFragment,T=p.children;p.viewClassName,p.style;var N=p.condition,pe=ee(p,["renderWithFragment","children","viewClassName","style","condition"]);return N?g?r.createElement(e.Fragment,null,T):r.createElement("div",pe,T):null};function Xu(E){return(function(p){x(g,p);function g(T){var N;return S(this,g),N=W(this,P(g).call(this,T)),N.isEventListenerAdded=!1,N.handleOrientationChange=N.handleOrientationChange.bind(Q(N)),N.onOrientationChange=N.onOrientationChange.bind(Q(N)),N.onPageLoad=N.onPageLoad.bind(Q(N)),N.state={isLandscape:!1,isPortrait:!1},N}return C(g,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var N=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:N===0,isLandscape:N===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window=="undefined"?"undefined":m(window))!==void 0&&Mr&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return r.createElement(E,M({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),g})(r.Component)}function Ju(){var E=e.useState(function(){var pe=window.innerWidth>window.innerHeight?90:0;return{isPortrait:pe===0,isLandscape:pe===90,orientation:pe===0?"portrait":"landscape"}}),p=X(E,2),g=p[0],T=p[1],N=e.useCallback(function(){var pe=window.innerWidth>window.innerHeight?90:0,De={isPortrait:pe===0,isLandscape:pe===90,orientation:pe===0?"portrait":"landscape"};g.orientation!==De.orientation&&T(De)},[g.orientation]);return e.useEffect(function(){return(typeof window=="undefined"?"undefined":m(window))!==void 0&&Mr&&(N(),window.addEventListener("load",N,!1),window.addEventListener("resize",N,!1)),function(){window.removeEventListener("resize",N,!1),window.removeEventListener("load",N,!1)}},[N]),g}function sl(E){var p=E||window.navigator.userAgent;return l(p)}function Qu(E){var p=E||window.navigator.userAgent,g=sl(p),T=Zn(g);return[T,g]}return B.AndroidView=Vu,B.BrowserTypes=U,B.BrowserView=$u,B.ConsoleView=qu,B.CustomView=Yu,B.IEView=Bu,B.IOSView=Wu,B.MobileOnlyView=Gu,B.MobileView=Hu,B.OsTypes=Z,B.SmartTVView=Ku,B.TabletView=ju,B.WearableView=Zu,B.WinPhoneView=zu,B.browserName=xs,B.browserVersion=As,B.deviceDetect=jt,B.deviceType=se,B.engineName=Ds,B.engineVersion=Ms,B.fullBrowserVersion=Rs,B.getSelectorsByUserAgent=Fu,B.getUA=Ps,B.isAndroid=ri,B.isBrowser=ti,B.isChrome=Cs,B.isChromium=ys,B.isConsole=Xn,B.isDesktop=bs,B.isEdge=Et,B.isEdgeChromium=ku,B.isElectron=li,B.isEmbedded=vs,B.isFirefox=Ss,B.isIE=si,B.isIOS=ii,B.isIOS13=pt,B.isIPad13=Pr,B.isIPhone13=oi,B.isIPod13=ai,B.isLegacyEdge=Du,B.isMIUI=Uu,B.isMacOs=Pu,B.isMobile=Mr,B.isMobileOnly=Qn,B.isMobileSafari=ws,B.isOpera=Is,B.isSafari=Es,B.isSamsungBrowser=Lu,B.isSmartTV=Yn,B.isTablet=ei,B.isWearable=Jn,B.isWinPhone=ni,B.isWindows=Mu,B.isYandex=Us,B.mobileModel=ks,B.mobileVendor=Ns,B.osName=Ts,B.osVersion=Os,B.parseUserAgent=l,B.setUserAgent=ne,B.useDeviceData=sl,B.useDeviceSelectors=Qu,B.useMobileOrientation=Ju,B.withOrientationChange=Xu,B}var Zt=yc();const bc=(t,e)=>Gi(t,e),Gi=(t,e)=>{const r=Ki(t,e);for(const n in r)if(Object.prototype.hasOwnProperty.call(r,n)){const i=r[n];if(typeof i=="object"&&!Array.isArray(i))r[n]=Ki(i,e);else if(Array.isArray(i)){const s=i.map(o=>typeof o=="object"?Gi(o,e):o);r[n]=s}}return r},Ki=(t,e)=>{const r=Cc(t),n=t.layout;if(!n||n.length===0)return r;let i=null;if(n.forEach(s=>{const o=e[s];i?o&&Sc(o,i):i=o}),i){const s=Ki(i,e);for(const o in s)if(Object.prototype.hasOwnProperty.call(s,o)){const a=s[o];Object.prototype.hasOwnProperty.call(r,o)||(r[o]=a)}}return Gi(r,e)},Cc=t=>{const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&r.toLowerCase()!=="layout"&&(e[r]=t[r]);return e},Sc=(t,e)=>{for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},$e=[];for(let t=0;t<256;++t)$e.push((t+256).toString(16).slice(1));function Ec(t,e=0){return($e[t[e+0]]+$e[t[e+1]]+$e[t[e+2]]+$e[t[e+3]]+"-"+$e[t[e+4]]+$e[t[e+5]]+"-"+$e[t[e+6]]+$e[t[e+7]]+"-"+$e[t[e+8]]+$e[t[e+9]]+"-"+$e[t[e+10]]+$e[t[e+11]]+$e[t[e+12]]+$e[t[e+13]]+$e[t[e+14]]+$e[t[e+15]]).toLowerCase()}let qi;const Ic=new Uint8Array(16);function Oc(){if(!qi){if(typeof crypto=="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");qi=crypto.getRandomValues.bind(crypto)}return qi(Ic)}const sa={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Tc(t,e,r){var i,s,o;t=t||{};const n=(o=(s=t.random)!=null?s:(i=t.rng)==null?void 0:i.call(t))!=null?o:Oc();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Ec(n)}function Rc(t,e,r){return sa.randomUUID&&!t?sa.randomUUID():Tc(t)}function Zi(t){try{return JSON.parse(JSON.stringify(t))}catch(e){return console.warn("Failed to copy object:",e),null}}const oa=(t,e)=>{if(!t||!e)return null;let r=null;return r=Zi(t),r&&(r=bc(r,e)),r};function Ac(t){return $(this,null,function*(){return new Promise(e=>setTimeout(e,t))})}function aa(i,s){return $(this,arguments,function*(t,e,r=Fl,n=Vl){let o=0;for(;o<r;){const a=yield t();if(a!==null)return a;o++,o<r&&(yield Ac(n))}return e()})}const xc=(t,e,r)=>{const n=t.reduce((s,o)=>(s.push(...o.supportedTemplates),s),[]),i=e.find(s=>s.id===r);return n.includes(i==null?void 0:i.client.templateId)},Nc=(t,e)=>{if(!t||!e)return!1;const r=t.find(i=>i.id===e);return(r==null?void 0:r.type)!=="PROCESSING"},kc=(t,e)=>{const r=t.reduce((o,a)=>(o.push(...a.supportedTemplates),o),[]),n=Array.from(new Set(e.filter(o=>!o.final&&Ll.includes(o.type)).map(o=>o.client.templateId)));function i(o,a){const c=new Set(o);return a.filter(h=>!c.has(h))}const s=i(r,n);return{isAllTemplatesSupported:s.length===0,unsupportedSteps:s.length>0?s:void 0}},Ir={setAuthTokenToLs:(t,e,r,n,i)=>{const s=localStorage.getItem(Kr),o=s?JSON.parse(s):{},a={authToken:t,tokenExpiredIn:i,workflowId:n,sessionId:r};o[e]=a,localStorage.setItem(Kr,JSON.stringify(o))},getAuthTokenLs:()=>{const t=localStorage.getItem(Kr);if(!t)return null;try{const e=JSON.parse(t);return e&&typeof e=="object"&&!Array.isArray(e)?e:null}catch(e){return null}},removeAuthTokenLs:t=>{if(!t)return!1;const e=localStorage.getItem(Kr);if(!e)return!1;try{const r=JSON.parse(e);return Object.prototype.hasOwnProperty.call(r,t)?(delete r[t],localStorage.setItem(Kr,JSON.stringify(r)),!0):!1}catch(r){return!1}}},Yi=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Xi=t=>/^[^:{}\s]+:[^:{}\s]+$/.test(t),Ji={setSessionIdWorkflowIdToLs:(t,e)=>{const r=localStorage.getItem(ir);let n={};if(r)try{const i=JSON.parse(r);Yi(i)&&(n=i)}catch(i){if(Xi(r)){const[s,o]=r.split(":");s&&o&&(n={[o]:s})}}n[e]=t,localStorage.setItem(ir,JSON.stringify(n))},getSessionIdWorkflowIdFromLS:()=>{const t=localStorage.getItem(ir);if(!t)return null;try{const e=JSON.parse(t);return Yi(e)?e:null}catch(e){if(Xi(t)){const[r,n]=t.split(":");if(r&&n)return{[n]:r}}return null}},removeSessionIdWorkflowIdFromLS:({workflowId:t=""})=>{const e=localStorage.getItem(ir);if(!e)return!1;if(!t)return localStorage.removeItem(ir),!0;try{const r=JSON.parse(e);if(!Yi(r))return!1;const n=r;return Object.prototype.hasOwnProperty.call(n,t)?(delete n[t],localStorage.setItem(ir,JSON.stringify(n)),!0):!1}catch(r){if(Xi(e)){const[,n]=e.split(":");return n===t?(localStorage.removeItem(ir),!0):!1}return!1}}},Dc=t=>{var n;let e;const r=Rc();try{e=(n=window.localStorage.getItem(t))!=null?n:r,window.localStorage.setItem(t,e)}catch(i){e=r}return e};function Mc(t){return Object.prototype.toString.call(t)==="[object Object]"&&Object.keys(t).length>0}function Pc(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function Uc(){return typeof document=="undefined"?null:document.documentElement.getAttribute("lang")||null}function Lc(){return typeof navigator!="undefined"?navigator.language:null}const Fc=t=>{const e=Bl,r=typeof t=="string"?t:null,n=Uc(),i=Lc();return r||n||i||e},Vc=t=>{try{return new URL(t).searchParams.get("sessionId")}catch(e){return null}};function la(t){return!("error"in t)}function Qi(t){try{let e=t;!t.includes("://")&&t.includes(".")&&(e=`http://${t}`);const r=new URL(e),n=r.hostname,i=r.protocol==="https:",s=r.port?parseInt(r.port,10):void 0;return{host:n,isSecure:i,port:s}}catch(e){return null}}const ca=()=>{if(typeof window=="undefined")return"SERVER_SIDE_RENDERING";if(!document.referrer)return window.location.origin;try{return new URL(document.referrer).origin}catch(t){return window.location.origin}},es=t=>({deviceId:Dc($l),metadata:{platform:"browser",osVersion:`${Zt.osVersion}`,hostAppId:ca(),host:ca(),name:navigator.userAgent,deviceModel:`${Zt.osName}/${Zt.osVersion} ${Zt.browserName}/${Zt.fullBrowserVersion}`,hostAppVersion:`${Zt.browserName}/${Zt.fullBrowserVersion}`},deviceType:"browser",heartbeatCadence:2,serial:"",macAddress:""}),da={apiKeyAuthTokenCollection:{},sessionProperties:[],currentSessionData:null,sessionRestoreMode:!1,processingTransformedTemplate:null,nonce:void 0,currentStepId:null,layout:null,currentScreenConfig:null,workflowId:null,modulesConfig:{},workflow:null,externalModules:[],serviceToken:void 0,startConfig:{},listener:()=>{}},$c=(t,e)=>G(O({},da),{setApiKeyAuthTokenCollection:(r,n,i)=>{t({apiKeyAuthTokenCollection:{authToken:n,apiKey:r,tokenExpiredIn:i}})},setSessionProperties:r=>{t({sessionProperties:r})},setServiceSessionToken:r=>{t({serviceToken:r})},setListener:r=>{t({listener:r})},getCurrentSessionDataLs:()=>{const r=Ji.getSessionIdWorkflowIdFromLS(),n=e().workflowId,s=r&&r[n];return n&&s?{workflowId:n,sessionId:s}:null},setCurrentSessionDataLsAndStore:r=>{Ji.setSessionIdWorkflowIdToLs(r.sessionId,r.workflowId),t(()=>({currentSessionData:r}))},removeCurrentSessionDataLsAndStore:()=>{const r=e().startConfig,n="apiKey"in r&&typeof r.apiKey=="string"?r.apiKey:"",i=e().workflowId;n?Ir.removeAuthTokenLs(n):Ji.removeSessionIdWorkflowIdFromLS({workflowId:i}),t(()=>({currentSessionData:null})),t({_sessionIdFromUrl:null})},getCurrentSessionId(){const r=e().currentSessionData;return r?r.sessionId:null},setWorkflowId:r=>{t(()=>({workflowId:r}))},setWorkflow:r=>{t(()=>({workflow:r}))},setLayout:r=>{t(()=>({layout:r}))},setCurrentStepId:r=>{t(()=>({currentStepId:r}))},setSessionRestoreMode:r=>{t(()=>({sessionRestoreMode:r}))},setNonce:r=>{t(()=>({nonce:r}))},getNonce:()=>e().nonce,resetProps:()=>t(()=>O({},da)),setStartConfig:r=>{t(()=>({startConfig:r}))}});class be{constructor({errorCode:e,errorCodeKey:r,message:n,underlyingError:i,underlyingBaseError:s,domain:o,module:a,errorEnumName:c,shortDomainCode:h}){this.errorCode=e,this.errorCodeKey=r,this.message=n,this.underlyingError=i,this.underlyingBaseError=s,this.module=a,this.domain=o,this.errorEnumName=c,this.shortDomainCode=h}static getErrorKey(e,r){const n=Object.keys(r).find(i=>r[i]===e);if(!n)throw new Error(`Invalid errorCode: ${e} in enum`);return n}get lastUnderlyingError(){let e=this.underlyingBaseError;for(;(e==null?void 0:e.underlyingBaseError)instanceof be;)e=e.underlyingBaseError;return e==null?void 0:e.underlyingError}toObject(){const e={errorCode:this.errorCode,errorCodeKey:this.errorCodeKey,errorEnumName:this.errorEnumName,message:this.message,module:this.module,underlyingError:this.underlyingError,lastUnderlineError:this.lastUnderlyingError};return this.underlyingBaseError&&this.underlyingBaseError instanceof be&&(e.underlyingBaseError=this.underlyingBaseError.toObject()),e}get shortChain(){let e=`${this.shortDomainCode}:${this.errorCode}${this.underlyingError?"-"+this.underlyingError:""}`;return this.underlyingBaseError instanceof be&&(e+=`-${this.underlyingBaseError.shortChain}`),e}get fullChain(){let e=`${this.module}.${this.domain}:${this.errorCodeKey}${this.underlyingError?"-"+this.underlyingError:""}`;return this.underlyingBaseError instanceof be&&(e+=`-${this.underlyingBaseError.fullChain}`),e}}class ua extends HTMLElement{}function fa(t,e){if(e.displayName?console.log(`Register module: ${e.displayName}`):console.error('Missed "displayName" when register module'),e.getSupportedTemplates&&typeof e.getSupportedTemplates=="function"){const r=e.getSupportedTemplates();console.log(`${e==null?void 0:e.displayName} supported templates: ${r.join(", ")}`)}else console.error('Missed "getSupportedTemplates" method when register module');if(e.initialize&&typeof e.initialize=="function"||console.error(`${e==null?void 0:e.displayName} "initialize" method was not implemented`),e.deinitialize&&typeof e.deinitialize=="function"||console.error(`${e==null?void 0:e.displayName} "deinitialize" method was not implemented`),e.isReady&&typeof e.isReady=="function"||console.error(`${e==null?void 0:e.displayName} "isReady" method was not implemented`),e.getIdentifier&&typeof e.getIdentifier=="function"){const r=e.getIdentifier();console.log(`Module id: ${r}`)}else console.error('Missed "getIdentifier" when register module');customElements.get(e.getIdentifier())?console.log(`Module ${t} has already registered`):customElements.define(t,e),console.log("-------")}const kt=class kt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,zr);super({errorCode:e,errorCodeKey:s,errorEnumName:kt.ERROR_ENUM_NAME,module:kt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:kt.ERROR_ENUM_NAME,shortDomainCode:kt.SHORT_CODE})}};kt.MODULE=_t,kt.ERROR_ENUM_NAME="InitializeError",kt.SHORT_CODE="IN";let Sn=kt;const Dt=class Dt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,_n);super({errorCode:e,errorCodeKey:s,errorEnumName:Dt.ERROR_ENUM_NAME,module:Dt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Dt.ERROR_ENUM_NAME,shortDomainCode:Dt.SHORT_CODE})}};Dt.MODULE=_t,Dt.ERROR_ENUM_NAME="TokenInitializeError",Dt.SHORT_CODE="TI";let En=Dt;const Mt=class Mt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,mt);super({errorCode:e,errorCodeKey:s,errorEnumName:Mt.ERROR_ENUM_NAME,module:Mt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Mt.ERROR_ENUM_NAME,shortDomainCode:Mt.SHORT_CODE})}};Mt.MODULE=_t,Mt.ERROR_ENUM_NAME="PrepareWorkflowError",Mt.SHORT_CODE="PW";let At=Mt;const Pt=class Pt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,Le);super({errorCode:e,errorCodeKey:s,errorEnumName:Pt.ERROR_ENUM_NAME,module:Pt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Pt.ERROR_ENUM_NAME,shortDomainCode:Pt.SHORT_CODE})}};Pt.MODULE=_t,Pt.ERROR_ENUM_NAME="ConfigureError",Pt.SHORT_CODE="CFG";let Be=Pt;const Ut=class Ut extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,Fe);super({errorCode:e,errorCodeKey:s,errorEnumName:Ut.ERROR_ENUM_NAME,module:Ut.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Ut.ERROR_ENUM_NAME,shortDomainCode:Ut.SHORT_CODE})}};Ut.MODULE=_t,Ut.ERROR_ENUM_NAME="WorkflowError",Ut.SHORT_CODE="SC";let je=Ut;const Lt=class Lt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,Ot);super({errorCode:e,errorCodeKey:s,errorEnumName:Lt.ERROR_ENUM_NAME,module:Lt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Lt.ERROR_ENUM_NAME,shortDomainCode:Lt.SHORT_CODE})}};Lt.MODULE=_t,Lt.ERROR_ENUM_NAME="ConnectionError",Lt.SHORT_CODE="CO";let rn=Lt;const Ft=class Ft extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,it);super({errorCode:e,errorCodeKey:s,errorEnumName:Ft.ERROR_ENUM_NAME,module:Ft.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Ft.ERROR_ENUM_NAME,shortDomainCode:Ft.SHORT_CODE})}};Ft.MODULE=_t,Ft.ERROR_ENUM_NAME="SessionError",Ft.SHORT_CODE="SE";let nn=Ft;const Vt=class Vt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,qt);super({errorCode:e,errorCodeKey:s,errorEnumName:Vt.ERROR_ENUM_NAME,module:Vt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Vt.ERROR_ENUM_NAME,shortDomainCode:Vt.SHORT_CODE})}};Vt.MODULE=_t,Vt.ERROR_ENUM_NAME="StartSessionError",Vt.SHORT_CODE="ST";let lr=Vt;const $t=class $t extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,Gr);super({errorCode:e,errorCodeKey:s,errorEnumName:$t.ERROR_ENUM_NAME,module:$t.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:$t.ERROR_ENUM_NAME,shortDomainCode:$t.SHORT_CODE})}};$t.MODULE=_t,$t.ERROR_ENUM_NAME="DeinitializationError",$t.SHORT_CODE="DE";let In=$t;const Bt=class Bt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,at);super({errorCode:e,errorCodeKey:s,errorEnumName:Bt.ERROR_ENUM_NAME,module:Bt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Bt.ERROR_ENUM_NAME,shortDomainCode:Bt.SHORT_CODE})}};Bt.MODULE=_t,Bt.ERROR_ENUM_NAME="WorkflowPlatformError",Bt.SHORT_CODE="WPE";let On=Bt;class Or{constructor(){this.webSocket=null,this.callbacks=new Set,this.connected=!1}static getInstance(){return Or.instance||(Or.instance=new Or),Or.instance}isConnected(){return this.connected}connect({host:e,isSecure:r=!0,token:n,port:i}){return this.connected?Promise.resolve():new Promise(s=>{const o=`ws${r?"s":""}://${e}${i?`:${i}`:""}/ws/device?Authorization=Connection%20${n}`;this.webSocket=new WebSocket(o),this.webSocket.onopen=()=>{this.connected=!0,s()},this.webSocket.onerror=()=>s(),this.webSocket.onmessage=a=>{this.callbacks.forEach(c=>c(a.data))},this.webSocket.onclose=a=>{this.connected=!1,this.webSocket=null,console.log("Socket connection closed",a)}})}onMessage(e){this.callbacks.add(e)}clearSubscriptions(){this.callbacks.clear()}close(){var e;(e=this.webSocket)==null||e.close(),this.webSocket=null,this.connected=!1,this.callbacks.clear()}}const cr=Or.getInstance();var Bc=0;function u(t,e,r,n,i,s){e||(e={});var o,a,c=e;if("ref"in c)for(a in c={},e)a=="ref"?o=e[a]:c[a]=e[a];var h={type:t,props:c,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Bc,__i:-1,__u:0,__source:i,__self:s};if(typeof t=="function"&&(o=t.defaultProps))for(a in o)c[a]===void 0&&(c[a]=o[a]);return oe.vnode&&oe.vnode(h),h}const ha=xi(void 0),pa=({perform:t,children:e})=>u(ha.Provider,{value:{perform:t},children:e}),Tr=()=>{const t=yn(ha);if(!t)throw new Error("usePerform must be used within a PerformProvider");return t},Wc={width:"86px",height:"86px",flex:"0 0 86px",marginBottom:"16px",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center"},yt={INFO:"INFO",INFO_DETAILS:"INFO_DETAILS",STATUS:"STATUS",PROGRESS:"PROGRESS",QUESTIONS:"QUESTIONS",CAMERA:"CAMERA",GALLERY:"GALLERY"},Tn={LEFT:"LEFT",CENTER:"CENTER",RIGHT:"RIGHT"},Rn={ASPECT_FILL:"ASPECT_FILL",ASPECT_FIT:"ASPECT_FIT",FILL:"FILL"},Rr={TEXT_EXPANDABLE:"text_expandable",TEXT_SINGLE_LINE:"text_single_line",SELECTOR_OPTIONS:"selector_options",SELECTOR_BUTTONS:"selector_buttons",SELECTOR_DROPDOWN:"selector_dropdown",MULTI_SELECTOR_DROPDOWN:"multi_selector_dropdown"},An={FREE_TEXT:"FREE_TEXT",EMAIL:"EMAIL",NUMBER:"NUMBER",SECURE:"SECURE"},sn="#005fcc",xn="idv-gui",Nn={DECODING_FAILED:"DECODING_FAILED"},ts={text:"text",selector:"selector",multiSelector:"multiSelector"},ma={NOT_EMPTY:"notEmpty",REGEX:"regex"};function _a(t){return t===Tn.CENTER?"center":t===Tn.RIGHT?"right":"left"}function rs(t){if(typeof t=="object"&&t!==null)for(const e in t)typeof t[e]=="object"?rs(t[e]):t[e]==="true"?t[e]=!0:t[e]==="false"&&(t[e]=!1);return t}function Hc(t){return Object.entries(t).map(([e,r])=>({id:e,value:typeof r=="string"?r.trim():r})).filter(e=>!!e.value)}const jc=t=>Array.isArray(t)?t.length===0:t===0?!1:!t;function le(t){return t&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)?t:void 0}const zc=(t,e)=>t.reduce((r,n)=>{var i,s,o;if(n.answerType===ts.text&&(i=n.property)!=null&&i.id){const a=e.find(c=>c.name===n.property.id);if(a!=null&&a.string)return G(O({},r),{[n.id]:a.string})}if(n.answerType===ts.selector&&(s=n.property)!=null&&s.id){const a=e.find(c=>c.name===n.property.id);if(a!=null&&a.string)return G(O({},r),{[n.id]:a.string})}if(n.answerType===ts.multiSelector&&(o=n.property)!=null&&o.id){const a=e.find(c=>c.name===n.property.id);if(a!=null&&a.array)return G(O({},r),{[n.id]:a.array})}return r},{}),ga=t=>new Promise((e,r)=>{const n=new FileReader;n.onload=()=>{const i=n.result;if(typeof i=="string"){const s=i.split(",")[1];e(s)}else r(new Error("Unexpected result type"))},n.onerror=()=>r(n.error),n.readAsDataURL(t)}),Gc=()=>$(null,null,function*(){try{return(yield navigator.mediaDevices.getUserMedia({video:!0})).getTracks().forEach(e=>e.stop()),"allowed"}catch(t){return(t==null?void 0:t.name)==="NotAllowedError"?"denied":"error"}}),Kc=()=>String.fromCharCode(Math.floor(Math.random()*26)+97)+Number(Math.random()).toString(16).slice(2)+Date.now().toString(16).slice(4),va=({indicatorColor:t})=>{const e=ct(null),r=le(t)||"#000000",n=60,i=5,s=.75,o=(n-i)/2,a=2*Math.PI*o,c=1-s,h=360/1e3;return wt(()=>{if(!e.current)return;let _=!0,f=0,l=performance.now();function y(w){if(!_)return;const d=w-l;l=w,f=(f+h*d)%360,e.current&&(e.current.style.transform=`rotate(${f}deg)`),requestAnimationFrame(y)}return requestAnimationFrame(y),()=>{_=!1}},[]),u("svg",{ref:e,width:n,height:n,viewBox:`0 0 ${n} ${n}`,children:u("circle",{cx:n/2,cy:n/2,r:o,fill:"none",stroke:r,strokeWidth:i,strokeDasharray:`${a*s} ${a*c}`,strokeDashoffset:0,strokeLinecap:"butt",transform:`rotate(-45 ${n/2} ${n/2})`})})};function qc({size:t,color:e}){return u("svg",{width:t||86,height:t||86,viewBox:"0 0 87 86",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("ellipse",{cx:"43.4053",cy:"43",rx:"40",ry:"40",transform:"rotate(90 43.4053 43)",stroke:"#FF3B30",strokeWidth:"3"}),u("path",{d:"M56.9053 29L29.4053 56.5",stroke:e||"#FF3B30",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M29.4053 29L56.9053 56.5",stroke:e||"#FF3B30",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Zc({size:t}){return u("svg",{width:t||48,height:t||48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("circle",{cx:"24.5",cy:"24",r:"18",stroke:"#0E1F97",strokeWidth:"3"}),u("path",{d:"M17.3803 18.3406V29.2496H15.0739V20.5298H15.0099L12.5117 22.0959V20.0504L15.2124 18.3406H17.3803Z",fill:"#0E1F97"}),u("path",{d:"M23.2927 29.3988C22.4724 29.3988 21.7426 29.2656 21.1034 28.9993C20.4678 28.7294 19.9688 28.3619 19.6066 27.8967C19.2444 27.4315 19.0633 26.9041 19.0633 26.3146C19.0633 25.8601 19.1663 25.4428 19.3722 25.0629C19.5818 24.6793 19.8659 24.3615 20.2245 24.1094C20.5832 23.8537 20.9845 23.6903 21.4284 23.6193V23.5447C20.846 23.4276 20.3737 23.1452 20.0115 22.6978C19.6492 22.2468 19.4681 21.723 19.4681 21.1264C19.4681 20.5618 19.6333 20.0593 19.9635 19.619C20.2938 19.1751 20.7465 18.8271 21.3218 18.5749C21.9007 18.3192 22.5576 18.1914 23.2927 18.1914C24.0278 18.1914 24.683 18.3192 25.2583 18.5749C25.8371 18.8306 26.2916 19.1804 26.6219 19.6243C26.9521 20.0646 27.1191 20.5653 27.1226 21.1264C27.1191 21.7266 26.9344 22.2504 26.5686 22.6978C26.2029 23.1452 25.7341 23.4276 25.1624 23.5447V23.6193C25.5992 23.6903 25.9951 23.8537 26.3502 24.1094C26.7089 24.3615 26.993 24.6793 27.2025 25.0629C27.4156 25.4428 27.5239 25.8601 27.5274 26.3146C27.5239 26.9041 27.341 27.4315 26.9788 27.8967C26.6166 28.3619 26.1159 28.7294 25.4767 28.9993C24.841 29.2656 24.113 29.3988 23.2927 29.3988ZM23.2927 27.7049C23.6585 27.7049 23.9781 27.6392 24.2515 27.5078C24.5249 27.3729 24.738 27.1882 24.8907 26.9538C25.047 26.7159 25.1251 26.4425 25.1251 26.1335C25.1251 25.8175 25.0452 25.5387 24.8854 25.2972C24.7256 25.0522 24.509 24.8604 24.2355 24.7219C23.9621 24.5799 23.6478 24.5089 23.2927 24.5089C22.9411 24.5089 22.6269 24.5799 22.3499 24.7219C22.0729 24.8604 21.8545 25.0522 21.6947 25.2972C21.5384 25.5387 21.4603 25.8175 21.4603 26.1335C21.4603 26.4425 21.5367 26.7159 21.6894 26.9538C21.8421 27.1882 22.0569 27.3729 22.3339 27.5078C22.6109 27.6392 22.9305 27.7049 23.2927 27.7049ZM23.2927 22.831C23.5981 22.831 23.8698 22.7688 24.1077 22.6445C24.3456 22.5202 24.532 22.348 24.667 22.1278C24.8019 21.9077 24.8694 21.6538 24.8694 21.3661C24.8694 21.082 24.8019 20.8335 24.667 20.6204C24.532 20.4038 24.3474 20.2351 24.113 20.1143C23.8786 19.9901 23.6052 19.9279 23.2927 19.9279C22.9838 19.9279 22.7103 19.9901 22.4724 20.1143C22.2345 20.2351 22.048 20.4038 21.9131 20.6204C21.7817 20.8335 21.716 21.082 21.716 21.3661C21.716 21.6538 21.7835 21.9077 21.9184 22.1278C22.0534 22.348 22.2398 22.5202 22.4777 22.6445C22.7156 22.7688 22.9873 22.831 23.2927 22.831Z",fill:"#0E1F97"}),u("path",{d:"M31.65 27.5877V20.0451H33.557V27.5877H31.65ZM28.8322 24.7699V22.8629H36.3748V24.7699H28.8322Z",fill:"#0E1F97"})]})}function Yc({size:t,color:e}){return u("svg",{width:t||20,height:t||20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u("path",{d:"M14.3976 12.2816C14.2402 12.2816 14.0863 12.235 13.9555 12.1478C13.8246 12.0605 13.7225 11.9364 13.6623 11.7913C13.602 11.6461 13.5862 11.4864 13.6169 11.3322C13.6476 11.1781 13.7234 11.0365 13.8346 10.9254C13.9459 10.8143 14.0877 10.7386 14.242 10.7079C14.3964 10.6772 14.5564 10.6929 14.7018 10.753C14.8473 10.8131 14.9716 10.9149 15.059 11.0456C15.1465 11.1762 15.1932 11.3298 15.1932 11.4869C15.193 11.6976 15.1091 11.8995 14.9599 12.0485C14.8108 12.1974 14.6086 12.2813 14.3976 12.2816ZM5.60241 12.2816C5.44501 12.2816 5.29115 12.235 5.16026 12.1478C5.02938 12.0605 4.92736 11.9364 4.8671 11.7913C4.80684 11.6461 4.79105 11.4864 4.82173 11.3322C4.85241 11.1781 4.92817 11.0365 5.03944 10.9254C5.15071 10.8143 5.2925 10.7386 5.44686 10.7079C5.60122 10.6772 5.76123 10.6929 5.90665 10.753C6.05207 10.8131 6.17638 10.9149 6.26384 11.0456C6.35131 11.1762 6.39801 11.3298 6.39804 11.4869C6.39784 11.6976 6.31396 11.8995 6.1648 12.0485C6.01564 12.1975 5.81339 12.2813 5.60241 12.2816ZM14.6829 7.4962L16.2732 4.74639C16.2949 4.70883 16.309 4.66736 16.3147 4.62435C16.3204 4.58134 16.3176 4.53763 16.3064 4.49571C16.2952 4.4538 16.2758 4.41451 16.2493 4.38007C16.2229 4.34564 16.1899 4.31674 16.1523 4.29502C16.1147 4.27331 16.0732 4.2592 16.0301 4.25352C15.987 4.24783 15.9432 4.25067 15.9012 4.26187C15.8592 4.27308 15.8199 4.29243 15.7854 4.31882C15.7509 4.34521 15.722 4.37813 15.7002 4.41569L14.0899 7.20023C12.8585 6.63913 11.4755 6.32669 9.99985 6.32669C8.52419 6.32669 7.14135 6.63958 5.90995 7.20023L4.29979 4.41569C4.27807 4.37812 4.24915 4.34519 4.21468 4.31877C4.18021 4.29236 4.14087 4.27299 4.0989 4.26175C4.05694 4.25052 4.01316 4.24765 3.97009 4.25331C3.92701 4.25897 3.88547 4.27304 3.84784 4.29472C3.8102 4.31641 3.77722 4.34528 3.75077 4.37969C3.72431 4.4141 3.7049 4.45338 3.69365 4.49528C3.6824 4.53718 3.67953 4.58088 3.68519 4.62389C3.69086 4.6669 3.70496 4.70837 3.72668 4.74594L5.31705 7.4962C2.5863 8.97904 0.718522 11.739 0.445312 14.9999H19.5547C19.2812 11.739 17.4135 8.97904 14.6829 7.4962Z",fill:e||"#626262"})})}function Xc({size:t}){return u("svg",{width:t||20,height:t||20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8697 8.22896C14.0747 8.43399 14.0747 8.7664 13.8697 8.97143L9.99844 12.8427L6.12721 8.97143C5.92218 8.7664 5.92218 8.43399 6.12721 8.22896C6.33223 8.02394 6.66464 8.02394 6.86967 8.22896L9.99844 11.3577L13.1272 8.22896C13.3322 8.02394 13.6646 8.02394 13.8697 8.22896Z",fill:"#787878"})})}const Jc=({size:t,color:e})=>u("svg",{width:t||20,height:t||20,viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("g",{clipPath:"url(#clip0_6789_106796)",children:u("path",{d:"M18.1829 14.9885C17.9034 15.6343 17.5725 16.2288 17.1892 16.7753C16.6667 17.5204 16.2389 18.0362 15.9092 18.3226C15.3981 18.7927 14.8505 19.0334 14.2641 19.0471C13.8432 19.0471 13.3355 18.9273 12.7445 18.6843C12.1517 18.4424 11.6068 18.3226 11.1086 18.3226C10.5861 18.3226 10.0257 18.4424 9.42633 18.6843C8.82603 18.9273 8.34243 19.054 7.97269 19.0665C7.41037 19.0905 6.84988 18.8429 6.29042 18.3226C5.93334 18.0111 5.48671 17.4771 4.95166 16.7206C4.37759 15.9127 3.90563 14.9759 3.53589 13.908C3.13991 12.7544 2.94141 11.6373 2.94141 10.5559C2.94141 9.31706 3.20904 8.24861 3.74512 7.35325C4.16643 6.63407 4.72692 6.06675 5.42841 5.65028C6.12991 5.23381 6.88787 5.02158 7.70414 5.008C8.15077 5.008 8.73647 5.14618 9.46432 5.41774C10.1901 5.69022 10.6561 5.82839 10.8605 5.82839C11.0132 5.82839 11.5309 5.66682 12.4086 5.34471C13.2385 5.046 13.939 4.92231 14.5128 4.97103C16.0678 5.09654 17.236 5.70961 18.0129 6.81412C16.6222 7.65688 15.9343 8.83726 15.948 10.3515C15.9605 11.531 16.3883 12.5125 17.2291 13.2918C17.6102 13.6535 18.0357 13.9331 18.5091 14.1316C18.4065 14.4294 18.2981 14.7147 18.1829 14.9885ZM14.6166 0.952815C14.6166 1.87728 14.279 2.74045 13.6059 3.53939C12.7936 4.48918 11.8111 5.03801 10.7457 4.9514C10.7321 4.8405 10.7242 4.72377 10.7242 4.60111C10.7242 3.71363 11.1105 2.76384 11.7965 1.98726C12.139 1.59407 12.5746 1.26713 13.1028 1.00633C13.6298 0.749416 14.1284 0.607338 14.5972 0.583008C14.6109 0.706594 14.6166 0.830189 14.6166 0.952803V0.952815Z",fill:e||"#626262"})}),u("defs",{children:u("clipPath",{id:"clip0_6789_106796",children:u("rect",{width:"19.4597",height:"19.458",fill:"white",transform:"translate(0.996094)"})})})]});function Qc({size:t}){return u("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("path",{d:"M20 12H6",stroke:"#8C8C8C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M13 19L6 12L13 5",stroke:"#8C8C8C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function ed({size:t}){return u("svg",{width:t||48,height:t||48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("path",{d:"M8.25 37.5C7.69772 37.5 7.25 37.0523 7.25 36.5L7.25 13C7.25 12.4477 7.69771 12 8.25 12L40.75 12C41.3023 12 41.75 12.4477 41.75 13L41.75 36.5C41.75 37.0523 41.3023 37.5 40.75 37.5L8.25 37.5Z",stroke:"#0E1F97",strokeWidth:"3"}),u("path",{d:"M24.5 29.5C21.8766 29.5 19.75 27.3734 19.75 24.75C19.75 22.1266 21.8766 20 24.5 20C27.1234 20 29.25 22.1266 29.25 24.75C29.25 27.3734 27.1234 29.5 24.5 29.5Z",stroke:"#0E1F97",strokeWidth:"4"}),u("rect",{x:"6.5",y:"23.3999",width:"12",height:"2.4",fill:"#0E1F97"}),u("rect",{x:"29.9004",y:"23.3999",width:"12",height:"2.4",fill:"#0E1F97"})]})}function td({size:t,color:e}){return u("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("path",{d:"M12 23C18.0746 23 23 18.0746 23 12C23 5.92545 18.0746 1 12 0.999999C5.92545 0.999999 1 5.92545 1 12C1 18.0746 5.92545 23 12 23ZM12 2.86607C17.0433 2.86607 21.1339 6.9567 21.1339 12C21.1339 17.0433 17.0433 21.1339 12 21.1339C6.9567 21.1339 2.86607 17.0433 2.86607 12C2.86607 6.9567 6.9567 2.86607 12 2.86607Z",fill:e||"#8C8C8C"}),u("path",{d:"M13 7C13 6.73478 12.8946 6.48043 12.7071 6.29289C12.5196 6.10536 12.2652 6 12 6C11.7348 6 11.4804 6.10536 11.2929 6.29289C11.1054 6.48043 11 6.73478 11 7C11 7.26522 11.1054 7.51957 11.2929 7.70711C11.4804 7.89464 11.7348 8 12 8C12.2652 8 12.5196 7.89464 12.7071 7.70711C12.8946 7.51957 13 7.26522 13 7Z",fill:e||"#8C8C8C"}),u("rect",{x:"13",y:"18",width:"2",height:"8",transform:"rotate(-180 13 18)",fill:"#8C8C8C"})]})}function rd({size:t}){return u("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("rect",{x:"12.5",y:"1.5",width:"10",height:"21",rx:"1.5",stroke:"#8C8C8C"}),u("path",{d:"M1 10.5C0.723858 10.5 0.5 10.7239 0.5 11C0.5 11.2761 0.723858 11.5 1 11.5V10.5ZM9.35355 11.3536C9.54882 11.1583 9.54882 10.8417 9.35355 10.6464L6.17157 7.46447C5.97631 7.2692 5.65973 7.2692 5.46447 7.46447C5.2692 7.65973 5.2692 7.97631 5.46447 8.17157L8.29289 11L5.46447 13.8284C5.2692 14.0237 5.2692 14.3403 5.46447 14.5355C5.65973 14.7308 5.97631 14.7308 6.17157 14.5355L9.35355 11.3536ZM1 11.5H9V10.5H1V11.5Z",fill:"#8C8C8C"}),u("path",{d:"M15 2H20C20 2.55228 19.5523 3 19 3H16C15.4477 3 15 2.55228 15 2Z",fill:"#8C8C8C"}),u("circle",{cx:"17.5",cy:"20",r:"1",fill:"#8C8C8C"})]})}function nd({size:t}){return u("svg",{width:t||48,height:t||48,viewBox:"0 0 49 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("circle",{cx:"15.5004",cy:"10.8002",r:"3.6",stroke:"#0E1F97",strokeWidth:"3"}),u("circle",{cx:"35.2998",cy:"19.7998",r:"3",stroke:"#0E1F97",strokeWidth:"3"}),u("path",{d:"M28.0146 20.3999C29.2496 18.4972 30.705 17.9696 32.2994 18.2728M42.5841 20.3999C41.3491 18.4972 39.8938 17.9696 38.2994 18.2728",stroke:"#0E1F97",strokeWidth:"3"}),u("path",{d:"M12.5 41.7002V30.6002H9.5V19.2002H21.5V30.6002H18.5V41.7002",stroke:"#0E1F97",strokeWidth:"3"}),u("path",{d:"M32.2998 41.7001V37.2001H29.2998L33.4998 27.6001H37.0998L41.2998 37.2001H38.2998V41.7001",stroke:"#0E1F97",strokeWidth:"3"})]})}const wa=({size:t,color:e})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,fill:e||"rgba(0,0,0,0.6)",children:u("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}),id=({size:t,color:e})=>u("svg",{width:t?t*3:39,height:t||13,viewBox:"0 0 39 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("path",{d:"M5.88952 5.98264C6.70681 5.48369 7.28459 4.49575 7.28459 3.40906C7.28459 1.34699 5.65607 0 3.60916 0C1.56225 0 0 1.34743 0 3.67543V5.42175H1.49815V3.675C1.49815 2.27819 2.44624 1.49642 3.61046 1.49642C4.77468 1.49642 5.60583 2.29465 5.60583 3.40906C5.60583 4.52347 4.70798 5.42132 3.54376 5.42132H1.49815V9.21326H2.995V6.75186H3.57711C5.04061 6.75186 6.00516 7.88272 6.03851 9.21326H7.60163C7.57391 7.89658 6.94373 6.56778 5.89082 5.98264",fill:e||"#8C8C8C"}),u("path",{d:"M37.5857 2.6262V3.57429C37.1863 2.97573 36.4877 2.57812 35.4902 2.57812C33.6608 2.57812 32.2969 4.04163 32.2969 5.92092C32.2969 7.78332 33.6608 9.26371 35.4902 9.26371C36.4379 9.26371 37.1201 8.88127 37.5857 8.29916V9.21391H38.9994V2.6262H37.5857ZM35.6566 7.83183C34.592 7.83183 33.8271 7.00025 33.8271 5.91919C33.8271 4.83813 34.592 4.00654 35.6566 4.00654C36.7212 4.00654 37.5025 4.83813 37.5025 5.91919C37.5025 7.00025 36.7229 7.83183 35.6566 7.83183Z",fill:e||"#8C8C8C"}),u("path",{d:"M27.5078 6.0384C27.5078 7.33559 26.8426 7.81808 25.9945 7.81808C25.1465 7.81808 24.4812 7.33559 24.4812 6.0384V2.62891H22.9844V5.9717C22.9844 8.16717 24.1152 9.26339 25.9945 9.26339C27.8738 9.26339 29.0047 8.16587 29.0047 5.9717V2.62891H27.5078V6.0384Z",fill:e||"#8C8C8C"}),u("path",{d:"M11.2922 2.57812C9.44578 2.57812 8.01562 4.09143 8.01562 5.93781C8.01562 7.78419 9.44491 9.26371 11.342 9.26371C12.4893 9.26371 13.3209 8.86481 14.003 8.14974L13.1879 7.18519C12.7388 7.58409 12.1735 7.86691 11.3753 7.86691C10.5771 7.86691 9.82865 7.46758 9.59693 6.60264H14.5184C14.578 6.34086 14.6059 6.07286 14.6016 5.80441C14.6016 3.94201 13.1381 2.57812 11.2922 2.57812ZM9.51248 5.42197C9.71214 4.55574 10.4437 3.97536 11.3749 3.97536C12.3061 3.97536 12.938 4.54058 13.1212 5.42197H9.51248Z",fill:e||"#8C8C8C"}),u("path",{d:"M31.4988 0.0664062H30.002V9.2134H31.4988V0.0664062Z",fill:e||"#8C8C8C"}),u("path",{d:"M20.572 3.57429C20.2394 3.00864 19.4745 2.57812 18.4766 2.57812C16.7302 2.57812 15.2832 4.04163 15.2832 5.92092C15.2832 7.78332 16.7302 9.21261 18.4766 9.21261C19.4247 9.21261 20.0232 8.92978 20.4888 8.34637V8.94537C20.4888 10.2426 19.5741 10.7082 18.6927 10.7082C17.8113 10.7082 17.1127 10.275 16.9797 9.32782H15.5162C15.5829 10.991 16.913 12.0565 18.6927 12.0565C20.4724 12.0565 21.9844 11.0421 21.9844 8.84662V2.6262H20.572V3.57429ZM18.6429 7.78202C17.5783 7.78202 16.8134 7.00025 16.8134 5.91962C16.8134 4.839 17.5783 4.00698 18.6429 4.00698C19.7075 4.00698 20.4888 4.83856 20.4888 5.91962C20.4888 7.00068 19.7071 7.78202 18.6429 7.78202Z",fill:e||"#8C8C8C"})]});function sd({size:t,color:e}){return u("svg",{width:t||86,height:t||86,viewBox:"0 0 86 86",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("ellipse",{cx:"43",cy:"43",rx:"40",ry:"40",transform:"rotate(90 43 43)",stroke:e||"#FCB937",strokeWidth:"3"}),u("path",{d:"M40.8789 48.5352L40.5859 25H44.9805L44.6875 48.5352H40.8789ZM42.7832 60.4736C42.002 60.4736 41.3428 60.2051 40.8057 59.668C40.2686 59.1309 40 58.4717 40 57.6904C40 56.8929 40.2686 56.2337 40.8057 55.7129C41.3428 55.1758 42.002 54.9072 42.7832 54.9072C43.5807 54.9072 44.2399 55.1758 44.7607 55.7129C45.2979 56.2337 45.5664 56.8929 45.5664 57.6904C45.5664 58.4717 45.2979 59.1309 44.7607 59.668C44.2399 60.2051 43.5807 60.4736 42.7832 60.4736Z",fill:e||"#FCB937"})]})}function od(){return u("svg",{width:"113",height:"16",viewBox:"0 0 113 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("path",{d:"M1.35197 12V3.27273H4.6247C5.29515 3.27273 5.85765 3.39773 6.3122 3.64773C6.76958 3.89773 7.11475 4.24148 7.34771 4.67898C7.5835 5.11364 7.7014 5.60795 7.7014 6.16193C7.7014 6.72159 7.5835 7.21875 7.34771 7.65341C7.11191 8.08807 6.7639 8.4304 6.30367 8.6804C5.84345 8.92756 5.27668 9.05114 4.60339 9.05114H2.43435V7.75142H4.39032C4.78237 7.75142 5.10339 7.68324 5.35339 7.54688C5.60339 7.41051 5.78805 7.22301 5.90737 6.98438C6.02953 6.74574 6.0906 6.47159 6.0906 6.16193C6.0906 5.85227 6.02953 5.57955 5.90737 5.34375C5.78805 5.10795 5.60197 4.92472 5.34913 4.79403C5.09913 4.66051 4.77668 4.59375 4.3818 4.59375H2.93293V12H1.35197ZM11.6478 12.1278C11.0086 12.1278 10.4546 11.9872 9.98587 11.706C9.51712 11.4247 9.15349 11.0312 8.89497 10.5256C8.63928 10.0199 8.51144 9.42898 8.51144 8.75284C8.51144 8.0767 8.63928 7.48437 8.89497 6.97585C9.15349 6.46733 9.51712 6.07244 9.98587 5.79119C10.4546 5.50994 11.0086 5.36932 11.6478 5.36932C12.287 5.36932 12.841 5.50994 13.3097 5.79119C13.7785 6.07244 14.1407 6.46733 14.3964 6.97585C14.6549 7.48437 14.7842 8.0767 14.7842 8.75284C14.7842 9.42898 14.6549 10.0199 14.3964 10.5256C14.1407 11.0312 13.7785 11.4247 13.3097 11.706C12.841 11.9872 12.287 12.1278 11.6478 12.1278ZM11.6563 10.892C12.0029 10.892 12.2927 10.7969 12.5256 10.6065C12.7586 10.4134 12.9319 10.1548 13.0455 9.83097C13.162 9.5071 13.2202 9.14631 13.2202 8.74858C13.2202 8.34801 13.162 7.9858 13.0455 7.66193C12.9319 7.33523 12.7586 7.07528 12.5256 6.8821C12.2927 6.68892 12.0029 6.59233 11.6563 6.59233C11.3012 6.59233 11.0058 6.68892 10.77 6.8821C10.537 7.07528 10.3623 7.33523 10.2458 7.66193C10.1322 7.9858 10.0754 8.34801 10.0754 8.74858C10.0754 9.14631 10.1322 9.5071 10.2458 9.83097C10.3623 10.1548 10.537 10.4134 10.77 10.6065C11.0058 10.7969 11.3012 10.892 11.6563 10.892ZM17.1368 12L15.2874 5.45455H16.8598L18.0104 10.0568H18.0701L19.2462 5.45455H20.8016L21.9777 10.0312H22.0417L23.1752 5.45455H24.7519L22.8982 12H21.2917L20.0644 7.5767H19.9749L18.7476 12H17.1368ZM28.4192 12.1278C27.7629 12.1278 27.1962 11.9915 26.7189 11.7188C26.2445 11.4432 25.8794 11.054 25.6237 10.5511C25.368 10.0455 25.2402 9.45028 25.2402 8.76562C25.2402 8.09233 25.368 7.50142 25.6237 6.9929C25.8822 6.48153 26.243 6.08381 26.7061 5.79972C27.1692 5.51278 27.7132 5.36932 28.3382 5.36932C28.7416 5.36932 29.1223 5.43466 29.4802 5.56534C29.841 5.69318 30.1592 5.89205 30.4348 6.16193C30.7132 6.43182 30.932 6.77557 31.091 7.19318C31.2501 7.60795 31.3297 8.10227 31.3297 8.67614V9.14915H25.9646V8.10938H29.851C29.8481 7.81392 29.7842 7.55114 29.6592 7.32102C29.5342 7.08807 29.3595 6.90483 29.1351 6.77131C28.9135 6.63778 28.655 6.57102 28.3595 6.57102C28.0442 6.57102 27.7672 6.64773 27.5285 6.80114C27.2899 6.9517 27.1038 7.15057 26.9703 7.39773C26.8396 7.64205 26.7729 7.91051 26.77 8.20312V9.1108C26.77 9.49148 26.8396 9.81818 26.9788 10.0909C27.118 10.3608 27.3126 10.5682 27.5626 10.7131C27.8126 10.8551 28.1052 10.9261 28.4405 10.9261C28.6649 10.9261 28.868 10.8949 29.0499 10.8324C29.2317 10.767 29.3893 10.6719 29.5229 10.5469C29.6564 10.4219 29.7572 10.267 29.8254 10.0824L31.2658 10.2443C31.1749 10.625 31.0016 10.9574 30.7459 11.2415C30.493 11.5227 30.1692 11.7415 29.7743 11.8977C29.3794 12.0511 28.9277 12.1278 28.4192 12.1278ZM32.5147 12V5.45455H34.0105V6.54545H34.0786C34.198 6.16761 34.4025 5.87642 34.6923 5.67188C34.9849 5.46449 35.3187 5.3608 35.6937 5.3608C35.7789 5.3608 35.8741 5.36506 35.9792 5.37358C36.0872 5.37926 36.1767 5.3892 36.2477 5.40341V6.82244C36.1823 6.79972 36.0786 6.77983 35.9366 6.76278C35.7974 6.7429 35.6625 6.73295 35.5318 6.73295C35.2505 6.73295 34.9977 6.79403 34.7732 6.91619C34.5517 7.03551 34.3769 7.2017 34.2491 7.41477C34.1213 7.62784 34.0573 7.87358 34.0573 8.15199V12H32.5147ZM39.7807 12.1278C39.1245 12.1278 38.5577 11.9915 38.0804 11.7188C37.606 11.4432 37.241 11.054 36.9853 10.5511C36.7296 10.0455 36.6018 9.45028 36.6018 8.76562C36.6018 8.09233 36.7296 7.50142 36.9853 6.9929C37.2438 6.48153 37.6046 6.08381 38.0677 5.79972C38.5307 5.51278 39.0748 5.36932 39.6998 5.36932C40.1032 5.36932 40.4839 5.43466 40.8418 5.56534C41.2026 5.69318 41.5208 5.89205 41.7964 6.16193C42.0748 6.43182 42.2935 6.77557 42.4526 7.19318C42.6117 7.60795 42.6912 8.10227 42.6912 8.67614V9.14915H37.3262V8.10938H41.2126C41.2097 7.81392 41.1458 7.55114 41.0208 7.32102C40.8958 7.08807 40.7211 6.90483 40.4966 6.77131C40.2751 6.63778 40.0165 6.57102 39.7211 6.57102C39.4057 6.57102 39.1287 6.64773 38.8901 6.80114C38.6515 6.9517 38.4654 7.15057 38.3319 7.39773C38.2012 7.64205 38.1344 7.91051 38.1316 8.20312V9.1108C38.1316 9.49148 38.2012 9.81818 38.3404 10.0909C38.4796 10.3608 38.6742 10.5682 38.9242 10.7131C39.1742 10.8551 39.4668 10.9261 39.802 10.9261C40.0265 10.9261 40.2296 10.8949 40.4114 10.8324C40.5932 10.767 40.7509 10.6719 40.8844 10.5469C41.0179 10.4219 41.1188 10.267 41.187 10.0824L42.6273 10.2443C42.5364 10.625 42.3631 10.9574 42.1074 11.2415C41.8546 11.5227 41.5307 11.7415 41.1358 11.8977C40.741 12.0511 40.2893 12.1278 39.7807 12.1278ZM46.3053 12.1151C45.7911 12.1151 45.3308 11.983 44.9246 11.7188C44.5183 11.4545 44.1973 11.071 43.9615 10.5682C43.7257 10.0653 43.6078 9.45455 43.6078 8.7358C43.6078 8.00852 43.7271 7.39489 43.9658 6.89489C44.2073 6.39205 44.5325 6.01278 44.9416 5.7571C45.3507 5.49858 45.8067 5.36932 46.3095 5.36932C46.693 5.36932 47.0084 5.43466 47.2555 5.56534C47.5027 5.69318 47.6987 5.84801 47.8436 6.02983C47.9885 6.20881 48.1007 6.37784 48.1803 6.53693H48.2442V3.27273H49.7911V12H48.274V10.9688H48.1803C48.1007 11.1278 47.9857 11.2969 47.8351 11.4759C47.6845 11.652 47.4857 11.8026 47.2385 11.9276C46.9913 12.0526 46.6803 12.1151 46.3053 12.1151ZM46.7357 10.8494C47.0624 10.8494 47.3408 10.7614 47.5709 10.5852C47.801 10.4062 47.9757 10.1577 48.095 9.83949C48.2144 9.52131 48.274 9.15057 48.274 8.72727C48.274 8.30398 48.2144 7.93608 48.095 7.62358C47.9786 7.31108 47.8053 7.06818 47.5751 6.89489C47.3479 6.72159 47.068 6.63494 46.7357 6.63494C46.3919 6.63494 46.105 6.72443 45.8749 6.90341C45.6448 7.08239 45.4715 7.32955 45.355 7.64489C45.2385 7.96023 45.1803 8.32102 45.1803 8.72727C45.1803 9.13636 45.2385 9.50142 45.355 9.82244C45.4743 10.1406 45.649 10.392 45.8791 10.5767C46.1121 10.7585 46.3976 10.8494 46.7357 10.8494ZM54.2396 12V3.27273H55.7822V6.53693H55.8462C55.9257 6.37784 56.0379 6.20881 56.1828 6.02983C56.3277 5.84801 56.5237 5.69318 56.7709 5.56534C57.018 5.43466 57.3334 5.36932 57.7169 5.36932C58.2226 5.36932 58.6785 5.49858 59.0848 5.7571C59.4939 6.01278 59.8178 6.39205 60.0564 6.89489C60.2979 7.39489 60.4186 8.00852 60.4186 8.7358C60.4186 9.45455 60.3007 10.0653 60.0649 10.5682C59.8291 11.071 59.5081 11.4545 59.1018 11.7188C58.6956 11.983 58.2354 12.1151 57.7212 12.1151C57.3462 12.1151 57.0351 12.0526 56.7879 11.9276C56.5408 11.8026 56.3419 11.652 56.1913 11.4759C56.0436 11.2969 55.9285 11.1278 55.8462 10.9688H55.7567V12H54.2396ZM55.7524 8.72727C55.7524 9.15057 55.8121 9.52131 55.9314 9.83949C56.0535 10.1577 56.2283 10.4062 56.4555 10.5852C56.6856 10.7614 56.9641 10.8494 57.2908 10.8494C57.6317 10.8494 57.9172 10.7585 58.1473 10.5767C58.3774 10.392 58.5507 10.1406 58.6672 9.82244C58.7865 9.50142 58.8462 9.13636 58.8462 8.72727C58.8462 8.32102 58.7879 7.96023 58.6714 7.64489C58.555 7.32955 58.3817 7.08239 58.1516 6.90341C57.9214 6.72443 57.6345 6.63494 57.2908 6.63494C56.9612 6.63494 56.6814 6.72159 56.4513 6.89489C56.2212 7.06818 56.0464 7.31108 55.9271 7.62358C55.8106 7.93608 55.7524 8.30398 55.7524 8.72727ZM62.3462 14.4545C62.136 14.4545 61.9414 14.4375 61.7624 14.4034C61.5862 14.3722 61.4456 14.3352 61.3405 14.2926L61.6985 13.0909C61.9229 13.1563 62.1232 13.1875 62.2993 13.1847C62.4754 13.1818 62.6303 13.1264 62.7638 13.0185C62.9002 12.9134 63.0152 12.7372 63.109 12.4901L63.2411 12.1364L60.8675 5.45455H62.5039L64.0124 10.3977H64.0806L65.5933 5.45455H67.234L64.6132 12.7926C64.4911 13.1392 64.3291 13.4361 64.1274 13.6832C63.9257 13.9332 63.6786 14.1236 63.386 14.2543C63.0962 14.3878 62.7496 14.4545 62.3462 14.4545Z",fill:"#8C8C8C"}),u("path",{d:"M77.3427 8.45085C78.2228 7.91285 78.8451 6.84759 78.8451 5.67586C78.8451 3.45241 77.0913 2 74.8869 2C72.6825 2 71 3.45288 71 5.96307V7.84606H72.6134V5.9626C72.6134 4.45649 73.6345 3.61353 74.8883 3.61353C76.142 3.61353 77.0371 4.47423 77.0371 5.67586C77.0371 6.87748 76.0702 7.8456 74.8164 7.8456H72.6134V11.9343H74.2254V9.28026H74.8523C76.4284 9.28026 77.4672 10.4996 77.5031 11.9343H79.1865C79.1567 10.5146 78.478 9.08178 77.3441 8.45085",fill:"#BD7DFF"}),u("path",{d:"M111.477 4.83175V5.85404C111.047 5.20862 110.295 4.77991 109.221 4.77991C107.251 4.77991 105.782 6.35794 105.782 8.38431C105.782 10.3925 107.251 11.9887 109.221 11.9887C110.241 11.9887 110.976 11.5763 111.477 10.9487V11.935H113V4.83175H111.477ZM109.4 10.4448C108.253 10.4448 107.43 9.54811 107.43 8.38244C107.43 7.21678 108.253 6.32012 109.4 6.32012C110.546 6.32012 111.388 7.21678 111.388 8.38244C111.388 9.54811 110.548 10.4448 109.4 10.4448Z",fill:"#BD7DFF"}),u("path",{d:"M100.624 8.51104C100.624 9.90974 99.908 10.43 98.9947 10.43C98.0814 10.43 97.3649 9.90974 97.3649 8.51104V4.83472H95.7529V8.43912C95.7529 10.8064 96.9708 11.9884 98.9947 11.9884C101.019 11.9884 102.236 10.805 102.236 8.43912V4.83472H100.624V8.51104Z",fill:"#BD7DFF"}),u("path",{d:"M83.161 4.77991C81.1725 4.77991 79.6323 6.41165 79.6323 8.40252C79.6323 10.3934 81.1716 11.9887 83.2146 11.9887C84.4502 11.9887 85.3458 11.5586 86.0804 10.7876L85.2026 9.74752C84.7189 10.1776 84.1102 10.4826 83.2505 10.4826C82.3909 10.4826 81.5848 10.052 81.3353 9.11939H86.6355C86.6996 8.83711 86.7297 8.54814 86.725 8.25869C86.725 6.25053 85.1489 4.77991 83.161 4.77991ZM81.2443 7.84631C81.4594 6.91229 82.2472 6.28649 83.25 6.28649C84.2529 6.28649 84.9334 6.89594 85.1307 7.84631H81.2443Z",fill:"#BD7DFF"}),u("path",{d:"M104.923 2.07153H103.311V11.9344H104.923V2.07153Z",fill:"#BD7DFF"}),u("path",{d:"M93.1547 5.85404C92.7965 5.24412 91.9727 4.77991 90.8981 4.77991C89.0174 4.77991 87.459 6.35794 87.459 8.38431C87.459 10.3925 89.0174 11.9336 90.8981 11.9336C91.9191 11.9336 92.5637 11.6287 93.0651 10.9996V11.6455C93.0651 13.0442 92.08 13.5462 91.1308 13.5462C90.1816 13.5462 89.4292 13.0792 89.286 12.0578H87.7099C87.7818 13.8512 89.2142 15 91.1308 15C93.0474 15 94.6758 13.9063 94.6758 11.539V4.83175H93.1547V5.85404ZM91.0772 10.3911C89.9307 10.3911 89.1069 9.54811 89.1069 8.38291C89.1069 7.21772 89.9307 6.32058 91.0772 6.32058C92.2237 6.32058 93.0651 7.21725 93.0651 8.38291C93.0651 9.54858 92.2232 10.3911 91.0772 10.3911Z",fill:"#BD7DFF"})]})}const ad=({size:t=100,color:e="#5DA600"})=>u("svg",{width:t,height:t,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("ellipse",{cx:"50.0001",cy:"49.9999",rx:"46.5116",ry:"46.5116",transform:"rotate(90 50.0001 49.9999)",stroke:e,strokeWidth:"3.48837"}),u("path",{d:"M74.4185 36.0469L44.7753 63.9539L30.2325 50.2627",stroke:e,strokeWidth:"3.48837",strokeLinecap:"round",strokeLinejoin:"round"})]}),ld=()=>u("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"9.5",stroke:"#7E57C5"}),u("rect",{x:"3",y:"3.5",width:"14",height:"14",rx:"7",fill:"#7E57C5"})]}),cd=()=>u("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"9.5",stroke:"#8C8C8C"})}),dd=()=>u("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"3.5",fill:"#7E57C5",stroke:"#7E57C5"}),u("path",{d:"M16.6335 6.71849C16.243 6.32797 15.6098 6.32797 15.2193 6.71849L9.09149 12.8463L5.12147 8.8763C4.73095 8.48577 4.09778 8.48577 3.70726 8.8763C3.31674 9.26682 3.31674 9.89999 3.70726 10.2905L9.09541 15.6787L16.6335 8.1327C17.0241 7.74218 17.0241 7.10902 16.6335 6.71849Z",fill:"white"})]}),ud=()=>u("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"3.5",stroke:"#8C8C8C"})}),fd=({color:t="#237804"})=>u("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.15385 2.15377C7.35887 2.35879 7.35887 2.69121 7.15385 2.89623L2.67894 7.3712L0.153877 4.84616C-0.0511485 4.64114 -0.0511485 4.30872 0.153877 4.1037C0.358901 3.89867 0.691313 3.89867 0.896338 4.1037L2.67894 5.88628L6.41139 2.15377C6.61641 1.94874 6.94882 1.94874 7.15385 2.15377Z",fill:t})}),hd=({color:t="#262626"})=>u("svg",{width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.86967 0.228964C9.07469 0.433989 9.07469 0.766401 8.86967 0.971426L4.99844 4.84266L1.12721 0.971426C0.922181 0.766401 0.922181 0.433989 1.12721 0.228964C1.33223 0.023939 1.66464 0.023939 1.86967 0.228964L4.99844 3.35773L8.12721 0.228964C8.33223 0.023939 8.66464 0.023939 8.86967 0.228964Z",fill:t})}),pd=({size:t,color:e="#ffffff"})=>u("svg",{width:t||40,height:t||40,viewBox:"0 0 23 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("g",{clipPath:"url(#clip0_2629_17763)",children:[u("path",{d:"M3.99993 17C3.53533 17 3.30303 17 3.10985 16.9616C2.31642 16.8038 1.69618 16.1835 1.5384 15.3901C1.49998 15.1969 1.49999 14.9646 1.5 14.5L1.50019 7.19993C1.50022 6.07985 1.50024 5.51981 1.71823 5.092C1.90998 4.71568 2.21594 4.40973 2.59226 4.21799C3.02008 4.00001 3.58012 4.00001 4.7002 4.00002L17 4.00004C17.4646 4.00004 17.6969 4.00005 17.8901 4.03847C18.6835 4.19628 19.3037 4.81649 19.4615 5.60989C19.4999 5.80308 19.4999 6.03539 19.4999 6.50001",stroke:e}),u("path",{d:"M6.7002 6.50002L18.2998 6.50002C18.8681 6.50002 19.2648 6.50021 19.5732 6.52541C19.8753 6.55011 20.0491 6.59615 20.1807 6.6631C20.4629 6.80691 20.6931 7.03711 20.8369 7.31935C20.9039 7.45093 20.9499 7.62472 20.9746 7.92677C20.9998 8.23519 21 8.63191 21 9.20021V15.7998C21 16.3681 20.9998 16.7648 20.9746 17.0733C20.9499 17.3753 20.9039 17.5491 20.8369 17.6807C20.6931 17.9629 20.4629 18.1931 20.1807 18.3369C20.0491 18.4039 19.8753 18.4499 19.5732 18.4746C19.2648 18.4998 18.8681 18.5 18.2998 18.5H6.7002C6.13188 18.5 5.73519 18.4998 5.42676 18.4746C5.12471 18.4499 4.95091 18.4039 4.81934 18.3369C4.53709 18.1931 4.30689 17.9629 4.16309 17.6807C4.09614 17.5491 4.05009 17.3753 4.02539 17.0733C4.0002 16.7648 3.99999 16.3681 4 15.7998L4 9.20021C4.00001 8.63192 4.00018 8.23519 4.02539 7.92677C4.05012 7.6245 4.09703 7.45096 4.16406 7.31935C4.30788 7.03712 4.5371 6.80691 4.81934 6.6631C4.95099 6.59606 5.12529 6.55012 5.42773 6.52541C5.73609 6.50024 6.13215 6.50001 6.7002 6.50002Z",stroke:e}),u("path",{d:"M4 16L7.66852 12.7391C8.11271 12.3443 8.80118 12.4217 9.14662 12.9053L11 15.5L14.6647 10.6138C15.075 10.0666 15.9013 10.0837 16.2887 10.6472L21 17.5",stroke:e}),u("path",{d:"M9 18.5L11 15.5L14.6647 10.6138C15.075 10.0666 15.9013 10.0837 16.2887 10.6472L21 17.5",stroke:e}),u("circle",{cx:"7.5",cy:"10",r:"1",fill:e})]}),u("defs",{children:u("clipPath",{id:"clip0_2629_17763",children:u("rect",{width:"22",height:"22",fill:"white",transform:"translate(0.5 1.90735e-05)"})})})]}),md=({size:t=40,color:e="#ffffff"})=>u("svg",{width:t,height:t,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("g",{clipPath:"url(#clip0_2629_17707)",children:[u("path",{d:"M8.7041 3.67972H15.2959C15.3348 3.67968 15.3734 3.69153 15.4053 3.7139C15.4211 3.72502 15.4347 3.73877 15.4463 3.75394L15.4746 3.80472L16.1699 5.75394L16.2881 6.08597H19.5625C20.236 6.08597 20.7812 6.63125 20.7812 7.30472V17.1016C20.7812 17.7751 20.236 18.3203 19.5625 18.3203H4.4375C3.76403 18.3203 3.21875 17.7751 3.21875 17.1016V7.30472C3.21875 6.63125 3.76403 6.08597 4.4375 6.08597H7.71191L7.83008 5.75491L8.52832 3.80374L8.5293 3.80179C8.55486 3.73029 8.62456 3.6798 8.7041 3.67972ZM12 8.00784C9.82464 8.00784 8.0625 9.76998 8.0625 11.9453C8.0625 14.1207 9.82464 15.8828 12 15.8828C14.1754 15.8828 15.9375 14.1207 15.9375 11.9453C15.9375 9.76998 14.1754 8.00784 12 8.00784Z",stroke:e}),u("circle",{cx:"18",cy:"9.00003",r:"1",fill:e})]}),u("defs",{children:u("clipPath",{id:"clip0_2629_17707",children:u("rect",{width:"22",height:"22",fill:e})})})]}),_d=()=>u("div",{}),Se={WARNING:"warning_icon",SPINNER:"spinner",ERROR:"failure",AGE:"age",ANDROID:"android",ARROW:"arrow",APPLE:"apple",BACK:"back",BIOMETRIC:"biometricIcon",INFO:"info",TO_MOBILE:"toMobile",UNDERAGE:"underage",CROSS:"cross",REGULA_LOGO:"regulaLogo",POWERED_BY:"signature",SUCCESS:"success",DEFAULT:"empty",CIRCLE_SELECTED:"radio_selected",CIRCLE_NORMAL:"radio_normal",SQUARE_SELECTED:"square_selected",SQUARE_NORMAL:"square_normal",SELECTED:"selected",CHEVRON_DOWN:"chevronDown",CLOSE_ICON:"close_icon",GALLERY_ICON:"gallery",CAMERA_ICON:"camera"},ns={[Se.WARNING]:sd,[Se.SPINNER]:va,[Se.ERROR]:qc,[Se.AGE]:Zc,[Se.ANDROID]:Yc,[Se.ARROW]:Xc,[Se.APPLE]:Jc,[Se.BACK]:Qc,[Se.BIOMETRIC]:ed,[Se.INFO]:td,[Se.TO_MOBILE]:rd,[Se.UNDERAGE]:nd,[Se.CROSS]:wa,[Se.REGULA_LOGO]:id,[Se.DEFAULT]:_d,[Se.POWERED_BY]:od,[Se.SUCCESS]:ad,[Se.CIRCLE_SELECTED]:ld,[Se.CIRCLE_NORMAL]:cd,[Se.SQUARE_SELECTED]:dd,[Se.SQUARE_NORMAL]:ud,[Se.SELECTED]:fd,[Se.CHEVRON_DOWN]:hd,[Se.CLOSE_ICON]:wa,[Se.GALLERY_ICON]:pd,[Se.CAMERA_ICON]:md},gd=({type:t,size:e,color:r})=>{const n=ns[t]||ns[Se.DEFAULT];return u(n,{size:e,color:r})},ze=({imageId:t,imageURL:e,base64:r,contentMode:n=Rn.ASPECT_FILL,cornerRadius:i,backgroundColor:s})=>{const o=f=>{if(f===Rn.ASPECT_FILL)return"cover";if(f===Rn.ASPECT_FIT)return"contain";if(f===Rn.FILL)return"fill"},[a,c]=Ve(!0),h=a&&e,_=()=>{c(!1)};if(r)return u("img",{style:{width:"100%",height:"100%",objectFit:o(n),borderRadius:i,backgroundColor:le(s)||"transparent",display:h?"none":"block"},src:r});if(t){const f=t in ns?t:"default";return u(gd,{type:f})}if(e)return u(He,{children:[h&&u("div",{style:{width:"100%",height:"100%",backgroundColor:"#e0e0e0",borderRadius:i}}),u("img",{style:{width:"100%",height:"100%",objectFit:o(n),borderRadius:i,backgroundColor:s,display:h?"none":"block"},src:e,onLoad:_})]})},vd=({signature:t})=>u("footer",{"data-ui":"gui-footer",part:"gui-footer",style:{display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",height:"100%",width:"100%"},children:u("a",{href:"",children:u(ze,{imageId:t==null?void 0:t.imageId})})}),wd={display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"18px",height:"36px",minWidth:"36px",border:"none",cursor:"pointer"},yd=({dataTestId:t,responseBody:e,image:r,title:n,backgroundColor:i="transparent",cornerRadius:s,highlightColor:o})=>{var l;const[a,c]=Ve(!1),h=a&&o?o:i,{perform:_}=Tr();return u("button",{"data-ui":"gui-close-button",part:"gui-close-button","data-test":t,onClick:()=>{const y=JSON.parse(JSON.stringify(e));rs(y),_(y)},className:"hover-button",style:G(O(O({},wd),s&&{borderRadius:s}),{backgroundColor:(l=le(h))!=null?l:"transparent"}),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[r&&u("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"24px",height:"24px"},children:u(ze,O({},r))}),n&&u("div",{style:{padding:"0 5px"},children:u(Me,O({},n))})]})},bd=({closeButton:t})=>u("header",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"center",paddingRight:"16px"},"data-ui":"gui-header",part:"gui-header",children:u("div",{children:t&&u(yd,O({dataTestId:"close-btn"},t))})});function Cd(t){var i;const e=/\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g,r=[];let n=0;for(const s of t.matchAll(e)){const[o,a,c]=s,h=(i=s.index)!=null?i:0;h>n&&r.push(t.slice(n,h));const _=c.startsWith("http")?c:`https://${c}`;r.push(u("a",{href:_,target:"_blank",rel:"noopener noreferrer",children:a},h)),n=h+o.length}return n<t.length&&r.push(t.slice(n)),r}function ya(t){const e=t.split(`
91
- `);return e.flatMap((r,n)=>{const i=Cd(r);return n===e.length-1?i:[...i,u("br",{},"br-"+n)]})}const Me=({text:t,fontName:e="",fontSize:r="17px",fontColor:n,alignment:i=Tn.LEFT,backgroundColor:s,cornerRadius:o=0,htmlFor:a})=>{const c={fontFamily:[e,"-apple-system","BlinkMacSystemFont","sans-serif"].filter(Boolean).join(", "),fontSize:r,color:le(n)||"#000000",textAlign:_a(i),backgroundColor:le(s)||"transparent",borderRadius:o},h=typeof t=="string"&&t.trim()&&ya(t);return a?u("label",{"data-ui":"gui-label",part:"gui-label",style:c,htmlFor:a,children:h}):u("div",{"data-ui":"gui-label",part:"gui-label",style:c,children:h})},ba=({title:t,image:e,responseBody:r,backgroundColor:n="transparent",cornerRadius:i,highlightColor:s,dataTestId:o,borderColor:a,borderWidth:c,type:h="RESPONSE_BODY"})=>{var m,S;const[_,f]=Ve(!1),l=_&&le(s)?s:n,{perform:y}=Tr(),w=()=>{if(h!=="RESPONSE_BODY")return;const b=JSON.parse(JSON.stringify(r));rs(b),y(b)},d={height:"50px",width:"100%",padding:"10px 16px",textAlign:"center",fontSize:"16px",fontWeight:"400",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:5,borderRadius:i||0,borderStyle:a&&c?"solid":void 0,backgroundColor:(m=le(l))!=null?m:"transparent",borderColor:(S=le(a))!=null?S:"none",borderWidth:c!=null?c:0,overflow:"hidden",transition:".3s",outlineColor:sn};return u("button",{"data-ui":"gui-button",part:"gui-button",type:h==="FORM"?"submit":"button","data-test":o,onClick:w,style:d,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:[e&&u(ze,O({},e)),t&&u("div",{style:{flexGrow:e?0:1},children:u(Me,O({},t))})]})},Sd=r=>{var n=r,{items:t}=n,e=hr(n,["items"]);return u("div",{part:"gui-buttons","data-ui":"gui-buttons",style:O(O({},{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",alignSelf:"flex-end",justifyContent:"center",gap:"8px",width:"100%",height:"auto",alignContent:"flex-end",paddingTop:"20px"}),e),children:t.map(s=>{var o;return u(ba,O({dataTestId:"button-"+((o=s.title)==null?void 0:o.text)},s),Kc())})})},dr=({children:t,header:e,footer:r,backgroundColor:n="white",buttons:i})=>{const s=e?60:10,o=r?30:10,a={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",justifyContent:"center",margin:"0 auto",paddingTop:e?s+10+"px":"10px",paddingBottom:r?o+10+"px":"10px",paddingLeft:"20px",paddingRight:"20px",height:"100%",width:"100%",backgroundColor:le(n)};return u("div",{part:"gui-base-container","data-ui":"gui-base-container",id:"base-container",style:O({},a),children:[e&&u("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:s},children:u(bd,{closeButton:e.closeButton})}),u("div",{style:{height:"100%",width:"100%",flex:"1 1 100%",overflow:"hidden"},children:t}),(i==null?void 0:i.length)&&u(Sd,{items:i}),r&&u("div",{style:{position:"absolute",bottom:"0",left:"0",width:"100%",height:o},children:u(vd,O({},r))})]})},is=({text:t,fontName:e="",fontColor:r,alignment:n=Tn.LEFT,fontSize:i=17,backgroundColor:s,cornerRadius:o=0})=>u("div",{"data-ui":"gui-description",part:"gui-description",style:{fontFamily:[e,"-apple-system","BlinkMacSystemFont","sans-serif"].filter(Boolean).join(", "),fontSize:i,textAlign:_a(n),color:le(r)||"#000000",borderRadius:o,backgroundColor:le(s)||"transparent",whiteSpace:"pre-line"},children:t&&ya(t)}),Ed=({header:t,footer:e,image:r,title:n,description:i,buttons:s,backgroundColor:o})=>{const a=ct(null),[c,h]=Ve(!1);return wt(()=>{a.current&&h(a.current.scrollHeight>a.current.clientHeight+2)},[]),u(dr,{header:t,buttons:s,footer:e,backgroundColor:o,children:u("div",{part:"gui-status-screen",style:{display:"flex",justifyContent:c?"flex-start":"center",alignItems:"center",alignContent:"center",flex:1,height:"100%",flexDirection:"column"},children:[r&&u("div",{style:Wc,children:u(ze,O({},r))}),(n==null?void 0:n.text)&&u("div",{ref:a,style:{width:"100%",overflow:c?"auto":"hidden"},children:u("div",{style:{margin:"0 auto",fontSize:"20px",fontWeight:700,maxWidth:"345px",textAlign:"center",lineHeight:"1.2",display:"flex",flexDirection:"column",justifyContent:c?"flex-start":"center",alignItems:"center",alignContent:"center"},children:n&&u(Me,O({},n))})}),i&&u("div",{style:{lineHeight:"28px",fontWeight:"400",marginTop:"16px"},children:u(is,O({},i))})]})})},Id={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:1.61},Od={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"stretch",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Td=({title:t,header:e,footer:r,image:n,description:i,buttons:s,backgroundColor:o})=>u(dr,{header:e,footer:r,buttons:s,backgroundColor:o,children:u(He,{children:u("div",{style:G(O({},Od),{justifyContent:n?"flex-start":"center"}),children:[n&&u("div",{style:Id,children:u(ze,O({},n))}),t&&u("div",{style:{marginBottom:20,lineHeight:"39.2px"},children:u(Me,O({},t))}),i&&u("div",{style:{lineHeight:"28px",fontWeight:"400"},children:u(is,O({},i))})]})})}),Rd=({indicatorColor:t="black"})=>u(He,{children:u(va,{indicatorColor:t})}),Ca=({progressView:t,footer:e,backgroundColor:r})=>u(dr,{footer:e,backgroundColor:r,children:u("div",{style:{flex:"1 1 100%",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",flexDirection:"column",gap:"20px",height:"100%",width:"100%"},children:u(Rd,{indicatorColor:le(t==null?void 0:t.indicatorColor)||"#000000"})})}),Ad=({title:t,description:e,image:r,backgroundColor:n,cornerRadius:i=0,isLastChild:s})=>u("div",{className:"details-item",style:G(O({},{display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderBottom:s?"none":"1px solid #E0E0E0",padding:"16px 0",gap:16}),{backgroundColor:le(n)||"transparent",borderRadius:i}),children:[u("div",{style:{flex:"0 1 auto"},children:[u("div",{style:{marginBottom:5,fontWeight:"bold",lineHeight:"21px"},children:u(Me,O({},t))}),u("div",{style:{lineHeight:"21px",fontWeight:"400"},children:u(is,O({},e))})]}),u("div",{style:{aspectRatio:"1 / 1",width:120,height:120,flex:"0 0 120px"},children:u(ze,O({},r))})]}),xd={display:"flex",flexDirection:"column",padding:"0 16px"},Nd=({items:t,backgroundColor:e,cornerRadius:r=16})=>u("div",{className:"details",style:G(O({},xd),{backgroundColor:le(e)||"white",borderRadius:r}),children:t.map((n,i)=>u(Ad,O({isLastChild:i===t.length-1},n),i))}),kd=({title:t,header:e,footer:r,details:n,buttons:i,backgroundColor:s})=>{const o=ct(null),[a,c]=Ve(!1);return wt(()=>{o.current&&c(o.current.scrollHeight>o.current.clientHeight)},[]),u(dr,{header:e,buttons:i,footer:r,backgroundColor:s,children:u("div",{style:{display:"flex",flexDirection:"column",justifyContent:a?"flex-start":"center",height:"100%",minHeight:"100%",overflow:"auto"},ref:o,children:[u("div",{style:{marginBottom:t?"16px":"0",fontWeight:400,fontSize:"28px"},children:t&&u(Me,O({},t))}),n&&u(Nd,O({},n))]})})};var on=t=>t.type==="checkbox",ur=t=>t instanceof Date,Ye=t=>t==null;const Sa=t=>typeof t=="object";var xe=t=>!Ye(t)&&!Array.isArray(t)&&Sa(t)&&!ur(t),Ea=t=>xe(t)&&t.target?on(t.target)?t.target.checked:t.target.value:t,Dd=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,Ia=(t,e)=>t.has(Dd(e)),Md=t=>{const e=t.constructor&&t.constructor.prototype;return xe(e)&&e.hasOwnProperty("isPrototypeOf")},ss=typeof window!="undefined"&&typeof window.HTMLElement!="undefined"&&typeof document!="undefined";function Pe(t){let e;const r=Array.isArray(t),n=typeof FileList!="undefined"?t instanceof FileList:!1;if(t instanceof Date)e=new Date(t);else if(!(ss&&(t instanceof Blob||n))&&(r||xe(t)))if(e=r?[]:Object.create(Object.getPrototypeOf(t)),!r&&!Md(t))e=t;else for(const i in t)t.hasOwnProperty(i)&&(e[i]=Pe(t[i]));else return t;return e}var kn=t=>/^\w*$/.test(t),Ae=t=>t===void 0,os=t=>Array.isArray(t)?t.filter(Boolean):[],as=t=>os(t.replace(/["|']|\]/g,"").split(/\.|\[/)),L=(t,e,r)=>{if(!e||!xe(t))return r;const n=(kn(e)?[e]:as(e)).reduce((i,s)=>Ye(i)?i:i[s],t);return Ae(n)||n===t?Ae(t[e])?r:t[e]:n},tt=t=>typeof t=="boolean",Ee=(t,e,r)=>{let n=-1;const i=kn(e)?[e]:as(e),s=i.length,o=s-1;for(;++n<s;){const a=i[n];let c=r;if(n!==o){const h=t[a];c=xe(h)||Array.isArray(h)?h:isNaN(+i[n+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;t[a]=c,t=t[a]}};const Dn={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},dt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},xt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Oa=ce.createContext(null);Oa.displayName="HookFormContext";const ls=()=>ce.useContext(Oa);var Ta=(t,e,r,n=!0)=>{const i={defaultValues:e._defaultValues};for(const s in t)Object.defineProperty(i,s,{get:()=>{const o=s;return e._proxyFormState[o]!==dt.all&&(e._proxyFormState[o]=!n||dt.all),r&&(r[o]=!0),t[o]}});return i};const cs=typeof window!="undefined"?ce.useLayoutEffect:ce.useEffect;function Pd(t){const e=ls(),{control:r=e.control,disabled:n,name:i,exact:s}=t||{},[o,a]=ce.useState(r._formState),c=ce.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return cs(()=>r._subscribe({name:i,formState:c.current,exact:s,callback:h=>{!n&&a(O(O({},r._formState),h))}}),[i,n,s]),ce.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),ce.useMemo(()=>Ta(o,r,c.current,!1),[o,r])}var rt=t=>typeof t=="string",Ra=(t,e,r,n,i)=>rt(t)?(n&&e.watch.add(t),L(r,t,i)):Array.isArray(t)?t.map(s=>(n&&e.watch.add(s),L(r,s))):(n&&(e.watchAll=!0),r),ds=t=>Ye(t)||!Sa(t);function Nt(t,e,r=new WeakSet){if(ds(t)||ds(e))return t===e;if(ur(t)&&ur(e))return t.getTime()===e.getTime();const n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);for(const s of n){const o=t[s];if(!i.includes(s))return!1;if(s!=="ref"){const a=e[s];if(ur(o)&&ur(a)||xe(o)&&xe(a)||Array.isArray(o)&&Array.isArray(a)?!Nt(o,a,r):o!==a)return!1}}return!0}function Ud(t){const e=ls(),{control:r=e.control,name:n,defaultValue:i,disabled:s,exact:o,compute:a}=t||{},c=ce.useRef(i),h=ce.useRef(a),_=ce.useRef(void 0);h.current=a;const f=ce.useMemo(()=>r._getWatch(n,c.current),[r,n]),[l,y]=ce.useState(h.current?h.current(f):f);return cs(()=>r._subscribe({name:n,formState:{values:!0},exact:o,callback:w=>{if(!s){const d=Ra(n,r._names,w.values||r._formValues,!1,c.current);if(h.current){const m=h.current(d);Nt(m,_.current)||(y(m),_.current=m)}else y(d)}}}),[r,s,n,o]),ce.useEffect(()=>r._removeUnmounted()),l}function Ld(t){const e=ls(),{name:r,disabled:n,control:i=e.control,shouldUnregister:s,defaultValue:o}=t,a=Ia(i._names.array,r),c=ce.useMemo(()=>L(i._formValues,r,L(i._defaultValues,r,o)),[i,r,o]),h=Ud({control:i,name:r,defaultValue:c,exact:!0}),_=Pd({control:i,name:r,exact:!0}),f=ce.useRef(t),l=ce.useRef(void 0),y=ce.useRef(i.register(r,O(G(O({},t.rules),{value:h}),tt(t.disabled)?{disabled:t.disabled}:{})));f.current=t;const w=ce.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!L(_.errors,r)},isDirty:{enumerable:!0,get:()=>!!L(_.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!L(_.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!L(_.validatingFields,r)},error:{enumerable:!0,get:()=>L(_.errors,r)}}),[_,r]),d=ce.useCallback(C=>y.current.onChange({target:{value:Ea(C),name:r},type:Dn.CHANGE}),[r]),m=ce.useCallback(()=>y.current.onBlur({target:{value:L(i._formValues,r),name:r},type:Dn.BLUR}),[r,i._formValues]),S=ce.useCallback(C=>{const A=L(i._fields,r);A&&C&&(A._f.ref={focus:()=>C.focus&&C.focus(),select:()=>C.select&&C.select(),setCustomValidity:M=>C.setCustomValidity(M),reportValidity:()=>C.reportValidity()})},[i._fields,r]),b=ce.useMemo(()=>G(O({name:r,value:h},tt(n)||_.disabled?{disabled:_.disabled||n}:{}),{onChange:d,onBlur:m,ref:S}),[r,n,_.disabled,d,m,S,h]);return ce.useEffect(()=>{const C=i._options.shouldUnregister||s,A=l.current;A&&A!==r&&!a&&i.unregister(A),i.register(r,O(O({},f.current.rules),tt(f.current.disabled)?{disabled:f.current.disabled}:{}));const M=(x,P)=>{const me=L(i._fields,x);me&&me._f&&(me._f.mount=P)};if(M(r,!0),C){const x=Pe(L(i._options.defaultValues,r,f.current.defaultValue));Ee(i._defaultValues,r,x),Ae(L(i._formValues,r))&&Ee(i._formValues,r,x)}return!a&&i.register(r),l.current=r,()=>{(a?C&&!i._state.action:C)?i.unregister(r):M(r,!1)}},[r,i,a,s]),ce.useEffect(()=>{i._setDisabledField({disabled:n,name:r})},[n,r,i]),ce.useMemo(()=>({field:b,formState:_,fieldState:w}),[b,_,w])}const Aa=t=>t.render(Ld(t));var Fd=(t,e,r,n,i)=>e?G(O({},r[t]),{types:G(O({},r[t]&&r[t].types?r[t].types:{}),{[n]:i||!0})}):{},an=t=>Array.isArray(t)?t:[t],xa=()=>{let t=[];return{get observers(){return t},next:i=>{for(const s of t)s.next&&s.next(i)},subscribe:i=>(t.push(i),{unsubscribe:()=>{t=t.filter(s=>s!==i)}}),unsubscribe:()=>{t=[]}}};function Na(t,e){const r={};for(const n in t)if(t.hasOwnProperty(n)){const i=t[n],s=e[n];if(i&&xe(i)&&s){const o=Na(i,s);xe(o)&&(r[n]=o)}else t[n]&&(r[n]=s)}return r}var Qe=t=>xe(t)&&!Object.keys(t).length,us=t=>t.type==="file",ut=t=>typeof t=="function",Mn=t=>{if(!ss)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},ka=t=>t.type==="select-multiple",fs=t=>t.type==="radio",Vd=t=>fs(t)||on(t),hs=t=>Mn(t)&&t.isConnected;function $d(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=Ae(t)?n++:t[e[n++]];return t}function Bd(t){for(const e in t)if(t.hasOwnProperty(e)&&!Ae(t[e]))return!1;return!0}function Ne(t,e){const r=Array.isArray(e)?e:kn(e)?[e]:as(e),n=r.length===1?t:$d(t,r),i=r.length-1,s=r[i];return n&&delete n[s],i!==0&&(xe(n)&&Qe(n)||Array.isArray(n)&&Bd(n))&&Ne(t,r.slice(0,-1)),t}var Wd=t=>{for(const e in t)if(ut(t[e]))return!0;return!1};function Da(t){return Array.isArray(t)||xe(t)&&!Wd(t)}function ps(t,e={}){for(const r in t)Da(t[r])?(e[r]=Array.isArray(t[r])?[]:{},ps(t[r],e[r])):Ye(t[r])||(e[r]=!0);return e}function Ar(t,e,r){r||(r=ps(e));for(const n in t)Da(t[n])?Ae(e)||ds(r[n])?r[n]=ps(t[n],Array.isArray(t[n])?[]:{}):Ar(t[n],Ye(e)?{}:e[n],r[n]):r[n]=!Nt(t[n],e[n]);return r}const Ma={value:!1,isValid:!1},Pa={value:!0,isValid:!0};var Ua=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!Ae(t[0].attributes.value)?Ae(t[0].value)||t[0].value===""?Pa:{value:t[0].value,isValid:!0}:Pa:Ma}return Ma},La=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:n})=>Ae(t)?t:e?t===""?NaN:t&&+t:r&&rt(t)?new Date(t):n?n(t):t;const Fa={isValid:!1,value:null};var Va=t=>Array.isArray(t)?t.reduce((e,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:e,Fa):Fa;function $a(t){const e=t.ref;return us(e)?e.files:fs(e)?Va(t.refs).value:ka(e)?[...e.selectedOptions].map(({value:r})=>r):on(e)?Ua(t.refs).value:La(Ae(e.value)?t.ref.value:e.value,t)}var Hd=(t,e,r,n)=>{const i={};for(const s of t){const o=L(e,s);o&&Ee(i,s,o._f)}return{criteriaMode:r,names:[...t],fields:i,shouldUseNativeValidation:n}},Pn=t=>t instanceof RegExp,ln=t=>Ae(t)?t:Pn(t)?t.source:xe(t)?Pn(t.value)?t.value.source:t.value:t,Ba=t=>({isOnSubmit:!t||t===dt.onSubmit,isOnBlur:t===dt.onBlur,isOnChange:t===dt.onChange,isOnAll:t===dt.all,isOnTouch:t===dt.onTouched});const Wa="AsyncFunction";var jd=t=>!!t&&!!t.validate&&!!(ut(t.validate)&&t.validate.constructor.name===Wa||xe(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===Wa)),zd=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),Ha=(t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some(n=>t.startsWith(n)&&/^\.\w+/.test(t.slice(n.length))));const cn=(t,e,r,n)=>{for(const s of r||Object.keys(t)){const o=L(t,s);if(o){const i=o,{_f:a}=i,c=hr(i,["_f"]);if(a){if(a.refs&&a.refs[0]&&e(a.refs[0],s)&&!n)return!0;if(a.ref&&e(a.ref,a.name)&&!n)return!0;if(cn(c,e))break}else if(xe(c)&&cn(c,e))break}}};function ja(t,e,r){const n=L(t,r);if(n||kn(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const s=i.join("."),o=L(e,s),a=L(t,s);if(o&&!Array.isArray(o)&&r!==s)return{name:r};if(a&&a.type)return{name:s,error:a};if(a&&a.root&&a.root.type)return{name:`${s}.root`,error:a.root};i.pop()}return{name:r}}var Gd=(t,e,r,n)=>{r(t);const o=t,{name:i}=o,s=hr(o,["name"]);return Qe(s)||Object.keys(s).length>=Object.keys(e).length||Object.keys(s).find(a=>e[a]===(!n||dt.all))},Kd=(t,e,r)=>!t||!e||t===e||an(t).some(n=>n&&(r?n===e:n.startsWith(e)||e.startsWith(n))),qd=(t,e,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(e||t):(r?n.isOnBlur:i.isOnBlur)?!t:(r?n.isOnChange:i.isOnChange)?t:!0,Zd=(t,e)=>!os(L(t,e)).length&&Ne(t,e),Yd=(t,e,r)=>{const n=an(L(t,r));return Ee(n,"root",e[r]),Ee(t,r,n),t};function za(t,e,r="validate"){if(rt(t)||Array.isArray(t)&&t.every(rt)||tt(t)&&!t)return{type:r,message:rt(t)?t:"",ref:e}}var xr=t=>xe(t)&&!Pn(t)?t:{value:t,message:""},Ga=(t,e,r,n,i,s)=>$(null,null,function*(){const{ref:o,refs:a,required:c,maxLength:h,minLength:_,min:f,max:l,pattern:y,validate:w,name:d,valueAsNumber:m,mount:S}=t._f,b=L(r,d);if(!S||e.has(d))return{};const C=a?a[0]:o,A=W=>{i&&C.reportValidity&&(C.setCustomValidity(tt(W)?"":W||""),C.reportValidity())},M={},x=fs(o),P=on(o),me=x||P,_e=(m||us(o))&&Ae(o.value)&&Ae(b)||Mn(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,ee=Fd.bind(null,d,n,M),Q=(W,X,de,ue=xt.maxLength,we=xt.minLength)=>{const ye=W?X:de;M[d]=O({type:W?ue:we,message:ye,ref:o},ee(W?ue:we,ye))};if(s?!Array.isArray(b)||!b.length:c&&(!me&&(_e||Ye(b))||tt(b)&&!b||P&&!Ua(a).isValid||x&&!Va(a).isValid)){const{value:W,message:X}=rt(c)?{value:!!c,message:c}:xr(c);if(W&&(M[d]=O({type:xt.required,message:X,ref:C},ee(xt.required,X)),!n))return A(X),M}if(!_e&&(!Ye(f)||!Ye(l))){let W,X;const de=xr(l),ue=xr(f);if(!Ye(b)&&!isNaN(b)){const we=o.valueAsNumber||b&&+b;Ye(de.value)||(W=we>de.value),Ye(ue.value)||(X=we<ue.value)}else{const we=o.valueAsDate||new Date(b),ye=U=>new Date(new Date().toDateString()+" "+U),te=o.type=="time",z=o.type=="week";rt(de.value)&&b&&(W=te?ye(b)>ye(de.value):z?b>de.value:we>new Date(de.value)),rt(ue.value)&&b&&(X=te?ye(b)<ye(ue.value):z?b<ue.value:we<new Date(ue.value))}if((W||X)&&(Q(!!W,de.message,ue.message,xt.max,xt.min),!n))return A(M[d].message),M}if((h||_)&&!_e&&(rt(b)||s&&Array.isArray(b))){const W=xr(h),X=xr(_),de=!Ye(W.value)&&b.length>+W.value,ue=!Ye(X.value)&&b.length<+X.value;if((de||ue)&&(Q(de,W.message,X.message),!n))return A(M[d].message),M}if(y&&!_e&&rt(b)){const{value:W,message:X}=xr(y);if(Pn(W)&&!b.match(W)&&(M[d]=O({type:xt.pattern,message:X,ref:o},ee(xt.pattern,X)),!n))return A(X),M}if(w){if(ut(w)){const W=yield w(b,r),X=za(W,C);if(X&&(M[d]=O(O({},X),ee(xt.validate,X.message)),!n))return A(X.message),M}else if(xe(w)){let W={};for(const X in w){if(!Qe(W)&&!n)break;const de=za(yield w[X](b,r),C,X);de&&(W=O(O({},de),ee(X,de.message)),A(de.message),n&&(M[d]=W))}if(!Qe(W)&&(M[d]=O({ref:C},W),!n))return M}}return A(!0),M});const Xd={mode:dt.onSubmit,reValidateMode:dt.onChange,shouldFocusError:!0};function Jd(t={}){let e=O(O({},Xd),t),r={submitCount:0,isDirty:!1,isReady:!1,isLoading:ut(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1},n={},i=xe(e.defaultValues)||xe(e.values)?Pe(e.defaultValues||e.values)||{}:{},s=e.shouldUnregister?{}:Pe(i),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,h=0;const _={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f=O({},_);const l={array:xa(),state:xa()},y=e.criteriaMode===dt.all,w=v=>I=>{clearTimeout(h),h=setTimeout(v,I)},d=v=>$(null,null,function*(){if(!e.disabled&&(_.isValid||f.isValid||v)){const I=e.resolver?Qe((yield P()).errors):yield _e(n,!0);I!==r.isValid&&l.state.next({isValid:I})}}),m=(v,I)=>{!e.disabled&&(_.isValidating||_.validatingFields||f.isValidating||f.validatingFields)&&((v||Array.from(a.mount)).forEach(R=>{R&&(I?Ee(r.validatingFields,R,I):Ne(r.validatingFields,R))}),l.state.next({validatingFields:r.validatingFields,isValidating:!Qe(r.validatingFields)}))},S=(v,I=[],R,F,k=!0,D=!0)=>{if(F&&R&&!e.disabled){if(o.action=!0,D&&Array.isArray(L(n,v))){const H=R(L(n,v),F.argA,F.argB);k&&Ee(n,v,H)}if(D&&Array.isArray(L(r.errors,v))){const H=R(L(r.errors,v),F.argA,F.argB);k&&Ee(r.errors,v,H),Zd(r.errors,v)}if((_.touchedFields||f.touchedFields)&&D&&Array.isArray(L(r.touchedFields,v))){const H=R(L(r.touchedFields,v),F.argA,F.argB);k&&Ee(r.touchedFields,v,H)}(_.dirtyFields||f.dirtyFields)&&(r.dirtyFields=Ar(i,s)),l.state.next({name:v,isDirty:Q(v,I),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ee(s,v,I)},b=(v,I)=>{Ee(r.errors,v,I),l.state.next({errors:r.errors})},C=v=>{r.errors=v,l.state.next({errors:r.errors,isValid:!1})},A=(v,I,R,F)=>{const k=L(n,v);if(k){const D=L(s,v,Ae(R)?L(i,v):R);Ae(D)||F&&F.defaultChecked||I?Ee(s,v,I?D:$a(k._f)):de(v,D),o.mount&&d()}},M=(v,I,R,F,k)=>{let D=!1,H=!1;const ie={name:v};if(!e.disabled){if(!R||F){(_.isDirty||f.isDirty)&&(H=r.isDirty,r.isDirty=ie.isDirty=Q(),D=H!==ie.isDirty);const K=Nt(L(i,v),I);H=!!L(r.dirtyFields,v),K?Ne(r.dirtyFields,v):Ee(r.dirtyFields,v,!0),ie.dirtyFields=r.dirtyFields,D=D||(_.dirtyFields||f.dirtyFields)&&H!==!K}if(R){const K=L(r.touchedFields,v);K||(Ee(r.touchedFields,v,R),ie.touchedFields=r.touchedFields,D=D||(_.touchedFields||f.touchedFields)&&K!==R)}D&&k&&l.state.next(ie)}return D?ie:{}},x=(v,I,R,F)=>{const k=L(r.errors,v),D=(_.isValid||f.isValid)&&tt(I)&&r.isValid!==I;if(e.delayError&&R?(c=w(()=>b(v,R)),c(e.delayError)):(clearTimeout(h),c=null,R?Ee(r.errors,v,R):Ne(r.errors,v)),(R?!Nt(k,R):k)||!Qe(F)||D){const H=G(O(O({},F),D&&tt(I)?{isValid:I}:{}),{errors:r.errors,name:v});r=O(O({},r),H),l.state.next(H)}},P=v=>$(null,null,function*(){m(v,!0);const I=yield e.resolver(s,e.context,Hd(v||a.mount,n,e.criteriaMode,e.shouldUseNativeValidation));return m(v),I}),me=v=>$(null,null,function*(){const{errors:I}=yield P(v);if(v)for(const R of v){const F=L(I,R);F?Ee(r.errors,R,F):Ne(r.errors,R)}else r.errors=I;return I}),_e=(F,k,...D)=>$(null,[F,k,...D],function*(v,I,R={valid:!0}){for(const ie in v){const K=v[ie];if(K){const H=K,{_f:ve}=H,We=hr(H,["_f"]);if(ve){const Y=a.array.has(ve.name),ae=K._f&&jd(K._f);ae&&_.validatingFields&&m([ve.name],!0);const j=yield Ga(K,a.disabled,s,y,e.shouldUseNativeValidation&&!I,Y);if(ae&&_.validatingFields&&m([ve.name]),j[ve.name]&&(R.valid=!1,I))break;!I&&(L(j,ve.name)?Y?Yd(r.errors,j,ve.name):Ee(r.errors,ve.name,j[ve.name]):Ne(r.errors,ve.name))}!Qe(We)&&(yield _e(We,I,R))}}return R.valid}),ee=()=>{for(const v of a.unMount){const I=L(n,v);I&&(I._f.refs?I._f.refs.every(R=>!hs(R)):!hs(I._f.ref))&&Ke(v)}a.unMount=new Set},Q=(v,I)=>!e.disabled&&(v&&I&&Ee(s,v,I),!Nt(U(),i)),W=(v,I,R)=>Ra(v,a,O({},o.mount?s:Ae(I)?i:rt(v)?{[v]:I}:I),R,I),X=v=>os(L(o.mount?s:i,v,e.shouldUnregister?L(i,v,[]):[])),de=(v,I,R={})=>{const F=L(n,v);let k=I;if(F){const D=F._f;D&&(!D.disabled&&Ee(s,v,La(I,D)),k=Mn(D.ref)&&Ye(I)?"":I,ka(D.ref)?[...D.ref.options].forEach(H=>H.selected=k.includes(H.value)):D.refs?on(D.ref)?D.refs.forEach(H=>{(!H.defaultChecked||!H.disabled)&&(Array.isArray(k)?H.checked=!!k.find(ie=>ie===H.value):H.checked=k===H.value||!!k)}):D.refs.forEach(H=>H.checked=H.value===k):us(D.ref)?D.ref.value="":(D.ref.value=k,D.ref.type||l.state.next({name:v,values:Pe(s)})))}(R.shouldDirty||R.shouldTouch)&&M(v,k,R.shouldTouch,R.shouldDirty,!0),R.shouldValidate&&z(v)},ue=(v,I,R)=>{for(const F in I){if(!I.hasOwnProperty(F))return;const k=I[F],D=v+"."+F,H=L(n,D);(a.array.has(v)||xe(k)||H&&!H._f)&&!ur(k)?ue(D,k,R):de(D,k,R)}},we=(v,I,R={})=>{const F=L(n,v),k=a.array.has(v),D=Pe(I);Ee(s,v,D),k?(l.array.next({name:v,values:Pe(s)}),(_.isDirty||_.dirtyFields||f.isDirty||f.dirtyFields)&&R.shouldDirty&&l.state.next({name:v,dirtyFields:Ar(i,s),isDirty:Q(v,D)})):F&&!F._f&&!Ye(D)?ue(v,D,R):de(v,D,R),Ha(v,a)&&l.state.next(G(O({},r),{name:v})),l.state.next({name:o.mount?v:void 0,values:Pe(s)})},ye=v=>$(null,null,function*(){o.mount=!0;const I=v.target;let R=I.name,F=!0;const k=L(n,R),D=K=>{F=Number.isNaN(K)||ur(K)&&isNaN(K.getTime())||Nt(K,L(s,R,K))},H=Ba(e.mode),ie=Ba(e.reValidateMode);if(k){let K,ve;const We=I.type?$a(k._f):Ea(v),Y=v.type===Dn.BLUR||v.type===Dn.FOCUS_OUT,ae=!zd(k._f)&&!e.resolver&&!L(r.errors,R)&&!k._f.deps||qd(Y,L(r.touchedFields,R),r.isSubmitted,ie,H),j=Ha(R,a,Y);Ee(s,R,We),Y?(!I||!I.readOnly)&&(k._f.onBlur&&k._f.onBlur(v),c&&c(0)):k._f.onChange&&k._f.onChange(v);const ge=M(R,We,Y),qe=!Qe(ge)||j;if(!Y&&l.state.next({name:R,type:v.type,values:Pe(s)}),ae)return(_.isValid||f.isValid)&&(e.mode==="onBlur"?Y&&d():Y||d()),qe&&l.state.next(O({name:R},j?{}:ge));if(!Y&&j&&l.state.next(O({},r)),e.resolver){const{errors:ke}=yield P([R]);if(D(We),F){const he=ja(r.errors,n,R),q=ja(ke,n,he.name||R);K=q.error,R=q.name,ve=Qe(ke)}}else m([R],!0),K=(yield Ga(k,a.disabled,s,y,e.shouldUseNativeValidation))[R],m([R]),D(We),F&&(K?ve=!1:(_.isValid||f.isValid)&&(ve=yield _e(n,!0)));F&&(k._f.deps&&(!Array.isArray(k._f.deps)||k._f.deps.length>0)&&z(k._f.deps),x(R,ve,K,ge))}}),te=(v,I)=>{if(L(r.errors,I)&&v.focus)return v.focus(),1},z=(R,...F)=>$(null,[R,...F],function*(v,I={}){let k,D;const H=an(v);if(e.resolver){const ie=yield me(Ae(v)?v:H);k=Qe(ie),D=v?!H.some(K=>L(ie,K)):k}else v?(D=(yield Promise.all(H.map(ie=>$(null,null,function*(){const K=L(n,ie);return yield _e(K&&K._f?{[ie]:K}:K)})))).every(Boolean),!(!D&&!r.isValid)&&d()):D=k=yield _e(n);return l.state.next(G(O(O({},!rt(v)||(_.isValid||f.isValid)&&k!==r.isValid?{}:{name:v}),e.resolver||!v?{isValid:k}:{}),{errors:r.errors})),I.shouldFocus&&!D&&cn(n,te,v?H:a.mount),D}),U=(v,I)=>{let R=O({},o.mount?s:i);return I&&(R=Na(I.dirtyFields?r.dirtyFields:r.touchedFields,R)),Ae(v)?R:rt(v)?L(R,v):v.map(F=>L(R,F))},Z=(v,I)=>({invalid:!!L((I||r).errors,v),isDirty:!!L((I||r).dirtyFields,v),error:L((I||r).errors,v),isValidating:!!L(r.validatingFields,v),isTouched:!!L((I||r).touchedFields,v)}),re=v=>{v&&an(v).forEach(I=>Ne(r.errors,I)),l.state.next({errors:v?r.errors:{}})},Ie=(v,I,R)=>{const F=(L(n,v,{_f:{}})._f||{}).ref,ve=L(r.errors,v)||{},{ref:D,message:H,type:ie}=ve,K=hr(ve,["ref","message","type"]);Ee(r.errors,v,G(O(O({},K),I),{ref:F})),l.state.next({name:v,errors:r.errors,isValid:!1}),R&&R.shouldFocus&&F&&F.focus&&F.focus()},ne=(v,I)=>ut(v)?l.state.subscribe({next:R=>"values"in R&&v(W(void 0,I),R)}):W(v,I,!0),V=v=>l.state.subscribe({next:I=>{Kd(v.name,I.name,v.exact)&&Gd(I,v.formState||_,Xt,v.reRenderRoot)&&v.callback(G(O(O({values:O({},s)},r),I),{defaultValues:i}))}}).unsubscribe,J=v=>(o.mount=!0,f=O(O({},f),v.formState),V(G(O({},v),{formState:f}))),Ke=(v,I={})=>{for(const R of v?an(v):a.mount)a.mount.delete(R),a.array.delete(R),I.keepValue||(Ne(n,R),Ne(s,R)),!I.keepError&&Ne(r.errors,R),!I.keepDirty&&Ne(r.dirtyFields,R),!I.keepTouched&&Ne(r.touchedFields,R),!I.keepIsValidating&&Ne(r.validatingFields,R),!e.shouldUnregister&&!I.keepDefaultValue&&Ne(i,R);l.state.next({values:Pe(s)}),l.state.next(O(O({},r),I.keepDirty?{isDirty:Q()}:{})),!I.keepIsValid&&d()},Xe=({disabled:v,name:I})=>{(tt(v)&&o.mount||v||a.disabled.has(I))&&(v?a.disabled.add(I):a.disabled.delete(I))},ft=(v,I={})=>{let R=L(n,v);const F=tt(I.disabled)||tt(e.disabled);return Ee(n,v,G(O({},R||{}),{_f:O(G(O({},R&&R._f?R._f:{ref:{name:v}}),{name:v,mount:!0}),I)})),a.mount.add(v),R?Xe({disabled:tt(I.disabled)?I.disabled:e.disabled,name:v}):A(v,!0,I.value),G(O(O({},F?{disabled:I.disabled||e.disabled}:{}),e.progressive?{required:!!I.required,min:ln(I.min),max:ln(I.max),minLength:ln(I.minLength),maxLength:ln(I.maxLength),pattern:ln(I.pattern)}:{}),{name:v,onChange:ye,onBlur:ye,ref:k=>{if(k){ft(v,I),R=L(n,v);const D=Ae(k.value)&&k.querySelectorAll&&k.querySelectorAll("input,select,textarea")[0]||k,H=Vd(D),ie=R._f.refs||[];if(H?ie.find(K=>K===D):D===R._f.ref)return;Ee(n,v,{_f:O(O({},R._f),H?{refs:[...ie.filter(hs),D,...Array.isArray(L(i,v))?[{}]:[]],ref:{type:D.type,name:v}}:{ref:D})}),A(v,!1,void 0,D)}else R=L(n,v,{}),R._f&&(R._f.mount=!1),(e.shouldUnregister||I.shouldUnregister)&&!(Ia(a.array,v)&&o.action)&&a.unMount.add(v)}})},nt=()=>e.shouldFocusError&&cn(n,te,a.mount),Ht=v=>{tt(v)&&(l.state.next({disabled:v}),cn(n,(I,R)=>{const F=L(n,R);F&&(I.disabled=F._f.disabled||v,Array.isArray(F._f.refs)&&F._f.refs.forEach(k=>{k.disabled=F._f.disabled||v}))},0,!1))},ht=(v,I)=>R=>$(null,null,function*(){let F;R&&(R.preventDefault&&R.preventDefault(),R.persist&&R.persist());let k=Pe(s);if(l.state.next({isSubmitting:!0}),e.resolver){const{errors:D,values:H}=yield P();r.errors=D,k=Pe(H)}else yield _e(n);if(a.disabled.size)for(const D of a.disabled)Ne(k,D);if(Ne(r.errors,"root"),Qe(r.errors)){l.state.next({errors:{}});try{yield v(k,R)}catch(D){F=D}}else I&&(yield I(O({},r.errors),R)),nt(),setTimeout(nt);if(l.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Qe(r.errors)&&!F,submitCount:r.submitCount+1,errors:r.errors}),F)throw F}),Yt=(v,I={})=>{L(n,v)&&(Ae(I.defaultValue)?we(v,Pe(L(i,v))):(we(v,I.defaultValue),Ee(i,v,Pe(I.defaultValue))),I.keepTouched||Ne(r.touchedFields,v),I.keepDirty||(Ne(r.dirtyFields,v),r.isDirty=I.defaultValue?Q(v,Pe(L(i,v))):Q()),I.keepError||(Ne(r.errors,v),_.isValid&&d()),l.state.next(O({},r)))},jt=(v,I={})=>{const R=v?Pe(v):i,F=Pe(R),k=Qe(v),D=k?i:F;if(I.keepDefaultValues||(i=R),!I.keepValues){if(I.keepDirtyValues){const H=new Set([...a.mount,...Object.keys(Ar(i,s))]);for(const ie of Array.from(H))L(r.dirtyFields,ie)?Ee(D,ie,L(s,ie)):we(ie,L(D,ie))}else{if(ss&&Ae(v))for(const H of a.mount){const ie=L(n,H);if(ie&&ie._f){const K=Array.isArray(ie._f.refs)?ie._f.refs[0]:ie._f.ref;if(Mn(K)){const ve=K.closest("form");if(ve){ve.reset();break}}}}if(I.keepFieldsRef)for(const H of a.mount)we(H,L(D,H));else n={}}s=e.shouldUnregister?I.keepDefaultValues?Pe(i):{}:Pe(D),l.array.next({values:O({},D)}),l.state.next({values:O({},D)})}a={mount:I.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!_.isValid||!!I.keepIsValid||!!I.keepDirtyValues,o.watch=!!e.shouldUnregister,l.state.next({submitCount:I.keepSubmitCount?r.submitCount:0,isDirty:k?!1:I.keepDirty?r.isDirty:!!(I.keepDefaultValues&&!Nt(v,i)),isSubmitted:I.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:k?{}:I.keepDirtyValues?I.keepDefaultValues&&s?Ar(i,s):r.dirtyFields:I.keepDefaultValues&&v?Ar(i,v):I.keepDirty?r.dirtyFields:{},touchedFields:I.keepTouched?r.touchedFields:{},errors:I.keepErrors?r.errors:{},isSubmitSuccessful:I.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Ct=(v,I)=>jt(ut(v)?v(s):v,I),zt=(v,I={})=>{const R=L(n,v),F=R&&R._f;if(F){const k=F.refs?F.refs[0]:F.ref;k.focus&&(k.focus(),I.shouldSelect&&ut(k.select)&&k.select())}},Xt=v=>{r=O(O({},r),v)},st={control:{register:ft,unregister:Ke,getFieldState:Z,handleSubmit:ht,setError:Ie,_subscribe:V,_runSchema:P,_focusError:nt,_getWatch:W,_getDirty:Q,_setValid:d,_setFieldArray:S,_setDisabledField:Xe,_setErrors:C,_getFieldArray:X,_reset:jt,_resetDefaultValues:()=>ut(e.defaultValues)&&e.defaultValues().then(v=>{Ct(v,e.resetOptions),l.state.next({isLoading:!1})}),_removeUnmounted:ee,_disableForm:Ht,_subjects:l,_proxyFormState:_,get _fields(){return n},get _formValues(){return s},get _state(){return o},set _state(v){o=v},get _defaultValues(){return i},get _names(){return a},set _names(v){a=v},get _formState(){return r},get _options(){return e},set _options(v){e=O(O({},e),v)}},subscribe:J,trigger:z,register:ft,handleSubmit:ht,watch:ne,setValue:we,getValues:U,reset:Ct,resetField:Yt,clearErrors:re,unregister:Ke,setError:Ie,setFocus:zt,getFieldState:Z};return G(O({},st),{formControl:st})}function Qd(t={}){const e=ce.useRef(void 0),r=ce.useRef(void 0),[n,i]=ce.useState({isDirty:!1,isValidating:!1,isLoading:ut(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,isReady:!1,defaultValues:ut(t.defaultValues)?void 0:t.defaultValues});if(!e.current)if(t.formControl)e.current=G(O({},t.formControl),{formState:n}),t.defaultValues&&!ut(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const o=Jd(t),{formControl:a}=o,c=hr(o,["formControl"]);e.current=G(O({},c),{formState:n})}const s=e.current.control;return s._options=t,cs(()=>{const a=s._subscribe({formState:s._proxyFormState,callback:()=>i(O({},s._formState)),reRenderRoot:!0});return i(c=>G(O({},c),{isReady:!0})),s._formState.isReady=!0,a},[s]),ce.useEffect(()=>s._disableForm(t.disabled),[s,t.disabled]),ce.useEffect(()=>{t.mode&&(s._options.mode=t.mode),t.reValidateMode&&(s._options.reValidateMode=t.reValidateMode)},[s,t.mode,t.reValidateMode]),ce.useEffect(()=>{t.errors&&(s._setErrors(t.errors),s._focusError())},[s,t.errors]),ce.useEffect(()=>{t.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,t.shouldUnregister]),ce.useEffect(()=>{if(s._proxyFormState.isDirty){const a=s._getDirty();a!==n.isDirty&&s._subjects.state.next({isDirty:a})}},[s,n.isDirty]),ce.useEffect(()=>{t.values&&!Nt(t.values,r.current)?(s._reset(t.values,O({keepFieldsRef:!0},s._options.resetOptions)),r.current=t.values,i(a=>O({},a))):s._resetDefaultValues()},[s,t.values]),ce.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next(O({},s._formState))),s._removeUnmounted()}),e.current.formState=Ta(n,s),e.current}const Nr=(t,e)=>{const r={};return t.forEach((n,i)=>{if(n.type===ma.NOT_EMPTY&&(r.required=s=>e&&jc(s)?n.message:!0),n.type===ma.REGEX){const s=new RegExp(n.regex);r[`regex_${i}`]=o=>!e&&!o?!0:typeof o!="string"?n.message:s.test(o)||n.message}}),r},eu=({isOpen:t,image:e})=>u("div",{"data-ui":"gui-custom-select-chevron",style:{width:"16px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center",transform:t?"rotate(180deg)":"none",transformOrigin:"50% 50%",transition:".2s",flexShrink:0},children:e?u(ze,O({},e)):u(ze,{imageId:"chevronDown"})}),tu=({isChosen:t,option:e,onOptionClickCallback:r,isHovered:n,onHover:i,onHoverEnd:s})=>{const o=t?e.layoutSelected.image:e.layout.image;return u("div",{style:{padding:"5px 8px",background:((c,h)=>{var _,f,l,y;if(!c&&!h)return(_=le(e.layout.backgroundColor))!=null?_:"transparent";if(!c&&h)return(f=le(e.layoutSelected.backgroundColor))!=null?f:"transparent";if(c&&!h)return(l=le(e.layout.highlightColor))!=null?l:"#F4F4F4";if(c&&h)return(y=le(e.layoutSelected.highlightColor))!=null?y:"#F4F4F4"})(n,t),fontSize:13,display:"flex",justifyContent:"space-between",alignItems:"center",gap:8,borderRadius:4,cursor:"pointer"},"data-select-id":e.value,onClick:r(e),onMouseEnter:i,onMouseLeave:s,children:[u(Me,G(O({},e.layout.title),{text:e.label})),u("div",{style:{display:"flex",flexShrink:0},children:u(ze,O({},o))})]},e.value)},Ka=({name:t,options:e,isMulti:r=!1,isClearable:n=!1,value:i,onChange:s,placeholder:o,closeMenuOnSelect:a=!0,onBlur:c,parentElementRef:h,controlLayout:_,pickerLayout:f})=>{var W,X,de,ue,we,ye,te,z;const[l,y]=Ve(!1),[w,d]=Ve(i),[m,S]=Ve("down"),[b,C]=Ve(null),A=ct(null),M=ct(null);ar(()=>{var ne,V,J;if(!l)return;const U=(ne=A.current)==null?void 0:ne.getBoundingClientRect(),Z=(V=M.current)==null?void 0:V.getBoundingClientRect(),re=(J=h.current)==null?void 0:J.getBoundingClientRect();if(!U||!Z||!re)return;const Ie=U.bottom+Z.height<re.bottom;S(Ie?"down":"up")},[l]),wt(()=>{s(w)},[w]);const x=U=>Z=>{var re;Z.stopPropagation(),(Z.type==="touchend"||((re=Z.nativeEvent)==null?void 0:re.pointerType)==="touch")&&C(null),a&&y(!1),d(Ie=>r?Ie.some(V=>V.value===U.value)?Ie.filter(V=>V.value!==U.value):[...Ie,U]:[U])},P=()=>{c&&c(),y(!1)},me=U=>Z=>{Z.stopPropagation(),d(re=>re.filter(Ie=>Ie.value!==U.value))},_e=U=>{U.stopPropagation(),d([])},ee=(W=le(_==null?void 0:_.borderColor))!=null?W:"#D9D9D9",Q=(X=le(_==null?void 0:_.highlightBorderColor))!=null?X:"#7E57C5";return u("div",{"data-ui":"gui-custom-select",ref:A,children:u("div",{"data-ui":"gui-select-name-"+t,style:{backgroundColor:le(_==null?void 0:_.backgroundColor),borderStyle:"solid",borderColor:l?Q:ee,borderWidth:(de=_==null?void 0:_.borderWidth)!=null?de:1,borderRadius:(ue=_==null?void 0:_.cornerRadius)!=null?ue:8,minHeight:"41px",position:"relative",zIndex:"auto",padding:"8px 11px 8px 8px",cursor:"pointer",display:"flex",alignItems:"center",gap:10},tabIndex:0,onBlur:P,onClick:()=>y(!l),children:[u("div",{"data-ui":"gui-custom-select-multi-choose-container",style:{display:"flex",gap:8,alignItems:"flex-start",alignContent:"center",flexWrap:"wrap",width:"100%"},children:[!w.length&&u("span",{style:{fontSize:13,color:"#8C8C8C"},children:o}),w.map(U=>{var Z,re,Ie,ne,V;if(r){const J=_==null?void 0:_.chip;return u("div",{style:{padding:"0px 5px",display:"flex",gap:8,backgroundColor:(Z=le(J==null?void 0:J.backgroundColor))!=null?Z:"#F2F2F2",borderRadius:(re=J==null?void 0:J.cornerRadius)!=null?re:4,userSelect:"none",alignItems:"center"},children:[u(Me,G(O({},J==null?void 0:J.title),{fontSize:(ne=(Ie=J==null?void 0:J.title)==null?void 0:Ie.fontSize)!=null?ne:13,text:U.label})),u("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px"},onClick:me(U),children:J!=null&&J.removeImage?u(ze,O({},J.removeImage)):u(ze,{imageId:"cross"})})]},U.value)}else{const J=_==null?void 0:_.title;return u("div",{style:{display:"flex",userSelect:"none"},children:u(Me,G(O({},J),{fontSize:(V=J==null?void 0:J.fontSize)!=null?V:13,text:U.label}))},U.value)}})]}),n&&w.length?u("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px",zIndex:1},onClick:_e,children:_!=null&&_.clearButton?u(ze,O({},_.clearButton)):u(ze,{imageId:"cross"})}):null,n?u("div",{style:{width:"1px",alignSelf:"stretch",backgroundColor:"#D9D9D9"}}):null,u(eu,{isOpen:l,image:_==null?void 0:_.expandButton}),l&&u("div",{"data-ui":"gui-custom-select-dropdown-menu",ref:M,style:G(O({position:"absolute"},m==="down"?{top:"calc(100% + 1px)"}:{bottom:"calc(100% + 1px)"}),{left:0,border:"1px solid #e8e8e8",width:"100%",backgroundColor:(we=le(f==null?void 0:f.backgroundColor))!=null?we:"#ffffff",borderRadius:(ye=f==null?void 0:f.cornerRadius)!=null?ye:8,borderStyle:"solid",borderColor:(te=le(f==null?void 0:f.borderColor))!=null?te:"#D9D9D9",borderWidth:(z=f==null?void 0:f.borderWidth)!=null?z:1,maxHeight:"500px",overflow:"auto",zIndex:2,boxShadow:"0 3px 15px rgba(0,0,0,.2)",padding:"8px",display:"flex",flexDirection:"column",gap:"2px",cursor:"default"}),onClick:U=>U.stopPropagation(),children:e.map(U=>{const Z=w.some(re=>re.value===U.value);return u(tu,{isChosen:Z,option:U,onOptionClickCallback:x,isHovered:b===U.value,onHover:()=>C(U.value),onHoverEnd:()=>C(null)},U.label)})})]})})},ru=({control:t,layout:e,dataSourceQuestion:r,parentElementRef:n})=>{const i=r.options.map(o=>({value:String(o.id),label:o.text,layout:e.option,layoutSelected:e.optionSelected})),s=String(r.id);return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px",boxSizing:"border-box"},children:[e.title&&u(Me,G(O({},e.title),{text:r.text,htmlFor:s})),u(Aa,{name:s,control:t,rules:{required:!!r.required,validate:Nr(r.validators,!!r.required)},render:({field:o})=>{const a=i.find(c=>c.value===o.value);return u(Ka,{options:i,placeholder:r.placeholder,closeMenuOnSelect:!0,name:o.name,value:a?[a]:[],onChange:c=>{const h=c&&Array.isArray(c)&&c.length?c[0].value:null;o.onChange(h)},parentElementRef:n,isMulti:!1,isClearable:!1,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},nu=({control:t,layout:e,dataSourceQuestion:r,parentElementRef:n})=>{const i=r.options.map(o=>({value:String(o.id),label:o.text,layout:e.option,layoutSelected:e.optionSelected})),s=String(r.id);return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px",boxSizing:"border-box"},children:[e.title&&u(Me,G(O({},e.title),{text:r.text,htmlFor:s})),u(Aa,{name:s,control:t,rules:{required:!!r.required,validate:Nr(r.validators,!!r.required)},render:({field:o})=>{const a=i.filter(c=>{var h;return(h=o.value)==null?void 0:h.includes(c.value)});return u(Ka,{name:s,options:i,placeholder:r.placeholder,closeMenuOnSelect:!1,value:a,onChange:c=>{const h=c.map(_=>_.value);o.onChange(h)},parentElementRef:n,isMulti:!0,isClearable:!0,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},qa=()=>{const[t,e]=Ve(!1);return wt(()=>{const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("keydown",r),window.addEventListener("mousedown",n),()=>{window.removeEventListener("keydown",r),window.removeEventListener("mousedown",n)}},[]),t},iu=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[s,o]=Ve(!1),a=qa(),c=String(r.id),_=i(c)===String(t.id),f=e.option,l=e.optionSelected,y={backgroundColor:le(l.backgroundColor),borderRadius:l.cornerRadius},w={backgroundColor:le(f.backgroundColor),borderRadius:f.cornerRadius},d=s&&a?{filter:`drop-shadow(0 0 1px ${sn})`}:{};return u("div",{children:u("label",{style:O({display:"flex",alignItems:"center",alignContent:"center",gap:8,cursor:"pointer"},_?y:w),children:[u("div",{style:O({display:"flex",alignItems:"center",alignContent:"center"},d),children:u(ze,O({},_?l.image:f.image))}),u(Me,G(O({},_?l.title:f.title),{text:t.text})),u("input",G(O({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},n(c,{required:!!r.required,validate:Nr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>o(!0),onBlur:()=>o(!1)}))]})},t.id)},su=({layout:t,register:e,watch:r,dataSourceQuestion:n})=>u("div",{style:{boxSizing:"border-box"},children:u("fieldset",{style:{margin:0,padding:0,border:"none",display:"flex",flexDirection:"column",gap:"16px"},children:[t.title&&u("legend",{style:{margin:0,padding:0,marginBottom:"16px"},children:u(Me,G(O({},t.title),{text:n.text}))}),n.options.map(i=>u(iu,{register:e,watch:r,layout:t,option:i,dataSourceQuestion:n},i.id))]})}),ou=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[s,o]=Ve(!1),a=qa(),c=String(r.id),_=i(c)===String(t.id),f=e.option,l=e.optionSelected,y={borderRadius:f.cornerRadius,background:le(f.backgroundColor),borderColor:le(f.borderColor),borderWidth:f.borderWidth},w={borderRadius:l.cornerRadius,background:le(l.backgroundColor),borderColor:le(l.borderColor),borderWidth:l.borderWidth},d=s&&a?{outline:`2px solid ${sn}`}:{};return u("div",{style:{display:"flex",flexGrow:1},children:u("label",{style:O(O({width:"100%",padding:"8px 16px",cursor:"pointer",borderStyle:"solid",position:"relative"},_?w:y),d),children:[u("input",G(O({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},n(c,{required:!!r.required,validate:Nr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>o(!0),onBlur:()=>o(!1)})),u(Me,G(O({},_?l.title:f.title),{text:t.text}))]})},t.id)},au=({layout:t,watch:e,register:r,dataSourceQuestion:n})=>u("div",{style:{boxSizing:"border-box"},children:u("fieldset",{style:{margin:0,padding:0,border:"none"},children:[t.title&&u("legend",{style:{margin:0,padding:0,marginBottom:"16px"},children:u(Me,G(O({},t.title),{text:n.text}))}),u("div",{style:{display:"flex",justifyContent:"center",gap:5},children:n.options.map(i=>u(ou,{register:r,watch:e,layout:t,option:i,dataSourceQuestion:n},i.id))})]})}),lu=({children:t,backgroundColor:e,cornerRadius:r=0,isError:n,isRequired:i,validationBorderColor:s,validationBorderWidth:o})=>{const a=O({position:"relative",flexShrink:0,width:"100%",fontWeight:300,lineHeight:"140%",backgroundColor:le(e)||"transparent",borderRadius:r,padding:"16px",boxSizing:"border-box",height:"auto"},n&&O(O({},le(s)&&{borderColor:s,borderStyle:"solid"}),o&&{borderWidth:o}));return u("div",{style:a,children:[i&&u("span",{style:{color:le(s),position:"absolute",left:"6px",top:"18px"},children:"*"}),t]})},cu=({validationErrorsTypes:t,title:e})=>t?u("div",{style:{width:"100%",fontSize:12},children:Object.entries(t).map(([r,n])=>u(Me,G(O({},e),{text:n}),r))}):null,du=({layout:t,dataSourceQuestion:e,register:r})=>{var s,o,a,c,h,_,f,l,y,w,d,m,S,b,C,A;const n=String(e.id),i=M=>M?M===An.EMAIL?"email":M===An.FREE_TEXT?"text":M===An.NUMBER?"number":M===An.SECURE?"password":"text":"text";return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[u(Me,G(O({},t.title),{text:e.text,htmlFor:n})),u("input",G(O({},r(n,{required:!!e.required,validate:Nr(e.validators,!!e.required)})),{id:n,type:i((s=t.textField)==null?void 0:s.inputType),style:{fontFamily:(a=(o=t==null?void 0:t.textField)==null?void 0:o.fontName)!=null?a:"sans-serif",fontSize:(h=(c=t==null?void 0:t.textField)==null?void 0:c.fontSize)!=null?h:15,color:(f=le((_=t==null?void 0:t.textField)==null?void 0:_.fontColor))!=null?f:"#000000",height:"42px",borderWidth:(y=(l=t==null?void 0:t.textField)==null?void 0:l.borderWidth)!=null?y:1,borderColor:(d=le((w=t==null?void 0:t.textField)==null?void 0:w.borderColor))!=null?d:"#d9d9d9",borderStyle:"solid",borderRadius:(S=(m=t==null?void 0:t.textField)==null?void 0:m.cornerRadius)!=null?S:8,padding:"11px",boxSizing:"border-box",backgroundColor:(C=le((b=t==null?void 0:t.textField)==null?void 0:b.backgroundColor))!=null?C:"#FFFFFF",outlineColor:sn},placeholder:(A=e.placeholder)!=null?A:"","data-id":n}))]})},uu=({layout:t,dataSourceQuestion:e,register:r})=>{var i,s,o,a,c,h,_,f,l,y,w,d,m;const n=String(e.id);return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[u(Me,G(O({},t.title),{text:e.text,htmlFor:n})),u("textarea",G(O({},r(n,{required:!!e.required,validate:Nr(e.validators,!!e.required)})),{id:n,placeholder:(i=e.placeholder)!=null?i:"",onInput:S=>{S.currentTarget.style.height="auto",S.currentTarget.style.height=`${S.currentTarget.scrollHeight-15}px`},"data-id":n,style:{fontFamily:"sans-serif",fontSize:(o=(s=t==null?void 0:t.textField)==null?void 0:s.fontSize)!=null?o:15,color:(c=le((a=t==null?void 0:t.textField)==null?void 0:a.fontColor))!=null?c:"#000000",resize:"none",overflow:"hidden",height:"42px",minHeight:"42px",borderWidth:(_=(h=t==null?void 0:t.textField)==null?void 0:h.borderWidth)!=null?_:1,borderColor:(l=le((f=t==null?void 0:t.textField)==null?void 0:f.borderColor))!=null?l:"#d9d9d9",borderStyle:"solid",borderRadius:(w=(y=t==null?void 0:t.textField)==null?void 0:y.cornerRadius)!=null?w:8,padding:"11px",boxSizing:"border-box",backgroundColor:(m=le((d=t==null?void 0:t.textField)==null?void 0:d.backgroundColor))!=null?m:"#FFFFFF",outlineColor:sn}}))]})},Wt=class Wt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,Nn);super({errorCode:e,errorCodeKey:s,errorEnumName:Wt.ERROR_ENUM_NAME,module:Wt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Wt.ERROR_ENUM_NAME,shortDomainCode:Wt.SHORT_CODE})}};Wt.MODULE=xn,Wt.ERROR_ENUM_NAME="GuiModuleError",Wt.SHORT_CODE="GM";let dn=Wt;const fu=({header:t,title:e,buttons:r,footer:n,questions:i,dataSource:s,properties:o,backgroundColor:a})=>{const{perform:c}=Tr(),h=o?zc(s.questions,o):{},_=ct(null),{register:f,handleSubmit:l,formState:{errors:y},reset:w,watch:d,control:m}=Qd({criteriaMode:"all",defaultValues:h});return u(dr,{header:t,footer:n,backgroundColor:a,children:u("form",{onSubmit:l(b=>{c(Hc(b)),w()}),style:{height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},noValidate:!0,children:[u("div",{style:{flex:"1 1 100%",display:"flex",justifyContent:"flex-start",alignItems:"center",alignContent:"center",flexDirection:"column",gap:"10px",height:"100%",width:"100%",overflow:"auto",position:"relative",backgroundColor:le(i.backgroundColor)||"transparent"},ref:_,children:[e&&u("div",{style:{lineHeight:"39.2px",width:"100%"},children:u(Me,O({},e))}),u("div",{"data-ui":"gui-questions",part:"gui-questions",style:{width:"100%",display:"flex",gap:"10px",flexDirection:"column"},children:s.questions.map(b=>{var _e;const C=s.static,A=(ee,Q)=>Q.find(W=>{var X;if((X=W.questionIds)!=null&&X.length)return W.questionIds.find(de=>ee===de)}),M=(ee,Q)=>Q.find(W=>!W.questionIds&&W.answerType===ee),x=C?A(String(b.id),i.itemTypes)||M(b.answerType,i.itemTypes):i.itemTypes.find(ee=>ee.answerType===b.answerType);if(!x){const ee=new dn({errorCode:Nn.DECODING_FAILED,message:"The question template has not been found"});c(ee);return}const P=x==null?void 0:x.displayType,me=b.id in y&&((_e=y[b.id])==null?void 0:_e.types);return u(He,{children:[u(lu,{backgroundColor:x==null?void 0:x.backgroundColor,cornerRadius:x==null?void 0:x.cornerRadius,isError:!!me,isRequired:b.required,validationBorderColor:x==null?void 0:x.validationBorderColor,validationBorderWidth:x==null?void 0:x.validationBorderWidth,children:[P===Rr.TEXT_EXPANDABLE&&u(uu,{layout:x,dataSourceQuestion:b,register:f}),P===Rr.TEXT_SINGLE_LINE&&u(du,{layout:x,dataSourceQuestion:b,register:f}),P===Rr.SELECTOR_OPTIONS&&u(su,{layout:x,dataSourceQuestion:b,watch:d,register:f}),P===Rr.SELECTOR_BUTTONS&&u(au,{layout:x,dataSourceQuestion:b,watch:d,register:f}),P===Rr.SELECTOR_DROPDOWN&&u(ru,{control:m,layout:x,dataSourceQuestion:b,parentElementRef:_}),P===Rr.MULTI_SELECTOR_DROPDOWN&&u(nu,{control:m,layout:x,dataSourceQuestion:b,parentElementRef:_})]}),me&&u(cu,{validationErrorsTypes:me,title:x.validationMessage})]},b.id)})})]}),!!(r!=null&&r.length)&&u("div",{style:{display:"flex",width:"100%",flexGrow:0,flexShrink:0,justifyContent:"center",alignItems:"flex-end",padding:"2px"},children:r.map((b,C)=>u(ba,O({dataTestId:"question-button"},b),C))})]})})},hu={display:"none"},pu={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",backgroundColor:"#7e57c5",cursor:"pointer"},mu={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},_u=({header:t,footer:e,buttons:r,backgroundColor:n,selectionLimit:i})=>{var _,f;const{perform:s}=Tr(),o=ct(null),a=typeof i=="number"&&(i===0||i>1),c=l=>$(null,null,function*(){var w;const y=Array.from((w=l.currentTarget.files)!=null?w:[]);if(y.length)try{const m=(yield Promise.allSettled(y.map(S=>$(null,null,function*(){return{content:yield ga(S),metadata:{name:S.name,type:S.type,size:S.size,lastModified:S.lastModified}}})))).filter(S=>S.status==="fulfilled").map(S=>S.value);s({cancel:!1,permissionDenied:!1,files:m})}catch(d){console.error("Error: ",d)}}),h=()=>{var l;(l=o.current)==null||l.showPicker()};return u(dr,{header:t,footer:e,backgroundColor:n,children:u(He,{children:u("div",{style:G(O({},mu),{justifyContent:"center"}),children:[u("input",G(O({style:hu,ref:o,type:"file",accept:"image/*"},a?{multiple:!0}:{}),{onInput:c})),u("button",{style:pu,onClick:h,children:u(ze,{imageId:(f=(_=r==null?void 0:r[0])==null?void 0:_.image)==null?void 0:f.imageId})})]})})})},gu={display:"none"},vu={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",background:"#7e57c5",cursor:"pointer"},wu={position:"relative",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},yu=({header:t,footer:e,backgroundColor:r,buttons:n,selectionLimit:i})=>{var _,f;const{perform:s}=Tr(),o=ct(null),a=typeof i=="number"&&(i===0||i>1),c=l=>$(null,null,function*(){var w;const y=Array.from((w=l.currentTarget.files)!=null?w:[]);if(y.length)try{const m=(yield Promise.allSettled(y.map(S=>$(null,null,function*(){return{content:yield ga(S),metadata:{name:S.name,type:S.type,size:S.size,lastModified:S.lastModified}}})))).filter(S=>S.status==="fulfilled").map(S=>S.value);s({cancel:!1,permissionDenied:!1,files:m})}catch(d){console.error("Error: ",d)}}),h=()=>$(null,null,function*(){var l;(l=o.current)==null||l.showPicker()});return wt(()=>{$(null,null,function*(){if(Zt.isDesktop)return;const l=yield Gc();(l==="denied"||l==="error")&&s({cancel:!1,permissionDenied:!0,files:[]})})},[]),u(dr,{header:t,footer:e,backgroundColor:r,children:u(He,{children:u("div",{style:G(O({},wu),{justifyContent:"center"}),children:[u("input",G(O({style:gu,ref:o,type:"file",accept:"image/*",capture:"user"},a?{multiple:!0}:{}),{onInput:c})),u("button",{style:vu,onClick:h,children:u(ze,{imageId:(f=(_=n==null?void 0:n[0])==null?void 0:_.image)==null?void 0:f.imageId})})]})})})},Za=t=>{const{templateId:e,templateLayout:r,dataSource:n,properties:i}=t,{perform:s}=Tr();if(!e||!r)return u(Ca,{});const o=i!=null&&i.length?JSON.stringify(i):"default-key";if(e===yt.STATUS)return u(Ed,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,image:r==null?void 0:r.image,description:r==null?void 0:r.description,title:r==null?void 0:r.title,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor});if(e===yt.INFO)return u(Td,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,image:r==null?void 0:r.image,title:r==null?void 0:r.title,description:r==null?void 0:r.description,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor});if(e===yt.PROGRESS)return u(Ca,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,progressView:r==null?void 0:r.progressView,backgroundColor:r==null?void 0:r.backgroundColor});if(e===yt.INFO_DETAILS)return u(kd,{header:r==null?void 0:r.header,title:r==null?void 0:r.title,details:r==null?void 0:r.details,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:r==null?void 0:r.backgroundColor});if(e===yt.CAMERA)return u(yu,{header:r==null?void 0:r.header,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:t.backgroundColor,selectionLimit:t.selectionLimit});if(e===yt.GALLERY)return u(_u,{header:r==null?void 0:r.header,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:t.backgroundColor,selectionLimit:t.selectionLimit});if(n&&(n!=null&&n.questions.length)&&e===yt.QUESTIONS)return u(fu,{dataSource:n,properties:i,questions:r.questions,header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,title:r==null?void 0:r.title,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor},o);if(e===yt.QUESTIONS&&!n){const c=new dn({errorCode:Nn.DECODING_FAILED,message:"No data for questions"});return s(c),null}const a=new dn({errorCode:Nn.DECODING_FAILED,message:"Unsupported step template"});return s(a),null};let ms=!1;const Ya=({children:t})=>u("div",{part:"gui-idv",id:"gui-idv-web-c",style:{backgroundColor:"white",height:"100%",width:"100%"},children:t}),bu=({moduleProps:t,perform:e})=>{const{templateId:r,templateLayout:n,dataSource:i,properties:s}=t,o=a=>{e&&e(a)};return r===yt.QUESTIONS?u(pa,{perform:o,children:u(Ya,{children:u(Za,{properties:s,dataSource:i,templateId:r,templateLayout:n})})}):u(pa,{perform:o,children:u(Ya,{children:u(Za,O(O({templateId:r,templateLayout:n},t.backgroundColor?{backgroundColor:t.backgroundColor}:{}),typeof t.selectionLimit=="number"?{selectionLimit:t.selectionLimit}:{}))})})},un=class un extends ua{constructor(){super(),this._mounted=!1,this.props=null}setProps(e){this.props={idvEventListener:e.idvEventListener,moduleProps:e.moduleProps,isProcessing:e.isProcessing,perform:e.perform},this.render()}connectedCallback(){this.render(),this._mounted=!0}render(){if(!this.props)return"";if(this.shadowRoot){const e=document.createElement("style");e.id="idv-gui-styles",e.textContent=`
89
+ `,jr={MESSAGE:"MESSAGE",ERROR:"ERROR"},$l=Object.values({DATA:"DATA",QUESTIONARY:"QUESTIONARY"});var Js=(t=>(t.Rtl="rtl",t.Ltr="ltr",t))(Js||{}),br=(t=>(t.DID_START_SESSION="DID_START_SESSION",t.DID_END_SESSION="DID_END_SESSION",t.DID_START_RESTORE_SESSION="DID_START_RESTORE_SESSION",t.DID_CONTINUE_REMOTE_SESSION="DID_CONTINUE_REMOTE_SESSION",t))(br||{}),gt=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.CONNECTION_ISSUE=1]="CONNECTION_ISSUE",t[t.WORKFLOW_ISSUE=2]="WORKFLOW_ISSUE",t[t.INTERNAL_ISSUE=3]="INTERNAL_ISSUE",t[t.SCENARIO_IN_PROGRESS=4]="SCENARIO_IN_PROGRESS",t))(gt||{}),Ve=(t=>(t[t.CONNECTION_ISSUE=0]="CONNECTION_ISSUE",t[t.CONFIG_MISSED_OR_INVALID=1]="CONFIG_MISSED_OR_INVALID",t[t.INITIALIZATION_REQUIRED=2]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(Ve||{}),$e=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.PREPARED_REQUIRED=1]="PREPARED_REQUIRED",t[t.START_SESSION_FAILED=2]="START_SESSION_FAILED",t[t.UNKNOWN_STEP=3]="UNKNOWN_STEP",t[t.MODULES_ISSUE=4]="MODULES_ISSUE",t[t.ALREADY_STARTED=5]="ALREADY_STARTED",t[t.INTERNAL_ISSUE=6]="INTERNAL_ISSUE",t))($e||{}),zr=(t=>(t[t.CONFIG_MISSED_OR_INVALID=0]="CONFIG_MISSED_OR_INVALID",t[t.MODULES_INSTANTIATION_FAILURE=1]="MODULES_INSTANTIATION_FAILURE",t[t.INITIALIZATION_IN_PROGRESS=2]="INITIALIZATION_IN_PROGRESS",t))(zr||{}),gn=(t=>(t[t.CONNECTION_ISSUE=0]="CONNECTION_ISSUE",t[t.WORKFLOW_ISSUE=1]="WORKFLOW_ISSUE",t))(gn||{}),ct=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t))(ct||{}),qt=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t[t.TOKEN_ERROR=3]="TOKEN_ERROR",t[t.CONNECTION_ISSUE=4]="CONNECTION_ISSUE",t))(qt||{}),it=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t[t.SAME_STEP=3]="SAME_STEP",t[t.IS_PROCESSING=4]="IS_PROCESSING",t[t.NOT_DATA_TYPE=5]="NOT_DATA_TYPE",t))(it||{}),Gr=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(Gr||{}),Ot=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t))(Ot||{});const Bl=120,Wl=200,Ci="PROGRESS",vt="IDV",or="idv-session-data",Kr="idv-session-auth-token",Hl="rgl-uid",jl="en",Qs=t=>{let e;const r=new Set,n=(h,_)=>{const f=typeof h=="function"?h(e):h;if(!Object.is(f,e)){const l=e;e=(_!=null?_:typeof f!="object"||f===null)?f:Object.assign({},e,f),r.forEach(y=>y(e,l))}},i=()=>e,a={setState:n,getState:i,getInitialState:()=>u,subscribe:h=>(r.add(h),()=>r.delete(h))},u=e=t(n,i,a);return a},zl=t=>t?Qs(t):Qs;var qr,oe,eo,ar,to,ro,no,io,Si,Ei,Ii,so,Zr={},oo=[],Gl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Yr=Array.isArray;function wt(t,e){for(var r in e)t[r]=e[r];return t}function Oi(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function yt(t,e,r){var n,i,s,o={};for(s in e)s=="key"?n=e[s]:s=="ref"?i=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?qr.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)o[s]===void 0&&(o[s]=t.defaultProps[s]);return Xr(t,o,n,i,null)}function Xr(t,e,r,n,i){var s={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++eo:i,__i:-1,__u:0};return i==null&&oe.vnode!=null&&oe.vnode(s),s}function ao(){return{current:null}}function je(t){return t.children}function ut(t,e){this.props=t,this.context=e}function Cr(t,e){if(e==null)return t.__?Cr(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?Cr(t):null}function lo(t){var e,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return lo(t)}}function Ti(t){(!t.__d&&(t.__d=!0)&&ar.push(t)&&!vn.__r++||to!=oe.debounceRendering)&&((to=oe.debounceRendering)||ro)(vn)}function vn(){for(var t,e,r,n,i,s,o,a=1;ar.length;)ar.length>a&&ar.sort(no),t=ar.shift(),a=ar.length,t.__d&&(r=void 0,n=void 0,i=(n=(e=t).__v).__e,s=[],o=[],e.__P&&((r=wt({},n)).__v=n.__v+1,oe.vnode&&oe.vnode(r),Ri(e.__P,r,n,e.__n,e.__P.namespaceURI,32&n.__u?[i]:null,s,i==null?Cr(n):i,!!(32&n.__u),o),r.__v=n.__v,r.__.__k[r.__i]=r,po(s,r,o),n.__e=n.__=null,r.__e!=i&&lo(r)));vn.__r=0}function co(t,e,r,n,i,s,o,a,u,h,_){var f,l,y,v,d,m,S,b=n&&n.__k||oo,C=e.length;for(u=Kl(r,e,b,u,C),f=0;f<C;f++)(y=r.__k[f])!=null&&(l=y.__i==-1?Zr:b[y.__i]||Zr,y.__i=f,m=Ri(t,y,l,i,s,o,a,u,h,_),v=y.__e,y.ref&&l.ref!=y.ref&&(l.ref&&xi(l.ref,null,y),_.push(y.ref,y.__c||v,y)),d==null&&v!=null&&(d=v),(S=!!(4&y.__u))||l.__k===y.__k?u=uo(y,u,t,S):typeof y.type=="function"&&m!==void 0?u=m:v&&(u=v.nextSibling),y.__u&=-7);return r.__e=d,u}function Kl(t,e,r,n,i){var s,o,a,u,h,_=r.length,f=_,l=0;for(t.__k=new Array(i),s=0;s<i;s++)(o=e[s])!=null&&typeof o!="boolean"&&typeof o!="function"?(u=s+l,(o=t.__k[s]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Xr(null,o,null,null,null):Yr(o)?Xr(je,{children:o},null,null,null):o.constructor==null&&o.__b>0?Xr(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=t,o.__b=t.__b+1,a=null,(h=o.__i=ql(o,r,u,f))!=-1&&(f--,(a=r[h])&&(a.__u|=2)),a==null||a.__v==null?(h==-1&&(i>_?l--:i<_&&l++),typeof o.type!="function"&&(o.__u|=4)):h!=u&&(h==u-1?l--:h==u+1?l++:(h>u?l--:l++,o.__u|=4))):t.__k[s]=null;if(f)for(s=0;s<_;s++)(a=r[s])!=null&&(2&a.__u)==0&&(a.__e==n&&(n=Cr(a)),_o(a,a));return n}function uo(t,e,r,n){var i,s;if(typeof t.type=="function"){for(i=t.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=t,e=uo(i[s],e,r,n));return e}t.__e!=e&&(n&&(e&&t.type&&!e.parentNode&&(e=Cr(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function Tt(t,e){return e=e||[],t==null||typeof t=="boolean"||(Yr(t)?t.some(function(r){Tt(r,e)}):e.push(t)),e}function ql(t,e,r,n){var i,s,o,a=t.key,u=t.type,h=e[r],_=h!=null&&(2&h.__u)==0;if(h===null&&t.key==null||_&&a==h.key&&u==h.type)return r;if(n>(_?1:0)){for(i=r-1,s=r+1;i>=0||s<e.length;)if((h=e[o=i>=0?i--:s++])!=null&&(2&h.__u)==0&&a==h.key&&u==h.type)return o}return-1}function fo(t,e,r){e[0]=="-"?t.setProperty(e,r==null?"":r):t[e]=r==null?"":typeof r!="number"||Gl.test(e)?r:r+"px"}function wn(t,e,r,n,i){var s,o;e:if(e=="style")if(typeof r=="string")t.style.cssText=r;else{if(typeof n=="string"&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||fo(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||fo(t.style,e,r[e])}else if(e[0]=="o"&&e[1]=="n")s=e!=(e=e.replace(io,"$1")),o=e.toLowerCase(),e=o in t||e=="onFocusOut"||e=="onFocusIn"?o.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=r,r?n?r.u=n.u:(r.u=Si,t.addEventListener(e,s?Ii:Ei,s)):t.removeEventListener(e,s?Ii:Ei,s);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&r==1?"":r))}}function ho(t){return function(e){if(this.l){var r=this.l[e.type+t];if(e.t==null)e.t=Si++;else if(e.t<r.u)return;return r(oe.event?oe.event(e):e)}}}function Ri(t,e,r,n,i,s,o,a,u,h){var _,f,l,y,v,d,m,S,b,C,T,k,x,P,me,_e,ee,Q=e.type;if(e.constructor!=null)return null;128&r.__u&&(u=!!(32&r.__u),s=[a=e.__e=r.__e]),(_=oe.__b)&&_(e);e:if(typeof Q=="function")try{if(S=e.props,b="prototype"in Q&&Q.prototype.render,C=(_=Q.contextType)&&n[_.__c],T=_?C?C.props.value:_.__:n,r.__c?m=(f=e.__c=r.__c).__=f.__E:(b?e.__c=f=new Q(S,T):(e.__c=f=new ut(S,T),f.constructor=Q,f.render=Yl),C&&C.sub(f),f.props=S,f.state||(f.state={}),f.context=T,f.__n=n,l=f.__d=!0,f.__h=[],f._sb=[]),b&&f.__s==null&&(f.__s=f.state),b&&Q.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=wt({},f.__s)),wt(f.__s,Q.getDerivedStateFromProps(S,f.__s))),y=f.props,v=f.state,f.__v=e,l)b&&Q.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),b&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(b&&Q.getDerivedStateFromProps==null&&S!==y&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(S,T),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(S,f.__s,T)===!1||e.__v==r.__v){for(e.__v!=r.__v&&(f.props=S,f.state=f.__s,f.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some(function(W){W&&(W.__=e)}),k=0;k<f._sb.length;k++)f.__h.push(f._sb[k]);f._sb=[],f.__h.length&&o.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(S,f.__s,T),b&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(y,v,d)})}if(f.context=T,f.props=S,f.__P=t,f.__e=!1,x=oe.__r,P=0,b){for(f.state=f.__s,f.__d=!1,x&&x(e),_=f.render(f.props,f.state,f.context),me=0;me<f._sb.length;me++)f.__h.push(f._sb[me]);f._sb=[]}else do f.__d=!1,x&&x(e),_=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++P<25);f.state=f.__s,f.getChildContext!=null&&(n=wt(wt({},n),f.getChildContext())),b&&!l&&f.getSnapshotBeforeUpdate!=null&&(d=f.getSnapshotBeforeUpdate(y,v)),_e=_,_!=null&&_.type===je&&_.key==null&&(_e=mo(_.props.children)),a=co(t,Yr(_e)?_e:[_e],e,r,n,i,s,o,a,u,h),f.base=e.__e,e.__u&=-161,f.__h.length&&o.push(f),m&&(f.__E=f.__=null)}catch(W){if(e.__v=null,u||s!=null)if(W.then){for(e.__u|=u?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,e.__e=a}else{for(ee=s.length;ee--;)Oi(s[ee]);Ai(e)}else e.__e=r.__e,e.__k=r.__k,W.then||Ai(e);oe.__e(W,e,r)}else s==null&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):a=e.__e=Zl(r.__e,e,r,n,i,s,o,u,h);return(_=oe.diffed)&&_(e),128&e.__u?void 0:a}function Ai(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(Ai)}function po(t,e,r){for(var n=0;n<r.length;n++)xi(r[n],r[++n],r[++n]);oe.__c&&oe.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(s){s.call(i)})}catch(s){oe.__e(s,i.__v)}})}function mo(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:Yr(t)?t.map(mo):wt({},t)}function Zl(t,e,r,n,i,s,o,a,u){var h,_,f,l,y,v,d,m=r.props,S=e.props,b=e.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),s!=null){for(h=0;h<s.length;h++)if((y=s[h])&&"setAttribute"in y==!!b&&(b?y.localName==b:y.nodeType==3)){t=y,s[h]=null;break}}if(t==null){if(b==null)return document.createTextNode(S);t=document.createElementNS(i,b,S.is&&S),a&&(oe.__m&&oe.__m(e,s),a=!1),s=null}if(b==null)m===S||a&&t.data==S||(t.data=S);else{if(s=s&&qr.call(t.childNodes),m=r.props||Zr,!a&&s!=null)for(m={},h=0;h<t.attributes.length;h++)m[(y=t.attributes[h]).name]=y.value;for(h in m)if(y=m[h],h!="children"){if(h=="dangerouslySetInnerHTML")f=y;else if(!(h in S)){if(h=="value"&&"defaultValue"in S||h=="checked"&&"defaultChecked"in S)continue;wn(t,h,null,y,i)}}for(h in S)y=S[h],h=="children"?l=y:h=="dangerouslySetInnerHTML"?_=y:h=="value"?v=y:h=="checked"?d=y:a&&typeof y!="function"||m[h]===y||wn(t,h,y,m[h],i);if(_)a||f&&(_.__html==f.__html||_.__html==t.innerHTML)||(t.innerHTML=_.__html),e.__k=[];else if(f&&(t.innerHTML=""),co(e.type=="template"?t.content:t,Yr(l)?l:[l],e,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,s,o,s?s[0]:r.__k&&Cr(r,0),a,u),s!=null)for(h=s.length;h--;)Oi(s[h]);a||(h="value",b=="progress"&&v==null?t.removeAttribute("value"):v!=null&&(v!==t[h]||b=="progress"&&!v||b=="option"&&v!=m[h])&&wn(t,h,v,m[h],i),h="checked",d!=null&&d!=t[h]&&wn(t,h,d,m[h],i))}return t}function xi(t,e,r){try{if(typeof t=="function"){var n=typeof t.__u=="function";n&&t.__u(),n&&e==null||(t.__u=t(e))}else t.current=e}catch(i){oe.__e(i,r)}}function _o(t,e,r){var n,i;if(oe.unmount&&oe.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||xi(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(s){oe.__e(s,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&_o(n[i],e,r||typeof t.type!="function");r||Oi(t.__e),t.__c=t.__=t.__e=void 0}function Yl(t,e,r){return this.constructor(t,r)}function Sr(t,e,r){var n,i,s,o;e==document&&(e=document.documentElement),oe.__&&oe.__(t,e),i=(n=typeof r=="function")?null:r&&r.__k||e.__k,s=[],o=[],Ri(e,t=(!n&&r||e).__k=yt(je,null,[t]),i||Zr,Zr,e.namespaceURI,!n&&r?[r]:i?null:e.firstChild?qr.call(e.childNodes):null,s,!n&&r?r:i?i.__e:e.firstChild,n,o),po(s,t,o)}function go(t,e){Sr(t,e,go)}function Xl(t,e,r){var n,i,s,o,a=wt({},t.props);for(s in t.type&&t.type.defaultProps&&(o=t.type.defaultProps),e)s=="key"?n=e[s]:s=="ref"?i=e[s]:a[s]=e[s]===void 0&&o!=null?o[s]:e[s];return arguments.length>2&&(a.children=arguments.length>3?qr.call(arguments,2):r),Xr(t.type,a,n||t.key,i||t.ref,null)}function Ni(t){function e(r){var n,i;return this.getChildContext||(n=new Set,(i={})[e.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&n.forEach(function(o){o.__e=!0,Ti(o)})},this.sub=function(s){n.add(s);var o=s.componentWillUnmount;s.componentWillUnmount=function(){n&&n.delete(s),o&&o.call(s)}}),r.children}return e.__c="__cC"+so++,e.__=t,e.Provider=e.__l=(e.Consumer=function(r,n){return r.children(n)}).contextType=e,e}qr=oo.slice,oe={__e:function(t,e,r,n){for(var i,s,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,n||{}),o=i.__d),o)return i.__E=i}catch(a){t=a}throw t}},eo=0,ut.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=wt({},this.state),typeof t=="function"&&(t=t(wt({},r),this.props)),t&&wt(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ti(this))},ut.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ti(this))},ut.prototype.render=je,ar=[],ro=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,no=function(t,e){return t.__v.__b-e.__v.__b},vn.__r=0,io=/(PointerCapture)$|Capture$/i,Si=0,Ei=ho(!1),Ii=ho(!0),so=0;var Rt,Ce,ki,vo,Er=0,wo=[],Te=oe,yo=Te.__b,bo=Te.__r,Co=Te.diffed,So=Te.__c,Eo=Te.unmount,Io=Te.__;function lr(t,e){Te.__h&&Te.__h(Ce,t,Er||e),Er=0;var r=Ce.__H||(Ce.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Le(t){return Er=1,yn(To,t)}function yn(t,e,r){var n=lr(Rt++,2);if(n.t=t,!n.__c&&(n.__=[r?r(e):To(void 0,e),function(a){var u=n.__N?n.__N[0]:n.__[0],h=n.t(u,a);u!==h&&(n.__N=[h,n.__[1]],n.__c.setState({}))}],n.__c=Ce,!Ce.__f)){var i=function(a,u,h){if(!n.__c.__H)return!0;var _=n.__c.__H.__.filter(function(l){return!!l.__c});if(_.every(function(l){return!l.__N}))return!s||s.call(this,a,u,h);var f=n.__c.props!==a;return _.forEach(function(l){if(l.__N){var y=l.__[0];l.__=l.__N,l.__N=void 0,y!==l.__[0]&&(f=!0)}}),s&&s.call(this,a,u,h)||f};Ce.__f=!0;var s=Ce.shouldComponentUpdate,o=Ce.componentWillUpdate;Ce.componentWillUpdate=function(a,u,h){if(this.__e){var _=s;s=void 0,i(a,u,h),s=_}o&&o.call(this,a,u,h)},Ce.shouldComponentUpdate=i}return n.__N||n.__}function st(t,e){var r=lr(Rt++,3);!Te.__s&&Fi(r.__H,e)&&(r.__=t,r.u=e,Ce.__H.__h.push(r))}function Zt(t,e){var r=lr(Rt++,4);!Te.__s&&Fi(r.__H,e)&&(r.__=t,r.u=e,Ce.__h.push(r))}function ot(t){return Er=5,Jr(function(){return{current:t}},[])}function Di(t,e,r){Er=6,Zt(function(){if(typeof t=="function"){var n=t(e());return function(){t(null),n&&typeof n=="function"&&n()}}if(t)return t.current=e(),function(){return t.current=null}},r==null?r:r.concat(t))}function Jr(t,e){var r=lr(Rt++,7);return Fi(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function Mi(t,e){return Er=8,Jr(function(){return t},e)}function Qr(t){var e=Ce.context[t.__c],r=lr(Rt++,9);return r.c=t,e?(r.__==null&&(r.__=!0,e.sub(Ce)),e.props.value):t.__}function Pi(t,e){Te.useDebugValue&&Te.useDebugValue(e?e(t):t)}function Jl(t){var e=lr(Rt++,10),r=Le();return e.__=t,Ce.componentDidCatch||(Ce.componentDidCatch=function(n,i){e.__&&e.__(n,i),r[1](n)}),[r[0],function(){r[1](void 0)}]}function Ui(){var t=lr(Rt++,11);if(!t.__){for(var e=Ce.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var r=e.__m||(e.__m=[0,0]);t.__="P"+r[0]+"-"+r[1]++}return t.__}function Ql(){for(var t;t=wo.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(bn),t.__H.__h.forEach(Li),t.__H.__h=[]}catch(e){t.__H.__h=[],Te.__e(e,t.__v)}}Te.__b=function(t){Ce=null,yo&&yo(t)},Te.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Io&&Io(t,e)},Te.__r=function(t){bo&&bo(t),Rt=0;var e=(Ce=t.__c).__H;e&&(ki===Ce?(e.__h=[],Ce.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(e.__h.forEach(bn),e.__h.forEach(Li),e.__h=[],Rt=0)),ki=Ce},Te.diffed=function(t){Co&&Co(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(wo.push(e)!==1&&vo===Te.requestAnimationFrame||((vo=Te.requestAnimationFrame)||ec)(Ql)),e.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),ki=Ce=null},Te.__c=function(t,e){e.some(function(r){try{r.__h.forEach(bn),r.__h=r.__h.filter(function(n){return!n.__||Li(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Te.__e(n,r.__v)}}),So&&So(t,e)},Te.unmount=function(t){Eo&&Eo(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{bn(n)}catch(i){e=i}}),r.__H=void 0,e&&Te.__e(e,r.__v))};var Oo=typeof requestAnimationFrame=="function";function ec(t){var e,r=function(){clearTimeout(n),Oo&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,35);Oo&&(e=requestAnimationFrame(r))}function bn(t){var e=Ce,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),Ce=e}function Li(t){var e=Ce;t.__c=t.__(),Ce=e}function Fi(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function To(t,e){return typeof e=="function"?e(t):e}function Ro(t,e){for(var r in e)t[r]=e[r];return t}function Vi(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var n in e)if(n!=="__source"&&t[n]!==e[n])return!0;return!1}function $i(t,e){var r=e(),n=Le({t:{__:r,u:e}}),i=n[0].t,s=n[1];return Zt(function(){i.__=r,i.u=e,Bi(i)&&s({t:i})},[t,r,e]),st(function(){return Bi(i)&&s({t:i}),t(function(){Bi(i)&&s({t:i})})},[t]),r}function Bi(t){var e,r,n=t.u,i=t.__;try{var s=n();return!((e=i)===(r=s)&&(e!==0||1/e==1/r)||e!=e&&r!=r)}catch(o){return!0}}function Wi(t){t()}function Hi(t){return t}function ji(){return[!1,Wi]}var zi=Zt;function Cn(t,e){this.props=t,this.context=e}function Ao(t,e){function r(i){var s=this.props.ref,o=s==i.ref;return!o&&s&&(s.call?s(null):s.current=null),e?!e(this.props,i)||!o:Vi(this.props,i)}function n(i){return this.shouldComponentUpdate=r,yt(t,i)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n.type=t,n}(Cn.prototype=new ut).isPureReactComponent=!0,Cn.prototype.shouldComponentUpdate=function(t,e){return Vi(this.props,t)||Vi(this.state,e)};var xo=oe.__b;oe.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),xo&&xo(t)};var tc=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function No(t){function e(r){var n=Ro({},r);return delete n.ref,t(n,r.ref||null)}return e.$$typeof=tc,e.render=t,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var ko=function(t,e){return t==null?null:Tt(Tt(t).map(e))},Do={map:ko,forEach:ko,count:function(t){return t?Tt(t).length:0},only:function(t){var e=Tt(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:Tt},rc=oe.__e;oe.__e=function(t,e,r,n){if(t.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),i.__c(t,e)}rc(t,e,r,n)};var Mo=oe.unmount;function Po(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=Ro({},t)).__c!=null&&(t.__c.__P===r&&(t.__c.__P=e),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return Po(n,e,r)})),t}function Uo(t,e,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Uo(n,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}function en(){this.__u=0,this.o=null,this.__b=null}function Lo(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Fo(t){var e,r,n;function i(s){if(e||(e=t()).then(function(o){r=o.default||o},function(o){n=o}),n)throw n;if(!r)throw e;return yt(r,s)}return i.displayName="Lazy",i.__f=!0,i}function Ir(){this.i=null,this.l=null}oe.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Mo&&Mo(t)},(en.prototype=new ut).__c=function(t,e){var r=e.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Lo(n.__v),s=!1,o=function(){s||(s=!0,r.__R=null,i?i(a):a())};r.__R=o;var a=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=Uo(u,u.__c.__P,u.__c.__O)}var h;for(n.setState({__a:n.__b=null});h=n.o.pop();)h.forceUpdate()}};n.__u++||32&e.__u||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(o,o)},en.prototype.componentWillUnmount=function(){this.o=[]},en.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Po(this.__b,r,n.__O=n.__P)}this.__b=null}var i=e.__a&&yt(je,null,t.fallback);return i&&(i.__u&=-33),[yt(je,null,e.__a?null:t.children),i]};var Vo=function(t,e,r){if(++r[1]===r[0]&&t.l.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.l.size))for(r=t.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.i=r=r[2]}};function nc(t){return this.getChildContext=function(){return t.context},t.children}function ic(t){var e=this,r=t.h;if(e.componentWillUnmount=function(){Sr(null,e.v),e.v=null,e.h=null},e.h&&e.h!==r&&e.componentWillUnmount(),!e.v){for(var n=e.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;e.h=r,e.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(i,s){this.childNodes.push(i),e.h.insertBefore(i,s)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),e.h.removeChild(i)}}}Sr(yt(nc,{context:e.context},t.__v),e.v)}function $o(t,e){var r=yt(ic,{__v:t,h:e});return r.containerInfo=e,r}(Ir.prototype=new ut).__a=function(t){var e=this,r=Lo(e.__v),n=e.l.get(t);return n[0]++,function(i){var s=function(){e.props.revealOrder?(n.push(i),Vo(e,t,n)):i()};r?r(s):s()}},Ir.prototype.render=function(t){this.i=null,this.l=new Map;var e=Tt(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var r=e.length;r--;)this.l.set(e[r],this.i=[1,0,this.i]);return t.children},Ir.prototype.componentDidUpdate=Ir.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,r){Vo(t,r,e)})};var Bo=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,sc=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,oc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ac=/[A-Z0-9]/g,lc=typeof document!="undefined",cc=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Wo(t,e,r){return e.__k==null&&(e.textContent=""),Sr(t,e),typeof r=="function"&&r(),t?t.__c:null}function Ho(t,e,r){return go(t,e),typeof r=="function"&&r(),t?t.__c:null}ut.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(ut.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var jo=oe.event;function uc(){}function dc(){return this.cancelBubble}function fc(){return this.defaultPrevented}oe.event=function(t){return jo&&(t=jo(t)),t.persist=uc,t.isPropagationStopped=dc,t.isDefaultPrevented=fc,t.nativeEvent=t};var Gi,hc={enumerable:!1,configurable:!0,get:function(){return this.class}},zo=oe.vnode;oe.vnode=function(t){typeof t.type=="string"&&(function(e){var r=e.props,n=e.type,i={},s=n.indexOf("-")===-1;for(var o in r){var a=r[o];if(!(o==="value"&&"defaultValue"in r&&a==null||lc&&o==="children"&&n==="noscript"||o==="class"||o==="className")){var u=o.toLowerCase();o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&a===!0?a="":u==="translate"&&a==="no"?a=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?o="ondblclick":u!=="onchange"||n!=="input"&&n!=="textarea"||cc(r.type)?u==="onfocus"?o="onfocusin":u==="onblur"?o="onfocusout":oc.test(o)&&(o=u):u=o="oninput":s&&sc.test(o)?o=o.replace(ac,"-$&").toLowerCase():a===null&&(a=void 0),u==="oninput"&&i[o=u]&&(o="oninputCapture"),i[o]=a}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Tt(r.children).forEach(function(h){h.props.selected=i.value.indexOf(h.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Tt(r.children).forEach(function(h){h.props.selected=i.multiple?i.defaultValue.indexOf(h.props.value)!=-1:i.defaultValue==h.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",hc)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),e.props=i})(t),t.$$typeof=Bo,zo&&zo(t)};var Go=oe.__r;oe.__r=function(t){Go&&Go(t),Gi=t.__c};var Ko=oe.diffed;oe.diffed=function(t){Ko&&Ko(t);var e=t.props,r=t.__e;r!=null&&t.type==="textarea"&&"value"in e&&e.value!==r.value&&(r.value=e.value==null?"":e.value),Gi=null};var qo={ReactCurrentDispatcher:{current:{readContext:function(t){return Gi.__n[t.__c].props.value},useCallback:Mi,useContext:Qr,useDebugValue:Pi,useDeferredValue:Hi,useEffect:st,useId:Ui,useImperativeHandle:Di,useInsertionEffect:zi,useLayoutEffect:Zt,useMemo:Jr,useReducer:yn,useRef:ot,useState:Le,useSyncExternalStore:$i,useTransition:ji}}},pc="18.3.1";function Zo(t){return yt.bind(null,t)}function tn(t){return!!t&&t.$$typeof===Bo}function Yo(t){return tn(t)&&t.type===je}function Xo(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Jo(t){return tn(t)?Xl.apply(null,arguments):t}function Qo(t){return!!t.__k&&(Sr(null,t),!0)}function ea(t){return t&&(t.base||t.nodeType===1&&t)||null}var ta=function(t,e){return t(e)},ra=function(t,e){return t(e)},na=je,ia=tn,ce={useState:Le,useId:Ui,useReducer:yn,useEffect:st,useLayoutEffect:Zt,useInsertionEffect:zi,useTransition:ji,useDeferredValue:Hi,useSyncExternalStore:$i,startTransition:Wi,useRef:ot,useImperativeHandle:Di,useMemo:Jr,useCallback:Mi,useContext:Qr,useDebugValue:Pi,version:"18.3.1",Children:Do,render:Wo,hydrate:Ho,unmountComponentAtNode:Qo,createPortal:$o,createElement:yt,createContext:Ni,createFactory:Zo,cloneElement:Jo,createRef:ao,Fragment:je,isValidElement:tn,isElement:ia,isFragment:Yo,isMemo:Xo,findDOMNode:ea,Component:ut,PureComponent:Cn,memo:Ao,forwardRef:No,flushSync:ra,unstable_batchedUpdates:ta,StrictMode:na,Suspense:en,SuspenseList:Ir,lazy:Fo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qo};const mc=Object.freeze(Object.defineProperty({__proto__:null,Children:Do,Component:ut,Fragment:je,PureComponent:Cn,StrictMode:na,Suspense:en,SuspenseList:Ir,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qo,cloneElement:Jo,createContext:Ni,createElement:yt,createFactory:Zo,createPortal:$o,createRef:ao,default:ce,findDOMNode:ea,flushSync:ra,forwardRef:No,hydrate:Ho,isElement:ia,isFragment:Yo,isMemo:Xo,isValidElement:tn,lazy:Fo,memo:Ao,render:Wo,startTransition:Wi,unmountComponentAtNode:Qo,unstable_batchedUpdates:ta,useCallback:Mi,useContext:Qr,useDebugValue:Pi,useDeferredValue:Hi,useEffect:st,useErrorBoundary:Jl,useId:Ui,useImperativeHandle:Di,useInsertionEffect:zi,useLayoutEffect:Zt,useMemo:Jr,useReducer:yn,useRef:ot,useState:Le,useSyncExternalStore:$i,useTransition:ji,version:pc},Symbol.toStringTag,{value:"Module"})),_c=t=>t;function gc(t,e=_c){const r=ce.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return ce.useDebugValue(r),r}const sa=t=>{const e=zl(t),r=n=>gc(e,n);return Object.assign(r,e),r},vc=t=>t?sa(t):sa;function wc(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch(s){}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var B={};const yc=wc(mc);var rn={exports:{}},bc=rn.exports,oa;function Cc(){return oa||(oa=1,(function(t,e){(function(r,n){var i="1.0.41",s="",o="?",a="function",u="undefined",h="object",_="string",f="major",l="model",y="name",v="type",d="vendor",m="version",S="architecture",b="console",C="mobile",T="tablet",k="smarttv",x="wearable",P="embedded",me=500,_e="Amazon",ee="Apple",Q="ASUS",W="BlackBerry",X="Browser",ue="Chrome",de="Edge",we="Firefox",ye="Google",te="Honor",z="Huawei",U="Lenovo",Z="LG",re="Microsoft",Ie="Motorola",ne="Nvidia",$="OnePlus",J="Opera",Ke="OPPO",Xe="Samsung",pt="Sharp",nt="Sony",Ht="Xiaomi",mt="Zebra",Jt="Facebook",jt="Chromium OS",Ct="Mac OS",zt=" Browser",Qt=function(Y,ae){var j={};for(var ge in Y)ae[ge]&&ae[ge].length%2===0?j[ge]=ae[ge].concat(Y[ge]):j[ge]=Y[ge];return j},St=function(Y){for(var ae={},j=0;j<Y.length;j++)ae[Y[j].toUpperCase()]=Y[j];return ae},at=function(Y,ae){return typeof Y===_?w(ae).indexOf(w(Y))!==-1:!1},w=function(Y){return Y.toLowerCase()},I=function(Y){return typeof Y===_?Y.replace(/[^\d\.]/g,s).split(".")[0]:n},A=function(Y,ae){if(typeof Y===_)return Y=Y.replace(/^\s\s*/,s),typeof ae===u?Y:Y.substring(0,me)},V=function(Y,ae){for(var j=0,ge,qe,De,he,q,Je;j<ae.length&&!q;){var er=ae[j],hr=ae[j+1];for(ge=qe=0;ge<er.length&&!q&&er[ge];)if(q=er[ge++].exec(Y),q)for(De=0;De<hr.length;De++)Je=q[++qe],he=hr[De],typeof he===h&&he.length>0?he.length===2?typeof he[1]==a?this[he[0]]=he[1].call(this,Je):this[he[0]]=he[1]:he.length===3?typeof he[1]===a&&!(he[1].exec&&he[1].test)?this[he[0]]=Je?he[1].call(this,Je,he[2]):n:this[he[0]]=Je?Je.replace(he[1],he[2]):n:he.length===4&&(this[he[0]]=Je?he[3].call(this,Je.replace(he[1],he[2])):n):this[he]=Je||n;j+=2}},D=function(Y,ae){for(var j in ae)if(typeof ae[j]===h&&ae[j].length>0){for(var ge=0;ge<ae[j].length;ge++)if(at(ae[j][ge],Y))return j===o?n:j}else if(at(ae[j],Y))return j===o?n:j;return ae.hasOwnProperty("*")?ae["*"]:Y},M={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},H={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ie={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[y,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[y,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[y,m],[/opios[\/ ]+([\w\.]+)/i],[m,[y,J+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[y,J+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[y,J]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[y,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[y,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[y,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[y,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[y,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[y,"UC"+X]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[y,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[y,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[y,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[y,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[y,"Smart Lenovo "+X]],[/(avast|avg)\/([\w\.]+)/i],[[y,/(.+)/,"$1 Secure "+X],m],[/\bfocus\/([\w\.]+)/i],[m,[y,we+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[y,J+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[y,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[y,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[y,J+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[y,"MIUI"+zt]],[/fxios\/([\w\.-]+)/i],[m,[y,we]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[y,"360"]],[/\b(qq)\/([\w\.]+)/i],[[y,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[y,/(.+)/,"$1"+zt],m],[/samsungbrowser\/([\w\.]+)/i],[m,[y,Xe+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[y,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[y,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[y,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[y],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,y],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[y,Jt],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[y,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[y,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[y,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[y,ue+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[y,ue+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[y,"Android "+X]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[y,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[y,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,y],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[y,[m,D,M]],[/(webkit|khtml)\/([\w\.]+)/i],[y,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[y,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[y,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[y,we+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[y,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[y,[m,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[S,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[S,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[S,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[S,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[S,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[S,/ower/,s,w]],[/ sun4\w[;\)]/i],[[S,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[S,w]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[d,Xe],[v,T]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,Xe],[v,C]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[d,ee],[v,C]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,ee],[v,T]],[/(macintosh);/i],[l,[d,ee]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,pt],[v,C]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[l,[d,te],[v,T]],[/honor([-\w ]+)[;\)]/i],[l,[d,te],[v,C]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[l,[d,z],[v,T]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[d,z],[v,C]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[l,/_/g," "],[d,Ht],[v,T]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[l,/_/g," "],[d,Ht],[v,C]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,Ke],[v,C]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[l,[d,D,{OnePlus:["304","403","203"],"*":Ke}],[v,T]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[v,C]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[v,C]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[d,Ie],[v,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,Ie],[v,T]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,Z],[v,T]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,Z],[v,C]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[l,[d,U],[v,T]],[/(nokia) (t[12][01])/i],[d,l,[v,T]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[l,/_/g," "],[v,C],[d,"Nokia"]],[/(pixel (c|tablet))\b/i],[l,[d,ye],[v,T]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[d,ye],[v,C]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[d,nt],[v,C]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,nt],[v,T]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,$],[v,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,_e],[v,T]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,_e],[v,C]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[v,T]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,W],[v,C]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,Q],[v,T]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,Q],[v,C]],[/(nexus 9)/i],[l,[d,"HTC"],[v,T]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[v,C]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[l,[d,"TCL"],[v,T]],[/(itel) ((\w+))/i],[[d,w],l,[v,D,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[v,T]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[v,C]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[v,C]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[d,"Energizer"],[v,C]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[d,"Cat"],[v,C]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[d,"Smartfren"],[v,C]],[/droid.+; (a(?:015|06[35]|142p?))/i],[l,[d,"Nothing"],[v,C]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[l,[d,"Archos"],[v,T]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[l,[d,"Archos"],[v,C]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[d,l,[v,T]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[d,l,[v,C]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,l,[v,T]],[/(surface duo)/i],[l,[d,re],[v,T]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[v,C]],[/(u304aa)/i],[l,[d,"AT&T"],[v,C]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[v,C]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[v,T]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[v,T]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[v,T]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[v,T]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[v,T]],[/\b(k88) b/i],[l,[d,"ZTE"],[v,T]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[v,C]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[v,C]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[v,T]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[v,T]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[v,T]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[v,T]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[v,T]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[v,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[v,C]],[/\b(ph-1) /i],[l,[d,"Essential"],[v,C]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[v,T]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[v,T]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[v,T]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[l,[d,ne],[v,T]],[/(sprint) (\w+)/i],[d,l,[v,C]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,re],[v,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,mt],[v,T]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,mt],[v,C]],[/smart-tv.+(samsung)/i],[d,[v,k]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,Xe],[v,k]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,Z],[v,k]],[/(apple) ?tv/i],[d,[l,ee+" TV"],[v,k]],[/crkey/i],[[l,ue+"cast"],[d,ye],[v,k]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,_e],[v,k]],[/(shield \w+ tv)/i],[l,[d,ne],[v,k]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,pt],[v,k]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,nt],[v,k]],[/(mi(tv|box)-?\w+) bui/i],[l,[d,Ht],[v,k]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[v,k]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,A],[l,A],[v,k]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[l,[v,k]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,k]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[v,b]],[/droid.+; (shield)( bui|\))/i],[l,[d,ne],[v,b]],[/(playstation \w+)/i],[l,[d,nt],[v,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,re],[v,b]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[l,[d,Xe],[v,x]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[d,l,[v,x]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[l,[d,Ke],[v,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,ee],[v,x]],[/(opwwe\d{3})/i],[l,[d,$],[v,x]],[/(moto 360)/i],[l,[d,Ie],[v,x]],[/(smartwatch 3)/i],[l,[d,nt],[v,x]],[/(g watch r)/i],[l,[d,Z],[v,x]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,mt],[v,x]],[/droid.+; (glass) \d/i],[l,[d,ye],[v,x]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,l,[v,x]],[/; (quest( \d| pro)?)/i],[l,[d,Jt],[v,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[v,P]],[/(aeobc)\b/i],[l,[d,_e],[v,P]],[/(homepod).+mac os/i],[l,[d,ee],[v,P]],[/windows iot/i],[[v,P]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[v,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[v,T]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,T]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,C]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[y,de+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[y,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[y,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[y,m],[/ladybird\//i],[[y,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,y]],os:[[/microsoft (windows) (vista|xp)/i],[y,m],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[y,[m,D,H]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,D,H],[y,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[y,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[y,Ct],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,y],[/(ubuntu) ([\w\.]+) like android/i],[[y,/(.+)/,"$1 Touch"],m],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[y,m],[/\(bb(10);/i],[m,[y,W]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[y,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[y,we+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[y,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[y,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[y,ue+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[y,jt],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[y,m],[/(sunos) ?([\w\.\d]*)/i],[[y,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[y,m]]},K=function(Y,ae){if(typeof Y===h&&(ae=Y,Y=n),!(this instanceof K))return new K(Y,ae).getResult();var j=typeof r!==u&&r.navigator?r.navigator:n,ge=Y||(j&&j.userAgent?j.userAgent:s),qe=j&&j.userAgentData?j.userAgentData:n,De=ae?Qt(ie,ae):ie,he=j&&j.userAgent==ge;return this.getBrowser=function(){var q={};return q[y]=n,q[m]=n,V.call(q,ge,De.browser),q[f]=I(q[m]),he&&j&&j.brave&&typeof j.brave.isBrave==a&&(q[y]="Brave"),q},this.getCPU=function(){var q={};return q[S]=n,V.call(q,ge,De.cpu),q},this.getDevice=function(){var q={};return q[d]=n,q[l]=n,q[v]=n,V.call(q,ge,De.device),he&&!q[v]&&qe&&qe.mobile&&(q[v]=C),he&&q[l]=="Macintosh"&&j&&typeof j.standalone!==u&&j.maxTouchPoints&&j.maxTouchPoints>2&&(q[l]="iPad",q[v]=T),q},this.getEngine=function(){var q={};return q[y]=n,q[m]=n,V.call(q,ge,De.engine),q},this.getOS=function(){var q={};return q[y]=n,q[m]=n,V.call(q,ge,De.os),he&&!q[y]&&qe&&qe.platform&&qe.platform!="Unknown"&&(q[y]=qe.platform.replace(/chrome os/i,jt).replace(/macos/i,Ct)),q},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ge},this.setUA=function(q){return ge=typeof q===_&&q.length>me?A(q,me):q,this},this.setUA(ge),this};K.VERSION=i,K.BROWSER=St([y,m,f]),K.CPU=St([S]),K.DEVICE=St([l,d,v,b,C,k,T,x,P]),K.ENGINE=K.OS=St([y,m]),t.exports&&(e=t.exports=K),e.UAParser=K;var ve=typeof r!==u&&(r.jQuery||r.Zepto);if(ve&&!ve.ua){var He=new K;ve.ua=He.getResult(),ve.ua.get=function(){return He.getUA()},ve.ua.set=function(Y){He.setUA(Y);var ae=He.getResult();for(var j in ae)ve.ua[j]=ae[j]}}})(typeof window=="object"?window:bc)})(rn,rn.exports)),rn.exports}var aa;function Sc(){if(aa)return B;aa=1,Object.defineProperty(B,"__esModule",{value:!0});function t(E){return E&&typeof E=="object"&&"default"in E?E.default:E}var e=yc,r=t(e),n=Cc(),i=new n,s=i.getBrowser(),o=i.getCPU(),a=i.getDevice(),u=i.getEngine(),h=i.getOS(),_=i.getUA(),f=function(p){return i.setUA(p)},l=function(p){if(!p){console.error("No userAgent string was provided");return}var g=new n(p);return{UA:g,browser:g.getBrowser(),cpu:g.getCPU(),device:g.getDevice(),engine:g.getEngine(),os:g.getOS(),ua:g.getUA(),setUserAgent:function(N){return g.setUA(N)}}},y=Object.freeze({ClientUAInstance:i,browser:s,cpu:o,device:a,engine:u,os:h,ua:_,setUa:f,parseUserAgent:l});function v(E,p){var g=Object.keys(E);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(E);p&&(R=R.filter(function(N){return Object.getOwnPropertyDescriptor(E,N).enumerable})),g.push.apply(g,R)}return g}function d(E){for(var p=1;p<arguments.length;p++){var g=arguments[p]!=null?arguments[p]:{};p%2?v(Object(g),!0).forEach(function(R){T(E,R,g[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(g)):v(Object(g)).forEach(function(R){Object.defineProperty(E,R,Object.getOwnPropertyDescriptor(g,R))})}return E}function m(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(p){return typeof p}:m=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},m(E)}function S(E,p){if(!(E instanceof p))throw new TypeError("Cannot call a class as a function")}function b(E,p){for(var g=0;g<p.length;g++){var R=p[g];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(E,R.key,R)}}function C(E,p,g){return p&&b(E.prototype,p),E}function T(E,p,g){return p in E?Object.defineProperty(E,p,{value:g,enumerable:!0,configurable:!0,writable:!0}):E[p]=g,E}function k(){return k=Object.assign||function(E){for(var p=1;p<arguments.length;p++){var g=arguments[p];for(var R in g)Object.prototype.hasOwnProperty.call(g,R)&&(E[R]=g[R])}return E},k.apply(this,arguments)}function x(E,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(p&&p.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),p&&me(E,p)}function P(E){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},P(E)}function me(E,p){return me=Object.setPrototypeOf||function(R,N){return R.__proto__=N,R},me(E,p)}function _e(E,p){if(E==null)return{};var g={},R=Object.keys(E),N,pe;for(pe=0;pe<R.length;pe++)N=R[pe],!(p.indexOf(N)>=0)&&(g[N]=E[N]);return g}function ee(E,p){if(E==null)return{};var g=_e(E,p),R,N;if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(E);for(N=0;N<pe.length;N++)R=pe[N],!(p.indexOf(R)>=0)&&Object.prototype.propertyIsEnumerable.call(E,R)&&(g[R]=E[R])}return g}function Q(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function W(E,p){if(p&&(typeof p=="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q(E)}function X(E,p){return ue(E)||de(E,p)||we(E,p)||te()}function ue(E){if(Array.isArray(E))return E}function de(E,p){var g=E==null?null:typeof Symbol!="undefined"&&E[Symbol.iterator]||E["@@iterator"];if(g!=null){var R=[],N=!0,pe=!1,Me,et;try{for(g=g.call(E);!(N=(Me=g.next()).done)&&(R.push(Me.value),!(p&&R.length===p));N=!0);}catch(ui){pe=!0,et=ui}finally{try{!N&&g.return!=null&&g.return()}finally{if(pe)throw et}}return R}}function we(E,p){if(E){if(typeof E=="string")return ye(E,p);var g=Object.prototype.toString.call(E).slice(8,-1);if(g==="Object"&&E.constructor&&(g=E.constructor.name),g==="Map"||g==="Set")return Array.from(E);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return ye(E,p)}}function ye(E,p){(p==null||p>E.length)&&(p=E.length);for(var g=0,R=new Array(p);g<p;g++)R[g]=E[g];return R}function te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
90
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},U={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},Z={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},re={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Ie=function(p){switch(p){case z.Mobile:return{isMobile:!0};case z.Tablet:return{isTablet:!0};case z.SmartTv:return{isSmartTV:!0};case z.Console:return{isConsole:!0};case z.Wearable:return{isWearable:!0};case z.Browser:return{isBrowser:!0};case z.Embedded:return{isEmbedded:!0};default:return re}},ne=function(p){return f(p)},$=function(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return p||g},J=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},Ke=function(p){var g=J();return g&&g.platform&&(g.platform.indexOf(p)!==-1||g.platform==="MacIntel"&&g.maxTouchPoints>1&&!window.MSStream)},Xe=function(p,g,R,N,pe){return{isBrowser:p,browserMajorVersion:$(g.major),browserFullVersion:$(g.version),browserName:$(g.name),engineName:$(R.name),engineVersion:$(R.version),osName:$(N.name),osVersion:$(N.version),userAgent:$(pe)}},pt=function(p,g,R,N){return d({},p,{vendor:$(g.vendor),model:$(g.model),os:$(R.name),osVersion:$(R.version),ua:$(N)})},nt=function(p,g,R,N){return{isSmartTV:p,engineName:$(g.name),engineVersion:$(g.version),osName:$(R.name),osVersion:$(R.version),userAgent:$(N)}},Ht=function(p,g,R,N){return{isConsole:p,engineName:$(g.name),engineVersion:$(g.version),osName:$(R.name),osVersion:$(R.version),userAgent:$(N)}},mt=function(p,g,R,N){return{isWearable:p,engineName:$(g.name),engineVersion:$(g.version),osName:$(R.name),osVersion:$(R.version),userAgent:$(N)}},Jt=function(p,g,R,N,pe){return{isEmbedded:p,vendor:$(g.vendor),model:$(g.model),engineName:$(R.name),engineVersion:$(R.version),osName:$(N.name),osVersion:$(N.version),userAgent:$(pe)}};function jt(E){var p=E?l(E):y,g=p.device,R=p.browser,N=p.engine,pe=p.os,Me=p.ua,et=Ie(g.type),ui=et.isBrowser,h1=et.isMobile,p1=et.isTablet,cl=et.isSmartTV,ul=et.isConsole,dl=et.isWearable,fl=et.isEmbedded;if(ui)return Xe(ui,R,N,pe,Me);if(cl)return nt(cl,N,pe,Me);if(ul)return Ht(ul,N,pe,Me);if(h1||p1)return pt(et,g,pe,Me);if(dl)return mt(dl,N,pe,Me);if(fl)return Jt(fl,g,N,pe,Me)}var Ct=function(p){var g=p.type;return g===z.Mobile},zt=function(p){var g=p.type;return g===z.Tablet},Qt=function(p){var g=p.type;return g===z.Mobile||g===z.Tablet},St=function(p){var g=p.type;return g===z.SmartTv},at=function(p){var g=p.type;return g===z.Browser},w=function(p){var g=p.type;return g===z.Wearable},I=function(p){var g=p.type;return g===z.Console},A=function(p){var g=p.type;return g===z.Embedded},V=function(p){var g=p.vendor;return $(g)},D=function(p){var g=p.model;return $(g)},M=function(p){var g=p.type;return $(g,"browser")},H=function(p){var g=p.name;return g===Z.Android},ie=function(p){var g=p.name;return g===Z.Windows},K=function(p){var g=p.name;return g===Z.MAC_OS},ve=function(p){var g=p.name;return g===Z.WindowsPhone},He=function(p){var g=p.name;return g===Z.IOS},Y=function(p){var g=p.version;return $(g)},ae=function(p){var g=p.name;return $(g)},j=function(p){var g=p.name;return g===U.Chrome},ge=function(p){var g=p.name;return g===U.Firefox},qe=function(p){var g=p.name;return g===U.Chromium},De=function(p){var g=p.name;return g===U.Edge},he=function(p){var g=p.name;return g===U.Yandex},q=function(p){var g=p.name;return g===U.Safari||g===U.MobileSafari},Je=function(p){var g=p.name;return g===U.MobileSafari},er=function(p){var g=p.name;return g===U.Opera},hr=function(p){var g=p.name;return g===U.InternetExplorer||g===U.Ie},Fn=function(p){var g=p.name;return g===U.MIUI},Vn=function(p){var g=p.name;return g===U.SamsungBrowser},$n=function(p){var g=p.version;return $(g)},Bn=function(p){var g=p.major;return $(g)},Wn=function(p){var g=p.name;return $(g)},Hn=function(p){var g=p.name;return $(g)},jn=function(p){var g=p.version;return $(g)},zn=function(){var p=J(),g=p&&p.userAgent&&p.userAgent.toLowerCase();return typeof g=="string"?/electron/.test(g):!1},tr=function(p){return typeof p=="string"&&p.indexOf("Edg/")!==-1},Gn=function(){var p=J();return p&&(/iPad|iPhone|iPod/.test(p.platform)||p.platform==="MacIntel"&&p.maxTouchPoints>1)&&!window.MSStream},lt=function(){return Ke("iPad")},Kn=function(){return Ke("iPhone")},qn=function(){return Ke("iPod")},Zn=function(p){return $(p)};function Yn(E){var p=E||y,g=p.device,R=p.browser,N=p.os,pe=p.engine,Me=p.ua;return{isSmartTV:St(g),isConsole:I(g),isWearable:w(g),isEmbedded:A(g),isMobileSafari:Je(R)||lt(),isChromium:qe(R),isMobile:Qt(g)||lt(),isMobileOnly:Ct(g),isTablet:zt(g)||lt(),isBrowser:at(g),isDesktop:at(g),isAndroid:H(N),isWinPhone:ve(N),isIOS:He(N)||lt(),isChrome:j(R),isFirefox:ge(R),isSafari:q(R),isOpera:er(R),isIE:hr(R),osVersion:Y(N),osName:ae(N),fullBrowserVersion:$n(R),browserVersion:Bn(R),browserName:Wn(R),mobileVendor:V(g),mobileModel:D(g),engineName:Hn(pe),engineVersion:jn(pe),getUA:Zn(Me),isEdge:De(R)||tr(Me),isYandex:he(R),deviceType:M(g),isIOS13:Gn(),isIPad13:lt(),isIPhone13:Kn(),isIPod13:qn(),isElectron:zn(),isEdgeChromium:tr(Me),isLegacyEdge:De(R)&&!tr(Me),isWindows:ie(N),isMacOs:K(N),isMIUI:Fn(R),isSamsungBrowser:Vn(R)}}var Xn=St(a),Jn=I(a),Qn=w(a),bs=A(a),Cs=Je(s)||lt(),Ss=qe(s),Mr=Qt(a)||lt(),ei=Ct(a),ti=zt(a)||lt(),ri=at(a),Es=at(a),ni=H(h),ii=ve(h),si=He(h)||lt(),Is=j(s),Os=ge(s),Ts=q(s),Rs=er(s),oi=hr(s),As=Y(h),xs=ae(h),Ns=$n(s),ks=Bn(s),Ds=Wn(s),Ms=V(a),Ps=D(a),Us=Hn(u),Ls=jn(u),Fs=Zn(_),Et=De(s)||tr(_),Vs=he(s),se=M(a),_t=Gn(),Pr=lt(),ai=Kn(),li=qn(),ci=zn(),zd=tr(_),Gd=De(s)&&!tr(_),Kd=ie(h),qd=K(h),Zd=Fn(s),Yd=Vn(s),Xd=function(p){if(!p||typeof p!="string"){console.error("No valid user agent string was provided");return}var g=l(p),R=g.device,N=g.browser,pe=g.os,Me=g.engine,et=g.ua;return Yn({device:R,browser:N,os:pe,engine:Me,ua:et})},Jd=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return ni?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},Qd=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return ri?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},e1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return oi?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},t1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return si?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},r1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return Mr?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},n1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return ti?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},i1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return ii?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},s1=function(p){var g=p.renderWithFragment,R=p.children;p.viewClassName,p.style;var N=ee(p,["renderWithFragment","children","viewClassName","style"]);return ei?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},o1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return Xn?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},a1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return Jn?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},l1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return Qn?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},c1=function(p){var g=p.renderWithFragment,R=p.children;p.viewClassName,p.style;var N=p.condition,pe=ee(p,["renderWithFragment","children","viewClassName","style","condition"]);return N?g?r.createElement(e.Fragment,null,R):r.createElement("div",pe,R):null};function u1(E){return(function(p){x(g,p);function g(R){var N;return S(this,g),N=W(this,P(g).call(this,R)),N.isEventListenerAdded=!1,N.handleOrientationChange=N.handleOrientationChange.bind(Q(N)),N.onOrientationChange=N.onOrientationChange.bind(Q(N)),N.onPageLoad=N.onPageLoad.bind(Q(N)),N.state={isLandscape:!1,isPortrait:!1},N}return C(g,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var N=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:N===0,isLandscape:N===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window=="undefined"?"undefined":m(window))!==void 0&&Mr&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return r.createElement(E,k({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),g})(r.Component)}function d1(){var E=e.useState(function(){var pe=window.innerWidth>window.innerHeight?90:0;return{isPortrait:pe===0,isLandscape:pe===90,orientation:pe===0?"portrait":"landscape"}}),p=X(E,2),g=p[0],R=p[1],N=e.useCallback(function(){var pe=window.innerWidth>window.innerHeight?90:0,Me={isPortrait:pe===0,isLandscape:pe===90,orientation:pe===0?"portrait":"landscape"};g.orientation!==Me.orientation&&R(Me)},[g.orientation]);return e.useEffect(function(){return(typeof window=="undefined"?"undefined":m(window))!==void 0&&Mr&&(N(),window.addEventListener("load",N,!1),window.addEventListener("resize",N,!1)),function(){window.removeEventListener("resize",N,!1),window.removeEventListener("load",N,!1)}},[N]),g}function ll(E){var p=E||window.navigator.userAgent;return l(p)}function f1(E){var p=E||window.navigator.userAgent,g=ll(p),R=Yn(g);return[R,g]}return B.AndroidView=Jd,B.BrowserTypes=U,B.BrowserView=Qd,B.ConsoleView=a1,B.CustomView=c1,B.IEView=e1,B.IOSView=t1,B.MobileOnlyView=s1,B.MobileView=r1,B.OsTypes=Z,B.SmartTVView=o1,B.TabletView=n1,B.WearableView=l1,B.WinPhoneView=i1,B.browserName=Ds,B.browserVersion=ks,B.deviceDetect=jt,B.deviceType=se,B.engineName=Us,B.engineVersion=Ls,B.fullBrowserVersion=Ns,B.getSelectorsByUserAgent=Xd,B.getUA=Fs,B.isAndroid=ni,B.isBrowser=ri,B.isChrome=Is,B.isChromium=Ss,B.isConsole=Jn,B.isDesktop=Es,B.isEdge=Et,B.isEdgeChromium=zd,B.isElectron=ci,B.isEmbedded=bs,B.isFirefox=Os,B.isIE=oi,B.isIOS=si,B.isIOS13=_t,B.isIPad13=Pr,B.isIPhone13=ai,B.isIPod13=li,B.isLegacyEdge=Gd,B.isMIUI=Zd,B.isMacOs=qd,B.isMobile=Mr,B.isMobileOnly=ei,B.isMobileSafari=Cs,B.isOpera=Rs,B.isSafari=Ts,B.isSamsungBrowser=Yd,B.isSmartTV=Xn,B.isTablet=ti,B.isWearable=Qn,B.isWinPhone=ii,B.isWindows=Kd,B.isYandex=Vs,B.mobileModel=Ps,B.mobileVendor=Ms,B.osName=xs,B.osVersion=As,B.parseUserAgent=l,B.setUserAgent=ne,B.useDeviceData=ll,B.useDeviceSelectors=f1,B.useMobileOrientation=d1,B.withOrientationChange=u1,B}var Yt=Sc();const Ec=(t,e)=>Ki(t,e),Ki=(t,e)=>{const r=qi(t,e);for(const n in r)if(Object.prototype.hasOwnProperty.call(r,n)){const i=r[n];if(typeof i=="object"&&!Array.isArray(i))r[n]=qi(i,e);else if(Array.isArray(i)){const s=i.map(o=>typeof o=="object"?Ki(o,e):o);r[n]=s}}return r},qi=(t,e)=>{const r=Ic(t),n=t.layout;if(!n||n.length===0)return r;let i=null;if(n.forEach(s=>{const o=e[s];i?o&&Oc(o,i):i=o}),i){const s=qi(i,e);for(const o in s)if(Object.prototype.hasOwnProperty.call(s,o)){const a=s[o];Object.prototype.hasOwnProperty.call(r,o)||(r[o]=a)}}return Ki(r,e)},Ic=t=>{const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&r.toLowerCase()!=="layout"&&(e[r]=t[r]);return e},Oc=(t,e)=>{for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Be=[];for(let t=0;t<256;++t)Be.push((t+256).toString(16).slice(1));function Tc(t,e=0){return(Be[t[e+0]]+Be[t[e+1]]+Be[t[e+2]]+Be[t[e+3]]+"-"+Be[t[e+4]]+Be[t[e+5]]+"-"+Be[t[e+6]]+Be[t[e+7]]+"-"+Be[t[e+8]]+Be[t[e+9]]+"-"+Be[t[e+10]]+Be[t[e+11]]+Be[t[e+12]]+Be[t[e+13]]+Be[t[e+14]]+Be[t[e+15]]).toLowerCase()}let Zi;const Rc=new Uint8Array(16);function Ac(){if(!Zi){if(typeof crypto=="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Zi=crypto.getRandomValues.bind(crypto)}return Zi(Rc)}const la={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function xc(t,e,r){var i,s,o;t=t||{};const n=(o=(s=t.random)!=null?s:(i=t.rng)==null?void 0:i.call(t))!=null?o:Ac();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Tc(n)}function Nc(t,e,r){return la.randomUUID&&!t?la.randomUUID():xc(t)}function Yi(t){try{return JSON.parse(JSON.stringify(t))}catch(e){return console.warn("Failed to copy object:",e),null}}const ca=(t,e)=>{if(!t||!e)return null;let r=null;return r=Yi(t),r&&(r=Ec(r,e)),r};function kc(t){return L(this,null,function*(){return new Promise(e=>setTimeout(e,t))})}function ua(i,s){return L(this,arguments,function*(t,e,r=Bl,n=Wl){let o=0;for(;o<r;){const a=yield t();if(a!==null)return a;o++,o<r&&(yield kc(n))}return e()})}const Dc=(t,e,r)=>{const n=t.reduce((s,o)=>(s.push(...o.supportedTemplates),s),[]),i=e.find(s=>s.id===r);return n.includes(i==null?void 0:i.client.templateId)},Mc=(t,e)=>{if(!t||!e)return!1;const r=t.find(i=>i.id===e);return(r==null?void 0:r.type)!=="PROCESSING"},Pc=(t,e)=>{const r=t.reduce((o,a)=>(o.push(...a.supportedTemplates),o),[]),n=Array.from(new Set(e.filter(o=>!o.final&&$l.includes(o.type)).map(o=>o.client.templateId)));function i(o,a){const u=new Set(o);return a.filter(h=>!u.has(h))}const s=i(r,n);return{isAllTemplatesSupported:s.length===0,unsupportedSteps:s.length>0?s:void 0}},Or={setAuthTokenToLs:(t,e,r,n,i)=>{const s=localStorage.getItem(Kr),o=s?JSON.parse(s):{},a={authToken:t,tokenExpiredIn:i,workflowId:n,sessionId:r};o[e]=a,localStorage.setItem(Kr,JSON.stringify(o))},getAuthTokenLs:()=>{const t=localStorage.getItem(Kr);if(!t)return null;try{const e=JSON.parse(t);return e&&typeof e=="object"&&!Array.isArray(e)?e:null}catch(e){return null}},removeAuthTokenLs:t=>{if(!t)return!1;const e=localStorage.getItem(Kr);if(!e)return!1;try{const r=JSON.parse(e);return Object.prototype.hasOwnProperty.call(r,t)?(delete r[t],localStorage.setItem(Kr,JSON.stringify(r)),!0):!1}catch(r){return!1}}},Xi=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Ji=t=>/^[^:{}\s]+:[^:{}\s]+$/.test(t),Qi={setSessionIdWorkflowIdToLs:(t,e)=>{const r=localStorage.getItem(or);let n={};if(r)try{const i=JSON.parse(r);Xi(i)&&(n=i)}catch(i){if(Ji(r)){const[s,o]=r.split(":");s&&o&&(n={[o]:s})}}n[e]=t,localStorage.setItem(or,JSON.stringify(n))},getSessionIdWorkflowIdFromLS:()=>{const t=localStorage.getItem(or);if(!t)return null;try{const e=JSON.parse(t);return Xi(e)?e:null}catch(e){if(Ji(t)){const[r,n]=t.split(":");if(r&&n)return{[n]:r}}return null}},removeSessionIdWorkflowIdFromLS:({workflowId:t=""})=>{const e=localStorage.getItem(or);if(!e)return!1;if(!t)return localStorage.removeItem(or),!0;try{const r=JSON.parse(e);if(!Xi(r))return!1;const n=r;return Object.prototype.hasOwnProperty.call(n,t)?(delete n[t],localStorage.setItem(or,JSON.stringify(n)),!0):!1}catch(r){if(Ji(e)){const[,n]=e.split(":");return n===t?(localStorage.removeItem(or),!0):!1}return!1}}},Uc=t=>{var n;let e;const r=Nc();try{e=(n=window.localStorage.getItem(t))!=null?n:r,window.localStorage.setItem(t,e)}catch(i){e=r}return e};function Lc(t){return Object.prototype.toString.call(t)==="[object Object]"&&Object.keys(t).length>0}function Fc(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function Vc(){return typeof document=="undefined"?null:document.documentElement.getAttribute("lang")||null}function $c(){return typeof navigator!="undefined"?navigator.language:null}const Bc=t=>{const e=jl,r=typeof t=="string"?t:null,n=Vc(),i=$c();return r||n||i||e},Wc=t=>{try{return new URL(t).searchParams.get("sessionId")}catch(e){return null}};function da(t){return!("error"in t)}function es(t){try{let e=t;!t.includes("://")&&t.includes(".")&&(e=`http://${t}`);const r=new URL(e),n=r.hostname,i=r.protocol==="https:",s=r.port?parseInt(r.port,10):void 0;return{host:n,isSecure:i,port:s}}catch(e){return null}}const fa=()=>{if(typeof window=="undefined")return"SERVER_SIDE_RENDERING";if(!document.referrer)return window.location.origin;try{return new URL(document.referrer).origin}catch(t){return window.location.origin}},ts=t=>({deviceId:Uc(Hl),metadata:{platform:"browser",osVersion:`${Yt.osVersion}`,hostAppId:fa(),host:fa(),name:navigator.userAgent,deviceModel:`${Yt.osName}/${Yt.osVersion} ${Yt.browserName}/${Yt.fullBrowserVersion}`,hostAppVersion:`${Yt.browserName}/${Yt.fullBrowserVersion}`},deviceType:"browser",heartbeatCadence:2,serial:"",macAddress:""}),ha={apiKeyAuthTokenCollection:{},sessionProperties:[],currentSessionData:null,sessionRestoreMode:!1,processingTransformedTemplate:null,nonce:void 0,currentStepId:null,layout:null,currentScreenConfig:null,workflowId:null,modulesConfig:{},workflow:null,externalModules:[],serviceToken:void 0,startConfig:{},listener:()=>{}},Hc=(t,e)=>G(O({},ha),{setApiKeyAuthTokenCollection:(r,n,i)=>{t({apiKeyAuthTokenCollection:{authToken:n,apiKey:r,tokenExpiredIn:i}})},setSessionProperties:r=>{t({sessionProperties:r})},setServiceSessionToken:r=>{t({serviceToken:r})},setListener:r=>{t({listener:r})},getCurrentSessionDataLs:()=>{const r=Qi.getSessionIdWorkflowIdFromLS(),n=e().workflowId,s=r&&r[n];return n&&s?{workflowId:n,sessionId:s}:null},setCurrentSessionDataLsAndStore:r=>{Qi.setSessionIdWorkflowIdToLs(r.sessionId,r.workflowId),t(()=>({currentSessionData:r}))},removeCurrentSessionDataLsAndStore:()=>{const r=e().startConfig,n="apiKey"in r&&typeof r.apiKey=="string"?r.apiKey:"",i=e().workflowId;n?Or.removeAuthTokenLs(n):Qi.removeSessionIdWorkflowIdFromLS({workflowId:i}),t(()=>({currentSessionData:null})),t({_sessionIdFromUrl:null})},getCurrentSessionId(){const r=e().currentSessionData;return r?r.sessionId:null},setWorkflowId:r=>{t(()=>({workflowId:r}))},setWorkflow:r=>{t(()=>({workflow:r}))},setLayout:r=>{t(()=>({layout:r}))},setCurrentStepId:r=>{t(()=>({currentStepId:r}))},setSessionRestoreMode:r=>{t(()=>({sessionRestoreMode:r}))},setNonce:r=>{t(()=>({nonce:r}))},getNonce:()=>e().nonce,resetProps:()=>t(()=>O({},ha)),setStartConfig:r=>{t(()=>({startConfig:r}))}});class be{constructor({errorCode:e,errorCodeKey:r,message:n,underlyingError:i,underlyingBaseError:s,domain:o,module:a,errorEnumName:u,shortDomainCode:h}){this.errorCode=e,this.errorCodeKey=r,this.message=n,this.underlyingError=i,this.underlyingBaseError=s,this.module=a,this.domain=o,this.errorEnumName=u,this.shortDomainCode=h}static getErrorKey(e,r){const n=Object.keys(r).find(i=>r[i]===e);if(!n)throw new Error(`Invalid errorCode: ${e} in enum`);return n}get lastUnderlyingError(){let e=this.underlyingBaseError;for(;(e==null?void 0:e.underlyingBaseError)instanceof be;)e=e.underlyingBaseError;return e==null?void 0:e.underlyingError}toObject(){const e={errorCode:this.errorCode,errorCodeKey:this.errorCodeKey,errorEnumName:this.errorEnumName,message:this.message,module:this.module,underlyingError:this.underlyingError,lastUnderlineError:this.lastUnderlyingError};return this.underlyingBaseError&&this.underlyingBaseError instanceof be&&(e.underlyingBaseError=this.underlyingBaseError.toObject()),e}get shortChain(){let e=`${this.shortDomainCode}:${this.errorCode}${this.underlyingError?"-"+this.underlyingError:""}`;return this.underlyingBaseError instanceof be&&(e+=`-${this.underlyingBaseError.shortChain}`),e}get fullChain(){let e=`${this.module}.${this.domain}:${this.errorCodeKey}${this.underlyingError?"-"+this.underlyingError:""}`;return this.underlyingBaseError instanceof be&&(e+=`-${this.underlyingBaseError.fullChain}`),e}}class pa extends HTMLElement{}function ma(t,e){if(e.displayName?console.log(`Register module: ${e.displayName}`):console.error('Missed "displayName" when register module'),e.getSupportedTemplates&&typeof e.getSupportedTemplates=="function"){const r=e.getSupportedTemplates();console.log(`${e==null?void 0:e.displayName} supported templates: ${r.join(", ")}`)}else console.error('Missed "getSupportedTemplates" method when register module');if(e.initialize&&typeof e.initialize=="function"||console.error(`${e==null?void 0:e.displayName} "initialize" method was not implemented`),e.deinitialize&&typeof e.deinitialize=="function"||console.error(`${e==null?void 0:e.displayName} "deinitialize" method was not implemented`),e.isReady&&typeof e.isReady=="function"||console.error(`${e==null?void 0:e.displayName} "isReady" method was not implemented`),e.getIdentifier&&typeof e.getIdentifier=="function"){const r=e.getIdentifier();console.log(`Module id: ${r}`)}else console.error('Missed "getIdentifier" when register module');customElements.get(e.getIdentifier())?console.log(`Module ${t} has already registered`):customElements.define(t,e),console.log("-------")}const kt=class kt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,zr);super({errorCode:e,errorCodeKey:s,errorEnumName:kt.ERROR_ENUM_NAME,module:kt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:kt.ERROR_ENUM_NAME,shortDomainCode:kt.SHORT_CODE})}};kt.MODULE=vt,kt.ERROR_ENUM_NAME="InitializeError",kt.SHORT_CODE="IN";let Sn=kt;const Dt=class Dt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,gn);super({errorCode:e,errorCodeKey:s,errorEnumName:Dt.ERROR_ENUM_NAME,module:Dt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Dt.ERROR_ENUM_NAME,shortDomainCode:Dt.SHORT_CODE})}};Dt.MODULE=vt,Dt.ERROR_ENUM_NAME="TokenInitializeError",Dt.SHORT_CODE="TI";let En=Dt;const Mt=class Mt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,gt);super({errorCode:e,errorCodeKey:s,errorEnumName:Mt.ERROR_ENUM_NAME,module:Mt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Mt.ERROR_ENUM_NAME,shortDomainCode:Mt.SHORT_CODE})}};Mt.MODULE=vt,Mt.ERROR_ENUM_NAME="PrepareWorkflowError",Mt.SHORT_CODE="PW";let At=Mt;const Pt=class Pt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,Ve);super({errorCode:e,errorCodeKey:s,errorEnumName:Pt.ERROR_ENUM_NAME,module:Pt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Pt.ERROR_ENUM_NAME,shortDomainCode:Pt.SHORT_CODE})}};Pt.MODULE=vt,Pt.ERROR_ENUM_NAME="ConfigureError",Pt.SHORT_CODE="CFG";let We=Pt;const Ut=class Ut extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,$e);super({errorCode:e,errorCodeKey:s,errorEnumName:Ut.ERROR_ENUM_NAME,module:Ut.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Ut.ERROR_ENUM_NAME,shortDomainCode:Ut.SHORT_CODE})}};Ut.MODULE=vt,Ut.ERROR_ENUM_NAME="WorkflowError",Ut.SHORT_CODE="SC";let ze=Ut;const Lt=class Lt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,Ot);super({errorCode:e,errorCodeKey:s,errorEnumName:Lt.ERROR_ENUM_NAME,module:Lt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Lt.ERROR_ENUM_NAME,shortDomainCode:Lt.SHORT_CODE})}};Lt.MODULE=vt,Lt.ERROR_ENUM_NAME="ConnectionError",Lt.SHORT_CODE="CO";let nn=Lt;const Ft=class Ft extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,it);super({errorCode:e,errorCodeKey:s,errorEnumName:Ft.ERROR_ENUM_NAME,module:Ft.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Ft.ERROR_ENUM_NAME,shortDomainCode:Ft.SHORT_CODE})}};Ft.MODULE=vt,Ft.ERROR_ENUM_NAME="SessionError",Ft.SHORT_CODE="SE";let sn=Ft;const Vt=class Vt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,qt);super({errorCode:e,errorCodeKey:s,errorEnumName:Vt.ERROR_ENUM_NAME,module:Vt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Vt.ERROR_ENUM_NAME,shortDomainCode:Vt.SHORT_CODE})}};Vt.MODULE=vt,Vt.ERROR_ENUM_NAME="StartSessionError",Vt.SHORT_CODE="ST";let cr=Vt;const $t=class $t extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,Gr);super({errorCode:e,errorCodeKey:s,errorEnumName:$t.ERROR_ENUM_NAME,module:$t.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:$t.ERROR_ENUM_NAME,shortDomainCode:$t.SHORT_CODE})}};$t.MODULE=vt,$t.ERROR_ENUM_NAME="DeinitializationError",$t.SHORT_CODE="DE";let In=$t;const Bt=class Bt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,ct);super({errorCode:e,errorCodeKey:s,errorEnumName:Bt.ERROR_ENUM_NAME,module:Bt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Bt.ERROR_ENUM_NAME,shortDomainCode:Bt.SHORT_CODE})}};Bt.MODULE=vt,Bt.ERROR_ENUM_NAME="WorkflowPlatformError",Bt.SHORT_CODE="WPE";let On=Bt;class Tr{constructor(){this.webSocket=null,this.callbacks=new Set,this.connected=!1}static getInstance(){return Tr.instance||(Tr.instance=new Tr),Tr.instance}isConnected(){return this.connected}connect({host:e,isSecure:r=!0,token:n,port:i}){return this.connected?Promise.resolve():new Promise(s=>{const o=`ws${r?"s":""}://${e}${i?`:${i}`:""}/ws/device?Authorization=Connection%20${n}`;this.webSocket=new WebSocket(o),this.webSocket.onopen=()=>{this.connected=!0,s()},this.webSocket.onerror=()=>s(),this.webSocket.onmessage=a=>{this.callbacks.forEach(u=>u(a.data))},this.webSocket.onclose=a=>{this.connected=!1,this.webSocket=null,console.log("Socket connection closed",a)}})}onMessage(e){this.callbacks.add(e)}clearSubscriptions(){this.callbacks.clear()}close(){var e;(e=this.webSocket)==null||e.close(),this.webSocket=null,this.connected=!1,this.callbacks.clear()}}const ur=Tr.getInstance();var jc=0;function c(t,e,r,n,i,s){e||(e={});var o,a,u=e;if("ref"in u)for(a in u={},e)a=="ref"?o=e[a]:u[a]=e[a];var h={type:t,props:u,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--jc,__i:-1,__u:0,__source:i,__self:s};if(typeof t=="function"&&(o=t.defaultProps))for(a in o)u[a]===void 0&&(u[a]=o[a]);return oe.vnode&&oe.vnode(h),h}const rs=Ni(void 0),_a=({perform:t,children:e,setIsProcessingCallback:r})=>c(rs.Provider,{value:{perform:t,setIsProcessingCallback:r},children:e}),dr=()=>{const t=Qr(rs);if(!t)throw new Error("usePerform must be used within a PerformProvider");return{perform:t.perform}},zc=()=>{const t=Qr(rs);if(!t)throw new Error("useSetIsProcessingCallback must be used within a Context Provider");return{setIsProcessingCallback:t.setIsProcessingCallback}},Gc={width:"86px",height:"86px",flex:"0 0 86px",marginBottom:"16px",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center"},dt={INFO:"INFO",INFO_DETAILS:"INFO_DETAILS",STATUS:"STATUS",PROGRESS:"PROGRESS",QUESTIONS:"QUESTIONS",CAMERA:"CAMERA",GALLERY:"GALLERY",GEOLOCATION:"GEOLOCATION"},Tn={LEFT:"LEFT",CENTER:"CENTER",RIGHT:"RIGHT"},Rn={ASPECT_FILL:"ASPECT_FILL",ASPECT_FIT:"ASPECT_FIT",FILL:"FILL"},Rr={TEXT_EXPANDABLE:"text_expandable",TEXT_SINGLE_LINE:"text_single_line",SELECTOR_OPTIONS:"selector_options",SELECTOR_BUTTONS:"selector_buttons",SELECTOR_DROPDOWN:"selector_dropdown",MULTI_SELECTOR_DROPDOWN:"multi_selector_dropdown"},An={FREE_TEXT:"FREE_TEXT",EMAIL:"EMAIL",NUMBER:"NUMBER",SECURE:"SECURE"},on="#005fcc",xn="idv-gui",Nn={DECODING_FAILED:"DECODING_FAILED"},ns={text:"text",selector:"selector",multiSelector:"multiSelector"},ga={NOT_EMPTY:"notEmpty",REGEX:"regex"};function va(t){return t===Tn.CENTER?"center":t===Tn.RIGHT?"right":"left"}function is(t){if(typeof t=="object"&&t!==null)for(const e in t)typeof t[e]=="object"?is(t[e]):t[e]==="true"?t[e]=!0:t[e]==="false"&&(t[e]=!1);return t}function Kc(t){return Object.entries(t).map(([e,r])=>({id:e,value:typeof r=="string"?r.trim():r})).filter(e=>!!e.value)}const qc=t=>Array.isArray(t)?t.length===0:t===0?!1:!t;function le(t){return t&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)?t:void 0}const Zc=(t,e)=>t.reduce((r,n)=>{var i,s,o;if(n.answerType===ns.text&&(i=n.property)!=null&&i.id){const a=e.find(u=>u.name===n.property.id);if(a!=null&&a.string)return G(O({},r),{[n.id]:a.string})}if(n.answerType===ns.selector&&(s=n.property)!=null&&s.id){const a=e.find(u=>u.name===n.property.id);if(a!=null&&a.string)return G(O({},r),{[n.id]:a.string})}if(n.answerType===ns.multiSelector&&(o=n.property)!=null&&o.id){const a=e.find(u=>u.name===n.property.id);if(a!=null&&a.array)return G(O({},r),{[n.id]:a.array})}return r},{}),wa=t=>new Promise((e,r)=>{const n=new FileReader;n.onload=()=>{const i=n.result;if(typeof i=="string"){const s=i.split(",")[1];e(s)}else r(new Error("Unexpected result type"))},n.onerror=()=>r(n.error),n.readAsDataURL(t)}),Yc=()=>L(null,null,function*(){try{return(yield navigator.mediaDevices.getUserMedia({video:!0})).getTracks().forEach(e=>e.stop()),"allowed"}catch(t){return(t==null?void 0:t.name)==="NotAllowedError"?"denied":"error"}}),Xc=()=>String.fromCharCode(Math.floor(Math.random()*26)+97)+Number(Math.random()).toString(16).slice(2)+Date.now().toString(16).slice(4),ya=({indicatorColor:t})=>{const e=ot(null),r=le(t)||"#000000",n=60,i=5,s=.75,o=(n-i)/2,a=2*Math.PI*o,u=1-s,h=360/1e3;return st(()=>{if(!e.current)return;let _=!0,f=0,l=performance.now();function y(v){if(!_)return;const d=v-l;l=v,f=(f+h*d)%360,e.current&&(e.current.style.transform=`rotate(${f}deg)`),requestAnimationFrame(y)}return requestAnimationFrame(y),()=>{_=!1}},[]),c("svg",{ref:e,width:n,height:n,viewBox:`0 0 ${n} ${n}`,children:c("circle",{cx:n/2,cy:n/2,r:o,fill:"none",stroke:r,strokeWidth:i,strokeDasharray:`${a*s} ${a*u}`,strokeDashoffset:0,strokeLinecap:"butt",transform:`rotate(-45 ${n/2} ${n/2})`})})};function Jc({size:t,color:e}){return c("svg",{width:t||86,height:t||86,viewBox:"0 0 87 86",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("ellipse",{cx:"43.4053",cy:"43",rx:"40",ry:"40",transform:"rotate(90 43.4053 43)",stroke:"#FF3B30",strokeWidth:"3"}),c("path",{d:"M56.9053 29L29.4053 56.5",stroke:e||"#FF3B30",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M29.4053 29L56.9053 56.5",stroke:e||"#FF3B30",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Qc({size:t}){return c("svg",{width:t||48,height:t||48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("circle",{cx:"24.5",cy:"24",r:"18",stroke:"#0E1F97",strokeWidth:"3"}),c("path",{d:"M17.3803 18.3406V29.2496H15.0739V20.5298H15.0099L12.5117 22.0959V20.0504L15.2124 18.3406H17.3803Z",fill:"#0E1F97"}),c("path",{d:"M23.2927 29.3988C22.4724 29.3988 21.7426 29.2656 21.1034 28.9993C20.4678 28.7294 19.9688 28.3619 19.6066 27.8967C19.2444 27.4315 19.0633 26.9041 19.0633 26.3146C19.0633 25.8601 19.1663 25.4428 19.3722 25.0629C19.5818 24.6793 19.8659 24.3615 20.2245 24.1094C20.5832 23.8537 20.9845 23.6903 21.4284 23.6193V23.5447C20.846 23.4276 20.3737 23.1452 20.0115 22.6978C19.6492 22.2468 19.4681 21.723 19.4681 21.1264C19.4681 20.5618 19.6333 20.0593 19.9635 19.619C20.2938 19.1751 20.7465 18.8271 21.3218 18.5749C21.9007 18.3192 22.5576 18.1914 23.2927 18.1914C24.0278 18.1914 24.683 18.3192 25.2583 18.5749C25.8371 18.8306 26.2916 19.1804 26.6219 19.6243C26.9521 20.0646 27.1191 20.5653 27.1226 21.1264C27.1191 21.7266 26.9344 22.2504 26.5686 22.6978C26.2029 23.1452 25.7341 23.4276 25.1624 23.5447V23.6193C25.5992 23.6903 25.9951 23.8537 26.3502 24.1094C26.7089 24.3615 26.993 24.6793 27.2025 25.0629C27.4156 25.4428 27.5239 25.8601 27.5274 26.3146C27.5239 26.9041 27.341 27.4315 26.9788 27.8967C26.6166 28.3619 26.1159 28.7294 25.4767 28.9993C24.841 29.2656 24.113 29.3988 23.2927 29.3988ZM23.2927 27.7049C23.6585 27.7049 23.9781 27.6392 24.2515 27.5078C24.5249 27.3729 24.738 27.1882 24.8907 26.9538C25.047 26.7159 25.1251 26.4425 25.1251 26.1335C25.1251 25.8175 25.0452 25.5387 24.8854 25.2972C24.7256 25.0522 24.509 24.8604 24.2355 24.7219C23.9621 24.5799 23.6478 24.5089 23.2927 24.5089C22.9411 24.5089 22.6269 24.5799 22.3499 24.7219C22.0729 24.8604 21.8545 25.0522 21.6947 25.2972C21.5384 25.5387 21.4603 25.8175 21.4603 26.1335C21.4603 26.4425 21.5367 26.7159 21.6894 26.9538C21.8421 27.1882 22.0569 27.3729 22.3339 27.5078C22.6109 27.6392 22.9305 27.7049 23.2927 27.7049ZM23.2927 22.831C23.5981 22.831 23.8698 22.7688 24.1077 22.6445C24.3456 22.5202 24.532 22.348 24.667 22.1278C24.8019 21.9077 24.8694 21.6538 24.8694 21.3661C24.8694 21.082 24.8019 20.8335 24.667 20.6204C24.532 20.4038 24.3474 20.2351 24.113 20.1143C23.8786 19.9901 23.6052 19.9279 23.2927 19.9279C22.9838 19.9279 22.7103 19.9901 22.4724 20.1143C22.2345 20.2351 22.048 20.4038 21.9131 20.6204C21.7817 20.8335 21.716 21.082 21.716 21.3661C21.716 21.6538 21.7835 21.9077 21.9184 22.1278C22.0534 22.348 22.2398 22.5202 22.4777 22.6445C22.7156 22.7688 22.9873 22.831 23.2927 22.831Z",fill:"#0E1F97"}),c("path",{d:"M31.65 27.5877V20.0451H33.557V27.5877H31.65ZM28.8322 24.7699V22.8629H36.3748V24.7699H28.8322Z",fill:"#0E1F97"})]})}function eu({size:t,color:e}){return c("svg",{width:t||20,height:t||20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M14.3976 12.2816C14.2402 12.2816 14.0863 12.235 13.9555 12.1478C13.8246 12.0605 13.7225 11.9364 13.6623 11.7913C13.602 11.6461 13.5862 11.4864 13.6169 11.3322C13.6476 11.1781 13.7234 11.0365 13.8346 10.9254C13.9459 10.8143 14.0877 10.7386 14.242 10.7079C14.3964 10.6772 14.5564 10.6929 14.7018 10.753C14.8473 10.8131 14.9716 10.9149 15.059 11.0456C15.1465 11.1762 15.1932 11.3298 15.1932 11.4869C15.193 11.6976 15.1091 11.8995 14.9599 12.0485C14.8108 12.1974 14.6086 12.2813 14.3976 12.2816ZM5.60241 12.2816C5.44501 12.2816 5.29115 12.235 5.16026 12.1478C5.02938 12.0605 4.92736 11.9364 4.8671 11.7913C4.80684 11.6461 4.79105 11.4864 4.82173 11.3322C4.85241 11.1781 4.92817 11.0365 5.03944 10.9254C5.15071 10.8143 5.2925 10.7386 5.44686 10.7079C5.60122 10.6772 5.76123 10.6929 5.90665 10.753C6.05207 10.8131 6.17638 10.9149 6.26384 11.0456C6.35131 11.1762 6.39801 11.3298 6.39804 11.4869C6.39784 11.6976 6.31396 11.8995 6.1648 12.0485C6.01564 12.1975 5.81339 12.2813 5.60241 12.2816ZM14.6829 7.4962L16.2732 4.74639C16.2949 4.70883 16.309 4.66736 16.3147 4.62435C16.3204 4.58134 16.3176 4.53763 16.3064 4.49571C16.2952 4.4538 16.2758 4.41451 16.2493 4.38007C16.2229 4.34564 16.1899 4.31674 16.1523 4.29502C16.1147 4.27331 16.0732 4.2592 16.0301 4.25352C15.987 4.24783 15.9432 4.25067 15.9012 4.26187C15.8592 4.27308 15.8199 4.29243 15.7854 4.31882C15.7509 4.34521 15.722 4.37813 15.7002 4.41569L14.0899 7.20023C12.8585 6.63913 11.4755 6.32669 9.99985 6.32669C8.52419 6.32669 7.14135 6.63958 5.90995 7.20023L4.29979 4.41569C4.27807 4.37812 4.24915 4.34519 4.21468 4.31877C4.18021 4.29236 4.14087 4.27299 4.0989 4.26175C4.05694 4.25052 4.01316 4.24765 3.97009 4.25331C3.92701 4.25897 3.88547 4.27304 3.84784 4.29472C3.8102 4.31641 3.77722 4.34528 3.75077 4.37969C3.72431 4.4141 3.7049 4.45338 3.69365 4.49528C3.6824 4.53718 3.67953 4.58088 3.68519 4.62389C3.69086 4.6669 3.70496 4.70837 3.72668 4.74594L5.31705 7.4962C2.5863 8.97904 0.718522 11.739 0.445312 14.9999H19.5547C19.2812 11.739 17.4135 8.97904 14.6829 7.4962Z",fill:e||"#626262"})})}function tu({size:t}){return c("svg",{width:t||20,height:t||20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8697 8.22896C14.0747 8.43399 14.0747 8.7664 13.8697 8.97143L9.99844 12.8427L6.12721 8.97143C5.92218 8.7664 5.92218 8.43399 6.12721 8.22896C6.33223 8.02394 6.66464 8.02394 6.86967 8.22896L9.99844 11.3577L13.1272 8.22896C13.3322 8.02394 13.6646 8.02394 13.8697 8.22896Z",fill:"#787878"})})}const ru=({size:t,color:e})=>c("svg",{width:t||20,height:t||20,viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("g",{clipPath:"url(#clip0_6789_106796)",children:c("path",{d:"M18.1829 14.9885C17.9034 15.6343 17.5725 16.2288 17.1892 16.7753C16.6667 17.5204 16.2389 18.0362 15.9092 18.3226C15.3981 18.7927 14.8505 19.0334 14.2641 19.0471C13.8432 19.0471 13.3355 18.9273 12.7445 18.6843C12.1517 18.4424 11.6068 18.3226 11.1086 18.3226C10.5861 18.3226 10.0257 18.4424 9.42633 18.6843C8.82603 18.9273 8.34243 19.054 7.97269 19.0665C7.41037 19.0905 6.84988 18.8429 6.29042 18.3226C5.93334 18.0111 5.48671 17.4771 4.95166 16.7206C4.37759 15.9127 3.90563 14.9759 3.53589 13.908C3.13991 12.7544 2.94141 11.6373 2.94141 10.5559C2.94141 9.31706 3.20904 8.24861 3.74512 7.35325C4.16643 6.63407 4.72692 6.06675 5.42841 5.65028C6.12991 5.23381 6.88787 5.02158 7.70414 5.008C8.15077 5.008 8.73647 5.14618 9.46432 5.41774C10.1901 5.69022 10.6561 5.82839 10.8605 5.82839C11.0132 5.82839 11.5309 5.66682 12.4086 5.34471C13.2385 5.046 13.939 4.92231 14.5128 4.97103C16.0678 5.09654 17.236 5.70961 18.0129 6.81412C16.6222 7.65688 15.9343 8.83726 15.948 10.3515C15.9605 11.531 16.3883 12.5125 17.2291 13.2918C17.6102 13.6535 18.0357 13.9331 18.5091 14.1316C18.4065 14.4294 18.2981 14.7147 18.1829 14.9885ZM14.6166 0.952815C14.6166 1.87728 14.279 2.74045 13.6059 3.53939C12.7936 4.48918 11.8111 5.03801 10.7457 4.9514C10.7321 4.8405 10.7242 4.72377 10.7242 4.60111C10.7242 3.71363 11.1105 2.76384 11.7965 1.98726C12.139 1.59407 12.5746 1.26713 13.1028 1.00633C13.6298 0.749416 14.1284 0.607338 14.5972 0.583008C14.6109 0.706594 14.6166 0.830189 14.6166 0.952803V0.952815Z",fill:e||"#626262"})}),c("defs",{children:c("clipPath",{id:"clip0_6789_106796",children:c("rect",{width:"19.4597",height:"19.458",fill:"white",transform:"translate(0.996094)"})})})]});function nu({size:t}){return c("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M20 12H6",stroke:"#8C8C8C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M13 19L6 12L13 5",stroke:"#8C8C8C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function iu({size:t}){return c("svg",{width:t||48,height:t||48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M8.25 37.5C7.69772 37.5 7.25 37.0523 7.25 36.5L7.25 13C7.25 12.4477 7.69771 12 8.25 12L40.75 12C41.3023 12 41.75 12.4477 41.75 13L41.75 36.5C41.75 37.0523 41.3023 37.5 40.75 37.5L8.25 37.5Z",stroke:"#0E1F97",strokeWidth:"3"}),c("path",{d:"M24.5 29.5C21.8766 29.5 19.75 27.3734 19.75 24.75C19.75 22.1266 21.8766 20 24.5 20C27.1234 20 29.25 22.1266 29.25 24.75C29.25 27.3734 27.1234 29.5 24.5 29.5Z",stroke:"#0E1F97",strokeWidth:"4"}),c("rect",{x:"6.5",y:"23.3999",width:"12",height:"2.4",fill:"#0E1F97"}),c("rect",{x:"29.9004",y:"23.3999",width:"12",height:"2.4",fill:"#0E1F97"})]})}function su({size:t,color:e}){return c("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M12 23C18.0746 23 23 18.0746 23 12C23 5.92545 18.0746 1 12 0.999999C5.92545 0.999999 1 5.92545 1 12C1 18.0746 5.92545 23 12 23ZM12 2.86607C17.0433 2.86607 21.1339 6.9567 21.1339 12C21.1339 17.0433 17.0433 21.1339 12 21.1339C6.9567 21.1339 2.86607 17.0433 2.86607 12C2.86607 6.9567 6.9567 2.86607 12 2.86607Z",fill:e||"#8C8C8C"}),c("path",{d:"M13 7C13 6.73478 12.8946 6.48043 12.7071 6.29289C12.5196 6.10536 12.2652 6 12 6C11.7348 6 11.4804 6.10536 11.2929 6.29289C11.1054 6.48043 11 6.73478 11 7C11 7.26522 11.1054 7.51957 11.2929 7.70711C11.4804 7.89464 11.7348 8 12 8C12.2652 8 12.5196 7.89464 12.7071 7.70711C12.8946 7.51957 13 7.26522 13 7Z",fill:e||"#8C8C8C"}),c("rect",{x:"13",y:"18",width:"2",height:"8",transform:"rotate(-180 13 18)",fill:"#8C8C8C"})]})}function ou({size:t}){return c("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("rect",{x:"12.5",y:"1.5",width:"10",height:"21",rx:"1.5",stroke:"#8C8C8C"}),c("path",{d:"M1 10.5C0.723858 10.5 0.5 10.7239 0.5 11C0.5 11.2761 0.723858 11.5 1 11.5V10.5ZM9.35355 11.3536C9.54882 11.1583 9.54882 10.8417 9.35355 10.6464L6.17157 7.46447C5.97631 7.2692 5.65973 7.2692 5.46447 7.46447C5.2692 7.65973 5.2692 7.97631 5.46447 8.17157L8.29289 11L5.46447 13.8284C5.2692 14.0237 5.2692 14.3403 5.46447 14.5355C5.65973 14.7308 5.97631 14.7308 6.17157 14.5355L9.35355 11.3536ZM1 11.5H9V10.5H1V11.5Z",fill:"#8C8C8C"}),c("path",{d:"M15 2H20C20 2.55228 19.5523 3 19 3H16C15.4477 3 15 2.55228 15 2Z",fill:"#8C8C8C"}),c("circle",{cx:"17.5",cy:"20",r:"1",fill:"#8C8C8C"})]})}function au({size:t}){return c("svg",{width:t||48,height:t||48,viewBox:"0 0 49 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("circle",{cx:"15.5004",cy:"10.8002",r:"3.6",stroke:"#0E1F97",strokeWidth:"3"}),c("circle",{cx:"35.2998",cy:"19.7998",r:"3",stroke:"#0E1F97",strokeWidth:"3"}),c("path",{d:"M28.0146 20.3999C29.2496 18.4972 30.705 17.9696 32.2994 18.2728M42.5841 20.3999C41.3491 18.4972 39.8938 17.9696 38.2994 18.2728",stroke:"#0E1F97",strokeWidth:"3"}),c("path",{d:"M12.5 41.7002V30.6002H9.5V19.2002H21.5V30.6002H18.5V41.7002",stroke:"#0E1F97",strokeWidth:"3"}),c("path",{d:"M32.2998 41.7001V37.2001H29.2998L33.4998 27.6001H37.0998L41.2998 37.2001H38.2998V41.7001",stroke:"#0E1F97",strokeWidth:"3"})]})}const ba=({size:t,color:e})=>c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,fill:e||"rgba(0,0,0,0.6)",children:c("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}),lu=({size:t,color:e})=>c("svg",{width:t?t*3:39,height:t||13,viewBox:"0 0 39 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M5.88952 5.98264C6.70681 5.48369 7.28459 4.49575 7.28459 3.40906C7.28459 1.34699 5.65607 0 3.60916 0C1.56225 0 0 1.34743 0 3.67543V5.42175H1.49815V3.675C1.49815 2.27819 2.44624 1.49642 3.61046 1.49642C4.77468 1.49642 5.60583 2.29465 5.60583 3.40906C5.60583 4.52347 4.70798 5.42132 3.54376 5.42132H1.49815V9.21326H2.995V6.75186H3.57711C5.04061 6.75186 6.00516 7.88272 6.03851 9.21326H7.60163C7.57391 7.89658 6.94373 6.56778 5.89082 5.98264",fill:e||"#8C8C8C"}),c("path",{d:"M37.5857 2.6262V3.57429C37.1863 2.97573 36.4877 2.57812 35.4902 2.57812C33.6608 2.57812 32.2969 4.04163 32.2969 5.92092C32.2969 7.78332 33.6608 9.26371 35.4902 9.26371C36.4379 9.26371 37.1201 8.88127 37.5857 8.29916V9.21391H38.9994V2.6262H37.5857ZM35.6566 7.83183C34.592 7.83183 33.8271 7.00025 33.8271 5.91919C33.8271 4.83813 34.592 4.00654 35.6566 4.00654C36.7212 4.00654 37.5025 4.83813 37.5025 5.91919C37.5025 7.00025 36.7229 7.83183 35.6566 7.83183Z",fill:e||"#8C8C8C"}),c("path",{d:"M27.5078 6.0384C27.5078 7.33559 26.8426 7.81808 25.9945 7.81808C25.1465 7.81808 24.4812 7.33559 24.4812 6.0384V2.62891H22.9844V5.9717C22.9844 8.16717 24.1152 9.26339 25.9945 9.26339C27.8738 9.26339 29.0047 8.16587 29.0047 5.9717V2.62891H27.5078V6.0384Z",fill:e||"#8C8C8C"}),c("path",{d:"M11.2922 2.57812C9.44578 2.57812 8.01562 4.09143 8.01562 5.93781C8.01562 7.78419 9.44491 9.26371 11.342 9.26371C12.4893 9.26371 13.3209 8.86481 14.003 8.14974L13.1879 7.18519C12.7388 7.58409 12.1735 7.86691 11.3753 7.86691C10.5771 7.86691 9.82865 7.46758 9.59693 6.60264H14.5184C14.578 6.34086 14.6059 6.07286 14.6016 5.80441C14.6016 3.94201 13.1381 2.57812 11.2922 2.57812ZM9.51248 5.42197C9.71214 4.55574 10.4437 3.97536 11.3749 3.97536C12.3061 3.97536 12.938 4.54058 13.1212 5.42197H9.51248Z",fill:e||"#8C8C8C"}),c("path",{d:"M31.4988 0.0664062H30.002V9.2134H31.4988V0.0664062Z",fill:e||"#8C8C8C"}),c("path",{d:"M20.572 3.57429C20.2394 3.00864 19.4745 2.57812 18.4766 2.57812C16.7302 2.57812 15.2832 4.04163 15.2832 5.92092C15.2832 7.78332 16.7302 9.21261 18.4766 9.21261C19.4247 9.21261 20.0232 8.92978 20.4888 8.34637V8.94537C20.4888 10.2426 19.5741 10.7082 18.6927 10.7082C17.8113 10.7082 17.1127 10.275 16.9797 9.32782H15.5162C15.5829 10.991 16.913 12.0565 18.6927 12.0565C20.4724 12.0565 21.9844 11.0421 21.9844 8.84662V2.6262H20.572V3.57429ZM18.6429 7.78202C17.5783 7.78202 16.8134 7.00025 16.8134 5.91962C16.8134 4.839 17.5783 4.00698 18.6429 4.00698C19.7075 4.00698 20.4888 4.83856 20.4888 5.91962C20.4888 7.00068 19.7071 7.78202 18.6429 7.78202Z",fill:e||"#8C8C8C"})]});function cu({size:t,color:e}){return c("svg",{width:t||86,height:t||86,viewBox:"0 0 86 86",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("ellipse",{cx:"43",cy:"43",rx:"40",ry:"40",transform:"rotate(90 43 43)",stroke:e||"#FCB937",strokeWidth:"3"}),c("path",{d:"M40.8789 48.5352L40.5859 25H44.9805L44.6875 48.5352H40.8789ZM42.7832 60.4736C42.002 60.4736 41.3428 60.2051 40.8057 59.668C40.2686 59.1309 40 58.4717 40 57.6904C40 56.8929 40.2686 56.2337 40.8057 55.7129C41.3428 55.1758 42.002 54.9072 42.7832 54.9072C43.5807 54.9072 44.2399 55.1758 44.7607 55.7129C45.2979 56.2337 45.5664 56.8929 45.5664 57.6904C45.5664 58.4717 45.2979 59.1309 44.7607 59.668C44.2399 60.2051 43.5807 60.4736 42.7832 60.4736Z",fill:e||"#FCB937"})]})}function uu(){return c("svg",{width:"113",height:"16",viewBox:"0 0 113 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M1.35197 12V3.27273H4.6247C5.29515 3.27273 5.85765 3.39773 6.3122 3.64773C6.76958 3.89773 7.11475 4.24148 7.34771 4.67898C7.5835 5.11364 7.7014 5.60795 7.7014 6.16193C7.7014 6.72159 7.5835 7.21875 7.34771 7.65341C7.11191 8.08807 6.7639 8.4304 6.30367 8.6804C5.84345 8.92756 5.27668 9.05114 4.60339 9.05114H2.43435V7.75142H4.39032C4.78237 7.75142 5.10339 7.68324 5.35339 7.54688C5.60339 7.41051 5.78805 7.22301 5.90737 6.98438C6.02953 6.74574 6.0906 6.47159 6.0906 6.16193C6.0906 5.85227 6.02953 5.57955 5.90737 5.34375C5.78805 5.10795 5.60197 4.92472 5.34913 4.79403C5.09913 4.66051 4.77668 4.59375 4.3818 4.59375H2.93293V12H1.35197ZM11.6478 12.1278C11.0086 12.1278 10.4546 11.9872 9.98587 11.706C9.51712 11.4247 9.15349 11.0312 8.89497 10.5256C8.63928 10.0199 8.51144 9.42898 8.51144 8.75284C8.51144 8.0767 8.63928 7.48437 8.89497 6.97585C9.15349 6.46733 9.51712 6.07244 9.98587 5.79119C10.4546 5.50994 11.0086 5.36932 11.6478 5.36932C12.287 5.36932 12.841 5.50994 13.3097 5.79119C13.7785 6.07244 14.1407 6.46733 14.3964 6.97585C14.6549 7.48437 14.7842 8.0767 14.7842 8.75284C14.7842 9.42898 14.6549 10.0199 14.3964 10.5256C14.1407 11.0312 13.7785 11.4247 13.3097 11.706C12.841 11.9872 12.287 12.1278 11.6478 12.1278ZM11.6563 10.892C12.0029 10.892 12.2927 10.7969 12.5256 10.6065C12.7586 10.4134 12.9319 10.1548 13.0455 9.83097C13.162 9.5071 13.2202 9.14631 13.2202 8.74858C13.2202 8.34801 13.162 7.9858 13.0455 7.66193C12.9319 7.33523 12.7586 7.07528 12.5256 6.8821C12.2927 6.68892 12.0029 6.59233 11.6563 6.59233C11.3012 6.59233 11.0058 6.68892 10.77 6.8821C10.537 7.07528 10.3623 7.33523 10.2458 7.66193C10.1322 7.9858 10.0754 8.34801 10.0754 8.74858C10.0754 9.14631 10.1322 9.5071 10.2458 9.83097C10.3623 10.1548 10.537 10.4134 10.77 10.6065C11.0058 10.7969 11.3012 10.892 11.6563 10.892ZM17.1368 12L15.2874 5.45455H16.8598L18.0104 10.0568H18.0701L19.2462 5.45455H20.8016L21.9777 10.0312H22.0417L23.1752 5.45455H24.7519L22.8982 12H21.2917L20.0644 7.5767H19.9749L18.7476 12H17.1368ZM28.4192 12.1278C27.7629 12.1278 27.1962 11.9915 26.7189 11.7188C26.2445 11.4432 25.8794 11.054 25.6237 10.5511C25.368 10.0455 25.2402 9.45028 25.2402 8.76562C25.2402 8.09233 25.368 7.50142 25.6237 6.9929C25.8822 6.48153 26.243 6.08381 26.7061 5.79972C27.1692 5.51278 27.7132 5.36932 28.3382 5.36932C28.7416 5.36932 29.1223 5.43466 29.4802 5.56534C29.841 5.69318 30.1592 5.89205 30.4348 6.16193C30.7132 6.43182 30.932 6.77557 31.091 7.19318C31.2501 7.60795 31.3297 8.10227 31.3297 8.67614V9.14915H25.9646V8.10938H29.851C29.8481 7.81392 29.7842 7.55114 29.6592 7.32102C29.5342 7.08807 29.3595 6.90483 29.1351 6.77131C28.9135 6.63778 28.655 6.57102 28.3595 6.57102C28.0442 6.57102 27.7672 6.64773 27.5285 6.80114C27.2899 6.9517 27.1038 7.15057 26.9703 7.39773C26.8396 7.64205 26.7729 7.91051 26.77 8.20312V9.1108C26.77 9.49148 26.8396 9.81818 26.9788 10.0909C27.118 10.3608 27.3126 10.5682 27.5626 10.7131C27.8126 10.8551 28.1052 10.9261 28.4405 10.9261C28.6649 10.9261 28.868 10.8949 29.0499 10.8324C29.2317 10.767 29.3893 10.6719 29.5229 10.5469C29.6564 10.4219 29.7572 10.267 29.8254 10.0824L31.2658 10.2443C31.1749 10.625 31.0016 10.9574 30.7459 11.2415C30.493 11.5227 30.1692 11.7415 29.7743 11.8977C29.3794 12.0511 28.9277 12.1278 28.4192 12.1278ZM32.5147 12V5.45455H34.0105V6.54545H34.0786C34.198 6.16761 34.4025 5.87642 34.6923 5.67188C34.9849 5.46449 35.3187 5.3608 35.6937 5.3608C35.7789 5.3608 35.8741 5.36506 35.9792 5.37358C36.0872 5.37926 36.1767 5.3892 36.2477 5.40341V6.82244C36.1823 6.79972 36.0786 6.77983 35.9366 6.76278C35.7974 6.7429 35.6625 6.73295 35.5318 6.73295C35.2505 6.73295 34.9977 6.79403 34.7732 6.91619C34.5517 7.03551 34.3769 7.2017 34.2491 7.41477C34.1213 7.62784 34.0573 7.87358 34.0573 8.15199V12H32.5147ZM39.7807 12.1278C39.1245 12.1278 38.5577 11.9915 38.0804 11.7188C37.606 11.4432 37.241 11.054 36.9853 10.5511C36.7296 10.0455 36.6018 9.45028 36.6018 8.76562C36.6018 8.09233 36.7296 7.50142 36.9853 6.9929C37.2438 6.48153 37.6046 6.08381 38.0677 5.79972C38.5307 5.51278 39.0748 5.36932 39.6998 5.36932C40.1032 5.36932 40.4839 5.43466 40.8418 5.56534C41.2026 5.69318 41.5208 5.89205 41.7964 6.16193C42.0748 6.43182 42.2935 6.77557 42.4526 7.19318C42.6117 7.60795 42.6912 8.10227 42.6912 8.67614V9.14915H37.3262V8.10938H41.2126C41.2097 7.81392 41.1458 7.55114 41.0208 7.32102C40.8958 7.08807 40.7211 6.90483 40.4966 6.77131C40.2751 6.63778 40.0165 6.57102 39.7211 6.57102C39.4057 6.57102 39.1287 6.64773 38.8901 6.80114C38.6515 6.9517 38.4654 7.15057 38.3319 7.39773C38.2012 7.64205 38.1344 7.91051 38.1316 8.20312V9.1108C38.1316 9.49148 38.2012 9.81818 38.3404 10.0909C38.4796 10.3608 38.6742 10.5682 38.9242 10.7131C39.1742 10.8551 39.4668 10.9261 39.802 10.9261C40.0265 10.9261 40.2296 10.8949 40.4114 10.8324C40.5932 10.767 40.7509 10.6719 40.8844 10.5469C41.0179 10.4219 41.1188 10.267 41.187 10.0824L42.6273 10.2443C42.5364 10.625 42.3631 10.9574 42.1074 11.2415C41.8546 11.5227 41.5307 11.7415 41.1358 11.8977C40.741 12.0511 40.2893 12.1278 39.7807 12.1278ZM46.3053 12.1151C45.7911 12.1151 45.3308 11.983 44.9246 11.7188C44.5183 11.4545 44.1973 11.071 43.9615 10.5682C43.7257 10.0653 43.6078 9.45455 43.6078 8.7358C43.6078 8.00852 43.7271 7.39489 43.9658 6.89489C44.2073 6.39205 44.5325 6.01278 44.9416 5.7571C45.3507 5.49858 45.8067 5.36932 46.3095 5.36932C46.693 5.36932 47.0084 5.43466 47.2555 5.56534C47.5027 5.69318 47.6987 5.84801 47.8436 6.02983C47.9885 6.20881 48.1007 6.37784 48.1803 6.53693H48.2442V3.27273H49.7911V12H48.274V10.9688H48.1803C48.1007 11.1278 47.9857 11.2969 47.8351 11.4759C47.6845 11.652 47.4857 11.8026 47.2385 11.9276C46.9913 12.0526 46.6803 12.1151 46.3053 12.1151ZM46.7357 10.8494C47.0624 10.8494 47.3408 10.7614 47.5709 10.5852C47.801 10.4062 47.9757 10.1577 48.095 9.83949C48.2144 9.52131 48.274 9.15057 48.274 8.72727C48.274 8.30398 48.2144 7.93608 48.095 7.62358C47.9786 7.31108 47.8053 7.06818 47.5751 6.89489C47.3479 6.72159 47.068 6.63494 46.7357 6.63494C46.3919 6.63494 46.105 6.72443 45.8749 6.90341C45.6448 7.08239 45.4715 7.32955 45.355 7.64489C45.2385 7.96023 45.1803 8.32102 45.1803 8.72727C45.1803 9.13636 45.2385 9.50142 45.355 9.82244C45.4743 10.1406 45.649 10.392 45.8791 10.5767C46.1121 10.7585 46.3976 10.8494 46.7357 10.8494ZM54.2396 12V3.27273H55.7822V6.53693H55.8462C55.9257 6.37784 56.0379 6.20881 56.1828 6.02983C56.3277 5.84801 56.5237 5.69318 56.7709 5.56534C57.018 5.43466 57.3334 5.36932 57.7169 5.36932C58.2226 5.36932 58.6785 5.49858 59.0848 5.7571C59.4939 6.01278 59.8178 6.39205 60.0564 6.89489C60.2979 7.39489 60.4186 8.00852 60.4186 8.7358C60.4186 9.45455 60.3007 10.0653 60.0649 10.5682C59.8291 11.071 59.5081 11.4545 59.1018 11.7188C58.6956 11.983 58.2354 12.1151 57.7212 12.1151C57.3462 12.1151 57.0351 12.0526 56.7879 11.9276C56.5408 11.8026 56.3419 11.652 56.1913 11.4759C56.0436 11.2969 55.9285 11.1278 55.8462 10.9688H55.7567V12H54.2396ZM55.7524 8.72727C55.7524 9.15057 55.8121 9.52131 55.9314 9.83949C56.0535 10.1577 56.2283 10.4062 56.4555 10.5852C56.6856 10.7614 56.9641 10.8494 57.2908 10.8494C57.6317 10.8494 57.9172 10.7585 58.1473 10.5767C58.3774 10.392 58.5507 10.1406 58.6672 9.82244C58.7865 9.50142 58.8462 9.13636 58.8462 8.72727C58.8462 8.32102 58.7879 7.96023 58.6714 7.64489C58.555 7.32955 58.3817 7.08239 58.1516 6.90341C57.9214 6.72443 57.6345 6.63494 57.2908 6.63494C56.9612 6.63494 56.6814 6.72159 56.4513 6.89489C56.2212 7.06818 56.0464 7.31108 55.9271 7.62358C55.8106 7.93608 55.7524 8.30398 55.7524 8.72727ZM62.3462 14.4545C62.136 14.4545 61.9414 14.4375 61.7624 14.4034C61.5862 14.3722 61.4456 14.3352 61.3405 14.2926L61.6985 13.0909C61.9229 13.1563 62.1232 13.1875 62.2993 13.1847C62.4754 13.1818 62.6303 13.1264 62.7638 13.0185C62.9002 12.9134 63.0152 12.7372 63.109 12.4901L63.2411 12.1364L60.8675 5.45455H62.5039L64.0124 10.3977H64.0806L65.5933 5.45455H67.234L64.6132 12.7926C64.4911 13.1392 64.3291 13.4361 64.1274 13.6832C63.9257 13.9332 63.6786 14.1236 63.386 14.2543C63.0962 14.3878 62.7496 14.4545 62.3462 14.4545Z",fill:"#8C8C8C"}),c("path",{d:"M77.3427 8.45085C78.2228 7.91285 78.8451 6.84759 78.8451 5.67586C78.8451 3.45241 77.0913 2 74.8869 2C72.6825 2 71 3.45288 71 5.96307V7.84606H72.6134V5.9626C72.6134 4.45649 73.6345 3.61353 74.8883 3.61353C76.142 3.61353 77.0371 4.47423 77.0371 5.67586C77.0371 6.87748 76.0702 7.8456 74.8164 7.8456H72.6134V11.9343H74.2254V9.28026H74.8523C76.4284 9.28026 77.4672 10.4996 77.5031 11.9343H79.1865C79.1567 10.5146 78.478 9.08178 77.3441 8.45085",fill:"#BD7DFF"}),c("path",{d:"M111.477 4.83175V5.85404C111.047 5.20862 110.295 4.77991 109.221 4.77991C107.251 4.77991 105.782 6.35794 105.782 8.38431C105.782 10.3925 107.251 11.9887 109.221 11.9887C110.241 11.9887 110.976 11.5763 111.477 10.9487V11.935H113V4.83175H111.477ZM109.4 10.4448C108.253 10.4448 107.43 9.54811 107.43 8.38244C107.43 7.21678 108.253 6.32012 109.4 6.32012C110.546 6.32012 111.388 7.21678 111.388 8.38244C111.388 9.54811 110.548 10.4448 109.4 10.4448Z",fill:"#BD7DFF"}),c("path",{d:"M100.624 8.51104C100.624 9.90974 99.908 10.43 98.9947 10.43C98.0814 10.43 97.3649 9.90974 97.3649 8.51104V4.83472H95.7529V8.43912C95.7529 10.8064 96.9708 11.9884 98.9947 11.9884C101.019 11.9884 102.236 10.805 102.236 8.43912V4.83472H100.624V8.51104Z",fill:"#BD7DFF"}),c("path",{d:"M83.161 4.77991C81.1725 4.77991 79.6323 6.41165 79.6323 8.40252C79.6323 10.3934 81.1716 11.9887 83.2146 11.9887C84.4502 11.9887 85.3458 11.5586 86.0804 10.7876L85.2026 9.74752C84.7189 10.1776 84.1102 10.4826 83.2505 10.4826C82.3909 10.4826 81.5848 10.052 81.3353 9.11939H86.6355C86.6996 8.83711 86.7297 8.54814 86.725 8.25869C86.725 6.25053 85.1489 4.77991 83.161 4.77991ZM81.2443 7.84631C81.4594 6.91229 82.2472 6.28649 83.25 6.28649C84.2529 6.28649 84.9334 6.89594 85.1307 7.84631H81.2443Z",fill:"#BD7DFF"}),c("path",{d:"M104.923 2.07153H103.311V11.9344H104.923V2.07153Z",fill:"#BD7DFF"}),c("path",{d:"M93.1547 5.85404C92.7965 5.24412 91.9727 4.77991 90.8981 4.77991C89.0174 4.77991 87.459 6.35794 87.459 8.38431C87.459 10.3925 89.0174 11.9336 90.8981 11.9336C91.9191 11.9336 92.5637 11.6287 93.0651 10.9996V11.6455C93.0651 13.0442 92.08 13.5462 91.1308 13.5462C90.1816 13.5462 89.4292 13.0792 89.286 12.0578H87.7099C87.7818 13.8512 89.2142 15 91.1308 15C93.0474 15 94.6758 13.9063 94.6758 11.539V4.83175H93.1547V5.85404ZM91.0772 10.3911C89.9307 10.3911 89.1069 9.54811 89.1069 8.38291C89.1069 7.21772 89.9307 6.32058 91.0772 6.32058C92.2237 6.32058 93.0651 7.21725 93.0651 8.38291C93.0651 9.54858 92.2232 10.3911 91.0772 10.3911Z",fill:"#BD7DFF"})]})}const du=({size:t=100,color:e="#5DA600"})=>c("svg",{width:t,height:t,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("ellipse",{cx:"50.0001",cy:"49.9999",rx:"46.5116",ry:"46.5116",transform:"rotate(90 50.0001 49.9999)",stroke:e,strokeWidth:"3.48837"}),c("path",{d:"M74.4185 36.0469L44.7753 63.9539L30.2325 50.2627",stroke:e,strokeWidth:"3.48837",strokeLinecap:"round",strokeLinejoin:"round"})]}),fu=()=>c("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"9.5",stroke:"#7E57C5"}),c("rect",{x:"3",y:"3.5",width:"14",height:"14",rx:"7",fill:"#7E57C5"})]}),hu=()=>c("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"9.5",stroke:"#8C8C8C"})}),pu=()=>c("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"3.5",fill:"#7E57C5",stroke:"#7E57C5"}),c("path",{d:"M16.6335 6.71849C16.243 6.32797 15.6098 6.32797 15.2193 6.71849L9.09149 12.8463L5.12147 8.8763C4.73095 8.48577 4.09778 8.48577 3.70726 8.8763C3.31674 9.26682 3.31674 9.89999 3.70726 10.2905L9.09541 15.6787L16.6335 8.1327C17.0241 7.74218 17.0241 7.10902 16.6335 6.71849Z",fill:"white"})]}),mu=()=>c("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"3.5",stroke:"#8C8C8C"})}),_u=({color:t="#237804"})=>c("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.15385 2.15377C7.35887 2.35879 7.35887 2.69121 7.15385 2.89623L2.67894 7.3712L0.153877 4.84616C-0.0511485 4.64114 -0.0511485 4.30872 0.153877 4.1037C0.358901 3.89867 0.691313 3.89867 0.896338 4.1037L2.67894 5.88628L6.41139 2.15377C6.61641 1.94874 6.94882 1.94874 7.15385 2.15377Z",fill:t})}),gu=({color:t="#262626"})=>c("svg",{width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.86967 0.228964C9.07469 0.433989 9.07469 0.766401 8.86967 0.971426L4.99844 4.84266L1.12721 0.971426C0.922181 0.766401 0.922181 0.433989 1.12721 0.228964C1.33223 0.023939 1.66464 0.023939 1.86967 0.228964L4.99844 3.35773L8.12721 0.228964C8.33223 0.023939 8.66464 0.023939 8.86967 0.228964Z",fill:t})}),vu=({size:t,color:e="#ffffff"})=>c("svg",{width:t||40,height:t||40,viewBox:"0 0 23 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("g",{clipPath:"url(#clip0_2629_17763)",children:[c("path",{d:"M3.99993 17C3.53533 17 3.30303 17 3.10985 16.9616C2.31642 16.8038 1.69618 16.1835 1.5384 15.3901C1.49998 15.1969 1.49999 14.9646 1.5 14.5L1.50019 7.19993C1.50022 6.07985 1.50024 5.51981 1.71823 5.092C1.90998 4.71568 2.21594 4.40973 2.59226 4.21799C3.02008 4.00001 3.58012 4.00001 4.7002 4.00002L17 4.00004C17.4646 4.00004 17.6969 4.00005 17.8901 4.03847C18.6835 4.19628 19.3037 4.81649 19.4615 5.60989C19.4999 5.80308 19.4999 6.03539 19.4999 6.50001",stroke:e}),c("path",{d:"M6.7002 6.50002L18.2998 6.50002C18.8681 6.50002 19.2648 6.50021 19.5732 6.52541C19.8753 6.55011 20.0491 6.59615 20.1807 6.6631C20.4629 6.80691 20.6931 7.03711 20.8369 7.31935C20.9039 7.45093 20.9499 7.62472 20.9746 7.92677C20.9998 8.23519 21 8.63191 21 9.20021V15.7998C21 16.3681 20.9998 16.7648 20.9746 17.0733C20.9499 17.3753 20.9039 17.5491 20.8369 17.6807C20.6931 17.9629 20.4629 18.1931 20.1807 18.3369C20.0491 18.4039 19.8753 18.4499 19.5732 18.4746C19.2648 18.4998 18.8681 18.5 18.2998 18.5H6.7002C6.13188 18.5 5.73519 18.4998 5.42676 18.4746C5.12471 18.4499 4.95091 18.4039 4.81934 18.3369C4.53709 18.1931 4.30689 17.9629 4.16309 17.6807C4.09614 17.5491 4.05009 17.3753 4.02539 17.0733C4.0002 16.7648 3.99999 16.3681 4 15.7998L4 9.20021C4.00001 8.63192 4.00018 8.23519 4.02539 7.92677C4.05012 7.6245 4.09703 7.45096 4.16406 7.31935C4.30788 7.03712 4.5371 6.80691 4.81934 6.6631C4.95099 6.59606 5.12529 6.55012 5.42773 6.52541C5.73609 6.50024 6.13215 6.50001 6.7002 6.50002Z",stroke:e}),c("path",{d:"M4 16L7.66852 12.7391C8.11271 12.3443 8.80118 12.4217 9.14662 12.9053L11 15.5L14.6647 10.6138C15.075 10.0666 15.9013 10.0837 16.2887 10.6472L21 17.5",stroke:e}),c("path",{d:"M9 18.5L11 15.5L14.6647 10.6138C15.075 10.0666 15.9013 10.0837 16.2887 10.6472L21 17.5",stroke:e}),c("circle",{cx:"7.5",cy:"10",r:"1",fill:e})]}),c("defs",{children:c("clipPath",{id:"clip0_2629_17763",children:c("rect",{width:"22",height:"22",fill:"white",transform:"translate(0.5 1.90735e-05)"})})})]}),wu=({size:t=40,color:e="#ffffff"})=>c("svg",{width:t,height:t,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("g",{clipPath:"url(#clip0_2629_17707)",children:[c("path",{d:"M8.7041 3.67972H15.2959C15.3348 3.67968 15.3734 3.69153 15.4053 3.7139C15.4211 3.72502 15.4347 3.73877 15.4463 3.75394L15.4746 3.80472L16.1699 5.75394L16.2881 6.08597H19.5625C20.236 6.08597 20.7812 6.63125 20.7812 7.30472V17.1016C20.7812 17.7751 20.236 18.3203 19.5625 18.3203H4.4375C3.76403 18.3203 3.21875 17.7751 3.21875 17.1016V7.30472C3.21875 6.63125 3.76403 6.08597 4.4375 6.08597H7.71191L7.83008 5.75491L8.52832 3.80374L8.5293 3.80179C8.55486 3.73029 8.62456 3.6798 8.7041 3.67972ZM12 8.00784C9.82464 8.00784 8.0625 9.76998 8.0625 11.9453C8.0625 14.1207 9.82464 15.8828 12 15.8828C14.1754 15.8828 15.9375 14.1207 15.9375 11.9453C15.9375 9.76998 14.1754 8.00784 12 8.00784Z",stroke:e}),c("circle",{cx:"18",cy:"9.00003",r:"1",fill:e})]}),c("defs",{children:c("clipPath",{id:"clip0_2629_17707",children:c("rect",{width:"22",height:"22",fill:e})})})]}),yu=()=>c("div",{}),Se={WARNING:"warning_icon",SPINNER:"spinner",ERROR:"failure",AGE:"age",ANDROID:"android",ARROW:"arrow",APPLE:"apple",BACK:"back",BIOMETRIC:"biometricIcon",INFO:"info",TO_MOBILE:"toMobile",UNDERAGE:"underage",CROSS:"cross",REGULA_LOGO:"regulaLogo",POWERED_BY:"signature",SUCCESS:"success",DEFAULT:"empty",CIRCLE_SELECTED:"radio_selected",CIRCLE_NORMAL:"radio_normal",SQUARE_SELECTED:"square_selected",SQUARE_NORMAL:"square_normal",SELECTED:"selected",CHEVRON_DOWN:"chevronDown",CLOSE_ICON:"close_icon",GALLERY_ICON:"gallery",CAMERA_ICON:"camera"},ss={[Se.WARNING]:cu,[Se.SPINNER]:ya,[Se.ERROR]:Jc,[Se.AGE]:Qc,[Se.ANDROID]:eu,[Se.ARROW]:tu,[Se.APPLE]:ru,[Se.BACK]:nu,[Se.BIOMETRIC]:iu,[Se.INFO]:su,[Se.TO_MOBILE]:ou,[Se.UNDERAGE]:au,[Se.CROSS]:ba,[Se.REGULA_LOGO]:lu,[Se.DEFAULT]:yu,[Se.POWERED_BY]:uu,[Se.SUCCESS]:du,[Se.CIRCLE_SELECTED]:fu,[Se.CIRCLE_NORMAL]:hu,[Se.SQUARE_SELECTED]:pu,[Se.SQUARE_NORMAL]:mu,[Se.SELECTED]:_u,[Se.CHEVRON_DOWN]:gu,[Se.CLOSE_ICON]:ba,[Se.GALLERY_ICON]:vu,[Se.CAMERA_ICON]:wu},bu=({type:t,size:e,color:r})=>{const n=ss[t]||ss[Se.DEFAULT];return c(n,{size:e,color:r})},Fe=({imageId:t,imageURL:e,base64:r,contentMode:n=Rn.ASPECT_FILL,cornerRadius:i,backgroundColor:s})=>{const o=f=>{if(f===Rn.ASPECT_FILL)return"cover";if(f===Rn.ASPECT_FIT)return"contain";if(f===Rn.FILL)return"fill"},[a,u]=Le(!0),h=a&&e,_=()=>{u(!1)};if(r)return c("img",{style:{width:"100%",height:"100%",objectFit:o(n),borderRadius:i,backgroundColor:le(s)||"transparent",display:h?"none":"block"},src:r});if(t){const f=t in ss?t:"default";return c(bu,{type:f})}if(e)return c(je,{children:[h&&c("div",{style:{width:"100%",height:"100%",backgroundColor:"#e0e0e0",borderRadius:i}}),c("img",{style:{width:"100%",height:"100%",objectFit:o(n),borderRadius:i,backgroundColor:s,display:h?"none":"block"},src:e,onLoad:_})]})},Cu=({signature:t})=>c("footer",{"data-ui":"gui-footer",part:"gui-footer",style:{display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",height:"100%",width:"100%"},children:c("a",{href:"",children:c(Fe,{imageId:t==null?void 0:t.imageId})})}),Su={display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"18px",height:"36px",minWidth:"36px",border:"none",cursor:"pointer"},Eu=({dataTestId:t,responseBody:e,image:r,title:n,backgroundColor:i="transparent",cornerRadius:s,highlightColor:o})=>{var l;const[a,u]=Le(!1),h=a&&o?o:i,{perform:_}=dr();return c("button",{"data-ui":"gui-close-button",part:"gui-close-button","data-test":t,onClick:()=>{const y=JSON.parse(JSON.stringify(e));is(y),_(y)},className:"hover-button",style:G(O(O({},Su),s&&{borderRadius:s}),{backgroundColor:(l=le(h))!=null?l:"transparent"}),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[r&&c("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"24px",height:"24px"},children:c(Fe,O({},r))}),n&&c("div",{style:{padding:"0 5px"},children:c(xe,O({},n))})]})},Iu=({closeButton:t})=>c("header",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"center",paddingRight:"16px"},"data-ui":"gui-header",part:"gui-header",children:c("div",{children:t&&c(Eu,O({dataTestId:"close-btn"},t))})});function Ou(t){var i;const e=/\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g,r=[];let n=0;for(const s of t.matchAll(e)){const[o,a,u]=s,h=(i=s.index)!=null?i:0;h>n&&r.push(t.slice(n,h));const _=u.startsWith("http")?u:`https://${u}`;r.push(c("a",{href:_,target:"_blank",rel:"noopener noreferrer",children:a},h)),n=h+o.length}return n<t.length&&r.push(t.slice(n)),r}function Ca(t){const e=t.split(`
91
+ `);return e.flatMap((r,n)=>{const i=Ou(r);return n===e.length-1?i:[...i,c("br",{},"br-"+n)]})}const xe=({text:t,fontName:e="",fontSize:r="17px",fontColor:n,alignment:i=Tn.LEFT,backgroundColor:s,cornerRadius:o=0,htmlFor:a})=>{const u={fontFamily:[e,"-apple-system","BlinkMacSystemFont","sans-serif"].filter(Boolean).join(", "),fontSize:r,color:le(n)||"#000000",textAlign:va(i),backgroundColor:le(s)||"transparent",borderRadius:o},h=typeof t=="string"&&t.trim()&&Ca(t);return a?c("label",{"data-ui":"gui-label",part:"gui-label",style:u,htmlFor:a,children:h}):c("div",{"data-ui":"gui-label",part:"gui-label",style:u,children:h})},os=({title:t,image:e,responseBody:r,backgroundColor:n="transparent",cornerRadius:i,highlightColor:s,dataTestId:o,borderColor:a,borderWidth:u,type:h="RESPONSE_BODY",onClick:_})=>{var S,b;const[f,l]=Le(!1),y=f&&le(s)?s:n,{perform:v}=dr(),d=C=>{if(_&&_(C),h!=="RESPONSE_BODY")return;const T=JSON.parse(JSON.stringify(r));is(T),v(T)},m={height:"50px",width:"100%",padding:"10px 16px",textAlign:"center",fontSize:"16px",fontWeight:"400",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:5,borderRadius:i||0,borderStyle:a&&u?"solid":void 0,backgroundColor:(S=le(y))!=null?S:"transparent",borderColor:(b=le(a))!=null?b:"none",borderWidth:u!=null?u:0,overflow:"hidden",transition:".3s",outlineColor:on};return c("button",{"data-ui":"gui-button",part:"gui-button",type:h==="FORM"?"submit":"button","data-test":o,onClick:d,style:m,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e&&c(Fe,O({},e)),t&&c("div",{style:{flexGrow:e?0:1},children:c(xe,O({},t))})]})},Tu=r=>{var n=r,{items:t}=n,e=pr(n,["items"]);return c("div",{part:"gui-buttons","data-ui":"gui-buttons",style:O(O({},{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",alignSelf:"flex-end",justifyContent:"center",gap:"8px",width:"100%",height:"auto",alignContent:"flex-end",paddingTop:"20px"}),e),children:t.map(s=>{var o;return c(os,O({dataTestId:"button-"+((o=s.title)==null?void 0:o.text)},s),Xc())})})},Xt=({children:t,header:e,footer:r,backgroundColor:n="white",buttons:i})=>{const s=e?60:10,o=r?30:10,a={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",justifyContent:"center",margin:"0 auto",paddingTop:e?s+10+"px":"10px",paddingBottom:r?o+10+"px":"10px",paddingLeft:"20px",paddingRight:"20px",height:"100%",width:"100%",backgroundColor:le(n)};return c("div",{part:"gui-base-container","data-ui":"gui-base-container",id:"base-container",style:O({},a),children:[e&&c("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:s},children:c(Iu,{closeButton:e.closeButton})}),c("div",{style:{height:"100%",width:"100%",flex:"1 1 100%",overflow:"hidden"},children:t}),(i==null?void 0:i.length)&&c(Tu,{items:i}),r&&c("div",{style:{position:"absolute",bottom:"0",left:"0",width:"100%",height:o},children:c(Cu,O({},r))})]})},kn=({text:t,fontName:e="",fontColor:r,alignment:n=Tn.LEFT,fontSize:i=17,backgroundColor:s,cornerRadius:o=0})=>c("div",{"data-ui":"gui-description",part:"gui-description",style:{fontFamily:[e,"-apple-system","BlinkMacSystemFont","sans-serif"].filter(Boolean).join(", "),fontSize:i,textAlign:va(n),color:le(r)||"#000000",borderRadius:o,backgroundColor:le(s)||"transparent",whiteSpace:"pre-line"},children:t&&Ca(t)}),Ru=({header:t,footer:e,image:r,title:n,description:i,buttons:s,backgroundColor:o})=>{const a=ot(null),[u,h]=Le(!1);return st(()=>{a.current&&h(a.current.scrollHeight>a.current.clientHeight+2)},[]),c(Xt,{header:t,buttons:s,footer:e,backgroundColor:o,children:c("div",{part:"gui-status-screen",style:{display:"flex",justifyContent:u?"flex-start":"center",alignItems:"center",alignContent:"center",flex:1,height:"100%",flexDirection:"column"},children:[r&&c("div",{style:Gc,children:c(Fe,O({},r))}),(n==null?void 0:n.text)&&c("div",{ref:a,style:{width:"100%",overflow:u?"auto":"hidden"},children:c("div",{style:{margin:"0 auto",fontSize:"20px",fontWeight:700,maxWidth:"345px",textAlign:"center",lineHeight:"1.2",display:"flex",flexDirection:"column",justifyContent:u?"flex-start":"center",alignItems:"center",alignContent:"center"},children:n&&c(xe,O({},n))})}),i&&c("div",{style:{lineHeight:"28px",fontWeight:"400",marginTop:"16px"},children:c(kn,O({},i))})]})})},Au={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:"1.68"},xu={position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Nu=({title:t,header:e,footer:r,image:n,description:i,buttons:s,backgroundColor:o})=>c(Xt,{header:e,footer:r,buttons:s,backgroundColor:o,children:c(je,{children:c("div",{part:"gui-info-screen-container","data-ui":"gui-info-screen-container",id:"info-screen-container",style:G(O({},xu),{justifyContent:n?"flex-start":"center"}),children:[n&&c("div",{style:Au,children:c(Fe,O({},n))}),t&&c("div",{style:{marginBottom:20,lineHeight:"39.2px"},children:c(xe,O({},t))}),i&&c("div",{style:{lineHeight:"28px",fontWeight:"400"},children:c(kn,O({},i))})]})})}),ku=({indicatorColor:t="black"})=>c(je,{children:c(ya,{indicatorColor:t})}),Sa=({progressView:t,footer:e,backgroundColor:r})=>c(Xt,{footer:e,backgroundColor:r,children:c("div",{style:{flex:"1 1 100%",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",flexDirection:"column",gap:"20px",height:"100%",width:"100%"},children:c(ku,{indicatorColor:le(t==null?void 0:t.indicatorColor)||"#000000"})})}),Du=({title:t,description:e,image:r,backgroundColor:n,cornerRadius:i=0,isLastChild:s})=>c("div",{className:"details-item",style:G(O({},{display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderBottom:s?"none":"1px solid #E0E0E0",padding:"16px 0",gap:16}),{backgroundColor:le(n)||"transparent",borderRadius:i}),children:[c("div",{style:{flex:"0 1 auto"},children:[c("div",{style:{marginBottom:5,fontWeight:"bold",lineHeight:"21px"},children:c(xe,O({},t))}),c("div",{style:{lineHeight:"21px",fontWeight:"400"},children:c(kn,O({},e))})]}),c("div",{style:{aspectRatio:"1 / 1",width:120,height:120,flex:"0 0 120px"},children:c(Fe,O({},r))})]}),Mu={display:"flex",flexDirection:"column",padding:"0 16px"},Pu=({items:t,backgroundColor:e,cornerRadius:r=16})=>c("div",{className:"details",style:G(O({},Mu),{backgroundColor:le(e)||"white",borderRadius:r}),children:t.map((n,i)=>c(Du,O({isLastChild:i===t.length-1},n),i))}),Uu=({title:t,header:e,footer:r,details:n,buttons:i,backgroundColor:s})=>{const o=ot(null),[a,u]=Le(!1);return st(()=>{o.current&&u(o.current.scrollHeight>o.current.clientHeight)},[]),c(Xt,{header:e,buttons:i,footer:r,backgroundColor:s,children:c("div",{style:{display:"flex",flexDirection:"column",justifyContent:a?"flex-start":"center",height:"100%",minHeight:"100%",overflow:"auto"},ref:o,children:[c("div",{style:{marginBottom:t?"16px":"0",fontWeight:400,fontSize:"28px"},children:t&&c(xe,O({},t))}),n&&c(Pu,O({},n))]})})};var an=t=>t.type==="checkbox",fr=t=>t instanceof Date,Ye=t=>t==null;const Ea=t=>typeof t=="object";var Ne=t=>!Ye(t)&&!Array.isArray(t)&&Ea(t)&&!fr(t),Ia=t=>Ne(t)&&t.target?an(t.target)?t.target.checked:t.target.value:t,Lu=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,Oa=(t,e)=>t.has(Lu(e)),Fu=t=>{const e=t.constructor&&t.constructor.prototype;return Ne(e)&&e.hasOwnProperty("isPrototypeOf")},as=typeof window!="undefined"&&typeof window.HTMLElement!="undefined"&&typeof document!="undefined";function Pe(t){let e;const r=Array.isArray(t),n=typeof FileList!="undefined"?t instanceof FileList:!1;if(t instanceof Date)e=new Date(t);else if(!(as&&(t instanceof Blob||n))&&(r||Ne(t)))if(e=r?[]:Object.create(Object.getPrototypeOf(t)),!r&&!Fu(t))e=t;else for(const i in t)t.hasOwnProperty(i)&&(e[i]=Pe(t[i]));else return t;return e}var Dn=t=>/^\w*$/.test(t),Ae=t=>t===void 0,ls=t=>Array.isArray(t)?t.filter(Boolean):[],cs=t=>ls(t.replace(/["|']|\]/g,"").split(/\.|\[/)),F=(t,e,r)=>{if(!e||!Ne(t))return r;const n=(Dn(e)?[e]:cs(e)).reduce((i,s)=>Ye(i)?i:i[s],t);return Ae(n)||n===t?Ae(t[e])?r:t[e]:n},tt=t=>typeof t=="boolean",Ee=(t,e,r)=>{let n=-1;const i=Dn(e)?[e]:cs(e),s=i.length,o=s-1;for(;++n<s;){const a=i[n];let u=r;if(n!==o){const h=t[a];u=Ne(h)||Array.isArray(h)?h:isNaN(+i[n+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;t[a]=u,t=t[a]}};const Mn={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ft={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},xt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ta=ce.createContext(null);Ta.displayName="HookFormContext";const us=()=>ce.useContext(Ta);var Ra=(t,e,r,n=!0)=>{const i={defaultValues:e._defaultValues};for(const s in t)Object.defineProperty(i,s,{get:()=>{const o=s;return e._proxyFormState[o]!==ft.all&&(e._proxyFormState[o]=!n||ft.all),r&&(r[o]=!0),t[o]}});return i};const ds=typeof window!="undefined"?ce.useLayoutEffect:ce.useEffect;function Vu(t){const e=us(),{control:r=e.control,disabled:n,name:i,exact:s}=t||{},[o,a]=ce.useState(r._formState),u=ce.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ds(()=>r._subscribe({name:i,formState:u.current,exact:s,callback:h=>{!n&&a(O(O({},r._formState),h))}}),[i,n,s]),ce.useEffect(()=>{u.current.isValid&&r._setValid(!0)},[r]),ce.useMemo(()=>Ra(o,r,u.current,!1),[o,r])}var rt=t=>typeof t=="string",Aa=(t,e,r,n,i)=>rt(t)?(n&&e.watch.add(t),F(r,t,i)):Array.isArray(t)?t.map(s=>(n&&e.watch.add(s),F(r,s))):(n&&(e.watchAll=!0),r),fs=t=>Ye(t)||!Ea(t);function Nt(t,e,r=new WeakSet){if(fs(t)||fs(e))return t===e;if(fr(t)&&fr(e))return t.getTime()===e.getTime();const n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);for(const s of n){const o=t[s];if(!i.includes(s))return!1;if(s!=="ref"){const a=e[s];if(fr(o)&&fr(a)||Ne(o)&&Ne(a)||Array.isArray(o)&&Array.isArray(a)?!Nt(o,a,r):o!==a)return!1}}return!0}function $u(t){const e=us(),{control:r=e.control,name:n,defaultValue:i,disabled:s,exact:o,compute:a}=t||{},u=ce.useRef(i),h=ce.useRef(a),_=ce.useRef(void 0);h.current=a;const f=ce.useMemo(()=>r._getWatch(n,u.current),[r,n]),[l,y]=ce.useState(h.current?h.current(f):f);return ds(()=>r._subscribe({name:n,formState:{values:!0},exact:o,callback:v=>{if(!s){const d=Aa(n,r._names,v.values||r._formValues,!1,u.current);if(h.current){const m=h.current(d);Nt(m,_.current)||(y(m),_.current=m)}else y(d)}}}),[r,s,n,o]),ce.useEffect(()=>r._removeUnmounted()),l}function Bu(t){const e=us(),{name:r,disabled:n,control:i=e.control,shouldUnregister:s,defaultValue:o}=t,a=Oa(i._names.array,r),u=ce.useMemo(()=>F(i._formValues,r,F(i._defaultValues,r,o)),[i,r,o]),h=$u({control:i,name:r,defaultValue:u,exact:!0}),_=Vu({control:i,name:r,exact:!0}),f=ce.useRef(t),l=ce.useRef(void 0),y=ce.useRef(i.register(r,O(G(O({},t.rules),{value:h}),tt(t.disabled)?{disabled:t.disabled}:{})));f.current=t;const v=ce.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!F(_.errors,r)},isDirty:{enumerable:!0,get:()=>!!F(_.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!F(_.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!F(_.validatingFields,r)},error:{enumerable:!0,get:()=>F(_.errors,r)}}),[_,r]),d=ce.useCallback(C=>y.current.onChange({target:{value:Ia(C),name:r},type:Mn.CHANGE}),[r]),m=ce.useCallback(()=>y.current.onBlur({target:{value:F(i._formValues,r),name:r},type:Mn.BLUR}),[r,i._formValues]),S=ce.useCallback(C=>{const T=F(i._fields,r);T&&C&&(T._f.ref={focus:()=>C.focus&&C.focus(),select:()=>C.select&&C.select(),setCustomValidity:k=>C.setCustomValidity(k),reportValidity:()=>C.reportValidity()})},[i._fields,r]),b=ce.useMemo(()=>G(O({name:r,value:h},tt(n)||_.disabled?{disabled:_.disabled||n}:{}),{onChange:d,onBlur:m,ref:S}),[r,n,_.disabled,d,m,S,h]);return ce.useEffect(()=>{const C=i._options.shouldUnregister||s,T=l.current;T&&T!==r&&!a&&i.unregister(T),i.register(r,O(O({},f.current.rules),tt(f.current.disabled)?{disabled:f.current.disabled}:{}));const k=(x,P)=>{const me=F(i._fields,x);me&&me._f&&(me._f.mount=P)};if(k(r,!0),C){const x=Pe(F(i._options.defaultValues,r,f.current.defaultValue));Ee(i._defaultValues,r,x),Ae(F(i._formValues,r))&&Ee(i._formValues,r,x)}return!a&&i.register(r),l.current=r,()=>{(a?C&&!i._state.action:C)?i.unregister(r):k(r,!1)}},[r,i,a,s]),ce.useEffect(()=>{i._setDisabledField({disabled:n,name:r})},[n,r,i]),ce.useMemo(()=>({field:b,formState:_,fieldState:v}),[b,_,v])}const xa=t=>t.render(Bu(t));var Wu=(t,e,r,n,i)=>e?G(O({},r[t]),{types:G(O({},r[t]&&r[t].types?r[t].types:{}),{[n]:i||!0})}):{},ln=t=>Array.isArray(t)?t:[t],Na=()=>{let t=[];return{get observers(){return t},next:i=>{for(const s of t)s.next&&s.next(i)},subscribe:i=>(t.push(i),{unsubscribe:()=>{t=t.filter(s=>s!==i)}}),unsubscribe:()=>{t=[]}}};function ka(t,e){const r={};for(const n in t)if(t.hasOwnProperty(n)){const i=t[n],s=e[n];if(i&&Ne(i)&&s){const o=ka(i,s);Ne(o)&&(r[n]=o)}else t[n]&&(r[n]=s)}return r}var Qe=t=>Ne(t)&&!Object.keys(t).length,hs=t=>t.type==="file",ht=t=>typeof t=="function",Pn=t=>{if(!as)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},Da=t=>t.type==="select-multiple",ps=t=>t.type==="radio",Hu=t=>ps(t)||an(t),ms=t=>Pn(t)&&t.isConnected;function ju(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=Ae(t)?n++:t[e[n++]];return t}function zu(t){for(const e in t)if(t.hasOwnProperty(e)&&!Ae(t[e]))return!1;return!0}function ke(t,e){const r=Array.isArray(e)?e:Dn(e)?[e]:cs(e),n=r.length===1?t:ju(t,r),i=r.length-1,s=r[i];return n&&delete n[s],i!==0&&(Ne(n)&&Qe(n)||Array.isArray(n)&&zu(n))&&ke(t,r.slice(0,-1)),t}var Gu=t=>{for(const e in t)if(ht(t[e]))return!0;return!1};function Ma(t){return Array.isArray(t)||Ne(t)&&!Gu(t)}function _s(t,e={}){for(const r in t)Ma(t[r])?(e[r]=Array.isArray(t[r])?[]:{},_s(t[r],e[r])):Ye(t[r])||(e[r]=!0);return e}function Ar(t,e,r){r||(r=_s(e));for(const n in t)Ma(t[n])?Ae(e)||fs(r[n])?r[n]=_s(t[n],Array.isArray(t[n])?[]:{}):Ar(t[n],Ye(e)?{}:e[n],r[n]):r[n]=!Nt(t[n],e[n]);return r}const Pa={value:!1,isValid:!1},Ua={value:!0,isValid:!0};var La=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!Ae(t[0].attributes.value)?Ae(t[0].value)||t[0].value===""?Ua:{value:t[0].value,isValid:!0}:Ua:Pa}return Pa},Fa=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:n})=>Ae(t)?t:e?t===""?NaN:t&&+t:r&&rt(t)?new Date(t):n?n(t):t;const Va={isValid:!1,value:null};var $a=t=>Array.isArray(t)?t.reduce((e,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:e,Va):Va;function Ba(t){const e=t.ref;return hs(e)?e.files:ps(e)?$a(t.refs).value:Da(e)?[...e.selectedOptions].map(({value:r})=>r):an(e)?La(t.refs).value:Fa(Ae(e.value)?t.ref.value:e.value,t)}var Ku=(t,e,r,n)=>{const i={};for(const s of t){const o=F(e,s);o&&Ee(i,s,o._f)}return{criteriaMode:r,names:[...t],fields:i,shouldUseNativeValidation:n}},Un=t=>t instanceof RegExp,cn=t=>Ae(t)?t:Un(t)?t.source:Ne(t)?Un(t.value)?t.value.source:t.value:t,Wa=t=>({isOnSubmit:!t||t===ft.onSubmit,isOnBlur:t===ft.onBlur,isOnChange:t===ft.onChange,isOnAll:t===ft.all,isOnTouch:t===ft.onTouched});const Ha="AsyncFunction";var qu=t=>!!t&&!!t.validate&&!!(ht(t.validate)&&t.validate.constructor.name===Ha||Ne(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===Ha)),Zu=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),ja=(t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some(n=>t.startsWith(n)&&/^\.\w+/.test(t.slice(n.length))));const un=(t,e,r,n)=>{for(const s of r||Object.keys(t)){const o=F(t,s);if(o){const i=o,{_f:a}=i,u=pr(i,["_f"]);if(a){if(a.refs&&a.refs[0]&&e(a.refs[0],s)&&!n)return!0;if(a.ref&&e(a.ref,a.name)&&!n)return!0;if(un(u,e))break}else if(Ne(u)&&un(u,e))break}}};function za(t,e,r){const n=F(t,r);if(n||Dn(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const s=i.join("."),o=F(e,s),a=F(t,s);if(o&&!Array.isArray(o)&&r!==s)return{name:r};if(a&&a.type)return{name:s,error:a};if(a&&a.root&&a.root.type)return{name:`${s}.root`,error:a.root};i.pop()}return{name:r}}var Yu=(t,e,r,n)=>{r(t);const o=t,{name:i}=o,s=pr(o,["name"]);return Qe(s)||Object.keys(s).length>=Object.keys(e).length||Object.keys(s).find(a=>e[a]===(!n||ft.all))},Xu=(t,e,r)=>!t||!e||t===e||ln(t).some(n=>n&&(r?n===e:n.startsWith(e)||e.startsWith(n))),Ju=(t,e,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(e||t):(r?n.isOnBlur:i.isOnBlur)?!t:(r?n.isOnChange:i.isOnChange)?t:!0,Qu=(t,e)=>!ls(F(t,e)).length&&ke(t,e),ed=(t,e,r)=>{const n=ln(F(t,r));return Ee(n,"root",e[r]),Ee(t,r,n),t};function Ga(t,e,r="validate"){if(rt(t)||Array.isArray(t)&&t.every(rt)||tt(t)&&!t)return{type:r,message:rt(t)?t:"",ref:e}}var xr=t=>Ne(t)&&!Un(t)?t:{value:t,message:""},Ka=(t,e,r,n,i,s)=>L(null,null,function*(){const{ref:o,refs:a,required:u,maxLength:h,minLength:_,min:f,max:l,pattern:y,validate:v,name:d,valueAsNumber:m,mount:S}=t._f,b=F(r,d);if(!S||e.has(d))return{};const C=a?a[0]:o,T=W=>{i&&C.reportValidity&&(C.setCustomValidity(tt(W)?"":W||""),C.reportValidity())},k={},x=ps(o),P=an(o),me=x||P,_e=(m||hs(o))&&Ae(o.value)&&Ae(b)||Pn(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,ee=Wu.bind(null,d,n,k),Q=(W,X,ue,de=xt.maxLength,we=xt.minLength)=>{const ye=W?X:ue;k[d]=O({type:W?de:we,message:ye,ref:o},ee(W?de:we,ye))};if(s?!Array.isArray(b)||!b.length:u&&(!me&&(_e||Ye(b))||tt(b)&&!b||P&&!La(a).isValid||x&&!$a(a).isValid)){const{value:W,message:X}=rt(u)?{value:!!u,message:u}:xr(u);if(W&&(k[d]=O({type:xt.required,message:X,ref:C},ee(xt.required,X)),!n))return T(X),k}if(!_e&&(!Ye(f)||!Ye(l))){let W,X;const ue=xr(l),de=xr(f);if(!Ye(b)&&!isNaN(b)){const we=o.valueAsNumber||b&&+b;Ye(ue.value)||(W=we>ue.value),Ye(de.value)||(X=we<de.value)}else{const we=o.valueAsDate||new Date(b),ye=U=>new Date(new Date().toDateString()+" "+U),te=o.type=="time",z=o.type=="week";rt(ue.value)&&b&&(W=te?ye(b)>ye(ue.value):z?b>ue.value:we>new Date(ue.value)),rt(de.value)&&b&&(X=te?ye(b)<ye(de.value):z?b<de.value:we<new Date(de.value))}if((W||X)&&(Q(!!W,ue.message,de.message,xt.max,xt.min),!n))return T(k[d].message),k}if((h||_)&&!_e&&(rt(b)||s&&Array.isArray(b))){const W=xr(h),X=xr(_),ue=!Ye(W.value)&&b.length>+W.value,de=!Ye(X.value)&&b.length<+X.value;if((ue||de)&&(Q(ue,W.message,X.message),!n))return T(k[d].message),k}if(y&&!_e&&rt(b)){const{value:W,message:X}=xr(y);if(Un(W)&&!b.match(W)&&(k[d]=O({type:xt.pattern,message:X,ref:o},ee(xt.pattern,X)),!n))return T(X),k}if(v){if(ht(v)){const W=yield v(b,r),X=Ga(W,C);if(X&&(k[d]=O(O({},X),ee(xt.validate,X.message)),!n))return T(X.message),k}else if(Ne(v)){let W={};for(const X in v){if(!Qe(W)&&!n)break;const ue=Ga(yield v[X](b,r),C,X);ue&&(W=O(O({},ue),ee(X,ue.message)),T(ue.message),n&&(k[d]=W))}if(!Qe(W)&&(k[d]=O({ref:C},W),!n))return k}}return T(!0),k});const td={mode:ft.onSubmit,reValidateMode:ft.onChange,shouldFocusError:!0};function rd(t={}){let e=O(O({},td),t),r={submitCount:0,isDirty:!1,isReady:!1,isLoading:ht(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1},n={},i=Ne(e.defaultValues)||Ne(e.values)?Pe(e.defaultValues||e.values)||{}:{},s=e.shouldUnregister?{}:Pe(i),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},u,h=0;const _={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f=O({},_);const l={array:Na(),state:Na()},y=e.criteriaMode===ft.all,v=w=>I=>{clearTimeout(h),h=setTimeout(w,I)},d=w=>L(null,null,function*(){if(!e.disabled&&(_.isValid||f.isValid||w)){const I=e.resolver?Qe((yield P()).errors):yield _e(n,!0);I!==r.isValid&&l.state.next({isValid:I})}}),m=(w,I)=>{!e.disabled&&(_.isValidating||_.validatingFields||f.isValidating||f.validatingFields)&&((w||Array.from(a.mount)).forEach(A=>{A&&(I?Ee(r.validatingFields,A,I):ke(r.validatingFields,A))}),l.state.next({validatingFields:r.validatingFields,isValidating:!Qe(r.validatingFields)}))},S=(w,I=[],A,V,D=!0,M=!0)=>{if(V&&A&&!e.disabled){if(o.action=!0,M&&Array.isArray(F(n,w))){const H=A(F(n,w),V.argA,V.argB);D&&Ee(n,w,H)}if(M&&Array.isArray(F(r.errors,w))){const H=A(F(r.errors,w),V.argA,V.argB);D&&Ee(r.errors,w,H),Qu(r.errors,w)}if((_.touchedFields||f.touchedFields)&&M&&Array.isArray(F(r.touchedFields,w))){const H=A(F(r.touchedFields,w),V.argA,V.argB);D&&Ee(r.touchedFields,w,H)}(_.dirtyFields||f.dirtyFields)&&(r.dirtyFields=Ar(i,s)),l.state.next({name:w,isDirty:Q(w,I),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ee(s,w,I)},b=(w,I)=>{Ee(r.errors,w,I),l.state.next({errors:r.errors})},C=w=>{r.errors=w,l.state.next({errors:r.errors,isValid:!1})},T=(w,I,A,V)=>{const D=F(n,w);if(D){const M=F(s,w,Ae(A)?F(i,w):A);Ae(M)||V&&V.defaultChecked||I?Ee(s,w,I?M:Ba(D._f)):ue(w,M),o.mount&&d()}},k=(w,I,A,V,D)=>{let M=!1,H=!1;const ie={name:w};if(!e.disabled){if(!A||V){(_.isDirty||f.isDirty)&&(H=r.isDirty,r.isDirty=ie.isDirty=Q(),M=H!==ie.isDirty);const K=Nt(F(i,w),I);H=!!F(r.dirtyFields,w),K?ke(r.dirtyFields,w):Ee(r.dirtyFields,w,!0),ie.dirtyFields=r.dirtyFields,M=M||(_.dirtyFields||f.dirtyFields)&&H!==!K}if(A){const K=F(r.touchedFields,w);K||(Ee(r.touchedFields,w,A),ie.touchedFields=r.touchedFields,M=M||(_.touchedFields||f.touchedFields)&&K!==A)}M&&D&&l.state.next(ie)}return M?ie:{}},x=(w,I,A,V)=>{const D=F(r.errors,w),M=(_.isValid||f.isValid)&&tt(I)&&r.isValid!==I;if(e.delayError&&A?(u=v(()=>b(w,A)),u(e.delayError)):(clearTimeout(h),u=null,A?Ee(r.errors,w,A):ke(r.errors,w)),(A?!Nt(D,A):D)||!Qe(V)||M){const H=G(O(O({},V),M&&tt(I)?{isValid:I}:{}),{errors:r.errors,name:w});r=O(O({},r),H),l.state.next(H)}},P=w=>L(null,null,function*(){m(w,!0);const I=yield e.resolver(s,e.context,Ku(w||a.mount,n,e.criteriaMode,e.shouldUseNativeValidation));return m(w),I}),me=w=>L(null,null,function*(){const{errors:I}=yield P(w);if(w)for(const A of w){const V=F(I,A);V?Ee(r.errors,A,V):ke(r.errors,A)}else r.errors=I;return I}),_e=(V,D,...M)=>L(null,[V,D,...M],function*(w,I,A={valid:!0}){for(const ie in w){const K=w[ie];if(K){const H=K,{_f:ve}=H,He=pr(H,["_f"]);if(ve){const Y=a.array.has(ve.name),ae=K._f&&qu(K._f);ae&&_.validatingFields&&m([ve.name],!0);const j=yield Ka(K,a.disabled,s,y,e.shouldUseNativeValidation&&!I,Y);if(ae&&_.validatingFields&&m([ve.name]),j[ve.name]&&(A.valid=!1,I))break;!I&&(F(j,ve.name)?Y?ed(r.errors,j,ve.name):Ee(r.errors,ve.name,j[ve.name]):ke(r.errors,ve.name))}!Qe(He)&&(yield _e(He,I,A))}}return A.valid}),ee=()=>{for(const w of a.unMount){const I=F(n,w);I&&(I._f.refs?I._f.refs.every(A=>!ms(A)):!ms(I._f.ref))&&Ke(w)}a.unMount=new Set},Q=(w,I)=>!e.disabled&&(w&&I&&Ee(s,w,I),!Nt(U(),i)),W=(w,I,A)=>Aa(w,a,O({},o.mount?s:Ae(I)?i:rt(w)?{[w]:I}:I),A,I),X=w=>ls(F(o.mount?s:i,w,e.shouldUnregister?F(i,w,[]):[])),ue=(w,I,A={})=>{const V=F(n,w);let D=I;if(V){const M=V._f;M&&(!M.disabled&&Ee(s,w,Fa(I,M)),D=Pn(M.ref)&&Ye(I)?"":I,Da(M.ref)?[...M.ref.options].forEach(H=>H.selected=D.includes(H.value)):M.refs?an(M.ref)?M.refs.forEach(H=>{(!H.defaultChecked||!H.disabled)&&(Array.isArray(D)?H.checked=!!D.find(ie=>ie===H.value):H.checked=D===H.value||!!D)}):M.refs.forEach(H=>H.checked=H.value===D):hs(M.ref)?M.ref.value="":(M.ref.value=D,M.ref.type||l.state.next({name:w,values:Pe(s)})))}(A.shouldDirty||A.shouldTouch)&&k(w,D,A.shouldTouch,A.shouldDirty,!0),A.shouldValidate&&z(w)},de=(w,I,A)=>{for(const V in I){if(!I.hasOwnProperty(V))return;const D=I[V],M=w+"."+V,H=F(n,M);(a.array.has(w)||Ne(D)||H&&!H._f)&&!fr(D)?de(M,D,A):ue(M,D,A)}},we=(w,I,A={})=>{const V=F(n,w),D=a.array.has(w),M=Pe(I);Ee(s,w,M),D?(l.array.next({name:w,values:Pe(s)}),(_.isDirty||_.dirtyFields||f.isDirty||f.dirtyFields)&&A.shouldDirty&&l.state.next({name:w,dirtyFields:Ar(i,s),isDirty:Q(w,M)})):V&&!V._f&&!Ye(M)?de(w,M,A):ue(w,M,A),ja(w,a)&&l.state.next(G(O({},r),{name:w})),l.state.next({name:o.mount?w:void 0,values:Pe(s)})},ye=w=>L(null,null,function*(){o.mount=!0;const I=w.target;let A=I.name,V=!0;const D=F(n,A),M=K=>{V=Number.isNaN(K)||fr(K)&&isNaN(K.getTime())||Nt(K,F(s,A,K))},H=Wa(e.mode),ie=Wa(e.reValidateMode);if(D){let K,ve;const He=I.type?Ba(D._f):Ia(w),Y=w.type===Mn.BLUR||w.type===Mn.FOCUS_OUT,ae=!Zu(D._f)&&!e.resolver&&!F(r.errors,A)&&!D._f.deps||Ju(Y,F(r.touchedFields,A),r.isSubmitted,ie,H),j=ja(A,a,Y);Ee(s,A,He),Y?(!I||!I.readOnly)&&(D._f.onBlur&&D._f.onBlur(w),u&&u(0)):D._f.onChange&&D._f.onChange(w);const ge=k(A,He,Y),qe=!Qe(ge)||j;if(!Y&&l.state.next({name:A,type:w.type,values:Pe(s)}),ae)return(_.isValid||f.isValid)&&(e.mode==="onBlur"?Y&&d():Y||d()),qe&&l.state.next(O({name:A},j?{}:ge));if(!Y&&j&&l.state.next(O({},r)),e.resolver){const{errors:De}=yield P([A]);if(M(He),V){const he=za(r.errors,n,A),q=za(De,n,he.name||A);K=q.error,A=q.name,ve=Qe(De)}}else m([A],!0),K=(yield Ka(D,a.disabled,s,y,e.shouldUseNativeValidation))[A],m([A]),M(He),V&&(K?ve=!1:(_.isValid||f.isValid)&&(ve=yield _e(n,!0)));V&&(D._f.deps&&(!Array.isArray(D._f.deps)||D._f.deps.length>0)&&z(D._f.deps),x(A,ve,K,ge))}}),te=(w,I)=>{if(F(r.errors,I)&&w.focus)return w.focus(),1},z=(A,...V)=>L(null,[A,...V],function*(w,I={}){let D,M;const H=ln(w);if(e.resolver){const ie=yield me(Ae(w)?w:H);D=Qe(ie),M=w?!H.some(K=>F(ie,K)):D}else w?(M=(yield Promise.all(H.map(ie=>L(null,null,function*(){const K=F(n,ie);return yield _e(K&&K._f?{[ie]:K}:K)})))).every(Boolean),!(!M&&!r.isValid)&&d()):M=D=yield _e(n);return l.state.next(G(O(O({},!rt(w)||(_.isValid||f.isValid)&&D!==r.isValid?{}:{name:w}),e.resolver||!w?{isValid:D}:{}),{errors:r.errors})),I.shouldFocus&&!M&&un(n,te,w?H:a.mount),M}),U=(w,I)=>{let A=O({},o.mount?s:i);return I&&(A=ka(I.dirtyFields?r.dirtyFields:r.touchedFields,A)),Ae(w)?A:rt(w)?F(A,w):w.map(V=>F(A,V))},Z=(w,I)=>({invalid:!!F((I||r).errors,w),isDirty:!!F((I||r).dirtyFields,w),error:F((I||r).errors,w),isValidating:!!F(r.validatingFields,w),isTouched:!!F((I||r).touchedFields,w)}),re=w=>{w&&ln(w).forEach(I=>ke(r.errors,I)),l.state.next({errors:w?r.errors:{}})},Ie=(w,I,A)=>{const V=(F(n,w,{_f:{}})._f||{}).ref,ve=F(r.errors,w)||{},{ref:M,message:H,type:ie}=ve,K=pr(ve,["ref","message","type"]);Ee(r.errors,w,G(O(O({},K),I),{ref:V})),l.state.next({name:w,errors:r.errors,isValid:!1}),A&&A.shouldFocus&&V&&V.focus&&V.focus()},ne=(w,I)=>ht(w)?l.state.subscribe({next:A=>"values"in A&&w(W(void 0,I),A)}):W(w,I,!0),$=w=>l.state.subscribe({next:I=>{Xu(w.name,I.name,w.exact)&&Yu(I,w.formState||_,Qt,w.reRenderRoot)&&w.callback(G(O(O({values:O({},s)},r),I),{defaultValues:i}))}}).unsubscribe,J=w=>(o.mount=!0,f=O(O({},f),w.formState),$(G(O({},w),{formState:f}))),Ke=(w,I={})=>{for(const A of w?ln(w):a.mount)a.mount.delete(A),a.array.delete(A),I.keepValue||(ke(n,A),ke(s,A)),!I.keepError&&ke(r.errors,A),!I.keepDirty&&ke(r.dirtyFields,A),!I.keepTouched&&ke(r.touchedFields,A),!I.keepIsValidating&&ke(r.validatingFields,A),!e.shouldUnregister&&!I.keepDefaultValue&&ke(i,A);l.state.next({values:Pe(s)}),l.state.next(O(O({},r),I.keepDirty?{isDirty:Q()}:{})),!I.keepIsValid&&d()},Xe=({disabled:w,name:I})=>{(tt(w)&&o.mount||w||a.disabled.has(I))&&(w?a.disabled.add(I):a.disabled.delete(I))},pt=(w,I={})=>{let A=F(n,w);const V=tt(I.disabled)||tt(e.disabled);return Ee(n,w,G(O({},A||{}),{_f:O(G(O({},A&&A._f?A._f:{ref:{name:w}}),{name:w,mount:!0}),I)})),a.mount.add(w),A?Xe({disabled:tt(I.disabled)?I.disabled:e.disabled,name:w}):T(w,!0,I.value),G(O(O({},V?{disabled:I.disabled||e.disabled}:{}),e.progressive?{required:!!I.required,min:cn(I.min),max:cn(I.max),minLength:cn(I.minLength),maxLength:cn(I.maxLength),pattern:cn(I.pattern)}:{}),{name:w,onChange:ye,onBlur:ye,ref:D=>{if(D){pt(w,I),A=F(n,w);const M=Ae(D.value)&&D.querySelectorAll&&D.querySelectorAll("input,select,textarea")[0]||D,H=Hu(M),ie=A._f.refs||[];if(H?ie.find(K=>K===M):M===A._f.ref)return;Ee(n,w,{_f:O(O({},A._f),H?{refs:[...ie.filter(ms),M,...Array.isArray(F(i,w))?[{}]:[]],ref:{type:M.type,name:w}}:{ref:M})}),T(w,!1,void 0,M)}else A=F(n,w,{}),A._f&&(A._f.mount=!1),(e.shouldUnregister||I.shouldUnregister)&&!(Oa(a.array,w)&&o.action)&&a.unMount.add(w)}})},nt=()=>e.shouldFocusError&&un(n,te,a.mount),Ht=w=>{tt(w)&&(l.state.next({disabled:w}),un(n,(I,A)=>{const V=F(n,A);V&&(I.disabled=V._f.disabled||w,Array.isArray(V._f.refs)&&V._f.refs.forEach(D=>{D.disabled=V._f.disabled||w}))},0,!1))},mt=(w,I)=>A=>L(null,null,function*(){let V;A&&(A.preventDefault&&A.preventDefault(),A.persist&&A.persist());let D=Pe(s);if(l.state.next({isSubmitting:!0}),e.resolver){const{errors:M,values:H}=yield P();r.errors=M,D=Pe(H)}else yield _e(n);if(a.disabled.size)for(const M of a.disabled)ke(D,M);if(ke(r.errors,"root"),Qe(r.errors)){l.state.next({errors:{}});try{yield w(D,A)}catch(M){V=M}}else I&&(yield I(O({},r.errors),A)),nt(),setTimeout(nt);if(l.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Qe(r.errors)&&!V,submitCount:r.submitCount+1,errors:r.errors}),V)throw V}),Jt=(w,I={})=>{F(n,w)&&(Ae(I.defaultValue)?we(w,Pe(F(i,w))):(we(w,I.defaultValue),Ee(i,w,Pe(I.defaultValue))),I.keepTouched||ke(r.touchedFields,w),I.keepDirty||(ke(r.dirtyFields,w),r.isDirty=I.defaultValue?Q(w,Pe(F(i,w))):Q()),I.keepError||(ke(r.errors,w),_.isValid&&d()),l.state.next(O({},r)))},jt=(w,I={})=>{const A=w?Pe(w):i,V=Pe(A),D=Qe(w),M=D?i:V;if(I.keepDefaultValues||(i=A),!I.keepValues){if(I.keepDirtyValues){const H=new Set([...a.mount,...Object.keys(Ar(i,s))]);for(const ie of Array.from(H))F(r.dirtyFields,ie)?Ee(M,ie,F(s,ie)):we(ie,F(M,ie))}else{if(as&&Ae(w))for(const H of a.mount){const ie=F(n,H);if(ie&&ie._f){const K=Array.isArray(ie._f.refs)?ie._f.refs[0]:ie._f.ref;if(Pn(K)){const ve=K.closest("form");if(ve){ve.reset();break}}}}if(I.keepFieldsRef)for(const H of a.mount)we(H,F(M,H));else n={}}s=e.shouldUnregister?I.keepDefaultValues?Pe(i):{}:Pe(M),l.array.next({values:O({},M)}),l.state.next({values:O({},M)})}a={mount:I.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!_.isValid||!!I.keepIsValid||!!I.keepDirtyValues,o.watch=!!e.shouldUnregister,l.state.next({submitCount:I.keepSubmitCount?r.submitCount:0,isDirty:D?!1:I.keepDirty?r.isDirty:!!(I.keepDefaultValues&&!Nt(w,i)),isSubmitted:I.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:D?{}:I.keepDirtyValues?I.keepDefaultValues&&s?Ar(i,s):r.dirtyFields:I.keepDefaultValues&&w?Ar(i,w):I.keepDirty?r.dirtyFields:{},touchedFields:I.keepTouched?r.touchedFields:{},errors:I.keepErrors?r.errors:{},isSubmitSuccessful:I.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Ct=(w,I)=>jt(ht(w)?w(s):w,I),zt=(w,I={})=>{const A=F(n,w),V=A&&A._f;if(V){const D=V.refs?V.refs[0]:V.ref;D.focus&&(D.focus(),I.shouldSelect&&ht(D.select)&&D.select())}},Qt=w=>{r=O(O({},r),w)},at={control:{register:pt,unregister:Ke,getFieldState:Z,handleSubmit:mt,setError:Ie,_subscribe:$,_runSchema:P,_focusError:nt,_getWatch:W,_getDirty:Q,_setValid:d,_setFieldArray:S,_setDisabledField:Xe,_setErrors:C,_getFieldArray:X,_reset:jt,_resetDefaultValues:()=>ht(e.defaultValues)&&e.defaultValues().then(w=>{Ct(w,e.resetOptions),l.state.next({isLoading:!1})}),_removeUnmounted:ee,_disableForm:Ht,_subjects:l,_proxyFormState:_,get _fields(){return n},get _formValues(){return s},get _state(){return o},set _state(w){o=w},get _defaultValues(){return i},get _names(){return a},set _names(w){a=w},get _formState(){return r},get _options(){return e},set _options(w){e=O(O({},e),w)}},subscribe:J,trigger:z,register:pt,handleSubmit:mt,watch:ne,setValue:we,getValues:U,reset:Ct,resetField:Jt,clearErrors:re,unregister:Ke,setError:Ie,setFocus:zt,getFieldState:Z};return G(O({},at),{formControl:at})}function nd(t={}){const e=ce.useRef(void 0),r=ce.useRef(void 0),[n,i]=ce.useState({isDirty:!1,isValidating:!1,isLoading:ht(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,isReady:!1,defaultValues:ht(t.defaultValues)?void 0:t.defaultValues});if(!e.current)if(t.formControl)e.current=G(O({},t.formControl),{formState:n}),t.defaultValues&&!ht(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const o=rd(t),{formControl:a}=o,u=pr(o,["formControl"]);e.current=G(O({},u),{formState:n})}const s=e.current.control;return s._options=t,ds(()=>{const a=s._subscribe({formState:s._proxyFormState,callback:()=>i(O({},s._formState)),reRenderRoot:!0});return i(u=>G(O({},u),{isReady:!0})),s._formState.isReady=!0,a},[s]),ce.useEffect(()=>s._disableForm(t.disabled),[s,t.disabled]),ce.useEffect(()=>{t.mode&&(s._options.mode=t.mode),t.reValidateMode&&(s._options.reValidateMode=t.reValidateMode)},[s,t.mode,t.reValidateMode]),ce.useEffect(()=>{t.errors&&(s._setErrors(t.errors),s._focusError())},[s,t.errors]),ce.useEffect(()=>{t.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,t.shouldUnregister]),ce.useEffect(()=>{if(s._proxyFormState.isDirty){const a=s._getDirty();a!==n.isDirty&&s._subjects.state.next({isDirty:a})}},[s,n.isDirty]),ce.useEffect(()=>{t.values&&!Nt(t.values,r.current)?(s._reset(t.values,O({keepFieldsRef:!0},s._options.resetOptions)),r.current=t.values,i(a=>O({},a))):s._resetDefaultValues()},[s,t.values]),ce.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next(O({},s._formState))),s._removeUnmounted()}),e.current.formState=Ra(n,s),e.current}const Nr=(t,e)=>{const r={};return t.forEach((n,i)=>{if(n.type===ga.NOT_EMPTY&&(r.required=s=>e&&qc(s)?n.message:!0),n.type===ga.REGEX){const s=new RegExp(n.regex);r[`regex_${i}`]=o=>!e&&!o?!0:typeof o!="string"?n.message:s.test(o)||n.message}}),r},id=({isOpen:t,image:e})=>c("div",{"data-ui":"gui-custom-select-chevron",style:{width:"16px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center",transform:t?"rotate(180deg)":"none",transformOrigin:"50% 50%",transition:".2s",flexShrink:0},children:e?c(Fe,O({},e)):c(Fe,{imageId:"chevronDown"})}),sd=({isChosen:t,option:e,onOptionClickCallback:r,isHovered:n,onHover:i,onHoverEnd:s})=>{const o=t?e.layoutSelected.image:e.layout.image;return c("div",{style:{padding:"5px 8px",background:((u,h)=>{var _,f,l,y;if(!u&&!h)return(_=le(e.layout.backgroundColor))!=null?_:"transparent";if(!u&&h)return(f=le(e.layoutSelected.backgroundColor))!=null?f:"transparent";if(u&&!h)return(l=le(e.layout.highlightColor))!=null?l:"#F4F4F4";if(u&&h)return(y=le(e.layoutSelected.highlightColor))!=null?y:"#F4F4F4"})(n,t),fontSize:13,display:"flex",justifyContent:"space-between",alignItems:"center",gap:8,borderRadius:4,cursor:"pointer"},"data-select-id":e.value,onClick:r(e),onMouseEnter:i,onMouseLeave:s,children:[c(xe,G(O({},e.layout.title),{text:e.label})),c("div",{style:{display:"flex",flexShrink:0},children:c(Fe,O({},o))})]},e.value)},qa=({name:t,options:e,isMulti:r=!1,isClearable:n=!1,value:i,onChange:s,placeholder:o,closeMenuOnSelect:a=!0,onBlur:u,parentElementRef:h,controlLayout:_,pickerLayout:f})=>{var W,X,ue,de,we,ye,te,z;const[l,y]=Le(!1),[v,d]=Le(i),[m,S]=Le("down"),[b,C]=Le(null),T=ot(null),k=ot(null);Zt(()=>{var ne,$,J;if(!l)return;const U=(ne=T.current)==null?void 0:ne.getBoundingClientRect(),Z=($=k.current)==null?void 0:$.getBoundingClientRect(),re=(J=h.current)==null?void 0:J.getBoundingClientRect();if(!U||!Z||!re)return;const Ie=U.bottom+Z.height<re.bottom;S(Ie?"down":"up")},[l]),st(()=>{s(v)},[v]);const x=U=>Z=>{var re;Z.stopPropagation(),(Z.type==="touchend"||((re=Z.nativeEvent)==null?void 0:re.pointerType)==="touch")&&C(null),a&&y(!1),d(Ie=>r?Ie.some($=>$.value===U.value)?Ie.filter($=>$.value!==U.value):[...Ie,U]:[U])},P=()=>{u&&u(),y(!1)},me=U=>Z=>{Z.stopPropagation(),d(re=>re.filter(Ie=>Ie.value!==U.value))},_e=U=>{U.stopPropagation(),d([])},ee=(W=le(_==null?void 0:_.borderColor))!=null?W:"#D9D9D9",Q=(X=le(_==null?void 0:_.highlightBorderColor))!=null?X:"#7E57C5";return c("div",{"data-ui":"gui-custom-select",ref:T,children:c("div",{"data-ui":"gui-select-name-"+t,style:{backgroundColor:le(_==null?void 0:_.backgroundColor),borderStyle:"solid",borderColor:l?Q:ee,borderWidth:(ue=_==null?void 0:_.borderWidth)!=null?ue:1,borderRadius:(de=_==null?void 0:_.cornerRadius)!=null?de:8,minHeight:"41px",position:"relative",zIndex:"auto",padding:"8px 11px 8px 8px",cursor:"pointer",display:"flex",alignItems:"center",gap:10},tabIndex:0,onBlur:P,onClick:()=>y(!l),children:[c("div",{"data-ui":"gui-custom-select-multi-choose-container",style:{display:"flex",gap:8,alignItems:"flex-start",alignContent:"center",flexWrap:"wrap",width:"100%"},children:[!v.length&&c("span",{style:{fontSize:13,color:"#8C8C8C"},children:o}),v.map(U=>{var Z,re,Ie,ne,$;if(r){const J=_==null?void 0:_.chip;return c("div",{style:{padding:"0px 5px",display:"flex",gap:8,backgroundColor:(Z=le(J==null?void 0:J.backgroundColor))!=null?Z:"#F2F2F2",borderRadius:(re=J==null?void 0:J.cornerRadius)!=null?re:4,userSelect:"none",alignItems:"center"},children:[c(xe,G(O({},J==null?void 0:J.title),{fontSize:(ne=(Ie=J==null?void 0:J.title)==null?void 0:Ie.fontSize)!=null?ne:13,text:U.label})),c("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px"},onClick:me(U),children:J!=null&&J.removeImage?c(Fe,O({},J.removeImage)):c(Fe,{imageId:"cross"})})]},U.value)}else{const J=_==null?void 0:_.title;return c("div",{style:{display:"flex",userSelect:"none"},children:c(xe,G(O({},J),{fontSize:($=J==null?void 0:J.fontSize)!=null?$:13,text:U.label}))},U.value)}})]}),n&&v.length?c("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px",zIndex:1},onClick:_e,children:_!=null&&_.clearButton?c(Fe,O({},_.clearButton)):c(Fe,{imageId:"cross"})}):null,n?c("div",{style:{width:"1px",alignSelf:"stretch",backgroundColor:"#D9D9D9"}}):null,c(id,{isOpen:l,image:_==null?void 0:_.expandButton}),l&&c("div",{"data-ui":"gui-custom-select-dropdown-menu",ref:k,style:G(O({position:"absolute"},m==="down"?{top:"calc(100% + 1px)"}:{bottom:"calc(100% + 1px)"}),{left:0,border:"1px solid #e8e8e8",width:"100%",backgroundColor:(we=le(f==null?void 0:f.backgroundColor))!=null?we:"#ffffff",borderRadius:(ye=f==null?void 0:f.cornerRadius)!=null?ye:8,borderStyle:"solid",borderColor:(te=le(f==null?void 0:f.borderColor))!=null?te:"#D9D9D9",borderWidth:(z=f==null?void 0:f.borderWidth)!=null?z:1,maxHeight:"500px",overflow:"auto",zIndex:2,boxShadow:"0 3px 15px rgba(0,0,0,.2)",padding:"8px",display:"flex",flexDirection:"column",gap:"2px",cursor:"default"}),onClick:U=>U.stopPropagation(),children:e.map(U=>{const Z=v.some(re=>re.value===U.value);return c(sd,{isChosen:Z,option:U,onOptionClickCallback:x,isHovered:b===U.value,onHover:()=>C(U.value),onHoverEnd:()=>C(null)},U.label)})})]})})},od=({control:t,layout:e,dataSourceQuestion:r,parentElementRef:n})=>{const i=r.options.map(o=>({value:String(o.id),label:o.text,layout:e.option,layoutSelected:e.optionSelected})),s=String(r.id);return c("div",{style:{display:"flex",flexDirection:"column",gap:"16px",boxSizing:"border-box"},children:[e.title&&c(xe,G(O({},e.title),{text:r.text,htmlFor:s})),c(xa,{name:s,control:t,rules:{required:!!r.required,validate:Nr(r.validators,!!r.required)},render:({field:o})=>{const a=i.find(u=>u.value===o.value);return c(qa,{options:i,placeholder:r.placeholder,closeMenuOnSelect:!0,name:o.name,value:a?[a]:[],onChange:u=>{const h=u&&Array.isArray(u)&&u.length?u[0].value:null;o.onChange(h)},parentElementRef:n,isMulti:!1,isClearable:!1,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},ad=({control:t,layout:e,dataSourceQuestion:r,parentElementRef:n})=>{const i=r.options.map(o=>({value:String(o.id),label:o.text,layout:e.option,layoutSelected:e.optionSelected})),s=String(r.id);return c("div",{style:{display:"flex",flexDirection:"column",gap:"16px",boxSizing:"border-box"},children:[e.title&&c(xe,G(O({},e.title),{text:r.text,htmlFor:s})),c(xa,{name:s,control:t,rules:{required:!!r.required,validate:Nr(r.validators,!!r.required)},render:({field:o})=>{const a=i.filter(u=>{var h;return(h=o.value)==null?void 0:h.includes(u.value)});return c(qa,{name:s,options:i,placeholder:r.placeholder,closeMenuOnSelect:!1,value:a,onChange:u=>{const h=u.map(_=>_.value);o.onChange(h)},parentElementRef:n,isMulti:!0,isClearable:!0,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},Za=()=>{const[t,e]=Le(!1);return st(()=>{const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("keydown",r),window.addEventListener("mousedown",n),()=>{window.removeEventListener("keydown",r),window.removeEventListener("mousedown",n)}},[]),t},ld=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[s,o]=Le(!1),a=Za(),u=String(r.id),_=i(u)===String(t.id),f=e.option,l=e.optionSelected,y={backgroundColor:le(l.backgroundColor),borderRadius:l.cornerRadius},v={backgroundColor:le(f.backgroundColor),borderRadius:f.cornerRadius},d=s&&a?{filter:`drop-shadow(0 0 1px ${on})`}:{};return c("div",{children:c("label",{style:O({display:"flex",alignItems:"center",alignContent:"center",gap:8,cursor:"pointer"},_?y:v),children:[c("div",{style:O({display:"flex",alignItems:"center",alignContent:"center"},d),children:c(Fe,O({},_?l.image:f.image))}),c(xe,G(O({},_?l.title:f.title),{text:t.text})),c("input",G(O({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},n(u,{required:!!r.required,validate:Nr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>o(!0),onBlur:()=>o(!1)}))]})},t.id)},cd=({layout:t,register:e,watch:r,dataSourceQuestion:n})=>c("div",{style:{boxSizing:"border-box"},children:c("fieldset",{style:{margin:0,padding:0,border:"none",display:"flex",flexDirection:"column",gap:"16px"},children:[t.title&&c("legend",{style:{margin:0,padding:0,marginBottom:"16px"},children:c(xe,G(O({},t.title),{text:n.text}))}),n.options.map(i=>c(ld,{register:e,watch:r,layout:t,option:i,dataSourceQuestion:n},i.id))]})}),ud=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[s,o]=Le(!1),a=Za(),u=String(r.id),_=i(u)===String(t.id),f=e.option,l=e.optionSelected,y={borderRadius:f.cornerRadius,background:le(f.backgroundColor),borderColor:le(f.borderColor),borderWidth:f.borderWidth},v={borderRadius:l.cornerRadius,background:le(l.backgroundColor),borderColor:le(l.borderColor),borderWidth:l.borderWidth},d=s&&a?{outline:`2px solid ${on}`}:{};return c("div",{style:{display:"flex",flexGrow:1},children:c("label",{style:O(O({width:"100%",padding:"8px 16px",cursor:"pointer",borderStyle:"solid",position:"relative"},_?v:y),d),children:[c("input",G(O({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},n(u,{required:!!r.required,validate:Nr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>o(!0),onBlur:()=>o(!1)})),c(xe,G(O({},_?l.title:f.title),{text:t.text}))]})},t.id)},dd=({layout:t,watch:e,register:r,dataSourceQuestion:n})=>c("div",{style:{boxSizing:"border-box"},children:c("fieldset",{style:{margin:0,padding:0,border:"none"},children:[t.title&&c("legend",{style:{margin:0,padding:0,marginBottom:"16px"},children:c(xe,G(O({},t.title),{text:n.text}))}),c("div",{style:{display:"flex",justifyContent:"center",gap:5},children:n.options.map(i=>c(ud,{register:r,watch:e,layout:t,option:i,dataSourceQuestion:n},i.id))})]})}),fd=({children:t,backgroundColor:e,cornerRadius:r=0,isError:n,isRequired:i,validationBorderColor:s,validationBorderWidth:o})=>{const a=O({position:"relative",flexShrink:0,width:"100%",fontWeight:300,lineHeight:"140%",backgroundColor:le(e)||"transparent",borderRadius:r,padding:"16px",boxSizing:"border-box",height:"auto"},n&&O(O({},le(s)&&{borderColor:s,borderStyle:"solid"}),o&&{borderWidth:o}));return c("div",{style:a,children:[i&&c("span",{style:{color:le(s),position:"absolute",left:"6px",top:"18px"},children:"*"}),t]})},hd=({validationErrorsTypes:t,title:e})=>t?c("div",{style:{width:"100%",fontSize:12},children:Object.entries(t).map(([r,n])=>c(xe,G(O({},e),{text:n}),r))}):null,pd=({layout:t,dataSourceQuestion:e,register:r})=>{var s,o,a,u,h,_,f,l,y,v,d,m,S,b,C,T;const n=String(e.id),i=k=>k?k===An.EMAIL?"email":k===An.FREE_TEXT?"text":k===An.NUMBER?"number":k===An.SECURE?"password":"text":"text";return c("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[c(xe,G(O({},t.title),{text:e.text,htmlFor:n})),c("input",G(O({},r(n,{required:!!e.required,validate:Nr(e.validators,!!e.required)})),{id:n,type:i((s=t.textField)==null?void 0:s.inputType),style:{fontFamily:(a=(o=t==null?void 0:t.textField)==null?void 0:o.fontName)!=null?a:"sans-serif",fontSize:(h=(u=t==null?void 0:t.textField)==null?void 0:u.fontSize)!=null?h:15,color:(f=le((_=t==null?void 0:t.textField)==null?void 0:_.fontColor))!=null?f:"#000000",height:"42px",borderWidth:(y=(l=t==null?void 0:t.textField)==null?void 0:l.borderWidth)!=null?y:1,borderColor:(d=le((v=t==null?void 0:t.textField)==null?void 0:v.borderColor))!=null?d:"#d9d9d9",borderStyle:"solid",borderRadius:(S=(m=t==null?void 0:t.textField)==null?void 0:m.cornerRadius)!=null?S:8,padding:"11px",boxSizing:"border-box",backgroundColor:(C=le((b=t==null?void 0:t.textField)==null?void 0:b.backgroundColor))!=null?C:"#FFFFFF",outlineColor:on},placeholder:(T=e.placeholder)!=null?T:"","data-id":n}))]})},md=({layout:t,dataSourceQuestion:e,register:r})=>{var i,s,o,a,u,h,_,f,l,y,v,d,m;const n=String(e.id);return c("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[c(xe,G(O({},t.title),{text:e.text,htmlFor:n})),c("textarea",G(O({},r(n,{required:!!e.required,validate:Nr(e.validators,!!e.required)})),{id:n,placeholder:(i=e.placeholder)!=null?i:"",onInput:S=>{S.currentTarget.style.height="auto",S.currentTarget.style.height=`${S.currentTarget.scrollHeight-15}px`},"data-id":n,style:{fontFamily:"sans-serif",fontSize:(o=(s=t==null?void 0:t.textField)==null?void 0:s.fontSize)!=null?o:15,color:(u=le((a=t==null?void 0:t.textField)==null?void 0:a.fontColor))!=null?u:"#000000",resize:"none",overflow:"hidden",height:"42px",minHeight:"42px",borderWidth:(_=(h=t==null?void 0:t.textField)==null?void 0:h.borderWidth)!=null?_:1,borderColor:(l=le((f=t==null?void 0:t.textField)==null?void 0:f.borderColor))!=null?l:"#d9d9d9",borderStyle:"solid",borderRadius:(v=(y=t==null?void 0:t.textField)==null?void 0:y.cornerRadius)!=null?v:8,padding:"11px",boxSizing:"border-box",backgroundColor:(m=le((d=t==null?void 0:t.textField)==null?void 0:d.backgroundColor))!=null?m:"#FFFFFF",outlineColor:on}}))]})},Wt=class Wt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,Nn);super({errorCode:e,errorCodeKey:s,errorEnumName:Wt.ERROR_ENUM_NAME,module:Wt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Wt.ERROR_ENUM_NAME,shortDomainCode:Wt.SHORT_CODE})}};Wt.MODULE=xn,Wt.ERROR_ENUM_NAME="GuiModuleError",Wt.SHORT_CODE="GM";let dn=Wt;const _d=({header:t,title:e,buttons:r,footer:n,questions:i,dataSource:s,properties:o,backgroundColor:a})=>{const{perform:u}=dr(),h=o?Zc(s.questions,o):{},_=ot(null),{register:f,handleSubmit:l,formState:{errors:y},reset:v,watch:d,control:m}=nd({criteriaMode:"all",defaultValues:h});return c(Xt,{header:t,footer:n,backgroundColor:a,children:c("form",{onSubmit:l(b=>{u(Kc(b)),v()}),style:{height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},noValidate:!0,children:[c("div",{style:{flex:"1 1 100%",display:"flex",justifyContent:"flex-start",alignItems:"center",alignContent:"center",flexDirection:"column",gap:"10px",height:"100%",width:"100%",overflow:"auto",position:"relative",backgroundColor:le(i.backgroundColor)||"transparent"},ref:_,children:[e&&c("div",{style:{lineHeight:"39.2px",width:"100%"},children:c(xe,O({},e))}),c("div",{"data-ui":"gui-questions",part:"gui-questions",style:{width:"100%",display:"flex",gap:"10px",flexDirection:"column"},children:s.questions.map(b=>{var _e;const C=s.static,T=(ee,Q)=>Q.find(W=>{var X;if((X=W.questionIds)!=null&&X.length)return W.questionIds.find(ue=>ee===ue)}),k=(ee,Q)=>Q.find(W=>!W.questionIds&&W.answerType===ee),x=C?T(String(b.id),i.itemTypes)||k(b.answerType,i.itemTypes):i.itemTypes.find(ee=>ee.answerType===b.answerType);if(!x){const ee=new dn({errorCode:Nn.DECODING_FAILED,message:"The question template has not been found"});u(ee);return}const P=x==null?void 0:x.displayType,me=b.id in y&&((_e=y[b.id])==null?void 0:_e.types);return c(je,{children:[c(fd,{backgroundColor:x==null?void 0:x.backgroundColor,cornerRadius:x==null?void 0:x.cornerRadius,isError:!!me,isRequired:b.required,validationBorderColor:x==null?void 0:x.validationBorderColor,validationBorderWidth:x==null?void 0:x.validationBorderWidth,children:[P===Rr.TEXT_EXPANDABLE&&c(md,{layout:x,dataSourceQuestion:b,register:f}),P===Rr.TEXT_SINGLE_LINE&&c(pd,{layout:x,dataSourceQuestion:b,register:f}),P===Rr.SELECTOR_OPTIONS&&c(cd,{layout:x,dataSourceQuestion:b,watch:d,register:f}),P===Rr.SELECTOR_BUTTONS&&c(dd,{layout:x,dataSourceQuestion:b,watch:d,register:f}),P===Rr.SELECTOR_DROPDOWN&&c(od,{control:m,layout:x,dataSourceQuestion:b,parentElementRef:_}),P===Rr.MULTI_SELECTOR_DROPDOWN&&c(ad,{control:m,layout:x,dataSourceQuestion:b,parentElementRef:_})]}),me&&c(hd,{validationErrorsTypes:me,title:x.validationMessage})]},b.id)})})]}),!!(r!=null&&r.length)&&c("div",{style:{display:"flex",width:"100%",flexGrow:0,flexShrink:0,justifyContent:"center",alignItems:"flex-end",padding:"2px"},children:r.map((b,C)=>c(os,O({dataTestId:"question-button"},b),C))})]})})},gd={display:"none"},vd={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",backgroundColor:"#7e57c5",cursor:"pointer"},wd={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},yd=({header:t,footer:e,buttons:r,backgroundColor:n,selectionLimit:i})=>{var _,f;const{perform:s}=dr(),o=ot(null),a=typeof i=="number"&&(i===0||i>1),u=l=>L(null,null,function*(){var v;const y=Array.from((v=l.currentTarget.files)!=null?v:[]);if(y.length)try{const m=(yield Promise.allSettled(y.map(S=>L(null,null,function*(){return{content:yield wa(S),metadata:{name:S.name,type:S.type,size:S.size,lastModified:S.lastModified}}})))).filter(S=>S.status==="fulfilled").map(S=>S.value);s({cancel:!1,permissionDenied:!1,files:m})}catch(d){console.error("Error: ",d)}}),h=()=>{var l;(l=o.current)==null||l.showPicker()};return c(Xt,{header:t,footer:e,backgroundColor:n,children:c(je,{children:c("div",{style:G(O({},wd),{justifyContent:"center"}),children:[c("input",G(O({style:gd,ref:o,type:"file",accept:"image/*"},a?{multiple:!0}:{}),{onInput:u})),c("button",{style:vd,onClick:h,children:c(Fe,{imageId:(f=(_=r==null?void 0:r[0])==null?void 0:_.image)==null?void 0:f.imageId})})]})})})},bd={display:"none"},Cd={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",background:"#7e57c5",cursor:"pointer"},Sd={position:"relative",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Ed=({header:t,footer:e,backgroundColor:r,buttons:n,selectionLimit:i})=>{var _,f;const{perform:s}=dr(),o=ot(null),a=typeof i=="number"&&(i===0||i>1),u=l=>L(null,null,function*(){var v;const y=Array.from((v=l.currentTarget.files)!=null?v:[]);if(y.length)try{const m=(yield Promise.allSettled(y.map(S=>L(null,null,function*(){return{content:yield wa(S),metadata:{name:S.name,type:S.type,size:S.size,lastModified:S.lastModified}}})))).filter(S=>S.status==="fulfilled").map(S=>S.value);s({cancel:!1,permissionDenied:!1,files:m})}catch(d){console.error("Error: ",d)}}),h=()=>L(null,null,function*(){var l;(l=o.current)==null||l.showPicker()});return st(()=>{L(null,null,function*(){if(Yt.isDesktop)return;const l=yield Yc();(l==="denied"||l==="error")&&s({cancel:!1,permissionDenied:!0,files:[]})})},[]),c(Xt,{header:t,footer:e,backgroundColor:r,children:c(je,{children:c("div",{style:G(O({},Sd),{justifyContent:"center"}),children:[c("input",G(O({style:bd,ref:o,type:"file",accept:"image/*",capture:"user"},a?{multiple:!0}:{}),{onInput:u})),c("button",{style:Cd,onClick:h,children:c(Fe,{imageId:(f=(_=n==null?void 0:n[0])==null?void 0:_.image)==null?void 0:f.imageId})})]})})})};function Id(){const t=ot(null),[e,r]=Le(!1);return{ref:t,isPopoverOpen:e,openPopover:()=>{var s;(s=t.current)==null||s.showPopover(),r(!0)},closePopover:()=>{var s;(s=t.current)==null||s.hidePopover(),r(!1)}}}const Ya=()=>L(null,null,function*(){var t;try{const e=yield navigator.permissions.query({name:"geolocation"});return(t=e==null?void 0:e.state)!=null?t:"unknown"}catch(e){return"unknown"}}),Od=()=>L(null,null,function*(){try{return yield navigator.permissions.query({name:"geolocation"})}catch(t){return null}}),gs=t=>L(null,null,function*(){return new Promise(e=>{if(!navigator.geolocation)return e({location:{lat:null,lon:null,error:"Geolocation is not supported"}});navigator.geolocation.getCurrentPosition(r=>e({location:{lat:r.coords.latitude,lon:r.coords.longitude,error:null}}),r=>{const n=r!=null&&r.message?` Error message: ${r.message}`:"";e({location:{lat:null,lon:null,error:`Failed to get geolocation data via navigator.${n}`}})},t)})}),Td={height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},Rd={flex:"1 1 100%",display:"flex",justifyContent:"flex-start",alignItems:"center",alignContent:"center",flexDirection:"column",gap:"10px",height:"100%",width:"100%",overflow:"auto",position:"relative"},Ad={position:"fixed",inset:0,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",background:"rgba(0,0,0,0.2)",zIndex:1e3,pointerEvents:"auto",cursor:"default"},xd={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:1.61},Nd={padding:"24px",border:"1px solid rgba(0, 0, 0, 0.06)",width:"min(550px, calc(100vw - 32px))",height:"min(250px, calc(100dvh - 32px))",gridTemplateRows:"auto 1fr"},Xa={display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",marginBottom:"30px"},kd={padding:0,border:"none",background:"transparent",cursor:"pointer"},Dd=({title:t,header:e,footer:r,image:n,description:i,buttons:s,backgroundColor:o,popup:a})=>{var m,S,b;const{perform:u}=dr(),{setIsProcessingCallback:h}=zc(),{ref:_,isPopoverOpen:f,openPopover:l,closePopover:y}=Id(),v={enableHighAccuracy:!0,timeout:15e3,maximumAge:6e4};Zt(()=>{h==null||h(!0)},[]),st(()=>{let C=!0;return L(null,null,function*(){if((yield Ya())!=="granted"){h==null||h(!1);return}const k=yield gs(v);C&&u(k)}),()=>{C=!1}},[]),st(()=>{let C=!0,T=null;return L(null,null,function*(){const k=yield Od();k&&(T=k,k.onchange=()=>L(null,null,function*(){if(k.state!=="granted")return;h==null||h(!0);const x=yield gs(v);C&&u(x)}))}),()=>{C=!1,T&&(T.onchange=null)}},[]);const d=C=>L(null,null,function*(){C.preventDefault();const T=yield Ya();if(T==="denied"){l();return}T==="prompt"&&(yield gs())});return c(Xt,{header:e,footer:r,backgroundColor:o,children:[c("div",{style:Td,children:[c("div",{style:Rd,children:[n&&c("div",{style:xd,children:c(Fe,O({},n))}),t&&c("div",{style:{marginBottom:20,lineHeight:"39.2px",width:"100%"},children:c(xe,O({},t))}),i&&c("div",{style:{lineHeight:"28px",fontWeight:"400",width:"100%"},children:c(kn,O({},i))})]}),!!(s!=null&&s.length)&&c("div",{style:{display:"flex",flexDirection:"column"},children:s.map((C,T)=>c("div",{style:{padding:"5px"},children:c(os,O(O({dataTestId:"question-button"},C),C.type==="FORM"?{onClick:d}:{}))},T))})]}),c("div",{ref:_,popover:"manual",role:"dialog","aria-modal":"true",style:G(O({},Nd),{borderRadius:a.cornerRadius}),children:[c("div",{style:Xa,children:[c("strong",{children:(m=a.title)==null?void 0:m.text}),c("button",{style:kd,onClick:y,"aria-label":"Close",children:c(Fe,{imageId:(S=a.closeButton.image)==null?void 0:S.imageId})})]}),c("div",{style:Xa,children:c("span",{children:(b=a.message)==null?void 0:b.text})})]}),f&&c("div",{style:Ad,onPointerDown:C=>{C.preventDefault(),C.stopPropagation(),y()}})]})},Ja=t=>{const{templateId:e,templateLayout:r,dataSource:n,properties:i}=t,{perform:s}=dr();if(!e||!r)return c(Sa,{});const o=i!=null&&i.length?JSON.stringify(i):"default-key";if(e===dt.STATUS)return c(Ru,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,image:r==null?void 0:r.image,description:r==null?void 0:r.description,title:r==null?void 0:r.title,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.INFO)return c(Nu,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,image:r==null?void 0:r.image,title:r==null?void 0:r.title,description:r==null?void 0:r.description,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.GEOLOCATION)return c(Dd,{header:r.header,footer:r.footer,image:r.image,title:r.title,description:r.description,buttons:r.buttons,backgroundColor:r.backgroundColor,popup:r.popup});if(e===dt.PROGRESS)return c(Sa,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,progressView:r==null?void 0:r.progressView,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.INFO_DETAILS)return c(Uu,{header:r==null?void 0:r.header,title:r==null?void 0:r.title,details:r==null?void 0:r.details,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.CAMERA)return c(Ed,{header:r==null?void 0:r.header,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:t.backgroundColor,selectionLimit:t.selectionLimit});if(e===dt.GALLERY)return c(yd,{header:r==null?void 0:r.header,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:t.backgroundColor,selectionLimit:t.selectionLimit});if(n&&(n!=null&&n.questions.length)&&e===dt.QUESTIONS)return c(_d,{dataSource:n,properties:i,questions:r.questions,header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,title:r==null?void 0:r.title,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor},o);if(e===dt.QUESTIONS&&!n){const u=new dn({errorCode:Nn.DECODING_FAILED,message:"No data for questions"});return s(u),null}const a=new dn({errorCode:Nn.DECODING_FAILED,message:"Unsupported step template"});return s(a),null};let vs=!1;const Qa=({children:t})=>c("div",{part:"gui-idv",id:"gui-idv-web-c",style:{backgroundColor:"white",height:"100%",width:"100%"},children:t}),Md=({isProcessing:t,moduleProps:e,perform:r})=>{const{templateId:n,templateLayout:i,dataSource:s,properties:o}=e,a=u=>{r&&r(u)};return n===dt.QUESTIONS?c(_a,{perform:a,children:c(Qa,{children:c(Ja,{properties:o,dataSource:s,templateId:n,templateLayout:i})})}):c(_a,{perform:a,setIsProcessingCallback:t,children:c(Qa,{children:c(Ja,O(O({templateId:n,templateLayout:i},e.backgroundColor?{backgroundColor:e.backgroundColor}:{}),typeof e.selectionLimit=="number"?{selectionLimit:e.selectionLimit}:{}))})})},fn=class fn extends pa{constructor(){super(),this._mounted=!1,this.props=null}setProps(e){this.props={idvEventListener:e.idvEventListener,moduleProps:e.moduleProps,isProcessing:e.isProcessing,perform:e.perform},this.render()}connectedCallback(){this.render(),this._mounted=!0}render(){if(!this.props)return"";if(this.shadowRoot){const e=document.createElement("style");e.id="idv-gui-styles",e.textContent=`
92
92
  *, *::before, *::after {
93
93
  box-sizing: border-box;
94
94
  }
@@ -106,21 +106,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
106
106
  width: 100%;
107
107
  height: 100%;
108
108
  }
109
- `,this.shadowRoot.querySelector("#idv-gui-styles")||this.shadowRoot.appendChild(e)}Cr(u(bu,{moduleProps:this.props.moduleProps,perform:this.props.perform,idvEventListener:this.props.idvEventListener}),this.attachShadow({mode:"open"}))}disconnectedCallback(){setTimeout(()=>{this._mounted&&(this._mounted=!1)})}static isReady(){return ms}static initialize(e){ms=!0}static deinitialize(){ms=!1}};un.displayName=xn,un.getSupportedTemplates=()=>Object.values(yt),un.getIdentifier=()=>xn;let Un=un;fa(xn,Un);const Cu=(t,e)=>({_isInitialized:!1,_initializationInProgress:!1,_isConnectedToPlatform:!1,_sessionIdFromUrl:null,_ttl:86400,_prepareDataForWorkflow:n=>{e().setWorkflowId(n.workflow.id),e().setWorkflow(n.workflow),e().setLayout(n.workflow.client.layout),e().setProcessingTemplate(n.workflow.client.steps),e().setSessionProperties(n.properties)},_checkAndSetApiTokenToLs:n=>{const i=e().startConfig;if(!("apiKey"in i)||!i.apiKey)return;const s=e().workflowId,o=e().apiKeyAuthTokenCollection;"authToken"in o&&"apiKey"in o&&Ir.setAuthTokenToLs(o.authToken,o.apiKey,n,s,o.tokenExpiredIn)},_runWasmService:()=>$(null,null,function*(){return(yield aa(()=>$(null,null,function*(){var a;const o=(a=e().wasmService)==null?void 0:a.isServiceRunning();return o||null}),()=>null))?{}:{error:new je({errorCode:Fe.INTERNAL_ISSUE,message:"Wasm service is not running"})}}),_checkIsSessionDataValid:n=>{if("httpCode"in n){const i="what"in n&&typeof n.what=="string"&&n.what.length?n.what:null,s=new lr(O({errorCode:qt.HTTP_ISSUE},i?{message:i}:{}));return{error:new je({errorCode:Fe.START_SESSION_FAILED,underlyingBaseError:s})}}if("id"in n&&"currentStep"in n)return n;{const i=new lr({errorCode:qt.DECODING_FAILED});return{error:new je({errorCode:Fe.START_SESSION_FAILED,underlyingBaseError:i})}}},_runSocketConnection:n=>$(null,null,function*(){const{host:i,isSecure:s,port:o}=e().startConfig;if(i&&n&&(yield cr.connect({host:i,isSecure:s,port:o,token:n})),!i||!n||!cr.isConnected()){const a=new lr({errorCode:qt.CONNECTION_ISSUE,message:"WebSocket connection issue"});return{error:new je({errorCode:Fe.START_SESSION_FAILED,underlyingBaseError:a})}}return{}}),_continueSession:(n,i)=>$(null,null,function*(){var y;const s=e().startConfig,o="apiKey"in s&&typeof s.apiKey=="string",a=e().workflowId,c=i?yr.DID_CONTINUE_REMOTE_SESSION:yr.DID_START_RESTORE_SESSION;let h;if(i)h=i;else if(o){if(!e().sessionRestoreMode)return{};const w=s.apiKey,d=Ir.getAuthTokenLs(),m=d&&((y=d[w])==null?void 0:y.sessionId);if(!m)return{};m&&(h=m)}else{if(!e().sessionRestoreMode)return{};const w=e().getCurrentSessionDataLs();if(!w)return{};const d=w.sessionId,m=w.workflowId;if(!d||m!==a)return{};h=d}const _=yield e().wasmService.continueSession(h,n),f=e()._checkIsSessionDataValid(_.data);if(!la(f))return{error:f.error};e()._prepareDataForWorkflow(f);const l=f.currentStep;return e().setCurrentStepId(l),o?e()._checkAndSetApiTokenToLs(f.id):e().setCurrentSessionDataLsAndStore({sessionId:f.id,workflowId:a}),e().setNextStep(f.workflow,f.properties,l),e().listener({eventType:jr.MESSAGE,message:c,module:"IDV"}),f}),initialize(n){return $(this,null,function*(){if(e()._isInitialized)return console.warn("Idv:: Already initialized"),{};if(e()._initializationInProgress)return new Sn({errorCode:zr.INITIALIZATION_IN_PROGRESS});t({_initializationInProgress:!0}),yield e().setAndInitWasmService(),t({modulesConfig:n.modulesConfig||{}});let i=[Un];if(Array.isArray(n==null?void 0:n.includedModules)){const o=n.includedModules.filter(a=>typeof a=="function"&&a.displayName&&!i.some(c=>c.displayName===a.displayName));i=[...i,...o]}const s=yield e().loadModules(i);return s.error?{error:s.error}:(t({_initializationInProgress:!1,_isInitialized:!0}),{})})},configureByApiKey(n){return $(this,null,function*(){if(!e()._isInitialized)return{error:new Be({errorCode:Le.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Be({errorCode:Le.SCENARIO_IN_PROGRESS})};const s=["apiKey","baseUrl"].filter(d=>!(n!=null&&n[d]));if(s.length>0)return{error:new Be({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${s.join(", ")}`})};const o=Qi(n.baseUrl);if(!o)return{error:new Be({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n.baseUrl}`})};typeof n.ttl=="number"&&!Number.isNaN(n.ttl)&&t({_ttl:n.ttl});const a=e()._ttl,c={host:o.host,isSecure:o.isSecure,port:o.port,apiKey:n.apiKey,deviceDescriptor:{ttl:a}},h=Ir.getAuthTokenLs(),_=h&&h[n.apiKey]&&h[n.apiKey].authToken?h[n.apiKey]:null,f=_&&_.authToken;f&&(c.authToken=f);const l=yield e().connectByApiKey(c);if(l.error)return{error:new Be({errorCode:Le.CONNECTION_ISSUE,underlyingBaseError:l.error})};f&&l.authToken!==f&&Ir.removeAuthTokenLs(n.apiKey);const y=_&&l.authToken===_.authToken&&_,w=y?y.tokenExpiredIn:Date.now()+a*1e3;return e().setApiKeyAuthTokenCollection(n.apiKey,l.authToken,w),t({_isConnectedToPlatform:!0}),e().setStartConfig({host:o.host,isSecure:o.isSecure,apiKey:n.apiKey,port:o.port}),l})},configureWithUrl(n){return $(this,null,function*(){if(!e()._isInitialized)return{error:new Be({errorCode:Le.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Be({errorCode:Le.SCENARIO_IN_PROGRESS})};const i=Vc(n);i&&(e().removeCurrentSessionDataLsAndStore(),t({_sessionIdFromUrl:i}));const s=yield e().connectByUrl(n);if(s.error)return{error:new Be({errorCode:Le.CONNECTION_ISSUE,underlyingBaseError:s.error})};t({_isConnectedToPlatform:!0});try{const o=Qi(n);if(!o)return{error:new Be({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n}`})};e().setStartConfig({host:o.host,isSecure:o.isSecure,port:o.port})}catch(o){console.log("Invalid urlWithToken")}return s.workflows})},configureByUserPass(n){return $(this,null,function*(){if(!e()._isInitialized)return{error:new Be({errorCode:Le.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Be({errorCode:Le.SCENARIO_IN_PROGRESS})};const s=["password","userName","baseUrl"].filter(h=>!(n!=null&&n[h]));if(s.length>0)return{error:new Be({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${s.join(", ")}`})};const o=Qi(n.baseUrl);if(!o)return{error:new Be({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n.baseUrl}`})};const a={host:o.host,isSecure:o.isSecure,password:n.password,port:o.port,userName:n.userName},c=yield e().connectByUserPass(a);return c.error?{error:new Be({errorCode:Le.CONNECTION_ISSUE,underlyingBaseError:c.error})}:(t({_isConnectedToPlatform:!0}),e().setStartConfig({host:o.host,isSecure:o.isSecure,port:o.port}),{workflows:[]})})},getWorkflows(){return $(this,arguments,function*(n={limit:100,skip:0}){if(!e()._isInitialized)return{error:new At({errorCode:mt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new At({errorCode:mt.CONNECTION_ISSUE})};const i=yield e().wasmService.listWorkflows(n);let s=null;if(i.code===4&&(s=at.HTTP_ISSUE),i.code!==0&&i.code!==4&&(s=at.PROVIDER_ERROR),i.code===0&&!i.data.items&&(s=at.DECODING_FAILED),s!==null){const o=new On({errorCode:s});return{error:new At({errorCode:mt.WORKFLOW_ISSUE,message:"No workflow list",underlyingBaseError:o})}}return{results:i.data.items}})},prepareWorkflowAndPrepareUi(n){return $(this,null,function*(){var w;if(!e()._isInitialized)return{error:new At({errorCode:mt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new At({errorCode:mt.CONNECTION_ISSUE})};if(e().currentScreenConfig)return{error:new At({errorCode:mt.SCENARIO_IN_PROGRESS})};const i=yield e().wasmService.getWorkflow(n),s=Zi(i.data),o=((w=s.client)==null?void 0:w.steps)&&s.client.steps.some(d=>d.templateId===bi);let a=null;if(i.code===4&&(a=at.HTTP_ISSUE),i.code!==0&&i.code!==4&&(a=at.PROVIDER_ERROR),i.code===0&&!i.data.id&&(a=at.DECODING_FAILED),i.data.id&&s===null&&(a=at.DECODING_FAILED),o||(a=at.DECODING_FAILED),a!==null){const d=new On({errorCode:a});return{error:new At({errorCode:mt.INTERNAL_ISSUE,underlyingBaseError:d})}}const c=e().externalModules,h=s.steps,{isAllTemplatesSupported:_,unsupportedSteps:f}=kc(c,h);_||console.log("IDV:: Warning. Unsupported steps found: ",f);const l=e().workflowId;l&&n!==l&&c.forEach(d=>{d.component.deinitialize()});const y=e().modulesConfig;return c.forEach(d=>{d.component.isReady()||d.component.initialize(y)}),e().setLayout(s.client.layout),e().setProcessingTemplate(s.client.steps),e().setWorkflowId(n),{workflow:s}})},startNewSession(n,i,s){return $(this,null,function*(){if(!e()._isInitialized)return{error:new je({errorCode:Fe.INITIALIZATION_REQUIRED})};const o=e().workflowId;if(!o)return{error:new je({errorCode:Fe.PREPARED_REQUIRED})};if(e().currentScreenConfig)return{error:new je({errorCode:Fe.ALREADY_STARTED})};const a=C=>{cr&&cr.close(),n(C)};e().setWorkflowSessionCompletion(a);const c=e().startConfig,h="apiKey"in c&&typeof c.apiKey=="string",_=e().apiKeyAuthTokenCollection;if(h&&"tokenExpiredIn"in _){const C=_.tokenExpiredIn&&typeof _.tokenExpiredIn=="number"?_.tokenExpiredIn:0;if(Date.now()>C){const M=yield e().connectByApiKey({apiKey:c.apiKey,host:c.host,deviceDescriptor:{ttl:e()._ttl}});if(Ir.removeAuthTokenLs(c.apiKey),M.error)return{error:new lr({errorCode:qt.CONNECTION_ISSUE,underlyingBaseError:M.error})};if(M&&"authToken"in M){const x=Date.now()+e()._ttl*1e3;e().setApiKeyAuthTokenCollection(c.apiKey,M.authToken,x)}}}e().setIsProcessing(!0);const f=yield e()._runWasmService();if(f.error)return{error:f.error};const y=(yield e().wasmService.getServiceToken()).data;if(!y||typeof y!="string"){const C=new lr({errorCode:qt.TOKEN_ERROR});return{error:new je({errorCode:Fe.START_SESSION_FAILED,underlyingBaseError:C})}}e().setServiceSessionToken(y);const w=yield e()._runSocketConnection(y);if(w.error)return{error:w.error};const d=e()._sessionIdFromUrl,m=yield e()._continueSession(i,d);if("sessionId"in m)return{results:m};if("error"in m)return{error:m.error};if("id"in m)return{};const S=yield e().wasmService.startSession(o,i,s),b=e()._checkIsSessionDataValid(S.data);return la(b)?(e()._prepareDataForWorkflow(b),h?e()._checkAndSetApiTokenToLs(b.id):e().setCurrentSessionDataLsAndStore({sessionId:b.id,workflowId:o}),e().setIsProcessing(!1),e().setCurrentStepId(b.currentStep),e().listener({eventType:jr.MESSAGE,message:yr.DID_START_SESSION,module:"IDV"}),{}):{error:b.error}})},playWorkflow(){const n=e().currentStepId;if(n)e().onChangeScreen(n);else{const i=new je({errorCode:Fe.UNKNOWN_STEP});e().workflowSessionCompletion({error:i})}},deinitialize(){return $(this,null,function*(){if(!e()._isInitialized)return{error:new In({errorCode:Gr.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new In({errorCode:Gr.SCENARIO_IN_PROGRESS})};const n=yield e().deinitializationIdv();return e().resetProps(),t({_isInitialized:!1}),n})}}),kr=wr.create("session_log");class Su{constructor(e){this._worker=null,this._initialized=!1,this._connectedToIdv=!1,this._serviceRunning=!1,this._setErrorScreen=null,e&&(this._setErrorScreen=e)}init(){return $(this,null,function*(){try{const n=yield(yield fetch("https://wasm-development.regulaforensics.com/idv/nightly/3.2/a3d8bb5-bcc659c9//PlatformAdaptor.worker.js")).blob(),i=URL.createObjectURL(n);this._worker=new Worker(i)}catch(r){console.log(`Creating worker error: ${JSON.stringify(r)}`)}return this._worker?(this._worker.postMessage({target:"gl",op:"setPrefetched",preMain:!0}),yield this.sendMessage({target:"worker-init",URL:document.URL,currentScriptUrl:"https://wasm-development.regulaforensics.com/idv/nightly/3.2/a3d8bb5-bcc659c9/",preMain:!0})):void 0})}connectByUserPass(e){return $(this,null,function*(){var n,i;const r=yield this.sendMessage({target:"custom",method:"connect_idv",connectionParams:{deviceDescriptor:G(O({},es()),{serial:"",macAddress:"",heartbeatCadence:2}),host:e.host,httpRetryCount:0,httpTimeoutMs:0,isSecure:(n=e.isSecure)!=null?n:!0,password:e.password,port:(i=e.port)!=null?i:0,schema:"basic",userName:e.userName},preMain:!0});return r.code===0&&(this._serviceRunning=!0,this._connectedToIdv=!0),r})}connectByApiKey(e){return $(this,null,function*(){var n,i;const r=yield this.sendMessage({target:"custom",method:"connect_by_api_key",connectByApiKeyParams:{isSecure:(n=e.isSecure)!=null?n:!0,host:e.host,port:(i=e.port)!=null?i:0,httpRetryCount:0,httpTimeoutMs:0,deviceDescriptor:O(G(O({},es()),{serial:"",macAddress:"",heartbeatCadence:100}),e.deviceDescriptor),apiKey:e.apiKey,authToken:e.authToken},preMain:!0});return r.code===0&&(this._serviceRunning=!0,this._connectedToIdv=!0),r})}connectByUrl(e){return $(this,null,function*(){const r=yield this.sendMessage({target:"custom",method:"connect_by_url",connectByUrlParams:{deviceDescriptor:G(O({},es()),{serial:"",macAddress:"00:00:00:00:00:00",heartbeatCadence:2}),httpRetryCount:5,httpTimeoutMs:1e3,url:e},preMain:!0});return r.code===0&&(this._serviceRunning=!0,this._connectedToIdv=!0),r})}startSession(e,r,n){return $(this,null,function*(){const i={workflowId:e,locale:r};Mc(n)&&(i.metadata=n);const s=yield this.sendMessage({target:"custom",method:"start_session",sessionParams:i,preMain:!0});return s.code===0&&(wr.clearLogs(),kr(`Command: 5. Result code: ${s.code}. Session id: ${s.data.id}. Cur step: ${s.data.currentStep}.`)),s})}continueSession(e,r){return $(this,null,function*(){const n={sessionId:e,locale:r},i=yield this.sendMessage({continueParams:n,target:"custom",method:"continue_session",preMain:!0});return i.code===0&&(wr.clearLogs(),kr(`Command: 10. Result code: ${i.code}. Session id: ${i.data.id}. Cur step: ${i.data.currentStep}.`)),i})}listWorkflows(){return $(this,arguments,function*(e={limit:0,skip:0}){return yield this.sendMessage({workflowsParams:e,target:"custom",method:"list_workflows",preMain:!0})})}getHealth(){return $(this,null,function*(){return yield this.sendMessage({target:"custom",method:"get_health",preMain:!0})})}getServiceToken(){return $(this,null,function*(){return yield this.sendMessage({target:"custom",method:"get_service_token",preMain:!0})})}abandonSession(){return $(this,null,function*(){return yield this.sendMessage({target:"custom",method:"abandon_session",preMain:!0})})}getWorkflow(e){return $(this,null,function*(){return yield this.sendMessage({workflowIdParams:{workflowId:e},target:"custom",method:"get_workflow",preMain:!0})})}pushData(e,r){return $(this,null,function*(){kr(`Command: 9. Request payload: ${JSON.stringify(r)}`);const n=yield this.sendMessage({target:"custom",method:"push_data",pushDataParams:{data:r,stage:0,step:e},preMain:!0});return kr(`Command: 9. Result code: ${n.code}`),n})}getSessionState(){return $(this,null,function*(){const e=yield this.sendMessage({target:"custom",method:"get_session_state",preMain:!0});return kr(`Command: 7. Result code: ${e.code}. Cur step: ${e.data.currentStep}. Proc files: ${e.data.isProcessingFiles}`),e})}waitForSessionUpdate(){return $(this,null,function*(){const e=yield this.sendMessage({waitingSessionParams:{periodMs:1e3},target:"custom",method:"wait_for_session_update",preMain:!0});return kr(`Command: 8. Result code: ${e.code}`),e})}pushSessionLogs(e){return $(this,null,function*(){return yield this.sendMessage({target:"custom",method:"push_session_logs",pushSessionLogsParams:e,preMain:!0})})}disconnect(){return $(this,null,function*(){const e=yield this.sendMessage({target:"custom",method:"disconnect",preMain:!0});return this._connectedToIdv=!1,this._serviceRunning=!1,e})}sendMessage(e){return $(this,null,function*(){return new Promise((r,n)=>{if(!this._worker)return n();this._worker.onmessage=i=>{const{target:s}=i.data;if(s!=="stdout"){if(s==="custom"){const{method:o,data:a}=i.data;o==="onRuntimeInitialized"&&(this._initialized=!0),r(a)}if(s==="stderr"){const{content:o}=i.data;this._setErrorScreen&&this._setErrorScreen(o)}}},this._worker.postMessage(e)})})}isServiceRunning(){return this._serviceRunning}isServiceConnected(){return this._connectedToIdv}terminateWorker(){var e;this.isServiceRunning()&&((e=this._worker)==null||e.terminate(),this._serviceRunning=!1,this._initialized=!1,this._connectedToIdv=!1)}shutdown(){return $(this,null,function*(){if(!this._worker)return{code:0};if(!this._connectedToIdv)return this.terminateWorker(),{code:0};const e=yield this.disconnect();return this.terminateWorker(),e})}}const Eu=(t,e)=>({wasmService:null,isProcessing:!1,isFinalWaitingUi:!1,setAndInitWasmService:()=>$(null,null,function*(){const n=new Su;yield n.init(),t({wasmService:n})}),setFinalWaitingUi:n=>{t({isFinalWaitingUi:n})},connectByApiKey(n){return $(this,null,function*(){const s=yield e().wasmService.connectByApiKey(n);let o=null;if(s.code===4&&(o=Ot.HTTP_ISSUE),s.code!==0&&s.code!==4&&(o=Ot.PROVIDER_ERROR),o!==null){const a=new rn({errorCode:o});return{error:new En({errorCode:_n.CONNECTION_ISSUE,underlyingBaseError:a})}}else return s.data})},connectByUserPass(n){return $(this,null,function*(){const i=yield e().wasmService.connectByUserPass(n);let s=null;return i.code===4&&(s=Ot.HTTP_ISSUE),i.code!==0&&i.code!==4&&(s=Ot.PROVIDER_ERROR),s!==null?{error:new rn({errorCode:s})}:{}})},connectByUrl(n){return $(this,null,function*(){const s=yield e().wasmService.connectByUrl(n);let o=null;if(s.code===4&&(o=Ot.HTTP_ISSUE),s.code!==0&&s.code!==4&&(o=Ot.PROVIDER_ERROR),o!==null){const a=new rn({errorCode:o}),c=new En({errorCode:_n.CONNECTION_ISSUE,underlyingBaseError:a});return{workflows:[],error:c}}else return{workflows:s.data}})},workflowSessionCompletion:()=>{},setWorkflowSessionCompletion:n=>{const i=s=>{var h;const o=(h=e().currentSessionData)==null?void 0:h.sessionId,a=G(O({},s.results),{sessionId:o}),c=O({results:a},s.error&&{error:s.error});if(e().removeCurrentSessionDataLsAndStore(),n(c),s.error){const f=wr.getLogs().join("; ");e().wasmService.pushSessionLogs({sessionId:o,body:{log:f,errorCode:s.error.shortChain,deviceInfo:{platform:"Web"}}})}wr.clearLogs()};t(()=>({workflowSessionCompletion:i}))},loadModules:n=>$(null,null,function*(){var i;try{const s=yield Iu(n);return t(()=>({externalModules:s})),{}}catch(s){return(i=e().wasmService)==null||i.shutdown(),e().resetWasmService(),e().resetProps(),{error:new Sn({errorCode:zr.MODULES_INSTANTIATION_FAILURE})}}}),setProcessingTemplate:n=>{const i=Zi(n.find(s=>s.templateId===bi));i.templateLayout=oa(i.templateLayout,e().layout),t({processingTransformedTemplate:i})},setIsProcessing:n=>{t({isProcessing:n})},_pushStep:(n,i)=>$(null,null,function*(){let s=null;return yield aa(()=>$(null,null,function*(){const c=yield e().wasmService.pushData(n,i);let h=null;if(c.code===4&&(h=it.HTTP_ISSUE),c.code!==0&&c.code!==4&&(h=it.PROVIDER_ERROR),h!==null){const _=new nn({errorCode:it.HTTP_ISSUE});s=new je({errorCode:Fe.INTERNAL_ISSUE,message:"Error from external module",underlyingBaseError:_})}return c.code===0?(s=null,c):null}),()=>null),s?{error:s}:{}}),_findStepById:n=>{const i=e().workflow;if(!i||!n)return null;const s=i.steps.find(o=>o.id===n);return s!=null?s:null},_waitingForNextStep:()=>$(null,null,function*(){let n=null,i=null;const s=()=>$(null,null,function*(){var m,S,b,C;const a=yield e().wasmService.getSessionState(),c=(m=a.data)==null?void 0:m.currentStep,h=(S=a.data)==null?void 0:S.isProcessingFiles,_=(C=(b=a.data)==null?void 0:b.workflow)==null?void 0:C.steps,f=Nc(_,c),l=a.code===4,y=a.code!==0&&a.code!==4,w=a.code===0&&(!a.data.workflow||!a.data.currentStep);let d=null;if(_&&!f&&(d=it.NOT_DATA_TYPE),l&&(d=it.HTTP_ISSUE),y&&(d=it.PROVIDER_ERROR),h&&(d=it.IS_PROCESSING),w&&(d=it.DECODING_FAILED),d!==null){const A=new nn({errorCode:d});n=new je({errorCode:Fe.INTERNAL_ISSUE,underlyingBaseError:A})}return f&&!h&&!l&&!y&&!w?(n=null,a.data):null});return yield new Promise(a=>{let _=0,f;const l=y=>$(null,null,function*(){if(y){f=window.setTimeout(()=>{l(!1)},1e4);return}i=yield s(),_++,!i&&_<6?f=window.setTimeout(()=>{l(!1)},1e4):(cr.clearSubscriptions(),a())});if(cr.isConnected()){const y=w=>{JSON.parse(atob(JSON.parse(w).payload)).eventType==="SESSION_UPDATED"&&(clearTimeout(f),l(!1))};cr.onMessage(y)}l(!0)}),n?{error:n}:i?{sessionData:i}:(n=new nn({errorCode:it.DECODING_FAILED}),{error:new je({errorCode:Fe.INTERNAL_ISSUE,underlyingBaseError:n})})}),setFinalStepAndStopProcess:n=>{const i=n||e().currentStepId;if(!i)return;const s=e()._findStepById(i);s&&(e().workflowSessionCompletion({results:{finalStep:{id:s.id,name:s.name,final:s.final}}}),e().resetSession(),e().listener({eventType:jr.MESSAGE,message:yr.DID_END_SESSION,module:"IDV"}))},setNextStep:(n,i,s)=>{e().setWorkflow(n),e().setLayout(n.client.layout),e().setProcessingTemplate(n.client.steps),e().setSessionProperties(i);const o=e()._findStepById(s),a=c=>!!c&&Object.prototype.toString.call(c)==="[object Object]"&&c.templateId;if(o!=null&&o.final&&!a(o.client)){e().setFinalStepAndStopProcess(o.id);return}o!=null&&o.final&&a(o.client)&&e().setFinalWaitingUi(!0),e().onChangeScreen(s),e().setIsProcessing(!1)},pushStepWaitNextStepAndSet:n=>$(null,null,function*(){const i=e().currentStepId;if(!i)return;if(e().setIsProcessing(!0),e().isFinalWaitingUi){e().setFinalStepAndStopProcess();return}if(n.errorCode){const _=n,f=new je({errorCode:Fe.MODULES_ISSUE,message:"Error from external module",underlyingBaseError:_});e().workflowSessionCompletion({error:f}),e().resetSession();return}const s=yield e()._pushStep(i,n);if(s.error){e().workflowSessionCompletion({error:s.error}),e().resetSession();return}const o=yield e()._waitingForNextStep();if(o.error){e().workflowSessionCompletion({error:o.error}),e().resetSession();return}const a=o.sessionData.workflow,c=o.sessionData.currentStep,h=o.sessionData.properties;e().setNextStep(a,h,c)}),onChangeScreen:n=>{var c,h,_,f;if(!n)return t(()=>({currentScreenConfig:null}));const i=e().workflow,s=e().sessionProperties;let o=null;if(n===bi&&e().processingTransformedTemplate!==null){const l=e().processingTransformedTemplate;l&&(o={templateId:l.templateId,templateLayout:l.templateLayout,dataSource:null})}else{const l=e()._findStepById(n);if(typeof((c=l==null?void 0:l.client)==null?void 0:c.templateId)=="string"&&(o=G(O({},l==null?void 0:l.client),{templateId:l.client.templateId,dataSource:(h=l.dataSource)!=null?h:null,properties:s})),o&&(o.sessionId=(_=e().currentSessionData)==null?void 0:_.sessionId,o.serviceToken=e().serviceToken),o&&Pc((f=l==null?void 0:l.client)==null?void 0:f.templateLayout)){const y=oa(l.client.templateLayout,e().layout);y&&(o.templateLayout=y)}}const a=xc(e().externalModules,i.steps,n);if(o===null||!a){const l=new je({errorCode:Fe.UNKNOWN_STEP,message:"Unsupported step template"});e().workflowSessionCompletion({error:l}),t(()=>({currentScreenConfig:null})),e().resetSession();return}e().setCurrentStepId(n),t(()=>({currentScreenConfig:o}))},deinitializationIdv:()=>$(null,null,function*(){var i;const n=yield(i=e().wasmService)==null?void 0:i.shutdown();return e().resetWasmService(),e().externalModules.forEach(s=>{s.component.deinitialize&&s.component.isReady&&s.component.deinitialize()}),(n==null?void 0:n.code)===0?{}:{}}),resetSession:()=>t(()=>({isFinalWaitingUi:!1,isProcessing:!1,processingTransformedTemplate:null,currentStepId:null,layout:null,currentScreenConfig:null,workflowId:void 0,workflow:null,serviceToken:void 0})),resetWasmService:()=>t(()=>({wasmService:null}))});function Iu(t){return $(this,null,function*(){const e=[];for(const n of t)n&&e.push({id:n.getIdentifier(),supportedTemplates:n.getSupportedTemplates(),component:n});return e.filter(n=>n!==null)})}const Ge=mc((...t)=>O(O(O({},$c(...t)),Cu(...t)),Eu(...t))),Ou=t=>/^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t)&&t.length<=100,Xa=(t,e)=>{if(!Ou(t))throw new Error(`Invalid component name: ${t}`);const r=document.createElement(t);return r.style.width="100%",r.style.height="100%",r.setProps(e),r};class Tu{constructor(e){this.isPortrait=!1,this.isLandscape=!1,this.orientation="portrait",this._handleOrientationChange=()=>{const r=this._getOrientation();this.orientation!==r&&(this.orientation=r,this.isPortrait=this.orientation==="portrait",this.isLandscape=this.orientation==="landscape",this.host.requestUpdate())},(this.host=e).addController(this)}_getOrientation(){return window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait"}hostConnected(){typeof window!="undefined"&&(this._handleOrientationChange(),window.addEventListener("load",this._handleOrientationChange),window.addEventListener("resize",this._handleOrientationChange))}hostDisconnected(){typeof window!="undefined"&&(window.removeEventListener("load",this._handleOrientationChange),window.removeEventListener("resize",this._handleOrientationChange))}}var _s={exports:{}},Ja;function Ru(){return Ja||(Ja=1,(function(t){t.exports=(function(e){var r={};function n(i){if(r[i])return r[i].exports;var s=r[i]={i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=r,n.d=function(i,s,o){n.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:o})},n.n=function(i){var s=i&&i.__esModule?(function(){return i.default}):(function(){return i});return n.d(s,"a",s),s},n.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},n.p="",n(n.s=1)})([(function(e,r,n){var i={MOBILE:"mobile",TABLET:"tablet",SMART_TV:"smarttv",CONSOLE:"console",WEARABLE:"wearable",BROWSER:void 0},s={CHROME:"Chrome",FIREFOX:"Firefox",OPERA:"Opera",YANDEX:"Yandex",SAFARI:"Safari",INTERNET_EXPLORER:"Internet Explorer",EDGE:"Edge",CHROMIUM:"Chromium",IE:"IE",MOBILE_SAFARI:"Mobile Safari",EDGE_CHROMIUM:"Edge Chromium"},o={IOS:"iOS",ANDROID:"Android",WINDOWS_PHONE:"Windows Phone",WINDOWS:"Windows",MAC_OS:"Mac OS"},a={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1};e.exports={BROWSER_TYPES:s,DEVICE_TYPES:i,OS_TYPES:o,defaultData:a}}),(function(e,r,n){var i=n(2),s=n(0),o=s.BROWSER_TYPES,a=s.OS_TYPES,c=s.DEVICE_TYPES,h=n(4),_=h.checkType,f=h.broPayload,l=h.mobilePayload,y=h.wearPayload,w=h.consolePayload,d=h.stvPayload,m=h.getNavigatorInstance,S=h.isIOS13Check,b=new i,C=b.getBrowser(),A=b.getDevice(),M=b.getEngine(),x=b.getOS(),P=b.getUA(),me=o.CHROME,_e=o.CHROMIUM,ee=o.IE,Q=o.INTERNET_EXPLORER,W=o.OPERA,X=o.FIREFOX,de=o.SAFARI,ue=o.EDGE,we=o.YANDEX,ye=o.MOBILE_SAFARI,te=c.MOBILE,z=c.TABLET,U=c.SMART_TV,Z=c.BROWSER,re=c.WEARABLE,Ie=c.CONSOLE,ne=a.ANDROID,V=a.WINDOWS_PHONE,J=a.IOS,Ke=a.WINDOWS,Xe=a.MAC_OS,ft=function(){return A.type===te},nt=function(){return A.type===z},Ht=function(){switch(A.type){case te:case z:return!0;default:return!1}},ht=function(){return x.name===a.WINDOWS&&x.version==="10"?typeof P=="string"&&P.indexOf("Edg/")!==-1:!1},Yt=function(){return A.type===U},jt=function(){return A.type===Z},Ct=function(){return A.type===re},zt=function(){return A.type===Ie},Xt=function(){return x.name===ne},St=function(){return x.name===Ke},st=function(){return x.name===Xe},v=function(){return x.name===V},I=function(){return x.name===J},R=function(){return C.name===me},F=function(){return C.name===X},k=function(){return C.name===_e},D=function(){return C.name===ue},H=function(){return C.name===we},ie=function(){return C.name===de||C.name===ye},K=function(){return C.name===ye},ve=function(){return C.name===W},We=function(){return C.name===Q||C.name===ee},Y=function(){var pt=m(),Pr=pt&&pt.userAgent.toLowerCase();return typeof Pr=="string"?/electron/.test(Pr):!1},ae=function(){var pt=m();return pt&&(/iPad|iPhone|iPod/.test(pt.platform)||pt.platform==="MacIntel"&&pt.maxTouchPoints>1)&&!window.MSStream},j=function(){return S("iPad")},ge=function(){return S("iPhone")},qe=function(){return S("iPod")},ke=function(){return C.major},he=function(){return C.version},q=function(){return x.version?x.version:"none"},Je=function(){return x.name?x.name:"none"},Jt=function(){return C.name},fr=function(){return A.vendor?A.vendor:"none"},Ln=function(){return A.model?A.model:"none"},Fn=function(){return M.name},Vn=function(){return M.version},$n=function(){return P},Bn=function(){return A.type},Wn=Yt(),Hn=zt(),jn=Ct(),Qt=K()||j(),zn=k(),ot=Ht()||j(),Gn=ft(),Kn=nt()||j(),qn=jt(),Zn=Xt(),Yn=v(),Xn=I()||j(),Jn=R(),vs=F(),ws=ie(),ys=ve(),Mr=We(),Qn=q(),ei=Je(),ti=ke(),bs=he(),ri=Jt(),ni=fr(),ii=Ln(),Cs=Fn(),Ss=Vn(),Es=$n(),Is=D()||ht(),si=H(),Os=Bn(),Ts=ae(),Rs=j(),As=ge(),xs=qe(),Ns=Y(),ks=ht(),Ds=D(),Ms=St(),Ps=st(),Et=_(A.type);function Us(){var se=Et.isBrowser,pt=Et.isMobile,Pr=Et.isTablet,oi=Et.isSmartTV,ai=Et.isConsole,li=Et.isWearable;if(se)return f(se,C,M,x,P);if(oi)return d(oi,M,x,P);if(ai)return w(ai,M,x,P);if(pt||Pr)return l(Et,A,x,P);if(li)return y(li,M,x,P)}e.exports={deviceDetect:Us,isSmartTV:Wn,isConsole:Hn,isWearable:jn,isMobileSafari:Qt,isChromium:zn,isMobile:ot,isMobileOnly:Gn,isTablet:Kn,isBrowser:qn,isAndroid:Zn,isWinPhone:Yn,isIOS:Xn,isChrome:Jn,isFirefox:vs,isSafari:ws,isOpera:ys,isIE:Mr,osVersion:Qn,osName:ei,fullBrowserVersion:ti,browserVersion:bs,browserName:ri,mobileVendor:ni,mobileModel:ii,engineName:Cs,engineVersion:Ss,getUA:Es,isEdge:Is,isYandex:si,deviceType:Os,isIOS13:Ts,isIPad13:Rs,isIPhone13:As,isIPod13:xs,isElectron:Ns,isEdgeChromium:ks,isLegacyEdge:Ds,isWindows:Ms,isMacOs:Ps}}),(function(e,r,n){var i;/*!
109
+ `,this.shadowRoot.querySelector("#idv-gui-styles")||this.shadowRoot.appendChild(e)}Sr(c(Md,{moduleProps:this.props.moduleProps,perform:this.props.perform,idvEventListener:this.props.idvEventListener,isProcessing:this.props.isProcessing}),this.attachShadow({mode:"open"}))}disconnectedCallback(){setTimeout(()=>{this._mounted&&(this._mounted=!1)})}static isReady(){return vs}static initialize(e){vs=!0}static deinitialize(){vs=!1}};fn.displayName=xn,fn.getSupportedTemplates=()=>Object.values(dt),fn.getIdentifier=()=>xn;let Ln=fn;ma(xn,Ln);const Pd=(t,e)=>({_isInitialized:!1,_initializationInProgress:!1,_isConnectedToPlatform:!1,_sessionIdFromUrl:null,_ttl:86400,_prepareDataForWorkflow:n=>{e().setWorkflowId(n.workflow.id),e().setWorkflow(n.workflow),e().setLayout(n.workflow.client.layout),e().setProcessingTemplate(n.workflow.client.steps),e().setSessionProperties(n.properties)},_checkAndSetApiTokenToLs:n=>{const i=e().startConfig;if(!("apiKey"in i)||!i.apiKey)return;const s=e().workflowId,o=e().apiKeyAuthTokenCollection;"authToken"in o&&"apiKey"in o&&Or.setAuthTokenToLs(o.authToken,o.apiKey,n,s,o.tokenExpiredIn)},_runWasmService:()=>L(null,null,function*(){return(yield ua(()=>L(null,null,function*(){var a;const o=(a=e().wasmService)==null?void 0:a.isServiceRunning();return o||null}),()=>null))?{}:{error:new ze({errorCode:$e.INTERNAL_ISSUE,message:"Wasm service is not running"})}}),_checkIsSessionDataValid:n=>{if("httpCode"in n){const i="what"in n&&typeof n.what=="string"&&n.what.length?n.what:null,s=new cr(O({errorCode:qt.HTTP_ISSUE},i?{message:i}:{}));return{error:new ze({errorCode:$e.START_SESSION_FAILED,underlyingBaseError:s})}}if("id"in n&&"currentStep"in n)return n;{const i=new cr({errorCode:qt.DECODING_FAILED});return{error:new ze({errorCode:$e.START_SESSION_FAILED,underlyingBaseError:i})}}},_runSocketConnection:n=>L(null,null,function*(){const{host:i,isSecure:s,port:o}=e().startConfig;if(i&&n&&(yield ur.connect({host:i,isSecure:s,port:o,token:n})),!i||!n||!ur.isConnected()){const a=new cr({errorCode:qt.CONNECTION_ISSUE,message:"WebSocket connection issue"});return{error:new ze({errorCode:$e.START_SESSION_FAILED,underlyingBaseError:a})}}return{}}),_continueSession:(n,i)=>L(null,null,function*(){var y;const s=e().startConfig,o="apiKey"in s&&typeof s.apiKey=="string",a=e().workflowId,u=i?br.DID_CONTINUE_REMOTE_SESSION:br.DID_START_RESTORE_SESSION;let h;if(i)h=i;else if(o){if(!e().sessionRestoreMode)return{};const v=s.apiKey,d=Or.getAuthTokenLs(),m=d&&((y=d[v])==null?void 0:y.sessionId);if(!m)return{};m&&(h=m)}else{if(!e().sessionRestoreMode)return{};const v=e().getCurrentSessionDataLs();if(!v)return{};const d=v.sessionId,m=v.workflowId;if(!d||m!==a)return{};h=d}const _=yield e().wasmService.continueSession(h,n),f=e()._checkIsSessionDataValid(_.data);if(!da(f))return{error:f.error};e()._prepareDataForWorkflow(f);const l=f.currentStep;return e().setCurrentStepId(l),o?e()._checkAndSetApiTokenToLs(f.id):e().setCurrentSessionDataLsAndStore({sessionId:f.id,workflowId:a}),e().setNextStep(f.workflow,f.properties,l),e().listener({eventType:jr.MESSAGE,message:u,module:"IDV"}),f}),initialize(n){return L(this,null,function*(){if(e()._isInitialized)return console.warn("Idv:: Already initialized"),{};if(e()._initializationInProgress)return new Sn({errorCode:zr.INITIALIZATION_IN_PROGRESS});t({_initializationInProgress:!0}),yield e().setAndInitWasmService(),t({modulesConfig:n.modulesConfig||{}});let i=[Ln];if(Array.isArray(n==null?void 0:n.includedModules)){const o=n.includedModules.filter(a=>typeof a=="function"&&a.displayName&&!i.some(u=>u.displayName===a.displayName));i=[...i,...o]}const s=yield e().loadModules(i);return s.error?{error:s.error}:(t({_initializationInProgress:!1,_isInitialized:!0}),{})})},configureByApiKey(n){return L(this,null,function*(){if(!e()._isInitialized)return{error:new We({errorCode:Ve.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new We({errorCode:Ve.SCENARIO_IN_PROGRESS})};const s=["apiKey","baseUrl"].filter(d=>!(n!=null&&n[d]));if(s.length>0)return{error:new We({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${s.join(", ")}`})};const o=es(n.baseUrl);if(!o)return{error:new We({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n.baseUrl}`})};typeof n.ttl=="number"&&!Number.isNaN(n.ttl)&&t({_ttl:n.ttl});const a=e()._ttl,u={host:o.host,isSecure:o.isSecure,port:o.port,apiKey:n.apiKey,deviceDescriptor:{ttl:a}},h=Or.getAuthTokenLs(),_=h&&h[n.apiKey]&&h[n.apiKey].authToken?h[n.apiKey]:null,f=_&&_.authToken;f&&(u.authToken=f);const l=yield e().connectByApiKey(u);if(l.error)return{error:new We({errorCode:Ve.CONNECTION_ISSUE,underlyingBaseError:l.error})};f&&l.authToken!==f&&Or.removeAuthTokenLs(n.apiKey);const y=_&&l.authToken===_.authToken&&_,v=y?y.tokenExpiredIn:Date.now()+a*1e3;return e().setApiKeyAuthTokenCollection(n.apiKey,l.authToken,v),t({_isConnectedToPlatform:!0}),e().setStartConfig({host:o.host,isSecure:o.isSecure,apiKey:n.apiKey,port:o.port}),l})},configureWithUrl(n){return L(this,null,function*(){if(!e()._isInitialized)return{error:new We({errorCode:Ve.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new We({errorCode:Ve.SCENARIO_IN_PROGRESS})};const i=Wc(n);i&&(e().removeCurrentSessionDataLsAndStore(),t({_sessionIdFromUrl:i}));const s=yield e().connectByUrl(n);if(s.error)return{error:new We({errorCode:Ve.CONNECTION_ISSUE,underlyingBaseError:s.error})};t({_isConnectedToPlatform:!0});try{const o=es(n);if(!o)return{error:new We({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n}`})};e().setStartConfig({host:o.host,isSecure:o.isSecure,port:o.port})}catch(o){console.log("Invalid urlWithToken")}return s.workflows})},configureByUserPass(n){return L(this,null,function*(){if(!e()._isInitialized)return{error:new We({errorCode:Ve.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new We({errorCode:Ve.SCENARIO_IN_PROGRESS})};const s=["password","userName","baseUrl"].filter(h=>!(n!=null&&n[h]));if(s.length>0)return{error:new We({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${s.join(", ")}`})};const o=es(n.baseUrl);if(!o)return{error:new We({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n.baseUrl}`})};const a={host:o.host,isSecure:o.isSecure,password:n.password,port:o.port,userName:n.userName},u=yield e().connectByUserPass(a);return u.error?{error:new We({errorCode:Ve.CONNECTION_ISSUE,underlyingBaseError:u.error})}:(t({_isConnectedToPlatform:!0}),e().setStartConfig({host:o.host,isSecure:o.isSecure,port:o.port}),{workflows:[]})})},getWorkflows(){return L(this,arguments,function*(n={limit:100,skip:0}){if(!e()._isInitialized)return{error:new At({errorCode:gt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new At({errorCode:gt.CONNECTION_ISSUE})};const i=yield e().wasmService.listWorkflows(n);let s=null;if(i.code===4&&(s=ct.HTTP_ISSUE),i.code!==0&&i.code!==4&&(s=ct.PROVIDER_ERROR),i.code===0&&!i.data.items&&(s=ct.DECODING_FAILED),s!==null){const o=new On({errorCode:s});return{error:new At({errorCode:gt.WORKFLOW_ISSUE,message:"No workflow list",underlyingBaseError:o})}}return{results:i.data.items}})},prepareWorkflowAndPrepareUi(n){return L(this,null,function*(){var v;if(!e()._isInitialized)return{error:new At({errorCode:gt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new At({errorCode:gt.CONNECTION_ISSUE})};if(e().currentScreenConfig)return{error:new At({errorCode:gt.SCENARIO_IN_PROGRESS})};const i=yield e().wasmService.getWorkflow(n),s=Yi(i.data),o=((v=s.client)==null?void 0:v.steps)&&s.client.steps.some(d=>d.templateId===Ci);let a=null;if(i.code===4&&(a=ct.HTTP_ISSUE),i.code!==0&&i.code!==4&&(a=ct.PROVIDER_ERROR),i.code===0&&!i.data.id&&(a=ct.DECODING_FAILED),i.data.id&&s===null&&(a=ct.DECODING_FAILED),o||(a=ct.DECODING_FAILED),a!==null){const d=new On({errorCode:a});return{error:new At({errorCode:gt.INTERNAL_ISSUE,underlyingBaseError:d})}}const u=e().externalModules,h=s.steps,{isAllTemplatesSupported:_,unsupportedSteps:f}=Pc(u,h);_||console.log("IDV:: Warning. Unsupported steps found: ",f);const l=e().workflowId;l&&n!==l&&u.forEach(d=>{d.component.deinitialize()});const y=e().modulesConfig;return u.forEach(d=>{d.component.isReady()||d.component.initialize(y)}),e().setLayout(s.client.layout),e().setProcessingTemplate(s.client.steps),e().setWorkflowId(n),{workflow:s}})},startNewSession(n,i,s){return L(this,null,function*(){if(!e()._isInitialized)return{error:new ze({errorCode:$e.INITIALIZATION_REQUIRED})};const o=e().workflowId;if(!o)return{error:new ze({errorCode:$e.PREPARED_REQUIRED})};if(e().currentScreenConfig)return{error:new ze({errorCode:$e.ALREADY_STARTED})};const a=C=>{ur&&ur.close(),n(C)};e().setWorkflowSessionCompletion(a);const u=e().startConfig,h="apiKey"in u&&typeof u.apiKey=="string",_=e().apiKeyAuthTokenCollection;if(h&&"tokenExpiredIn"in _){const C=_.tokenExpiredIn&&typeof _.tokenExpiredIn=="number"?_.tokenExpiredIn:0;if(Date.now()>C){const k=yield e().connectByApiKey({apiKey:u.apiKey,host:u.host,deviceDescriptor:{ttl:e()._ttl}});if(Or.removeAuthTokenLs(u.apiKey),k.error)return{error:new cr({errorCode:qt.CONNECTION_ISSUE,underlyingBaseError:k.error})};if(k&&"authToken"in k){const x=Date.now()+e()._ttl*1e3;e().setApiKeyAuthTokenCollection(u.apiKey,k.authToken,x)}}}e().setIsProcessing(!0);const f=yield e()._runWasmService();if(f.error)return{error:f.error};const y=(yield e().wasmService.getServiceToken()).data;if(!y||typeof y!="string"){const C=new cr({errorCode:qt.TOKEN_ERROR});return{error:new ze({errorCode:$e.START_SESSION_FAILED,underlyingBaseError:C})}}e().setServiceSessionToken(y);const v=yield e()._runSocketConnection(y);if(v.error)return{error:v.error};const d=e()._sessionIdFromUrl,m=yield e()._continueSession(i,d);if("sessionId"in m)return{results:m};if("error"in m)return{error:m.error};if("id"in m)return{};const S=yield e().wasmService.startSession(o,i,s),b=e()._checkIsSessionDataValid(S.data);return da(b)?(e()._prepareDataForWorkflow(b),h?e()._checkAndSetApiTokenToLs(b.id):e().setCurrentSessionDataLsAndStore({sessionId:b.id,workflowId:o}),e().setIsProcessing(!1),e().setCurrentStepId(b.currentStep),e().listener({eventType:jr.MESSAGE,message:br.DID_START_SESSION,module:"IDV"}),{}):{error:b.error}})},playWorkflow(){const n=e().currentStepId;if(n)e().onChangeScreen(n);else{const i=new ze({errorCode:$e.UNKNOWN_STEP});e().workflowSessionCompletion({error:i})}},deinitialize(){return L(this,null,function*(){if(!e()._isInitialized)return{error:new In({errorCode:Gr.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new In({errorCode:Gr.SCENARIO_IN_PROGRESS})};const n=yield e().deinitializationIdv();return e().resetProps(),t({_isInitialized:!1}),n})}}),kr=yr.create("session_log");class Ud{constructor(e){this._worker=null,this._initialized=!1,this._connectedToIdv=!1,this._serviceRunning=!1,this._setErrorScreen=null,e&&(this._setErrorScreen=e)}init(){return L(this,null,function*(){try{const n=yield(yield fetch("https://wasm-development.regulaforensics.com/idv/nightly/3.2/23162d8-2691e7ac//PlatformAdaptor.worker.js")).blob(),i=URL.createObjectURL(n);this._worker=new Worker(i)}catch(r){console.log(`Creating worker error: ${JSON.stringify(r)}`)}return this._worker?(this._worker.postMessage({target:"gl",op:"setPrefetched",preMain:!0}),yield this.sendMessage({target:"worker-init",URL:document.URL,currentScriptUrl:"https://wasm-development.regulaforensics.com/idv/nightly/3.2/23162d8-2691e7ac/",preMain:!0})):void 0})}connectByUserPass(e){return L(this,null,function*(){var n,i;const r=yield this.sendMessage({target:"custom",method:"connect_idv",connectionParams:{deviceDescriptor:G(O({},ts()),{serial:"",macAddress:"",heartbeatCadence:2}),host:e.host,httpRetryCount:0,httpTimeoutMs:0,isSecure:(n=e.isSecure)!=null?n:!0,password:e.password,port:(i=e.port)!=null?i:0,schema:"basic",userName:e.userName},preMain:!0});return r.code===0&&(this._serviceRunning=!0,this._connectedToIdv=!0),r})}connectByApiKey(e){return L(this,null,function*(){var n,i;const r=yield this.sendMessage({target:"custom",method:"connect_by_api_key",connectByApiKeyParams:{isSecure:(n=e.isSecure)!=null?n:!0,host:e.host,port:(i=e.port)!=null?i:0,httpRetryCount:0,httpTimeoutMs:0,deviceDescriptor:O(G(O({},ts()),{serial:"",macAddress:"",heartbeatCadence:100}),e.deviceDescriptor),apiKey:e.apiKey,authToken:e.authToken},preMain:!0});return r.code===0&&(this._serviceRunning=!0,this._connectedToIdv=!0),r})}connectByUrl(e){return L(this,null,function*(){const r=yield this.sendMessage({target:"custom",method:"connect_by_url",connectByUrlParams:{deviceDescriptor:G(O({},ts()),{serial:"",macAddress:"00:00:00:00:00:00",heartbeatCadence:2}),httpRetryCount:5,httpTimeoutMs:1e3,url:e},preMain:!0});return r.code===0&&(this._serviceRunning=!0,this._connectedToIdv=!0),r})}startSession(e,r,n){return L(this,null,function*(){const i={workflowId:e,locale:r};Lc(n)&&(i.metadata=n);const s=yield this.sendMessage({target:"custom",method:"start_session",sessionParams:i,preMain:!0});return s.code===0&&(yr.clearLogs(),kr(`Command: 5. Result code: ${s.code}. Session id: ${s.data.id}. Cur step: ${s.data.currentStep}.`)),s})}continueSession(e,r){return L(this,null,function*(){const n={sessionId:e,locale:r},i=yield this.sendMessage({continueParams:n,target:"custom",method:"continue_session",preMain:!0});return i.code===0&&(yr.clearLogs(),kr(`Command: 10. Result code: ${i.code}. Session id: ${i.data.id}. Cur step: ${i.data.currentStep}.`)),i})}listWorkflows(){return L(this,arguments,function*(e={limit:0,skip:0}){return yield this.sendMessage({workflowsParams:e,target:"custom",method:"list_workflows",preMain:!0})})}getHealth(){return L(this,null,function*(){return yield this.sendMessage({target:"custom",method:"get_health",preMain:!0})})}getServiceToken(){return L(this,null,function*(){return yield this.sendMessage({target:"custom",method:"get_service_token",preMain:!0})})}abandonSession(){return L(this,null,function*(){return yield this.sendMessage({target:"custom",method:"abandon_session",preMain:!0})})}getWorkflow(e){return L(this,null,function*(){return yield this.sendMessage({workflowIdParams:{workflowId:e},target:"custom",method:"get_workflow",preMain:!0})})}pushData(e,r){return L(this,null,function*(){kr(`Command: 9. Request payload: ${JSON.stringify(r)}`);const n=yield this.sendMessage({target:"custom",method:"push_data",pushDataParams:{data:r,stage:0,step:e},preMain:!0});return kr(`Command: 9. Result code: ${n.code}`),n})}getSessionState(){return L(this,null,function*(){const e=yield this.sendMessage({target:"custom",method:"get_session_state",preMain:!0});return kr(`Command: 7. Result code: ${e.code}. Cur step: ${e.data.currentStep}. Proc files: ${e.data.isProcessingFiles}`),e})}waitForSessionUpdate(){return L(this,null,function*(){const e=yield this.sendMessage({waitingSessionParams:{periodMs:1e3},target:"custom",method:"wait_for_session_update",preMain:!0});return kr(`Command: 8. Result code: ${e.code}`),e})}pushSessionLogs(e){return L(this,null,function*(){return yield this.sendMessage({target:"custom",method:"push_session_logs",pushSessionLogsParams:e,preMain:!0})})}disconnect(){return L(this,null,function*(){const e=yield this.sendMessage({target:"custom",method:"disconnect",preMain:!0});return this._connectedToIdv=!1,this._serviceRunning=!1,e})}sendMessage(e){return L(this,null,function*(){return new Promise((r,n)=>{if(!this._worker)return n();this._worker.onmessage=i=>{const{target:s}=i.data;if(s!=="stdout"){if(s==="custom"){const{method:o,data:a}=i.data;o==="onRuntimeInitialized"&&(this._initialized=!0),r(a)}if(s==="stderr"){const{content:o}=i.data;this._setErrorScreen&&this._setErrorScreen(o)}}},this._worker.postMessage(e)})})}isServiceRunning(){return this._serviceRunning}isServiceConnected(){return this._connectedToIdv}terminateWorker(){var e;this.isServiceRunning()&&((e=this._worker)==null||e.terminate(),this._serviceRunning=!1,this._initialized=!1,this._connectedToIdv=!1)}shutdown(){return L(this,null,function*(){if(!this._worker)return{code:0};if(!this._connectedToIdv)return this.terminateWorker(),{code:0};const e=yield this.disconnect();return this.terminateWorker(),e})}}const Ld=(t,e)=>({wasmService:null,isProcessing:!1,isFinalWaitingUi:!1,setAndInitWasmService:()=>L(null,null,function*(){const n=new Ud;yield n.init(),t({wasmService:n})}),setFinalWaitingUi:n=>{t({isFinalWaitingUi:n})},connectByApiKey(n){return L(this,null,function*(){const s=yield e().wasmService.connectByApiKey(n);let o=null;if(s.code===4&&(o=Ot.HTTP_ISSUE),s.code!==0&&s.code!==4&&(o=Ot.PROVIDER_ERROR),o!==null){const a=new nn({errorCode:o});return{error:new En({errorCode:gn.CONNECTION_ISSUE,underlyingBaseError:a})}}else return s.data})},connectByUserPass(n){return L(this,null,function*(){const i=yield e().wasmService.connectByUserPass(n);let s=null;return i.code===4&&(s=Ot.HTTP_ISSUE),i.code!==0&&i.code!==4&&(s=Ot.PROVIDER_ERROR),s!==null?{error:new nn({errorCode:s})}:{}})},connectByUrl(n){return L(this,null,function*(){const s=yield e().wasmService.connectByUrl(n);let o=null;if(s.code===4&&(o=Ot.HTTP_ISSUE),s.code!==0&&s.code!==4&&(o=Ot.PROVIDER_ERROR),o!==null){const a=new nn({errorCode:o}),u=new En({errorCode:gn.CONNECTION_ISSUE,underlyingBaseError:a});return{workflows:[],error:u}}else return{workflows:s.data}})},workflowSessionCompletion:()=>{},setWorkflowSessionCompletion:n=>{const i=s=>{var h;const o=(h=e().currentSessionData)==null?void 0:h.sessionId,a=G(O({},s.results),{sessionId:o}),u=O({results:a},s.error&&{error:s.error});if(e().removeCurrentSessionDataLsAndStore(),n(u),s.error){const f=yr.getLogs().join("; ");e().wasmService.pushSessionLogs({sessionId:o,body:{log:f,errorCode:s.error.shortChain,deviceInfo:{platform:"Web"}}})}yr.clearLogs()};t(()=>({workflowSessionCompletion:i}))},loadModules:n=>L(null,null,function*(){var i;try{const s=yield Fd(n);return t(()=>({externalModules:s})),{}}catch(s){return(i=e().wasmService)==null||i.shutdown(),e().resetWasmService(),e().resetProps(),{error:new Sn({errorCode:zr.MODULES_INSTANTIATION_FAILURE})}}}),setProcessingTemplate:n=>{const i=Yi(n.find(s=>s.templateId===Ci));i.templateLayout=ca(i.templateLayout,e().layout),t({processingTransformedTemplate:i})},setIsProcessing:n=>{t({isProcessing:n})},_pushStep:(n,i)=>L(null,null,function*(){let s=null;return yield ua(()=>L(null,null,function*(){const u=yield e().wasmService.pushData(n,i);let h=null;if(u.code===4&&(h=it.HTTP_ISSUE),u.code!==0&&u.code!==4&&(h=it.PROVIDER_ERROR),h!==null){const _=new sn({errorCode:it.HTTP_ISSUE});s=new ze({errorCode:$e.INTERNAL_ISSUE,message:"Error from external module",underlyingBaseError:_})}return u.code===0?(s=null,u):null}),()=>null),s?{error:s}:{}}),_findStepById:n=>{const i=e().workflow;if(!i||!n)return null;const s=i.steps.find(o=>o.id===n);return s!=null?s:null},_waitingForNextStep:()=>L(null,null,function*(){let n=null,i=null;const s=()=>L(null,null,function*(){var m,S,b,C;const a=yield e().wasmService.getSessionState(),u=(m=a.data)==null?void 0:m.currentStep,h=(S=a.data)==null?void 0:S.isProcessingFiles,_=(C=(b=a.data)==null?void 0:b.workflow)==null?void 0:C.steps,f=Mc(_,u),l=a.code===4,y=a.code!==0&&a.code!==4,v=a.code===0&&(!a.data.workflow||!a.data.currentStep);let d=null;if(_&&!f&&(d=it.NOT_DATA_TYPE),l&&(d=it.HTTP_ISSUE),y&&(d=it.PROVIDER_ERROR),h&&(d=it.IS_PROCESSING),v&&(d=it.DECODING_FAILED),d!==null){const T=new sn({errorCode:d});n=new ze({errorCode:$e.INTERNAL_ISSUE,underlyingBaseError:T})}return f&&!h&&!l&&!y&&!v?(n=null,a.data):null});return yield new Promise(a=>{let _=0,f;const l=y=>L(null,null,function*(){if(y){f=window.setTimeout(()=>{l(!1)},1e4);return}i=yield s(),_++,!i&&_<6?f=window.setTimeout(()=>{l(!1)},1e4):(ur.clearSubscriptions(),a())});if(ur.isConnected()){const y=v=>{JSON.parse(atob(JSON.parse(v).payload)).eventType==="SESSION_UPDATED"&&(clearTimeout(f),l(!1))};ur.onMessage(y)}l(!0)}),n?{error:n}:i?{sessionData:i}:(n=new sn({errorCode:it.DECODING_FAILED}),{error:new ze({errorCode:$e.INTERNAL_ISSUE,underlyingBaseError:n})})}),setFinalStepAndStopProcess:n=>{const i=n||e().currentStepId;if(!i)return;const s=e()._findStepById(i);s&&(e().workflowSessionCompletion({results:{finalStep:{id:s.id,name:s.name,final:s.final}}}),e().resetSession(),e().listener({eventType:jr.MESSAGE,message:br.DID_END_SESSION,module:"IDV"}))},setNextStep:(n,i,s)=>{e().setWorkflow(n),e().setLayout(n.client.layout),e().setProcessingTemplate(n.client.steps),e().setSessionProperties(i);const o=e()._findStepById(s),a=u=>!!u&&Object.prototype.toString.call(u)==="[object Object]"&&u.templateId;if(o!=null&&o.final&&!a(o.client)){e().setFinalStepAndStopProcess(o.id);return}o!=null&&o.final&&a(o.client)&&e().setFinalWaitingUi(!0),e().onChangeScreen(s),e().setIsProcessing(!1)},pushStepWaitNextStepAndSet:n=>L(null,null,function*(){const i=e().currentStepId;if(!i)return;if(e().setIsProcessing(!0),e().isFinalWaitingUi){e().setFinalStepAndStopProcess();return}if(n.errorCode){const _=n,f=new ze({errorCode:$e.MODULES_ISSUE,message:"Error from external module",underlyingBaseError:_});e().workflowSessionCompletion({error:f}),e().resetSession();return}const s=yield e()._pushStep(i,n);if(s.error){e().workflowSessionCompletion({error:s.error}),e().resetSession();return}const o=yield e()._waitingForNextStep();if(o.error){e().workflowSessionCompletion({error:o.error}),e().resetSession();return}const a=o.sessionData.workflow,u=o.sessionData.currentStep,h=o.sessionData.properties;e().setNextStep(a,h,u)}),onChangeScreen:n=>{var u,h,_,f;if(!n)return t(()=>({currentScreenConfig:null}));const i=e().workflow,s=e().sessionProperties;let o=null;if(n===Ci&&e().processingTransformedTemplate!==null){const l=e().processingTransformedTemplate;l&&(o={templateId:l.templateId,templateLayout:l.templateLayout,dataSource:null})}else{const l=e()._findStepById(n);if(typeof((u=l==null?void 0:l.client)==null?void 0:u.templateId)=="string"&&(o=G(O({},l==null?void 0:l.client),{templateId:l.client.templateId,dataSource:(h=l.dataSource)!=null?h:null,properties:s})),o&&(o.sessionId=(_=e().currentSessionData)==null?void 0:_.sessionId,o.serviceToken=e().serviceToken),o&&Fc((f=l==null?void 0:l.client)==null?void 0:f.templateLayout)){const y=ca(l.client.templateLayout,e().layout);y&&(o.templateLayout=y)}}const a=Dc(e().externalModules,i.steps,n);if(o===null||!a){const l=new ze({errorCode:$e.UNKNOWN_STEP,message:"Unsupported step template"});e().workflowSessionCompletion({error:l}),t(()=>({currentScreenConfig:null})),e().resetSession();return}e().setCurrentStepId(n),t(()=>({currentScreenConfig:o}))},deinitializationIdv:()=>L(null,null,function*(){var i;const n=yield(i=e().wasmService)==null?void 0:i.shutdown();return e().resetWasmService(),e().externalModules.forEach(s=>{s.component.deinitialize&&s.component.isReady&&s.component.deinitialize()}),(n==null?void 0:n.code)===0?{}:{}}),resetSession:()=>t(()=>({isFinalWaitingUi:!1,isProcessing:!1,processingTransformedTemplate:null,currentStepId:null,layout:null,currentScreenConfig:null,workflowId:void 0,workflow:null,serviceToken:void 0})),resetWasmService:()=>t(()=>({wasmService:null}))});function Fd(t){return L(this,null,function*(){const e=[];for(const n of t)n&&e.push({id:n.getIdentifier(),supportedTemplates:n.getSupportedTemplates(),component:n});return e.filter(n=>n!==null)})}const Ge=vc((...t)=>O(O(O({},Hc(...t)),Pd(...t)),Ld(...t))),Vd=t=>/^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t)&&t.length<=100,el=(t,e)=>{if(!Vd(t))throw new Error(`Invalid component name: ${t}`);const r=document.createElement(t);return r.style.width="100%",r.style.height="100%",r.setProps(e),r};class $d{constructor(e){this.isPortrait=!1,this.isLandscape=!1,this.orientation="portrait",this._handleOrientationChange=()=>{const r=this._getOrientation();this.orientation!==r&&(this.orientation=r,this.isPortrait=this.orientation==="portrait",this.isLandscape=this.orientation==="landscape",this.host.requestUpdate())},(this.host=e).addController(this)}_getOrientation(){return window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait"}hostConnected(){typeof window!="undefined"&&(this._handleOrientationChange(),window.addEventListener("load",this._handleOrientationChange),window.addEventListener("resize",this._handleOrientationChange))}hostDisconnected(){typeof window!="undefined"&&(window.removeEventListener("load",this._handleOrientationChange),window.removeEventListener("resize",this._handleOrientationChange))}}var ws={exports:{}},tl;function Bd(){return tl||(tl=1,(function(t){t.exports=(function(e){var r={};function n(i){if(r[i])return r[i].exports;var s=r[i]={i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=r,n.d=function(i,s,o){n.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:o})},n.n=function(i){var s=i&&i.__esModule?(function(){return i.default}):(function(){return i});return n.d(s,"a",s),s},n.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},n.p="",n(n.s=1)})([(function(e,r,n){var i={MOBILE:"mobile",TABLET:"tablet",SMART_TV:"smarttv",CONSOLE:"console",WEARABLE:"wearable",BROWSER:void 0},s={CHROME:"Chrome",FIREFOX:"Firefox",OPERA:"Opera",YANDEX:"Yandex",SAFARI:"Safari",INTERNET_EXPLORER:"Internet Explorer",EDGE:"Edge",CHROMIUM:"Chromium",IE:"IE",MOBILE_SAFARI:"Mobile Safari",EDGE_CHROMIUM:"Edge Chromium"},o={IOS:"iOS",ANDROID:"Android",WINDOWS_PHONE:"Windows Phone",WINDOWS:"Windows",MAC_OS:"Mac OS"},a={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1};e.exports={BROWSER_TYPES:s,DEVICE_TYPES:i,OS_TYPES:o,defaultData:a}}),(function(e,r,n){var i=n(2),s=n(0),o=s.BROWSER_TYPES,a=s.OS_TYPES,u=s.DEVICE_TYPES,h=n(4),_=h.checkType,f=h.broPayload,l=h.mobilePayload,y=h.wearPayload,v=h.consolePayload,d=h.stvPayload,m=h.getNavigatorInstance,S=h.isIOS13Check,b=new i,C=b.getBrowser(),T=b.getDevice(),k=b.getEngine(),x=b.getOS(),P=b.getUA(),me=o.CHROME,_e=o.CHROMIUM,ee=o.IE,Q=o.INTERNET_EXPLORER,W=o.OPERA,X=o.FIREFOX,ue=o.SAFARI,de=o.EDGE,we=o.YANDEX,ye=o.MOBILE_SAFARI,te=u.MOBILE,z=u.TABLET,U=u.SMART_TV,Z=u.BROWSER,re=u.WEARABLE,Ie=u.CONSOLE,ne=a.ANDROID,$=a.WINDOWS_PHONE,J=a.IOS,Ke=a.WINDOWS,Xe=a.MAC_OS,pt=function(){return T.type===te},nt=function(){return T.type===z},Ht=function(){switch(T.type){case te:case z:return!0;default:return!1}},mt=function(){return x.name===a.WINDOWS&&x.version==="10"?typeof P=="string"&&P.indexOf("Edg/")!==-1:!1},Jt=function(){return T.type===U},jt=function(){return T.type===Z},Ct=function(){return T.type===re},zt=function(){return T.type===Ie},Qt=function(){return x.name===ne},St=function(){return x.name===Ke},at=function(){return x.name===Xe},w=function(){return x.name===$},I=function(){return x.name===J},A=function(){return C.name===me},V=function(){return C.name===X},D=function(){return C.name===_e},M=function(){return C.name===de},H=function(){return C.name===we},ie=function(){return C.name===ue||C.name===ye},K=function(){return C.name===ye},ve=function(){return C.name===W},He=function(){return C.name===Q||C.name===ee},Y=function(){var _t=m(),Pr=_t&&_t.userAgent.toLowerCase();return typeof Pr=="string"?/electron/.test(Pr):!1},ae=function(){var _t=m();return _t&&(/iPad|iPhone|iPod/.test(_t.platform)||_t.platform==="MacIntel"&&_t.maxTouchPoints>1)&&!window.MSStream},j=function(){return S("iPad")},ge=function(){return S("iPhone")},qe=function(){return S("iPod")},De=function(){return C.major},he=function(){return C.version},q=function(){return x.version?x.version:"none"},Je=function(){return x.name?x.name:"none"},er=function(){return C.name},hr=function(){return T.vendor?T.vendor:"none"},Fn=function(){return T.model?T.model:"none"},Vn=function(){return k.name},$n=function(){return k.version},Bn=function(){return P},Wn=function(){return T.type},Hn=Jt(),jn=zt(),zn=Ct(),tr=K()||j(),Gn=D(),lt=Ht()||j(),Kn=pt(),qn=nt()||j(),Zn=jt(),Yn=Qt(),Xn=w(),Jn=I()||j(),Qn=A(),bs=V(),Cs=ie(),Ss=ve(),Mr=He(),ei=q(),ti=Je(),ri=De(),Es=he(),ni=er(),ii=hr(),si=Fn(),Is=Vn(),Os=$n(),Ts=Bn(),Rs=M()||mt(),oi=H(),As=Wn(),xs=ae(),Ns=j(),ks=ge(),Ds=qe(),Ms=Y(),Ps=mt(),Us=M(),Ls=St(),Fs=at(),Et=_(T.type);function Vs(){var se=Et.isBrowser,_t=Et.isMobile,Pr=Et.isTablet,ai=Et.isSmartTV,li=Et.isConsole,ci=Et.isWearable;if(se)return f(se,C,k,x,P);if(ai)return d(ai,k,x,P);if(li)return v(li,k,x,P);if(_t||Pr)return l(Et,T,x,P);if(ci)return y(ci,k,x,P)}e.exports={deviceDetect:Vs,isSmartTV:Hn,isConsole:jn,isWearable:zn,isMobileSafari:tr,isChromium:Gn,isMobile:lt,isMobileOnly:Kn,isTablet:qn,isBrowser:Zn,isAndroid:Yn,isWinPhone:Xn,isIOS:Jn,isChrome:Qn,isFirefox:bs,isSafari:Cs,isOpera:Ss,isIE:Mr,osVersion:ei,osName:ti,fullBrowserVersion:ri,browserVersion:Es,browserName:ni,mobileVendor:ii,mobileModel:si,engineName:Is,engineVersion:Os,getUA:Ts,isEdge:Rs,isYandex:oi,deviceType:As,isIOS13:xs,isIPad13:Ns,isIPhone13:ks,isIPod13:Ds,isElectron:Ms,isEdgeChromium:Ps,isLegacyEdge:Us,isWindows:Ls,isMacOs:Fs}}),(function(e,r,n){var i;/*!
110
110
  * UAParser.js v0.7.18
111
111
  * Lightweight JavaScript-based User-Agent string parser
112
112
  * https://github.com/faisalman/ua-parser-js
113
113
  *
114
114
  * Copyright © 2012-2016 Faisal Salman <fyzlman@gmail.com>
115
115
  * Dual licensed under GPLv2 or MIT
116
- */(function(s,o){var a="0.7.18",c="",h="?",_="function",f="undefined",l="object",y="string",w="major",d="model",m="name",S="type",b="vendor",C="version",A="architecture",M="console",x="mobile",P="tablet",me="smarttv",_e="wearable",ee="embedded",Q={extend:function(te,z){var U={};for(var Z in te)z[Z]&&z[Z].length%2===0?U[Z]=z[Z].concat(te[Z]):U[Z]=te[Z];return U},has:function(te,z){return typeof te=="string"?z.toLowerCase().indexOf(te.toLowerCase())!==-1:!1},lowerize:function(te){return te.toLowerCase()},major:function(te){return typeof te===y?te.replace(/[^\d\.]/g,"").split(".")[0]:o},trim:function(te){return te.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},W={rgx:function(te,z){for(var U=0,Z,re,Ie,ne,V,J;U<z.length&&!V;){var Ke=z[U],Xe=z[U+1];for(Z=re=0;Z<Ke.length&&!V;)if(V=Ke[Z++].exec(te),V)for(Ie=0;Ie<Xe.length;Ie++)J=V[++re],ne=Xe[Ie],typeof ne===l&&ne.length>0?ne.length==2?typeof ne[1]==_?this[ne[0]]=ne[1].call(this,J):this[ne[0]]=ne[1]:ne.length==3?typeof ne[1]===_&&!(ne[1].exec&&ne[1].test)?this[ne[0]]=J?ne[1].call(this,J,ne[2]):o:this[ne[0]]=J?J.replace(ne[1],ne[2]):o:ne.length==4&&(this[ne[0]]=J?ne[3].call(this,J.replace(ne[1],ne[2])):o):this[ne]=J||o;U+=2}},str:function(te,z){for(var U in z)if(typeof z[U]===l&&z[U].length>0){for(var Z=0;Z<z[U].length;Z++)if(Q.has(z[U][Z],te))return U===h?o:U}else if(Q.has(z[U],te))return U===h?o:U;return te}},X={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},de={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[m,C],[/(opios)[\/\s]+([\w\.]+)/i],[[m,"Opera Mini"],C],[/\s(opr)\/([\w\.]+)/i],[[m,"Opera"],C],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i],[m,C],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[m,"IE"],C],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[m,"Edge"],C],[/(yabrowser)\/([\w\.]+)/i],[[m,"Yandex"],C],[/(puffin)\/([\w\.]+)/i],[[m,"Puffin"],C],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[m,"UCBrowser"],C],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],C],[/(micromessenger)\/([\w\.]+)/i],[[m,"WeChat"],C],[/(qqbrowserlite)\/([\w\.]+)/i],[m,C],[/(QQ)\/([\d\.]+)/i],[m,C],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[m,C],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[m,C],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[m,C],[/(MetaSr)[\/\s]?([\w\.]+)/i],[m],[/(LBBROWSER)/i],[m],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[C,[m,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[C,[m,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[C,[m,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[m,/(.+)/,"$1 WebView"],C],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[m,/(.+(?:g|us))(.+)/,"$1 $2"],C],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[C,[m,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[m,C],[/(dolfin)\/([\w\.]+)/i],[[m,"Dolphin"],C],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[m,"Chrome"],C],[/(coast)\/([\w\.]+)/i],[[m,"Opera Coast"],C],[/fxios\/([\w\.-]+)/i],[C,[m,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[C,[m,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[C,m],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[m,"GSA"],C],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[m,[C,W.str,X.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[m,C],[/(navigator|netscape)\/([\w\.-]+)/i],[[m,"Netscape"],C],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[m,C]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[A,"amd64"]],[/(ia32(?=;))/i],[[A,Q.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[A,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[A,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[A,/ower/,"",Q.lowerize]],[/(sun4\w)[;\)]/i],[[A,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[A,Q.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[d,b,[S,P]],[/applecoremedia\/[\w\.]+ \((ipad)/],[d,[b,"Apple"],[S,P]],[/(apple\s{0,1}tv)/i],[[d,"Apple TV"],[b,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[b,d,[S,P]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[d,[b,"Amazon"],[S,P]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[d,W.str,X.device.amazon.model],[b,"Amazon"],[S,x]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[d,b,[S,x]],[/\((ip[honed|\s\w*]+);/i],[d,[b,"Apple"],[S,x]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[b,d,[S,x]],[/\(bb10;\s(\w+)/i],[d,[b,"BlackBerry"],[S,x]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[d,[b,"Asus"],[S,P]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[b,"Sony"],[d,"Xperia Tablet"],[S,P]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[d,[b,"Sony"],[S,x]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[b,d,[S,M]],[/android.+;\s(shield)\sbuild/i],[d,[b,"Nvidia"],[S,M]],[/(playstation\s[34portablevi]+)/i],[d,[b,"Sony"],[S,M]],[/(sprint\s(\w+))/i],[[b,W.str,X.device.sprint.vendor],[d,W.str,X.device.sprint.model],[S,x]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[b,d,[S,P]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[b,[d,/_/g," "],[S,x]],[/(nexus\s9)/i],[d,[b,"HTC"],[S,P]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[d,[b,"Huawei"],[S,x]],[/(microsoft);\s(lumia[\s\w]+)/i],[b,d,[S,x]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[d,[b,"Microsoft"],[S,M]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[b,"Microsoft"],[S,x]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[d,[b,"Motorola"],[S,x]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[d,[b,"Motorola"],[S,P]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[b,Q.trim],[d,Q.trim],[S,me]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[b,"Samsung"],[S,me]],[/\(dtv[\);].+(aquos)/i],[d,[b,"Sharp"],[S,me]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[b,"Samsung"],d,[S,P]],[/smart-tv.+(samsung)/i],[b,[S,me],d],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[b,"Samsung"],d,[S,x]],[/sie-(\w*)/i],[d,[b,"Siemens"],[S,x]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[b,"Nokia"],d,[S,x]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[d,[b,"Acer"],[S,P]],[/android.+([vl]k\-?\d{3})\s+build/i],[d,[b,"LG"],[S,P]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[b,"LG"],d,[S,P]],[/(lg) netcast\.tv/i],[b,d,[S,me]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[d,[b,"LG"],[S,x]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[d,[b,"Lenovo"],[S,P]],[/linux;.+((jolla));/i],[b,d,[S,x]],[/((pebble))app\/[\d\.]+\s/i],[b,d,[S,_e]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[b,d,[S,x]],[/crkey/i],[[d,"Chromecast"],[b,"Google"]],[/android.+;\s(glass)\s\d/i],[d,[b,"Google"],[S,_e]],[/android.+;\s(pixel c)\s/i],[d,[b,"Google"],[S,P]],[/android.+;\s(pixel xl|pixel)\s/i],[d,[b,"Google"],[S,x]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[d,/_/g," "],[b,"Xiaomi"],[S,x]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[d,/_/g," "],[b,"Xiaomi"],[S,P]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[d,[b,"Meizu"],[S,P]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[d,[b,"OnePlus"],[S,x]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[d,[b,"RCA"],[S,P]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[d,[b,"Dell"],[S,P]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[d,[b,"Verizon"],[S,P]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[b,"Barnes & Noble"],d,[S,P]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[d,[b,"NuVision"],[S,P]],[/android.+;\s(k88)\sbuild/i],[d,[b,"ZTE"],[S,P]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[d,[b,"Swiss"],[S,x]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[d,[b,"Swiss"],[S,P]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[d,[b,"Zeki"],[S,P]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[b,"Dragon Touch"],d,[S,P]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[d,[b,"Insignia"],[S,P]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[d,[b,"NextBook"],[S,P]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[b,"Voice"],d,[S,x]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[b,"LvTel"],d,[S,x]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[d,[b,"Envizen"],[S,P]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[b,d,[S,P]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[d,[b,"MachSpeed"],[S,P]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[b,d,[S,P]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[d,[b,"Rotor"],[S,P]],[/android.+(KS(.+))\s+build/i],[d,[b,"Amazon"],[S,P]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[b,d,[S,P]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[S,Q.lowerize],b,d],[/(android[\w\.\s\-]{0,9});.+build/i],[d,[b,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[C,[m,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[m,C],[/rv\:([\w\.]{1,9}).+(gecko)/i],[C,m]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[m,C],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[m,[C,W.str,X.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[m,"Windows"],[C,W.str,X.os.windows.version]],[/\((bb)(10);/i],[[m,"BlackBerry"],C],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[m,C],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[m,"Symbian"],C],[/\((series40);/i],[m],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[m,"Firefox OS"],C],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[m,C],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[m,"Chromium OS"],C],[/(sunos)\s?([\w\.\d]*)/i],[[m,"Solaris"],C],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[m,C],[/(haiku)\s(\w+)/i],[m,C],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[C,/_/g,"."],[m,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[m,"Mac OS"],[C,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]*)/i],[m,C]]},ue=function(te,z){if(typeof te=="object"&&(z=te,te=o),!(this instanceof ue))return new ue(te,z).getResult();var U=te||(s&&s.navigator&&s.navigator.userAgent?s.navigator.userAgent:c),Z=z?Q.extend(de,z):de;return this.getBrowser=function(){var re={name:o,version:o};return W.rgx.call(re,U,Z.browser),re.major=Q.major(re.version),re},this.getCPU=function(){var re={architecture:o};return W.rgx.call(re,U,Z.cpu),re},this.getDevice=function(){var re={vendor:o,model:o,type:o};return W.rgx.call(re,U,Z.device),re},this.getEngine=function(){var re={name:o,version:o};return W.rgx.call(re,U,Z.engine),re},this.getOS=function(){var re={name:o,version:o};return W.rgx.call(re,U,Z.os),re},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return U},this.setUA=function(re){return U=re,this},this};ue.VERSION=a,ue.BROWSER={NAME:m,MAJOR:w,VERSION:C},ue.CPU={ARCHITECTURE:A},ue.DEVICE={MODEL:d,VENDOR:b,TYPE:S,CONSOLE:M,MOBILE:x,SMARTTV:me,TABLET:P,WEARABLE:_e,EMBEDDED:ee},ue.ENGINE={NAME:m,VERSION:C},ue.OS={NAME:m,VERSION:C},typeof r!==f?(typeof e!==f&&e.exports&&(r=e.exports=ue),r.UAParser=ue):n(3)?(i=(function(){return ue}).call(r,n,r,e),i!==o&&(e.exports=i)):s&&(s.UAParser=ue);var we=s&&(s.jQuery||s.Zepto);if(typeof we!==f){var ye=new ue;we.ua=ye.getResult(),we.ua.get=function(){return ye.getUA()},we.ua.set=function(te){ye.setUA(te);var z=ye.getResult();for(var U in z)we.ua[U]=z[U]}}})(typeof window=="object"?window:this)}),(function(e,r){(function(n){e.exports=n}).call(r,{})}),(function(e,r,n){Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(m){for(var S=1;S<arguments.length;S++){var b=arguments[S];for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&(m[C]=b[C])}return m},s=n(0),o=s.DEVICE_TYPES,a=s.defaultData,c=function(S){switch(S){case o.MOBILE:return{isMobile:!0};case o.TABLET:return{isTablet:!0};case o.SMART_TV:return{isSmartTV:!0};case o.CONSOLE:return{isConsole:!0};case o.WEARABLE:return{isWearable:!0};case o.BROWSER:return{isBrowser:!0};default:return a}},h=function(S,b,C,A,M){return{isBrowser:S,browserMajorVersion:b.major,browserFullVersion:b.version,browserName:b.name,engineName:C.name||!1,engineVersion:C.version,osName:A.name,osVersion:A.version,userAgent:M}},_=function(S,b,C,A){return i({},S,{vendor:b.vendor,model:b.model,os:C.name,osVersion:C.version,ua:A})},f=function(S,b,C,A){return{isSmartTV:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:A}},l=function(S,b,C,A){return{isConsole:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:A}},y=function(S,b,C,A){return{isWearable:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:A}},w=r.getNavigatorInstance=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},d=r.isIOS13Check=function(S){var b=w();return b&&b.platform&&(b.platform.indexOf(S)!==-1||b.platform==="MacIntel"&&b.maxTouchPoints>1&&!window.MSStream)};e.exports={checkType:c,broPayload:h,mobilePayload:_,stvPayload:f,consolePayload:l,wearPayload:y,getNavigatorInstance:w,isIOS13Check:d}})])})(_s)),_s.exports}var Au=Ru(),xu=Object.defineProperty,Dr=(t,e,r,n)=>{for(var i=void 0,s=t.length-1,o;s>=0;s--)(o=t[s])&&(i=o(e,r,i)||i);return i&&xu(e,r,i),i};const gs=class gs extends Hr{constructor(){super(),this.orientation=new Tu(this),this.store=Ge.getInitialState(),this.currentScreenConfig=this.store.currentScreenConfig,this.processingScreenFromWorkflow=this.store.processingTransformedTemplate,this.isProcessing=this.store.isProcessing,this.loadedModules=this.store.externalModules,this.modulesConfig=this.store.modulesConfig,this._listenerFromModule=(e,r)=>{this.store.listener({eventType:jr.MESSAGE,message:r,module:e})},this._isProcessingCallback=e=>{this.store.setIsProcessing(e)},this._performFromModule=e=>{this.store.setIsProcessing(!1),this.store.pushStepWaitNextStepAndSet(e)},Ge.subscribe(e=>{this.currentScreenConfig=e.currentScreenConfig,this.processingScreenFromWorkflow=e.processingTransformedTemplate,this.isProcessing=e.isProcessing,this.loadedModules=e.externalModules,this.modulesConfig=e.modulesConfig})}_processingScreen(){const e=this.loadedModules.find(r=>r.supportedTemplates.includes("PROGRESS"));return e&&this.processingScreenFromWorkflow?Xa(e.id,{perform:this._performFromModule,moduleProps:G(O({},this.processingScreenFromWorkflow),{templateId:"PROGRESS"}),modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback}):_i`Processing...`}_currentScreen(){if(!this.currentScreenConfig)return null;const e=this.loadedModules.find(r=>r.supportedTemplates.includes(this.currentScreenConfig.templateId));return e&&this.currentScreenConfig?Xa(e.id,{perform:this._performFromModule,moduleProps:this.currentScreenConfig,modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback}):null}get version(){return`${"3.2.243-nightly".trim()}`}disconnectedCallback(){wr.clearLogs()}render(){return!this.currentScreenConfig&&!this.processingScreenFromWorkflow?null:_i`<div
116
+ */(function(s,o){var a="0.7.18",u="",h="?",_="function",f="undefined",l="object",y="string",v="major",d="model",m="name",S="type",b="vendor",C="version",T="architecture",k="console",x="mobile",P="tablet",me="smarttv",_e="wearable",ee="embedded",Q={extend:function(te,z){var U={};for(var Z in te)z[Z]&&z[Z].length%2===0?U[Z]=z[Z].concat(te[Z]):U[Z]=te[Z];return U},has:function(te,z){return typeof te=="string"?z.toLowerCase().indexOf(te.toLowerCase())!==-1:!1},lowerize:function(te){return te.toLowerCase()},major:function(te){return typeof te===y?te.replace(/[^\d\.]/g,"").split(".")[0]:o},trim:function(te){return te.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},W={rgx:function(te,z){for(var U=0,Z,re,Ie,ne,$,J;U<z.length&&!$;){var Ke=z[U],Xe=z[U+1];for(Z=re=0;Z<Ke.length&&!$;)if($=Ke[Z++].exec(te),$)for(Ie=0;Ie<Xe.length;Ie++)J=$[++re],ne=Xe[Ie],typeof ne===l&&ne.length>0?ne.length==2?typeof ne[1]==_?this[ne[0]]=ne[1].call(this,J):this[ne[0]]=ne[1]:ne.length==3?typeof ne[1]===_&&!(ne[1].exec&&ne[1].test)?this[ne[0]]=J?ne[1].call(this,J,ne[2]):o:this[ne[0]]=J?J.replace(ne[1],ne[2]):o:ne.length==4&&(this[ne[0]]=J?ne[3].call(this,J.replace(ne[1],ne[2])):o):this[ne]=J||o;U+=2}},str:function(te,z){for(var U in z)if(typeof z[U]===l&&z[U].length>0){for(var Z=0;Z<z[U].length;Z++)if(Q.has(z[U][Z],te))return U===h?o:U}else if(Q.has(z[U],te))return U===h?o:U;return te}},X={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},ue={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[m,C],[/(opios)[\/\s]+([\w\.]+)/i],[[m,"Opera Mini"],C],[/\s(opr)\/([\w\.]+)/i],[[m,"Opera"],C],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i],[m,C],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[m,"IE"],C],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[m,"Edge"],C],[/(yabrowser)\/([\w\.]+)/i],[[m,"Yandex"],C],[/(puffin)\/([\w\.]+)/i],[[m,"Puffin"],C],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[m,"UCBrowser"],C],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],C],[/(micromessenger)\/([\w\.]+)/i],[[m,"WeChat"],C],[/(qqbrowserlite)\/([\w\.]+)/i],[m,C],[/(QQ)\/([\d\.]+)/i],[m,C],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[m,C],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[m,C],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[m,C],[/(MetaSr)[\/\s]?([\w\.]+)/i],[m],[/(LBBROWSER)/i],[m],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[C,[m,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[C,[m,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[C,[m,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[m,/(.+)/,"$1 WebView"],C],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[m,/(.+(?:g|us))(.+)/,"$1 $2"],C],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[C,[m,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[m,C],[/(dolfin)\/([\w\.]+)/i],[[m,"Dolphin"],C],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[m,"Chrome"],C],[/(coast)\/([\w\.]+)/i],[[m,"Opera Coast"],C],[/fxios\/([\w\.-]+)/i],[C,[m,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[C,[m,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[C,m],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[m,"GSA"],C],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[m,[C,W.str,X.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[m,C],[/(navigator|netscape)\/([\w\.-]+)/i],[[m,"Netscape"],C],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[m,C]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[T,"amd64"]],[/(ia32(?=;))/i],[[T,Q.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[T,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[T,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[T,/ower/,"",Q.lowerize]],[/(sun4\w)[;\)]/i],[[T,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[T,Q.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[d,b,[S,P]],[/applecoremedia\/[\w\.]+ \((ipad)/],[d,[b,"Apple"],[S,P]],[/(apple\s{0,1}tv)/i],[[d,"Apple TV"],[b,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[b,d,[S,P]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[d,[b,"Amazon"],[S,P]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[d,W.str,X.device.amazon.model],[b,"Amazon"],[S,x]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[d,b,[S,x]],[/\((ip[honed|\s\w*]+);/i],[d,[b,"Apple"],[S,x]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[b,d,[S,x]],[/\(bb10;\s(\w+)/i],[d,[b,"BlackBerry"],[S,x]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[d,[b,"Asus"],[S,P]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[b,"Sony"],[d,"Xperia Tablet"],[S,P]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[d,[b,"Sony"],[S,x]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[b,d,[S,k]],[/android.+;\s(shield)\sbuild/i],[d,[b,"Nvidia"],[S,k]],[/(playstation\s[34portablevi]+)/i],[d,[b,"Sony"],[S,k]],[/(sprint\s(\w+))/i],[[b,W.str,X.device.sprint.vendor],[d,W.str,X.device.sprint.model],[S,x]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[b,d,[S,P]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[b,[d,/_/g," "],[S,x]],[/(nexus\s9)/i],[d,[b,"HTC"],[S,P]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[d,[b,"Huawei"],[S,x]],[/(microsoft);\s(lumia[\s\w]+)/i],[b,d,[S,x]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[d,[b,"Microsoft"],[S,k]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[b,"Microsoft"],[S,x]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[d,[b,"Motorola"],[S,x]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[d,[b,"Motorola"],[S,P]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[b,Q.trim],[d,Q.trim],[S,me]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[b,"Samsung"],[S,me]],[/\(dtv[\);].+(aquos)/i],[d,[b,"Sharp"],[S,me]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[b,"Samsung"],d,[S,P]],[/smart-tv.+(samsung)/i],[b,[S,me],d],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[b,"Samsung"],d,[S,x]],[/sie-(\w*)/i],[d,[b,"Siemens"],[S,x]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[b,"Nokia"],d,[S,x]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[d,[b,"Acer"],[S,P]],[/android.+([vl]k\-?\d{3})\s+build/i],[d,[b,"LG"],[S,P]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[b,"LG"],d,[S,P]],[/(lg) netcast\.tv/i],[b,d,[S,me]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[d,[b,"LG"],[S,x]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[d,[b,"Lenovo"],[S,P]],[/linux;.+((jolla));/i],[b,d,[S,x]],[/((pebble))app\/[\d\.]+\s/i],[b,d,[S,_e]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[b,d,[S,x]],[/crkey/i],[[d,"Chromecast"],[b,"Google"]],[/android.+;\s(glass)\s\d/i],[d,[b,"Google"],[S,_e]],[/android.+;\s(pixel c)\s/i],[d,[b,"Google"],[S,P]],[/android.+;\s(pixel xl|pixel)\s/i],[d,[b,"Google"],[S,x]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[d,/_/g," "],[b,"Xiaomi"],[S,x]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[d,/_/g," "],[b,"Xiaomi"],[S,P]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[d,[b,"Meizu"],[S,P]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[d,[b,"OnePlus"],[S,x]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[d,[b,"RCA"],[S,P]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[d,[b,"Dell"],[S,P]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[d,[b,"Verizon"],[S,P]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[b,"Barnes & Noble"],d,[S,P]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[d,[b,"NuVision"],[S,P]],[/android.+;\s(k88)\sbuild/i],[d,[b,"ZTE"],[S,P]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[d,[b,"Swiss"],[S,x]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[d,[b,"Swiss"],[S,P]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[d,[b,"Zeki"],[S,P]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[b,"Dragon Touch"],d,[S,P]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[d,[b,"Insignia"],[S,P]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[d,[b,"NextBook"],[S,P]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[b,"Voice"],d,[S,x]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[b,"LvTel"],d,[S,x]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[d,[b,"Envizen"],[S,P]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[b,d,[S,P]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[d,[b,"MachSpeed"],[S,P]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[b,d,[S,P]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[d,[b,"Rotor"],[S,P]],[/android.+(KS(.+))\s+build/i],[d,[b,"Amazon"],[S,P]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[b,d,[S,P]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[S,Q.lowerize],b,d],[/(android[\w\.\s\-]{0,9});.+build/i],[d,[b,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[C,[m,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[m,C],[/rv\:([\w\.]{1,9}).+(gecko)/i],[C,m]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[m,C],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[m,[C,W.str,X.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[m,"Windows"],[C,W.str,X.os.windows.version]],[/\((bb)(10);/i],[[m,"BlackBerry"],C],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[m,C],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[m,"Symbian"],C],[/\((series40);/i],[m],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[m,"Firefox OS"],C],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[m,C],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[m,"Chromium OS"],C],[/(sunos)\s?([\w\.\d]*)/i],[[m,"Solaris"],C],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[m,C],[/(haiku)\s(\w+)/i],[m,C],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[C,/_/g,"."],[m,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[m,"Mac OS"],[C,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]*)/i],[m,C]]},de=function(te,z){if(typeof te=="object"&&(z=te,te=o),!(this instanceof de))return new de(te,z).getResult();var U=te||(s&&s.navigator&&s.navigator.userAgent?s.navigator.userAgent:u),Z=z?Q.extend(ue,z):ue;return this.getBrowser=function(){var re={name:o,version:o};return W.rgx.call(re,U,Z.browser),re.major=Q.major(re.version),re},this.getCPU=function(){var re={architecture:o};return W.rgx.call(re,U,Z.cpu),re},this.getDevice=function(){var re={vendor:o,model:o,type:o};return W.rgx.call(re,U,Z.device),re},this.getEngine=function(){var re={name:o,version:o};return W.rgx.call(re,U,Z.engine),re},this.getOS=function(){var re={name:o,version:o};return W.rgx.call(re,U,Z.os),re},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return U},this.setUA=function(re){return U=re,this},this};de.VERSION=a,de.BROWSER={NAME:m,MAJOR:v,VERSION:C},de.CPU={ARCHITECTURE:T},de.DEVICE={MODEL:d,VENDOR:b,TYPE:S,CONSOLE:k,MOBILE:x,SMARTTV:me,TABLET:P,WEARABLE:_e,EMBEDDED:ee},de.ENGINE={NAME:m,VERSION:C},de.OS={NAME:m,VERSION:C},typeof r!==f?(typeof e!==f&&e.exports&&(r=e.exports=de),r.UAParser=de):n(3)?(i=(function(){return de}).call(r,n,r,e),i!==o&&(e.exports=i)):s&&(s.UAParser=de);var we=s&&(s.jQuery||s.Zepto);if(typeof we!==f){var ye=new de;we.ua=ye.getResult(),we.ua.get=function(){return ye.getUA()},we.ua.set=function(te){ye.setUA(te);var z=ye.getResult();for(var U in z)we.ua[U]=z[U]}}})(typeof window=="object"?window:this)}),(function(e,r){(function(n){e.exports=n}).call(r,{})}),(function(e,r,n){Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(m){for(var S=1;S<arguments.length;S++){var b=arguments[S];for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&(m[C]=b[C])}return m},s=n(0),o=s.DEVICE_TYPES,a=s.defaultData,u=function(S){switch(S){case o.MOBILE:return{isMobile:!0};case o.TABLET:return{isTablet:!0};case o.SMART_TV:return{isSmartTV:!0};case o.CONSOLE:return{isConsole:!0};case o.WEARABLE:return{isWearable:!0};case o.BROWSER:return{isBrowser:!0};default:return a}},h=function(S,b,C,T,k){return{isBrowser:S,browserMajorVersion:b.major,browserFullVersion:b.version,browserName:b.name,engineName:C.name||!1,engineVersion:C.version,osName:T.name,osVersion:T.version,userAgent:k}},_=function(S,b,C,T){return i({},S,{vendor:b.vendor,model:b.model,os:C.name,osVersion:C.version,ua:T})},f=function(S,b,C,T){return{isSmartTV:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:T}},l=function(S,b,C,T){return{isConsole:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:T}},y=function(S,b,C,T){return{isWearable:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:T}},v=r.getNavigatorInstance=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},d=r.isIOS13Check=function(S){var b=v();return b&&b.platform&&(b.platform.indexOf(S)!==-1||b.platform==="MacIntel"&&b.maxTouchPoints>1&&!window.MSStream)};e.exports={checkType:u,broPayload:h,mobilePayload:_,stvPayload:f,consolePayload:l,wearPayload:y,getNavigatorInstance:v,isIOS13Check:d}})])})(ws)),ws.exports}var Wd=Bd(),Hd=Object.defineProperty,Dr=(t,e,r,n)=>{for(var i=void 0,s=t.length-1,o;s>=0;s--)(o=t[s])&&(i=o(e,r,i)||i);return i&&Hd(e,r,i),i};const ys=class ys extends Hr{constructor(){super(),this.orientation=new $d(this),this.store=Ge.getInitialState(),this.currentScreenConfig=this.store.currentScreenConfig,this.processingScreenFromWorkflow=this.store.processingTransformedTemplate,this.isProcessing=this.store.isProcessing,this.loadedModules=this.store.externalModules,this.modulesConfig=this.store.modulesConfig,this._listenerFromModule=(e,r)=>{this.store.listener({eventType:jr.MESSAGE,message:r,module:e})},this._isProcessingCallback=e=>{this.store.setIsProcessing(e)},this._performFromModule=e=>{this.store.setIsProcessing(!1),this.store.pushStepWaitNextStepAndSet(e)},Ge.subscribe(e=>{this.currentScreenConfig=e.currentScreenConfig,this.processingScreenFromWorkflow=e.processingTransformedTemplate,this.isProcessing=e.isProcessing,this.loadedModules=e.externalModules,this.modulesConfig=e.modulesConfig})}_processingScreen(){const e=this.loadedModules.find(r=>r.supportedTemplates.includes("PROGRESS"));return e&&this.processingScreenFromWorkflow?el(e.id,{perform:this._performFromModule,moduleProps:G(O({},this.processingScreenFromWorkflow),{templateId:"PROGRESS"}),modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback}):gi`Processing...`}_currentScreen(){if(!this.currentScreenConfig)return null;const e=this.loadedModules.find(r=>r.supportedTemplates.includes(this.currentScreenConfig.templateId));return e&&this.currentScreenConfig?el(e.id,{perform:this._performFromModule,moduleProps:this.currentScreenConfig,modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback}):null}get version(){return`${"3.2.244-nightly".trim()}`}disconnectedCallback(){yr.clearLogs()}render(){return!this.currentScreenConfig&&!this.processingScreenFromWorkflow?null:gi`<div
117
117
  part="idv"
118
118
  class="idv"
119
- data-device="${Au.isMobile&&this.orientation.isPortrait?"mobile":"desktop"}"
120
- data-direction="${Zs.Ltr}"
119
+ data-device="${Wd.isMobile&&this.orientation.isPortrait?"mobile":"desktop"}"
120
+ data-direction="${Js.Ltr}"
121
121
  >
122
122
  <div class="container">
123
- ${this.isProcessing?_i`<div class="processing-overlay">${this._processingScreen()}</div>`:""}
123
+ ${this.isProcessing?gi`<div class="processing-overlay">${this._processingScreen()}</div>`:""}
124
124
  ${this._currentScreen()}
125
125
  </div>
126
- </div>`}};gs.styles=[Ul];let bt=gs;Dr([vr()],bt.prototype,"store"),Dr([vr()],bt.prototype,"currentScreenConfig"),Dr([vr()],bt.prototype,"processingScreenFromWorkflow"),Dr([vr()],bt.prototype,"isProcessing"),Dr([vr()],bt.prototype,"loadedModules"),Dr([vr()],bt.prototype,"modulesConfig");class Nu{initialize(e){return $(this,null,function*(){return Ge.getState().initialize(e)})}configure(e){return $(this,null,function*(){return"userName"in e?yield Ge.getState().configureByUserPass(e):"apiKey"in e?yield Ge.getState().configureByApiKey(e):"url"in e&&Object.keys(e).length===1?yield Ge.getState().configureWithUrl(e.url):{error:new Be({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:"No valid config found"})}})}getWorkFlows(e){return $(this,null,function*(){return yield Ge.getState().getWorkflows(e)})}prepareWorkflow(r){return $(this,arguments,function*({workflowId:e}){return yield Ge.getState().prepareWorkflowAndPrepareUi(e)})}startWorkflow(e){return $(this,null,function*(){return new Promise(r=>{const n=a=>{r(a)},i=e==null?void 0:e.locale,s=e==null?void 0:e.metadata,o=Fc(i);Ge.getState().startNewSession(n,o,s).then(a=>{a.error&&(Ge.getState().removeCurrentSessionDataLsAndStore(),n(a)),a.results&&(Ge.getState().removeCurrentSessionDataLsAndStore(),n(a)),Ge.getState().playWorkflow()})})})}deinitialize(){return $(this,null,function*(){return yield Ge.getState().deinitialize()})}get version(){return"3.2.243-nightly"}set nonce(e){Ge.getState().setNonce(e)}set eventListener(e){if(!e||typeof e!="function"){console.warn("IdvIntegrationService:: listener is not a function");return}Ge.getState().setListener(e)}set sessionRestoreMode(e){Ge.getState().setSessionRestoreMode(e)}}return window.customElements.get("idv-flow")||window.customElements.define("idv-flow",bt),fe.BaseError=be,fe.BaseModule=ua,fe.ConnectionError=Ot,fe.DeinitializationError=Gr,fe.IdvEventTypesEnum=jr,fe.IdvIntegrationService=Nu,fe.IdvServiceMessages=yr,fe.IdvWebComponent=bt,fe.InitializeError=zr,fe.PrepareWorkflowError=mt,fe.SessionError=it,fe.StartSessionError=qt,fe.WorkflowError=Fe,fe.WorkflowPlatformError=at,fe.registerModule=fa,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"}),fe})({});
126
+ </div>`}};ys.styles=[Vl];let bt=ys;Dr([wr()],bt.prototype,"store"),Dr([wr()],bt.prototype,"currentScreenConfig"),Dr([wr()],bt.prototype,"processingScreenFromWorkflow"),Dr([wr()],bt.prototype,"isProcessing"),Dr([wr()],bt.prototype,"loadedModules"),Dr([wr()],bt.prototype,"modulesConfig");class jd{initialize(e){return L(this,null,function*(){return Ge.getState().initialize(e)})}configure(e){return L(this,null,function*(){return"userName"in e?yield Ge.getState().configureByUserPass(e):"apiKey"in e?yield Ge.getState().configureByApiKey(e):"url"in e&&Object.keys(e).length===1?yield Ge.getState().configureWithUrl(e.url):{error:new We({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:"No valid config found"})}})}getWorkFlows(e){return L(this,null,function*(){return yield Ge.getState().getWorkflows(e)})}prepareWorkflow(r){return L(this,arguments,function*({workflowId:e}){return yield Ge.getState().prepareWorkflowAndPrepareUi(e)})}startWorkflow(e){return L(this,null,function*(){return new Promise(r=>{const n=a=>{r(a)},i=e==null?void 0:e.locale,s=e==null?void 0:e.metadata,o=Bc(i);Ge.getState().startNewSession(n,o,s).then(a=>{a.error&&(Ge.getState().removeCurrentSessionDataLsAndStore(),n(a)),a.results&&(Ge.getState().removeCurrentSessionDataLsAndStore(),n(a)),Ge.getState().playWorkflow()})})})}deinitialize(){return L(this,null,function*(){return yield Ge.getState().deinitialize()})}get version(){return"3.2.244-nightly"}set nonce(e){Ge.getState().setNonce(e)}set eventListener(e){if(!e||typeof e!="function"){console.warn("IdvIntegrationService:: listener is not a function");return}Ge.getState().setListener(e)}set sessionRestoreMode(e){Ge.getState().setSessionRestoreMode(e)}}return window.customElements.get("idv-flow")||window.customElements.define("idv-flow",bt),fe.BaseError=be,fe.BaseModule=pa,fe.ConnectionError=Ot,fe.DeinitializationError=Gr,fe.IdvEventTypesEnum=jr,fe.IdvIntegrationService=jd,fe.IdvServiceMessages=br,fe.IdvWebComponent=bt,fe.InitializeError=zr,fe.PrepareWorkflowError=gt,fe.SessionError=it,fe.StartSessionError=qt,fe.WorkflowError=$e,fe.WorkflowPlatformError=ct,fe.registerModule=ma,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"}),fe})({});