@regulaforensics/idv-capture-web 3.2.270-nightly → 3.2.272-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.
- package/dist/main.iife.js +19 -19
- package/dist/main.js +3923 -4332
- package/package.json +1 -1
package/dist/main.iife.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
var RegulaIdv=(function(
|
|
1
|
+
var RegulaIdv=(function(ge){"use strict";var Jd=Object.defineProperty,Xd=Object.defineProperties;var qd=Object.getOwnPropertyDescriptors;var Mn=Object.getOwnPropertySymbols;var dc=Object.prototype.hasOwnProperty,Mc=Object.prototype.propertyIsEnumerable;var lc=(ge,Oe,we)=>Oe in ge?Jd(ge,Oe,{enumerable:!0,configurable:!0,writable:!0,value:we}):ge[Oe]=we,j=(ge,Oe)=>{for(var we in Oe||(Oe={}))dc.call(Oe,we)&&lc(ge,we,Oe[we]);if(Mn)for(var we of Mn(Oe))Mc.call(Oe,we)&&lc(ge,we,Oe[we]);return ge},X=(ge,Oe)=>Xd(ge,qd(Oe));var hr=(ge,Oe)=>{var we={};for(var He in ge)dc.call(ge,He)&&Oe.indexOf(He)<0&&(we[He]=ge[He]);if(ge!=null&&Mn)for(var He of Mn(ge))Oe.indexOf(He)<0&&Mc.call(ge,He)&&(we[He]=ge[He]);return we};var k=(ge,Oe,we)=>new Promise((He,br)=>{var di=St=>{try{Lr(we.next(St))}catch(yr){br(yr)}},gn=St=>{try{Lr(we.throw(St))}catch(yr){br(yr)}},Lr=St=>St.done?He(St.value):Promise.resolve(St.value).then(di,gn);Lr((we=we.apply(ge,Oe)).next())});/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/var
|
|
5
|
+
*/var qa,ec,tc,rc,ic,nc;const Oe=globalThis,we=Oe.ShadowRoot&&(Oe.ShadyCSS===void 0||Oe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,He=Symbol(),br=new WeakMap;let di=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==He)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(we&&e===void 0){const i=r!==void 0&&r.length===1;i&&(e=br.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&br.set(r,e))}return e}toString(){return this.cssText}};const gn=t=>new di(typeof t=="string"?t:t+"",void 0,He),Lr=(t,...e)=>{const r=t.length===1?t[0]:e.reduce(((i,n,o)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[o+1]),t[0]);return new di(r,t,He)},St=(t,e)=>{if(we)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(const r of e){const i=document.createElement("style"),n=Oe.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},yr=we?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const i of e.cssRules)r+=i.cssText;return gn(r)})(t):t;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:
|
|
9
|
+
*/const{is:Ic,defineProperty:fc,getOwnPropertyDescriptor:Dc,getOwnPropertyNames:hc,getOwnPropertySymbols:yc,getPrototypeOf:pc}=Object,Zt=globalThis,Po=Zt.trustedTypes,Tc=Po?Po.emptyScript:"",Nn=Zt.reactiveElementPolyfillSupport,kr=(t,e)=>t,Mi={toAttribute(t,e){switch(e){case Boolean:t=t?Tc: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(i){r=null}}return r}},In=(t,e)=>!Ic(t,e),Yo={attribute:!0,type:String,converter:Mi,reflect:!1,useDefault:!1,hasChanged:In};(qa=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(ec=Zt.litPropertyMetadata)!=null||(Zt.litPropertyMetadata=new WeakMap);let pr=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=Yo){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 i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&fc(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){var s;const{get:n,set:o}=(s=Dc(this.prototype,e))!=null?s:{get(){return this[r]},set(a){this[r]=a}};return{get:n,set(a){const c=n==null?void 0:n.call(this);o==null||o.call(this,a),this.requestUpdate(e,c,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var r;return(r=this.elementProperties.get(e))!=null?r:Yo}static _$Ei(){if(this.hasOwnProperty(kr("elementProperties")))return;const e=pc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(kr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(kr("properties"))){const r=this.properties,i=[...hc(r),...yc(r)];for(const n of i)this.createProperty(n,r[n])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(const[r,i]of this.elementProperties){const n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const n of i)r.unshift(yr(n))}else e!==void 0&&r.push(yr(e));return r}static _$Eu(e,r){const i=r.attribute;return i===!1?void 0:typeof i=="string"?i: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,i;((r=this._$EO)!=null?r:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var r;(r=this._$EO)==null||r.delete(e)}_$E_(){const e=new Map,r=this.constructor.elementProperties;for(const i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var r;const e=(r=this.shadowRoot)!=null?r:this.attachShadow(this.constructor.shadowRootOptions);return St(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((i=>{var n;return(n=i.hostConnected)==null?void 0:n.call(i)}))}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach((r=>{var i;return(i=r.hostDisconnected)==null?void 0:i.call(r)}))}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$ET(e,r){var o;const i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){const s=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:Mi).toAttribute(r,i.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,r){var o,s,a;const i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){const c=i.getPropertyOptions(n),l=typeof c.converter=="function"?{fromAttribute:c.converter}:((o=c.converter)==null?void 0:o.fromAttribute)!==void 0?c.converter:Mi;this._$Em=n;const N=l.fromAttribute(r,c.type);this[n]=(a=N!=null?N:(s=this._$Ej)==null?void 0:s.get(n))!=null?a:N,this._$Em=null}}requestUpdate(e,r,i){var n,o;if(e!==void 0){const s=this.constructor,a=this[e];if(i!=null||(i=s.getPropertyOptions(e)),!(((n=i.hasChanged)!=null?n:In)(a,r)||i.useDefault&&i.reflect&&a===((o=this._$Ej)==null?void 0:o.get(e))&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:n,wrapped:o},s){var a,c,l;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(c=s!=null?s:r)!=null?c:this[e]),o!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&((l=this._$Eq)!=null?l:this._$Eq=new Set).add(e))}_$EP(){return k(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 i,n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[s,a]of o){const{wrapped:c}=a,l=this[s];c!==!0||this._$AL.has(s)||l===void 0||this.C(s,void 0,a,l)}}let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(n=this._$EO)==null||n.forEach((o=>{var s;return(s=o.hostUpdate)==null?void 0:s.call(o)})),this.update(r)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){var r;(r=this._$EO)==null||r.forEach((i=>{var n;return(n=i.hostUpdated)==null?void 0:n.call(i)})),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){}};pr.elementStyles=[],pr.shadowRootOptions={mode:"open"},pr[kr("elementProperties")]=new Map,pr[kr("finalized")]=new Map,Nn==null||Nn({ReactiveElement:pr}),((tc=Zt.reactiveElementVersions)!=null?tc:Zt.reactiveElementVersions=[]).push("2.1.1");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const Ur=globalThis,
|
|
14
|
-
\f\r]
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
13
|
+
*/const Ur=globalThis,gi=Ur.trustedTypes,Fo=gi?gi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Vo="$lit$",Gt=`lit$${Math.random().toFixed(9).slice(2)}$`,Bo="?"+Gt,Ac=`<${Bo}>`,ir=document,Rr=()=>ir.createComment(""),Qr=t=>t===null||typeof t!="object"&&typeof t!="function",fn=Array.isArray,Ec=t=>fn(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Dn=`[
|
|
14
|
+
\f\r]`,Pr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wo=/-->/g,$o=/>/g,nr=RegExp(`>|${Dn}(?:([^\\s"'>=/]+)(${Dn}*=${Dn}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ho=/'/g,Zo=/"/g,Go=/^(?:script|style|textarea|title)$/i,mc=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),hn=mc(1),Tr=Symbol.for("lit-noChange"),xe=Symbol.for("lit-nothing"),Ko=new WeakMap,or=ir.createTreeWalker(ir,129);function Jo(t,e){if(!fn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Fo!==void 0?Fo.createHTML(e):e}const jc=(t,e)=>{const r=t.length-1,i=[];let n,o=e===2?"<svg>":e===3?"<math>":"",s=Pr;for(let a=0;a<r;a++){const c=t[a];let l,N,d=-1,u=0;for(;u<c.length&&(s.lastIndex=u,N=s.exec(c),N!==null);)u=s.lastIndex,s===Pr?N[1]==="!--"?s=Wo:N[1]!==void 0?s=$o:N[2]!==void 0?(Go.test(N[2])&&(n=RegExp("</"+N[2],"g")),s=nr):N[3]!==void 0&&(s=nr):s===nr?N[0]===">"?(s=n!=null?n:Pr,d=-1):N[1]===void 0?d=-2:(d=s.lastIndex-N[2].length,l=N[1],s=N[3]===void 0?nr:N[3]==='"'?Zo:Ho):s===Zo||s===Ho?s=nr:s===Wo||s===$o?s=Pr:(s=nr,n=void 0);const f=s===nr&&t[a+1].startsWith("/>")?" ":"";o+=s===Pr?c+Ac:d>=0?(i.push(l),c.slice(0,d)+Vo+c.slice(d)+Gt+f):c+Gt+(d===-2?a:f)}return[Jo(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};let yn=class gc{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let o=0,s=0;const a=e.length-1,c=this.parts,[l,N]=jc(e,r);if(this.el=gc.createElement(l,i),or.currentNode=this.el.content,r===2||r===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=or.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(const d of n.getAttributeNames())if(d.endsWith(Vo)){const u=N[s++],f=n.getAttribute(d).split(Gt),D=/([.?@])?(.*)/.exec(u);c.push({type:1,index:o,name:D[2],strings:f,ctor:D[1]==="."?Sc:D[1]==="?"?Oc:D[1]==="@"?_c:Ni}),n.removeAttribute(d)}else d.startsWith(Gt)&&(c.push({type:6,index:o}),n.removeAttribute(d));if(Go.test(n.tagName)){const d=n.textContent.split(Gt),u=d.length-1;if(u>0){n.textContent=gi?gi.emptyScript:"";for(let f=0;f<u;f++)n.append(d[f],Rr()),or.nextNode(),c.push({type:2,index:++o});n.append(d[u],Rr())}}}else if(n.nodeType===8)if(n.data===Bo)c.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(Gt,d+1))!==-1;)c.push({type:7,index:o}),d+=Gt.length-1}o++}}static createElement(e,r){const i=ir.createElement("template");return i.innerHTML=e,i}};function Ar(t,e,r=t,i){var s,a,c;if(e===Tr)return e;let n=i!==void 0?(s=r._$Co)==null?void 0:s[i]:r._$Cl;const o=Qr(e)?void 0:e._$litDirective$;return(n==null?void 0:n.constructor)!==o&&((a=n==null?void 0:n._$AO)==null||a.call(n,!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,r,i)),i!==void 0?((c=r._$Co)!=null?c:r._$Co=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Ar(t,n._$AS(t,e.values),n,i)),e}let wc=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 l;const{el:{content:r},parts:i}=this._$AD,n=((l=e==null?void 0:e.creationScope)!=null?l:ir).importNode(r,!0);or.currentNode=n;let o=or.nextNode(),s=0,a=0,c=i[0];for(;c!==void 0;){if(s===c.index){let N;c.type===2?N=new pn(o,o.nextSibling,this,e):c.type===1?N=new c.ctor(o,c.name,c.strings,this,e):c.type===6&&(N=new vc(o,this,e)),this._$AV.push(N),c=i[++a]}s!==(c==null?void 0:c.index)&&(o=or.nextNode(),s++)}return or.currentNode=ir,n}p(e){let r=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},pn=class Nc{get _$AU(){var e,r;return(r=(e=this._$AM)==null?void 0:e._$AU)!=null?r:this._$Cv}constructor(e,r,i,n){var o;this.type=2,this._$AH=xe,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=(o=n==null?void 0:n.isConnected)!=null?o:!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=Ar(this,e,r),Qr(e)?e===xe||e==null||e===""?(this._$AH!==xe&&this._$AR(),this._$AH=xe):e!==this._$AH&&e!==Tr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ec(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!==xe&&Qr(this._$AH)?this._$AA.nextSibling.data=e:this.T(ir.createTextNode(e)),this._$AH=e}$(e){var o;const{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=yn.createElement(Jo(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===n)this._$AH.p(r);else{const s=new wc(n,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=Ko.get(e.strings);return r===void 0&&Ko.set(e.strings,r=new yn(e)),r}k(e){fn(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let i,n=0;for(const o of e)n===r.length?r.push(i=new Nc(this.O(Rr()),this.O(Rr()),this,this.options)):i=r[n],i._$AI(o),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,r);e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){var r;this._$AM===void 0&&(this._$Cv=e,(r=this._$AP)==null||r.call(this,e))}},Ni=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,o){this.type=1,this._$AH=xe,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=xe}_$AI(e,r=this,i,n){const o=this.strings;let s=!1;if(o===void 0)e=Ar(this,e,r,0),s=!Qr(e)||e!==this._$AH&&e!==Tr,s&&(this._$AH=e);else{const a=e;let c,l;for(e=o[0],c=0;c<o.length-1;c++)l=Ar(this,a[i+c],r,c),l===Tr&&(l=this._$AH[c]),s||(s=!Qr(l)||l!==this._$AH[c]),l===xe?e=xe:e!==xe&&(e+=(l!=null?l:"")+o[c+1]),this._$AH[c]=l}s&&!n&&this.j(e)}j(e){e===xe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},Sc=class extends Ni{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===xe?void 0:e}},Oc=class extends Ni{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==xe)}},_c=class extends Ni{constructor(e,r,i,n,o){super(e,r,i,n,o),this.type=5}_$AI(e,r=this){var s;if((e=(s=Ar(this,e,r,0))!=null?s:xe)===Tr)return;const i=this._$AH,n=e===xe&&i!==xe||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==xe&&(i===xe||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)==null?void 0:r.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}},vc=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Ar(this,e)}};const Tn=Ur.litHtmlPolyfillSupport;Tn==null||Tn(yn,pn),((rc=Ur.litHtmlVersions)!=null?rc:Ur.litHtmlVersions=[]).push("3.3.1");const xc=(t,e,r)=>{var o,s;const i=(o=r==null?void 0:r.renderBefore)!=null?o:e;let n=i._$litPart$;if(n===void 0){const a=(s=r==null?void 0:r.renderBefore)!=null?s:null;i._$litPart$=n=new pn(e.insertBefore(Rr(),a),a,void 0,r!=null?r:{})}return n._$AI(t),n};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const sr=globalThis;let
|
|
19
|
+
*/const sr=globalThis;let Yr=class extends pr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r,i;const e=super.createRenderRoot();return(i=(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=xc(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 Tr}};Yr._$litElement$=!0,Yr.finalized=!0,(ic=sr.litElementHydrateSupport)==null||ic.call(sr,{LitElement:Yr});const An=sr.litElementPolyfillSupport;An==null||An({LitElement:Yr}),((nc=sr.litElementVersions)!=null?nc: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
|
|
23
|
+
*/const zc={attribute:!0,type:String,converter:Mi,reflect:!1,hasChanged:In},Cc=(t=zc,e,r)=>{const{kind:i,metadata:n}=r;let o=globalThis.litPropertyMetadata.get(n);if(o===void 0&&globalThis.litPropertyMetadata.set(n,o=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),o.set(r.name,t),i==="accessor"){const{name:s}=r;return{set(a){const c=e.get.call(this);e.set.call(this,a),this.requestUpdate(s,c,t)},init(a){return a!==void 0&&this.C(s,void 0,t,a),a}}}if(i==="setter"){const{name:s}=r;return function(a){const c=this[s];e.call(this,a),this.requestUpdate(s,c,t)}}throw Error("Unsupported decorator location: "+i)};function bc(t){return(e,r)=>typeof r=="object"?Cc(t,e,r):((i,n,o)=>{const s=n.hasOwnProperty(o);return n.constructor.createProperty(o,i),s?Object.getOwnPropertyDescriptor(n,o):void 0})(t,e,r)}/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/function ar(t){return
|
|
28
|
-
`),r=new Blob([e],{type:"text/plain"}),
|
|
27
|
+
*/function ar(t){return bc(X(j({},t),{state:!0,attribute:!1}))}class Lc{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,i]=e.split(">");this._domains=r.split(","),i&&(this._transports=i.split(","))}catch(e){return}}create(e,r){return i=>{const n=Date.now(),o=new Date(n).toISOString();let s=0;if(this._prevTime&&(s=n-this._prevTime),this._prevTime=n,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};`,`${o} ${e}`,"",i,`color: ${a};`,s)}this._logs.push(`${o} ${e}: ${i} +${s}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"}),i=window.URL.createObjectURL(r),n=document.createElement("a");n.download="log.txt",n.href=i,n.click(),window.URL.revokeObjectURL(i),this.clearLogs()}}const Xo=new Lc,kc=Lr`
|
|
29
29
|
*,
|
|
30
30
|
::after,
|
|
31
31
|
::before {
|
|
@@ -86,9 +86,9 @@ var RegulaIdv=(function(he){"use strict";var b1=Object.defineProperty,S1=Object.
|
|
|
86
86
|
background: white;
|
|
87
87
|
z-index: 1000;
|
|
88
88
|
}
|
|
89
|
-
`,Hr={MESSAGE:"MESSAGE",ERROR:"ERROR"},Ll=Object.values({DATA:"DATA",QUESTIONARY:"QUESTIONARY"});var Qo=(t=>(t.Rtl="rtl",t.Ltr="ltr",t))(Qo||{}),Cr=(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))(Cr||{}),vt=(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))(vt||{}),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||{}),je=(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))(je||{}),Wr=(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))(Wr||{}),mn=(t=>(t[t.CONNECTION_ISSUE=0]="CONNECTION_ISSUE",t[t.WORKFLOW_ISSUE=1]="WORKFLOW_ISSUE",t))(mn||{}),yt=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t))(yt||{}),Yt=(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))(Yt||{}),ot=(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))(ot||{}),jr=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(jr||{}),At=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t))(At||{});const Vl=120,$l=200,Ci="PROGRESS",bt="IDV",lr="idv-session-data",zr="idv-session-auth-token",Bl="rgl-uid",Hl="en",es=t=>{let e;const r=new Set,n=(d,p)=>{const f=typeof d=="function"?d(e):d;if(!Object.is(f,e)){const c=e;e=(p!=null?p:typeof f!="object"||f===null)?f:Object.assign({},e,f),r.forEach(g=>g(e,c))}},i=()=>e,a={setState:n,getState:i,getInitialState:()=>l,subscribe:d=>(r.add(d),()=>r.delete(d))},l=e=t(n,i,a);return a},Wl=t=>t?es(t):es;var Kr,oe,ts,cr,rs,ns,is,os,Ei,Ti,Ii,ss,Gr={},as=[],jl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,qr=Array.isArray;function St(t,e){for(var r in e)t[r]=e[r];return t}function Oi(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Ct(t,e,r){var n,i,o,s={};for(o in e)o=="key"?n=e[o]:o=="ref"?i=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?Kr.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)s[o]===void 0&&(s[o]=t.defaultProps[o]);return Zr(t,s,n,i,null)}function Zr(t,e,r,n,i){var o={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++ts:i,__i:-1,__u:0};return i==null&&oe.vnode!=null&&oe.vnode(o),o}function ls(){return{current:null}}function ze(t){return t.children}function dt(t,e){this.props=t,this.context=e}function Er(t,e){if(e==null)return t.__?Er(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"?Er(t):null}function cs(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 cs(t)}}function Ai(t){(!t.__d&&(t.__d=!0)&&cr.push(t)&&!gn.__r++||rs!=oe.debounceRendering)&&((rs=oe.debounceRendering)||ns)(gn)}function gn(){for(var t,e,r,n,i,o,s,a=1;cr.length;)cr.length>a&&cr.sort(is),t=cr.shift(),a=cr.length,t.__d&&(r=void 0,n=void 0,i=(n=(e=t).__v).__e,o=[],s=[],e.__P&&((r=St({},n)).__v=n.__v+1,oe.vnode&&oe.vnode(r),xi(e.__P,r,n,e.__n,e.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Er(n):i,!!(32&n.__u),s),r.__v=n.__v,r.__.__k[r.__i]=r,ps(o,r,s),n.__e=n.__=null,r.__e!=i&&cs(r)));gn.__r=0}function ds(t,e,r,n,i,o,s,a,l,d,p){var f,c,g,w,h,m,C,S=n&&n.__k||as,b=e.length;for(l=zl(r,e,S,l,b),f=0;f<b;f++)(g=r.__k[f])!=null&&(c=g.__i==-1?Gr:S[g.__i]||Gr,g.__i=f,m=xi(t,g,c,i,o,s,a,l,d,p),w=g.__e,g.ref&&c.ref!=g.ref&&(c.ref&&ki(c.ref,null,g),p.push(g.ref,g.__c||w,g)),h==null&&w!=null&&(h=w),(C=!!(4&g.__u))||c.__k===g.__k?l=us(g,l,t,C):typeof g.type=="function"&&m!==void 0?l=m:w&&(l=w.nextSibling),g.__u&=-7);return r.__e=h,l}function zl(t,e,r,n,i){var o,s,a,l,d,p=r.length,f=p,c=0;for(t.__k=new Array(i),o=0;o<i;o++)(s=e[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=o+c,(s=t.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Zr(null,s,null,null,null):qr(s)?Zr(ze,{children:s},null,null,null):s.constructor==null&&s.__b>0?Zr(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=t,s.__b=t.__b+1,a=null,(d=s.__i=Kl(s,r,l,f))!=-1&&(f--,(a=r[d])&&(a.__u|=2)),a==null||a.__v==null?(d==-1&&(i>p?c--:i<p&&c++),typeof s.type!="function"&&(s.__u|=4)):d!=l&&(d==l-1?c--:d==l+1?c++:(d>l?c--:c++,s.__u|=4))):t.__k[o]=null;if(f)for(o=0;o<p;o++)(a=r[o])!=null&&(2&a.__u)==0&&(a.__e==n&&(n=Er(a)),ms(a,a));return n}function us(t,e,r,n){var i,o;if(typeof t.type=="function"){for(i=t.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=t,e=us(i[o],e,r,n));return e}t.__e!=e&&(n&&(e&&t.type&&!e.parentNode&&(e=Er(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function xt(t,e){return e=e||[],t==null||typeof t=="boolean"||(qr(t)?t.some(function(r){xt(r,e)}):e.push(t)),e}function Kl(t,e,r,n){var i,o,s,a=t.key,l=t.type,d=e[r],p=d!=null&&(2&d.__u)==0;if(d===null&&t.key==null||p&&a==d.key&&l==d.type)return r;if(n>(p?1:0)){for(i=r-1,o=r+1;i>=0||o<e.length;)if((d=e[s=i>=0?i--:o++])!=null&&(2&d.__u)==0&&a==d.key&&l==d.type)return s}return-1}function fs(t,e,r){e[0]=="-"?t.setProperty(e,r==null?"":r):t[e]=r==null?"":typeof r!="number"||jl.test(e)?r:r+"px"}function wn(t,e,r,n,i){var o,s;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||fs(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||fs(t.style,e,r[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(os,"$1")),s=e.toLowerCase(),e=s in t||e=="onFocusOut"||e=="onFocusIn"?s.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=r,r?n?r.u=n.u:(r.u=Ei,t.addEventListener(e,o?Ii:Ti,o)):t.removeEventListener(e,o?Ii:Ti,o);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 hs(t){return function(e){if(this.l){var r=this.l[e.type+t];if(e.t==null)e.t=Ei++;else if(e.t<r.u)return;return r(oe.event?oe.event(e):e)}}}function xi(t,e,r,n,i,o,s,a,l,d){var p,f,c,g,w,h,m,C,S,b,O,k,N,R,le,me,ce,Z=e.type;if(e.constructor!=null)return null;128&r.__u&&(l=!!(32&r.__u),o=[a=e.__e=r.__e]),(p=oe.__b)&&p(e);e:if(typeof Z=="function")try{if(C=e.props,S="prototype"in Z&&Z.prototype.render,b=(p=Z.contextType)&&n[p.__c],O=p?b?b.props.value:p.__:n,r.__c?m=(f=e.__c=r.__c).__=f.__E:(S?e.__c=f=new Z(C,O):(e.__c=f=new dt(C,O),f.constructor=Z,f.render=ql),b&&b.sub(f),f.props=C,f.state||(f.state={}),f.context=O,f.__n=n,c=f.__d=!0,f.__h=[],f._sb=[]),S&&f.__s==null&&(f.__s=f.state),S&&Z.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=St({},f.__s)),St(f.__s,Z.getDerivedStateFromProps(C,f.__s))),g=f.props,w=f.state,f.__v=e,c)S&&Z.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),S&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(S&&Z.getDerivedStateFromProps==null&&C!==g&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(C,O),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(C,f.__s,O)===!1||e.__v==r.__v){for(e.__v!=r.__v&&(f.props=C,f.state=f.__s,f.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some(function(H){H&&(H.__=e)}),k=0;k<f._sb.length;k++)f.__h.push(f._sb[k]);f._sb=[],f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(C,f.__s,O),S&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(g,w,h)})}if(f.context=O,f.props=C,f.__P=t,f.__e=!1,N=oe.__r,R=0,S){for(f.state=f.__s,f.__d=!1,N&&N(e),p=f.render(f.props,f.state,f.context),le=0;le<f._sb.length;le++)f.__h.push(f._sb[le]);f._sb=[]}else do f.__d=!1,N&&N(e),p=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++R<25);f.state=f.__s,f.getChildContext!=null&&(n=St(St({},n),f.getChildContext())),S&&!c&&f.getSnapshotBeforeUpdate!=null&&(h=f.getSnapshotBeforeUpdate(g,w)),me=p,p!=null&&p.type===ze&&p.key==null&&(me=_s(p.props.children)),a=ds(t,qr(me)?me:[me],e,r,n,i,o,s,a,l,d),f.base=e.__e,e.__u&=-161,f.__h.length&&s.push(f),m&&(f.__E=f.__=null)}catch(H){if(e.__v=null,l||o!=null)if(H.then){for(e.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,e.__e=a}else{for(ce=o.length;ce--;)Oi(o[ce]);Ri(e)}else e.__e=r.__e,e.__k=r.__k,H.then||Ri(e);oe.__e(H,e,r)}else o==null&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):a=e.__e=Gl(r.__e,e,r,n,i,o,s,l,d);return(p=oe.diffed)&&p(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 ps(t,e,r){for(var n=0;n<r.length;n++)ki(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(o){o.call(i)})}catch(o){oe.__e(o,i.__v)}})}function _s(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:qr(t)?t.map(_s):St({},t)}function Gl(t,e,r,n,i,o,s,a,l){var d,p,f,c,g,w,h,m=r.props,C=e.props,S=e.type;if(S=="svg"?i="http://www.w3.org/2000/svg":S=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(d=0;d<o.length;d++)if((g=o[d])&&"setAttribute"in g==!!S&&(S?g.localName==S:g.nodeType==3)){t=g,o[d]=null;break}}if(t==null){if(S==null)return document.createTextNode(C);t=document.createElementNS(i,S,C.is&&C),a&&(oe.__m&&oe.__m(e,o),a=!1),o=null}if(S==null)m===C||a&&t.data==C||(t.data=C);else{if(o=o&&Kr.call(t.childNodes),m=r.props||Gr,!a&&o!=null)for(m={},d=0;d<t.attributes.length;d++)m[(g=t.attributes[d]).name]=g.value;for(d in m)if(g=m[d],d!="children"){if(d=="dangerouslySetInnerHTML")f=g;else if(!(d in C)){if(d=="value"&&"defaultValue"in C||d=="checked"&&"defaultChecked"in C)continue;wn(t,d,null,g,i)}}for(d in C)g=C[d],d=="children"?c=g:d=="dangerouslySetInnerHTML"?p=g:d=="value"?w=g:d=="checked"?h=g:a&&typeof g!="function"||m[d]===g||wn(t,d,g,m[d],i);if(p)a||f&&(p.__html==f.__html||p.__html==t.innerHTML)||(t.innerHTML=p.__html),e.__k=[];else if(f&&(t.innerHTML=""),ds(e.type=="template"?t.content:t,qr(c)?c:[c],e,r,n,S=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:r.__k&&Er(r,0),a,l),o!=null)for(d=o.length;d--;)Oi(o[d]);a||(d="value",S=="progress"&&w==null?t.removeAttribute("value"):w!=null&&(w!==t[d]||S=="progress"&&!w||S=="option"&&w!=m[d])&&wn(t,d,w,m[d],i),d="checked",h!=null&&h!=t[d]&&wn(t,d,h,m[d],i))}return t}function ki(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 ms(t,e,r){var n,i;if(oe.unmount&&oe.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||ki(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){oe.__e(o,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&ms(n[i],e,r||typeof t.type!="function");r||Oi(t.__e),t.__c=t.__=t.__e=void 0}function ql(t,e,r){return this.constructor(t,r)}function dr(t,e,r){var n,i,o,s;e==document&&(e=document.documentElement),oe.__&&oe.__(t,e),i=(n=typeof r=="function")?null:r&&r.__k||e.__k,o=[],s=[],xi(e,t=(!n&&r||e).__k=Ct(ze,null,[t]),i||Gr,Gr,e.namespaceURI,!n&&r?[r]:i?null:e.firstChild?Kr.call(e.childNodes):null,o,!n&&r?r:i?i.__e:e.firstChild,n,s),ps(o,t,s)}function gs(t,e){dr(t,e,gs)}function Zl(t,e,r){var n,i,o,s,a=St({},t.props);for(o in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)o=="key"?n=e[o]:o=="ref"?i=e[o]:a[o]=e[o]===void 0&&s!=null?s[o]:e[o];return arguments.length>2&&(a.children=arguments.length>3?Kr.call(arguments,2):r),Zr(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(o){this.props.value!=o.value&&n.forEach(function(s){s.__e=!0,Ai(s)})},this.sub=function(o){n.add(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),s&&s.call(o)}}),r.children}return e.__c="__cC"+ss++,e.__=t,e.Provider=e.__l=(e.Consumer=function(r,n){return r.children(n)}).contextType=e,e}Kr=as.slice,oe={__e:function(t,e,r,n){for(var i,o,s;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,n||{}),s=i.__d),s)return i.__E=i}catch(a){t=a}throw t}},ts=0,dt.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=St({},this.state),typeof t=="function"&&(t=t(St({},r),this.props)),t&&St(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ai(this))},dt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ai(this))},dt.prototype.render=ze,cr=[],ns=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,is=function(t,e){return t.__v.__b-e.__v.__b},gn.__r=0,os=/(PointerCapture)$|Capture$/i,Ei=0,Ti=hs(!1),Ii=hs(!0),ss=0;var Rt,Se,Di,ws,Tr=0,vs=[],Oe=oe,ys=Oe.__b,bs=Oe.__r,Ss=Oe.diffed,Cs=Oe.__c,Es=Oe.unmount,Ts=Oe.__;function ur(t,e){Oe.__h&&Oe.__h(Se,t,Tr||e),Tr=0;var r=Se.__H||(Se.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Ue(t){return Tr=1,vn(Os,t)}function vn(t,e,r){var n=ur(Rt++,2);if(n.t=t,!n.__c&&(n.__=[r?r(e):Os(void 0,e),function(a){var l=n.__N?n.__N[0]:n.__[0],d=n.t(l,a);l!==d&&(n.__N=[d,n.__[1]],n.__c.setState({}))}],n.__c=Se,!Se.__f)){var i=function(a,l,d){if(!n.__c.__H)return!0;var p=n.__c.__H.__.filter(function(c){return!!c.__c});if(p.every(function(c){return!c.__N}))return!o||o.call(this,a,l,d);var f=n.__c.props!==a;return p.forEach(function(c){if(c.__N){var g=c.__[0];c.__=c.__N,c.__N=void 0,g!==c.__[0]&&(f=!0)}}),o&&o.call(this,a,l,d)||f};Se.__f=!0;var o=Se.shouldComponentUpdate,s=Se.componentWillUpdate;Se.componentWillUpdate=function(a,l,d){if(this.__e){var p=o;o=void 0,i(a,l,d),o=p}s&&s.call(this,a,l,d)},Se.shouldComponentUpdate=i}return n.__N||n.__}function st(t,e){var r=ur(Rt++,3);!Oe.__s&&Vi(r.__H,e)&&(r.__=t,r.u=e,Se.__H.__h.push(r))}function Jt(t,e){var r=ur(Rt++,4);!Oe.__s&&Vi(r.__H,e)&&(r.__=t,r.u=e,Se.__h.push(r))}function at(t){return Tr=5,Yr(function(){return{current:t}},[])}function Pi(t,e,r){Tr=6,Jt(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 Yr(t,e){var r=ur(Rt++,7);return Vi(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function Mi(t,e){return Tr=8,Yr(function(){return t},e)}function Jr(t){var e=Se.context[t.__c],r=ur(Rt++,9);return r.c=t,e?(r.__==null&&(r.__=!0,e.sub(Se)),e.props.value):t.__}function Fi(t,e){Oe.useDebugValue&&Oe.useDebugValue(e?e(t):t)}function Yl(t){var e=ur(Rt++,10),r=Ue();return e.__=t,Se.componentDidCatch||(Se.componentDidCatch=function(n,i){e.__&&e.__(n,i),r[1](n)}),[r[0],function(){r[1](void 0)}]}function Ui(){var t=ur(Rt++,11);if(!t.__){for(var e=Se.__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 Jl(){for(var t;t=vs.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(yn),t.__H.__h.forEach(Li),t.__H.__h=[]}catch(e){t.__H.__h=[],Oe.__e(e,t.__v)}}Oe.__b=function(t){Se=null,ys&&ys(t)},Oe.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Ts&&Ts(t,e)},Oe.__r=function(t){bs&&bs(t),Rt=0;var e=(Se=t.__c).__H;e&&(Di===Se?(e.__h=[],Se.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(e.__h.forEach(yn),e.__h.forEach(Li),e.__h=[],Rt=0)),Di=Se},Oe.diffed=function(t){Ss&&Ss(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(vs.push(e)!==1&&ws===Oe.requestAnimationFrame||((ws=Oe.requestAnimationFrame)||Xl)(Jl)),e.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Di=Se=null},Oe.__c=function(t,e){e.some(function(r){try{r.__h.forEach(yn),r.__h=r.__h.filter(function(n){return!n.__||Li(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Oe.__e(n,r.__v)}}),Cs&&Cs(t,e)},Oe.unmount=function(t){Es&&Es(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{yn(n)}catch(i){e=i}}),r.__H=void 0,e&&Oe.__e(e,r.__v))};var Is=typeof requestAnimationFrame=="function";function Xl(t){var e,r=function(){clearTimeout(n),Is&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,35);Is&&(e=requestAnimationFrame(r))}function yn(t){var e=Se,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),Se=e}function Li(t){var e=Se;t.__c=t.__(),Se=e}function Vi(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function Os(t,e){return typeof e=="function"?e(t):e}function As(t,e){for(var r in e)t[r]=e[r];return t}function $i(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 Bi(t,e){var r=e(),n=Ue({t:{__:r,u:e}}),i=n[0].t,o=n[1];return Jt(function(){i.__=r,i.u=e,Hi(i)&&o({t:i})},[t,r,e]),st(function(){return Hi(i)&&o({t:i}),t(function(){Hi(i)&&o({t:i})})},[t]),r}function Hi(t){var e,r,n=t.u,i=t.__;try{var o=n();return!((e=i)===(r=o)&&(e!==0||1/e==1/r)||e!=e&&r!=r)}catch(s){return!0}}function Wi(t){t()}function ji(t){return t}function zi(){return[!1,Wi]}var Ki=Jt;function bn(t,e){this.props=t,this.context=e}function xs(t,e){function r(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),e?!e(this.props,i)||!s:$i(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Ct(t,i)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n.type=t,n}(bn.prototype=new dt).isPureReactComponent=!0,bn.prototype.shouldComponentUpdate=function(t,e){return $i(this.props,t)||$i(this.state,e)};var Rs=oe.__b;oe.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Rs&&Rs(t)};var Ql=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ks(t){function e(r){var n=As({},r);return delete n.ref,t(n,r.ref||null)}return e.$$typeof=Ql,e.render=t,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Ns=function(t,e){return t==null?null:xt(xt(t).map(e))},Ds={map:Ns,forEach:Ns,count:function(t){return t?xt(t).length:0},only:function(t){var e=xt(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:xt},ec=oe.__e;oe.__e=function(t,e,r,n){if(t.then){for(var i,o=e;o=o.__;)if((i=o.__c)&&i.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),i.__c(t,e)}ec(t,e,r,n)};var Ps=oe.unmount;function Ms(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=As({},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 Ms(n,e,r)})),t}function Fs(t,e,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Fs(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 Xr(){this.__u=0,this.o=null,this.__b=null}function Us(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Ls(t){var e,r,n;function i(o){if(e||(e=t()).then(function(s){r=s.default||s},function(s){n=s}),n)throw n;if(!r)throw e;return Ct(r,o)}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),Ps&&Ps(t)},(Xr.prototype=new dt).__c=function(t,e){var r=e.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Us(n.__v),o=!1,s=function(){o||(o=!0,r.__R=null,i?i(a):a())};r.__R=s;var a=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Fs(l,l.__c.__P,l.__c.__O)}var d;for(n.setState({__a:n.__b=null});d=n.o.pop();)d.forceUpdate()}};n.__u++||32&e.__u||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(s,s)},Xr.prototype.componentWillUnmount=function(){this.o=[]},Xr.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]=Ms(this.__b,r,n.__O=n.__P)}this.__b=null}var i=e.__a&&Ct(ze,null,t.fallback);return i&&(i.__u&=-33),[Ct(ze,null,e.__a?null:t.children),i]};var Vs=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 tc(t){return this.getChildContext=function(){return t.context},t.children}function rc(t){var e=this,r=t.h;if(e.componentWillUnmount=function(){dr(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,o){this.childNodes.push(i),e.h.insertBefore(i,o)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),e.h.removeChild(i)}}}dr(Ct(tc,{context:e.context},t.__v),e.v)}function $s(t,e){var r=Ct(rc,{__v:t,h:e});return r.containerInfo=e,r}(Ir.prototype=new dt).__a=function(t){var e=this,r=Us(e.__v),n=e.l.get(t);return n[0]++,function(i){var o=function(){e.props.revealOrder?(n.push(i),Vs(e,t,n)):i()};r?r(o):o()}},Ir.prototype.render=function(t){this.i=null,this.l=new Map;var e=xt(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){Vs(t,r,e)})};var Bs=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,nc=/^(?: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]/,ic=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,oc=/[A-Z0-9]/g,sc=typeof document!="undefined",ac=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Hs(t,e,r){return e.__k==null&&(e.textContent=""),dr(t,e),typeof r=="function"&&r(),t?t.__c:null}function Ws(t,e,r){return gs(t,e),typeof r=="function"&&r(),t?t.__c:null}dt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(dt.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var js=oe.event;function lc(){}function cc(){return this.cancelBubble}function dc(){return this.defaultPrevented}oe.event=function(t){return js&&(t=js(t)),t.persist=lc,t.isPropagationStopped=cc,t.isDefaultPrevented=dc,t.nativeEvent=t};var Gi,uc={enumerable:!1,configurable:!0,get:function(){return this.class}},zs=oe.vnode;oe.vnode=function(t){typeof t.type=="string"&&(function(e){var r=e.props,n=e.type,i={},o=n.indexOf("-")===-1;for(var s in r){var a=r[s];if(!(s==="value"&&"defaultValue"in r&&a==null||sc&&s==="children"&&n==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in r&&r.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||ac(r.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":ic.test(s)&&(s=l):l=s="oninput":o&&nc.test(s)?s=s.replace(oc,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[s=l]&&(s="oninputCapture"),i[s]=a}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=xt(r.children).forEach(function(d){d.props.selected=i.value.indexOf(d.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=xt(r.children).forEach(function(d){d.props.selected=i.multiple?i.defaultValue.indexOf(d.props.value)!=-1:i.defaultValue==d.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",uc)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),e.props=i})(t),t.$$typeof=Bs,zs&&zs(t)};var Ks=oe.__r;oe.__r=function(t){Ks&&Ks(t),Gi=t.__c};var Gs=oe.diffed;oe.diffed=function(t){Gs&&Gs(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 qs={ReactCurrentDispatcher:{current:{readContext:function(t){return Gi.__n[t.__c].props.value},useCallback:Mi,useContext:Jr,useDebugValue:Fi,useDeferredValue:ji,useEffect:st,useId:Ui,useImperativeHandle:Pi,useInsertionEffect:Ki,useLayoutEffect:Jt,useMemo:Yr,useReducer:vn,useRef:at,useState:Ue,useSyncExternalStore:Bi,useTransition:zi}}},fc="18.3.1";function Zs(t){return Ct.bind(null,t)}function Qr(t){return!!t&&t.$$typeof===Bs}function Ys(t){return Qr(t)&&t.type===ze}function Js(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Xs(t){return Qr(t)?Zl.apply(null,arguments):t}function Qs(t){return!!t.__k&&(dr(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=ze,ia=Qr,ue={useState:Ue,useId:Ui,useReducer:vn,useEffect:st,useLayoutEffect:Jt,useInsertionEffect:Ki,useTransition:zi,useDeferredValue:ji,useSyncExternalStore:Bi,startTransition:Wi,useRef:at,useImperativeHandle:Pi,useMemo:Yr,useCallback:Mi,useContext:Jr,useDebugValue:Fi,version:"18.3.1",Children:Ds,render:Hs,hydrate:Ws,unmountComponentAtNode:Qs,createPortal:$s,createElement:Ct,createContext:Ni,createFactory:Zs,cloneElement:Xs,createRef:ls,Fragment:ze,isValidElement:Qr,isElement:ia,isFragment:Ys,isMemo:Js,findDOMNode:ea,Component:dt,PureComponent:bn,memo:xs,forwardRef:ks,flushSync:ra,unstable_batchedUpdates:ta,StrictMode:na,Suspense:Xr,SuspenseList:Ir,lazy:Ls,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qs};const hc=Object.freeze(Object.defineProperty({__proto__:null,Children:Ds,Component:dt,Fragment:ze,PureComponent:bn,StrictMode:na,Suspense:Xr,SuspenseList:Ir,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qs,cloneElement:Xs,createContext:Ni,createElement:Ct,createFactory:Zs,createPortal:$s,createRef:ls,default:ue,findDOMNode:ea,flushSync:ra,forwardRef:ks,hydrate:Ws,isElement:ia,isFragment:Ys,isMemo:Js,isValidElement:Qr,lazy:Ls,memo:xs,render:Hs,startTransition:Wi,unmountComponentAtNode:Qs,unstable_batchedUpdates:ta,useCallback:Mi,useContext:Jr,useDebugValue:Fi,useDeferredValue:ji,useEffect:st,useErrorBoundary:Yl,useId:Ui,useImperativeHandle:Pi,useInsertionEffect:Ki,useLayoutEffect:Jt,useMemo:Yr,useReducer:vn,useRef:at,useState:Ue,useSyncExternalStore:Bi,useTransition:zi,version:fc},Symbol.toStringTag,{value:"Module"})),pc=t=>t;function _c(t,e=pc){const r=ue.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return ue.useDebugValue(r),r}const oa=t=>{const e=Wl(t),r=n=>_c(e,n);return Object.assign(r,e),r},mc=t=>t?oa(t):oa;function gc(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(o){}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 wc=gc(hc);var en={exports:{}},vc=en.exports,sa;function yc(){return sa||(sa=1,(function(t,e){(function(r,n){var i="1.0.41",o="",s="?",a="function",l="undefined",d="object",p="string",f="major",c="model",g="name",w="type",h="vendor",m="version",C="architecture",S="console",b="mobile",O="tablet",k="smarttv",N="wearable",R="embedded",le=500,me="Amazon",ce="Apple",Z="ASUS",H="BlackBerry",K="Browser",fe="Chrome",de="Edge",ve="Firefox",ye="Google",ee="Honor",z="Huawei",U="Lenovo",Y="LG",te="Microsoft",Te="Motorola",re="Nvidia",$="OnePlus",Q="Opera",Ke="OPPO",Je="Samsung",mt="Sharp",it="Sony",zt="Xiaomi",gt="Zebra",Qt="Facebook",Kt="Chromium OS",Et="Mac OS",Gt=" Browser",er=function(J,se){var j={};for(var ge in J)se[ge]&&se[ge].length%2===0?j[ge]=se[ge].concat(J[ge]):j[ge]=J[ge];return j},Tt=function(J){for(var se={},j=0;j<J.length;j++)se[J[j].toUpperCase()]=J[j];return se},lt=function(J,se){return typeof J===p?y(se).indexOf(y(J))!==-1:!1},y=function(J){return J.toLowerCase()},I=function(J){return typeof J===p?J.replace(/[^\d\.]/g,o).split(".")[0]:n},x=function(J,se){if(typeof J===p)return J=J.replace(/^\s\s*/,o),typeof se===l?J:J.substring(0,le)},V=function(J,se){for(var j=0,ge,Ge,Pe,pe,q,Xe;j<se.length&&!q;){var tr=se[j],gr=se[j+1];for(ge=Ge=0;ge<tr.length&&!q&&tr[ge];)if(q=tr[ge++].exec(J),q)for(Pe=0;Pe<gr.length;Pe++)Xe=q[++Ge],pe=gr[Pe],typeof pe===d&&pe.length>0?pe.length===2?typeof pe[1]==a?this[pe[0]]=pe[1].call(this,Xe):this[pe[0]]=pe[1]:pe.length===3?typeof pe[1]===a&&!(pe[1].exec&&pe[1].test)?this[pe[0]]=Xe?pe[1].call(this,Xe,pe[2]):n:this[pe[0]]=Xe?Xe.replace(pe[1],pe[2]):n:pe.length===4&&(this[pe[0]]=Xe?pe[3].call(this,Xe.replace(pe[1],pe[2])):n):this[pe]=Xe||n;j+=2}},P=function(J,se){for(var j in se)if(typeof se[j]===d&&se[j].length>0){for(var ge=0;ge<se[j].length;ge++)if(lt(se[j][ge],J))return j===s?n:j}else if(lt(se[j],J))return j===s?n:j;return se.hasOwnProperty("*")?se["*"]:J},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","?":"/"},W={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"},ne={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[g,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[g,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[g,m],[/opios[\/ ]+([\w\.]+)/i],[m,[g,Q+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[g,Q+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[g,Q]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[g,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[g,"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],[g,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[g,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[g,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[g,"UC"+K]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[g,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[g,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[g,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[g,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[g,"Smart Lenovo "+K]],[/(avast|avg)\/([\w\.]+)/i],[[g,/(.+)/,"$1 Secure "+K],m],[/\bfocus\/([\w\.]+)/i],[m,[g,ve+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[g,Q+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[g,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[g,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[g,Q+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[g,"MIUI"+Gt]],[/fxios\/([\w\.-]+)/i],[m,[g,ve]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[g,"360"]],[/\b(qq)\/([\w\.]+)/i],[[g,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[g,/(.+)/,"$1"+Gt],m],[/samsungbrowser\/([\w\.]+)/i],[m,[g,Je+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[g,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[g,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[g,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[g],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,g],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[g,Qt],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],[g,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[g,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[g,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[g,fe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[g,fe+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[g,"Android "+K]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[g,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[g,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,g],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[g,[m,P,M]],[/(webkit|khtml)\/([\w\.]+)/i],[g,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[g,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[g,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[g,ve+" 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],[g,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[g,[m,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[C,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[C,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[C,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[C,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[C,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[C,/ower/,o,y]],[/ sun4\w[;\)]/i],[[C,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[C,y]]],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],[c,[h,Je],[w,O]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[c,[h,Je],[w,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[h,ce],[w,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[h,ce],[w,O]],[/(macintosh);/i],[c,[h,ce]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[h,mt],[w,b]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[c,[h,ee],[w,O]],[/honor([-\w ]+)[;\)]/i],[c,[h,ee],[w,b]],[/\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],[c,[h,z],[w,O]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[h,z],[w,b]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[c,/_/g," "],[h,zt],[w,O]],[/\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],[[c,/_/g," "],[h,zt],[w,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[h,Ke],[w,b]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[c,[h,P,{OnePlus:["304","403","203"],"*":Ke}],[w,O]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[h,"Vivo"],[w,b]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[h,"Realme"],[w,b]],[/\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],[c,[h,Te],[w,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[h,Te],[w,O]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[h,Y],[w,O]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[h,Y],[w,b]],[/(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],[c,[h,U],[w,O]],[/(nokia) (t[12][01])/i],[h,c,[w,O]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[c,/_/g," "],[w,b],[h,"Nokia"]],[/(pixel (c|tablet))\b/i],[c,[h,ye],[w,O]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[h,ye],[w,b]],[/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],[c,[h,it],[w,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[h,it],[w,O]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[h,$],[w,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[h,me],[w,O]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[h,me],[w,b]],[/(playbook);[-\w\),; ]+(rim)/i],[c,h,[w,O]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[h,H],[w,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[h,Z],[w,O]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[h,Z],[w,b]],[/(nexus 9)/i],[c,[h,"HTC"],[w,O]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[c,/_/g," "],[w,b]],[/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],[c,[h,"TCL"],[w,O]],[/(itel) ((\w+))/i],[[h,y],c,[w,P,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[h,"Acer"],[w,O]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[h,"Meizu"],[w,b]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[h,"Ulefone"],[w,b]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[h,"Energizer"],[w,b]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[h,"Cat"],[w,b]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[h,"Smartfren"],[w,b]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[h,"Nothing"],[w,b]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[c,[h,"Archos"],[w,O]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[c,[h,"Archos"],[w,b]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[h,c,[w,O]],[/(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],[h,c,[w,b]],[/(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],[h,c,[w,O]],[/(surface duo)/i],[c,[h,te],[w,O]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[h,"Fairphone"],[w,b]],[/(u304aa)/i],[c,[h,"AT&T"],[w,b]],[/\bsie-(\w*)/i],[c,[h,"Siemens"],[w,b]],[/\b(rct\w+) b/i],[c,[h,"RCA"],[w,O]],[/\b(venue[\d ]{2,7}) b/i],[c,[h,"Dell"],[w,O]],[/\b(q(?:mv|ta)\w+) b/i],[c,[h,"Verizon"],[w,O]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[h,"Barnes & Noble"],[w,O]],[/\b(tm\d{3}\w+) b/i],[c,[h,"NuVision"],[w,O]],[/\b(k88) b/i],[c,[h,"ZTE"],[w,O]],[/\b(nx\d{3}j) b/i],[c,[h,"ZTE"],[w,b]],[/\b(gen\d{3}) b.+49h/i],[c,[h,"Swiss"],[w,b]],[/\b(zur\d{3}) b/i],[c,[h,"Swiss"],[w,O]],[/\b((zeki)?tb.*\b) b/i],[c,[h,"Zeki"],[w,O]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],c,[w,O]],[/\b(ns-?\w{0,9}) b/i],[c,[h,"Insignia"],[w,O]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[h,"NextBook"],[w,O]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],c,[w,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],c,[w,b]],[/\b(ph-1) /i],[c,[h,"Essential"],[w,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[h,"Envizen"],[w,O]],[/\b(trio[-\w\. ]+) b/i],[c,[h,"MachSpeed"],[w,O]],[/\btu_(1491) b/i],[c,[h,"Rotor"],[w,O]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[c,[h,re],[w,O]],[/(sprint) (\w+)/i],[h,c,[w,b]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[h,te],[w,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[h,gt],[w,O]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[h,gt],[w,b]],[/smart-tv.+(samsung)/i],[h,[w,k]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[h,Je],[w,k]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,Y],[w,k]],[/(apple) ?tv/i],[h,[c,ce+" TV"],[w,k]],[/crkey/i],[[c,fe+"cast"],[h,ye],[w,k]],[/droid.+aft(\w+)( bui|\))/i],[c,[h,me],[w,k]],[/(shield \w+ tv)/i],[c,[h,re],[w,k]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[h,mt],[w,k]],[/(bravia[\w ]+)( bui|\))/i],[c,[h,it],[w,k]],[/(mi(tv|box)-?\w+) bui/i],[c,[h,zt],[w,k]],[/Hbbtv.*(technisat) (.*);/i],[h,c,[w,k]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,x],[c,x],[w,k]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[c,[w,k]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[w,k]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,c,[w,S]],[/droid.+; (shield)( bui|\))/i],[c,[h,re],[w,S]],[/(playstation \w+)/i],[c,[h,it],[w,S]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[h,te],[w,S]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[c,[h,Je],[w,N]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[h,c,[w,N]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[c,[h,Ke],[w,N]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[h,ce],[w,N]],[/(opwwe\d{3})/i],[c,[h,$],[w,N]],[/(moto 360)/i],[c,[h,Te],[w,N]],[/(smartwatch 3)/i],[c,[h,it],[w,N]],[/(g watch r)/i],[c,[h,Y],[w,N]],[/droid.+; (wt63?0{2,3})\)/i],[c,[h,gt],[w,N]],[/droid.+; (glass) \d/i],[c,[h,ye],[w,N]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,c,[w,N]],[/; (quest( \d| pro)?)/i],[c,[h,Qt],[w,N]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[w,R]],[/(aeobc)\b/i],[c,[h,me],[w,R]],[/(homepod).+mac os/i],[c,[h,ce],[w,R]],[/windows iot/i],[[w,R]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[w,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[w,O]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[w,O]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[w,b]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[c,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[g,de+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[g,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[g,"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],[g,m],[/ladybird\//i],[[g,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,g]],os:[[/microsoft (windows) (vista|xp)/i],[g,m],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[g,[m,P,W]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,P,W],[g,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[g,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[g,Et],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,g],[/(ubuntu) ([\w\.]+) like android/i],[[g,/(.+)/,"$1 Touch"],m],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[g,m],[/\(bb(10);/i],[m,[g,H]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[g,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[g,ve+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[g,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[g,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[g,fe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[g,Kt],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],[g,m],[/(sunos) ?([\w\.\d]*)/i],[[g,"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],[g,m]]},G=function(J,se){if(typeof J===d&&(se=J,J=n),!(this instanceof G))return new G(J,se).getResult();var j=typeof r!==l&&r.navigator?r.navigator:n,ge=J||(j&&j.userAgent?j.userAgent:o),Ge=j&&j.userAgentData?j.userAgentData:n,Pe=se?er(ne,se):ne,pe=j&&j.userAgent==ge;return this.getBrowser=function(){var q={};return q[g]=n,q[m]=n,V.call(q,ge,Pe.browser),q[f]=I(q[m]),pe&&j&&j.brave&&typeof j.brave.isBrave==a&&(q[g]="Brave"),q},this.getCPU=function(){var q={};return q[C]=n,V.call(q,ge,Pe.cpu),q},this.getDevice=function(){var q={};return q[h]=n,q[c]=n,q[w]=n,V.call(q,ge,Pe.device),pe&&!q[w]&&Ge&&Ge.mobile&&(q[w]=b),pe&&q[c]=="Macintosh"&&j&&typeof j.standalone!==l&&j.maxTouchPoints&&j.maxTouchPoints>2&&(q[c]="iPad",q[w]=O),q},this.getEngine=function(){var q={};return q[g]=n,q[m]=n,V.call(q,ge,Pe.engine),q},this.getOS=function(){var q={};return q[g]=n,q[m]=n,V.call(q,ge,Pe.os),pe&&!q[g]&&Ge&&Ge.platform&&Ge.platform!="Unknown"&&(q[g]=Ge.platform.replace(/chrome os/i,Kt).replace(/macos/i,Et)),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===p&&q.length>le?x(q,le):q,this},this.setUA(ge),this};G.VERSION=i,G.BROWSER=Tt([g,m,f]),G.CPU=Tt([C]),G.DEVICE=Tt([c,h,w,S,b,k,O,N,R]),G.ENGINE=G.OS=Tt([g,m]),t.exports&&(e=t.exports=G),e.UAParser=G;var we=typeof r!==l&&(r.jQuery||r.Zepto);if(we&&!we.ua){var We=new G;we.ua=We.getResult(),we.ua.get=function(){return We.getUA()},we.ua.set=function(J){We.setUA(J);var se=We.getResult();for(var j in se)we.ua[j]=se[j]}}})(typeof window=="object"?window:vc)})(en,en.exports)),en.exports}var aa;function bc(){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=wc,r=t(e),n=yc(),i=new n,o=i.getBrowser(),s=i.getCPU(),a=i.getDevice(),l=i.getEngine(),d=i.getOS(),p=i.getUA(),f=function(_){return i.setUA(_)},c=function(_){if(!_){console.error("No userAgent string was provided");return}var v=new n(_);return{UA:v,browser:v.getBrowser(),cpu:v.getCPU(),device:v.getDevice(),engine:v.getEngine(),os:v.getOS(),ua:v.getUA(),setUserAgent:function(D){return v.setUA(D)}}},g=Object.freeze({ClientUAInstance:i,browser:o,cpu:s,device:a,engine:l,os:d,ua:p,setUa:f,parseUserAgent:c});function w(E,_){var v=Object.keys(E);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(E);_&&(A=A.filter(function(D){return Object.getOwnPropertyDescriptor(E,D).enumerable})),v.push.apply(v,A)}return v}function h(E){for(var _=1;_<arguments.length;_++){var v=arguments[_]!=null?arguments[_]:{};_%2?w(Object(v),!0).forEach(function(A){O(E,A,v[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(v)):w(Object(v)).forEach(function(A){Object.defineProperty(E,A,Object.getOwnPropertyDescriptor(v,A))})}return E}function m(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(_){return typeof _}:m=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},m(E)}function C(E,_){if(!(E instanceof _))throw new TypeError("Cannot call a class as a function")}function S(E,_){for(var v=0;v<_.length;v++){var A=_[v];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}function b(E,_,v){return _&&S(E.prototype,_),E}function O(E,_,v){return _ in E?Object.defineProperty(E,_,{value:v,enumerable:!0,configurable:!0,writable:!0}):E[_]=v,E}function k(){return k=Object.assign||function(E){for(var _=1;_<arguments.length;_++){var v=arguments[_];for(var A in v)Object.prototype.hasOwnProperty.call(v,A)&&(E[A]=v[A])}return E},k.apply(this,arguments)}function N(E,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(_&&_.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),_&&le(E,_)}function R(E){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)},R(E)}function le(E,_){return le=Object.setPrototypeOf||function(A,D){return A.__proto__=D,A},le(E,_)}function me(E,_){if(E==null)return{};var v={},A=Object.keys(E),D,_e;for(_e=0;_e<A.length;_e++)D=A[_e],!(_.indexOf(D)>=0)&&(v[D]=E[D]);return v}function ce(E,_){if(E==null)return{};var v=me(E,_),A,D;if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(E);for(D=0;D<_e.length;D++)A=_e[D],!(_.indexOf(A)>=0)&&Object.prototype.propertyIsEnumerable.call(E,A)&&(v[A]=E[A])}return v}function Z(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function H(E,_){if(_&&(typeof _=="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Z(E)}function K(E,_){return fe(E)||de(E,_)||ve(E,_)||ee()}function fe(E){if(Array.isArray(E))return E}function de(E,_){var v=E==null?null:typeof Symbol!="undefined"&&E[Symbol.iterator]||E["@@iterator"];if(v!=null){var A=[],D=!0,_e=!1,Me,tt;try{for(v=v.call(E);!(D=(Me=v.next()).done)&&(A.push(Me.value),!(_&&A.length===_));D=!0);}catch(ui){_e=!0,tt=ui}finally{try{!D&&v.return!=null&&v.return()}finally{if(_e)throw tt}}return A}}function ve(E,_){if(E){if(typeof E=="string")return ye(E,_);var v=Object.prototype.toString.call(E).slice(8,-1);if(v==="Object"&&E.constructor&&(v=E.constructor.name),v==="Map"||v==="Set")return Array.from(E);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return ye(E,_)}}function ye(E,_){(_==null||_>E.length)&&(_=E.length);for(var v=0,A=new Array(_);v<_;v++)A[v]=E[v];return A}function ee(){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"},Y={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},te={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Te=function(_){switch(_){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 te}},re=function(_){return f(_)},$=function(_){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return _||v},Q=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},Ke=function(_){var v=Q();return v&&v.platform&&(v.platform.indexOf(_)!==-1||v.platform==="MacIntel"&&v.maxTouchPoints>1&&!window.MSStream)},Je=function(_,v,A,D,_e){return{isBrowser:_,browserMajorVersion:$(v.major),browserFullVersion:$(v.version),browserName:$(v.name),engineName:$(A.name),engineVersion:$(A.version),osName:$(D.name),osVersion:$(D.version),userAgent:$(_e)}},mt=function(_,v,A,D){return h({},_,{vendor:$(v.vendor),model:$(v.model),os:$(A.name),osVersion:$(A.version),ua:$(D)})},it=function(_,v,A,D){return{isSmartTV:_,engineName:$(v.name),engineVersion:$(v.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(D)}},zt=function(_,v,A,D){return{isConsole:_,engineName:$(v.name),engineVersion:$(v.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(D)}},gt=function(_,v,A,D){return{isWearable:_,engineName:$(v.name),engineVersion:$(v.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(D)}},Qt=function(_,v,A,D,_e){return{isEmbedded:_,vendor:$(v.vendor),model:$(v.model),engineName:$(A.name),engineVersion:$(A.version),osName:$(D.name),osVersion:$(D.version),userAgent:$(_e)}};function Kt(E){var _=E?c(E):g,v=_.device,A=_.browser,D=_.engine,_e=_.os,Me=_.ua,tt=Te(v.type),ui=tt.isBrowser,v1=tt.isMobile,y1=tt.isTablet,al=tt.isSmartTV,ll=tt.isConsole,cl=tt.isWearable,dl=tt.isEmbedded;if(ui)return Je(ui,A,D,_e,Me);if(al)return it(al,D,_e,Me);if(ll)return zt(ll,D,_e,Me);if(v1||y1)return mt(tt,v,_e,Me);if(cl)return gt(cl,D,_e,Me);if(dl)return Qt(dl,v,D,_e,Me)}var Et=function(_){var v=_.type;return v===z.Mobile},Gt=function(_){var v=_.type;return v===z.Tablet},er=function(_){var v=_.type;return v===z.Mobile||v===z.Tablet},Tt=function(_){var v=_.type;return v===z.SmartTv},lt=function(_){var v=_.type;return v===z.Browser},y=function(_){var v=_.type;return v===z.Wearable},I=function(_){var v=_.type;return v===z.Console},x=function(_){var v=_.type;return v===z.Embedded},V=function(_){var v=_.vendor;return $(v)},P=function(_){var v=_.model;return $(v)},M=function(_){var v=_.type;return $(v,"browser")},W=function(_){var v=_.name;return v===Y.Android},ne=function(_){var v=_.name;return v===Y.Windows},G=function(_){var v=_.name;return v===Y.MAC_OS},we=function(_){var v=_.name;return v===Y.WindowsPhone},We=function(_){var v=_.name;return v===Y.IOS},J=function(_){var v=_.version;return $(v)},se=function(_){var v=_.name;return $(v)},j=function(_){var v=_.name;return v===U.Chrome},ge=function(_){var v=_.name;return v===U.Firefox},Ge=function(_){var v=_.name;return v===U.Chromium},Pe=function(_){var v=_.name;return v===U.Edge},pe=function(_){var v=_.name;return v===U.Yandex},q=function(_){var v=_.name;return v===U.Safari||v===U.MobileSafari},Xe=function(_){var v=_.name;return v===U.MobileSafari},tr=function(_){var v=_.name;return v===U.Opera},gr=function(_){var v=_.name;return v===U.InternetExplorer||v===U.Ie},Vn=function(_){var v=_.name;return v===U.MIUI},$n=function(_){var v=_.name;return v===U.SamsungBrowser},Bn=function(_){var v=_.version;return $(v)},Hn=function(_){var v=_.major;return $(v)},Wn=function(_){var v=_.name;return $(v)},jn=function(_){var v=_.name;return $(v)},zn=function(_){var v=_.version;return $(v)},Kn=function(){var _=Q(),v=_&&_.userAgent&&_.userAgent.toLowerCase();return typeof v=="string"?/electron/.test(v):!1},rr=function(_){return typeof _=="string"&&_.indexOf("Edg/")!==-1},Gn=function(){var _=Q();return _&&(/iPad|iPhone|iPod/.test(_.platform)||_.platform==="MacIntel"&&_.maxTouchPoints>1)&&!window.MSStream},ct=function(){return Ke("iPad")},qn=function(){return Ke("iPhone")},Zn=function(){return Ke("iPod")},Yn=function(_){return $(_)};function Jn(E){var _=E||g,v=_.device,A=_.browser,D=_.os,_e=_.engine,Me=_.ua;return{isSmartTV:Tt(v),isConsole:I(v),isWearable:y(v),isEmbedded:x(v),isMobileSafari:Xe(A)||ct(),isChromium:Ge(A),isMobile:er(v)||ct(),isMobileOnly:Et(v),isTablet:Gt(v)||ct(),isBrowser:lt(v),isDesktop:lt(v),isAndroid:W(D),isWinPhone:we(D),isIOS:We(D)||ct(),isChrome:j(A),isFirefox:ge(A),isSafari:q(A),isOpera:tr(A),isIE:gr(A),osVersion:J(D),osName:se(D),fullBrowserVersion:Bn(A),browserVersion:Hn(A),browserName:Wn(A),mobileVendor:V(v),mobileModel:P(v),engineName:jn(_e),engineVersion:zn(_e),getUA:Yn(Me),isEdge:Pe(A)||rr(Me),isYandex:pe(A),deviceType:M(v),isIOS13:Gn(),isIPad13:ct(),isIPhone13:qn(),isIPod13:Zn(),isElectron:Kn(),isEdgeChromium:rr(Me),isLegacyEdge:Pe(A)&&!rr(Me),isWindows:ne(D),isMacOs:G(D),isMIUI:Vn(A),isSamsungBrowser:$n(A)}}var Xn=Tt(a),Qn=I(a),ei=y(a),bo=x(a),So=Xe(o)||ct(),Co=Ge(o),Nr=er(a)||ct(),ti=Et(a),ri=Gt(a)||ct(),ni=lt(a),Eo=lt(a),ii=W(d),oi=we(d),si=We(d)||ct(),To=j(o),Io=ge(o),Oo=q(o),Ao=tr(o),ai=gr(o),xo=J(d),Ro=se(d),ko=Bn(o),No=Hn(o),Do=Wn(o),Po=V(a),Mo=P(a),Fo=jn(l),Uo=zn(l),Lo=Yn(p),It=Pe(o)||rr(p),Vo=pe(o),ie=M(a),wt=Gn(),Dr=ct(),li=qn(),ci=Zn(),di=Kn(),Ju=rr(p),Xu=Pe(o)&&!rr(p),Qu=ne(d),e1=G(d),t1=Vn(o),r1=$n(o),n1=function(_){if(!_||typeof _!="string"){console.error("No valid user agent string was provided");return}var v=c(_),A=v.device,D=v.browser,_e=v.os,Me=v.engine,tt=v.ua;return Jn({device:A,browser:D,os:_e,engine:Me,ua:tt})},i1=function(_){var v=_.renderWithFragment,A=_.children,D=ce(_,["renderWithFragment","children"]);return ii?v?r.createElement(e.Fragment,null,A):r.createElement("div",D,A):null},o1=function(_){var v=_.renderWithFragment,A=_.children,D=ce(_,["renderWithFragment","children"]);return ni?v?r.createElement(e.Fragment,null,A):r.createElement("div",D,A):null},s1=function(_){var v=_.renderWithFragment,A=_.children,D=ce(_,["renderWithFragment","children"]);return ai?v?r.createElement(e.Fragment,null,A):r.createElement("div",D,A):null},a1=function(_){var v=_.renderWithFragment,A=_.children,D=ce(_,["renderWithFragment","children"]);return si?v?r.createElement(e.Fragment,null,A):r.createElement("div",D,A):null},l1=function(_){var v=_.renderWithFragment,A=_.children,D=ce(_,["renderWithFragment","children"]);return Nr?v?r.createElement(e.Fragment,null,A):r.createElement("div",D,A):null},c1=function(_){var v=_.renderWithFragment,A=_.children,D=ce(_,["renderWithFragment","children"]);return ri?v?r.createElement(e.Fragment,null,A):r.createElement("div",D,A):null},d1=function(_){var v=_.renderWithFragment,A=_.children,D=ce(_,["renderWithFragment","children"]);return oi?v?r.createElement(e.Fragment,null,A):r.createElement("div",D,A):null},u1=function(_){var v=_.renderWithFragment,A=_.children;_.viewClassName,_.style;var D=ce(_,["renderWithFragment","children","viewClassName","style"]);return ti?v?r.createElement(e.Fragment,null,A):r.createElement("div",D,A):null},f1=function(_){var v=_.renderWithFragment,A=_.children,D=ce(_,["renderWithFragment","children"]);return Xn?v?r.createElement(e.Fragment,null,A):r.createElement("div",D,A):null},h1=function(_){var v=_.renderWithFragment,A=_.children,D=ce(_,["renderWithFragment","children"]);return Qn?v?r.createElement(e.Fragment,null,A):r.createElement("div",D,A):null},p1=function(_){var v=_.renderWithFragment,A=_.children,D=ce(_,["renderWithFragment","children"]);return ei?v?r.createElement(e.Fragment,null,A):r.createElement("div",D,A):null},_1=function(_){var v=_.renderWithFragment,A=_.children;_.viewClassName,_.style;var D=_.condition,_e=ce(_,["renderWithFragment","children","viewClassName","style","condition"]);return D?v?r.createElement(e.Fragment,null,A):r.createElement("div",_e,A):null};function m1(E){return(function(_){N(v,_);function v(A){var D;return C(this,v),D=H(this,R(v).call(this,A)),D.isEventListenerAdded=!1,D.handleOrientationChange=D.handleOrientationChange.bind(Z(D)),D.onOrientationChange=D.onOrientationChange.bind(Z(D)),D.onPageLoad=D.onPageLoad.bind(Z(D)),D.state={isLandscape:!1,isPortrait:!1},D}return b(v,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var D=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:D===0,isLandscape:D===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&&Nr&&(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}))}}]),v})(r.Component)}function g1(){var E=e.useState(function(){var _e=window.innerWidth>window.innerHeight?90:0;return{isPortrait:_e===0,isLandscape:_e===90,orientation:_e===0?"portrait":"landscape"}}),_=K(E,2),v=_[0],A=_[1],D=e.useCallback(function(){var _e=window.innerWidth>window.innerHeight?90:0,Me={isPortrait:_e===0,isLandscape:_e===90,orientation:_e===0?"portrait":"landscape"};v.orientation!==Me.orientation&&A(Me)},[v.orientation]);return e.useEffect(function(){return(typeof window=="undefined"?"undefined":m(window))!==void 0&&Nr&&(D(),window.addEventListener("load",D,!1),window.addEventListener("resize",D,!1)),function(){window.removeEventListener("resize",D,!1),window.removeEventListener("load",D,!1)}},[D]),v}function sl(E){var _=E||window.navigator.userAgent;return c(_)}function w1(E){var _=E||window.navigator.userAgent,v=sl(_),A=Jn(v);return[A,v]}return B.AndroidView=i1,B.BrowserTypes=U,B.BrowserView=o1,B.ConsoleView=h1,B.CustomView=_1,B.IEView=s1,B.IOSView=a1,B.MobileOnlyView=u1,B.MobileView=l1,B.OsTypes=Y,B.SmartTVView=f1,B.TabletView=c1,B.WearableView=p1,B.WinPhoneView=d1,B.browserName=Do,B.browserVersion=No,B.deviceDetect=Kt,B.deviceType=ie,B.engineName=Fo,B.engineVersion=Uo,B.fullBrowserVersion=ko,B.getSelectorsByUserAgent=n1,B.getUA=Lo,B.isAndroid=ii,B.isBrowser=ni,B.isChrome=To,B.isChromium=Co,B.isConsole=Qn,B.isDesktop=Eo,B.isEdge=It,B.isEdgeChromium=Ju,B.isElectron=di,B.isEmbedded=bo,B.isFirefox=Io,B.isIE=ai,B.isIOS=si,B.isIOS13=wt,B.isIPad13=Dr,B.isIPhone13=li,B.isIPod13=ci,B.isLegacyEdge=Xu,B.isMIUI=t1,B.isMacOs=e1,B.isMobile=Nr,B.isMobileOnly=ti,B.isMobileSafari=So,B.isOpera=Ao,B.isSafari=Oo,B.isSamsungBrowser=r1,B.isSmartTV=Xn,B.isTablet=ri,B.isWearable=ei,B.isWinPhone=oi,B.isWindows=Qu,B.isYandex=Vo,B.mobileModel=Mo,B.mobileVendor=Po,B.osName=Ro,B.osVersion=xo,B.parseUserAgent=c,B.setUserAgent=re,B.useDeviceData=sl,B.useDeviceSelectors=w1,B.useMobileOrientation=g1,B.withOrientationChange=m1,B}var Qe=bc();const Sc=(t,e)=>qi(t,e),qi=(t,e)=>{const r=Zi(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]=Zi(i,e);else if(Array.isArray(i)){const o=i.map(s=>typeof s=="object"?qi(s,e):s);r[n]=o}}return r},Zi=(t,e)=>{const r=Cc(t),n=t.layout;if(!n||n.length===0)return r;let i=null;if(n.forEach(o=>{const s=e[o];i?s&&Ec(s,i):i=s}),i){const o=Zi(i,e);for(const s in o)if(Object.prototype.hasOwnProperty.call(o,s)){const a=o[s];Object.prototype.hasOwnProperty.call(r,s)||(r[s]=a)}}return qi(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},Ec=(t,e)=>{for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Ve=[];for(let t=0;t<256;++t)Ve.push((t+256).toString(16).slice(1));function Tc(t,e=0){return(Ve[t[e+0]]+Ve[t[e+1]]+Ve[t[e+2]]+Ve[t[e+3]]+"-"+Ve[t[e+4]]+Ve[t[e+5]]+"-"+Ve[t[e+6]]+Ve[t[e+7]]+"-"+Ve[t[e+8]]+Ve[t[e+9]]+"-"+Ve[t[e+10]]+Ve[t[e+11]]+Ve[t[e+12]]+Ve[t[e+13]]+Ve[t[e+14]]+Ve[t[e+15]]).toLowerCase()}let Yi;const Ic=new Uint8Array(16);function Oc(){if(!Yi){if(typeof crypto=="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Yi=crypto.getRandomValues.bind(crypto)}return Yi(Ic)}const la={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ac(t,e,r){var i,o,s;t=t||{};const n=(s=(o=t.random)!=null?o:(i=t.rng)==null?void 0:i.call(t))!=null?s: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,Tc(n)}function xc(t,e,r){return la.randomUUID&&!t?la.randomUUID():Ac(t)}function Ji(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=Ji(t),r&&(r=Sc(r,e)),r};function Rc(t){return F(this,null,function*(){return new Promise(e=>setTimeout(e,t))})}function kc(i,o){return F(this,arguments,function*(t,e,r=Vl,n=$l){let s=0;for(;s<r;){const a=yield t();if(a!==null)return a;s++,s<r&&(yield Rc(n))}return e()})}const Nc=(t,e,r)=>{const n=t.reduce((o,s)=>(o.push(...s.supportedTemplates),o),[]),i=e.find(o=>o.id===r);return n.includes(i==null?void 0:i.client.templateId)},Dc=(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((s,a)=>(s.push(...a.supportedTemplates),s),[]),n=Array.from(new Set(e.filter(s=>!s.releaseClientApp&&Ll.includes(s.type)).map(s=>s.client.templateId)));function i(s,a){const l=new Set(s);return a.filter(d=>!l.has(d))}const o=i(r,n);return{isAllTemplatesSupported:o.length===0,unsupportedSteps:o.length>0?o:void 0}},fr={setAuthTokenToLs:(t,e,r,n,i)=>{const o=localStorage.getItem(zr),s=o?JSON.parse(o):{},a={authToken:t,tokenExpiresAt:i,workflowId:n,sessionId:r};s[e]=a,localStorage.setItem(zr,JSON.stringify(s))},getAuthTokenLs:()=>{const t=localStorage.getItem(zr);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(zr);if(!e)return!1;try{const r=JSON.parse(e);return Object.prototype.hasOwnProperty.call(r,t)?(delete r[t],localStorage.setItem(zr,JSON.stringify(r)),!0):!1}catch(r){return!1}}},Xi=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Qi=t=>/^[^:{}\s]+:[^:{}\s]+$/.test(t),eo={setSessionIdWorkflowIdToLs:(t,e)=>{const r=localStorage.getItem(lr);let n={};if(r)try{const i=JSON.parse(r);Xi(i)&&(n=i)}catch(i){if(Qi(r)){const[o,s]=r.split(":");o&&s&&(n={[s]:o})}}n[e]=t,localStorage.setItem(lr,JSON.stringify(n))},getSessionIdWorkflowIdFromLS:()=>{const t=localStorage.getItem(lr);if(!t)return null;try{const e=JSON.parse(t);return Xi(e)?e:null}catch(e){if(Qi(t)){const[r,n]=t.split(":");if(r&&n)return{[n]:r}}return null}},removeSessionIdWorkflowIdFromLS:({workflowId:t=""})=>{const e=localStorage.getItem(lr);if(!e)return!1;if(!t)return localStorage.removeItem(lr),!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(lr,JSON.stringify(n)),!0):!1}catch(r){if(Qi(e)){const[,n]=e.split(":");return n===t?(localStorage.removeItem(lr),!0):!1}return!1}}},Mc=t=>{var n;let e;const r=xc();try{e=(n=window.localStorage.getItem(t))!=null?n:r,window.localStorage.setItem(t,e)}catch(i){e=r}return e};function Fc(t){return Object.prototype.toString.call(t)==="[object Object]"&&Object.keys(t).length>0}function Uc(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function Lc(){return typeof document=="undefined"?null:document.documentElement.getAttribute("lang")||null}function Vc(){return typeof navigator!="undefined"?navigator.language:null}const $c=t=>{const e=Hl,r=typeof t=="string"?t:null,n=Lc(),i=Vc();return r||n||i||e},Bc=t=>{try{return new URL(t).searchParams.get("sessionId")}catch(e){return null}};function da(t){return!("error"in t)}function to(t){try{let e=t;!t.includes("://")&&t.includes(".")&&(e=`http://${t}`);const r=new URL(e),n=r.hostname,i=r.protocol==="https:",o=r.port?parseInt(r.port,10):void 0;return{host:n,isSecure:i,port:o}}catch(e){return null}}const ua=()=>{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}},Hc=t=>{const e=Mc(Bl);return{deviceId:e,metadata:{platform:"browser",osVersion:`${Qe.osVersion}`,hostAppId:ua(),host:ua(),sdkVersion:"3.2.270-nightly".trim(),name:navigator.userAgent,deviceModel:`${Qe.osName}/${Qe.osVersion} ${Qe.browserName}/${Qe.fullBrowserVersion}`,hostAppVersion:`${Qe.browserName}/${Qe.fullBrowserVersion}`,userID:e},deviceType:"browser",heartbeatCadence:0,serial:"",macAddress:""}};function Wc(){return F(this,null,function*(){if(typeof navigator=="undefined"||!("geolocation"in navigator))return null;try{return!("permissions"in navigator)||(yield navigator.permissions.query({name:"geolocation"})).state!=="granted"?null:yield new Promise(e=>{navigator.geolocation.getCurrentPosition(r=>{e({lat:r.coords.latitude,lon:r.coords.longitude})},()=>e(null))})}catch(t){return null}})}const fa={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:{},locale:"",trackLocation:!1,listener:()=>{}},jc=(t,e)=>X(T({},fa),{setApiKeyAuthTokenCollection:(r,n,i)=>{t({apiKeyAuthTokenCollection:{authToken:n,apiKey:r,tokenExpiresAt:i}})},setSessionProperties:r=>{t({sessionProperties:r})},setServiceSessionToken:r=>{t({serviceToken:r})},setListener:r=>{t({listener:r})},getCurrentSessionDataLs:()=>{const r=eo.getSessionIdWorkflowIdFromLS(),n=e().workflowId,o=r&&r[n];return n&&o?{workflowId:n,sessionId:o}:null},setCurrentSessionDataLsAndStore:r=>{eo.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?fr.removeAuthTokenLs(n):eo.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(()=>T({},fa)),setStartConfig:r=>{t(()=>({startConfig:r}))},setLocale:r=>{t(()=>({locale:r}))},setTrackLocation:r=>{t(()=>({trackLocation:r}))}});class be{constructor({errorCode:e,errorCodeKey:r,message:n,underlyingError:i,underlyingBaseError:o,domain:s,module:a,errorEnumName:l,shortDomainCode:d}){this.errorCode=e,this.errorCodeKey=r,this.message=n,this.underlyingError=i,this.underlyingBaseError=o,this.module=a,this.domain=s,this.errorEnumName=l,this.shortDomainCode=d}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 ha extends HTMLElement{}function pa(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 Sn={FORM:"form",DATA:"data"},Pt=class Pt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Wr);super({errorCode:e,errorCodeKey:o,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=bt,Pt.ERROR_ENUM_NAME="InitializeError",Pt.SHORT_CODE="IN";let Cn=Pt;const Mt=class Mt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,mn);super({errorCode:e,errorCodeKey:o,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=bt,Mt.ERROR_ENUM_NAME="TokenInitializeError",Mt.SHORT_CODE="TI";let En=Mt;const Ft=class Ft extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,vt);super({errorCode:e,errorCodeKey:o,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=bt,Ft.ERROR_ENUM_NAME="PrepareWorkflowError",Ft.SHORT_CODE="PW";let kt=Ft;const Ut=class Ut extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Le);super({errorCode:e,errorCodeKey:o,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=bt,Ut.ERROR_ENUM_NAME="ConfigureError",Ut.SHORT_CODE="CFG";let $e=Ut;const Lt=class Lt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,je);super({errorCode:e,errorCodeKey:o,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=bt,Lt.ERROR_ENUM_NAME="WorkflowError",Lt.SHORT_CODE="SC";let Ze=Lt;const Vt=class Vt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,At);super({errorCode:e,errorCodeKey:o,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=bt,Vt.ERROR_ENUM_NAME="ConnectionError",Vt.SHORT_CODE="CO";let tn=Vt;const $t=class $t extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,ot);super({errorCode:e,errorCodeKey:o,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=bt,$t.ERROR_ENUM_NAME="SessionError",$t.SHORT_CODE="SE";let rn=$t;const Bt=class Bt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Yt);super({errorCode:e,errorCodeKey:o,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=bt,Bt.ERROR_ENUM_NAME="StartSessionError",Bt.SHORT_CODE="ST";let hr=Bt;const Ht=class Ht extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,jr);super({errorCode:e,errorCodeKey:o,errorEnumName:Ht.ERROR_ENUM_NAME,module:Ht.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Ht.ERROR_ENUM_NAME,shortDomainCode:Ht.SHORT_CODE})}};Ht.MODULE=bt,Ht.ERROR_ENUM_NAME="DeinitializationError",Ht.SHORT_CODE="DE";let Tn=Ht;const Wt=class Wt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,yt);super({errorCode:e,errorCodeKey:o,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=bt,Wt.ERROR_ENUM_NAME="WorkflowPlatformError",Wt.SHORT_CODE="WPE";let In=Wt;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(o=>{const s=`ws${r?"s":""}://${e}${i?`:${i}`:""}/ws/device?Authorization=Connection%20${n}`;this.webSocket=new WebSocket(s),this.webSocket.onopen=()=>{this.connected=!0,o()},this.webSocket.onerror=()=>o(),this.webSocket.onmessage=a=>{this.callbacks.forEach(l=>l(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 ut=Or.getInstance();var zc=0;function u(t,e,r,n,i,o){e||(e={});var s,a,l=e;if("ref"in l)for(a in l={},e)a=="ref"?s=e[a]:l[a]=e[a];var d={type:t,props:l,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--zc,__i:-1,__u:0,__source:i,__self:o};if(typeof t=="function"&&(s=t.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return oe.vnode&&oe.vnode(d),d}const ro=Ni(void 0),_a=({perform:t,children:e,setIsProcessingCallback:r})=>u(ro.Provider,{value:{perform:t,setIsProcessingCallback:r},children:e}),pr=()=>{const t=Jr(ro);if(!t)throw new Error("usePerform must be used within a PerformProvider");return{perform:t.perform}},Kc=()=>{const t=Jr(ro);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"},ft={INFO:"INFO",INFO_DETAILS:"INFO_DETAILS",STATUS:"STATUS",PROGRESS:"PROGRESS",QUESTIONS:"QUESTIONS",CAMERA:"CAMERA",GALLERY:"GALLERY",GEOLOCATION:"GEOLOCATION"},On={LEFT:"LEFT",CENTER:"CENTER",RIGHT:"RIGHT"},An={ASPECT_FILL:"ASPECT_FILL",ASPECT_FIT:"ASPECT_FIT",FILL:"FILL"},Ar={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"},xn={FREE_TEXT:"FREE_TEXT",EMAIL:"EMAIL",NUMBER:"NUMBER",SECURE:"SECURE"},nn="#005fcc",Rn="idv-gui",kn={DECODING_FAILED:"DECODING_FAILED"},no={text:"text",selector:"selector",multiSelector:"multiSelector"},ma={NOT_EMPTY:"notEmpty",REGEX:"regex"};function ga(t){return t===On.CENTER?"center":t===On.RIGHT?"right":"left"}function io(t){if(typeof t=="object"&&t!==null)for(const e in t)typeof t[e]=="object"?io(t[e]):t[e]==="true"?t[e]=!0:t[e]==="false"&&(t[e]=!1);return t}function qc(t){return Object.entries(t).map(([e,r])=>({id:e,value:typeof r=="string"?r.trim():r})).filter(e=>!!e.value)}const Zc=t=>Array.isArray(t)?t.length===0:t===0?!1:!t;function ae(t){return t&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)?t:void 0}const Yc=(t,e)=>t.reduce((r,n)=>{var i,o,s;if(n.answerType===no.text&&(i=n.property)!=null&&i.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.string)return X(T({},r),{[n.id]:a.string})}if(n.answerType===no.selector&&(o=n.property)!=null&&o.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.string)return X(T({},r),{[n.id]:a.string})}if(n.answerType===no.multiSelector&&(s=n.property)!=null&&s.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.array)return X(T({},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 o=i.split(",")[1];e(o)}else r(new Error("Unexpected result type"))},n.onerror=()=>r(n.error),n.readAsDataURL(t)}),Jc=()=>F(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),va=t=>(t==null?void 0:t.some(r=>r.type==="FORM"))?Sn.FORM:Sn.DATA,ya=({indicatorColor:t})=>{const e=at(null),r=ae(t)||"#000000",n=60,i=5,o=.75,s=(n-i)/2,a=2*Math.PI*s,l=1-o,d=360/1e3;return st(()=>{if(!e.current)return;let p=!0,f=0,c=performance.now();function g(w){if(!p)return;const h=w-c;c=w,f=(f+d*h)%360,e.current&&(e.current.style.transform=`rotate(${f}deg)`),requestAnimationFrame(g)}return requestAnimationFrame(g),()=>{p=!1}},[]),u("svg",{ref:e,width:n,height:n,viewBox:`0 0 ${n} ${n}`,children:u("circle",{cx:n/2,cy:n/2,r:s,fill:"none",stroke:r,strokeWidth:i,strokeDasharray:`${a*o} ${a*l}`,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 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("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 td({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 rd({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 nd=({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 id({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 od({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 sd({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 ad({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 ld({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 ba=({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"})}),cd=({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 dd({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 ud(){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 fd=({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"})]}),hd=()=>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"})]}),pd=()=>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"})}),_d=()=>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"})]}),md=()=>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"})}),gd=({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})}),wd=({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})}),vd=({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)"})})})]}),yd=({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})})})]}),bd=()=>u("div",{}),Ce={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"},oo={[Ce.WARNING]:dd,[Ce.SPINNER]:ya,[Ce.ERROR]:Qc,[Ce.AGE]:ed,[Ce.ANDROID]:td,[Ce.ARROW]:rd,[Ce.APPLE]:nd,[Ce.BACK]:id,[Ce.BIOMETRIC]:od,[Ce.INFO]:sd,[Ce.TO_MOBILE]:ad,[Ce.UNDERAGE]:ld,[Ce.CROSS]:ba,[Ce.REGULA_LOGO]:cd,[Ce.DEFAULT]:bd,[Ce.POWERED_BY]:ud,[Ce.SUCCESS]:fd,[Ce.CIRCLE_SELECTED]:hd,[Ce.CIRCLE_NORMAL]:pd,[Ce.SQUARE_SELECTED]:_d,[Ce.SQUARE_NORMAL]:md,[Ce.SELECTED]:gd,[Ce.CHEVRON_DOWN]:wd,[Ce.CLOSE_ICON]:ba,[Ce.GALLERY_ICON]:vd,[Ce.CAMERA_ICON]:yd},Sd=({type:t,size:e,color:r})=>{const n=oo[t]||oo[Ce.DEFAULT];return u(n,{size:e,color:r})},Be=({imageId:t,imageURL:e,base64:r,contentMode:n=An.ASPECT_FILL,cornerRadius:i,backgroundColor:o})=>{const s=f=>{if(f===An.ASPECT_FILL)return"cover";if(f===An.ASPECT_FIT)return"contain";if(f===An.FILL)return"fill"},[a,l]=Ue(!0),d=a&&e,p=()=>{l(!1)};if(r)return u("img",{style:{width:"100%",height:"100%",objectFit:s(n),borderRadius:i,backgroundColor:ae(o)||"transparent",display:d?"none":"block"},src:r});if(t){const f=t in oo?t:"default";return u(Sd,{type:f})}if(e)return u(ze,{children:[d&&u("div",{style:{width:"100%",height:"100%",backgroundColor:"#e0e0e0",borderRadius:i}}),u("img",{style:{width:"100%",height:"100%",objectFit:s(n),borderRadius:i,backgroundColor:o,display:d?"none":"block"},src:e,onLoad:p})]})},Cd=({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(Be,T({},t))})}),Ed={display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"18px",height:"36px",minWidth:"36px",border:"none",cursor:"pointer"},Td=({dataTestId:t,responseBody:e,image:r,title:n,backgroundColor:i="transparent",cornerRadius:o,highlightColor:s})=>{var c;const[a,l]=Ue(!1),d=a&&s?s:i,{perform:p}=pr();return u("button",{"data-ui":"gui-close-button",part:"gui-close-button","data-test":t,onClick:()=>{const g=JSON.parse(JSON.stringify(e));io(g),p(g,Sn.DATA)},className:"hover-button",style:X(T(T({},Ed),o&&{borderRadius:o}),{backgroundColor:(c=ae(d))!=null?c:"transparent"}),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[r&&u("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"24px",height:"24px"},children:u(Be,T({},r))}),n&&u("div",{style:{padding:"0 5px"},children:u(xe,T({},n))})]})},Id=({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(Td,T({dataTestId:"close-btn"},t))})});function Od(t){var i;const e=/\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g,r=[];let n=0;for(const o of t.matchAll(e)){const[s,a,l]=o,d=(i=o.index)!=null?i:0;d>n&&r.push(t.slice(n,d));const p=l.startsWith("http")?l:`https://${l}`;r.push(u("a",{href:p,target:"_blank",rel:"noopener noreferrer",children:a},d)),n=d+s.length}return n<t.length&&r.push(t.slice(n)),r}function Sa(t){const e=t.split(`
|
|
91
|
-
`);return e.flatMap((r,n)=>{const i=Od(r);return n===e.length-1?i:[...i,u("br",{},"br-"+n)]})}const xe=({text:t,fontName:e="",fontSize:r="17px",fontColor:n,alignment:i=On.LEFT,backgroundColor:o,cornerRadius:s=0,htmlFor:a})=>{const l={fontFamily:[e,"-apple-system","BlinkMacSystemFont","sans-serif"].filter(Boolean).join(", "),fontSize:r,color:ae(n)||"#000000",textAlign:ga(i),backgroundColor:ae(o)||"transparent",borderRadius:s},d=typeof t=="string"&&t.trim()&&Sa(t);return a?u("label",{"data-ui":"gui-label",part:"gui-label",style:l,htmlFor:a,children:d}):u("div",{"data-ui":"gui-label",part:"gui-label",style:l,children:d})},Nn=({title:t,image:e,responseBody:r,backgroundColor:n="transparent",cornerRadius:i,highlightColor:o,dataTestId:s,borderColor:a,borderWidth:l,type:d="RESPONSE_BODY",onClick:p})=>{var C,S;const[f,c]=Ue(!1),g=f&&ae(o)?o:n,{perform:w}=pr(),h=b=>{if(p&&p(b),d!=="RESPONSE_BODY")return;const O=JSON.parse(JSON.stringify(r));io(O),w(O,Sn.DATA)},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&&l?"solid":void 0,backgroundColor:(C=ae(g))!=null?C:"transparent",borderColor:(S=ae(a))!=null?S:"none",borderWidth:l!=null?l:0,overflow:"hidden",transition:".3s",outlineColor:nn};return u("button",{"data-ui":"gui-button",part:"gui-button",type:d==="FORM"?"submit":"button","data-test":s,onClick:h,style:m,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[e&&u(Be,T({},e)),t&&u("div",{style:{flexGrow:e?0:1},children:u(xe,T({},t))})]})},Ad=r=>{var n=r,{items:t}=n,e=wr(n,["items"]);return u("div",{part:"gui-buttons","data-ui":"gui-buttons",style:T(T({},{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(o=>{var s;return u(Nn,T({dataTestId:"button-"+((s=o.title)==null?void 0:s.text)},o),Xc())})})},Xt=({children:t,header:e,footer:r,backgroundColor:n="white",buttons:i})=>{const o=e?60:10,s=r?30:10,a={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",justifyContent:"center",margin:"0 auto",paddingTop:e?o+10+"px":"10px",paddingBottom:r?s+10+"px":"10px",paddingLeft:"20px",paddingRight:"20px",height:"100%",width:"100%",backgroundColor:ae(n)};return u("div",{part:"gui-base-container","data-ui":"gui-base-container",id:"base-container",style:T({},a),children:[e&&u("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:o},children:u(Id,{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(Ad,{items:i}),r&&u("div",{style:{position:"absolute",bottom:"0",left:"0",width:"100%",height:s},children:u(Cd,T({},r))})]})},Dn=({text:t,fontName:e="",fontColor:r,alignment:n=On.LEFT,fontSize:i=17,backgroundColor:o,cornerRadius:s=0})=>u("div",{"data-ui":"gui-description",part:"gui-description",style:{fontFamily:[e,"-apple-system","BlinkMacSystemFont","sans-serif"].filter(Boolean).join(", "),fontSize:i,textAlign:ga(n),color:ae(r)||"#000000",borderRadius:s,backgroundColor:ae(o)||"transparent",whiteSpace:"pre-line"},children:t&&Sa(t)}),xd=({header:t,footer:e,image:r,title:n,description:i,buttons:o,backgroundColor:s})=>{const a=at(null),[l,d]=Ue(!1);return st(()=>{a.current&&d(a.current.scrollHeight>a.current.clientHeight+2)},[]),u(Xt,{header:t,buttons:o,footer:e,backgroundColor:s,children:u("div",{part:"gui-status-screen",style:{display:"flex",justifyContent:l?"flex-start":"center",alignItems:"center",alignContent:"center",flex:1,height:"100%",flexDirection:"column"},children:[r&&u("div",{style:Gc,children:u(Be,T({},r))}),(n==null?void 0:n.text)&&u("div",{ref:a,style:{width:"100%",overflow:l?"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:l?"flex-start":"center",alignItems:"center",alignContent:"center"},children:n&&u(xe,T({},n))})}),i&&u("div",{style:{lineHeight:"28px",fontWeight:"400",marginTop:"16px"},children:u(Dn,T({},i))})]})})},Rd={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:"1.68"},kd={position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Nd=({title:t,header:e,footer:r,image:n,description:i,buttons:o,backgroundColor:s})=>u(Xt,{header:e,footer:r,buttons:o,backgroundColor:s,children:u(ze,{children:u("div",{part:"gui-info-screen-container","data-ui":"gui-info-screen-container",id:"info-screen-container",style:X(T({},kd),{justifyContent:n?"flex-start":"center"}),children:[n&&u("div",{style:Rd,children:u(Be,T({},n))}),t&&u("div",{style:{marginBottom:20,lineHeight:"39.2px"},children:u(xe,T({},t))}),i&&u("div",{style:{lineHeight:"28px",fontWeight:"400"},children:u(Dn,T({},i))})]})})}),Dd=({indicatorColor:t="black"})=>u(ze,{children:u(ya,{indicatorColor:t})}),Ca=({progressView:t,footer:e,backgroundColor:r})=>u(Xt,{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(Dd,{indicatorColor:ae(t==null?void 0:t.indicatorColor)||"#000000"})})}),Pd=({title:t,description:e,image:r,backgroundColor:n,cornerRadius:i=0,isLastChild:o})=>u("div",{className:"details-item",style:X(T({},{display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderBottom:o?"none":"1px solid #E0E0E0",padding:"16px 0",gap:16}),{backgroundColor:ae(n)||"transparent",borderRadius:i}),children:[u("div",{style:{flex:"0 1 auto"},children:[u("div",{style:{marginBottom:5,fontWeight:"bold",lineHeight:"21px"},children:u(xe,T({},t))}),u("div",{style:{lineHeight:"21px",fontWeight:"400"},children:u(Dn,T({},e))})]}),u("div",{style:{aspectRatio:"1 / 1",width:120,height:120,flex:"0 0 120px"},children:u(Be,T({},r))})]}),Md={display:"flex",flexDirection:"column",padding:"0 16px"},Fd=({items:t,backgroundColor:e,cornerRadius:r=16})=>u("div",{className:"details",style:X(T({},Md),{backgroundColor:ae(e)||"white",borderRadius:r}),children:t.map((n,i)=>u(Pd,T({isLastChild:i===t.length-1},n),i))}),Ud=({title:t,header:e,footer:r,details:n,buttons:i,backgroundColor:o})=>{const s=at(null),[a,l]=Ue(!1);return st(()=>{s.current&&l(s.current.scrollHeight>s.current.clientHeight)},[]),u(Xt,{header:e,buttons:i,footer:r,backgroundColor:o,children:u("div",{style:{display:"flex",flexDirection:"column",justifyContent:a?"flex-start":"center",height:"100%",minHeight:"100%",overflow:"auto"},ref:s,children:[u("div",{style:{marginBottom:t?"16px":"0",fontWeight:400,fontSize:"28px"},children:t&&u(xe,T({},t))}),n&&u(Fd,T({},n))]})})};var on=t=>t.type==="checkbox",_r=t=>t instanceof Date,Ye=t=>t==null;const Ea=t=>typeof t=="object";var Ne=t=>!Ye(t)&&!Array.isArray(t)&&Ea(t)&&!_r(t),Ta=t=>Ne(t)&&t.target?on(t.target)?t.target.checked:t.target.value:t,Ld=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,Ia=(t,e)=>t.has(Ld(e)),Vd=t=>{const e=t.constructor&&t.constructor.prototype;return Ne(e)&&e.hasOwnProperty("isPrototypeOf")},so=typeof window!="undefined"&&typeof window.HTMLElement!="undefined"&&typeof document!="undefined";function Fe(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(!(so&&(t instanceof Blob||n))&&(r||Ne(t)))if(e=r?[]:Object.create(Object.getPrototypeOf(t)),!r&&!Vd(t))e=t;else for(const i in t)t.hasOwnProperty(i)&&(e[i]=Fe(t[i]));else return t;return e}var Pn=t=>/^\w*$/.test(t),Re=t=>t===void 0,ao=t=>Array.isArray(t)?t.filter(Boolean):[],lo=t=>ao(t.replace(/["|']|\]/g,"").split(/\.|\[/)),L=(t,e,r)=>{if(!e||!Ne(t))return r;const n=(Pn(e)?[e]:lo(e)).reduce((i,o)=>Ye(i)?i:i[o],t);return Re(n)||n===t?Re(t[e])?r:t[e]:n},rt=t=>typeof t=="boolean",Ee=(t,e,r)=>{let n=-1;const i=Pn(e)?[e]:lo(e),o=i.length,s=o-1;for(;++n<o;){const a=i[n];let l=r;if(n!==s){const d=t[a];l=Ne(d)||Array.isArray(d)?d:isNaN(+i[n+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;t[a]=l,t=t[a]}};const Mn={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ht={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Nt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Oa=ue.createContext(null);Oa.displayName="HookFormContext";const co=()=>ue.useContext(Oa);var Aa=(t,e,r,n=!0)=>{const i={defaultValues:e._defaultValues};for(const o in t)Object.defineProperty(i,o,{get:()=>{const s=o;return e._proxyFormState[s]!==ht.all&&(e._proxyFormState[s]=!n||ht.all),r&&(r[s]=!0),t[s]}});return i};const uo=typeof window!="undefined"?ue.useLayoutEffect:ue.useEffect;function $d(t){const e=co(),{control:r=e.control,disabled:n,name:i,exact:o}=t||{},[s,a]=ue.useState(r._formState),l=ue.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return uo(()=>r._subscribe({name:i,formState:l.current,exact:o,callback:d=>{!n&&a(T(T({},r._formState),d))}}),[i,n,o]),ue.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),ue.useMemo(()=>Aa(s,r,l.current,!1),[s,r])}var nt=t=>typeof t=="string",xa=(t,e,r,n,i)=>nt(t)?(n&&e.watch.add(t),L(r,t,i)):Array.isArray(t)?t.map(o=>(n&&e.watch.add(o),L(r,o))):(n&&(e.watchAll=!0),r),fo=t=>Ye(t)||!Ea(t);function Dt(t,e,r=new WeakSet){if(fo(t)||fo(e))return t===e;if(_r(t)&&_r(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 o of n){const s=t[o];if(!i.includes(o))return!1;if(o!=="ref"){const a=e[o];if(_r(s)&&_r(a)||Ne(s)&&Ne(a)||Array.isArray(s)&&Array.isArray(a)?!Dt(s,a,r):s!==a)return!1}}return!0}function Bd(t){const e=co(),{control:r=e.control,name:n,defaultValue:i,disabled:o,exact:s,compute:a}=t||{},l=ue.useRef(i),d=ue.useRef(a),p=ue.useRef(void 0);d.current=a;const f=ue.useMemo(()=>r._getWatch(n,l.current),[r,n]),[c,g]=ue.useState(d.current?d.current(f):f);return uo(()=>r._subscribe({name:n,formState:{values:!0},exact:s,callback:w=>{if(!o){const h=xa(n,r._names,w.values||r._formValues,!1,l.current);if(d.current){const m=d.current(h);Dt(m,p.current)||(g(m),p.current=m)}else g(h)}}}),[r,o,n,s]),ue.useEffect(()=>r._removeUnmounted()),c}function Hd(t){const e=co(),{name:r,disabled:n,control:i=e.control,shouldUnregister:o,defaultValue:s}=t,a=Ia(i._names.array,r),l=ue.useMemo(()=>L(i._formValues,r,L(i._defaultValues,r,s)),[i,r,s]),d=Bd({control:i,name:r,defaultValue:l,exact:!0}),p=$d({control:i,name:r,exact:!0}),f=ue.useRef(t),c=ue.useRef(void 0),g=ue.useRef(i.register(r,T(X(T({},t.rules),{value:d}),rt(t.disabled)?{disabled:t.disabled}:{})));f.current=t;const w=ue.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!L(p.errors,r)},isDirty:{enumerable:!0,get:()=>!!L(p.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!L(p.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!L(p.validatingFields,r)},error:{enumerable:!0,get:()=>L(p.errors,r)}}),[p,r]),h=ue.useCallback(b=>g.current.onChange({target:{value:Ta(b),name:r},type:Mn.CHANGE}),[r]),m=ue.useCallback(()=>g.current.onBlur({target:{value:L(i._formValues,r),name:r},type:Mn.BLUR}),[r,i._formValues]),C=ue.useCallback(b=>{const O=L(i._fields,r);O&&b&&(O._f.ref={focus:()=>b.focus&&b.focus(),select:()=>b.select&&b.select(),setCustomValidity:k=>b.setCustomValidity(k),reportValidity:()=>b.reportValidity()})},[i._fields,r]),S=ue.useMemo(()=>X(T({name:r,value:d},rt(n)||p.disabled?{disabled:p.disabled||n}:{}),{onChange:h,onBlur:m,ref:C}),[r,n,p.disabled,h,m,C,d]);return ue.useEffect(()=>{const b=i._options.shouldUnregister||o,O=c.current;O&&O!==r&&!a&&i.unregister(O),i.register(r,T(T({},f.current.rules),rt(f.current.disabled)?{disabled:f.current.disabled}:{}));const k=(N,R)=>{const le=L(i._fields,N);le&&le._f&&(le._f.mount=R)};if(k(r,!0),b){const N=Fe(L(i._options.defaultValues,r,f.current.defaultValue));Ee(i._defaultValues,r,N),Re(L(i._formValues,r))&&Ee(i._formValues,r,N)}return!a&&i.register(r),c.current=r,()=>{(a?b&&!i._state.action:b)?i.unregister(r):k(r,!1)}},[r,i,a,o]),ue.useEffect(()=>{i._setDisabledField({disabled:n,name:r})},[n,r,i]),ue.useMemo(()=>({field:S,formState:p,fieldState:w}),[S,p,w])}const Ra=t=>t.render(Hd(t));var Wd=(t,e,r,n,i)=>e?X(T({},r[t]),{types:X(T({},r[t]&&r[t].types?r[t].types:{}),{[n]:i||!0})}):{},sn=t=>Array.isArray(t)?t:[t],ka=()=>{let t=[];return{get observers(){return t},next:i=>{for(const o of t)o.next&&o.next(i)},subscribe:i=>(t.push(i),{unsubscribe:()=>{t=t.filter(o=>o!==i)}}),unsubscribe:()=>{t=[]}}};function Na(t,e){const r={};for(const n in t)if(t.hasOwnProperty(n)){const i=t[n],o=e[n];if(i&&Ne(i)&&o){const s=Na(i,o);Ne(s)&&(r[n]=s)}else t[n]&&(r[n]=o)}return r}var et=t=>Ne(t)&&!Object.keys(t).length,ho=t=>t.type==="file",pt=t=>typeof t=="function",Fn=t=>{if(!so)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},Da=t=>t.type==="select-multiple",po=t=>t.type==="radio",jd=t=>po(t)||on(t),_o=t=>Fn(t)&&t.isConnected;function zd(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=Re(t)?n++:t[e[n++]];return t}function Kd(t){for(const e in t)if(t.hasOwnProperty(e)&&!Re(t[e]))return!1;return!0}function De(t,e){const r=Array.isArray(e)?e:Pn(e)?[e]:lo(e),n=r.length===1?t:zd(t,r),i=r.length-1,o=r[i];return n&&delete n[o],i!==0&&(Ne(n)&&et(n)||Array.isArray(n)&&Kd(n))&&De(t,r.slice(0,-1)),t}var Gd=t=>{for(const e in t)if(pt(t[e]))return!0;return!1};function Pa(t){return Array.isArray(t)||Ne(t)&&!Gd(t)}function mo(t,e={}){for(const r in t)Pa(t[r])?(e[r]=Array.isArray(t[r])?[]:{},mo(t[r],e[r])):Ye(t[r])||(e[r]=!0);return e}function xr(t,e,r){r||(r=mo(e));for(const n in t)Pa(t[n])?Re(e)||fo(r[n])?r[n]=mo(t[n],Array.isArray(t[n])?[]:{}):xr(t[n],Ye(e)?{}:e[n],r[n]):r[n]=!Dt(t[n],e[n]);return r}const Ma={value:!1,isValid:!1},Fa={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&&!Re(t[0].attributes.value)?Re(t[0].value)||t[0].value===""?Fa:{value:t[0].value,isValid:!0}:Fa:Ma}return Ma},La=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:n})=>Re(t)?t:e?t===""?NaN:t&&+t:r&&nt(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 ho(e)?e.files:po(e)?$a(t.refs).value:Da(e)?[...e.selectedOptions].map(({value:r})=>r):on(e)?Ua(t.refs).value:La(Re(e.value)?t.ref.value:e.value,t)}var qd=(t,e,r,n)=>{const i={};for(const o of t){const s=L(e,o);s&&Ee(i,o,s._f)}return{criteriaMode:r,names:[...t],fields:i,shouldUseNativeValidation:n}},Un=t=>t instanceof RegExp,an=t=>Re(t)?t:Un(t)?t.source:Ne(t)?Un(t.value)?t.value.source:t.value:t,Ha=t=>({isOnSubmit:!t||t===ht.onSubmit,isOnBlur:t===ht.onBlur,isOnChange:t===ht.onChange,isOnAll:t===ht.all,isOnTouch:t===ht.onTouched});const Wa="AsyncFunction";var Zd=t=>!!t&&!!t.validate&&!!(pt(t.validate)&&t.validate.constructor.name===Wa||Ne(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===Wa)),Yd=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 ln=(t,e,r,n)=>{for(const o of r||Object.keys(t)){const s=L(t,o);if(s){const i=s,{_f:a}=i,l=wr(i,["_f"]);if(a){if(a.refs&&a.refs[0]&&e(a.refs[0],o)&&!n)return!0;if(a.ref&&e(a.ref,a.name)&&!n)return!0;if(ln(l,e))break}else if(Ne(l)&&ln(l,e))break}}};function za(t,e,r){const n=L(t,r);if(n||Pn(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const o=i.join("."),s=L(e,o),a=L(t,o);if(s&&!Array.isArray(s)&&r!==o)return{name:r};if(a&&a.type)return{name:o,error:a};if(a&&a.root&&a.root.type)return{name:`${o}.root`,error:a.root};i.pop()}return{name:r}}var Jd=(t,e,r,n)=>{r(t);const s=t,{name:i}=s,o=wr(s,["name"]);return et(o)||Object.keys(o).length>=Object.keys(e).length||Object.keys(o).find(a=>e[a]===(!n||ht.all))},Xd=(t,e,r)=>!t||!e||t===e||sn(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,eu=(t,e)=>!ao(L(t,e)).length&&De(t,e),tu=(t,e,r)=>{const n=sn(L(t,r));return Ee(n,"root",e[r]),Ee(t,r,n),t};function Ka(t,e,r="validate"){if(nt(t)||Array.isArray(t)&&t.every(nt)||rt(t)&&!t)return{type:r,message:nt(t)?t:"",ref:e}}var Rr=t=>Ne(t)&&!Un(t)?t:{value:t,message:""},Ga=(t,e,r,n,i,o)=>F(null,null,function*(){const{ref:s,refs:a,required:l,maxLength:d,minLength:p,min:f,max:c,pattern:g,validate:w,name:h,valueAsNumber:m,mount:C}=t._f,S=L(r,h);if(!C||e.has(h))return{};const b=a?a[0]:s,O=H=>{i&&b.reportValidity&&(b.setCustomValidity(rt(H)?"":H||""),b.reportValidity())},k={},N=po(s),R=on(s),le=N||R,me=(m||ho(s))&&Re(s.value)&&Re(S)||Fn(s)&&s.value===""||S===""||Array.isArray(S)&&!S.length,ce=Wd.bind(null,h,n,k),Z=(H,K,fe,de=Nt.maxLength,ve=Nt.minLength)=>{const ye=H?K:fe;k[h]=T({type:H?de:ve,message:ye,ref:s},ce(H?de:ve,ye))};if(o?!Array.isArray(S)||!S.length:l&&(!le&&(me||Ye(S))||rt(S)&&!S||R&&!Ua(a).isValid||N&&!$a(a).isValid)){const{value:H,message:K}=nt(l)?{value:!!l,message:l}:Rr(l);if(H&&(k[h]=T({type:Nt.required,message:K,ref:b},ce(Nt.required,K)),!n))return O(K),k}if(!me&&(!Ye(f)||!Ye(c))){let H,K;const fe=Rr(c),de=Rr(f);if(!Ye(S)&&!isNaN(S)){const ve=s.valueAsNumber||S&&+S;Ye(fe.value)||(H=ve>fe.value),Ye(de.value)||(K=ve<de.value)}else{const ve=s.valueAsDate||new Date(S),ye=U=>new Date(new Date().toDateString()+" "+U),ee=s.type=="time",z=s.type=="week";nt(fe.value)&&S&&(H=ee?ye(S)>ye(fe.value):z?S>fe.value:ve>new Date(fe.value)),nt(de.value)&&S&&(K=ee?ye(S)<ye(de.value):z?S<de.value:ve<new Date(de.value))}if((H||K)&&(Z(!!H,fe.message,de.message,Nt.max,Nt.min),!n))return O(k[h].message),k}if((d||p)&&!me&&(nt(S)||o&&Array.isArray(S))){const H=Rr(d),K=Rr(p),fe=!Ye(H.value)&&S.length>+H.value,de=!Ye(K.value)&&S.length<+K.value;if((fe||de)&&(Z(fe,H.message,K.message),!n))return O(k[h].message),k}if(g&&!me&&nt(S)){const{value:H,message:K}=Rr(g);if(Un(H)&&!S.match(H)&&(k[h]=T({type:Nt.pattern,message:K,ref:s},ce(Nt.pattern,K)),!n))return O(K),k}if(w){if(pt(w)){const H=yield w(S,r),K=Ka(H,b);if(K&&(k[h]=T(T({},K),ce(Nt.validate,K.message)),!n))return O(K.message),k}else if(Ne(w)){let H={};for(const K in w){if(!et(H)&&!n)break;const fe=Ka(yield w[K](S,r),b,K);fe&&(H=T(T({},fe),ce(K,fe.message)),O(fe.message),n&&(k[h]=H))}if(!et(H)&&(k[h]=T({ref:b},H),!n))return k}}return O(!0),k});const ru={mode:ht.onSubmit,reValidateMode:ht.onChange,shouldFocusError:!0};function nu(t={}){let e=T(T({},ru),t),r={submitCount:0,isDirty:!1,isReady:!1,isLoading:pt(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)?Fe(e.defaultValues||e.values)||{}:{},o=e.shouldUnregister?{}:Fe(i),s={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,d=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f=T({},p);const c={array:ka(),state:ka()},g=e.criteriaMode===ht.all,w=y=>I=>{clearTimeout(d),d=setTimeout(y,I)},h=y=>F(null,null,function*(){if(!e.disabled&&(p.isValid||f.isValid||y)){const I=e.resolver?et((yield R()).errors):yield me(n,!0);I!==r.isValid&&c.state.next({isValid:I})}}),m=(y,I)=>{!e.disabled&&(p.isValidating||p.validatingFields||f.isValidating||f.validatingFields)&&((y||Array.from(a.mount)).forEach(x=>{x&&(I?Ee(r.validatingFields,x,I):De(r.validatingFields,x))}),c.state.next({validatingFields:r.validatingFields,isValidating:!et(r.validatingFields)}))},C=(y,I=[],x,V,P=!0,M=!0)=>{if(V&&x&&!e.disabled){if(s.action=!0,M&&Array.isArray(L(n,y))){const W=x(L(n,y),V.argA,V.argB);P&&Ee(n,y,W)}if(M&&Array.isArray(L(r.errors,y))){const W=x(L(r.errors,y),V.argA,V.argB);P&&Ee(r.errors,y,W),eu(r.errors,y)}if((p.touchedFields||f.touchedFields)&&M&&Array.isArray(L(r.touchedFields,y))){const W=x(L(r.touchedFields,y),V.argA,V.argB);P&&Ee(r.touchedFields,y,W)}(p.dirtyFields||f.dirtyFields)&&(r.dirtyFields=xr(i,o)),c.state.next({name:y,isDirty:Z(y,I),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ee(o,y,I)},S=(y,I)=>{Ee(r.errors,y,I),c.state.next({errors:r.errors})},b=y=>{r.errors=y,c.state.next({errors:r.errors,isValid:!1})},O=(y,I,x,V)=>{const P=L(n,y);if(P){const M=L(o,y,Re(x)?L(i,y):x);Re(M)||V&&V.defaultChecked||I?Ee(o,y,I?M:Ba(P._f)):fe(y,M),s.mount&&h()}},k=(y,I,x,V,P)=>{let M=!1,W=!1;const ne={name:y};if(!e.disabled){if(!x||V){(p.isDirty||f.isDirty)&&(W=r.isDirty,r.isDirty=ne.isDirty=Z(),M=W!==ne.isDirty);const G=Dt(L(i,y),I);W=!!L(r.dirtyFields,y),G?De(r.dirtyFields,y):Ee(r.dirtyFields,y,!0),ne.dirtyFields=r.dirtyFields,M=M||(p.dirtyFields||f.dirtyFields)&&W!==!G}if(x){const G=L(r.touchedFields,y);G||(Ee(r.touchedFields,y,x),ne.touchedFields=r.touchedFields,M=M||(p.touchedFields||f.touchedFields)&&G!==x)}M&&P&&c.state.next(ne)}return M?ne:{}},N=(y,I,x,V)=>{const P=L(r.errors,y),M=(p.isValid||f.isValid)&&rt(I)&&r.isValid!==I;if(e.delayError&&x?(l=w(()=>S(y,x)),l(e.delayError)):(clearTimeout(d),l=null,x?Ee(r.errors,y,x):De(r.errors,y)),(x?!Dt(P,x):P)||!et(V)||M){const W=X(T(T({},V),M&&rt(I)?{isValid:I}:{}),{errors:r.errors,name:y});r=T(T({},r),W),c.state.next(W)}},R=y=>F(null,null,function*(){m(y,!0);const I=yield e.resolver(o,e.context,qd(y||a.mount,n,e.criteriaMode,e.shouldUseNativeValidation));return m(y),I}),le=y=>F(null,null,function*(){const{errors:I}=yield R(y);if(y)for(const x of y){const V=L(I,x);V?Ee(r.errors,x,V):De(r.errors,x)}else r.errors=I;return I}),me=(V,P,...M)=>F(null,[V,P,...M],function*(y,I,x={valid:!0}){for(const ne in y){const G=y[ne];if(G){const W=G,{_f:we}=W,We=wr(W,["_f"]);if(we){const J=a.array.has(we.name),se=G._f&&Zd(G._f);se&&p.validatingFields&&m([we.name],!0);const j=yield Ga(G,a.disabled,o,g,e.shouldUseNativeValidation&&!I,J);if(se&&p.validatingFields&&m([we.name]),j[we.name]&&(x.valid=!1,I))break;!I&&(L(j,we.name)?J?tu(r.errors,j,we.name):Ee(r.errors,we.name,j[we.name]):De(r.errors,we.name))}!et(We)&&(yield me(We,I,x))}}return x.valid}),ce=()=>{for(const y of a.unMount){const I=L(n,y);I&&(I._f.refs?I._f.refs.every(x=>!_o(x)):!_o(I._f.ref))&&Ke(y)}a.unMount=new Set},Z=(y,I)=>!e.disabled&&(y&&I&&Ee(o,y,I),!Dt(U(),i)),H=(y,I,x)=>xa(y,a,T({},s.mount?o:Re(I)?i:nt(y)?{[y]:I}:I),x,I),K=y=>ao(L(s.mount?o:i,y,e.shouldUnregister?L(i,y,[]):[])),fe=(y,I,x={})=>{const V=L(n,y);let P=I;if(V){const M=V._f;M&&(!M.disabled&&Ee(o,y,La(I,M)),P=Fn(M.ref)&&Ye(I)?"":I,Da(M.ref)?[...M.ref.options].forEach(W=>W.selected=P.includes(W.value)):M.refs?on(M.ref)?M.refs.forEach(W=>{(!W.defaultChecked||!W.disabled)&&(Array.isArray(P)?W.checked=!!P.find(ne=>ne===W.value):W.checked=P===W.value||!!P)}):M.refs.forEach(W=>W.checked=W.value===P):ho(M.ref)?M.ref.value="":(M.ref.value=P,M.ref.type||c.state.next({name:y,values:Fe(o)})))}(x.shouldDirty||x.shouldTouch)&&k(y,P,x.shouldTouch,x.shouldDirty,!0),x.shouldValidate&&z(y)},de=(y,I,x)=>{for(const V in I){if(!I.hasOwnProperty(V))return;const P=I[V],M=y+"."+V,W=L(n,M);(a.array.has(y)||Ne(P)||W&&!W._f)&&!_r(P)?de(M,P,x):fe(M,P,x)}},ve=(y,I,x={})=>{const V=L(n,y),P=a.array.has(y),M=Fe(I);Ee(o,y,M),P?(c.array.next({name:y,values:Fe(o)}),(p.isDirty||p.dirtyFields||f.isDirty||f.dirtyFields)&&x.shouldDirty&&c.state.next({name:y,dirtyFields:xr(i,o),isDirty:Z(y,M)})):V&&!V._f&&!Ye(M)?de(y,M,x):fe(y,M,x),ja(y,a)&&c.state.next(X(T({},r),{name:y})),c.state.next({name:s.mount?y:void 0,values:Fe(o)})},ye=y=>F(null,null,function*(){s.mount=!0;const I=y.target;let x=I.name,V=!0;const P=L(n,x),M=G=>{V=Number.isNaN(G)||_r(G)&&isNaN(G.getTime())||Dt(G,L(o,x,G))},W=Ha(e.mode),ne=Ha(e.reValidateMode);if(P){let G,we;const We=I.type?Ba(P._f):Ta(y),J=y.type===Mn.BLUR||y.type===Mn.FOCUS_OUT,se=!Yd(P._f)&&!e.resolver&&!L(r.errors,x)&&!P._f.deps||Qd(J,L(r.touchedFields,x),r.isSubmitted,ne,W),j=ja(x,a,J);Ee(o,x,We),J?(!I||!I.readOnly)&&(P._f.onBlur&&P._f.onBlur(y),l&&l(0)):P._f.onChange&&P._f.onChange(y);const ge=k(x,We,J),Ge=!et(ge)||j;if(!J&&c.state.next({name:x,type:y.type,values:Fe(o)}),se)return(p.isValid||f.isValid)&&(e.mode==="onBlur"?J&&h():J||h()),Ge&&c.state.next(T({name:x},j?{}:ge));if(!J&&j&&c.state.next(T({},r)),e.resolver){const{errors:Pe}=yield R([x]);if(M(We),V){const pe=za(r.errors,n,x),q=za(Pe,n,pe.name||x);G=q.error,x=q.name,we=et(Pe)}}else m([x],!0),G=(yield Ga(P,a.disabled,o,g,e.shouldUseNativeValidation))[x],m([x]),M(We),V&&(G?we=!1:(p.isValid||f.isValid)&&(we=yield me(n,!0)));V&&(P._f.deps&&(!Array.isArray(P._f.deps)||P._f.deps.length>0)&&z(P._f.deps),N(x,we,G,ge))}}),ee=(y,I)=>{if(L(r.errors,I)&&y.focus)return y.focus(),1},z=(x,...V)=>F(null,[x,...V],function*(y,I={}){let P,M;const W=sn(y);if(e.resolver){const ne=yield le(Re(y)?y:W);P=et(ne),M=y?!W.some(G=>L(ne,G)):P}else y?(M=(yield Promise.all(W.map(ne=>F(null,null,function*(){const G=L(n,ne);return yield me(G&&G._f?{[ne]:G}:G)})))).every(Boolean),!(!M&&!r.isValid)&&h()):M=P=yield me(n);return c.state.next(X(T(T({},!nt(y)||(p.isValid||f.isValid)&&P!==r.isValid?{}:{name:y}),e.resolver||!y?{isValid:P}:{}),{errors:r.errors})),I.shouldFocus&&!M&&ln(n,ee,y?W:a.mount),M}),U=(y,I)=>{let x=T({},s.mount?o:i);return I&&(x=Na(I.dirtyFields?r.dirtyFields:r.touchedFields,x)),Re(y)?x:nt(y)?L(x,y):y.map(V=>L(x,V))},Y=(y,I)=>({invalid:!!L((I||r).errors,y),isDirty:!!L((I||r).dirtyFields,y),error:L((I||r).errors,y),isValidating:!!L(r.validatingFields,y),isTouched:!!L((I||r).touchedFields,y)}),te=y=>{y&&sn(y).forEach(I=>De(r.errors,I)),c.state.next({errors:y?r.errors:{}})},Te=(y,I,x)=>{const V=(L(n,y,{_f:{}})._f||{}).ref,we=L(r.errors,y)||{},{ref:M,message:W,type:ne}=we,G=wr(we,["ref","message","type"]);Ee(r.errors,y,X(T(T({},G),I),{ref:V})),c.state.next({name:y,errors:r.errors,isValid:!1}),x&&x.shouldFocus&&V&&V.focus&&V.focus()},re=(y,I)=>pt(y)?c.state.subscribe({next:x=>"values"in x&&y(H(void 0,I),x)}):H(y,I,!0),$=y=>c.state.subscribe({next:I=>{Xd(y.name,I.name,y.exact)&&Jd(I,y.formState||p,er,y.reRenderRoot)&&y.callback(X(T(T({values:T({},o)},r),I),{defaultValues:i}))}}).unsubscribe,Q=y=>(s.mount=!0,f=T(T({},f),y.formState),$(X(T({},y),{formState:f}))),Ke=(y,I={})=>{for(const x of y?sn(y):a.mount)a.mount.delete(x),a.array.delete(x),I.keepValue||(De(n,x),De(o,x)),!I.keepError&&De(r.errors,x),!I.keepDirty&&De(r.dirtyFields,x),!I.keepTouched&&De(r.touchedFields,x),!I.keepIsValidating&&De(r.validatingFields,x),!e.shouldUnregister&&!I.keepDefaultValue&&De(i,x);c.state.next({values:Fe(o)}),c.state.next(T(T({},r),I.keepDirty?{isDirty:Z()}:{})),!I.keepIsValid&&h()},Je=({disabled:y,name:I})=>{(rt(y)&&s.mount||y||a.disabled.has(I))&&(y?a.disabled.add(I):a.disabled.delete(I))},mt=(y,I={})=>{let x=L(n,y);const V=rt(I.disabled)||rt(e.disabled);return Ee(n,y,X(T({},x||{}),{_f:T(X(T({},x&&x._f?x._f:{ref:{name:y}}),{name:y,mount:!0}),I)})),a.mount.add(y),x?Je({disabled:rt(I.disabled)?I.disabled:e.disabled,name:y}):O(y,!0,I.value),X(T(T({},V?{disabled:I.disabled||e.disabled}:{}),e.progressive?{required:!!I.required,min:an(I.min),max:an(I.max),minLength:an(I.minLength),maxLength:an(I.maxLength),pattern:an(I.pattern)}:{}),{name:y,onChange:ye,onBlur:ye,ref:P=>{if(P){mt(y,I),x=L(n,y);const M=Re(P.value)&&P.querySelectorAll&&P.querySelectorAll("input,select,textarea")[0]||P,W=jd(M),ne=x._f.refs||[];if(W?ne.find(G=>G===M):M===x._f.ref)return;Ee(n,y,{_f:T(T({},x._f),W?{refs:[...ne.filter(_o),M,...Array.isArray(L(i,y))?[{}]:[]],ref:{type:M.type,name:y}}:{ref:M})}),O(y,!1,void 0,M)}else x=L(n,y,{}),x._f&&(x._f.mount=!1),(e.shouldUnregister||I.shouldUnregister)&&!(Ia(a.array,y)&&s.action)&&a.unMount.add(y)}})},it=()=>e.shouldFocusError&&ln(n,ee,a.mount),zt=y=>{rt(y)&&(c.state.next({disabled:y}),ln(n,(I,x)=>{const V=L(n,x);V&&(I.disabled=V._f.disabled||y,Array.isArray(V._f.refs)&&V._f.refs.forEach(P=>{P.disabled=V._f.disabled||y}))},0,!1))},gt=(y,I)=>x=>F(null,null,function*(){let V;x&&(x.preventDefault&&x.preventDefault(),x.persist&&x.persist());let P=Fe(o);if(c.state.next({isSubmitting:!0}),e.resolver){const{errors:M,values:W}=yield R();r.errors=M,P=Fe(W)}else yield me(n);if(a.disabled.size)for(const M of a.disabled)De(P,M);if(De(r.errors,"root"),et(r.errors)){c.state.next({errors:{}});try{yield y(P,x)}catch(M){V=M}}else I&&(yield I(T({},r.errors),x)),it(),setTimeout(it);if(c.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:et(r.errors)&&!V,submitCount:r.submitCount+1,errors:r.errors}),V)throw V}),Qt=(y,I={})=>{L(n,y)&&(Re(I.defaultValue)?ve(y,Fe(L(i,y))):(ve(y,I.defaultValue),Ee(i,y,Fe(I.defaultValue))),I.keepTouched||De(r.touchedFields,y),I.keepDirty||(De(r.dirtyFields,y),r.isDirty=I.defaultValue?Z(y,Fe(L(i,y))):Z()),I.keepError||(De(r.errors,y),p.isValid&&h()),c.state.next(T({},r)))},Kt=(y,I={})=>{const x=y?Fe(y):i,V=Fe(x),P=et(y),M=P?i:V;if(I.keepDefaultValues||(i=x),!I.keepValues){if(I.keepDirtyValues){const W=new Set([...a.mount,...Object.keys(xr(i,o))]);for(const ne of Array.from(W))L(r.dirtyFields,ne)?Ee(M,ne,L(o,ne)):ve(ne,L(M,ne))}else{if(so&&Re(y))for(const W of a.mount){const ne=L(n,W);if(ne&&ne._f){const G=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(Fn(G)){const we=G.closest("form");if(we){we.reset();break}}}}if(I.keepFieldsRef)for(const W of a.mount)ve(W,L(M,W));else n={}}o=e.shouldUnregister?I.keepDefaultValues?Fe(i):{}:Fe(M),c.array.next({values:T({},M)}),c.state.next({values:T({},M)})}a={mount:I.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!p.isValid||!!I.keepIsValid||!!I.keepDirtyValues,s.watch=!!e.shouldUnregister,c.state.next({submitCount:I.keepSubmitCount?r.submitCount:0,isDirty:P?!1:I.keepDirty?r.isDirty:!!(I.keepDefaultValues&&!Dt(y,i)),isSubmitted:I.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:P?{}:I.keepDirtyValues?I.keepDefaultValues&&o?xr(i,o):r.dirtyFields:I.keepDefaultValues&&y?xr(i,y):I.keepDirty?r.dirtyFields:{},touchedFields:I.keepTouched?r.touchedFields:{},errors:I.keepErrors?r.errors:{},isSubmitSuccessful:I.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Et=(y,I)=>Kt(pt(y)?y(o):y,I),Gt=(y,I={})=>{const x=L(n,y),V=x&&x._f;if(V){const P=V.refs?V.refs[0]:V.ref;P.focus&&(P.focus(),I.shouldSelect&&pt(P.select)&&P.select())}},er=y=>{r=T(T({},r),y)},lt={control:{register:mt,unregister:Ke,getFieldState:Y,handleSubmit:gt,setError:Te,_subscribe:$,_runSchema:R,_focusError:it,_getWatch:H,_getDirty:Z,_setValid:h,_setFieldArray:C,_setDisabledField:Je,_setErrors:b,_getFieldArray:K,_reset:Kt,_resetDefaultValues:()=>pt(e.defaultValues)&&e.defaultValues().then(y=>{Et(y,e.resetOptions),c.state.next({isLoading:!1})}),_removeUnmounted:ce,_disableForm:zt,_subjects:c,_proxyFormState:p,get _fields(){return n},get _formValues(){return o},get _state(){return s},set _state(y){s=y},get _defaultValues(){return i},get _names(){return a},set _names(y){a=y},get _formState(){return r},get _options(){return e},set _options(y){e=T(T({},e),y)}},subscribe:Q,trigger:z,register:mt,handleSubmit:gt,watch:re,setValue:ve,getValues:U,reset:Et,resetField:Qt,clearErrors:te,unregister:Ke,setError:Te,setFocus:Gt,getFieldState:Y};return X(T({},lt),{formControl:lt})}function iu(t={}){const e=ue.useRef(void 0),r=ue.useRef(void 0),[n,i]=ue.useState({isDirty:!1,isValidating:!1,isLoading:pt(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:pt(t.defaultValues)?void 0:t.defaultValues});if(!e.current)if(t.formControl)e.current=X(T({},t.formControl),{formState:n}),t.defaultValues&&!pt(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const s=nu(t),{formControl:a}=s,l=wr(s,["formControl"]);e.current=X(T({},l),{formState:n})}const o=e.current.control;return o._options=t,uo(()=>{const a=o._subscribe({formState:o._proxyFormState,callback:()=>i(T({},o._formState)),reRenderRoot:!0});return i(l=>X(T({},l),{isReady:!0})),o._formState.isReady=!0,a},[o]),ue.useEffect(()=>o._disableForm(t.disabled),[o,t.disabled]),ue.useEffect(()=>{t.mode&&(o._options.mode=t.mode),t.reValidateMode&&(o._options.reValidateMode=t.reValidateMode)},[o,t.mode,t.reValidateMode]),ue.useEffect(()=>{t.errors&&(o._setErrors(t.errors),o._focusError())},[o,t.errors]),ue.useEffect(()=>{t.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,t.shouldUnregister]),ue.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==n.isDirty&&o._subjects.state.next({isDirty:a})}},[o,n.isDirty]),ue.useEffect(()=>{t.values&&!Dt(t.values,r.current)?(o._reset(t.values,T({keepFieldsRef:!0},o._options.resetOptions)),r.current=t.values,i(a=>T({},a))):o._resetDefaultValues()},[o,t.values]),ue.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next(T({},o._formState))),o._removeUnmounted()}),e.current.formState=Aa(n,o),e.current}const kr=(t,e)=>{const r={};return t.forEach((n,i)=>{if(n.type===ma.NOT_EMPTY&&(r.required=o=>e&&Zc(o)?n.message:!0),n.type===ma.REGEX){const o=new RegExp(n.regex);r[`regex_${i}`]=s=>!e&&!s?!0:typeof s!="string"?n.message:o.test(s)||n.message}}),r},ou=({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(Be,T({},e)):u(Be,{imageId:"chevronDown"})}),su=({isChosen:t,option:e,onOptionClickCallback:r,isHovered:n,onHover:i,onHoverEnd:o})=>{const s=t?e.layoutSelected.image:e.layout.image;return u("div",{style:{padding:"5px 8px",background:((l,d)=>{var p,f,c,g;if(!l&&!d)return(p=ae(e.layout.backgroundColor))!=null?p:"transparent";if(!l&&d)return(f=ae(e.layoutSelected.backgroundColor))!=null?f:"transparent";if(l&&!d)return(c=ae(e.layout.highlightColor))!=null?c:"#F4F4F4";if(l&&d)return(g=ae(e.layoutSelected.highlightColor))!=null?g:"#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:o,children:[u(xe,X(T({},e.layout.title),{text:e.label})),u("div",{style:{display:"flex",flexShrink:0},children:u(Be,T({},s))})]},e.value)},qa=({name:t,options:e,isMulti:r=!1,isClearable:n=!1,value:i,onChange:o,placeholder:s,closeMenuOnSelect:a=!0,onBlur:l,parentElementRef:d,controlLayout:p,pickerLayout:f})=>{var H,K,fe,de,ve,ye,ee,z;const[c,g]=Ue(!1),[w,h]=Ue(i),[m,C]=Ue("down"),[S,b]=Ue(null),O=at(null),k=at(null);Jt(()=>{var re,$,Q;if(!c)return;const U=(re=O.current)==null?void 0:re.getBoundingClientRect(),Y=($=k.current)==null?void 0:$.getBoundingClientRect(),te=(Q=d.current)==null?void 0:Q.getBoundingClientRect();if(!U||!Y||!te)return;const Te=U.bottom+Y.height<te.bottom;C(Te?"down":"up")},[c]),st(()=>{o(w)},[w]);const N=U=>Y=>{var te;Y.stopPropagation(),(Y.type==="touchend"||((te=Y.nativeEvent)==null?void 0:te.pointerType)==="touch")&&b(null),a&&g(!1),h(Te=>r?Te.some($=>$.value===U.value)?Te.filter($=>$.value!==U.value):[...Te,U]:[U])},R=()=>{l&&l(),g(!1)},le=U=>Y=>{Y.stopPropagation(),h(te=>te.filter(Te=>Te.value!==U.value))},me=U=>{U.stopPropagation(),h([])},ce=(H=ae(p==null?void 0:p.borderColor))!=null?H:"#D9D9D9",Z=(K=ae(p==null?void 0:p.highlightBorderColor))!=null?K:"#7E57C5";return u("div",{"data-ui":"gui-custom-select",ref:O,children:u("div",{"data-ui":"gui-select-name-"+t,style:{backgroundColor:ae(p==null?void 0:p.backgroundColor),borderStyle:"solid",borderColor:c?Z:ce,borderWidth:(fe=p==null?void 0:p.borderWidth)!=null?fe:1,borderRadius:(de=p==null?void 0:p.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:R,onClick:()=>g(!c),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:s}),w.map(U=>{var Y,te,Te,re,$;if(r){const Q=p==null?void 0:p.chip;return u("div",{style:{padding:"0px 5px",display:"flex",gap:8,backgroundColor:(Y=ae(Q==null?void 0:Q.backgroundColor))!=null?Y:"#F2F2F2",borderRadius:(te=Q==null?void 0:Q.cornerRadius)!=null?te:4,userSelect:"none",alignItems:"center"},children:[u(xe,X(T({},Q==null?void 0:Q.title),{fontSize:(re=(Te=Q==null?void 0:Q.title)==null?void 0:Te.fontSize)!=null?re:13,text:U.label})),u("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px"},onClick:le(U),children:Q!=null&&Q.removeImage?u(Be,T({},Q.removeImage)):u(Be,{imageId:"cross"})})]},U.value)}else{const Q=p==null?void 0:p.title;return u("div",{style:{display:"flex",userSelect:"none"},children:u(xe,X(T({},Q),{fontSize:($=Q==null?void 0:Q.fontSize)!=null?$: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:me,children:p!=null&&p.clearButton?u(Be,T({},p.clearButton)):u(Be,{imageId:"cross"})}):null,n?u("div",{style:{width:"1px",alignSelf:"stretch",backgroundColor:"#D9D9D9"}}):null,u(ou,{isOpen:c,image:p==null?void 0:p.expandButton}),c&&u("div",{"data-ui":"gui-custom-select-dropdown-menu",ref:k,style:X(T({position:"absolute"},m==="down"?{top:"calc(100% + 1px)"}:{bottom:"calc(100% + 1px)"}),{left:0,border:"1px solid #e8e8e8",width:"100%",backgroundColor:(ve=ae(f==null?void 0:f.backgroundColor))!=null?ve:"#ffffff",borderRadius:(ye=f==null?void 0:f.cornerRadius)!=null?ye:8,borderStyle:"solid",borderColor:(ee=ae(f==null?void 0:f.borderColor))!=null?ee:"#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 Y=w.some(te=>te.value===U.value);return u(su,{isChosen:Y,option:U,onOptionClickCallback:N,isHovered:S===U.value,onHover:()=>b(U.value),onHoverEnd:()=>b(null)},U.label)})})]})})},au=({control:t,layout:e,dataSourceQuestion:r,parentElementRef:n})=>{const i=r.options.map(s=>({value:String(s.id),label:s.text,layout:e.option,layoutSelected:e.optionSelected})),o=String(r.id);return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px",boxSizing:"border-box"},children:[e.title&&u(xe,X(T({},e.title),{text:r.text,htmlFor:o})),u(Ra,{name:o,control:t,rules:{required:!!r.required,validate:kr(r.validators,!!r.required)},render:({field:s})=>{const a=i.find(l=>l.value===s.value);return u(qa,{options:i,placeholder:r.placeholder,closeMenuOnSelect:!0,name:s.name,value:a?[a]:[],onChange:l=>{const d=l&&Array.isArray(l)&&l.length?l[0].value:null;s.onChange(d)},parentElementRef:n,isMulti:!1,isClearable:!1,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},lu=({control:t,layout:e,dataSourceQuestion:r,parentElementRef:n})=>{const i=r.options.map(s=>({value:String(s.id),label:s.text,layout:e.option,layoutSelected:e.optionSelected})),o=String(r.id);return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px",boxSizing:"border-box"},children:[e.title&&u(xe,X(T({},e.title),{text:r.text,htmlFor:o})),u(Ra,{name:o,control:t,rules:{required:!!r.required,validate:kr(r.validators,!!r.required)},render:({field:s})=>{const a=i.filter(l=>{var d;return(d=s.value)==null?void 0:d.includes(l.value)});return u(qa,{name:o,options:i,placeholder:r.placeholder,closeMenuOnSelect:!1,value:a,onChange:l=>{const d=l.map(p=>p.value);s.onChange(d)},parentElementRef:n,isMulti:!0,isClearable:!0,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},Za=()=>{const[t,e]=Ue(!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},cu=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[o,s]=Ue(!1),a=Za(),l=String(r.id),p=i(l)===String(t.id),f=e.option,c=e.optionSelected,g={backgroundColor:ae(c.backgroundColor),borderRadius:c.cornerRadius},w={backgroundColor:ae(f.backgroundColor),borderRadius:f.cornerRadius},h=o&&a?{filter:`drop-shadow(0 0 1px ${nn})`}:{};return u("div",{children:u("label",{style:T({display:"flex",alignItems:"center",alignContent:"center",gap:8,cursor:"pointer"},p?g:w),children:[u("div",{style:T({display:"flex",alignItems:"center",alignContent:"center"},h),children:u(Be,T({},p?c.image:f.image))}),u(xe,X(T({},p?c.title:f.title),{text:t.text})),u("input",X(T({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},n(l,{required:!!r.required,validate:kr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>s(!0),onBlur:()=>s(!1)}))]})},t.id)},du=({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(xe,X(T({},t.title),{text:n.text}))}),n.options.map(i=>u(cu,{register:e,watch:r,layout:t,option:i,dataSourceQuestion:n},i.id))]})}),uu=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[o,s]=Ue(!1),a=Za(),l=String(r.id),p=i(l)===String(t.id),f=e.option,c=e.optionSelected,g={borderRadius:f.cornerRadius,background:ae(f.backgroundColor),borderColor:ae(f.borderColor),borderWidth:f.borderWidth},w={borderRadius:c.cornerRadius,background:ae(c.backgroundColor),borderColor:ae(c.borderColor),borderWidth:c.borderWidth},h=o&&a?{outline:`2px solid ${nn}`}:{};return u("div",{style:{display:"flex",flexGrow:1},children:u("label",{style:T(T({width:"100%",padding:"8px 16px",cursor:"pointer",borderStyle:"solid",position:"relative"},p?w:g),h),children:[u("input",X(T({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},n(l,{required:!!r.required,validate:kr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>s(!0),onBlur:()=>s(!1)})),u(xe,X(T({},p?c.title:f.title),{text:t.text}))]})},t.id)},fu=({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(xe,X(T({},t.title),{text:n.text}))}),u("div",{style:{display:"flex",justifyContent:"center",gap:5},children:n.options.map(i=>u(uu,{register:r,watch:e,layout:t,option:i,dataSourceQuestion:n},i.id))})]})}),hu=({children:t,backgroundColor:e,cornerRadius:r=0,isError:n,isRequired:i,validationBorderColor:o,validationBorderWidth:s})=>{const a=T({position:"relative",flexShrink:0,width:"100%",fontWeight:300,lineHeight:"140%",backgroundColor:ae(e)||"transparent",borderRadius:r,padding:"16px",boxSizing:"border-box",height:"auto"},n&&T(T({},ae(o)&&{borderColor:o,borderStyle:"solid"}),s&&{borderWidth:s}));return u("div",{style:a,children:[i&&u("span",{style:{color:ae(o),position:"absolute",left:"6px",top:"18px"},children:"*"}),t]})},pu=({validationErrorsTypes:t,title:e})=>t?u("div",{style:{width:"100%",fontSize:12},children:Object.entries(t).map(([r,n])=>u(xe,X(T({},e),{text:n}),r))}):null,_u=({layout:t,dataSourceQuestion:e,register:r})=>{var o,s,a,l,d,p,f,c,g,w,h,m,C,S,b,O;const n=String(e.id),i=k=>k?k===xn.EMAIL?"email":k===xn.FREE_TEXT?"text":k===xn.NUMBER?"number":k===xn.SECURE?"password":"text":"text";return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[u(xe,X(T({},t.title),{text:e.text,htmlFor:n})),u("input",X(T({},r(n,{required:!!e.required,validate:kr(e.validators,!!e.required)})),{id:n,type:i((o=t.textField)==null?void 0:o.inputType),style:{fontFamily:(a=(s=t==null?void 0:t.textField)==null?void 0:s.fontName)!=null?a:"sans-serif",fontSize:(d=(l=t==null?void 0:t.textField)==null?void 0:l.fontSize)!=null?d:15,color:(f=ae((p=t==null?void 0:t.textField)==null?void 0:p.fontColor))!=null?f:"#000000",height:"42px",borderWidth:(g=(c=t==null?void 0:t.textField)==null?void 0:c.borderWidth)!=null?g:1,borderColor:(h=ae((w=t==null?void 0:t.textField)==null?void 0:w.borderColor))!=null?h:"#d9d9d9",borderStyle:"solid",borderRadius:(C=(m=t==null?void 0:t.textField)==null?void 0:m.cornerRadius)!=null?C:8,padding:"11px",boxSizing:"border-box",backgroundColor:(b=ae((S=t==null?void 0:t.textField)==null?void 0:S.backgroundColor))!=null?b:"#FFFFFF",outlineColor:nn},placeholder:(O=e.placeholder)!=null?O:"","data-id":n}))]})},mu=({layout:t,dataSourceQuestion:e,register:r})=>{var i,o,s,a,l,d,p,f,c,g,w,h,m;const n=String(e.id);return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[u(xe,X(T({},t.title),{text:e.text,htmlFor:n})),u("textarea",X(T({},r(n,{required:!!e.required,validate:kr(e.validators,!!e.required)})),{id:n,placeholder:(i=e.placeholder)!=null?i:"",onInput:C=>{C.currentTarget.style.height="auto",C.currentTarget.style.height=`${C.currentTarget.scrollHeight-15}px`},"data-id":n,style:{fontFamily:"sans-serif",fontSize:(s=(o=t==null?void 0:t.textField)==null?void 0:o.fontSize)!=null?s:15,color:(l=ae((a=t==null?void 0:t.textField)==null?void 0:a.fontColor))!=null?l:"#000000",resize:"none",overflow:"hidden",height:"42px",minHeight:"42px",borderWidth:(p=(d=t==null?void 0:t.textField)==null?void 0:d.borderWidth)!=null?p:1,borderColor:(c=ae((f=t==null?void 0:t.textField)==null?void 0:f.borderColor))!=null?c:"#d9d9d9",borderStyle:"solid",borderRadius:(w=(g=t==null?void 0:t.textField)==null?void 0:g.cornerRadius)!=null?w:8,padding:"11px",boxSizing:"border-box",backgroundColor:(m=ae((h=t==null?void 0:t.textField)==null?void 0:h.backgroundColor))!=null?m:"#FFFFFF",outlineColor:nn}}))]})},jt=class jt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,kn);super({errorCode:e,errorCodeKey:o,errorEnumName:jt.ERROR_ENUM_NAME,module:jt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:jt.ERROR_ENUM_NAME,shortDomainCode:jt.SHORT_CODE})}};jt.MODULE=Rn,jt.ERROR_ENUM_NAME="GuiModuleError",jt.SHORT_CODE="GM";let cn=jt;const gu=({header:t,title:e,buttons:r,footer:n,questions:i,dataSource:o,properties:s,backgroundColor:a})=>{const l=va(r),{perform:d}=pr(),p=s?Yc(o.questions,s):{},f=at(null),{register:c,handleSubmit:g,formState:{errors:w},reset:h,watch:m,control:C}=iu({criteriaMode:"all",defaultValues:p});return u(Xt,{header:t,footer:n,backgroundColor:a,children:u("form",{onSubmit:g(b=>{d(qc(b),l),h()}),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:ae(i.backgroundColor)||"transparent"},ref:f,children:[e&&u("div",{style:{lineHeight:"39.2px",width:"100%"},children:u(xe,T({},e))}),u("div",{"data-ui":"gui-questions",part:"gui-questions",style:{width:"100%",display:"flex",gap:"10px",flexDirection:"column"},children:o.questions.map(b=>{var ce;const O=o.static,k=(Z,H)=>H.find(K=>{var fe;if((fe=K.questionIds)!=null&&fe.length)return K.questionIds.find(de=>Z===de)}),N=(Z,H)=>H.find(K=>!K.questionIds&&K.answerType===Z),R=O?k(String(b.id),i.itemTypes)||N(b.answerType,i.itemTypes):i.itemTypes.find(Z=>Z.answerType===b.answerType);if(!R){const Z=new cn({errorCode:kn.DECODING_FAILED,message:"The question template has not been found"});d(Z);return}const le=R==null?void 0:R.displayType,me=b.id in w&&((ce=w[b.id])==null?void 0:ce.types);return u(ze,{children:[u(hu,{backgroundColor:R==null?void 0:R.backgroundColor,cornerRadius:R==null?void 0:R.cornerRadius,isError:!!me,isRequired:b.required,validationBorderColor:R==null?void 0:R.validationBorderColor,validationBorderWidth:R==null?void 0:R.validationBorderWidth,children:[le===Ar.TEXT_EXPANDABLE&&u(mu,{layout:R,dataSourceQuestion:b,register:c}),le===Ar.TEXT_SINGLE_LINE&&u(_u,{layout:R,dataSourceQuestion:b,register:c}),le===Ar.SELECTOR_OPTIONS&&u(du,{layout:R,dataSourceQuestion:b,watch:m,register:c}),le===Ar.SELECTOR_BUTTONS&&u(fu,{layout:R,dataSourceQuestion:b,watch:m,register:c}),le===Ar.SELECTOR_DROPDOWN&&u(au,{control:C,layout:R,dataSourceQuestion:b,parentElementRef:f}),le===Ar.MULTI_SELECTOR_DROPDOWN&&u(lu,{control:C,layout:R,dataSourceQuestion:b,parentElementRef:f})]}),me&&u(pu,{validationErrorsTypes:me,title:R.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,O)=>u(Nn,T({dataTestId:"question-button"},b),O))})]})})},wu={display:"none"},vu={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",backgroundColor:"#7e57c5",cursor:"pointer"},yu={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},bu=({header:t,footer:e,buttons:r,backgroundColor:n,selectionLimit:i})=>{var p,f;const{perform:o}=pr(),s=at(null),a=typeof i=="number"&&(i===0||i>1),l=c=>F(null,null,function*(){var w;const g=Array.from((w=c.currentTarget.files)!=null?w:[]);if(g.length)try{const m=(yield Promise.allSettled(g.map(C=>F(null,null,function*(){return{content:yield wa(C),metadata:{name:C.name,type:C.type,size:C.size,lastModified:C.lastModified}}})))).filter(C=>C.status==="fulfilled").map(C=>C.value);o({cancel:!1,permissionDenied:!1,files:m})}catch(h){console.error("Error: ",h)}}),d=()=>{var c;(c=s.current)==null||c.showPicker()};return u(Xt,{header:t,footer:e,backgroundColor:n,children:u(ze,{children:u("div",{style:X(T({},yu),{justifyContent:"center"}),children:[u("input",X(T({style:wu,ref:s,type:"file",accept:"image/*"},a?{multiple:!0}:{}),{onInput:l})),u("button",{style:vu,onClick:d,children:u(Be,{imageId:(f=(p=r==null?void 0:r[0])==null?void 0:p.image)==null?void 0:f.imageId})})]})})})},Su={display:"none"},Cu={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",background:"#7e57c5",cursor:"pointer"},Eu={position:"relative",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Tu=({header:t,footer:e,backgroundColor:r,buttons:n,selectionLimit:i})=>{var p,f;const{perform:o}=pr(),s=at(null),a=typeof i=="number"&&(i===0||i>1),l=c=>F(null,null,function*(){var w;const g=Array.from((w=c.currentTarget.files)!=null?w:[]);if(g.length)try{const m=(yield Promise.allSettled(g.map(C=>F(null,null,function*(){return{content:yield wa(C),metadata:{name:C.name,type:C.type,size:C.size,lastModified:C.lastModified}}})))).filter(C=>C.status==="fulfilled").map(C=>C.value);o({cancel:!1,permissionDenied:!1,files:m})}catch(h){console.error("Error: ",h)}}),d=()=>F(null,null,function*(){var c;(c=s.current)==null||c.showPicker()});return st(()=>{F(null,null,function*(){if(Qe.isDesktop)return;const c=yield Jc();(c==="denied"||c==="error")&&o({cancel:!1,permissionDenied:!0,files:[]})})},[]),u(Xt,{header:t,footer:e,backgroundColor:r,children:u(ze,{children:u("div",{style:X(T({},Eu),{justifyContent:"center"}),children:[u("input",X(T({style:Su,ref:s,type:"file",accept:"image/*",capture:"user"},a?{multiple:!0}:{}),{onInput:l})),u("button",{style:Cu,onClick:d,children:u(Be,{imageId:(f=(p=n==null?void 0:n[0])==null?void 0:p.image)==null?void 0:f.imageId})})]})})})};function Iu(){const t=at(null),[e,r]=Ue(!1);return{ref:t,isPopoverOpen:e,openPopover:()=>{var o;(o=t.current)==null||o.showPopover(),r(!0)},closePopover:()=>{var o;(o=t.current)==null||o.hidePopover(),r(!1)}}}const go=()=>F(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"}}),Ou=()=>F(null,null,function*(){try{return yield navigator.permissions.query({name:"geolocation"})}catch(t){return null}}),dn=t=>F(null,null,function*(){return new Promise(e=>{if(!navigator.geolocation)return e({location:{locationState:"location_request_failed",lat:null,lon:null,error:"Requesting location failed"}});navigator.geolocation.getCurrentPosition(r=>e({location:{locationState:"ok",lat:r.coords.latitude,lon:r.coords.longitude,error:null}}),r=>{r.code===1?e({location:{locationState:"application_location_restricted",lat:null,lon:null,error:"Application location services restricted or unavailable"}}):e({location:{locationState:"location_request_failed",lat:null,lon:null,error:"Requesting location failed"}})},t)})}),Au={height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},xu={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"},Ru={position:"fixed",inset:0,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",background:"rgba(0,0,0,0.2)",zIndex:1e3,pointerEvents:"auto",cursor:"default"},ku={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:1.61},Nu={marginBottom:20,lineHeight:"39.2px",width:"100%"},Du={lineHeight:"28px",fontWeight:"400",width:"100%"},Pu={padding:"32px 24px 0 24px",border:"1px solid rgba(0, 0, 0, 0.06)",width:"min(400px, calc(100vw - 32px))",gridTemplateRows:"auto 1fr"},Mu={marginBottom:"10px",fontWeight:500,display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":2,overflow:"hidden",textOverflow:"ellipsis",lineClamp:2},Fu={marginBottom:"84px",fontWeight:400},Uu={height:"100%",overflow:"scroll",maxHeight:"calc(100dvh - 190px)"},Lu={position:"absolute",bottom:0,left:0,padding:"24px",width:"100%"},Vu=({title:t,header:e,footer:r,image:n,description:i,buttons:o,backgroundColor:s,popups:a,askEveryTime:l})=>{const d=va(o),{perform:p}=pr(),{setIsProcessingCallback:f}=Kc(),{ref:c,isPopoverOpen:g,openPopover:w,closePopover:h}=Iu(),m={enableHighAccuracy:!0,timeout:15e3,maximumAge:6e4},C=a==null?void 0:a.find(k=>k.reason==="system_restricted");Jt(()=>{Qe.isSafari||l||f==null||f(!0)},[]),st(()=>{if(Qe.isSafari||l)return;let k=!0;return F(null,null,function*(){if((yield go())!=="granted"){f==null||f(!1);return}const R=yield dn(m);k&&p(R,d)}),()=>{Qe.isSafari||l||(k=!1)}},[]),st(()=>{if(Qe.isSafari)return;let k=!0,N=null;return F(null,null,function*(){const R=yield Ou();R&&(N=R,R.onchange=()=>F(null,null,function*(){if(R.state==="denied"&&(f==null||f(!0),p({location:{locationState:"application_location_restricted",lat:null,lon:null,error:"Application location services restricted or unavailable"}},d)),R.state==="granted"){f==null||f(!0);const le=yield dn(m);if(!k)return;p(le,d)}}))}),()=>{Qe.isSafari||(k=!1,N&&(N.onchange=null))}},[]);const S=k=>F(null,null,function*(){k.preventDefault();const N=yield go();if(N==="denied"){w();return}if(N==="prompt"&&(yield dn()),N==="granted"){const R=yield dn(m);p(R,d)}}),b=k=>F(null,null,function*(){if(k.preventDefault(),(yield go())==="denied"){w();return}f==null||f(!0);const R=yield dn(m);p(R,d)}),O=k=>{k.preventDefault(),h()};return u(Xt,{header:e,footer:r,backgroundColor:s,children:[u("div",{style:Au,children:[u("div",{style:xu,children:[n&&u("div",{style:ku,children:u(Be,T({},n))}),t&&u("div",{style:Nu,children:u(xe,T({},t))}),i&&u("div",{style:Du,children:u(Dn,T({},i))})]}),!!(o!=null&&o.length)&&u("div",{style:{display:"flex",flexDirection:"column"},children:o.map((k,N)=>u("div",{style:{padding:"5px"},children:u(Nn,T(T({dataTestId:"question-button"},k),k.type==="FORM"?{onClick:Qe.isSafari?b:S}:{}))},N))})]}),C&&u("div",{ref:c,popover:"manual",role:"dialog","aria-modal":"true",style:X(T({},Pu),{borderRadius:C.cornerRadius||"27px",backgroundColor:C.backgroundColor||"#ffffff"}),children:[u("div",{style:Mu,children:u(xe,T({},T({fontSize:"24px"},C.title)))}),u("div",{style:Fu,children:u("div",{style:Uu,children:u(xe,T({},T({fontSize:"17px"},C.message)))})}),C.actionButton1&&u("div",{style:Lu,children:u(Nn,T(T({dataTestId:"question-button"},C.actionButton1),C.actionButton1.type==="FORM"?{onClick:O}:{}))})]}),g&&u("div",{style:Ru,onPointerDown:k=>{k.preventDefault(),k.stopPropagation(),h()}})]})},Ya=t=>{const{templateId:e,templateLayout:r,dataSource:n,properties:i}=t,{perform:o}=pr();if(!e||!r)return u(Ca,{});const s=i!=null&&i.length?JSON.stringify(i):"default-key";if(e===ft.STATUS)return u(xd,{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===ft.INFO)return u(Nd,{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===ft.GEOLOCATION)return u(Vu,{header:r.header,footer:r.footer,image:r.image,title:r.title,description:r.description,buttons:r.buttons,backgroundColor:r.backgroundColor,popups:r.popups,askEveryTime:r.askEveryTime});if(e===ft.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===ft.INFO_DETAILS)return u(Ud,{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===ft.CAMERA)return u(Tu,{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===ft.GALLERY)return u(bu,{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===ft.QUESTIONS)return u(gu,{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},s);if(e===ft.QUESTIONS&&!n){const l=new cn({errorCode:kn.DECODING_FAILED,message:"No data for questions"});return o(l),null}const a=new cn({errorCode:kn.DECODING_FAILED,message:"Unsupported step template"});return o(a),null};let wo=!1;const Ja=({children:t})=>u("div",{part:"gui-idv",id:"gui-idv-web-c",style:{backgroundColor:"white",height:"100%",width:"100%"},children:t}),$u=({isProcessing:t,moduleProps:e,perform:r})=>{const{templateId:n,templateLayout:i,dataSource:o,properties:s}=e,a=(l,d)=>{r&&r(l,d)};return n===ft.QUESTIONS?u(_a,{perform:a,children:u(Ja,{children:u(Ya,{properties:s,dataSource:o,templateId:n,templateLayout:i})})}):u(_a,{perform:a,setIsProcessingCallback:t,children:u(Ja,{children:u(Ya,T(T({templateId:n,templateLayout:i},e.backgroundColor?{backgroundColor:e.backgroundColor}:{}),typeof e.selectionLimit=="number"?{selectionLimit:e.selectionLimit}:{}))})})},un=class un extends ha{constructor(){super(),this._mounted=!1,this._shadowRoot=this.attachShadow({mode:"open"}),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
|
+
`,Fr={MESSAGE:"MESSAGE",ERROR:"ERROR"},Uc=Object.values({DATA:"DATA",QUESTIONARY:"QUESTIONARY"});var qo=(t=>(t.Rtl="rtl",t.Ltr="ltr",t))(qo||{}),Er=(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))(Er||{}),yt=(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))(yt||{}),Re=(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))(Re||{}),Be=(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))(Be||{}),Vr=(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))(Vr||{}),Ii=(t=>(t[t.CONNECTION_ISSUE=0]="CONNECTION_ISSUE",t[t.WORKFLOW_ISSUE=1]="WORKFLOW_ISSUE",t))(Ii||{}),pt=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t))(pt||{}),Kt=(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))(Kt||{}),ot=(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))(ot||{}),Br=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(Br||{}),Ot=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t))(Ot||{});const Rc=120,Qc=200,En="PROGRESS",Tt="IDV",cr="idv-session-data",Wr="idv-session-auth-token",Pc="rgl-uid",Yc="en",es=t=>{let e;const r=new Set,i=(l,N)=>{const d=typeof l=="function"?l(e):l;if(!Object.is(d,e)){const u=e;e=(N!=null?N:typeof d!="object"||d===null)?d:Object.assign({},e,d),r.forEach(f=>f(e,u))}},n=()=>e,a={setState:i,getState:n,getInitialState:()=>c,subscribe:l=>(r.add(l),()=>r.delete(l))},c=e=t(i,n,a);return a},Fc=t=>t?es(t):es;var $r,oe,ts,ur,rs,is,ns,os,mn,jn,wn,ss,Hr={},as=[],Vc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zr=Array.isArray;function At(t,e){for(var r in e)t[r]=e[r];return t}function Sn(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Et(t,e,r){var i,n,o,s={};for(o in e)o=="key"?i=e[o]:o=="ref"?n=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?$r.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)s[o]===void 0&&(s[o]=t.defaultProps[o]);return Gr(t,s,i,n,null)}function Gr(t,e,r,i,n){var o={type:t,props:e,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:n==null?++ts:n,__i:-1,__u:0};return n==null&&oe.vnode!=null&&oe.vnode(o),o}function cs(){return{current:null}}function Ze(t){return t.children}function lt(t,e){this.props=t,this.context=e}function mr(t,e){if(e==null)return t.__?mr(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"?mr(t):null}function us(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 us(t)}}function On(t){(!t.__d&&(t.__d=!0)&&ur.push(t)&&!fi.__r++||rs!=oe.debounceRendering)&&((rs=oe.debounceRendering)||is)(fi)}function fi(){for(var t,e,r,i,n,o,s,a=1;ur.length;)ur.length>a&&ur.sort(ns),t=ur.shift(),a=ur.length,t.__d&&(r=void 0,i=void 0,n=(i=(e=t).__v).__e,o=[],s=[],e.__P&&((r=At({},i)).__v=i.__v+1,oe.vnode&&oe.vnode(r),_n(e.__P,r,i,e.__n,e.__P.namespaceURI,32&i.__u?[n]:null,o,n==null?mr(i):n,!!(32&i.__u),s),r.__v=i.__v,r.__.__k[r.__i]=r,Ns(o,r,s),i.__e=i.__=null,r.__e!=n&&us(r)));fi.__r=0}function ls(t,e,r,i,n,o,s,a,c,l,N){var d,u,f,D,M,I,E,A=i&&i.__k||as,T=e.length;for(c=Bc(r,e,A,c,T),d=0;d<T;d++)(f=r.__k[d])!=null&&(u=f.__i==-1?Hr:A[f.__i]||Hr,f.__i=d,I=_n(t,f,u,n,o,s,a,c,l,N),D=f.__e,f.ref&&u.ref!=f.ref&&(u.ref&&xn(u.ref,null,f),N.push(f.ref,f.__c||D,f)),M==null&&D!=null&&(M=D),(E=!!(4&f.__u))||u.__k===f.__k?c=ds(f,c,t,E):typeof f.type=="function"&&I!==void 0?c=I:D&&(c=D.nextSibling),f.__u&=-7);return r.__e=M,c}function Bc(t,e,r,i,n){var o,s,a,c,l,N=r.length,d=N,u=0;for(t.__k=new Array(n),o=0;o<n;o++)(s=e[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(c=o+u,(s=t.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Gr(null,s,null,null,null):Zr(s)?Gr(Ze,{children:s},null,null,null):s.constructor==null&&s.__b>0?Gr(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=t,s.__b=t.__b+1,a=null,(l=s.__i=Wc(s,r,c,d))!=-1&&(d--,(a=r[l])&&(a.__u|=2)),a==null||a.__v==null?(l==-1&&(n>N?u--:n<N&&u++),typeof s.type!="function"&&(s.__u|=4)):l!=c&&(l==c-1?u--:l==c+1?u++:(l>c?u--:u++,s.__u|=4))):t.__k[o]=null;if(d)for(o=0;o<N;o++)(a=r[o])!=null&&(2&a.__u)==0&&(a.__e==i&&(i=mr(a)),fs(a,a));return i}function ds(t,e,r,i){var n,o;if(typeof t.type=="function"){for(n=t.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=t,e=ds(n[o],e,r,i));return e}t.__e!=e&&(i&&(e&&t.type&&!e.parentNode&&(e=mr(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function _t(t,e){return e=e||[],t==null||typeof t=="boolean"||(Zr(t)?t.some(function(r){_t(r,e)}):e.push(t)),e}function Wc(t,e,r,i){var n,o,s,a=t.key,c=t.type,l=e[r],N=l!=null&&(2&l.__u)==0;if(l===null&&t.key==null||N&&a==l.key&&c==l.type)return r;if(i>(N?1:0)){for(n=r-1,o=r+1;n>=0||o<e.length;)if((l=e[s=n>=0?n--:o++])!=null&&(2&l.__u)==0&&a==l.key&&c==l.type)return s}return-1}function Ms(t,e,r){e[0]=="-"?t.setProperty(e,r==null?"":r):t[e]=r==null?"":typeof r!="number"||Vc.test(e)?r:r+"px"}function Di(t,e,r,i,n){var o,s;e:if(e=="style")if(typeof r=="string")t.style.cssText=r;else{if(typeof i=="string"&&(t.style.cssText=i=""),i)for(e in i)r&&e in r||Ms(t.style,e,"");if(r)for(e in r)i&&r[e]==i[e]||Ms(t.style,e,r[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(os,"$1")),s=e.toLowerCase(),e=s in t||e=="onFocusOut"||e=="onFocusIn"?s.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=r,r?i?r.u=i.u:(r.u=mn,t.addEventListener(e,o?wn:jn,o)):t.removeEventListener(e,o?wn:jn,o);else{if(n=="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 gs(t){return function(e){if(this.l){var r=this.l[e.type+t];if(e.t==null)e.t=mn++;else if(e.t<r.u)return;return r(oe.event?oe.event(e):e)}}}function _n(t,e,r,i,n,o,s,a,c,l){var N,d,u,f,D,M,I,E,A,T,S,x,z,v,ae,fe,ce,G=e.type;if(e.constructor!=null)return null;128&r.__u&&(c=!!(32&r.__u),o=[a=e.__e=r.__e]),(N=oe.__b)&&N(e);e:if(typeof G=="function")try{if(E=e.props,A="prototype"in G&&G.prototype.render,T=(N=G.contextType)&&i[N.__c],S=N?T?T.props.value:N.__:i,r.__c?I=(d=e.__c=r.__c).__=d.__E:(A?e.__c=d=new G(E,S):(e.__c=d=new lt(E,S),d.constructor=G,d.render=Hc),T&&T.sub(d),d.props=E,d.state||(d.state={}),d.context=S,d.__n=i,u=d.__d=!0,d.__h=[],d._sb=[]),A&&d.__s==null&&(d.__s=d.state),A&&G.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=At({},d.__s)),At(d.__s,G.getDerivedStateFromProps(E,d.__s))),f=d.props,D=d.state,d.__v=e,u)A&&G.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),A&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(A&&G.getDerivedStateFromProps==null&&E!==f&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(E,S),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(E,d.__s,S)===!1||e.__v==r.__v){for(e.__v!=r.__v&&(d.props=E,d.state=d.__s,d.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some(function(F){F&&(F.__=e)}),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[],d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(E,d.__s,S),A&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(f,D,M)})}if(d.context=S,d.props=E,d.__P=t,d.__e=!1,z=oe.__r,v=0,A){for(d.state=d.__s,d.__d=!1,z&&z(e),N=d.render(d.props,d.state,d.context),ae=0;ae<d._sb.length;ae++)d.__h.push(d._sb[ae]);d._sb=[]}else do d.__d=!1,z&&z(e),N=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++v<25);d.state=d.__s,d.getChildContext!=null&&(i=At(At({},i),d.getChildContext())),A&&!u&&d.getSnapshotBeforeUpdate!=null&&(M=d.getSnapshotBeforeUpdate(f,D)),fe=N,N!=null&&N.type===Ze&&N.key==null&&(fe=Is(N.props.children)),a=ls(t,Zr(fe)?fe:[fe],e,r,i,n,o,s,a,c,l),d.base=e.__e,e.__u&=-161,d.__h.length&&s.push(d),I&&(d.__E=d.__=null)}catch(F){if(e.__v=null,c||o!=null)if(F.then){for(e.__u|=c?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,e.__e=a}else{for(ce=o.length;ce--;)Sn(o[ce]);vn(e)}else e.__e=r.__e,e.__k=r.__k,F.then||vn(e);oe.__e(F,e,r)}else o==null&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):a=e.__e=$c(r.__e,e,r,i,n,o,s,c,l);return(N=oe.diffed)&&N(e),128&e.__u?void 0:a}function vn(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(vn)}function Ns(t,e,r){for(var i=0;i<r.length;i++)xn(r[i],r[++i],r[++i]);oe.__c&&oe.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(o){o.call(n)})}catch(o){oe.__e(o,n.__v)}})}function Is(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:Zr(t)?t.map(Is):At({},t)}function $c(t,e,r,i,n,o,s,a,c){var l,N,d,u,f,D,M,I=r.props,E=e.props,A=e.type;if(A=="svg"?n="http://www.w3.org/2000/svg":A=="math"?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((f=o[l])&&"setAttribute"in f==!!A&&(A?f.localName==A:f.nodeType==3)){t=f,o[l]=null;break}}if(t==null){if(A==null)return document.createTextNode(E);t=document.createElementNS(n,A,E.is&&E),a&&(oe.__m&&oe.__m(e,o),a=!1),o=null}if(A==null)I===E||a&&t.data==E||(t.data=E);else{if(o=o&&$r.call(t.childNodes),I=r.props||Hr,!a&&o!=null)for(I={},l=0;l<t.attributes.length;l++)I[(f=t.attributes[l]).name]=f.value;for(l in I)if(f=I[l],l!="children"){if(l=="dangerouslySetInnerHTML")d=f;else if(!(l in E)){if(l=="value"&&"defaultValue"in E||l=="checked"&&"defaultChecked"in E)continue;Di(t,l,null,f,n)}}for(l in E)f=E[l],l=="children"?u=f:l=="dangerouslySetInnerHTML"?N=f:l=="value"?D=f:l=="checked"?M=f:a&&typeof f!="function"||I[l]===f||Di(t,l,f,I[l],n);if(N)a||d&&(N.__html==d.__html||N.__html==t.innerHTML)||(t.innerHTML=N.__html),e.__k=[];else if(d&&(t.innerHTML=""),ls(e.type=="template"?t.content:t,Zr(u)?u:[u],e,r,i,A=="foreignObject"?"http://www.w3.org/1999/xhtml":n,o,s,o?o[0]:r.__k&&mr(r,0),a,c),o!=null)for(l=o.length;l--;)Sn(o[l]);a||(l="value",A=="progress"&&D==null?t.removeAttribute("value"):D!=null&&(D!==t[l]||A=="progress"&&!D||A=="option"&&D!=I[l])&&Di(t,l,D,I[l],n),l="checked",M!=null&&M!=t[l]&&Di(t,l,M,I[l],n))}return t}function xn(t,e,r){try{if(typeof t=="function"){var i=typeof t.__u=="function";i&&t.__u(),i&&e==null||(t.__u=t(e))}else t.current=e}catch(n){oe.__e(n,r)}}function fs(t,e,r){var i,n;if(oe.unmount&&oe.unmount(t),(i=t.ref)&&(i.current&&i.current!=t.__e||xn(i,null,e)),(i=t.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(o){oe.__e(o,e)}i.base=i.__P=null}if(i=t.__k)for(n=0;n<i.length;n++)i[n]&&fs(i[n],e,r||typeof t.type!="function");r||Sn(t.__e),t.__c=t.__=t.__e=void 0}function Hc(t,e,r){return this.constructor(t,r)}function lr(t,e,r){var i,n,o,s;e==document&&(e=document.documentElement),oe.__&&oe.__(t,e),n=(i=typeof r=="function")?null:r&&r.__k||e.__k,o=[],s=[],_n(e,t=(!i&&r||e).__k=Et(Ze,null,[t]),n||Hr,Hr,e.namespaceURI,!i&&r?[r]:n?null:e.firstChild?$r.call(e.childNodes):null,o,!i&&r?r:n?n.__e:e.firstChild,i,s),Ns(o,t,s)}function Ds(t,e){lr(t,e,Ds)}function Zc(t,e,r){var i,n,o,s,a=At({},t.props);for(o in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)o=="key"?i=e[o]:o=="ref"?n=e[o]:a[o]=e[o]===void 0&&s!=null?s[o]:e[o];return arguments.length>2&&(a.children=arguments.length>3?$r.call(arguments,2):r),Gr(t.type,a,i||t.key,n||t.ref,null)}function zn(t){function e(r){var i,n;return this.getChildContext||(i=new Set,(n={})[e.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&i.forEach(function(s){s.__e=!0,On(s)})},this.sub=function(o){i.add(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){i&&i.delete(o),s&&s.call(o)}}),r.children}return e.__c="__cC"+ss++,e.__=t,e.Provider=e.__l=(e.Consumer=function(r,i){return r.children(i)}).contextType=e,e}$r=as.slice,oe={__e:function(t,e,r,i){for(var n,o,s;e=e.__;)if((n=e.__c)&&!n.__)try{if((o=n.constructor)&&o.getDerivedStateFromError!=null&&(n.setState(o.getDerivedStateFromError(t)),s=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(t,i||{}),s=n.__d),s)return n.__E=n}catch(a){t=a}throw t}},ts=0,lt.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=At({},this.state),typeof t=="function"&&(t=t(At({},r),this.props)),t&&At(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),On(this))},lt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),On(this))},lt.prototype.render=Ze,ur=[],is=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ns=function(t,e){return t.__v.__b-e.__v.__b},fi.__r=0,os=/(PointerCapture)$|Capture$/i,mn=0,jn=gs(!1),wn=gs(!0),ss=0;var vt,Ee,Cn,hs,jr=0,ys=[],Se=oe,ps=Se.__b,Ts=Se.__r,As=Se.diffed,Es=Se.__c,ms=Se.unmount,js=Se.__;function dr(t,e){Se.__h&&Se.__h(Ee,t,jr||e),jr=0;var r=Ee.__H||(Ee.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Ue(t){return jr=1,hi(Ss,t)}function hi(t,e,r){var i=dr(vt++,2);if(i.t=t,!i.__c&&(i.__=[r?r(e):Ss(void 0,e),function(a){var c=i.__N?i.__N[0]:i.__[0],l=i.t(c,a);c!==l&&(i.__N=[l,i.__[1]],i.__c.setState({}))}],i.__c=Ee,!Ee.__f)){var n=function(a,c,l){if(!i.__c.__H)return!0;var N=i.__c.__H.__.filter(function(u){return!!u.__c});if(N.every(function(u){return!u.__N}))return!o||o.call(this,a,c,l);var d=i.__c.props!==a;return N.forEach(function(u){if(u.__N){var f=u.__[0];u.__=u.__N,u.__N=void 0,f!==u.__[0]&&(d=!0)}}),o&&o.call(this,a,c,l)||d};Ee.__f=!0;var o=Ee.shouldComponentUpdate,s=Ee.componentWillUpdate;Ee.componentWillUpdate=function(a,c,l){if(this.__e){var N=o;o=void 0,n(a,c,l),o=N}s&&s.call(this,a,c,l)},Ee.shouldComponentUpdate=n}return i.__N||i.__}function st(t,e){var r=dr(vt++,3);!Se.__s&&Qn(r.__H,e)&&(r.__=t,r.u=e,Ee.__H.__h.push(r))}function Jt(t,e){var r=dr(vt++,4);!Se.__s&&Qn(r.__H,e)&&(r.__=t,r.u=e,Ee.__h.push(r))}function at(t){return jr=5,Kr(function(){return{current:t}},[])}function bn(t,e,r){jr=6,Jt(function(){if(typeof t=="function"){var i=t(e());return function(){t(null),i&&typeof i=="function"&&i()}}if(t)return t.current=e(),function(){return t.current=null}},r==null?r:r.concat(t))}function Kr(t,e){var r=dr(vt++,7);return Qn(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function Ln(t,e){return jr=8,Kr(function(){return t},e)}function Jr(t){var e=Ee.context[t.__c],r=dr(vt++,9);return r.c=t,e?(r.__==null&&(r.__=!0,e.sub(Ee)),e.props.value):t.__}function kn(t,e){Se.useDebugValue&&Se.useDebugValue(e?e(t):t)}function Gc(t){var e=dr(vt++,10),r=Ue();return e.__=t,Ee.componentDidCatch||(Ee.componentDidCatch=function(i,n){e.__&&e.__(i,n),r[1](i)}),[r[0],function(){r[1](void 0)}]}function Un(){var t=dr(vt++,11);if(!t.__){for(var e=Ee.__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 Kc(){for(var t;t=ys.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(yi),t.__H.__h.forEach(Rn),t.__H.__h=[]}catch(e){t.__H.__h=[],Se.__e(e,t.__v)}}Se.__b=function(t){Ee=null,ps&&ps(t)},Se.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),js&&js(t,e)},Se.__r=function(t){Ts&&Ts(t),vt=0;var e=(Ee=t.__c).__H;e&&(Cn===Ee?(e.__h=[],Ee.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(e.__h.forEach(yi),e.__h.forEach(Rn),e.__h=[],vt=0)),Cn=Ee},Se.diffed=function(t){As&&As(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(ys.push(e)!==1&&hs===Se.requestAnimationFrame||((hs=Se.requestAnimationFrame)||Jc)(Kc)),e.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Cn=Ee=null},Se.__c=function(t,e){e.some(function(r){try{r.__h.forEach(yi),r.__h=r.__h.filter(function(i){return!i.__||Rn(i)})}catch(i){e.some(function(n){n.__h&&(n.__h=[])}),e=[],Se.__e(i,r.__v)}}),Es&&Es(t,e)},Se.unmount=function(t){ms&&ms(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(i){try{yi(i)}catch(n){e=n}}),r.__H=void 0,e&&Se.__e(e,r.__v))};var ws=typeof requestAnimationFrame=="function";function Jc(t){var e,r=function(){clearTimeout(i),ws&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(r,35);ws&&(e=requestAnimationFrame(r))}function yi(t){var e=Ee,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),Ee=e}function Rn(t){var e=Ee;t.__c=t.__(),Ee=e}function Qn(t,e){return!t||t.length!==e.length||e.some(function(r,i){return r!==t[i]})}function Ss(t,e){return typeof e=="function"?e(t):e}function Os(t,e){for(var r in e)t[r]=e[r];return t}function Pn(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var i in e)if(i!=="__source"&&t[i]!==e[i])return!0;return!1}function Yn(t,e){var r=e(),i=Ue({t:{__:r,u:e}}),n=i[0].t,o=i[1];return Jt(function(){n.__=r,n.u=e,Fn(n)&&o({t:n})},[t,r,e]),st(function(){return Fn(n)&&o({t:n}),t(function(){Fn(n)&&o({t:n})})},[t]),r}function Fn(t){var e,r,i=t.u,n=t.__;try{var o=i();return!((e=n)===(r=o)&&(e!==0||1/e==1/r)||e!=e&&r!=r)}catch(s){return!0}}function Vn(t){t()}function Bn(t){return t}function Wn(){return[!1,Vn]}var $n=Jt;function pi(t,e){this.props=t,this.context=e}function _s(t,e){function r(n){var o=this.props.ref,s=o==n.ref;return!s&&o&&(o.call?o(null):o.current=null),e?!e(this.props,n)||!s:Pn(this.props,n)}function i(n){return this.shouldComponentUpdate=r,Et(t,n)}return i.displayName="Memo("+(t.displayName||t.name)+")",i.prototype.isReactComponent=!0,i.__f=!0,i.type=t,i}(pi.prototype=new lt).isPureReactComponent=!0,pi.prototype.shouldComponentUpdate=function(t,e){return Pn(this.props,t)||Pn(this.state,e)};var vs=oe.__b;oe.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),vs&&vs(t)};var Xc=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function xs(t){function e(r){var i=Os({},r);return delete i.ref,t(i,r.ref||null)}return e.$$typeof=Xc,e.render=t,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var zs=function(t,e){return t==null?null:_t(_t(t).map(e))},Cs={map:zs,forEach:zs,count:function(t){return t?_t(t).length:0},only:function(t){var e=_t(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:_t},qc=oe.__e;oe.__e=function(t,e,r,i){if(t.then){for(var n,o=e;o=o.__;)if((n=o.__c)&&n.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),n.__c(t,e)}qc(t,e,r,i)};var bs=oe.unmount;function Ls(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(i){typeof i.__c=="function"&&i.__c()}),t.__c.__H=null),(t=Os({},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(i){return Ls(i,e,r)})),t}function ks(t,e,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(i){return ks(i,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}function Xr(){this.__u=0,this.o=null,this.__b=null}function Us(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Rs(t){var e,r,i;function n(o){if(e||(e=t()).then(function(s){r=s.default||s},function(s){i=s}),i)throw i;if(!r)throw e;return Et(r,o)}return n.displayName="Lazy",n.__f=!0,n}function wr(){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),bs&&bs(t)},(Xr.prototype=new lt).__c=function(t,e){var r=e.__c,i=this;i.o==null&&(i.o=[]),i.o.push(r);var n=Us(i.__v),o=!1,s=function(){o||(o=!0,r.__R=null,n?n(a):a())};r.__R=s;var a=function(){if(!--i.__u){if(i.state.__a){var c=i.state.__a;i.__v.__k[0]=ks(c,c.__c.__P,c.__c.__O)}var l;for(i.setState({__a:i.__b=null});l=i.o.pop();)l.forceUpdate()}};i.__u++||32&e.__u||i.setState({__a:i.__b=i.__v.__k[0]}),t.then(s,s)},Xr.prototype.componentWillUnmount=function(){this.o=[]},Xr.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=Ls(this.__b,r,i.__O=i.__P)}this.__b=null}var n=e.__a&&Et(Ze,null,t.fallback);return n&&(n.__u&=-33),[Et(Ze,null,e.__a?null:t.children),n]};var Qs=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 eu(t){return this.getChildContext=function(){return t.context},t.children}function tu(t){var e=this,r=t.h;if(e.componentWillUnmount=function(){lr(null,e.v),e.v=null,e.h=null},e.h&&e.h!==r&&e.componentWillUnmount(),!e.v){for(var i=e.__v;i!==null&&!i.__m&&i.__!==null;)i=i.__;e.h=r,e.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:i.__m},contains:function(){return!0},insertBefore:function(n,o){this.childNodes.push(n),e.h.insertBefore(n,o)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.h.removeChild(n)}}}lr(Et(eu,{context:e.context},t.__v),e.v)}function Ps(t,e){var r=Et(tu,{__v:t,h:e});return r.containerInfo=e,r}(wr.prototype=new lt).__a=function(t){var e=this,r=Us(e.__v),i=e.l.get(t);return i[0]++,function(n){var o=function(){e.props.revealOrder?(i.push(n),Qs(e,t,i)):n()};r?r(o):o()}},wr.prototype.render=function(t){this.i=null,this.l=new Map;var e=_t(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},wr.prototype.componentDidUpdate=wr.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,r){Qs(t,r,e)})};var Ys=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,ru=/^(?: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]/,iu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,nu=/[A-Z0-9]/g,ou=typeof document!="undefined",su=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Fs(t,e,r){return e.__k==null&&(e.textContent=""),lr(t,e),typeof r=="function"&&r(),t?t.__c:null}function Vs(t,e,r){return Ds(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 Bs=oe.event;function au(){}function cu(){return this.cancelBubble}function uu(){return this.defaultPrevented}oe.event=function(t){return Bs&&(t=Bs(t)),t.persist=au,t.isPropagationStopped=cu,t.isDefaultPrevented=uu,t.nativeEvent=t};var Hn,lu={enumerable:!1,configurable:!0,get:function(){return this.class}},Ws=oe.vnode;oe.vnode=function(t){typeof t.type=="string"&&(function(e){var r=e.props,i=e.type,n={},o=i.indexOf("-")===-1;for(var s in r){var a=r[s];if(!(s==="value"&&"defaultValue"in r&&a==null||ou&&s==="children"&&i==="noscript"||s==="class"||s==="className")){var c=s.toLowerCase();s==="defaultValue"&&"value"in r&&r.value==null?s="value":s==="download"&&a===!0?a="":c==="translate"&&a==="no"?a=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?s="ondblclick":c!=="onchange"||i!=="input"&&i!=="textarea"||su(r.type)?c==="onfocus"?s="onfocusin":c==="onblur"?s="onfocusout":iu.test(s)&&(s=c):c=s="oninput":o&&ru.test(s)?s=s.replace(nu,"-$&").toLowerCase():a===null&&(a=void 0),c==="oninput"&&n[s=c]&&(s="oninputCapture"),n[s]=a}}i=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=_t(r.children).forEach(function(l){l.props.selected=n.value.indexOf(l.props.value)!=-1})),i=="select"&&n.defaultValue!=null&&(n.value=_t(r.children).forEach(function(l){l.props.selected=n.multiple?n.defaultValue.indexOf(l.props.value)!=-1:n.defaultValue==l.props.value})),r.class&&!r.className?(n.class=r.class,Object.defineProperty(n,"className",lu)):(r.className&&!r.class||r.class&&r.className)&&(n.class=n.className=r.className),e.props=n})(t),t.$$typeof=Ys,Ws&&Ws(t)};var $s=oe.__r;oe.__r=function(t){$s&&$s(t),Hn=t.__c};var Hs=oe.diffed;oe.diffed=function(t){Hs&&Hs(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),Hn=null};var Zs={ReactCurrentDispatcher:{current:{readContext:function(t){return Hn.__n[t.__c].props.value},useCallback:Ln,useContext:Jr,useDebugValue:kn,useDeferredValue:Bn,useEffect:st,useId:Un,useImperativeHandle:bn,useInsertionEffect:$n,useLayoutEffect:Jt,useMemo:Kr,useReducer:hi,useRef:at,useState:Ue,useSyncExternalStore:Yn,useTransition:Wn}}},du="18.3.1";function Gs(t){return Et.bind(null,t)}function qr(t){return!!t&&t.$$typeof===Ys}function Ks(t){return qr(t)&&t.type===Ze}function Js(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Xs(t){return qr(t)?Zc.apply(null,arguments):t}function qs(t){return!!t.__k&&(lr(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)},ia=Ze,na=qr,le={useState:Ue,useId:Un,useReducer:hi,useEffect:st,useLayoutEffect:Jt,useInsertionEffect:$n,useTransition:Wn,useDeferredValue:Bn,useSyncExternalStore:Yn,startTransition:Vn,useRef:at,useImperativeHandle:bn,useMemo:Kr,useCallback:Ln,useContext:Jr,useDebugValue:kn,version:"18.3.1",Children:Cs,render:Fs,hydrate:Vs,unmountComponentAtNode:qs,createPortal:Ps,createElement:Et,createContext:zn,createFactory:Gs,cloneElement:Xs,createRef:cs,Fragment:Ze,isValidElement:qr,isElement:na,isFragment:Ks,isMemo:Js,findDOMNode:ea,Component:lt,PureComponent:pi,memo:_s,forwardRef:xs,flushSync:ra,unstable_batchedUpdates:ta,StrictMode:ia,Suspense:Xr,SuspenseList:wr,lazy:Rs,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Zs};const Mu=Object.freeze(Object.defineProperty({__proto__:null,Children:Cs,Component:lt,Fragment:Ze,PureComponent:pi,StrictMode:ia,Suspense:Xr,SuspenseList:wr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Zs,cloneElement:Xs,createContext:zn,createElement:Et,createFactory:Gs,createPortal:Ps,createRef:cs,default:le,findDOMNode:ea,flushSync:ra,forwardRef:xs,hydrate:Vs,isElement:na,isFragment:Ks,isMemo:Js,isValidElement:qr,lazy:Rs,memo:_s,render:Fs,startTransition:Vn,unmountComponentAtNode:qs,unstable_batchedUpdates:ta,useCallback:Ln,useContext:Jr,useDebugValue:kn,useDeferredValue:Bn,useEffect:st,useErrorBoundary:Gc,useId:Un,useImperativeHandle:bn,useInsertionEffect:$n,useLayoutEffect:Jt,useMemo:Kr,useReducer:hi,useRef:at,useState:Ue,useSyncExternalStore:Yn,useTransition:Wn,version:du},Symbol.toStringTag,{value:"Module"})),gu=t=>t;function Nu(t,e=gu){const r=le.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return le.useDebugValue(r),r}const oa=t=>{const e=Fc(t),r=i=>Nu(e,i);return Object.assign(r,e),r},Iu=t=>t?oa(t):oa;function fu(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function i(){var n=!1;try{n=this instanceof i}catch(o){}return n?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(i){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}),r}var Y={};const Du=fu(Mu);var ei={exports:{}},hu=ei.exports,sa;function yu(){return sa||(sa=1,(function(t,e){(function(r,i){var n="1.0.41",o="",s="?",a="function",c="undefined",l="object",N="string",d="major",u="model",f="name",D="type",M="vendor",I="version",E="architecture",A="console",T="mobile",S="tablet",x="smarttv",z="wearable",v="embedded",ae=500,fe="Amazon",ce="Apple",G="ASUS",F="BlackBerry",$="Browser",Me="Chrome",ue="Edge",ye="Firefox",Te="Google",ee="Honor",W="Huawei",U="Lenovo",K="LG",te="Microsoft",je="Motorola",re="Nvidia",P="OnePlus",q="Opera",We="OPPO",Je="Samsung",ft="Sharp",nt="Sony",Wt="Xiaomi",Dt="Zebra",qt="Facebook",$t="Chromium OS",mt="Mac OS",Ht=" Browser",er=function(J,se){var B={};for(var De in J)se[De]&&se[De].length%2===0?B[De]=se[De].concat(J[De]):B[De]=J[De];return B},jt=function(J){for(var se={},B=0;B<J.length;B++)se[J[B].toUpperCase()]=J[B];return se},ct=function(J,se){return typeof J===N?y(se).indexOf(y(J))!==-1:!1},y=function(J){return J.toLowerCase()},w=function(J){return typeof J===N?J.replace(/[^\d\.]/g,o).split(".")[0]:i},_=function(J,se){if(typeof J===N)return J=J.replace(/^\s\s*/,o),typeof se===c?J:J.substring(0,ae)},Q=function(J,se){for(var B=0,De,$e,be,Ne,Z,Xe;B<se.length&&!Z;){var tr=se[B],Dr=se[B+1];for(De=$e=0;De<tr.length&&!Z&&tr[De];)if(Z=tr[De++].exec(J),Z)for(be=0;be<Dr.length;be++)Xe=Z[++$e],Ne=Dr[be],typeof Ne===l&&Ne.length>0?Ne.length===2?typeof Ne[1]==a?this[Ne[0]]=Ne[1].call(this,Xe):this[Ne[0]]=Ne[1]:Ne.length===3?typeof Ne[1]===a&&!(Ne[1].exec&&Ne[1].test)?this[Ne[0]]=Xe?Ne[1].call(this,Xe,Ne[2]):i:this[Ne[0]]=Xe?Xe.replace(Ne[1],Ne[2]):i:Ne.length===4&&(this[Ne[0]]=Xe?Ne[3].call(this,Xe.replace(Ne[1],Ne[2])):i):this[Ne]=Xe||i;B+=2}},b=function(J,se){for(var B in se)if(typeof se[B]===l&&se[B].length>0){for(var De=0;De<se[B].length;De++)if(ct(se[B][De],J))return B===s?i:B}else if(ct(se[B],J))return B===s?i:B;return se.hasOwnProperty("*")?se["*"]:J},L={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},V={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],[I,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[I,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,I],[/opios[\/ ]+([\w\.]+)/i],[I,[f,q+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[I,[f,q+" GX"]],[/\bopr\/([\w\.]+)/i],[I,[f,q]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[I,[f,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[I,[f,"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],[f,I],[/quark(?:pc)?\/([-\w\.]+)/i],[I,[f,"Quark"]],[/\bddg\/([\w\.]+)/i],[I,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[I,[f,"UC"+$]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[I,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[I,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[I,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[I,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[I,[f,"Smart Lenovo "+$]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+$],I],[/\bfocus\/([\w\.]+)/i],[I,[f,ye+" Focus"]],[/\bopt\/([\w\.]+)/i],[I,[f,q+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[I,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[I,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[I,[f,q+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[I,[f,"MIUI"+Ht]],[/fxios\/([\w\.-]+)/i],[I,[f,ye]],[/\bqihoobrowser\/?([\w\.]*)/i],[I,[f,"360"]],[/\b(qq)\/([\w\.]+)/i],[[f,/(.+)/,"$1Browser"],I],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1"+Ht],I],[/samsungbrowser\/([\w\.]+)/i],[I,[f,Je+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[I,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],I],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[f,I],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[f],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[I,f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,qt],I],[/(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],[f,I],[/\bgsa\/([\w\.]+) .*safari\//i],[I,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[I,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[I,[f,Me+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,Me+" WebView"],I],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[I,[f,"Android "+$]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,I],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[I,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[I,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[I,b,L]],[/(webkit|khtml)\/([\w\.]+)/i],[f,I],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],I],[/(wolvic|librewolf)\/([\w\.]+)/i],[f,I],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[I,[f,ye+" 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],[f,[I,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[f,[I,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[E,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[E,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[E,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[E,/ower/,o,y]],[/ sun4\w[;\)]/i],[[E,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[E,y]]],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],[u,[M,Je],[D,S]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[M,Je],[D,T]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[M,ce],[D,T]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[M,ce],[D,S]],[/(macintosh);/i],[u,[M,ce]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[M,ft],[D,T]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[u,[M,ee],[D,S]],[/honor([-\w ]+)[;\)]/i],[u,[M,ee],[D,T]],[/\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],[u,[M,W],[D,S]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[M,W],[D,T]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[u,/_/g," "],[M,Wt],[D,S]],[/\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],[[u,/_/g," "],[M,Wt],[D,T]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[M,We],[D,T]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[u,[M,b,{OnePlus:["304","403","203"],"*":We}],[D,S]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[M,"Vivo"],[D,T]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[M,"Realme"],[D,T]],[/\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],[u,[M,je],[D,T]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[M,je],[D,S]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[M,K],[D,S]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[M,K],[D,T]],[/(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],[u,[M,U],[D,S]],[/(nokia) (t[12][01])/i],[M,u,[D,S]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[u,/_/g," "],[D,T],[M,"Nokia"]],[/(pixel (c|tablet))\b/i],[u,[M,Te],[D,S]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[M,Te],[D,T]],[/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],[u,[M,nt],[D,T]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[M,nt],[D,S]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[M,P],[D,T]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[M,fe],[D,S]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[M,fe],[D,T]],[/(playbook);[-\w\),; ]+(rim)/i],[u,M,[D,S]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[M,F],[D,T]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[M,G],[D,S]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[M,G],[D,T]],[/(nexus 9)/i],[u,[M,"HTC"],[D,S]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[M,[u,/_/g," "],[D,T]],[/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],[u,[M,"TCL"],[D,S]],[/(itel) ((\w+))/i],[[M,y],u,[D,b,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[M,"Acer"],[D,S]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[M,"Meizu"],[D,T]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[M,"Ulefone"],[D,T]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[u,[M,"Energizer"],[D,T]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[u,[M,"Cat"],[D,T]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[u,[M,"Smartfren"],[D,T]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[M,"Nothing"],[D,T]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[u,[M,"Archos"],[D,S]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[u,[M,"Archos"],[D,T]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[M,u,[D,S]],[/(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],[M,u,[D,T]],[/(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],[M,u,[D,S]],[/(surface duo)/i],[u,[M,te],[D,S]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[M,"Fairphone"],[D,T]],[/(u304aa)/i],[u,[M,"AT&T"],[D,T]],[/\bsie-(\w*)/i],[u,[M,"Siemens"],[D,T]],[/\b(rct\w+) b/i],[u,[M,"RCA"],[D,S]],[/\b(venue[\d ]{2,7}) b/i],[u,[M,"Dell"],[D,S]],[/\b(q(?:mv|ta)\w+) b/i],[u,[M,"Verizon"],[D,S]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[M,"Barnes & Noble"],[D,S]],[/\b(tm\d{3}\w+) b/i],[u,[M,"NuVision"],[D,S]],[/\b(k88) b/i],[u,[M,"ZTE"],[D,S]],[/\b(nx\d{3}j) b/i],[u,[M,"ZTE"],[D,T]],[/\b(gen\d{3}) b.+49h/i],[u,[M,"Swiss"],[D,T]],[/\b(zur\d{3}) b/i],[u,[M,"Swiss"],[D,S]],[/\b((zeki)?tb.*\b) b/i],[u,[M,"Zeki"],[D,S]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[M,"Dragon Touch"],u,[D,S]],[/\b(ns-?\w{0,9}) b/i],[u,[M,"Insignia"],[D,S]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[M,"NextBook"],[D,S]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[M,"Voice"],u,[D,T]],[/\b(lvtel\-)?(v1[12]) b/i],[[M,"LvTel"],u,[D,T]],[/\b(ph-1) /i],[u,[M,"Essential"],[D,T]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[M,"Envizen"],[D,S]],[/\b(trio[-\w\. ]+) b/i],[u,[M,"MachSpeed"],[D,S]],[/\btu_(1491) b/i],[u,[M,"Rotor"],[D,S]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[u,[M,re],[D,S]],[/(sprint) (\w+)/i],[M,u,[D,T]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[M,te],[D,T]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[M,Dt],[D,S]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[M,Dt],[D,T]],[/smart-tv.+(samsung)/i],[M,[D,x]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[M,Je],[D,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[M,K],[D,x]],[/(apple) ?tv/i],[M,[u,ce+" TV"],[D,x]],[/crkey/i],[[u,Me+"cast"],[M,Te],[D,x]],[/droid.+aft(\w+)( bui|\))/i],[u,[M,fe],[D,x]],[/(shield \w+ tv)/i],[u,[M,re],[D,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[M,ft],[D,x]],[/(bravia[\w ]+)( bui|\))/i],[u,[M,nt],[D,x]],[/(mi(tv|box)-?\w+) bui/i],[u,[M,Wt],[D,x]],[/Hbbtv.*(technisat) (.*);/i],[M,u,[D,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[M,_],[u,_],[D,x]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[u,[D,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[D,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[M,u,[D,A]],[/droid.+; (shield)( bui|\))/i],[u,[M,re],[D,A]],[/(playstation \w+)/i],[u,[M,nt],[D,A]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[M,te],[D,A]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[u,[M,Je],[D,z]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[M,u,[D,z]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[u,[M,We],[D,z]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[M,ce],[D,z]],[/(opwwe\d{3})/i],[u,[M,P],[D,z]],[/(moto 360)/i],[u,[M,je],[D,z]],[/(smartwatch 3)/i],[u,[M,nt],[D,z]],[/(g watch r)/i],[u,[M,K],[D,z]],[/droid.+; (wt63?0{2,3})\)/i],[u,[M,Dt],[D,z]],[/droid.+; (glass) \d/i],[u,[M,Te],[D,z]],[/(pico) (4|neo3(?: link|pro)?)/i],[M,u,[D,z]],[/; (quest( \d| pro)?)/i],[u,[M,qt],[D,z]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[M,[D,v]],[/(aeobc)\b/i],[u,[M,fe],[D,v]],[/(homepod).+mac os/i],[u,[M,ce],[D,v]],[/windows iot/i],[[D,v]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[D,T]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[D,S]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[D,S]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[D,T]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[u,[M,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[I,[f,ue+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[f,I],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[I,[f,"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],[f,I],[/ladybird\//i],[[f,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[I,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,I],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[f,[I,b,V]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[I,b,V],[f,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[I,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,mt],[I,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[I,f],[/(ubuntu) ([\w\.]+) like android/i],[[f,/(.+)/,"$1 Touch"],I],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[f,I],[/\(bb(10);/i],[I,[f,F]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[I,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[I,[f,ye+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[I,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[I,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[I,[f,Me+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,$t],I],[/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],[f,I],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],I],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,I]]},H=function(J,se){if(typeof J===l&&(se=J,J=i),!(this instanceof H))return new H(J,se).getResult();var B=typeof r!==c&&r.navigator?r.navigator:i,De=J||(B&&B.userAgent?B.userAgent:o),$e=B&&B.userAgentData?B.userAgentData:i,be=se?er(ie,se):ie,Ne=B&&B.userAgent==De;return this.getBrowser=function(){var Z={};return Z[f]=i,Z[I]=i,Q.call(Z,De,be.browser),Z[d]=w(Z[I]),Ne&&B&&B.brave&&typeof B.brave.isBrave==a&&(Z[f]="Brave"),Z},this.getCPU=function(){var Z={};return Z[E]=i,Q.call(Z,De,be.cpu),Z},this.getDevice=function(){var Z={};return Z[M]=i,Z[u]=i,Z[D]=i,Q.call(Z,De,be.device),Ne&&!Z[D]&&$e&&$e.mobile&&(Z[D]=T),Ne&&Z[u]=="Macintosh"&&B&&typeof B.standalone!==c&&B.maxTouchPoints&&B.maxTouchPoints>2&&(Z[u]="iPad",Z[D]=S),Z},this.getEngine=function(){var Z={};return Z[f]=i,Z[I]=i,Q.call(Z,De,be.engine),Z},this.getOS=function(){var Z={};return Z[f]=i,Z[I]=i,Q.call(Z,De,be.os),Ne&&!Z[f]&&$e&&$e.platform&&$e.platform!="Unknown"&&(Z[f]=$e.platform.replace(/chrome os/i,$t).replace(/macos/i,mt)),Z},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 De},this.setUA=function(Z){return De=typeof Z===N&&Z.length>ae?_(Z,ae):Z,this},this.setUA(De),this};H.VERSION=n,H.BROWSER=jt([f,I,d]),H.CPU=jt([E]),H.DEVICE=jt([u,M,D,A,T,x,S,z,v]),H.ENGINE=H.OS=jt([f,I]),t.exports&&(e=t.exports=H),e.UAParser=H;var he=typeof r!==c&&(r.jQuery||r.Zepto);if(he&&!he.ua){var Ve=new H;he.ua=Ve.getResult(),he.ua.get=function(){return Ve.getUA()},he.ua.set=function(J){Ve.setUA(J);var se=Ve.getResult();for(var B in se)he.ua[B]=se[B]}}})(typeof window=="object"?window:hu)})(ei,ei.exports)),ei.exports}var aa;function pu(){if(aa)return Y;aa=1,Object.defineProperty(Y,"__esModule",{value:!0});function t(m){return m&&typeof m=="object"&&"default"in m?m.default:m}var e=Du,r=t(e),i=yu(),n=new i,o=n.getBrowser(),s=n.getCPU(),a=n.getDevice(),c=n.getEngine(),l=n.getOS(),N=n.getUA(),d=function(g){return n.setUA(g)},u=function(g){if(!g){console.error("No userAgent string was provided");return}var h=new i(g);return{UA:h,browser:h.getBrowser(),cpu:h.getCPU(),device:h.getDevice(),engine:h.getEngine(),os:h.getOS(),ua:h.getUA(),setUserAgent:function(C){return h.setUA(C)}}},f=Object.freeze({ClientUAInstance:n,browser:o,cpu:s,device:a,engine:c,os:l,ua:N,setUa:d,parseUserAgent:u});function D(m,g){var h=Object.keys(m);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(m);g&&(O=O.filter(function(C){return Object.getOwnPropertyDescriptor(m,C).enumerable})),h.push.apply(h,O)}return h}function M(m){for(var g=1;g<arguments.length;g++){var h=arguments[g]!=null?arguments[g]:{};g%2?D(Object(h),!0).forEach(function(O){S(m,O,h[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(h)):D(Object(h)).forEach(function(O){Object.defineProperty(m,O,Object.getOwnPropertyDescriptor(h,O))})}return m}function I(m){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(g){return typeof g}:I=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},I(m)}function E(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function A(m,g){for(var h=0;h<g.length;h++){var O=g[h];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(m,O.key,O)}}function T(m,g,h){return g&&A(m.prototype,g),m}function S(m,g,h){return g in m?Object.defineProperty(m,g,{value:h,enumerable:!0,configurable:!0,writable:!0}):m[g]=h,m}function x(){return x=Object.assign||function(m){for(var g=1;g<arguments.length;g++){var h=arguments[g];for(var O in h)Object.prototype.hasOwnProperty.call(h,O)&&(m[O]=h[O])}return m},x.apply(this,arguments)}function z(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),g&&ae(m,g)}function v(m){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},v(m)}function ae(m,g){return ae=Object.setPrototypeOf||function(O,C){return O.__proto__=C,O},ae(m,g)}function fe(m,g){if(m==null)return{};var h={},O=Object.keys(m),C,Ie;for(Ie=0;Ie<O.length;Ie++)C=O[Ie],!(g.indexOf(C)>=0)&&(h[C]=m[C]);return h}function ce(m,g){if(m==null)return{};var h=fe(m,g),O,C;if(Object.getOwnPropertySymbols){var Ie=Object.getOwnPropertySymbols(m);for(C=0;C<Ie.length;C++)O=Ie[C],!(g.indexOf(O)>=0)&&Object.prototype.propertyIsEnumerable.call(m,O)&&(h[O]=m[O])}return h}function G(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function F(m,g){if(g&&(typeof g=="object"||typeof g=="function"))return g;if(g!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return G(m)}function $(m,g){return Me(m)||ue(m,g)||ye(m,g)||ee()}function Me(m){if(Array.isArray(m))return m}function ue(m,g){var h=m==null?null:typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(h!=null){var O=[],C=!0,Ie=!1,Le,tt;try{for(h=h.call(m);!(C=(Le=h.next()).done)&&(O.push(Le.value),!(g&&O.length===g));C=!0);}catch(dn){Ie=!0,tt=dn}finally{try{!C&&h.return!=null&&h.return()}finally{if(Ie)throw tt}}return O}}function ye(m,g){if(m){if(typeof m=="string")return Te(m,g);var h=Object.prototype.toString.call(m).slice(8,-1);if(h==="Object"&&m.constructor&&(h=m.constructor.name),h==="Map"||h==="Set")return Array.from(m);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return Te(m,g)}}function Te(m,g){(g==null||g>m.length)&&(g=m.length);for(var h=0,O=new Array(g);h<g;h++)O[h]=m[h];return O}function ee(){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 W={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"},K={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},te={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},je=function(g){switch(g){case W.Mobile:return{isMobile:!0};case W.Tablet:return{isTablet:!0};case W.SmartTv:return{isSmartTV:!0};case W.Console:return{isConsole:!0};case W.Wearable:return{isWearable:!0};case W.Browser:return{isBrowser:!0};case W.Embedded:return{isEmbedded:!0};default:return te}},re=function(g){return d(g)},P=function(g){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return g||h},q=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},We=function(g){var h=q();return h&&h.platform&&(h.platform.indexOf(g)!==-1||h.platform==="MacIntel"&&h.maxTouchPoints>1&&!window.MSStream)},Je=function(g,h,O,C,Ie){return{isBrowser:g,browserMajorVersion:P(h.major),browserFullVersion:P(h.version),browserName:P(h.name),engineName:P(O.name),engineVersion:P(O.version),osName:P(C.name),osVersion:P(C.version),userAgent:P(Ie)}},ft=function(g,h,O,C){return M({},g,{vendor:P(h.vendor),model:P(h.model),os:P(O.name),osVersion:P(O.version),ua:P(C)})},nt=function(g,h,O,C){return{isSmartTV:g,engineName:P(h.name),engineVersion:P(h.version),osName:P(O.name),osVersion:P(O.version),userAgent:P(C)}},Wt=function(g,h,O,C){return{isConsole:g,engineName:P(h.name),engineVersion:P(h.version),osName:P(O.name),osVersion:P(O.version),userAgent:P(C)}},Dt=function(g,h,O,C){return{isWearable:g,engineName:P(h.name),engineVersion:P(h.version),osName:P(O.name),osVersion:P(O.version),userAgent:P(C)}},qt=function(g,h,O,C,Ie){return{isEmbedded:g,vendor:P(h.vendor),model:P(h.model),engineName:P(O.name),engineVersion:P(O.version),osName:P(C.name),osVersion:P(C.version),userAgent:P(Ie)}};function $t(m){var g=m?u(m):f,h=g.device,O=g.browser,C=g.engine,Ie=g.os,Le=g.ua,tt=je(h.type),dn=tt.isBrowser,Gd=tt.isMobile,Kd=tt.isTablet,sc=tt.isSmartTV,ac=tt.isConsole,cc=tt.isWearable,uc=tt.isEmbedded;if(dn)return Je(dn,O,C,Ie,Le);if(sc)return nt(sc,C,Ie,Le);if(ac)return Wt(ac,C,Ie,Le);if(Gd||Kd)return ft(tt,h,Ie,Le);if(cc)return Dt(cc,C,Ie,Le);if(uc)return qt(uc,h,C,Ie,Le)}var mt=function(g){var h=g.type;return h===W.Mobile},Ht=function(g){var h=g.type;return h===W.Tablet},er=function(g){var h=g.type;return h===W.Mobile||h===W.Tablet},jt=function(g){var h=g.type;return h===W.SmartTv},ct=function(g){var h=g.type;return h===W.Browser},y=function(g){var h=g.type;return h===W.Wearable},w=function(g){var h=g.type;return h===W.Console},_=function(g){var h=g.type;return h===W.Embedded},Q=function(g){var h=g.vendor;return P(h)},b=function(g){var h=g.model;return P(h)},L=function(g){var h=g.type;return P(h,"browser")},V=function(g){var h=g.name;return h===K.Android},ie=function(g){var h=g.name;return h===K.Windows},H=function(g){var h=g.name;return h===K.MAC_OS},he=function(g){var h=g.name;return h===K.WindowsPhone},Ve=function(g){var h=g.name;return h===K.IOS},J=function(g){var h=g.version;return P(h)},se=function(g){var h=g.name;return P(h)},B=function(g){var h=g.name;return h===U.Chrome},De=function(g){var h=g.name;return h===U.Firefox},$e=function(g){var h=g.name;return h===U.Chromium},be=function(g){var h=g.name;return h===U.Edge},Ne=function(g){var h=g.name;return h===U.Yandex},Z=function(g){var h=g.name;return h===U.Safari||h===U.MobileSafari},Xe=function(g){var h=g.name;return h===U.MobileSafari},tr=function(g){var h=g.name;return h===U.Opera},Dr=function(g){var h=g.name;return h===U.InternetExplorer||h===U.Ie},Ri=function(g){var h=g.name;return h===U.MIUI},Qi=function(g){var h=g.name;return h===U.SamsungBrowser},Pi=function(g){var h=g.version;return P(h)},Yi=function(g){var h=g.major;return P(h)},Fi=function(g){var h=g.name;return P(h)},Vi=function(g){var h=g.name;return P(h)},Bi=function(g){var h=g.version;return P(h)},Wi=function(){var g=q(),h=g&&g.userAgent&&g.userAgent.toLowerCase();return typeof h=="string"?/electron/.test(h):!1},rr=function(g){return typeof g=="string"&&g.indexOf("Edg/")!==-1},$i=function(){var g=q();return g&&(/iPad|iPhone|iPod/.test(g.platform)||g.platform==="MacIntel"&&g.maxTouchPoints>1)&&!window.MSStream},ut=function(){return We("iPad")},Hi=function(){return We("iPhone")},Zi=function(){return We("iPod")},Gi=function(g){return P(g)};function Ki(m){var g=m||f,h=g.device,O=g.browser,C=g.os,Ie=g.engine,Le=g.ua;return{isSmartTV:jt(h),isConsole:w(h),isWearable:y(h),isEmbedded:_(h),isMobileSafari:Xe(O)||ut(),isChromium:$e(O),isMobile:er(h)||ut(),isMobileOnly:mt(h),isTablet:Ht(h)||ut(),isBrowser:ct(h),isDesktop:ct(h),isAndroid:V(C),isWinPhone:he(C),isIOS:Ve(C)||ut(),isChrome:B(O),isFirefox:De(O),isSafari:Z(O),isOpera:tr(O),isIE:Dr(O),osVersion:J(C),osName:se(C),fullBrowserVersion:Pi(O),browserVersion:Yi(O),browserName:Fi(O),mobileVendor:Q(h),mobileModel:b(h),engineName:Vi(Ie),engineVersion:Bi(Ie),getUA:Gi(Le),isEdge:be(O)||rr(Le),isYandex:Ne(O),deviceType:L(h),isIOS13:$i(),isIPad13:ut(),isIPhone13:Hi(),isIPod13:Zi(),isElectron:Wi(),isEdgeChromium:rr(Le),isLegacyEdge:be(O)&&!rr(Le),isWindows:ie(C),isMacOs:H(C),isMIUI:Ri(O),isSamsungBrowser:Qi(O)}}var Ji=jt(a),Xi=w(a),qi=y(a),To=_(a),Ao=Xe(o)||ut(),Eo=$e(o),zr=er(a)||ut(),en=mt(a),tn=Ht(a)||ut(),rn=ct(a),mo=ct(a),nn=V(l),on=he(l),sn=Ve(l)||ut(),jo=B(o),wo=De(o),So=Z(o),Oo=tr(o),an=Dr(o),_o=J(l),vo=se(l),xo=Pi(o),zo=Yi(o),Co=Fi(o),bo=Q(a),Lo=b(a),ko=Vi(c),Uo=Bi(c),Ro=Gi(N),wt=be(o)||rr(N),Qo=Ne(o),ne=L(a),ht=$i(),Cr=ut(),cn=Hi(),un=Zi(),ln=Wi(),Sd=rr(N),Od=be(o)&&!rr(N),_d=ie(l),vd=H(l),xd=Ri(o),zd=Qi(o),Cd=function(g){if(!g||typeof g!="string"){console.error("No valid user agent string was provided");return}var h=u(g),O=h.device,C=h.browser,Ie=h.os,Le=h.engine,tt=h.ua;return Ki({device:O,browser:C,os:Ie,engine:Le,ua:tt})},bd=function(g){var h=g.renderWithFragment,O=g.children,C=ce(g,["renderWithFragment","children"]);return nn?h?r.createElement(e.Fragment,null,O):r.createElement("div",C,O):null},Ld=function(g){var h=g.renderWithFragment,O=g.children,C=ce(g,["renderWithFragment","children"]);return rn?h?r.createElement(e.Fragment,null,O):r.createElement("div",C,O):null},kd=function(g){var h=g.renderWithFragment,O=g.children,C=ce(g,["renderWithFragment","children"]);return an?h?r.createElement(e.Fragment,null,O):r.createElement("div",C,O):null},Ud=function(g){var h=g.renderWithFragment,O=g.children,C=ce(g,["renderWithFragment","children"]);return sn?h?r.createElement(e.Fragment,null,O):r.createElement("div",C,O):null},Rd=function(g){var h=g.renderWithFragment,O=g.children,C=ce(g,["renderWithFragment","children"]);return zr?h?r.createElement(e.Fragment,null,O):r.createElement("div",C,O):null},Qd=function(g){var h=g.renderWithFragment,O=g.children,C=ce(g,["renderWithFragment","children"]);return tn?h?r.createElement(e.Fragment,null,O):r.createElement("div",C,O):null},Pd=function(g){var h=g.renderWithFragment,O=g.children,C=ce(g,["renderWithFragment","children"]);return on?h?r.createElement(e.Fragment,null,O):r.createElement("div",C,O):null},Yd=function(g){var h=g.renderWithFragment,O=g.children;g.viewClassName,g.style;var C=ce(g,["renderWithFragment","children","viewClassName","style"]);return en?h?r.createElement(e.Fragment,null,O):r.createElement("div",C,O):null},Fd=function(g){var h=g.renderWithFragment,O=g.children,C=ce(g,["renderWithFragment","children"]);return Ji?h?r.createElement(e.Fragment,null,O):r.createElement("div",C,O):null},Vd=function(g){var h=g.renderWithFragment,O=g.children,C=ce(g,["renderWithFragment","children"]);return Xi?h?r.createElement(e.Fragment,null,O):r.createElement("div",C,O):null},Bd=function(g){var h=g.renderWithFragment,O=g.children,C=ce(g,["renderWithFragment","children"]);return qi?h?r.createElement(e.Fragment,null,O):r.createElement("div",C,O):null},Wd=function(g){var h=g.renderWithFragment,O=g.children;g.viewClassName,g.style;var C=g.condition,Ie=ce(g,["renderWithFragment","children","viewClassName","style","condition"]);return C?h?r.createElement(e.Fragment,null,O):r.createElement("div",Ie,O):null};function $d(m){return(function(g){z(h,g);function h(O){var C;return E(this,h),C=F(this,v(h).call(this,O)),C.isEventListenerAdded=!1,C.handleOrientationChange=C.handleOrientationChange.bind(G(C)),C.onOrientationChange=C.onOrientationChange.bind(G(C)),C.onPageLoad=C.onPageLoad.bind(G(C)),C.state={isLandscape:!1,isPortrait:!1},C}return T(h,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var C=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:C===0,isLandscape:C===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window=="undefined"?"undefined":I(window))!==void 0&&zr&&(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(m,x({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),h})(r.Component)}function Hd(){var m=e.useState(function(){var Ie=window.innerWidth>window.innerHeight?90:0;return{isPortrait:Ie===0,isLandscape:Ie===90,orientation:Ie===0?"portrait":"landscape"}}),g=$(m,2),h=g[0],O=g[1],C=e.useCallback(function(){var Ie=window.innerWidth>window.innerHeight?90:0,Le={isPortrait:Ie===0,isLandscape:Ie===90,orientation:Ie===0?"portrait":"landscape"};h.orientation!==Le.orientation&&O(Le)},[h.orientation]);return e.useEffect(function(){return(typeof window=="undefined"?"undefined":I(window))!==void 0&&zr&&(C(),window.addEventListener("load",C,!1),window.addEventListener("resize",C,!1)),function(){window.removeEventListener("resize",C,!1),window.removeEventListener("load",C,!1)}},[C]),h}function oc(m){var g=m||window.navigator.userAgent;return u(g)}function Zd(m){var g=m||window.navigator.userAgent,h=oc(g),O=Ki(h);return[O,h]}return Y.AndroidView=bd,Y.BrowserTypes=U,Y.BrowserView=Ld,Y.ConsoleView=Vd,Y.CustomView=Wd,Y.IEView=kd,Y.IOSView=Ud,Y.MobileOnlyView=Yd,Y.MobileView=Rd,Y.OsTypes=K,Y.SmartTVView=Fd,Y.TabletView=Qd,Y.WearableView=Bd,Y.WinPhoneView=Pd,Y.browserName=Co,Y.browserVersion=zo,Y.deviceDetect=$t,Y.deviceType=ne,Y.engineName=ko,Y.engineVersion=Uo,Y.fullBrowserVersion=xo,Y.getSelectorsByUserAgent=Cd,Y.getUA=Ro,Y.isAndroid=nn,Y.isBrowser=rn,Y.isChrome=jo,Y.isChromium=Eo,Y.isConsole=Xi,Y.isDesktop=mo,Y.isEdge=wt,Y.isEdgeChromium=Sd,Y.isElectron=ln,Y.isEmbedded=To,Y.isFirefox=wo,Y.isIE=an,Y.isIOS=sn,Y.isIOS13=ht,Y.isIPad13=Cr,Y.isIPhone13=cn,Y.isIPod13=un,Y.isLegacyEdge=Od,Y.isMIUI=xd,Y.isMacOs=vd,Y.isMobile=zr,Y.isMobileOnly=en,Y.isMobileSafari=Ao,Y.isOpera=Oo,Y.isSafari=So,Y.isSamsungBrowser=zd,Y.isSmartTV=Ji,Y.isTablet=tn,Y.isWearable=qi,Y.isWinPhone=on,Y.isWindows=_d,Y.isYandex=Qo,Y.mobileModel=Lo,Y.mobileVendor=bo,Y.osName=vo,Y.osVersion=_o,Y.parseUserAgent=u,Y.setUserAgent=re,Y.useDeviceData=oc,Y.useDeviceSelectors=Zd,Y.useMobileOrientation=Hd,Y.withOrientationChange=$d,Y}var qe=pu();const Tu=(t,e)=>Zn(t,e),Zn=(t,e)=>{const r=Gn(t,e);for(const i in r)if(Object.prototype.hasOwnProperty.call(r,i)){const n=r[i];if(typeof n=="object"&&!Array.isArray(n))r[i]=Gn(n,e);else if(Array.isArray(n)){const o=n.map(s=>typeof s=="object"?Zn(s,e):s);r[i]=o}}return r},Gn=(t,e)=>{const r=Au(t),i=t.layout;if(!i||i.length===0)return r;let n=null;if(i.forEach(o=>{const s=e[o];n?s&&Eu(s,n):n=s}),n){const o=Gn(n,e);for(const s in o)if(Object.prototype.hasOwnProperty.call(o,s)){const a=o[s];Object.prototype.hasOwnProperty.call(r,s)||(r[s]=a)}}return Zn(r,e)},Au=t=>{const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&r.toLowerCase()!=="layout"&&(e[r]=t[r]);return e},Eu=(t,e)=>{for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Qe=[];for(let t=0;t<256;++t)Qe.push((t+256).toString(16).slice(1));function mu(t,e=0){return(Qe[t[e+0]]+Qe[t[e+1]]+Qe[t[e+2]]+Qe[t[e+3]]+"-"+Qe[t[e+4]]+Qe[t[e+5]]+"-"+Qe[t[e+6]]+Qe[t[e+7]]+"-"+Qe[t[e+8]]+Qe[t[e+9]]+"-"+Qe[t[e+10]]+Qe[t[e+11]]+Qe[t[e+12]]+Qe[t[e+13]]+Qe[t[e+14]]+Qe[t[e+15]]).toLowerCase()}let Kn;const ju=new Uint8Array(16);function wu(){if(!Kn){if(typeof crypto=="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Kn=crypto.getRandomValues.bind(crypto)}return Kn(ju)}const ca={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Su(t,e,r){var n,o,s;t=t||{};const i=(s=(o=t.random)!=null?o:(n=t.rng)==null?void 0:n.call(t))!=null?s:wu();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,mu(i)}function Ou(t,e,r){return ca.randomUUID&&!t?ca.randomUUID():Su(t)}function Jn(t){try{return JSON.parse(JSON.stringify(t))}catch(e){return console.warn("Failed to copy object:",e),null}}const ua=(t,e)=>{if(!t||!e)return null;let r=null;return r=Jn(t),r&&(r=Tu(r,e)),r};function _u(t){return k(this,null,function*(){return new Promise(e=>setTimeout(e,t))})}function vu(n,o){return k(this,arguments,function*(t,e,r=Rc,i=Qc){let s=0;for(;s<r;){const a=yield t();if(a!==null)return a;s++,s<r&&(yield _u(i))}return e()})}const xu=(t,e,r)=>{const i=t.reduce((o,s)=>(o.push(...s.supportedTemplates),o),[]),n=e.find(o=>o.id===r);return i.includes(n==null?void 0:n.client.templateId)},zu=(t,e)=>{if(!t||!e)return!1;const r=t.find(n=>n.id===e);return(r==null?void 0:r.type)!=="PROCESSING"},Cu=(t,e)=>{const r=t.reduce((s,a)=>(s.push(...a.supportedTemplates),s),[]),i=Array.from(new Set(e.filter(s=>!s.releaseClientApp&&Uc.includes(s.type)).map(s=>s.client.templateId)));function n(s,a){const c=new Set(s);return a.filter(l=>!c.has(l))}const o=n(r,i);return{isAllTemplatesSupported:o.length===0,unsupportedSteps:o.length>0?o:void 0}},Mr={setAuthTokenToLs:(t,e,r,i,n)=>{const o=localStorage.getItem(Wr),s=o?JSON.parse(o):{},a={authToken:t,tokenExpiresAt:n,workflowId:i,sessionId:r};s[e]=a,localStorage.setItem(Wr,JSON.stringify(s))},getAuthTokenLs:()=>{const t=localStorage.getItem(Wr);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(Wr);if(!e)return!1;try{const r=JSON.parse(e);return Object.prototype.hasOwnProperty.call(r,t)?(delete r[t],localStorage.setItem(Wr,JSON.stringify(r)),!0):!1}catch(r){return!1}}},Xn=t=>!!t&&typeof t=="object"&&!Array.isArray(t),qn=t=>/^[^:{}\s]+:[^:{}\s]+$/.test(t),eo={setSessionIdWorkflowIdToLs:(t,e)=>{const r=localStorage.getItem(cr);let i={};if(r)try{const n=JSON.parse(r);Xn(n)&&(i=n)}catch(n){if(qn(r)){const[o,s]=r.split(":");o&&s&&(i={[s]:o})}}i[e]=t,localStorage.setItem(cr,JSON.stringify(i))},getSessionIdWorkflowIdFromLS:()=>{const t=localStorage.getItem(cr);if(!t)return null;try{const e=JSON.parse(t);return Xn(e)?e:null}catch(e){if(qn(t)){const[r,i]=t.split(":");if(r&&i)return{[i]:r}}return null}},removeSessionIdWorkflowIdFromLS:({workflowId:t=""})=>{const e=localStorage.getItem(cr);if(!e)return!1;if(!t)return localStorage.removeItem(cr),!0;try{const r=JSON.parse(e);if(!Xn(r))return!1;const i=r;return Object.prototype.hasOwnProperty.call(i,t)?(delete i[t],localStorage.setItem(cr,JSON.stringify(i)),!0):!1}catch(r){if(qn(e)){const[,i]=e.split(":");return i===t?(localStorage.removeItem(cr),!0):!1}return!1}}},bu=t=>{var i;let e;const r=Ou();try{e=(i=window.localStorage.getItem(t))!=null?i:r,window.localStorage.setItem(t,e)}catch(n){e=r}return e};function Lu(t){return Object.prototype.toString.call(t)==="[object Object]"&&Object.keys(t).length>0}function ku(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function Uu(){return typeof document=="undefined"?null:document.documentElement.getAttribute("lang")||null}function Ru(){return typeof navigator!="undefined"?navigator.language:null}const Qu=t=>{const e=Yc,r=typeof t=="string"?t:null,i=Uu(),n=Ru();return r||i||n||e},Pu=t=>{try{return new URL(t).searchParams.get("sessionId")}catch(e){return null}};function la(t){return!("error"in t)}function to(t){try{let e=t;!t.includes("://")&&t.includes(".")&&(e=`http://${t}`);const r=new URL(e),i=r.hostname,n=r.protocol==="https:",o=r.port?parseInt(r.port,10):void 0;return{host:i,isSecure:n,port:o}}catch(e){return null}}const da=()=>{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}},Yu=t=>{const e=bu(Pc);return{deviceId:e,metadata:{platform:"browser",osVersion:`${qe.osVersion}`,hostAppId:da(),host:da(),sdkVersion:"3.2.272-nightly".trim(),name:navigator.userAgent,deviceModel:`${qe.osName}/${qe.osVersion} ${qe.browserName}/${qe.fullBrowserVersion}`,hostAppVersion:`${qe.browserName}/${qe.fullBrowserVersion}`,userID:e},deviceType:"browser",heartbeatCadence:0,serial:"",macAddress:""}};function Fu(){return k(this,null,function*(){if(typeof navigator=="undefined"||!("geolocation"in navigator))return null;try{return!("permissions"in navigator)||(yield navigator.permissions.query({name:"geolocation"})).state!=="granted"?null:yield new Promise(e=>{navigator.geolocation.getCurrentPosition(r=>{e({lat:r.coords.latitude,lon:r.coords.longitude})},()=>e(null))})}catch(t){return null}})}const Ma={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:{},locale:"",trackLocation:!1,listener:()=>{}},Vu=(t,e)=>X(j({},Ma),{setApiKeyAuthTokenCollection:(r,i,n)=>{t({apiKeyAuthTokenCollection:{authToken:i,apiKey:r,tokenExpiresAt:n}})},setSessionProperties:r=>{t({sessionProperties:r})},setServiceSessionToken:r=>{t({serviceToken:r})},setListener:r=>{t({listener:r})},getCurrentSessionDataLs:()=>{const r=eo.getSessionIdWorkflowIdFromLS(),i=e().workflowId,o=r&&r[i];return i&&o?{workflowId:i,sessionId:o}:null},setCurrentSessionDataLsAndStore:r=>{eo.setSessionIdWorkflowIdToLs(r.sessionId,r.workflowId),t(()=>({currentSessionData:r}))},removeCurrentSessionDataLsAndStore:()=>{const r=e().startConfig,i="apiKey"in r&&typeof r.apiKey=="string"?r.apiKey:"",n=e().workflowId;i?Mr.removeAuthTokenLs(i):eo.removeSessionIdWorkflowIdFromLS({workflowId:n}),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(()=>j({},Ma)),setStartConfig:r=>{t(()=>({startConfig:r}))},setLocale:r=>{t(()=>({locale:r}))},setTrackLocation:r=>{t(()=>({trackLocation:r}))}});class Ae{constructor({errorCode:e,errorCodeKey:r,message:i,underlyingError:n,underlyingBaseError:o,domain:s,module:a,errorEnumName:c,shortDomainCode:l}){this.errorCode=e,this.errorCodeKey=r,this.message=i,this.underlyingError=n,this.underlyingBaseError=o,this.module=a,this.domain=s,this.errorEnumName=c,this.shortDomainCode=l}static getErrorKey(e,r){const i=Object.keys(r).find(n=>r[n]===e);if(!i)throw new Error(`Invalid errorCode: ${e} in enum`);return i}get lastUnderlyingError(){let e=this.underlyingBaseError;for(;(e==null?void 0:e.underlyingBaseError)instanceof Ae;)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 Ae&&(e.underlyingBaseError=this.underlyingBaseError.toObject()),e}get shortChain(){let e=`${this.shortDomainCode}:${this.errorCode}${this.underlyingError?"-"+this.underlyingError:""}`;return this.underlyingBaseError instanceof Ae&&(e+=`-${this.underlyingBaseError.shortChain}`),e}get fullChain(){let e=`${this.module}.${this.domain}:${this.errorCodeKey}${this.underlyingError?"-"+this.underlyingError:""}`;return this.underlyingBaseError instanceof Ae&&(e+=`-${this.underlyingBaseError.fullChain}`),e}}class ga extends HTMLElement{}function Na(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 Ti={FORM:"form",DATA:"data"},bt=class bt extends Ae{constructor({errorCode:e,message:r,underlyingError:i,underlyingBaseError:n}){const o=Ae.getErrorKey(e,Vr);super({errorCode:e,errorCodeKey:o,errorEnumName:bt.ERROR_ENUM_NAME,module:bt.MODULE,message:r,underlyingError:i,underlyingBaseError:n,domain:bt.ERROR_ENUM_NAME,shortDomainCode:bt.SHORT_CODE})}};bt.MODULE=Tt,bt.ERROR_ENUM_NAME="InitializeError",bt.SHORT_CODE="IN";let Ai=bt;const Lt=class Lt extends Ae{constructor({errorCode:e,message:r,underlyingError:i,underlyingBaseError:n}){const o=Ae.getErrorKey(e,Ii);super({errorCode:e,errorCodeKey:o,errorEnumName:Lt.ERROR_ENUM_NAME,module:Lt.MODULE,message:r,underlyingError:i,underlyingBaseError:n,domain:Lt.ERROR_ENUM_NAME,shortDomainCode:Lt.SHORT_CODE})}};Lt.MODULE=Tt,Lt.ERROR_ENUM_NAME="TokenInitializeError",Lt.SHORT_CODE="TI";let Ei=Lt;const kt=class kt extends Ae{constructor({errorCode:e,message:r,underlyingError:i,underlyingBaseError:n}){const o=Ae.getErrorKey(e,yt);super({errorCode:e,errorCodeKey:o,errorEnumName:kt.ERROR_ENUM_NAME,module:kt.MODULE,message:r,underlyingError:i,underlyingBaseError:n,domain:kt.ERROR_ENUM_NAME,shortDomainCode:kt.SHORT_CODE})}};kt.MODULE=Tt,kt.ERROR_ENUM_NAME="PrepareWorkflowError",kt.SHORT_CODE="PW";let xt=kt;const Ut=class Ut extends Ae{constructor({errorCode:e,message:r,underlyingError:i,underlyingBaseError:n}){const o=Ae.getErrorKey(e,Re);super({errorCode:e,errorCodeKey:o,errorEnumName:Ut.ERROR_ENUM_NAME,module:Ut.MODULE,message:r,underlyingError:i,underlyingBaseError:n,domain:Ut.ERROR_ENUM_NAME,shortDomainCode:Ut.SHORT_CODE})}};Ut.MODULE=Tt,Ut.ERROR_ENUM_NAME="ConfigureError",Ut.SHORT_CODE="CFG";let Pe=Ut;const Rt=class Rt extends Ae{constructor({errorCode:e,message:r,underlyingError:i,underlyingBaseError:n}){const o=Ae.getErrorKey(e,Be);super({errorCode:e,errorCodeKey:o,errorEnumName:Rt.ERROR_ENUM_NAME,module:Rt.MODULE,message:r,underlyingError:i,underlyingBaseError:n,domain:Rt.ERROR_ENUM_NAME,shortDomainCode:Rt.SHORT_CODE})}};Rt.MODULE=Tt,Rt.ERROR_ENUM_NAME="WorkflowError",Rt.SHORT_CODE="SC";let Ge=Rt;const Qt=class Qt extends Ae{constructor({errorCode:e,message:r,underlyingError:i,underlyingBaseError:n}){const o=Ae.getErrorKey(e,Ot);super({errorCode:e,errorCodeKey:o,errorEnumName:Qt.ERROR_ENUM_NAME,module:Qt.MODULE,message:r,underlyingError:i,underlyingBaseError:n,domain:Qt.ERROR_ENUM_NAME,shortDomainCode:Qt.SHORT_CODE})}};Qt.MODULE=Tt,Qt.ERROR_ENUM_NAME="ConnectionError",Qt.SHORT_CODE="CO";let ti=Qt;const Pt=class Pt extends Ae{constructor({errorCode:e,message:r,underlyingError:i,underlyingBaseError:n}){const o=Ae.getErrorKey(e,ot);super({errorCode:e,errorCodeKey:o,errorEnumName:Pt.ERROR_ENUM_NAME,module:Pt.MODULE,message:r,underlyingError:i,underlyingBaseError:n,domain:Pt.ERROR_ENUM_NAME,shortDomainCode:Pt.SHORT_CODE})}};Pt.MODULE=Tt,Pt.ERROR_ENUM_NAME="SessionError",Pt.SHORT_CODE="SE";let ri=Pt;const Yt=class Yt extends Ae{constructor({errorCode:e,message:r,underlyingError:i,underlyingBaseError:n}){const o=Ae.getErrorKey(e,Kt);super({errorCode:e,errorCodeKey:o,errorEnumName:Yt.ERROR_ENUM_NAME,module:Yt.MODULE,message:r,underlyingError:i,underlyingBaseError:n,domain:Yt.ERROR_ENUM_NAME,shortDomainCode:Yt.SHORT_CODE})}};Yt.MODULE=Tt,Yt.ERROR_ENUM_NAME="StartSessionError",Yt.SHORT_CODE="ST";let gr=Yt;const Ft=class Ft extends Ae{constructor({errorCode:e,message:r,underlyingError:i,underlyingBaseError:n}){const o=Ae.getErrorKey(e,Br);super({errorCode:e,errorCodeKey:o,errorEnumName:Ft.ERROR_ENUM_NAME,module:Ft.MODULE,message:r,underlyingError:i,underlyingBaseError:n,domain:Ft.ERROR_ENUM_NAME,shortDomainCode:Ft.SHORT_CODE})}};Ft.MODULE=Tt,Ft.ERROR_ENUM_NAME="DeinitializationError",Ft.SHORT_CODE="DE";let mi=Ft;const Vt=class Vt extends Ae{constructor({errorCode:e,message:r,underlyingError:i,underlyingBaseError:n}){const o=Ae.getErrorKey(e,pt);super({errorCode:e,errorCodeKey:o,errorEnumName:Vt.ERROR_ENUM_NAME,module:Vt.MODULE,message:r,underlyingError:i,underlyingBaseError:n,domain:Vt.ERROR_ENUM_NAME,shortDomainCode:Vt.SHORT_CODE})}};Vt.MODULE=Tt,Vt.ERROR_ENUM_NAME="WorkflowPlatformError",Vt.SHORT_CODE="WPE";let ji=Vt;class Sr{constructor(){this.webSocket=null,this.callbacks=new Set,this.connected=!1}static getInstance(){return Sr.instance||(Sr.instance=new Sr),Sr.instance}isConnected(){return this.connected}connect({host:e,isSecure:r=!0,token:i,port:n}){return this.connected?Promise.resolve():new Promise(o=>{const s=`ws${r?"s":""}://${e}${n?`:${n}`:""}/ws/device?Authorization=Connection%20${i}`;this.webSocket=new WebSocket(s),this.webSocket.onopen=()=>{this.connected=!0,o()},this.webSocket.onerror=()=>o(),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 dt=Sr.getInstance();var Bu=0;function p(t,e,r,i,n,o){e||(e={});var s,a,c=e;if("ref"in c)for(a in c={},e)a=="ref"?s=e[a]:c[a]=e[a];var l={type:t,props:c,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Bu,__i:-1,__u:0,__source:n,__self:o};if(typeof t=="function"&&(s=t.defaultProps))for(a in s)c[a]===void 0&&(c[a]=s[a]);return oe.vnode&&oe.vnode(l),l}const ro=zn(void 0),Ia=({perform:t,children:e,setIsProcessingCallback:r})=>p(ro.Provider,{value:{perform:t,setIsProcessingCallback:r},children:e}),Nr=()=>{const t=Jr(ro);if(!t)throw new Error("usePerform must be used within a PerformProvider");return{perform:t.perform}},Wu=()=>{const t=Jr(ro);if(!t)throw new Error("useSetIsProcessingCallback must be used within a Context Provider");return{setIsProcessingCallback:t.setIsProcessingCallback}},$u={width:"86px",height:"86px",flex:"0 0 86px",marginBottom:"16px",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center"},Mt={INFO:"INFO",INFO_DETAILS:"INFO_DETAILS",STATUS:"STATUS",PROGRESS:"PROGRESS",QUESTIONS:"QUESTIONS",CAMERA:"CAMERA",GALLERY:"GALLERY",GEOLOCATION:"GEOLOCATION"},wi={LEFT:"LEFT",CENTER:"CENTER",RIGHT:"RIGHT"},Si={ASPECT_FILL:"ASPECT_FILL",ASPECT_FIT:"ASPECT_FIT",FILL:"FILL"},Or={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"},Oi={FREE_TEXT:"FREE_TEXT",EMAIL:"EMAIL",NUMBER:"NUMBER",SECURE:"SECURE"},Hu=({dataUrl:t})=>{const e=at(null),r=360/1e3;return st(()=>{if(!e.current)return;let i=!0,n=0,o=performance.now();function s(a){if(!i)return;const c=a-o;o=a,n=(n+r*c)%360,e.current&&(e.current.style.transform=`rotate(${n}deg)`),requestAnimationFrame(s)}return requestAnimationFrame(s),()=>{i=!1}},[]),p("img",{src:t,ref:e})},pe={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"},io={[pe.SPINNER]:t=>{const e="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBzdHlsZT0idHJhbnNmb3JtOiByb3RhdGUoMGRlZyk7Ij4KICA8Y2lyY2xlIGN4PSIzMCIgY3k9IjMwIiByPSIyNy41IiBmaWxsPSJub25lIiBzdHJva2U9IiM3RTU3QzUiIHN0cm9rZS13aWR0aD0iNSIgc3Ryb2tlLWRhc2hhcnJheT0iMTI5LjU5MDY5Njk2MDU3ODk4IDQzLjE5Njg5ODk4Njg1OTY2IiBzdHJva2UtZGFzaG9mZnNldD0iMCIgc3Ryb2tlLWxpbmVjYXA9ImJ1dHQiIHRyYW5zZm9ybT0icm90YXRlKC00NSAzMCAzMCkiLz4KPC9zdmc+Cg==";if(!t)return e;const r=e.split(",");let i=atob(r[1]);i=i.replace(/stroke="[^"]*"/g,`stroke="${t}"`);const n=btoa(i);return`${r[0]},${n}`},[pe.AGE]:()=>"data:image/svg+xml;base64,IDxzdmcgd2lkdGg9IjQ4IiBoZWlnaHQ9IjQ4IiB2aWV3LWJveD0i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I5QzQ1LjI5NzkgNTYuMjMzNyA0NS41NjY0IDU2Ljg5MjkgNDUuNTY2NCA1Ny42OTA0QzQ1LjU2NjQgNTguNDcxNyA0NS4yOTc5IDU5LjEzMDkgNDQuNzYwNyA1OS42NjhDNDQuMjM5OSA2MC4yMDUxIDQzLjU4MDcgNjAuNDczNiA0Mi43ODMyIDYwLjQ3MzZaIiBmaWxsPSIjRkNCOTM3Ii8+Cjwvc3ZnPgo=",[pe.DEFAULT]:()=>""},fa=({type:t,color:e})=>{const r=io[t]||io[pe.DEFAULT],i=r==null?void 0:r(e);return t===pe.SPINNER?p(Hu,{dataUrl:i}):p("img",{src:i})},ii="#005fcc",_i="idv-gui",vi={DECODING_FAILED:"DECODING_FAILED"},no={text:"text",selector:"selector",multiSelector:"multiSelector"},Da={NOT_EMPTY:"notEmpty",REGEX:"regex"};function ha(t){return t===wi.CENTER?"center":t===wi.RIGHT?"right":"left"}function oo(t){if(typeof t=="object"&&t!==null)for(const e in t)typeof t[e]=="object"?oo(t[e]):t[e]==="true"?t[e]=!0:t[e]==="false"&&(t[e]=!1);return t}function Zu(t){return Object.entries(t).map(([e,r])=>({id:e,value:typeof r=="string"?r.trim():r})).filter(e=>!!e.value)}const Gu=t=>Array.isArray(t)?t.length===0:t===0?!1:!t;function de(t){return t&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)?t:void 0}const Ku=(t,e)=>t.reduce((r,i)=>{var n,o,s;if(i.answerType===no.text&&(n=i.property)!=null&&n.id){const a=e.find(c=>c.name===i.property.id);if(a!=null&&a.string)return X(j({},r),{[i.id]:a.string})}if(i.answerType===no.selector&&(o=i.property)!=null&&o.id){const a=e.find(c=>c.name===i.property.id);if(a!=null&&a.string)return X(j({},r),{[i.id]:a.string})}if(i.answerType===no.multiSelector&&(s=i.property)!=null&&s.id){const a=e.find(c=>c.name===i.property.id);if(a!=null&&a.array)return X(j({},r),{[i.id]:a.array})}return r},{}),ya=t=>new Promise((e,r)=>{const i=new FileReader;i.onload=()=>{const n=i.result;if(typeof n=="string"){const o=n.split(",")[1];e(o)}else r(new Error("Unexpected result type"))},i.onerror=()=>r(i.error),i.readAsDataURL(t)}),Ju=()=>k(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"}}),Xu=()=>String.fromCharCode(Math.floor(Math.random()*26)+97)+Number(Math.random()).toString(16).slice(2)+Date.now().toString(16).slice(4),pa=t=>(t==null?void 0:t.some(r=>r.type==="FORM"))?Ti.FORM:Ti.DATA,Ye=({imageId:t,imageURL:e,base64:r,contentMode:i=Si.ASPECT_FILL,cornerRadius:n,backgroundColor:o})=>{const s=d=>{if(d===Si.ASPECT_FILL)return"cover";if(d===Si.ASPECT_FIT)return"contain";if(d===Si.FILL)return"fill"},[a,c]=Ue(!0),l=a&&e,N=()=>{c(!1)};if(r)return p("img",{style:{width:"100%",height:"100%",objectFit:s(i),borderRadius:n,backgroundColor:de(o)||"transparent",display:l?"none":"block"},src:r});if(t){const d=t in io?t:"default";return p(fa,{type:d})}if(e)return p(Ze,{children:[l&&p("div",{style:{width:"100%",height:"100%",backgroundColor:"#e0e0e0",borderRadius:n}}),p("img",{style:{width:"100%",height:"100%",objectFit:s(i),borderRadius:n,backgroundColor:o,display:l?"none":"block"},src:e,onLoad:N})]})},qu=({signature:t})=>p("footer",{"data-ui":"gui-footer",part:"gui-footer",style:{display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",height:"100%",width:"100%"},children:p("a",{href:"",children:p(Ye,j({},t))})}),el={display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"18px",height:"36px",minWidth:"36px",border:"none",cursor:"pointer"},tl=({dataTestId:t,responseBody:e,image:r,title:i,backgroundColor:n="transparent",cornerRadius:o,highlightColor:s})=>{var u;const[a,c]=Ue(!1),l=a&&s?s:n,{perform:N}=Nr();return p("button",{"data-ui":"gui-close-button",part:"gui-close-button","data-test":t,onClick:()=>{const f=JSON.parse(JSON.stringify(e));oo(f),N(f,Ti.DATA)},className:"hover-button",style:X(j(j({},el),o&&{borderRadius:o}),{backgroundColor:(u=de(l))!=null?u:"transparent"}),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[r&&p("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"24px",height:"24px"},children:p(Ye,j({},r))}),i&&p("div",{style:{padding:"0 5px"},children:p(_e,j({},i))})]})},rl=({closeButton:t})=>p("header",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"center",paddingRight:"16px"},"data-ui":"gui-header",part:"gui-header",children:p("div",{children:t&&p(tl,j({dataTestId:"close-btn"},t))})});function il(t){var n;const e=/\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g,r=[];let i=0;for(const o of t.matchAll(e)){const[s,a,c]=o,l=(n=o.index)!=null?n:0;l>i&&r.push(t.slice(i,l));const N=c.startsWith("http")?c:`https://${c}`;r.push(p("a",{href:N,target:"_blank",rel:"noopener noreferrer",children:a},l)),i=l+s.length}return i<t.length&&r.push(t.slice(i)),r}function Ta(t){const e=t.split(`
|
|
91
|
+
`);return e.flatMap((r,i)=>{const n=il(r);return i===e.length-1?n:[...n,p("br",{},"br-"+i)]})}const _e=({text:t,fontName:e="",fontSize:r="17px",fontColor:i,alignment:n=wi.LEFT,backgroundColor:o,cornerRadius:s=0,htmlFor:a})=>{const c={fontFamily:[e,"-apple-system","BlinkMacSystemFont","sans-serif"].filter(Boolean).join(", "),fontSize:r,color:de(i)||"#000000",textAlign:ha(n),backgroundColor:de(o)||"transparent",borderRadius:s},l=typeof t=="string"&&t.trim()&&Ta(t);return a?p("label",{"data-ui":"gui-label",part:"gui-label",style:c,htmlFor:a,children:l}):p("div",{"data-ui":"gui-label",part:"gui-label",style:c,children:l})},xi=({title:t,image:e,responseBody:r,backgroundColor:i="transparent",cornerRadius:n,highlightColor:o,dataTestId:s,borderColor:a,borderWidth:c,type:l="RESPONSE_BODY",onClick:N})=>{var E,A;const[d,u]=Ue(!1),f=d&&de(o)?o:i,{perform:D}=Nr(),M=T=>{if(N&&N(T),l!=="RESPONSE_BODY")return;const S=JSON.parse(JSON.stringify(r));oo(S),D(S,Ti.DATA)},I={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:n||0,borderStyle:a&&c?"solid":void 0,backgroundColor:(E=de(f))!=null?E:"transparent",borderColor:(A=de(a))!=null?A:"none",borderWidth:c!=null?c:0,overflow:"hidden",transition:".3s",outlineColor:ii};return p("button",{"data-ui":"gui-button",part:"gui-button",type:l==="FORM"?"submit":"button","data-test":s,onClick:M,style:I,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[e&&p(Ye,j({},e)),t&&p("div",{style:{flexGrow:e?0:1},children:p(_e,j({},t))})]})},nl=r=>{var i=r,{items:t}=i,e=hr(i,["items"]);return p("div",{part:"gui-buttons","data-ui":"gui-buttons",style:j(j({},{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(o=>{var s;return p(xi,j({dataTestId:"button-"+((s=o.title)==null?void 0:s.text)},o),Xu())})})},Xt=({children:t,header:e,footer:r,backgroundColor:i="white",buttons:n})=>{const o=e?60:10,s=r?30:10,a={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",justifyContent:"center",margin:"0 auto",paddingTop:e?o+10+"px":"10px",paddingBottom:r?s+10+"px":"10px",paddingLeft:"20px",paddingRight:"20px",height:"100%",width:"100%",backgroundColor:de(i)};return p("div",{part:"gui-base-container","data-ui":"gui-base-container",id:"base-container",style:j({},a),children:[e&&p("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:o},children:p(rl,{closeButton:e.closeButton})}),p("div",{style:{height:"100%",width:"100%",flex:"1 1 100%",overflow:"hidden"},children:t}),(n==null?void 0:n.length)&&p(nl,{items:n}),r&&p("div",{style:{position:"absolute",bottom:"0",left:"0",width:"100%",height:s},children:p(qu,j({},r))})]})},zi=({text:t,fontName:e="",fontColor:r,alignment:i=wi.LEFT,fontSize:n=17,backgroundColor:o,cornerRadius:s=0})=>p("div",{"data-ui":"gui-description",part:"gui-description",style:{fontFamily:[e,"-apple-system","BlinkMacSystemFont","sans-serif"].filter(Boolean).join(", "),fontSize:n,textAlign:ha(i),color:de(r)||"#000000",borderRadius:s,backgroundColor:de(o)||"transparent",whiteSpace:"pre-line"},children:t&&Ta(t)}),ol=({header:t,footer:e,image:r,title:i,description:n,buttons:o,backgroundColor:s})=>{const a=at(null),[c,l]=Ue(!1);return st(()=>{a.current&&l(a.current.scrollHeight>a.current.clientHeight+2)},[]),p(Xt,{header:t,buttons:o,footer:e,backgroundColor:s,children:p("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&&p("div",{style:$u,children:p(Ye,j({},r))}),(i==null?void 0:i.text)&&p("div",{ref:a,style:{width:"100%",overflow:c?"auto":"hidden"},children:p("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:i&&p(_e,j({},i))})}),n&&p("div",{style:{lineHeight:"28px",fontWeight:"400",marginTop:"16px"},children:p(zi,j({},n))})]})})},sl={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:"1.68"},al={position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},cl=({title:t,header:e,footer:r,image:i,description:n,buttons:o,backgroundColor:s})=>p(Xt,{header:e,footer:r,buttons:o,backgroundColor:s,children:p(Ze,{children:p("div",{part:"gui-info-screen-container","data-ui":"gui-info-screen-container",id:"info-screen-container",style:X(j({},al),{justifyContent:i?"flex-start":"center"}),children:[i&&p("div",{style:sl,children:p(Ye,j({},i))}),t&&p("div",{style:{marginBottom:20,lineHeight:"39.2px"},children:p(_e,j({},t))}),n&&p("div",{style:{lineHeight:"28px",fontWeight:"400"},children:p(zi,j({},n))})]})})}),ul=({indicatorColor:t="#7E57C5"})=>p(fa,{type:pe.SPINNER,color:t}),Aa=({progressView:t,footer:e,backgroundColor:r})=>p(Xt,{footer:e,backgroundColor:r,children:p("div",{style:{flex:"1 1 100%",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",flexDirection:"column",gap:"20px",height:"100%",width:"100%"},children:p(ul,{indicatorColor:de(t==null?void 0:t.indicatorColor)||"#000000"})})}),ll=({title:t,description:e,image:r,backgroundColor:i,cornerRadius:n=0,isLastChild:o})=>p("div",{className:"details-item",style:X(j({},{display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderBottom:o?"none":"1px solid #E0E0E0",padding:"16px 0",gap:16}),{backgroundColor:de(i)||"transparent",borderRadius:n}),children:[p("div",{style:{flex:"0 1 auto"},children:[p("div",{style:{marginBottom:5,fontWeight:"bold",lineHeight:"21px"},children:p(_e,j({},t))}),p("div",{style:{lineHeight:"21px",fontWeight:"400"},children:p(zi,j({},e))})]}),p("div",{style:{aspectRatio:"1 / 1",width:120,height:120,flex:"0 0 120px"},children:p(Ye,j({},r))})]}),dl={display:"flex",flexDirection:"column",padding:"0 16px"},Ml=({items:t,backgroundColor:e,cornerRadius:r=16})=>p("div",{className:"details",style:X(j({},dl),{backgroundColor:de(e)||"white",borderRadius:r}),children:t.map((i,n)=>p(ll,j({isLastChild:n===t.length-1},i),n))}),gl=({title:t,header:e,footer:r,details:i,buttons:n,backgroundColor:o})=>{const s=at(null),[a,c]=Ue(!1);return st(()=>{s.current&&c(s.current.scrollHeight>s.current.clientHeight)},[]),p(Xt,{header:e,buttons:n,footer:r,backgroundColor:o,children:p("div",{style:{display:"flex",flexDirection:"column",justifyContent:a?"flex-start":"center",height:"100%",minHeight:"100%",overflow:"auto"},ref:s,children:[p("div",{style:{marginBottom:t?"16px":"0",fontWeight:400,fontSize:"28px"},children:t&&p(_e,j({},t))}),i&&p(Ml,j({},i))]})})};var ni=t=>t.type==="checkbox",Ir=t=>t instanceof Date,Ke=t=>t==null;const Ea=t=>typeof t=="object";var ze=t=>!Ke(t)&&!Array.isArray(t)&&Ea(t)&&!Ir(t),ma=t=>ze(t)&&t.target?ni(t.target)?t.target.checked:t.target.value:t,Nl=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,ja=(t,e)=>t.has(Nl(e)),Il=t=>{const e=t.constructor&&t.constructor.prototype;return ze(e)&&e.hasOwnProperty("isPrototypeOf")},so=typeof window!="undefined"&&typeof window.HTMLElement!="undefined"&&typeof document!="undefined";function ke(t){let e;const r=Array.isArray(t),i=typeof FileList!="undefined"?t instanceof FileList:!1;if(t instanceof Date)e=new Date(t);else if(!(so&&(t instanceof Blob||i))&&(r||ze(t)))if(e=r?[]:Object.create(Object.getPrototypeOf(t)),!r&&!Il(t))e=t;else for(const n in t)t.hasOwnProperty(n)&&(e[n]=ke(t[n]));else return t;return e}var Ci=t=>/^\w*$/.test(t),ve=t=>t===void 0,ao=t=>Array.isArray(t)?t.filter(Boolean):[],co=t=>ao(t.replace(/["|']|\]/g,"").split(/\.|\[/)),R=(t,e,r)=>{if(!e||!ze(t))return r;const i=(Ci(e)?[e]:co(e)).reduce((n,o)=>Ke(n)?n:n[o],t);return ve(i)||i===t?ve(t[e])?r:t[e]:i},rt=t=>typeof t=="boolean",me=(t,e,r)=>{let i=-1;const n=Ci(e)?[e]:co(e),o=n.length,s=o-1;for(;++i<o;){const a=n[i];let c=r;if(i!==s){const l=t[a];c=ze(l)||Array.isArray(l)?l:isNaN(+n[i+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;t[a]=c,t=t[a]}};const bi={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},gt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},zt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},wa=le.createContext(null);wa.displayName="HookFormContext";const uo=()=>le.useContext(wa);var Sa=(t,e,r,i=!0)=>{const n={defaultValues:e._defaultValues};for(const o in t)Object.defineProperty(n,o,{get:()=>{const s=o;return e._proxyFormState[s]!==gt.all&&(e._proxyFormState[s]=!i||gt.all),r&&(r[s]=!0),t[s]}});return n};const lo=typeof window!="undefined"?le.useLayoutEffect:le.useEffect;function fl(t){const e=uo(),{control:r=e.control,disabled:i,name:n,exact:o}=t||{},[s,a]=le.useState(r._formState),c=le.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return lo(()=>r._subscribe({name:n,formState:c.current,exact:o,callback:l=>{!i&&a(j(j({},r._formState),l))}}),[n,i,o]),le.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),le.useMemo(()=>Sa(s,r,c.current,!1),[s,r])}var it=t=>typeof t=="string",Oa=(t,e,r,i,n)=>it(t)?(i&&e.watch.add(t),R(r,t,n)):Array.isArray(t)?t.map(o=>(i&&e.watch.add(o),R(r,o))):(i&&(e.watchAll=!0),r),Mo=t=>Ke(t)||!Ea(t);function Ct(t,e,r=new WeakSet){if(Mo(t)||Mo(e))return t===e;if(Ir(t)&&Ir(e))return t.getTime()===e.getTime();const i=Object.keys(t),n=Object.keys(e);if(i.length!==n.length)return!1;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);for(const o of i){const s=t[o];if(!n.includes(o))return!1;if(o!=="ref"){const a=e[o];if(Ir(s)&&Ir(a)||ze(s)&&ze(a)||Array.isArray(s)&&Array.isArray(a)?!Ct(s,a,r):s!==a)return!1}}return!0}function Dl(t){const e=uo(),{control:r=e.control,name:i,defaultValue:n,disabled:o,exact:s,compute:a}=t||{},c=le.useRef(n),l=le.useRef(a),N=le.useRef(void 0);l.current=a;const d=le.useMemo(()=>r._getWatch(i,c.current),[r,i]),[u,f]=le.useState(l.current?l.current(d):d);return lo(()=>r._subscribe({name:i,formState:{values:!0},exact:s,callback:D=>{if(!o){const M=Oa(i,r._names,D.values||r._formValues,!1,c.current);if(l.current){const I=l.current(M);Ct(I,N.current)||(f(I),N.current=I)}else f(M)}}}),[r,o,i,s]),le.useEffect(()=>r._removeUnmounted()),u}function hl(t){const e=uo(),{name:r,disabled:i,control:n=e.control,shouldUnregister:o,defaultValue:s}=t,a=ja(n._names.array,r),c=le.useMemo(()=>R(n._formValues,r,R(n._defaultValues,r,s)),[n,r,s]),l=Dl({control:n,name:r,defaultValue:c,exact:!0}),N=fl({control:n,name:r,exact:!0}),d=le.useRef(t),u=le.useRef(void 0),f=le.useRef(n.register(r,j(X(j({},t.rules),{value:l}),rt(t.disabled)?{disabled:t.disabled}:{})));d.current=t;const D=le.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!R(N.errors,r)},isDirty:{enumerable:!0,get:()=>!!R(N.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!R(N.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!R(N.validatingFields,r)},error:{enumerable:!0,get:()=>R(N.errors,r)}}),[N,r]),M=le.useCallback(T=>f.current.onChange({target:{value:ma(T),name:r},type:bi.CHANGE}),[r]),I=le.useCallback(()=>f.current.onBlur({target:{value:R(n._formValues,r),name:r},type:bi.BLUR}),[r,n._formValues]),E=le.useCallback(T=>{const S=R(n._fields,r);S&&T&&(S._f.ref={focus:()=>T.focus&&T.focus(),select:()=>T.select&&T.select(),setCustomValidity:x=>T.setCustomValidity(x),reportValidity:()=>T.reportValidity()})},[n._fields,r]),A=le.useMemo(()=>X(j({name:r,value:l},rt(i)||N.disabled?{disabled:N.disabled||i}:{}),{onChange:M,onBlur:I,ref:E}),[r,i,N.disabled,M,I,E,l]);return le.useEffect(()=>{const T=n._options.shouldUnregister||o,S=u.current;S&&S!==r&&!a&&n.unregister(S),n.register(r,j(j({},d.current.rules),rt(d.current.disabled)?{disabled:d.current.disabled}:{}));const x=(z,v)=>{const ae=R(n._fields,z);ae&&ae._f&&(ae._f.mount=v)};if(x(r,!0),T){const z=ke(R(n._options.defaultValues,r,d.current.defaultValue));me(n._defaultValues,r,z),ve(R(n._formValues,r))&&me(n._formValues,r,z)}return!a&&n.register(r),u.current=r,()=>{(a?T&&!n._state.action:T)?n.unregister(r):x(r,!1)}},[r,n,a,o]),le.useEffect(()=>{n._setDisabledField({disabled:i,name:r})},[i,r,n]),le.useMemo(()=>({field:A,formState:N,fieldState:D}),[A,N,D])}const _a=t=>t.render(hl(t));var yl=(t,e,r,i,n)=>e?X(j({},r[t]),{types:X(j({},r[t]&&r[t].types?r[t].types:{}),{[i]:n||!0})}):{},oi=t=>Array.isArray(t)?t:[t],va=()=>{let t=[];return{get observers(){return t},next:n=>{for(const o of t)o.next&&o.next(n)},subscribe:n=>(t.push(n),{unsubscribe:()=>{t=t.filter(o=>o!==n)}}),unsubscribe:()=>{t=[]}}};function xa(t,e){const r={};for(const i in t)if(t.hasOwnProperty(i)){const n=t[i],o=e[i];if(n&&ze(n)&&o){const s=xa(n,o);ze(s)&&(r[i]=s)}else t[i]&&(r[i]=o)}return r}var et=t=>ze(t)&&!Object.keys(t).length,go=t=>t.type==="file",Nt=t=>typeof t=="function",Li=t=>{if(!so)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},za=t=>t.type==="select-multiple",No=t=>t.type==="radio",pl=t=>No(t)||ni(t),Io=t=>Li(t)&&t.isConnected;function Tl(t,e){const r=e.slice(0,-1).length;let i=0;for(;i<r;)t=ve(t)?i++:t[e[i++]];return t}function Al(t){for(const e in t)if(t.hasOwnProperty(e)&&!ve(t[e]))return!1;return!0}function Ce(t,e){const r=Array.isArray(e)?e:Ci(e)?[e]:co(e),i=r.length===1?t:Tl(t,r),n=r.length-1,o=r[n];return i&&delete i[o],n!==0&&(ze(i)&&et(i)||Array.isArray(i)&&Al(i))&&Ce(t,r.slice(0,-1)),t}var El=t=>{for(const e in t)if(Nt(t[e]))return!0;return!1};function Ca(t){return Array.isArray(t)||ze(t)&&!El(t)}function fo(t,e={}){for(const r in t)Ca(t[r])?(e[r]=Array.isArray(t[r])?[]:{},fo(t[r],e[r])):Ke(t[r])||(e[r]=!0);return e}function _r(t,e,r){r||(r=fo(e));for(const i in t)Ca(t[i])?ve(e)||Mo(r[i])?r[i]=fo(t[i],Array.isArray(t[i])?[]:{}):_r(t[i],Ke(e)?{}:e[i],r[i]):r[i]=!Ct(t[i],e[i]);return r}const ba={value:!1,isValid:!1},La={value:!0,isValid:!0};var ka=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&&!ve(t[0].attributes.value)?ve(t[0].value)||t[0].value===""?La:{value:t[0].value,isValid:!0}:La:ba}return ba},Ua=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:i})=>ve(t)?t:e?t===""?NaN:t&&+t:r&&it(t)?new Date(t):i?i(t):t;const Ra={isValid:!1,value:null};var Qa=t=>Array.isArray(t)?t.reduce((e,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:e,Ra):Ra;function Pa(t){const e=t.ref;return go(e)?e.files:No(e)?Qa(t.refs).value:za(e)?[...e.selectedOptions].map(({value:r})=>r):ni(e)?ka(t.refs).value:Ua(ve(e.value)?t.ref.value:e.value,t)}var ml=(t,e,r,i)=>{const n={};for(const o of t){const s=R(e,o);s&&me(n,o,s._f)}return{criteriaMode:r,names:[...t],fields:n,shouldUseNativeValidation:i}},ki=t=>t instanceof RegExp,si=t=>ve(t)?t:ki(t)?t.source:ze(t)?ki(t.value)?t.value.source:t.value:t,Ya=t=>({isOnSubmit:!t||t===gt.onSubmit,isOnBlur:t===gt.onBlur,isOnChange:t===gt.onChange,isOnAll:t===gt.all,isOnTouch:t===gt.onTouched});const Fa="AsyncFunction";var jl=t=>!!t&&!!t.validate&&!!(Nt(t.validate)&&t.validate.constructor.name===Fa||ze(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===Fa)),wl=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),Va=(t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some(i=>t.startsWith(i)&&/^\.\w+/.test(t.slice(i.length))));const ai=(t,e,r,i)=>{for(const o of r||Object.keys(t)){const s=R(t,o);if(s){const n=s,{_f:a}=n,c=hr(n,["_f"]);if(a){if(a.refs&&a.refs[0]&&e(a.refs[0],o)&&!i)return!0;if(a.ref&&e(a.ref,a.name)&&!i)return!0;if(ai(c,e))break}else if(ze(c)&&ai(c,e))break}}};function Ba(t,e,r){const i=R(t,r);if(i||Ci(r))return{error:i,name:r};const n=r.split(".");for(;n.length;){const o=n.join("."),s=R(e,o),a=R(t,o);if(s&&!Array.isArray(s)&&r!==o)return{name:r};if(a&&a.type)return{name:o,error:a};if(a&&a.root&&a.root.type)return{name:`${o}.root`,error:a.root};n.pop()}return{name:r}}var Sl=(t,e,r,i)=>{r(t);const s=t,{name:n}=s,o=hr(s,["name"]);return et(o)||Object.keys(o).length>=Object.keys(e).length||Object.keys(o).find(a=>e[a]===(!i||gt.all))},Ol=(t,e,r)=>!t||!e||t===e||oi(t).some(i=>i&&(r?i===e:i.startsWith(e)||e.startsWith(i))),_l=(t,e,r,i,n)=>n.isOnAll?!1:!r&&n.isOnTouch?!(e||t):(r?i.isOnBlur:n.isOnBlur)?!t:(r?i.isOnChange:n.isOnChange)?t:!0,vl=(t,e)=>!ao(R(t,e)).length&&Ce(t,e),xl=(t,e,r)=>{const i=oi(R(t,r));return me(i,"root",e[r]),me(t,r,i),t};function Wa(t,e,r="validate"){if(it(t)||Array.isArray(t)&&t.every(it)||rt(t)&&!t)return{type:r,message:it(t)?t:"",ref:e}}var vr=t=>ze(t)&&!ki(t)?t:{value:t,message:""},$a=(t,e,r,i,n,o)=>k(null,null,function*(){const{ref:s,refs:a,required:c,maxLength:l,minLength:N,min:d,max:u,pattern:f,validate:D,name:M,valueAsNumber:I,mount:E}=t._f,A=R(r,M);if(!E||e.has(M))return{};const T=a?a[0]:s,S=F=>{n&&T.reportValidity&&(T.setCustomValidity(rt(F)?"":F||""),T.reportValidity())},x={},z=No(s),v=ni(s),ae=z||v,fe=(I||go(s))&&ve(s.value)&&ve(A)||Li(s)&&s.value===""||A===""||Array.isArray(A)&&!A.length,ce=yl.bind(null,M,i,x),G=(F,$,Me,ue=zt.maxLength,ye=zt.minLength)=>{const Te=F?$:Me;x[M]=j({type:F?ue:ye,message:Te,ref:s},ce(F?ue:ye,Te))};if(o?!Array.isArray(A)||!A.length:c&&(!ae&&(fe||Ke(A))||rt(A)&&!A||v&&!ka(a).isValid||z&&!Qa(a).isValid)){const{value:F,message:$}=it(c)?{value:!!c,message:c}:vr(c);if(F&&(x[M]=j({type:zt.required,message:$,ref:T},ce(zt.required,$)),!i))return S($),x}if(!fe&&(!Ke(d)||!Ke(u))){let F,$;const Me=vr(u),ue=vr(d);if(!Ke(A)&&!isNaN(A)){const ye=s.valueAsNumber||A&&+A;Ke(Me.value)||(F=ye>Me.value),Ke(ue.value)||($=ye<ue.value)}else{const ye=s.valueAsDate||new Date(A),Te=U=>new Date(new Date().toDateString()+" "+U),ee=s.type=="time",W=s.type=="week";it(Me.value)&&A&&(F=ee?Te(A)>Te(Me.value):W?A>Me.value:ye>new Date(Me.value)),it(ue.value)&&A&&($=ee?Te(A)<Te(ue.value):W?A<ue.value:ye<new Date(ue.value))}if((F||$)&&(G(!!F,Me.message,ue.message,zt.max,zt.min),!i))return S(x[M].message),x}if((l||N)&&!fe&&(it(A)||o&&Array.isArray(A))){const F=vr(l),$=vr(N),Me=!Ke(F.value)&&A.length>+F.value,ue=!Ke($.value)&&A.length<+$.value;if((Me||ue)&&(G(Me,F.message,$.message),!i))return S(x[M].message),x}if(f&&!fe&&it(A)){const{value:F,message:$}=vr(f);if(ki(F)&&!A.match(F)&&(x[M]=j({type:zt.pattern,message:$,ref:s},ce(zt.pattern,$)),!i))return S($),x}if(D){if(Nt(D)){const F=yield D(A,r),$=Wa(F,T);if($&&(x[M]=j(j({},$),ce(zt.validate,$.message)),!i))return S($.message),x}else if(ze(D)){let F={};for(const $ in D){if(!et(F)&&!i)break;const Me=Wa(yield D[$](A,r),T,$);Me&&(F=j(j({},Me),ce($,Me.message)),S(Me.message),i&&(x[M]=F))}if(!et(F)&&(x[M]=j({ref:T},F),!i))return x}}return S(!0),x});const zl={mode:gt.onSubmit,reValidateMode:gt.onChange,shouldFocusError:!0};function Cl(t={}){let e=j(j({},zl),t),r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Nt(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1},i={},n=ze(e.defaultValues)||ze(e.values)?ke(e.defaultValues||e.values)||{}:{},o=e.shouldUnregister?{}:ke(n),s={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const N={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let d=j({},N);const u={array:va(),state:va()},f=e.criteriaMode===gt.all,D=y=>w=>{clearTimeout(l),l=setTimeout(y,w)},M=y=>k(null,null,function*(){if(!e.disabled&&(N.isValid||d.isValid||y)){const w=e.resolver?et((yield v()).errors):yield fe(i,!0);w!==r.isValid&&u.state.next({isValid:w})}}),I=(y,w)=>{!e.disabled&&(N.isValidating||N.validatingFields||d.isValidating||d.validatingFields)&&((y||Array.from(a.mount)).forEach(_=>{_&&(w?me(r.validatingFields,_,w):Ce(r.validatingFields,_))}),u.state.next({validatingFields:r.validatingFields,isValidating:!et(r.validatingFields)}))},E=(y,w=[],_,Q,b=!0,L=!0)=>{if(Q&&_&&!e.disabled){if(s.action=!0,L&&Array.isArray(R(i,y))){const V=_(R(i,y),Q.argA,Q.argB);b&&me(i,y,V)}if(L&&Array.isArray(R(r.errors,y))){const V=_(R(r.errors,y),Q.argA,Q.argB);b&&me(r.errors,y,V),vl(r.errors,y)}if((N.touchedFields||d.touchedFields)&&L&&Array.isArray(R(r.touchedFields,y))){const V=_(R(r.touchedFields,y),Q.argA,Q.argB);b&&me(r.touchedFields,y,V)}(N.dirtyFields||d.dirtyFields)&&(r.dirtyFields=_r(n,o)),u.state.next({name:y,isDirty:G(y,w),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else me(o,y,w)},A=(y,w)=>{me(r.errors,y,w),u.state.next({errors:r.errors})},T=y=>{r.errors=y,u.state.next({errors:r.errors,isValid:!1})},S=(y,w,_,Q)=>{const b=R(i,y);if(b){const L=R(o,y,ve(_)?R(n,y):_);ve(L)||Q&&Q.defaultChecked||w?me(o,y,w?L:Pa(b._f)):Me(y,L),s.mount&&M()}},x=(y,w,_,Q,b)=>{let L=!1,V=!1;const ie={name:y};if(!e.disabled){if(!_||Q){(N.isDirty||d.isDirty)&&(V=r.isDirty,r.isDirty=ie.isDirty=G(),L=V!==ie.isDirty);const H=Ct(R(n,y),w);V=!!R(r.dirtyFields,y),H?Ce(r.dirtyFields,y):me(r.dirtyFields,y,!0),ie.dirtyFields=r.dirtyFields,L=L||(N.dirtyFields||d.dirtyFields)&&V!==!H}if(_){const H=R(r.touchedFields,y);H||(me(r.touchedFields,y,_),ie.touchedFields=r.touchedFields,L=L||(N.touchedFields||d.touchedFields)&&H!==_)}L&&b&&u.state.next(ie)}return L?ie:{}},z=(y,w,_,Q)=>{const b=R(r.errors,y),L=(N.isValid||d.isValid)&&rt(w)&&r.isValid!==w;if(e.delayError&&_?(c=D(()=>A(y,_)),c(e.delayError)):(clearTimeout(l),c=null,_?me(r.errors,y,_):Ce(r.errors,y)),(_?!Ct(b,_):b)||!et(Q)||L){const V=X(j(j({},Q),L&&rt(w)?{isValid:w}:{}),{errors:r.errors,name:y});r=j(j({},r),V),u.state.next(V)}},v=y=>k(null,null,function*(){I(y,!0);const w=yield e.resolver(o,e.context,ml(y||a.mount,i,e.criteriaMode,e.shouldUseNativeValidation));return I(y),w}),ae=y=>k(null,null,function*(){const{errors:w}=yield v(y);if(y)for(const _ of y){const Q=R(w,_);Q?me(r.errors,_,Q):Ce(r.errors,_)}else r.errors=w;return w}),fe=(Q,b,...L)=>k(null,[Q,b,...L],function*(y,w,_={valid:!0}){for(const ie in y){const H=y[ie];if(H){const V=H,{_f:he}=V,Ve=hr(V,["_f"]);if(he){const J=a.array.has(he.name),se=H._f&&jl(H._f);se&&N.validatingFields&&I([he.name],!0);const B=yield $a(H,a.disabled,o,f,e.shouldUseNativeValidation&&!w,J);if(se&&N.validatingFields&&I([he.name]),B[he.name]&&(_.valid=!1,w))break;!w&&(R(B,he.name)?J?xl(r.errors,B,he.name):me(r.errors,he.name,B[he.name]):Ce(r.errors,he.name))}!et(Ve)&&(yield fe(Ve,w,_))}}return _.valid}),ce=()=>{for(const y of a.unMount){const w=R(i,y);w&&(w._f.refs?w._f.refs.every(_=>!Io(_)):!Io(w._f.ref))&&We(y)}a.unMount=new Set},G=(y,w)=>!e.disabled&&(y&&w&&me(o,y,w),!Ct(U(),n)),F=(y,w,_)=>Oa(y,a,j({},s.mount?o:ve(w)?n:it(y)?{[y]:w}:w),_,w),$=y=>ao(R(s.mount?o:n,y,e.shouldUnregister?R(n,y,[]):[])),Me=(y,w,_={})=>{const Q=R(i,y);let b=w;if(Q){const L=Q._f;L&&(!L.disabled&&me(o,y,Ua(w,L)),b=Li(L.ref)&&Ke(w)?"":w,za(L.ref)?[...L.ref.options].forEach(V=>V.selected=b.includes(V.value)):L.refs?ni(L.ref)?L.refs.forEach(V=>{(!V.defaultChecked||!V.disabled)&&(Array.isArray(b)?V.checked=!!b.find(ie=>ie===V.value):V.checked=b===V.value||!!b)}):L.refs.forEach(V=>V.checked=V.value===b):go(L.ref)?L.ref.value="":(L.ref.value=b,L.ref.type||u.state.next({name:y,values:ke(o)})))}(_.shouldDirty||_.shouldTouch)&&x(y,b,_.shouldTouch,_.shouldDirty,!0),_.shouldValidate&&W(y)},ue=(y,w,_)=>{for(const Q in w){if(!w.hasOwnProperty(Q))return;const b=w[Q],L=y+"."+Q,V=R(i,L);(a.array.has(y)||ze(b)||V&&!V._f)&&!Ir(b)?ue(L,b,_):Me(L,b,_)}},ye=(y,w,_={})=>{const Q=R(i,y),b=a.array.has(y),L=ke(w);me(o,y,L),b?(u.array.next({name:y,values:ke(o)}),(N.isDirty||N.dirtyFields||d.isDirty||d.dirtyFields)&&_.shouldDirty&&u.state.next({name:y,dirtyFields:_r(n,o),isDirty:G(y,L)})):Q&&!Q._f&&!Ke(L)?ue(y,L,_):Me(y,L,_),Va(y,a)&&u.state.next(X(j({},r),{name:y})),u.state.next({name:s.mount?y:void 0,values:ke(o)})},Te=y=>k(null,null,function*(){s.mount=!0;const w=y.target;let _=w.name,Q=!0;const b=R(i,_),L=H=>{Q=Number.isNaN(H)||Ir(H)&&isNaN(H.getTime())||Ct(H,R(o,_,H))},V=Ya(e.mode),ie=Ya(e.reValidateMode);if(b){let H,he;const Ve=w.type?Pa(b._f):ma(y),J=y.type===bi.BLUR||y.type===bi.FOCUS_OUT,se=!wl(b._f)&&!e.resolver&&!R(r.errors,_)&&!b._f.deps||_l(J,R(r.touchedFields,_),r.isSubmitted,ie,V),B=Va(_,a,J);me(o,_,Ve),J?(!w||!w.readOnly)&&(b._f.onBlur&&b._f.onBlur(y),c&&c(0)):b._f.onChange&&b._f.onChange(y);const De=x(_,Ve,J),$e=!et(De)||B;if(!J&&u.state.next({name:_,type:y.type,values:ke(o)}),se)return(N.isValid||d.isValid)&&(e.mode==="onBlur"?J&&M():J||M()),$e&&u.state.next(j({name:_},B?{}:De));if(!J&&B&&u.state.next(j({},r)),e.resolver){const{errors:be}=yield v([_]);if(L(Ve),Q){const Ne=Ba(r.errors,i,_),Z=Ba(be,i,Ne.name||_);H=Z.error,_=Z.name,he=et(be)}}else I([_],!0),H=(yield $a(b,a.disabled,o,f,e.shouldUseNativeValidation))[_],I([_]),L(Ve),Q&&(H?he=!1:(N.isValid||d.isValid)&&(he=yield fe(i,!0)));Q&&(b._f.deps&&(!Array.isArray(b._f.deps)||b._f.deps.length>0)&&W(b._f.deps),z(_,he,H,De))}}),ee=(y,w)=>{if(R(r.errors,w)&&y.focus)return y.focus(),1},W=(_,...Q)=>k(null,[_,...Q],function*(y,w={}){let b,L;const V=oi(y);if(e.resolver){const ie=yield ae(ve(y)?y:V);b=et(ie),L=y?!V.some(H=>R(ie,H)):b}else y?(L=(yield Promise.all(V.map(ie=>k(null,null,function*(){const H=R(i,ie);return yield fe(H&&H._f?{[ie]:H}:H)})))).every(Boolean),!(!L&&!r.isValid)&&M()):L=b=yield fe(i);return u.state.next(X(j(j({},!it(y)||(N.isValid||d.isValid)&&b!==r.isValid?{}:{name:y}),e.resolver||!y?{isValid:b}:{}),{errors:r.errors})),w.shouldFocus&&!L&&ai(i,ee,y?V:a.mount),L}),U=(y,w)=>{let _=j({},s.mount?o:n);return w&&(_=xa(w.dirtyFields?r.dirtyFields:r.touchedFields,_)),ve(y)?_:it(y)?R(_,y):y.map(Q=>R(_,Q))},K=(y,w)=>({invalid:!!R((w||r).errors,y),isDirty:!!R((w||r).dirtyFields,y),error:R((w||r).errors,y),isValidating:!!R(r.validatingFields,y),isTouched:!!R((w||r).touchedFields,y)}),te=y=>{y&&oi(y).forEach(w=>Ce(r.errors,w)),u.state.next({errors:y?r.errors:{}})},je=(y,w,_)=>{const Q=(R(i,y,{_f:{}})._f||{}).ref,he=R(r.errors,y)||{},{ref:L,message:V,type:ie}=he,H=hr(he,["ref","message","type"]);me(r.errors,y,X(j(j({},H),w),{ref:Q})),u.state.next({name:y,errors:r.errors,isValid:!1}),_&&_.shouldFocus&&Q&&Q.focus&&Q.focus()},re=(y,w)=>Nt(y)?u.state.subscribe({next:_=>"values"in _&&y(F(void 0,w),_)}):F(y,w,!0),P=y=>u.state.subscribe({next:w=>{Ol(y.name,w.name,y.exact)&&Sl(w,y.formState||N,er,y.reRenderRoot)&&y.callback(X(j(j({values:j({},o)},r),w),{defaultValues:n}))}}).unsubscribe,q=y=>(s.mount=!0,d=j(j({},d),y.formState),P(X(j({},y),{formState:d}))),We=(y,w={})=>{for(const _ of y?oi(y):a.mount)a.mount.delete(_),a.array.delete(_),w.keepValue||(Ce(i,_),Ce(o,_)),!w.keepError&&Ce(r.errors,_),!w.keepDirty&&Ce(r.dirtyFields,_),!w.keepTouched&&Ce(r.touchedFields,_),!w.keepIsValidating&&Ce(r.validatingFields,_),!e.shouldUnregister&&!w.keepDefaultValue&&Ce(n,_);u.state.next({values:ke(o)}),u.state.next(j(j({},r),w.keepDirty?{isDirty:G()}:{})),!w.keepIsValid&&M()},Je=({disabled:y,name:w})=>{(rt(y)&&s.mount||y||a.disabled.has(w))&&(y?a.disabled.add(w):a.disabled.delete(w))},ft=(y,w={})=>{let _=R(i,y);const Q=rt(w.disabled)||rt(e.disabled);return me(i,y,X(j({},_||{}),{_f:j(X(j({},_&&_._f?_._f:{ref:{name:y}}),{name:y,mount:!0}),w)})),a.mount.add(y),_?Je({disabled:rt(w.disabled)?w.disabled:e.disabled,name:y}):S(y,!0,w.value),X(j(j({},Q?{disabled:w.disabled||e.disabled}:{}),e.progressive?{required:!!w.required,min:si(w.min),max:si(w.max),minLength:si(w.minLength),maxLength:si(w.maxLength),pattern:si(w.pattern)}:{}),{name:y,onChange:Te,onBlur:Te,ref:b=>{if(b){ft(y,w),_=R(i,y);const L=ve(b.value)&&b.querySelectorAll&&b.querySelectorAll("input,select,textarea")[0]||b,V=pl(L),ie=_._f.refs||[];if(V?ie.find(H=>H===L):L===_._f.ref)return;me(i,y,{_f:j(j({},_._f),V?{refs:[...ie.filter(Io),L,...Array.isArray(R(n,y))?[{}]:[]],ref:{type:L.type,name:y}}:{ref:L})}),S(y,!1,void 0,L)}else _=R(i,y,{}),_._f&&(_._f.mount=!1),(e.shouldUnregister||w.shouldUnregister)&&!(ja(a.array,y)&&s.action)&&a.unMount.add(y)}})},nt=()=>e.shouldFocusError&&ai(i,ee,a.mount),Wt=y=>{rt(y)&&(u.state.next({disabled:y}),ai(i,(w,_)=>{const Q=R(i,_);Q&&(w.disabled=Q._f.disabled||y,Array.isArray(Q._f.refs)&&Q._f.refs.forEach(b=>{b.disabled=Q._f.disabled||y}))},0,!1))},Dt=(y,w)=>_=>k(null,null,function*(){let Q;_&&(_.preventDefault&&_.preventDefault(),_.persist&&_.persist());let b=ke(o);if(u.state.next({isSubmitting:!0}),e.resolver){const{errors:L,values:V}=yield v();r.errors=L,b=ke(V)}else yield fe(i);if(a.disabled.size)for(const L of a.disabled)Ce(b,L);if(Ce(r.errors,"root"),et(r.errors)){u.state.next({errors:{}});try{yield y(b,_)}catch(L){Q=L}}else w&&(yield w(j({},r.errors),_)),nt(),setTimeout(nt);if(u.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:et(r.errors)&&!Q,submitCount:r.submitCount+1,errors:r.errors}),Q)throw Q}),qt=(y,w={})=>{R(i,y)&&(ve(w.defaultValue)?ye(y,ke(R(n,y))):(ye(y,w.defaultValue),me(n,y,ke(w.defaultValue))),w.keepTouched||Ce(r.touchedFields,y),w.keepDirty||(Ce(r.dirtyFields,y),r.isDirty=w.defaultValue?G(y,ke(R(n,y))):G()),w.keepError||(Ce(r.errors,y),N.isValid&&M()),u.state.next(j({},r)))},$t=(y,w={})=>{const _=y?ke(y):n,Q=ke(_),b=et(y),L=b?n:Q;if(w.keepDefaultValues||(n=_),!w.keepValues){if(w.keepDirtyValues){const V=new Set([...a.mount,...Object.keys(_r(n,o))]);for(const ie of Array.from(V))R(r.dirtyFields,ie)?me(L,ie,R(o,ie)):ye(ie,R(L,ie))}else{if(so&&ve(y))for(const V of a.mount){const ie=R(i,V);if(ie&&ie._f){const H=Array.isArray(ie._f.refs)?ie._f.refs[0]:ie._f.ref;if(Li(H)){const he=H.closest("form");if(he){he.reset();break}}}}if(w.keepFieldsRef)for(const V of a.mount)ye(V,R(L,V));else i={}}o=e.shouldUnregister?w.keepDefaultValues?ke(n):{}:ke(L),u.array.next({values:j({},L)}),u.state.next({values:j({},L)})}a={mount:w.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!N.isValid||!!w.keepIsValid||!!w.keepDirtyValues,s.watch=!!e.shouldUnregister,u.state.next({submitCount:w.keepSubmitCount?r.submitCount:0,isDirty:b?!1:w.keepDirty?r.isDirty:!!(w.keepDefaultValues&&!Ct(y,n)),isSubmitted:w.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:b?{}:w.keepDirtyValues?w.keepDefaultValues&&o?_r(n,o):r.dirtyFields:w.keepDefaultValues&&y?_r(n,y):w.keepDirty?r.dirtyFields:{},touchedFields:w.keepTouched?r.touchedFields:{},errors:w.keepErrors?r.errors:{},isSubmitSuccessful:w.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:n})},mt=(y,w)=>$t(Nt(y)?y(o):y,w),Ht=(y,w={})=>{const _=R(i,y),Q=_&&_._f;if(Q){const b=Q.refs?Q.refs[0]:Q.ref;b.focus&&(b.focus(),w.shouldSelect&&Nt(b.select)&&b.select())}},er=y=>{r=j(j({},r),y)},ct={control:{register:ft,unregister:We,getFieldState:K,handleSubmit:Dt,setError:je,_subscribe:P,_runSchema:v,_focusError:nt,_getWatch:F,_getDirty:G,_setValid:M,_setFieldArray:E,_setDisabledField:Je,_setErrors:T,_getFieldArray:$,_reset:$t,_resetDefaultValues:()=>Nt(e.defaultValues)&&e.defaultValues().then(y=>{mt(y,e.resetOptions),u.state.next({isLoading:!1})}),_removeUnmounted:ce,_disableForm:Wt,_subjects:u,_proxyFormState:N,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(y){s=y},get _defaultValues(){return n},get _names(){return a},set _names(y){a=y},get _formState(){return r},get _options(){return e},set _options(y){e=j(j({},e),y)}},subscribe:q,trigger:W,register:ft,handleSubmit:Dt,watch:re,setValue:ye,getValues:U,reset:mt,resetField:qt,clearErrors:te,unregister:We,setError:je,setFocus:Ht,getFieldState:K};return X(j({},ct),{formControl:ct})}function bl(t={}){const e=le.useRef(void 0),r=le.useRef(void 0),[i,n]=le.useState({isDirty:!1,isValidating:!1,isLoading:Nt(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:Nt(t.defaultValues)?void 0:t.defaultValues});if(!e.current)if(t.formControl)e.current=X(j({},t.formControl),{formState:i}),t.defaultValues&&!Nt(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const s=Cl(t),{formControl:a}=s,c=hr(s,["formControl"]);e.current=X(j({},c),{formState:i})}const o=e.current.control;return o._options=t,lo(()=>{const a=o._subscribe({formState:o._proxyFormState,callback:()=>n(j({},o._formState)),reRenderRoot:!0});return n(c=>X(j({},c),{isReady:!0})),o._formState.isReady=!0,a},[o]),le.useEffect(()=>o._disableForm(t.disabled),[o,t.disabled]),le.useEffect(()=>{t.mode&&(o._options.mode=t.mode),t.reValidateMode&&(o._options.reValidateMode=t.reValidateMode)},[o,t.mode,t.reValidateMode]),le.useEffect(()=>{t.errors&&(o._setErrors(t.errors),o._focusError())},[o,t.errors]),le.useEffect(()=>{t.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,t.shouldUnregister]),le.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==i.isDirty&&o._subjects.state.next({isDirty:a})}},[o,i.isDirty]),le.useEffect(()=>{t.values&&!Ct(t.values,r.current)?(o._reset(t.values,j({keepFieldsRef:!0},o._options.resetOptions)),r.current=t.values,n(a=>j({},a))):o._resetDefaultValues()},[o,t.values]),le.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next(j({},o._formState))),o._removeUnmounted()}),e.current.formState=Sa(i,o),e.current}const xr=(t,e)=>{const r={};return t.forEach((i,n)=>{if(i.type===Da.NOT_EMPTY&&(r.required=o=>e&&Gu(o)?i.message:!0),i.type===Da.REGEX){const o=new RegExp(i.regex);r[`regex_${n}`]=s=>!e&&!s?!0:typeof s!="string"?i.message:o.test(s)||i.message}}),r},Ll=({isOpen:t,image:e})=>p("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?p(Ye,j({},e)):p(Ye,{imageId:"chevronDown"})}),kl=({isChosen:t,option:e,onOptionClickCallback:r,isHovered:i,onHover:n,onHoverEnd:o})=>{const s=t?e.layoutSelected.image:e.layout.image;return p("div",{style:{padding:"5px 8px",background:((c,l)=>{var N,d,u,f,D,M,I,E;if(!c&&!l)return(d=de((N=e.layout)==null?void 0:N.backgroundColor))!=null?d:"transparent";if(!c&&l)return(f=de((u=e.layoutSelected)==null?void 0:u.backgroundColor))!=null?f:"transparent";if(c&&!l)return(M=de((D=e.layout)==null?void 0:D.highlightColor))!=null?M:"#F4F4F4";if(c&&l)return(E=de((I=e.layoutSelected)==null?void 0:I.highlightColor))!=null?E:"#F4F4F4"})(i,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:n,onMouseLeave:o,children:[p(_e,X(j({},e.layout.title),{text:e.label})),p("div",{style:{display:"flex",flexShrink:0},children:p(Ye,j({},s))})]},e.value)},Ha=({name:t,options:e,isMulti:r=!1,isClearable:i=!1,value:n,onChange:o,placeholder:s,closeMenuOnSelect:a=!0,onBlur:c,parentElementRef:l,controlLayout:N,pickerLayout:d})=>{var F,$,Me,ue,ye,Te,ee,W;const[u,f]=Ue(!1),[D,M]=Ue(n),[I,E]=Ue("down"),[A,T]=Ue(null),S=at(null),x=at(null);Jt(()=>{var re,P,q;if(!u)return;const U=(re=S.current)==null?void 0:re.getBoundingClientRect(),K=(P=x.current)==null?void 0:P.getBoundingClientRect(),te=(q=l.current)==null?void 0:q.getBoundingClientRect();if(!U||!K||!te)return;const je=U.bottom+K.height<te.bottom;E(je?"down":"up")},[u]),st(()=>{o(D)},[D]);const z=U=>K=>{var te;K.stopPropagation(),(K.type==="touchend"||((te=K.nativeEvent)==null?void 0:te.pointerType)==="touch")&&T(null),a&&f(!1),M(je=>r?je.some(P=>P.value===U.value)?je.filter(P=>P.value!==U.value):[...je,U]:[U])},v=()=>{c&&c(),f(!1)},ae=U=>K=>{K.stopPropagation(),M(te=>te.filter(je=>je.value!==U.value))},fe=U=>{U.stopPropagation(),M([])},ce=(F=de(N==null?void 0:N.borderColor))!=null?F:"#D9D9D9",G=($=de(N==null?void 0:N.highlightBorderColor))!=null?$:"#7E57C5";return p("div",{"data-ui":"gui-custom-select",ref:S,children:p("div",{"data-ui":"gui-select-name-"+t,style:{backgroundColor:de(N==null?void 0:N.backgroundColor),borderStyle:"solid",borderColor:u?G:ce,borderWidth:(Me=N==null?void 0:N.borderWidth)!=null?Me:1,borderRadius:(ue=N==null?void 0:N.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:v,onClick:()=>f(!u),children:[p("div",{"data-ui":"gui-custom-select-multi-choose-container",style:{display:"flex",gap:8,alignItems:"flex-start",alignContent:"center",flexWrap:"wrap",width:"100%"},children:[!D.length&&p("span",{style:{fontSize:13,color:"#8C8C8C"},children:s}),D.map(U=>{var K,te,je,re,P;if(r){const q=N==null?void 0:N.chip;return p("div",{style:{padding:"0px 5px",display:"flex",gap:8,backgroundColor:(K=de(q==null?void 0:q.backgroundColor))!=null?K:"#F2F2F2",borderRadius:(te=q==null?void 0:q.cornerRadius)!=null?te:4,userSelect:"none",alignItems:"center"},children:[p(_e,X(j({},q==null?void 0:q.title),{fontSize:(re=(je=q==null?void 0:q.title)==null?void 0:je.fontSize)!=null?re:13,text:U.label})),p("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px"},onClick:ae(U),children:q!=null&&q.removeImage?p(Ye,j({},q.removeImage)):p(Ye,{imageId:"cross"})})]},U.value)}else{const q=N==null?void 0:N.title;return p("div",{style:{display:"flex",userSelect:"none"},children:p(_e,X(j({},q),{fontSize:(P=q==null?void 0:q.fontSize)!=null?P:13,text:U.label}))},U.value)}})]}),i&&D.length?p("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px",zIndex:1},onClick:fe,children:N!=null&&N.clearButton?p(Ye,j({},N.clearButton)):p(Ye,{imageId:"cross"})}):null,i?p("div",{style:{width:"1px",alignSelf:"stretch",backgroundColor:"#D9D9D9"}}):null,p(Ll,{isOpen:u,image:N==null?void 0:N.expandButton}),u&&p("div",{"data-ui":"gui-custom-select-dropdown-menu",ref:x,style:X(j({position:"absolute"},I==="down"?{top:"calc(100% + 1px)"}:{bottom:"calc(100% + 1px)"}),{left:0,border:"1px solid #e8e8e8",width:"100%",backgroundColor:(ye=de(d==null?void 0:d.backgroundColor))!=null?ye:"#ffffff",borderRadius:(Te=d==null?void 0:d.cornerRadius)!=null?Te:8,borderStyle:"solid",borderColor:(ee=de(d==null?void 0:d.borderColor))!=null?ee:"#D9D9D9",borderWidth:(W=d==null?void 0:d.borderWidth)!=null?W: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 K=D.some(te=>te.value===U.value);return p(kl,{isChosen:K,option:U,onOptionClickCallback:z,isHovered:A===U.value,onHover:()=>T(U.value),onHoverEnd:()=>T(null)},U.label)})})]})})},Ul=({control:t,layout:e,dataSourceQuestion:r,parentElementRef:i})=>{const n=r.options.map(s=>({value:String(s.id),label:s.text,layout:e.option,layoutSelected:e.optionSelected})),o=String(r.id);return p("div",{style:{display:"flex",flexDirection:"column",gap:"16px",boxSizing:"border-box"},children:[e.title&&p(_e,X(j({},e.title),{text:r.text,htmlFor:o})),p(_a,{name:o,control:t,rules:{required:!!r.required,validate:xr(r.validators,!!r.required)},render:({field:s})=>{const a=n.find(c=>c.value===s.value);return p(Ha,{options:n,placeholder:r.placeholder,closeMenuOnSelect:!0,name:s.name,value:a?[a]:[],onChange:c=>{const l=c&&Array.isArray(c)&&c.length?c[0].value:null;s.onChange(l)},parentElementRef:i,isMulti:!1,isClearable:!1,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},Rl=({control:t,layout:e,dataSourceQuestion:r,parentElementRef:i})=>{const n=r.options.map(s=>({value:String(s.id),label:s.text,layout:e.option,layoutSelected:e.optionSelected})),o=String(r.id);return p("div",{style:{display:"flex",flexDirection:"column",gap:"16px",boxSizing:"border-box"},children:[e.title&&p(_e,X(j({},e.title),{text:r.text,htmlFor:o})),p(_a,{name:o,control:t,rules:{required:!!r.required,validate:xr(r.validators,!!r.required)},render:({field:s})=>{const a=n.filter(c=>{var l;return(l=s.value)==null?void 0:l.includes(c.value)});return p(Ha,{name:o,options:n,placeholder:r.placeholder,closeMenuOnSelect:!1,value:a,onChange:c=>{const l=c.map(N=>N.value);s.onChange(l)},parentElementRef:i,isMulti:!0,isClearable:!0,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},Za=()=>{const[t,e]=Ue(!1);return st(()=>{const r=()=>e(!0),i=()=>e(!1);return window.addEventListener("keydown",r),window.addEventListener("mousedown",i),()=>{window.removeEventListener("keydown",r),window.removeEventListener("mousedown",i)}},[]),t},Ql=({option:t,layout:e,dataSourceQuestion:r,register:i,watch:n})=>{const[o,s]=Ue(!1),a=Za(),c=String(r.id),N=n(c)===String(t.id),d=e.option,u=e.optionSelected,f={backgroundColor:de(u==null?void 0:u.backgroundColor),borderRadius:u.cornerRadius},D={backgroundColor:de(d==null?void 0:d.backgroundColor),borderRadius:d.cornerRadius},M=o&&a?{filter:`drop-shadow(0 0 1px ${ii})`}:{};return p("div",{children:p("label",{style:j({display:"flex",alignItems:"center",alignContent:"center",gap:8,cursor:"pointer"},N?f:D),children:[p("div",{style:j({display:"flex",alignItems:"center",alignContent:"center"},M),children:p(Ye,j({},N?u.image:d.image))}),p(_e,X(j({},N?u.title:d.title),{text:t.text})),p("input",X(j({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},i(c,{required:!!r.required,validate:xr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>s(!0),onBlur:()=>s(!1)}))]})},t.id)},Pl=({layout:t,register:e,watch:r,dataSourceQuestion:i})=>p("div",{style:{boxSizing:"border-box"},children:p("fieldset",{style:{margin:0,padding:0,border:"none",display:"flex",flexDirection:"column",gap:"16px"},children:[t.title&&p("legend",{style:{margin:0,padding:0,marginBottom:"16px"},children:p(_e,X(j({},t.title),{text:i.text}))}),i.options.map(n=>p(Ql,{register:e,watch:r,layout:t,option:n,dataSourceQuestion:i},n.id))]})}),Yl=({option:t,layout:e,dataSourceQuestion:r,register:i,watch:n})=>{const[o,s]=Ue(!1),a=Za(),c=String(r.id),N=n(c)===String(t.id),d=e.option,u=e.optionSelected,f={borderRadius:d==null?void 0:d.cornerRadius,background:de(d==null?void 0:d.backgroundColor),borderColor:de(d==null?void 0:d.borderColor),borderWidth:d==null?void 0:d.borderWidth},D={borderRadius:u==null?void 0:u.cornerRadius,background:de(u==null?void 0:u.backgroundColor),borderColor:de(u==null?void 0:u.borderColor),borderWidth:u==null?void 0:u.borderWidth},M=o&&a?{outline:`2px solid ${ii}`}:{};return p("div",{style:{display:"flex",flexGrow:1},children:p("label",{style:j(j({width:"100%",padding:"8px 16px",cursor:"pointer",borderStyle:"solid",position:"relative"},N?D:f),M),children:[p("input",X(j({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},i(c,{required:!!r.required,validate:xr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>s(!0),onBlur:()=>s(!1)})),p(_e,X(j({},N?u.title:d.title),{text:t.text}))]})},t.id)},Fl=({layout:t,watch:e,register:r,dataSourceQuestion:i})=>p("div",{style:{boxSizing:"border-box"},children:p("fieldset",{style:{margin:0,padding:0,border:"none"},children:[t.title&&p("legend",{style:{margin:0,padding:0,marginBottom:"16px"},children:p(_e,X(j({},t.title),{text:i.text}))}),p("div",{style:{display:"flex",justifyContent:"center",gap:5},children:i.options.map(n=>p(Yl,{register:r,watch:e,layout:t,option:n,dataSourceQuestion:i},n.id))})]})}),Vl=({children:t,backgroundColor:e,cornerRadius:r=0,isError:i,isRequired:n,validationBorderColor:o,validationBorderWidth:s})=>{const a=j({position:"relative",flexShrink:0,width:"100%",fontWeight:300,lineHeight:"140%",backgroundColor:de(e)||"transparent",borderRadius:r,padding:"16px",boxSizing:"border-box",height:"auto"},i&&j(j({},de(o)&&{borderColor:o,borderStyle:"solid"}),s&&{borderWidth:s}));return p("div",{style:a,children:[n&&p("span",{style:{color:de(o),position:"absolute",left:"6px",top:"18px"},children:"*"}),t]})},Bl=({validationErrorsTypes:t,title:e})=>t?p("div",{style:{width:"100%",fontSize:12},children:Object.entries(t).map(([r,i])=>p(_e,X(j({},e),{text:i}),r))}):null,Wl=({layout:t,dataSourceQuestion:e,register:r})=>{var o,s,a,c,l,N,d,u,f,D,M,I,E,A,T,S;const i=String(e.id),n=x=>x?x===Oi.EMAIL?"email":x===Oi.FREE_TEXT?"text":x===Oi.NUMBER?"number":x===Oi.SECURE?"password":"text":"text";return p("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[p(_e,X(j({},t.title),{text:e.text,htmlFor:i})),p("input",X(j({},r(i,{required:!!e.required,validate:xr(e.validators,!!e.required)})),{id:i,type:n((o=t.textField)==null?void 0:o.inputType),style:{fontFamily:(a=(s=t==null?void 0:t.textField)==null?void 0:s.fontName)!=null?a:"sans-serif",fontSize:(l=(c=t==null?void 0:t.textField)==null?void 0:c.fontSize)!=null?l:15,color:(d=de((N=t==null?void 0:t.textField)==null?void 0:N.fontColor))!=null?d:"#000000",height:"42px",borderWidth:(f=(u=t==null?void 0:t.textField)==null?void 0:u.borderWidth)!=null?f:1,borderColor:(M=de((D=t==null?void 0:t.textField)==null?void 0:D.borderColor))!=null?M:"#d9d9d9",borderStyle:"solid",borderRadius:(E=(I=t==null?void 0:t.textField)==null?void 0:I.cornerRadius)!=null?E:8,padding:"11px",boxSizing:"border-box",backgroundColor:(T=de((A=t==null?void 0:t.textField)==null?void 0:A.backgroundColor))!=null?T:"#FFFFFF",outlineColor:ii},placeholder:(S=e.placeholder)!=null?S:"","data-id":i}))]})},$l=({layout:t,dataSourceQuestion:e,register:r})=>{var n,o,s,a,c,l,N,d,u,f,D,M,I;const i=String(e.id);return p("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[p(_e,X(j({},t.title),{text:e.text,htmlFor:i})),p("textarea",X(j({},r(i,{required:!!e.required,validate:xr(e.validators,!!e.required)})),{id:i,placeholder:(n=e.placeholder)!=null?n:"",onInput:E=>{E.currentTarget.style.height="auto",E.currentTarget.style.height=`${E.currentTarget.scrollHeight-15}px`},"data-id":i,style:{fontFamily:"sans-serif",fontSize:(s=(o=t==null?void 0:t.textField)==null?void 0:o.fontSize)!=null?s:15,color:(c=de((a=t==null?void 0:t.textField)==null?void 0:a.fontColor))!=null?c:"#000000",resize:"none",overflow:"hidden",height:"42px",minHeight:"42px",borderWidth:(N=(l=t==null?void 0:t.textField)==null?void 0:l.borderWidth)!=null?N:1,borderColor:(u=de((d=t==null?void 0:t.textField)==null?void 0:d.borderColor))!=null?u:"#d9d9d9",borderStyle:"solid",borderRadius:(D=(f=t==null?void 0:t.textField)==null?void 0:f.cornerRadius)!=null?D:8,padding:"11px",boxSizing:"border-box",backgroundColor:(I=de((M=t==null?void 0:t.textField)==null?void 0:M.backgroundColor))!=null?I:"#FFFFFF",outlineColor:ii}}))]})},Bt=class Bt extends Ae{constructor({errorCode:e,message:r,underlyingError:i,underlyingBaseError:n}){const o=Ae.getErrorKey(e,vi);super({errorCode:e,errorCodeKey:o,errorEnumName:Bt.ERROR_ENUM_NAME,module:Bt.MODULE,message:r,underlyingError:i,underlyingBaseError:n,domain:Bt.ERROR_ENUM_NAME,shortDomainCode:Bt.SHORT_CODE})}};Bt.MODULE=_i,Bt.ERROR_ENUM_NAME="GuiModuleError",Bt.SHORT_CODE="GM";let ci=Bt;const Hl=({header:t,title:e,buttons:r,footer:i,questions:n,dataSource:o,properties:s,backgroundColor:a})=>{const c=pa(r),{perform:l}=Nr(),N=s?Ku(o.questions,s):{},d=at(null),{register:u,handleSubmit:f,formState:{errors:D},reset:M,watch:I,control:E}=bl({criteriaMode:"all",defaultValues:N});return p(Xt,{header:t,footer:i,backgroundColor:a,children:p("form",{onSubmit:f(T=>{l(Zu(T),c),M()}),style:{height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},noValidate:!0,children:[p("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:de(n==null?void 0:n.backgroundColor)||"transparent"},ref:d,children:[e&&p("div",{style:{lineHeight:"39.2px",width:"100%"},children:p(_e,j({},e))}),p("div",{"data-ui":"gui-questions",part:"gui-questions",style:{width:"100%",display:"flex",gap:"10px",flexDirection:"column"},children:o.questions.map(T=>{var ce;const S=o.static,x=(G,F)=>F.find($=>{var Me;if((Me=$.questionIds)!=null&&Me.length)return $.questionIds.find(ue=>G===ue)}),z=(G,F)=>F.find($=>!$.questionIds&&$.answerType===G),v=S?x(String(T.id),n.itemTypes)||z(T.answerType,n.itemTypes):n.itemTypes.find(G=>G.answerType===T.answerType);if(!v){const G=new ci({errorCode:vi.DECODING_FAILED,message:"The question template has not been found"});l(G);return}const ae=v==null?void 0:v.displayType,fe=T.id in D&&((ce=D[T.id])==null?void 0:ce.types);return p(Ze,{children:[p(Vl,{backgroundColor:v==null?void 0:v.backgroundColor,cornerRadius:v==null?void 0:v.cornerRadius,isError:!!fe,isRequired:T.required,validationBorderColor:v==null?void 0:v.validationBorderColor,validationBorderWidth:v==null?void 0:v.validationBorderWidth,children:[ae===Or.TEXT_EXPANDABLE&&p($l,{layout:v,dataSourceQuestion:T,register:u}),ae===Or.TEXT_SINGLE_LINE&&p(Wl,{layout:v,dataSourceQuestion:T,register:u}),ae===Or.SELECTOR_OPTIONS&&p(Pl,{layout:v,dataSourceQuestion:T,watch:I,register:u}),ae===Or.SELECTOR_BUTTONS&&p(Fl,{layout:v,dataSourceQuestion:T,watch:I,register:u}),ae===Or.SELECTOR_DROPDOWN&&p(Ul,{control:E,layout:v,dataSourceQuestion:T,parentElementRef:d}),ae===Or.MULTI_SELECTOR_DROPDOWN&&p(Rl,{control:E,layout:v,dataSourceQuestion:T,parentElementRef:d})]}),fe&&p(Bl,{validationErrorsTypes:fe,title:v.validationMessage})]},T.id)})})]}),!!(r!=null&&r.length)&&p("div",{style:{display:"flex",width:"100%",flexGrow:0,flexShrink:0,justifyContent:"center",alignItems:"flex-end",padding:"2px"},children:r.map((T,S)=>p(xi,j({dataTestId:"question-button"},T),S))})]})})},Zl={display:"none"},Gl={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",backgroundColor:"#7e57c5",cursor:"pointer"},Kl={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Jl=({header:t,footer:e,buttons:r,backgroundColor:i,selectionLimit:n})=>{var N,d;const{perform:o}=Nr(),s=at(null),a=typeof n=="number"&&(n===0||n>1),c=u=>k(null,null,function*(){var D;const f=Array.from((D=u.currentTarget.files)!=null?D:[]);if(f.length)try{const I=(yield Promise.allSettled(f.map(E=>k(null,null,function*(){return{content:yield ya(E),metadata:{name:E.name,type:E.type,size:E.size,lastModified:E.lastModified}}})))).filter(E=>E.status==="fulfilled").map(E=>E.value);o({cancel:!1,permissionDenied:!1,files:I})}catch(M){console.error("Error: ",M)}}),l=()=>{var u;(u=s.current)==null||u.showPicker()};return p(Xt,{header:t,footer:e,backgroundColor:i,children:p(Ze,{children:p("div",{style:X(j({},Kl),{justifyContent:"center"}),children:[p("input",X(j({style:Zl,ref:s,type:"file",accept:"image/*"},a?{multiple:!0}:{}),{onInput:c})),p("button",{style:Gl,onClick:l,children:p(Ye,{imageId:(d=(N=r==null?void 0:r[0])==null?void 0:N.image)==null?void 0:d.imageId})})]})})})},Xl={display:"none"},ql={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",background:"#7e57c5",cursor:"pointer"},ed={position:"relative",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},td=({header:t,footer:e,backgroundColor:r,buttons:i,selectionLimit:n})=>{var N,d;const{perform:o}=Nr(),s=at(null),a=typeof n=="number"&&(n===0||n>1),c=u=>k(null,null,function*(){var D;const f=Array.from((D=u.currentTarget.files)!=null?D:[]);if(f.length)try{const I=(yield Promise.allSettled(f.map(E=>k(null,null,function*(){return{content:yield ya(E),metadata:{name:E.name,type:E.type,size:E.size,lastModified:E.lastModified}}})))).filter(E=>E.status==="fulfilled").map(E=>E.value);o({cancel:!1,permissionDenied:!1,files:I})}catch(M){console.error("Error: ",M)}}),l=()=>k(null,null,function*(){var u;(u=s.current)==null||u.showPicker()});return st(()=>{k(null,null,function*(){if(qe.isDesktop)return;const u=yield Ju();(u==="denied"||u==="error")&&o({cancel:!1,permissionDenied:!0,files:[]})})},[]),p(Xt,{header:t,footer:e,backgroundColor:r,children:p(Ze,{children:p("div",{style:X(j({},ed),{justifyContent:"center"}),children:[p("input",X(j({style:Xl,ref:s,type:"file",accept:"image/*",capture:"user"},a?{multiple:!0}:{}),{onInput:c})),p("button",{style:ql,onClick:l,children:p(Ye,{imageId:(d=(N=i==null?void 0:i[0])==null?void 0:N.image)==null?void 0:d.imageId})})]})})})};function rd(){const t=at(null),[e,r]=Ue(!1);return{ref:t,isPopoverOpen:e,openPopover:()=>{var o;(o=t.current)==null||o.showPopover(),r(!0)},closePopover:()=>{var o;(o=t.current)==null||o.hidePopover(),r(!1)}}}const Do=()=>k(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"}}),id=()=>k(null,null,function*(){try{return yield navigator.permissions.query({name:"geolocation"})}catch(t){return null}}),ui=t=>k(null,null,function*(){return new Promise(e=>{if(!navigator.geolocation)return e({location:{locationState:"location_request_failed",lat:null,lon:null,error:"Requesting location failed"}});navigator.geolocation.getCurrentPosition(r=>e({location:{locationState:"ok",lat:r.coords.latitude,lon:r.coords.longitude,error:null}}),r=>{r.code===1?e({location:{locationState:"application_location_restricted",lat:null,lon:null,error:"Application location services restricted or unavailable"}}):e({location:{locationState:"location_request_failed",lat:null,lon:null,error:"Requesting location failed"}})},t)})}),nd={height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},od={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"},sd={position:"fixed",inset:0,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",background:"rgba(0,0,0,0.2)",zIndex:1e3,pointerEvents:"auto",cursor:"default"},ad={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:1.61},cd={marginBottom:20,lineHeight:"39.2px",width:"100%"},ud={lineHeight:"28px",fontWeight:"400",width:"100%"},ld={padding:"32px 24px 0 24px",border:"1px solid rgba(0, 0, 0, 0.06)",width:"min(400px, calc(100vw - 32px))",gridTemplateRows:"auto 1fr"},dd={marginBottom:"10px",fontWeight:500,display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":2,overflow:"hidden",textOverflow:"ellipsis",lineClamp:2},Md={marginBottom:"84px",fontWeight:400},gd={height:"100%",overflow:"scroll",maxHeight:"calc(100dvh - 190px)"},Nd={position:"absolute",bottom:0,left:0,padding:"24px",width:"100%"},Id=({title:t,header:e,footer:r,image:i,description:n,buttons:o,backgroundColor:s,popups:a,askEveryTime:c})=>{const l=pa(o),{perform:N}=Nr(),{setIsProcessingCallback:d}=Wu(),{ref:u,isPopoverOpen:f,openPopover:D,closePopover:M}=rd(),I={enableHighAccuracy:!0,timeout:15e3,maximumAge:6e4},E=a==null?void 0:a.find(x=>x.reason==="system_restricted");Jt(()=>{qe.isSafari||c||d==null||d(!0)},[]),st(()=>{if(qe.isSafari||c)return;let x=!0;return k(null,null,function*(){if((yield Do())!=="granted"){d==null||d(!1);return}const v=yield ui(I);x&&N(v,l)}),()=>{qe.isSafari||c||(x=!1)}},[]),st(()=>{if(qe.isSafari)return;let x=!0,z=null;return k(null,null,function*(){const v=yield id();v&&(z=v,v.onchange=()=>k(null,null,function*(){if(v.state==="denied"&&(d==null||d(!0),N({location:{locationState:"application_location_restricted",lat:null,lon:null,error:"Application location services restricted or unavailable"}},l)),v.state==="granted"){d==null||d(!0);const ae=yield ui(I);if(!x)return;N(ae,l)}}))}),()=>{qe.isSafari||(x=!1,z&&(z.onchange=null))}},[]);const A=x=>k(null,null,function*(){x.preventDefault();const z=yield Do();if(z==="denied"){D();return}if(z==="prompt"&&(yield ui()),z==="granted"){const v=yield ui(I);N(v,l)}}),T=x=>k(null,null,function*(){if(x.preventDefault(),(yield Do())==="denied"){D();return}d==null||d(!0);const v=yield ui(I);N(v,l)}),S=x=>{x.preventDefault(),M()};return p(Xt,{header:e,footer:r,backgroundColor:s,children:[p("div",{style:nd,children:[p("div",{style:od,children:[i&&p("div",{style:ad,children:p(Ye,j({},i))}),t&&p("div",{style:cd,children:p(_e,j({},t))}),n&&p("div",{style:ud,children:p(zi,j({},n))})]}),!!(o!=null&&o.length)&&p("div",{style:{display:"flex",flexDirection:"column"},children:o.map((x,z)=>p("div",{style:{padding:"5px"},children:p(xi,j(j({dataTestId:"question-button"},x),x.type==="FORM"?{onClick:qe.isSafari?T:A}:{}))},z))})]}),E&&p("div",{ref:u,popover:"manual",role:"dialog","aria-modal":"true",style:X(j({},ld),{borderRadius:(E==null?void 0:E.cornerRadius)||"27px",backgroundColor:(E==null?void 0:E.backgroundColor)||"#ffffff"}),children:[p("div",{style:dd,children:p(_e,j({},j({fontSize:"24px"},E.title)))}),p("div",{style:Md,children:p("div",{style:gd,children:p(_e,j({},j({fontSize:"17px"},E.message)))})}),E.actionButton1&&p("div",{style:Nd,children:p(xi,j(j({dataTestId:"question-button"},E.actionButton1),E.actionButton1.type==="FORM"?{onClick:S}:{}))})]}),f&&p("div",{style:sd,onPointerDown:x=>{x.preventDefault(),x.stopPropagation(),M()}})]})},Ga=t=>{const{templateId:e,templateLayout:r,dataSource:i,properties:n}=t,{perform:o}=Nr();if(!e||!r)return p(Aa,{});const s=n!=null&&n.length?JSON.stringify(n):"default-key";if(e===Mt.STATUS)return p(ol,{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===Mt.INFO)return p(cl,{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===Mt.GEOLOCATION)return p(Id,{header:r.header,footer:r.footer,image:r.image,title:r.title,description:r.description,buttons:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor,popups:r.popups,askEveryTime:r.askEveryTime});if(e===Mt.PROGRESS)return p(Aa,{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===Mt.INFO_DETAILS)return p(gl,{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===Mt.CAMERA)return p(td,{header:r==null?void 0:r.header,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:t==null?void 0:t.backgroundColor,selectionLimit:t==null?void 0:t.selectionLimit});if(e===Mt.GALLERY)return p(Jl,{header:r==null?void 0:r.header,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:t==null?void 0:t.backgroundColor,selectionLimit:t==null?void 0:t.selectionLimit});if(i&&(i!=null&&i.questions.length)&&e===Mt.QUESTIONS)return p(Hl,{dataSource:i,properties:n,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},s);if(e===Mt.QUESTIONS&&!i){const c=new ci({errorCode:vi.DECODING_FAILED,message:"No data for questions"});return o(c),null}const a=new ci({errorCode:vi.DECODING_FAILED,message:"Unsupported step template"});return o(a),null};let ho=!1;const Ka=({children:t})=>p("div",{part:"gui-idv",id:"gui-idv-web-c",style:{backgroundColor:"white",height:"100%",width:"100%"},children:t}),fd=({isProcessing:t,moduleProps:e,perform:r})=>{const{templateId:i,templateLayout:n,dataSource:o,properties:s}=e,a=(c,l)=>{r&&r(c,l)};return i===Mt.QUESTIONS?p(Ia,{perform:a,children:p(Ka,{children:p(Ga,{properties:s,dataSource:o,templateId:i,templateLayout:n})})}):p(Ia,{perform:a,setIsProcessingCallback:t,children:p(Ka,{children:p(Ga,j(j({templateId:i,templateLayout:n},e.backgroundColor?{backgroundColor:e.backgroundColor}:{}),typeof e.selectionLimit=="number"?{selectionLimit:e.selectionLimit}:{}))})})},li=class li extends ga{constructor(){super(),this._mounted=!1,this._shadowRoot=this.attachShadow({mode:"open"}),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)}dr(u($u,{moduleProps:this.props.moduleProps,perform:this.props.perform,idvEventListener:this.props.idvEventListener,isProcessing:this.props.isProcessing}),this._shadowRoot)}disconnectedCallback(){dr(null,this._shadowRoot),setTimeout(()=>{this._mounted&&(this._mounted=!1)})}static isReady(){return wo}static initialize(e){wo=!0}static deinitialize(){wo=!1}};un.displayName=Rn,un.getSupportedTemplates=()=>Object.values(ft),un.getIdentifier=()=>Rn;let Ln=un;pa(Rn,Ln);const Bu=(t,e)=>({_isInitialized:!1,_initializationInProgress:!1,_isConnectedToPlatform:!1,_sessionIdFromUrl:null,_ttl:86400,_checkAndSetApiTokenToLs:n=>{const i=e().startConfig;if(!("apiKey"in i)||!i.apiKey)return;const o=e().workflowId,s=e().apiKeyAuthTokenCollection;"authToken"in s&&"apiKey"in s&&fr.setAuthTokenToLs(s.authToken,s.apiKey,n,o,s.tokenExpiresAt)},_checkIsSessionDataValid:n=>{if("httpCode"in n){const i="what"in n&&typeof n.what=="string"&&n.what.length?n.what:null,o=new hr(T({errorCode:Yt.HTTP_ISSUE},i?{message:i}:{}));return{error:new Ze({errorCode:je.START_SESSION_FAILED,underlyingBaseError:o})}}if("id"in n&&"currentStep"in n)return n;{const i=new hr({errorCode:Yt.DECODING_FAILED});return{error:new Ze({errorCode:je.START_SESSION_FAILED,underlyingBaseError:i})}}},_runSocketConnection:n=>F(null,null,function*(){const{host:i,isSecure:o,port:s}=e().startConfig;if(i&&n&&(yield ut.connect({host:i,isSecure:o,port:s,token:n})),!i||!n||!ut.isConnected()){const a=new hr({errorCode:Yt.CONNECTION_ISSUE,message:"WebSocket connection issue"});return{error:new Ze({errorCode:je.START_SESSION_FAILED,underlyingBaseError:a})}}return{}}),_continueSession:(n,i)=>F(null,null,function*(){var g;const o=e().startConfig,s="apiKey"in o&&typeof o.apiKey=="string",a=e().workflowId,l=i?Cr.DID_CONTINUE_REMOTE_SESSION:Cr.DID_START_RESTORE_SESSION;let d;if(i)d=i;else if(s){if(!e().sessionRestoreMode)return{};const w=o.apiKey,h=fr.getAuthTokenLs(),m=h&&((g=h[w])==null?void 0:g.sessionId);if(!m)return{};m&&(d=m)}else{if(!e().sessionRestoreMode)return{};const w=e().getCurrentSessionDataLs();if(!w)return{};const h=w.sessionId,m=w.workflowId;if(!h||m!==a)return{};d=h}const p=yield e().fetchService.continueSession(d,n),f=e()._checkIsSessionDataValid(p.data);if(!da(f))return{error:f.error};const c=f.currentStep;return e().setCurrentStepId(c),s?e()._checkAndSetApiTokenToLs(f.id):e().setCurrentSessionDataLsAndStore({sessionId:f.id,workflowId:a}),e().setNextStep({workflow:f.workflow,properties:f.properties,nextStepId:c,locale:f.locale}),e().listener({eventType:Hr.MESSAGE,message:l,module:"IDV"}),f}),initialize(n){return F(this,null,function*(){if(e()._isInitialized)return console.warn("Idv:: Already initialized"),{};if(e()._initializationInProgress)return{error:new Cn({errorCode:Wr.INITIALIZATION_IN_PROGRESS})};t({_initializationInProgress:!0}),yield e().setAndInitFetchService(),t({modulesConfig:n.modulesConfig||{}});let i=[Ln];if(Array.isArray(n==null?void 0:n.includedModules)){const s=n.includedModules.filter(a=>typeof a=="function"&&a.displayName&&!i.some(l=>l.displayName===a.displayName));i=[...i,...s]}const o=yield e().loadModules(i);return o.error?{error:o.error}:(t({_initializationInProgress:!1,_isInitialized:!0}),{})})},configureByApiKey(n){return F(this,null,function*(){if(!e()._isInitialized)return{error:new $e({errorCode:Le.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new $e({errorCode:Le.SCENARIO_IN_PROGRESS})};const o=["apiKey","baseUrl"].filter(m=>!(n!=null&&n[m]));if(o.length>0)return{error:new $e({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${o.join(", ")}`})};const s=to(n.baseUrl);if(!s)return{error:new $e({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n.baseUrl}`})};const a=Number(n.ttl);!Number.isNaN(a)&&a>0&&t({_ttl:a});const l=e()._ttl,d={host:s.host,isSecure:s.isSecure,port:s.port,apiKey:n.apiKey,deviceDescriptor:{ttl:l}},p=fr.getAuthTokenLs(),f=p&&p[n.apiKey]&&p[n.apiKey].authToken?p[n.apiKey]:null,c=f&&f.authToken,g=yield e().connectByApiKey(d);if(g.error)return{error:new $e({errorCode:Le.CONNECTION_ISSUE,underlyingBaseError:g.error})};c&&g.authToken!==c&&fr.removeAuthTokenLs(n.apiKey);const w=f&&g.authToken===f.authToken&&f,h=w?w.tokenExpiresAt:Date.now()+l*1e3;return e().setApiKeyAuthTokenCollection(n.apiKey,g.authToken,h),t({_isConnectedToPlatform:!0}),e().setStartConfig({host:s.host,isSecure:s.isSecure,apiKey:n.apiKey,port:s.port}),g})},configureWithUrl(n){return F(this,null,function*(){if(!e()._isInitialized)return{error:new $e({errorCode:Le.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new $e({errorCode:Le.SCENARIO_IN_PROGRESS})};const i=Bc(n);i&&(e().removeCurrentSessionDataLsAndStore(),t({_sessionIdFromUrl:i}));const o=yield e().connectByUrl(n);if(o.error)return{error:new $e({errorCode:Le.CONNECTION_ISSUE,underlyingBaseError:o.error})};t({_isConnectedToPlatform:!0});try{const s=to(n);if(!s)return{error:new $e({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n}`})};e().setStartConfig({host:s.host,isSecure:s.isSecure,port:s.port})}catch(s){console.log("Invalid urlWithToken")}return o})},configureByUserPass(n){return F(this,null,function*(){if(!e()._isInitialized)return{error:new $e({errorCode:Le.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new $e({errorCode:Le.SCENARIO_IN_PROGRESS})};const o=["password","userName","baseUrl"].filter(d=>!(n!=null&&n[d]));if(o.length>0)return{error:new $e({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${o.join(", ")}`})};const s=to(n.baseUrl);if(!s)return{error:new $e({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n.baseUrl}`})};const a={host:s.host,isSecure:s.isSecure,password:n.password,port:s.port,userName:n.userName},l=yield e().connectByUserPass(a);return l.error?{error:new $e({errorCode:Le.CONNECTION_ISSUE,underlyingBaseError:l.error})}:(t({_isConnectedToPlatform:!0}),e().setStartConfig({host:s.host,isSecure:s.isSecure,port:s.port}),l)})},getWorkflows(){return F(this,arguments,function*(n={limit:100,skip:0}){if(!e()._isInitialized)return{error:new kt({errorCode:vt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new kt({errorCode:vt.CONNECTION_ISSUE})};const i=yield e().fetchService.listWorkflows(n);if(i.code!==0){const o=i.code===4?yt.HTTP_ISSUE:yt.PROVIDER_ERROR,s=new In({errorCode:o});return{error:new kt({errorCode:vt.WORKFLOW_ISSUE,message:"No workflow list",underlyingBaseError:s})}}return{results:i.data.items}})},prepareWorkflowAndPrepareUi(n){return F(this,null,function*(){var h;if(!e()._isInitialized)return{error:new kt({errorCode:vt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new kt({errorCode:vt.CONNECTION_ISSUE})};if(e().currentScreenConfig)return{error:new kt({errorCode:vt.SCENARIO_IN_PROGRESS})};const i=e()._sessionIdFromUrl,o=yield e().fetchService.getWorkflow(n,i),s=Ji(o.data),a=((h=s.client)==null?void 0:h.steps)&&s.client.steps.some(m=>m.templateId===Ci);let l=null;if(o.code===4&&(l=yt.HTTP_ISSUE),o.code!==0&&o.code!==4&&(l=yt.PROVIDER_ERROR),o.code===0&&!o.data.id&&(l=yt.DECODING_FAILED),o.code===0&&o.data.id&&s===null&&(l=yt.DECODING_FAILED),a||(l=yt.DECODING_FAILED),l!==null){const m=new In({errorCode:l});return{error:new kt({errorCode:vt.INTERNAL_ISSUE,underlyingBaseError:m})}}const d=e().externalModules,p=s.steps,{isAllTemplatesSupported:f,unsupportedSteps:c}=Pc(d,p);f||console.log("IDV:: Warning. Unsupported steps found: ",c);const g=e().workflowId;g&&n!==g&&d.forEach(m=>{m.component.deinitialize()});const w=e().modulesConfig;return d.forEach(m=>{m.component.isReady()||m.component.initialize(w)}),e().setLayout(s.client.layout),e().setProcessingTemplate(s.client.steps),e().setWorkflowId(n),e().setTrackLocation(s.trackLocation),{workflow:s}})},startNewSession(a){return F(this,arguments,function*({completion:n,locale:i,metadata:o,location:s}){if(!e()._isInitialized)return{error:new Ze({errorCode:je.INITIALIZATION_REQUIRED})};const l=e().workflowId;if(!l)return{error:new Ze({errorCode:je.PREPARED_REQUIRED})};if(e().currentScreenConfig)return{error:new Ze({errorCode:je.ALREADY_STARTED})};const d=O=>{ut&&ut.close(),n(O)};e().setWorkflowSessionCompletion(d);const p=e().startConfig,f="apiKey"in p&&typeof p.apiKey=="string",c=e().apiKeyAuthTokenCollection;if(f&&"tokenExpiresAt"in c){const O=c.tokenExpiresAt&&typeof c.tokenExpiresAt=="number"?c.tokenExpiresAt:0;if(Date.now()>O){const N=yield e().connectByApiKey({apiKey:p.apiKey,host:p.host,deviceDescriptor:{ttl:e()._ttl}});if(fr.removeAuthTokenLs(p.apiKey),N.error)return{error:new hr({errorCode:Yt.CONNECTION_ISSUE,underlyingBaseError:N.error})};if(N&&"authToken"in N){const R=Date.now()+e()._ttl*1e3;e().setApiKeyAuthTokenCollection(p.apiKey,N.authToken,R)}}}e().setIsProcessing(!0);const g=yield e().fetchService.getConnectionToken(!1);if(!g||typeof g!="string"){const O=new hr({errorCode:Yt.TOKEN_ERROR});return{error:new Ze({errorCode:je.START_SESSION_FAILED,underlyingBaseError:O})}}e().setServiceSessionToken(g);const w=yield e()._runSocketConnection(g);if(w.error)return{error:w.error};const h=e()._sessionIdFromUrl,m=yield e()._continueSession(i,h);if("sessionId"in m)return{results:m};if("error"in m)return{error:m.error};if("id"in m)return{};const C=yield e().fetchService.startSession({workflowId:l,locale:i,metadata:o,location:s}),S=e()._checkIsSessionDataValid(C.data);if(!da(S))return{error:S.error};f?e()._checkAndSetApiTokenToLs(S.id):e().setCurrentSessionDataLsAndStore({sessionId:S.id,workflowId:l});const b=S.currentStep;return e().setCurrentStepId(b),e().setNextStep({workflow:S.workflow,properties:S.properties,nextStepId:b,locale:S.locale}),e().listener({eventType:Hr.MESSAGE,message:Cr.DID_START_SESSION,module:"IDV"}),{}})},playWorkflow(){const n=e().currentStepId;if(n)e().onChangeScreen(n);else{const i=new Ze({errorCode:je.UNKNOWN_STEP});e().workflowSessionCompletion({error:i})}},deinitialize(){return F(this,null,function*(){if(!e()._isInitialized)return{error:new Tn({errorCode:jr.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Tn({errorCode:jr.SCENARIO_IN_PROGRESS})};const n=yield e().deinitializationIdv();return e().resetProps(),t({_isInitialized:!1}),n})}});class Hu{constructor(){this._connectionTokenExpirationBufferMs=6e4,this._origin="",this._locale="",this._workflowId="",this._session=null,this._apiKeyAuthToken={token:"",expiresAt:0},this._connectionToken={token:"",expiresAt:0},this._connect=null,this._getErrorTextFromError=e=>e instanceof Error?e.message:String(e)}_setApiKeyAuthToken(e){this._apiKeyAuthToken=e}_setConnectionToken(e){this._connectionToken=e}_getOriginFromConfig(e){return`http${e.isSecure?"s":""}://${e.host}${e.port?`:${e.port}`:""}`}_getOriginFromUrl(e){try{return new URL(e).origin}catch(r){return""}}_getSessionIdFromUrl(e){var r;try{return(r=new URL(e).searchParams.get("sessionId"))!=null?r:""}catch(n){return""}}_getExpiresAtFromTtl(e){return Date.now()+1e3*e}_getAuthorizationHeaderFromConnectionToken(e){return`Connection ${e}`}_getAuthorizationHeaderFromBasicToken(e){return`Basic ${e}`}_getAuthorizationHeaderFromAuthToken(e){return`Token ${e}`}_getApiKeyAuthTokenFromLs(e){var o,s;const r=fr.getAuthTokenLs(),n=(o=r==null?void 0:r[e])==null?void 0:o.authToken,i=Number(((s=r==null?void 0:r[e])==null?void 0:s.tokenExpiresAt)||0);return!n||!i||Number.isNaN(i)||i<=Date.now()?null:{token:n,expiresAt:i}}_getApiKeyAuthTokenFromHeader(e){return e.replace(/^Token\s+/i,"")}_getValidApiKeyAuthToken(e,r){return F(this,null,function*(){if(this._apiKeyAuthToken.token){if(r)return{code:0,data:this._apiKeyAuthToken};if(Date.now()<this._apiKeyAuthToken.expiresAt)return{code:0,data:this._apiKeyAuthToken};const a=yield this._fetchEphemeral(e.apiKey,e.deviceDescriptor.ttl);if(a.code!==0)return a;const l=this._getApiKeyAuthTokenFromHeader(a.data.authorization),d=this._getExpiresAtFromTtl(e.deviceDescriptor.ttl);return{code:0,data:{token:l,expiresAt:d}}}const n=this._getApiKeyAuthTokenFromLs(e.apiKey);if(n)return{code:0,data:n};const i=yield this._fetchEphemeral(e.apiKey,e.deviceDescriptor.ttl);if(i.code!==0)return i;const o=this._getApiKeyAuthTokenFromHeader(i.data.authorization),s=this._getExpiresAtFromTtl(e.deviceDescriptor.ttl);return{code:0,data:{token:o,expiresAt:s}}})}_getAuthorizationSearchParam(e){var r;try{return(r=new URL(e).searchParams.get("authorization"))!=null?r:""}catch(n){return""}}_getResponseTextFromBadResponse(e){return F(this,null,function*(){return yield e.text().catch(()=>"")})}_fetchPing(){return F(this,null,function*(){const r=`${this._origin}/api/ping`;try{const n=yield fetch(r,{method:"GET"}),i={httpCode:n.status,method:"GET",url:r};if(!n.ok){const s=yield this._getResponseTextFromBadResponse(n);return s&&(i.what=s),{code:5,data:i}}let o;try{if(o=yield n.json(),(o==null?void 0:o.status)!=="OK")return{code:6,data:i}}catch(s){const a=this._getErrorTextFromError(s);return i.what=a,{code:6,data:i}}return{code:0,data:o}}catch(n){const i=this._getErrorTextFromError(n);return{code:4,data:{httpCode:0,method:"GET",url:r,what:i}}}})}_fetchMe(e){return F(this,null,function*(){const n=`${this._origin}/api/user/me`;try{const i=yield fetch(n,{headers:{authorization:e},method:"GET"}),o={httpCode:i.status,method:"GET",url:n};if(!i.ok){const a=yield this._getResponseTextFromBadResponse(i);return a&&(o.what=a),{code:5,data:o}}let s;try{if(s=yield i.json(),!s)return{code:6,data:o}}catch(a){const l=this._getErrorTextFromError(a);return o.what=l,{code:6,data:o}}return{code:0,data:s}}catch(i){const o=this._getErrorTextFromError(i);return{code:4,data:{httpCode:0,method:"GET",url:n,what:o}}}})}_fetchConnection(e,r){return F(this,null,function*(){const n="POST",i=`${this._origin}/api/device/connection`;try{const o=yield fetch(i,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(T(T({},Hc()),r&&{sessionId:r})),method:n}),s={httpCode:o.status,method:n,url:i};if(!o.ok){const l=yield this._getResponseTextFromBadResponse(o);return l&&(s.what=l),{code:5,data:s}}let a;try{if(a=yield o.json(),!(a!=null&&a.token)||!(a!=null&&a.expiresAt))return{code:6,data:s}}catch(l){const d=this._getErrorTextFromError(l);return s.what=d,{code:6,data:s}}return{code:0,data:{token:a.token,expiresAt:+new Date(a.expiresAt),workflows:a.workflows}}}catch(o){const s=this._getErrorTextFromError(o);return{code:4,data:{httpCode:0,method:n,url:i,what:s}}}})}_fetchEphemeral(e,r){return F(this,null,function*(){const n="POST",i=`${this._origin}/api/device/ephemeral`;try{const o=yield fetch(i,{headers:{authorization:`ApiKey ${e}`,"content-type":"application/json"},body:JSON.stringify({ttl:r}),method:n}),s={httpCode:o.status,method:n,url:i};if(!o.ok){const l=yield this._getResponseTextFromBadResponse(o);return l&&(s.what=l),{code:5,data:s}}let a;try{if(a=yield o.json(),!(a!=null&&a.authorization))return{code:6,data:s}}catch(l){const d=this._getErrorTextFromError(l);return s.what=d,{code:6,data:s}}return{code:0,data:a}}catch(o){const s=this._getErrorTextFromError(o);return{code:4,data:{httpCode:0,method:n,url:i,what:s}}}})}_fetchSessionByWorkflowId(e,r,n){return F(this,null,function*(){const i="POST",o=`${this._origin}/api/sessions?workflowId=${r||this._workflowId}`;try{const s=yield fetch(o,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(n),method:i}),a={httpCode:s.status,method:i,url:o};if(!s.ok){const d=yield this._getResponseTextFromBadResponse(s);return d&&(a.what=d),{code:5,data:a}}let l;try{if(l=yield s.json(),!(l!=null&&l.id))return{code:6,data:a}}catch(d){const p=this._getErrorTextFromError(d);return a.what=p,{code:6,data:a}}return{code:0,data:l}}catch(s){const a=this._getErrorTextFromError(s);return{code:4,data:{httpCode:0,method:i,url:o,what:a}}}})}_fetchSessionState(e,r,n){return F(this,null,function*(){var s;const o=`${this._origin}/api/sessions/${r||((s=this._session)==null?void 0:s.id)}?locale=${n||this._locale}`;try{const a=yield fetch(o,{headers:{authorization:e,"content-type":"application/json"},method:"GET"}),l={httpCode:a.status,method:"GET",url:o};if(!a.ok){const p=yield this._getResponseTextFromBadResponse(a);return p&&(l.what=p),{code:5,data:l}}let d;try{if(d=yield a.json(),!(d!=null&&d.id))return{code:6,data:l}}catch(p){const f=this._getErrorTextFromError(p);return l.what=f,{code:6,data:l}}return{code:0,data:d}}catch(a){const l=this._getErrorTextFromError(a);return{code:4,data:{httpCode:0,method:"GET",url:o,what:l}}}})}_fetchWorkflows(n){return F(this,arguments,function*(e,r={limit:0,skip:0}){const o=new URL(`${this._origin}/api/workflows`);typeof r.limit=="number"&&r.limit>=0&&o.searchParams.set("limit",String(r.limit)),typeof r.skip=="number"&&r.skip>=0&&o.searchParams.set("skip",String(r.skip));const s=o.toString();try{const a=yield fetch(s,{headers:{authorization:e},method:"GET"}),l={httpCode:a.status,method:"GET",url:s};if(!a.ok){const p=yield this._getResponseTextFromBadResponse(a);return p&&(l.what=p),{code:5,data:l}}let d;try{if(d=yield a.json(),!d)return{code:6,data:l}}catch(p){const f=this._getErrorTextFromError(p);return l.what=f,{code:6,data:l}}return{code:0,data:d}}catch(a){const l=this._getErrorTextFromError(a);return{code:4,data:{httpCode:0,method:"GET",url:s,what:l}}}})}_fetchWorkflow(e,r){return F(this,null,function*(){const i=`${this._origin}/api/workflows/${r}?renderClient=true`;try{const o=yield fetch(i,{headers:{authorization:e},method:"GET"}),s={httpCode:o.status,method:"GET",url:i};if(!o.ok){const l=yield this._getResponseTextFromBadResponse(o);return l&&(s.what=l),{code:5,data:s}}let a;try{if(a=yield o.json(),!a)return{code:6,data:s}}catch(l){const d=this._getErrorTextFromError(l);return s.what=d,{code:6,data:s}}return{code:0,data:a}}catch(o){const s=this._getErrorTextFromError(o);return{code:4,data:{httpCode:0,method:"GET",url:i,what:s}}}})}_fetchStep(e,r,n,i){return F(this,null,function*(){var p;const o="POST",s=T({},i&&{type:i}),l=new URLSearchParams(s).toString(),d=`${this._origin}/api/sessions/${(p=this._session)==null?void 0:p.id}/step/${r}${l?`?${l}`:""}`;try{const f=yield fetch(d,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(n),method:o}),c={httpCode:f.status,method:o,url:d};if(!f.ok){const w=yield this._getResponseTextFromBadResponse(f);return w&&(c.what=w),{code:5,data:c}}let g;try{if(g=yield f.json(),!g)return{code:6,data:c}}catch(w){const h=this._getErrorTextFromError(w);return c.what=h,{code:6,data:c}}return{code:0,data:g}}catch(f){const c=this._getErrorTextFromError(f);return{code:4,data:{httpCode:0,method:o,url:d,what:c}}}})}_fetchSessionLogs(e,r){return F(this,null,function*(){var o;const n="POST",i=`${this._origin}/api/sessions/${(o=this._session)==null?void 0:o.id}/logs`;try{const s=yield fetch(i,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(r.body),method:n}),a={httpCode:s.status,method:n,url:i};if(!s.ok){const d=yield this._getResponseTextFromBadResponse(s);return d&&(a.what=d),{code:5,data:a}}let l;try{if(l=yield s.json(),!l)return{code:6,data:a}}catch(d){const p=this._getErrorTextFromError(d);return a.what=p,{code:6,data:a}}return{code:0,data:l}}catch(s){const a=this._getErrorTextFromError(s);return{code:4,data:{httpCode:0,method:n,url:i,what:a}}}})}connectByUserPass(e){return F(this,null,function*(){!e.userName||e.password,this._connect={type:"byUserPass",arg:e},this._origin=this._getOriginFromConfig(e);const r=yield this._fetchPing();if(r.code!==0)return r;const n=`${btoa(`${e.userName}:${e.password}`)}`;let i=this._getAuthorizationHeaderFromBasicToken(n),o=yield this._fetchMe(i);if(o.code!==0)return o;const s=yield this._fetchConnection(i);return s.code!==0?s:(this._setConnectionToken(s.data),i=this._getAuthorizationHeaderFromConnectionToken(s.data.token),o=yield this._fetchMe(i),o.code!==0?o:{code:0,data:{workflows:s.data.workflows}})})}connectByApiKey(e,r){return F(this,null,function*(){e.apiKey,this._connect={type:"byApiKey",arg:e},this._origin=this._getOriginFromConfig(e);const n=yield this._fetchPing();if(n.code!==0)return n;const i=yield this._getValidApiKeyAuthToken(e,r);if(i.code!==0)return i;this._setApiKeyAuthToken(i.data);let o=this._getAuthorizationHeaderFromAuthToken(i.data.token),s=yield this._fetchMe(o);if(s.code!==0)return s;const a=yield this._fetchConnection(o);return a.code!==0?a:(this._setConnectionToken(a.data),o=this._getAuthorizationHeaderFromConnectionToken(a.data.token),s=yield this._fetchMe(o),s.code!==0?s:{code:0,data:{authToken:i.data.token,workflows:a.data.workflows}})})}connectByUrl(e){return F(this,null,function*(){this._connect={type:"byUrl",arg:e};const r=this._getOriginFromUrl(e),n=this._getSessionIdFromUrl(e);this._origin=r;let i=this._getAuthorizationSearchParam(e);const o=yield this._fetchPing();if(o.code!==0)return o;let s=yield this._fetchMe(i);if(s.code!==0)return s;const a=yield this._fetchConnection(i,n);return a.code!==0?a:(this._setConnectionToken(a.data),i=this._getAuthorizationHeaderFromConnectionToken(a.data.token),s=yield this._fetchMe(i),s.code!==0?s:{code:0,data:{workflows:a.data.workflows}})})}getConnectionToken(e){return F(this,null,function*(){var r,n,i;return+new Date<+new Date(this._connectionToken.expiresAt)-this._connectionTokenExpirationBufferMs?this._connectionToken.token:((r=this._connect)==null?void 0:r.type)==="byUserPass"?(yield this.connectByUserPass(this._connect.arg),this._connectionToken.token):((n=this._connect)==null?void 0:n.type)==="byApiKey"?(yield this.connectByApiKey(this._connect.arg,e),this._connectionToken.token):((i=this._connect)==null?void 0:i.type)==="byUrl"?(yield this.connectByUrl(this._connect.arg),this._connectionToken.token):""})}startSession(o){return F(this,arguments,function*({workflowId:e,locale:r,metadata:n,location:i}){const s={locale:r};Fc(n)&&(s.metadata=n),i&&(s.location=i);const a=yield this.getConnectionToken(!1),l=this._getAuthorizationHeaderFromConnectionToken(a),d=yield this._fetchSessionByWorkflowId(l,e,s);return d.code===0&&(this._session=d.data,this._locale=r),d})}continueSession(e,r){return F(this,null,function*(){const n=yield this.getConnectionToken(!1),i=this._getAuthorizationHeaderFromConnectionToken(n),o=yield this._fetchSessionState(i,e,r);return o.code===0&&(this._session=o.data,this._locale=r),o})}listWorkflows(){return F(this,arguments,function*(e={limit:0,skip:0}){const r=yield this.getConnectionToken(!1),n=this._getAuthorizationHeaderFromConnectionToken(r);return yield this._fetchWorkflows(n,e)})}getWorkflow(e,r){return F(this,null,function*(){this._workflowId=e;const n=yield this.getConnectionToken(!1),i=this._getAuthorizationHeaderFromConnectionToken(n);let o;if(r){const s=yield this._fetchSessionState(i,r);o=s.code===0?{data:s.data.workflow,code:s.code}:s}else o=yield this._fetchWorkflow(i,e);return o})}pushData(e,r,n){return F(this,null,function*(){const i=yield this.getConnectionToken(!0),o=this._getAuthorizationHeaderFromConnectionToken(i);return yield this._fetchStep(o,e,r,n)})}getSessionState(){return F(this,null,function*(){const e=yield this.getConnectionToken(!0),r=this._getAuthorizationHeaderFromConnectionToken(e),n=yield this._fetchSessionState(r);return n.code===0&&(this._session=n.data),n})}pushSessionLogs(e){return F(this,null,function*(){const r=yield this.getConnectionToken(!0),n=this._getAuthorizationHeaderFromConnectionToken(r);return yield this._fetchSessionLogs(n,e)})}}const Wu=(t,e)=>({fetchService:null,isProcessing:!1,isFinalWaitingUi:!1,setAndInitFetchService:()=>F(null,null,function*(){const n=new Hu;t({fetchService:n})}),setFinalWaitingUi:n=>{t({isFinalWaitingUi:n})},connectByApiKey(n){return F(this,null,function*(){const o=yield e().fetchService.connectByApiKey(n,!1);if(o.code!==0){const s=o.code===4?At.HTTP_ISSUE:At.PROVIDER_ERROR,a=new tn({errorCode:s,message:JSON.stringify(o.data)});return{error:new En({errorCode:mn.CONNECTION_ISSUE,underlyingBaseError:a})}}return o.data})},connectByUserPass(n){return F(this,null,function*(){const i=yield e().fetchService.connectByUserPass(n);if(i.code!==0){const o=i.code===4?At.HTTP_ISSUE:At.PROVIDER_ERROR;return{error:new tn({errorCode:o,message:JSON.stringify(i.data)})}}return{workflows:i.data.workflows}})},connectByUrl(n){return F(this,null,function*(){const o=yield e().fetchService.connectByUrl(n);if(o.code!==0){const s=o.code===4?At.HTTP_ISSUE:At.PROVIDER_ERROR,a=new tn({errorCode:s,message:JSON.stringify(o.data)}),l=new En({errorCode:mn.CONNECTION_ISSUE,underlyingBaseError:a});return{workflows:[],error:l}}return{workflows:o.data.workflows}})},workflowSessionCompletion:()=>{},setWorkflowSessionCompletion:n=>{const i=o=>{var d;const s=(d=e().currentSessionData)==null?void 0:d.sessionId,a=X(T({},o.results),{sessionId:s}),l=T({results:a},o.error&&{error:o.error});if(e().removeCurrentSessionDataLsAndStore(),n(l),o.error){const p=JSON.stringify(o.error);e().fetchService.pushSessionLogs({body:{log:p,errorCode:o.error.shortChain,deviceInfo:{platform:"Web"}}})}Xo.clearLogs()};t(()=>({workflowSessionCompletion:i}))},loadModules:n=>F(null,null,function*(){try{const i=yield ju(n);return t(()=>({externalModules:i})),{}}catch(i){return e().resetFetchService(),e().resetProps(),{error:new Cn({errorCode:Wr.MODULES_INSTANTIATION_FAILURE})}}}),setProcessingTemplate:n=>{const i=Ji(n.find(o=>o.templateId===Ci));i.templateLayout=ca(i.templateLayout,e().layout),t({processingTransformedTemplate:i})},setIsProcessing:n=>{t({isProcessing:n})},_pushStep:(n,i,o)=>F(null,null,function*(){let s=null;return yield kc(()=>F(null,null,function*(){const d=yield e().fetchService.pushData(n,i,o);let p=null;if(d.code===4&&(p=ot.HTTP_ISSUE),d.code!==0&&d.code!==4&&(p=ot.PROVIDER_ERROR),p!==null){const f=new rn({errorCode:ot.HTTP_ISSUE});s=new Ze({errorCode:je.INTERNAL_ISSUE,message:"Error from external module",underlyingBaseError:f})}return d.code===0?(s=null,d):null}),()=>null),s?{error:s}:{}}),_findStepById:n=>{const i=e().workflow;if(!i||!n)return null;const o=i.steps.find(s=>s.id===n);return o!=null?o:null},_getSessionStateNextStepConditionResult:()=>F(null,null,function*(){var w,h,m;const n=yield e().fetchService.getSessionState(),i=n.code===0,o=i?n.data:null,s=(w=o==null?void 0:o.currentStep)!=null?w:"",a=o==null?void 0:o.isProcessingFiles,l=(m=(h=o==null?void 0:o.workflow)==null?void 0:h.steps)!=null?m:[],d=Dc(l,s),p=n.code===4,f=n.code!==0&&n.code!==4,c=i&&(!n.data.workflow||!n.data.currentStep);let g=null;if(l&&!d&&(g=ot.NOT_DATA_TYPE),p&&(g=ot.HTTP_ISSUE),f&&(g=ot.PROVIDER_ERROR),a&&(g=ot.IS_PROCESSING),c&&(g=ot.DECODING_FAILED),g!==null){const C=new rn({errorCode:g});return{error:new Ze({errorCode:je.INTERNAL_ISSUE,underlyingBaseError:C}),shouldRetry:!0}}return d&&!a&&!p&&!f&&!c?{data:n.data}:{shouldRetry:!0}}),_waitingForNextStep:()=>F(null,null,function*(){let n={};return yield new Promise(o=>{let l=0,d;const p=f=>F(null,null,function*(){if(f){d=window.setTimeout(()=>{p(!1)},1e4);return}n=yield e()._getSessionStateNextStepConditionResult(),l++,"shouldRetry"in n&&l<6?d=window.setTimeout(()=>{p(!1)},1e4):(ut.clearSubscriptions(),o())});if(ut.isConnected()){const f=c=>{JSON.parse(atob(JSON.parse(c).payload)).eventType==="SESSION_UPDATED"&&(clearTimeout(d),p(!1))};ut.onMessage(f)}p(!0)}),n!=null&&n.error?{error:n.error}:n!=null&&n.data?{sessionData:n.data}:{error:new Ze({errorCode:je.INTERNAL_ISSUE,underlyingBaseError:new rn({errorCode:ot.DECODING_FAILED})})}}),setFinalStepAndStopProcess:n=>{const i=n||e().currentStepId;if(!i)return;const o=e()._findStepById(i);o&&(e().workflowSessionCompletion({results:{finalStep:{id:o.id,name:o.name,final:o.releaseClientApp}}}),e().resetSession(),e().listener({eventType:Hr.MESSAGE,message:Cr.DID_END_SESSION,module:"IDV"}))},_stepSocketListenerWhenStepIsRunning:n=>{if(ut.isConnected())if(n){const i=o=>F(null,null,function*(){if(JSON.parse(atob(JSON.parse(o).payload)).eventType==="SESSION_UPDATED"){ut.clearSubscriptions();let a={};const l=5;let d=0;for(;d<l&&(d++,a=yield e()._getSessionStateNextStepConditionResult(),!!a.shouldRetry););if(a.error){e().workflowSessionCompletion({error:a.error}),e().resetSession();return}if(a.data){const{workflow:p,properties:f,currentStep:c,locale:g}=a.data;e().setNextStep({workflow:p,properties:f,nextStepId:c,locale:g})}}});ut.onMessage(i)}else ut.clearSubscriptions()},setNextStep:({workflow:n,properties:i,nextStepId:o,locale:s})=>{e().setWorkflowId(n.id),e().setWorkflow(n),e().setLayout(n.client.layout),e().setProcessingTemplate(n.client.steps),e().setSessionProperties(i),e().setLocale(s);const a=e()._findStepById(o),l=d=>!!d&&Object.prototype.toString.call(d)==="[object Object]"&&d.templateId;if(a!=null&&a.releaseClientApp&&!l(a.client)){e().setFinalStepAndStopProcess(a.id);return}a!=null&&a.releaseClientApp&&l(a.client)&&e().setFinalWaitingUi(!0),e().onChangeScreen(o),e().setIsProcessing(!1),e()._stepSocketListenerWhenStepIsRunning(!0)},pushStepWaitNextStepAndSet:(n,i)=>F(null,null,function*(){e()._stepSocketListenerWhenStepIsRunning(!1);const o=e().currentStepId;if(!o)return;if(e().setIsProcessing(!0),e().isFinalWaitingUi){e().setFinalStepAndStopProcess();return}if(n.errorCode){const c=n,g=new Ze({errorCode:je.MODULES_ISSUE,message:"Error from external module",underlyingBaseError:c});e().workflowSessionCompletion({error:g}),e().resetSession();return}const s=yield e()._pushStep(o,n,i);if(s.error){e().workflowSessionCompletion({error:s.error}),e().resetSession();return}const a=yield e()._waitingForNextStep();if(a.error){e().workflowSessionCompletion({error:a.error}),e().resetSession();return}const{workflow:l,properties:d,currentStep:p,locale:f}=a.sessionData;e().setNextStep({workflow:l,properties:d,nextStepId:p,locale:f})}),onChangeScreen:n=>{var l,d,p,f;if(!n)return t(()=>({currentScreenConfig:null}));const i=e().workflow,o=e().sessionProperties;let s=null;if(n===Ci&&e().processingTransformedTemplate!==null){const c=e().processingTransformedTemplate;c&&(s={templateId:c.templateId,templateLayout:c.templateLayout,dataSource:null})}else{const c=e()._findStepById(n);if(typeof((l=c==null?void 0:c.client)==null?void 0:l.templateId)=="string"&&(s=X(T({},c==null?void 0:c.client),{templateId:c.client.templateId,dataSource:(d=c.dataSource)!=null?d:null,properties:o,locale:e().locale})),s&&(s.sessionId=(p=e().currentSessionData)==null?void 0:p.sessionId,s.serviceToken=e().serviceToken),s&&Uc((f=c==null?void 0:c.client)==null?void 0:f.templateLayout)){const g=ca(c.client.templateLayout,e().layout);g&&(s.templateLayout=g)}}const a=Nc(e().externalModules,i.steps,n);if(s===null||!a){const c=new Ze({errorCode:je.UNKNOWN_STEP,message:"Unsupported step template"});e().workflowSessionCompletion({error:c}),t(()=>({currentScreenConfig:null})),e().resetSession();return}e().setCurrentStepId(n),t(()=>({currentScreenConfig:s}))},deinitializationIdv:()=>F(null,null,function*(){return e().resetFetchService(),e().externalModules.forEach(n=>{n.component.deinitialize&&n.component.isReady&&n.component.deinitialize()}),{}}),resetSession:()=>t(()=>({isFinalWaitingUi:!1,isProcessing:!1,processingTransformedTemplate:null,currentStepId:null,layout:null,currentScreenConfig:null,workflowId:void 0,workflow:null,serviceToken:void 0})),resetFetchService:()=>t(()=>({fetchService:null}))});function ju(t){return F(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 He=mc((...t)=>T(T(T({},jc(...t)),Bu(...t)),Wu(...t))),zu=t=>/^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t)&&t.length<=100,Xa=(t,e)=>{if(!zu(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 Ku{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 vo={exports:{}},Qa;function Gu(){return Qa||(Qa=1,(function(t){t.exports=(function(e){var r={};function n(i){if(r[i])return r[i].exports;var o=r[i]={i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=r,n.d=function(i,o,s){n.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},n.n=function(i){var o=i&&i.__esModule?(function(){return i.default}):(function(){return i});return n.d(o,"a",o),o},n.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},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},o={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"},s={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:o,DEVICE_TYPES:i,OS_TYPES:s,defaultData:a}}),(function(e,r,n){var i=n(2),o=n(0),s=o.BROWSER_TYPES,a=o.OS_TYPES,l=o.DEVICE_TYPES,d=n(4),p=d.checkType,f=d.broPayload,c=d.mobilePayload,g=d.wearPayload,w=d.consolePayload,h=d.stvPayload,m=d.getNavigatorInstance,C=d.isIOS13Check,S=new i,b=S.getBrowser(),O=S.getDevice(),k=S.getEngine(),N=S.getOS(),R=S.getUA(),le=s.CHROME,me=s.CHROMIUM,ce=s.IE,Z=s.INTERNET_EXPLORER,H=s.OPERA,K=s.FIREFOX,fe=s.SAFARI,de=s.EDGE,ve=s.YANDEX,ye=s.MOBILE_SAFARI,ee=l.MOBILE,z=l.TABLET,U=l.SMART_TV,Y=l.BROWSER,te=l.WEARABLE,Te=l.CONSOLE,re=a.ANDROID,$=a.WINDOWS_PHONE,Q=a.IOS,Ke=a.WINDOWS,Je=a.MAC_OS,mt=function(){return O.type===ee},it=function(){return O.type===z},zt=function(){switch(O.type){case ee:case z:return!0;default:return!1}},gt=function(){return N.name===a.WINDOWS&&N.version==="10"?typeof R=="string"&&R.indexOf("Edg/")!==-1:!1},Qt=function(){return O.type===U},Kt=function(){return O.type===Y},Et=function(){return O.type===te},Gt=function(){return O.type===Te},er=function(){return N.name===re},Tt=function(){return N.name===Ke},lt=function(){return N.name===Je},y=function(){return N.name===$},I=function(){return N.name===Q},x=function(){return b.name===le},V=function(){return b.name===K},P=function(){return b.name===me},M=function(){return b.name===de},W=function(){return b.name===ve},ne=function(){return b.name===fe||b.name===ye},G=function(){return b.name===ye},we=function(){return b.name===H},We=function(){return b.name===Z||b.name===ce},J=function(){var wt=m(),Dr=wt&&wt.userAgent.toLowerCase();return typeof Dr=="string"?/electron/.test(Dr):!1},se=function(){var wt=m();return wt&&(/iPad|iPhone|iPod/.test(wt.platform)||wt.platform==="MacIntel"&&wt.maxTouchPoints>1)&&!window.MSStream},j=function(){return C("iPad")},ge=function(){return C("iPhone")},Ge=function(){return C("iPod")},Pe=function(){return b.major},pe=function(){return b.version},q=function(){return N.version?N.version:"none"},Xe=function(){return N.name?N.name:"none"},tr=function(){return b.name},gr=function(){return O.vendor?O.vendor:"none"},Vn=function(){return O.model?O.model:"none"},$n=function(){return k.name},Bn=function(){return k.version},Hn=function(){return R},Wn=function(){return O.type},jn=Qt(),zn=Gt(),Kn=Et(),rr=G()||j(),Gn=P(),ct=zt()||j(),qn=mt(),Zn=it()||j(),Yn=Kt(),Jn=er(),Xn=y(),Qn=I()||j(),ei=x(),bo=V(),So=ne(),Co=we(),Nr=We(),ti=q(),ri=Xe(),ni=Pe(),Eo=pe(),ii=tr(),oi=gr(),si=Vn(),To=$n(),Io=Bn(),Oo=Hn(),Ao=M()||gt(),ai=W(),xo=Wn(),Ro=se(),ko=j(),No=ge(),Do=Ge(),Po=J(),Mo=gt(),Fo=M(),Uo=Tt(),Lo=lt(),It=p(O.type);function Vo(){var ie=It.isBrowser,wt=It.isMobile,Dr=It.isTablet,li=It.isSmartTV,ci=It.isConsole,di=It.isWearable;if(ie)return f(ie,b,k,N,R);if(li)return h(li,k,N,R);if(ci)return w(ci,k,N,R);if(wt||Dr)return c(It,O,N,R);if(di)return g(di,k,N,R)}e.exports={deviceDetect:Vo,isSmartTV:jn,isConsole:zn,isWearable:Kn,isMobileSafari:rr,isChromium:Gn,isMobile:ct,isMobileOnly:qn,isTablet:Zn,isBrowser:Yn,isAndroid:Jn,isWinPhone:Xn,isIOS:Qn,isChrome:ei,isFirefox:bo,isSafari:So,isOpera:Co,isIE:Nr,osVersion:ti,osName:ri,fullBrowserVersion:ni,browserVersion:Eo,browserName:ii,mobileVendor:oi,mobileModel:si,engineName:To,engineVersion:Io,getUA:Oo,isEdge:Ao,isYandex:ai,deviceType:xo,isIOS13:Ro,isIPad13:ko,isIPhone13:No,isIPod13:Do,isElectron:Po,isEdgeChromium:Mo,isLegacyEdge:Fo,isWindows:Uo,isMacOs:Lo}}),(function(e,r,n){var i;/*!
|
|
109
|
+
`,this.shadowRoot.querySelector("#idv-gui-styles")||this.shadowRoot.appendChild(e)}lr(p(fd,{moduleProps:this.props.moduleProps,perform:this.props.perform,idvEventListener:this.props.idvEventListener,isProcessing:this.props.isProcessing}),this._shadowRoot)}disconnectedCallback(){lr(null,this._shadowRoot),setTimeout(()=>{this._mounted&&(this._mounted=!1)})}static isReady(){return ho}static initialize(e){ho=!0}static deinitialize(){ho=!1}};li.displayName=_i,li.getSupportedTemplates=()=>Object.values(Mt),li.getIdentifier=()=>_i;let Ui=li;Na(_i,Ui);const Dd=(t,e)=>({_isInitialized:!1,_initializationInProgress:!1,_isConnectedToPlatform:!1,_sessionIdFromUrl:null,_ttl:86400,_checkAndSetApiTokenToLs:i=>{const n=e().startConfig;if(!("apiKey"in n)||!n.apiKey)return;const o=e().workflowId,s=e().apiKeyAuthTokenCollection;"authToken"in s&&"apiKey"in s&&Mr.setAuthTokenToLs(s.authToken,s.apiKey,i,o,s.tokenExpiresAt)},_checkIsSessionDataValid:i=>{if("httpCode"in i){const n="what"in i&&typeof i.what=="string"&&i.what.length?i.what:null,o=new gr(j({errorCode:Kt.HTTP_ISSUE},n?{message:n}:{}));return{error:new Ge({errorCode:Be.START_SESSION_FAILED,underlyingBaseError:o})}}if("id"in i&&"currentStep"in i)return i;{const n=new gr({errorCode:Kt.DECODING_FAILED});return{error:new Ge({errorCode:Be.START_SESSION_FAILED,underlyingBaseError:n})}}},_runSocketConnection:i=>k(null,null,function*(){const{host:n,isSecure:o,port:s}=e().startConfig;if(n&&i&&(yield dt.connect({host:n,isSecure:o,port:s,token:i})),!n||!i||!dt.isConnected()){const a=new gr({errorCode:Kt.CONNECTION_ISSUE,message:"WebSocket connection issue"});return{error:new Ge({errorCode:Be.START_SESSION_FAILED,underlyingBaseError:a})}}return{}}),_continueSession:(i,n)=>k(null,null,function*(){var f;const o=e().startConfig,s="apiKey"in o&&typeof o.apiKey=="string",a=e().workflowId,c=n?Er.DID_CONTINUE_REMOTE_SESSION:Er.DID_START_RESTORE_SESSION;let l;if(n)l=n;else if(s){if(!e().sessionRestoreMode)return{};const D=o.apiKey,M=Mr.getAuthTokenLs(),I=M&&((f=M[D])==null?void 0:f.sessionId);if(!I)return{};I&&(l=I)}else{if(!e().sessionRestoreMode)return{};const D=e().getCurrentSessionDataLs();if(!D)return{};const M=D.sessionId,I=D.workflowId;if(!M||I!==a)return{};l=M}const N=yield e().fetchService.continueSession(l,i),d=e()._checkIsSessionDataValid(N.data);if(!la(d))return{error:d.error};const u=d.currentStep;return e().setCurrentStepId(u),s?e()._checkAndSetApiTokenToLs(d.id):e().setCurrentSessionDataLsAndStore({sessionId:d.id,workflowId:a}),e().setNextStep({workflow:d.workflow,properties:d.properties,nextStepId:u,locale:d.locale}),e().listener({eventType:Fr.MESSAGE,message:c,module:"IDV"}),d}),initialize(i){return k(this,null,function*(){if(e()._isInitialized)return console.warn("Idv:: Already initialized"),{};if(e()._initializationInProgress)return{error:new Ai({errorCode:Vr.INITIALIZATION_IN_PROGRESS})};t({_initializationInProgress:!0}),yield e().setAndInitFetchService(),t({modulesConfig:i.modulesConfig||{}});let n=[Ui];if(Array.isArray(i==null?void 0:i.includedModules)){const s=i.includedModules.filter(a=>typeof a=="function"&&a.displayName&&!n.some(c=>c.displayName===a.displayName));n=[...n,...s]}const o=yield e().loadModules(n);return o.error?{error:o.error}:(t({_initializationInProgress:!1,_isInitialized:!0}),{})})},configureByApiKey(i){return k(this,null,function*(){if(!e()._isInitialized)return{error:new Pe({errorCode:Re.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Pe({errorCode:Re.SCENARIO_IN_PROGRESS})};const o=["apiKey","baseUrl"].filter(I=>!(i!=null&&i[I]));if(o.length>0)return{error:new Pe({errorCode:Re.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${o.join(", ")}`})};const s=to(i.baseUrl);if(!s)return{error:new Pe({errorCode:Re.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${i.baseUrl}`})};const a=Number(i.ttl);!Number.isNaN(a)&&a>0&&t({_ttl:a});const c=e()._ttl,l={host:s.host,isSecure:s.isSecure,port:s.port,apiKey:i.apiKey,deviceDescriptor:{ttl:c}},N=Mr.getAuthTokenLs(),d=N&&N[i.apiKey]&&N[i.apiKey].authToken?N[i.apiKey]:null,u=d&&d.authToken,f=yield e().connectByApiKey(l);if(f.error)return{error:new Pe({errorCode:Re.CONNECTION_ISSUE,underlyingBaseError:f.error})};u&&f.authToken!==u&&Mr.removeAuthTokenLs(i.apiKey);const D=d&&f.authToken===d.authToken&&d,M=D?D.tokenExpiresAt:Date.now()+c*1e3;return e().setApiKeyAuthTokenCollection(i.apiKey,f.authToken,M),t({_isConnectedToPlatform:!0}),e().setStartConfig({host:s.host,isSecure:s.isSecure,apiKey:i.apiKey,port:s.port}),f})},configureWithUrl(i){return k(this,null,function*(){if(!e()._isInitialized)return{error:new Pe({errorCode:Re.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Pe({errorCode:Re.SCENARIO_IN_PROGRESS})};const n=Pu(i);n&&(e().removeCurrentSessionDataLsAndStore(),t({_sessionIdFromUrl:n}));const o=yield e().connectByUrl(i);if(o.error)return{error:new Pe({errorCode:Re.CONNECTION_ISSUE,underlyingBaseError:o.error})};t({_isConnectedToPlatform:!0});try{const s=to(i);if(!s)return{error:new Pe({errorCode:Re.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${i}`})};e().setStartConfig({host:s.host,isSecure:s.isSecure,port:s.port})}catch(s){console.log("Invalid urlWithToken")}return o})},configureByUserPass(i){return k(this,null,function*(){if(!e()._isInitialized)return{error:new Pe({errorCode:Re.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Pe({errorCode:Re.SCENARIO_IN_PROGRESS})};const o=["password","userName","baseUrl"].filter(l=>!(i!=null&&i[l]));if(o.length>0)return{error:new Pe({errorCode:Re.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${o.join(", ")}`})};const s=to(i.baseUrl);if(!s)return{error:new Pe({errorCode:Re.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${i.baseUrl}`})};const a={host:s.host,isSecure:s.isSecure,password:i.password,port:s.port,userName:i.userName},c=yield e().connectByUserPass(a);return c.error?{error:new Pe({errorCode:Re.CONNECTION_ISSUE,underlyingBaseError:c.error})}:(t({_isConnectedToPlatform:!0}),e().setStartConfig({host:s.host,isSecure:s.isSecure,port:s.port}),c)})},getWorkflows(){return k(this,arguments,function*(i={limit:100,skip:0}){if(!e()._isInitialized)return{error:new xt({errorCode:yt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new xt({errorCode:yt.CONNECTION_ISSUE})};const n=yield e().fetchService.listWorkflows(i);if(n.code!==0){const o=n.code===4?pt.HTTP_ISSUE:pt.PROVIDER_ERROR,s=new ji({errorCode:o});return{error:new xt({errorCode:yt.WORKFLOW_ISSUE,message:"No workflow list",underlyingBaseError:s})}}return{results:n.data.items}})},prepareWorkflowAndPrepareUi(i){return k(this,null,function*(){var M;if(!e()._isInitialized)return{error:new xt({errorCode:yt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new xt({errorCode:yt.CONNECTION_ISSUE})};if(e().currentScreenConfig)return{error:new xt({errorCode:yt.SCENARIO_IN_PROGRESS})};const n=e()._sessionIdFromUrl,o=yield e().fetchService.getWorkflow(i,n),s=Jn(o.data),a=((M=s.client)==null?void 0:M.steps)&&s.client.steps.some(I=>I.templateId===En);let c=null;if(o.code===4&&(c=pt.HTTP_ISSUE),o.code!==0&&o.code!==4&&(c=pt.PROVIDER_ERROR),o.code===0&&!o.data.id&&(c=pt.DECODING_FAILED),o.code===0&&o.data.id&&s===null&&(c=pt.DECODING_FAILED),a||(c=pt.DECODING_FAILED),c!==null){const I=new ji({errorCode:c});return{error:new xt({errorCode:yt.INTERNAL_ISSUE,underlyingBaseError:I})}}const l=e().externalModules,N=s.steps,{isAllTemplatesSupported:d,unsupportedSteps:u}=Cu(l,N);d||console.log("IDV:: Warning. Unsupported steps found: ",u);const f=e().workflowId;f&&i!==f&&l.forEach(I=>{I.component.deinitialize()});const D=e().modulesConfig;return l.forEach(I=>{I.component.isReady()||I.component.initialize(D)}),e().setLayout(s.client.layout),e().setProcessingTemplate(s.client.steps),e().setWorkflowId(i),e().setTrackLocation(s.trackLocation),{workflow:s}})},startNewSession(a){return k(this,arguments,function*({completion:i,locale:n,metadata:o,location:s}){if(!e()._isInitialized)return{error:new Ge({errorCode:Be.INITIALIZATION_REQUIRED})};const c=e().workflowId;if(!c)return{error:new Ge({errorCode:Be.PREPARED_REQUIRED})};if(e().currentScreenConfig)return{error:new Ge({errorCode:Be.ALREADY_STARTED})};const l=S=>{dt&&dt.close(),i(S)};e().setWorkflowSessionCompletion(l);const N=e().startConfig,d="apiKey"in N&&typeof N.apiKey=="string",u=e().apiKeyAuthTokenCollection;if(d&&"tokenExpiresAt"in u){const S=u.tokenExpiresAt&&typeof u.tokenExpiresAt=="number"?u.tokenExpiresAt:0;if(Date.now()>S){const z=yield e().connectByApiKey({apiKey:N.apiKey,host:N.host,deviceDescriptor:{ttl:e()._ttl}});if(Mr.removeAuthTokenLs(N.apiKey),z.error)return{error:new gr({errorCode:Kt.CONNECTION_ISSUE,underlyingBaseError:z.error})};if(z&&"authToken"in z){const v=Date.now()+e()._ttl*1e3;e().setApiKeyAuthTokenCollection(N.apiKey,z.authToken,v)}}}e().setIsProcessing(!0);const f=yield e().fetchService.getConnectionToken(!1);if(!f||typeof f!="string"){const S=new gr({errorCode:Kt.TOKEN_ERROR});return{error:new Ge({errorCode:Be.START_SESSION_FAILED,underlyingBaseError:S})}}e().setServiceSessionToken(f);const D=yield e()._runSocketConnection(f);if(D.error)return{error:D.error};const M=e()._sessionIdFromUrl,I=yield e()._continueSession(n,M);if("sessionId"in I)return{results:I};if("error"in I)return{error:I.error};if("id"in I)return{};const E=yield e().fetchService.startSession({workflowId:c,locale:n,metadata:o,location:s}),A=e()._checkIsSessionDataValid(E.data);if(!la(A))return{error:A.error};d?e()._checkAndSetApiTokenToLs(A.id):e().setCurrentSessionDataLsAndStore({sessionId:A.id,workflowId:c});const T=A.currentStep;return e().setCurrentStepId(T),e().setNextStep({workflow:A.workflow,properties:A.properties,nextStepId:T,locale:A.locale}),e().listener({eventType:Fr.MESSAGE,message:Er.DID_START_SESSION,module:"IDV"}),{}})},playWorkflow(){const i=e().currentStepId;if(i)e().onChangeScreen(i);else{const n=new Ge({errorCode:Be.UNKNOWN_STEP});e().workflowSessionCompletion({error:n})}},deinitialize(){return k(this,null,function*(){if(!e()._isInitialized)return{error:new mi({errorCode:Br.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new mi({errorCode:Br.SCENARIO_IN_PROGRESS})};const i=yield e().deinitializationIdv();return e().resetProps(),t({_isInitialized:!1}),i})}});class hd{constructor(){this._connectionTokenExpirationBufferMs=6e4,this._origin="",this._locale="",this._workflowId="",this._session=null,this._apiKeyAuthToken={token:"",expiresAt:0},this._connectionToken={token:"",expiresAt:0},this._connect=null,this._getErrorTextFromError=e=>e instanceof Error?e.message:String(e)}_setApiKeyAuthToken(e){this._apiKeyAuthToken=e}_setConnectionToken(e){this._connectionToken=e}_getOriginFromConfig(e){return`http${e.isSecure?"s":""}://${e.host}${e.port?`:${e.port}`:""}`}_getOriginFromUrl(e){try{return new URL(e).origin}catch(r){return""}}_getSessionIdFromUrl(e){var r;try{return(r=new URL(e).searchParams.get("sessionId"))!=null?r:""}catch(i){return""}}_getExpiresAtFromTtl(e){return Date.now()+1e3*e}_getAuthorizationHeaderFromConnectionToken(e){return`Connection ${e}`}_getAuthorizationHeaderFromBasicToken(e){return`Basic ${e}`}_getAuthorizationHeaderFromAuthToken(e){return`Token ${e}`}_getApiKeyAuthTokenFromLs(e){var o,s;const r=Mr.getAuthTokenLs(),i=(o=r==null?void 0:r[e])==null?void 0:o.authToken,n=Number(((s=r==null?void 0:r[e])==null?void 0:s.tokenExpiresAt)||0);return!i||!n||Number.isNaN(n)||n<=Date.now()?null:{token:i,expiresAt:n}}_getApiKeyAuthTokenFromHeader(e){return e.replace(/^Token\s+/i,"")}_getValidApiKeyAuthToken(e,r){return k(this,null,function*(){if(this._apiKeyAuthToken.token){if(r)return{code:0,data:this._apiKeyAuthToken};if(Date.now()<this._apiKeyAuthToken.expiresAt)return{code:0,data:this._apiKeyAuthToken};const a=yield this._fetchEphemeral(e.apiKey,e.deviceDescriptor.ttl);if(a.code!==0)return a;const c=this._getApiKeyAuthTokenFromHeader(a.data.authorization),l=this._getExpiresAtFromTtl(e.deviceDescriptor.ttl);return{code:0,data:{token:c,expiresAt:l}}}const i=this._getApiKeyAuthTokenFromLs(e.apiKey);if(i)return{code:0,data:i};const n=yield this._fetchEphemeral(e.apiKey,e.deviceDescriptor.ttl);if(n.code!==0)return n;const o=this._getApiKeyAuthTokenFromHeader(n.data.authorization),s=this._getExpiresAtFromTtl(e.deviceDescriptor.ttl);return{code:0,data:{token:o,expiresAt:s}}})}_getAuthorizationSearchParam(e){var r;try{return(r=new URL(e).searchParams.get("authorization"))!=null?r:""}catch(i){return""}}_getResponseTextFromBadResponse(e){return k(this,null,function*(){return yield e.text().catch(()=>"")})}_fetchPing(){return k(this,null,function*(){const r=`${this._origin}/api/ping`;try{const i=yield fetch(r,{method:"GET"}),n={httpCode:i.status,method:"GET",url:r};if(!i.ok){const s=yield this._getResponseTextFromBadResponse(i);return s&&(n.what=s),{code:5,data:n}}let o;try{if(o=yield i.json(),(o==null?void 0:o.status)!=="OK")return{code:6,data:n}}catch(s){const a=this._getErrorTextFromError(s);return n.what=a,{code:6,data:n}}return{code:0,data:o}}catch(i){const n=this._getErrorTextFromError(i);return{code:4,data:{httpCode:0,method:"GET",url:r,what:n}}}})}_fetchMe(e){return k(this,null,function*(){const i=`${this._origin}/api/user/me`;try{const n=yield fetch(i,{headers:{authorization:e},method:"GET"}),o={httpCode:n.status,method:"GET",url:i};if(!n.ok){const a=yield this._getResponseTextFromBadResponse(n);return a&&(o.what=a),{code:5,data:o}}let s;try{if(s=yield n.json(),!s)return{code:6,data:o}}catch(a){const c=this._getErrorTextFromError(a);return o.what=c,{code:6,data:o}}return{code:0,data:s}}catch(n){const o=this._getErrorTextFromError(n);return{code:4,data:{httpCode:0,method:"GET",url:i,what:o}}}})}_fetchConnection(e,r){return k(this,null,function*(){const i="POST",n=`${this._origin}/api/device/connection`;try{const o=yield fetch(n,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(j(j({},Yu()),r&&{sessionId:r})),method:i}),s={httpCode:o.status,method:i,url:n};if(!o.ok){const c=yield this._getResponseTextFromBadResponse(o);return c&&(s.what=c),{code:5,data:s}}let a;try{if(a=yield o.json(),!(a!=null&&a.token)||!(a!=null&&a.expiresAt))return{code:6,data:s}}catch(c){const l=this._getErrorTextFromError(c);return s.what=l,{code:6,data:s}}return{code:0,data:{token:a.token,expiresAt:+new Date(a.expiresAt),workflows:a.workflows}}}catch(o){const s=this._getErrorTextFromError(o);return{code:4,data:{httpCode:0,method:i,url:n,what:s}}}})}_fetchEphemeral(e,r){return k(this,null,function*(){const i="POST",n=`${this._origin}/api/device/ephemeral`;try{const o=yield fetch(n,{headers:{authorization:`ApiKey ${e}`,"content-type":"application/json"},body:JSON.stringify({ttl:r}),method:i}),s={httpCode:o.status,method:i,url:n};if(!o.ok){const c=yield this._getResponseTextFromBadResponse(o);return c&&(s.what=c),{code:5,data:s}}let a;try{if(a=yield o.json(),!(a!=null&&a.authorization))return{code:6,data:s}}catch(c){const l=this._getErrorTextFromError(c);return s.what=l,{code:6,data:s}}return{code:0,data:a}}catch(o){const s=this._getErrorTextFromError(o);return{code:4,data:{httpCode:0,method:i,url:n,what:s}}}})}_fetchSessionByWorkflowId(e,r,i){return k(this,null,function*(){const n="POST",o=`${this._origin}/api/sessions?workflowId=${r||this._workflowId}`;try{const s=yield fetch(o,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(i),method:n}),a={httpCode:s.status,method:n,url:o};if(!s.ok){const l=yield this._getResponseTextFromBadResponse(s);return l&&(a.what=l),{code:5,data:a}}let c;try{if(c=yield s.json(),!(c!=null&&c.id))return{code:6,data:a}}catch(l){const N=this._getErrorTextFromError(l);return a.what=N,{code:6,data:a}}return{code:0,data:c}}catch(s){const a=this._getErrorTextFromError(s);return{code:4,data:{httpCode:0,method:n,url:o,what:a}}}})}_fetchSessionState(e,r,i){return k(this,null,function*(){var s;const o=`${this._origin}/api/sessions/${r||((s=this._session)==null?void 0:s.id)}?locale=${i||this._locale}`;try{const a=yield fetch(o,{headers:{authorization:e,"content-type":"application/json"},method:"GET"}),c={httpCode:a.status,method:"GET",url:o};if(!a.ok){const N=yield this._getResponseTextFromBadResponse(a);return N&&(c.what=N),{code:5,data:c}}let l;try{if(l=yield a.json(),!(l!=null&&l.id))return{code:6,data:c}}catch(N){const d=this._getErrorTextFromError(N);return c.what=d,{code:6,data:c}}return{code:0,data:l}}catch(a){const c=this._getErrorTextFromError(a);return{code:4,data:{httpCode:0,method:"GET",url:o,what:c}}}})}_fetchWorkflows(i){return k(this,arguments,function*(e,r={limit:0,skip:0}){const o=new URL(`${this._origin}/api/workflows`);typeof r.limit=="number"&&r.limit>=0&&o.searchParams.set("limit",String(r.limit)),typeof r.skip=="number"&&r.skip>=0&&o.searchParams.set("skip",String(r.skip));const s=o.toString();try{const a=yield fetch(s,{headers:{authorization:e},method:"GET"}),c={httpCode:a.status,method:"GET",url:s};if(!a.ok){const N=yield this._getResponseTextFromBadResponse(a);return N&&(c.what=N),{code:5,data:c}}let l;try{if(l=yield a.json(),!l)return{code:6,data:c}}catch(N){const d=this._getErrorTextFromError(N);return c.what=d,{code:6,data:c}}return{code:0,data:l}}catch(a){const c=this._getErrorTextFromError(a);return{code:4,data:{httpCode:0,method:"GET",url:s,what:c}}}})}_fetchWorkflow(e,r){return k(this,null,function*(){const n=`${this._origin}/api/workflows/${r}?renderClient=true`;try{const o=yield fetch(n,{headers:{authorization:e},method:"GET"}),s={httpCode:o.status,method:"GET",url:n};if(!o.ok){const c=yield this._getResponseTextFromBadResponse(o);return c&&(s.what=c),{code:5,data:s}}let a;try{if(a=yield o.json(),!a)return{code:6,data:s}}catch(c){const l=this._getErrorTextFromError(c);return s.what=l,{code:6,data:s}}return{code:0,data:a}}catch(o){const s=this._getErrorTextFromError(o);return{code:4,data:{httpCode:0,method:"GET",url:n,what:s}}}})}_fetchStep(e,r,i,n){return k(this,null,function*(){var N;const o="POST",s=j({},n&&{type:n}),c=new URLSearchParams(s).toString(),l=`${this._origin}/api/sessions/${(N=this._session)==null?void 0:N.id}/step/${r}${c?`?${c}`:""}`;try{const d=yield fetch(l,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(i),method:o}),u={httpCode:d.status,method:o,url:l};if(!d.ok){const D=yield this._getResponseTextFromBadResponse(d);return D&&(u.what=D),{code:5,data:u}}let f;try{if(f=yield d.json(),!f)return{code:6,data:u}}catch(D){const M=this._getErrorTextFromError(D);return u.what=M,{code:6,data:u}}return{code:0,data:f}}catch(d){const u=this._getErrorTextFromError(d);return{code:4,data:{httpCode:0,method:o,url:l,what:u}}}})}_fetchSessionLogs(e,r){return k(this,null,function*(){var o;const i="POST",n=`${this._origin}/api/sessions/${(o=this._session)==null?void 0:o.id}/logs`;try{const s=yield fetch(n,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(r.body),method:i}),a={httpCode:s.status,method:i,url:n};if(!s.ok){const l=yield this._getResponseTextFromBadResponse(s);return l&&(a.what=l),{code:5,data:a}}let c;try{if(c=yield s.json(),!c)return{code:6,data:a}}catch(l){const N=this._getErrorTextFromError(l);return a.what=N,{code:6,data:a}}return{code:0,data:c}}catch(s){const a=this._getErrorTextFromError(s);return{code:4,data:{httpCode:0,method:i,url:n,what:a}}}})}connectByUserPass(e){return k(this,null,function*(){!e.userName||e.password,this._connect={type:"byUserPass",arg:e},this._origin=this._getOriginFromConfig(e);const r=yield this._fetchPing();if(r.code!==0)return r;const i=`${btoa(`${e.userName}:${e.password}`)}`;let n=this._getAuthorizationHeaderFromBasicToken(i),o=yield this._fetchMe(n);if(o.code!==0)return o;const s=yield this._fetchConnection(n);return s.code!==0?s:(this._setConnectionToken(s.data),n=this._getAuthorizationHeaderFromConnectionToken(s.data.token),o=yield this._fetchMe(n),o.code!==0?o:{code:0,data:{workflows:s.data.workflows}})})}connectByApiKey(e,r){return k(this,null,function*(){e.apiKey,this._connect={type:"byApiKey",arg:e},this._origin=this._getOriginFromConfig(e);const i=yield this._fetchPing();if(i.code!==0)return i;const n=yield this._getValidApiKeyAuthToken(e,r);if(n.code!==0)return n;this._setApiKeyAuthToken(n.data);let o=this._getAuthorizationHeaderFromAuthToken(n.data.token),s=yield this._fetchMe(o);if(s.code!==0)return s;const a=yield this._fetchConnection(o);return a.code!==0?a:(this._setConnectionToken(a.data),o=this._getAuthorizationHeaderFromConnectionToken(a.data.token),s=yield this._fetchMe(o),s.code!==0?s:{code:0,data:{authToken:n.data.token,workflows:a.data.workflows}})})}connectByUrl(e){return k(this,null,function*(){this._connect={type:"byUrl",arg:e};const r=this._getOriginFromUrl(e),i=this._getSessionIdFromUrl(e);this._origin=r;let n=this._getAuthorizationSearchParam(e);const o=yield this._fetchPing();if(o.code!==0)return o;let s=yield this._fetchMe(n);if(s.code!==0)return s;const a=yield this._fetchConnection(n,i);return a.code!==0?a:(this._setConnectionToken(a.data),n=this._getAuthorizationHeaderFromConnectionToken(a.data.token),s=yield this._fetchMe(n),s.code!==0?s:{code:0,data:{workflows:a.data.workflows}})})}getConnectionToken(e){return k(this,null,function*(){var r,i,n;return+new Date<+new Date(this._connectionToken.expiresAt)-this._connectionTokenExpirationBufferMs?this._connectionToken.token:((r=this._connect)==null?void 0:r.type)==="byUserPass"?(yield this.connectByUserPass(this._connect.arg),this._connectionToken.token):((i=this._connect)==null?void 0:i.type)==="byApiKey"?(yield this.connectByApiKey(this._connect.arg,e),this._connectionToken.token):((n=this._connect)==null?void 0:n.type)==="byUrl"?(yield this.connectByUrl(this._connect.arg),this._connectionToken.token):""})}startSession(o){return k(this,arguments,function*({workflowId:e,locale:r,metadata:i,location:n}){const s={locale:r};Lu(i)&&(s.metadata=i),n&&(s.location=n);const a=yield this.getConnectionToken(!1),c=this._getAuthorizationHeaderFromConnectionToken(a),l=yield this._fetchSessionByWorkflowId(c,e,s);return l.code===0&&(this._session=l.data,this._locale=r),l})}continueSession(e,r){return k(this,null,function*(){const i=yield this.getConnectionToken(!1),n=this._getAuthorizationHeaderFromConnectionToken(i),o=yield this._fetchSessionState(n,e,r);return o.code===0&&(this._session=o.data,this._locale=r),o})}listWorkflows(){return k(this,arguments,function*(e={limit:0,skip:0}){const r=yield this.getConnectionToken(!1),i=this._getAuthorizationHeaderFromConnectionToken(r);return yield this._fetchWorkflows(i,e)})}getWorkflow(e,r){return k(this,null,function*(){this._workflowId=e;const i=yield this.getConnectionToken(!1),n=this._getAuthorizationHeaderFromConnectionToken(i);let o;if(r){const s=yield this._fetchSessionState(n,r);o=s.code===0?{data:s.data.workflow,code:s.code}:s}else o=yield this._fetchWorkflow(n,e);return o})}pushData(e,r,i){return k(this,null,function*(){const n=yield this.getConnectionToken(!0),o=this._getAuthorizationHeaderFromConnectionToken(n);return yield this._fetchStep(o,e,r,i)})}getSessionState(){return k(this,null,function*(){const e=yield this.getConnectionToken(!0),r=this._getAuthorizationHeaderFromConnectionToken(e),i=yield this._fetchSessionState(r);return i.code===0&&(this._session=i.data),i})}pushSessionLogs(e){return k(this,null,function*(){const r=yield this.getConnectionToken(!0),i=this._getAuthorizationHeaderFromConnectionToken(r);return yield this._fetchSessionLogs(i,e)})}}const yd=(t,e)=>({fetchService:null,isProcessing:!1,isFinalWaitingUi:!1,setAndInitFetchService:()=>k(null,null,function*(){const i=new hd;t({fetchService:i})}),setFinalWaitingUi:i=>{t({isFinalWaitingUi:i})},connectByApiKey(i){return k(this,null,function*(){const o=yield e().fetchService.connectByApiKey(i,!1);if(o.code!==0){const s=o.code===4?Ot.HTTP_ISSUE:Ot.PROVIDER_ERROR,a=new ti({errorCode:s,message:JSON.stringify(o.data)});return{error:new Ei({errorCode:Ii.CONNECTION_ISSUE,underlyingBaseError:a})}}return o.data})},connectByUserPass(i){return k(this,null,function*(){const n=yield e().fetchService.connectByUserPass(i);if(n.code!==0){const o=n.code===4?Ot.HTTP_ISSUE:Ot.PROVIDER_ERROR;return{error:new ti({errorCode:o,message:JSON.stringify(n.data)})}}return{workflows:n.data.workflows}})},connectByUrl(i){return k(this,null,function*(){const o=yield e().fetchService.connectByUrl(i);if(o.code!==0){const s=o.code===4?Ot.HTTP_ISSUE:Ot.PROVIDER_ERROR,a=new ti({errorCode:s,message:JSON.stringify(o.data)}),c=new Ei({errorCode:Ii.CONNECTION_ISSUE,underlyingBaseError:a});return{workflows:[],error:c}}return{workflows:o.data.workflows}})},workflowSessionCompletion:()=>{},setWorkflowSessionCompletion:i=>{const n=o=>{var l;const s=(l=e().currentSessionData)==null?void 0:l.sessionId,a=X(j({},o.results),{sessionId:s}),c=j({results:a},o.error&&{error:o.error});if(e().removeCurrentSessionDataLsAndStore(),i(c),o.error){const N=JSON.stringify(o.error);e().fetchService.pushSessionLogs({body:{log:N,errorCode:o.error.shortChain,deviceInfo:{platform:"Web"}}})}Xo.clearLogs()};t(()=>({workflowSessionCompletion:n}))},loadModules:i=>k(null,null,function*(){try{const n=yield pd(i);return t(()=>({externalModules:n})),{}}catch(n){return e().resetFetchService(),e().resetProps(),{error:new Ai({errorCode:Vr.MODULES_INSTANTIATION_FAILURE})}}}),setProcessingTemplate:i=>{const n=Jn(i.find(o=>o.templateId===En));n.templateLayout=ua(n.templateLayout,e().layout),t({processingTransformedTemplate:n})},setIsProcessing:i=>{t({isProcessing:i})},_pushStep:(i,n,o)=>k(null,null,function*(){let s=null;return yield vu(()=>k(null,null,function*(){const l=yield e().fetchService.pushData(i,n,o);let N=null;if(l.code===4&&(N=ot.HTTP_ISSUE),l.code!==0&&l.code!==4&&(N=ot.PROVIDER_ERROR),N!==null){const d=new ri({errorCode:ot.HTTP_ISSUE});s=new Ge({errorCode:Be.INTERNAL_ISSUE,message:"Error from external module",underlyingBaseError:d})}return l.code===0?(s=null,l):null}),()=>null),s?{error:s}:{}}),_findStepById:i=>{const n=e().workflow;if(!n||!i)return null;const o=n.steps.find(s=>s.id===i);return o!=null?o:null},_getSessionStateNextStepConditionResult:()=>k(null,null,function*(){var D,M,I;const i=yield e().fetchService.getSessionState(),n=i.code===0,o=n?i.data:null,s=(D=o==null?void 0:o.currentStep)!=null?D:"",a=o==null?void 0:o.isProcessingFiles,c=(I=(M=o==null?void 0:o.workflow)==null?void 0:M.steps)!=null?I:[],l=zu(c,s),N=i.code===4,d=i.code!==0&&i.code!==4,u=n&&(!i.data.workflow||!i.data.currentStep);let f=null;if(c&&!l&&(f=ot.NOT_DATA_TYPE),N&&(f=ot.HTTP_ISSUE),d&&(f=ot.PROVIDER_ERROR),a&&(f=ot.IS_PROCESSING),u&&(f=ot.DECODING_FAILED),f!==null){const E=new ri({errorCode:f});return{error:new Ge({errorCode:Be.INTERNAL_ISSUE,underlyingBaseError:E}),shouldRetry:!0}}return l&&!a&&!N&&!d&&!u?{data:i.data}:{shouldRetry:!0}}),_waitingForNextStep:()=>k(null,null,function*(){let i={};return yield new Promise(o=>{let c=0,l;const N=d=>k(null,null,function*(){if(d){l=window.setTimeout(()=>{N(!1)},1e4);return}i=yield e()._getSessionStateNextStepConditionResult(),c++,"shouldRetry"in i&&c<6?l=window.setTimeout(()=>{N(!1)},1e4):(dt.clearSubscriptions(),o())});if(dt.isConnected()){const d=u=>{JSON.parse(atob(JSON.parse(u).payload)).eventType==="SESSION_UPDATED"&&(clearTimeout(l),N(!1))};dt.onMessage(d)}N(!0)}),i!=null&&i.error?{error:i.error}:i!=null&&i.data?{sessionData:i.data}:{error:new Ge({errorCode:Be.INTERNAL_ISSUE,underlyingBaseError:new ri({errorCode:ot.DECODING_FAILED})})}}),setFinalStepAndStopProcess:i=>{const n=i||e().currentStepId;if(!n)return;const o=e()._findStepById(n);o&&(e().workflowSessionCompletion({results:{finalStep:{id:o.id,name:o.name,final:o.releaseClientApp}}}),e().resetSession(),e().listener({eventType:Fr.MESSAGE,message:Er.DID_END_SESSION,module:"IDV"}))},_stepSocketListenerWhenStepIsRunning:i=>{if(dt.isConnected())if(i){const n=o=>k(null,null,function*(){if(JSON.parse(atob(JSON.parse(o).payload)).eventType==="SESSION_UPDATED"){dt.clearSubscriptions();let a={};const c=5;let l=0;for(;l<c&&(l++,a=yield e()._getSessionStateNextStepConditionResult(),!!a.shouldRetry););if(a.error){e().workflowSessionCompletion({error:a.error}),e().resetSession();return}if(a.data){const{workflow:N,properties:d,currentStep:u,locale:f}=a.data;e().setNextStep({workflow:N,properties:d,nextStepId:u,locale:f})}}});dt.onMessage(n)}else dt.clearSubscriptions()},setNextStep:({workflow:i,properties:n,nextStepId:o,locale:s})=>{e().setWorkflowId(i.id),e().setWorkflow(i),e().setLayout(i.client.layout),e().setProcessingTemplate(i.client.steps),e().setSessionProperties(n),e().setLocale(s);const a=e()._findStepById(o),c=l=>!!l&&Object.prototype.toString.call(l)==="[object Object]"&&l.templateId;if(a!=null&&a.releaseClientApp&&!c(a.client)){e().setFinalStepAndStopProcess(a.id);return}a!=null&&a.releaseClientApp&&c(a.client)&&e().setFinalWaitingUi(!0),e().onChangeScreen(o),e().setIsProcessing(!1),e()._stepSocketListenerWhenStepIsRunning(!0)},pushStepWaitNextStepAndSet:(i,n)=>k(null,null,function*(){e()._stepSocketListenerWhenStepIsRunning(!1);const o=e().currentStepId;if(!o)return;if(e().setIsProcessing(!0),e().isFinalWaitingUi){e().setFinalStepAndStopProcess();return}if(i.errorCode){const u=i,f=new Ge({errorCode:Be.MODULES_ISSUE,message:"Error from external module",underlyingBaseError:u});e().workflowSessionCompletion({error:f}),e().resetSession();return}const s=yield e()._pushStep(o,i,n);if(s.error){e().workflowSessionCompletion({error:s.error}),e().resetSession();return}const a=yield e()._waitingForNextStep();if(a.error){e().workflowSessionCompletion({error:a.error}),e().resetSession();return}const{workflow:c,properties:l,currentStep:N,locale:d}=a.sessionData;e().setNextStep({workflow:c,properties:l,nextStepId:N,locale:d})}),onChangeScreen:i=>{var c,l,N,d;if(!i)return t(()=>({currentScreenConfig:null}));const n=e().workflow,o=e().sessionProperties;let s=null;if(i===En&&e().processingTransformedTemplate!==null){const u=e().processingTransformedTemplate;u&&(s={templateId:u.templateId,templateLayout:u.templateLayout,dataSource:null})}else{const u=e()._findStepById(i);if(typeof((c=u==null?void 0:u.client)==null?void 0:c.templateId)=="string"&&(s=X(j({},u==null?void 0:u.client),{templateId:u.client.templateId,dataSource:(l=u.dataSource)!=null?l:null,properties:o,locale:e().locale})),s&&(s.sessionId=(N=e().currentSessionData)==null?void 0:N.sessionId,s.serviceToken=e().serviceToken),s&&ku((d=u==null?void 0:u.client)==null?void 0:d.templateLayout)){const f=ua(u.client.templateLayout,e().layout);f&&(s.templateLayout=f)}}const a=xu(e().externalModules,n.steps,i);if(s===null||!a){const u=new Ge({errorCode:Be.UNKNOWN_STEP,message:"Unsupported step template"});e().workflowSessionCompletion({error:u}),t(()=>({currentScreenConfig:null})),e().resetSession();return}e().setCurrentStepId(i),t(()=>({currentScreenConfig:s}))},deinitializationIdv:()=>k(null,null,function*(){return e().resetFetchService(),e().externalModules.forEach(i=>{i.component.deinitialize&&i.component.isReady&&i.component.deinitialize()}),{}}),resetSession:()=>t(()=>({isFinalWaitingUi:!1,isProcessing:!1,processingTransformedTemplate:null,currentStepId:null,layout:null,currentScreenConfig:null,workflowId:void 0,workflow:null,serviceToken:void 0})),resetFetchService:()=>t(()=>({fetchService:null}))});function pd(t){return k(this,null,function*(){const e=[];for(const i of t)i&&e.push({id:i.getIdentifier(),supportedTemplates:i.getSupportedTemplates(),component:i});return e.filter(i=>i!==null)})}const Fe=Iu((...t)=>j(j(j({},Vu(...t)),Dd(...t)),yd(...t))),Td=t=>/^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t)&&t.length<=100,Ja=(t,e)=>{if(!Td(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 Ad{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 yo={exports:{}},Xa;function Ed(){return Xa||(Xa=1,(function(t){t.exports=(function(e){var r={};function i(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=r,i.d=function(n,o,s){i.o(n,o)||Object.defineProperty(n,o,{configurable:!1,enumerable:!0,get:s})},i.n=function(n){var o=n&&n.__esModule?(function(){return n.default}):(function(){return n});return i.d(o,"a",o),o},i.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},i.p="",i(i.s=1)})([(function(e,r,i){var n={MOBILE:"mobile",TABLET:"tablet",SMART_TV:"smarttv",CONSOLE:"console",WEARABLE:"wearable",BROWSER:void 0},o={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"},s={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:o,DEVICE_TYPES:n,OS_TYPES:s,defaultData:a}}),(function(e,r,i){var n=i(2),o=i(0),s=o.BROWSER_TYPES,a=o.OS_TYPES,c=o.DEVICE_TYPES,l=i(4),N=l.checkType,d=l.broPayload,u=l.mobilePayload,f=l.wearPayload,D=l.consolePayload,M=l.stvPayload,I=l.getNavigatorInstance,E=l.isIOS13Check,A=new n,T=A.getBrowser(),S=A.getDevice(),x=A.getEngine(),z=A.getOS(),v=A.getUA(),ae=s.CHROME,fe=s.CHROMIUM,ce=s.IE,G=s.INTERNET_EXPLORER,F=s.OPERA,$=s.FIREFOX,Me=s.SAFARI,ue=s.EDGE,ye=s.YANDEX,Te=s.MOBILE_SAFARI,ee=c.MOBILE,W=c.TABLET,U=c.SMART_TV,K=c.BROWSER,te=c.WEARABLE,je=c.CONSOLE,re=a.ANDROID,P=a.WINDOWS_PHONE,q=a.IOS,We=a.WINDOWS,Je=a.MAC_OS,ft=function(){return S.type===ee},nt=function(){return S.type===W},Wt=function(){switch(S.type){case ee:case W:return!0;default:return!1}},Dt=function(){return z.name===a.WINDOWS&&z.version==="10"?typeof v=="string"&&v.indexOf("Edg/")!==-1:!1},qt=function(){return S.type===U},$t=function(){return S.type===K},mt=function(){return S.type===te},Ht=function(){return S.type===je},er=function(){return z.name===re},jt=function(){return z.name===We},ct=function(){return z.name===Je},y=function(){return z.name===P},w=function(){return z.name===q},_=function(){return T.name===ae},Q=function(){return T.name===$},b=function(){return T.name===fe},L=function(){return T.name===ue},V=function(){return T.name===ye},ie=function(){return T.name===Me||T.name===Te},H=function(){return T.name===Te},he=function(){return T.name===F},Ve=function(){return T.name===G||T.name===ce},J=function(){var ht=I(),Cr=ht&&ht.userAgent.toLowerCase();return typeof Cr=="string"?/electron/.test(Cr):!1},se=function(){var ht=I();return ht&&(/iPad|iPhone|iPod/.test(ht.platform)||ht.platform==="MacIntel"&&ht.maxTouchPoints>1)&&!window.MSStream},B=function(){return E("iPad")},De=function(){return E("iPhone")},$e=function(){return E("iPod")},be=function(){return T.major},Ne=function(){return T.version},Z=function(){return z.version?z.version:"none"},Xe=function(){return z.name?z.name:"none"},tr=function(){return T.name},Dr=function(){return S.vendor?S.vendor:"none"},Ri=function(){return S.model?S.model:"none"},Qi=function(){return x.name},Pi=function(){return x.version},Yi=function(){return v},Fi=function(){return S.type},Vi=qt(),Bi=Ht(),Wi=mt(),rr=H()||B(),$i=b(),ut=Wt()||B(),Hi=ft(),Zi=nt()||B(),Gi=$t(),Ki=er(),Ji=y(),Xi=w()||B(),qi=_(),To=Q(),Ao=ie(),Eo=he(),zr=Ve(),en=Z(),tn=Xe(),rn=be(),mo=Ne(),nn=tr(),on=Dr(),sn=Ri(),jo=Qi(),wo=Pi(),So=Yi(),Oo=L()||Dt(),an=V(),_o=Fi(),vo=se(),xo=B(),zo=De(),Co=$e(),bo=J(),Lo=Dt(),ko=L(),Uo=jt(),Ro=ct(),wt=N(S.type);function Qo(){var ne=wt.isBrowser,ht=wt.isMobile,Cr=wt.isTablet,cn=wt.isSmartTV,un=wt.isConsole,ln=wt.isWearable;if(ne)return d(ne,T,x,z,v);if(cn)return M(cn,x,z,v);if(un)return D(un,x,z,v);if(ht||Cr)return u(wt,S,z,v);if(ln)return f(ln,x,z,v)}e.exports={deviceDetect:Qo,isSmartTV:Vi,isConsole:Bi,isWearable:Wi,isMobileSafari:rr,isChromium:$i,isMobile:ut,isMobileOnly:Hi,isTablet:Zi,isBrowser:Gi,isAndroid:Ki,isWinPhone:Ji,isIOS:Xi,isChrome:qi,isFirefox:To,isSafari:Ao,isOpera:Eo,isIE:zr,osVersion:en,osName:tn,fullBrowserVersion:rn,browserVersion:mo,browserName:nn,mobileVendor:on,mobileModel:sn,engineName:jo,engineVersion:wo,getUA:So,isEdge:Oo,isYandex:an,deviceType:_o,isIOS13:vo,isIPad13:xo,isIPhone13:zo,isIPod13:Co,isElectron:bo,isEdgeChromium:Lo,isLegacyEdge:ko,isWindows:Uo,isMacOs:Ro}}),(function(e,r,i){var n;/*!
|
|
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(o,s){var a="0.7.18",l="",d="?",p="function",f="undefined",c="object",g="string",w="major",h="model",m="name",C="type",S="vendor",b="version",O="architecture",k="console",N="mobile",R="tablet",le="smarttv",me="wearable",ce="embedded",Z={extend:function(ee,z){var U={};for(var Y in ee)z[Y]&&z[Y].length%2===0?U[Y]=z[Y].concat(ee[Y]):U[Y]=ee[Y];return U},has:function(ee,z){return typeof ee=="string"?z.toLowerCase().indexOf(ee.toLowerCase())!==-1:!1},lowerize:function(ee){return ee.toLowerCase()},major:function(ee){return typeof ee===g?ee.replace(/[^\d\.]/g,"").split(".")[0]:s},trim:function(ee){return ee.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},H={rgx:function(ee,z){for(var U=0,Y,te,Te,re,$,Q;U<z.length&&!$;){var Ke=z[U],Je=z[U+1];for(Y=te=0;Y<Ke.length&&!$;)if($=Ke[Y++].exec(ee),$)for(Te=0;Te<Je.length;Te++)Q=$[++te],re=Je[Te],typeof re===c&&re.length>0?re.length==2?typeof re[1]==p?this[re[0]]=re[1].call(this,Q):this[re[0]]=re[1]:re.length==3?typeof re[1]===p&&!(re[1].exec&&re[1].test)?this[re[0]]=Q?re[1].call(this,Q,re[2]):s:this[re[0]]=Q?Q.replace(re[1],re[2]):s:re.length==4&&(this[re[0]]=Q?re[3].call(this,Q.replace(re[1],re[2])):s):this[re]=Q||s;U+=2}},str:function(ee,z){for(var U in z)if(typeof z[U]===c&&z[U].length>0){for(var Y=0;Y<z[U].length;Y++)if(Z.has(z[U][Y],ee))return U===d?s:U}else if(Z.has(z[U],ee))return U===d?s:U;return ee}},K={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"}}}},fe={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[m,b],[/(opios)[\/\s]+([\w\.]+)/i],[[m,"Opera Mini"],b],[/\s(opr)\/([\w\.]+)/i],[[m,"Opera"],b],[/(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,b],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[m,"IE"],b],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[m,"Edge"],b],[/(yabrowser)\/([\w\.]+)/i],[[m,"Yandex"],b],[/(puffin)\/([\w\.]+)/i],[[m,"Puffin"],b],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[m,"UCBrowser"],b],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],b],[/(micromessenger)\/([\w\.]+)/i],[[m,"WeChat"],b],[/(qqbrowserlite)\/([\w\.]+)/i],[m,b],[/(QQ)\/([\d\.]+)/i],[m,b],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[m,b],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[m,b],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[m,b],[/(MetaSr)[\/\s]?([\w\.]+)/i],[m],[/(LBBROWSER)/i],[m],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[b,[m,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[b,[m,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[b,[m,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[m,/(.+)/,"$1 WebView"],b],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[m,/(.+(?:g|us))(.+)/,"$1 $2"],b],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[b,[m,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[m,b],[/(dolfin)\/([\w\.]+)/i],[[m,"Dolphin"],b],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[m,"Chrome"],b],[/(coast)\/([\w\.]+)/i],[[m,"Opera Coast"],b],[/fxios\/([\w\.-]+)/i],[b,[m,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[b,[m,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[b,m],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[m,"GSA"],b],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[m,[b,H.str,K.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[m,b],[/(navigator|netscape)\/([\w\.-]+)/i],[[m,"Netscape"],b],[/(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,b]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[O,"amd64"]],[/(ia32(?=;))/i],[[O,Z.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[O,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[O,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[O,/ower/,"",Z.lowerize]],[/(sun4\w)[;\)]/i],[[O,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[O,Z.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[h,S,[C,R]],[/applecoremedia\/[\w\.]+ \((ipad)/],[h,[S,"Apple"],[C,R]],[/(apple\s{0,1}tv)/i],[[h,"Apple TV"],[S,"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],[S,h,[C,R]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[h,[S,"Amazon"],[C,R]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[h,H.str,K.device.amazon.model],[S,"Amazon"],[C,N]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[h,S,[C,N]],[/\((ip[honed|\s\w*]+);/i],[h,[S,"Apple"],[C,N]],[/(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],[S,h,[C,N]],[/\(bb10;\s(\w+)/i],[h,[S,"BlackBerry"],[C,N]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[h,[S,"Asus"],[C,R]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[S,"Sony"],[h,"Xperia Tablet"],[C,R]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[h,[S,"Sony"],[C,N]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[S,h,[C,k]],[/android.+;\s(shield)\sbuild/i],[h,[S,"Nvidia"],[C,k]],[/(playstation\s[34portablevi]+)/i],[h,[S,"Sony"],[C,k]],[/(sprint\s(\w+))/i],[[S,H.str,K.device.sprint.vendor],[h,H.str,K.device.sprint.model],[C,N]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[S,h,[C,R]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[S,[h,/_/g," "],[C,N]],[/(nexus\s9)/i],[h,[S,"HTC"],[C,R]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[h,[S,"Huawei"],[C,N]],[/(microsoft);\s(lumia[\s\w]+)/i],[S,h,[C,N]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[h,[S,"Microsoft"],[C,k]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[S,"Microsoft"],[C,N]],[/\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],[h,[S,"Motorola"],[C,N]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[h,[S,"Motorola"],[C,R]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[S,Z.trim],[h,Z.trim],[C,le]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[S,"Samsung"],[C,le]],[/\(dtv[\);].+(aquos)/i],[h,[S,"Sharp"],[C,le]],[/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],[[S,"Samsung"],h,[C,R]],[/smart-tv.+(samsung)/i],[S,[C,le],h],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[S,"Samsung"],h,[C,N]],[/sie-(\w*)/i],[h,[S,"Siemens"],[C,N]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[S,"Nokia"],h,[C,N]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[h,[S,"Acer"],[C,R]],[/android.+([vl]k\-?\d{3})\s+build/i],[h,[S,"LG"],[C,R]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[S,"LG"],h,[C,R]],[/(lg) netcast\.tv/i],[S,h,[C,le]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[h,[S,"LG"],[C,N]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[h,[S,"Lenovo"],[C,R]],[/linux;.+((jolla));/i],[S,h,[C,N]],[/((pebble))app\/[\d\.]+\s/i],[S,h,[C,me]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[S,h,[C,N]],[/crkey/i],[[h,"Chromecast"],[S,"Google"]],[/android.+;\s(glass)\s\d/i],[h,[S,"Google"],[C,me]],[/android.+;\s(pixel c)\s/i],[h,[S,"Google"],[C,R]],[/android.+;\s(pixel xl|pixel)\s/i],[h,[S,"Google"],[C,N]],[/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],[[h,/_/g," "],[S,"Xiaomi"],[C,N]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[h,/_/g," "],[S,"Xiaomi"],[C,R]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[h,[S,"Meizu"],[C,R]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[h,[S,"OnePlus"],[C,N]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[h,[S,"RCA"],[C,R]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[h,[S,"Dell"],[C,R]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[h,[S,"Verizon"],[C,R]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[S,"Barnes & Noble"],h,[C,R]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[h,[S,"NuVision"],[C,R]],[/android.+;\s(k88)\sbuild/i],[h,[S,"ZTE"],[C,R]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[h,[S,"Swiss"],[C,N]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[h,[S,"Swiss"],[C,R]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[h,[S,"Zeki"],[C,R]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[S,"Dragon Touch"],h,[C,R]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[h,[S,"Insignia"],[C,R]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[h,[S,"NextBook"],[C,R]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[S,"Voice"],h,[C,N]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[S,"LvTel"],h,[C,N]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[h,[S,"Envizen"],[C,R]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[S,h,[C,R]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[h,[S,"MachSpeed"],[C,R]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[S,h,[C,R]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[h,[S,"Rotor"],[C,R]],[/android.+(KS(.+))\s+build/i],[h,[S,"Amazon"],[C,R]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[S,h,[C,R]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[C,Z.lowerize],S,h],[/(android[\w\.\s\-]{0,9});.+build/i],[h,[S,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[b,[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,b],[/rv\:([\w\.]{1,9}).+(gecko)/i],[b,m]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[m,b],[/(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,[b,H.str,K.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[m,"Windows"],[b,H.str,K.os.windows.version]],[/\((bb)(10);/i],[[m,"BlackBerry"],b],[/(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,b],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[m,"Symbian"],b],[/\((series40);/i],[m],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[m,"Firefox OS"],b],[/(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,b],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[m,"Chromium OS"],b],[/(sunos)\s?([\w\.\d]*)/i],[[m,"Solaris"],b],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[m,b],[/(haiku)\s(\w+)/i],[m,b],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[b,/_/g,"."],[m,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[m,"Mac OS"],[b,/_/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,b]]},de=function(ee,z){if(typeof ee=="object"&&(z=ee,ee=s),!(this instanceof de))return new de(ee,z).getResult();var U=ee||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:l),Y=z?Z.extend(fe,z):fe;return this.getBrowser=function(){var te={name:s,version:s};return H.rgx.call(te,U,Y.browser),te.major=Z.major(te.version),te},this.getCPU=function(){var te={architecture:s};return H.rgx.call(te,U,Y.cpu),te},this.getDevice=function(){var te={vendor:s,model:s,type:s};return H.rgx.call(te,U,Y.device),te},this.getEngine=function(){var te={name:s,version:s};return H.rgx.call(te,U,Y.engine),te},this.getOS=function(){var te={name:s,version:s};return H.rgx.call(te,U,Y.os),te},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(te){return U=te,this},this};de.VERSION=a,de.BROWSER={NAME:m,MAJOR:w,VERSION:b},de.CPU={ARCHITECTURE:O},de.DEVICE={MODEL:h,VENDOR:S,TYPE:C,CONSOLE:k,MOBILE:N,SMARTTV:le,TABLET:R,WEARABLE:me,EMBEDDED:ce},de.ENGINE={NAME:m,VERSION:b},de.OS={NAME:m,VERSION:b},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!==s&&(e.exports=i)):o&&(o.UAParser=de);var ve=o&&(o.jQuery||o.Zepto);if(typeof ve!==f){var ye=new de;ve.ua=ye.getResult(),ve.ua.get=function(){return ye.getUA()},ve.ua.set=function(ee){ye.setUA(ee);var z=ye.getResult();for(var U in z)ve.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 C=1;C<arguments.length;C++){var S=arguments[C];for(var b in S)Object.prototype.hasOwnProperty.call(S,b)&&(m[b]=S[b])}return m},o=n(0),s=o.DEVICE_TYPES,a=o.defaultData,l=function(C){switch(C){case s.MOBILE:return{isMobile:!0};case s.TABLET:return{isTablet:!0};case s.SMART_TV:return{isSmartTV:!0};case s.CONSOLE:return{isConsole:!0};case s.WEARABLE:return{isWearable:!0};case s.BROWSER:return{isBrowser:!0};default:return a}},d=function(C,S,b,O,k){return{isBrowser:C,browserMajorVersion:S.major,browserFullVersion:S.version,browserName:S.name,engineName:b.name||!1,engineVersion:b.version,osName:O.name,osVersion:O.version,userAgent:k}},p=function(C,S,b,O){return i({},C,{vendor:S.vendor,model:S.model,os:b.name,osVersion:b.version,ua:O})},f=function(C,S,b,O){return{isSmartTV:C,engineName:S.name,engineVersion:S.version,osName:b.name,osVersion:b.version,userAgent:O}},c=function(C,S,b,O){return{isConsole:C,engineName:S.name,engineVersion:S.version,osName:b.name,osVersion:b.version,userAgent:O}},g=function(C,S,b,O){return{isWearable:C,engineName:S.name,engineVersion:S.version,osName:b.name,osVersion:b.version,userAgent:O}},w=r.getNavigatorInstance=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},h=r.isIOS13Check=function(C){var S=w();return S&&S.platform&&(S.platform.indexOf(C)!==-1||S.platform==="MacIntel"&&S.maxTouchPoints>1&&!window.MSStream)};e.exports={checkType:l,broPayload:d,mobilePayload:p,stvPayload:f,consolePayload:c,wearPayload:g,getNavigatorInstance:w,isIOS13Check:h}})])})(vo)),vo.exports}var qu=Gu(),Zu=Object.defineProperty,mr=(t,e,r,n)=>{for(var i=void 0,o=t.length-1,s;o>=0;o--)(s=t[o])&&(i=s(e,r,i)||i);return i&&Zu(e,r,i),i};const yo=class yo extends Br{constructor(){super(...arguments),this._currentProgressElement=null,this._currentScreenElement=null,this._currentScreenModuleId="",this._currentScreenConfig=null,this.orientation=new Ku(this),this.store=He.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.nonce=this.store.nonce,this._listenerFromModule=(e,r)=>{this.store.listener({eventType:Hr.MESSAGE,message:r,module:e})},this._isProcessingCallback=e=>{this.store.setIsProcessing(e)},this._performFromModule=(e,r)=>{this.store.setIsProcessing(!1),this.store.pushStepWaitNextStepAndSet(e,r)}}connectedCallback(){super.connectedCallback(),this.unsubscribeFromStore=He.subscribe(e=>{this.currentScreenConfig=e.currentScreenConfig,this.processingScreenFromWorkflow=e.processingTransformedTemplate,this.isProcessing=e.isProcessing,this.loadedModules=e.externalModules,this.modulesConfig=e.modulesConfig,this.nonce=e.nonce})}_processingScreen(){const e=this.loadedModules.find(n=>n.supportedTemplates.includes("PROGRESS"));if(!e||!this.processingScreenFromWorkflow)return wi`Processing...`;const r={perform:this._performFromModule,moduleProps:X(T({},this.processingScreenFromWorkflow),{templateId:"PROGRESS"}),modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback};return this._currentProgressElement||(this._currentProgressElement=Xa(e.id,r)),this._currentProgressElement}_isTheSameModuleAndScreen(e){return this._currentScreenModuleId===e.id&&JSON.stringify(structuredClone(this._currentScreenConfig))===JSON.stringify(structuredClone(this.currentScreenConfig))}_currentScreen(){if(!this.currentScreenConfig)return ke;const e=this.loadedModules.find(n=>n.supportedTemplates.includes(this.currentScreenConfig.templateId));if(!e)return ke;const r={perform:this._performFromModule,moduleProps:this.currentScreenConfig,modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback,nonce:this.nonce};return(!this._currentScreenElement||!this._isTheSameModuleAndScreen(e))&&(this._currentScreenElement=Xa(e.id,r),this._currentScreenModuleId=e.id,this._currentScreenConfig=this.currentScreenConfig),this._currentScreenElement}get version(){return`${"3.2.270-nightly".trim()}`}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.unsubscribeFromStore)==null||e.call(this),Xo.clearLogs()}render(){return!this.currentScreenConfig&&!this.processingScreenFromWorkflow?null:wi`<div
|
|
116
|
+
*/(function(o,s){var a="0.7.18",c="",l="?",N="function",d="undefined",u="object",f="string",D="major",M="model",I="name",E="type",A="vendor",T="version",S="architecture",x="console",z="mobile",v="tablet",ae="smarttv",fe="wearable",ce="embedded",G={extend:function(ee,W){var U={};for(var K in ee)W[K]&&W[K].length%2===0?U[K]=W[K].concat(ee[K]):U[K]=ee[K];return U},has:function(ee,W){return typeof ee=="string"?W.toLowerCase().indexOf(ee.toLowerCase())!==-1:!1},lowerize:function(ee){return ee.toLowerCase()},major:function(ee){return typeof ee===f?ee.replace(/[^\d\.]/g,"").split(".")[0]:s},trim:function(ee){return ee.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},F={rgx:function(ee,W){for(var U=0,K,te,je,re,P,q;U<W.length&&!P;){var We=W[U],Je=W[U+1];for(K=te=0;K<We.length&&!P;)if(P=We[K++].exec(ee),P)for(je=0;je<Je.length;je++)q=P[++te],re=Je[je],typeof re===u&&re.length>0?re.length==2?typeof re[1]==N?this[re[0]]=re[1].call(this,q):this[re[0]]=re[1]:re.length==3?typeof re[1]===N&&!(re[1].exec&&re[1].test)?this[re[0]]=q?re[1].call(this,q,re[2]):s:this[re[0]]=q?q.replace(re[1],re[2]):s:re.length==4&&(this[re[0]]=q?re[3].call(this,q.replace(re[1],re[2])):s):this[re]=q||s;U+=2}},str:function(ee,W){for(var U in W)if(typeof W[U]===u&&W[U].length>0){for(var K=0;K<W[U].length;K++)if(G.has(W[U][K],ee))return U===l?s:U}else if(G.has(W[U],ee))return U===l?s:U;return ee}},$={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"}}}},Me={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[I,T],[/(opios)[\/\s]+([\w\.]+)/i],[[I,"Opera Mini"],T],[/\s(opr)\/([\w\.]+)/i],[[I,"Opera"],T],[/(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],[I,T],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[I,"IE"],T],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[I,"Edge"],T],[/(yabrowser)\/([\w\.]+)/i],[[I,"Yandex"],T],[/(puffin)\/([\w\.]+)/i],[[I,"Puffin"],T],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[I,"UCBrowser"],T],[/(comodo_dragon)\/([\w\.]+)/i],[[I,/_/g," "],T],[/(micromessenger)\/([\w\.]+)/i],[[I,"WeChat"],T],[/(qqbrowserlite)\/([\w\.]+)/i],[I,T],[/(QQ)\/([\d\.]+)/i],[I,T],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[I,T],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[I,T],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[I,T],[/(MetaSr)[\/\s]?([\w\.]+)/i],[I],[/(LBBROWSER)/i],[I],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[T,[I,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[T,[I,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[T,[I,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[I,/(.+)/,"$1 WebView"],T],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[I,/(.+(?:g|us))(.+)/,"$1 $2"],T],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[T,[I,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[I,T],[/(dolfin)\/([\w\.]+)/i],[[I,"Dolphin"],T],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[I,"Chrome"],T],[/(coast)\/([\w\.]+)/i],[[I,"Opera Coast"],T],[/fxios\/([\w\.-]+)/i],[T,[I,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[T,[I,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[T,I],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[I,"GSA"],T],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[I,[T,F.str,$.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[I,T],[/(navigator|netscape)\/([\w\.-]+)/i],[[I,"Netscape"],T],[/(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],[I,T]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[S,"amd64"]],[/(ia32(?=;))/i],[[S,G.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[S,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[S,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[S,/ower/,"",G.lowerize]],[/(sun4\w)[;\)]/i],[[S,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[S,G.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[M,A,[E,v]],[/applecoremedia\/[\w\.]+ \((ipad)/],[M,[A,"Apple"],[E,v]],[/(apple\s{0,1}tv)/i],[[M,"Apple TV"],[A,"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],[A,M,[E,v]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[M,[A,"Amazon"],[E,v]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[M,F.str,$.device.amazon.model],[A,"Amazon"],[E,z]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[M,A,[E,z]],[/\((ip[honed|\s\w*]+);/i],[M,[A,"Apple"],[E,z]],[/(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],[A,M,[E,z]],[/\(bb10;\s(\w+)/i],[M,[A,"BlackBerry"],[E,z]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[M,[A,"Asus"],[E,v]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[A,"Sony"],[M,"Xperia Tablet"],[E,v]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[M,[A,"Sony"],[E,z]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[A,M,[E,x]],[/android.+;\s(shield)\sbuild/i],[M,[A,"Nvidia"],[E,x]],[/(playstation\s[34portablevi]+)/i],[M,[A,"Sony"],[E,x]],[/(sprint\s(\w+))/i],[[A,F.str,$.device.sprint.vendor],[M,F.str,$.device.sprint.model],[E,z]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[A,M,[E,v]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[A,[M,/_/g," "],[E,z]],[/(nexus\s9)/i],[M,[A,"HTC"],[E,v]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[M,[A,"Huawei"],[E,z]],[/(microsoft);\s(lumia[\s\w]+)/i],[A,M,[E,z]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[M,[A,"Microsoft"],[E,x]],[/(kin\.[onetw]{3})/i],[[M,/\./g," "],[A,"Microsoft"],[E,z]],[/\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],[M,[A,"Motorola"],[E,z]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[M,[A,"Motorola"],[E,v]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[A,G.trim],[M,G.trim],[E,ae]],[/hbbtv.+maple;(\d+)/i],[[M,/^/,"SmartTV"],[A,"Samsung"],[E,ae]],[/\(dtv[\);].+(aquos)/i],[M,[A,"Sharp"],[E,ae]],[/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],[[A,"Samsung"],M,[E,v]],[/smart-tv.+(samsung)/i],[A,[E,ae],M],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[A,"Samsung"],M,[E,z]],[/sie-(\w*)/i],[M,[A,"Siemens"],[E,z]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[A,"Nokia"],M,[E,z]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[M,[A,"Acer"],[E,v]],[/android.+([vl]k\-?\d{3})\s+build/i],[M,[A,"LG"],[E,v]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[A,"LG"],M,[E,v]],[/(lg) netcast\.tv/i],[A,M,[E,ae]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[M,[A,"LG"],[E,z]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[M,[A,"Lenovo"],[E,v]],[/linux;.+((jolla));/i],[A,M,[E,z]],[/((pebble))app\/[\d\.]+\s/i],[A,M,[E,fe]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[A,M,[E,z]],[/crkey/i],[[M,"Chromecast"],[A,"Google"]],[/android.+;\s(glass)\s\d/i],[M,[A,"Google"],[E,fe]],[/android.+;\s(pixel c)\s/i],[M,[A,"Google"],[E,v]],[/android.+;\s(pixel xl|pixel)\s/i],[M,[A,"Google"],[E,z]],[/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],[[M,/_/g," "],[A,"Xiaomi"],[E,z]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[M,/_/g," "],[A,"Xiaomi"],[E,v]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[M,[A,"Meizu"],[E,v]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[M,[A,"OnePlus"],[E,z]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[M,[A,"RCA"],[E,v]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[M,[A,"Dell"],[E,v]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[M,[A,"Verizon"],[E,v]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[A,"Barnes & Noble"],M,[E,v]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[M,[A,"NuVision"],[E,v]],[/android.+;\s(k88)\sbuild/i],[M,[A,"ZTE"],[E,v]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[M,[A,"Swiss"],[E,z]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[M,[A,"Swiss"],[E,v]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[M,[A,"Zeki"],[E,v]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[A,"Dragon Touch"],M,[E,v]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[M,[A,"Insignia"],[E,v]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[M,[A,"NextBook"],[E,v]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[A,"Voice"],M,[E,z]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[A,"LvTel"],M,[E,z]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[M,[A,"Envizen"],[E,v]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[A,M,[E,v]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[M,[A,"MachSpeed"],[E,v]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[A,M,[E,v]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[M,[A,"Rotor"],[E,v]],[/android.+(KS(.+))\s+build/i],[M,[A,"Amazon"],[E,v]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[A,M,[E,v]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[E,G.lowerize],A,M],[/(android[\w\.\s\-]{0,9});.+build/i],[M,[A,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[T,[I,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[I,T],[/rv\:([\w\.]{1,9}).+(gecko)/i],[T,I]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[I,T],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[I,[T,F.str,$.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[I,"Windows"],[T,F.str,$.os.windows.version]],[/\((bb)(10);/i],[[I,"BlackBerry"],T],[/(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],[I,T],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[I,"Symbian"],T],[/\((series40);/i],[I],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[I,"Firefox OS"],T],[/(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],[I,T],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[I,"Chromium OS"],T],[/(sunos)\s?([\w\.\d]*)/i],[[I,"Solaris"],T],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[I,T],[/(haiku)\s(\w+)/i],[I,T],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[T,/_/g,"."],[I,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[I,"Mac OS"],[T,/_/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],[I,T]]},ue=function(ee,W){if(typeof ee=="object"&&(W=ee,ee=s),!(this instanceof ue))return new ue(ee,W).getResult();var U=ee||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:c),K=W?G.extend(Me,W):Me;return this.getBrowser=function(){var te={name:s,version:s};return F.rgx.call(te,U,K.browser),te.major=G.major(te.version),te},this.getCPU=function(){var te={architecture:s};return F.rgx.call(te,U,K.cpu),te},this.getDevice=function(){var te={vendor:s,model:s,type:s};return F.rgx.call(te,U,K.device),te},this.getEngine=function(){var te={name:s,version:s};return F.rgx.call(te,U,K.engine),te},this.getOS=function(){var te={name:s,version:s};return F.rgx.call(te,U,K.os),te},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(te){return U=te,this},this};ue.VERSION=a,ue.BROWSER={NAME:I,MAJOR:D,VERSION:T},ue.CPU={ARCHITECTURE:S},ue.DEVICE={MODEL:M,VENDOR:A,TYPE:E,CONSOLE:x,MOBILE:z,SMARTTV:ae,TABLET:v,WEARABLE:fe,EMBEDDED:ce},ue.ENGINE={NAME:I,VERSION:T},ue.OS={NAME:I,VERSION:T},typeof r!==d?(typeof e!==d&&e.exports&&(r=e.exports=ue),r.UAParser=ue):i(3)?(n=(function(){return ue}).call(r,i,r,e),n!==s&&(e.exports=n)):o&&(o.UAParser=ue);var ye=o&&(o.jQuery||o.Zepto);if(typeof ye!==d){var Te=new ue;ye.ua=Te.getResult(),ye.ua.get=function(){return Te.getUA()},ye.ua.set=function(ee){Te.setUA(ee);var W=Te.getResult();for(var U in W)ye.ua[U]=W[U]}}})(typeof window=="object"?window:this)}),(function(e,r){(function(i){e.exports=i}).call(r,{})}),(function(e,r,i){Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(I){for(var E=1;E<arguments.length;E++){var A=arguments[E];for(var T in A)Object.prototype.hasOwnProperty.call(A,T)&&(I[T]=A[T])}return I},o=i(0),s=o.DEVICE_TYPES,a=o.defaultData,c=function(E){switch(E){case s.MOBILE:return{isMobile:!0};case s.TABLET:return{isTablet:!0};case s.SMART_TV:return{isSmartTV:!0};case s.CONSOLE:return{isConsole:!0};case s.WEARABLE:return{isWearable:!0};case s.BROWSER:return{isBrowser:!0};default:return a}},l=function(E,A,T,S,x){return{isBrowser:E,browserMajorVersion:A.major,browserFullVersion:A.version,browserName:A.name,engineName:T.name||!1,engineVersion:T.version,osName:S.name,osVersion:S.version,userAgent:x}},N=function(E,A,T,S){return n({},E,{vendor:A.vendor,model:A.model,os:T.name,osVersion:T.version,ua:S})},d=function(E,A,T,S){return{isSmartTV:E,engineName:A.name,engineVersion:A.version,osName:T.name,osVersion:T.version,userAgent:S}},u=function(E,A,T,S){return{isConsole:E,engineName:A.name,engineVersion:A.version,osName:T.name,osVersion:T.version,userAgent:S}},f=function(E,A,T,S){return{isWearable:E,engineName:A.name,engineVersion:A.version,osName:T.name,osVersion:T.version,userAgent:S}},D=r.getNavigatorInstance=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},M=r.isIOS13Check=function(E){var A=D();return A&&A.platform&&(A.platform.indexOf(E)!==-1||A.platform==="MacIntel"&&A.maxTouchPoints>1&&!window.MSStream)};e.exports={checkType:c,broPayload:l,mobilePayload:N,stvPayload:d,consolePayload:u,wearPayload:f,getNavigatorInstance:D,isIOS13Check:M}})])})(yo)),yo.exports}var md=Ed(),jd=Object.defineProperty,fr=(t,e,r,i)=>{for(var n=void 0,o=t.length-1,s;o>=0;o--)(s=t[o])&&(n=s(e,r,n)||n);return n&&jd(e,r,n),n};const po=class po extends Yr{constructor(){super(...arguments),this._currentProgressElement=null,this._currentScreenElement=null,this._currentScreenModuleId="",this._currentScreenConfig=null,this.orientation=new Ad(this),this.store=Fe.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.nonce=this.store.nonce,this._listenerFromModule=(e,r)=>{this.store.listener({eventType:Fr.MESSAGE,message:r,module:e})},this._isProcessingCallback=e=>{this.store.setIsProcessing(e)},this._performFromModule=(e,r)=>{this.store.setIsProcessing(!1),this.store.pushStepWaitNextStepAndSet(e,r)}}connectedCallback(){super.connectedCallback(),this.unsubscribeFromStore=Fe.subscribe(e=>{this.currentScreenConfig=e.currentScreenConfig,this.processingScreenFromWorkflow=e.processingTransformedTemplate,this.isProcessing=e.isProcessing,this.loadedModules=e.externalModules,this.modulesConfig=e.modulesConfig,this.nonce=e.nonce})}_processingScreen(){const e=this.loadedModules.find(i=>i.supportedTemplates.includes("PROGRESS"));if(!e||!this.processingScreenFromWorkflow)return hn`Processing...`;const r={perform:this._performFromModule,moduleProps:X(j({},this.processingScreenFromWorkflow),{templateId:"PROGRESS"}),modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback};return this._currentProgressElement||(this._currentProgressElement=Ja(e.id,r)),this._currentProgressElement}_isTheSameModuleAndScreen(e){return this._currentScreenModuleId===e.id&&JSON.stringify(structuredClone(this._currentScreenConfig))===JSON.stringify(structuredClone(this.currentScreenConfig))}_currentScreen(){if(!this.currentScreenConfig)return xe;const e=this.loadedModules.find(i=>i.supportedTemplates.includes(this.currentScreenConfig.templateId));if(!e)return xe;const r={perform:this._performFromModule,moduleProps:this.currentScreenConfig,modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback,nonce:this.nonce};return(!this._currentScreenElement||!this._isTheSameModuleAndScreen(e))&&(this._currentScreenElement=Ja(e.id,r),this._currentScreenModuleId=e.id,this._currentScreenConfig=this.currentScreenConfig),this._currentScreenElement}get version(){return`${"3.2.272-nightly".trim()}`}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.unsubscribeFromStore)==null||e.call(this),Xo.clearLogs()}render(){return!this.currentScreenConfig&&!this.processingScreenFromWorkflow?null:hn`<div
|
|
117
117
|
part="idv"
|
|
118
118
|
class="idv"
|
|
119
|
-
data-device="${
|
|
120
|
-
data-direction="${
|
|
119
|
+
data-device="${md.isMobile&&this.orientation.isPortrait?"mobile":"desktop"}"
|
|
120
|
+
data-direction="${qo.Ltr}"
|
|
121
121
|
>
|
|
122
122
|
<div class="container">
|
|
123
|
-
${this.isProcessing?
|
|
123
|
+
${this.isProcessing?hn`<div class="processing-overlay">${this._processingScreen()}</div>`:""}
|
|
124
124
|
${this._currentScreen()}
|
|
125
125
|
</div>
|
|
126
|
-
</div>`}};
|
|
126
|
+
</div>`}};po.styles=[kc];let It=po;fr([ar()],It.prototype,"store"),fr([ar()],It.prototype,"currentScreenConfig"),fr([ar()],It.prototype,"processingScreenFromWorkflow"),fr([ar()],It.prototype,"isProcessing"),fr([ar()],It.prototype,"loadedModules"),fr([ar()],It.prototype,"modulesConfig"),fr([ar()],It.prototype,"nonce");class wd{initialize(e){return k(this,null,function*(){return Fe.getState().initialize(e)})}configure(e){return k(this,null,function*(){return"userName"in e?yield Fe.getState().configureByUserPass(e):"apiKey"in e?yield Fe.getState().configureByApiKey(e):"url"in e&&Object.keys(e).length===1?yield Fe.getState().configureWithUrl(e.url):{error:new Pe({errorCode:Re.CONFIG_MISSED_OR_INVALID,message:"No valid config found"})}})}getWorkFlows(e){return k(this,null,function*(){return yield Fe.getState().getWorkflows(e)})}prepareWorkflow(r){return k(this,arguments,function*({workflowId:e}){return yield Fe.getState().prepareWorkflowAndPrepareUi(e)})}startWorkflow(e){return k(this,null,function*(){const i=Fe.getState().trackLocation?yield Fu():null;return new Promise(n=>{const o=l=>{n(l)},s=e==null?void 0:e.locale,a=e==null?void 0:e.metadata,c=Qu(s);Fe.getState().startNewSession({completion:o,locale:c,metadata:a,location:i}).then(l=>{l.error&&(Fe.getState().removeCurrentSessionDataLsAndStore(),o(l)),l.results&&(Fe.getState().removeCurrentSessionDataLsAndStore(),o(l)),Fe.getState().playWorkflow()})})})}deinitialize(){return k(this,null,function*(){return yield Fe.getState().deinitialize()})}get version(){return"3.2.272-nightly"}set nonce(e){Fe.getState().setNonce(e)}set eventListener(e){if(!e||typeof e!="function"){console.warn("IdvIntegrationService:: listener is not a function");return}Fe.getState().setListener(e)}set sessionRestoreMode(e){Fe.getState().setSessionRestoreMode(e)}}return window.customElements.get("idv-flow")||window.customElements.define("idv-flow",It),ge.BaseError=Ae,ge.BaseModule=ga,ge.ConnectionError=Ot,ge.DeinitializationError=Br,ge.IdvEventTypesEnum=Fr,ge.IdvIntegrationService=wd,ge.IdvServiceMessages=Er,ge.IdvWebComponent=It,ge.InitializeError=Vr,ge.PrepareWorkflowError=yt,ge.SessionError=ot,ge.StartSessionError=Kt,ge.WorkflowError=Be,ge.WorkflowPlatformError=pt,ge.registerModule=Na,Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"}),ge})({});
|