@regulaforensics/idv-capture-web 3.2.244-nightly → 3.2.250-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/index.d.ts +129 -108
- package/dist/main.iife.js +19 -19
- package/dist/main.js +3455 -3269
- package/package.json +1 -1
package/dist/main.iife.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
var RegulaIdv=(function(fe){"use strict";var
|
|
1
|
+
var RegulaIdv=(function(fe){"use strict";var p1=Object.defineProperty,_1=Object.defineProperties;var m1=Object.getOwnPropertyDescriptors;var ci=Object.getOwnPropertySymbols;var ul=Object.prototype.hasOwnProperty,fl=Object.prototype.propertyIsEnumerable;var dl=(fe,Ae,Ie)=>Ae in fe?p1(fe,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):fe[Ae]=Ie,I=(fe,Ae)=>{for(var Ie in Ae||(Ae={}))ul.call(Ae,Ie)&&dl(fe,Ie,Ae[Ie]);if(ci)for(var Ie of ci(Ae))fl.call(Ae,Ie)&&dl(fe,Ie,Ae[Ie]);return fe},Y=(fe,Ae)=>_1(fe,m1(Ae));var _r=(fe,Ae)=>{var Ie={};for(var qe in fe)ul.call(fe,qe)&&Ae.indexOf(qe)<0&&(Ie[qe]=fe[qe]);if(fe!=null&&ci)for(var qe of ci(fe))Ae.indexOf(qe)<0&&fl.call(fe,qe)&&(Ie[qe]=fe[qe]);return Ie};var U=(fe,Ae,Ie)=>new Promise((qe,Pr)=>{var un=Tt=>{try{Mr(Ie.next(Tt))}catch(mr){Pr(mr)}},di=Tt=>{try{Mr(Ie.throw(Tt))}catch(mr){Pr(mr)}},Mr=Tt=>Tt.done?qe(Tt.value):Promise.resolve(Tt.value).then(un,di);Mr((Ie=Ie.apply(fe,Ae)).next())});/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/var rl,nl,il
|
|
5
|
+
*/var Qa,el,tl,rl,nl,il;const Ae=globalThis,Ie=Ae.ShadowRoot&&(Ae.ShadyCSS===void 0||Ae.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qe=Symbol(),Pr=new WeakMap;let un=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==qe)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(Ie&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=Pr.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Pr.set(r,e))}return e}toString(){return this.cssText}};const di=t=>new un(typeof t=="string"?t:t+"",void 0,qe),Mr=(t,...e)=>{const r=t.length===1?t[0]:e.reduce(((n,i,o)=>n+(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.")})(i)+t[o+1]),t[0]);return new un(r,t,qe)},Tt=(t,e)=>{if(Ie)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(const r of e){const n=document.createElement("style"),i=Ae.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},mr=Ie?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return di(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:_l,defineProperty:ml,getOwnPropertyDescriptor:gl,getOwnPropertyNames:wl,getOwnPropertySymbols:vl,getPrototypeOf:yl}=Object,Kt=globalThis,Vo=Kt.trustedTypes,bl=Vo?Vo.emptyScript:"",ui=Kt.reactiveElementPolyfillSupport,Fr=(t,e)=>t,fn={toAttribute(t,e){switch(e){case Boolean:t=t?bl:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(n){r=null}}return r}},fi=(t,e)=>!_l(t,e),$o={attribute:!0,type:String,converter:fn,reflect:!1,useDefault:!1,hasChanged:fi};(Qa=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(el=Kt.litPropertyMetadata)!=null||(Kt.litPropertyMetadata=new WeakMap);let gr=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=$o){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&ml(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){var s;const{get:i,set:o}=(s=gl(this.prototype,e))!=null?s:{get(){return this[r]},set(a){this[r]=a}};return{get:i,set(a){const l=i==null?void 0:i.call(this);o==null||o.call(this,a),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var r;return(r=this.elementProperties.get(e))!=null?r:$o}static _$Ei(){if(this.hasOwnProperty(Fr("elementProperties")))return;const e=yl(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Fr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fr("properties"))){const r=this.properties,n=[...wl(r),...vl(r)];for(const i of n)this.createProperty(i,r[i])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)r.unshift(mr(i))}else e!==void 0&&r.push(mr(e));return r}static _$Eu(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise((r=>this.enableUpdating=r)),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach((r=>r(this)))}addController(e){var r,n;((r=this._$EO)!=null?r:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)==null||n.call(e))}removeController(e){var r;(r=this._$EO)==null||r.delete(e)}_$E_(){const e=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var r;const e=(r=this.shadowRoot)!=null?r:this.attachShadow(this.constructor.shadowRootOptions);return Tt(e,this.constructor.elementStyles),e}connectedCallback(){var e,r;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.forEach((n=>{var i;return(i=n.hostConnected)==null?void 0:i.call(n)}))}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach((r=>{var n;return(n=r.hostDisconnected)==null?void 0:n.call(r)}))}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$ET(e,r){var o;const n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){const s=(((o=n.converter)==null?void 0:o.toAttribute)!==void 0?n.converter:fn).toAttribute(r,n.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,r){var o,s,a;const n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const l=n.getPropertyOptions(i),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((o=l.converter)==null?void 0:o.fromAttribute)!==void 0?l.converter:fn;this._$Em=i;const _=d.fromAttribute(r,l.type);this[i]=(a=_!=null?_:(s=this._$Ej)==null?void 0:s.get(i))!=null?a:_,this._$Em=null}}requestUpdate(e,r,n){var i,o;if(e!==void 0){const s=this.constructor,a=this[e];if(n!=null||(n=s.getPropertyOptions(e)),!(((i=n.hasChanged)!=null?i:fi)(a,r)||n.useDefault&&n.reflect&&a===((o=this._$Ej)==null?void 0:o.get(e))&&!this.hasAttribute(s._$Eu(e,n))))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:n,reflect:i,wrapped:o},s){var a,l,d;n&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=s!=null?s:r)!=null?l:this[e]),o!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(r=void 0),this._$AL.set(e,r)),i===!0&&this._$Em!==e&&((d=this._$Eq)!=null?d:this._$Eq=new Set).add(e))}_$EP(){return U(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((n=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[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:l}=a,d=this[s];l!==!0||this._$AL.has(s)||d===void 0||this.C(s,void 0,a,d)}}let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(i=this._$EO)==null||i.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((n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach((r=>this._$ET(r,this[r])))),this._$EM()}updated(e){}firstUpdated(e){}};gr.elementStyles=[],gr.shadowRootOptions={mode:"open"},gr[Fr("elementProperties")]=new Map,gr[Fr("finalized")]=new Map,ui==null||ui({ReactiveElement:gr}),((tl=Kt.reactiveElementVersions)!=null?tl:Kt.reactiveElementVersions=[]).push("2.1.1");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const
|
|
14
|
-
\f\r]
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
13
|
+
*/const Ur=globalThis,hn=Ur.trustedTypes,Bo=hn?hn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ho="$lit$",Gt=`lit$${Math.random().toFixed(9).slice(2)}$`,Wo="?"+Gt,Cl=`<${Wo}>`,rr=document,Lr=()=>rr.createComment(""),Vr=t=>t===null||typeof t!="object"&&typeof t!="function",hi=Array.isArray,Sl=t=>hi(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",pi=`[
|
|
14
|
+
\f\r]`,$r=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jo=/-->/g,zo=/>/g,nr=RegExp(`>|${pi}(?:([^\\s"'>=/]+)(${pi}*=${pi}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ko=/'/g,Go=/"/g,qo=/^(?:script|style|textarea|title)$/i,El=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_i=El(1),wr=Symbol.for("lit-noChange"),Re=Symbol.for("lit-nothing"),Zo=new WeakMap,ir=rr.createTreeWalker(rr,129);function Yo(t,e){if(!hi(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bo!==void 0?Bo.createHTML(e):e}const Tl=(t,e)=>{const r=t.length-1,n=[];let i,o=e===2?"<svg>":e===3?"<math>":"",s=$r;for(let a=0;a<r;a++){const l=t[a];let d,_,h=-1,c=0;for(;c<l.length&&(s.lastIndex=c,_=s.exec(l),_!==null);)c=s.lastIndex,s===$r?_[1]==="!--"?s=jo:_[1]!==void 0?s=zo:_[2]!==void 0?(qo.test(_[2])&&(i=RegExp("</"+_[2],"g")),s=nr):_[3]!==void 0&&(s=nr):s===nr?_[0]===">"?(s=i!=null?i:$r,h=-1):_[1]===void 0?h=-2:(h=s.lastIndex-_[2].length,d=_[1],s=_[3]===void 0?nr:_[3]==='"'?Go:Ko):s===Go||s===Ko?s=nr:s===jo||s===zo?s=$r:(s=nr,i=void 0);const y=s===nr&&t[a+1].startsWith("/>")?" ":"";o+=s===$r?l+Cl:h>=0?(n.push(d),l.slice(0,h)+Ho+l.slice(h)+Gt+y):l+Gt+(h===-2?a:y)}return[Yo(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]};let mi=class hl{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0;const a=e.length-1,l=this.parts,[d,_]=Tl(e,r);if(this.el=hl.createElement(d,n),ir.currentNode=this.el.content,r===2||r===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=ir.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const h of i.getAttributeNames())if(h.endsWith(Ho)){const c=_[s++],y=i.getAttribute(h).split(Gt),g=/([.?@])?(.*)/.exec(c);l.push({type:1,index:o,name:g[2],strings:y,ctor:g[1]==="."?Ol:g[1]==="?"?Al:g[1]==="@"?xl:pn}),i.removeAttribute(h)}else h.startsWith(Gt)&&(l.push({type:6,index:o}),i.removeAttribute(h));if(qo.test(i.tagName)){const h=i.textContent.split(Gt),c=h.length-1;if(c>0){i.textContent=hn?hn.emptyScript:"";for(let y=0;y<c;y++)i.append(h[y],Lr()),ir.nextNode(),l.push({type:2,index:++o});i.append(h[c],Lr())}}}else if(i.nodeType===8)if(i.data===Wo)l.push({type:2,index:o});else{let h=-1;for(;(h=i.data.indexOf(Gt,h+1))!==-1;)l.push({type:7,index:o}),h+=Gt.length-1}o++}}static createElement(e,r){const n=rr.createElement("template");return n.innerHTML=e,n}};function vr(t,e,r=t,n){var s,a,l;if(e===wr)return e;let i=n!==void 0?(s=r._$Co)==null?void 0:s[n]:r._$Cl;const o=Vr(e)?void 0:e._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),o===void 0?i=void 0:(i=new o(t),i._$AT(t,r,n)),n!==void 0?((l=r._$Co)!=null?l:r._$Co=[])[n]=i:r._$Cl=i),i!==void 0&&(e=vr(t,i._$AS(t,e.values),i,n)),e}let Il=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 d;const{el:{content:r},parts:n}=this._$AD,i=((d=e==null?void 0:e.creationScope)!=null?d:rr).importNode(r,!0);ir.currentNode=i;let o=ir.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let _;l.type===2?_=new gi(o,o.nextSibling,this,e):l.type===1?_=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(_=new Rl(o,this,e)),this._$AV.push(_),l=n[++a]}s!==(l==null?void 0:l.index)&&(o=ir.nextNode(),s++)}return ir.currentNode=rr,i}p(e){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},gi=class pl{get _$AU(){var e,r;return(r=(e=this._$AM)==null?void 0:e._$AU)!=null?r:this._$Cv}constructor(e,r,n,i){var o;this.type=2,this._$AH=Re,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=(o=i==null?void 0:i.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=vr(this,e,r),Vr(e)?e===Re||e==null||e===""?(this._$AH!==Re&&this._$AR(),this._$AH=Re):e!==this._$AH&&e!==wr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Sl(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Re&&Vr(this._$AH)?this._$AA.nextSibling.data=e:this.T(rr.createTextNode(e)),this._$AH=e}$(e){var o;const{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=mi.createElement(Yo(n.h,n.h[0]),this.options)),n);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(r);else{const s=new Il(i,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=Zo.get(e.strings);return r===void 0&&Zo.set(e.strings,r=new mi(e)),r}k(e){hi(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,i=0;for(const o of e)i===r.length?r.push(n=new pl(this.O(Lr()),this.O(Lr()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,r);e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var r;this._$AM===void 0&&(this._$Cv=e,(r=this._$AP)==null||r.call(this,e))}},pn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,o){this.type=1,this._$AH=Re,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Re}_$AI(e,r=this,n,i){const o=this.strings;let s=!1;if(o===void 0)e=vr(this,e,r,0),s=!Vr(e)||e!==this._$AH&&e!==wr,s&&(this._$AH=e);else{const a=e;let l,d;for(e=o[0],l=0;l<o.length-1;l++)d=vr(this,a[n+l],r,l),d===wr&&(d=this._$AH[l]),s||(s=!Vr(d)||d!==this._$AH[l]),d===Re?e=Re:e!==Re&&(e+=(d!=null?d:"")+o[l+1]),this._$AH[l]=d}s&&!i&&this.j(e)}j(e){e===Re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},Ol=class extends pn{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Re?void 0:e}},Al=class extends pn{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Re)}},xl=class extends pn{constructor(e,r,n,i,o){super(e,r,n,i,o),this.type=5}_$AI(e,r=this){var s;if((e=(s=vr(this,e,r,0))!=null?s:Re)===wr)return;const n=this._$AH,i=e===Re&&n!==Re||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==Re&&(n===Re||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,n;typeof this._$AH=="function"?this._$AH.call((n=(r=this.options)==null?void 0:r.host)!=null?n:this.element,e):this._$AH.handleEvent(e)}},Rl=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){vr(this,e)}};const wi=Ur.litHtmlPolyfillSupport;wi==null||wi(mi,gi),((rl=Ur.litHtmlVersions)!=null?rl:Ur.litHtmlVersions=[]).push("3.3.1");const kl=(t,e,r)=>{var o,s;const n=(o=r==null?void 0:r.renderBefore)!=null?o:e;let i=n._$litPart$;if(i===void 0){const a=(s=r==null?void 0:r.renderBefore)!=null?s:null;n._$litPart$=i=new gi(e.insertBefore(Lr(),a),a,void 0,r!=null?r:{})}return i._$AI(t),i};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const
|
|
19
|
+
*/const or=globalThis;let Br=class extends gr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r,n;const e=super.createRenderRoot();return(n=(r=this.renderOptions).renderBefore)!=null||(r.renderBefore=e.firstChild),e}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=kl(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 wr}};Br._$litElement$=!0,Br.finalized=!0,(nl=or.litElementHydrateSupport)==null||nl.call(or,{LitElement:Br});const vi=or.litElementPolyfillSupport;vi==null||vi({LitElement:Br}),((il=or.litElementVersions)!=null?il:or.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 Nl={attribute:!0,type:String,converter:fn,reflect:!1,hasChanged:fi},Dl=(t=Nl,e,r)=>{const{kind:n,metadata:i}=r;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),n==="setter"&&((t=Object.create(t)).wrapped=!0),o.set(r.name,t),n==="accessor"){const{name:s}=r;return{set(a){const l=e.get.call(this);e.set.call(this,a),this.requestUpdate(s,l,t)},init(a){return a!==void 0&&this.C(s,void 0,t,a),a}}}if(n==="setter"){const{name:s}=r;return function(a){const l=this[s];e.call(this,a),this.requestUpdate(s,l,t)}}throw Error("Unsupported decorator location: "+n)};function Pl(t){return(e,r)=>typeof r=="object"?Dl(t,e,r):((n,i,o)=>{const s=i.hasOwnProperty(o);return i.constructor.createProperty(o,n),s?Object.getOwnPropertyDescriptor(i,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
|
|
28
|
-
`),r=new Blob([e],{type:"text/plain"}),n=window.URL.createObjectURL(r),i=document.createElement("a");i.download="log.txt",i.href=n,i.click(),window.URL.revokeObjectURL(n),this.clearLogs()}}const
|
|
27
|
+
*/function yr(t){return Pl(Y(I({},t),{state:!0,attribute:!1}))}class Ml{constructor(){this._domains=[],this._transports=[],this._logs=[],this._prevTime=0;try{if(!window.localStorage)return;const e=window.localStorage.getItem("logger");if(!e)return;const[r,n]=e.split(">");this._domains=r.split(","),n&&(this._transports=n.split(","))}catch(e){return}}create(e,r){return n=>{const i=Date.now(),o=new Date(i).toISOString();let s=0;if(this._prevTime&&(s=i-this._prevTime),this._prevTime=i,this._domains.includes(e)&&this._transports.includes("console")){const a=(r==null?void 0:r.color)||"blue";console.log("%c%s: %c%s %c+%dms",`color: ${a};`,`${o} ${e}`,"",n,`color: ${a};`,s)}this._logs.push(`${o} ${e}: ${n} +${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"}),n=window.URL.createObjectURL(r),i=document.createElement("a");i.download="log.txt",i.href=n,i.click(),window.URL.revokeObjectURL(n),this.clearLogs()}}const yi=new Ml,Fl=Mr`
|
|
29
29
|
*,
|
|
30
30
|
::after,
|
|
31
31
|
::before {
|
|
@@ -86,9 +86,9 @@ var RegulaIdv=(function(fe){"use strict";var m1=Object.defineProperty,_1=Object.
|
|
|
86
86
|
background: white;
|
|
87
87
|
z-index: 1000;
|
|
88
88
|
}
|
|
89
|
-
`,jr={MESSAGE:"MESSAGE",ERROR:"ERROR"},$l=Object.values({DATA:"DATA",QUESTIONARY:"QUESTIONARY"});var Js=(t=>(t.Rtl="rtl",t.Ltr="ltr",t))(Js||{}),br=(t=>(t.DID_START_SESSION="DID_START_SESSION",t.DID_END_SESSION="DID_END_SESSION",t.DID_START_RESTORE_SESSION="DID_START_RESTORE_SESSION",t.DID_CONTINUE_REMOTE_SESSION="DID_CONTINUE_REMOTE_SESSION",t))(br||{}),gt=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.CONNECTION_ISSUE=1]="CONNECTION_ISSUE",t[t.WORKFLOW_ISSUE=2]="WORKFLOW_ISSUE",t[t.INTERNAL_ISSUE=3]="INTERNAL_ISSUE",t[t.SCENARIO_IN_PROGRESS=4]="SCENARIO_IN_PROGRESS",t))(gt||{}),Ve=(t=>(t[t.CONNECTION_ISSUE=0]="CONNECTION_ISSUE",t[t.CONFIG_MISSED_OR_INVALID=1]="CONFIG_MISSED_OR_INVALID",t[t.INITIALIZATION_REQUIRED=2]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(Ve||{}),$e=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.PREPARED_REQUIRED=1]="PREPARED_REQUIRED",t[t.START_SESSION_FAILED=2]="START_SESSION_FAILED",t[t.UNKNOWN_STEP=3]="UNKNOWN_STEP",t[t.MODULES_ISSUE=4]="MODULES_ISSUE",t[t.ALREADY_STARTED=5]="ALREADY_STARTED",t[t.INTERNAL_ISSUE=6]="INTERNAL_ISSUE",t))($e||{}),zr=(t=>(t[t.CONFIG_MISSED_OR_INVALID=0]="CONFIG_MISSED_OR_INVALID",t[t.MODULES_INSTANTIATION_FAILURE=1]="MODULES_INSTANTIATION_FAILURE",t[t.INITIALIZATION_IN_PROGRESS=2]="INITIALIZATION_IN_PROGRESS",t))(zr||{}),gn=(t=>(t[t.CONNECTION_ISSUE=0]="CONNECTION_ISSUE",t[t.WORKFLOW_ISSUE=1]="WORKFLOW_ISSUE",t))(gn||{}),ct=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t))(ct||{}),qt=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t[t.TOKEN_ERROR=3]="TOKEN_ERROR",t[t.CONNECTION_ISSUE=4]="CONNECTION_ISSUE",t))(qt||{}),it=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t[t.SAME_STEP=3]="SAME_STEP",t[t.IS_PROCESSING=4]="IS_PROCESSING",t[t.NOT_DATA_TYPE=5]="NOT_DATA_TYPE",t))(it||{}),Gr=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(Gr||{}),Ot=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t))(Ot||{});const Bl=120,Wl=200,Ci="PROGRESS",vt="IDV",or="idv-session-data",Kr="idv-session-auth-token",Hl="rgl-uid",jl="en",Qs=t=>{let e;const r=new Set,n=(h,_)=>{const f=typeof h=="function"?h(e):h;if(!Object.is(f,e)){const l=e;e=(_!=null?_:typeof f!="object"||f===null)?f:Object.assign({},e,f),r.forEach(y=>y(e,l))}},i=()=>e,a={setState:n,getState:i,getInitialState:()=>u,subscribe:h=>(r.add(h),()=>r.delete(h))},u=e=t(n,i,a);return a},zl=t=>t?Qs(t):Qs;var qr,oe,eo,ar,to,ro,no,io,Si,Ei,Ii,so,Zr={},oo=[],Gl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Yr=Array.isArray;function wt(t,e){for(var r in e)t[r]=e[r];return t}function Oi(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function yt(t,e,r){var n,i,s,o={};for(s in e)s=="key"?n=e[s]:s=="ref"?i=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?qr.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)o[s]===void 0&&(o[s]=t.defaultProps[s]);return Xr(t,o,n,i,null)}function Xr(t,e,r,n,i){var s={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++eo:i,__i:-1,__u:0};return i==null&&oe.vnode!=null&&oe.vnode(s),s}function ao(){return{current:null}}function je(t){return t.children}function ut(t,e){this.props=t,this.context=e}function Cr(t,e){if(e==null)return t.__?Cr(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?Cr(t):null}function lo(t){var e,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return lo(t)}}function Ti(t){(!t.__d&&(t.__d=!0)&&ar.push(t)&&!vn.__r++||to!=oe.debounceRendering)&&((to=oe.debounceRendering)||ro)(vn)}function vn(){for(var t,e,r,n,i,s,o,a=1;ar.length;)ar.length>a&&ar.sort(no),t=ar.shift(),a=ar.length,t.__d&&(r=void 0,n=void 0,i=(n=(e=t).__v).__e,s=[],o=[],e.__P&&((r=wt({},n)).__v=n.__v+1,oe.vnode&&oe.vnode(r),Ri(e.__P,r,n,e.__n,e.__P.namespaceURI,32&n.__u?[i]:null,s,i==null?Cr(n):i,!!(32&n.__u),o),r.__v=n.__v,r.__.__k[r.__i]=r,po(s,r,o),n.__e=n.__=null,r.__e!=i&&lo(r)));vn.__r=0}function co(t,e,r,n,i,s,o,a,u,h,_){var f,l,y,v,d,m,S,b=n&&n.__k||oo,C=e.length;for(u=Kl(r,e,b,u,C),f=0;f<C;f++)(y=r.__k[f])!=null&&(l=y.__i==-1?Zr:b[y.__i]||Zr,y.__i=f,m=Ri(t,y,l,i,s,o,a,u,h,_),v=y.__e,y.ref&&l.ref!=y.ref&&(l.ref&&xi(l.ref,null,y),_.push(y.ref,y.__c||v,y)),d==null&&v!=null&&(d=v),(S=!!(4&y.__u))||l.__k===y.__k?u=uo(y,u,t,S):typeof y.type=="function"&&m!==void 0?u=m:v&&(u=v.nextSibling),y.__u&=-7);return r.__e=d,u}function Kl(t,e,r,n,i){var s,o,a,u,h,_=r.length,f=_,l=0;for(t.__k=new Array(i),s=0;s<i;s++)(o=e[s])!=null&&typeof o!="boolean"&&typeof o!="function"?(u=s+l,(o=t.__k[s]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Xr(null,o,null,null,null):Yr(o)?Xr(je,{children:o},null,null,null):o.constructor==null&&o.__b>0?Xr(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=t,o.__b=t.__b+1,a=null,(h=o.__i=ql(o,r,u,f))!=-1&&(f--,(a=r[h])&&(a.__u|=2)),a==null||a.__v==null?(h==-1&&(i>_?l--:i<_&&l++),typeof o.type!="function"&&(o.__u|=4)):h!=u&&(h==u-1?l--:h==u+1?l++:(h>u?l--:l++,o.__u|=4))):t.__k[s]=null;if(f)for(s=0;s<_;s++)(a=r[s])!=null&&(2&a.__u)==0&&(a.__e==n&&(n=Cr(a)),_o(a,a));return n}function uo(t,e,r,n){var i,s;if(typeof t.type=="function"){for(i=t.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=t,e=uo(i[s],e,r,n));return e}t.__e!=e&&(n&&(e&&t.type&&!e.parentNode&&(e=Cr(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function Tt(t,e){return e=e||[],t==null||typeof t=="boolean"||(Yr(t)?t.some(function(r){Tt(r,e)}):e.push(t)),e}function ql(t,e,r,n){var i,s,o,a=t.key,u=t.type,h=e[r],_=h!=null&&(2&h.__u)==0;if(h===null&&t.key==null||_&&a==h.key&&u==h.type)return r;if(n>(_?1:0)){for(i=r-1,s=r+1;i>=0||s<e.length;)if((h=e[o=i>=0?i--:s++])!=null&&(2&h.__u)==0&&a==h.key&&u==h.type)return o}return-1}function fo(t,e,r){e[0]=="-"?t.setProperty(e,r==null?"":r):t[e]=r==null?"":typeof r!="number"||Gl.test(e)?r:r+"px"}function wn(t,e,r,n,i){var s,o;e:if(e=="style")if(typeof r=="string")t.style.cssText=r;else{if(typeof n=="string"&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||fo(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||fo(t.style,e,r[e])}else if(e[0]=="o"&&e[1]=="n")s=e!=(e=e.replace(io,"$1")),o=e.toLowerCase(),e=o in t||e=="onFocusOut"||e=="onFocusIn"?o.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=r,r?n?r.u=n.u:(r.u=Si,t.addEventListener(e,s?Ii:Ei,s)):t.removeEventListener(e,s?Ii:Ei,s);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&r==1?"":r))}}function ho(t){return function(e){if(this.l){var r=this.l[e.type+t];if(e.t==null)e.t=Si++;else if(e.t<r.u)return;return r(oe.event?oe.event(e):e)}}}function Ri(t,e,r,n,i,s,o,a,u,h){var _,f,l,y,v,d,m,S,b,C,T,k,x,P,me,_e,ee,Q=e.type;if(e.constructor!=null)return null;128&r.__u&&(u=!!(32&r.__u),s=[a=e.__e=r.__e]),(_=oe.__b)&&_(e);e:if(typeof Q=="function")try{if(S=e.props,b="prototype"in Q&&Q.prototype.render,C=(_=Q.contextType)&&n[_.__c],T=_?C?C.props.value:_.__:n,r.__c?m=(f=e.__c=r.__c).__=f.__E:(b?e.__c=f=new Q(S,T):(e.__c=f=new ut(S,T),f.constructor=Q,f.render=Yl),C&&C.sub(f),f.props=S,f.state||(f.state={}),f.context=T,f.__n=n,l=f.__d=!0,f.__h=[],f._sb=[]),b&&f.__s==null&&(f.__s=f.state),b&&Q.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=wt({},f.__s)),wt(f.__s,Q.getDerivedStateFromProps(S,f.__s))),y=f.props,v=f.state,f.__v=e,l)b&&Q.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),b&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(b&&Q.getDerivedStateFromProps==null&&S!==y&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(S,T),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(S,f.__s,T)===!1||e.__v==r.__v){for(e.__v!=r.__v&&(f.props=S,f.state=f.__s,f.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some(function(W){W&&(W.__=e)}),k=0;k<f._sb.length;k++)f.__h.push(f._sb[k]);f._sb=[],f.__h.length&&o.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(S,f.__s,T),b&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(y,v,d)})}if(f.context=T,f.props=S,f.__P=t,f.__e=!1,x=oe.__r,P=0,b){for(f.state=f.__s,f.__d=!1,x&&x(e),_=f.render(f.props,f.state,f.context),me=0;me<f._sb.length;me++)f.__h.push(f._sb[me]);f._sb=[]}else do f.__d=!1,x&&x(e),_=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++P<25);f.state=f.__s,f.getChildContext!=null&&(n=wt(wt({},n),f.getChildContext())),b&&!l&&f.getSnapshotBeforeUpdate!=null&&(d=f.getSnapshotBeforeUpdate(y,v)),_e=_,_!=null&&_.type===je&&_.key==null&&(_e=mo(_.props.children)),a=co(t,Yr(_e)?_e:[_e],e,r,n,i,s,o,a,u,h),f.base=e.__e,e.__u&=-161,f.__h.length&&o.push(f),m&&(f.__E=f.__=null)}catch(W){if(e.__v=null,u||s!=null)if(W.then){for(e.__u|=u?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,e.__e=a}else{for(ee=s.length;ee--;)Oi(s[ee]);Ai(e)}else e.__e=r.__e,e.__k=r.__k,W.then||Ai(e);oe.__e(W,e,r)}else s==null&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):a=e.__e=Zl(r.__e,e,r,n,i,s,o,u,h);return(_=oe.diffed)&&_(e),128&e.__u?void 0:a}function Ai(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(Ai)}function po(t,e,r){for(var n=0;n<r.length;n++)xi(r[n],r[++n],r[++n]);oe.__c&&oe.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(s){s.call(i)})}catch(s){oe.__e(s,i.__v)}})}function mo(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:Yr(t)?t.map(mo):wt({},t)}function Zl(t,e,r,n,i,s,o,a,u){var h,_,f,l,y,v,d,m=r.props,S=e.props,b=e.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),s!=null){for(h=0;h<s.length;h++)if((y=s[h])&&"setAttribute"in y==!!b&&(b?y.localName==b:y.nodeType==3)){t=y,s[h]=null;break}}if(t==null){if(b==null)return document.createTextNode(S);t=document.createElementNS(i,b,S.is&&S),a&&(oe.__m&&oe.__m(e,s),a=!1),s=null}if(b==null)m===S||a&&t.data==S||(t.data=S);else{if(s=s&&qr.call(t.childNodes),m=r.props||Zr,!a&&s!=null)for(m={},h=0;h<t.attributes.length;h++)m[(y=t.attributes[h]).name]=y.value;for(h in m)if(y=m[h],h!="children"){if(h=="dangerouslySetInnerHTML")f=y;else if(!(h in S)){if(h=="value"&&"defaultValue"in S||h=="checked"&&"defaultChecked"in S)continue;wn(t,h,null,y,i)}}for(h in S)y=S[h],h=="children"?l=y:h=="dangerouslySetInnerHTML"?_=y:h=="value"?v=y:h=="checked"?d=y:a&&typeof y!="function"||m[h]===y||wn(t,h,y,m[h],i);if(_)a||f&&(_.__html==f.__html||_.__html==t.innerHTML)||(t.innerHTML=_.__html),e.__k=[];else if(f&&(t.innerHTML=""),co(e.type=="template"?t.content:t,Yr(l)?l:[l],e,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,s,o,s?s[0]:r.__k&&Cr(r,0),a,u),s!=null)for(h=s.length;h--;)Oi(s[h]);a||(h="value",b=="progress"&&v==null?t.removeAttribute("value"):v!=null&&(v!==t[h]||b=="progress"&&!v||b=="option"&&v!=m[h])&&wn(t,h,v,m[h],i),h="checked",d!=null&&d!=t[h]&&wn(t,h,d,m[h],i))}return t}function xi(t,e,r){try{if(typeof t=="function"){var n=typeof t.__u=="function";n&&t.__u(),n&&e==null||(t.__u=t(e))}else t.current=e}catch(i){oe.__e(i,r)}}function _o(t,e,r){var n,i;if(oe.unmount&&oe.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||xi(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(s){oe.__e(s,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&_o(n[i],e,r||typeof t.type!="function");r||Oi(t.__e),t.__c=t.__=t.__e=void 0}function Yl(t,e,r){return this.constructor(t,r)}function Sr(t,e,r){var n,i,s,o;e==document&&(e=document.documentElement),oe.__&&oe.__(t,e),i=(n=typeof r=="function")?null:r&&r.__k||e.__k,s=[],o=[],Ri(e,t=(!n&&r||e).__k=yt(je,null,[t]),i||Zr,Zr,e.namespaceURI,!n&&r?[r]:i?null:e.firstChild?qr.call(e.childNodes):null,s,!n&&r?r:i?i.__e:e.firstChild,n,o),po(s,t,o)}function go(t,e){Sr(t,e,go)}function Xl(t,e,r){var n,i,s,o,a=wt({},t.props);for(s in t.type&&t.type.defaultProps&&(o=t.type.defaultProps),e)s=="key"?n=e[s]:s=="ref"?i=e[s]:a[s]=e[s]===void 0&&o!=null?o[s]:e[s];return arguments.length>2&&(a.children=arguments.length>3?qr.call(arguments,2):r),Xr(t.type,a,n||t.key,i||t.ref,null)}function Ni(t){function e(r){var n,i;return this.getChildContext||(n=new Set,(i={})[e.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&n.forEach(function(o){o.__e=!0,Ti(o)})},this.sub=function(s){n.add(s);var o=s.componentWillUnmount;s.componentWillUnmount=function(){n&&n.delete(s),o&&o.call(s)}}),r.children}return e.__c="__cC"+so++,e.__=t,e.Provider=e.__l=(e.Consumer=function(r,n){return r.children(n)}).contextType=e,e}qr=oo.slice,oe={__e:function(t,e,r,n){for(var i,s,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,n||{}),o=i.__d),o)return i.__E=i}catch(a){t=a}throw t}},eo=0,ut.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=wt({},this.state),typeof t=="function"&&(t=t(wt({},r),this.props)),t&&wt(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ti(this))},ut.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ti(this))},ut.prototype.render=je,ar=[],ro=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,no=function(t,e){return t.__v.__b-e.__v.__b},vn.__r=0,io=/(PointerCapture)$|Capture$/i,Si=0,Ei=ho(!1),Ii=ho(!0),so=0;var Rt,Ce,ki,vo,Er=0,wo=[],Te=oe,yo=Te.__b,bo=Te.__r,Co=Te.diffed,So=Te.__c,Eo=Te.unmount,Io=Te.__;function lr(t,e){Te.__h&&Te.__h(Ce,t,Er||e),Er=0;var r=Ce.__H||(Ce.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Le(t){return Er=1,yn(To,t)}function yn(t,e,r){var n=lr(Rt++,2);if(n.t=t,!n.__c&&(n.__=[r?r(e):To(void 0,e),function(a){var u=n.__N?n.__N[0]:n.__[0],h=n.t(u,a);u!==h&&(n.__N=[h,n.__[1]],n.__c.setState({}))}],n.__c=Ce,!Ce.__f)){var i=function(a,u,h){if(!n.__c.__H)return!0;var _=n.__c.__H.__.filter(function(l){return!!l.__c});if(_.every(function(l){return!l.__N}))return!s||s.call(this,a,u,h);var f=n.__c.props!==a;return _.forEach(function(l){if(l.__N){var y=l.__[0];l.__=l.__N,l.__N=void 0,y!==l.__[0]&&(f=!0)}}),s&&s.call(this,a,u,h)||f};Ce.__f=!0;var s=Ce.shouldComponentUpdate,o=Ce.componentWillUpdate;Ce.componentWillUpdate=function(a,u,h){if(this.__e){var _=s;s=void 0,i(a,u,h),s=_}o&&o.call(this,a,u,h)},Ce.shouldComponentUpdate=i}return n.__N||n.__}function st(t,e){var r=lr(Rt++,3);!Te.__s&&Fi(r.__H,e)&&(r.__=t,r.u=e,Ce.__H.__h.push(r))}function Zt(t,e){var r=lr(Rt++,4);!Te.__s&&Fi(r.__H,e)&&(r.__=t,r.u=e,Ce.__h.push(r))}function ot(t){return Er=5,Jr(function(){return{current:t}},[])}function Di(t,e,r){Er=6,Zt(function(){if(typeof t=="function"){var n=t(e());return function(){t(null),n&&typeof n=="function"&&n()}}if(t)return t.current=e(),function(){return t.current=null}},r==null?r:r.concat(t))}function Jr(t,e){var r=lr(Rt++,7);return Fi(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function Mi(t,e){return Er=8,Jr(function(){return t},e)}function Qr(t){var e=Ce.context[t.__c],r=lr(Rt++,9);return r.c=t,e?(r.__==null&&(r.__=!0,e.sub(Ce)),e.props.value):t.__}function Pi(t,e){Te.useDebugValue&&Te.useDebugValue(e?e(t):t)}function Jl(t){var e=lr(Rt++,10),r=Le();return e.__=t,Ce.componentDidCatch||(Ce.componentDidCatch=function(n,i){e.__&&e.__(n,i),r[1](n)}),[r[0],function(){r[1](void 0)}]}function Ui(){var t=lr(Rt++,11);if(!t.__){for(var e=Ce.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var r=e.__m||(e.__m=[0,0]);t.__="P"+r[0]+"-"+r[1]++}return t.__}function Ql(){for(var t;t=wo.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(bn),t.__H.__h.forEach(Li),t.__H.__h=[]}catch(e){t.__H.__h=[],Te.__e(e,t.__v)}}Te.__b=function(t){Ce=null,yo&&yo(t)},Te.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Io&&Io(t,e)},Te.__r=function(t){bo&&bo(t),Rt=0;var e=(Ce=t.__c).__H;e&&(ki===Ce?(e.__h=[],Ce.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(e.__h.forEach(bn),e.__h.forEach(Li),e.__h=[],Rt=0)),ki=Ce},Te.diffed=function(t){Co&&Co(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(wo.push(e)!==1&&vo===Te.requestAnimationFrame||((vo=Te.requestAnimationFrame)||ec)(Ql)),e.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),ki=Ce=null},Te.__c=function(t,e){e.some(function(r){try{r.__h.forEach(bn),r.__h=r.__h.filter(function(n){return!n.__||Li(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Te.__e(n,r.__v)}}),So&&So(t,e)},Te.unmount=function(t){Eo&&Eo(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{bn(n)}catch(i){e=i}}),r.__H=void 0,e&&Te.__e(e,r.__v))};var Oo=typeof requestAnimationFrame=="function";function ec(t){var e,r=function(){clearTimeout(n),Oo&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,35);Oo&&(e=requestAnimationFrame(r))}function bn(t){var e=Ce,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),Ce=e}function Li(t){var e=Ce;t.__c=t.__(),Ce=e}function Fi(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function To(t,e){return typeof e=="function"?e(t):e}function Ro(t,e){for(var r in e)t[r]=e[r];return t}function Vi(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var n in e)if(n!=="__source"&&t[n]!==e[n])return!0;return!1}function $i(t,e){var r=e(),n=Le({t:{__:r,u:e}}),i=n[0].t,s=n[1];return Zt(function(){i.__=r,i.u=e,Bi(i)&&s({t:i})},[t,r,e]),st(function(){return Bi(i)&&s({t:i}),t(function(){Bi(i)&&s({t:i})})},[t]),r}function Bi(t){var e,r,n=t.u,i=t.__;try{var s=n();return!((e=i)===(r=s)&&(e!==0||1/e==1/r)||e!=e&&r!=r)}catch(o){return!0}}function Wi(t){t()}function Hi(t){return t}function ji(){return[!1,Wi]}var zi=Zt;function Cn(t,e){this.props=t,this.context=e}function Ao(t,e){function r(i){var s=this.props.ref,o=s==i.ref;return!o&&s&&(s.call?s(null):s.current=null),e?!e(this.props,i)||!o:Vi(this.props,i)}function n(i){return this.shouldComponentUpdate=r,yt(t,i)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n.type=t,n}(Cn.prototype=new ut).isPureReactComponent=!0,Cn.prototype.shouldComponentUpdate=function(t,e){return Vi(this.props,t)||Vi(this.state,e)};var xo=oe.__b;oe.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),xo&&xo(t)};var tc=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function No(t){function e(r){var n=Ro({},r);return delete n.ref,t(n,r.ref||null)}return e.$$typeof=tc,e.render=t,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var ko=function(t,e){return t==null?null:Tt(Tt(t).map(e))},Do={map:ko,forEach:ko,count:function(t){return t?Tt(t).length:0},only:function(t){var e=Tt(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:Tt},rc=oe.__e;oe.__e=function(t,e,r,n){if(t.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),i.__c(t,e)}rc(t,e,r,n)};var Mo=oe.unmount;function Po(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=Ro({},t)).__c!=null&&(t.__c.__P===r&&(t.__c.__P=e),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return Po(n,e,r)})),t}function Uo(t,e,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Uo(n,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}function en(){this.__u=0,this.o=null,this.__b=null}function Lo(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Fo(t){var e,r,n;function i(s){if(e||(e=t()).then(function(o){r=o.default||o},function(o){n=o}),n)throw n;if(!r)throw e;return yt(r,s)}return i.displayName="Lazy",i.__f=!0,i}function Ir(){this.i=null,this.l=null}oe.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Mo&&Mo(t)},(en.prototype=new ut).__c=function(t,e){var r=e.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Lo(n.__v),s=!1,o=function(){s||(s=!0,r.__R=null,i?i(a):a())};r.__R=o;var a=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=Uo(u,u.__c.__P,u.__c.__O)}var h;for(n.setState({__a:n.__b=null});h=n.o.pop();)h.forceUpdate()}};n.__u++||32&e.__u||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(o,o)},en.prototype.componentWillUnmount=function(){this.o=[]},en.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Po(this.__b,r,n.__O=n.__P)}this.__b=null}var i=e.__a&&yt(je,null,t.fallback);return i&&(i.__u&=-33),[yt(je,null,e.__a?null:t.children),i]};var Vo=function(t,e,r){if(++r[1]===r[0]&&t.l.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.l.size))for(r=t.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.i=r=r[2]}};function nc(t){return this.getChildContext=function(){return t.context},t.children}function ic(t){var e=this,r=t.h;if(e.componentWillUnmount=function(){Sr(null,e.v),e.v=null,e.h=null},e.h&&e.h!==r&&e.componentWillUnmount(),!e.v){for(var n=e.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;e.h=r,e.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(i,s){this.childNodes.push(i),e.h.insertBefore(i,s)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),e.h.removeChild(i)}}}Sr(yt(nc,{context:e.context},t.__v),e.v)}function $o(t,e){var r=yt(ic,{__v:t,h:e});return r.containerInfo=e,r}(Ir.prototype=new ut).__a=function(t){var e=this,r=Lo(e.__v),n=e.l.get(t);return n[0]++,function(i){var s=function(){e.props.revealOrder?(n.push(i),Vo(e,t,n)):i()};r?r(s):s()}},Ir.prototype.render=function(t){this.i=null,this.l=new Map;var e=Tt(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var r=e.length;r--;)this.l.set(e[r],this.i=[1,0,this.i]);return t.children},Ir.prototype.componentDidUpdate=Ir.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,r){Vo(t,r,e)})};var Bo=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,sc=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,oc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ac=/[A-Z0-9]/g,lc=typeof document!="undefined",cc=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Wo(t,e,r){return e.__k==null&&(e.textContent=""),Sr(t,e),typeof r=="function"&&r(),t?t.__c:null}function Ho(t,e,r){return go(t,e),typeof r=="function"&&r(),t?t.__c:null}ut.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(ut.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var jo=oe.event;function uc(){}function dc(){return this.cancelBubble}function fc(){return this.defaultPrevented}oe.event=function(t){return jo&&(t=jo(t)),t.persist=uc,t.isPropagationStopped=dc,t.isDefaultPrevented=fc,t.nativeEvent=t};var Gi,hc={enumerable:!1,configurable:!0,get:function(){return this.class}},zo=oe.vnode;oe.vnode=function(t){typeof t.type=="string"&&(function(e){var r=e.props,n=e.type,i={},s=n.indexOf("-")===-1;for(var o in r){var a=r[o];if(!(o==="value"&&"defaultValue"in r&&a==null||lc&&o==="children"&&n==="noscript"||o==="class"||o==="className")){var u=o.toLowerCase();o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&a===!0?a="":u==="translate"&&a==="no"?a=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?o="ondblclick":u!=="onchange"||n!=="input"&&n!=="textarea"||cc(r.type)?u==="onfocus"?o="onfocusin":u==="onblur"?o="onfocusout":oc.test(o)&&(o=u):u=o="oninput":s&&sc.test(o)?o=o.replace(ac,"-$&").toLowerCase():a===null&&(a=void 0),u==="oninput"&&i[o=u]&&(o="oninputCapture"),i[o]=a}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Tt(r.children).forEach(function(h){h.props.selected=i.value.indexOf(h.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Tt(r.children).forEach(function(h){h.props.selected=i.multiple?i.defaultValue.indexOf(h.props.value)!=-1:i.defaultValue==h.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",hc)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),e.props=i})(t),t.$$typeof=Bo,zo&&zo(t)};var Go=oe.__r;oe.__r=function(t){Go&&Go(t),Gi=t.__c};var Ko=oe.diffed;oe.diffed=function(t){Ko&&Ko(t);var e=t.props,r=t.__e;r!=null&&t.type==="textarea"&&"value"in e&&e.value!==r.value&&(r.value=e.value==null?"":e.value),Gi=null};var qo={ReactCurrentDispatcher:{current:{readContext:function(t){return Gi.__n[t.__c].props.value},useCallback:Mi,useContext:Qr,useDebugValue:Pi,useDeferredValue:Hi,useEffect:st,useId:Ui,useImperativeHandle:Di,useInsertionEffect:zi,useLayoutEffect:Zt,useMemo:Jr,useReducer:yn,useRef:ot,useState:Le,useSyncExternalStore:$i,useTransition:ji}}},pc="18.3.1";function Zo(t){return yt.bind(null,t)}function tn(t){return!!t&&t.$$typeof===Bo}function Yo(t){return tn(t)&&t.type===je}function Xo(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Jo(t){return tn(t)?Xl.apply(null,arguments):t}function Qo(t){return!!t.__k&&(Sr(null,t),!0)}function ea(t){return t&&(t.base||t.nodeType===1&&t)||null}var ta=function(t,e){return t(e)},ra=function(t,e){return t(e)},na=je,ia=tn,ce={useState:Le,useId:Ui,useReducer:yn,useEffect:st,useLayoutEffect:Zt,useInsertionEffect:zi,useTransition:ji,useDeferredValue:Hi,useSyncExternalStore:$i,startTransition:Wi,useRef:ot,useImperativeHandle:Di,useMemo:Jr,useCallback:Mi,useContext:Qr,useDebugValue:Pi,version:"18.3.1",Children:Do,render:Wo,hydrate:Ho,unmountComponentAtNode:Qo,createPortal:$o,createElement:yt,createContext:Ni,createFactory:Zo,cloneElement:Jo,createRef:ao,Fragment:je,isValidElement:tn,isElement:ia,isFragment:Yo,isMemo:Xo,findDOMNode:ea,Component:ut,PureComponent:Cn,memo:Ao,forwardRef:No,flushSync:ra,unstable_batchedUpdates:ta,StrictMode:na,Suspense:en,SuspenseList:Ir,lazy:Fo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qo};const mc=Object.freeze(Object.defineProperty({__proto__:null,Children:Do,Component:ut,Fragment:je,PureComponent:Cn,StrictMode:na,Suspense:en,SuspenseList:Ir,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qo,cloneElement:Jo,createContext:Ni,createElement:yt,createFactory:Zo,createPortal:$o,createRef:ao,default:ce,findDOMNode:ea,flushSync:ra,forwardRef:No,hydrate:Ho,isElement:ia,isFragment:Yo,isMemo:Xo,isValidElement:tn,lazy:Fo,memo:Ao,render:Wo,startTransition:Wi,unmountComponentAtNode:Qo,unstable_batchedUpdates:ta,useCallback:Mi,useContext:Qr,useDebugValue:Pi,useDeferredValue:Hi,useEffect:st,useErrorBoundary:Jl,useId:Ui,useImperativeHandle:Di,useInsertionEffect:zi,useLayoutEffect:Zt,useMemo:Jr,useReducer:yn,useRef:ot,useState:Le,useSyncExternalStore:$i,useTransition:ji,version:pc},Symbol.toStringTag,{value:"Module"})),_c=t=>t;function gc(t,e=_c){const r=ce.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return ce.useDebugValue(r),r}const sa=t=>{const e=zl(t),r=n=>gc(e,n);return Object.assign(r,e),r},vc=t=>t?sa(t):sa;function wc(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch(s){}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var B={};const yc=wc(mc);var rn={exports:{}},bc=rn.exports,oa;function Cc(){return oa||(oa=1,(function(t,e){(function(r,n){var i="1.0.41",s="",o="?",a="function",u="undefined",h="object",_="string",f="major",l="model",y="name",v="type",d="vendor",m="version",S="architecture",b="console",C="mobile",T="tablet",k="smarttv",x="wearable",P="embedded",me=500,_e="Amazon",ee="Apple",Q="ASUS",W="BlackBerry",X="Browser",ue="Chrome",de="Edge",we="Firefox",ye="Google",te="Honor",z="Huawei",U="Lenovo",Z="LG",re="Microsoft",Ie="Motorola",ne="Nvidia",$="OnePlus",J="Opera",Ke="OPPO",Xe="Samsung",pt="Sharp",nt="Sony",Ht="Xiaomi",mt="Zebra",Jt="Facebook",jt="Chromium OS",Ct="Mac OS",zt=" Browser",Qt=function(Y,ae){var j={};for(var ge in Y)ae[ge]&&ae[ge].length%2===0?j[ge]=ae[ge].concat(Y[ge]):j[ge]=Y[ge];return j},St=function(Y){for(var ae={},j=0;j<Y.length;j++)ae[Y[j].toUpperCase()]=Y[j];return ae},at=function(Y,ae){return typeof Y===_?w(ae).indexOf(w(Y))!==-1:!1},w=function(Y){return Y.toLowerCase()},I=function(Y){return typeof Y===_?Y.replace(/[^\d\.]/g,s).split(".")[0]:n},A=function(Y,ae){if(typeof Y===_)return Y=Y.replace(/^\s\s*/,s),typeof ae===u?Y:Y.substring(0,me)},V=function(Y,ae){for(var j=0,ge,qe,De,he,q,Je;j<ae.length&&!q;){var er=ae[j],hr=ae[j+1];for(ge=qe=0;ge<er.length&&!q&&er[ge];)if(q=er[ge++].exec(Y),q)for(De=0;De<hr.length;De++)Je=q[++qe],he=hr[De],typeof he===h&&he.length>0?he.length===2?typeof he[1]==a?this[he[0]]=he[1].call(this,Je):this[he[0]]=he[1]:he.length===3?typeof he[1]===a&&!(he[1].exec&&he[1].test)?this[he[0]]=Je?he[1].call(this,Je,he[2]):n:this[he[0]]=Je?Je.replace(he[1],he[2]):n:he.length===4&&(this[he[0]]=Je?he[3].call(this,Je.replace(he[1],he[2])):n):this[he]=Je||n;j+=2}},D=function(Y,ae){for(var j in ae)if(typeof ae[j]===h&&ae[j].length>0){for(var ge=0;ge<ae[j].length;ge++)if(at(ae[j][ge],Y))return j===o?n:j}else if(at(ae[j],Y))return j===o?n:j;return ae.hasOwnProperty("*")?ae["*"]:Y},M={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},H={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ie={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[y,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[y,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[y,m],[/opios[\/ ]+([\w\.]+)/i],[m,[y,J+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[y,J+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[y,J]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[y,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[y,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[y,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[y,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[y,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[y,"UC"+X]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[y,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[y,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[y,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[y,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[y,"Smart Lenovo "+X]],[/(avast|avg)\/([\w\.]+)/i],[[y,/(.+)/,"$1 Secure "+X],m],[/\bfocus\/([\w\.]+)/i],[m,[y,we+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[y,J+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[y,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[y,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[y,J+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[y,"MIUI"+zt]],[/fxios\/([\w\.-]+)/i],[m,[y,we]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[y,"360"]],[/\b(qq)\/([\w\.]+)/i],[[y,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[y,/(.+)/,"$1"+zt],m],[/samsungbrowser\/([\w\.]+)/i],[m,[y,Xe+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[y,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[y,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[y,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[y],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,y],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[y,Jt],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[y,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[y,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[y,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[y,ue+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[y,ue+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[y,"Android "+X]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[y,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[y,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,y],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[y,[m,D,M]],[/(webkit|khtml)\/([\w\.]+)/i],[y,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[y,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[y,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[y,we+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[y,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[y,[m,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[S,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[S,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[S,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[S,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[S,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[S,/ower/,s,w]],[/ sun4\w[;\)]/i],[[S,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[S,w]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[d,Xe],[v,T]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,Xe],[v,C]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[d,ee],[v,C]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,ee],[v,T]],[/(macintosh);/i],[l,[d,ee]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,pt],[v,C]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[l,[d,te],[v,T]],[/honor([-\w ]+)[;\)]/i],[l,[d,te],[v,C]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[l,[d,z],[v,T]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[d,z],[v,C]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[l,/_/g," "],[d,Ht],[v,T]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[l,/_/g," "],[d,Ht],[v,C]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,Ke],[v,C]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[l,[d,D,{OnePlus:["304","403","203"],"*":Ke}],[v,T]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[v,C]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[v,C]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[d,Ie],[v,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,Ie],[v,T]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,Z],[v,T]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,Z],[v,C]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[l,[d,U],[v,T]],[/(nokia) (t[12][01])/i],[d,l,[v,T]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[l,/_/g," "],[v,C],[d,"Nokia"]],[/(pixel (c|tablet))\b/i],[l,[d,ye],[v,T]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[d,ye],[v,C]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[d,nt],[v,C]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,nt],[v,T]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,$],[v,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,_e],[v,T]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,_e],[v,C]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[v,T]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,W],[v,C]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,Q],[v,T]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,Q],[v,C]],[/(nexus 9)/i],[l,[d,"HTC"],[v,T]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[v,C]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[l,[d,"TCL"],[v,T]],[/(itel) ((\w+))/i],[[d,w],l,[v,D,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[v,T]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[v,C]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[v,C]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[d,"Energizer"],[v,C]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[d,"Cat"],[v,C]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[d,"Smartfren"],[v,C]],[/droid.+; (a(?:015|06[35]|142p?))/i],[l,[d,"Nothing"],[v,C]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[l,[d,"Archos"],[v,T]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[l,[d,"Archos"],[v,C]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[d,l,[v,T]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[d,l,[v,C]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,l,[v,T]],[/(surface duo)/i],[l,[d,re],[v,T]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[v,C]],[/(u304aa)/i],[l,[d,"AT&T"],[v,C]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[v,C]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[v,T]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[v,T]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[v,T]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[v,T]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[v,T]],[/\b(k88) b/i],[l,[d,"ZTE"],[v,T]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[v,C]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[v,C]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[v,T]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[v,T]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[v,T]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[v,T]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[v,T]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[v,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[v,C]],[/\b(ph-1) /i],[l,[d,"Essential"],[v,C]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[v,T]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[v,T]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[v,T]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[l,[d,ne],[v,T]],[/(sprint) (\w+)/i],[d,l,[v,C]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,re],[v,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,mt],[v,T]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,mt],[v,C]],[/smart-tv.+(samsung)/i],[d,[v,k]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,Xe],[v,k]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,Z],[v,k]],[/(apple) ?tv/i],[d,[l,ee+" TV"],[v,k]],[/crkey/i],[[l,ue+"cast"],[d,ye],[v,k]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,_e],[v,k]],[/(shield \w+ tv)/i],[l,[d,ne],[v,k]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,pt],[v,k]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,nt],[v,k]],[/(mi(tv|box)-?\w+) bui/i],[l,[d,Ht],[v,k]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[v,k]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,A],[l,A],[v,k]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[l,[v,k]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,k]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[v,b]],[/droid.+; (shield)( bui|\))/i],[l,[d,ne],[v,b]],[/(playstation \w+)/i],[l,[d,nt],[v,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,re],[v,b]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[l,[d,Xe],[v,x]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[d,l,[v,x]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[l,[d,Ke],[v,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,ee],[v,x]],[/(opwwe\d{3})/i],[l,[d,$],[v,x]],[/(moto 360)/i],[l,[d,Ie],[v,x]],[/(smartwatch 3)/i],[l,[d,nt],[v,x]],[/(g watch r)/i],[l,[d,Z],[v,x]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,mt],[v,x]],[/droid.+; (glass) \d/i],[l,[d,ye],[v,x]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,l,[v,x]],[/; (quest( \d| pro)?)/i],[l,[d,Jt],[v,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[v,P]],[/(aeobc)\b/i],[l,[d,_e],[v,P]],[/(homepod).+mac os/i],[l,[d,ee],[v,P]],[/windows iot/i],[[v,P]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[v,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[v,T]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,T]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,C]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[y,de+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[y,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[y,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[y,m],[/ladybird\//i],[[y,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,y]],os:[[/microsoft (windows) (vista|xp)/i],[y,m],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[y,[m,D,H]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,D,H],[y,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[y,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[y,Ct],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,y],[/(ubuntu) ([\w\.]+) like android/i],[[y,/(.+)/,"$1 Touch"],m],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[y,m],[/\(bb(10);/i],[m,[y,W]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[y,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[y,we+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[y,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[y,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[y,ue+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[y,jt],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[y,m],[/(sunos) ?([\w\.\d]*)/i],[[y,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[y,m]]},K=function(Y,ae){if(typeof Y===h&&(ae=Y,Y=n),!(this instanceof K))return new K(Y,ae).getResult();var j=typeof r!==u&&r.navigator?r.navigator:n,ge=Y||(j&&j.userAgent?j.userAgent:s),qe=j&&j.userAgentData?j.userAgentData:n,De=ae?Qt(ie,ae):ie,he=j&&j.userAgent==ge;return this.getBrowser=function(){var q={};return q[y]=n,q[m]=n,V.call(q,ge,De.browser),q[f]=I(q[m]),he&&j&&j.brave&&typeof j.brave.isBrave==a&&(q[y]="Brave"),q},this.getCPU=function(){var q={};return q[S]=n,V.call(q,ge,De.cpu),q},this.getDevice=function(){var q={};return q[d]=n,q[l]=n,q[v]=n,V.call(q,ge,De.device),he&&!q[v]&&qe&&qe.mobile&&(q[v]=C),he&&q[l]=="Macintosh"&&j&&typeof j.standalone!==u&&j.maxTouchPoints&&j.maxTouchPoints>2&&(q[l]="iPad",q[v]=T),q},this.getEngine=function(){var q={};return q[y]=n,q[m]=n,V.call(q,ge,De.engine),q},this.getOS=function(){var q={};return q[y]=n,q[m]=n,V.call(q,ge,De.os),he&&!q[y]&&qe&&qe.platform&&qe.platform!="Unknown"&&(q[y]=qe.platform.replace(/chrome os/i,jt).replace(/macos/i,Ct)),q},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ge},this.setUA=function(q){return ge=typeof q===_&&q.length>me?A(q,me):q,this},this.setUA(ge),this};K.VERSION=i,K.BROWSER=St([y,m,f]),K.CPU=St([S]),K.DEVICE=St([l,d,v,b,C,k,T,x,P]),K.ENGINE=K.OS=St([y,m]),t.exports&&(e=t.exports=K),e.UAParser=K;var ve=typeof r!==u&&(r.jQuery||r.Zepto);if(ve&&!ve.ua){var He=new K;ve.ua=He.getResult(),ve.ua.get=function(){return He.getUA()},ve.ua.set=function(Y){He.setUA(Y);var ae=He.getResult();for(var j in ae)ve.ua[j]=ae[j]}}})(typeof window=="object"?window:bc)})(rn,rn.exports)),rn.exports}var aa;function Sc(){if(aa)return B;aa=1,Object.defineProperty(B,"__esModule",{value:!0});function t(E){return E&&typeof E=="object"&&"default"in E?E.default:E}var e=yc,r=t(e),n=Cc(),i=new n,s=i.getBrowser(),o=i.getCPU(),a=i.getDevice(),u=i.getEngine(),h=i.getOS(),_=i.getUA(),f=function(p){return i.setUA(p)},l=function(p){if(!p){console.error("No userAgent string was provided");return}var g=new n(p);return{UA:g,browser:g.getBrowser(),cpu:g.getCPU(),device:g.getDevice(),engine:g.getEngine(),os:g.getOS(),ua:g.getUA(),setUserAgent:function(N){return g.setUA(N)}}},y=Object.freeze({ClientUAInstance:i,browser:s,cpu:o,device:a,engine:u,os:h,ua:_,setUa:f,parseUserAgent:l});function v(E,p){var g=Object.keys(E);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(E);p&&(R=R.filter(function(N){return Object.getOwnPropertyDescriptor(E,N).enumerable})),g.push.apply(g,R)}return g}function d(E){for(var p=1;p<arguments.length;p++){var g=arguments[p]!=null?arguments[p]:{};p%2?v(Object(g),!0).forEach(function(R){T(E,R,g[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(g)):v(Object(g)).forEach(function(R){Object.defineProperty(E,R,Object.getOwnPropertyDescriptor(g,R))})}return E}function m(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(p){return typeof p}:m=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},m(E)}function S(E,p){if(!(E instanceof p))throw new TypeError("Cannot call a class as a function")}function b(E,p){for(var g=0;g<p.length;g++){var R=p[g];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(E,R.key,R)}}function C(E,p,g){return p&&b(E.prototype,p),E}function T(E,p,g){return p in E?Object.defineProperty(E,p,{value:g,enumerable:!0,configurable:!0,writable:!0}):E[p]=g,E}function k(){return k=Object.assign||function(E){for(var p=1;p<arguments.length;p++){var g=arguments[p];for(var R in g)Object.prototype.hasOwnProperty.call(g,R)&&(E[R]=g[R])}return E},k.apply(this,arguments)}function x(E,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(p&&p.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),p&&me(E,p)}function P(E){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},P(E)}function me(E,p){return me=Object.setPrototypeOf||function(R,N){return R.__proto__=N,R},me(E,p)}function _e(E,p){if(E==null)return{};var g={},R=Object.keys(E),N,pe;for(pe=0;pe<R.length;pe++)N=R[pe],!(p.indexOf(N)>=0)&&(g[N]=E[N]);return g}function ee(E,p){if(E==null)return{};var g=_e(E,p),R,N;if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(E);for(N=0;N<pe.length;N++)R=pe[N],!(p.indexOf(R)>=0)&&Object.prototype.propertyIsEnumerable.call(E,R)&&(g[R]=E[R])}return g}function Q(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function W(E,p){if(p&&(typeof p=="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q(E)}function X(E,p){return ue(E)||de(E,p)||we(E,p)||te()}function ue(E){if(Array.isArray(E))return E}function de(E,p){var g=E==null?null:typeof Symbol!="undefined"&&E[Symbol.iterator]||E["@@iterator"];if(g!=null){var R=[],N=!0,pe=!1,Me,et;try{for(g=g.call(E);!(N=(Me=g.next()).done)&&(R.push(Me.value),!(p&&R.length===p));N=!0);}catch(ui){pe=!0,et=ui}finally{try{!N&&g.return!=null&&g.return()}finally{if(pe)throw et}}return R}}function we(E,p){if(E){if(typeof E=="string")return ye(E,p);var g=Object.prototype.toString.call(E).slice(8,-1);if(g==="Object"&&E.constructor&&(g=E.constructor.name),g==="Map"||g==="Set")return Array.from(E);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return ye(E,p)}}function ye(E,p){(p==null||p>E.length)&&(p=E.length);for(var g=0,R=new Array(p);g<p;g++)R[g]=E[g];return R}function te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
90
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},U={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},Z={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},re={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Ie=function(p){switch(p){case z.Mobile:return{isMobile:!0};case z.Tablet:return{isTablet:!0};case z.SmartTv:return{isSmartTV:!0};case z.Console:return{isConsole:!0};case z.Wearable:return{isWearable:!0};case z.Browser:return{isBrowser:!0};case z.Embedded:return{isEmbedded:!0};default:return re}},ne=function(p){return f(p)},$=function(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return p||g},J=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},Ke=function(p){var g=J();return g&&g.platform&&(g.platform.indexOf(p)!==-1||g.platform==="MacIntel"&&g.maxTouchPoints>1&&!window.MSStream)},Xe=function(p,g,R,N,pe){return{isBrowser:p,browserMajorVersion:$(g.major),browserFullVersion:$(g.version),browserName:$(g.name),engineName:$(R.name),engineVersion:$(R.version),osName:$(N.name),osVersion:$(N.version),userAgent:$(pe)}},pt=function(p,g,R,N){return d({},p,{vendor:$(g.vendor),model:$(g.model),os:$(R.name),osVersion:$(R.version),ua:$(N)})},nt=function(p,g,R,N){return{isSmartTV:p,engineName:$(g.name),engineVersion:$(g.version),osName:$(R.name),osVersion:$(R.version),userAgent:$(N)}},Ht=function(p,g,R,N){return{isConsole:p,engineName:$(g.name),engineVersion:$(g.version),osName:$(R.name),osVersion:$(R.version),userAgent:$(N)}},mt=function(p,g,R,N){return{isWearable:p,engineName:$(g.name),engineVersion:$(g.version),osName:$(R.name),osVersion:$(R.version),userAgent:$(N)}},Jt=function(p,g,R,N,pe){return{isEmbedded:p,vendor:$(g.vendor),model:$(g.model),engineName:$(R.name),engineVersion:$(R.version),osName:$(N.name),osVersion:$(N.version),userAgent:$(pe)}};function jt(E){var p=E?l(E):y,g=p.device,R=p.browser,N=p.engine,pe=p.os,Me=p.ua,et=Ie(g.type),ui=et.isBrowser,h1=et.isMobile,p1=et.isTablet,cl=et.isSmartTV,ul=et.isConsole,dl=et.isWearable,fl=et.isEmbedded;if(ui)return Xe(ui,R,N,pe,Me);if(cl)return nt(cl,N,pe,Me);if(ul)return Ht(ul,N,pe,Me);if(h1||p1)return pt(et,g,pe,Me);if(dl)return mt(dl,N,pe,Me);if(fl)return Jt(fl,g,N,pe,Me)}var Ct=function(p){var g=p.type;return g===z.Mobile},zt=function(p){var g=p.type;return g===z.Tablet},Qt=function(p){var g=p.type;return g===z.Mobile||g===z.Tablet},St=function(p){var g=p.type;return g===z.SmartTv},at=function(p){var g=p.type;return g===z.Browser},w=function(p){var g=p.type;return g===z.Wearable},I=function(p){var g=p.type;return g===z.Console},A=function(p){var g=p.type;return g===z.Embedded},V=function(p){var g=p.vendor;return $(g)},D=function(p){var g=p.model;return $(g)},M=function(p){var g=p.type;return $(g,"browser")},H=function(p){var g=p.name;return g===Z.Android},ie=function(p){var g=p.name;return g===Z.Windows},K=function(p){var g=p.name;return g===Z.MAC_OS},ve=function(p){var g=p.name;return g===Z.WindowsPhone},He=function(p){var g=p.name;return g===Z.IOS},Y=function(p){var g=p.version;return $(g)},ae=function(p){var g=p.name;return $(g)},j=function(p){var g=p.name;return g===U.Chrome},ge=function(p){var g=p.name;return g===U.Firefox},qe=function(p){var g=p.name;return g===U.Chromium},De=function(p){var g=p.name;return g===U.Edge},he=function(p){var g=p.name;return g===U.Yandex},q=function(p){var g=p.name;return g===U.Safari||g===U.MobileSafari},Je=function(p){var g=p.name;return g===U.MobileSafari},er=function(p){var g=p.name;return g===U.Opera},hr=function(p){var g=p.name;return g===U.InternetExplorer||g===U.Ie},Fn=function(p){var g=p.name;return g===U.MIUI},Vn=function(p){var g=p.name;return g===U.SamsungBrowser},$n=function(p){var g=p.version;return $(g)},Bn=function(p){var g=p.major;return $(g)},Wn=function(p){var g=p.name;return $(g)},Hn=function(p){var g=p.name;return $(g)},jn=function(p){var g=p.version;return $(g)},zn=function(){var p=J(),g=p&&p.userAgent&&p.userAgent.toLowerCase();return typeof g=="string"?/electron/.test(g):!1},tr=function(p){return typeof p=="string"&&p.indexOf("Edg/")!==-1},Gn=function(){var p=J();return p&&(/iPad|iPhone|iPod/.test(p.platform)||p.platform==="MacIntel"&&p.maxTouchPoints>1)&&!window.MSStream},lt=function(){return Ke("iPad")},Kn=function(){return Ke("iPhone")},qn=function(){return Ke("iPod")},Zn=function(p){return $(p)};function Yn(E){var p=E||y,g=p.device,R=p.browser,N=p.os,pe=p.engine,Me=p.ua;return{isSmartTV:St(g),isConsole:I(g),isWearable:w(g),isEmbedded:A(g),isMobileSafari:Je(R)||lt(),isChromium:qe(R),isMobile:Qt(g)||lt(),isMobileOnly:Ct(g),isTablet:zt(g)||lt(),isBrowser:at(g),isDesktop:at(g),isAndroid:H(N),isWinPhone:ve(N),isIOS:He(N)||lt(),isChrome:j(R),isFirefox:ge(R),isSafari:q(R),isOpera:er(R),isIE:hr(R),osVersion:Y(N),osName:ae(N),fullBrowserVersion:$n(R),browserVersion:Bn(R),browserName:Wn(R),mobileVendor:V(g),mobileModel:D(g),engineName:Hn(pe),engineVersion:jn(pe),getUA:Zn(Me),isEdge:De(R)||tr(Me),isYandex:he(R),deviceType:M(g),isIOS13:Gn(),isIPad13:lt(),isIPhone13:Kn(),isIPod13:qn(),isElectron:zn(),isEdgeChromium:tr(Me),isLegacyEdge:De(R)&&!tr(Me),isWindows:ie(N),isMacOs:K(N),isMIUI:Fn(R),isSamsungBrowser:Vn(R)}}var Xn=St(a),Jn=I(a),Qn=w(a),bs=A(a),Cs=Je(s)||lt(),Ss=qe(s),Mr=Qt(a)||lt(),ei=Ct(a),ti=zt(a)||lt(),ri=at(a),Es=at(a),ni=H(h),ii=ve(h),si=He(h)||lt(),Is=j(s),Os=ge(s),Ts=q(s),Rs=er(s),oi=hr(s),As=Y(h),xs=ae(h),Ns=$n(s),ks=Bn(s),Ds=Wn(s),Ms=V(a),Ps=D(a),Us=Hn(u),Ls=jn(u),Fs=Zn(_),Et=De(s)||tr(_),Vs=he(s),se=M(a),_t=Gn(),Pr=lt(),ai=Kn(),li=qn(),ci=zn(),zd=tr(_),Gd=De(s)&&!tr(_),Kd=ie(h),qd=K(h),Zd=Fn(s),Yd=Vn(s),Xd=function(p){if(!p||typeof p!="string"){console.error("No valid user agent string was provided");return}var g=l(p),R=g.device,N=g.browser,pe=g.os,Me=g.engine,et=g.ua;return Yn({device:R,browser:N,os:pe,engine:Me,ua:et})},Jd=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return ni?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},Qd=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return ri?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},e1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return oi?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},t1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return si?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},r1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return Mr?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},n1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return ti?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},i1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return ii?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},s1=function(p){var g=p.renderWithFragment,R=p.children;p.viewClassName,p.style;var N=ee(p,["renderWithFragment","children","viewClassName","style"]);return ei?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},o1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return Xn?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},a1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return Jn?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},l1=function(p){var g=p.renderWithFragment,R=p.children,N=ee(p,["renderWithFragment","children"]);return Qn?g?r.createElement(e.Fragment,null,R):r.createElement("div",N,R):null},c1=function(p){var g=p.renderWithFragment,R=p.children;p.viewClassName,p.style;var N=p.condition,pe=ee(p,["renderWithFragment","children","viewClassName","style","condition"]);return N?g?r.createElement(e.Fragment,null,R):r.createElement("div",pe,R):null};function u1(E){return(function(p){x(g,p);function g(R){var N;return S(this,g),N=W(this,P(g).call(this,R)),N.isEventListenerAdded=!1,N.handleOrientationChange=N.handleOrientationChange.bind(Q(N)),N.onOrientationChange=N.onOrientationChange.bind(Q(N)),N.onPageLoad=N.onPageLoad.bind(Q(N)),N.state={isLandscape:!1,isPortrait:!1},N}return C(g,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var N=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:N===0,isLandscape:N===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window=="undefined"?"undefined":m(window))!==void 0&&Mr&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return r.createElement(E,k({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),g})(r.Component)}function d1(){var E=e.useState(function(){var pe=window.innerWidth>window.innerHeight?90:0;return{isPortrait:pe===0,isLandscape:pe===90,orientation:pe===0?"portrait":"landscape"}}),p=X(E,2),g=p[0],R=p[1],N=e.useCallback(function(){var pe=window.innerWidth>window.innerHeight?90:0,Me={isPortrait:pe===0,isLandscape:pe===90,orientation:pe===0?"portrait":"landscape"};g.orientation!==Me.orientation&&R(Me)},[g.orientation]);return e.useEffect(function(){return(typeof window=="undefined"?"undefined":m(window))!==void 0&&Mr&&(N(),window.addEventListener("load",N,!1),window.addEventListener("resize",N,!1)),function(){window.removeEventListener("resize",N,!1),window.removeEventListener("load",N,!1)}},[N]),g}function ll(E){var p=E||window.navigator.userAgent;return l(p)}function f1(E){var p=E||window.navigator.userAgent,g=ll(p),R=Yn(g);return[R,g]}return B.AndroidView=Jd,B.BrowserTypes=U,B.BrowserView=Qd,B.ConsoleView=a1,B.CustomView=c1,B.IEView=e1,B.IOSView=t1,B.MobileOnlyView=s1,B.MobileView=r1,B.OsTypes=Z,B.SmartTVView=o1,B.TabletView=n1,B.WearableView=l1,B.WinPhoneView=i1,B.browserName=Ds,B.browserVersion=ks,B.deviceDetect=jt,B.deviceType=se,B.engineName=Us,B.engineVersion=Ls,B.fullBrowserVersion=Ns,B.getSelectorsByUserAgent=Xd,B.getUA=Fs,B.isAndroid=ni,B.isBrowser=ri,B.isChrome=Is,B.isChromium=Ss,B.isConsole=Jn,B.isDesktop=Es,B.isEdge=Et,B.isEdgeChromium=zd,B.isElectron=ci,B.isEmbedded=bs,B.isFirefox=Os,B.isIE=oi,B.isIOS=si,B.isIOS13=_t,B.isIPad13=Pr,B.isIPhone13=ai,B.isIPod13=li,B.isLegacyEdge=Gd,B.isMIUI=Zd,B.isMacOs=qd,B.isMobile=Mr,B.isMobileOnly=ei,B.isMobileSafari=Cs,B.isOpera=Rs,B.isSafari=Ts,B.isSamsungBrowser=Yd,B.isSmartTV=Xn,B.isTablet=ti,B.isWearable=Qn,B.isWinPhone=ii,B.isWindows=Kd,B.isYandex=Vs,B.mobileModel=Ps,B.mobileVendor=Ms,B.osName=xs,B.osVersion=As,B.parseUserAgent=l,B.setUserAgent=ne,B.useDeviceData=ll,B.useDeviceSelectors=f1,B.useMobileOrientation=d1,B.withOrientationChange=u1,B}var Yt=Sc();const Ec=(t,e)=>Ki(t,e),Ki=(t,e)=>{const r=qi(t,e);for(const n in r)if(Object.prototype.hasOwnProperty.call(r,n)){const i=r[n];if(typeof i=="object"&&!Array.isArray(i))r[n]=qi(i,e);else if(Array.isArray(i)){const s=i.map(o=>typeof o=="object"?Ki(o,e):o);r[n]=s}}return r},qi=(t,e)=>{const r=Ic(t),n=t.layout;if(!n||n.length===0)return r;let i=null;if(n.forEach(s=>{const o=e[s];i?o&&Oc(o,i):i=o}),i){const s=qi(i,e);for(const o in s)if(Object.prototype.hasOwnProperty.call(s,o)){const a=s[o];Object.prototype.hasOwnProperty.call(r,o)||(r[o]=a)}}return Ki(r,e)},Ic=t=>{const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&r.toLowerCase()!=="layout"&&(e[r]=t[r]);return e},Oc=(t,e)=>{for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Be=[];for(let t=0;t<256;++t)Be.push((t+256).toString(16).slice(1));function Tc(t,e=0){return(Be[t[e+0]]+Be[t[e+1]]+Be[t[e+2]]+Be[t[e+3]]+"-"+Be[t[e+4]]+Be[t[e+5]]+"-"+Be[t[e+6]]+Be[t[e+7]]+"-"+Be[t[e+8]]+Be[t[e+9]]+"-"+Be[t[e+10]]+Be[t[e+11]]+Be[t[e+12]]+Be[t[e+13]]+Be[t[e+14]]+Be[t[e+15]]).toLowerCase()}let Zi;const Rc=new Uint8Array(16);function Ac(){if(!Zi){if(typeof crypto=="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Zi=crypto.getRandomValues.bind(crypto)}return Zi(Rc)}const la={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function xc(t,e,r){var i,s,o;t=t||{};const n=(o=(s=t.random)!=null?s:(i=t.rng)==null?void 0:i.call(t))!=null?o:Ac();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Tc(n)}function Nc(t,e,r){return la.randomUUID&&!t?la.randomUUID():xc(t)}function Yi(t){try{return JSON.parse(JSON.stringify(t))}catch(e){return console.warn("Failed to copy object:",e),null}}const ca=(t,e)=>{if(!t||!e)return null;let r=null;return r=Yi(t),r&&(r=Ec(r,e)),r};function kc(t){return L(this,null,function*(){return new Promise(e=>setTimeout(e,t))})}function ua(i,s){return L(this,arguments,function*(t,e,r=Bl,n=Wl){let o=0;for(;o<r;){const a=yield t();if(a!==null)return a;o++,o<r&&(yield kc(n))}return e()})}const Dc=(t,e,r)=>{const n=t.reduce((s,o)=>(s.push(...o.supportedTemplates),s),[]),i=e.find(s=>s.id===r);return n.includes(i==null?void 0:i.client.templateId)},Mc=(t,e)=>{if(!t||!e)return!1;const r=t.find(i=>i.id===e);return(r==null?void 0:r.type)!=="PROCESSING"},Pc=(t,e)=>{const r=t.reduce((o,a)=>(o.push(...a.supportedTemplates),o),[]),n=Array.from(new Set(e.filter(o=>!o.final&&$l.includes(o.type)).map(o=>o.client.templateId)));function i(o,a){const u=new Set(o);return a.filter(h=>!u.has(h))}const s=i(r,n);return{isAllTemplatesSupported:s.length===0,unsupportedSteps:s.length>0?s:void 0}},Or={setAuthTokenToLs:(t,e,r,n,i)=>{const s=localStorage.getItem(Kr),o=s?JSON.parse(s):{},a={authToken:t,tokenExpiredIn:i,workflowId:n,sessionId:r};o[e]=a,localStorage.setItem(Kr,JSON.stringify(o))},getAuthTokenLs:()=>{const t=localStorage.getItem(Kr);if(!t)return null;try{const e=JSON.parse(t);return e&&typeof e=="object"&&!Array.isArray(e)?e:null}catch(e){return null}},removeAuthTokenLs:t=>{if(!t)return!1;const e=localStorage.getItem(Kr);if(!e)return!1;try{const r=JSON.parse(e);return Object.prototype.hasOwnProperty.call(r,t)?(delete r[t],localStorage.setItem(Kr,JSON.stringify(r)),!0):!1}catch(r){return!1}}},Xi=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Ji=t=>/^[^:{}\s]+:[^:{}\s]+$/.test(t),Qi={setSessionIdWorkflowIdToLs:(t,e)=>{const r=localStorage.getItem(or);let n={};if(r)try{const i=JSON.parse(r);Xi(i)&&(n=i)}catch(i){if(Ji(r)){const[s,o]=r.split(":");s&&o&&(n={[o]:s})}}n[e]=t,localStorage.setItem(or,JSON.stringify(n))},getSessionIdWorkflowIdFromLS:()=>{const t=localStorage.getItem(or);if(!t)return null;try{const e=JSON.parse(t);return Xi(e)?e:null}catch(e){if(Ji(t)){const[r,n]=t.split(":");if(r&&n)return{[n]:r}}return null}},removeSessionIdWorkflowIdFromLS:({workflowId:t=""})=>{const e=localStorage.getItem(or);if(!e)return!1;if(!t)return localStorage.removeItem(or),!0;try{const r=JSON.parse(e);if(!Xi(r))return!1;const n=r;return Object.prototype.hasOwnProperty.call(n,t)?(delete n[t],localStorage.setItem(or,JSON.stringify(n)),!0):!1}catch(r){if(Ji(e)){const[,n]=e.split(":");return n===t?(localStorage.removeItem(or),!0):!1}return!1}}},Uc=t=>{var n;let e;const r=Nc();try{e=(n=window.localStorage.getItem(t))!=null?n:r,window.localStorage.setItem(t,e)}catch(i){e=r}return e};function Lc(t){return Object.prototype.toString.call(t)==="[object Object]"&&Object.keys(t).length>0}function Fc(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function Vc(){return typeof document=="undefined"?null:document.documentElement.getAttribute("lang")||null}function $c(){return typeof navigator!="undefined"?navigator.language:null}const Bc=t=>{const e=jl,r=typeof t=="string"?t:null,n=Vc(),i=$c();return r||n||i||e},Wc=t=>{try{return new URL(t).searchParams.get("sessionId")}catch(e){return null}};function da(t){return!("error"in t)}function es(t){try{let e=t;!t.includes("://")&&t.includes(".")&&(e=`http://${t}`);const r=new URL(e),n=r.hostname,i=r.protocol==="https:",s=r.port?parseInt(r.port,10):void 0;return{host:n,isSecure:i,port:s}}catch(e){return null}}const fa=()=>{if(typeof window=="undefined")return"SERVER_SIDE_RENDERING";if(!document.referrer)return window.location.origin;try{return new URL(document.referrer).origin}catch(t){return window.location.origin}},ts=t=>({deviceId:Uc(Hl),metadata:{platform:"browser",osVersion:`${Yt.osVersion}`,hostAppId:fa(),host:fa(),name:navigator.userAgent,deviceModel:`${Yt.osName}/${Yt.osVersion} ${Yt.browserName}/${Yt.fullBrowserVersion}`,hostAppVersion:`${Yt.browserName}/${Yt.fullBrowserVersion}`},deviceType:"browser",heartbeatCadence:2,serial:"",macAddress:""}),ha={apiKeyAuthTokenCollection:{},sessionProperties:[],currentSessionData:null,sessionRestoreMode:!1,processingTransformedTemplate:null,nonce:void 0,currentStepId:null,layout:null,currentScreenConfig:null,workflowId:null,modulesConfig:{},workflow:null,externalModules:[],serviceToken:void 0,startConfig:{},listener:()=>{}},Hc=(t,e)=>G(O({},ha),{setApiKeyAuthTokenCollection:(r,n,i)=>{t({apiKeyAuthTokenCollection:{authToken:n,apiKey:r,tokenExpiredIn:i}})},setSessionProperties:r=>{t({sessionProperties:r})},setServiceSessionToken:r=>{t({serviceToken:r})},setListener:r=>{t({listener:r})},getCurrentSessionDataLs:()=>{const r=Qi.getSessionIdWorkflowIdFromLS(),n=e().workflowId,s=r&&r[n];return n&&s?{workflowId:n,sessionId:s}:null},setCurrentSessionDataLsAndStore:r=>{Qi.setSessionIdWorkflowIdToLs(r.sessionId,r.workflowId),t(()=>({currentSessionData:r}))},removeCurrentSessionDataLsAndStore:()=>{const r=e().startConfig,n="apiKey"in r&&typeof r.apiKey=="string"?r.apiKey:"",i=e().workflowId;n?Or.removeAuthTokenLs(n):Qi.removeSessionIdWorkflowIdFromLS({workflowId:i}),t(()=>({currentSessionData:null})),t({_sessionIdFromUrl:null})},getCurrentSessionId(){const r=e().currentSessionData;return r?r.sessionId:null},setWorkflowId:r=>{t(()=>({workflowId:r}))},setWorkflow:r=>{t(()=>({workflow:r}))},setLayout:r=>{t(()=>({layout:r}))},setCurrentStepId:r=>{t(()=>({currentStepId:r}))},setSessionRestoreMode:r=>{t(()=>({sessionRestoreMode:r}))},setNonce:r=>{t(()=>({nonce:r}))},getNonce:()=>e().nonce,resetProps:()=>t(()=>O({},ha)),setStartConfig:r=>{t(()=>({startConfig:r}))}});class be{constructor({errorCode:e,errorCodeKey:r,message:n,underlyingError:i,underlyingBaseError:s,domain:o,module:a,errorEnumName:u,shortDomainCode:h}){this.errorCode=e,this.errorCodeKey=r,this.message=n,this.underlyingError=i,this.underlyingBaseError=s,this.module=a,this.domain=o,this.errorEnumName=u,this.shortDomainCode=h}static getErrorKey(e,r){const n=Object.keys(r).find(i=>r[i]===e);if(!n)throw new Error(`Invalid errorCode: ${e} in enum`);return n}get lastUnderlyingError(){let e=this.underlyingBaseError;for(;(e==null?void 0:e.underlyingBaseError)instanceof be;)e=e.underlyingBaseError;return e==null?void 0:e.underlyingError}toObject(){const e={errorCode:this.errorCode,errorCodeKey:this.errorCodeKey,errorEnumName:this.errorEnumName,message:this.message,module:this.module,underlyingError:this.underlyingError,lastUnderlineError:this.lastUnderlyingError};return this.underlyingBaseError&&this.underlyingBaseError instanceof be&&(e.underlyingBaseError=this.underlyingBaseError.toObject()),e}get shortChain(){let e=`${this.shortDomainCode}:${this.errorCode}${this.underlyingError?"-"+this.underlyingError:""}`;return this.underlyingBaseError instanceof be&&(e+=`-${this.underlyingBaseError.shortChain}`),e}get fullChain(){let e=`${this.module}.${this.domain}:${this.errorCodeKey}${this.underlyingError?"-"+this.underlyingError:""}`;return this.underlyingBaseError instanceof be&&(e+=`-${this.underlyingBaseError.fullChain}`),e}}class pa extends HTMLElement{}function ma(t,e){if(e.displayName?console.log(`Register module: ${e.displayName}`):console.error('Missed "displayName" when register module'),e.getSupportedTemplates&&typeof e.getSupportedTemplates=="function"){const r=e.getSupportedTemplates();console.log(`${e==null?void 0:e.displayName} supported templates: ${r.join(", ")}`)}else console.error('Missed "getSupportedTemplates" method when register module');if(e.initialize&&typeof e.initialize=="function"||console.error(`${e==null?void 0:e.displayName} "initialize" method was not implemented`),e.deinitialize&&typeof e.deinitialize=="function"||console.error(`${e==null?void 0:e.displayName} "deinitialize" method was not implemented`),e.isReady&&typeof e.isReady=="function"||console.error(`${e==null?void 0:e.displayName} "isReady" method was not implemented`),e.getIdentifier&&typeof e.getIdentifier=="function"){const r=e.getIdentifier();console.log(`Module id: ${r}`)}else console.error('Missed "getIdentifier" when register module');customElements.get(e.getIdentifier())?console.log(`Module ${t} has already registered`):customElements.define(t,e),console.log("-------")}const kt=class kt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,zr);super({errorCode:e,errorCodeKey:s,errorEnumName:kt.ERROR_ENUM_NAME,module:kt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:kt.ERROR_ENUM_NAME,shortDomainCode:kt.SHORT_CODE})}};kt.MODULE=vt,kt.ERROR_ENUM_NAME="InitializeError",kt.SHORT_CODE="IN";let Sn=kt;const Dt=class Dt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,gn);super({errorCode:e,errorCodeKey:s,errorEnumName:Dt.ERROR_ENUM_NAME,module:Dt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Dt.ERROR_ENUM_NAME,shortDomainCode:Dt.SHORT_CODE})}};Dt.MODULE=vt,Dt.ERROR_ENUM_NAME="TokenInitializeError",Dt.SHORT_CODE="TI";let En=Dt;const Mt=class Mt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,gt);super({errorCode:e,errorCodeKey:s,errorEnumName:Mt.ERROR_ENUM_NAME,module:Mt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Mt.ERROR_ENUM_NAME,shortDomainCode:Mt.SHORT_CODE})}};Mt.MODULE=vt,Mt.ERROR_ENUM_NAME="PrepareWorkflowError",Mt.SHORT_CODE="PW";let At=Mt;const Pt=class Pt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,Ve);super({errorCode:e,errorCodeKey:s,errorEnumName:Pt.ERROR_ENUM_NAME,module:Pt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Pt.ERROR_ENUM_NAME,shortDomainCode:Pt.SHORT_CODE})}};Pt.MODULE=vt,Pt.ERROR_ENUM_NAME="ConfigureError",Pt.SHORT_CODE="CFG";let We=Pt;const Ut=class Ut extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,$e);super({errorCode:e,errorCodeKey:s,errorEnumName:Ut.ERROR_ENUM_NAME,module:Ut.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Ut.ERROR_ENUM_NAME,shortDomainCode:Ut.SHORT_CODE})}};Ut.MODULE=vt,Ut.ERROR_ENUM_NAME="WorkflowError",Ut.SHORT_CODE="SC";let ze=Ut;const Lt=class Lt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,Ot);super({errorCode:e,errorCodeKey:s,errorEnumName:Lt.ERROR_ENUM_NAME,module:Lt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Lt.ERROR_ENUM_NAME,shortDomainCode:Lt.SHORT_CODE})}};Lt.MODULE=vt,Lt.ERROR_ENUM_NAME="ConnectionError",Lt.SHORT_CODE="CO";let nn=Lt;const Ft=class Ft extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,it);super({errorCode:e,errorCodeKey:s,errorEnumName:Ft.ERROR_ENUM_NAME,module:Ft.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Ft.ERROR_ENUM_NAME,shortDomainCode:Ft.SHORT_CODE})}};Ft.MODULE=vt,Ft.ERROR_ENUM_NAME="SessionError",Ft.SHORT_CODE="SE";let sn=Ft;const Vt=class Vt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,qt);super({errorCode:e,errorCodeKey:s,errorEnumName:Vt.ERROR_ENUM_NAME,module:Vt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Vt.ERROR_ENUM_NAME,shortDomainCode:Vt.SHORT_CODE})}};Vt.MODULE=vt,Vt.ERROR_ENUM_NAME="StartSessionError",Vt.SHORT_CODE="ST";let cr=Vt;const $t=class $t extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,Gr);super({errorCode:e,errorCodeKey:s,errorEnumName:$t.ERROR_ENUM_NAME,module:$t.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:$t.ERROR_ENUM_NAME,shortDomainCode:$t.SHORT_CODE})}};$t.MODULE=vt,$t.ERROR_ENUM_NAME="DeinitializationError",$t.SHORT_CODE="DE";let In=$t;const Bt=class Bt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,ct);super({errorCode:e,errorCodeKey:s,errorEnumName:Bt.ERROR_ENUM_NAME,module:Bt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Bt.ERROR_ENUM_NAME,shortDomainCode:Bt.SHORT_CODE})}};Bt.MODULE=vt,Bt.ERROR_ENUM_NAME="WorkflowPlatformError",Bt.SHORT_CODE="WPE";let On=Bt;class Tr{constructor(){this.webSocket=null,this.callbacks=new Set,this.connected=!1}static getInstance(){return Tr.instance||(Tr.instance=new Tr),Tr.instance}isConnected(){return this.connected}connect({host:e,isSecure:r=!0,token:n,port:i}){return this.connected?Promise.resolve():new Promise(s=>{const o=`ws${r?"s":""}://${e}${i?`:${i}`:""}/ws/device?Authorization=Connection%20${n}`;this.webSocket=new WebSocket(o),this.webSocket.onopen=()=>{this.connected=!0,s()},this.webSocket.onerror=()=>s(),this.webSocket.onmessage=a=>{this.callbacks.forEach(u=>u(a.data))},this.webSocket.onclose=a=>{this.connected=!1,this.webSocket=null,console.log("Socket connection closed",a)}})}onMessage(e){this.callbacks.add(e)}clearSubscriptions(){this.callbacks.clear()}close(){var e;(e=this.webSocket)==null||e.close(),this.webSocket=null,this.connected=!1,this.callbacks.clear()}}const ur=Tr.getInstance();var jc=0;function c(t,e,r,n,i,s){e||(e={});var o,a,u=e;if("ref"in u)for(a in u={},e)a=="ref"?o=e[a]:u[a]=e[a];var h={type:t,props:u,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--jc,__i:-1,__u:0,__source:i,__self:s};if(typeof t=="function"&&(o=t.defaultProps))for(a in o)u[a]===void 0&&(u[a]=o[a]);return oe.vnode&&oe.vnode(h),h}const rs=Ni(void 0),_a=({perform:t,children:e,setIsProcessingCallback:r})=>c(rs.Provider,{value:{perform:t,setIsProcessingCallback:r},children:e}),dr=()=>{const t=Qr(rs);if(!t)throw new Error("usePerform must be used within a PerformProvider");return{perform:t.perform}},zc=()=>{const t=Qr(rs);if(!t)throw new Error("useSetIsProcessingCallback must be used within a Context Provider");return{setIsProcessingCallback:t.setIsProcessingCallback}},Gc={width:"86px",height:"86px",flex:"0 0 86px",marginBottom:"16px",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center"},dt={INFO:"INFO",INFO_DETAILS:"INFO_DETAILS",STATUS:"STATUS",PROGRESS:"PROGRESS",QUESTIONS:"QUESTIONS",CAMERA:"CAMERA",GALLERY:"GALLERY",GEOLOCATION:"GEOLOCATION"},Tn={LEFT:"LEFT",CENTER:"CENTER",RIGHT:"RIGHT"},Rn={ASPECT_FILL:"ASPECT_FILL",ASPECT_FIT:"ASPECT_FIT",FILL:"FILL"},Rr={TEXT_EXPANDABLE:"text_expandable",TEXT_SINGLE_LINE:"text_single_line",SELECTOR_OPTIONS:"selector_options",SELECTOR_BUTTONS:"selector_buttons",SELECTOR_DROPDOWN:"selector_dropdown",MULTI_SELECTOR_DROPDOWN:"multi_selector_dropdown"},An={FREE_TEXT:"FREE_TEXT",EMAIL:"EMAIL",NUMBER:"NUMBER",SECURE:"SECURE"},on="#005fcc",xn="idv-gui",Nn={DECODING_FAILED:"DECODING_FAILED"},ns={text:"text",selector:"selector",multiSelector:"multiSelector"},ga={NOT_EMPTY:"notEmpty",REGEX:"regex"};function va(t){return t===Tn.CENTER?"center":t===Tn.RIGHT?"right":"left"}function is(t){if(typeof t=="object"&&t!==null)for(const e in t)typeof t[e]=="object"?is(t[e]):t[e]==="true"?t[e]=!0:t[e]==="false"&&(t[e]=!1);return t}function Kc(t){return Object.entries(t).map(([e,r])=>({id:e,value:typeof r=="string"?r.trim():r})).filter(e=>!!e.value)}const qc=t=>Array.isArray(t)?t.length===0:t===0?!1:!t;function le(t){return t&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)?t:void 0}const Zc=(t,e)=>t.reduce((r,n)=>{var i,s,o;if(n.answerType===ns.text&&(i=n.property)!=null&&i.id){const a=e.find(u=>u.name===n.property.id);if(a!=null&&a.string)return G(O({},r),{[n.id]:a.string})}if(n.answerType===ns.selector&&(s=n.property)!=null&&s.id){const a=e.find(u=>u.name===n.property.id);if(a!=null&&a.string)return G(O({},r),{[n.id]:a.string})}if(n.answerType===ns.multiSelector&&(o=n.property)!=null&&o.id){const a=e.find(u=>u.name===n.property.id);if(a!=null&&a.array)return G(O({},r),{[n.id]:a.array})}return r},{}),wa=t=>new Promise((e,r)=>{const n=new FileReader;n.onload=()=>{const i=n.result;if(typeof i=="string"){const s=i.split(",")[1];e(s)}else r(new Error("Unexpected result type"))},n.onerror=()=>r(n.error),n.readAsDataURL(t)}),Yc=()=>L(null,null,function*(){try{return(yield navigator.mediaDevices.getUserMedia({video:!0})).getTracks().forEach(e=>e.stop()),"allowed"}catch(t){return(t==null?void 0:t.name)==="NotAllowedError"?"denied":"error"}}),Xc=()=>String.fromCharCode(Math.floor(Math.random()*26)+97)+Number(Math.random()).toString(16).slice(2)+Date.now().toString(16).slice(4),ya=({indicatorColor:t})=>{const e=ot(null),r=le(t)||"#000000",n=60,i=5,s=.75,o=(n-i)/2,a=2*Math.PI*o,u=1-s,h=360/1e3;return st(()=>{if(!e.current)return;let _=!0,f=0,l=performance.now();function y(v){if(!_)return;const d=v-l;l=v,f=(f+h*d)%360,e.current&&(e.current.style.transform=`rotate(${f}deg)`),requestAnimationFrame(y)}return requestAnimationFrame(y),()=>{_=!1}},[]),c("svg",{ref:e,width:n,height:n,viewBox:`0 0 ${n} ${n}`,children:c("circle",{cx:n/2,cy:n/2,r:o,fill:"none",stroke:r,strokeWidth:i,strokeDasharray:`${a*s} ${a*u}`,strokeDashoffset:0,strokeLinecap:"butt",transform:`rotate(-45 ${n/2} ${n/2})`})})};function Jc({size:t,color:e}){return c("svg",{width:t||86,height:t||86,viewBox:"0 0 87 86",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("ellipse",{cx:"43.4053",cy:"43",rx:"40",ry:"40",transform:"rotate(90 43.4053 43)",stroke:"#FF3B30",strokeWidth:"3"}),c("path",{d:"M56.9053 29L29.4053 56.5",stroke:e||"#FF3B30",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M29.4053 29L56.9053 56.5",stroke:e||"#FF3B30",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Qc({size:t}){return c("svg",{width:t||48,height:t||48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("circle",{cx:"24.5",cy:"24",r:"18",stroke:"#0E1F97",strokeWidth:"3"}),c("path",{d:"M17.3803 18.3406V29.2496H15.0739V20.5298H15.0099L12.5117 22.0959V20.0504L15.2124 18.3406H17.3803Z",fill:"#0E1F97"}),c("path",{d:"M23.2927 29.3988C22.4724 29.3988 21.7426 29.2656 21.1034 28.9993C20.4678 28.7294 19.9688 28.3619 19.6066 27.8967C19.2444 27.4315 19.0633 26.9041 19.0633 26.3146C19.0633 25.8601 19.1663 25.4428 19.3722 25.0629C19.5818 24.6793 19.8659 24.3615 20.2245 24.1094C20.5832 23.8537 20.9845 23.6903 21.4284 23.6193V23.5447C20.846 23.4276 20.3737 23.1452 20.0115 22.6978C19.6492 22.2468 19.4681 21.723 19.4681 21.1264C19.4681 20.5618 19.6333 20.0593 19.9635 19.619C20.2938 19.1751 20.7465 18.8271 21.3218 18.5749C21.9007 18.3192 22.5576 18.1914 23.2927 18.1914C24.0278 18.1914 24.683 18.3192 25.2583 18.5749C25.8371 18.8306 26.2916 19.1804 26.6219 19.6243C26.9521 20.0646 27.1191 20.5653 27.1226 21.1264C27.1191 21.7266 26.9344 22.2504 26.5686 22.6978C26.2029 23.1452 25.7341 23.4276 25.1624 23.5447V23.6193C25.5992 23.6903 25.9951 23.8537 26.3502 24.1094C26.7089 24.3615 26.993 24.6793 27.2025 25.0629C27.4156 25.4428 27.5239 25.8601 27.5274 26.3146C27.5239 26.9041 27.341 27.4315 26.9788 27.8967C26.6166 28.3619 26.1159 28.7294 25.4767 28.9993C24.841 29.2656 24.113 29.3988 23.2927 29.3988ZM23.2927 27.7049C23.6585 27.7049 23.9781 27.6392 24.2515 27.5078C24.5249 27.3729 24.738 27.1882 24.8907 26.9538C25.047 26.7159 25.1251 26.4425 25.1251 26.1335C25.1251 25.8175 25.0452 25.5387 24.8854 25.2972C24.7256 25.0522 24.509 24.8604 24.2355 24.7219C23.9621 24.5799 23.6478 24.5089 23.2927 24.5089C22.9411 24.5089 22.6269 24.5799 22.3499 24.7219C22.0729 24.8604 21.8545 25.0522 21.6947 25.2972C21.5384 25.5387 21.4603 25.8175 21.4603 26.1335C21.4603 26.4425 21.5367 26.7159 21.6894 26.9538C21.8421 27.1882 22.0569 27.3729 22.3339 27.5078C22.6109 27.6392 22.9305 27.7049 23.2927 27.7049ZM23.2927 22.831C23.5981 22.831 23.8698 22.7688 24.1077 22.6445C24.3456 22.5202 24.532 22.348 24.667 22.1278C24.8019 21.9077 24.8694 21.6538 24.8694 21.3661C24.8694 21.082 24.8019 20.8335 24.667 20.6204C24.532 20.4038 24.3474 20.2351 24.113 20.1143C23.8786 19.9901 23.6052 19.9279 23.2927 19.9279C22.9838 19.9279 22.7103 19.9901 22.4724 20.1143C22.2345 20.2351 22.048 20.4038 21.9131 20.6204C21.7817 20.8335 21.716 21.082 21.716 21.3661C21.716 21.6538 21.7835 21.9077 21.9184 22.1278C22.0534 22.348 22.2398 22.5202 22.4777 22.6445C22.7156 22.7688 22.9873 22.831 23.2927 22.831Z",fill:"#0E1F97"}),c("path",{d:"M31.65 27.5877V20.0451H33.557V27.5877H31.65ZM28.8322 24.7699V22.8629H36.3748V24.7699H28.8322Z",fill:"#0E1F97"})]})}function eu({size:t,color:e}){return c("svg",{width:t||20,height:t||20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M14.3976 12.2816C14.2402 12.2816 14.0863 12.235 13.9555 12.1478C13.8246 12.0605 13.7225 11.9364 13.6623 11.7913C13.602 11.6461 13.5862 11.4864 13.6169 11.3322C13.6476 11.1781 13.7234 11.0365 13.8346 10.9254C13.9459 10.8143 14.0877 10.7386 14.242 10.7079C14.3964 10.6772 14.5564 10.6929 14.7018 10.753C14.8473 10.8131 14.9716 10.9149 15.059 11.0456C15.1465 11.1762 15.1932 11.3298 15.1932 11.4869C15.193 11.6976 15.1091 11.8995 14.9599 12.0485C14.8108 12.1974 14.6086 12.2813 14.3976 12.2816ZM5.60241 12.2816C5.44501 12.2816 5.29115 12.235 5.16026 12.1478C5.02938 12.0605 4.92736 11.9364 4.8671 11.7913C4.80684 11.6461 4.79105 11.4864 4.82173 11.3322C4.85241 11.1781 4.92817 11.0365 5.03944 10.9254C5.15071 10.8143 5.2925 10.7386 5.44686 10.7079C5.60122 10.6772 5.76123 10.6929 5.90665 10.753C6.05207 10.8131 6.17638 10.9149 6.26384 11.0456C6.35131 11.1762 6.39801 11.3298 6.39804 11.4869C6.39784 11.6976 6.31396 11.8995 6.1648 12.0485C6.01564 12.1975 5.81339 12.2813 5.60241 12.2816ZM14.6829 7.4962L16.2732 4.74639C16.2949 4.70883 16.309 4.66736 16.3147 4.62435C16.3204 4.58134 16.3176 4.53763 16.3064 4.49571C16.2952 4.4538 16.2758 4.41451 16.2493 4.38007C16.2229 4.34564 16.1899 4.31674 16.1523 4.29502C16.1147 4.27331 16.0732 4.2592 16.0301 4.25352C15.987 4.24783 15.9432 4.25067 15.9012 4.26187C15.8592 4.27308 15.8199 4.29243 15.7854 4.31882C15.7509 4.34521 15.722 4.37813 15.7002 4.41569L14.0899 7.20023C12.8585 6.63913 11.4755 6.32669 9.99985 6.32669C8.52419 6.32669 7.14135 6.63958 5.90995 7.20023L4.29979 4.41569C4.27807 4.37812 4.24915 4.34519 4.21468 4.31877C4.18021 4.29236 4.14087 4.27299 4.0989 4.26175C4.05694 4.25052 4.01316 4.24765 3.97009 4.25331C3.92701 4.25897 3.88547 4.27304 3.84784 4.29472C3.8102 4.31641 3.77722 4.34528 3.75077 4.37969C3.72431 4.4141 3.7049 4.45338 3.69365 4.49528C3.6824 4.53718 3.67953 4.58088 3.68519 4.62389C3.69086 4.6669 3.70496 4.70837 3.72668 4.74594L5.31705 7.4962C2.5863 8.97904 0.718522 11.739 0.445312 14.9999H19.5547C19.2812 11.739 17.4135 8.97904 14.6829 7.4962Z",fill:e||"#626262"})})}function tu({size:t}){return c("svg",{width:t||20,height:t||20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8697 8.22896C14.0747 8.43399 14.0747 8.7664 13.8697 8.97143L9.99844 12.8427L6.12721 8.97143C5.92218 8.7664 5.92218 8.43399 6.12721 8.22896C6.33223 8.02394 6.66464 8.02394 6.86967 8.22896L9.99844 11.3577L13.1272 8.22896C13.3322 8.02394 13.6646 8.02394 13.8697 8.22896Z",fill:"#787878"})})}const ru=({size:t,color:e})=>c("svg",{width:t||20,height:t||20,viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("g",{clipPath:"url(#clip0_6789_106796)",children:c("path",{d:"M18.1829 14.9885C17.9034 15.6343 17.5725 16.2288 17.1892 16.7753C16.6667 17.5204 16.2389 18.0362 15.9092 18.3226C15.3981 18.7927 14.8505 19.0334 14.2641 19.0471C13.8432 19.0471 13.3355 18.9273 12.7445 18.6843C12.1517 18.4424 11.6068 18.3226 11.1086 18.3226C10.5861 18.3226 10.0257 18.4424 9.42633 18.6843C8.82603 18.9273 8.34243 19.054 7.97269 19.0665C7.41037 19.0905 6.84988 18.8429 6.29042 18.3226C5.93334 18.0111 5.48671 17.4771 4.95166 16.7206C4.37759 15.9127 3.90563 14.9759 3.53589 13.908C3.13991 12.7544 2.94141 11.6373 2.94141 10.5559C2.94141 9.31706 3.20904 8.24861 3.74512 7.35325C4.16643 6.63407 4.72692 6.06675 5.42841 5.65028C6.12991 5.23381 6.88787 5.02158 7.70414 5.008C8.15077 5.008 8.73647 5.14618 9.46432 5.41774C10.1901 5.69022 10.6561 5.82839 10.8605 5.82839C11.0132 5.82839 11.5309 5.66682 12.4086 5.34471C13.2385 5.046 13.939 4.92231 14.5128 4.97103C16.0678 5.09654 17.236 5.70961 18.0129 6.81412C16.6222 7.65688 15.9343 8.83726 15.948 10.3515C15.9605 11.531 16.3883 12.5125 17.2291 13.2918C17.6102 13.6535 18.0357 13.9331 18.5091 14.1316C18.4065 14.4294 18.2981 14.7147 18.1829 14.9885ZM14.6166 0.952815C14.6166 1.87728 14.279 2.74045 13.6059 3.53939C12.7936 4.48918 11.8111 5.03801 10.7457 4.9514C10.7321 4.8405 10.7242 4.72377 10.7242 4.60111C10.7242 3.71363 11.1105 2.76384 11.7965 1.98726C12.139 1.59407 12.5746 1.26713 13.1028 1.00633C13.6298 0.749416 14.1284 0.607338 14.5972 0.583008C14.6109 0.706594 14.6166 0.830189 14.6166 0.952803V0.952815Z",fill:e||"#626262"})}),c("defs",{children:c("clipPath",{id:"clip0_6789_106796",children:c("rect",{width:"19.4597",height:"19.458",fill:"white",transform:"translate(0.996094)"})})})]});function nu({size:t}){return c("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M20 12H6",stroke:"#8C8C8C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M13 19L6 12L13 5",stroke:"#8C8C8C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function iu({size:t}){return c("svg",{width:t||48,height:t||48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M8.25 37.5C7.69772 37.5 7.25 37.0523 7.25 36.5L7.25 13C7.25 12.4477 7.69771 12 8.25 12L40.75 12C41.3023 12 41.75 12.4477 41.75 13L41.75 36.5C41.75 37.0523 41.3023 37.5 40.75 37.5L8.25 37.5Z",stroke:"#0E1F97",strokeWidth:"3"}),c("path",{d:"M24.5 29.5C21.8766 29.5 19.75 27.3734 19.75 24.75C19.75 22.1266 21.8766 20 24.5 20C27.1234 20 29.25 22.1266 29.25 24.75C29.25 27.3734 27.1234 29.5 24.5 29.5Z",stroke:"#0E1F97",strokeWidth:"4"}),c("rect",{x:"6.5",y:"23.3999",width:"12",height:"2.4",fill:"#0E1F97"}),c("rect",{x:"29.9004",y:"23.3999",width:"12",height:"2.4",fill:"#0E1F97"})]})}function su({size:t,color:e}){return c("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M12 23C18.0746 23 23 18.0746 23 12C23 5.92545 18.0746 1 12 0.999999C5.92545 0.999999 1 5.92545 1 12C1 18.0746 5.92545 23 12 23ZM12 2.86607C17.0433 2.86607 21.1339 6.9567 21.1339 12C21.1339 17.0433 17.0433 21.1339 12 21.1339C6.9567 21.1339 2.86607 17.0433 2.86607 12C2.86607 6.9567 6.9567 2.86607 12 2.86607Z",fill:e||"#8C8C8C"}),c("path",{d:"M13 7C13 6.73478 12.8946 6.48043 12.7071 6.29289C12.5196 6.10536 12.2652 6 12 6C11.7348 6 11.4804 6.10536 11.2929 6.29289C11.1054 6.48043 11 6.73478 11 7C11 7.26522 11.1054 7.51957 11.2929 7.70711C11.4804 7.89464 11.7348 8 12 8C12.2652 8 12.5196 7.89464 12.7071 7.70711C12.8946 7.51957 13 7.26522 13 7Z",fill:e||"#8C8C8C"}),c("rect",{x:"13",y:"18",width:"2",height:"8",transform:"rotate(-180 13 18)",fill:"#8C8C8C"})]})}function ou({size:t}){return c("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("rect",{x:"12.5",y:"1.5",width:"10",height:"21",rx:"1.5",stroke:"#8C8C8C"}),c("path",{d:"M1 10.5C0.723858 10.5 0.5 10.7239 0.5 11C0.5 11.2761 0.723858 11.5 1 11.5V10.5ZM9.35355 11.3536C9.54882 11.1583 9.54882 10.8417 9.35355 10.6464L6.17157 7.46447C5.97631 7.2692 5.65973 7.2692 5.46447 7.46447C5.2692 7.65973 5.2692 7.97631 5.46447 8.17157L8.29289 11L5.46447 13.8284C5.2692 14.0237 5.2692 14.3403 5.46447 14.5355C5.65973 14.7308 5.97631 14.7308 6.17157 14.5355L9.35355 11.3536ZM1 11.5H9V10.5H1V11.5Z",fill:"#8C8C8C"}),c("path",{d:"M15 2H20C20 2.55228 19.5523 3 19 3H16C15.4477 3 15 2.55228 15 2Z",fill:"#8C8C8C"}),c("circle",{cx:"17.5",cy:"20",r:"1",fill:"#8C8C8C"})]})}function au({size:t}){return c("svg",{width:t||48,height:t||48,viewBox:"0 0 49 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("circle",{cx:"15.5004",cy:"10.8002",r:"3.6",stroke:"#0E1F97",strokeWidth:"3"}),c("circle",{cx:"35.2998",cy:"19.7998",r:"3",stroke:"#0E1F97",strokeWidth:"3"}),c("path",{d:"M28.0146 20.3999C29.2496 18.4972 30.705 17.9696 32.2994 18.2728M42.5841 20.3999C41.3491 18.4972 39.8938 17.9696 38.2994 18.2728",stroke:"#0E1F97",strokeWidth:"3"}),c("path",{d:"M12.5 41.7002V30.6002H9.5V19.2002H21.5V30.6002H18.5V41.7002",stroke:"#0E1F97",strokeWidth:"3"}),c("path",{d:"M32.2998 41.7001V37.2001H29.2998L33.4998 27.6001H37.0998L41.2998 37.2001H38.2998V41.7001",stroke:"#0E1F97",strokeWidth:"3"})]})}const ba=({size:t,color:e})=>c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,fill:e||"rgba(0,0,0,0.6)",children:c("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}),lu=({size:t,color:e})=>c("svg",{width:t?t*3:39,height:t||13,viewBox:"0 0 39 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M5.88952 5.98264C6.70681 5.48369 7.28459 4.49575 7.28459 3.40906C7.28459 1.34699 5.65607 0 3.60916 0C1.56225 0 0 1.34743 0 3.67543V5.42175H1.49815V3.675C1.49815 2.27819 2.44624 1.49642 3.61046 1.49642C4.77468 1.49642 5.60583 2.29465 5.60583 3.40906C5.60583 4.52347 4.70798 5.42132 3.54376 5.42132H1.49815V9.21326H2.995V6.75186H3.57711C5.04061 6.75186 6.00516 7.88272 6.03851 9.21326H7.60163C7.57391 7.89658 6.94373 6.56778 5.89082 5.98264",fill:e||"#8C8C8C"}),c("path",{d:"M37.5857 2.6262V3.57429C37.1863 2.97573 36.4877 2.57812 35.4902 2.57812C33.6608 2.57812 32.2969 4.04163 32.2969 5.92092C32.2969 7.78332 33.6608 9.26371 35.4902 9.26371C36.4379 9.26371 37.1201 8.88127 37.5857 8.29916V9.21391H38.9994V2.6262H37.5857ZM35.6566 7.83183C34.592 7.83183 33.8271 7.00025 33.8271 5.91919C33.8271 4.83813 34.592 4.00654 35.6566 4.00654C36.7212 4.00654 37.5025 4.83813 37.5025 5.91919C37.5025 7.00025 36.7229 7.83183 35.6566 7.83183Z",fill:e||"#8C8C8C"}),c("path",{d:"M27.5078 6.0384C27.5078 7.33559 26.8426 7.81808 25.9945 7.81808C25.1465 7.81808 24.4812 7.33559 24.4812 6.0384V2.62891H22.9844V5.9717C22.9844 8.16717 24.1152 9.26339 25.9945 9.26339C27.8738 9.26339 29.0047 8.16587 29.0047 5.9717V2.62891H27.5078V6.0384Z",fill:e||"#8C8C8C"}),c("path",{d:"M11.2922 2.57812C9.44578 2.57812 8.01562 4.09143 8.01562 5.93781C8.01562 7.78419 9.44491 9.26371 11.342 9.26371C12.4893 9.26371 13.3209 8.86481 14.003 8.14974L13.1879 7.18519C12.7388 7.58409 12.1735 7.86691 11.3753 7.86691C10.5771 7.86691 9.82865 7.46758 9.59693 6.60264H14.5184C14.578 6.34086 14.6059 6.07286 14.6016 5.80441C14.6016 3.94201 13.1381 2.57812 11.2922 2.57812ZM9.51248 5.42197C9.71214 4.55574 10.4437 3.97536 11.3749 3.97536C12.3061 3.97536 12.938 4.54058 13.1212 5.42197H9.51248Z",fill:e||"#8C8C8C"}),c("path",{d:"M31.4988 0.0664062H30.002V9.2134H31.4988V0.0664062Z",fill:e||"#8C8C8C"}),c("path",{d:"M20.572 3.57429C20.2394 3.00864 19.4745 2.57812 18.4766 2.57812C16.7302 2.57812 15.2832 4.04163 15.2832 5.92092C15.2832 7.78332 16.7302 9.21261 18.4766 9.21261C19.4247 9.21261 20.0232 8.92978 20.4888 8.34637V8.94537C20.4888 10.2426 19.5741 10.7082 18.6927 10.7082C17.8113 10.7082 17.1127 10.275 16.9797 9.32782H15.5162C15.5829 10.991 16.913 12.0565 18.6927 12.0565C20.4724 12.0565 21.9844 11.0421 21.9844 8.84662V2.6262H20.572V3.57429ZM18.6429 7.78202C17.5783 7.78202 16.8134 7.00025 16.8134 5.91962C16.8134 4.839 17.5783 4.00698 18.6429 4.00698C19.7075 4.00698 20.4888 4.83856 20.4888 5.91962C20.4888 7.00068 19.7071 7.78202 18.6429 7.78202Z",fill:e||"#8C8C8C"})]});function cu({size:t,color:e}){return c("svg",{width:t||86,height:t||86,viewBox:"0 0 86 86",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("ellipse",{cx:"43",cy:"43",rx:"40",ry:"40",transform:"rotate(90 43 43)",stroke:e||"#FCB937",strokeWidth:"3"}),c("path",{d:"M40.8789 48.5352L40.5859 25H44.9805L44.6875 48.5352H40.8789ZM42.7832 60.4736C42.002 60.4736 41.3428 60.2051 40.8057 59.668C40.2686 59.1309 40 58.4717 40 57.6904C40 56.8929 40.2686 56.2337 40.8057 55.7129C41.3428 55.1758 42.002 54.9072 42.7832 54.9072C43.5807 54.9072 44.2399 55.1758 44.7607 55.7129C45.2979 56.2337 45.5664 56.8929 45.5664 57.6904C45.5664 58.4717 45.2979 59.1309 44.7607 59.668C44.2399 60.2051 43.5807 60.4736 42.7832 60.4736Z",fill:e||"#FCB937"})]})}function uu(){return c("svg",{width:"113",height:"16",viewBox:"0 0 113 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M1.35197 12V3.27273H4.6247C5.29515 3.27273 5.85765 3.39773 6.3122 3.64773C6.76958 3.89773 7.11475 4.24148 7.34771 4.67898C7.5835 5.11364 7.7014 5.60795 7.7014 6.16193C7.7014 6.72159 7.5835 7.21875 7.34771 7.65341C7.11191 8.08807 6.7639 8.4304 6.30367 8.6804C5.84345 8.92756 5.27668 9.05114 4.60339 9.05114H2.43435V7.75142H4.39032C4.78237 7.75142 5.10339 7.68324 5.35339 7.54688C5.60339 7.41051 5.78805 7.22301 5.90737 6.98438C6.02953 6.74574 6.0906 6.47159 6.0906 6.16193C6.0906 5.85227 6.02953 5.57955 5.90737 5.34375C5.78805 5.10795 5.60197 4.92472 5.34913 4.79403C5.09913 4.66051 4.77668 4.59375 4.3818 4.59375H2.93293V12H1.35197ZM11.6478 12.1278C11.0086 12.1278 10.4546 11.9872 9.98587 11.706C9.51712 11.4247 9.15349 11.0312 8.89497 10.5256C8.63928 10.0199 8.51144 9.42898 8.51144 8.75284C8.51144 8.0767 8.63928 7.48437 8.89497 6.97585C9.15349 6.46733 9.51712 6.07244 9.98587 5.79119C10.4546 5.50994 11.0086 5.36932 11.6478 5.36932C12.287 5.36932 12.841 5.50994 13.3097 5.79119C13.7785 6.07244 14.1407 6.46733 14.3964 6.97585C14.6549 7.48437 14.7842 8.0767 14.7842 8.75284C14.7842 9.42898 14.6549 10.0199 14.3964 10.5256C14.1407 11.0312 13.7785 11.4247 13.3097 11.706C12.841 11.9872 12.287 12.1278 11.6478 12.1278ZM11.6563 10.892C12.0029 10.892 12.2927 10.7969 12.5256 10.6065C12.7586 10.4134 12.9319 10.1548 13.0455 9.83097C13.162 9.5071 13.2202 9.14631 13.2202 8.74858C13.2202 8.34801 13.162 7.9858 13.0455 7.66193C12.9319 7.33523 12.7586 7.07528 12.5256 6.8821C12.2927 6.68892 12.0029 6.59233 11.6563 6.59233C11.3012 6.59233 11.0058 6.68892 10.77 6.8821C10.537 7.07528 10.3623 7.33523 10.2458 7.66193C10.1322 7.9858 10.0754 8.34801 10.0754 8.74858C10.0754 9.14631 10.1322 9.5071 10.2458 9.83097C10.3623 10.1548 10.537 10.4134 10.77 10.6065C11.0058 10.7969 11.3012 10.892 11.6563 10.892ZM17.1368 12L15.2874 5.45455H16.8598L18.0104 10.0568H18.0701L19.2462 5.45455H20.8016L21.9777 10.0312H22.0417L23.1752 5.45455H24.7519L22.8982 12H21.2917L20.0644 7.5767H19.9749L18.7476 12H17.1368ZM28.4192 12.1278C27.7629 12.1278 27.1962 11.9915 26.7189 11.7188C26.2445 11.4432 25.8794 11.054 25.6237 10.5511C25.368 10.0455 25.2402 9.45028 25.2402 8.76562C25.2402 8.09233 25.368 7.50142 25.6237 6.9929C25.8822 6.48153 26.243 6.08381 26.7061 5.79972C27.1692 5.51278 27.7132 5.36932 28.3382 5.36932C28.7416 5.36932 29.1223 5.43466 29.4802 5.56534C29.841 5.69318 30.1592 5.89205 30.4348 6.16193C30.7132 6.43182 30.932 6.77557 31.091 7.19318C31.2501 7.60795 31.3297 8.10227 31.3297 8.67614V9.14915H25.9646V8.10938H29.851C29.8481 7.81392 29.7842 7.55114 29.6592 7.32102C29.5342 7.08807 29.3595 6.90483 29.1351 6.77131C28.9135 6.63778 28.655 6.57102 28.3595 6.57102C28.0442 6.57102 27.7672 6.64773 27.5285 6.80114C27.2899 6.9517 27.1038 7.15057 26.9703 7.39773C26.8396 7.64205 26.7729 7.91051 26.77 8.20312V9.1108C26.77 9.49148 26.8396 9.81818 26.9788 10.0909C27.118 10.3608 27.3126 10.5682 27.5626 10.7131C27.8126 10.8551 28.1052 10.9261 28.4405 10.9261C28.6649 10.9261 28.868 10.8949 29.0499 10.8324C29.2317 10.767 29.3893 10.6719 29.5229 10.5469C29.6564 10.4219 29.7572 10.267 29.8254 10.0824L31.2658 10.2443C31.1749 10.625 31.0016 10.9574 30.7459 11.2415C30.493 11.5227 30.1692 11.7415 29.7743 11.8977C29.3794 12.0511 28.9277 12.1278 28.4192 12.1278ZM32.5147 12V5.45455H34.0105V6.54545H34.0786C34.198 6.16761 34.4025 5.87642 34.6923 5.67188C34.9849 5.46449 35.3187 5.3608 35.6937 5.3608C35.7789 5.3608 35.8741 5.36506 35.9792 5.37358C36.0872 5.37926 36.1767 5.3892 36.2477 5.40341V6.82244C36.1823 6.79972 36.0786 6.77983 35.9366 6.76278C35.7974 6.7429 35.6625 6.73295 35.5318 6.73295C35.2505 6.73295 34.9977 6.79403 34.7732 6.91619C34.5517 7.03551 34.3769 7.2017 34.2491 7.41477C34.1213 7.62784 34.0573 7.87358 34.0573 8.15199V12H32.5147ZM39.7807 12.1278C39.1245 12.1278 38.5577 11.9915 38.0804 11.7188C37.606 11.4432 37.241 11.054 36.9853 10.5511C36.7296 10.0455 36.6018 9.45028 36.6018 8.76562C36.6018 8.09233 36.7296 7.50142 36.9853 6.9929C37.2438 6.48153 37.6046 6.08381 38.0677 5.79972C38.5307 5.51278 39.0748 5.36932 39.6998 5.36932C40.1032 5.36932 40.4839 5.43466 40.8418 5.56534C41.2026 5.69318 41.5208 5.89205 41.7964 6.16193C42.0748 6.43182 42.2935 6.77557 42.4526 7.19318C42.6117 7.60795 42.6912 8.10227 42.6912 8.67614V9.14915H37.3262V8.10938H41.2126C41.2097 7.81392 41.1458 7.55114 41.0208 7.32102C40.8958 7.08807 40.7211 6.90483 40.4966 6.77131C40.2751 6.63778 40.0165 6.57102 39.7211 6.57102C39.4057 6.57102 39.1287 6.64773 38.8901 6.80114C38.6515 6.9517 38.4654 7.15057 38.3319 7.39773C38.2012 7.64205 38.1344 7.91051 38.1316 8.20312V9.1108C38.1316 9.49148 38.2012 9.81818 38.3404 10.0909C38.4796 10.3608 38.6742 10.5682 38.9242 10.7131C39.1742 10.8551 39.4668 10.9261 39.802 10.9261C40.0265 10.9261 40.2296 10.8949 40.4114 10.8324C40.5932 10.767 40.7509 10.6719 40.8844 10.5469C41.0179 10.4219 41.1188 10.267 41.187 10.0824L42.6273 10.2443C42.5364 10.625 42.3631 10.9574 42.1074 11.2415C41.8546 11.5227 41.5307 11.7415 41.1358 11.8977C40.741 12.0511 40.2893 12.1278 39.7807 12.1278ZM46.3053 12.1151C45.7911 12.1151 45.3308 11.983 44.9246 11.7188C44.5183 11.4545 44.1973 11.071 43.9615 10.5682C43.7257 10.0653 43.6078 9.45455 43.6078 8.7358C43.6078 8.00852 43.7271 7.39489 43.9658 6.89489C44.2073 6.39205 44.5325 6.01278 44.9416 5.7571C45.3507 5.49858 45.8067 5.36932 46.3095 5.36932C46.693 5.36932 47.0084 5.43466 47.2555 5.56534C47.5027 5.69318 47.6987 5.84801 47.8436 6.02983C47.9885 6.20881 48.1007 6.37784 48.1803 6.53693H48.2442V3.27273H49.7911V12H48.274V10.9688H48.1803C48.1007 11.1278 47.9857 11.2969 47.8351 11.4759C47.6845 11.652 47.4857 11.8026 47.2385 11.9276C46.9913 12.0526 46.6803 12.1151 46.3053 12.1151ZM46.7357 10.8494C47.0624 10.8494 47.3408 10.7614 47.5709 10.5852C47.801 10.4062 47.9757 10.1577 48.095 9.83949C48.2144 9.52131 48.274 9.15057 48.274 8.72727C48.274 8.30398 48.2144 7.93608 48.095 7.62358C47.9786 7.31108 47.8053 7.06818 47.5751 6.89489C47.3479 6.72159 47.068 6.63494 46.7357 6.63494C46.3919 6.63494 46.105 6.72443 45.8749 6.90341C45.6448 7.08239 45.4715 7.32955 45.355 7.64489C45.2385 7.96023 45.1803 8.32102 45.1803 8.72727C45.1803 9.13636 45.2385 9.50142 45.355 9.82244C45.4743 10.1406 45.649 10.392 45.8791 10.5767C46.1121 10.7585 46.3976 10.8494 46.7357 10.8494ZM54.2396 12V3.27273H55.7822V6.53693H55.8462C55.9257 6.37784 56.0379 6.20881 56.1828 6.02983C56.3277 5.84801 56.5237 5.69318 56.7709 5.56534C57.018 5.43466 57.3334 5.36932 57.7169 5.36932C58.2226 5.36932 58.6785 5.49858 59.0848 5.7571C59.4939 6.01278 59.8178 6.39205 60.0564 6.89489C60.2979 7.39489 60.4186 8.00852 60.4186 8.7358C60.4186 9.45455 60.3007 10.0653 60.0649 10.5682C59.8291 11.071 59.5081 11.4545 59.1018 11.7188C58.6956 11.983 58.2354 12.1151 57.7212 12.1151C57.3462 12.1151 57.0351 12.0526 56.7879 11.9276C56.5408 11.8026 56.3419 11.652 56.1913 11.4759C56.0436 11.2969 55.9285 11.1278 55.8462 10.9688H55.7567V12H54.2396ZM55.7524 8.72727C55.7524 9.15057 55.8121 9.52131 55.9314 9.83949C56.0535 10.1577 56.2283 10.4062 56.4555 10.5852C56.6856 10.7614 56.9641 10.8494 57.2908 10.8494C57.6317 10.8494 57.9172 10.7585 58.1473 10.5767C58.3774 10.392 58.5507 10.1406 58.6672 9.82244C58.7865 9.50142 58.8462 9.13636 58.8462 8.72727C58.8462 8.32102 58.7879 7.96023 58.6714 7.64489C58.555 7.32955 58.3817 7.08239 58.1516 6.90341C57.9214 6.72443 57.6345 6.63494 57.2908 6.63494C56.9612 6.63494 56.6814 6.72159 56.4513 6.89489C56.2212 7.06818 56.0464 7.31108 55.9271 7.62358C55.8106 7.93608 55.7524 8.30398 55.7524 8.72727ZM62.3462 14.4545C62.136 14.4545 61.9414 14.4375 61.7624 14.4034C61.5862 14.3722 61.4456 14.3352 61.3405 14.2926L61.6985 13.0909C61.9229 13.1563 62.1232 13.1875 62.2993 13.1847C62.4754 13.1818 62.6303 13.1264 62.7638 13.0185C62.9002 12.9134 63.0152 12.7372 63.109 12.4901L63.2411 12.1364L60.8675 5.45455H62.5039L64.0124 10.3977H64.0806L65.5933 5.45455H67.234L64.6132 12.7926C64.4911 13.1392 64.3291 13.4361 64.1274 13.6832C63.9257 13.9332 63.6786 14.1236 63.386 14.2543C63.0962 14.3878 62.7496 14.4545 62.3462 14.4545Z",fill:"#8C8C8C"}),c("path",{d:"M77.3427 8.45085C78.2228 7.91285 78.8451 6.84759 78.8451 5.67586C78.8451 3.45241 77.0913 2 74.8869 2C72.6825 2 71 3.45288 71 5.96307V7.84606H72.6134V5.9626C72.6134 4.45649 73.6345 3.61353 74.8883 3.61353C76.142 3.61353 77.0371 4.47423 77.0371 5.67586C77.0371 6.87748 76.0702 7.8456 74.8164 7.8456H72.6134V11.9343H74.2254V9.28026H74.8523C76.4284 9.28026 77.4672 10.4996 77.5031 11.9343H79.1865C79.1567 10.5146 78.478 9.08178 77.3441 8.45085",fill:"#BD7DFF"}),c("path",{d:"M111.477 4.83175V5.85404C111.047 5.20862 110.295 4.77991 109.221 4.77991C107.251 4.77991 105.782 6.35794 105.782 8.38431C105.782 10.3925 107.251 11.9887 109.221 11.9887C110.241 11.9887 110.976 11.5763 111.477 10.9487V11.935H113V4.83175H111.477ZM109.4 10.4448C108.253 10.4448 107.43 9.54811 107.43 8.38244C107.43 7.21678 108.253 6.32012 109.4 6.32012C110.546 6.32012 111.388 7.21678 111.388 8.38244C111.388 9.54811 110.548 10.4448 109.4 10.4448Z",fill:"#BD7DFF"}),c("path",{d:"M100.624 8.51104C100.624 9.90974 99.908 10.43 98.9947 10.43C98.0814 10.43 97.3649 9.90974 97.3649 8.51104V4.83472H95.7529V8.43912C95.7529 10.8064 96.9708 11.9884 98.9947 11.9884C101.019 11.9884 102.236 10.805 102.236 8.43912V4.83472H100.624V8.51104Z",fill:"#BD7DFF"}),c("path",{d:"M83.161 4.77991C81.1725 4.77991 79.6323 6.41165 79.6323 8.40252C79.6323 10.3934 81.1716 11.9887 83.2146 11.9887C84.4502 11.9887 85.3458 11.5586 86.0804 10.7876L85.2026 9.74752C84.7189 10.1776 84.1102 10.4826 83.2505 10.4826C82.3909 10.4826 81.5848 10.052 81.3353 9.11939H86.6355C86.6996 8.83711 86.7297 8.54814 86.725 8.25869C86.725 6.25053 85.1489 4.77991 83.161 4.77991ZM81.2443 7.84631C81.4594 6.91229 82.2472 6.28649 83.25 6.28649C84.2529 6.28649 84.9334 6.89594 85.1307 7.84631H81.2443Z",fill:"#BD7DFF"}),c("path",{d:"M104.923 2.07153H103.311V11.9344H104.923V2.07153Z",fill:"#BD7DFF"}),c("path",{d:"M93.1547 5.85404C92.7965 5.24412 91.9727 4.77991 90.8981 4.77991C89.0174 4.77991 87.459 6.35794 87.459 8.38431C87.459 10.3925 89.0174 11.9336 90.8981 11.9336C91.9191 11.9336 92.5637 11.6287 93.0651 10.9996V11.6455C93.0651 13.0442 92.08 13.5462 91.1308 13.5462C90.1816 13.5462 89.4292 13.0792 89.286 12.0578H87.7099C87.7818 13.8512 89.2142 15 91.1308 15C93.0474 15 94.6758 13.9063 94.6758 11.539V4.83175H93.1547V5.85404ZM91.0772 10.3911C89.9307 10.3911 89.1069 9.54811 89.1069 8.38291C89.1069 7.21772 89.9307 6.32058 91.0772 6.32058C92.2237 6.32058 93.0651 7.21725 93.0651 8.38291C93.0651 9.54858 92.2232 10.3911 91.0772 10.3911Z",fill:"#BD7DFF"})]})}const du=({size:t=100,color:e="#5DA600"})=>c("svg",{width:t,height:t,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("ellipse",{cx:"50.0001",cy:"49.9999",rx:"46.5116",ry:"46.5116",transform:"rotate(90 50.0001 49.9999)",stroke:e,strokeWidth:"3.48837"}),c("path",{d:"M74.4185 36.0469L44.7753 63.9539L30.2325 50.2627",stroke:e,strokeWidth:"3.48837",strokeLinecap:"round",strokeLinejoin:"round"})]}),fu=()=>c("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"9.5",stroke:"#7E57C5"}),c("rect",{x:"3",y:"3.5",width:"14",height:"14",rx:"7",fill:"#7E57C5"})]}),hu=()=>c("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"9.5",stroke:"#8C8C8C"})}),pu=()=>c("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"3.5",fill:"#7E57C5",stroke:"#7E57C5"}),c("path",{d:"M16.6335 6.71849C16.243 6.32797 15.6098 6.32797 15.2193 6.71849L9.09149 12.8463L5.12147 8.8763C4.73095 8.48577 4.09778 8.48577 3.70726 8.8763C3.31674 9.26682 3.31674 9.89999 3.70726 10.2905L9.09541 15.6787L16.6335 8.1327C17.0241 7.74218 17.0241 7.10902 16.6335 6.71849Z",fill:"white"})]}),mu=()=>c("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"3.5",stroke:"#8C8C8C"})}),_u=({color:t="#237804"})=>c("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.15385 2.15377C7.35887 2.35879 7.35887 2.69121 7.15385 2.89623L2.67894 7.3712L0.153877 4.84616C-0.0511485 4.64114 -0.0511485 4.30872 0.153877 4.1037C0.358901 3.89867 0.691313 3.89867 0.896338 4.1037L2.67894 5.88628L6.41139 2.15377C6.61641 1.94874 6.94882 1.94874 7.15385 2.15377Z",fill:t})}),gu=({color:t="#262626"})=>c("svg",{width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.86967 0.228964C9.07469 0.433989 9.07469 0.766401 8.86967 0.971426L4.99844 4.84266L1.12721 0.971426C0.922181 0.766401 0.922181 0.433989 1.12721 0.228964C1.33223 0.023939 1.66464 0.023939 1.86967 0.228964L4.99844 3.35773L8.12721 0.228964C8.33223 0.023939 8.66464 0.023939 8.86967 0.228964Z",fill:t})}),vu=({size:t,color:e="#ffffff"})=>c("svg",{width:t||40,height:t||40,viewBox:"0 0 23 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("g",{clipPath:"url(#clip0_2629_17763)",children:[c("path",{d:"M3.99993 17C3.53533 17 3.30303 17 3.10985 16.9616C2.31642 16.8038 1.69618 16.1835 1.5384 15.3901C1.49998 15.1969 1.49999 14.9646 1.5 14.5L1.50019 7.19993C1.50022 6.07985 1.50024 5.51981 1.71823 5.092C1.90998 4.71568 2.21594 4.40973 2.59226 4.21799C3.02008 4.00001 3.58012 4.00001 4.7002 4.00002L17 4.00004C17.4646 4.00004 17.6969 4.00005 17.8901 4.03847C18.6835 4.19628 19.3037 4.81649 19.4615 5.60989C19.4999 5.80308 19.4999 6.03539 19.4999 6.50001",stroke:e}),c("path",{d:"M6.7002 6.50002L18.2998 6.50002C18.8681 6.50002 19.2648 6.50021 19.5732 6.52541C19.8753 6.55011 20.0491 6.59615 20.1807 6.6631C20.4629 6.80691 20.6931 7.03711 20.8369 7.31935C20.9039 7.45093 20.9499 7.62472 20.9746 7.92677C20.9998 8.23519 21 8.63191 21 9.20021V15.7998C21 16.3681 20.9998 16.7648 20.9746 17.0733C20.9499 17.3753 20.9039 17.5491 20.8369 17.6807C20.6931 17.9629 20.4629 18.1931 20.1807 18.3369C20.0491 18.4039 19.8753 18.4499 19.5732 18.4746C19.2648 18.4998 18.8681 18.5 18.2998 18.5H6.7002C6.13188 18.5 5.73519 18.4998 5.42676 18.4746C5.12471 18.4499 4.95091 18.4039 4.81934 18.3369C4.53709 18.1931 4.30689 17.9629 4.16309 17.6807C4.09614 17.5491 4.05009 17.3753 4.02539 17.0733C4.0002 16.7648 3.99999 16.3681 4 15.7998L4 9.20021C4.00001 8.63192 4.00018 8.23519 4.02539 7.92677C4.05012 7.6245 4.09703 7.45096 4.16406 7.31935C4.30788 7.03712 4.5371 6.80691 4.81934 6.6631C4.95099 6.59606 5.12529 6.55012 5.42773 6.52541C5.73609 6.50024 6.13215 6.50001 6.7002 6.50002Z",stroke:e}),c("path",{d:"M4 16L7.66852 12.7391C8.11271 12.3443 8.80118 12.4217 9.14662 12.9053L11 15.5L14.6647 10.6138C15.075 10.0666 15.9013 10.0837 16.2887 10.6472L21 17.5",stroke:e}),c("path",{d:"M9 18.5L11 15.5L14.6647 10.6138C15.075 10.0666 15.9013 10.0837 16.2887 10.6472L21 17.5",stroke:e}),c("circle",{cx:"7.5",cy:"10",r:"1",fill:e})]}),c("defs",{children:c("clipPath",{id:"clip0_2629_17763",children:c("rect",{width:"22",height:"22",fill:"white",transform:"translate(0.5 1.90735e-05)"})})})]}),wu=({size:t=40,color:e="#ffffff"})=>c("svg",{width:t,height:t,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("g",{clipPath:"url(#clip0_2629_17707)",children:[c("path",{d:"M8.7041 3.67972H15.2959C15.3348 3.67968 15.3734 3.69153 15.4053 3.7139C15.4211 3.72502 15.4347 3.73877 15.4463 3.75394L15.4746 3.80472L16.1699 5.75394L16.2881 6.08597H19.5625C20.236 6.08597 20.7812 6.63125 20.7812 7.30472V17.1016C20.7812 17.7751 20.236 18.3203 19.5625 18.3203H4.4375C3.76403 18.3203 3.21875 17.7751 3.21875 17.1016V7.30472C3.21875 6.63125 3.76403 6.08597 4.4375 6.08597H7.71191L7.83008 5.75491L8.52832 3.80374L8.5293 3.80179C8.55486 3.73029 8.62456 3.6798 8.7041 3.67972ZM12 8.00784C9.82464 8.00784 8.0625 9.76998 8.0625 11.9453C8.0625 14.1207 9.82464 15.8828 12 15.8828C14.1754 15.8828 15.9375 14.1207 15.9375 11.9453C15.9375 9.76998 14.1754 8.00784 12 8.00784Z",stroke:e}),c("circle",{cx:"18",cy:"9.00003",r:"1",fill:e})]}),c("defs",{children:c("clipPath",{id:"clip0_2629_17707",children:c("rect",{width:"22",height:"22",fill:e})})})]}),yu=()=>c("div",{}),Se={WARNING:"warning_icon",SPINNER:"spinner",ERROR:"failure",AGE:"age",ANDROID:"android",ARROW:"arrow",APPLE:"apple",BACK:"back",BIOMETRIC:"biometricIcon",INFO:"info",TO_MOBILE:"toMobile",UNDERAGE:"underage",CROSS:"cross",REGULA_LOGO:"regulaLogo",POWERED_BY:"signature",SUCCESS:"success",DEFAULT:"empty",CIRCLE_SELECTED:"radio_selected",CIRCLE_NORMAL:"radio_normal",SQUARE_SELECTED:"square_selected",SQUARE_NORMAL:"square_normal",SELECTED:"selected",CHEVRON_DOWN:"chevronDown",CLOSE_ICON:"close_icon",GALLERY_ICON:"gallery",CAMERA_ICON:"camera"},ss={[Se.WARNING]:cu,[Se.SPINNER]:ya,[Se.ERROR]:Jc,[Se.AGE]:Qc,[Se.ANDROID]:eu,[Se.ARROW]:tu,[Se.APPLE]:ru,[Se.BACK]:nu,[Se.BIOMETRIC]:iu,[Se.INFO]:su,[Se.TO_MOBILE]:ou,[Se.UNDERAGE]:au,[Se.CROSS]:ba,[Se.REGULA_LOGO]:lu,[Se.DEFAULT]:yu,[Se.POWERED_BY]:uu,[Se.SUCCESS]:du,[Se.CIRCLE_SELECTED]:fu,[Se.CIRCLE_NORMAL]:hu,[Se.SQUARE_SELECTED]:pu,[Se.SQUARE_NORMAL]:mu,[Se.SELECTED]:_u,[Se.CHEVRON_DOWN]:gu,[Se.CLOSE_ICON]:ba,[Se.GALLERY_ICON]:vu,[Se.CAMERA_ICON]:wu},bu=({type:t,size:e,color:r})=>{const n=ss[t]||ss[Se.DEFAULT];return c(n,{size:e,color:r})},Fe=({imageId:t,imageURL:e,base64:r,contentMode:n=Rn.ASPECT_FILL,cornerRadius:i,backgroundColor:s})=>{const o=f=>{if(f===Rn.ASPECT_FILL)return"cover";if(f===Rn.ASPECT_FIT)return"contain";if(f===Rn.FILL)return"fill"},[a,u]=Le(!0),h=a&&e,_=()=>{u(!1)};if(r)return c("img",{style:{width:"100%",height:"100%",objectFit:o(n),borderRadius:i,backgroundColor:le(s)||"transparent",display:h?"none":"block"},src:r});if(t){const f=t in ss?t:"default";return c(bu,{type:f})}if(e)return c(je,{children:[h&&c("div",{style:{width:"100%",height:"100%",backgroundColor:"#e0e0e0",borderRadius:i}}),c("img",{style:{width:"100%",height:"100%",objectFit:o(n),borderRadius:i,backgroundColor:s,display:h?"none":"block"},src:e,onLoad:_})]})},Cu=({signature:t})=>c("footer",{"data-ui":"gui-footer",part:"gui-footer",style:{display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",height:"100%",width:"100%"},children:c("a",{href:"",children:c(Fe,{imageId:t==null?void 0:t.imageId})})}),Su={display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"18px",height:"36px",minWidth:"36px",border:"none",cursor:"pointer"},Eu=({dataTestId:t,responseBody:e,image:r,title:n,backgroundColor:i="transparent",cornerRadius:s,highlightColor:o})=>{var l;const[a,u]=Le(!1),h=a&&o?o:i,{perform:_}=dr();return c("button",{"data-ui":"gui-close-button",part:"gui-close-button","data-test":t,onClick:()=>{const y=JSON.parse(JSON.stringify(e));is(y),_(y)},className:"hover-button",style:G(O(O({},Su),s&&{borderRadius:s}),{backgroundColor:(l=le(h))!=null?l:"transparent"}),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[r&&c("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"24px",height:"24px"},children:c(Fe,O({},r))}),n&&c("div",{style:{padding:"0 5px"},children:c(xe,O({},n))})]})},Iu=({closeButton:t})=>c("header",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"center",paddingRight:"16px"},"data-ui":"gui-header",part:"gui-header",children:c("div",{children:t&&c(Eu,O({dataTestId:"close-btn"},t))})});function Ou(t){var i;const e=/\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g,r=[];let n=0;for(const s of t.matchAll(e)){const[o,a,u]=s,h=(i=s.index)!=null?i:0;h>n&&r.push(t.slice(n,h));const _=u.startsWith("http")?u:`https://${u}`;r.push(c("a",{href:_,target:"_blank",rel:"noopener noreferrer",children:a},h)),n=h+o.length}return n<t.length&&r.push(t.slice(n)),r}function Ca(t){const e=t.split(`
|
|
91
|
-
`);return e.flatMap((r,n)=>{const i=Ou(r);return n===e.length-1?i:[...i,c("br",{},"br-"+n)]})}const xe=({text:t,fontName:e="",fontSize:r="17px",fontColor:n,alignment:i=Tn.LEFT,backgroundColor:s,cornerRadius:o=0,htmlFor:a})=>{const u={fontFamily:[e,"-apple-system","BlinkMacSystemFont","sans-serif"].filter(Boolean).join(", "),fontSize:r,color:le(n)||"#000000",textAlign:va(i),backgroundColor:le(s)||"transparent",borderRadius:o},h=typeof t=="string"&&t.trim()&&Ca(t);return a?c("label",{"data-ui":"gui-label",part:"gui-label",style:u,htmlFor:a,children:h}):c("div",{"data-ui":"gui-label",part:"gui-label",style:u,children:h})},os=({title:t,image:e,responseBody:r,backgroundColor:n="transparent",cornerRadius:i,highlightColor:s,dataTestId:o,borderColor:a,borderWidth:u,type:h="RESPONSE_BODY",onClick:_})=>{var S,b;const[f,l]=Le(!1),y=f&&le(s)?s:n,{perform:v}=dr(),d=C=>{if(_&&_(C),h!=="RESPONSE_BODY")return;const T=JSON.parse(JSON.stringify(r));is(T),v(T)},m={height:"50px",width:"100%",padding:"10px 16px",textAlign:"center",fontSize:"16px",fontWeight:"400",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:5,borderRadius:i||0,borderStyle:a&&u?"solid":void 0,backgroundColor:(S=le(y))!=null?S:"transparent",borderColor:(b=le(a))!=null?b:"none",borderWidth:u!=null?u:0,overflow:"hidden",transition:".3s",outlineColor:on};return c("button",{"data-ui":"gui-button",part:"gui-button",type:h==="FORM"?"submit":"button","data-test":o,onClick:d,style:m,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e&&c(Fe,O({},e)),t&&c("div",{style:{flexGrow:e?0:1},children:c(xe,O({},t))})]})},Tu=r=>{var n=r,{items:t}=n,e=pr(n,["items"]);return c("div",{part:"gui-buttons","data-ui":"gui-buttons",style:O(O({},{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",alignSelf:"flex-end",justifyContent:"center",gap:"8px",width:"100%",height:"auto",alignContent:"flex-end",paddingTop:"20px"}),e),children:t.map(s=>{var o;return c(os,O({dataTestId:"button-"+((o=s.title)==null?void 0:o.text)},s),Xc())})})},Xt=({children:t,header:e,footer:r,backgroundColor:n="white",buttons:i})=>{const s=e?60:10,o=r?30:10,a={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",justifyContent:"center",margin:"0 auto",paddingTop:e?s+10+"px":"10px",paddingBottom:r?o+10+"px":"10px",paddingLeft:"20px",paddingRight:"20px",height:"100%",width:"100%",backgroundColor:le(n)};return c("div",{part:"gui-base-container","data-ui":"gui-base-container",id:"base-container",style:O({},a),children:[e&&c("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:s},children:c(Iu,{closeButton:e.closeButton})}),c("div",{style:{height:"100%",width:"100%",flex:"1 1 100%",overflow:"hidden"},children:t}),(i==null?void 0:i.length)&&c(Tu,{items:i}),r&&c("div",{style:{position:"absolute",bottom:"0",left:"0",width:"100%",height:o},children:c(Cu,O({},r))})]})},kn=({text:t,fontName:e="",fontColor:r,alignment:n=Tn.LEFT,fontSize:i=17,backgroundColor:s,cornerRadius:o=0})=>c("div",{"data-ui":"gui-description",part:"gui-description",style:{fontFamily:[e,"-apple-system","BlinkMacSystemFont","sans-serif"].filter(Boolean).join(", "),fontSize:i,textAlign:va(n),color:le(r)||"#000000",borderRadius:o,backgroundColor:le(s)||"transparent",whiteSpace:"pre-line"},children:t&&Ca(t)}),Ru=({header:t,footer:e,image:r,title:n,description:i,buttons:s,backgroundColor:o})=>{const a=ot(null),[u,h]=Le(!1);return st(()=>{a.current&&h(a.current.scrollHeight>a.current.clientHeight+2)},[]),c(Xt,{header:t,buttons:s,footer:e,backgroundColor:o,children:c("div",{part:"gui-status-screen",style:{display:"flex",justifyContent:u?"flex-start":"center",alignItems:"center",alignContent:"center",flex:1,height:"100%",flexDirection:"column"},children:[r&&c("div",{style:Gc,children:c(Fe,O({},r))}),(n==null?void 0:n.text)&&c("div",{ref:a,style:{width:"100%",overflow:u?"auto":"hidden"},children:c("div",{style:{margin:"0 auto",fontSize:"20px",fontWeight:700,maxWidth:"345px",textAlign:"center",lineHeight:"1.2",display:"flex",flexDirection:"column",justifyContent:u?"flex-start":"center",alignItems:"center",alignContent:"center"},children:n&&c(xe,O({},n))})}),i&&c("div",{style:{lineHeight:"28px",fontWeight:"400",marginTop:"16px"},children:c(kn,O({},i))})]})})},Au={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:"1.68"},xu={position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Nu=({title:t,header:e,footer:r,image:n,description:i,buttons:s,backgroundColor:o})=>c(Xt,{header:e,footer:r,buttons:s,backgroundColor:o,children:c(je,{children:c("div",{part:"gui-info-screen-container","data-ui":"gui-info-screen-container",id:"info-screen-container",style:G(O({},xu),{justifyContent:n?"flex-start":"center"}),children:[n&&c("div",{style:Au,children:c(Fe,O({},n))}),t&&c("div",{style:{marginBottom:20,lineHeight:"39.2px"},children:c(xe,O({},t))}),i&&c("div",{style:{lineHeight:"28px",fontWeight:"400"},children:c(kn,O({},i))})]})})}),ku=({indicatorColor:t="black"})=>c(je,{children:c(ya,{indicatorColor:t})}),Sa=({progressView:t,footer:e,backgroundColor:r})=>c(Xt,{footer:e,backgroundColor:r,children:c("div",{style:{flex:"1 1 100%",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",flexDirection:"column",gap:"20px",height:"100%",width:"100%"},children:c(ku,{indicatorColor:le(t==null?void 0:t.indicatorColor)||"#000000"})})}),Du=({title:t,description:e,image:r,backgroundColor:n,cornerRadius:i=0,isLastChild:s})=>c("div",{className:"details-item",style:G(O({},{display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderBottom:s?"none":"1px solid #E0E0E0",padding:"16px 0",gap:16}),{backgroundColor:le(n)||"transparent",borderRadius:i}),children:[c("div",{style:{flex:"0 1 auto"},children:[c("div",{style:{marginBottom:5,fontWeight:"bold",lineHeight:"21px"},children:c(xe,O({},t))}),c("div",{style:{lineHeight:"21px",fontWeight:"400"},children:c(kn,O({},e))})]}),c("div",{style:{aspectRatio:"1 / 1",width:120,height:120,flex:"0 0 120px"},children:c(Fe,O({},r))})]}),Mu={display:"flex",flexDirection:"column",padding:"0 16px"},Pu=({items:t,backgroundColor:e,cornerRadius:r=16})=>c("div",{className:"details",style:G(O({},Mu),{backgroundColor:le(e)||"white",borderRadius:r}),children:t.map((n,i)=>c(Du,O({isLastChild:i===t.length-1},n),i))}),Uu=({title:t,header:e,footer:r,details:n,buttons:i,backgroundColor:s})=>{const o=ot(null),[a,u]=Le(!1);return st(()=>{o.current&&u(o.current.scrollHeight>o.current.clientHeight)},[]),c(Xt,{header:e,buttons:i,footer:r,backgroundColor:s,children:c("div",{style:{display:"flex",flexDirection:"column",justifyContent:a?"flex-start":"center",height:"100%",minHeight:"100%",overflow:"auto"},ref:o,children:[c("div",{style:{marginBottom:t?"16px":"0",fontWeight:400,fontSize:"28px"},children:t&&c(xe,O({},t))}),n&&c(Pu,O({},n))]})})};var an=t=>t.type==="checkbox",fr=t=>t instanceof Date,Ye=t=>t==null;const Ea=t=>typeof t=="object";var Ne=t=>!Ye(t)&&!Array.isArray(t)&&Ea(t)&&!fr(t),Ia=t=>Ne(t)&&t.target?an(t.target)?t.target.checked:t.target.value:t,Lu=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,Oa=(t,e)=>t.has(Lu(e)),Fu=t=>{const e=t.constructor&&t.constructor.prototype;return Ne(e)&&e.hasOwnProperty("isPrototypeOf")},as=typeof window!="undefined"&&typeof window.HTMLElement!="undefined"&&typeof document!="undefined";function Pe(t){let e;const r=Array.isArray(t),n=typeof FileList!="undefined"?t instanceof FileList:!1;if(t instanceof Date)e=new Date(t);else if(!(as&&(t instanceof Blob||n))&&(r||Ne(t)))if(e=r?[]:Object.create(Object.getPrototypeOf(t)),!r&&!Fu(t))e=t;else for(const i in t)t.hasOwnProperty(i)&&(e[i]=Pe(t[i]));else return t;return e}var Dn=t=>/^\w*$/.test(t),Ae=t=>t===void 0,ls=t=>Array.isArray(t)?t.filter(Boolean):[],cs=t=>ls(t.replace(/["|']|\]/g,"").split(/\.|\[/)),F=(t,e,r)=>{if(!e||!Ne(t))return r;const n=(Dn(e)?[e]:cs(e)).reduce((i,s)=>Ye(i)?i:i[s],t);return Ae(n)||n===t?Ae(t[e])?r:t[e]:n},tt=t=>typeof t=="boolean",Ee=(t,e,r)=>{let n=-1;const i=Dn(e)?[e]:cs(e),s=i.length,o=s-1;for(;++n<s;){const a=i[n];let u=r;if(n!==o){const h=t[a];u=Ne(h)||Array.isArray(h)?h:isNaN(+i[n+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;t[a]=u,t=t[a]}};const Mn={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ft={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},xt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ta=ce.createContext(null);Ta.displayName="HookFormContext";const us=()=>ce.useContext(Ta);var Ra=(t,e,r,n=!0)=>{const i={defaultValues:e._defaultValues};for(const s in t)Object.defineProperty(i,s,{get:()=>{const o=s;return e._proxyFormState[o]!==ft.all&&(e._proxyFormState[o]=!n||ft.all),r&&(r[o]=!0),t[o]}});return i};const ds=typeof window!="undefined"?ce.useLayoutEffect:ce.useEffect;function Vu(t){const e=us(),{control:r=e.control,disabled:n,name:i,exact:s}=t||{},[o,a]=ce.useState(r._formState),u=ce.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ds(()=>r._subscribe({name:i,formState:u.current,exact:s,callback:h=>{!n&&a(O(O({},r._formState),h))}}),[i,n,s]),ce.useEffect(()=>{u.current.isValid&&r._setValid(!0)},[r]),ce.useMemo(()=>Ra(o,r,u.current,!1),[o,r])}var rt=t=>typeof t=="string",Aa=(t,e,r,n,i)=>rt(t)?(n&&e.watch.add(t),F(r,t,i)):Array.isArray(t)?t.map(s=>(n&&e.watch.add(s),F(r,s))):(n&&(e.watchAll=!0),r),fs=t=>Ye(t)||!Ea(t);function Nt(t,e,r=new WeakSet){if(fs(t)||fs(e))return t===e;if(fr(t)&&fr(e))return t.getTime()===e.getTime();const n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);for(const s of n){const o=t[s];if(!i.includes(s))return!1;if(s!=="ref"){const a=e[s];if(fr(o)&&fr(a)||Ne(o)&&Ne(a)||Array.isArray(o)&&Array.isArray(a)?!Nt(o,a,r):o!==a)return!1}}return!0}function $u(t){const e=us(),{control:r=e.control,name:n,defaultValue:i,disabled:s,exact:o,compute:a}=t||{},u=ce.useRef(i),h=ce.useRef(a),_=ce.useRef(void 0);h.current=a;const f=ce.useMemo(()=>r._getWatch(n,u.current),[r,n]),[l,y]=ce.useState(h.current?h.current(f):f);return ds(()=>r._subscribe({name:n,formState:{values:!0},exact:o,callback:v=>{if(!s){const d=Aa(n,r._names,v.values||r._formValues,!1,u.current);if(h.current){const m=h.current(d);Nt(m,_.current)||(y(m),_.current=m)}else y(d)}}}),[r,s,n,o]),ce.useEffect(()=>r._removeUnmounted()),l}function Bu(t){const e=us(),{name:r,disabled:n,control:i=e.control,shouldUnregister:s,defaultValue:o}=t,a=Oa(i._names.array,r),u=ce.useMemo(()=>F(i._formValues,r,F(i._defaultValues,r,o)),[i,r,o]),h=$u({control:i,name:r,defaultValue:u,exact:!0}),_=Vu({control:i,name:r,exact:!0}),f=ce.useRef(t),l=ce.useRef(void 0),y=ce.useRef(i.register(r,O(G(O({},t.rules),{value:h}),tt(t.disabled)?{disabled:t.disabled}:{})));f.current=t;const v=ce.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!F(_.errors,r)},isDirty:{enumerable:!0,get:()=>!!F(_.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!F(_.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!F(_.validatingFields,r)},error:{enumerable:!0,get:()=>F(_.errors,r)}}),[_,r]),d=ce.useCallback(C=>y.current.onChange({target:{value:Ia(C),name:r},type:Mn.CHANGE}),[r]),m=ce.useCallback(()=>y.current.onBlur({target:{value:F(i._formValues,r),name:r},type:Mn.BLUR}),[r,i._formValues]),S=ce.useCallback(C=>{const T=F(i._fields,r);T&&C&&(T._f.ref={focus:()=>C.focus&&C.focus(),select:()=>C.select&&C.select(),setCustomValidity:k=>C.setCustomValidity(k),reportValidity:()=>C.reportValidity()})},[i._fields,r]),b=ce.useMemo(()=>G(O({name:r,value:h},tt(n)||_.disabled?{disabled:_.disabled||n}:{}),{onChange:d,onBlur:m,ref:S}),[r,n,_.disabled,d,m,S,h]);return ce.useEffect(()=>{const C=i._options.shouldUnregister||s,T=l.current;T&&T!==r&&!a&&i.unregister(T),i.register(r,O(O({},f.current.rules),tt(f.current.disabled)?{disabled:f.current.disabled}:{}));const k=(x,P)=>{const me=F(i._fields,x);me&&me._f&&(me._f.mount=P)};if(k(r,!0),C){const x=Pe(F(i._options.defaultValues,r,f.current.defaultValue));Ee(i._defaultValues,r,x),Ae(F(i._formValues,r))&&Ee(i._formValues,r,x)}return!a&&i.register(r),l.current=r,()=>{(a?C&&!i._state.action:C)?i.unregister(r):k(r,!1)}},[r,i,a,s]),ce.useEffect(()=>{i._setDisabledField({disabled:n,name:r})},[n,r,i]),ce.useMemo(()=>({field:b,formState:_,fieldState:v}),[b,_,v])}const xa=t=>t.render(Bu(t));var Wu=(t,e,r,n,i)=>e?G(O({},r[t]),{types:G(O({},r[t]&&r[t].types?r[t].types:{}),{[n]:i||!0})}):{},ln=t=>Array.isArray(t)?t:[t],Na=()=>{let t=[];return{get observers(){return t},next:i=>{for(const s of t)s.next&&s.next(i)},subscribe:i=>(t.push(i),{unsubscribe:()=>{t=t.filter(s=>s!==i)}}),unsubscribe:()=>{t=[]}}};function ka(t,e){const r={};for(const n in t)if(t.hasOwnProperty(n)){const i=t[n],s=e[n];if(i&&Ne(i)&&s){const o=ka(i,s);Ne(o)&&(r[n]=o)}else t[n]&&(r[n]=s)}return r}var Qe=t=>Ne(t)&&!Object.keys(t).length,hs=t=>t.type==="file",ht=t=>typeof t=="function",Pn=t=>{if(!as)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},Da=t=>t.type==="select-multiple",ps=t=>t.type==="radio",Hu=t=>ps(t)||an(t),ms=t=>Pn(t)&&t.isConnected;function ju(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=Ae(t)?n++:t[e[n++]];return t}function zu(t){for(const e in t)if(t.hasOwnProperty(e)&&!Ae(t[e]))return!1;return!0}function ke(t,e){const r=Array.isArray(e)?e:Dn(e)?[e]:cs(e),n=r.length===1?t:ju(t,r),i=r.length-1,s=r[i];return n&&delete n[s],i!==0&&(Ne(n)&&Qe(n)||Array.isArray(n)&&zu(n))&&ke(t,r.slice(0,-1)),t}var Gu=t=>{for(const e in t)if(ht(t[e]))return!0;return!1};function Ma(t){return Array.isArray(t)||Ne(t)&&!Gu(t)}function _s(t,e={}){for(const r in t)Ma(t[r])?(e[r]=Array.isArray(t[r])?[]:{},_s(t[r],e[r])):Ye(t[r])||(e[r]=!0);return e}function Ar(t,e,r){r||(r=_s(e));for(const n in t)Ma(t[n])?Ae(e)||fs(r[n])?r[n]=_s(t[n],Array.isArray(t[n])?[]:{}):Ar(t[n],Ye(e)?{}:e[n],r[n]):r[n]=!Nt(t[n],e[n]);return r}const Pa={value:!1,isValid:!1},Ua={value:!0,isValid:!0};var La=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!Ae(t[0].attributes.value)?Ae(t[0].value)||t[0].value===""?Ua:{value:t[0].value,isValid:!0}:Ua:Pa}return Pa},Fa=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:n})=>Ae(t)?t:e?t===""?NaN:t&&+t:r&&rt(t)?new Date(t):n?n(t):t;const Va={isValid:!1,value:null};var $a=t=>Array.isArray(t)?t.reduce((e,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:e,Va):Va;function Ba(t){const e=t.ref;return hs(e)?e.files:ps(e)?$a(t.refs).value:Da(e)?[...e.selectedOptions].map(({value:r})=>r):an(e)?La(t.refs).value:Fa(Ae(e.value)?t.ref.value:e.value,t)}var Ku=(t,e,r,n)=>{const i={};for(const s of t){const o=F(e,s);o&&Ee(i,s,o._f)}return{criteriaMode:r,names:[...t],fields:i,shouldUseNativeValidation:n}},Un=t=>t instanceof RegExp,cn=t=>Ae(t)?t:Un(t)?t.source:Ne(t)?Un(t.value)?t.value.source:t.value:t,Wa=t=>({isOnSubmit:!t||t===ft.onSubmit,isOnBlur:t===ft.onBlur,isOnChange:t===ft.onChange,isOnAll:t===ft.all,isOnTouch:t===ft.onTouched});const Ha="AsyncFunction";var qu=t=>!!t&&!!t.validate&&!!(ht(t.validate)&&t.validate.constructor.name===Ha||Ne(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===Ha)),Zu=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),ja=(t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some(n=>t.startsWith(n)&&/^\.\w+/.test(t.slice(n.length))));const un=(t,e,r,n)=>{for(const s of r||Object.keys(t)){const o=F(t,s);if(o){const i=o,{_f:a}=i,u=pr(i,["_f"]);if(a){if(a.refs&&a.refs[0]&&e(a.refs[0],s)&&!n)return!0;if(a.ref&&e(a.ref,a.name)&&!n)return!0;if(un(u,e))break}else if(Ne(u)&&un(u,e))break}}};function za(t,e,r){const n=F(t,r);if(n||Dn(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const s=i.join("."),o=F(e,s),a=F(t,s);if(o&&!Array.isArray(o)&&r!==s)return{name:r};if(a&&a.type)return{name:s,error:a};if(a&&a.root&&a.root.type)return{name:`${s}.root`,error:a.root};i.pop()}return{name:r}}var Yu=(t,e,r,n)=>{r(t);const o=t,{name:i}=o,s=pr(o,["name"]);return Qe(s)||Object.keys(s).length>=Object.keys(e).length||Object.keys(s).find(a=>e[a]===(!n||ft.all))},Xu=(t,e,r)=>!t||!e||t===e||ln(t).some(n=>n&&(r?n===e:n.startsWith(e)||e.startsWith(n))),Ju=(t,e,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(e||t):(r?n.isOnBlur:i.isOnBlur)?!t:(r?n.isOnChange:i.isOnChange)?t:!0,Qu=(t,e)=>!ls(F(t,e)).length&&ke(t,e),ed=(t,e,r)=>{const n=ln(F(t,r));return Ee(n,"root",e[r]),Ee(t,r,n),t};function Ga(t,e,r="validate"){if(rt(t)||Array.isArray(t)&&t.every(rt)||tt(t)&&!t)return{type:r,message:rt(t)?t:"",ref:e}}var xr=t=>Ne(t)&&!Un(t)?t:{value:t,message:""},Ka=(t,e,r,n,i,s)=>L(null,null,function*(){const{ref:o,refs:a,required:u,maxLength:h,minLength:_,min:f,max:l,pattern:y,validate:v,name:d,valueAsNumber:m,mount:S}=t._f,b=F(r,d);if(!S||e.has(d))return{};const C=a?a[0]:o,T=W=>{i&&C.reportValidity&&(C.setCustomValidity(tt(W)?"":W||""),C.reportValidity())},k={},x=ps(o),P=an(o),me=x||P,_e=(m||hs(o))&&Ae(o.value)&&Ae(b)||Pn(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,ee=Wu.bind(null,d,n,k),Q=(W,X,ue,de=xt.maxLength,we=xt.minLength)=>{const ye=W?X:ue;k[d]=O({type:W?de:we,message:ye,ref:o},ee(W?de:we,ye))};if(s?!Array.isArray(b)||!b.length:u&&(!me&&(_e||Ye(b))||tt(b)&&!b||P&&!La(a).isValid||x&&!$a(a).isValid)){const{value:W,message:X}=rt(u)?{value:!!u,message:u}:xr(u);if(W&&(k[d]=O({type:xt.required,message:X,ref:C},ee(xt.required,X)),!n))return T(X),k}if(!_e&&(!Ye(f)||!Ye(l))){let W,X;const ue=xr(l),de=xr(f);if(!Ye(b)&&!isNaN(b)){const we=o.valueAsNumber||b&&+b;Ye(ue.value)||(W=we>ue.value),Ye(de.value)||(X=we<de.value)}else{const we=o.valueAsDate||new Date(b),ye=U=>new Date(new Date().toDateString()+" "+U),te=o.type=="time",z=o.type=="week";rt(ue.value)&&b&&(W=te?ye(b)>ye(ue.value):z?b>ue.value:we>new Date(ue.value)),rt(de.value)&&b&&(X=te?ye(b)<ye(de.value):z?b<de.value:we<new Date(de.value))}if((W||X)&&(Q(!!W,ue.message,de.message,xt.max,xt.min),!n))return T(k[d].message),k}if((h||_)&&!_e&&(rt(b)||s&&Array.isArray(b))){const W=xr(h),X=xr(_),ue=!Ye(W.value)&&b.length>+W.value,de=!Ye(X.value)&&b.length<+X.value;if((ue||de)&&(Q(ue,W.message,X.message),!n))return T(k[d].message),k}if(y&&!_e&&rt(b)){const{value:W,message:X}=xr(y);if(Un(W)&&!b.match(W)&&(k[d]=O({type:xt.pattern,message:X,ref:o},ee(xt.pattern,X)),!n))return T(X),k}if(v){if(ht(v)){const W=yield v(b,r),X=Ga(W,C);if(X&&(k[d]=O(O({},X),ee(xt.validate,X.message)),!n))return T(X.message),k}else if(Ne(v)){let W={};for(const X in v){if(!Qe(W)&&!n)break;const ue=Ga(yield v[X](b,r),C,X);ue&&(W=O(O({},ue),ee(X,ue.message)),T(ue.message),n&&(k[d]=W))}if(!Qe(W)&&(k[d]=O({ref:C},W),!n))return k}}return T(!0),k});const td={mode:ft.onSubmit,reValidateMode:ft.onChange,shouldFocusError:!0};function rd(t={}){let e=O(O({},td),t),r={submitCount:0,isDirty:!1,isReady:!1,isLoading:ht(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1},n={},i=Ne(e.defaultValues)||Ne(e.values)?Pe(e.defaultValues||e.values)||{}:{},s=e.shouldUnregister?{}:Pe(i),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},u,h=0;const _={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f=O({},_);const l={array:Na(),state:Na()},y=e.criteriaMode===ft.all,v=w=>I=>{clearTimeout(h),h=setTimeout(w,I)},d=w=>L(null,null,function*(){if(!e.disabled&&(_.isValid||f.isValid||w)){const I=e.resolver?Qe((yield P()).errors):yield _e(n,!0);I!==r.isValid&&l.state.next({isValid:I})}}),m=(w,I)=>{!e.disabled&&(_.isValidating||_.validatingFields||f.isValidating||f.validatingFields)&&((w||Array.from(a.mount)).forEach(A=>{A&&(I?Ee(r.validatingFields,A,I):ke(r.validatingFields,A))}),l.state.next({validatingFields:r.validatingFields,isValidating:!Qe(r.validatingFields)}))},S=(w,I=[],A,V,D=!0,M=!0)=>{if(V&&A&&!e.disabled){if(o.action=!0,M&&Array.isArray(F(n,w))){const H=A(F(n,w),V.argA,V.argB);D&&Ee(n,w,H)}if(M&&Array.isArray(F(r.errors,w))){const H=A(F(r.errors,w),V.argA,V.argB);D&&Ee(r.errors,w,H),Qu(r.errors,w)}if((_.touchedFields||f.touchedFields)&&M&&Array.isArray(F(r.touchedFields,w))){const H=A(F(r.touchedFields,w),V.argA,V.argB);D&&Ee(r.touchedFields,w,H)}(_.dirtyFields||f.dirtyFields)&&(r.dirtyFields=Ar(i,s)),l.state.next({name:w,isDirty:Q(w,I),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ee(s,w,I)},b=(w,I)=>{Ee(r.errors,w,I),l.state.next({errors:r.errors})},C=w=>{r.errors=w,l.state.next({errors:r.errors,isValid:!1})},T=(w,I,A,V)=>{const D=F(n,w);if(D){const M=F(s,w,Ae(A)?F(i,w):A);Ae(M)||V&&V.defaultChecked||I?Ee(s,w,I?M:Ba(D._f)):ue(w,M),o.mount&&d()}},k=(w,I,A,V,D)=>{let M=!1,H=!1;const ie={name:w};if(!e.disabled){if(!A||V){(_.isDirty||f.isDirty)&&(H=r.isDirty,r.isDirty=ie.isDirty=Q(),M=H!==ie.isDirty);const K=Nt(F(i,w),I);H=!!F(r.dirtyFields,w),K?ke(r.dirtyFields,w):Ee(r.dirtyFields,w,!0),ie.dirtyFields=r.dirtyFields,M=M||(_.dirtyFields||f.dirtyFields)&&H!==!K}if(A){const K=F(r.touchedFields,w);K||(Ee(r.touchedFields,w,A),ie.touchedFields=r.touchedFields,M=M||(_.touchedFields||f.touchedFields)&&K!==A)}M&&D&&l.state.next(ie)}return M?ie:{}},x=(w,I,A,V)=>{const D=F(r.errors,w),M=(_.isValid||f.isValid)&&tt(I)&&r.isValid!==I;if(e.delayError&&A?(u=v(()=>b(w,A)),u(e.delayError)):(clearTimeout(h),u=null,A?Ee(r.errors,w,A):ke(r.errors,w)),(A?!Nt(D,A):D)||!Qe(V)||M){const H=G(O(O({},V),M&&tt(I)?{isValid:I}:{}),{errors:r.errors,name:w});r=O(O({},r),H),l.state.next(H)}},P=w=>L(null,null,function*(){m(w,!0);const I=yield e.resolver(s,e.context,Ku(w||a.mount,n,e.criteriaMode,e.shouldUseNativeValidation));return m(w),I}),me=w=>L(null,null,function*(){const{errors:I}=yield P(w);if(w)for(const A of w){const V=F(I,A);V?Ee(r.errors,A,V):ke(r.errors,A)}else r.errors=I;return I}),_e=(V,D,...M)=>L(null,[V,D,...M],function*(w,I,A={valid:!0}){for(const ie in w){const K=w[ie];if(K){const H=K,{_f:ve}=H,He=pr(H,["_f"]);if(ve){const Y=a.array.has(ve.name),ae=K._f&&qu(K._f);ae&&_.validatingFields&&m([ve.name],!0);const j=yield Ka(K,a.disabled,s,y,e.shouldUseNativeValidation&&!I,Y);if(ae&&_.validatingFields&&m([ve.name]),j[ve.name]&&(A.valid=!1,I))break;!I&&(F(j,ve.name)?Y?ed(r.errors,j,ve.name):Ee(r.errors,ve.name,j[ve.name]):ke(r.errors,ve.name))}!Qe(He)&&(yield _e(He,I,A))}}return A.valid}),ee=()=>{for(const w of a.unMount){const I=F(n,w);I&&(I._f.refs?I._f.refs.every(A=>!ms(A)):!ms(I._f.ref))&&Ke(w)}a.unMount=new Set},Q=(w,I)=>!e.disabled&&(w&&I&&Ee(s,w,I),!Nt(U(),i)),W=(w,I,A)=>Aa(w,a,O({},o.mount?s:Ae(I)?i:rt(w)?{[w]:I}:I),A,I),X=w=>ls(F(o.mount?s:i,w,e.shouldUnregister?F(i,w,[]):[])),ue=(w,I,A={})=>{const V=F(n,w);let D=I;if(V){const M=V._f;M&&(!M.disabled&&Ee(s,w,Fa(I,M)),D=Pn(M.ref)&&Ye(I)?"":I,Da(M.ref)?[...M.ref.options].forEach(H=>H.selected=D.includes(H.value)):M.refs?an(M.ref)?M.refs.forEach(H=>{(!H.defaultChecked||!H.disabled)&&(Array.isArray(D)?H.checked=!!D.find(ie=>ie===H.value):H.checked=D===H.value||!!D)}):M.refs.forEach(H=>H.checked=H.value===D):hs(M.ref)?M.ref.value="":(M.ref.value=D,M.ref.type||l.state.next({name:w,values:Pe(s)})))}(A.shouldDirty||A.shouldTouch)&&k(w,D,A.shouldTouch,A.shouldDirty,!0),A.shouldValidate&&z(w)},de=(w,I,A)=>{for(const V in I){if(!I.hasOwnProperty(V))return;const D=I[V],M=w+"."+V,H=F(n,M);(a.array.has(w)||Ne(D)||H&&!H._f)&&!fr(D)?de(M,D,A):ue(M,D,A)}},we=(w,I,A={})=>{const V=F(n,w),D=a.array.has(w),M=Pe(I);Ee(s,w,M),D?(l.array.next({name:w,values:Pe(s)}),(_.isDirty||_.dirtyFields||f.isDirty||f.dirtyFields)&&A.shouldDirty&&l.state.next({name:w,dirtyFields:Ar(i,s),isDirty:Q(w,M)})):V&&!V._f&&!Ye(M)?de(w,M,A):ue(w,M,A),ja(w,a)&&l.state.next(G(O({},r),{name:w})),l.state.next({name:o.mount?w:void 0,values:Pe(s)})},ye=w=>L(null,null,function*(){o.mount=!0;const I=w.target;let A=I.name,V=!0;const D=F(n,A),M=K=>{V=Number.isNaN(K)||fr(K)&&isNaN(K.getTime())||Nt(K,F(s,A,K))},H=Wa(e.mode),ie=Wa(e.reValidateMode);if(D){let K,ve;const He=I.type?Ba(D._f):Ia(w),Y=w.type===Mn.BLUR||w.type===Mn.FOCUS_OUT,ae=!Zu(D._f)&&!e.resolver&&!F(r.errors,A)&&!D._f.deps||Ju(Y,F(r.touchedFields,A),r.isSubmitted,ie,H),j=ja(A,a,Y);Ee(s,A,He),Y?(!I||!I.readOnly)&&(D._f.onBlur&&D._f.onBlur(w),u&&u(0)):D._f.onChange&&D._f.onChange(w);const ge=k(A,He,Y),qe=!Qe(ge)||j;if(!Y&&l.state.next({name:A,type:w.type,values:Pe(s)}),ae)return(_.isValid||f.isValid)&&(e.mode==="onBlur"?Y&&d():Y||d()),qe&&l.state.next(O({name:A},j?{}:ge));if(!Y&&j&&l.state.next(O({},r)),e.resolver){const{errors:De}=yield P([A]);if(M(He),V){const he=za(r.errors,n,A),q=za(De,n,he.name||A);K=q.error,A=q.name,ve=Qe(De)}}else m([A],!0),K=(yield Ka(D,a.disabled,s,y,e.shouldUseNativeValidation))[A],m([A]),M(He),V&&(K?ve=!1:(_.isValid||f.isValid)&&(ve=yield _e(n,!0)));V&&(D._f.deps&&(!Array.isArray(D._f.deps)||D._f.deps.length>0)&&z(D._f.deps),x(A,ve,K,ge))}}),te=(w,I)=>{if(F(r.errors,I)&&w.focus)return w.focus(),1},z=(A,...V)=>L(null,[A,...V],function*(w,I={}){let D,M;const H=ln(w);if(e.resolver){const ie=yield me(Ae(w)?w:H);D=Qe(ie),M=w?!H.some(K=>F(ie,K)):D}else w?(M=(yield Promise.all(H.map(ie=>L(null,null,function*(){const K=F(n,ie);return yield _e(K&&K._f?{[ie]:K}:K)})))).every(Boolean),!(!M&&!r.isValid)&&d()):M=D=yield _e(n);return l.state.next(G(O(O({},!rt(w)||(_.isValid||f.isValid)&&D!==r.isValid?{}:{name:w}),e.resolver||!w?{isValid:D}:{}),{errors:r.errors})),I.shouldFocus&&!M&&un(n,te,w?H:a.mount),M}),U=(w,I)=>{let A=O({},o.mount?s:i);return I&&(A=ka(I.dirtyFields?r.dirtyFields:r.touchedFields,A)),Ae(w)?A:rt(w)?F(A,w):w.map(V=>F(A,V))},Z=(w,I)=>({invalid:!!F((I||r).errors,w),isDirty:!!F((I||r).dirtyFields,w),error:F((I||r).errors,w),isValidating:!!F(r.validatingFields,w),isTouched:!!F((I||r).touchedFields,w)}),re=w=>{w&&ln(w).forEach(I=>ke(r.errors,I)),l.state.next({errors:w?r.errors:{}})},Ie=(w,I,A)=>{const V=(F(n,w,{_f:{}})._f||{}).ref,ve=F(r.errors,w)||{},{ref:M,message:H,type:ie}=ve,K=pr(ve,["ref","message","type"]);Ee(r.errors,w,G(O(O({},K),I),{ref:V})),l.state.next({name:w,errors:r.errors,isValid:!1}),A&&A.shouldFocus&&V&&V.focus&&V.focus()},ne=(w,I)=>ht(w)?l.state.subscribe({next:A=>"values"in A&&w(W(void 0,I),A)}):W(w,I,!0),$=w=>l.state.subscribe({next:I=>{Xu(w.name,I.name,w.exact)&&Yu(I,w.formState||_,Qt,w.reRenderRoot)&&w.callback(G(O(O({values:O({},s)},r),I),{defaultValues:i}))}}).unsubscribe,J=w=>(o.mount=!0,f=O(O({},f),w.formState),$(G(O({},w),{formState:f}))),Ke=(w,I={})=>{for(const A of w?ln(w):a.mount)a.mount.delete(A),a.array.delete(A),I.keepValue||(ke(n,A),ke(s,A)),!I.keepError&&ke(r.errors,A),!I.keepDirty&&ke(r.dirtyFields,A),!I.keepTouched&&ke(r.touchedFields,A),!I.keepIsValidating&&ke(r.validatingFields,A),!e.shouldUnregister&&!I.keepDefaultValue&&ke(i,A);l.state.next({values:Pe(s)}),l.state.next(O(O({},r),I.keepDirty?{isDirty:Q()}:{})),!I.keepIsValid&&d()},Xe=({disabled:w,name:I})=>{(tt(w)&&o.mount||w||a.disabled.has(I))&&(w?a.disabled.add(I):a.disabled.delete(I))},pt=(w,I={})=>{let A=F(n,w);const V=tt(I.disabled)||tt(e.disabled);return Ee(n,w,G(O({},A||{}),{_f:O(G(O({},A&&A._f?A._f:{ref:{name:w}}),{name:w,mount:!0}),I)})),a.mount.add(w),A?Xe({disabled:tt(I.disabled)?I.disabled:e.disabled,name:w}):T(w,!0,I.value),G(O(O({},V?{disabled:I.disabled||e.disabled}:{}),e.progressive?{required:!!I.required,min:cn(I.min),max:cn(I.max),minLength:cn(I.minLength),maxLength:cn(I.maxLength),pattern:cn(I.pattern)}:{}),{name:w,onChange:ye,onBlur:ye,ref:D=>{if(D){pt(w,I),A=F(n,w);const M=Ae(D.value)&&D.querySelectorAll&&D.querySelectorAll("input,select,textarea")[0]||D,H=Hu(M),ie=A._f.refs||[];if(H?ie.find(K=>K===M):M===A._f.ref)return;Ee(n,w,{_f:O(O({},A._f),H?{refs:[...ie.filter(ms),M,...Array.isArray(F(i,w))?[{}]:[]],ref:{type:M.type,name:w}}:{ref:M})}),T(w,!1,void 0,M)}else A=F(n,w,{}),A._f&&(A._f.mount=!1),(e.shouldUnregister||I.shouldUnregister)&&!(Oa(a.array,w)&&o.action)&&a.unMount.add(w)}})},nt=()=>e.shouldFocusError&&un(n,te,a.mount),Ht=w=>{tt(w)&&(l.state.next({disabled:w}),un(n,(I,A)=>{const V=F(n,A);V&&(I.disabled=V._f.disabled||w,Array.isArray(V._f.refs)&&V._f.refs.forEach(D=>{D.disabled=V._f.disabled||w}))},0,!1))},mt=(w,I)=>A=>L(null,null,function*(){let V;A&&(A.preventDefault&&A.preventDefault(),A.persist&&A.persist());let D=Pe(s);if(l.state.next({isSubmitting:!0}),e.resolver){const{errors:M,values:H}=yield P();r.errors=M,D=Pe(H)}else yield _e(n);if(a.disabled.size)for(const M of a.disabled)ke(D,M);if(ke(r.errors,"root"),Qe(r.errors)){l.state.next({errors:{}});try{yield w(D,A)}catch(M){V=M}}else I&&(yield I(O({},r.errors),A)),nt(),setTimeout(nt);if(l.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Qe(r.errors)&&!V,submitCount:r.submitCount+1,errors:r.errors}),V)throw V}),Jt=(w,I={})=>{F(n,w)&&(Ae(I.defaultValue)?we(w,Pe(F(i,w))):(we(w,I.defaultValue),Ee(i,w,Pe(I.defaultValue))),I.keepTouched||ke(r.touchedFields,w),I.keepDirty||(ke(r.dirtyFields,w),r.isDirty=I.defaultValue?Q(w,Pe(F(i,w))):Q()),I.keepError||(ke(r.errors,w),_.isValid&&d()),l.state.next(O({},r)))},jt=(w,I={})=>{const A=w?Pe(w):i,V=Pe(A),D=Qe(w),M=D?i:V;if(I.keepDefaultValues||(i=A),!I.keepValues){if(I.keepDirtyValues){const H=new Set([...a.mount,...Object.keys(Ar(i,s))]);for(const ie of Array.from(H))F(r.dirtyFields,ie)?Ee(M,ie,F(s,ie)):we(ie,F(M,ie))}else{if(as&&Ae(w))for(const H of a.mount){const ie=F(n,H);if(ie&&ie._f){const K=Array.isArray(ie._f.refs)?ie._f.refs[0]:ie._f.ref;if(Pn(K)){const ve=K.closest("form");if(ve){ve.reset();break}}}}if(I.keepFieldsRef)for(const H of a.mount)we(H,F(M,H));else n={}}s=e.shouldUnregister?I.keepDefaultValues?Pe(i):{}:Pe(M),l.array.next({values:O({},M)}),l.state.next({values:O({},M)})}a={mount:I.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!_.isValid||!!I.keepIsValid||!!I.keepDirtyValues,o.watch=!!e.shouldUnregister,l.state.next({submitCount:I.keepSubmitCount?r.submitCount:0,isDirty:D?!1:I.keepDirty?r.isDirty:!!(I.keepDefaultValues&&!Nt(w,i)),isSubmitted:I.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:D?{}:I.keepDirtyValues?I.keepDefaultValues&&s?Ar(i,s):r.dirtyFields:I.keepDefaultValues&&w?Ar(i,w):I.keepDirty?r.dirtyFields:{},touchedFields:I.keepTouched?r.touchedFields:{},errors:I.keepErrors?r.errors:{},isSubmitSuccessful:I.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Ct=(w,I)=>jt(ht(w)?w(s):w,I),zt=(w,I={})=>{const A=F(n,w),V=A&&A._f;if(V){const D=V.refs?V.refs[0]:V.ref;D.focus&&(D.focus(),I.shouldSelect&&ht(D.select)&&D.select())}},Qt=w=>{r=O(O({},r),w)},at={control:{register:pt,unregister:Ke,getFieldState:Z,handleSubmit:mt,setError:Ie,_subscribe:$,_runSchema:P,_focusError:nt,_getWatch:W,_getDirty:Q,_setValid:d,_setFieldArray:S,_setDisabledField:Xe,_setErrors:C,_getFieldArray:X,_reset:jt,_resetDefaultValues:()=>ht(e.defaultValues)&&e.defaultValues().then(w=>{Ct(w,e.resetOptions),l.state.next({isLoading:!1})}),_removeUnmounted:ee,_disableForm:Ht,_subjects:l,_proxyFormState:_,get _fields(){return n},get _formValues(){return s},get _state(){return o},set _state(w){o=w},get _defaultValues(){return i},get _names(){return a},set _names(w){a=w},get _formState(){return r},get _options(){return e},set _options(w){e=O(O({},e),w)}},subscribe:J,trigger:z,register:pt,handleSubmit:mt,watch:ne,setValue:we,getValues:U,reset:Ct,resetField:Jt,clearErrors:re,unregister:Ke,setError:Ie,setFocus:zt,getFieldState:Z};return G(O({},at),{formControl:at})}function nd(t={}){const e=ce.useRef(void 0),r=ce.useRef(void 0),[n,i]=ce.useState({isDirty:!1,isValidating:!1,isLoading:ht(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,isReady:!1,defaultValues:ht(t.defaultValues)?void 0:t.defaultValues});if(!e.current)if(t.formControl)e.current=G(O({},t.formControl),{formState:n}),t.defaultValues&&!ht(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const o=rd(t),{formControl:a}=o,u=pr(o,["formControl"]);e.current=G(O({},u),{formState:n})}const s=e.current.control;return s._options=t,ds(()=>{const a=s._subscribe({formState:s._proxyFormState,callback:()=>i(O({},s._formState)),reRenderRoot:!0});return i(u=>G(O({},u),{isReady:!0})),s._formState.isReady=!0,a},[s]),ce.useEffect(()=>s._disableForm(t.disabled),[s,t.disabled]),ce.useEffect(()=>{t.mode&&(s._options.mode=t.mode),t.reValidateMode&&(s._options.reValidateMode=t.reValidateMode)},[s,t.mode,t.reValidateMode]),ce.useEffect(()=>{t.errors&&(s._setErrors(t.errors),s._focusError())},[s,t.errors]),ce.useEffect(()=>{t.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,t.shouldUnregister]),ce.useEffect(()=>{if(s._proxyFormState.isDirty){const a=s._getDirty();a!==n.isDirty&&s._subjects.state.next({isDirty:a})}},[s,n.isDirty]),ce.useEffect(()=>{t.values&&!Nt(t.values,r.current)?(s._reset(t.values,O({keepFieldsRef:!0},s._options.resetOptions)),r.current=t.values,i(a=>O({},a))):s._resetDefaultValues()},[s,t.values]),ce.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next(O({},s._formState))),s._removeUnmounted()}),e.current.formState=Ra(n,s),e.current}const Nr=(t,e)=>{const r={};return t.forEach((n,i)=>{if(n.type===ga.NOT_EMPTY&&(r.required=s=>e&&qc(s)?n.message:!0),n.type===ga.REGEX){const s=new RegExp(n.regex);r[`regex_${i}`]=o=>!e&&!o?!0:typeof o!="string"?n.message:s.test(o)||n.message}}),r},id=({isOpen:t,image:e})=>c("div",{"data-ui":"gui-custom-select-chevron",style:{width:"16px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center",transform:t?"rotate(180deg)":"none",transformOrigin:"50% 50%",transition:".2s",flexShrink:0},children:e?c(Fe,O({},e)):c(Fe,{imageId:"chevronDown"})}),sd=({isChosen:t,option:e,onOptionClickCallback:r,isHovered:n,onHover:i,onHoverEnd:s})=>{const o=t?e.layoutSelected.image:e.layout.image;return c("div",{style:{padding:"5px 8px",background:((u,h)=>{var _,f,l,y;if(!u&&!h)return(_=le(e.layout.backgroundColor))!=null?_:"transparent";if(!u&&h)return(f=le(e.layoutSelected.backgroundColor))!=null?f:"transparent";if(u&&!h)return(l=le(e.layout.highlightColor))!=null?l:"#F4F4F4";if(u&&h)return(y=le(e.layoutSelected.highlightColor))!=null?y:"#F4F4F4"})(n,t),fontSize:13,display:"flex",justifyContent:"space-between",alignItems:"center",gap:8,borderRadius:4,cursor:"pointer"},"data-select-id":e.value,onClick:r(e),onMouseEnter:i,onMouseLeave:s,children:[c(xe,G(O({},e.layout.title),{text:e.label})),c("div",{style:{display:"flex",flexShrink:0},children:c(Fe,O({},o))})]},e.value)},qa=({name:t,options:e,isMulti:r=!1,isClearable:n=!1,value:i,onChange:s,placeholder:o,closeMenuOnSelect:a=!0,onBlur:u,parentElementRef:h,controlLayout:_,pickerLayout:f})=>{var W,X,ue,de,we,ye,te,z;const[l,y]=Le(!1),[v,d]=Le(i),[m,S]=Le("down"),[b,C]=Le(null),T=ot(null),k=ot(null);Zt(()=>{var ne,$,J;if(!l)return;const U=(ne=T.current)==null?void 0:ne.getBoundingClientRect(),Z=($=k.current)==null?void 0:$.getBoundingClientRect(),re=(J=h.current)==null?void 0:J.getBoundingClientRect();if(!U||!Z||!re)return;const Ie=U.bottom+Z.height<re.bottom;S(Ie?"down":"up")},[l]),st(()=>{s(v)},[v]);const x=U=>Z=>{var re;Z.stopPropagation(),(Z.type==="touchend"||((re=Z.nativeEvent)==null?void 0:re.pointerType)==="touch")&&C(null),a&&y(!1),d(Ie=>r?Ie.some($=>$.value===U.value)?Ie.filter($=>$.value!==U.value):[...Ie,U]:[U])},P=()=>{u&&u(),y(!1)},me=U=>Z=>{Z.stopPropagation(),d(re=>re.filter(Ie=>Ie.value!==U.value))},_e=U=>{U.stopPropagation(),d([])},ee=(W=le(_==null?void 0:_.borderColor))!=null?W:"#D9D9D9",Q=(X=le(_==null?void 0:_.highlightBorderColor))!=null?X:"#7E57C5";return c("div",{"data-ui":"gui-custom-select",ref:T,children:c("div",{"data-ui":"gui-select-name-"+t,style:{backgroundColor:le(_==null?void 0:_.backgroundColor),borderStyle:"solid",borderColor:l?Q:ee,borderWidth:(ue=_==null?void 0:_.borderWidth)!=null?ue:1,borderRadius:(de=_==null?void 0:_.cornerRadius)!=null?de:8,minHeight:"41px",position:"relative",zIndex:"auto",padding:"8px 11px 8px 8px",cursor:"pointer",display:"flex",alignItems:"center",gap:10},tabIndex:0,onBlur:P,onClick:()=>y(!l),children:[c("div",{"data-ui":"gui-custom-select-multi-choose-container",style:{display:"flex",gap:8,alignItems:"flex-start",alignContent:"center",flexWrap:"wrap",width:"100%"},children:[!v.length&&c("span",{style:{fontSize:13,color:"#8C8C8C"},children:o}),v.map(U=>{var Z,re,Ie,ne,$;if(r){const J=_==null?void 0:_.chip;return c("div",{style:{padding:"0px 5px",display:"flex",gap:8,backgroundColor:(Z=le(J==null?void 0:J.backgroundColor))!=null?Z:"#F2F2F2",borderRadius:(re=J==null?void 0:J.cornerRadius)!=null?re:4,userSelect:"none",alignItems:"center"},children:[c(xe,G(O({},J==null?void 0:J.title),{fontSize:(ne=(Ie=J==null?void 0:J.title)==null?void 0:Ie.fontSize)!=null?ne:13,text:U.label})),c("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px"},onClick:me(U),children:J!=null&&J.removeImage?c(Fe,O({},J.removeImage)):c(Fe,{imageId:"cross"})})]},U.value)}else{const J=_==null?void 0:_.title;return c("div",{style:{display:"flex",userSelect:"none"},children:c(xe,G(O({},J),{fontSize:($=J==null?void 0:J.fontSize)!=null?$:13,text:U.label}))},U.value)}})]}),n&&v.length?c("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px",zIndex:1},onClick:_e,children:_!=null&&_.clearButton?c(Fe,O({},_.clearButton)):c(Fe,{imageId:"cross"})}):null,n?c("div",{style:{width:"1px",alignSelf:"stretch",backgroundColor:"#D9D9D9"}}):null,c(id,{isOpen:l,image:_==null?void 0:_.expandButton}),l&&c("div",{"data-ui":"gui-custom-select-dropdown-menu",ref:k,style:G(O({position:"absolute"},m==="down"?{top:"calc(100% + 1px)"}:{bottom:"calc(100% + 1px)"}),{left:0,border:"1px solid #e8e8e8",width:"100%",backgroundColor:(we=le(f==null?void 0:f.backgroundColor))!=null?we:"#ffffff",borderRadius:(ye=f==null?void 0:f.cornerRadius)!=null?ye:8,borderStyle:"solid",borderColor:(te=le(f==null?void 0:f.borderColor))!=null?te:"#D9D9D9",borderWidth:(z=f==null?void 0:f.borderWidth)!=null?z:1,maxHeight:"500px",overflow:"auto",zIndex:2,boxShadow:"0 3px 15px rgba(0,0,0,.2)",padding:"8px",display:"flex",flexDirection:"column",gap:"2px",cursor:"default"}),onClick:U=>U.stopPropagation(),children:e.map(U=>{const Z=v.some(re=>re.value===U.value);return c(sd,{isChosen:Z,option:U,onOptionClickCallback:x,isHovered:b===U.value,onHover:()=>C(U.value),onHoverEnd:()=>C(null)},U.label)})})]})})},od=({control:t,layout:e,dataSourceQuestion:r,parentElementRef:n})=>{const i=r.options.map(o=>({value:String(o.id),label:o.text,layout:e.option,layoutSelected:e.optionSelected})),s=String(r.id);return c("div",{style:{display:"flex",flexDirection:"column",gap:"16px",boxSizing:"border-box"},children:[e.title&&c(xe,G(O({},e.title),{text:r.text,htmlFor:s})),c(xa,{name:s,control:t,rules:{required:!!r.required,validate:Nr(r.validators,!!r.required)},render:({field:o})=>{const a=i.find(u=>u.value===o.value);return c(qa,{options:i,placeholder:r.placeholder,closeMenuOnSelect:!0,name:o.name,value:a?[a]:[],onChange:u=>{const h=u&&Array.isArray(u)&&u.length?u[0].value:null;o.onChange(h)},parentElementRef:n,isMulti:!1,isClearable:!1,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},ad=({control:t,layout:e,dataSourceQuestion:r,parentElementRef:n})=>{const i=r.options.map(o=>({value:String(o.id),label:o.text,layout:e.option,layoutSelected:e.optionSelected})),s=String(r.id);return c("div",{style:{display:"flex",flexDirection:"column",gap:"16px",boxSizing:"border-box"},children:[e.title&&c(xe,G(O({},e.title),{text:r.text,htmlFor:s})),c(xa,{name:s,control:t,rules:{required:!!r.required,validate:Nr(r.validators,!!r.required)},render:({field:o})=>{const a=i.filter(u=>{var h;return(h=o.value)==null?void 0:h.includes(u.value)});return c(qa,{name:s,options:i,placeholder:r.placeholder,closeMenuOnSelect:!1,value:a,onChange:u=>{const h=u.map(_=>_.value);o.onChange(h)},parentElementRef:n,isMulti:!0,isClearable:!0,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},Za=()=>{const[t,e]=Le(!1);return st(()=>{const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("keydown",r),window.addEventListener("mousedown",n),()=>{window.removeEventListener("keydown",r),window.removeEventListener("mousedown",n)}},[]),t},ld=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[s,o]=Le(!1),a=Za(),u=String(r.id),_=i(u)===String(t.id),f=e.option,l=e.optionSelected,y={backgroundColor:le(l.backgroundColor),borderRadius:l.cornerRadius},v={backgroundColor:le(f.backgroundColor),borderRadius:f.cornerRadius},d=s&&a?{filter:`drop-shadow(0 0 1px ${on})`}:{};return c("div",{children:c("label",{style:O({display:"flex",alignItems:"center",alignContent:"center",gap:8,cursor:"pointer"},_?y:v),children:[c("div",{style:O({display:"flex",alignItems:"center",alignContent:"center"},d),children:c(Fe,O({},_?l.image:f.image))}),c(xe,G(O({},_?l.title:f.title),{text:t.text})),c("input",G(O({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},n(u,{required:!!r.required,validate:Nr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>o(!0),onBlur:()=>o(!1)}))]})},t.id)},cd=({layout:t,register:e,watch:r,dataSourceQuestion:n})=>c("div",{style:{boxSizing:"border-box"},children:c("fieldset",{style:{margin:0,padding:0,border:"none",display:"flex",flexDirection:"column",gap:"16px"},children:[t.title&&c("legend",{style:{margin:0,padding:0,marginBottom:"16px"},children:c(xe,G(O({},t.title),{text:n.text}))}),n.options.map(i=>c(ld,{register:e,watch:r,layout:t,option:i,dataSourceQuestion:n},i.id))]})}),ud=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[s,o]=Le(!1),a=Za(),u=String(r.id),_=i(u)===String(t.id),f=e.option,l=e.optionSelected,y={borderRadius:f.cornerRadius,background:le(f.backgroundColor),borderColor:le(f.borderColor),borderWidth:f.borderWidth},v={borderRadius:l.cornerRadius,background:le(l.backgroundColor),borderColor:le(l.borderColor),borderWidth:l.borderWidth},d=s&&a?{outline:`2px solid ${on}`}:{};return c("div",{style:{display:"flex",flexGrow:1},children:c("label",{style:O(O({width:"100%",padding:"8px 16px",cursor:"pointer",borderStyle:"solid",position:"relative"},_?v:y),d),children:[c("input",G(O({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},n(u,{required:!!r.required,validate:Nr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>o(!0),onBlur:()=>o(!1)})),c(xe,G(O({},_?l.title:f.title),{text:t.text}))]})},t.id)},dd=({layout:t,watch:e,register:r,dataSourceQuestion:n})=>c("div",{style:{boxSizing:"border-box"},children:c("fieldset",{style:{margin:0,padding:0,border:"none"},children:[t.title&&c("legend",{style:{margin:0,padding:0,marginBottom:"16px"},children:c(xe,G(O({},t.title),{text:n.text}))}),c("div",{style:{display:"flex",justifyContent:"center",gap:5},children:n.options.map(i=>c(ud,{register:r,watch:e,layout:t,option:i,dataSourceQuestion:n},i.id))})]})}),fd=({children:t,backgroundColor:e,cornerRadius:r=0,isError:n,isRequired:i,validationBorderColor:s,validationBorderWidth:o})=>{const a=O({position:"relative",flexShrink:0,width:"100%",fontWeight:300,lineHeight:"140%",backgroundColor:le(e)||"transparent",borderRadius:r,padding:"16px",boxSizing:"border-box",height:"auto"},n&&O(O({},le(s)&&{borderColor:s,borderStyle:"solid"}),o&&{borderWidth:o}));return c("div",{style:a,children:[i&&c("span",{style:{color:le(s),position:"absolute",left:"6px",top:"18px"},children:"*"}),t]})},hd=({validationErrorsTypes:t,title:e})=>t?c("div",{style:{width:"100%",fontSize:12},children:Object.entries(t).map(([r,n])=>c(xe,G(O({},e),{text:n}),r))}):null,pd=({layout:t,dataSourceQuestion:e,register:r})=>{var s,o,a,u,h,_,f,l,y,v,d,m,S,b,C,T;const n=String(e.id),i=k=>k?k===An.EMAIL?"email":k===An.FREE_TEXT?"text":k===An.NUMBER?"number":k===An.SECURE?"password":"text":"text";return c("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[c(xe,G(O({},t.title),{text:e.text,htmlFor:n})),c("input",G(O({},r(n,{required:!!e.required,validate:Nr(e.validators,!!e.required)})),{id:n,type:i((s=t.textField)==null?void 0:s.inputType),style:{fontFamily:(a=(o=t==null?void 0:t.textField)==null?void 0:o.fontName)!=null?a:"sans-serif",fontSize:(h=(u=t==null?void 0:t.textField)==null?void 0:u.fontSize)!=null?h:15,color:(f=le((_=t==null?void 0:t.textField)==null?void 0:_.fontColor))!=null?f:"#000000",height:"42px",borderWidth:(y=(l=t==null?void 0:t.textField)==null?void 0:l.borderWidth)!=null?y:1,borderColor:(d=le((v=t==null?void 0:t.textField)==null?void 0:v.borderColor))!=null?d:"#d9d9d9",borderStyle:"solid",borderRadius:(S=(m=t==null?void 0:t.textField)==null?void 0:m.cornerRadius)!=null?S:8,padding:"11px",boxSizing:"border-box",backgroundColor:(C=le((b=t==null?void 0:t.textField)==null?void 0:b.backgroundColor))!=null?C:"#FFFFFF",outlineColor:on},placeholder:(T=e.placeholder)!=null?T:"","data-id":n}))]})},md=({layout:t,dataSourceQuestion:e,register:r})=>{var i,s,o,a,u,h,_,f,l,y,v,d,m;const n=String(e.id);return c("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[c(xe,G(O({},t.title),{text:e.text,htmlFor:n})),c("textarea",G(O({},r(n,{required:!!e.required,validate:Nr(e.validators,!!e.required)})),{id:n,placeholder:(i=e.placeholder)!=null?i:"",onInput:S=>{S.currentTarget.style.height="auto",S.currentTarget.style.height=`${S.currentTarget.scrollHeight-15}px`},"data-id":n,style:{fontFamily:"sans-serif",fontSize:(o=(s=t==null?void 0:t.textField)==null?void 0:s.fontSize)!=null?o:15,color:(u=le((a=t==null?void 0:t.textField)==null?void 0:a.fontColor))!=null?u:"#000000",resize:"none",overflow:"hidden",height:"42px",minHeight:"42px",borderWidth:(_=(h=t==null?void 0:t.textField)==null?void 0:h.borderWidth)!=null?_:1,borderColor:(l=le((f=t==null?void 0:t.textField)==null?void 0:f.borderColor))!=null?l:"#d9d9d9",borderStyle:"solid",borderRadius:(v=(y=t==null?void 0:t.textField)==null?void 0:y.cornerRadius)!=null?v:8,padding:"11px",boxSizing:"border-box",backgroundColor:(m=le((d=t==null?void 0:t.textField)==null?void 0:d.backgroundColor))!=null?m:"#FFFFFF",outlineColor:on}}))]})},Wt=class Wt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const s=be.getErrorKey(e,Nn);super({errorCode:e,errorCodeKey:s,errorEnumName:Wt.ERROR_ENUM_NAME,module:Wt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Wt.ERROR_ENUM_NAME,shortDomainCode:Wt.SHORT_CODE})}};Wt.MODULE=xn,Wt.ERROR_ENUM_NAME="GuiModuleError",Wt.SHORT_CODE="GM";let dn=Wt;const _d=({header:t,title:e,buttons:r,footer:n,questions:i,dataSource:s,properties:o,backgroundColor:a})=>{const{perform:u}=dr(),h=o?Zc(s.questions,o):{},_=ot(null),{register:f,handleSubmit:l,formState:{errors:y},reset:v,watch:d,control:m}=nd({criteriaMode:"all",defaultValues:h});return c(Xt,{header:t,footer:n,backgroundColor:a,children:c("form",{onSubmit:l(b=>{u(Kc(b)),v()}),style:{height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},noValidate:!0,children:[c("div",{style:{flex:"1 1 100%",display:"flex",justifyContent:"flex-start",alignItems:"center",alignContent:"center",flexDirection:"column",gap:"10px",height:"100%",width:"100%",overflow:"auto",position:"relative",backgroundColor:le(i.backgroundColor)||"transparent"},ref:_,children:[e&&c("div",{style:{lineHeight:"39.2px",width:"100%"},children:c(xe,O({},e))}),c("div",{"data-ui":"gui-questions",part:"gui-questions",style:{width:"100%",display:"flex",gap:"10px",flexDirection:"column"},children:s.questions.map(b=>{var _e;const C=s.static,T=(ee,Q)=>Q.find(W=>{var X;if((X=W.questionIds)!=null&&X.length)return W.questionIds.find(ue=>ee===ue)}),k=(ee,Q)=>Q.find(W=>!W.questionIds&&W.answerType===ee),x=C?T(String(b.id),i.itemTypes)||k(b.answerType,i.itemTypes):i.itemTypes.find(ee=>ee.answerType===b.answerType);if(!x){const ee=new dn({errorCode:Nn.DECODING_FAILED,message:"The question template has not been found"});u(ee);return}const P=x==null?void 0:x.displayType,me=b.id in y&&((_e=y[b.id])==null?void 0:_e.types);return c(je,{children:[c(fd,{backgroundColor:x==null?void 0:x.backgroundColor,cornerRadius:x==null?void 0:x.cornerRadius,isError:!!me,isRequired:b.required,validationBorderColor:x==null?void 0:x.validationBorderColor,validationBorderWidth:x==null?void 0:x.validationBorderWidth,children:[P===Rr.TEXT_EXPANDABLE&&c(md,{layout:x,dataSourceQuestion:b,register:f}),P===Rr.TEXT_SINGLE_LINE&&c(pd,{layout:x,dataSourceQuestion:b,register:f}),P===Rr.SELECTOR_OPTIONS&&c(cd,{layout:x,dataSourceQuestion:b,watch:d,register:f}),P===Rr.SELECTOR_BUTTONS&&c(dd,{layout:x,dataSourceQuestion:b,watch:d,register:f}),P===Rr.SELECTOR_DROPDOWN&&c(od,{control:m,layout:x,dataSourceQuestion:b,parentElementRef:_}),P===Rr.MULTI_SELECTOR_DROPDOWN&&c(ad,{control:m,layout:x,dataSourceQuestion:b,parentElementRef:_})]}),me&&c(hd,{validationErrorsTypes:me,title:x.validationMessage})]},b.id)})})]}),!!(r!=null&&r.length)&&c("div",{style:{display:"flex",width:"100%",flexGrow:0,flexShrink:0,justifyContent:"center",alignItems:"flex-end",padding:"2px"},children:r.map((b,C)=>c(os,O({dataTestId:"question-button"},b),C))})]})})},gd={display:"none"},vd={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",backgroundColor:"#7e57c5",cursor:"pointer"},wd={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},yd=({header:t,footer:e,buttons:r,backgroundColor:n,selectionLimit:i})=>{var _,f;const{perform:s}=dr(),o=ot(null),a=typeof i=="number"&&(i===0||i>1),u=l=>L(null,null,function*(){var v;const y=Array.from((v=l.currentTarget.files)!=null?v:[]);if(y.length)try{const m=(yield Promise.allSettled(y.map(S=>L(null,null,function*(){return{content:yield wa(S),metadata:{name:S.name,type:S.type,size:S.size,lastModified:S.lastModified}}})))).filter(S=>S.status==="fulfilled").map(S=>S.value);s({cancel:!1,permissionDenied:!1,files:m})}catch(d){console.error("Error: ",d)}}),h=()=>{var l;(l=o.current)==null||l.showPicker()};return c(Xt,{header:t,footer:e,backgroundColor:n,children:c(je,{children:c("div",{style:G(O({},wd),{justifyContent:"center"}),children:[c("input",G(O({style:gd,ref:o,type:"file",accept:"image/*"},a?{multiple:!0}:{}),{onInput:u})),c("button",{style:vd,onClick:h,children:c(Fe,{imageId:(f=(_=r==null?void 0:r[0])==null?void 0:_.image)==null?void 0:f.imageId})})]})})})},bd={display:"none"},Cd={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",background:"#7e57c5",cursor:"pointer"},Sd={position:"relative",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Ed=({header:t,footer:e,backgroundColor:r,buttons:n,selectionLimit:i})=>{var _,f;const{perform:s}=dr(),o=ot(null),a=typeof i=="number"&&(i===0||i>1),u=l=>L(null,null,function*(){var v;const y=Array.from((v=l.currentTarget.files)!=null?v:[]);if(y.length)try{const m=(yield Promise.allSettled(y.map(S=>L(null,null,function*(){return{content:yield wa(S),metadata:{name:S.name,type:S.type,size:S.size,lastModified:S.lastModified}}})))).filter(S=>S.status==="fulfilled").map(S=>S.value);s({cancel:!1,permissionDenied:!1,files:m})}catch(d){console.error("Error: ",d)}}),h=()=>L(null,null,function*(){var l;(l=o.current)==null||l.showPicker()});return st(()=>{L(null,null,function*(){if(Yt.isDesktop)return;const l=yield Yc();(l==="denied"||l==="error")&&s({cancel:!1,permissionDenied:!0,files:[]})})},[]),c(Xt,{header:t,footer:e,backgroundColor:r,children:c(je,{children:c("div",{style:G(O({},Sd),{justifyContent:"center"}),children:[c("input",G(O({style:bd,ref:o,type:"file",accept:"image/*",capture:"user"},a?{multiple:!0}:{}),{onInput:u})),c("button",{style:Cd,onClick:h,children:c(Fe,{imageId:(f=(_=n==null?void 0:n[0])==null?void 0:_.image)==null?void 0:f.imageId})})]})})})};function Id(){const t=ot(null),[e,r]=Le(!1);return{ref:t,isPopoverOpen:e,openPopover:()=>{var s;(s=t.current)==null||s.showPopover(),r(!0)},closePopover:()=>{var s;(s=t.current)==null||s.hidePopover(),r(!1)}}}const Ya=()=>L(null,null,function*(){var t;try{const e=yield navigator.permissions.query({name:"geolocation"});return(t=e==null?void 0:e.state)!=null?t:"unknown"}catch(e){return"unknown"}}),Od=()=>L(null,null,function*(){try{return yield navigator.permissions.query({name:"geolocation"})}catch(t){return null}}),gs=t=>L(null,null,function*(){return new Promise(e=>{if(!navigator.geolocation)return e({location:{lat:null,lon:null,error:"Geolocation is not supported"}});navigator.geolocation.getCurrentPosition(r=>e({location:{lat:r.coords.latitude,lon:r.coords.longitude,error:null}}),r=>{const n=r!=null&&r.message?` Error message: ${r.message}`:"";e({location:{lat:null,lon:null,error:`Failed to get geolocation data via navigator.${n}`}})},t)})}),Td={height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},Rd={flex:"1 1 100%",display:"flex",justifyContent:"flex-start",alignItems:"center",alignContent:"center",flexDirection:"column",gap:"10px",height:"100%",width:"100%",overflow:"auto",position:"relative"},Ad={position:"fixed",inset:0,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",background:"rgba(0,0,0,0.2)",zIndex:1e3,pointerEvents:"auto",cursor:"default"},xd={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:1.61},Nd={padding:"24px",border:"1px solid rgba(0, 0, 0, 0.06)",width:"min(550px, calc(100vw - 32px))",height:"min(250px, calc(100dvh - 32px))",gridTemplateRows:"auto 1fr"},Xa={display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",marginBottom:"30px"},kd={padding:0,border:"none",background:"transparent",cursor:"pointer"},Dd=({title:t,header:e,footer:r,image:n,description:i,buttons:s,backgroundColor:o,popup:a})=>{var m,S,b;const{perform:u}=dr(),{setIsProcessingCallback:h}=zc(),{ref:_,isPopoverOpen:f,openPopover:l,closePopover:y}=Id(),v={enableHighAccuracy:!0,timeout:15e3,maximumAge:6e4};Zt(()=>{h==null||h(!0)},[]),st(()=>{let C=!0;return L(null,null,function*(){if((yield Ya())!=="granted"){h==null||h(!1);return}const k=yield gs(v);C&&u(k)}),()=>{C=!1}},[]),st(()=>{let C=!0,T=null;return L(null,null,function*(){const k=yield Od();k&&(T=k,k.onchange=()=>L(null,null,function*(){if(k.state!=="granted")return;h==null||h(!0);const x=yield gs(v);C&&u(x)}))}),()=>{C=!1,T&&(T.onchange=null)}},[]);const d=C=>L(null,null,function*(){C.preventDefault();const T=yield Ya();if(T==="denied"){l();return}T==="prompt"&&(yield gs())});return c(Xt,{header:e,footer:r,backgroundColor:o,children:[c("div",{style:Td,children:[c("div",{style:Rd,children:[n&&c("div",{style:xd,children:c(Fe,O({},n))}),t&&c("div",{style:{marginBottom:20,lineHeight:"39.2px",width:"100%"},children:c(xe,O({},t))}),i&&c("div",{style:{lineHeight:"28px",fontWeight:"400",width:"100%"},children:c(kn,O({},i))})]}),!!(s!=null&&s.length)&&c("div",{style:{display:"flex",flexDirection:"column"},children:s.map((C,T)=>c("div",{style:{padding:"5px"},children:c(os,O(O({dataTestId:"question-button"},C),C.type==="FORM"?{onClick:d}:{}))},T))})]}),c("div",{ref:_,popover:"manual",role:"dialog","aria-modal":"true",style:G(O({},Nd),{borderRadius:a.cornerRadius}),children:[c("div",{style:Xa,children:[c("strong",{children:(m=a.title)==null?void 0:m.text}),c("button",{style:kd,onClick:y,"aria-label":"Close",children:c(Fe,{imageId:(S=a.closeButton.image)==null?void 0:S.imageId})})]}),c("div",{style:Xa,children:c("span",{children:(b=a.message)==null?void 0:b.text})})]}),f&&c("div",{style:Ad,onPointerDown:C=>{C.preventDefault(),C.stopPropagation(),y()}})]})},Ja=t=>{const{templateId:e,templateLayout:r,dataSource:n,properties:i}=t,{perform:s}=dr();if(!e||!r)return c(Sa,{});const o=i!=null&&i.length?JSON.stringify(i):"default-key";if(e===dt.STATUS)return c(Ru,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,image:r==null?void 0:r.image,description:r==null?void 0:r.description,title:r==null?void 0:r.title,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.INFO)return c(Nu,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,image:r==null?void 0:r.image,title:r==null?void 0:r.title,description:r==null?void 0:r.description,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.GEOLOCATION)return c(Dd,{header:r.header,footer:r.footer,image:r.image,title:r.title,description:r.description,buttons:r.buttons,backgroundColor:r.backgroundColor,popup:r.popup});if(e===dt.PROGRESS)return c(Sa,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,progressView:r==null?void 0:r.progressView,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.INFO_DETAILS)return c(Uu,{header:r==null?void 0:r.header,title:r==null?void 0:r.title,details:r==null?void 0:r.details,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.CAMERA)return c(Ed,{header:r==null?void 0:r.header,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:t.backgroundColor,selectionLimit:t.selectionLimit});if(e===dt.GALLERY)return c(yd,{header:r==null?void 0:r.header,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:t.backgroundColor,selectionLimit:t.selectionLimit});if(n&&(n!=null&&n.questions.length)&&e===dt.QUESTIONS)return c(_d,{dataSource:n,properties:i,questions:r.questions,header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,title:r==null?void 0:r.title,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor},o);if(e===dt.QUESTIONS&&!n){const u=new dn({errorCode:Nn.DECODING_FAILED,message:"No data for questions"});return s(u),null}const a=new dn({errorCode:Nn.DECODING_FAILED,message:"Unsupported step template"});return s(a),null};let vs=!1;const Qa=({children:t})=>c("div",{part:"gui-idv",id:"gui-idv-web-c",style:{backgroundColor:"white",height:"100%",width:"100%"},children:t}),Md=({isProcessing:t,moduleProps:e,perform:r})=>{const{templateId:n,templateLayout:i,dataSource:s,properties:o}=e,a=u=>{r&&r(u)};return n===dt.QUESTIONS?c(_a,{perform:a,children:c(Qa,{children:c(Ja,{properties:o,dataSource:s,templateId:n,templateLayout:i})})}):c(_a,{perform:a,setIsProcessingCallback:t,children:c(Qa,{children:c(Ja,O(O({templateId:n,templateLayout:i},e.backgroundColor?{backgroundColor:e.backgroundColor}:{}),typeof e.selectionLimit=="number"?{selectionLimit:e.selectionLimit}:{}))})})},fn=class fn extends pa{constructor(){super(),this._mounted=!1,this.props=null}setProps(e){this.props={idvEventListener:e.idvEventListener,moduleProps:e.moduleProps,isProcessing:e.isProcessing,perform:e.perform},this.render()}connectedCallback(){this.render(),this._mounted=!0}render(){if(!this.props)return"";if(this.shadowRoot){const e=document.createElement("style");e.id="idv-gui-styles",e.textContent=`
|
|
89
|
+
`,Hr={MESSAGE:"MESSAGE",ERROR:"ERROR"},Ul=Object.values({DATA:"DATA",QUESTIONARY:"QUESTIONARY"});var Jo=(t=>(t.Rtl="rtl",t.Ltr="ltr",t))(Jo||{}),br=(t=>(t.DID_START_SESSION="DID_START_SESSION",t.DID_END_SESSION="DID_END_SESSION",t.DID_START_RESTORE_SESSION="DID_START_RESTORE_SESSION",t.DID_CONTINUE_REMOTE_SESSION="DID_CONTINUE_REMOTE_SESSION",t))(br||{}),mt=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.CONNECTION_ISSUE=1]="CONNECTION_ISSUE",t[t.WORKFLOW_ISSUE=2]="WORKFLOW_ISSUE",t[t.INTERNAL_ISSUE=3]="INTERNAL_ISSUE",t[t.SCENARIO_IN_PROGRESS=4]="SCENARIO_IN_PROGRESS",t))(mt||{}),Ve=(t=>(t[t.CONNECTION_ISSUE=0]="CONNECTION_ISSUE",t[t.CONFIG_MISSED_OR_INVALID=1]="CONFIG_MISSED_OR_INVALID",t[t.INITIALIZATION_REQUIRED=2]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(Ve||{}),We=(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))(We||{}),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||{}),_n=(t=>(t[t.CONNECTION_ISSUE=0]="CONNECTION_ISSUE",t[t.WORKFLOW_ISSUE=1]="WORKFLOW_ISSUE",t))(_n||{}),gt=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t))(gt||{}),qt=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t[t.TOKEN_ERROR=3]="TOKEN_ERROR",t[t.CONNECTION_ISSUE=4]="CONNECTION_ISSUE",t))(qt||{}),it=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t[t.SAME_STEP=3]="SAME_STEP",t[t.IS_PROCESSING=4]="IS_PROCESSING",t[t.NOT_DATA_TYPE=5]="NOT_DATA_TYPE",t))(it||{}),jr=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(jr||{}),It=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t))(It||{});const Ll=120,Vl=200,bi="PROGRESS",wt="IDV",sr="idv-session-data",zr="idv-session-auth-token",$l="rgl-uid",Bl="en",Xo=t=>{let e;const r=new Set,n=(d,_)=>{const h=typeof d=="function"?d(e):d;if(!Object.is(h,e)){const c=e;e=(_!=null?_:typeof h!="object"||h===null)?h:Object.assign({},e,h),r.forEach(y=>y(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},Hl=t=>t?Xo(t):Xo;var Kr,se,Qo,ar,es,ts,rs,ns,Ci,Si,Ei,is,Gr={},os=[],Wl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,qr=Array.isArray;function vt(t,e){for(var r in e)t[r]=e[r];return t}function Ti(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function yt(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?++Qo:i,__i:-1,__u:0};return i==null&&se.vnode!=null&&se.vnode(o),o}function ss(){return{current:null}}function je(t){return t.children}function ct(t,e){this.props=t,this.context=e}function Cr(t,e){if(e==null)return t.__?Cr(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?Cr(t):null}function as(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 as(t)}}function Ii(t){(!t.__d&&(t.__d=!0)&&ar.push(t)&&!mn.__r++||es!=se.debounceRendering)&&((es=se.debounceRendering)||ts)(mn)}function mn(){for(var t,e,r,n,i,o,s,a=1;ar.length;)ar.length>a&&ar.sort(rs),t=ar.shift(),a=ar.length,t.__d&&(r=void 0,n=void 0,i=(n=(e=t).__v).__e,o=[],s=[],e.__P&&((r=vt({},n)).__v=n.__v+1,se.vnode&&se.vnode(r),Oi(e.__P,r,n,e.__n,e.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Cr(n):i,!!(32&n.__u),s),r.__v=n.__v,r.__.__k[r.__i]=r,fs(o,r,s),n.__e=n.__=null,r.__e!=i&&as(r)));mn.__r=0}function ls(t,e,r,n,i,o,s,a,l,d,_){var h,c,y,g,f,m,S,b=n&&n.__k||os,C=e.length;for(l=jl(r,e,b,l,C),h=0;h<C;h++)(y=r.__k[h])!=null&&(c=y.__i==-1?Gr:b[y.__i]||Gr,y.__i=h,m=Oi(t,y,c,i,o,s,a,l,d,_),g=y.__e,y.ref&&c.ref!=y.ref&&(c.ref&&xi(c.ref,null,y),_.push(y.ref,y.__c||g,y)),f==null&&g!=null&&(f=g),(S=!!(4&y.__u))||c.__k===y.__k?l=cs(y,l,t,S):typeof y.type=="function"&&m!==void 0?l=m:g&&(l=g.nextSibling),y.__u&=-7);return r.__e=f,l}function jl(t,e,r,n,i){var o,s,a,l,d,_=r.length,h=_,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(je,{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=zl(s,r,l,h))!=-1&&(h--,(a=r[d])&&(a.__u|=2)),a==null||a.__v==null?(d==-1&&(i>_?c--:i<_&&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(h)for(o=0;o<_;o++)(a=r[o])!=null&&(2&a.__u)==0&&(a.__e==n&&(n=Cr(a)),ps(a,a));return n}function cs(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=cs(i[o],e,r,n));return e}t.__e!=e&&(n&&(e&&t.type&&!e.parentNode&&(e=Cr(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function Ot(t,e){return e=e||[],t==null||typeof t=="boolean"||(qr(t)?t.some(function(r){Ot(r,e)}):e.push(t)),e}function zl(t,e,r,n){var i,o,s,a=t.key,l=t.type,d=e[r],_=d!=null&&(2&d.__u)==0;if(d===null&&t.key==null||_&&a==d.key&&l==d.type)return r;if(n>(_?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 ds(t,e,r){e[0]=="-"?t.setProperty(e,r==null?"":r):t[e]=r==null?"":typeof r!="number"||Wl.test(e)?r:r+"px"}function gn(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||ds(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||ds(t.style,e,r[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(ns,"$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=Ci,t.addEventListener(e,o?Ei:Si,o)):t.removeEventListener(e,o?Ei:Si,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 us(t){return function(e){if(this.l){var r=this.l[e.type+t];if(e.t==null)e.t=Ci++;else if(e.t<r.u)return;return r(se.event?se.event(e):e)}}}function Oi(t,e,r,n,i,o,s,a,l,d){var _,h,c,y,g,f,m,S,b,C,O,N,R,M,_e,me,ee,Q=e.type;if(e.constructor!=null)return null;128&r.__u&&(l=!!(32&r.__u),o=[a=e.__e=r.__e]),(_=se.__b)&&_(e);e:if(typeof Q=="function")try{if(S=e.props,b="prototype"in Q&&Q.prototype.render,C=(_=Q.contextType)&&n[_.__c],O=_?C?C.props.value:_.__:n,r.__c?m=(h=e.__c=r.__c).__=h.__E:(b?e.__c=h=new Q(S,O):(e.__c=h=new ct(S,O),h.constructor=Q,h.render=Gl),C&&C.sub(h),h.props=S,h.state||(h.state={}),h.context=O,h.__n=n,c=h.__d=!0,h.__h=[],h._sb=[]),b&&h.__s==null&&(h.__s=h.state),b&&Q.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=vt({},h.__s)),vt(h.__s,Q.getDerivedStateFromProps(S,h.__s))),y=h.props,g=h.state,h.__v=e,c)b&&Q.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),b&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(b&&Q.getDerivedStateFromProps==null&&S!==y&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(S,O),!h.__e&&h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(S,h.__s,O)===!1||e.__v==r.__v){for(e.__v!=r.__v&&(h.props=S,h.state=h.__s,h.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some(function(H){H&&(H.__=e)}),N=0;N<h._sb.length;N++)h.__h.push(h._sb[N]);h._sb=[],h.__h.length&&s.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(S,h.__s,O),b&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(y,g,f)})}if(h.context=O,h.props=S,h.__P=t,h.__e=!1,R=se.__r,M=0,b){for(h.state=h.__s,h.__d=!1,R&&R(e),_=h.render(h.props,h.state,h.context),_e=0;_e<h._sb.length;_e++)h.__h.push(h._sb[_e]);h._sb=[]}else do h.__d=!1,R&&R(e),_=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++M<25);h.state=h.__s,h.getChildContext!=null&&(n=vt(vt({},n),h.getChildContext())),b&&!c&&h.getSnapshotBeforeUpdate!=null&&(f=h.getSnapshotBeforeUpdate(y,g)),me=_,_!=null&&_.type===je&&_.key==null&&(me=hs(_.props.children)),a=ls(t,qr(me)?me:[me],e,r,n,i,o,s,a,l,d),h.base=e.__e,e.__u&=-161,h.__h.length&&s.push(h),m&&(h.__E=h.__=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(ee=o.length;ee--;)Ti(o[ee]);Ai(e)}else e.__e=r.__e,e.__k=r.__k,H.then||Ai(e);se.__e(H,e,r)}else o==null&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):a=e.__e=Kl(r.__e,e,r,n,i,o,s,l,d);return(_=se.diffed)&&_(e),128&e.__u?void 0:a}function Ai(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(Ai)}function fs(t,e,r){for(var n=0;n<r.length;n++)xi(r[n],r[++n],r[++n]);se.__c&&se.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){se.__e(o,i.__v)}})}function hs(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:qr(t)?t.map(hs):vt({},t)}function Kl(t,e,r,n,i,o,s,a,l){var d,_,h,c,y,g,f,m=r.props,S=e.props,b=e.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(d=0;d<o.length;d++)if((y=o[d])&&"setAttribute"in y==!!b&&(b?y.localName==b:y.nodeType==3)){t=y,o[d]=null;break}}if(t==null){if(b==null)return document.createTextNode(S);t=document.createElementNS(i,b,S.is&&S),a&&(se.__m&&se.__m(e,o),a=!1),o=null}if(b==null)m===S||a&&t.data==S||(t.data=S);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[(y=t.attributes[d]).name]=y.value;for(d in m)if(y=m[d],d!="children"){if(d=="dangerouslySetInnerHTML")h=y;else if(!(d in S)){if(d=="value"&&"defaultValue"in S||d=="checked"&&"defaultChecked"in S)continue;gn(t,d,null,y,i)}}for(d in S)y=S[d],d=="children"?c=y:d=="dangerouslySetInnerHTML"?_=y:d=="value"?g=y:d=="checked"?f=y:a&&typeof y!="function"||m[d]===y||gn(t,d,y,m[d],i);if(_)a||h&&(_.__html==h.__html||_.__html==t.innerHTML)||(t.innerHTML=_.__html),e.__k=[];else if(h&&(t.innerHTML=""),ls(e.type=="template"?t.content:t,qr(c)?c:[c],e,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:r.__k&&Cr(r,0),a,l),o!=null)for(d=o.length;d--;)Ti(o[d]);a||(d="value",b=="progress"&&g==null?t.removeAttribute("value"):g!=null&&(g!==t[d]||b=="progress"&&!g||b=="option"&&g!=m[d])&&gn(t,d,g,m[d],i),d="checked",f!=null&&f!=t[d]&&gn(t,d,f,m[d],i))}return t}function xi(t,e,r){try{if(typeof t=="function"){var n=typeof t.__u=="function";n&&t.__u(),n&&e==null||(t.__u=t(e))}else t.current=e}catch(i){se.__e(i,r)}}function ps(t,e,r){var n,i;if(se.unmount&&se.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||xi(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){se.__e(o,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&ps(n[i],e,r||typeof t.type!="function");r||Ti(t.__e),t.__c=t.__=t.__e=void 0}function Gl(t,e,r){return this.constructor(t,r)}function Sr(t,e,r){var n,i,o,s;e==document&&(e=document.documentElement),se.__&&se.__(t,e),i=(n=typeof r=="function")?null:r&&r.__k||e.__k,o=[],s=[],Oi(e,t=(!n&&r||e).__k=yt(je,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),fs(o,t,s)}function _s(t,e){Sr(t,e,_s)}function ql(t,e,r){var n,i,o,s,a=vt({},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 Ri(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,Ii(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"+is++,e.__=t,e.Provider=e.__l=(e.Consumer=function(r,n){return r.children(n)}).contextType=e,e}Kr=os.slice,se={__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}},Qo=0,ct.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=vt({},this.state),typeof t=="function"&&(t=t(vt({},r),this.props)),t&&vt(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ii(this))},ct.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ii(this))},ct.prototype.render=je,ar=[],ts=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,rs=function(t,e){return t.__v.__b-e.__v.__b},mn.__r=0,ns=/(PointerCapture)$|Capture$/i,Ci=0,Si=us(!1),Ei=us(!0),is=0;var At,Ce,ki,ms,Er=0,gs=[],Oe=se,ws=Oe.__b,vs=Oe.__r,ys=Oe.diffed,bs=Oe.__c,Cs=Oe.unmount,Ss=Oe.__;function lr(t,e){Oe.__h&&Oe.__h(Ce,t,Er||e),Er=0;var r=Ce.__H||(Ce.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Ue(t){return Er=1,wn(Ts,t)}function wn(t,e,r){var n=lr(At++,2);if(n.t=t,!n.__c&&(n.__=[r?r(e):Ts(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=Ce,!Ce.__f)){var i=function(a,l,d){if(!n.__c.__H)return!0;var _=n.__c.__H.__.filter(function(c){return!!c.__c});if(_.every(function(c){return!c.__N}))return!o||o.call(this,a,l,d);var h=n.__c.props!==a;return _.forEach(function(c){if(c.__N){var y=c.__[0];c.__=c.__N,c.__N=void 0,y!==c.__[0]&&(h=!0)}}),o&&o.call(this,a,l,d)||h};Ce.__f=!0;var o=Ce.shouldComponentUpdate,s=Ce.componentWillUpdate;Ce.componentWillUpdate=function(a,l,d){if(this.__e){var _=o;o=void 0,i(a,l,d),o=_}s&&s.call(this,a,l,d)},Ce.shouldComponentUpdate=i}return n.__N||n.__}function ot(t,e){var r=lr(At++,3);!Oe.__s&&Ui(r.__H,e)&&(r.__=t,r.u=e,Ce.__H.__h.push(r))}function Zt(t,e){var r=lr(At++,4);!Oe.__s&&Ui(r.__H,e)&&(r.__=t,r.u=e,Ce.__h.push(r))}function st(t){return Er=5,Yr(function(){return{current:t}},[])}function Ni(t,e,r){Er=6,Zt(function(){if(typeof t=="function"){var n=t(e());return function(){t(null),n&&typeof n=="function"&&n()}}if(t)return t.current=e(),function(){return t.current=null}},r==null?r:r.concat(t))}function Yr(t,e){var r=lr(At++,7);return Ui(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function Di(t,e){return Er=8,Yr(function(){return t},e)}function Jr(t){var e=Ce.context[t.__c],r=lr(At++,9);return r.c=t,e?(r.__==null&&(r.__=!0,e.sub(Ce)),e.props.value):t.__}function Pi(t,e){Oe.useDebugValue&&Oe.useDebugValue(e?e(t):t)}function Zl(t){var e=lr(At++,10),r=Ue();return e.__=t,Ce.componentDidCatch||(Ce.componentDidCatch=function(n,i){e.__&&e.__(n,i),r[1](n)}),[r[0],function(){r[1](void 0)}]}function Mi(){var t=lr(At++,11);if(!t.__){for(var e=Ce.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var r=e.__m||(e.__m=[0,0]);t.__="P"+r[0]+"-"+r[1]++}return t.__}function Yl(){for(var t;t=gs.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(vn),t.__H.__h.forEach(Fi),t.__H.__h=[]}catch(e){t.__H.__h=[],Oe.__e(e,t.__v)}}Oe.__b=function(t){Ce=null,ws&&ws(t)},Oe.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Ss&&Ss(t,e)},Oe.__r=function(t){vs&&vs(t),At=0;var e=(Ce=t.__c).__H;e&&(ki===Ce?(e.__h=[],Ce.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(e.__h.forEach(vn),e.__h.forEach(Fi),e.__h=[],At=0)),ki=Ce},Oe.diffed=function(t){ys&&ys(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(gs.push(e)!==1&&ms===Oe.requestAnimationFrame||((ms=Oe.requestAnimationFrame)||Jl)(Yl)),e.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),ki=Ce=null},Oe.__c=function(t,e){e.some(function(r){try{r.__h.forEach(vn),r.__h=r.__h.filter(function(n){return!n.__||Fi(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Oe.__e(n,r.__v)}}),bs&&bs(t,e)},Oe.unmount=function(t){Cs&&Cs(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{vn(n)}catch(i){e=i}}),r.__H=void 0,e&&Oe.__e(e,r.__v))};var Es=typeof requestAnimationFrame=="function";function Jl(t){var e,r=function(){clearTimeout(n),Es&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,35);Es&&(e=requestAnimationFrame(r))}function vn(t){var e=Ce,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),Ce=e}function Fi(t){var e=Ce;t.__c=t.__(),Ce=e}function Ui(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function Ts(t,e){return typeof e=="function"?e(t):e}function Is(t,e){for(var r in e)t[r]=e[r];return t}function Li(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var n in e)if(n!=="__source"&&t[n]!==e[n])return!0;return!1}function Vi(t,e){var r=e(),n=Ue({t:{__:r,u:e}}),i=n[0].t,o=n[1];return Zt(function(){i.__=r,i.u=e,$i(i)&&o({t:i})},[t,r,e]),ot(function(){return $i(i)&&o({t:i}),t(function(){$i(i)&&o({t:i})})},[t]),r}function $i(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 Bi(t){t()}function Hi(t){return t}function Wi(){return[!1,Bi]}var ji=Zt;function yn(t,e){this.props=t,this.context=e}function Os(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:Li(this.props,i)}function n(i){return this.shouldComponentUpdate=r,yt(t,i)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n.type=t,n}(yn.prototype=new ct).isPureReactComponent=!0,yn.prototype.shouldComponentUpdate=function(t,e){return Li(this.props,t)||Li(this.state,e)};var As=se.__b;se.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),As&&As(t)};var Xl=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function xs(t){function e(r){var n=Is({},r);return delete n.ref,t(n,r.ref||null)}return e.$$typeof=Xl,e.render=t,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Rs=function(t,e){return t==null?null:Ot(Ot(t).map(e))},ks={map:Rs,forEach:Rs,count:function(t){return t?Ot(t).length:0},only:function(t){var e=Ot(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:Ot},Ql=se.__e;se.__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)}Ql(t,e,r,n)};var Ns=se.unmount;function Ds(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=Is({},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 Ds(n,e,r)})),t}function Ps(t,e,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Ps(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 Ms(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Fs(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 yt(r,o)}return i.displayName="Lazy",i.__f=!0,i}function Tr(){this.i=null,this.l=null}se.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Ns&&Ns(t)},(Xr.prototype=new ct).__c=function(t,e){var r=e.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Ms(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]=Ps(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]=Ds(this.__b,r,n.__O=n.__P)}this.__b=null}var i=e.__a&&yt(je,null,t.fallback);return i&&(i.__u&=-33),[yt(je,null,e.__a?null:t.children),i]};var Us=function(t,e,r){if(++r[1]===r[0]&&t.l.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.l.size))for(r=t.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.i=r=r[2]}};function ec(t){return this.getChildContext=function(){return t.context},t.children}function tc(t){var e=this,r=t.h;if(e.componentWillUnmount=function(){Sr(null,e.v),e.v=null,e.h=null},e.h&&e.h!==r&&e.componentWillUnmount(),!e.v){for(var n=e.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;e.h=r,e.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(i,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)}}}Sr(yt(ec,{context:e.context},t.__v),e.v)}function Ls(t,e){var r=yt(tc,{__v:t,h:e});return r.containerInfo=e,r}(Tr.prototype=new ct).__a=function(t){var e=this,r=Ms(e.__v),n=e.l.get(t);return n[0]++,function(i){var o=function(){e.props.revealOrder?(n.push(i),Us(e,t,n)):i()};r?r(o):o()}},Tr.prototype.render=function(t){this.i=null,this.l=new Map;var e=Ot(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},Tr.prototype.componentDidUpdate=Tr.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,r){Us(t,r,e)})};var Vs=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,rc=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,nc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ic=/[A-Z0-9]/g,oc=typeof document!="undefined",sc=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function $s(t,e,r){return e.__k==null&&(e.textContent=""),Sr(t,e),typeof r=="function"&&r(),t?t.__c:null}function Bs(t,e,r){return _s(t,e),typeof r=="function"&&r(),t?t.__c:null}ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(ct.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Hs=se.event;function ac(){}function lc(){return this.cancelBubble}function cc(){return this.defaultPrevented}se.event=function(t){return Hs&&(t=Hs(t)),t.persist=ac,t.isPropagationStopped=lc,t.isDefaultPrevented=cc,t.nativeEvent=t};var zi,dc={enumerable:!1,configurable:!0,get:function(){return this.class}},Ws=se.vnode;se.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||oc&&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"||sc(r.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":nc.test(s)&&(s=l):l=s="oninput":o&&rc.test(s)?s=s.replace(ic,"-$&").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=Ot(r.children).forEach(function(d){d.props.selected=i.value.indexOf(d.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Ot(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",dc)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),e.props=i})(t),t.$$typeof=Vs,Ws&&Ws(t)};var js=se.__r;se.__r=function(t){js&&js(t),zi=t.__c};var zs=se.diffed;se.diffed=function(t){zs&&zs(t);var e=t.props,r=t.__e;r!=null&&t.type==="textarea"&&"value"in e&&e.value!==r.value&&(r.value=e.value==null?"":e.value),zi=null};var Ks={ReactCurrentDispatcher:{current:{readContext:function(t){return zi.__n[t.__c].props.value},useCallback:Di,useContext:Jr,useDebugValue:Pi,useDeferredValue:Hi,useEffect:ot,useId:Mi,useImperativeHandle:Ni,useInsertionEffect:ji,useLayoutEffect:Zt,useMemo:Yr,useReducer:wn,useRef:st,useState:Ue,useSyncExternalStore:Vi,useTransition:Wi}}},uc="18.3.1";function Gs(t){return yt.bind(null,t)}function Qr(t){return!!t&&t.$$typeof===Vs}function qs(t){return Qr(t)&&t.type===je}function Zs(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Ys(t){return Qr(t)?ql.apply(null,arguments):t}function Js(t){return!!t.__k&&(Sr(null,t),!0)}function Xs(t){return t&&(t.base||t.nodeType===1&&t)||null}var Qs=function(t,e){return t(e)},ea=function(t,e){return t(e)},ta=je,ra=Qr,ce={useState:Ue,useId:Mi,useReducer:wn,useEffect:ot,useLayoutEffect:Zt,useInsertionEffect:ji,useTransition:Wi,useDeferredValue:Hi,useSyncExternalStore:Vi,startTransition:Bi,useRef:st,useImperativeHandle:Ni,useMemo:Yr,useCallback:Di,useContext:Jr,useDebugValue:Pi,version:"18.3.1",Children:ks,render:$s,hydrate:Bs,unmountComponentAtNode:Js,createPortal:Ls,createElement:yt,createContext:Ri,createFactory:Gs,cloneElement:Ys,createRef:ss,Fragment:je,isValidElement:Qr,isElement:ra,isFragment:qs,isMemo:Zs,findDOMNode:Xs,Component:ct,PureComponent:yn,memo:Os,forwardRef:xs,flushSync:ea,unstable_batchedUpdates:Qs,StrictMode:ta,Suspense:Xr,SuspenseList:Tr,lazy:Fs,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ks};const fc=Object.freeze(Object.defineProperty({__proto__:null,Children:ks,Component:ct,Fragment:je,PureComponent:yn,StrictMode:ta,Suspense:Xr,SuspenseList:Tr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ks,cloneElement:Ys,createContext:Ri,createElement:yt,createFactory:Gs,createPortal:Ls,createRef:ss,default:ce,findDOMNode:Xs,flushSync:ea,forwardRef:xs,hydrate:Bs,isElement:ra,isFragment:qs,isMemo:Zs,isValidElement:Qr,lazy:Fs,memo:Os,render:$s,startTransition:Bi,unmountComponentAtNode:Js,unstable_batchedUpdates:Qs,useCallback:Di,useContext:Jr,useDebugValue:Pi,useDeferredValue:Hi,useEffect:ot,useErrorBoundary:Zl,useId:Mi,useImperativeHandle:Ni,useInsertionEffect:ji,useLayoutEffect:Zt,useMemo:Yr,useReducer:wn,useRef:st,useState:Ue,useSyncExternalStore:Vi,useTransition:Wi,version:uc},Symbol.toStringTag,{value:"Module"})),hc=t=>t;function pc(t,e=hc){const r=ce.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return ce.useDebugValue(r),r}const na=t=>{const e=Hl(t),r=n=>pc(e,n);return Object.assign(r,e),r},_c=t=>t?na(t):na;function mc(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 gc=mc(fc);var en={exports:{}},wc=en.exports,ia;function vc(){return ia||(ia=1,(function(t,e){(function(r,n){var i="1.0.41",o="",s="?",a="function",l="undefined",d="object",_="string",h="major",c="model",y="name",g="type",f="vendor",m="version",S="architecture",b="console",C="mobile",O="tablet",N="smarttv",R="wearable",M="embedded",_e=500,me="Amazon",ee="Apple",Q="ASUS",H="BlackBerry",J="Browser",de="Chrome",ue="Edge",ve="Firefox",ye="Google",te="Honor",z="Huawei",F="Lenovo",q="LG",re="Microsoft",Te="Motorola",ne="Nvidia",$="OnePlus",X="Opera",Ke="OPPO",Je="Samsung",ht="Sharp",nt="Sony",Wt="Xiaomi",pt="Zebra",Xt="Facebook",jt="Chromium OS",Ct="Mac OS",zt=" Browser",Qt=function(Z,ae){var j={};for(var ge in Z)ae[ge]&&ae[ge].length%2===0?j[ge]=ae[ge].concat(Z[ge]):j[ge]=Z[ge];return j},St=function(Z){for(var ae={},j=0;j<Z.length;j++)ae[Z[j].toUpperCase()]=Z[j];return ae},at=function(Z,ae){return typeof Z===_?v(ae).indexOf(v(Z))!==-1:!1},v=function(Z){return Z.toLowerCase()},T=function(Z){return typeof Z===_?Z.replace(/[^\d\.]/g,o).split(".")[0]:n},x=function(Z,ae){if(typeof Z===_)return Z=Z.replace(/^\s\s*/,o),typeof ae===l?Z:Z.substring(0,_e)},V=function(Z,ae){for(var j=0,ge,Ge,Pe,he,G,Xe;j<ae.length&&!G;){var er=ae[j],pr=ae[j+1];for(ge=Ge=0;ge<er.length&&!G&&er[ge];)if(G=er[ge++].exec(Z),G)for(Pe=0;Pe<pr.length;Pe++)Xe=G[++Ge],he=pr[Pe],typeof he===d&&he.length>0?he.length===2?typeof he[1]==a?this[he[0]]=he[1].call(this,Xe):this[he[0]]=he[1]:he.length===3?typeof he[1]===a&&!(he[1].exec&&he[1].test)?this[he[0]]=Xe?he[1].call(this,Xe,he[2]):n:this[he[0]]=Xe?Xe.replace(he[1],he[2]):n:he.length===4&&(this[he[0]]=Xe?he[3].call(this,Xe.replace(he[1],he[2])):n):this[he]=Xe||n;j+=2}},D=function(Z,ae){for(var j in ae)if(typeof ae[j]===d&&ae[j].length>0){for(var ge=0;ge<ae[j].length;ge++)if(at(ae[j][ge],Z))return j===s?n:j}else if(at(ae[j],Z))return j===s?n:j;return ae.hasOwnProperty("*")?ae["*"]:Z},P={"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"},ie={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[y,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[y,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[y,m],[/opios[\/ ]+([\w\.]+)/i],[m,[y,X+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[y,X+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[y,X]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[y,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[y,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[y,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[y,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[y,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[y,"UC"+J]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[y,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[y,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[y,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[y,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[y,"Smart Lenovo "+J]],[/(avast|avg)\/([\w\.]+)/i],[[y,/(.+)/,"$1 Secure "+J],m],[/\bfocus\/([\w\.]+)/i],[m,[y,ve+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[y,X+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[y,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[y,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[y,X+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[y,"MIUI"+zt]],[/fxios\/([\w\.-]+)/i],[m,[y,ve]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[y,"360"]],[/\b(qq)\/([\w\.]+)/i],[[y,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[y,/(.+)/,"$1"+zt],m],[/samsungbrowser\/([\w\.]+)/i],[m,[y,Je+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[y,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[y,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[y,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[y],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,y],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[y,Xt],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[y,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[y,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[y,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[y,de+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[y,de+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[y,"Android "+J]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[y,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[y,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,y],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[y,[m,D,P]],[/(webkit|khtml)\/([\w\.]+)/i],[y,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[y,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[y,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[y,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],[y,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[y,[m,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[S,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[S,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[S,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[S,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[S,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[S,/ower/,o,v]],[/ sun4\w[;\)]/i],[[S,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[S,v]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,Je],[g,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,[f,Je],[g,C]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[f,ee],[g,C]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,ee],[g,O]],[/(macintosh);/i],[c,[f,ee]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,ht],[g,C]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[c,[f,te],[g,O]],[/honor([-\w ]+)[;\)]/i],[c,[f,te],[g,C]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[c,[f,z],[g,O]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,z],[g,C]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[c,/_/g," "],[f,Wt],[g,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," "],[f,Wt],[g,C]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[f,Ke],[g,C]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[c,[f,D,{OnePlus:["304","403","203"],"*":Ke}],[g,O]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[g,C]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[g,C]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[f,Te],[g,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,Te],[g,O]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,q],[g,O]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,q],[g,C]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[c,[f,F],[g,O]],[/(nokia) (t[12][01])/i],[f,c,[g,O]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[c,/_/g," "],[g,C],[f,"Nokia"]],[/(pixel (c|tablet))\b/i],[c,[f,ye],[g,O]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,ye],[g,C]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,nt],[g,C]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,nt],[g,O]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,$],[g,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,me],[g,O]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,me],[g,C]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[g,O]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,H],[g,C]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,Q],[g,O]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,Q],[g,C]],[/(nexus 9)/i],[c,[f,"HTC"],[g,O]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[g,C]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[c,[f,"TCL"],[g,O]],[/(itel) ((\w+))/i],[[f,v],c,[g,D,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[g,O]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[g,C]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[f,"Ulefone"],[g,C]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[f,"Energizer"],[g,C]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[f,"Cat"],[g,C]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[f,"Smartfren"],[g,C]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[f,"Nothing"],[g,C]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[c,[f,"Archos"],[g,O]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[c,[f,"Archos"],[g,C]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[f,c,[g,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],[f,c,[g,C]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,c,[g,O]],[/(surface duo)/i],[c,[f,re],[g,O]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[g,C]],[/(u304aa)/i],[c,[f,"AT&T"],[g,C]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[g,C]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[g,O]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[g,O]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[g,O]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[g,O]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[g,O]],[/\b(k88) b/i],[c,[f,"ZTE"],[g,O]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[g,C]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[g,C]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[g,O]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[g,O]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[g,O]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[g,O]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[g,O]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[g,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[g,C]],[/\b(ph-1) /i],[c,[f,"Essential"],[g,C]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[g,O]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[g,O]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[g,O]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[c,[f,ne],[g,O]],[/(sprint) (\w+)/i],[f,c,[g,C]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,re],[g,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,pt],[g,O]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,pt],[g,C]],[/smart-tv.+(samsung)/i],[f,[g,N]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,Je],[g,N]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,q],[g,N]],[/(apple) ?tv/i],[f,[c,ee+" TV"],[g,N]],[/crkey/i],[[c,de+"cast"],[f,ye],[g,N]],[/droid.+aft(\w+)( bui|\))/i],[c,[f,me],[g,N]],[/(shield \w+ tv)/i],[c,[f,ne],[g,N]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,ht],[g,N]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,nt],[g,N]],[/(mi(tv|box)-?\w+) bui/i],[c,[f,Wt],[g,N]],[/Hbbtv.*(technisat) (.*);/i],[f,c,[g,N]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,x],[c,x],[g,N]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[c,[g,N]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,N]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[g,b]],[/droid.+; (shield)( bui|\))/i],[c,[f,ne],[g,b]],[/(playstation \w+)/i],[c,[f,nt],[g,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,re],[g,b]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[c,[f,Je],[g,R]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[f,c,[g,R]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[c,[f,Ke],[g,R]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[f,ee],[g,R]],[/(opwwe\d{3})/i],[c,[f,$],[g,R]],[/(moto 360)/i],[c,[f,Te],[g,R]],[/(smartwatch 3)/i],[c,[f,nt],[g,R]],[/(g watch r)/i],[c,[f,q],[g,R]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,pt],[g,R]],[/droid.+; (glass) \d/i],[c,[f,ye],[g,R]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,c,[g,R]],[/; (quest( \d| pro)?)/i],[c,[f,Xt],[g,R]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[g,M]],[/(aeobc)\b/i],[c,[f,me],[g,M]],[/(homepod).+mac os/i],[c,[f,ee],[g,M]],[/windows iot/i],[[g,M]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[g,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[g,O]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,O]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[g,C]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[y,ue+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[y,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[y,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[y,m],[/ladybird\//i],[[y,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,y]],os:[[/microsoft (windows) (vista|xp)/i],[y,m],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[y,[m,D,W]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,D,W],[y,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[y,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[y,Ct],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,y],[/(ubuntu) ([\w\.]+) like android/i],[[y,/(.+)/,"$1 Touch"],m],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[y,m],[/\(bb(10);/i],[m,[y,H]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[y,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[y,ve+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[y,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[y,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[y,de+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[y,jt],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[y,m],[/(sunos) ?([\w\.\d]*)/i],[[y,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[y,m]]},K=function(Z,ae){if(typeof Z===d&&(ae=Z,Z=n),!(this instanceof K))return new K(Z,ae).getResult();var j=typeof r!==l&&r.navigator?r.navigator:n,ge=Z||(j&&j.userAgent?j.userAgent:o),Ge=j&&j.userAgentData?j.userAgentData:n,Pe=ae?Qt(ie,ae):ie,he=j&&j.userAgent==ge;return this.getBrowser=function(){var G={};return G[y]=n,G[m]=n,V.call(G,ge,Pe.browser),G[h]=T(G[m]),he&&j&&j.brave&&typeof j.brave.isBrave==a&&(G[y]="Brave"),G},this.getCPU=function(){var G={};return G[S]=n,V.call(G,ge,Pe.cpu),G},this.getDevice=function(){var G={};return G[f]=n,G[c]=n,G[g]=n,V.call(G,ge,Pe.device),he&&!G[g]&&Ge&&Ge.mobile&&(G[g]=C),he&&G[c]=="Macintosh"&&j&&typeof j.standalone!==l&&j.maxTouchPoints&&j.maxTouchPoints>2&&(G[c]="iPad",G[g]=O),G},this.getEngine=function(){var G={};return G[y]=n,G[m]=n,V.call(G,ge,Pe.engine),G},this.getOS=function(){var G={};return G[y]=n,G[m]=n,V.call(G,ge,Pe.os),he&&!G[y]&&Ge&&Ge.platform&&Ge.platform!="Unknown"&&(G[y]=Ge.platform.replace(/chrome os/i,jt).replace(/macos/i,Ct)),G},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(G){return ge=typeof G===_&&G.length>_e?x(G,_e):G,this},this.setUA(ge),this};K.VERSION=i,K.BROWSER=St([y,m,h]),K.CPU=St([S]),K.DEVICE=St([c,f,g,b,C,N,O,R,M]),K.ENGINE=K.OS=St([y,m]),t.exports&&(e=t.exports=K),e.UAParser=K;var we=typeof r!==l&&(r.jQuery||r.Zepto);if(we&&!we.ua){var He=new K;we.ua=He.getResult(),we.ua.get=function(){return He.getUA()},we.ua.set=function(Z){He.setUA(Z);var ae=He.getResult();for(var j in ae)we.ua[j]=ae[j]}}})(typeof window=="object"?window:wc)})(en,en.exports)),en.exports}var oa;function yc(){if(oa)return B;oa=1,Object.defineProperty(B,"__esModule",{value:!0});function t(E){return E&&typeof E=="object"&&"default"in E?E.default:E}var e=gc,r=t(e),n=vc(),i=new n,o=i.getBrowser(),s=i.getCPU(),a=i.getDevice(),l=i.getEngine(),d=i.getOS(),_=i.getUA(),h=function(p){return i.setUA(p)},c=function(p){if(!p){console.error("No userAgent string was provided");return}var w=new n(p);return{UA:w,browser:w.getBrowser(),cpu:w.getCPU(),device:w.getDevice(),engine:w.getEngine(),os:w.getOS(),ua:w.getUA(),setUserAgent:function(k){return w.setUA(k)}}},y=Object.freeze({ClientUAInstance:i,browser:o,cpu:s,device:a,engine:l,os:d,ua:_,setUa:h,parseUserAgent:c});function g(E,p){var w=Object.keys(E);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(E);p&&(A=A.filter(function(k){return Object.getOwnPropertyDescriptor(E,k).enumerable})),w.push.apply(w,A)}return w}function f(E){for(var p=1;p<arguments.length;p++){var w=arguments[p]!=null?arguments[p]:{};p%2?g(Object(w),!0).forEach(function(A){O(E,A,w[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(w)):g(Object(w)).forEach(function(A){Object.defineProperty(E,A,Object.getOwnPropertyDescriptor(w,A))})}return E}function m(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(p){return typeof p}:m=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},m(E)}function S(E,p){if(!(E instanceof p))throw new TypeError("Cannot call a class as a function")}function b(E,p){for(var w=0;w<p.length;w++){var A=p[w];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}function C(E,p,w){return p&&b(E.prototype,p),E}function O(E,p,w){return p in E?Object.defineProperty(E,p,{value:w,enumerable:!0,configurable:!0,writable:!0}):E[p]=w,E}function N(){return N=Object.assign||function(E){for(var p=1;p<arguments.length;p++){var w=arguments[p];for(var A in w)Object.prototype.hasOwnProperty.call(w,A)&&(E[A]=w[A])}return E},N.apply(this,arguments)}function R(E,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(p&&p.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),p&&_e(E,p)}function M(E){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},M(E)}function _e(E,p){return _e=Object.setPrototypeOf||function(A,k){return A.__proto__=k,A},_e(E,p)}function me(E,p){if(E==null)return{};var w={},A=Object.keys(E),k,pe;for(pe=0;pe<A.length;pe++)k=A[pe],!(p.indexOf(k)>=0)&&(w[k]=E[k]);return w}function ee(E,p){if(E==null)return{};var w=me(E,p),A,k;if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(E);for(k=0;k<pe.length;k++)A=pe[k],!(p.indexOf(A)>=0)&&Object.prototype.propertyIsEnumerable.call(E,A)&&(w[A]=E[A])}return w}function Q(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function H(E,p){if(p&&(typeof p=="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q(E)}function J(E,p){return de(E)||ue(E,p)||ve(E,p)||te()}function de(E){if(Array.isArray(E))return E}function ue(E,p){var w=E==null?null:typeof Symbol!="undefined"&&E[Symbol.iterator]||E["@@iterator"];if(w!=null){var A=[],k=!0,pe=!1,Me,et;try{for(w=w.call(E);!(k=(Me=w.next()).done)&&(A.push(Me.value),!(p&&A.length===p));k=!0);}catch(li){pe=!0,et=li}finally{try{!k&&w.return!=null&&w.return()}finally{if(pe)throw et}}return A}}function ve(E,p){if(E){if(typeof E=="string")return ye(E,p);var w=Object.prototype.toString.call(E).slice(8,-1);if(w==="Object"&&E.constructor&&(w=E.constructor.name),w==="Map"||w==="Set")return Array.from(E);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return ye(E,p)}}function ye(E,p){(p==null||p>E.length)&&(p=E.length);for(var w=0,A=new Array(p);w<p;w++)A[w]=E[w];return A}function te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
90
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},F={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"},q={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},re={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Te=function(p){switch(p){case z.Mobile:return{isMobile:!0};case z.Tablet:return{isTablet:!0};case z.SmartTv:return{isSmartTV:!0};case z.Console:return{isConsole:!0};case z.Wearable:return{isWearable:!0};case z.Browser:return{isBrowser:!0};case z.Embedded:return{isEmbedded:!0};default:return re}},ne=function(p){return h(p)},$=function(p){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return p||w},X=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},Ke=function(p){var w=X();return w&&w.platform&&(w.platform.indexOf(p)!==-1||w.platform==="MacIntel"&&w.maxTouchPoints>1&&!window.MSStream)},Je=function(p,w,A,k,pe){return{isBrowser:p,browserMajorVersion:$(w.major),browserFullVersion:$(w.version),browserName:$(w.name),engineName:$(A.name),engineVersion:$(A.version),osName:$(k.name),osVersion:$(k.version),userAgent:$(pe)}},ht=function(p,w,A,k){return f({},p,{vendor:$(w.vendor),model:$(w.model),os:$(A.name),osVersion:$(A.version),ua:$(k)})},nt=function(p,w,A,k){return{isSmartTV:p,engineName:$(w.name),engineVersion:$(w.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(k)}},Wt=function(p,w,A,k){return{isConsole:p,engineName:$(w.name),engineVersion:$(w.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(k)}},pt=function(p,w,A,k){return{isWearable:p,engineName:$(w.name),engineVersion:$(w.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(k)}},Xt=function(p,w,A,k,pe){return{isEmbedded:p,vendor:$(w.vendor),model:$(w.model),engineName:$(A.name),engineVersion:$(A.version),osName:$(k.name),osVersion:$(k.version),userAgent:$(pe)}};function jt(E){var p=E?c(E):y,w=p.device,A=p.browser,k=p.engine,pe=p.os,Me=p.ua,et=Te(w.type),li=et.isBrowser,f1=et.isMobile,h1=et.isTablet,sl=et.isSmartTV,al=et.isConsole,ll=et.isWearable,cl=et.isEmbedded;if(li)return Je(li,A,k,pe,Me);if(sl)return nt(sl,k,pe,Me);if(al)return Wt(al,k,pe,Me);if(f1||h1)return ht(et,w,pe,Me);if(ll)return pt(ll,k,pe,Me);if(cl)return Xt(cl,w,k,pe,Me)}var Ct=function(p){var w=p.type;return w===z.Mobile},zt=function(p){var w=p.type;return w===z.Tablet},Qt=function(p){var w=p.type;return w===z.Mobile||w===z.Tablet},St=function(p){var w=p.type;return w===z.SmartTv},at=function(p){var w=p.type;return w===z.Browser},v=function(p){var w=p.type;return w===z.Wearable},T=function(p){var w=p.type;return w===z.Console},x=function(p){var w=p.type;return w===z.Embedded},V=function(p){var w=p.vendor;return $(w)},D=function(p){var w=p.model;return $(w)},P=function(p){var w=p.type;return $(w,"browser")},W=function(p){var w=p.name;return w===q.Android},ie=function(p){var w=p.name;return w===q.Windows},K=function(p){var w=p.name;return w===q.MAC_OS},we=function(p){var w=p.name;return w===q.WindowsPhone},He=function(p){var w=p.name;return w===q.IOS},Z=function(p){var w=p.version;return $(w)},ae=function(p){var w=p.name;return $(w)},j=function(p){var w=p.name;return w===F.Chrome},ge=function(p){var w=p.name;return w===F.Firefox},Ge=function(p){var w=p.name;return w===F.Chromium},Pe=function(p){var w=p.name;return w===F.Edge},he=function(p){var w=p.name;return w===F.Yandex},G=function(p){var w=p.name;return w===F.Safari||w===F.MobileSafari},Xe=function(p){var w=p.name;return w===F.MobileSafari},er=function(p){var w=p.name;return w===F.Opera},pr=function(p){var w=p.name;return w===F.InternetExplorer||w===F.Ie},Fn=function(p){var w=p.name;return w===F.MIUI},Un=function(p){var w=p.name;return w===F.SamsungBrowser},Ln=function(p){var w=p.version;return $(w)},Vn=function(p){var w=p.major;return $(w)},$n=function(p){var w=p.name;return $(w)},Bn=function(p){var w=p.name;return $(w)},Hn=function(p){var w=p.version;return $(w)},Wn=function(){var p=X(),w=p&&p.userAgent&&p.userAgent.toLowerCase();return typeof w=="string"?/electron/.test(w):!1},tr=function(p){return typeof p=="string"&&p.indexOf("Edg/")!==-1},jn=function(){var p=X();return p&&(/iPad|iPhone|iPod/.test(p.platform)||p.platform==="MacIntel"&&p.maxTouchPoints>1)&&!window.MSStream},lt=function(){return Ke("iPad")},zn=function(){return Ke("iPhone")},Kn=function(){return Ke("iPod")},Gn=function(p){return $(p)};function qn(E){var p=E||y,w=p.device,A=p.browser,k=p.os,pe=p.engine,Me=p.ua;return{isSmartTV:St(w),isConsole:T(w),isWearable:v(w),isEmbedded:x(w),isMobileSafari:Xe(A)||lt(),isChromium:Ge(A),isMobile:Qt(w)||lt(),isMobileOnly:Ct(w),isTablet:zt(w)||lt(),isBrowser:at(w),isDesktop:at(w),isAndroid:W(k),isWinPhone:we(k),isIOS:He(k)||lt(),isChrome:j(A),isFirefox:ge(A),isSafari:G(A),isOpera:er(A),isIE:pr(A),osVersion:Z(k),osName:ae(k),fullBrowserVersion:Ln(A),browserVersion:Vn(A),browserName:$n(A),mobileVendor:V(w),mobileModel:D(w),engineName:Bn(pe),engineVersion:Hn(pe),getUA:Gn(Me),isEdge:Pe(A)||tr(Me),isYandex:he(A),deviceType:P(w),isIOS13:jn(),isIPad13:lt(),isIPhone13:zn(),isIPod13:Kn(),isElectron:Wn(),isEdgeChromium:tr(Me),isLegacyEdge:Pe(A)&&!tr(Me),isWindows:ie(k),isMacOs:K(k),isMIUI:Fn(A),isSamsungBrowser:Un(A)}}var Zn=St(a),Yn=T(a),Jn=v(a),yo=x(a),bo=Xe(o)||lt(),Co=Ge(o),Nr=Qt(a)||lt(),Xn=Ct(a),Qn=zt(a)||lt(),ei=at(a),So=at(a),ti=W(d),ri=we(d),ni=He(d)||lt(),Eo=j(o),To=ge(o),Io=G(o),Oo=er(o),ii=pr(o),Ao=Z(d),xo=ae(d),Ro=Ln(o),ko=Vn(o),No=$n(o),Do=V(a),Po=D(a),Mo=Bn(l),Fo=Hn(l),Uo=Gn(_),Et=Pe(o)||tr(_),Lo=he(o),oe=P(a),_t=jn(),Dr=lt(),oi=zn(),si=Kn(),ai=Wn(),ju=tr(_),zu=Pe(o)&&!tr(_),Ku=ie(d),Gu=K(d),qu=Fn(o),Zu=Un(o),Yu=function(p){if(!p||typeof p!="string"){console.error("No valid user agent string was provided");return}var w=c(p),A=w.device,k=w.browser,pe=w.os,Me=w.engine,et=w.ua;return qn({device:A,browser:k,os:pe,engine:Me,ua:et})},Ju=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return ti?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},Xu=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return ei?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},Qu=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return ii?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},e1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return ni?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},t1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return Nr?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},r1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return Qn?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},n1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return ri?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},i1=function(p){var w=p.renderWithFragment,A=p.children;p.viewClassName,p.style;var k=ee(p,["renderWithFragment","children","viewClassName","style"]);return Xn?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},o1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return Zn?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},s1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return Yn?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},a1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return Jn?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},l1=function(p){var w=p.renderWithFragment,A=p.children;p.viewClassName,p.style;var k=p.condition,pe=ee(p,["renderWithFragment","children","viewClassName","style","condition"]);return k?w?r.createElement(e.Fragment,null,A):r.createElement("div",pe,A):null};function c1(E){return(function(p){R(w,p);function w(A){var k;return S(this,w),k=H(this,M(w).call(this,A)),k.isEventListenerAdded=!1,k.handleOrientationChange=k.handleOrientationChange.bind(Q(k)),k.onOrientationChange=k.onOrientationChange.bind(Q(k)),k.onPageLoad=k.onPageLoad.bind(Q(k)),k.state={isLandscape:!1,isPortrait:!1},k}return C(w,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var k=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:k===0,isLandscape:k===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,N({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),w})(r.Component)}function d1(){var E=e.useState(function(){var pe=window.innerWidth>window.innerHeight?90:0;return{isPortrait:pe===0,isLandscape:pe===90,orientation:pe===0?"portrait":"landscape"}}),p=J(E,2),w=p[0],A=p[1],k=e.useCallback(function(){var pe=window.innerWidth>window.innerHeight?90:0,Me={isPortrait:pe===0,isLandscape:pe===90,orientation:pe===0?"portrait":"landscape"};w.orientation!==Me.orientation&&A(Me)},[w.orientation]);return e.useEffect(function(){return(typeof window=="undefined"?"undefined":m(window))!==void 0&&Nr&&(k(),window.addEventListener("load",k,!1),window.addEventListener("resize",k,!1)),function(){window.removeEventListener("resize",k,!1),window.removeEventListener("load",k,!1)}},[k]),w}function ol(E){var p=E||window.navigator.userAgent;return c(p)}function u1(E){var p=E||window.navigator.userAgent,w=ol(p),A=qn(w);return[A,w]}return B.AndroidView=Ju,B.BrowserTypes=F,B.BrowserView=Xu,B.ConsoleView=s1,B.CustomView=l1,B.IEView=Qu,B.IOSView=e1,B.MobileOnlyView=i1,B.MobileView=t1,B.OsTypes=q,B.SmartTVView=o1,B.TabletView=r1,B.WearableView=a1,B.WinPhoneView=n1,B.browserName=No,B.browserVersion=ko,B.deviceDetect=jt,B.deviceType=oe,B.engineName=Mo,B.engineVersion=Fo,B.fullBrowserVersion=Ro,B.getSelectorsByUserAgent=Yu,B.getUA=Uo,B.isAndroid=ti,B.isBrowser=ei,B.isChrome=Eo,B.isChromium=Co,B.isConsole=Yn,B.isDesktop=So,B.isEdge=Et,B.isEdgeChromium=ju,B.isElectron=ai,B.isEmbedded=yo,B.isFirefox=To,B.isIE=ii,B.isIOS=ni,B.isIOS13=_t,B.isIPad13=Dr,B.isIPhone13=oi,B.isIPod13=si,B.isLegacyEdge=zu,B.isMIUI=qu,B.isMacOs=Gu,B.isMobile=Nr,B.isMobileOnly=Xn,B.isMobileSafari=bo,B.isOpera=Oo,B.isSafari=Io,B.isSamsungBrowser=Zu,B.isSmartTV=Zn,B.isTablet=Qn,B.isWearable=Jn,B.isWinPhone=ri,B.isWindows=Ku,B.isYandex=Lo,B.mobileModel=Po,B.mobileVendor=Do,B.osName=xo,B.osVersion=Ao,B.parseUserAgent=c,B.setUserAgent=ne,B.useDeviceData=ol,B.useDeviceSelectors=u1,B.useMobileOrientation=d1,B.withOrientationChange=c1,B}var Yt=yc();const bc=(t,e)=>Ki(t,e),Ki=(t,e)=>{const r=Gi(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]=Gi(i,e);else if(Array.isArray(i)){const o=i.map(s=>typeof s=="object"?Ki(s,e):s);r[n]=o}}return r},Gi=(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&&Sc(s,i):i=s}),i){const o=Gi(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 Ki(r,e)},Cc=t=>{const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&r.toLowerCase()!=="layout"&&(e[r]=t[r]);return e},Sc=(t,e)=>{for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},$e=[];for(let t=0;t<256;++t)$e.push((t+256).toString(16).slice(1));function Ec(t,e=0){return($e[t[e+0]]+$e[t[e+1]]+$e[t[e+2]]+$e[t[e+3]]+"-"+$e[t[e+4]]+$e[t[e+5]]+"-"+$e[t[e+6]]+$e[t[e+7]]+"-"+$e[t[e+8]]+$e[t[e+9]]+"-"+$e[t[e+10]]+$e[t[e+11]]+$e[t[e+12]]+$e[t[e+13]]+$e[t[e+14]]+$e[t[e+15]]).toLowerCase()}let qi;const Tc=new Uint8Array(16);function Ic(){if(!qi){if(typeof crypto=="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");qi=crypto.getRandomValues.bind(crypto)}return qi(Tc)}const sa={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Oc(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:Ic();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Ec(n)}function Ac(t,e,r){return sa.randomUUID&&!t?sa.randomUUID():Oc(t)}function Zi(t){try{return JSON.parse(JSON.stringify(t))}catch(e){return console.warn("Failed to copy object:",e),null}}const aa=(t,e)=>{if(!t||!e)return null;let r=null;return r=Zi(t),r&&(r=bc(r,e)),r};function xc(t){return U(this,null,function*(){return new Promise(e=>setTimeout(e,t))})}function Rc(i,o){return U(this,arguments,function*(t,e,r=Ll,n=Vl){let s=0;for(;s<r;){const a=yield t();if(a!==null)return a;s++,s<r&&(yield xc(n))}return e()})}const kc=(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)},Nc=(t,e)=>{if(!t||!e)return!1;const r=t.find(i=>i.id===e);return(r==null?void 0:r.type)!=="PROCESSING"},Dc=(t,e)=>{const r=t.reduce((s,a)=>(s.push(...a.supportedTemplates),s),[]),n=Array.from(new Set(e.filter(s=>!s.final&&Ul.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}},cr={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}}},Yi=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Ji=t=>/^[^:{}\s]+:[^:{}\s]+$/.test(t),Xi={setSessionIdWorkflowIdToLs:(t,e)=>{const r=localStorage.getItem(sr);let n={};if(r)try{const i=JSON.parse(r);Yi(i)&&(n=i)}catch(i){if(Ji(r)){const[o,s]=r.split(":");o&&s&&(n={[s]:o})}}n[e]=t,localStorage.setItem(sr,JSON.stringify(n))},getSessionIdWorkflowIdFromLS:()=>{const t=localStorage.getItem(sr);if(!t)return null;try{const e=JSON.parse(t);return Yi(e)?e:null}catch(e){if(Ji(t)){const[r,n]=t.split(":");if(r&&n)return{[n]:r}}return null}},removeSessionIdWorkflowIdFromLS:({workflowId:t=""})=>{const e=localStorage.getItem(sr);if(!e)return!1;if(!t)return localStorage.removeItem(sr),!0;try{const r=JSON.parse(e);if(!Yi(r))return!1;const n=r;return Object.prototype.hasOwnProperty.call(n,t)?(delete n[t],localStorage.setItem(sr,JSON.stringify(n)),!0):!1}catch(r){if(Ji(e)){const[,n]=e.split(":");return n===t?(localStorage.removeItem(sr),!0):!1}return!1}}},Pc=t=>{var n;let e;const r=Ac();try{e=(n=window.localStorage.getItem(t))!=null?n:r,window.localStorage.setItem(t,e)}catch(i){e=r}return e};function Mc(t){return Object.prototype.toString.call(t)==="[object Object]"&&Object.keys(t).length>0}function Fc(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function Uc(){return typeof document=="undefined"?null:document.documentElement.getAttribute("lang")||null}function Lc(){return typeof navigator!="undefined"?navigator.language:null}const Vc=t=>{const e=Bl,r=typeof t=="string"?t:null,n=Uc(),i=Lc();return r||n||i||e},$c=t=>{try{return new URL(t).searchParams.get("sessionId")}catch(e){return null}};function la(t){return!("error"in t)}function Qi(t){try{let e=t;!t.includes("://")&&t.includes(".")&&(e=`http://${t}`);const r=new URL(e),n=r.hostname,i=r.protocol==="https:",o=r.port?parseInt(r.port,10):void 0;return{host:n,isSecure:i,port:o}}catch(e){return null}}const ca=()=>{if(typeof window=="undefined")return"SERVER_SIDE_RENDERING";if(!document.referrer)return window.location.origin;try{return new URL(document.referrer).origin}catch(t){return window.location.origin}},Bc=t=>({deviceId:Pc($l),metadata:{platform:"browser",osVersion:`${Yt.osVersion}`,hostAppId:ca(),host:ca(),name:navigator.userAgent,deviceModel:`${Yt.osName}/${Yt.osVersion} ${Yt.browserName}/${Yt.fullBrowserVersion}`,hostAppVersion:`${Yt.browserName}/${Yt.fullBrowserVersion}`},deviceType:"browser",heartbeatCadence:2,serial:"",macAddress:""}),da={apiKeyAuthTokenCollection:{},sessionProperties:[],currentSessionData:null,sessionRestoreMode:!1,processingTransformedTemplate:null,nonce:void 0,currentStepId:null,layout:null,currentScreenConfig:null,workflowId:null,modulesConfig:{},workflow:null,externalModules:[],serviceToken:void 0,startConfig:{},listener:()=>{}},Hc=(t,e)=>Y(I({},da),{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=Xi.getSessionIdWorkflowIdFromLS(),n=e().workflowId,o=r&&r[n];return n&&o?{workflowId:n,sessionId:o}:null},setCurrentSessionDataLsAndStore:r=>{Xi.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?cr.removeAuthTokenLs(n):Xi.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(()=>I({},da)),setStartConfig:r=>{t(()=>({startConfig: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 ua extends HTMLElement{}function fa(t,e){if(e.displayName?console.log(`Register module: ${e.displayName}`):console.error('Missed "displayName" when register module'),e.getSupportedTemplates&&typeof e.getSupportedTemplates=="function"){const r=e.getSupportedTemplates();console.log(`${e==null?void 0:e.displayName} supported templates: ${r.join(", ")}`)}else console.error('Missed "getSupportedTemplates" method when register module');if(e.initialize&&typeof e.initialize=="function"||console.error(`${e==null?void 0:e.displayName} "initialize" method was not implemented`),e.deinitialize&&typeof e.deinitialize=="function"||console.error(`${e==null?void 0:e.displayName} "deinitialize" method was not implemented`),e.isReady&&typeof e.isReady=="function"||console.error(`${e==null?void 0:e.displayName} "isReady" method was not implemented`),e.getIdentifier&&typeof e.getIdentifier=="function"){const r=e.getIdentifier();console.log(`Module id: ${r}`)}else console.error('Missed "getIdentifier" when register module');customElements.get(e.getIdentifier())?console.log(`Module ${t} has already registered`):customElements.define(t,e),console.log("-------")}const Nt=class Nt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Wr);super({errorCode:e,errorCodeKey:o,errorEnumName:Nt.ERROR_ENUM_NAME,module:Nt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Nt.ERROR_ENUM_NAME,shortDomainCode:Nt.SHORT_CODE})}};Nt.MODULE=wt,Nt.ERROR_ENUM_NAME="InitializeError",Nt.SHORT_CODE="IN";let bn=Nt;const Dt=class Dt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,_n);super({errorCode:e,errorCodeKey:o,errorEnumName:Dt.ERROR_ENUM_NAME,module:Dt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Dt.ERROR_ENUM_NAME,shortDomainCode:Dt.SHORT_CODE})}};Dt.MODULE=wt,Dt.ERROR_ENUM_NAME="TokenInitializeError",Dt.SHORT_CODE="TI";let Cn=Dt;const Pt=class Pt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,mt);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=wt,Pt.ERROR_ENUM_NAME="PrepareWorkflowError",Pt.SHORT_CODE="PW";let xt=Pt;const Mt=class Mt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Ve);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=wt,Mt.ERROR_ENUM_NAME="ConfigureError",Mt.SHORT_CODE="CFG";let Be=Mt;const Ft=class Ft extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,We);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=wt,Ft.ERROR_ENUM_NAME="WorkflowError",Ft.SHORT_CODE="SC";let Ze=Ft;const Ut=class Ut extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,It);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=wt,Ut.ERROR_ENUM_NAME="ConnectionError",Ut.SHORT_CODE="CO";let tn=Ut;const Lt=class Lt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,it);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=wt,Lt.ERROR_ENUM_NAME="SessionError",Lt.SHORT_CODE="SE";let rn=Lt;const Vt=class Vt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,qt);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=wt,Vt.ERROR_ENUM_NAME="StartSessionError",Vt.SHORT_CODE="ST";let dr=Vt;const $t=class $t extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,jr);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=wt,$t.ERROR_ENUM_NAME="DeinitializationError",$t.SHORT_CODE="DE";let Sn=$t;const Bt=class Bt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,gt);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=wt,Bt.ERROR_ENUM_NAME="WorkflowPlatformError",Bt.SHORT_CODE="WPE";let En=Bt;class Ir{constructor(){this.webSocket=null,this.callbacks=new Set,this.connected=!1}static getInstance(){return Ir.instance||(Ir.instance=new Ir),Ir.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 ur=Ir.getInstance();var Wc=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:--Wc,__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 se.vnode&&se.vnode(d),d}const eo=Ri(void 0),ha=({perform:t,children:e,setIsProcessingCallback:r})=>u(eo.Provider,{value:{perform:t,setIsProcessingCallback:r},children:e}),fr=()=>{const t=Jr(eo);if(!t)throw new Error("usePerform must be used within a PerformProvider");return{perform:t.perform}},jc=()=>{const t=Jr(eo);if(!t)throw new Error("useSetIsProcessingCallback must be used within a Context Provider");return{setIsProcessingCallback:t.setIsProcessingCallback}},zc={width:"86px",height:"86px",flex:"0 0 86px",marginBottom:"16px",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center"},dt={INFO:"INFO",INFO_DETAILS:"INFO_DETAILS",STATUS:"STATUS",PROGRESS:"PROGRESS",QUESTIONS:"QUESTIONS",CAMERA:"CAMERA",GALLERY:"GALLERY",GEOLOCATION:"GEOLOCATION"},Tn={LEFT:"LEFT",CENTER:"CENTER",RIGHT:"RIGHT"},In={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"},On={FREE_TEXT:"FREE_TEXT",EMAIL:"EMAIL",NUMBER:"NUMBER",SECURE:"SECURE"},nn="#005fcc",An="idv-gui",xn={DECODING_FAILED:"DECODING_FAILED"},to={text:"text",selector:"selector",multiSelector:"multiSelector"},pa={NOT_EMPTY:"notEmpty",REGEX:"regex"};function _a(t){return t===Tn.CENTER?"center":t===Tn.RIGHT?"right":"left"}function ro(t){if(typeof t=="object"&&t!==null)for(const e in t)typeof t[e]=="object"?ro(t[e]):t[e]==="true"?t[e]=!0:t[e]==="false"&&(t[e]=!1);return t}function Kc(t){return Object.entries(t).map(([e,r])=>({id:e,value:typeof r=="string"?r.trim():r})).filter(e=>!!e.value)}const Gc=t=>Array.isArray(t)?t.length===0:t===0?!1:!t;function le(t){return t&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)?t:void 0}const qc=(t,e)=>t.reduce((r,n)=>{var i,o,s;if(n.answerType===to.text&&(i=n.property)!=null&&i.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.string)return Y(I({},r),{[n.id]:a.string})}if(n.answerType===to.selector&&(o=n.property)!=null&&o.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.string)return Y(I({},r),{[n.id]:a.string})}if(n.answerType===to.multiSelector&&(s=n.property)!=null&&s.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.array)return Y(I({},r),{[n.id]:a.array})}return r},{}),ma=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)}),Zc=()=>U(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"}}),Yc=()=>String.fromCharCode(Math.floor(Math.random()*26)+97)+Number(Math.random()).toString(16).slice(2)+Date.now().toString(16).slice(4),ga=({indicatorColor:t})=>{const e=st(null),r=le(t)||"#000000",n=60,i=5,o=.75,s=(n-i)/2,a=2*Math.PI*s,l=1-o,d=360/1e3;return ot(()=>{if(!e.current)return;let _=!0,h=0,c=performance.now();function y(g){if(!_)return;const f=g-c;c=g,h=(h+d*f)%360,e.current&&(e.current.style.transform=`rotate(${h}deg)`),requestAnimationFrame(y)}return requestAnimationFrame(y),()=>{_=!1}},[]),u("svg",{ref:e,width:n,height:n,viewBox:`0 0 ${n} ${n}`,children:u("circle",{cx:n/2,cy:n/2,r:s,fill:"none",stroke:r,strokeWidth:i,strokeDasharray:`${a*o} ${a*l}`,strokeDashoffset:0,strokeLinecap:"butt",transform:`rotate(-45 ${n/2} ${n/2})`})})};function Jc({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 Xc({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 Qc({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 ed({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 td=({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 rd({size:t}){return u("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("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 nd({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 id({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 od({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 sd({size:t}){return u("svg",{width:t||48,height:t||48,viewBox:"0 0 49 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("circle",{cx:"15.5004",cy:"10.8002",r:"3.6",stroke:"#0E1F97",strokeWidth:"3"}),u("circle",{cx:"35.2998",cy:"19.7998",r:"3",stroke:"#0E1F97",strokeWidth:"3"}),u("path",{d:"M28.0146 20.3999C29.2496 18.4972 30.705 17.9696 32.2994 18.2728M42.5841 20.3999C41.3491 18.4972 39.8938 17.9696 38.2994 18.2728",stroke:"#0E1F97",strokeWidth:"3"}),u("path",{d:"M12.5 41.7002V30.6002H9.5V19.2002H21.5V30.6002H18.5V41.7002",stroke:"#0E1F97",strokeWidth:"3"}),u("path",{d:"M32.2998 41.7001V37.2001H29.2998L33.4998 27.6001H37.0998L41.2998 37.2001H38.2998V41.7001",stroke:"#0E1F97",strokeWidth:"3"})]})}const wa=({size:t,color:e})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,fill:e||"rgba(0,0,0,0.6)",children:u("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}),ad=({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 ld({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 cd(){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 dd=({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"})]}),ud=()=>u("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"9.5",stroke:"#7E57C5"}),u("rect",{x:"3",y:"3.5",width:"14",height:"14",rx:"7",fill:"#7E57C5"})]}),fd=()=>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"})}),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:"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"})]}),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:"3.5",stroke:"#8C8C8C"})}),_d=({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})}),md=({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})}),gd=({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)"})})})]}),wd=({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})})})]}),vd=()=>u("div",{}),Se={WARNING:"warning_icon",SPINNER:"spinner",ERROR:"failure",AGE:"age",ANDROID:"android",ARROW:"arrow",APPLE:"apple",BACK:"back",BIOMETRIC:"biometricIcon",INFO:"info",TO_MOBILE:"toMobile",UNDERAGE:"underage",CROSS:"cross",REGULA_LOGO:"regulaLogo",POWERED_BY:"signature",SUCCESS:"success",DEFAULT:"empty",CIRCLE_SELECTED:"radio_selected",CIRCLE_NORMAL:"radio_normal",SQUARE_SELECTED:"square_selected",SQUARE_NORMAL:"square_normal",SELECTED:"selected",CHEVRON_DOWN:"chevronDown",CLOSE_ICON:"close_icon",GALLERY_ICON:"gallery",CAMERA_ICON:"camera"},no={[Se.WARNING]:ld,[Se.SPINNER]:ga,[Se.ERROR]:Jc,[Se.AGE]:Xc,[Se.ANDROID]:Qc,[Se.ARROW]:ed,[Se.APPLE]:td,[Se.BACK]:rd,[Se.BIOMETRIC]:nd,[Se.INFO]:id,[Se.TO_MOBILE]:od,[Se.UNDERAGE]:sd,[Se.CROSS]:wa,[Se.REGULA_LOGO]:ad,[Se.DEFAULT]:vd,[Se.POWERED_BY]:cd,[Se.SUCCESS]:dd,[Se.CIRCLE_SELECTED]:ud,[Se.CIRCLE_NORMAL]:fd,[Se.SQUARE_SELECTED]:hd,[Se.SQUARE_NORMAL]:pd,[Se.SELECTED]:_d,[Se.CHEVRON_DOWN]:md,[Se.CLOSE_ICON]:wa,[Se.GALLERY_ICON]:gd,[Se.CAMERA_ICON]:wd},yd=({type:t,size:e,color:r})=>{const n=no[t]||no[Se.DEFAULT];return u(n,{size:e,color:r})},Le=({imageId:t,imageURL:e,base64:r,contentMode:n=In.ASPECT_FILL,cornerRadius:i,backgroundColor:o})=>{const s=h=>{if(h===In.ASPECT_FILL)return"cover";if(h===In.ASPECT_FIT)return"contain";if(h===In.FILL)return"fill"},[a,l]=Ue(!0),d=a&&e,_=()=>{l(!1)};if(r)return u("img",{style:{width:"100%",height:"100%",objectFit:s(n),borderRadius:i,backgroundColor:le(o)||"transparent",display:d?"none":"block"},src:r});if(t){const h=t in no?t:"default";return u(yd,{type:h})}if(e)return u(je,{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:_})]})},bd=({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(Le,{imageId:t==null?void 0:t.imageId})})}),Cd={display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"18px",height:"36px",minWidth:"36px",border:"none",cursor:"pointer"},Sd=({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:_}=fr();return u("button",{"data-ui":"gui-close-button",part:"gui-close-button","data-test":t,onClick:()=>{const y=JSON.parse(JSON.stringify(e));ro(y),_(y)},className:"hover-button",style:Y(I(I({},Cd),o&&{borderRadius:o}),{backgroundColor:(c=le(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(Le,I({},r))}),n&&u("div",{style:{padding:"0 5px"},children:u(ke,I({},n))})]})},Ed=({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(Sd,I({dataTestId:"close-btn"},t))})});function Td(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 _=l.startsWith("http")?l:`https://${l}`;r.push(u("a",{href:_,target:"_blank",rel:"noopener noreferrer",children:a},d)),n=d+s.length}return n<t.length&&r.push(t.slice(n)),r}function va(t){const e=t.split(`
|
|
91
|
+
`);return e.flatMap((r,n)=>{const i=Td(r);return n===e.length-1?i:[...i,u("br",{},"br-"+n)]})}const ke=({text:t,fontName:e="",fontSize:r="17px",fontColor:n,alignment:i=Tn.LEFT,backgroundColor:o,cornerRadius:s=0,htmlFor:a})=>{const l={fontFamily:[e,"-apple-system","BlinkMacSystemFont","sans-serif"].filter(Boolean).join(", "),fontSize:r,color:le(n)||"#000000",textAlign:_a(i),backgroundColor:le(o)||"transparent",borderRadius:s},d=typeof t=="string"&&t.trim()&&va(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})},io=({title:t,image:e,responseBody:r,backgroundColor:n="transparent",cornerRadius:i,highlightColor:o,dataTestId:s,borderColor:a,borderWidth:l,type:d="RESPONSE_BODY",onClick:_})=>{var S,b;const[h,c]=Ue(!1),y=h&&le(o)?o:n,{perform:g}=fr(),f=C=>{if(_&&_(C),d!=="RESPONSE_BODY")return;const O=JSON.parse(JSON.stringify(r));ro(O),g(O)},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:(S=le(y))!=null?S:"transparent",borderColor:(b=le(a))!=null?b:"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:f,style:m,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[e&&u(Le,I({},e)),t&&u("div",{style:{flexGrow:e?0:1},children:u(ke,I({},t))})]})},Id=r=>{var n=r,{items:t}=n,e=_r(n,["items"]);return u("div",{part:"gui-buttons","data-ui":"gui-buttons",style:I(I({},{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(io,I({dataTestId:"button-"+((s=o.title)==null?void 0:s.text)},o),Yc())})})},Jt=({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:le(n)};return u("div",{part:"gui-base-container","data-ui":"gui-base-container",id:"base-container",style:I({},a),children:[e&&u("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:o},children:u(Ed,{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(Id,{items:i}),r&&u("div",{style:{position:"absolute",bottom:"0",left:"0",width:"100%",height:s},children:u(bd,I({},r))})]})},Rn=({text:t,fontName:e="",fontColor:r,alignment:n=Tn.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:_a(n),color:le(r)||"#000000",borderRadius:s,backgroundColor:le(o)||"transparent",whiteSpace:"pre-line"},children:t&&va(t)}),Od=({header:t,footer:e,image:r,title:n,description:i,buttons:o,backgroundColor:s})=>{const a=st(null),[l,d]=Ue(!1);return ot(()=>{a.current&&d(a.current.scrollHeight>a.current.clientHeight+2)},[]),u(Jt,{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:zc,children:u(Le,I({},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(ke,I({},n))})}),i&&u("div",{style:{lineHeight:"28px",fontWeight:"400",marginTop:"16px"},children:u(Rn,I({},i))})]})})},Ad={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:"1.68"},xd={position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Rd=({title:t,header:e,footer:r,image:n,description:i,buttons:o,backgroundColor:s})=>u(Jt,{header:e,footer:r,buttons:o,backgroundColor:s,children:u(je,{children:u("div",{part:"gui-info-screen-container","data-ui":"gui-info-screen-container",id:"info-screen-container",style:Y(I({},xd),{justifyContent:n?"flex-start":"center"}),children:[n&&u("div",{style:Ad,children:u(Le,I({},n))}),t&&u("div",{style:{marginBottom:20,lineHeight:"39.2px"},children:u(ke,I({},t))}),i&&u("div",{style:{lineHeight:"28px",fontWeight:"400"},children:u(Rn,I({},i))})]})})}),kd=({indicatorColor:t="black"})=>u(je,{children:u(ga,{indicatorColor:t})}),ya=({progressView:t,footer:e,backgroundColor:r})=>u(Jt,{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(kd,{indicatorColor:le(t==null?void 0:t.indicatorColor)||"#000000"})})}),Nd=({title:t,description:e,image:r,backgroundColor:n,cornerRadius:i=0,isLastChild:o})=>u("div",{className:"details-item",style:Y(I({},{display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderBottom:o?"none":"1px solid #E0E0E0",padding:"16px 0",gap:16}),{backgroundColor:le(n)||"transparent",borderRadius:i}),children:[u("div",{style:{flex:"0 1 auto"},children:[u("div",{style:{marginBottom:5,fontWeight:"bold",lineHeight:"21px"},children:u(ke,I({},t))}),u("div",{style:{lineHeight:"21px",fontWeight:"400"},children:u(Rn,I({},e))})]}),u("div",{style:{aspectRatio:"1 / 1",width:120,height:120,flex:"0 0 120px"},children:u(Le,I({},r))})]}),Dd={display:"flex",flexDirection:"column",padding:"0 16px"},Pd=({items:t,backgroundColor:e,cornerRadius:r=16})=>u("div",{className:"details",style:Y(I({},Dd),{backgroundColor:le(e)||"white",borderRadius:r}),children:t.map((n,i)=>u(Nd,I({isLastChild:i===t.length-1},n),i))}),Md=({title:t,header:e,footer:r,details:n,buttons:i,backgroundColor:o})=>{const s=st(null),[a,l]=Ue(!1);return ot(()=>{s.current&&l(s.current.scrollHeight>s.current.clientHeight)},[]),u(Jt,{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(ke,I({},t))}),n&&u(Pd,I({},n))]})})};var on=t=>t.type==="checkbox",hr=t=>t instanceof Date,Ye=t=>t==null;const ba=t=>typeof t=="object";var Ne=t=>!Ye(t)&&!Array.isArray(t)&&ba(t)&&!hr(t),Ca=t=>Ne(t)&&t.target?on(t.target)?t.target.checked:t.target.value:t,Fd=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,Sa=(t,e)=>t.has(Fd(e)),Ud=t=>{const e=t.constructor&&t.constructor.prototype;return Ne(e)&&e.hasOwnProperty("isPrototypeOf")},oo=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(!(oo&&(t instanceof Blob||n))&&(r||Ne(t)))if(e=r?[]:Object.create(Object.getPrototypeOf(t)),!r&&!Ud(t))e=t;else for(const i in t)t.hasOwnProperty(i)&&(e[i]=Fe(t[i]));else return t;return e}var kn=t=>/^\w*$/.test(t),xe=t=>t===void 0,so=t=>Array.isArray(t)?t.filter(Boolean):[],ao=t=>so(t.replace(/["|']|\]/g,"").split(/\.|\[/)),L=(t,e,r)=>{if(!e||!Ne(t))return r;const n=(kn(e)?[e]:ao(e)).reduce((i,o)=>Ye(i)?i:i[o],t);return xe(n)||n===t?xe(t[e])?r:t[e]:n},tt=t=>typeof t=="boolean",Ee=(t,e,r)=>{let n=-1;const i=kn(e)?[e]:ao(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 Nn={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ut={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Rt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ea=ce.createContext(null);Ea.displayName="HookFormContext";const lo=()=>ce.useContext(Ea);var Ta=(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]!==ut.all&&(e._proxyFormState[s]=!n||ut.all),r&&(r[s]=!0),t[s]}});return i};const co=typeof window!="undefined"?ce.useLayoutEffect:ce.useEffect;function Ld(t){const e=lo(),{control:r=e.control,disabled:n,name:i,exact:o}=t||{},[s,a]=ce.useState(r._formState),l=ce.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return co(()=>r._subscribe({name:i,formState:l.current,exact:o,callback:d=>{!n&&a(I(I({},r._formState),d))}}),[i,n,o]),ce.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),ce.useMemo(()=>Ta(s,r,l.current,!1),[s,r])}var rt=t=>typeof t=="string",Ia=(t,e,r,n,i)=>rt(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),uo=t=>Ye(t)||!ba(t);function kt(t,e,r=new WeakSet){if(uo(t)||uo(e))return t===e;if(hr(t)&&hr(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(hr(s)&&hr(a)||Ne(s)&&Ne(a)||Array.isArray(s)&&Array.isArray(a)?!kt(s,a,r):s!==a)return!1}}return!0}function Vd(t){const e=lo(),{control:r=e.control,name:n,defaultValue:i,disabled:o,exact:s,compute:a}=t||{},l=ce.useRef(i),d=ce.useRef(a),_=ce.useRef(void 0);d.current=a;const h=ce.useMemo(()=>r._getWatch(n,l.current),[r,n]),[c,y]=ce.useState(d.current?d.current(h):h);return co(()=>r._subscribe({name:n,formState:{values:!0},exact:s,callback:g=>{if(!o){const f=Ia(n,r._names,g.values||r._formValues,!1,l.current);if(d.current){const m=d.current(f);kt(m,_.current)||(y(m),_.current=m)}else y(f)}}}),[r,o,n,s]),ce.useEffect(()=>r._removeUnmounted()),c}function $d(t){const e=lo(),{name:r,disabled:n,control:i=e.control,shouldUnregister:o,defaultValue:s}=t,a=Sa(i._names.array,r),l=ce.useMemo(()=>L(i._formValues,r,L(i._defaultValues,r,s)),[i,r,s]),d=Vd({control:i,name:r,defaultValue:l,exact:!0}),_=Ld({control:i,name:r,exact:!0}),h=ce.useRef(t),c=ce.useRef(void 0),y=ce.useRef(i.register(r,I(Y(I({},t.rules),{value:d}),tt(t.disabled)?{disabled:t.disabled}:{})));h.current=t;const g=ce.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!L(_.errors,r)},isDirty:{enumerable:!0,get:()=>!!L(_.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!L(_.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!L(_.validatingFields,r)},error:{enumerable:!0,get:()=>L(_.errors,r)}}),[_,r]),f=ce.useCallback(C=>y.current.onChange({target:{value:Ca(C),name:r},type:Nn.CHANGE}),[r]),m=ce.useCallback(()=>y.current.onBlur({target:{value:L(i._formValues,r),name:r},type:Nn.BLUR}),[r,i._formValues]),S=ce.useCallback(C=>{const O=L(i._fields,r);O&&C&&(O._f.ref={focus:()=>C.focus&&C.focus(),select:()=>C.select&&C.select(),setCustomValidity:N=>C.setCustomValidity(N),reportValidity:()=>C.reportValidity()})},[i._fields,r]),b=ce.useMemo(()=>Y(I({name:r,value:d},tt(n)||_.disabled?{disabled:_.disabled||n}:{}),{onChange:f,onBlur:m,ref:S}),[r,n,_.disabled,f,m,S,d]);return ce.useEffect(()=>{const C=i._options.shouldUnregister||o,O=c.current;O&&O!==r&&!a&&i.unregister(O),i.register(r,I(I({},h.current.rules),tt(h.current.disabled)?{disabled:h.current.disabled}:{}));const N=(R,M)=>{const _e=L(i._fields,R);_e&&_e._f&&(_e._f.mount=M)};if(N(r,!0),C){const R=Fe(L(i._options.defaultValues,r,h.current.defaultValue));Ee(i._defaultValues,r,R),xe(L(i._formValues,r))&&Ee(i._formValues,r,R)}return!a&&i.register(r),c.current=r,()=>{(a?C&&!i._state.action:C)?i.unregister(r):N(r,!1)}},[r,i,a,o]),ce.useEffect(()=>{i._setDisabledField({disabled:n,name:r})},[n,r,i]),ce.useMemo(()=>({field:b,formState:_,fieldState:g}),[b,_,g])}const Oa=t=>t.render($d(t));var Bd=(t,e,r,n,i)=>e?Y(I({},r[t]),{types:Y(I({},r[t]&&r[t].types?r[t].types:{}),{[n]:i||!0})}):{},sn=t=>Array.isArray(t)?t:[t],Aa=()=>{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 xa(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=xa(i,o);Ne(s)&&(r[n]=s)}else t[n]&&(r[n]=o)}return r}var Qe=t=>Ne(t)&&!Object.keys(t).length,fo=t=>t.type==="file",ft=t=>typeof t=="function",Dn=t=>{if(!oo)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},Ra=t=>t.type==="select-multiple",ho=t=>t.type==="radio",Hd=t=>ho(t)||on(t),po=t=>Dn(t)&&t.isConnected;function Wd(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=xe(t)?n++:t[e[n++]];return t}function jd(t){for(const e in t)if(t.hasOwnProperty(e)&&!xe(t[e]))return!1;return!0}function De(t,e){const r=Array.isArray(e)?e:kn(e)?[e]:ao(e),n=r.length===1?t:Wd(t,r),i=r.length-1,o=r[i];return n&&delete n[o],i!==0&&(Ne(n)&&Qe(n)||Array.isArray(n)&&jd(n))&&De(t,r.slice(0,-1)),t}var zd=t=>{for(const e in t)if(ft(t[e]))return!0;return!1};function ka(t){return Array.isArray(t)||Ne(t)&&!zd(t)}function _o(t,e={}){for(const r in t)ka(t[r])?(e[r]=Array.isArray(t[r])?[]:{},_o(t[r],e[r])):Ye(t[r])||(e[r]=!0);return e}function Ar(t,e,r){r||(r=_o(e));for(const n in t)ka(t[n])?xe(e)||uo(r[n])?r[n]=_o(t[n],Array.isArray(t[n])?[]:{}):Ar(t[n],Ye(e)?{}:e[n],r[n]):r[n]=!kt(t[n],e[n]);return r}const Na={value:!1,isValid:!1},Da={value:!0,isValid:!0};var Pa=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&&!xe(t[0].attributes.value)?xe(t[0].value)||t[0].value===""?Da:{value:t[0].value,isValid:!0}:Da:Na}return Na},Ma=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:n})=>xe(t)?t:e?t===""?NaN:t&&+t:r&&rt(t)?new Date(t):n?n(t):t;const Fa={isValid:!1,value:null};var Ua=t=>Array.isArray(t)?t.reduce((e,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:e,Fa):Fa;function La(t){const e=t.ref;return fo(e)?e.files:ho(e)?Ua(t.refs).value:Ra(e)?[...e.selectedOptions].map(({value:r})=>r):on(e)?Pa(t.refs).value:Ma(xe(e.value)?t.ref.value:e.value,t)}var Kd=(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}},Pn=t=>t instanceof RegExp,an=t=>xe(t)?t:Pn(t)?t.source:Ne(t)?Pn(t.value)?t.value.source:t.value:t,Va=t=>({isOnSubmit:!t||t===ut.onSubmit,isOnBlur:t===ut.onBlur,isOnChange:t===ut.onChange,isOnAll:t===ut.all,isOnTouch:t===ut.onTouched});const $a="AsyncFunction";var Gd=t=>!!t&&!!t.validate&&!!(ft(t.validate)&&t.validate.constructor.name===$a||Ne(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===$a)),qd=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),Ba=(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=_r(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 Ha(t,e,r){const n=L(t,r);if(n||kn(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const 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 Zd=(t,e,r,n)=>{r(t);const s=t,{name:i}=s,o=_r(s,["name"]);return Qe(o)||Object.keys(o).length>=Object.keys(e).length||Object.keys(o).find(a=>e[a]===(!n||ut.all))},Yd=(t,e,r)=>!t||!e||t===e||sn(t).some(n=>n&&(r?n===e:n.startsWith(e)||e.startsWith(n))),Jd=(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,Xd=(t,e)=>!so(L(t,e)).length&&De(t,e),Qd=(t,e,r)=>{const n=sn(L(t,r));return Ee(n,"root",e[r]),Ee(t,r,n),t};function Wa(t,e,r="validate"){if(rt(t)||Array.isArray(t)&&t.every(rt)||tt(t)&&!t)return{type:r,message:rt(t)?t:"",ref:e}}var xr=t=>Ne(t)&&!Pn(t)?t:{value:t,message:""},ja=(t,e,r,n,i,o)=>U(null,null,function*(){const{ref:s,refs:a,required:l,maxLength:d,minLength:_,min:h,max:c,pattern:y,validate:g,name:f,valueAsNumber:m,mount:S}=t._f,b=L(r,f);if(!S||e.has(f))return{};const C=a?a[0]:s,O=H=>{i&&C.reportValidity&&(C.setCustomValidity(tt(H)?"":H||""),C.reportValidity())},N={},R=ho(s),M=on(s),_e=R||M,me=(m||fo(s))&&xe(s.value)&&xe(b)||Dn(s)&&s.value===""||b===""||Array.isArray(b)&&!b.length,ee=Bd.bind(null,f,n,N),Q=(H,J,de,ue=Rt.maxLength,ve=Rt.minLength)=>{const ye=H?J:de;N[f]=I({type:H?ue:ve,message:ye,ref:s},ee(H?ue:ve,ye))};if(o?!Array.isArray(b)||!b.length:l&&(!_e&&(me||Ye(b))||tt(b)&&!b||M&&!Pa(a).isValid||R&&!Ua(a).isValid)){const{value:H,message:J}=rt(l)?{value:!!l,message:l}:xr(l);if(H&&(N[f]=I({type:Rt.required,message:J,ref:C},ee(Rt.required,J)),!n))return O(J),N}if(!me&&(!Ye(h)||!Ye(c))){let H,J;const de=xr(c),ue=xr(h);if(!Ye(b)&&!isNaN(b)){const ve=s.valueAsNumber||b&&+b;Ye(de.value)||(H=ve>de.value),Ye(ue.value)||(J=ve<ue.value)}else{const ve=s.valueAsDate||new Date(b),ye=F=>new Date(new Date().toDateString()+" "+F),te=s.type=="time",z=s.type=="week";rt(de.value)&&b&&(H=te?ye(b)>ye(de.value):z?b>de.value:ve>new Date(de.value)),rt(ue.value)&&b&&(J=te?ye(b)<ye(ue.value):z?b<ue.value:ve<new Date(ue.value))}if((H||J)&&(Q(!!H,de.message,ue.message,Rt.max,Rt.min),!n))return O(N[f].message),N}if((d||_)&&!me&&(rt(b)||o&&Array.isArray(b))){const H=xr(d),J=xr(_),de=!Ye(H.value)&&b.length>+H.value,ue=!Ye(J.value)&&b.length<+J.value;if((de||ue)&&(Q(de,H.message,J.message),!n))return O(N[f].message),N}if(y&&!me&&rt(b)){const{value:H,message:J}=xr(y);if(Pn(H)&&!b.match(H)&&(N[f]=I({type:Rt.pattern,message:J,ref:s},ee(Rt.pattern,J)),!n))return O(J),N}if(g){if(ft(g)){const H=yield g(b,r),J=Wa(H,C);if(J&&(N[f]=I(I({},J),ee(Rt.validate,J.message)),!n))return O(J.message),N}else if(Ne(g)){let H={};for(const J in g){if(!Qe(H)&&!n)break;const de=Wa(yield g[J](b,r),C,J);de&&(H=I(I({},de),ee(J,de.message)),O(de.message),n&&(N[f]=H))}if(!Qe(H)&&(N[f]=I({ref:C},H),!n))return N}}return O(!0),N});const eu={mode:ut.onSubmit,reValidateMode:ut.onChange,shouldFocusError:!0};function tu(t={}){let e=I(I({},eu),t),r={submitCount:0,isDirty:!1,isReady:!1,isLoading:ft(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 _={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h=I({},_);const c={array:Aa(),state:Aa()},y=e.criteriaMode===ut.all,g=v=>T=>{clearTimeout(d),d=setTimeout(v,T)},f=v=>U(null,null,function*(){if(!e.disabled&&(_.isValid||h.isValid||v)){const T=e.resolver?Qe((yield M()).errors):yield me(n,!0);T!==r.isValid&&c.state.next({isValid:T})}}),m=(v,T)=>{!e.disabled&&(_.isValidating||_.validatingFields||h.isValidating||h.validatingFields)&&((v||Array.from(a.mount)).forEach(x=>{x&&(T?Ee(r.validatingFields,x,T):De(r.validatingFields,x))}),c.state.next({validatingFields:r.validatingFields,isValidating:!Qe(r.validatingFields)}))},S=(v,T=[],x,V,D=!0,P=!0)=>{if(V&&x&&!e.disabled){if(s.action=!0,P&&Array.isArray(L(n,v))){const W=x(L(n,v),V.argA,V.argB);D&&Ee(n,v,W)}if(P&&Array.isArray(L(r.errors,v))){const W=x(L(r.errors,v),V.argA,V.argB);D&&Ee(r.errors,v,W),Xd(r.errors,v)}if((_.touchedFields||h.touchedFields)&&P&&Array.isArray(L(r.touchedFields,v))){const W=x(L(r.touchedFields,v),V.argA,V.argB);D&&Ee(r.touchedFields,v,W)}(_.dirtyFields||h.dirtyFields)&&(r.dirtyFields=Ar(i,o)),c.state.next({name:v,isDirty:Q(v,T),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ee(o,v,T)},b=(v,T)=>{Ee(r.errors,v,T),c.state.next({errors:r.errors})},C=v=>{r.errors=v,c.state.next({errors:r.errors,isValid:!1})},O=(v,T,x,V)=>{const D=L(n,v);if(D){const P=L(o,v,xe(x)?L(i,v):x);xe(P)||V&&V.defaultChecked||T?Ee(o,v,T?P:La(D._f)):de(v,P),s.mount&&f()}},N=(v,T,x,V,D)=>{let P=!1,W=!1;const ie={name:v};if(!e.disabled){if(!x||V){(_.isDirty||h.isDirty)&&(W=r.isDirty,r.isDirty=ie.isDirty=Q(),P=W!==ie.isDirty);const K=kt(L(i,v),T);W=!!L(r.dirtyFields,v),K?De(r.dirtyFields,v):Ee(r.dirtyFields,v,!0),ie.dirtyFields=r.dirtyFields,P=P||(_.dirtyFields||h.dirtyFields)&&W!==!K}if(x){const K=L(r.touchedFields,v);K||(Ee(r.touchedFields,v,x),ie.touchedFields=r.touchedFields,P=P||(_.touchedFields||h.touchedFields)&&K!==x)}P&&D&&c.state.next(ie)}return P?ie:{}},R=(v,T,x,V)=>{const D=L(r.errors,v),P=(_.isValid||h.isValid)&&tt(T)&&r.isValid!==T;if(e.delayError&&x?(l=g(()=>b(v,x)),l(e.delayError)):(clearTimeout(d),l=null,x?Ee(r.errors,v,x):De(r.errors,v)),(x?!kt(D,x):D)||!Qe(V)||P){const W=Y(I(I({},V),P&&tt(T)?{isValid:T}:{}),{errors:r.errors,name:v});r=I(I({},r),W),c.state.next(W)}},M=v=>U(null,null,function*(){m(v,!0);const T=yield e.resolver(o,e.context,Kd(v||a.mount,n,e.criteriaMode,e.shouldUseNativeValidation));return m(v),T}),_e=v=>U(null,null,function*(){const{errors:T}=yield M(v);if(v)for(const x of v){const V=L(T,x);V?Ee(r.errors,x,V):De(r.errors,x)}else r.errors=T;return T}),me=(V,D,...P)=>U(null,[V,D,...P],function*(v,T,x={valid:!0}){for(const ie in v){const K=v[ie];if(K){const W=K,{_f:we}=W,He=_r(W,["_f"]);if(we){const Z=a.array.has(we.name),ae=K._f&&Gd(K._f);ae&&_.validatingFields&&m([we.name],!0);const j=yield ja(K,a.disabled,o,y,e.shouldUseNativeValidation&&!T,Z);if(ae&&_.validatingFields&&m([we.name]),j[we.name]&&(x.valid=!1,T))break;!T&&(L(j,we.name)?Z?Qd(r.errors,j,we.name):Ee(r.errors,we.name,j[we.name]):De(r.errors,we.name))}!Qe(He)&&(yield me(He,T,x))}}return x.valid}),ee=()=>{for(const v of a.unMount){const T=L(n,v);T&&(T._f.refs?T._f.refs.every(x=>!po(x)):!po(T._f.ref))&&Ke(v)}a.unMount=new Set},Q=(v,T)=>!e.disabled&&(v&&T&&Ee(o,v,T),!kt(F(),i)),H=(v,T,x)=>Ia(v,a,I({},s.mount?o:xe(T)?i:rt(v)?{[v]:T}:T),x,T),J=v=>so(L(s.mount?o:i,v,e.shouldUnregister?L(i,v,[]):[])),de=(v,T,x={})=>{const V=L(n,v);let D=T;if(V){const P=V._f;P&&(!P.disabled&&Ee(o,v,Ma(T,P)),D=Dn(P.ref)&&Ye(T)?"":T,Ra(P.ref)?[...P.ref.options].forEach(W=>W.selected=D.includes(W.value)):P.refs?on(P.ref)?P.refs.forEach(W=>{(!W.defaultChecked||!W.disabled)&&(Array.isArray(D)?W.checked=!!D.find(ie=>ie===W.value):W.checked=D===W.value||!!D)}):P.refs.forEach(W=>W.checked=W.value===D):fo(P.ref)?P.ref.value="":(P.ref.value=D,P.ref.type||c.state.next({name:v,values:Fe(o)})))}(x.shouldDirty||x.shouldTouch)&&N(v,D,x.shouldTouch,x.shouldDirty,!0),x.shouldValidate&&z(v)},ue=(v,T,x)=>{for(const V in T){if(!T.hasOwnProperty(V))return;const D=T[V],P=v+"."+V,W=L(n,P);(a.array.has(v)||Ne(D)||W&&!W._f)&&!hr(D)?ue(P,D,x):de(P,D,x)}},ve=(v,T,x={})=>{const V=L(n,v),D=a.array.has(v),P=Fe(T);Ee(o,v,P),D?(c.array.next({name:v,values:Fe(o)}),(_.isDirty||_.dirtyFields||h.isDirty||h.dirtyFields)&&x.shouldDirty&&c.state.next({name:v,dirtyFields:Ar(i,o),isDirty:Q(v,P)})):V&&!V._f&&!Ye(P)?ue(v,P,x):de(v,P,x),Ba(v,a)&&c.state.next(Y(I({},r),{name:v})),c.state.next({name:s.mount?v:void 0,values:Fe(o)})},ye=v=>U(null,null,function*(){s.mount=!0;const T=v.target;let x=T.name,V=!0;const D=L(n,x),P=K=>{V=Number.isNaN(K)||hr(K)&&isNaN(K.getTime())||kt(K,L(o,x,K))},W=Va(e.mode),ie=Va(e.reValidateMode);if(D){let K,we;const He=T.type?La(D._f):Ca(v),Z=v.type===Nn.BLUR||v.type===Nn.FOCUS_OUT,ae=!qd(D._f)&&!e.resolver&&!L(r.errors,x)&&!D._f.deps||Jd(Z,L(r.touchedFields,x),r.isSubmitted,ie,W),j=Ba(x,a,Z);Ee(o,x,He),Z?(!T||!T.readOnly)&&(D._f.onBlur&&D._f.onBlur(v),l&&l(0)):D._f.onChange&&D._f.onChange(v);const ge=N(x,He,Z),Ge=!Qe(ge)||j;if(!Z&&c.state.next({name:x,type:v.type,values:Fe(o)}),ae)return(_.isValid||h.isValid)&&(e.mode==="onBlur"?Z&&f():Z||f()),Ge&&c.state.next(I({name:x},j?{}:ge));if(!Z&&j&&c.state.next(I({},r)),e.resolver){const{errors:Pe}=yield M([x]);if(P(He),V){const he=Ha(r.errors,n,x),G=Ha(Pe,n,he.name||x);K=G.error,x=G.name,we=Qe(Pe)}}else m([x],!0),K=(yield ja(D,a.disabled,o,y,e.shouldUseNativeValidation))[x],m([x]),P(He),V&&(K?we=!1:(_.isValid||h.isValid)&&(we=yield me(n,!0)));V&&(D._f.deps&&(!Array.isArray(D._f.deps)||D._f.deps.length>0)&&z(D._f.deps),R(x,we,K,ge))}}),te=(v,T)=>{if(L(r.errors,T)&&v.focus)return v.focus(),1},z=(x,...V)=>U(null,[x,...V],function*(v,T={}){let D,P;const W=sn(v);if(e.resolver){const ie=yield _e(xe(v)?v:W);D=Qe(ie),P=v?!W.some(K=>L(ie,K)):D}else v?(P=(yield Promise.all(W.map(ie=>U(null,null,function*(){const K=L(n,ie);return yield me(K&&K._f?{[ie]:K}:K)})))).every(Boolean),!(!P&&!r.isValid)&&f()):P=D=yield me(n);return c.state.next(Y(I(I({},!rt(v)||(_.isValid||h.isValid)&&D!==r.isValid?{}:{name:v}),e.resolver||!v?{isValid:D}:{}),{errors:r.errors})),T.shouldFocus&&!P&&ln(n,te,v?W:a.mount),P}),F=(v,T)=>{let x=I({},s.mount?o:i);return T&&(x=xa(T.dirtyFields?r.dirtyFields:r.touchedFields,x)),xe(v)?x:rt(v)?L(x,v):v.map(V=>L(x,V))},q=(v,T)=>({invalid:!!L((T||r).errors,v),isDirty:!!L((T||r).dirtyFields,v),error:L((T||r).errors,v),isValidating:!!L(r.validatingFields,v),isTouched:!!L((T||r).touchedFields,v)}),re=v=>{v&&sn(v).forEach(T=>De(r.errors,T)),c.state.next({errors:v?r.errors:{}})},Te=(v,T,x)=>{const V=(L(n,v,{_f:{}})._f||{}).ref,we=L(r.errors,v)||{},{ref:P,message:W,type:ie}=we,K=_r(we,["ref","message","type"]);Ee(r.errors,v,Y(I(I({},K),T),{ref:V})),c.state.next({name:v,errors:r.errors,isValid:!1}),x&&x.shouldFocus&&V&&V.focus&&V.focus()},ne=(v,T)=>ft(v)?c.state.subscribe({next:x=>"values"in x&&v(H(void 0,T),x)}):H(v,T,!0),$=v=>c.state.subscribe({next:T=>{Yd(v.name,T.name,v.exact)&&Zd(T,v.formState||_,Qt,v.reRenderRoot)&&v.callback(Y(I(I({values:I({},o)},r),T),{defaultValues:i}))}}).unsubscribe,X=v=>(s.mount=!0,h=I(I({},h),v.formState),$(Y(I({},v),{formState:h}))),Ke=(v,T={})=>{for(const x of v?sn(v):a.mount)a.mount.delete(x),a.array.delete(x),T.keepValue||(De(n,x),De(o,x)),!T.keepError&&De(r.errors,x),!T.keepDirty&&De(r.dirtyFields,x),!T.keepTouched&&De(r.touchedFields,x),!T.keepIsValidating&&De(r.validatingFields,x),!e.shouldUnregister&&!T.keepDefaultValue&&De(i,x);c.state.next({values:Fe(o)}),c.state.next(I(I({},r),T.keepDirty?{isDirty:Q()}:{})),!T.keepIsValid&&f()},Je=({disabled:v,name:T})=>{(tt(v)&&s.mount||v||a.disabled.has(T))&&(v?a.disabled.add(T):a.disabled.delete(T))},ht=(v,T={})=>{let x=L(n,v);const V=tt(T.disabled)||tt(e.disabled);return Ee(n,v,Y(I({},x||{}),{_f:I(Y(I({},x&&x._f?x._f:{ref:{name:v}}),{name:v,mount:!0}),T)})),a.mount.add(v),x?Je({disabled:tt(T.disabled)?T.disabled:e.disabled,name:v}):O(v,!0,T.value),Y(I(I({},V?{disabled:T.disabled||e.disabled}:{}),e.progressive?{required:!!T.required,min:an(T.min),max:an(T.max),minLength:an(T.minLength),maxLength:an(T.maxLength),pattern:an(T.pattern)}:{}),{name:v,onChange:ye,onBlur:ye,ref:D=>{if(D){ht(v,T),x=L(n,v);const P=xe(D.value)&&D.querySelectorAll&&D.querySelectorAll("input,select,textarea")[0]||D,W=Hd(P),ie=x._f.refs||[];if(W?ie.find(K=>K===P):P===x._f.ref)return;Ee(n,v,{_f:I(I({},x._f),W?{refs:[...ie.filter(po),P,...Array.isArray(L(i,v))?[{}]:[]],ref:{type:P.type,name:v}}:{ref:P})}),O(v,!1,void 0,P)}else x=L(n,v,{}),x._f&&(x._f.mount=!1),(e.shouldUnregister||T.shouldUnregister)&&!(Sa(a.array,v)&&s.action)&&a.unMount.add(v)}})},nt=()=>e.shouldFocusError&&ln(n,te,a.mount),Wt=v=>{tt(v)&&(c.state.next({disabled:v}),ln(n,(T,x)=>{const V=L(n,x);V&&(T.disabled=V._f.disabled||v,Array.isArray(V._f.refs)&&V._f.refs.forEach(D=>{D.disabled=V._f.disabled||v}))},0,!1))},pt=(v,T)=>x=>U(null,null,function*(){let V;x&&(x.preventDefault&&x.preventDefault(),x.persist&&x.persist());let D=Fe(o);if(c.state.next({isSubmitting:!0}),e.resolver){const{errors:P,values:W}=yield M();r.errors=P,D=Fe(W)}else yield me(n);if(a.disabled.size)for(const P of a.disabled)De(D,P);if(De(r.errors,"root"),Qe(r.errors)){c.state.next({errors:{}});try{yield v(D,x)}catch(P){V=P}}else T&&(yield T(I({},r.errors),x)),nt(),setTimeout(nt);if(c.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Qe(r.errors)&&!V,submitCount:r.submitCount+1,errors:r.errors}),V)throw V}),Xt=(v,T={})=>{L(n,v)&&(xe(T.defaultValue)?ve(v,Fe(L(i,v))):(ve(v,T.defaultValue),Ee(i,v,Fe(T.defaultValue))),T.keepTouched||De(r.touchedFields,v),T.keepDirty||(De(r.dirtyFields,v),r.isDirty=T.defaultValue?Q(v,Fe(L(i,v))):Q()),T.keepError||(De(r.errors,v),_.isValid&&f()),c.state.next(I({},r)))},jt=(v,T={})=>{const x=v?Fe(v):i,V=Fe(x),D=Qe(v),P=D?i:V;if(T.keepDefaultValues||(i=x),!T.keepValues){if(T.keepDirtyValues){const W=new Set([...a.mount,...Object.keys(Ar(i,o))]);for(const ie of Array.from(W))L(r.dirtyFields,ie)?Ee(P,ie,L(o,ie)):ve(ie,L(P,ie))}else{if(oo&&xe(v))for(const W of a.mount){const ie=L(n,W);if(ie&&ie._f){const K=Array.isArray(ie._f.refs)?ie._f.refs[0]:ie._f.ref;if(Dn(K)){const we=K.closest("form");if(we){we.reset();break}}}}if(T.keepFieldsRef)for(const W of a.mount)ve(W,L(P,W));else n={}}o=e.shouldUnregister?T.keepDefaultValues?Fe(i):{}:Fe(P),c.array.next({values:I({},P)}),c.state.next({values:I({},P)})}a={mount:T.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!_.isValid||!!T.keepIsValid||!!T.keepDirtyValues,s.watch=!!e.shouldUnregister,c.state.next({submitCount:T.keepSubmitCount?r.submitCount:0,isDirty:D?!1:T.keepDirty?r.isDirty:!!(T.keepDefaultValues&&!kt(v,i)),isSubmitted:T.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:D?{}:T.keepDirtyValues?T.keepDefaultValues&&o?Ar(i,o):r.dirtyFields:T.keepDefaultValues&&v?Ar(i,v):T.keepDirty?r.dirtyFields:{},touchedFields:T.keepTouched?r.touchedFields:{},errors:T.keepErrors?r.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Ct=(v,T)=>jt(ft(v)?v(o):v,T),zt=(v,T={})=>{const x=L(n,v),V=x&&x._f;if(V){const D=V.refs?V.refs[0]:V.ref;D.focus&&(D.focus(),T.shouldSelect&&ft(D.select)&&D.select())}},Qt=v=>{r=I(I({},r),v)},at={control:{register:ht,unregister:Ke,getFieldState:q,handleSubmit:pt,setError:Te,_subscribe:$,_runSchema:M,_focusError:nt,_getWatch:H,_getDirty:Q,_setValid:f,_setFieldArray:S,_setDisabledField:Je,_setErrors:C,_getFieldArray:J,_reset:jt,_resetDefaultValues:()=>ft(e.defaultValues)&&e.defaultValues().then(v=>{Ct(v,e.resetOptions),c.state.next({isLoading:!1})}),_removeUnmounted:ee,_disableForm:Wt,_subjects:c,_proxyFormState:_,get _fields(){return n},get _formValues(){return o},get _state(){return s},set _state(v){s=v},get _defaultValues(){return i},get _names(){return a},set _names(v){a=v},get _formState(){return r},get _options(){return e},set _options(v){e=I(I({},e),v)}},subscribe:X,trigger:z,register:ht,handleSubmit:pt,watch:ne,setValue:ve,getValues:F,reset:Ct,resetField:Xt,clearErrors:re,unregister:Ke,setError:Te,setFocus:zt,getFieldState:q};return Y(I({},at),{formControl:at})}function ru(t={}){const e=ce.useRef(void 0),r=ce.useRef(void 0),[n,i]=ce.useState({isDirty:!1,isValidating:!1,isLoading:ft(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:ft(t.defaultValues)?void 0:t.defaultValues});if(!e.current)if(t.formControl)e.current=Y(I({},t.formControl),{formState:n}),t.defaultValues&&!ft(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const s=tu(t),{formControl:a}=s,l=_r(s,["formControl"]);e.current=Y(I({},l),{formState:n})}const o=e.current.control;return o._options=t,co(()=>{const a=o._subscribe({formState:o._proxyFormState,callback:()=>i(I({},o._formState)),reRenderRoot:!0});return i(l=>Y(I({},l),{isReady:!0})),o._formState.isReady=!0,a},[o]),ce.useEffect(()=>o._disableForm(t.disabled),[o,t.disabled]),ce.useEffect(()=>{t.mode&&(o._options.mode=t.mode),t.reValidateMode&&(o._options.reValidateMode=t.reValidateMode)},[o,t.mode,t.reValidateMode]),ce.useEffect(()=>{t.errors&&(o._setErrors(t.errors),o._focusError())},[o,t.errors]),ce.useEffect(()=>{t.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,t.shouldUnregister]),ce.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==n.isDirty&&o._subjects.state.next({isDirty:a})}},[o,n.isDirty]),ce.useEffect(()=>{t.values&&!kt(t.values,r.current)?(o._reset(t.values,I({keepFieldsRef:!0},o._options.resetOptions)),r.current=t.values,i(a=>I({},a))):o._resetDefaultValues()},[o,t.values]),ce.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next(I({},o._formState))),o._removeUnmounted()}),e.current.formState=Ta(n,o),e.current}const Rr=(t,e)=>{const r={};return t.forEach((n,i)=>{if(n.type===pa.NOT_EMPTY&&(r.required=o=>e&&Gc(o)?n.message:!0),n.type===pa.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},nu=({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(Le,I({},e)):u(Le,{imageId:"chevronDown"})}),iu=({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 _,h,c,y;if(!l&&!d)return(_=le(e.layout.backgroundColor))!=null?_:"transparent";if(!l&&d)return(h=le(e.layoutSelected.backgroundColor))!=null?h:"transparent";if(l&&!d)return(c=le(e.layout.highlightColor))!=null?c:"#F4F4F4";if(l&&d)return(y=le(e.layoutSelected.highlightColor))!=null?y:"#F4F4F4"})(n,t),fontSize:13,display:"flex",justifyContent:"space-between",alignItems:"center",gap:8,borderRadius:4,cursor:"pointer"},"data-select-id":e.value,onClick:r(e),onMouseEnter:i,onMouseLeave:o,children:[u(ke,Y(I({},e.layout.title),{text:e.label})),u("div",{style:{display:"flex",flexShrink:0},children:u(Le,I({},s))})]},e.value)},za=({name:t,options:e,isMulti:r=!1,isClearable:n=!1,value:i,onChange:o,placeholder:s,closeMenuOnSelect:a=!0,onBlur:l,parentElementRef:d,controlLayout:_,pickerLayout:h})=>{var H,J,de,ue,ve,ye,te,z;const[c,y]=Ue(!1),[g,f]=Ue(i),[m,S]=Ue("down"),[b,C]=Ue(null),O=st(null),N=st(null);Zt(()=>{var ne,$,X;if(!c)return;const F=(ne=O.current)==null?void 0:ne.getBoundingClientRect(),q=($=N.current)==null?void 0:$.getBoundingClientRect(),re=(X=d.current)==null?void 0:X.getBoundingClientRect();if(!F||!q||!re)return;const Te=F.bottom+q.height<re.bottom;S(Te?"down":"up")},[c]),ot(()=>{o(g)},[g]);const R=F=>q=>{var re;q.stopPropagation(),(q.type==="touchend"||((re=q.nativeEvent)==null?void 0:re.pointerType)==="touch")&&C(null),a&&y(!1),f(Te=>r?Te.some($=>$.value===F.value)?Te.filter($=>$.value!==F.value):[...Te,F]:[F])},M=()=>{l&&l(),y(!1)},_e=F=>q=>{q.stopPropagation(),f(re=>re.filter(Te=>Te.value!==F.value))},me=F=>{F.stopPropagation(),f([])},ee=(H=le(_==null?void 0:_.borderColor))!=null?H:"#D9D9D9",Q=(J=le(_==null?void 0:_.highlightBorderColor))!=null?J:"#7E57C5";return u("div",{"data-ui":"gui-custom-select",ref:O,children:u("div",{"data-ui":"gui-select-name-"+t,style:{backgroundColor:le(_==null?void 0:_.backgroundColor),borderStyle:"solid",borderColor:c?Q:ee,borderWidth:(de=_==null?void 0:_.borderWidth)!=null?de:1,borderRadius:(ue=_==null?void 0:_.cornerRadius)!=null?ue:8,minHeight:"41px",position:"relative",zIndex:"auto",padding:"8px 11px 8px 8px",cursor:"pointer",display:"flex",alignItems:"center",gap:10},tabIndex:0,onBlur:M,onClick:()=>y(!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:[!g.length&&u("span",{style:{fontSize:13,color:"#8C8C8C"},children:s}),g.map(F=>{var q,re,Te,ne,$;if(r){const X=_==null?void 0:_.chip;return u("div",{style:{padding:"0px 5px",display:"flex",gap:8,backgroundColor:(q=le(X==null?void 0:X.backgroundColor))!=null?q:"#F2F2F2",borderRadius:(re=X==null?void 0:X.cornerRadius)!=null?re:4,userSelect:"none",alignItems:"center"},children:[u(ke,Y(I({},X==null?void 0:X.title),{fontSize:(ne=(Te=X==null?void 0:X.title)==null?void 0:Te.fontSize)!=null?ne:13,text:F.label})),u("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px"},onClick:_e(F),children:X!=null&&X.removeImage?u(Le,I({},X.removeImage)):u(Le,{imageId:"cross"})})]},F.value)}else{const X=_==null?void 0:_.title;return u("div",{style:{display:"flex",userSelect:"none"},children:u(ke,Y(I({},X),{fontSize:($=X==null?void 0:X.fontSize)!=null?$:13,text:F.label}))},F.value)}})]}),n&&g.length?u("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px",zIndex:1},onClick:me,children:_!=null&&_.clearButton?u(Le,I({},_.clearButton)):u(Le,{imageId:"cross"})}):null,n?u("div",{style:{width:"1px",alignSelf:"stretch",backgroundColor:"#D9D9D9"}}):null,u(nu,{isOpen:c,image:_==null?void 0:_.expandButton}),c&&u("div",{"data-ui":"gui-custom-select-dropdown-menu",ref:N,style:Y(I({position:"absolute"},m==="down"?{top:"calc(100% + 1px)"}:{bottom:"calc(100% + 1px)"}),{left:0,border:"1px solid #e8e8e8",width:"100%",backgroundColor:(ve=le(h==null?void 0:h.backgroundColor))!=null?ve:"#ffffff",borderRadius:(ye=h==null?void 0:h.cornerRadius)!=null?ye:8,borderStyle:"solid",borderColor:(te=le(h==null?void 0:h.borderColor))!=null?te:"#D9D9D9",borderWidth:(z=h==null?void 0:h.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:F=>F.stopPropagation(),children:e.map(F=>{const q=g.some(re=>re.value===F.value);return u(iu,{isChosen:q,option:F,onOptionClickCallback:R,isHovered:b===F.value,onHover:()=>C(F.value),onHoverEnd:()=>C(null)},F.label)})})]})})},ou=({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(ke,Y(I({},e.title),{text:r.text,htmlFor:o})),u(Oa,{name:o,control:t,rules:{required:!!r.required,validate:Rr(r.validators,!!r.required)},render:({field:s})=>{const a=i.find(l=>l.value===s.value);return u(za,{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})}})]})},su=({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(ke,Y(I({},e.title),{text:r.text,htmlFor:o})),u(Oa,{name:o,control:t,rules:{required:!!r.required,validate:Rr(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(za,{name:o,options:i,placeholder:r.placeholder,closeMenuOnSelect:!1,value:a,onChange:l=>{const d=l.map(_=>_.value);s.onChange(d)},parentElementRef:n,isMulti:!0,isClearable:!0,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},Ka=()=>{const[t,e]=Ue(!1);return ot(()=>{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},au=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[o,s]=Ue(!1),a=Ka(),l=String(r.id),_=i(l)===String(t.id),h=e.option,c=e.optionSelected,y={backgroundColor:le(c.backgroundColor),borderRadius:c.cornerRadius},g={backgroundColor:le(h.backgroundColor),borderRadius:h.cornerRadius},f=o&&a?{filter:`drop-shadow(0 0 1px ${nn})`}:{};return u("div",{children:u("label",{style:I({display:"flex",alignItems:"center",alignContent:"center",gap:8,cursor:"pointer"},_?y:g),children:[u("div",{style:I({display:"flex",alignItems:"center",alignContent:"center"},f),children:u(Le,I({},_?c.image:h.image))}),u(ke,Y(I({},_?c.title:h.title),{text:t.text})),u("input",Y(I({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},n(l,{required:!!r.required,validate:Rr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>s(!0),onBlur:()=>s(!1)}))]})},t.id)},lu=({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(ke,Y(I({},t.title),{text:n.text}))}),n.options.map(i=>u(au,{register:e,watch:r,layout:t,option:i,dataSourceQuestion:n},i.id))]})}),cu=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[o,s]=Ue(!1),a=Ka(),l=String(r.id),_=i(l)===String(t.id),h=e.option,c=e.optionSelected,y={borderRadius:h.cornerRadius,background:le(h.backgroundColor),borderColor:le(h.borderColor),borderWidth:h.borderWidth},g={borderRadius:c.cornerRadius,background:le(c.backgroundColor),borderColor:le(c.borderColor),borderWidth:c.borderWidth},f=o&&a?{outline:`2px solid ${nn}`}:{};return u("div",{style:{display:"flex",flexGrow:1},children:u("label",{style:I(I({width:"100%",padding:"8px 16px",cursor:"pointer",borderStyle:"solid",position:"relative"},_?g:y),f),children:[u("input",Y(I({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},n(l,{required:!!r.required,validate:Rr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>s(!0),onBlur:()=>s(!1)})),u(ke,Y(I({},_?c.title:h.title),{text:t.text}))]})},t.id)},du=({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(ke,Y(I({},t.title),{text:n.text}))}),u("div",{style:{display:"flex",justifyContent:"center",gap:5},children:n.options.map(i=>u(cu,{register:r,watch:e,layout:t,option:i,dataSourceQuestion:n},i.id))})]})}),uu=({children:t,backgroundColor:e,cornerRadius:r=0,isError:n,isRequired:i,validationBorderColor:o,validationBorderWidth:s})=>{const a=I({position:"relative",flexShrink:0,width:"100%",fontWeight:300,lineHeight:"140%",backgroundColor:le(e)||"transparent",borderRadius:r,padding:"16px",boxSizing:"border-box",height:"auto"},n&&I(I({},le(o)&&{borderColor:o,borderStyle:"solid"}),s&&{borderWidth:s}));return u("div",{style:a,children:[i&&u("span",{style:{color:le(o),position:"absolute",left:"6px",top:"18px"},children:"*"}),t]})},fu=({validationErrorsTypes:t,title:e})=>t?u("div",{style:{width:"100%",fontSize:12},children:Object.entries(t).map(([r,n])=>u(ke,Y(I({},e),{text:n}),r))}):null,hu=({layout:t,dataSourceQuestion:e,register:r})=>{var o,s,a,l,d,_,h,c,y,g,f,m,S,b,C,O;const n=String(e.id),i=N=>N?N===On.EMAIL?"email":N===On.FREE_TEXT?"text":N===On.NUMBER?"number":N===On.SECURE?"password":"text":"text";return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[u(ke,Y(I({},t.title),{text:e.text,htmlFor:n})),u("input",Y(I({},r(n,{required:!!e.required,validate:Rr(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:(h=le((_=t==null?void 0:t.textField)==null?void 0:_.fontColor))!=null?h:"#000000",height:"42px",borderWidth:(y=(c=t==null?void 0:t.textField)==null?void 0:c.borderWidth)!=null?y:1,borderColor:(f=le((g=t==null?void 0:t.textField)==null?void 0:g.borderColor))!=null?f:"#d9d9d9",borderStyle:"solid",borderRadius:(S=(m=t==null?void 0:t.textField)==null?void 0:m.cornerRadius)!=null?S:8,padding:"11px",boxSizing:"border-box",backgroundColor:(C=le((b=t==null?void 0:t.textField)==null?void 0:b.backgroundColor))!=null?C:"#FFFFFF",outlineColor:nn},placeholder:(O=e.placeholder)!=null?O:"","data-id":n}))]})},pu=({layout:t,dataSourceQuestion:e,register:r})=>{var i,o,s,a,l,d,_,h,c,y,g,f,m;const n=String(e.id);return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[u(ke,Y(I({},t.title),{text:e.text,htmlFor:n})),u("textarea",Y(I({},r(n,{required:!!e.required,validate:Rr(e.validators,!!e.required)})),{id:n,placeholder:(i=e.placeholder)!=null?i:"",onInput:S=>{S.currentTarget.style.height="auto",S.currentTarget.style.height=`${S.currentTarget.scrollHeight-15}px`},"data-id":n,style:{fontFamily:"sans-serif",fontSize:(s=(o=t==null?void 0:t.textField)==null?void 0:o.fontSize)!=null?s:15,color:(l=le((a=t==null?void 0:t.textField)==null?void 0:a.fontColor))!=null?l:"#000000",resize:"none",overflow:"hidden",height:"42px",minHeight:"42px",borderWidth:(_=(d=t==null?void 0:t.textField)==null?void 0:d.borderWidth)!=null?_:1,borderColor:(c=le((h=t==null?void 0:t.textField)==null?void 0:h.borderColor))!=null?c:"#d9d9d9",borderStyle:"solid",borderRadius:(g=(y=t==null?void 0:t.textField)==null?void 0:y.cornerRadius)!=null?g:8,padding:"11px",boxSizing:"border-box",backgroundColor:(m=le((f=t==null?void 0:t.textField)==null?void 0:f.backgroundColor))!=null?m:"#FFFFFF",outlineColor:nn}}))]})},Ht=class Ht extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,xn);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=An,Ht.ERROR_ENUM_NAME="GuiModuleError",Ht.SHORT_CODE="GM";let cn=Ht;const _u=({header:t,title:e,buttons:r,footer:n,questions:i,dataSource:o,properties:s,backgroundColor:a})=>{const{perform:l}=fr(),d=s?qc(o.questions,s):{},_=st(null),{register:h,handleSubmit:c,formState:{errors:y},reset:g,watch:f,control:m}=ru({criteriaMode:"all",defaultValues:d});return u(Jt,{header:t,footer:n,backgroundColor:a,children:u("form",{onSubmit:c(b=>{l(Kc(b)),g()}),style:{height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},noValidate:!0,children:[u("div",{style:{flex:"1 1 100%",display:"flex",justifyContent:"flex-start",alignItems:"center",alignContent:"center",flexDirection:"column",gap:"10px",height:"100%",width:"100%",overflow:"auto",position:"relative",backgroundColor:le(i.backgroundColor)||"transparent"},ref:_,children:[e&&u("div",{style:{lineHeight:"39.2px",width:"100%"},children:u(ke,I({},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 me;const C=o.static,O=(ee,Q)=>Q.find(H=>{var J;if((J=H.questionIds)!=null&&J.length)return H.questionIds.find(de=>ee===de)}),N=(ee,Q)=>Q.find(H=>!H.questionIds&&H.answerType===ee),R=C?O(String(b.id),i.itemTypes)||N(b.answerType,i.itemTypes):i.itemTypes.find(ee=>ee.answerType===b.answerType);if(!R){const ee=new cn({errorCode:xn.DECODING_FAILED,message:"The question template has not been found"});l(ee);return}const M=R==null?void 0:R.displayType,_e=b.id in y&&((me=y[b.id])==null?void 0:me.types);return u(je,{children:[u(uu,{backgroundColor:R==null?void 0:R.backgroundColor,cornerRadius:R==null?void 0:R.cornerRadius,isError:!!_e,isRequired:b.required,validationBorderColor:R==null?void 0:R.validationBorderColor,validationBorderWidth:R==null?void 0:R.validationBorderWidth,children:[M===Or.TEXT_EXPANDABLE&&u(pu,{layout:R,dataSourceQuestion:b,register:h}),M===Or.TEXT_SINGLE_LINE&&u(hu,{layout:R,dataSourceQuestion:b,register:h}),M===Or.SELECTOR_OPTIONS&&u(lu,{layout:R,dataSourceQuestion:b,watch:f,register:h}),M===Or.SELECTOR_BUTTONS&&u(du,{layout:R,dataSourceQuestion:b,watch:f,register:h}),M===Or.SELECTOR_DROPDOWN&&u(ou,{control:m,layout:R,dataSourceQuestion:b,parentElementRef:_}),M===Or.MULTI_SELECTOR_DROPDOWN&&u(su,{control:m,layout:R,dataSourceQuestion:b,parentElementRef:_})]}),_e&&u(fu,{validationErrorsTypes:_e,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,C)=>u(io,I({dataTestId:"question-button"},b),C))})]})})},mu={display:"none"},gu={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",backgroundColor:"#7e57c5",cursor:"pointer"},wu={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},vu=({header:t,footer:e,buttons:r,backgroundColor:n,selectionLimit:i})=>{var _,h;const{perform:o}=fr(),s=st(null),a=typeof i=="number"&&(i===0||i>1),l=c=>U(null,null,function*(){var g;const y=Array.from((g=c.currentTarget.files)!=null?g:[]);if(y.length)try{const m=(yield Promise.allSettled(y.map(S=>U(null,null,function*(){return{content:yield ma(S),metadata:{name:S.name,type:S.type,size:S.size,lastModified:S.lastModified}}})))).filter(S=>S.status==="fulfilled").map(S=>S.value);o({cancel:!1,permissionDenied:!1,files:m})}catch(f){console.error("Error: ",f)}}),d=()=>{var c;(c=s.current)==null||c.showPicker()};return u(Jt,{header:t,footer:e,backgroundColor:n,children:u(je,{children:u("div",{style:Y(I({},wu),{justifyContent:"center"}),children:[u("input",Y(I({style:mu,ref:s,type:"file",accept:"image/*"},a?{multiple:!0}:{}),{onInput:l})),u("button",{style:gu,onClick:d,children:u(Le,{imageId:(h=(_=r==null?void 0:r[0])==null?void 0:_.image)==null?void 0:h.imageId})})]})})})},yu={display:"none"},bu={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",background:"#7e57c5",cursor:"pointer"},Cu={position:"relative",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Su=({header:t,footer:e,backgroundColor:r,buttons:n,selectionLimit:i})=>{var _,h;const{perform:o}=fr(),s=st(null),a=typeof i=="number"&&(i===0||i>1),l=c=>U(null,null,function*(){var g;const y=Array.from((g=c.currentTarget.files)!=null?g:[]);if(y.length)try{const m=(yield Promise.allSettled(y.map(S=>U(null,null,function*(){return{content:yield ma(S),metadata:{name:S.name,type:S.type,size:S.size,lastModified:S.lastModified}}})))).filter(S=>S.status==="fulfilled").map(S=>S.value);o({cancel:!1,permissionDenied:!1,files:m})}catch(f){console.error("Error: ",f)}}),d=()=>U(null,null,function*(){var c;(c=s.current)==null||c.showPicker()});return ot(()=>{U(null,null,function*(){if(Yt.isDesktop)return;const c=yield Zc();(c==="denied"||c==="error")&&o({cancel:!1,permissionDenied:!0,files:[]})})},[]),u(Jt,{header:t,footer:e,backgroundColor:r,children:u(je,{children:u("div",{style:Y(I({},Cu),{justifyContent:"center"}),children:[u("input",Y(I({style:yu,ref:s,type:"file",accept:"image/*",capture:"user"},a?{multiple:!0}:{}),{onInput:l})),u("button",{style:bu,onClick:d,children:u(Le,{imageId:(h=(_=n==null?void 0:n[0])==null?void 0:_.image)==null?void 0:h.imageId})})]})})})};function Eu(){const t=st(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 Ga=()=>U(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"}}),Tu=()=>U(null,null,function*(){try{return yield navigator.permissions.query({name:"geolocation"})}catch(t){return null}}),mo=t=>U(null,null,function*(){return new Promise(e=>{if(!navigator.geolocation)return e({location:{lat:null,lon:null,error:"Geolocation is not supported"}});navigator.geolocation.getCurrentPosition(r=>e({location:{lat:r.coords.latitude,lon:r.coords.longitude,error:null}}),r=>{const n=r!=null&&r.message?` Error message: ${r.message}`:"";e({location:{lat:null,lon:null,error:`Failed to get geolocation data via navigator.${n}`}})},t)})}),Iu={height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},Ou={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"},Au={position:"fixed",inset:0,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",background:"rgba(0,0,0,0.2)",zIndex:1e3,pointerEvents:"auto",cursor:"default"},xu={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:1.61},Ru={padding:"24px",border:"1px solid rgba(0, 0, 0, 0.06)",width:"min(550px, calc(100vw - 32px))",height:"min(250px, calc(100dvh - 32px))",gridTemplateRows:"auto 1fr"},qa={display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",marginBottom:"30px"},ku={padding:0,border:"none",background:"transparent",cursor:"pointer"},Nu=({title:t,header:e,footer:r,image:n,description:i,buttons:o,backgroundColor:s,popup:a})=>{var m,S,b;const{perform:l}=fr(),{setIsProcessingCallback:d}=jc(),{ref:_,isPopoverOpen:h,openPopover:c,closePopover:y}=Eu(),g={enableHighAccuracy:!0,timeout:15e3,maximumAge:6e4};Zt(()=>{d==null||d(!0)},[]),ot(()=>{let C=!0;return U(null,null,function*(){if((yield Ga())!=="granted"){d==null||d(!1);return}const N=yield mo(g);C&&l(N)}),()=>{C=!1}},[]),ot(()=>{let C=!0,O=null;return U(null,null,function*(){const N=yield Tu();N&&(O=N,N.onchange=()=>U(null,null,function*(){if(N.state!=="granted")return;d==null||d(!0);const R=yield mo(g);C&&l(R)}))}),()=>{C=!1,O&&(O.onchange=null)}},[]);const f=C=>U(null,null,function*(){C.preventDefault();const O=yield Ga();if(O==="denied"){c();return}O==="prompt"&&(yield mo())});return u(Jt,{header:e,footer:r,backgroundColor:s,children:[u("div",{style:Iu,children:[u("div",{style:Ou,children:[n&&u("div",{style:xu,children:u(Le,I({},n))}),t&&u("div",{style:{marginBottom:20,lineHeight:"39.2px",width:"100%"},children:u(ke,I({},t))}),i&&u("div",{style:{lineHeight:"28px",fontWeight:"400",width:"100%"},children:u(Rn,I({},i))})]}),!!(o!=null&&o.length)&&u("div",{style:{display:"flex",flexDirection:"column"},children:o.map((C,O)=>u("div",{style:{padding:"5px"},children:u(io,I(I({dataTestId:"question-button"},C),C.type==="FORM"?{onClick:f}:{}))},O))})]}),u("div",{ref:_,popover:"manual",role:"dialog","aria-modal":"true",style:Y(I({},Ru),{borderRadius:a.cornerRadius}),children:[u("div",{style:qa,children:[u("strong",{children:(m=a.title)==null?void 0:m.text}),u("button",{style:ku,onClick:y,"aria-label":"Close",children:u(Le,{imageId:(S=a.closeButton.image)==null?void 0:S.imageId})})]}),u("div",{style:qa,children:u("span",{children:(b=a.message)==null?void 0:b.text})})]}),h&&u("div",{style:Au,onPointerDown:C=>{C.preventDefault(),C.stopPropagation(),y()}})]})},Za=t=>{const{templateId:e,templateLayout:r,dataSource:n,properties:i}=t,{perform:o}=fr();if(!e||!r)return u(ya,{});const s=i!=null&&i.length?JSON.stringify(i):"default-key";if(e===dt.STATUS)return u(Od,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,image:r==null?void 0:r.image,description:r==null?void 0:r.description,title:r==null?void 0:r.title,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.INFO)return u(Rd,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,image:r==null?void 0:r.image,title:r==null?void 0:r.title,description:r==null?void 0:r.description,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.GEOLOCATION)return u(Nu,{header:r.header,footer:r.footer,image:r.image,title:r.title,description:r.description,buttons:r.buttons,backgroundColor:r.backgroundColor,popup:r.popup});if(e===dt.PROGRESS)return u(ya,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,progressView:r==null?void 0:r.progressView,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.INFO_DETAILS)return u(Md,{header:r==null?void 0:r.header,title:r==null?void 0:r.title,details:r==null?void 0:r.details,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.CAMERA)return u(Su,{header:r==null?void 0:r.header,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:t.backgroundColor,selectionLimit:t.selectionLimit});if(e===dt.GALLERY)return u(vu,{header:r==null?void 0:r.header,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:t.backgroundColor,selectionLimit:t.selectionLimit});if(n&&(n!=null&&n.questions.length)&&e===dt.QUESTIONS)return u(_u,{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===dt.QUESTIONS&&!n){const l=new cn({errorCode:xn.DECODING_FAILED,message:"No data for questions"});return o(l),null}const a=new cn({errorCode:xn.DECODING_FAILED,message:"Unsupported step template"});return o(a),null};let go=!1;const Ya=({children:t})=>u("div",{part:"gui-idv",id:"gui-idv-web-c",style:{backgroundColor:"white",height:"100%",width:"100%"},children:t}),Du=({isProcessing:t,moduleProps:e,perform:r})=>{const{templateId:n,templateLayout:i,dataSource:o,properties:s}=e,a=l=>{r&&r(l)};return n===dt.QUESTIONS?u(ha,{perform:a,children:u(Ya,{children:u(Za,{properties:s,dataSource:o,templateId:n,templateLayout:i})})}):u(ha,{perform:a,setIsProcessingCallback:t,children:u(Ya,{children:u(Za,I(I({templateId:n,templateLayout:i},e.backgroundColor?{backgroundColor:e.backgroundColor}:{}),typeof e.selectionLimit=="number"?{selectionLimit:e.selectionLimit}:{}))})})},dn=class dn extends ua{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)}Sr(c(Md,{moduleProps:this.props.moduleProps,perform:this.props.perform,idvEventListener:this.props.idvEventListener,isProcessing:this.props.isProcessing}),this.attachShadow({mode:"open"}))}disconnectedCallback(){setTimeout(()=>{this._mounted&&(this._mounted=!1)})}static isReady(){return vs}static initialize(e){vs=!0}static deinitialize(){vs=!1}};fn.displayName=xn,fn.getSupportedTemplates=()=>Object.values(dt),fn.getIdentifier=()=>xn;let Ln=fn;ma(xn,Ln);const Pd=(t,e)=>({_isInitialized:!1,_initializationInProgress:!1,_isConnectedToPlatform:!1,_sessionIdFromUrl:null,_ttl:86400,_prepareDataForWorkflow:n=>{e().setWorkflowId(n.workflow.id),e().setWorkflow(n.workflow),e().setLayout(n.workflow.client.layout),e().setProcessingTemplate(n.workflow.client.steps),e().setSessionProperties(n.properties)},_checkAndSetApiTokenToLs:n=>{const i=e().startConfig;if(!("apiKey"in i)||!i.apiKey)return;const s=e().workflowId,o=e().apiKeyAuthTokenCollection;"authToken"in o&&"apiKey"in o&&Or.setAuthTokenToLs(o.authToken,o.apiKey,n,s,o.tokenExpiredIn)},_runWasmService:()=>L(null,null,function*(){return(yield ua(()=>L(null,null,function*(){var a;const o=(a=e().wasmService)==null?void 0:a.isServiceRunning();return o||null}),()=>null))?{}:{error:new ze({errorCode:$e.INTERNAL_ISSUE,message:"Wasm service is not running"})}}),_checkIsSessionDataValid:n=>{if("httpCode"in n){const i="what"in n&&typeof n.what=="string"&&n.what.length?n.what:null,s=new cr(O({errorCode:qt.HTTP_ISSUE},i?{message:i}:{}));return{error:new ze({errorCode:$e.START_SESSION_FAILED,underlyingBaseError:s})}}if("id"in n&&"currentStep"in n)return n;{const i=new cr({errorCode:qt.DECODING_FAILED});return{error:new ze({errorCode:$e.START_SESSION_FAILED,underlyingBaseError:i})}}},_runSocketConnection:n=>L(null,null,function*(){const{host:i,isSecure:s,port:o}=e().startConfig;if(i&&n&&(yield ur.connect({host:i,isSecure:s,port:o,token:n})),!i||!n||!ur.isConnected()){const a=new cr({errorCode:qt.CONNECTION_ISSUE,message:"WebSocket connection issue"});return{error:new ze({errorCode:$e.START_SESSION_FAILED,underlyingBaseError:a})}}return{}}),_continueSession:(n,i)=>L(null,null,function*(){var y;const s=e().startConfig,o="apiKey"in s&&typeof s.apiKey=="string",a=e().workflowId,u=i?br.DID_CONTINUE_REMOTE_SESSION:br.DID_START_RESTORE_SESSION;let h;if(i)h=i;else if(o){if(!e().sessionRestoreMode)return{};const v=s.apiKey,d=Or.getAuthTokenLs(),m=d&&((y=d[v])==null?void 0:y.sessionId);if(!m)return{};m&&(h=m)}else{if(!e().sessionRestoreMode)return{};const v=e().getCurrentSessionDataLs();if(!v)return{};const d=v.sessionId,m=v.workflowId;if(!d||m!==a)return{};h=d}const _=yield e().wasmService.continueSession(h,n),f=e()._checkIsSessionDataValid(_.data);if(!da(f))return{error:f.error};e()._prepareDataForWorkflow(f);const l=f.currentStep;return e().setCurrentStepId(l),o?e()._checkAndSetApiTokenToLs(f.id):e().setCurrentSessionDataLsAndStore({sessionId:f.id,workflowId:a}),e().setNextStep(f.workflow,f.properties,l),e().listener({eventType:jr.MESSAGE,message:u,module:"IDV"}),f}),initialize(n){return L(this,null,function*(){if(e()._isInitialized)return console.warn("Idv:: Already initialized"),{};if(e()._initializationInProgress)return new Sn({errorCode:zr.INITIALIZATION_IN_PROGRESS});t({_initializationInProgress:!0}),yield e().setAndInitWasmService(),t({modulesConfig:n.modulesConfig||{}});let i=[Ln];if(Array.isArray(n==null?void 0:n.includedModules)){const o=n.includedModules.filter(a=>typeof a=="function"&&a.displayName&&!i.some(u=>u.displayName===a.displayName));i=[...i,...o]}const s=yield e().loadModules(i);return s.error?{error:s.error}:(t({_initializationInProgress:!1,_isInitialized:!0}),{})})},configureByApiKey(n){return L(this,null,function*(){if(!e()._isInitialized)return{error:new We({errorCode:Ve.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new We({errorCode:Ve.SCENARIO_IN_PROGRESS})};const s=["apiKey","baseUrl"].filter(d=>!(n!=null&&n[d]));if(s.length>0)return{error:new We({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${s.join(", ")}`})};const o=es(n.baseUrl);if(!o)return{error:new We({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n.baseUrl}`})};typeof n.ttl=="number"&&!Number.isNaN(n.ttl)&&t({_ttl:n.ttl});const a=e()._ttl,u={host:o.host,isSecure:o.isSecure,port:o.port,apiKey:n.apiKey,deviceDescriptor:{ttl:a}},h=Or.getAuthTokenLs(),_=h&&h[n.apiKey]&&h[n.apiKey].authToken?h[n.apiKey]:null,f=_&&_.authToken;f&&(u.authToken=f);const l=yield e().connectByApiKey(u);if(l.error)return{error:new We({errorCode:Ve.CONNECTION_ISSUE,underlyingBaseError:l.error})};f&&l.authToken!==f&&Or.removeAuthTokenLs(n.apiKey);const y=_&&l.authToken===_.authToken&&_,v=y?y.tokenExpiredIn:Date.now()+a*1e3;return e().setApiKeyAuthTokenCollection(n.apiKey,l.authToken,v),t({_isConnectedToPlatform:!0}),e().setStartConfig({host:o.host,isSecure:o.isSecure,apiKey:n.apiKey,port:o.port}),l})},configureWithUrl(n){return L(this,null,function*(){if(!e()._isInitialized)return{error:new We({errorCode:Ve.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new We({errorCode:Ve.SCENARIO_IN_PROGRESS})};const i=Wc(n);i&&(e().removeCurrentSessionDataLsAndStore(),t({_sessionIdFromUrl:i}));const s=yield e().connectByUrl(n);if(s.error)return{error:new We({errorCode:Ve.CONNECTION_ISSUE,underlyingBaseError:s.error})};t({_isConnectedToPlatform:!0});try{const o=es(n);if(!o)return{error:new We({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n}`})};e().setStartConfig({host:o.host,isSecure:o.isSecure,port:o.port})}catch(o){console.log("Invalid urlWithToken")}return s.workflows})},configureByUserPass(n){return L(this,null,function*(){if(!e()._isInitialized)return{error:new We({errorCode:Ve.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new We({errorCode:Ve.SCENARIO_IN_PROGRESS})};const s=["password","userName","baseUrl"].filter(h=>!(n!=null&&n[h]));if(s.length>0)return{error:new We({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${s.join(", ")}`})};const o=es(n.baseUrl);if(!o)return{error:new We({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n.baseUrl}`})};const a={host:o.host,isSecure:o.isSecure,password:n.password,port:o.port,userName:n.userName},u=yield e().connectByUserPass(a);return u.error?{error:new We({errorCode:Ve.CONNECTION_ISSUE,underlyingBaseError:u.error})}:(t({_isConnectedToPlatform:!0}),e().setStartConfig({host:o.host,isSecure:o.isSecure,port:o.port}),{workflows:[]})})},getWorkflows(){return L(this,arguments,function*(n={limit:100,skip:0}){if(!e()._isInitialized)return{error:new At({errorCode:gt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new At({errorCode:gt.CONNECTION_ISSUE})};const i=yield e().wasmService.listWorkflows(n);let s=null;if(i.code===4&&(s=ct.HTTP_ISSUE),i.code!==0&&i.code!==4&&(s=ct.PROVIDER_ERROR),i.code===0&&!i.data.items&&(s=ct.DECODING_FAILED),s!==null){const o=new On({errorCode:s});return{error:new At({errorCode:gt.WORKFLOW_ISSUE,message:"No workflow list",underlyingBaseError:o})}}return{results:i.data.items}})},prepareWorkflowAndPrepareUi(n){return L(this,null,function*(){var v;if(!e()._isInitialized)return{error:new At({errorCode:gt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new At({errorCode:gt.CONNECTION_ISSUE})};if(e().currentScreenConfig)return{error:new At({errorCode:gt.SCENARIO_IN_PROGRESS})};const i=yield e().wasmService.getWorkflow(n),s=Yi(i.data),o=((v=s.client)==null?void 0:v.steps)&&s.client.steps.some(d=>d.templateId===Ci);let a=null;if(i.code===4&&(a=ct.HTTP_ISSUE),i.code!==0&&i.code!==4&&(a=ct.PROVIDER_ERROR),i.code===0&&!i.data.id&&(a=ct.DECODING_FAILED),i.data.id&&s===null&&(a=ct.DECODING_FAILED),o||(a=ct.DECODING_FAILED),a!==null){const d=new On({errorCode:a});return{error:new At({errorCode:gt.INTERNAL_ISSUE,underlyingBaseError:d})}}const u=e().externalModules,h=s.steps,{isAllTemplatesSupported:_,unsupportedSteps:f}=Pc(u,h);_||console.log("IDV:: Warning. Unsupported steps found: ",f);const l=e().workflowId;l&&n!==l&&u.forEach(d=>{d.component.deinitialize()});const y=e().modulesConfig;return u.forEach(d=>{d.component.isReady()||d.component.initialize(y)}),e().setLayout(s.client.layout),e().setProcessingTemplate(s.client.steps),e().setWorkflowId(n),{workflow:s}})},startNewSession(n,i,s){return L(this,null,function*(){if(!e()._isInitialized)return{error:new ze({errorCode:$e.INITIALIZATION_REQUIRED})};const o=e().workflowId;if(!o)return{error:new ze({errorCode:$e.PREPARED_REQUIRED})};if(e().currentScreenConfig)return{error:new ze({errorCode:$e.ALREADY_STARTED})};const a=C=>{ur&&ur.close(),n(C)};e().setWorkflowSessionCompletion(a);const u=e().startConfig,h="apiKey"in u&&typeof u.apiKey=="string",_=e().apiKeyAuthTokenCollection;if(h&&"tokenExpiredIn"in _){const C=_.tokenExpiredIn&&typeof _.tokenExpiredIn=="number"?_.tokenExpiredIn:0;if(Date.now()>C){const k=yield e().connectByApiKey({apiKey:u.apiKey,host:u.host,deviceDescriptor:{ttl:e()._ttl}});if(Or.removeAuthTokenLs(u.apiKey),k.error)return{error:new cr({errorCode:qt.CONNECTION_ISSUE,underlyingBaseError:k.error})};if(k&&"authToken"in k){const x=Date.now()+e()._ttl*1e3;e().setApiKeyAuthTokenCollection(u.apiKey,k.authToken,x)}}}e().setIsProcessing(!0);const f=yield e()._runWasmService();if(f.error)return{error:f.error};const y=(yield e().wasmService.getServiceToken()).data;if(!y||typeof y!="string"){const C=new cr({errorCode:qt.TOKEN_ERROR});return{error:new ze({errorCode:$e.START_SESSION_FAILED,underlyingBaseError:C})}}e().setServiceSessionToken(y);const v=yield e()._runSocketConnection(y);if(v.error)return{error:v.error};const d=e()._sessionIdFromUrl,m=yield e()._continueSession(i,d);if("sessionId"in m)return{results:m};if("error"in m)return{error:m.error};if("id"in m)return{};const S=yield e().wasmService.startSession(o,i,s),b=e()._checkIsSessionDataValid(S.data);return da(b)?(e()._prepareDataForWorkflow(b),h?e()._checkAndSetApiTokenToLs(b.id):e().setCurrentSessionDataLsAndStore({sessionId:b.id,workflowId:o}),e().setIsProcessing(!1),e().setCurrentStepId(b.currentStep),e().listener({eventType:jr.MESSAGE,message:br.DID_START_SESSION,module:"IDV"}),{}):{error:b.error}})},playWorkflow(){const n=e().currentStepId;if(n)e().onChangeScreen(n);else{const i=new ze({errorCode:$e.UNKNOWN_STEP});e().workflowSessionCompletion({error:i})}},deinitialize(){return L(this,null,function*(){if(!e()._isInitialized)return{error:new In({errorCode:Gr.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new In({errorCode:Gr.SCENARIO_IN_PROGRESS})};const n=yield e().deinitializationIdv();return e().resetProps(),t({_isInitialized:!1}),n})}}),kr=yr.create("session_log");class Ud{constructor(e){this._worker=null,this._initialized=!1,this._connectedToIdv=!1,this._serviceRunning=!1,this._setErrorScreen=null,e&&(this._setErrorScreen=e)}init(){return L(this,null,function*(){try{const n=yield(yield fetch("https://wasm-development.regulaforensics.com/idv/nightly/3.2/23162d8-2691e7ac//PlatformAdaptor.worker.js")).blob(),i=URL.createObjectURL(n);this._worker=new Worker(i)}catch(r){console.log(`Creating worker error: ${JSON.stringify(r)}`)}return this._worker?(this._worker.postMessage({target:"gl",op:"setPrefetched",preMain:!0}),yield this.sendMessage({target:"worker-init",URL:document.URL,currentScriptUrl:"https://wasm-development.regulaforensics.com/idv/nightly/3.2/23162d8-2691e7ac/",preMain:!0})):void 0})}connectByUserPass(e){return L(this,null,function*(){var n,i;const r=yield this.sendMessage({target:"custom",method:"connect_idv",connectionParams:{deviceDescriptor:G(O({},ts()),{serial:"",macAddress:"",heartbeatCadence:2}),host:e.host,httpRetryCount:0,httpTimeoutMs:0,isSecure:(n=e.isSecure)!=null?n:!0,password:e.password,port:(i=e.port)!=null?i:0,schema:"basic",userName:e.userName},preMain:!0});return r.code===0&&(this._serviceRunning=!0,this._connectedToIdv=!0),r})}connectByApiKey(e){return L(this,null,function*(){var n,i;const r=yield this.sendMessage({target:"custom",method:"connect_by_api_key",connectByApiKeyParams:{isSecure:(n=e.isSecure)!=null?n:!0,host:e.host,port:(i=e.port)!=null?i:0,httpRetryCount:0,httpTimeoutMs:0,deviceDescriptor:O(G(O({},ts()),{serial:"",macAddress:"",heartbeatCadence:100}),e.deviceDescriptor),apiKey:e.apiKey,authToken:e.authToken},preMain:!0});return r.code===0&&(this._serviceRunning=!0,this._connectedToIdv=!0),r})}connectByUrl(e){return L(this,null,function*(){const r=yield this.sendMessage({target:"custom",method:"connect_by_url",connectByUrlParams:{deviceDescriptor:G(O({},ts()),{serial:"",macAddress:"00:00:00:00:00:00",heartbeatCadence:2}),httpRetryCount:5,httpTimeoutMs:1e3,url:e},preMain:!0});return r.code===0&&(this._serviceRunning=!0,this._connectedToIdv=!0),r})}startSession(e,r,n){return L(this,null,function*(){const i={workflowId:e,locale:r};Lc(n)&&(i.metadata=n);const s=yield this.sendMessage({target:"custom",method:"start_session",sessionParams:i,preMain:!0});return s.code===0&&(yr.clearLogs(),kr(`Command: 5. Result code: ${s.code}. Session id: ${s.data.id}. Cur step: ${s.data.currentStep}.`)),s})}continueSession(e,r){return L(this,null,function*(){const n={sessionId:e,locale:r},i=yield this.sendMessage({continueParams:n,target:"custom",method:"continue_session",preMain:!0});return i.code===0&&(yr.clearLogs(),kr(`Command: 10. Result code: ${i.code}. Session id: ${i.data.id}. Cur step: ${i.data.currentStep}.`)),i})}listWorkflows(){return L(this,arguments,function*(e={limit:0,skip:0}){return yield this.sendMessage({workflowsParams:e,target:"custom",method:"list_workflows",preMain:!0})})}getHealth(){return L(this,null,function*(){return yield this.sendMessage({target:"custom",method:"get_health",preMain:!0})})}getServiceToken(){return L(this,null,function*(){return yield this.sendMessage({target:"custom",method:"get_service_token",preMain:!0})})}abandonSession(){return L(this,null,function*(){return yield this.sendMessage({target:"custom",method:"abandon_session",preMain:!0})})}getWorkflow(e){return L(this,null,function*(){return yield this.sendMessage({workflowIdParams:{workflowId:e},target:"custom",method:"get_workflow",preMain:!0})})}pushData(e,r){return L(this,null,function*(){kr(`Command: 9. Request payload: ${JSON.stringify(r)}`);const n=yield this.sendMessage({target:"custom",method:"push_data",pushDataParams:{data:r,stage:0,step:e},preMain:!0});return kr(`Command: 9. Result code: ${n.code}`),n})}getSessionState(){return L(this,null,function*(){const e=yield this.sendMessage({target:"custom",method:"get_session_state",preMain:!0});return kr(`Command: 7. Result code: ${e.code}. Cur step: ${e.data.currentStep}. Proc files: ${e.data.isProcessingFiles}`),e})}waitForSessionUpdate(){return L(this,null,function*(){const e=yield this.sendMessage({waitingSessionParams:{periodMs:1e3},target:"custom",method:"wait_for_session_update",preMain:!0});return kr(`Command: 8. Result code: ${e.code}`),e})}pushSessionLogs(e){return L(this,null,function*(){return yield this.sendMessage({target:"custom",method:"push_session_logs",pushSessionLogsParams:e,preMain:!0})})}disconnect(){return L(this,null,function*(){const e=yield this.sendMessage({target:"custom",method:"disconnect",preMain:!0});return this._connectedToIdv=!1,this._serviceRunning=!1,e})}sendMessage(e){return L(this,null,function*(){return new Promise((r,n)=>{if(!this._worker)return n();this._worker.onmessage=i=>{const{target:s}=i.data;if(s!=="stdout"){if(s==="custom"){const{method:o,data:a}=i.data;o==="onRuntimeInitialized"&&(this._initialized=!0),r(a)}if(s==="stderr"){const{content:o}=i.data;this._setErrorScreen&&this._setErrorScreen(o)}}},this._worker.postMessage(e)})})}isServiceRunning(){return this._serviceRunning}isServiceConnected(){return this._connectedToIdv}terminateWorker(){var e;this.isServiceRunning()&&((e=this._worker)==null||e.terminate(),this._serviceRunning=!1,this._initialized=!1,this._connectedToIdv=!1)}shutdown(){return L(this,null,function*(){if(!this._worker)return{code:0};if(!this._connectedToIdv)return this.terminateWorker(),{code:0};const e=yield this.disconnect();return this.terminateWorker(),e})}}const Ld=(t,e)=>({wasmService:null,isProcessing:!1,isFinalWaitingUi:!1,setAndInitWasmService:()=>L(null,null,function*(){const n=new Ud;yield n.init(),t({wasmService:n})}),setFinalWaitingUi:n=>{t({isFinalWaitingUi:n})},connectByApiKey(n){return L(this,null,function*(){const s=yield e().wasmService.connectByApiKey(n);let o=null;if(s.code===4&&(o=Ot.HTTP_ISSUE),s.code!==0&&s.code!==4&&(o=Ot.PROVIDER_ERROR),o!==null){const a=new nn({errorCode:o});return{error:new En({errorCode:gn.CONNECTION_ISSUE,underlyingBaseError:a})}}else return s.data})},connectByUserPass(n){return L(this,null,function*(){const i=yield e().wasmService.connectByUserPass(n);let s=null;return i.code===4&&(s=Ot.HTTP_ISSUE),i.code!==0&&i.code!==4&&(s=Ot.PROVIDER_ERROR),s!==null?{error:new nn({errorCode:s})}:{}})},connectByUrl(n){return L(this,null,function*(){const s=yield e().wasmService.connectByUrl(n);let o=null;if(s.code===4&&(o=Ot.HTTP_ISSUE),s.code!==0&&s.code!==4&&(o=Ot.PROVIDER_ERROR),o!==null){const a=new nn({errorCode:o}),u=new En({errorCode:gn.CONNECTION_ISSUE,underlyingBaseError:a});return{workflows:[],error:u}}else return{workflows:s.data}})},workflowSessionCompletion:()=>{},setWorkflowSessionCompletion:n=>{const i=s=>{var h;const o=(h=e().currentSessionData)==null?void 0:h.sessionId,a=G(O({},s.results),{sessionId:o}),u=O({results:a},s.error&&{error:s.error});if(e().removeCurrentSessionDataLsAndStore(),n(u),s.error){const f=yr.getLogs().join("; ");e().wasmService.pushSessionLogs({sessionId:o,body:{log:f,errorCode:s.error.shortChain,deviceInfo:{platform:"Web"}}})}yr.clearLogs()};t(()=>({workflowSessionCompletion:i}))},loadModules:n=>L(null,null,function*(){var i;try{const s=yield Fd(n);return t(()=>({externalModules:s})),{}}catch(s){return(i=e().wasmService)==null||i.shutdown(),e().resetWasmService(),e().resetProps(),{error:new Sn({errorCode:zr.MODULES_INSTANTIATION_FAILURE})}}}),setProcessingTemplate:n=>{const i=Yi(n.find(s=>s.templateId===Ci));i.templateLayout=ca(i.templateLayout,e().layout),t({processingTransformedTemplate:i})},setIsProcessing:n=>{t({isProcessing:n})},_pushStep:(n,i)=>L(null,null,function*(){let s=null;return yield ua(()=>L(null,null,function*(){const u=yield e().wasmService.pushData(n,i);let h=null;if(u.code===4&&(h=it.HTTP_ISSUE),u.code!==0&&u.code!==4&&(h=it.PROVIDER_ERROR),h!==null){const _=new sn({errorCode:it.HTTP_ISSUE});s=new ze({errorCode:$e.INTERNAL_ISSUE,message:"Error from external module",underlyingBaseError:_})}return u.code===0?(s=null,u):null}),()=>null),s?{error:s}:{}}),_findStepById:n=>{const i=e().workflow;if(!i||!n)return null;const s=i.steps.find(o=>o.id===n);return s!=null?s:null},_waitingForNextStep:()=>L(null,null,function*(){let n=null,i=null;const s=()=>L(null,null,function*(){var m,S,b,C;const a=yield e().wasmService.getSessionState(),u=(m=a.data)==null?void 0:m.currentStep,h=(S=a.data)==null?void 0:S.isProcessingFiles,_=(C=(b=a.data)==null?void 0:b.workflow)==null?void 0:C.steps,f=Mc(_,u),l=a.code===4,y=a.code!==0&&a.code!==4,v=a.code===0&&(!a.data.workflow||!a.data.currentStep);let d=null;if(_&&!f&&(d=it.NOT_DATA_TYPE),l&&(d=it.HTTP_ISSUE),y&&(d=it.PROVIDER_ERROR),h&&(d=it.IS_PROCESSING),v&&(d=it.DECODING_FAILED),d!==null){const T=new sn({errorCode:d});n=new ze({errorCode:$e.INTERNAL_ISSUE,underlyingBaseError:T})}return f&&!h&&!l&&!y&&!v?(n=null,a.data):null});return yield new Promise(a=>{let _=0,f;const l=y=>L(null,null,function*(){if(y){f=window.setTimeout(()=>{l(!1)},1e4);return}i=yield s(),_++,!i&&_<6?f=window.setTimeout(()=>{l(!1)},1e4):(ur.clearSubscriptions(),a())});if(ur.isConnected()){const y=v=>{JSON.parse(atob(JSON.parse(v).payload)).eventType==="SESSION_UPDATED"&&(clearTimeout(f),l(!1))};ur.onMessage(y)}l(!0)}),n?{error:n}:i?{sessionData:i}:(n=new sn({errorCode:it.DECODING_FAILED}),{error:new ze({errorCode:$e.INTERNAL_ISSUE,underlyingBaseError:n})})}),setFinalStepAndStopProcess:n=>{const i=n||e().currentStepId;if(!i)return;const s=e()._findStepById(i);s&&(e().workflowSessionCompletion({results:{finalStep:{id:s.id,name:s.name,final:s.final}}}),e().resetSession(),e().listener({eventType:jr.MESSAGE,message:br.DID_END_SESSION,module:"IDV"}))},setNextStep:(n,i,s)=>{e().setWorkflow(n),e().setLayout(n.client.layout),e().setProcessingTemplate(n.client.steps),e().setSessionProperties(i);const o=e()._findStepById(s),a=u=>!!u&&Object.prototype.toString.call(u)==="[object Object]"&&u.templateId;if(o!=null&&o.final&&!a(o.client)){e().setFinalStepAndStopProcess(o.id);return}o!=null&&o.final&&a(o.client)&&e().setFinalWaitingUi(!0),e().onChangeScreen(s),e().setIsProcessing(!1)},pushStepWaitNextStepAndSet:n=>L(null,null,function*(){const i=e().currentStepId;if(!i)return;if(e().setIsProcessing(!0),e().isFinalWaitingUi){e().setFinalStepAndStopProcess();return}if(n.errorCode){const _=n,f=new ze({errorCode:$e.MODULES_ISSUE,message:"Error from external module",underlyingBaseError:_});e().workflowSessionCompletion({error:f}),e().resetSession();return}const s=yield e()._pushStep(i,n);if(s.error){e().workflowSessionCompletion({error:s.error}),e().resetSession();return}const o=yield e()._waitingForNextStep();if(o.error){e().workflowSessionCompletion({error:o.error}),e().resetSession();return}const a=o.sessionData.workflow,u=o.sessionData.currentStep,h=o.sessionData.properties;e().setNextStep(a,h,u)}),onChangeScreen:n=>{var u,h,_,f;if(!n)return t(()=>({currentScreenConfig:null}));const i=e().workflow,s=e().sessionProperties;let o=null;if(n===Ci&&e().processingTransformedTemplate!==null){const l=e().processingTransformedTemplate;l&&(o={templateId:l.templateId,templateLayout:l.templateLayout,dataSource:null})}else{const l=e()._findStepById(n);if(typeof((u=l==null?void 0:l.client)==null?void 0:u.templateId)=="string"&&(o=G(O({},l==null?void 0:l.client),{templateId:l.client.templateId,dataSource:(h=l.dataSource)!=null?h:null,properties:s})),o&&(o.sessionId=(_=e().currentSessionData)==null?void 0:_.sessionId,o.serviceToken=e().serviceToken),o&&Fc((f=l==null?void 0:l.client)==null?void 0:f.templateLayout)){const y=ca(l.client.templateLayout,e().layout);y&&(o.templateLayout=y)}}const a=Dc(e().externalModules,i.steps,n);if(o===null||!a){const l=new ze({errorCode:$e.UNKNOWN_STEP,message:"Unsupported step template"});e().workflowSessionCompletion({error:l}),t(()=>({currentScreenConfig:null})),e().resetSession();return}e().setCurrentStepId(n),t(()=>({currentScreenConfig:o}))},deinitializationIdv:()=>L(null,null,function*(){var i;const n=yield(i=e().wasmService)==null?void 0:i.shutdown();return e().resetWasmService(),e().externalModules.forEach(s=>{s.component.deinitialize&&s.component.isReady&&s.component.deinitialize()}),(n==null?void 0:n.code)===0?{}:{}}),resetSession:()=>t(()=>({isFinalWaitingUi:!1,isProcessing:!1,processingTransformedTemplate:null,currentStepId:null,layout:null,currentScreenConfig:null,workflowId:void 0,workflow:null,serviceToken:void 0})),resetWasmService:()=>t(()=>({wasmService:null}))});function Fd(t){return L(this,null,function*(){const e=[];for(const n of t)n&&e.push({id:n.getIdentifier(),supportedTemplates:n.getSupportedTemplates(),component:n});return e.filter(n=>n!==null)})}const Ge=vc((...t)=>O(O(O({},Hc(...t)),Pd(...t)),Ld(...t))),Vd=t=>/^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t)&&t.length<=100,el=(t,e)=>{if(!Vd(t))throw new Error(`Invalid component name: ${t}`);const r=document.createElement(t);return r.style.width="100%",r.style.height="100%",r.setProps(e),r};class $d{constructor(e){this.isPortrait=!1,this.isLandscape=!1,this.orientation="portrait",this._handleOrientationChange=()=>{const r=this._getOrientation();this.orientation!==r&&(this.orientation=r,this.isPortrait=this.orientation==="portrait",this.isLandscape=this.orientation==="landscape",this.host.requestUpdate())},(this.host=e).addController(this)}_getOrientation(){return window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait"}hostConnected(){typeof window!="undefined"&&(this._handleOrientationChange(),window.addEventListener("load",this._handleOrientationChange),window.addEventListener("resize",this._handleOrientationChange))}hostDisconnected(){typeof window!="undefined"&&(window.removeEventListener("load",this._handleOrientationChange),window.removeEventListener("resize",this._handleOrientationChange))}}var ws={exports:{}},tl;function Bd(){return tl||(tl=1,(function(t){t.exports=(function(e){var r={};function n(i){if(r[i])return r[i].exports;var s=r[i]={i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=r,n.d=function(i,s,o){n.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:o})},n.n=function(i){var s=i&&i.__esModule?(function(){return i.default}):(function(){return i});return n.d(s,"a",s),s},n.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},n.p="",n(n.s=1)})([(function(e,r,n){var i={MOBILE:"mobile",TABLET:"tablet",SMART_TV:"smarttv",CONSOLE:"console",WEARABLE:"wearable",BROWSER:void 0},s={CHROME:"Chrome",FIREFOX:"Firefox",OPERA:"Opera",YANDEX:"Yandex",SAFARI:"Safari",INTERNET_EXPLORER:"Internet Explorer",EDGE:"Edge",CHROMIUM:"Chromium",IE:"IE",MOBILE_SAFARI:"Mobile Safari",EDGE_CHROMIUM:"Edge Chromium"},o={IOS:"iOS",ANDROID:"Android",WINDOWS_PHONE:"Windows Phone",WINDOWS:"Windows",MAC_OS:"Mac OS"},a={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1};e.exports={BROWSER_TYPES:s,DEVICE_TYPES:i,OS_TYPES:o,defaultData:a}}),(function(e,r,n){var i=n(2),s=n(0),o=s.BROWSER_TYPES,a=s.OS_TYPES,u=s.DEVICE_TYPES,h=n(4),_=h.checkType,f=h.broPayload,l=h.mobilePayload,y=h.wearPayload,v=h.consolePayload,d=h.stvPayload,m=h.getNavigatorInstance,S=h.isIOS13Check,b=new i,C=b.getBrowser(),T=b.getDevice(),k=b.getEngine(),x=b.getOS(),P=b.getUA(),me=o.CHROME,_e=o.CHROMIUM,ee=o.IE,Q=o.INTERNET_EXPLORER,W=o.OPERA,X=o.FIREFOX,ue=o.SAFARI,de=o.EDGE,we=o.YANDEX,ye=o.MOBILE_SAFARI,te=u.MOBILE,z=u.TABLET,U=u.SMART_TV,Z=u.BROWSER,re=u.WEARABLE,Ie=u.CONSOLE,ne=a.ANDROID,$=a.WINDOWS_PHONE,J=a.IOS,Ke=a.WINDOWS,Xe=a.MAC_OS,pt=function(){return T.type===te},nt=function(){return T.type===z},Ht=function(){switch(T.type){case te:case z:return!0;default:return!1}},mt=function(){return x.name===a.WINDOWS&&x.version==="10"?typeof P=="string"&&P.indexOf("Edg/")!==-1:!1},Jt=function(){return T.type===U},jt=function(){return T.type===Z},Ct=function(){return T.type===re},zt=function(){return T.type===Ie},Qt=function(){return x.name===ne},St=function(){return x.name===Ke},at=function(){return x.name===Xe},w=function(){return x.name===$},I=function(){return x.name===J},A=function(){return C.name===me},V=function(){return C.name===X},D=function(){return C.name===_e},M=function(){return C.name===de},H=function(){return C.name===we},ie=function(){return C.name===ue||C.name===ye},K=function(){return C.name===ye},ve=function(){return C.name===W},He=function(){return C.name===Q||C.name===ee},Y=function(){var _t=m(),Pr=_t&&_t.userAgent.toLowerCase();return typeof Pr=="string"?/electron/.test(Pr):!1},ae=function(){var _t=m();return _t&&(/iPad|iPhone|iPod/.test(_t.platform)||_t.platform==="MacIntel"&&_t.maxTouchPoints>1)&&!window.MSStream},j=function(){return S("iPad")},ge=function(){return S("iPhone")},qe=function(){return S("iPod")},De=function(){return C.major},he=function(){return C.version},q=function(){return x.version?x.version:"none"},Je=function(){return x.name?x.name:"none"},er=function(){return C.name},hr=function(){return T.vendor?T.vendor:"none"},Fn=function(){return T.model?T.model:"none"},Vn=function(){return k.name},$n=function(){return k.version},Bn=function(){return P},Wn=function(){return T.type},Hn=Jt(),jn=zt(),zn=Ct(),tr=K()||j(),Gn=D(),lt=Ht()||j(),Kn=pt(),qn=nt()||j(),Zn=jt(),Yn=Qt(),Xn=w(),Jn=I()||j(),Qn=A(),bs=V(),Cs=ie(),Ss=ve(),Mr=He(),ei=q(),ti=Je(),ri=De(),Es=he(),ni=er(),ii=hr(),si=Fn(),Is=Vn(),Os=$n(),Ts=Bn(),Rs=M()||mt(),oi=H(),As=Wn(),xs=ae(),Ns=j(),ks=ge(),Ds=qe(),Ms=Y(),Ps=mt(),Us=M(),Ls=St(),Fs=at(),Et=_(T.type);function Vs(){var se=Et.isBrowser,_t=Et.isMobile,Pr=Et.isTablet,ai=Et.isSmartTV,li=Et.isConsole,ci=Et.isWearable;if(se)return f(se,C,k,x,P);if(ai)return d(ai,k,x,P);if(li)return v(li,k,x,P);if(_t||Pr)return l(Et,T,x,P);if(ci)return y(ci,k,x,P)}e.exports={deviceDetect:Vs,isSmartTV:Hn,isConsole:jn,isWearable:zn,isMobileSafari:tr,isChromium:Gn,isMobile:lt,isMobileOnly:Kn,isTablet:qn,isBrowser:Zn,isAndroid:Yn,isWinPhone:Xn,isIOS:Jn,isChrome:Qn,isFirefox:bs,isSafari:Cs,isOpera:Ss,isIE:Mr,osVersion:ei,osName:ti,fullBrowserVersion:ri,browserVersion:Es,browserName:ni,mobileVendor:ii,mobileModel:si,engineName:Is,engineVersion:Os,getUA:Ts,isEdge:Rs,isYandex:oi,deviceType:As,isIOS13:xs,isIPad13:Ns,isIPhone13:ks,isIPod13:Ds,isElectron:Ms,isEdgeChromium:Ps,isLegacyEdge:Us,isWindows:Ls,isMacOs:Fs}}),(function(e,r,n){var i;/*!
|
|
109
|
+
`,this.shadowRoot.querySelector("#idv-gui-styles")||this.shadowRoot.appendChild(e)}Sr(u(Du,{moduleProps:this.props.moduleProps,perform:this.props.perform,idvEventListener:this.props.idvEventListener,isProcessing:this.props.isProcessing}),this._shadowRoot)}disconnectedCallback(){setTimeout(()=>{this._mounted&&(this._mounted=!1)})}static isReady(){return go}static initialize(e){go=!0}static deinitialize(){go=!1}};dn.displayName=An,dn.getSupportedTemplates=()=>Object.values(dt),dn.getIdentifier=()=>An;let Mn=dn;fa(An,Mn);const Pu=(t,e)=>({_isInitialized:!1,_initializationInProgress:!1,_isConnectedToPlatform:!1,_sessionIdFromUrl:null,_ttl:86400,_prepareDataForWorkflow:n=>{e().setWorkflowId(n.workflow.id),e().setWorkflow(n.workflow),e().setLayout(n.workflow.client.layout),e().setProcessingTemplate(n.workflow.client.steps),e().setSessionProperties(n.properties)},_checkAndSetApiTokenToLs:n=>{const i=e().startConfig;if(!("apiKey"in i)||!i.apiKey)return;const o=e().workflowId,s=e().apiKeyAuthTokenCollection;"authToken"in s&&"apiKey"in s&&cr.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 dr(I({errorCode:qt.HTTP_ISSUE},i?{message:i}:{}));return{error:new Ze({errorCode:We.START_SESSION_FAILED,underlyingBaseError:o})}}if("id"in n&&"currentStep"in n)return n;{const i=new dr({errorCode:qt.DECODING_FAILED});return{error:new Ze({errorCode:We.START_SESSION_FAILED,underlyingBaseError:i})}}},_runSocketConnection:n=>U(null,null,function*(){const{host:i,isSecure:o,port:s}=e().startConfig;if(i&&n&&(yield ur.connect({host:i,isSecure:o,port:s,token:n})),!i||!n||!ur.isConnected()){const a=new dr({errorCode:qt.CONNECTION_ISSUE,message:"WebSocket connection issue"});return{error:new Ze({errorCode:We.START_SESSION_FAILED,underlyingBaseError:a})}}return{}}),_continueSession:(n,i)=>U(null,null,function*(){var y;const o=e().startConfig,s="apiKey"in o&&typeof o.apiKey=="string",a=e().workflowId,l=i?br.DID_CONTINUE_REMOTE_SESSION:br.DID_START_RESTORE_SESSION;let d;if(i)d=i;else if(s){if(!e().sessionRestoreMode)return{};const g=o.apiKey,f=cr.getAuthTokenLs(),m=f&&((y=f[g])==null?void 0:y.sessionId);if(!m)return{};m&&(d=m)}else{if(!e().sessionRestoreMode)return{};const g=e().getCurrentSessionDataLs();if(!g)return{};const f=g.sessionId,m=g.workflowId;if(!f||m!==a)return{};d=f}const _=yield e().fetchService.continueSession(d,n),h=e()._checkIsSessionDataValid(_.data);if(!la(h))return{error:h.error};e()._prepareDataForWorkflow(h);const c=h.currentStep;return e().setCurrentStepId(c),s?e()._checkAndSetApiTokenToLs(h.id):e().setCurrentSessionDataLsAndStore({sessionId:h.id,workflowId:a}),e().setNextStep(h.workflow,h.properties,c),e().listener({eventType:Hr.MESSAGE,message:l,module:"IDV"}),h}),initialize(n){return U(this,null,function*(){if(e()._isInitialized)return console.warn("Idv:: Already initialized"),{};if(e()._initializationInProgress)return new bn({errorCode:Wr.INITIALIZATION_IN_PROGRESS});t({_initializationInProgress:!0}),yield e().setAndInitFetchService(),t({modulesConfig:n.modulesConfig||{}});let i=[Mn];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 U(this,null,function*(){if(!e()._isInitialized)return{error:new Be({errorCode:Ve.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Be({errorCode:Ve.SCENARIO_IN_PROGRESS})};const o=["apiKey","baseUrl"].filter(f=>!(n!=null&&n[f]));if(o.length>0)return{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${o.join(", ")}`})};const s=Qi(n.baseUrl);if(!s)return{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n.baseUrl}`})};typeof n.ttl=="number"&&!Number.isNaN(n.ttl)&&t({_ttl:n.ttl});const a=e()._ttl,l={host:s.host,isSecure:s.isSecure,port:s.port,apiKey:n.apiKey,deviceDescriptor:{ttl:a}},d=cr.getAuthTokenLs(),_=d&&d[n.apiKey]&&d[n.apiKey].authToken?d[n.apiKey]:null,h=_&&_.authToken,c=yield e().connectByApiKey(l);if(c.error)return{error:new Be({errorCode:Ve.CONNECTION_ISSUE,underlyingBaseError:c.error})};h&&c.authToken!==h&&cr.removeAuthTokenLs(n.apiKey);const y=_&&c.authToken===_.authToken&&_,g=y?y.tokenExpiresAt:Date.now()+a*1e3;return e().setApiKeyAuthTokenCollection(n.apiKey,c.authToken,g),t({_isConnectedToPlatform:!0}),e().setStartConfig({host:s.host,isSecure:s.isSecure,apiKey:n.apiKey,port:s.port}),c})},configureWithUrl(n){return U(this,null,function*(){if(!e()._isInitialized)return{error:new Be({errorCode:Ve.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Be({errorCode:Ve.SCENARIO_IN_PROGRESS})};const i=$c(n);i&&(e().removeCurrentSessionDataLsAndStore(),t({_sessionIdFromUrl:i}));const o=yield e().connectByUrl(n);if(o.error)return{error:new Be({errorCode:Ve.CONNECTION_ISSUE,underlyingBaseError:o.error})};t({_isConnectedToPlatform:!0});try{const s=Qi(n);if(!s)return{error:new Be({errorCode:Ve.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 U(this,null,function*(){if(!e()._isInitialized)return{error:new Be({errorCode:Ve.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Be({errorCode:Ve.SCENARIO_IN_PROGRESS})};const o=["password","userName","baseUrl"].filter(d=>!(n!=null&&n[d]));if(o.length>0)return{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${o.join(", ")}`})};const s=Qi(n.baseUrl);if(!s)return{error:new Be({errorCode:Ve.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 Be({errorCode:Ve.CONNECTION_ISSUE,underlyingBaseError:l.error})}:(t({_isConnectedToPlatform:!0}),e().setStartConfig({host:s.host,isSecure:s.isSecure,port:s.port}),l)})},getWorkflows(){return U(this,arguments,function*(n={limit:100,skip:0}){if(!e()._isInitialized)return{error:new xt({errorCode:mt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new xt({errorCode:mt.CONNECTION_ISSUE})};const i=yield e().fetchService.listWorkflows(n);if(i.code!==0){const o=i.code===4?gt.HTTP_ISSUE:gt.PROVIDER_ERROR,s=new En({errorCode:o});return{error:new xt({errorCode:mt.WORKFLOW_ISSUE,message:"No workflow list",underlyingBaseError:s})}}return{results:i.data.items}})},prepareWorkflowAndPrepareUi(n){return U(this,null,function*(){var g;if(!e()._isInitialized)return{error:new xt({errorCode:mt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new xt({errorCode:mt.CONNECTION_ISSUE})};if(e().currentScreenConfig)return{error:new xt({errorCode:mt.SCENARIO_IN_PROGRESS})};const i=yield e().fetchService.getWorkflow(n),o=Zi(i.data),s=((g=o.client)==null?void 0:g.steps)&&o.client.steps.some(f=>f.templateId===bi);let a=null;if(i.code===4&&(a=gt.HTTP_ISSUE),i.code!==0&&i.code!==4&&(a=gt.PROVIDER_ERROR),i.code===0&&!i.data.id&&(a=gt.DECODING_FAILED),i.code===0&&i.data.id&&o===null&&(a=gt.DECODING_FAILED),s||(a=gt.DECODING_FAILED),a!==null){const f=new En({errorCode:a});return{error:new xt({errorCode:mt.INTERNAL_ISSUE,underlyingBaseError:f})}}const l=e().externalModules,d=o.steps,{isAllTemplatesSupported:_,unsupportedSteps:h}=Dc(l,d);_||console.log("IDV:: Warning. Unsupported steps found: ",h);const c=e().workflowId;c&&n!==c&&l.forEach(f=>{f.component.deinitialize()});const y=e().modulesConfig;return l.forEach(f=>{f.component.isReady()||f.component.initialize(y)}),e().setLayout(o.client.layout),e().setProcessingTemplate(o.client.steps),e().setWorkflowId(n),{workflow:o}})},startNewSession(n,i,o){return U(this,null,function*(){if(!e()._isInitialized)return{error:new Ze({errorCode:We.INITIALIZATION_REQUIRED})};const s=e().workflowId;if(!s)return{error:new Ze({errorCode:We.PREPARED_REQUIRED})};if(e().currentScreenConfig)return{error:new Ze({errorCode:We.ALREADY_STARTED})};const a=S=>{ur&&ur.close(),n(S)};e().setWorkflowSessionCompletion(a);const l=e().startConfig,d="apiKey"in l&&typeof l.apiKey=="string",_=e().apiKeyAuthTokenCollection;if(d&&"tokenExpiresAt"in _){const S=_.tokenExpiresAt&&typeof _.tokenExpiresAt=="number"?_.tokenExpiresAt:0;if(Date.now()>S){const C=yield e().connectByApiKey({apiKey:l.apiKey,host:l.host,deviceDescriptor:{ttl:e()._ttl}});if(cr.removeAuthTokenLs(l.apiKey),C.error)return{error:new dr({errorCode:qt.CONNECTION_ISSUE,underlyingBaseError:C.error})};if(C&&"authToken"in C){const O=Date.now()+e()._ttl*1e3;e().setApiKeyAuthTokenCollection(l.apiKey,C.authToken,O)}}}e().setIsProcessing(!0);const h=yield e().fetchService.getConnectionToken(!1);if(!h||typeof h!="string"){const S=new dr({errorCode:qt.TOKEN_ERROR});return{error:new Ze({errorCode:We.START_SESSION_FAILED,underlyingBaseError:S})}}e().setServiceSessionToken(h);const c=yield e()._runSocketConnection(h);if(c.error)return{error:c.error};const y=e()._sessionIdFromUrl,g=yield e()._continueSession(i,y);if("sessionId"in g)return{results:g};if("error"in g)return{error:g.error};if("id"in g)return{};const f=yield e().fetchService.startSession(s,i,o),m=e()._checkIsSessionDataValid(f.data);return la(m)?(e()._prepareDataForWorkflow(m),d?e()._checkAndSetApiTokenToLs(m.id):e().setCurrentSessionDataLsAndStore({sessionId:m.id,workflowId:s}),e().setIsProcessing(!1),e().setCurrentStepId(m.currentStep),e().listener({eventType:Hr.MESSAGE,message:br.DID_START_SESSION,module:"IDV"}),{}):{error:m.error}})},playWorkflow(){const n=e().currentStepId;if(n)e().onChangeScreen(n);else{const i=new Ze({errorCode:We.UNKNOWN_STEP});e().workflowSessionCompletion({error:i})}},deinitialize(){return U(this,null,function*(){if(!e()._isInitialized)return{error:new Sn({errorCode:jr.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Sn({errorCode:jr.SCENARIO_IN_PROGRESS})};const n=yield e().deinitializationIdv();return e().resetProps(),t({_isInitialized:!1}),n})}});class Mu{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""}}_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=cr.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 U(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 U(this,null,function*(){return yield e.text().catch(()=>"")})}_fetchPing(){return U(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 U(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){return U(this,null,function*(){const r="POST",n=`${this._origin}/api/device/connection`;try{const i=yield fetch(n,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(Bc()),method:r}),o={httpCode:i.status,method:r,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!=null&&s.token)||!(s!=null&&s.expiresAt))return{code:6,data:o}}catch(a){const l=this._getErrorTextFromError(a);return o.what=l,{code:6,data:o}}return{code:0,data:{token:s.token,expiresAt:+new Date(s.expiresAt),workflows:s.workflows}}}catch(i){const o=this._getErrorTextFromError(i);return{code:4,data:{httpCode:0,method:r,url:n,what:o}}}})}_fetchEphemeral(e,r){return U(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 U(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 _=this._getErrorTextFromError(d);return a.what=_,{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 U(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 _=yield this._getResponseTextFromBadResponse(a);return _&&(l.what=_),{code:5,data:l}}let d;try{if(d=yield a.json(),!(d!=null&&d.id))return{code:6,data:l}}catch(_){const h=this._getErrorTextFromError(_);return l.what=h,{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 U(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 _=yield this._getResponseTextFromBadResponse(a);return _&&(l.what=_),{code:5,data:l}}let d;try{if(d=yield a.json(),!d)return{code:6,data:l}}catch(_){const h=this._getErrorTextFromError(_);return l.what=h,{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 U(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){return U(this,null,function*(){var s;const i="POST",o=`${this._origin}/api/sessions/${(s=this._session)==null?void 0:s.id}/step/${r}?stage=0`;try{const a=yield fetch(o,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(n),method:i}),l={httpCode:a.status,method:i,url:o};if(!a.ok){const _=yield this._getResponseTextFromBadResponse(a);return _&&(l.what=_),{code:5,data:l}}let d;try{if(d=yield a.json(),!d)return{code:6,data:l}}catch(_){const h=this._getErrorTextFromError(_);return l.what=h,{code:6,data:l}}return{code:0,data:d}}catch(a){const l=this._getErrorTextFromError(a);return{code:4,data:{httpCode:0,method:i,url:o,what:l}}}})}_fetchSessionLogs(e,r){return U(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 _=this._getErrorTextFromError(d);return a.what=_,{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 U(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 U(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 U(this,null,function*(){this._connect={type:"byUrl",arg:e};const r=this._getOriginFromUrl(e);this._origin=r;let n=this._getAuthorizationSearchParam(e);const i=yield this._fetchPing();if(i.code!==0)return i;let 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}})})}getConnectionToken(e){return U(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(e,r,n){return U(this,null,function*(){const i={locale:r};Mc(n)&&(i.metadata=n);const o=yield this.getConnectionToken(!1),s=this._getAuthorizationHeaderFromConnectionToken(o),a=yield this._fetchSessionByWorkflowId(s,e,i);return a.code===0&&(this._session=a.data,this._locale=r),a})}continueSession(e,r){return U(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 U(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){return U(this,null,function*(){this._workflowId=e;const r=yield this.getConnectionToken(!1),n=this._getAuthorizationHeaderFromConnectionToken(r);return yield this._fetchWorkflow(n,e)})}pushData(e,r){return U(this,null,function*(){const n=yield this.getConnectionToken(!0),i=this._getAuthorizationHeaderFromConnectionToken(n),o=yield this._fetchStep(i,e,r);if(o.code!==0)return o;const s=yield this._fetchSessionState(i);return s.code===0&&(this._session=s.data),s})}getSessionState(){return U(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 U(this,null,function*(){const r=yield this.getConnectionToken(!0),n=this._getAuthorizationHeaderFromConnectionToken(r);return yield this._fetchSessionLogs(n,e)})}}const Fu=(t,e)=>({fetchService:null,isProcessing:!1,isFinalWaitingUi:!1,setAndInitFetchService:()=>U(null,null,function*(){const n=new Mu;t({fetchService:n})}),setFinalWaitingUi:n=>{t({isFinalWaitingUi:n})},connectByApiKey(n){return U(this,null,function*(){const o=yield e().fetchService.connectByApiKey(n,!1);if(o.code!==0){const s=o.code===4?It.HTTP_ISSUE:It.PROVIDER_ERROR,a=new tn({errorCode:s,message:JSON.stringify(o.data)});return{error:new Cn({errorCode:_n.CONNECTION_ISSUE,underlyingBaseError:a})}}return o.data})},connectByUserPass(n){return U(this,null,function*(){const i=yield e().fetchService.connectByUserPass(n);if(i.code!==0){const o=i.code===4?It.HTTP_ISSUE:It.PROVIDER_ERROR;return{error:new tn({errorCode:o,message:JSON.stringify(i.data)})}}return{workflows:i.data.workflows}})},connectByUrl(n){return U(this,null,function*(){const o=yield e().fetchService.connectByUrl(n);if(o.code!==0){const s=o.code===4?It.HTTP_ISSUE:It.PROVIDER_ERROR,a=new tn({errorCode:s,message:JSON.stringify(o.data)}),l=new Cn({errorCode:_n.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=Y(I({},o.results),{sessionId:s}),l=I({results:a},o.error&&{error:o.error});if(e().removeCurrentSessionDataLsAndStore(),n(l),o.error){const h=yi.getLogs().join("; ");e().fetchService.pushSessionLogs({body:{log:h,errorCode:o.error.shortChain,deviceInfo:{platform:"Web"}}})}yi.clearLogs()};t(()=>({workflowSessionCompletion:i}))},loadModules:n=>U(null,null,function*(){try{const i=yield Uu(n);return t(()=>({externalModules:i})),{}}catch(i){return e().resetFetchService(),e().resetProps(),{error:new bn({errorCode:Wr.MODULES_INSTANTIATION_FAILURE})}}}),setProcessingTemplate:n=>{const i=Zi(n.find(o=>o.templateId===bi));i.templateLayout=aa(i.templateLayout,e().layout),t({processingTransformedTemplate:i})},setIsProcessing:n=>{t({isProcessing:n})},_pushStep:(n,i)=>U(null,null,function*(){let o=null;return yield Rc(()=>U(null,null,function*(){const l=yield e().fetchService.pushData(n,i);let d=null;if(l.code===4&&(d=it.HTTP_ISSUE),l.code!==0&&l.code!==4&&(d=it.PROVIDER_ERROR),d!==null){const _=new rn({errorCode:it.HTTP_ISSUE});o=new Ze({errorCode:We.INTERNAL_ISSUE,message:"Error from external module",underlyingBaseError:_})}return l.code===0?(o=null,l):null}),()=>null),o?{error:o}:{}}),_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},_waitingForNextStep:()=>U(null,null,function*(){let n=null,i=null;const o=()=>U(null,null,function*(){var b,C,O;const a=yield e().fetchService.getSessionState(),l=a.code===0,d=l?a.data:null,_=(b=d==null?void 0:d.currentStep)!=null?b:"",h=d==null?void 0:d.isProcessingFiles,c=(O=(C=d==null?void 0:d.workflow)==null?void 0:C.steps)!=null?O:[],y=Nc(c,_),g=a.code===4,f=a.code!==0&&a.code!==4,m=l&&(!a.data.workflow||!a.data.currentStep);let S=null;if(c&&!y&&(S=it.NOT_DATA_TYPE),g&&(S=it.HTTP_ISSUE),f&&(S=it.PROVIDER_ERROR),h&&(S=it.IS_PROCESSING),m&&(S=it.DECODING_FAILED),S!==null){const N=new rn({errorCode:S});n=new Ze({errorCode:We.INTERNAL_ISSUE,underlyingBaseError:N})}return y&&!h&&!g&&!f&&!m?(n=null,a.data):null});return yield new Promise(a=>{let _=0,h;const c=y=>U(null,null,function*(){if(y){h=window.setTimeout(()=>{c(!1)},1e4);return}i=yield o(),_++,!i&&_<6?h=window.setTimeout(()=>{c(!1)},1e4):(ur.clearSubscriptions(),a())});if(ur.isConnected()){const y=g=>{JSON.parse(atob(JSON.parse(g).payload)).eventType==="SESSION_UPDATED"&&(clearTimeout(h),c(!1))};ur.onMessage(y)}c(!0)}),n?{error:n}:i?{sessionData:i}:(n=new rn({errorCode:it.DECODING_FAILED}),{error:new Ze({errorCode:We.INTERNAL_ISSUE,underlyingBaseError:n})})}),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.final}}}),e().resetSession(),e().listener({eventType:Hr.MESSAGE,message:br.DID_END_SESSION,module:"IDV"}))},setNextStep:(n,i,o)=>{e().setWorkflow(n),e().setLayout(n.client.layout),e().setProcessingTemplate(n.client.steps),e().setSessionProperties(i);const s=e()._findStepById(o),a=l=>!!l&&Object.prototype.toString.call(l)==="[object Object]"&&l.templateId;if(s!=null&&s.final&&!a(s.client)){e().setFinalStepAndStopProcess(s.id);return}s!=null&&s.final&&a(s.client)&&e().setFinalWaitingUi(!0),e().onChangeScreen(o),e().setIsProcessing(!1)},pushStepWaitNextStepAndSet:n=>U(null,null,function*(){const i=e().currentStepId;if(!i)return;if(e().setIsProcessing(!0),e().isFinalWaitingUi){e().setFinalStepAndStopProcess();return}if(n.errorCode){const _=n,h=new Ze({errorCode:We.MODULES_ISSUE,message:"Error from external module",underlyingBaseError:_});e().workflowSessionCompletion({error:h}),e().resetSession();return}const o=yield e()._pushStep(i,n);if(o.error){e().workflowSessionCompletion({error:o.error}),e().resetSession();return}const s=yield e()._waitingForNextStep();if(s.error){e().workflowSessionCompletion({error:s.error}),e().resetSession();return}const a=s.sessionData.workflow,l=s.sessionData.currentStep,d=s.sessionData.properties;e().setNextStep(a,d,l)}),onChangeScreen:n=>{var l,d,_,h;if(!n)return t(()=>({currentScreenConfig:null}));const i=e().workflow,o=e().sessionProperties;let s=null;if(n===bi&&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=Y(I({},c==null?void 0:c.client),{templateId:c.client.templateId,dataSource:(d=c.dataSource)!=null?d:null,properties:o})),s&&(s.sessionId=(_=e().currentSessionData)==null?void 0:_.sessionId,s.serviceToken=e().serviceToken),s&&Fc((h=c==null?void 0:c.client)==null?void 0:h.templateLayout)){const y=aa(c.client.templateLayout,e().layout);y&&(s.templateLayout=y)}}const a=kc(e().externalModules,i.steps,n);if(s===null||!a){const c=new Ze({errorCode:We.UNKNOWN_STEP,message:"Unsupported step template"});e().workflowSessionCompletion({error:c}),t(()=>({currentScreenConfig:null})),e().resetSession();return}e().setCurrentStepId(n),t(()=>({currentScreenConfig:s}))},deinitializationIdv:()=>U(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 Uu(t){return U(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 ze=_c((...t)=>I(I(I({},Hc(...t)),Pu(...t)),Fu(...t))),Lu=t=>/^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t)&&t.length<=100,Ja=(t,e)=>{if(!Lu(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 Vu{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 wo={exports:{}},Xa;function $u(){return Xa||(Xa=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),_=d.checkType,h=d.broPayload,c=d.mobilePayload,y=d.wearPayload,g=d.consolePayload,f=d.stvPayload,m=d.getNavigatorInstance,S=d.isIOS13Check,b=new i,C=b.getBrowser(),O=b.getDevice(),N=b.getEngine(),R=b.getOS(),M=b.getUA(),_e=s.CHROME,me=s.CHROMIUM,ee=s.IE,Q=s.INTERNET_EXPLORER,H=s.OPERA,J=s.FIREFOX,de=s.SAFARI,ue=s.EDGE,ve=s.YANDEX,ye=s.MOBILE_SAFARI,te=l.MOBILE,z=l.TABLET,F=l.SMART_TV,q=l.BROWSER,re=l.WEARABLE,Te=l.CONSOLE,ne=a.ANDROID,$=a.WINDOWS_PHONE,X=a.IOS,Ke=a.WINDOWS,Je=a.MAC_OS,ht=function(){return O.type===te},nt=function(){return O.type===z},Wt=function(){switch(O.type){case te:case z:return!0;default:return!1}},pt=function(){return R.name===a.WINDOWS&&R.version==="10"?typeof M=="string"&&M.indexOf("Edg/")!==-1:!1},Xt=function(){return O.type===F},jt=function(){return O.type===q},Ct=function(){return O.type===re},zt=function(){return O.type===Te},Qt=function(){return R.name===ne},St=function(){return R.name===Ke},at=function(){return R.name===Je},v=function(){return R.name===$},T=function(){return R.name===X},x=function(){return C.name===_e},V=function(){return C.name===J},D=function(){return C.name===me},P=function(){return C.name===ue},W=function(){return C.name===ve},ie=function(){return C.name===de||C.name===ye},K=function(){return C.name===ye},we=function(){return C.name===H},He=function(){return C.name===Q||C.name===ee},Z=function(){var _t=m(),Dr=_t&&_t.userAgent.toLowerCase();return typeof Dr=="string"?/electron/.test(Dr):!1},ae=function(){var _t=m();return _t&&(/iPad|iPhone|iPod/.test(_t.platform)||_t.platform==="MacIntel"&&_t.maxTouchPoints>1)&&!window.MSStream},j=function(){return S("iPad")},ge=function(){return S("iPhone")},Ge=function(){return S("iPod")},Pe=function(){return C.major},he=function(){return C.version},G=function(){return R.version?R.version:"none"},Xe=function(){return R.name?R.name:"none"},er=function(){return C.name},pr=function(){return O.vendor?O.vendor:"none"},Fn=function(){return O.model?O.model:"none"},Un=function(){return N.name},Ln=function(){return N.version},Vn=function(){return M},$n=function(){return O.type},Bn=Xt(),Hn=zt(),Wn=Ct(),tr=K()||j(),jn=D(),lt=Wt()||j(),zn=ht(),Kn=nt()||j(),Gn=jt(),qn=Qt(),Zn=v(),Yn=T()||j(),Jn=x(),yo=V(),bo=ie(),Co=we(),Nr=He(),Xn=G(),Qn=Xe(),ei=Pe(),So=he(),ti=er(),ri=pr(),ni=Fn(),Eo=Un(),To=Ln(),Io=Vn(),Oo=P()||pt(),ii=W(),Ao=$n(),xo=ae(),Ro=j(),ko=ge(),No=Ge(),Do=Z(),Po=pt(),Mo=P(),Fo=St(),Uo=at(),Et=_(O.type);function Lo(){var oe=Et.isBrowser,_t=Et.isMobile,Dr=Et.isTablet,oi=Et.isSmartTV,si=Et.isConsole,ai=Et.isWearable;if(oe)return h(oe,C,N,R,M);if(oi)return f(oi,N,R,M);if(si)return g(si,N,R,M);if(_t||Dr)return c(Et,O,R,M);if(ai)return y(ai,N,R,M)}e.exports={deviceDetect:Lo,isSmartTV:Bn,isConsole:Hn,isWearable:Wn,isMobileSafari:tr,isChromium:jn,isMobile:lt,isMobileOnly:zn,isTablet:Kn,isBrowser:Gn,isAndroid:qn,isWinPhone:Zn,isIOS:Yn,isChrome:Jn,isFirefox:yo,isSafari:bo,isOpera:Co,isIE:Nr,osVersion:Xn,osName:Qn,fullBrowserVersion:ei,browserVersion:So,browserName:ti,mobileVendor:ri,mobileModel:ni,engineName:Eo,engineVersion:To,getUA:Io,isEdge:Oo,isYandex:ii,deviceType:Ao,isIOS13:xo,isIPad13:Ro,isIPhone13:ko,isIPod13:No,isElectron:Do,isEdgeChromium:Po,isLegacyEdge:Mo,isWindows:Fo,isMacOs:Uo}}),(function(e,r,n){var i;/*!
|
|
110
110
|
* UAParser.js v0.7.18
|
|
111
111
|
* Lightweight JavaScript-based User-Agent string parser
|
|
112
112
|
* https://github.com/faisalman/ua-parser-js
|
|
113
113
|
*
|
|
114
114
|
* Copyright © 2012-2016 Faisal Salman <fyzlman@gmail.com>
|
|
115
115
|
* Dual licensed under GPLv2 or MIT
|
|
116
|
-
*/(function(s,o){var a="0.7.18",u="",h="?",_="function",f="undefined",l="object",y="string",v="major",d="model",m="name",S="type",b="vendor",C="version",T="architecture",k="console",x="mobile",P="tablet",me="smarttv",_e="wearable",ee="embedded",Q={extend:function(te,z){var U={};for(var Z in te)z[Z]&&z[Z].length%2===0?U[Z]=z[Z].concat(te[Z]):U[Z]=te[Z];return U},has:function(te,z){return typeof te=="string"?z.toLowerCase().indexOf(te.toLowerCase())!==-1:!1},lowerize:function(te){return te.toLowerCase()},major:function(te){return typeof te===y?te.replace(/[^\d\.]/g,"").split(".")[0]:o},trim:function(te){return te.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},W={rgx:function(te,z){for(var U=0,Z,re,Ie,ne,$,J;U<z.length&&!$;){var Ke=z[U],Xe=z[U+1];for(Z=re=0;Z<Ke.length&&!$;)if($=Ke[Z++].exec(te),$)for(Ie=0;Ie<Xe.length;Ie++)J=$[++re],ne=Xe[Ie],typeof ne===l&&ne.length>0?ne.length==2?typeof ne[1]==_?this[ne[0]]=ne[1].call(this,J):this[ne[0]]=ne[1]:ne.length==3?typeof ne[1]===_&&!(ne[1].exec&&ne[1].test)?this[ne[0]]=J?ne[1].call(this,J,ne[2]):o:this[ne[0]]=J?J.replace(ne[1],ne[2]):o:ne.length==4&&(this[ne[0]]=J?ne[3].call(this,J.replace(ne[1],ne[2])):o):this[ne]=J||o;U+=2}},str:function(te,z){for(var U in z)if(typeof z[U]===l&&z[U].length>0){for(var Z=0;Z<z[U].length;Z++)if(Q.has(z[U][Z],te))return U===h?o:U}else if(Q.has(z[U],te))return U===h?o:U;return te}},X={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},ue={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[m,C],[/(opios)[\/\s]+([\w\.]+)/i],[[m,"Opera Mini"],C],[/\s(opr)\/([\w\.]+)/i],[[m,"Opera"],C],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i],[m,C],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[m,"IE"],C],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[m,"Edge"],C],[/(yabrowser)\/([\w\.]+)/i],[[m,"Yandex"],C],[/(puffin)\/([\w\.]+)/i],[[m,"Puffin"],C],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[m,"UCBrowser"],C],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],C],[/(micromessenger)\/([\w\.]+)/i],[[m,"WeChat"],C],[/(qqbrowserlite)\/([\w\.]+)/i],[m,C],[/(QQ)\/([\d\.]+)/i],[m,C],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[m,C],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[m,C],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[m,C],[/(MetaSr)[\/\s]?([\w\.]+)/i],[m],[/(LBBROWSER)/i],[m],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[C,[m,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[C,[m,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[C,[m,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[m,/(.+)/,"$1 WebView"],C],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[m,/(.+(?:g|us))(.+)/,"$1 $2"],C],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[C,[m,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[m,C],[/(dolfin)\/([\w\.]+)/i],[[m,"Dolphin"],C],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[m,"Chrome"],C],[/(coast)\/([\w\.]+)/i],[[m,"Opera Coast"],C],[/fxios\/([\w\.-]+)/i],[C,[m,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[C,[m,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[C,m],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[m,"GSA"],C],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[m,[C,W.str,X.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[m,C],[/(navigator|netscape)\/([\w\.-]+)/i],[[m,"Netscape"],C],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[m,C]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[T,"amd64"]],[/(ia32(?=;))/i],[[T,Q.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[T,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[T,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[T,/ower/,"",Q.lowerize]],[/(sun4\w)[;\)]/i],[[T,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[T,Q.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[d,b,[S,P]],[/applecoremedia\/[\w\.]+ \((ipad)/],[d,[b,"Apple"],[S,P]],[/(apple\s{0,1}tv)/i],[[d,"Apple TV"],[b,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[b,d,[S,P]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[d,[b,"Amazon"],[S,P]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[d,W.str,X.device.amazon.model],[b,"Amazon"],[S,x]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[d,b,[S,x]],[/\((ip[honed|\s\w*]+);/i],[d,[b,"Apple"],[S,x]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[b,d,[S,x]],[/\(bb10;\s(\w+)/i],[d,[b,"BlackBerry"],[S,x]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[d,[b,"Asus"],[S,P]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[b,"Sony"],[d,"Xperia Tablet"],[S,P]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[d,[b,"Sony"],[S,x]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[b,d,[S,k]],[/android.+;\s(shield)\sbuild/i],[d,[b,"Nvidia"],[S,k]],[/(playstation\s[34portablevi]+)/i],[d,[b,"Sony"],[S,k]],[/(sprint\s(\w+))/i],[[b,W.str,X.device.sprint.vendor],[d,W.str,X.device.sprint.model],[S,x]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[b,d,[S,P]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[b,[d,/_/g," "],[S,x]],[/(nexus\s9)/i],[d,[b,"HTC"],[S,P]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[d,[b,"Huawei"],[S,x]],[/(microsoft);\s(lumia[\s\w]+)/i],[b,d,[S,x]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[d,[b,"Microsoft"],[S,k]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[b,"Microsoft"],[S,x]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[d,[b,"Motorola"],[S,x]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[d,[b,"Motorola"],[S,P]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[b,Q.trim],[d,Q.trim],[S,me]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[b,"Samsung"],[S,me]],[/\(dtv[\);].+(aquos)/i],[d,[b,"Sharp"],[S,me]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[b,"Samsung"],d,[S,P]],[/smart-tv.+(samsung)/i],[b,[S,me],d],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[b,"Samsung"],d,[S,x]],[/sie-(\w*)/i],[d,[b,"Siemens"],[S,x]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[b,"Nokia"],d,[S,x]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[d,[b,"Acer"],[S,P]],[/android.+([vl]k\-?\d{3})\s+build/i],[d,[b,"LG"],[S,P]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[b,"LG"],d,[S,P]],[/(lg) netcast\.tv/i],[b,d,[S,me]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[d,[b,"LG"],[S,x]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[d,[b,"Lenovo"],[S,P]],[/linux;.+((jolla));/i],[b,d,[S,x]],[/((pebble))app\/[\d\.]+\s/i],[b,d,[S,_e]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[b,d,[S,x]],[/crkey/i],[[d,"Chromecast"],[b,"Google"]],[/android.+;\s(glass)\s\d/i],[d,[b,"Google"],[S,_e]],[/android.+;\s(pixel c)\s/i],[d,[b,"Google"],[S,P]],[/android.+;\s(pixel xl|pixel)\s/i],[d,[b,"Google"],[S,x]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[d,/_/g," "],[b,"Xiaomi"],[S,x]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[d,/_/g," "],[b,"Xiaomi"],[S,P]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[d,[b,"Meizu"],[S,P]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[d,[b,"OnePlus"],[S,x]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[d,[b,"RCA"],[S,P]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[d,[b,"Dell"],[S,P]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[d,[b,"Verizon"],[S,P]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[b,"Barnes & Noble"],d,[S,P]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[d,[b,"NuVision"],[S,P]],[/android.+;\s(k88)\sbuild/i],[d,[b,"ZTE"],[S,P]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[d,[b,"Swiss"],[S,x]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[d,[b,"Swiss"],[S,P]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[d,[b,"Zeki"],[S,P]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[b,"Dragon Touch"],d,[S,P]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[d,[b,"Insignia"],[S,P]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[d,[b,"NextBook"],[S,P]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[b,"Voice"],d,[S,x]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[b,"LvTel"],d,[S,x]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[d,[b,"Envizen"],[S,P]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[b,d,[S,P]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[d,[b,"MachSpeed"],[S,P]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[b,d,[S,P]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[d,[b,"Rotor"],[S,P]],[/android.+(KS(.+))\s+build/i],[d,[b,"Amazon"],[S,P]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[b,d,[S,P]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[S,Q.lowerize],b,d],[/(android[\w\.\s\-]{0,9});.+build/i],[d,[b,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[C,[m,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[m,C],[/rv\:([\w\.]{1,9}).+(gecko)/i],[C,m]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[m,C],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[m,[C,W.str,X.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[m,"Windows"],[C,W.str,X.os.windows.version]],[/\((bb)(10);/i],[[m,"BlackBerry"],C],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[m,C],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[m,"Symbian"],C],[/\((series40);/i],[m],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[m,"Firefox OS"],C],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[m,C],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[m,"Chromium OS"],C],[/(sunos)\s?([\w\.\d]*)/i],[[m,"Solaris"],C],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[m,C],[/(haiku)\s(\w+)/i],[m,C],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[C,/_/g,"."],[m,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[m,"Mac OS"],[C,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]*)/i],[m,C]]},de=function(te,z){if(typeof te=="object"&&(z=te,te=o),!(this instanceof de))return new de(te,z).getResult();var U=te||(s&&s.navigator&&s.navigator.userAgent?s.navigator.userAgent:u),Z=z?Q.extend(ue,z):ue;return this.getBrowser=function(){var re={name:o,version:o};return W.rgx.call(re,U,Z.browser),re.major=Q.major(re.version),re},this.getCPU=function(){var re={architecture:o};return W.rgx.call(re,U,Z.cpu),re},this.getDevice=function(){var re={vendor:o,model:o,type:o};return W.rgx.call(re,U,Z.device),re},this.getEngine=function(){var re={name:o,version:o};return W.rgx.call(re,U,Z.engine),re},this.getOS=function(){var re={name:o,version:o};return W.rgx.call(re,U,Z.os),re},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return U},this.setUA=function(re){return U=re,this},this};de.VERSION=a,de.BROWSER={NAME:m,MAJOR:v,VERSION:C},de.CPU={ARCHITECTURE:T},de.DEVICE={MODEL:d,VENDOR:b,TYPE:S,CONSOLE:k,MOBILE:x,SMARTTV:me,TABLET:P,WEARABLE:_e,EMBEDDED:ee},de.ENGINE={NAME:m,VERSION:C},de.OS={NAME:m,VERSION:C},typeof r!==f?(typeof e!==f&&e.exports&&(r=e.exports=de),r.UAParser=de):n(3)?(i=(function(){return de}).call(r,n,r,e),i!==o&&(e.exports=i)):s&&(s.UAParser=de);var we=s&&(s.jQuery||s.Zepto);if(typeof we!==f){var ye=new de;we.ua=ye.getResult(),we.ua.get=function(){return ye.getUA()},we.ua.set=function(te){ye.setUA(te);var z=ye.getResult();for(var U in z)we.ua[U]=z[U]}}})(typeof window=="object"?window:this)}),(function(e,r){(function(n){e.exports=n}).call(r,{})}),(function(e,r,n){Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(m){for(var S=1;S<arguments.length;S++){var b=arguments[S];for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&(m[C]=b[C])}return m},s=n(0),o=s.DEVICE_TYPES,a=s.defaultData,u=function(S){switch(S){case o.MOBILE:return{isMobile:!0};case o.TABLET:return{isTablet:!0};case o.SMART_TV:return{isSmartTV:!0};case o.CONSOLE:return{isConsole:!0};case o.WEARABLE:return{isWearable:!0};case o.BROWSER:return{isBrowser:!0};default:return a}},h=function(S,b,C,T,k){return{isBrowser:S,browserMajorVersion:b.major,browserFullVersion:b.version,browserName:b.name,engineName:C.name||!1,engineVersion:C.version,osName:T.name,osVersion:T.version,userAgent:k}},_=function(S,b,C,T){return i({},S,{vendor:b.vendor,model:b.model,os:C.name,osVersion:C.version,ua:T})},f=function(S,b,C,T){return{isSmartTV:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:T}},l=function(S,b,C,T){return{isConsole:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:T}},y=function(S,b,C,T){return{isWearable:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:T}},v=r.getNavigatorInstance=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},d=r.isIOS13Check=function(S){var b=v();return b&&b.platform&&(b.platform.indexOf(S)!==-1||b.platform==="MacIntel"&&b.maxTouchPoints>1&&!window.MSStream)};e.exports={checkType:u,broPayload:h,mobilePayload:_,stvPayload:f,consolePayload:l,wearPayload:y,getNavigatorInstance:v,isIOS13Check:d}})])})(ws)),ws.exports}var Wd=Bd(),Hd=Object.defineProperty,Dr=(t,e,r,n)=>{for(var i=void 0,s=t.length-1,o;s>=0;s--)(o=t[s])&&(i=o(e,r,i)||i);return i&&Hd(e,r,i),i};const ys=class ys extends Hr{constructor(){super(),this.orientation=new $d(this),this.store=Ge.getInitialState(),this.currentScreenConfig=this.store.currentScreenConfig,this.processingScreenFromWorkflow=this.store.processingTransformedTemplate,this.isProcessing=this.store.isProcessing,this.loadedModules=this.store.externalModules,this.modulesConfig=this.store.modulesConfig,this._listenerFromModule=(e,r)=>{this.store.listener({eventType:jr.MESSAGE,message:r,module:e})},this._isProcessingCallback=e=>{this.store.setIsProcessing(e)},this._performFromModule=e=>{this.store.setIsProcessing(!1),this.store.pushStepWaitNextStepAndSet(e)},Ge.subscribe(e=>{this.currentScreenConfig=e.currentScreenConfig,this.processingScreenFromWorkflow=e.processingTransformedTemplate,this.isProcessing=e.isProcessing,this.loadedModules=e.externalModules,this.modulesConfig=e.modulesConfig})}_processingScreen(){const e=this.loadedModules.find(r=>r.supportedTemplates.includes("PROGRESS"));return e&&this.processingScreenFromWorkflow?el(e.id,{perform:this._performFromModule,moduleProps:G(O({},this.processingScreenFromWorkflow),{templateId:"PROGRESS"}),modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback}):gi`Processing...`}_currentScreen(){if(!this.currentScreenConfig)return null;const e=this.loadedModules.find(r=>r.supportedTemplates.includes(this.currentScreenConfig.templateId));return e&&this.currentScreenConfig?el(e.id,{perform:this._performFromModule,moduleProps:this.currentScreenConfig,modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback}):null}get version(){return`${"3.2.244-nightly".trim()}`}disconnectedCallback(){yr.clearLogs()}render(){return!this.currentScreenConfig&&!this.processingScreenFromWorkflow?null:gi`<div
|
|
116
|
+
*/(function(o,s){var a="0.7.18",l="",d="?",_="function",h="undefined",c="object",y="string",g="major",f="model",m="name",S="type",b="vendor",C="version",O="architecture",N="console",R="mobile",M="tablet",_e="smarttv",me="wearable",ee="embedded",Q={extend:function(te,z){var F={};for(var q in te)z[q]&&z[q].length%2===0?F[q]=z[q].concat(te[q]):F[q]=te[q];return F},has:function(te,z){return typeof te=="string"?z.toLowerCase().indexOf(te.toLowerCase())!==-1:!1},lowerize:function(te){return te.toLowerCase()},major:function(te){return typeof te===y?te.replace(/[^\d\.]/g,"").split(".")[0]:s},trim:function(te){return te.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},H={rgx:function(te,z){for(var F=0,q,re,Te,ne,$,X;F<z.length&&!$;){var Ke=z[F],Je=z[F+1];for(q=re=0;q<Ke.length&&!$;)if($=Ke[q++].exec(te),$)for(Te=0;Te<Je.length;Te++)X=$[++re],ne=Je[Te],typeof ne===c&&ne.length>0?ne.length==2?typeof ne[1]==_?this[ne[0]]=ne[1].call(this,X):this[ne[0]]=ne[1]:ne.length==3?typeof ne[1]===_&&!(ne[1].exec&&ne[1].test)?this[ne[0]]=X?ne[1].call(this,X,ne[2]):s:this[ne[0]]=X?X.replace(ne[1],ne[2]):s:ne.length==4&&(this[ne[0]]=X?ne[3].call(this,X.replace(ne[1],ne[2])):s):this[ne]=X||s;F+=2}},str:function(te,z){for(var F in z)if(typeof z[F]===c&&z[F].length>0){for(var q=0;q<z[F].length;q++)if(Q.has(z[F][q],te))return F===d?s:F}else if(Q.has(z[F],te))return F===d?s:F;return te}},J={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},de={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[m,C],[/(opios)[\/\s]+([\w\.]+)/i],[[m,"Opera Mini"],C],[/\s(opr)\/([\w\.]+)/i],[[m,"Opera"],C],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i],[m,C],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[m,"IE"],C],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[m,"Edge"],C],[/(yabrowser)\/([\w\.]+)/i],[[m,"Yandex"],C],[/(puffin)\/([\w\.]+)/i],[[m,"Puffin"],C],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[m,"UCBrowser"],C],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],C],[/(micromessenger)\/([\w\.]+)/i],[[m,"WeChat"],C],[/(qqbrowserlite)\/([\w\.]+)/i],[m,C],[/(QQ)\/([\d\.]+)/i],[m,C],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[m,C],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[m,C],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[m,C],[/(MetaSr)[\/\s]?([\w\.]+)/i],[m],[/(LBBROWSER)/i],[m],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[C,[m,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[C,[m,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[C,[m,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[m,/(.+)/,"$1 WebView"],C],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[m,/(.+(?:g|us))(.+)/,"$1 $2"],C],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[C,[m,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[m,C],[/(dolfin)\/([\w\.]+)/i],[[m,"Dolphin"],C],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[m,"Chrome"],C],[/(coast)\/([\w\.]+)/i],[[m,"Opera Coast"],C],[/fxios\/([\w\.-]+)/i],[C,[m,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[C,[m,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[C,m],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[m,"GSA"],C],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[m,[C,H.str,J.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[m,C],[/(navigator|netscape)\/([\w\.-]+)/i],[[m,"Netscape"],C],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[m,C]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[O,"amd64"]],[/(ia32(?=;))/i],[[O,Q.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[O,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[O,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[O,/ower/,"",Q.lowerize]],[/(sun4\w)[;\)]/i],[[O,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[O,Q.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[f,b,[S,M]],[/applecoremedia\/[\w\.]+ \((ipad)/],[f,[b,"Apple"],[S,M]],[/(apple\s{0,1}tv)/i],[[f,"Apple TV"],[b,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[b,f,[S,M]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[f,[b,"Amazon"],[S,M]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[f,H.str,J.device.amazon.model],[b,"Amazon"],[S,R]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[f,b,[S,R]],[/\((ip[honed|\s\w*]+);/i],[f,[b,"Apple"],[S,R]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[b,f,[S,R]],[/\(bb10;\s(\w+)/i],[f,[b,"BlackBerry"],[S,R]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[f,[b,"Asus"],[S,M]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[b,"Sony"],[f,"Xperia Tablet"],[S,M]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[f,[b,"Sony"],[S,R]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[b,f,[S,N]],[/android.+;\s(shield)\sbuild/i],[f,[b,"Nvidia"],[S,N]],[/(playstation\s[34portablevi]+)/i],[f,[b,"Sony"],[S,N]],[/(sprint\s(\w+))/i],[[b,H.str,J.device.sprint.vendor],[f,H.str,J.device.sprint.model],[S,R]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[b,f,[S,M]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[b,[f,/_/g," "],[S,R]],[/(nexus\s9)/i],[f,[b,"HTC"],[S,M]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[f,[b,"Huawei"],[S,R]],[/(microsoft);\s(lumia[\s\w]+)/i],[b,f,[S,R]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[f,[b,"Microsoft"],[S,N]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[b,"Microsoft"],[S,R]],[/\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],[f,[b,"Motorola"],[S,R]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[f,[b,"Motorola"],[S,M]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[b,Q.trim],[f,Q.trim],[S,_e]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[b,"Samsung"],[S,_e]],[/\(dtv[\);].+(aquos)/i],[f,[b,"Sharp"],[S,_e]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[b,"Samsung"],f,[S,M]],[/smart-tv.+(samsung)/i],[b,[S,_e],f],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[b,"Samsung"],f,[S,R]],[/sie-(\w*)/i],[f,[b,"Siemens"],[S,R]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[b,"Nokia"],f,[S,R]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[f,[b,"Acer"],[S,M]],[/android.+([vl]k\-?\d{3})\s+build/i],[f,[b,"LG"],[S,M]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[b,"LG"],f,[S,M]],[/(lg) netcast\.tv/i],[b,f,[S,_e]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[f,[b,"LG"],[S,R]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[f,[b,"Lenovo"],[S,M]],[/linux;.+((jolla));/i],[b,f,[S,R]],[/((pebble))app\/[\d\.]+\s/i],[b,f,[S,me]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[b,f,[S,R]],[/crkey/i],[[f,"Chromecast"],[b,"Google"]],[/android.+;\s(glass)\s\d/i],[f,[b,"Google"],[S,me]],[/android.+;\s(pixel c)\s/i],[f,[b,"Google"],[S,M]],[/android.+;\s(pixel xl|pixel)\s/i],[f,[b,"Google"],[S,R]],[/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],[[f,/_/g," "],[b,"Xiaomi"],[S,R]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[f,/_/g," "],[b,"Xiaomi"],[S,M]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[f,[b,"Meizu"],[S,M]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[f,[b,"OnePlus"],[S,R]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[f,[b,"RCA"],[S,M]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[f,[b,"Dell"],[S,M]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[f,[b,"Verizon"],[S,M]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[b,"Barnes & Noble"],f,[S,M]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[f,[b,"NuVision"],[S,M]],[/android.+;\s(k88)\sbuild/i],[f,[b,"ZTE"],[S,M]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[f,[b,"Swiss"],[S,R]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[f,[b,"Swiss"],[S,M]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[f,[b,"Zeki"],[S,M]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[b,"Dragon Touch"],f,[S,M]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[f,[b,"Insignia"],[S,M]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[f,[b,"NextBook"],[S,M]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[b,"Voice"],f,[S,R]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[b,"LvTel"],f,[S,R]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[f,[b,"Envizen"],[S,M]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[b,f,[S,M]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[f,[b,"MachSpeed"],[S,M]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[b,f,[S,M]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[f,[b,"Rotor"],[S,M]],[/android.+(KS(.+))\s+build/i],[f,[b,"Amazon"],[S,M]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[b,f,[S,M]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[S,Q.lowerize],b,f],[/(android[\w\.\s\-]{0,9});.+build/i],[f,[b,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[C,[m,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[m,C],[/rv\:([\w\.]{1,9}).+(gecko)/i],[C,m]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[m,C],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[m,[C,H.str,J.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[m,"Windows"],[C,H.str,J.os.windows.version]],[/\((bb)(10);/i],[[m,"BlackBerry"],C],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[m,C],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[m,"Symbian"],C],[/\((series40);/i],[m],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[m,"Firefox OS"],C],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[m,C],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[m,"Chromium OS"],C],[/(sunos)\s?([\w\.\d]*)/i],[[m,"Solaris"],C],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[m,C],[/(haiku)\s(\w+)/i],[m,C],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[C,/_/g,"."],[m,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[m,"Mac OS"],[C,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]*)/i],[m,C]]},ue=function(te,z){if(typeof te=="object"&&(z=te,te=s),!(this instanceof ue))return new ue(te,z).getResult();var F=te||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:l),q=z?Q.extend(de,z):de;return this.getBrowser=function(){var re={name:s,version:s};return H.rgx.call(re,F,q.browser),re.major=Q.major(re.version),re},this.getCPU=function(){var re={architecture:s};return H.rgx.call(re,F,q.cpu),re},this.getDevice=function(){var re={vendor:s,model:s,type:s};return H.rgx.call(re,F,q.device),re},this.getEngine=function(){var re={name:s,version:s};return H.rgx.call(re,F,q.engine),re},this.getOS=function(){var re={name:s,version:s};return H.rgx.call(re,F,q.os),re},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return F},this.setUA=function(re){return F=re,this},this};ue.VERSION=a,ue.BROWSER={NAME:m,MAJOR:g,VERSION:C},ue.CPU={ARCHITECTURE:O},ue.DEVICE={MODEL:f,VENDOR:b,TYPE:S,CONSOLE:N,MOBILE:R,SMARTTV:_e,TABLET:M,WEARABLE:me,EMBEDDED:ee},ue.ENGINE={NAME:m,VERSION:C},ue.OS={NAME:m,VERSION:C},typeof r!==h?(typeof e!==h&&e.exports&&(r=e.exports=ue),r.UAParser=ue):n(3)?(i=(function(){return ue}).call(r,n,r,e),i!==s&&(e.exports=i)):o&&(o.UAParser=ue);var ve=o&&(o.jQuery||o.Zepto);if(typeof ve!==h){var ye=new ue;ve.ua=ye.getResult(),ve.ua.get=function(){return ye.getUA()},ve.ua.set=function(te){ye.setUA(te);var z=ye.getResult();for(var F in z)ve.ua[F]=z[F]}}})(typeof window=="object"?window:this)}),(function(e,r){(function(n){e.exports=n}).call(r,{})}),(function(e,r,n){Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(m){for(var S=1;S<arguments.length;S++){var b=arguments[S];for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&(m[C]=b[C])}return m},o=n(0),s=o.DEVICE_TYPES,a=o.defaultData,l=function(S){switch(S){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(S,b,C,O,N){return{isBrowser:S,browserMajorVersion:b.major,browserFullVersion:b.version,browserName:b.name,engineName:C.name||!1,engineVersion:C.version,osName:O.name,osVersion:O.version,userAgent:N}},_=function(S,b,C,O){return i({},S,{vendor:b.vendor,model:b.model,os:C.name,osVersion:C.version,ua:O})},h=function(S,b,C,O){return{isSmartTV:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:O}},c=function(S,b,C,O){return{isConsole:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:O}},y=function(S,b,C,O){return{isWearable:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:O}},g=r.getNavigatorInstance=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},f=r.isIOS13Check=function(S){var b=g();return b&&b.platform&&(b.platform.indexOf(S)!==-1||b.platform==="MacIntel"&&b.maxTouchPoints>1&&!window.MSStream)};e.exports={checkType:l,broPayload:d,mobilePayload:_,stvPayload:h,consolePayload:c,wearPayload:y,getNavigatorInstance:g,isIOS13Check:f}})])})(wo)),wo.exports}var Bu=$u(),Hu=Object.defineProperty,kr=(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&&Hu(e,r,i),i};const vo=class vo extends Br{constructor(){super(),this._currentProgressElement=null,this._currentScreenElement=null,this._currentScreenModuleId="",this._currentScreenConfig=null,this.orientation=new Vu(this),this.store=ze.getInitialState(),this.currentScreenConfig=this.store.currentScreenConfig,this.processingScreenFromWorkflow=this.store.processingTransformedTemplate,this.isProcessing=this.store.isProcessing,this.loadedModules=this.store.externalModules,this.modulesConfig=this.store.modulesConfig,this._listenerFromModule=(e,r)=>{this.store.listener({eventType:Hr.MESSAGE,message:r,module:e})},this._isProcessingCallback=e=>{this.store.setIsProcessing(e)},this._performFromModule=e=>{this.store.setIsProcessing(!1),this.store.pushStepWaitNextStepAndSet(e)},ze.subscribe(e=>{this.currentScreenConfig=e.currentScreenConfig,this.processingScreenFromWorkflow=e.processingTransformedTemplate,this.isProcessing=e.isProcessing,this.loadedModules=e.externalModules,this.modulesConfig=e.modulesConfig})}_processingScreen(){const e=this.loadedModules.find(n=>n.supportedTemplates.includes("PROGRESS"));if(!e||!this.processingScreenFromWorkflow)return _i`Processing...`;const r={perform:this._performFromModule,moduleProps:Y(I({},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 Re;const e=this.loadedModules.find(n=>n.supportedTemplates.includes(this.currentScreenConfig.templateId));if(!e)return Re;const r={perform:this._performFromModule,moduleProps:this.currentScreenConfig,modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback};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.250-nightly".trim()}`}disconnectedCallback(){yi.clearLogs()}render(){return!this.currentScreenConfig&&!this.processingScreenFromWorkflow?null:_i`<div
|
|
117
117
|
part="idv"
|
|
118
118
|
class="idv"
|
|
119
|
-
data-device="${
|
|
120
|
-
data-direction="${
|
|
119
|
+
data-device="${Bu.isMobile&&this.orientation.isPortrait?"mobile":"desktop"}"
|
|
120
|
+
data-direction="${Jo.Ltr}"
|
|
121
121
|
>
|
|
122
122
|
<div class="container">
|
|
123
|
-
${this.isProcessing?
|
|
123
|
+
${this.isProcessing?_i`<div class="processing-overlay">${this._processingScreen()}</div>`:""}
|
|
124
124
|
${this._currentScreen()}
|
|
125
125
|
</div>
|
|
126
|
-
</div>`}};
|
|
126
|
+
</div>`}};vo.styles=[Fl];let bt=vo;kr([yr()],bt.prototype,"store"),kr([yr()],bt.prototype,"currentScreenConfig"),kr([yr()],bt.prototype,"processingScreenFromWorkflow"),kr([yr()],bt.prototype,"isProcessing"),kr([yr()],bt.prototype,"loadedModules"),kr([yr()],bt.prototype,"modulesConfig");class Wu{initialize(e){return U(this,null,function*(){return ze.getState().initialize(e)})}configure(e){return U(this,null,function*(){return"userName"in e?yield ze.getState().configureByUserPass(e):"apiKey"in e?yield ze.getState().configureByApiKey(e):"url"in e&&Object.keys(e).length===1?yield ze.getState().configureWithUrl(e.url):{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:"No valid config found"})}})}getWorkFlows(e){return U(this,null,function*(){return yield ze.getState().getWorkflows(e)})}prepareWorkflow(r){return U(this,arguments,function*({workflowId:e}){return yield ze.getState().prepareWorkflowAndPrepareUi(e)})}startWorkflow(e){return U(this,null,function*(){return new Promise(r=>{const n=a=>{r(a)},i=e==null?void 0:e.locale,o=e==null?void 0:e.metadata,s=Vc(i);ze.getState().startNewSession(n,s,o).then(a=>{a.error&&(ze.getState().removeCurrentSessionDataLsAndStore(),n(a)),a.results&&(ze.getState().removeCurrentSessionDataLsAndStore(),n(a)),ze.getState().playWorkflow()})})})}deinitialize(){return U(this,null,function*(){return yield ze.getState().deinitialize()})}get version(){return"3.2.250-nightly"}set nonce(e){ze.getState().setNonce(e)}set eventListener(e){if(!e||typeof e!="function"){console.warn("IdvIntegrationService:: listener is not a function");return}ze.getState().setListener(e)}set sessionRestoreMode(e){ze.getState().setSessionRestoreMode(e)}}return window.customElements.get("idv-flow")||window.customElements.define("idv-flow",bt),fe.BaseError=be,fe.BaseModule=ua,fe.ConnectionError=It,fe.DeinitializationError=jr,fe.IdvEventTypesEnum=Hr,fe.IdvIntegrationService=Wu,fe.IdvServiceMessages=br,fe.IdvWebComponent=bt,fe.InitializeError=Wr,fe.PrepareWorkflowError=mt,fe.SessionError=it,fe.StartSessionError=qt,fe.WorkflowError=We,fe.WorkflowPlatformError=gt,fe.registerModule=fa,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"}),fe})({});
|