Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

persona

Package Overview
Dependencies
Maintainers
7
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

persona - npm Package Compare versions

Comparing version 5.0.0-alpha.2 to 5.0.0

56

dist/lib/interfaces.d.ts
import type { Properties } from 'csstype';
/**
* @deprecated only used by `prefill` which is deprecated
*/
export type InquiryAttributes = {
nameFirst?: string;
nameLast?: string;
birthdate?: string;
addressStreet1?: string;
addressStreet2?: string;
addressCity?: string;
addressSubdivision?: string;
addressPostalCode?: string;
countryCode?: string;
phoneNumber?: string;
emailAddress?: string;
identificationNumber?: string;
};
export type FieldType = 'boolean' | 'choices' | 'date' | 'datetime' | 'integer' | 'json' | 'multi_choices' | 'number' | 'string' | 'generic' | 'mobile_drivers_license' | 'nfc_passport' | 'government_id' | 'selfie';

@@ -213,8 +196,2 @@ export type FieldValue = string | string[] | boolean | number | {

/**
* Allows using a specific theme.
* @deprecated Inquiry Template styles are self-contained and will not use a
* Theme object
*/
themeId?: string;
/**
* Allows using a specific theme set variant.

@@ -224,15 +201,2 @@ */

/**
* Allows prepopulation of inquiry form inputs.
* @deprecated will be replaced by `fields` in a future version. Old
* Templates will need to continue using `prefill` instead of `fields`
*/
prefill?: InquiryAttributes;
/**
* Allows prepopulation AND disabling of inquiry form inputs.
* @deprecated the prepopulation part of this attribute will be replaced by
* `fields`. The disabling part of this attribute will be replaced by Inquiry
* Template step configuration.
*/
lockedAttributes?: InquiryAttributes;
/**
* Required when resuming inquiries.

@@ -258,3 +222,2 @@ */

* Dynamic Flow inquiries send a map of field key to `Field` for `fields.
* Legacy inquiries send `InquiryAttributes`.
*/

@@ -264,3 +227,7 @@ onComplete?: ({ inquiryId, status, fields, }: {

status: string;
fields: Record<string, Field> | InquiryAttributes;
/**
* Dynamic Flow templates send Record<string, Field>.
* Legacy templates send Record<string, string>.
*/
fields: Record<string, Field> | Record<string, string>;
}) => void;

@@ -402,3 +369,3 @@ /**

fields: undefined;
scopes: InquiryAttributes;
scopes: Record<string, string>;
};

@@ -418,3 +385,3 @@ error?: never;

fields: undefined;
scopes: InquiryAttributes;
scopes: Record<string, string>;
};

@@ -454,9 +421,2 @@ error?: never;

}
/**
* @deprecated not actually sent by Persona.
*/
interface InquiryErrorInvalidInquiryId extends InquiryErrorBase {
status: 404;
code: 'invalid_inquiry_id';
}
interface InquiryErrorUnauthenticated extends InquiryErrorBase {

@@ -470,3 +430,3 @@ status: 409;

}
export type InquiryError = InquiryErrorApplication | InquiryErrorInvalidConfig | InquiryErrorInactiveTemplate | InquiryErrorInvalidInquiryId | InquiryErrorUnauthenticated | InquiryErrorUnknown;
export type InquiryError = InquiryErrorApplication | InquiryErrorInvalidConfig | InquiryErrorInactiveTemplate | InquiryErrorUnauthenticated | InquiryErrorUnknown;
export {};

2

dist/lib/setupIframe.d.ts

@@ -19,2 +19,2 @@ import { InquiryOptions } from './interfaces';

*/
flowType: 'embedded' | 'inline', { accountId, accountTypeId, environment, environmentId, fields, frameAncestors, frameHeight, frameWidth, host, iframeTitle, inquiryId, language, lockedAttributes, messageTargetOrigin, prefill, referenceId, routingCountry, sandboxAttributes, sessionToken, styleVariant, templateId, templateVersionId, themeId, themeSetId, }: InquiryOptions): HTMLIFrameElement;
flowType: 'embedded' | 'inline', { accountId, accountTypeId, environment, environmentId, fields, frameAncestors, frameHeight, frameWidth, host, iframeTitle, inquiryId, language, messageTargetOrigin, referenceId, routingCountry, sandboxAttributes, sessionToken, styleVariant, templateId, templateVersionId, themeSetId, }: InquiryOptions): HTMLIFrameElement;
import Client from './lib/Client';
import { setupIframe } from './lib/setupIframe';
import { setupEvents } from './lib/setupEvents';
import type { InquiryOptions as _InquiryOptions, Event as _Event, InquiryAttributes as _InquiryAttributes } from './lib/interfaces';
import type { InquiryOptions as _InquiryOptions, Event as _Event } from './lib/interfaces';
export type ClientOptions = _InquiryOptions;
export type Event = _Event;
export type PrefillAttributes = _InquiryAttributes;
declare const _default: {

@@ -9,0 +8,0 @@ Client: typeof Client;

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Persona=t():e.Persona=t()}(self,(()=>(()=>{var e={913:(e,t,r)=>{"use strict";var n=r(651),o=r(601),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},601:(e,t,r)=>{"use strict";var n=r(49),o=r(651),i=r(255),a=r(785),l=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(u,l),p=r(649),s=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(n,u,arguments);return i(t,1+s(0,e.length-(arguments.length-1)),!0)};var f=function(){return c(n,l,arguments)};p?p(e.exports,"apply",{value:f}):e.exports.apply=f},295:(e,t,r)=>{"use strict";var n=r(649),o=r(389),i=r(785),a=r(109);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],s=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&s?s.configurable:!c,enumerable:null===l&&s?s.enumerable:!l,value:r,writable:null===u&&s?s.writable:!u});else{if(!p&&(l||u||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},649:(e,t,r)=>{"use strict";var n=r(651)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},55:e=>{"use strict";e.exports=EvalError},293:e=>{"use strict";e.exports=Error},888:e=>{"use strict";e.exports=RangeError},900:e=>{"use strict";e.exports=ReferenceError},389:e=>{"use strict";e.exports=SyntaxError},785:e=>{"use strict";e.exports=TypeError},436:e=>{"use strict";e.exports=URIError},719:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var r=[],n=1,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments),l=r(0,o.length-a.length),u=[],c=0;c<l;c++)u[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=",");return r}(u)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,n(a,arguments));return Object(t)===t?t:this}return o.apply(e,n(a,arguments))})),o.prototype){var p=function(){};p.prototype=o.prototype,i.prototype=new p,p.prototype=null}return i}},49:(e,t,r)=>{"use strict";var n=r(719);e.exports=Function.prototype.bind||n},651:(e,t,r)=>{"use strict";var n,o=r(293),i=r(55),a=r(888),l=r(900),u=r(389),c=r(785),p=r(436),s=Function,f=function(e){try{return s('"use strict"; return ('+e+").constructor;")()}catch(e){}},y=Object.getOwnPropertyDescriptor;if(y)try{y({},"")}catch(e){y=null}var d=function(){throw new c},m=y?function(){try{return d}catch(e){try{return y(arguments,"callee").get}catch(e){return d}}}():d,h=r(257)(),g=r(726)(),b=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),v={},w="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,S={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":h&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&h&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&h&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h&&b?b(""[Symbol.iterator]()):n,"%Symbol%":h?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":p,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(b)try{null.error}catch(e){var x=b(b(e));S["%Error.prototype%"]=x}var A=function e(t){var r;if("%AsyncFunction%"===t)r=f("async function () {}");else if("%GeneratorFunction%"===t)r=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=f("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(r=b(o.prototype))}return S[t]=r,r},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=r(49),O=r(215),I=E.call(Function.call,Array.prototype.concat),P=E.call(Function.apply,Array.prototype.splice),k=E.call(Function.call,String.prototype.replace),_=E.call(Function.call,String.prototype.slice),C=E.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,U=function(e,t){var r,n=e;if(O(j,n)&&(n="%"+(r=j[n])[0]+"%"),O(S,n)){var o=S[n];if(o===v&&(o=A(n)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=_(e,0,1),r=_(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return k(e,R,(function(e,t,r,o){n[n.length]=r?k(o,F,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=U("%"+n+"%",t),i=o.name,a=o.value,l=!1,p=o.alias;p&&(n=p[0],P(r,I([0,1],p)));for(var s=1,f=!0;s<r.length;s+=1){var d=r[s],m=_(d,0,1),h=_(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===h||"'"===h||"`"===h)&&m!==h)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&f||(l=!0),O(S,i="%"+(n+="."+d)+"%"))a=S[i];else if(null!=a){if(!(d in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(y&&s+1>=r.length){var g=y(a,d);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else f=O(a,d),a=a[d];f&&!l&&(S[i]=a)}}return a}},109:(e,t,r)=>{"use strict";var n=r(651)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},890:(e,t,r)=>{"use strict";var n=r(649),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},726:e=>{"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},257:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(843);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},843:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},215:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(49);e.exports=i.call(n,o)},709:(e,t,r)=>{var n,o=1/0,i="[object Symbol]",a=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,l=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,u="\\ud800-\\udfff",c="\\u2700-\\u27bf",p="a-z\\xdf-\\xf6\\xf8-\\xff",s="A-Z\\xc0-\\xd6\\xd8-\\xde",f="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",y="["+f+"]",d="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",m="\\d+",h="["+c+"]",g="["+p+"]",b="[^"+u+f+m+c+p+s+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",w="[\\ud800-\\udbff][\\udc00-\\udfff]",S="["+s+"]",x="(?:"+g+"|"+b+")",A="(?:"+S+"|"+b+")",j="(?:['’](?:d|ll|m|re|s|t|ve))?",E="(?:['’](?:D|LL|M|RE|S|T|VE))?",O="(?:"+d+"|\\ud83c[\\udffb-\\udfff])?",I="[\\ufe0e\\ufe0f]?",P=I+O+"(?:\\u200d(?:"+["[^"+u+"]",v,w].join("|")+")"+I+O+")*",k="(?:"+[h,v,w].join("|")+")"+P,_=RegExp("['’]","g"),C=RegExp(d,"g"),R=RegExp([S+"?"+g+"+"+j+"(?="+[y,S,"$"].join("|")+")",A+"+"+E+"(?="+[y,S+x,"$"].join("|")+")",S+"?"+x+"+"+j,S+"+"+E,m,k].join("|"),"g"),F=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,U="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,D="object"==typeof self&&self&&self.Object===Object&&self,M=U||D||Function("return this")(),T=(n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==n?void 0:n[e]}),N=Object.prototype.toString,L=M.Symbol,W=L?L.prototype:void 0,B=W?W.toString:void 0;function q(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&N.call(e)==i}(e))return B?B.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}(e)}var V,z=(V=function(e,t,r){return e+(r?"-":"")+t.toLowerCase()},function(e){return function(e,t,r,n){for(var o=-1,i=e?e.length:0;++o<i;)r=t(r,e[o],o,e);return r}(function(e,t,r){return e=q(e),void 0===t?function(e){return F.test(e)}(e)?function(e){return e.match(R)||[]}(e):function(e){return e.match(a)||[]}(e):e.match(t)||[]}(function(e){return(e=q(e))&&e.replace(l,T).replace(C,"")}(e).replace(_,"")),V,"")});e.exports=z},937:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=l&&u&&"function"==typeof u.get?u.get:null,p=l&&Set.prototype.forEach,s="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,x=RegExp.prototype.test,A=Array.prototype.concat,j=Array.prototype.join,E=Array.prototype.slice,O=Math.floor,I="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,F=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function U(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-O(-e):O(e);if(n!==e){var o=String(n),i=b.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var D=r(634),M=D.custom,T=q(M)?M:null;function N(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function L(e){return v.call(String(e),/"/g,"&quot;")}function W(e){return!("[object Array]"!==G(e)||C&&"object"==typeof e&&C in e)}function B(e){return!("[object RegExp]"!==G(e)||C&&"object"==typeof e&&C in e)}function q(e){if(_)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,l){var u=n||{};if(z(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!z(u,"customInspect")||u.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return H(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return w?U(t,x):x}if("bigint"==typeof t){var O=String(t)+"n";return w?U(t,O):O}var P=void 0===u.depth?5:u.depth;if(void 0===o&&(o=0),o>=P&&P>0&&"object"==typeof t)return W(t)?"[Array]":"[Object]";var M,V=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=j.call(Array(e.indent+1)," ")}return{base:r,prev:j.call(Array(t+1),r)}}(u,o);if(void 0===l)l=[];else if($(l,t)>=0)return"[Circular]";function K(t,r,n){if(r&&(l=E.call(l)).push(r),n){var i={depth:u.depth};return z(u,"quoteStyle")&&(i.quoteStyle=u.quoteStyle),e(t,i,o+1,l)}return e(t,u,o+1,l)}if("function"==typeof t&&!B(t)){var ee=function(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=X(t,K);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+j.call(te,", ")+" }":"")}if(q(t)){var re=_?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(t);return"object"!=typeof t||_?re:J(re)}if((M=t)&&"object"==typeof M&&("undefined"!=typeof HTMLElement&&M instanceof HTMLElement||"string"==typeof M.nodeName&&"function"==typeof M.getAttribute)){for(var ne="<"+S.call(String(t.nodeName)),oe=t.attributes||[],ie=0;ie<oe.length;ie++)ne+=" "+oe[ie].name+"="+N(L(oe[ie].value),"double",u);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+S.call(String(t.nodeName))+">"}if(W(t)){if(0===t.length)return"[]";var ae=X(t,K);return V&&!function(e){for(var t=0;t<e.length;t++)if($(e[t],"\n")>=0)return!1;return!0}(ae)?"["+Y(ae,V)+"]":"[ "+j.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==G(e)||C&&"object"==typeof e&&C in e)}(t)){var le=X(t,K);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+j.call(le,", ")+" }":"{ ["+String(t)+"] "+j.call(A.call("[cause]: "+K(t.cause),le),", ")+" }"}if("object"==typeof t&&m){if(T&&"function"==typeof t[T]&&D)return D(t,{depth:P-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,(function(e,r){ue.push(K(r,t,!0)+" => "+K(e,t))})),Q("Map",i.call(t),ue,V)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return p&&p.call(t,(function(e){ce.push(K(e,t))})),Q("Set",c.call(t),ce,V)}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e,s);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{s.call(e,s)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return!("[object Number]"!==G(e)||C&&"object"==typeof e&&C in e)}(t))return J(K(Number(t)));if(function(e){if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(e){}return!1}(t))return J(K(I.call(t)));if(function(e){return!("[object Boolean]"!==G(e)||C&&"object"==typeof e&&C in e)}(t))return J(d.call(t));if(function(e){return!("[object String]"!==G(e)||C&&"object"==typeof e&&C in e)}(t))return J(K(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==G(e)||C&&"object"==typeof e&&C in e)}(t)&&!B(t)){var pe=X(t,K),se=F?F(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",ye=!se&&C&&Object(t)===t&&C in t?b.call(G(t),8,-1):fe?"Object":"",de=(se||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ye||fe?"["+j.call(A.call([],ye||[],fe||[]),": ")+"] ":"");return 0===pe.length?de+"{}":V?de+"{"+Y(pe,V)+"}":de+"{ "+j.call(pe,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return V.call(e,t)}function G(e){return m.call(e)}function $(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function H(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return H(b.call(e,0,t.maxStringLength),t)+n}return N(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",t)}function K(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function J(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function Q(e,t,r,n){return e+" ("+t+") {"+(n?Y(r,n):j.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+j.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=W(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=z(e,o)?t(e[o],e):""}var i,a="function"==typeof P?P(e):[];if(_){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var u in e)z(e,u)&&(r&&String(Number(u))===u&&u<e.length||_&&i["$"+u]instanceof Symbol||(x.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if("function"==typeof P)for(var c=0;c<a.length;c++)R.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}},647:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},882:(e,t,r)=>{"use strict";var n=r(402),o=r(662),i=r(647),a=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,p=function(e,t){c.apply(e,u(t)?t:[t])},s=Date.prototype.toISOString,f=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return s.call(e)},skipNulls:!1,strictNullHandling:!1},d={},m=function e(t,r,i,a,l,c,s,f,m,h,g,b,v,w,S,x,A,j){for(var E,O=t,I=j,P=0,k=!1;void 0!==(I=I.get(d))&&!k;){var _=I.get(t);if(P+=1,void 0!==_){if(_===P)throw new RangeError("Cyclic object value");k=!0}void 0===I.get(d)&&(P=0)}if("function"==typeof h?O=h(r,O):O instanceof Date?O=v(O):"comma"===i&&u(O)&&(O=o.maybeMap(O,(function(e){return e instanceof Date?v(e):e}))),null===O){if(c)return m&&!x?m(r,y.encoder,A,"key",w):r;O=""}if("string"==typeof(E=O)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||o.isBuffer(O))return m?[S(x?r:m(r,y.encoder,A,"key",w))+"="+S(m(O,y.encoder,A,"value",w))]:[S(r)+"="+S(String(O))];var C,R=[];if(void 0===O)return R;if("comma"===i&&u(O))x&&m&&(O=o.maybeMap(O,m)),C=[{value:O.length>0?O.join(",")||null:void 0}];else if(u(h))C=h;else{var F=Object.keys(O);C=g?F.sort(g):F}var U=f?r.replace(/\./g,"%2E"):r,D=a&&u(O)&&1===O.length?U+"[]":U;if(l&&u(O)&&0===O.length)return D+"[]";for(var M=0;M<C.length;++M){var T=C[M],N="object"==typeof T&&void 0!==T.value?T.value:O[T];if(!s||null!==N){var L=b&&f?T.replace(/\./g,"%2E"):T,W=u(O)?"function"==typeof i?i(D,L):D:D+(b?"."+L:"["+L+"]");j.set(t,P);var B=n();B.set(d,j),p(R,e(N,W,i,a,l,c,s,f,"comma"===i&&x&&u(O)?null:m,h,g,b,v,w,S,x,A,B))}}return R};e.exports=function(e,t){var r,o=e,c=function(e){if(!e)return y;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=i.formatters[r],c=y.filter;if(("function"==typeof e.filter||u(e.filter))&&(c=e.filter),n=e.arrayFormat in l?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p=void 0===e.allowDots?!0===e.encodeDotInKeys||y.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:p,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:c,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):u(c.filter)&&(r=c.filter);var s=[];if("object"!=typeof o||null===o)return"";var f=l[c.arrayFormat],d="comma"===f&&c.commaRoundTrip;r||(r=Object.keys(o)),c.sort&&r.sort(c.sort);for(var h=n(),g=0;g<r.length;++g){var b=r[g];c.skipNulls&&null===o[b]||p(s,m(o[b],b,f,d,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,h))}var v=s.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),v.length>0?w+v:""}},662:(e,t,r)=>{"use strict";var n=r(647),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},u=1024;e.exports={arrayToObject:l,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],l=Object.keys(a),u=0;u<l.length;++u){var c=l[u],p=a[c];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(t.push({obj:a,prop:c}),r.push(p))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var l=e;if("symbol"==typeof e?l=Symbol.prototype.toString.call(e):"string"!=typeof e&&(l=String(e)),"iso-8859-1"===r)return escape(l).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",p=0;p<l.length;p+=u){for(var s=l.length>=u?l.slice(p,p+u):l,f=[],y=0;y<s.length;++y){var d=s.charCodeAt(y);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===n.RFC1738&&(40===d||41===d)?f[f.length]=s.charAt(y):d<128?f[f.length]=a[d]:d<2048?f[f.length]=a[192|d>>6]+a[128|63&d]:d<55296||d>=57344?f[f.length]=a[224|d>>12]+a[128|d>>6&63]+a[128|63&d]:(y+=1,d=65536+((1023&d)<<10|1023&s.charCodeAt(y)),f[f.length]=a[240|d>>18]+a[128|d>>12&63]+a[128|d>>6&63]+a[128|63&d])}c+=f.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=l(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t}),a)}}},255:(e,t,r)=>{"use strict";var n=r(651),o=r(295),i=r(890)(),a=r(109),l=r(785),u=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new l("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new l("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var p=a(e,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(c=!1)}return(n||c||!r)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},402:(e,t,r)=>{"use strict";var n=r(651),o=r(913),i=r(937),a=r(785),l=n("%WeakMap%",!0),u=n("%Map%",!0),c=o("WeakMap.prototype.get",!0),p=o("WeakMap.prototype.set",!0),s=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),y=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),m=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return c(e,n)}else if(u){if(t)return f(t,n)}else if(r)return function(e,t){var r=m(e,t);return r&&r.value}(r,n)},has:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return s(e,n)}else if(u){if(t)return d(t,n)}else if(r)return function(e,t){return!!m(e,t)}(r,n);return!1},set:function(n,o){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),p(e,n,o)):u?(t||(t=new u),y(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=m(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}},634:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{"use strict";r.d(n,{default:()=>E});var e=r(882),t=r.n(e);const o=JSON.parse('{"rE":"5.0.0-alpha.2"}');var i,a,l;function u(e){switch(e){case"development":return l.Development;case"staging":return l.Staging;case"canary":return l.Canary;default:return l.Production}}!function(e){e.Cancel="exit",e.Complete="complete",e.Error="error",e.Fail="fail",e.Load="load",e.Ready="ready",e.Start="start",e.Success="success",e.DocumentCameraSelect="document-camera-select",e.DocumentCameraCapture="document-camera-capture",e.DocumentUpload="document-upload",e.OneTimeLinkSent="one-time-link-sent",e.OneTimeLinkStart="one-time-link-start",e.OneTimeLinkExit="one-time-link-exit",e.SelfieCameraSelect="selfie-camera-select",e.SelfieCameraCapture="selfie-camera-capture",e.SelfieRecordUpload="selfie-record-upload",e.LoadCameraFailed="load-camera-failed",e.PageChange="page-change",e.InquiryLoad="inquiry-load",e.CountrySelect="country-select",e.VerificationChange="verification-change"}(i||(i={})),function(e){e.Open="open",e.Exit="exit",e.Destroy="destroy"}(a||(a={})),function(e){e.Development="http://localhost:3000",e.Staging="https://inquiry.withpersona-staging.com",e.Canary="https://canary.withpersona.com",e.Production="https://inquiry.withpersona.com"}(l||(l={}));var c=r(709),p=r.n(c),s=function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};function f(e){return Array.isArray(e)?e.map(f):function(e){return null!=e&&e.constructor===Object}(e)?Object.keys(e).reduce((function(t,r){var n;return s(s({},t),((n={})[p()(r)]=f(e[r]),n))}),{}):e}var y=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},m=function(){function e(e){this.id=e}return e.prototype.isMounted=function(){return null!=document.getElementById(this.id)},e.prototype.mount=function(e){if(document.getElementById(this.id))console.warn("persona: stylesheet ".concat(this.id," already appended. skipping."));else{var t=g("style",{id:this.id},[document.createTextNode(e)]);document.head.appendChild(t)}},e.prototype.unmount=function(){var e,t=document.getElementById(this.id);null!=t?null===(e=t.parentNode)||void 0===e||e.removeChild(t):console.warn("persona: no stylesheet ".concat(this.id," to remove. skipping."))},e}();function h(e,t,r){var n,o,i,a;void 0===r&&(r=[]);var l=document.createElementNS("http://www.w3.org/2000/svg",e);try{for(var u=y(Object.entries(t)),c=u.next();!c.done;c=u.next()){var p=d(c.value,2),s=p[0],f=p[1];"className"===s&&(s="class"),l.setAttribute(s,f)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}try{for(var m=y(r),h=m.next();!h.done;h=m.next()){var g=h.value;!1!==g&&l.appendChild(g)}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}return l}function g(e,t,r){var n,o,i,a;void 0===r&&(r=[]);var l=document.createElement(e);try{for(var u=y(Object.entries(t)),c=u.next();!c.done;c=u.next()){var p=d(c.value,2),s=p[0],f=p[1];"className"===s&&(s="class"),l.setAttribute(s,f)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}try{for(var m=y(r),h=m.next();!h.done;h=m.next()){var g=h.value;!1!==g&&("string"==typeof g?l.appendChild(document.createTextNode(g)):l.appendChild(g))}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}return l}function b(e){return"string"==typeof e?e:"number"==typeof e?"".concat(e,"px"):""}var v=["allow-scripts","allow-same-origin","allow-popups"],w=["allow-forms","allow-modals","allow-top-navigation-by-user-activation"];function S(e,r,n,i){var a=i.accountId,l=i.accountTypeId,c=i.environment,p=i.environmentId,s=i.fields,y=i.frameAncestors,d=i.frameHeight,m=i.frameWidth,h=i.host,g=i.iframeTitle,S=i.inquiryId,x=i.language,A=i.lockedAttributes,j=i.messageTargetOrigin,E=i.prefill,O=i.referenceId,I=i.routingCountry,P=i.sandboxAttributes,k=void 0===P?w:P,_=i.sessionToken,C=i.styleVariant,R=i.templateId,F=i.templateVersionId,U=i.themeId,D=i.themeSetId,M=!(!R&&!F),T=null==R?void 0:R.startsWith("itmpl_");if(!M&&!S)throw new Error("Either templateId/templateVersionId or inquiryId must be specified to start a flow");if(M&&S)throw new Error("Only one of templateId/templateVersionId or inquiryId should be specified to start a flow");if(a){if(O)throw new Error("Cannot pass both accountId and referenceId");if(l)throw new Error("Cannot pass both accountId and accountTypeId")}var N=u(h),L=t()({"client-version":o.rE,"container-id":r,"flow-type":n,"routing-country":I,"template-id":(T?null:R)||null,"inquiry-template-id":(T?R:null)||null,"inquiry-template-version-id":F||null,environment:c,"environment-id":p,"iframe-origin":window.location.origin,"frame-ancestors":null!=y?y:null,"message-target-origin":j||null,"inquiry-id":S||null,language:x,"session-token":_,"reference-id":O,"account-id":a,"account-type-id":l,fields:f(null!=s?s:{}),"style-variant":C||null,"theme-set-id":D,"theme-id":U,prefill:f(null!=E?E:{}),"locked-attributes":f(null!=A?A:{})},{addQueryPrefix:!0,skipNulls:!0});return e.style.maxHeight=b(d),e.style.maxWidth=b(m),e.setAttribute("data-testid","persona-widget__iframe"),e.title=null!=g?g:"Verify your identity",e.className="persona-widget__iframe",e.allow="camera;microphone",e.setAttribute("sandbox",v.concat(k).join(" ")),e.frameBorder="0",e.src=N+"/widget"+L,e.onload=function(){},e}const x=function(){function e(){}return e.log=function(e,t){void 0===t&&(t="info")},e}();var A=function(e){return e.split(".").slice(-2).join(".")};function j(e,t){var r=t.onLoad,n=t.onReady,o=t.onComplete,a=t.onEvent,l=t.onCancel,c=t.onError,p=t.templateId,s=t.templateVersionId,f=t.host,y=function(t){var y,d=u(null!=f?f:"production");if((""===t.origin||A(new URL(t.origin).host)===A(new URL(d).host))&&!(p&&p!==t.data.templateId||s&&s!==t.data.templateVersionId||t.data.containerId&&e!==t.data.containerId))switch(null==a||a(t.data.name,t.data.metadata),t.data.name){case i.Load:null==r||r();break;case i.Ready:null==n||n();break;case i.Complete:case i.Fail:null==o||o({inquiryId:t.data.metadata.inquiryId,status:t.data.metadata.status,fields:null!==(y=t.data.metadata.fields)&&void 0!==y?y:t.data.metadata.scopes});break;case i.Cancel:null==l||l({inquiryId:t.data.metadata.inquiryId,sessionToken:t.data.metadata.sessionToken});break;case i.Error:null==c||c(t.data.error)}};return window.addEventListener("message",y),function(){window.removeEventListener("message",y)}}const E={Client:function(){function e(e){var t,r,n,o,i,a,l,u,c,p,s,f=this;this._isLoading=!0,this._isOpen=!1,this.personaCSS=new m("persona-widget-styles"),this.globalCSS=new m("persona-global-styles"),this.onLoad=function(){var e,t;f._isLoading=!1,f.render(),null===(t=(e=f.options).onLoad)||void 0===t||t.call(e)},this.onReady=function(){var e,t;null===(t=(e=f.options).onReady)||void 0===t||t.call(e)},this.onComplete=function(e){var t,r,n=e.inquiryId,o=e.status,i=e.fields;f._isOpen=!1,f.render(),null===(r=(t=f.options).onComplete)||void 0===r||r.call(t,{inquiryId:n,status:o,fields:i})},this.onCancel=function(e){var t,r,n=e.inquiryId,o=e.sessionToken;f._isOpen=!1,f.render(),null===(r=(t=f.options).onCancel)||void 0===r||r.call(t,{inquiryId:n,sessionToken:o})},this.options=e,this.containerParent=null!==(r=null!==(t=e.parent)&&void 0!==t?t:document.body)&&void 0!==r?r:document.children[0],this.containerElement=g("div",{class:"persona-widget__overlay",style:"display: ".concat(this._isOpen?"block":"none")}),this.containerId="persona-widget-"+new Array(16).fill(void 0).map((function(){return Math.floor(35*Math.random()).toString(35)})).join(""),this.containerElement.setAttribute("id",this.containerId),this.loadingElement=g("div",{class:"persona-widget__centered-frame"},[h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"114",height:"114",class:"persona-widget__loading-spinner"},[h("path",{fill:"none",stroke:"#0F2B72",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M25.887 10.432a56.275 56.275 0 0 0-15.455 15.455 55.86 55.86 0 0 0-5.183 9.678A55.576 55.576 0 0 0 2.066 46.07m-.8 5.438A56.678 56.678 0 0 0 1 57m4.249 21.435a55.86 55.86 0 0 0 5.183 9.678 56.275 56.275 0 0 0 6.97 8.485m8.485 6.97a55.86 55.86 0 0 0 9.678 5.183 55.576 55.576 0 0 0 10.506 3.183c3.535.7 7.19 1.066 10.929 1.066 3.74 0 7.394-.367 10.929-1.066a55.576 55.576 0 0 0 10.506-3.183 55.86 55.86 0 0 0 9.678-5.183 56.275 56.275 0 0 0 15.455-15.455 55.86 55.86 0 0 0 5.183-9.678 55.576 55.576 0 0 0 3.183-10.506A56.274 56.274 0 0 0 113 57c0-3.74-.367-7.394-1.066-10.929a55.576 55.576 0 0 0-3.183-10.506M96.598 17.402a56.275 56.275 0 0 0-8.485-6.97 55.86 55.86 0 0 0-9.678-5.183A55.576 55.576 0 0 0 67.93 2.066 56.274 56.274 0 0 0 57 1c-3.74 0-7.394.367-10.929 1.066m-34.94 30.418A51.76 51.76 0 0 0 7.225 41.9a51.633 51.633 0 0 0-1.98 10 52.63 52.63 0 0 0 .744 15.247 51.633 51.633 0 0 0 7.768 18.743 52.188 52.188 0 0 0 10.254 11.308 52.188 52.188 0 0 0 8.472 5.67m9.417 3.905a51.633 51.633 0 0 0 10 1.98 52.63 52.63 0 0 0 10.197 0 51.939 51.939 0 0 0 10-1.98 51.61 51.61 0 0 0 9.418-3.904 51.984 51.984 0 0 0 8.472-5.671m3.782-3.43a52.308 52.308 0 0 0 3.429-3.78m9.575-17.89a51.633 51.633 0 0 0 1.98-10 52.63 52.63 0 0 0-.744-15.247 51.633 51.633 0 0 0-7.768-18.743 52.188 52.188 0 0 0-10.254-11.308m-4.097-3.043a51.984 51.984 0 0 0-4.375-2.628M67.148 5.99a51.939 51.939 0 0 0-5.05-.743 52.63 52.63 0 0 0-15.246.743 51.633 51.633 0 0 0-18.743 7.768M24.012 16.8a52.308 52.308 0 0 0-3.782 3.43"})])]),this.containerElement.append(this.loadingElement),this.isLoading?this.loadingElement.style.display="block":this.loadingElement.style.display="none",this.iframeElement=document.createElement("iframe"),this.unsubscribeFromEvents=j(this.containerId,{onLoad:null!==(n=this.onLoad)&&void 0!==n?n:null,onReady:null!==(o=this.onReady)&&void 0!==o?o:null,onComplete:null!==(i=this.onComplete)&&void 0!==i?i:null,onCancel:null!==(a=this.onCancel)&&void 0!==a?a:null,onEvent:null!==(l=this.options.onEvent)&&void 0!==l?l:null,onError:null!==(u=this.options.onError)&&void 0!==u?u:null,templateId:null!==(c=this.options.templateId)&&void 0!==c?c:null,templateVersionId:null!==(p=this.options.templateVersionId)&&void 0!==p?p:null,host:null!==(s=this.options.host)&&void 0!==s?s:null}),this.containerElement.appendChild(this.iframeElement),this.containerParent.appendChild(this.containerElement),this.personaCSS.mount("@keyframes persona-widget__fadeIn {\n from {\n background-color: rgba(0, 0, 0, 0);\n opacity: 0;\n }\n to {\n /* persona-widget__overlay opacity = 0.7 */\n background-color: rgba(0, 0, 0, 0.7);\n opacity: 1;\n }\n}\n\n@keyframes persona-widget__genieSlideIn {\n from {\n transform: translate(-50%, -40%) scale(0.8);\n }\n 90% {\n transform: translate(-50%, -51%) scale(1.01);\n }\n to {\n transform: translate(-50%, -50%);\n }\n}\n\n@keyframes persona-widget__slideDown {\n from {\n transform: translate(-50%, -55%);\n }\n to {\n transform: translate(-50%, -50%);\n }\n}\n\n.persona-widget__overlay {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 9999;\n animation: persona-widget__fadeIn 0.3s;\n background-color: rgba(0, 0, 0, 0.7);\n}\n\n.persona-widget__overlay .persona-widget__centered-frame {\n width: 120px;\n height: 120px;\n position: absolute;\n left: calc(50% - 60px);\n top: calc(50% - 60px);\n z-index: 9999;\n}\n\n.persona-widget__overlay .persona-widget__loading-spinner {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.persona-widget__overlay .persona-widget__iframe {\n animation: persona-widget__genieSlideIn 0.3s, persona-widget__slideDown ease-out 0.3s;\n\n width: 100%;\n height: 100%;\n\n margin-left: auto;\n margin-right: auto;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n background-color: #ffffff;\n border: none;\n border-radius: 4px;\n box-shadow: 0px 12px 40px 2px rgba(0, 0, 0, 0.4);\n\n @media only screen and (min-width: 600.02px) and (min-height: 600.02px) {\n max-width: 400px;\n max-height: 650px;\n }\n}\n");try{this.iframeElement=S(this.iframeElement,this.containerId,"embedded",this.options)}catch(e){throw console.error("Persona",e),this.destroy(),e}this.render()}return e.preload=function(e){return void 0===e&&(e="production"),new Promise((function(t){var r=u(e),n=document.createElement("iframe");n.frameBorder="0",n.style.height="0px",n.style.width="0px",n.style.display="none",n.src=r+"/preload",document.body.appendChild(n),n.onload=function(){document.body.removeChild(n),t()}}))},e.prototype.render=function(){var e;null!=this.containerElement?(this.loadingElement.style.display=this.isLoading?"block":"none",this.containerElement.style.display=this.isOpen?"block":"none",this.isOpen&&!this.globalCSS.isMounted()?this.globalCSS.mount((e=this.containerId,"\n /* Don't allow scrolling when widget is open */\n html body {\n overflow: hidden !important;\n }\n\n /* When the widget takes the full screen, hide everything else to prevent iOS scroll issues. */\n @media ".concat("(max-width: 600px), (max-height: 420px)"," {\n html body > *:not(#").concat(e,") {\n display: none !important;\n }\n }\n"))):!this.isOpen&&this.globalCSS.isMounted()&&this.globalCSS.unmount()):x.log("Cannot render client that has been destroyed","error")},e.prototype.open=function(){var e;null===(e=this.iframeElement.contentWindow)||void 0===e||e.postMessage({action:a.Open,metadata:{}},this.baseUrl),this._isOpen=!0,this.render()},e.prototype.cancel=function(e){var t;null===(t=this.iframeElement.contentWindow)||void 0===t||t.postMessage({action:a.Exit,metadata:{force:e}},this.baseUrl),this.render()},e.prototype.destroy=function(){var e;null===(e=this.iframeElement.contentWindow)||void 0===e||e.postMessage({action:a.Destroy,metadata:{}},this.baseUrl),this.personaCSS.unmount(),this.globalCSS.unmount(),this.containerParent.removeChild(this.containerElement),this.unsubscribeFromEvents()},Object.defineProperty(e.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){return u(this.options.host)},enumerable:!1,configurable:!0}),e}(),setupIframe:S,setupEvents:j}})(),n.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Persona=t():e.Persona=t()}(self,(()=>(()=>{var e={913:(e,t,r)=>{"use strict";var n=r(651),o=r(601),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},601:(e,t,r)=>{"use strict";var n=r(49),o=r(651),i=r(255),a=r(785),l=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(u,l),p=r(649),s=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(n,u,arguments);return i(t,1+s(0,e.length-(arguments.length-1)),!0)};var f=function(){return c(n,l,arguments)};p?p(e.exports,"apply",{value:f}):e.exports.apply=f},295:(e,t,r)=>{"use strict";var n=r(649),o=r(389),i=r(785),a=r(109);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],s=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&s?s.configurable:!c,enumerable:null===l&&s?s.enumerable:!l,value:r,writable:null===u&&s?s.writable:!u});else{if(!p&&(l||u||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},649:(e,t,r)=>{"use strict";var n=r(651)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},55:e=>{"use strict";e.exports=EvalError},293:e=>{"use strict";e.exports=Error},888:e=>{"use strict";e.exports=RangeError},900:e=>{"use strict";e.exports=ReferenceError},389:e=>{"use strict";e.exports=SyntaxError},785:e=>{"use strict";e.exports=TypeError},436:e=>{"use strict";e.exports=URIError},719:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var r=[],n=1,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments),l=r(0,o.length-a.length),u=[],c=0;c<l;c++)u[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=",");return r}(u)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,n(a,arguments));return Object(t)===t?t:this}return o.apply(e,n(a,arguments))})),o.prototype){var p=function(){};p.prototype=o.prototype,i.prototype=new p,p.prototype=null}return i}},49:(e,t,r)=>{"use strict";var n=r(719);e.exports=Function.prototype.bind||n},651:(e,t,r)=>{"use strict";var n,o=r(293),i=r(55),a=r(888),l=r(900),u=r(389),c=r(785),p=r(436),s=Function,f=function(e){try{return s('"use strict"; return ('+e+").constructor;")()}catch(e){}},y=Object.getOwnPropertyDescriptor;if(y)try{y({},"")}catch(e){y=null}var d=function(){throw new c},m=y?function(){try{return d}catch(e){try{return y(arguments,"callee").get}catch(e){return d}}}():d,h=r(257)(),g=r(726)(),b=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),v={},w="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,S={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":h&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&h&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&h&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h&&b?b(""[Symbol.iterator]()):n,"%Symbol%":h?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":p,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(b)try{null.error}catch(e){var x=b(b(e));S["%Error.prototype%"]=x}var A=function e(t){var r;if("%AsyncFunction%"===t)r=f("async function () {}");else if("%GeneratorFunction%"===t)r=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=f("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(r=b(o.prototype))}return S[t]=r,r},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=r(49),O=r(215),I=E.call(Function.call,Array.prototype.concat),P=E.call(Function.apply,Array.prototype.splice),_=E.call(Function.call,String.prototype.replace),k=E.call(Function.call,String.prototype.slice),C=E.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,U=function(e,t){var r,n=e;if(O(j,n)&&(n="%"+(r=j[n])[0]+"%"),O(S,n)){var o=S[n];if(o===v&&(o=A(n)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=k(e,0,1),r=k(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return _(e,R,(function(e,t,r,o){n[n.length]=r?_(o,F,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=U("%"+n+"%",t),i=o.name,a=o.value,l=!1,p=o.alias;p&&(n=p[0],P(r,I([0,1],p)));for(var s=1,f=!0;s<r.length;s+=1){var d=r[s],m=k(d,0,1),h=k(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===h||"'"===h||"`"===h)&&m!==h)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&f||(l=!0),O(S,i="%"+(n+="."+d)+"%"))a=S[i];else if(null!=a){if(!(d in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(y&&s+1>=r.length){var g=y(a,d);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else f=O(a,d),a=a[d];f&&!l&&(S[i]=a)}}return a}},109:(e,t,r)=>{"use strict";var n=r(651)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},890:(e,t,r)=>{"use strict";var n=r(649),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},726:e=>{"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},257:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(843);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},843:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},215:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(49);e.exports=i.call(n,o)},709:(e,t,r)=>{var n,o=1/0,i="[object Symbol]",a=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,l=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,u="\\ud800-\\udfff",c="\\u2700-\\u27bf",p="a-z\\xdf-\\xf6\\xf8-\\xff",s="A-Z\\xc0-\\xd6\\xd8-\\xde",f="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",y="["+f+"]",d="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",m="\\d+",h="["+c+"]",g="["+p+"]",b="[^"+u+f+m+c+p+s+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",w="[\\ud800-\\udbff][\\udc00-\\udfff]",S="["+s+"]",x="(?:"+g+"|"+b+")",A="(?:"+S+"|"+b+")",j="(?:['’](?:d|ll|m|re|s|t|ve))?",E="(?:['’](?:D|LL|M|RE|S|T|VE))?",O="(?:"+d+"|\\ud83c[\\udffb-\\udfff])?",I="[\\ufe0e\\ufe0f]?",P=I+O+"(?:\\u200d(?:"+["[^"+u+"]",v,w].join("|")+")"+I+O+")*",_="(?:"+[h,v,w].join("|")+")"+P,k=RegExp("['’]","g"),C=RegExp(d,"g"),R=RegExp([S+"?"+g+"+"+j+"(?="+[y,S,"$"].join("|")+")",A+"+"+E+"(?="+[y,S+x,"$"].join("|")+")",S+"?"+x+"+"+j,S+"+"+E,m,_].join("|"),"g"),F=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,U="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,D="object"==typeof self&&self&&self.Object===Object&&self,M=U||D||Function("return this")(),T=(n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==n?void 0:n[e]}),N=Object.prototype.toString,L=M.Symbol,W=L?L.prototype:void 0,B=W?W.toString:void 0;function q(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&N.call(e)==i}(e))return B?B.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}(e)}var V,z=(V=function(e,t,r){return e+(r?"-":"")+t.toLowerCase()},function(e){return function(e,t,r,n){for(var o=-1,i=e?e.length:0;++o<i;)r=t(r,e[o],o,e);return r}(function(e,t,r){return e=q(e),void 0===t?function(e){return F.test(e)}(e)?function(e){return e.match(R)||[]}(e):function(e){return e.match(a)||[]}(e):e.match(t)||[]}(function(e){return(e=q(e))&&e.replace(l,T).replace(C,"")}(e).replace(k,"")),V,"")});e.exports=z},937:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=l&&u&&"function"==typeof u.get?u.get:null,p=l&&Set.prototype.forEach,s="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,x=RegExp.prototype.test,A=Array.prototype.concat,j=Array.prototype.join,E=Array.prototype.slice,O=Math.floor,I="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,F=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function U(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-O(-e):O(e);if(n!==e){var o=String(n),i=b.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var D=r(634),M=D.custom,T=q(M)?M:null;function N(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function L(e){return v.call(String(e),/"/g,"&quot;")}function W(e){return!("[object Array]"!==G(e)||C&&"object"==typeof e&&C in e)}function B(e){return!("[object RegExp]"!==G(e)||C&&"object"==typeof e&&C in e)}function q(e){if(k)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,l){var u=n||{};if(z(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!z(u,"customInspect")||u.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return H(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return w?U(t,x):x}if("bigint"==typeof t){var O=String(t)+"n";return w?U(t,O):O}var P=void 0===u.depth?5:u.depth;if(void 0===o&&(o=0),o>=P&&P>0&&"object"==typeof t)return W(t)?"[Array]":"[Object]";var M,V=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=j.call(Array(e.indent+1)," ")}return{base:r,prev:j.call(Array(t+1),r)}}(u,o);if(void 0===l)l=[];else if($(l,t)>=0)return"[Circular]";function K(t,r,n){if(r&&(l=E.call(l)).push(r),n){var i={depth:u.depth};return z(u,"quoteStyle")&&(i.quoteStyle=u.quoteStyle),e(t,i,o+1,l)}return e(t,u,o+1,l)}if("function"==typeof t&&!B(t)){var ee=function(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=X(t,K);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+j.call(te,", ")+" }":"")}if(q(t)){var re=k?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||k?re:J(re)}if((M=t)&&"object"==typeof M&&("undefined"!=typeof HTMLElement&&M instanceof HTMLElement||"string"==typeof M.nodeName&&"function"==typeof M.getAttribute)){for(var ne="<"+S.call(String(t.nodeName)),oe=t.attributes||[],ie=0;ie<oe.length;ie++)ne+=" "+oe[ie].name+"="+N(L(oe[ie].value),"double",u);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+S.call(String(t.nodeName))+">"}if(W(t)){if(0===t.length)return"[]";var ae=X(t,K);return V&&!function(e){for(var t=0;t<e.length;t++)if($(e[t],"\n")>=0)return!1;return!0}(ae)?"["+Y(ae,V)+"]":"[ "+j.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==G(e)||C&&"object"==typeof e&&C in e)}(t)){var le=X(t,K);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+j.call(le,", ")+" }":"{ ["+String(t)+"] "+j.call(A.call("[cause]: "+K(t.cause),le),", ")+" }"}if("object"==typeof t&&m){if(T&&"function"==typeof t[T]&&D)return D(t,{depth:P-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,(function(e,r){ue.push(K(r,t,!0)+" => "+K(e,t))})),Q("Map",i.call(t),ue,V)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return p&&p.call(t,(function(e){ce.push(K(e,t))})),Q("Set",c.call(t),ce,V)}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e,s);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{s.call(e,s)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return!("[object Number]"!==G(e)||C&&"object"==typeof e&&C in e)}(t))return J(K(Number(t)));if(function(e){if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(e){}return!1}(t))return J(K(I.call(t)));if(function(e){return!("[object Boolean]"!==G(e)||C&&"object"==typeof e&&C in e)}(t))return J(d.call(t));if(function(e){return!("[object String]"!==G(e)||C&&"object"==typeof e&&C in e)}(t))return J(K(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==G(e)||C&&"object"==typeof e&&C in e)}(t)&&!B(t)){var pe=X(t,K),se=F?F(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",ye=!se&&C&&Object(t)===t&&C in t?b.call(G(t),8,-1):fe?"Object":"",de=(se||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ye||fe?"["+j.call(A.call([],ye||[],fe||[]),": ")+"] ":"");return 0===pe.length?de+"{}":V?de+"{"+Y(pe,V)+"}":de+"{ "+j.call(pe,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return V.call(e,t)}function G(e){return m.call(e)}function $(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function H(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return H(b.call(e,0,t.maxStringLength),t)+n}return N(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",t)}function K(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function J(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function Q(e,t,r,n){return e+" ("+t+") {"+(n?Y(r,n):j.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+j.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=W(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=z(e,o)?t(e[o],e):""}var i,a="function"==typeof P?P(e):[];if(k){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var u in e)z(e,u)&&(r&&String(Number(u))===u&&u<e.length||k&&i["$"+u]instanceof Symbol||(x.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if("function"==typeof P)for(var c=0;c<a.length;c++)R.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}},647:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},882:(e,t,r)=>{"use strict";var n=r(402),o=r(662),i=r(647),a=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,p=function(e,t){c.apply(e,u(t)?t:[t])},s=Date.prototype.toISOString,f=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return s.call(e)},skipNulls:!1,strictNullHandling:!1},d={},m=function e(t,r,i,a,l,c,s,f,m,h,g,b,v,w,S,x,A,j){for(var E,O=t,I=j,P=0,_=!1;void 0!==(I=I.get(d))&&!_;){var k=I.get(t);if(P+=1,void 0!==k){if(k===P)throw new RangeError("Cyclic object value");_=!0}void 0===I.get(d)&&(P=0)}if("function"==typeof h?O=h(r,O):O instanceof Date?O=v(O):"comma"===i&&u(O)&&(O=o.maybeMap(O,(function(e){return e instanceof Date?v(e):e}))),null===O){if(c)return m&&!x?m(r,y.encoder,A,"key",w):r;O=""}if("string"==typeof(E=O)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||o.isBuffer(O))return m?[S(x?r:m(r,y.encoder,A,"key",w))+"="+S(m(O,y.encoder,A,"value",w))]:[S(r)+"="+S(String(O))];var C,R=[];if(void 0===O)return R;if("comma"===i&&u(O))x&&m&&(O=o.maybeMap(O,m)),C=[{value:O.length>0?O.join(",")||null:void 0}];else if(u(h))C=h;else{var F=Object.keys(O);C=g?F.sort(g):F}var U=f?r.replace(/\./g,"%2E"):r,D=a&&u(O)&&1===O.length?U+"[]":U;if(l&&u(O)&&0===O.length)return D+"[]";for(var M=0;M<C.length;++M){var T=C[M],N="object"==typeof T&&void 0!==T.value?T.value:O[T];if(!s||null!==N){var L=b&&f?T.replace(/\./g,"%2E"):T,W=u(O)?"function"==typeof i?i(D,L):D:D+(b?"."+L:"["+L+"]");j.set(t,P);var B=n();B.set(d,j),p(R,e(N,W,i,a,l,c,s,f,"comma"===i&&x&&u(O)?null:m,h,g,b,v,w,S,x,A,B))}}return R};e.exports=function(e,t){var r,o=e,c=function(e){if(!e)return y;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=i.formatters[r],c=y.filter;if(("function"==typeof e.filter||u(e.filter))&&(c=e.filter),n=e.arrayFormat in l?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p=void 0===e.allowDots?!0===e.encodeDotInKeys||y.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:p,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:c,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):u(c.filter)&&(r=c.filter);var s=[];if("object"!=typeof o||null===o)return"";var f=l[c.arrayFormat],d="comma"===f&&c.commaRoundTrip;r||(r=Object.keys(o)),c.sort&&r.sort(c.sort);for(var h=n(),g=0;g<r.length;++g){var b=r[g];c.skipNulls&&null===o[b]||p(s,m(o[b],b,f,d,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,h))}var v=s.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),v.length>0?w+v:""}},662:(e,t,r)=>{"use strict";var n=r(647),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},u=1024;e.exports={arrayToObject:l,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],l=Object.keys(a),u=0;u<l.length;++u){var c=l[u],p=a[c];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(t.push({obj:a,prop:c}),r.push(p))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var l=e;if("symbol"==typeof e?l=Symbol.prototype.toString.call(e):"string"!=typeof e&&(l=String(e)),"iso-8859-1"===r)return escape(l).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",p=0;p<l.length;p+=u){for(var s=l.length>=u?l.slice(p,p+u):l,f=[],y=0;y<s.length;++y){var d=s.charCodeAt(y);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===n.RFC1738&&(40===d||41===d)?f[f.length]=s.charAt(y):d<128?f[f.length]=a[d]:d<2048?f[f.length]=a[192|d>>6]+a[128|63&d]:d<55296||d>=57344?f[f.length]=a[224|d>>12]+a[128|d>>6&63]+a[128|63&d]:(y+=1,d=65536+((1023&d)<<10|1023&s.charCodeAt(y)),f[f.length]=a[240|d>>18]+a[128|d>>12&63]+a[128|d>>6&63]+a[128|63&d])}c+=f.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=l(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t}),a)}}},255:(e,t,r)=>{"use strict";var n=r(651),o=r(295),i=r(890)(),a=r(109),l=r(785),u=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new l("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new l("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var p=a(e,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(c=!1)}return(n||c||!r)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},402:(e,t,r)=>{"use strict";var n=r(651),o=r(913),i=r(937),a=r(785),l=n("%WeakMap%",!0),u=n("%Map%",!0),c=o("WeakMap.prototype.get",!0),p=o("WeakMap.prototype.set",!0),s=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),y=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),m=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return c(e,n)}else if(u){if(t)return f(t,n)}else if(r)return function(e,t){var r=m(e,t);return r&&r.value}(r,n)},has:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return s(e,n)}else if(u){if(t)return d(t,n)}else if(r)return function(e,t){return!!m(e,t)}(r,n);return!1},set:function(n,o){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),p(e,n,o)):u?(t||(t=new u),y(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=m(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}},634:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{"use strict";r.d(n,{default:()=>j});var e=r(882),t=r.n(e);var o,i,a;function l(e){switch(e){case"development":return a.Development;case"staging":return a.Staging;case"canary":return a.Canary;default:return a.Production}}!function(e){e.Cancel="exit",e.Complete="complete",e.Error="error",e.Fail="fail",e.Load="load",e.Ready="ready",e.Start="start",e.Success="success",e.DocumentCameraSelect="document-camera-select",e.DocumentCameraCapture="document-camera-capture",e.DocumentUpload="document-upload",e.OneTimeLinkSent="one-time-link-sent",e.OneTimeLinkStart="one-time-link-start",e.OneTimeLinkExit="one-time-link-exit",e.SelfieCameraSelect="selfie-camera-select",e.SelfieCameraCapture="selfie-camera-capture",e.SelfieRecordUpload="selfie-record-upload",e.LoadCameraFailed="load-camera-failed",e.PageChange="page-change",e.InquiryLoad="inquiry-load",e.CountrySelect="country-select",e.VerificationChange="verification-change"}(o||(o={})),function(e){e.Open="open",e.Exit="exit",e.Destroy="destroy"}(i||(i={})),function(e){e.Development="http://localhost:3000",e.Staging="https://inquiry.withpersona-staging.com",e.Canary="https://canary.withpersona.com",e.Production="https://inquiry.withpersona.com"}(a||(a={}));var u=r(709),c=r.n(u),p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},p.apply(this,arguments)};function s(e){return Array.isArray(e)?e.map(s):function(e){return null!=e&&e.constructor===Object}(e)?Object.keys(e).reduce((function(t,r){var n;return p(p({},t),((n={})[c()(r)]=s(e[r]),n))}),{}):e}var f=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},d=function(){function e(e){this.id=e}return e.prototype.isMounted=function(){return null!=document.getElementById(this.id)},e.prototype.mount=function(e){if(document.getElementById(this.id))console.warn("persona: stylesheet ".concat(this.id," already appended. skipping."));else{var t=h("style",{id:this.id},[document.createTextNode(e)]);document.head.appendChild(t)}},e.prototype.unmount=function(){var e,t=document.getElementById(this.id);null!=t?null===(e=t.parentNode)||void 0===e||e.removeChild(t):console.warn("persona: no stylesheet ".concat(this.id," to remove. skipping."))},e}();function m(e,t,r){var n,o,i,a;void 0===r&&(r=[]);var l=document.createElementNS("http://www.w3.org/2000/svg",e);try{for(var u=f(Object.entries(t)),c=u.next();!c.done;c=u.next()){var p=y(c.value,2),s=p[0],d=p[1];"className"===s&&(s="class"),l.setAttribute(s,d)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}try{for(var m=f(r),h=m.next();!h.done;h=m.next()){var g=h.value;!1!==g&&l.appendChild(g)}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}return l}function h(e,t,r){var n,o,i,a;void 0===r&&(r=[]);var l=document.createElement(e);try{for(var u=f(Object.entries(t)),c=u.next();!c.done;c=u.next()){var p=y(c.value,2),s=p[0],d=p[1];"className"===s&&(s="class"),l.setAttribute(s,d)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}try{for(var m=f(r),h=m.next();!h.done;h=m.next()){var g=h.value;!1!==g&&("string"==typeof g?l.appendChild(document.createTextNode(g)):l.appendChild(g))}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}return l}function g(e){return"string"==typeof e?e:"number"==typeof e?"".concat(e,"px"):""}var b=["allow-scripts","allow-same-origin","allow-popups"],v=["allow-forms","allow-modals","allow-top-navigation-by-user-activation"];function w(e,r,n,o){var i=o.accountId,a=o.accountTypeId,u=o.environment,c=o.environmentId,p=o.fields,f=o.frameAncestors,y=o.frameHeight,d=o.frameWidth,m=o.host,h=o.iframeTitle,w=o.inquiryId,S=o.language,x=o.messageTargetOrigin,A=o.referenceId,j=o.routingCountry,E=o.sandboxAttributes,O=void 0===E?v:E,I=o.sessionToken,P=o.styleVariant,_=o.templateId,k=o.templateVersionId,C=o.themeSetId,R=!(!_&&!k),F=null==_?void 0:_.startsWith("itmpl_");if(!R&&!w)throw new Error("Either templateId/templateVersionId or inquiryId must be specified to start a flow");if(R&&w)throw new Error("Only one of templateId/templateVersionId or inquiryId should be specified to start a flow");if(i){if(A)throw new Error("Cannot pass both accountId and referenceId");if(a)throw new Error("Cannot pass both accountId and accountTypeId")}var U=l(m),D=t()({"client-version":"5.0.0","container-id":r,"flow-type":n,"routing-country":j,"template-id":(F?null:_)||null,"inquiry-template-id":(F?_:null)||null,"inquiry-template-version-id":k||null,environment:u,"environment-id":c,"iframe-origin":window.location.origin,"frame-ancestors":null!=f?f:null,"message-target-origin":x||null,"inquiry-id":w||null,language:S,"session-token":I,"reference-id":A,"account-id":i,"account-type-id":a,fields:s(null!=p?p:{}),"style-variant":P||null,"theme-set-id":C},{addQueryPrefix:!0,skipNulls:!0});return e.style.maxHeight=g(y),e.style.maxWidth=g(d),e.setAttribute("data-testid","persona-widget__iframe"),e.title=null!=h?h:"Verify your identity",e.className="persona-widget__iframe",e.allow="camera;microphone",e.setAttribute("sandbox",b.concat(O).join(" ")),e.frameBorder="0",e.src=U+"/widget"+D,e.onload=function(){},e}const S=function(){function e(){}return e.log=function(e,t){void 0===t&&(t="info")},e}();var x=function(e){return e.split(".").slice(-2).join(".")};function A(e,t){var r=t.onLoad,n=t.onReady,i=t.onComplete,a=t.onEvent,u=t.onCancel,c=t.onError,p=t.templateId,s=t.templateVersionId,f=t.host,y=function(t){var y,d=l(null!=f?f:"production");if((""===t.origin||x(new URL(t.origin).host)===x(new URL(d).host))&&!(p&&p!==t.data.templateId||s&&s!==t.data.templateVersionId||t.data.containerId&&e!==t.data.containerId))switch(null==a||a(t.data.name,t.data.metadata),t.data.name){case o.Load:null==r||r();break;case o.Ready:null==n||n();break;case o.Complete:case o.Fail:null==i||i({inquiryId:t.data.metadata.inquiryId,status:t.data.metadata.status,fields:null!==(y=t.data.metadata.fields)&&void 0!==y?y:t.data.metadata.scopes});break;case o.Cancel:null==u||u({inquiryId:t.data.metadata.inquiryId,sessionToken:t.data.metadata.sessionToken});break;case o.Error:null==c||c(t.data.error)}};return window.addEventListener("message",y),function(){window.removeEventListener("message",y)}}const j={Client:function(){function e(e){var t,r,n,o,i,a,l,u,c,p,s,f=this;this._isLoading=!0,this._isOpen=!1,this.personaCSS=new d("persona-widget-styles"),this.globalCSS=new d("persona-global-styles"),this.onLoad=function(){var e,t;f._isLoading=!1,f.render(),null===(t=(e=f.options).onLoad)||void 0===t||t.call(e)},this.onReady=function(){var e,t;null===(t=(e=f.options).onReady)||void 0===t||t.call(e)},this.onComplete=function(e){var t,r,n=e.inquiryId,o=e.status,i=e.fields;f._isOpen=!1,f.render(),null===(r=(t=f.options).onComplete)||void 0===r||r.call(t,{inquiryId:n,status:o,fields:i})},this.onCancel=function(e){var t,r,n=e.inquiryId,o=e.sessionToken;f._isOpen=!1,f.render(),null===(r=(t=f.options).onCancel)||void 0===r||r.call(t,{inquiryId:n,sessionToken:o})},this.options=e,this.containerParent=null!==(r=null!==(t=e.parent)&&void 0!==t?t:document.body)&&void 0!==r?r:document.children[0],this.containerElement=h("div",{class:"persona-widget__overlay",style:"display: ".concat(this._isOpen?"block":"none")}),this.containerId="persona-widget-"+new Array(16).fill(void 0).map((function(){return Math.floor(35*Math.random()).toString(35)})).join(""),this.containerElement.setAttribute("id",this.containerId),this.loadingElement=h("div",{class:"persona-widget__centered-frame"},[m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"114",height:"114",class:"persona-widget__loading-spinner"},[m("path",{fill:"none",stroke:"#0F2B72",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M25.887 10.432a56.275 56.275 0 0 0-15.455 15.455 55.86 55.86 0 0 0-5.183 9.678A55.576 55.576 0 0 0 2.066 46.07m-.8 5.438A56.678 56.678 0 0 0 1 57m4.249 21.435a55.86 55.86 0 0 0 5.183 9.678 56.275 56.275 0 0 0 6.97 8.485m8.485 6.97a55.86 55.86 0 0 0 9.678 5.183 55.576 55.576 0 0 0 10.506 3.183c3.535.7 7.19 1.066 10.929 1.066 3.74 0 7.394-.367 10.929-1.066a55.576 55.576 0 0 0 10.506-3.183 55.86 55.86 0 0 0 9.678-5.183 56.275 56.275 0 0 0 15.455-15.455 55.86 55.86 0 0 0 5.183-9.678 55.576 55.576 0 0 0 3.183-10.506A56.274 56.274 0 0 0 113 57c0-3.74-.367-7.394-1.066-10.929a55.576 55.576 0 0 0-3.183-10.506M96.598 17.402a56.275 56.275 0 0 0-8.485-6.97 55.86 55.86 0 0 0-9.678-5.183A55.576 55.576 0 0 0 67.93 2.066 56.274 56.274 0 0 0 57 1c-3.74 0-7.394.367-10.929 1.066m-34.94 30.418A51.76 51.76 0 0 0 7.225 41.9a51.633 51.633 0 0 0-1.98 10 52.63 52.63 0 0 0 .744 15.247 51.633 51.633 0 0 0 7.768 18.743 52.188 52.188 0 0 0 10.254 11.308 52.188 52.188 0 0 0 8.472 5.67m9.417 3.905a51.633 51.633 0 0 0 10 1.98 52.63 52.63 0 0 0 10.197 0 51.939 51.939 0 0 0 10-1.98 51.61 51.61 0 0 0 9.418-3.904 51.984 51.984 0 0 0 8.472-5.671m3.782-3.43a52.308 52.308 0 0 0 3.429-3.78m9.575-17.89a51.633 51.633 0 0 0 1.98-10 52.63 52.63 0 0 0-.744-15.247 51.633 51.633 0 0 0-7.768-18.743 52.188 52.188 0 0 0-10.254-11.308m-4.097-3.043a51.984 51.984 0 0 0-4.375-2.628M67.148 5.99a51.939 51.939 0 0 0-5.05-.743 52.63 52.63 0 0 0-15.246.743 51.633 51.633 0 0 0-18.743 7.768M24.012 16.8a52.308 52.308 0 0 0-3.782 3.43"})])]),this.containerElement.append(this.loadingElement),this.isLoading?this.loadingElement.style.display="block":this.loadingElement.style.display="none",this.iframeElement=document.createElement("iframe"),this.unsubscribeFromEvents=A(this.containerId,{onLoad:null!==(n=this.onLoad)&&void 0!==n?n:null,onReady:null!==(o=this.onReady)&&void 0!==o?o:null,onComplete:null!==(i=this.onComplete)&&void 0!==i?i:null,onCancel:null!==(a=this.onCancel)&&void 0!==a?a:null,onEvent:null!==(l=this.options.onEvent)&&void 0!==l?l:null,onError:null!==(u=this.options.onError)&&void 0!==u?u:null,templateId:null!==(c=this.options.templateId)&&void 0!==c?c:null,templateVersionId:null!==(p=this.options.templateVersionId)&&void 0!==p?p:null,host:null!==(s=this.options.host)&&void 0!==s?s:null}),this.containerElement.appendChild(this.iframeElement),this.containerParent.appendChild(this.containerElement),this.personaCSS.mount("@keyframes persona-widget__fadeIn {\n from {\n background-color: rgba(0, 0, 0, 0);\n opacity: 0;\n }\n to {\n /* persona-widget__overlay opacity = 0.7 */\n background-color: rgba(0, 0, 0, 0.7);\n opacity: 1;\n }\n}\n\n@keyframes persona-widget__genieSlideIn {\n from {\n transform: translate(-50%, -40%) scale(0.8);\n }\n 90% {\n transform: translate(-50%, -51%) scale(1.01);\n }\n to {\n transform: translate(-50%, -50%);\n }\n}\n\n@keyframes persona-widget__slideDown {\n from {\n transform: translate(-50%, -55%);\n }\n to {\n transform: translate(-50%, -50%);\n }\n}\n\n.persona-widget__overlay {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 9999;\n animation: persona-widget__fadeIn 0.3s;\n background-color: rgba(0, 0, 0, 0.7);\n}\n\n.persona-widget__overlay .persona-widget__centered-frame {\n width: 120px;\n height: 120px;\n position: absolute;\n left: calc(50% - 60px);\n top: calc(50% - 60px);\n z-index: 9999;\n}\n\n.persona-widget__overlay .persona-widget__loading-spinner {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.persona-widget__overlay .persona-widget__iframe {\n animation: persona-widget__genieSlideIn 0.3s, persona-widget__slideDown ease-out 0.3s;\n\n width: 100%;\n height: 100%;\n\n margin-left: auto;\n margin-right: auto;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n background-color: #ffffff;\n border: none;\n border-radius: 4px;\n box-shadow: 0px 12px 40px 2px rgba(0, 0, 0, 0.4);\n\n @media only screen and (min-width: 600.02px) and (min-height: 600.02px) {\n max-width: 400px;\n max-height: 650px;\n }\n}\n");try{this.iframeElement=w(this.iframeElement,this.containerId,"embedded",this.options)}catch(e){throw console.error("Persona",e),this.destroy(),e}this.render()}return e.preload=function(e){return void 0===e&&(e="production"),new Promise((function(t){var r=l(e),n=document.createElement("iframe");n.frameBorder="0",n.style.height="0px",n.style.width="0px",n.style.display="none",n.src=r+"/preload",document.body.appendChild(n),n.onload=function(){document.body.removeChild(n),t()}}))},e.prototype.render=function(){var e;null!=this.containerElement?(this.loadingElement.style.display=this.isLoading?"block":"none",this.containerElement.style.display=this.isOpen?"block":"none",this.isOpen&&!this.globalCSS.isMounted()?this.globalCSS.mount((e=this.containerId,"\n /* Don't allow scrolling when widget is open */\n html body {\n overflow: hidden !important;\n }\n\n /* When the widget takes the full screen, hide everything else to prevent iOS scroll issues. */\n @media ".concat("(max-width: 600px), (max-height: 420px)"," {\n html body > *:not(#").concat(e,") {\n display: none !important;\n }\n }\n"))):!this.isOpen&&this.globalCSS.isMounted()&&this.globalCSS.unmount()):S.log("Cannot render client that has been destroyed","error")},e.prototype.open=function(){var e;null===(e=this.iframeElement.contentWindow)||void 0===e||e.postMessage({action:i.Open,metadata:{}},this.baseUrl),this._isOpen=!0,this.render()},e.prototype.cancel=function(e){var t;null===(t=this.iframeElement.contentWindow)||void 0===t||t.postMessage({action:i.Exit,metadata:{force:e}},this.baseUrl),this.render()},e.prototype.destroy=function(){var e;null===(e=this.iframeElement.contentWindow)||void 0===e||e.postMessage({action:i.Destroy,metadata:{}},this.baseUrl),this.personaCSS.unmount(),this.globalCSS.unmount(),this.containerParent.removeChild(this.containerElement),this.unsubscribeFromEvents()},Object.defineProperty(e.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){return l(this.options.host)},enumerable:!1,configurable:!0}),e}(),setupIframe:w,setupEvents:A}})(),n.default})()));
{
"name": "persona",
"version": "5.0.0-alpha.2",
"version": "5.0.0",
"description": "The official JavaScript SDK for the Persona Inquiry Flow.",

@@ -5,0 +5,0 @@ "main": "./dist/persona.js",

@@ -5,3 +5,3 @@ # Persona Inquiry JavaScript SDK

## [Demo](https://devqy.csb.app/)
## [Demo](https://ccq8nh.csb.app/)

@@ -8,0 +8,0 @@ ## Table of Contents

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc